@senpi/runtime 3.0.321 → 3.0.322
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/cli/guide-commands.d.ts.map +1 -1
- package/dist/cli/guide-commands.js +11 -9
- package/dist/cli/guide-commands.js.map +1 -1
- package/dist/daemon/mcp-endpoint.d.ts.map +1 -1
- package/dist/daemon/mcp-endpoint.js +4 -3
- package/dist/daemon/mcp-endpoint.js.map +1 -1
- package/dist/deploy/batch/batch.d.ts +12 -24
- package/dist/deploy/batch/batch.d.ts.map +1 -1
- package/dist/deploy/batch/batch.js +54 -119
- package/dist/deploy/batch/batch.js.map +1 -1
- package/dist/deploy/box-status.d.ts +47 -0
- package/dist/deploy/box-status.d.ts.map +1 -0
- package/dist/deploy/box-status.js +111 -0
- package/dist/deploy/box-status.js.map +1 -0
- package/dist/deploy/messages.d.ts +10 -10
- package/dist/deploy/messages.d.ts.map +1 -1
- package/dist/deploy/messages.js +28 -16
- package/dist/deploy/messages.js.map +1 -1
- package/dist/deploy/orchestrator.d.ts +3 -3
- package/dist/deploy/orchestrator.d.ts.map +1 -1
- package/dist/deploy/orchestrator.js +20 -74
- package/dist/deploy/orchestrator.js.map +1 -1
- package/dist/deploy/register.js +3 -8
- package/dist/deploy/register.js.map +1 -1
- package/dist/deploy/sim-admission.d.ts +4 -30
- package/dist/deploy/sim-admission.d.ts.map +1 -1
- package/dist/deploy/sim-admission.js +14 -51
- package/dist/deploy/sim-admission.js.map +1 -1
- package/dist/integrity-manifest.json +29 -29
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
- package/dist/deploy/box-grow.d.ts +0 -55
- package/dist/deploy/box-grow.d.ts.map +0 -1
- package/dist/deploy/box-grow.js +0 -142
- package/dist/deploy/box-grow.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The orchestrator's live box grow (`POST /v1/agents/me/box/grow`). The runtime calls it when a
|
|
3
|
-
* simulation does not fit the box's memory; the orchestrator raises the box one step without a
|
|
4
|
-
* restart, or answers that the box is at its largest. An orchestrator with the payment gate on also
|
|
5
|
-
* answers 403 `BOX_GROW_NOT_ELIGIBLE` to an account that pays nothing (no active or past-due plan and
|
|
6
|
-
* no paid credits held): larger boxes are for paying accounts, so that is a refusal to upgrade, not an
|
|
7
|
-
* outage. 503 `BOX_GROW_UNAVAILABLE` is the gate unable to read the plan, which a retry can clear.
|
|
8
|
-
*/
|
|
9
|
-
export type BoxGrowOutcome = {
|
|
10
|
-
kind: "grown";
|
|
11
|
-
beforeGb: number;
|
|
12
|
-
afterGb: number;
|
|
13
|
-
} | {
|
|
14
|
-
kind: "full";
|
|
15
|
-
largestGb?: number;
|
|
16
|
-
} | {
|
|
17
|
-
kind: "not-eligible";
|
|
18
|
-
} | {
|
|
19
|
-
kind: "unavailable";
|
|
20
|
-
reason: string;
|
|
21
|
-
};
|
|
22
|
-
/** How often the box's memory limit is read while it waits for the box to resize. */
|
|
23
|
-
export declare const BOX_RESIZE_POLL_MS = 1000;
|
|
24
|
-
/**
|
|
25
|
-
* How long the box waits for its memory limit to rise: first for a grow simulation-service's
|
|
26
|
-
* admission may already have asked for, then after each grow step the runtime asks for itself.
|
|
27
|
-
*/
|
|
28
|
-
export declare const BOX_RESIZE_WAIT_MS = 60000;
|
|
29
|
-
/**
|
|
30
|
-
* `SENPI_ORCHESTRATOR_URL` when set, else the `SENPI_MCP_URL` origin with its leading `mcp.` host
|
|
31
|
-
* label swapped for `senpi-orchestrator.` (`mcp.dev.senpi.ai` serves `senpi-orchestrator.dev.senpi.ai`).
|
|
32
|
-
*/
|
|
33
|
-
export declare function orchestratorUrl(env: NodeJS.ProcessEnv): string | undefined;
|
|
34
|
-
export declare function requestBoxGrow(env: NodeJS.ProcessEnv, fetchImpl?: typeof fetch): Promise<BoxGrowOutcome>;
|
|
35
|
-
/** What `GET /v1/agents/me/box` says about the box's sizes, in the orchestrator's decimal GB. */
|
|
36
|
-
export type BoxStatus = {
|
|
37
|
-
ok: true;
|
|
38
|
-
liveGb?: number;
|
|
39
|
-
nextGb?: number;
|
|
40
|
-
/** The largest box the orchestrator offers this agent: the top of its ladder. */
|
|
41
|
-
largestGb: number;
|
|
42
|
-
growAllowed?: boolean;
|
|
43
|
-
growReason?: string;
|
|
44
|
-
} | {
|
|
45
|
-
ok: false;
|
|
46
|
-
reason: string;
|
|
47
|
-
};
|
|
48
|
-
/**
|
|
49
|
-
* The orchestrator's box status (`GET /v1/agents/me/box`, the same box token as the grow). Its
|
|
50
|
-
* `largest` is what the batch plans against, so the ladder lives on the orchestrator only. An
|
|
51
|
-
* orchestrator without the route, or one that cannot be read, answers `ok: false`; the caller then
|
|
52
|
-
* plans against the box's size now.
|
|
53
|
-
*/
|
|
54
|
-
export declare function readBoxStatus(env: NodeJS.ProcessEnv, fetchImpl?: typeof fetch): Promise<BoxStatus>;
|
|
55
|
-
//# sourceMappingURL=box-grow.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"box-grow.d.ts","sourceRoot":"","sources":["../../src/deploy/box-grow.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,MAAM,MAAM,cAAc,GACtB;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GACpD;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,GACpC;IAAE,IAAI,EAAE,cAAc,CAAA;CAAE,GACxB;IAAE,IAAI,EAAE,aAAa,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAI5C,qFAAqF;AACrF,eAAO,MAAM,kBAAkB,OAAQ,CAAC;AACxC;;;GAGG;AACH,eAAO,MAAM,kBAAkB,QAAS,CAAC;AAEzC;;;GAGG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,CAAC,UAAU,GAAG,MAAM,GAAG,SAAS,CAc1E;AAQD,wBAAsB,cAAc,CAClC,GAAG,EAAE,MAAM,CAAC,UAAU,EACtB,SAAS,GAAE,OAAO,KAAa,GAC9B,OAAO,CAAC,cAAc,CAAC,CAgDzB;AAED,iGAAiG;AACjG,MAAM,MAAM,SAAS,GACjB;IACE,EAAE,EAAE,IAAI,CAAC;IACT,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iFAAiF;IACjF,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,GACD;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAIlC;;;;;GAKG;AACH,wBAAsB,aAAa,CAAC,GAAG,EAAE,MAAM,CAAC,UAAU,EAAE,SAAS,GAAE,OAAO,KAAa,GAAG,OAAO,CAAC,SAAS,CAAC,CA+B/G"}
|
package/dist/deploy/box-grow.js
DELETED
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The orchestrator's live box grow (`POST /v1/agents/me/box/grow`). The runtime calls it when a
|
|
3
|
-
* simulation does not fit the box's memory; the orchestrator raises the box one step without a
|
|
4
|
-
* restart, or answers that the box is at its largest. An orchestrator with the payment gate on also
|
|
5
|
-
* answers 403 `BOX_GROW_NOT_ELIGIBLE` to an account that pays nothing (no active or past-due plan and
|
|
6
|
-
* no paid credits held): larger boxes are for paying accounts, so that is a refusal to upgrade, not an
|
|
7
|
-
* outage. 503 `BOX_GROW_UNAVAILABLE` is the gate unable to read the plan, which a retry can clear.
|
|
8
|
-
*/
|
|
9
|
-
const GROW_TIMEOUT_MS = 30_000;
|
|
10
|
-
/** How often the box's memory limit is read while it waits for the box to resize. */
|
|
11
|
-
export const BOX_RESIZE_POLL_MS = 1_000;
|
|
12
|
-
/**
|
|
13
|
-
* How long the box waits for its memory limit to rise: first for a grow simulation-service's
|
|
14
|
-
* admission may already have asked for, then after each grow step the runtime asks for itself.
|
|
15
|
-
*/
|
|
16
|
-
export const BOX_RESIZE_WAIT_MS = 60_000;
|
|
17
|
-
/**
|
|
18
|
-
* `SENPI_ORCHESTRATOR_URL` when set, else the `SENPI_MCP_URL` origin with its leading `mcp.` host
|
|
19
|
-
* label swapped for `senpi-orchestrator.` (`mcp.dev.senpi.ai` serves `senpi-orchestrator.dev.senpi.ai`).
|
|
20
|
-
*/
|
|
21
|
-
export function orchestratorUrl(env) {
|
|
22
|
-
const explicit = env.SENPI_ORCHESTRATOR_URL?.trim();
|
|
23
|
-
if (explicit)
|
|
24
|
-
return explicit.replace(/\/+$/, "");
|
|
25
|
-
const mcp = env.SENPI_MCP_URL?.trim();
|
|
26
|
-
if (!mcp)
|
|
27
|
-
return undefined;
|
|
28
|
-
let url;
|
|
29
|
-
try {
|
|
30
|
-
url = new URL(mcp);
|
|
31
|
-
}
|
|
32
|
-
catch {
|
|
33
|
-
return undefined;
|
|
34
|
-
}
|
|
35
|
-
if (!url.hostname.startsWith("mcp."))
|
|
36
|
-
return undefined;
|
|
37
|
-
url.hostname = `senpi-orchestrator.${url.hostname.slice("mcp.".length)}`;
|
|
38
|
-
return url.origin;
|
|
39
|
-
}
|
|
40
|
-
function memoryGb(value) {
|
|
41
|
-
if (value === null || typeof value !== "object")
|
|
42
|
-
return undefined;
|
|
43
|
-
const gb = value.memoryGB;
|
|
44
|
-
return typeof gb === "number" && Number.isFinite(gb) ? gb : undefined;
|
|
45
|
-
}
|
|
46
|
-
export async function requestBoxGrow(env, fetchImpl = fetch) {
|
|
47
|
-
const base = orchestratorUrl(env);
|
|
48
|
-
if (base === undefined) {
|
|
49
|
-
return {
|
|
50
|
-
kind: "unavailable",
|
|
51
|
-
reason: "this box has no orchestrator address (SENPI_ORCHESTRATOR_URL, or an mcp. host in SENPI_MCP_URL)",
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
const token = env.SENPI_AUTH_TOKEN?.trim();
|
|
55
|
-
if (!token)
|
|
56
|
-
return { kind: "unavailable", reason: "this box has no SENPI_AUTH_TOKEN to ask the orchestrator with" };
|
|
57
|
-
let response;
|
|
58
|
-
try {
|
|
59
|
-
response = await fetchImpl(`${base}/v1/agents/me/box/grow`, {
|
|
60
|
-
method: "POST",
|
|
61
|
-
headers: { Authorization: `Bearer ${token}` },
|
|
62
|
-
signal: AbortSignal.timeout(GROW_TIMEOUT_MS),
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
catch (err) {
|
|
66
|
-
return { kind: "unavailable", reason: `the orchestrator could not be reached (${err instanceof Error ? err.message : String(err)})` };
|
|
67
|
-
}
|
|
68
|
-
const body = await response.json().catch(() => undefined);
|
|
69
|
-
const code = body !== null && typeof body === "object" ? body.code : undefined;
|
|
70
|
-
if (response.status === 200) {
|
|
71
|
-
const before = memoryGb(body?.before);
|
|
72
|
-
const after = memoryGb(body?.after);
|
|
73
|
-
if (before === undefined || after === undefined) {
|
|
74
|
-
return { kind: "unavailable", reason: "the orchestrator's answer did not carry the box sizes" };
|
|
75
|
-
}
|
|
76
|
-
return { kind: "grown", beforeGb: before, afterGb: after };
|
|
77
|
-
}
|
|
78
|
-
if (response.status === 409 && code === "BOX_FULL") {
|
|
79
|
-
const largestGb = memoryGb(body.largest);
|
|
80
|
-
return { kind: "full", ...(largestGb !== undefined ? { largestGb } : {}) };
|
|
81
|
-
}
|
|
82
|
-
if (response.status === 403 && code === "BOX_GROW_NOT_ELIGIBLE")
|
|
83
|
-
return { kind: "not-eligible" };
|
|
84
|
-
if (response.status === 503 && code === "BOX_GROW_UNAVAILABLE") {
|
|
85
|
-
return {
|
|
86
|
-
kind: "unavailable",
|
|
87
|
-
reason: "the orchestrator couldn't check your plan right now (503 BOX_GROW_UNAVAILABLE), try again in a minute",
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
if (response.status === 503 && code === "BOX_GROW_DISABLED") {
|
|
91
|
-
return { kind: "unavailable", reason: "the orchestrator has box growth turned off (503 BOX_GROW_DISABLED)" };
|
|
92
|
-
}
|
|
93
|
-
if (response.status === 404)
|
|
94
|
-
return { kind: "unavailable", reason: "the orchestrator has no box for this agent (404)" };
|
|
95
|
-
return { kind: "unavailable", reason: `the orchestrator answered ${response.status}` };
|
|
96
|
-
}
|
|
97
|
-
const STATUS_TIMEOUT_MS = 10_000;
|
|
98
|
-
/**
|
|
99
|
-
* The orchestrator's box status (`GET /v1/agents/me/box`, the same box token as the grow). Its
|
|
100
|
-
* `largest` is what the batch plans against, so the ladder lives on the orchestrator only. An
|
|
101
|
-
* orchestrator without the route, or one that cannot be read, answers `ok: false`; the caller then
|
|
102
|
-
* plans against the box's size now.
|
|
103
|
-
*/
|
|
104
|
-
export async function readBoxStatus(env, fetchImpl = fetch) {
|
|
105
|
-
const base = orchestratorUrl(env);
|
|
106
|
-
if (base === undefined)
|
|
107
|
-
return { ok: false, reason: "this box has no orchestrator address" };
|
|
108
|
-
const token = env.SENPI_AUTH_TOKEN?.trim();
|
|
109
|
-
if (!token)
|
|
110
|
-
return { ok: false, reason: "this box has no SENPI_AUTH_TOKEN to ask the orchestrator with" };
|
|
111
|
-
let response;
|
|
112
|
-
try {
|
|
113
|
-
response = await fetchImpl(`${base}/v1/agents/me/box`, {
|
|
114
|
-
method: "GET",
|
|
115
|
-
headers: { Authorization: `Bearer ${token}` },
|
|
116
|
-
signal: AbortSignal.timeout(STATUS_TIMEOUT_MS),
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
catch (err) {
|
|
120
|
-
return { ok: false, reason: `the orchestrator could not be reached (${err instanceof Error ? err.message : String(err)})` };
|
|
121
|
-
}
|
|
122
|
-
if (response.status !== 200)
|
|
123
|
-
return { ok: false, reason: `the orchestrator answered ${response.status}` };
|
|
124
|
-
const body = await response.json().catch(() => undefined);
|
|
125
|
-
if (body === null || typeof body !== "object")
|
|
126
|
-
return { ok: false, reason: "the orchestrator's box status was not JSON" };
|
|
127
|
-
const b = body;
|
|
128
|
-
const largestGb = memoryGb(b.largest);
|
|
129
|
-
if (largestGb === undefined || largestGb <= 0)
|
|
130
|
-
return { ok: false, reason: "the orchestrator's box status did not carry the largest size" };
|
|
131
|
-
const liveGb = memoryGb(b.live);
|
|
132
|
-
const nextGb = memoryGb(b.next);
|
|
133
|
-
return {
|
|
134
|
-
ok: true,
|
|
135
|
-
largestGb,
|
|
136
|
-
...(liveGb !== undefined ? { liveGb } : {}),
|
|
137
|
-
...(nextGb !== undefined ? { nextGb } : {}),
|
|
138
|
-
...(typeof b.growAllowed === "boolean" ? { growAllowed: b.growAllowed } : {}),
|
|
139
|
-
...(typeof b.growReason === "string" ? { growReason: b.growReason } : {}),
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
//# sourceMappingURL=box-grow.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"box-grow.js","sourceRoot":"","sources":["../../src/deploy/box-grow.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAQH,MAAM,eAAe,GAAG,MAAM,CAAC;AAE/B,qFAAqF;AACrF,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,CAAC;AACxC;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC;AAEzC;;;GAGG;AACH,MAAM,UAAU,eAAe,CAAC,GAAsB;IACpD,MAAM,QAAQ,GAAG,GAAG,CAAC,sBAAsB,EAAE,IAAI,EAAE,CAAC;IACpD,IAAI,QAAQ;QAAE,OAAO,QAAQ,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IAClD,MAAM,GAAG,GAAG,GAAG,CAAC,aAAa,EAAE,IAAI,EAAE,CAAC;IACtC,IAAI,CAAC,GAAG;QAAE,OAAO,SAAS,CAAC;IAC3B,IAAI,GAAQ,CAAC;IACb,IAAI,CAAC;QACH,GAAG,GAAG,IAAI,GAAG,CAAC,G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