@cursor/july 0.1.47 → 0.1.49
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 +30 -35
- package/dist/docs/404.html +2 -2
- package/dist/docs/ab.html +5 -5
- package/dist/docs/assets/{ab.md.hdxsvX5M.js → ab.md.DYjwREAP.js} +2 -2
- package/dist/docs/assets/{ab.md.hdxsvX5M.lean.js → ab.md.DYjwREAP.lean.js} +1 -1
- package/dist/docs/assets/{app.IEXEim5m.js → app.BpWAgjaR.js} +1 -1
- package/dist/docs/assets/chunks/@localSearchIndexroot.D00d772K.js +1 -0
- package/dist/docs/assets/chunks/{VPLocalSearchBox.78s6nqsH.js → VPLocalSearchBox.CnAktZtG.js} +1 -1
- package/dist/docs/assets/chunks/{theme.DroGdz_Q.js → theme.B5IvUxOB.js} +2 -2
- package/dist/docs/assets/{evals.md.qeoGgPw0.js → evals.md.CVe_O75-.js} +3 -3
- package/dist/docs/assets/{evals.md.qeoGgPw0.lean.js → evals.md.CVe_O75-.lean.js} +1 -1
- package/dist/docs/assets/{reference_http-api.md.DGrw_wOu.js → reference_http-api.md.DMbdFGVQ.js} +1 -1
- package/dist/docs/assets/{storage.md.CJYd5YmN.js → storage.md.D8NQ389l.js} +3 -3
- package/dist/docs/assets/storage.md.D8NQ389l.lean.js +1 -0
- package/dist/docs/building-with-agents.html +3 -3
- package/dist/docs/concepts.html +3 -3
- package/dist/docs/deployment.html +3 -3
- package/dist/docs/evals.html +6 -6
- package/dist/docs/example-agents/approval-buddy.html +3 -3
- 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 +3 -3
- 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 +3 -3
- 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/mcp-oauth.html +3 -3
- package/dist/docs/guides/opentelemetry.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/artifacts.html +3 -3
- package/dist/docs/reference/channels.html +3 -3
- package/dist/docs/reference/cli.html +3 -3
- package/dist/docs/reference/connections.html +3 -3
- package/dist/docs/reference/hooks.html +3 -3
- package/dist/docs/reference/http-api.html +5 -5
- 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/prompt.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 +5 -5
- package/dist/docs/templates/triage.html +3 -3
- package/dist/docs/troubleshooting.html +3 -3
- package/dist/internal/authored-loaders.d.ts +19 -0
- package/dist/internal/authored-loaders.d.ts.map +1 -1
- package/dist/internal/authored-loaders.js +39 -0
- package/dist/internal/cli-deploy.d.ts +2 -1
- package/dist/internal/cli-deploy.d.ts.map +1 -1
- package/dist/internal/cli-deploy.js +97 -1
- package/dist/internal/cli-slack.js +0 -3
- package/dist/internal/deploy-client.d.ts +7 -2
- package/dist/internal/deploy-client.d.ts.map +1 -1
- package/dist/internal/deploy-client.js +12 -0
- package/dist/internal/discovery.d.ts.map +1 -1
- package/dist/internal/discovery.js +2 -8
- package/dist/internal/eval-runner.d.ts.map +1 -1
- package/dist/internal/eval-runner.js +3 -8
- package/dist/internal/event-log.d.ts +17 -0
- package/dist/internal/event-log.d.ts.map +1 -1
- package/dist/internal/event-log.js +32 -2
- package/dist/internal/logs-client.d.ts +1 -1
- package/dist/internal/logs-client.d.ts.map +1 -1
- package/dist/internal/logs-client.js +3 -0
- package/dist/internal/process-memory-telemetry.d.ts +90 -0
- package/dist/internal/process-memory-telemetry.d.ts.map +1 -0
- package/dist/internal/process-memory-telemetry.js +259 -0
- package/dist/internal/serve-restart.d.ts +42 -0
- package/dist/internal/serve-restart.d.ts.map +1 -0
- package/dist/internal/serve-restart.js +85 -0
- package/dist/internal/server.d.ts.map +1 -1
- package/dist/internal/server.js +9 -10
- package/dist/internal/session-engine.d.ts +4 -0
- package/dist/internal/session-engine.d.ts.map +1 -1
- package/dist/internal/session-engine.js +19 -5
- package/dist/internal/slack-provision-client.d.ts +4 -4
- package/dist/internal/slack-provision-client.js +7 -7
- package/dist/playground/assets/index-Dox74yWJ.css +1 -0
- package/dist/playground/assets/{index-BgUHfe3L.js → index-Dq_HqyU-.js} +46 -46
- package/dist/playground/index.html +2 -2
- package/dist/storage.d.ts +36 -10
- package/dist/storage.d.ts.map +1 -1
- package/dist/storage.js +82 -6
- package/docs/ab.md +4 -3
- package/docs/evals.md +10 -7
- package/docs/reference/http-api.md +4 -3
- package/docs/storage.md +38 -22
- package/package.json +1 -1
- package/skills/setup-slack/SKILL.md +1 -1
- package/src/bin/agent-serve.ts +39 -38
- package/src/internal/authored-loaders.ts +45 -0
- package/src/internal/cli-deploy.ts +103 -1
- package/src/internal/cli-slack.ts +0 -5
- package/src/internal/deploy-client.ts +19 -1
- package/src/internal/discovery.ts +5 -12
- package/src/internal/eval-runner.ts +3 -12
- package/src/internal/event-log.ts +45 -7
- package/src/internal/logs-client.ts +4 -0
- package/src/internal/process-memory-telemetry.ts +373 -0
- package/src/internal/serve-restart.ts +120 -0
- package/src/internal/server.ts +13 -0
- package/src/internal/session-engine.ts +20 -1
- package/src/internal/slack-provision-client.ts +7 -7
- package/src/storage.ts +130 -11
- package/dist/docs/assets/chunks/@localSearchIndexroot.D7w61u6Y.js +0 -1
- package/dist/docs/assets/storage.md.CJYd5YmN.lean.js +0 -1
- package/dist/playground/assets/index-uFaeqVZS.css +0 -1
- /package/dist/docs/assets/{reference_http-api.md.DGrw_wOu.lean.js → reference_http-api.md.DMbdFGVQ.lean.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `agent-sdk deploy | deployments | deployment | stop | rotate-token |
|
|
2
|
+
* `agent-sdk deploy | deployments | deployment | stop | delete | rotate-token |
|
|
3
3
|
* rotate-pod-credential | secrets set|list|unset` — Heroku-style deploys
|
|
4
4
|
* onto Cursor's managed agent-serve hosting.
|
|
5
5
|
*
|
|
@@ -788,6 +788,54 @@ export function cmdStop(slug, options) {
|
|
|
788
788
|
});
|
|
789
789
|
}
|
|
790
790
|
// ============================================================================
|
|
791
|
+
// delete <slug>
|
|
792
|
+
// ============================================================================
|
|
793
|
+
export function cmdDelete(slug, options) {
|
|
794
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
795
|
+
var _a;
|
|
796
|
+
if (slug === undefined || slug === "") {
|
|
797
|
+
((_a = options.err) !== null && _a !== void 0 ? _a : ((t) => void process.stderr.write(t)))(`Usage: ${CLI} delete <slug> [--team <id>] [--json] [--no-wait]\n`);
|
|
798
|
+
return 1;
|
|
799
|
+
}
|
|
800
|
+
const ctx = yield prepare(options);
|
|
801
|
+
if (typeof ctx === "number") {
|
|
802
|
+
return ctx;
|
|
803
|
+
}
|
|
804
|
+
let accepted;
|
|
805
|
+
try {
|
|
806
|
+
accepted = yield ctx.client.deleteDeployment({
|
|
807
|
+
teamId: ctx.teamId,
|
|
808
|
+
slug,
|
|
809
|
+
});
|
|
810
|
+
}
|
|
811
|
+
catch (error) {
|
|
812
|
+
return renderApiError(error, ctx.err);
|
|
813
|
+
}
|
|
814
|
+
if (ctx.noWait) {
|
|
815
|
+
if (ctx.json) {
|
|
816
|
+
ctx.out(`${JSON.stringify(accepted, null, 2)}\n`);
|
|
817
|
+
}
|
|
818
|
+
else {
|
|
819
|
+
ctx.out(`Delete accepted for ${slug} (status: ${accepted.status}).\n`);
|
|
820
|
+
}
|
|
821
|
+
return 0;
|
|
822
|
+
}
|
|
823
|
+
try {
|
|
824
|
+
yield pollUntilGone(ctx, slug);
|
|
825
|
+
}
|
|
826
|
+
catch (error) {
|
|
827
|
+
return renderApiError(error, ctx.err);
|
|
828
|
+
}
|
|
829
|
+
if (ctx.json) {
|
|
830
|
+
ctx.out(`${JSON.stringify({ slug, status: "deleted" }, null, 2)}\n`);
|
|
831
|
+
}
|
|
832
|
+
else {
|
|
833
|
+
ctx.out(`Deleted ${slug} (team ${ctx.teamId}).\n`);
|
|
834
|
+
}
|
|
835
|
+
return 0;
|
|
836
|
+
});
|
|
837
|
+
}
|
|
838
|
+
// ============================================================================
|
|
791
839
|
// rotate-token <slug>
|
|
792
840
|
// ============================================================================
|
|
793
841
|
export function cmdRotateToken(slug, options) {
|
|
@@ -1135,6 +1183,54 @@ function pollUntil(ctx, slug, terminal) {
|
|
|
1135
1183
|
}
|
|
1136
1184
|
});
|
|
1137
1185
|
}
|
|
1186
|
+
/**
|
|
1187
|
+
* Wait until GET 404s (the delete reconciler purged the record). Treats
|
|
1188
|
+
* other errors as failures. Throws DeployApiError on timeout.
|
|
1189
|
+
*/
|
|
1190
|
+
function pollUntilGone(ctx, slug) {
|
|
1191
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1192
|
+
const startedAt = Date.now();
|
|
1193
|
+
const tty = process.stderr.isTTY === true;
|
|
1194
|
+
let sawProgress = false;
|
|
1195
|
+
const report = (label) => {
|
|
1196
|
+
if (ctx.json) {
|
|
1197
|
+
return;
|
|
1198
|
+
}
|
|
1199
|
+
const elapsed = Math.round((Date.now() - startedAt) / 1000);
|
|
1200
|
+
if (tty) {
|
|
1201
|
+
ctx.err(`\r\x1b[2K${slug}: ${label} (${elapsed}s)`);
|
|
1202
|
+
sawProgress = true;
|
|
1203
|
+
}
|
|
1204
|
+
};
|
|
1205
|
+
const finishProgressLine = () => {
|
|
1206
|
+
if (tty && sawProgress) {
|
|
1207
|
+
ctx.err("\n");
|
|
1208
|
+
}
|
|
1209
|
+
};
|
|
1210
|
+
for (;;) {
|
|
1211
|
+
try {
|
|
1212
|
+
const detail = yield ctx.client.getDeployment({
|
|
1213
|
+
teamId: ctx.teamId,
|
|
1214
|
+
slug,
|
|
1215
|
+
});
|
|
1216
|
+
report(deployProgressLabel(detail));
|
|
1217
|
+
}
|
|
1218
|
+
catch (error) {
|
|
1219
|
+
if (error instanceof DeployApiError && error.status === 404) {
|
|
1220
|
+
finishProgressLine();
|
|
1221
|
+
return;
|
|
1222
|
+
}
|
|
1223
|
+
finishProgressLine();
|
|
1224
|
+
throw error;
|
|
1225
|
+
}
|
|
1226
|
+
if (Date.now() - startedAt >= ctx.timeoutMs) {
|
|
1227
|
+
finishProgressLine();
|
|
1228
|
+
throw new DeployApiError(`Timed out after ${Math.round(ctx.timeoutMs / 1000)}s waiting for ${slug} to disappear. It may still be deleting — check \`${CLI} deployment ${slug} --team ${ctx.teamId}\`.`, 0);
|
|
1229
|
+
}
|
|
1230
|
+
yield sleep(ctx.pollIntervalMs);
|
|
1231
|
+
}
|
|
1232
|
+
});
|
|
1233
|
+
}
|
|
1138
1234
|
function aliasTokenBlock(aliasToken) {
|
|
1139
1235
|
return (`\n Alias token (shown ONCE — save it now, it cannot be retrieved again):\n\n` +
|
|
1140
1236
|
` ${aliasToken}\n\n` +
|
|
@@ -890,9 +890,6 @@ function renderCreateProvisionError(error, err) {
|
|
|
890
890
|
case "app_conflict":
|
|
891
891
|
err(`${error.message}\nA concurrent \`${CLI} slack create\` for this agent won the race; re-run create to pick up that app.\n`);
|
|
892
892
|
return 1;
|
|
893
|
-
case "app_cap_reached":
|
|
894
|
-
err(`${error.message}\nDelete unused apps with \`${CLI} slack destroy\`, then re-run create.\n`);
|
|
895
|
-
return 1;
|
|
896
893
|
case "ratelimited":
|
|
897
894
|
err(`${error.message}\nRe-run \`${CLI} slack create\` after the wait.\n`);
|
|
898
895
|
return 1;
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
* The endpoints are gated on the `agent_serve_mvp` Statsig gate and 404
|
|
10
10
|
* when it is off — the error mapping says so instead of "not found".
|
|
11
11
|
*/
|
|
12
|
-
export type DeploymentStatus = "pending" | "deploying" | "running" | "degraded" | "failed" | "stopping" | "stopped";
|
|
12
|
+
export type DeploymentStatus = "pending" | "deploying" | "running" | "degraded" | "failed" | "stopping" | "stopped" | "deleting";
|
|
13
13
|
/** Customer-safe deploy progress (no hosting phase / infra names). */
|
|
14
|
-
export type DeploymentProgress = "queued" | "preparing" | "creating" | "building" | "starting" | "finalizing" | "running" | "failed" | "stopping" | "stopped" | "degraded";
|
|
14
|
+
export type DeploymentProgress = "queued" | "preparing" | "creating" | "building" | "starting" | "finalizing" | "running" | "failed" | "stopping" | "stopped" | "deleting" | "degraded";
|
|
15
15
|
export declare const TERMINAL_DEPLOY_STATUSES: ReadonlySet<DeploymentStatus>;
|
|
16
16
|
/**
|
|
17
17
|
* What gets deployed. Today the control plane builds the engine itself from
|
|
@@ -133,6 +133,7 @@ export interface StopAccepted {
|
|
|
133
133
|
id: number;
|
|
134
134
|
status: string;
|
|
135
135
|
}
|
|
136
|
+
export type DeleteAccepted = StopAccepted;
|
|
136
137
|
/** One secret's metadata from the list endpoint — names only, never values. */
|
|
137
138
|
export interface SecretInfo {
|
|
138
139
|
name: string;
|
|
@@ -188,6 +189,10 @@ export declare class AgentServeDeployClient {
|
|
|
188
189
|
teamId: number;
|
|
189
190
|
slug: string;
|
|
190
191
|
}): Promise<StopAccepted>;
|
|
192
|
+
deleteDeployment(args: {
|
|
193
|
+
teamId: number;
|
|
194
|
+
slug: string;
|
|
195
|
+
}): Promise<DeleteAccepted>;
|
|
191
196
|
/** Returns the new alias token exactly once; the old one dies now. */
|
|
192
197
|
rotateAliasToken(args: {
|
|
193
198
|
teamId: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy-client.d.ts","sourceRoot":"","sources":["../../src/internal/deploy-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAUH,MAAM,MAAM,gBAAgB,GACxB,SAAS,GACT,WAAW,GACX,SAAS,GACT,UAAU,GACV,QAAQ,GACR,UAAU,GACV,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"deploy-client.d.ts","sourceRoot":"","sources":["../../src/internal/deploy-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;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,oEAAoE;IACpE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uEAAuE;IACvE,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B;;;OAGG;IACH,oBAAo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AAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;KACd,GAAG,OAAO,CAAC,IAAI,CAAC,CAUhB;IAED;;;;OAIG;IACG,mBAAmB,CAAC,IAAI,EAAE;QAC9B,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;KACd,GAAG,OAAO,CAAC,MAAM,CAAC,CAOlB;IAED;;;;;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"}
|
|
@@ -100,6 +100,7 @@ const deploymentSchema = z.object({
|
|
|
100
100
|
"failed",
|
|
101
101
|
"stopping",
|
|
102
102
|
"stopped",
|
|
103
|
+
"deleting",
|
|
103
104
|
]),
|
|
104
105
|
progress: z
|
|
105
106
|
.enum([
|
|
@@ -113,6 +114,7 @@ const deploymentSchema = z.object({
|
|
|
113
114
|
"failed",
|
|
114
115
|
"stopping",
|
|
115
116
|
"stopped",
|
|
117
|
+
"deleting",
|
|
116
118
|
"degraded",
|
|
117
119
|
])
|
|
118
120
|
.optional(),
|
|
@@ -277,6 +279,16 @@ export class AgentServeDeployClient {
|
|
|
277
279
|
return stopAcceptedSchema.parse(raw);
|
|
278
280
|
});
|
|
279
281
|
}
|
|
282
|
+
deleteDeployment(args) {
|
|
283
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
284
|
+
const raw = yield this.request({
|
|
285
|
+
method: "DELETE",
|
|
286
|
+
path: `/internal/agent-serve/deployments/${encodeURIComponent(args.slug)}?teamId=${args.teamId}`,
|
|
287
|
+
context: { verb: "delete", slug: args.slug },
|
|
288
|
+
});
|
|
289
|
+
return stopAcceptedSchema.parse(raw);
|
|
290
|
+
});
|
|
291
|
+
}
|
|
280
292
|
/** Returns the new alias token exactly once; the old one dies now. */
|
|
281
293
|
rotateAliasToken(args) {
|
|
282
294
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discovery.d.ts","sourceRoot":"","sources":["../../src/internal/discovery.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"discovery.d.ts","sourceRoot":"","sources":["../../src/internal/discovery.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAiBH,OAAO,EAIL,KAAK,YAAY,EACjB,KAAK,gBAAgB,EAUrB,KAAK,UAAU,EAuBhB,MAAM,aAAa,CAAC;AA8BrB,MAAM,WAAW,uBAAuB;IACtC,sDAAsD;IACtD,YAAY,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CAC3E;AAUD;;;;GAIG;AACH,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CASrE;AAED,sEAAsE;AACtE,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;;;GAIG;AACH,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,aAAa,EAAE,CAAC,CA2B1B;AAED;;;;;;GAMG;AACH,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,uBAA4B,GACpC,OAAO,CAAC,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,YAAY,CAAA;CAAE,CAAC,CAAC,CA6BzD;AAED;;;;;;GAMG;AACH,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,uBAAuB,GAAG;IACjC,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;CACtB,GACL,OAAO,CAAC,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,YAAY,CAAA;CAAE,CAAC,CAAC,CAgBzD;AAWD,iFAAiF;AACjF,eAAO,MAAM,cAAc,EAAE,GAAG,CAAC,MAAM,CAIrC,CAAC;AAEH,wBAAsB,gBAAgB,CACpC,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,uBAA4B,GACpC,OAAO,CAAC,YAAY,CAAC,CAmEvB;AAED,qEAAqE;AACrE,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAElE;AAED,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,UAAU,EAAE,GAAG,MAAM,CAOnE;AAmuBD;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAiB3E;AAgyBD,wBAAgB,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,gBAAgB,CAwJnE"}
|
|
@@ -27,12 +27,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
27
27
|
};
|
|
28
28
|
import { readdir, readFile, stat } from "node:fs/promises";
|
|
29
29
|
import { basename, extname, isAbsolute, join, relative, resolve, } from "node:path";
|
|
30
|
-
import { pathToFileURL } from "node:url";
|
|
31
30
|
import { resolveABMaxPlaygroundSessions } from "../ab.js";
|
|
32
31
|
import { resolveArtifactsMax } from "../artifacts.js";
|
|
33
32
|
import { httpChannel } from "../channels.js";
|
|
34
33
|
import { cursorAccountServersHasMixedWildcard, DEFAULT_MODEL, isInlineStdioConnection, MAX_RUNNING_TURNS_LIMIT, normalizeCursorAccountServers, toPublicCloudInfo, } from "../types.js";
|
|
35
|
-
import { registerAuthoredModuleLoaders } from "./authored-loaders.js";
|
|
34
|
+
import { importAuthoredModule, registerAuthoredModuleLoaders, } from "./authored-loaders.js";
|
|
36
35
|
import { normalizePositiveInt } from "./bounded-int.js";
|
|
37
36
|
import { getDefinitionKind } from "./brand.js";
|
|
38
37
|
import { artifactBuiltinTool, builtinTools, TAG_ARTIFACT_TOOL_NAME, } from "./builtin-tools/index.js";
|
|
@@ -46,11 +45,6 @@ import { withIdentityPreamble } from "./workspace.js";
|
|
|
46
45
|
const MODULE_EXTENSIONS = new Set([".ts", ".mts", ".js", ".mjs"]);
|
|
47
46
|
const NAME_PATTERN = /^[A-Za-z0-9][A-Za-z0-9_-]*$/;
|
|
48
47
|
const SKILL_DESCRIPTION_FALLBACK = (name) => `Instructions for the ${name} skill.`;
|
|
49
|
-
function defaultImportModule(absolutePath) {
|
|
50
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
51
|
-
return (yield import(pathToFileURL(absolutePath).href));
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
48
|
/**
|
|
55
49
|
* True when `dir` looks like an agent project root: it has a nested `agent/`
|
|
56
50
|
* directory, or flat-layout markers (`agent.ts` / `instructions.md`) directly
|
|
@@ -199,7 +193,7 @@ export function loadAgentProject(dir_1) {
|
|
|
199
193
|
const ctx = {
|
|
200
194
|
rootDir,
|
|
201
195
|
diagnostics,
|
|
202
|
-
importModule: (_a = options.importModule) !== null && _a !== void 0 ? _a :
|
|
196
|
+
importModule: (_a = options.importModule) !== null && _a !== void 0 ? _a : importAuthoredModule,
|
|
203
197
|
};
|
|
204
198
|
const name = (_b = (yield readPackageName(rootDir))) !== null && _b !== void 0 ? _b : basename(rootDir);
|
|
205
199
|
const agent = yield loadAgent(ctx, agentDir, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eval-runner.d.ts","sourceRoot":"","sources":["../../src/internal/eval-runner.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;
|
|
1
|
+
{"version":3,"file":"eval-runner.d.ts","sourceRoot":"","sources":["../../src/internal/eval-runner.ts"],"names":[],"mapp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AO,EAAE,eAAe,GACvB,OAAO,CAAC,aAAa,EAAE,CAAC,CAqF1B;AAwED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,cAAc,GAAG,MAAM,CAWvE;AAED;;;GAGG;AACH,wBAAgB,8BAA8B,CAC5C,KAAK,EAAE,SAAS,cAAc,EAAE,GAC/B,cAAc,EAAE,EAAE,CAmBpB"}
|
|
@@ -18,7 +18,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
18
18
|
};
|
|
19
19
|
import { readdir } from "node:fs/promises";
|
|
20
20
|
import { join, relative, resolve } from "node:path";
|
|
21
|
-
import { pathToFileURL } from "node:url";
|
|
22
21
|
import { computeVerdict, createAssertions, EvalAssertionRecorder, EvalRequireFailure, EvalSkipSignal, } from "../evals/assertions.js";
|
|
23
22
|
import { evaluateExpectation } from "../evals/expect.js";
|
|
24
23
|
import { EVAL_JUDGE_GRADERS, EvalJudgeUnavailableError, renderSubmission, } from "../evals/judge.js";
|
|
@@ -26,16 +25,12 @@ import { EVAL_ROOT_ENV } from "../evals/loaders.js";
|
|
|
26
25
|
import { combineReporters } from "../evals/reporters.js";
|
|
27
26
|
import { summarizeEvalResults } from "../evals/results.js";
|
|
28
27
|
import { EVAL_MAX_CONCURRENCY_LIMIT, expandEvalDefinition, expandSummarySuiteSelection, isEvalSummaryCase, matchesEvalIdFilter, normalizeEvalMaxConcurrency, } from "../evals.js";
|
|
28
|
+
import { importAuthoredModule } from "./authored-loaders.js";
|
|
29
29
|
import { isDefinitionOfKind } from "./brand.js";
|
|
30
30
|
import { callJudgeModel, EVAL_JUDGE_MODEL_ENV, resolveJudgeModel, } from "./eval-judge-model.js";
|
|
31
31
|
import { mapPool } from "./map-pool.js";
|
|
32
32
|
import { RunSessionTimeoutError, runSession } from "./run-client.js";
|
|
33
33
|
import { buildTrajectory } from "./trajectory.js";
|
|
34
|
-
function defaultImport(absolutePath) {
|
|
35
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
-
return (yield import(pathToFileURL(absolutePath).href));
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
34
|
function listEvalFiles(dir) {
|
|
40
35
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41
36
|
const out = [];
|
|
@@ -70,7 +65,7 @@ function listEvalFiles(dir) {
|
|
|
70
65
|
});
|
|
71
66
|
}
|
|
72
67
|
export function discoverEvals(projectRoot_1) {
|
|
73
|
-
return __awaiter(this, arguments, void 0, function* (projectRoot, importModule =
|
|
68
|
+
return __awaiter(this, arguments, void 0, function* (projectRoot, importModule = importAuthoredModule) {
|
|
74
69
|
const root = resolve(projectRoot);
|
|
75
70
|
const evalsDir = join(root, "evals");
|
|
76
71
|
const files = yield listEvalFiles(evalsDir);
|
|
@@ -160,7 +155,7 @@ export function runDiscoveredEvals(options) {
|
|
|
160
155
|
config = options.discovered.config;
|
|
161
156
|
}
|
|
162
157
|
else {
|
|
163
|
-
const importModule = (_a = options.importModule) !== null && _a !== void 0 ? _a :
|
|
158
|
+
const importModule = (_a = options.importModule) !== null && _a !== void 0 ? _a : importAuthoredModule;
|
|
164
159
|
const discovered = yield discoverEvals(options.projectRoot, importModule);
|
|
165
160
|
config = discovered.config;
|
|
166
161
|
selected = filterDiscoveredEvals(discovered.evals, {
|
|
@@ -23,6 +23,16 @@ export declare class SessionEventLog {
|
|
|
23
23
|
}): Promise<SessionEventLog>;
|
|
24
24
|
private hydrate;
|
|
25
25
|
get count(): number;
|
|
26
|
+
/**
|
|
27
|
+
* In-process residency vs recorded length. Today those are the same
|
|
28
|
+
* (`events` is the cache). A later change can drop the cache and keep
|
|
29
|
+
* `eventsTotal` as the durable count while `eventsRetained` shrinks to
|
|
30
|
+
* the unflushed tail.
|
|
31
|
+
*/
|
|
32
|
+
memoryStats(): {
|
|
33
|
+
eventsRetained: number;
|
|
34
|
+
eventsTotal: number;
|
|
35
|
+
};
|
|
26
36
|
/**
|
|
27
37
|
* Assign the next index, record the event, and fan out to live
|
|
28
38
|
* subscribers. Ordering is synchronous; file persistence is chained in
|
|
@@ -45,13 +55,20 @@ export declare class SessionEventLog {
|
|
|
45
55
|
*/
|
|
46
56
|
stream(startIndex?: number): ReadableStream<Uint8Array>;
|
|
47
57
|
}
|
|
58
|
+
export type EventLogMemoryStats = {
|
|
59
|
+
residentSessions: number;
|
|
60
|
+
eventsRetained: number;
|
|
61
|
+
eventsTotal: number;
|
|
62
|
+
};
|
|
48
63
|
/** Lazily opens one {@link SessionEventLog} per session. */
|
|
49
64
|
export declare class EventLogStore {
|
|
50
65
|
private readonly eventFilePathFor;
|
|
51
66
|
private readonly onPersistError;
|
|
52
67
|
private readonly logs;
|
|
68
|
+
private readonly opened;
|
|
53
69
|
constructor(eventFilePathFor: (sessionId: string) => string, onPersistError?: (sessionId: string, error: unknown) => void);
|
|
54
70
|
get(sessionId: string): Promise<SessionEventLog>;
|
|
71
|
+
memoryStats(): EventLogMemoryStats;
|
|
55
72
|
flushAll(): Promise<void>;
|
|
56
73
|
}
|
|
57
74
|
//# sourceMappingURL=event-log.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-log.d.ts","sourceRoot":"","sources":["../../src/internal/event-log.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAErE,MAAM,MAAM,eAAe,GAAG,mBAAmB,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAExE,qBAAa,eAAe;IAMxB,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,cAAc;IAPjC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAsB;IAC7C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA4C;IACtE,OAAO,CAAC,YAAY,CAAoC;IAExD,OAAO,eAIH;IAEJ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AgB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,EAC/C,cAAc,GAAE,CAC/B,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,OAAO,KACX,IAAe,EAClB;IAEJ,GAAG,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAmB/C;IAED,WAAW,IAAI,mBAAmB,CAajC;IAEK,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAM9B;CACF"}
|
|
@@ -68,6 +68,16 @@ export class SessionEventLog {
|
|
|
68
68
|
get count() {
|
|
69
69
|
return this.events.length;
|
|
70
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* In-process residency vs recorded length. Today those are the same
|
|
73
|
+
* (`events` is the cache). A later change can drop the cache and keep
|
|
74
|
+
* `eventsTotal` as the durable count while `eventsRetained` shrinks to
|
|
75
|
+
* the unflushed tail.
|
|
76
|
+
*/
|
|
77
|
+
memoryStats() {
|
|
78
|
+
const n = this.events.length;
|
|
79
|
+
return { eventsRetained: n, eventsTotal: n };
|
|
80
|
+
}
|
|
71
81
|
/**
|
|
72
82
|
* Assign the next index, record the event, and fan out to live
|
|
73
83
|
* subscribers. Ordering is synchronous; file persistence is chained in
|
|
@@ -161,20 +171,40 @@ export class EventLogStore {
|
|
|
161
171
|
this.eventFilePathFor = eventFilePathFor;
|
|
162
172
|
this.onPersistError = onPersistError;
|
|
163
173
|
this.logs = new Map();
|
|
174
|
+
this.opened = new Map();
|
|
164
175
|
}
|
|
165
176
|
get(sessionId) {
|
|
166
177
|
let log = this.logs.get(sessionId);
|
|
167
178
|
if (log === undefined) {
|
|
168
179
|
const filePath = this.eventFilePathFor(sessionId);
|
|
169
|
-
log = mkdir(dirname(filePath), { recursive: true })
|
|
180
|
+
log = mkdir(dirname(filePath), { recursive: true })
|
|
181
|
+
.then(() => SessionEventLog.open({
|
|
170
182
|
sessionId,
|
|
171
183
|
filePath,
|
|
172
184
|
onPersistError: (error) => this.onPersistError(sessionId, error),
|
|
173
|
-
}))
|
|
185
|
+
}))
|
|
186
|
+
.then((opened) => {
|
|
187
|
+
this.opened.set(sessionId, opened);
|
|
188
|
+
return opened;
|
|
189
|
+
});
|
|
174
190
|
this.logs.set(sessionId, log);
|
|
175
191
|
}
|
|
176
192
|
return log;
|
|
177
193
|
}
|
|
194
|
+
memoryStats() {
|
|
195
|
+
let eventsRetained = 0;
|
|
196
|
+
let eventsTotal = 0;
|
|
197
|
+
for (const log of this.opened.values()) {
|
|
198
|
+
const stats = log.memoryStats();
|
|
199
|
+
eventsRetained += stats.eventsRetained;
|
|
200
|
+
eventsTotal += stats.eventsTotal;
|
|
201
|
+
}
|
|
202
|
+
return {
|
|
203
|
+
residentSessions: this.logs.size,
|
|
204
|
+
eventsRetained,
|
|
205
|
+
eventsTotal,
|
|
206
|
+
};
|
|
207
|
+
}
|
|
178
208
|
flushAll() {
|
|
179
209
|
return __awaiter(this, void 0, void 0, function* () {
|
|
180
210
|
yield Promise.all([...this.logs.values()].map((logPromise) => logPromise.then((log) => log.flush()).catch(() => { })));
|
|
@@ -14,7 +14,7 @@ export interface LogsResponse {
|
|
|
14
14
|
entries: LogRingEntry[];
|
|
15
15
|
nextAfter: number;
|
|
16
16
|
}
|
|
17
|
-
export type LogsProgress = DeploymentProgress | "queued" | "preparing" | "creating" | "building" | "starting" | "finalizing" | "running" | "failed" | "stopping" | "stopped" | "degraded";
|
|
17
|
+
export type LogsProgress = DeploymentProgress | "queued" | "preparing" | "creating" | "building" | "starting" | "finalizing" | "running" | "failed" | "stopping" | "stopped" | "deleting" | "degraded";
|
|
18
18
|
/**
|
|
19
19
|
* Customer-facing line for the current deploy step. Prefer the live
|
|
20
20
|
* `statusMessage` from the API when present; otherwise the progress
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logs-client.d.ts","sourceRoot":"","sources":["../../src/internal/logs-client.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACxB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAuB,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAW7E,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,YAAY,GACpB,kBAAkB,GAClB,QAAQ,GACR,WAAW,GACX,UAAU,GACV,UAAU,GACV,UAAU,GACV,YAAY,GACZ,SAAS,GACT,QAAQ,GACR,UAAU,GACV,SAAS,GACT,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"logs-client.d.ts","sourceRoot":"","sources":["../../src/internal/logs-client.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACxB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAuB,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAW7E,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,YAAY,GACpB,kBAAkB,GAClB,QAAQ,GACR,WAAW,GACX,UAAU,GACV,UAAU,GACV,UAAU,GACV,YAAY,GACZ,SAAS,GACT,QAAQ,GACR,UAAU,GACV,SAAS,GACT,UAAU,GACV,UAAU,CAAC;AAiBf;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,YAAY,EACtB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,EACzB,aAA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,MAAM,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"}
|
|
@@ -32,6 +32,7 @@ const PROGRESS_MESSAGES = {
|
|
|
32
32
|
failed: "Deploy failed",
|
|
33
33
|
stopping: "Stopping deployment…",
|
|
34
34
|
stopped: "Deployment stopped",
|
|
35
|
+
deleting: "Deleting deployment…",
|
|
35
36
|
degraded: "Deployment degraded",
|
|
36
37
|
};
|
|
37
38
|
/**
|
|
@@ -262,6 +263,8 @@ function resolveProgress(detail) {
|
|
|
262
263
|
return "stopping";
|
|
263
264
|
case "stopped":
|
|
264
265
|
return "stopped";
|
|
266
|
+
case "deleting":
|
|
267
|
+
return "deleting";
|
|
265
268
|
default:
|
|
266
269
|
return "queued";
|
|
267
270
|
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Process heap + event-log residency for hosted engines.
|
|
3
|
+
*
|
|
4
|
+
* Pod RSS (`runner_daemon.pod.memory_usage_bytes`) cannot show a V8 heap-cap
|
|
5
|
+
* OOM: the cgroup limit is tens of GB while Node aborts near
|
|
6
|
+
* `--max-old-space-size`. The live path is `/v1/health`: the control plane
|
|
7
|
+
* already probes every engine and emits `cursor.agent_serve.engine.*` gauges.
|
|
8
|
+
* An optional in-process sampler (`AGENT_SDK_MEMORY_METRICS=1`) still logs
|
|
9
|
+
* and, if a Datadog key happens to be in the pod, posts directly.
|
|
10
|
+
*
|
|
11
|
+
* `event_log.events_retained` is the in-process cache size (the OOM
|
|
12
|
+
* suspect). `event_log.events_total` is the durable recorded count. They
|
|
13
|
+
* are equal today; a later consume-and-drop change should split them.
|
|
14
|
+
*/
|
|
15
|
+
import type { Meter } from "@opentelemetry/api";
|
|
16
|
+
import type { EventLogMemoryStats } from "./event-log.js";
|
|
17
|
+
export declare const MEMORY_METRIC_PREFIX = "agent_sdk.memory";
|
|
18
|
+
export declare const EVENT_LOG_METRIC_PREFIX = "agent_sdk.event_log";
|
|
19
|
+
export type ProcessMemorySample = {
|
|
20
|
+
heapUsedBytes: number;
|
|
21
|
+
heapTotalBytes: number;
|
|
22
|
+
heapLimitBytes: number;
|
|
23
|
+
rssBytes: number;
|
|
24
|
+
externalBytes: number;
|
|
25
|
+
};
|
|
26
|
+
export type DatadogMemoryMetricsConfig = {
|
|
27
|
+
apiKey: string;
|
|
28
|
+
seriesUrl: string;
|
|
29
|
+
timeoutMs: number;
|
|
30
|
+
};
|
|
31
|
+
export type ProcessMemoryTelemetryOptions = {
|
|
32
|
+
agentName: string;
|
|
33
|
+
getEventLogStats: () => EventLogMemoryStats;
|
|
34
|
+
logger?: (line: string) => void;
|
|
35
|
+
meter?: Meter;
|
|
36
|
+
env?: NodeJS.ProcessEnv;
|
|
37
|
+
intervalMs?: number;
|
|
38
|
+
now?: () => number;
|
|
39
|
+
memoryUsage?: () => {
|
|
40
|
+
heapUsed: number;
|
|
41
|
+
heapTotal: number;
|
|
42
|
+
rss: number;
|
|
43
|
+
external: number;
|
|
44
|
+
};
|
|
45
|
+
heapSizeLimit?: () => number;
|
|
46
|
+
postSeries?: (config: DatadogMemoryMetricsConfig, body: string) => Promise<void>;
|
|
47
|
+
};
|
|
48
|
+
export declare function shouldStartProcessMemoryTelemetry(env?: NodeJS.ProcessEnv): boolean;
|
|
49
|
+
export declare function resolveDatadogMemoryMetricsConfig(env?: NodeJS.ProcessEnv): DatadogMemoryMetricsConfig | undefined;
|
|
50
|
+
export declare function sampleProcessMemory(args?: {
|
|
51
|
+
memoryUsage?: ProcessMemoryTelemetryOptions["memoryUsage"];
|
|
52
|
+
heapSizeLimit?: ProcessMemoryTelemetryOptions["heapSizeLimit"];
|
|
53
|
+
}): ProcessMemorySample;
|
|
54
|
+
export type MemoryHealthFields = {
|
|
55
|
+
memory: ProcessMemorySample & {
|
|
56
|
+
heapUsedRatio: number;
|
|
57
|
+
};
|
|
58
|
+
eventLog: EventLogMemoryStats;
|
|
59
|
+
};
|
|
60
|
+
export declare function heapUsedRatio(memory: ProcessMemorySample): number;
|
|
61
|
+
export declare function sumEventLogStats(stats: readonly EventLogMemoryStats[]): EventLogMemoryStats;
|
|
62
|
+
/** Fields attached to `/v1/health` so the control plane can scrape them. */
|
|
63
|
+
export declare function buildMemoryHealthFields(eventLog: EventLogMemoryStats, sample?: ProcessMemorySample): MemoryHealthFields;
|
|
64
|
+
/**
|
|
65
|
+
* Best-effort health payload. Sampling or event-log stats must never fail
|
|
66
|
+
* `/v1/health`; omit the fields instead.
|
|
67
|
+
*/
|
|
68
|
+
export declare function collectMemoryHealthFields(args: {
|
|
69
|
+
eventLog: () => EventLogMemoryStats;
|
|
70
|
+
sample?: () => ProcessMemorySample;
|
|
71
|
+
}): MemoryHealthFields | Record<string, never>;
|
|
72
|
+
export declare function formatMemoryLogLine(args: {
|
|
73
|
+
agentName: string;
|
|
74
|
+
memory: ProcessMemorySample;
|
|
75
|
+
eventLog: EventLogMemoryStats;
|
|
76
|
+
}): string;
|
|
77
|
+
export declare function buildDatadogGaugeSeries(args: {
|
|
78
|
+
agentName: string;
|
|
79
|
+
memory: ProcessMemorySample;
|
|
80
|
+
eventLog: EventLogMemoryStats;
|
|
81
|
+
timestampSec: number;
|
|
82
|
+
}): Array<{
|
|
83
|
+
metric: string;
|
|
84
|
+
type: "gauge";
|
|
85
|
+
points: [[number, number]];
|
|
86
|
+
tags: string[];
|
|
87
|
+
}>;
|
|
88
|
+
/** Start the sampler. Returns a stop function. */
|
|
89
|
+
export declare function startProcessMemoryTelemetry(options: ProcessMemoryTelemetryOptions): () => void;
|
|
90
|
+
//# sourceMappingURL=process-memory-telemetry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process-memory-telemetry.d.ts","sourceRoot":"","sources":["../../src/internal/process-memory-telemetry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,KAAK,EAAc,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAO1D,eAAO,MAAM,oBAAoB,qBAAqB,CAAC;AACvD,eAAO,MAAM,uBAAuB,wBAAwB,CAAC;AAE7D,MAAM,MAAM,mBAAmB,GAAG;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;IAC5C,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,MAAM,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM;QAClB,QAAQ,E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