@cursor/july 0.1.114 → 0.2.1
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/dist/channels/slack/channel-watch.d.ts +19 -3
- package/dist/channels/slack/channel-watch.d.ts.map +1 -1
- package/dist/channels/slack/channel-watch.js +48 -9
- package/dist/channels/slack/inbound.d.ts +7 -0
- package/dist/channels/slack/inbound.d.ts.map +1 -1
- package/dist/channels/slack/inbound.js +23 -0
- package/dist/channels/slack/slack-channel.d.ts.map +1 -1
- package/dist/channels/slack/slack-channel.js +87 -8
- package/dist/channels/slack/types.d.ts +11 -12
- package/dist/channels/slack/types.d.ts.map +1 -1
- package/dist/docs/404.html +2 -2
- package/dist/docs/assets/{app.BqkJwOZ-.js → app.D23Y-7Tp.js} +4 -4
- package/dist/docs/assets/chunks/@localSearchIndexroot.CzCCM7N8.js +1 -0
- package/dist/docs/assets/chunks/{VPLocalSearchBox.BJAi2KiV.js → VPLocalSearchBox.CWBeTFRZ.js} +1 -1
- package/dist/docs/assets/chunks/{arc.BZpXTgvV.js → arc.DSF2O3pm.js} +1 -1
- package/dist/docs/assets/chunks/{architectureDiagram-Q4EWVU46.WYI-7F-Y.js → architectureDiagram-Q4EWVU46.J52Wzbkg.js} +1 -1
- package/dist/docs/assets/chunks/{baseUniq.CZaUPpg0.js → baseUniq.CQS3LPCt.js} +1 -1
- package/dist/docs/assets/chunks/{blockDiagram-DXYQGD6D.D6UES2pD.js → blockDiagram-DXYQGD6D.Dw339Gr5.js} +1 -1
- package/dist/docs/assets/chunks/{c4Diagram-AHTNJAMY.cwebIe4i.js → c4Diagram-AHTNJAMY.BUdtOaRZ.js} +1 -1
- package/dist/docs/assets/chunks/channel.Bfu4df88.js +1 -0
- package/dist/docs/assets/chunks/{chunk-4BX2VUAB.fVyFnjxg.js → chunk-4BX2VUAB.CuOrkEqk.js} +1 -1
- package/dist/docs/assets/chunks/{chunk-4TB4RGXK.BanufG1c.js → chunk-4TB4RGXK.BJNBcY7U.js} +1 -1
- package/dist/docs/assets/chunks/{chunk-55IACEB6.VaSMz5-2.js → chunk-55IACEB6.VJK5LAm_.js} +1 -1
- package/dist/docs/assets/chunks/{chunk-EDXVE4YY.CN2diZOM.js → chunk-EDXVE4YY.BYYLihvj.js} +1 -1
- package/dist/docs/assets/chunks/{chunk-FMBD7UC4.g4ivypu3.js → chunk-FMBD7UC4.CmoW8BXP.js} +1 -1
- package/dist/docs/assets/chunks/{chunk-OYMX7WX6.GZXKn9JJ.js → chunk-OYMX7WX6.DTGY4C-M.js} +1 -1
- package/dist/docs/assets/chunks/{chunk-QZHKN3VN.itXxJZCd.js → chunk-QZHKN3VN.Cg5n67vl.js} +1 -1
- package/dist/docs/assets/chunks/{chunk-YZCP3GAM.-rw2GfvX.js → chunk-YZCP3GAM.C3GR_ia5.js} +1 -1
- package/dist/docs/assets/chunks/classDiagram-6PBFFD2Q.DdfgtaWs.js +1 -0
- package/dist/docs/assets/chunks/classDiagram-v2-HSJHXN6E.DdfgtaWs.js +1 -0
- package/dist/docs/assets/chunks/clone.rkmfti6d.js +1 -0
- package/dist/docs/assets/chunks/{cose-bilkent-S5V4N54A.CmaI5br0.js → cose-bilkent-S5V4N54A.BTRG8N3b.js} +1 -1
- package/dist/docs/assets/chunks/{dagre-KV5264BT.4wY9S4Kt.js → dagre-KV5264BT.Bob_bp_p.js} +1 -1
- package/dist/docs/assets/chunks/{diagram-5BDNPKRD.Pc3c0u9W.js → diagram-5BDNPKRD.ggPcs9uO.js} +1 -1
- package/dist/docs/assets/chunks/{diagram-G4DWMVQ6.CYrWz-nj.js → diagram-G4DWMVQ6.BP0qyJkp.js} +1 -1
- package/dist/docs/assets/chunks/{diagram-MMDJMWI5.Bgj5hukb.js → diagram-MMDJMWI5.B0X24UKr.js} +1 -1
- package/dist/docs/assets/chunks/{diagram-TYMM5635.DGMEXalS.js → diagram-TYMM5635.B4rXHFVt.js} +1 -1
- package/dist/docs/assets/chunks/{erDiagram-SMLLAGMA.GepTV9Im.js → erDiagram-SMLLAGMA._55Rt9oX.js} +1 -1
- package/dist/docs/assets/chunks/{flowDiagram-DWJPFMVM.DVKywg3j.js → flowDiagram-DWJPFMVM.DGP4XvR5.js} +1 -1
- package/dist/docs/assets/chunks/{ganttDiagram-T4ZO3ILL.C7qt9Mlo.js → ganttDiagram-T4ZO3ILL.BtXtkL4E.js} +1 -1
- package/dist/docs/assets/chunks/{gitGraphDiagram-UUTBAWPF.U30_r82P.js → gitGraphDiagram-UUTBAWPF.B9cPWblK.js} +1 -1
- package/dist/docs/assets/chunks/{graph.CyyMyAWv.js → graph.D8HzNexS.js} +1 -1
- package/dist/docs/assets/chunks/{infoDiagram-42DDH7IO.Dn9ACW3y.js → infoDiagram-42DDH7IO.Bw7CQUpi.js} +1 -1
- package/dist/docs/assets/chunks/{ishikawaDiagram-UXIWVN3A.DlIdIGOA.js → ishikawaDiagram-UXIWVN3A.MwkzF6nQ.js} +1 -1
- package/dist/docs/assets/chunks/{journeyDiagram-VCZTEJTY.DZj4vy4E.js → journeyDiagram-VCZTEJTY.DIGFF-3C.js} +1 -1
- package/dist/docs/assets/chunks/{kanban-definition-6JOO6SKY.Dl63eMUV.js → kanban-definition-6JOO6SKY.DhYef2BN.js} +1 -1
- package/dist/docs/assets/chunks/{layout.BLHZLWPH.js → layout.C0XUxuPi.js} +1 -1
- package/dist/docs/assets/chunks/{linear.aXKGKaNw.js → linear.BwNPpZex.js} +1 -1
- package/dist/docs/assets/chunks/{min.zWnFcpcc.js → min.CwAQdL7z.js} +1 -1
- package/dist/docs/assets/chunks/{mindmap-definition-QFDTVHPH.Qs4MQBea.js → mindmap-definition-QFDTVHPH.pWsSVLsP.js} +1 -1
- package/dist/docs/assets/chunks/{pieDiagram-DEJITSTG.BmPHgsk7.js → pieDiagram-DEJITSTG.BDJ3FbBy.js} +1 -1
- package/dist/docs/assets/chunks/{quadrantDiagram-34T5L4WZ.D5MQ3gwA.js → quadrantDiagram-34T5L4WZ.Co80izyB.js} +1 -1
- package/dist/docs/assets/chunks/{requirementDiagram-MS252O5E.CkdUFrO7.js → requirementDiagram-MS252O5E.JveKw4yx.js} +1 -1
- package/dist/docs/assets/chunks/{sankeyDiagram-XADWPNL6.KZrljrAV.js → sankeyDiagram-XADWPNL6.B0A7adPi.js} +1 -1
- package/dist/docs/assets/chunks/{sequenceDiagram-FGHM5R23.XMoEW-Lx.js → sequenceDiagram-FGHM5R23.d6JZ5Hre.js} +1 -1
- package/dist/docs/assets/chunks/{stateDiagram-FHFEXIEX.BmTzePLj.js → stateDiagram-FHFEXIEX.DWnL0NQl.js} +1 -1
- package/dist/docs/assets/chunks/stateDiagram-v2-QKLJ7IA2.ZEetPk0E.js +1 -0
- package/dist/docs/assets/chunks/{theme.BfQzpxsg.js → theme.MJTLx0hh.js} +2 -2
- package/dist/docs/assets/chunks/{timeline-definition-GMOUNBTQ.Dug0oamp.js → timeline-definition-GMOUNBTQ.CFS7Ai4c.js} +1 -1
- package/dist/docs/assets/chunks/{vennDiagram-DHZGUBPP.BOTHrEFu.js → vennDiagram-DHZGUBPP.CwSlnjCf.js} +1 -1
- package/dist/docs/assets/chunks/wardley-RL74JXVD.3gurI8YA.js +162 -0
- package/dist/docs/assets/chunks/{wardleyDiagram-NUSXRM2D.CoXKdfi6.js → wardleyDiagram-NUSXRM2D.B_8mvtjh.js} +1 -1
- package/dist/docs/assets/chunks/{xychartDiagram-5P7HB3ND.DXoSCjAW.js → xychartDiagram-5P7HB3ND.DtjU5H85.js} +1 -1
- package/dist/docs/assets/{guides_slack.md.Bo96y42E.js → guides_slack.md.Bjw2r2gL.js} +5 -5
- package/dist/docs/assets/{guides_slack.md.Bo96y42E.lean.js → guides_slack.md.Bjw2r2gL.lean.js} +1 -1
- package/dist/docs/assets/reference_cli.md.BvnQM8wd.js +97 -0
- package/dist/docs/assets/reference_cli.md.BvnQM8wd.lean.js +1 -0
- package/dist/docs/building-with-agents.html +35 -35
- package/dist/docs/deployment.html +35 -35
- package/dist/docs/evals.html +35 -35
- package/dist/docs/guides/agent-to-agent.html +35 -35
- package/dist/docs/guides/bitbucket.html +35 -35
- package/dist/docs/guides/cloud-agents.html +35 -35
- package/dist/docs/guides/convert-automation.html +35 -35
- package/dist/docs/guides/github.html +35 -35
- package/dist/docs/guides/gitlab.html +35 -35
- package/dist/docs/guides/grokbot-agents.html +35 -35
- package/dist/docs/guides/hooks.html +35 -35
- package/dist/docs/guides/improve.html +35 -35
- package/dist/docs/guides/jev.html +35 -35
- package/dist/docs/guides/mcp-oauth.html +35 -35
- package/dist/docs/guides/opentelemetry.html +35 -35
- package/dist/docs/guides/slack.html +39 -39
- package/dist/docs/guides/slack.md +16 -1
- package/dist/docs/guides/webhooks.html +35 -35
- package/dist/docs/hashmap.json +1 -1
- package/dist/docs/hillclimbing.html +35 -35
- package/dist/docs/index.html +35 -35
- package/dist/docs/llms-full.txt +699 -752
- package/dist/docs/llms.txt +1 -1
- package/dist/docs/quickstart.html +35 -35
- package/dist/docs/reference/agent-config.html +35 -35
- package/dist/docs/reference/artifacts.html +35 -35
- package/dist/docs/reference/channels.html +35 -35
- package/dist/docs/reference/cli.html +127 -125
- package/dist/docs/reference/cli.md +685 -753
- package/dist/docs/reference/connections.html +35 -35
- package/dist/docs/reference/evals.html +35 -35
- package/dist/docs/reference/extensions.html +35 -35
- package/dist/docs/reference/hooks.html +35 -35
- package/dist/docs/reference/http-api.html +35 -35
- package/dist/docs/reference/instructions.html +35 -35
- package/dist/docs/reference/playground.html +35 -35
- package/dist/docs/reference/project-layout.html +35 -35
- package/dist/docs/reference/prompt.html +35 -35
- package/dist/docs/reference/schedules.html +35 -35
- package/dist/docs/reference/sessions.html +35 -35
- package/dist/docs/reference/skills.html +35 -35
- package/dist/docs/reference/subagents.html +35 -35
- package/dist/docs/reference/tools.html +35 -35
- package/dist/docs/templates/agentic-owners.html +35 -35
- package/dist/docs/templates/pr-autofixer.html +35 -35
- package/dist/docs/templates/security-reviewer.html +35 -35
- package/dist/docs/templates/thermo-quality-review.html +35 -35
- package/dist/docs/templates/thermo-review.html +35 -35
- package/dist/docs/templates/triage.html +35 -35
- package/dist/docs/troubleshooting.html +35 -35
- package/dist/files-backends/cursor-hosted.d.ts +11 -17
- package/dist/files-backends/cursor-hosted.d.ts.map +1 -1
- package/dist/files-backends/cursor-hosted.js +13 -41
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/internal/artifacts-store.d.ts +11 -0
- package/dist/internal/artifacts-store.d.ts.map +1 -1
- package/dist/internal/artifacts-store.js +113 -18
- package/dist/internal/cli-deploy.d.ts.map +1 -1
- package/dist/internal/cli-deploy.js +9 -1
- package/dist/internal/cursor/cursor-api-transport.d.ts +37 -0
- package/dist/internal/cursor/cursor-api-transport.d.ts.map +1 -0
- package/dist/internal/cursor/cursor-api-transport.js +44 -0
- package/dist/internal/cursor/hosted-store-secrets.d.ts +21 -0
- package/dist/internal/cursor/hosted-store-secrets.d.ts.map +1 -1
- package/dist/internal/cursor/hosted-store-secrets.js +26 -0
- package/dist/internal/cursor/store-api-client.d.ts +82 -0
- package/dist/internal/cursor/store-api-client.d.ts.map +1 -0
- package/dist/internal/cursor/store-api-client.js +227 -0
- package/dist/internal/deploy-client.d.ts +6 -0
- package/dist/internal/deploy-client.d.ts.map +1 -1
- package/dist/internal/deploy-client.js +3 -0
- package/dist/internal/deploy-manifest.d.ts +8 -0
- package/dist/internal/deploy-manifest.d.ts.map +1 -1
- package/dist/internal/deploy-manifest.js +7 -1
- package/dist/internal/discovery/agent-config.d.ts +3 -1
- package/dist/internal/discovery/agent-config.d.ts.map +1 -1
- package/dist/internal/discovery/agent-config.js +7 -4
- package/dist/internal/framework-storage-selection.d.ts +1 -1
- package/dist/internal/framework-storage-selection.d.ts.map +1 -1
- package/dist/internal/platform-timers.d.ts.map +1 -1
- package/dist/internal/platform-timers.js +20 -2
- package/dist/internal/reminder-runner.d.ts +79 -1
- package/dist/internal/reminder-runner.d.ts.map +1 -1
- package/dist/internal/reminder-runner.js +287 -46
- package/dist/internal/server.d.ts.map +1 -1
- package/dist/internal/server.js +7 -0
- package/dist/internal/session-engine.d.ts.map +1 -1
- package/dist/internal/session-engine.js +13 -15
- package/dist/internal/store-api-protocol.d.ts +134 -0
- package/dist/internal/store-api-protocol.d.ts.map +1 -0
- package/dist/internal/store-api-protocol.js +126 -0
- package/dist/memory.d.ts +49 -10
- package/dist/memory.d.ts.map +1 -1
- package/dist/memory.js +193 -50
- package/dist/playground/assets/{index-CrMWlgUU.js → index-Cs0MKsv4.js} +30 -30
- package/dist/playground/assets/index-DLwnR9ys.css +1 -0
- package/dist/playground/index.html +2 -2
- package/dist/reminders.d.ts +1 -1
- package/dist/reminders.d.ts.map +1 -1
- package/dist/types.d.ts +44 -10
- package/dist/types.d.ts.map +1 -1
- package/docs/guides/slack.md +16 -1
- package/docs/reference/cli.md +686 -754
- package/package.json +1 -1
- package/skills/setup-slack/SKILL.md +1 -1
- package/src/channels/slack/channel-watch.ts +57 -8
- package/src/channels/slack/inbound.ts +24 -0
- package/src/channels/slack/slack-channel.ts +127 -4
- package/src/channels/slack/types.ts +11 -12
- package/src/files-backends/cursor-hosted.ts +31 -68
- package/src/index.ts +1 -0
- package/src/internal/artifacts-store.ts +131 -25
- package/src/internal/cli-deploy.ts +12 -1
- package/src/internal/cursor/cursor-api-transport.ts +73 -0
- package/src/internal/cursor/hosted-store-secrets.ts +35 -0
- package/src/internal/cursor/store-api-client.ts +360 -0
- package/src/internal/deploy-client.ts +9 -0
- package/src/internal/deploy-manifest.ts +15 -0
- package/src/internal/discovery/agent-config.ts +8 -6
- package/src/internal/framework-storage-selection.ts +1 -1
- package/src/internal/platform-timers.ts +24 -2
- package/src/internal/reminder-runner.ts +454 -66
- package/src/internal/server.ts +8 -0
- package/src/internal/session-engine.ts +17 -22
- package/src/internal/store-api-protocol.ts +222 -0
- package/src/memory.ts +240 -59
- package/src/reminders.ts +1 -0
- package/src/types.ts +47 -10
- package/dist/docs/assets/chunks/@localSearchIndexroot.BnSgidYE.js +0 -1
- package/dist/docs/assets/chunks/channel.DdM5EfNW.js +0 -1
- package/dist/docs/assets/chunks/classDiagram-6PBFFD2Q.CjfGHeg2.js +0 -1
- package/dist/docs/assets/chunks/classDiagram-v2-HSJHXN6E.CjfGHeg2.js +0 -1
- package/dist/docs/assets/chunks/clone.wSOICb_f.js +0 -1
- package/dist/docs/assets/chunks/stateDiagram-v2-QKLJ7IA2.Cu5X28zZ.js +0 -1
- package/dist/docs/assets/chunks/wardley-RL74JXVD.DXy2i1LS.js +0 -162
- package/dist/docs/assets/reference_cli.md.DLWDz9ij.js +0 -95
- package/dist/docs/assets/reference_cli.md.DLWDz9ij.lean.js +0 -1
- package/dist/playground/assets/index-C61EWMBK.css +0 -1
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The store API client: July's one gateway to the factory domain-call lane,
|
|
3
|
+
* `POST /internal/agentsdk/store/api/<call>`. This module owns the whole
|
|
4
|
+
* transport — base URL and deployment credential (the same resolution the
|
|
5
|
+
* files sink uses, via `cursor-api-transport.ts`), envelope encoding,
|
|
6
|
+
* response validation, typed error mapping, and the bounded backoff policy.
|
|
7
|
+
* Feature modules (`memory.ts`, later `session-run-log.ts`, …) call typed
|
|
8
|
+
* methods like {@link StoreApiClient.memoryAppend} and never hand-roll
|
|
9
|
+
* fetch; future domain calls (`sessionRun.report`, `startLog.flush`, …) are
|
|
10
|
+
* added here as new methods on this one client.
|
|
11
|
+
*
|
|
12
|
+
* The lane is selected per pod by the task-bound store protocol pin:
|
|
13
|
+
* {@link isStoreApiLaneEnabled} is true only under the exact
|
|
14
|
+
* `factory-api-v1` pin AND with a provisioned deployment store. The
|
|
15
|
+
* availability check is not redundant: the pin file is written by the hosted
|
|
16
|
+
* task bind, but a local-dev env var could name the pin without any store to
|
|
17
|
+
* serve reads — appending into the void. Both resolve lazily per call, so a
|
|
18
|
+
* pin bound after serve start takes effect without a restart.
|
|
19
|
+
*/
|
|
20
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
21
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
22
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
23
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
24
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
25
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
26
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
import { MEMORY_APPEND_MAX_RECORD_BYTES, memoryAppendResponseSchema, memoryReadResponseSchema, STORE_API_MEMORY_APPEND_CALL, STORE_API_MEMORY_READ_CALL, STORE_API_PATH, STORE_API_PROTOCOL_VERSION, serializedRecordBytes, } from "../store-api-protocol.js";
|
|
30
|
+
import { resolveCursorApiBaseUrl, resolveCursorApiFetch, resolveCursorApiKey, } from "./cursor-api-transport.js";
|
|
31
|
+
import { resolveDeploymentStoreSourceIdSync, resolveStoreProtocolSync, storeProtocolEnablesStoreApi, } from "./hosted-store-secrets.js";
|
|
32
|
+
export class StoreApiCallError extends Error {
|
|
33
|
+
constructor(kind, message, status) {
|
|
34
|
+
super(message);
|
|
35
|
+
this.kind = kind;
|
|
36
|
+
this.status = status;
|
|
37
|
+
this.name = "StoreApiCallError";
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Bounded backoff policy. Domain calls run at turn boundaries (a memory
|
|
42
|
+
* append after `turn.completed`), so the budget is a few short retries, not
|
|
43
|
+
* persistence: 3 attempts total and never more than 2s asleep between them.
|
|
44
|
+
* A 429 whose Retry-After exceeds the cap is a deliberate shed (a kill
|
|
45
|
+
* switch, a hard budget) — give up immediately instead of camping on it.
|
|
46
|
+
*/
|
|
47
|
+
const STORE_API_MAX_ATTEMPTS = 3;
|
|
48
|
+
const STORE_API_MAX_BACKOFF_MS = 2000;
|
|
49
|
+
/**
|
|
50
|
+
* Hard deadline per fetch (the envelope POSTs and the presigned journal
|
|
51
|
+
* GET). Without one, a stalled — not failed — connection rides undici's
|
|
52
|
+
* ~300 s inactivity timers, and hydration runs at the head of the session
|
|
53
|
+
* dispatch chain where a stall delays every queued handler. 15 s matches
|
|
54
|
+
* the server's own presigned-fetch deadline and is generous for a ≤5 MiB
|
|
55
|
+
* journal.
|
|
56
|
+
*/
|
|
57
|
+
const STORE_API_FETCH_TIMEOUT_MS = 15000;
|
|
58
|
+
function backoffMs(attempt, random) {
|
|
59
|
+
return Math.min(200 * Math.pow(2, attempt) * (0.5 + random()), STORE_API_MAX_BACKOFF_MS);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Is the domain-call lane on for this pod? Exact pin match plus a
|
|
63
|
+
* provisioned deployment store; anything else keeps the client-side
|
|
64
|
+
* patterns, fail-safe in both directions like the flush pin itself.
|
|
65
|
+
*/
|
|
66
|
+
export function isStoreApiLaneEnabled(options = {}) {
|
|
67
|
+
var _a, _b, _c;
|
|
68
|
+
var _d, _e, _f;
|
|
69
|
+
const protocol = (_d = (_a = options.resolveStoreProtocol) === null || _a === void 0 ? void 0 : _a.call(options)) !== null && _d !== void 0 ? _d : resolveStoreProtocolSync();
|
|
70
|
+
if (!storeProtocolEnablesStoreApi(protocol)) {
|
|
71
|
+
return false;
|
|
72
|
+
}
|
|
73
|
+
const sourceId = (_c = ((_f = (_e = (_b = options.resolveStoreSourceId) === null || _b === void 0 ? void 0 : _b.call(options)) !== null && _e !== void 0 ? _e : options.storeSourceId) !== null && _f !== void 0 ? _f : resolveDeploymentStoreSourceIdSync())) === null || _c === void 0 ? void 0 : _c.trim();
|
|
74
|
+
return sourceId !== undefined && sourceId !== "";
|
|
75
|
+
}
|
|
76
|
+
export function createStoreApiClient(options = {}) {
|
|
77
|
+
var _a, _b;
|
|
78
|
+
const sleep = (_a = options.sleep) !== null && _a !== void 0 ? _a : ((ms) => new Promise(resolve => setTimeout(resolve, ms)));
|
|
79
|
+
const random = (_b = options.random) !== null && _b !== void 0 ? _b : Math.random;
|
|
80
|
+
/** One POST of a versioned envelope; returns the parsed 2xx body. */
|
|
81
|
+
const postOnce = (call, envelope) => __awaiter(this, void 0, void 0, function* () {
|
|
82
|
+
const fetchImpl = resolveCursorApiFetch(options);
|
|
83
|
+
return yield fetchImpl(`${resolveCursorApiBaseUrl(options)}${STORE_API_PATH}/${call}`, {
|
|
84
|
+
method: "POST",
|
|
85
|
+
headers: {
|
|
86
|
+
Authorization: `Bearer ${resolveCursorApiKey(options)}`,
|
|
87
|
+
"Content-Type": "application/json",
|
|
88
|
+
},
|
|
89
|
+
body: JSON.stringify(envelope),
|
|
90
|
+
signal: AbortSignal.timeout(STORE_API_FETCH_TIMEOUT_MS),
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
/** The response's `Retry-After` in ms, when present and numeric. */
|
|
94
|
+
const retryAfterDelayMs = (response) => {
|
|
95
|
+
var _a;
|
|
96
|
+
const header = (_a = response.headers.get("retry-after")) === null || _a === void 0 ? void 0 : _a.trim();
|
|
97
|
+
const seconds = header === undefined || header === "" ? Number.NaN : Number(header);
|
|
98
|
+
return Number.isFinite(seconds) ? seconds * 1000 : undefined;
|
|
99
|
+
};
|
|
100
|
+
const describeErrorBody = (response) => __awaiter(this, void 0, void 0, function* () {
|
|
101
|
+
try {
|
|
102
|
+
const parsed = (yield response.json());
|
|
103
|
+
if (typeof (parsed === null || parsed === void 0 ? void 0 : parsed.error) === "string") {
|
|
104
|
+
return parsed.error;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
catch (_a) {
|
|
108
|
+
// Non-JSON error body; the status is the message.
|
|
109
|
+
}
|
|
110
|
+
return `HTTP ${response.status}`;
|
|
111
|
+
});
|
|
112
|
+
const callApi = (call, envelope) => __awaiter(this, void 0, void 0, function* () {
|
|
113
|
+
let lastFailure;
|
|
114
|
+
// A shed's Retry-After (when within the cap) overrides the next jittered
|
|
115
|
+
// backoff; cleared before every attempt.
|
|
116
|
+
let nextDelayMs;
|
|
117
|
+
for (let attempt = 0; attempt < STORE_API_MAX_ATTEMPTS; attempt += 1) {
|
|
118
|
+
if (attempt > 0) {
|
|
119
|
+
yield sleep(nextDelayMs !== null && nextDelayMs !== void 0 ? nextDelayMs : backoffMs(attempt, random));
|
|
120
|
+
}
|
|
121
|
+
nextDelayMs = undefined;
|
|
122
|
+
let response;
|
|
123
|
+
try {
|
|
124
|
+
response = yield postOnce(call, envelope);
|
|
125
|
+
}
|
|
126
|
+
catch (error) {
|
|
127
|
+
lastFailure = new StoreApiCallError("unavailable", `store api ${call} transport failure: ${error instanceof Error ? error.message : String(error)}`);
|
|
128
|
+
continue;
|
|
129
|
+
}
|
|
130
|
+
if (response.ok) {
|
|
131
|
+
try {
|
|
132
|
+
return (yield response.json());
|
|
133
|
+
}
|
|
134
|
+
catch (_a) {
|
|
135
|
+
throw new StoreApiCallError("bad_response", `store api ${call} answered non-JSON (${response.status})`, response.status);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
if (response.status === 429) {
|
|
139
|
+
const retryDelayMs = retryAfterDelayMs(response);
|
|
140
|
+
const shed = new StoreApiCallError("shed", `store api ${call} shed: ${yield describeErrorBody(response)}`, response.status);
|
|
141
|
+
if (retryDelayMs !== undefined &&
|
|
142
|
+
retryDelayMs > STORE_API_MAX_BACKOFF_MS) {
|
|
143
|
+
// A long Retry-After is a kill switch or hard budget: obey it by
|
|
144
|
+
// giving up now, not by camping on the route.
|
|
145
|
+
throw shed;
|
|
146
|
+
}
|
|
147
|
+
nextDelayMs = retryDelayMs;
|
|
148
|
+
lastFailure = shed;
|
|
149
|
+
continue;
|
|
150
|
+
}
|
|
151
|
+
if (response.status >= 500) {
|
|
152
|
+
// A degraded 503 carries `Retry-After` too (the server's buffer-down
|
|
153
|
+
// answer). Honor it clamped to the backoff cap — unlike a shed, a
|
|
154
|
+
// 5xx is transient by definition, so a long hint never means "give
|
|
155
|
+
// up", just "wait the cap".
|
|
156
|
+
const retryDelayMs = retryAfterDelayMs(response);
|
|
157
|
+
if (retryDelayMs !== undefined) {
|
|
158
|
+
nextDelayMs = Math.min(retryDelayMs, STORE_API_MAX_BACKOFF_MS);
|
|
159
|
+
}
|
|
160
|
+
lastFailure = new StoreApiCallError("unavailable", `store api ${call} failed: ${yield describeErrorBody(response)}`, response.status);
|
|
161
|
+
continue;
|
|
162
|
+
}
|
|
163
|
+
// Any other 4xx is deterministic; retrying re-sends the same refusal.
|
|
164
|
+
throw new StoreApiCallError("rejected", `store api ${call} rejected: ${yield describeErrorBody(response)}`, response.status);
|
|
165
|
+
}
|
|
166
|
+
throw lastFailure !== null && lastFailure !== void 0 ? lastFailure : new StoreApiCallError("unavailable", "no attempt ran");
|
|
167
|
+
});
|
|
168
|
+
return {
|
|
169
|
+
memoryAppend(payload) {
|
|
170
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
171
|
+
const recordBytes = serializedRecordBytes(payload.record);
|
|
172
|
+
if (recordBytes > MEMORY_APPEND_MAX_RECORD_BYTES) {
|
|
173
|
+
// The server-side controller enforces the same cap; checking here
|
|
174
|
+
// spares a doomed request and fails with the same typed shape.
|
|
175
|
+
throw new StoreApiCallError("rejected", `memory.append record is ${recordBytes} serialized bytes; the cap is ${MEMORY_APPEND_MAX_RECORD_BYTES}`);
|
|
176
|
+
}
|
|
177
|
+
const body = yield callApi(STORE_API_MEMORY_APPEND_CALL, {
|
|
178
|
+
v: STORE_API_PROTOCOL_VERSION,
|
|
179
|
+
call: STORE_API_MEMORY_APPEND_CALL,
|
|
180
|
+
payload,
|
|
181
|
+
});
|
|
182
|
+
if (!memoryAppendResponseSchema.safeParse(body).success) {
|
|
183
|
+
throw new StoreApiCallError("bad_response", "unexpected memory.append response shape");
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
},
|
|
187
|
+
memoryReadContent(payload) {
|
|
188
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
189
|
+
const body = yield callApi(STORE_API_MEMORY_READ_CALL, {
|
|
190
|
+
v: STORE_API_PROTOCOL_VERSION,
|
|
191
|
+
call: STORE_API_MEMORY_READ_CALL,
|
|
192
|
+
payload,
|
|
193
|
+
});
|
|
194
|
+
const parsed = memoryReadResponseSchema.safeParse(body);
|
|
195
|
+
if (!parsed.success) {
|
|
196
|
+
throw new StoreApiCallError("bad_response", "unexpected memory.read response shape");
|
|
197
|
+
}
|
|
198
|
+
if (parsed.data.journal === null) {
|
|
199
|
+
return undefined;
|
|
200
|
+
}
|
|
201
|
+
// Bulk bytes ride the presigned URL, never the control plane — same
|
|
202
|
+
// split as the verb lane. Unretried: the whole call reruns at the
|
|
203
|
+
// next session start, and hydration keeps the existing mirror.
|
|
204
|
+
const fetchImpl = resolveCursorApiFetch(options);
|
|
205
|
+
let response;
|
|
206
|
+
try {
|
|
207
|
+
response = yield fetchImpl(parsed.data.journal.url, {
|
|
208
|
+
method: "GET",
|
|
209
|
+
redirect: "manual",
|
|
210
|
+
signal: AbortSignal.timeout(STORE_API_FETCH_TIMEOUT_MS),
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
catch (error) {
|
|
214
|
+
throw new StoreApiCallError("unavailable", `memory.read journal fetch transport failure: ${error instanceof Error ? error.message : String(error)}`);
|
|
215
|
+
}
|
|
216
|
+
if (response.status === 404) {
|
|
217
|
+
// The presign raced a rotation or delete; absent is absent.
|
|
218
|
+
return undefined;
|
|
219
|
+
}
|
|
220
|
+
if (!response.ok) {
|
|
221
|
+
throw new StoreApiCallError("unavailable", `memory.read journal fetch failed (HTTP ${response.status})`, response.status);
|
|
222
|
+
}
|
|
223
|
+
return new Uint8Array(yield response.arrayBuffer());
|
|
224
|
+
});
|
|
225
|
+
},
|
|
226
|
+
};
|
|
227
|
+
}
|
|
@@ -195,6 +195,12 @@ export interface AgentkitStopAccepted {
|
|
|
195
195
|
applicationId: string;
|
|
196
196
|
releaseId: string;
|
|
197
197
|
status: string;
|
|
198
|
+
/**
|
|
199
|
+
* `"global"` when the backend escalated the stop to the application-level
|
|
200
|
+
* suspension — the default for a multi-tenant app stopped by its
|
|
201
|
+
* publisher. Resume needs `start <slug> --global`.
|
|
202
|
+
*/
|
|
203
|
+
scope?: "global";
|
|
198
204
|
cancellation?: AgentkitCancelRunsResult;
|
|
199
205
|
}
|
|
200
206
|
export interface AgentkitGlobalSuspensionAccepted {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy-client.d.ts","sourceRoot":"","sources":["../../src/internal/deploy-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAUH,MAAM,MAAM,gBAAgB,GACxB,SAAS,GACT,WAAW,GACX,SAAS,GACT,UAAU,GACV,QAAQ,GACR,UAAU,GACV,SAAS,GACT,UAAU,CAAC;AAEf,sEAAsE;AACtE,MAAM,MAAM,kBAAkB,GAC1B,QAAQ,GACR,WAAW,GACX,UAAU,GACV,UAAU,GACV,UAAU,GACV,YAAY,GACZ,SAAS,GACT,QAAQ,GACR,UAAU,GACV,SAAS,GACT,UAAU,GACV,UAAU,CAAC;AAEf,eAAO,MAAM,wBAAwB,EAAE,WAAW,CAAC,gBAAgB,CAKjE,CAAC;AAEH;;;;;;;GAOG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,SAAS,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uEAAuE;IACvE,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;IAChC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC7B,CAAC;AAIF,0EAA0E;AAC1E,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,MAA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I,EAAE,MAAM,CAAC;KACd,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC,CAOxB;IAED,yDAAyD;IACnD,YAAY,CAAC,IAAI,EAAE;QACvB,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;KACd,GAAG,OAAO,CAAC,IAAI,CAAC,CAUhB;IAED,2EAA2E;IACrE,oBAAoB,CAAC,IAAI,EAAE;QAC/B,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;KACd,GAAG,OAAO,CAAC,IAAI,CAAC,CAUhB;IAED,OAAO,CAAC,eAAe;IAuBvB;;;;;OAKG;IACG,gBAAgB,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAsBxE;IAED,4DAA4D;IAC5D,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAEpC;IAED;;;;;OAKG;IACH,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAElD;YAEa,OAAO;CAyCtB;AAKD;;;GAGG;AACH,wBAAgB,4BAA4B,CAC1C,GAAG,EAAE,MAAM,GACV;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAoB9C"}
|
|
@@ -146,6 +146,9 @@ const agentkitStopAcceptedSchema = z
|
|
|
146
146
|
applicationId: z.string().min(1),
|
|
147
147
|
releaseId: z.string().min(1),
|
|
148
148
|
status: z.string(),
|
|
149
|
+
// Tolerate scope values a newer backend may add: parse only "global",
|
|
150
|
+
// drop anything else rather than failing the stop response.
|
|
151
|
+
scope: z.literal("global").optional().catch(undefined),
|
|
149
152
|
cancellation: agentkitCancelRunsResultSchema.optional(),
|
|
150
153
|
})
|
|
151
154
|
.passthrough();
|
|
@@ -62,6 +62,14 @@ export interface AgentDeployManifestDeclarations {
|
|
|
62
62
|
* hosted runtime starts. Present only for `slack` channels in agentic mode.
|
|
63
63
|
*/
|
|
64
64
|
slackReply?: AgentDeployManifestSlackReplyDeclaration;
|
|
65
|
+
/**
|
|
66
|
+
* The channel-watch allowlist (`engagement.channelPosts.allow`).
|
|
67
|
+
* Present only for `slack` channels that watch channel posts. The
|
|
68
|
+
* control plane materializes channel-scoped subscription edges from
|
|
69
|
+
* the channel-id entries so posts outside the allowlist drop at
|
|
70
|
+
* ingress.
|
|
71
|
+
*/
|
|
72
|
+
slackChannelPosts?: string[];
|
|
65
73
|
/**
|
|
66
74
|
* Control-plane catch routes: present only for an authored channel
|
|
67
75
|
* whose auth chain carries a `sharedSecretAuth` / `hmacSignatureAuth`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy-manifest.d.ts","sourceRoot":"","sources":["../../src/internal/deploy-manifest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAGH,OAAO,EACL,KAAK,oBAAoB,EAG1B,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAOlE,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,4BAA4B,CAAC;AAOpC,eAAO,MAAM,uBAAuB,EAAE,CAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"deploy-manifest.d.ts","sourceRoot":"","sources":["../../src/internal/deploy-manifest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAGH,OAAO,EACL,KAAK,oBAAoB,EAG1B,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAOlE,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,4BAA4B,CAAC;AAOpC,eAAO,MAA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A6E;IAC7E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,+BAA+B,CAAC;IAC9C;;;OAGG;IACH,IAAI,EAAE,gBAAgB,CAAC;CACxB;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,YAAY,EACrB,OAAO,CAAC,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,GACpE,qBAAqB,CA0EvB;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC,YAAY,CAAC,GACzD,mCAAmC,GAAG,SAAS,CAgDjD;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,GAAG,EAAE,OAAO,GACX,qBAAqB,GAAG,SAAS,CAOnC"}
|
|
@@ -100,6 +100,10 @@ const agentDeployManifestV1Schema = z.object({
|
|
|
100
100
|
continuation: continuationIdentitySchema,
|
|
101
101
|
catch: catchDeclarationSchema.optional(),
|
|
102
102
|
slackReply: slackReplyDeclarationSchema.optional(),
|
|
103
|
+
slackChannelPosts: z
|
|
104
|
+
.array(z.string().min(1).max(80))
|
|
105
|
+
.max(64)
|
|
106
|
+
.optional(),
|
|
103
107
|
}))
|
|
104
108
|
.max(64),
|
|
105
109
|
}),
|
|
@@ -128,9 +132,11 @@ export function buildAgentDeployManifest(project, options) {
|
|
|
128
132
|
const meta = channel.definition.meta;
|
|
129
133
|
const declaredEvents = channelDeclaredEventTypes(channel.definition.meta);
|
|
130
134
|
const eventTypes = declaredEvents === undefined ? undefined : [...declaredEvents].sort();
|
|
131
|
-
return Object.assign({ id: channel.id, kind,
|
|
135
|
+
return Object.assign(Object.assign({ id: channel.id, kind,
|
|
132
136
|
eventTypes, continuation: channelContinuationIdentity(channel.definition), catch: channelCatchDeclaration(channel.definition) }, (kind === "slack" && (meta === null || meta === void 0 ? void 0 : meta.slackReply) !== undefined
|
|
133
137
|
? { slackReply: meta.slackReply }
|
|
138
|
+
: {})), (kind === "slack" && (meta === null || meta === void 0 ? void 0 : meta.slackChannelPosts) !== undefined
|
|
139
|
+
? { slackChannelPosts: [...meta.slackChannelPosts] }
|
|
134
140
|
: {}));
|
|
135
141
|
});
|
|
136
142
|
// Same mapping as `july deploy` (cli-deploy.ts): channels declared public
|
|
@@ -7,10 +7,12 @@ export declare function runtimeArchitectureCompatibilityError(agent: {
|
|
|
7
7
|
runtime: AgentRuntime;
|
|
8
8
|
architecture?: AgentArchitecture;
|
|
9
9
|
}): string | undefined;
|
|
10
|
+
/** Author-facing default when {@link AgentConfig.architecture} is omitted. */
|
|
11
|
+
export declare const DEFAULT_AGENT_ARCHITECTURE: AgentArchitecture;
|
|
10
12
|
export declare function resolveArchitecture(ctx: DiscoveryContext, agentDir: string, architecture: AgentArchitecture | undefined): AgentArchitecture | undefined;
|
|
11
13
|
/**
|
|
12
14
|
* `persistent: true` selects the long-lived-pod hosting mode of v2. It has
|
|
13
|
-
* no meaning on v1 (resident engine)
|
|
15
|
+
* no meaning on v1 (resident engine).
|
|
14
16
|
*/
|
|
15
17
|
export declare function resolvePersistent(ctx: DiscoveryContext, agentDir: string, persistent: boolean | undefined, architecture: AgentArchitecture | undefined): true | undefined;
|
|
16
18
|
/** Absolute harness cwd parent, or undefined when unset / blank. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-config.d.ts","sourceRoot":"","sources":["../../../src/internal/discovery/agent-config.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,YAAY,EAEjB,KAAK,YAAY,EAClB,MAAM,gBAAgB,CAAC;AASxB,OAAO,EAAE,KAAK,gBAAgB,EAAwB,MAAM,cAAc,CAAC;A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QAAQ,EAAE,MAAM,GAAG,SAAS,GAC3B,MAAM,GAAG,SAAS,CASpB;AAED;;;;GAIG;AACH,wBAAsB,eAAe,CACnC,GAAG,EAAE,gBAAgB,EACrB,WAAW,EAAE,MAAM,GAAG,SAAS,EAC/B,oBAAoB,EAAE,MAAM,GAAG,SAAS,GACvC,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAY7B;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,GAAG,EAAE,gBAAgB,EACrB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,mBAAmB,GAAG,SAAS,GACvC,mBAAmB,GAAG,SAAS,CAyCjC;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAChC,GAAG,EAAE,gBAAgB,EACrB,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,uBAAuB,GAAG,SAAS,GAC/C,uBAAuB,GAAG,SAAS,CAmBrC;AAED,wBAAsB,eAAe,CACnC,GAAG,EAAE,gBAAgB,EACrB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,qBAAqB,GAAG,SAAS,CAAC,CA4B5C;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,YAAY,CAUzE"}
|
|
@@ -23,10 +23,13 @@ export function runtimeArchitectureCompatibilityError(agent) {
|
|
|
23
23
|
? 'architecture: "v2" cannot use runtime: "grokbot": the grokbot runtime executes through the signed-in account\'s hosted /v0/grokbot box, not a deployment-scoped v2 runtime.'
|
|
24
24
|
: undefined;
|
|
25
25
|
}
|
|
26
|
+
/** Author-facing default when {@link AgentConfig.architecture} is omitted. */
|
|
27
|
+
export const DEFAULT_AGENT_ARCHITECTURE = "v2";
|
|
26
28
|
export function resolveArchitecture(ctx, agentDir, architecture) {
|
|
27
|
-
if (architecture === undefined
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
if (architecture === undefined) {
|
|
30
|
+
return DEFAULT_AGENT_ARCHITECTURE;
|
|
31
|
+
}
|
|
32
|
+
if (architecture === "v1" || architecture === "v2") {
|
|
30
33
|
return architecture;
|
|
31
34
|
}
|
|
32
35
|
ctx.diagnostics.push({
|
|
@@ -38,7 +41,7 @@ export function resolveArchitecture(ctx, agentDir, architecture) {
|
|
|
38
41
|
}
|
|
39
42
|
/**
|
|
40
43
|
* `persistent: true` selects the long-lived-pod hosting mode of v2. It has
|
|
41
|
-
* no meaning on v1 (resident engine)
|
|
44
|
+
* no meaning on v1 (resident engine).
|
|
42
45
|
*/
|
|
43
46
|
export function resolvePersistent(ctx, agentDir, persistent, architecture) {
|
|
44
47
|
if (persistent === undefined || persistent === false) {
|
|
@@ -51,7 +51,7 @@ import type { AgentArchitecture } from "../types.js";
|
|
|
51
51
|
export interface FrameworkStorageSelectionInput {
|
|
52
52
|
/** `agent/storage.ts`, when the author wrote one (v1 only: discovery rejects it on v2). */
|
|
53
53
|
readonly authored: StorageDefinition | undefined;
|
|
54
|
-
/** {@link AgentConfig.architecture};
|
|
54
|
+
/** {@link AgentConfig.architecture}; discovery fills `"v2"` when omitted. */
|
|
55
55
|
readonly architecture?: AgentArchitecture | undefined;
|
|
56
56
|
/** Environment override for tests; defaults to `process.env`. */
|
|
57
57
|
readonly env?: Record<string, string | undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"framework-storage-selection.d.ts","sourceRoot":"","sources":["../../src/internal/framework-storage-selection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AAGH,OAAO,EAAiB,KAAK,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAMtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AASrD,MAAM,WAAW,8BAA8B;IAC7C,2FAA2F;IAC3F,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACjD,
|
|
1
|
+
{"version":3,"file":"framework-storage-selection.d.ts","sourceRoot":"","sources":["../../src/internal/framework-storage-selection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AAGH,OAAO,EAAiB,KAAK,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAMtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AASrD,MAAM,WAAW,8BAA8B;IAC7C,2FAA2F;IAC3F,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACjD,6EAA6E;IAC7E,QAAQ,CAAC,YAAY,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACtD,iEAAiE;IACjE,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;CACnD;AAED;;;;;GAKG;AACH,wBAAgB,gCAAgC,CAC9C,KAAK,EAAE,8BAA8B,GACpC,iBAAiB,GAAG,SAAS,CA0E/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform-timers.d.ts","sourceRoot":"","sources":["../../src/internal/platform-timers.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAEL,KAAK,oBAAoB,EAK1B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAoB,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAI5E,MAAM,WAAW,cAAc;IAC7B,cAAc,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACrE,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C,WAAW,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACnD,WAAW,CAAC,EAAE,EAAE,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,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;CACtB;AAqED,wBAAgB,gCAAgC,CAC9C,OAAO,GAAE,iCAAsC,GAC9C,cAAc,CA0EhB;AAgFD;;;;GAIG;AACH,wBAAgB,sCAAsC,CACpD,OAAO,GAAE,iCAAsC,GAC9C,oBAAoB,CAsHtB"}
|
|
@@ -162,6 +162,24 @@ function timedWorkJsonFetch(options, method, path, body) {
|
|
|
162
162
|
return fetchImpl(`${resolveBaseUrl(options)}${path}`, Object.assign({ method, headers: Object.assign({ Authorization: `Bearer ${resolveApiKey(options)}` }, (body === undefined ? {} : { "Content-Type": "application/json" })) }, (body === undefined ? {} : { body: JSON.stringify(body) })));
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
|
+
const CP_ERROR_BODY_LIMIT = 512;
|
|
166
|
+
/**
|
|
167
|
+
* Read failures carry status and a bounded body: the guest logs them once
|
|
168
|
+
* per process, and a 405 body names the route the caller should be on.
|
|
169
|
+
*/
|
|
170
|
+
function reminderCpReadError(what, response) {
|
|
171
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
172
|
+
let body = "";
|
|
173
|
+
try {
|
|
174
|
+
body = (yield response.text()).trim();
|
|
175
|
+
}
|
|
176
|
+
catch (_a) {
|
|
177
|
+
// Status-only detail.
|
|
178
|
+
}
|
|
179
|
+
const detail = body === "" ? "" : ` ${body.slice(0, CP_ERROR_BODY_LIMIT)}`;
|
|
180
|
+
return new Error(`reminder CP ${what} failed: HTTP ${response.status}${detail}`);
|
|
181
|
+
});
|
|
182
|
+
}
|
|
165
183
|
/**
|
|
166
184
|
* Cursor-hosted HTTP ReminderControlPlane for architecture v2.
|
|
167
185
|
* Speaks factory `/internal/agentsdk/reminders` (ELB → factory ECS).
|
|
@@ -191,7 +209,7 @@ export function createCursorHostedReminderControlPlane(options = {}) {
|
|
|
191
209
|
return undefined;
|
|
192
210
|
}
|
|
193
211
|
if (!response.ok) {
|
|
194
|
-
throw
|
|
212
|
+
throw yield reminderCpReadError("get", response);
|
|
195
213
|
}
|
|
196
214
|
const parsed = yield response.json();
|
|
197
215
|
return isReminderRecord(parsed) ? parsed : undefined;
|
|
@@ -201,7 +219,7 @@ export function createCursorHostedReminderControlPlane(options = {}) {
|
|
|
201
219
|
return __awaiter(this, void 0, void 0, function* () {
|
|
202
220
|
const response = yield timedWorkJsonFetch(options, "GET", `${AGENTSDK_REMINDERS_PREFIX}/reminders`);
|
|
203
221
|
if (!response.ok) {
|
|
204
|
-
throw
|
|
222
|
+
throw yield reminderCpReadError("list", response);
|
|
205
223
|
}
|
|
206
224
|
const parsed = yield response.json();
|
|
207
225
|
if (parsed === null ||
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* prompt XOR named handler XOR run, every/cron/delay/at schedules, and
|
|
4
4
|
* until as function XOR prompt.
|
|
5
5
|
*/
|
|
6
|
-
import type { DiscoveredReminder, ReminderCreateInput, ReminderInfo, ReminderStatus } from "../types.js";
|
|
6
|
+
import type { AuthContext, DiscoveredReminder, ReminderCreateInput, ReminderInfo, ReminderStatus } from "../types.js";
|
|
7
7
|
import type { PlatformTimers } from "./platform-timers.js";
|
|
8
8
|
import { type ReminderControlPlane, type ReminderExecutionOutcome, type ReminderFireDescriptor } from "./reminder-control-plane-protocol.js";
|
|
9
9
|
import { type SessionEngine } from "./session-engine.js";
|
|
@@ -30,7 +30,41 @@ export interface ReminderRunnerOptions {
|
|
|
30
30
|
controlPlane?: ReminderControlPlane;
|
|
31
31
|
/** Agent architecture; used with {@link controlPlane} for v2 protocol path. */
|
|
32
32
|
architecture?: "v1" | "v2";
|
|
33
|
+
/**
|
|
34
|
+
* Hosted v2 guest (`--no-control-plane`, architecture v2). A pod starts
|
|
35
|
+
* for one delivery and stops when it settles, so a fire usually lands on
|
|
36
|
+
* a pod that holds no session for the reminder's continuation, and the
|
|
37
|
+
* pod may stop as soon as the fire's outcome is applied. The runner then
|
|
38
|
+
* opens a session on the stored continuation key and waits for the turn.
|
|
39
|
+
*/
|
|
40
|
+
hostedGuest?: ReminderHostedGuestOptions;
|
|
41
|
+
}
|
|
42
|
+
export interface ReminderHostedGuestOptions {
|
|
43
|
+
/**
|
|
44
|
+
* Principal for the session a prompt fire opens when the pod holds none.
|
|
45
|
+
* Hosted admissions open sessions with the same value, so a session the
|
|
46
|
+
* engine restores from durable storage keeps its principal. Return
|
|
47
|
+
* `undefined` when no principal applies; the fire then skips with a
|
|
48
|
+
* reschedule so the control plane keeps the reminder armed.
|
|
49
|
+
*/
|
|
50
|
+
fireAuth: () => AuthContext | null | undefined;
|
|
33
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* Reschedule applied when a hosted fire cannot open a session (no
|
|
54
|
+
* principal). A one-shot `skipped` outcome without a reschedule completes
|
|
55
|
+
* the reminder, which would lose the check-in for good.
|
|
56
|
+
*/
|
|
57
|
+
export declare const REMINDER_SESSION_OPEN_RETRY_DELAY = "5m";
|
|
58
|
+
/**
|
|
59
|
+
* `reason` tag on `agent_sdk.reminder.fire_outcome`. Prompt fires report
|
|
60
|
+
* how the session was reached: `session_joined` (held by this pod),
|
|
61
|
+
* `session_restored` (read back from durable storage), `session_opened`
|
|
62
|
+
* (fresh session on the stored key), `session_gone` (no session and none
|
|
63
|
+
* could be opened). `fire_threw` pairs with kind `error`: the fire raised
|
|
64
|
+
* and the hosted admission retries it.
|
|
65
|
+
*/
|
|
66
|
+
export type ReminderFireOutcomeReason = "session_gone" | "session_opened" | "session_restored" | "session_joined" | "handler_missing" | "handler_lost_on_restart" | "missing_handler" | "run_stop" | "run_skip" | "run_delivered" | "until_fn" | "busy" | "followup_failed" | "fire_threw";
|
|
67
|
+
export declare const REMINDER_FIRE_OUTCOME_METRIC = "agent_sdk.reminder.fire_outcome";
|
|
34
68
|
/**
|
|
35
69
|
* Server wiring for {@link ReminderRunnerOptions.rejectAnonymousHandlers}:
|
|
36
70
|
* architecture v2 always rejects anonymous run/until (local or hosted).
|
|
@@ -55,9 +89,23 @@ export declare class ReminderRunner {
|
|
|
55
89
|
private readonly rejectAnonymousHandlers;
|
|
56
90
|
private readonly controlPlane;
|
|
57
91
|
private readonly architecture;
|
|
92
|
+
private readonly hostedGuest;
|
|
93
|
+
/**
|
|
94
|
+
* A control-plane read failure is logged once per outage, not per call.
|
|
95
|
+
* The next successful read re-arms the log.
|
|
96
|
+
*/
|
|
97
|
+
private controlPlaneReadFailureLogged;
|
|
58
98
|
constructor(engine: SessionEngine, logger?: (line: string) => void, platformTimers?: PlatformTimers | undefined, options?: ReminderRunnerOptions);
|
|
59
99
|
/** True when create/cancel/rekey/fire go through the CP protocol. */
|
|
60
100
|
private get usesControlPlaneProtocol();
|
|
101
|
+
/**
|
|
102
|
+
* Where reminder documents are read from. Under the CP protocol that is
|
|
103
|
+
* the v2 control-plane client; the v1 timed-work route answers 405 for a
|
|
104
|
+
* v2 deployment, which used to leave `list()` with only this process's
|
|
105
|
+
* in-memory map (breaking arm idempotence and `cancelForContinuation`).
|
|
106
|
+
*/
|
|
107
|
+
private get reminderReader();
|
|
108
|
+
private logControlPlaneReadFailure;
|
|
61
109
|
/**
|
|
62
110
|
* Load reminder documents from the control plane into memory. Does not
|
|
63
111
|
* arm in-process timers — the CP owns clocks.
|
|
@@ -67,6 +115,11 @@ export declare class ReminderRunner {
|
|
|
67
115
|
start(): Promise<void>;
|
|
68
116
|
private persist;
|
|
69
117
|
private getRecord;
|
|
118
|
+
/**
|
|
119
|
+
* Under the CP protocol a list failure propagates: the in-memory map is
|
|
120
|
+
* only what this process created, and returning it would let a caller
|
|
121
|
+
* arm duplicates or miss rows to cancel. v1 keeps the best-effort form.
|
|
122
|
+
*/
|
|
70
123
|
private allRecords;
|
|
71
124
|
stop(): void;
|
|
72
125
|
create(input: ReminderCreateInput): Promise<ReminderInfo>;
|
|
@@ -99,6 +152,14 @@ export declare class ReminderRunner {
|
|
|
99
152
|
* authoritative status/fireCount — the control plane applies the outcome.
|
|
100
153
|
*/
|
|
101
154
|
executeFire(descriptor: ReminderFireDescriptor): Promise<ReminderExecutionOutcome>;
|
|
155
|
+
private runFire;
|
|
156
|
+
/**
|
|
157
|
+
* One structured line and one `agent_sdk.reminder.fire_outcome` count per
|
|
158
|
+
* fire. Emitted through the host OTel meter, the same path hosted v2
|
|
159
|
+
* exports turn/tool metrics on, so a fire that ends in `stop` is visible
|
|
160
|
+
* beside the control plane's `timed_work.fire` count.
|
|
161
|
+
*/
|
|
162
|
+
private recordFireOutcome;
|
|
102
163
|
private recordFromDescriptor;
|
|
103
164
|
private armTimer;
|
|
104
165
|
private clearTimer;
|
|
@@ -112,6 +173,16 @@ export declare class ReminderRunner {
|
|
|
112
173
|
*/
|
|
113
174
|
private resolveFollowupAuth;
|
|
114
175
|
private deliverPrompt;
|
|
176
|
+
/**
|
|
177
|
+
* Where a prompt fire joins. The pod's own store first; on a hosted guest
|
|
178
|
+
* the durable mirror next, because the pod that armed the reminder is
|
|
179
|
+
* usually gone and the session lives only in storage. A restored session
|
|
180
|
+
* keeps its own principal (channel admissions may carry a sender), so the
|
|
181
|
+
* fire joins under that, never under {@link ReminderHostedGuestOptions.fireAuth}.
|
|
182
|
+
*/
|
|
183
|
+
private resolveFollowupTarget;
|
|
184
|
+
private deliverPromptFire;
|
|
185
|
+
private promptDelivery;
|
|
115
186
|
/**
|
|
116
187
|
* Join the reminder's existing session. Control-plane (`/v2`) channels
|
|
117
188
|
* refuse authored `continuationToken`; pass the stored key as
|
|
@@ -120,6 +191,13 @@ export declare class ReminderRunner {
|
|
|
120
191
|
*/
|
|
121
192
|
private followupSendOptions;
|
|
122
193
|
private channelUsesControlPlaneContinuation;
|
|
194
|
+
/**
|
|
195
|
+
* Local and v1 track the turn in the background: the process outlives the
|
|
196
|
+
* fire. A hosted v2 guest waits for the turn and its durable writes first,
|
|
197
|
+
* because the control plane may stop the pod as soon as the fire's
|
|
198
|
+
* outcome is applied, and `delivered` must mean the turn ran.
|
|
199
|
+
*/
|
|
200
|
+
private settleFollowup;
|
|
123
201
|
private sendFollowup;
|
|
124
202
|
private buildFireContext;
|
|
125
203
|
private buildUntilContext;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reminder-runner.d.ts","sourceRoot":"","sources":["../../src/internal/reminder-runner.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"reminder-runner.d.ts","sourceRoot":"","sources":["../../src/internal/reminder-runner.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EACV,WAAW,EAEX,kBAAkB,EAIlB,mBAAmB,EAKnB,YAAY,EACZ,cAAc,EAGf,MAAM,aAAa,CAAC;AAQrB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAEL,KAAK,oBAAoB,EAEzB,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAG5B,MAAM,sCAAsC,CAAC;AAU9C,OAAO,EAKL,KAAK,aAAa,EACnB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAEjE,+EAA+E;AAC/E,eAAO,MAAM,uBAAuB,EAAE,MAAkB,CAAC;AAEzD,qBAAa,oBAAqB,SAAQ,KAAK;IAG3C,QAAQ,CAAC,oBAAoB,EAAE,MAAM,EAAE;IAFzC,YACE,UAAU,EAAE,MAAM,EACT,oBAAoB,EAAE,MAAM,EAAE,EAIxC;CACF;AAOD,MAAM,WAAW,qBAAqB;IACpC,qEAAqE;IACrE,aAAa,CAAC,EAAE,SAAS,kBAAkB,EAAE,CAAC;IAC9C;;;OAGG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC;;;;OAIG;IACH,YAAY,CAAC,EAAE,oBAAoB,CAAC;IACpC,+EAA+E;IAC/E,YAAY,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC3B;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,0BAA0B,CAAC;C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