@vercel/factory 0.0.12 → 0.0.13

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 (33) hide show
  1. package/dist/approval-CwhTP1XB.mjs +269 -0
  2. package/dist/approval-CwhTP1XB.mjs.map +1 -0
  3. package/dist/blob/index.d.mts +1 -1
  4. package/dist/build-factory.d.mts +1 -1
  5. package/dist/build-factory.mjs +1 -1
  6. package/dist/change-CzEAoFVE.mjs +620 -0
  7. package/dist/change-CzEAoFVE.mjs.map +1 -0
  8. package/dist/connectors/slack.d.mts +4 -4
  9. package/dist/connectors/slack.mjs +81 -30
  10. package/dist/connectors/slack.mjs.map +1 -1
  11. package/dist/{approval-CIXB8IF8.d.mts → dispatch-B77cuPxh.d.mts} +290 -99
  12. package/dist/{driver-CrZsy7sm.d.mts → driver-BJutB0PE.d.mts} +2 -2
  13. package/dist/driver-Bbd25rNM.mjs.map +1 -1
  14. package/dist/eve/index.d.mts +546 -120
  15. package/dist/eve/index.mjs +358 -82
  16. package/dist/eve/index.mjs.map +1 -1
  17. package/dist/{factory-config-ifd3JxiU.mjs → factory-config-BJcjsPKl.mjs} +42 -5
  18. package/dist/factory-config-BJcjsPKl.mjs.map +1 -0
  19. package/dist/{factory-config-Bu4mklm9.d.mts → factory-config-D2yU3G0c.d.mts} +21 -2
  20. package/dist/{github-wThBfbm-.d.mts → github-DXsxboUL.d.mts} +25 -2
  21. package/dist/github.d.mts +2 -2
  22. package/dist/github.mjs +47 -1
  23. package/dist/github.mjs.map +1 -1
  24. package/dist/index.d.mts +119 -59
  25. package/dist/index.mjs +289 -330
  26. package/dist/index.mjs.map +1 -1
  27. package/dist/postgres/index.d.mts +1 -1
  28. package/package.json +1 -1
  29. package/dist/approval-DdvEKLiE.mjs +0 -132
  30. package/dist/approval-DdvEKLiE.mjs.map +0 -1
  31. package/dist/change-CFNGXVqD.mjs +0 -230
  32. package/dist/change-CFNGXVqD.mjs.map +0 -1
  33. package/dist/factory-config-ifd3JxiU.mjs.map +0 -1
package/dist/index.d.mts CHANGED
@@ -1,8 +1,7 @@
1
- import { a as StoredEntry, i as StoreDriver, n as RecordExistsError, o as StoredRecord, r as RecordNotFoundError, s as VersionConflictError, t as CollectionName } from "./driver-CrZsy7sm.mjs";
2
- import { a as factoryConfigSchema, i as factoryConfigRepositorySchema, n as FactoryConfigInput, r as defineFactory, t as FactoryConfig } from "./factory-config-Bu4mklm9.mjs";
1
+ import { a as StoredEntry, i as StoreDriver, n as RecordExistsError, o as StoredRecord, r as RecordNotFoundError, s as VersionConflictError, t as CollectionName } from "./driver-BJutB0PE.mjs";
2
+ import { a as defineFactory, c as factoryConfigSchema, i as defaultExecutionPolicy, n as FactoryConfig, o as executionPolicySchema, r as FactoryConfigInput, s as factoryConfigRepositorySchema, t as ExecutionPolicy } from "./factory-config-D2yU3G0c.mjs";
3
3
  import { a as signalSchema, c as ReplyTo, d as replyToSchema, f as schemaVersionSchema, i as signalOutcomeSchema, l as SCHEMA_VERSION, m as vocabularySchema, n as SignalOutcome, o as signalSourceSchema, p as usdSchema, r as SignalSource, s as standardSignalSources, t as Signal, u as isoDateTimeSchema } from "./signal-CHVEmzvI.mjs";
