@devpad/api 2.3.3 → 2.3.4

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.
@@ -198,6 +198,35 @@ var apply_log = sqliteTable("apply_log", {
198
198
  response: text("response", { mode: "json" }).notNull(),
199
199
  created_at: text("created_at").notNull().default(sql`(CURRENT_TIMESTAMP)`)
200
200
  });
201
+ var TASK_EVENT_KINDS = [
202
+ "task.created",
203
+ "task.updated",
204
+ "task.completed",
205
+ "task.reopened",
206
+ "task.claimed",
207
+ "edge.created",
208
+ "edge.removed",
209
+ "node.children_all_done",
210
+ "policy.fired",
211
+ "node.completion_stale"
212
+ ];
213
+ var TASK_EVENT_ACTORS = ["user", "api", "policy", "github"];
214
+ var TASK_EVENT_DISPATCH_STATUSES = ["pending", "dispatched"];
215
+ var task_event = sqliteTable("task_event", {
216
+ id: integer("id").primaryKey({ autoIncrement: true }),
217
+ event_id: text("event_id").notNull().unique().$defaultFn(() => `evt_${crypto.randomUUID()}`),
218
+ kind: text("kind", { enum: TASK_EVENT_KINDS }).notNull(),
219
+ subject_id: text("subject_id").notNull(),
220
+ project_id: text("project_id"),
221
+ actor: text("actor", { enum: TASK_EVENT_ACTORS }).notNull(),
222
+ payload: text("payload", { mode: "json" }).notNull(),
223
+ occurred_at: text("occurred_at").notNull().default(sql`(CURRENT_TIMESTAMP)`),
224
+ dispatch_status: text("dispatch_status", { enum: TASK_EVENT_DISPATCH_STATUSES }).notNull().default("pending"),
225
+ dispatched_at: text("dispatched_at")
226
+ }, (table) => [
227
+ index("task_event_subject_id_idx").on(table.subject_id),
228
+ index("task_event_dispatch_status_idx").on(table.dispatch_status)
229
+ ]);
201
230
  var checklist = sqliteTable("checklist", {
202
231
  ...entity("checklist"),
203
232
  task_id: text("task_id").notNull().references(() => task.id),
@@ -393,6 +422,9 @@ var task_link_relations = relations(task_link, ({ one }) => ({
393
422
  var task_rollup_relations = relations(task_rollup, ({ one }) => ({
394
423
  task: one(task, { fields: [task_rollup.task_id], references: [task.id] })
395
424
  }));
425
+ var task_event_relations = relations(task_event, ({ one }) => ({
426
+ subject: one(task, { fields: [task_event.subject_id], references: [task.id] })
427
+ }));
396
428
  var checklist_relations = relations(checklist, ({ one, many }) => ({
397
429
  task: one(task, { fields: [checklist.task_id], references: [task.id] }),
398
430
  items: many(checklist_item)
@@ -759,6 +791,20 @@ var apply_request = z.object({
759
791
  ops: z.array(apply_op).min(1)
760
792
  });
761
793
  var claim_request = z.object({ actor: z.string().min(1), base_rev: z.number().int() });
794
+ var done_request = z.object({ base_rev: z.number().int() });
795
+ var task_event_actor = z.enum(TASK_EVENT_ACTORS);
796
+ var task_event_payload = z.discriminatedUnion("kind", [
797
+ z.object({ kind: z.literal("task.created"), title: z.string() }),
798
+ z.object({ kind: z.literal("task.updated"), fields: z.array(z.string()) }),
799
+ z.object({ kind: z.literal("task.completed"), via: z.enum(COMPLETED_VIA_VALUES) }),
800
+ z.object({ kind: z.literal("task.reopened"), via: z.enum(COMPLETED_VIA_VALUES) }),
801
+ z.object({ kind: z.literal("task.claimed"), actor: z.string() }),
802
+ z.object({ kind: z.literal("edge.created"), link_kind: task_link_kind, dst_id: z.string().nullable() }),
803
+ z.object({ kind: z.literal("edge.removed"), link_kind: task_link_kind, dst_id: z.string().nullable() }),
804
+ z.object({ kind: z.literal("node.children_all_done") }),
805
+ z.object({ kind: z.literal("policy.fired"), policy: z.enum(COMPLETION_POLICIES) }),
806
+ z.object({ kind: z.literal("node.completion_stale"), child_id: z.string() })
807
+ ]);
762
808
 
763
809
  export {
764
810
  GRAPH_DEPTH_CAP,
@@ -803,5 +849,8 @@ export {
803
849
  upsert_task_link,
804
850
  apply_op,
805
851
  apply_request,
806
- claim_request
852
+ claim_request,
853
+ done_request,
854
+ task_event_actor,
855
+ task_event_payload
807
856
  };
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-BhWQru2j.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-BZOIiHoO.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-ip2SzstN.js';
3
3
  import { z } from 'zod';
4
- import { a as ApiKey, p as Project, a4 as UpsertProject, G as GetConfigResult, S as SaveConfigRequest, Q as TodoUpdate, H as HistoryAction, M as Milestone, h as Goal, O as TaskWithDetails, a7 as UpsertTodo, a5 as UpsertTag, B as Task, F as TaskLink, C as ClaimRequest, a6 as UpsertTaskLink, d as ApplyRequest, c as ApplyOp, z as TagWithTypedColor, D as DashboardResponse, n as PipelineRun, o as PipelineStageEvent, k as PipelineGrant, m as PipelinePackage, P as PipelineAnalysisTemplate, l as PipelineOidcTrust } from './types.d-8FWQKyCL.js';
5
- export { q as ProjectConfig } from './types.d-8FWQKyCL.js';
4
+ import { a as ApiKey, q as Project, a7 as UpsertProject, G as GetConfigResult, S as SaveConfigRequest, W as TodoUpdate, H as HistoryAction, M as Milestone, i as Goal, V as TaskWithDetails, aa as UpsertTodo, a8 as UpsertTag, F as Task, L as TaskLink, C as ClaimRequest, h as DoneRequest, a9 as UpsertTaskLink, d as ApplyRequest, c as ApplyOp, B as TagWithTypedColor, D as DashboardResponse, o as PipelineRun, p as PipelineStageEvent, l as PipelineGrant, n as PipelinePackage, P as PipelineAnalysisTemplate, m as PipelineOidcTrust } from './types.d-BJ3g4B0G.js';
5
+ export { r as ProjectConfig } from './types.d-BJ3g4B0G.js';
6
6
  import { Result } from '@f0rbit/corpus';
7
7
  export { Result, err, ok } from '@f0rbit/corpus';
8
- import { S as StageEventKind } from './schema.d-D3xGKqB8.js';
8
+ import { C as CompletedVia, S as StageEventKind } from './schema.d-DfzLWuRW.js';
9
9
  import 'drizzle-orm';
10
10
  import './media.d-R87HGuRp.js';
11
11
  import 'drizzle-orm/sqlite-core';
@@ -698,6 +698,15 @@ type ApplyResponse = {
698
698
  idempotency_key: string;
699
699
  results: ApplyOpResult[];
700
700
  };
701
+ type BubbleStep = {
702
+ task: Task;
703
+ via: CompletedVia;
704
+ };
705
+ type DoneResponse = {
706
+ completed: Task;
707
+ bubbled: BubbleStep[];
708
+ hooks_fired: string[];
709
+ };
701
710
 
702
711
  type TagWithCount = {
703
712
  tag: string;
@@ -1052,6 +1061,14 @@ declare class ApiClient {
1052
1061
  near: (id: string) => Promise<ApiResult<NearResponse>>;
1053
1062
  /** Atomic claim: sets claimed_by/claimed_at + IN_PROGRESS, guarded on claimed_by IS NULL and base_rev. */
1054
1063
  claim: (id: string, data: ClaimRequest) => Promise<ApiResult<Task>>;
1064
+ /**
1065
+ * Completes a task through the single completion entrypoint
1066
+ * (CompletionEngine) — the response's `bubbled` chain is the ordered
1067
+ * list of ancestors an auto_children cascade also completed, exactly
1068
+ * what a ripple animation would replay. `hooks_fired` is a placeholder
1069
+ * until phase A3.
1070
+ */
1071
+ done: (id: string, data: DoneRequest) => Promise<ApiResult<DoneResponse>>;
1055
1072
  /** Create a typed edge between two tasks (or a task and an external ref). */
1056
1073
  link: (data: UpsertTaskLink) => Promise<ApiResult<TaskLink>>;
1057
1074
  /** Remove a typed edge by its own id. */
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  upsert_project,
10
10
  upsert_task_link,
11
11
  upsert_todo
12
- } from "./chunk-ZPDYJASJ.js";
12
+ } from "./chunk-XHTCNYWS.js";
13
13
  import {
14
14
  CategoryCreateSchema,
15
15
  PostCreateSchema,
@@ -880,6 +880,14 @@ var ApiClient2 = class {
880
880
  near: (id) => wrap(() => this.clients.tasks.get(`/tasks/${id}/near`)),
881
881
  /** Atomic claim: sets claimed_by/claimed_at + IN_PROGRESS, guarded on claimed_by IS NULL and base_rev. */
882
882
  claim: (id, data) => wrap(() => this.clients.tasks.post(`/tasks/${id}/claim`, { body: data })),
883
+ /**
884
+ * Completes a task through the single completion entrypoint
885
+ * (CompletionEngine) — the response's `bubbled` chain is the ordered
886
+ * list of ancestors an auto_children cascade also completed, exactly
887
+ * what a ripple animation would replay. `hooks_fired` is a placeholder
888
+ * until phase A3.
889
+ */
890
+ done: (id, data) => wrap(() => this.clients.tasks.post(`/tasks/${id}/done`, { body: data })),
883
891
  /** Create a typed edge between two tasks (or a task and an external ref). */
884
892
  link: (data) => wrap(() => this.clients.tasks.post("/tasks/link", { body: data })),
885
893
  /** Remove a typed edge by its own id. */
@@ -1918,6 +1926,15 @@ var tools = {
1918
1926
  }),
1919
1927
  execute: async (client, input) => unwrap(await client.tasks.claim(input.id, { actor: input.actor, base_rev: input.base_rev }))
1920
1928
  }),
1929
+ devpad_tasks_done: define_tool({
1930
+ name: "devpad_tasks_done",
1931
+ description: "Complete a task through the single completion entrypoint (CompletionEngine). Returns { completed, bubbled, hooks_fired } \u2014 bubbled is the ordered chain of ancestors an auto_children cascade also completed. 409 on stale base_rev or if already completed.",
1932
+ inputSchema: z2.object({
1933
+ id: z2.string().describe("Task ID"),
1934
+ base_rev: z2.number().int().describe("Expected current rev \u2014 optimistic concurrency guard")
1935
+ }),
1936
+ execute: async (client, input) => unwrap(await client.tasks.done(input.id, { base_rev: input.base_rev }))
1937
+ }),
1921
1938
  devpad_tasks_link: define_tool({
1922
1939
  name: "devpad_tasks_link",
1923
1940
  description: "Create a typed edge between two tasks (blocks | relates_to | references | discovered_from | tracks_metric)",
@@ -4674,6 +4674,202 @@ declare const fullSchema: {
4674
4674
  };
4675
4675
  dialect: "sqlite";
4676
4676
  }>;
4677
+ TASK_EVENT_KINDS: readonly ["task.created", "task.updated", "task.completed", "task.reopened", "task.claimed", "edge.created", "edge.removed", "node.children_all_done", "policy.fired", "node.completion_stale"];
4678
+ TASK_EVENT_ACTORS: readonly ["user", "api", "policy", "github"];
4679
+ TASK_EVENT_DISPATCH_STATUSES: readonly ["pending", "dispatched"];
4680
+ task_event: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
4681
+ name: "task_event";
4682
+ schema: undefined;
4683
+ columns: {
4684
+ id: drizzle_orm_sqlite_core.SQLiteColumn<{
4685
+ name: "id";
4686
+ tableName: "task_event";
4687
+ dataType: "number";
4688
+ columnType: "SQLiteInteger";
4689
+ data: number;
4690
+ driverParam: number;
4691
+ notNull: true;
4692
+ hasDefault: true;
4693
+ isPrimaryKey: true;
4694
+ isAutoincrement: false;
4695
+ hasRuntimeDefault: false;
4696
+ enumValues: undefined;
4697
+ baseColumn: never;
4698
+ identity: undefined;
4699
+ generated: undefined;
4700
+ }, {}, {}>;
4701
+ event_id: drizzle_orm_sqlite_core.SQLiteColumn<{
4702
+ name: "event_id";
4703
+ tableName: "task_event";
4704
+ dataType: "string";
4705
+ columnType: "SQLiteText";
4706
+ data: string;
4707
+ driverParam: string;
4708
+ notNull: true;
4709
+ hasDefault: true;
4710
+ isPrimaryKey: false;
4711
+ isAutoincrement: false;
4712
+ hasRuntimeDefault: true;
4713
+ enumValues: [string, ...string[]];
4714
+ baseColumn: never;
4715
+ identity: undefined;
4716
+ generated: undefined;
4717
+ }, {}, {
4718
+ length: number | undefined;
4719
+ }>;
4720
+ kind: drizzle_orm_sqlite_core.SQLiteColumn<{
4721
+ name: "kind";
4722
+ tableName: "task_event";
4723
+ dataType: "string";
4724
+ columnType: "SQLiteText";
4725
+ data: "task.created" | "task.updated" | "task.completed" | "task.reopened" | "task.claimed" | "edge.created" | "edge.removed" | "node.children_all_done" | "policy.fired" | "node.completion_stale";
4726
+ driverParam: string;
4727
+ notNull: true;
4728
+ hasDefault: false;
4729
+ isPrimaryKey: false;
4730
+ isAutoincrement: false;
4731
+ hasRuntimeDefault: false;
4732
+ enumValues: ["task.created", "task.updated", "task.completed", "task.reopened", "task.claimed", "edge.created", "edge.removed", "node.children_all_done", "policy.fired", "node.completion_stale"];
4733
+ baseColumn: never;
4734
+ identity: undefined;
4735
+ generated: undefined;
4736
+ }, {}, {
4737
+ length: number | undefined;
4738
+ }>;
4739
+ subject_id: drizzle_orm_sqlite_core.SQLiteColumn<{
4740
+ name: "subject_id";
4741
+ tableName: "task_event";
4742
+ dataType: "string";
4743
+ columnType: "SQLiteText";
4744
+ data: string;
4745
+ driverParam: string;
4746
+ notNull: true;
4747
+ hasDefault: false;
4748
+ isPrimaryKey: false;
4749
+ isAutoincrement: false;
4750
+ hasRuntimeDefault: false;
4751
+ enumValues: [string, ...string[]];
4752
+ baseColumn: never;
4753
+ identity: undefined;
4754
+ generated: undefined;
4755
+ }, {}, {
4756
+ length: number | undefined;
4757
+ }>;
4758
+ project_id: drizzle_orm_sqlite_core.SQLiteColumn<{
4759
+ name: "project_id";
4760
+ tableName: "task_event";
4761
+ dataType: "string";
4762
+ columnType: "SQLiteText";
4763
+ data: string;
4764
+ driverParam: string;
4765
+ notNull: false;
4766
+ hasDefault: false;
4767
+ isPrimaryKey: false;
4768
+ isAutoincrement: false;
4769
+ hasRuntimeDefault: false;
4770
+ enumValues: [string, ...string[]];
4771
+ baseColumn: never;
4772
+ identity: undefined;
4773
+ generated: undefined;
4774
+ }, {}, {
4775
+ length: number | undefined;
4776
+ }>;
4777
+ actor: drizzle_orm_sqlite_core.SQLiteColumn<{
4778
+ name: "actor";
4779
+ tableName: "task_event";
4780
+ dataType: "string";
4781
+ columnType: "SQLiteText";
4782
+ data: "user" | "api" | "policy" | "github";
4783
+ driverParam: string;
4784
+ notNull: true;
4785
+ hasDefault: false;
4786
+ isPrimaryKey: false;
4787
+ isAutoincrement: false;
4788
+ hasRuntimeDefault: false;
4789
+ enumValues: ["user", "api", "policy", "github"];
4790
+ baseColumn: never;
4791
+ identity: undefined;
4792
+ generated: undefined;
4793
+ }, {}, {
4794
+ length: number | undefined;
4795
+ }>;
4796
+ payload: drizzle_orm_sqlite_core.SQLiteColumn<{
4797
+ name: "payload";
4798
+ tableName: "task_event";
4799
+ dataType: "json";
4800
+ columnType: "SQLiteTextJson";
4801
+ data: unknown;
4802
+ driverParam: string;
4803
+ notNull: true;
4804
+ hasDefault: false;
4805
+ isPrimaryKey: false;
4806
+ isAutoincrement: false;
4807
+ hasRuntimeDefault: false;
4808
+ enumValues: undefined;
4809
+ baseColumn: never;
4810
+ identity: undefined;
4811
+ generated: undefined;
4812
+ }, {}, {}>;
4813
+ occurred_at: drizzle_orm_sqlite_core.SQLiteColumn<{
4814
+ name: "occurred_at";
4815
+ tableName: "task_event";
4816
+ dataType: "string";
4817
+ columnType: "SQLiteText";
4818
+ data: string;
4819
+ driverParam: string;
4820
+ notNull: true;
4821
+ hasDefault: true;
4822
+ isPrimaryKey: false;
4823
+ isAutoincrement: false;
4824
+ hasRuntimeDefault: false;
4825
+ enumValues: [string, ...string[]];
4826
+ baseColumn: never;
4827
+ identity: undefined;
4828
+ generated: undefined;
4829
+ }, {}, {
4830
+ length: number | undefined;
4831
+ }>;
4832
+ dispatch_status: drizzle_orm_sqlite_core.SQLiteColumn<{
4833
+ name: "dispatch_status";
4834
+ tableName: "task_event";
4835
+ dataType: "string";
4836
+ columnType: "SQLiteText";
4837
+ data: "pending" | "dispatched";
4838
+ driverParam: string;
4839
+ notNull: true;
4840
+ hasDefault: true;
4841
+ isPrimaryKey: false;
4842
+ isAutoincrement: false;
4843
+ hasRuntimeDefault: false;
4844
+ enumValues: ["pending", "dispatched"];
4845
+ baseColumn: never;
4846
+ identity: undefined;
4847
+ generated: undefined;
4848
+ }, {}, {
4849
+ length: number | undefined;
4850
+ }>;
4851
+ dispatched_at: drizzle_orm_sqlite_core.SQLiteColumn<{
4852
+ name: "dispatched_at";
4853
+ tableName: "task_event";
4854
+ dataType: "string";
4855
+ columnType: "SQLiteText";
4856
+ data: string;
4857
+ driverParam: string;
4858
+ notNull: false;
4859
+ hasDefault: false;
4860
+ isPrimaryKey: false;
4861
+ isAutoincrement: false;
4862
+ hasRuntimeDefault: false;
4863
+ enumValues: [string, ...string[]];
4864
+ baseColumn: never;
4865
+ identity: undefined;
4866
+ generated: undefined;
4867
+ }, {}, {
4868
+ length: number | undefined;
4869
+ }>;
4870
+ };
4871
+ dialect: "sqlite";
4872
+ }>;
4677
4873
  checklist: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
4678
4874
  name: "checklist";
4679
4875
  schema: undefined;
@@ -7798,6 +7994,9 @@ declare const fullSchema: {
7798
7994
  task_rollup_relations: drizzle_orm.Relations<"task_rollup", {
7799
7995
  task: drizzle_orm.One<"task", true>;
7800
7996
  }>;
7997
+ task_event_relations: drizzle_orm.Relations<"task_event", {
7998
+ subject: drizzle_orm.One<"task", true>;
7999
+ }>;
7801
8000
  checklist_relations: drizzle_orm.Relations<"checklist", {
7802
8001
  task: drizzle_orm.One<"task", true>;
7803
8002
  items: drizzle_orm.Many<"checklist_item">;
@@ -1,6 +1,6 @@
1
1
  export { A as ApiError, a as AuthExpiredError, B as BadRequestError, b as BaseError, C as ConflictError, c as CronError, D as DatabaseError, E as EncryptionError, d as ErrorContext, e as ErrorLogEntry, F as ForbiddenError, G as GithubError, N as NetworkError, f as NotFoundError, P as ParseError, g as ProtectedError, h as ProviderError, R as RateLimitedError, S as ScanError, i as ServiceError, j as StoreError, U as UnauthorizedError, V as ValidationError, k as ValidationFieldError, l as apiError, m as authExpired, n as badRequest, o as configureErrorLogging, p as conflict, q as dbError, r as encryptionError, s as errors, t as forbidden, u as githubError, v as isApiError, w as isAuthExpiredError, x as isBadRequestError, y as isConflictError, z as isDatabaseError, H as isEncryptionError, I as isForbiddenError, J as isGithubError, K as isNetworkError, L as isNotFoundError, M as isParseError, O as isProtectedError, Q as isRateLimitedError, T as isRetryableError, W as isScanError, X as isServiceError, Y as isStoreError, Z as isUnauthorizedError, _ as isValidationError, $ as isValidationFieldError, a0 as networkError, a1 as notFound, a2 as parseError, a3 as protectedEntity, a4 as rateLimited, a5 as scanError, a6 as storeError, a7 as unauthorized, a8 as validation, a9 as validationFieldError } from '../errors.d-CNYqUDaJ.js';
2
- export { A as Action, a as ApiKey, b as ApplyLog, c as ApplyOp, d as ApplyRequest, C as ClaimRequest, e as CodebaseTask, f as ConfigSchemaType, D as DashboardResponse, g as DashboardWindowQuery, E as ExternalRef, G as GetConfigResult, h as Goal, H as HistoryAction, I as IgnorePath, i as InsertPipelineStageEvent, M as Milestone, N as Nullable, P as PipelineAnalysisTemplate, j as PipelineApproval, k as PipelineGrant, l as PipelineOidcTrust, m as PipelinePackage, n as PipelineRun, o as PipelineStageEvent, p as Project, q as ProjectConfig, r as ProjectWithTasks, R as RolloutShapeZ, s as RunKindZ, S as SaveConfigRequest, t as ScanStatus, u as Session, T as TAG_COLOURS, v as Tag, w as TagColor, x as TagConfig, y as TagWithColor, z as TagWithTypedColor, B as Task, F as TaskLink, J as TaskRollup, K as TaskTag, L as TaskView, O as TaskWithDetails, Q as TodoUpdate, U as TrackerResult, V as UpdateAction, W as UpdateData, X as UpdateUser, Y as UpsertGoal, Z as UpsertMilestone, _ as UpsertPipelineAnalysisTemplate, $ as UpsertPipelineApproval, a0 as UpsertPipelineGrant, a1 as UpsertPipelineOidcTrust, a2 as UpsertPipelinePackage, a3 as UpsertPipelineRun, a4 as UpsertProject, a5 as UpsertTag, a6 as UpsertTaskLink, a7 as UpsertTodo, a8 as User, a9 as WebhookEventBody, aa as apply_op, ab as apply_request, ac as approval_decision, ad as claim_request, ae as config_schema, af as dashboard_response, ag as dashboard_window_query, ah as external_ref, ai as forced_atomic_reason, aj as gate_descriptor, ak as grant_scope, al as insert_pipeline_stage_event, am as pipeline_oidc_provider, an as project_config, ao as resolved_gates, ap as resolved_rollout, aq as rollout_shape, ar as rollout_stage, as as run_kind, at as run_status, au as save_config_request, av as save_tags_request, aw as stage_event_kind, ax as task_link_kind, ay as update_action, az as update_user, aA as upsert_goal, aB as upsert_milestone, aC as upsert_pipeline_analysis_template, aD as upsert_pipeline_approval, aE as upsert_pipeline_grant, aF as upsert_pipeline_oidc_trust, aG as upsert_pipeline_package, aH as upsert_pipeline_run, aI as upsert_project, aJ as upsert_tag, aK as upsert_task_link, aL as upsert_todo, aM as webhook_event_body } from '../types.d-8FWQKyCL.js';
3
- export { a as ApprovalDecision, C as CompletedVia, b as CompletionPolicy, F as ForcedAtomicReason, G as GRAPH_CHILDREN_CAP, c as GRAPH_DEPTH_CAP, P as PipelineOidcProvider, R as RolloutShape, d as RunStatus, S as StageEventKind, T as TaskKind, e as TaskLinkKind } from '../schema.d-D3xGKqB8.js';
2
+ export { A as Action, a as ApiKey, b as ApplyLog, c as ApplyOp, d as ApplyRequest, C as ClaimRequest, e as CodebaseTask, f as ConfigSchemaType, D as DashboardResponse, g as DashboardWindowQuery, h as DoneRequest, E as ExternalRef, G as GetConfigResult, i as Goal, H as HistoryAction, I as IgnorePath, j as InsertPipelineStageEvent, M as Milestone, N as Nullable, P as PipelineAnalysisTemplate, k as PipelineApproval, l as PipelineGrant, m as PipelineOidcTrust, n as PipelinePackage, o as PipelineRun, p as PipelineStageEvent, q as Project, r as ProjectConfig, s as ProjectWithTasks, R as RolloutShapeZ, t as RunKindZ, S as SaveConfigRequest, u as ScanStatus, v as Session, T as TAG_COLOURS, w as Tag, x as TagColor, y as TagConfig, z as TagWithColor, B as TagWithTypedColor, F as Task, J as TaskEvent, K as TaskEventPayload, L as TaskLink, O as TaskRollup, Q as TaskTag, U as TaskView, V as TaskWithDetails, W as TodoUpdate, X as TrackerResult, Y as UpdateAction, Z as UpdateData, _ as UpdateUser, $ as UpsertGoal, a0 as UpsertMilestone, a1 as UpsertPipelineAnalysisTemplate, a2 as UpsertPipelineApproval, a3 as UpsertPipelineGrant, a4 as UpsertPipelineOidcTrust, a5 as UpsertPipelinePackage, a6 as UpsertPipelineRun, a7 as UpsertProject, a8 as UpsertTag, a9 as UpsertTaskLink, aa as UpsertTodo, ab as User, ac as WebhookEventBody, ad as apply_op, ae as apply_request, af as approval_decision, ag as claim_request, ah as config_schema, ai as dashboard_response, aj as dashboard_window_query, ak as done_request, al as external_ref, am as forced_atomic_reason, an as gate_descriptor, ao as grant_scope, ap as insert_pipeline_stage_event, aq as pipeline_oidc_provider, ar as project_config, as as resolved_gates, at as resolved_rollout, au as rollout_shape, av as rollout_stage, aw as run_kind, ax as run_status, ay as save_config_request, az as save_tags_request, aA as stage_event_kind, aB as task_event_actor, aC as task_event_payload, aD as task_link_kind, aE as update_action, aF as update_user, aG as upsert_goal, aH as upsert_milestone, aI as upsert_pipeline_analysis_template, aJ as upsert_pipeline_approval, aK as upsert_pipeline_grant, aL as upsert_pipeline_oidc_trust, aM as upsert_pipeline_package, aN as upsert_pipeline_run, aO as upsert_project, aP as upsert_tag, aQ as upsert_task_link, aR as upsert_todo, aS as webhook_event_body } from '../types.d-BJ3g4B0G.js';
3
+ export { a as ApprovalDecision, C as CompletedVia, b as CompletionPolicy, F as ForcedAtomicReason, G as GRAPH_CHILDREN_CAP, c as GRAPH_DEPTH_CAP, P as PipelineOidcProvider, R as RolloutShape, d as RunStatus, S as StageEventKind, T as TaskEventActor, e as TaskEventDispatchStatus, f as TaskEventKind, g as TaskKind, h as TaskLinkKind } from '../schema.d-DfzLWuRW.js';
4
4
  import '@f0rbit/corpus';
5
5
  import 'drizzle-orm';
6
6
  import 'zod';
@@ -8,6 +8,7 @@ import {
8
8
  config_schema,
9
9
  dashboard_response,
10
10
  dashboard_window_query,
11
+ done_request,
11
12
  external_ref,
12
13
  forced_atomic_reason,
13
14
  gate_descriptor,
@@ -24,6 +25,8 @@ import {
24
25
  save_config_request,
25
26
  save_tags_request,
26
27
  stage_event_kind,
28
+ task_event_actor,
29
+ task_event_payload,
27
30
  task_link_kind,
28
31
  update_action,
29
32
  update_user,
@@ -40,7 +43,7 @@ import {
40
43
  upsert_task_link,
41
44
  upsert_todo,
42
45
  webhook_event_body
43
- } from "../chunk-ZPDYJASJ.js";
46
+ } from "../chunk-XHTCNYWS.js";
44
47
  import {
45
48
  apiError,
46
49
  authExpired,
@@ -115,6 +118,7 @@ export {
115
118
  dashboard_response,
116
119
  dashboard_window_query,
117
120
  dbError,
121
+ done_request,
118
122
  encryptionError,
119
123
  errors,
120
124
  external_ref,
@@ -162,6 +166,8 @@ export {
162
166
  scanError,
163
167
  stage_event_kind,
164
168
  storeError,
169
+ task_event_actor,
170
+ task_event_payload,
165
171
  task_link_kind,
166
172
  unauthorized,
167
173
  update_action,
@@ -1,11 +1,11 @@
1
1
  export { A as ApiError, a as AuthExpiredError, B as BadRequestError, b as BaseError, C as ConflictError, c as CronError, D as DatabaseError, E as EncryptionError, d as ErrorContext, e as ErrorLogEntry, F as ForbiddenError, G as GithubError, N as NetworkError, f as NotFoundError, P as ParseError, g as ProtectedError, h as ProviderError, R as RateLimitedError, S as ScanError, i as ServiceError, j as StoreError, U as UnauthorizedError, V as ValidationError, k as ValidationFieldError, l as apiError, m as authExpired, n as badRequest, o as configureErrorLogging, p as conflict, q as dbError, r as encryptionError, s as errors, t as forbidden, u as githubError, v as isApiError, w as isAuthExpiredError, x as isBadRequestError, y as isConflictError, z as isDatabaseError, H as isEncryptionError, I as isForbiddenError, J as isGithubError, K as isNetworkError, L as isNotFoundError, M as isParseError, O as isProtectedError, Q as isRateLimitedError, T as isRetryableError, W as isScanError, X as isServiceError, Y as isStoreError, Z as isUnauthorizedError, _ as isValidationError, $ as isValidationFieldError, a0 as networkError, a1 as notFound, a2 as parseError, a3 as protectedEntity, a4 as rateLimited, a5 as scanError, a6 as storeError, a7 as unauthorized, a8 as validation, a9 as validationFieldError } from '../errors.d-CNYqUDaJ.js';
2
- export { A as Account, a as AccountSetting, b as AccountWithUser, c as AddFilterInput, d as AddFilterSchema, e as ApiKey, B as BlueskyAuthor, f as BlueskyAuthorSchema, g as BlueskyFeedItem, h as BlueskyFeedItemSchema, i as BlueskyPost, j as BlueskyPostSchema, k as BlueskyRaw, l as BlueskyRawSchema, m as BlueskySettings, n as BlueskySettingsSchema, C as CommentPayload, o as CommentPayloadSchema, p as CommitGroup, q as CommitGroupSchema, r as CommitPayload, s as CommitPayloadSchema, t as CorpusPath, u as CreateProfileInput, v as CreateProfileSchema, D as DateGroup, w as DateGroupSchema, x as DevpadRaw, y as DevpadRawSchema, z as DevpadSettings, E as DevpadSettingsSchema, F as DevpadTask, G as DevpadTaskSchema, H as FilterKey, I as FilterKeySchema, J as FilterType, K as FilterTypeSchema, L as GitHubBaseEvent, M as GitHubBaseEventSchema, N as GitHubEvent, O as GitHubEventSchema, P as GitHubExtendedCommit, Q as GitHubExtendedCommitSchema, R as GitHubPullRequest, S as GitHubPullRequestSchema, T as GitHubRaw, U as GitHubRawSchema, V as GitHubRepo, W as GitHubRepoSchema, X as GitHubSettings, Y as GitHubSettingsSchema, Z as MULTI_STORE_PLATFORMS, _ as MultiStorePlatform, $ as NewAccount, a0 as NewAccountSetting, a1 as NewApiKey, a2 as NewPlatformCredential, a3 as NewProfile, a4 as NewProfileFilter, a5 as NewRateLimit, a6 as PLATFORMS, a7 as PRCommit, a8 as PRCommitSchema, a9 as Payload, aa as PayloadSchema, ab as Platform, ac as PlatformCredential, ad as PlatformSchema, ae as PlatformSettings, af as PlatformSettingsSchemaMap, ag as PostPayload, ah as PostPayloadSchema, ai as Profile, aj as ProfileFilter, ak as PullRequestPayload, al as PullRequestPayloadSchema, am as RateLimit, an as SlugSchema, ao as TaskPayload, ap as TaskPayloadSchema, aq as Timeline, ar as TimelineItem, as as TimelineItemSchema, at as TimelineSchema, au as TimelineType, av as TimelineTypeSchema, aw as UpdateProfileInput, ax as UpdateProfileSchema, ay as VideoPayload, az as VideoPayloadSchema, aA as YouTubeRaw, aB as YouTubeRawSchema, aC as YouTubeSettings, aD as YouTubeSettingsSchema, aE as YouTubeThumbnail, aF as YouTubeThumbnailSchema, aG as YouTubeVideo, aH as YouTubeVideoSchema, aI as isMultiStorePlatform } from '../types.d-BZOIiHoO.js';
2
+ export { A as Account, a as AccountSetting, b as AccountWithUser, c as AddFilterInput, d as AddFilterSchema, e as ApiKey, B as BlueskyAuthor, f as BlueskyAuthorSchema, g as BlueskyFeedItem, h as BlueskyFeedItemSchema, i as BlueskyPost, j as BlueskyPostSchema, k as BlueskyRaw, l as BlueskyRawSchema, m as BlueskySettings, n as BlueskySettingsSchema, C as CommentPayload, o as CommentPayloadSchema, p as CommitGroup, q as CommitGroupSchema, r as CommitPayload, s as CommitPayloadSchema, t as CorpusPath, u as CreateProfileInput, v as CreateProfileSchema, D as DateGroup, w as DateGroupSchema, x as DevpadRaw, y as DevpadRawSchema, z as DevpadSettings, E as DevpadSettingsSchema, F as DevpadTask, G as DevpadTaskSchema, H as FilterKey, I as FilterKeySchema, J as FilterType, K as FilterTypeSchema, L as GitHubBaseEvent, M as GitHubBaseEventSchema, N as GitHubEvent, O as GitHubEventSchema, P as GitHubExtendedCommit, Q as GitHubExtendedCommitSchema, R as GitHubPullRequest, S as GitHubPullRequestSchema, T as GitHubRaw, U as GitHubRawSchema, V as GitHubRepo, W as GitHubRepoSchema, X as GitHubSettings, Y as GitHubSettingsSchema, Z as MULTI_STORE_PLATFORMS, _ as MultiStorePlatform, $ as NewAccount, a0 as NewAccountSetting, a1 as NewApiKey, a2 as NewPlatformCredential, a3 as NewProfile, a4 as NewProfileFilter, a5 as NewRateLimit, a6 as PLATFORMS, a7 as PRCommit, a8 as PRCommitSchema, a9 as Payload, aa as PayloadSchema, ab as Platform, ac as PlatformCredential, ad as PlatformSchema, ae as PlatformSettings, af as PlatformSettingsSchemaMap, ag as PostPayload, ah as PostPayloadSchema, ai as Profile, aj as ProfileFilter, ak as PullRequestPayload, al as PullRequestPayloadSchema, am as RateLimit, an as SlugSchema, ao as TaskPayload, ap as TaskPayloadSchema, aq as Timeline, ar as TimelineItem, as as TimelineItemSchema, at as TimelineSchema, au as TimelineType, av as TimelineTypeSchema, aw as UpdateProfileInput, ax as UpdateProfileSchema, ay as VideoPayload, az as VideoPayloadSchema, aA as YouTubeRaw, aB as YouTubeRawSchema, aC as YouTubeSettings, aD as YouTubeSettingsSchema, aE as YouTubeThumbnail, aF as YouTubeThumbnailSchema, aG as YouTubeVideo, aH as YouTubeVideoSchema, aI as isMultiStorePlatform } from '../types.d-ip2SzstN.js';
3
3
  import { z } from 'zod';
4
4
  import '@f0rbit/corpus';
5
5
  import 'drizzle-orm';
6
6
  import '../media.d-R87HGuRp.js';
7
7
  import 'drizzle-orm/sqlite-core';
8
- import '../schema.d-D3xGKqB8.js';
8
+ import '../schema.d-DfzLWuRW.js';
9
9
 
10
10
  declare const brand: unique symbol;
11
11
  type Brand<T, B extends string> = T & {