@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,821 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.inneranimalmedia.com/agentsam/errors/agentsam.error.v2.schema.json",
|
|
4
|
+
"title": "AgentSam ErrorEnvelope v2",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"ok",
|
|
9
|
+
"schema_version",
|
|
10
|
+
"code",
|
|
11
|
+
"reason",
|
|
12
|
+
"domain",
|
|
13
|
+
"failure_class",
|
|
14
|
+
"stage",
|
|
15
|
+
"native_stage",
|
|
16
|
+
"feature",
|
|
17
|
+
"failure_behavior",
|
|
18
|
+
"severity",
|
|
19
|
+
"retryable",
|
|
20
|
+
"side_effect_state",
|
|
21
|
+
"resolution_owner",
|
|
22
|
+
"source",
|
|
23
|
+
"adapter",
|
|
24
|
+
"protocol",
|
|
25
|
+
"transport",
|
|
26
|
+
"tool",
|
|
27
|
+
"message",
|
|
28
|
+
"retry_after_ms",
|
|
29
|
+
"remediation",
|
|
30
|
+
"resource",
|
|
31
|
+
"native",
|
|
32
|
+
"environment",
|
|
33
|
+
"http_status",
|
|
34
|
+
"grpc_status",
|
|
35
|
+
"provider",
|
|
36
|
+
"provider_code",
|
|
37
|
+
"request_id",
|
|
38
|
+
"trace_id",
|
|
39
|
+
"fingerprint",
|
|
40
|
+
"occurrence_count",
|
|
41
|
+
"details"
|
|
42
|
+
],
|
|
43
|
+
"properties": {
|
|
44
|
+
"ok": {
|
|
45
|
+
"const": false
|
|
46
|
+
},
|
|
47
|
+
"schema_version": {
|
|
48
|
+
"const": 2
|
|
49
|
+
},
|
|
50
|
+
"code": {
|
|
51
|
+
"enum": [
|
|
52
|
+
"CANCELLED",
|
|
53
|
+
"UNKNOWN",
|
|
54
|
+
"INVALID_ARGUMENT",
|
|
55
|
+
"DEADLINE_EXCEEDED",
|
|
56
|
+
"NOT_FOUND",
|
|
57
|
+
"ALREADY_EXISTS",
|
|
58
|
+
"PERMISSION_DENIED",
|
|
59
|
+
"RESOURCE_EXHAUSTED",
|
|
60
|
+
"FAILED_PRECONDITION",
|
|
61
|
+
"ABORTED",
|
|
62
|
+
"OUT_OF_RANGE",
|
|
63
|
+
"UNIMPLEMENTED",
|
|
64
|
+
"INTERNAL",
|
|
65
|
+
"UNAVAILABLE",
|
|
66
|
+
"DATA_LOSS",
|
|
67
|
+
"UNAUTHENTICATED"
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
"reason": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"pattern": "^[a-z][a-z0-9_]{0,127}$"
|
|
73
|
+
},
|
|
74
|
+
"domain": {
|
|
75
|
+
"enum": [
|
|
76
|
+
"runtime",
|
|
77
|
+
"provider",
|
|
78
|
+
"auth",
|
|
79
|
+
"identity",
|
|
80
|
+
"device",
|
|
81
|
+
"terminal",
|
|
82
|
+
"transport",
|
|
83
|
+
"repository",
|
|
84
|
+
"indexing",
|
|
85
|
+
"knowledge",
|
|
86
|
+
"cad",
|
|
87
|
+
"hook",
|
|
88
|
+
"model",
|
|
89
|
+
"configuration",
|
|
90
|
+
"schema",
|
|
91
|
+
"migration",
|
|
92
|
+
"database",
|
|
93
|
+
"package",
|
|
94
|
+
"build",
|
|
95
|
+
"distribution",
|
|
96
|
+
"deployment",
|
|
97
|
+
"workflow",
|
|
98
|
+
"persistence",
|
|
99
|
+
"policy",
|
|
100
|
+
"tool"
|
|
101
|
+
]
|
|
102
|
+
},
|
|
103
|
+
"failure_class": {
|
|
104
|
+
"enum": [
|
|
105
|
+
"input",
|
|
106
|
+
"validation",
|
|
107
|
+
"authentication",
|
|
108
|
+
"authorization",
|
|
109
|
+
"policy",
|
|
110
|
+
"discovery",
|
|
111
|
+
"resolution",
|
|
112
|
+
"availability",
|
|
113
|
+
"transport",
|
|
114
|
+
"protocol",
|
|
115
|
+
"timeout",
|
|
116
|
+
"rate_limit",
|
|
117
|
+
"capacity",
|
|
118
|
+
"resource",
|
|
119
|
+
"configuration",
|
|
120
|
+
"dependency",
|
|
121
|
+
"filesystem",
|
|
122
|
+
"persistence",
|
|
123
|
+
"consistency",
|
|
124
|
+
"conflict",
|
|
125
|
+
"process",
|
|
126
|
+
"ipc",
|
|
127
|
+
"data_integrity",
|
|
128
|
+
"cancellation",
|
|
129
|
+
"cancelled",
|
|
130
|
+
"build",
|
|
131
|
+
"distribution",
|
|
132
|
+
"migration",
|
|
133
|
+
"schema",
|
|
134
|
+
"identity",
|
|
135
|
+
"execution",
|
|
136
|
+
"internal",
|
|
137
|
+
"unknown"
|
|
138
|
+
]
|
|
139
|
+
},
|
|
140
|
+
"stage": {
|
|
141
|
+
"enum": [
|
|
142
|
+
"discover",
|
|
143
|
+
"resolve",
|
|
144
|
+
"load",
|
|
145
|
+
"configure",
|
|
146
|
+
"validate",
|
|
147
|
+
"authorize",
|
|
148
|
+
"connect",
|
|
149
|
+
"prepare",
|
|
150
|
+
"install",
|
|
151
|
+
"build",
|
|
152
|
+
"start",
|
|
153
|
+
"execute",
|
|
154
|
+
"transform",
|
|
155
|
+
"persist",
|
|
156
|
+
"migrate",
|
|
157
|
+
"verify",
|
|
158
|
+
"publish",
|
|
159
|
+
"attach",
|
|
160
|
+
"detach",
|
|
161
|
+
"cleanup",
|
|
162
|
+
"shutdown"
|
|
163
|
+
]
|
|
164
|
+
},
|
|
165
|
+
"native_stage": {
|
|
166
|
+
"anyOf": [
|
|
167
|
+
{
|
|
168
|
+
"type": "string"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"type": "null"
|
|
172
|
+
}
|
|
173
|
+
]
|
|
174
|
+
},
|
|
175
|
+
"feature": {
|
|
176
|
+
"anyOf": [
|
|
177
|
+
{
|
|
178
|
+
"type": "string",
|
|
179
|
+
"pattern": "^[a-z][a-z0-9]*(?:[._-][a-z0-9]+)*$",
|
|
180
|
+
"maxLength": 256
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"type": "null"
|
|
184
|
+
}
|
|
185
|
+
]
|
|
186
|
+
},
|
|
187
|
+
"failure_behavior": {
|
|
188
|
+
"anyOf": [
|
|
189
|
+
{
|
|
190
|
+
"enum": [
|
|
191
|
+
"fail_closed",
|
|
192
|
+
"fail_open",
|
|
193
|
+
"observe_only",
|
|
194
|
+
"retry_bounded",
|
|
195
|
+
"skip",
|
|
196
|
+
"abort",
|
|
197
|
+
"no_replay"
|
|
198
|
+
]
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"type": "null"
|
|
202
|
+
}
|
|
203
|
+
]
|
|
204
|
+
},
|
|
205
|
+
"severity": {
|
|
206
|
+
"enum": [
|
|
207
|
+
"transient",
|
|
208
|
+
"blocking_user_fixable",
|
|
209
|
+
"blocking_internal",
|
|
210
|
+
"policy_blocking"
|
|
211
|
+
]
|
|
212
|
+
},
|
|
213
|
+
"retryable": {
|
|
214
|
+
"type": "boolean"
|
|
215
|
+
},
|
|
216
|
+
"side_effect_state": {
|
|
217
|
+
"enum": [
|
|
218
|
+
"none",
|
|
219
|
+
"not_started",
|
|
220
|
+
"confirmed_not_applied",
|
|
221
|
+
"confirmed_applied",
|
|
222
|
+
"partially_applied",
|
|
223
|
+
"unknown"
|
|
224
|
+
]
|
|
225
|
+
},
|
|
226
|
+
"resolution_owner": {
|
|
227
|
+
"enum": [
|
|
228
|
+
"user",
|
|
229
|
+
"agentsam",
|
|
230
|
+
"provider",
|
|
231
|
+
"organization_admin",
|
|
232
|
+
"policy",
|
|
233
|
+
"unknown"
|
|
234
|
+
]
|
|
235
|
+
},
|
|
236
|
+
"source": {
|
|
237
|
+
"type": "object",
|
|
238
|
+
"additionalProperties": false,
|
|
239
|
+
"required": [
|
|
240
|
+
"kind",
|
|
241
|
+
"name",
|
|
242
|
+
"service"
|
|
243
|
+
],
|
|
244
|
+
"properties": {
|
|
245
|
+
"kind": {
|
|
246
|
+
"enum": [
|
|
247
|
+
"user",
|
|
248
|
+
"agentsam",
|
|
249
|
+
"provider",
|
|
250
|
+
"dependency",
|
|
251
|
+
"runtime",
|
|
252
|
+
"policy"
|
|
253
|
+
]
|
|
254
|
+
},
|
|
255
|
+
"name": {
|
|
256
|
+
"type": "string",
|
|
257
|
+
"minLength": 1,
|
|
258
|
+
"maxLength": 256
|
|
259
|
+
},
|
|
260
|
+
"service": {
|
|
261
|
+
"anyOf": [
|
|
262
|
+
{
|
|
263
|
+
"type": "string"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"type": "null"
|
|
267
|
+
}
|
|
268
|
+
]
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
"adapter": {
|
|
273
|
+
"anyOf": [
|
|
274
|
+
{
|
|
275
|
+
"type": "string"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"type": "null"
|
|
279
|
+
}
|
|
280
|
+
]
|
|
281
|
+
},
|
|
282
|
+
"protocol": {
|
|
283
|
+
"anyOf": [
|
|
284
|
+
{
|
|
285
|
+
"type": "string"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"type": "null"
|
|
289
|
+
}
|
|
290
|
+
]
|
|
291
|
+
},
|
|
292
|
+
"transport": {
|
|
293
|
+
"anyOf": [
|
|
294
|
+
{
|
|
295
|
+
"type": "string"
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"type": "null"
|
|
299
|
+
}
|
|
300
|
+
]
|
|
301
|
+
},
|
|
302
|
+
"tool": {
|
|
303
|
+
"anyOf": [
|
|
304
|
+
{
|
|
305
|
+
"type": "string"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"type": "null"
|
|
309
|
+
}
|
|
310
|
+
]
|
|
311
|
+
},
|
|
312
|
+
"message": {
|
|
313
|
+
"type": "string",
|
|
314
|
+
"minLength": 1,
|
|
315
|
+
"maxLength": 4000
|
|
316
|
+
},
|
|
317
|
+
"retry_after_ms": {
|
|
318
|
+
"anyOf": [
|
|
319
|
+
{
|
|
320
|
+
"type": "integer",
|
|
321
|
+
"minimum": 0
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"type": "null"
|
|
325
|
+
}
|
|
326
|
+
]
|
|
327
|
+
},
|
|
328
|
+
"remediation": {
|
|
329
|
+
"type": "object",
|
|
330
|
+
"additionalProperties": false,
|
|
331
|
+
"required": [
|
|
332
|
+
"action",
|
|
333
|
+
"message",
|
|
334
|
+
"automatic",
|
|
335
|
+
"command",
|
|
336
|
+
"url"
|
|
337
|
+
],
|
|
338
|
+
"properties": {
|
|
339
|
+
"action": {
|
|
340
|
+
"enum": [
|
|
341
|
+
"none",
|
|
342
|
+
"retry",
|
|
343
|
+
"retry_later",
|
|
344
|
+
"reauthenticate",
|
|
345
|
+
"connect_provider",
|
|
346
|
+
"configure_provider_credential",
|
|
347
|
+
"refresh_provider_credential",
|
|
348
|
+
"request_permission",
|
|
349
|
+
"reenroll_device",
|
|
350
|
+
"reconnect_service",
|
|
351
|
+
"install_dependency",
|
|
352
|
+
"upgrade_dependency",
|
|
353
|
+
"configure_dependency",
|
|
354
|
+
"change_configuration",
|
|
355
|
+
"change_input",
|
|
356
|
+
"reduce_scope",
|
|
357
|
+
"increase_quota",
|
|
358
|
+
"add_budget",
|
|
359
|
+
"select_model",
|
|
360
|
+
"change_region",
|
|
361
|
+
"restart_runtime",
|
|
362
|
+
"inspect_platform",
|
|
363
|
+
"contact_provider",
|
|
364
|
+
"contact_agentsam",
|
|
365
|
+
"contact_organization_admin",
|
|
366
|
+
"restart_service",
|
|
367
|
+
"repair_schema",
|
|
368
|
+
"run_migration",
|
|
369
|
+
"regenerate_artifact",
|
|
370
|
+
"update_lockfile",
|
|
371
|
+
"reinstall_workspace",
|
|
372
|
+
"republish_artifact"
|
|
373
|
+
]
|
|
374
|
+
},
|
|
375
|
+
"message": {
|
|
376
|
+
"anyOf": [
|
|
377
|
+
{
|
|
378
|
+
"type": "string"
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"type": "null"
|
|
382
|
+
}
|
|
383
|
+
]
|
|
384
|
+
},
|
|
385
|
+
"automatic": {
|
|
386
|
+
"type": "boolean"
|
|
387
|
+
},
|
|
388
|
+
"command": {
|
|
389
|
+
"anyOf": [
|
|
390
|
+
{
|
|
391
|
+
"type": "string"
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"type": "null"
|
|
395
|
+
}
|
|
396
|
+
]
|
|
397
|
+
},
|
|
398
|
+
"url": {
|
|
399
|
+
"anyOf": [
|
|
400
|
+
{
|
|
401
|
+
"type": "string"
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
"type": "null"
|
|
405
|
+
}
|
|
406
|
+
]
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
},
|
|
410
|
+
"resource": {
|
|
411
|
+
"anyOf": [
|
|
412
|
+
{
|
|
413
|
+
"type": "object",
|
|
414
|
+
"additionalProperties": false,
|
|
415
|
+
"required": [
|
|
416
|
+
"type",
|
|
417
|
+
"id",
|
|
418
|
+
"name"
|
|
419
|
+
],
|
|
420
|
+
"properties": {
|
|
421
|
+
"type": {
|
|
422
|
+
"type": "string",
|
|
423
|
+
"minLength": 1,
|
|
424
|
+
"maxLength": 128
|
|
425
|
+
},
|
|
426
|
+
"id": {
|
|
427
|
+
"anyOf": [
|
|
428
|
+
{
|
|
429
|
+
"type": "string"
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"type": "null"
|
|
433
|
+
}
|
|
434
|
+
]
|
|
435
|
+
},
|
|
436
|
+
"name": {
|
|
437
|
+
"anyOf": [
|
|
438
|
+
{
|
|
439
|
+
"type": "string"
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"type": "null"
|
|
443
|
+
}
|
|
444
|
+
]
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"type": "null"
|
|
450
|
+
}
|
|
451
|
+
]
|
|
452
|
+
},
|
|
453
|
+
"native": {
|
|
454
|
+
"anyOf": [
|
|
455
|
+
{
|
|
456
|
+
"type": "object",
|
|
457
|
+
"additionalProperties": false,
|
|
458
|
+
"required": [
|
|
459
|
+
"code",
|
|
460
|
+
"exception_type",
|
|
461
|
+
"exit_code",
|
|
462
|
+
"signal",
|
|
463
|
+
"stderr",
|
|
464
|
+
"stdout",
|
|
465
|
+
"stack"
|
|
466
|
+
],
|
|
467
|
+
"properties": {
|
|
468
|
+
"code": {
|
|
469
|
+
"anyOf": [
|
|
470
|
+
{
|
|
471
|
+
"type": "string"
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"type": "null"
|
|
475
|
+
}
|
|
476
|
+
]
|
|
477
|
+
},
|
|
478
|
+
"exception_type": {
|
|
479
|
+
"anyOf": [
|
|
480
|
+
{
|
|
481
|
+
"type": "string"
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"type": "null"
|
|
485
|
+
}
|
|
486
|
+
]
|
|
487
|
+
},
|
|
488
|
+
"exit_code": {
|
|
489
|
+
"anyOf": [
|
|
490
|
+
{
|
|
491
|
+
"type": "integer",
|
|
492
|
+
"minimum": -2147483648,
|
|
493
|
+
"maximum": 2147483647
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"type": "null"
|
|
497
|
+
}
|
|
498
|
+
]
|
|
499
|
+
},
|
|
500
|
+
"signal": {
|
|
501
|
+
"anyOf": [
|
|
502
|
+
{
|
|
503
|
+
"type": "string"
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
"type": "null"
|
|
507
|
+
}
|
|
508
|
+
]
|
|
509
|
+
},
|
|
510
|
+
"stderr": {
|
|
511
|
+
"anyOf": [
|
|
512
|
+
{
|
|
513
|
+
"type": "string"
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"type": "null"
|
|
517
|
+
}
|
|
518
|
+
]
|
|
519
|
+
},
|
|
520
|
+
"stdout": {
|
|
521
|
+
"anyOf": [
|
|
522
|
+
{
|
|
523
|
+
"type": "string"
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"type": "null"
|
|
527
|
+
}
|
|
528
|
+
]
|
|
529
|
+
},
|
|
530
|
+
"stack": {
|
|
531
|
+
"anyOf": [
|
|
532
|
+
{
|
|
533
|
+
"type": "string"
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
"type": "null"
|
|
537
|
+
}
|
|
538
|
+
]
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
"type": "null"
|
|
544
|
+
}
|
|
545
|
+
]
|
|
546
|
+
},
|
|
547
|
+
"environment": {
|
|
548
|
+
"anyOf": [
|
|
549
|
+
{
|
|
550
|
+
"type": "object",
|
|
551
|
+
"additionalProperties": false,
|
|
552
|
+
"required": [
|
|
553
|
+
"detected_version",
|
|
554
|
+
"required_version",
|
|
555
|
+
"component",
|
|
556
|
+
"runtime",
|
|
557
|
+
"platform"
|
|
558
|
+
],
|
|
559
|
+
"properties": {
|
|
560
|
+
"detected_version": {
|
|
561
|
+
"anyOf": [
|
|
562
|
+
{
|
|
563
|
+
"type": "string"
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
"type": "null"
|
|
567
|
+
}
|
|
568
|
+
]
|
|
569
|
+
},
|
|
570
|
+
"required_version": {
|
|
571
|
+
"anyOf": [
|
|
572
|
+
{
|
|
573
|
+
"type": "string"
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
"type": "null"
|
|
577
|
+
}
|
|
578
|
+
]
|
|
579
|
+
},
|
|
580
|
+
"component": {
|
|
581
|
+
"anyOf": [
|
|
582
|
+
{
|
|
583
|
+
"type": "string"
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
"type": "null"
|
|
587
|
+
}
|
|
588
|
+
]
|
|
589
|
+
},
|
|
590
|
+
"runtime": {
|
|
591
|
+
"anyOf": [
|
|
592
|
+
{
|
|
593
|
+
"type": "string"
|
|
594
|
+
},
|
|
595
|
+
{
|
|
596
|
+
"type": "null"
|
|
597
|
+
}
|
|
598
|
+
]
|
|
599
|
+
},
|
|
600
|
+
"platform": {
|
|
601
|
+
"anyOf": [
|
|
602
|
+
{
|
|
603
|
+
"type": "string"
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
"type": "null"
|
|
607
|
+
}
|
|
608
|
+
]
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
"type": "null"
|
|
614
|
+
}
|
|
615
|
+
]
|
|
616
|
+
},
|
|
617
|
+
"http_status": {
|
|
618
|
+
"anyOf": [
|
|
619
|
+
{
|
|
620
|
+
"type": "integer",
|
|
621
|
+
"minimum": 100,
|
|
622
|
+
"maximum": 599
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
"type": "null"
|
|
626
|
+
}
|
|
627
|
+
]
|
|
628
|
+
},
|
|
629
|
+
"grpc_status": {
|
|
630
|
+
"anyOf": [
|
|
631
|
+
{
|
|
632
|
+
"type": "integer",
|
|
633
|
+
"minimum": 0,
|
|
634
|
+
"maximum": 16
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
"type": "null"
|
|
638
|
+
}
|
|
639
|
+
]
|
|
640
|
+
},
|
|
641
|
+
"provider": {
|
|
642
|
+
"anyOf": [
|
|
643
|
+
{
|
|
644
|
+
"type": "string"
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
"type": "null"
|
|
648
|
+
}
|
|
649
|
+
]
|
|
650
|
+
},
|
|
651
|
+
"provider_code": {
|
|
652
|
+
"anyOf": [
|
|
653
|
+
{
|
|
654
|
+
"type": "string"
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
"type": "null"
|
|
658
|
+
}
|
|
659
|
+
]
|
|
660
|
+
},
|
|
661
|
+
"request_id": {
|
|
662
|
+
"anyOf": [
|
|
663
|
+
{
|
|
664
|
+
"type": "string"
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
"type": "null"
|
|
668
|
+
}
|
|
669
|
+
]
|
|
670
|
+
},
|
|
671
|
+
"trace_id": {
|
|
672
|
+
"anyOf": [
|
|
673
|
+
{
|
|
674
|
+
"type": "string"
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
"type": "null"
|
|
678
|
+
}
|
|
679
|
+
]
|
|
680
|
+
},
|
|
681
|
+
"fingerprint": {
|
|
682
|
+
"type": "string",
|
|
683
|
+
"pattern": "^err_[A-Za-z0-9_-]{8,128}$"
|
|
684
|
+
},
|
|
685
|
+
"occurrence_count": {
|
|
686
|
+
"type": "integer",
|
|
687
|
+
"minimum": 1
|
|
688
|
+
},
|
|
689
|
+
"details": {},
|
|
690
|
+
"operation": {
|
|
691
|
+
"type": "object",
|
|
692
|
+
"properties": {
|
|
693
|
+
"kind": {
|
|
694
|
+
"type": [
|
|
695
|
+
"string",
|
|
696
|
+
"null"
|
|
697
|
+
]
|
|
698
|
+
},
|
|
699
|
+
"action": {
|
|
700
|
+
"type": [
|
|
701
|
+
"string",
|
|
702
|
+
"null"
|
|
703
|
+
]
|
|
704
|
+
},
|
|
705
|
+
"resource_type": {
|
|
706
|
+
"type": [
|
|
707
|
+
"string",
|
|
708
|
+
"null"
|
|
709
|
+
]
|
|
710
|
+
},
|
|
711
|
+
"resource_id": {
|
|
712
|
+
"type": [
|
|
713
|
+
"string",
|
|
714
|
+
"null"
|
|
715
|
+
]
|
|
716
|
+
},
|
|
717
|
+
"read_only": {
|
|
718
|
+
"type": "boolean"
|
|
719
|
+
},
|
|
720
|
+
"idempotent": {
|
|
721
|
+
"type": "boolean"
|
|
722
|
+
},
|
|
723
|
+
"side_effect_state": {
|
|
724
|
+
"enum": [
|
|
725
|
+
"none",
|
|
726
|
+
"not_started",
|
|
727
|
+
"confirmed_not_applied",
|
|
728
|
+
"confirmed_applied",
|
|
729
|
+
"partially_applied",
|
|
730
|
+
"unknown"
|
|
731
|
+
]
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
},
|
|
735
|
+
"retry": {
|
|
736
|
+
"type": "object",
|
|
737
|
+
"properties": {
|
|
738
|
+
"allowed": {
|
|
739
|
+
"type": "boolean"
|
|
740
|
+
},
|
|
741
|
+
"strategy": {
|
|
742
|
+
"type": "string"
|
|
743
|
+
},
|
|
744
|
+
"retry_after_ms": {
|
|
745
|
+
"type": [
|
|
746
|
+
"number",
|
|
747
|
+
"null"
|
|
748
|
+
]
|
|
749
|
+
},
|
|
750
|
+
"max_attempts": {
|
|
751
|
+
"type": [
|
|
752
|
+
"integer",
|
|
753
|
+
"null"
|
|
754
|
+
]
|
|
755
|
+
},
|
|
756
|
+
"requires_idempotency_key": {
|
|
757
|
+
"type": "boolean"
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
},
|
|
761
|
+
"fallback": {
|
|
762
|
+
"type": "object",
|
|
763
|
+
"properties": {
|
|
764
|
+
"allowed": {
|
|
765
|
+
"type": "boolean"
|
|
766
|
+
},
|
|
767
|
+
"strategy": {
|
|
768
|
+
"type": [
|
|
769
|
+
"string",
|
|
770
|
+
"null"
|
|
771
|
+
]
|
|
772
|
+
},
|
|
773
|
+
"preserve_semantics": {
|
|
774
|
+
"type": "boolean"
|
|
775
|
+
},
|
|
776
|
+
"target": {
|
|
777
|
+
"type": [
|
|
778
|
+
"string",
|
|
779
|
+
"null"
|
|
780
|
+
]
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
},
|
|
784
|
+
"notify": {
|
|
785
|
+
"type": "object",
|
|
786
|
+
"properties": {
|
|
787
|
+
"user": {
|
|
788
|
+
"type": "string"
|
|
789
|
+
},
|
|
790
|
+
"operator": {
|
|
791
|
+
"type": "string"
|
|
792
|
+
},
|
|
793
|
+
"agent": {
|
|
794
|
+
"type": "string"
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
},
|
|
798
|
+
"cause": {},
|
|
799
|
+
"status": {
|
|
800
|
+
"enum": [
|
|
801
|
+
"success",
|
|
802
|
+
"partial",
|
|
803
|
+
"failure"
|
|
804
|
+
]
|
|
805
|
+
},
|
|
806
|
+
"partial": {
|
|
807
|
+
"type": "object",
|
|
808
|
+
"properties": {
|
|
809
|
+
"completed": {
|
|
810
|
+
"type": "number"
|
|
811
|
+
},
|
|
812
|
+
"failed": {
|
|
813
|
+
"type": "number"
|
|
814
|
+
},
|
|
815
|
+
"failures": {
|
|
816
|
+
"type": "array"
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
}
|