@cursor/july 0.1.105 → 0.1.108
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 +10 -5
- package/dist/bin/agent-serve.js +31 -16
- package/dist/channels/bitbucket/types.d.ts +2 -4
- package/dist/channels/bitbucket/types.d.ts.map +1 -1
- package/dist/channels/deployments/types.d.ts +5 -8
- package/dist/channels/deployments/types.d.ts.map +1 -1
- package/dist/channels/github/github-channel.js +8 -5
- package/dist/channels/github/types.d.ts +7 -5
- package/dist/channels/github/types.d.ts.map +1 -1
- package/dist/channels/gitlab/types.d.ts +2 -5
- package/dist/channels/gitlab/types.d.ts.map +1 -1
- package/dist/channels/origin/origin-channel.d.ts.map +1 -1
- package/dist/channels/origin/origin-channel.js +27 -13
- package/dist/channels/origin/types.d.ts +7 -4
- package/dist/channels/origin/types.d.ts.map +1 -1
- package/dist/channels/slack/defaults.d.ts.map +1 -1
- package/dist/channels/slack/defaults.js +3 -0
- package/dist/channels/slack/dispatch.d.ts.map +1 -1
- package/dist/channels/slack/dispatch.js +1 -1
- package/dist/channels/slack/live-delivery.d.ts.map +1 -1
- package/dist/channels/slack/live-delivery.js +48 -11
- package/dist/channels/slack/types.d.ts +4 -3
- package/dist/channels/slack/types.d.ts.map +1 -1
- package/dist/channels.d.ts +45 -0
- package/dist/channels.d.ts.map +1 -1
- package/dist/channels.js +106 -7
- package/dist/connections.d.ts +2 -1
- package/dist/connections.d.ts.map +1 -1
- package/dist/connections.js +2 -1
- package/dist/docs/404.html +3 -3
- package/dist/docs/ab.html +6 -6
- package/dist/docs/assets/{app.BVwaffdK.js → app.BASKM3M4.js} +1 -1
- package/dist/docs/assets/chunks/@localSearchIndexroot.BHZYsNVi.js +1 -0
- package/dist/docs/assets/chunks/{VPLocalSearchBox.WuWTZ1x8.js → VPLocalSearchBox.BOKxlYGP.js} +2 -2
- package/dist/docs/assets/chunks/{theme.BYdI_6sF.js → theme.DbDZW-zb.js} +2 -2
- package/dist/docs/assets/{deployment.md.MFPKqsqI.js → deployment.md.JenwuCCB.js} +4 -4
- package/dist/docs/assets/{deployment.md.MFPKqsqI.lean.js → deployment.md.JenwuCCB.lean.js} +1 -1
- package/dist/docs/assets/{evals.md.CbMoebP1.js → evals.md.C1ekS3k2.js} +1 -1
- package/dist/docs/assets/guides_cloud-agents.md.BsloyHdY.js +9 -0
- package/dist/docs/assets/{guides_cloud-agents.md.DS8RIjwx.lean.js → guides_cloud-agents.md.BsloyHdY.lean.js} +1 -1
- package/dist/docs/assets/{guides_github.md.c0gdGJ-D.js → guides_github.md.BH33UEBJ.js} +1 -1
- package/dist/docs/assets/{guides_grokbot-agents.md.DVqdhBKb.js → guides_grokbot-agents.md.DyV-WArv.js} +1 -1
- package/dist/docs/assets/guides_improve.md.BGVk32bK.js +14 -0
- package/dist/docs/assets/guides_improve.md.BGVk32bK.lean.js +1 -0
- package/dist/docs/assets/{guides_opentelemetry.md.COh9jFVg.js → guides_opentelemetry.md.SCRMskno.js} +3 -3
- package/dist/docs/assets/{guides_opentelemetry.md.COh9jFVg.lean.js → guides_opentelemetry.md.SCRMskno.lean.js} +1 -1
- package/dist/docs/assets/{guides_slack.md.9oHPye9o.js → guides_slack.md.D4RVMM4G.js} +3 -3
- package/dist/docs/assets/{guides_slack.md.9oHPye9o.lean.js → guides_slack.md.D4RVMM4G.lean.js} +1 -1
- package/dist/docs/assets/index.md.BjH1w2ZW.js +5 -0
- package/dist/docs/assets/{reference_agent-config.md.CHNpiyp4.js → reference_agent-config.md.CvoL6pof.js} +1 -1
- package/dist/docs/assets/{reference_channels.md.DBGcaB7m.js → reference_channels.md.D-qTqwcq.js} +2 -2
- package/dist/docs/assets/{reference_channels.md.DBGcaB7m.lean.js → reference_channels.md.D-qTqwcq.lean.js} +1 -1
- package/dist/docs/assets/{reference_cli.md.C6Lo8SEd.js → reference_cli.md.Ca26u0Es.js} +6 -6
- package/dist/docs/assets/{reference_cli.md.C6Lo8SEd.lean.js → reference_cli.md.Ca26u0Es.lean.js} +1 -1
- package/dist/docs/assets/{reference_connections.md.Di6jJAXF.js → reference_connections.md.BojkC6c5.js} +1 -1
- package/dist/docs/assets/{reference_extensions.md.CGmMLblt.js → reference_extensions.md.CPWt00ds.js} +1 -1
- package/dist/docs/assets/{scaffolding-agents.md.em43xlY1.js → scaffolding-agents.md.Kctn3OVb.js} +1 -1
- package/dist/docs/assets/{skills_create-agent.md.BVoWPcan.js → skills_create-agent.md.Q3h6Je-e.js} +1 -1
- package/dist/docs/assets/{skills_debug.md.CDbPhHfg.js → skills_debug.md.CVjCXMFF.js} +1 -1
- package/dist/docs/assets/{skills_debug.md.CDbPhHfg.lean.js → skills_debug.md.CVjCXMFF.lean.js} +1 -1
- package/dist/docs/assets/{skills_evals.md.723kpUmA.js → skills_evals.md.BhovOvrl.js} +1 -1
- package/dist/docs/assets/skills_framework-map.md.D-tFZhFS.js +1 -0
- package/dist/docs/assets/{skills_framework-map.md.haibFyoB.lean.js → skills_framework-map.md.D-tFZhFS.lean.js} +1 -1
- package/dist/docs/assets/{skills_github.md.D0JahM8c.js → skills_github.md.hgFX_oKY.js} +1 -1
- package/dist/docs/assets/{skills_otel.md.CqhobH3B.js → skills_otel.md.B5Ddv1xH.js} +1 -1
- package/dist/docs/assets/{style.BRuM8477.css → style.DCD_zyg3.css} +1 -1
- package/dist/docs/assets/troubleshooting.md.CYEAO9bM.js +1 -0
- package/dist/docs/building-with-agents.html +6 -6
- package/dist/docs/concepts.html +5 -5
- package/dist/docs/deployment.html +9 -9
- package/dist/docs/deployment.md +7 -2
- package/dist/docs/evals.html +8 -8
- package/dist/docs/evals.md +3 -2
- package/dist/docs/guides/agent-to-agent.html +6 -6
- package/dist/docs/guides/cloud-agents.html +7 -7
- package/dist/docs/guides/cloud-agents.md +4 -3
- package/dist/docs/guides/convert-automation.html +6 -6
- package/dist/docs/guides/github.html +7 -7
- package/dist/docs/guides/github.md +2 -1
- package/dist/docs/guides/grokbot-agents.html +7 -7
- package/dist/docs/guides/grokbot-agents.md +2 -2
- package/dist/docs/guides/human-in-the-loop.html +6 -6
- package/dist/docs/guides/improve.html +40 -0
- package/dist/docs/guides/improve.md +91 -0
- package/dist/docs/guides/mcp-oauth.html +6 -6
- package/dist/docs/guides/opentelemetry.html +8 -8
- package/dist/docs/guides/opentelemetry.md +3 -4
- package/dist/docs/guides/slack.html +8 -8
- package/dist/docs/guides/slack.md +2 -1
- package/dist/docs/guides/webhooks.html +6 -6
- package/dist/docs/hashmap.json +1 -1
- package/dist/docs/hillclimbing.html +6 -6
- package/dist/docs/index.html +8 -8
- package/dist/docs/index.md +4 -0
- package/dist/docs/llms-full.txt +180 -61
- package/dist/docs/llms.txt +1 -0
- package/dist/docs/quickstart.html +6 -6
- package/dist/docs/reference/agent-config.html +7 -7
- package/dist/docs/reference/agent-config.md +5 -2
- package/dist/docs/reference/artifacts.html +6 -6
- package/dist/docs/reference/channels.html +7 -7
- package/dist/docs/reference/channels.md +11 -19
- package/dist/docs/reference/cli.html +11 -11
- package/dist/docs/reference/cli.md +23 -13
- package/dist/docs/reference/connections.html +8 -8
- package/dist/docs/reference/connections.md +2 -1
- package/dist/docs/reference/extensions.html +7 -7
- package/dist/docs/reference/extensions.md +2 -0
- package/dist/docs/reference/hooks.html +6 -6
- package/dist/docs/reference/http-api.html +6 -6
- package/dist/docs/reference/instructions.html +6 -6
- package/dist/docs/reference/playground.html +5 -5
- package/dist/docs/reference/project-layout.html +6 -6
- package/dist/docs/reference/prompt.html +6 -6
- package/dist/docs/reference/result.html +6 -6
- package/dist/docs/reference/schedules.html +6 -6
- package/dist/docs/reference/sessions.html +5 -5
- package/dist/docs/reference/skills.html +6 -6
- package/dist/docs/reference/subagents.html +6 -6
- package/dist/docs/reference/tools.html +6 -6
- package/dist/docs/scaffolding-agents.html +6 -6
- package/dist/docs/scaffolding-agents.md +2 -1
- package/dist/docs/skills/ab.html +6 -6
- package/dist/docs/skills/create-agent.html +8 -8
- package/dist/docs/skills/create-agent.md +1 -1
- package/dist/docs/skills/debug.html +6 -6
- package/dist/docs/skills/debug.md +1 -1
- package/dist/docs/skills/evals.html +8 -8
- package/dist/docs/skills/evals.md +1 -1
- package/dist/docs/skills/framework-map.html +6 -6
- package/dist/docs/skills/framework-map.md +4 -2
- package/dist/docs/skills/github.html +8 -8
- package/dist/docs/skills/github.md +1 -1
- package/dist/docs/skills/hillclimb.html +6 -6
- package/dist/docs/skills/index.html +5 -5
- package/dist/docs/skills/mcp-auth.html +6 -6
- package/dist/docs/skills/otel.html +8 -8
- package/dist/docs/skills/otel.md +3 -3
- package/dist/docs/skills/setup-slack.html +6 -6
- package/dist/docs/storage.html +6 -6
- package/dist/docs/templates/agentic-owners.html +6 -6
- package/dist/docs/templates/agents-md.html +6 -6
- package/dist/docs/templates/code-wiki.html +6 -6
- package/dist/docs/templates/demo.html +6 -6
- package/dist/docs/templates/grokbot-agents.html +6 -6
- package/dist/docs/templates/pr-autofixer.html +6 -6
- package/dist/docs/templates/security-help.html +6 -6
- package/dist/docs/templates/security-reviewer.html +6 -6
- package/dist/docs/templates/triage.html +6 -6
- package/dist/docs/troubleshooting.html +6 -6
- package/dist/docs/troubleshooting.md +1 -1
- package/dist/extensions/improve/extension.d.ts +46 -0
- package/dist/extensions/improve/extension.d.ts.map +1 -0
- package/dist/extensions/improve/extension.js +41 -0
- package/dist/extensions/improve/skills/yourself.d.ts +4 -0
- package/dist/extensions/improve/skills/yourself.d.ts.map +1 -0
- package/dist/extensions/improve/skills/yourself.js +43 -0
- package/dist/index.d.ts +4 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -4
- package/dist/internal/builtin-tools/artifacts.d.ts.map +1 -1
- package/dist/internal/builtin-tools/artifacts.js +2 -3
- package/dist/internal/channel-route-dispatch.d.ts +13 -0
- package/dist/internal/channel-route-dispatch.d.ts.map +1 -0
- package/dist/internal/channel-route-dispatch.js +62 -0
- package/dist/internal/channel-state.d.ts +17 -0
- package/dist/internal/channel-state.d.ts.map +1 -0
- package/dist/internal/channel-state.js +78 -0
- package/dist/internal/cli-ax.d.ts +7 -0
- package/dist/internal/cli-ax.d.ts.map +1 -1
- package/dist/internal/cli-ax.js +99 -1
- package/dist/internal/cli-cursor.d.ts.map +1 -1
- package/dist/internal/cli-cursor.js +2 -0
- package/dist/internal/cli-deploy.d.ts.map +1 -1
- package/dist/internal/cli-deploy.js +61 -25
- package/dist/internal/cli-mcp-oauth.d.ts.map +1 -1
- package/dist/internal/cli-mcp-oauth.js +15 -0
- package/dist/internal/cli-mcp.d.ts.map +1 -1
- package/dist/internal/cli-mcp.js +12 -0
- package/dist/internal/cli-slack.d.ts.map +1 -1
- package/dist/internal/cli-slack.js +8 -2
- package/dist/internal/cursor/backend-client.d.ts +25 -0
- package/dist/internal/cursor/backend-client.d.ts.map +1 -1
- package/dist/internal/cursor/backend-client.js +57 -2
- package/dist/internal/cursor/credentials.d.ts +8 -2
- package/dist/internal/cursor/credentials.d.ts.map +1 -1
- package/dist/internal/cursor/credentials.js +27 -5
- package/dist/internal/deploy-client.d.ts +35 -0
- package/dist/internal/deploy-client.d.ts.map +1 -1
- package/dist/internal/deploy-client.js +46 -0
- package/dist/internal/deploy-manifest.d.ts +26 -0
- package/dist/internal/deploy-manifest.d.ts.map +1 -1
- package/dist/internal/deploy-manifest.js +99 -13
- package/dist/internal/describe-error.d.ts +1 -0
- package/dist/internal/describe-error.d.ts.map +1 -1
- package/dist/internal/describe-error.js +25 -0
- package/dist/internal/discovery/agent.d.ts.map +1 -1
- package/dist/internal/discovery/agent.js +1 -0
- package/dist/internal/discovery/info.d.ts.map +1 -1
- package/dist/internal/discovery/info.js +7 -3
- package/dist/internal/discovery/modules.d.ts +1 -1
- package/dist/internal/discovery/modules.d.ts.map +1 -1
- package/dist/internal/discovery/modules.js +1 -0
- package/dist/internal/discovery/project.d.ts.map +1 -1
- package/dist/internal/discovery/project.js +3 -0
- package/dist/internal/discovery/reminders.d.ts +7 -0
- package/dist/internal/discovery/reminders.d.ts.map +1 -0
- package/dist/internal/discovery/reminders.js +65 -0
- package/dist/internal/discovery/subagent.js +1 -0
- package/dist/internal/distribution.d.ts +5 -0
- package/dist/internal/distribution.d.ts.map +1 -1
- package/dist/internal/distribution.js +17 -0
- package/dist/internal/framework-storage-selection.d.ts +14 -3
- package/dist/internal/framework-storage-selection.d.ts.map +1 -1
- package/dist/internal/framework-storage-selection.js +36 -6
- package/dist/internal/guest-network.d.ts +4 -10
- package/dist/internal/guest-network.d.ts.map +1 -1
- package/dist/internal/guest-network.js +44 -26
- package/dist/internal/hosted-admission-adapter.d.ts +2 -0
- package/dist/internal/hosted-admission-adapter.d.ts.map +1 -1
- package/dist/internal/hosted-catch-protocol.d.ts +51 -0
- package/dist/internal/hosted-catch-protocol.d.ts.map +1 -0
- package/dist/internal/hosted-catch-protocol.js +103 -0
- package/dist/internal/hosted-catch.d.ts +40 -0
- package/dist/internal/hosted-catch.d.ts.map +1 -0
- package/dist/internal/hosted-catch.js +149 -0
- package/dist/internal/hosted-delivery-protocol.d.ts +89 -0
- package/dist/internal/hosted-delivery-protocol.d.ts.map +1 -1
- package/dist/internal/hosted-delivery-protocol.js +309 -0
- package/dist/internal/hosted-delivery.d.ts +20 -1
- package/dist/internal/hosted-delivery.d.ts.map +1 -1
- package/dist/internal/hosted-delivery.js +179 -36
- package/dist/internal/hosted-execution-diag.d.ts +4 -1
- package/dist/internal/hosted-execution-diag.d.ts.map +1 -1
- package/dist/internal/hosted-execution-diag.js +13 -4
- package/dist/internal/hosted-execution-flush.d.ts +3 -0
- package/dist/internal/hosted-execution-flush.d.ts.map +1 -1
- package/dist/internal/hosted-execution-flush.js +2 -4
- package/dist/internal/http-control-plane-session.d.ts +30 -0
- package/dist/internal/http-control-plane-session.d.ts.map +1 -0
- package/dist/internal/http-control-plane-session.js +83 -0
- package/dist/internal/legacy-command-guard.d.ts +22 -0
- package/dist/internal/legacy-command-guard.d.ts.map +1 -0
- package/dist/internal/legacy-command-guard.js +51 -0
- package/dist/internal/local-control-plane.d.ts +18 -2
- package/dist/internal/local-control-plane.d.ts.map +1 -1
- package/dist/internal/local-control-plane.js +199 -17
- package/dist/internal/platform-timers.d.ts +7 -0
- package/dist/internal/platform-timers.d.ts.map +1 -1
- package/dist/internal/platform-timers.js +139 -0
- package/dist/internal/reminder-control-plane-protocol.d.ts +189 -0
- package/dist/internal/reminder-control-plane-protocol.d.ts.map +1 -0
- package/dist/internal/reminder-control-plane-protocol.js +251 -0
- package/dist/internal/reminder-runner.d.ts +56 -6
- package/dist/internal/reminder-runner.d.ts.map +1 -1
- package/dist/internal/reminder-runner.js +372 -57
- package/dist/internal/reminder-schedule.d.ts +5 -2
- package/dist/internal/reminder-schedule.d.ts.map +1 -1
- package/dist/internal/reminder-schedule.js +8 -6
- package/dist/internal/reminder-store.d.ts +24 -7
- package/dist/internal/reminder-store.d.ts.map +1 -1
- package/dist/internal/reminder-store.js +6 -5
- package/dist/internal/request-error-status.d.ts +2 -0
- package/dist/internal/request-error-status.d.ts.map +1 -1
- package/dist/internal/request-error-status.js +22 -3
- package/dist/internal/resolve-prod-target.d.ts +2 -0
- package/dist/internal/resolve-prod-target.d.ts.map +1 -1
- package/dist/internal/resolve-prod-target.js +13 -0
- package/dist/internal/scm/pr-url.d.ts +40 -0
- package/dist/internal/scm/pr-url.d.ts.map +1 -1
- package/dist/internal/scm/pr-url.js +93 -14
- package/dist/internal/sdk-runner.d.ts.map +1 -1
- package/dist/internal/sdk-runner.js +4 -3
- package/dist/internal/server.d.ts.map +1 -1
- package/dist/internal/server.js +118 -77
- package/dist/internal/session-engine.d.ts +6 -6
- package/dist/internal/session-engine.d.ts.map +1 -1
- package/dist/internal/session-engine.js +100 -67
- package/dist/playground/assets/{index-BaQzjaNK.js → index-BMDqAeXu.js} +34 -34
- package/dist/playground/assets/index-LUgJoWdL.css +1 -0
- package/dist/playground/index.html +2 -2
- package/dist/reminders.d.ts +24 -5
- package/dist/reminders.d.ts.map +1 -1
- package/dist/reminders.js +28 -5
- package/dist/storage-backends/cursor-hosted.d.ts +6 -0
- package/dist/storage-backends/cursor-hosted.d.ts.map +1 -1
- package/dist/storage-backends/cursor-hosted.js +29 -1
- package/dist/types.d.ts +122 -25
- package/dist/types.d.ts.map +1 -1
- package/docs/README.md +4 -0
- package/docs/deployment.md +7 -2
- package/docs/evals.md +3 -2
- package/docs/guides/cloud-agents.md +4 -3
- package/docs/guides/github.md +2 -1
- package/docs/guides/grokbot-agents.md +2 -2
- package/docs/guides/improve.md +96 -0
- package/docs/guides/opentelemetry.md +3 -4
- package/docs/guides/slack.md +2 -1
- package/docs/reference/agent-config.md +5 -2
- package/docs/reference/channels.md +11 -19
- package/docs/reference/cli.md +23 -13
- package/docs/reference/connections.md +2 -1
- package/docs/reference/extensions.md +2 -0
- package/docs/scaffolding-agents.md +2 -1
- package/docs/troubleshooting.md +1 -1
- package/package.json +10 -3
- package/skills/create-agent/SKILL.md +1 -1
- package/skills/debug/SKILL.md +1 -1
- package/skills/evals/SKILL.md +1 -1
- package/skills/framework-map/SKILL.md +4 -2
- package/skills/github/SKILL.md +1 -1
- package/skills/otel/SKILL.md +3 -3
- package/src/bin/agent-serve.ts +28 -11
- package/src/channels/bitbucket/types.ts +2 -4
- package/src/channels/deployments/types.ts +5 -8
- package/src/channels/github/github-channel.ts +8 -8
- package/src/channels/github/types.ts +7 -4
- package/src/channels/gitlab/types.ts +2 -5
- package/src/channels/origin/origin-channel.ts +29 -13
- package/src/channels/origin/types.ts +7 -3
- package/src/channels/slack/defaults.ts +3 -0
- package/src/channels/slack/dispatch.ts +1 -0
- package/src/channels/slack/live-delivery.ts +53 -12
- package/src/channels/slack/types.ts +4 -3
- package/src/channels.ts +157 -10
- package/src/connections.ts +2 -1
- package/src/extensions/improve/extension.ts +70 -0
- package/src/extensions/improve/skills/yourself.ts +50 -0
- package/src/index.ts +6 -3
- package/src/internal/builtin-tools/artifacts.ts +2 -3
- package/src/internal/channel-route-dispatch.ts +66 -0
- package/src/internal/channel-state.ts +96 -0
- package/src/internal/cli-ax.ts +110 -1
- package/src/internal/cli-cursor.ts +4 -1
- package/src/internal/cli-deploy.ts +80 -22
- package/src/internal/cli-mcp-oauth.ts +18 -0
- package/src/internal/cli-mcp.ts +11 -0
- package/src/internal/cli-slack.ts +15 -2
- package/src/internal/cursor/backend-client.ts +90 -2
- package/src/internal/cursor/credentials.ts +35 -7
- package/src/internal/deploy-client.ts +70 -0
- package/src/internal/deploy-manifest.ts +131 -12
- package/src/internal/describe-error.ts +28 -0
- package/src/internal/discovery/agent.ts +1 -0
- package/src/internal/discovery/info.ts +6 -0
- package/src/internal/discovery/modules.ts +2 -4
- package/src/internal/discovery/project.ts +3 -0
- package/src/internal/discovery/reminders.ts +65 -0
- package/src/internal/discovery/subagent.ts +1 -0
- package/src/internal/distribution.ts +20 -0
- package/src/internal/framework-storage-selection.ts +43 -6
- package/src/internal/guest-network.ts +46 -29
- package/src/internal/hosted-admission-adapter.ts +2 -0
- package/src/internal/hosted-catch-protocol.ts +130 -0
- package/src/internal/hosted-catch.ts +192 -0
- package/src/internal/hosted-delivery-protocol.ts +483 -0
- package/src/internal/hosted-delivery.ts +303 -43
- package/src/internal/hosted-execution-diag.ts +21 -3
- package/src/internal/hosted-execution-flush.ts +6 -3
- package/src/internal/http-control-plane-session.ts +104 -0
- package/src/internal/legacy-command-guard.ts +59 -0
- package/src/internal/local-control-plane.ts +281 -22
- package/src/internal/platform-timers.ts +191 -0
- package/src/internal/reminder-control-plane-protocol.ts +512 -0
- package/src/internal/reminder-runner.ts +481 -57
- package/src/internal/reminder-schedule.ts +11 -6
- package/src/internal/reminder-store.ts +27 -7
- package/src/internal/request-error-status.ts +27 -3
- package/src/internal/resolve-prod-target.ts +15 -0
- package/src/internal/scm/pr-url.ts +167 -20
- package/src/internal/sdk-runner.ts +2 -1
- package/src/internal/server.ts +151 -88
- package/src/internal/session-engine.ts +146 -83
- package/src/reminders.ts +35 -4
- package/src/storage-backends/cursor-hosted.ts +40 -1
- package/src/types.ts +134 -26
- package/dist/docs/assets/chunks/@localSearchIndexroot.CJxMklAy.js +0 -1
- package/dist/docs/assets/guides_cloud-agents.md.DS8RIjwx.js +0 -9
- package/dist/docs/assets/index.md.BW_6tOgR.js +0 -5
- package/dist/docs/assets/skills_framework-map.md.haibFyoB.js +0 -1
- package/dist/docs/assets/troubleshooting.md.Cus_YZga.js +0 -1
- package/dist/playground/assets/index-CceqnLTX.css +0 -1
- /package/dist/docs/assets/{evals.md.CbMoebP1.lean.js → evals.md.C1ekS3k2.lean.js} +0 -0
- /package/dist/docs/assets/{guides_github.md.c0gdGJ-D.lean.js → guides_github.md.BH33UEBJ.lean.js} +0 -0
- /package/dist/docs/assets/{guides_grokbot-agents.md.DVqdhBKb.lean.js → guides_grokbot-agents.md.DyV-WArv.lean.js} +0 -0
- /package/dist/docs/assets/{index.md.BW_6tOgR.lean.js → index.md.BjH1w2ZW.lean.js} +0 -0
- /package/dist/docs/assets/{reference_agent-config.md.CHNpiyp4.lean.js → reference_agent-config.md.CvoL6pof.lean.js} +0 -0
- /package/dist/docs/assets/{reference_connections.md.Di6jJAXF.lean.js → reference_connections.md.BojkC6c5.lean.js} +0 -0
- /package/dist/docs/assets/{reference_extensions.md.CGmMLblt.lean.js → reference_extensions.md.CPWt00ds.lean.js} +0 -0
- /package/dist/docs/assets/{scaffolding-agents.md.em43xlY1.lean.js → scaffolding-agents.md.Kctn3OVb.lean.js} +0 -0
- /package/dist/docs/assets/{skills_create-agent.md.BVoWPcan.lean.js → skills_create-agent.md.Q3h6Je-e.lean.js} +0 -0
- /package/dist/docs/assets/{skills_evals.md.723kpUmA.lean.js → skills_evals.md.BhovOvrl.lean.js} +0 -0
- /package/dist/docs/assets/{skills_github.md.D0JahM8c.lean.js → skills_github.md.hgFX_oKY.lean.js} +0 -0
- /package/dist/docs/assets/{skills_otel.md.CqhobH3B.lean.js → skills_otel.md.B5Ddv1xH.lean.js} +0 -0
- /package/dist/docs/assets/{troubleshooting.md.Cus_YZga.lean.js → troubleshooting.md.CYEAO9bM.lean.js} +0 -0
|
@@ -2,6 +2,93 @@ export const HOSTED_DELIVERY_PROTOCOL_VERSION = 2;
|
|
|
2
2
|
export const HOSTED_DELIVERY_HEADER = "x-agent-sdk-hosted-delivery";
|
|
3
3
|
export const HOSTED_ADMISSION_PATH = "/v1/internal/hosted-admission";
|
|
4
4
|
export const HOSTED_EXECUTION_PATH = "/v1/internal/hosted-execution";
|
|
5
|
+
export const HOSTED_GUEST_RETRY_TRANSIENT = "transient";
|
|
6
|
+
export const HOSTED_GUEST_RETRY_TERMINAL = "terminal";
|
|
7
|
+
export const HOSTED_FAILURE_CLASSIFICATION_VERSION = 1;
|
|
8
|
+
const HOSTED_FAILURE_DOMAINS = new Set([
|
|
9
|
+
"configuration",
|
|
10
|
+
"protocol",
|
|
11
|
+
"platform",
|
|
12
|
+
"agent",
|
|
13
|
+
"dependency",
|
|
14
|
+
"cancellation",
|
|
15
|
+
"unknown",
|
|
16
|
+
]);
|
|
17
|
+
const HOSTED_FAILURE_SOURCES = new Set([
|
|
18
|
+
"tas",
|
|
19
|
+
"factory",
|
|
20
|
+
"anyrun",
|
|
21
|
+
"engine",
|
|
22
|
+
"agent",
|
|
23
|
+
]);
|
|
24
|
+
export const HOSTED_FAILURE_CLASSIFICATIONS = {
|
|
25
|
+
agent_admission_threw: { domain: "agent", source: "agent" },
|
|
26
|
+
agent_dependency_failed: { domain: "dependency", source: "factory" },
|
|
27
|
+
background_dispatch_failed: { domain: "agent", source: "agent" },
|
|
28
|
+
bound_secrets_not_consumed: { domain: "platform", source: "engine" },
|
|
29
|
+
channel_dispatch_failed: { domain: "agent", source: "agent" },
|
|
30
|
+
channel_kind_mismatch: { domain: "configuration", source: "engine" },
|
|
31
|
+
channel_not_found: { domain: "configuration", source: "engine" },
|
|
32
|
+
channel_outcome_missing: { domain: "protocol", source: "agent" },
|
|
33
|
+
forbidden: { domain: "configuration", source: "engine" },
|
|
34
|
+
guest_connect_stalled: { domain: "platform", source: "engine" },
|
|
35
|
+
guest_network_unavailable: { domain: "platform", source: "anyrun" },
|
|
36
|
+
hosted_admission_session_mismatch: { domain: "protocol", source: "engine" },
|
|
37
|
+
hosted_admission_unavailable: { domain: "platform", source: "engine" },
|
|
38
|
+
hosted_deferred_session_unusable: { domain: "agent", source: "agent" },
|
|
39
|
+
hosted_local_send_rejected: { domain: "agent", source: "agent" },
|
|
40
|
+
hosted_send_limit_exceeded: { domain: "agent", source: "agent" },
|
|
41
|
+
internal_error: { domain: "unknown", source: "engine" },
|
|
42
|
+
invalid_hosted_admission: { domain: "protocol", source: "engine" },
|
|
43
|
+
invalid_hosted_execution: { domain: "protocol", source: "engine" },
|
|
44
|
+
invalid_request: { domain: "protocol", source: "engine" },
|
|
45
|
+
method_not_allowed: { domain: "protocol", source: "engine" },
|
|
46
|
+
not_found: { domain: "protocol", source: "engine" },
|
|
47
|
+
session_busy: { domain: "platform", source: "engine" },
|
|
48
|
+
turn_cancelled: { domain: "cancellation", source: "agent" },
|
|
49
|
+
turn_failed: { domain: "agent", source: "agent" },
|
|
50
|
+
unauthorized: { domain: "configuration", source: "engine" },
|
|
51
|
+
v2_identity_conflict: { domain: "protocol", source: "engine" },
|
|
52
|
+
};
|
|
53
|
+
export function hostedFailureClassification(code) {
|
|
54
|
+
var _a, _b;
|
|
55
|
+
const known = HOSTED_FAILURE_CLASSIFICATIONS[code];
|
|
56
|
+
return {
|
|
57
|
+
v: HOSTED_FAILURE_CLASSIFICATION_VERSION,
|
|
58
|
+
domain: (_a = known === null || known === void 0 ? void 0 : known.domain) !== null && _a !== void 0 ? _a : "unknown",
|
|
59
|
+
source: (_b = known === null || known === void 0 ? void 0 : known.source) !== null && _b !== void 0 ? _b : "engine",
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
export function parseHostedFailureClassification(value) {
|
|
63
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) {
|
|
64
|
+
return undefined;
|
|
65
|
+
}
|
|
66
|
+
const body = value;
|
|
67
|
+
if (body.v !== HOSTED_FAILURE_CLASSIFICATION_VERSION ||
|
|
68
|
+
typeof body.domain !== "string" ||
|
|
69
|
+
!HOSTED_FAILURE_DOMAINS.has(body.domain) ||
|
|
70
|
+
typeof body.source !== "string" ||
|
|
71
|
+
!HOSTED_FAILURE_SOURCES.has(body.source)) {
|
|
72
|
+
return undefined;
|
|
73
|
+
}
|
|
74
|
+
return body;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Hosted delivery is the only HTTP surface whose failures drive Temporal
|
|
78
|
+
* retries. Keep its retry disposition explicit instead of making the shared
|
|
79
|
+
* HTTP error helper guess from a status code.
|
|
80
|
+
*/
|
|
81
|
+
export function hostedGuestErrorResponse(input) {
|
|
82
|
+
const body = {
|
|
83
|
+
ok: false,
|
|
84
|
+
error: input.error,
|
|
85
|
+
retry: input.retry,
|
|
86
|
+
classification: hostedFailureClassification(input.error),
|
|
87
|
+
message: input.message,
|
|
88
|
+
turnStatus: input.turnStatus,
|
|
89
|
+
};
|
|
90
|
+
return Response.json(body, { status: input.status });
|
|
91
|
+
}
|
|
5
92
|
/**
|
|
6
93
|
* Filename under the serve `--state-root` (not the per-slug SessionEngine
|
|
7
94
|
* dir). Hosted freeze uses `/workspace/.agent-serve`; the Temporal host
|
|
@@ -9,6 +96,17 @@ export const HOSTED_EXECUTION_PATH = "/v1/internal/hosted-execution";
|
|
|
9
96
|
* Must match `AGENT_SERVE_ENGINE_HOSTED_EXECUTION_DIAG_PATH` basename.
|
|
10
97
|
*/
|
|
11
98
|
export const HOSTED_EXECUTION_DIAG_FILENAME = "hosted-execution.json";
|
|
99
|
+
/**
|
|
100
|
+
* Reserved hosted-admission `channelKind` for durable reminder fires.
|
|
101
|
+
* Bypasses authored channel admission and invokes ReminderRunner.dispatch.
|
|
102
|
+
* Backend builds envelopes with this constant + {@link HOSTED_REMINDER_EVENT_TYPE}.
|
|
103
|
+
*/
|
|
104
|
+
export const HOSTED_REMINDER_CHANNEL_KIND = "agent-sdk:reminder";
|
|
105
|
+
/**
|
|
106
|
+
* Reserved hosted-admission `eventType` for durable reminder fires.
|
|
107
|
+
* Payload is {@link HostedReminderFirePayload}.
|
|
108
|
+
*/
|
|
109
|
+
export const HOSTED_REMINDER_EVENT_TYPE = "agent-sdk.reminder/fire";
|
|
12
110
|
const DELIVERY_KEYS = new Set([
|
|
13
111
|
"v",
|
|
14
112
|
"channelId",
|
|
@@ -103,6 +201,217 @@ export function parseHostedExecution(value) {
|
|
|
103
201
|
}
|
|
104
202
|
return body;
|
|
105
203
|
}
|
|
204
|
+
/**
|
|
205
|
+
* True when the admission envelope is the reserved internal reminder fire
|
|
206
|
+
* path (not an authored channel event).
|
|
207
|
+
*/
|
|
208
|
+
export function isHostedReminderAdmission(delivery) {
|
|
209
|
+
return (delivery.channelKind === HOSTED_REMINDER_CHANNEL_KIND &&
|
|
210
|
+
delivery.eventType === HOSTED_REMINDER_EVENT_TYPE);
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Parse `{ reminderId, fireCount }` from a reserved reminder admission
|
|
214
|
+
* payload. Rejects unknown keys and non-integer fireCount.
|
|
215
|
+
*/
|
|
216
|
+
export function parseHostedReminderFirePayload(value) {
|
|
217
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) {
|
|
218
|
+
return undefined;
|
|
219
|
+
}
|
|
220
|
+
const body = value;
|
|
221
|
+
const keys = Object.keys(body);
|
|
222
|
+
if (keys.length !== 2 ||
|
|
223
|
+
!Object.hasOwn(body, "reminderId") ||
|
|
224
|
+
!Object.hasOwn(body, "fireCount") ||
|
|
225
|
+
!boundedString(body.reminderId, 128) ||
|
|
226
|
+
typeof body.fireCount !== "number" ||
|
|
227
|
+
!Number.isInteger(body.fireCount) ||
|
|
228
|
+
body.fireCount < 0) {
|
|
229
|
+
return undefined;
|
|
230
|
+
}
|
|
231
|
+
return {
|
|
232
|
+
reminderId: body.reminderId,
|
|
233
|
+
fireCount: body.fireCount,
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
const HOSTED_REMINDER_FIRE_DESCRIPTOR_KEYS = new Set([
|
|
237
|
+
"protocolVersion",
|
|
238
|
+
"id",
|
|
239
|
+
"fireCount",
|
|
240
|
+
"generation",
|
|
241
|
+
"purpose",
|
|
242
|
+
"channelId",
|
|
243
|
+
"continuationToken",
|
|
244
|
+
"target",
|
|
245
|
+
"scheduleKind",
|
|
246
|
+
"scheduleValue",
|
|
247
|
+
"intervalMs",
|
|
248
|
+
"prompt",
|
|
249
|
+
"handler",
|
|
250
|
+
"args",
|
|
251
|
+
"hasRunHandler",
|
|
252
|
+
"hasUntilFn",
|
|
253
|
+
"untilPrompt",
|
|
254
|
+
"busyPolicy",
|
|
255
|
+
"nextFireAtMs",
|
|
256
|
+
"claimedAtMs",
|
|
257
|
+
]);
|
|
258
|
+
const HOSTED_REMINDER_SCHEDULE_KINDS = new Set([
|
|
259
|
+
"every",
|
|
260
|
+
"cron",
|
|
261
|
+
"delay",
|
|
262
|
+
"at",
|
|
263
|
+
]);
|
|
264
|
+
const HOSTED_REMINDER_BUSY_POLICIES = new Set([
|
|
265
|
+
"skipIfBusy",
|
|
266
|
+
"queueBehindTurn",
|
|
267
|
+
]);
|
|
268
|
+
const HOSTED_REMINDER_JSON_MAX_DEPTH = 8;
|
|
269
|
+
/** Reject non-JSON values (NaN/Infinity/undefined/bigint/function/symbol). */
|
|
270
|
+
function isJsonSafeValue(value, depth) {
|
|
271
|
+
if (depth > HOSTED_REMINDER_JSON_MAX_DEPTH) {
|
|
272
|
+
return false;
|
|
273
|
+
}
|
|
274
|
+
if (value === null) {
|
|
275
|
+
return true;
|
|
276
|
+
}
|
|
277
|
+
const type = typeof value;
|
|
278
|
+
if (type === "string" || type === "boolean") {
|
|
279
|
+
return true;
|
|
280
|
+
}
|
|
281
|
+
if (type === "number") {
|
|
282
|
+
return Number.isFinite(value);
|
|
283
|
+
}
|
|
284
|
+
if (type !== "object") {
|
|
285
|
+
return false;
|
|
286
|
+
}
|
|
287
|
+
if (Array.isArray(value)) {
|
|
288
|
+
return value.every((entry) => isJsonSafeValue(entry, depth + 1));
|
|
289
|
+
}
|
|
290
|
+
const proto = Object.getPrototypeOf(value);
|
|
291
|
+
if (proto !== Object.prototype && proto !== null) {
|
|
292
|
+
return false;
|
|
293
|
+
}
|
|
294
|
+
for (const entry of Object.values(value)) {
|
|
295
|
+
if (!isJsonSafeValue(entry, depth + 1)) {
|
|
296
|
+
return false;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
return true;
|
|
300
|
+
}
|
|
301
|
+
function parseOptionalJsonObjectField(value, maxBytes) {
|
|
302
|
+
if (value === undefined) {
|
|
303
|
+
return undefined;
|
|
304
|
+
}
|
|
305
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) {
|
|
306
|
+
return undefined;
|
|
307
|
+
}
|
|
308
|
+
if (!isJsonSafeValue(value, 0)) {
|
|
309
|
+
return undefined;
|
|
310
|
+
}
|
|
311
|
+
try {
|
|
312
|
+
const encoded = JSON.stringify(value);
|
|
313
|
+
if (encoded === undefined ||
|
|
314
|
+
Buffer.byteLength(encoded, "utf8") > maxBytes) {
|
|
315
|
+
return undefined;
|
|
316
|
+
}
|
|
317
|
+
const roundTrip = JSON.parse(encoded);
|
|
318
|
+
if (typeof roundTrip !== "object" ||
|
|
319
|
+
roundTrip === null ||
|
|
320
|
+
Array.isArray(roundTrip)) {
|
|
321
|
+
return undefined;
|
|
322
|
+
}
|
|
323
|
+
return roundTrip;
|
|
324
|
+
}
|
|
325
|
+
catch (_a) {
|
|
326
|
+
return undefined;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* Parse the immutable CP fire descriptor. Rejects unknown keys, non-enum
|
|
331
|
+
* schedule/busy values, and non-JSON-safe optional object fields.
|
|
332
|
+
*/
|
|
333
|
+
export function parseHostedReminderFireDescriptorPayload(value) {
|
|
334
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) {
|
|
335
|
+
return undefined;
|
|
336
|
+
}
|
|
337
|
+
const body = value;
|
|
338
|
+
if (Object.keys(body).some((key) => !HOSTED_REMINDER_FIRE_DESCRIPTOR_KEYS.has(key))) {
|
|
339
|
+
return undefined;
|
|
340
|
+
}
|
|
341
|
+
if (body.protocolVersion !== 1 ||
|
|
342
|
+
typeof body.id !== "string" ||
|
|
343
|
+
body.id.length === 0 ||
|
|
344
|
+
body.id.length > 128 ||
|
|
345
|
+
typeof body.fireCount !== "number" ||
|
|
346
|
+
!Number.isInteger(body.fireCount) ||
|
|
347
|
+
body.fireCount < 0 ||
|
|
348
|
+
typeof body.generation !== "number" ||
|
|
349
|
+
!Number.isInteger(body.generation) ||
|
|
350
|
+
body.generation < 0 ||
|
|
351
|
+
typeof body.purpose !== "string" ||
|
|
352
|
+
body.purpose.length === 0 ||
|
|
353
|
+
body.purpose.length > 512 ||
|
|
354
|
+
typeof body.channelId !== "string" ||
|
|
355
|
+
body.channelId.length === 0 ||
|
|
356
|
+
body.channelId.length > 128 ||
|
|
357
|
+
typeof body.continuationToken !== "string" ||
|
|
358
|
+
body.continuationToken.length === 0 ||
|
|
359
|
+
body.continuationToken.length > 512 ||
|
|
360
|
+
typeof body.scheduleKind !== "string" ||
|
|
361
|
+
!HOSTED_REMINDER_SCHEDULE_KINDS.has(body.scheduleKind) ||
|
|
362
|
+
typeof body.scheduleValue !== "string" ||
|
|
363
|
+
body.scheduleValue.length === 0 ||
|
|
364
|
+
body.scheduleValue.length > 512 ||
|
|
365
|
+
typeof body.hasRunHandler !== "boolean" ||
|
|
366
|
+
typeof body.hasUntilFn !== "boolean" ||
|
|
367
|
+
typeof body.busyPolicy !== "string" ||
|
|
368
|
+
!HOSTED_REMINDER_BUSY_POLICIES.has(body.busyPolicy) ||
|
|
369
|
+
typeof body.nextFireAtMs !== "number" ||
|
|
370
|
+
!Number.isFinite(body.nextFireAtMs) ||
|
|
371
|
+
typeof body.claimedAtMs !== "number" ||
|
|
372
|
+
!Number.isFinite(body.claimedAtMs) ||
|
|
373
|
+
!Number.isInteger(body.claimedAtMs) ||
|
|
374
|
+
body.claimedAtMs < 0) {
|
|
375
|
+
return undefined;
|
|
376
|
+
}
|
|
377
|
+
if (body.intervalMs !== undefined) {
|
|
378
|
+
if (typeof body.intervalMs !== "number" ||
|
|
379
|
+
!Number.isFinite(body.intervalMs) ||
|
|
380
|
+
!Number.isInteger(body.intervalMs) ||
|
|
381
|
+
body.intervalMs <= 0) {
|
|
382
|
+
return undefined;
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
if (body.prompt !== undefined) {
|
|
386
|
+
if (typeof body.prompt !== "string" || body.prompt.length > 8192) {
|
|
387
|
+
return undefined;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
if (body.handler !== undefined) {
|
|
391
|
+
if (typeof body.handler !== "string" ||
|
|
392
|
+
body.handler.length === 0 ||
|
|
393
|
+
body.handler.length > 128) {
|
|
394
|
+
return undefined;
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
if (body.untilPrompt !== undefined) {
|
|
398
|
+
if (typeof body.untilPrompt !== "string" ||
|
|
399
|
+
body.untilPrompt.length > 8192) {
|
|
400
|
+
return undefined;
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
const target = parseOptionalJsonObjectField(body.target, 16 * 1024);
|
|
404
|
+
if (body.target !== undefined && target === undefined) {
|
|
405
|
+
return undefined;
|
|
406
|
+
}
|
|
407
|
+
const args = parseOptionalJsonObjectField(body.args, 32 * 1024);
|
|
408
|
+
if (body.args !== undefined && args === undefined) {
|
|
409
|
+
return undefined;
|
|
410
|
+
}
|
|
411
|
+
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ protocolVersion: 1, id: body.id, fireCount: body.fireCount, generation: body.generation, purpose: body.purpose, channelId: body.channelId, continuationToken: body.continuationToken }, (target === undefined ? {} : { target })), { scheduleKind: body.scheduleKind, scheduleValue: body.scheduleValue }), (body.intervalMs === undefined ? {} : { intervalMs: body.intervalMs })), (body.prompt === undefined ? {} : { prompt: body.prompt })), (body.handler === undefined ? {} : { handler: body.handler })), (args === undefined ? {} : { args })), { hasRunHandler: body.hasRunHandler, hasUntilFn: body.hasUntilFn }), (body.untilPrompt === undefined
|
|
412
|
+
? {}
|
|
413
|
+
: { untilPrompt: body.untilPrompt })), { busyPolicy: body.busyPolicy, nextFireAtMs: body.nextFireAtMs, claimedAtMs: body.claimedAtMs });
|
|
414
|
+
}
|
|
106
415
|
export function parseHostedAdmissionOutcome(value) {
|
|
107
416
|
if (typeof value !== "object" || value === null || Array.isArray(value)) {
|
|
108
417
|
return undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ChannelHandlerArgs, SendMessageOptions } from "../types.js";
|
|
2
2
|
import { type HostedBoundSecretsResult } from "./cursor/hosted-bound-secrets.js";
|
|
3
3
|
import { type GuestNetworkWaitResult } from "./guest-network.js";
|
|
4
|
-
import { type HostedAdmission } from "./hosted-delivery-protocol.js";
|
|
4
|
+
import { type HostedAdmission, type HostedReminderFireDescriptorPayload } from "./hosted-delivery-protocol.js";
|
|
5
5
|
import type { LogRingEntry } from "./log-ring.js";
|
|
6
6
|
import type { Router } from "./router.js";
|
|
7
7
|
import type { SessionRunExecutionWrite } from "./session-run-log.js";
|
|
@@ -39,6 +39,25 @@ export declare function registerHostedDeliveryRoute(input: {
|
|
|
39
39
|
definition: object;
|
|
40
40
|
}>;
|
|
41
41
|
buildHandlerArgs(channelId: string, sessionPublicId?: string): ChannelHandlerArgs;
|
|
42
|
+
/**
|
|
43
|
+
* Reserved reminder admission: dispatch a hydrated ReminderRunner fire
|
|
44
|
+
* without authored channel admission. Returns the runner's outcome so the
|
|
45
|
+
* route can map fired → task and noop → skip.
|
|
46
|
+
*/
|
|
47
|
+
fireReminder?(reminderId: string, expectedFireCount: number): Promise<{
|
|
48
|
+
reminderId: string;
|
|
49
|
+
outcome: "fired" | "noop";
|
|
50
|
+
reason?: string;
|
|
51
|
+
}>;
|
|
52
|
+
/**
|
|
53
|
+
* Architecture v2: execute an immutable CP fire descriptor and apply the
|
|
54
|
+
* structured outcome via the hosted ReminderControlPlane client.
|
|
55
|
+
*/
|
|
56
|
+
executeReminderDescriptor?(descriptor: HostedReminderFireDescriptorPayload): Promise<{
|
|
57
|
+
reminderId: string;
|
|
58
|
+
outcome: "fired" | "noop";
|
|
59
|
+
reason?: string;
|
|
60
|
+
}>;
|
|
42
61
|
/**
|
|
43
62
|
* Await the session's durable mirror (dispatch chain + storage queue)
|
|
44
63
|
* before the execution reply: the control plane may park the pod the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hosted-delivery.d.ts","sourceRoot":"","sources":["../../src/internal/hosted-delivery.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,kBAAkB,EAClB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"hosted-delivery.d.ts","sourceRoot":"","sources":["../../src/internal/hosted-delivery.ts"],"names":[],"mappings":"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"}
|