@inneranimalmedia/agentsam-sdk 2.6.12 → 2.6.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTSAM.md +32 -0
- package/DEVELOPMENT.md +69 -74
- package/README.md +11 -0
- package/apps/cad-creator/README.md +12 -0
- package/apps/cad-creator/shared/cad/package.json +1 -1
- package/apps/cad-creator/shared/cad/src/domain/project-contract.js +2 -75
- package/apps/cad-creator/shared/cad/src/domain/project-tools.js +2 -24
- package/apps/cad-creator/shared/cad/src/types.ts +2 -2
- package/apps/client-cms-editor/backend/package.json +2 -2
- package/apps/client-cms-editor/frontend/package.json +3 -3
- package/apps/client-cms-editor/frontend/src/adapters/http.ts +25 -13
- package/apps/client-cms-editor/frontend/src/editor/CmsEditor.tsx +7 -4
- package/apps/client-cms-editor/frontend/src/editor/canvas/PreviewCanvas.tsx +31 -3
- package/apps/client-cms-editor/frontend/src/editor/host-preview.test.tsx +104 -0
- package/apps/client-cms-editor/package-lock.json +8 -8
- package/apps/client-cms-editor/package.json +2 -1
- package/apps/client-cms-editor/shared/cms/package.json +1 -1
- package/docs/AUTORAG.md +2 -0
- package/docs/CAPABILITIES.md +28 -0
- package/docs/adr/ADR-0003-copro-clean-room-product-architecture.md +6 -0
- package/docs/architecture/AGENTSAM-CANONICAL-DISCOVERY-FIRST-SLICE.md +70 -0
- package/docs/architecture/AGENTSAM-REGISTRY-CLI-AGENT-PARITY.md +133 -0
- package/docs/architecture/AGENTSAM_APPLICATION_CONTRACT.md +6 -0
- package/docs/architecture/CAD_OPERATOR_CAPABILITIES.md +64 -0
- package/docs/architecture/CAD_ROBOTICS_RELEASE_LEDGER_20261016.md +43 -0
- package/docs/architecture/CAD_RUN_MODES.md +34 -0
- package/docs/architecture/CLI-BOOT-REMOTE-DB-READINESS-20261015.md +65 -0
- package/docs/architecture/EXISTING-MCP-D1-AGENT-BRIDGE.md +47 -0
- package/docs/architecture/PLAN-PORTABILITY-SAM-FIRST-SPRINT-20261015.md +36 -0
- package/docs/architecture/PLUGIN-PRODUCTIZATION-SPINE.md +101 -0
- package/docs/architecture/SAMOS_PRODUCT_MODEL.md +49 -0
- package/docs/architecture/SAM_KERNEL.md +40 -0
- package/docs/architecture/SAM_RESOURCE_CRUD_STANDARD.md +96 -0
- package/docs/architecture/SAM_SYSTEMATIC_AUTONOMOUS_MACHINERY.md +79 -0
- package/docs/architecture/USER_GLOBAL_AGENT_INSTRUCTIONS.md +55 -0
- package/docs/autorag-workflow.md +13 -0
- package/docs/brand/AGENT_SAM_ICON_GRAMMAR.md +4 -0
- package/docs/contracts/capability-install-planner.md +66 -38
- package/docs/contracts/environment-vocabulary.md +5 -5
- package/docs/engineering/SUPERBASH_LOCAL_RUNTIME.md +100 -0
- package/docs/generated/SDK_CAPABILITY_INVENTORY.md +313 -0
- package/docs/handoffs/AGENT_HANDOFF_SUPERBASH_AND_MODEL_PERFORMANCE_2026-10-14.md +134 -0
- package/docs/intake/product-capabilities.proposed.ts +232 -0
- package/docs/knowledge-supabase-node-api.md +51 -0
- package/docs/plans/MEDIA_TRUTH_SOURCE_RECOVERY_20261008.md +31 -0
- package/docs/plans/OFFLINE_CLI_KNOWLEDGE_AGENT_HANDOFF.md +104 -0
- package/docs/plans/OFFLINE_CLI_KNOWLEDGE_RUNBOOK.md +81 -0
- package/docs/plans/SAM_EXPERIENCE_AGENT_DISPATCH_2026-10-15.md +107 -0
- package/docs/plans/SAM_MACHINERY_TO_EXPERIENCE_2026-10-15.md +172 -0
- package/docs/plans/UI_POLISH_DESKTOP_2026-10-16.md +102 -0
- package/docs/plans/WORK-UX-REMASTER-2026-10-15.md +48 -0
- package/docs/plans/WORK-WORKSPACE-PLAN-2026-10-14.md +212 -0
- package/docs/product/AGENTSAM-UI-QUALITY-GATE.md +148 -0
- package/docs/product/AGENTSAM_PRODUCT_EXPERIENCE_STANDARD.md +2 -0
- package/docs/product/MEDIA-PRODUCTION-FAMILY.md +47 -0
- package/docs/product/OFFER-PORTFOLIO.md +14 -0
- package/docs/product/PACKAGE-TAXONOMY.md +17 -0
- package/docs/product/PLUGIN-GALLERY-DISCOVERY-AND-INSTALL.md +97 -0
- package/docs/product/README.md +2 -0
- package/docs/product/WIDGET-GALLERY-PHASE-ONE.md +43 -0
- package/docs/reference/AGENTSAM-CLI-WORKFLOWS.md +73 -0
- package/docs/reference/AGENTSAM-ERROR-REASONS.md +267 -0
- package/docs/reference/AGENTSAM-REGISTRY.generated.md +288 -0
- package/docs/reference/INNERANIMALMEDIA_EXPERIENCE_ACCEPTANCE_2026-10-15.md +99 -0
- package/docs/releases/cad-v2-sdk-2.6.13.md +25 -0
- package/docs/roadmaps/ROAD_TO_REAL_DISTRIBUTION.md +97 -0
- package/docs/robotics-chess-handoff.md +15 -0
- package/docs/standards/DELIVERY_CLOSURE.md +33 -0
- package/docs/standards/SAM_MACHINE_BUILD_AND_GAPS.md +91 -0
- package/docs/workflows/ISSUE_TO_SAMOS.md +59 -0
- package/package.json +60 -8
- package/packages/agentsam-brand/package.json +1 -1
- package/packages/agentsam-cms/README.md +56 -0
- package/packages/agentsam-cms/agentsam.package.json +46 -0
- package/packages/agentsam-cms/package.json +36 -0
- package/packages/agentsam-cms/src/aliases.js +74 -0
- package/packages/agentsam-cms/src/contracts.js +105 -0
- package/packages/agentsam-cms/src/index.d.ts +80 -0
- package/packages/agentsam-cms/src/index.js +3 -0
- package/packages/agentsam-cms/src/machine.js +221 -0
- package/packages/agentsam-cms/src/node-sqlite-repository.js +148 -0
- package/packages/agentsam-cms/src/node.d.ts +7 -0
- package/packages/agentsam-cms/src/node.js +1 -0
- package/packages/agentsam-cms/src/schema/cms-local-runtime.v1.sql +365 -0
- package/packages/agentsam-cms/test/standalone.test.mjs +28 -0
- package/packages/agentsam-contracts/agentsam.package.json +43 -0
- package/packages/agentsam-contracts/dist/errors.d.ts +1 -1
- package/packages/agentsam-contracts/dist/widgets.d.ts +7 -0
- package/packages/agentsam-contracts/package.json +1 -1
- package/packages/agentsam-contracts/src/errors.ts +1 -1
- package/packages/agentsam-contracts/src/widgets.ts +7 -0
- package/packages/agentsam-desktop-shell/README.md +38 -0
- package/packages/agentsam-desktop-shell/scripts/app-discovery.mjs +43 -0
- package/packages/agentsam-errors/README.md +14 -0
- package/packages/agentsam-errors/agentsam.package.json +43 -0
- package/packages/agentsam-errors/package.json +1 -1
- package/packages/agentsam-errors/protocol/error-catalog.json +12 -0
- package/packages/agentsam-errors/src/cli.js +56 -0
- package/packages/agentsam-errors/src/index.js +2 -0
- package/packages/agentsam-errors/src/vocabulary.js +2 -0
- package/packages/agentsam-errors/test/approval-contract.test.mjs +12 -0
- package/packages/agentsam-errors/types/index.d.ts +5 -1
- package/packages/agentsam-goap/agentsam.package.json +42 -0
- package/packages/agentsam-goap/package.json +2 -2
- package/packages/agentsam-hooks/agentsam.package.json +45 -0
- package/packages/agentsam-hooks/bindings/go/errors_generated.go +1 -0
- package/packages/agentsam-hooks/bindings/rust/src/errors_generated.rs +1 -0
- package/packages/agentsam-hooks/package.json +1 -1
- package/packages/agentsam-hooks/src/errors-generated.js +10 -0
- package/packages/agentsam-ide/README.md +59 -0
- package/packages/agentsam-ide/src/lsp/host.d.mts +13 -0
- package/packages/agentsam-ide/src/lsp/host.mjs +133 -0
- package/packages/agentsam-knowledge/agentsam.package.json +42 -0
- package/packages/agentsam-knowledge/package.json +1 -1
- package/packages/agentsam-knowledge/src/autorag/index.js +25 -4
- package/packages/agentsam-knowledge/src/backends/index.js +21 -1
- package/packages/agentsam-knowledge/src/backends/supabase-node-api.js +91 -0
- package/packages/agentsam-knowledge/test/autorag.test.mjs +13 -0
- package/packages/agentsam-knowledge/test/supabase-node-api.test.mjs +59 -0
- package/packages/agentsam-merch/agentsam.package.json +43 -0
- package/packages/agentsam-merch/package.json +1 -1
- package/packages/agentsam-nav/dist/browser.global.js +18 -21
- package/packages/agentsam-nav/dist/browser.js +4 -3
- package/packages/agentsam-nav/dist/index.js +4 -3
- package/packages/agentsam-nav/package.json +1 -1
- package/packages/agentsam-queue-control/agentsam.package.json +42 -0
- package/packages/agentsam-queue-control/package.json +1 -1
- package/packages/agentsam-rapid-rust/Cargo.toml +5 -0
- package/packages/agentsam-rapid-rust/agentsam.package.json +42 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/0b22ca9c5f8cddc15e6816df4a2467a28d41aa174361cdfed9019ee4e04dfbb8.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/0c5064875a5d7645013880f04d71f56c0dfa1bc87ac9fd59adc3e9a93a2745da.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/11ebd15702c169ee0666656be851cc549f70f84498dbca3c5b72d2ceaa91c851.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/1d7f2c8ad9588cd2077a1d07fce156e0bd47be686d8c9f26885bab14874c4ab5.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/1f21ba21e7b631b0d4893cbdd7a6bb7345d34e8b1a0ee9cf644cc30aeb3c8b8d.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/23f4d4b90def0782de32e7a57558cba24525f12ba3c009728ea4881259a74099.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/26b60985b6ef62e4f20e06c37e47c6996c1a2f457335fa9eb4a68d1288e18490.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/2b27d15a1b8c3637a56f631d583cc9ba584bed2b7018dd962a9340d5e1c50a1d.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/3110a5568a544c4c38de6585dcdabc21fa5f54a5772ecf4e1f4076ee0d49e933.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/357ce3db8299e01866bf4fc3d8ee1c784ef53c7455cf86bb17c52f3dad20d050.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/4516c6e03636538cacc7a6e4063d98a7ed2f0090c3a02c5ee817f1c512b1070e.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/649e02dbaec2edabbd40372e0c5f72f114164fe7704e7825220b1955f6a7c74e.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/81c266d4c150a4f6c5a73c9c4fef6541577fd0acd8c1f911f02781deb5f0be0f.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/86b4b8de30eed9902750b3de9fb54276d229244671a8b6035345bbe705463d82.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/8a877fdc5dbc6a66c344b4ebc4d9b746d47f95153e98872210becd85ca941ddd.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/96a11200f7b42ddd1281e4f749e88dcb8455ab0e3883f943934e0a9a7935147a.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/9e2df2335cfc73ec021bdd6b2d34af798f6ed9c52e3061ce16b6ceabae4e275f.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/a405fe3addeaab2908ed58836997be3b679d990ec9102d06bece3569e4bd4a81.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/a63915da0a45f86a5938ba9a2b2e87d469e7d07f7ea9cc531136fdc9e055557e.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/a8452c2dcaa959ced25e3597931b311999c0aa5b257ca8610fe415e8cfa598cc.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/b35fc2ae65ea07fbbfdd242a3d76489947462399e7a2db91f8545ca50d97d86f.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/b966932defe9c7b5ec9599c9276d333bd09ad1605adae80300d825d2161ad20c.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/ca9060e5ccb91f3a2663f57afd47a25099b6b3313c2a7436c4634993ff6e9afc.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/d0eba82a259be203c68c3ebf6d5b8a376f31a3b84fad418fdb9b5e2715c59869.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/d8838513009c65079aba67314ab130920484c674c5f0b8a356c8777eb6174eb2.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/dda01925b7f0a213215b983979ce23625dd0f6cfdb49c483ec1ff73e64def56f.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/e4956d8f97608f8324607b22cc93635d8183b23021d79cb4c21668c8b8a6ce87.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/e80c1e517e7173dcbde78869d2bf67a24a11b0bb9df5a87fb12934e39497abc8.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/eeeaa9394ac979eb4ffa557e97d67ed96dbd61437e09058f7c776bdc0483f050.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/f9264d8d7d1ccfb415362a28b4a1b4fa0dfbdf828ff970d1aaecfb0ebe208978.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/f957a80b89d32af4f33f9f840b4795af1b5145fc44780ad88a6a3b1b3a7ea3bc.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_2b0d196f16961f88/asset-manifest.json +418 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_2b0d196f16961f88/findings.json +308 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_2b0d196f16961f88/frontend-manifest.json +70 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_2b0d196f16961f88/graph.json +322 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_2b0d196f16961f88/inventory.json +932 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_2b0d196f16961f88/summary.json +21 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_2d70e3d4fe8290fb/asset-manifest.json +418 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_2d70e3d4fe8290fb/findings.json +308 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_2d70e3d4fe8290fb/frontend-manifest.json +70 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_2d70e3d4fe8290fb/graph.json +322 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_2d70e3d4fe8290fb/inventory.json +932 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_2d70e3d4fe8290fb/summary.json +21 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_63fab76b2f18c2f0/asset-manifest.json +418 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_63fab76b2f18c2f0/findings.json +308 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_63fab76b2f18c2f0/frontend-manifest.json +70 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_63fab76b2f18c2f0/graph.json +322 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_63fab76b2f18c2f0/inventory.json +932 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_63fab76b2f18c2f0/summary.json +21 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_72fe856b80b0c46f/asset-manifest.json +418 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_72fe856b80b0c46f/findings.json +300 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_72fe856b80b0c46f/frontend-manifest.json +70 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_72fe856b80b0c46f/graph.json +322 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_72fe856b80b0c46f/inventory.json +932 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_72fe856b80b0c46f/summary.json +21 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_a5834156504f3050/asset-manifest.json +418 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_a5834156504f3050/findings.json +308 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_a5834156504f3050/frontend-manifest.json +70 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_a5834156504f3050/graph.json +322 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_a5834156504f3050/inventory.json +932 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_a5834156504f3050/summary.json +21 -0
- package/packages/agentsam-repository/README.md +25 -0
- package/packages/agentsam-repository/agentsam.package.json +42 -0
- package/packages/agentsam-repository/package.json +6 -3
- package/packages/agentsam-repository/src/crawl.js +220 -0
- package/packages/agentsam-repository/src/index.js +3 -0
- package/packages/agentsam-repository/src/merkle/semantic.js +20 -0
- package/packages/agentsam-repository/src/refinery.js +96 -0
- package/packages/agentsam-repository/test/crawl-refinery.test.mjs +113 -0
- package/packages/agentsam-site-scrape/README.md +357 -0
- package/packages/agentsam-site-scrape/agentsam_site_scrape/__init__.py +4 -0
- package/packages/agentsam-site-scrape/agentsam_site_scrape/__main__.py +349 -0
- package/packages/agentsam-site-scrape/agentsam_site_scrape/classify.py +80 -0
- package/packages/agentsam-site-scrape/agentsam_site_scrape/config.py +83 -0
- package/packages/agentsam-site-scrape/agentsam_site_scrape/contract.py +108 -0
- package/packages/agentsam-site-scrape/agentsam_site_scrape/crawl.py +395 -0
- package/packages/agentsam-site-scrape/agentsam_site_scrape/evidence.py +226 -0
- package/packages/agentsam-site-scrape/agentsam_site_scrape/htmlparse.py +109 -0
- package/packages/agentsam-site-scrape/agentsam_site_scrape/imageops.py +121 -0
- package/packages/agentsam-site-scrape/agentsam_site_scrape/jsonrun.py +127 -0
- package/packages/agentsam-site-scrape/agentsam_site_scrape/net.py +121 -0
- package/packages/agentsam-site-scrape/agentsam_site_scrape/pageextract.py +202 -0
- package/packages/agentsam-site-scrape/agentsam_site_scrape/r2_upload.py +140 -0
- package/packages/agentsam-site-scrape/agentsam_site_scrape/ssrf.py +57 -0
- package/packages/agentsam-site-scrape/agentsam_site_scrape/storage.py +57 -0
- package/packages/agentsam-site-scrape/agentsam_site_scrape/wrangler_bucket.py +98 -0
- package/packages/agentsam-site-scrape/pyproject.toml +21 -0
- package/packages/agentsam-site-scrape/runtime/client.mjs +32 -0
- package/packages/agentsam-site-scrape/runtime/core.mjs +211 -0
- package/packages/agentsam-site-scrape/runtime/index.mjs +31 -0
- package/packages/agentsam-site-scrape/runtime/knowledge.mjs +38 -0
- package/packages/agentsam-site-scrape/runtime/node-runner.mjs +231 -0
- package/packages/agentsam-site-scrape/runtime/node-storage.mjs +146 -0
- package/packages/agentsam-site-scrape/runtime/project-site.mjs +74 -0
- package/packages/agentsam-site-scrape/runtime/secure-fetch.mjs +88 -0
- package/packages/agentsam-site-scrape/runtime/test/knowledge-handoff.test.mjs +51 -0
- package/packages/agentsam-site-scrape/runtime/test/project-index-command.test.mjs +109 -0
- package/packages/agentsam-site-scrape/runtime/test/runtime.test.mjs +145 -0
- package/packages/agentsam-site-scrape/tests/__init__.py +0 -0
- package/packages/agentsam-site-scrape/tests/test_contract.py +83 -0
- package/packages/agentsam-site-scrape/tests/test_core.py +119 -0
- package/packages/agentsam-site-scrape/tests/test_evidence.py +88 -0
- package/packages/agentsam-site-scrape/tests/test_evidence_pipeline.py +112 -0
- package/packages/agentsam-site-scrape/tests/test_jsonrun.py +63 -0
- package/packages/agentsam-site-scrape/tests/test_redirects.py +68 -0
- package/packages/agentsam-site-scrape/tests/test_storage.py +34 -0
- package/packages/agentsam-site-scrape/worker/index.mjs +259 -0
- package/packages/agentsam-site-scrape/worker/project-config.mjs +57 -0
- package/packages/agentsam-site-scrape/worker/test/worker.test.mjs +191 -0
- package/packages/agentsam-vault/package.json +1 -1
- package/packages/agentsam-workbench/README.md +18 -0
- package/packages/agentsam-workbench/package.json +13 -4
- package/packages/agentsam-workbench/src/agent/capability-catalog.ts +96 -0
- package/packages/agentsam-workbench/src/agent/index.ts +2 -0
- package/packages/agentsam-workbench/src/knowledge/AutoRagWorkflowDialog.tsx +166 -0
- package/packages/agentsam-workbench/src/knowledge/README.md +14 -0
- package/packages/agentsam-workbench/src/knowledge/autorag-workflow.css +6 -0
- package/packages/agentsam-workbench/src/knowledge/index.ts +2 -0
- package/packages/agentsam-workbench/src/widgets/registry.ts +266 -1
- package/packages/catalog/README.md +69 -0
- package/packages/catalog/assist/questions.json +205 -0
- package/packages/catalog/assist/rules.json +149 -0
- package/packages/catalog/doctor/toolchains.json +12 -0
- package/packages/catalog/evidence/agentsam-abs.json +76 -0
- package/packages/catalog/evidence/agentsam-analytics.json +59 -0
- package/packages/catalog/evidence/agentsam-assets-core.json +38 -0
- package/packages/catalog/evidence/agentsam-brand.json +73 -0
- package/packages/catalog/evidence/agentsam-browser-surface.json +42 -0
- package/packages/catalog/evidence/agentsam-campaign.json +48 -0
- package/packages/catalog/evidence/agentsam-cloudflare-images.json +38 -0
- package/packages/catalog/evidence/agentsam-content-studio.json +42 -0
- package/packages/catalog/evidence/agentsam-content.json +70 -0
- package/packages/catalog/evidence/agentsam-contracts.json +92 -0
- package/packages/catalog/evidence/agentsam-database-editor.json +82 -0
- package/packages/catalog/evidence/agentsam-desktop-shell.json +56 -0
- package/packages/catalog/evidence/agentsam-docs-theme.json +35 -0
- package/packages/catalog/evidence/agentsam-errors.json +42 -0
- package/packages/catalog/evidence/agentsam-goap.json +52 -0
- package/packages/catalog/evidence/agentsam-hooks.json +100 -0
- package/packages/catalog/evidence/agentsam-ide.json +64 -0
- package/packages/catalog/evidence/agentsam-identity.json +91 -0
- package/packages/catalog/evidence/agentsam-key-manager.json +46 -0
- package/packages/catalog/evidence/agentsam-knowledge.json +42 -0
- package/packages/catalog/evidence/agentsam-loading-scene.json +54 -0
- package/packages/catalog/evidence/agentsam-merch.json +68 -0
- package/packages/catalog/evidence/agentsam-nav.json +63 -0
- package/packages/catalog/evidence/agentsam-queue-control.json +60 -0
- package/packages/catalog/evidence/agentsam-rapid-rust.json +46 -0
- package/packages/catalog/evidence/agentsam-repository.json +56 -0
- package/packages/catalog/evidence/agentsam-scoring.json +39 -0
- package/packages/catalog/evidence/agentsam-sections.json +52 -0
- package/packages/catalog/evidence/agentsam-settings.json +58 -0
- package/packages/catalog/evidence/agentsam-shell-kit.json +56 -0
- package/packages/catalog/evidence/agentsam-vault.json +61 -0
- package/packages/catalog/evidence/agentsam-work-graph.json +51 -0
- package/packages/catalog/evidence/agentsam-work.json +64 -0
- package/packages/catalog/evidence/agentsam-workbench.json +96 -0
- package/packages/catalog/evidence/analytics-ui.json +43 -0
- package/packages/catalog/evidence/cms-runtime.json +49 -0
- package/packages/catalog/evidence/copro-editor.json +42 -0
- package/packages/catalog/evidence/copro-media.json +42 -0
- package/packages/catalog/evidence/copro-project.json +42 -0
- package/packages/catalog/evidence/copro-proof.json +48 -0
- package/packages/catalog/evidence/copro-provider-contracts.json +40 -0
- package/packages/catalog/evidence/copro-render.json +40 -0
- package/packages/catalog/evidence/copro-storage.json +44 -0
- package/packages/catalog/evidence/copro-templates.json +42 -0
- package/packages/catalog/evidence/copro-timeline.json +44 -0
- package/packages/catalog/evidence/copro-ui.json +52 -0
- package/packages/catalog/evidence/fnf-theme.json +34 -0
- package/packages/catalog/evidence/theme-contract.json +34 -0
- package/packages/catalog/evidence/theme-cypress.json +41 -0
- package/packages/catalog/evidence/theme-ember.json +41 -0
- package/packages/catalog/evidence/theme-forge.json +41 -0
- package/packages/catalog/evidence/theme-grove.json +41 -0
- package/packages/catalog/evidence/theme-harbor.json +41 -0
- package/packages/catalog/evidence/theme-heuristic.json +50 -0
- package/packages/catalog/evidence/theme-iasf.json +48 -0
- package/packages/catalog/evidence/theme-resolve.json +41 -0
- package/packages/catalog/evidence/theme-scenes.json +68 -0
- package/packages/catalog/evidence/theme-summit.json +41 -0
- package/packages/catalog/evidence/theme-violet.json +41 -0
- package/packages/catalog/generated/packages.json +2649 -0
- package/packages/catalog/topics/runtime.json +33 -0
- package/packages/connectors/cfoa/agentsam.package.json +46 -0
- package/packages/connectors/cfoa/package.json +1 -1
- package/packages/connectors/cfoa/src/capabilities.js +22 -2
- package/packages/connectors/cfoa/src/families/analytics-sql.js +44 -0
- package/packages/connectors/cfoa/src/families/basin.js +30 -0
- package/packages/connectors/cfoa/src/index.js +3 -0
- package/packages/connectors/cfoa/src/routes.js +11 -2
- package/packages/connectors/cfoa/test/analytics-sql.test.mjs +27 -0
- package/packages/connectors/cfoa/test/basin.test.mjs +30 -0
- package/packages/heuristic-theme/README.md +14 -0
- package/packages/heuristic-theme/agentsam.package.json +42 -0
- package/packages/heuristic-theme/contracts/README.md +15 -0
- package/packages/heuristic-theme/contracts/block.schema.json +33 -0
- package/packages/heuristic-theme/contracts/header-presets.json +20 -0
- package/packages/heuristic-theme/contracts/page.schema.json +18 -0
- package/packages/heuristic-theme/contracts/preset.schema.json +18 -0
- package/packages/heuristic-theme/contracts/section.schema.json +83 -0
- package/packages/heuristic-theme/package.json +13 -3
- package/packages/heuristic-theme/presets/fuel-free-time/assets.json +8 -0
- package/packages/heuristic-theme/presets/fuel-free-time/globals/shell.json +30 -0
- package/packages/heuristic-theme/presets/fuel-free-time/pages/about.json +4 -0
- package/packages/heuristic-theme/presets/fuel-free-time/pages/cart.json +4 -0
- package/packages/heuristic-theme/presets/fuel-free-time/pages/collection.json +4 -0
- package/packages/heuristic-theme/presets/fuel-free-time/pages/collections.json +4 -0
- package/packages/heuristic-theme/presets/fuel-free-time/pages/community.json +4 -0
- package/packages/heuristic-theme/presets/fuel-free-time/pages/home.json +92 -0
- package/packages/heuristic-theme/presets/fuel-free-time/pages/order-confirmation.json +39 -0
- package/packages/heuristic-theme/presets/fuel-free-time/pages/product.json +4 -0
- package/packages/heuristic-theme/presets/fuel-free-time/pages/shop.json +9 -0
- package/packages/heuristic-theme/presets/fuel-free-time/preset.json +23 -0
- package/packages/heuristic-theme/presets/fuel-free-time/tokens.json +23 -0
- package/packages/heuristic-theme/storefront/about.html +1103 -0
- package/packages/heuristic-theme/storefront/assets/presets/fuel-free-time/GENERATED-ASSETS.md +15 -0
- package/packages/heuristic-theme/storefront/assets/presets/fuel-free-time/earned-hours-hero.webp +0 -0
- package/packages/heuristic-theme/storefront/assets/presets/fuel-free-time/essentials.webp +0 -0
- package/packages/heuristic-theme/storefront/assets/presets/fuel-free-time/masters.webp +0 -0
- package/packages/heuristic-theme/storefront/cart.html +64 -0
- package/packages/heuristic-theme/storefront/collaborate.html +58 -0
- package/packages/heuristic-theme/storefront/collection.html +10 -0
- package/packages/heuristic-theme/storefront/collections.html +10 -0
- package/packages/heuristic-theme/storefront/community.html +921 -0
- package/packages/heuristic-theme/storefront/css/content-page.css +199 -0
- package/packages/heuristic-theme/storefront/css/global-footer.css +401 -0
- package/packages/heuristic-theme/storefront/css/heuristic-theme.css +81 -0
- package/packages/heuristic-theme/storefront/css/page-composer.css +76 -0
- package/packages/heuristic-theme/storefront/css/shop-hero.css +230 -0
- package/packages/heuristic-theme/storefront/css/store-cart.css +422 -0
- package/packages/heuristic-theme/storefront/css/store-collections.css +36 -0
- package/packages/heuristic-theme/storefront/css/store-pdp.css +459 -0
- package/packages/heuristic-theme/storefront/css/store-shell.css +474 -0
- package/packages/heuristic-theme/storefront/css/store-shop.css +117 -0
- package/packages/heuristic-theme/storefront/home.html +25 -0
- package/packages/heuristic-theme/storefront/js/cms-hydrate.js +395 -0
- package/packages/heuristic-theme/storefront/js/cms-structure.js +85 -0
- package/packages/heuristic-theme/storefront/js/fnf-attribution.js +98 -0
- package/packages/heuristic-theme/storefront/js/fnf-head.js +47 -0
- package/packages/heuristic-theme/storefront/js/fnf-newsletter.js +64 -0
- package/packages/heuristic-theme/storefront/js/global-footer.js +277 -0
- package/packages/heuristic-theme/storefront/js/heuristic-runtime.js +78 -0
- package/packages/heuristic-theme/storefront/js/order-confirmation.js +109 -0
- package/packages/heuristic-theme/storefront/js/page-composer.js +310 -0
- package/packages/heuristic-theme/storefront/js/shop-hero.js +85 -0
- package/packages/heuristic-theme/storefront/js/store-cart.js +276 -0
- package/packages/heuristic-theme/storefront/js/store-catalog.js +140 -0
- package/packages/heuristic-theme/storefront/js/store-collections.js +45 -0
- package/packages/heuristic-theme/storefront/js/store-product.js +287 -0
- package/packages/heuristic-theme/storefront/js/store-shell.js +449 -0
- package/packages/heuristic-theme/storefront/order-confirmation.html +30 -0
- package/packages/heuristic-theme/storefront/policies.html +43 -0
- package/packages/heuristic-theme/storefront/product.html +27 -0
- package/packages/heuristic-theme/storefront/shop.html +113 -0
- package/packages/heuristic-theme/storefront/terms.html +45 -0
- package/packages/heuristic-theme/test/commerce-portability.test.mjs +16 -0
- package/packages/heuristic-theme/theme.json +55 -0
- package/packages/heuristic-theme/theme.schema.json +32 -0
- package/packages/identity/agentsam.package.json +42 -0
- package/packages/identity/package.json +1 -1
- package/packages/identity/src/oauth/iam-platform.js +4 -2
- package/packages/identity/src/recovery/password-reset.js +8 -8
- package/packages/identity/src/server/worker-router.js +63 -1
- package/packages/identity/tests/lane1-packed-consumer.test.mjs +12 -1
- package/packages/identity/tests/password-enrollment.test.mjs +82 -0
- package/packages/identity/tests/password-reset.test.mjs +43 -0
- package/packages/providers/completeful/package.json +1 -1
- package/packages/theme-cypress/agentsam.package.json +42 -0
- package/packages/theme-cypress/package.json +1 -1
- package/packages/theme-ember/agentsam.package.json +42 -0
- package/packages/theme-ember/package.json +1 -1
- package/packages/theme-forge/agentsam.package.json +42 -0
- package/packages/theme-forge/package.json +1 -1
- package/packages/theme-grove/agentsam.package.json +42 -0
- package/packages/theme-grove/package.json +1 -1
- package/packages/theme-harbor/agentsam.package.json +42 -0
- package/packages/theme-harbor/package.json +1 -1
- package/packages/theme-resolve/agentsam.package.json +42 -0
- package/packages/theme-resolve/package.json +1 -1
- package/packages/theme-scenes/agentsam.package.json +42 -0
- package/packages/theme-scenes/package.json +1 -1
- package/packages/theme-summit/agentsam.package.json +42 -0
- package/packages/theme-summit/package.json +1 -1
- package/packages/theme-violet/agentsam.package.json +42 -0
- package/packages/theme-violet/package.json +1 -1
- package/packages/work-graph/agentsam.package.json +42 -0
- package/packages/work-graph/package.json +1 -1
- package/protocol/apps/agentsam.app.v1.schema.json +27 -1
- package/protocol/cad/README.md +77 -0
- package/protocol/cad/cad.project.v2.schema.json +451 -0
- package/protocol/cad/v2/core/artifact-receipt.schema.json +126 -0
- package/protocol/cad/v2/core/coordinate-system.schema.json +364 -0
- package/protocol/cad/v2/core/geometry-constraint.schema.json +136 -0
- package/protocol/cad/v2/core/geometry-entity.schema.json +73 -0
- package/protocol/cad/v2/core/geometry-feature.schema.json +115 -0
- package/protocol/cad/v2/core/geometry-relationship.schema.json +67 -0
- package/protocol/cad/v2/core/project-revision.schema.json +111 -0
- package/protocol/cad/v2/core/topology-reference.schema.json +80 -0
- package/protocol/cad/v2/intent/design-decision.schema.json +126 -0
- package/protocol/cad/v2/intent/design-option.schema.json +88 -0
- package/protocol/cad/v2/interchange/ifc-mapping.schema.json +145 -0
- package/protocol/cad/v2/interchange/native-document.schema.json +130 -0
- package/protocol/cad/v2/interchange/reference-model.schema.json +141 -0
- package/protocol/cad/v2/modules/architecture.v1.schema.json +278 -0
- package/protocol/cad/v2/modules/landscape.v1.schema.json +157 -0
- package/protocol/cad/v2/modules/mechanical.v1.schema.json +325 -0
- package/protocol/cad/v2/modules/parametric.v1.schema.json +89 -0
- package/protocol/cad/v2/modules/product-design.v1.schema.json +178 -0
- package/protocol/cad/v2/modules/robotics.v1.schema.json +246 -0
- package/protocol/cad/v2/presentation/camera-path.schema.json +143 -0
- package/protocol/cad/v2/presentation/drawing.schema.json +162 -0
- package/protocol/cad/v2/presentation/production.schema.json +166 -0
- package/protocol/cad/v2/presentation/scene.schema.json +198 -0
- package/protocol/cad/v2/presentation/sheet.schema.json +254 -0
- package/protocol/cad/v2/presentation/view.schema.json +190 -0
- package/protocol/cad/v2/presentation/walkthrough.schema.json +199 -0
- package/protocol/cad/v2/schema-pack.manifest.json +189 -0
- package/protocol/cad/v2/validation/deliverable-manifest.schema.json +199 -0
- package/protocol/cad/v2/validation/result.schema.json +141 -0
- package/protocol/capabilities/evidence-manifest.schema.json +404 -0
- package/protocol/capabilities/manifest.json +101 -10
- package/protocol/capabilities/repository-crawl-input.schema.json +17 -0
- package/protocol/capabilities/repository-crawl-result.schema.json +79 -0
- package/protocol/capabilities/repository-mine-input.schema.json +27 -0
- package/protocol/capabilities/repository-mine-result.schema.json +51 -0
- package/protocol/capabilities/site-index.schema.json +15 -0
- package/protocol/capabilities/site-scrape-evidence-manifest.schema.json +114 -0
- package/protocol/capabilities/site-scrape-input.schema.json +90 -0
- package/protocol/capabilities/site-scrape-project-authority.schema.json +15 -0
- package/protocol/capabilities/site-scrape-result.schema.json +198 -0
- package/protocol/capabilities/site-scrape-worker-job.schema.json +18 -0
- package/protocol/errors/error-catalog.json +12 -0
- package/protocol/governance/distribution-roadmap.v1.json +335 -0
- package/protocol/governance/github-labels.v1.json +232 -0
- package/protocol/models/workers-ai-curated.mjs +14 -0
- package/protocol/plugins/agentsam.plugin-evidence-bundle.v1.schema.json +55 -0
- package/protocol/plugins/agentsam.plugin-product.v1.schema.json +227 -0
- package/protocol/plugins/agentsam.plugin-quality-evidence.v1.schema.json +47 -0
- package/protocol/plugins/agentsam.plugin-quality-receipt.v1.schema.json +160 -0
- package/protocol/ui/agentsam.ui-quality.v1.schema.json +31 -0
- package/python/agentsam_sdk/__init__.py +4 -0
- package/python/agentsam_sdk/client.py +202 -0
- package/python/agentsam_sdk/errors/vocabulary.py +10 -0
- package/python/tests/test_public_client.py +82 -0
- package/services/cad/blender/adapter.py +0 -0
- package/services/cad/occt/CMakeLists.txt +43 -0
- package/services/cad/occt/README.md +38 -0
- package/services/cad/occt/main.cpp +95 -0
- package/services/cad/server.py +103 -21
- package/skills/README.md +6 -0
- package/skills/agentsam-cad/SKILL.md +59 -0
- package/skills/agentsam-plan-and-goap/SKILL.md +77 -0
- package/skills/agentsam-repo-recon/SKILL.md +63 -0
- package/skills/agentsam-sam-operations/SKILL.md +71 -0
- package/skills/agentsam-sdk-orientation/SKILL.md +75 -0
- package/skills/catalog.json +85 -0
- package/src/AgentSam.js +2 -0
- package/src/agent/capability-adapter.js +207 -9
- package/src/agent/index.js +1 -0
- package/src/agent/intent.js +12 -0
- package/src/agent/project-discovery.js +47 -0
- package/src/agent/project-resources.js +157 -0
- package/src/agent/responses-runner.js +64 -12
- package/src/capabilities/cloudflare-d1-provision.js +48 -0
- package/src/capabilities/knowledge-operations.js +87 -0
- package/src/capabilities/local-sqlite-resources.js +124 -0
- package/src/capabilities/machine-inspect.js +28 -0
- package/src/capabilities/mcp-d1-bridge.js +98 -0
- package/src/capabilities/plan-operation-ids.js +6 -0
- package/src/capabilities/plan-operations.js +85 -0
- package/src/capabilities/repository-awareness.js +52 -0
- package/src/capabilities/test-run.js +10 -0
- package/src/capabilities/workspace-files.js +125 -0
- package/src/cli/command-catalog.js +16 -3
- package/src/cli.js +71 -116
- package/src/commands/app.js +43 -44
- package/src/commands/autorag-node-api.js +96 -0
- package/src/commands/autorag.js +178 -17
- package/src/commands/catalog-doctor.js +52 -0
- package/src/commands/catalog.js +151 -0
- package/src/commands/cheat-sheet.js +92 -63
- package/src/commands/cloudflare.js +64 -2
- package/src/commands/codebaseindex.js +2 -2
- package/src/commands/db.js +17 -0
- package/src/commands/goap-world.js +4 -0
- package/src/commands/interactive.js +21 -1
- package/src/commands/knowledge.js +8 -3
- package/src/commands/machine-binary.js +3 -2
- package/src/commands/machine.js +66 -15
- package/src/commands/mcp.js +98 -8
- package/src/commands/plan-ledger.js +60 -22
- package/src/commands/plan.js +3 -3
- package/src/commands/plugins.js +34 -2
- package/src/commands/product.js +21 -0
- package/src/commands/rust.js +4 -1
- package/src/commands/sam-evidence.js +87 -0
- package/src/commands/sam-media.js +78 -0
- package/src/commands/sam.js +117 -0
- package/src/commands/shell.js +97 -8
- package/src/commands/site-scrape.js +9 -0
- package/src/context/resolve.js +5 -1
- package/src/index.js +13 -0
- package/src/knowledge/d1-schema.js +65 -0
- package/src/knowledge/engine.js +55 -15
- package/src/knowledge/source.js +8 -0
- package/src/knowledge/store-discovery.js +9 -3
- package/src/knowledge/stores/sqlite.js +8 -0
- package/src/knowledge/wrangler-binding-discovery.js +43 -0
- package/src/lib/agent-instructions.js +29 -5
- package/src/lib/auth.js +46 -7
- package/src/lib/cad/delivery-profiles.d.ts +7 -0
- package/src/lib/cad/delivery-profiles.js +122 -0
- package/src/lib/cad/docker-executor.js +1 -1
- package/src/lib/cad/editable-project-contract.js +75 -0
- package/src/lib/cad/index.js +6 -0
- package/src/lib/cad/occt-native-provider.mjs +138 -0
- package/src/lib/cad/openscad.js +13 -1
- package/src/lib/cad/production-operations.d.ts +8 -0
- package/src/lib/cad/production-operations.js +74 -0
- package/src/lib/cad/project-cli.d.ts +1 -1
- package/src/lib/cad/project-contract.js +1 -1
- package/src/lib/cad/project-runtime.d.ts +1 -1
- package/src/lib/cad/project-runtime.js +48 -3
- package/src/lib/cad/project-tools.js +24 -0
- package/src/lib/cad/project-v2.d.ts +48 -0
- package/src/lib/cad/project-v2.js +288 -0
- package/src/lib/cad-docker.js +48 -4
- package/src/lib/dockerize.js +3 -3
- package/src/lib/execution-approvals.js +29 -3
- package/src/local-fs/capability.js +5 -0
- package/src/local-lsp/host.js +2 -0
- package/src/local-pty/server.js +21 -0
- package/src/mcp/client.js +2 -1
- package/src/mcp/oauth-connection.js +109 -0
- package/src/models/inventory-core.js +2 -10
- package/src/plugins/index.js +13 -0
- package/src/plugins/productization.js +348 -0
- package/src/providers/gemini-generate-content.js +18 -0
- package/src/registry/generated/inventory.json +4266 -0
- package/src/registry/index.js +96 -0
- package/src/registry/turn-one.js +45 -0
- package/src/sam/adapters/local-media-store.js +71 -0
- package/src/sam/adapters/local-script-runtime.js +122 -0
- package/src/sam/adapters/local-script-store.js +103 -0
- package/src/sam/adapters/object-media-store.js +89 -0
- package/src/sam/adapters/workspace-media.js +78 -0
- package/src/sam/artifacts/render.js +94 -0
- package/src/sam/bridge/stdio.mjs +59 -0
- package/src/sam/client.js +269 -22
- package/src/sam/index.js +30 -1
- package/src/sam/local-execution.js +8 -0
- package/src/sam/media/environment.js +96 -0
- package/src/sam/model-adapter.js +45 -0
- package/src/sam/operation-packs/generated-v2/background.js +54 -0
- package/src/sam/operation-packs/generated-v2/catalog.js +1746 -0
- package/src/sam/operation-packs/generated-v2/generated-execution-policies.json +401 -0
- package/src/sam/operation-packs/generated-v2/generated-tool-descriptors.json +1352 -0
- package/src/sam/operation-packs/generated-v2/glb.js +41 -0
- package/src/sam/operation-packs/generated-v2/inneranimalmedia-provider.js +24 -0
- package/src/sam/operation-packs/generated-v2/operation-pack.js +126 -0
- package/src/sam/operation-packs/generated-v2/raster.js +140 -0
- package/src/sam/operation-packs/generated-v2/scripts.js +63 -0
- package/src/sam/operation-packs/generated-v2/sdk-adapter.js +9 -0
- package/src/sam/operation-packs/generated-v2/test/alias-runtime.test.mjs +51 -0
- package/src/sam/operation-packs/generated-v2/test/background.test.mjs +19 -0
- package/src/sam/operation-packs/generated-v2/test/glb.test.mjs +19 -0
- package/src/sam/operation-packs/generated-v2/test/raster.test.mjs +38 -0
- package/src/sam/operation-packs/generated-v2/test/real-asset-bindings.test.mjs +74 -0
- package/src/sam/operation-packs/generated-v2/test/registration.test.mjs +65 -0
- package/src/sam/operation-packs/generated-v2/test/scripts.test.mjs +32 -0
- package/src/sam/operation-packs/generated-v2/test/superbash-client-integration.test.mjs +215 -0
- package/src/sam/operation-packs/generated-v2/tool-types.d.ts +53 -0
- package/src/sam/operations/artifact-render.js +13 -0
- package/src/sam/operations/repository-inspect.js +12 -2
- package/src/sam/operations/robotics.js +45 -0
- package/src/sam/os.js +117 -0
- package/src/sam/packs/authoring/README.md +13 -0
- package/src/sam/packs/authoring/index.js +108 -0
- package/src/sam/packs/cad/http-ports.js +55 -0
- package/src/sam/packs/cad/index.js +158 -0
- package/src/sam/packs/cad/model-tools.js +22 -0
- package/src/sam/packs/cad/modes.js +87 -0
- package/src/sam/packs/cms/aliases.js +1 -0
- package/src/sam/packs/cms/contracts.js +1 -0
- package/src/sam/packs/cms/machine.js +6 -0
- package/src/sam/packs/cms/node.js +1 -0
- package/src/sam/packs/core.js +27 -0
- package/src/sam/packs/evidence/README.md +65 -0
- package/src/sam/packs/evidence/compare.js +98 -0
- package/src/sam/packs/evidence/contract.js +56 -0
- package/src/sam/packs/evidence/derive.js +59 -0
- package/src/sam/packs/evidence/driver-blender.js +96 -0
- package/src/sam/packs/evidence/driver-playwright.js +91 -0
- package/src/sam/packs/evidence/exporter-copro.js +70 -0
- package/src/sam/packs/evidence/facts.js +37 -0
- package/src/sam/packs/evidence/host-local.js +74 -0
- package/src/sam/packs/evidence/index.js +494 -0
- package/src/sam/packs/evidence/media.js +44 -0
- package/src/sam/packs/evidence/naming.js +67 -0
- package/src/sam/packs/evidence/normalize.js +117 -0
- package/src/sam/packs/evidence/review-page.js +102 -0
- package/src/sam/packs/evidence/screenplay.js +34 -0
- package/src/sam/packs/evidence/seal.js +55 -0
- package/src/sam/packs/evidence/serve.js +74 -0
- package/src/sam/packs/evidence/store.js +93 -0
- package/src/sam/packs/evidence/viewports.js +23 -0
- package/src/sam/robotics/chess-adapter.js +14 -0
- package/src/sam/robotics/franka.js +44 -0
- package/src/sam/robotics/index.js +4 -0
- package/src/sam/robotics/receipt.js +21 -0
- package/src/sam/robotics/world.js +57 -0
- package/src/sam/seed.js +10 -40
- package/src/sam/shell-host.js +120 -0
- package/src/sam/validation.js +40 -0
- package/src/security/local-vault.js +6 -1
- package/src/ui/cli/help.js +6 -0
- package/templates/clay/clay-blueprint-template.html +481 -0
- package/templates/clay/clay-case-study-blueprint.html +269 -0
- package/templates/clay/conversion-showcase-section.html +534 -0
- package/templates/clay/enhancing-conversion-section.html +141 -0
- package/templates/clay/nuant-wireframe.html +117 -0
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
#include <BRepAlgoAPI_Cut.hxx>
|
|
2
|
+
#include <BRepCheck_Analyzer.hxx>
|
|
3
|
+
#include <BRepGProp.hxx>
|
|
4
|
+
#include <BRepPrimAPI_MakeBox.hxx>
|
|
5
|
+
#include <GProp_GProps.hxx>
|
|
6
|
+
#include <IFSelect_ReturnStatus.hxx>
|
|
7
|
+
#include <STEPControl_Reader.hxx>
|
|
8
|
+
#include <STEPControl_Writer.hxx>
|
|
9
|
+
#include <Standard_Version.hxx>
|
|
10
|
+
#include <TopoDS_Shape.hxx>
|
|
11
|
+
#include <cmath>
|
|
12
|
+
#include <cstdlib>
|
|
13
|
+
#include <iomanip>
|
|
14
|
+
#include <iostream>
|
|
15
|
+
#include <limits>
|
|
16
|
+
#include <stdexcept>
|
|
17
|
+
#include <string>
|
|
18
|
+
|
|
19
|
+
namespace {
|
|
20
|
+
constexpr double kMaximumMm = 1000000.0;
|
|
21
|
+
|
|
22
|
+
double dimension(const char* raw) {
|
|
23
|
+
char* end = nullptr;
|
|
24
|
+
const double result = std::strtod(raw, &end);
|
|
25
|
+
if (end == raw || *end != '\0' || !std::isfinite(result) || result <= 0 || result > kMaximumMm) {
|
|
26
|
+
throw std::invalid_argument("invalid_dimension");
|
|
27
|
+
}
|
|
28
|
+
return result;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
double volume(const TopoDS_Shape& shape) {
|
|
32
|
+
if (shape.IsNull() || !BRepCheck_Analyzer(shape).IsValid()) {
|
|
33
|
+
throw std::runtime_error("invalid_solid");
|
|
34
|
+
}
|
|
35
|
+
GProp_GProps props;
|
|
36
|
+
BRepGProp::VolumeProperties(shape, props);
|
|
37
|
+
const double result = props.Mass();
|
|
38
|
+
if (!std::isfinite(result) || result <= 0) throw std::runtime_error("invalid_solid_volume");
|
|
39
|
+
return result;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
void receipt(double volumeMm3, const char* operation) {
|
|
43
|
+
std::cout << "AGENTSAM_RESULT={\"ok\":true,\"engine\":\"occt\",\"version\":\""
|
|
44
|
+
<< OCC_VERSION_COMPLETE << "\",\"operation\":\"" << operation
|
|
45
|
+
<< "\",\"volume_mm3\":" << std::setprecision(std::numeric_limits<double>::max_digits10) << volumeMm3 << "}" << std::endl;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
int main(int argc, char** argv) {
|
|
50
|
+
try {
|
|
51
|
+
if (argc == 2 && std::string(argv[1]) == "--doctor") {
|
|
52
|
+
std::cout << "AGENTSAM_RESULT={\"ok\":true,\"engine\":\"occt\",\"version\":\""
|
|
53
|
+
<< OCC_VERSION_COMPLETE
|
|
54
|
+
<< "\",\"capabilities\":[\"solid.box.create\",\"solid.cut\",\"solid.inspect.step\",\"solid.export.step\"]}"
|
|
55
|
+
<< std::endl;
|
|
56
|
+
return 0;
|
|
57
|
+
}
|
|
58
|
+
if (argc == 6 && std::string(argv[1]) == "--box") {
|
|
59
|
+
const auto shape = BRepPrimAPI_MakeBox(
|
|
60
|
+
dimension(argv[2]), dimension(argv[3]), dimension(argv[4])).Shape();
|
|
61
|
+
const double measured = volume(shape);
|
|
62
|
+
STEPControl_Writer writer;
|
|
63
|
+
if (writer.Transfer(shape, STEPControl_AsIs) != IFSelect_RetDone ||
|
|
64
|
+
writer.Write(argv[5]) != IFSelect_RetDone) {
|
|
65
|
+
throw std::runtime_error("step_export_failed");
|
|
66
|
+
}
|
|
67
|
+
receipt(measured, "solid.box.create");
|
|
68
|
+
return 0;
|
|
69
|
+
}
|
|
70
|
+
if (argc == 9 && std::string(argv[1]) == "--cut") {
|
|
71
|
+
// Boolean cut: box(W D H) minus box(W2 D2 H2), dimensions in millimeters at this boundary.
|
|
72
|
+
const auto base = BRepPrimAPI_MakeBox(dimension(argv[2]), dimension(argv[3]), dimension(argv[4])).Shape();
|
|
73
|
+
const auto tool = BRepPrimAPI_MakeBox(dimension(argv[5]), dimension(argv[6]), dimension(argv[7])).Shape();
|
|
74
|
+
BRepAlgoAPI_Cut cut(base, tool); cut.Build();
|
|
75
|
+
if (!cut.IsDone()) throw std::runtime_error("boolean_cut_failed");
|
|
76
|
+
const double measured = volume(cut.Shape());
|
|
77
|
+
STEPControl_Writer writer;
|
|
78
|
+
if (writer.Transfer(cut.Shape(), STEPControl_AsIs) != IFSelect_RetDone || writer.Write(argv[8]) != IFSelect_RetDone) throw std::runtime_error("step_export_failed");
|
|
79
|
+
receipt(measured, "solid.cut");
|
|
80
|
+
return 0;
|
|
81
|
+
}
|
|
82
|
+
if (argc == 3 && std::string(argv[1]) == "--inspect") {
|
|
83
|
+
STEPControl_Reader reader;
|
|
84
|
+
if (reader.ReadFile(argv[2]) != IFSelect_RetDone || reader.TransferRoots() < 1) {
|
|
85
|
+
throw std::runtime_error("step_import_failed");
|
|
86
|
+
}
|
|
87
|
+
receipt(volume(reader.OneShape()), "solid.inspect.step");
|
|
88
|
+
return 0;
|
|
89
|
+
}
|
|
90
|
+
throw std::invalid_argument("usage: --doctor | --box W D H OUT.step | --cut W D H W2 D2 H2 OUT.step | --inspect IN.step");
|
|
91
|
+
} catch (const std::exception& e) {
|
|
92
|
+
std::cerr << "AGENTSAM_OCCT_ERROR=" << e.what() << std::endl;
|
|
93
|
+
return 1;
|
|
94
|
+
}
|
|
95
|
+
}
|
package/services/cad/server.py
CHANGED
|
@@ -34,18 +34,21 @@ TOOL_COMMANDS = {
|
|
|
34
34
|
"openscad": ["openscad", "--version"],
|
|
35
35
|
"freecad": ["FreeCADCmd", "--version"],
|
|
36
36
|
"blender": ["blender", "--version"],
|
|
37
|
+
"ifc": ["python3", "--version"],
|
|
38
|
+
"media": ["ffmpeg", "-version"],
|
|
39
|
+
"occt": ["agentsam-occt", "--doctor"],
|
|
37
40
|
}
|
|
38
41
|
|
|
39
42
|
OPENSCAD_FORMATS = {"stl", "3mf", "dxf", "svg", "csg", "off", "amf"}
|
|
40
43
|
FREECAD_FORMATS = {"step", "stp", "iges", "brep", "stl"}
|
|
41
44
|
BLENDER_FORMATS = {"glb", "stl", "obj", "png"}
|
|
42
45
|
FORBIDDEN_OPENSCAD = [
|
|
43
|
-
(re.compile(r"\binclude\s*<", re.
|
|
44
|
-
(re.compile(r"\buse\s*<", re.
|
|
45
|
-
(re.compile(r"\bimport\s*\(", re.
|
|
46
|
-
(re.compile(r"\bsurface\s*\(", re.
|
|
46
|
+
(re.compile(r"\binclude\s*<", re.IGNORECASE), "include directives are disabled"),
|
|
47
|
+
(re.compile(r"\buse\s*<", re.IGNORECASE), "use directives are disabled"),
|
|
48
|
+
(re.compile(r"\bimport\s*\(", re.IGNORECASE), "import() is disabled"),
|
|
49
|
+
(re.compile(r"\bsurface\s*\(", re.IGNORECASE), "surface() file loading is disabled"),
|
|
47
50
|
(re.compile(r"\.\.[/\\]"), "path traversal is disabled"),
|
|
48
|
-
(re.compile(r"(?:^|[\s\"'])/(?:etc|proc|sys|dev|var|home|root|run|mnt)/", re.
|
|
51
|
+
(re.compile(r"(?:^|[\s\"'])/(?:etc|proc|sys|dev|var|home|root|run|mnt)/", re.IGNORECASE), "absolute host-style paths are disabled"),
|
|
49
52
|
]
|
|
50
53
|
|
|
51
54
|
|
|
@@ -56,24 +59,103 @@ def _read_token() -> str:
|
|
|
56
59
|
return ""
|
|
57
60
|
|
|
58
61
|
|
|
62
|
+
def _probe(command: list[str], env: dict[str, str] | None = None, timeout: int = 20) -> subprocess.CompletedProcess[str]:
|
|
63
|
+
return subprocess.run(command, capture_output=True, text=True, timeout=timeout, env=env, check=False)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
def _extended_tool_version(name: str) -> dict[str, Any]:
|
|
67
|
+
"""Probe the production-pipeline tools by actually exercising them, not by checking a binary exists."""
|
|
68
|
+
if name == "ifc":
|
|
69
|
+
python = os.environ.get("AGENTSAM_CAD_PYTHON", "/opt/agentsam-venv/bin/python")
|
|
70
|
+
if not Path(python).is_file():
|
|
71
|
+
return {"installed": False, "binary": None, "version": None}
|
|
72
|
+
probe = _probe([python, "-c", "import ifcopenshell, ezdxf; print(ifcopenshell.version, ezdxf.__version__)"])
|
|
73
|
+
if probe.returncode != 0:
|
|
74
|
+
return {"installed": False, "binary": python, "version": None, "error": (probe.stderr or "import failed")[-300:]}
|
|
75
|
+
ifc_version, dxf_version = probe.stdout.split()
|
|
76
|
+
return {"installed": True, "binary": python, "version": f"ifcopenshell {ifc_version}; ezdxf {dxf_version}",
|
|
77
|
+
"modules": {"ifcopenshell": ifc_version, "ezdxf": dxf_version}}
|
|
78
|
+
if name == "media":
|
|
79
|
+
ffmpeg, gltf = shutil.which("ffmpeg"), shutil.which("gltf-transform")
|
|
80
|
+
if not ffmpeg or not gltf:
|
|
81
|
+
return {"installed": False, "binary": None, "version": None,
|
|
82
|
+
"missing": [n for n, b in (("ffmpeg", ffmpeg), ("gltf-transform", gltf)) if not b]}
|
|
83
|
+
ff = _probe([ffmpeg, "-version"]).stdout.splitlines()[:1]
|
|
84
|
+
gl = [line for line in _probe([gltf, "--version"]).stdout.splitlines() if line[:1].isdigit()][:1]
|
|
85
|
+
if not gl:
|
|
86
|
+
return {"installed": False, "binary": gltf, "version": None, "error": "gltf-transform did not report a version"}
|
|
87
|
+
return {"installed": True, "binary": ffmpeg, "version": f"{ff[0][:40] if ff else 'ffmpeg'}; gltf-transform {gl[0]}"}
|
|
88
|
+
binary = shutil.which("agentsam-occt")
|
|
89
|
+
if not binary:
|
|
90
|
+
return {"installed": False, "binary": None, "version": None}
|
|
91
|
+
probe = _probe([binary, "--doctor"])
|
|
92
|
+
for line in probe.stdout.splitlines():
|
|
93
|
+
if line.startswith("AGENTSAM_RESULT="):
|
|
94
|
+
result = json.loads(line.split("=", 1)[1])
|
|
95
|
+
return {"installed": bool(result.get("ok")), "binary": binary, "version": result.get("version"),
|
|
96
|
+
"kernel": "OCCT", "capabilities": result.get("capabilities", [])}
|
|
97
|
+
return {"installed": False, "binary": binary, "version": None, "error": "agentsam-occt --doctor gave no result"}
|
|
98
|
+
|
|
99
|
+
|
|
59
100
|
def _tool_version(name: str) -> dict[str, Any]:
|
|
101
|
+
if name in ("ifc", "media", "occt"):
|
|
102
|
+
return _extended_tool_version(name)
|
|
103
|
+
if name == "freecad":
|
|
104
|
+
binary = shutil.which("python3")
|
|
105
|
+
module = Path("/usr/lib/freecad/lib/FreeCAD.so")
|
|
106
|
+
|
|
107
|
+
if not binary or not module.is_file():
|
|
108
|
+
return {"installed": False, "binary": None, "version": None}
|
|
109
|
+
|
|
110
|
+
env = os.environ.copy()
|
|
111
|
+
env["PYTHONPATH"] = "/usr/lib/freecad/lib"
|
|
112
|
+
|
|
113
|
+
probe = subprocess.run(
|
|
114
|
+
[binary, "-c",
|
|
115
|
+
("import FreeCAD, Part; "
|
|
116
|
+
"assert Part.makeBox(1,2,3).isValid(); "
|
|
117
|
+
"print('.'.join(FreeCAD.Version()[:3]))")],
|
|
118
|
+
capture_output=True,
|
|
119
|
+
text=True,
|
|
120
|
+
timeout=10,
|
|
121
|
+
env=env,
|
|
122
|
+
check=False,
|
|
123
|
+
)
|
|
124
|
+
|
|
125
|
+
if probe.returncode != 0:
|
|
126
|
+
return {
|
|
127
|
+
"installed": False,
|
|
128
|
+
"binary": binary,
|
|
129
|
+
"version": None,
|
|
130
|
+
"error": (probe.stderr or "FreeCAD kernel probe failed")[-500:],
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
return {
|
|
134
|
+
"installed": True,
|
|
135
|
+
"binary": binary,
|
|
136
|
+
"version": probe.stdout.strip(),
|
|
137
|
+
"kernel": "OCCT",
|
|
138
|
+
}
|
|
139
|
+
|
|
60
140
|
command = TOOL_COMMANDS[name]
|
|
61
141
|
binary = shutil.which(command[0])
|
|
142
|
+
|
|
62
143
|
if not binary:
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
candidate = Path("/usr/lib/freecad/bin/FreeCADCmd")
|
|
66
|
-
if candidate.exists():
|
|
67
|
-
binary = str(candidate)
|
|
68
|
-
command = [binary, "--version"]
|
|
69
|
-
if not binary:
|
|
70
|
-
return {"installed": False, "binary": None, "version": None}
|
|
144
|
+
return {"installed": False, "binary": None, "version": None}
|
|
145
|
+
|
|
71
146
|
try:
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
147
|
+
probe = subprocess.run(
|
|
148
|
+
command,
|
|
149
|
+
capture_output=True,
|
|
150
|
+
text=True,
|
|
151
|
+
timeout=5,
|
|
152
|
+
check=False,
|
|
153
|
+
)
|
|
154
|
+
lines = (probe.stdout or probe.stderr or "").strip().splitlines()
|
|
155
|
+
version = lines[0][:240] if lines else None
|
|
156
|
+
except Exception as exc:
|
|
76
157
|
version = f"version check failed: {exc}"
|
|
158
|
+
|
|
77
159
|
return {"installed": True, "binary": binary, "version": version}
|
|
78
160
|
|
|
79
161
|
|
|
@@ -446,8 +528,8 @@ def _execute_blender(payload: dict[str, Any]) -> dict[str, Any]:
|
|
|
446
528
|
class Handler(BaseHTTPRequestHandler):
|
|
447
529
|
server_version = "AgentSamCAD/1"
|
|
448
530
|
|
|
449
|
-
def log_message(self,
|
|
450
|
-
print(f"[cad] {self.address_string()} {
|
|
531
|
+
def log_message(self, format: str, *args: Any) -> None:
|
|
532
|
+
print(f"[cad] {self.address_string()} {format % args}", flush=True)
|
|
451
533
|
|
|
452
534
|
def _json(self, status: int, body: Any) -> None:
|
|
453
535
|
payload = json.dumps(body, separators=(",", ":")).encode("utf-8")
|
|
@@ -483,7 +565,7 @@ class Handler(BaseHTTPRequestHandler):
|
|
|
483
565
|
raise ValueError("JSON request must be an object")
|
|
484
566
|
return value
|
|
485
567
|
|
|
486
|
-
def do_GET(self) -> None:
|
|
568
|
+
def do_GET(self) -> None:
|
|
487
569
|
if self.path == "/healthz":
|
|
488
570
|
caps = _capabilities()
|
|
489
571
|
self._json(HTTPStatus.OK, {"ok": True, **caps})
|
|
@@ -495,7 +577,7 @@ class Handler(BaseHTTPRequestHandler):
|
|
|
495
577
|
return
|
|
496
578
|
self._json(HTTPStatus.NOT_FOUND, {"ok": False, "error": "not_found"})
|
|
497
579
|
|
|
498
|
-
def do_POST(self) -> None:
|
|
580
|
+
def do_POST(self) -> None:
|
|
499
581
|
if not self._require_auth():
|
|
500
582
|
return
|
|
501
583
|
try:
|
package/skills/README.md
CHANGED
|
@@ -13,6 +13,12 @@ current task calls for them.
|
|
|
13
13
|
| `agentsam-progression-guard` | **current** | Local → CI → deploy → postdeploy gates; no silent regress |
|
|
14
14
|
| `agentsam-cloudflare-workers` | **current** | Wrangler-native ops, observability, CPU profiling |
|
|
15
15
|
| `agentsam-codebaseindex` | **current** | Guided ingest / `codebaseindex.ingest` / Vectorize+pgvector+local lanes |
|
|
16
|
+
| `agentsam-plan-and-goap` | **current** | Read plan state first; advance plans with evidence, only when asked |
|
|
17
|
+
| `agentsam-sam-operations` | **current** | Exact SAM operation inputs; judge results, not envelopes |
|
|
18
|
+
| `agentsam-repo-recon` | **current** | Map a repo with deterministic read-only tools first |
|
|
19
|
+
| `agentsam-cad` | **current** | Typed-recipe Blender build/inspect/export with hash proof |
|
|
20
|
+
| `agentsam-experience-delivery` | **proposed workflow** | Machine-first, source-faithful brand/UX/scene handoffs with real functional gates |
|
|
21
|
+
| `agentsam-sdk-orientation` | **current** | Where things live, which source is authoritative |
|
|
16
22
|
|
|
17
23
|
List or open them with `agentsam skills`; aliases such as `quick-bytes`, `no-regress`,
|
|
18
24
|
`ingest` are intentionally short enough for terminal use.
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: agentsam-cad
|
|
3
|
+
description: >
|
|
4
|
+
Build, inspect, preview, and export Blender models from typed recipes with `agentsam cad blender`,
|
|
5
|
+
and prove each step with artifact hashes. Use for programmatic CAD, .blend/.glb/.stl/.obj
|
|
6
|
+
artifacts, recipe validation, and "does Blender work here". Triggers on "blender", "cad",
|
|
7
|
+
".blend", "recipe", "export glb", "render preview", and "box with hole".
|
|
8
|
+
metadata:
|
|
9
|
+
short-description: "Typed-recipe Blender build, inspect, preview, export, with sha256 proof between steps"
|
|
10
|
+
aliases:
|
|
11
|
+
- cad
|
|
12
|
+
- blender
|
|
13
|
+
user-invocable: true
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
# CAD with Blender
|
|
17
|
+
|
|
18
|
+
AgentSam drives Blender through **typed recipes**. It never evaluates arbitrary Python. The
|
|
19
|
+
recipe schema is `protocol/cad/blender-recipe.schema.json`; a working example is
|
|
20
|
+
`examples/cad/blender-box-with-hole.recipe.json`.
|
|
21
|
+
|
|
22
|
+
## Commands
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
agentsam cad blender status # is Blender found, and which version?
|
|
26
|
+
agentsam cad blender build <recipe.json> --out <model.blend> [--input <base.blend>] [--json]
|
|
27
|
+
agentsam cad blender inspect <model.blend> [--timeout <seconds>] [--json]
|
|
28
|
+
agentsam cad blender render-preview <model.blend> --out <preview.png> [--camera <name>] [--scene <name>] [--width 1024] [--height 1024]
|
|
29
|
+
agentsam cad blender export <model.blend> --format <glb|stl|obj> --out <artifact> [--objects <a,b>] [--collection <name>]
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Blender is located via `--blender-bin <path>`, then `AGENTSAM_BLENDER_BIN`, then `PATH`, then
|
|
33
|
+
common install locations. Timeouts are bounded to 1..600 seconds (default 120).
|
|
34
|
+
|
|
35
|
+
## Prove each step with the hash
|
|
36
|
+
|
|
37
|
+
`build` prints `artifact.sha256`. `inspect` reports the same value as `input.sha256`. If they
|
|
38
|
+
match, you inspected the file you built. Say so with the hashes, not with "it worked".
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
agentsam cad blender build examples/cad/blender-box-with-hole.recipe.json --out /tmp/box.blend --json
|
|
42
|
+
agentsam cad blender inspect /tmp/box.blend --json # compare input.sha256 to the build's artifact.sha256
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
The same inspect is available as the SAM operation `cad.blender.inspect` with
|
|
46
|
+
`{"source":"/tmp/box.blend"}` (see `agentsam-sam-operations`). `build`, `render-preview`, and
|
|
47
|
+
`export` are CLI-only; they are not SAM operations.
|
|
48
|
+
|
|
49
|
+
## Check the geometry, not just the exit code
|
|
50
|
+
|
|
51
|
+
A successful build lists the objects it created. Confirm they match the recipe's intent. For
|
|
52
|
+
example, the shipped box-with-hole recipe produced objects named `Plate`, `Key Light`, and
|
|
53
|
+
`Preview Camera`; read the full `inspect` scene output to confirm the geometry before claiming
|
|
54
|
+
the model is correct.
|
|
55
|
+
|
|
56
|
+
## Verified vs not
|
|
57
|
+
|
|
58
|
+
Verified on 2.6.12: `status`, `build`, `inspect` (CLI and SAM) with a matching hash.
|
|
59
|
+
Not verified: `render-preview`, `export`. Run them and read the output before relying on them.
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: agentsam-plan-and-goap
|
|
3
|
+
description: >
|
|
4
|
+
Check, create, advance, and prove durable project-local work plans (`agentsam plan`) and read
|
|
5
|
+
the GOAP blackboard (`agentsam goap`). Use before planning from scratch, when resuming work or
|
|
6
|
+
switching sessions, and whenever a task spans several steps. Triggers on "plan", "next step",
|
|
7
|
+
"where did we leave off", "resume", "todo", "sprint", "goap", "blackboard", "what is active",
|
|
8
|
+
and "acceptance criteria".
|
|
9
|
+
metadata:
|
|
10
|
+
short-description: "Read plan state first; advance steps with evidence, only when asked"
|
|
11
|
+
aliases:
|
|
12
|
+
- plan
|
|
13
|
+
- plans
|
|
14
|
+
- goap
|
|
15
|
+
- blackboard
|
|
16
|
+
- resume-work
|
|
17
|
+
user-invocable: true
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
# AgentSam plans and GOAP
|
|
21
|
+
|
|
22
|
+
A plan ledger and a GOAP blackboard already exist. Do not invent a second todo list, a
|
|
23
|
+
`PLAN.md`, or another tracker. **Read state first, then act.**
|
|
24
|
+
|
|
25
|
+
## 1. Read state (always safe)
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
agentsam plan list # active plans and progress (e.g. 3/9)
|
|
29
|
+
agentsam plan show current # goal, steps, and each step's status
|
|
30
|
+
agentsam plan next --json # the next step; add --start only to begin it
|
|
31
|
+
agentsam goap # blackboard: active task, world snapshot, knowledge freshness
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
`agentsam goap` also prints `Updated:` and whether knowledge is `stale`. If state is old or
|
|
35
|
+
stale, say so before relying on it. Re-indexing is heavy: do it only when asked.
|
|
36
|
+
|
|
37
|
+
## 2. Lifecycle commands
|
|
38
|
+
|
|
39
|
+
| Command | Use |
|
|
40
|
+
| --- | --- |
|
|
41
|
+
| `agentsam plan new "<title>" [--goal "..."] [--type feature\|sprint\|refactor\|incident\|daily\|run]` | Create a plan |
|
|
42
|
+
| `agentsam plan add "<step>" [--kind inspect\|implement\|verify\|deploy\|decision] [--acceptance "..."]` | Add a step |
|
|
43
|
+
| `agentsam plan depends TODO_ID DEPENDENCY_ID` | Order steps |
|
|
44
|
+
| `agentsam plan start TODO_ID` | Mark a step running |
|
|
45
|
+
| `agentsam plan evidence TODO_ID --type TYPE --ref REF [--note "..."]` | Attach proof |
|
|
46
|
+
| `agentsam plan accept TODO_ID "<criterion>" [--evidence REF]` | Record a met criterion |
|
|
47
|
+
| `agentsam plan done TODO_ID` / `agentsam plan block TODO_ID --reason "..."` | Close or block |
|
|
48
|
+
|
|
49
|
+
## 3. Rules
|
|
50
|
+
|
|
51
|
+
- **Only change plan state when the user asks in the current turn.** Reading is always fine.
|
|
52
|
+
Do not start, complete, or add steps on your own initiative.
|
|
53
|
+
- **A step is done when its acceptance criterion has evidence** (test output, command result,
|
|
54
|
+
hash, commit), not when code was written. Attach evidence, then accept, then done.
|
|
55
|
+
- **One ledger.** Resume from `plan next`; do not restate the whole plan in chat.
|
|
56
|
+
- **Plan vs GOAP.** The plan is the durable step ledger. GOAP plans over world state:
|
|
57
|
+
`planning.goap` (see `agentsam-sam-operations`) and domain plans such as
|
|
58
|
+
`agentsam plan brand --goap --json`.
|
|
59
|
+
|
|
60
|
+
## 4. Which docs are authority
|
|
61
|
+
|
|
62
|
+
| Doc | Status |
|
|
63
|
+
| --- | --- |
|
|
64
|
+
| `packages/agentsam-goap/README.md` | Authority: maps GOAP ports onto existing tables; frozen v1 contracts |
|
|
65
|
+
| `docs/architecture/SAM_KERNEL.md` | Authority for `planning.goap` and `planning.astar` |
|
|
66
|
+
| `docs/plans/SAM_WORK_PROTOCOL.md` | **Proposal only** ("no runtime or package split is authorized"). Do not treat as implemented |
|
|
67
|
+
|
|
68
|
+
`agentsam work` is **not** a command, even where help text lists it. Use `plan` and `goap`.
|
|
69
|
+
|
|
70
|
+
## Verify before trusting this skill
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
agentsam plan --help # command list still matches section 2?
|
|
74
|
+
agentsam goap # blackboard still prints?
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Last verified against agentsam-sdk 2.6.12.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: agentsam-repo-recon
|
|
3
|
+
description: >
|
|
4
|
+
Understand an unfamiliar or large repository with read-only deterministic tools before reading
|
|
5
|
+
files or spending model tokens: `agentsam inspect`, `agentsam machine inspect`, brand, security
|
|
6
|
+
and package scans, and the knowledge index. Use at the start of any task in a repo you have not
|
|
7
|
+
mapped, when asked "what is in this repo", "what changed", "is it safe", or "where does X live".
|
|
8
|
+
Triggers on "recon", "inspect", "map the repo", "audit", "scan", and "what do we have".
|
|
9
|
+
metadata:
|
|
10
|
+
short-description: "Map a repo with deterministic read-only commands first; escalate to the index or a model last"
|
|
11
|
+
aliases:
|
|
12
|
+
- recon
|
|
13
|
+
- repo-recon
|
|
14
|
+
- inspect-first
|
|
15
|
+
- map-repo
|
|
16
|
+
user-invocable: true
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
# Repository recon
|
|
20
|
+
|
|
21
|
+
Deterministic tools are cheaper, faster, and checkable. Use them first. Escalate to the index
|
|
22
|
+
or a model only for what they cannot answer.
|
|
23
|
+
|
|
24
|
+
## Order of operations
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
agentsam inspect --json # snapshot: files, systems, Merkle root, trust boundary
|
|
28
|
+
agentsam machine inspect <path> # focused look at a directory; detail goes to .agentsam/machine/runs/<run_id>/
|
|
29
|
+
agentsam brand scan --json # colors, type, assets, token conflicts
|
|
30
|
+
agentsam security scan --json # dependency + trust-boundary scan (needs network to be complete)
|
|
31
|
+
agentsam package audit --json # publish readiness of each package
|
|
32
|
+
agentsam index status # is the knowledge index fresh?
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Add `--offline` to the security and package commands only when you have no network, and then
|
|
36
|
+
**report the result as incomplete**: offline `security.scan` returns `status: "incomplete"` with
|
|
37
|
+
`checked_count: 0`, which is not a clean bill of health.
|
|
38
|
+
|
|
39
|
+
## Read the result honestly
|
|
40
|
+
|
|
41
|
+
- Check completeness fields (`status`, `complete`, `checked_count`, `unchecked`) before saying "clean".
|
|
42
|
+
- `brand scan` includes donor and `reference/` copies of the same files, so counts and
|
|
43
|
+
near-duplicate colors are inflated until those paths are excluded.
|
|
44
|
+
- `machine inspect` writes run artifacts under the target's `.agentsam/machine/runs/`. That is
|
|
45
|
+
expected; it is not a source change.
|
|
46
|
+
- Cite what you ran and the output you saw. Do not infer repository facts from folder names.
|
|
47
|
+
|
|
48
|
+
## Index sharp edges
|
|
49
|
+
|
|
50
|
+
- `agentsam codebaseindex` is a guided wizard that can call an embedding provider and write under
|
|
51
|
+
`.agentsam/`. Run it only when asked.
|
|
52
|
+
- In 2.6.12 the wizard's inventory step printed `0 files` for source directories and a LOC figure
|
|
53
|
+
far below `agentsam inspect`'s count, then cancelled after "Yes". Treat its inventory as
|
|
54
|
+
unreliable and trust `agentsam inspect`.
|
|
55
|
+
- A narrow ingest scope reported hundreds of previously indexed files as `removed`. Read the
|
|
56
|
+
`changes` block before narrowing scope.
|
|
57
|
+
|
|
58
|
+
## Related
|
|
59
|
+
|
|
60
|
+
- Operation inputs for the same machinery: `agentsam-sam-operations`.
|
|
61
|
+
- Where a command or package lives: `agentsam-sdk-orientation`.
|
|
62
|
+
|
|
63
|
+
Last verified against agentsam-sdk 2.6.12.
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: agentsam-sam-operations
|
|
3
|
+
description: >
|
|
4
|
+
Call, describe, and judge SAM operations (`sam.invoke`, `sam.describe`, `sam.discover`) such as
|
|
5
|
+
repository.inspect, brand.scan, security.scan, package.audit, terminal.exec, planning.goap,
|
|
6
|
+
decision.evaluate, cad.blender.inspect, and codebaseindex.ingest. Use when you need the exact
|
|
7
|
+
input shape of an operation, want to run machinery instead of guessing, or must decide whether
|
|
8
|
+
a result is actually proof. Triggers on "sam.invoke", "operation", "SAM", "run the scan",
|
|
9
|
+
"is this proven", "receipt", and "input shape".
|
|
10
|
+
metadata:
|
|
11
|
+
short-description: "Exact inputs for each SAM operation, and how to tell a real result from an empty one"
|
|
12
|
+
aliases:
|
|
13
|
+
- sam
|
|
14
|
+
- sam-operations
|
|
15
|
+
- invoke
|
|
16
|
+
- operations
|
|
17
|
+
user-invocable: true
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
# SAM operations
|
|
21
|
+
|
|
22
|
+
SAM (Systematic Autonomous Machinery) exposes deterministic work as **operations** with one
|
|
23
|
+
canonical id (`module.action`). The CLI is a convenience layer; the operation id is the identity.
|
|
24
|
+
Full vocabulary: `docs/architecture/SAM_KERNEL.md`.
|
|
25
|
+
|
|
26
|
+
## Call one
|
|
27
|
+
|
|
28
|
+
```js
|
|
29
|
+
import { createAgentSamClient } from '@inneranimalmedia/agentsam-sdk';
|
|
30
|
+
|
|
31
|
+
const sam = createAgentSamClient({ cwd: process.cwd() });
|
|
32
|
+
const r = await sam.invoke('repository.inspect', { root: '.' });
|
|
33
|
+
// r.ok, r.data | r.error, r.receipt.id
|
|
34
|
+
await sam.describe('codebaseindex.ingest'); // metadata without running it
|
|
35
|
+
await sam.discover({ query: 'brand' }); // compact cards
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
There is no `agentsam invoke` verb. Use the client, or the matching CLI command.
|
|
39
|
+
|
|
40
|
+
## Exact inputs (verified 2.6.12)
|
|
41
|
+
|
|
42
|
+
| Operation | Input | Notes |
|
|
43
|
+
| --- | --- | --- |
|
|
44
|
+
| `repository.inspect` | `{"root":"."}` | Read-only; output is large |
|
|
45
|
+
| `brand.scan` | `{"root":".","maxFiles":20}` | Counts donor/`reference/` copies, so token totals can be inflated |
|
|
46
|
+
| `security.scan` | `{"root":".","offline":false}` | With `offline:true` it returns `ok` but `status:"incomplete"` and `checked_count:0` |
|
|
47
|
+
| `package.audit` | `{"root":".","offline":true}` | Offline leaves public candidates `unchecked` |
|
|
48
|
+
| `terminal.exec` | `{"command":"node","args":["-v"]}` | Pathless executable plus argv. No shell strings, no `argv` key |
|
|
49
|
+
| `planning.goap` | `{"initialState":{},"goal":{},"actions":[{"id":"a","preconditions":{},"effects":{},"cost":1}]}` | Pure, no model spend |
|
|
50
|
+
| `planning.astar` | JS only: `{ initialState, isGoal(fn), expand(fn) }` | `expand` returns `[{ nextState, cost, action }]`. Not callable from JSON, CLI, or MCP |
|
|
51
|
+
| `decision.evaluate` | `{"questions":["change_risk"],"state":{}}` | Ids: `terminal_lane`, `retrieval_mode`, `change_risk`, `requires_approval`, `security_review_required`, `verification_scope` |
|
|
52
|
+
| `cad.blender.inspect` | `{"source":"model.blend"}` | Needs Blender and a real file (see `agentsam-cad`) |
|
|
53
|
+
| `codebaseindex.ingest` | `{"root":"."}` | Writes under `.agentsam/`, may call an embedding provider. Run only when asked |
|
|
54
|
+
|
|
55
|
+
## Judge the result, not the envelope
|
|
56
|
+
|
|
57
|
+
- `ok: true` plus a receipt means the operation ran. It does **not** mean the result is complete.
|
|
58
|
+
Always read the data: `status`, `complete`, `checked_count`, `unchecked`.
|
|
59
|
+
- A receipt id (`samr_...`) is **not durable evidence**: receipts are in memory only, and
|
|
60
|
+
`agentsam receipts show <id>` reports "not found" afterward. Cite command output, file paths,
|
|
61
|
+
and hashes instead. Re-check with `agentsam receipts list`.
|
|
62
|
+
- "Is X proven?" means all of: it has input/output schemas (`sam.describe`), a test calls
|
|
63
|
+
`invoke` and checks the data, and the denied/approval path is exercised for non-read risk.
|
|
64
|
+
|
|
65
|
+
## Known gaps (2.6.12, re-check before relying)
|
|
66
|
+
|
|
67
|
+
- Only `repository.inspect` declares input/output schemas; the other nine return none from `describe`.
|
|
68
|
+
- These CLI commands name operations that are **not registered**: `machine.inspect`, `engine.audit`,
|
|
69
|
+
`merch.preflight`, `receipts.inspect`, `site.scrape`. Use the CLI for them.
|
|
70
|
+
- The agent loop (`src/agent`, `src/providers`) does not reference SAM operations, so a model
|
|
71
|
+
cannot call them yet. Run them yourself.
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: agentsam-sdk-orientation
|
|
3
|
+
description: >
|
|
4
|
+
Find where something lives in the agentsam-sdk repo and which source is authoritative: commands,
|
|
5
|
+
packages, operations, contracts, skills, migrations, and docs, including which docs are
|
|
6
|
+
proposals. Use at the start of work in this repo, before building anything new, and whenever
|
|
7
|
+
you are about to guess. Triggers on "where is", "what do we have", "is there already",
|
|
8
|
+
"catalog", "inventory", "which doc is real", and "orientation".
|
|
9
|
+
metadata:
|
|
10
|
+
short-description: "Authoritative source for each kind of thing, and the habit of checking before building"
|
|
11
|
+
aliases:
|
|
12
|
+
- orientation
|
|
13
|
+
- sdk-map
|
|
14
|
+
- where-is-it
|
|
15
|
+
- catalog
|
|
16
|
+
user-invocable: true
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
# agentsam-sdk orientation
|
|
20
|
+
|
|
21
|
+
Most rediscovery comes from not knowing which file is the source of truth. Use this table, then
|
|
22
|
+
**check what already exists before adding anything**.
|
|
23
|
+
|
|
24
|
+
## Start here
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
agentsam cheat-sheet # grouped command overview
|
|
28
|
+
agentsam help <topic> # focused help generated from the command catalog
|
|
29
|
+
agentsam skills # list portable skills
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Source of truth by kind
|
|
33
|
+
|
|
34
|
+
| Question | Authority |
|
|
35
|
+
| --- | --- |
|
|
36
|
+
| What CLI commands exist? | `src/cli/command-catalog.js` (generated view: `docs/generated/SDK_CAPABILITY_INVENTORY.md`) |
|
|
37
|
+
| What packages and apps exist? | `agentsam.yaml`, `packages/catalog/` |
|
|
38
|
+
| What can be invoked as an operation? | `src/sam/` (`seed.js` lists registered ops); vocabulary in `docs/architecture/SAM_KERNEL.md` |
|
|
39
|
+
| What are the wire contracts? | `protocol/` (JSON Schemas) and `packages/agentsam-contracts` |
|
|
40
|
+
| What are the capability inputs? | `protocol/capabilities/manifest.json` and the `*.schema.json` beside it |
|
|
41
|
+
| What rules apply in this repo? | `AGENTSAM.md` (canonical), `.agentsamrules` |
|
|
42
|
+
| What skills exist? | `skills/catalog.json` |
|
|
43
|
+
| What DB tables does it assume? | `migrations/` and `registry/` |
|
|
44
|
+
|
|
45
|
+
`docs/generated/SDK_CAPABILITY_INVENTORY.md` says it plainly: **listing is not proof.** A command
|
|
46
|
+
or package existing does not mean it works. Run it.
|
|
47
|
+
|
|
48
|
+
## Vocabulary (do not flatten)
|
|
49
|
+
|
|
50
|
+
operation = user-callable capability with one id; capability = what the runtime can perform;
|
|
51
|
+
tool = bounded executable primitive, often agent-facing; skill = procedural knowledge;
|
|
52
|
+
pipeline = ordered composition; provider = adapter to an external or local implementation;
|
|
53
|
+
contract = portable schemas and types.
|
|
54
|
+
|
|
55
|
+
## Tool definitions: three shapes already exist
|
|
56
|
+
|
|
57
|
+
1. `SamOperationDef` via `defineSamOperation()` in `src/sam/define.js`.
|
|
58
|
+
2. `AgentToolDefinition` in `packages/agentsam-contracts/src/tools.ts`, used by `createToolRegistry()` in `src/tools/registry.js`.
|
|
59
|
+
3. The plugin manifest normalizer in `src/plugins/contracts.js`, which maps to rows in the D1 `agentsam_tools` table.
|
|
60
|
+
|
|
61
|
+
Reuse one of these. Do not add a fourth.
|
|
62
|
+
|
|
63
|
+
## Doc status
|
|
64
|
+
|
|
65
|
+
Check a doc's own status line before treating it as spec. Examples: `SAM_KERNEL.md` is a locked
|
|
66
|
+
vocabulary with seed contracts; `docs/plans/SAM_WORK_PROTOCOL.md` is a **proposal**. Plans in
|
|
67
|
+
`docs/plans/` are intent, not shipped behavior.
|
|
68
|
+
|
|
69
|
+
## Before building anything new
|
|
70
|
+
|
|
71
|
+
1. Search: `rg -n "<term>" src packages protocol docs` and the catalog above.
|
|
72
|
+
2. Run the nearest existing command or operation and read its output.
|
|
73
|
+
3. Extend what exists. Add a new table, registry, or package only when nothing existing fits.
|
|
74
|
+
|
|
75
|
+
Last verified against agentsam-sdk 2.6.12.
|