@inneranimalmedia/agentsam-sdk 2.6.12 → 2.6.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTSAM.md +32 -0
- package/DEVELOPMENT.md +69 -74
- package/README.md +11 -0
- package/apps/cad-creator/README.md +12 -0
- package/apps/cad-creator/shared/cad/package.json +1 -1
- package/apps/cad-creator/shared/cad/src/domain/project-contract.js +2 -75
- package/apps/cad-creator/shared/cad/src/domain/project-tools.js +2 -24
- package/apps/cad-creator/shared/cad/src/types.ts +2 -2
- package/apps/client-cms-editor/backend/package.json +2 -2
- package/apps/client-cms-editor/frontend/package.json +3 -3
- package/apps/client-cms-editor/frontend/src/adapters/http.ts +25 -13
- package/apps/client-cms-editor/frontend/src/editor/CmsEditor.tsx +7 -4
- package/apps/client-cms-editor/frontend/src/editor/canvas/PreviewCanvas.tsx +31 -3
- package/apps/client-cms-editor/frontend/src/editor/host-preview.test.tsx +104 -0
- package/apps/client-cms-editor/package-lock.json +8 -8
- package/apps/client-cms-editor/package.json +2 -1
- package/apps/client-cms-editor/shared/cms/package.json +1 -1
- package/docs/AUTORAG.md +2 -0
- package/docs/CAPABILITIES.md +28 -0
- package/docs/adr/ADR-0003-copro-clean-room-product-architecture.md +6 -0
- package/docs/architecture/AGENTSAM-CANONICAL-DISCOVERY-FIRST-SLICE.md +70 -0
- package/docs/architecture/AGENTSAM-REGISTRY-CLI-AGENT-PARITY.md +133 -0
- package/docs/architecture/AGENTSAM_APPLICATION_CONTRACT.md +6 -0
- package/docs/architecture/CAD_OPERATOR_CAPABILITIES.md +64 -0
- package/docs/architecture/CAD_ROBOTICS_RELEASE_LEDGER_20261016.md +43 -0
- package/docs/architecture/CAD_RUN_MODES.md +34 -0
- package/docs/architecture/CLI-BOOT-REMOTE-DB-READINESS-20261015.md +65 -0
- package/docs/architecture/EXISTING-MCP-D1-AGENT-BRIDGE.md +47 -0
- package/docs/architecture/PLAN-PORTABILITY-SAM-FIRST-SPRINT-20261015.md +36 -0
- package/docs/architecture/PLUGIN-PRODUCTIZATION-SPINE.md +101 -0
- package/docs/architecture/SAMOS_PRODUCT_MODEL.md +49 -0
- package/docs/architecture/SAM_KERNEL.md +40 -0
- package/docs/architecture/SAM_RESOURCE_CRUD_STANDARD.md +96 -0
- package/docs/architecture/SAM_SYSTEMATIC_AUTONOMOUS_MACHINERY.md +79 -0
- package/docs/architecture/USER_GLOBAL_AGENT_INSTRUCTIONS.md +55 -0
- package/docs/autorag-workflow.md +13 -0
- package/docs/brand/AGENT_SAM_ICON_GRAMMAR.md +4 -0
- package/docs/contracts/capability-install-planner.md +66 -38
- package/docs/contracts/environment-vocabulary.md +5 -5
- package/docs/engineering/SUPERBASH_LOCAL_RUNTIME.md +100 -0
- package/docs/generated/SDK_CAPABILITY_INVENTORY.md +313 -0
- package/docs/handoffs/AGENT_HANDOFF_SUPERBASH_AND_MODEL_PERFORMANCE_2026-10-14.md +134 -0
- package/docs/intake/product-capabilities.proposed.ts +232 -0
- package/docs/knowledge-supabase-node-api.md +51 -0
- package/docs/plans/MEDIA_TRUTH_SOURCE_RECOVERY_20261008.md +31 -0
- package/docs/plans/OFFLINE_CLI_KNOWLEDGE_AGENT_HANDOFF.md +104 -0
- package/docs/plans/OFFLINE_CLI_KNOWLEDGE_RUNBOOK.md +81 -0
- package/docs/plans/SAM_EXPERIENCE_AGENT_DISPATCH_2026-10-15.md +107 -0
- package/docs/plans/SAM_MACHINERY_TO_EXPERIENCE_2026-10-15.md +172 -0
- package/docs/plans/UI_POLISH_DESKTOP_2026-10-16.md +102 -0
- package/docs/plans/WORK-UX-REMASTER-2026-10-15.md +48 -0
- package/docs/plans/WORK-WORKSPACE-PLAN-2026-10-14.md +212 -0
- package/docs/product/AGENTSAM-UI-QUALITY-GATE.md +148 -0
- package/docs/product/AGENTSAM_PRODUCT_EXPERIENCE_STANDARD.md +2 -0
- package/docs/product/MEDIA-PRODUCTION-FAMILY.md +47 -0
- package/docs/product/OFFER-PORTFOLIO.md +14 -0
- package/docs/product/PACKAGE-TAXONOMY.md +17 -0
- package/docs/product/PLUGIN-GALLERY-DISCOVERY-AND-INSTALL.md +97 -0
- package/docs/product/README.md +2 -0
- package/docs/product/WIDGET-GALLERY-PHASE-ONE.md +43 -0
- package/docs/reference/AGENTSAM-CLI-WORKFLOWS.md +73 -0
- package/docs/reference/AGENTSAM-ERROR-REASONS.md +267 -0
- package/docs/reference/AGENTSAM-REGISTRY.generated.md +288 -0
- package/docs/reference/INNERANIMALMEDIA_EXPERIENCE_ACCEPTANCE_2026-10-15.md +99 -0
- package/docs/releases/cad-v2-sdk-2.6.13.md +25 -0
- package/docs/roadmaps/ROAD_TO_REAL_DISTRIBUTION.md +97 -0
- package/docs/robotics-chess-handoff.md +15 -0
- package/docs/standards/DELIVERY_CLOSURE.md +33 -0
- package/docs/standards/SAM_MACHINE_BUILD_AND_GAPS.md +91 -0
- package/docs/workflows/ISSUE_TO_SAMOS.md +59 -0
- package/package.json +60 -8
- package/packages/agentsam-brand/package.json +1 -1
- package/packages/agentsam-cms/README.md +56 -0
- package/packages/agentsam-cms/agentsam.package.json +46 -0
- package/packages/agentsam-cms/package.json +36 -0
- package/packages/agentsam-cms/src/aliases.js +74 -0
- package/packages/agentsam-cms/src/contracts.js +105 -0
- package/packages/agentsam-cms/src/index.d.ts +80 -0
- package/packages/agentsam-cms/src/index.js +3 -0
- package/packages/agentsam-cms/src/machine.js +221 -0
- package/packages/agentsam-cms/src/node-sqlite-repository.js +148 -0
- package/packages/agentsam-cms/src/node.d.ts +7 -0
- package/packages/agentsam-cms/src/node.js +1 -0
- package/packages/agentsam-cms/src/schema/cms-local-runtime.v1.sql +365 -0
- package/packages/agentsam-cms/test/standalone.test.mjs +28 -0
- package/packages/agentsam-contracts/agentsam.package.json +43 -0
- package/packages/agentsam-contracts/dist/errors.d.ts +1 -1
- package/packages/agentsam-contracts/dist/widgets.d.ts +7 -0
- package/packages/agentsam-contracts/package.json +1 -1
- package/packages/agentsam-contracts/src/errors.ts +1 -1
- package/packages/agentsam-contracts/src/widgets.ts +7 -0
- package/packages/agentsam-desktop-shell/README.md +38 -0
- package/packages/agentsam-desktop-shell/scripts/app-discovery.mjs +43 -0
- package/packages/agentsam-errors/README.md +14 -0
- package/packages/agentsam-errors/agentsam.package.json +43 -0
- package/packages/agentsam-errors/package.json +1 -1
- package/packages/agentsam-errors/protocol/error-catalog.json +12 -0
- package/packages/agentsam-errors/src/cli.js +56 -0
- package/packages/agentsam-errors/src/index.js +2 -0
- package/packages/agentsam-errors/src/vocabulary.js +2 -0
- package/packages/agentsam-errors/test/approval-contract.test.mjs +12 -0
- package/packages/agentsam-errors/types/index.d.ts +5 -1
- package/packages/agentsam-goap/agentsam.package.json +42 -0
- package/packages/agentsam-goap/package.json +2 -2
- package/packages/agentsam-hooks/agentsam.package.json +45 -0
- package/packages/agentsam-hooks/bindings/go/errors_generated.go +1 -0
- package/packages/agentsam-hooks/bindings/rust/src/errors_generated.rs +1 -0
- package/packages/agentsam-hooks/package.json +1 -1
- package/packages/agentsam-hooks/src/errors-generated.js +10 -0
- package/packages/agentsam-ide/README.md +59 -0
- package/packages/agentsam-ide/src/lsp/host.d.mts +13 -0
- package/packages/agentsam-ide/src/lsp/host.mjs +133 -0
- package/packages/agentsam-knowledge/agentsam.package.json +42 -0
- package/packages/agentsam-knowledge/package.json +1 -1
- package/packages/agentsam-knowledge/src/autorag/index.js +25 -4
- package/packages/agentsam-knowledge/src/backends/index.js +21 -1
- package/packages/agentsam-knowledge/src/backends/supabase-node-api.js +91 -0
- package/packages/agentsam-knowledge/test/autorag.test.mjs +13 -0
- package/packages/agentsam-knowledge/test/supabase-node-api.test.mjs +59 -0
- package/packages/agentsam-merch/agentsam.package.json +43 -0
- package/packages/agentsam-merch/package.json +1 -1
- package/packages/agentsam-nav/dist/browser.global.js +18 -21
- package/packages/agentsam-nav/dist/browser.js +4 -3
- package/packages/agentsam-nav/dist/index.js +4 -3
- package/packages/agentsam-nav/package.json +1 -1
- package/packages/agentsam-queue-control/agentsam.package.json +42 -0
- package/packages/agentsam-queue-control/package.json +1 -1
- package/packages/agentsam-rapid-rust/Cargo.toml +5 -0
- package/packages/agentsam-rapid-rust/agentsam.package.json +42 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/0b22ca9c5f8cddc15e6816df4a2467a28d41aa174361cdfed9019ee4e04dfbb8.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/0c5064875a5d7645013880f04d71f56c0dfa1bc87ac9fd59adc3e9a93a2745da.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/11ebd15702c169ee0666656be851cc549f70f84498dbca3c5b72d2ceaa91c851.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/1d7f2c8ad9588cd2077a1d07fce156e0bd47be686d8c9f26885bab14874c4ab5.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/1f21ba21e7b631b0d4893cbdd7a6bb7345d34e8b1a0ee9cf644cc30aeb3c8b8d.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/23f4d4b90def0782de32e7a57558cba24525f12ba3c009728ea4881259a74099.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/26b60985b6ef62e4f20e06c37e47c6996c1a2f457335fa9eb4a68d1288e18490.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/2b27d15a1b8c3637a56f631d583cc9ba584bed2b7018dd962a9340d5e1c50a1d.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/3110a5568a544c4c38de6585dcdabc21fa5f54a5772ecf4e1f4076ee0d49e933.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/357ce3db8299e01866bf4fc3d8ee1c784ef53c7455cf86bb17c52f3dad20d050.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/4516c6e03636538cacc7a6e4063d98a7ed2f0090c3a02c5ee817f1c512b1070e.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/649e02dbaec2edabbd40372e0c5f72f114164fe7704e7825220b1955f6a7c74e.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/81c266d4c150a4f6c5a73c9c4fef6541577fd0acd8c1f911f02781deb5f0be0f.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/86b4b8de30eed9902750b3de9fb54276d229244671a8b6035345bbe705463d82.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/8a877fdc5dbc6a66c344b4ebc4d9b746d47f95153e98872210becd85ca941ddd.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/96a11200f7b42ddd1281e4f749e88dcb8455ab0e3883f943934e0a9a7935147a.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/9e2df2335cfc73ec021bdd6b2d34af798f6ed9c52e3061ce16b6ceabae4e275f.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/a405fe3addeaab2908ed58836997be3b679d990ec9102d06bece3569e4bd4a81.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/a63915da0a45f86a5938ba9a2b2e87d469e7d07f7ea9cc531136fdc9e055557e.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/a8452c2dcaa959ced25e3597931b311999c0aa5b257ca8610fe415e8cfa598cc.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/b35fc2ae65ea07fbbfdd242a3d76489947462399e7a2db91f8545ca50d97d86f.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/b966932defe9c7b5ec9599c9276d333bd09ad1605adae80300d825d2161ad20c.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/ca9060e5ccb91f3a2663f57afd47a25099b6b3313c2a7436c4634993ff6e9afc.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/d0eba82a259be203c68c3ebf6d5b8a376f31a3b84fad418fdb9b5e2715c59869.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/d8838513009c65079aba67314ab130920484c674c5f0b8a356c8777eb6174eb2.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/dda01925b7f0a213215b983979ce23625dd0f6cfdb49c483ec1ff73e64def56f.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/e4956d8f97608f8324607b22cc93635d8183b23021d79cb4c21668c8b8a6ce87.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/e80c1e517e7173dcbde78869d2bf67a24a11b0bb9df5a87fb12934e39497abc8.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/eeeaa9394ac979eb4ffa557e97d67ed96dbd61437e09058f7c776bdc0483f050.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/f9264d8d7d1ccfb415362a28b4a1b4fa0dfbdf828ff970d1aaecfb0ebe208978.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/f957a80b89d32af4f33f9f840b4795af1b5145fc44780ad88a6a3b1b3a7ea3bc.json +1 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_2b0d196f16961f88/asset-manifest.json +418 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_2b0d196f16961f88/findings.json +308 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_2b0d196f16961f88/frontend-manifest.json +70 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_2b0d196f16961f88/graph.json +322 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_2b0d196f16961f88/inventory.json +932 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_2b0d196f16961f88/summary.json +21 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_2d70e3d4fe8290fb/asset-manifest.json +418 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_2d70e3d4fe8290fb/findings.json +308 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_2d70e3d4fe8290fb/frontend-manifest.json +70 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_2d70e3d4fe8290fb/graph.json +322 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_2d70e3d4fe8290fb/inventory.json +932 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_2d70e3d4fe8290fb/summary.json +21 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_63fab76b2f18c2f0/asset-manifest.json +418 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_63fab76b2f18c2f0/findings.json +308 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_63fab76b2f18c2f0/frontend-manifest.json +70 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_63fab76b2f18c2f0/graph.json +322 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_63fab76b2f18c2f0/inventory.json +932 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_63fab76b2f18c2f0/summary.json +21 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_72fe856b80b0c46f/asset-manifest.json +418 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_72fe856b80b0c46f/findings.json +300 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_72fe856b80b0c46f/frontend-manifest.json +70 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_72fe856b80b0c46f/graph.json +322 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_72fe856b80b0c46f/inventory.json +932 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_72fe856b80b0c46f/summary.json +21 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_a5834156504f3050/asset-manifest.json +418 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_a5834156504f3050/findings.json +308 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_a5834156504f3050/frontend-manifest.json +70 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_a5834156504f3050/graph.json +322 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_a5834156504f3050/inventory.json +932 -0
- package/packages/agentsam-repository/.agentsam/machine/runs/run_a5834156504f3050/summary.json +21 -0
- package/packages/agentsam-repository/README.md +25 -0
- package/packages/agentsam-repository/agentsam.package.json +42 -0
- package/packages/agentsam-repository/package.json +6 -3
- package/packages/agentsam-repository/src/crawl.js +220 -0
- package/packages/agentsam-repository/src/index.js +3 -0
- package/packages/agentsam-repository/src/merkle/semantic.js +20 -0
- package/packages/agentsam-repository/src/refinery.js +96 -0
- package/packages/agentsam-repository/test/crawl-refinery.test.mjs +113 -0
- package/packages/agentsam-site-scrape/README.md +357 -0
- package/packages/agentsam-site-scrape/agentsam_site_scrape/__init__.py +4 -0
- package/packages/agentsam-site-scrape/agentsam_site_scrape/__main__.py +349 -0
- package/packages/agentsam-site-scrape/agentsam_site_scrape/classify.py +80 -0
- package/packages/agentsam-site-scrape/agentsam_site_scrape/config.py +83 -0
- package/packages/agentsam-site-scrape/agentsam_site_scrape/contract.py +108 -0
- package/packages/agentsam-site-scrape/agentsam_site_scrape/crawl.py +395 -0
- package/packages/agentsam-site-scrape/agentsam_site_scrape/evidence.py +226 -0
- package/packages/agentsam-site-scrape/agentsam_site_scrape/htmlparse.py +109 -0
- package/packages/agentsam-site-scrape/agentsam_site_scrape/imageops.py +121 -0
- package/packages/agentsam-site-scrape/agentsam_site_scrape/jsonrun.py +127 -0
- package/packages/agentsam-site-scrape/agentsam_site_scrape/net.py +121 -0
- package/packages/agentsam-site-scrape/agentsam_site_scrape/pageextract.py +202 -0
- package/packages/agentsam-site-scrape/agentsam_site_scrape/r2_upload.py +140 -0
- package/packages/agentsam-site-scrape/agentsam_site_scrape/ssrf.py +57 -0
- package/packages/agentsam-site-scrape/agentsam_site_scrape/storage.py +57 -0
- package/packages/agentsam-site-scrape/agentsam_site_scrape/wrangler_bucket.py +98 -0
- package/packages/agentsam-site-scrape/pyproject.toml +21 -0
- package/packages/agentsam-site-scrape/runtime/client.mjs +32 -0
- package/packages/agentsam-site-scrape/runtime/core.mjs +211 -0
- package/packages/agentsam-site-scrape/runtime/index.mjs +31 -0
- package/packages/agentsam-site-scrape/runtime/knowledge.mjs +38 -0
- package/packages/agentsam-site-scrape/runtime/node-runner.mjs +231 -0
- package/packages/agentsam-site-scrape/runtime/node-storage.mjs +146 -0
- package/packages/agentsam-site-scrape/runtime/project-site.mjs +74 -0
- package/packages/agentsam-site-scrape/runtime/secure-fetch.mjs +88 -0
- package/packages/agentsam-site-scrape/runtime/test/knowledge-handoff.test.mjs +51 -0
- package/packages/agentsam-site-scrape/runtime/test/project-index-command.test.mjs +109 -0
- package/packages/agentsam-site-scrape/runtime/test/runtime.test.mjs +145 -0
- package/packages/agentsam-site-scrape/tests/__init__.py +0 -0
- package/packages/agentsam-site-scrape/tests/test_contract.py +83 -0
- package/packages/agentsam-site-scrape/tests/test_core.py +119 -0
- package/packages/agentsam-site-scrape/tests/test_evidence.py +88 -0
- package/packages/agentsam-site-scrape/tests/test_evidence_pipeline.py +112 -0
- package/packages/agentsam-site-scrape/tests/test_jsonrun.py +63 -0
- package/packages/agentsam-site-scrape/tests/test_redirects.py +68 -0
- package/packages/agentsam-site-scrape/tests/test_storage.py +34 -0
- package/packages/agentsam-site-scrape/worker/index.mjs +259 -0
- package/packages/agentsam-site-scrape/worker/project-config.mjs +57 -0
- package/packages/agentsam-site-scrape/worker/test/worker.test.mjs +191 -0
- package/packages/agentsam-vault/package.json +1 -1
- package/packages/agentsam-workbench/README.md +18 -0
- package/packages/agentsam-workbench/package.json +13 -4
- package/packages/agentsam-workbench/src/agent/capability-catalog.ts +96 -0
- package/packages/agentsam-workbench/src/agent/index.ts +2 -0
- package/packages/agentsam-workbench/src/knowledge/AutoRagWorkflowDialog.tsx +166 -0
- package/packages/agentsam-workbench/src/knowledge/README.md +14 -0
- package/packages/agentsam-workbench/src/knowledge/autorag-workflow.css +6 -0
- package/packages/agentsam-workbench/src/knowledge/index.ts +2 -0
- package/packages/agentsam-workbench/src/widgets/registry.ts +266 -1
- package/packages/catalog/README.md +69 -0
- package/packages/catalog/assist/questions.json +205 -0
- package/packages/catalog/assist/rules.json +149 -0
- package/packages/catalog/doctor/toolchains.json +12 -0
- package/packages/catalog/evidence/agentsam-abs.json +76 -0
- package/packages/catalog/evidence/agentsam-analytics.json +59 -0
- package/packages/catalog/evidence/agentsam-assets-core.json +38 -0
- package/packages/catalog/evidence/agentsam-brand.json +73 -0
- package/packages/catalog/evidence/agentsam-browser-surface.json +42 -0
- package/packages/catalog/evidence/agentsam-campaign.json +48 -0
- package/packages/catalog/evidence/agentsam-cloudflare-images.json +38 -0
- package/packages/catalog/evidence/agentsam-content-studio.json +42 -0
- package/packages/catalog/evidence/agentsam-content.json +70 -0
- package/packages/catalog/evidence/agentsam-contracts.json +92 -0
- package/packages/catalog/evidence/agentsam-database-editor.json +82 -0
- package/packages/catalog/evidence/agentsam-desktop-shell.json +56 -0
- package/packages/catalog/evidence/agentsam-docs-theme.json +35 -0
- package/packages/catalog/evidence/agentsam-errors.json +42 -0
- package/packages/catalog/evidence/agentsam-goap.json +52 -0
- package/packages/catalog/evidence/agentsam-hooks.json +100 -0
- package/packages/catalog/evidence/agentsam-ide.json +64 -0
- package/packages/catalog/evidence/agentsam-identity.json +91 -0
- package/packages/catalog/evidence/agentsam-key-manager.json +46 -0
- package/packages/catalog/evidence/agentsam-knowledge.json +42 -0
- package/packages/catalog/evidence/agentsam-loading-scene.json +54 -0
- package/packages/catalog/evidence/agentsam-merch.json +68 -0
- package/packages/catalog/evidence/agentsam-nav.json +63 -0
- package/packages/catalog/evidence/agentsam-queue-control.json +60 -0
- package/packages/catalog/evidence/agentsam-rapid-rust.json +46 -0
- package/packages/catalog/evidence/agentsam-repository.json +56 -0
- package/packages/catalog/evidence/agentsam-scoring.json +39 -0
- package/packages/catalog/evidence/agentsam-sections.json +52 -0
- package/packages/catalog/evidence/agentsam-settings.json +58 -0
- package/packages/catalog/evidence/agentsam-shell-kit.json +56 -0
- package/packages/catalog/evidence/agentsam-vault.json +61 -0
- package/packages/catalog/evidence/agentsam-work-graph.json +51 -0
- package/packages/catalog/evidence/agentsam-work.json +64 -0
- package/packages/catalog/evidence/agentsam-workbench.json +96 -0
- package/packages/catalog/evidence/analytics-ui.json +43 -0
- package/packages/catalog/evidence/cms-runtime.json +49 -0
- package/packages/catalog/evidence/copro-editor.json +42 -0
- package/packages/catalog/evidence/copro-media.json +42 -0
- package/packages/catalog/evidence/copro-project.json +42 -0
- package/packages/catalog/evidence/copro-proof.json +48 -0
- package/packages/catalog/evidence/copro-provider-contracts.json +40 -0
- package/packages/catalog/evidence/copro-render.json +40 -0
- package/packages/catalog/evidence/copro-storage.json +44 -0
- package/packages/catalog/evidence/copro-templates.json +42 -0
- package/packages/catalog/evidence/copro-timeline.json +44 -0
- package/packages/catalog/evidence/copro-ui.json +52 -0
- package/packages/catalog/evidence/fnf-theme.json +34 -0
- package/packages/catalog/evidence/theme-contract.json +34 -0
- package/packages/catalog/evidence/theme-cypress.json +41 -0
- package/packages/catalog/evidence/theme-ember.json +41 -0
- package/packages/catalog/evidence/theme-forge.json +41 -0
- package/packages/catalog/evidence/theme-grove.json +41 -0
- package/packages/catalog/evidence/theme-harbor.json +41 -0
- package/packages/catalog/evidence/theme-heuristic.json +50 -0
- package/packages/catalog/evidence/theme-iasf.json +48 -0
- package/packages/catalog/evidence/theme-resolve.json +41 -0
- package/packages/catalog/evidence/theme-scenes.json +68 -0
- package/packages/catalog/evidence/theme-summit.json +41 -0
- package/packages/catalog/evidence/theme-violet.json +41 -0
- package/packages/catalog/generated/packages.json +2649 -0
- package/packages/catalog/topics/runtime.json +33 -0
- package/packages/connectors/cfoa/agentsam.package.json +46 -0
- package/packages/connectors/cfoa/package.json +1 -1
- package/packages/connectors/cfoa/src/capabilities.js +22 -2
- package/packages/connectors/cfoa/src/families/analytics-sql.js +44 -0
- package/packages/connectors/cfoa/src/families/basin.js +30 -0
- package/packages/connectors/cfoa/src/index.js +3 -0
- package/packages/connectors/cfoa/src/routes.js +11 -2
- package/packages/connectors/cfoa/test/analytics-sql.test.mjs +27 -0
- package/packages/connectors/cfoa/test/basin.test.mjs +30 -0
- package/packages/heuristic-theme/README.md +14 -0
- package/packages/heuristic-theme/agentsam.package.json +42 -0
- package/packages/heuristic-theme/contracts/README.md +15 -0
- package/packages/heuristic-theme/contracts/block.schema.json +33 -0
- package/packages/heuristic-theme/contracts/header-presets.json +20 -0
- package/packages/heuristic-theme/contracts/page.schema.json +18 -0
- package/packages/heuristic-theme/contracts/preset.schema.json +18 -0
- package/packages/heuristic-theme/contracts/section.schema.json +83 -0
- package/packages/heuristic-theme/package.json +13 -3
- package/packages/heuristic-theme/presets/fuel-free-time/assets.json +8 -0
- package/packages/heuristic-theme/presets/fuel-free-time/globals/shell.json +30 -0
- package/packages/heuristic-theme/presets/fuel-free-time/pages/about.json +4 -0
- package/packages/heuristic-theme/presets/fuel-free-time/pages/cart.json +4 -0
- package/packages/heuristic-theme/presets/fuel-free-time/pages/collection.json +4 -0
- package/packages/heuristic-theme/presets/fuel-free-time/pages/collections.json +4 -0
- package/packages/heuristic-theme/presets/fuel-free-time/pages/community.json +4 -0
- package/packages/heuristic-theme/presets/fuel-free-time/pages/home.json +92 -0
- package/packages/heuristic-theme/presets/fuel-free-time/pages/order-confirmation.json +39 -0
- package/packages/heuristic-theme/presets/fuel-free-time/pages/product.json +4 -0
- package/packages/heuristic-theme/presets/fuel-free-time/pages/shop.json +9 -0
- package/packages/heuristic-theme/presets/fuel-free-time/preset.json +23 -0
- package/packages/heuristic-theme/presets/fuel-free-time/tokens.json +23 -0
- package/packages/heuristic-theme/storefront/about.html +1103 -0
- package/packages/heuristic-theme/storefront/assets/presets/fuel-free-time/GENERATED-ASSETS.md +15 -0
- package/packages/heuristic-theme/storefront/assets/presets/fuel-free-time/earned-hours-hero.webp +0 -0
- package/packages/heuristic-theme/storefront/assets/presets/fuel-free-time/essentials.webp +0 -0
- package/packages/heuristic-theme/storefront/assets/presets/fuel-free-time/masters.webp +0 -0
- package/packages/heuristic-theme/storefront/cart.html +64 -0
- package/packages/heuristic-theme/storefront/collaborate.html +58 -0
- package/packages/heuristic-theme/storefront/collection.html +10 -0
- package/packages/heuristic-theme/storefront/collections.html +10 -0
- package/packages/heuristic-theme/storefront/community.html +921 -0
- package/packages/heuristic-theme/storefront/css/content-page.css +199 -0
- package/packages/heuristic-theme/storefront/css/global-footer.css +401 -0
- package/packages/heuristic-theme/storefront/css/heuristic-theme.css +81 -0
- package/packages/heuristic-theme/storefront/css/page-composer.css +76 -0
- package/packages/heuristic-theme/storefront/css/shop-hero.css +230 -0
- package/packages/heuristic-theme/storefront/css/store-cart.css +422 -0
- package/packages/heuristic-theme/storefront/css/store-collections.css +36 -0
- package/packages/heuristic-theme/storefront/css/store-pdp.css +459 -0
- package/packages/heuristic-theme/storefront/css/store-shell.css +474 -0
- package/packages/heuristic-theme/storefront/css/store-shop.css +117 -0
- package/packages/heuristic-theme/storefront/home.html +25 -0
- package/packages/heuristic-theme/storefront/js/cms-hydrate.js +395 -0
- package/packages/heuristic-theme/storefront/js/cms-structure.js +85 -0
- package/packages/heuristic-theme/storefront/js/fnf-attribution.js +98 -0
- package/packages/heuristic-theme/storefront/js/fnf-head.js +47 -0
- package/packages/heuristic-theme/storefront/js/fnf-newsletter.js +64 -0
- package/packages/heuristic-theme/storefront/js/global-footer.js +277 -0
- package/packages/heuristic-theme/storefront/js/heuristic-runtime.js +78 -0
- package/packages/heuristic-theme/storefront/js/order-confirmation.js +109 -0
- package/packages/heuristic-theme/storefront/js/page-composer.js +310 -0
- package/packages/heuristic-theme/storefront/js/shop-hero.js +85 -0
- package/packages/heuristic-theme/storefront/js/store-cart.js +276 -0
- package/packages/heuristic-theme/storefront/js/store-catalog.js +140 -0
- package/packages/heuristic-theme/storefront/js/store-collections.js +45 -0
- package/packages/heuristic-theme/storefront/js/store-product.js +287 -0
- package/packages/heuristic-theme/storefront/js/store-shell.js +449 -0
- package/packages/heuristic-theme/storefront/order-confirmation.html +30 -0
- package/packages/heuristic-theme/storefront/policies.html +43 -0
- package/packages/heuristic-theme/storefront/product.html +27 -0
- package/packages/heuristic-theme/storefront/shop.html +113 -0
- package/packages/heuristic-theme/storefront/terms.html +45 -0
- package/packages/heuristic-theme/test/commerce-portability.test.mjs +16 -0
- package/packages/heuristic-theme/theme.json +55 -0
- package/packages/heuristic-theme/theme.schema.json +32 -0
- package/packages/identity/agentsam.package.json +42 -0
- package/packages/identity/package.json +1 -1
- package/packages/identity/src/oauth/iam-platform.js +4 -2
- package/packages/identity/src/recovery/password-reset.js +8 -8
- package/packages/identity/src/server/worker-router.js +63 -1
- package/packages/identity/tests/lane1-packed-consumer.test.mjs +12 -1
- package/packages/identity/tests/password-enrollment.test.mjs +82 -0
- package/packages/identity/tests/password-reset.test.mjs +43 -0
- package/packages/providers/completeful/package.json +1 -1
- package/packages/theme-cypress/agentsam.package.json +42 -0
- package/packages/theme-cypress/package.json +1 -1
- package/packages/theme-ember/agentsam.package.json +42 -0
- package/packages/theme-ember/package.json +1 -1
- package/packages/theme-forge/agentsam.package.json +42 -0
- package/packages/theme-forge/package.json +1 -1
- package/packages/theme-grove/agentsam.package.json +42 -0
- package/packages/theme-grove/package.json +1 -1
- package/packages/theme-harbor/agentsam.package.json +42 -0
- package/packages/theme-harbor/package.json +1 -1
- package/packages/theme-resolve/agentsam.package.json +42 -0
- package/packages/theme-resolve/package.json +1 -1
- package/packages/theme-scenes/agentsam.package.json +42 -0
- package/packages/theme-scenes/package.json +1 -1
- package/packages/theme-summit/agentsam.package.json +42 -0
- package/packages/theme-summit/package.json +1 -1
- package/packages/theme-violet/agentsam.package.json +42 -0
- package/packages/theme-violet/package.json +1 -1
- package/packages/work-graph/agentsam.package.json +42 -0
- package/packages/work-graph/package.json +1 -1
- package/protocol/apps/agentsam.app.v1.schema.json +27 -1
- package/protocol/cad/README.md +77 -0
- package/protocol/cad/cad.project.v2.schema.json +451 -0
- package/protocol/cad/v2/core/artifact-receipt.schema.json +126 -0
- package/protocol/cad/v2/core/coordinate-system.schema.json +364 -0
- package/protocol/cad/v2/core/geometry-constraint.schema.json +136 -0
- package/protocol/cad/v2/core/geometry-entity.schema.json +73 -0
- package/protocol/cad/v2/core/geometry-feature.schema.json +115 -0
- package/protocol/cad/v2/core/geometry-relationship.schema.json +67 -0
- package/protocol/cad/v2/core/project-revision.schema.json +111 -0
- package/protocol/cad/v2/core/topology-reference.schema.json +80 -0
- package/protocol/cad/v2/intent/design-decision.schema.json +126 -0
- package/protocol/cad/v2/intent/design-option.schema.json +88 -0
- package/protocol/cad/v2/interchange/ifc-mapping.schema.json +145 -0
- package/protocol/cad/v2/interchange/native-document.schema.json +130 -0
- package/protocol/cad/v2/interchange/reference-model.schema.json +141 -0
- package/protocol/cad/v2/modules/architecture.v1.schema.json +278 -0
- package/protocol/cad/v2/modules/landscape.v1.schema.json +157 -0
- package/protocol/cad/v2/modules/mechanical.v1.schema.json +325 -0
- package/protocol/cad/v2/modules/parametric.v1.schema.json +89 -0
- package/protocol/cad/v2/modules/product-design.v1.schema.json +178 -0
- package/protocol/cad/v2/modules/robotics.v1.schema.json +246 -0
- package/protocol/cad/v2/presentation/camera-path.schema.json +143 -0
- package/protocol/cad/v2/presentation/drawing.schema.json +162 -0
- package/protocol/cad/v2/presentation/production.schema.json +166 -0
- package/protocol/cad/v2/presentation/scene.schema.json +198 -0
- package/protocol/cad/v2/presentation/sheet.schema.json +254 -0
- package/protocol/cad/v2/presentation/view.schema.json +190 -0
- package/protocol/cad/v2/presentation/walkthrough.schema.json +199 -0
- package/protocol/cad/v2/schema-pack.manifest.json +189 -0
- package/protocol/cad/v2/validation/deliverable-manifest.schema.json +199 -0
- package/protocol/cad/v2/validation/result.schema.json +141 -0
- package/protocol/capabilities/evidence-manifest.schema.json +404 -0
- package/protocol/capabilities/manifest.json +101 -10
- package/protocol/capabilities/repository-crawl-input.schema.json +17 -0
- package/protocol/capabilities/repository-crawl-result.schema.json +79 -0
- package/protocol/capabilities/repository-mine-input.schema.json +27 -0
- package/protocol/capabilities/repository-mine-result.schema.json +51 -0
- package/protocol/capabilities/site-index.schema.json +15 -0
- package/protocol/capabilities/site-scrape-evidence-manifest.schema.json +114 -0
- package/protocol/capabilities/site-scrape-input.schema.json +90 -0
- package/protocol/capabilities/site-scrape-project-authority.schema.json +15 -0
- package/protocol/capabilities/site-scrape-result.schema.json +198 -0
- package/protocol/capabilities/site-scrape-worker-job.schema.json +18 -0
- package/protocol/errors/error-catalog.json +12 -0
- package/protocol/governance/distribution-roadmap.v1.json +335 -0
- package/protocol/governance/github-labels.v1.json +232 -0
- package/protocol/models/workers-ai-curated.mjs +14 -0
- package/protocol/plugins/agentsam.plugin-evidence-bundle.v1.schema.json +55 -0
- package/protocol/plugins/agentsam.plugin-product.v1.schema.json +227 -0
- package/protocol/plugins/agentsam.plugin-quality-evidence.v1.schema.json +47 -0
- package/protocol/plugins/agentsam.plugin-quality-receipt.v1.schema.json +160 -0
- package/protocol/ui/agentsam.ui-quality.v1.schema.json +31 -0
- package/python/agentsam_sdk/__init__.py +4 -0
- package/python/agentsam_sdk/client.py +202 -0
- package/python/agentsam_sdk/errors/vocabulary.py +10 -0
- package/python/tests/test_public_client.py +82 -0
- package/services/cad/blender/adapter.py +0 -0
- package/services/cad/occt/CMakeLists.txt +43 -0
- package/services/cad/occt/README.md +38 -0
- package/services/cad/occt/main.cpp +95 -0
- package/services/cad/server.py +103 -21
- package/skills/README.md +6 -0
- package/skills/agentsam-cad/SKILL.md +59 -0
- package/skills/agentsam-plan-and-goap/SKILL.md +77 -0
- package/skills/agentsam-repo-recon/SKILL.md +63 -0
- package/skills/agentsam-sam-operations/SKILL.md +71 -0
- package/skills/agentsam-sdk-orientation/SKILL.md +75 -0
- package/skills/catalog.json +85 -0
- package/src/AgentSam.js +2 -0
- package/src/agent/capability-adapter.js +207 -9
- package/src/agent/index.js +1 -0
- package/src/agent/intent.js +12 -0
- package/src/agent/project-discovery.js +47 -0
- package/src/agent/project-resources.js +157 -0
- package/src/agent/responses-runner.js +64 -12
- package/src/capabilities/cloudflare-d1-provision.js +48 -0
- package/src/capabilities/knowledge-operations.js +87 -0
- package/src/capabilities/local-sqlite-resources.js +124 -0
- package/src/capabilities/machine-inspect.js +28 -0
- package/src/capabilities/mcp-d1-bridge.js +98 -0
- package/src/capabilities/plan-operation-ids.js +6 -0
- package/src/capabilities/plan-operations.js +85 -0
- package/src/capabilities/repository-awareness.js +52 -0
- package/src/capabilities/test-run.js +10 -0
- package/src/capabilities/workspace-files.js +125 -0
- package/src/cli/command-catalog.js +16 -3
- package/src/cli.js +71 -116
- package/src/commands/app.js +43 -44
- package/src/commands/autorag-node-api.js +96 -0
- package/src/commands/autorag.js +178 -17
- package/src/commands/catalog-doctor.js +52 -0
- package/src/commands/catalog.js +151 -0
- package/src/commands/cheat-sheet.js +92 -63
- package/src/commands/cloudflare.js +64 -2
- package/src/commands/codebaseindex.js +2 -2
- package/src/commands/db.js +17 -0
- package/src/commands/goap-world.js +4 -0
- package/src/commands/interactive.js +21 -1
- package/src/commands/knowledge.js +8 -3
- package/src/commands/machine-binary.js +3 -2
- package/src/commands/machine.js +66 -15
- package/src/commands/mcp.js +98 -8
- package/src/commands/plan-ledger.js +60 -22
- package/src/commands/plan.js +3 -3
- package/src/commands/plugins.js +34 -2
- package/src/commands/product.js +21 -0
- package/src/commands/rust.js +4 -1
- package/src/commands/sam-evidence.js +87 -0
- package/src/commands/sam-media.js +78 -0
- package/src/commands/sam.js +117 -0
- package/src/commands/shell.js +97 -8
- package/src/commands/site-scrape.js +9 -0
- package/src/context/resolve.js +5 -1
- package/src/index.js +13 -0
- package/src/knowledge/d1-schema.js +65 -0
- package/src/knowledge/engine.js +55 -15
- package/src/knowledge/source.js +8 -0
- package/src/knowledge/store-discovery.js +9 -3
- package/src/knowledge/stores/sqlite.js +8 -0
- package/src/knowledge/wrangler-binding-discovery.js +43 -0
- package/src/lib/agent-instructions.js +29 -5
- package/src/lib/auth.js +46 -7
- package/src/lib/cad/delivery-profiles.d.ts +7 -0
- package/src/lib/cad/delivery-profiles.js +122 -0
- package/src/lib/cad/docker-executor.js +1 -1
- package/src/lib/cad/editable-project-contract.js +75 -0
- package/src/lib/cad/index.js +6 -0
- package/src/lib/cad/occt-native-provider.mjs +138 -0
- package/src/lib/cad/openscad.js +13 -1
- package/src/lib/cad/production-operations.d.ts +8 -0
- package/src/lib/cad/production-operations.js +74 -0
- package/src/lib/cad/project-cli.d.ts +1 -1
- package/src/lib/cad/project-contract.js +1 -1
- package/src/lib/cad/project-runtime.d.ts +1 -1
- package/src/lib/cad/project-runtime.js +48 -3
- package/src/lib/cad/project-tools.js +24 -0
- package/src/lib/cad/project-v2.d.ts +48 -0
- package/src/lib/cad/project-v2.js +288 -0
- package/src/lib/cad-docker.js +48 -4
- package/src/lib/dockerize.js +3 -3
- package/src/lib/execution-approvals.js +29 -3
- package/src/local-fs/capability.js +5 -0
- package/src/local-lsp/host.js +2 -0
- package/src/local-pty/server.js +21 -0
- package/src/mcp/client.js +2 -1
- package/src/mcp/oauth-connection.js +109 -0
- package/src/models/inventory-core.js +2 -10
- package/src/plugins/index.js +13 -0
- package/src/plugins/productization.js +348 -0
- package/src/providers/gemini-generate-content.js +18 -0
- package/src/registry/generated/inventory.json +4266 -0
- package/src/registry/index.js +96 -0
- package/src/registry/turn-one.js +45 -0
- package/src/sam/adapters/local-media-store.js +71 -0
- package/src/sam/adapters/local-script-runtime.js +122 -0
- package/src/sam/adapters/local-script-store.js +103 -0
- package/src/sam/adapters/object-media-store.js +89 -0
- package/src/sam/adapters/workspace-media.js +78 -0
- package/src/sam/artifacts/render.js +94 -0
- package/src/sam/bridge/stdio.mjs +59 -0
- package/src/sam/client.js +269 -22
- package/src/sam/index.js +30 -1
- package/src/sam/local-execution.js +8 -0
- package/src/sam/media/environment.js +96 -0
- package/src/sam/model-adapter.js +45 -0
- package/src/sam/operation-packs/generated-v2/background.js +54 -0
- package/src/sam/operation-packs/generated-v2/catalog.js +1746 -0
- package/src/sam/operation-packs/generated-v2/generated-execution-policies.json +401 -0
- package/src/sam/operation-packs/generated-v2/generated-tool-descriptors.json +1352 -0
- package/src/sam/operation-packs/generated-v2/glb.js +41 -0
- package/src/sam/operation-packs/generated-v2/inneranimalmedia-provider.js +24 -0
- package/src/sam/operation-packs/generated-v2/operation-pack.js +126 -0
- package/src/sam/operation-packs/generated-v2/raster.js +140 -0
- package/src/sam/operation-packs/generated-v2/scripts.js +63 -0
- package/src/sam/operation-packs/generated-v2/sdk-adapter.js +9 -0
- package/src/sam/operation-packs/generated-v2/test/alias-runtime.test.mjs +51 -0
- package/src/sam/operation-packs/generated-v2/test/background.test.mjs +19 -0
- package/src/sam/operation-packs/generated-v2/test/glb.test.mjs +19 -0
- package/src/sam/operation-packs/generated-v2/test/raster.test.mjs +38 -0
- package/src/sam/operation-packs/generated-v2/test/real-asset-bindings.test.mjs +74 -0
- package/src/sam/operation-packs/generated-v2/test/registration.test.mjs +65 -0
- package/src/sam/operation-packs/generated-v2/test/scripts.test.mjs +32 -0
- package/src/sam/operation-packs/generated-v2/test/superbash-client-integration.test.mjs +215 -0
- package/src/sam/operation-packs/generated-v2/tool-types.d.ts +53 -0
- package/src/sam/operations/artifact-render.js +13 -0
- package/src/sam/operations/repository-inspect.js +12 -2
- package/src/sam/operations/robotics.js +45 -0
- package/src/sam/os.js +117 -0
- package/src/sam/packs/authoring/README.md +13 -0
- package/src/sam/packs/authoring/index.js +108 -0
- package/src/sam/packs/cad/http-ports.js +55 -0
- package/src/sam/packs/cad/index.js +158 -0
- package/src/sam/packs/cad/model-tools.js +22 -0
- package/src/sam/packs/cad/modes.js +87 -0
- package/src/sam/packs/cms/aliases.js +1 -0
- package/src/sam/packs/cms/contracts.js +1 -0
- package/src/sam/packs/cms/machine.js +6 -0
- package/src/sam/packs/cms/node.js +1 -0
- package/src/sam/packs/core.js +27 -0
- package/src/sam/packs/evidence/README.md +65 -0
- package/src/sam/packs/evidence/compare.js +98 -0
- package/src/sam/packs/evidence/contract.js +56 -0
- package/src/sam/packs/evidence/derive.js +59 -0
- package/src/sam/packs/evidence/driver-blender.js +96 -0
- package/src/sam/packs/evidence/driver-playwright.js +91 -0
- package/src/sam/packs/evidence/exporter-copro.js +70 -0
- package/src/sam/packs/evidence/facts.js +37 -0
- package/src/sam/packs/evidence/host-local.js +74 -0
- package/src/sam/packs/evidence/index.js +494 -0
- package/src/sam/packs/evidence/media.js +44 -0
- package/src/sam/packs/evidence/naming.js +67 -0
- package/src/sam/packs/evidence/normalize.js +117 -0
- package/src/sam/packs/evidence/review-page.js +102 -0
- package/src/sam/packs/evidence/screenplay.js +34 -0
- package/src/sam/packs/evidence/seal.js +55 -0
- package/src/sam/packs/evidence/serve.js +74 -0
- package/src/sam/packs/evidence/store.js +93 -0
- package/src/sam/packs/evidence/viewports.js +23 -0
- package/src/sam/robotics/chess-adapter.js +14 -0
- package/src/sam/robotics/franka.js +44 -0
- package/src/sam/robotics/index.js +4 -0
- package/src/sam/robotics/receipt.js +21 -0
- package/src/sam/robotics/world.js +57 -0
- package/src/sam/seed.js +10 -40
- package/src/sam/shell-host.js +120 -0
- package/src/sam/validation.js +40 -0
- package/src/security/local-vault.js +6 -1
- package/src/ui/cli/help.js +6 -0
- package/templates/clay/clay-blueprint-template.html +481 -0
- package/templates/clay/clay-case-study-blueprint.html +269 -0
- package/templates/clay/conversion-showcase-section.html +534 -0
- package/templates/clay/enhancing-conversion-section.html +141 -0
- package/templates/clay/nuant-wireframe.html +117 -0
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import test from 'node:test';
|
|
2
|
+
import assert from 'node:assert/strict';
|
|
3
|
+
import {createSiteScrapeWorker,workerFetchAdapter} from '../index.mjs';
|
|
4
|
+
|
|
5
|
+
class MemoryR2 {
|
|
6
|
+
constructor(){this.data=new Map();this.puts=[];this.failOn=null;}
|
|
7
|
+
async put(key,content){
|
|
8
|
+
if(this.failOn&&key.includes(this.failOn))throw Error('R2 simulated transient failure');
|
|
9
|
+
const bytes=Buffer.isBuffer(content)?content:Buffer.from(content);
|
|
10
|
+
this.data.set(key,bytes);this.puts.push(key);
|
|
11
|
+
return {key};
|
|
12
|
+
}
|
|
13
|
+
async get(key){const bytes=this.data.get(key);return bytes?{text:async()=>bytes.toString(),arrayBuffer:async()=>Uint8Array.from(bytes).buffer,body:bytes}:null;}
|
|
14
|
+
async head(key){return this.data.has(key)?{key}:null;}
|
|
15
|
+
}
|
|
16
|
+
const html='<html><head><title>Welcome</title></head><body><h1>Hi</h1><img src="/hero.png"/><a href="/about">About</a></body></html>';
|
|
17
|
+
const publicFetch=async url=>{
|
|
18
|
+
const u=new URL(url);
|
|
19
|
+
if(u.pathname==='/robots.txt')return new Response('User-agent: *\nDisallow: /private',{headers:{'content-type':'text/plain'}});
|
|
20
|
+
if(u.pathname==='/hero.png')return new Response(new Uint8Array([137,80,78,71]),{headers:{'content-type':'image/png'}});
|
|
21
|
+
if(u.pathname==='/about')return new Response('<title>About</title><p>Test</p>',{headers:{'content-type':'text/html'}});
|
|
22
|
+
if(u.pathname==='/')return new Response(html,{headers:{'content-type':'text/html'}});
|
|
23
|
+
return new Response('missing',{status:404,headers:{'content-type':'text/html'}});
|
|
24
|
+
};
|
|
25
|
+
function harness({authorized=true,allowOrigin='https://example.com',cms=false}={}){
|
|
26
|
+
const bucket=new MemoryR2(),jobs=[],seenPromotion=[];
|
|
27
|
+
const env={CRAWL_EVIDENCE:bucket,CRAWL_JOBS:{send:async body=>{jobs.push(body);}},
|
|
28
|
+
AUTHORIZER:{fetch:async req=>{
|
|
29
|
+
assert.match(req.url,/\/site-scrape\/authorize$/);
|
|
30
|
+
if(!authorized||req.headers.get('authorization')!=='Bearer test-authority')return Response.json({ok:false},{status:403});
|
|
31
|
+
return Response.json({ok:true,account_id:'au_customer1234',project_id:'proj_website123',allowed_origins:[allowOrigin]});
|
|
32
|
+
}},
|
|
33
|
+
...(cms?{CMS_PROMOTER:{fetch:async request=>{
|
|
34
|
+
const args=await request.json();seenPromotion.push(args);
|
|
35
|
+
return Response.json({ok:true,project_id:args.project_id,receipt_id:'cms_review_001'});
|
|
36
|
+
}}}:{})
|
|
37
|
+
};
|
|
38
|
+
const worker=createSiteScrapeWorker({fetchExternal:publicFetch});
|
|
39
|
+
const api=(route,method='GET',body,authorizedHeader=true)=>worker.fetch(new Request('https://project-worker.example'+route,{
|
|
40
|
+
method,headers:{...(authorizedHeader?{authorization:'Bearer test-authority'}:{}),...(body?{'content-type':'application/json'}:{})},
|
|
41
|
+
...(body?{body:JSON.stringify(body)}:{})}),env);
|
|
42
|
+
return {bucket,env,jobs,api,worker,seenPromotion};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
test('unconfigured or denied authority fails closed before queue',async()=>{
|
|
46
|
+
const x=harness({authorized:false});
|
|
47
|
+
assert.equal((await x.api('/v1/crawls','POST',{url:'https://example.com/'})).status,403);
|
|
48
|
+
assert.equal(x.jobs.length,0);
|
|
49
|
+
delete x.env.AUTHORIZER;
|
|
50
|
+
assert.equal((await x.api('/v1/crawls','POST',{url:'https://example.com/'})).status,503);
|
|
51
|
+
assert.equal(x.jobs.length,0);
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
test('request site is authorizer-scoped, no arbitrary project/publisher bucket',async()=>{
|
|
55
|
+
const x=harness({allowOrigin:'https://other-example.com'});
|
|
56
|
+
assert.equal((await x.api('/v1/crawls','POST',{url:'https://example.com/',project_id:'proj_evil'})).status,403);
|
|
57
|
+
assert.equal((await x.api('/v1/crawls','POST',{url:'http://127.0.0.1/private'})).status,400);
|
|
58
|
+
assert.equal(x.jobs.length,0);
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
test('end-to-end project-authorized request → queue → R2 → index + status + CMS review',async()=>{
|
|
62
|
+
const x=harness({cms:true});
|
|
63
|
+
const submission=await x.api('/v1/crawls','POST',{url:'https://example.com/',max_pages:2,capture_assets:true,project_id:'proj_evil'});
|
|
64
|
+
assert.equal(submission.status,202);
|
|
65
|
+
const {run_id}=await submission.json();
|
|
66
|
+
assert.match(run_id,/^scrp_[0-9a-f]{24}$/);
|
|
67
|
+
assert.equal(x.jobs.length,1);
|
|
68
|
+
assert.equal(x.jobs[0].project_id,'proj_website123');
|
|
69
|
+
const statusPath='/v1/crawls/'+run_id;
|
|
70
|
+
assert.equal((await (await x.api(statusPath)).json()).status,'queued');
|
|
71
|
+
const ack=[];
|
|
72
|
+
await x.worker.queue({messages:[{body:x.jobs[0],ack:()=>ack.push('ack'),retry:()=>ack.push('retry')}]},x.env);
|
|
73
|
+
assert.deepEqual(ack,['ack']);
|
|
74
|
+
const status=await (await x.api(statusPath)).json();
|
|
75
|
+
assert.equal(status.status,'completed');
|
|
76
|
+
assert.equal(status.counts.pages_fetched,2);
|
|
77
|
+
assert.equal(status.counts.images_fetched,1);
|
|
78
|
+
const indexResponse=await x.api(statusPath+'/index');
|
|
79
|
+
assert.equal(indexResponse.status,200);
|
|
80
|
+
const index=await indexResponse.json();
|
|
81
|
+
assert.equal(index.schema,'agentsam.site.index.v1');
|
|
82
|
+
assert.equal(index.counts.pages,2);
|
|
83
|
+
assert.equal(index.counts.assets,1);
|
|
84
|
+
assert.ok(index.counts.edges>=1);
|
|
85
|
+
const prefix=`v1/accounts/au_customer1234/projects/proj_website123/runs/${run_id}`;
|
|
86
|
+
const manifest=JSON.parse((await x.bucket.get(prefix+'/manifest.json')).body.toString());
|
|
87
|
+
assert.ok(manifest.objects.some(e=>e.kind==='page'));
|
|
88
|
+
assert.ok(manifest.objects.some(e=>e.kind==='image'));
|
|
89
|
+
assert.equal(x.bucket.puts.findLastIndex(k=>k===prefix+'/manifest.json'), x.bucket.puts.length-2);
|
|
90
|
+
const key=manifest.objects.find(e=>e.kind==='image').key;
|
|
91
|
+
assert.equal((await x.api(statusPath+'/promote','POST',{asset_keys:['assets/not-in-run']})).status,403);
|
|
92
|
+
const promotion=await x.api(statusPath+'/promote','POST',{asset_keys:[key]});
|
|
93
|
+
assert.equal(promotion.status,202);
|
|
94
|
+
assert.equal((await promotion.json()).receipt.receipt_id,'cms_review_001');
|
|
95
|
+
assert.equal(x.seenPromotion[0].review_required,true);
|
|
96
|
+
assert.deepEqual(x.seenPromotion[0].asset_keys,[key]);
|
|
97
|
+
assert.equal(x.seenPromotion[0].project_id,'proj_website123');
|
|
98
|
+
const second=[];
|
|
99
|
+
await x.worker.queue({messages:[{body:x.jobs[0],ack:()=>second.push('ack'),retry:()=>second.push('retry')}]},x.env);
|
|
100
|
+
assert.deepEqual(second,['ack']);
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
test('missing CMS adapter rejects promotion, no fake publication success',async()=>{
|
|
104
|
+
const x=harness();
|
|
105
|
+
const r=await x.api('/v1/crawls/scrp_'+'a'.repeat(24)+'/promote','POST',{asset_keys:['assets/anything']});
|
|
106
|
+
assert.equal(r.status,503);
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
test('R2 object failure causes queue retry; no completion marker',async()=>{
|
|
110
|
+
const x=harness();
|
|
111
|
+
const response=await x.api('/v1/crawls','POST',{url:'https://example.com/',max_pages:1});
|
|
112
|
+
const {run_id}=await response.json();
|
|
113
|
+
x.bucket.failOn='/index.json';
|
|
114
|
+
const events=[];
|
|
115
|
+
await x.worker.queue({messages:[{body:x.jobs[0],ack:()=>events.push('ack'),retry:()=>events.push('retry')}]},x.env);
|
|
116
|
+
assert.deepEqual(events,['retry']);
|
|
117
|
+
const prefix=`v1/accounts/au_customer1234/projects/proj_website123/runs/${run_id}`;
|
|
118
|
+
assert.equal(await x.bucket.head(prefix+'/manifest.json'),null);
|
|
119
|
+
assert.equal((await (await x.api('/v1/crawls/'+run_id)).json()).status,'retrying');
|
|
120
|
+
x.bucket.failOn=null;
|
|
121
|
+
const retry=[];
|
|
122
|
+
await x.worker.queue({messages:[{body:x.jobs[0],ack:()=>retry.push('ack'),retry:()=>retry.push('retry')}]},x.env);
|
|
123
|
+
assert.deepEqual(retry,['ack']);
|
|
124
|
+
assert.ok(await x.bucket.head(prefix+'/manifest.json'));
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
test('Worker fetch adapter enforces same-origin and body size before crawl',async()=>{
|
|
128
|
+
const redirect=workerFetchAdapter('https://example.com/',async()=>new Response(null,{status:302,headers:{location:'http://127.0.0.1/private'}}),{minDelayMs:0});
|
|
129
|
+
await assert.rejects(redirect('https://example.com/'),/public DNS hostname/);
|
|
130
|
+
const over=workerFetchAdapter('https://example.com/',async()=>new Response('more than 3 characters',{headers:{'content-type':'text/html'}}),{minDelayMs:0});
|
|
131
|
+
await assert.rejects(over('https://example.com/',{maxBytes:3}),/body_limit_exceeded/);
|
|
132
|
+
});
|
|
133
|
+
|
|
134
|
+
test('project config generator resolves chosen user bucket; no shared defaults or overwrites',async()=>{
|
|
135
|
+
const {projectWorkerPlan,writeProjectWorker}=await import('../project-config.mjs');
|
|
136
|
+
const fs=await import('node:fs');
|
|
137
|
+
const os=await import('node:os');
|
|
138
|
+
const path=await import('node:path');
|
|
139
|
+
const root=fs.mkdtempSync(path.join(os.tmpdir(),'agentsam-site-customer-'));
|
|
140
|
+
try {
|
|
141
|
+
assert.throws(()=>projectWorkerPlan(root,{queueName:'my-crawls',authorityService:'project-iam'}),/project must select/);
|
|
142
|
+
const a=projectWorkerPlan(root,{bucket:'user1234-private-scrapes',queueName:'user1234-queue',authorityService:'user1234-auth',cmsService:'user1234-cms'});
|
|
143
|
+
assert.equal(a.bucket,'user1234-private-scrapes');
|
|
144
|
+
assert.equal(a.wrangler.r2_buckets[0].bucket_name,'user1234-private-scrapes');
|
|
145
|
+
assert.equal(a.wrangler.queues.consumers[0].max_batch_size,1);
|
|
146
|
+
assert.equal(a.wrangler.workers_dev,false);
|
|
147
|
+
assert.equal(a.wrangler.services[0].service,'user1234-auth');
|
|
148
|
+
const saved=writeProjectWorker(root,{bucket:'user1234-private-scrapes',queueName:'user1234-queue',authorityService:'user1234-auth'});
|
|
149
|
+
assert.ok(fs.existsSync(saved.worker_path));
|
|
150
|
+
assert.match(fs.readFileSync(saved.worker_path,'utf8'),/@inneranimalmedia\/agentsam-sdk\/site-scrape\/worker/);
|
|
151
|
+
assert.throws(()=>writeProjectWorker(root,{bucket:'user1234-private-scrapes',queueName:'user1234-queue',authorityService:'user1234-auth'}),/refusing overwrite/);
|
|
152
|
+
}finally{fs.rmSync(root,{recursive:true,force:true});}
|
|
153
|
+
});
|
|
154
|
+
|
|
155
|
+
test('project-owned SDK client submits and reads without platform credentials or fixed endpoint',async()=>{
|
|
156
|
+
const {createSiteScrapeClient}=await import('../../runtime/client.mjs');
|
|
157
|
+
const x=harness({cms:true});
|
|
158
|
+
const client=createSiteScrapeClient({baseUrl:'https://project-worker.example/',
|
|
159
|
+
authorize:()=> 'Bearer test-authority',
|
|
160
|
+
fetchImpl:request=>x.worker.fetch(request,x.env)});
|
|
161
|
+
const result=await client.submit({url:'https://example.com/',maxPages:1});
|
|
162
|
+
assert.equal(result.status,'queued');
|
|
163
|
+
const queued=await client.status(result.run_id);
|
|
164
|
+
assert.equal(queued.status,'queued');
|
|
165
|
+
await x.worker.queue({messages:[{body:x.jobs[0],ack:()=>{},retry:()=>{throw Error('unexpected retry');}}]},x.env);
|
|
166
|
+
const current=await client.status(result.run_id);
|
|
167
|
+
assert.equal(current.status,'completed');
|
|
168
|
+
assert.equal((await client.index(result.run_id)).schema,'agentsam.site.index.v1');
|
|
169
|
+
assert.equal(x.jobs[0].account_id,'au_customer1234');
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
test('client rejects absent host authorization rather than inheriting SDK identity',async()=>{
|
|
173
|
+
const {createSiteScrapeClient}=await import('../../runtime/client.mjs');
|
|
174
|
+
const client=createSiteScrapeClient({baseUrl:'https://project-worker.example',authorize:()=>null,
|
|
175
|
+
fetchImpl:()=>{throw Error('should not access transport');}});
|
|
176
|
+
await assert.rejects(client.submit({url:'https://example.com/'}),/missing authorized project session/);
|
|
177
|
+
});
|
|
178
|
+
|
|
179
|
+
test('Queue worker rejects a forged or altered job not backed by a project-authorized request',async()=>{
|
|
180
|
+
const x=harness();const forged={schema_version:1,run_id:'scrp_'+'f'.repeat(24),account_id:'au_customer1234',
|
|
181
|
+
project_id:'proj_website123',url:'https://example.com/',max_pages:1,capture_assets:false};
|
|
182
|
+
const events=[];
|
|
183
|
+
await x.worker.queue({messages:[{body:forged,ack:()=>events.push('ack'),retry:()=>events.push('retry')}]},x.env);
|
|
184
|
+
assert.deepEqual(events,['retry']);
|
|
185
|
+
const result=await x.api('/v1/crawls','POST',{url:'https://example.com/',max_pages:1});
|
|
186
|
+
assert.equal(result.status,202);
|
|
187
|
+
const job={...x.jobs[0],url:'https://example.com/unapproved-path'};
|
|
188
|
+
const changed=[];
|
|
189
|
+
await x.worker.queue({messages:[{body:job,ack:()=>changed.push('ack'),retry:()=>changed.push('retry')}]},x.env);
|
|
190
|
+
assert.deepEqual(changed,['retry']);
|
|
191
|
+
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inneranimalmedia/agentsam-vault",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "AgentSam credential vault core — contracts, AES-GCM crypto, provider registry, resolver. UI lives in agentsam-key-manager.",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -65,3 +65,21 @@ the widget tokens inherit the host theme.
|
|
|
65
65
|
Widgets are app-native primitives, not installable prebuilds — the host decides
|
|
66
66
|
where a widget appears and what its data means. Local Studio's `/widgets`
|
|
67
67
|
utilities surface is the proof consumer.
|
|
68
|
+
|
|
69
|
+
## Capability catalog projection
|
|
70
|
+
|
|
71
|
+
`@inneranimalmedia/agentsam-workbench/capabilities` is a CSS-free, React-free
|
|
72
|
+
projection contract for `ComposerCatalogEntry[]`. It does **not** register tools
|
|
73
|
+
or create connection state. Hosts supply authenticated plugin, OAuth and MCP
|
|
74
|
+
records plus actual mounted widget/skill/agent/command descriptors.
|
|
75
|
+
|
|
76
|
+
`projectComposerCatalog({ plugins, connections, widgets, skills, agents, commands })`
|
|
77
|
+
groups existing entries for both `@` mentions and `+` menus. `filterComposerCatalog`
|
|
78
|
+
supports live queries such as `@cl`. `action.type` distinguishes requesting
|
|
79
|
+
context (`mention`), focusing a host-owned stage (`open-side-stage`) and
|
|
80
|
+
launching the host's connection setup (`setup`). A ready mention does **not**
|
|
81
|
+
grant the runtime tool execution permission; the server still authorizes it.
|
|
82
|
+
|
|
83
|
+
Do not use fixture catalogs, synthetic MCP servers, model/BYOK keys or local
|
|
84
|
+
Settings-only overlays as proof that a runnable tool is installed. Hosts that
|
|
85
|
+
cannot discover a provider must omit it or display a non-ready setup item.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inneranimalmedia/agentsam-workbench",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.13",
|
|
4
4
|
"description": "Reusable AgentSam workbench primitives for agent threads, composer, browser, terminal and resizable work surfaces.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
"types": "./dist/index.d.ts",
|
|
10
10
|
"import": "./dist/index.js"
|
|
11
11
|
},
|
|
12
|
+
"./capabilities": {
|
|
13
|
+
"types": "./dist/agent/capability-catalog.d.ts",
|
|
14
|
+
"import": "./dist/agent/capability-catalog.js"
|
|
15
|
+
},
|
|
12
16
|
"./agent": {
|
|
13
17
|
"types": "./dist/agent/index.d.ts",
|
|
14
18
|
"import": "./dist/agent/index.js"
|
|
@@ -45,7 +49,12 @@
|
|
|
45
49
|
"types": "./dist/widgets/index.d.ts",
|
|
46
50
|
"import": "./dist/widgets/index.js"
|
|
47
51
|
},
|
|
48
|
-
"./widgets/widgets.css": "./dist/widgets/widgets.css"
|
|
52
|
+
"./widgets/widgets.css": "./dist/widgets/widgets.css",
|
|
53
|
+
"./knowledge": {
|
|
54
|
+
"types": "./dist/knowledge/index.d.ts",
|
|
55
|
+
"import": "./dist/knowledge/index.js"
|
|
56
|
+
},
|
|
57
|
+
"./knowledge/autorag-workflow.css": "./dist/knowledge/autorag-workflow.css"
|
|
49
58
|
},
|
|
50
59
|
"scripts": {
|
|
51
60
|
"typecheck": "node scripts/ensure-local-deps.mjs && tsc --noEmit -p tsconfig.json",
|
|
@@ -54,8 +63,8 @@
|
|
|
54
63
|
"prepack": "npm run build"
|
|
55
64
|
},
|
|
56
65
|
"dependencies": {
|
|
57
|
-
"@inneranimalmedia/agentsam-contracts": "2.6.
|
|
58
|
-
"@inneranimalmedia/agentsam-loading-scene": "2.6.
|
|
66
|
+
"@inneranimalmedia/agentsam-contracts": "2.6.13",
|
|
67
|
+
"@inneranimalmedia/agentsam-loading-scene": "2.6.13",
|
|
59
68
|
"lucide-react": "^0.510.0"
|
|
60
69
|
},
|
|
61
70
|
"peerDependencies": {
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A read-only projection, NOT a registry. Hosts provide their installed and
|
|
3
|
+
* authorized tools, OAuth connections, widgets, skills and agents.
|
|
4
|
+
* Selecting a mention never grants permission to execute.
|
|
5
|
+
*/
|
|
6
|
+
export type ComposerKind = 'connection' | 'mcp' | 'plugin' | 'widget' | 'skill' | 'agent' | 'command';
|
|
7
|
+
export type ComposerAction =
|
|
8
|
+
| { type: 'mention' }
|
|
9
|
+
| { type: 'open-side-stage'; tab: string }
|
|
10
|
+
| { type: 'setup'; pluginId: string };
|
|
11
|
+
export type ComposerCatalogEntry = {
|
|
12
|
+
id: string; kind: ComposerKind; label: string; mention: string; ready: boolean;
|
|
13
|
+
status: string; description?: string; iconUrl?: string; iconDarkUrl?: string; icon?: string;
|
|
14
|
+
capabilities?: string[]; action: ComposerAction;
|
|
15
|
+
};
|
|
16
|
+
type Plugin = Record<string, any>;
|
|
17
|
+
type Connection = Record<string, any>;
|
|
18
|
+
type HostItem = {
|
|
19
|
+
id: string; label: string; mention?: string; description?: string;
|
|
20
|
+
ready?: boolean; status?: string; icon?: string; iconUrl?: string;
|
|
21
|
+
capabilities?: string[]; action?: ComposerAction;
|
|
22
|
+
};
|
|
23
|
+
export type ComposerCatalogSources = {
|
|
24
|
+
plugins?: Plugin[]; connections?: Connection[]; widgets?: HostItem[];
|
|
25
|
+
skills?: HostItem[]; agents?: HostItem[]; commands?: HostItem[];
|
|
26
|
+
};
|
|
27
|
+
export const COMPOSER_GROUPS: Array<{kind: ComposerKind; label: string}> = [
|
|
28
|
+
{kind:'connection', label:'Connections'},
|
|
29
|
+
{kind:'mcp', label:'MCP servers'},
|
|
30
|
+
{kind:'widget', label:'Apps / widgets'},
|
|
31
|
+
{kind:'plugin', label:'Plugins'},
|
|
32
|
+
{kind:'skill', label:'Skills'},
|
|
33
|
+
{kind:'agent', label:'Agents'},
|
|
34
|
+
{kind:'command', label:'Commands'},
|
|
35
|
+
];
|
|
36
|
+
const enabled = (value: unknown) => value === 1 || value === true;
|
|
37
|
+
function mention(value: unknown): string | null {
|
|
38
|
+
const raw=String(value||'').trim().toLowerCase().replace(/^@/,'');
|
|
39
|
+
return /^[a-z][a-z0-9-]*$/.test(raw) ? '@'+raw : null;
|
|
40
|
+
}
|
|
41
|
+
export function projectComposerCatalog(sources: ComposerCatalogSources = {}): ComposerCatalogEntry[] {
|
|
42
|
+
const result: ComposerCatalogEntry[]=[];
|
|
43
|
+
const seen=new Set<string>();
|
|
44
|
+
const add=(entry:ComposerCatalogEntry) => {
|
|
45
|
+
if(!entry.mention || seen.has(entry.kind+':'+entry.id)) return;
|
|
46
|
+
result.push(entry); seen.add(entry.kind+':'+entry.id);
|
|
47
|
+
};
|
|
48
|
+
for(const row of sources.connections || []) {
|
|
49
|
+
if(row.kind!=='oauth') continue; // BYOK model keys are not tool connections.
|
|
50
|
+
const token=mention(row.provider);
|
|
51
|
+
if(!token) continue;
|
|
52
|
+
const ready=row.status==='connected';
|
|
53
|
+
add({id:'connection:'+row.provider,kind:'connection',
|
|
54
|
+
label:String(row.display_name||row.label||row.provider),mention:token,ready,
|
|
55
|
+
status:String(row.status||'not_connected'),description:ready?'Connected service':'Connect in Settings',
|
|
56
|
+
action:ready?{type:'mention'}:{type:'setup',pluginId:String(row.provider)}});
|
|
57
|
+
}
|
|
58
|
+
for(const row of sources.plugins||[]) {
|
|
59
|
+
if(!row||!enabled(row.composer_visible)||!enabled(row.is_enabled)) continue;
|
|
60
|
+
const token=(Array.isArray(row.mention_aliases)?row.mention_aliases:[])
|
|
61
|
+
.map(mention).find(Boolean)||mention(row.plugin_key);
|
|
62
|
+
if(!token) continue;
|
|
63
|
+
const key=String(row.plugin_key||'');
|
|
64
|
+
const kind:ComposerKind=row.plugin_kind==='mcp'||row.transport==='mcp'||
|
|
65
|
+
row.tool_lanes?.includes('mcp')||key.endsWith('-mcp')?'mcp':'plugin';
|
|
66
|
+
const healthy=!['disabled','unhealthy','unreachable','auth_error'].includes(String(row.health_status||''));
|
|
67
|
+
const ready=healthy&&(row.setup_status==='connected'||
|
|
68
|
+
(row.setup_status==='configured'&&['none','workers_binding'].includes(String(row.auth_type||''))));
|
|
69
|
+
add({id:'plugin:'+String(row.id||key),kind,mention:token,label:String(row.display_name||key),
|
|
70
|
+
description:row.description||((row.tool_count||0)+' tools'),ready,
|
|
71
|
+
status:row.health_status==='auth_error'?'reconnect':String(row.setup_status||'unconfigured'),
|
|
72
|
+
iconUrl:row.icon_url,iconDarkUrl:row.icon_dark_url,capabilities:row.capabilities||[],
|
|
73
|
+
action:ready?{type:'mention'}:{type:'setup',pluginId:String(row.id||key)}});
|
|
74
|
+
}
|
|
75
|
+
for(const [kind,items] of [
|
|
76
|
+
['widget',sources.widgets],['skill',sources.skills],['agent',sources.agents],['command',sources.commands]
|
|
77
|
+
] as const) {
|
|
78
|
+
for(const item of items||[]) {
|
|
79
|
+
const token=mention(item.mention||item.id);
|
|
80
|
+
if(!token) continue;
|
|
81
|
+
add({id:kind+':'+item.id,kind,mention:token,label:item.label,
|
|
82
|
+
description:item.description,status:item.status||(item.ready?'available':'unavailable'),
|
|
83
|
+
ready:item.ready===true,icon:item.icon,iconUrl:item.iconUrl,
|
|
84
|
+
capabilities:item.capabilities,action:item.action||{type:'mention'}});
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
return result.sort((a,b)=>COMPOSER_GROUPS.findIndex(x=>x.kind===a.kind)-
|
|
88
|
+
COMPOSER_GROUPS.findIndex(x=>x.kind===b.kind)||a.label.localeCompare(b.label));
|
|
89
|
+
}
|
|
90
|
+
export function filterComposerCatalog(entries: readonly ComposerCatalogEntry[],query=''): ComposerCatalogEntry[] {
|
|
91
|
+
const q=String(query).trim().replace(/^@/,'').toLowerCase();
|
|
92
|
+
if(!q)return [...entries];
|
|
93
|
+
return entries.filter(row=>[row.label,row.mention,row.description,row.kind,...(row.capabilities||[])]
|
|
94
|
+
.some(value=>String(value||'').toLowerCase().includes(q)))
|
|
95
|
+
.sort((a,b)=>Number(b.mention.slice(1).startsWith(q))-Number(a.mention.slice(1).startsWith(q)));
|
|
96
|
+
}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { useEffect, useRef, useState } from 'react';
|
|
2
|
+
import { CheckCircle2, ChevronRight, FileCode2, Layers3, LoaderCircle, ShieldCheck, TerminalSquare, X } from 'lucide-react';
|
|
3
|
+
import './autorag-workflow.css';
|
|
4
|
+
|
|
5
|
+
export type AutoRagWorkflowView = {
|
|
6
|
+
schema: string;
|
|
7
|
+
project: { name: string; repository_id: string; root: string; branch?: string | null };
|
|
8
|
+
status: string;
|
|
9
|
+
selected: null | { scope: { name: string; include: string[]; exclude?: string[] }; embedding: { provider: string; model?: string; dimensions?: number }; lane: { backend: string; binding?: string | null; index?: string | null }; storage: { driver: string } };
|
|
10
|
+
suggested: { scope: string[]; backend: string; semantic: boolean; explanation: string };
|
|
11
|
+
resources: Array<{ backend: string; binding?: string | null; index?: string | null; selected: boolean; locally_executable: boolean; remotely_executable: boolean }>;
|
|
12
|
+
providers: Array<{ id: string; operational: boolean; models: string[]; credentials?: string | null }>;
|
|
13
|
+
historical: Array<{ generation_id: string; created_at: string; files: number; chunks: number; embedded: boolean; provider: string; model?: string | null; active: boolean; selected_scope: boolean }>;
|
|
14
|
+
generation: null | { id: string; files: number; chunks: number; embedded: boolean; current: boolean; created_at: string };
|
|
15
|
+
};
|
|
16
|
+
export type AutoRagExecutionReceipt = { ok: boolean; verified: boolean; generation_id: string; files: number; chunks: number; kind: string; hits: Array<{ path: string; score?: number }> };
|
|
17
|
+
export interface AutoRagWorkflowHost {
|
|
18
|
+
inspect(root: string): Promise<AutoRagWorkflowView>;
|
|
19
|
+
configure(root: string, input: { scope: string[]; provider: string; backend: string; model?: string; dimensions?: number }): Promise<unknown>;
|
|
20
|
+
execute(root: string, options?: { semantic: boolean; allowPaid: boolean }): Promise<AutoRagExecutionReceipt>;
|
|
21
|
+
pickRoot?(): Promise<string | null>;
|
|
22
|
+
}
|
|
23
|
+
export interface AutoRagWorkflowDialogProps {
|
|
24
|
+
open: boolean;
|
|
25
|
+
root: string;
|
|
26
|
+
host: AutoRagWorkflowHost;
|
|
27
|
+
onClose(): void;
|
|
28
|
+
title?: string;
|
|
29
|
+
}
|
|
30
|
+
type Path = 'recommended' | 'custom' | 'history';
|
|
31
|
+
const readable = (state: string) => state.split('_').join(' ');
|
|
32
|
+
|
|
33
|
+
/** Host-owned I/O, portable presentation and selection: no filesystem, credentials or embedding logic here. */
|
|
34
|
+
export function AutoRagWorkflowDialog({ open, root, host, onClose, title = 'AgentSam AutoRAG' }: AutoRagWorkflowDialogProps) {
|
|
35
|
+
const [projectRoot, setProjectRoot] = useState(root);
|
|
36
|
+
const [view, setView] = useState<AutoRagWorkflowView | null>(null);
|
|
37
|
+
const [choice, setChoice] = useState<Path>('recommended');
|
|
38
|
+
const [scopes, setScopes] = useState('');
|
|
39
|
+
const [backend, setBackend] = useState('local_exact');
|
|
40
|
+
const [provider, setProvider] = useState('none');
|
|
41
|
+
const [model, setModel] = useState('');
|
|
42
|
+
const [dimensions, setDimensions] = useState('');
|
|
43
|
+
const [semanticConsent, setSemanticConsent] = useState(false);
|
|
44
|
+
const [busy, setBusy] = useState(false);
|
|
45
|
+
const [error, setError] = useState('');
|
|
46
|
+
const [receipt, setReceipt] = useState<AutoRagExecutionReceipt | null>(null);
|
|
47
|
+
const [configured, setConfigured] = useState(false);
|
|
48
|
+
const closeRef = useRef<HTMLButtonElement>(null);
|
|
49
|
+
|
|
50
|
+
const inspect = async (path: string) => {
|
|
51
|
+
if (!path.trim()) throw new Error('Select a repository directory to inspect.');
|
|
52
|
+
const next = await host.inspect(path);
|
|
53
|
+
setView(next);
|
|
54
|
+
setScopes((next.selected?.scope.include || next.suggested.scope).join(', '));
|
|
55
|
+
setBackend(next.selected?.lane.backend || next.suggested.backend);
|
|
56
|
+
setProvider(next.selected?.embedding.provider || 'none');
|
|
57
|
+
setModel(next.selected?.embedding.model || '');
|
|
58
|
+
setDimensions(String(next.selected?.embedding.dimensions || ''));
|
|
59
|
+
setConfigured(Boolean(next.selected));
|
|
60
|
+
return next;
|
|
61
|
+
};
|
|
62
|
+
useEffect(() => {
|
|
63
|
+
if (!open) return;
|
|
64
|
+
setProjectRoot(root); setView(null); setError(''); setReceipt(null); setConfigured(false); setChoice('recommended');
|
|
65
|
+
let cancelled = false;
|
|
66
|
+
setBusy(true);
|
|
67
|
+
void host.inspect(root).then(next => {
|
|
68
|
+
if (cancelled) return;
|
|
69
|
+
setView(next);
|
|
70
|
+
setScopes((next.selected?.scope.include || next.suggested.scope).join(', '));
|
|
71
|
+
setBackend(next.selected?.lane.backend || next.suggested.backend);
|
|
72
|
+
setProvider(next.selected?.embedding.provider || 'none');
|
|
73
|
+
setModel(next.selected?.embedding.model || '');
|
|
74
|
+
setDimensions(String(next.selected?.embedding.dimensions || ''));
|
|
75
|
+
setConfigured(Boolean(next.selected));
|
|
76
|
+
}).catch(e => { if (!cancelled) setError(String(e?.message || e)); })
|
|
77
|
+
.finally(() => { if (!cancelled) setBusy(false); });
|
|
78
|
+
closeRef.current?.focus();
|
|
79
|
+
return () => { cancelled = true; };
|
|
80
|
+
}, [open, root, host]);
|
|
81
|
+
if (!open) return null;
|
|
82
|
+
|
|
83
|
+
const act = async () => {
|
|
84
|
+
if (choice === 'history') { setChoice('custom'); return; }
|
|
85
|
+
setError(''); setBusy(true); setReceipt(null);
|
|
86
|
+
try {
|
|
87
|
+
const nextScope = scopes.split(',').map(x => x.trim()).filter(Boolean);
|
|
88
|
+
if (!nextScope.length) throw new Error('Choose at least one source directory or file.');
|
|
89
|
+
const changed = !configured || nextScope.join(',') !== (view?.selected?.scope.include || []).join(',') ||
|
|
90
|
+
backend !== view?.selected?.lane.backend || provider !== view?.selected?.embedding.provider ||
|
|
91
|
+
(provider !== 'none' && (model !== view?.selected?.embedding.model || Number(dimensions) !== view?.selected?.embedding.dimensions));
|
|
92
|
+
if (backend !== 'local_exact') {
|
|
93
|
+
if (changed) {
|
|
94
|
+
await host.configure(projectRoot, { scope: nextScope, backend, provider, model, dimensions: Number(dimensions) });
|
|
95
|
+
await inspect(projectRoot);
|
|
96
|
+
}
|
|
97
|
+
throw new Error('Remote indexing requires this project’s authorized execution host. The selected remote lane was saved, not silently redirected to local storage.');
|
|
98
|
+
}
|
|
99
|
+
if (provider !== 'none' && changed && (!model || !Number.isInteger(Number(dimensions)) || Number(dimensions) < 1)) throw new Error('Choose an advertised embedding model and its verified output dimension before continuing.');
|
|
100
|
+
if (provider !== 'none' && semanticConsent && !model) throw new Error('Select an embedding model first.');
|
|
101
|
+
if (changed) {
|
|
102
|
+
await host.configure(projectRoot, { scope: nextScope, backend, provider, model, dimensions: Number(dimensions) });
|
|
103
|
+
await inspect(projectRoot);
|
|
104
|
+
}
|
|
105
|
+
const result = await host.execute(projectRoot, { semantic: provider !== 'none' && semanticConsent, allowPaid: semanticConsent });
|
|
106
|
+
if (!result.ok || !result.verified || !result.hits.length) throw new Error('Index execution did not return a verified source-grounded retrieval receipt.');
|
|
107
|
+
setReceipt(result);
|
|
108
|
+
await inspect(projectRoot);
|
|
109
|
+
} catch (e) { setError(String((e as Error)?.message || e)); }
|
|
110
|
+
finally { setBusy(false); }
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
return (
|
|
114
|
+
<div className="as-rag-overlay" role="presentation" onMouseDown={e => { if (e.target === e.currentTarget) onClose(); }} onKeyDown={e => { if (e.key === 'Escape') onClose(); }}>
|
|
115
|
+
<section className="as-rag-dialog" role="dialog" aria-modal="true" aria-label={title}>
|
|
116
|
+
<header className="as-rag-head">
|
|
117
|
+
<div className="as-rag-brand"><TerminalSquare size={18} aria-hidden="true" /><strong>{title}</strong></div>
|
|
118
|
+
<button ref={closeRef} className="as-rag-icon-button" type="button" aria-label="Close AutoRAG" onClick={onClose}><X size={19} /></button>
|
|
119
|
+
</header>
|
|
120
|
+
<div className="as-rag-body">
|
|
121
|
+
<label className="as-rag-root-label" htmlFor="as-rag-root">Repository directory</label>
|
|
122
|
+
<div className="as-rag-root-row">
|
|
123
|
+
<input id="as-rag-root" value={projectRoot} onChange={e => setProjectRoot(e.target.value)} placeholder="Select a local project path" spellCheck={false} />
|
|
124
|
+
{host.pickRoot && <button type="button" disabled={busy} onClick={() => { void host.pickRoot?.().then(path => { if (path) { setProjectRoot(path); setBusy(true); setError(''); void inspect(path).catch(e => setError(String(e.message || e))).finally(() => setBusy(false)); } }); }}>Browse</button>}
|
|
125
|
+
<button type="button" disabled={busy} onClick={() => { setBusy(true); setError(''); setReceipt(null); void inspect(projectRoot).catch(e => setError(String(e.message || e))).finally(() => setBusy(false)); }}>Inspect</button>
|
|
126
|
+
</div>
|
|
127
|
+
<div className="as-rag-checks">
|
|
128
|
+
<div className="as-rag-check"><CheckCircle2 size={17} aria-hidden="true" /><div><strong>Project identified</strong><span>{view ? `${view.project.name} · ${view.project.repository_id}` : 'Inspecting local repository…'}</span></div></div>
|
|
129
|
+
<div className="as-rag-check"><CheckCircle2 size={17} aria-hidden="true" /><div><strong>Sources inspected</strong><span>{view ? `${(view.selected?.scope.include || view.suggested.scope).join(', ')} · ${view.status === 'not_indexed' ? 'Not indexed' : readable(view.status)}` : 'Source selection pending'}</span></div></div>
|
|
130
|
+
<div className="as-rag-check"><CheckCircle2 size={17} aria-hidden="true" /><div><strong>Existing resources discovered</strong><span>{view ? view.resources.map(r => `${r.backend}${r.binding ? ` · ${r.binding}` : ''}`).join(' / ') || 'Local SQLite available' : 'Checking project resources…'}</span></div></div>
|
|
131
|
+
</div>
|
|
132
|
+
{view && <div className="as-rag-recommendation">
|
|
133
|
+
<h3>Recommended Knowledge setup</h3>
|
|
134
|
+
<dl>
|
|
135
|
+
<div><dt>Sources</dt><dd>{(view.selected?.scope.include || view.suggested.scope).join(', ')}</dd></div>
|
|
136
|
+
<div><dt>Index</dt><dd>Incremental structural + text retrieval</dd></div>
|
|
137
|
+
<div><dt>Storage</dt><dd>{view.selected?.storage.driver || 'Local SQLite'}</dd></div>
|
|
138
|
+
<div><dt>Selected lane</dt><dd>{view.selected?.lane.backend || view.suggested.backend}</dd></div>
|
|
139
|
+
<div><dt>Embeddings</dt><dd>{view.selected?.embedding.provider === 'none' || !view.selected ? 'Optional · no paid calls by default' : `${view.selected.embedding.provider} (configured, not yet verified)`}</dd></div>
|
|
140
|
+
</dl>
|
|
141
|
+
</div>}
|
|
142
|
+
{view && <fieldset className="as-rag-choices"><legend>Choose how to proceed</legend>
|
|
143
|
+
<label><input type="radio" name="as-rag-choice" checked={choice === 'recommended'} onChange={() => setChoice('recommended')} /><span>Build or refresh the selected local index</span></label>
|
|
144
|
+
<label><input type="radio" name="as-rag-choice" checked={choice === 'custom'} onChange={() => setChoice('custom')} /><span>Choose sources, provider and storage</span></label>
|
|
145
|
+
<label><input type="radio" name="as-rag-choice" checked={choice === 'history'} onChange={() => setChoice('history')} /><span>Inspect existing indexes first {view.historical.length ? `(${view.historical.length})` : ''}</span></label>
|
|
146
|
+
</fieldset>}
|
|
147
|
+
{view && choice === 'custom' && <div className="as-rag-edit">
|
|
148
|
+
<label>Sources (comma-separated)<input value={scopes} onChange={e => setScopes(e.target.value)} /></label>
|
|
149
|
+
<label>Backend<select value={backend} onChange={e => setBackend(e.target.value)}><option value="local_exact">Local SQLite / exact retrieval</option>{view.resources.filter(r => r.backend !== 'local_exact').map(r => <option key={r.backend + ':' + r.binding} value={r.backend}>{r.backend}{r.binding ? ` (${r.binding})` : ''}</option>)}</select></label>
|
|
150
|
+
<label>Embedding provider<select value={provider} onChange={e => { setProvider(e.target.value); const entry = view.providers.find(p => p.id === e.target.value); setModel(entry?.models?.length === 1 ? entry.models[0] : ''); setDimensions(''); setSemanticConsent(false); }}><option value="none">None · structural/text only</option>{view.providers.filter(p => p.id !== 'fixture').map(p => <option key={p.id} value={p.id} disabled={!p.operational}>{p.id}{!p.operational ? ' · needs connection' : ''}</option>)}</select></label>
|
|
151
|
+
{provider !== 'none' && <>
|
|
152
|
+
<label>Provider-advertised model<select value={model} onChange={e => setModel(e.target.value)}><option value="">Select model</option>{(view.providers.find(p => p.id === provider)?.models || []).map(m => <option key={m} value={m}>{m}</option>)}</select></label>
|
|
153
|
+
<label>Verified output dimensions<input type="number" min="1" value={dimensions} onChange={e => setDimensions(e.target.value)} placeholder="From provider/index configuration" /></label>
|
|
154
|
+
</>}
|
|
155
|
+
</div>}
|
|
156
|
+
{view && provider !== 'none' && choice !== 'history' && <label className="as-rag-consent"><input type="checkbox" checked={semanticConsent} onChange={e => setSemanticConsent(e.target.checked)} /> Generate semantic embeddings during this run (may incur provider charges)</label>}
|
|
157
|
+
{view && choice === 'history' && <div className="as-rag-history">{view.historical.length ? view.historical.map(g => <div key={g.generation_id} className="as-rag-history-row"><Layers3 size={15}/><div><strong>{g.files} files · {g.chunks} chunks</strong><span>{g.created_at.slice(0, 10)} · {g.embedded ? `Semantic (${g.provider})` : 'Structural only'} · {g.selected_scope ? 'selected scope' : 'other scope'}</span></div>{g.active && <small>Active</small>}</div>) : <p>No historical generations found in local storage.</p>}</div>}
|
|
158
|
+
{receipt && <div className="as-rag-result" role="status"><ShieldCheck size={18}/><div><strong>Index and retrieval verified</strong><span>{receipt.files} files · {receipt.chunks} chunks · {receipt.kind}</span>{receipt.hits.map((h, i) => <code key={i}>{h.path}</code>)}</div></div>}
|
|
159
|
+
{error && <p className="as-rag-error" role="alert">{error}</p>}
|
|
160
|
+
<button type="button" className="as-rag-primary" disabled={busy || !view} onClick={() => void act()}>{busy ? <LoaderCircle className="as-rag-spin" size={17}/> : choice === 'history' ? <Layers3 size={17}/> : <FileCode2 size={17}/>} {choice === 'history' ? 'Edit selected setup' : busy ? 'Working…' : 'Proceed with workflow'} <ChevronRight size={17}/></button>
|
|
161
|
+
<p className="as-rag-footnote">No embedding fees or remote writes without explicit authorization. This interface displays actual host receipts, not fixture readiness.</p>
|
|
162
|
+
</div>
|
|
163
|
+
</section>
|
|
164
|
+
</div>
|
|
165
|
+
);
|
|
166
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Portable AutoRAG workflow dialog
|
|
2
|
+
|
|
3
|
+
`@inneranimalmedia/agentsam-workbench/knowledge` exports `AutoRagWorkflowDialog` and the `AutoRagWorkflowHost` interface. Import `@inneranimalmedia/agentsam-workbench/knowledge/autorag-workflow.css` alongside the component.
|
|
4
|
+
|
|
5
|
+
Host responsibilities (never inside the component):
|
|
6
|
+
|
|
7
|
+
- `inspect(root)`: return the real `agentsam.autorag.workflow.v1` discovery, historical generation and verification receipt.
|
|
8
|
+
- `configure(root,{scope,provider,backend,model,dimensions})`: preserve the project's own provider/backend authority, validate sources, and save only on explicit confirmation.
|
|
9
|
+
- `execute(root,{semantic,allowPaid})`: run the actual project-selected indexing pipeline and return `agentsam.autorag.execution.v1` with source-grounded hits. Never return `verified:true` for a skipped or merely declared resource.
|
|
10
|
+
- `pickRoot?()`: optional host-owned directory chooser; a browser cannot grant itself access to filesystem paths.
|
|
11
|
+
|
|
12
|
+
The component intentionally contains no Cloudflare, Supabase, node, Tauri, database, secrets, file-system or user-identity logic. A host that cannot execute a selected remote lane must reject instead of silently writing a local index.
|
|
13
|
+
|
|
14
|
+
The shipped Local Studio Desktop adapter uses allowlisted Tauri native commands that invoke the locally installed AgentSam CLI with argv (no shell). It does not request an `AGENTSAM_BRIDGE_KEY`. The hosted web view does not claim it can inspect a local filesystem without a connected terminal host.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
.as-rag-overlay{position:fixed;inset:0;z-index:1300;background:rgba(0,0,0,.76);backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;padding:20px;color:#f4f4f5;font:14px/1.5 system-ui,-apple-system,sans-serif}
|
|
2
|
+
.as-rag-dialog{box-sizing:border-box;width:min(736px,100%);max-height:min(92vh,900px);overflow:auto;background:#0b0b0e;border:1px solid #2b2b32;border-radius:16px;box-shadow:0 28px 90px #000b}
|
|
3
|
+
.as-rag-dialog *{box-sizing:border-box}.as-rag-head{display:flex;align-items:center;justify-content:space-between;padding:18px 21px;border-bottom:1px solid #27272d}.as-rag-brand{display:flex;align-items:center;gap:9px;font-size:15px}.as-rag-icon-button{background:none;color:#999aa3;border:0;cursor:pointer;padding:6px;border-radius:6px}.as-rag-icon-button:hover{background:#202025;color:#fff}.as-rag-body{padding:22px;display:flex;flex-direction:column;gap:17px}.as-rag-root-label{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#9999a3}.as-rag-root-row{display:flex;gap:8px;margin-top:-12px}.as-rag-root-row input{flex:1;min-width:0;font:12px ui-monospace,monospace}.as-rag-root-row button{background:#252529;color:#fff;border:1px solid #424248;border-radius:8px;padding:8px 13px;cursor:pointer}
|
|
4
|
+
.as-rag-dialog input:not([type=radio]),.as-rag-dialog select{color:#f5f5f6;background:#171719;border:1px solid #3a3a40;border-radius:8px;padding:9px 10px;width:100%;outline-offset:3px}.as-rag-checks{padding:8px 0 17px;display:grid;gap:14px;border-bottom:1px solid #29292e}.as-rag-check{display:flex;align-items:flex-start;gap:11px}.as-rag-check>svg{color:#27d179;margin-top:2px;flex:none}.as-rag-check>div,.as-rag-history-row>div{display:flex;flex-direction:column;min-width:0}.as-rag-check strong{font-weight:620;font-size:14px}.as-rag-check span,.as-rag-history-row span,.as-rag-result span{color:#a2a2ac;font-size:12px;overflow-wrap:anywhere}.as-rag-recommendation h3{font-size:15px;margin:0 0 9px;font-weight:650}.as-rag-recommendation dl{display:grid;gap:5px;margin:0;font-size:13px}.as-rag-recommendation dl>div{display:flex;gap:8px}.as-rag-recommendation dt{color:#9696a0;min-width:105px}.as-rag-recommendation dd{margin:0;overflow-wrap:anywhere}.as-rag-choices{border:0;padding:0;display:grid;gap:10px;margin:0}.as-rag-choices legend{font-size:13px;font-weight:650;margin-bottom:10px}.as-rag-choices label{display:flex;gap:10px;align-items:center;cursor:pointer;font-size:13px}.as-rag-choices input{width:17px;height:17px;accent-color:#e6e6e8;cursor:pointer}.as-rag-edit{padding:15px;border:1px solid #303037;background:#121215;border-radius:10px;display:grid;gap:12px}.as-rag-edit label{display:grid;gap:6px;font-size:12px;color:#bebec5}.as-rag-history{display:grid;gap:8px;max-height:150px;overflow:auto}.as-rag-history-row{display:flex;gap:11px;align-items:center;border:1px solid #33333a;border-radius:8px;padding:10px}.as-rag-history-row svg{color:#9696a0}.as-rag-history-row small{margin-left:auto;color:#35cf7b}.as-rag-result{display:flex;align-items:start;gap:10px;padding:13px;background:#11231a;border:1px solid #265b3e;border-radius:9px}.as-rag-result>svg{color:#39dc84}.as-rag-result>div{display:grid;gap:2px}.as-rag-result code{color:#d1e5d8;font-size:11px;overflow-wrap:anywhere}.as-rag-error{color:#ffb4b4;background:#2b181b;border:1px solid #69363b;padding:11px 12px;border-radius:9px;margin:0;font-size:12px}.as-rag-primary{width:100%;display:flex;align-items:center;justify-content:center;gap:9px;border:0;background:#e9e9ec;color:#111114;border-radius:999px;padding:12px 15px;font-size:13px;font-weight:630;cursor:pointer}.as-rag-primary:hover:not(:disabled){background:#fff}.as-rag-primary:disabled{opacity:.55;cursor:not-allowed}.as-rag-footnote{margin:0;color:#92929b;font-size:11px}.as-rag-spin{animation:as-rag-spin .85s linear infinite}@keyframes as-rag-spin{to{transform:rotate(360deg)}}@media(max-width:540px){.as-rag-overlay{padding:8px;align-items:flex-end}.as-rag-dialog{border-radius:15px 15px 8px 8px;max-height:94vh}.as-rag-body{padding:17px}.as-rag-recommendation dl>div{display:block}.as-rag-recommendation dt{font-size:11px}}
|
|
5
|
+
|
|
6
|
+
.as-rag-consent{display:flex;align-items:center;gap:9px;color:#d1d1da;font-size:12px}.as-rag-consent input{accent-color:#edeef0;width:15px;height:15px}
|