@usine/executor 0.6.1-next.465.g7204c3c.1.1 → 0.6.1-next.466.g539349e.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 +2 -0
- package/dist/executor.d.ts +4 -4
- package/dist/ssh/model.d.ts +25 -7
- package/dist/ssh/model.d.ts.map +1 -1
- package/dist/ssh/model.js +4 -4
- package/dist/ssh/model.js.map +1 -1
- package/dist/ssh/provisioner/boxd/api-pb.d.ts +549 -0
- package/dist/ssh/provisioner/boxd/api-pb.d.ts.map +1 -0
- package/dist/ssh/provisioner/boxd/api-pb.js +210 -0
- package/dist/ssh/provisioner/boxd/api-pb.js.map +1 -0
- package/dist/ssh/provisioner/boxd/client.d.ts +78 -0
- package/dist/ssh/provisioner/boxd/client.d.ts.map +1 -0
- package/dist/ssh/provisioner/boxd/client.js +34 -0
- package/dist/ssh/provisioner/boxd/client.js.map +1 -0
- package/dist/ssh/provisioner/boxd/grpc-client.d.ts +10 -0
- package/dist/ssh/provisioner/boxd/grpc-client.d.ts.map +1 -0
- package/dist/ssh/provisioner/boxd/grpc-client.js +130 -0
- package/dist/ssh/provisioner/boxd/grpc-client.js.map +1 -0
- package/dist/ssh/provisioner/boxd.d.ts +37 -0
- package/dist/ssh/provisioner/boxd.d.ts.map +1 -0
- package/dist/ssh/provisioner/boxd.js +235 -0
- package/dist/ssh/provisioner/boxd.js.map +1 -0
- package/dist/ssh/provisioner/drivers.d.ts +1 -1
- package/dist/ssh/provisioner/drivers.d.ts.map +1 -1
- package/dist/ssh/provisioner/drivers.js +10 -1
- package/dist/ssh/provisioner/drivers.js.map +1 -1
- package/dist/ssh/provisioner/machines.d.ts +1 -1
- package/dist/ssh/provisioner/machines.d.ts.map +1 -1
- package/dist/ssh/provisioner/machines.js +2 -2
- package/dist/ssh/provisioner/machines.js.map +1 -1
- package/dist/ssh/provisioner/model.d.ts +1 -1
- package/dist/ssh/provisioner/starts.d.ts +1 -1
- package/dist/ssh/provisioner/tailnet/bootstrap.d.ts +2 -2
- package/dist/ssh/provisioner/tailnet/bootstrap.d.ts.map +1 -1
- package/dist/ssh/provisioner/tailnet/bootstrap.js +13 -13
- package/dist/ssh/provisioner/tailnet/bootstrap.js.map +1 -1
- package/dist/ssh/provisioner/tailnet/client.d.ts +2 -2
- package/dist/ssh/provisioner/tailnet/client.d.ts.map +1 -1
- package/dist/ssh/provisioner/tailnet/client.js.map +1 -1
- package/dist/ssh/ssh.d.ts +1 -1
- package/dist/ssh/ssh.d.ts.map +1 -1
- package/dist/ssh/ssh.js.map +1 -1
- package/package.json +13 -7
package/README.md
CHANGED
|
@@ -377,3 +377,5 @@ Run `pnpm --filter @usine/executor check` after building dependencies to check T
|
|
|
377
377
|
Preparation creates `.usine/outputs/` and excludes `.usine/` from Git commits and salvage. After the parent reports, all worker adapters collect whole JSON documents through the checkout command runner and attempt container. Each envelope contains a non-empty opaque `type` of at most 128 UTF-16 code units, JSON `content`, and an optional `commit` matching `RunSpec.baseCommit`. Invalid output files fail with a file-specific `AgentFailure` and ordinary salvage still runs.
|
|
378
378
|
|
|
379
379
|
`PreparedAttempt.launch` and `Executor.outcome` return `StepCompletion`, whose `result` contains output refs and whose `outputs` contains the full documents. Durable storage records both before checkout cleanup. Collection allows at most ten files of at most 8 MiB each, with the same size limit on each compact JSON content body. The orchestrator caps command output before decoding and independently checks the count and content sizes.
|
|
380
|
+
|
|
381
|
+
The SSH provisioner restores boxd machines from prepared snapshots, validates their captured size and region, disables idle timers, and pins the regional SSH proxy key. Boat and boxd share the provisioner tailnet bootstrap. The gRPC transport uses a generated projection of the boxd 0.3.0 API behind a decoded client port; regenerate it with `pnpm boxd:generate` from this package. See [Add a boxd worker](https://docs.usine.dev/guides/add-a-boxd-worker/) for snapshot and live-test setup.
|
package/dist/executor.d.ts
CHANGED
|
@@ -81,7 +81,7 @@ export declare const MachineUnavailableReason: Schema.Literals<readonly ["capaci
|
|
|
81
81
|
export type MachineUnavailableReason = typeof MachineUnavailableReason.Type;
|
|
82
82
|
declare const MachineUnavailableError_base: Schema.Class<MachineUnavailableError, Schema.TaggedStruct<"MachineUnavailableError", {
|
|
83
83
|
readonly worker: Schema.brand<Schema.String, "WorkerName">;
|
|
84
|
-
readonly provider: Schema.Literals<readonly ["hetzner", "boat"]>;
|
|
84
|
+
readonly provider: Schema.Literals<readonly ["hetzner", "boat", "boxd"]>;
|
|
85
85
|
readonly reason: Schema.Literals<readonly ["capacity", "quota", "refused", "provider", "unreachable", "timeout"]>;
|
|
86
86
|
/** An operator-facing summary with the provider's own message. Contains no token. */
|
|
87
87
|
readonly message: Schema.NonEmptyString;
|
|
@@ -309,7 +309,7 @@ declare const MachineGrant_base: Schema.Class<MachineGrant, Schema.Struct<{
|
|
|
309
309
|
readonly hold: Schema.brand<Schema.NonEmptyString, "MachineHold">;
|
|
310
310
|
readonly id: Schema.brand<Schema.String, "MachineId">;
|
|
311
311
|
readonly worker: Schema.brand<Schema.String, "WorkerName">;
|
|
312
|
-
readonly provider: Schema.Literals<readonly ["hetzner", "boat"]>;
|
|
312
|
+
readonly provider: Schema.Literals<readonly ["hetzner", "boat", "boxd"]>;
|
|
313
313
|
/** The check that this machine got as the Worker's first each day, or `None` if it got none. */
|
|
314
314
|
readonly checked: Schema.Option<typeof MachineCheck>;
|
|
315
315
|
}>, Brand.Brand<"@usine/executor/executor/MachineGrant">>;
|
|
@@ -325,7 +325,7 @@ export declare const MachineState: Schema.Literals<readonly ["creating", "prepar
|
|
|
325
325
|
export type MachineState = typeof MachineState.Type;
|
|
326
326
|
declare const MachineStatus_base: Schema.Class<MachineStatus, Schema.Struct<{
|
|
327
327
|
readonly worker: Schema.brand<Schema.String, "WorkerName">;
|
|
328
|
-
readonly provider: Schema.Literals<readonly ["hetzner", "boat"]>;
|
|
328
|
+
readonly provider: Schema.Literals<readonly ["hetzner", "boat", "boxd"]>;
|
|
329
329
|
readonly state: Schema.Literals<readonly ["creating", "preparing", "ready", "idle", "deleting"]>;
|
|
330
330
|
/** `None` until the provider accepts the creation. */
|
|
331
331
|
readonly id: Schema.Option<Schema.brand<Schema.String, "MachineId">>;
|
|
@@ -342,7 +342,7 @@ export declare class MachineStatus extends MachineStatus_base {
|
|
|
342
342
|
}
|
|
343
343
|
declare const MachineStarts_base: Schema.Class<MachineStarts, Schema.Struct<{
|
|
344
344
|
readonly worker: Schema.brand<Schema.String, "WorkerName">;
|
|
345
|
-
readonly provider: Schema.Literals<readonly ["hetzner", "boat"]>;
|
|
345
|
+
readonly provider: Schema.Literals<readonly ["hetzner", "boat", "boxd"]>;
|
|
346
346
|
readonly day: Schema.String;
|
|
347
347
|
readonly count: Schema.Int;
|
|
348
348
|
}>, Brand.Brand<"@usine/executor/executor/MachineStarts">>;
|
package/dist/ssh/model.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import type { boxdApiLayer } from "./provisioner/boxd/grpc-client.ts";
|
|
1
2
|
import type { AttemptConnections } from "../attempt-connections.ts";
|
|
2
3
|
import type { SshCommand } from "@usine/agents/child-host";
|
|
3
4
|
import type { InstanceId } from "@usine/core/instance";
|
|
4
|
-
import type { ProvisionerTimings, ProvisionerReuse, BoatSize, BoatSnapshotName, TailnetAddress, ContainerCpus, ContainerImage, ContainerMemoryMib, ContainerScratchMib, ContainerPids, GatewayAdminPort, GatewayCredentialKind, GatewayDomain, GatewayLlmProtocol, HetznerImage, HetznerLabels, HetznerLocation, HetznerResourceName, HetznerServerType, MachineProvider, SshDestination, SshIdentityFile, SshPort, SshUser, WorkerName, WorkerRoot } from "@usine/core/worker";
|
|
5
|
+
import type { ProvisionerTimings, ProvisionerReuse, BoatSize, BoxdSize, BoxdRegion, BoxdSnapshotName, BoatSnapshotName, TailnetAddress, ContainerCpus, ContainerImage, ContainerMemoryMib, ContainerScratchMib, ContainerPids, GatewayAdminPort, GatewayCredentialKind, GatewayDomain, GatewayLlmProtocol, HetznerImage, HetznerLabels, HetznerLocation, HetznerResourceName, HetznerServerType, MachineProvider, SshDestination, SshIdentityFile, SshPort, SshUser, WorkerName, WorkerRoot } from "@usine/core/worker";
|
|
5
6
|
import { Option, type Duration, type Effect, type Redacted, type Ref } from "effect";
|
|
6
7
|
import type { HarnessProbe } from "../harness-preflight.ts";
|
|
7
8
|
import type { RemoteMachine } from "../remote/machine.ts";
|
|
@@ -70,7 +71,7 @@ export interface SshTailnet {
|
|
|
70
71
|
readonly gatewayAddress: TailnetAddress;
|
|
71
72
|
}
|
|
72
73
|
/** Credentials for creating single-use auth keys tagged tag:usine-attempt. */
|
|
73
|
-
export interface
|
|
74
|
+
export interface ProvisionerTailnet extends SshTailnet {
|
|
74
75
|
readonly clientId: Redacted.Redacted<string>;
|
|
75
76
|
readonly clientSecret: Redacted.Redacted<string>;
|
|
76
77
|
}
|
|
@@ -81,12 +82,27 @@ export interface BoatProvisioner {
|
|
|
81
82
|
readonly token: Redacted.Redacted<string>;
|
|
82
83
|
readonly size: BoatSize;
|
|
83
84
|
readonly snapshot: Option.Option<BoatSnapshotName>;
|
|
84
|
-
readonly tailnet: Option.Option<
|
|
85
|
+
readonly tailnet: Option.Option<ProvisionerTailnet>;
|
|
85
86
|
readonly apiKeys: ProviderApiKeys;
|
|
86
87
|
readonly timings: ProvisionerTimings;
|
|
87
88
|
readonly reuse: Option.Option<ProvisionerReuse>;
|
|
88
89
|
}
|
|
89
|
-
|
|
90
|
+
/** @deprecated Use ProvisionerTailnet. */
|
|
91
|
+
export type BoatTailnet = ProvisionerTailnet;
|
|
92
|
+
/** Restores each attempt's boxd machine from a prepared snapshot. */
|
|
93
|
+
export interface BoxdProvisioner {
|
|
94
|
+
readonly provider: "boxd";
|
|
95
|
+
readonly token: Redacted.Redacted<string>;
|
|
96
|
+
readonly region: BoxdRegion;
|
|
97
|
+
readonly size: BoxdSize;
|
|
98
|
+
readonly snapshot: BoxdSnapshotName;
|
|
99
|
+
readonly isolated: boolean;
|
|
100
|
+
readonly tailnet: Option.Option<ProvisionerTailnet>;
|
|
101
|
+
readonly apiKeys: ProviderApiKeys;
|
|
102
|
+
readonly timings: ProvisionerTimings;
|
|
103
|
+
readonly reuse: Option.Option<ProvisionerReuse>;
|
|
104
|
+
}
|
|
105
|
+
export type SshProvisioner = HetznerProvisioner | BoatProvisioner | BoxdProvisioner;
|
|
90
106
|
/** How the executor finds a Worker's machines: one long-lived machine, or one per Attempt. */
|
|
91
107
|
export type SshWorkerMachine = {
|
|
92
108
|
readonly _tag: "Fixed";
|
|
@@ -148,6 +164,8 @@ export interface SshExecutorOptions {
|
|
|
148
164
|
* directory removed with the executor.
|
|
149
165
|
*/
|
|
150
166
|
readonly workerRecordsDirectory?: string;
|
|
167
|
+
/** Builds the boxd transport. Defaults to the gRPC adapter. */
|
|
168
|
+
readonly boxdClient?: typeof boxdApiLayer;
|
|
151
169
|
/** The provider API endpoints, which tests replace. Defaults to the providers' own. */
|
|
152
170
|
readonly providerEndpoints?: Partial<Record<MachineProvider, string>>;
|
|
153
171
|
/** The longest wait for a created machine to answer over SSH. Defaults to 10 minutes. */
|
|
@@ -175,8 +193,8 @@ export interface SshMachine extends RemoteMachine {
|
|
|
175
193
|
readonly address: SshWorkerAddress;
|
|
176
194
|
readonly gateway: Option.Option<MachineGateway>;
|
|
177
195
|
}
|
|
178
|
-
/** Returns a
|
|
179
|
-
export declare const
|
|
180
|
-
/** Returns the gateway routing for a fixed or
|
|
196
|
+
/** Returns a provisioned worker's tailnet settings, if configured. */
|
|
197
|
+
export declare const provisionerTailnetOf: (address: SshWorkerAddress) => Option.Option<ProvisionerTailnet>;
|
|
198
|
+
/** Returns the gateway routing for a fixed or provisioned machine on the tailnet. */
|
|
181
199
|
export declare const tailnetOf: (address: SshWorkerAddress) => Option.Option<SshTailnet>;
|
|
182
200
|
//# sourceMappingURL=model.d.ts.map
|
package/dist/ssh/model.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/ssh/model.ts"],"names":[],"mappings":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AAQ,CAAC,MAAM,EAAE,OAAO,GAAG,QAAQ,CAAA;KAAE,CAAC;IAC9E,QAAQ,CAAC,OAAO,EAAE,cAAc,CAAC;IACjC,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;IAC7B;;;;OAIG;IACH,QAAQ,CAAC,WAAW,EAAE,GAAG,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;CACnD;AAED,iGAAiG;AACjG,MAAM,MAAM,kBAAkB,GAAG,QAAQ,CACvC,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC,CACjE,CAAC;AAEF,MAAM,WAAW,UAAW,SAAQ,aAAa;IAC/C,yEAAyE;IACzE,QAAQ,CAAC,OAAO,EAAE,gBAAgB,CAAC;IACnC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;CACjD;AAED,sEAAsE;AACtE,eAAO,MAAM,oBAAoB,YACtB,gBAAgB,KACxB,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAGhB,CAAC;AAEpB,qFAAqF;AACrF,eAAO,MAAM,SAAS,YAAa,gBAAgB,KAAG,MAAM,CAAC,MAAM,CAAC,UAAU,CACc,CAAC"}
|
package/dist/ssh/model.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Option } from "effect";
|
|
2
|
-
/** Returns a
|
|
3
|
-
export const
|
|
2
|
+
/** Returns a provisioned worker's tailnet settings, if configured. */
|
|
3
|
+
export const provisionerTailnetOf = (address) => address.machine._tag === "Provisioned" && "tailnet" in address.machine.provisioner
|
|
4
4
|
? address.machine.provisioner.tailnet
|
|
5
5
|
: Option.none();
|
|
6
|
-
/** Returns the gateway routing for a fixed or
|
|
7
|
-
export const tailnetOf = (address) => address.machine._tag === "Fixed" ? address.machine.tailnet :
|
|
6
|
+
/** Returns the gateway routing for a fixed or provisioned machine on the tailnet. */
|
|
7
|
+
export const tailnetOf = (address) => address.machine._tag === "Fixed" ? address.machine.tailnet : provisionerTailnetOf(address);
|
|
8
8
|
//# sourceMappingURL=model.js.map
|
package/dist/ssh/model.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/ssh/model.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/ssh/model.ts"],"names":[],"mappings":"AAmCA,OAAO,EAAE,MAAM,EAAuD,MAAM,QAAQ,CAAC;AA8MrF,sEAAsE;AACtE,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAClC,OAAyB,EACU,EAAE,CACrC,OAAO,CAAC,OAAO,CAAC,IAAI,KAAK,aAAa,IAAI,SAAS,IAAI,OAAO,CAAC,OAAO,CAAC,WAAW;IAChF,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO;IACrC,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;AAEpB,qFAAqF;AACrF,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,OAAyB,EAA6B,EAAE,CAChF,OAAO,CAAC,OAAO,CAAC,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC"}
|