@devpad/api 2.5.0 → 2.5.2
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.
- package/dist/{chunk-T36ENKOA.js → chunk-HIDAIYV4.js} +28 -1
- package/dist/index.d.ts +29 -10
- package/dist/index.js +42 -18
- package/dist/schema/blog.d.ts +65 -0
- package/dist/schema/index.d.ts +3 -2
- package/dist/schema/index.js +13 -1
- package/dist/schema/media.d.ts +2 -2
- package/dist/{schema.d-CaVQ-Ate.d.ts → schema.d-CJi69lKr.d.ts} +8 -1
- package/dist/{types.d-CpUFC2tW.d.ts → types.d-BLyXuxuY.d.ts} +1 -1
- package/dist/{types.d-DzYEyM4R.d.ts → types.d-BPhr25k1.d.ts} +1678 -2
- package/package.json +2 -2
|
@@ -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-
|
|
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,
|
|
5
|
-
export { Q as ProjectConfig,
|
|
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,
|
|
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
|
|
@@ -1674,12 +1687,15 @@ declare class ApiClient {
|
|
|
1674
1687
|
status: string;
|
|
1675
1688
|
}>>;
|
|
1676
1689
|
/**
|
|
1677
|
-
* Approve a stage in a pipeline run
|
|
1690
|
+
* Approve a stage in a pipeline run. Identity is resolved
|
|
1691
|
+
* server-side by the worker proxy (`X-Devpad-Actor` header) — the
|
|
1692
|
+
* caller never supplies a `user_id`. Approvals are human-only:
|
|
1693
|
+
* api-channel callers get `403 human_approval_required`; approve
|
|
1694
|
+
* from the devpad web UI while signed in.
|
|
1678
1695
|
*/
|
|
1679
1696
|
approve: (run_id: string, input: {
|
|
1680
1697
|
stage_name: string;
|
|
1681
1698
|
decision: "approved" | "denied";
|
|
1682
|
-
user_id: string;
|
|
1683
1699
|
reason?: string;
|
|
1684
1700
|
}) => Promise<ApiResult<void>>;
|
|
1685
1701
|
/**
|
|
@@ -1723,13 +1739,16 @@ declare class ApiClient {
|
|
|
1723
1739
|
*/
|
|
1724
1740
|
list: (package_id?: string) => Promise<ApiResult<PipelineGrant[]>>;
|
|
1725
1741
|
/**
|
|
1726
|
-
* Approve a grant
|
|
1742
|
+
* Approve a pending grant. Human-only — the actor is resolved
|
|
1743
|
+
* server-side by the worker proxy; api-channel callers get
|
|
1744
|
+
* `403 human_approval_required`.
|
|
1727
1745
|
*/
|
|
1728
|
-
approve: (grant_id: string
|
|
1746
|
+
approve: (grant_id: string) => Promise<ApiResult<PipelineGrant>>;
|
|
1729
1747
|
/**
|
|
1730
|
-
* Deny a grant
|
|
1748
|
+
* Deny a pending grant. Human-only — same actor resolution as
|
|
1749
|
+
* `approve`.
|
|
1731
1750
|
*/
|
|
1732
|
-
deny: (grant_id: string,
|
|
1751
|
+
deny: (grant_id: string, reason?: string) => Promise<ApiResult<{
|
|
1733
1752
|
success: boolean;
|
|
1734
1753
|
}>>;
|
|
1735
1754
|
};
|
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-
|
|
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
|
/**
|
|
@@ -1449,7 +1463,11 @@ var ApiClient2 = class {
|
|
|
1449
1463
|
})
|
|
1450
1464
|
),
|
|
1451
1465
|
/**
|
|
1452
|
-
* Approve a stage in a pipeline run
|
|
1466
|
+
* Approve a stage in a pipeline run. Identity is resolved
|
|
1467
|
+
* server-side by the worker proxy (`X-Devpad-Actor` header) — the
|
|
1468
|
+
* caller never supplies a `user_id`. Approvals are human-only:
|
|
1469
|
+
* api-channel callers get `403 human_approval_required`; approve
|
|
1470
|
+
* from the devpad web UI while signed in.
|
|
1453
1471
|
*/
|
|
1454
1472
|
approve: (run_id, input) => wrap(
|
|
1455
1473
|
() => this.clients.pipelines.post(`/runs/${run_id}/approve`, {
|
|
@@ -1497,19 +1515,22 @@ var ApiClient2 = class {
|
|
|
1497
1515
|
})
|
|
1498
1516
|
),
|
|
1499
1517
|
/**
|
|
1500
|
-
* Approve a grant
|
|
1518
|
+
* Approve a pending grant. Human-only — the actor is resolved
|
|
1519
|
+
* server-side by the worker proxy; api-channel callers get
|
|
1520
|
+
* `403 human_approval_required`.
|
|
1501
1521
|
*/
|
|
1502
|
-
approve: (grant_id
|
|
1522
|
+
approve: (grant_id) => wrap(
|
|
1503
1523
|
() => this.clients.pipelines.post(`/grants/${grant_id}/approve`, {
|
|
1504
|
-
body: {
|
|
1524
|
+
body: {}
|
|
1505
1525
|
})
|
|
1506
1526
|
),
|
|
1507
1527
|
/**
|
|
1508
|
-
* Deny a grant
|
|
1528
|
+
* Deny a pending grant. Human-only — same actor resolution as
|
|
1529
|
+
* `approve`.
|
|
1509
1530
|
*/
|
|
1510
|
-
deny: (grant_id,
|
|
1531
|
+
deny: (grant_id, reason) => wrap(
|
|
1511
1532
|
() => this.clients.pipelines.post(`/grants/${grant_id}/deny`, {
|
|
1512
|
-
body: {
|
|
1533
|
+
body: reason !== void 0 ? { reason } : {}
|
|
1513
1534
|
})
|
|
1514
1535
|
)
|
|
1515
1536
|
},
|
|
@@ -2460,16 +2481,21 @@ var tools = {
|
|
|
2460
2481
|
}),
|
|
2461
2482
|
devpad_pipelines_approve: define_tool({
|
|
2462
2483
|
name: "devpad_pipelines_approve",
|
|
2463
|
-
description: "Approve or deny a stage in a pipeline run",
|
|
2484
|
+
description: "Approve or deny a stage in a pipeline run. Human-only: the actor is resolved from the caller's own authentication, and approvals are gated to signed-in humans in the devpad web UI \u2014 API-key/MCP callers receive 403 human_approval_required. Failures surface as typed errors, never thrown.",
|
|
2464
2485
|
inputSchema: z2.object({
|
|
2465
2486
|
run_id: z2.string().describe("Pipeline run ID"),
|
|
2466
2487
|
stage_name: z2.string().describe("Stage name to approve"),
|
|
2467
2488
|
decision: z2.enum(["approved", "denied"]).describe("Approval decision"),
|
|
2468
|
-
user_id: z2.string().describe("User ID making the decision"),
|
|
2469
2489
|
reason: z2.string().optional().describe("Optional reason for the decision")
|
|
2470
2490
|
}),
|
|
2471
2491
|
execute: async (client, input) => {
|
|
2472
|
-
unwrap(
|
|
2492
|
+
unwrap(
|
|
2493
|
+
await client.pipelines.approve(input.run_id, {
|
|
2494
|
+
stage_name: input.stage_name,
|
|
2495
|
+
decision: input.decision,
|
|
2496
|
+
reason: input.reason
|
|
2497
|
+
})
|
|
2498
|
+
);
|
|
2473
2499
|
return { success: true };
|
|
2474
2500
|
}
|
|
2475
2501
|
}),
|
|
@@ -2532,22 +2558,20 @@ var tools = {
|
|
|
2532
2558
|
}),
|
|
2533
2559
|
devpad_pipelines_grants_approve: define_tool({
|
|
2534
2560
|
name: "devpad_pipelines_grants_approve",
|
|
2535
|
-
description: "Approve a pending vault grant request for a pipeline package",
|
|
2561
|
+
description: "Approve a pending vault grant request for a pipeline package. Human-only: requires a signed-in human deciding in the devpad web UI \u2014 API-key/MCP callers receive 403 human_approval_required.",
|
|
2536
2562
|
inputSchema: z2.object({
|
|
2537
|
-
grant_id: z2.string().describe("Grant ID to approve")
|
|
2538
|
-
user_id: z2.string().describe("User ID making the approval decision")
|
|
2563
|
+
grant_id: z2.string().describe("Grant ID to approve")
|
|
2539
2564
|
}),
|
|
2540
|
-
execute: async (client, input) => unwrap(await client.pipelines.grants.approve(input.grant_id
|
|
2565
|
+
execute: async (client, input) => unwrap(await client.pipelines.grants.approve(input.grant_id))
|
|
2541
2566
|
}),
|
|
2542
2567
|
devpad_pipelines_grants_deny: define_tool({
|
|
2543
2568
|
name: "devpad_pipelines_grants_deny",
|
|
2544
|
-
description: "Deny a pending vault grant request for a pipeline package",
|
|
2569
|
+
description: "Deny a pending vault grant request for a pipeline package. Human-only: requires a signed-in human deciding in the devpad web UI \u2014 API-key/MCP callers receive 403 human_approval_required.",
|
|
2545
2570
|
inputSchema: z2.object({
|
|
2546
2571
|
grant_id: z2.string().describe("Grant ID to deny"),
|
|
2547
|
-
user_id: z2.string().describe("User ID making the denial decision"),
|
|
2548
2572
|
reason: z2.string().optional().describe("Optional reason for the denial")
|
|
2549
2573
|
}),
|
|
2550
|
-
execute: async (client, input) => unwrap(await client.pipelines.grants.deny(input.grant_id, input.
|
|
2574
|
+
execute: async (client, input) => unwrap(await client.pipelines.grants.deny(input.grant_id, input.reason))
|
|
2551
2575
|
}),
|
|
2552
2576
|
devpad_pipelines_packages_list: define_tool({
|
|
2553
2577
|
name: "devpad_pipelines_packages_list",
|
package/dist/schema/blog.d.ts
CHANGED
|
@@ -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;
|
package/dist/schema/index.d.ts
CHANGED
|
@@ -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
|
|
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,
|
|
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';
|
package/dist/schema/index.js
CHANGED
|
@@ -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-
|
|
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,
|
package/dist/schema/media.d.ts
CHANGED
|
@@ -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-
|
|
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-
|
|
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 {
|
|
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 {
|
|
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">>;
|