4
- import { $ as Cost, A as FactoryStores, At as repositoryIdsSchema, B as standardTaskKinds, C as ChangePatch, Ct as RepositoryId, D as CreateStoresOptions, Dt as factoryIdSchema, E as CreateSignalInput, Et as changeIdSchema, F as TaskApproval, G as taskOriginSchema, H as taskDevboxSchema, I as TaskKind, J as taskStateSchema, K as taskQuestionSchema, L as TaskState, M as TaskTransitionOptions, Mt as taskIdSchema, N as createStores, O as CreateTaskInput, Ot as receiptIdSchema, P as Task, Q as repositorySlugSchema, R as coordinationRepositoryIdsSchema, S as ChangeAssociationError, St as ReceiptId, T as CreateChangeInput, Tt as TaskId, U as taskExecutionRepositoryIdsSchema, V as taskApprovalSchema, W as taskKindSchema, X as RepositorySlug, Y as Repository, Z as repositorySchema, _ as findingVerificationMethodSchema, _t as changeSchema, a as approvalRuleSchema, at as receiptKindSchema, b as ApprovalDecision, bt as ChangeId, c as Finding, ct as receiptStateSchema, d as FindingVerification, dt as standardReceiptStates, et as Receipt, f as findingCategorySchema, ft as Change, g as findingVerificationLevelSchema, gt as changeEvidenceSchema, h as findingSchema, ht as Level, i as approvalPolicySchema, it as costSchema, j as TaskPatch, jt as signalIdSchema, k as DecideSignalOptions, kt as repositoryIdSchema, l as FindingCategory, lt as standardReceiptKinds, m as findingPrioritySchema, mt as ChangeState, n as ApprovalRule, nt as ReceiptPhase, o as defaultApprovalPolicy, ot as receiptPhaseSchema, p as findingFingerprint, pt as ChangeEvidence, q as taskSchema, r as ApprovalSubject, rt as ReceiptState, s as requiresApproval, st as receiptSchema, t as ApprovalPolicy, tt as ReceiptKind, u as FindingPriority, ut as standardReceiptPhases, v as findingVerificationSchema, vt as changeStateSchema, w as ChangeTransitionOptions, wt as SignalId, x as ApprovalError, xt as FactoryId, y as AppendReceiptInput, yt as levelSchema, z as harnessSchema } from "./approval-CIXB8IF8.mjs";
5
- import { z } from "zod";
4
+ import { $ as Cost, $t as taskSchema, A as AppendReceiptInput, At as TaskId, B as DecideSignalOptions, Bt as TaskApproval, C as findingCategorySchema, Ct as budgetMonthSchema, D as findingVerificationLevelSchema, Dt as ReceiptId, E as findingSchema, Et as FactoryId, F as ChangeTransitionOptions, Ft as repositoryIdsSchema, G as StepUsage, Gt as executionReferenceSchema, H as FactoryStores, Ht as TaskState, I as CreateChangeInput, It as signalIdSchema, J as createStores, Jt as taskApprovalSchema, K as TaskPatch, Kt as harnessSchema, L as CreateSignalInput, Lt as taskIdSchema, M as ApprovalError, Mt as factoryIdSchema, N as ChangeAssociationError, Nt as receiptIdSchema, O as findingVerificationMethodSchema, Ot as RepositoryId, P as ChangePatch, Pt as repositoryIdSchema, Q as repositorySlugSchema, Qt as taskQuestionSchema, R as CreateStoresOptions, Rt as ExecutionReference, S as FindingVerification, St as budgetLimitsSchema, T as findingPrioritySchema, Tt as ChangeId, U as SettleTaskOptions, Ut as TaskUsage, V as EnsureBudgetInput, Vt as TaskKind, W as SettlementError, Wt as coordinationRepositoryIdsSchema, X as RepositorySlug, Xt as taskKindSchema, Y as Repository, Yt as taskExecutionRepositoryIdsSchema, Z as repositorySchema, Zt as taskOriginSchema, _ as defaultApprovalPolicy, _t as changeSchema, a as DispatchRefusedError, at as receiptKindSchema, b as FindingCategory, bt as Budget, c as AgentRouteInput, ct as receiptStateSchema, d as defineAgentRoutes, dt as standardReceiptStates, en as taskStateSchema, et as Receipt, f as ApprovalPolicy, ft as Change, g as approvalRuleSchema, gt as changeEvidenceSchema, h as approvalPolicySchema, ht as Level, i as DispatchOptions, it as costSchema, j as ApprovalDecision, jt as changeIdSchema, k as findingVerificationSchema, kt as SignalId, l as AgentRouteRegistry, lt as standardReceiptKinds, m as ApprovalSubject, mt as ChangeState, n as DEFAULT_MAX_LAUNCH_ATTEMPTS, nt as ReceiptPhase, o as dispatchTask, ot as receiptPhaseSchema, p as ApprovalRule, pt as ChangeEvidence, q as TaskTransitionOptions, qt as standardTaskKinds, r as DispatchBudget, rt as ReceiptState, s as AgentRoute, st as receiptSchema, t as BudgetExhaustedError, tn as taskUsageSchema, tt as ReceiptKind, u as agentRouteSchema, ut as standardReceiptPhases, v as requiresApproval, vt as changeStateSchema, w as findingFingerprint, wt as budgetSchema, x as FindingPriority, xt as BudgetLimits, y as Finding, yt as levelSchema, z as CreateTaskInput, zt as Task } from "./dispatch-B77cuPxh.mjs";
6
5
  //#region src/briefs.d.ts
