@inneranimalmedia/agentsam-sdk 2.6.11 → 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-authoring.test.ts +161 -0
- package/apps/client-cms-editor/frontend/src/adapters/http.ts +320 -77
- package/apps/client-cms-editor/frontend/src/editor/CmsEditor.tsx +54 -20
- package/apps/client-cms-editor/frontend/src/editor/canvas/PreviewCanvas.tsx +31 -3
- package/apps/client-cms-editor/frontend/src/editor/composition-groups.test.ts +40 -0
- package/apps/client-cms-editor/frontend/src/editor/host-preview.test.tsx +104 -0
- package/apps/client-cms-editor/frontend/src/editor/legacy/CmsEditorPrototype.tsx +28 -28
- package/apps/client-cms-editor/frontend/src/editor/useCmsEditorController.ts +3 -3
- package/apps/client-cms-editor/frontend/src/styles/agentsam-drawer.css +5 -4
- package/apps/client-cms-editor/frontend/src/styles/studio.css +150 -149
- package/apps/client-cms-editor/package-lock.json +8 -8
- package/apps/client-cms-editor/package.json +2 -1
- package/apps/client-cms-editor/reference/harvest/plans/INNERANIMALS-CONTENT-001.md +1 -1
- package/apps/client-cms-editor/shared/cms/package.json +1 -1
- package/apps/client-cms-editor/shared/cms/src/editor-types.ts +42 -1
- package/docs/AUTORAG.md +2 -0
- package/docs/CAPABILITIES.md +28 -0
- package/docs/CMS_CONTEXTUAL_COMPOSER.md +4 -4
- package/docs/PRODUCT_LIFECYCLE.md +38 -38
- package/docs/REPO_FILE_MAP.txt +2 -2
- package/docs/THEME_REFINERY.md +6 -6
- package/docs/WINDOWS_RUNTIME_INSTALL.md +1 -1
- package/docs/adr/ADR-0002-brand-campaign-plugin-boundaries.md +603 -0
- package/docs/adr/ADR-0003-copro-clean-room-product-architecture.md +40 -0
- package/docs/adr/ADR-0003-product-portfolio-and-package-taxonomy.md +146 -0
- package/docs/adr/ADR-0004-product-composition-and-provider-neutrality.md +56 -0
- package/docs/adr/ADR-0005-offer-graduation-standard.md +66 -0
- package/docs/adr/README.md +25 -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 +7 -1
- 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/DUAL_ANALYTICS_PRODUCT.md +1 -1
- 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/content-studio/HOST_MOUNT_CHECKLIST.md +1 -1
- package/docs/content-studio/REVISION_GATE_2026-09-27.md +3 -3
- package/docs/contracts/capability-install-planner.md +66 -38
- package/docs/contracts/environment-vocabulary.md +5 -5
- package/docs/contracts/google-cloud-oauth-setup.md +1 -1
- 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/local-studio/WORKMODE_DONOR_NOTES.md +3 -3
- package/docs/plans/ASTRA-BRIEF-2026-09-18.md +1 -1
- package/docs/plans/LOCAL-STUDIO-REAL-APP-CONTRACT-ADDENDUM-2026-09-27.md +2 -2
- package/docs/plans/MACHINE-FIRST-APPS-TUI-2026-09-24.md +1 -1
- package/docs/plans/MEDIA_TRUTH_SOURCE_RECOVERY_20261008.md +31 -0
- package/docs/plans/NEXT-AGENT-HANDOFF.md +2 -2
- 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/TOMORROW-EXTENSIVE-TODO-2026-09-26.md +68 -68
- package/docs/plans/TOMORROW-MACHINE-FIRST-BRIEFING.md +1 -1
- package/docs/plans/UI_POLISH_DESKTOP_2026-10-16.md +102 -0
- package/docs/plans/UNIVERSAL-INGEST-MACHINE-FIRST-2026-09-24.md +1 -1
- 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/prd/PRD-agentsam-analytics.md +174 -0
- package/docs/prd/PRD-agentsam-brand.md +181 -0
- package/docs/prd/PRD-agentsam-browser.md +177 -0
- package/docs/prd/PRD-agentsam-cad-studio.md +177 -0
- package/docs/prd/PRD-agentsam-campaign.md +1178 -0
- package/docs/prd/PRD-agentsam-commerce-studio.md +180 -0
- package/docs/prd/PRD-agentsam-content-studio.md +179 -0
- package/docs/prd/PRD-agentsam-copro.md +39 -0
- package/docs/prd/PRD-agentsam-database-studio.md +175 -0
- package/docs/prd/PRD-agentsam-developer-studio.md +175 -0
- package/docs/prd/PRD-agentsam-hosted-runtime.md +180 -0
- package/docs/prd/PRD-agentsam-knowledge.md +174 -0
- package/docs/prd/PRD-agentsam-local-studio.md +180 -0
- package/docs/prd/PRD-agentsam-merch.md +177 -0
- package/docs/prd/PRD-agentsam-platform.md +179 -0
- package/docs/prd/PRD-agentsam-site-studio.md +180 -0
- package/docs/prd/PRD-agentsam-work.md +180 -0
- package/docs/prd/README.md +39 -0
- package/docs/product/AGENTSAM-UI-QUALITY-GATE.md +148 -0
- package/docs/product/AGENTSAM_PRODUCT_EXPERIENCE_STANDARD.md +2 -0
- package/docs/product/COPRO-DONOR-AUDIT.md +9 -0
- package/docs/product/COPRO-EXECUTION-PLAN.md +81 -0
- package/docs/product/COPRO-UI-QUALITY-GATE.md +119 -0
- package/docs/product/MEDIA-PRODUCTION-FAMILY.md +47 -0
- package/docs/product/OFFER-PORTFOLIO.md +172 -0
- package/docs/product/PACKAGE-TAXONOMY.md +95 -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/examples/hyperspace-demo/dist/assets/index-SZ2LfOpJ.js +242 -0
- package/examples/hyperspace-demo/dist/index.html +13 -0
- package/native/agentsam-machine/core/src/lib.rs +2 -2
- package/package.json +111 -39
- package/packages/agentsam-brand/package.json +3 -2
- package/packages/agentsam-brand/src/public.js +192 -0
- 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/README.md +1 -1
- 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-merch/test/merch.test.mjs +1 -1
- package/packages/agentsam-nav/dist/browser.global.js +31 -71
- package/packages/agentsam-nav/dist/browser.js +760 -3157
- package/packages/agentsam-nav/dist/index.js +752 -3149
- 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/goap.js.bak-20260922011251 +670 -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 +15 -5
- package/packages/agentsam-workbench/src/agent/MiniAgentSam.tsx +28 -4
- package/packages/agentsam-workbench/src/agent/capability-catalog.ts +96 -0
- package/packages/agentsam-workbench/src/agent/contextual-composer.css +72 -70
- package/packages/agentsam-workbench/src/agent/index.ts +2 -0
- package/packages/agentsam-workbench/src/agent/mini-agentsam.css +228 -10
- 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/frontend/auth-portal/pages/login.html +1 -1
- package/packages/identity/src/frontend/auth-portal/pages/reset.html +1 -1
- package/packages/identity/src/frontend/auth-portal/pages/signup.html +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/chatgpt-provider.test.mjs +3 -3
- package/packages/identity/tests/lane1-packed-consumer.test.mjs +12 -1
- package/packages/identity/tests/oauth-consent-view.test.mjs +11 -11
- package/packages/identity/tests/password-enrollment.test.mjs +82 -0
- package/packages/identity/tests/password-reset.test.mjs +43 -0
- package/packages/providers/completeful/README.md +3 -3
- package/packages/providers/completeful/package.json +1 -1
- package/packages/theme-cypress/README.md +11 -0
- package/packages/theme-cypress/agentsam.package.json +42 -0
- package/packages/{theme-church-site → theme-cypress}/package.json +14 -11
- package/packages/theme-cypress/prebuild.json +23 -0
- package/packages/theme-cypress/site/assets/generated/favicon.svg +7 -0
- package/packages/theme-cypress/site/assets/generated/media-044ba16613.webp +0 -0
- package/packages/theme-cypress/site/assets/generated/media-0a1ea6f6d9.webp +0 -0
- package/packages/theme-cypress/site/assets/generated/media-0c06778307.webp +0 -0
- package/packages/theme-cypress/site/assets/generated/media-1539ed373a.webp +0 -0
- package/packages/theme-cypress/site/assets/generated/media-2df479fd2d.webp +0 -0
- package/packages/theme-cypress/site/assets/generated/media-2e8bd0d9bc.webp +0 -0
- package/packages/theme-cypress/site/assets/generated/media-41d4e2643c.webp +0 -0
- package/packages/theme-cypress/site/assets/generated/media-46205bfde8.webp +0 -0
- package/packages/theme-cypress/site/assets/generated/media-50c5f3e279.webp +0 -0
- package/packages/theme-cypress/site/assets/generated/media-5f1467778c.webp +0 -0
- package/packages/theme-cypress/site/assets/generated/media-6703642b22.webp +0 -0
- package/packages/theme-cypress/site/assets/generated/media-87a490bc8e.webp +0 -0
- package/packages/theme-cypress/site/assets/generated/media-997c10ef39.webp +0 -0
- package/packages/theme-cypress/site/assets/generated/media-a423735c21.webp +0 -0
- package/packages/theme-cypress/site/assets/generated/media-c9cea5245b.webp +0 -0
- package/packages/theme-cypress/site/assets/generated/media-cab3c84c60.webp +0 -0
- package/packages/theme-cypress/site/assets/generated/media-ce06595d59.webp +0 -0
- package/packages/theme-cypress/site/assets/generated/media-d268905e7e.webp +0 -0
- package/packages/theme-cypress/site/assets/generated/media-f6711b5053.webp +0 -0
- package/packages/theme-cypress/site/assets/generated/media-manifest.json +226 -0
- package/packages/theme-cypress/site/assets/generated/social-card.webp +0 -0
- package/packages/theme-cypress/site/assets/generated/theme-mark-192.png +0 -0
- package/packages/theme-cypress/site/assets/generated/theme-mark-512.png +0 -0
- package/packages/theme-cypress/site/assets/generated/theme-mark.svg +7 -0
- package/packages/theme-cypress/site/beliefs.html +175 -0
- package/packages/theme-cypress/site/community.html +175 -0
- package/packages/theme-cypress/site/connect.html +319 -0
- package/packages/theme-cypress/site/donate.html +106 -0
- package/packages/theme-cypress/site/groups.html +1352 -0
- package/packages/theme-cypress/site/help.html +1 -0
- package/packages/theme-cypress/site/icons/clock.svg +4 -0
- package/packages/theme-cypress/site/icons/email.svg +4 -0
- package/packages/theme-cypress/site/icons/giving.svg +4 -0
- package/packages/theme-cypress/site/icons/home.svg +4 -0
- package/packages/theme-cypress/site/icons/location.svg +4 -0
- package/packages/theme-cypress/site/icons/media.svg +4 -0
- package/packages/theme-cypress/site/icons/ministries.svg +6 -0
- package/packages/theme-cypress/site/icons/prayer.svg +5 -0
- package/packages/theme-cypress/site/icons/visit.svg +6 -0
- package/packages/theme-cypress/site/index.html +1013 -0
- package/packages/theme-cypress/site/mensgroup.html +477 -0
- package/packages/theme-cypress/site/mission.html +512 -0
- package/packages/theme-cypress/site/unified-footer.css +172 -0
- package/packages/theme-cypress/site/unified-footer.js +175 -0
- package/packages/theme-cypress/site/unified-header.css +226 -0
- package/packages/theme-cypress/site/unified-header.js +111 -0
- package/packages/theme-cypress/site/womansgroup.html +452 -0
- package/packages/{theme-church-site → theme-cypress}/src/index.js +22 -35
- package/packages/theme-cypress/src/node.js +69 -0
- package/packages/theme-cypress/test/theme.test.mjs +47 -0
- package/packages/theme-ember/README.md +11 -0
- package/packages/theme-ember/agentsam.package.json +42 -0
- package/packages/{theme-fuelnfree-site → theme-ember}/package.json +14 -11
- package/packages/theme-ember/prebuild.json +23 -0
- package/packages/theme-ember/site/about.html +1840 -0
- package/packages/theme-ember/site/assets/generated/favicon.svg +7 -0
- package/packages/theme-ember/site/assets/generated/media-1e0b1e6ee6.webp +0 -0
- package/packages/theme-ember/site/assets/generated/media-2371dcb426.webp +0 -0
- package/packages/theme-ember/site/assets/generated/media-2db4f5ff9e.webp +0 -0
- package/packages/theme-ember/site/assets/generated/media-4ed07a756e.webp +0 -0
- package/packages/theme-ember/site/assets/generated/media-58182cf167.webp +0 -0
- package/packages/theme-ember/site/assets/generated/media-5b8b8472ae.webp +0 -0
- package/packages/theme-ember/site/assets/generated/media-71f4bd16a1.webp +0 -0
- package/packages/theme-ember/site/assets/generated/media-7c1c8120bc.webp +0 -0
- package/packages/theme-ember/site/assets/generated/media-832b176433.webp +0 -0
- package/packages/theme-ember/site/assets/generated/media-931439701c.webp +0 -0
- package/packages/theme-ember/site/assets/generated/media-c2860d40d1.webp +0 -0
- package/packages/theme-ember/site/assets/generated/media-c56974d198.webp +0 -0
- package/packages/theme-ember/site/assets/generated/media-cb83a44ff4.webp +0 -0
- package/packages/theme-ember/site/assets/generated/media-df02ccdfcf.webp +0 -0
- package/packages/theme-ember/site/assets/generated/media-fab72cd344.webp +0 -0
- package/packages/theme-ember/site/assets/generated/media-manifest.json +190 -0
- package/packages/theme-ember/site/assets/generated/social-card.webp +0 -0
- package/packages/theme-ember/site/assets/generated/theme-mark-192.png +0 -0
- package/packages/theme-ember/site/assets/generated/theme-mark-512.png +0 -0
- package/packages/theme-ember/site/assets/generated/theme-mark.svg +7 -0
- package/packages/theme-ember/site/community.html +1664 -0
- package/packages/theme-ember/site/index.html +2044 -0
- package/packages/theme-ember/site/shop.html +2104 -0
- package/packages/{theme-fuelnfree-site → theme-ember}/src/index.js +23 -33
- package/packages/theme-ember/src/node.js +69 -0
- package/packages/theme-ember/test/theme.test.mjs +47 -0
- package/packages/theme-forge/README.md +11 -0
- package/packages/theme-forge/agentsam.package.json +42 -0
- package/packages/theme-forge/package.json +44 -0
- package/packages/theme-forge/prebuild.json +23 -0
- package/packages/theme-forge/site/apple-touch-icon.png +0 -0
- package/packages/theme-forge/site/assets/generated/favicon.svg +7 -0
- package/packages/theme-forge/site/assets/generated/media-manifest.json +17 -0
- package/packages/theme-forge/site/assets/generated/social-card.webp +0 -0
- package/packages/theme-forge/site/assets/generated/theme-mark-192.png +0 -0
- package/packages/theme-forge/site/assets/generated/theme-mark-512.png +0 -0
- package/packages/theme-forge/site/assets/generated/theme-mark.svg +7 -0
- package/packages/theme-forge/site/assets/index-DBOqQVsA.css +1 -0
- package/packages/theme-forge/site/assets/index-pXC0o9jp.js +241 -0
- package/packages/theme-forge/site/assets/workbox-window.prod.es5-Bd17z0YL.js +2 -0
- package/packages/theme-forge/site/index.html +5 -0
- package/packages/theme-forge/site/manifest.webmanifest +1 -0
- package/packages/theme-forge/site/pwa-192x192.png +0 -0
- package/packages/theme-forge/site/pwa-512x512.png +0 -0
- package/packages/theme-forge/site/sw.js +107 -0
- package/packages/theme-forge/site/workbox-7e5eb42b.js +3395 -0
- package/packages/theme-forge/src/index.js +76 -0
- package/packages/theme-forge/src/node.js +69 -0
- package/packages/theme-forge/test/theme.test.mjs +47 -0
- package/packages/theme-grove/README.md +11 -0
- package/packages/theme-grove/agentsam.package.json +42 -0
- package/packages/{theme-floors-site → theme-grove}/package.json +14 -11
- package/packages/theme-grove/prebuild.json +23 -0
- package/packages/theme-grove/site/assets/generated/favicon.svg +7 -0
- package/packages/theme-grove/site/assets/generated/media-098b13d75a.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-0c064db1aa.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-0fbfef655e.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-14759c7460.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-19b23d2a8f.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-2012f04243.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-23b8c5e2bb.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-2bffb1a6ef.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-2e1523a5b0.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-31107c21f2.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-31373ec865.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-45e8e27542.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-4aa9846fe7.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-5476b24219.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-7a227d3e4b.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-b183eed550.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-b2c650f9ab.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-b5d7471694.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-c86498fdb4.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-ce2cfff9a1.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-cf41a5f324.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-ec6c01bf8d.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-manifest.json +267 -0
- package/packages/theme-grove/site/assets/generated/social-card.webp +0 -0
- package/packages/theme-grove/site/assets/generated/theme-mark-192.png +0 -0
- package/packages/theme-grove/site/assets/generated/theme-mark-512.png +0 -0
- package/packages/theme-grove/site/assets/generated/theme-mark.svg +7 -0
- package/packages/theme-grove/site/index.html +1429 -0
- package/packages/theme-grove/site/pages/contact.html +664 -0
- package/packages/theme-grove/site/pages/gallery.html +216 -0
- package/packages/theme-grove/site/pages/privacy.html +180 -0
- package/packages/theme-grove/site/pages/process.html +592 -0
- package/packages/theme-grove/site/pages/services.html +567 -0
- package/packages/theme-grove/site/pages/terms.html +189 -0
- package/packages/theme-grove/site/shared/footer.css +140 -0
- package/packages/theme-grove/site/shared/footer.html +41 -0
- package/packages/{theme-floors-site → theme-grove}/src/index.js +24 -35
- package/packages/theme-grove/src/node.js +69 -0
- package/packages/theme-grove/test/theme.test.mjs +47 -0
- package/packages/theme-harbor/README.md +11 -0
- package/packages/theme-harbor/agentsam.package.json +42 -0
- package/packages/{theme-insurance-site → theme-harbor}/package.json +14 -11
- package/packages/theme-harbor/prebuild.json +23 -0
- package/packages/theme-harbor/site/assets/generated/favicon.svg +7 -0
- package/packages/theme-harbor/site/assets/generated/media-manifest.json +17 -0
- package/packages/theme-harbor/site/assets/generated/social-card.webp +0 -0
- package/packages/theme-harbor/site/assets/generated/theme-mark-192.png +0 -0
- package/packages/theme-harbor/site/assets/generated/theme-mark-512.png +0 -0
- package/packages/theme-harbor/site/assets/generated/theme-mark.svg +7 -0
- package/packages/theme-harbor/site/assets/index-D58RKkr-.js +239 -0
- package/packages/theme-harbor/site/assets/index-Dd3YN9Mf.css +1 -0
- package/packages/theme-harbor/site/index.html +15 -0
- package/packages/theme-harbor/src/index.js +76 -0
- package/packages/theme-harbor/src/node.js +69 -0
- package/packages/theme-harbor/test/theme.test.mjs +47 -0
- package/packages/theme-resolve/README.md +11 -0
- package/packages/theme-resolve/agentsam.package.json +42 -0
- package/packages/theme-resolve/package.json +44 -0
- package/packages/theme-resolve/prebuild.json +23 -0
- package/packages/theme-resolve/site/assets/generated/favicon.svg +7 -0
- package/packages/theme-resolve/site/assets/generated/media-216610d365.webp +0 -0
- package/packages/theme-resolve/site/assets/generated/media-2a9e0f623f.webp +0 -0
- package/packages/theme-resolve/site/assets/generated/media-a70660bfa9.webp +0 -0
- package/packages/theme-resolve/site/assets/generated/media-bc1322e813.webp +0 -0
- package/packages/theme-resolve/site/assets/generated/media-ced60fcecc.webp +0 -0
- package/packages/theme-resolve/site/assets/generated/media-manifest.json +72 -0
- package/packages/theme-resolve/site/assets/generated/social-card.webp +0 -0
- package/packages/theme-resolve/site/assets/generated/theme-mark-192.png +0 -0
- package/packages/theme-resolve/site/assets/generated/theme-mark-512.png +0 -0
- package/packages/theme-resolve/site/assets/generated/theme-mark.svg +7 -0
- package/packages/theme-resolve/site/assets/index-BSaLpPG1.css +2 -0
- package/packages/theme-resolve/site/assets/index-D8au46Z5.js +17 -0
- package/packages/theme-resolve/site/index.html +22 -0
- package/packages/theme-resolve/src/index.js +69 -0
- package/packages/theme-resolve/src/node.js +69 -0
- package/packages/theme-resolve/test/theme.test.mjs +47 -0
- package/packages/theme-scenes/agentsam.package.json +42 -0
- package/packages/theme-scenes/package.json +1 -1
- package/packages/theme-scenes/src/registry.js +32 -49
- package/packages/theme-summit/README.md +11 -0
- package/packages/theme-summit/agentsam.package.json +42 -0
- package/packages/{theme-shinshu-site → theme-summit}/package.json +14 -11
- package/packages/theme-summit/prebuild.json +23 -0
- package/packages/theme-summit/site/adventures.html +450 -0
- package/packages/theme-summit/site/assets/generated/favicon.svg +7 -0
- package/packages/theme-summit/site/assets/generated/media-1e958ea679.webp +0 -0
- package/packages/theme-summit/site/assets/generated/media-9d4521abba.webp +0 -0
- package/packages/theme-summit/site/assets/generated/media-manifest.json +39 -0
- package/packages/theme-summit/site/assets/generated/social-card.webp +0 -0
- package/packages/theme-summit/site/assets/generated/theme-mark-192.png +0 -0
- package/packages/theme-summit/site/assets/generated/theme-mark-512.png +0 -0
- package/packages/theme-summit/site/assets/generated/theme-mark.svg +7 -0
- package/packages/theme-summit/site/business-card.html +315 -0
- package/packages/theme-summit/site/chatbot.js +312 -0
- package/packages/theme-summit/site/gallery.html +524 -0
- package/packages/theme-summit/site/i18n.js +947 -0
- package/packages/theme-summit/site/icons.svg +87 -0
- package/packages/theme-summit/site/index.html +2415 -0
- package/packages/theme-summit/site/pages/about.html +100 -0
- package/packages/theme-summit/site/pages/contact.html +117 -0
- package/packages/theme-summit/site/pages/dashboard.html +111 -0
- package/packages/theme-summit/site/pages/index.html +129 -0
- package/packages/theme-summit/site/pages/services.html +125 -0
- package/packages/theme-summit/site/shared/footer.html +41 -0
- package/packages/theme-summit/site/shared/layout.js +315 -0
- package/packages/theme-summit/site/shared/nav.html +19 -0
- package/packages/theme-summit/site/shared/styles.css +696 -0
- package/packages/theme-summit/site/theme-styles.css +131 -0
- package/packages/theme-summit/site/themes.js +442 -0
- package/packages/{theme-shinshu-site → theme-summit}/src/index.js +23 -35
- package/packages/theme-summit/src/node.js +69 -0
- package/packages/theme-summit/test/theme.test.mjs +47 -0
- package/packages/theme-violet/README.md +11 -0
- package/packages/theme-violet/agentsam.package.json +42 -0
- package/packages/{theme-companions-site → theme-violet}/package.json +14 -11
- package/packages/theme-violet/prebuild.json +23 -0
- package/packages/theme-violet/site/assets/generated/favicon.svg +7 -0
- package/packages/theme-violet/site/assets/generated/media-07b46d6457.webp +0 -0
- package/packages/theme-violet/site/assets/generated/media-09d38ddffc.webp +0 -0
- package/packages/theme-violet/site/assets/generated/media-254b0e2ad3.webp +0 -0
- package/packages/theme-violet/site/assets/generated/media-3a1b5c0a8d.webp +0 -0
- package/packages/theme-violet/site/assets/generated/media-3a78eb7d9d.webp +0 -0
- package/packages/theme-violet/site/assets/generated/media-49076977d8.webp +0 -0
- package/packages/theme-violet/site/assets/generated/media-6342d50dbd.webp +0 -0
- package/packages/theme-violet/site/assets/generated/media-646c65381e.webp +0 -0
- package/packages/theme-violet/site/assets/generated/media-7a5fb7c91a.webp +0 -0
- package/packages/theme-violet/site/assets/generated/media-9bbd133220.webp +0 -0
- package/packages/theme-violet/site/assets/generated/media-9e73307c2a.webp +0 -0
- package/packages/theme-violet/site/assets/generated/media-af382146a0.webp +0 -0
- package/packages/theme-violet/site/assets/generated/media-b2ae348b43.webp +0 -0
- package/packages/theme-violet/site/assets/generated/media-b8f43a3887.webp +0 -0
- package/packages/theme-violet/site/assets/generated/media-c96a3e1979.webp +0 -0
- package/packages/theme-violet/site/assets/generated/media-cd07daa54a.webp +0 -0
- package/packages/theme-violet/site/assets/generated/media-e03ab6b5fe.webp +0 -0
- package/packages/theme-violet/site/assets/generated/media-eae4917d25.webp +0 -0
- package/packages/theme-violet/site/assets/generated/media-f227ec5690.webp +0 -0
- package/packages/theme-violet/site/assets/generated/media-fb57ffd474.webp +0 -0
- package/packages/theme-violet/site/assets/generated/media-manifest.json +245 -0
- package/packages/theme-violet/site/assets/generated/social-card.webp +0 -0
- package/packages/theme-violet/site/assets/generated/theme-mark-192.png +0 -0
- package/packages/theme-violet/site/assets/generated/theme-mark-512.png +0 -0
- package/packages/theme-violet/site/assets/generated/theme-mark.svg +7 -0
- package/packages/theme-violet/site/global/cpas-contact.css +405 -0
- package/packages/theme-violet/site/global/cpas-donate-v2.css +931 -0
- package/packages/theme-violet/site/global/cpas-drawer-override.css +1 -0
- package/packages/theme-violet/site/global/cpas-footer.html +38 -0
- package/packages/theme-violet/site/global/cpas-header.html +30 -0
- package/packages/theme-violet/site/global/cpas-hero-watercolor.css +275 -0
- package/packages/theme-violet/site/global/cpas-modals.js +802 -0
- package/packages/theme-violet/site/global/cpas-public-surface.css +982 -0
- package/packages/theme-violet/site/global/cpas-shell.css +3980 -0
- package/packages/theme-violet/site/global/cpas-shell.js +107 -0
- package/packages/theme-violet/site/global/cpas-shelter-hub.css +326 -0
- package/packages/theme-violet/site/index.html +141 -0
- package/packages/theme-violet/site/pages/about/campaigns.html +28 -0
- package/packages/theme-violet/site/pages/about/cta.html +25 -0
- package/packages/theme-violet/site/pages/about/hero.html +46 -0
- package/packages/theme-violet/site/pages/about/paths.html +24 -0
- package/packages/theme-violet/site/pages/about/why_we_exist.html +28 -0
- package/packages/theme-violet/site/pages/home/campaigns.html +67 -0
- package/packages/theme-violet/site/pages/home/hero.html +42 -0
- package/packages/theme-violet/site/pages/home/how-it-helps.html +32 -0
- package/packages/theme-violet/site/pages/home/impact-stats.html +31 -0
- package/packages/theme-violet/site/pages/home/mission.html +36 -0
- package/packages/theme-violet/site/pages/home/newsletter.html +29 -0
- package/packages/theme-violet/site/pages/home/transport-win.html +22 -0
- package/packages/theme-violet/site/pages/index.html +141 -0
- package/packages/theme-violet/src/index.js +76 -0
- package/packages/theme-violet/src/node.js +69 -0
- package/packages/theme-violet/test/theme.test.mjs +47 -0
- 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/features/README.md +1 -1
- package/protocol/features/catalog.json +12 -12
- package/protocol/features/examples/provider-resend.feature.json +2 -2
- 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/presets/catalog.json +1 -1
- package/protocol/theme-refinery/prebuild-registry.json +45 -0
- package/protocol/theme-refinery/product-metadata.schema.json +63 -26
- package/protocol/theme-refinery/receipts/prebuild-remaster-20261004.json +21 -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/completeful.js +2 -2
- 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/packages/theme-church-site/README.md +0 -10
- package/packages/theme-church-site/src/harvest.json +0 -16
- package/packages/theme-church-site/test/theme.test.mjs +0 -21
- package/packages/theme-companions-site/README.md +0 -10
- package/packages/theme-companions-site/src/harvest.json +0 -14
- package/packages/theme-companions-site/src/index.js +0 -87
- package/packages/theme-companions-site/test/theme.test.mjs +0 -21
- package/packages/theme-floors-site/README.md +0 -10
- package/packages/theme-floors-site/src/harvest.json +0 -16
- package/packages/theme-floors-site/test/theme.test.mjs +0 -21
- package/packages/theme-fuelnfree-site/README.md +0 -10
- package/packages/theme-fuelnfree-site/src/harvest.json +0 -15
- package/packages/theme-fuelnfree-site/test/theme.test.mjs +0 -21
- package/packages/theme-handyman-site/README.md +0 -10
- package/packages/theme-handyman-site/package.json +0 -41
- package/packages/theme-handyman-site/src/harvest.json +0 -12
- package/packages/theme-handyman-site/src/index.js +0 -88
- package/packages/theme-handyman-site/test/theme.test.mjs +0 -21
- package/packages/theme-insurance-site/README.md +0 -10
- package/packages/theme-insurance-site/src/harvest.json +0 -12
- package/packages/theme-insurance-site/src/index.js +0 -88
- package/packages/theme-insurance-site/test/theme.test.mjs +0 -21
- package/packages/theme-shinshu-site/README.md +0 -10
- package/packages/theme-shinshu-site/src/harvest.json +0 -14
- package/packages/theme-shinshu-site/test/theme.test.mjs +0 -21
- package/protocol/theme-refinery/lineage-registry.json +0 -105
- package/protocol/theme-refinery/receipts/products-registry-batch-20260924.json +0 -318
- package/protocol/theme-refinery/receipts/theme-harvest-20260924.json +0 -472
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# AgentSam CAD run modes — executable SDK contract
|
|
2
|
+
Status: SDK dispatch implemented and tested; **host integration/deployment requires a separate proof**.
|
|
3
|
+
|
|
4
|
+
These modes are domain execution intents, separate from the ordinary Work chat modes
|
|
5
|
+
`ask | plan | agent | debug | multitask`. UI labels and LLM prompts do not create
|
|
6
|
+
permissions or provider availability. Caller uses `executeCadRunMode({mode,input},{sam,authorizeMode})`
|
|
7
|
+
with the actual trusted `AgentSamClient` and an authorization callback.
|
|
8
|
+
|
|
9
|
+
| Mode | Existing SAM operation | Trust / outcome |
|
|
10
|
+
| ---- | ---------------------- | --------------- |
|
|
11
|
+
| `cad.inspect` | `cad.project.get` | Authorized project/revision read; receipt |
|
|
12
|
+
| `cad.create` | `cad.project.save` | Validated CAD document + expected revision, authorization and approval; new immutable revision |
|
|
13
|
+
| `cad.edit` | `cad.project.apply` | Typed operation + optimistic revision check; authorized edit receipt |
|
|
14
|
+
| `cad.export` | `cad.model.export` | Real GLB/STL/OBJ for an existing revision; valid artifact receipt |
|
|
15
|
+
| `cad.generate` | `cad.job.generate` | Authorized runner + project/workspace/engine + prompt; real job record |
|
|
16
|
+
|
|
17
|
+
Host contract: resolve OAuth principal, tenant/project scope, capability grants,
|
|
18
|
+
write approvals (existing Hooks runtime), job runner availability, canonical project
|
|
19
|
+
authority, asset bucket, and results/revisions. The SDK refuses missing host ports.
|
|
20
|
+
The LLM produces structured proposals/inputs; SAM validates and executes.
|
|
21
|
+
A chat response does not count as CAD success, and a local simulated robot
|
|
22
|
+
does not count as verified physical grasp.
|
|
23
|
+
|
|
24
|
+
**Current integration gate:** Local Studio's `runCadAssistantTurn()` still feeds
|
|
25
|
+
a Work conversation. Until an authorized host binds this run-mode dispatcher
|
|
26
|
+
to the floating CAD composer and returns real typed receipts, do not expose
|
|
27
|
+
these modes as working hosted UI actions or mark this product journey shipped.
|
|
28
|
+
Do not modify generic Work `AgentRunMode` to camouflage the missing bridge.
|
|
29
|
+
|
|
30
|
+
Acceptance: live host user selects CAD object, asks for change, sees a proposed
|
|
31
|
+
typed operation and approval, confirms, project revision actually advances in
|
|
32
|
+
canonical store, reloads, verifies model geometry, exports from the new revision,
|
|
33
|
+
and can restore. Also test missing permission, missing provider, stale revision,
|
|
34
|
+
and retries. Store source and deployment revision in release evidence.
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# AgentSam CLI bootstrap and remote database readiness
|
|
2
|
+
|
|
3
|
+
This first repair addresses the inability to use ordinary AgentSam commands
|
|
4
|
+
when the optional SAM CMS package link is missing, accidental model selection,
|
|
5
|
+
and incomplete remote storage discovery. It does **not** silently connect to,
|
|
6
|
+
modify, or migrate production resources.
|
|
7
|
+
|
|
8
|
+
## Bootstrap
|
|
9
|
+
|
|
10
|
+
- PR #227 established SDK-owned relative CMS module resolution. We retain
|
|
11
|
+
that upstream fix; SDK core and CMS operations no longer depend on a separate
|
|
12
|
+
npm workspace link just to boot. No competing loader is introduced here.
|
|
13
|
+
- For existing developer worktrees, broken node_modules links can still be
|
|
14
|
+
repaired by installing dependencies from the SDK root; the new branch does
|
|
15
|
+
not alter the user's dependency installation automatically.
|
|
16
|
+
- `auto` model preference cannot select the first model in a global catalog.
|
|
17
|
+
A verified cached preference can be restored; otherwise AgentSam instructs
|
|
18
|
+
the user to choose a model with `/model`. It does not substitute an embedding
|
|
19
|
+
model for a coding model. An explicit local-model selection remains possible.
|
|
20
|
+
|
|
21
|
+
## Repository store authority
|
|
22
|
+
|
|
23
|
+
The existing `agentsam db sources` output now reads both Wrangler JSON/JSONC
|
|
24
|
+
and a restricted allowlisted subset of Wrangler TOML bindings (root and
|
|
25
|
+
environment variants). D1, R2, KV, Hyperdrive and Vectorize declarations are
|
|
26
|
+
reported with their existing binding name and source file. The scanner never
|
|
27
|
+
emits tokens, secrets, variables or connection URLs. It is not a general TOML
|
|
28
|
+
parser and does not independently establish connectivity.
|
|
29
|
+
|
|
30
|
+
The local AgentSam runtime SQLite database remains separate from an application's
|
|
31
|
+
D1 or other remote databases. The CLI must not replace or select an application
|
|
32
|
+
binding as its own knowledge store without an explicit authorized adapter.
|
|
33
|
+
|
|
34
|
+
## Explicit remote D1 schema operation
|
|
35
|
+
|
|
36
|
+
Example (not executed automatically):
|
|
37
|
+
|
|
38
|
+
agentsam db sources
|
|
39
|
+
agentsam db schema --remote --binding DB --config wrangler.toml --limit 100 --offset 0 --json
|
|
40
|
+
|
|
41
|
+
The second operation resolves a declared D1 binding, then invokes the project's
|
|
42
|
+
existing Wrangler binary with a fixed SQL query against `sqlite_schema`. It
|
|
43
|
+
supports limit 1..250 and offset 0..1000000. There is no user-defined SQL,
|
|
44
|
+
no implicit `--remote`, no `npx` package download and no automatic migration.
|
|
45
|
+
Success is a live read verification for that one configured binding and query,
|
|
46
|
+
not blanket permission to inspect every database in the account.
|
|
47
|
+
|
|
48
|
+
Agent tool `cloudflare.d1.schema` uses the same implementation with
|
|
49
|
+
`network-read` side-effect classification. `capability.invoke` requires an
|
|
50
|
+
explicit host authorization callback, including for reads; a missing host
|
|
51
|
+
approval denies execution.
|
|
52
|
+
|
|
53
|
+
## Verification
|
|
54
|
+
|
|
55
|
+
npm run verify:registry
|
|
56
|
+
node --test test/integration/cli-bootstrap-storage-readiness.test.mjs
|
|
57
|
+
node --test test/integration/remote-d1-schema.test.mjs
|
|
58
|
+
node --test test/integration/store-discovery.test.mjs
|
|
59
|
+
node --test test/integration/sam-cms-machine.integration.test.mjs
|
|
60
|
+
node --test test/shell.test.mjs
|
|
61
|
+
|
|
62
|
+
Limits: no real remote query, paid-model API call or desktop-host execution is
|
|
63
|
+
performed by these tests. A model snapshot's prior verification is not proof
|
|
64
|
+
of a fresh provider connection. Full live D1 account/database inventory and
|
|
65
|
+
fine-grained schema inspection require subsequent host-authorized adapters.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# AgentSam SDK: real MCP D1 tools, existing authority
|
|
2
|
+
|
|
3
|
+
## Problem
|
|
4
|
+
The IAM MCP server already exports agentsam_cf_d1_list, agentsam_d1_query,
|
|
5
|
+
agentsam_d1_write and agentsam_d1_delete. ChatGPT with a connected MCP session
|
|
6
|
+
can execute those against actual Cloudflare D1 accounts. The standalone SDK
|
|
7
|
+
agent did not bind these operations at all; it only had a narrower, separate
|
|
8
|
+
Wrangler schema inspector.
|
|
9
|
+
|
|
10
|
+
## Implementation
|
|
11
|
+
This slice adds the existing MCP operation names to the canonical SDK
|
|
12
|
+
capability manifest/registry and binds them to the existing
|
|
13
|
+
src/mcp/client.js MCP JSON-RPC callMcpTool implementation. MCP credentials
|
|
14
|
+
and SQL policy stay entirely in the connected server's existing identity,
|
|
15
|
+
OAuth, workspace, and D1 tool implementations.
|
|
16
|
+
|
|
17
|
+
createMcpD1Bridge({invokeTool}) supports authenticated external hosts
|
|
18
|
+
(e.g. Local Studio / ChatGPT MCP) injecting their actual MCP transport.
|
|
19
|
+
The CLI path resolves a configured, authenticated inneranimalmedia
|
|
20
|
+
server entry from the SDK's existing ~/.agentsam/mcp authority. It does
|
|
21
|
+
not invent credentials or steal tokens from another app. If no local MCP
|
|
22
|
+
configuration exists, these operations are discoverable but unavailable,
|
|
23
|
+
not falsely offered to the LLM.
|
|
24
|
+
|
|
25
|
+
A database UUID must be selected by list results. The bridge does not guess
|
|
26
|
+
targets from project names, mirror remote rows into local SQLite, or perform
|
|
27
|
+
any unapproved mutations. Read and write operations use the established
|
|
28
|
+
authorizeCapability / beforeTool host approval boundaries, and the MCP
|
|
29
|
+
server separately enforces its own role and SQL restrictions. The SDK only
|
|
30
|
+
validates bounded argument shapes and limits model-return sizes.
|
|
31
|
+
|
|
32
|
+
## Acceptance and current limits
|
|
33
|
+
- Live MCP agentsam_cf_d1_list and agentsam_d1_query: verified via the
|
|
34
|
+
user-authorized ChatGPT host against FuelNFreetime D1, 0 rows written.
|
|
35
|
+
- SDK: registry/adapter/serialized model-turn tests verify discovery,
|
|
36
|
+
actual MCP operation names, result consumption, and write approval rejection.
|
|
37
|
+
- A standalone local CLI process has no MCP server entry installed in the
|
|
38
|
+
current ~/.agentsam/mcp authority. ChatGPT's hosted connected-app session
|
|
39
|
+
is not automatically available inside the CLI. Until a local MCP session is
|
|
40
|
+
installed or the host injects its authorized transport, the CLI correctly
|
|
41
|
+
reports mcp_d1_connection_not_configured and cannot read remote D1.
|
|
42
|
+
- This slice does not change Cloudflare OAuth grants, add a database executor,
|
|
43
|
+
create a Plan/knowledge store, or alter remote production D1 data.
|
|
44
|
+
|
|
45
|
+
Test:
|
|
46
|
+
npm run verify:registry
|
|
47
|
+
node --test test/registry/mcp-d1-bridge.test.mjs
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# AgentSam Plan portability — first integration sprint
|
|
2
|
+
|
|
3
|
+
## Source of truth
|
|
4
|
+
- Durable state remains in the existing agentsam_plans and agentsam_todo SQLite tables (src/commands/plan-ledger.js). There are no new planner tables, parallel plan stores, migrations, or repo-specific fixtures.
|
|
5
|
+
- The existing SAM GOAP adapter (src/sam/operations/planning-goap.js) calls the existing A* engine. It generates a dry-run proposal, not an automatic execution or a persisted Plan.
|
|
6
|
+
- CLI and SDK agent capability handlers share the same plan-ledger functions.
|
|
7
|
+
|
|
8
|
+
## Portable initialization
|
|
9
|
+
- agentsam plan list --cwd REPO --json returns [] in an uninitialized Git checkout.
|
|
10
|
+
- agentsam plan show --cwd REPO --json returns null.
|
|
11
|
+
- agentsam plan next --cwd REPO --json returns selection=uninitialized.
|
|
12
|
+
- Reads do not create .agentsam, a SQLite file, or mutate configuration; existing databases are opened read-only without migrations.
|
|
13
|
+
- Explicit mutations create the existing repo-local SQLite ledger without requiring a project config or initializing unrelated providers or pipelines.
|
|
14
|
+
- Repository identity remains enforced even with an explicitly configured shared SQLite path.
|
|
15
|
+
|
|
16
|
+
## Model surface
|
|
17
|
+
Read-only: plan.list, plan.show, plan.next, planning.goap.
|
|
18
|
+
Write (requires authorization): plan.create, plan.step.add, plan.step.status, plan.step.evidence, plan.step.accept, plan.step.depends, plan.status.
|
|
19
|
+
|
|
20
|
+
These operations are SDK capability declarations. They use the existing capability search, describe, status, invoke and runner beforeTool authorization; there is no separate tool catalog.
|
|
21
|
+
|
|
22
|
+
Plan steps cannot start or complete while dependencies are incomplete. Dependency cycles, self-reference, and cross-plan references are rejected. Completion requires declared acceptance criteria and existing registered evidence; plans cannot be completed with unfinished steps.
|
|
23
|
+
|
|
24
|
+
Model results are bounded: plan.list reports count and the first 30 plans, plan.show reports task_count and up to 80 tasks with truncated flag. The CLI/SQLite remains the full-state authority.
|
|
25
|
+
|
|
26
|
+
## Earlier SAM work and remaining acceptance
|
|
27
|
+
SAM v2 registered planning.goap and planning.astar. Raw A* expects JavaScript callback functions and is unsuitable for a plain JSON model tool. The GOAP wrapper accepts declarative states/actions and is exposed through the SDK.
|
|
28
|
+
Generated v2 Superbash and media operations are intentionally host-bound to explicit runtime/identity/authorization; unavailable handlers are not assumed installed or removed.
|
|
29
|
+
Discovery/repository-knowledge PR #225 is merged in main; this integration preserves its registry, bounded knowledge handlers and discovery authority.
|
|
30
|
+
|
|
31
|
+
Acceptance:
|
|
32
|
+
npm run verify:registry
|
|
33
|
+
node --test test/cli/plan-ledger.test.mjs test/cli/plan-portability.test.mjs
|
|
34
|
+
node --test test/cli/goap-local-world.test.mjs test/integration/sam-kernel.test.mjs test/integration/tool-schema.test.mjs test/agent-capabilities.test.mjs test/responses-runner.test.mjs
|
|
35
|
+
|
|
36
|
+
Not yet certified: live paid-model planning choice, hosted MCP plan projection, packaged Local Studio integration, and complete unattended multi-step execution.
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# AgentSam Plugin Productization Spine
|
|
2
|
+
|
|
3
|
+
Status: canonical platform contract implemented by `agentsam plugin inspect|verify|receipt`.
|
|
4
|
+
|
|
5
|
+
A plugin is a product package, not merely an MCP endpoint.
|
|
6
|
+
|
|
7
|
+
## Governing evidence pipeline
|
|
8
|
+
|
|
9
|
+
```text
|
|
10
|
+
Machine inspect / crawl
|
|
11
|
+
↓
|
|
12
|
+
Repository graph
|
|
13
|
+
↓
|
|
14
|
+
repository.mine reuse + authority findings
|
|
15
|
+
↓
|
|
16
|
+
plugin inspect
|
|
17
|
+
↓
|
|
18
|
+
plugin verify
|
|
19
|
+
↓
|
|
20
|
+
quality receipt
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Plugin Productization is **not another scanner**. `plugin inspect` consumes already-produced Machine, Repository, capability and package evidence. It may validate its own small manifests, but it must not walk repositories, invent a second dependency graph, rediscover OAuth implementations, or create another MCP registry. When evidence is unavailable it reports the fact as unverified instead of silently scanning again.
|
|
24
|
+
|
|
25
|
+
Every finding names its evidence source and, when the finding concerns duplicated/misplaced authority, the expected canonical owner. Repository ownership comes from Repository/refinery evidence when available; product code does not maintain a parallel package-owner lookup table. Every AgentSam plugin must pass the same identity, ownership, capability, permission, installation, authorization, health, verification, portability and release lifecycle.
|
|
26
|
+
|
|
27
|
+
## Canonical lifecycle
|
|
28
|
+
|
|
29
|
+
```text
|
|
30
|
+
available → installed → needs_connection → connected → ready
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
These states MUST NOT collapse. An installation record is not connection proof, and a successful OAuth exchange is not readiness proof. `ready` is never a writable product state: it is computed from current evidence. Persistable runtime observations may include `last_verified_at`, `last_verification_receipt`, `last_health`, and `last_error`, but not an administrator-set `ready=true`.
|
|
34
|
+
|
|
35
|
+
## Package boundary
|
|
36
|
+
|
|
37
|
+
Each product plugin adds `agentsam.product.json` beside its public `plugin.json` and `mcp.json`.
|
|
38
|
+
|
|
39
|
+
The product contract declares:
|
|
40
|
+
|
|
41
|
+
- product identity and version
|
|
42
|
+
- canonical domain package
|
|
43
|
+
- domain-specific ownership
|
|
44
|
+
- platform authorities that MUST be reused
|
|
45
|
+
- capabilities and risk
|
|
46
|
+
- declared permissions
|
|
47
|
+
- auth requirements
|
|
48
|
+
- health strategy
|
|
49
|
+
- lifecycle states
|
|
50
|
+
- required verification checks
|
|
51
|
+
- release receipt requirement
|
|
52
|
+
|
|
53
|
+
Generic OAuth, credential custody, installation, MCP transport, Settings, generic health, receipts and retry infrastructure are platform authorities. Domain packages own only what is unique to the product.
|
|
54
|
+
|
|
55
|
+
## Deterministic commands
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
agentsam plugin inspect ./plugins/agentsam-brand
|
|
59
|
+
agentsam plugin verify ./plugins/agentsam-brand
|
|
60
|
+
agentsam plugin receipt ./plugins/agentsam-brand
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
`inspect` reports contract/ownership findings and can consume an existing `agentsam.plugin-evidence-bundle/v1` via `--evidence`. `verify` combines package evidence with existing capability/runtime receipts; checks with no proof remain `unverified`. `receipt` renders the same verification result as an `agentsam.plugin-quality-receipt/v1` document rather than running a third verification engine. READY is computed; it is never manually declared.
|
|
64
|
+
|
|
65
|
+
## Evidence contract
|
|
66
|
+
|
|
67
|
+
A plugin may carry `agentsam.quality.json` using `agentsam.plugin-quality-evidence/v1`. Required checks not backed by evidence remain `unverified`; any required `fail` or `unverified` keeps the product NOT_READY.
|
|
68
|
+
|
|
69
|
+
Reference graduation checks should include package/manifest validity, install/uninstall, authorization/refresh/disconnect, health, capability discovery, a real tool call, result render/save round-trip, least privilege, tenant isolation, fresh-account and fresh-install portability.
|
|
70
|
+
|
|
71
|
+
Brand and Campaign are the first reference products. A third official plugin should not establish a competing lifecycle.
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
## Calibration law
|
|
75
|
+
|
|
76
|
+
Brand and Campaign are the first two reference products and must use this exact generic pipeline without `if brand` / `if campaign` special cases. Do not introduce a third official plugin until both can progress from inspect → verify → computed receipt with fresh-account runtime proof.
|
|
77
|
+
|
|
78
|
+
The generator is intentionally later. A future `agentsam plugin create <name>` must first consume Repository ownership, Machine/refinery evidence, the capability catalog and this product contract, then propose the smallest domain-only package.
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
## Repository/refinery evidence quality
|
|
82
|
+
|
|
83
|
+
Product inspection must not treat a large candidate count as proof. Repository/refinery evidence should distinguish at least:
|
|
84
|
+
|
|
85
|
+
- **EXACT** — byte/source equivalent
|
|
86
|
+
- **STRUCTURAL** — same implementation with edits
|
|
87
|
+
- **CAPABILITY** — different implementations of the same job
|
|
88
|
+
- **RELATED** — shared infrastructure but distinct purpose
|
|
89
|
+
- **FALSE_POSITIVE** — similar-looking code that must not be recommended for consolidation
|
|
90
|
+
|
|
91
|
+
Before refinery recommendations can become trusted automated guidance, fixtures must cover a known exact duplicate, an evolved duplicate, an intentionally separate similar implementation, and a case where an existing package owner is resolved correctly. `plugin inspect` consumes those proposals; it does not perform the classification itself.
|
|
92
|
+
|
|
93
|
+
## Repository authority bridge
|
|
94
|
+
|
|
95
|
+
A future `agentsam repository authority <domain>` command belongs on top of the existing Repository graph. It must derive authority from package exports, capability ownership, contracts, consumer imports, manifests and supporting docs. It must not be implemented as a hand-maintained domain→package lookup table.
|
|
96
|
+
|
|
97
|
+
The result may legitimately be multiple primary authorities for a broad domain. For example, media identity/provenance, content lifecycle/provider representations and media preparation may remain separate package authorities.
|
|
98
|
+
|
|
99
|
+
## Definition versus observation
|
|
100
|
+
|
|
101
|
+
The product manifest contains stable definition only. Installation rows, authorization state, health, discovered tool counts, runtime success and READY are observations. A host may persist the latest observation receipt, timestamp, health result and error, but the current status is always re-derived from evidence.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# SamOS — complete product before isolated operation
|
|
2
|
+
|
|
3
|
+
Status: **direction + scoped contract**, not a claim that all lifecycle operations have been implemented.
|
|
4
|
+
|
|
5
|
+
## Operating-system analogy
|
|
6
|
+
|
|
7
|
+
InnerAnimalMedia owns the platform; **SamOS** is the coherent installed environment; **AgentSam SDK** is the portable developer and runtime interface; apps/extension packages are experiences available within it. Existing ACP runs, IAM identity, host permissions, app and package manifests, existing registries and project stores retain their authority. SamOS composes them; it must not become a parallel database, orchestration engine or subscription trap.
|
|
8
|
+
|
|
9
|
+
A fresh user should be able to install the SDK, initialize an authorized workspace, discover installed and available functions, run a useful workflow with native capabilities, inspect outputs, save and reopen their work, and understand dependency/permission requirements. Optional providers extend capabilities; missing paid providers must not make basic installed workflows unusable.
|
|
10
|
+
|
|
11
|
+
## Operation vs product
|
|
12
|
+
|
|
13
|
+
- **Primitive operation:** `brand.scan` inspects existing evidence; `planning.goap` plans; `terminal.exec` executes authorized commands. Operations need not have CRUD if they do not own persistent resources.
|
|
14
|
+
- **Product journey:** Brand Studio should guide **create/import → scan → inspect → refine → preview → approve/reject → persist/version → publish/export → reopen/restore** using existing brand package and CMS/media authorities. A scanner alone is not a finished brand product.
|
|
15
|
+
- **Resource authority:** Persistent resources such as projects, brand packs, assets, artifacts and installations need their legitimate **create/list/get/update/delete/restore** lifecycle where appropriate. They remain owned by their canonical product/service.
|
|
16
|
+
- **Distribution:** A customer installs a useful product with coherent initial abilities. Specialized or optional integrations can be additional, but must be transparently disclosed and not hide core advertised functions.
|
|
17
|
+
|
|
18
|
+
## Existing baseline (verified 2026-10-17)
|
|
19
|
+
|
|
20
|
+
`src/sam/packs/core.js` registers **21 core operations**: 11 general and 10 robotics simulation. `AgentSamClient` already exposes `projects.list/get/create/edit/delete/restore`, SQLite CRUD projections, and single-purpose core operation projections, but these are not a fully integrated product journey. `packages/agentsam-brand` already documents brand pack ingest/derive/plan/promote/publish/verify; do not reimplement it to add user-facing steps. Capability manifest counts and registry declarations are **not** proof of host bindings or complete product readiness.
|
|
21
|
+
|
|
22
|
+
## Baseline installed experience
|
|
23
|
+
|
|
24
|
+
1. **Boot/initialize:** local workspace, readable configuration, environment health, supported host lanes, optional cloud sign-in; never require company-owned ExecOS for customer use.
|
|
25
|
+
2. **Home/workspace:** named projects, recent work, installed experiences, approvals, operation status and receipts.
|
|
26
|
+
3. **Product modules:** useful first-run journeys, sensible defaults, progressive detail and command/API parity where supported.
|
|
27
|
+
4. **Trusted execution:** distinguish declared, registered, bound, dependencies ready, authorized, tested and verified; request effect-specific approvals; preserve actor/tenant scopes.
|
|
28
|
+
5. **User-facing outputs:** searchable saved assets, versioned artifacts, previews and restore; real failure/recovery states.
|
|
29
|
+
6. **Updates/installations:** app/package manifest authority and hosted/local installation truth; no silently promised deployment.
|
|
30
|
+
|
|
31
|
+
## Initial product completeness matrix (target; NOT registered operation claims)
|
|
32
|
+
|
|
33
|
+
| Product | Resource lifecycle | User actions | Delivery proof |
|
|
34
|
+
| --- | --- | --- | --- |
|
|
35
|
+
| Workspace | project create/list/get/edit/delete/restore | initialize/open/import/configure | reopen and isolation tests |
|
|
36
|
+
| Brand | brand pack create/import/list/get/edit/version/restore | scan/derive/refine/preview/approve/publish/export | inspect real HTML preview + actual persisted/published artifact |
|
|
37
|
+
| Knowledge | indexed source list/get/remove/refresh | crawl/ingest/query/cite | freshness/ownership and retrieval receipts |
|
|
38
|
+
| Packages | package discover/install/list/update/remove | audit/verify/publish (authorized) | cold install + invocation check |
|
|
39
|
+
| CMS / commerce | existing product-specific CRUD authorities | author/preview/approve/publish | tenant-specific live URL + source SHA |
|
|
40
|
+
| CAD / media | assets/projects/version/restore | inspect/edit/validate/render/export | openable saved artifact and valid formats |
|
|
41
|
+
| Execution | run list/get/cancel under ACP | plan/approve/execute/verify | durable actor-scoped run receipts |
|
|
42
|
+
|
|
43
|
+
This table describes **experiences to close**, not license to add same-named CRUD operations, database tables, or new privileged services without source audit.
|
|
44
|
+
|
|
45
|
+
## Release condition for any user-visible surface
|
|
46
|
+
|
|
47
|
+
For a web interface, **mainline source + installed app entry + stable hosted URL + authorization + actual URL smoke + revision receipt** are required before marking shipped. Localhost or a built `dist` is preview-only. For desktop or headless products, require an installed application or documented reproducible SDK/CLI entry point and an invocation receipt. Link unresolved releases to issues, not lost feature branches.
|
|
48
|
+
|
|
49
|
+
Follow `docs/standards/DELIVERY_CLOSURE.md`. GitHub issue forms are intake, `.agentsam/templates/issue-delivery.v1.yml` is an advisory evidence crosswalk, and the existing GOAP/ACP/operation system remains the executor.
|
|
@@ -152,6 +152,41 @@ Handlers reuse existing implementations. New work asks: **What module owns this
|
|
|
152
152
|
|
|
153
153
|
---
|
|
154
154
|
|
|
155
|
+
## Script operations — Superbash ($0 machinery for repetitive work)
|
|
156
|
+
|
|
157
|
+
`sam.superbash`, `sam.script.save` and `sam.script.get` are kernel operations (generated-v2 pack; registered through the shell adapter when a trusted identity and Bash are available). They exist so repetitive, deterministic work is **scripted once and referenced by hash** instead of being re-reasoned by a model every turn. Runtime, approval and security contract: `docs/engineering/SUPERBASH_LOCAL_RUNTIME.md`.
|
|
158
|
+
|
|
159
|
+
| Operation ID | Effect | Authorization | model |
|
|
160
|
+
|--------------|--------|---------------|-------|
|
|
161
|
+
| `sam.script.save` | `script_artifact_write` — immutable versions, compare-and-swap `expectedVersion` | script write permission | never |
|
|
162
|
+
| `sam.script.get` | read — one immutable version, scoped to account / actor / installation | script read permission | never |
|
|
163
|
+
| `sam.superbash` | `shell_execution` — inline `script` **or** `scriptArtifactRef` (exactly one) | execution grant, bound to the exact artifact + cwd | never |
|
|
164
|
+
|
|
165
|
+
### Lane order — cheapest correct lane first
|
|
166
|
+
|
|
167
|
+
1. An existing deterministic operation (`repository.inspect`, `security.scan`, …).
|
|
168
|
+
2. A saved script run by `scriptArtifactRef` — the model sends a ~100-byte reference, not the script.
|
|
169
|
+
3. An inline script — save it the second time it is needed.
|
|
170
|
+
4. A model — only for judgment: classification, writing, design, ambiguous diagnosis.
|
|
171
|
+
|
|
172
|
+
### Digest contract
|
|
173
|
+
|
|
174
|
+
A script returns **one bounded JSON line** — `schema`, counts, top-N items, `truncated` — never raw logs or diffs. The model reads the digest; the evidence stays on disk. A non-zero exit is a structured failure that still returns the digest and the receipt. Starter library: `scripts/superbash/` (`repo-state`, `worktree-sweep`, `diff-digest`, `leftovers`, `gate-digest`) — read-only, zero-argument, covered by `test/integration/superbash-digests.test.mjs`.
|
|
175
|
+
|
|
176
|
+
### What the receipt proves
|
|
177
|
+
|
|
178
|
+
`execution.model_used === false` and `usage.provider_calls === 0`, plus `scriptHash`, exit code and duration. The same `scriptHash` in the same cwd against the same repository state gives the same answer; memoizing on that key is a host option, not something the runtime provides.
|
|
179
|
+
|
|
180
|
+
### Promotion path
|
|
181
|
+
|
|
182
|
+
inline script → saved script → **named operation** in the module that owns the domain (`module.action`, `model: never`, the digest as its output schema). A script that humans and models both run repeatedly belongs in a module, not in a prompt.
|
|
183
|
+
|
|
184
|
+
### Boundaries (normative)
|
|
185
|
+
|
|
186
|
+
Bash is **not** a sandbox. No profile/rc files; environment stripped of API keys and cloud credentials; cwd confined to the authorized root (symlinks resolved); bounded time and output (defaults: 120 s, 256 KiB, 200 KB script); redacted diagnostics. `idempotencyKey` is a correlation hash, **not** exactly-once — hosts must not retry an uncertain run. Work that needs real isolation requires a separately consented isolated executor; do not downgrade to this runner to save cost.
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
155
190
|
## Go / agentsamd (next lane — Slice H)
|
|
156
191
|
|
|
157
192
|
Local durable machine service (`agentsamd`) owns PTY, jobs, local invoke — **not** a Tauri rewrite. `AGENTSAM_API_KEY` authenticates **remote/platform** operations; local capabilities stay key-optional. Tauri may later consume the same daemon.
|
|
@@ -169,6 +204,10 @@ See: Go Worker product lane already live; expand carefully.
|
|
|
169
204
|
| `protocol/sam/registry.seed.json` | Seed operation registry |
|
|
170
205
|
| `src/sam/` | Kernel registry + `AgentSamClient` / `invoke` / `describe` / `discover` |
|
|
171
206
|
| `protocol/capabilities/manifest.json` | Existing capability cards (migrate into ops over time) |
|
|
207
|
+
| `src/sam/operation-packs/generated-v2/scripts.js` | `sam.superbash` / `sam.script.*` handlers |
|
|
208
|
+
| `src/sam/adapters/local-script-runtime.js` · `local-script-store.js` | Local Bash runtime and versioned script store |
|
|
209
|
+
| `docs/engineering/SUPERBASH_LOCAL_RUNTIME.md` | Superbash runtime, approval and security contract |
|
|
210
|
+
| `scripts/superbash/` | Starter digest scripts (one JSON line each) |
|
|
172
211
|
|
|
173
212
|
---
|
|
174
213
|
|
|
@@ -179,3 +218,4 @@ See: Go Worker product lane already live; expand carefully.
|
|
|
179
218
|
- Letting CLI command strings define internal operation IDs
|
|
180
219
|
- Requiring `AGENTSAM_API_KEY` for local inspect/merkle/security
|
|
181
220
|
- Documenting APIs by hand that should be projections of the registry
|
|
221
|
+
- Asking a model to re-derive a deterministic sweep (git state, gate results, diff statistics) every turn instead of running a saved script
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# SAM Resource Lifecycle — CRUD and Provisioning
|
|
2
|
+
|
|
3
|
+
**2026-10-17 · SAM = Systematic Autonomous Machinery**
|
|
4
|
+
|
|
5
|
+
Persistent resource packs must expose create, list, read, update and delete where
|
|
6
|
+
meaningful, or explicitly report unsupported / not applicable verbs. A scan,
|
|
7
|
+
execution command or decision is an action, not a resource; it should not receive
|
|
8
|
+
fictitious CRUD endpoints.
|
|
9
|
+
|
|
10
|
+
| Resource | Create | List/read | Update | Delete | Restore |
|
|
11
|
+
|---|---|---|---|---|---|
|
|
12
|
+
| Local project | project.create | project.list/project.get | project.edit | project.delete (archive) | project.restore |
|
|
13
|
+
| Local SQLite database | agentsam_sqlite_create | agentsam_sqlite_list/get | agentsam_sqlite_edit | agentsam_sqlite_delete (archive) | agentsam_sqlite_restore |
|
|
14
|
+
| Cloudflare D1 resource | agentsam_d1_create | Not certified | Not certified | Not certified | Provider-specific |
|
|
15
|
+
| SQL rows in existing D1 | agentsam_d1_write (INSERT) | agentsam_d1_query | agentsam_d1_write (UPDATE) | agentsam_d1_delete (SQL) | Application-owned |
|
|
16
|
+
|
|
17
|
+
SQL DELETE is **not** Cloudflare D1 resource deletion. Never confuse a
|
|
18
|
+
customer's local SQLite with their cloud D1 database.
|
|
19
|
+
|
|
20
|
+
## Actual implementations
|
|
21
|
+
|
|
22
|
+
Project create makes a workspace-owned projects/ID folder with
|
|
23
|
+
.agentsam/project.json. Project edit requires expected_revision. Delete archives
|
|
24
|
+
original files, requires confirm_id and revision; restore needs the returned
|
|
25
|
+
restore_ref. IDs reject path traversal and symlinks. project.discover remains
|
|
26
|
+
read-only inspection, not a second project registry.
|
|
27
|
+
|
|
28
|
+
Local SQLite create makes a real empty SQLite file at
|
|
29
|
+
.agentsam/databases/NAME.sqlite (mode 0600). Get/list inspect it. Edit is a
|
|
30
|
+
rename guarded by expected size and modification time, no active WAL/SHM, no
|
|
31
|
+
overwrite. Delete archives rather than erases; restore recovers original data.
|
|
32
|
+
|
|
33
|
+
Remote agentsam_d1_create becomes callable **only** when an installation
|
|
34
|
+
provides a trusted actor/installation context, a host authorization callback
|
|
35
|
+
and a provisionD1 implementation. createCloudflareD1Provisioner is the actual
|
|
36
|
+
Cloudflare REST POST adapter: its cloud account and token come from a trusted
|
|
37
|
+
customer installation credential resolver, not the model/tool input.
|
|
38
|
+
The default unconfigured host correctly returns unavailable.
|
|
39
|
+
No live remote database was created during this build.
|
|
40
|
+
|
|
41
|
+
The provider currently must be supplied by the customer installation;
|
|
42
|
+
production IAM MCP server provisioning registration and OAuth write scope
|
|
43
|
+
remains a separate integration acceptance gate.
|
|
44
|
+
|
|
45
|
+
## JavaScript usage
|
|
46
|
+
|
|
47
|
+
import { AgentSamClient, createSamOS, createCapabilityAdapter,
|
|
48
|
+
createCloudflareD1Provisioner } from "@inneranimalmedia/agentsam-sdk";
|
|
49
|
+
const provisionD1 = createCloudflareD1Provisioner({
|
|
50
|
+
resolveAccountForInstallation: installation =>
|
|
51
|
+
installedCustomerCredentialResolver(installation),
|
|
52
|
+
});
|
|
53
|
+
const adapter = createCapabilityAdapter({
|
|
54
|
+
projectRoot: trustedWorkspaceRoot,
|
|
55
|
+
installationContext: trustedInstallationContext,
|
|
56
|
+
authorizeCapability: authorizeRealHostAction,
|
|
57
|
+
provisionD1,
|
|
58
|
+
});
|
|
59
|
+
const sam = new AgentSamClient({
|
|
60
|
+
os: createSamOS(), cwd: trustedWorkspaceRoot,
|
|
61
|
+
capabilityAdapter: adapter,
|
|
62
|
+
authorizeCapability: authorizeRealHostAction,
|
|
63
|
+
});
|
|
64
|
+
await sam.projects.create({ id: "customer-app", name: "Customer App" });
|
|
65
|
+
await sam.databases.sqlite.create({ name: "local_db" });
|
|
66
|
+
await sam.databases.d1.create({ name: "customer-app-prod", confirm_name: "customer-app-prod" });
|
|
67
|
+
|
|
68
|
+
The host resolver, workspace root, installation context and authorization
|
|
69
|
+
callback above must be real installation-owned implementations. They are not
|
|
70
|
+
supplied automatically or inferred from an operator's account.
|
|
71
|
+
|
|
72
|
+
## Acceptance
|
|
73
|
+
|
|
74
|
+
node --test test/registry/resource-crud.test.mjs test/registry/d1-provisioner.test.mjs
|
|
75
|
+
node scripts/sam-machine/crud-smoke.mjs
|
|
76
|
+
node scripts/sam-machine/crud-coverage.mjs --out /tmp/sam-crud-coverage.json
|
|
77
|
+
npm run verify:registry
|
|
78
|
+
|
|
79
|
+
Keep each resource's canonical ID, owner, versioned schemas, side-effect class,
|
|
80
|
+
per-actor access, revision preconditions, and execution receipts.
|
|
81
|
+
No manifest-only tools labeled as executable; no customer access to operator D1.
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
## Whole-ecosystem audit policy
|
|
85
|
+
|
|
86
|
+
The resource CRUD report also lists all unclassified capability operations
|
|
87
|
+
and packages. Those are REVIEW obligations rather than invented missing CRUD
|
|
88
|
+
handlers. A specialist's persistent entities (asset, composition, project,
|
|
89
|
+
media version, ticket, shipment, design scene) need first-class lifecycle
|
|
90
|
+
capabilities from their actual execution owner. Stateless actions (scan,
|
|
91
|
+
inspect, execute, inference, evaluation) must be explicitly classified
|
|
92
|
+
action-only instead of receiving meaningless delete/create endpoints.
|
|
93
|
+
|
|
94
|
+
The machine's resource_pack_parity release gate intentionally fails until
|
|
95
|
+
owners classify the remaining families, implement missing lifecycle verbs,
|
|
96
|
+
and prove authorization, installation scoping and receipts per host.
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# SAM — Systematic Autonomous Machinery
|
|
2
|
+
|
|
3
|
+
**Canonical nomenclature and operating standard · 2026-10-17**
|
|
4
|
+
|
|
5
|
+
> SAM is the portable execution and capability foundation of the AgentSam ecosystem.
|
|
6
|
+
>
|
|
7
|
+
> It gives developers and intelligent systems a consistent way to discover, reason about, authorize and execute operations across programming languages, applications, devices and services.
|
|
8
|
+
>
|
|
9
|
+
> SAM preserves specialist runtimes while unifying their contracts, permissions, state, events and verifiable outcomes.
|
|
10
|
+
>
|
|
11
|
+
> Its purpose is to make sophisticated, interconnected systems accessible through an experience that remains coherent and controllable.
|
|
12
|
+
>
|
|
13
|
+
> Complex underneath. Effortless above.
|
|
14
|
+
|
|
15
|
+
## Names and responsibilities
|
|
16
|
+
|
|
17
|
+
| Name | Exact meaning | Authority |
|
|
18
|
+
|---|---|---|
|
|
19
|
+
| **SAM** | **Systematic Autonomous Machinery** | Operations, deterministic decisions/planning, capability contracts, policy dispatch, receipts |
|
|
20
|
+
| **agentsam** | Lowercase machine-level API and CLI | Invokes registered SAM operations under the installed host authority |
|
|
21
|
+
| **AgentSam** | AI-powered wrapper/harness | Interprets requests, selects tools, coordinates model-assisted work, presents results |
|
|
22
|
+
| **AgentSamClient** | Public developer SDK facade | Discover, describe, decide, invoke, run, status, events; **not** a new execution engine |
|
|
23
|
+
| **Local Studio, miniAgentSam, Side Assistant** | User interfaces into those capabilities | No independent database authority |
|
|
24
|
+
|
|
25
|
+
SAM is an application/agent operating environment, not a replacement for a general-purpose OS.
|
|
26
|
+
|
|
27
|
+
## One contract, many specialist owners
|
|
28
|
+
|
|
29
|
+
The public API must preserve canonical IDs, contracts, error shapes,
|
|
30
|
+
authorization outcomes and receipts across languages. The actual work remains
|
|
31
|
+
with existing owners: SAM local, ACP durable runs, MCP plugins, IAM identity,
|
|
32
|
+
CMS/commerce tenant installations, Go/ExecOS, native Rust/C++ CAD, CoPro and
|
|
33
|
+
media engines. Different transports are appropriate; differing policy is not.
|
|
34
|
+
|
|
35
|
+
A customer installation discovers and invokes its own authorized operations
|
|
36
|
+
against its own configured data. An installation does not receive IAM operator
|
|
37
|
+
D1 IDs, SQL connection objects, service secrets, or another customer's tenant.
|
|
38
|
+
Actor identity, tenant, installation, workspace, scopes, dependency health and
|
|
39
|
+
per-action approvals are checked by the executing owner. An LLM decision never
|
|
40
|
+
grants permissions.
|
|
41
|
+
|
|
42
|
+
## Real API scope
|
|
43
|
+
|
|
44
|
+
| Public method | Existing implementation in this branch | Still missing |
|
|
45
|
+
|---|---|---|
|
|
46
|
+
| discover | Current SAM OS plus explicitly injected host capability adapter; restricted Python bridge | Unified specialist roster/readiness |
|
|
47
|
+
| describe | Current SAM operation definitions; Python bridge | Full cross-host versioned schemas |
|
|
48
|
+
| decide | Existing SAM Choose/Check/Score evaluator | Semantic provider and broader six-language parity |
|
|
49
|
+
| invoke | Existing SAM handler, authorized host adapter (including live MCP D1 reads), deterministic artifact.render | App/ACP/MCP/native universal authorized dispatch |
|
|
50
|
+
| run | Explicitly injected real ACP control-plane client; Python ACP HTTP | Automatic job execution and evidence-linked deliverables |
|
|
51
|
+
| events | Existing ACP event retrieval in JS and Python | Durable streaming/replay across all hosts |
|
|
52
|
+
| status | Current SAM host registration, effects and dependency caveats | Actor-specific probe/permission/certified evidence across all hosts |
|
|
53
|
+
|
|
54
|
+
## Execution cannot become a cosmetic demo
|
|
55
|
+
|
|
56
|
+
Declared → registered → handler-bound → actor authorized → dependency
|
|
57
|
+
ready → executed → receipt checked → language/host certified → merged/
|
|
58
|
+
installed. A generated ID constant is not a working Go/Rust/C++ SDK. A run
|
|
59
|
+
record is not a completed run. Presence of a receipt reference does not
|
|
60
|
+
independently validate that receipt.
|
|
61
|
+
|
|
62
|
+
The deterministic artifact.render handler converts structured findings, plans,
|
|
63
|
+
and wireframe section instances into escaped HTML, Markdown and a manifest.
|
|
64
|
+
Its evidence references remain *unverified* until a trusted authority validates
|
|
65
|
+
them. It does not silently save files or publish. Original customer assets
|
|
66
|
+
and compositions must never be overwritten or replaced by a demo fallback.
|
|
67
|
+
|
|
68
|
+
## Architectural priorities
|
|
69
|
+
|
|
70
|
+
P0: capability parity, real authorization and IAM read/write scope
|
|
71
|
+
consistency, durable ACP/Plan execution with receipts, installation-owned
|
|
72
|
+
artifact persistence and presentation. P1: six-language clients; CMS, commerce,
|
|
73
|
+
CoPro/MovieMode, CAD, media, IDE and Work Graph host adapters with certified
|
|
74
|
+
positive and negative tests.
|
|
75
|
+
|
|
76
|
+
**Global standard:** Craft over spectacle. Substance over promises.
|
|
77
|
+
**Architecture standard:** Complex underneath. Effortless above.
|
|
78
|
+
|
|
79
|
+
See docs/standards/SAM_MACHINE_BUILD_AND_GAPS.md for executable commands.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# User-global AgentSam instructions
|
|
2
|
+
|
|
3
|
+
**Contract owner:** SDK instruction compiler (`src/lib/agent-instructions.js`)
|
|
4
|
+
**Scope:** The *current operating-system user's* AgentSam CLI / Local Studio sessions, across repository boundaries. This is an opt-in file, not a bundled company-wide default.
|
|
5
|
+
|
|
6
|
+
## Precedence and source authority
|
|
7
|
+
|
|
8
|
+
When available, AgentSam compiles instruction sources in this order:
|
|
9
|
+
|
|
10
|
+
1. `~/.agentsam/AGENTSAM.md` — optional user-global instructions.
|
|
11
|
+
2. `AGENTSAM.md` discovered within the current repository — stable project runtime contract.
|
|
12
|
+
3. `.agentsamrules` discovered within that repository — project-specific rules.
|
|
13
|
+
|
|
14
|
+
Global instructions apply even in a repository with no AgentSam files. Repository files are not modified, copied, or seeded by this loader. All compiled sources retain their path and SHA-256 hash. Provider compatibility files (`AGENTS.md`, `CLAUDE.md`) are *not* independent rule authority.
|
|
15
|
+
|
|
16
|
+
Each scope has a distinct role. User-global policy may define the owner's standards across projects; project files specify constraints and implementation details. When a project conflicts with the user's global policy, surface the conflict instead of silently loosening the global requirement. System-level safety, authorization, and runtime contracts remain higher authority than any editable instruction file.
|
|
17
|
+
|
|
18
|
+
## Owner-managed installation
|
|
19
|
+
|
|
20
|
+
Create an ordinary UTF-8 Markdown file at `~/.agentsam/AGENTSAM.md`. For InnerAnimalMedia, its canonical owner-wide experience law is maintained in `SamPrimeaux/inneranimalmedia` at `docs/standards/INNERANIMALMEDIA_EXPERIENCE_STANDARD.md`. Install a copy or explicitly managed symlink as the *user's* global file; do not add the entire InnerAnimalMedia source tree as an SDK dependency.
|
|
21
|
+
|
|
22
|
+
Example for a developer who has the InnerAnimalMedia repository checked out under their home directory:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
mkdir -p "$HOME/.agentsam"
|
|
26
|
+
ln -s "$HOME/inneranimalmedia/docs/standards/INNERANIMALMEDIA_EXPERIENCE_STANDARD.md" "$HOME/.agentsam/AGENTSAM.md"
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
The symlink keeps one editable source of truth; use a regular file when no reliable checked-out source is present. Do not overwrite an existing user-global file without reviewing it first.
|
|
30
|
+
|
|
31
|
+
## Portable / hosted operation
|
|
32
|
+
|
|
33
|
+
- No user-global policy file is created or shipped by the SDK.
|
|
34
|
+
- The reader uses the current user's home directory by default. The `globalFilename` option can select an explicit, authorized file, and `globalFilename: null` disables it for isolated or hosted contexts.
|
|
35
|
+
- **Multi-tenant hosts must not implicitly treat the server process's home directory as a customer's policy authority.** Pass a tenant-authorized file or `null` at the call site. Do not allow one user's instructions to bleed into another user's run.
|
|
36
|
+
- Rules loading never authenticates providers, changes permissions, performs actions, or changes the authoritative repository data. It only composes instruction text.
|
|
37
|
+
|
|
38
|
+
## No silent rule truncation
|
|
39
|
+
|
|
40
|
+
The compiled instruction set must fit the selected model's system-instruction budget. If owner, runtime, and repository rules exceed that budget, AgentSam rejects the turn with `AGENTSAM_INSTRUCTION_BUDGET_EXCEEDED` and an inspectable receipt containing source paths/hashes, requested bytes, and available character budget. No earlier global rule may quietly consume the budget and hide the repository's own requirements. Adjust the model budget or explicitly review and shorten rules, then retry. This is a safe rejection, not an authorization downgrade.
|
|
41
|
+
|
|
42
|
+
For an actual CLI model request, `runResponsesAgent(..., { onPreparedTurn })` records the exact effective `instructions` and an `instruction_receipt` with the source hashes used for that turn. These data can contain sensitive repository policy; log only into an authorized diagnostic context, never default provider logs or public telemetry. Hosted/multi-tenant use must pass `globalFilename: null` unless the user has specifically authorized a tenant-owned rules path.
|
|
43
|
+
|
|
44
|
+
## Verify the effective rules
|
|
45
|
+
|
|
46
|
+
The compiler is exported from the SDK:
|
|
47
|
+
|
|
48
|
+
```js
|
|
49
|
+
import { compileAgentInstructions } from '@inneranimalmedia/agentsam-sdk';
|
|
50
|
+
const rules = compileAgentInstructions(process.cwd());
|
|
51
|
+
console.log(rules.sources.map(({ id, path, hash }) => ({ id, path, hash })));
|
|
52
|
+
console.log(rules.content.includes('Craft over spectacle. Substance over promises.'));
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Expected with the InnerAnimalMedia file installed: the source list begins with `global`, followed by whichever repository instruction files exist. A clean repository can have `global` as its only source. A missing global file is not treated as a required dependency.
|