Consolidate Container-only fields (dockerfile, buildContextPath, customDockerBuildArgs) into a containerConfig object
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- typescript
Hướng nghiên cứu
Trước tiên, hãy đọc hai tệp schema AgentEnvSpec và pattern networkConfig hiện có, sau đó lần theo các consumer CLI và CDK được liệt kê: packaging/container.ts, dev/config.ts, dev/container-dev-server.ts, deploy/preflight.ts, AgentEnvironment và ContainerSourceAsset. Công việc được xem là hoàn tất khi các trường chỉ dành cho container được nhóm nhất quán, tài liệu và các snapshot của asset được cập nhật, đồng thời ghi chú migration hoặc quyết định về Back-Compat đã được xử lý.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 339
- Fork
- 129
- Merge trung bình
- 19 giờ 21 phút
- Pull request đã merge (30 ngày)
- 125
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của aws/agentcore-cli
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
aws/agentcore-cli#2940 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
aws/agentcore-cli#2939 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
aws/agentcore-cli#2938 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
invoke: CUSTOM_JWT runtime errors discard the response body and error type (e.g. "Token has expired")Có thể đã có người làm @n1dhruv đã nhận 6 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
aws/agentcore-cli#2875 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
--debug has no effect; service error name, HTTP status and request ID never reach the terminalCó thể đã có người làm @abhiramshaji-cyber đã nhận 3 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
aws/agentcore-cli#2874 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của aws/agentcore-cli
Issue tương tự
-
manually bump balena-preload to ^19.0.6Có thể đã có người làm @shaunmulligan đã nhận hôm nay. Đang mở
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 66/100
balena-io/balena-cli#3200 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`MaterializedChatMessage._text` is quadratic in the number of text chunks (`+=` followed by `endsWith`), driving the extension host to heap OOMCó thể đã có người làm @olegius88 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
microsoft/vscode-prompt-tsx#205 ·
-
triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 64/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
melgarafael/DeskcommCRM#5340 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
ehmpathy/rhachet-roles-ehmpathy#1529 ·
Maintainer thường phản hồi trong vòng 1 ngày