7
6
  /** The finding behind a task, when its signal carries one. */
8
7
  declare function findingForTask(stores: FactoryStores, task: Task): Promise<Finding | null>;
@@ -16,6 +15,79 @@ declare function scanBrief(task: Task, repository: Repository): string;
16
15
  /** The verifier's starting message for a recorded pull request. */
17
16
  declare function verificationBrief(task: Task, repository: Repository, change: Change): string;
18
17
  //#endregion
18
+ //#region src/budget.d.ts
19
+ /**
20
+ * Stable factory identity for budget rows. Nothing mints factory ids yet, so
21
+ * the app derives one from a deployment-stable seed such as the Vercel
22
+ * project id.
23
+ */
24
+ declare function deriveFactoryId(seed: string): FactoryId;
25
+ /** The budget month ("YYYY-MM", UTC) a timestamp falls into. */
26
+ declare function budgetMonthOf(isoDateTime: string): string;
27
+ /**
28
+ * Monthly spend is derived from task rows, never stored: each task counts its
29
+ * settled cost once that exists, otherwise its held reservation. A task
30
+ * settles once, so a settled row never also counts its reservation.
31
+ * Attribution uses the reservation time so tasks that wait across a month
32
+ * boundary charge the month they actually ran in.
33
+ */
34
+ declare function computeMonthSpendUsd(tasks: readonly Task[], month: string): number;
35
+ type BudgetStatus = "ok" | "warning" | "exhausted";
36
+ /**
37
+ * True when one more per-task slice fits under the monthly total. Dispatch
38
+ * refuses on this exact predicate and budgetStatus reports "exhausted" on its
39
+ * negation, so refusing and reporting can never disagree.
40
+ */
41
+ declare function canReserve(spendUsd: number, limits: Pick<BudgetLimits, "totalUsd" | "perTaskReservationUsd">): boolean;
42
+ declare function budgetStatus(spendUsd: number, limits: Pick<BudgetLimits, "totalUsd" | "perTaskReservationUsd" | "warningPercent">): BudgetStatus;
43
+ interface SettleSweepOptions {
44
+ /** How long a terminal task waits for late usage before the sweep settles it. */
45
+ graceMinutes?: number;
46
+ now?: () => Date;
47
+ }
48
+ interface SettleSweepResult {
49
+ settled: {
50
+ taskId: TaskId;
51
+ totalUsd: number;
52
+ }[];
53
+ }
54
+ /**
55
+ * Settle reserved terminal tasks the session hook did not: a task that ended
56
+ * after its session (a change verified later) or whose session died. Settles
57
+ * at the recorded usage, or at zero with a warning reason when none was
58
+ * recorded within the grace window.
59
+ */
60
+ declare function sweepSettlements(stores: FactoryStores, options?: SettleSweepOptions): Promise<SettleSweepResult>;
61
+ interface BudgetNotice {
62
+ outcome: "budget_warning" | "budget_exhausted";
63
+ month: string;
64
+ spendUsd: number;
65
+ limits: BudgetLimits;
66
+ }
67
+ interface BudgetSweepOptions {
68
+ factoryId: FactoryId;
69
+ limits: BudgetLimits;
70
+ /** Defaults to the current UTC month. */
71
+ month?: string;
72
+ now?: () => Date;
73
+ /** Owner-only delivery; invoked at most once per month per outcome. */
74
+ notify?: (notice: BudgetNotice) => Promise<void>;
75
+ }
76
+ interface BudgetSweepResult {
77
+ month: string;
78
+ spendUsd: number;
79
+ status: BudgetStatus;
80
+ warned: boolean;
81
+ exhausted: boolean;
82
+ }
83
+ /**
84
+ * Ensure the month's budget row, derive spend, and record threshold crossings
85
+ * write-once. Delivery comes first and the stamp only lands after it, so a
86
+ * failed notification retries on the next sweep instead of being lost; the
87
+ * write-once stamp still keeps each threshold to one message per month.
88
+ */
89
+ declare function sweepBudget(stores: FactoryStores, options: BudgetSweepOptions): Promise<BudgetSweepResult>;
90
+ //#endregion
19
91
  //#region src/changes.d.ts
