Google AntigravityでIronBarcodeの出力を確認する
誤ったチェックディジットを持つEAN-13バーコードは、クリーンに表示され、ビルドは通過しますが、スキャナーでのみ失敗します。 ビルドログには報告されません。 Google Antigravityエージェントは、ブラウザ、エディタ、およびターミナルで動作し、ソースが意図したものではなく、実際に提供されたバーコードを確認できます。 エージェントはラベルエンドポイントを開き、応答を保存し、BarcodeReaderでデコードし、比較結果をWalkthroughアーティファクトとしてレビュー用に添付します。
Antigravity?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
同じチェックは、エンドポイントから提供される1Dラベル、デザイン作業後に依然として読み取れるスタイル付きQRコード、およびファイルの変更前にレビューできる移行をカバーします。
クイックスタートAntigravity???????????????????????????????????
Pull in IronBarcode, which ships as the BarCode package. In Program.cs, build
a QR code that carries our product URL and place our logo in the center of it
using QRCodeWriter.CreateQrCodeWithLogo. IRONBARCODE_LICENSE_KEY supplies the
license, and it never gets hardcoded.
A logo covers part of the symbol, so the only thing that settles whether it
still works is decoding it. Save the image, read it back, and confirm the URL
survives. Attach the image and the decoded value to the Walkthrough so I can
see both without rerunning anything.
???????????????????????????????QRCodeWriter.CreateQrCodeWithLogo????????BarcodeReader.Read???????????????????????????????????????????????????????????????????????????????????????????????Q???H?????????????????????????????????????????
???????????????????????????????????????????????Walkthrough????????????????????????????????????????????????????????????????????????????????????
5?????????????
- NuGet??C#?????????????????????
- Antigravityでプロジェクトを開き、ビルドを確認します。
- IronBarcodeを追加し、コードからではなく設定からライセンスキーを適用します。
- ????????????????????????????????????????????????
- エージェントに生成、デコード、比較させ、API名をAPIリファレンスと照らし合わせて確認します。
バーコード作業に重要なAntigravityの機能は何ですか?
Antigravityはエージェントを最優先します。Googleのドキュメントでは、Antigravity 2.0を、IDEとは独立して動作するエージェントを管理するためのスタンドアロンデスクトップアプリケーションとして説明しています。また、その横にはAntigravity CLIおよびIDE統合も構成されています。 そこではエージェントがシステムコマンドを実行し、ファイルを読み書きし、Chromeを駆動し、アーティファクトを生成します。
プラットフォームの5つの部分がここで重要です。
IDE???????????????????????1???????????????????????????????????????????????
Antigravity 2.0は非同期作業用のコマンドセンターです。 エージェントを起動し、監視し、単一の会話を待つのではなくジョブを並行して実行します。
ブラウザ制御は、エージェントが機能を実行し結果を確認するためにブラウザを操作することを可能にします。 IronBarcodeを使用すると、それはラベルエンドポイントを呼び出し、返されたイメージを検査することを意味します。
???????????????????????????????????????????????????????????????????????????????????????????????
???????????????????????????????????Gemini?Anthropic?Claude?????????GPT-OSS????????????????????????????????????????
エージェントが戻すものは確認できます:計画、差分、バーコード画像自体、そしてその画像からデコードされた値。 チャットツールはそれらを説明するだけです。
??????????????????????????????????????????????????????IronBarcode??????????????4????
- ?????????????????????????????????????????????????????????????????????IronBarcode?????????????????????????1????????????
- ????????????????????????????????????????????????????????????????????????????????????
- 実際のスキャンは生成されたイメージと全く異なります: カメラで撮影した写真、斜めに撮影したラベル、複数ページのPDFすべてが
BarcodeReaderOptionsを通じて調整が必要です。 - ?????????????????????????????????????1??????????
dotnet add package????????????????????????????????????????????????????
したがって、テーブル内の一致は偶然ではなく有効なシンボルを意味します。 タスクにBarCodeを書き込めば、新たに考案する必要はありません。
????????????????????????????????????????????????????????????????????????????????Claude Code?ChatGPT Codex?GitHub Copilot?Cursor???????????????????????
エージェントが戻すものをどのようにレビューしますか?
Antigravity?????????????????????????????????????????????????3????????????????????????????????????????
コードの前: 実装計画
???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????API???????????????????????????????????????????????
実装中: コード差分
Antigravity?????????????????????????????????????????????????????????????????????????????????????????
実装後: ウォークスルー
実装後、エージェントは変更内容とテスト方法を要約します。 バーコードの場合、書かれたフォーマット、使用された値、読み込まれた結果について、それを信頼するのではなく実行可能なチェックとしてカバーします。
スクリーンショット、ターミナルログ、ブラウザ録画はこれに並んでレビューウィンドウに構成され、チャットスクロールに失われることはありません。 以下の多くのタスクは、作業が行われたことを確認するために開くアーティファクトを挙げています。
証拠はどこから来ますか?
Antigravity???????????????????????????????????????????????????????????????????????????????????????????????????????
????????????????????
/browser Services/LabelService.cs serves Code 128 shipping labels from GET /label/{trackingNumber}.
1. Run the API and open /label/1Z999AA10123456784 in the browser. Capture a screenshot.
2. Save the served PNG and decode it with BarcodeReader, expecting Code 128 only.
3. Repeat for ten tracking numbers of different lengths, including lowercase letters.
4. Report a table of written value, decoded value, format, and match.
5. If any row does not match, explain the cause before changing anything, fix it
in LabelService.cs, and run the whole table again. Attach the table and the
screenshots as Artifacts.
まず説明を求めると、後でチェックする必要がある修正ではなく、レビュー用の診断が得られます。 修正後にテーブル全体を再実行することで、新しい問題を隠すことを避けます。
バーコードが初めての開発者がチェックできる証拠として、ラベルのスクリーンショットとそのデコードされた値があり、失敗した行は一目瞭然です。
???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
なぜある場所ではスキャンでき、他の場所ではできないのですか?
????????????????????????????????????????????????????????????????????????????
| 症状 | 原因 | リクエストするもの |
|---|---|---|
| テストでは問題ないが、携帯写真では失敗する | フレーム全体、すべてのフォーマット | ExpectBarcodeTypes, CropArea, 読み取り回数 |
| ぼやけているかコントラストが低い、何も見つからない | イメージが修正を必要とする | 機能する最小のフィルター |
| ???????????????? | ????????????????? | RemoveFalsePositive, ConfidenceThreshold |
| ??????????????????????? | UTF-8 ECI???? | ????EciMode?????????? |
?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
?????????????????ECI??????????????????????????????????
委任前にプロジェクトはどの状態にあるべきですか?
まず、すでにビルドされるプロジェクトから始めてください。 エージェントがどのバーコードライブラリを使用するかを推測したり、壊れたビルドを修復したりする必要がある場合、その実行は間違った問題に費やされます。
ビルドがクリーンになったら、セットアップ自体を引き渡してください。なぜなら、バージョンおよびパッケージ名の間違いはインストール中に始まるからです。
Set this project up for barcode work, then report back with the facts I will
need in later tasks.
Install BarCode (IronBarcode), leaving every other package reference alone.
Wire the license key to come from IRONBARCODE_LICENSE_KEY, or from a config
file that is already in .gitignore. Add it to .gitignore if it is not.
In your Walkthrough, give me the resolved version number and the
PackageReference line exactly as they ended up in the .csproj.
??????????????????????????????????.gitignore??????????????????????????????????????????????????????????IronBarcode?LicensingException???????????????????????????????????
?????????????????????????????????????Antigravity????????????AGENTS.md????????????ChatGPT Codex?????????????????
スキルはその設定の後半を構成します。Antigravityは.agents/skills/<name>/内のSKILL.mdを探し、会話の開始時には各スキルの名前と説明のみを参照し、タスクが関連しているように見えたときに完全な指示を読み込みます。 したがって、IronBarcodeのskill.mdを.agents/skills/ironbarcode/SKILL.mdとして配置しても無関係なタスクには負担がかからず、/ironbarcodeで必要なときに読み込まれます。 記録する事項は、IronBarcodeがバーコードライブラリである、そのパッケージがBarCodeである、コードは文書化されたAPIのみを使用すること、ライセンスキーはインライン化されないことです。 その後、その規則を各タスクで繰り返すのをやめます。 1つのタスクがファイルを作成します。
Draft AGENTS.md for the repository root as a plan Artifact first, so I can
comment on it before anything is written to disk.
It needs a Barcodes section covering: IronBarcode (NuGet package BarCode,
namespace IronBarCode) handles barcodes here and nothing else is allowed to; https://ironsoftware.com/barcode/csharp/llms.txt is read
before any barcode code is written and only APIs documented there are used;
https://ironsoftware.com/barcode/csharp/skill.md is saved as
.agents/skills/ironbarcode/SKILL.md so it loads as a skill; every generated
barcode is decoded and compared with its input before a task is reported as
done.
Once I approve the draft, write the file and attach the diff.
バーコード生成と移行作業をどのように委任しますか?
生成タスクでは、バーコードと期待する証明を説明し、コードの構造はエージェントに任せます。
Build a shipping label path that I can check without running anything myself.
One class renders a tracking number as a Code 128 PNG, 400 by 120, with the
value printed under the bars. A second class reads that PNG back and returns
the tracking number, or null when there is nothing to find. Put them where the
other services live and make the read async.
Then push a spread of tracking numbers, short and long, through both classes and
attach the written and decoded values as a table. Every row matches, or you tell
me which one did not and why.
実装計画は、作成される前のファイルとメソッドを一覧表示します。 ウォークスルーを使用して、コードがコンパイルだけでなく実行されたことを確認します。 計画で指名されたすべてのIronBarcodeメンバーは、APIリファレンスに記載されるべきであり、コードが存在する前にそれを確認する方が、ビルドログを後で確認するよりも安価です。
?????????????????????????????????????????????????????????????????????????????????????????????????
/plan Labels/LegacyBarcodeService.cs is built on a different barcode library. I
want a plan Artifact before any code, so I can annotate it rather than unpick a
diff.
Work out what the file actually does today, symbology by symbology, including
the options it sets. Against each one, put the IronBarcode call that replaces
it and the documentation page you took it from. Flag anything that has no clean
equivalent instead of inventing one.
Nothing gets written to disk until I have commented on the plan.
計画に合意する前にリライトを得た場合、行ごとにレビューする必要があります。一方、計画アーティファクトは1つのコメントで修正でき、Antigravityは進捗を失うことなしに注釈を追加できます。 承認されたら、次のタスクに集中します。 計画を実装し、他のコードが依然として動作するように公開メソッドシグネチャを変更しません。 すべてのシンボルが同じ値を読み戻し、違いを報告することを確認してください。
?????????????????????????????????????????????????????????????????????1D??????2D???????????????????????????????????????????
複数のエージェントを派遣するのはいつですか?
タスクを1つずつ実行する代わりに、Antigravity 2.0から複数のエージェントを起動し、それぞれのアーティファクトが完了するたびにレビューします。
バーコード移行の合理的な分割として、1つのエージェントがレガシーラベルサービスをIronBarcodeに移動し、もう1つが出力のラウンドトリップテストを書きます。 2番目のエージェントはすぐに開始できます。なぜならテストは実装ではなくデコードされた値をチェックするからです。
両方を同時に起動してください。
Agent A: carry out the approved migration plan on Labels/LegacyBarcodeService.cs.
Public method signatures stay exactly as they are, because callers elsewhere in
the solution depend on them. Attach the diff to your Walkthrough.
Agent B: build the xUnit suite that will judge Agent A's work. Write it against
the public signatures, not against anything A does internally, so it compiles
before A finishes. Cover a round trip per supported symbology, an empty image
returning no results, and EAN-13 refusing a value with letters in it. Assert on
decoded values and formats only.
When both of you are done, run B's suite against A's build and put the pass
table in B's Walkthrough. A green suite that never ran against A's code proves
nothing.
バイト比較はここで失敗します。なぜなら、並行して実行される2つのエージェントは同じPNGを生成しないかもしれないからです。 一致させなければならないのは、戻ってくる値です。
??????????????????????????????????????????????????????????????AGENTS.md??????????????????????????????????????????????
Linux、Docker、Azureでのデプロイ失敗をどのようにデバッグしますか?
デプロイメントは、ターミナルアクセスを持つエージェントがスタックトレースを読むレビュアーに勝る場所です。なぜなら、イメージを開いて見られるからです。
失敗をそのままエージェントに渡してください。
Our container build decodes nothing. The same code is fine on a Windows
developer machine. This is the exception:
[EXCEPTION AND STACK TRACE GO HERE]
Go and look: which BarCode package does the .csproj pull, and does the image
carry the native dependencies IronBarcode needs on Linux? Use the terminal,
do not reason about it from memory.
Tell me the cause first. The C# is out of scope unless you can show me the
fault is in it.
??????????????????Dockerfile???????????????????????????????????????????????????????????????Linux??Docker?NuGet???????????????????????
同じターミナルアクセスが参照質問にも答えます。 どのBarcodeReaderOptions設定が速度や精度に影響するか、どの設定がすでにプロジェクトにセットされているかを尋ね、エージェントは回答前にAPIリファレンスを確認します。
どの証拠を手に入れるのですか?
???????????????????????????????????????????????????????????????????????????????????????????????
?????????1??????????????????AI????????????????????????????????
トラブルシューティング
- ?????????????????????????IronBarcode???????????????????????
- ????????????????????????????????????????????
- ????
AGENTS.md??????????????????IronBarcode NuGet??????????????? - ?????????????????????????????Linux??Docker?IronBarcode???????????????
??????????
質問がある場合は、support@ironsoftware.com にお問い合わせください。
Curtis Chauは、カールトン大学でコンピュータサイエンスの学士号を取得し、Node.js、TypeScript、JavaScript、およびReactに精通したフロントエンド開発を専門としています。直感的で美しいユーザーインターフェースを作成することに情熱を持ち、Curtisは現代のフレームワークを用いた開発や、構造の良い視覚的に魅力的なマニュアルの作成を楽しんでいます。