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.
Files changed (33) hide show
  1. package/README.md +2 -2
  2. package/dist/cli.cjs +185 -39
  3. package/dist/cli.cjs.map +1 -1
  4. package/dist/lib/{board-store-B16YarvX.d.mts → board-store-BfszzAJB.d.cts} +2 -2
  5. package/dist/lib/{board-store-BHHo_ZlR.d.cts → board-store-BvWn9xTB.d.mts} +2 -2
  6. package/dist/lib/index.cjs +2 -29
  7. package/dist/lib/index.cjs.map +1 -1
  8. package/dist/lib/index.d.cts +363 -363
  9. package/dist/lib/index.d.mts +363 -363
  10. package/dist/lib/index.mjs +1 -28
  11. package/dist/lib/index.mjs.map +1 -1
  12. package/dist/lib/{manifest-CpZOcB_6.cjs → manifest-CmiuDqH-.cjs} +200 -41
  13. package/dist/lib/manifest-CmiuDqH-.cjs.map +1 -0
  14. package/dist/lib/{manifest-C0EcwwgO.mjs → manifest-NRhhhOkC.mjs} +190 -43
  15. package/dist/lib/manifest-NRhhhOkC.mjs.map +1 -0
  16. package/dist/lib/mcp/index.cjs +2 -1
  17. package/dist/lib/mcp/index.d.cts +29 -12
  18. package/dist/lib/mcp/index.d.mts +29 -12
  19. package/dist/lib/mcp/index.mjs +2 -2
  20. package/dist/lib/postgres/index.d.cts +151 -151
  21. package/dist/lib/postgres/index.d.mts +151 -151
  22. package/dist/lib/{schema-fsHqNAip.d.cts → schema-D0MyXcej.d.cts} +41 -41
  23. package/dist/lib/{schema-fsHqNAip.d.mts → schema-D0MyXcej.d.mts} +41 -41
  24. package/dist/lib/sqlite/index.d.cts +12 -12
  25. package/dist/lib/sqlite/index.d.mts +12 -12
  26. package/dist/lib/sqlite/schema.d.cts +1 -1
  27. package/dist/lib/sqlite/schema.d.mts +1 -1
  28. package/dist/lib/{tool-names-9cmCn0gP.d.cts → tool-names-3q_GEZej.d.mts} +5 -5
  29. package/dist/lib/{tool-names-Dxg1UTUl.d.mts → tool-names-WfH4IURz.d.cts} +5 -5
  30. package/dist/page/board.js +1 -1
  31. package/package.json +4 -4
  32. package/dist/lib/manifest-C0EcwwgO.mjs.map +0 -1
  33. package/dist/lib/manifest-CpZOcB_6.cjs.map +0 -1
@@ -120,7 +120,7 @@ declare const issueStatuses: import("drizzle-orm/sqlite-core").SQLiteTableWithCo
120
120
  tableName: "issue_statuses";
121
121
  dataType: "string";
122
122
  columnType: "SQLiteText";
123
- data: "triage" | "backlog" | "unstarted" | "started" | "completed" | "canceled";
123
+ data: "backlog" | "canceled" | "completed" | "started" | "triage" | "unstarted";
124
124
  driverParam: string;
125
125
  notNull: true;
126
126
  hasDefault: true;
@@ -171,7 +171,7 @@ declare const issueStatuses: import("drizzle-orm/sqlite-core").SQLiteTableWithCo
171
171
  length: number | undefined;
172
172
  }>;
173
173
  };
174
- dialect: "sqlite";
174
+ dialect: 'sqlite';
175
175
  }>;
176
176
  declare const issueMilestones: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
177
177
  name: "issue_milestones";
@@ -326,7 +326,7 @@ declare const issueMilestones: import("drizzle-orm/sqlite-core").SQLiteTableWith
326
326
  tableName: "issue_milestones";
327
327
  dataType: "string";
328
328
  columnType: "SQLiteText";
329
- data: "open" | "closed";
329
+ data: "closed" | "open";
330
330
  driverParam: string;
331
331
  notNull: true;
332
332
  hasDefault: true;
@@ -341,7 +341,7 @@ declare const issueMilestones: import("drizzle-orm/sqlite-core").SQLiteTableWith
341
341
  length: number | undefined;
342
342
  }>;
343
343
  };
344
- dialect: "sqlite";
344
+ dialect: 'sqlite';
345
345
  }>;
346
346
  declare const issues: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
347
347
  name: "issues";
@@ -536,7 +536,7 @@ declare const issues: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
536
536
  tableName: "issues";
537
537
  dataType: "string";
538
538
  columnType: "SQLiteText";
539
- data: "none" | "low" | "medium" | "high" | "urgent";
539
+ data: "high" | "low" | "medium" | "none" | "urgent";
540
540
  driverParam: string;
541
541
  notNull: true;
542
542
  hasDefault: true;
@@ -629,7 +629,7 @@ declare const issues: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
629
629
  tableName: "issues";
630
630
  dataType: "string";
631
631
  columnType: "SQLiteText";
632
- data: "user" | "agent" | "system" | "provider-target";
632
+ data: "agent" | "provider-target" | "system" | "user";
633
633
  driverParam: string;
634
634
  notNull: true;
635
635
  hasDefault: true;
@@ -781,7 +781,7 @@ declare const issues: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
781
781
  tableName: "issues";
782
782
  dataType: "string";
783
783
  columnType: "SQLiteText";
784
- data: "worktree" | "main";
784
+ data: "main" | "worktree";
785
785
  driverParam: string;
786
786
  notNull: true;
787
787
  hasDefault: true;
@@ -813,7 +813,7 @@ declare const issues: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
813
813
  generated: undefined;
814
814
  }, {}, {}>;
815
815
  };
816
- dialect: "sqlite";
816
+ dialect: 'sqlite';
817
817
  }>;