20
92
  interface AdoptPullRequestInput {
21
93
  repositoryId: RepositoryId;
@@ -26,11 +98,19 @@ interface AdoptPullRequestInput {
26
98
  declare function adoptPullRequest(stores: Pick<FactoryStores, "changes">, input: AdoptPullRequestInput): Promise<Change>;
27
99
  //#endregion
28
100
  //#region src/coordination.d.ts
29
- interface CreateCoordinationInput {
101
+ interface CreateCoordinationInputBase {
30
102
  repositoryIds: readonly [RepositoryId, RepositoryId, ...RepositoryId[]];
31
- signalId: SignalId;
32
103
  replyTo: ReplyTo;
104
+ /** Same key recreates neither the parent nor its repository-scoped children. */
105
+ dedupeKey?: string;
33
106
  }
107
+ type CreateCoordinationInput = CreateCoordinationInputBase & ({
108
+ signalId: SignalId;
109
+ operator?: never;
110
+ } | {
111
+ operator: string;
112
+ signalId?: never;
113
+ });
34
114
  interface CoordinationPlan {
35
115
  parent: Task;
36
116
  children: readonly Task[];
@@ -57,33 +137,6 @@ declare function createCoordination(stores: FactoryStores, input: CreateCoordina
57
137
  /** Reconcile a coordination parent from its direct children without ever dispatching the parent. */
58
138
  declare function reconcileCoordination(stores: FactoryStores, parentTaskId: TaskId, options: ReconcileCoordinationOptions): Promise<CoordinationReconciliation>;
59
139
  //#endregion
60
- //#region src/dispatch.d.ts
61
- declare class DispatchRefusedError extends Error {
62
- readonly taskId: TaskId;
63
- readonly reason: string;
64
- constructor(taskId: TaskId, reason: string);
65
- }
66
- interface DispatchOptions {
67
- /**
68
- * Starts the durable execution for the task (an Eve agent run). Runs after
69
- * the task has won the queued -> running transition. The execution owns its
70
- * own provisioning: it creates its Devbox as its first step and patches the
71
- * task record with the result.
72
- */
73
- launch: (task: Task) => Promise<void>;
74
- /** How many launches to try before the task fails for good; a failure re-queues for the next sweep. */
75
- maxLaunchAttempts?: number;
76
- }
77
- declare const DEFAULT_MAX_LAUNCH_ATTEMPTS = 45;
78
- /**
79
- * The handshake between recorded work and execution: win the store-gated
80
- * transition (at most one dispatcher can succeed), then start the run. A
81
- * launch failure re-queues the task (bumping its attempt) until the attempt
82
- * limit, then fails it; a crash between the transition and the launch leaves
83
- * a running task with no execution, which the sweep reaps.
84
- */
85
- declare function dispatchTask(stores: FactoryStores, taskId: TaskId, options: DispatchOptions): Promise<Task>;
86
- //#endregion
87
140
  //#region src/metrics.d.ts
88
141
  /**
89
142
  * The derived review bucket from the default risk x confidence table. Derived
@@ -147,32 +200,13 @@ interface RepositoryHealth {
147
200
  reasons: string[];
148
201
  }
149
202
  /**
150
- * Green, yellow, or red from rows, never from a model. Budget and onboarding
151
- * signals are not evaluated yet: budgets do not settle and onboarding
152
- * investigations are not recorded, so those spec rules have no rows to read.
203
+ * Green, yellow, or red from rows, never from a model. Budget threshold and
204
+ * onboarding rules are not evaluated here yet: budget notices live on the
205
+ * budgets collection (not in these rows), and onboarding investigations are
206
+ * not recorded.
153
207
  */
154
208
  declare function computeRepositoryHealth(rows: LedgerRows, options?: HealthOptions): RepositoryHealth;
155
209
  //#endregion
156
- //#region src/schema/budget.d.ts
157
- declare const budgetMonthSchema: z.ZodString;
158
- declare const budgetSchema: z.ZodObject<{
159
- schemaVersion: z.ZodLiteral<1>;
160
- factoryId: z.ZodString;
161
- month: z.ZodString;
162
- limits: z.ZodObject<{
163
- totalUsd: z.ZodNumber;
164
- investigationUsd: z.ZodNumber;
165
- perTaskReservationUsd: z.ZodNumber;
166
- warningPercent: z.ZodNumber;
167
- perRepositoryUsd: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
168
- }, z.core.$strict>;
169
- notices: z.ZodObject<{
170
- warningAt: z.ZodOptional<z.ZodISODateTime>;
171
- exhaustedAt: z.ZodOptional<z.ZodISODateTime>;
172
- }, z.core.$strict>;
173
- }, z.core.$strict>;
174
- type Budget = z.infer<typeof budgetSchema>;
175
- //#endregion
176
210
  //#region src/schema/transitions.d.ts
177
211
  type TransitionActor = "system" | "reconciler" | "foreman" | "operator" | "webhook" | "human";
178
212
  interface Transition<State extends string> {
@@ -209,15 +243,41 @@ interface SignalCreator {
209
243
  */
210
244
  declare function createSignalCreator(stores: Pick<FactoryStores, "signals">): SignalCreator;
211
245
  //#endregion
246
+ //#region src/stall.d.ts
247
+ interface StallSweepOptions {
248
+ policy: ExecutionPolicy;
249
+ now?: () => Date;
250
+ }
251
+ interface StallSweepResult {
252
+ stalled: TaskId[];
253
+ requeued: TaskId[];
254
+ failed: TaskId[];
255
+ }
256
+ declare function stallWindowMinutes(policy: ExecutionPolicy, kind: Task["kind"]): number;
257
+ /**
258
+ * The reconciler's stall pass. A running task whose execution has not
259
+ * progressed within its stall window is marked stalled; a stalled task is
260
+ * re-queued for a replacement attempt while attempts remain, and failed once
261
+ * they are exhausted. Only `running` tasks can stall: a task whose result has
262
+ * already been recorded (verifying, or terminal) is never retried by this
263
+ * pass. Coordination parents run only through their children and are skipped.
264
+ */
265
+ declare function sweepStalled(stores: FactoryStores, options: StallSweepOptions): Promise<StallSweepResult>;
266
+ //#endregion
212
267
  //#region src/store/memory.d.ts
213
268
  declare function createInMemoryDriver(): StoreDriver;
214
269
  //#endregion
215
270
  //#region src/sweep.d.ts
216
- /** Starts the agent for one task kind. Supplied by the app, which knows its agents' addresses. */
217
- type TaskLauncher = (task: Task, repository: Repository) => Promise<void>;
271
+ /**
272
+ * Starts the agent for one task kind. Supplied by the app, which knows its
273
+ * agents' addresses. Returns the provider's execution reference when it has one.
274
+ */
275
+ type TaskLauncher = (task: Task, repository: Repository) => Promise<ExecutionReference | void>;
218
276
  interface SweepOptions {
219
277
  /** Launcher per task kind, e.g. code_change -> foreman, security_scan -> security-scanner. */
220
278
  launchers: Readonly<Record<string, TaskLauncher>>;
279
+ /** Reserve-before-execution limits, passed through to every dispatch. */
280
+ budget?: DispatchBudget;
221
281
  }
222
282
  interface SweepResult {
223
283
  dispatched: string[];
@@ -250,5 +310,5 @@ interface VerificationTaskSweep {
250
310
  /** Ensure every recorded code change has exactly one durable verification task. */
251
311
  declare function ensureVerificationTasks(stores: FactoryStores): Promise<VerificationTaskSweep>;
252
312
  //#endregion
253
- export { AdoptPullRequestInput, AppendReceiptInput, ApprovalDecision, ApprovalError, ApprovalPolicy, ApprovalRule, ApprovalSubject, Budget, Change, ChangeAssociationError, ChangeEvidence, ChangeId, ChangePatch, ChangeState, ChangeTransitionOptions, CollectionName, CoordinationPlan, CoordinationReconciliation, Cost, CreateChangeInput, CreateCoordinationInput, CreateSignalInput, CreateStoresOptions, CreateTaskInput, DEFAULT_MAX_LAUNCH_ATTEMPTS, DecideSignalOptions, DispatchOptions, DispatchRefusedError, FactoryConfig, FactoryConfigInput, FactoryId, FactoryStores, Finding, FindingCategory, FindingPriority, FindingVerification, HealthColor, HealthOptions, InvalidTransitionError, LedgerMetrics, LedgerRows, Level, MetricsOptions, Receipt, ReceiptId, ReceiptKind, ReceiptPhase, ReceiptState, ReconcileCoordinationOptions, RecordExistsError, RecordNotFoundError, ReplyTo, Repository, RepositoryHealth, RepositoryId, RepositorySlug, ReviewBucket, SCHEMA_VERSION, Signal, SignalCreator, SignalId, SignalOutcome, SignalSource, StoreDriver, StoredEntry, StoredRecord, SweepOptions, SweepResult, Task, TaskApproval, TaskId, TaskKind, TaskLauncher, TaskPatch, TaskState, TaskTransitionOptions, Transition, TransitionActor, VerificationTaskSweep, VersionConflictError, adoptPullRequest, approvalPolicySchema, approvalRuleSchema, assertTransition, budgetMonthSchema, budgetSchema, changeEvidenceSchema, changeIdSchema, changeInitialState, changeSchema, changeStateSchema, changeTransitions, computeLedgerMetrics, computeRepositoryHealth, coordinationRepositoryIdsSchema, costSchema, createCoordination, createInMemoryDriver, createSignalCreator, createStores, defaultApprovalPolicy, defineFactory, dispatchTask, ensureVerificationTasks, factoryConfigRepositorySchema, factoryConfigSchema, factoryIdSchema, findingCategorySchema, findingFingerprint, findingForTask, findingPrioritySchema, findingSchema, findingVerificationLevelSchema, findingVerificationMethodSchema, findingVerificationSchema, fixBrief, harnessSchema, isTransitionAllowed, isoDateTimeSchema, legalNextStates, levelSchema, receiptIdSchema, receiptKindSchema, receiptPhaseSchema, receiptSchema, receiptStateSchema, reconcileCoordination, replyToSchema, repositoryIdSchema, repositoryIdsSchema, repositorySchema, repositorySlugSchema, requiresApproval, reviewBucket, scanBrief, schemaVersionSchema, signalIdSchema, signalInitialOutcome, signalOutcomeSchema, signalOutcomeTransitions, signalSchema, signalSourceSchema, standardReceiptKinds, standardReceiptPhases, standardReceiptStates, standardSignalSources, standardTaskKinds, sweepQueued, taskApprovalSchema, taskDevboxSchema, taskExecutionRepositoryIdsSchema, taskIdSchema, taskInitialState, taskKindSchema, taskOriginSchema, taskQuestionSchema, taskSchema, taskStateSchema, taskTransitions, terminalStates, usdSchema, verificationBrief, vocabularySchema };
313
+ export { AdoptPullRequestInput, AgentRoute, AgentRouteInput, AgentRouteRegistry, AppendReceiptInput, ApprovalDecision, ApprovalError, ApprovalPolicy, ApprovalRule, ApprovalSubject, Budget, BudgetExhaustedError, BudgetLimits, BudgetNotice, BudgetStatus, BudgetSweepOptions, BudgetSweepResult, Change, ChangeAssociationError, ChangeEvidence, ChangeId, ChangePatch, ChangeState, ChangeTransitionOptions, CollectionName, CoordinationPlan, CoordinationReconciliation, Cost, CreateChangeInput, CreateCoordinationInput, CreateSignalInput, CreateStoresOptions, CreateTaskInput, DEFAULT_MAX_LAUNCH_ATTEMPTS, DecideSignalOptions, DispatchBudget, DispatchOptions, DispatchRefusedError, EnsureBudgetInput, ExecutionPolicy, ExecutionReference, FactoryConfig, FactoryConfigInput, FactoryId, FactoryStores, Finding, FindingCategory, FindingPriority, FindingVerification, HealthColor, HealthOptions, InvalidTransitionError, LedgerMetrics, LedgerRows, Level, MetricsOptions, Receipt, ReceiptId, ReceiptKind, ReceiptPhase, ReceiptState, ReconcileCoordinationOptions, RecordExistsError, RecordNotFoundError, ReplyTo, Repository, RepositoryHealth, RepositoryId, RepositorySlug, ReviewBucket, SCHEMA_VERSION, SettleSweepOptions, SettleSweepResult, SettleTaskOptions, SettlementError, Signal, SignalCreator, SignalId, SignalOutcome, SignalSource, StallSweepOptions, StallSweepResult, StepUsage, StoreDriver, StoredEntry, StoredRecord, SweepOptions, SweepResult, Task, TaskApproval, TaskId, TaskKind, TaskLauncher, TaskPatch, TaskState, TaskTransitionOptions, TaskUsage, Transition, TransitionActor, VerificationTaskSweep, VersionConflictError, adoptPullRequest, agentRouteSchema, approvalPolicySchema, approvalRuleSchema, assertTransition, budgetLimitsSchema, budgetMonthOf, budgetMonthSchema, budgetSchema, budgetStatus, canReserve, changeEvidenceSchema, changeIdSchema, changeInitialState, changeSchema, changeStateSchema, changeTransitions, computeLedgerMetrics, computeMonthSpendUsd, computeRepositoryHealth, coordinationRepositoryIdsSchema, costSchema, createCoordination, createInMemoryDriver, createSignalCreator, createStores, defaultApprovalPolicy, defaultExecutionPolicy, defineAgentRoutes, defineFactory, deriveFactoryId, dispatchTask, ensureVerificationTasks, executionPolicySchema, executionReferenceSchema, factoryConfigRepositorySchema, factoryConfigSchema, factoryIdSchema, findingCategorySchema, findingFingerprint, findingForTask, findingPrioritySchema, findingSchema, findingVerificationLevelSchema, findingVerificationMethodSchema, findingVerificationSchema, fixBrief, harnessSchema, isTransitionAllowed, isoDateTimeSchema, legalNextStates, levelSchema, receiptIdSchema, receiptKindSchema, receiptPhaseSchema, receiptSchema, receiptStateSchema, reconcileCoordination, replyToSchema, repositoryIdSchema, repositoryIdsSchema, repositorySchema, repositorySlugSchema, requiresApproval, reviewBucket, scanBrief, schemaVersionSchema, signalIdSchema, signalInitialOutcome, signalOutcomeSchema, signalOutcomeTransitions, signalSchema, signalSourceSchema, stallWindowMinutes, standardReceiptKinds, standardReceiptPhases, standardReceiptStates, standardSignalSources, standardTaskKinds, sweepBudget, sweepQueued, sweepSettlements, sweepStalled, taskApprovalSchema, taskExecutionRepositoryIdsSchema, taskIdSchema, taskInitialState, taskKindSchema, taskOriginSchema, taskQuestionSchema, taskSchema, taskStateSchema, taskTransitions, taskUsageSchema, terminalStates, usdSchema, verificationBrief, vocabularySchema };
254
314
  //# sourceMappingURL=index.d.mts.map