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
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-CmiuDqH-.cjs");
|
|
3
3
|
const require_migrations_path = require("../migrations-path-CZxVOgeD.cjs");
|
|
4
4
|
let zod = require("zod");
|
|
5
5
|
//#region src/mcp/http-transport.ts
|
|
@@ -171,6 +171,7 @@ function createHttpTransport(input) {
|
|
|
171
171
|
//#endregion
|
|
172
172
|
exports.KANBO_CAPABILITIES_MARKDOWN_RESOURCE_URI = require_manifest.KANBO_CAPABILITIES_MARKDOWN_RESOURCE_URI;
|
|
173
173
|
exports.KANBO_CAPABILITIES_RESOURCE_URI = require_manifest.KANBO_CAPABILITIES_RESOURCE_URI;
|
|
174
|
+
exports.KANBO_MCP_INSTRUCTIONS = require_manifest.KANBO_MCP_INSTRUCTIONS;
|
|
174
175
|
exports.KANBO_MCP_SERVER_NAME = require_manifest.KANBO_MCP_SERVER_NAME;
|
|
175
176
|
exports.KANBO_TOOLS = require_manifest.KANBO_TOOLS;
|
|
176
177
|
exports.KANBO_TOOL_CLI_EQUIVALENTS = require_manifest.KANBO_TOOL_CLI_EQUIVALENTS;
|
package/dist/lib/mcp/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as IssueRun, t as Issue } from "../schema-
|
|
2
|
-
import { i as KanboToolName, n as KANBO_TOOL_NAMES, r as KanboToolCliEquivalent, s as EntryRule, t as KANBO_TOOL_CLI_EQUIVALENTS } from "../tool-names-
|
|
1
|
+
import { s as IssueRun, t as Issue } from "../schema-D0MyXcej.cjs";
|
|
2
|
+
import { i as KanboToolName, n as KANBO_TOOL_NAMES, r as KanboToolCliEquivalent, s as EntryRule, t as KANBO_TOOL_CLI_EQUIVALENTS } from "../tool-names-WfH4IURz.cjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
5
5
|
import { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
|
|
@@ -233,13 +233,27 @@ interface KanboHttpTransportInput {
|
|
|
233
233
|
*/
|
|
234
234
|
workspaceId: () => string;
|
|
235
235
|
}
|
|
236
|
-
declare function createHttpTransport(input: KanboHttpTransportInput): KanboToolTransport;
|
|
236
|
+
export declare function createHttpTransport(input: KanboHttpTransportInput): KanboToolTransport;
|
|
237
|
+
//#endregion
|
|
238
|
+
//#region src/mcp/instructions.d.ts
|
|
239
|
+
/**
|
|
240
|
+
* What `kanbo mcp` tells a client when it connects — the `instructions` of the
|
|
241
|
+
* MCP initialize result, which a client hands its model before any tool is
|
|
242
|
+
* called. An agent with nothing but this server connected learns from it how
|
|
243
|
+
* to work the board, with no instruction file in the project.
|
|
244
|
+
*
|
|
245
|
+
* Static on purpose: it is sent before any board is resolved, so it says
|
|
246
|
+
* nothing about columns — `kanbo_prime` returns those. The rules are the
|
|
247
|
+
* sentences `ops/agent-rules.ts` holds for every surface, with the tool beside
|
|
248
|
+
* each; the full manifest stays a resource.
|
|
249
|
+
*/
|
|
250
|
+
export declare const KANBO_MCP_INSTRUCTIONS: string;
|
|
237
251
|
//#endregion
|
|
238
252
|
//#region src/mcp/resources.d.ts
|
|
239
253
|
/** The URI a client reads the manifest as JSON from. */
|
|
240
|
-
declare const KANBO_CAPABILITIES_RESOURCE_URI = "kanbo://capabilities";
|
|
254
|
+
export declare const KANBO_CAPABILITIES_RESOURCE_URI = "kanbo://capabilities";
|
|
241
255
|
/** The URI a client reads the same manifest from, laid out as Markdown. */
|
|
242
|
-
declare const KANBO_CAPABILITIES_MARKDOWN_RESOURCE_URI = "kanbo://capabilities.md";
|
|
256
|
+
export declare const KANBO_CAPABILITIES_MARKDOWN_RESOURCE_URI = "kanbo://capabilities.md";
|
|
243
257
|
/**
|
|
244
258
|
* The board's own capabilities manifest, as two MCP resources rather than a
|
|
245
259
|
* tool: a client reads it once, before it ever calls a board tool, to learn
|
|
@@ -253,7 +267,7 @@ declare const KANBO_CAPABILITIES_MARKDOWN_RESOURCE_URI = "kanbo://capabilities.m
|
|
|
253
267
|
* with no server around it still gets the manifest from the one server it is
|
|
254
268
|
* talking to.
|
|
255
269
|
*/
|
|
256
|
-
declare function registerKanboCapabilitiesResources(server: McpServer): void;
|
|
270
|
+
export declare function registerKanboCapabilitiesResources(server: McpServer): void;
|
|
257
271
|
//#endregion
|
|
258
272
|
//#region src/mcp/tools/tool.d.ts
|
|
259
273
|
/**
|
|
@@ -297,7 +311,7 @@ interface KanboTool {
|
|
|
297
311
|
* whether they run against a server or against the board directly, and the
|
|
298
312
|
* only thing a host decides is which of them it publishes.
|
|
299
313
|
*/
|
|
300
|
-
declare const KANBO_TOOLS: readonly KanboTool[];
|
|
314
|
+
export declare const KANBO_TOOLS: readonly KanboTool[];
|
|
301
315
|
/** What a host decides about the board's tools. */
|
|
302
316
|
interface KanboToolOptions {
|
|
303
317
|
/** Publish `kanbo_run_start` and `kanbo_run_finish`. False for a host that manages runs itself. */
|
|
@@ -315,11 +329,11 @@ interface KanboToolRegistration {
|
|
|
315
329
|
* to publish the tool, and the transport is only called when a client actually
|
|
316
330
|
* calls one.
|
|
317
331
|
*/
|
|
318
|
-
declare function buildKanboTools(transport: KanboToolTransport, options: KanboToolOptions): KanboToolRegistration[];
|
|
332
|
+
export declare function buildKanboTools(transport: KanboToolTransport, options: KanboToolOptions): KanboToolRegistration[];
|
|
319
333
|
//#endregion
|
|
320
334
|
//#region src/mcp/server.d.ts
|
|
321
335
|
/** The name a client sees this server under. */
|
|
322
|
-
declare const KANBO_MCP_SERVER_NAME = "kanbo";
|
|
336
|
+
export declare const KANBO_MCP_SERVER_NAME = "kanbo";
|
|
323
337
|
/**
|
|
324
338
|
* Add the board's tools to a server that already exists.
|
|
325
339
|
*
|
|
@@ -327,7 +341,7 @@ declare const KANBO_MCP_SERVER_NAME = "kanbo";
|
|
|
327
341
|
* tool an agent has, and the board's are part of that inventory rather than a
|
|
328
342
|
* second server the runtime would have to be told about.
|
|
329
343
|
*/
|
|
330
|
-
declare function registerKanboTools(server: McpServer, transport: KanboToolTransport, options: KanboToolOptions): void;
|
|
344
|
+
export declare function registerKanboTools(server: McpServer, transport: KanboToolTransport, options: KanboToolOptions): void;
|
|
331
345
|
/**
|
|
332
346
|
* A server that is only the board — what `kanbo mcp` serves to a client that
|
|
333
347
|
* brings no board tools of its own: an editor, an agent CLI, another machine.
|
|
@@ -339,8 +353,11 @@ declare function registerKanboTools(server: McpServer, transport: KanboToolTrans
|
|
|
339
353
|
* function: it documents its capabilities its own way, and adding a second
|
|
340
354
|
* `kanbo://` resource namespace to an inventory that is not only the board's
|
|
341
355
|
* is a decision for that server to make, not this one.
|
|
356
|
+
*
|
|
357
|
+
* For the same reason it alone sends `KANBO_MCP_INSTRUCTIONS` in the initialize
|
|
358
|
+
* result: the instructions of a server that is only the board.
|
|
342
359
|
*/
|
|
343
|
-
declare function createKanboMcpServer(transport: KanboToolTransport, options: KanboToolOptions): McpServer;
|
|
360
|
+
export declare function createKanboMcpServer(transport: KanboToolTransport, options: KanboToolOptions): McpServer;
|
|
344
361
|
//#endregion
|
|
345
|
-
export {
|
|
362
|
+
export { KANBO_TOOL_CLI_EQUIVALENTS, KANBO_TOOL_NAMES, type KanboActiveRunResult, type KanboCardResult, type KanboColumnResult, type KanboCommentResult, type KanboHttpRequest, type KanboHttpTransportInput, type KanboPullRequestResult, type KanboRunResult, type KanboTool, type KanboToolCliEquivalent, type KanboToolName, type KanboToolOptions, type KanboToolRegistration, type KanboToolResult, type KanboToolTransport };
|
|
346
363
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/lib/mcp/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as IssueRun, t as Issue } from "../schema-
|
|
2
|
-
import { i as KanboToolName, n as KANBO_TOOL_NAMES, r as KanboToolCliEquivalent, s as EntryRule, t as KANBO_TOOL_CLI_EQUIVALENTS } from "../tool-names-
|
|
1
|
+
import { s as IssueRun, t as Issue } from "../schema-D0MyXcej.mjs";
|
|
2
|
+
import { i as KanboToolName, n as KANBO_TOOL_NAMES, r as KanboToolCliEquivalent, s as EntryRule, t as KANBO_TOOL_CLI_EQUIVALENTS } from "../tool-names-3q_GEZej.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
5
5
|
import { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
|
|
@@ -233,13 +233,27 @@ interface KanboHttpTransportInput {
|
|
|
233
233
|
*/
|
|
234
234
|
workspaceId: () => string;
|
|
235
235
|
}
|
|
236
|
-
declare function createHttpTransport(input: KanboHttpTransportInput): KanboToolTransport;
|
|
236
|
+
export declare function createHttpTransport(input: KanboHttpTransportInput): KanboToolTransport;
|
|
237
|
+
//#endregion
|
|
238
|
+
//#region src/mcp/instructions.d.ts
|
|
239
|
+
/**
|
|
240
|
+
* What `kanbo mcp` tells a client when it connects — the `instructions` of the
|
|
241
|
+
* MCP initialize result, which a client hands its model before any tool is
|
|
242
|
+
* called. An agent with nothing but this server connected learns from it how
|
|
243
|
+
* to work the board, with no instruction file in the project.
|
|
244
|
+
*
|
|
245
|
+
* Static on purpose: it is sent before any board is resolved, so it says
|
|
246
|
+
* nothing about columns — `kanbo_prime` returns those. The rules are the
|
|
247
|
+
* sentences `ops/agent-rules.ts` holds for every surface, with the tool beside
|
|
248
|
+
* each; the full manifest stays a resource.
|
|
249
|
+
*/
|
|
250
|
+
export declare const KANBO_MCP_INSTRUCTIONS: string;
|
|
237
251
|
//#endregion
|
|
238
252
|
//#region src/mcp/resources.d.ts
|
|
239
253
|
/** The URI a client reads the manifest as JSON from. */
|
|
240
|
-
declare const KANBO_CAPABILITIES_RESOURCE_URI = "kanbo://capabilities";
|
|
254
|
+
export declare const KANBO_CAPABILITIES_RESOURCE_URI = "kanbo://capabilities";
|
|
241
255
|
/** The URI a client reads the same manifest from, laid out as Markdown. */
|
|
242
|
-
declare const KANBO_CAPABILITIES_MARKDOWN_RESOURCE_URI = "kanbo://capabilities.md";
|
|
256
|
+
export declare const KANBO_CAPABILITIES_MARKDOWN_RESOURCE_URI = "kanbo://capabilities.md";
|
|
243
257
|
/**
|
|
244
258
|
* The board's own capabilities manifest, as two MCP resources rather than a
|
|
245
259
|
* tool: a client reads it once, before it ever calls a board tool, to learn
|
|
@@ -253,7 +267,7 @@ declare const KANBO_CAPABILITIES_MARKDOWN_RESOURCE_URI = "kanbo://capabilities.m
|
|
|
253
267
|
* with no server around it still gets the manifest from the one server it is
|
|
254
268
|
* talking to.
|
|
255
269
|
*/
|
|
256
|
-
declare function registerKanboCapabilitiesResources(server: McpServer): void;
|
|
270
|
+
export declare function registerKanboCapabilitiesResources(server: McpServer): void;
|
|
257
271
|
//#endregion
|
|
258
272
|
//#region src/mcp/tools/tool.d.ts
|
|
259
273
|
/**
|
|
@@ -297,7 +311,7 @@ interface KanboTool {
|
|
|
297
311
|
* whether they run against a server or against the board directly, and the
|
|
298
312
|
* only thing a host decides is which of them it publishes.
|
|
299
313
|
*/
|
|
300
|
-
declare const KANBO_TOOLS: readonly KanboTool[];
|
|
314
|
+
export declare const KANBO_TOOLS: readonly KanboTool[];
|
|
301
315
|
/** What a host decides about the board's tools. */
|
|
302
316
|
interface KanboToolOptions {
|
|
303
317
|
/** Publish `kanbo_run_start` and `kanbo_run_finish`. False for a host that manages runs itself. */
|
|
@@ -315,11 +329,11 @@ interface KanboToolRegistration {
|
|
|
315
329
|
* to publish the tool, and the transport is only called when a client actually
|
|
316
330
|
* calls one.
|
|
317
331
|
*/
|
|
318
|
-
declare function buildKanboTools(transport: KanboToolTransport, options: KanboToolOptions): KanboToolRegistration[];
|
|
332
|
+
export declare function buildKanboTools(transport: KanboToolTransport, options: KanboToolOptions): KanboToolRegistration[];
|
|
319
333
|
//#endregion
|
|
320
334
|
//#region src/mcp/server.d.ts
|
|
321
335
|
/** The name a client sees this server under. */
|
|
322
|
-
declare const KANBO_MCP_SERVER_NAME = "kanbo";
|
|
336
|
+
export declare const KANBO_MCP_SERVER_NAME = "kanbo";
|
|
323
337
|
/**
|
|
324
338
|
* Add the board's tools to a server that already exists.
|
|
325
339
|
*
|
|
@@ -327,7 +341,7 @@ declare const KANBO_MCP_SERVER_NAME = "kanbo";
|
|
|
327
341
|
* tool an agent has, and the board's are part of that inventory rather than a
|
|
328
342
|
* second server the runtime would have to be told about.
|
|
329
343
|
*/
|
|
330
|
-
declare function registerKanboTools(server: McpServer, transport: KanboToolTransport, options: KanboToolOptions): void;
|
|
344
|
+
export declare function registerKanboTools(server: McpServer, transport: KanboToolTransport, options: KanboToolOptions): void;
|
|
331
345
|
/**
|
|
332
346
|
* A server that is only the board — what `kanbo mcp` serves to a client that
|
|
333
347
|
* brings no board tools of its own: an editor, an agent CLI, another machine.
|
|
@@ -339,8 +353,11 @@ declare function registerKanboTools(server: McpServer, transport: KanboToolTrans
|
|
|
339
353
|
* function: it documents its capabilities its own way, and adding a second
|
|
340
354
|
* `kanbo://` resource namespace to an inventory that is not only the board's
|
|
341
355
|
* is a decision for that server to make, not this one.
|
|
356
|
+
*
|
|
357
|
+
* For the same reason it alone sends `KANBO_MCP_INSTRUCTIONS` in the initialize
|
|
358
|
+
* result: the instructions of a server that is only the board.
|
|
342
359
|
*/
|
|
343
|
-
declare function createKanboMcpServer(transport: KanboToolTransport, options: KanboToolOptions): McpServer;
|
|
360
|
+
export declare function createKanboMcpServer(transport: KanboToolTransport, options: KanboToolOptions): McpServer;
|
|
344
361
|
//#endregion
|
|
345
|
-
export {
|
|
362
|
+
export { KANBO_TOOL_CLI_EQUIVALENTS, KANBO_TOOL_NAMES, type KanboActiveRunResult, type KanboCardResult, type KanboColumnResult, type KanboCommentResult, type KanboHttpRequest, type KanboHttpTransportInput, type KanboPullRequestResult, type KanboRunResult, type KanboTool, type KanboToolCliEquivalent, type KanboToolName, type KanboToolOptions, type KanboToolRegistration, type KanboToolResult, type KanboToolTransport };
|
|
346
363
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/lib/mcp/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { G as normalizeStatusName, _ as projectKanboPullRequest, b as projectKanboSubCard, c as registerKanboTools, d as KANBO_MCP_INSTRUCTIONS, f as KANBO_CAPABILITIES_MARKDOWN_RESOURCE_URI, g as projectKanboColumn, h as projectKanboCard, i as KANBO_TOOL_NAMES, 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, u as buildKanboTools, v as projectKanboRun, y as projectKanboSprint } from "../manifest-NRhhhOkC.mjs";
|
|
2
2
|
import { a as BoardError } from "../migrations-path-Ciwan537.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/mcp/http-transport.ts
|
|
@@ -168,6 +168,6 @@ function createHttpTransport(input) {
|
|
|
168
168
|
};
|
|
169
169
|
}
|
|
170
170
|
//#endregion
|
|
171
|
-
export { KANBO_CAPABILITIES_MARKDOWN_RESOURCE_URI, KANBO_CAPABILITIES_RESOURCE_URI, KANBO_MCP_SERVER_NAME, KANBO_TOOLS, KANBO_TOOL_CLI_EQUIVALENTS, KANBO_TOOL_NAMES, buildKanboTools, createHttpTransport, createKanboMcpServer, registerKanboCapabilitiesResources, registerKanboTools };
|
|
171
|
+
export { KANBO_CAPABILITIES_MARKDOWN_RESOURCE_URI, KANBO_CAPABILITIES_RESOURCE_URI, KANBO_MCP_INSTRUCTIONS, KANBO_MCP_SERVER_NAME, KANBO_TOOLS, KANBO_TOOL_CLI_EQUIVALENTS, KANBO_TOOL_NAMES, buildKanboTools, createHttpTransport, createKanboMcpServer, registerKanboCapabilitiesResources, registerKanboTools };
|
|
172
172
|
|
|
173
173
|
//# sourceMappingURL=index.mjs.map
|