@usine/engine 0.1.0 → 0.3.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.
Files changed (156) hide show
  1. package/README.md +39 -12
  2. package/dist/cursor/{store.d.ts → cursor.d.ts} +9 -7
  3. package/dist/cursor/cursor.d.ts.map +1 -0
  4. package/dist/cursor/{store.js → cursor.js} +8 -7
  5. package/dist/cursor/cursor.js.map +1 -0
  6. package/dist/cycle-budget/cycle-budget.d.ts +25 -0
  7. package/dist/cycle-budget/cycle-budget.d.ts.map +1 -0
  8. package/dist/cycle-budget/cycle-budget.js +117 -0
  9. package/dist/cycle-budget/cycle-budget.js.map +1 -0
  10. package/dist/cycle-budget/model.d.ts +26 -0
  11. package/dist/cycle-budget/model.d.ts.map +1 -0
  12. package/dist/cycle-budget/model.js +20 -0
  13. package/dist/cycle-budget/model.js.map +1 -0
  14. package/dist/cycle-budget/queries.d.ts +27 -0
  15. package/dist/cycle-budget/queries.d.ts.map +1 -0
  16. package/dist/cycle-budget/queries.js +175 -0
  17. package/dist/cycle-budget/queries.js.map +1 -0
  18. package/dist/database/database.d.ts +1 -1
  19. package/dist/database/database.d.ts.map +1 -1
  20. package/dist/database/local-sqlite.d.ts +32 -12
  21. package/dist/database/local-sqlite.d.ts.map +1 -1
  22. package/dist/database/local-sqlite.js +121 -16
  23. package/dist/database/local-sqlite.js.map +1 -1
  24. package/dist/database/schema.d.ts +302 -9
  25. package/dist/database/schema.d.ts.map +1 -1
  26. package/dist/database/schema.js +69 -12
  27. package/dist/database/schema.js.map +1 -1
  28. package/dist/engine/engine.d.ts +59 -0
  29. package/dist/engine/engine.d.ts.map +1 -0
  30. package/dist/{engine.js → engine/engine.js} +80 -32
  31. package/dist/engine/engine.js.map +1 -0
  32. package/dist/engine/error.d.ts +45 -0
  33. package/dist/engine/error.d.ts.map +1 -0
  34. package/dist/engine/error.js +49 -0
  35. package/dist/engine/error.js.map +1 -0
  36. package/dist/engine/lifecycle.d.ts +112 -0
  37. package/dist/engine/lifecycle.d.ts.map +1 -0
  38. package/dist/engine/lifecycle.js +132 -0
  39. package/dist/engine/lifecycle.js.map +1 -0
  40. package/dist/engine/shutdown.d.ts +12 -0
  41. package/dist/engine/shutdown.d.ts.map +1 -0
  42. package/dist/engine/shutdown.js +10 -0
  43. package/dist/engine/shutdown.js.map +1 -0
  44. package/dist/engine/submission.d.ts +58 -0
  45. package/dist/engine/submission.d.ts.map +1 -0
  46. package/dist/engine/submission.js +54 -0
  47. package/dist/engine/submission.js.map +1 -0
  48. package/dist/item-projection/{service.d.ts → item-projection.d.ts} +6 -6
  49. package/dist/item-projection/item-projection.d.ts.map +1 -0
  50. package/dist/item-projection/{service.js → item-projection.js} +7 -5
  51. package/dist/item-projection/item-projection.js.map +1 -0
  52. package/dist/item-projection/model.d.ts +2 -5
  53. package/dist/item-projection/model.d.ts.map +1 -1
  54. package/dist/item-projection/model.js +5 -5
  55. package/dist/item-projection/model.js.map +1 -1
  56. package/dist/loop-control/loop-control.d.ts +21 -0
  57. package/dist/loop-control/loop-control.d.ts.map +1 -0
  58. package/dist/{loop-control.js → loop-control/loop-control.js} +7 -5
  59. package/dist/loop-control/loop-control.js.map +1 -0
  60. package/dist/loop-control/model.d.ts +10 -0
  61. package/dist/loop-control/model.d.ts.map +1 -0
  62. package/dist/loop-control/model.js +9 -0
  63. package/dist/loop-control/model.js.map +1 -0
  64. package/dist/repository-label-projection/model.d.ts +12 -3
  65. package/dist/repository-label-projection/model.d.ts.map +1 -1
  66. package/dist/repository-label-projection/model.js +14 -5
  67. package/dist/repository-label-projection/model.js.map +1 -1
  68. package/dist/repository-label-projection/{service.d.ts → repository-label-projection.d.ts} +5 -5
  69. package/dist/repository-label-projection/repository-label-projection.d.ts.map +1 -0
  70. package/dist/repository-label-projection/{service.js → repository-label-projection.js} +17 -7
  71. package/dist/repository-label-projection/repository-label-projection.js.map +1 -0
  72. package/dist/run-reader/model.d.ts +46 -0
  73. package/dist/run-reader/model.d.ts.map +1 -0
  74. package/dist/run-reader/model.js +44 -0
  75. package/dist/run-reader/model.js.map +1 -0
  76. package/dist/run-reader/run-reader.d.ts +29 -0
  77. package/dist/run-reader/run-reader.d.ts.map +1 -0
  78. package/dist/run-reader/run-reader.js +44 -0
  79. package/dist/run-reader/run-reader.js.map +1 -0
  80. package/dist/step-executor.d.ts +36 -12
  81. package/dist/step-executor.d.ts.map +1 -1
  82. package/dist/step-executor.js +22 -5
  83. package/dist/step-executor.js.map +1 -1
  84. package/dist/store/codec.d.ts +278 -40
  85. package/dist/store/codec.d.ts.map +1 -1
  86. package/dist/store/codec.js +72 -44
  87. package/dist/store/codec.js.map +1 -1
  88. package/dist/store/queries.d.ts +49 -16
  89. package/dist/store/queries.d.ts.map +1 -1
  90. package/dist/store/queries.js +104 -91
  91. package/dist/store/queries.js.map +1 -1
  92. package/dist/store/store.d.ts +44 -26
  93. package/dist/store/store.d.ts.map +1 -1
  94. package/dist/store/store.js +199 -128
  95. package/dist/store/store.js.map +1 -1
  96. package/dist/store/transcript.d.ts +9 -0
  97. package/dist/store/transcript.d.ts.map +1 -0
  98. package/dist/store/transcript.js +71 -0
  99. package/dist/store/transcript.js.map +1 -0
  100. package/dist/transcript.d.ts +86 -0
  101. package/dist/transcript.d.ts.map +1 -0
  102. package/dist/transcript.js +77 -0
  103. package/dist/transcript.js.map +1 -0
  104. package/dist/workflow/admission.d.ts +13 -0
  105. package/dist/workflow/admission.d.ts.map +1 -0
  106. package/dist/workflow/admission.js +55 -0
  107. package/dist/workflow/admission.js.map +1 -0
  108. package/dist/workflow/command.d.ts +13 -0
  109. package/dist/workflow/command.d.ts.map +1 -0
  110. package/dist/workflow/command.js +17 -0
  111. package/dist/workflow/command.js.map +1 -0
  112. package/dist/workflow/workflow.d.ts +18 -0
  113. package/dist/workflow/workflow.d.ts.map +1 -0
  114. package/dist/workflow/workflow.js +108 -0
  115. package/dist/workflow/workflow.js.map +1 -0
  116. package/drizzle/20260903091940_queued_approved_runs/migration.sql +3 -0
  117. package/drizzle/20260903091940_queued_approved_runs/snapshot.json +1147 -0
  118. package/drizzle/20260905150403_item_cycle_budgets/migration.sql +58 -0
  119. package/drizzle/20260905150403_item_cycle_budgets/snapshot.json +1417 -0
  120. package/drizzle/20260905174009_item_run_history/migration.sql +1 -0
  121. package/drizzle/20260905174009_item_run_history/snapshot.json +1431 -0
  122. package/drizzle/20260912111855_operator_intervention/migration.sql +42 -0
  123. package/drizzle/20260912111855_operator_intervention/snapshot.json +1461 -0
  124. package/package.json +41 -5
  125. package/dist/cursor/model.d.ts +0 -5
  126. package/dist/cursor/model.d.ts.map +0 -1
  127. package/dist/cursor/model.js +0 -4
  128. package/dist/cursor/model.js.map +0 -1
  129. package/dist/cursor/store.d.ts.map +0 -1
  130. package/dist/cursor/store.js.map +0 -1
  131. package/dist/engine.d.ts +0 -39
  132. package/dist/engine.d.ts.map +0 -1
  133. package/dist/engine.js.map +0 -1
  134. package/dist/index.d.ts +0 -20
  135. package/dist/index.d.ts.map +0 -1
  136. package/dist/index.js +0 -20
  137. package/dist/index.js.map +0 -1
  138. package/dist/item-projection/service.d.ts.map +0 -1
  139. package/dist/item-projection/service.js.map +0 -1
  140. package/dist/loop-control.d.ts +0 -16
  141. package/dist/loop-control.d.ts.map +0 -1
  142. package/dist/loop-control.js.map +0 -1
  143. package/dist/model.d.ts +0 -185
  144. package/dist/model.d.ts.map +0 -1
  145. package/dist/model.js +0 -174
  146. package/dist/model.js.map +0 -1
  147. package/dist/repository-label-projection/service.d.ts.map +0 -1
  148. package/dist/repository-label-projection/service.js.map +0 -1
  149. package/dist/run-reader.d.ts +0 -20
  150. package/dist/run-reader.d.ts.map +0 -1
  151. package/dist/run-reader.js +0 -19
  152. package/dist/run-reader.js.map +0 -1
  153. package/dist/workflow.d.ts +0 -14
  154. package/dist/workflow.d.ts.map +0 -1
  155. package/dist/workflow.js +0 -105
  156. package/dist/workflow.js.map +0 -1
