@vercel/factory 0.0.11 → 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-CDiBco2V.d.mts → dispatch-B77cuPxh.d.mts} +293 -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 +129 -59
  25. package/dist/index.mjs +336 -333
  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-BPYhWKuL.mjs +0 -230
  32. package/dist/change-BPYhWKuL.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-CDiBco2V.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>;
@@ -13,6 +12,81 @@ declare function findingForTask(stores: FactoryStores, task: Task): Promise<Find
13
12
  declare function fixBrief(task: Task, repository: Repository, finding: Finding | null): string;
14
13
  /** The scanner's starting message for a scan task. */
15
14
  declare function scanBrief(task: Task, repository: Repository): string;
15
+ /** The verifier's starting message for a recorded pull request. */
16
+ declare function verificationBrief(task: Task, repository: Repository, change: Change): string;
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>;
16
90
  //#endregion
17
91
  //#region src/changes.d.ts
18
92
  interface AdoptPullRequestInput {
@@ -24,11 +98,19 @@ interface AdoptPullRequestInput {
24
98
  declare function adoptPullRequest(stores: Pick<FactoryStores, "changes">, input: AdoptPullRequestInput): Promise<Change>;
25
99
  //#endregion
26
100
  //#region src/coordination.d.ts
27
- interface CreateCoordinationInput {
101
+ interface CreateCoordinationInputBase {
28
102
  repositoryIds: readonly [RepositoryId, RepositoryId, ...RepositoryId[]];
29
- signalId: SignalId;
30
103
  replyTo: ReplyTo;
104
+ /** Same key recreates neither the parent nor its repository-scoped children. */
105
+ dedupeKey?: string;
31
106
  }
107
+ type CreateCoordinationInput = CreateCoordinationInputBase & ({
108
+ signalId: SignalId;
109
+ operator?: never;
110
+ } | {
111
+ operator: string;
112
+ signalId?: never;
113
+ });
32
114
  interface CoordinationPlan {
33
115
  parent: Task;
34
116
  children: readonly Task[];
@@ -55,33 +137,6 @@ declare function createCoordination(stores: FactoryStores, input: CreateCoordina
55
137
  /** Reconcile a coordination parent from its direct children without ever dispatching the parent. */
56
138
  declare function reconcileCoordination(stores: FactoryStores, parentTaskId: TaskId, options: ReconcileCoordinationOptions): Promise<CoordinationReconciliation>;
57
139
  //#endregion
58
- //#region src/dispatch.d.ts
59
- declare class DispatchRefusedError extends Error {
60
- readonly taskId: TaskId;
61
- readonly reason: string;
62
- constructor(taskId: TaskId, reason: string);
63
- }
64
- interface DispatchOptions {
65
- /**
66
- * Starts the durable execution for the task (an Eve agent run). Runs after
67
- * the task has won the queued -> running transition. The execution owns its
68
- * own provisioning: it creates its Devbox as its first step and patches the
69
- * task record with the result.
70
- */
71
- launch: (task: Task) => Promise<void>;
72
- /** How many launches to try before the task fails for good; a failure re-queues for the next sweep. */
73
- maxLaunchAttempts?: number;
74
- }
75
- declare const DEFAULT_MAX_LAUNCH_ATTEMPTS = 45;
76
- /**
77
- * The handshake between recorded work and execution: win the store-gated
78
- * transition (at most one dispatcher can succeed), then start the run. A
79
- * launch failure re-queues the task (bumping its attempt) until the attempt
80
- * limit, then fails it; a crash between the transition and the launch leaves
81
- * a running task with no execution, which the sweep reaps.
82
- */
83
- declare function dispatchTask(stores: FactoryStores, taskId: TaskId, options: DispatchOptions): Promise<Task>;
84
- //#endregion
85
140
  //#region src/metrics.d.ts
86
141
  /**
87
142
  * The derived review bucket from the default risk x confidence table. Derived
@@ -145,32 +200,13 @@ interface RepositoryHealth {
145
200
  reasons: string[];
146
201
  }
147
202
  /**
148
- * Green, yellow, or red from rows, never from a model. Budget and onboarding
149
- * signals are not evaluated yet: budgets do not settle and onboarding
150
- * 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.
151
207
  */
152
208
  declare function computeRepositoryHealth(rows: LedgerRows, options?: HealthOptions): RepositoryHealth;
153
209
  //#endregion
154
- //#region src/schema/budget.d.ts
155
- declare const budgetMonthSchema: z.ZodString;
156
- declare const budgetSchema: z.ZodObject<{
157
- schemaVersion: z.ZodLiteral<1>;
158
- factoryId: z.ZodString;
159
- month: z.ZodString;
160
- limits: z.ZodObject<{
161
- totalUsd: z.ZodNumber;
162
- investigationUsd: z.ZodNumber;
163
- perTaskReservationUsd: z.ZodNumber;
164
- warningPercent: z.ZodNumber;
165
- perRepositoryUsd: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
166
- }, z.core.$strict>;
167
- notices: z.ZodObject<{
168
- warningAt: z.ZodOptional<z.ZodISODateTime>;
169
- exhaustedAt: z.ZodOptional<z.ZodISODateTime>;
170
- }, z.core.$strict>;
171
- }, z.core.$strict>;
172
- type Budget = z.infer<typeof budgetSchema>;
173
- //#endregion
174
210
  //#region src/schema/transitions.d.ts
175
211
  type TransitionActor = "system" | "reconciler" | "foreman" | "operator" | "webhook" | "human";
176
212
  interface Transition<State extends string> {
@@ -207,15 +243,41 @@ interface SignalCreator {
207
243
  */
208
244
  declare function createSignalCreator(stores: Pick<FactoryStores, "signals">): SignalCreator;
209
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
210
267
  //#region src/store/memory.d.ts
211
268
  declare function createInMemoryDriver(): StoreDriver;
212
269
  //#endregion
213
270
  //#region src/sweep.d.ts
214
- /** Starts the agent for one task kind. Supplied by the app, which knows its agents' addresses. */
215
- 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>;
216
276
  interface SweepOptions {
217
277
  /** Launcher per task kind, e.g. code_change -> foreman, security_scan -> security-scanner. */
218
278
  launchers: Readonly<Record<string, TaskLauncher>>;
279
+ /** Reserve-before-execution limits, passed through to every dispatch. */
280
+ budget?: DispatchBudget;
219
281
  }
220
282
  interface SweepResult {
221
283
  dispatched: string[];
@@ -240,5 +302,13 @@ interface SweepResult {
240
302
  */
241
303
  declare function sweepQueued(stores: FactoryStores, options: SweepOptions): Promise<SweepResult>;
242
304
  //#endregion
243
- 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, VersionConflictError, adoptPullRequest, approvalPolicySchema, approvalRuleSchema, assertTransition, budgetMonthSchema, budgetSchema, changeEvidenceSchema, changeIdSchema, changeInitialState, changeSchema, changeStateSchema, changeTransitions, computeLedgerMetrics, computeRepositoryHealth, coordinationRepositoryIdsSchema, costSchema, createCoordination, createInMemoryDriver, createSignalCreator, createStores, defaultApprovalPolicy, defineFactory, dispatchTask, 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, vocabularySchema };
305
+ //#region src/verification-dispatch.d.ts
306
+ interface VerificationTaskSweep {
307
+ created: TaskId[];
308
+ existing: TaskId[];
309
+ }
310
+ /** Ensure every recorded code change has exactly one durable verification task. */
311
+ declare function ensureVerificationTasks(stores: FactoryStores): Promise<VerificationTaskSweep>;
312
+ //#endregion
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 };
244
314
  //# sourceMappingURL=index.d.mts.map