kanbo-cli 0.4.0 → 0.5.0
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/CHANGELOG.md +19 -0
- package/dist/cli-main.cjs +722 -111
- package/dist/drizzle-postgres/0006_flow_rules_and_column_entries.sql +3 -0
- package/dist/drizzle-postgres/README.md +8 -0
- package/dist/drizzle-postgres/meta/0006_snapshot.json +1290 -0
- package/dist/drizzle-postgres/meta/_journal.json +7 -0
- package/dist/drizzle-sqlite/0005_flow_rules_and_column_entries.sql +3 -0
- package/dist/drizzle-sqlite/README.md +8 -0
- package/dist/drizzle-sqlite/meta/0005_snapshot.json +1097 -0
- package/dist/drizzle-sqlite/meta/_journal.json +7 -0
- package/dist/lib/{approval-BsBk2xVr.d.cts → approval-CnJJfwfi.d.mts} +30 -6
- package/dist/lib/{approval-LRZ6ontC.d.mts → approval-DNfUhYD5.d.cts} +30 -6
- package/dist/lib/{board-store-D_Mpfb84.d.mts → board-store-D2x2w1wG.d.cts} +26 -2
- package/dist/lib/{board-store-Dx-mw2I6.d.cts → board-store-DN5Y2U2y.d.mts} +26 -2
- package/dist/lib/index.cjs +3 -1
- package/dist/lib/index.d.cts +96 -6
- package/dist/lib/index.d.mts +96 -6
- package/dist/lib/index.mjs +2 -2
- package/dist/lib/{manifest-DcIMYvWk.cjs → manifest-DUGRyC7A.cjs} +708 -112
- package/dist/lib/{manifest-Dmo6IlWk.mjs → manifest-t4LvFgzH.mjs} +697 -113
- package/dist/lib/mcp/index.cjs +24 -4
- package/dist/lib/mcp/index.d.cts +19 -4
- package/dist/lib/mcp/index.d.mts +19 -4
- package/dist/lib/mcp/index.mjs +24 -4
- package/dist/lib/{migrate-DtBeW3Fs.mjs → migrate-BUsaTJlj.mjs} +8 -1
- package/dist/lib/{migrate-Dca5WdYd.cjs → migrate-BoGrqK9m.cjs} +7 -0
- package/dist/lib/postgres/index.cjs +1 -1
- package/dist/lib/postgres/index.d.cts +69 -1
- package/dist/lib/postgres/index.d.mts +69 -1
- package/dist/lib/postgres/index.mjs +1 -1
- package/dist/lib/{roles.sql-BoOZSkBp.mjs → roles.sql-BDmmNUdx.mjs} +18 -2
- package/dist/lib/{roles.sql-E58x7mLS.cjs → roles.sql-CBFxSHy7.cjs} +17 -1
- package/dist/lib/{schema-D0MyXcej.d.cts → schema-Cwx3HosC.d.cts} +72 -0
- package/dist/lib/{schema-D0MyXcej.d.mts → schema-Cwx3HosC.d.mts} +72 -0
- package/dist/lib/sqlite/index.cjs +1 -1
- package/dist/lib/sqlite/index.d.cts +2 -2
- package/dist/lib/sqlite/index.d.mts +2 -2
- package/dist/lib/sqlite/index.mjs +1 -1
- package/dist/lib/sqlite/schema.cjs +13 -1
- package/dist/lib/sqlite/schema.d.cts +1 -1
- package/dist/lib/sqlite/schema.d.mts +1 -1
- package/dist/lib/sqlite/schema.mjs +13 -1
- package/package.json +1 -1
|
@@ -170,6 +170,42 @@ declare const issueStatuses: import("drizzle-orm/sqlite-core").SQLiteTableWithCo
|
|
|
170
170
|
}, {}, {
|
|
171
171
|
length: number | undefined;
|
|
172
172
|
}>;
|
|
173
|
+
allowedFrom: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
174
|
+
name: "allowed_from";
|
|
175
|
+
tableName: "issue_statuses";
|
|
176
|
+
dataType: "string";
|
|
177
|
+
columnType: "SQLiteText";
|
|
178
|
+
data: string;
|
|
179
|
+
driverParam: string;
|
|
180
|
+
notNull: false;
|
|
181
|
+
hasDefault: false;
|
|
182
|
+
isPrimaryKey: false;
|
|
183
|
+
isAutoincrement: false;
|
|
184
|
+
hasRuntimeDefault: false;
|
|
185
|
+
enumValues: [string, ...string[]];
|
|
186
|
+
baseColumn: never;
|
|
187
|
+
identity: undefined;
|
|
188
|
+
generated: undefined;
|
|
189
|
+
}, {}, {
|
|
190
|
+
length: number | undefined;
|
|
191
|
+
}>;
|
|
192
|
+
wipLimit: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
193
|
+
name: "wip_limit";
|
|
194
|
+
tableName: "issue_statuses";
|
|
195
|
+
dataType: "number";
|
|
196
|
+
columnType: "SQLiteInteger";
|
|
197
|
+
data: number;
|
|
198
|
+
driverParam: number;
|
|
199
|
+
notNull: false;
|
|
200
|
+
hasDefault: false;
|
|
201
|
+
isPrimaryKey: false;
|
|
202
|
+
isAutoincrement: false;
|
|
203
|
+
hasRuntimeDefault: false;
|
|
204
|
+
enumValues: undefined;
|
|
205
|
+
baseColumn: never;
|
|
206
|
+
identity: undefined;
|
|
207
|
+
generated: undefined;
|
|
208
|
+
}, {}, {}>;
|
|
173
209
|
};
|
|
174
210
|
dialect: 'sqlite';
|
|
175
211
|
}>;
|
|
@@ -1987,6 +2023,42 @@ declare const boardSqliteSchema: {
|
|
|
1987
2023
|
}, {}, {
|
|
1988
2024
|
length: number | undefined;
|
|
1989
2025
|
}>;
|
|
2026
|
+
allowedFrom: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2027
|
+
name: "allowed_from";
|
|
2028
|
+
tableName: "issue_statuses";
|
|
2029
|
+
dataType: "string";
|
|
2030
|
+
columnType: "SQLiteText";
|
|
2031
|
+
data: string;
|
|
2032
|
+
driverParam: string;
|
|
2033
|
+
notNull: false;
|
|
2034
|
+
hasDefault: false;
|
|
2035
|
+
isPrimaryKey: false;
|
|
2036
|
+
isAutoincrement: false;
|
|
2037
|
+
hasRuntimeDefault: false;
|
|
2038
|
+
enumValues: [string, ...string[]];
|
|
2039
|
+
baseColumn: never;
|
|
2040
|
+
identity: undefined;
|
|
2041
|
+
generated: undefined;
|
|
2042
|
+
}, {}, {
|
|
2043
|
+
length: number | undefined;
|
|
2044
|
+
}>;
|
|
2045
|
+
wipLimit: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2046
|
+
name: "wip_limit";
|
|
2047
|
+
tableName: "issue_statuses";
|
|
2048
|
+
dataType: "number";
|
|
2049
|
+
columnType: "SQLiteInteger";
|
|
2050
|
+
data: number;
|
|
2051
|
+
driverParam: number;
|
|
2052
|
+
notNull: false;
|
|
2053
|
+
hasDefault: false;
|
|
2054
|
+
isPrimaryKey: false;
|
|
2055
|
+
isAutoincrement: false;
|
|
2056
|
+
hasRuntimeDefault: false;
|
|
2057
|
+
enumValues: undefined;
|
|
2058
|
+
baseColumn: never;
|
|
2059
|
+
identity: undefined;
|
|
2060
|
+
generated: undefined;
|
|
2061
|
+
}, {}, {}>;
|
|
1990
2062
|
};
|
|
1991
2063
|
dialect: 'sqlite';
|
|
1992
2064
|
}>;
|
|
@@ -170,6 +170,42 @@ declare const issueStatuses: import("drizzle-orm/sqlite-core").SQLiteTableWithCo
|
|
|
170
170
|
}, {}, {
|
|
171
171
|
length: number | undefined;
|
|
172
172
|
}>;
|
|
173
|
+
allowedFrom: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
174
|
+
name: "allowed_from";
|
|
175
|
+
tableName: "issue_statuses";
|
|
176
|
+
dataType: "string";
|
|
177
|
+
columnType: "SQLiteText";
|
|
178
|
+
data: string;
|
|
179
|
+
driverParam: string;
|
|
180
|
+
notNull: false;
|
|
181
|
+
hasDefault: false;
|
|
182
|
+
isPrimaryKey: false;
|
|
183
|
+
isAutoincrement: false;
|
|
184
|
+
hasRuntimeDefault: false;
|
|
185
|
+
enumValues: [string, ...string[]];
|
|
186
|
+
baseColumn: never;
|
|
187
|
+
identity: undefined;
|
|
188
|
+
generated: undefined;
|
|
189
|
+
}, {}, {
|
|
190
|
+
length: number | undefined;
|
|
191
|
+
}>;
|
|
192
|
+
wipLimit: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
193
|
+
name: "wip_limit";
|
|
194
|
+
tableName: "issue_statuses";
|
|
195
|
+
dataType: "number";
|
|
196
|
+
columnType: "SQLiteInteger";
|
|
197
|
+
data: number;
|
|
198
|
+
driverParam: number;
|
|
199
|
+
notNull: false;
|
|
200
|
+
hasDefault: false;
|
|
201
|
+
isPrimaryKey: false;
|
|
202
|
+
isAutoincrement: false;
|
|
203
|
+
hasRuntimeDefault: false;
|
|
204
|
+
enumValues: undefined;
|
|
205
|
+
baseColumn: never;
|
|
206
|
+
identity: undefined;
|
|
207
|
+
generated: undefined;
|
|
208
|
+
}, {}, {}>;
|
|
173
209
|
};
|
|
174
210
|
dialect: 'sqlite';
|
|
175
211
|
}>;
|
|
@@ -1987,6 +2023,42 @@ declare const boardSqliteSchema: {
|
|
|
1987
2023
|
}, {}, {
|
|
1988
2024
|
length: number | undefined;
|
|
1989
2025
|
}>;
|
|
2026
|
+
allowedFrom: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2027
|
+
name: "allowed_from";
|
|
2028
|
+
tableName: "issue_statuses";
|
|
2029
|
+
dataType: "string";
|
|
2030
|
+
columnType: "SQLiteText";
|
|
2031
|
+
data: string;
|
|
2032
|
+
driverParam: string;
|
|
2033
|
+
notNull: false;
|
|
2034
|
+
hasDefault: false;
|
|
2035
|
+
isPrimaryKey: false;
|
|
2036
|
+
isAutoincrement: false;
|
|
2037
|
+
hasRuntimeDefault: false;
|
|
2038
|
+
enumValues: [string, ...string[]];
|
|
2039
|
+
baseColumn: never;
|
|
2040
|
+
identity: undefined;
|
|
2041
|
+
generated: undefined;
|
|
2042
|
+
}, {}, {
|
|
2043
|
+
length: number | undefined;
|
|
2044
|
+
}>;
|
|
2045
|
+
wipLimit: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2046
|
+
name: "wip_limit";
|
|
2047
|
+
tableName: "issue_statuses";
|
|
2048
|
+
dataType: "number";
|
|
2049
|
+
columnType: "SQLiteInteger";
|
|
2050
|
+
data: number;
|
|
2051
|
+
driverParam: number;
|
|
2052
|
+
notNull: false;
|
|
2053
|
+
hasDefault: false;
|
|
2054
|
+
isPrimaryKey: false;
|
|
2055
|
+
isAutoincrement: false;
|
|
2056
|
+
hasRuntimeDefault: false;
|
|
2057
|
+
enumValues: undefined;
|
|
2058
|
+
baseColumn: never;
|
|
2059
|
+
identity: undefined;
|
|
2060
|
+
generated: undefined;
|
|
2061
|
+
}, {}, {}>;
|
|
1990
2062
|
};
|
|
1991
2063
|
dialect: 'sqlite';
|
|
1992
2064
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_migrations_path = require("../migrations-path-DBCE17dT.cjs");
|
|
3
|
-
const require_migrate = require("../migrate-
|
|
3
|
+
const require_migrate = require("../migrate-BoGrqK9m.cjs");
|
|
4
4
|
const require_sqlite_schema = require("./schema.cjs");
|
|
5
5
|
exports.BOARD_SCHEMA_EPOCH = require_migrations_path.BOARD_SCHEMA_EPOCH;
|
|
6
6
|
exports.assertBoardSchema = require_migrate.assertBoardSchema;
|
|
@@ -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-
|
|
2
|
-
import {
|
|
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-Cwx3HosC.cjs";
|
|
2
|
+
import { l as BoardStore } from "../board-store-D2x2w1wG.cjs";
|
|
3
3
|
import { t as BOARD_SCHEMA_EPOCH } from "../schema-epoch-ZyumVL_A.cjs";
|
|
4
4
|
import { Database } from "better-sqlite3";
|
|
5
5
|
import { BetterSQLite3Database } from "drizzle-orm/better-sqlite3";
|
|
@@ -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-
|
|
2
|
-
import {
|
|
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-Cwx3HosC.mjs";
|
|
2
|
+
import { l as BoardStore } from "../board-store-DN5Y2U2y.mjs";
|
|
3
3
|
import { t as BOARD_SCHEMA_EPOCH } from "../schema-epoch-ZyumVL_A.mjs";
|
|
4
4
|
import { Database } from "better-sqlite3";
|
|
5
5
|
import { BetterSQLite3Database } from "drizzle-orm/better-sqlite3";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { r as BOARD_SCHEMA_EPOCH } from "../migrations-path-ClaYRNwk.mjs";
|
|
2
|
-
import { a as openBoardDatabase, i as markBoardFileOwnedByKanbo, l as createSqliteBoardStore, n as migrateBoardFile, o as readBoardFileContents, r as assertBoardSchema, s as readBoardFileOwner, t as getBoardSqliteMigrationsPath, u as runSqliteTransaction } from "../migrate-
|
|
2
|
+
import { a as openBoardDatabase, i as markBoardFileOwnedByKanbo, l as createSqliteBoardStore, n as migrateBoardFile, o as readBoardFileContents, r as assertBoardSchema, s as readBoardFileOwner, t as getBoardSqliteMigrationsPath, u as runSqliteTransaction } from "../migrate-BUsaTJlj.mjs";
|
|
3
3
|
import { boardSqliteSchema, issueComments, issueFieldChanges, issueMilestones, issueRelations, issueRuns, issueStatuses, issues, kanbanMeta } from "./schema.mjs";
|
|
4
4
|
export { BOARD_SCHEMA_EPOCH, assertBoardSchema, boardSqliteSchema, createSqliteBoardStore, getBoardSqliteMigrationsPath, issueComments, issueFieldChanges, issueMilestones, issueRelations, issueRuns, issueStatuses, issues, kanbanMeta, markBoardFileOwnedByKanbo, migrateBoardFile, openBoardDatabase, readBoardFileContents, readBoardFileOwner, runSqliteTransaction };
|
|
@@ -51,6 +51,14 @@ const issueStatuses = (0, drizzle_orm_sqlite_core.sqliteTable)("issue_statuses",
|
|
|
51
51
|
* through `readEntryRules`, never by hand.
|
|
52
52
|
*/
|
|
53
53
|
entryRules: (0, drizzle_orm_sqlite_core.text)("entry_rules"),
|
|
54
|
+
/**
|
|
55
|
+
* The columns a card may enter this one from — a JSON array of status ids;
|
|
56
|
+
* `null` for any column, `[]` for none (only a person puts a card here). Read
|
|
57
|
+
* it through `readFlowRules`, never by hand.
|
|
58
|
+
*/
|
|
59
|
+
allowedFrom: (0, drizzle_orm_sqlite_core.text)("allowed_from"),
|
|
60
|
+
/** The most cards this column holds, 1 or more; `null` for no limit. */
|
|
61
|
+
wipLimit: (0, drizzle_orm_sqlite_core.int)("wip_limit"),
|
|
54
62
|
...createdAt()
|
|
55
63
|
}, (table) => ({
|
|
56
64
|
byWorkspace: (0, drizzle_orm_sqlite_core.index)("issue_statuses_workspace_id_idx").on(table.workspaceId),
|
|
@@ -198,7 +206,11 @@ const issueFieldChanges = (0, drizzle_orm_sqlite_core.sqliteTable)("issue_field_
|
|
|
198
206
|
actorId: (0, drizzle_orm_sqlite_core.text)("actor_id"),
|
|
199
207
|
sourceChatSessionId: (0, drizzle_orm_sqlite_core.text)("source_chat_session_id"),
|
|
200
208
|
...createdAt()
|
|
201
|
-
}, (table) => ({
|
|
209
|
+
}, (table) => ({
|
|
210
|
+
byIssue: (0, drizzle_orm_sqlite_core.index)("issue_field_changes_issue_id_idx").on(table.issueId),
|
|
211
|
+
/** The column-entry feed reads one field across a board by time. */
|
|
212
|
+
byFieldCreatedAt: (0, drizzle_orm_sqlite_core.index)("issue_field_changes_field_created_at_idx").on(table.field, table.createdAt)
|
|
213
|
+
}));
|
|
202
214
|
/**
|
|
203
215
|
* A pull request someone said belongs to a card.
|
|
204
216
|
*
|
|
@@ -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-
|
|
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-Cwx3HosC.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-
|
|
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-Cwx3HosC.mjs";
|
|
2
2
|
export { Issue, IssueComment, IssueFieldChange, IssueMilestone, IssuePullRequest, IssueRelation, IssueRun, IssueStatus, KanbanMeta, boardSqliteSchema, issueComments, issueFieldChanges, issueMilestones, issuePullRequests, issueRelations, issueRuns, issueStatuses, issues, kanbanMeta };
|
|
@@ -50,6 +50,14 @@ const issueStatuses = sqliteTable("issue_statuses", {
|
|
|
50
50
|
* through `readEntryRules`, never by hand.
|
|
51
51
|
*/
|
|
52
52
|
entryRules: text("entry_rules"),
|
|
53
|
+
/**
|
|
54
|
+
* The columns a card may enter this one from — a JSON array of status ids;
|
|
55
|
+
* `null` for any column, `[]` for none (only a person puts a card here). Read
|
|
56
|
+
* it through `readFlowRules`, never by hand.
|
|
57
|
+
*/
|
|
58
|
+
allowedFrom: text("allowed_from"),
|
|
59
|
+
/** The most cards this column holds, 1 or more; `null` for no limit. */
|
|
60
|
+
wipLimit: int("wip_limit"),
|
|
53
61
|
...createdAt()
|
|
54
62
|
}, (table) => ({
|
|
55
63
|
byWorkspace: index("issue_statuses_workspace_id_idx").on(table.workspaceId),
|
|
@@ -197,7 +205,11 @@ const issueFieldChanges = sqliteTable("issue_field_changes", {
|
|
|
197
205
|
actorId: text("actor_id"),
|
|
198
206
|
sourceChatSessionId: text("source_chat_session_id"),
|
|
199
207
|
...createdAt()
|
|
200
|
-
}, (table) => ({
|
|
208
|
+
}, (table) => ({
|
|
209
|
+
byIssue: index("issue_field_changes_issue_id_idx").on(table.issueId),
|
|
210
|
+
/** The column-entry feed reads one field across a board by time. */
|
|
211
|
+
byFieldCreatedAt: index("issue_field_changes_field_created_at_idx").on(table.field, table.createdAt)
|
|
212
|
+
}));
|
|
201
213
|
/**
|
|
202
214
|
* A pull request someone said belongs to a card.
|
|
203
215
|
*
|