@devpad/api 2.5.0 → 2.5.1

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.
@@ -82,6 +82,11 @@ var project = sqliteTable("project", {
82
82
  // webhook. Diff-linked status because agents are unreliable narrators.
83
83
  github_autoclose: integer("github_autoclose", { mode: "boolean" }).notNull().default(false)
84
84
  });
85
+ var project_view_state = sqliteTable("project_view_state", {
86
+ project_id: text("project_id").primaryKey().references(() => project.id),
87
+ layout: text("layout", { mode: "json" }).notNull().$type(),
88
+ updated_at: text("updated_at").notNull().default(sql`(CURRENT_TIMESTAMP)`)
89
+ });
85
90
  var ACTIONS = [
86
91
  "CREATE_TASK",
87
92
  "UPDATE_TASK",
@@ -594,6 +599,7 @@ var signoff_relations = relations(signoff, ({ one }) => ({
594
599
  }));
595
600
 
596
601
  // ../schema/dist/validation.js
602
+ import { createSelectSchema } from "drizzle-zod";
597
603
  import { z } from "zod";
598
604
  var upsert_project = z.object({
599
605
  id: z.string().optional().nullable(),
@@ -1084,6 +1090,21 @@ var upsert_hook = z.object({
1084
1090
  action: hook_action_input
1085
1091
  });
1086
1092
  var toggle_hook_enabled = z.object({ enabled: z.boolean() });
1093
+ var project_graph_task = createSelectSchema(task);
1094
+ var project_graph_link = createSelectSchema(task_link);
1095
+ var project_graph_rollup_counts = z.object({
1096
+ direct_done: z.number().int(),
1097
+ direct_total: z.number().int(),
1098
+ subtree_done: z.number().int(),
1099
+ subtree_total: z.number().int()
1100
+ });
1101
+ var project_graph_response = z.object({
1102
+ tasks: z.array(project_graph_task),
1103
+ links: z.array(project_graph_link),
1104
+ rollups: z.record(z.string(), project_graph_rollup_counts)
1105
+ });
1106
+ var project_view_pin = z.object({ x: z.number(), y: z.number() });
1107
+ var project_view_layout = z.object({ pins: z.record(z.string(), project_view_pin) });
1087
1108
 
1088
1109
  export {
1089
1110
  GRAPH_DEPTH_CAP,
@@ -1159,5 +1180,11 @@ export {
1159
1180
  hook_action_stored,
1160
1181
  hook_action_public,
1161
1182
  upsert_hook,
1162
- toggle_hook_enabled
1183
+ toggle_hook_enabled,
1184
+ project_graph_task,
1185
+ project_graph_link,
1186
+ project_graph_rollup_counts,
1187
+ project_graph_response,
1188
+ project_view_pin,
1189
+ project_view_layout
1163
1190
  };
package/dist/index.d.ts CHANGED
@@ -1,14 +1,15 @@
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-CpUFC2tW.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';
3
3
  import { z } from 'zod';
4
- import { c as ApiKey, O as Project, aC as UpsertProject, G as GetConfigResult, a0 as SaveConfigRequest, am as TodoUpdate, H as HistoryAction, M as Milestone, ab as Task, o as Goal, p as Hook, v as HookTrigger, r as HookActionPublic, au as UpsertHook, t as HookDelivery, ai as TaskWithDetails, aF as UpsertTodo, aD as UpsertTag, ae as TaskLink, C as ClaimRequest, m as DoneRequest, a as AdvanceStageRequest, aE as UpsertTaskLink, f as ApplyRequest, e as ApplyOp, aa as TagWithTypedColor, l as Document, S as PushDocRequest, al as ThreadMarker, i as CreateThreadRequest, b as AnnotationThread, T as PushInterfaceReportRequest, y as InterfaceDiffClass, a4 as Signoff, W as RequestCheckpointRequest, k as DecideCheckpointRequest, X 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-DzYEyM4R.js';
5
- export { Q as ProjectConfig, Y as ReviewItemKind } from './types.d-DzYEyM4R.js';
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';
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, i as StageEventKind } from './schema.d-CaVQ-Ate.js';
8
+ import { b as CompletionPolicy, H as HookDeliveryStatus, C as CompletedVia, j as StageEventKind } from './schema.d-CJi69lKr.js';
9
9
  import 'drizzle-orm';
10
10
  import './media.d-R87HGuRp.js';
11
11
  import 'drizzle-orm/sqlite-core';
12
+ import 'drizzle-zod';
12
13
 
13
14
  type BufferedQueue<T> = {
14
15
  latest(): T | null;
@@ -995,6 +996,18 @@ declare class ApiClient {
995
996
  * Delete project (soft delete)
996
997
  */
997
998
  deleteProject: (project: Project) => Promise<ApiResult<void>>;
999
+ /**
1000
+ * Whole-project graph read (v2.5, canvas home task P2.2) — every task
1001
+ * in the project (fold kinds included), every in-project task_link,
1002
+ * and batched rollups. Backs the canvas' spatial view of the project.
1003
+ */
1004
+ graph: (project_id: string) => Promise<ApiResult<ProjectGraphResponse>>;
1005
+ /**
1006
+ * Canvas view-state (v2.5, task P3.1) — pinned node positions.
1007
+ * Last-write-wins; `putViewState` always sends the full layout.
1008
+ */
1009
+ getViewState: (project_id: string) => Promise<ApiResult<ProjectViewLayoutInput>>;
1010
+ putViewState: (project_id: string, layout: ProjectViewLayoutInput) => Promise<ApiResult<ProjectViewLayoutInput>>;
998
1011
  };
999
1012
  /**
1000
1013
  * Milestones namespace with Result-wrapped operations
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-T36ENKOA.js";
19
+ } from "./chunk-HIDAIYV4.js";
20
20
  import {
21
21
  CategoryCreateSchema,
22
22
  PostCreateSchema,
@@ -687,6 +687,20 @@ var ApiClient2 = class {
687
687
  () => this.clients.projects.patch("/projects", {
688
688
  body: { ...project, deleted: true }
689
689
  })
690
+ ),
691
+ /**
692
+ * Whole-project graph read (v2.5, canvas home task P2.2) — every task
693
+ * in the project (fold kinds included), every in-project task_link,
694
+ * and batched rollups. Backs the canvas' spatial view of the project.
695
+ */
696
+ graph: (project_id) => wrap(() => this.clients.projects.get(`/projects/${project_id}/graph`)),
697
+ /**
698
+ * Canvas view-state (v2.5, task P3.1) — pinned node positions.
699
+ * Last-write-wins; `putViewState` always sends the full layout.
700
+ */
701
+ getViewState: (project_id) => wrap(() => this.clients.projects.get(`/projects/${project_id}/view-state`)),
702
+ putViewState: (project_id, layout) => wrap(
703
+ () => this.clients.projects.put(`/projects/${project_id}/view-state`, { body: layout })
690
704
  )
691
705
  };
692
706
  /**
@@ -4,6 +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
8
  import 'zod';
8
9
 
9
10
  declare const fullSchema: {
@@ -2749,6 +2750,70 @@ declare const fullSchema: {
2749
2750
  };
2750
2751
  dialect: "sqlite";
2751
2752
  }>;
2753
+ project_view_state: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
2754
+ name: "project_view_state";
2755
+ schema: undefined;
2756
+ columns: {
2757
+ project_id: drizzle_orm_sqlite_core.SQLiteColumn<{
2758
+ name: "project_id";
2759
+ tableName: "project_view_state";
2760
+ dataType: "string";
2761
+ columnType: "SQLiteText";
2762
+ data: string;
2763
+ driverParam: string;
2764
+ notNull: true;
2765
+ hasDefault: false;
2766
+ isPrimaryKey: true;
2767
+ isAutoincrement: false;
2768
+ hasRuntimeDefault: false;
2769
+ enumValues: [string, ...string[]];
2770
+ baseColumn: never;
2771
+ identity: undefined;
2772
+ generated: undefined;
2773
+ }, {}, {
2774
+ length: number | undefined;
2775
+ }>;
2776
+ layout: drizzle_orm_sqlite_core.SQLiteColumn<{
2777
+ name: "layout";
2778
+ tableName: "project_view_state";
2779
+ dataType: "json";
2780
+ columnType: "SQLiteTextJson";
2781
+ data: ProjectViewLayout;
2782
+ driverParam: string;
2783
+ notNull: true;
2784
+ hasDefault: false;
2785
+ isPrimaryKey: false;
2786
+ isAutoincrement: false;
2787
+ hasRuntimeDefault: false;
2788
+ enumValues: undefined;
2789
+ baseColumn: never;
2790
+ identity: undefined;
2791
+ generated: undefined;
2792
+ }, {}, {
2793
+ $type: ProjectViewLayout;
2794
+ }>;
2795
+ updated_at: drizzle_orm_sqlite_core.SQLiteColumn<{
2796
+ name: "updated_at";
2797
+ tableName: "project_view_state";
2798
+ dataType: "string";
2799
+ columnType: "SQLiteText";
2800
+ data: string;
2801
+ driverParam: string;
2802
+ notNull: true;
2803
+ hasDefault: true;
2804
+ isPrimaryKey: false;
2805
+ isAutoincrement: false;
2806
+ hasRuntimeDefault: false;
2807
+ enumValues: [string, ...string[]];
2808
+ baseColumn: never;
2809
+ identity: undefined;
2810
+ generated: undefined;
2811
+ }, {}, {
2812
+ length: number | undefined;
2813
+ }>;
2814
+ };
2815
+ dialect: "sqlite";
2816
+ }>;
2752
2817
  action: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
2753
2818
  name: "action";
2754
2819
  schema: undefined;
@@ -1,7 +1,8 @@
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 ProjectWithTasks, S as PushDocRequest, T as PushInterfaceReportRequest, U as REVIEW_ITEM_KINDS, V as ReplyThreadRequest, W as RequestCheckpointRequest, X as ReviewItem, Y as ReviewItemKind, Z as ReviewsPendingResponse, _ as RolloutShapeZ, $ as RunKindZ, a0 as SaveConfigRequest, a1 as ScanDiffProposal, a2 as ScanStatus, a3 as Session, a4 as Signoff, a5 as TAG_COLOURS, a6 as Tag, a7 as TagColor, a8 as TagConfig, a9 as TagWithColor, aa as TagWithTypedColor, ab as Task, ac as TaskEvent, ad as TaskEventPayload, ae as TaskLink, af as TaskRollup, ag as TaskTag, ah as TaskView, ai as TaskWithDetails, aj as ThreadAnchor, ak as ThreadEntry, al as ThreadMarker, am as TodoUpdate, an as ToggleBlockingRequest, ao as ToggleHookEnabled, ap as TrackerResult, aq as UpdateAction, ar as UpdateData, as as UpdateUser, at as UpsertGoal, au as UpsertHook, av as UpsertMilestone, aw as UpsertPipelineAnalysisTemplate, ax as UpsertPipelineApproval, ay as UpsertPipelineGrant, az as UpsertPipelineOidcTrust, aA as UpsertPipelinePackage, aB as UpsertPipelineRun, aC as UpsertProject, aD as UpsertTag, aE as UpsertTaskLink, aF as UpsertTodo, aG as User, aH as WebhookEventBody, aI as advance_stage_request, aJ as apply_op, aK as apply_request, aL as approval_decision, aM as claim_request, aN as config_schema, aO as create_thread_request, aP as dashboard_response, aQ as dashboard_window_query, aR as decide_checkpoint_request, aS as document_kind, aT as done_request, aU as external_ref, aV as forced_atomic_reason, aW as gate_descriptor, aX as grant_scope, aY as hook_action_input, aZ as hook_action_public, a_ as hook_action_stored, a$ as hook_selector, b0 as hook_trigger, b1 as insert_pipeline_stage_event, b2 as pipeline_oidc_provider, b3 as project_config, b4 as push_doc_request, b5 as push_interface_report_request, b6 as reply_thread_request, b7 as request_checkpoint_request, b8 as resolved_gates, b9 as resolved_rollout, ba as review_item, bb as reviews_pending_response, bc as rollout_shape, bd as rollout_stage, be as run_kind, bf as run_status, bg as save_config_request, bh as save_tags_request, bi as scan_diff_proposal, bj as sdlc_stage, bk as signoff_checkpoint, bl as signoff_subject_kind, bm as stage_event_kind, bn as task_event_actor, bo as task_event_payload, bp as task_link_kind, bq as thread_anchor, br as thread_entry, bs as thread_marker, bt as thread_status, bu as toggle_blocking_request, bv as toggle_hook_enabled, bw as update_action, bx as update_user, by as upsert_goal, bz as upsert_hook, bA as upsert_milestone, bB as upsert_pipeline_analysis_template, bC as upsert_pipeline_approval, bD as upsert_pipeline_grant, bE as upsert_pipeline_oidc_trust, bF as upsert_pipeline_package, bG as upsert_pipeline_run, bH as upsert_project, bI as upsert_tag, bJ as upsert_task_link, bK as upsert_todo, bL as webhook_event_body } from '../types.d-DzYEyM4R.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, e as RunStatus, S as SdlcStage, f as SignoffCheckpoint, g as SignoffDecision, h as SignoffSubjectKind, i as StageEventKind, T as TaskEventActor, j as TaskEventDispatchStatus, k as TaskEventKind, l as TaskKind, m as TaskLinkKind, n as ThreadStatus } from '../schema.d-CaVQ-Ate.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';
4
4
  import '@f0rbit/corpus';
5
5
  import 'drizzle-orm';
6
6
  import 'zod';
7
+ import 'drizzle-zod';
7
8
  import 'drizzle-orm/sqlite-core';
@@ -27,6 +27,12 @@ import {
27
27
  insert_pipeline_stage_event,
28
28
  pipeline_oidc_provider,
29
29
  project_config,
30
+ project_graph_link,
31
+ project_graph_response,
32
+ project_graph_rollup_counts,
33
+ project_graph_task,
34
+ project_view_layout,
35
+ project_view_pin,
30
36
  push_doc_request,
31
37
  push_interface_report_request,
32
38
  reply_thread_request,
@@ -71,7 +77,7 @@ import {
71
77
  upsert_task_link,
72
78
  upsert_todo,
73
79
  webhook_event_body
74
- } from "../chunk-T36ENKOA.js";
80
+ } from "../chunk-HIDAIYV4.js";
75
81
  import {
76
82
  apiError,
77
83
  approvalChannel,
@@ -196,6 +202,12 @@ export {
196
202
  parseError,
197
203
  pipeline_oidc_provider,
198
204
  project_config,
205
+ project_graph_link,
206
+ project_graph_response,
207
+ project_graph_rollup_counts,
208
+ project_graph_task,
209
+ project_view_layout,
210
+ project_view_pin,
199
211
  protectedEntity,
200
212
  push_doc_request,
201
213
  push_interface_report_request,
@@ -1,11 +1,11 @@
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 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-CpUFC2tW.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-BLyXuxuY.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-CaVQ-Ate.js';
8
+ import '../schema.d-CJi69lKr.js';
9
9
 
10
10
  declare const brand: unique symbol;
11
11
  type Brand<T, B extends string> = T & {
@@ -867,6 +867,13 @@ declare const project: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
867
867
  };
868
868
  dialect: "sqlite";
869
869
  }>;
870
+ type ProjectViewPin = {
871
+ x: number;
872
+ y: number;
873
+ };
874
+ type ProjectViewLayout = {
875
+ pins: Record<string, ProjectViewPin>;
876
+ };
870
877
  declare const ACTIONS: readonly ["CREATE_TASK", "UPDATE_TASK", "DELETE_TASK", "CREATE_PROJECT", "UPDATE_PROJECT", "DELETE_PROJECT", "CREATE_TAG", "UPDATE_TAG", "DELETE_TAG", "CREATE_GOAL", "UPDATE_GOAL", "DELETE_GOAL", "CREATE_MILESTONE", "UPDATE_MILESTONE", "DELETE_MILESTONE", "CREATE_CHECKLIST", "UPDATE_CHECKLIST", "DELETE_CHECKLIST", "ADVANCE_STAGE"];
871
878
  type ActionType = (typeof ACTIONS)[number];
872
879
  declare const action: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
@@ -6739,4 +6746,4 @@ declare const pipeline_oidc_trust: drizzle_orm_sqlite_core.SQLiteTableWithColumn
6739
6746
  dialect: "sqlite";
6740
6747
  }>;
6741
6748
 
6742
- export { todo_updates as $, type ActionType as A, pipeline_analysis_template as B, type CompletedVia as C, type DocumentKind as D, pipeline_approval as E, type ForcedAtomicReason as F, GRAPH_CHILDREN_CAP as G, type HookDeliveryStatus as H, pipeline_grant as I, pipeline_oidc_trust as J, pipeline_package as K, pipeline_run as L, pipeline_stage_event as M, project as N, session as O, type PipelineOidcProvider as P, signoff as Q, type RolloutShape as R, type SdlcStage as S, type TaskEventActor as T, tag as U, tag_config as V, task as W, task_event as X, task_link as Y, task_rollup as Z, task_tag as _, type ApprovalDecision as a, tracker_result as a0, user as a1, type CompletionPolicy as b, type DocumentStatus as c, GRAPH_DEPTH_CAP as d, type RunStatus as e, type SignoffCheckpoint as f, type SignoffDecision as g, type SignoffSubjectKind as h, type StageEventKind as i, type TaskEventDispatchStatus as j, type TaskEventKind as k, type TaskKind as l, type TaskLinkKind as m, type ThreadStatus as n, action as o, annotation_thread as p, api_keys as q, apply_log as r, codebase_tasks as s, document as t, github_webhook_event as u, goal as v, hook as w, hook_delivery as x, ignore_path as y, milestone as z };
6749
+ export { task_tag as $, type ActionType as A, milestone as B, type CompletedVia as C, type DocumentKind as D, pipeline_analysis_template as E, type ForcedAtomicReason as F, GRAPH_CHILDREN_CAP as G, type HookDeliveryStatus as H, pipeline_approval as I, pipeline_grant as J, pipeline_oidc_trust as K, pipeline_package as L, pipeline_run as M, pipeline_stage_event as N, project as O, type PipelineOidcProvider as P, session as Q, type RolloutShape as R, type SdlcStage as S, type TaskEventActor as T, signoff as U, tag as V, tag_config as W, task as X, task_event as Y, task_link as Z, task_rollup as _, type ApprovalDecision as a, todo_updates as a0, tracker_result as a1, user as a2, type CompletionPolicy as b, type DocumentStatus as c, GRAPH_DEPTH_CAP as d, type ProjectViewLayout as e, type RunStatus as f, type SignoffCheckpoint as g, type SignoffDecision as h, type SignoffSubjectKind as i, type StageEventKind as j, type TaskEventDispatchStatus as k, type TaskEventKind as l, type TaskKind as m, type TaskLinkKind as n, type ThreadStatus as o, action as p, annotation_thread as q, api_keys as r, apply_log as s, codebase_tasks as t, document as u, github_webhook_event as v, goal as w, hook as x, hook_delivery as y, ignore_path as z };
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import { InferSelectModel, InferInsertModel } from 'drizzle-orm';
3
3
  import { a as media_accounts, d as media_profiles, c as media_profile_filters, m as media_account_settings, b as media_platform_credentials, e as media_rate_limits } from './media.d-R87HGuRp.js';
4
- import { q as api_keys } from './schema.d-CaVQ-Ate.js';
4
+ import { r as api_keys } from './schema.d-CJi69lKr.js';
5
5
 
6
6
  declare const GitHubSettingsSchema: z.ZodObject<{
7
7
  hidden_repos: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;