@nylorun/runtime 0.22.0-beta → 0.24.0-beta
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/CHANGELOG.md +161 -0
- package/README.md +95 -30
- package/dist/adapters/execution/restate.d.ts +15 -3
- package/dist/adapters/execution/restate.js +78 -84
- package/dist/adapters/replication/pgoutput.d.ts +2 -0
- package/dist/adapters/replication/pgoutput.js +6 -3
- package/dist/adapters/sandbox/local.d.ts +9 -1
- package/dist/adapters/sandbox/local.js +16 -4
- package/dist/adapters/sandbox/virtual.js +4 -1
- package/dist/adapters/streams/s2.js +1 -13
- package/dist/api/a2a/endpoint.js +5 -1
- package/dist/api/a2a/routes.d.ts +2 -0
- package/dist/api/a2a/routes.js +2 -2
- package/dist/api/a2a/tasks.js +2 -1
- package/dist/api/ag-ui/endpoint.js +4 -2
- package/dist/api/ag-ui/history.js +4 -1
- package/dist/api/ag-ui/routes.d.ts +4 -1
- package/dist/api/ag-ui/routes.js +11 -10
- package/dist/api/ag-ui/translate.js +3 -2
- package/dist/api/components.d.ts +4953 -1204
- package/dist/api/components.js +25 -16
- package/dist/api/gate/keys.js +7 -1
- package/dist/api/gate/routes.d.ts +6 -0
- package/dist/api/gate/routes.js +39 -3
- package/dist/api/http/app.js +4 -4
- package/dist/api/http/define.d.ts +6 -0
- package/dist/api/http/define.js +13 -1
- package/dist/api/http/respond.js +1 -1
- package/dist/api/http/routes/artifacts.js +35 -8
- package/dist/api/http/routes/coverage.d.ts +9 -0
- package/dist/api/http/routes/coverage.js +34 -0
- package/dist/api/http/routes/environments.d.ts +11 -0
- package/dist/api/http/routes/environments.js +283 -0
- package/dist/api/http/routes/mcp.d.ts +1 -1
- package/dist/api/http/routes/mcp.js +2 -2
- package/dist/api/http/routes/me.js +1 -1
- package/dist/api/http/routes/reads.d.ts +45 -9
- package/dist/api/http/routes/reads.js +54 -5
- package/dist/api/http/routes/sessions.js +11 -6
- package/dist/api/http/routes/tenant.js +32 -10
- package/dist/api/openapi.js +31 -26
- package/dist/artifacts/disk.d.ts +59 -0
- package/dist/artifacts/disk.js +563 -0
- package/dist/artifacts/export.d.ts +1 -1
- package/dist/artifacts/export.js +2 -3
- package/dist/artifacts/folders.d.ts +6 -3
- package/dist/artifacts/folders.js +17 -12
- package/dist/artifacts/service.d.ts +2 -1
- package/dist/artifacts/service.js +6 -1
- package/dist/artifacts/workspace.d.ts +1 -1
- package/dist/artifacts/workspace.js +1 -1
- package/dist/core/flow-host.d.ts +3 -22
- package/dist/core/flow-host.js +11 -37
- package/dist/core/provider.d.ts +3 -2
- package/dist/core/provider.js +5 -37
- package/dist/core/sandbox-routes.d.ts +2 -21
- package/dist/core/sandbox-routes.js +10 -43
- package/dist/execution/types.d.ts +11 -9
- package/dist/execution/types.js +5 -7
- package/dist/gates/contract.d.ts +3 -24
- package/dist/gates/contract.js +1 -36
- package/dist/gates/egress-credentials.d.ts +9 -0
- package/dist/gates/egress-credentials.js +11 -4
- package/dist/gates/egress.d.ts +28 -1
- package/dist/gates/egress.js +115 -10
- package/dist/gates/fixture-model.d.ts +28 -0
- package/dist/gates/fixture-model.js +92 -0
- package/dist/gates/handler.js +4 -4
- package/dist/gates/http-tool.d.ts +6 -2
- package/dist/gates/http-tool.js +3 -5
- package/dist/gates/in-process.d.ts +5 -0
- package/dist/gates/in-process.js +12 -1
- package/dist/gates/journal.d.ts +30 -0
- package/dist/gates/journal.js +52 -0
- package/dist/gates/mcp-handler.d.ts +4 -0
- package/dist/gates/mcp-handler.js +5 -1
- package/dist/gates/meter.d.ts +10 -2
- package/dist/gates/meter.js +20 -5
- package/dist/gates/policy.d.ts +49 -0
- package/dist/gates/policy.js +134 -0
- package/dist/gates/tenant-vaults.d.ts +7 -7
- package/dist/gates/tenant-vaults.js +5 -5
- package/dist/gates/tool-calls.d.ts +10 -5
- package/dist/gates/tool-calls.js +28 -10
- package/dist/gates/tool-client.d.ts +8 -0
- package/dist/gates/tool-client.js +27 -11
- package/dist/gates/tool-contract.d.ts +10 -68
- package/dist/gates/tool-contract.js +1 -85
- package/dist/gates/tool-gate.d.ts +1 -1
- package/dist/harness/calls.d.ts +12 -5
- package/dist/harness/calls.js +21 -12
- package/dist/harness/executors.js +12 -9
- package/dist/harness/main.js +18 -5
- package/dist/harness/pod.d.ts +34 -0
- package/dist/harness/pod.js +41 -0
- package/dist/harness/service.d.ts +0 -1
- package/dist/harness/service.js +13 -5
- package/dist/harness/setup.d.ts +27 -0
- package/dist/harness/setup.js +150 -0
- package/dist/harness/ws-client.js +3 -2
- package/dist/harness/ws-port.d.ts +1 -5
- package/dist/harness/ws-port.js +1 -5
- package/dist/harness-api/in-process.js +3 -3
- package/dist/harness-api/record.d.ts +15 -1
- package/dist/harness-api/record.js +174 -44
- package/dist/harness-api/redact.d.ts +3 -0
- package/dist/harness-api/redact.js +45 -0
- package/dist/harness-api/server.d.ts +8 -0
- package/dist/harness-api/server.js +93 -13
- package/dist/harness-api/start.d.ts +10 -3
- package/dist/harness-api/start.js +40 -10
- package/dist/harness-api/tool-journal.d.ts +96 -0
- package/dist/harness-api/tool-journal.js +102 -0
- package/dist/harness-api/tool-status.d.ts +13 -0
- package/dist/harness-api/tool-status.js +26 -0
- package/dist/harness-api/workspace.d.ts +6 -3
- package/dist/harness-api/workspace.js +27 -11
- package/dist/harness-api/ws-server.d.ts +11 -3
- package/dist/harness-api/ws-server.js +94 -15
- package/dist/host/execution.d.ts +8 -6
- package/dist/host/gates.d.ts +2 -1
- package/dist/host/gates.js +10 -2
- package/dist/host/main.js +64 -21
- package/dist/host/operate.js +67 -5
- package/dist/host/stack-config.d.ts +70 -0
- package/dist/host/stack-config.js +67 -1
- package/dist/infra/execution.d.ts +18 -1
- package/dist/infra/execution.js +28 -4
- package/dist/infra/index.d.ts +1 -1
- package/dist/keys/client.js +4 -1
- package/dist/keys/keys.d.ts +5 -5
- package/dist/keys/keys.js +5 -7
- package/dist/management-openapi.json +999 -2211
- package/dist/mcp/connect.d.ts +25 -20
- package/dist/mcp/connect.js +29 -30
- package/dist/mcp/pool.d.ts +2 -2
- package/dist/mcp/pool.js +1 -1
- package/dist/mcp/preview.d.ts +3 -3
- package/dist/mcp/preview.js +10 -20
- package/dist/mcp/snapshot.d.ts +5 -11
- package/dist/mcp/snapshot.js +6 -7
- package/dist/model/pi-model.js +8 -0
- package/dist/openapi.json +6955 -2526
- package/dist/reads/types.d.ts +16 -3
- package/dist/record/append.d.ts +3 -1
- package/dist/record/append.js +1 -0
- package/dist/record/envelope.d.ts +5 -1
- package/dist/record/envelope.js +7 -3
- package/dist/record/environment.d.ts +25 -0
- package/dist/record/environment.js +44 -0
- package/dist/record/index.d.ts +1 -1
- package/dist/record/index.js +1 -1
- package/dist/retry.d.ts +21 -0
- package/dist/retry.js +34 -0
- package/dist/sandbox/disk-fs.d.ts +95 -0
- package/dist/sandbox/disk-fs.js +206 -0
- package/dist/sandbox/join.d.ts +17 -18
- package/dist/sandbox/join.js +46 -20
- package/dist/sandbox/manager.d.ts +16 -8
- package/dist/sandbox/manager.js +33 -17
- package/dist/sandbox/placement.d.ts +13 -12
- package/dist/sandbox/placement.js +29 -12
- package/dist/sandbox/pods/client.d.ts +6 -1
- package/dist/sandbox/pods/lifecycle.d.ts +28 -27
- package/dist/sandbox/pods/lifecycle.js +14 -26
- package/dist/sandbox/pods/reconcile.js +21 -15
- package/dist/sandbox/pods/spec.d.ts +15 -13
- package/dist/sandbox/pods/spec.js +16 -20
- package/dist/sandbox/records.d.ts +2 -2
- package/dist/sandbox/records.js +3 -3
- package/dist/sandbox/resolve.d.ts +35 -27
- package/dist/sandbox/resolve.js +66 -41
- package/dist/sandbox/session-sandbox.js +1 -1
- package/dist/sandbox/setup.d.ts +61 -0
- package/dist/sandbox/setup.js +123 -0
- package/dist/sandbox/share.d.ts +11 -21
- package/dist/sandbox/share.js +12 -41
- package/dist/sandbox/tenant-config.d.ts +12 -14
- package/dist/sandbox/tenant-config.js +12 -17
- package/dist/sandbox/types.d.ts +6 -0
- package/dist/store/postgres/control.js +8 -1
- package/dist/store/postgres/drizzle/0018_wake_outbox_retries.sql +3 -0
- package/dist/store/postgres/drizzle/0019_sandbox_signal_outbox.sql +18 -0
- package/dist/store/postgres/drizzle/0020_environments.sql +63 -0
- package/dist/store/postgres/drizzle/0021_disk_versions.sql +7 -0
- package/dist/store/postgres/drizzle/0022_model_usage_timing.sql +5 -0
- package/dist/store/postgres/drizzle/0023_artifact_pages.sql +1 -0
- package/dist/store/postgres/drizzle/meta/_journal.json +42 -0
- package/dist/store/postgres/reads.js +117 -17
- package/dist/store/postgres/record-writer.d.ts +4 -4
- package/dist/store/postgres/record-writer.js +9 -9
- package/dist/store/postgres/record.d.ts +7 -0
- package/dist/store/postgres/record.js +23 -2
- package/dist/store/postgres/schema.d.ts +1213 -779
- package/dist/store/postgres/schema.js +136 -76
- package/dist/store/postgres/store.js +283 -117
- package/dist/store/types.d.ts +206 -88
- package/dist/streams/relay/core.js +1 -13
- package/dist/tenant/advance.d.ts +7 -6
- package/dist/tenant/advance.js +121 -49
- package/dist/tenant/artifact-tool.js +3 -4
- package/dist/tenant/commands.d.ts +15 -2
- package/dist/tenant/commands.js +94 -14
- package/dist/tenant/context.d.ts +67 -33
- package/dist/tenant/context.js +4 -15
- package/dist/tenant/control.d.ts +8 -1
- package/dist/tenant/control.js +2 -0
- package/dist/tenant/effects.d.ts +1 -1
- package/dist/tenant/effects.js +37 -20
- package/dist/tenant/environments.d.ts +167 -0
- package/dist/tenant/environments.js +823 -0
- package/dist/tenant/harness-tokens.d.ts +21 -0
- package/dist/tenant/harness-tokens.js +61 -0
- package/dist/tenant/host-token.d.ts +1 -1
- package/dist/tenant/host-token.js +2 -4
- package/dist/tenant/identity-file.d.ts +4 -4
- package/dist/tenant/identity-file.js +17 -8
- package/dist/tenant/issuers.js +3 -3
- package/dist/tenant/principals.js +1 -1
- package/dist/tenant/reset.js +3 -3
- package/dist/tenant/runtime.d.ts +6 -1
- package/dist/tenant/runtime.js +30 -4
- package/dist/tenant/scheduler.d.ts +7 -0
- package/dist/tenant/scheduler.js +38 -7
- package/dist/tenant/session-streams.d.ts +0 -1
- package/dist/tenant/session-streams.js +1 -13
- package/dist/tenant/session.d.ts +3 -3
- package/dist/tenant/session.js +0 -14
- package/dist/tenant/sessions.d.ts +13 -13
- package/dist/tenant/sessions.js +61 -138
- package/dist/tenant/signing-keys.d.ts +5 -1
- package/dist/tenant/status.js +3 -3
- package/dist/tenant/streams.js +14 -29
- package/dist/tenant/sweep.d.ts +39 -12
- package/dist/tenant/sweep.js +168 -63
- package/dist/tenant/transcript.d.ts +210 -20
- package/dist/tenant/transcript.js +62 -11
- package/dist/tenant/turn-timing.d.ts +43 -0
- package/dist/tenant/turn-timing.js +39 -0
- package/dist/tenant/types.d.ts +2 -0
- package/dist/traces/ids.d.ts +42 -0
- package/dist/traces/ids.js +85 -0
- package/dist/traces/key.d.ts +6 -0
- package/dist/traces/key.js +37 -0
- package/dist/traces/map.d.ts +113 -0
- package/dist/traces/map.js +317 -0
- package/dist/traces/options.d.ts +7 -0
- package/dist/traces/options.js +1 -0
- package/dist/traces/otlp.d.ts +42 -0
- package/dist/traces/otlp.js +84 -0
- package/dist/traces/projector.d.ts +58 -0
- package/dist/traces/projector.js +200 -0
- package/dist/traces/read.d.ts +23 -0
- package/dist/traces/read.js +16 -0
- package/dist/vault/coverage.d.ts +26 -0
- package/dist/vault/coverage.js +64 -0
- package/dist/vault/error.d.ts +11 -1
- package/dist/vault/error.js +5 -1
- package/dist/vault/service.d.ts +47 -48
- package/dist/vault/service.js +321 -382
- package/dist/vault/sources.d.ts +5 -16
- package/dist/vault/sources.js +6 -8
- package/dist/version.d.ts +1 -1
- package/dist/version.js +2 -2
- package/package.json +14 -13
- package/dist/api/http/routes/sandboxes.d.ts +0 -9
- package/dist/api/http/routes/sandboxes.js +0 -153
- package/dist/api/http/routes/vaults.d.ts +0 -10
- package/dist/api/http/routes/vaults.js +0 -139
- package/dist/record/sandbox.d.ts +0 -25
- package/dist/record/sandbox.js +0 -43
- package/dist/tenant/sandboxes.d.ts +0 -122
- package/dist/tenant/sandboxes.js +0 -562
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Sandboxes as a resource (blueprint D39, F7.1; Host feature `sandboxes`): `PUT`, `GET` and
|
|
3
|
-
* `DELETE /v1/sandboxes/{id}`, the list by label, sessions attaching with `sandbox: { id }`, and
|
|
4
|
-
* the checks every turn start makes on the sandbox its session is attached to.
|
|
5
|
-
*
|
|
6
|
-
* - **No scope.** The Runtime decides nothing about who shares a sandbox. It stores the
|
|
7
|
-
* sandbox's id, kind, spec and labels, and the session body names the sandbox it is attached
|
|
8
|
-
* to (`Session.sandboxId`); deleting a session (a sessions reset) only detaches it.
|
|
9
|
-
* - **Access.** An application key reaches every sandbox, and so does an application key acting
|
|
10
|
-
* for a subject (`Nylorun-Subject`), which needs `sandboxes:write` to change one. A token
|
|
11
|
-
* caller (a trusted issuer's token) reaches only the ids its grants match, and changes them
|
|
12
|
-
* only with `sandboxes:write`; any other id is the 404 of a missing one.
|
|
13
|
-
* - **Serial turns.** One turn at a time per sandbox: a session whose sandbox another attached
|
|
14
|
-
* session's turn holds is refused (`409 sandbox_busy`), as the session sandbox route is
|
|
15
|
-
* refused while its session's turn runs. Commands within the workspace keep queueing in the
|
|
16
|
-
* Sandbox Manager.
|
|
17
|
-
* - **Kinds.** `virtual`: its workspace is the virtual backend's, keyed by the sandbox id
|
|
18
|
-
* (`SandboxManager.sandboxKeyOf`) and created on the first tool call. `pod` (F7.2, Host feature
|
|
19
|
-
* `sandbox-pods`): an agent-sandbox pod on the Tenant's cluster, created at once, whose engine
|
|
20
|
-
* runs the turns of the sessions attached to it. Its lifecycle (`sandbox/pods/lifecycle.ts`)
|
|
21
|
-
* runs in the `Sandbox` object: this module records what is wanted (`desired`, `rev`) and asks
|
|
22
|
-
* for a reconcile after the commit (`ctx.sandboxSignal`). Without sandbox pods kind `pod` is
|
|
23
|
-
* `409 sandbox_unavailable`. `POST .../stop` suspends a pod (the volume is kept; the next turn
|
|
24
|
-
* starts it), `POST .../reset` gives it a new pod on a new volume. An expired pod refuses
|
|
25
|
-
* turns (`sandbox_expired`) until a `PUT` sets a longer `lifecycle.ttl`; a lost one
|
|
26
|
-
* (`sandbox_lost`) until a reset. Deleting a pod sandbox keeps its row (`desired: deleted`,
|
|
27
|
-
* invisible here) until its Sandbox is gone.
|
|
28
|
-
* - **Lifecycle events** go to the sandbox's own stream in the record (`Tx.sandboxEvent`,
|
|
29
|
-
* `record/sandbox.ts`); the session's log records `sandbox.attached` too.
|
|
30
|
-
*/
|
|
31
|
-
import { type PutSandboxRequest, type SandboxView } from "@nylorun/core/contracts";
|
|
32
|
-
import type { SandboxResource, Tx } from "../store/types.js";
|
|
33
|
-
import type { SandboxRouteDeps } from "../core/sandbox-routes.js";
|
|
34
|
-
import { type AuthScope, type Session, type TenantContext } from "./context.js";
|
|
35
|
-
/** The sandbox grants that limit `scope`, or undefined when it reaches every sandbox. */
|
|
36
|
-
export declare function sandboxGrantsOf(scope: AuthScope): readonly string[] | undefined;
|
|
37
|
-
/** A sandbox resource, unless it is gone or being deleted. */
|
|
38
|
-
export declare function liveSandbox(t: Tx, id: string, options?: {
|
|
39
|
-
lock?: boolean;
|
|
40
|
-
}): Promise<SandboxResource | undefined>;
|
|
41
|
-
/**
|
|
42
|
-
* `PUT /v1/sandboxes/{id}`: creates the sandbox (within the Tenant's limit on their number), or
|
|
43
|
-
* finds the one with this id, so "get or create" is one call. The spec is fixed once it exists;
|
|
44
|
-
* labels, when sent, replace its labels. On an existing pod sandbox it also starts a stopped or
|
|
45
|
-
* failed pod again, and a new `lifecycle.ttl` sets a new expiry (reviving an expired one).
|
|
46
|
-
*/
|
|
47
|
-
export declare function putSandbox(ctx: TenantContext, id: string, body: PutSandboxRequest, scope: AuthScope): Promise<SandboxView>;
|
|
48
|
-
/** `GET /v1/sandboxes/{id}`. */
|
|
49
|
-
export declare function getSandbox(ctx: TenantContext, id: string, scope: AuthScope): Promise<SandboxView>;
|
|
50
|
-
/** `GET /v1/sandboxes?label=k=v`: every sandbox with all the labels, that the caller reaches. */
|
|
51
|
-
export declare function listSandboxes(ctx: TenantContext, labels: Record<string, string>, scope: AuthScope): Promise<{
|
|
52
|
-
sandboxes: SandboxView[];
|
|
53
|
-
}>;
|
|
54
|
-
/**
|
|
55
|
-
* `DELETE /v1/sandboxes/{id}`: deletes the sandbox and its workspace. Refused while a session
|
|
56
|
-
* attached to it has an active turn. Sessions stay attached by id: their next turn is refused
|
|
57
|
-
* (`sandbox_unavailable`) unless a sandbox with this id exists again. A pod sandbox's row stays
|
|
58
|
-
* (`desired: deleted`) until its Sandbox is gone.
|
|
59
|
-
*/
|
|
60
|
-
export declare function deleteSandbox(ctx: TenantContext, id: string, scope: AuthScope): Promise<{
|
|
61
|
-
id: string;
|
|
62
|
-
deleted: boolean;
|
|
63
|
-
}>;
|
|
64
|
-
/**
|
|
65
|
-
* `POST /v1/sandboxes/{id}/stop`: suspends a pod sandbox. Its volume is kept, and the next turn
|
|
66
|
-
* of a session attached to it (or a `PUT`) starts it again. Refused during a turn.
|
|
67
|
-
*/
|
|
68
|
-
export declare function stopSandbox(ctx: TenantContext, id: string, scope: AuthScope): Promise<SandboxView>;
|
|
69
|
-
/**
|
|
70
|
-
* `POST /v1/sandboxes/{id}/reset`: a new pod on a new, empty volume (the next volume
|
|
71
|
-
* generation), with a new join token; the old Sandbox and volume are deleted. Leaves `lost` and
|
|
72
|
-
* `failed`; an expired sandbox stays expired. Refused during a turn, and while an earlier
|
|
73
|
-
* reset's Sandbox is still being deleted.
|
|
74
|
-
*/
|
|
75
|
-
export declare function resetSandbox(ctx: TenantContext, id: string, scope: AuthScope): Promise<SandboxView>;
|
|
76
|
-
/** `GET /v1/sandboxes/{id}/events`: the sandbox's lifecycle stream. */
|
|
77
|
-
export declare function sandboxEventsOf(ctx: TenantContext, id: string, scope: AuthScope, fromSeq: number | undefined): Promise<{
|
|
78
|
-
events: {
|
|
79
|
-
schema: "nylorun.sandbox-event/1";
|
|
80
|
-
eventId: string;
|
|
81
|
-
tenantId: string;
|
|
82
|
-
sandboxId: string;
|
|
83
|
-
seq: number;
|
|
84
|
-
time: string;
|
|
85
|
-
type: "sandbox.attached" | "sandbox.created" | "sandbox.deleted" | "sandbox.detached" | "sandbox.expired" | "sandbox.failed" | "sandbox.lost" | "sandbox.relaunched" | "sandbox.reset" | "sandbox.running" | "sandbox.suspended";
|
|
86
|
-
payload: Record<string, unknown>;
|
|
87
|
-
}[];
|
|
88
|
-
}>;
|
|
89
|
-
/**
|
|
90
|
-
* Attaches a new session to sandbox `id` (`PutSessionRequest.sandbox = { id }`): the sandbox
|
|
91
|
-
* must exist and be reachable with `grants`. Returns its spec, which the session pins. Runs in
|
|
92
|
-
* the session's transaction, after its session row lock.
|
|
93
|
-
*/
|
|
94
|
-
export declare function attachSandbox(t: Tx, id: string, grants: readonly string[] | undefined): Promise<SandboxResource>;
|
|
95
|
-
/** Records the attachment on the session's log and on the sandbox's stream. */
|
|
96
|
-
export declare function recordAttachment(t: Tx, sessionId: string, sandboxId: string): Promise<void>;
|
|
97
|
-
/**
|
|
98
|
-
* Checks a turn start on a session attached to a sandbox, in the command's transaction after
|
|
99
|
-
* the session row lock: the sandbox still exists, a token caller's grants reach it, and
|
|
100
|
-
* no other session attached to it has a turn running. Holds the sandbox row's lock until the
|
|
101
|
-
* transaction ends, so two turn starts on one sandbox are decided one after the other.
|
|
102
|
-
*
|
|
103
|
-
* A pod sandbox must also be usable: not lost (`sandbox_lost`) or expired (`sandbox_expired`),
|
|
104
|
-
* on a Runtime with sandbox pods (`sandbox_unavailable`). A stopped or failed pod is asked to
|
|
105
|
-
* run again, after the commit.
|
|
106
|
-
*/
|
|
107
|
-
export declare function checkSandboxTurn(t: Tx, session: Session, scope: AuthScope, ctx?: TenantContext): Promise<void>;
|
|
108
|
-
/** A sessions reset detaches every session from its sandbox: each sandbox's stream says so. */
|
|
109
|
-
export declare function detachAllSessions(t: Tx): Promise<void>;
|
|
110
|
-
/**
|
|
111
|
-
* Marks the end of a turn's segment on pod sandbox `id`: idle counts from now, and the idle
|
|
112
|
-
* timer is armed (D34). Best effort.
|
|
113
|
-
*/
|
|
114
|
-
export declare function touchPodSandbox(ctx: TenantContext, id: string): Promise<void>;
|
|
115
|
-
/**
|
|
116
|
-
* Re-arms the idle timer of every running pod sandbox after the Tenant's settings change, so a
|
|
117
|
-
* shorter `limits.idle` applies to pods already idle (D36: the settings are read whenever a
|
|
118
|
-
* timer is set). Best effort.
|
|
119
|
-
*/
|
|
120
|
-
export declare function rearmPodTimers(ctx: TenantContext): Promise<void>;
|
|
121
|
-
/** Session lookups for the sandbox route handlers (`core/sandbox-routes.ts`). */
|
|
122
|
-
export declare function sandboxRouteDeps(ctx: TenantContext): SandboxRouteDeps;
|