@@ -1,6 +1,17 @@
1
- import { Agent, Attempt, AttemptChannel, Event, Run, RunState, Step, StepResult } from "@usine/core";
1
+ import { Agent } from "@usine/core/agent";
2
+ import { BrainSpec } from "@usine/core/agent/brain";
3
+ import { Attempt } from "@usine/core/attempt";
4
+ import * as AttemptChannel from "@usine/core/attempt/channel";
5
+ import { Event } from "@usine/core/event";
6
+ import { Run } from "@usine/core/run";
7
+ import { Step } from "@usine/core/step";
8
+ import * as RunState from "@usine/core/run/state";
9
+ import { StepResult } from "@usine/core/step/result";
2
10
  import { Effect, Schema } from "effect";
3
- import { RunStoreError, RunSummary, Submission, TranscriptEntry } from "../model.ts";
11
+ import { RunStoreError } from "../engine/error.ts";
12
+ import { Submission } from "../engine/submission.ts";
13
+ import { RunSummary } from "../run-reader/model.ts";
14
+ import { TranscriptEntry } from "../transcript.ts";
4
15
  export declare const EventRouteRow: Schema.Struct<{
5
16
  readonly eventId: Schema.brand<Schema.NonEmptyString, "EventId">;
6
17
  readonly dedupKey: Schema.brand<Schema.NonEmptyString, "DedupKey">;
@@ -10,27 +21,29 @@ export declare const EventRouteRow: Schema.Struct<{
10
21
  readonly loop: Schema.brand<Schema.NonEmptyString, "LoopName">;
11
22
  readonly step: Schema.brand<Schema.NonEmptyString, "StepName">;
12
23
  readonly approval: Schema.Literals<readonly ["none", "required"]>;
13
- readonly repository: Schema.brand<Schema.String, "RepoName">;
24
+ readonly cycleLimit: Schema.NullOr<Schema.brand<Schema.Int, "CycleLimit">>;
25
+ readonly cycleGeneration: Schema.brand<Schema.Int, "CycleGeneration">;
26
+ readonly repository: Schema.brand<Schema.String, "RepositoryName">;
14
27
  readonly revision: Schema.brand<Schema.String, "RepositoryRevision">;
15
28
  readonly task: Schema.brand<Schema.String, "AttemptTask">;
16
- readonly agent: typeof Agent.Agent;
29
+ readonly agent: typeof Agent;
17
30
  readonly parentModel: Schema.NullOr<Schema.brand<Schema.String, "ModelId">>;
18
31
  }>;
19
32
  export type EventRouteRow = typeof EventRouteRow.Type;
20
33
  export declare const RunRow: Schema.Struct<{
21
34
  readonly itemKey: Schema.brand<Schema.NonEmptyString, "ItemKey">;
22
- readonly repository: Schema.brand<Schema.String, "RepoName">;
35
+ readonly repository: Schema.brand<Schema.String, "RepositoryName">;
23
36
  readonly revision: Schema.brand<Schema.String, "RepositoryRevision">;
24
37
  readonly task: Schema.brand<Schema.String, "AttemptTask">;
25
- readonly agent: typeof Agent.Agent;
38
+ readonly agent: typeof Agent;
26
39
  readonly parentModel: Schema.NullOr<Schema.brand<Schema.String, "ModelId">>;
27
40
  readonly runId: Schema.brand<Schema.NonEmptyString, "RunId">;
28
41
  readonly eventId: Schema.brand<Schema.NonEmptyString, "EventId">;
29
42
  readonly loop: Schema.brand<Schema.NonEmptyString, "LoopName">;
30
- readonly state: Schema.Union<readonly [typeof RunState.Pending, typeof RunState.Waiting, typeof RunState.Running, typeof RunState.Succeeded, typeof RunState.Failed, typeof RunState.Canceled]>;
43
+ readonly state: Schema.Union<readonly [typeof RunState.Pending, typeof RunState.Waiting, typeof RunState.Queued, typeof RunState.Running, typeof RunState.Succeeded, typeof RunState.Failed, typeof RunState.Canceled]>;
31
44
  readonly openedAt: Schema.DateTimeUtcFromString;
32
45
  readonly stepName: Schema.brand<Schema.NonEmptyString, "StepName">;
33
- readonly result: Schema.NullOr<typeof StepResult.StepResult>;
46
+ readonly result: Schema.NullOr<typeof StepResult>;
34
47
  }>;
35
48
  export type RunRow = typeof RunRow.Type;
36
49
  export declare const AttemptRow: Schema.Struct<{
@@ -39,17 +52,50 @@ export declare const AttemptRow: Schema.Struct<{
39
52
  readonly stepName: Schema.brand<Schema.NonEmptyString, "StepName">;
40
53
  readonly worker: Schema.brand<Schema.String, "WorkerName">;
41
54
  readonly number: Schema.brand<Schema.Int, "AttemptNumber">;
42
- readonly brain: typeof Agent.BrainSpec;
55
+ readonly brain: typeof BrainSpec;
56
+ readonly task: Schema.brand<Schema.String, "AttemptTask">;
57
+ readonly agent: Schema.brand<Schema.String, "AgentName">;
58
+ readonly operatorIntervened: Schema.Boolean;
43
59
  readonly parentModel: Schema.NullOr<Schema.brand<Schema.String, "ModelId">>;
44
60
  readonly startedAt: Schema.DateTimeUtcFromString;
45
- readonly outcome: Schema.NullOr<Schema.Union<readonly [typeof Attempt.Succeeded, typeof Attempt.Failed, typeof Attempt.Canceled]>>;
61
+ readonly outcome: Schema.NullOr<Schema.Union<readonly [typeof import("@usine/core/attempt/outcome").AttemptSucceeded, typeof import("@usine/core/attempt/outcome").AttemptFailed, typeof import("@usine/core/attempt/outcome").AttemptCanceled]>>;
46
62
  }>;
47
63
  export type AttemptRow = typeof AttemptRow.Type;
48
64
  export declare const TranscriptRow: Schema.Struct<{
49
65
  readonly sequence: Schema.brand<Schema.Int, "TranscriptSequence">;
50
66
  readonly attemptId: Schema.brand<Schema.NonEmptyString, "AttemptId">;
51
67
  readonly direction: Schema.Literals<readonly ["inbound", "outbound"]>;
52
- readonly envelope: Schema.Union<readonly [typeof AttemptChannel.OutboundEnvelope, typeof AttemptChannel.InboundEnvelope]>;
68
+ readonly envelope: Schema.Union<readonly [Schema.Union<readonly [typeof AttemptChannel.OutboundEnvelope, typeof AttemptChannel.InboundEnvelope]>, Schema.Struct<{
69
+ readonly _tag: Schema.tag<"OutboundEnvelope">;
70
+ readonly attemptId: Schema.brand<Schema.NonEmptyString, "AttemptId">;
71
+ readonly sequence: Schema.brand<Schema.Int, "AttemptChannelSequence">;
72
+ readonly sentAt: Schema.DateTimeUtcFromString;
73
+ readonly payload: Schema.Union<readonly [typeof AttemptChannel.Started, typeof AttemptChannel.SessionEvent, typeof AttemptChannel.Final, typeof AttemptChannel.Failed, typeof AttemptChannel.Interrupted, typeof AttemptChannel.InterventionApplied, typeof AttemptChannel.InterventionRejected]>;
74
+ readonly version: Schema.Literal<5>;
75
+ }>, Schema.Struct<{
76
+ readonly _tag: Schema.tag<"InboundEnvelope">;
77
+ readonly attemptId: Schema.brand<Schema.NonEmptyString, "AttemptId">;
78
+ readonly sequence: Schema.brand<Schema.Int, "AttemptChannelSequence">;
79
+ readonly sentAt: Schema.DateTimeUtcFromString;
80
+ readonly target: Schema.withDecodingDefaultKey<Schema.Union<readonly [typeof AttemptChannel.ParentTarget, typeof AttemptChannel.ChildTarget]>, never>;
81
+ readonly operator: Schema.NonEmptyString;
82
+ readonly payload: Schema.Union<readonly [Schema.Union<readonly [typeof AttemptChannel.Steer, typeof AttemptChannel.Interrupt, typeof AttemptChannel.OperatorMessage, typeof AttemptChannel.Release]>, typeof AttemptChannel.Cancel]>;
83
+ readonly version: Schema.Literal<5>;
84
+ }>, Schema.Struct<{
85
+ readonly _tag: Schema.tag<"OutboundEnvelope">;
86
+ readonly attemptId: Schema.brand<Schema.NonEmptyString, "AttemptId">;
87
+ readonly sequence: Schema.brand<Schema.Int, "AttemptChannelSequence">;
88
+ readonly sentAt: Schema.DateTimeUtcFromString;
89
+ readonly payload: Schema.Union<readonly [typeof AttemptChannel.Started, typeof AttemptChannel.SessionEvent, typeof AttemptChannel.Final, typeof AttemptChannel.Failed, typeof AttemptChannel.Interrupted, typeof AttemptChannel.InterventionApplied, typeof AttemptChannel.InterventionRejected]>;
90
+ readonly version: Schema.Literals<readonly [3, 4]>;
91
+ }>, Schema.Struct<{
92
+ readonly _tag: Schema.Literal<"InboundEnvelope">;
93
+ readonly version: Schema.Literals<readonly [3, 4]>;
94
+ readonly attemptId: Schema.brand<Schema.NonEmptyString, "AttemptId">;
95
+ readonly sequence: Schema.brand<Schema.Int, "AttemptChannelSequence">;
96
+ readonly sentAt: Schema.DateTimeUtcFromString;
97
+ readonly payload: Schema.Union<readonly [typeof AttemptChannel.Steer, typeof AttemptChannel.Interrupt]>;
98
+ }>]>;
53
99
  readonly receivedAt: Schema.DateTimeUtcFromString;
54
100
  }>;
55
101
  export type TranscriptRow = typeof TranscriptRow.Type;
@@ -67,26 +113,28 @@ export declare const decodeEventRoutes: (input: unknown, options?: import("effec
67
113
  readonly loop: string & import("effect/Brand").Brand<"LoopName">;
68
114
  readonly step: string & import("effect/Brand").Brand<"StepName">;
69
115
  readonly approval: "none" | "required";
70
- readonly repository: string & import("effect/Brand").Brand<"RepoName">;
116
+ readonly cycleLimit: (number & import("effect/Brand").Brand<"CycleLimit">) | null;
117
+ readonly cycleGeneration: number & import("effect/Brand").Brand<"CycleGeneration">;
118
+ readonly repository: string & import("effect/Brand").Brand<"RepositoryName">;
71
119
  readonly revision: string & import("effect/Brand").Brand<"RepositoryRevision">;
72
120
  readonly task: string & import("effect/Brand").Brand<"AttemptTask">;
73
- readonly agent: Agent.Agent;
121
+ readonly agent: Agent;
74
122
  readonly parentModel: (string & import("effect/Brand").Brand<"ModelId">) | null;
75
123
  }[], Schema.SchemaError, never>;
76
124
  export declare const decodeRunRows: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => Effect.Effect<readonly {
77
125
  readonly itemKey: string & import("effect/Brand").Brand<"ItemKey">;
78
- readonly repository: string & import("effect/Brand").Brand<"RepoName">;
126
+ readonly repository: string & import("effect/Brand").Brand<"RepositoryName">;
79
127
  readonly revision: string & import("effect/Brand").Brand<"RepositoryRevision">;
80
128
  readonly task: string & import("effect/Brand").Brand<"AttemptTask">;
81
- readonly agent: Agent.Agent;
129
+ readonly agent: Agent;
82
130
  readonly parentModel: (string & import("effect/Brand").Brand<"ModelId">) | null;
83
131
  readonly runId: string & import("effect/Brand").Brand<"RunId">;
84
132
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
85
133
  readonly loop: string & import("effect/Brand").Brand<"LoopName">;
86
- readonly state: RunState.Canceled | RunState.Failed | RunState.Pending | RunState.Running | RunState.Succeeded | RunState.Waiting;
134
+ readonly state: RunState.Canceled | RunState.Failed | RunState.Pending | RunState.Queued | RunState.Running | RunState.Succeeded | RunState.Waiting;
87
135
  readonly openedAt: import("effect/DateTime").Utc;
88
136
  readonly stepName: string & import("effect/Brand").Brand<"StepName">;
89
- readonly result: StepResult.StepResult | null;
137
+ readonly result: StepResult | null;
90
138
  }[], Schema.SchemaError, never>;
91
139
  export declare const decodeAttemptRows: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => Effect.Effect<readonly {
92
140
  readonly attemptId: string & import("effect/Brand").Brand<"AttemptId">;
@@ -94,10 +142,13 @@ export declare const decodeAttemptRows: (input: unknown, options?: import("effec
94
142
  readonly stepName: string & import("effect/Brand").Brand<"StepName">;
95
143
  readonly worker: string & import("effect/Brand").Brand<"WorkerName">;
96
144
  readonly number: number & import("effect/Brand").Brand<"AttemptNumber">;
97
- readonly brain: Agent.BrainSpec;
145
+ readonly brain: BrainSpec;
146
+ readonly task: string & import("effect/Brand").Brand<"AttemptTask">;
147
+ readonly agent: string & import("effect/Brand").Brand<"AgentName">;
148
+ readonly operatorIntervened: boolean;
98
149
  readonly parentModel: (string & import("effect/Brand").Brand<"ModelId">) | null;
99
150
  readonly startedAt: import("effect/DateTime").Utc;
100
- readonly outcome: Attempt.Canceled | Attempt.Failed | Attempt.Succeeded | null;
151
+ readonly outcome: import("@usine/core/attempt/outcome").AttemptCanceled | import("@usine/core/attempt/outcome").AttemptFailed | import("@usine/core/attempt/outcome").AttemptSucceeded | null;
101
152
  }[], Schema.SchemaError, never>;
102
153
  export declare const decodeRecoverableRuns: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => Effect.Effect<readonly {
103
154
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
@@ -108,13 +159,15 @@ export declare const decodeRecoverableRuns: (input: unknown, options?: import("e
108
159
  readonly loop: string & import("effect/Brand").Brand<"LoopName">;
109
160
  readonly step: string & import("effect/Brand").Brand<"StepName">;
110
161
  readonly approval: "none" | "required";
111
- readonly repository: string & import("effect/Brand").Brand<"RepoName">;
162
+ readonly cycleLimit: (number & import("effect/Brand").Brand<"CycleLimit">) | null;
163
+ readonly cycleGeneration: number & import("effect/Brand").Brand<"CycleGeneration">;
164
+ readonly repository: string & import("effect/Brand").Brand<"RepositoryName">;
112
165
  readonly revision: string & import("effect/Brand").Brand<"RepositoryRevision">;
113
166
  readonly task: string & import("effect/Brand").Brand<"AttemptTask">;
114
- readonly agent: Agent.Agent;
167
+ readonly agent: Agent;
115
168
  readonly parentModel: (string & import("effect/Brand").Brand<"ModelId">) | null;
116
169
  readonly runId: string & import("effect/Brand").Brand<"RunId">;
117
- readonly state: RunState.Canceled | RunState.Failed | RunState.Pending | RunState.Running | RunState.Succeeded | RunState.Waiting;
170
+ readonly state: RunState.Canceled | RunState.Failed | RunState.Pending | RunState.Queued | RunState.Running | RunState.Succeeded | RunState.Waiting;
118
171
  }[], Schema.SchemaError, never>;
119
172
  export declare const decodeRunIds: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => Effect.Effect<readonly {
120
173
  readonly runId: string & import("effect/Brand").Brand<"RunId">;
@@ -133,19 +186,51 @@ export declare const decodeTranscriptRows: (input: unknown, options?: import("ef
133
186
  readonly sequence: number & import("effect/Brand").Brand<"TranscriptSequence">;
134
187
  readonly attemptId: string & import("effect/Brand").Brand<"AttemptId">;
135
188
  readonly direction: "inbound" | "outbound";
136
- readonly envelope: AttemptChannel.InboundEnvelope | AttemptChannel.OutboundEnvelope;
189
+ readonly envelope: AttemptChannel.InboundEnvelope | AttemptChannel.OutboundEnvelope | {
190
+ readonly _tag: "OutboundEnvelope";
191
+ readonly attemptId: string & import("effect/Brand").Brand<"AttemptId">;
192
+ readonly sequence: number & import("effect/Brand").Brand<"AttemptChannelSequence">;
193
+ readonly sentAt: import("effect/DateTime").Utc;
194
+ readonly payload: AttemptChannel.Failed | AttemptChannel.Final | AttemptChannel.Interrupted | AttemptChannel.InterventionApplied | AttemptChannel.InterventionRejected | AttemptChannel.SessionEvent | AttemptChannel.Started;
195
+ readonly version: 5;
196
+ } | {
197
+ readonly _tag: "InboundEnvelope";
198
+ readonly attemptId: string & import("effect/Brand").Brand<"AttemptId">;
199
+ readonly sequence: number & import("effect/Brand").Brand<"AttemptChannelSequence">;
200
+ readonly sentAt: import("effect/DateTime").Utc;
201
+ readonly target: AttemptChannel.ChildTarget | AttemptChannel.ParentTarget;
202
+ readonly operator: string;
203
+ readonly payload: AttemptChannel.Cancel | AttemptChannel.Interrupt | AttemptChannel.OperatorMessage | AttemptChannel.Release | AttemptChannel.Steer;
204
+ readonly version: 5;
205
+ } | {
206
+ readonly _tag: "OutboundEnvelope";
207
+ readonly attemptId: string & import("effect/Brand").Brand<"AttemptId">;
208
+ readonly sequence: number & import("effect/Brand").Brand<"AttemptChannelSequence">;
209
+ readonly sentAt: import("effect/DateTime").Utc;
210
+ readonly payload: AttemptChannel.Failed | AttemptChannel.Final | AttemptChannel.Interrupted | AttemptChannel.InterventionApplied | AttemptChannel.InterventionRejected | AttemptChannel.SessionEvent | AttemptChannel.Started;
211
+ readonly version: 3 | 4;
212
+ } | {
213
+ readonly _tag: "InboundEnvelope";
214
+ readonly version: 3 | 4;
215
+ readonly attemptId: string & import("effect/Brand").Brand<"AttemptId">;
216
+ readonly sequence: number & import("effect/Brand").Brand<"AttemptChannelSequence">;
217
+ readonly sentAt: import("effect/DateTime").Utc;
218
+ readonly payload: AttemptChannel.Interrupt | AttemptChannel.Steer;
219
+ };
137
220
  readonly receivedAt: import("effect/DateTime").Utc;
138
221
  }[], Schema.SchemaError, never>;
139
222
  export declare const encodePayload: (input: Schema.Json, options?: import("effect/SchemaAST").ParseOptions) => Schema.Json;
140
223
  export declare const encodeDateTime: (input: import("effect/DateTime").Utc, options?: import("effect/SchemaAST").ParseOptions) => string;
141
- export declare const encodeRunState: (input: RunState.Canceled | RunState.Failed | RunState.Pending | RunState.Running | RunState.Succeeded | RunState.Waiting, options?: import("effect/SchemaAST").ParseOptions) => {
224
+ export declare const encodeRunState: (input: RunState.Canceled | RunState.Failed | RunState.Pending | RunState.Queued | RunState.Running | RunState.Succeeded | RunState.Waiting, options?: import("effect/SchemaAST").ParseOptions) => {
225
+ readonly _tag: "Succeeded";
226
+ } | {
142
227
  readonly _tag: "Pending";
143
228
  } | {
144
229
  readonly _tag: "Waiting";
145
230
  } | {
146
- readonly _tag: "Running";
231
+ readonly _tag: "Queued";
147
232
  } | {
148
- readonly _tag: "Succeeded";
233
+ readonly _tag: "Running";
149
234
  } | {
150
235
  readonly _tag: "Failed";
151
236
  } | {
@@ -159,7 +244,7 @@ export declare const encodeRunState: (input: RunState.Canceled | RunState.Failed
159
244
  readonly _tag: "Revoked";
160
245
  };
161
246
  };
162
- export declare const encodeOutcome: (input: Attempt.Canceled | Attempt.Failed | Attempt.Succeeded, options?: import("effect/SchemaAST").ParseOptions) => {
247
+ export declare const encodeOutcome: (input: import("@usine/core/attempt/outcome").AttemptCanceled | import("@usine/core/attempt/outcome").AttemptFailed | import("@usine/core/attempt/outcome").AttemptSucceeded, options?: import("effect/SchemaAST").ParseOptions) => {
163
248
  readonly _tag: "Succeeded";
164
249
  } | {
165
250
  readonly _tag: "Failed";
@@ -167,17 +252,25 @@ export declare const encodeOutcome: (input: Attempt.Canceled | Attempt.Failed |
167
252
  readonly _tag: "InfraFailure";
168
253
  readonly message: string;
169
254
  readonly cause: Schema.Json;
255
+ } | {
256
+ readonly _tag: "DefectFailure";
257
+ readonly message: string;
258
+ readonly cause: Schema.Json;
170
259
  } | {
171
260
  readonly _tag: "AgentFailure";
172
261
  readonly message: string;
173
262
  } | {
174
263
  readonly _tag: "RunawayFailure";
175
264
  readonly ceiling: "tokens" | "wall-clock";
265
+ } | {
266
+ readonly _tag: "ChildSessionBudgetFailure";
267
+ readonly maxChildren: number;
268
+ readonly attemptedChildren: number;
176
269
  };
177
270
  } | {
178
271
  readonly _tag: "Canceled";
179
272
  };
180
- export declare const encodeStepResult: (input: StepResult.StepResult, options?: import("effect/SchemaAST").ParseOptions) => {
273
+ export declare const encodeStepResult: (input: StepResult, options?: import("effect/SchemaAST").ParseOptions) => {
181
274
  readonly message: string;
182
275
  readonly facts: readonly ({
183
276
  readonly _tag: "Commit";
@@ -186,15 +279,15 @@ export declare const encodeStepResult: (input: StepResult.StepResult, options?:
186
279
  } | {
187
280
  readonly _tag: "PullRequest";
188
281
  readonly number: number;
189
- readonly url: URL;
282
+ readonly url: string;
190
283
  } | {
191
284
  readonly _tag: "Comment";
192
- readonly url: URL;
285
+ readonly url: string;
193
286
  })[];
194
287
  };
195
288
  export declare const encodeEnvelope: (input: AttemptChannel.InboundEnvelope | AttemptChannel.OutboundEnvelope, options?: import("effect/SchemaAST").ParseOptions) => {
196
289
  readonly _tag: "OutboundEnvelope";
197
- readonly version: 3;
290
+ readonly version: 6;
198
291
  readonly attemptId: string;
199
292
  readonly sequence: number;
200
293
  readonly sentAt: string;
@@ -225,6 +318,10 @@ export declare const encodeEnvelope: (input: AttemptChannel.InboundEnvelope | At
225
318
  readonly effort: "high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh";
226
319
  };
227
320
  };
321
+ readonly harnessSession?: {
322
+ readonly id: string;
323
+ readonly cwd: string;
324
+ };
228
325
  } | {
229
326
  readonly _tag: "TextOutput";
230
327
  readonly session: {
@@ -358,6 +455,73 @@ export declare const encodeEnvelope: (input: AttemptChannel.InboundEnvelope | At
358
455
  readonly effort: "high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh";
359
456
  };
360
457
  };
458
+ } | {
459
+ readonly _tag: "SessionIdle";
460
+ readonly session: {
461
+ readonly _tag: "ParentSession";
462
+ readonly id: string;
463
+ readonly agent: string;
464
+ readonly brain: {
465
+ readonly harness: "claude" | "codex" | "pi";
466
+ readonly model: string;
467
+ readonly effort: "high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh";
468
+ };
469
+ } | {
470
+ readonly _tag: "ChildSession";
471
+ readonly id: string;
472
+ readonly parentId: string;
473
+ readonly agent: string;
474
+ readonly brain: {
475
+ readonly harness: "claude" | "codex" | "pi";
476
+ readonly model: string;
477
+ readonly effort: "high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh";
478
+ };
479
+ };
480
+ } | {
481
+ readonly _tag: "SessionResumed";
482
+ readonly session: {
483
+ readonly _tag: "ParentSession";
484
+ readonly id: string;
485
+ readonly agent: string;
486
+ readonly brain: {
487
+ readonly harness: "claude" | "codex" | "pi";
488
+ readonly model: string;
489
+ readonly effort: "high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh";
490
+ };
491
+ } | {
492
+ readonly _tag: "ChildSession";
493
+ readonly id: string;
494
+ readonly parentId: string;
495
+ readonly agent: string;
496
+ readonly brain: {
497
+ readonly harness: "claude" | "codex" | "pi";
498
+ readonly model: string;
499
+ readonly effort: "high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh";
500
+ };
501
+ };
502
+ } | {
503
+ readonly _tag: "SessionTokensUpdated";
504
+ readonly session: {
505
+ readonly _tag: "ParentSession";
506
+ readonly id: string;
507
+ readonly agent: string;
508
+ readonly brain: {
509
+ readonly harness: "claude" | "codex" | "pi";
510
+ readonly model: string;
511
+ readonly effort: "high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh";
512
+ };
513
+ } | {
514
+ readonly _tag: "ChildSession";
515
+ readonly id: string;
516
+ readonly parentId: string;
517
+ readonly agent: string;
518
+ readonly brain: {
519
+ readonly harness: "claude" | "codex" | "pi";
520
+ readonly model: string;
521
+ readonly effort: "high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh";
522
+ };
523
+ };
524
+ readonly totalTokens: number;
361
525
  };
362
526
  } | {
363
527
  readonly _tag: "Final";
@@ -370,10 +534,10 @@ export declare const encodeEnvelope: (input: AttemptChannel.InboundEnvelope | At
370
534
  } | {
371
535
  readonly _tag: "PullRequest";
372
536
  readonly number: number;
373
- readonly url: URL;
537
+ readonly url: string;
374
538
  } | {
375
539
  readonly _tag: "Comment";
376
- readonly url: URL;
540
+ readonly url: string;
377
541
  })[];
378
542
  };
379
543
  } | {
@@ -382,30 +546,103 @@ export declare const encodeEnvelope: (input: AttemptChannel.InboundEnvelope | At
382
546
  readonly _tag: "InfraFailure";
383
547
  readonly message: string;
384
548
  readonly cause: Schema.Json;
549
+ } | {
550
+ readonly _tag: "DefectFailure";
551
+ readonly message: string;
552
+ readonly cause: Schema.Json;
385
553
  } | {
386
554
  readonly _tag: "AgentFailure";
387
555
  readonly message: string;
388
556
  } | {
389
557
  readonly _tag: "RunawayFailure";
390
558
  readonly ceiling: "tokens" | "wall-clock";
559
+ } | {
560
+ readonly _tag: "ChildSessionBudgetFailure";
561
+ readonly maxChildren: number;
562
+ readonly attemptedChildren: number;
391
563
  };
392
564
  } | {
393
565
  readonly _tag: "Interrupted";
566
+ } | {
567
+ readonly _tag: "InterventionApplied";
568
+ readonly inputSequence: number;
569
+ readonly intervention: {
570
+ readonly operator: string;
571
+ readonly target: {
572
+ readonly _tag: "Parent";
573
+ } | {
574
+ readonly _tag: "Child";
575
+ readonly sessionId: string;
576
+ };
577
+ readonly action: {
578
+ readonly _tag: "Steer";
579
+ readonly message: string;
580
+ } | {
581
+ readonly _tag: "Interrupt";
582
+ } | {
583
+ readonly _tag: "OperatorMessage";
584
+ readonly message: string;
585
+ } | {
586
+ readonly _tag: "Release";
587
+ };
588
+ };
589
+ readonly state: {
590
+ readonly held: boolean;
591
+ readonly paused: boolean;
592
+ };
593
+ } | {
594
+ readonly _tag: "InterventionRejected";
595
+ readonly inputSequence: number;
596
+ readonly intervention: {
597
+ readonly operator: string;
598
+ readonly target: {
599
+ readonly _tag: "Parent";
600
+ } | {
601
+ readonly _tag: "Child";
602
+ readonly sessionId: string;
603
+ };
604
+ readonly action: {
605
+ readonly _tag: "Steer";
606
+ readonly message: string;
607
+ } | {
608
+ readonly _tag: "Interrupt";
609
+ } | {
610
+ readonly _tag: "OperatorMessage";
611
+ readonly message: string;
612
+ } | {
613
+ readonly _tag: "Release";
614
+ };
615
+ };
616
+ readonly message: string;
394
617
  };
395
618
  } | {
396
619
  readonly _tag: "InboundEnvelope";
397
- readonly version: 3;
620
+ readonly version: 6;
398
621
  readonly attemptId: string;
399
622
  readonly sequence: number;
400
623
  readonly sentAt: string;
624
+ readonly target?: {
625
+ readonly _tag: "Parent";
626
+ } | {
627
+ readonly _tag: "Child";
628
+ readonly sessionId: string;
629
+ };
630
+ readonly operator: string;
401
631
  readonly payload: {
402
632
  readonly _tag: "Steer";
403
633
  readonly message: string;
404
634
  } | {
405
635
  readonly _tag: "Interrupt";
636
+ } | {
637
+ readonly _tag: "OperatorMessage";
638
+ readonly message: string;
639
+ } | {
640
+ readonly _tag: "Release";
641
+ } | {
642
+ readonly _tag: "Cancel";
406
643
  };
407
644
  };
408
- export declare const encodeAgent: (input: Agent.Agent, options?: import("effect/SchemaAST").ParseOptions) => {
645
+ export declare const encodeAgent: (input: Agent, options?: import("effect/SchemaAST").ParseOptions) => {
409
646
  readonly name: string;
410
647
  readonly brain: {
411
648
  readonly harness: "claude" | "codex" | "pi";
@@ -413,19 +650,20 @@ export declare const encodeAgent: (input: Agent.Agent, options?: import("effect/
413
650
  readonly effort: "high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh";
414
651
  };
415
652
  readonly parentModel: string | null;
653
+ readonly parentEffort?: "high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh";
416
654
  readonly persona: string;
417
655
  };
418
- export declare const encodeBrainSpec: (input: Agent.BrainSpec, options?: import("effect/SchemaAST").ParseOptions) => {
656
+ export declare const encodeBrainSpec: (input: BrainSpec, options?: import("effect/SchemaAST").ParseOptions) => {
419
657
  readonly harness: "claude" | "codex" | "pi";
420
658
  readonly model: string;
421
659
  readonly effort: "high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh";
422
660
  };
423
661
  export declare const persistence: (operation: string) => <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, RunStoreError, R>;
424
- export declare const eventFromRow: (row: EventRouteRow) => Event.Event;
662
+ export declare const eventFromRow: (row: EventRouteRow) => Event;
425
663
  export declare const submissionFromRow: (row: EventRouteRow) => Submission;
426
- export declare const runFromRow: (row: RunRow) => Run.Run;
427
- export declare const stepFromRow: (row: RunRow) => Step.Step;
428
- export declare const attemptFromRow: (row: AttemptRow) => Attempt.Attempt;
664
+ export declare const runFromRow: (row: RunRow) => Run;
665
+ export declare const stepFromRow: (row: RunRow) => Step;
666
+ export declare const attemptFromRow: (row: AttemptRow) => Attempt;
429
667
  export declare const runSummaryFromRow: (row: RunRow, storedAttempts: ReadonlyArray<AttemptRow>) => RunSummary;
430
668
  export declare const transcriptEntryFromRow: (row: TranscriptRow) => TranscriptEntry;
431
669
  //# sourceMappingURL=codec.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"codec.d.ts","sourceRoot":"","sources":["../../src/store/codec.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,OAAO,EACP,cAAc,EACd,KAAK,EAIL,GAAG,EACH,QAAQ,EACR,IAAI,EACJ,UAAU,EAEX,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,MAAM,EAAU,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChD,OAAO,EAKL,aAAa,EACb,UAAU,EACV,UAAU,EACV,eAAe,EAGhB,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;EAcxB,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAC,IAAI,CAAC;AAEtD,eAAO,MAAM,MAAM;;;;;;;;;;;;;;EAcjB,CAAC;AACH,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,IAAI,CAAC;AAExC,eAAO,MAAM,UAAU;;;;;;;;;;EAUrB,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC,IAAI,CAAC;AAEhD,eAAO,MAAM,aAAa;;;;;;EAMxB,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAC,IAAI,CAAC;AAUtD,eAAO,MAAM,kBAAkB;;;EAG7B,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC,IAAI,CAAC;AAIhE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;+BAA0D,CAAC;AACzF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;+BAAmD,CAAC;AAC9E,eAAO,MAAM,iBAAiB;;;;;;;;;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