818
818
  declare const issueComments: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
819
819
  name: "issue_comments";
@@ -898,7 +898,7 @@ declare const issueComments: import("drizzle-orm/sqlite-core").SQLiteTableWithCo
898
898
  tableName: "issue_comments";
899
899
  dataType: "string";
900
900
  columnType: "SQLiteText";
901
- data: "user" | "agent" | "system" | "provider-target" | "system.delegated" | "system.undelegated" | "system.run" | "system.approved" | "system.returned" | "system.pr";
901
+ data: "agent" | "provider-target" | "system" | "system.approved" | "system.delegated" | "system.pr" | "system.returned" | "system.run" | "system.undelegated" | "user";
902
902
  driverParam: string;
903
903
  notNull: true;
904
904
  hasDefault: true;
@@ -989,7 +989,7 @@ declare const issueComments: import("drizzle-orm/sqlite-core").SQLiteTableWithCo
989
989
  length: number | undefined;
990
990
  }>;
991
991
  };
992
- dialect: "sqlite";
992
+ dialect: 'sqlite';
993
993
  }>;
994
994
  declare const issueRuns: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
995
995
  name: "issue_runs";
@@ -1038,7 +1038,7 @@ declare const issueRuns: import("drizzle-orm/sqlite-core").SQLiteTableWithColumn
1038
1038
  tableName: "issue_runs";
1039
1039
  dataType: "string";
1040
1040
  columnType: "SQLiteText";
1041
- data: "user" | "agent" | "external";
1041
+ data: "agent" | "external" | "user";
1042
1042
  driverParam: string;
1043
1043
  notNull: true;
1044
1044
  hasDefault: true;
@@ -1133,7 +1133,7 @@ declare const issueRuns: import("drizzle-orm/sqlite-core").SQLiteTableWithColumn
1133
1133
  tableName: "issue_runs";
1134
1134
  dataType: "string";
1135
1135
  columnType: "SQLiteText";
1136
- data: "worktree" | "main";
1136
+ data: "main" | "worktree";
1137
1137
  driverParam: string;
1138
1138
  notNull: true;
1139
1139
  hasDefault: true;
@@ -1190,7 +1190,7 @@ declare const issueRuns: import("drizzle-orm/sqlite-core").SQLiteTableWithColumn
1190
1190
  tableName: "issue_runs";
1191
1191
  dataType: "string";
1192
1192
  columnType: "SQLiteText";
1193
- data: "running" | "finished" | "failed" | "stopped";
1193
+ data: "failed" | "finished" | "running" | "stopped";
1194
1194
  driverParam: string;
1195
1195
  notNull: true;
1196
1196
  hasDefault: true;
@@ -1277,7 +1277,7 @@ declare const issueRuns: import("drizzle-orm/sqlite-core").SQLiteTableWithColumn
1277
1277
  generated: undefined;
1278
1278
  }, {}, {}>;
1279
1279
  };
1280
- dialect: "sqlite";
1280
+ dialect: 'sqlite';
1281
1281
  }>;
1282
1282
  declare const issueRelations: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
1283
1283
  name: "issue_relations";
@@ -1377,7 +1377,7 @@ declare const issueRelations: import("drizzle-orm/sqlite-core").SQLiteTableWithC
1377
1377
  length: number | undefined;
1378
1378
  }>;
1379
1379
  };
1380
- dialect: "sqlite";
1380
+ dialect: 'sqlite';
1381
1381
  }>;
1382
1382
  declare const issueFieldChanges: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
1383
1383
  name: "issue_field_changes";
@@ -1500,7 +1500,7 @@ declare const issueFieldChanges: import("drizzle-orm/sqlite-core").SQLiteTableWi
1500
1500
  tableName: "issue_field_changes";
1501
1501
  dataType: "string";
1502
1502
  columnType: "SQLiteText";
1503
- data: "user" | "agent" | "system" | "provider-target";
1503
+ data: "agent" | "provider-target" | "system" | "user";
1504
1504
  driverParam: string;
1505
1505
  notNull: true;
1506
1506
  hasDefault: true;
@@ -1553,7 +1553,7 @@ declare const issueFieldChanges: import("drizzle-orm/sqlite-core").SQLiteTableWi
1553
1553
  length: number | undefined;
1554
1554
  }>;
1555
1555
  };
1556
- dialect: "sqlite";
1556
+ dialect: 'sqlite';
1557
1557
  }>;
