mayura 1.0.0-rc.2 → 1.1.0
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 +19 -6
- package/adapter-code-docker/index.d.ts +1 -0
- package/adapter-code-docker/index.js +1 -0
- package/adapter-code-quickjs/index.d.ts +1 -0
- package/adapter-code-quickjs/index.js +1 -0
- package/adapter-mcp/index.d.ts +1 -0
- package/adapter-mcp/index.js +1 -0
- package/artifacts/files/index.d.ts +1 -0
- package/artifacts/files/index.js +1 -0
- package/artifacts/index.d.ts +1 -0
- package/artifacts/index.js +1 -0
- package/auth/better-auth/index.d.ts +1 -0
- package/auth/better-auth/index.js +1 -0
- package/auth/index.d.ts +1 -0
- package/auth/index.js +1 -0
- package/auth/testing/index.d.ts +1 -0
- package/auth/testing/index.js +1 -0
- package/browser/index.d.ts +1 -0
- package/browser/index.js +1 -0
- package/browser/local/index.d.ts +1 -0
- package/browser/local/index.js +1 -0
- package/browser/testing/index.d.ts +1 -0
- package/browser/testing/index.js +1 -0
- package/cli/deploy/index.d.ts +1 -0
- package/cli/deploy/index.js +1 -0
- package/cli/index.d.ts +1 -0
- package/cli/index.js +1 -0
- package/client/forms/index.d.ts +1 -0
- package/client/forms/index.js +1 -0
- package/client/headless/index.d.ts +1 -0
- package/client/headless/index.js +1 -0
- package/client/index.d.ts +1 -0
- package/client/index.js +1 -0
- package/client/workflows/index.d.ts +1 -0
- package/client/workflows/index.js +1 -0
- package/client-react/components/index.d.ts +1 -0
- package/client-react/components/index.js +1 -0
- package/client-react/index.d.ts +1 -0
- package/client-react/index.js +1 -0
- package/code-mode/index.d.ts +1 -0
- package/code-mode/index.js +1 -0
- package/code-mode-workflows/index.d.ts +1 -0
- package/code-mode-workflows/index.js +1 -0
- package/context/index.d.ts +1 -0
- package/context/index.js +1 -0
- package/core/host/index.d.ts +1 -0
- package/core/host/index.js +1 -0
- package/core/index.d.ts +1 -0
- package/core/index.js +1 -0
- package/docs/README.md +10 -1
- package/docs/cli/deploy.md +154 -0
- package/docs/cli/overview.md +1 -0
- package/docs/cli/run.md +182 -182
- package/docs/guides/artifacts.md +29 -4
- package/docs/guides/authentication.md +246 -0
- package/docs/guides/browsers.md +189 -0
- package/docs/guides/deployment.md +45 -4
- package/docs/guides/files.md +188 -0
- package/docs/guides/model-providers.md +3 -0
- package/docs/guides/model-registry.md +184 -0
- package/docs/guides/observability.md +78 -1
- package/docs/guides/sandboxes.md +242 -0
- package/docs/guides/storage.md +195 -1
- package/docs/guides/testing.md +1 -0
- package/docs/guides/voice.md +100 -0
- package/docs/installation.md +16 -1
- package/docs/introduction.md +10 -5
- package/docs/project/security.md +8 -4
- package/docs/project/support.md +28 -7
- package/docs/project/versioning.md +9 -7
- package/docs/project/whats-new.md +78 -0
- package/docs/reference/entry-points.md +19 -1
- package/docs/reference/integrations.md +169 -0
- package/exporter-otlp/index.d.ts +1 -0
- package/exporter-otlp/index.js +1 -0
- package/exporter-otlp/opentelemetry/index.d.ts +1 -0
- package/exporter-otlp/opentelemetry/index.js +1 -0
- package/files/index.d.ts +1 -0
- package/files/index.js +1 -0
- package/guardrails/index.d.ts +1 -0
- package/guardrails/index.js +1 -0
- package/helpers/index.d.ts +1 -0
- package/helpers/index.js +1 -0
- package/keys/index.d.ts +1 -0
- package/keys/index.js +1 -0
- package/keys/testing/index.d.ts +1 -0
- package/keys/testing/index.js +1 -0
- package/lib/adapter-code-docker/image/Dockerfile +1 -1
- package/lib/adapter-code-docker/package.json +1 -1
- package/lib/adapter-code-quickjs/package.json +1 -1
- package/lib/adapter-mcp/package.json +1 -1
- package/lib/artifacts/dist/files-store.d.ts +27 -0
- package/lib/artifacts/dist/files-store.d.ts.map +1 -0
- package/lib/artifacts/dist/files-store.js +390 -0
- package/lib/artifacts/dist/files-store.js.map +1 -0
- package/lib/artifacts/dist/files.d.ts +3 -0
- package/lib/artifacts/dist/files.d.ts.map +1 -0
- package/lib/artifacts/dist/files.js +2 -0
- package/lib/artifacts/dist/files.js.map +1 -0
- package/lib/artifacts/dist/index.d.ts +1 -0
- package/lib/artifacts/dist/index.d.ts.map +1 -1
- package/lib/artifacts/dist/index.js +1 -0
- package/lib/artifacts/dist/index.js.map +1 -1
- package/lib/artifacts/dist/local-store.d.ts.map +1 -1
- package/lib/artifacts/dist/local-store.js +14 -415
- package/lib/artifacts/dist/local-store.js.map +1 -1
- package/lib/artifacts/dist/shared.d.ts +86 -0
- package/lib/artifacts/dist/shared.d.ts.map +1 -0
- package/lib/artifacts/dist/shared.js +437 -0
- package/lib/artifacts/dist/shared.js.map +1 -0
- package/lib/artifacts/package.json +1 -1
- package/lib/artifacts/src/files-store.ts +352 -0
- package/lib/artifacts/src/files.ts +7 -0
- package/lib/artifacts/src/index.ts +1 -0
- package/lib/artifacts/src/local-store.ts +18 -359
- package/lib/artifacts/src/shared.ts +413 -0
- package/lib/auth/dist/better-auth.d.ts +103 -0
- package/lib/auth/dist/better-auth.d.ts.map +1 -0
- package/lib/auth/dist/better-auth.js +113 -0
- package/lib/auth/dist/better-auth.js.map +1 -0
- package/lib/auth/dist/identity.d.ts +68 -0
- package/lib/auth/dist/identity.d.ts.map +1 -0
- package/lib/auth/dist/identity.js +123 -0
- package/lib/auth/dist/identity.js.map +1 -0
- package/lib/auth/dist/index.d.ts +7 -0
- package/lib/auth/dist/index.d.ts.map +1 -0
- package/lib/auth/dist/index.js +4 -0
- package/lib/auth/dist/index.js.map +1 -0
- package/lib/auth/dist/jwt.d.ts +65 -0
- package/lib/auth/dist/jwt.d.ts.map +1 -0
- package/lib/auth/dist/jwt.js +120 -0
- package/lib/auth/dist/jwt.js.map +1 -0
- package/lib/auth/dist/keys.d.ts +80 -0
- package/lib/auth/dist/keys.d.ts.map +1 -0
- package/lib/auth/dist/keys.js +252 -0
- package/lib/auth/dist/keys.js.map +1 -0
- package/lib/auth/dist/testing.d.ts +32 -0
- package/lib/auth/dist/testing.d.ts.map +1 -0
- package/lib/auth/dist/testing.js +61 -0
- package/lib/auth/dist/testing.js.map +1 -0
- package/lib/auth/package.json +5 -0
- package/lib/auth/src/better-auth.ts +151 -0
- package/lib/auth/src/identity.ts +142 -0
- package/lib/auth/src/index.ts +6 -0
- package/lib/auth/src/jwt.ts +126 -0
- package/lib/auth/src/keys.ts +238 -0
- package/lib/auth/src/testing.ts +74 -0
- package/lib/browser/dist/browsers.d.ts +141 -0
- package/lib/browser/dist/browsers.d.ts.map +1 -0
- package/lib/browser/dist/browsers.js +639 -0
- package/lib/browser/dist/browsers.js.map +1 -0
- package/lib/browser/dist/cdp.d.ts +67 -0
- package/lib/browser/dist/cdp.d.ts.map +1 -0
- package/lib/browser/dist/cdp.js +176 -0
- package/lib/browser/dist/cdp.js.map +1 -0
- package/lib/browser/dist/connect.d.ts +17 -0
- package/lib/browser/dist/connect.d.ts.map +1 -0
- package/lib/browser/dist/connect.js +28 -0
- package/lib/browser/dist/connect.js.map +1 -0
- package/lib/browser/dist/contracts.d.ts +70 -0
- package/lib/browser/dist/contracts.d.ts.map +1 -0
- package/lib/browser/dist/contracts.js +48 -0
- package/lib/browser/dist/contracts.js.map +1 -0
- package/lib/browser/dist/index.d.ts +14 -0
- package/lib/browser/dist/index.d.ts.map +1 -0
- package/lib/browser/dist/index.js +8 -0
- package/lib/browser/dist/index.js.map +1 -0
- package/lib/browser/dist/keys.d.ts +13 -0
- package/lib/browser/dist/keys.d.ts.map +1 -0
- package/lib/browser/dist/keys.js +37 -0
- package/lib/browser/dist/keys.js.map +1 -0
- package/lib/browser/dist/local/fixtures.d.ts +18 -0
- package/lib/browser/dist/local/fixtures.d.ts.map +1 -0
- package/lib/browser/dist/local/fixtures.js +40 -0
- package/lib/browser/dist/local/fixtures.js.map +1 -0
- package/lib/browser/dist/local/index.d.ts +23 -0
- package/lib/browser/dist/local/index.d.ts.map +1 -0
- package/lib/browser/dist/local/index.js +136 -0
- package/lib/browser/dist/local/index.js.map +1 -0
- package/lib/browser/dist/origins.d.ts +12 -0
- package/lib/browser/dist/origins.d.ts.map +1 -0
- package/lib/browser/dist/origins.js +47 -0
- package/lib/browser/dist/origins.js.map +1 -0
- package/lib/browser/dist/per-run.d.ts +31 -0
- package/lib/browser/dist/per-run.d.ts.map +1 -0
- package/lib/browser/dist/per-run.js +46 -0
- package/lib/browser/dist/per-run.js.map +1 -0
- package/lib/browser/dist/snapshot.d.ts +35 -0
- package/lib/browser/dist/snapshot.d.ts.map +1 -0
- package/lib/browser/dist/snapshot.js +74 -0
- package/lib/browser/dist/snapshot.js.map +1 -0
- package/lib/browser/dist/testing.d.ts +31 -0
- package/lib/browser/dist/testing.d.ts.map +1 -0
- package/lib/browser/dist/testing.js +145 -0
- package/lib/browser/dist/testing.js.map +1 -0
- package/lib/browser/dist/tools.d.ts +34 -0
- package/lib/browser/dist/tools.d.ts.map +1 -0
- package/lib/browser/dist/tools.js +119 -0
- package/lib/browser/dist/tools.js.map +1 -0
- package/lib/browser/package.json +5 -0
- package/lib/browser/src/browsers.ts +599 -0
- package/lib/browser/src/cdp.ts +161 -0
- package/lib/browser/src/connect.ts +40 -0
- package/lib/browser/src/contracts.ts +100 -0
- package/lib/browser/src/index.ts +13 -0
- package/lib/browser/src/keys.ts +39 -0
- package/lib/browser/src/local/fixtures.ts +41 -0
- package/lib/browser/src/local/index.ts +121 -0
- package/lib/browser/src/origins.ts +49 -0
- package/lib/browser/src/per-run.ts +54 -0
- package/lib/browser/src/snapshot.ts +73 -0
- package/lib/browser/src/testing.ts +155 -0
- package/lib/browser/src/tools.ts +156 -0
- package/lib/cli/dist/bin.js +52 -0
- package/lib/cli/dist/bin.js.map +1 -1
- package/lib/cli/dist/deploy-index.d.ts +4 -0
- package/lib/cli/dist/deploy-index.d.ts.map +1 -0
- package/lib/cli/dist/deploy-index.js +5 -0
- package/lib/cli/dist/deploy-index.js.map +1 -0
- package/lib/cli/dist/deploy-targets.d.ts +36 -0
- package/lib/cli/dist/deploy-targets.d.ts.map +1 -0
- package/lib/cli/dist/deploy-targets.js +276 -0
- package/lib/cli/dist/deploy-targets.js.map +1 -0
- package/lib/cli/dist/deploy.d.ts +161 -0
- package/lib/cli/dist/deploy.d.ts.map +1 -0
- package/lib/cli/dist/deploy.js +452 -0
- package/lib/cli/dist/deploy.js.map +1 -0
- package/lib/cli/dist/files.d.ts +26 -0
- package/lib/cli/dist/files.d.ts.map +1 -0
- package/lib/cli/dist/files.js +179 -0
- package/lib/cli/dist/files.js.map +1 -0
- package/lib/cli/dist/index.d.ts.map +1 -1
- package/lib/cli/dist/index.js +4 -174
- package/lib/cli/dist/index.js.map +1 -1
- package/lib/cli/dist/output.d.ts.map +1 -1
- package/lib/cli/dist/output.js +54 -0
- package/lib/cli/dist/output.js.map +1 -1
- package/lib/cli/package.json +1 -1
- package/lib/cli/src/bin.ts +35 -0
- package/lib/cli/src/deploy-index.ts +11 -0
- package/lib/cli/src/deploy-targets.ts +277 -0
- package/lib/cli/src/deploy.ts +419 -0
- package/lib/cli/src/files.ts +137 -0
- package/lib/cli/src/index.ts +4 -122
- package/lib/cli/src/output.ts +44 -0
- package/lib/client/package.json +1 -1
- package/lib/client-react/package.json +1 -1
- package/lib/code-mode/dist/index.d.ts.map +1 -1
- package/lib/code-mode/dist/index.js +3 -3
- package/lib/code-mode/dist/index.js.map +1 -1
- package/lib/code-mode/package.json +1 -1
- package/lib/code-mode/src/index.ts +3 -3
- package/lib/code-mode-workflows/dist/index.d.ts.map +1 -1
- package/lib/code-mode-workflows/dist/index.js +2 -2
- package/lib/code-mode-workflows/dist/index.js.map +1 -1
- package/lib/code-mode-workflows/package.json +1 -1
- package/lib/code-mode-workflows/src/index.ts +2 -2
- package/lib/context/package.json +1 -1
- package/lib/core/dist/bytes.d.ts +13 -0
- package/lib/core/dist/bytes.d.ts.map +1 -0
- package/lib/core/dist/bytes.js +128 -0
- package/lib/core/dist/bytes.js.map +1 -0
- package/lib/core/dist/contracts.d.ts +4 -0
- package/lib/core/dist/contracts.d.ts.map +1 -1
- package/lib/core/dist/contracts.js.map +1 -1
- package/lib/core/dist/host.d.ts +2 -0
- package/lib/core/dist/host.d.ts.map +1 -1
- package/lib/core/dist/host.js +2 -0
- package/lib/core/dist/host.js.map +1 -1
- package/lib/core/dist/pricing.d.ts +20 -0
- package/lib/core/dist/pricing.d.ts.map +1 -0
- package/lib/core/dist/pricing.js +10 -0
- package/lib/core/dist/pricing.js.map +1 -0
- package/lib/core/package.json +1 -1
- package/lib/core/src/bytes.ts +101 -0
- package/lib/core/src/contracts.ts +7 -1
- package/lib/core/src/host.ts +2 -0
- package/lib/core/src/pricing.ts +24 -0
- package/lib/exporter-otlp/dist/contracts.d.ts +25 -3
- package/lib/exporter-otlp/dist/contracts.d.ts.map +1 -1
- package/lib/exporter-otlp/dist/contracts.js.map +1 -1
- package/lib/exporter-otlp/dist/index.d.ts +2 -2
- package/lib/exporter-otlp/dist/index.d.ts.map +1 -1
- package/lib/exporter-otlp/dist/index.js +1 -1
- package/lib/exporter-otlp/dist/index.js.map +1 -1
- package/lib/exporter-otlp/dist/opentelemetry.d.ts +53 -0
- package/lib/exporter-otlp/dist/opentelemetry.d.ts.map +1 -0
- package/lib/exporter-otlp/dist/opentelemetry.js +209 -0
- package/lib/exporter-otlp/dist/opentelemetry.js.map +1 -0
- package/lib/exporter-otlp/dist/otlp-http-json.d.ts.map +1 -1
- package/lib/exporter-otlp/dist/otlp-http-json.js +11 -4
- package/lib/exporter-otlp/dist/otlp-http-json.js.map +1 -1
- package/lib/exporter-otlp/dist/protobuf.d.ts +9 -0
- package/lib/exporter-otlp/dist/protobuf.d.ts.map +1 -0
- package/lib/exporter-otlp/dist/protobuf.js +188 -0
- package/lib/exporter-otlp/dist/protobuf.js.map +1 -0
- package/lib/exporter-otlp/dist/run-traces.d.ts +3 -1
- package/lib/exporter-otlp/dist/run-traces.d.ts.map +1 -1
- package/lib/exporter-otlp/dist/run-traces.js +31 -4
- package/lib/exporter-otlp/dist/run-traces.js.map +1 -1
- package/lib/exporter-otlp/dist/signals.d.ts +8 -1
- package/lib/exporter-otlp/dist/signals.d.ts.map +1 -1
- package/lib/exporter-otlp/dist/signals.js +93 -26
- package/lib/exporter-otlp/dist/signals.js.map +1 -1
- package/lib/exporter-otlp/package.json +1 -1
- package/lib/exporter-otlp/src/contracts.ts +30 -3
- package/lib/exporter-otlp/src/index.ts +4 -1
- package/lib/exporter-otlp/src/opentelemetry.ts +157 -0
- package/lib/exporter-otlp/src/otlp-http-json.ts +10 -3
- package/lib/exporter-otlp/src/protobuf.ts +123 -0
- package/lib/exporter-otlp/src/run-traces.ts +24 -5
- package/lib/exporter-otlp/src/signals.ts +86 -25
- package/lib/files/dist/contracts.d.ts +155 -0
- package/lib/files/dist/contracts.d.ts.map +1 -0
- package/lib/files/dist/contracts.js +41 -0
- package/lib/files/dist/contracts.js.map +1 -0
- package/lib/files/dist/index.d.ts +7 -0
- package/lib/files/dist/index.d.ts.map +1 -0
- package/lib/files/dist/index.js +7 -0
- package/lib/files/dist/index.js.map +1 -0
- package/lib/files/dist/memory.d.ts +9 -0
- package/lib/files/dist/memory.d.ts.map +1 -0
- package/lib/files/dist/memory.js +70 -0
- package/lib/files/dist/memory.js.map +1 -0
- package/lib/files/dist/s3.d.ts +34 -0
- package/lib/files/dist/s3.d.ts.map +1 -0
- package/lib/files/dist/s3.js +232 -0
- package/lib/files/dist/s3.js.map +1 -0
- package/lib/files/dist/sigv4.d.ts +31 -0
- package/lib/files/dist/sigv4.d.ts.map +1 -0
- package/lib/files/dist/sigv4.js +47 -0
- package/lib/files/dist/sigv4.js.map +1 -0
- package/lib/files/dist/store.d.ts +19 -0
- package/lib/files/dist/store.d.ts.map +1 -0
- package/lib/files/dist/store.js +257 -0
- package/lib/files/dist/store.js.map +1 -0
- package/lib/files/dist/tools.d.ts +21 -0
- package/lib/files/dist/tools.d.ts.map +1 -0
- package/lib/files/dist/tools.js +155 -0
- package/lib/files/dist/tools.js.map +1 -0
- package/lib/files/dist/transport.d.ts +9 -0
- package/lib/files/dist/transport.d.ts.map +1 -0
- package/lib/files/dist/transport.js +53 -0
- package/lib/files/dist/transport.js.map +1 -0
- package/lib/files/package.json +5 -0
- package/lib/files/src/contracts.ts +174 -0
- package/lib/files/src/index.ts +6 -0
- package/lib/files/src/memory.ts +65 -0
- package/lib/files/src/s3.ts +196 -0
- package/lib/files/src/sigv4.ts +65 -0
- package/lib/files/src/store.ts +216 -0
- package/lib/files/src/tools.ts +140 -0
- package/lib/files/src/transport.ts +33 -0
- package/lib/guardrails/package.json +1 -1
- package/lib/helpers/package.json +1 -1
- package/lib/keys/dist/conformance.d.ts +14 -0
- package/lib/keys/dist/conformance.d.ts.map +1 -0
- package/lib/keys/dist/conformance.js +141 -0
- package/lib/keys/dist/conformance.js.map +1 -0
- package/lib/keys/dist/format.d.ts +19 -0
- package/lib/keys/dist/format.d.ts.map +1 -0
- package/lib/keys/dist/format.js +62 -0
- package/lib/keys/dist/format.js.map +1 -0
- package/lib/keys/dist/index.d.ts +6 -0
- package/lib/keys/dist/index.d.ts.map +1 -0
- package/lib/keys/dist/index.js +4 -0
- package/lib/keys/dist/index.js.map +1 -0
- package/lib/keys/dist/manager.d.ts +142 -0
- package/lib/keys/dist/manager.d.ts.map +1 -0
- package/lib/keys/dist/manager.js +430 -0
- package/lib/keys/dist/manager.js.map +1 -0
- package/lib/keys/dist/testing.d.ts +11 -0
- package/lib/keys/dist/testing.d.ts.map +1 -0
- package/lib/keys/dist/testing.js +68 -0
- package/lib/keys/dist/testing.js.map +1 -0
- package/lib/keys/dist/verifier.d.ts +40 -0
- package/lib/keys/dist/verifier.d.ts.map +1 -0
- package/lib/keys/dist/verifier.js +28 -0
- package/lib/keys/dist/verifier.js.map +1 -0
- package/lib/keys/package.json +5 -0
- package/lib/keys/src/conformance.ts +141 -0
- package/lib/keys/src/format.ts +63 -0
- package/lib/keys/src/index.ts +5 -0
- package/lib/keys/src/manager.ts +450 -0
- package/lib/keys/src/testing.ts +56 -0
- package/lib/keys/src/verifier.ts +49 -0
- package/lib/memory/dist/index.js +3 -3
- package/lib/memory/dist/index.js.map +1 -1
- package/lib/memory/dist/native.js +4 -4
- package/lib/memory/dist/native.js.map +1 -1
- package/lib/memory/dist/validation.d.ts.map +1 -1
- package/lib/memory/dist/validation.js +3 -3
- package/lib/memory/dist/validation.js.map +1 -1
- package/lib/memory/dist/vectors.d.ts.map +1 -1
- package/lib/memory/dist/vectors.js +16 -8
- package/lib/memory/dist/vectors.js.map +1 -1
- package/lib/memory/package.json +1 -1
- package/lib/memory/src/index.ts +3 -3
- package/lib/memory/src/native.ts +4 -4
- package/lib/memory/src/validation.ts +3 -3
- package/lib/memory/src/vectors.ts +10 -8
- package/lib/memory-remote/dist/index.d.ts.map +1 -1
- package/lib/memory-remote/dist/index.js +4 -5
- package/lib/memory-remote/dist/index.js.map +1 -1
- package/lib/memory-remote/package.json +1 -1
- package/lib/memory-remote/src/index.ts +4 -5
- package/lib/observability/dist/validation.d.ts.map +1 -1
- package/lib/observability/dist/validation.js +10 -3
- package/lib/observability/dist/validation.js.map +1 -1
- package/lib/observability/package.json +1 -1
- package/lib/observability/src/validation.ts +6 -3
- package/lib/provider-anthropic/dist/index.d.ts.map +1 -1
- package/lib/provider-anthropic/dist/index.js +4 -1
- package/lib/provider-anthropic/dist/index.js.map +1 -1
- package/lib/provider-anthropic/package.json +1 -1
- package/lib/provider-anthropic/src/index.ts +3 -1
- package/lib/provider-openai/dist/index.js +3 -3
- package/lib/provider-openai/dist/index.js.map +1 -1
- package/lib/provider-openai/package.json +1 -1
- package/lib/provider-openai/src/index.ts +3 -3
- package/lib/runtime/dist/agent.d.ts +2 -0
- package/lib/runtime/dist/agent.d.ts.map +1 -1
- package/lib/runtime/dist/agent.js +6 -1
- package/lib/runtime/dist/agent.js.map +1 -1
- package/lib/runtime/dist/index.d.ts +1 -0
- package/lib/runtime/dist/index.d.ts.map +1 -1
- package/lib/runtime/dist/index.js +1 -0
- package/lib/runtime/dist/index.js.map +1 -1
- package/lib/runtime/dist/models.d.ts +110 -0
- package/lib/runtime/dist/models.d.ts.map +1 -0
- package/lib/runtime/dist/models.js +246 -0
- package/lib/runtime/dist/models.js.map +1 -0
- package/lib/runtime/dist/response.d.ts +5 -0
- package/lib/runtime/dist/response.d.ts.map +1 -1
- package/lib/runtime/dist/response.js +34 -4
- package/lib/runtime/dist/response.js.map +1 -1
- package/lib/runtime/dist/router.d.ts +4 -0
- package/lib/runtime/dist/router.d.ts.map +1 -1
- package/lib/runtime/dist/router.js +9 -9
- package/lib/runtime/dist/router.js.map +1 -1
- package/lib/runtime/dist/runtime.d.ts +0 -1
- package/lib/runtime/dist/runtime.d.ts.map +1 -1
- package/lib/runtime/dist/runtime.js +10 -3
- package/lib/runtime/dist/runtime.js.map +1 -1
- package/lib/runtime/package.json +1 -1
- package/lib/runtime/src/agent.ts +6 -1
- package/lib/runtime/src/index.ts +1 -0
- package/lib/runtime/src/models.ts +310 -0
- package/lib/runtime/src/response.ts +28 -4
- package/lib/runtime/src/router.ts +9 -9
- package/lib/runtime/src/runtime.ts +10 -3
- package/lib/sandbox/dist/command-backend.d.ts +29 -0
- package/lib/sandbox/dist/command-backend.d.ts.map +1 -0
- package/lib/sandbox/dist/command-backend.js +208 -0
- package/lib/sandbox/dist/command-backend.js.map +1 -0
- package/lib/sandbox/dist/contracts.d.ts +173 -0
- package/lib/sandbox/dist/contracts.d.ts.map +1 -0
- package/lib/sandbox/dist/contracts.js +48 -0
- package/lib/sandbox/dist/contracts.js.map +1 -0
- package/lib/sandbox/dist/docker/api.d.ts +12 -0
- package/lib/sandbox/dist/docker/api.d.ts.map +1 -0
- package/lib/sandbox/dist/docker/api.js +228 -0
- package/lib/sandbox/dist/docker/api.js.map +1 -0
- package/lib/sandbox/dist/docker/cli.d.ts +4 -0
- package/lib/sandbox/dist/docker/cli.d.ts.map +1 -0
- package/lib/sandbox/dist/docker/cli.js +128 -0
- package/lib/sandbox/dist/docker/cli.js.map +1 -0
- package/lib/sandbox/dist/docker/engine.d.ts +58 -0
- package/lib/sandbox/dist/docker/engine.d.ts.map +1 -0
- package/lib/sandbox/dist/docker/engine.js +30 -0
- package/lib/sandbox/dist/docker/engine.js.map +1 -0
- package/lib/sandbox/dist/docker/index.d.ts +39 -0
- package/lib/sandbox/dist/docker/index.d.ts.map +1 -0
- package/lib/sandbox/dist/docker/index.js +187 -0
- package/lib/sandbox/dist/docker/index.js.map +1 -0
- package/lib/sandbox/dist/docker/scripts.d.ts +15 -0
- package/lib/sandbox/dist/docker/scripts.d.ts.map +1 -0
- package/lib/sandbox/dist/docker/scripts.js +32 -0
- package/lib/sandbox/dist/docker/scripts.js.map +1 -0
- package/lib/sandbox/dist/index.d.ts +7 -0
- package/lib/sandbox/dist/index.d.ts.map +1 -0
- package/lib/sandbox/dist/index.js +7 -0
- package/lib/sandbox/dist/index.js.map +1 -0
- package/lib/sandbox/dist/per-run.d.ts +28 -0
- package/lib/sandbox/dist/per-run.d.ts.map +1 -0
- package/lib/sandbox/dist/per-run.js +46 -0
- package/lib/sandbox/dist/per-run.js.map +1 -0
- package/lib/sandbox/dist/sandboxes.d.ts +166 -0
- package/lib/sandbox/dist/sandboxes.d.ts.map +1 -0
- package/lib/sandbox/dist/sandboxes.js +538 -0
- package/lib/sandbox/dist/sandboxes.js.map +1 -0
- package/lib/sandbox/dist/scripts.d.ts +25 -0
- package/lib/sandbox/dist/scripts.d.ts.map +1 -0
- package/lib/sandbox/dist/scripts.js +72 -0
- package/lib/sandbox/dist/scripts.js.map +1 -0
- package/lib/sandbox/dist/testing.d.ts +53 -0
- package/lib/sandbox/dist/testing.d.ts.map +1 -0
- package/lib/sandbox/dist/testing.js +148 -0
- package/lib/sandbox/dist/testing.js.map +1 -0
- package/lib/sandbox/dist/tools.d.ts +41 -0
- package/lib/sandbox/dist/tools.d.ts.map +1 -0
- package/lib/sandbox/dist/tools.js +280 -0
- package/lib/sandbox/dist/tools.js.map +1 -0
- package/lib/sandbox/package.json +5 -0
- package/lib/sandbox/src/command-backend.ts +194 -0
- package/lib/sandbox/src/contracts.ts +168 -0
- package/lib/sandbox/src/docker/api.ts +172 -0
- package/lib/sandbox/src/docker/cli.ts +98 -0
- package/lib/sandbox/src/docker/engine.ts +69 -0
- package/lib/sandbox/src/docker/index.ts +192 -0
- package/lib/sandbox/src/docker/scripts.ts +36 -0
- package/lib/sandbox/src/index.ts +9 -0
- package/lib/sandbox/src/per-run.ts +54 -0
- package/lib/sandbox/src/sandboxes.ts +521 -0
- package/lib/sandbox/src/scripts.ts +76 -0
- package/lib/sandbox/src/testing.ts +166 -0
- package/lib/sandbox/src/tools.ts +284 -0
- package/lib/sdk/package.json +1 -1
- package/lib/server/package.json +1 -1
- package/lib/server-node/package.json +1 -1
- package/lib/skills/dist/index.d.ts.map +1 -1
- package/lib/skills/dist/index.js +2 -2
- package/lib/skills/dist/index.js.map +1 -1
- package/lib/skills/package.json +1 -1
- package/lib/skills/src/index.ts +2 -2
- package/lib/storage/package.json +1 -1
- package/lib/storage-contracts/dist/schema-digest.d.ts +3 -5
- package/lib/storage-contracts/dist/schema-digest.d.ts.map +1 -1
- package/lib/storage-contracts/dist/schema-digest.js +3 -58
- package/lib/storage-contracts/dist/schema-digest.js.map +1 -1
- package/lib/storage-contracts/package.json +1 -1
- package/lib/storage-contracts/src/schema-digest.ts +3 -40
- package/lib/storage-postgres/dist/driver.d.ts +18 -0
- package/lib/storage-postgres/dist/driver.d.ts.map +1 -0
- package/lib/storage-postgres/dist/driver.js +22 -0
- package/lib/storage-postgres/dist/driver.js.map +1 -0
- package/lib/storage-postgres/dist/postgres.d.ts +5 -2
- package/lib/storage-postgres/dist/postgres.d.ts.map +1 -1
- package/lib/storage-postgres/dist/postgres.js +8 -223
- package/lib/storage-postgres/dist/postgres.js.map +1 -1
- package/lib/storage-postgres/dist/store.d.ts +25 -0
- package/lib/storage-postgres/dist/store.d.ts.map +1 -0
- package/lib/storage-postgres/dist/store.js +237 -0
- package/lib/storage-postgres/dist/store.js.map +1 -0
- package/lib/storage-postgres/package.json +1 -1
- package/lib/storage-postgres/src/driver.ts +35 -0
- package/lib/storage-postgres/src/postgres.ts +10 -211
- package/lib/storage-postgres/src/store.ts +242 -0
- package/lib/storage-sql/dist/aggregate-session.d.ts.map +1 -1
- package/lib/storage-sql/dist/aggregate-session.js +13 -8
- package/lib/storage-sql/dist/aggregate-session.js.map +1 -1
- package/lib/storage-sql/dist/dialect.d.ts +29 -0
- package/lib/storage-sql/dist/dialect.d.ts.map +1 -0
- package/lib/storage-sql/dist/dialect.js +63 -0
- package/lib/storage-sql/dist/dialect.js.map +1 -0
- package/lib/storage-sql/dist/document/budget-rows.d.ts +5 -0
- package/lib/storage-sql/dist/document/budget-rows.d.ts.map +1 -0
- package/lib/storage-sql/dist/document/budget-rows.js +36 -0
- package/lib/storage-sql/dist/document/budget-rows.js.map +1 -0
- package/lib/storage-sql/dist/document/execution-wait-rows.d.ts +5 -0
- package/lib/storage-sql/dist/document/execution-wait-rows.d.ts.map +1 -0
- package/lib/storage-sql/dist/document/execution-wait-rows.js +66 -0
- package/lib/storage-sql/dist/document/execution-wait-rows.js.map +1 -0
- package/lib/storage-sql/dist/document/keys.d.ts +26 -0
- package/lib/storage-sql/dist/document/keys.d.ts.map +1 -0
- package/lib/storage-sql/dist/document/keys.js +74 -0
- package/lib/storage-sql/dist/document/keys.js.map +1 -0
- package/lib/storage-sql/dist/document/layout.d.ts +66 -0
- package/lib/storage-sql/dist/document/layout.d.ts.map +1 -0
- package/lib/storage-sql/dist/document/layout.js +43 -0
- package/lib/storage-sql/dist/document/layout.js.map +1 -0
- package/lib/storage-sql/dist/document/memory-backend.d.ts +11 -0
- package/lib/storage-sql/dist/document/memory-backend.d.ts.map +1 -0
- package/lib/storage-sql/dist/document/memory-backend.js +48 -0
- package/lib/storage-sql/dist/document/memory-backend.js.map +1 -0
- package/lib/storage-sql/dist/document/memory.d.ts +5 -0
- package/lib/storage-sql/dist/document/memory.d.ts.map +1 -0
- package/lib/storage-sql/dist/document/memory.js +372 -0
- package/lib/storage-sql/dist/document/memory.js.map +1 -0
- package/lib/storage-sql/dist/document/scheduled-rows.d.ts +31 -0
- package/lib/storage-sql/dist/document/scheduled-rows.d.ts.map +1 -0
- package/lib/storage-sql/dist/document/scheduled-rows.js +155 -0
- package/lib/storage-sql/dist/document/scheduled-rows.js.map +1 -0
- package/lib/storage-sql/dist/document/scheduler-rows.d.ts +12 -0
- package/lib/storage-sql/dist/document/scheduler-rows.d.ts.map +1 -0
- package/lib/storage-sql/dist/document/scheduler-rows.js +227 -0
- package/lib/storage-sql/dist/document/scheduler-rows.js.map +1 -0
- package/lib/storage-sql/dist/document/session.d.ts +119 -0
- package/lib/storage-sql/dist/document/session.d.ts.map +1 -0
- package/lib/storage-sql/dist/document/session.js +203 -0
- package/lib/storage-sql/dist/document/session.js.map +1 -0
- package/lib/storage-sql/dist/document/store.d.ts +17 -0
- package/lib/storage-sql/dist/document/store.d.ts.map +1 -0
- package/lib/storage-sql/dist/document/store.js +133 -0
- package/lib/storage-sql/dist/document/store.js.map +1 -0
- package/lib/storage-sql/dist/document/tree-rows.d.ts +5 -0
- package/lib/storage-sql/dist/document/tree-rows.d.ts.map +1 -0
- package/lib/storage-sql/dist/document/tree-rows.js +97 -0
- package/lib/storage-sql/dist/document/tree-rows.js.map +1 -0
- package/lib/storage-sql/dist/durable-budget-database.d.ts +7 -6
- package/lib/storage-sql/dist/durable-budget-database.d.ts.map +1 -1
- package/lib/storage-sql/dist/durable-budget-database.js +34 -40
- package/lib/storage-sql/dist/durable-budget-database.js.map +1 -1
- package/lib/storage-sql/dist/durable-budget-persistence.d.ts +53 -0
- package/lib/storage-sql/dist/durable-budget-persistence.d.ts.map +1 -0
- package/lib/storage-sql/dist/durable-budget-persistence.js +43 -0
- package/lib/storage-sql/dist/durable-budget-persistence.js.map +1 -0
- package/lib/storage-sql/dist/execution-completions.d.ts +19 -1
- package/lib/storage-sql/dist/execution-completions.d.ts.map +1 -1
- package/lib/storage-sql/dist/execution-completions.js +21 -9
- package/lib/storage-sql/dist/execution-completions.js.map +1 -1
- package/lib/storage-sql/dist/execution-wait-database.d.ts +3 -3
- package/lib/storage-sql/dist/execution-wait-database.d.ts.map +1 -1
- package/lib/storage-sql/dist/execution-wait-database.js +36 -60
- package/lib/storage-sql/dist/execution-wait-database.js.map +1 -1
- package/lib/storage-sql/dist/execution-wait-persistence.d.ts +71 -0
- package/lib/storage-sql/dist/execution-wait-persistence.d.ts.map +1 -0
- package/lib/storage-sql/dist/execution-wait-persistence.js +71 -0
- package/lib/storage-sql/dist/execution-wait-persistence.js.map +1 -0
- package/lib/storage-sql/dist/host.d.ts +22 -0
- package/lib/storage-sql/dist/host.d.ts.map +1 -1
- package/lib/storage-sql/dist/host.js +9 -0
- package/lib/storage-sql/dist/host.js.map +1 -1
- package/lib/storage-sql/dist/memory-database.d.ts.map +1 -1
- package/lib/storage-sql/dist/memory-database.js +7 -8
- package/lib/storage-sql/dist/memory-database.js.map +1 -1
- package/lib/storage-sql/dist/scheduled-database.d.ts +3 -3
- package/lib/storage-sql/dist/scheduled-database.d.ts.map +1 -1
- package/lib/storage-sql/dist/scheduled-database.js +50 -77
- package/lib/storage-sql/dist/scheduled-database.js.map +1 -1
- package/lib/storage-sql/dist/scheduled-persistence.d.ts +81 -0
- package/lib/storage-sql/dist/scheduled-persistence.d.ts.map +1 -0
- package/lib/storage-sql/dist/scheduled-persistence.js +83 -0
- package/lib/storage-sql/dist/scheduled-persistence.js.map +1 -0
- package/lib/storage-sql/dist/scheduler-database.d.ts +17 -8
- package/lib/storage-sql/dist/scheduler-database.d.ts.map +1 -1
- package/lib/storage-sql/dist/scheduler-database.js +70 -113
- package/lib/storage-sql/dist/scheduler-database.js.map +1 -1
- package/lib/storage-sql/dist/scheduler-persistence.d.ts +87 -0
- package/lib/storage-sql/dist/scheduler-persistence.d.ts.map +1 -0
- package/lib/storage-sql/dist/scheduler-persistence.js +103 -0
- package/lib/storage-sql/dist/scheduler-persistence.js.map +1 -0
- package/lib/storage-sql/dist/scheduler-validation.d.ts.map +1 -1
- package/lib/storage-sql/dist/scheduler-validation.js +2 -2
- package/lib/storage-sql/dist/scheduler-validation.js.map +1 -1
- package/lib/storage-sql/dist/validation.d.ts.map +1 -1
- package/lib/storage-sql/dist/validation.js +4 -4
- package/lib/storage-sql/dist/validation.js.map +1 -1
- package/lib/storage-sql/dist/workflow-graph-discovery-index.d.ts.map +1 -1
- package/lib/storage-sql/dist/workflow-graph-discovery-index.js +16 -0
- package/lib/storage-sql/dist/workflow-graph-discovery-index.js.map +1 -1
- package/lib/storage-sql/dist/workflow-tree-database.d.ts +4 -4
- package/lib/storage-sql/dist/workflow-tree-database.d.ts.map +1 -1
- package/lib/storage-sql/dist/workflow-tree-database.js +216 -235
- package/lib/storage-sql/dist/workflow-tree-database.js.map +1 -1
- package/lib/storage-sql/dist/workflow-tree-persistence.d.ts +69 -0
- package/lib/storage-sql/dist/workflow-tree-persistence.d.ts.map +1 -0
- package/lib/storage-sql/dist/workflow-tree-persistence.js +77 -0
- package/lib/storage-sql/dist/workflow-tree-persistence.js.map +1 -0
- package/lib/storage-sql/dist/workflow-tree-validation.d.ts.map +1 -1
- package/lib/storage-sql/dist/workflow-tree-validation.js +2 -2
- package/lib/storage-sql/dist/workflow-tree-validation.js.map +1 -1
- package/lib/storage-sql/package.json +1 -1
- package/lib/storage-sql/src/aggregate-session.ts +15 -9
- package/lib/storage-sql/src/dialect.ts +63 -0
- package/lib/storage-sql/src/document/budget-rows.ts +35 -0
- package/lib/storage-sql/src/document/execution-wait-rows.ts +61 -0
- package/lib/storage-sql/src/document/keys.ts +63 -0
- package/lib/storage-sql/src/document/layout.ts +44 -0
- package/lib/storage-sql/src/document/memory-backend.ts +42 -0
- package/lib/storage-sql/src/document/memory.ts +294 -0
- package/lib/storage-sql/src/document/scheduled-rows.ts +138 -0
- package/lib/storage-sql/src/document/scheduler-rows.ts +188 -0
- package/lib/storage-sql/src/document/session.ts +204 -0
- package/lib/storage-sql/src/document/store.ts +131 -0
- package/lib/storage-sql/src/document/tree-rows.ts +88 -0
- package/lib/storage-sql/src/durable-budget-database.ts +36 -52
- package/lib/storage-sql/src/durable-budget-persistence.ts +82 -0
- package/lib/storage-sql/src/execution-completions.ts +28 -11
- package/lib/storage-sql/src/execution-wait-database.ts +47 -73
- package/lib/storage-sql/src/execution-wait-persistence.ts +114 -0
- package/lib/storage-sql/src/host.ts +22 -0
- package/lib/storage-sql/src/memory-database.ts +11 -8
- package/lib/storage-sql/src/scheduled-database.ts +67 -100
- package/lib/storage-sql/src/scheduled-persistence.ts +146 -0
- package/lib/storage-sql/src/scheduler-database.ts +79 -122
- package/lib/storage-sql/src/scheduler-persistence.ts +157 -0
- package/lib/storage-sql/src/scheduler-validation.ts +2 -2
- package/lib/storage-sql/src/validation.ts +4 -4
- package/lib/storage-sql/src/workflow-graph-discovery-index.ts +15 -0
- package/lib/storage-sql/src/workflow-tree-database.ts +118 -132
- package/lib/storage-sql/src/workflow-tree-persistence.ts +129 -0
- package/lib/storage-sql/src/workflow-tree-validation.ts +2 -2
- package/lib/storage-sqlite/package.json +1 -1
- package/lib/terminal/package.json +1 -1
- package/lib/testing/dist/files-conformance.d.ts +21 -0
- package/lib/testing/dist/files-conformance.d.ts.map +1 -0
- package/lib/testing/dist/files-conformance.js +155 -0
- package/lib/testing/dist/files-conformance.js.map +1 -0
- package/lib/testing/dist/index.d.ts +3 -0
- package/lib/testing/dist/index.d.ts.map +1 -1
- package/lib/testing/dist/index.js +3 -0
- package/lib/testing/dist/index.js.map +1 -1
- package/lib/testing/dist/model-conformance.d.ts +88 -0
- package/lib/testing/dist/model-conformance.d.ts.map +1 -0
- package/lib/testing/dist/model-conformance.js +177 -0
- package/lib/testing/dist/model-conformance.js.map +1 -0
- package/lib/testing/dist/voice-conformance.d.ts +61 -0
- package/lib/testing/dist/voice-conformance.d.ts.map +1 -0
- package/lib/testing/dist/voice-conformance.js +128 -0
- package/lib/testing/dist/voice-conformance.js.map +1 -0
- package/lib/testing/package.json +1 -1
- package/lib/testing/src/files-conformance.ts +153 -0
- package/lib/testing/src/index.ts +3 -0
- package/lib/testing/src/model-conformance.ts +217 -0
- package/lib/testing/src/voice-conformance.ts +139 -0
- package/lib/tools/package.json +1 -1
- package/lib/voice/dist/audio.d.ts +10 -0
- package/lib/voice/dist/audio.d.ts.map +1 -0
- package/lib/voice/dist/audio.js +44 -0
- package/lib/voice/dist/audio.js.map +1 -0
- package/lib/voice/dist/contracts.d.ts +140 -0
- package/lib/voice/dist/contracts.d.ts.map +1 -0
- package/lib/voice/dist/contracts.js +58 -0
- package/lib/voice/dist/contracts.js.map +1 -0
- package/lib/voice/dist/index.d.ts +6 -0
- package/lib/voice/dist/index.d.ts.map +1 -0
- package/lib/voice/dist/index.js +6 -0
- package/lib/voice/dist/index.js.map +1 -0
- package/lib/voice/dist/registry.d.ts +53 -0
- package/lib/voice/dist/registry.d.ts.map +1 -0
- package/lib/voice/dist/registry.js +218 -0
- package/lib/voice/dist/registry.js.map +1 -0
- package/lib/voice/dist/tools.d.ts +29 -0
- package/lib/voice/dist/tools.d.ts.map +1 -0
- package/lib/voice/dist/tools.js +92 -0
- package/lib/voice/dist/tools.js.map +1 -0
- package/lib/voice/dist/transport.d.ts +24 -0
- package/lib/voice/dist/transport.d.ts.map +1 -0
- package/lib/voice/dist/transport.js +90 -0
- package/lib/voice/dist/transport.js.map +1 -0
- package/lib/voice/package.json +5 -0
- package/lib/voice/src/audio.ts +38 -0
- package/lib/voice/src/contracts.ts +167 -0
- package/lib/voice/src/index.ts +5 -0
- package/lib/voice/src/registry.ts +215 -0
- package/lib/voice/src/tools.ts +91 -0
- package/lib/voice/src/transport.ts +73 -0
- package/lib/workflows/dist/definition.d.ts.map +1 -1
- package/lib/workflows/dist/definition.js +2 -2
- package/lib/workflows/dist/definition.js.map +1 -1
- package/lib/workflows/dist/operator-transports.d.ts.map +1 -1
- package/lib/workflows/dist/operator-transports.js +2 -1
- package/lib/workflows/dist/operator-transports.js.map +1 -1
- package/lib/workflows/package.json +1 -1
- package/lib/workflows/src/definition.ts +2 -2
- package/lib/workflows/src/operator-transports.ts +2 -1
- package/lib/workstream/package.json +1 -1
- package/llms-full.txt +2069 -76
- package/llms.txt +11 -2
- package/memory/index.d.ts +1 -0
- package/memory/index.js +1 -0
- package/memory-remote/index.d.ts +1 -0
- package/memory-remote/index.js +1 -0
- package/observability/index.d.ts +1 -0
- package/observability/index.js +1 -0
- package/package.json +166 -54
- package/provider-anthropic/index.d.ts +1 -0
- package/provider-anthropic/index.js +1 -0
- package/provider-openai/index.d.ts +1 -0
- package/provider-openai/index.js +1 -0
- package/runtime/index.d.ts +1 -0
- package/runtime/index.js +1 -0
- package/sandbox/docker/index.d.ts +1 -0
- package/sandbox/docker/index.js +1 -0
- package/sandbox/index.d.ts +1 -0
- package/sandbox/index.js +1 -0
- package/sandbox/testing/index.d.ts +1 -0
- package/sandbox/testing/index.js +1 -0
- package/sdk/index.d.ts +1 -0
- package/sdk/index.js +1 -0
- package/server/index.d.ts +1 -0
- package/server/index.js +1 -0
- package/server-node/index.d.ts +1 -0
- package/server-node/index.js +1 -0
- package/skills/index.d.ts +1 -0
- package/skills/index.js +1 -0
- package/storage/index.d.ts +1 -0
- package/storage/index.js +1 -0
- package/storage-contracts/index.d.ts +1 -0
- package/storage-contracts/index.js +1 -0
- package/storage-postgres/driver/index.d.ts +1 -0
- package/storage-postgres/driver/index.js +1 -0
- package/storage-postgres/index.d.ts +1 -0
- package/storage-postgres/index.js +1 -0
- package/storage-sql/host/index.d.ts +1 -0
- package/storage-sql/host/index.js +1 -0
- package/storage-sqlite/index.d.ts +1 -0
- package/storage-sqlite/index.js +1 -0
- package/terminal/index.d.ts +1 -0
- package/terminal/index.js +1 -0
- package/testing/index.d.ts +1 -0
- package/testing/index.js +1 -0
- package/tools/host/index.d.ts +1 -0
- package/tools/host/index.js +1 -0
- package/tools/index.d.ts +1 -0
- package/tools/index.js +1 -0
- package/voice/index.d.ts +1 -0
- package/voice/index.js +1 -0
- package/workflows/agents/index.d.ts +1 -0
- package/workflows/agents/index.js +1 -0
- package/workflows/children/index.d.ts +1 -0
- package/workflows/children/index.js +1 -0
- package/workflows/composites/index.d.ts +1 -0
- package/workflows/composites/index.js +1 -0
- package/workflows/ephemeral/index.d.ts +1 -0
- package/workflows/ephemeral/index.js +1 -0
- package/workflows/graphs/index.d.ts +1 -0
- package/workflows/graphs/index.js +1 -0
- package/workflows/index.d.ts +1 -0
- package/workflows/index.js +1 -0
- package/workflows/lifecycle/index.d.ts +1 -0
- package/workflows/lifecycle/index.js +1 -0
- package/workflows/loops/index.d.ts +1 -0
- package/workflows/loops/index.js +1 -0
- package/workflows/sagas/index.d.ts +1 -0
- package/workflows/sagas/index.js +1 -0
- package/workstream/executions/index.d.ts +1 -0
- package/workstream/executions/index.js +1 -0
- package/workstream/humans/index.d.ts +1 -0
- package/workstream/humans/index.js +1 -0
- package/workstream/index.d.ts +1 -0
- package/workstream/index.js +1 -0
- package/workstream/timers/index.d.ts +1 -0
- package/workstream/timers/index.js +1 -0
- package/workstream/webhooks/index.d.ts +1 -0
- package/workstream/webhooks/index.js +1 -0
package/README.md
CHANGED
|
@@ -16,14 +16,15 @@ with a CLI that scaffolds, runs and operates your project.
|
|
|
16
16
|
|
|
17
17
|
- **Typed agents and tools.** Schemas for inputs and outputs with the built-in `z` (Zod), or any Standard Schema
|
|
18
18
|
validator, validated at runtime and inferred in TypeScript.
|
|
19
|
-
- **Any model.**
|
|
20
|
-
|
|
19
|
+
- **Any model.** A model registry with `provider/model` names, dated prices, retries and fallback chains. Packages for
|
|
20
|
+
OpenAI, Anthropic, Google Gemini, Amazon Bedrock, Azure OpenAI, Mistral, Groq and Ollama, and any OpenAI-compatible
|
|
21
|
+
provider such as DeepSeek, xAI, OpenRouter, Together, Fireworks and local servers.
|
|
21
22
|
- **Explicit permissions.** A run can use only the models, tools and effects you grant; nothing is implied by
|
|
22
23
|
registering a tool.
|
|
23
24
|
- **Cost control.** Model prices, per-call and per-run cost caps, and step, tool-call and time limits on every run;
|
|
24
25
|
budgets shared across agents and workflows.
|
|
25
|
-
- **Durable workflows.** Steps, approvals, timers, signals, fan-out, sagas and loops that survive restarts, on SQLite
|
|
26
|
-
or
|
|
26
|
+
- **Durable workflows.** Steps, approvals, timers, signals, fan-out, sagas and loops that survive restarts, on SQLite,
|
|
27
|
+
PostgreSQL, libSQL (Turso), MySQL, MongoDB, Cloudflare D1 or DynamoDB.
|
|
27
28
|
- **People in the loop.** Approvals and typed questions for people, answered from code, the CLI, a React form or the
|
|
28
29
|
operator console.
|
|
29
30
|
- **Streaming.** Stream an agent's answer as it is written, with guards on every batch.
|
|
@@ -36,15 +37,27 @@ with a CLI that scaffolds, runs and operates your project.
|
|
|
36
37
|
- **Skills, MCP and Code Mode.** Load `SKILL.md` skills on demand, call MCP tools, and run model-written code in a
|
|
37
38
|
QuickJS or Docker sandbox.
|
|
38
39
|
- **Multi-agent.** Child agents, agents as tools and speculative branches under one shared budget.
|
|
40
|
+
- **Sandboxes and browsers.** Isolated Linux machines (Docker built in, or E2B, Vercel, Daytona, Modal and eight more)
|
|
41
|
+
and real browsers kept to the origins you allow (local Chrome, or Browserbase, Steel, Kernel and seven more).
|
|
42
|
+
- **Voice and files.** Speech to text and text to speech with seven providers, and file storage on S3, R2, GCS,
|
|
43
|
+
Azure Blob, Vercel Blob, Google Drive and more.
|
|
44
|
+
- **Sign-in and API keys.** Verify tokens from Clerk, Auth0, Supabase, Firebase, WorkOS, Entra ID, Okta, Cognito and
|
|
45
|
+
others, and issue, rotate and revoke your own API keys with scopes, rate limits and credits.
|
|
39
46
|
- **Serve it anywhere.** An authenticated HTTP server with live events, a browser client, React hooks and components,
|
|
40
47
|
an operator console, and terminal chat or one-shot commands.
|
|
41
|
-
- **Observability.** Run events, workflow tracing and OpenTelemetry (OTLP) export
|
|
48
|
+
- **Observability.** Run events, workflow tracing and OpenTelemetry (OTLP) export with GenAI attributes, and packages
|
|
49
|
+
for Langfuse, LangSmith, Datadog, Arize, Sentry, Better Stack and PostHog. Nothing is sent anywhere unless you
|
|
42
50
|
configure it.
|
|
51
|
+
- **Deploy anywhere.** `mayura deploy` to Docker, Compose, Kubernetes and eleven platforms, from Fly.io and Cloud Run
|
|
52
|
+
to AWS Lambda and Cloudflare. Runs on Node.js, Bun, Deno, Cloudflare Workers and Vercel Edge.
|
|
53
|
+
- **85 integration packages.** Optional `@mayurajs/*` packages, released with `mayura`: see the
|
|
54
|
+
[list](docs/reference/integrations.md).
|
|
43
55
|
- **Test offline.** Scripted models run agents, tools and workflows without a network or an API key.
|
|
44
56
|
|
|
45
57
|
## Quickstart
|
|
46
58
|
|
|
47
|
-
Mayura runs on Node.js 22 (22.12 or later) or 24 (24.14.1 or later).
|
|
59
|
+
Mayura runs on Node.js 22 (22.12 or later) or 24 (24.14.1 or later). Apart from the CLI and other Node-only entry
|
|
60
|
+
points, it also runs on Bun, Deno, Cloudflare Workers and Vercel Edge.
|
|
48
61
|
|
|
49
62
|
```bash
|
|
50
63
|
npm install mayura
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../lib/adapter-code-docker/dist/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../lib/adapter-code-docker/dist/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../lib/adapter-code-quickjs/dist/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../lib/adapter-code-quickjs/dist/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../lib/adapter-mcp/dist/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../lib/adapter-mcp/dist/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../lib/artifacts/dist/files.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../lib/artifacts/dist/files.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../lib/artifacts/dist/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../lib/artifacts/dist/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../lib/auth/dist/better-auth.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../lib/auth/dist/better-auth.js';
|
package/auth/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../lib/auth/dist/index.js';
|
package/auth/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../lib/auth/dist/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../lib/auth/dist/testing.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../lib/auth/dist/testing.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../lib/browser/dist/index.js';
|
package/browser/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../lib/browser/dist/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../lib/browser/dist/local/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../lib/browser/dist/local/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../lib/browser/dist/testing.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../lib/browser/dist/testing.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../lib/cli/dist/deploy-index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../lib/cli/dist/deploy-index.js';
|
package/cli/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../lib/cli/dist/index.js';
|
package/cli/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../lib/cli/dist/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../lib/client/dist/forms.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../lib/client/dist/forms.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../lib/client/dist/headless.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../lib/client/dist/headless.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../lib/client/dist/index.js';
|
package/client/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../lib/client/dist/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../lib/client/dist/workflows.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../lib/client/dist/workflows.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../lib/client-react/dist/components.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../lib/client-react/dist/components.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../lib/client-react/dist/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../lib/client-react/dist/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../lib/code-mode/dist/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../lib/code-mode/dist/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../lib/code-mode-workflows/dist/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../lib/code-mode-workflows/dist/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../lib/context/dist/index.js';
|
package/context/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../lib/context/dist/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../lib/core/dist/host.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../lib/core/dist/host.js';
|
package/core/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../lib/core/dist/index.js';
|
package/core/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../lib/core/dist/index.js';
|
package/docs/README.md
CHANGED
|
@@ -26,9 +26,11 @@ Mayura is a TypeScript framework for building AI agents, typed tools and durable
|
|
|
26
26
|
## Agents and models
|
|
27
27
|
|
|
28
28
|
- [Model providers](guides/model-providers.md): OpenAI, Anthropic and OpenAI-compatible providers.
|
|
29
|
+
- [Model registry](guides/model-registry.md): models as provider/model from @mayurajs provider packages, with prices, retries and chains.
|
|
29
30
|
- [Model routing](guides/model-routing.md): failover between providers.
|
|
30
31
|
- [Streaming](guides/streaming.md): show an answer while it is written.
|
|
31
32
|
- [Vision](guides/vision.md): agents that see images and PDFs, from the input or from tools.
|
|
33
|
+
- [Voice](guides/voice.md): transcribe speech and speak text, with prices and per-call bounds.
|
|
32
34
|
- [Child agents](guides/child-agents.md): agents that delegate to other agents.
|
|
33
35
|
- [Skills](guides/skills.md): `SKILL.md` folders an agent loads on demand.
|
|
34
36
|
- [MCP tools](guides/mcp.md): call tools on an MCP server.
|
|
@@ -46,17 +48,21 @@ Mayura is a TypeScript framework for building AI agents, typed tools and durable
|
|
|
46
48
|
|
|
47
49
|
## Data, safety and extensions
|
|
48
50
|
|
|
49
|
-
- [Storage](guides/storage.md): SQLite and
|
|
51
|
+
- [Storage](guides/storage.md): SQLite, PostgreSQL, libSQL (Turso), MySQL, MongoDB, D1 and DynamoDB.
|
|
50
52
|
- [Memory and context](guides/memory-and-context.md): what an agent remembers and sees.
|
|
51
53
|
- [Guardrails](guides/guardrails.md): check, block or redact inputs and outputs.
|
|
52
54
|
- [Lifecycle hooks](guides/lifecycle-hooks.md): code that can stop a run at defined points.
|
|
53
55
|
- [Artifacts](guides/artifacts.md): store files that runs produce.
|
|
56
|
+
- [Files](guides/files.md): files in S3, R2 and other object stores, with versions, tenant views and file tools.
|
|
57
|
+
- [Sandboxes](guides/sandboxes.md): isolated Linux machines for agents to run commands and handle files in, on Docker or a hosted provider.
|
|
58
|
+
- [Browsers](guides/browsers.md): real browsers for agents to read and use web pages in, on the Chrome or Edge installed here or a hosted service, kept to allowed origins.
|
|
54
59
|
- [Code Mode](guides/code-mode.md): run model-written code in a sandbox.
|
|
55
60
|
- [Helpers](guides/helpers.md): configuration, secrets, retries and other utilities.
|
|
56
61
|
|
|
57
62
|
## Serve, observe and deploy
|
|
58
63
|
|
|
59
64
|
- [Server and client](guides/server-and-client.md): serve agents and workflows over HTTP.
|
|
65
|
+
- [Authentication and API keys](guides/authentication.md): tokens from identity providers and API keys on your own storage, mapped to what callers may do.
|
|
60
66
|
- [React](guides/react.md): hooks, components and forms.
|
|
61
67
|
- [Observability](guides/observability.md): events, tracing and OpenTelemetry.
|
|
62
68
|
- [Operator console](guides/operator-console.md): a UI for runs, workflows and approvals.
|
|
@@ -68,14 +74,17 @@ Mayura is a TypeScript framework for building AI agents, typed tools and durable
|
|
|
68
74
|
- [mayura init](cli/init.md): starters and templates.
|
|
69
75
|
- [mayura dev](cli/dev.md): develop with rebuild and restart.
|
|
70
76
|
- [serve, worker and migrate](cli/run.md): run an application.
|
|
77
|
+
- [mayura deploy](cli/deploy.md): deploy with Docker, Compose, Kubernetes or a platform package.
|
|
71
78
|
- [Operator commands](cli/operations.md): manage a running server.
|
|
72
79
|
|
|
73
80
|
## Reference
|
|
74
81
|
|
|
75
82
|
- [Entry points](reference/entry-points.md): every `mayura/...` import.
|
|
83
|
+
- [Integration packages](reference/integrations.md): every `@mayurajs/*` package, by area.
|
|
76
84
|
|
|
77
85
|
## Project
|
|
78
86
|
|
|
87
|
+
- [What's new in 1.1](project/whats-new.md): the capabilities and integration packages that 1.1 adds.
|
|
79
88
|
- [Versioning and stability](project/versioning.md): what each release promises.
|
|
80
89
|
- [Supported platforms](project/support.md): Node.js versions, operating systems and getting help.
|
|
81
90
|
- [Security model](project/security.md): what Mayura protects against, and reporting vulnerabilities.
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Deploy with mayura deploy"
|
|
3
|
+
description: "Write a target's deployment files, plan a release and run it with the tools you already use: Docker, Docker Compose, Kubernetes, or a platform package."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
`mayura deploy` deploys a [Mayura application](../guides/deployment.md) in two steps, each one shown before anything
|
|
7
|
+
happens:
|
|
8
|
+
|
|
9
|
+
1. `mayura deploy init --target <id>` writes the files the target needs (a `Dockerfile`, a `compose.yaml`, Kubernetes
|
|
10
|
+
manifests) for you to review and commit. It never overwrites a file without your confirmation.
|
|
11
|
+
2. `mayura deploy --target <id>` plans one release: every command, in order, with everything it is given. Run it
|
|
12
|
+
with `--apply` and the plan's digest. Each command is one of the tools you already use and are logged in to:
|
|
13
|
+
`docker`, `kubectl` or a platform's own CLI. Mayura reads no credentials and runs no shell.
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
mayura deploy init --target kubernetes # plan the files
|
|
17
|
+
mayura deploy init --target kubernetes --apply # write them; review and commit
|
|
18
|
+
mayura deploy --target kubernetes --tag v42 # plan the release and print its digest
|
|
19
|
+
mayura deploy --target kubernetes --tag v42 --apply --confirm <digest>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Targets
|
|
23
|
+
|
|
24
|
+
| Target | Writes | A release |
|
|
25
|
+
|---|---|---|
|
|
26
|
+
| `docker` | `Dockerfile`, `.dockerignore` | builds the image and pushes it |
|
|
27
|
+
| `compose` | `Dockerfile`, `.dockerignore`, `compose.yaml` (PostgreSQL, migration, server, worker) | builds, runs the migration once, then starts or updates the server and worker and waits until they are healthy |
|
|
28
|
+
| `kubernetes` | `Dockerfile`, `.dockerignore`, `deploy/kubernetes/` (migration Job, server Deployment and Service, worker Deployment) | builds and pushes the image, runs the migration Job and waits for its outcome, then rolls out the server and worker and waits for both |
|
|
29
|
+
|
|
30
|
+
Platforms come as packages named `@mayurajs/deploy-<id>`: install one in the project and use its id as the target.
|
|
31
|
+
`mayura deploy targets` lists the built-in targets and the installed packages. Packages are loaded only from the
|
|
32
|
+
project's own dependencies.
|
|
33
|
+
|
|
34
|
+
| Package | Target | Platform |
|
|
35
|
+
|---|---|---|
|
|
36
|
+
| `@mayurajs/deploy-agentcore` | `agentcore` | [Amazon Bedrock AgentCore Runtime](https://aws.amazon.com/bedrock/agentcore/): an ARM64 image serving its HTTP contract (`/invocations` calls your `invoke`, `/ping` reports busy while it runs), then the runtime updated and awaited |
|
|
37
|
+
| `@mayurajs/deploy-aws-ecs` | `aws-ecs` | [Amazon ECS on Fargate](https://aws.amazon.com/ecs/): task definitions at the release's image, a one-off migration task whose exit code is checked, then both services rolled out and awaited |
|
|
38
|
+
| `@mayurajs/deploy-aws-lambda` | `aws-lambda` | [AWS Lambda](https://aws.amazon.com/lambda/) (experimental): one container image for the API, workflows and migration functions; the migration runs and is checked before the others update |
|
|
39
|
+
| `@mayurajs/deploy-azure` | `azure` | [Azure Container Apps](https://azure.microsoft.com/products/container-apps): a migration job run to success, then the server and worker apps, each new revision awaited |
|
|
40
|
+
| `@mayurajs/deploy-cloudflare` | `cloudflare` | [Cloudflare](https://www.cloudflare.com): the app in Containers (server containers behind a Worker, a worker container kept awake by a cron), or the serverless module on Workers with a cron advancing workflows |
|
|
41
|
+
| `@mayurajs/deploy-cloudrun` | `cloudrun` | [Google Cloud Run](https://cloud.google.com/run): a migration job run to completion, then the server and an always-on internal worker as services, secrets from Secret Manager |
|
|
42
|
+
| `@mayurajs/deploy-digitalocean` | `digitalocean` | [DigitalOcean App Platform](https://www.digitalocean.com/products/app-platform): an app spec with the server, a worker, a pre-deploy migration and PostgreSQL; each release pushes the image to the app's tag and waits for the deployment |
|
|
43
|
+
| `@mayurajs/deploy-fly` | `fly` | [Fly.io](https://fly.io): `serve` and `worker` process groups, the migration as the release command, built by Fly's builders, your Docker, or pushed to your registry |
|
|
44
|
+
| `@mayurajs/deploy-railway` | `railway` | [Railway](https://railway.com): a server service and a worker service with config-as-code files, each migrating before it goes live |
|
|
45
|
+
| `@mayurajs/deploy-render` | `render` | [Render](https://render.com): a Blueprint with a web service, a background worker and PostgreSQL, each service migrating first; released with `render deploys create --wait` |
|
|
46
|
+
| `@mayurajs/deploy-vercel` | `vercel` | [Vercel Functions](https://vercel.com/docs/functions): the API behind a `/v1` rewrite, workflows advanced by Vercel Cron with `CRON_SECRET`, storage migrated from your machine before each deploy |
|
|
47
|
+
|
|
48
|
+
## mayura.deploy.json
|
|
49
|
+
|
|
50
|
+
`deploy init` writes `mayura.deploy.json` when the project has none. Everything in it has a default except the image:
|
|
51
|
+
|
|
52
|
+
```json
|
|
53
|
+
{
|
|
54
|
+
"format": "mayura.deploy.v1",
|
|
55
|
+
"name": "refunds",
|
|
56
|
+
"app": "dist/src/app.js",
|
|
57
|
+
"image": "registry.example.com/acme/refunds",
|
|
58
|
+
"port": 8080,
|
|
59
|
+
"probePort": 9090,
|
|
60
|
+
"env": ["OPENAI_API_KEY", "MAYURA_OPERATOR_TOKEN_SHA256"],
|
|
61
|
+
"targets": {
|
|
62
|
+
"kubernetes": { "namespace": "agents", "context": "prod-eu", "serverReplicas": 2, "workerReplicas": 2 }
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
- `name` names services, Jobs and Secrets: lowercase letters, digits and hyphens. It defaults to the package name.
|
|
68
|
+
- `app` is the compiled [application module](../guides/deployment.md#the-application-module). It defaults to
|
|
69
|
+
`dist/app.js` when `src` is the TypeScript root directory, and `dist/src/app.js` otherwise.
|
|
70
|
+
- `image` is the image repository, without a tag. A release's tag is `--tag`, or the `package.json` version.
|
|
71
|
+
- `env` lists the names of the variables the application reads. Their values never appear in a plan.
|
|
72
|
+
- `targets.<id>` holds each target's settings. For `kubernetes`: `namespace` (`default`), `context` (a kubeconfig
|
|
73
|
+
context; set it, so a release never goes to whichever cluster happens to be current), `secret` (`<name>-env`),
|
|
74
|
+
`serverReplicas` and `workerReplicas` (2), and `timeoutSeconds` (600). For `compose`: `projectName`.
|
|
75
|
+
|
|
76
|
+
## Plans and confirmation
|
|
77
|
+
|
|
78
|
+
A plan lists each step with its tool and arguments. Steps that apply rendered manifests show them in `--json`. The
|
|
79
|
+
plan's digest covers all of it: the target, the release, every argument and every manifest. `--apply` runs the
|
|
80
|
+
plan only when `--confirm` gives that digest, so what runs is exactly what you reviewed. If anything changed in
|
|
81
|
+
between, such as an edited manifest or a different tag, the digest differs and nothing runs.
|
|
82
|
+
|
|
83
|
+
During a run, each tool's output goes to standard error, and the result (each step's status and exit code) goes to
|
|
84
|
+
standard output. A run stops at the first failing step and skips the rest, so a failed migration never rolls out.
|
|
85
|
+
Ctrl+C stops the running tool and skips the remaining steps.
|
|
86
|
+
|
|
87
|
+
## Credentials and secrets
|
|
88
|
+
|
|
89
|
+
Mayura reads no credentials. Each tool uses its own login and configuration: `docker login`, your kubeconfig, or a
|
|
90
|
+
platform CLI's own login. The application's secrets stay where the platform keeps them:
|
|
91
|
+
|
|
92
|
+
- **Compose:** the project's `.env`, which `deploy init` never writes.
|
|
93
|
+
- **Kubernetes:** a Secret, by default `<name>-env`, that the manifests load with `envFrom`. Create it before the
|
|
94
|
+
first release, for example with `kubectl create secret generic refunds-env --from-env-file=.env.production`.
|
|
95
|
+
|
|
96
|
+
## Kubernetes manifests
|
|
97
|
+
|
|
98
|
+
The manifests under `deploy/kubernetes/` are yours to edit: resources, probes, node selectors, annotations. They
|
|
99
|
+
contain two placeholders that a release fills in, and that must stay:
|
|
100
|
+
|
|
101
|
+
- `mayura-app-image`, the image, which becomes `<image>:<tag>`;
|
|
102
|
+
- `mayura-release` in the Job's name, which becomes the tag (lowercase, at most 13 characters), so each release runs
|
|
103
|
+
its own migration Job.
|
|
104
|
+
|
|
105
|
+
The rendered manifests are given to `kubectl apply -f -`; the files on disk stay unchanged. The migration Job has
|
|
106
|
+
`backoffLimit: 0`, and the release waits for its outcome before anything rolls out.
|
|
107
|
+
|
|
108
|
+
## Write a target
|
|
109
|
+
|
|
110
|
+
A platform package exports a target as its default export:
|
|
111
|
+
|
|
112
|
+
```ts
|
|
113
|
+
import { defineDeployTarget, imageSteps } from 'mayura/cli/deploy';
|
|
114
|
+
|
|
115
|
+
export default defineDeployTarget({
|
|
116
|
+
id: 'acme',
|
|
117
|
+
description: 'Deploy to Acme Cloud.',
|
|
118
|
+
tools: ['docker', 'acme'],
|
|
119
|
+
settings: () => ({}),
|
|
120
|
+
files: ({ project }) => ({ 'acme.toml': `app = "${project.name}"\n` }),
|
|
121
|
+
plan: ({ release }) => [
|
|
122
|
+
...imageSteps(release, 'acme'),
|
|
123
|
+
{ id: 'deploy', description: 'Deploy the release', tool: 'acme', args: ['deploy', '--image', release.image ?? ''] },
|
|
124
|
+
],
|
|
125
|
+
});
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
A target may run only the tools it declares, by name; a step naming any other program is refused when the release
|
|
129
|
+
is planned. Arguments are passed as given, without a shell.
|
|
130
|
+
|
|
131
|
+
A step can check what its tool prints with `output: { match, as }`. The tool's standard output, trimmed, must fully
|
|
132
|
+
match the regular expression `match`, or the step fails. Use it for a result the exit code does not carry, such as a
|
|
133
|
+
task's exit code. With `as`, later steps' arguments can use the output as `{{name}}`, such as the id of a task an
|
|
134
|
+
earlier step started. A step may use only names captured before it, and only output that matched its pattern is
|
|
135
|
+
passed on.
|
|
136
|
+
|
|
137
|
+
To wait for something its tool cannot wait for, a step adds `retry: { while, attempts, intervalSeconds }` to its
|
|
138
|
+
output check. While the output matches `while`, a status still in progress such as `Running`, the step runs again
|
|
139
|
+
after the interval, up to `attempts` times and at most an hour. Any answer that matches neither pattern fails the
|
|
140
|
+
step at once.
|
|
141
|
+
|
|
142
|
+
## Good to know
|
|
143
|
+
|
|
144
|
+
- On Windows, `.exe` tools start directly. Tools that are `.cmd` scripts (gcloud, az, and CLIs installed with npm)
|
|
145
|
+
start through cmd.exe with each argument quoted. An argument cmd.exe would interpret (`" % ! ^ & | < > ( )` or a
|
|
146
|
+
trailing backslash) is refused, not escaped. Ctrl+C stops the tool and everything it started.
|
|
147
|
+
- `deploy init` writes files atomically and refuses links and paths outside the project, like
|
|
148
|
+
[mayura init](init.md).
|
|
149
|
+
- Use `--directory <dir>` to work on a project other than the current directory.
|
|
150
|
+
|
|
151
|
+
## Related
|
|
152
|
+
|
|
153
|
+
- [Deployment](../guides/deployment.md): the targets, roles and production settings behind these files.
|
|
154
|
+
- [Serve, worker and migrate](run.md): the commands each container runs.
|
package/docs/cli/overview.md
CHANGED
|
@@ -46,6 +46,7 @@ The CLI needs Node.js 22 (22.12 or later) or 24 (24.14.1 or later). See [Support
|
|
|
46
46
|
| Create | `init`, `starters`, `templates`, `validate`, `inspect` | [Create a project](init.md) |
|
|
47
47
|
| Run an application | `dev` | [Develop with mayura dev](dev.md) |
|
|
48
48
|
| Run an application | `serve`, `worker`, `migrate` | [Serve, worker and migrate](run.md) |
|
|
49
|
+
| Deploy | `deploy targets`, `deploy init`, `deploy` | [Deploy with mayura deploy](deploy.md) |
|
|
49
50
|
| Operate a server | `server-health`, `server-tools`, `run-get`, `run-wait`, `run-cancel`, `human-list`, `human-get`, `human-respond`, `workflow-list`, `workflow-get`, `workflow-approve`, `workflow-cancel`, `workflow-pause`, `workflow-resume`, `workflow-signal`, `fleet-get`, `fleet-hold`, `fleet-release`, `fleet-sweep` | [Operate a server](operations.md) |
|
|
50
51
|
|
|
51
52
|
Options take the form `--name value`, or just `--name` for switches such as `--apply`. An unknown option, or the
|