@usine/executor 0.6.1-next.596.gcfd02df.1.1 → 0.6.1-next.604.g34f71e5.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/dist/executor.d.ts +34 -6
- package/dist/executor.d.ts.map +1 -1
- package/dist/executor.js +5 -1
- package/dist/executor.js.map +1 -1
- package/dist/remote/machine.d.ts +2 -2
- package/dist/remote/machine.d.ts.map +1 -1
- package/dist/remote/remote.d.ts +1 -1
- package/dist/ssh/container.d.ts +10 -5
- package/dist/ssh/container.d.ts.map +1 -1
- package/dist/ssh/container.js +49 -31
- package/dist/ssh/container.js.map +1 -1
- package/dist/ssh/gateway/admin.d.ts +17 -5
- package/dist/ssh/gateway/admin.d.ts.map +1 -1
- package/dist/ssh/gateway/admin.js +33 -16
- package/dist/ssh/gateway/admin.js.map +1 -1
- package/dist/ssh/gateway/attachments.d.ts.map +1 -1
- package/dist/ssh/gateway/attachments.js +4 -0
- package/dist/ssh/gateway/attachments.js.map +1 -1
- package/dist/ssh/gateway/environment.d.ts +14 -2
- package/dist/ssh/gateway/environment.d.ts.map +1 -1
- package/dist/ssh/gateway/environment.js +17 -3
- package/dist/ssh/gateway/environment.js.map +1 -1
- package/dist/ssh/gateway/model-route.d.ts.map +1 -1
- package/dist/ssh/gateway/model-route.js +28 -5
- package/dist/ssh/gateway/model-route.js.map +1 -1
- package/dist/ssh/gateway/preflight.d.ts +6 -4
- package/dist/ssh/gateway/preflight.d.ts.map +1 -1
- package/dist/ssh/gateway/preflight.js +61 -6
- package/dist/ssh/gateway/preflight.js.map +1 -1
- package/dist/ssh/image.d.ts +6 -0
- package/dist/ssh/image.d.ts.map +1 -1
- package/dist/ssh/image.js +64 -33
- package/dist/ssh/image.js.map +1 -1
- package/dist/ssh/model.d.ts +6 -0
- package/dist/ssh/model.d.ts.map +1 -1
- package/dist/ssh/model.js.map +1 -1
- package/dist/ssh/preflight.d.ts +11 -5
- package/dist/ssh/preflight.d.ts.map +1 -1
- package/dist/ssh/preflight.js +32 -17
- package/dist/ssh/preflight.js.map +1 -1
- package/dist/ssh/provisioner/checks.d.ts.map +1 -1
- package/dist/ssh/provisioner/checks.js +1 -0
- package/dist/ssh/provisioner/checks.js.map +1 -1
- package/dist/ssh/provisioner/machines.d.ts +4 -1
- package/dist/ssh/provisioner/machines.d.ts.map +1 -1
- package/dist/ssh/provisioner/machines.js +5 -2
- package/dist/ssh/provisioner/machines.js.map +1 -1
- package/dist/ssh/workers.d.ts.map +1 -1
- package/dist/ssh/workers.js +2 -0
- package/dist/ssh/workers.js.map +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ Worker preflight checks each coding-agent brain with the shared `admitBrain` pol
|
|
|
12
12
|
|
|
13
13
|
## Orchestrator model access
|
|
14
14
|
|
|
15
|
-
`@usine/executor/gateway` exports `gatewayModelRouteFor(worker, repository, gateway)` for model runtimes on the orchestrator, including the coordinator and supervisor. It opens SSH forwards to the admin API and model proxy, checks the proxy's caller-token requirement, and registers an anonymous attachment. `credential(protocol)` reports the gateway's credential kind; `request(protocol, body, headers, signal)` streams a model response with the caller token, after it removes from `headers` every header that the gateway reads a caller credential from. Provider credentials remain on the gateway. The attachment renews every two minutes, restores missing gateway state under the same ID, and detaches on scope closure.
|
|
15
|
+
`@usine/executor/gateway` exports `gatewayModelRouteFor(worker, repository, gateway)` for model runtimes on the orchestrator, including the coordinator and supervisor. It opens SSH forwards to the admin API and model proxy, checks the proxy's caller-token requirement, and registers an anonymous attachment. It reads the gateway's provider report (`GET /v1/providers`) when it opens, on each `credential` call, and after each renewal. While the latest report names `anthropic` and `openai` instead of protocol IDs, or the gateway has no report, the route sends requests to the provider prefixes (`/anthropic`, `/openai`). It logs a warning when it switches to the provider prefixes and an info line when it switches back to the protocol prefixes. `credential(protocol)` reports the gateway's credential kind; `request(protocol, body, headers, signal)` streams a model response with the caller token, after it removes from `headers` every header that the gateway reads a caller credential from. Provider credentials remain on the gateway. The attachment renews every two minutes, restores missing gateway state under the same ID, and detaches on scope closure.
|
|
16
16
|
|
|
17
17
|
## Supervisor sandbox
|
|
18
18
|
|
|
@@ -83,9 +83,9 @@ This replaces the 0.x `Executor.launch(prepared, io)` and `Executor.cleanup(prep
|
|
|
83
83
|
|
|
84
84
|
## Worker preflight
|
|
85
85
|
|
|
86
|
-
Call `executor.preflight(worker, brains, maxConcurrentAttempts)` with the roster's `BrainSpec` values and the worker's `max_concurrent_attempts` before scheduling. It returns a `PreflightReport`, whose `degraded` gives the reason when the worker runs attempts without a capability that keeps them apart, such as an SSH worker without Docker, whose `containerLimits` gives the CPU, memory, and process limits of each attempt container on an SSH worker with Docker,
|
|
86
|
+
Call `executor.preflight(worker, brains, maxConcurrentAttempts, image)` with the roster's `BrainSpec` values and the worker's `max_concurrent_attempts` before scheduling. `image` is a `PreflightImage`: `pull`, the default, pulls an SSH worker's attempt image, and `defer` pulls nothing and reports an image that the machine lacks as `missingImage`. It returns a `PreflightReport`, whose `degraded` gives the reason when the worker runs attempts without a capability that keeps them apart, such as an SSH worker without Docker, whose `containerLimits` gives the CPU, memory, and process limits of each attempt container on an SSH worker with Docker, whose `findings` lists what the preflight found missing that attempts run without, and whose `gatewayUpgrade` says why the worker's gateway is older than the orchestrator; `fullPreflight` is the report without any of them.
|
|
87
87
|
|
|
88
|
-
SSH image preparation logs local image presence and inspection time before starting a container. Preflight pulls the image and logs the pull duration and `downloaded`, based on the image IDs before and after the pull. After each successful pull, it removes the other images of the image's repository and logs what it removed. It keeps the current image, the most recently built other image, and every image that a container uses. After a rollback, the retained image can be newer than the current image. A failed removal is logged and doesn't fail the pull.
|
|
88
|
+
SSH image preparation logs local image presence and inspection time before starting a container. Preflight pulls the image and logs the pull duration and `downloaded`, based on the image IDs before and after the pull. A `defer` preflight pulls nothing: it checks the image that the machine has, or with `<runtime> manifest inspect` that the registry has it, and fails with a `container` `WorkerCapabilityError` when neither has it. Without the image on the machine, it still checks the machine's runtime, memory, disk space, and kernel log, but skips the image user probe, the shared caches, the Podman limit check, and the harness probes. Its report gives the image as `missingImage`, the harnesses as `deferred`, and the container limits and findings; a `pull` preflight runs the skipped checks. An attempt that starts before then pulls the image in its cache preparation and probes its harness in its own container. After each successful pull, it removes the other images of the image's repository and logs what it removed. It keeps the current image, the most recently built other image, and every image that a container uses. After a rollback, the retained image can be newer than the current image. A failed removal is logged and doesn't fail the pull.
|
|
89
89
|
|
|
90
90
|
A failed pull logs its attempt number, exit code, duration, and up to 1,000 characters of stderr. If the image is absent, preparation retries on the same machine after 5 seconds and then 15 seconds, for at most three pulls. Preflight fails with the last pull error if the image remains absent. A failed pull can use an existing local image.
|
|
91
91
|
|
|
@@ -230,13 +230,13 @@ The gateway command persists attachments, allowing requests immediately after a
|
|
|
230
230
|
|
|
231
231
|
The cached clone fetches `http://git.<domain>/<repository>.git`. Children, harvesting, and the executor's git commands export settings that point git, gh, and package managers at the gateway: git sends the caller token only to `git.<domain>` and rewrites `https://github.com/` there, gh uses `git.<domain>` through the worker's socket with its config in `<root>/workers/<name>/gh`, and `HTTPS_PROXY` is the forward proxy.
|
|
232
232
|
|
|
233
|
-
If the gateway has the Anthropic credential, Claude Code calls `llm.<domain>/anthropic-messages`, and preflight checks only its binary. If it has the OpenAI credential, prepare writes Codex's `config.toml` to the attempt's Codex home, `<root>/workers/<name>/codex/<attempt>`, children get that directory as `CODEX_HOME`, and Codex sends the Responses API to `llm.<domain>/openai-responses/v1` with the caller token from `USINE_GATEWAY_TOKEN`; preflight checks only its binary and version. The file has a `model_provider` and no token. Codex also writes its sessions there, so an attempt's container mounts the directory read-write, and cleanup removes it after the container. An orderly orchestrator stop or a crash keeps the directory while the checkout remains, so reattached children can resume their saved threads. `Executor.sweep` removes each Codex home on a worker with its own machine whose attempt has no checkout there and that no attempt in this process holds; an attempt holds its Codex home from before it's written until its credential scope closes. A checkout kept for a reattachment or with unpreserved work keeps its Codex home, and a later sweep removes it after the checkout is gone. The sweep visits only the workers the executor has. For a worker that `usine.yaml` no longer declares, `sshWorkerRecordsFor(directory).discard(worker, attempts)` removes the Codex homes of the attempts whose leftovers the operator discarded, over SSH with the worker's port and key from its record in `directory`, and never fails. Without a record, it removes nothing. Otherwise each harness uses the operator's login on the machine through the forward proxy: preflight checks the login as without a gateway, then that each of the login's hosts answers HTTP through the proxy (`api.anthropic.com` and `platform.claude.com`, or `chatgpt.com` and `auth.openai.com`). A refused host is a `gateway` capability error naming the host to add to the egress allowlist. The caller token is in no command line: each SSH command sends `GIT_CONFIG_VALUE_0`, `GH_ENTERPRISE_TOKEN`, `GH_TOKEN`, `ANTHROPIC_AUTH_TOKEN`, and `USINE_GATEWAY_TOKEN` as a base64 environment block on its stdin. The remote shell consumes that block before command or child-protocol input, with no credential file, so the machine needs a POSIX `sh` and `base64` but no sshd `AcceptEnv` entry. Provisioner API keys, reused machines, and salvage after an orchestrator restart use the same block. With a container runtime, only the cached clone's fetch sends them; the attempt's container gets them when it starts.
|
|
233
|
+
If the gateway has the Anthropic credential, Claude Code calls `llm.<domain>/anthropic-messages`, and preflight checks only its binary. Behind a gateway from before protocol slots, the paths of both harnesses start with the provider name instead: `/anthropic` and `/openai/v1`. If it has the OpenAI credential, prepare writes Codex's `config.toml` to the attempt's Codex home, `<root>/workers/<name>/codex/<attempt>`, children get that directory as `CODEX_HOME`, and Codex sends the Responses API to `llm.<domain>/openai-responses/v1` with the caller token from `USINE_GATEWAY_TOKEN`; preflight checks only its binary and version. The file has a `model_provider` and no token. Codex also writes its sessions there, so an attempt's container mounts the directory read-write, and cleanup removes it after the container. An orderly orchestrator stop or a crash keeps the directory while the checkout remains, so reattached children can resume their saved threads. `Executor.sweep` removes each Codex home on a worker with its own machine whose attempt has no checkout there and that no attempt in this process holds; an attempt holds its Codex home from before it's written until its credential scope closes. A checkout kept for a reattachment or with unpreserved work keeps its Codex home, and a later sweep removes it after the checkout is gone. The sweep visits only the workers the executor has. For a worker that `usine.yaml` no longer declares, `sshWorkerRecordsFor(directory).discard(worker, attempts)` removes the Codex homes of the attempts whose leftovers the operator discarded, over SSH with the worker's port and key from its record in `directory`, and never fails. Without a record, it removes nothing. Otherwise each harness uses the operator's login on the machine through the forward proxy: preflight checks the login as without a gateway, then that each of the login's hosts answers HTTP through the proxy (`api.anthropic.com` and `platform.claude.com`, or `chatgpt.com` and `auth.openai.com`). A refused host is a `gateway` capability error naming the host to add to the egress allowlist. The caller token is in no command line: each SSH command sends `GIT_CONFIG_VALUE_0`, `GH_ENTERPRISE_TOKEN`, `GH_TOKEN`, `ANTHROPIC_AUTH_TOKEN`, and `USINE_GATEWAY_TOKEN` as a base64 environment block on its stdin. The remote shell consumes that block before command or child-protocol input, with no credential file, so the machine needs a POSIX `sh` and `base64` but no sshd `AcceptEnv` entry. Provisioner API keys, reused machines, and salvage after an orchestrator restart use the same block. With a container runtime, only the cached clone's fetch sends them; the attempt's container gets them when it starts.
|
|
234
234
|
|
|
235
235
|
The admin API listens on the gateway's loopback. With the first worker behind a gateway, the executor opens its own forward, `ssh -N -L 127.0.0.1:<port>:127.0.0.1:<adminPort> <destination>`, with the same SSH command and environment as its other clients, on a local port the kernel picks; workers behind that gateway share it. When the client exits, the executor starts another after a pause of one second, doubling up to one minute, and logs each open, exit, and reopen with the gateway's destination. An admin request that finds the forward closed, or gets no answer, reopens it at once and is sent once more. A second failure fails the request, with a message giving since when the forward has been closed, or, if it opens but the admin API doesn't answer, since when the API last answered through it. The forward closes when the last worker behind the gateway is removed, or with the layer.
|
|
236
236
|
|
|
237
237
|
Preflight also checks, without attaching, that the forward opens (giving the `ssh` command to run if it doesn't), that the admin API accepts the admin token, that the machine receives placeholder caller token variables over stdin (a gap names the missing variables), and that the machine reaches `git.<domain>`, which refuses requests without a caller token. A gap is a `gateway` `WorkerCapabilityError`.
|
|
238
238
|
|
|
239
|
-
If the worker's `llmProviders` lists a provider, preflight also reads the gateway's credential kinds (`GET /v1/providers`) and records them with the worker, and logs each provider's mode in `SSH Worker Gateway verified`: `gateway-api-key`, `gateway-subscription`, or `worker-login`. A gateway without a listed provider's credential is a `gateway` capability error, and so is one too old to report its credentials while `llmProviders` lists `openai`. Each child reads its provider's recorded kind as `AttemptRequest.gatewayCredential` when it starts: Anthropic's for Claude Code, OpenAI's for Codex, none for Pi. Its session records the credential, and usage counts a child on the gateway's API key in the API keys pool, and on a subscription in the Claude or ChatGPT plan pool ([ADR 0013](../../docs/adr/0013-cost-accounting-native-meters-guardrails.md)).
|
|
239
|
+
If the worker's `llmProviders` lists a provider, preflight also reads the gateway's credential kinds (`GET /v1/providers`) and records them with the worker, and logs each provider's mode in `SSH Worker Gateway verified`: `gateway-api-key`, `gateway-subscription`, or `worker-login`. A gateway without a listed provider's credential is a `gateway` capability error, and so is one too old to report its credentials while `llmProviders` lists a provider. The report's provider names also give the path prefixes that the gateway serves on `llm.<domain>`: a gateway from before protocol slots reports `anthropic` and `openai`, and attempts that start after that preflight use `/anthropic` and `/openai/v1`. Preflight logs a warning when it first finds such a gateway for a worker, and an info line when the gateway serves protocol prefixes again. It also checks that the gateway serves the provider-credentials admin API (`GET /v1/provider-credentials`), which answers 404 on older gateways. Any other error status still means the gateway serves the route; preflight logs a warning with the reason. A gateway that lacks either is reported in `PreflightReport.gatewayUpgrade`, and in `MachineCheck.gatewayUpgrade` for a provisioned worker's machine check, without failing the preflight. Each child reads its provider's recorded kind as `AttemptRequest.gatewayCredential` when it starts: Anthropic's for Claude Code, OpenAI's for Codex, none for Pi. Its session records the credential, and usage counts a child on the gateway's API key in the API keys pool, and on a subscription in the Claude or ChatGPT plan pool ([ADR 0013](../../docs/adr/0013-cost-accounting-native-meters-guardrails.md)).
|
|
240
240
|
|
|
241
241
|
A gateway released before that endpoint answers 404: the worker's first such preflight logs `SSH Worker's Gateway does not report the kind of its Anthropic credential` at warning level, later ones at debug, and its Claude Code children count in the Claude plan pool. Each preflight asks again, so the first one after an upgrade records the kind. A gateway reload that changes the credential reaches the record at the worker's next preflight: at orchestrator start, or when a configuration reload adds the worker, changes its slot count, or adds a brain. A running attempt's next Claude Code child records the new kind; earlier children keep theirs. Local and exe.dev workers have no gateway, so their children record none.
|
|
242
242
|
|
package/dist/executor.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { LoopPermissions } from "@usine/core/loop";
|
|
|
8
8
|
import { SalvagePushed } from "@usine/core/attempt/salvage";
|
|
9
9
|
import { RepositoryName } from "@usine/core/repository";
|
|
10
10
|
import { type Run } from "@usine/core/run";
|
|
11
|
-
import { BotAccount, BotLogin, ContainerLimits, WorkerName, WorkerKind } from "@usine/core/worker";
|
|
11
|
+
import { BotAccount, BotLogin, ContainerImage, ContainerLimits, WorkerName, WorkerKind } from "@usine/core/worker";
|
|
12
12
|
import { StepCompletion } from "@usine/core/step/result";
|
|
13
13
|
import { type Brand, Context, Effect, Option, Redacted, type Result, Schema, Scope } from "effect";
|
|
14
14
|
/** Returns the GitHub writer for a worker kind; provisioned workers use the SSH kind. */
|
|
@@ -96,6 +96,16 @@ export declare class MachineUnavailableError extends MachineUnavailableError_bas
|
|
|
96
96
|
}
|
|
97
97
|
export declare const ExecutorError: Schema.Union<readonly [typeof ExecutorOperationError, typeof CredentialUnavailableError, typeof WorkerCapabilityError]>;
|
|
98
98
|
export type ExecutorError = typeof ExecutorError.Type;
|
|
99
|
+
/**
|
|
100
|
+
* When a preflight downloads the Attempt image of a Worker that runs Attempts in containers.
|
|
101
|
+
*
|
|
102
|
+
* - `pull`: the preflight pulls the image, so the machine gets a tag that moved in the registry.
|
|
103
|
+
* - `defer`: the preflight checks the image that the machine has. A machine without the image
|
|
104
|
+
* checks with a manifest request that the registry has it, skips the checks that run the image,
|
|
105
|
+
* and the report names the image in `missingImage`. A configuration save uses it, so the save
|
|
106
|
+
* doesn't wait for a download.
|
|
107
|
+
*/
|
|
108
|
+
export type PreflightImage = "pull" | "defer";
|
|
99
109
|
/** The outcome of a preflight that found every capability that Attempts need. */
|
|
100
110
|
export interface PreflightReport {
|
|
101
111
|
/**
|
|
@@ -104,11 +114,20 @@ export interface PreflightReport {
|
|
|
104
114
|
*/
|
|
105
115
|
readonly degraded: Option.Option<string>;
|
|
106
116
|
/**
|
|
107
|
-
* When the brains are checked instead, if the preflight had no machine
|
|
108
|
-
*
|
|
109
|
-
* preflight
|
|
117
|
+
* When the brains are checked instead, if the preflight had no machine or Attempt image to
|
|
118
|
+
* check them on: a provisioned Worker checks them on its first machine each day, and a `pull`
|
|
119
|
+
* preflight checks them for a Worker with a `missingImage`. `None` if the preflight checked
|
|
120
|
+
* them.
|
|
110
121
|
*/
|
|
111
122
|
readonly deferred: Option.Option<string>;
|
|
123
|
+
/**
|
|
124
|
+
* The Attempt image that a `defer` preflight found missing on the machine. The preflight checked
|
|
125
|
+
* the machine, but not the image's user, the shared caches, the container limits that Podman
|
|
126
|
+
* enforces, or the brains: a `pull` preflight downloads the image and checks them before the
|
|
127
|
+
* Worker takes Attempts. `None` if the preflight checked the image, or the Worker runs no
|
|
128
|
+
* containers.
|
|
129
|
+
*/
|
|
130
|
+
readonly missingImage: Option.Option<ContainerImage>;
|
|
112
131
|
/**
|
|
113
132
|
* The limits of each Attempt container, the ones `usine.yaml` sets and the ones derived from
|
|
114
133
|
* the machine. `None` if the Worker runs no containers or the preflight checked no machine.
|
|
@@ -119,6 +138,12 @@ export interface PreflightReport {
|
|
|
119
138
|
* log that the SSH user can't read, which leaves out-of-memory kills without process names.
|
|
120
139
|
*/
|
|
121
140
|
readonly findings: ReadonlyArray<string>;
|
|
141
|
+
/**
|
|
142
|
+
* Why the Worker's Gateway needs an upgrade to match the orchestrator, for operators, such as a
|
|
143
|
+
* Gateway from before protocol path prefixes, whose older prefixes Attempts use instead. `None`
|
|
144
|
+
* if the Worker has no Gateway or its Gateway matches.
|
|
145
|
+
*/
|
|
146
|
+
readonly gatewayUpgrade: Option.Option<string>;
|
|
122
147
|
}
|
|
123
148
|
/** The report of a Worker that runs Attempts as designed, without containers. */
|
|
124
149
|
export declare const fullPreflight: PreflightReport;
|
|
@@ -268,9 +293,10 @@ declare const Executor_base: Context.ServiceClass<Executor, "@usine/executor/exe
|
|
|
268
293
|
readonly outcome: (attemptId: AttemptId) => Effect.Effect<Option.Option<Result.Result<StepCompletion, AttemptFailure>>, AttemptFailure>;
|
|
269
294
|
/**
|
|
270
295
|
* Verifies Git, enough memory for `maxConcurrentAttempts` concurrent Attempts, and each brain
|
|
271
|
-
* in `brains`. Never installs tools or logs in
|
|
296
|
+
* in `brains`. Never installs tools or logs in. An SSH Worker pulls its Attempt image when
|
|
297
|
+
* `image` is `pull`, the default.
|
|
272
298
|
*/
|
|
273
|
-
readonly preflight: (worker: WorkerName, brains: ReadonlyArray<BrainSpec>, maxConcurrentAttempts: number) => Effect.Effect<PreflightReport, ExecutorError>;
|
|
299
|
+
readonly preflight: (worker: WorkerName, brains: ReadonlyArray<BrainSpec>, maxConcurrentAttempts: number, image?: PreflightImage) => Effect.Effect<PreflightReport, ExecutorError>;
|
|
274
300
|
/**
|
|
275
301
|
* Verifies the Agent's brain, then acquires the checkout and credential in the caller's scope.
|
|
276
302
|
* Clone, fetch, and lock waits are interruptible; on failure, releases everything acquired so
|
|
@@ -313,6 +339,8 @@ declare const MachineCheck_base: Schema.Class<MachineCheck, Schema.Struct<{
|
|
|
313
339
|
readonly containerLimits: Schema.Option<typeof ContainerLimits>;
|
|
314
340
|
/** The machine's preflight findings, as in `PreflightReport`. */
|
|
315
341
|
readonly findings: Schema.$Array<Schema.String>;
|
|
342
|
+
/** Why the Worker's Gateway needs an upgrade, as in `PreflightReport`. */
|
|
343
|
+
readonly gatewayUpgrade: Schema.Option<Schema.String>;
|
|
316
344
|
}>, Brand.Brand<"@usine/executor/executor/MachineCheck">>;
|
|
317
345
|
/** The machine preflight of a provisioned Worker's first machine each day. */
|
|
318
346
|
export declare class MachineCheck extends MachineCheck_base {
|
package/dist/executor.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../src/executor.ts"],"names":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AG;AAEjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,YAAY,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC"}
|
package/dist/executor.js
CHANGED
|
@@ -8,7 +8,7 @@ import { LoopName, LoopPermissions, OutcomeLabels } from "@usine/core/loop";
|
|
|
8
8
|
import { SalvagePushed, SalvageRef } from "@usine/core/attempt/salvage";
|
|
9
9
|
import { RepositoryName, RepositoryRevision } from "@usine/core/repository";
|
|
10
10
|
import { RunId } from "@usine/core/run";
|
|
11
|
-
import { BotAccount, BotLogin, ContainerLimits, MachineId, MachineProvider, WorkerName, WorkerKind, } from "@usine/core/worker";
|
|
11
|
+
import { BotAccount, BotLogin, ContainerImage, ContainerLimits, MachineId, MachineProvider, WorkerName, WorkerKind, } from "@usine/core/worker";
|
|
12
12
|
import { StepCompletion } from "@usine/core/step/result";
|
|
13
13
|
import { Context, Effect, Option, Predicate, Redacted, Schema, Scope, } from "effect";
|
|
14
14
|
import { EXE_DEV_BOT_LOGIN } from "./exe-dev/model.js";
|
|
@@ -128,8 +128,10 @@ export const ExecutorError = Schema.Union([
|
|
|
128
128
|
export const fullPreflight = {
|
|
129
129
|
degraded: Option.none(),
|
|
130
130
|
deferred: Option.none(),
|
|
131
|
+
missingImage: Option.none(),
|
|
131
132
|
containerLimits: Option.none(),
|
|
132
133
|
findings: [],
|
|
134
|
+
gatewayUpgrade: Option.none(),
|
|
133
135
|
};
|
|
134
136
|
/** Logs each preflight failure at error level. */
|
|
135
137
|
export const logPreflightFailure = (effect) => Effect.tapError(effect, (error) => Schema.is(WorkerCapabilityError)(error)
|
|
@@ -253,6 +255,8 @@ export class MachineCheck extends Schema.Class("@usine/executor/MachineCheck")({
|
|
|
253
255
|
containerLimits: Schema.Option(ContainerLimits),
|
|
254
256
|
/** The machine's preflight findings, as in `PreflightReport`. */
|
|
255
257
|
findings: Schema.Array(Schema.String),
|
|
258
|
+
/** Why the Worker's Gateway needs an upgrade, as in `PreflightReport`. */
|
|
259
|
+
gatewayUpgrade: Schema.Option(Schema.String),
|
|
256
260
|
}) {
|
|
257
261
|
}
|
|
258
262
|
/** A machine that a provisioned Worker created for an Attempt and holds until `release`. */
|
package/dist/executor.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../src/executor.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,SAAS,EAAmB,MAAM,qBAAqB,CAAC;AAC9E,OAAO,KAAK,cAAc,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,EAAE,KAAK,EAAY,MAAM,iBAAiB,CAAC;AAClD,OAAO,EACL,UAAU,EACV,QAAQ,EACR,eAAe,EACf,SAAS,EACT,eAAe,EACf,UAAU,EACV,UAAU,GACX,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAEL,OAAO,EACP,MAAM,EACN,MAAM,EACN,SAAS,EACT,QAAQ,EAER,MAAM,EACN,KAAK,GACN,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEvD,yFAAyF;AACzF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,IAAgB,EAAE,QAAk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C,MAAM,CAAC,SAAS,CAAC;IAC5B,0FAA0F;IAC1F,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC;IACnC,+FAA+F;IAC/F,KAAK,EAAE,MAAM,CAAC,WAAW;IACzB,6EAA6E;IAC7E,QAAQ,EAAE,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAC/D,MAAM,CAAC,sBAAsB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CACjD;CACF,CAAC;CAAG;AAEL,sFAAsF;AACtF,MAAM,OAAO,aAAc,SAAQ,MAAM,CAAC,KAAK,CAG7C,+BAA+B,CAAC,CAAC;IACjC,MAAM,EAAE,UAAU;IAClB,QAAQ,EAAE,eAAe;IACzB,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,sBAAsB,CAAC,CAAC;IAClE,KAAK,EAAE,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC;CAC1D,CAAC;CAAG;AAEL;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ,OAAO,CAAC,OAAO,EA0ChD,CAAC,yCAAyC,CAAC;CAAG;AAEjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC"}
|
package/dist/remote/machine.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import type { LoopPermissions } from "@usine/core/loop";
|
|
|
7
7
|
import type { RepositoryName } from "@usine/core/repository";
|
|
8
8
|
import type { GatewayCredentialKind, MachineId, WorkerKind, WorkerName } from "@usine/core/worker";
|
|
9
9
|
import type { Effect, Option, Redacted, Scope } from "effect";
|
|
10
|
-
import type { CredentialUnavailableError, ExecutorError, ExecutorOperation, PreflightReport } from "../executor.ts";
|
|
10
|
+
import type { CredentialUnavailableError, ExecutorError, ExecutorOperation, PreflightImage, PreflightReport } from "../executor.ts";
|
|
11
11
|
import type { HarnessProbe } from "../harness-preflight.ts";
|
|
12
12
|
import type { RemoteCommands } from "./commands.ts";
|
|
13
13
|
import type { AttemptIsolation, WritableMount } from "./container.ts";
|
|
@@ -95,7 +95,7 @@ export interface RemoteWorker<M extends RemoteMachine> {
|
|
|
95
95
|
*/
|
|
96
96
|
readonly checkoutHeld?: (attemptId: AttemptId, held: boolean) => Effect.Effect<void>;
|
|
97
97
|
/** See `Executor.preflight`. */
|
|
98
|
-
readonly preflight: (worker: WorkerName, brains: ReadonlyArray<BrainSpec>, maxConcurrentAttempts: number) => Effect.Effect<PreflightReport, ExecutorError>;
|
|
98
|
+
readonly preflight: (worker: WorkerName, brains: ReadonlyArray<BrainSpec>, maxConcurrentAttempts: number, image?: PreflightImage) => Effect.Effect<PreflightReport, ExecutorError>;
|
|
99
99
|
/** Returns the probe of a brain's binary and login through `shell`, on `machine` or in a container on it. */
|
|
100
100
|
readonly harnessProbe: (machine: M, shell: RemoteHost) => HarnessProbe;
|
|
101
101
|
/** Returns how new Attempts on `machine` run, as the Worker's last preflight found. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"machine.d.ts","sourceRoot":"","sources":["../../src/remote/machine.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,cA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,cAAc,EAAE,OAAO,CAAC;IACjC,+EAA+E;IAC/E,QAAQ,CAAC,aAAa,EAAE,CAAC,OAAO,EAAE,CAAC,EAAE,UAAU,EAAE,cAAc,KAAK,MAAM,CAAC;IAC3E,uKAAuK;IACvK,QAAQ,CAAC,iBAAiB,EAAE,CAC1B,OAAO,EAAE,CAAC,EACV,OAAO,EAAE,OAAO,KACb,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC,CAAC;IACzD;;;OAGG;IACH,QAAQ,CAAC,eAAe,EAAE,CAAC,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,OAAO,KAAK,sBAAsB,CAAC;IACnF,8EAA8E;IAC9E,QAAQ,CAAC,QAAQ,EAAE,CACjB,UAAU,EAAE,cAAc,KACvB,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,0BAA0B,CAAC,CAAC;IAC/D,gGAAgG;IAChG,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAClD,qHAAqH;IACrH,QAAQ,CAAC,OAAO,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAC9D,0DAA0D;IAC1D,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACrC,iGAAiG;IACjG,QAAQ,CAAC,cAAc,EAAE,UAAU,CAAC,OAAO,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;CACrE"}
|
package/dist/remote/remote.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export declare const remoteExecutorFor: <M extends RemoteMachine>(worker: Remote
|
|
|
18
18
|
readonly kind: import("@usine/core/worker").WorkerKind;
|
|
19
19
|
readonly isLive: (attemptId: AttemptId) => Effect.Effect<boolean, AttemptFailure>;
|
|
20
20
|
readonly outcome: (attemptId: AttemptId) => Effect.Effect<Option.Option<import("effect/Result").Result<import("@usine/core/step/result").StepCompletion, AttemptFailure>>, AttemptFailure>;
|
|
21
|
-
readonly preflight: (worker: WorkerName, brains: ReadonlyArray<import("@usine/core/agent/brain").BrainSpec>, maxConcurrentAttempts: number) => Effect.Effect<import("../executor.ts").PreflightReport, ExecutorError>;
|
|
21
|
+
readonly preflight: (worker: WorkerName, brains: ReadonlyArray<import("@usine/core/agent/brain").BrainSpec>, maxConcurrentAttempts: number, image?: import("../executor.ts").PreflightImage) => Effect.Effect<import("../executor.ts").PreflightReport, ExecutorError>;
|
|
22
22
|
readonly prepare: (request: CheckoutRequest) => Effect.Effect<import("../executor.ts").PreparedAttempt, ExecutorError, Scope.Scope>;
|
|
23
23
|
readonly cancel: (attemptId: AttemptId, reason: import("@usine/core/attempt").StopReason) => Effect.Effect<void, ExecutorError>;
|
|
24
24
|
readonly intervene: (attemptId: AttemptId, intervention: AttemptChannel.Intervention) => Effect.Effect<void, AttemptFailure>;
|
package/dist/ssh/container.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Effect } from "effect";
|
|
2
|
-
import { WorkerCapabilityError } from "../executor.ts";
|
|
2
|
+
import { type PreflightImage, WorkerCapabilityError } from "../executor.ts";
|
|
3
3
|
import type { RemoteCommands } from "../remote/commands.ts";
|
|
4
4
|
import { type AttemptIsolation, type ContainerSettings } from "../remote/container.ts";
|
|
5
5
|
import { type ResolvedLimits } from "./limits.ts";
|
|
@@ -15,13 +15,18 @@ export declare const ATTEMPT_IMAGE: string & import("effect/Brand").Brand<"Conta
|
|
|
15
15
|
* the removal of containers an earlier process left.
|
|
16
16
|
*/
|
|
17
17
|
export declare const sshContainersFor: (commands: RemoteCommands, instance: string, instanceId: string & import("effect/Brand").Brand<"InstanceId">) => Effect.Effect<{
|
|
18
|
-
verify: (machine: SshMachine, slots: number) => Effect.Effect<{
|
|
18
|
+
verify: (machine: SshMachine, slots: number, preflightImage: PreflightImage) => Effect.Effect<{
|
|
19
|
+
_tag: "SharedUser";
|
|
20
|
+
degraded: string;
|
|
21
|
+
settings?: never;
|
|
22
|
+
limits?: never;
|
|
23
|
+
image?: never;
|
|
24
|
+
} | {
|
|
25
|
+
degraded?: never;
|
|
19
26
|
_tag: "Container";
|
|
20
27
|
settings: ContainerSettings;
|
|
21
28
|
limits: ResolvedLimits;
|
|
22
|
-
|
|
23
|
-
_tag: "SharedUser";
|
|
24
|
-
degraded: string;
|
|
29
|
+
image: "missing" | "verified";
|
|
25
30
|
}, import("../executor.ts").ExecutorOperationError | WorkerCapabilityError, never>;
|
|
26
31
|
isolation: (machine: SshMachine) => Effect.Effect<AttemptIsolation, import("../executor.ts").ExecutorOperationError | WorkerCapabilityError, never>;
|
|
27
32
|
preflightShell: (machine: SshMachine, settings: ContainerSettings, logins: readonly (string & import("effect/Brand").Brand<"Harness">)[], environment: Readonly<Record<string, string>>) => Effect.Effect<import("@usine/agents/child-host").RemoteHost, import("../executor.ts").ExecutorOperationError | WorkerCapabilityError, import("effect/Scope").Scope>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../src/ssh/container.ts"],"names":[],"mappings":"AAUA,OAAO,EAAY,MAAM,EAA0B,MAAM,QAAQ,CAAC;AAElE,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../src/ssh/container.ts"],"names":[],"mappings":"AAUA,OAAO,EAAY,MAAM,EAA0B,MAAM,QAAQ,CAAC;AAElE,OAAO,EAAE,KAAK,cAAc,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAE5E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EAMvB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAKL,KAAK,cAAc,EAEpB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,UAAU,EAAoB,MAAM,YAAY,CAAC;AAE/D;;;GAGG;AACH,eAAO,MAAM,aAAa,yDAEzB,CAAC;AA0CF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;gBA4X3B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC"}
|
package/dist/ssh/container.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { prepareAttemptImage } from "./image.js";
|
|
1
|
+
import { findAttemptImage, prepareAttemptImage } from "./image.js";
|
|
2
2
|
import { reclaimOnceFor } from "../remote/reclaim.js";
|
|
3
3
|
import { detectRuntime, verifyPodmanLimits } from "./runtime.js";
|
|
4
4
|
import { runtimeOptions } from "../remote/runtime.js";
|
|
@@ -137,43 +137,25 @@ export const sshContainersFor = Effect.fn("SshExecutor.containersFor")(function*
|
|
|
137
137
|
shmSizeMib: settings.shmSizeMib,
|
|
138
138
|
tmpfsSizeMib: settings.tmpfsSizeMib,
|
|
139
139
|
});
|
|
140
|
-
return {
|
|
140
|
+
return { settings, limits };
|
|
141
141
|
});
|
|
142
142
|
/**
|
|
143
|
-
* Checks the machine
|
|
144
|
-
*
|
|
145
|
-
*
|
|
146
|
-
* runtime runs attempts as the SSH user, which the result reports as degraded; with a runtime, any
|
|
147
|
-
* failure fails the preflight.
|
|
143
|
+
* Checks the Attempt image on the machine for preflight: its user has the SSH user's ID, so the
|
|
144
|
+
* containers can write the checkouts, the shared caches are prepared, and the shared pnpm store
|
|
145
|
+
* can be measured.
|
|
148
146
|
*/
|
|
149
|
-
const
|
|
147
|
+
const verifyImage = Effect.fn("SshExecutor.verifyAttemptImage")(function* (machine, image, runtime) {
|
|
150
148
|
const worker = machine.address.name;
|
|
151
149
|
const host = machine.shell.destination;
|
|
152
|
-
|
|
153
|
-
yield* Effect.annotateCurrentSpan({ worker, host, image, slots });
|
|
154
|
-
const selected = yield* detectRuntime(commands, machine);
|
|
155
|
-
if (Option.isNone(selected)) {
|
|
156
|
-
yield* recordSharedUser(machine);
|
|
157
|
-
return {
|
|
158
|
-
_tag: "SharedUser",
|
|
159
|
-
degraded: "Neither Podman nor Docker is installed, so attempts run as the SSH user and can read each other's credentials. Install rootless Podman or Docker to run each attempt in its own container.",
|
|
160
|
-
};
|
|
161
|
-
}
|
|
162
|
-
yield* prepareAttemptImage(commands, machine, image, selected.value, "preflight");
|
|
150
|
+
yield* Effect.annotateCurrentSpan({ worker, host, image, runtime });
|
|
163
151
|
const [probeDuration, ids] = yield* commands
|
|
164
|
-
.inspect("preflight", machine.shell, "sh", [
|
|
165
|
-
"-c",
|
|
166
|
-
USER_IDS_SCRIPT,
|
|
167
|
-
"sh",
|
|
168
|
-
selected.value,
|
|
169
|
-
image,
|
|
170
|
-
])
|
|
152
|
+
.inspect("preflight", machine.shell, "sh", ["-c", USER_IDS_SCRIPT, "sh", runtime, image])
|
|
171
153
|
.pipe(Effect.timed);
|
|
172
154
|
yield* Effect.logInfo("Ran the attempt image user probe", {
|
|
173
155
|
worker,
|
|
174
156
|
host,
|
|
175
157
|
image,
|
|
176
|
-
runtime
|
|
158
|
+
runtime,
|
|
177
159
|
durationMillis: Duration.toMillis(probeDuration),
|
|
178
160
|
exitCode: ids.exitCode,
|
|
179
161
|
});
|
|
@@ -183,13 +165,13 @@ export const sshContainersFor = Effect.fn("SshExecutor.containersFor")(function*
|
|
|
183
165
|
if (hostId !== imageId || hostGid !== imageGid)
|
|
184
166
|
return yield* containerGap(worker, `The attempt image ${image} runs as user ID ${imageId} and group ID ${imageGid}, and the SSH user of worker "${worker}" has ID ${hostId} and group ID ${hostGid}, so its containers can't write the checkouts. Build the image with --build-arg USINE_UID=${hostId}.`, new Error(`user IDs ${hostId} and ${imageId}`));
|
|
185
167
|
yield* containers
|
|
186
|
-
.prepareCaches("preflight", machine.shell, image, worker,
|
|
168
|
+
.prepareCaches("preflight", machine.shell, image, worker, runtime)
|
|
187
169
|
.pipe(Effect.mapError((error) => containerGap(worker, `Can't prepare the shared caches: ${error.message}`, error)));
|
|
188
170
|
preparedCaches.add(machine);
|
|
189
171
|
const size = yield* commands
|
|
190
|
-
.run("preflight", machine.shell,
|
|
172
|
+
.run("preflight", machine.shell, runtime, [
|
|
191
173
|
"run",
|
|
192
|
-
...runtimeOptions(
|
|
174
|
+
...runtimeOptions(runtime),
|
|
193
175
|
"--rm",
|
|
194
176
|
"--network",
|
|
195
177
|
"none",
|
|
@@ -208,7 +190,43 @@ export const sshContainersFor = Effect.fn("SshExecutor.containersFor")(function*
|
|
|
208
190
|
volume: PNPM_STORE_VOLUME,
|
|
209
191
|
sizeKiB: size,
|
|
210
192
|
});
|
|
211
|
-
|
|
193
|
+
});
|
|
194
|
+
/**
|
|
195
|
+
* Checks the machine's runtime for preflight, pulls the Attempt image if `preflightImage` is
|
|
196
|
+
* `pull`, checks the image with `verifyImage`, and finds the limits of each container when
|
|
197
|
+
* `slots` Attempts run on the machine at once. With `defer`, a machine without the image skips
|
|
198
|
+
* `verifyImage`, and the result gives the image as `missing`. Only a machine without runtime
|
|
199
|
+
* runs attempts as the SSH user, which the result reports as degraded; with a runtime, any
|
|
200
|
+
* failure fails the preflight.
|
|
201
|
+
*/
|
|
202
|
+
const verify = Effect.fn("SshExecutor.verifyContainers")(function* (machine, slots, preflightImage) {
|
|
203
|
+
const worker = machine.address.name;
|
|
204
|
+
const host = machine.shell.destination;
|
|
205
|
+
const image = imageFor(machine);
|
|
206
|
+
yield* Effect.annotateCurrentSpan({ worker, host, image, slots, preflightImage });
|
|
207
|
+
const selected = yield* detectRuntime(commands, machine);
|
|
208
|
+
if (Option.isNone(selected)) {
|
|
209
|
+
yield* recordSharedUser(machine);
|
|
210
|
+
return {
|
|
211
|
+
_tag: "SharedUser",
|
|
212
|
+
degraded: "Neither Podman nor Docker is installed, so attempts run as the SSH user and can read each other's credentials. Install rootless Podman or Docker to run each attempt in its own container.",
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
const present = preflightImage === "pull"
|
|
216
|
+
? yield* prepareAttemptImage(commands, machine, image, selected.value, "preflight").pipe(Effect.as(true))
|
|
217
|
+
: yield* findAttemptImage(commands, machine, image, selected.value);
|
|
218
|
+
if (present)
|
|
219
|
+
yield* verifyImage(machine, image, selected.value);
|
|
220
|
+
// An Attempt that starts before the image is checked pulls it with the shared caches.
|
|
221
|
+
else
|
|
222
|
+
preparedCaches.delete(machine);
|
|
223
|
+
const { settings, limits } = yield* recordContainer(machine, selected.value, slots);
|
|
224
|
+
return {
|
|
225
|
+
_tag: "Container",
|
|
226
|
+
settings,
|
|
227
|
+
limits,
|
|
228
|
+
image: present ? "verified" : "missing",
|
|
229
|
+
};
|
|
212
230
|
});
|
|
213
231
|
/**
|
|
214
232
|
* Returns the isolation from the last preflight for this connection configuration, or detects
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container.js","sourceRoot":"","sources":["../../src/ssh/container.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,EAAyB,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC7E,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAGnE,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAmB,MAAM,oBAAoB,CAAC;AAC1F,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAClE,O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C;QACxD,IAAI,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC;YACxB,KAAK,CAAC,CAAC,UAAU,CAAC,KAAK,CACrB,OAAO,CAAC,KAAK,EACb,QAAQ,EACR,UAAU,EACV,MAAM,EACN,IAAI,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,EAClB,OAAO,CAAC,KAAK,CACd,CAAC;IACN,CAAC,CAAC,CAAC;IACH,wFAAwF;IACxF,4FAA4F;IAC5F,MAAM,OAAO,GAAG,KAAK,CAAC,CAAC,cAAc,CACnC,CAAC,OAAmB,EAAE,EAAE,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,EAC/E,CAAC,OAAO,EAAE,EAAE,CACV,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,CACjB,MAAM,CAAC,QAAQ,CAAC,CAAC,KAAK,EAAE,EAAE,CACxB,MAAM,CAAC,UAAU,CAAC,qDAAqD,EAAE;QACvE,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,IAAI;QAC5B,OAAO,EAAE,KAAK,CAAC,OAAO;KACvB,CAAC,CACH,CACF,CACJ,CAAC;IAEF,OAAO;QACL,MAAM;QACN,SAAS,EAAE,WAAW;QACtB,cAAc;QACd,OAAO;KACR,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -2,10 +2,11 @@ import { type AttachRequest, type Attached, type AttachmentId, type AttachmentLi
|
|
|
2
2
|
import { type Brand, Effect, Option, Schema } from "effect";
|
|
3
3
|
import { HttpClient } from "effect/http";
|
|
4
4
|
import type { SshWorkerGateway } from "../model.ts";
|
|
5
|
+
import type { GatewayLlmPrefixes } from "./environment.ts";
|
|
5
6
|
import { type GatewayForward } from "./forward.ts";
|
|
6
7
|
declare const GatewayAdminError_base: Schema.Class<GatewayAdminError, Schema.TaggedStruct<"GatewayAdminError", {
|
|
7
8
|
readonly worker: Schema.brand<Schema.String, "WorkerName">;
|
|
8
|
-
readonly operation: Schema.Literals<readonly ["attach", "renew", "detach", "list", "providers"]>;
|
|
9
|
+
readonly operation: Schema.Literals<readonly ["attach", "renew", "detach", "list", "providers", "connections"]>;
|
|
9
10
|
readonly message: Schema.NonEmptyString;
|
|
10
11
|
}>, import("effect/Cause").YieldableError & Brand.Brand<"@usine/executor/ssh/gateway/admin/GatewayAdminError">>;
|
|
11
12
|
/**
|
|
@@ -24,10 +25,20 @@ export interface GatewayAdmin {
|
|
|
24
25
|
/** Returns the active attachments for all the Gateway's Workers. */
|
|
25
26
|
readonly list: Effect.Effect<AttachmentList, GatewayAdminError>;
|
|
26
27
|
/**
|
|
27
|
-
* Returns the LLM providers the Gateway has credentials for, with each credential kind
|
|
28
|
-
* `None` if the Gateway predates this endpoint.
|
|
28
|
+
* Returns the LLM providers the Gateway has credentials for, with each credential kind, and the
|
|
29
|
+
* path prefixes it serves. Returns `None` if the Gateway predates this endpoint.
|
|
29
30
|
*/
|
|
30
|
-
readonly providers: Effect.Effect<Option.Option<
|
|
31
|
+
readonly providers: Effect.Effect<Option.Option<ReportedProviders>, GatewayAdminError>;
|
|
32
|
+
/**
|
|
33
|
+
* Returns whether the Gateway serves the provider-credentials admin API, which Settings uses
|
|
34
|
+
* to connect provider logins. Gateways before it answer 404.
|
|
35
|
+
*/
|
|
36
|
+
readonly servesProviderCredentials: Effect.Effect<boolean, GatewayAdminError>;
|
|
37
|
+
}
|
|
38
|
+
/** The LLM providers a Gateway reports, by protocol, and the path prefixes it serves. */
|
|
39
|
+
export interface ReportedProviders {
|
|
40
|
+
readonly list: LlmProviderList;
|
|
41
|
+
readonly prefixes: GatewayLlmPrefixes;
|
|
31
42
|
}
|
|
32
43
|
/**
|
|
33
44
|
* Returns the admin API client for the Gateway in front of `worker`, connected through
|
|
@@ -39,7 +50,8 @@ export declare const gatewayAdminFor: (worker: string & Brand.Brand<"WorkerName"
|
|
|
39
50
|
renew: (id: string & Brand.Brand<"AttachmentId">, request: AttachRequest) => Effect.Effect<Attached, GatewayAdminError, never>;
|
|
40
51
|
detach: (id: string & Brand.Brand<"AttachmentId">) => Effect.Effect<Detached, GatewayAdminError, never>;
|
|
41
52
|
list: Effect.Effect<AttachmentList, GatewayAdminError, never>;
|
|
42
|
-
providers: Effect.Effect<Option.Option<never> | Option.Option<
|
|
53
|
+
providers: Effect.Effect<Option.Option<never> | Option.Option<ReportedProviders>, GatewayAdminError, never>;
|
|
54
|
+
servesProviderCredentials: Effect.Effect<boolean, GatewayAdminError, never>;
|
|
43
55
|
}, never, HttpClient.HttpClient>;
|
|
44
56
|
export {};
|
|
45
57
|
//# sourceMappingURL=admin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../../src/ssh/gateway/admin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../../src/ssh/gateway/admin.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,QAAQ,EAEb,eAAe,EAGhB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,KAAK,KAAK,EAAY,MAAM,EAAE,MAAM,EAAyB,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC7F,OAAO,EAAE,UAAU,EAAsC,MAAM,aAAa,CAAC;AAE7E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,KAAK,cAAc,EAA0C,MAAM,cAAc,CAAC;;;;;;AAqB3F;;;GAGG;AACH,qBAAa,iBAAkB,SAAQ,sBAOrC;CAAG;AAEL,MAAM,WAAW,YAAY;IAC3B,mHAAmH;IACnH,QAAQ,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,MAAM,CAAC,M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