@devpad/api 2.5.2 → 2.5.3

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.
@@ -1,6 +1,6 @@
1
1
  // ../schema/dist/database/schema.js
2
2
  import { relations, sql } from "drizzle-orm";
3
- import { index, int, integer, primaryKey, sqliteTable, text, unique } from "drizzle-orm/sqlite-core";
3
+ import { index, int, integer, primaryKey, sqliteTable, text, unique, uniqueIndex } from "drizzle-orm/sqlite-core";
4
4
  var timestamps = () => ({
5
5
  created_at: text("created_at").notNull().default(sql`(CURRENT_TIMESTAMP)`),
6
6
  updated_at: text("updated_at").notNull().default(sql`(CURRENT_TIMESTAMP)`)
@@ -405,10 +405,12 @@ var ignore_path = sqliteTable("ignore_path", {
405
405
  });
406
406
  var ROLLOUT_SHAPES = ["gradual", "atomic"];
407
407
  var RUN_KINDS = ["deploy", "rollback"];
408
- var RUN_STATUSES = ["queued", "deploying", "baking", "awaiting_approval", "rolling_back", "completed", "rolled_back", "failed", "cancelled"];
408
+ var RUN_STATUSES = ["queued", "deploying", "unconfirmed", "baking", "awaiting_approval", "rolling_back", "completed", "rolled_back", "failed", "cancelled"];
409
409
  var FORCED_ATOMIC_REASONS = ["do_migrations", "asset_affinity_none"];
410
- var STAGE_EVENT_KINDS = ["deploy_started", "deploy_completed", "bake_started", "bake_completed", "gate_verdict", "approval_requested", "rollback_started", "rollback_completed", "warning", "error"];
410
+ var STAGE_EVENT_KINDS = ["deploy_started", "deploy_completed", "deploy_failed", "dispatch_requested", "dispatch_failed", "timed_out", "bake_started", "bake_completed", "gate_verdict", "approval_requested", "rollback_started", "rollback_completed", "warning", "error"];
411
411
  var APPROVAL_DECISIONS = ["approved", "denied"];
412
+ var DEPLOY_MODES = ["orchestrated", "external"];
413
+ var DISPATCH_STATUSES = ["claimed", "dispatched", "failed"];
412
414
  var pipeline_package = sqliteTable("pipeline_package", {
413
415
  ...entity("pipeline-package"),
414
416
  owner_id: text("owner_id").notNull().references(() => user.id),
@@ -416,12 +418,22 @@ var pipeline_package = sqliteTable("pipeline_package", {
416
418
  repo_url: text("repo_url"),
417
419
  default_template_ref: text("default_template_ref"),
418
420
  script_name_overrides: text("script_name_overrides", { mode: "json" }),
419
- project_id: text("project_id").references(() => project.id)
421
+ project_id: text("project_id").references(() => project.id),
422
+ // External deploy mode (#155): `external` packages let CI own the actual
423
+ // deploys; the orchestrator only holds the manual staging→production
424
+ // gate + run record. `external_target` carries repo/workflow/ref/timeout
425
+ // + gate — parsed+validated by `external_target` at the service
426
+ // boundary (raw JSON on the row is untrusted).
427
+ deploy_mode: text("deploy_mode", { enum: DEPLOY_MODES }).notNull().default("orchestrated"),
428
+ external_target: text("external_target", { mode: "json" })
420
429
  });
421
430
  var pipeline_run = sqliteTable("pipeline_run", {
422
431
  ...entity("pipeline-run"),
423
432
  package_id: text("package_id").notNull().references(() => pipeline_package.id),
424
- version_set_id: text("version_set_id").notNull(),
433
+ // Exactly one of `version_set_id` / `commit_sha` is set — the invariant is
434
+ // enforced in code (`run_target_of` in core runs.ts), not by a CHECK.
435
+ version_set_id: text("version_set_id"),
436
+ commit_sha: text("commit_sha"),
425
437
  shape: text("shape", { enum: ROLLOUT_SHAPES }).notNull(),
426
438
  kind: text("kind", { enum: RUN_KINDS }).notNull().default("deploy"),
427
439
  status: text("status", { enum: RUN_STATUSES }).notNull().default("queued"),
@@ -440,7 +452,19 @@ var pipeline_stage_event = sqliteTable("pipeline_stage_event", {
440
452
  payload: text("payload", { mode: "json" }),
441
453
  ts: text("ts").notNull().default(sql`(CURRENT_TIMESTAMP)`),
442
454
  idempotency_hash: text("idempotency_hash")
443
- });
455
+ }, (table) => [
456
+ uniqueIndex("idx_pipeline_stage_event_idem_uniq").on(table.run_id, table.idempotency_hash).where(sql`idempotency_hash IS NOT NULL`)
457
+ ]);
458
+ var pipeline_dispatch = sqliteTable("pipeline_dispatch", {
459
+ ...id("pipeline-dispatch"),
460
+ run_id: text("run_id").notNull().references(() => pipeline_run.id),
461
+ stage_name: text("stage_name").notNull(),
462
+ commit_sha: text("commit_sha").notNull(),
463
+ status: text("status", { enum: DISPATCH_STATUSES }).notNull().default("claimed"),
464
+ error: text("error"),
465
+ requested_by: text("requested_by"),
466
+ ...timestamps()
467
+ }, (table) => [unique("pipeline_dispatch_run_stage_unique").on(table.run_id, table.stage_name)]);
444
468
  var pipeline_grant = sqliteTable("pipeline_grant", {
445
469
  ...entity("pipeline-grant"),
446
470
  package_id: text("package_id").notNull().references(() => pipeline_package.id),
@@ -566,7 +590,11 @@ var pipeline_package_relations = relations(pipeline_package, ({ one, many }) =>
566
590
  var pipeline_run_relations = relations(pipeline_run, ({ one, many }) => ({
567
591
  package: one(pipeline_package, { fields: [pipeline_run.package_id], references: [pipeline_package.id] }),
568
592
  events: many(pipeline_stage_event),
569
- approvals: many(pipeline_approval)
593
+ approvals: many(pipeline_approval),
594
+ dispatches: many(pipeline_dispatch)
595
+ }));
596
+ var pipeline_dispatch_relations = relations(pipeline_dispatch, ({ one }) => ({
597
+ run: one(pipeline_run, { fields: [pipeline_dispatch.run_id], references: [pipeline_run.id] })
570
598
  }));
571
599
  var pipeline_stage_event_relations = relations(pipeline_stage_event, ({ one }) => ({
572
600
  run: one(pipeline_run, { fields: [pipeline_stage_event.run_id], references: [pipeline_run.id] })
@@ -743,6 +771,7 @@ var run_kind = z.union([z.literal("deploy"), z.literal("rollback")]);
743
771
  var run_status = z.union([
744
772
  z.literal("queued"),
745
773
  z.literal("deploying"),
774
+ z.literal("unconfirmed"),
746
775
  z.literal("baking"),
747
776
  z.literal("awaiting_approval"),
748
777
  z.literal("rolling_back"),
@@ -755,6 +784,10 @@ var forced_atomic_reason = z.union([z.literal("do_migrations"), z.literal("asset
755
784
  var stage_event_kind = z.union([
756
785
  z.literal("deploy_started"),
757
786
  z.literal("deploy_completed"),
787
+ z.literal("deploy_failed"),
788
+ z.literal("dispatch_requested"),
789
+ z.literal("dispatch_failed"),
790
+ z.literal("timed_out"),
758
791
  z.literal("bake_started"),
759
792
  z.literal("bake_completed"),
760
793
  z.literal("gate_verdict"),
@@ -765,6 +798,16 @@ var stage_event_kind = z.union([
765
798
  z.literal("error")
766
799
  ]);
767
800
  var approval_decision = z.union([z.literal("approved"), z.literal("denied")]);
801
+ var deploy_mode = z.union([z.literal("orchestrated"), z.literal("external")]);
802
+ var commit_sha = z.string().regex(/^[0-9a-f]{40}$/, "commit_sha must be a 40-hex SHA");
803
+ var external_target = z.object({
804
+ repo: z.string().regex(/^[^/\s]+\/[^/\s]+$/, "repo must be owner/name"),
805
+ workflow: z.string().min(1).describe("workflow file name, e.g. deploy.yml"),
806
+ ref: z.string().min(1).default("main"),
807
+ timeout_ms: z.number().int().positive().default(27e5),
808
+ gate: z.object({ type: z.literal("manual") }).default({ type: "manual" })
809
+ });
810
+ var dispatch_status = z.union([z.literal("claimed"), z.literal("dispatched"), z.literal("failed")]);
768
811
  var grant_scope = z.string().regex(/^[a-z0-9_-]+:[a-z0-9_-]+(:[^\s]+)?$/, "Invalid scope format");
769
812
  var rollout_stage = z.object({
770
813
  name: z.string(),
@@ -793,12 +836,15 @@ var upsert_pipeline_package = z.object({
793
836
  repo_url: z.string().nullable().optional(),
794
837
  default_template_ref: z.string().nullable().optional(),
795
838
  script_name_overrides: z.record(z.string(), z.string()).nullable().optional(),
796
- project_id: z.string().nullable().optional()
839
+ project_id: z.string().nullable().optional(),
840
+ deploy_mode: deploy_mode.optional(),
841
+ external_target: external_target.nullable().optional()
797
842
  });
798
843
  var upsert_pipeline_run = z.object({
799
844
  id: z.string().optional().nullable(),
800
845
  package_id: z.string(),
801
- version_set_id: z.string(),
846
+ version_set_id: z.string().nullable(),
847
+ commit_sha: commit_sha.nullable().optional(),
802
848
  shape: rollout_shape,
803
849
  kind: run_kind.optional(),
804
850
  status: run_status.optional(),
@@ -831,6 +877,15 @@ var upsert_pipeline_approval = z.object({
831
877
  decided_by: z.string().nullable().optional(),
832
878
  decided_at: z.string().nullable().optional()
833
879
  });
880
+ var upsert_pipeline_dispatch = z.object({
881
+ id: z.string().optional().nullable(),
882
+ run_id: z.string(),
883
+ stage_name: z.string(),
884
+ commit_sha,
885
+ status: dispatch_status.optional(),
886
+ error: z.string().nullable().optional(),
887
+ requested_by: z.string().nullable().optional()
888
+ });
834
889
  var upsert_pipeline_analysis_template = z.object({
835
890
  id: z.string().optional(),
836
891
  owner_id: z.string().min(1),
@@ -1128,6 +1183,10 @@ export {
1128
1183
  forced_atomic_reason,
1129
1184
  stage_event_kind,
1130
1185
  approval_decision,
1186
+ deploy_mode,
1187
+ commit_sha,
1188
+ external_target,
1189
+ dispatch_status,
1131
1190
  grant_scope,
1132
1191
  rollout_stage,
1133
1192
  resolved_rollout,
@@ -1138,6 +1197,7 @@ export {
1138
1197
  insert_pipeline_stage_event,
1139
1198
  upsert_pipeline_grant,
1140
1199
  upsert_pipeline_approval,
1200
+ upsert_pipeline_dispatch,
1141
1201
  upsert_pipeline_analysis_template,
1142
1202
  pipeline_oidc_provider,
1143
1203
  upsert_pipeline_oidc_trust,
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import { G as PostListParams, T as PostsResponse, x as Post, D as PostCreate, Q as PostUpdate, Z as VersionInfo, y as PostContent, C as Category, k as CategoryCreate, A as AccessKey } from './types.d-DbgtG-w1.js';
2
- import { ai as Profile, u as CreateProfileInput, aw as UpdateProfileInput, aj as ProfileFilter, c as AddFilterInput, aq as Timeline, A as Account, ae as PlatformSettings } from './types.d-BLyXuxuY.js';
2
+ import { ai as Profile, u as CreateProfileInput, aw as UpdateProfileInput, aj as ProfileFilter, c as AddFilterInput, aq as Timeline, A as Account, ae as PlatformSettings } from './types.d-CAKmVOCU.js';
3
3
  import { z } from 'zod';
4
- import { c as ApiKey, O as Project, aE as UpsertProject, G as GetConfigResult, a2 as SaveConfigRequest, ao as TodoUpdate, H as HistoryAction, R as ProjectGraphResponse, S as ProjectViewLayoutInput, M as Milestone, ad as Task, o as Goal, p as Hook, v as HookTrigger, r as HookActionPublic, aw as UpsertHook, t as HookDelivery, ak as TaskWithDetails, aH as UpsertTodo, aF as UpsertTag, ag as TaskLink, C as ClaimRequest, m as DoneRequest, a as AdvanceStageRequest, aG as UpsertTaskLink, f as ApplyRequest, e as ApplyOp, ac as TagWithTypedColor, l as Document, U as PushDocRequest, an as ThreadMarker, i as CreateThreadRequest, b as AnnotationThread, V as PushInterfaceReportRequest, y as InterfaceDiffClass, a6 as Signoff, Y as RequestCheckpointRequest, k as DecideCheckpointRequest, Z as ReviewItem, D as DashboardResponse, K as PipelineRun, L as PipelineStageEvent, B as PipelineGrant, J as PipelinePackage, P as PipelineAnalysisTemplate, F as PipelineOidcTrust } from './types.d-BPhr25k1.js';
5
- export { Q as ProjectConfig, _ as ReviewItemKind } from './types.d-BPhr25k1.js';
4
+ import { c as ApiKey, R as Project, aH as UpsertProject, G as GetConfigResult, a4 as SaveConfigRequest, aq as TodoUpdate, H as HistoryAction, T as ProjectGraphResponse, U as ProjectViewLayoutInput, M as Milestone, af as Task, p as Goal, q as Hook, w as HookTrigger, s as HookActionPublic, ay as UpsertHook, u as HookDelivery, am as TaskWithDetails, aK as UpsertTodo, aI as UpsertTag, ai as TaskLink, C as ClaimRequest, m as DoneRequest, a as AdvanceStageRequest, aJ as UpsertTaskLink, f as ApplyRequest, e as ApplyOp, ae as TagWithTypedColor, l as Document, W as PushDocRequest, ap as ThreadMarker, i as CreateThreadRequest, b as AnnotationThread, X as PushInterfaceReportRequest, z as InterfaceDiffClass, a8 as Signoff, _ as RequestCheckpointRequest, k as DecideCheckpointRequest, $ as ReviewItem, D as DashboardResponse, O as PipelineRun, Q as PipelineStageEvent, J as PipelineGrant, L as PipelinePackage, P as PipelineAnalysisTemplate, K as PipelineOidcTrust } from './types.d-D5SZVjNV.js';
5
+ export { S as ProjectConfig, a0 as ReviewItemKind } from './types.d-D5SZVjNV.js';
6
6
  import { Result } from '@f0rbit/corpus';
7
7
  export { Result, err, ok } from '@f0rbit/corpus';
8
- import { b as CompletionPolicy, H as HookDeliveryStatus, C as CompletedVia, j as StageEventKind } from './schema.d-CJi69lKr.js';
8
+ import { b as CompletionPolicy, H as HookDeliveryStatus, C as CompletedVia, c as DispatchStatus, l as StageEventKind } from './schema.d-DKK3C47P.js';
9
9
  import 'drizzle-orm';
10
10
  import './media.d-R87HGuRp.js';
11
11
  import 'drizzle-orm/sqlite-core';
@@ -705,6 +705,26 @@ type PushInterfaceReportResult = {
705
705
  classification: InterfaceDiffClass;
706
706
  signoff: Signoff | null;
707
707
  };
708
+ /**
709
+ * Wire shape of `GET /v1/runs/:id/dispatches` (orchestrator proxy, #155) —
710
+ * the run's dispatch ledger rows. `commit_sha` is null on orchestrated
711
+ * (version-set-targeted) runs.
712
+ */
713
+ type PipelineDispatchEntry = {
714
+ stage_name: string;
715
+ commit_sha: string | null;
716
+ status: DispatchStatus;
717
+ error: string | null;
718
+ requested_by: string | null;
719
+ created_at: string;
720
+ updated_at: string;
721
+ };
722
+ type PipelineDispatches = {
723
+ run_id: string;
724
+ run_status: string;
725
+ commit_sha: string | null;
726
+ dispatches: PipelineDispatchEntry[];
727
+ };
708
728
  type FoldDiff = {
709
729
  kind: "missing_row";
710
730
  entity: "milestone" | "goal";
@@ -1706,6 +1726,19 @@ declare class ApiClient {
1706
1726
  * Rollback a pipeline run
1707
1727
  */
1708
1728
  rollback: (run_id: string) => Promise<ApiResult<void>>;
1729
+ /**
1730
+ * Re-dispatch a FAILED external production dispatch (#155). Human-only:
1731
+ * only valid when the run's production dispatch row is `failed` —
1732
+ * any other state is a 4xx from the orchestrator. api-channel callers
1733
+ * get `403 human_approval_required` from the worker proxy; call from
1734
+ * the devpad web UI while signed in.
1735
+ */
1736
+ redispatch: (run_id: string) => Promise<ApiResult<void>>;
1737
+ /**
1738
+ * Read a run's dispatch ledger (`GET /v1/runs/:id/dispatches`): one
1739
+ * row per stage with claim/dispatch status, error text and actor.
1740
+ */
1741
+ dispatches: (run_id: string) => Promise<ApiResult<PipelineDispatches>>;
1709
1742
  /**
1710
1743
  * Stage-event namespace — Phase 2.C webhook ingestion + read-back.
1711
1744
  *
@@ -1972,4 +2005,4 @@ declare const tools: Record<string, ToolDefinition>;
1972
2005
  declare const toolNames: string[];
1973
2006
  declare function getTool(name: string): ToolDefinition | undefined;
1974
2007
 
1975
- export { AccessKey, Account, AddFilterInput, ApiClient, ApiError, type ApiResult, type ApiResultError, type ApplyResponse, type AuthMode, AuthenticationError, type BubbleStep, Category, CategoryCreate, CreateProfileInput, DecideCheckpointRequest, type DocContent, type DocVersionInfo, type DoneResponse, type EdgeSummary, Milestone, type MilestoneLensResponse, type MilestoneLensRow, NetworkError, PlatformSettings, Post, PostContent, PostCreate, PostListParams, PostUpdate, PostsResponse, Profile, ProfileFilter, Project, type PublicHook, type PullDocResponse, type PulseErrorIssue, type PulseErrorsResult, type PulseEventRow, type PulseEventsPage, type PulseLatencyByMinute, type PulseLatencyResult, type PulseLogsResult, type PulseSummary, type PulseSummaryByDay, type PushInterfaceReportResult, type RequestHistoryEntry, type RequestOptions, ReviewItem, type RollupCounts, SaveConfigRequest, Signoff, Task, TaskWithDetails, Timeline, type ToolDefinition, UpdateProfileInput, UpsertProject, UpsertTag, UpsertTodo, ValidationError, VersionInfo, ApiClient as default, getTool, getUserFriendlyErrorMessage, parseZodErrors, pulseSummaryHasData, toolNames, tools, wrap };
2008
+ export { AccessKey, Account, AddFilterInput, ApiClient, ApiError, type ApiResult, type ApiResultError, type ApplyResponse, type AuthMode, AuthenticationError, type BubbleStep, Category, CategoryCreate, CreateProfileInput, DecideCheckpointRequest, type DocContent, type DocVersionInfo, type DoneResponse, type EdgeSummary, Milestone, type MilestoneLensResponse, type MilestoneLensRow, NetworkError, type PipelineDispatchEntry, type PipelineDispatches, PlatformSettings, Post, PostContent, PostCreate, PostListParams, PostUpdate, PostsResponse, Profile, ProfileFilter, Project, type PublicHook, type PullDocResponse, type PulseErrorIssue, type PulseErrorsResult, type PulseEventRow, type PulseEventsPage, type PulseLatencyByMinute, type PulseLatencyResult, type PulseLogsResult, type PulseSummary, type PulseSummaryByDay, type PushInterfaceReportResult, type RequestHistoryEntry, type RequestOptions, ReviewItem, type RollupCounts, SaveConfigRequest, Signoff, Task, TaskWithDetails, Timeline, type ToolDefinition, UpdateProfileInput, UpsertProject, UpsertTag, UpsertTodo, ValidationError, VersionInfo, ApiClient as default, getTool, getUserFriendlyErrorMessage, parseZodErrors, pulseSummaryHasData, toolNames, tools, wrap };
package/dist/index.js CHANGED
@@ -16,7 +16,7 @@ import {
16
16
  upsert_project,
17
17
  upsert_task_link,
18
18
  upsert_todo
19
- } from "./chunk-HIDAIYV4.js";
19
+ } from "./chunk-WM2RV3FZ.js";
20
20
  import {
21
21
  CategoryCreateSchema,
22
22
  PostCreateSchema,
@@ -1482,6 +1482,19 @@ var ApiClient2 = class {
1482
1482
  * Rollback a pipeline run
1483
1483
  */
1484
1484
  rollback: (run_id) => wrap(() => this.clients.pipelines.post(`/runs/${run_id}/rollback`, { body: {} })),
1485
+ /**
1486
+ * Re-dispatch a FAILED external production dispatch (#155). Human-only:
1487
+ * only valid when the run's production dispatch row is `failed` —
1488
+ * any other state is a 4xx from the orchestrator. api-channel callers
1489
+ * get `403 human_approval_required` from the worker proxy; call from
1490
+ * the devpad web UI while signed in.
1491
+ */
1492
+ redispatch: (run_id) => wrap(() => this.clients.pipelines.post(`/runs/${run_id}/redispatch`, { body: {} })),
1493
+ /**
1494
+ * Read a run's dispatch ledger (`GET /v1/runs/:id/dispatches`): one
1495
+ * row per stage with claim/dispatch status, error text and actor.
1496
+ */
1497
+ dispatches: (run_id) => wrap(() => this.clients.pipelines.get(`/runs/${run_id}/dispatches`)),
1485
1498
  /**
1486
1499
  * Stage-event namespace — Phase 2.C webhook ingestion + read-back.
1487
1500
  *
@@ -2470,6 +2483,14 @@ var tools = {
2470
2483
  }),
2471
2484
  execute: async (client, input) => unwrap(await client.pipelines.get(input.run_id))
2472
2485
  }),
2486
+ devpad_pipelines_dispatches: define_tool({
2487
+ name: "devpad_pipelines_dispatches",
2488
+ description: "List a pipeline run's dispatch ledger rows (external deploy mode #155): per-stage claim/dispatch status, error text, and requesting actor. Read-only.",
2489
+ inputSchema: z2.object({
2490
+ run_id: z2.string().describe("Pipeline run ID")
2491
+ }),
2492
+ execute: async (client, input) => unwrap(await client.pipelines.dispatches(input.run_id))
2493
+ }),
2473
2494
  devpad_pipelines_create: define_tool({
2474
2495
  name: "devpad_pipelines_create",
2475
2496
  description: "Create a new pipeline run",
@@ -4,7 +4,7 @@ import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
4
4
  import { BaseSQLiteDatabase } from 'drizzle-orm/sqlite-core';
5
5
  import * as drizzle_orm from 'drizzle-orm';
6
6
  import { M as MediaPlatform } from '../media.d-R87HGuRp.js';
7
- import { e as ProjectViewLayout } from '../schema.d-CJi69lKr.js';
7
+ import { g as ProjectViewLayout } from '../schema.d-DKK3C47P.js';
8
8
  import 'zod';
9
9
 
10
10
  declare const fullSchema: {
@@ -7520,10 +7520,12 @@ declare const fullSchema: {
7520
7520
  }>;
7521
7521
  ROLLOUT_SHAPES: readonly ["gradual", "atomic"];
7522
7522
  RUN_KINDS: readonly ["deploy", "rollback"];
7523
- RUN_STATUSES: readonly ["queued", "deploying", "baking", "awaiting_approval", "rolling_back", "completed", "rolled_back", "failed", "cancelled"];
7523
+ RUN_STATUSES: readonly ["queued", "deploying", "unconfirmed", "baking", "awaiting_approval", "rolling_back", "completed", "rolled_back", "failed", "cancelled"];
7524
7524
  FORCED_ATOMIC_REASONS: readonly ["do_migrations", "asset_affinity_none"];
7525
- STAGE_EVENT_KINDS: readonly ["deploy_started", "deploy_completed", "bake_started", "bake_completed", "gate_verdict", "approval_requested", "rollback_started", "rollback_completed", "warning", "error"];
7525
+ STAGE_EVENT_KINDS: readonly ["deploy_started", "deploy_completed", "deploy_failed", "dispatch_requested", "dispatch_failed", "timed_out", "bake_started", "bake_completed", "gate_verdict", "approval_requested", "rollback_started", "rollback_completed", "warning", "error"];
7526
7526
  APPROVAL_DECISIONS: readonly ["approved", "denied"];
7527
+ DEPLOY_MODES: readonly ["orchestrated", "external"];
7528
+ DISPATCH_STATUSES: readonly ["claimed", "dispatched", "failed"];
7527
7529
  pipeline_package: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
7528
7530
  name: "pipeline_package";
7529
7531
  schema: undefined;
@@ -7640,6 +7642,42 @@ declare const fullSchema: {
7640
7642
  }, {}, {
7641
7643
  length: number | undefined;
7642
7644
  }>;
7645
+ deploy_mode: drizzle_orm_sqlite_core.SQLiteColumn<{
7646
+ name: "deploy_mode";
7647
+ tableName: "pipeline_package";
7648
+ dataType: "string";
7649
+ columnType: "SQLiteText";
7650
+ data: "orchestrated" | "external";
7651
+ driverParam: string;
7652
+ notNull: true;
7653
+ hasDefault: true;
7654
+ isPrimaryKey: false;
7655
+ isAutoincrement: false;
7656
+ hasRuntimeDefault: false;
7657
+ enumValues: ["orchestrated", "external"];
7658
+ baseColumn: never;
7659
+ identity: undefined;
7660
+ generated: undefined;
7661
+ }, {}, {
7662
+ length: number | undefined;
7663
+ }>;
7664
+ external_target: drizzle_orm_sqlite_core.SQLiteColumn<{
7665
+ name: "external_target";
7666
+ tableName: "pipeline_package";
7667
+ dataType: "json";
7668
+ columnType: "SQLiteTextJson";
7669
+ data: unknown;
7670
+ driverParam: string;
7671
+ notNull: false;
7672
+ hasDefault: false;
7673
+ isPrimaryKey: false;
7674
+ isAutoincrement: false;
7675
+ hasRuntimeDefault: false;
7676
+ enumValues: undefined;
7677
+ baseColumn: never;
7678
+ identity: undefined;
7679
+ generated: undefined;
7680
+ }, {}, {}>;
7643
7681
  created_by: drizzle_orm_sqlite_core.SQLiteColumn<{
7644
7682
  name: "created_by";
7645
7683
  tableName: "pipeline_package";
@@ -7802,7 +7840,26 @@ declare const fullSchema: {
7802
7840
  columnType: "SQLiteText";
7803
7841
  data: string;
7804
7842
  driverParam: string;
7805
- notNull: true;
7843
+ notNull: false;
7844
+ hasDefault: false;
7845
+ isPrimaryKey: false;
7846
+ isAutoincrement: false;
7847
+ hasRuntimeDefault: false;
7848
+ enumValues: [string, ...string[]];
7849
+ baseColumn: never;
7850
+ identity: undefined;
7851
+ generated: undefined;
7852
+ }, {}, {
7853
+ length: number | undefined;
7854
+ }>;
7855
+ commit_sha: drizzle_orm_sqlite_core.SQLiteColumn<{
7856
+ name: "commit_sha";
7857
+ tableName: "pipeline_run";
7858
+ dataType: "string";
7859
+ columnType: "SQLiteText";
7860
+ data: string;
7861
+ driverParam: string;
7862
+ notNull: false;
7806
7863
  hasDefault: false;
7807
7864
  isPrimaryKey: false;
7808
7865
  isAutoincrement: false;
@@ -7857,14 +7914,14 @@ declare const fullSchema: {
7857
7914
  tableName: "pipeline_run";
7858
7915
  dataType: "string";
7859
7916
  columnType: "SQLiteText";
7860
- data: "queued" | "deploying" | "baking" | "awaiting_approval" | "rolling_back" | "completed" | "rolled_back" | "failed" | "cancelled";
7917
+ data: "queued" | "deploying" | "unconfirmed" | "baking" | "awaiting_approval" | "rolling_back" | "completed" | "rolled_back" | "failed" | "cancelled";
7861
7918
  driverParam: string;
7862
7919
  notNull: true;
7863
7920
  hasDefault: true;
7864
7921
  isPrimaryKey: false;
7865
7922
  isAutoincrement: false;
7866
7923
  hasRuntimeDefault: false;
7867
- enumValues: ["queued", "deploying", "baking", "awaiting_approval", "rolling_back", "completed", "rolled_back", "failed", "cancelled"];
7924
+ enumValues: ["queued", "deploying", "unconfirmed", "baking", "awaiting_approval", "rolling_back", "completed", "rolled_back", "failed", "cancelled"];
7868
7925
  baseColumn: never;
7869
7926
  identity: undefined;
7870
7927
  generated: undefined;
@@ -8160,14 +8217,14 @@ declare const fullSchema: {
8160
8217
  tableName: "pipeline_stage_event";
8161
8218
  dataType: "string";
8162
8219
  columnType: "SQLiteText";
8163
- data: "error" | "deploy_started" | "deploy_completed" | "bake_started" | "bake_completed" | "gate_verdict" | "approval_requested" | "rollback_started" | "rollback_completed" | "warning";
8220
+ data: "error" | "deploy_started" | "deploy_completed" | "deploy_failed" | "dispatch_requested" | "dispatch_failed" | "timed_out" | "bake_started" | "bake_completed" | "gate_verdict" | "approval_requested" | "rollback_started" | "rollback_completed" | "warning";
8164
8221
  driverParam: string;
8165
8222
  notNull: true;
8166
8223
  hasDefault: false;
8167
8224
  isPrimaryKey: false;
8168
8225
  isAutoincrement: false;
8169
8226
  hasRuntimeDefault: false;
8170
- enumValues: ["deploy_started", "deploy_completed", "bake_started", "bake_completed", "gate_verdict", "approval_requested", "rollback_started", "rollback_completed", "warning", "error"];
8227
+ enumValues: ["deploy_started", "deploy_completed", "deploy_failed", "dispatch_requested", "dispatch_failed", "timed_out", "bake_started", "bake_completed", "gate_verdict", "approval_requested", "rollback_started", "rollback_completed", "warning", "error"];
8171
8228
  baseColumn: never;
8172
8229
  identity: undefined;
8173
8230
  generated: undefined;
@@ -8251,6 +8308,184 @@ declare const fullSchema: {
8251
8308
  };
8252
8309
  dialect: "sqlite";
8253
8310
  }>;
8311
+ pipeline_dispatch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
8312
+ name: "pipeline_dispatch";
8313
+ schema: undefined;
8314
+ columns: {
8315
+ created_at: drizzle_orm_sqlite_core.SQLiteColumn<{
8316
+ name: "created_at";
8317
+ tableName: "pipeline_dispatch";
8318
+ dataType: "string";
8319
+ columnType: "SQLiteText";
8320
+ data: string;
8321
+ driverParam: string;
8322
+ notNull: true;
8323
+ hasDefault: true;
8324
+ isPrimaryKey: false;
8325
+ isAutoincrement: false;
8326
+ hasRuntimeDefault: false;
8327
+ enumValues: [string, ...string[]];
8328
+ baseColumn: never;
8329
+ identity: undefined;
8330
+ generated: undefined;
8331
+ }, {}, {
8332
+ length: number | undefined;
8333
+ }>;
8334
+ updated_at: drizzle_orm_sqlite_core.SQLiteColumn<{
8335
+ name: "updated_at";
8336
+ tableName: "pipeline_dispatch";
8337
+ dataType: "string";
8338
+ columnType: "SQLiteText";
8339
+ data: string;
8340
+ driverParam: string;
8341
+ notNull: true;
8342
+ hasDefault: true;
8343
+ isPrimaryKey: false;
8344
+ isAutoincrement: false;
8345
+ hasRuntimeDefault: false;
8346
+ enumValues: [string, ...string[]];
8347
+ baseColumn: never;
8348
+ identity: undefined;
8349
+ generated: undefined;
8350
+ }, {}, {
8351
+ length: number | undefined;
8352
+ }>;
8353
+ run_id: drizzle_orm_sqlite_core.SQLiteColumn<{
8354
+ name: "run_id";
8355
+ tableName: "pipeline_dispatch";
8356
+ dataType: "string";
8357
+ columnType: "SQLiteText";
8358
+ data: string;
8359
+ driverParam: string;
8360
+ notNull: true;
8361
+ hasDefault: false;
8362
+ isPrimaryKey: false;
8363
+ isAutoincrement: false;
8364
+ hasRuntimeDefault: false;
8365
+ enumValues: [string, ...string[]];
8366
+ baseColumn: never;
8367
+ identity: undefined;
8368
+ generated: undefined;
8369
+ }, {}, {
8370
+ length: number | undefined;
8371
+ }>;
8372
+ stage_name: drizzle_orm_sqlite_core.SQLiteColumn<{
8373
+ name: "stage_name";
8374
+ tableName: "pipeline_dispatch";
8375
+ dataType: "string";
8376
+ columnType: "SQLiteText";
8377
+ data: string;
8378
+ driverParam: string;
8379
+ notNull: true;
8380
+ hasDefault: false;
8381
+ isPrimaryKey: false;
8382
+ isAutoincrement: false;
8383
+ hasRuntimeDefault: false;
8384
+ enumValues: [string, ...string[]];
8385
+ baseColumn: never;
8386
+ identity: undefined;
8387
+ generated: undefined;
8388
+ }, {}, {
8389
+ length: number | undefined;
8390
+ }>;
8391
+ commit_sha: drizzle_orm_sqlite_core.SQLiteColumn<{
8392
+ name: "commit_sha";
8393
+ tableName: "pipeline_dispatch";
8394
+ dataType: "string";
8395
+ columnType: "SQLiteText";
8396
+ data: string;
8397
+ driverParam: string;
8398
+ notNull: true;
8399
+ hasDefault: false;
8400
+ isPrimaryKey: false;
8401
+ isAutoincrement: false;
8402
+ hasRuntimeDefault: false;
8403
+ enumValues: [string, ...string[]];
8404
+ baseColumn: never;
8405
+ identity: undefined;
8406
+ generated: undefined;
8407
+ }, {}, {
8408
+ length: number | undefined;
8409
+ }>;
8410
+ status: drizzle_orm_sqlite_core.SQLiteColumn<{
8411
+ name: "status";
8412
+ tableName: "pipeline_dispatch";
8413
+ dataType: "string";
8414
+ columnType: "SQLiteText";
8415
+ data: "dispatched" | "failed" | "claimed";
8416
+ driverParam: string;
8417
+ notNull: true;
8418
+ hasDefault: true;
8419
+ isPrimaryKey: false;
8420
+ isAutoincrement: false;
8421
+ hasRuntimeDefault: false;
8422
+ enumValues: ["claimed", "dispatched", "failed"];
8423
+ baseColumn: never;
8424
+ identity: undefined;
8425
+ generated: undefined;
8426
+ }, {}, {
8427
+ length: number | undefined;
8428
+ }>;
8429
+ error: drizzle_orm_sqlite_core.SQLiteColumn<{
8430
+ name: "error";
8431
+ tableName: "pipeline_dispatch";
8432
+ dataType: "string";
8433
+ columnType: "SQLiteText";
8434
+ data: string;
8435
+ driverParam: string;
8436
+ notNull: false;
8437
+ hasDefault: false;
8438
+ isPrimaryKey: false;
8439
+ isAutoincrement: false;
8440
+ hasRuntimeDefault: false;
8441
+ enumValues: [string, ...string[]];
8442
+ baseColumn: never;
8443
+ identity: undefined;
8444
+ generated: undefined;
8445
+ }, {}, {
8446
+ length: number | undefined;
8447
+ }>;
8448
+ requested_by: drizzle_orm_sqlite_core.SQLiteColumn<{
8449
+ name: "requested_by";
8450
+ tableName: "pipeline_dispatch";
8451
+ dataType: "string";
8452
+ columnType: "SQLiteText";
8453
+ data: string;
8454
+ driverParam: string;
8455
+ notNull: false;
8456
+ hasDefault: false;
8457
+ isPrimaryKey: false;
8458
+ isAutoincrement: false;
8459
+ hasRuntimeDefault: false;
8460
+ enumValues: [string, ...string[]];
8461
+ baseColumn: never;
8462
+ identity: undefined;
8463
+ generated: undefined;
8464
+ }, {}, {
8465
+ length: number | undefined;
8466
+ }>;
8467
+ id: drizzle_orm_sqlite_core.SQLiteColumn<{
8468
+ name: "id";
8469
+ tableName: "pipeline_dispatch";
8470
+ dataType: "string";
8471
+ columnType: "SQLiteText";
8472
+ data: string;
8473
+ driverParam: string;
8474
+ notNull: true;
8475
+ hasDefault: true;
8476
+ isPrimaryKey: true;
8477
+ isAutoincrement: false;
8478
+ hasRuntimeDefault: true;
8479
+ enumValues: [string, ...string[]];
8480
+ baseColumn: never;
8481
+ identity: undefined;
8482
+ generated: undefined;
8483
+ }, {}, {
8484
+ length: number | undefined;
8485
+ }>;
8486
+ };
8487
+ dialect: "sqlite";
8488
+ }>;
8254
8489
  pipeline_grant: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
8255
8490
  name: "pipeline_grant";
8256
8491
  schema: undefined;
@@ -9296,6 +9531,10 @@ declare const fullSchema: {
9296
9531
  package: drizzle_orm.One<"pipeline_package", true>;
9297
9532
  events: drizzle_orm.Many<"pipeline_stage_event">;
9298
9533
  approvals: drizzle_orm.Many<"pipeline_approval">;
9534
+ dispatches: drizzle_orm.Many<"pipeline_dispatch">;
9535
+ }>;
9536
+ pipeline_dispatch_relations: drizzle_orm.Relations<"pipeline_dispatch", {
9537
+ run: drizzle_orm.One<"pipeline_run", true>;
9299
9538
  }>;
9300
9539
  pipeline_stage_event_relations: drizzle_orm.Relations<"pipeline_stage_event", {
9301
9540
  run: drizzle_orm.One<"pipeline_run", true>;
@@ -1,6 +1,6 @@
1
1
  export { A as ApiError, a as ApprovalChannelError, b as AuthExpiredError, B as BadRequestError, c as BaseError, C as ConflictError, d as CronError, D as DatabaseError, E as EncryptionError, e as ErrorContext, f as ErrorLogEntry, F as ForbiddenError, G as GithubError, N as NetworkError, g as NotFoundError, P as ParseError, h as ProtectedError, i as ProviderError, R as RateLimitedError, S as ScanError, j as ServiceError, k as StoreError, U as UnauthorizedError, V as ValidationError, l as ValidationFieldError, m as apiError, n as approvalChannel, o as authExpired, p as badRequest, q as configureErrorLogging, r as conflict, s as dbError, t as encryptionError, u as errors, v as forbidden, w as githubError, x as isApiError, y as isApprovalChannelError, z as isAuthExpiredError, H as isBadRequestError, I as isConflictError, J as isDatabaseError, K as isEncryptionError, L as isForbiddenError, M as isGithubError, O as isNetworkError, Q as isNotFoundError, T as isParseError, W as isProtectedError, X as isRateLimitedError, Y as isRetryableError, Z as isScanError, _ as isServiceError, $ as isStoreError, a0 as isUnauthorizedError, a1 as isValidationError, a2 as isValidationFieldError, a3 as networkError, a4 as notFound, a5 as parseError, a6 as protectedEntity, a7 as rateLimited, a8 as scanError, a9 as storeError, aa as unauthorized, ab as validation, ac as validationFieldError } from '../errors.d-BUNZEN7j.js';
2
- export { A as Action, a as AdvanceStageRequest, b as AnnotationThread, c as ApiKey, d as ApplyLog, e as ApplyOp, f as ApplyRequest, C as ClaimRequest, g as CodebaseTask, h as ConfigSchemaType, i as CreateThreadRequest, D as DashboardResponse, j as DashboardWindowQuery, k as DecideCheckpointRequest, l as Document, m as DoneRequest, E as ExternalRef, G as GetConfigResult, n as GithubWebhookEvent, o as Goal, H as HistoryAction, p as Hook, q as HookActionInput, r as HookActionPublic, s as HookActionStored, t as HookDelivery, u as HookSelector, v as HookTrigger, I as INTERFACE_DIFF_CLASSES, w as IgnorePath, x as InsertPipelineStageEvent, y as InterfaceDiffClass, M as Milestone, N as Nullable, P as PipelineAnalysisTemplate, z as PipelineApproval, B as PipelineGrant, F as PipelineOidcTrust, J as PipelinePackage, K as PipelineRun, L as PipelineStageEvent, O as Project, Q as ProjectConfig, R as ProjectGraphResponse, S as ProjectViewLayoutInput, T as ProjectWithTasks, U as PushDocRequest, V as PushInterfaceReportRequest, W as REVIEW_ITEM_KINDS, X as ReplyThreadRequest, Y as RequestCheckpointRequest, Z as ReviewItem, _ as ReviewItemKind, $ as ReviewsPendingResponse, a0 as RolloutShapeZ, a1 as RunKindZ, a2 as SaveConfigRequest, a3 as ScanDiffProposal, a4 as ScanStatus, a5 as Session, a6 as Signoff, a7 as TAG_COLOURS, a8 as Tag, a9 as TagColor, aa as TagConfig, ab as TagWithColor, ac as TagWithTypedColor, ad as Task, ae as TaskEvent, af as TaskEventPayload, ag as TaskLink, ah as TaskRollup, ai as TaskTag, aj as TaskView, ak as TaskWithDetails, al as ThreadAnchor, am as ThreadEntry, an as ThreadMarker, ao as TodoUpdate, ap as ToggleBlockingRequest, aq as ToggleHookEnabled, ar as TrackerResult, as as UpdateAction, at as UpdateData, au as UpdateUser, av as UpsertGoal, aw as UpsertHook, ax as UpsertMilestone, ay as UpsertPipelineAnalysisTemplate, az as UpsertPipelineApproval, aA as UpsertPipelineGrant, aB as UpsertPipelineOidcTrust, aC as UpsertPipelinePackage, aD as UpsertPipelineRun, aE as UpsertProject, aF as UpsertTag, aG as UpsertTaskLink, aH as UpsertTodo, aI as User, aJ as WebhookEventBody, aK as advance_stage_request, aL as apply_op, aM as apply_request, aN as approval_decision, aO as claim_request, aP as config_schema, aQ as create_thread_request, aR as dashboard_response, aS as dashboard_window_query, aT as decide_checkpoint_request, aU as document_kind, aV as done_request, aW as external_ref, aX as forced_atomic_reason, aY as gate_descriptor, aZ as grant_scope, a_ as hook_action_input, a$ as hook_action_public, b0 as hook_action_stored, b1 as hook_selector, b2 as hook_trigger, b3 as insert_pipeline_stage_event, b4 as pipeline_oidc_provider, b5 as project_config, b6 as project_graph_link, b7 as project_graph_response, b8 as project_graph_rollup_counts, b9 as project_graph_task, ba as project_view_layout, bb as project_view_pin, bc as push_doc_request, bd as push_interface_report_request, be as reply_thread_request, bf as request_checkpoint_request, bg as resolved_gates, bh as resolved_rollout, bi as review_item, bj as reviews_pending_response, bk as rollout_shape, bl as rollout_stage, bm as run_kind, bn as run_status, bo as save_config_request, bp as save_tags_request, bq as scan_diff_proposal, br as sdlc_stage, bs as signoff_checkpoint, bt as signoff_subject_kind, bu as stage_event_kind, bv as task_event_actor, bw as task_event_payload, bx as task_link_kind, by as thread_anchor, bz as thread_entry, bA as thread_marker, bB as thread_status, bC as toggle_blocking_request, bD as toggle_hook_enabled, bE as update_action, bF as update_user, bG as upsert_goal, bH as upsert_hook, bI as upsert_milestone, bJ as upsert_pipeline_analysis_template, bK as upsert_pipeline_approval, bL as upsert_pipeline_grant, bM as upsert_pipeline_oidc_trust, bN as upsert_pipeline_package, bO as upsert_pipeline_run, bP as upsert_project, bQ as upsert_tag, bR as upsert_task_link, bS as upsert_todo, bT as webhook_event_body } from '../types.d-BPhr25k1.js';
3
- export { a as ApprovalDecision, C as CompletedVia, b as CompletionPolicy, D as DocumentKind, c as DocumentStatus, F as ForcedAtomicReason, G as GRAPH_CHILDREN_CAP, d as GRAPH_DEPTH_CAP, H as HookDeliveryStatus, P as PipelineOidcProvider, R as RolloutShape, f as RunStatus, S as SdlcStage, g as SignoffCheckpoint, h as SignoffDecision, i as SignoffSubjectKind, j as StageEventKind, T as TaskEventActor, k as TaskEventDispatchStatus, l as TaskEventKind, m as TaskKind, n as TaskLinkKind, o as ThreadStatus } from '../schema.d-CJi69lKr.js';
2
+ export { A as Action, a as AdvanceStageRequest, b as AnnotationThread, c as ApiKey, d as ApplyLog, e as ApplyOp, f as ApplyRequest, C as ClaimRequest, g as CodebaseTask, h as ConfigSchemaType, i as CreateThreadRequest, D as DashboardResponse, j as DashboardWindowQuery, k as DecideCheckpointRequest, l as Document, m as DoneRequest, E as ExternalRef, n as ExternalTarget, G as GetConfigResult, o as GithubWebhookEvent, p as Goal, H as HistoryAction, q as Hook, r as HookActionInput, s as HookActionPublic, t as HookActionStored, u as HookDelivery, v as HookSelector, w as HookTrigger, I as INTERFACE_DIFF_CLASSES, x as IgnorePath, y as InsertPipelineStageEvent, z as InterfaceDiffClass, M as Milestone, N as Nullable, P as PipelineAnalysisTemplate, B as PipelineApproval, F as PipelineDispatch, J as PipelineGrant, K as PipelineOidcTrust, L as PipelinePackage, O as PipelineRun, Q as PipelineStageEvent, R as Project, S as ProjectConfig, T as ProjectGraphResponse, U as ProjectViewLayoutInput, V as ProjectWithTasks, W as PushDocRequest, X as PushInterfaceReportRequest, Y as REVIEW_ITEM_KINDS, Z as ReplyThreadRequest, _ as RequestCheckpointRequest, $ as ReviewItem, a0 as ReviewItemKind, a1 as ReviewsPendingResponse, a2 as RolloutShapeZ, a3 as RunKindZ, a4 as SaveConfigRequest, a5 as ScanDiffProposal, a6 as ScanStatus, a7 as Session, a8 as Signoff, a9 as TAG_COLOURS, aa as Tag, ab as TagColor, ac as TagConfig, ad as TagWithColor, ae as TagWithTypedColor, af as Task, ag as TaskEvent, ah as TaskEventPayload, ai as TaskLink, aj as TaskRollup, ak as TaskTag, al as TaskView, am as TaskWithDetails, an as ThreadAnchor, ao as ThreadEntry, ap as ThreadMarker, aq as TodoUpdate, ar as ToggleBlockingRequest, as as ToggleHookEnabled, at as TrackerResult, au as UpdateAction, av as UpdateData, aw as UpdateUser, ax as UpsertGoal, ay as UpsertHook, az as UpsertMilestone, aA as UpsertPipelineAnalysisTemplate, aB as UpsertPipelineApproval, aC as UpsertPipelineDispatch, aD as UpsertPipelineGrant, aE as UpsertPipelineOidcTrust, aF as UpsertPipelinePackage, aG as UpsertPipelineRun, aH as UpsertProject, aI as UpsertTag, aJ as UpsertTaskLink, aK as UpsertTodo, aL as User, aM as WebhookEventBody, aN as advance_stage_request, aO as apply_op, aP as apply_request, aQ as approval_decision, aR as claim_request, aS as commit_sha, aT as config_schema, aU as create_thread_request, aV as dashboard_response, aW as dashboard_window_query, aX as decide_checkpoint_request, aY as deploy_mode, aZ as dispatch_status, a_ as document_kind, a$ as done_request, b0 as external_ref, b1 as external_target, b2 as forced_atomic_reason, b3 as gate_descriptor, b4 as grant_scope, b5 as hook_action_input, b6 as hook_action_public, b7 as hook_action_stored, b8 as hook_selector, b9 as hook_trigger, ba as insert_pipeline_stage_event, bb as pipeline_oidc_provider, bc as project_config, bd as project_graph_link, be as project_graph_response, bf as project_graph_rollup_counts, bg as project_graph_task, bh as project_view_layout, bi as project_view_pin, bj as push_doc_request, bk as push_interface_report_request, bl as reply_thread_request, bm as request_checkpoint_request, bn as resolved_gates, bo as resolved_rollout, bp as review_item, bq as reviews_pending_response, br as rollout_shape, bs as rollout_stage, bt as run_kind, bu as run_status, bv as save_config_request, bw as save_tags_request, bx as scan_diff_proposal, by as sdlc_stage, bz as signoff_checkpoint, bA as signoff_subject_kind, bB as stage_event_kind, bC as task_event_actor, bD as task_event_payload, bE as task_link_kind, bF as thread_anchor, bG as thread_entry, bH as thread_marker, bI as thread_status, bJ as toggle_blocking_request, bK as toggle_hook_enabled, bL as update_action, bM as update_user, bN as upsert_goal, bO as upsert_hook, bP as upsert_milestone, bQ as upsert_pipeline_analysis_template, bR as upsert_pipeline_approval, bS as upsert_pipeline_dispatch, bT as upsert_pipeline_grant, bU as upsert_pipeline_oidc_trust, bV as upsert_pipeline_package, bW as upsert_pipeline_run, bX as upsert_project, bY as upsert_tag, bZ as upsert_task_link, b_ as upsert_todo, b$ as webhook_event_body } from '../types.d-D5SZVjNV.js';
3
+ export { a as ApprovalDecision, C as CompletedVia, b as CompletionPolicy, D as DeployMode, c as DispatchStatus, d as DocumentKind, e as DocumentStatus, F as ForcedAtomicReason, G as GRAPH_CHILDREN_CAP, f as GRAPH_DEPTH_CAP, H as HookDeliveryStatus, P as PipelineOidcProvider, R as RolloutShape, h as RunStatus, S as SdlcStage, i as SignoffCheckpoint, j as SignoffDecision, k as SignoffSubjectKind, l as StageEventKind, T as TaskEventActor, m as TaskEventDispatchStatus, n as TaskEventKind, o as TaskKind, p as TaskLinkKind, q as ThreadStatus } from '../schema.d-DKK3C47P.js';
4
4
  import '@f0rbit/corpus';
5
5
  import 'drizzle-orm';
6
6
  import 'zod';