1558
1558
  /**
1559
1559
  * A pull request someone said belongs to a card.
@@ -1703,7 +1703,7 @@ declare const issuePullRequests: import("drizzle-orm/sqlite-core").SQLiteTableWi
1703
1703
  tableName: "issue_pull_requests";
1704
1704
  dataType: "string";
1705
1705
  columnType: "SQLiteText";
1706
- data: "user" | "agent" | "system" | "provider-target";
1706
+ data: "agent" | "provider-target" | "system" | "user";
1707
1707
  driverParam: string;
1708
1708
  notNull: true;
1709
1709
  hasDefault: false;
@@ -1737,7 +1737,7 @@ declare const issuePullRequests: import("drizzle-orm/sqlite-core").SQLiteTableWi
1737
1737
  length: number | undefined;
1738
1738
  }>;
1739
1739
  };
1740
- dialect: "sqlite";
1740
+ dialect: 'sqlite';
1741
1741
  }>;
1742
1742
  /**
1743
1743
  * Monotonic counters the board keeps for its readers: `board` is bumped by the
@@ -1803,7 +1803,7 @@ declare const kanbanMeta: import("drizzle-orm/sqlite-core").SQLiteTableWithColum
1803
1803
  generated: undefined;
1804
1804
  }, {}, {}>;
1805
1805
  };
1806
- dialect: "sqlite";
1806
+ dialect: 'sqlite';
1807
1807
  }>;
1808
1808
  type IssueStatus = typeof issueStatuses.$inferSelect;
1809
1809
  type IssueMilestone = typeof issueMilestones.$inferSelect;
@@ -1937,7 +1937,7 @@ declare const boardSqliteSchema: {
1937
1937
  tableName: "issue_statuses";
1938
1938
  dataType: "string";
1939
1939
  columnType: "SQLiteText";
1940
- data: "triage" | "backlog" | "unstarted" | "started" | "completed" | "canceled";
1940
+ data: "backlog" | "canceled" | "completed" | "started" | "triage" | "unstarted";
1941
1941
  driverParam: string;
1942
1942
  notNull: true;
1943
1943
  hasDefault: true;
@@ -1988,7 +1988,7 @@ declare const boardSqliteSchema: {
1988
1988
  length: number | undefined;
1989
1989
  }>;
1990
1990
  };
1991
- dialect: "sqlite";
1991
+ dialect: 'sqlite';
1992
1992
  }>;
1993
1993
  issueMilestones: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
1994
1994
  name: "issue_milestones";
@@ -2143,7 +2143,7 @@ declare const boardSqliteSchema: {
2143
2143
  tableName: "issue_milestones";
2144
2144
  dataType: "string";
2145
2145
  columnType: "SQLiteText";
2146
- data: "open" | "closed";
2146
+ data: "closed" | "open";
2147
2147
  driverParam: string;
2148
2148
  notNull: true;
2149
2149
  hasDefault: true;
@@ -2158,7 +2158,7 @@ declare const boardSqliteSchema: {
2158
2158
  length: number | undefined;
2159
2159
  }>;
2160
2160
  };
2161
- dialect: "sqlite";
2161
+ dialect: 'sqlite';
2162
2162
  }>;
2163
2163
  issues: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
2164
2164
  name: "issues";
@@ -2353,7 +2353,7 @@ declare const boardSqliteSchema: {
2353
2353
  tableName: "issues";
2354
2354
  dataType: "string";
2355
2355
  columnType: "SQLiteText";
2356
- data: "none" | "low" | "medium" | "high" | "urgent";
2356
+ data: "high" | "low" | "medium" | "none" | "urgent";
2357
2357
  driverParam: string;
2358
2358
  notNull: true;
2359
2359
  hasDefault: true;
@@ -2446,7 +2446,7 @@ declare const boardSqliteSchema: {
2446
2446
  tableName: "issues";
2447
2447
  dataType: "string";
2448
2448
  columnType: "SQLiteText";
2449
- data: "user" | "agent" | "system" | "provider-target";
2449
+ data: "agent" | "provider-target" | "system" | "user";
2450
2450
  driverParam: string;
2451
2451
  notNull: true;
2452
2452
  hasDefault: true;
@@ -2598,7 +2598,7 @@ declare const boardSqliteSchema: {
2598
2598
  tableName: "issues";
2599
2599
  dataType: "string";
2600
2600
  columnType: "SQLiteText";
2601
- data: "worktree" | "main";
2601
+ data: "main" | "worktree";
2602
2602
  driverParam: string;
2603
2603
  notNull: true;
2604
2604
  hasDefault: true;
@@ -2630,7 +2630,7 @@ declare const boardSqliteSchema: {
2630
2630
  generated: undefined;
2631
2631
  }, {}, {}>;
2632
2632
  };
2633
- dialect: "sqlite";
2633
+ dialect: 'sqlite';
2634
2634
  }>;
2635
2635
  issueComments: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
2636
2636
  name: "issue_comments";
@@ -2715,7 +2715,7 @@ declare const boardSqliteSchema: {
2715
2715
  tableName: "issue_comments";
2716
2716
  dataType: "string";
2717
2717
  columnType: "SQLiteText";
2718
- data: "user" | "agent" | "system" | "provider-target" | "system.delegated" | "system.undelegated" | "system.run" | "system.approved" | "system.returned" | "system.pr";
2718
+ data: "agent" | "provider-target" | "system" | "system.approved" | "system.delegated" | "system.pr" | "system.returned" | "system.run" | "system.undelegated" | "user";
2719
2719
  driverParam: string;
2720
2720
  notNull: true;
2721
2721
  hasDefault: true;
@@ -2806,7 +2806,7 @@ declare const boardSqliteSchema: {
2806
2806
  length: number | undefined;
2807
2807
  }>;
2808
2808
  };
2809
- dialect: "sqlite";
2809
+ dialect: 'sqlite';
2810
2810
  }>;
2811
2811
  issueRuns: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
2812
2812
  name: "issue_runs";
@@ -2855,7 +2855,7 @@ declare const boardSqliteSchema: {
2855
2855
  tableName: "issue_runs";
2856
2856
  dataType: "string";
2857
2857
  columnType: "SQLiteText";
2858
- data: "user" | "agent" | "external";
2858
+ data: "agent" | "external" | "user";
2859
2859
  driverParam: string;
2860
2860
  notNull: true;
2861
2861
  hasDefault: true;
@@ -2950,7 +2950,7 @@ declare const boardSqliteSchema: {
2950
2950
  tableName: "issue_runs";
2951
2951
  dataType: "string";
2952
2952
  columnType: "SQLiteText";
2953
- data: "worktree" | "main";
2953
+ data: "main" | "worktree";
2954
2954
  driverParam: string;
2955
2955
  notNull: true;
2956
2956
  hasDefault: true;
@@ -3007,7 +3007,7 @@ declare const boardSqliteSchema: {
3007
3007
  tableName: "issue_runs";
3008
3008
  dataType: "string";
3009
3009
  columnType: "SQLiteText";
3010
- data: "running" | "finished" | "failed" | "stopped";
3010
+ data: "failed" | "finished" | "running" | "stopped";
3011
3011
  driverParam: string;
3012
3012
  notNull: true;
3013
3013
  hasDefault: true;
@@ -3094,7 +3094,7 @@ declare const boardSqliteSchema: {
3094
3094
  generated: undefined;
3095
3095
  }, {}, {}>;
3096
3096
  };
3097
- dialect: "sqlite";
3097
+ dialect: 'sqlite';
3098
3098
  }>;
3099
3099
  issueRelations: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
3100
3100
  name: "issue_relations";
@@ -3194,7 +3194,7 @@ declare const boardSqliteSchema: {
3194
3194
  length: number | undefined;
3195
3195
  }>;
3196
3196
  };
3197
- dialect: "sqlite";
3197
+ dialect: 'sqlite';
3198
3198
  }>;
3199
3199
  issueFieldChanges: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
3200
3200
  name: "issue_field_changes";
@@ -3317,7 +3317,7 @@ declare const boardSqliteSchema: {
3317
3317
  tableName: "issue_field_changes";
3318
3318
  dataType: "string";
3319
3319
  columnType: "SQLiteText";
3320
- data: "user" | "agent" | "system" | "provider-target";
3320
+ data: "agent" | "provider-target" | "system" | "user";
3321
3321
  driverParam: string;
3322
3322
  notNull: true;
3323
3323
  hasDefault: true;
@@ -3370,7 +3370,7 @@ declare const boardSqliteSchema: {
3370
3370
  length: number | undefined;
3371
3371
  }>;
3372
3372
  };
3373
- dialect: "sqlite";
3373
+ dialect: 'sqlite';
3374
3374
  }>;
3375
3375
  issuePullRequests: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
3376
3376
  name: "issue_pull_requests";
@@ -3510,7 +3510,7 @@ declare const boardSqliteSchema: {
3510
3510
  tableName: "issue_pull_requests";
3511
3511
  dataType: "string";
3512
3512
  columnType: "SQLiteText";
3513
- data: "user" | "agent" | "system" | "provider-target";
3513
+ data: "agent" | "provider-target" | "system" | "user";
3514
3514
  driverParam: string;
3515
3515
  notNull: true;
3516
3516
  hasDefault: false;
@@ -3544,7 +3544,7 @@ declare const boardSqliteSchema: {
3544
3544
  length: number | undefined;
3545
3545
  }>;
3546
3546
  };
3547
- dialect: "sqlite";
3547
+ dialect: 'sqlite';
3548
3548
  }>;
3549
3549
  kanbanMeta: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
3550
3550
  name: "kanban_meta";
@@ -3604,9 +3604,9 @@ declare const boardSqliteSchema: {
3604
3604
  generated: undefined;
3605
3605
  }, {}, {}>;
3606
3606
  };
3607
- dialect: "sqlite";
3607
+ dialect: 'sqlite';
3608
3608
  }>;
3609
3609
  };
3610
3610
  //#endregion
3611
3611
  export { issueStatuses as _, IssuePullRequest as a, IssueStatus as c, issueComments as d, issueFieldChanges as f, issueRuns as g, issueRelations as h, IssueMilestone as i, KanbanMeta as l, issuePullRequests as m, IssueComment as n, IssueRelation as o, issueMilestones as p, IssueFieldChange as r, IssueRun as s, Issue as t, boardSqliteSchema as u, issues as v, kanbanMeta as y };
3612
- //# sourceMappingURL=schema-fsHqNAip.d.mts.map
3612
+ //# sourceMappingURL=schema-D0MyXcej.d.mts.map
@@ -1,5 +1,5 @@
1
- import { _ as issueStatuses, c as IssueStatus, d as issueComments, f as issueFieldChanges, g as issueRuns, h as issueRelations, i as IssueMilestone, l as KanbanMeta, n as IssueComment, o as IssueRelation, p as issueMilestones, r as IssueFieldChange, s as IssueRun, t as Issue, u as boardSqliteSchema, v as issues, y as kanbanMeta } from "../schema-fsHqNAip.cjs";
2
- import { a as BoardStore } from "../board-store-BHHo_ZlR.cjs";
1
+ import { _ as issueStatuses, c as IssueStatus, d as issueComments, f as issueFieldChanges, g as issueRuns, h as issueRelations, i as IssueMilestone, l as KanbanMeta, n as IssueComment, o as IssueRelation, p as issueMilestones, r as IssueFieldChange, s as IssueRun, t as Issue, u as boardSqliteSchema, v as issues, y as kanbanMeta } from "../schema-D0MyXcej.cjs";
2
+ import { a as BoardStore } from "../board-store-BfszzAJB.cjs";
3
3
  import { t as BOARD_SCHEMA_EPOCH } from "../schema-epoch-ZyumVL_A.cjs";
4
4
  import { BetterSQLite3Database } from "drizzle-orm/better-sqlite3";
5
5
  import { Database } from "better-sqlite3";
@@ -54,7 +54,7 @@ type SqliteTransactionMode = 'deferred' | 'immediate';
54
54
  * connection to whatever runs next, and its writes land in this transaction
55
55
  * too.
56
56
  */
