@cursor/july 0.1.8 → 0.1.10
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/bin/agent-serve.js +9 -0
- package/dist/channels/slack/post-update-delivery.d.ts +85 -0
- package/dist/channels/slack/post-update-delivery.d.ts.map +1 -0
- package/dist/docs/404.html +2 -2
- package/dist/docs/ab.html +3 -3
- package/dist/docs/assets/{app.BP8mAVMW.js → app.CY2buaEE.js} +1 -1
- package/dist/docs/assets/chunks/@localSearchIndexroot.OfDZ5CXg.js +1 -0
- package/dist/docs/assets/chunks/{VPLocalSearchBox.1FXIZbz8.js → VPLocalSearchBox.Ix954SFJ.js} +1 -1
- package/dist/docs/assets/chunks/{theme.Dm1R02v9.js → theme.PDwuJbyi.js} +2 -2
- package/dist/docs/assets/{deployment.md.BtfEsc9S.js → deployment.md.DC5-ImcM.js} +1 -1
- package/dist/docs/assets/{example-agents_approval-buddy.md.8R5phXb5.js → example-agents_approval-buddy.md.DFGBYLcc.js} +2 -2
- package/dist/docs/assets/{example-agents_approval-buddy.md.8R5phXb5.lean.js → example-agents_approval-buddy.md.DFGBYLcc.lean.js} +1 -1
- package/dist/docs/assets/{example-agents_index.md.CwtWu5ix.js → example-agents_index.md.BPXjUtRB.js} +2 -2
- package/dist/docs/assets/{example-agents_index.md.CwtWu5ix.lean.js → example-agents_index.md.BPXjUtRB.lean.js} +1 -1
- package/dist/docs/assets/{example-agents_security-reviewer.md.D2rtwDTO.js → example-agents_security-reviewer.md.CE9v-aKm.js} +2 -2
- package/dist/docs/assets/{example-agents_security-reviewer.md.D2rtwDTO.lean.js → example-agents_security-reviewer.md.CE9v-aKm.lean.js} +1 -1
- package/dist/docs/assets/{reference_cli.md.D189RBCH.js → reference_cli.md.CjfiV2Q-.js} +2 -1
- package/dist/docs/assets/{reference_connections.md.zaEYCLHT.js → reference_connections.md.FbWupyzW.js} +1 -1
- package/dist/docs/assets/{storage.md.Cu3MwM2a.js → storage.md.DRTdnFvd.js} +7 -1
- package/dist/docs/assets/{storage.md.Cu3MwM2a.lean.js → storage.md.DRTdnFvd.lean.js} +1 -1
- package/dist/docs/building-with-agents.html +3 -3
- package/dist/docs/concepts.html +3 -3
- package/dist/docs/deployment.html +5 -5
- package/dist/docs/evals.html +3 -3
- package/dist/docs/example-agents/approval-buddy.html +5 -5
- package/dist/docs/example-agents/benny.html +3 -3
- package/dist/docs/example-agents/bugbot.html +3 -3
- package/dist/docs/example-agents/codebase-wiki.html +3 -3
- package/dist/docs/example-agents/codeowners-review.html +3 -3
- package/dist/docs/example-agents/concierge.html +3 -3
- package/dist/docs/example-agents/fsd.html +3 -3
- package/dist/docs/example-agents/index.html +5 -5
- package/dist/docs/example-agents/knowledge-base.html +3 -3
- package/dist/docs/example-agents/oncall.html +3 -3
- package/dist/docs/example-agents/security-reviewer.html +6 -6
- package/dist/docs/example-agents/slack-agent.html +3 -3
- package/dist/docs/example-agents/weather-agent.html +3 -3
- package/dist/docs/guides/agent-to-agent.html +3 -3
- package/dist/docs/guides/cloud-runtime.html +3 -3
- package/dist/docs/guides/github.html +3 -3
- package/dist/docs/guides/human-in-the-loop.html +3 -3
- package/dist/docs/guides/slack.html +3 -3
- package/dist/docs/guides/webhooks.html +3 -3
- package/dist/docs/hashmap.json +1 -1
- package/dist/docs/hillclimbing.html +3 -3
- package/dist/docs/index.html +3 -3
- package/dist/docs/quickstart.html +3 -3
- package/dist/docs/reference/agent-config.html +3 -3
- package/dist/docs/reference/channels.html +3 -3
- package/dist/docs/reference/cli.html +6 -5
- package/dist/docs/reference/connections.html +5 -5
- package/dist/docs/reference/hooks.html +3 -3
- package/dist/docs/reference/http-api.html +3 -3
- package/dist/docs/reference/instructions.html +3 -3
- package/dist/docs/reference/playground.html +3 -3
- package/dist/docs/reference/project-layout.html +3 -3
- package/dist/docs/reference/schedules.html +3 -3
- package/dist/docs/reference/sessions.html +3 -3
- package/dist/docs/reference/skills.html +3 -3
- package/dist/docs/reference/subagents.html +3 -3
- package/dist/docs/reference/tools.html +3 -3
- package/dist/docs/scaffolding-agents.html +3 -3
- package/dist/docs/storage.html +11 -5
- package/dist/docs/troubleshooting.html +3 -3
- package/dist/internal/cli-ax.d.ts.map +1 -1
- package/dist/internal/cli-ax.js +7 -4
- package/dist/internal/cli-deploy.d.ts.map +1 -1
- package/dist/internal/cli-deploy.js +45 -18
- package/dist/internal/deploy-client.d.ts +7 -1
- package/dist/internal/deploy-client.d.ts.map +1 -1
- package/dist/internal/deploy-client.js +3 -0
- package/dist/internal/deploy-source.d.ts +3 -0
- package/dist/internal/deploy-source.d.ts.map +1 -1
- package/dist/internal/deploy-source.js +25 -7
- package/dist/internal/discovery.js +1 -1
- package/dist/internal/distribution.d.ts.map +1 -1
- package/dist/internal/distribution.js +1 -0
- package/dist/internal/hosting.d.ts +12 -2
- package/dist/internal/hosting.d.ts.map +1 -1
- package/dist/internal/hosting.js +21 -4
- package/dist/internal/json-dir-store.d.ts +32 -0
- package/dist/internal/json-dir-store.d.ts.map +1 -0
- package/dist/internal/logs-client.d.ts +16 -2
- package/dist/internal/logs-client.d.ts.map +1 -1
- package/dist/internal/logs-client.js +51 -16
- package/dist/internal/persistence-coordinator.d.ts +127 -0
- package/dist/internal/persistence-coordinator.d.ts.map +1 -0
- package/dist/internal/resolved-connections.d.ts +6 -0
- package/dist/internal/resolved-connections.d.ts.map +1 -1
- package/dist/internal/resolved-connections.js +6 -2
- package/dist/internal/server.d.ts.map +1 -1
- package/dist/internal/server.js +11 -1
- package/dist/internal/session-engine.d.ts +23 -1
- package/dist/internal/session-engine.d.ts.map +1 -1
- package/dist/internal/session-engine.js +100 -26
- package/dist/internal/sessions-client.d.ts +16 -2
- package/dist/internal/sessions-client.d.ts.map +1 -1
- package/dist/internal/sessions-client.js +28 -12
- package/dist/internal/storage-coordinator.d.ts +11 -0
- package/dist/internal/storage-coordinator.d.ts.map +1 -1
- package/dist/internal/storage-coordinator.js +30 -0
- package/dist/internal/workspace.d.ts +19 -0
- package/dist/internal/workspace.d.ts.map +1 -1
- package/dist/internal/workspace.js +47 -13
- package/dist/persistence.d.ts +184 -0
- package/dist/persistence.d.ts.map +1 -0
- package/dist/playground/assets/index-C0-QEG4O.js +86 -0
- package/dist/playground/assets/index-z3JY9O2x.css +1 -0
- package/dist/playground/index.html +2 -2
- package/dist/storage-backends/cursor-hosted.d.ts +75 -0
- package/dist/storage-backends/cursor-hosted.d.ts.map +1 -0
- package/dist/storage-backends/cursor-hosted.js +217 -0
- package/dist/storage-backends/postgres-kv.d.ts +5 -0
- package/dist/storage-backends/postgres-kv.d.ts.map +1 -1
- package/dist/storage-backends/postgres-kv.js +5 -0
- package/dist/types.d.ts +15 -0
- package/dist/types.d.ts.map +1 -1
- package/docs/deployment.md +7 -3
- package/docs/example-agents/approval-buddy.md +1 -1
- package/docs/example-agents/index.md +1 -1
- package/docs/example-agents/security-reviewer.md +5 -5
- package/docs/reference/cli.md +2 -0
- package/docs/reference/connections.md +4 -2
- package/docs/storage.md +18 -4
- package/package.json +8 -1
- package/src/bin/agent-serve.ts +10 -0
- package/src/internal/cli-ax.ts +10 -4
- package/src/internal/cli-deploy.ts +58 -20
- package/src/internal/deploy-client.ts +11 -0
- package/src/internal/deploy-source.ts +24 -6
- package/src/internal/discovery.ts +1 -1
- package/src/internal/distribution.ts +1 -0
- package/src/internal/hosting.ts +24 -4
- package/src/internal/logs-client.ts +67 -21
- package/src/internal/resolved-connections.ts +14 -4
- package/src/internal/server.ts +15 -1
- package/src/internal/session-engine.ts +105 -13
- package/src/internal/sessions-client.ts +49 -14
- package/src/internal/storage-coordinator.ts +36 -0
- package/src/internal/workspace.ts +48 -11
- package/src/storage-backends/cursor-hosted.ts +267 -0
- package/src/storage-backends/postgres-kv.ts +5 -0
- package/src/types.ts +16 -0
- package/dist/docs/assets/chunks/@localSearchIndexroot.DevOabKJ.js +0 -1
- package/dist/playground/assets/index-7GJIUFQj.css +0 -1
- package/dist/playground/assets/index-Bpr4Th4M.js +0 -319
- /package/dist/docs/assets/{deployment.md.BtfEsc9S.lean.js → deployment.md.DC5-ImcM.lean.js} +0 -0
- /package/dist/docs/assets/{reference_cli.md.D189RBCH.lean.js → reference_cli.md.CjfiV2Q-.lean.js} +0 -0
- /package/dist/docs/assets/{reference_connections.md.zaEYCLHT.lean.js → reference_connections.md.FbWupyzW.lean.js} +0 -0
package/dist/internal/hosting.js
CHANGED
|
@@ -16,6 +16,16 @@ export const MAX_SECRET_VALUE_BYTES = 4096;
|
|
|
16
16
|
export const MAX_SECRET_NAME_LENGTH = 64;
|
|
17
17
|
/** Secret names the platform injects; user writes are rejected. */
|
|
18
18
|
export const RESERVED_SECRET_NAME_PREFIX = "CURSOR_";
|
|
19
|
+
/**
|
|
20
|
+
* Additional platform-managed env names for Cursor-hosted durable storage
|
|
21
|
+
* (Bugbot `agent_serve_*`). Mirrored from
|
|
22
|
+
* `@cursor/july/storage/cursor-hosted` so validate/secrets CLI stay in sync
|
|
23
|
+
* without importing the storage backend into the CLI graph.
|
|
24
|
+
*/
|
|
25
|
+
export const PLATFORM_HOSTED_STORAGE_SECRET_NAMES = [
|
|
26
|
+
"BUGBOTDB_URL",
|
|
27
|
+
"AGENT_SERVE_DEPLOYMENT_ID",
|
|
28
|
+
];
|
|
19
29
|
const SECRET_NAME_PATTERN = /^[A-Z][A-Z0-9_]*$/;
|
|
20
30
|
// Lowercase hostname with >=2 labels, an alphabetic TLD, and at most one
|
|
21
31
|
// leading `*.` wildcard. Labels: alphanumeric with interior hyphens.
|
|
@@ -42,13 +52,20 @@ export function validateSecretName(name) {
|
|
|
42
52
|
}
|
|
43
53
|
return undefined;
|
|
44
54
|
}
|
|
45
|
-
/**
|
|
55
|
+
/**
|
|
56
|
+
* True when the platform manages this name (`CURSOR_*` or hosted-storage
|
|
57
|
+
* env vars); user writes / deletes are rejected.
|
|
58
|
+
*/
|
|
46
59
|
export function isReservedSecretName(name) {
|
|
47
|
-
|
|
60
|
+
if (name.startsWith(RESERVED_SECRET_NAME_PREFIX)) {
|
|
61
|
+
return true;
|
|
62
|
+
}
|
|
63
|
+
const upper = name.toUpperCase();
|
|
64
|
+
return PLATFORM_HOSTED_STORAGE_SECRET_NAMES.some((managed) => managed === upper);
|
|
48
65
|
}
|
|
49
66
|
/**
|
|
50
67
|
* Human error for a secret name a user is trying to write or delete:
|
|
51
|
-
* grammar plus
|
|
68
|
+
* grammar plus platform-managed names (`CURSOR_*`, hosted storage).
|
|
52
69
|
*/
|
|
53
70
|
export function validateSettableSecretName(name) {
|
|
54
71
|
const nameError = validateSecretName(name);
|
|
@@ -56,7 +73,7 @@ export function validateSettableSecretName(name) {
|
|
|
56
73
|
return nameError;
|
|
57
74
|
}
|
|
58
75
|
if (isReservedSecretName(name)) {
|
|
59
|
-
return `Secret name ${JSON.stringify(name)} is platform-
|
|
76
|
+
return `Secret name ${JSON.stringify(name)} is platform-managed; the platform injects CURSOR_* and Cursor-hosted storage values automatically.`;
|
|
60
77
|
}
|
|
61
78
|
return undefined;
|
|
62
79
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Small filesystem helpers for one-JSON-file-per-id persistence under a
|
|
3
|
+
* project-relative directory (eval run snapshots, A/B aggregate snapshots).
|
|
4
|
+
*/
|
|
5
|
+
export declare function assertNonEmptyDir(dir: string, fnName: string): string;
|
|
6
|
+
/** Resolve `dir` against `projectRoot` when relative. */
|
|
7
|
+
export declare function resolveProjectRelativeDir(args: {
|
|
8
|
+
dir: string;
|
|
9
|
+
projectRoot: string;
|
|
10
|
+
}): string;
|
|
11
|
+
/** List `*.json` basenames in `root` (any order). Missing dir → []. */
|
|
12
|
+
export declare function listJsonBasenames(root: string): Promise<string[]>;
|
|
13
|
+
/**
|
|
14
|
+
* Read and JSON.parse every `*.json` file under `root`. Missing dir → [].
|
|
15
|
+
* Unreadable or corrupt files are skipped so one bad snapshot cannot wipe
|
|
16
|
+
* the rest of the history.
|
|
17
|
+
*/
|
|
18
|
+
export declare function readJsonDir<T>(root: string, options?: {
|
|
19
|
+
sortBasenames?: "asc" | "desc";
|
|
20
|
+
}): Promise<T[]>;
|
|
21
|
+
/** Atomically write JSON under `root`/`fileName` (temp file + rename). */
|
|
22
|
+
export declare function writeJsonFile(args: {
|
|
23
|
+
root: string;
|
|
24
|
+
fileName: string;
|
|
25
|
+
value: unknown;
|
|
26
|
+
}): Promise<void>;
|
|
27
|
+
/** Best-effort delete; ignores missing files. */
|
|
28
|
+
export declare function deleteFileInDir(args: {
|
|
29
|
+
root: string;
|
|
30
|
+
fileName: string;
|
|
31
|
+
}): Promise<void>;
|
|
32
|
+
//# sourceMappingURL=json-dir-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json-dir-store.d.ts","sourceRoot":"","sources":["../../src/internal/json-dir-store.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAaH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAKrE;AAED,yDAAyD;AACzD,wBAAgB,yBAAyB,CAAC,IAAI,EAAE;IAC9C,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;CACrB,GAAG,MAAM,CAET;AAWD,uEAAuE;AACvE,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAWvE;AAED;;;;GAIG;AACH,wBAAsB,WAAW,CAAC,CAAC,EACjC,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE;IAAE,aAAa,CAAC,EAAE,KAAK,GAAG,MAAM,CAAA;CAAE,GAC3C,OAAO,CAAC,CAAC,EAAE,CAAC,CAiBd;AAED,0EAA0E;AAC1E,wBAAsB,aAAa,CAAC,IAAI,EAAE;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,OAAO,CAAC;CAChB,GAAG,OAAO,CAAC,IAAI,CAAC,CAUhB;AAED,iDAAiD;AACjD,wBAAsB,eAAe,CAAC,IAAI,EAAE;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,GAAG,OAAO,CAAC,IAAI,CAAC,CAMhB"}
|
|
@@ -14,10 +14,24 @@ export interface LogsResponse {
|
|
|
14
14
|
entries: LogRingEntry[];
|
|
15
15
|
nextAfter: number;
|
|
16
16
|
}
|
|
17
|
-
export type LogsProgress = DeploymentProgress | "queued" | "preparing" | "building" | "finalizing" | "running" | "failed" | "stopping" | "stopped" | "degraded";
|
|
18
|
-
|
|
17
|
+
export type LogsProgress = DeploymentProgress | "queued" | "preparing" | "creating" | "building" | "starting" | "finalizing" | "running" | "failed" | "stopping" | "stopped" | "degraded";
|
|
18
|
+
/**
|
|
19
|
+
* Customer-facing line for the current deploy step. Prefer the live
|
|
20
|
+
* `statusMessage` from the API when present; otherwise the progress
|
|
21
|
+
* vocabulary. Failed/degraded always append sanitized `lastError`.
|
|
22
|
+
*/
|
|
23
|
+
export declare function progressMessage(progress: LogsProgress, lastError?: string | null, statusMessage?: string | null): string;
|
|
19
24
|
/** Strip obvious hosting internals from error text shown to customers. */
|
|
20
25
|
export declare function sanitizeCustomerError(message: string): string;
|
|
26
|
+
/**
|
|
27
|
+
* One-line label for `agentkit deploy` polling (TTY spinner / non-TTY
|
|
28
|
+
* transitions). Uses statusMessage → progress → raw status.
|
|
29
|
+
*/
|
|
30
|
+
export declare function deployProgressLabel(detail: {
|
|
31
|
+
status: string;
|
|
32
|
+
progress?: DeploymentProgress;
|
|
33
|
+
statusMessage?: string | null;
|
|
34
|
+
}): string;
|
|
21
35
|
export declare function fetchLogs(args: {
|
|
22
36
|
baseUrl: string;
|
|
23
37
|
after?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logs-client.d.ts","sourceRoot":"","sources":["../../src/internal/logs-client.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,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AAM,KAAK,IAAI,CAAC;IAC7B;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAChD,mEAAmE;IACnE,cAAc,CAAC,EAAE,MAAM,OAAO,CAAC;QAC7B,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KAClC,CAAC,CAAC;IACH,KAAK,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7D;AAED,wBAAsB,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAoC5E"}
|
|
@@ -24,7 +24,9 @@ function isAborted(signal) {
|
|
|
24
24
|
const PROGRESS_MESSAGES = {
|
|
25
25
|
queued: "Waiting to start…",
|
|
26
26
|
preparing: "Preparing runtime…",
|
|
27
|
-
|
|
27
|
+
creating: "Creating runtime…",
|
|
28
|
+
building: "Checking out source and installing dependencies…",
|
|
29
|
+
starting: "Starting agent and waiting for health…",
|
|
28
30
|
finalizing: "Finishing deployment…",
|
|
29
31
|
running: "Deployment running",
|
|
30
32
|
failed: "Deploy failed",
|
|
@@ -32,7 +34,12 @@ const PROGRESS_MESSAGES = {
|
|
|
32
34
|
stopped: "Deployment stopped",
|
|
33
35
|
degraded: "Deployment degraded",
|
|
34
36
|
};
|
|
35
|
-
|
|
37
|
+
/**
|
|
38
|
+
* Customer-facing line for the current deploy step. Prefer the live
|
|
39
|
+
* `statusMessage` from the API when present; otherwise the progress
|
|
40
|
+
* vocabulary. Failed/degraded always append sanitized `lastError`.
|
|
41
|
+
*/
|
|
42
|
+
export function progressMessage(progress, lastError, statusMessage) {
|
|
36
43
|
if (progress === "failed") {
|
|
37
44
|
const detail = lastError === null || lastError === undefined || lastError.trim() === ""
|
|
38
45
|
? ""
|
|
@@ -45,6 +52,11 @@ export function progressMessage(progress, lastError) {
|
|
|
45
52
|
: `: ${sanitizeCustomerError(lastError)}`;
|
|
46
53
|
return `Deployment degraded${detail}`;
|
|
47
54
|
}
|
|
55
|
+
if (statusMessage !== null &&
|
|
56
|
+
statusMessage !== undefined &&
|
|
57
|
+
statusMessage.trim() !== "") {
|
|
58
|
+
return statusMessage.trim();
|
|
59
|
+
}
|
|
48
60
|
return PROGRESS_MESSAGES[progress];
|
|
49
61
|
}
|
|
50
62
|
/** Strip obvious hosting internals from error text shown to customers. */
|
|
@@ -56,7 +68,31 @@ export function sanitizeCustomerError(message) {
|
|
|
56
68
|
.replace(/\bcursorvm\.com\b/gi, "host")
|
|
57
69
|
.replace(/\bx-anyrun-[a-z0-9-]+\b/gi, "header")
|
|
58
70
|
.replace(/\bPROVISIONING\b/g, "building")
|
|
59
|
-
.replace(/\bPLANNED\b/g, "preparing")
|
|
71
|
+
.replace(/\bPLANNED\b/g, "preparing")
|
|
72
|
+
.replace(/\bgitCloneCheckout\b/gi, "git clone")
|
|
73
|
+
.replace(/\bgitFetchCheckout\b/gi, "git fetch")
|
|
74
|
+
.replace(/\bgitCheckout:clone\b/gi, "checkout")
|
|
75
|
+
.replace(/\bgitCheckout:fetch\b/gi, "checkout");
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* One-line label for `agentkit deploy` polling (TTY spinner / non-TTY
|
|
79
|
+
* transitions). Uses statusMessage → progress → raw status.
|
|
80
|
+
*/
|
|
81
|
+
export function deployProgressLabel(detail) {
|
|
82
|
+
if (detail.statusMessage !== null &&
|
|
83
|
+
detail.statusMessage !== undefined &&
|
|
84
|
+
detail.statusMessage.trim() !== "") {
|
|
85
|
+
return detail.statusMessage
|
|
86
|
+
.trim()
|
|
87
|
+
.replace(/…$/, "")
|
|
88
|
+
.replace(/\.\.\.$/, "");
|
|
89
|
+
}
|
|
90
|
+
if (detail.progress !== undefined) {
|
|
91
|
+
return PROGRESS_MESSAGES[detail.progress]
|
|
92
|
+
.replace(/…$/, "")
|
|
93
|
+
.replace(/\.\.\.$/, "");
|
|
94
|
+
}
|
|
95
|
+
return detail.status;
|
|
60
96
|
}
|
|
61
97
|
export function fetchLogs(args) {
|
|
62
98
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -139,7 +175,7 @@ function followProdLogs(args) {
|
|
|
139
175
|
// cmdLogs (which wires deploy auth).
|
|
140
176
|
throw new Error("Internal error: deploy progress requires a deployment lookup.");
|
|
141
177
|
}));
|
|
142
|
-
let
|
|
178
|
+
let lastEmittedKey;
|
|
143
179
|
const slugHint = args.slug !== undefined && args.slug !== "" ? args.slug : "";
|
|
144
180
|
if (args.once !== true) {
|
|
145
181
|
const label = slugHint !== "" ? slugHint : "deployment";
|
|
@@ -157,27 +193,27 @@ function followProdLogs(args) {
|
|
|
157
193
|
throw customerDeployLookupError(error);
|
|
158
194
|
}
|
|
159
195
|
const progress = resolveProgress(detail);
|
|
196
|
+
const message = progressMessage(progress, detail.lastError, detail.statusMessage);
|
|
197
|
+
const emitKey = `${progress}\0${message}`;
|
|
160
198
|
if (progress === "failed") {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
lastProgress = progress;
|
|
199
|
+
if (emitKey !== lastEmittedKey) {
|
|
200
|
+
lastEmittedKey = emitKey;
|
|
164
201
|
emitProgress(args.write, args.json === true, progress, message);
|
|
165
202
|
}
|
|
166
203
|
throw new Error(`Deployment "${detail.slug}" failed.`);
|
|
167
204
|
}
|
|
168
205
|
if (progress === "stopped") {
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
lastProgress = progress;
|
|
206
|
+
if (emitKey !== lastEmittedKey) {
|
|
207
|
+
lastEmittedKey = emitKey;
|
|
172
208
|
emitProgress(args.write, args.json === true, progress, message);
|
|
173
209
|
}
|
|
174
210
|
throw new Error(`Deployment "${detail.slug}" is stopped.`);
|
|
175
211
|
}
|
|
176
212
|
if (progress === "running" || progress === "degraded") {
|
|
177
213
|
// Hand off to runtime logs. Print degraded once; skip a "running" line.
|
|
178
|
-
if (progress === "degraded" &&
|
|
179
|
-
|
|
180
|
-
emitProgress(args.write, args.json === true, progress,
|
|
214
|
+
if (progress === "degraded" && emitKey !== lastEmittedKey) {
|
|
215
|
+
lastEmittedKey = emitKey;
|
|
216
|
+
emitProgress(args.write, args.json === true, progress, message);
|
|
181
217
|
}
|
|
182
218
|
const runtime = yield resolveRuntime();
|
|
183
219
|
yield followRuntimeLogs({
|
|
@@ -196,9 +232,8 @@ function followProdLogs(args) {
|
|
|
196
232
|
});
|
|
197
233
|
return;
|
|
198
234
|
}
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
lastProgress = progress;
|
|
235
|
+
if (emitKey !== lastEmittedKey) {
|
|
236
|
+
lastEmittedKey = emitKey;
|
|
202
237
|
emitProgress(args.write, args.json === true, progress, message);
|
|
203
238
|
}
|
|
204
239
|
if (args.once === true) {
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Runtime for `definePersistence` (`agent/persistence.ts`).
|
|
3
|
+
*
|
|
4
|
+
* The coordinator is the single funnel between the engine's hot paths and
|
|
5
|
+
* the author's key-value sink. The sink is four functions (`put` / `get` /
|
|
6
|
+
* `delete` / `list`); the coordinator owns everything else: it mints every
|
|
7
|
+
* key from the versioned scheme ({@link persistenceKeys}), coalesces
|
|
8
|
+
* session records and batches event chunks per turn (or debounce window),
|
|
9
|
+
* serializes delivery on one bounded queue per agent, and isolates
|
|
10
|
+
* failures — a throwing sink is logged and its write dropped; persistence
|
|
11
|
+
* must never stall or fail a turn.
|
|
12
|
+
*
|
|
13
|
+
* Scaling shape: sessions, evals, and A/Bs all reduce to keyed puts on the
|
|
14
|
+
* same queue, so one author-owned sink covers every domain, and new
|
|
15
|
+
* domains are new key prefixes — not new config surface.
|
|
16
|
+
*/
|
|
17
|
+
import type { ABSamplePersistence } from "../ab.js";
|
|
18
|
+
import type { EvalRunPersistence } from "../evals.js";
|
|
19
|
+
import { type PersistenceContext, type PersistenceDefinition, type ResolvedPersistencePolicy } from "../persistence.js";
|
|
20
|
+
import type { SessionEvent, SessionRecord } from "../types.js";
|
|
21
|
+
import type { ABSnapshot } from "./ab-snapshot.js";
|
|
22
|
+
export interface PersistenceCoordinatorOptions {
|
|
23
|
+
definition: PersistenceDefinition;
|
|
24
|
+
agentName: string;
|
|
25
|
+
projectRoot: string;
|
|
26
|
+
logger: (line: string) => void;
|
|
27
|
+
}
|
|
28
|
+
export declare class PersistenceCoordinator {
|
|
29
|
+
readonly policy: ResolvedPersistencePolicy;
|
|
30
|
+
private readonly definition;
|
|
31
|
+
private readonly agentName;
|
|
32
|
+
private readonly projectRoot;
|
|
33
|
+
private readonly logger;
|
|
34
|
+
/** Per-session pending state (events + coalesced record). */
|
|
35
|
+
private readonly buffers;
|
|
36
|
+
/**
|
|
37
|
+
* Last continuation key written to the sink per session, so a token
|
|
38
|
+
* change emits a delete for the stale index entry alongside the new put.
|
|
39
|
+
*/
|
|
40
|
+
private readonly continuationIndex;
|
|
41
|
+
/** Single delivery chain: writes reach the sink serialized, in order. */
|
|
42
|
+
private queue;
|
|
43
|
+
/** Ops on the queue not yet delivered (bounded by MAX_PENDING_OPS). */
|
|
44
|
+
private pending;
|
|
45
|
+
/** Ops dropped because the queue was full. */
|
|
46
|
+
private dropped;
|
|
47
|
+
private lastAbSnapshotAt;
|
|
48
|
+
private closed;
|
|
49
|
+
constructor(options: PersistenceCoordinatorOptions);
|
|
50
|
+
/** Durable session-record update (engine calls after every store save). */
|
|
51
|
+
sessionRecord(record: SessionRecord): void;
|
|
52
|
+
/** One appended session event (engine calls from its dispatch funnel). */
|
|
53
|
+
event(event: SessionEvent): void;
|
|
54
|
+
/**
|
|
55
|
+
* A boundary event's dispatch settled: channel/hook handlers ran and
|
|
56
|
+
* their record updates (channel state, continuation tokens) are
|
|
57
|
+
* buffered. This — not the append — is the turn-end flush point, so the
|
|
58
|
+
* persisted session record includes the boundary event's own handler
|
|
59
|
+
* mutations. Debounced batching intentionally ignores boundaries.
|
|
60
|
+
*/
|
|
61
|
+
eventDispatched(event: SessionEvent): void;
|
|
62
|
+
/** Flush everything buffered for one session (ordered: events, record). */
|
|
63
|
+
flushSession(sessionId: string, reason?: PersistenceContext["reason"]): void;
|
|
64
|
+
/**
|
|
65
|
+
* Index maintenance for `continuation/{channelId}/{token}` → sessionId:
|
|
66
|
+
* put the current token, delete the previous one when it changed.
|
|
67
|
+
*/
|
|
68
|
+
private continuationOps;
|
|
69
|
+
/** Whether the sink can serve the startup bulk restore (`list`). */
|
|
70
|
+
get canBulkRestore(): boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Saved session records for this agent (startup restore). Errors are
|
|
73
|
+
* logged and read as "nothing saved" — a broken store must never block
|
|
74
|
+
* serve start.
|
|
75
|
+
*/
|
|
76
|
+
listSessions(): Promise<SessionRecord[]>;
|
|
77
|
+
/**
|
|
78
|
+
* Saved event stream for one session: chunk values concatenated in key
|
|
79
|
+
* order (chunks are keyed by their first event's index, zero-padded, so
|
|
80
|
+
* ascending key order is append order). Errors read as an empty stream.
|
|
81
|
+
*/
|
|
82
|
+
listSessionEvents(sessionId: string): Promise<SessionEvent[]>;
|
|
83
|
+
/**
|
|
84
|
+
* One saved session by channel continuation key (lazy restore). Unlike
|
|
85
|
+
* the startup reads, sink errors **propagate**: a failing store must
|
|
86
|
+
* fail the follow-up (which the caller can retry) rather than read as
|
|
87
|
+
* "unknown token" — that would mint a new session under the same
|
|
88
|
+
* continuation key and permanently shadow the real one on this host.
|
|
89
|
+
* A definitive miss (no index entry, or a write-only sink without
|
|
90
|
+
* `get`) resolves undefined.
|
|
91
|
+
*/
|
|
92
|
+
getSessionByContinuation(channelId: string, continuationKey: string): Promise<SessionRecord | undefined>;
|
|
93
|
+
/**
|
|
94
|
+
* Adapter for {@link EvalRunPersistence} so the playground eval store
|
|
95
|
+
* can fall back to this sink when `evals.config.ts` sets no
|
|
96
|
+
* `persistRuns`.
|
|
97
|
+
*/
|
|
98
|
+
asEvalRunPersistence(): EvalRunPersistence;
|
|
99
|
+
/**
|
|
100
|
+
* Adapter for {@link ABSamplePersistence} so the AB collector can fall
|
|
101
|
+
* back to this sink when `ab.config.ts` sets no `persistSamples`.
|
|
102
|
+
*/
|
|
103
|
+
asABSamplePersistence(): ABSamplePersistence;
|
|
104
|
+
/**
|
|
105
|
+
* Refresh the persisted aggregate A/B snapshot, throttled to once per
|
|
106
|
+
* {@link AB_SNAPSHOT_MIN_INTERVAL_MS} (the playground recomputes the
|
|
107
|
+
* fold on every `GET /v1/abs` poll).
|
|
108
|
+
*/
|
|
109
|
+
abSnapshot(snapshot: ABSnapshot): void;
|
|
110
|
+
/** Latest persisted aggregate A/B snapshot; errors read as absent. */
|
|
111
|
+
getLatestAbSnapshot(): Promise<ABSnapshot | undefined>;
|
|
112
|
+
/**
|
|
113
|
+
* Flush all buffers and drain the queue, giving the sink at most
|
|
114
|
+
* {@link CLOSE_DRAIN_TIMEOUT_MS} — a hung sink must not stall shutdown
|
|
115
|
+
* past the pod grace period. Called from engine close.
|
|
116
|
+
*/
|
|
117
|
+
close(): Promise<void>;
|
|
118
|
+
/** Pending deliveries (exposed for tests and drain instrumentation). */
|
|
119
|
+
whenIdle(): Promise<void>;
|
|
120
|
+
private buffer;
|
|
121
|
+
private armDebounce;
|
|
122
|
+
/** `list` wrapper for the startup reads: missing hook or throw ⇒ empty. */
|
|
123
|
+
private tryList;
|
|
124
|
+
private enqueue;
|
|
125
|
+
private context;
|
|
126
|
+
}
|
|
127
|
+
//# sourceMappingURL=persistence-coordinator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"persistence-coordinator.d.ts","sourceRoot":"","sources":["../../src/internal/persistence-coordinator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAkB,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACpE,OAAO,KAAK,EAAE,kBAAkB,EAAmB,MAAM,aAAa,CAAC;AACvE,OAA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2E;IAC3E,YAAY,CACV,SAAS,EAAE,MAAM,EACjB,MAAM,GAAE,kBAAkB,CAAC,QAAQ,CAAY,GAC9C,IAAI,CAiCN;IAED;;;OAGG;IACH,OAAO,CAAC,eAAe;IAoCvB,oEAAoE;IACpE,IAAI,cAAc,IAAI,OAAO,CAE5B;IAED;;;;OAIG;IACG,YAAY,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC,CAO7C;IAED;;;;OAIG;IACG,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,CAWlE;IAED;;;;;;;;OAQG;IACG,wBAAwB,CAC5B,SAAS,EAAE,MAAM,EACjB,eAAe,EAAE,MAAM,GACtB,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC,CAgDpC;IAMD;;;;OAIG;IACH,oBAAoB,IAAI,kBAAkB,CAkCzC;IAMD;;;OAGG;IACH,qBAAqB,IAAI,mBAAmB,CAmB3C;IAED;;;;OAIG;IACH,UAAU,CAAC,QAAQ,EAAE,UAAU,GAAG,IAAI,CAmBrC;IAED,sEAAsE;IAChE,mBAAmB,IAAI,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAiB3D;IAMD;;;;OAIG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAqB3B;IAED,wEAAwE;IACxE,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAExB;IAED,OAAO,CAAC,MAAM;IASd,OAAO,CAAC,WAAW;IAgBnB,2EAA2E;YAC7D,OAAO;IAkBrB,OAAO,CAAC,OAAO;IAqCf,OAAO,CAAC,OAAO;CAGhB"}
|
|
@@ -25,6 +25,12 @@ export declare function assertCloudCanHonorAccountServersFilters(args: {
|
|
|
25
25
|
/** Fail closed when anonymous HTTP admission would expose account connectors. */
|
|
26
26
|
export declare function assertAccountConnectionsNotAnonymous(args: {
|
|
27
27
|
allowAnonymous?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Opt in when every admitted caller is already trusted (e.g. behind an
|
|
30
|
+
* authenticating proxy / hosted alias token). Same trust model as
|
|
31
|
+
* `--allow-anonymous-cursor-github`.
|
|
32
|
+
*/
|
|
33
|
+
allowAnonymousCursorAccountMcp?: boolean;
|
|
28
34
|
hasAccountConnections: boolean;
|
|
29
35
|
}): void;
|
|
30
36
|
export declare function resolveMountConnections(args: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolved-connections.d.ts","sourceRoot":"","sources":["../../src/internal/resolved-connections.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAE5B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAEpE,+EAA+E;AAC/E,wBAAgB,8BAA8B,CAAC,IAAI,EAAE;IACnD,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,YAAY,CAAC;IACtB,WAAW,CAAC,EAAE,0BAA0B,EAAE,CAAC;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,IAAI,CAuBP;AAED,qEAAqE;AACrE,wBAAgB,wCAAwC,CAAC,IAAI,EAAE;IAC7D,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC;IAC3B,mBAAmB,EAAE,SAAS,wBAAwB,EAAE,CAAC;CAC1D,GAAG,IAAI,CAmBP;AAED,iFAAiF;AACjF,wBAAgB,oCAAoC,CAAC,IAAI,EAAE;IACzD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,qBAAqB,EAAE,OAAO,CAAC;CAChC,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"resolved-connections.d.ts","sourceRoot":"","sources":["../../src/internal/resolved-connections.ts"],"names":[],"mappings":"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EAAE,MAAM,KAAK,IAAI,CAAC;CAChC,GAAG,wBAAwB,EAAE,CA6C7B"}
|
|
@@ -43,9 +43,13 @@ export function assertCloudCanHonorAccountServersFilters(args) {
|
|
|
43
43
|
}
|
|
44
44
|
/** Fail closed when anonymous HTTP admission would expose account connectors. */
|
|
45
45
|
export function assertAccountConnectionsNotAnonymous(args) {
|
|
46
|
-
if (args.allowAnonymous
|
|
47
|
-
|
|
46
|
+
if (args.allowAnonymous !== true || !args.hasAccountConnections) {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
if (args.allowAnonymousCursorAccountMcp === true) {
|
|
50
|
+
return;
|
|
48
51
|
}
|
|
52
|
+
throw new Error("[agentkit] --allow-anonymous cannot be used with Cursor account MCP connections (defineConnection({ cursorAccount: true })); use --bearer-token, or opt in with --allow-anonymous-cursor-account-mcp behind a trusted boundary.");
|
|
49
53
|
}
|
|
50
54
|
export function resolveMountConnections(args) {
|
|
51
55
|
const agent = args.project.agent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/internal/server.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AA2BH,OAAO,KAAK,EACV,YAAY,EACZ,gBAAgB,EAOhB,YAAY,EACb,MAAM,aAAa,CAAC;AAoFrB,OAAO,EAAE,KAAK,WAAW,EAAmB,MAAM,iBAAiB,CAAC;AAapE,8EAA8E;AAC9E,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,YAAY,CAAC;CACvB;AAYD,6EAA6E;AAC7E,MAAM,WAAW,0BAA0B;IACzC,oEAAoE;IACpE,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED;;;;GAIG;AACH,wBAAsB,WAAW,CAC/B,MAAM,EAAE,UAAU,EAAE,EACpB,OAAO,GAAE,YAAY,GAAG,0BAA+B,GACtD,OAAO,CAAC,gBAAgB,CAAC,
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/internal/server.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AA2BH,OAAO,KAAK,EACV,YAAY,EACZ,gBAAgB,EAOhB,YAAY,EACb,MAAM,aAAa,CAAC;AAoFrB,OAAO,EAAE,KAAK,WAAW,EAAmB,MAAM,iBAAiB,CAAC;AAapE,8EAA8E;AAC9E,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,YAAY,CAAC;CACvB;AAYD,6EAA6E;AAC7E,MAAM,WAAW,0BAA0B;IACzC,oEAAoE;IACpE,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED;;;;GAIG;AACH,wBAAsB,WAAW,CAC/B,MAAM,EAAE,UAAU,EAAE,EACpB,OAAO,GAAE,YAAY,GAAG,0BAA+B,GACtD,OAAO,CAAC,gBAAgB,CAAC,CAgnB3B"}
|
package/dist/internal/server.js
CHANGED
|
@@ -179,8 +179,14 @@ export function startServer(mounts_1) {
|
|
|
179
179
|
const accountRefsBySlug = collectCursorAccountConnections(mounts);
|
|
180
180
|
assertAccountConnectionsNotAnonymous({
|
|
181
181
|
allowAnonymous: options.allowAnonymous,
|
|
182
|
+
allowAnonymousCursorAccountMcp: options.allowAnonymousCursorAccountMcp,
|
|
182
183
|
hasAccountConnections: accountRefsBySlug.size > 0,
|
|
183
184
|
});
|
|
185
|
+
if (options.allowAnonymous === true &&
|
|
186
|
+
options.allowAnonymousCursorAccountMcp === true &&
|
|
187
|
+
accountRefsBySlug.size > 0) {
|
|
188
|
+
logger("[agentkit] warning: --allow-anonymous-cursor-account-mcp — every admitted HTTP caller can drive Cursor account MCP connectors; serve this only behind a trusted boundary (e.g. an SSO proxy or hosted alias token)");
|
|
189
|
+
}
|
|
184
190
|
let accountBridge;
|
|
185
191
|
if (accountRefsBySlug.size > 0) {
|
|
186
192
|
if (accountKey === undefined) {
|
|
@@ -696,8 +702,12 @@ function mountAgentRoutes(router, runtime, args) {
|
|
|
696
702
|
(relaxSessionReadAuthBeyondLoopback ||
|
|
697
703
|
(typeof ctx.requestIp === "string" &&
|
|
698
704
|
isLoopbackAddress(ctx.requestIp)));
|
|
705
|
+
const listed = yield engine.listSessionsWithSource(ctx.auth, {
|
|
706
|
+
includeAll,
|
|
707
|
+
});
|
|
699
708
|
return jsonResponse({
|
|
700
|
-
sessions:
|
|
709
|
+
sessions: listed.sessions,
|
|
710
|
+
source: listed.source,
|
|
701
711
|
});
|
|
702
712
|
}),
|
|
703
713
|
});
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* event handlers and hooks.
|
|
8
8
|
*/
|
|
9
9
|
import { SlackAskDedupeStore, SlackNudgeStore } from "../channels/slack/nudge-store.js";
|
|
10
|
-
import { type AgentProject, type ApprovalDecision, type AuthContext, type CallToolOptions, type ChannelDefinition, type ChannelSession, type HostContext, type HttpChannelDefinition, type PendingApproval, type ReceiveInput, type SendMessageOptions, type SessionEvent, type SessionInfo, type SessionRecord, type SessionSummary, type ToolCallOutcome, type TurnOutcome } from "../types.js";
|
|
10
|
+
import { type AgentProject, type ApprovalDecision, type AuthContext, type CallToolOptions, type ChannelDefinition, type ChannelSession, type HostContext, type HttpChannelDefinition, type PendingApproval, type ReceiveInput, type SendMessageOptions, type SessionEvent, type SessionInfo, type SessionListSource, type SessionRecord, type SessionSummary, type ToolCallOutcome, type TurnOutcome } from "../types.js";
|
|
11
11
|
import { type ABSnapshot } from "./ab-snapshot.js";
|
|
12
12
|
import { type HostPlatforms } from "./host-platforms.js";
|
|
13
13
|
import type { AgentRunner } from "./sdk-runner.js";
|
|
@@ -300,10 +300,32 @@ export declare class SessionEngine {
|
|
|
300
300
|
* observability surface across every principal (channel-driven runs,
|
|
301
301
|
* schedule/task sessions, other callers). The route auth chain still
|
|
302
302
|
* gates who may call this at all.
|
|
303
|
+
*
|
|
304
|
+
* When the project uses `cursorHostedStorage`, prefers durable Bugbot rows
|
|
305
|
+
* (merged with any newer local records not flushed yet). Falls back to the
|
|
306
|
+
* local `--state-root` store when the sink is unavailable.
|
|
303
307
|
*/
|
|
304
308
|
listSessions(caller: AuthContext | null, options?: {
|
|
305
309
|
includeAll?: boolean;
|
|
306
310
|
}): Promise<SessionSummary[]>;
|
|
311
|
+
/**
|
|
312
|
+
* Same as {@link listSessions}, plus which store answered
|
|
313
|
+
* (`cursor-hosted` = durable DB via the control-plane proxy; `local` =
|
|
314
|
+
* `--state-root`).
|
|
315
|
+
*/
|
|
316
|
+
listSessionsWithSource(caller: AuthContext | null, options?: {
|
|
317
|
+
includeAll?: boolean;
|
|
318
|
+
}): Promise<{
|
|
319
|
+
sessions: SessionSummary[];
|
|
320
|
+
source: SessionListSource;
|
|
321
|
+
}>;
|
|
322
|
+
/**
|
|
323
|
+
* Durable sink rows plus local records (local wins on the same id when
|
|
324
|
+
* newer — covers debounce windows that have not flushed yet). Newest
|
|
325
|
+
* `updatedAt` first.
|
|
326
|
+
*/
|
|
327
|
+
private mergeStoredAndLocalSessions;
|
|
328
|
+
private summarizeSessionRecords;
|
|
307
329
|
/**
|
|
308
330
|
* Fold durable session streams into per-session A/B assignments and
|
|
309
331
|
* aggregate arm metrics (`GET /v1/abs`). Collector-independent: always
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-engine.d.ts","sourceRoot":"","sources":["../../src/internal/session-engine.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAYH,OAAO,EACL,mBAAmB,EACnB,eAAe,EAChB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EAEtB,KAAK,cAAc,EAInB,KAAK,WAAW,EAChB,KAAK,qBAAqB,EAG1B,KAAK,eAAe,EACpB,KAAK,YAAY,EAIjB,KAAK,kBAAkB,EACvB,KAAK,YAAY,EAEjB,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,cAAc,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