Consolidate Container-only fields (dockerfile, buildContextPath, customDockerBuildArgs) into a containerConfig object
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- リファクタリング
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- typescript
調査の方向性
まず2つのAgentEnvSpecスキーマファイルと既存のnetworkConfigパターンを読み、その後、一覧にあるCLIおよびCDKの利用箇所を追跡してください: packaging/container.ts、dev/config.ts、dev/container-dev-server.ts、deploy/preflight.ts、AgentEnvironment、ContainerSourceAsset。コンテナ専用のフィールドが一貫してグループ化され、ドキュメントとアセットのスナップショットが更新され、移行に関する注記またはBack-Compatの判断が対応済みであれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Summary
With aws/agentcore-cli#1284, Container agents now have three flat, Container-only fields on AgentEnvSpec: dockerfile, buildContextPath, and customDockerBuildArgs — plus cross-cutting "only allowed for Container builds" validators for each.
Both AgentEnvSpecSchema copies (CLI and @aws/agentcore-cdk) already carry a standing comment near the validators:
If adding more Container-specific fields, consider consolidating into a containerConfig object (see networkConfig pattern)
We've now hit that threshold. This tracks grouping them under a single optional object:
containerConfig?: {
dockerfile?: string;
buildContextPath?: string;
customDockerBuildArgs?: Record<string, string>;
}
Benefits
- One
build !== 'Container' && data.containerConfigcheck instead of three per-field validators. - Future container-only options land inside
containerConfigwith no new cross-cutting validators. - Clearer grouping in the schema and docs (mirrors the existing
networkConfigpattern).
Why it's deferred
This is a breaking schema change: it moves the already-shipped dockerfile field, touches every consumer, existing user agentcore.json files, and asset snapshots — and would have ballooned a contributor PR. Better as its own scoped change (with a migration note / back-compat shim if we want to keep accepting the flat form for a release).
Scope
- CLI:
src/schema/schemas/agent-env.ts(+ compacted mirror), consumers (packaging/container.ts,dev/config.ts,dev/container-dev-server.ts,deploy/preflight.ts), docs, snapshots. @aws/agentcore-cdk:src/schema/schemas/agent-env.ts(+ compacted mirror),AgentEnvironment,ContainerSourceAsset.
Ref: review comment on aws/agentcore-cli#1284.
- 主要言語
- TypeScript
- スター
- 339
- フォーク
- 129
- 平均マージ
- 19時間 21分
- マージ済み PR(30日)
- 125
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
aws/agentcore-cli のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
aws/agentcore-cli#2940 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
aws/agentcore-cli#2939 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
aws/agentcore-cli#2938 ·
メンテナーはふだん 1 日以内に返信
-
invoke: CUSTOM_JWT runtime errors discard the response body and error type (e.g. "Token has expired")対応中かも @n1dhruv が 6 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
aws/agentcore-cli#2875 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
--debug has no effect; service error name, HTTP status and request ID never reach the terminal対応中かも @abhiramshaji-cyber が 3 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
aws/agentcore-cli#2874 ·
メンテナーはふだん 1 日以内に返信
aws/agentcore-cli の issue をすべて見る
似ている issue
-
triage
難易度 1/5 1時間未満 初心者へのやさしさ 64/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
ranxianglei/billion-context#7860 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
-
agent-oc-find-bugs api complexity → simple payment-methods recurring contributions reviewed stripe
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
opencollective/opencollective#9177 ·