kanbo-cli 0.3.0 → 0.4.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 +29 -0
- package/README.md +2 -0
- package/dist/cli-main.cjs +628 -146
- package/dist/lib/index.cjs +1 -1
- package/dist/lib/index.d.cts +1 -1
- package/dist/lib/index.d.mts +1 -1
- package/dist/lib/index.mjs +1 -1
- package/dist/lib/{manifest-QPoQl8tn.cjs → manifest-DcIMYvWk.cjs} +673 -191
- package/dist/lib/{manifest-v2e9x_C8.mjs → manifest-Dmo6IlWk.mjs} +674 -192
- package/dist/lib/mcp/index.cjs +12 -3
- package/dist/lib/mcp/index.d.cts +4 -0
- package/dist/lib/mcp/index.d.mts +4 -0
- package/dist/lib/mcp/index.mjs +12 -3
- package/dist/page/board.css +1622 -327
- package/dist/page/board.js +2 -2
- package/package.json +1 -1
package/dist/lib/mcp/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_manifest = require("../manifest-
|
|
2
|
+
const require_manifest = require("../manifest-DcIMYvWk.cjs");
|
|
3
3
|
const require_migrations_path = require("../migrations-path-DBCE17dT.cjs");
|
|
4
4
|
let zod = require("zod");
|
|
5
5
|
//#region src/mcp/http-transport.ts
|
|
@@ -98,9 +98,15 @@ const ACTOR_KINDS = [
|
|
|
98
98
|
const CardCommentSchema = zod.z.object({
|
|
99
99
|
id: zod.z.string(),
|
|
100
100
|
authorKind: zod.z.string(),
|
|
101
|
+
authorId: zod.z.string().nullish(),
|
|
102
|
+
sourceChatSessionId: zod.z.string().nullish(),
|
|
101
103
|
content: zod.z.string(),
|
|
102
104
|
createdAt: zod.z.number()
|
|
103
|
-
})
|
|
105
|
+
}).transform((row) => ({
|
|
106
|
+
...row,
|
|
107
|
+
authorId: row.authorId ?? null,
|
|
108
|
+
sourceChatSessionId: row.sourceChatSessionId ?? null
|
|
109
|
+
}));
|
|
104
110
|
const FieldChangeSchema = zod.z.object({
|
|
105
111
|
field: zod.z.string(),
|
|
106
112
|
fromValue: zod.z.string().nullable(),
|
|
@@ -268,7 +274,10 @@ function createHttpTransport(input) {
|
|
|
268
274
|
...parent !== void 0 ? { parentIssueId: parent } : {},
|
|
269
275
|
...executionMode !== void 0 ? { executionMode } : {}
|
|
270
276
|
})),
|
|
271
|
-
cardUpdate: async ({ card, ...patch }) => await projectOne(await request("PATCH", `/issues/${encodeURIComponent(card)}`,
|
|
277
|
+
cardUpdate: async ({ card, parent, ...patch }) => await projectOne(await request("PATCH", `/issues/${encodeURIComponent(card)}`, {
|
|
278
|
+
...patch,
|
|
279
|
+
...parent !== void 0 ? { parentIssueId: parent } : {}
|
|
280
|
+
})),
|
|
272
281
|
cardMove: async ({ card, column }) => await projectOne(await request("PATCH", `/issues/${encodeURIComponent(card)}/status/${encodeURIComponent(column)}`)),
|
|
273
282
|
cardComment: async ({ card, content }) => CommentSchema.parse(await request("POST", `/issues/${encodeURIComponent(card)}/comments`, { content })),
|
|
274
283
|
cardLinkPullRequest: async ({ card, url }) => require_manifest.projectKanboPullRequest(PullRequestSchema.parse(await request("POST", `/issues/${encodeURIComponent(card)}/pull-requests`, { url }))),
|
package/dist/lib/mcp/index.d.cts
CHANGED
|
@@ -73,6 +73,8 @@ interface KanboCardDetailResult extends KanboCardResult {
|
|
|
73
73
|
interface KanboCardCommentResult {
|
|
74
74
|
id: string;
|
|
75
75
|
author: IssueActorKind;
|
|
76
|
+
/** The name behind it: a person's or an agent's id, an outside writer's name, `kanbo` for the board's own lines. */
|
|
77
|
+
by: string;
|
|
76
78
|
content: string;
|
|
77
79
|
createdAt: number;
|
|
78
80
|
}
|
|
@@ -216,6 +218,8 @@ interface KanboCardUpdateInput {
|
|
|
216
218
|
priority?: Issue['priority'];
|
|
217
219
|
labels?: string[];
|
|
218
220
|
executionMode?: Issue['executionMode'];
|
|
221
|
+
/** The card to put this one under; `null` makes it a top-level card, and absent leaves it where it is. */
|
|
222
|
+
parent?: string | null;
|
|
219
223
|
}
|
|
220
224
|
/** What `kanbo_run_start` records about a launch. */
|
|
221
225
|
interface KanboRunStartInput {
|
package/dist/lib/mcp/index.d.mts
CHANGED
|
@@ -73,6 +73,8 @@ interface KanboCardDetailResult extends KanboCardResult {
|
|
|
73
73
|
interface KanboCardCommentResult {
|
|
74
74
|
id: string;
|
|
75
75
|
author: IssueActorKind;
|
|
76
|
+
/** The name behind it: a person's or an agent's id, an outside writer's name, `kanbo` for the board's own lines. */
|
|
77
|
+
by: string;
|
|
76
78
|
content: string;
|
|
77
79
|
createdAt: number;
|
|
78
80
|
}
|
|
@@ -216,6 +218,8 @@ interface KanboCardUpdateInput {
|
|
|
216
218
|
priority?: Issue['priority'];
|
|
217
219
|
labels?: string[];
|
|
218
220
|
executionMode?: Issue['executionMode'];
|
|
221
|
+
/** The card to put this one under; `null` makes it a top-level card, and absent leaves it where it is. */
|
|
222
|
+
parent?: string | null;
|
|
219
223
|
}
|
|
220
224
|
/** What `kanbo_run_start` records about a launch. */
|
|
221
225
|
interface KanboRunStartInput {
|
package/dist/lib/mcp/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as projectKanboSprint, C as pageOf, D as projectKanboFieldChange, E as projectKanboColumn, O as projectKanboPullRequest, S as matchesKanboCardQuery, T as projectKanboCardComment, b as DEFAULT_KANBO_COMMENT_LIMIT, c as registerKanboTools, d as KANBO_MCP_INSTRUCTIONS, f as KANBO_CAPABILITIES_MARKDOWN_RESOURCE_URI, i as KANBO_TOOL_NAMES, it as normalizeStatusName, j as projectKanboSubCard, k as projectKanboRun, l as KANBO_TOOLS, m as registerKanboCapabilitiesResources, o as KANBO_MCP_SERVER_NAME, p as KANBO_CAPABILITIES_RESOURCE_URI, r as KANBO_TOOL_CLI_EQUIVALENTS, s as createKanboMcpServer, st as previewComment, u as buildKanboTools, w as projectKanboCard, x as KANBO_CARD_INCLUDES, y as DEFAULT_KANBO_CARD_INCLUDES } from "../manifest-
|
|
1
|
+
import { A as projectKanboSprint, C as pageOf, D as projectKanboFieldChange, E as projectKanboColumn, O as projectKanboPullRequest, S as matchesKanboCardQuery, T as projectKanboCardComment, b as DEFAULT_KANBO_COMMENT_LIMIT, c as registerKanboTools, d as KANBO_MCP_INSTRUCTIONS, f as KANBO_CAPABILITIES_MARKDOWN_RESOURCE_URI, i as KANBO_TOOL_NAMES, it as normalizeStatusName, j as projectKanboSubCard, k as projectKanboRun, l as KANBO_TOOLS, m as registerKanboCapabilitiesResources, o as KANBO_MCP_SERVER_NAME, p as KANBO_CAPABILITIES_RESOURCE_URI, r as KANBO_TOOL_CLI_EQUIVALENTS, s as createKanboMcpServer, st as previewComment, u as buildKanboTools, w as projectKanboCard, x as KANBO_CARD_INCLUDES, y as DEFAULT_KANBO_CARD_INCLUDES } from "../manifest-Dmo6IlWk.mjs";
|
|
2
2
|
import { a as BoardError } from "../migrations-path-ClaYRNwk.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/mcp/http-transport.ts
|
|
@@ -97,9 +97,15 @@ const ACTOR_KINDS = [
|
|
|
97
97
|
const CardCommentSchema = z.object({
|
|
98
98
|
id: z.string(),
|
|
99
99
|
authorKind: z.string(),
|
|
100
|
+
authorId: z.string().nullish(),
|
|
101
|
+
sourceChatSessionId: z.string().nullish(),
|
|
100
102
|
content: z.string(),
|
|
101
103
|
createdAt: z.number()
|
|
102
|
-
})
|
|
104
|
+
}).transform((row) => ({
|
|
105
|
+
...row,
|
|
106
|
+
authorId: row.authorId ?? null,
|
|
107
|
+
sourceChatSessionId: row.sourceChatSessionId ?? null
|
|
108
|
+
}));
|
|
103
109
|
const FieldChangeSchema = z.object({
|
|
104
110
|
field: z.string(),
|
|
105
111
|
fromValue: z.string().nullable(),
|
|
@@ -267,7 +273,10 @@ function createHttpTransport(input) {
|
|
|
267
273
|
...parent !== void 0 ? { parentIssueId: parent } : {},
|
|
268
274
|
...executionMode !== void 0 ? { executionMode } : {}
|
|
269
275
|
})),
|
|
270
|
-
cardUpdate: async ({ card, ...patch }) => await projectOne(await request("PATCH", `/issues/${encodeURIComponent(card)}`,
|
|
276
|
+
cardUpdate: async ({ card, parent, ...patch }) => await projectOne(await request("PATCH", `/issues/${encodeURIComponent(card)}`, {
|
|
277
|
+
...patch,
|
|
278
|
+
...parent !== void 0 ? { parentIssueId: parent } : {}
|
|
279
|
+
})),
|
|
271
280
|
cardMove: async ({ card, column }) => await projectOne(await request("PATCH", `/issues/${encodeURIComponent(card)}/status/${encodeURIComponent(column)}`)),
|
|
272
281
|
cardComment: async ({ card, content }) => CommentSchema.parse(await request("POST", `/issues/${encodeURIComponent(card)}/comments`, { content })),
|
|
273
282
|
cardLinkPullRequest: async ({ card, url }) => projectKanboPullRequest(PullRequestSchema.parse(await request("POST", `/issues/${encodeURIComponent(card)}/pull-requests`, { url }))),
|