57
- declare function runSqliteTransaction<T>(database: SqliteDatabase, fn: () => Promise<T>, options?: {
57
+ export declare function runSqliteTransaction<T>(database: SqliteDatabase, fn: () => Promise<T>, options?: {
58
58
  mode?: SqliteTransactionMode;
59
59
  }): Promise<T>;
60
60
  //#endregion
@@ -67,7 +67,7 @@ declare function runSqliteTransaction<T>(database: SqliteDatabase, fn: () => Pro
67
67
  * the host currently has open — a server passes its single connection
68
68
  * accessor, a standalone reader passes its own.
69
69
  */
70
- declare function createSqliteBoardStore(options: {
70
+ export declare function createSqliteBoardStore(options: {
71
71
  database: () => SqliteDatabase;
72
72
  }): BoardStore;
73
73
  //#endregion
@@ -77,7 +77,7 @@ declare function createSqliteBoardStore(options: {
77
77
  * ones that build a board *file of this package's own*. The two layouts this
78
78
  * has to survive are `src/migrations-path.ts`'s subject.
79
79
  */
80
- declare function getBoardSqliteMigrationsPath(): string;
80
+ export declare function getBoardSqliteMigrationsPath(): string;
81
81
  /**
82
82
  * Create or update a board file this package owns.
83
83
  *
@@ -93,7 +93,7 @@ declare function getBoardSqliteMigrationsPath(): string;
93
93
  * `workspaces`, no `agents`, no `provider_targets`. Every reference out of the
94
94
  * board is a plain text column for exactly that reason (ruling 5-1).
95
95
  */
96
- declare function migrateBoardFile(database: SqliteDatabase): void;
96
+ export declare function migrateBoardFile(database: SqliteDatabase): void;
97
97
  //#endregion
98
98
  //#region src/sqlite/open-database.d.ts
99
99
  /** One open board file: the drizzle handle, the driver beneath it, and the way to let go. */
@@ -113,7 +113,7 @@ interface BoardDatabase {
113
113
  * without it hears the sentence above rather than a module-resolution stack
114
114
  * from inside drizzle.
115
115
  */
116
- declare function openBoardDatabase(path: string): Promise<BoardDatabase>;
116
+ export declare function openBoardDatabase(path: string): Promise<BoardDatabase>;
117
117
  /**
118
118
  * Refuse a board file this build cannot speak for, before any statement runs
119
119
  * against it: one with no board in it (`missingTables`), one whose board a
@@ -122,7 +122,7 @@ declare function openBoardDatabase(path: string): Promise<BoardDatabase>;
122
122
  * that migrates its own database on start need not call this; it is the guard a
123
123
  * standalone reader puts in front of a file it did not create.
124
124
  */
125
- declare function assertBoardSchema(database: SqliteDatabase): void;
125
+ export declare function assertBoardSchema(database: SqliteDatabase): void;
126
126
  /**
127
127
  * Who created this board file's tables from nothing: this package
128
128
  * (`kanbo init --file`), or a host app whose own database the board lives in.
@@ -137,14 +137,14 @@ type BoardFileOwner = 'kanbo' | 'host';
137
137
  * not this, so a table or a row that is not there yet is read as "not this
138
138
  * package's file" rather than an error of its own.
139
139
  */
140
- declare function readBoardFileOwner(database: SqliteDatabase): BoardFileOwner;
140
+ export declare function readBoardFileOwner(database: SqliteDatabase): BoardFileOwner;
141
141
  /**
142
142
  * Leave the marker that tells every later reader this file is this package's
143
143
  * own, not a host app's. `kanbo init --file` calls this once, right after
144
144
  * migrating; `insert or ignore` is what makes calling it again on the same
145
145
  * file a no-op rather than a conflict.
146
146
  */
147
- declare function markBoardFileOwnedByKanbo(database: SqliteDatabase): void;
147
+ export declare function markBoardFileOwnedByKanbo(database: SqliteDatabase): void;
148
148
  /** What a file already holds, before a board is opened on it or written into it. */
149
149
  interface BoardFileContents {
150
150
  /** No tables at all — a path nothing has been created in yet, or a zero-byte file. */
@@ -169,7 +169,7 @@ interface BoardFileContents {
169
169
  * is set and nothing is written, so a file that turns out not to be ours is
170
170
  * left exactly as it was found, journal mode included.
171
171
  */
172
- declare function readBoardFileContents(path: string): BoardFileContents;
172
+ export declare function readBoardFileContents(path: string): BoardFileContents;
173
173
  //#endregion
174
- export { BOARD_SCHEMA_EPOCH, type BoardDatabase, type BoardFileContents, type BoardFileOwner, type Issue, type IssueComment, type IssueFieldChange, type IssueMilestone, type IssueRelation, type IssueRun, type IssueStatus, type KanbanMeta, type SqliteDatabase, type SqliteTransactionMode, assertBoardSchema, boardSqliteSchema, createSqliteBoardStore, getBoardSqliteMigrationsPath, issueComments, issueFieldChanges, issueMilestones, issueRelations, issueRuns, issueStatuses, issues, kanbanMeta, markBoardFileOwnedByKanbo, migrateBoardFile, openBoardDatabase, readBoardFileContents, readBoardFileOwner, runSqliteTransaction };
174
+ export { BOARD_SCHEMA_EPOCH, type BoardDatabase, type BoardFileContents, type BoardFileOwner, type Issue, type IssueComment, type IssueFieldChange, type IssueMilestone, type IssueRelation, type IssueRun, type IssueStatus, type KanbanMeta, type SqliteDatabase, type SqliteTransactionMode, boardSqliteSchema, issueComments, issueFieldChanges, issueMilestones, issueRelations, issueRuns, issueStatuses, issues, kanbanMeta };
175
175
  //# sourceMappingURL=index.d.cts.map
@@ -1,5 +1,5 @@
1
- import { _ as issueStatuses, c as IssueStatus, d as issueComments, f as issueFieldChanges, g as issueRuns, h as issueRelations, i as IssueMilestone, l as KanbanMeta, n as IssueComment, o as IssueRelation, p as issueMilestones, r as IssueFieldChange, s as IssueRun, t as Issue, u as boardSqliteSchema, v as issues, y as kanbanMeta } from "../schema-fsHqNAip.mjs";
2
- import { a as BoardStore } from "../board-store-B16YarvX.mjs";
1
+ import { _ as issueStatuses, c as IssueStatus, d as issueComments, f as issueFieldChanges, g as issueRuns, h as issueRelations, i as IssueMilestone, l as KanbanMeta, n as IssueComment, o as IssueRelation, p as issueMilestones, r as IssueFieldChange, s as IssueRun, t as Issue, u as boardSqliteSchema, v as issues, y as kanbanMeta } from "../schema-D0MyXcej.mjs";
2
+ import { a as BoardStore } from "../board-store-BvWn9xTB.mjs";
3
3
  import { t as BOARD_SCHEMA_EPOCH } from "../schema-epoch-ZyumVL_A.mjs";
4
4
  import { BetterSQLite3Database } from "drizzle-orm/better-sqlite3";
5
5
  import { Database } from "better-sqlite3";
@@ -54,7 +54,7 @@ type SqliteTransactionMode = 'deferred' | 'immediate';
54
54
  * connection to whatever runs next, and its writes land in this transaction
55
55
  * too.
56
56
  */
57
- declare function runSqliteTransaction<T>(database: SqliteDatabase, fn: () => Promise<T>, options?: {
57
+ export declare function runSqliteTransaction<T>(database: SqliteDatabase, fn: () => Promise<T>, options?: {
58
58
  mode?: SqliteTransactionMode;
59
59
  }): Promise<T>;
60
60
  //#endregion
@@ -67,7 +67,7 @@ declare function runSqliteTransaction<T>(database: SqliteDatabase, fn: () => Pro
67
67
  * the host currently has open — a server passes its single connection
68
68
  * accessor, a standalone reader passes its own.
69
69
  */
70
- declare function createSqliteBoardStore(options: {
70
+ export declare function createSqliteBoardStore(options: {
71
71
  database: () => SqliteDatabase;
72
72
  }): BoardStore;
73
73
  //#endregion
@@ -77,7 +77,7 @@ declare function createSqliteBoardStore(options: {
77
77
  * ones that build a board *file of this package's own*. The two layouts this
78
78
  * has to survive are `src/migrations-path.ts`'s subject.
79
79
  */
80
- declare function getBoardSqliteMigrationsPath(): string;
80
+ export declare function getBoardSqliteMigrationsPath(): string;
81
81
  /**
82
82
  * Create or update a board file this package owns.
83
83
  *
@@ -93,7 +93,7 @@ declare function getBoardSqliteMigrationsPath(): string;
93
93
  * `workspaces`, no `agents`, no `provider_targets`. Every reference out of the
94
94
  * board is a plain text column for exactly that reason (ruling 5-1).
95
95
  */
96
- declare function migrateBoardFile(database: SqliteDatabase): void;
96
+ export declare function migrateBoardFile(database: SqliteDatabase): void;
97
97
  //#endregion
98
98
  //#region src/sqlite/open-database.d.ts
99
99
  /** One open board file: the drizzle handle, the driver beneath it, and the way to let go. */
@@ -113,7 +113,7 @@ interface BoardDatabase {
113
113
  * without it hears the sentence above rather than a module-resolution stack
114
114
  * from inside drizzle.
115
115
  */
116
- declare function openBoardDatabase(path: string): Promise<BoardDatabase>;
116
+ export declare function openBoardDatabase(path: string): Promise<BoardDatabase>;
117
117
  /**
118
118
  * Refuse a board file this build cannot speak for, before any statement runs
119
119
  * against it: one with no board in it (`missingTables`), one whose board a
@@ -122,7 +122,7 @@ declare function openBoardDatabase(path: string): Promise<BoardDatabase>;
122
122
  * that migrates its own database on start need not call this; it is the guard a
123
123
  * standalone reader puts in front of a file it did not create.
124
124
  */
125
- declare function assertBoardSchema(database: SqliteDatabase): void;
125
+ export declare function assertBoardSchema(database: SqliteDatabase): void;
126
126
  /**
127
127
  * Who created this board file's tables from nothing: this package
128
128
  * (`kanbo init --file`), or a host app whose own database the board lives in.
@@ -137,14 +137,14 @@ type BoardFileOwner = 'kanbo' | 'host';
137
137
  * not this, so a table or a row that is not there yet is read as "not this
138
138
  * package's file" rather than an error of its own.
139
139
  */
140
- declare function readBoardFileOwner(database: SqliteDatabase): BoardFileOwner;
140
+ export declare function readBoardFileOwner(database: SqliteDatabase): BoardFileOwner;
141
141
  /**
142
142
  * Leave the marker that tells every later reader this file is this package's
143
143
  * own, not a host app's. `kanbo init --file` calls this once, right after
144
144
  * migrating; `insert or ignore` is what makes calling it again on the same
145
145
  * file a no-op rather than a conflict.
146
146
  */
147
- declare function markBoardFileOwnedByKanbo(database: SqliteDatabase): void;
147
+ export declare function markBoardFileOwnedByKanbo(database: SqliteDatabase): void;
148
148
  /** What a file already holds, before a board is opened on it or written into it. */
149
149
  interface BoardFileContents {
150
150
  /** No tables at all — a path nothing has been created in yet, or a zero-byte file. */
@@ -169,7 +169,7 @@ interface BoardFileContents {
169
169
  * is set and nothing is written, so a file that turns out not to be ours is
170
170
  * left exactly as it was found, journal mode included.
171
171
  */
172
- declare function readBoardFileContents(path: string): BoardFileContents;
172
+ export declare function readBoardFileContents(path: string): BoardFileContents;
173
173
  //#endregion
174
- export { BOARD_SCHEMA_EPOCH, type BoardDatabase, type BoardFileContents, type BoardFileOwner, type Issue, type IssueComment, type IssueFieldChange, type IssueMilestone, type IssueRelation, type IssueRun, type IssueStatus, type KanbanMeta, type SqliteDatabase, type SqliteTransactionMode, assertBoardSchema, boardSqliteSchema, createSqliteBoardStore, getBoardSqliteMigrationsPath, issueComments, issueFieldChanges, issueMilestones, issueRelations, issueRuns, issueStatuses, issues, kanbanMeta, markBoardFileOwnedByKanbo, migrateBoardFile, openBoardDatabase, readBoardFileContents, readBoardFileOwner, runSqliteTransaction };
174
+ export { BOARD_SCHEMA_EPOCH, type BoardDatabase, type BoardFileContents, type BoardFileOwner, type Issue, type IssueComment, type IssueFieldChange, type IssueMilestone, type IssueRelation, type IssueRun, type IssueStatus, type KanbanMeta, type SqliteDatabase, type SqliteTransactionMode, boardSqliteSchema, issueComments, issueFieldChanges, issueMilestones, issueRelations, issueRuns, issueStatuses, issues, kanbanMeta };
175
175
  //# sourceMappingURL=index.d.mts.map
@@ -1,2 +1,2 @@
1
- import { _ as issueStatuses, a as IssuePullRequest, c as IssueStatus, d as issueComments, f as issueFieldChanges, g as issueRuns, h as issueRelations, i as IssueMilestone, l as KanbanMeta, m as issuePullRequests, n as IssueComment, o as IssueRelation, p as issueMilestones, r as IssueFieldChange, s as IssueRun, t as Issue, u as boardSqliteSchema, v as issues, y as kanbanMeta } from "../schema-fsHqNAip.cjs";
1
+ import { _ as issueStatuses, a as IssuePullRequest, c as IssueStatus, d as issueComments, f as issueFieldChanges, g as issueRuns, h as issueRelations, i as IssueMilestone, l as KanbanMeta, m as issuePullRequests, n as IssueComment, o as IssueRelation, p as issueMilestones, r as IssueFieldChange, s as IssueRun, t as Issue, u as boardSqliteSchema, v as issues, y as kanbanMeta } from "../schema-D0MyXcej.cjs";
2
2
  export { Issue, IssueComment, IssueFieldChange, IssueMilestone, IssuePullRequest, IssueRelation, IssueRun, IssueStatus, KanbanMeta, boardSqliteSchema, issueComments, issueFieldChanges, issueMilestones, issuePullRequests, issueRelations, issueRuns, issueStatuses, issues, kanbanMeta };
@@ -1,2 +1,2 @@
1
- import { _ as issueStatuses, a as IssuePullRequest, c as IssueStatus, d as issueComments, f as issueFieldChanges, g as issueRuns, h as issueRelations, i as IssueMilestone, l as KanbanMeta, m as issuePullRequests, n as IssueComment, o as IssueRelation, p as issueMilestones, r as IssueFieldChange, s as IssueRun, t as Issue, u as boardSqliteSchema, v as issues, y as kanbanMeta } from "../schema-fsHqNAip.mjs";
1
+ import { _ as issueStatuses, a as IssuePullRequest, c as IssueStatus, d as issueComments, f as issueFieldChanges, g as issueRuns, h as issueRelations, i as IssueMilestone, l as KanbanMeta, m as issuePullRequests, n as IssueComment, o as IssueRelation, p as issueMilestones, r as IssueFieldChange, s as IssueRun, t as Issue, u as boardSqliteSchema, v as issues, y as kanbanMeta } from "../schema-D0MyXcej.mjs";
2
2
  export { Issue, IssueComment, IssueFieldChange, IssueMilestone, IssuePullRequest, IssueRelation, IssueRun, IssueStatus, KanbanMeta, boardSqliteSchema, issueComments, issueFieldChanges, issueMilestones, issuePullRequests, issueRelations, issueRuns, issueStatuses, issues, kanbanMeta };
@@ -1,4 +1,4 @@
1
- import { c as IssueStatus } from "./schema-fsHqNAip.cjs";
1
+ import { c as IssueStatus } from "./schema-D0MyXcej.mjs";
2
2
  //#region src/domain/entry-rules.d.ts
3
3
  /**
4
4
  * What a column may ask of a card before an agent puts the card in it (ruling
@@ -11,10 +11,10 @@ import { c as IssueStatus } from "./schema-fsHqNAip.cjs";
11
11
  * is green.
12
12
  * - `approved` — a person's last decision on the card was to approve it.
13
13
  */
14
- declare const ENTRY_RULES: readonly ["checklist_complete", "pull_request_linked", "ci_green", "approved"];
14
+ declare const ENTRY_RULES: readonly ['checklist_complete', 'pull_request_linked', 'ci_green', 'approved'];
15
15
  type EntryRule = typeof ENTRY_RULES[number];
16
16
  /** Why a rule is unmet, as a key a translated surface can name in its own words. */
17
- declare const UNMET_ENTRY_RULE_REASONS: readonly ["no_checklist", "unchecked", "no_pull_request", "no_ci", "ci_red", "approval_pending", "returned", "not_approved"];
17
+ declare const UNMET_ENTRY_RULE_REASONS: readonly ['no_checklist', 'unchecked', 'no_pull_request', 'no_ci', 'ci_red', 'approval_pending', 'returned', 'not_approved'];
18
18
  type UnmetEntryRuleReason = typeof UNMET_ENTRY_RULE_REASONS[number];
19
19
  /**
20
20
  * One rule a card does not meet yet: `detail` says what is missing in English
@@ -91,7 +91,7 @@ declare const ENTRY_RULE_DESCRIPTIONS: Record<EntryRule, string>;
91
91
  * Nothing here executes anything. These are names and the commands that mean
92
92
  * the same thing, for a prompt and for documentation.
93
93
  */
94
- declare const KANBO_TOOL_NAMES: readonly ["kanbo_prime", "kanbo_ready", "kanbo_columns", "kanbo_sprints", "kanbo_card_get", "kanbo_card_list", "kanbo_card_create", "kanbo_card_update", "kanbo_card_move", "kanbo_card_comment", "kanbo_card_link_pr", "kanbo_card_pull_requests", "kanbo_status_line", "kanbo_wait_approval", "kanbo_run_start", "kanbo_run_finish"];
94
+ declare const KANBO_TOOL_NAMES: readonly ['kanbo_prime', 'kanbo_ready', 'kanbo_columns', 'kanbo_sprints', 'kanbo_card_get', 'kanbo_card_list', 'kanbo_card_create', 'kanbo_card_update', 'kanbo_card_move', 'kanbo_card_comment', 'kanbo_card_link_pr', 'kanbo_card_pull_requests', 'kanbo_status_line', 'kanbo_wait_approval', 'kanbo_run_start', 'kanbo_run_finish'];
95
95
  /** One of the board's tools. */
96
96
  type KanboToolName = typeof KANBO_TOOL_NAMES[number];
97
97
  /** The command line that does what a tool does. */
@@ -109,4 +109,4 @@ interface KanboToolCliEquivalent {
109
109
  declare const KANBO_TOOL_CLI_EQUIVALENTS: Record<KanboToolName, KanboToolCliEquivalent>;
110
110
  //#endregion
111
111
  export { ENTRY_RULES as a, EntryRuleFacts as c, evaluateEntryRules as d, readChecklist as f, KanboToolName as i, UNMET_ENTRY_RULE_REASONS as l, serializeEntryRules as m, KANBO_TOOL_NAMES as n, ENTRY_RULE_DESCRIPTIONS as o, readEntryRules as p, KanboToolCliEquivalent as r, EntryRule as s, KANBO_TOOL_CLI_EQUIVALENTS as t, UnmetEntryRule as u };
112
- //# sourceMappingURL=tool-names-9cmCn0gP.d.cts.map
112
+ //# sourceMappingURL=tool-names-3q_GEZej.d.mts.map
@@ -1,4 +1,4 @@
1
- import { c as IssueStatus } from "./schema-fsHqNAip.mjs";
1
+ import { c as IssueStatus } from "./schema-D0MyXcej.cjs";
2
2
  //#region src/domain/entry-rules.d.ts
3
3
  /**
4
4
  * What a column may ask of a card before an agent puts the card in it (ruling
@@ -11,10 +11,10 @@ import { c as IssueStatus } from "./schema-fsHqNAip.mjs";
11
11
  * is green.
12
12
  * - `approved` — a person's last decision on the card was to approve it.
13
13
  */
14
- declare const ENTRY_RULES: readonly ["checklist_complete", "pull_request_linked", "ci_green", "approved"];
14
+ declare const ENTRY_RULES: readonly ['checklist_complete', 'pull_request_linked', 'ci_green', 'approved'];
15
15
  type EntryRule = typeof ENTRY_RULES[number];
16
16
  /** Why a rule is unmet, as a key a translated surface can name in its own words. */
17
- declare const UNMET_ENTRY_RULE_REASONS: readonly ["no_checklist", "unchecked", "no_pull_request", "no_ci", "ci_red", "approval_pending", "returned", "not_approved"];
17
+ declare const UNMET_ENTRY_RULE_REASONS: readonly ['no_checklist', 'unchecked', 'no_pull_request', 'no_ci', 'ci_red', 'approval_pending', 'returned', 'not_approved'];
18
18
  type UnmetEntryRuleReason = typeof UNMET_ENTRY_RULE_REASONS[number];
19
19
  /**
20
20
  * One rule a card does not meet yet: `detail` says what is missing in English
@@ -91,7 +91,7 @@ declare const ENTRY_RULE_DESCRIPTIONS: Record<EntryRule, string>;
91
91
  * Nothing here executes anything. These are names and the commands that mean
92
92
  * the same thing, for a prompt and for documentation.
93
93
  */
94
- declare const KANBO_TOOL_NAMES: readonly ["kanbo_prime", "kanbo_ready", "kanbo_columns", "kanbo_sprints", "kanbo_card_get", "kanbo_card_list", "kanbo_card_create", "kanbo_card_update", "kanbo_card_move", "kanbo_card_comment", "kanbo_card_link_pr", "kanbo_card_pull_requests", "kanbo_status_line", "kanbo_wait_approval", "kanbo_run_start", "kanbo_run_finish"];
94
+ declare const KANBO_TOOL_NAMES: readonly ['kanbo_prime', 'kanbo_ready', 'kanbo_columns', 'kanbo_sprints', 'kanbo_card_get', 'kanbo_card_list', 'kanbo_card_create', 'kanbo_card_update', 'kanbo_card_move', 'kanbo_card_comment', 'kanbo_card_link_pr', 'kanbo_card_pull_requests', 'kanbo_status_line', 'kanbo_wait_approval', 'kanbo_run_start', 'kanbo_run_finish'];
95
95
  /** One of the board's tools. */
96
96
  type KanboToolName = typeof KANBO_TOOL_NAMES[number];
97
97
  /** The command line that does what a tool does. */
@@ -109,4 +109,4 @@ interface KanboToolCliEquivalent {
109
109
  declare const KANBO_TOOL_CLI_EQUIVALENTS: Record<KanboToolName, KanboToolCliEquivalent>;
110
110
  //#endregion
111
111
  export { ENTRY_RULES as a, EntryRuleFacts as c, evaluateEntryRules as d, readChecklist as f, KanboToolName as i, UNMET_ENTRY_RULE_REASONS as l, serializeEntryRules as m, KANBO_TOOL_NAMES as n, ENTRY_RULE_DESCRIPTIONS as o, readEntryRules as p, KanboToolCliEquivalent as r, EntryRule as s, KANBO_TOOL_CLI_EQUIVALENTS as t, UnmetEntryRule as u };
112
- //# sourceMappingURL=tool-names-Dxg1UTUl.d.mts.map
112
+ //# sourceMappingURL=tool-names-WfH4IURz.d.cts.map