@gjermundgaraba/clankerbox-sdk 0.22.0 → 0.24.0
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.
|
@@ -30,17 +30,25 @@ var Conflict = class extends Schema.TaggedError()("Conflict", {
|
|
|
30
30
|
...located
|
|
31
31
|
}, { httpApiStatus: 409 }) {};
|
|
32
32
|
/**
|
|
33
|
+
* What the operator asked a machine to be; the host keeps moving the machine toward it. `paused`
|
|
34
|
+
* keeps its RAM, processes and disks, saved by the runtime with the VM stopped, and a start
|
|
35
|
+
* resumes it; a machine that is stopped when a pause comes stays stopped, and one the runtime
|
|
36
|
+
* can't save, such as a VM an older runtime booted, is stopped instead.
|
|
37
|
+
*/
|
|
38
|
+
const Desired = Schema.Literals([
|
|
39
|
+
"running",
|
|
40
|
+
"stopped",
|
|
41
|
+
"paused",
|
|
42
|
+
"deleted"
|
|
43
|
+
]);
|
|
44
|
+
/**
|
|
33
45
|
* A later request on the machine replaced this one before the host got there: `by` is what that
|
|
34
46
|
* request asked for. The machine's own state says where it is now.
|
|
35
47
|
*/
|
|
36
48
|
var Superseded = class extends Schema.TaggedError()("Superseded", {
|
|
37
49
|
message: Schema.String,
|
|
38
50
|
...located,
|
|
39
|
-
by:
|
|
40
|
-
"running",
|
|
41
|
-
"stopped",
|
|
42
|
-
"deleted"
|
|
43
|
-
])
|
|
51
|
+
by: Desired
|
|
44
52
|
}, { httpApiStatus: 409 }) {};
|
|
45
53
|
/** No host offers `base`: the host a create names, or any in the client's list. */
|
|
46
54
|
var NotOffered = class extends Schema.TaggedError()("NotOffered", {
|
|
@@ -60,11 +68,13 @@ var Missing = class extends Schema.TaggedError()("Missing", {
|
|
|
60
68
|
...located,
|
|
61
69
|
machine: Schema.String
|
|
62
70
|
}, { httpApiStatus: 412 }) {};
|
|
63
|
-
/**
|
|
71
|
+
/**
|
|
72
|
+
* The checkpoint or paused machine `id` holds RAM state saved under another runtime pin than the
|
|
73
|
+
* one the host runs, and restores or resumes only under that one.
|
|
74
|
+
*/
|
|
64
75
|
var PinMismatch = class extends Schema.TaggedError()("PinMismatch", {
|
|
65
76
|
message: Schema.String,
|
|
66
|
-
...located
|
|
67
|
-
checkpoint: Schema.String
|
|
77
|
+
...located
|
|
68
78
|
}, { httpApiStatus: 412 }) {};
|
|
69
79
|
/** `machine` is in `state`, which the action doesn't act from. */
|
|
70
80
|
var WrongState = class extends Schema.TaggedError()("WrongState", {
|
|
@@ -200,19 +210,13 @@ const CheckpointKind = Schema.Literals(["ram", "disk"]);
|
|
|
200
210
|
*/
|
|
201
211
|
const loginUser = "admin";
|
|
202
212
|
const Size = Schema.Int.check(Schema.isGreaterThan(0));
|
|
203
|
-
/** What the operator asked a machine to be; the host keeps moving the machine toward it. */
|
|
204
|
-
const Desired = Schema.Literals([
|
|
205
|
-
"running",
|
|
206
|
-
"stopped",
|
|
207
|
-
"deleted"
|
|
208
|
-
]);
|
|
209
213
|
/**
|
|
210
214
|
* What the host is doing about a machine. A request waits for a rest: `settled`, at rest with what
|
|
211
215
|
* was asked; `failed`, after a step failed, until the next request; `lost`, one the runtime no
|
|
212
216
|
* longer has, which can only be deleted; and `waiting`, one the runtime can't read, which fails the
|
|
213
217
|
* request and is read again at the host's next recheck. `creating` copies the machine and runs its
|
|
214
218
|
* setup, and a machine whose create or setup fails is deleted. `starting` starts the machine, also
|
|
215
|
-
* when it runs already, and prepares it.
|
|
219
|
+
* when it runs already, resumes a paused one, and prepares it.
|
|
216
220
|
*/
|
|
217
221
|
const Phase = Schema.Literals([
|
|
218
222
|
"observing",
|
|
@@ -220,6 +224,7 @@ const Phase = Schema.Literals([
|
|
|
220
224
|
"creating",
|
|
221
225
|
"starting",
|
|
222
226
|
"stopping",
|
|
227
|
+
"pausing",
|
|
223
228
|
"deleting",
|
|
224
229
|
"settled",
|
|
225
230
|
"failed",
|
|
@@ -255,12 +260,13 @@ const TailnetStatus = Schema.Union([
|
|
|
255
260
|
Schema.Struct({ state: Schema.Literal("missing") })
|
|
256
261
|
]).annotate({ identifier: "TailnetStatus" });
|
|
257
262
|
/**
|
|
258
|
-
* `state` is what the runtime reports: `
|
|
259
|
-
* when it
|
|
260
|
-
*
|
|
261
|
-
*
|
|
262
|
-
* preparation has recorded it. `tailnet` is
|
|
263
|
-
* to a tailnet, once the host has checked
|
|
263
|
+
* `state` is what the runtime reports: `paused` while it holds the machine's saved execution,
|
|
264
|
+
* `missing` when it doesn't have the machine, and `unknown` when it couldn't be read. `desired` is
|
|
265
|
+
* what the last request asked for, `phase` what the host is doing about it, and `error` why the
|
|
266
|
+
* last step failed, until the next request. `ssh` is only on a running machine whose runtime gives
|
|
267
|
+
* it an endpoint, and `hostKey`, `<type> <base64>`, once preparation has recorded it. `tailnet` is
|
|
268
|
+
* on a running machine of a host that joins its machines to a tailnet, once the host has checked
|
|
269
|
+
* it.
|
|
264
270
|
*/
|
|
265
271
|
const Machine = Schema.Struct({
|
|
266
272
|
id: Id,
|
|
@@ -274,6 +280,7 @@ const Machine = Schema.Struct({
|
|
|
274
280
|
state: Schema.Literals([
|
|
275
281
|
"running",
|
|
276
282
|
"stopped",
|
|
283
|
+
"paused",
|
|
277
284
|
"missing",
|
|
278
285
|
"unknown"
|
|
279
286
|
]),
|
|
@@ -446,14 +453,21 @@ const Http = ActionHttp.make([
|
|
|
446
453
|
Action.make("startMachine", {
|
|
447
454
|
...write,
|
|
448
455
|
error: converging,
|
|
449
|
-
description: "Ask for a machine to run, and wait until it does: start it and prepare it again, also when it runs already.",
|
|
456
|
+
description: "Ask for a machine to run, and wait until it does: start it, or resume it when it is paused, and prepare it again, also when it runs already. A paused linux machine resumes only under the smolvm build that paused it, and a paused mac machine only while the Mac's session is unlocked, keeping its saved state when it can't.",
|
|
450
457
|
input: ById,
|
|
451
458
|
success: Machine
|
|
452
459
|
}),
|
|
453
460
|
Action.make("stopMachine", {
|
|
454
461
|
...write,
|
|
455
462
|
error: converging,
|
|
456
|
-
description: "Ask for a machine to stay stopped, and wait until it is: a power-off that keeps its disk and ends its processes. A start under way is cut short; a machine still being made is made first, and its create answers Superseded.",
|
|
463
|
+
description: "Ask for a machine to stay stopped, and wait until it is: a power-off that keeps its disk and ends its processes. A start under way is cut short; a machine still being made is made first, and its create answers Superseded. A paused linux machine is resumed to end its processes, so it needs room as a start does and the runtime build that paused it; a paused mac machine's saved state is discarded.",
|
|
464
|
+
input: ById,
|
|
465
|
+
success: Machine
|
|
466
|
+
}),
|
|
467
|
+
Action.make("pauseMachine", {
|
|
468
|
+
...write,
|
|
469
|
+
error: converging,
|
|
470
|
+
description: "Ask for a machine to stay paused, and wait until it is: the runtime saves its RAM, processes and disks and stops its VM, and a start resumes it. A machine that is stopped stays stopped, and one whose VM the runtime can't save, booted under another smolvm build or by an older mac host, is stopped instead.",
|
|
457
471
|
input: ById,
|
|
458
472
|
success: Machine
|
|
459
473
|
}),
|
|
@@ -539,7 +553,7 @@ const actionsByName = Action.byName(Http.actions);
|
|
|
539
553
|
//#endregion
|
|
540
554
|
//#region src/release.ts
|
|
541
555
|
/** Also the version of the clankerbox CLI released with it. */
|
|
542
|
-
const version = "0.
|
|
556
|
+
const version = "0.24.0";
|
|
543
557
|
/** major.minor: releases that share it speak the same API. */
|
|
544
558
|
const release = (of) => of.split(".").slice(0, 2).join(".");
|
|
545
559
|
/** A host refuses a request whose `release` differs from its own, or that has none. */
|
|
@@ -736,6 +750,7 @@ const make = (hosts, options) => Effect.gen(function* () {
|
|
|
736
750
|
getMachine: (input) => onResource("getMachine", input),
|
|
737
751
|
startMachine: (input) => onResource("startMachine", input),
|
|
738
752
|
stopMachine: (input) => onResource("stopMachine", input),
|
|
753
|
+
pauseMachine: (input) => onResource("pauseMachine", input),
|
|
739
754
|
deleteMachine: (input) => deleting(onResource("deleteMachine", input)),
|
|
740
755
|
forkMachine: (input) => onResource("forkMachine", input, input.name),
|
|
741
756
|
restoreMachine: (input) => onResource("restoreMachine", input, input.name),
|
|
@@ -747,4 +762,4 @@ const make = (hosts, options) => Effect.gen(function* () {
|
|
|
747
762
|
});
|
|
748
763
|
const layer = (hosts, options) => Layer.effect(Client, make(hosts, options));
|
|
749
764
|
//#endregion
|
|
750
|
-
export {
|
|
765
|
+
export { Name as A, Invalid as B, SshLogin as C, stateLabel as D, loginUser as E, ClankerboxError as F, PinMismatch as G, NotFound as H, Conflict as I, Unavailable as J, ScriptFailed as K, Desired as L, parseId as M, parseName as N, HostId as O, Capacity as P, retryable as Q, HostError as R, SshEndpoint as S, Usage as T, NotMade as U, Missing as V, NotOffered as W, WrongState as X, Unsizable as Y, hostErrors as Z, Phase as _, release as a, PublicKeys as b, Http as c, Checkpoint as d, CreateRequest as f, MachineSpec as g, Machine as h, describeIssues as i, formatId as j, Id as k, actionsByName as l, Kind as m, layer as n, version as o, Host as p, Superseded as q, describeFileError as r, versionHeader as s, client_exports as t, readTimeout as u, PrebuildRequest as v, TailnetStatus as w, Setup as x, Prebuilt as y, Internal as z };
|
|
@@ -34,13 +34,21 @@ declare const Conflict_base: Schema.Class<Conflict, Schema.TaggedStruct<"Conflic
|
|
|
34
34
|
}>, import("effect/Cause").YieldableError>;
|
|
35
35
|
/** The name is taken. */
|
|
36
36
|
declare class Conflict extends Conflict_base {}
|
|
37
|
+
/**
|
|
38
|
+
* What the operator asked a machine to be; the host keeps moving the machine toward it. `paused`
|
|
39
|
+
* keeps its RAM, processes and disks, saved by the runtime with the VM stopped, and a start
|
|
40
|
+
* resumes it; a machine that is stopped when a pause comes stays stopped, and one the runtime
|
|
41
|
+
* can't save, such as a VM an older runtime booted, is stopped instead.
|
|
42
|
+
*/
|
|
43
|
+
declare const Desired: Schema.Literals<readonly ["running", "stopped", "paused", "deleted"]>;
|
|
44
|
+
type Desired = typeof Desired.Type;
|
|
37
45
|
declare const Superseded_base: Schema.Class<Superseded, Schema.TaggedStruct<"Superseded", {
|
|
38
46
|
readonly host: Schema.optionalKey<Schema.String>;
|
|
39
47
|
readonly action: Schema.optionalKey<Schema.String>;
|
|
40
48
|
readonly id: Schema.optionalKey<Schema.String>;
|
|
41
49
|
readonly made: Schema.optionalKey<Schema.String>;
|
|
42
50
|
readonly message: Schema.String;
|
|
43
|
-
readonly by: Schema.Literals<readonly ["running", "stopped", "deleted"]>;
|
|
51
|
+
readonly by: Schema.Literals<readonly ["running", "stopped", "paused", "deleted"]>;
|
|
44
52
|
}>, import("effect/Cause").YieldableError>;
|
|
45
53
|
/**
|
|
46
54
|
* A later request on the machine replaced this one before the host got there: `by` is what that
|
|
@@ -83,9 +91,11 @@ declare const PinMismatch_base: Schema.Class<PinMismatch, Schema.TaggedStruct<"P
|
|
|
83
91
|
readonly id: Schema.optionalKey<Schema.String>;
|
|
84
92
|
readonly made: Schema.optionalKey<Schema.String>;
|
|
85
93
|
readonly message: Schema.String;
|
|
86
|
-
readonly checkpoint: Schema.String;
|
|
87
94
|
}>, import("effect/Cause").YieldableError>;
|
|
88
|
-
/**
|
|
95
|
+
/**
|
|
96
|
+
* The checkpoint or paused machine `id` holds RAM state saved under another runtime pin than the
|
|
97
|
+
* one the host runs, and restores or resumes only under that one.
|
|
98
|
+
*/
|
|
89
99
|
declare class PinMismatch extends PinMismatch_base {}
|
|
90
100
|
declare const WrongState_base: Schema.Class<WrongState, Schema.TaggedStruct<"WrongState", {
|
|
91
101
|
readonly host: Schema.optionalKey<Schema.String>;
|
|
@@ -183,9 +193,9 @@ declare const Http: ActionHttp.Binding<readonly [Action.Action<"listMachines", S
|
|
|
183
193
|
readonly cpu: Schema.Int;
|
|
184
194
|
readonly ramMib: Schema.Int;
|
|
185
195
|
readonly diskGib: Schema.Int;
|
|
186
|
-
readonly state: Schema.Literals<readonly ["running", "stopped", "missing", "unknown"]>;
|
|
187
|
-
readonly desired: Schema.Literals<readonly ["running", "stopped", "deleted"]>;
|
|
188
|
-
readonly phase: Schema.Literals<readonly ["observing", "waiting", "creating", "starting", "stopping", "deleting", "settled", "failed", "lost"]>;
|
|
196
|
+
readonly state: Schema.Literals<readonly ["running", "stopped", "paused", "missing", "unknown"]>;
|
|
197
|
+
readonly desired: Schema.Literals<readonly ["running", "stopped", "paused", "deleted"]>;
|
|
198
|
+
readonly phase: Schema.Literals<readonly ["observing", "waiting", "creating", "starting", "stopping", "pausing", "deleting", "settled", "failed", "lost"]>;
|
|
189
199
|
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof Invalid, typeof NotFound, typeof Conflict, typeof Superseded, typeof NotOffered, typeof NotMade, typeof Missing, typeof PinMismatch, typeof WrongState, typeof Unsizable, typeof ScriptFailed, typeof Capacity, typeof Internal]>>;
|
|
190
200
|
readonly ssh: Schema.optionalKey<Schema.Struct<{
|
|
191
201
|
readonly host: Schema.String;
|
|
@@ -213,9 +223,9 @@ declare const Http: ActionHttp.Binding<readonly [Action.Action<"listMachines", S
|
|
|
213
223
|
readonly cpu: Schema.Int;
|
|
214
224
|
readonly ramMib: Schema.Int;
|
|
215
225
|
readonly diskGib: Schema.Int;
|
|
216
|
-
readonly state: Schema.Literals<readonly ["running", "stopped", "missing", "unknown"]>;
|
|
217
|
-
readonly desired: Schema.Literals<readonly ["running", "stopped", "deleted"]>;
|
|
218
|
-
readonly phase: Schema.Literals<readonly ["observing", "waiting", "creating", "starting", "stopping", "deleting", "settled", "failed", "lost"]>;
|
|
226
|
+
readonly state: Schema.Literals<readonly ["running", "stopped", "paused", "missing", "unknown"]>;
|
|
227
|
+
readonly desired: Schema.Literals<readonly ["running", "stopped", "paused", "deleted"]>;
|
|
228
|
+
readonly phase: Schema.Literals<readonly ["observing", "waiting", "creating", "starting", "stopping", "pausing", "deleting", "settled", "failed", "lost"]>;
|
|
219
229
|
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof Invalid, typeof NotFound, typeof Conflict, typeof Superseded, typeof NotOffered, typeof NotMade, typeof Missing, typeof PinMismatch, typeof WrongState, typeof Unsizable, typeof ScriptFailed, typeof Capacity, typeof Internal]>>;
|
|
220
230
|
readonly ssh: Schema.optionalKey<Schema.Struct<{
|
|
221
231
|
readonly host: Schema.String;
|
|
@@ -253,9 +263,9 @@ declare const Http: ActionHttp.Binding<readonly [Action.Action<"listMachines", S
|
|
|
253
263
|
readonly cpu: Schema.Int;
|
|
254
264
|
readonly ramMib: Schema.Int;
|
|
255
265
|
readonly diskGib: Schema.Int;
|
|
256
|
-
readonly state: Schema.Literals<readonly ["running", "stopped", "missing", "unknown"]>;
|
|
257
|
-
readonly desired: Schema.Literals<readonly ["running", "stopped", "deleted"]>;
|
|
258
|
-
readonly phase: Schema.Literals<readonly ["observing", "waiting", "creating", "starting", "stopping", "deleting", "settled", "failed", "lost"]>;
|
|
266
|
+
readonly state: Schema.Literals<readonly ["running", "stopped", "paused", "missing", "unknown"]>;
|
|
267
|
+
readonly desired: Schema.Literals<readonly ["running", "stopped", "paused", "deleted"]>;
|
|
268
|
+
readonly phase: Schema.Literals<readonly ["observing", "waiting", "creating", "starting", "stopping", "pausing", "deleting", "settled", "failed", "lost"]>;
|
|
259
269
|
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof Invalid, typeof NotFound, typeof Conflict, typeof Superseded, typeof NotOffered, typeof NotMade, typeof Missing, typeof PinMismatch, typeof WrongState, typeof Unsizable, typeof ScriptFailed, typeof Capacity, typeof Internal]>>;
|
|
260
270
|
readonly ssh: Schema.optionalKey<Schema.Struct<{
|
|
261
271
|
readonly host: Schema.String;
|
|
@@ -283,9 +293,9 @@ declare const Http: ActionHttp.Binding<readonly [Action.Action<"listMachines", S
|
|
|
283
293
|
readonly cpu: Schema.Int;
|
|
284
294
|
readonly ramMib: Schema.Int;
|
|
285
295
|
readonly diskGib: Schema.Int;
|
|
286
|
-
readonly state: Schema.Literals<readonly ["running", "stopped", "missing", "unknown"]>;
|
|
287
|
-
readonly desired: Schema.Literals<readonly ["running", "stopped", "deleted"]>;
|
|
288
|
-
readonly phase: Schema.Literals<readonly ["observing", "waiting", "creating", "starting", "stopping", "deleting", "settled", "failed", "lost"]>;
|
|
296
|
+
readonly state: Schema.Literals<readonly ["running", "stopped", "paused", "missing", "unknown"]>;
|
|
297
|
+
readonly desired: Schema.Literals<readonly ["running", "stopped", "paused", "deleted"]>;
|
|
298
|
+
readonly phase: Schema.Literals<readonly ["observing", "waiting", "creating", "starting", "stopping", "pausing", "deleting", "settled", "failed", "lost"]>;
|
|
289
299
|
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof Invalid, typeof NotFound, typeof Conflict, typeof Superseded, typeof NotOffered, typeof NotMade, typeof Missing, typeof PinMismatch, typeof WrongState, typeof Unsizable, typeof ScriptFailed, typeof Capacity, typeof Internal]>>;
|
|
290
300
|
readonly ssh: Schema.optionalKey<Schema.Struct<{
|
|
291
301
|
readonly host: Schema.String;
|
|
@@ -313,9 +323,39 @@ declare const Http: ActionHttp.Binding<readonly [Action.Action<"listMachines", S
|
|
|
313
323
|
readonly cpu: Schema.Int;
|
|
314
324
|
readonly ramMib: Schema.Int;
|
|
315
325
|
readonly diskGib: Schema.Int;
|
|
316
|
-
readonly state: Schema.Literals<readonly ["running", "stopped", "missing", "unknown"]>;
|
|
317
|
-
readonly desired: Schema.Literals<readonly ["running", "stopped", "deleted"]>;
|
|
318
|
-
readonly phase: Schema.Literals<readonly ["observing", "waiting", "creating", "starting", "stopping", "deleting", "settled", "failed", "lost"]>;
|
|
326
|
+
readonly state: Schema.Literals<readonly ["running", "stopped", "paused", "missing", "unknown"]>;
|
|
327
|
+
readonly desired: Schema.Literals<readonly ["running", "stopped", "paused", "deleted"]>;
|
|
328
|
+
readonly phase: Schema.Literals<readonly ["observing", "waiting", "creating", "starting", "stopping", "pausing", "deleting", "settled", "failed", "lost"]>;
|
|
329
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof Invalid, typeof NotFound, typeof Conflict, typeof Superseded, typeof NotOffered, typeof NotMade, typeof Missing, typeof PinMismatch, typeof WrongState, typeof Unsizable, typeof ScriptFailed, typeof Capacity, typeof Internal]>>;
|
|
330
|
+
readonly ssh: Schema.optionalKey<Schema.Struct<{
|
|
331
|
+
readonly host: Schema.String;
|
|
332
|
+
readonly port: Schema.Int;
|
|
333
|
+
readonly user: Schema.String;
|
|
334
|
+
}>>;
|
|
335
|
+
readonly hostKey: Schema.optionalKey<Schema.String>;
|
|
336
|
+
readonly tailnet: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
337
|
+
readonly state: Schema.Literal<"joined">;
|
|
338
|
+
readonly name: Schema.optionalKey<Schema.String>;
|
|
339
|
+
}>, Schema.Struct<{
|
|
340
|
+
readonly state: Schema.Literal<"failed">;
|
|
341
|
+
readonly error: Schema.String;
|
|
342
|
+
}>, Schema.Struct<{
|
|
343
|
+
readonly state: Schema.Literal<"missing">;
|
|
344
|
+
}>]>>;
|
|
345
|
+
}>, readonly (typeof Invalid | typeof NotFound | typeof Superseded | typeof NotMade | typeof Missing | typeof PinMismatch | typeof WrongState | typeof Unsizable | typeof ScriptFailed | typeof Capacity | typeof Internal)[], false, typeof Action.Anyone>, Action.Action<"pauseMachine", Schema.Struct<{
|
|
346
|
+
readonly id: Schema.String;
|
|
347
|
+
}>, Schema.Struct<{
|
|
348
|
+
readonly id: Schema.String;
|
|
349
|
+
readonly kind: Schema.Literals<readonly ["linux", "mac"]>;
|
|
350
|
+
readonly createdAt: Schema.DateTimeUtcFromString;
|
|
351
|
+
readonly base: Schema.String;
|
|
352
|
+
readonly profile: Schema.optionalKey<Schema.String>;
|
|
353
|
+
readonly cpu: Schema.Int;
|
|
354
|
+
readonly ramMib: Schema.Int;
|
|
355
|
+
readonly diskGib: Schema.Int;
|
|
356
|
+
readonly state: Schema.Literals<readonly ["running", "stopped", "paused", "missing", "unknown"]>;
|
|
357
|
+
readonly desired: Schema.Literals<readonly ["running", "stopped", "paused", "deleted"]>;
|
|
358
|
+
readonly phase: Schema.Literals<readonly ["observing", "waiting", "creating", "starting", "stopping", "pausing", "deleting", "settled", "failed", "lost"]>;
|
|
319
359
|
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof Invalid, typeof NotFound, typeof Conflict, typeof Superseded, typeof NotOffered, typeof NotMade, typeof Missing, typeof PinMismatch, typeof WrongState, typeof Unsizable, typeof ScriptFailed, typeof Capacity, typeof Internal]>>;
|
|
320
360
|
readonly ssh: Schema.optionalKey<Schema.Struct<{
|
|
321
361
|
readonly host: Schema.String;
|
|
@@ -346,9 +386,9 @@ declare const Http: ActionHttp.Binding<readonly [Action.Action<"listMachines", S
|
|
|
346
386
|
readonly cpu: Schema.Int;
|
|
347
387
|
readonly ramMib: Schema.Int;
|
|
348
388
|
readonly diskGib: Schema.Int;
|
|
349
|
-
readonly state: Schema.Literals<readonly ["running", "stopped", "missing", "unknown"]>;
|
|
350
|
-
readonly desired: Schema.Literals<readonly ["running", "stopped", "deleted"]>;
|
|
351
|
-
readonly phase: Schema.Literals<readonly ["observing", "waiting", "creating", "starting", "stopping", "deleting", "settled", "failed", "lost"]>;
|
|
389
|
+
readonly state: Schema.Literals<readonly ["running", "stopped", "paused", "missing", "unknown"]>;
|
|
390
|
+
readonly desired: Schema.Literals<readonly ["running", "stopped", "paused", "deleted"]>;
|
|
391
|
+
readonly phase: Schema.Literals<readonly ["observing", "waiting", "creating", "starting", "stopping", "pausing", "deleting", "settled", "failed", "lost"]>;
|
|
352
392
|
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof Invalid, typeof NotFound, typeof Conflict, typeof Superseded, typeof NotOffered, typeof NotMade, typeof Missing, typeof PinMismatch, typeof WrongState, typeof Unsizable, typeof ScriptFailed, typeof Capacity, typeof Internal]>>;
|
|
353
393
|
readonly ssh: Schema.optionalKey<Schema.Struct<{
|
|
354
394
|
readonly host: Schema.String;
|
|
@@ -377,9 +417,9 @@ declare const Http: ActionHttp.Binding<readonly [Action.Action<"listMachines", S
|
|
|
377
417
|
readonly cpu: Schema.Int;
|
|
378
418
|
readonly ramMib: Schema.Int;
|
|
379
419
|
readonly diskGib: Schema.Int;
|
|
380
|
-
readonly state: Schema.Literals<readonly ["running", "stopped", "missing", "unknown"]>;
|
|
381
|
-
readonly desired: Schema.Literals<readonly ["running", "stopped", "deleted"]>;
|
|
382
|
-
readonly phase: Schema.Literals<readonly ["observing", "waiting", "creating", "starting", "stopping", "deleting", "settled", "failed", "lost"]>;
|
|
420
|
+
readonly state: Schema.Literals<readonly ["running", "stopped", "paused", "missing", "unknown"]>;
|
|
421
|
+
readonly desired: Schema.Literals<readonly ["running", "stopped", "paused", "deleted"]>;
|
|
422
|
+
readonly phase: Schema.Literals<readonly ["observing", "waiting", "creating", "starting", "stopping", "pausing", "deleting", "settled", "failed", "lost"]>;
|
|
383
423
|
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof Invalid, typeof NotFound, typeof Conflict, typeof Superseded, typeof NotOffered, typeof NotMade, typeof Missing, typeof PinMismatch, typeof WrongState, typeof Unsizable, typeof ScriptFailed, typeof Capacity, typeof Internal]>>;
|
|
384
424
|
readonly ssh: Schema.optionalKey<Schema.Struct<{
|
|
385
425
|
readonly host: Schema.String;
|
|
@@ -511,9 +551,9 @@ declare const actionsByName: {
|
|
|
511
551
|
readonly cpu: Schema.Int;
|
|
512
552
|
readonly ramMib: Schema.Int;
|
|
513
553
|
readonly diskGib: Schema.Int;
|
|
514
|
-
readonly state: Schema.Literals<readonly ["running", "stopped", "missing", "unknown"]>;
|
|
515
|
-
readonly desired: Schema.Literals<readonly ["running", "stopped", "deleted"]>;
|
|
516
|
-
readonly phase: Schema.Literals<readonly ["observing", "waiting", "creating", "starting", "stopping", "deleting", "settled", "failed", "lost"]>;
|
|
554
|
+
readonly state: Schema.Literals<readonly ["running", "stopped", "paused", "missing", "unknown"]>;
|
|
555
|
+
readonly desired: Schema.Literals<readonly ["running", "stopped", "paused", "deleted"]>;
|
|
556
|
+
readonly phase: Schema.Literals<readonly ["observing", "waiting", "creating", "starting", "stopping", "pausing", "deleting", "settled", "failed", "lost"]>;
|
|
517
557
|
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof Invalid, typeof NotFound, typeof Conflict, typeof Superseded, typeof NotOffered, typeof NotMade, typeof Missing, typeof PinMismatch, typeof WrongState, typeof Unsizable, typeof ScriptFailed, typeof Capacity, typeof Internal]>>;
|
|
518
558
|
readonly ssh: Schema.optionalKey<Schema.Struct<{
|
|
519
559
|
readonly host: Schema.String;
|
|
@@ -549,9 +589,9 @@ declare const actionsByName: {
|
|
|
549
589
|
readonly cpu: Schema.Int;
|
|
550
590
|
readonly ramMib: Schema.Int;
|
|
551
591
|
readonly diskGib: Schema.Int;
|
|
552
|
-
readonly state: Schema.Literals<readonly ["running", "stopped", "missing", "unknown"]>;
|
|
553
|
-
readonly desired: Schema.Literals<readonly ["running", "stopped", "deleted"]>;
|
|
554
|
-
readonly phase: Schema.Literals<readonly ["observing", "waiting", "creating", "starting", "stopping", "deleting", "settled", "failed", "lost"]>;
|
|
592
|
+
readonly state: Schema.Literals<readonly ["running", "stopped", "paused", "missing", "unknown"]>;
|
|
593
|
+
readonly desired: Schema.Literals<readonly ["running", "stopped", "paused", "deleted"]>;
|
|
594
|
+
readonly phase: Schema.Literals<readonly ["observing", "waiting", "creating", "starting", "stopping", "pausing", "deleting", "settled", "failed", "lost"]>;
|
|
555
595
|
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof Invalid, typeof NotFound, typeof Conflict, typeof Superseded, typeof NotOffered, typeof NotMade, typeof Missing, typeof PinMismatch, typeof WrongState, typeof Unsizable, typeof ScriptFailed, typeof Capacity, typeof Internal]>>;
|
|
556
596
|
readonly ssh: Schema.optionalKey<Schema.Struct<{
|
|
557
597
|
readonly host: Schema.String;
|
|
@@ -611,9 +651,9 @@ declare const actionsByName: {
|
|
|
611
651
|
readonly cpu: Schema.Int;
|
|
612
652
|
readonly ramMib: Schema.Int;
|
|
613
653
|
readonly diskGib: Schema.Int;
|
|
614
|
-
readonly state: Schema.Literals<readonly ["running", "stopped", "missing", "unknown"]>;
|
|
615
|
-
readonly desired: Schema.Literals<readonly ["running", "stopped", "deleted"]>;
|
|
616
|
-
readonly phase: Schema.Literals<readonly ["observing", "waiting", "creating", "starting", "stopping", "deleting", "settled", "failed", "lost"]>;
|
|
654
|
+
readonly state: Schema.Literals<readonly ["running", "stopped", "paused", "missing", "unknown"]>;
|
|
655
|
+
readonly desired: Schema.Literals<readonly ["running", "stopped", "paused", "deleted"]>;
|
|
656
|
+
readonly phase: Schema.Literals<readonly ["observing", "waiting", "creating", "starting", "stopping", "pausing", "deleting", "settled", "failed", "lost"]>;
|
|
617
657
|
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof Invalid, typeof NotFound, typeof Conflict, typeof Superseded, typeof NotOffered, typeof NotMade, typeof Missing, typeof PinMismatch, typeof WrongState, typeof Unsizable, typeof ScriptFailed, typeof Capacity, typeof Internal]>>;
|
|
618
658
|
readonly ssh: Schema.optionalKey<Schema.Struct<{
|
|
619
659
|
readonly host: Schema.String;
|
|
@@ -651,9 +691,9 @@ declare const actionsByName: {
|
|
|
651
691
|
readonly cpu: Schema.Int;
|
|
652
692
|
readonly ramMib: Schema.Int;
|
|
653
693
|
readonly diskGib: Schema.Int;
|
|
654
|
-
readonly state: Schema.Literals<readonly ["running", "stopped", "missing", "unknown"]>;
|
|
655
|
-
readonly desired: Schema.Literals<readonly ["running", "stopped", "deleted"]>;
|
|
656
|
-
readonly phase: Schema.Literals<readonly ["observing", "waiting", "creating", "starting", "stopping", "deleting", "settled", "failed", "lost"]>;
|
|
694
|
+
readonly state: Schema.Literals<readonly ["running", "stopped", "paused", "missing", "unknown"]>;
|
|
695
|
+
readonly desired: Schema.Literals<readonly ["running", "stopped", "paused", "deleted"]>;
|
|
696
|
+
readonly phase: Schema.Literals<readonly ["observing", "waiting", "creating", "starting", "stopping", "pausing", "deleting", "settled", "failed", "lost"]>;
|
|
657
697
|
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof Invalid, typeof NotFound, typeof Conflict, typeof Superseded, typeof NotOffered, typeof NotMade, typeof Missing, typeof PinMismatch, typeof WrongState, typeof Unsizable, typeof ScriptFailed, typeof Capacity, typeof Internal]>>;
|
|
658
698
|
readonly ssh: Schema.optionalKey<Schema.Struct<{
|
|
659
699
|
readonly host: Schema.String;
|
|
@@ -671,6 +711,37 @@ declare const actionsByName: {
|
|
|
671
711
|
readonly state: Schema.Literal<"missing">;
|
|
672
712
|
}>]>>;
|
|
673
713
|
}>>, readonly (typeof Invalid | typeof Internal)[], true, typeof Action.Anyone>;
|
|
714
|
+
readonly pauseMachine: Action.Action<"pauseMachine", Schema.Struct<{
|
|
715
|
+
readonly id: Schema.String;
|
|
716
|
+
}>, Schema.Struct<{
|
|
717
|
+
readonly id: Schema.String;
|
|
718
|
+
readonly kind: Schema.Literals<readonly ["linux", "mac"]>;
|
|
719
|
+
readonly createdAt: Schema.DateTimeUtcFromString;
|
|
720
|
+
readonly base: Schema.String;
|
|
721
|
+
readonly profile: Schema.optionalKey<Schema.String>;
|
|
722
|
+
readonly cpu: Schema.Int;
|
|
723
|
+
readonly ramMib: Schema.Int;
|
|
724
|
+
readonly diskGib: Schema.Int;
|
|
725
|
+
readonly state: Schema.Literals<readonly ["running", "stopped", "paused", "missing", "unknown"]>;
|
|
726
|
+
readonly desired: Schema.Literals<readonly ["running", "stopped", "paused", "deleted"]>;
|
|
727
|
+
readonly phase: Schema.Literals<readonly ["observing", "waiting", "creating", "starting", "stopping", "pausing", "deleting", "settled", "failed", "lost"]>;
|
|
728
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof Invalid, typeof NotFound, typeof Conflict, typeof Superseded, typeof NotOffered, typeof NotMade, typeof Missing, typeof PinMismatch, typeof WrongState, typeof Unsizable, typeof ScriptFailed, typeof Capacity, typeof Internal]>>;
|
|
729
|
+
readonly ssh: Schema.optionalKey<Schema.Struct<{
|
|
730
|
+
readonly host: Schema.String;
|
|
731
|
+
readonly port: Schema.Int;
|
|
732
|
+
readonly user: Schema.String;
|
|
733
|
+
}>>;
|
|
734
|
+
readonly hostKey: Schema.optionalKey<Schema.String>;
|
|
735
|
+
readonly tailnet: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
736
|
+
readonly state: Schema.Literal<"joined">;
|
|
737
|
+
readonly name: Schema.optionalKey<Schema.String>;
|
|
738
|
+
}>, Schema.Struct<{
|
|
739
|
+
readonly state: Schema.Literal<"failed">;
|
|
740
|
+
readonly error: Schema.String;
|
|
741
|
+
}>, Schema.Struct<{
|
|
742
|
+
readonly state: Schema.Literal<"missing">;
|
|
743
|
+
}>]>>;
|
|
744
|
+
}>, readonly (typeof Invalid | typeof NotFound | typeof Superseded | typeof NotMade | typeof Missing | typeof PinMismatch | typeof WrongState | typeof Unsizable | typeof ScriptFailed | typeof Capacity | typeof Internal)[], false, typeof Action.Anyone>;
|
|
674
745
|
readonly prebuildCheckpoint: Action.Action<"prebuildCheckpoint", Schema.Struct<{
|
|
675
746
|
readonly base: Schema.String;
|
|
676
747
|
readonly cpu: Schema.Int;
|
|
@@ -709,9 +780,9 @@ declare const actionsByName: {
|
|
|
709
780
|
readonly cpu: Schema.Int;
|
|
710
781
|
readonly ramMib: Schema.Int;
|
|
711
782
|
readonly diskGib: Schema.Int;
|
|
712
|
-
readonly state: Schema.Literals<readonly ["running", "stopped", "missing", "unknown"]>;
|
|
713
|
-
readonly desired: Schema.Literals<readonly ["running", "stopped", "deleted"]>;
|
|
714
|
-
readonly phase: Schema.Literals<readonly ["observing", "waiting", "creating", "starting", "stopping", "deleting", "settled", "failed", "lost"]>;
|
|
783
|
+
readonly state: Schema.Literals<readonly ["running", "stopped", "paused", "missing", "unknown"]>;
|
|
784
|
+
readonly desired: Schema.Literals<readonly ["running", "stopped", "paused", "deleted"]>;
|
|
785
|
+
readonly phase: Schema.Literals<readonly ["observing", "waiting", "creating", "starting", "stopping", "pausing", "deleting", "settled", "failed", "lost"]>;
|
|
715
786
|
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof Invalid, typeof NotFound, typeof Conflict, typeof Superseded, typeof NotOffered, typeof NotMade, typeof Missing, typeof PinMismatch, typeof WrongState, typeof Unsizable, typeof ScriptFailed, typeof Capacity, typeof Internal]>>;
|
|
716
787
|
readonly ssh: Schema.optionalKey<Schema.Struct<{
|
|
717
788
|
readonly host: Schema.String;
|
|
@@ -740,9 +811,9 @@ declare const actionsByName: {
|
|
|
740
811
|
readonly cpu: Schema.Int;
|
|
741
812
|
readonly ramMib: Schema.Int;
|
|
742
813
|
readonly diskGib: Schema.Int;
|
|
743
|
-
readonly state: Schema.Literals<readonly ["running", "stopped", "missing", "unknown"]>;
|
|
744
|
-
readonly desired: Schema.Literals<readonly ["running", "stopped", "deleted"]>;
|
|
745
|
-
readonly phase: Schema.Literals<readonly ["observing", "waiting", "creating", "starting", "stopping", "deleting", "settled", "failed", "lost"]>;
|
|
814
|
+
readonly state: Schema.Literals<readonly ["running", "stopped", "paused", "missing", "unknown"]>;
|
|
815
|
+
readonly desired: Schema.Literals<readonly ["running", "stopped", "paused", "deleted"]>;
|
|
816
|
+
readonly phase: Schema.Literals<readonly ["observing", "waiting", "creating", "starting", "stopping", "pausing", "deleting", "settled", "failed", "lost"]>;
|
|
746
817
|
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof Invalid, typeof NotFound, typeof Conflict, typeof Superseded, typeof NotOffered, typeof NotMade, typeof Missing, typeof PinMismatch, typeof WrongState, typeof Unsizable, typeof ScriptFailed, typeof Capacity, typeof Internal]>>;
|
|
747
818
|
readonly ssh: Schema.optionalKey<Schema.Struct<{
|
|
748
819
|
readonly host: Schema.String;
|
|
@@ -771,9 +842,9 @@ declare const actionsByName: {
|
|
|
771
842
|
readonly cpu: Schema.Int;
|
|
772
843
|
readonly ramMib: Schema.Int;
|
|
773
844
|
readonly diskGib: Schema.Int;
|
|
774
|
-
readonly state: Schema.Literals<readonly ["running", "stopped", "missing", "unknown"]>;
|
|
775
|
-
readonly desired: Schema.Literals<readonly ["running", "stopped", "deleted"]>;
|
|
776
|
-
readonly phase: Schema.Literals<readonly ["observing", "waiting", "creating", "starting", "stopping", "deleting", "settled", "failed", "lost"]>;
|
|
845
|
+
readonly state: Schema.Literals<readonly ["running", "stopped", "paused", "missing", "unknown"]>;
|
|
846
|
+
readonly desired: Schema.Literals<readonly ["running", "stopped", "paused", "deleted"]>;
|
|
847
|
+
readonly phase: Schema.Literals<readonly ["observing", "waiting", "creating", "starting", "stopping", "pausing", "deleting", "settled", "failed", "lost"]>;
|
|
777
848
|
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof Invalid, typeof NotFound, typeof Conflict, typeof Superseded, typeof NotOffered, typeof NotMade, typeof Missing, typeof PinMismatch, typeof WrongState, typeof Unsizable, typeof ScriptFailed, typeof Capacity, typeof Internal]>>;
|
|
778
849
|
readonly ssh: Schema.optionalKey<Schema.Struct<{
|
|
779
850
|
readonly host: Schema.String;
|
|
@@ -804,18 +875,15 @@ type Kind = typeof Kind.Type;
|
|
|
804
875
|
* guest, for whom the host installs the operator's keys. Tart's bases ship it; never root.
|
|
805
876
|
*/
|
|
806
877
|
declare const loginUser = "admin";
|
|
807
|
-
/** What the operator asked a machine to be; the host keeps moving the machine toward it. */
|
|
808
|
-
declare const Desired: Schema.Literals<readonly ["running", "stopped", "deleted"]>;
|
|
809
|
-
type Desired = typeof Desired.Type;
|
|
810
878
|
/**
|
|
811
879
|
* What the host is doing about a machine. A request waits for a rest: `settled`, at rest with what
|
|
812
880
|
* was asked; `failed`, after a step failed, until the next request; `lost`, one the runtime no
|
|
813
881
|
* longer has, which can only be deleted; and `waiting`, one the runtime can't read, which fails the
|
|
814
882
|
* request and is read again at the host's next recheck. `creating` copies the machine and runs its
|
|
815
883
|
* setup, and a machine whose create or setup fails is deleted. `starting` starts the machine, also
|
|
816
|
-
* when it runs already, and prepares it.
|
|
884
|
+
* when it runs already, resumes a paused one, and prepares it.
|
|
817
885
|
*/
|
|
818
|
-
declare const Phase: Schema.Literals<readonly ["observing", "waiting", "creating", "starting", "stopping", "deleting", "settled", "failed", "lost"]>;
|
|
886
|
+
declare const Phase: Schema.Literals<readonly ["observing", "waiting", "creating", "starting", "stopping", "pausing", "deleting", "settled", "failed", "lost"]>;
|
|
819
887
|
type Phase = typeof Phase.Type;
|
|
820
888
|
declare const SshEndpoint: Schema.Struct<{
|
|
821
889
|
readonly host: Schema.String;
|
|
@@ -846,12 +914,13 @@ declare const TailnetStatus: Schema.Union<readonly [Schema.Struct<{
|
|
|
846
914
|
}>]>;
|
|
847
915
|
type TailnetStatus = typeof TailnetStatus.Type;
|
|
848
916
|
/**
|
|
849
|
-
* `state` is what the runtime reports: `
|
|
850
|
-
* when it
|
|
851
|
-
*
|
|
852
|
-
*
|
|
853
|
-
* preparation has recorded it. `tailnet` is
|
|
854
|
-
* to a tailnet, once the host has checked
|
|
917
|
+
* `state` is what the runtime reports: `paused` while it holds the machine's saved execution,
|
|
918
|
+
* `missing` when it doesn't have the machine, and `unknown` when it couldn't be read. `desired` is
|
|
919
|
+
* what the last request asked for, `phase` what the host is doing about it, and `error` why the
|
|
920
|
+
* last step failed, until the next request. `ssh` is only on a running machine whose runtime gives
|
|
921
|
+
* it an endpoint, and `hostKey`, `<type> <base64>`, once preparation has recorded it. `tailnet` is
|
|
922
|
+
* on a running machine of a host that joins its machines to a tailnet, once the host has checked
|
|
923
|
+
* it.
|
|
855
924
|
*/
|
|
856
925
|
declare const Machine: Schema.Struct<{
|
|
857
926
|
readonly id: Schema.String;
|
|
@@ -862,9 +931,9 @@ declare const Machine: Schema.Struct<{
|
|
|
862
931
|
readonly cpu: Schema.Int;
|
|
863
932
|
readonly ramMib: Schema.Int;
|
|
864
933
|
readonly diskGib: Schema.Int;
|
|
865
|
-
readonly state: Schema.Literals<readonly ["running", "stopped", "missing", "unknown"]>;
|
|
866
|
-
readonly desired: Schema.Literals<readonly ["running", "stopped", "deleted"]>;
|
|
867
|
-
readonly phase: Schema.Literals<readonly ["observing", "waiting", "creating", "starting", "stopping", "deleting", "settled", "failed", "lost"]>;
|
|
934
|
+
readonly state: Schema.Literals<readonly ["running", "stopped", "paused", "missing", "unknown"]>;
|
|
935
|
+
readonly desired: Schema.Literals<readonly ["running", "stopped", "paused", "deleted"]>;
|
|
936
|
+
readonly phase: Schema.Literals<readonly ["observing", "waiting", "creating", "starting", "stopping", "pausing", "deleting", "settled", "failed", "lost"]>;
|
|
868
937
|
readonly error: Schema.optionalKey<Schema.Union<readonly [typeof Invalid, typeof NotFound, typeof Conflict, typeof Superseded, typeof NotOffered, typeof NotMade, typeof Missing, typeof PinMismatch, typeof WrongState, typeof Unsizable, typeof ScriptFailed, typeof Capacity, typeof Internal]>>;
|
|
869
938
|
readonly ssh: Schema.optionalKey<Schema.Struct<{
|
|
870
939
|
readonly host: Schema.String;
|
|
@@ -1105,4 +1174,4 @@ declare class Client extends Client_base {}
|
|
|
1105
1174
|
declare const make: (hosts: ReadonlyArray<HostEntry>, options?: Options) => Effect.Effect<Interface, Invalid, HttpClient.HttpClient>;
|
|
1106
1175
|
declare const layer: (hosts: ReadonlyArray<HostEntry>, options?: Options) => Layer.Layer<Client, Invalid, HttpClient.HttpClient>;
|
|
1107
1176
|
//#endregion
|
|
1108
|
-
export {
|
|
1177
|
+
export { ClankerboxError as A, PinMismatch as B, loginUser as C, actionsByName as D, Http as E, Invalid as F, WrongState as G, Superseded as H, Missing as I, hostErrors as K, NotFound as L, Desired as M, HostError as N, readTimeout as O, Internal as P, NotMade as R, Usage as S, Declared as T, Unavailable as U, ScriptFailed as V, Unsizable as W, Reading as _, Options as a, SshLogin as b, CreateRequest as c, Machine as d, MachineSpec as f, PublicKeys as g, Prebuilt as h, Interface as i, Conflict as j, Capacity as k, Host as l, PrebuildRequest as m, CreateOptions as n, client_d_exports as o, Phase as p, retryable as q, HostEntry as r, Checkpoint as s, Client as t, Kind as u, Setup as v, stateLabel as w, TailnetStatus as x, SshEndpoint as y, NotOffered as z };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as ClankerboxError, B as PinMismatch, C as loginUser, D as actionsByName, E as Http, F as Invalid, G as WrongState, H as Superseded, I as Missing, K as hostErrors, L as NotFound, M as Desired, N as HostError, O as readTimeout, P as Internal, R as NotMade, S as Usage, T as Declared, U as Unavailable, V as ScriptFailed, W as Unsizable, _ as Reading, b as SshLogin, c as CreateRequest, d as Machine, f as MachineSpec, g as PublicKeys, h as Prebuilt, i as Interface, j as Conflict, k as Capacity, l as Host, m as PrebuildRequest, n as CreateOptions$1, o as client_d_exports, p as Phase, q as retryable, s as Checkpoint, u as Kind, v as Setup, w as stateLabel, x as TailnetStatus, y as SshEndpoint, z as NotOffered } from "./client-Cdz6BWfg.mjs";
|
|
2
2
|
import { Effect, FileSystem, Path, PlatformError, Schema, Scope } from "effect";
|
|
3
3
|
//#region src/ids.d.ts
|
|
4
4
|
export declare const HostId: Schema.String;
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
|
|
2
|
-
import { A as
|
|
2
|
+
import { A as Name, B as Invalid, C as SshLogin, D as stateLabel, E as loginUser, F as ClankerboxError, G as PinMismatch, H as NotFound, I as Conflict, J as Unavailable, K as ScriptFailed, L as Desired, M as parseId, N as parseName, O as HostId, P as Capacity, Q as retryable, R as HostError, S as SshEndpoint, T as Usage, U as NotMade, V as Missing, W as NotOffered, X as WrongState, Y as Unsizable, Z as hostErrors, _ as Phase, a as release, b as PublicKeys, c as Http, d as Checkpoint, f as CreateRequest, g as MachineSpec, h as Machine, i as describeIssues, j as formatId, k as Id, l as actionsByName, m as Kind, o as version, p as Host, q as Superseded, r as describeFileError, s as versionHeader, t as client_exports, u as readTimeout, v as PrebuildRequest, w as TailnetStatus, x as Setup, y as Prebuilt, z as Internal } from "./client-BFhJ4z-h.mjs";
|
|
3
3
|
import { Effect, FileSystem, Option, Path, Predicate, Record, Schema } from "effect";
|
|
4
4
|
import { Base64, Hex } from "effect/encoding";
|
|
5
5
|
//#region src/prebuild.ts
|
package/dist/node.d.mts
CHANGED
package/dist/node.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjermundgaraba/clankerbox-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.0",
|
|
4
4
|
"description": "clankerbox's API contract and client library, for Effect",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@effect/platform-node": "4.0.5",
|
|
32
32
|
"@effect/vitest": "4.0.5",
|
|
33
|
-
"@gjermundgaraba/effect-actions": "0.
|
|
33
|
+
"@gjermundgaraba/effect-actions": "0.19.0",
|
|
34
34
|
"@types/node": "26.6.5",
|
|
35
35
|
"effect": "4.0.5",
|
|
36
36
|
"typescript": "7.0.2",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@effect/platform-node": "~4.0.4",
|
|
43
|
-
"@gjermundgaraba/effect-actions": "^0.
|
|
43
|
+
"@gjermundgaraba/effect-actions": "^0.19.0",
|
|
44
44
|
"effect": "~4.0.4"
|
|
45
45
|
},
|
|
46
46
|
"peerDependenciesMeta": {
|