@inneranimalmedia/agentsam-sdk 2.6.9 → 2.6.11
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/README.md +21 -0
- package/TRADEMARKS.md +22 -0
- package/apps/README.md +3 -0
- package/apps/cad-creator/LICENSE +21 -0
- package/apps/cad-creator/README.md +4 -1
- package/apps/cad-creator/shared/cad/package.json +1 -1
- package/apps/client-cms-editor/LICENSE +21 -0
- package/apps/client-cms-editor/README.md +3 -0
- package/apps/client-cms-editor/backend/package.json +3 -3
- package/apps/client-cms-editor/frontend/package.json +4 -4
- package/apps/client-cms-editor/package-lock.json +43 -43
- package/apps/client-cms-editor/package.json +3 -3
- package/apps/client-cms-editor/reference/harvest/HARVEST_RECEIPT.json +1 -1
- package/apps/client-cms-editor/reference/harvest/README.md +1 -1
- package/apps/client-cms-editor/reference/harvest/plans/ARCHIVE-INTAKE.md +1 -1
- package/apps/client-cms-editor/reference/harvest/plans/HARVEST-INDEX.md +1 -1
- package/apps/client-cms-editor/reference/harvest/plans/TOOLING-LAB.md +1 -1
- package/apps/client-cms-editor/shared/cms/package.json +2 -2
- package/docs/MINI.md +4 -2
- package/docs/REPO_FILE_MAP.txt +0 -1
- package/docs/SOURCE_ARCHITECTURE.md +1 -1
- package/docs/architecture/DUAL_ANALYTICS_PRODUCT.md +140 -0
- package/docs/architecture/HOOKS-MODELS-SELF-HOSTING-PLAN.md +199 -0
- package/docs/content-studio/REVISION_GATE_2026-09-27.md +1 -1
- package/docs/engineering/go-portability/01-product-project-deployment-authority.md +69 -0
- package/docs/engineering/provider-internal-renames/01-lane-initialization.md +20 -0
- package/docs/engineering/provider-internal-renames/01a-runtime-environment-contract.md +115 -0
- package/docs/engineering/provider-internal-renames/02-cfoa.md +57 -0
- package/docs/engineering/provider-internal-renames/03-gclioa.md +32 -0
- package/docs/engineering/provider-internal-renames/04-goaude.md +50 -0
- package/docs/engineering/provider-internal-renames/05-gdrv.md +33 -0
- package/docs/engineering/provider-internal-renames/06-verification.md +103 -0
- package/docs/engineering/provider-internal-renames/README.md +77 -0
- package/docs/engineering/provider-internal-renames/runtime-environment-contract.json +220 -0
- package/docs/engineering/test-diagnostics/go-cli-test-hang-20261003.md +49 -0
- package/docs/engineering/test-diagnostics/go-skip-deploy-docker-fix.md +90 -0
- package/docs/knowledge-service-verification.md +3 -3
- package/docs/plans/AGENTSAM-SUSPEND-QUEUE-KNOWLEDGE-RDP-2026-10-03.md +870 -0
- package/docs/plans/LOCAL-STUDIO-GRADUATION-2026-09-26.md +9 -9
- package/docs/plans/MACHINE-FIRST-APPS-TUI-2026-09-24.md +11 -11
- package/docs/plans/RECONCILIATION-2026-09-19.md +6 -6
- package/docs/plans/SAM_WORK_PROTOCOL.md +667 -0
- package/docs/plans/TOMORROW-EXTENSIVE-TODO-2026-09-26.md +2 -2
- package/docs/plans/UNIVERSAL-INGEST-MACHINE-FIRST-2026-09-24.md +3 -3
- package/examples/hyperspace-demo/index.html +16 -0
- package/examples/hyperspace-demo/package.json +21 -0
- package/examples/hyperspace-demo/src/main.tsx +277 -0
- package/examples/hyperspace-demo/tsconfig.json +9 -0
- package/examples/hyperspace-demo/vite.config.ts +24 -0
- package/migrations/d1/0020_agentsam_receipt_catalog.sql +35 -0
- package/migrations/runtime/0005_agentsam_hooks.sql +87 -0
- package/migrations/runtime/0006_agent_run_suspend_activity.sql +53 -0
- package/migrations/runtime/0007_queue_control.sql +40 -0
- package/migrations/runtime/0008_agent_run_dependencies.sql +24 -0
- package/migrations/runtime/0008_analytics_legacy_bootstrap.sql +43 -0
- package/migrations/runtime/0009_analytics_authority.sql +108 -0
- package/package.json +45 -14
- package/packages/agentsam-brand/README.md +3 -0
- package/packages/agentsam-brand/package.json +2 -2
- package/packages/agentsam-brand/src/core/v2/compile.js +1 -1
- package/packages/agentsam-brand/src/core/v2/schema.js +1 -1
- package/packages/agentsam-contracts/dist/adapter.d.ts +22 -0
- package/packages/agentsam-contracts/dist/adapter.js +0 -0
- package/packages/agentsam-contracts/dist/agent.d.ts +66 -0
- package/packages/agentsam-contracts/dist/agent.js +15 -0
- package/packages/agentsam-contracts/dist/artifacts.d.ts +70 -0
- package/packages/agentsam-contracts/dist/artifacts.js +0 -0
- package/packages/agentsam-contracts/dist/authority.d.ts +21 -0
- package/packages/agentsam-contracts/dist/authority.js +0 -0
- package/packages/agentsam-contracts/dist/context.d.ts +14 -0
- package/packages/agentsam-contracts/dist/context.js +0 -0
- package/packages/agentsam-contracts/dist/errors.d.ts +121 -0
- package/packages/agentsam-contracts/dist/errors.js +5 -0
- package/packages/agentsam-contracts/dist/events.d.ts +53 -0
- package/packages/agentsam-contracts/dist/events.js +0 -0
- package/packages/agentsam-contracts/dist/execution.d.ts +38 -0
- package/packages/agentsam-contracts/dist/execution.js +0 -0
- package/packages/agentsam-contracts/dist/hooks.d.ts +31 -0
- package/packages/agentsam-contracts/dist/hooks.js +0 -0
- package/packages/agentsam-contracts/dist/identity.d.ts +15 -0
- package/packages/agentsam-contracts/dist/identity.js +0 -0
- package/packages/agentsam-contracts/dist/index.d.ts +16 -0
- package/packages/agentsam-contracts/dist/index.js +164 -0
- package/packages/agentsam-contracts/dist/models.d.ts +9 -0
- package/packages/agentsam-contracts/dist/models.js +0 -0
- package/packages/agentsam-contracts/dist/providers.d.ts +27 -0
- package/packages/agentsam-contracts/dist/providers.js +0 -0
- package/packages/agentsam-contracts/dist/repository.d.ts +56 -0
- package/packages/agentsam-contracts/dist/repository.js +15 -0
- package/packages/agentsam-contracts/dist/run.d.ts +113 -0
- package/packages/agentsam-contracts/dist/run.js +132 -0
- package/packages/agentsam-contracts/dist/tools.d.ts +82 -0
- package/packages/agentsam-contracts/dist/tools.js +0 -0
- package/packages/agentsam-contracts/dist/widgets.d.ts +38 -0
- package/packages/agentsam-contracts/dist/widgets.js +0 -0
- package/packages/agentsam-contracts/package.json +9 -1
- package/packages/agentsam-contracts/scripts/build.mjs +1 -1
- package/packages/agentsam-contracts/src/agent.ts +78 -3
- package/packages/agentsam-contracts/src/errors.ts +19 -10
- package/packages/agentsam-contracts/src/index.ts +2 -0
- package/packages/agentsam-contracts/src/run.ts +320 -0
- package/packages/agentsam-contracts/src/widgets.ts +58 -0
- package/packages/agentsam-contracts/test/contracts.test.mjs +1 -1
- package/packages/agentsam-contracts/test/run-contract.test.mjs +94 -0
- package/packages/agentsam-errors/package.json +11 -3
- package/packages/agentsam-errors/protocol/agentsam.error.v2.schema.json +821 -0
- package/packages/agentsam-errors/protocol/error-catalog.json +3512 -0
- package/packages/agentsam-errors/src/envelope.js +63 -11
- package/packages/agentsam-errors/src/error.js +6 -0
- package/packages/agentsam-errors/src/fingerprint.js +9 -1
- package/packages/agentsam-errors/src/normalize.js +51 -6
- package/packages/agentsam-errors/src/recovery.js +9 -35
- package/packages/agentsam-errors/src/transport.js +6 -1
- package/packages/agentsam-errors/src/vocabulary.js +515 -126
- package/packages/agentsam-errors/test/catalog-v2.test.mjs +106 -0
- package/packages/agentsam-errors/types/index.d.ts +157 -0
- package/packages/agentsam-goap/README.md +3 -0
- package/packages/agentsam-goap/package.json +2 -2
- package/packages/agentsam-hooks/README.md +206 -0
- package/packages/agentsam-hooks/bin/agentsam-hooks.mjs +64 -0
- package/packages/agentsam-hooks/bindings/go/command.go +55 -0
- package/packages/agentsam-hooks/bindings/go/errors_generated.go +402 -0
- package/packages/agentsam-hooks/bindings/go/go.mod +3 -0
- package/packages/agentsam-hooks/bindings/go/hooks.go +285 -0
- package/packages/agentsam-hooks/bindings/go/hooks_test.go +48 -0
- package/packages/agentsam-hooks/bindings/rust/Cargo.toml +11 -0
- package/packages/agentsam-hooks/bindings/rust/src/errors_generated.rs +396 -0
- package/packages/agentsam-hooks/bindings/rust/src/lib.rs +397 -0
- package/packages/agentsam-hooks/package.json +69 -0
- package/packages/agentsam-hooks/schema/manifest.json +54 -0
- package/packages/agentsam-hooks/scripts/clean-protocol.mjs +17 -0
- package/packages/agentsam-hooks/scripts/sync-protocol.mjs +27 -0
- package/packages/agentsam-hooks/src/adapters/agents.js +108 -0
- package/packages/agentsam-hooks/src/adapters/callback.js +4 -0
- package/packages/agentsam-hooks/src/adapters/capability.js +122 -0
- package/packages/agentsam-hooks/src/adapters/command.js +104 -0
- package/packages/agentsam-hooks/src/adapters/composite.js +31 -0
- package/packages/agentsam-hooks/src/adapters/http.js +58 -0
- package/packages/agentsam-hooks/src/adapters/lsp.js +116 -0
- package/packages/agentsam-hooks/src/adapters/mcp.js +76 -0
- package/packages/agentsam-hooks/src/adapters/provider.js +129 -0
- package/packages/agentsam-hooks/src/config.js +143 -0
- package/packages/agentsam-hooks/src/contracts.js +284 -0
- package/packages/agentsam-hooks/src/errors-generated.js +2732 -0
- package/packages/agentsam-hooks/src/index.d.ts +209 -0
- package/packages/agentsam-hooks/src/index.js +14 -0
- package/packages/agentsam-hooks/src/policy.js +34 -0
- package/packages/agentsam-hooks/src/runtime.js +312 -0
- package/packages/agentsam-hooks/src/store.js +264 -0
- package/packages/agentsam-hooks/test/adapters.test.mjs +216 -0
- package/packages/agentsam-hooks/test/runtime.test.mjs +258 -0
- package/packages/agentsam-knowledge/package.json +1 -1
- package/packages/agentsam-knowledge/src/backends/index.js +1 -1
- package/packages/agentsam-merch/README.md +62 -0
- package/packages/agentsam-merch/bin/agentsam-merch.mjs +16 -0
- package/packages/agentsam-merch/package.json +65 -0
- package/packages/agentsam-merch/profiles/completeful/dtg-back-large.json +42 -0
- package/packages/agentsam-merch/profiles/completeful/laser-engraving.json +39 -0
- package/packages/agentsam-merch/profiles/generic/embroidery-digitization.json +22 -0
- package/packages/agentsam-merch/schemas/collection-candidate.schema.json +66 -0
- package/packages/agentsam-merch/schemas/manufacturing-profile.schema.json +221 -0
- package/packages/agentsam-merch/src/adapters-completeful.js +50 -0
- package/packages/agentsam-merch/src/cli.js +93 -0
- package/packages/agentsam-merch/src/collection-lab.js +60 -0
- package/packages/agentsam-merch/src/compatibility.js +501 -0
- package/packages/agentsam-merch/src/derivatives.js +112 -0
- package/packages/agentsam-merch/src/index.d.ts +316 -0
- package/packages/agentsam-merch/src/index.js +46 -0
- package/packages/agentsam-merch/src/node/index.d.ts +58 -0
- package/packages/agentsam-merch/src/node/index.js +6 -0
- package/packages/agentsam-merch/src/node/raster.js +142 -0
- package/packages/agentsam-merch/src/node/vector.js +239 -0
- package/packages/agentsam-merch/src/product-concepts.js +118 -0
- package/packages/agentsam-merch/src/profile-registry.js +104 -0
- package/packages/agentsam-merch/src/profile.js +158 -0
- package/packages/agentsam-merch/src/transforms.js +215 -0
- package/packages/agentsam-merch/test/merch.test.mjs +332 -0
- package/packages/agentsam-merch/test/node-transforms.test.mjs +149 -0
- package/packages/agentsam-nav/dist/Nav.d.ts +43 -0
- package/packages/agentsam-nav/dist/NavCollapsible.d.ts +10 -0
- package/packages/agentsam-nav/dist/NavContent.d.ts +2 -0
- package/packages/agentsam-nav/dist/NavFooter.d.ts +2 -0
- package/packages/agentsam-nav/dist/NavGroup.d.ts +3 -0
- package/packages/agentsam-nav/dist/NavHeader.d.ts +2 -0
- package/packages/agentsam-nav/dist/NavMenu.d.ts +22 -0
- package/packages/agentsam-nav/dist/NavProvider.d.ts +35 -0
- package/packages/agentsam-nav/dist/NavTrigger.d.ts +2 -0
- package/packages/agentsam-nav/dist/Surfaces.d.ts +41 -0
- package/packages/agentsam-nav/dist/browser.d.ts +11 -0
- package/packages/agentsam-nav/dist/browser.global.js +172 -0
- package/packages/agentsam-nav/dist/browser.js +9688 -0
- package/packages/agentsam-nav/dist/contracts.d.ts +76 -0
- package/packages/agentsam-nav/dist/index.d.ts +11 -0
- package/packages/agentsam-nav/dist/index.js +9689 -0
- package/packages/agentsam-nav/dist/legacy.css +83 -0
- package/packages/agentsam-nav/dist/shell.css +113 -0
- package/packages/agentsam-nav/dist/theme.css +113 -0
- package/packages/agentsam-nav/dist/utils.d.ts +1 -0
- package/packages/agentsam-nav/package.json +1 -1
- package/packages/agentsam-queue-control/README.md +4 -1
- package/packages/agentsam-queue-control/package.json +4 -3
- package/packages/agentsam-queue-control/schemas/job-envelope.schema.json +111 -11
- package/packages/agentsam-queue-control/src/adapters/cloudflare.js +34 -6
- package/packages/agentsam-queue-control/src/adapters/memory.js +11 -2
- package/packages/agentsam-queue-control/src/adapters/sqlite.js +259 -0
- package/packages/agentsam-queue-control/src/contracts.js +207 -3
- package/packages/agentsam-queue-control/src/control-plane.js +62 -2
- package/packages/agentsam-queue-control/src/index.js +1 -0
- package/packages/agentsam-queue-control/test/queue-control.test.mjs +310 -0
- package/packages/agentsam-queue-control/test/sqlite-adapter.test.mjs +91 -0
- package/packages/agentsam-rapid-rust/README.md +3 -0
- package/packages/agentsam-repository/README.md +3 -0
- package/packages/agentsam-repository/package.json +1 -1
- package/packages/agentsam-vault/package.json +1 -1
- package/packages/agentsam-workbench/README.md +43 -0
- package/packages/agentsam-workbench/package.json +14 -4
- package/packages/agentsam-workbench/src/agent/AgentConversationSurface.tsx +108 -0
- package/packages/agentsam-workbench/src/agent/AgentPanel.tsx +25 -8
- package/packages/agentsam-workbench/src/agent/AgentRuntimeField.tsx +152 -0
- package/packages/agentsam-workbench/src/agent/Composer.tsx +10 -1
- package/packages/agentsam-workbench/src/agent/RunMode.ts +26 -0
- package/packages/agentsam-workbench/src/agent/Thread.tsx +18 -3
- package/packages/agentsam-workbench/src/agent/index.ts +3 -0
- package/packages/agentsam-workbench/src/index.ts +4 -0
- package/packages/agentsam-workbench/src/manufacturing/PreflightIndicator.tsx +203 -0
- package/packages/agentsam-workbench/src/manufacturing/index.ts +2 -0
- package/packages/agentsam-workbench/src/manufacturing/loading.ts +147 -0
- package/packages/agentsam-workbench/src/widgets/BuiltinWidget.tsx +22 -0
- package/packages/agentsam-workbench/src/widgets/CountdownWidget.tsx +68 -0
- package/packages/agentsam-workbench/src/widgets/WidgetFrame.tsx +56 -0
- package/packages/agentsam-workbench/src/widgets/countdown.ts +25 -0
- package/packages/agentsam-workbench/src/widgets/index.ts +6 -0
- package/packages/agentsam-workbench/src/widgets/registry.ts +13 -0
- package/packages/agentsam-workbench/src/widgets/useCountdown.ts +128 -0
- package/packages/agentsam-workbench/src/widgets/widgets.css +102 -0
- package/packages/connectors/{cloudflare → cfoa}/package.json +3 -3
- package/packages/heuristic-theme/package.json +1 -1
- package/packages/identity/README.md +3 -0
- package/packages/identity/backend/README.md +3 -0
- package/packages/identity/package.json +2 -2
- package/packages/identity/src/frontend/auth-portal/README.md +3 -0
- package/packages/identity/src/index.js +1 -1
- package/packages/identity/src/oauth/README.md +4 -1
- package/packages/identity/src/oauth/credentials.js +1 -1
- package/packages/identity/src/server/worker-router.js +1 -1
- package/packages/identity/tests/google-desktop-identity-login.test.mjs +1 -1
- package/packages/identity/tests/lane1-packed-consumer.test.mjs +1 -1
- package/packages/identity/tests/oauth-presets-accounts-ssot.test.mjs +1 -1
- package/packages/providers/completeful/package.json +1 -1
- package/packages/theme-church-site/package.json +2 -2
- package/packages/theme-companions-site/package.json +2 -2
- package/packages/theme-floors-site/package.json +2 -2
- package/packages/theme-fuelnfree-site/package.json +2 -2
- package/packages/theme-handyman-site/package.json +2 -2
- package/packages/theme-insurance-site/package.json +2 -2
- package/packages/theme-scenes/package.json +1 -1
- package/packages/theme-shinshu-site/package.json +2 -2
- package/packages/work-graph/package.json +1 -1
- package/protocol/apps/agentsam.app.v1.schema.json +1 -1
- package/protocol/apps/agentsam.host-install.v1.schema.json +1 -1
- package/protocol/assets/asset-record.v1.schema.json +1 -1
- package/protocol/brand/brandpack.v1.schema.json +1 -1
- package/protocol/capabilities/capability-manifest.schema.json +1 -1
- package/protocol/capabilities/knowledge-search-input.schema.json +1 -0
- package/protocol/credentials/issue.v1.schema.json +1 -1
- package/protocol/database/agentsam.schema-pack.v1.schema.json +1 -1
- package/protocol/database/connection.v1.schema.json +1 -1
- package/protocol/embeddings/embedding-profile.v1.schema.json +1 -1
- package/protocol/errors/README.md +36 -0
- package/protocol/errors/agentsam.error.v2.schema.json +821 -0
- package/protocol/errors/error-catalog.json +3506 -158
- package/protocol/errors/error-envelope.schema.json +195 -52
- package/protocol/errors/recovery.v1.schema.json +1 -1
- package/protocol/features/agentsam.feature.v1.schema.json +1 -1
- package/protocol/hooks/README.md +18 -0
- package/protocol/hooks/agentsam.hook.output.v1.schema.json +27 -0
- package/protocol/hooks/agentsam.hook.receipt.v1.schema.json +61 -0
- package/protocol/hooks/agentsam.hook.v1.schema.json +35 -0
- package/protocol/hooks/agentsam.hooks.config.v1.schema.json +78 -0
- package/protocol/local-engine/benchmark.v1.schema.json +1 -1
- package/protocol/local-engine/engine.v1.schema.json +1 -1
- package/protocol/models/README.md +3 -0
- package/protocol/models/model-inventory-v2.schema.json +1 -1
- package/protocol/models/provider-model-snapshot.v1.schema.json +22 -0
- package/protocol/receipts/agentsam.receipt.v1.json +95 -0
- package/protocol/rpc/v1/errors.proto +1 -0
- package/protocol/runtime/agentsam.runtime.v1.schema.json +1 -1
- package/protocol/runtime/workspace-fs.v1.schema.json +1 -1
- package/protocol/sam/activity.v1.schema.json +1 -1
- package/protocol/sam/answer.v1.schema.json +1 -1
- package/protocol/sam/calibration.v1.schema.json +1 -1
- package/protocol/sam/decision-receipt.v1.schema.json +1 -1
- package/protocol/sam/evaluation.v1.schema.json +1 -1
- package/protocol/sam/operation.schema.json +1 -1
- package/protocol/sam/outcome.v1.schema.json +1 -1
- package/protocol/sam/question.v1.schema.json +1 -1
- package/protocol/sam/result.schema.json +1 -1
- package/protocol/sam/state.v1.schema.json +1 -1
- package/protocol/scoring/scorecard.v1.schema.json +1 -1
- package/protocol/skills/agentsam.interaction.v1.schema.json +1 -1
- package/protocol/skills/agentsam.skill.v1.schema.json +1 -1
- package/protocol/theme-refinery/product-metadata.schema.json +1 -1
- package/protocol/theme-refinery/receipts/products-registry-batch-20260924.json +6 -6
- package/protocol/theme-refinery/receipts/theme-harvest-20260924.json +6 -6
- package/protocol/theme-refinery/reconciliation-receipt.schema.json +1 -1
- package/protocol/ui/icon.v1.schema.json +1 -1
- package/python/README.md +20 -0
- package/python/agentsam_sdk/errors/__init__.py +4 -0
- package/python/agentsam_sdk/errors/vocabulary.py +2730 -0
- package/python/agentsam_sdk/hooks/__init__.py +32 -0
- package/python/agentsam_sdk/hooks/adapters.py +132 -0
- package/python/agentsam_sdk/hooks/contracts.py +121 -0
- package/python/agentsam_sdk/hooks/runtime.py +253 -0
- package/python/tests/test_hooks.py +115 -0
- package/skills/README.md +3 -0
- package/src/acp/agent-executor.js +106 -0
- package/src/acp/client.js +316 -0
- package/src/acp/dependencies.js +426 -0
- package/src/acp/http.js +207 -0
- package/src/acp/index.js +22 -0
- package/src/acp/runs.js +125 -0
- package/src/acp/runtime-selection.js +180 -0
- package/src/agent/responses-runner.js +145 -1
- package/src/cli/command-catalog.js +4 -0
- package/src/cli.js +33 -0
- package/src/commands/cheat-sheet.js +1 -0
- package/src/commands/cloudflare-login.js +1 -1
- package/src/commands/cloudflare.js +2 -2
- package/src/commands/connections.js +1 -1
- package/src/commands/go.js +76 -6
- package/src/commands/hooks.js +260 -0
- package/src/commands/merch.js +5 -0
- package/src/commands/mini.js +1 -1
- package/src/commands/models.js +1 -1
- package/src/commands/receipts.js +140 -0
- package/src/commands/run.js +253 -0
- package/src/commands/shell.js +114 -9
- package/src/errors/diagnostic.js +9 -9
- package/src/go/container.js +1 -1
- package/src/go/contract.js +61 -18
- package/src/go/discover.js +0 -4
- package/src/go/index.js +13 -1
- package/src/go/probe.js +109 -0
- package/src/go/{cloudflare.js → providers/cloudflare.js} +36 -136
- package/src/go/verify.js +1 -1
- package/src/index.js +32 -0
- package/src/indexing/ingest/inventory.js +1 -1
- package/src/knowledge/service/grpc-codec.js +2 -0
- package/src/lib/deploy/local-studio.js +2 -2
- package/src/lib/mini/scaffold.js +1 -1
- package/src/lib/slash-commands.js +1 -0
- package/src/lib/whoami-capabilities.js +1 -1
- package/src/local/runtime-store.js +54 -0
- package/src/mcp/cloudflare-bundles.js +1 -1
- package/src/models/catalog.js +0 -49
- package/src/models/inventory-core.js +69 -0
- package/src/plugins/index.js +9 -1
- package/src/plugins/registry.js +115 -6
- package/src/receipts/contract.js +68 -0
- package/src/receipts/index.js +20 -0
- package/src/receipts/prune.js +64 -0
- package/src/receipts/sinks.js +285 -0
- package/src/rpc/generated/errors_pb.js +49 -1
- package/src/tools/runtime.js +13 -5
- package/templates/mini/gadget/app.js +15 -40
- package/templates/mini/gadget/index.html +7 -7
- package/templates/mini/shared/style.css +1 -1
- /package/packages/connectors/{cloudflare → cfoa}/OAUTH_STORAGE_AUDIT.md +0 -0
- /package/packages/connectors/{cloudflare → cfoa}/src/api-client.js +0 -0
- /package/packages/connectors/{cloudflare → cfoa}/src/capabilities.js +0 -0
- /package/packages/connectors/{cloudflare → cfoa}/src/credential.js +0 -0
- /package/packages/connectors/{cloudflare → cfoa}/src/families/brand-protection.js +0 -0
- /package/packages/connectors/{cloudflare → cfoa}/src/families/keyless.js +0 -0
- /package/packages/connectors/{cloudflare → cfoa}/src/families/pages.js +0 -0
- /package/packages/connectors/{cloudflare → cfoa}/src/families/scanner.js +0 -0
- /package/packages/connectors/{cloudflare → cfoa}/src/families/snippets.js +0 -0
- /package/packages/connectors/{cloudflare → cfoa}/src/families/tag-gateway.js +0 -0
- /package/packages/connectors/{cloudflare → cfoa}/src/families/tags.js +0 -0
- /package/packages/connectors/{cloudflare → cfoa}/src/families/token-validation.js +0 -0
- /package/packages/connectors/{cloudflare → cfoa}/src/families/vectorize.js +0 -0
- /package/packages/connectors/{cloudflare → cfoa}/src/families/workflows.js +0 -0
- /package/packages/connectors/{cloudflare → cfoa}/src/index.js +0 -0
- /package/packages/connectors/{cloudflare → cfoa}/src/oauth-persist.js +0 -0
- /package/packages/connectors/{cloudflare → cfoa}/src/owner.js +0 -0
- /package/packages/connectors/{cloudflare → cfoa}/src/permission-options.js +0 -0
- /package/packages/connectors/{cloudflare → cfoa}/src/routes.js +0 -0
- /package/packages/connectors/{cloudflare → cfoa}/src/scope-catalog.js +0 -0
- /package/packages/connectors/{cloudflare → cfoa}/src/vault.js +0 -0
- /package/packages/connectors/{cloudflare → cfoa}/tests/capabilities.test.mjs +0 -0
- /package/packages/connectors/{cloudflare → cfoa}/tests/connector.test.mjs +0 -0
- /package/packages/connectors/{cloudflare → cfoa}/tests/oauth-persist.test.mjs +0 -0
- /package/packages/identity/src/oauth/{google-desktop-exchange.js → goaude.js} +0 -0
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import type { AgentRunStatus } from './agent';
|
|
2
|
+
export type AgentRunSuspensionReason = 'external' | 'child_run' | 'approval' | 'input' | 'retry' | 'scheduled' | 'rate_limit';
|
|
3
|
+
export interface AgentRunSuspension {
|
|
4
|
+
runId: string;
|
|
5
|
+
state: 'waiting_external' | 'waiting_child' | 'awaiting_input' | 'awaiting_approval' | 'sleeping' | 'retry_scheduled';
|
|
6
|
+
reason: AgentRunSuspensionReason;
|
|
7
|
+
wakeAt?: number;
|
|
8
|
+
wakeEvent?: string;
|
|
9
|
+
dependencyRunIds?: string[];
|
|
10
|
+
attempt?: number;
|
|
11
|
+
resumeStepId?: string;
|
|
12
|
+
checkpointRef?: string;
|
|
13
|
+
expiresAt?: number;
|
|
14
|
+
metadata?: Record<string, unknown>;
|
|
15
|
+
}
|
|
16
|
+
export type AgentRunWakeKind = 'event' | 'dependency' | 'scheduled' | 'manual';
|
|
17
|
+
export interface AgentRunWakeSignal {
|
|
18
|
+
id: string;
|
|
19
|
+
runId: string;
|
|
20
|
+
kind: AgentRunWakeKind;
|
|
21
|
+
occurredAt: number;
|
|
22
|
+
dedupeKey: string;
|
|
23
|
+
eventKey?: string;
|
|
24
|
+
dependencyRunId?: string;
|
|
25
|
+
metadata?: Record<string, unknown>;
|
|
26
|
+
}
|
|
27
|
+
export type AgentRunRetryClass = 'transient' | 'wait' | 'replan' | 'terminal';
|
|
28
|
+
export interface AgentRunRetryClassificationInput {
|
|
29
|
+
code?: string | null;
|
|
30
|
+
statusCode?: number | null;
|
|
31
|
+
retryable?: boolean | null;
|
|
32
|
+
}
|
|
33
|
+
export interface AgentRunRetryClassification {
|
|
34
|
+
class: AgentRunRetryClass;
|
|
35
|
+
automaticRetry: boolean;
|
|
36
|
+
reason: string;
|
|
37
|
+
}
|
|
38
|
+
export declare function classifyAgentRunRetry(input?: AgentRunRetryClassificationInput): AgentRunRetryClassification;
|
|
39
|
+
export type AgentRunWakeDecisionReason = 'accepted' | 'duplicate' | 'run_mismatch' | 'expired' | 'condition_not_met';
|
|
40
|
+
export interface AgentRunWakeDecision {
|
|
41
|
+
accepted: boolean;
|
|
42
|
+
reason: AgentRunWakeDecisionReason;
|
|
43
|
+
nextStatus?: 'queued';
|
|
44
|
+
}
|
|
45
|
+
export declare function evaluateAgentRunWake(suspension: AgentRunSuspension, wake: AgentRunWakeSignal, options?: {
|
|
46
|
+
consumedDedupeKeys?: Iterable<string>;
|
|
47
|
+
now?: number;
|
|
48
|
+
}): AgentRunWakeDecision;
|
|
49
|
+
export declare function wakeMatchesSuspension(suspension: AgentRunSuspension, wake: AgentRunWakeSignal, now?: number): boolean;
|
|
50
|
+
export type AgentRunLifecycleAction = {
|
|
51
|
+
type: 'start';
|
|
52
|
+
} | {
|
|
53
|
+
type: 'suspend';
|
|
54
|
+
status: AgentRunSuspension['state'];
|
|
55
|
+
} | {
|
|
56
|
+
type: 'wake';
|
|
57
|
+
} | {
|
|
58
|
+
type: 'complete';
|
|
59
|
+
} | {
|
|
60
|
+
type: 'fail';
|
|
61
|
+
} | {
|
|
62
|
+
type: 'cancel';
|
|
63
|
+
} | {
|
|
64
|
+
type: 'timeout';
|
|
65
|
+
};
|
|
66
|
+
export declare function transitionAgentRunStatus(status: AgentRunStatus, action: AgentRunLifecycleAction): AgentRunStatus;
|
|
67
|
+
export type AgentRunEventType = 'run.created' | 'run.queued' | 'run.started' | 'run.status' | 'run.suspended' | 'run.woken' | 'run.cancel_requested' | 'run.cancelled' | 'run.timed_out' | 'run.failed' | 'run.completed' | 'step.started' | 'step.progress' | 'step.completed' | 'decision.made' | 'tool.started' | 'tool.completed' | 'artifact.created' | 'file.changed' | 'approval.required' | 'input.required' | 'verification.completed' | (string & {});
|
|
68
|
+
export type AgentActivityPhase = 'boot' | 'observe' | 'context' | 'plan' | 'execute' | 'verify' | 'compact' | 'waiting' | 'recover' | 'complete';
|
|
69
|
+
export type AgentActivityEventType = 'run.started' | 'phase.changed' | 'step.started' | 'step.progress' | 'step.completed' | 'decision.made' | 'tool.started' | 'tool.completed' | 'artifact.created' | 'file.changed' | 'approval.required' | 'input.required' | 'verification.completed' | 'run.failed' | 'run.completed';
|
|
70
|
+
export interface AgentRunEvent {
|
|
71
|
+
id: string;
|
|
72
|
+
runId: string;
|
|
73
|
+
parentRunId?: string;
|
|
74
|
+
seq: number;
|
|
75
|
+
eventType: AgentRunEventType;
|
|
76
|
+
status?: AgentRunStatus;
|
|
77
|
+
phase?: AgentActivityPhase;
|
|
78
|
+
stepId?: string;
|
|
79
|
+
label?: string;
|
|
80
|
+
detail?: string | null;
|
|
81
|
+
progress?: {
|
|
82
|
+
current: number;
|
|
83
|
+
total: number;
|
|
84
|
+
} | null;
|
|
85
|
+
source?: {
|
|
86
|
+
kind?: string;
|
|
87
|
+
name?: string | null;
|
|
88
|
+
} | null;
|
|
89
|
+
evidence?: Record<string, unknown> | null;
|
|
90
|
+
createdAt: number;
|
|
91
|
+
}
|
|
92
|
+
export interface AgentActivityEventV1 {
|
|
93
|
+
schema: 'agentsam.activity.v1';
|
|
94
|
+
run_id: string;
|
|
95
|
+
seq: number;
|
|
96
|
+
timestamp: string;
|
|
97
|
+
phase: AgentActivityPhase;
|
|
98
|
+
event: AgentActivityEventType;
|
|
99
|
+
step_id: string | null;
|
|
100
|
+
parent_id: string | null;
|
|
101
|
+
label: string;
|
|
102
|
+
detail: string | null;
|
|
103
|
+
progress: {
|
|
104
|
+
current: number;
|
|
105
|
+
total: number;
|
|
106
|
+
} | null;
|
|
107
|
+
source: {
|
|
108
|
+
kind: string;
|
|
109
|
+
name: string | null;
|
|
110
|
+
};
|
|
111
|
+
evidence: Record<string, unknown> | null;
|
|
112
|
+
}
|
|
113
|
+
export declare function projectRunEventToActivity(event: AgentRunEvent): AgentActivityEventV1;
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
// src/run.ts
|
|
2
|
+
var WAIT_CODES = /* @__PURE__ */ new Set([
|
|
3
|
+
"approval_required",
|
|
4
|
+
"input_required",
|
|
5
|
+
"external_pending",
|
|
6
|
+
"dependency_pending"
|
|
7
|
+
]);
|
|
8
|
+
var REPLAN_CODES = /* @__PURE__ */ new Set([
|
|
9
|
+
"precondition_failed",
|
|
10
|
+
"repository_changed",
|
|
11
|
+
"capability_unavailable"
|
|
12
|
+
]);
|
|
13
|
+
var TRANSIENT_CODES = /* @__PURE__ */ new Set([
|
|
14
|
+
"timeout",
|
|
15
|
+
"request_timeout",
|
|
16
|
+
"rate_limited",
|
|
17
|
+
"provider_unavailable",
|
|
18
|
+
"runtime_unavailable",
|
|
19
|
+
"econnreset",
|
|
20
|
+
"econnrefused",
|
|
21
|
+
"etimedout",
|
|
22
|
+
"eai_again"
|
|
23
|
+
]);
|
|
24
|
+
function classifyAgentRunRetry(input = {}) {
|
|
25
|
+
const code = String(input.code || "").trim().toLowerCase();
|
|
26
|
+
const statusCode = Number(input.statusCode);
|
|
27
|
+
if (input.retryable === true) {
|
|
28
|
+
return { class: "transient", automaticRetry: true, reason: code || "explicit_retryable" };
|
|
29
|
+
}
|
|
30
|
+
if (input.retryable === false) {
|
|
31
|
+
return { class: "terminal", automaticRetry: false, reason: code || "explicit_non_retryable" };
|
|
32
|
+
}
|
|
33
|
+
if (WAIT_CODES.has(code)) {
|
|
34
|
+
return { class: "wait", automaticRetry: false, reason: code };
|
|
35
|
+
}
|
|
36
|
+
if (REPLAN_CODES.has(code)) {
|
|
37
|
+
return { class: "replan", automaticRetry: false, reason: code };
|
|
38
|
+
}
|
|
39
|
+
if (TRANSIENT_CODES.has(code) || [408, 425, 429, 500, 502, 503, 504].includes(statusCode)) {
|
|
40
|
+
return { class: "transient", automaticRetry: true, reason: code || `http_${statusCode}` };
|
|
41
|
+
}
|
|
42
|
+
return { class: "terminal", automaticRetry: false, reason: code || "unclassified_failure" };
|
|
43
|
+
}
|
|
44
|
+
function evaluateAgentRunWake(suspension, wake, options = {}) {
|
|
45
|
+
const consumed = new Set(options.consumedDedupeKeys || []);
|
|
46
|
+
if (consumed.has(wake.dedupeKey)) return { accepted: false, reason: "duplicate" };
|
|
47
|
+
if (suspension.runId !== wake.runId) return { accepted: false, reason: "run_mismatch" };
|
|
48
|
+
const now = options.now ?? wake.occurredAt;
|
|
49
|
+
if (suspension.expiresAt != null && now > suspension.expiresAt) {
|
|
50
|
+
return { accepted: false, reason: "expired" };
|
|
51
|
+
}
|
|
52
|
+
const matched = wake.kind === "manual" || Boolean(suspension.wakeEvent && wake.eventKey === suspension.wakeEvent) || Boolean(
|
|
53
|
+
wake.kind === "dependency" && wake.dependencyRunId && (suspension.dependencyRunIds || []).includes(wake.dependencyRunId)
|
|
54
|
+
) || Boolean(wake.kind === "scheduled" && suspension.wakeAt != null && now >= suspension.wakeAt);
|
|
55
|
+
return matched ? { accepted: true, reason: "accepted", nextStatus: "queued" } : { accepted: false, reason: "condition_not_met" };
|
|
56
|
+
}
|
|
57
|
+
function wakeMatchesSuspension(suspension, wake, now = wake.occurredAt) {
|
|
58
|
+
return evaluateAgentRunWake(suspension, wake, { now }).accepted;
|
|
59
|
+
}
|
|
60
|
+
function transitionAgentRunStatus(status, action) {
|
|
61
|
+
if (status === "completed" || status === "failed" || status === "cancelled" || status === "timed_out") {
|
|
62
|
+
return status;
|
|
63
|
+
}
|
|
64
|
+
if (action.type === "cancel") return "cancelled";
|
|
65
|
+
if (action.type === "timeout") return "timed_out";
|
|
66
|
+
if (action.type === "complete") return "completed";
|
|
67
|
+
if (action.type === "fail") return "failed";
|
|
68
|
+
if (action.type === "suspend") return action.status;
|
|
69
|
+
if (action.type === "wake") return "queued";
|
|
70
|
+
if (action.type === "start") return "running";
|
|
71
|
+
return status;
|
|
72
|
+
}
|
|
73
|
+
function phaseForRunEvent(event) {
|
|
74
|
+
if (event.phase) return event.phase;
|
|
75
|
+
if (event.eventType === "run.created" || event.eventType === "run.queued" || event.eventType === "run.started") return "boot";
|
|
76
|
+
if (event.eventType === "run.suspended") return "waiting";
|
|
77
|
+
if (event.eventType === "run.woken" || event.eventType === "run.cancel_requested") return "recover";
|
|
78
|
+
if (event.eventType === "verification.completed") return "verify";
|
|
79
|
+
if (event.eventType === "run.completed" || event.eventType === "run.cancelled" || event.eventType === "run.timed_out") return "complete";
|
|
80
|
+
if (event.eventType === "run.failed") return "complete";
|
|
81
|
+
return "execute";
|
|
82
|
+
}
|
|
83
|
+
function activityTypeForRunEvent(event) {
|
|
84
|
+
if (event.eventType === "run.started") return "run.started";
|
|
85
|
+
if (event.eventType === "run.completed") return "run.completed";
|
|
86
|
+
if (event.eventType === "run.failed" || event.eventType === "run.timed_out") return "run.failed";
|
|
87
|
+
if (event.eventType === "run.cancelled" || event.eventType === "run.suspended" || event.eventType === "run.woken" || event.eventType === "run.status" || event.eventType === "run.cancel_requested" || event.eventType === "run.created" || event.eventType === "run.queued") return "phase.changed";
|
|
88
|
+
if (event.eventType === "step.started") return "step.started";
|
|
89
|
+
if (event.eventType === "step.completed") return "step.completed";
|
|
90
|
+
if (event.eventType === "decision.made") return "decision.made";
|
|
91
|
+
if (event.eventType === "tool.started") return "tool.started";
|
|
92
|
+
if (event.eventType === "tool.completed") return "tool.completed";
|
|
93
|
+
if (event.eventType === "artifact.created") return "artifact.created";
|
|
94
|
+
if (event.eventType === "file.changed") return "file.changed";
|
|
95
|
+
if (event.eventType === "approval.required") return "approval.required";
|
|
96
|
+
if (event.eventType === "input.required") return "input.required";
|
|
97
|
+
if (event.eventType === "verification.completed") return "verification.completed";
|
|
98
|
+
return "step.progress";
|
|
99
|
+
}
|
|
100
|
+
function projectRunEventToActivity(event) {
|
|
101
|
+
const evidence = {
|
|
102
|
+
...event.evidence || {},
|
|
103
|
+
run_event_id: event.id,
|
|
104
|
+
run_event_type: event.eventType,
|
|
105
|
+
...event.status ? { run_status: event.status } : {}
|
|
106
|
+
};
|
|
107
|
+
return {
|
|
108
|
+
schema: "agentsam.activity.v1",
|
|
109
|
+
run_id: event.runId,
|
|
110
|
+
seq: event.seq,
|
|
111
|
+
timestamp: new Date(event.createdAt).toISOString(),
|
|
112
|
+
phase: phaseForRunEvent(event),
|
|
113
|
+
event: activityTypeForRunEvent(event),
|
|
114
|
+
step_id: event.stepId ?? null,
|
|
115
|
+
parent_id: event.parentRunId ?? null,
|
|
116
|
+
label: event.label || "",
|
|
117
|
+
detail: event.detail ?? null,
|
|
118
|
+
progress: event.progress ?? null,
|
|
119
|
+
source: {
|
|
120
|
+
kind: event.source?.kind || "sam",
|
|
121
|
+
name: event.source?.name ?? null
|
|
122
|
+
},
|
|
123
|
+
evidence
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
export {
|
|
127
|
+
classifyAgentRunRetry,
|
|
128
|
+
evaluateAgentRunWake,
|
|
129
|
+
projectRunEventToActivity,
|
|
130
|
+
transitionAgentRunStatus,
|
|
131
|
+
wakeMatchesSuspension
|
|
132
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import type { AgentAuthorityRequirement } from './authority';
|
|
2
|
+
export interface AgentCapability {
|
|
3
|
+
id: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
enabled?: boolean;
|
|
7
|
+
metadata?: Record<string, unknown>;
|
|
8
|
+
}
|
|
9
|
+
export type AgentJsonSchema = Record<string, unknown>;
|
|
10
|
+
export type AgentToolSideEffectLevel = 'none' | 'local_write' | 'external_write' | 'billable_external_write' | 'destructive_possible';
|
|
11
|
+
export type AgentToolRiskLevel = 'low' | 'moderate' | 'high' | 'critical';
|
|
12
|
+
export type AgentToolReceiptMode = 'full' | 'redacted' | 'metadata_only';
|
|
13
|
+
export type AgentToolIdempotencyMode = 'not_applicable' | 'intrinsic' | 'supported' | 'required';
|
|
14
|
+
export type AgentToolHandlerType = 'local' | 'http' | 'worker_rpc' | 'execos' | 'mcp' | 'custom';
|
|
15
|
+
export interface AgentToolHandlerReference {
|
|
16
|
+
type: AgentToolHandlerType;
|
|
17
|
+
ref: string;
|
|
18
|
+
metadata?: Record<string, unknown>;
|
|
19
|
+
}
|
|
20
|
+
export interface AgentToolRetryPolicy {
|
|
21
|
+
maxAttempts: number;
|
|
22
|
+
backoff?: 'none' | 'fixed' | 'exponential';
|
|
23
|
+
baseDelayMs?: number;
|
|
24
|
+
maxDelayMs?: number;
|
|
25
|
+
retryableReasons?: string[];
|
|
26
|
+
}
|
|
27
|
+
export interface AgentToolDefinition {
|
|
28
|
+
toolKey: string;
|
|
29
|
+
displayName: string;
|
|
30
|
+
description?: string;
|
|
31
|
+
provider?: string;
|
|
32
|
+
pluginId?: string;
|
|
33
|
+
capabilityKey: string;
|
|
34
|
+
handler?: AgentToolHandlerReference;
|
|
35
|
+
inputSchema: AgentJsonSchema;
|
|
36
|
+
outputSchema: AgentJsonSchema;
|
|
37
|
+
authority?: AgentAuthorityRequirement[];
|
|
38
|
+
riskLevel: AgentToolRiskLevel;
|
|
39
|
+
sideEffectLevel: AgentToolSideEffectLevel;
|
|
40
|
+
idempotencyMode: AgentToolIdempotencyMode;
|
|
41
|
+
timeoutMs?: number;
|
|
42
|
+
retryPolicy?: AgentToolRetryPolicy;
|
|
43
|
+
receiptMode?: AgentToolReceiptMode;
|
|
44
|
+
sensitiveInputPaths?: string[];
|
|
45
|
+
sensitiveOutputPaths?: string[];
|
|
46
|
+
emitsEvents?: string[];
|
|
47
|
+
active?: boolean;
|
|
48
|
+
metadata?: Record<string, unknown>;
|
|
49
|
+
}
|
|
50
|
+
export type AgentToolCallStatus = 'queued' | 'running' | 'retrying' | 'awaiting_input' | 'completed' | 'failed' | 'cancelled' | 'timed_out';
|
|
51
|
+
export interface AgentToolCall {
|
|
52
|
+
id: string;
|
|
53
|
+
runId?: string;
|
|
54
|
+
name: string;
|
|
55
|
+
toolKey?: string;
|
|
56
|
+
status: AgentToolCallStatus;
|
|
57
|
+
startedAt?: number;
|
|
58
|
+
completedAt?: number;
|
|
59
|
+
input?: unknown;
|
|
60
|
+
output?: unknown;
|
|
61
|
+
error?: string;
|
|
62
|
+
metadata?: Record<string, unknown>;
|
|
63
|
+
}
|
|
64
|
+
export type AgentToolPermissionDecision = 'allow_once' | 'allow_session' | 'deny';
|
|
65
|
+
export interface AgentToolPermissionDatum {
|
|
66
|
+
label: string;
|
|
67
|
+
value: string;
|
|
68
|
+
}
|
|
69
|
+
export interface AgentToolPermissionRequest {
|
|
70
|
+
id: string;
|
|
71
|
+
toolKey: string;
|
|
72
|
+
displayName: string;
|
|
73
|
+
provider?: string;
|
|
74
|
+
summary?: string;
|
|
75
|
+
scope?: string;
|
|
76
|
+
sharedData?: AgentToolPermissionDatum[];
|
|
77
|
+
riskLevel?: AgentToolRiskLevel;
|
|
78
|
+
sideEffectLevel?: AgentToolSideEffectLevel;
|
|
79
|
+
destructive?: boolean;
|
|
80
|
+
openWorld?: boolean;
|
|
81
|
+
metadata?: Record<string, unknown>;
|
|
82
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { AgentSamErrorEnvelope } from './errors';
|
|
2
|
+
export type AgentSamWidgetSize = 'small' | 'medium' | 'large';
|
|
3
|
+
export type AgentSamWidgetKind = 'countdown' | 'clock' | 'metric' | 'list' | 'launcher' | 'brand' | (string & {});
|
|
4
|
+
export interface AgentSamWidgetDataSource {
|
|
5
|
+
/** Existing route key, tool operation id, or host-owned projection id. */
|
|
6
|
+
source: string;
|
|
7
|
+
/** Host-defined refresh class, such as realtime, short, medium, or manual. */
|
|
8
|
+
refresh?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface AgentSamWidgetDefinition {
|
|
11
|
+
id: string;
|
|
12
|
+
kind: AgentSamWidgetKind;
|
|
13
|
+
title: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
icon?: string;
|
|
16
|
+
sizes: readonly AgentSamWidgetSize[];
|
|
17
|
+
data?: AgentSamWidgetDataSource;
|
|
18
|
+
/** Route key or host-resolved deep link. Do not put credentials or raw provider secrets here. */
|
|
19
|
+
deeplink?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface AgentSamWidgetReadyState {
|
|
22
|
+
status: 'ready';
|
|
23
|
+
updated_at?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface AgentSamWidgetStaleState {
|
|
26
|
+
status: 'stale';
|
|
27
|
+
updated_at: string;
|
|
28
|
+
error: AgentSamErrorEnvelope;
|
|
29
|
+
}
|
|
30
|
+
export interface AgentSamWidgetEmptyState {
|
|
31
|
+
status: 'empty';
|
|
32
|
+
updated_at?: string;
|
|
33
|
+
}
|
|
34
|
+
export interface AgentSamWidgetErrorState {
|
|
35
|
+
status: 'error';
|
|
36
|
+
error: AgentSamErrorEnvelope;
|
|
37
|
+
}
|
|
38
|
+
export type AgentSamWidgetState = AgentSamWidgetReadyState | AgentSamWidgetStaleState | AgentSamWidgetEmptyState | AgentSamWidgetErrorState;
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inneranimalmedia/agentsam-contracts",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.11",
|
|
4
4
|
"description": "Framework-neutral AgentSam contracts for workbench, tools, providers, events, hooks, execution, identity and repository context.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -17,6 +17,10 @@
|
|
|
17
17
|
"types": "./dist/events.d.ts",
|
|
18
18
|
"import": "./dist/events.js"
|
|
19
19
|
},
|
|
20
|
+
"./run": {
|
|
21
|
+
"types": "./dist/run.d.ts",
|
|
22
|
+
"import": "./dist/run.js"
|
|
23
|
+
},
|
|
20
24
|
"./tools": {
|
|
21
25
|
"types": "./dist/tools.d.ts",
|
|
22
26
|
"import": "./dist/tools.js"
|
|
@@ -64,6 +68,10 @@
|
|
|
64
68
|
"./errors": {
|
|
65
69
|
"types": "./dist/errors.d.ts",
|
|
66
70
|
"import": "./dist/errors.js"
|
|
71
|
+
},
|
|
72
|
+
"./widgets": {
|
|
73
|
+
"types": "./dist/widgets.d.ts",
|
|
74
|
+
"import": "./dist/widgets.js"
|
|
67
75
|
}
|
|
68
76
|
},
|
|
69
77
|
"scripts": {
|
|
@@ -4,7 +4,7 @@ import { fileURLToPath } from 'node:url';
|
|
|
4
4
|
import { build } from 'esbuild';
|
|
5
5
|
|
|
6
6
|
const cwd = fileURLToPath(new URL('../', import.meta.url));
|
|
7
|
-
const modules = ['index','agent','events','tools','authority','execution','providers','hooks','artifacts','context','adapter','models','identity','repository','errors'];
|
|
7
|
+
const modules = ['index','agent','events','run','tools','authority','execution','providers','hooks','artifacts','context','adapter','models','identity','repository','errors','widgets'];
|
|
8
8
|
rmSync(`${cwd}/dist`, { recursive: true, force: true });
|
|
9
9
|
await build({
|
|
10
10
|
absWorkingDir: cwd,
|
|
@@ -22,14 +22,89 @@ export interface AgentInput {
|
|
|
22
22
|
capabilityIds?: string[];
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
export type
|
|
25
|
+
export type AgentRunMode = 'ask' | 'plan' | 'agent' | 'debug' | 'multitask';
|
|
26
|
+
|
|
27
|
+
export type AgentRunSelectedBy = 'manual' | 'automatic' | 'fallback';
|
|
28
|
+
|
|
29
|
+
export type AgentRunStatus =
|
|
30
|
+
| 'queued'
|
|
31
|
+
| 'running'
|
|
32
|
+
| 'paused'
|
|
33
|
+
| 'waiting_external'
|
|
34
|
+
| 'waiting_child'
|
|
35
|
+
| 'awaiting_input'
|
|
36
|
+
| 'awaiting_approval'
|
|
37
|
+
| 'sleeping'
|
|
38
|
+
| 'retry_scheduled'
|
|
39
|
+
| 'partial'
|
|
40
|
+
| 'completed'
|
|
41
|
+
| 'cancelled'
|
|
42
|
+
| 'failed'
|
|
43
|
+
| 'timed_out';
|
|
44
|
+
|
|
45
|
+
export type AgentRunTerminalStatus = 'completed' | 'cancelled' | 'failed' | 'timed_out';
|
|
46
|
+
|
|
47
|
+
export type AgentRunWaitingStatus =
|
|
48
|
+
| 'waiting_external'
|
|
49
|
+
| 'waiting_child'
|
|
50
|
+
| 'awaiting_input'
|
|
51
|
+
| 'awaiting_approval'
|
|
52
|
+
| 'sleeping'
|
|
53
|
+
| 'retry_scheduled';
|
|
26
54
|
|
|
27
55
|
export interface AgentRun {
|
|
28
56
|
id: string;
|
|
29
|
-
conversationId
|
|
57
|
+
conversationId?: string;
|
|
30
58
|
status: AgentRunStatus;
|
|
31
|
-
startedAt
|
|
59
|
+
startedAt?: number;
|
|
32
60
|
completedAt?: number;
|
|
61
|
+
|
|
62
|
+
accountId?: string;
|
|
63
|
+
kind?: string;
|
|
64
|
+
externalAgentId?: string;
|
|
65
|
+
externalRunId?: string;
|
|
66
|
+
parentRunId?: string;
|
|
67
|
+
sourceClient?: string;
|
|
68
|
+
surface?: string;
|
|
69
|
+
mode?: AgentRunMode;
|
|
33
70
|
modelId?: string;
|
|
71
|
+
modelKey?: string;
|
|
72
|
+
reasoningEffort?: string;
|
|
73
|
+
requestedServiceTier?: string;
|
|
74
|
+
actualServiceTier?: string;
|
|
75
|
+
selectedBy?: AgentRunSelectedBy;
|
|
76
|
+
cancelRequested?: boolean;
|
|
77
|
+
errorCode?: string;
|
|
78
|
+
errorMessage?: string;
|
|
34
79
|
error?: string;
|
|
80
|
+
modelCallCount?: number;
|
|
81
|
+
toolCallCount?: number;
|
|
82
|
+
inputTokens?: number;
|
|
83
|
+
cachedInputTokens?: number;
|
|
84
|
+
outputTokens?: number;
|
|
85
|
+
reasoningTokens?: number;
|
|
86
|
+
costUsd?: number;
|
|
87
|
+
createdAt?: number;
|
|
88
|
+
updatedAt?: number;
|
|
89
|
+
latencyMs?: number;
|
|
90
|
+
planId?: string;
|
|
91
|
+
todoId?: string;
|
|
92
|
+
metadata?: Record<string, unknown>;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function isAgentRunTerminalStatus(status: AgentRunStatus): status is AgentRunTerminalStatus {
|
|
96
|
+
return status === 'completed' || status === 'cancelled' || status === 'failed' || status === 'timed_out';
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function isAgentRunWaitingStatus(status: AgentRunStatus): status is AgentRunWaitingStatus {
|
|
100
|
+
return status === 'waiting_external'
|
|
101
|
+
|| status === 'waiting_child'
|
|
102
|
+
|| status === 'awaiting_input'
|
|
103
|
+
|| status === 'awaiting_approval'
|
|
104
|
+
|| status === 'sleeping'
|
|
105
|
+
|| status === 'retry_scheduled';
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function isAgentRunModelActiveStatus(status: AgentRunStatus): boolean {
|
|
109
|
+
return status === 'queued' || status === 'running';
|
|
35
110
|
}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
// GENERATED by scripts/generate-error-contracts.mjs. Do not edit by hand.
|
|
2
2
|
|
|
3
|
-
export const AGENTSAM_ERROR_SCHEMA_VERSION =
|
|
3
|
+
export const AGENTSAM_ERROR_SCHEMA_VERSION = 2 as const;
|
|
4
4
|
|
|
5
5
|
export type AgentSamErrorCode = "OK" | "CANCELLED" | "UNKNOWN" | "INVALID_ARGUMENT" | "DEADLINE_EXCEEDED" | "NOT_FOUND" | "ALREADY_EXISTS" | "PERMISSION_DENIED" | "RESOURCE_EXHAUSTED" | "FAILED_PRECONDITION" | "ABORTED" | "OUT_OF_RANGE" | "UNIMPLEMENTED" | "INTERNAL" | "UNAVAILABLE" | "DATA_LOSS" | "UNAUTHENTICATED";
|
|
6
|
-
export type AgentSamErrorReason = "unknown" | "input_invalid" | "input_out_of_range" | "precondition_failed" | "unsupported_operation" | "auth_missing" | "auth_invalid" | "permission_denied" | "user_permission_denied" | "provider_not_connected" | "provider_credential_missing" | "provider_credential_invalid" | "provider_credential_expired" | "provider_scope_insufficient" | "provider_budget_exhausted" | "provider_quota_exhausted" | "provider_rate_limited" | "provider_capacity_exhausted" | "provider_unavailable" | "provider_overloaded" | "provider_request_invalid" | "provider_model_not_found" | "provider_region_unsupported" | "provider_content_blocked" | "context_window_exceeded" | "service_tier_unsupported" | "continuation_invalid" | "target_not_found" | "already_exists" | "conflict" | "stale_version" | "rate_limited" | "quota_exhausted" | "capacity_exhausted" | "transport_unreachable" | "transport_refused" | "transport_timeout" | "upstream_invalid_response" | "dns_unresolved" | "tls_handshake_failed" | "tls_certificate_invalid" | "tunnel_connector_unavailable" | "cancelled" | "deadline_exceeded" | "execution_timeout" | "execution_failed" | "process_spawn_failed" | "process_crashed" | "process_output_limit" | "device_not_enrolled" | "device_credential_missing" | "device_credential_invalid" | "device_credential_expired" | "device_registration_missing" | "device_registration_stale" | "connection_revoked" | "connection_disabled" | "identity_resolution_failed" | "identity_mismatch" | "repository_scope_violation" | "repository_changed" | "index_stale" | "index_failed" | "embedding_failed" | "vector_store_failed" | "github_installation_missing" | "github_repository_not_found" | "github_rate_limited" | "github_secondary_rate_limited" | "github_scope_insufficient" | "cloudflare_workers_cpu_exhausted" | "cloudflare_service_binding_unavailable" | "cloudflare_durable_object_unavailable" | "cloudflare_d1_unavailable" | "cloudflare_r2_unavailable" | "docker_daemon_unavailable" | "docker_image_not_found" | "docker_build_failed" | "docker_container_failed" | "docker_registry_auth_failed" | "docker_pull_rate_limited" | "gcp_project_missing" | "gcp_api_disabled" | "gcp_quota_exhausted" | "gcp_vm_not_found" | "gcp_vm_unavailable" | "cad_tool_not_installed" | "cad_tool_not_executable" | "cad_tool_version_incompatible" | "cad_component_missing" | "cad_dependency_missing" | "cad_dependency_version_incompatible" | "cad_source_parse_failed" | "cad_input_format_unsupported" | "cad_import_failed" | "cad_model_recompute_failed" | "cad_constraint_unsatisfied" | "cad_geometry_invalid" | "cad_null_shape" | "cad_boolean_failed" | "cad_kernel_failed" | "cad_script_failed" | "cad_export_format_unsupported" | "cad_export_failed" | "cad_output_missing" | "cad_output_invalid" | "cad_render_engine_unavailable" | "cad_gpu_unavailable" | "cad_render_failed" | "cad_memory_exhausted" | "cad_process_crashed" | "cad_warning_escalated" | "policy_blocked" | "copyright_blocked" | "persistence_failed" | "data_corrupt" | "data_loss" | "internal" | "internal_invariant_violation" | "internal_configuration_invalid" | "internal_contract_violation" | "internal_adapter_failed" | "internal_dependency_failed";
|
|
6
|
+
export type AgentSamErrorReason = "unknown" | "input_invalid" | "input_out_of_range" | "precondition_failed" | "unsupported_operation" | "auth_missing" | "auth_invalid" | "permission_denied" | "user_permission_denied" | "provider_not_connected" | "provider_credential_missing" | "provider_credential_invalid" | "provider_credential_expired" | "provider_scope_insufficient" | "provider_budget_exhausted" | "provider_quota_exhausted" | "provider_rate_limited" | "provider_capacity_exhausted" | "provider_unavailable" | "provider_overloaded" | "provider_request_invalid" | "provider_model_not_found" | "provider_region_unsupported" | "provider_content_blocked" | "context_window_exceeded" | "service_tier_unsupported" | "continuation_invalid" | "target_not_found" | "already_exists" | "conflict" | "stale_version" | "rate_limited" | "quota_exhausted" | "capacity_exhausted" | "transport_unreachable" | "transport_refused" | "transport_timeout" | "upstream_invalid_response" | "dns_unresolved" | "tls_handshake_failed" | "tls_certificate_invalid" | "tunnel_connector_unavailable" | "cancelled" | "deadline_exceeded" | "execution_timeout" | "execution_failed" | "process_spawn_failed" | "process_crashed" | "process_output_limit" | "device_not_enrolled" | "device_credential_missing" | "device_credential_invalid" | "device_credential_expired" | "device_registration_missing" | "device_registration_stale" | "connection_revoked" | "connection_disabled" | "identity_resolution_failed" | "identity_mismatch" | "repository_scope_violation" | "repository_changed" | "index_stale" | "index_failed" | "embedding_failed" | "vector_store_failed" | "github_installation_missing" | "github_repository_not_found" | "github_rate_limited" | "github_secondary_rate_limited" | "github_scope_insufficient" | "cloudflare_workers_cpu_exhausted" | "cloudflare_service_binding_unavailable" | "cloudflare_durable_object_unavailable" | "cloudflare_d1_unavailable" | "cloudflare_r2_unavailable" | "docker_daemon_unavailable" | "docker_image_not_found" | "docker_build_failed" | "docker_container_failed" | "docker_registry_auth_failed" | "docker_pull_rate_limited" | "gcp_project_missing" | "gcp_api_disabled" | "gcp_quota_exhausted" | "gcp_vm_not_found" | "gcp_vm_unavailable" | "cad_tool_not_installed" | "cad_tool_not_executable" | "cad_tool_version_incompatible" | "cad_component_missing" | "cad_dependency_missing" | "cad_dependency_version_incompatible" | "cad_source_parse_failed" | "cad_input_format_unsupported" | "cad_import_failed" | "cad_model_recompute_failed" | "cad_constraint_unsatisfied" | "cad_geometry_invalid" | "cad_null_shape" | "cad_boolean_failed" | "cad_kernel_failed" | "cad_script_failed" | "cad_export_format_unsupported" | "cad_export_failed" | "cad_output_missing" | "cad_output_invalid" | "cad_render_engine_unavailable" | "cad_gpu_unavailable" | "cad_render_failed" | "cad_memory_exhausted" | "cad_process_crashed" | "cad_warning_escalated" | "policy_blocked" | "copyright_blocked" | "persistence_failed" | "data_corrupt" | "data_loss" | "internal" | "internal_invariant_violation" | "internal_configuration_invalid" | "internal_contract_violation" | "internal_adapter_failed" | "internal_dependency_failed" | "hook_definition_invalid" | "hook_duplicate_id" | "hook_not_found" | "hook_disabled" | "hook_event_unsupported" | "hook_configuration_invalid" | "hook_adapter_unknown" | "hook_adapter_unavailable" | "hook_handler_unavailable" | "hook_handler_timeout" | "hook_handler_failed" | "hook_output_invalid" | "hook_output_limit_exceeded" | "hook_output_field_unsupported" | "hook_http_timeout" | "hook_http_request_failed" | "hook_http_response_invalid" | "hook_http_response_limit_exceeded" | "hook_http_protocol_unsupported" | "hook_http_credentials_forbidden" | "hook_mcp_timeout" | "hook_mcp_server_unavailable" | "hook_mcp_capability_missing" | "hook_mcp_capability_duplicate" | "hook_mcp_response_invalid" | "hook_mcp_transport_failed" | "hook_lsp_timeout" | "hook_lsp_server_unavailable" | "hook_lsp_language_required" | "hook_lsp_capability_unsupported" | "hook_lsp_initialize_failed" | "hook_lsp_response_invalid" | "hook_command_required" | "hook_command_timeout" | "hook_command_spawn_failed" | "hook_command_exit_nonzero" | "hook_command_output_limit_exceeded" | "hook_command_output_invalid" | "hook_permission_denied" | "hook_capability_unavailable" | "hook_capability_duplicate" | "hook_error_handling_invalid" | "hook_error_handling_unsupported" | "hook_retry_limit_exceeded" | "hook_stop_decision_invalid" | "package_manifest_invalid" | "package_export_missing" | "package_file_missing" | "package_unwanted_file_included" | "package_dependency_missing" | "package_dependency_version_mismatch" | "lockfile_missing" | "lockfile_stale" | "lockfile_incompatible" | "workspace_not_installed" | "workspace_resolution_failed" | "workspace_boundary_invalid" | "build_dependency_missing" | "build_failed" | "build_output_missing" | "build_output_stale" | "pack_failed" | "pack_contents_invalid" | "pack_provenance_violation" | "distribution_artifact_missing" | "distribution_identity_mismatch" | "distribution_version_mismatch" | "distribution_install_failed" | "distribution_smoke_failed" | "release_train_misaligned" | "published_artifact_stale" | "published_artifact_missing" | "schema_invalid" | "schema_version_unsupported" | "schema_contract_mismatch" | "schema_pack_missing" | "schema_pack_dependency_missing" | "schema_pack_dependency_cycle" | "schema_pack_ownership_conflict" | "migration_missing" | "migration_failed" | "migration_checksum_mismatch" | "migration_order_invalid" | "migration_already_applied_conflict" | "migration_requires_manual_repair" | "database_unreachable" | "database_driver_unsupported" | "database_authority_unresolved" | "database_authorization_failed" | "database_schema_drift" | "model_discovery_failed" | "model_catalog_stale" | "model_snapshot_missing" | "model_snapshot_stale" | "model_capability_unknown" | "model_capability_unsupported" | "model_provider_mismatch" | "model_identity_conflict" | "model_probe_failed" | "model_probe_partial" | "runtime_not_installed" | "runtime_not_running" | "runtime_version_incompatible" | "runtime_capability_missing" | "runtime_protocol_mismatch" | "runtime_connection_unresolved" | "runtime_connection_revoked" | "pty_create_failed" | "pty_attach_failed" | "pty_session_not_found" | "pty_session_expired" | "pty_replay_cursor_invalid" | "transport_not_configured" | "transport_auth_failed" | "transport_attach_failed" | "sidecar_missing" | "sidecar_start_failed" | "sidecar_health_failed" | "tool_not_found" | "tool_disabled" | "tool_handler_unavailable" | "tool_execution_failed" | "tool_timeout" | "tool_output_invalid" | "tool_permission_denied" | "mcp_timeout" | "mcp_server_unavailable" | "mcp_capability_unsupported" | "mcp_response_invalid" | "mcp_transport_failed" | "lsp_timeout" | "lsp_server_unavailable" | "lsp_capability_unsupported" | "lsp_response_invalid" | "lsp_transport_failed" | "mcp_call_failed" | "lsp_request_failed";
|
|
7
7
|
export type AgentSamErrorSeverity = "transient" | "blocking_user_fixable" | "blocking_internal" | "policy_blocking";
|
|
8
8
|
export type AgentSamErrorSourceKind = "user" | "agentsam" | "provider" | "dependency" | "runtime" | "policy";
|
|
9
9
|
export type AgentSamErrorResolutionOwner = "user" | "agentsam" | "provider" | "organization_admin" | "policy" | "unknown";
|
|
10
|
-
export type AgentSamErrorDomain = "runtime" | "provider" | "auth" | "device" | "terminal" | "transport" | "repository" | "indexing" | "knowledge" | "cad" | "deployment" | "persistence" | "policy" | "tool";
|
|
11
|
-
export type
|
|
10
|
+
export type AgentSamErrorDomain = "runtime" | "provider" | "auth" | "identity" | "device" | "terminal" | "transport" | "repository" | "indexing" | "knowledge" | "cad" | "hook" | "model" | "configuration" | "schema" | "migration" | "database" | "package" | "build" | "distribution" | "deployment" | "workflow" | "persistence" | "policy" | "tool";
|
|
11
|
+
export type AgentSamErrorFailureClass = "input" | "validation" | "authentication" | "authorization" | "policy" | "discovery" | "resolution" | "availability" | "transport" | "protocol" | "timeout" | "rate_limit" | "capacity" | "resource" | "configuration" | "dependency" | "filesystem" | "persistence" | "consistency" | "conflict" | "process" | "ipc" | "data_integrity" | "cancellation" | "cancelled" | "build" | "distribution" | "migration" | "schema" | "identity" | "execution" | "internal" | "unknown";
|
|
12
|
+
export type AgentSamErrorStage = "discover" | "resolve" | "load" | "configure" | "validate" | "authorize" | "connect" | "prepare" | "install" | "build" | "start" | "execute" | "transform" | "persist" | "migrate" | "verify" | "publish" | "attach" | "detach" | "cleanup" | "shutdown";
|
|
13
|
+
export type AgentSamErrorFailureBehavior = "fail_closed" | "fail_open" | "observe_only" | "retry_bounded" | "skip" | "abort" | "no_replay";
|
|
14
|
+
export type AgentSamRemediationAction = "none" | "retry" | "retry_later" | "reauthenticate" | "connect_provider" | "configure_provider_credential" | "refresh_provider_credential" | "request_permission" | "reenroll_device" | "reconnect_service" | "install_dependency" | "upgrade_dependency" | "configure_dependency" | "change_configuration" | "change_input" | "reduce_scope" | "increase_quota" | "add_budget" | "select_model" | "change_region" | "restart_runtime" | "inspect_platform" | "contact_provider" | "contact_agentsam" | "contact_organization_admin" | "restart_service" | "repair_schema" | "run_migration" | "regenerate_artifact" | "update_lockfile" | "reinstall_workspace" | "republish_artifact";
|
|
12
15
|
export type AgentSamErrorSideEffectState = "none" | "not_started" | "confirmed_not_applied" | "confirmed_applied" | "partially_applied" | "unknown";
|
|
13
16
|
export type AgentSamErrorOutcomeStatus = "success" | "partial" | "failure";
|
|
14
17
|
|
|
@@ -28,14 +31,22 @@ export interface AgentSamErrorEnvelope {
|
|
|
28
31
|
schema_version: typeof AGENTSAM_ERROR_SCHEMA_VERSION;
|
|
29
32
|
code: AgentSamErrorCode;
|
|
30
33
|
reason: AgentSamErrorReason | (string & {});
|
|
34
|
+
domain: AgentSamErrorDomain;
|
|
35
|
+
failure_class: AgentSamErrorFailureClass;
|
|
36
|
+
stage: AgentSamErrorStage;
|
|
37
|
+
native_stage: string | null;
|
|
38
|
+
feature: string | null;
|
|
39
|
+
failure_behavior: AgentSamErrorFailureBehavior | null;
|
|
31
40
|
severity: AgentSamErrorSeverity;
|
|
32
|
-
|
|
41
|
+
retryable: boolean;
|
|
42
|
+
side_effect_state: AgentSamErrorSideEffectState;
|
|
33
43
|
resolution_owner: AgentSamErrorResolutionOwner;
|
|
34
|
-
|
|
44
|
+
source: AgentSamErrorSource;
|
|
45
|
+
adapter: string | null;
|
|
46
|
+
protocol: string | null;
|
|
47
|
+
transport: string | null;
|
|
35
48
|
tool: string | null;
|
|
36
|
-
stage: string | null;
|
|
37
49
|
message: string;
|
|
38
|
-
retryable: boolean;
|
|
39
50
|
retry_after_ms: number | null;
|
|
40
51
|
remediation: AgentSamErrorRemediation;
|
|
41
52
|
resource: AgentSamErrorResource | null;
|
|
@@ -43,7 +54,6 @@ export interface AgentSamErrorEnvelope {
|
|
|
43
54
|
environment: AgentSamEnvironmentEvidence | null;
|
|
44
55
|
http_status: number | null;
|
|
45
56
|
grpc_status: number | null;
|
|
46
|
-
transport: string | null;
|
|
47
57
|
provider: string | null;
|
|
48
58
|
provider_code: string | null;
|
|
49
59
|
request_id: string | null;
|
|
@@ -51,7 +61,6 @@ export interface AgentSamErrorEnvelope {
|
|
|
51
61
|
fingerprint: string;
|
|
52
62
|
occurrence_count: number;
|
|
53
63
|
details: unknown;
|
|
54
|
-
failure_class?: string;
|
|
55
64
|
operation?: AgentSamErrorOperation;
|
|
56
65
|
retry?: AgentSamErrorRetry;
|
|
57
66
|
fallback?: AgentSamErrorFallback;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './agent';
|
|
2
2
|
export * from './events';
|
|
3
|
+
export * from './run';
|
|
3
4
|
export * from './tools';
|
|
4
5
|
export * from './authority';
|
|
5
6
|
export * from './execution';
|
|
@@ -12,3 +13,4 @@ export * from './models';
|
|
|
12
13
|
export * from './identity';
|
|
13
14
|
export * from './repository';
|
|
14
15
|
export * from './errors';
|
|
16
|
+
export * from './widgets';
|