@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
package/src/knowledge/engine.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { randomUUID } from 'node:crypto';
|
|
1
|
+
import { randomUUID, createHash } from 'node:crypto';
|
|
2
2
|
import { validateConfig, fingerprint, scopeKey, cacheNamespace, gitEvidence } from './config.js';
|
|
3
|
-
import { PARSER, inventory, readSource, parseSource } from './source.js';
|
|
3
|
+
import { PARSER, inventory, inventoryFromRepositoryCrawl, readSource, parseSource } from './source.js';
|
|
4
4
|
import { createContextPack } from './context-pack.js';
|
|
5
5
|
import { normalizeResultPolicy } from '../context/result-policy.js';
|
|
6
6
|
import { buildMerkleTree } from '../../packages/agentsam-repository/src/merkle/index.js';
|
|
7
|
+
import {siteKnowledgeSources} from '../../packages/agentsam-site-scrape/runtime/knowledge.mjs';
|
|
7
8
|
|
|
8
9
|
export const embeddingProfileId = profile => fingerprint({ ...profile, input_format: 'agentsam-code-content:1' });
|
|
9
10
|
export function validateVector(vector, dimensions) {
|
|
@@ -15,7 +16,8 @@ function changes(before = [], after = []) {
|
|
|
15
16
|
return { added: after.filter(f => !old.has(f.path)).map(f => f.path), changed: after.filter(f => old.has(f.path) && old.get(f.path) !== f.hash).map(f => f.path), removed: before.filter(f => !now.has(f.path)).map(f => f.path) };
|
|
16
17
|
}
|
|
17
18
|
/** Planning never persists, calls an embedding provider, or changes active state. */
|
|
18
|
-
export async function planIndex({ root, config: input, store, embed = false, limits = null }) {
|
|
19
|
+
export async function planIndex({ root, config: input, store, embed = false, limits = null, repositoryCrawl = null, siteCrawl = null }) {
|
|
20
|
+
if(repositoryCrawl && siteCrawl)throw Error('site crawl and repository crawl are distinct source authorities');
|
|
19
21
|
const config = validateConfig(input), scope = scopeKey(config), namespace = cacheNamespace(config);
|
|
20
22
|
if (embed && config.embedding.provider === 'none') throw new Error('Embedding is explicitly disabled for this knowledge profile. Configure a provider before --embed.');
|
|
21
23
|
const maxFiles = limits?.maxFiles == null ? Infinity : Number(limits.maxFiles);
|
|
@@ -25,9 +27,13 @@ export async function planIndex({ root, config: input, store, embed = false, lim
|
|
|
25
27
|
const files = [], chunks = [], symbols = [], edges = [], parseWrites = [], skipped = [];
|
|
26
28
|
const parseProfile = fingerprint([PARSER, config.chunking]);
|
|
27
29
|
let parsedFiles = 0;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
+
const siteSources = siteCrawl ? siteKnowledgeSources(siteCrawl,config.scope) : null;
|
|
31
|
+
const availableFiles = siteSources ? [...siteSources.keys()].sort() : repositoryCrawl ? inventoryFromRepositoryCrawl(repositoryCrawl, config.scope) : inventory(root, config.scope);
|
|
32
|
+
const expectedHashes = repositoryCrawl ? new Map(repositoryCrawl.resources.filter(r=>r.id.startsWith('file:')).map(r=>[r.path,r.hash])) : null;
|
|
33
|
+
for (const file of availableFiles.slice(0, maxFiles)) {
|
|
34
|
+
const source = siteSources ? siteSources.get(file) : readSource(root, file);
|
|
30
35
|
if (!source) { skipped.push(file); continue; }
|
|
36
|
+
if (expectedHashes && expectedHashes.get(file) !== createHash('sha256').update(source.content).digest('hex')) throw new Error(`Repository crawl snapshot is stale: ${file}`);
|
|
31
37
|
const key = `${namespace}:parse:${fingerprint([source.hash, file.split('.').pop(), parseProfile])}`;
|
|
32
38
|
let parsed = await store?.cacheGet(key);
|
|
33
39
|
if (!parsed) { parsed = parseSource(file, source.content, config.chunking.max_chars); parseWrites.push([key, parsed]); parsedFiles++; }
|
|
@@ -46,7 +52,7 @@ export async function planIndex({ root, config: input, store, embed = false, lim
|
|
|
46
52
|
const sourceHash = fingerprint(files.map(f => [f.path, f.hash]));
|
|
47
53
|
const configHash = fingerprint([config.scope, config.chunking, PARSER, profileId, Number.isFinite(maxFiles) ? maxFiles : null, Number.isFinite(maxChunks) ? maxChunks : null]);
|
|
48
54
|
let merkle = null;
|
|
49
|
-
try { merkle = await buildMerkleTree(root, { semantic: true }); } catch { merkle = null; }
|
|
55
|
+
if (!repositoryCrawl && !siteCrawl) { try { merkle = await buildMerkleTree(root, { semantic: true }); } catch { merkle = null; } }
|
|
50
56
|
const previousMerkle = previous?.receipt?.merkle_root || null;
|
|
51
57
|
const changedMerklePaths = merkle && previousMerkle !== merkle.rootHash ? files.filter(file => !previous?.files?.some(before => before.path === file.path && before.hash === file.hash)).map(file => file.path) : [];
|
|
52
58
|
const noChange = previous?.source_hash === sourceHash && previous?.config_hash === configHash && !missing.size;
|
|
@@ -55,14 +61,17 @@ export async function planIndex({ root, config: input, store, embed = false, lim
|
|
|
55
61
|
parsed_files: parsedFiles, embedding_inputs: missing.size, embedding_characters: [...missing.values()].reduce((n, s) => n + s.length, 0),
|
|
56
62
|
estimated_tokens: Math.ceil([...missing.values()].reduce((n, s) => n + s.length + 24, 0) / 4), token_estimate_method: 'characters / 4; not billable usage',
|
|
57
63
|
profile_id: profileId, skipped, changes: changes(previous?.files, files), no_change: Boolean(noChange), source_hash: sourceHash, config_hash: configHash,
|
|
64
|
+
repository_crawl_snapshot: repositoryCrawl?.snapshot_id || null, machine_run_id:repositoryCrawl?.machine_run_id || null,
|
|
65
|
+
site_crawl_snapshot: siteCrawl?.content_hash || null,
|
|
66
|
+
site_source_urls: siteSources?Object.fromEntries([...siteSources].map(([key,value])=>[key,value.url])):null,
|
|
58
67
|
merkle_root: merkle?.rootHash || null, semantic_metadata_root: merkle?.semantic?.rootHash || null, merkle_changed_paths: changedMerklePaths,
|
|
59
68
|
limits: Number.isFinite(maxFiles) || Number.isFinite(maxChunks) ? { max_files: maxFiles, max_chunks: maxChunks } : null } };
|
|
60
69
|
}
|
|
61
70
|
|
|
62
|
-
export async function runIndex({ root, config, store, embedder, embed = false, vectorBackend = null, vectorContext = {}, maxInputs = 100, maxCharacters = 200000, limits = null }) {
|
|
71
|
+
export async function runIndex({ root, config, store, embedder, embed = false, vectorBackend = null, vectorContext = {}, maxInputs = 100, maxCharacters = 200000, limits = null, repositoryCrawl = null, siteCrawl = null }) {
|
|
63
72
|
if (!store) throw new Error('A writable knowledge store is required.');
|
|
64
73
|
if (!Number.isInteger(maxInputs) || maxInputs < 0 || !Number.isInteger(maxCharacters) || maxCharacters < 0) throw new Error('Embedding budgets must be nonnegative integers.');
|
|
65
|
-
const plan = await planIndex({ root, config, store, embed, limits });
|
|
74
|
+
const plan = await planIndex({ root, config, store, embed, limits, repositoryCrawl, siteCrawl });
|
|
66
75
|
const { receipt } = plan;
|
|
67
76
|
if (receipt.no_change) return { ...receipt, generation_id: plan.previous.id, published: false };
|
|
68
77
|
if (receipt.embedding_inputs > maxInputs || receipt.embedding_characters > maxCharacters) throw new Error(`Embedding budget exceeded: ${receipt.embedding_inputs} unique inputs / ${receipt.embedding_characters} characters. Review index plan before raising limits.`);
|
|
@@ -97,9 +106,10 @@ export async function runIndex({ root, config, store, embedder, embed = false, v
|
|
|
97
106
|
}
|
|
98
107
|
// A generation describes one coherent source snapshot. Never publish after a mid-run edit.
|
|
99
108
|
const check = [];
|
|
100
|
-
const
|
|
101
|
-
|
|
102
|
-
|
|
109
|
+
const siteSources = siteCrawl ? siteKnowledgeSources(siteCrawl,plan.config.scope) : null;
|
|
110
|
+
const checkFiles = (siteSources ? [...siteSources.keys()].sort() : repositoryCrawl ? inventoryFromRepositoryCrawl(repositoryCrawl, plan.config.scope) : inventory(root, plan.config.scope)).slice(0, limits?.maxFiles == null ? Infinity : limits.maxFiles);
|
|
111
|
+
for (const file of checkFiles) { const source = siteSources?siteSources.get(file):readSource(root, file); if (source) check.push([file, source.hash]); }
|
|
112
|
+
if (fingerprint(check) !== receipt.source_hash) throw new Error(`${siteCrawl ? 'Site crawl' : 'Repository'} changed while indexing; cached work retained, active generation unchanged. Rerun.`);
|
|
103
113
|
const generation = { id: randomUUID(), scope_key: scopeKey(plan.config), created_at: new Date().toISOString(),
|
|
104
114
|
source_hash: receipt.source_hash, config_hash: receipt.config_hash, config: plan.config, profile_id: receipt.profile_id,
|
|
105
115
|
git: gitEvidence(root), files: plan.files, chunks: plan.chunks, symbols: plan.symbols, edges: plan.edges, receipt };
|
|
@@ -107,7 +117,7 @@ export async function runIndex({ root, config, store, embedder, embed = false, v
|
|
|
107
117
|
return { ...receipt, generation_id: generation.id, published: true, vector_upsert: vectorUpsert };
|
|
108
118
|
}
|
|
109
119
|
|
|
110
|
-
export async function retrieve({ store, config: input, text, semantic = false, embedder, topK = 8, tokenBudget = 6000, generationId, resultPolicy: requestedResultPolicy }) {
|
|
120
|
+
export async function retrieve({ store, config: input, root = null, text, semantic = false, embedder, topK = 8, tokenBudget = 6000, generationId, resultPolicy: requestedResultPolicy }) {
|
|
111
121
|
const config = validateConfig(input);
|
|
112
122
|
if (typeof text !== 'string' || !text.trim()) throw new Error('A nonempty query is required.');
|
|
113
123
|
const resultPolicy = normalizeResultPolicy(requestedResultPolicy || {});
|
|
@@ -116,6 +126,9 @@ export async function retrieve({ store, config: input, text, semantic = false, e
|
|
|
116
126
|
if (!Number.isInteger(tokenBudget) || tokenBudget < 256 || tokenBudget > maxTokenBudget) throw new Error(`tokenBudget must be 256..${maxTokenBudget} under the active result policy.`);
|
|
117
127
|
const generation = generationId ? await store?.getGeneration(scopeKey(config), generationId) : await store?.active(scopeKey(config));
|
|
118
128
|
if (!generation) throw new Error('No generation found for this repository/scope. Run agentsam index run.');
|
|
129
|
+
if (!generationId && fingerprint([generation.config?.scope, generation.config?.chunking]) !== fingerprint([config.scope, config.chunking])) {
|
|
130
|
+
throw new Error('knowledge_generation_config_mismatch: active generation belongs to a different source scope or chunking policy. Run index plan and index run, or request an explicit historical generation.');
|
|
131
|
+
}
|
|
119
132
|
let queryVector;
|
|
120
133
|
if (semantic) {
|
|
121
134
|
if (generation.profile_id !== embeddingProfileId(config.embedding)) throw new Error('Active generation uses a different embedding profile or AST only. Run index plan --embed and index run --embed.');
|
|
@@ -142,15 +155,42 @@ export async function retrieve({ store, config: input, text, semantic = false, e
|
|
|
142
155
|
ranked.sort((a, b) => b.score - a.score || a.path.localeCompare(b.path) || a.ordinal - b.ordinal);
|
|
143
156
|
let estimatedTokens = 0;
|
|
144
157
|
const hits = [];
|
|
158
|
+
// A generation is evidence from indexing time, not proof of the present
|
|
159
|
+
// working tree. Verify returned local source files only, without rescanning
|
|
160
|
+
// the entire repository or paying for embeddings.
|
|
161
|
+
const indexedFiles = new Map((generation.files || []).map(file => [file.path, file.hash]));
|
|
162
|
+
const checked = new Map();
|
|
163
|
+
const sourceFreshness = (file) => {
|
|
164
|
+
if (!root || generation.receipt?.site_crawl_snapshot || !indexedFiles.has(file)) return 'not_checked';
|
|
165
|
+
if (checked.has(file)) return checked.get(file);
|
|
166
|
+
let state = 'unverifiable';
|
|
167
|
+
try {
|
|
168
|
+
const current = readSource(root, file);
|
|
169
|
+
state = !current ? 'missing_or_unreadable'
|
|
170
|
+
: current.hash === indexedFiles.get(file) ? 'verified' : 'changed';
|
|
171
|
+
} catch {
|
|
172
|
+
state = 'unverifiable';
|
|
173
|
+
}
|
|
174
|
+
checked.set(file, state);
|
|
175
|
+
return state;
|
|
176
|
+
};
|
|
145
177
|
for (const hit of ranked) {
|
|
146
178
|
const tokens = Math.ceil(hit.content.length / 4);
|
|
147
179
|
if (estimatedTokens + tokens > tokenBudget) continue;
|
|
180
|
+
const freshness = sourceFreshness(hit.path);
|
|
148
181
|
hits.push({ chunk_id: hit.id, content: hit.content, score: hit.score, lane: /\.[cm]?[jt]sx?$/i.test(hit.path) ? 'code' : 'docs',
|
|
149
182
|
path: hit.path, line_start: hit.start_line, line_end: hit.end_line, commit_sha: generation.git.commit, ref: generation.git.branch,
|
|
150
|
-
stale: Boolean(generationId)
|
|
151
|
-
|
|
183
|
+
stale: Boolean(generationId) || freshness === 'changed' || freshness === 'missing_or_unreadable',
|
|
184
|
+
reasons: [semantic ? 'cosine' : 'lexical', ...(freshness === 'changed' ? ['indexed_source_changed'] : freshness === 'missing_or_unreadable' ? ['indexed_source_unavailable'] : [])],
|
|
185
|
+
source_authority: generation.receipt?.site_crawl_snapshot?'site-crawl-evidence':'repository-snapshot',
|
|
186
|
+
metadata: { generation_id: generation.id, symbol: hit.symbol, content_hash: hit.content_hash,
|
|
187
|
+
...(generation.receipt?.site_source_urls?{url:generation.receipt.site_source_urls[hit.path]}:{}),
|
|
188
|
+
freshness: freshness === 'verified' ? 'returned file hash verified; full repository not checked' : freshness === 'changed' ? 'returned file changed after indexing' : freshness === 'missing_or_unreadable' ? 'returned file missing or unreadable' : 'working tree not checked' } }); estimatedTokens += tokens;
|
|
152
189
|
if (hits.length === topK) break;
|
|
153
190
|
}
|
|
154
191
|
return createContextPack({ queryId: randomUUID(), query: { text, top_k: topK, token_budget: tokenBudget, result_policy: resultPolicy }, hits,
|
|
155
|
-
diagnostics: { generation_id: generation.id, source_hash: generation.source_hash, scope: generation.config.scope, mode: semantic ? 'semantic-exact' : 'lexical',
|
|
192
|
+
diagnostics: { generation_id: generation.id, source_hash: generation.source_hash, scope: generation.config.scope, mode: semantic ? 'semantic-exact' : 'lexical',
|
|
193
|
+
freshness: hits.some(h => h.stale) ? 'at least one returned hit is stale' :
|
|
194
|
+
hits.length && hits.every(h => h.metadata.freshness.startsWith('returned file hash verified')) ? 'returned file hashes verified; full repository not checked' :
|
|
195
|
+
'snapshot; working tree not checked' } });
|
|
156
196
|
}
|
package/src/knowledge/source.js
CHANGED
|
@@ -26,6 +26,14 @@ export function inventory(root, scope) {
|
|
|
26
26
|
}
|
|
27
27
|
return [...new Set(files)].filter(file => isKnowledgeSourcePath(file) && !OMIT.test(file) && scope.include.some(s => under(file, s)) && !scope.exclude.some(s => under(file, s))).sort();
|
|
28
28
|
}
|
|
29
|
+
/** Consume Machine/Repository file evidence instead of running a second inventory traversal. */
|
|
30
|
+
export function inventoryFromRepositoryCrawl(graph, scope) {
|
|
31
|
+
if (graph?.schema !== 'agentsam.repository.crawl.v1') throw new TypeError('expected repository crawl evidence');
|
|
32
|
+
return [...new Set(graph.resources.filter(r => r.id.startsWith('file:')).map(r => r.path))]
|
|
33
|
+
.filter(file => isKnowledgeSourcePath(file) && !OMIT.test(file) &&
|
|
34
|
+
scope.include.some(s => under(file,s)) && !scope.exclude.some(s => under(file,s))).sort();
|
|
35
|
+
}
|
|
36
|
+
|
|
29
37
|
export function readSource(root, file) {
|
|
30
38
|
// Refuse all symlink components, including tracked links into another repository.
|
|
31
39
|
let current = root;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import fs from 'node:fs';
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import { CONFIG_PATH, readConfig, validateConfig, defaultConfig } from './config.js';
|
|
4
|
+
import { parseWranglerTomlBindings } from './wrangler-binding-discovery.js';
|
|
4
5
|
import { findCliProjectRoot } from '../lib/cli-preferences.js';
|
|
5
6
|
import { runtimeDatabasePath } from '../local/runtime-store.js';
|
|
6
7
|
import { getRepositoryId, portableRepositoryIdFromGit, tryReadProjectConfig } from '../lib/project-config.js';
|
|
@@ -30,7 +31,7 @@ export async function discoverProjectStores(cwd, env = process.env) {
|
|
|
30
31
|
const file = path.join(dir, entry.name);
|
|
31
32
|
if (entry.isDirectory()) scan(file, depth + 1);
|
|
32
33
|
else if (['wrangler.json', 'wrangler.jsonc'].includes(entry.name)) configs.push(file);
|
|
33
|
-
else if (entry.name === 'wrangler.toml')
|
|
34
|
+
else if (entry.name === 'wrangler.toml') configs.push(file);
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
37
|
scan(root, 0);
|
|
@@ -40,10 +41,15 @@ export async function discoverProjectStores(cwd, env = process.env) {
|
|
|
40
41
|
for (const file of configs) {
|
|
41
42
|
const source = path.relative(root, file);
|
|
42
43
|
if (fs.statSync(file).size > 1024 * 1024) { warnings.push(`${source}: configuration too large`); continue; }
|
|
43
|
-
const
|
|
44
|
+
const contents=fs.readFileSync(file, 'utf8');
|
|
45
|
+
if (file.endsWith('.toml')) {
|
|
46
|
+
candidates.push(...parseWranglerTomlBindings(contents, source));
|
|
47
|
+
continue;
|
|
48
|
+
}
|
|
49
|
+
const parsed = parseConfigFileTextToJson(file, contents);
|
|
44
50
|
if (parsed.error) { warnings.push(`${source}: invalid JSONC`); continue; }
|
|
45
51
|
const add = (cfg, environment = null) => {
|
|
46
|
-
for (const [key, driver, label] of [['d1_databases', 'd1', 'database_name'], ['hyperdrive', 'postgres-hyperdrive', 'id'], ['r2_buckets', 'r2', 'bucket_name']]) {
|
|
52
|
+
for (const [key, driver, label] of [['d1_databases', 'd1', 'database_name'], ['hyperdrive', 'postgres-hyperdrive', 'id'], ['r2_buckets', 'r2', 'bucket_name'], ['vectorize','vectorize','index_name'], ['kv_namespaces','kv','id']]) {
|
|
47
53
|
for (const binding of Array.isArray(cfg?.[key]) ? cfg[key] : []) {
|
|
48
54
|
candidates.push({ id: `${source}:${environment || 'default'}:${binding.binding}`, driver, role: 'application', binding: binding.binding, name: binding[label], source, environment, selectable: false, status: 'declared; connectivity not verified' });
|
|
49
55
|
}
|
|
@@ -25,6 +25,13 @@ export async function openSqliteStore(filename, { readOnly = false } = {}) {
|
|
|
25
25
|
const active = scope => decode(db.prepare('SELECT g.payload FROM knowledge_active a JOIN knowledge_generations g ON a.id=g.id WHERE a.scope=?').get(scope));
|
|
26
26
|
return {
|
|
27
27
|
async active(scope) { return active(scope); },
|
|
28
|
+
async scopeStatus(scope) {
|
|
29
|
+
// Cheap status probe: never deserialize all generation payloads just to
|
|
30
|
+
// determine whether the configured repository scope is usable.
|
|
31
|
+
const row=db.prepare('SELECT id FROM knowledge_active WHERE scope=?').get(scope);
|
|
32
|
+
const total=db.prepare('SELECT COUNT(*) AS n FROM knowledge_generations').get();
|
|
33
|
+
return {active_id:row?.id||null,existing_generations:Number(total?.n||0)};
|
|
34
|
+
},
|
|
28
35
|
async getGeneration(scope, id) { return decode(db.prepare('SELECT payload FROM knowledge_generations WHERE scope=? AND id=?').get(scope, id)); },
|
|
29
36
|
async cacheGet(key) { const row = db.prepare('SELECT value FROM knowledge_cache WHERE key=?').get(key); return row ? JSON.parse(row.value) : null; },
|
|
30
37
|
async cachePut(key, value) { db.prepare('INSERT OR IGNORE INTO knowledge_cache VALUES (?,?)').run(key, JSON.stringify(value)); },
|
|
@@ -38,6 +45,7 @@ export async function openSqliteStore(filename, { readOnly = false } = {}) {
|
|
|
38
45
|
} catch (e) { db.exec('ROLLBACK'); throw e; }
|
|
39
46
|
},
|
|
40
47
|
async history(scope) { return db.prepare('SELECT payload FROM knowledge_generations WHERE scope=? ORDER BY created_at,id').all(scope).map(decode); },
|
|
48
|
+
async historicalSummaries() { return db.prepare('SELECT scope, id, created_at, payload FROM knowledge_generations ORDER BY created_at DESC').all().map(row => { const g = decode(row); return { scope_key: row.scope, generation_id: row.id, created_at: row.created_at, files: g.files?.length || 0, chunks: g.chunks?.length || 0, provider: g.config?.embedding?.provider || 'none', model: g.config?.embedding?.model || null, embedded: Boolean(g.profile_id), source_scope: g.config?.scope || null, active: Boolean(db.prepare('SELECT 1 FROM knowledge_active WHERE scope=? AND id=?').get(row.scope, row.id)) }; }); },
|
|
41
49
|
async observe(namespace, observation) { db.prepare('INSERT INTO knowledge_observations VALUES (?,?,?,?)').run(observation.id, namespace, observation.created_at, JSON.stringify(observation)); },
|
|
42
50
|
async observations(namespace) { return db.prepare('SELECT payload FROM knowledge_observations WHERE namespace=? ORDER BY created_at,id').all(namespace).map(decode); },
|
|
43
51
|
async close() { db.close(); },
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bounded Wrangler TOML binding discovery, not a general TOML evaluator.
|
|
3
|
+
* Only allowlisted binding descriptors leave this module. Secrets, vars,
|
|
4
|
+
* tokens, URLs and arbitrary TOML contents must never be emitted.
|
|
5
|
+
*/
|
|
6
|
+
const FAMILIES = Object.freeze({
|
|
7
|
+
d1_databases: ['d1','database_name'],
|
|
8
|
+
r2_buckets: ['r2','bucket_name'],
|
|
9
|
+
vectorize: ['vectorize','index_name'],
|
|
10
|
+
hyperdrive: ['postgres-hyperdrive','id'],
|
|
11
|
+
kv_namespaces: ['kv','id'],
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
export function parseWranglerTomlBindings(text, source) {
|
|
15
|
+
const candidates=[];
|
|
16
|
+
const lines=String(text).split(/\r?\n/);
|
|
17
|
+
let active=null;
|
|
18
|
+
for (const line of lines) {
|
|
19
|
+
const section=line.trim().match(/^\[\[([a-zA-Z0-9_.-]+)\]\](?:\s*#.*)?$/);
|
|
20
|
+
if(section){
|
|
21
|
+
const parts=section[1].split('.');
|
|
22
|
+
let family=null,environment=null;
|
|
23
|
+
if(parts.length===1)family=parts[0];
|
|
24
|
+
if(parts.length===3&&parts[0]==='env'){
|
|
25
|
+
environment=parts[1]; family=parts[2];
|
|
26
|
+
}
|
|
27
|
+
active=Object.hasOwn(FAMILIES,family)?{family,environment,attributes:{}}:null;
|
|
28
|
+
if(active)candidates.push(active);
|
|
29
|
+
continue;
|
|
30
|
+
}
|
|
31
|
+
if(/^\s*\[/.test(line)) {active=null;continue;}
|
|
32
|
+
if(!active)continue;
|
|
33
|
+
const prop=line.match(/^\s*(binding|database_name|bucket_name|index_name|id)\s*=\s*(["'])([^"'\r\n]{1,256})\2(?:\s*(?:#.*)?)?$/);
|
|
34
|
+
if(prop)active.attributes[prop[1]]=prop[3];
|
|
35
|
+
}
|
|
36
|
+
return candidates.filter(c=>c.attributes.binding).map(c=>{
|
|
37
|
+
const [driver,key]=FAMILIES[c.family];
|
|
38
|
+
return {id:`${source}:${c.environment||'default'}:${c.attributes.binding}`,driver,
|
|
39
|
+
role:'application',binding:c.attributes.binding,name:c.attributes[key]||null,
|
|
40
|
+
source,environment:c.environment,selectable:false,
|
|
41
|
+
status:'declared; connectivity not verified'};
|
|
42
|
+
});
|
|
43
|
+
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import fs from 'node:fs';
|
|
2
|
+
import os from 'node:os';
|
|
2
3
|
import path from 'node:path';
|
|
3
4
|
import { createHash } from 'node:crypto';
|
|
4
5
|
import { findProjectRules } from './project-rules.js';
|
|
5
6
|
|
|
6
7
|
export const AGENT_RUNTIME_FILENAME = 'AGENTSAM.md';
|
|
7
|
-
|
|
8
|
+
// Optional, user-owned policy. Never scaffold or bundle an operator's rules for customers.
|
|
9
|
+
export const AGENT_USER_GLOBAL_RULES_PATH = '.agentsam/AGENTSAM.md';
|
|
10
|
+
export const AGENT_INSTRUCTION_PRECEDENCE = Object.freeze(['~/.agentsam/AGENTSAM.md', 'AGENTSAM.md', '.agentsamrules']);
|
|
8
11
|
|
|
9
12
|
/** Provider/editor adapters that must redirect to AGENTSAM.md — never compiled as policy. */
|
|
10
13
|
export const AGENT_INSTRUCTION_COMPAT_SHIMS = Object.freeze(['AGENTS.md', 'CLAUDE.md']);
|
|
@@ -35,9 +38,15 @@ export function compileAgentInstructions(startDir = process.cwd(), options = {})
|
|
|
35
38
|
const maxChars = Number(options.maxChars ?? 24_000);
|
|
36
39
|
if (!Number.isInteger(maxChars) || maxChars < 1) throw new RangeError('agent instructions maxChars must be a positive integer');
|
|
37
40
|
|
|
41
|
+
// The caller can explicitly disable user-global policy for isolated/hosted contexts
|
|
42
|
+
// or point it at the authenticated user's chosen policy file.
|
|
43
|
+
const globalPath = options.globalFilename === null
|
|
44
|
+
? null
|
|
45
|
+
: path.resolve(options.globalFilename || path.join(os.homedir(), AGENT_USER_GLOBAL_RULES_PATH));
|
|
38
46
|
const runtimePath = options.runtimeFilename ? path.resolve(options.runtimeFilename) : findAgentRuntimeContract(startDir);
|
|
39
47
|
const projectPath = options.projectFilename ? path.resolve(options.projectFilename) : findProjectRules(startDir);
|
|
40
48
|
const descriptors = [
|
|
49
|
+
{ id: 'global', filename: '~/.agentsam/AGENTSAM.md', path: globalPath },
|
|
41
50
|
{ id: 'runtime', filename: AGENT_RUNTIME_FILENAME, path: runtimePath },
|
|
42
51
|
{ id: 'project', filename: '.agentsamrules', path: projectPath },
|
|
43
52
|
];
|
|
@@ -60,15 +69,30 @@ export function compileAgentInstructions(startDir = process.cwd(), options = {})
|
|
|
60
69
|
}
|
|
61
70
|
|
|
62
71
|
const combined = sections.join('\n');
|
|
63
|
-
|
|
64
|
-
|
|
72
|
+
// Fail closed instead of trimming a global-first concatenation: truncation used
|
|
73
|
+
// to silently remove the *repository's* rules from real model requests.
|
|
74
|
+
if (combined.length > maxChars) {
|
|
75
|
+
const error = new RangeError(`agent_instructions_budget_exceeded:${combined.length}>${maxChars}; increase the instruction budget or shorten the source files before running a model turn`);
|
|
76
|
+
error.code = 'AGENTSAM_INSTRUCTION_BUDGET_EXCEEDED';
|
|
77
|
+
error.receipt = Object.freeze({
|
|
78
|
+
required_chars: combined.length,
|
|
79
|
+
budget_chars: maxChars,
|
|
80
|
+
source_hash: sha256(combined),
|
|
81
|
+
sources: Object.freeze([...sources]),
|
|
82
|
+
omitted: false,
|
|
83
|
+
safe_to_execute: false,
|
|
84
|
+
});
|
|
85
|
+
throw error;
|
|
86
|
+
}
|
|
87
|
+
const content = combined;
|
|
65
88
|
return Object.freeze({
|
|
66
89
|
found: sources.length > 0,
|
|
67
|
-
path: projectPath || runtimePath || null,
|
|
90
|
+
path: projectPath || runtimePath || (sources.length ? globalPath : null),
|
|
68
91
|
content,
|
|
69
92
|
chars: content.length,
|
|
93
|
+
budget_chars: maxChars,
|
|
70
94
|
source_chars: sourceChars,
|
|
71
|
-
truncated,
|
|
95
|
+
truncated: false,
|
|
72
96
|
hash: combined ? sha256(combined) : null,
|
|
73
97
|
precedence: AGENT_INSTRUCTION_PRECEDENCE,
|
|
74
98
|
sources: Object.freeze(sources),
|
package/src/lib/auth.js
CHANGED
|
@@ -83,6 +83,11 @@ export function buildNativeAuthorizationUrl(options = {}) {
|
|
|
83
83
|
url.searchParams.set('code_challenge_method', 'S256');
|
|
84
84
|
url.searchParams.set('state', state);
|
|
85
85
|
if (scope) url.searchParams.set('scope', scope);
|
|
86
|
+
if (options.resource) {
|
|
87
|
+
const resource = new URL(options.resource);
|
|
88
|
+
if (resource.protocol !== 'https:') throw new Error('oauth_resource_must_be_https');
|
|
89
|
+
url.searchParams.set('resource', resource.toString());
|
|
90
|
+
}
|
|
86
91
|
return url.toString();
|
|
87
92
|
}
|
|
88
93
|
|
|
@@ -132,7 +137,28 @@ export async function exchangeAuthorizationCode(options = {}) {
|
|
|
132
137
|
redirect_uri: redirectUri,
|
|
133
138
|
code,
|
|
134
139
|
code_verifier: codeVerifier,
|
|
140
|
+
...(options.resource ? { resource: options.resource } : {}),
|
|
141
|
+
}, options);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/** Refresh an explicitly resource-scoped IAM OAuth token without overwriting
|
|
145
|
+
* the independent CLI account session. Callers own persistence and approval. */
|
|
146
|
+
export async function refreshNativeOAuthToken(options = {}) {
|
|
147
|
+
const session = options.session;
|
|
148
|
+
if (!session?.refresh_token) throw new Error('mcp_oauth_refresh_unavailable');
|
|
149
|
+
const resolved = resolveIamClientId({ ...options, clientId: session.client_id || options.clientId });
|
|
150
|
+
if (resolved.error) throw new Error(resolved.error);
|
|
151
|
+
const refreshed = await oauthTokenRequest({
|
|
152
|
+
grant_type: 'refresh_token',
|
|
153
|
+
client_id: resolved.clientId,
|
|
154
|
+
refresh_token: session.refresh_token,
|
|
155
|
+
...(options.resource ? { resource: options.resource } : {}),
|
|
135
156
|
}, options);
|
|
157
|
+
return {
|
|
158
|
+
...refreshed,
|
|
159
|
+
refresh_token: clean(refreshed.refresh_token) || session.refresh_token,
|
|
160
|
+
client_id: resolved.clientId,
|
|
161
|
+
};
|
|
136
162
|
}
|
|
137
163
|
|
|
138
164
|
export async function refreshAccountSession(options = {}) {
|
|
@@ -366,17 +392,26 @@ export async function authenticateViaBrowser(options = {}) {
|
|
|
366
392
|
state,
|
|
367
393
|
codeChallenge: pkce.challenge,
|
|
368
394
|
scope: options.scope,
|
|
395
|
+
resource: options.resource,
|
|
369
396
|
});
|
|
370
397
|
|
|
371
|
-
//
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
398
|
+
// Resource-scoped MCP OAuth must enter IAM's authorize endpoint directly.
|
|
399
|
+
// IAM stores a short-lived login challenge and redirects to a compact
|
|
400
|
+
// /auth/login?flow=oauth&challenge=... URL. Do not put full PKCE data in
|
|
401
|
+
// /auth/login?next=... (WAF false positives and unnecessary URL exposure).
|
|
402
|
+
// Preserve the legacy entry URL for ordinary CLI account login.
|
|
403
|
+
let browserUrl = authorizationUrl;
|
|
404
|
+
if (!options.resource) {
|
|
405
|
+
const authorizePath = authorizationUrl.startsWith(issuer)
|
|
406
|
+
? authorizationUrl.slice(issuer.length)
|
|
407
|
+
: authorizationUrl.replace(/^https?:\/\/[^/]+/, '');
|
|
408
|
+
const loginGateUrl = new URL('/auth/login', `${issuer}/`);
|
|
409
|
+
loginGateUrl.searchParams.set('next', authorizePath.startsWith('/') ? authorizePath : `/${authorizePath}`);
|
|
410
|
+
browserUrl = loginGateUrl.toString();
|
|
411
|
+
}
|
|
377
412
|
|
|
378
413
|
const promptImpl = options.promptToOpenUrlImpl || promptToOpenUrl;
|
|
379
|
-
await promptImpl(
|
|
414
|
+
await promptImpl(browserUrl, {
|
|
380
415
|
heading: 'Authenticate your Inner Animal Media account at:',
|
|
381
416
|
prompt: 'Press ENTER to open Inner Animal Media sign-in in your browser.',
|
|
382
417
|
input: options.input,
|
|
@@ -392,10 +427,14 @@ export async function authenticateViaBrowser(options = {}) {
|
|
|
392
427
|
redirectUri: listener.redirectUri,
|
|
393
428
|
code: callback.code,
|
|
394
429
|
codeVerifier: pkce.verifier,
|
|
430
|
+
resource: options.resource,
|
|
395
431
|
fetchImpl: options.fetchImpl,
|
|
396
432
|
signal: options.signal,
|
|
397
433
|
});
|
|
398
434
|
|
|
435
|
+
// MCP resource login is a separate OAuth grant, never replace the CLI's
|
|
436
|
+
// own account token with an MCP audience token.
|
|
437
|
+
if (options.saveSession === false) return { ...tokenSet, client_id: clientId };
|
|
399
438
|
return saveAccountSession({
|
|
400
439
|
...tokenSet,
|
|
401
440
|
client_id: clientId,
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type {CadProjectV2} from './project-v2.js';
|
|
2
|
+
export declare const CAD_DELIVERY_PROFILES: Readonly<Record<string,readonly (readonly [string,string,string])[]>>;
|
|
3
|
+
export declare function attachCadDeliveryProfiles(project:CadProjectV2,requestedProfiles:string[]):CadProjectV2;
|
|
4
|
+
export declare function inspectCadDeliveryReadiness(project:CadProjectV2,packageId:string):{
|
|
5
|
+
packageId:string;readyForArtifactDelivery:boolean;missingOutputIds:string[];
|
|
6
|
+
permitReady:false;sealed:false;professionalReviewRequired:boolean;
|
|
7
|
+
};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { requireCadProjectV2 } from './project-v2.js';
|
|
2
|
+
|
|
3
|
+
// Each profile declares outcomes, not promises that an executor has performed them.
|
|
4
|
+
// Packages remain blocked until real artifacts, validations, and professional review exist.
|
|
5
|
+
export const CAD_DELIVERY_PROFILES = Object.freeze({
|
|
6
|
+
'architecture.concept': Object.freeze([
|
|
7
|
+
['concept-plan', 'png', 'cad.drawing.generate'],
|
|
8
|
+
['aerial-image', 'webp', 'cad.presentation.render'],
|
|
9
|
+
['arrival-image', 'png', 'cad.presentation.render'],
|
|
10
|
+
['exterior-images', 'jpeg', 'cad.presentation.render'],
|
|
11
|
+
]),
|
|
12
|
+
'architecture.schematic': Object.freeze([
|
|
13
|
+
['site-plan', 'pdf', 'cad.drawing.generate'],
|
|
14
|
+
['floor-plans', 'pdf', 'cad.drawing.generate'],
|
|
15
|
+
['exterior-elevations', 'pdf', 'cad.drawing.generate'],
|
|
16
|
+
['roof-plan', 'pdf', 'cad.drawing.generate'],
|
|
17
|
+
['building-sections', 'pdf', 'cad.drawing.generate'],
|
|
18
|
+
['schedules', 'csv', 'cad.schedule.generate'],
|
|
19
|
+
['cad-sheets', 'dxf', 'cad.drawing.generate'],
|
|
20
|
+
['semantic-bim', 'ifc', 'cad.bim.ifc.export'],
|
|
21
|
+
['area-takeoff', 'csv', 'cad.quantity.takeoff'],
|
|
22
|
+
]),
|
|
23
|
+
'architecture.cd-preparation': Object.freeze([
|
|
24
|
+
['G-cover-code-area', 'pdf', 'cad.drawing.generate'],
|
|
25
|
+
['C-site-civil-grading', 'pdf', 'cad.drawing.generate'],
|
|
26
|
+
['A-construction-plan', 'pdf', 'cad.drawing.generate'],
|
|
27
|
+
['A-elevations', 'pdf', 'cad.drawing.generate'],
|
|
28
|
+
['A-sections-details', 'pdf', 'cad.drawing.generate'],
|
|
29
|
+
['A-interior-rcp', 'pdf', 'cad.drawing.generate'],
|
|
30
|
+
['A-schedules', 'csv', 'cad.schedule.generate'],
|
|
31
|
+
['S-foundation-framing-roof', 'pdf', 'cad.drawing.generate'],
|
|
32
|
+
['S-structural-design-inputs', 'json', 'cad.document.prepare'],
|
|
33
|
+
['M-HVAC', 'pdf', 'cad.drawing.generate'],
|
|
34
|
+
['P-plumbing', 'pdf', 'cad.drawing.generate'],
|
|
35
|
+
['E-electrical', 'pdf', 'cad.drawing.generate'],
|
|
36
|
+
['energy-code-inputs', 'json', 'cad.document.prepare'],
|
|
37
|
+
['geo-survey-requirements', 'json', 'cad.document.prepare'],
|
|
38
|
+
['professional-review-issues', 'json', 'cad.document.prepare'],
|
|
39
|
+
]),
|
|
40
|
+
'architecture.interactive': Object.freeze([
|
|
41
|
+
['renderable-scene', 'glb', 'cad.scene.optimize'],
|
|
42
|
+
['walkthrough', 'json', 'cad.walkthrough.package'],
|
|
43
|
+
]),
|
|
44
|
+
'architecture.cinematic': Object.freeze([
|
|
45
|
+
['scene-source', 'blend', 'cad.scene.build'],
|
|
46
|
+
['cinematic-hero', 'png', 'cad.presentation.render'],
|
|
47
|
+
['cinematic-video', 'mp4', 'cad.video.render'],
|
|
48
|
+
['movie-edit-source', 'json', 'cad.video.project.export'],
|
|
49
|
+
]),
|
|
50
|
+
'architecture.professional-handoff': Object.freeze([
|
|
51
|
+
['project-source', 'json', 'cad.document.prepare'],
|
|
52
|
+
['editable-drawing-sources', 'dxf', 'cad.drawing.generate'],
|
|
53
|
+
['IFC-model', 'ifc', 'cad.bim.ifc.export'],
|
|
54
|
+
['construction-review-packet', 'pdf', 'cad.document.prepare'],
|
|
55
|
+
['source-revisions', 'json', 'cad.document.prepare'],
|
|
56
|
+
['project-package', 'zip', 'cad.deliverables.package'],
|
|
57
|
+
]),
|
|
58
|
+
'mechanical.fabrication': Object.freeze([
|
|
59
|
+
['precise-solid', 'step', 'cad.solid.export'],
|
|
60
|
+
['assembly-drawing', 'dxf', 'cad.drawing.generate'],
|
|
61
|
+
['part-list', 'csv', 'cad.schedule.generate'],
|
|
62
|
+
['inspection-report', 'json', 'cad.geometry.validate'],
|
|
63
|
+
]),
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
const packageProfileCompatibility = Object.freeze({
|
|
67
|
+
'architecture.': 'architecture.building',
|
|
68
|
+
'mechanical.': 'mechanical.',
|
|
69
|
+
});
|
|
70
|
+
const slug = value => value.replace(/[^A-Za-z0-9_.:-]/g, '-');
|
|
71
|
+
|
|
72
|
+
export function attachCadDeliveryProfiles(project, requestedProfiles) {
|
|
73
|
+
requireCadProjectV2(project);
|
|
74
|
+
if (!Array.isArray(requestedProfiles) || requestedProfiles.length === 0
|
|
75
|
+
|| new Set(requestedProfiles).size !== requestedProfiles.length) throw new Error('invalid_delivery_profiles');
|
|
76
|
+
const next = structuredClone(project);
|
|
77
|
+
const existing = new Set(next.outputs.map(x => x.id));
|
|
78
|
+
for (const profile of requestedProfiles) {
|
|
79
|
+
const outputs = CAD_DELIVERY_PROFILES[profile];
|
|
80
|
+
if (!outputs) throw new Error('unknown_delivery_profile:' + profile);
|
|
81
|
+
const needs = Object.entries(packageProfileCompatibility).find(([prefix]) => profile.startsWith(prefix));
|
|
82
|
+
if (needs && !(needs[1].endsWith('.') ? next.domain.startsWith(needs[1]) : next.domain === needs[1]))
|
|
83
|
+
throw new Error('delivery_profile_domain_mismatch:' + profile);
|
|
84
|
+
const packageId = 'package:' + slug(profile);
|
|
85
|
+
if (next.packages.some(x => x.id === packageId)) throw new Error('delivery_profile_already_attached:' + profile);
|
|
86
|
+
const outputIds = [];
|
|
87
|
+
for (const [kind, format, capability] of outputs) {
|
|
88
|
+
const id = slug(profile) + ':' + slug(kind);
|
|
89
|
+
if (existing.has(id)) throw new Error('duplicate_delivery_output:' + id);
|
|
90
|
+
next.outputs.push({
|
|
91
|
+
id, kind, format, capability, state: 'planned', sourceRevision: next.revision,
|
|
92
|
+
dependencies: [], elementIds: ['*'],
|
|
93
|
+
// A CD-preparation draft is never a legal certification.
|
|
94
|
+
...(profile === 'architecture.cd-preparation' ? { professionalReviewRequired: true } : {}),
|
|
95
|
+
});
|
|
96
|
+
existing.add(id); outputIds.push(id);
|
|
97
|
+
}
|
|
98
|
+
next.packages.push({
|
|
99
|
+
id: packageId, profile, outputIds, state: 'planned',
|
|
100
|
+
permitReady: false, sealed: false, release: 'requires_verified_artifacts',
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
requireCadProjectV2(next);
|
|
104
|
+
return next;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export function inspectCadDeliveryReadiness(project, packageId) {
|
|
108
|
+
requireCadProjectV2(project);
|
|
109
|
+
const pkg = project.packages.find(x => x.id === packageId);
|
|
110
|
+
if (!pkg) throw new Error('unknown_delivery_package');
|
|
111
|
+
const missing = pkg.outputIds.filter(id => {
|
|
112
|
+
const output = project.outputs.find(x => x.id === id);
|
|
113
|
+
return !output || !['generated', 'validated', 'approved'].includes(output.state)
|
|
114
|
+
|| output.sourceRevision !== project.revision;
|
|
115
|
+
});
|
|
116
|
+
return {
|
|
117
|
+
packageId, readyForArtifactDelivery: missing.length === 0,
|
|
118
|
+
missingOutputIds: missing, permitReady: false, sealed: false,
|
|
119
|
+
professionalReviewRequired: pkg.profile.includes('cd-preparation')
|
|
120
|
+
|| pkg.profile.includes('professional-handoff'),
|
|
121
|
+
};
|
|
122
|
+
}
|
|
@@ -39,7 +39,7 @@ export function resolveDockerServiceConfig(options = {}) {
|
|
|
39
39
|
|
|
40
40
|
if (!token) {
|
|
41
41
|
const cwd = options.cwd || process.cwd();
|
|
42
|
-
const candidates = [
|
|
42
|
+
const candidates = options.tokenSearchPaths ?? [
|
|
43
43
|
path.join(cwd, '.agentsam/docker/cad/agentsam-cad/service.token'),
|
|
44
44
|
path.join(os.homedir(), '.agentsam/docker/cad/agentsam-cad/service.token'),
|
|
45
45
|
path.join(cwd, '.agentsam/docker/cad/service.token'),
|