kanbo-cli 0.1.0 → 0.1.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/README.md +2 -2
- package/dist/cli.cjs +185 -39
- package/dist/cli.cjs.map +1 -1
- package/dist/lib/{board-store-B16YarvX.d.mts → board-store-BfszzAJB.d.cts} +2 -2
- package/dist/lib/{board-store-BHHo_ZlR.d.cts → board-store-BvWn9xTB.d.mts} +2 -2
- package/dist/lib/index.cjs +2 -29
- package/dist/lib/index.cjs.map +1 -1
- package/dist/lib/index.d.cts +363 -363
- package/dist/lib/index.d.mts +363 -363
- package/dist/lib/index.mjs +1 -28
- package/dist/lib/index.mjs.map +1 -1
- package/dist/lib/{manifest-CpZOcB_6.cjs → manifest-CmiuDqH-.cjs} +200 -41
- package/dist/lib/manifest-CmiuDqH-.cjs.map +1 -0
- package/dist/lib/{manifest-C0EcwwgO.mjs → manifest-NRhhhOkC.mjs} +190 -43
- package/dist/lib/manifest-NRhhhOkC.mjs.map +1 -0
- package/dist/lib/mcp/index.cjs +2 -1
- package/dist/lib/mcp/index.d.cts +29 -12
- package/dist/lib/mcp/index.d.mts +29 -12
- package/dist/lib/mcp/index.mjs +2 -2
- package/dist/lib/postgres/index.d.cts +151 -151
- package/dist/lib/postgres/index.d.mts +151 -151
- package/dist/lib/{schema-fsHqNAip.d.cts → schema-D0MyXcej.d.cts} +41 -41
- package/dist/lib/{schema-fsHqNAip.d.mts → schema-D0MyXcej.d.mts} +41 -41
- package/dist/lib/sqlite/index.d.cts +12 -12
- package/dist/lib/sqlite/index.d.mts +12 -12
- package/dist/lib/sqlite/schema.d.cts +1 -1
- package/dist/lib/sqlite/schema.d.mts +1 -1
- package/dist/lib/{tool-names-9cmCn0gP.d.cts → tool-names-3q_GEZej.d.mts} +5 -5
- package/dist/lib/{tool-names-Dxg1UTUl.d.mts → tool-names-WfH4IURz.d.cts} +5 -5
- package/dist/page/board.js +1 -1
- package/package.json +4 -4
- package/dist/lib/manifest-C0EcwwgO.mjs.map +0 -1
- package/dist/lib/manifest-CpZOcB_6.cjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as BoardStore } from "../board-store-
|
|
1
|
+
import { a as BoardStore } from "../board-store-BfszzAJB.cjs";
|
|
2
2
|
import { t as BOARD_SCHEMA_EPOCH } from "../schema-epoch-ZyumVL_A.cjs";
|
|
3
3
|
import { PgDatabase, PgQueryResultHKT } from "drizzle-orm/pg-core";
|
|
4
4
|
import { PgliteDatabase } from "drizzle-orm/pglite";
|
|
@@ -33,7 +33,7 @@ type BoardPostgresDatabase = PgDatabase<PgQueryResultHKT, Record<string, unknown
|
|
|
33
33
|
* check and then fail on the first listing, statement by statement, so the
|
|
34
34
|
* columns are asked for by name instead.
|
|
35
35
|
*/
|
|
36
|
-
declare function assertBoardSchema(database: BoardPostgresDatabase): Promise<void>;
|
|
36
|
+
export declare function assertBoardSchema(database: BoardPostgresDatabase): Promise<void>;
|
|
37
37
|
//#endregion
|
|
38
38
|
//#region src/postgres/board-store.postgres.d.ts
|
|
39
39
|
/**
|
|
@@ -47,7 +47,7 @@ declare function assertBoardSchema(database: BoardPostgresDatabase): Promise<voi
|
|
|
47
47
|
* `issue_runs`, `issue_comments`, `issue_field_changes` and
|
|
48
48
|
* `issue_pull_requests` is what stands in for `rowid` there.
|
|
49
49
|
*/
|
|
50
|
-
declare function createPostgresBoardStore(options: {
|
|
50
|
+
export declare function createPostgresBoardStore(options: {
|
|
51
51
|
database: BoardPostgresDatabase;
|
|
52
52
|
}): BoardStore;
|
|
53
53
|
//#endregion
|
|
@@ -67,7 +67,7 @@ type MigratablePostgresDatabase<TSchema extends Record<string, unknown> = Record
|
|
|
67
67
|
* is the one place that creates or updates it. Drizzle records what it applied
|
|
68
68
|
* in `__drizzle_migrations`, which is what makes a second run a no-op.
|
|
69
69
|
*/
|
|
70
|
-
declare function migrateBoardDatabase<TSchema extends Record<string, unknown>>(database: MigratablePostgresDatabase<TSchema>): Promise<void>;
|
|
70
|
+
export declare function migrateBoardDatabase<TSchema extends Record<string, unknown>>(database: MigratablePostgresDatabase<TSchema>): Promise<void>;
|
|
71
71
|
//#endregion
|
|
72
72
|
//#region src/postgres/migrations-path.d.ts
|
|
73
73
|
/**
|
|
@@ -75,28 +75,28 @@ declare function migrateBoardDatabase<TSchema extends Record<string, unknown>>(d
|
|
|
75
75
|
* ones `kanbo migrate` applies to an external database. The two
|
|
76
76
|
* layouts this has to survive are `src/migrations-path.ts`'s subject.
|
|
77
77
|
*/
|
|
78
|
-
declare function getBoardMigrationsPath(): string;
|
|
78
|
+
export declare function getBoardMigrationsPath(): string;
|
|
79
79
|
//#endregion
|
|
80
80
|
//#region src/postgres/roles.sql.d.ts
|
|
81
81
|
/** The role a person connects as: the board, whole. */
|
|
82
|
-
declare const BOARD_PERSON_ROLE = "kanban_person";
|
|
82
|
+
export declare const BOARD_PERSON_ROLE = "kanban_person";
|
|
83
83
|
/** The role an agent connects as: the board, minus the two decisions that are a person's. */
|
|
84
|
-
declare const BOARD_AGENT_ROLE = "kanban_agent";
|
|
84
|
+
export declare const BOARD_AGENT_ROLE = "kanban_agent";
|
|
85
85
|
/**
|
|
86
86
|
* What the database says when the agent role tries to take a card back from a
|
|
87
87
|
* person. The board's clients turn it into `board_approval_requires_user`;
|
|
88
88
|
* it is written here because by then the only thing left of the refusal is this
|
|
89
89
|
* sentence.
|
|
90
90
|
*/
|
|
91
|
-
declare const AGENT_WAITING_REFUSAL = "kanbo: only a person may take a card out of waiting";
|
|
91
|
+
export declare const AGENT_WAITING_REFUSAL = "kanbo: only a person may take a card out of waiting";
|
|
92
92
|
/** What the database says when the agent role tries to write a person's decision into the history. */
|
|
93
|
-
declare const AGENT_APPROVAL_COMMENT_REFUSAL = "kanbo: only a person may approve or return a card";
|
|
93
|
+
export declare const AGENT_APPROVAL_COMMENT_REFUSAL = "kanbo: only a person may approve or return a card";
|
|
94
94
|
/**
|
|
95
95
|
* `insufficient_privilege` — the SQLSTATE every refusal above is raised with,
|
|
96
96
|
* and the one thing about them that survives a driver. A caller that maps the
|
|
97
97
|
* refusal to an answer of its own matches this rather than the sentence.
|
|
98
98
|
*/
|
|
99
|
-
declare const BOARD_REFUSAL_ERRCODE = "42501";
|
|
99
|
+
export declare const BOARD_REFUSAL_ERRCODE = "42501";
|
|
100
100
|
/**
|
|
101
101
|
* The two roles an external board is worked through, and the two rules the
|
|
102
102
|
* database itself keeps.
|
|
@@ -137,10 +137,10 @@ declare const BOARD_REFUSAL_ERRCODE = "42501";
|
|
|
137
137
|
* Applying this twice is a no-op — `kanbo roles apply` is meant to be run
|
|
138
138
|
* again whenever the board moves or the rules change.
|
|
139
139
|
*/
|
|
140
|
-
declare const BOARD_ROLE_SQL: string;
|
|
140
|
+
export declare const BOARD_ROLE_SQL: string;
|
|
141
141
|
//#endregion
|
|
142
142
|
//#region src/postgres/schema.d.ts
|
|
143
|
-
declare const issueStatuses: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
143
|
+
export declare const issueStatuses: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
144
144
|
name: "issue_statuses";
|
|
145
145
|
schema: undefined;
|
|
146
146
|
columns: {
|
|
@@ -251,7 +251,7 @@ declare const issueStatuses: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
251
251
|
tableName: "issue_statuses";
|
|
252
252
|
dataType: "string";
|
|
253
253
|
columnType: "PgText";
|
|
254
|
-
data: "
|
|
254
|
+
data: "backlog" | "canceled" | "completed" | "started" | "triage" | "unstarted";
|
|
255
255
|
driverParam: string;
|
|
256
256
|
notNull: true;
|
|
257
257
|
hasDefault: true;
|
|
@@ -298,14 +298,14 @@ declare const issueStatuses: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
298
298
|
generated: undefined;
|
|
299
299
|
}, {}, {}>;
|
|
300
300
|
};
|
|
301
|
-
dialect:
|
|
301
|
+
dialect: 'pg';
|
|
302
302
|
}>;
|
|
303
|
-
declare const issueMilestones: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
303
|
+
export declare const issueMilestones: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
304
304
|
name: "issue_milestones";
|
|
305
305
|
schema: undefined;
|
|
306
306
|
columns: {
|
|
307
|
-
|
|
308
|
-
name: "
|
|
307
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
308
|
+
name: "created_at";
|
|
309
309
|
tableName: "issue_milestones";
|
|
310
310
|
dataType: "number";
|
|
311
311
|
columnType: "PgBigInt53";
|
|
@@ -321,8 +321,8 @@ declare const issueMilestones: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
321
321
|
identity: undefined;
|
|
322
322
|
generated: undefined;
|
|
323
323
|
}, {}, {}>;
|
|
324
|
-
|
|
325
|
-
name: "
|
|
324
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
325
|
+
name: "updated_at";
|
|
326
326
|
tableName: "issue_milestones";
|
|
327
327
|
dataType: "number";
|
|
328
328
|
columnType: "PgBigInt53";
|
|
@@ -445,7 +445,7 @@ declare const issueMilestones: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
445
445
|
tableName: "issue_milestones";
|
|
446
446
|
dataType: "string";
|
|
447
447
|
columnType: "PgText";
|
|
448
|
-
data: "
|
|
448
|
+
data: "closed" | "open";
|
|
449
449
|
driverParam: string;
|
|
450
450
|
notNull: true;
|
|
451
451
|
hasDefault: true;
|
|
@@ -458,14 +458,14 @@ declare const issueMilestones: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
458
458
|
generated: undefined;
|
|
459
459
|
}, {}, {}>;
|
|
460
460
|
};
|
|
461
|
-
dialect:
|
|
461
|
+
dialect: 'pg';
|
|
462
462
|
}>;
|
|
463
|
-
declare const issues: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
463
|
+
export declare const issues: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
464
464
|
name: "issues";
|
|
465
465
|
schema: undefined;
|
|
466
466
|
columns: {
|
|
467
|
-
|
|
468
|
-
name: "
|
|
467
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
468
|
+
name: "created_at";
|
|
469
469
|
tableName: "issues";
|
|
470
470
|
dataType: "number";
|
|
471
471
|
columnType: "PgBigInt53";
|
|
@@ -481,8 +481,8 @@ declare const issues: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
481
481
|
identity: undefined;
|
|
482
482
|
generated: undefined;
|
|
483
483
|
}, {}, {}>;
|
|
484
|
-
|
|
485
|
-
name: "
|
|
484
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
485
|
+
name: "updated_at";
|
|
486
486
|
tableName: "issues";
|
|
487
487
|
dataType: "number";
|
|
488
488
|
columnType: "PgBigInt53";
|
|
@@ -639,7 +639,7 @@ declare const issues: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
639
639
|
tableName: "issues";
|
|
640
640
|
dataType: "string";
|
|
641
641
|
columnType: "PgText";
|
|
642
|
-
data: "
|
|
642
|
+
data: "high" | "low" | "medium" | "none" | "urgent";
|
|
643
643
|
driverParam: string;
|
|
644
644
|
notNull: true;
|
|
645
645
|
hasDefault: true;
|
|
@@ -724,7 +724,7 @@ declare const issues: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
724
724
|
tableName: "issues";
|
|
725
725
|
dataType: "string";
|
|
726
726
|
columnType: "PgText";
|
|
727
|
-
data: "
|
|
727
|
+
data: "agent" | "provider-target" | "system" | "user";
|
|
728
728
|
driverParam: string;
|
|
729
729
|
notNull: true;
|
|
730
730
|
hasDefault: true;
|
|
@@ -860,7 +860,7 @@ declare const issues: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
860
860
|
tableName: "issues";
|
|
861
861
|
dataType: "string";
|
|
862
862
|
columnType: "PgText";
|
|
863
|
-
data: "
|
|
863
|
+
data: "main" | "worktree";
|
|
864
864
|
driverParam: string;
|
|
865
865
|
notNull: true;
|
|
866
866
|
hasDefault: true;
|
|
@@ -890,29 +890,12 @@ declare const issues: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
890
890
|
generated: undefined;
|
|
891
891
|
}, {}, {}>;
|
|
892
892
|
};
|
|
893
|
-
dialect:
|
|
893
|
+
dialect: 'pg';
|
|
894
894
|
}>;
|
|
895
|
-
declare const issueComments: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
895
|
+
export declare const issueComments: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
896
896
|
name: "issue_comments";
|
|
897
897
|
schema: undefined;
|
|
898
898
|
columns: {
|
|
899
|
-
seq: import("drizzle-orm/pg-core").PgColumn<{
|
|
900
|
-
name: "seq";
|
|
901
|
-
tableName: "issue_comments";
|
|
902
|
-
dataType: "number";
|
|
903
|
-
columnType: "PgBigSerial53";
|
|
904
|
-
data: number;
|
|
905
|
-
driverParam: number;
|
|
906
|
-
notNull: true;
|
|
907
|
-
hasDefault: true;
|
|
908
|
-
isPrimaryKey: false;
|
|
909
|
-
isAutoincrement: false;
|
|
910
|
-
hasRuntimeDefault: false;
|
|
911
|
-
enumValues: undefined;
|
|
912
|
-
baseColumn: never;
|
|
913
|
-
identity: undefined;
|
|
914
|
-
generated: undefined;
|
|
915
|
-
}, {}, {}>;
|
|
916
899
|
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
917
900
|
name: "created_at";
|
|
918
901
|
tableName: "issue_comments";
|
|
@@ -986,7 +969,7 @@ declare const issueComments: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
986
969
|
tableName: "issue_comments";
|
|
987
970
|
dataType: "string";
|
|
988
971
|
columnType: "PgText";
|
|
989
|
-
data: "
|
|
972
|
+
data: "agent" | "provider-target" | "system" | "system.approved" | "system.delegated" | "system.pr" | "system.returned" | "system.run" | "system.undelegated" | "user";
|
|
990
973
|
driverParam: string;
|
|
991
974
|
notNull: true;
|
|
992
975
|
hasDefault: true;
|
|
@@ -1066,10 +1049,27 @@ declare const issueComments: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
1066
1049
|
identity: undefined;
|
|
1067
1050
|
generated: undefined;
|
|
1068
1051
|
}, {}, {}>;
|
|
1052
|
+
seq: import("drizzle-orm/pg-core").PgColumn<{
|
|
1053
|
+
name: "seq";
|
|
1054
|
+
tableName: "issue_comments";
|
|
1055
|
+
dataType: "number";
|
|
1056
|
+
columnType: "PgBigSerial53";
|
|
1057
|
+
data: number;
|
|
1058
|
+
driverParam: number;
|
|
1059
|
+
notNull: true;
|
|
1060
|
+
hasDefault: true;
|
|
1061
|
+
isPrimaryKey: false;
|
|
1062
|
+
isAutoincrement: false;
|
|
1063
|
+
hasRuntimeDefault: false;
|
|
1064
|
+
enumValues: undefined;
|
|
1065
|
+
baseColumn: never;
|
|
1066
|
+
identity: undefined;
|
|
1067
|
+
generated: undefined;
|
|
1068
|
+
}, {}, {}>;
|
|
1069
1069
|
};
|
|
1070
|
-
dialect:
|
|
1070
|
+
dialect: 'pg';
|
|
1071
1071
|
}>;
|
|
1072
|
-
declare const issueRuns: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
1072
|
+
export declare const issueRuns: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
1073
1073
|
name: "issue_runs";
|
|
1074
1074
|
schema: undefined;
|
|
1075
1075
|
columns: {
|
|
@@ -1112,7 +1112,7 @@ declare const issueRuns: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
1112
1112
|
tableName: "issue_runs";
|
|
1113
1113
|
dataType: "string";
|
|
1114
1114
|
columnType: "PgText";
|
|
1115
|
-
data: "
|
|
1115
|
+
data: "agent" | "external" | "user";
|
|
1116
1116
|
driverParam: string;
|
|
1117
1117
|
notNull: true;
|
|
1118
1118
|
hasDefault: true;
|
|
@@ -1197,7 +1197,7 @@ declare const issueRuns: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
1197
1197
|
tableName: "issue_runs";
|
|
1198
1198
|
dataType: "string";
|
|
1199
1199
|
columnType: "PgText";
|
|
1200
|
-
data: "
|
|
1200
|
+
data: "main" | "worktree";
|
|
1201
1201
|
driverParam: string;
|
|
1202
1202
|
notNull: true;
|
|
1203
1203
|
hasDefault: true;
|
|
@@ -1248,7 +1248,7 @@ declare const issueRuns: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
1248
1248
|
tableName: "issue_runs";
|
|
1249
1249
|
dataType: "string";
|
|
1250
1250
|
columnType: "PgText";
|
|
1251
|
-
data: "
|
|
1251
|
+
data: "failed" | "finished" | "running" | "stopped";
|
|
1252
1252
|
driverParam: string;
|
|
1253
1253
|
notNull: true;
|
|
1254
1254
|
hasDefault: true;
|
|
@@ -1346,9 +1346,9 @@ declare const issueRuns: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
1346
1346
|
generated: undefined;
|
|
1347
1347
|
}, {}, {}>;
|
|
1348
1348
|
};
|
|
1349
|
-
dialect:
|
|
1349
|
+
dialect: 'pg';
|
|
1350
1350
|
}>;
|
|
1351
|
-
declare const issueRelations: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
1351
|
+
export declare const issueRelations: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
1352
1352
|
name: "issue_relations";
|
|
1353
1353
|
schema: undefined;
|
|
1354
1354
|
columns: {
|
|
@@ -1438,29 +1438,12 @@ declare const issueRelations: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
1438
1438
|
generated: undefined;
|
|
1439
1439
|
}, {}, {}>;
|
|
1440
1440
|
};
|
|
1441
|
-
dialect:
|
|
1441
|
+
dialect: 'pg';
|
|
1442
1442
|
}>;
|
|
1443
|
-
declare const issueFieldChanges: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
1443
|
+
export declare const issueFieldChanges: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
1444
1444
|
name: "issue_field_changes";
|
|
1445
1445
|
schema: undefined;
|
|
1446
1446
|
columns: {
|
|
1447
|
-
seq: import("drizzle-orm/pg-core").PgColumn<{
|
|
1448
|
-
name: "seq";
|
|
1449
|
-
tableName: "issue_field_changes";
|
|
1450
|
-
dataType: "number";
|
|
1451
|
-
columnType: "PgBigSerial53";
|
|
1452
|
-
data: number;
|
|
1453
|
-
driverParam: number;
|
|
1454
|
-
notNull: true;
|
|
1455
|
-
hasDefault: true;
|
|
1456
|
-
isPrimaryKey: false;
|
|
1457
|
-
isAutoincrement: false;
|
|
1458
|
-
hasRuntimeDefault: false;
|
|
1459
|
-
enumValues: undefined;
|
|
1460
|
-
baseColumn: never;
|
|
1461
|
-
identity: undefined;
|
|
1462
|
-
generated: undefined;
|
|
1463
|
-
}, {}, {}>;
|
|
1464
1447
|
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
1465
1448
|
name: "created_at";
|
|
1466
1449
|
tableName: "issue_field_changes";
|
|
@@ -1568,7 +1551,7 @@ declare const issueFieldChanges: import("drizzle-orm/pg-core").PgTableWithColumn
|
|
|
1568
1551
|
tableName: "issue_field_changes";
|
|
1569
1552
|
dataType: "string";
|
|
1570
1553
|
columnType: "PgText";
|
|
1571
|
-
data: "
|
|
1554
|
+
data: "agent" | "provider-target" | "system" | "user";
|
|
1572
1555
|
driverParam: string;
|
|
1573
1556
|
notNull: true;
|
|
1574
1557
|
hasDefault: true;
|
|
@@ -1614,8 +1597,25 @@ declare const issueFieldChanges: import("drizzle-orm/pg-core").PgTableWithColumn
|
|
|
1614
1597
|
identity: undefined;
|
|
1615
1598
|
generated: undefined;
|
|
1616
1599
|
}, {}, {}>;
|
|
1600
|
+
seq: import("drizzle-orm/pg-core").PgColumn<{
|
|
1601
|
+
name: "seq";
|
|
1602
|
+
tableName: "issue_field_changes";
|
|
1603
|
+
dataType: "number";
|
|
1604
|
+
columnType: "PgBigSerial53";
|
|
1605
|
+
data: number;
|
|
1606
|
+
driverParam: number;
|
|
1607
|
+
notNull: true;
|
|
1608
|
+
hasDefault: true;
|
|
1609
|
+
isPrimaryKey: false;
|
|
1610
|
+
isAutoincrement: false;
|
|
1611
|
+
hasRuntimeDefault: false;
|
|
1612
|
+
enumValues: undefined;
|
|
1613
|
+
baseColumn: never;
|
|
1614
|
+
identity: undefined;
|
|
1615
|
+
generated: undefined;
|
|
1616
|
+
}, {}, {}>;
|
|
1617
1617
|
};
|
|
1618
|
-
dialect:
|
|
1618
|
+
dialect: 'pg';
|
|
1619
1619
|
}>;
|
|
1620
1620
|
/**
|
|
1621
1621
|
* The counters the board keeps for its readers, exactly as the SQLite file
|
|
@@ -1623,7 +1623,7 @@ declare const issueFieldChanges: import("drizzle-orm/pg-core").PgTableWithColumn
|
|
|
1623
1623
|
* something, and `schema_epoch` records the generation the board was created
|
|
1624
1624
|
* with.
|
|
1625
1625
|
*/
|
|
1626
|
-
declare const kanbanMeta: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
1626
|
+
export declare const kanbanMeta: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
1627
1627
|
name: "kanban_meta";
|
|
1628
1628
|
schema: undefined;
|
|
1629
1629
|
columns: {
|
|
@@ -1679,10 +1679,10 @@ declare const kanbanMeta: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
1679
1679
|
generated: undefined;
|
|
1680
1680
|
}, {}, {}>;
|
|
1681
1681
|
};
|
|
1682
|
-
dialect:
|
|
1682
|
+
dialect: 'pg';
|
|
1683
1683
|
}>;
|
|
1684
1684
|
/** Every table of the board, in the order a reader of the schema wants them. */
|
|
1685
|
-
declare const boardPostgresSchema: {
|
|
1685
|
+
export declare const boardPostgresSchema: {
|
|
1686
1686
|
issueStatuses: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
1687
1687
|
name: "issue_statuses";
|
|
1688
1688
|
schema: undefined;
|
|
@@ -1794,7 +1794,7 @@ declare const boardPostgresSchema: {
|
|
|
1794
1794
|
tableName: "issue_statuses";
|
|
1795
1795
|
dataType: "string";
|
|
1796
1796
|
columnType: "PgText";
|
|
1797
|
-
data: "
|
|
1797
|
+
data: "backlog" | "canceled" | "completed" | "started" | "triage" | "unstarted";
|
|
1798
1798
|
driverParam: string;
|
|
1799
1799
|
notNull: true;
|
|
1800
1800
|
hasDefault: true;
|
|
@@ -1841,14 +1841,14 @@ declare const boardPostgresSchema: {
|
|
|
1841
1841
|
generated: undefined;
|
|
1842
1842
|
}, {}, {}>;
|
|
1843
1843
|
};
|
|
1844
|
-
dialect:
|
|
1844
|
+
dialect: 'pg';
|
|
1845
1845
|
}>;
|
|
1846
1846
|
issueMilestones: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
1847
1847
|
name: "issue_milestones";
|
|
1848
1848
|
schema: undefined;
|
|
1849
1849
|
columns: {
|
|
1850
|
-
|
|
1851
|
-
name: "
|
|
1850
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
1851
|
+
name: "created_at";
|
|
1852
1852
|
tableName: "issue_milestones";
|
|
1853
1853
|
dataType: "number";
|
|
1854
1854
|
columnType: "PgBigInt53";
|
|
@@ -1864,8 +1864,8 @@ declare const boardPostgresSchema: {
|
|
|
1864
1864
|
identity: undefined;
|
|
1865
1865
|
generated: undefined;
|
|
1866
1866
|
}, {}, {}>;
|
|
1867
|
-
|
|
1868
|
-
name: "
|
|
1867
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
1868
|
+
name: "updated_at";
|
|
1869
1869
|
tableName: "issue_milestones";
|
|
1870
1870
|
dataType: "number";
|
|
1871
1871
|
columnType: "PgBigInt53";
|
|
@@ -1988,7 +1988,7 @@ declare const boardPostgresSchema: {
|
|
|
1988
1988
|
tableName: "issue_milestones";
|
|
1989
1989
|
dataType: "string";
|
|
1990
1990
|
columnType: "PgText";
|
|
1991
|
-
data: "
|
|
1991
|
+
data: "closed" | "open";
|
|
1992
1992
|
driverParam: string;
|
|
1993
1993
|
notNull: true;
|
|
1994
1994
|
hasDefault: true;
|
|
@@ -2001,14 +2001,14 @@ declare const boardPostgresSchema: {
|
|
|
2001
2001
|
generated: undefined;
|
|
2002
2002
|
}, {}, {}>;
|
|
2003
2003
|
};
|
|
2004
|
-
dialect:
|
|
2004
|
+
dialect: 'pg';
|
|
2005
2005
|
}>;
|
|
2006
2006
|
issues: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
2007
2007
|
name: "issues";
|
|
2008
2008
|
schema: undefined;
|
|
2009
2009
|
columns: {
|
|
2010
|
-
|
|
2011
|
-
name: "
|
|
2010
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
2011
|
+
name: "created_at";
|
|
2012
2012
|
tableName: "issues";
|
|
2013
2013
|
dataType: "number";
|
|
2014
2014
|
columnType: "PgBigInt53";
|
|
@@ -2024,8 +2024,8 @@ declare const boardPostgresSchema: {
|
|
|
2024
2024
|
identity: undefined;
|
|
2025
2025
|
generated: undefined;
|
|
2026
2026
|
}, {}, {}>;
|
|
2027
|
-
|
|
2028
|
-
name: "
|
|
2027
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
2028
|
+
name: "updated_at";
|
|
2029
2029
|
tableName: "issues";
|
|
2030
2030
|
dataType: "number";
|
|
2031
2031
|
columnType: "PgBigInt53";
|
|
@@ -2182,7 +2182,7 @@ declare const boardPostgresSchema: {
|
|
|
2182
2182
|
tableName: "issues";
|
|
2183
2183
|
dataType: "string";
|
|
2184
2184
|
columnType: "PgText";
|
|
2185
|
-
data: "
|
|
2185
|
+
data: "high" | "low" | "medium" | "none" | "urgent";
|
|
2186
2186
|
driverParam: string;
|
|
2187
2187
|
notNull: true;
|
|
2188
2188
|
hasDefault: true;
|
|
@@ -2267,7 +2267,7 @@ declare const boardPostgresSchema: {
|
|
|
2267
2267
|
tableName: "issues";
|
|
2268
2268
|
dataType: "string";
|
|
2269
2269
|
columnType: "PgText";
|
|
2270
|
-
data: "
|
|
2270
|
+
data: "agent" | "provider-target" | "system" | "user";
|
|
2271
2271
|
driverParam: string;
|
|
2272
2272
|
notNull: true;
|
|
2273
2273
|
hasDefault: true;
|
|
@@ -2403,7 +2403,7 @@ declare const boardPostgresSchema: {
|
|
|
2403
2403
|
tableName: "issues";
|
|
2404
2404
|
dataType: "string";
|
|
2405
2405
|
columnType: "PgText";
|
|
2406
|
-
data: "
|
|
2406
|
+
data: "main" | "worktree";
|
|
2407
2407
|
driverParam: string;
|
|
2408
2408
|
notNull: true;
|
|
2409
2409
|
hasDefault: true;
|
|
@@ -2433,29 +2433,12 @@ declare const boardPostgresSchema: {
|
|
|
2433
2433
|
generated: undefined;
|
|
2434
2434
|
}, {}, {}>;
|
|
2435
2435
|
};
|
|
2436
|
-
dialect:
|
|
2436
|
+
dialect: 'pg';
|
|
2437
2437
|
}>;
|
|
2438
2438
|
issueComments: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
2439
2439
|
name: "issue_comments";
|
|
2440
2440
|
schema: undefined;
|
|
2441
2441
|
columns: {
|
|
2442
|
-
seq: import("drizzle-orm/pg-core").PgColumn<{
|
|
2443
|
-
name: "seq";
|
|
2444
|
-
tableName: "issue_comments";
|
|
2445
|
-
dataType: "number";
|
|
2446
|
-
columnType: "PgBigSerial53";
|
|
2447
|
-
data: number;
|
|
2448
|
-
driverParam: number;
|
|
2449
|
-
notNull: true;
|
|
2450
|
-
hasDefault: true;
|
|
2451
|
-
isPrimaryKey: false;
|
|
2452
|
-
isAutoincrement: false;
|
|
2453
|
-
hasRuntimeDefault: false;
|
|
2454
|
-
enumValues: undefined;
|
|
2455
|
-
baseColumn: never;
|
|
2456
|
-
identity: undefined;
|
|
2457
|
-
generated: undefined;
|
|
2458
|
-
}, {}, {}>;
|
|
2459
2442
|
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
2460
2443
|
name: "created_at";
|
|
2461
2444
|
tableName: "issue_comments";
|
|
@@ -2529,7 +2512,7 @@ declare const boardPostgresSchema: {
|
|
|
2529
2512
|
tableName: "issue_comments";
|
|
2530
2513
|
dataType: "string";
|
|
2531
2514
|
columnType: "PgText";
|
|
2532
|
-
data: "
|
|
2515
|
+
data: "agent" | "provider-target" | "system" | "system.approved" | "system.delegated" | "system.pr" | "system.returned" | "system.run" | "system.undelegated" | "user";
|
|
2533
2516
|
driverParam: string;
|
|
2534
2517
|
notNull: true;
|
|
2535
2518
|
hasDefault: true;
|
|
@@ -2609,8 +2592,25 @@ declare const boardPostgresSchema: {
|
|
|
2609
2592
|
identity: undefined;
|
|
2610
2593
|
generated: undefined;
|
|
2611
2594
|
}, {}, {}>;
|
|
2595
|
+
seq: import("drizzle-orm/pg-core").PgColumn<{
|
|
2596
|
+
name: "seq";
|
|
2597
|
+
tableName: "issue_comments";
|
|
2598
|
+
dataType: "number";
|
|
2599
|
+
columnType: "PgBigSerial53";
|
|
2600
|
+
data: number;
|
|
2601
|
+
driverParam: number;
|
|
2602
|
+
notNull: true;
|
|
2603
|
+
hasDefault: true;
|
|
2604
|
+
isPrimaryKey: false;
|
|
2605
|
+
isAutoincrement: false;
|
|
2606
|
+
hasRuntimeDefault: false;
|
|
2607
|
+
enumValues: undefined;
|
|
2608
|
+
baseColumn: never;
|
|
2609
|
+
identity: undefined;
|
|
2610
|
+
generated: undefined;
|
|
2611
|
+
}, {}, {}>;
|
|
2612
2612
|
};
|
|
2613
|
-
dialect:
|
|
2613
|
+
dialect: 'pg';
|
|
2614
2614
|
}>;
|
|
2615
2615
|
issueRuns: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
2616
2616
|
name: "issue_runs";
|
|
@@ -2655,7 +2655,7 @@ declare const boardPostgresSchema: {
|
|
|
2655
2655
|
tableName: "issue_runs";
|
|
2656
2656
|
dataType: "string";
|
|
2657
2657
|
columnType: "PgText";
|
|
2658
|
-
data: "
|
|
2658
|
+
data: "agent" | "external" | "user";
|
|
2659
2659
|
driverParam: string;
|
|
2660
2660
|
notNull: true;
|
|
2661
2661
|
hasDefault: true;
|
|
@@ -2740,7 +2740,7 @@ declare const boardPostgresSchema: {
|
|
|
2740
2740
|
tableName: "issue_runs";
|
|
2741
2741
|
dataType: "string";
|
|
2742
2742
|
columnType: "PgText";
|
|
2743
|
-
data: "
|
|
2743
|
+
data: "main" | "worktree";
|
|
2744
2744
|
driverParam: string;
|
|
2745
2745
|
notNull: true;
|
|
2746
2746
|
hasDefault: true;
|
|
@@ -2791,7 +2791,7 @@ declare const boardPostgresSchema: {
|
|
|
2791
2791
|
tableName: "issue_runs";
|
|
2792
2792
|
dataType: "string";
|
|
2793
2793
|
columnType: "PgText";
|
|
2794
|
-
data: "
|
|
2794
|
+
data: "failed" | "finished" | "running" | "stopped";
|
|
2795
2795
|
driverParam: string;
|
|
2796
2796
|
notNull: true;
|
|
2797
2797
|
hasDefault: true;
|
|
@@ -2889,7 +2889,7 @@ declare const boardPostgresSchema: {
|
|
|
2889
2889
|
generated: undefined;
|
|
2890
2890
|
}, {}, {}>;
|
|
2891
2891
|
};
|
|
2892
|
-
dialect:
|
|
2892
|
+
dialect: 'pg';
|
|
2893
2893
|
}>;
|
|
2894
2894
|
issueRelations: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
2895
2895
|
name: "issue_relations";
|
|
@@ -2981,29 +2981,12 @@ declare const boardPostgresSchema: {
|
|
|
2981
2981
|
generated: undefined;
|
|
2982
2982
|
}, {}, {}>;
|
|
2983
2983
|
};
|
|
2984
|
-
dialect:
|
|
2984
|
+
dialect: 'pg';
|
|
2985
2985
|
}>;
|
|
2986
2986
|
issueFieldChanges: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
2987
2987
|
name: "issue_field_changes";
|
|
2988
2988
|
schema: undefined;
|
|
2989
2989
|
columns: {
|
|
2990
|
-
seq: import("drizzle-orm/pg-core").PgColumn<{
|
|
2991
|
-
name: "seq";
|
|
2992
|
-
tableName: "issue_field_changes";
|
|
2993
|
-
dataType: "number";
|
|
2994
|
-
columnType: "PgBigSerial53";
|
|
2995
|
-
data: number;
|
|
2996
|
-
driverParam: number;
|
|
2997
|
-
notNull: true;
|
|
2998
|
-
hasDefault: true;
|
|
2999
|
-
isPrimaryKey: false;
|
|
3000
|
-
isAutoincrement: false;
|
|
3001
|
-
hasRuntimeDefault: false;
|
|
3002
|
-
enumValues: undefined;
|
|
3003
|
-
baseColumn: never;
|
|
3004
|
-
identity: undefined;
|
|
3005
|
-
generated: undefined;
|
|
3006
|
-
}, {}, {}>;
|
|
3007
2990
|
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
3008
2991
|
name: "created_at";
|
|
3009
2992
|
tableName: "issue_field_changes";
|
|
@@ -3111,7 +3094,7 @@ declare const boardPostgresSchema: {
|
|
|
3111
3094
|
tableName: "issue_field_changes";
|
|
3112
3095
|
dataType: "string";
|
|
3113
3096
|
columnType: "PgText";
|
|
3114
|
-
data: "
|
|
3097
|
+
data: "agent" | "provider-target" | "system" | "user";
|
|
3115
3098
|
driverParam: string;
|
|
3116
3099
|
notNull: true;
|
|
3117
3100
|
hasDefault: true;
|
|
@@ -3157,16 +3140,9 @@ declare const boardPostgresSchema: {
|
|
|
3157
3140
|
identity: undefined;
|
|
3158
3141
|
generated: undefined;
|
|
3159
3142
|
}, {}, {}>;
|
|
3160
|
-
};
|
|
3161
|
-
dialect: "pg";
|
|
3162
|
-
}>;
|
|
3163
|
-
issuePullRequests: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
3164
|
-
name: "issue_pull_requests";
|
|
3165
|
-
schema: undefined;
|
|
3166
|
-
columns: {
|
|
3167
3143
|
seq: import("drizzle-orm/pg-core").PgColumn<{
|
|
3168
3144
|
name: "seq";
|
|
3169
|
-
tableName: "
|
|
3145
|
+
tableName: "issue_field_changes";
|
|
3170
3146
|
dataType: "number";
|
|
3171
3147
|
columnType: "PgBigSerial53";
|
|
3172
3148
|
data: number;
|
|
@@ -3181,6 +3157,13 @@ declare const boardPostgresSchema: {
|
|
|
3181
3157
|
identity: undefined;
|
|
3182
3158
|
generated: undefined;
|
|
3183
3159
|
}, {}, {}>;
|
|
3160
|
+
};
|
|
3161
|
+
dialect: 'pg';
|
|
3162
|
+
}>;
|
|
3163
|
+
issuePullRequests: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
3164
|
+
name: "issue_pull_requests";
|
|
3165
|
+
schema: undefined;
|
|
3166
|
+
columns: {
|
|
3184
3167
|
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
3185
3168
|
name: "created_at";
|
|
3186
3169
|
tableName: "issue_pull_requests";
|
|
@@ -3305,7 +3288,7 @@ declare const boardPostgresSchema: {
|
|
|
3305
3288
|
tableName: "issue_pull_requests";
|
|
3306
3289
|
dataType: "string";
|
|
3307
3290
|
columnType: "PgText";
|
|
3308
|
-
data: "
|
|
3291
|
+
data: "agent" | "provider-target" | "system" | "user";
|
|
3309
3292
|
driverParam: string;
|
|
3310
3293
|
notNull: true;
|
|
3311
3294
|
hasDefault: false;
|
|
@@ -3334,8 +3317,25 @@ declare const boardPostgresSchema: {
|
|
|
3334
3317
|
identity: undefined;
|
|
3335
3318
|
generated: undefined;
|
|
3336
3319
|
}, {}, {}>;
|
|
3320
|
+
seq: import("drizzle-orm/pg-core").PgColumn<{
|
|
3321
|
+
name: "seq";
|
|
3322
|
+
tableName: "issue_pull_requests";
|
|
3323
|
+
dataType: "number";
|
|
3324
|
+
columnType: "PgBigSerial53";
|
|
3325
|
+
data: number;
|
|
3326
|
+
driverParam: number;
|
|
3327
|
+
notNull: true;
|
|
3328
|
+
hasDefault: true;
|
|
3329
|
+
isPrimaryKey: false;
|
|
3330
|
+
isAutoincrement: false;
|
|
3331
|
+
hasRuntimeDefault: false;
|
|
3332
|
+
enumValues: undefined;
|
|
3333
|
+
baseColumn: never;
|
|
3334
|
+
identity: undefined;
|
|
3335
|
+
generated: undefined;
|
|
3336
|
+
}, {}, {}>;
|
|
3337
3337
|
};
|
|
3338
|
-
dialect:
|
|
3338
|
+
dialect: 'pg';
|
|
3339
3339
|
}>;
|
|
3340
3340
|
kanbanMeta: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
3341
3341
|
name: "kanban_meta";
|
|
@@ -3393,11 +3393,11 @@ declare const boardPostgresSchema: {
|
|
|
3393
3393
|
generated: undefined;
|
|
3394
3394
|
}, {}, {}>;
|
|
3395
3395
|
};
|
|
3396
|
-
dialect:
|
|
3396
|
+
dialect: 'pg';
|
|
3397
3397
|
}>;
|
|
3398
3398
|
};
|
|
3399
3399
|
/** The table names a Postgres board must carry, for the guard that refuses a database without them. */
|
|
3400
|
-
declare const BOARD_POSTGRES_TABLES: readonly [
|
|
3400
|
+
export declare const BOARD_POSTGRES_TABLES: readonly ['issue_statuses', 'issue_milestones', 'issues', 'issue_comments', 'issue_runs', 'issue_relations', 'issue_field_changes', 'issue_pull_requests', 'kanban_meta'];
|
|
3401
3401
|
//#endregion
|
|
3402
|
-
export {
|
|
3402
|
+
export { BOARD_SCHEMA_EPOCH, type BoardPostgresDatabase, type MigratablePostgresDatabase };
|
|
3403
3403
|
//# sourceMappingURL=index.d.cts.map
|