aggrega inspect
aggrega inspect เรนเดอร์
เอนทิตีinspect แสดงinspect ตอบ
อาร์กิวเมนต์
| รูป | การ | เอาต์พุต |
|---|---|---|
ขึ้น./, ../ หรือ / หรือ.yaml / .yml | สาขา | ตรวจkind: ของ |
ขึ้นoci:// | สาขา | เอนทิตี |
| อย่าง | สาขา | ค้นหาextends: แล้ว |
ระดับรายละเอียดสามระดับ
--list ระดับ--detail ประกอบ--list และ --detail ใช้
--list— เฉพาะตัว ระบุ Component แสดง ชื่อ ของ ตน และ ชื่อ ซ็อกเก็ต uses MappingLibrary แสดง ชื่อ การ แมป Aggregate แสดง ชื่อ ส่วน ประกอบ พร้อม ชนิด - ค่า
เริ่ม — ภาพต้น รวม ที่ มี โครงสร้าง ซึ่ง ปรับ ให้ เหมาะ กับ การ ใช้ แบบ โต้ตอบ เริ่ม ด้วย ตัว ตน ของ เอนทิตี และ สำหรับ ทุก ประเภท ยกเว้น Manifest และ Release จะ ตาม ด้วย คำ อธิบาย ของ เอนทิตี เมื่อ ผู้ เขียน เขียน ไว้ เอนทิตี ที่ ไม่มี คำ อธิบาย จะ ไม่ พิมพ์ สิ่ง ใด แทนที่ จะ พิมพ์ บรรทัด ว่าง ส่วน ที่ เหลือ ของ รูป ทรง ขึ้น กับ แต่ละ ประเภท Component แสดง สคีมา และ ซ็อกเก็ต Aggregate แสดง ส่วน ประกอบ ค่า และ เส้น เชื่อม พร้อม การ แนบ ที่ แต่ละ การ เชื่อม ต่อ มี และ กราฟ การ พึ่งพา Release แสดง ต้นไม้ โหนด ตาม แนว เขต พร้อม การ แนบ Feature โดย การ แนบ แต่ละ รายการ ที่ เขียน บน การ เชื่อม ต่อ จะ แสดง ไว้ ใต้ การ เชื่อม ต่อ นั้น --detail— เนื้อหาฟิลด์ ทั้งหมด ทุก สิ่ง ที่ ประเภท นั้น มี Component เพิ่ม กลไก self-inject, Features ที่ จำเป็น และ ป้าย กำกับ MappingLibrary ขยาย เนื้อหา เทมเพลต เต็ม ของ แต่ละ การ แมป Recipe เพิ่ม เนื้อหา เวิร์กโหลด, provides และ assertions
บาง--list แสดง--detail ขยาย
การหาค่า: --raw และ --resolved
แต่ละ--raw และ --resolved เป็น
--rawเลือกไม่ หา ค่า ใด ทั้ง สิ้น — เอนทิตี ถูก ส่ง ออก ตาม ที่ เขียน โดยตรง จาก ไฟล์ --resolvedเลือกใช้ ความ ลึก การ หา ค่า เต็ม ของ ประเภท นั้น
สำหรับ--raw ไม่มี--resolved จะ--raw คือ
--raw ทำ--raw เหมือน--output yaml ทำ
Release ตอบ--ir-graph ส่วน closure การ--closure ดู เอาต์พุต--closure ด้าน
ค่าเริ่มต้นของแต่ละประเภท
inspect รู้จัก
| ประเภท | ค่า | “หา |
|---|---|---|
| Component | ตาม | ไฟล์--show-implements |
| Feature | ตาม | เหมือน Component |
| Recipe | ตาม | --show-implements หาspec.implements |
| FeatureRecipe | ตาม | --show-implements หาspec.implements |
| MappingLibrary | ตาม | รายการ |
| SchemaLibrary | ตาม | รายการ |
| WorkloadLibrary | ตาม | รายการ |
| ArtifactLibrary | ตาม | รายการ |
| Plugin | ตาม | ไฟล์<pluginType>/<name> เทียบ |
| Manifest | หา | ใช้extends: แล้ว และ |
| Aggregate | หา | บิลด์ |
| Release | หา | รัน |
ไฟล์kind: เป็น Workload จะ
ความลึกของการหาค่าแต่ละประเภท
ประเภทinspect อ่าน
- Manifest ใช้
ห่วง โซ่ extends:ของตน — ตาม การนำ เข้า ไฟล์ — และ เรนเดอร์ การ แมป ส่วน ประกอบ และ ฟีเจอร์ ที่ รวม แล้ว --rawแสดงไฟล์ ตาม ที่ เขียน - Aggregate บิลด์
โทโพโลยี ของ ตน คือ สร้าง กราฟ uses และ คำนวณ ลำดับ การ พึ่งพา มุม มอง ค่า เริ่ม ต้น แสดง ส่วน ประกอบ พร้อม ค่า และ เส้น เชื่อม ตาม ด้วย กราฟ การ พึ่งพา --rawแสดงต้นไม้ ระบบ ย่อย ที่ เขียน - Release รัน
ไปป์ไลน์ การ คอมไพล์ ทั้งหมด จนถึง IR — หา ค่า ขยาย คำ อธิบาย ประกอบ รัน guards บิลด์ โทโพโลยี บิลด์ IR — และ เรนเดอร์ ต้นไม้ โหนด ตาม แนว เขต พร้อม การ แนบ Feature ของ แต่ละ โหนด และ ที่มา ของ การ แนบ เหล่า นั้น การ แนบ ด้าน การ กำกับ ดูแล ที่ กำหนด รูป ทรง ของ กราฟ ทำงาน ใน ไปป์ไลน์ นั้น แทนที่ จะ ถูก ข้าม ไป สำหรับ มุม มอง สิ่ง ที่ คุณ อ่าน จึง สะท้อน สิ่ง ที่ การ แนบ เหล่า นั้น ตัดสิน ใจ ป้าย กำกับ ของ การ แนบ label-transformอยู่ครบ ก่อน ที่ จะ มี การ จับ คู่ กับ สิ่ง ใด และ คำ อธิบาย ประกอบ ที่ การ แนบ annotation-transformแทรกเข้า มา จะ ขยาย เป็นการ แนบ Feature เช่น เดียว กับ คำ อธิบาย ประกอบ ที่ คุณ เขียน เอง การ แนบ ที่ คำ สั่ง นี้ หา ค่า ปลั๊กอิน ไม่ ได้ จะ หยุด คำ สั่ง แทนที่ จะ ส่ง กราฟ ที่ วาด โดย ไม่มี การ ตัดสิน ใจ ของ ปลั๊กอิน นั้น ให้ คุณ Release ที่ ขยาย Release อื่น จะ ถูก วาด ทั้ง ใน มุม มอง นี้ และ ใน --ir-graphเป็น Release ที่ห่วง โซ่ extends:ประกอบรวม ออก มา ซึ่ง เป็น Release ที่ การ บิลด์ อ่าน ดัง นั้น Release ที่ ระบุ เพียง ตัว แม่ จะ แสดง Aggregate, Manifest และ แนว เขต ของ ตัว แม่ ภาย ใต้ ชื่อ ของ ตัว เอง Manifest ที่ Release ระบุ ก็ ถูก ประกอบ ผ่าน ห่วง โซ่ extends:ของตัว เอง ด้วย ไม่ ว่า Release นั้น จะ ขยาย สิ่ง ใด หรือ ไม่ ดัง นั้น การ แนบ ที่ Manifest นั้น สืบทอด การ แมป มา จึง แสดง การ ทำให้ เป็น รูป ธรรม ที่ การ บิลด์ ใช้ --rawส่งออก ไฟล์ Release ตาม ตัว อักษร โดย ไม่มี ไปป์ไลน์ --closureถามคำถาม closure การที่ ต่าง ออก ไป เกี่ยว กับ Release เดียวกัน และ ไม่ รัน ไปป์ไลน์ เลย ดู พึ่งพา: --closure
ไม่มี--raw / --resolved เป็น
พฤติกรรมเมื่อเกิดข้อผิดพลาด
ไฟล์
Release ที่uses: ที่selector: ของappliesTo: ไม่--raw, --output yaml และ --closure ทำ
Release ที่aggrega build พิมพ์ เมื่อ--resolved, --ir-graph และ --closure จะE0130 ของaggrega pull --release <release> ที่--raw และ --output yaml ตาม
ไฟล์kind: ไม่Workload รายงานoci:// ที่
การหาค่าแค็ตตาล็อก
สแตก--catalog (นำcatalog_dirs ของ.aggrega-config.yaml — สำหรับ Release การworkspace.releases ซึ่งcatalog ที่catalog_dirs เขียนextends: ตัวextends: ที่aggrega pull ดึงaggrega pull --release <release> ไม่มี
การค้นหาชื่อในบริบทของ Release
ชื่อ--release <release-path> ควบคู่--catalog ต่อ
aggrega inspect core/datastore/mariadb --release release-helm-synth.yamlชื่อworkspace.releases เพราะ--release เลือก--release ที่
การอ่านเอนทิตีที่เผยแพร่
aggrega inspect oci://<host>/<repository>:<tag> อ่าน@<digest> แทน :<tag> ระบุaggrega push พิมพ์oci:// ไว้
สิ่ง--raw กับ --output yaml เดียวกัน ไม่มี@<digest> แทน :<tag> ส่วน --output yaml พิมพ์
สิ่ง
คำaggrega push และ aggrega pull อ่าน และ
การ
| สิ่ง | เงื่อนไข |
|---|---|
| ไม่มี | E0137 |
| รีจิสทรี | E0138 |
| พื้นที่ | E0125 |
| อาร์ติแฟกต์ | E0300 |
| ไฟล์ | E0298 |
| ไฟล์ | E0299 |
| เอกสาร | E0301 |
แต่ละ--ir-graph และ --closure ถูก
ประกาศการเลิกใช้และการถอน
ผู้inspect จะ
ประกาศwarning, error หรือ retracted พร้อมretracted ถูกwarning และ error เป็นinspect แสดง
ประกาศaggrega registry update สร้าง
รายงาน
ประกาศ--output yaml และ --ir-graph ไม่
ตัวอย่างที่แสดงวิธีทำ
การค้นหา Component จากแค็ตตาล็อก
$ aggrega inspect core/server:1.0.0 --catalog ./catalog
Component: core/server:1.0.0Schema: | values: { port?: int | *8080 }Uses sockets: db: selector="component.aggrega.ai/type=stateful-server"มุมextends: ใดๆ) และ--detail เพิ่ม--list แสดง
Feature
$ aggrega inspect ./features/metrics.yaml
Feature: core/metrics:1.0.0Schema: | values: { port?: int | *9090 }Uses sockets: backend: selector="component.aggrega.ai/type=stateful-server" inject: [env]Secret slots: token (required)Targeting: appliesTo: component.aggrega.ai/type=serverLabels: feature.aggrega.ai/category: observabilityRecipe ที่มี --show-implements
มุม--show-implements หาspec.implements เทียบ
$ aggrega inspect ./recipes/api-server-recipe.yaml --show-implements --catalog ./catalog
Recipe: core/api-server-recipe:1.0.0Implements: core/api-server:1.0.0Capability: helm## Synthesized workload: inlinevaluesMapping: (none)Implements Component: core/api-server:1.0.0 requires attachment (observability): core/metricsRecipe ที่ประกาศหลายโหมดอินพุต
โหมดsource: ที่workload: ที่artifacts: ต่างinspect รายงาน
$ aggrega inspect ./recipes/api-server-composed.yaml
Recipe: core/api-server-composed:1.0.0Implements: core/api-server:1.0.0Capability: helm## Sourced source: oci://charts.example.com/api-server:2.1.0## Synthesized workload: inlinevaluesMapping: inline templateArtifacts: 2 - servicemonitor.yaml - networkpolicy.yamlส่วนsource: → workload: → artifacts: ซึ่งsource: และ workload: จะ
Manifest (หาค่าแล้วเป็นค่าเริ่มต้น)
$ aggrega inspect ./prod-manifest.yaml
Manifest: prod-manifest:1.0.0
Component Mappings: Type → Recipe core/compute/api-server helm-api-server-synthesized-with-artifacts:1.0.0 core/compute/web-ui helm-web-ui-synthesized-with-artifacts:1.0.0 core/datastore/postgres helm-postgres-synthesized-with-artifacts:1.0.0
Feature Mappings: Type → FeatureRecipe core/k8s-dns-resolver k8s-dns-patcher:1.0.0
Annotation Bindings: (none)มุมextends: ของ Manifest และ--raw แสดง
Aggregate (หาค่าแล้วเป็นค่าเริ่มต้น)
$ aggrega inspect ./fullstack-app.yaml
Aggregate: fullstack-app:1.0.0
Components: backend (type: core/compute/api-server) Values: (none) Uses: databases: - data.main-db frontend (type: core/compute/web-ui) Values: (none) Uses: apis: - my-api → backend main-db (type: core/datastore/postgres) Values: database_name: app_production Uses: (none)
Dependency Graph: data.main-db ↑ backend backend ↑ frontendมุม--flat เรนเดอร์
การ
gateway (type: conn/gateway) Values: region: eu Uses: models: - gpt → model - gpt.credential (feature.conn/token) [slot: credential, sensitive]สล็อต
Release (หาค่าแล้วเป็นค่าเริ่มต้น)
มุม
$ aggrega inspect ./prod-release.yaml --catalog ./catalog
Release: prod-release:1.0.0
Boundary: backend-ns Directory: ./dist/backend Annotations (provider-consumed): aggrega.ai/namespace: backend-zone Component: backend (type: core/compute/api-server:1.0.0) Uses: data.main-db → data.main-db [cross-boundary] Features: (none)
Boundary: frontend-ns Directory: ./dist/frontend Annotations (provider-consumed): aggrega.ai/namespace: frontend-zone Component: frontend (type: core/compute/web-ui:1.0.0) Uses: my-api → backend [cross-boundary] Features: - cross-namespace-routing (core/k8s-dns-resolver:1.0.0) [free, realization: k8s-dns-patcher:1.0.0] [explicit]
Boundary: data-ns Directory: ./dist/data Annotations (provider-consumed): aggrega.ai/namespace: database-zone Component: data.main-db (type: core/datastore/postgres:1.0.0) Features: (none)แต่ละ--flat ยุบ--raw ส่ง
เอาต์พุต YAML
$ aggrega inspect core/server:1.0.0 --output yaml --catalog ./catalog
apiVersion: aggrega.ai/v1beta1kind: Componentmetadata: name: core/server version: 1.0.0 labels: component.aggrega.ai/type: serverspec: usesSchema: db: selector: component.aggrega.ai/type=stateful-server schema: values: port: {type: integer, default: 8080}Component ที่extends: คุณ
เอาต์พุตที่เครื่องอ่านได้
แฟล็ก--output เลือก รูป--ir-graph ขอ เอกสาร
--output yaml ส่ง
กราฟที่คอมไพล์แล้ว: --ir-graph
aggrega inspect <release> --ir-graph เขียน
ใช้
การ
แฟล็กaggrega build และ aggrega validate ด้วย แต่ละ
--output yaml ไม่--ir-graph แทน และ
กราฟ
"values": { "secretName": "db-creds", "vault": { "token": { "aggrega_withheld": "declared" } }}คีย์secretName ข้างdeclared สำหรับunreadable เมื่อ
การvalues ต่อuses และ infra ต่อvalueSchema และ infraSchema ที่sensitive: true จะvalues และ infra ของuses ของsensitive_payload_leaves ซึ่ง
ระบุ --unredacted เมื่อaggrega build และ aggrega validate รับ--ir-graph ตาม
โปรโตคอลaggrega/irGraph ตอบunredacted ซึ่ง
closure การพึ่งพา: --closure
aggrega inspect <release> --closure รายงาน closure การ
closure และ
คำ--closure ที่aggrega/releaseClosure บนaggrega serve “closure ไม่ใช่describe บนdescribe จะ
เป็น--closure เลือก closure แทน--raw, --resolved, --output หรือ --ir-graph ไม่
ใช้
แต่ละ
ระดับ--list พิมพ์aggrega build พิมพ์--detail เพิ่ม
$ aggrega inspect ./release.yaml --catalog ./catalog --closure
Release: prod-release:1.0.0 Aggregate: fullstack-app Manifest: prod-manifest Environment: production
Entities (11): ./aggregate.yaml ./manifest.yaml core/compute/api-server (1.0.0) core/compute/web-ui (1.0.0) core/datastore/postgres (1.0.0) core/k8s-dns-resolver (1.0.0) db-module (1.0.0) helm-api-server-synthesized-with-artifacts:1.0.0 (1.0.0) helm-postgres-synthesized-with-artifacts:1.0.0 (1.0.0) helm-web-ui-synthesized-with-artifacts:1.0.0 (1.0.0) k8s-dns-patcher:1.0.0 (1.0.0)เมื่อ
อนุประโยคการเชื่อมต่อ สล็อต และความละเอียดอ่อนของการแนบ
การ
การUses: ไม่ใช่Features: ดังFeatures: จึง
[socket: <socket>]— ซ็อกเก็ตที่ การ เชื่อม ต่อ เชื่อม ผ่าน ซึ่ง บรรทัด ของ การ เชื่อม ต่อ ไม่ ระบุ อยู่ หน้า สุด ของ อนุประโยค เพราะ เปลี่ยน วิธี อ่าน ส่วน ที่ เหลือ ครึ่ง สล็อต ที่ ตาม มา ระบุ สล็อต ที่ ซ็อกเก็ต ของ การ เชื่อม ต่อ ประกาศ ไม่ใช่ สล็อต ที่ ส่วน ประกอบ ประกาศ ไว้ สำหรับ การ แนบ ของ ตนเอง [connection: <alias> through socket <socket>]— ข้อเท็จ จริง เดียวกัน สำหรับ การ แนบ ที่ บล็อก Uses:ไม่แสดง บรรทัด ของ การ เชื่อม ต่อ ที่ เกี่ยวข้อง ซึ่ง จึง อยู่ ใต้ Features:และระบุ การ เชื่อม ต่อ ไว้ ที่ นี่ แทน ไม่ ว่า กรณี ใด การ เชื่อม ต่อ ถูก ระบุ หนึ่ง ครั้ง ต่อ การ แนบ ไม่ ระบุ สอง ครั้ง เลย [slot: <name>]— การแนบ เติม สล็อต ที่ ชื่อ <name>สล็อตถูก เติม โดย แนบ Feature ภาย ใต้ ชื่อ ของ สล็อต เอง ดัง นั้น <name>คือชื่อ ที่ การ แนบ ถูก เขียน ไว้ ใต้ ชื่อ นั้น จับ คู่ กับ สล็อต ที่ ประกาศ ได้แก่ featuresSchemaของ Component เจ้าของสำหรับ การ แนบ ของ ตนเอง และ featuresSchemaที่ซ็อกเก็ต ของ การ เชื่อม ต่อ ประกาศ สำหรับ การ แนบ ที่ เขียน บน การ เชื่อม ต่อ [free]— การแนบ ไม่ เติม สล็อต ที่ ประกาศ ใด Component ที่ หา ค่า แล้ว ไม่ ประกาศ สล็อต featuresSchemaชื่อนั้น นี่ คือ ข้อ ค้น พบ ไม่ใช่ การ วินิจฉัย การ แนบ แบบ อิสระ ได้ รับ การ ยอมรับ และ ผู้ ดำเนิน การ ที่ ต้องการ ห้าม ก็ แสดง เป็น นโยบาย การ กำกับ ดูแล แทนที่ จะ พึ่ง ให้ เครื่อง มือ ปฏิเสธ [sensitive]— การแนบ จัดการ เนื้อหา ที่ ผู้ เขียน ประกาศ ว่า ละเอียด อ่อน เพราะ Feature ที่ แนบ ประกาศ ใบ ที่ ละเอียด อ่อน หรือ เพราะ สล็อต ที่ เติม ประกาศ sensitive: trueหรือทั้ง สอง อย่าง [realization: <name>:<version>]— FeatureRecipe ที่ Manifest ของ Release ผูกให้การ แนบ โดย ใช้ ชื่อ ของ การ แนบ เอง เมื่อ Manifest แมป ชื่อ นั้น — สำหรับ การ แนบ ที่ เขียน บน การ เชื่อม ต่อ คือ นามแฝง และ สล็อต ที่ ต่อ กัน ด้วย จุด — หรือ ไม่ เช่น นั้น ใช้ ชนิด Feature ของ การ แนบ เป็นการ ทำให้ เป็น รูป ธรรม ที่ บิลด์ ของ เอกสาร ชุด เดียวกัน ใช้ เรนเดอร์ การ แนบ และ เป็น ค่า เดียว กับ ที่ กราฟ ที่ คอมไพล์ แล้ว มี บน การ แนบ เป็น realization(ดู--ir-graph) มุมมอง นี้ และ กราฟ จึง ระบุ คนละ รายการ ไม่ ได้ อยู่ ท้าย สุด ของ อนุประโยค
เมื่อcore/storage/s3-object-store ประกาศsecret_access_key ที่sensitive: true ดัง
Features: - secret_access_key (core/generated-secret:1.0.0) [slot: secret_access_key, sensitive, realization: generated-secret:1.0.0] [explicit] - cross-namespace-routing (core/k8s-dns-resolver:1.0.0) [free, realization: k8s-dns-patcher:1.0.0] [explicit]ส่วนmodels ประกาศcredential ที่sensitive: true และgpt ที่Features::
Uses: gpt → model - gpt.credential (feature.conn/token:1.0.0) [socket: models, slot: credential, sensitive, realization: conn-token-compose:1.0.0] [explicit] Features: - db_password (feature.conn/token:1.0.0) [slot: db_password, sensitive, realization: conn-token-compose:1.0.0] [explicit]การ[free] เลย เพราะ
อนุประโยค
- ไม่มี
ครึ่ง หมายความซ็อกเก็ต หรือ การ เชื่อม ต่อ ว่าการ แนบ ถูก เขียน บน บล็อก ของ ส่วน ประกอบ เอง หรือ มา ถึง จาก ขอบเขต ที่ กว้าง กว่า หรือ จาก การ ขยาย ที่ ขับ เคลื่อน ด้วย คำ อธิบาย ประกอบ - ไม่มี
ครึ่ง หมายความสล็อต ว่า หา ค่า ชุด สล็อต ที่ Component เจ้าของ ประกาศ ไม่ ได้ เช่น ชนิด ของ Component นั้น ไม่ ตรง กับ เอนทิตี แค็ตตาล็อก ใด นี่ ต่าง จาก [free]โดยตั้งใจ [free]ตอบว่า “ไม่มี สล็อต ชื่อ นั้น ประกาศ ไว้” ขณะ ที่ ครึ่ง ที่ ขาด หมายความ ว่า ตอบ คำถาม ไม่ ได้ เลย - ไม่มี
sensitiveบันทึกว่า ไม่มี การ ประกาศ ใด ทำ เครื่องหมาย การ แนบ ซึ่ง แคบ กว่า คำ ตัดสิน ว่าการ แนบ ไม่มี ข้อมูล ลับ มิติ นี้ รายงาน การ ประกาศ และ ไม่ อนุมาน สิ่ง ใด จาก ชื่อ หรือ ค่า ของ ฟิลด์ - ไม่มี
ครึ่ง หมายความการ ทำให้ เป็น รูป ธรรม ว่า Manifest ไม่ ผูก การ แนบ กับ FeatureRecipe ใด ที่ แค็ตตาล็อก มี
สล็อตfree ตาม[free] เช่น
ไวยากรณ์วงเล็บเหลี่ยมที่มาของ IR
การ
เนื้อหาวงเล็บเหลี่ยมสามแบบ
-
[explicit]— การแนบ Feature ผู้เขียน Aggregate หรือ Release ระบุประกาศ เอง ชื่อ Feature บน โหนด ที่ ได้ รับ ผลอ ย่าง ชัดเจน การ แนบ แบบ ชัดเจน เป็น แหล่ง ที่ มี ลำดับ ความ สำคัญ สูงสุด และ ชนะ การ มี ส่วน ที่ ขับ เคลื่อน ด้วย คำ อธิบาย ประกอบ ที่ ใบ เดียวกัน เสมอ -
[annotation: <key> from <source>]— การแนบ Feature ขับเคลื่อน คอมไพเลอร์ด้วย คำ อธิบาย ประกอบ สังเคราะห์ ขึ้น เพราะ คำ อธิบาย ประกอบ บน <source>ตรงกับ การ ผูก ของ Manifest ที่ ประกาศ Feature นี้ <key>คือคีย์ คำ อธิบาย ประกอบ ที่ ทำให้ การ ผูก ทำงาน (เช่น business.aggrega.ai/team)<source>คือเอนทิตี ที่ มี คำ อธิบาย ประกอบ ( aggregate,release,componentหรือmanifest) การแนบ ที่ สังเคราะห์ ขึ้น มี โครงสร้าง เหมือน แบบ ชัดเจน ทุก ประการ การ เรนเดอร์ ปลาย ทาง ปฏิบัติ กับ ทั้ง สอง เหมือน กัน แต่ วงเล็บ เหลี่ยม ที่มา แยก ทั้ง สอง ออก จาก กัน การ ดีบัก จึง ตัดสิน ได้ -
[explicit; overrides annotation: <key> from <source>]— รูปแบบ การต่อ ใบ ที่ เกิด เมื่อ ประกาศ ที่โดย ผู้ เขียน อย่าง ชัดเจน ใบ การหนึ่ง กด ทับ มี ที่ส่วน ของ คำ อธิบาย ประกอบ มิ ฉะนั้น จะ ตั้ง ค่า ใบ เดียวกัน การ ประกอบ ข้าม ฝั่ง ก่อ ให้ เกิด กรณี นี้ คำ อธิบาย ประกอบ ของ Aggregate อาจ ให้ เสา หลัก values:ของ Feature คำอธิบาย ประกอบ ของ Release ให้ เสา หลัก infra:และการ ประกาศ Release อย่าง ชัดเจน บน Feature เดียวกัน ทับ ใบ infra หนึ่ง ใบ วงเล็บ เหลี่ยม ของ ใบ บันทึก ทั้ง ผู้ เขียน อย่าง ชัดเจน และ คำ อธิบาย ประกอบ ที่ ถูก กด ทับ คำ อธิบาย ประกอบ ที่ ถูก กด ทับ ไม่มี ส่วน กับ เอาต์พุต ที่ เรนเดอร์ แต่ การ มี อยู่ ของ คำ อธิบาย ประกอบ นั้น ปรากฏ ใน มุม มอง inspect เพื่อ ให้ ผู้ ดำเนิน การ เห็น ว่า คำ อธิบาย ประกอบ ใด ถูก ทับ และ ที่ ใด
รูปแบบกะทัดรัดเทียบกับรูปแบบต่อลีฟ
คอมไพเลอร์values: และ infra: ของ Feature) มี
- core/rate-limiter [annotation: business.aggrega.ai/team from aggregate]เมื่อvalues: และinfra: บน Feature เดียวกัน — คอมไพเลอร์
- core/pii-redaction values.fields_to_mask: ["ssn", "card_number"] [annotation: compliance.aggrega.ai/data-class from aggregate] values.classifier_endpoint: "redact-v2" [explicit; overrides annotation: compliance.aggrega.ai/data-class from aggregate] infra.audit_bucket: "s3://..." [annotation: compliance.aggrega.ai/audit-bucket from release]ลำดับvalues. / infra.) และ
ค่าที่ประกาศว่าละเอียดอ่อน
ใบsensitive: true จะ<redacted> แทนValues: ต่อ--ir-graph ปกปิด
Components: app (type: core/app) Values: appName: demo dbPassword: <redacted> tuning.poolSize: 25 tuning.adminToken: <redacted>ปกปิด[sensitive] ระดับ
- credentials (feature.test/db-credential) values.secretName: db-creds [explicit] values.literalPassword: <redacted> [annotation: feature.test/pw from aggregate.yaml:components.app.annotations.feature.test/pw]ไม่มีpassword ที่key ไม่dist/ ถูกvocabulary/compact-form-authoring.md “การ
การแสดงค่าที่เก็บไว้ไม่บอก
--unredacted พิมพ์inspect พร้อม
แฟล็กaggrega build และ aggrega validate รับ--ir-graph ส่งaggrega build --trace-unredacted เป็นdist/ ไม่
สิ่ง
เมื่อใดควรใช้ inspect
- ดีบัก
คำถาม “ทำไม Feature นี้ — การอยู่ ที่ นี่?” แนบ ที่ ขับ เคลื่อน ด้วย คำ อธิบาย ประกอบ มอง ไม่ เห็น ใน ไฟล์ YAML ของ Aggregate และ Release (คำ อธิบาย ประกอบ อยู่ ที่ นั่น แต่ การ แนบ Feature ที่ สังเคราะห์ จาก คำ อธิบาย ประกอบ เหล่า นั้น อยู่ ใน IR เท่านั้น) Inspect แสดง สิ่ง เหล่า นั้น พร้อม ที่มา - ตรวจ
สอบ —การ สืบทอด สคีมา aggrega inspect <ComponentName>แสดงสคีมา ที่ รวม แล้ว หลัง ห่วง โซ่ extends:หาค่า ส่วน ไฟล์ ที่ เขียน เพียง อย่าง เดียว แสดง เฉพาะ ส่วน ต่าง ภายใน ไฟล์ - วินิจฉัย
ผล — เมื่อที่ ไม่ คาด คิด จาก การ ประกอบ ข้าม ฝั่ง คำ อธิบาย ประกอบ ของ Aggregate และ ของ Release ต่าง ให้ เพย์โหลด เสา หลัก บน Feature เดียวกัน ใบ ที่ หา ค่า แล้ว อาจ สร้าง ขึ้น ใหม่ ใน ใจ ได้ ยาก รูป แบบ วงเล็บ เหลี่ยม ต่อ ใบ ทำให้ การ หา ค่า ชัดเจน - การ
ตรวจ —สอบ ก่อน การ ปรับ ใช้ aggrega inspect ./prod-release.yamlแสดงทุก Feature บน ทุก Component ก่อน ที่ aggrega buildจะผลิต อาร์ติแฟกต์ ผู้ ดำเนิน การ ยืนยัน ได้ ว่า โทโพโลยี ตรง กับ เจตนา ก่อน คอมมิต แมนิเฟสต์ ที่ เรนเดอร์ ลง GitOps
สำหรับ
รูป
aggrega inspect [identifier] [flags]คำ
Render a readable view of any Aggrega entity — a catalog entity by name, anauthored entity file by path, an entity published in a registry, or afully-resolved Release.
It answers "what does this entity actually resolve to?": which entities extendwhich bases, which Recipe maps to each type, which Features attach to each node,and where each Feature's contributions came from.
A single argument routes by its shape. A path — anything starting with ./, ../or /, or ending in .yaml or .yml — is read as a file and inspected by its ownkind: header. A registry reference — oci://<host>/<repository>:<tag>, or@<digest> in place of :<tag> — is read from the registry that publishes it.Anything else is looked up by name in the catalog search stack: theworkspace's own, or, with --release, the one the workspace configurationgives that Release, so a name several catalog variants declare, one perRelease, resolves to the variant that Release builds with.
A registry reference shows the entity exactly as it was published: unpackedfrom the archive its kind is published as where it is one, and rendered by thesame view a file of that kind gets. Reading it reaches the network, using thecredentials this machine holds for that registry, and an offline workspacerefuses it. The fetched bytes are checked against the digest the artifact'sown manifest records for them, which establishes that they are the bytes thatmanifest names and nothing more: no signature attached to the artifact isverified, no withdrawal recorded against it is reported, and nothing iswritten — no cache entry and no lockfile.
Three verbosity levels apply to every kind: --list for identifiers only, thedefault for a structured overview, and --detail for full field bodies. --listand --detail are mutually exclusive. Resolution depth has its own pair, --rawfor the entity exactly as authored and --resolved for the kind's full depth,also mutually exclusive.
Note that --raw reproduces the file as written, so a value the author declaredsensitive appears as authored. That is what as-authored means; handle suchoutput as you would the entity file itself. --output yaml reproduces the filethe same way for every kind, a Release included.
A Release answers two further questions, and each has its own flag becauseneither answer contains the other. --ir-graph asks for the IR graph a Releaseresolves to — what the Release looks like, as JSON on stdout in addition towhatever else this command produces. --closure asks for the Release's dependencyclosure — every catalog entity it reaches and the version each resolved to,which is what was pulled in to build the Release. An entity can be reachedwithout appearing as a node, and a node does not carry the version its typeresolved to, so holding one of the two is not holding the other.
--ir-graph is orthogonal to --output, which picks the format of the command'sown view. Values an author declared sensitive are withheld from the graph, asthey are from the readable layouts. Pass --unredacted to print them instead.แฟล็ก
| แฟล็ก | ค่า | คำ |
|---|---|---|
--catalog | [] | ไดเรกทอรี<dir> ถูก |
--closure | false | รายงาน closure การ |
--color | auto | ใส่ |
--detail | false | เรนเดอร์ |
--flat | false | เรนเดอร์ |
--ir-graph | false | เขียน |
--list | false | เรนเดอร์ |
--no-color | false | ปิด |
--output, -o | text | รูป |
--plugin | — | เส้น<file.wasm> ดิบ สืบหา |
--raw | false | เรนเดอร์ |
--release | — | ค้นหา |
--resolved | false | เรนเดอร์ |
--show-implements | false | สำหรับ Recipe หรือ FeatureRecipe หา |
--unredacted | false | พิมพ์ |