@usine/orchestrator 0.3.0 → 0.4.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.
- package/LICENSE +661 -21
- package/README.md +32 -9
- package/dist/board/items.d.ts +14 -3
- package/dist/board/items.d.ts.map +1 -1
- package/dist/board/items.js +29 -1
- package/dist/board/items.js.map +1 -1
- package/dist/board/projection.d.ts +2 -1
- package/dist/board/projection.d.ts.map +1 -1
- package/dist/board/projection.js +20 -10
- package/dist/board/projection.js.map +1 -1
- package/dist/board/tasks.d.ts +1 -1
- package/dist/board/tasks.d.ts.map +1 -1
- package/dist/board/tasks.js +7 -3
- package/dist/board/tasks.js.map +1 -1
- package/dist/cloudflare.d.ts +32 -0
- package/dist/cloudflare.d.ts.map +1 -0
- package/dist/cloudflare.js +68 -0
- package/dist/cloudflare.js.map +1 -0
- package/dist/current-instance/changes.d.ts +3 -3
- package/dist/current-instance/changes.d.ts.map +1 -1
- package/dist/current-instance/changes.js +6 -3
- package/dist/current-instance/changes.js.map +1 -1
- package/dist/current-instance/current-instance.d.ts +3 -3
- package/dist/exe-dev.d.ts +1 -1
- package/dist/exe-dev.d.ts.map +1 -1
- package/dist/exe-dev.js +3 -1
- package/dist/exe-dev.js.map +1 -1
- package/dist/http-client.d.ts +8 -0
- package/dist/http-client.d.ts.map +1 -0
- package/dist/http-client.js +8 -0
- package/dist/http-client.js.map +1 -0
- package/dist/lease-order.d.ts +60 -0
- package/dist/lease-order.d.ts.map +1 -0
- package/dist/lease-order.js +76 -0
- package/dist/lease-order.js.map +1 -0
- package/dist/local.d.ts +1 -1
- package/dist/local.d.ts.map +1 -1
- package/dist/local.js +3 -1
- package/dist/local.js.map +1 -1
- package/dist/operator/attempt.d.ts +22 -3
- package/dist/operator/attempt.d.ts.map +1 -1
- package/dist/operator/attempt.js +22 -3
- package/dist/operator/attempt.js.map +1 -1
- package/dist/operator/board.d.ts +8 -3
- package/dist/operator/board.d.ts.map +1 -1
- package/dist/operator/board.js +8 -4
- package/dist/operator/board.js.map +1 -1
- package/dist/operator/configuration.d.ts +65 -9
- package/dist/operator/configuration.d.ts.map +1 -1
- package/dist/operator/configuration.js +90 -10
- package/dist/operator/configuration.js.map +1 -1
- package/dist/operator/desk.d.ts +33 -8
- package/dist/operator/desk.d.ts.map +1 -1
- package/dist/operator/desk.js +73 -11
- package/dist/operator/desk.js.map +1 -1
- package/dist/operator/http.d.ts +14 -79
- package/dist/operator/http.d.ts.map +1 -1
- package/dist/operator/http.js +20 -14
- package/dist/operator/http.js.map +1 -1
- package/dist/operator/machines.d.ts +71 -0
- package/dist/operator/machines.d.ts.map +1 -0
- package/dist/operator/machines.js +103 -0
- package/dist/operator/machines.js.map +1 -0
- package/dist/operator/need.d.ts +15 -1
- package/dist/operator/need.d.ts.map +1 -1
- package/dist/operator/need.js +15 -0
- package/dist/operator/need.js.map +1 -1
- package/dist/operator/operator.d.ts +36 -10
- package/dist/operator/operator.d.ts.map +1 -1
- package/dist/operator/operator.js +136 -31
- package/dist/operator/operator.js.map +1 -1
- package/dist/operator/overview.d.ts +2 -2
- package/dist/operator/projection.d.ts +2 -0
- package/dist/operator/projection.d.ts.map +1 -1
- package/dist/operator/projection.js +12 -4
- package/dist/operator/projection.js.map +1 -1
- package/dist/operator/run.d.ts +30 -0
- package/dist/operator/run.d.ts.map +1 -1
- package/dist/operator/run.js +31 -1
- package/dist/operator/run.js.map +1 -1
- package/dist/operator/statistics/cache.d.ts +7 -0
- package/dist/operator/statistics/cache.d.ts.map +1 -0
- package/dist/operator/statistics/cache.js +40 -0
- package/dist/operator/statistics/cache.js.map +1 -0
- package/dist/operator/statistics/runs.d.ts +36 -0
- package/dist/operator/statistics/runs.d.ts.map +1 -0
- package/dist/operator/statistics/runs.js +284 -0
- package/dist/operator/statistics/runs.js.map +1 -0
- package/dist/operator/statistics/statistics.d.ts +20 -0
- package/dist/operator/statistics/statistics.d.ts.map +1 -0
- package/dist/operator/statistics/statistics.js +138 -0
- package/dist/operator/statistics/statistics.js.map +1 -0
- package/dist/operator/statistics/tasks.d.ts +30 -0
- package/dist/operator/statistics/tasks.d.ts.map +1 -0
- package/dist/operator/statistics/tasks.js +244 -0
- package/dist/operator/statistics/tasks.js.map +1 -0
- package/dist/operator/statistics/view.d.ts +302 -0
- package/dist/operator/statistics/view.d.ts.map +1 -0
- package/dist/operator/statistics/view.js +243 -0
- package/dist/operator/statistics/view.js.map +1 -0
- package/dist/operator/statistics/window.d.ts +24 -0
- package/dist/operator/statistics/window.d.ts.map +1 -0
- package/dist/operator/statistics/window.js +47 -0
- package/dist/operator/statistics/window.js.map +1 -0
- package/dist/operator/task.d.ts +2 -1
- package/dist/operator/task.d.ts.map +1 -1
- package/dist/operator/task.js +3 -3
- package/dist/operator/task.js.map +1 -1
- package/dist/operator/usage.d.ts +10 -18
- package/dist/operator/usage.d.ts.map +1 -1
- package/dist/operator/usage.js +57 -42
- package/dist/operator/usage.js.map +1 -1
- package/dist/polling/closed-item-asks.d.ts +8 -0
- package/dist/polling/closed-item-asks.d.ts.map +1 -0
- package/dist/polling/closed-item-asks.js +28 -0
- package/dist/polling/closed-item-asks.js.map +1 -0
- package/dist/polling/open-pull-requests.d.ts +28 -0
- package/dist/polling/open-pull-requests.d.ts.map +1 -0
- package/dist/polling/open-pull-requests.js +131 -0
- package/dist/polling/open-pull-requests.js.map +1 -0
- package/dist/polling/polling.d.ts.map +1 -1
- package/dist/polling/polling.js +31 -18
- package/dist/polling/polling.js.map +1 -1
- package/dist/polling/repository-sync.d.ts +1 -0
- package/dist/polling/repository-sync.d.ts.map +1 -1
- package/dist/polling/repository-sync.js +1 -1
- package/dist/polling/repository-sync.js.map +1 -1
- package/dist/runtime.d.ts +2 -2
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +10 -10
- package/dist/runtime.js.map +1 -1
- package/dist/scheduler.d.ts +13 -4
- package/dist/scheduler.d.ts.map +1 -1
- package/dist/scheduler.js +312 -55
- package/dist/scheduler.js.map +1 -1
- package/dist/ssh.d.ts +71 -7
- package/dist/ssh.d.ts.map +1 -1
- package/dist/ssh.js +84 -15
- package/dist/ssh.js.map +1 -1
- package/dist/worker-engine.d.ts +7 -4
- package/dist/worker-engine.d.ts.map +1 -1
- package/dist/worker-engine.js +36 -5
- package/dist/worker-engine.js.map +1 -1
- package/dist/worker-status.d.ts +80 -10
- package/dist/worker-status.d.ts.map +1 -1
- package/dist/worker-status.js +31 -10
- package/dist/worker-status.js.map +1 -1
- package/package.json +29 -25
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import type { SshWorker } from "@usine/config/factory";
|
|
2
|
+
import { type MachineStatus } from "@usine/executor";
|
|
3
|
+
import { Schema } from "effect";
|
|
4
|
+
import type { ProvisioningPause } from "../worker-status.ts";
|
|
5
|
+
declare const MachineView_base: Schema.Class<MachineView, Schema.Struct<{
|
|
6
|
+
readonly worker: Schema.brand<Schema.String, "WorkerName">;
|
|
7
|
+
readonly provider: Schema.Literals<readonly ["hetzner", "boat"]>;
|
|
8
|
+
readonly state: Schema.Literals<readonly ["creating", "ready", "deleting"]>;
|
|
9
|
+
/** The provider's ID, or null until the provider accepts the creation. */
|
|
10
|
+
readonly id: Schema.NullOr<Schema.brand<Schema.String, "MachineId">>;
|
|
11
|
+
/** The Run it was created for, or null for a machine found after a restart. */
|
|
12
|
+
readonly runId: Schema.NullOr<Schema.brand<Schema.NonEmptyString, "RunId">>;
|
|
13
|
+
/** The Attempt it serves, or null until the Attempt starts. */
|
|
14
|
+
readonly attemptId: Schema.NullOr<Schema.brand<Schema.NonEmptyString, "AttemptId">>;
|
|
15
|
+
/** When its creation started, or when the provider created a machine found after a restart, as an ISO instant. */
|
|
16
|
+
readonly since: Schema.String;
|
|
17
|
+
}>, {}>;
|
|
18
|
+
/** A machine that a provisioned Worker created for one Attempt and hasn't deleted yet. */
|
|
19
|
+
export declare class MachineView extends MachineView_base {
|
|
20
|
+
}
|
|
21
|
+
declare const ProvisioningPauseView_base: Schema.Class<ProvisioningPauseView, Schema.Struct<{
|
|
22
|
+
/** Why the creation failed, or `check` if the first machine of the day failed its preflight. */
|
|
23
|
+
readonly reason: Schema.Union<readonly [Schema.Literals<readonly ["capacity", "quota", "refused", "provider", "unreachable", "timeout"]>, Schema.Literal<"check">]>;
|
|
24
|
+
readonly message: Schema.String;
|
|
25
|
+
/** The number of failed creations in a row. */
|
|
26
|
+
readonly failures: Schema.Int;
|
|
27
|
+
readonly failedAt: Schema.String;
|
|
28
|
+
readonly retryAt: Schema.String;
|
|
29
|
+
/** Whether the Worker waits for `retryAt` before it creates a machine. */
|
|
30
|
+
readonly blocked: Schema.Boolean;
|
|
31
|
+
}>, {}>;
|
|
32
|
+
/** A provisioned Worker whose last machine creation failed, and when it tries again. */
|
|
33
|
+
export declare class ProvisioningPauseView extends ProvisioningPauseView_base {
|
|
34
|
+
}
|
|
35
|
+
declare const HetznerProvisionerView_base: Schema.Class<HetznerProvisionerView, Schema.TaggedStruct<"hetzner", {
|
|
36
|
+
readonly tokenEnv: Schema.String;
|
|
37
|
+
readonly serverType: Schema.brand<Schema.String, "HetznerServerType">;
|
|
38
|
+
readonly location: Schema.brand<Schema.String, "HetznerLocation">;
|
|
39
|
+
readonly image: Schema.brand<Schema.String, "HetznerImage">;
|
|
40
|
+
readonly network: Schema.NullOr<Schema.brand<Schema.String, "HetznerResourceName">>;
|
|
41
|
+
readonly firewall: Schema.withConstructorDefault<Schema.NullOr<Schema.brand<Schema.String, "HetznerResourceName">>>;
|
|
42
|
+
readonly sshKey: Schema.brand<Schema.String, "HetznerResourceName">;
|
|
43
|
+
readonly sshUser: Schema.brand<Schema.String, "SshUser">;
|
|
44
|
+
readonly labels: Schema.$Record<Schema.String, Schema.String>;
|
|
45
|
+
/** The variable with the Anthropic API key for each Attempt, or null. */
|
|
46
|
+
readonly anthropicKeyEnv: Schema.NullOr<Schema.String>;
|
|
47
|
+
/** The variable with the OpenAI API key for each Attempt, or null. */
|
|
48
|
+
readonly openaiKeyEnv: Schema.NullOr<Schema.String>;
|
|
49
|
+
}>, {}>;
|
|
50
|
+
/** A Hetzner Cloud provisioner from `usine.yaml`, with the names of its variables only. */
|
|
51
|
+
export declare class HetznerProvisionerView extends HetznerProvisionerView_base {
|
|
52
|
+
}
|
|
53
|
+
declare const BoatProvisionerView_base: Schema.Class<BoatProvisionerView, Schema.TaggedStruct<"boat", {
|
|
54
|
+
readonly tokenEnv: Schema.String;
|
|
55
|
+
readonly size: Schema.Literals<readonly ["small", "default", "large", "xlarge"]>;
|
|
56
|
+
/** The variable with the Anthropic API key for each Attempt, or null. */
|
|
57
|
+
readonly anthropicKeyEnv: Schema.NullOr<Schema.String>;
|
|
58
|
+
/** The variable with the OpenAI API key for each Attempt, or null. */
|
|
59
|
+
readonly openaiKeyEnv: Schema.NullOr<Schema.String>;
|
|
60
|
+
}>, {}>;
|
|
61
|
+
/** A Boat provisioner from `usine.yaml`, with the names of its variables only. */
|
|
62
|
+
export declare class BoatProvisionerView extends BoatProvisionerView_base {
|
|
63
|
+
}
|
|
64
|
+
export declare const ProvisionerView: Schema.Union<readonly [typeof HetznerProvisionerView, typeof BoatProvisionerView]>;
|
|
65
|
+
export type ProvisionerView = typeof ProvisionerView.Type;
|
|
66
|
+
export declare const machineView: (machine: MachineStatus) => MachineView;
|
|
67
|
+
export declare const provisioningPauseView: (pause: ProvisioningPause) => ProvisioningPauseView;
|
|
68
|
+
/** Returns the operator view of an SSH Worker's provisioner, or null for a long-lived machine. */
|
|
69
|
+
export declare const provisionerView: (worker: SshWorker) => ProvisionerView | null;
|
|
70
|
+
export {};
|
|
71
|
+
//# sourceMappingURL=machines.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"machines.d.ts","sourceRoot":"","sources":["../../src/operator/machines.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAcvD,OAAO,EAAgB,KAAK,aAAa,EAA4B,MAAM,iBAAiB,CAAC;AAC7F,OAAO,EAA4B,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;;;;;IAO3D,0EAA0E;;IAE1E,+EAA+E;;IAE/E,+DAA+D;;IAE/D,kHAAkH;;;AAXpH,0FAA0F;AAC1F,qBAAa,WAAY,SAAQ,gBAY/B;CAAG;;IAMH,gGAAgG;;;IAGhG,+CAA+C;;;;IAI/C,0EAA0E;;;AAX5E,wFAAwF;AACxF,qBAAa,qBAAsB,SAAQ,0BAYzC;CAAG;;;;;;;;;;;IAiBH,yEAAyE;;IAEzE,sEAAsE;;;AAjBxE,2FAA2F;AAC3F,qBAAa,sBAAuB,SAAQ,2BAkB1C;CAAG;;;;IAQH,yEAAyE;;IAEzE,sEAAsE;;;AARxE,kFAAkF;AAClF,qBAAa,mBAAoB,SAAQ,wBASvC;CAAG;AAEL,eAAO,MAAM,eAAe,oFAA8D,CAAC;AAC3F,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAC,IAAI,CAAC;AAE1D,eAAO,MAAM,WAAW,YAAa,aAAa,KAAG,WASjD,CAAC;AAEL,eAAO,MAAM,qBAAqB,UAAW,iBAAiB,KAAG,qBAQ7D,CAAC;AAEL,kGAAkG;AAClG,eAAO,MAAM,eAAe,WAAY,SAAS,KAAG,eAAe,GAAG,IAwBlE,CAAC"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { AttemptId } from "@usine/core/attempt";
|
|
2
|
+
import { RunId } from "@usine/core/run";
|
|
3
|
+
import { BoatSize, HetznerImage, HetznerLocation, HetznerResourceName, HetznerServerType, MachineId, MachineProvider, SshUser, WorkerName, } from "@usine/core/worker";
|
|
4
|
+
import { MachineState, MachineUnavailableReason } from "@usine/executor";
|
|
5
|
+
import { DateTime, Effect, Option, Schema } from "effect";
|
|
6
|
+
/** A machine that a provisioned Worker created for one Attempt and hasn't deleted yet. */
|
|
7
|
+
export class MachineView extends Schema.Class("@usine/orchestrator/MachineView")({
|
|
8
|
+
worker: WorkerName,
|
|
9
|
+
provider: MachineProvider,
|
|
10
|
+
state: MachineState,
|
|
11
|
+
/** The provider's ID, or null until the provider accepts the creation. */
|
|
12
|
+
id: Schema.NullOr(MachineId),
|
|
13
|
+
/** The Run it was created for, or null for a machine found after a restart. */
|
|
14
|
+
runId: Schema.NullOr(RunId),
|
|
15
|
+
/** The Attempt it serves, or null until the Attempt starts. */
|
|
16
|
+
attemptId: Schema.NullOr(AttemptId),
|
|
17
|
+
/** When its creation started, or when the provider created a machine found after a restart, as an ISO instant. */
|
|
18
|
+
since: Schema.String,
|
|
19
|
+
}) {
|
|
20
|
+
}
|
|
21
|
+
/** A provisioned Worker whose last machine creation failed, and when it tries again. */
|
|
22
|
+
export class ProvisioningPauseView extends Schema.Class("@usine/orchestrator/ProvisioningPauseView")({
|
|
23
|
+
/** Why the creation failed, or `check` if the first machine of the day failed its preflight. */
|
|
24
|
+
reason: Schema.Union([MachineUnavailableReason, Schema.Literal("check")]),
|
|
25
|
+
message: Schema.String,
|
|
26
|
+
/** The number of failed creations in a row. */
|
|
27
|
+
failures: Schema.Int,
|
|
28
|
+
failedAt: Schema.String,
|
|
29
|
+
retryAt: Schema.String,
|
|
30
|
+
/** Whether the Worker waits for `retryAt` before it creates a machine. */
|
|
31
|
+
blocked: Schema.Boolean,
|
|
32
|
+
}) {
|
|
33
|
+
}
|
|
34
|
+
/** A Hetzner Cloud provisioner from `usine.yaml`, with the names of its variables only. */
|
|
35
|
+
export class HetznerProvisionerView extends Schema.TaggedClass("@usine/orchestrator/HetznerProvisionerView")("hetzner", {
|
|
36
|
+
tokenEnv: Schema.String,
|
|
37
|
+
serverType: HetznerServerType,
|
|
38
|
+
location: HetznerLocation,
|
|
39
|
+
image: HetznerImage,
|
|
40
|
+
network: Schema.NullOr(HetznerResourceName),
|
|
41
|
+
firewall: Schema.NullOr(HetznerResourceName).pipe(Schema.withConstructorDefault(Effect.succeed(null))),
|
|
42
|
+
sshKey: HetznerResourceName,
|
|
43
|
+
sshUser: SshUser,
|
|
44
|
+
labels: Schema.Record(Schema.String, Schema.String),
|
|
45
|
+
/** The variable with the Anthropic API key for each Attempt, or null. */
|
|
46
|
+
anthropicKeyEnv: Schema.NullOr(Schema.String),
|
|
47
|
+
/** The variable with the OpenAI API key for each Attempt, or null. */
|
|
48
|
+
openaiKeyEnv: Schema.NullOr(Schema.String),
|
|
49
|
+
}) {
|
|
50
|
+
}
|
|
51
|
+
/** A Boat provisioner from `usine.yaml`, with the names of its variables only. */
|
|
52
|
+
export class BoatProvisionerView extends Schema.TaggedClass("@usine/orchestrator/BoatProvisionerView")("boat", {
|
|
53
|
+
tokenEnv: Schema.String,
|
|
54
|
+
size: BoatSize,
|
|
55
|
+
/** The variable with the Anthropic API key for each Attempt, or null. */
|
|
56
|
+
anthropicKeyEnv: Schema.NullOr(Schema.String),
|
|
57
|
+
/** The variable with the OpenAI API key for each Attempt, or null. */
|
|
58
|
+
openaiKeyEnv: Schema.NullOr(Schema.String),
|
|
59
|
+
}) {
|
|
60
|
+
}
|
|
61
|
+
export const ProvisionerView = Schema.Union([HetznerProvisionerView, BoatProvisionerView]);
|
|
62
|
+
export const machineView = (machine) => new MachineView({
|
|
63
|
+
worker: machine.worker,
|
|
64
|
+
provider: machine.provider,
|
|
65
|
+
state: machine.state,
|
|
66
|
+
id: Option.getOrNull(machine.id),
|
|
67
|
+
runId: Option.getOrNull(machine.runId),
|
|
68
|
+
attemptId: Option.getOrNull(machine.attemptId),
|
|
69
|
+
since: DateTime.formatIso(machine.since),
|
|
70
|
+
});
|
|
71
|
+
export const provisioningPauseView = (pause) => new ProvisioningPauseView({
|
|
72
|
+
reason: pause.reason,
|
|
73
|
+
message: pause.message,
|
|
74
|
+
failures: pause.failures,
|
|
75
|
+
failedAt: DateTime.formatIso(pause.failedAt),
|
|
76
|
+
retryAt: DateTime.formatIso(pause.retryAt),
|
|
77
|
+
blocked: pause.blocked,
|
|
78
|
+
});
|
|
79
|
+
/** Returns the operator view of an SSH Worker's provisioner, or null for a long-lived machine. */
|
|
80
|
+
export const provisionerView = (worker) => Option.match(worker.provisioner, {
|
|
81
|
+
onNone: () => null,
|
|
82
|
+
onSome: (settings) => settings.provider === "hetzner"
|
|
83
|
+
? new HetznerProvisionerView({
|
|
84
|
+
tokenEnv: settings.tokenEnv,
|
|
85
|
+
serverType: settings.serverType,
|
|
86
|
+
location: settings.location,
|
|
87
|
+
image: settings.image,
|
|
88
|
+
network: Option.getOrNull(settings.network),
|
|
89
|
+
firewall: Option.getOrNull(settings.firewall),
|
|
90
|
+
sshKey: settings.sshKey,
|
|
91
|
+
sshUser: settings.sshUser,
|
|
92
|
+
labels: settings.labels,
|
|
93
|
+
anthropicKeyEnv: Option.getOrNull(settings.apiKeys.anthropic),
|
|
94
|
+
openaiKeyEnv: Option.getOrNull(settings.apiKeys.openai),
|
|
95
|
+
})
|
|
96
|
+
: new BoatProvisionerView({
|
|
97
|
+
tokenEnv: settings.tokenEnv,
|
|
98
|
+
size: settings.size,
|
|
99
|
+
anthropicKeyEnv: Option.getOrNull(settings.apiKeys.anthropic),
|
|
100
|
+
openaiKeyEnv: Option.getOrNull(settings.apiKeys.openai),
|
|
101
|
+
}),
|
|
102
|
+
});
|
|
103
|
+
//# sourceMappingURL=machines.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"machines.js","sourceRoot":"","sources":["../../src/operator/machines.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,SAAS,EACT,eAAe,EACf,OAAO,EACP,UAAU,GACX,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAsB,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAC7F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M;YACvB,OAAO,EAAE,QAAQ,CAAC,OAAO;YACzB,MAAM,EAAE,QAAQ,CAAC,MAAM;YACvB,eAAe,EAAE,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC;YAC7D,YAAY,EAAE,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC;SACxD,CAAC;QACJ,CAAC,CAAC,IAAI,mBAAmB,CAAC;YACtB,QAAQ,EAAE,QAAQ,CAAC,QAAQ;YAC3B,IAAI,EAAE,QAAQ,CAAC,IAAI;YACnB,eAAe,EAAE,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC;YAC7D,YAAY,EAAE,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC;SACxD,CAAC;CACT,CAAC,CAAC"}
|
package/dist/operator/need.d.ts
CHANGED
|
@@ -83,6 +83,20 @@ declare const UnconfiguredWorkerNeed_base: Schema.Class<UnconfiguredWorkerNeed,
|
|
|
83
83
|
*/
|
|
84
84
|
export declare class UnconfiguredWorkerNeed extends UnconfiguredWorkerNeed_base {
|
|
85
85
|
}
|
|
86
|
+
declare const UnconfirmedStopNeed_base: Schema.Class<UnconfirmedStopNeed, Schema.TaggedStruct<"UnconfirmedStopNeed", {
|
|
87
|
+
readonly id: Schema.String;
|
|
88
|
+
readonly repository: Schema.brand<Schema.String, "RepositoryName">;
|
|
89
|
+
readonly runId: Schema.brand<Schema.NonEmptyString, "RunId">;
|
|
90
|
+
readonly loop: Schema.brand<Schema.NonEmptyString, "LoopName">;
|
|
91
|
+
readonly attemptNumber: Schema.brand<Schema.Int, "AttemptNumber">;
|
|
92
|
+
readonly worker: Schema.brand<Schema.String, "WorkerName">;
|
|
93
|
+
}>, {}>;
|
|
94
|
+
/**
|
|
95
|
+
* A closed Attempt whose parent task couldn't be confirmed stopped. It is still ending on `worker`
|
|
96
|
+
* and takes one of its slots until a retried stop succeeds (#475).
|
|
97
|
+
*/
|
|
98
|
+
export declare class UnconfirmedStopNeed extends UnconfirmedStopNeed_base {
|
|
99
|
+
}
|
|
86
100
|
declare const CycleBudgetNeed_base: Schema.Class<CycleBudgetNeed, Schema.TaggedStruct<"CycleBudgetNeed", {
|
|
87
101
|
readonly id: Schema.String;
|
|
88
102
|
readonly ask: typeof CycleBudgetAsk;
|
|
@@ -93,7 +107,7 @@ declare const CycleBudgetNeed_base: Schema.Class<CycleBudgetNeed, Schema.TaggedS
|
|
|
93
107
|
export declare class CycleBudgetNeed extends CycleBudgetNeed_base {
|
|
94
108
|
}
|
|
95
109
|
/** One reason the overview asks for operator attention. */
|
|
96
|
-
export declare const NeedView: Schema.Union<readonly [typeof CycleBudgetNeed, typeof ApprovalNeed, typeof BoardProjectionNeed, typeof RunFailureNeed, typeof PollFailureNeed, typeof PreflightFindingNeed, typeof ScheduleFailureNeed, typeof ConfigFileNeed, typeof UnconfiguredWorkerNeed]>;
|
|
110
|
+
export declare const NeedView: Schema.Union<readonly [typeof CycleBudgetNeed, typeof ApprovalNeed, typeof BoardProjectionNeed, typeof RunFailureNeed, typeof PollFailureNeed, typeof PreflightFindingNeed, typeof ScheduleFailureNeed, typeof ConfigFileNeed, typeof UnconfiguredWorkerNeed, typeof UnconfirmedStopNeed]>;
|
|
97
111
|
export type NeedView = typeof NeedView.Type;
|
|
98
112
|
export {};
|
|
99
113
|
//# sourceMappingURL=need.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"need.d.ts","sourceRoot":"","sources":["../../src/operator/need.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"need.d.ts","sourceRoot":"","sources":["../../src/operator/need.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAGrD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAI1D,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAG/D,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;;;;;;IAU/D;;;OAGG;;;AAXL,gEAAgE;AAChE,qBAAa,YAAa,SAAQ,iBAYhC;CAAG;;;;;;;;AAEL;;;GAGG;AACH,qBAAa,cAAe,SAAQ,mBAQlC;CAAG;;;;;AAEL,+DAA+D;AAC/D,qBAAa,eAAgB,SAAQ,oBAKnC;CAAG;;;;;AAEL,yEAAyE;AACzE,qBAAa,oBAAqB,SAAQ,yBAKxC;CAAG;;;;;AAEL,mDAAmD;AACnD,qBAAa,mBAAoB,SAAQ,wBAKvC;CAAG;;;;;AAEL,iEAAiE;AACjE,qBAAa,mBAAoB,SAAQ,wBAKvC;CAAG;;;;;;AAEL;;;GAGG;AACH,qBAAa,cAAe,SAAQ,mBAMlC;CAAG;;;;;;;;AAEL;;;GAGG;AACH,qBAAa,sBAAuB,SAAQ,2BAgB3C;CAAG;;;;;;;;;AAEJ;;;GAGG;AACH,qBAAa,mBAAoB,SAAQ,wBASvC;CAAG;;;;;;;AAEL,oFAAoF;AACpF,qBAAa,eAAgB,SAAQ,oBAQpC;CAAG;AAEJ,2DAA2D;AAC3D,eAAO,MAAM,QAAQ,4RAWnB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC,IAAI,CAAC"}
|
package/dist/operator/need.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ConfigFileError } from "@usine/config/file";
|
|
2
|
+
import { AttemptNumber } from "@usine/core/attempt";
|
|
2
3
|
import { LoopName } from "@usine/core/loop";
|
|
3
4
|
import { CycleBudgetAsk } from "@usine/core/cycle-budget";
|
|
4
5
|
import { RepositoryName } from "@usine/core/repository";
|
|
@@ -84,6 +85,19 @@ export class UnconfiguredWorkerNeed extends Schema.TaggedClass("@usine/orchestra
|
|
|
84
85
|
message: "Expected no more open attempts than attempts",
|
|
85
86
|
}))) {
|
|
86
87
|
}
|
|
88
|
+
/**
|
|
89
|
+
* A closed Attempt whose parent task couldn't be confirmed stopped. It is still ending on `worker`
|
|
90
|
+
* and takes one of its slots until a retried stop succeeds (#475).
|
|
91
|
+
*/
|
|
92
|
+
export class UnconfirmedStopNeed extends Schema.TaggedClass("@usine/orchestrator/UnconfirmedStopNeed")("UnconfirmedStopNeed", {
|
|
93
|
+
id: Schema.String,
|
|
94
|
+
repository: RepositoryName,
|
|
95
|
+
runId: RunId,
|
|
96
|
+
loop: LoopName,
|
|
97
|
+
attemptNumber: AttemptNumber,
|
|
98
|
+
worker: WorkerName,
|
|
99
|
+
}) {
|
|
100
|
+
}
|
|
87
101
|
/** An Item that stopped opening Runs until the operator resets its cycle budget. */
|
|
88
102
|
export class CycleBudgetNeed extends Schema.TaggedClass("CycleBudgetNeed")("CycleBudgetNeed", {
|
|
89
103
|
id: Schema.String,
|
|
@@ -103,5 +117,6 @@ export const NeedView = Schema.Union([
|
|
|
103
117
|
ScheduleFailureNeed,
|
|
104
118
|
ConfigFileNeed,
|
|
105
119
|
UnconfiguredWorkerNeed,
|
|
120
|
+
UnconfirmedStopNeed,
|
|
106
121
|
]);
|
|
107
122
|
//# sourceMappingURL=need.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"need.js","sourceRoot":"","sources":["../../src/operator/need.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,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AK,EAAE,KAAK;IACZ,IAAI,EAAE,QAAQ;IACd,aAAa,EAAE,aAAa;IAC5B,MAAM,EAAE,UAAU;CACnB,CAAC;CAAG;AAEL,oFAAoF;AACpF,MAAM,OAAO,eAAgB,SAAQ,MAAM,CAAC,WAAW,CAAkB,iBAAiB,CAAC,CACzF,iBAAiB,EACjB;IACE,EAAE,EAAE,MAAM,CAAC,MAAM;IACjB,GAAG,EAAE,cAAc;IACnB,SAAS,EAAE,MAAM,CAAC,MAAM;IACxB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;CACtC,CACF;CAAG;AAEJ,2DAA2D;AAC3D,MAAM,CAAC,MAAM,QAAQ,GAAG,MAAM,CAAC,KAAK,CAAC;IACnC,eAAe;IACf,YAAY;IACZ,mBAAmB;IACnB,cAAc;IACd,eAAe;IACf,oBAAoB;IACpB,mBAAmB;IACnB,cAAc;IACd,sBAAsB;IACtB,mBAAmB;CACpB,CAAC,CAAC"}
|
|
@@ -7,8 +7,8 @@ import { LoopName } from "@usine/core/loop";
|
|
|
7
7
|
import { RunId } from "@usine/core/run";
|
|
8
8
|
import type { WorkerName } from "@usine/core/worker";
|
|
9
9
|
import type { ItemNumber } from "@usine/core/item";
|
|
10
|
-
import type
|
|
11
|
-
import { type RunAgainResult, RunEngine, type EnginePersistenceError, type LeftoversDiscardRejectedError, type RunEngineError, type RunStoreError } from "@usine/engine/engine";
|
|
10
|
+
import { type RepositoryName } from "@usine/core/repository";
|
|
11
|
+
import { type RunAgainResult, RunEngine, type EnginePersistenceError, type LeftoversDiscardRejectedError, type RunEngineError, type RunStoreError, UnconfirmedStops } from "@usine/engine/engine";
|
|
12
12
|
import { ItemProjectionReader } from "@usine/engine/item-projection";
|
|
13
13
|
import { LoopControl, type LoopRuntimeState } from "@usine/engine/loop-control";
|
|
14
14
|
import { RunReader } from "@usine/engine/run-reader";
|
|
@@ -25,6 +25,8 @@ import { RunDetailView, EditAndRetry, LoopNotFoundError, SessionIntervention, Ro
|
|
|
25
25
|
import { type RunGitHubChangesError, type RunGitHubChangesView } from "./github-changes.ts";
|
|
26
26
|
import { type TaskReadError, type TaskView } from "./task.ts";
|
|
27
27
|
import { type DeskView } from "./desk.ts";
|
|
28
|
+
import type { RunStatisticsView, StatisticsView, StatisticsWindow } from "./statistics/view.ts";
|
|
29
|
+
import { WorkerStatus } from "../worker-status.ts";
|
|
28
30
|
export type BoardMoveError = BoardItemNotFoundError | BoardLaneNotFoundError | BoardLaneReadOnlyError | BoardProjectNotFoundError | EnginePersistenceError | RunStoreError | GitHubAppError;
|
|
29
31
|
export type OperatorError = LoopNotFoundError | RosterAgentNotFoundError | RunEngineError | LeftoversDiscardRejectedError | TranscriptAttemptNotFoundError | BoardMoveError | CycleBudgetResetRejectedError | RunGitHubChangesError;
|
|
30
32
|
export type OperatorObservationError = RunStoreError | TranscriptAttemptNotFoundError;
|
|
@@ -50,10 +52,21 @@ declare const OperatorObservation_base: Context.ServiceClass<OperatorObservation
|
|
|
50
52
|
* closed Runs, Worker slots and preflights, and poll times.
|
|
51
53
|
*/
|
|
52
54
|
readonly desk: (instance: LoadedInstance) => Effect.Effect<DeskView, OperatorObservationError>;
|
|
55
|
+
/**
|
|
56
|
+
* Computes the tasks done in `window`: their count and duration from first Run to merge, the
|
|
57
|
+
* split of that time and of their tokens by Loop, the first-time-right share, and the operator
|
|
58
|
+
* actions per task.
|
|
59
|
+
*/
|
|
60
|
+
readonly statistics: (instance: LoadedInstance, window: StatisticsWindow) => Effect.Effect<StatisticsView, OperatorObservationError>;
|
|
61
|
+
/**
|
|
62
|
+
* Computes how the Runs went in `window`: closed Runs by outcome, Loop, Agent, and brain, with
|
|
63
|
+
* time, tokens, and cost, and the throughput, Worker, retry, and Needs attention measures.
|
|
64
|
+
*/
|
|
65
|
+
readonly runStatistics: (instance: LoadedInstance, window: StatisticsWindow) => Effect.Effect<RunStatisticsView, OperatorObservationError>;
|
|
53
66
|
}>;
|
|
54
67
|
/** The read-only operator surface, which needs no trigger execution. */
|
|
55
68
|
export declare class OperatorObservation extends OperatorObservation_base {
|
|
56
|
-
static readonly layer: Layer.Layer<OperatorObservation, never, CycleBudgets | import("@usine/expression/expression-engine").ExpressionEngine | ItemProjectionReader | LoopControl | PollingTriggers | RepositoryLabelProjectionReader | RunReader | ScheduleTriggers |
|
|
69
|
+
static readonly layer: Layer.Layer<OperatorObservation, never, CycleBudgets | import("@usine/expression/expression-engine").ExpressionEngine | ItemProjectionReader | LoopControl | PollingTriggers | RepositoryLabelProjectionReader | RunReader | ScheduleTriggers | UnconfirmedStops | WorkerStatus>;
|
|
57
70
|
}
|
|
58
71
|
declare const Operator_base: Context.ServiceClass<Operator, "@usine/orchestrator/Operator", {
|
|
59
72
|
/**
|
|
@@ -77,6 +90,17 @@ declare const Operator_base: Context.ServiceClass<Operator, "@usine/orchestrator
|
|
|
77
90
|
* closed Runs, Worker slots and preflights, and poll times.
|
|
78
91
|
*/
|
|
79
92
|
readonly desk: (instance: LoadedInstance) => Effect.Effect<DeskView, OperatorObservationError>;
|
|
93
|
+
/**
|
|
94
|
+
* Computes the tasks done in `window`: their count and duration from first Run to merge, the
|
|
95
|
+
* split of that time and of their tokens by Loop, the first-time-right share, and the operator
|
|
96
|
+
* actions per task.
|
|
97
|
+
*/
|
|
98
|
+
readonly statistics: (instance: LoadedInstance, window: StatisticsWindow) => Effect.Effect<StatisticsView, OperatorObservationError>;
|
|
99
|
+
/**
|
|
100
|
+
* Computes how the Runs went in `window`: closed Runs by outcome, Loop, Agent, and brain, with
|
|
101
|
+
* time, tokens, and cost, and the throughput, Worker, retry, and Needs attention measures.
|
|
102
|
+
*/
|
|
103
|
+
readonly runStatistics: (instance: LoadedInstance, window: StatisticsWindow) => Effect.Effect<RunStatisticsView, OperatorObservationError>;
|
|
80
104
|
} & {
|
|
81
105
|
/**
|
|
82
106
|
* Answers the Item's current cycle-budget Ask. Polling refreshes its state before more Runs
|
|
@@ -89,7 +113,7 @@ declare const Operator_base: Context.ServiceClass<Operator, "@usine/orchestrator
|
|
|
89
113
|
*/
|
|
90
114
|
readonly approve: (instance: LoadedInstance, runId: RunId) => Effect.Effect<void, OperatorError>;
|
|
91
115
|
/** Resolves attention for the displayed failed Attempt. Rejects stale requests. */
|
|
92
|
-
readonly resolveFailure: (runId: RunId, attemptId: AttemptId) => Effect.Effect<void, OperatorError>;
|
|
116
|
+
readonly resolveFailure: (instance: LoadedInstance, runId: RunId, attemptId: AttemptId) => Effect.Effect<void, OperatorError>;
|
|
93
117
|
/** Requests a new Attempt for a failed Run with its effective task and Agent. */
|
|
94
118
|
readonly retry: (instance: LoadedInstance, runId: RunId) => Effect.Effect<void, OperatorError>;
|
|
95
119
|
/** Amends a failed Run and requests its next Attempt atomically. */
|
|
@@ -132,17 +156,19 @@ declare const Operator_base: Context.ServiceClass<Operator, "@usine/orchestrator
|
|
|
132
156
|
* The operator's factory view and actions for approving, retrying, canceling, and directing work.
|
|
133
157
|
*/
|
|
134
158
|
export declare class Operator extends Operator_base {
|
|
135
|
-
static readonly layer: Layer.Layer<Operator, never, BoardMoves | CycleBudgets | import("@usine/expression/expression-engine").ExpressionEngine | import("@usine/github/item-history").GitHubItemHistory | GitHubItemWriter | ItemProjectionReader | LoopControl | PollingTriggers | RepositoryLabelProjectionReader | RunEngine | RunReader | ScheduleTriggers |
|
|
159
|
+
static readonly layer: Layer.Layer<Operator, never, BoardMoves | CycleBudgets | import("@usine/expression/expression-engine").ExpressionEngine | import("@usine/github/item-history").GitHubItemHistory | GitHubItemWriter | ItemProjectionReader | LoopControl | PollingTriggers | RepositoryLabelProjectionReader | RunEngine | RunReader | ScheduleTriggers | UnconfirmedStops | WorkerStatus>;
|
|
136
160
|
}
|
|
137
161
|
export { ProjectStatus, ProjectView, LoopView, ReadyOverview, NeedsSetupOverview, FactoryOverview, } from "./overview.ts";
|
|
138
162
|
export { LabelAddedView, LabelRemovedView, CommentedView, ReviewedView, BoardMovedView, GitHubChangeView, AttemptGitHubChangesView, RunGitHubChangesView, } from "./github-changes.ts";
|
|
139
|
-
export { ApprovalView, RunStateTag, RunView, RunDurationView, RunDetailView, EditAndRetry, LoopNotFoundError, SessionIntervention, RosterAgentNotFoundError, } from "./run.ts";
|
|
163
|
+
export { ApprovalView, RunStateTag, RunView, RunDurationView, RunDetailView, UnconfirmedStopView, EditAndRetry, LoopNotFoundError, SessionIntervention, RosterAgentNotFoundError, } from "./run.ts";
|
|
140
164
|
export { UsageCostView, SessionUsageView, PoolUsageView, RunUsageView, TaskPoolUsageView, TaskUsageView, } from "./usage.ts";
|
|
141
|
-
export { InfraFailureView, DefectFailureView, AgentFailureView, BlockedFailureView, QuestionFailureView, RunawayFailureView, ChildSessionBudgetFailureView, FailureView, SucceededAttemptView, FailedAttemptView, CanceledAttemptView, AttemptOutcomeView, LocalWorkerAccess, SshWorkerAccess, WorkerAccess, AttemptView, } from "./attempt.ts";
|
|
165
|
+
export { InfraFailureView, DefectFailureView, AgentFailureView, BlockedFailureView, QuestionFailureView, RunawayFailureView, ChildSessionBudgetFailureView, FailureView, SucceededAttemptView, FailedAttemptView, CanceledAttemptView, AttemptOutcomeView, LocalWorkerAccess, SshWorkerAccess, ProvisionedWorkerAccess, SandboxWorkerAccess, WorkerAccess, AttemptView, } from "./attempt.ts";
|
|
166
|
+
export { MachineView, ProvisioningPauseView, HetznerProvisionerView, BoatProvisionerView, ProvisionerView, } from "./machines.ts";
|
|
142
167
|
export { BoardLaneId, BoardLaneOrigin, BoardItemLink, BoardPullRequestView, BoardTaskView, WritableBoardLaneView, ReadOnlyBoardLaneView, BoardLaneView, BoardProjectionError, BoardView, LabelView, BoardMove, BoardProjectNotFoundError, BoardItemNotFoundError, BoardLaneNotFoundError, BoardLaneReadOnlyError, } from "./board.ts";
|
|
143
168
|
export { TaskItemView, TaskLaneView, TaskCommentView, TaskView, type TaskReadError, } from "./task.ts";
|
|
144
|
-
export { ApprovalNeed, CycleBudgetNeed, RunFailureNeed, PollFailureNeed, PreflightFindingNeed, BoardProjectionNeed, ScheduleFailureNeed, ConfigFileNeed, UnconfiguredWorkerNeed, NeedView, } from "./need.ts";
|
|
145
|
-
export { LoopSelectorView, LoopFileView, QuarantinedLoopView, AgentFileView, InvalidAgentView, GatewayView, WorkerSlotsView, PassedCheckView, FailedCheckView, PreflightCheckView, HarnessPreflightView, WorkerConfigurationView, RemovedWorkerView, LabelStateView, LabelLaneSourceView, StateLaneSourceView, LaneSourceView, LaneConfigurationView, RepositoryConfigurationView, SettingsView, ConfigurationView, OperatorConfiguration, } from "./configuration.ts";
|
|
146
|
-
export { WorkerSilentView, ProviderRetryingView, ConnectivityWarningView, RunningAttemptView, SuppressedForOperatorView, ClosedUnchangedView, RunFailedView, LoopPausedView, CycleBudgetUsedUpView, AwaitingApprovalView, QueuedForWorkerView, AwaitingPollView, StallReasonView, StalledItemView, ClosedRunView, WorkerView, RepositoryPollView, DeskView, } from "./desk.ts";
|
|
169
|
+
export { ApprovalNeed, CycleBudgetNeed, RunFailureNeed, PollFailureNeed, PreflightFindingNeed, BoardProjectionNeed, ScheduleFailureNeed, ConfigFileNeed, UnconfiguredWorkerNeed, UnconfirmedStopNeed, NeedView, } from "./need.ts";
|
|
170
|
+
export { LoopSelectorView, LoopFileView, QuarantinedLoopView, AgentFileView, InvalidAgentView, GatewayView, WorkerSlotsView, PassedCheckView, DegradedCheckView, DeferredCheckView, FailedCheckView, PreflightCheckView, ContainerView, HarnessPreflightView, WorkerConfigurationView, RemovedWorkerView, LabelStateView, LabelLaneSourceView, StateLaneSourceView, LaneSourceView, LaneConfigurationView, RepositoryConfigurationView, SettingsView, ConfigurationView, OperatorConfiguration, } from "./configuration.ts";
|
|
171
|
+
export { WorkerSilentView, ProviderRetryingView, ConnectivityWarningView, RunningAttemptView, SuppressedForOperatorView, ClosedUnchangedView, RunFailedView, LoopPausedView, WaitingForStopView, CycleBudgetUsedUpView, AwaitingApprovalView, QueuedForWorkerView, AwaitingPollView, StallReasonView, StalledItemView, ClosedRunView, WorkerView, RepositoryPollView, DeskView, } from "./desk.ts";
|
|
172
|
+
export { StatisticsWindow, StatisticsBucket, TaskDoneView, TaskPeriodView, LoopShareView, LoopRunTimeView, TaskTimeView, TaskCostView, TaskTokensView, UntimedTasksView, StatisticsView, DurationSummaryView, OutcomeCountsView, PoolTokensView, CostSummaryView, UsageSummaryView, LoopStatisticsView, AgentStatisticsView, BrainStatisticsView, ThroughputPeriodView, WorkerQueueWaitView, AttemptCountView, WorkerUtilizationView, NeedsAttentionPeriodView, NeedsAttentionView, RunStatisticsView, } from "./statistics/view.ts";
|
|
147
173
|
export { FailedTranscriptView, TranscriptPayload, TranscriptEventView, TranscriptPageCursor, ColdTranscriptRequest, TailTranscriptRequest, EarlierTranscriptRequest, TranscriptRequest, TranscriptAttemptNotFoundError, } from "./transcript.ts";
|
|
148
174
|
//# sourceMappingURL=operator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operator.d.ts","sourceRoot":"","sources":["../../src/operator/operator.ts"],"names":[],"mappings":"AAIA,OAAO,EAAkB,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAmB,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,KAAK,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AAC9F,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"operator.d.ts","sourceRoot":"","sources":["../../src/operator/operator.ts"],"names":[],"mappings":"AAIA,OAAO,EAAkB,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,OAAO,E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