kanbo-cli 0.6.0 → 0.8.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 +47 -0
- package/README.md +8 -7
- package/dist/cli-main.cjs +3937 -5194
- package/dist/lib/{approval-CnJJfwfi.d.mts → approval-CDiZbegu.d.mts} +20 -31
- package/dist/lib/{approval-DNfUhYD5.d.cts → approval-Nmk8UDPy.d.cts} +20 -31
- package/dist/lib/index.cjs +65 -66
- package/dist/lib/index.d.cts +5 -8
- package/dist/lib/index.d.mts +5 -8
- package/dist/lib/index.mjs +2 -2
- package/dist/lib/mcp/index.cjs +39 -40
- package/dist/lib/mcp/index.d.cts +3 -3
- package/dist/lib/mcp/index.d.mts +3 -3
- package/dist/lib/mcp/index.mjs +2 -2
- package/dist/lib/{manifest-BFI4HGPh.cjs → tool-names-BOUJas7m.cjs} +1006 -2259
- package/dist/lib/{manifest-DHI1fkoW.mjs → tool-names-CrvHZ-ON.mjs} +1009 -2256
- package/dist/page/board.css +2058 -842
- package/dist/page/board.js +5 -2
- package/dist/page/fonts/LICENSE +93 -0
- package/dist/page/fonts/geist-cyrillic-wght-normal.woff2 +0 -0
- package/dist/page/fonts/geist-latin-ext-wght-normal.woff2 +0 -0
- package/dist/page/fonts/geist-latin-wght-normal.woff2 +0 -0
- package/package.json +1 -1
|
@@ -102,36 +102,6 @@ declare function evaluateEntryRules(card: {
|
|
|
102
102
|
/** What `ENTRY_RULES` each mean, in the words the prime text and the manifest use. */
|
|
103
103
|
declare const ENTRY_RULE_DESCRIPTIONS: Record<EntryRule, string>;
|
|
104
104
|
//#endregion
|
|
105
|
-
//#region src/mcp/tool-names.d.ts
|
|
106
|
-
/**
|
|
107
|
-
* The board's tools, named once.
|
|
108
|
-
*
|
|
109
|
-
* An agent reaches this board through an MCP server, through a command line, or
|
|
110
|
-
* through an HTTP API (`kanbo serve`, or an app that serves the same routes),
|
|
111
|
-
* and the three must agree on what the board can be asked to do. The names live
|
|
112
|
-
* here rather than in the MCP server so that a prompt built for an agent and the
|
|
113
|
-
* tools that agent actually holds cannot drift apart: both read this list.
|
|
114
|
-
*
|
|
115
|
-
* Nothing here executes anything. These are names and the commands that mean
|
|
116
|
-
* the same thing, for a prompt and for documentation.
|
|
117
|
-
*/
|
|
118
|
-
declare const KANBO_TOOL_NAMES: readonly ['kanbo_prime', 'kanbo_ready', 'kanbo_card_claim', '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'];
|
|
119
|
-
/** One of the board's tools. */
|
|
120
|
-
type KanboToolName = typeof KANBO_TOOL_NAMES[number];
|
|
121
|
-
/** The command line that does what a tool does. */
|
|
122
|
-
interface KanboToolCliEquivalent {
|
|
123
|
-
/** The `kanbo` command, which needs no server. */
|
|
124
|
-
kanbo: string;
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* What to type instead of calling the tool.
|
|
128
|
-
*
|
|
129
|
-
* An agent without MCP tools is not shut out of the board: every tool has a
|
|
130
|
-
* command that does the same thing, and the card ends up saying the same
|
|
131
|
-
* either way, because both call the same operations.
|
|
132
|
-
*/
|
|
133
|
-
declare const KANBO_TOOL_CLI_EQUIVALENTS: Record<KanboToolName, KanboToolCliEquivalent>;
|
|
134
|
-
//#endregion
|
|
135
105
|
//#region src/domain/issue-view.d.ts
|
|
136
106
|
/** An issue row with its `labels` column decoded from JSON. */
|
|
137
107
|
type IssueView = Omit<Issue, 'labels'> & {
|
|
@@ -177,6 +147,25 @@ declare function isOutsideWriter(provenance: IssueWriterProvenance): provenance
|
|
|
177
147
|
authorId: string;
|
|
178
148
|
};
|
|
179
149
|
//#endregion
|
|
150
|
+
//#region src/mcp/tool-names.d.ts
|
|
151
|
+
/**
|
|
152
|
+
* The board's tools, named once.
|
|
153
|
+
*
|
|
154
|
+
* An agent reaches this board through an MCP server, or through an HTTP API
|
|
155
|
+
* (`kanbo serve`, or an app that serves the same routes), and both must agree on
|
|
156
|
+
* what the board can be asked to do. The names are read by the MCP server, by
|
|
157
|
+
* the prompts built for an agent and by the HTTP API — there is no command line
|
|
158
|
+
* for an agent. They live here rather than in the MCP server so that a prompt
|
|
159
|
+
* built for an agent and the tools that agent actually holds cannot drift
|
|
160
|
+
* apart: both read this list.
|
|
161
|
+
*
|
|
162
|
+
* Nothing here executes anything. These are names, for a prompt and for
|
|
163
|
+
* documentation.
|
|
164
|
+
*/
|
|
165
|
+
declare const KANBO_TOOL_NAMES: readonly ['kanbo_prime', 'kanbo_ready', 'kanbo_card_claim', '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'];
|
|
166
|
+
/** One of the board's tools. */
|
|
167
|
+
type KanboToolName = typeof KANBO_TOOL_NAMES[number];
|
|
168
|
+
//#endregion
|
|
180
169
|
//#region src/ops/approval.d.ts
|
|
181
170
|
/** Where a card stands with the person who has to approve it. */
|
|
182
171
|
interface BoardApproval {
|
|
@@ -202,4 +191,4 @@ interface CardAttention {
|
|
|
202
191
|
lastComment: CardLastComment | null;
|
|
203
192
|
}
|
|
204
193
|
//#endregion
|
|
205
|
-
export {
|
|
194
|
+
export { ColumnFlowRules as C, readFlowRules as E, serializeEntryRules as S, FlowRule as T, UNMET_ENTRY_RULE_REASONS as _, KanboToolName as a, readChecklist as b, IssueView as c, normalizeCommentAuthorKind as d, toIssueView as f, EntryRuleFacts as g, EntryRule as h, KANBO_TOOL_NAMES as i, IssueWriterProvenance as l, ENTRY_RULE_DESCRIPTIONS as m, CardAttention as n, IssueActorKind as o, ENTRY_RULES as p, CardLastComment as r, IssueActorReference as s, BoardApproval as t, isOutsideWriter as u, UnmetEntryRule as v, FLOW_RULES as w, readEntryRules as x, evaluateEntryRules as y };
|
|
@@ -102,36 +102,6 @@ declare function evaluateEntryRules(card: {
|
|
|
102
102
|
/** What `ENTRY_RULES` each mean, in the words the prime text and the manifest use. */
|
|
103
103
|
declare const ENTRY_RULE_DESCRIPTIONS: Record<EntryRule, string>;
|
|
104
104
|
//#endregion
|
|
105
|
-
//#region src/mcp/tool-names.d.ts
|
|
106
|
-
/**
|
|
107
|
-
* The board's tools, named once.
|
|
108
|
-
*
|
|
109
|
-
* An agent reaches this board through an MCP server, through a command line, or
|
|
110
|
-
* through an HTTP API (`kanbo serve`, or an app that serves the same routes),
|
|
111
|
-
* and the three must agree on what the board can be asked to do. The names live
|
|
112
|
-
* here rather than in the MCP server so that a prompt built for an agent and the
|
|
113
|
-
* tools that agent actually holds cannot drift apart: both read this list.
|
|
114
|
-
*
|
|
115
|
-
* Nothing here executes anything. These are names and the commands that mean
|
|
116
|
-
* the same thing, for a prompt and for documentation.
|
|
117
|
-
*/
|
|
118
|
-
declare const KANBO_TOOL_NAMES: readonly ['kanbo_prime', 'kanbo_ready', 'kanbo_card_claim', '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'];
|
|
119
|
-
/** One of the board's tools. */
|
|
120
|
-
type KanboToolName = typeof KANBO_TOOL_NAMES[number];
|
|
121
|
-
/** The command line that does what a tool does. */
|
|
122
|
-
interface KanboToolCliEquivalent {
|
|
123
|
-
/** The `kanbo` command, which needs no server. */
|
|
124
|
-
kanbo: string;
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* What to type instead of calling the tool.
|
|
128
|
-
*
|
|
129
|
-
* An agent without MCP tools is not shut out of the board: every tool has a
|
|
130
|
-
* command that does the same thing, and the card ends up saying the same
|
|
131
|
-
* either way, because both call the same operations.
|
|
132
|
-
*/
|
|
133
|
-
declare const KANBO_TOOL_CLI_EQUIVALENTS: Record<KanboToolName, KanboToolCliEquivalent>;
|
|
134
|
-
//#endregion
|
|
135
105
|
//#region src/domain/issue-view.d.ts
|
|
136
106
|
/** An issue row with its `labels` column decoded from JSON. */
|
|
137
107
|
type IssueView = Omit<Issue, 'labels'> & {
|
|
@@ -177,6 +147,25 @@ declare function isOutsideWriter(provenance: IssueWriterProvenance): provenance
|
|
|
177
147
|
authorId: string;
|
|
178
148
|
};
|
|
179
149
|
//#endregion
|
|
150
|
+
//#region src/mcp/tool-names.d.ts
|
|
151
|
+
/**
|
|
152
|
+
* The board's tools, named once.
|
|
153
|
+
*
|
|
154
|
+
* An agent reaches this board through an MCP server, or through an HTTP API
|
|
155
|
+
* (`kanbo serve`, or an app that serves the same routes), and both must agree on
|
|
156
|
+
* what the board can be asked to do. The names are read by the MCP server, by
|
|
157
|
+
* the prompts built for an agent and by the HTTP API — there is no command line
|
|
158
|
+
* for an agent. They live here rather than in the MCP server so that a prompt
|
|
159
|
+
* built for an agent and the tools that agent actually holds cannot drift
|
|
160
|
+
* apart: both read this list.
|
|
161
|
+
*
|
|
162
|
+
* Nothing here executes anything. These are names, for a prompt and for
|
|
163
|
+
* documentation.
|
|
164
|
+
*/
|
|
165
|
+
declare const KANBO_TOOL_NAMES: readonly ['kanbo_prime', 'kanbo_ready', 'kanbo_card_claim', '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'];
|
|
166
|
+
/** One of the board's tools. */
|
|
167
|
+
type KanboToolName = typeof KANBO_TOOL_NAMES[number];
|
|
168
|
+
//#endregion
|
|
180
169
|
//#region src/ops/approval.d.ts
|
|
181
170
|
/** Where a card stands with the person who has to approve it. */
|
|
182
171
|
interface BoardApproval {
|
|
@@ -202,4 +191,4 @@ interface CardAttention {
|
|
|
202
191
|
lastComment: CardLastComment | null;
|
|
203
192
|
}
|
|
204
193
|
//#endregion
|
|
205
|
-
export {
|
|
194
|
+
export { ColumnFlowRules as C, readFlowRules as E, serializeEntryRules as S, FlowRule as T, UNMET_ENTRY_RULE_REASONS as _, KanboToolName as a, readChecklist as b, IssueView as c, normalizeCommentAuthorKind as d, toIssueView as f, EntryRuleFacts as g, EntryRule as h, KANBO_TOOL_NAMES as i, IssueWriterProvenance as l, ENTRY_RULE_DESCRIPTIONS as m, CardAttention as n, IssueActorKind as o, ENTRY_RULES as p, CardLastComment as r, IssueActorReference as s, BoardApproval as t, isOutsideWriter as u, UnmetEntryRule as v, FLOW_RULES as w, readEntryRules as x, evaluateEntryRules as y };
|
package/dist/lib/index.cjs
CHANGED
|
@@ -1,69 +1,68 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const
|
|
2
|
+
const require_tool_names = require("./tool-names-BOUJas7m.cjs");
|
|
3
3
|
const require_migrations_path = require("./migrations-path-DBCE17dT.cjs");
|
|
4
|
-
exports.BINDING_FILE_PATH =
|
|
5
|
-
exports.BOARD_ACTOR =
|
|
6
|
-
exports.BOARD_ERROR_RESPONSES =
|
|
4
|
+
exports.BINDING_FILE_PATH = require_tool_names.BINDING_FILE_PATH;
|
|
5
|
+
exports.BOARD_ACTOR = require_tool_names.BOARD_ACTOR;
|
|
6
|
+
exports.BOARD_ERROR_RESPONSES = require_tool_names.BOARD_ERROR_RESPONSES;
|
|
7
7
|
exports.BoardError = require_migrations_path.BoardError;
|
|
8
|
-
exports.CAPABILITIES_MANIFEST_VERSION =
|
|
9
|
-
exports.CARD_KEY_PATTERN =
|
|
10
|
-
exports.COLUMN_CATALOGUE =
|
|
11
|
-
exports.COLUMN_TEMPLATES =
|
|
12
|
-
exports.COLUMN_TEMPLATE_IDS =
|
|
13
|
-
exports.DEFAULT_BOARD_FILE_PATH =
|
|
14
|
-
exports.DEFAULT_STATUSES =
|
|
15
|
-
exports.ENTRY_RULES =
|
|
16
|
-
exports.ENTRY_RULE_DESCRIPTIONS =
|
|
17
|
-
exports.FLOW_RULES =
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
22
|
-
exports.
|
|
23
|
-
exports.
|
|
24
|
-
exports.
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
32
|
-
exports.
|
|
33
|
-
exports.
|
|
34
|
-
exports.
|
|
35
|
-
exports.
|
|
36
|
-
exports.
|
|
37
|
-
exports.
|
|
38
|
-
exports.
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
41
|
-
exports.
|
|
42
|
-
exports.
|
|
43
|
-
exports.
|
|
44
|
-
exports.
|
|
45
|
-
exports.
|
|
46
|
-
exports.
|
|
47
|
-
exports.
|
|
48
|
-
exports.
|
|
49
|
-
exports.
|
|
50
|
-
exports.
|
|
51
|
-
exports.
|
|
52
|
-
exports.
|
|
53
|
-
exports.
|
|
54
|
-
exports.
|
|
55
|
-
exports.
|
|
56
|
-
exports.
|
|
57
|
-
exports.
|
|
58
|
-
exports.
|
|
59
|
-
exports.
|
|
60
|
-
exports.
|
|
61
|
-
exports.
|
|
62
|
-
exports.
|
|
63
|
-
exports.
|
|
64
|
-
exports.
|
|
65
|
-
exports.
|
|
66
|
-
exports.
|
|
67
|
-
exports.
|
|
68
|
-
exports.
|
|
69
|
-
exports.writeBinding = require_manifest.writeBinding;
|
|
8
|
+
exports.CAPABILITIES_MANIFEST_VERSION = require_tool_names.CAPABILITIES_MANIFEST_VERSION;
|
|
9
|
+
exports.CARD_KEY_PATTERN = require_tool_names.CARD_KEY_PATTERN;
|
|
10
|
+
exports.COLUMN_CATALOGUE = require_tool_names.COLUMN_CATALOGUE;
|
|
11
|
+
exports.COLUMN_TEMPLATES = require_tool_names.COLUMN_TEMPLATES;
|
|
12
|
+
exports.COLUMN_TEMPLATE_IDS = require_tool_names.COLUMN_TEMPLATE_IDS;
|
|
13
|
+
exports.DEFAULT_BOARD_FILE_PATH = require_tool_names.DEFAULT_BOARD_FILE_PATH;
|
|
14
|
+
exports.DEFAULT_STATUSES = require_tool_names.DEFAULT_STATUSES;
|
|
15
|
+
exports.ENTRY_RULES = require_tool_names.ENTRY_RULES;
|
|
16
|
+
exports.ENTRY_RULE_DESCRIPTIONS = require_tool_names.ENTRY_RULE_DESCRIPTIONS;
|
|
17
|
+
exports.FLOW_RULES = require_tool_names.FLOW_RULES;
|
|
18
|
+
exports.KANBO_TOOL_NAMES = require_tool_names.KANBO_TOOL_NAMES;
|
|
19
|
+
exports.TRACKED_FIELDS = require_tool_names.TRACKED_FIELDS;
|
|
20
|
+
exports.UNMET_ENTRY_RULE_REASONS = require_tool_names.UNMET_ENTRY_RULE_REASONS;
|
|
21
|
+
exports.activityKindOrder = require_tool_names.activityKindOrder;
|
|
22
|
+
exports.activityText = require_tool_names.activityText;
|
|
23
|
+
exports.activityToken = require_tool_names.activityToken;
|
|
24
|
+
exports.boardMetricsAgentKey = require_tool_names.boardMetricsAgentKey;
|
|
25
|
+
exports.boardMetricsRuns = require_tool_names.boardMetricsRuns;
|
|
26
|
+
exports.buildCapabilitiesManifest = require_tool_names.buildCapabilitiesManifest;
|
|
27
|
+
exports.cardDisplayTitle = require_tool_names.cardDisplayTitle;
|
|
28
|
+
exports.commentAuthorReference = require_tool_names.commentAuthorReference;
|
|
29
|
+
exports.computeBoardMetrics = require_tool_names.computeBoardMetrics;
|
|
30
|
+
exports.createBoardOps = require_tool_names.createBoardOps;
|
|
31
|
+
exports.currentUnixSeconds = require_tool_names.currentUnixSeconds;
|
|
32
|
+
exports.diffFieldChanges = require_tool_names.diffFieldChanges;
|
|
33
|
+
exports.evaluateEntryRules = require_tool_names.evaluateEntryRules;
|
|
34
|
+
exports.formatActivityIssueReference = require_tool_names.formatActivityIssueReference;
|
|
35
|
+
exports.formatExternalSessionRef = require_tool_names.formatExternalSessionRef;
|
|
36
|
+
exports.formatIssueId = require_tool_names.formatIssueId;
|
|
37
|
+
exports.formatPlainActivityValue = require_tool_names.formatPlainActivityValue;
|
|
38
|
+
exports.ignoreBoardFile = require_tool_names.ignoreBoardFile;
|
|
39
|
+
exports.isEmptyActivityValue = require_tool_names.isEmptyActivityValue;
|
|
40
|
+
exports.isOutsideWriter = require_tool_names.isOutsideWriter;
|
|
41
|
+
exports.isValidCardKey = require_tool_names.isValidCardKey;
|
|
42
|
+
exports.isoWeekOf = require_tool_names.isoWeekOf;
|
|
43
|
+
exports.maskDatabaseUrl = require_tool_names.maskDatabaseUrl;
|
|
44
|
+
exports.maskDatabaseUrls = require_tool_names.maskDatabaseUrls;
|
|
45
|
+
exports.nearestRank = require_tool_names.nearestRank;
|
|
46
|
+
exports.nextIssueIdentity = require_tool_names.nextIssueIdentity;
|
|
47
|
+
exports.nextIssueNumber = require_tool_names.nextIssueNumber;
|
|
48
|
+
exports.nextIssueOrder = require_tool_names.nextIssueOrder;
|
|
49
|
+
exports.normalizeCommentAuthorKind = require_tool_names.normalizeCommentAuthorKind;
|
|
50
|
+
exports.normalizeStatusName = require_tool_names.normalizeStatusName;
|
|
51
|
+
exports.parseActivityStringArray = require_tool_names.parseActivityStringArray;
|
|
52
|
+
exports.parseExternalSessionRef = require_tool_names.parseExternalSessionRef;
|
|
53
|
+
exports.pullRequestFactKeys = require_tool_names.pullRequestFactKeys;
|
|
54
|
+
exports.readBinding = require_tool_names.readBinding;
|
|
55
|
+
exports.readChangeSeq = require_tool_names.readChangeSeq;
|
|
56
|
+
exports.readChecklist = require_tool_names.readChecklist;
|
|
57
|
+
exports.readEntryRules = require_tool_names.readEntryRules;
|
|
58
|
+
exports.readFlowRules = require_tool_names.readFlowRules;
|
|
59
|
+
exports.readIssuePrefix = require_tool_names.readIssuePrefix;
|
|
60
|
+
exports.readProjectBinding = require_tool_names.readProjectBinding;
|
|
61
|
+
exports.readSystemCommentKind = require_tool_names.readSystemCommentKind;
|
|
62
|
+
exports.renderCapabilitiesMarkdown = require_tool_names.renderCapabilitiesMarkdown;
|
|
63
|
+
exports.runBoardWrite = require_tool_names.runBoardWrite;
|
|
64
|
+
exports.serializeEntryRules = require_tool_names.serializeEntryRules;
|
|
65
|
+
exports.suggestCardKey = require_tool_names.suggestCardKey;
|
|
66
|
+
exports.toIssueView = require_tool_names.toIssueView;
|
|
67
|
+
exports.utcDayLabel = require_tool_names.utcDayLabel;
|
|
68
|
+
exports.writeBinding = require_tool_names.writeBinding;
|
package/dist/lib/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as IssuePullRequest, c as IssueStatus, f as issueFieldChanges, i as IssueMilestone, l as KanbanMeta, n as IssueComment, o as IssueRelation, r as IssueFieldChange, s as IssueRun, t as Issue, v as issues } from "./schema-Cwx3HosC.cjs";
|
|
2
2
|
import { _ as IssueRelationStore, a as BoardLinkedPullRequest, b as IssueStatusStore, c as BoardRunProjectionScope, d as BoardWorkspaceFieldChange, f as IssueCommentStore, g as IssuePullRequestStore, h as IssueMilestoneStore, i as BoardFieldChangeQuery, l as BoardStore, m as IssueFieldChangeStore, n as BoardCardPage, o as BoardMilestoneCardCount, p as IssueContextRefStore, r as BoardCardQuery, s as BoardRunProjection, t as BoardActiveRun, u as BoardTransactionMode, v as IssueRowStore, x as KanbanMetaStore, y as IssueRunStore } from "./board-store-CsyBXBwH.cjs";
|
|
3
|
-
import { C as
|
|
3
|
+
import { C as ColumnFlowRules, E as readFlowRules, S as serializeEntryRules, T as FlowRule, _ as UNMET_ENTRY_RULE_REASONS, a as KanboToolName, b as readChecklist, c as IssueView, d as normalizeCommentAuthorKind, f as toIssueView, g as EntryRuleFacts, h as EntryRule, i as KANBO_TOOL_NAMES, l as IssueWriterProvenance, m as ENTRY_RULE_DESCRIPTIONS, n as CardAttention, o as IssueActorKind, p as ENTRY_RULES, r as CardLastComment, s as IssueActorReference, t as BoardApproval, u as isOutsideWriter, v as UnmetEntryRule, w as FLOW_RULES, x as readEntryRules, y as evaluateEntryRules } from "./approval-Nmk8UDPy.cjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/cli/output.d.ts
|
|
6
6
|
/**
|
|
@@ -41,12 +41,11 @@ declare const CLI_EXIT_CODES: readonly [{
|
|
|
41
41
|
* sources gains something this file was not told about.
|
|
42
42
|
*
|
|
43
43
|
* `buildCapabilitiesManifest` and `renderCapabilitiesMarkdown` are the one
|
|
44
|
-
* source two servings come from: `kanbo
|
|
45
|
-
* from a terminal, and `kanbo mcp` serves both as resources
|
|
44
|
+
* source two servings come from: `kanbo mcp` serves both as resources
|
|
46
45
|
* (`kanbo://capabilities`, `kanbo://capabilities.md`).
|
|
47
46
|
*/
|
|
48
47
|
/** The manifest's own shape version, bumped when a field is added or removed — not the package's version. */
|
|
49
|
-
export declare const CAPABILITIES_MANIFEST_VERSION = "
|
|
48
|
+
export declare const CAPABILITIES_MANIFEST_VERSION = "4";
|
|
50
49
|
/** The board's name and the build that is answering, as `kanbo mcp` itself reports them. */
|
|
51
50
|
interface KanboCapabilitiesPackage {
|
|
52
51
|
name: string;
|
|
@@ -68,8 +67,6 @@ interface KanboCapabilityTool {
|
|
|
68
67
|
description: string;
|
|
69
68
|
/** `tool.inputSchema` converted with zod's own `toJSONSchema` — never hand-written. */
|
|
70
69
|
inputSchema: Record<string, unknown>;
|
|
71
|
-
/** What to type instead, from `KANBO_TOOL_CLI_EQUIVALENTS`: the `kanbo` command. */
|
|
72
|
-
cli: KanboToolCliEquivalent;
|
|
73
70
|
}
|
|
74
71
|
/** One flag a CLI command takes, as commander itself declares it. */
|
|
75
72
|
interface KanboCapabilityCommandOption {
|
|
@@ -116,7 +113,7 @@ interface KanboCapabilities {
|
|
|
116
113
|
storages: KanboCapabilityStorage[];
|
|
117
114
|
tools: KanboCapabilityTool[];
|
|
118
115
|
commands: KanboCapabilityCommand[];
|
|
119
|
-
/** The board-independent rules `
|
|
116
|
+
/** The board-independent rules `kanbo_prime` states — no columns here, because a column is per board. */
|
|
120
117
|
rules: string[];
|
|
121
118
|
/** Every rule a column may ask of a card, from `ENTRY_RULES` — which columns ask for which is per board, in `kanbo_columns`. */
|
|
122
119
|
entryRules: KanboCapabilityEntryRule[];
|
|
@@ -1932,4 +1929,4 @@ interface BoardErrorResponse {
|
|
|
1932
1929
|
*/
|
|
1933
1930
|
export declare const BOARD_ERROR_RESPONSES: Record<BoardErrorCode, BoardErrorResponse>;
|
|
1934
1931
|
//#endregion
|
|
1935
|
-
export { type AddColumnInput, type AddCommentInput, type ApplyColumnTemplateOptions, type AttachRunExecutionInput, type BoardActiveRun, type BoardActor, type BoardApproval, type BoardCardPage, type BoardCardQuery, type BoardCardWrite, type BoardColumnInput, type BoardColumnPatch, type BoardErrorCode, type BoardErrorResponse, type BoardFieldChangeQuery, type BoardLinkedPullRequest, type BoardMetrics, type BoardMetricsAgent, type BoardMetricsAgingCard, type BoardMetricsCard, type BoardMetricsColumn, type BoardMetricsColumnTime, type BoardMetricsDurations, type BoardMetricsFinishedCard, type BoardMetricsFlowDay, type BoardMetricsHistory, type BoardMetricsInput, type BoardMetricsPerson, type BoardMetricsReturns, type BoardMetricsWeek, type BoardMetricsWip, type BoardMilestoneCardCount, type BoardOps, type BoardPullRequestStanding, type BoardRunProjection, type BoardRunProjectionScope, type BoardRunView, type BoardSprint, type BoardStore, type BoardTransactionMode, type BoardWorkspaceFieldChange, type BoardWorkspaceIdentity, type BoardWriteScope, type BulkUpdateCardsInput, type BulkUpdateCardsResult, type CardAttention, type CardLastComment, type CardNotReadyReason, type CardQueryInput, type CardQueryResult, type ClaimCardInput, type ClaimedCard, type CloseSprintResult, type ColumnEntry, type ColumnFlowRules, type ColumnPosition, type ColumnSpec, type ColumnTemplateId, type CreateCardInput, type CreateCommentOnceInput, type CreateMilestoneInput, type CreateRelationInput, ENTRY_RULES, ENTRY_RULE_DESCRIPTIONS, type EntryRule, type EntryRuleFacts, type ExternalSessionRef, FLOW_RULES, type FinishRunInput, type FlowRule, type IsoWeek, type Issue, type IssueActivityAction, type IssueActivityCommentView, type IssueActivityField, type IssueActivityFieldChangeView, type IssueActivityItemView, type IssueActivityLookup, type IssueActivityResolver, type IssueActivityValueToken, type IssueActivityValueView, type IssueActorKind, type IssueActorReference, type IssueComment, type IssueCommentAuthorView, type IssueCommentStore, type IssueContextRefStore, type IssueFieldChange, type IssueFieldChangeStore, type IssueMilestone, type IssueMilestoneStore, type IssueMutationActor, type IssuePullRequest, type IssuePullRequestStore, type IssueRelation, type IssueRelationCounterpart, type IssueRelationStore, type IssueRelationView, type IssueRowStore, type IssueRun, type IssueRunStore, type IssueStatus, type IssueStatusStore, type IssueView,
|
|
1932
|
+
export { type AddColumnInput, type AddCommentInput, type ApplyColumnTemplateOptions, type AttachRunExecutionInput, type BoardActiveRun, type BoardActor, type BoardApproval, type BoardCardPage, type BoardCardQuery, type BoardCardWrite, type BoardColumnInput, type BoardColumnPatch, type BoardErrorCode, type BoardErrorResponse, type BoardFieldChangeQuery, type BoardLinkedPullRequest, type BoardMetrics, type BoardMetricsAgent, type BoardMetricsAgingCard, type BoardMetricsCard, type BoardMetricsColumn, type BoardMetricsColumnTime, type BoardMetricsDurations, type BoardMetricsFinishedCard, type BoardMetricsFlowDay, type BoardMetricsHistory, type BoardMetricsInput, type BoardMetricsPerson, type BoardMetricsReturns, type BoardMetricsWeek, type BoardMetricsWip, type BoardMilestoneCardCount, type BoardOps, type BoardPullRequestStanding, type BoardRunProjection, type BoardRunProjectionScope, type BoardRunView, type BoardSprint, type BoardStore, type BoardTransactionMode, type BoardWorkspaceFieldChange, type BoardWorkspaceIdentity, type BoardWriteScope, type BulkUpdateCardsInput, type BulkUpdateCardsResult, type CardAttention, type CardLastComment, type CardNotReadyReason, type CardQueryInput, type CardQueryResult, type ClaimCardInput, type ClaimedCard, type CloseSprintResult, type ColumnEntry, type ColumnFlowRules, type ColumnPosition, type ColumnSpec, type ColumnTemplateId, type CreateCardInput, type CreateCommentOnceInput, type CreateMilestoneInput, type CreateRelationInput, ENTRY_RULES, ENTRY_RULE_DESCRIPTIONS, type EntryRule, type EntryRuleFacts, type ExternalSessionRef, FLOW_RULES, type FinishRunInput, type FlowRule, type IsoWeek, type Issue, type IssueActivityAction, type IssueActivityCommentView, type IssueActivityField, type IssueActivityFieldChangeView, type IssueActivityItemView, type IssueActivityLookup, type IssueActivityResolver, type IssueActivityValueToken, type IssueActivityValueView, type IssueActorKind, type IssueActorReference, type IssueComment, type IssueCommentAuthorView, type IssueCommentStore, type IssueContextRefStore, type IssueFieldChange, type IssueFieldChangeStore, type IssueMilestone, type IssueMilestoneStore, type IssueMutationActor, type IssuePullRequest, type IssuePullRequestStore, type IssueRelation, type IssueRelationCounterpart, type IssueRelationStore, type IssueRelationView, type IssueRowStore, type IssueRun, type IssueRunStore, type IssueStatus, type IssueStatusStore, type IssueView, KANBO_TOOL_NAMES, type KanbanMeta, type KanbanMetaStore, type KanboBinding, type KanboCapabilities, type KanboCapabilitiesPackage, type KanboCapabilitiesRoles, type KanboCapabilityCommand, type KanboCapabilityCommandArgument, type KanboCapabilityCommandOption, type KanboCapabilityEntryRule, type KanboCapabilityStorage, type KanboCapabilityTool, type KanboToolName, type ListColumnEntriesInput, type MigrateCardsInput, type MigrateCardsResult, type PullRequestFactKeys, type RemoveColumnOptions, type RemoveColumnResult, type StartRunInput, UNMET_ENTRY_RULE_REASONS, type UnmetEntryRule, type UpdateCardInput, type UpdateMilestoneInput, evaluateEntryRules, isOutsideWriter, normalizeCommentAuthorKind, readChecklist, readEntryRules, readFlowRules, serializeEntryRules, toIssueView };
|
package/dist/lib/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as IssuePullRequest, c as IssueStatus, f as issueFieldChanges, i as IssueMilestone, l as KanbanMeta, n as IssueComment, o as IssueRelation, r as IssueFieldChange, s as IssueRun, t as Issue, v as issues } from "./schema-Cwx3HosC.mjs";
|
|
2
2
|
import { _ as IssueRelationStore, a as BoardLinkedPullRequest, b as IssueStatusStore, c as BoardRunProjectionScope, d as BoardWorkspaceFieldChange, f as IssueCommentStore, g as IssuePullRequestStore, h as IssueMilestoneStore, i as BoardFieldChangeQuery, l as BoardStore, m as IssueFieldChangeStore, n as BoardCardPage, o as BoardMilestoneCardCount, p as IssueContextRefStore, r as BoardCardQuery, s as BoardRunProjection, t as BoardActiveRun, u as BoardTransactionMode, v as IssueRowStore, x as KanbanMetaStore, y as IssueRunStore } from "./board-store-BjhiH9TZ.mjs";
|
|
3
|
-
import { C as
|
|
3
|
+
import { C as ColumnFlowRules, E as readFlowRules, S as serializeEntryRules, T as FlowRule, _ as UNMET_ENTRY_RULE_REASONS, a as KanboToolName, b as readChecklist, c as IssueView, d as normalizeCommentAuthorKind, f as toIssueView, g as EntryRuleFacts, h as EntryRule, i as KANBO_TOOL_NAMES, l as IssueWriterProvenance, m as ENTRY_RULE_DESCRIPTIONS, n as CardAttention, o as IssueActorKind, p as ENTRY_RULES, r as CardLastComment, s as IssueActorReference, t as BoardApproval, u as isOutsideWriter, v as UnmetEntryRule, w as FLOW_RULES, x as readEntryRules, y as evaluateEntryRules } from "./approval-CDiZbegu.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/cli/output.d.ts
|
|
6
6
|
/**
|
|
@@ -41,12 +41,11 @@ declare const CLI_EXIT_CODES: readonly [{
|
|
|
41
41
|
* sources gains something this file was not told about.
|
|
42
42
|
*
|
|
43
43
|
* `buildCapabilitiesManifest` and `renderCapabilitiesMarkdown` are the one
|
|
44
|
-
* source two servings come from: `kanbo
|
|
45
|
-
* from a terminal, and `kanbo mcp` serves both as resources
|
|
44
|
+
* source two servings come from: `kanbo mcp` serves both as resources
|
|
46
45
|
* (`kanbo://capabilities`, `kanbo://capabilities.md`).
|
|
47
46
|
*/
|
|
48
47
|
/** The manifest's own shape version, bumped when a field is added or removed — not the package's version. */
|
|
49
|
-
export declare const CAPABILITIES_MANIFEST_VERSION = "
|
|
48
|
+
export declare const CAPABILITIES_MANIFEST_VERSION = "4";
|
|
50
49
|
/** The board's name and the build that is answering, as `kanbo mcp` itself reports them. */
|
|
51
50
|
interface KanboCapabilitiesPackage {
|
|
52
51
|
name: string;
|
|
@@ -68,8 +67,6 @@ interface KanboCapabilityTool {
|
|
|
68
67
|
description: string;
|
|
69
68
|
/** `tool.inputSchema` converted with zod's own `toJSONSchema` — never hand-written. */
|
|
70
69
|
inputSchema: Record<string, unknown>;
|
|
71
|
-
/** What to type instead, from `KANBO_TOOL_CLI_EQUIVALENTS`: the `kanbo` command. */
|
|
72
|
-
cli: KanboToolCliEquivalent;
|
|
73
70
|
}
|
|
74
71
|
/** One flag a CLI command takes, as commander itself declares it. */
|
|
75
72
|
interface KanboCapabilityCommandOption {
|
|
@@ -116,7 +113,7 @@ interface KanboCapabilities {
|
|
|
116
113
|
storages: KanboCapabilityStorage[];
|
|
117
114
|
tools: KanboCapabilityTool[];
|
|
118
115
|
commands: KanboCapabilityCommand[];
|
|
119
|
-
/** The board-independent rules `
|
|
116
|
+
/** The board-independent rules `kanbo_prime` states — no columns here, because a column is per board. */
|
|
120
117
|
rules: string[];
|
|
121
118
|
/** Every rule a column may ask of a card, from `ENTRY_RULES` — which columns ask for which is per board, in `kanbo_columns`. */
|
|
122
119
|
entryRules: KanboCapabilityEntryRule[];
|
|
@@ -1932,4 +1929,4 @@ interface BoardErrorResponse {
|
|
|
1932
1929
|
*/
|
|
1933
1930
|
export declare const BOARD_ERROR_RESPONSES: Record<BoardErrorCode, BoardErrorResponse>;
|
|
1934
1931
|
//#endregion
|
|
1935
|
-
export { type AddColumnInput, type AddCommentInput, type ApplyColumnTemplateOptions, type AttachRunExecutionInput, type BoardActiveRun, type BoardActor, type BoardApproval, type BoardCardPage, type BoardCardQuery, type BoardCardWrite, type BoardColumnInput, type BoardColumnPatch, type BoardErrorCode, type BoardErrorResponse, type BoardFieldChangeQuery, type BoardLinkedPullRequest, type BoardMetrics, type BoardMetricsAgent, type BoardMetricsAgingCard, type BoardMetricsCard, type BoardMetricsColumn, type BoardMetricsColumnTime, type BoardMetricsDurations, type BoardMetricsFinishedCard, type BoardMetricsFlowDay, type BoardMetricsHistory, type BoardMetricsInput, type BoardMetricsPerson, type BoardMetricsReturns, type BoardMetricsWeek, type BoardMetricsWip, type BoardMilestoneCardCount, type BoardOps, type BoardPullRequestStanding, type BoardRunProjection, type BoardRunProjectionScope, type BoardRunView, type BoardSprint, type BoardStore, type BoardTransactionMode, type BoardWorkspaceFieldChange, type BoardWorkspaceIdentity, type BoardWriteScope, type BulkUpdateCardsInput, type BulkUpdateCardsResult, type CardAttention, type CardLastComment, type CardNotReadyReason, type CardQueryInput, type CardQueryResult, type ClaimCardInput, type ClaimedCard, type CloseSprintResult, type ColumnEntry, type ColumnFlowRules, type ColumnPosition, type ColumnSpec, type ColumnTemplateId, type CreateCardInput, type CreateCommentOnceInput, type CreateMilestoneInput, type CreateRelationInput, ENTRY_RULES, ENTRY_RULE_DESCRIPTIONS, type EntryRule, type EntryRuleFacts, type ExternalSessionRef, FLOW_RULES, type FinishRunInput, type FlowRule, type IsoWeek, type Issue, type IssueActivityAction, type IssueActivityCommentView, type IssueActivityField, type IssueActivityFieldChangeView, type IssueActivityItemView, type IssueActivityLookup, type IssueActivityResolver, type IssueActivityValueToken, type IssueActivityValueView, type IssueActorKind, type IssueActorReference, type IssueComment, type IssueCommentAuthorView, type IssueCommentStore, type IssueContextRefStore, type IssueFieldChange, type IssueFieldChangeStore, type IssueMilestone, type IssueMilestoneStore, type IssueMutationActor, type IssuePullRequest, type IssuePullRequestStore, type IssueRelation, type IssueRelationCounterpart, type IssueRelationStore, type IssueRelationView, type IssueRowStore, type IssueRun, type IssueRunStore, type IssueStatus, type IssueStatusStore, type IssueView,
|
|
1932
|
+
export { type AddColumnInput, type AddCommentInput, type ApplyColumnTemplateOptions, type AttachRunExecutionInput, type BoardActiveRun, type BoardActor, type BoardApproval, type BoardCardPage, type BoardCardQuery, type BoardCardWrite, type BoardColumnInput, type BoardColumnPatch, type BoardErrorCode, type BoardErrorResponse, type BoardFieldChangeQuery, type BoardLinkedPullRequest, type BoardMetrics, type BoardMetricsAgent, type BoardMetricsAgingCard, type BoardMetricsCard, type BoardMetricsColumn, type BoardMetricsColumnTime, type BoardMetricsDurations, type BoardMetricsFinishedCard, type BoardMetricsFlowDay, type BoardMetricsHistory, type BoardMetricsInput, type BoardMetricsPerson, type BoardMetricsReturns, type BoardMetricsWeek, type BoardMetricsWip, type BoardMilestoneCardCount, type BoardOps, type BoardPullRequestStanding, type BoardRunProjection, type BoardRunProjectionScope, type BoardRunView, type BoardSprint, type BoardStore, type BoardTransactionMode, type BoardWorkspaceFieldChange, type BoardWorkspaceIdentity, type BoardWriteScope, type BulkUpdateCardsInput, type BulkUpdateCardsResult, type CardAttention, type CardLastComment, type CardNotReadyReason, type CardQueryInput, type CardQueryResult, type ClaimCardInput, type ClaimedCard, type CloseSprintResult, type ColumnEntry, type ColumnFlowRules, type ColumnPosition, type ColumnSpec, type ColumnTemplateId, type CreateCardInput, type CreateCommentOnceInput, type CreateMilestoneInput, type CreateRelationInput, ENTRY_RULES, ENTRY_RULE_DESCRIPTIONS, type EntryRule, type EntryRuleFacts, type ExternalSessionRef, FLOW_RULES, type FinishRunInput, type FlowRule, type IsoWeek, type Issue, type IssueActivityAction, type IssueActivityCommentView, type IssueActivityField, type IssueActivityFieldChangeView, type IssueActivityItemView, type IssueActivityLookup, type IssueActivityResolver, type IssueActivityValueToken, type IssueActivityValueView, type IssueActorKind, type IssueActorReference, type IssueComment, type IssueCommentAuthorView, type IssueCommentStore, type IssueContextRefStore, type IssueFieldChange, type IssueFieldChangeStore, type IssueMilestone, type IssueMilestoneStore, type IssueMutationActor, type IssuePullRequest, type IssuePullRequestStore, type IssueRelation, type IssueRelationCounterpart, type IssueRelationStore, type IssueRelationView, type IssueRowStore, type IssueRun, type IssueRunStore, type IssueStatus, type IssueStatusStore, type IssueView, KANBO_TOOL_NAMES, type KanbanMeta, type KanbanMetaStore, type KanboBinding, type KanboCapabilities, type KanboCapabilitiesPackage, type KanboCapabilitiesRoles, type KanboCapabilityCommand, type KanboCapabilityCommandArgument, type KanboCapabilityCommandOption, type KanboCapabilityEntryRule, type KanboCapabilityStorage, type KanboCapabilityTool, type KanboToolName, type ListColumnEntriesInput, type MigrateCardsInput, type MigrateCardsResult, type PullRequestFactKeys, type RemoveColumnOptions, type RemoveColumnResult, type StartRunInput, UNMET_ENTRY_RULE_REASONS, type UnmetEntryRule, type UpdateCardInput, type UpdateMilestoneInput, evaluateEntryRules, isOutsideWriter, normalizeCommentAuthorKind, readChecklist, readEntryRules, readFlowRules, serializeEntryRules, toIssueView };
|
package/dist/lib/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as readChangeSeq, A as suggestCardKey, At as nextIssueIdentity, B as formatExternalSessionRef, Ct as isEmptyActivityValue, D as renderCapabilitiesMarkdown, Dt as normalizeCommentAuthorKind, Et as isOutsideWriter, F as ignoreBoardFile, G as UNMET_ENTRY_RULE_REASONS, H as pullRequestFactKeys, I as readBinding, J as readEntryRules, K as evaluateEntryRules, L as readProjectBinding, M as maskDatabaseUrl, Mt as nextIssueOrder, N as maskDatabaseUrls, Nt as readIssuePrefix, O as CARD_KEY_PATTERN, Ot as toIssueView, P as BINDING_FILE_PATH, Q as COLUMN_TEMPLATE_IDS, R as writeBinding, St as formatPlainActivityValue, Tt as readSystemCommentKind, U as ENTRY_RULES, V as parseExternalSessionRef, W as ENTRY_RULE_DESCRIPTIONS, X as COLUMN_CATALOGUE, Y as serializeEntryRules, Z as COLUMN_TEMPLATES, _t as activityKindOrder, at as computeBoardMetrics, bt as commentAuthorReference, ct as utcDayLabel, dt as DEFAULT_STATUSES, et as runBoardWrite, ft as normalizeStatusName, gt as currentUnixSeconds, ht as BOARD_ACTOR, i as BOARD_ERROR_RESPONSES, it as boardMetricsRuns, j as DEFAULT_BOARD_FILE_PATH, jt as nextIssueNumber, k as isValidCardKey, kt as formatIssueId, lt as FLOW_RULES, n as CAPABILITIES_MANIFEST_VERSION, nt as diffFieldChanges, ot as nearestRank, pt as cardDisplayTitle, q as readChecklist, r as buildCapabilitiesManifest, rt as boardMetricsAgentKey, st as isoWeekOf, t as KANBO_TOOL_NAMES, tt as TRACKED_FIELDS, ut as readFlowRules, vt as activityText, wt as parseActivityStringArray, xt as formatActivityIssueReference, yt as activityToken, z as createBoardOps } from "./tool-names-CrvHZ-ON.mjs";
|
|
2
2
|
import { a as BoardError } from "./migrations-path-ClaYRNwk.mjs";
|
|
3
|
-
export { BINDING_FILE_PATH, BOARD_ACTOR, BOARD_ERROR_RESPONSES, BoardError, CAPABILITIES_MANIFEST_VERSION, CARD_KEY_PATTERN, COLUMN_CATALOGUE, COLUMN_TEMPLATES, COLUMN_TEMPLATE_IDS, DEFAULT_BOARD_FILE_PATH, DEFAULT_STATUSES, ENTRY_RULES, ENTRY_RULE_DESCRIPTIONS, FLOW_RULES,
|
|
3
|
+
export { BINDING_FILE_PATH, BOARD_ACTOR, BOARD_ERROR_RESPONSES, BoardError, CAPABILITIES_MANIFEST_VERSION, CARD_KEY_PATTERN, COLUMN_CATALOGUE, COLUMN_TEMPLATES, COLUMN_TEMPLATE_IDS, DEFAULT_BOARD_FILE_PATH, DEFAULT_STATUSES, ENTRY_RULES, ENTRY_RULE_DESCRIPTIONS, FLOW_RULES, KANBO_TOOL_NAMES, TRACKED_FIELDS, UNMET_ENTRY_RULE_REASONS, activityKindOrder, activityText, activityToken, boardMetricsAgentKey, boardMetricsRuns, buildCapabilitiesManifest, cardDisplayTitle, commentAuthorReference, computeBoardMetrics, createBoardOps, currentUnixSeconds, diffFieldChanges, evaluateEntryRules, formatActivityIssueReference, formatExternalSessionRef, formatIssueId, formatPlainActivityValue, ignoreBoardFile, isEmptyActivityValue, isOutsideWriter, isValidCardKey, isoWeekOf, maskDatabaseUrl, maskDatabaseUrls, nearestRank, nextIssueIdentity, nextIssueNumber, nextIssueOrder, normalizeCommentAuthorKind, normalizeStatusName, parseActivityStringArray, parseExternalSessionRef, pullRequestFactKeys, readBinding, readChangeSeq, readChecklist, readEntryRules, readFlowRules, readIssuePrefix, readProjectBinding, readSystemCommentKind, renderCapabilitiesMarkdown, runBoardWrite, serializeEntryRules, suggestCardKey, toIssueView, utcDayLabel, writeBinding };
|
package/dist/lib/mcp/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const
|
|
2
|
+
const require_tool_names = require("../tool-names-BOUJas7m.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
|
|
@@ -120,7 +120,7 @@ function createHttpTransport(input) {
|
|
|
120
120
|
const { request } = input;
|
|
121
121
|
async function readColumns() {
|
|
122
122
|
const statuses = zod.z.array(StatusSchema).parse(await request("GET", `/issues/statuses?workspaceId=${encodeURIComponent(input.workspaceId())}`));
|
|
123
|
-
return statuses.map((status) =>
|
|
123
|
+
return statuses.map((status) => require_tool_names.projectKanboColumn(status, statuses));
|
|
124
124
|
}
|
|
125
125
|
/**
|
|
126
126
|
* One card as a tool prints it. The response carries the column as a foreign
|
|
@@ -128,11 +128,11 @@ function createHttpTransport(input) {
|
|
|
128
128
|
* an agent moves a card by.
|
|
129
129
|
*/
|
|
130
130
|
async function projectOne(response) {
|
|
131
|
-
return
|
|
131
|
+
return require_tool_names.projectKanboCard(IssueSchema.parse(response), await readColumns());
|
|
132
132
|
}
|
|
133
133
|
/** The column a caller named, by slug or by name, as the id the list route filters on. */
|
|
134
134
|
function requireColumn(columns, nameOrId) {
|
|
135
|
-
const slug =
|
|
135
|
+
const slug = require_tool_names.normalizeStatusName(nameOrId);
|
|
136
136
|
const column = columns.find((candidate) => candidate.id === nameOrId || candidate.slug === slug);
|
|
137
137
|
if (!column) throw new require_migrations_path.BoardError("issue_status_not_found", {
|
|
138
138
|
statusName: nameOrId,
|
|
@@ -173,15 +173,15 @@ function createHttpTransport(input) {
|
|
|
173
173
|
parent = named.id;
|
|
174
174
|
rows = board;
|
|
175
175
|
}
|
|
176
|
-
const matched = rows.filter((row) =>
|
|
176
|
+
const matched = rows.filter((row) => require_tool_names.matchesKanboCardQuery(row, {
|
|
177
177
|
...cardQuery,
|
|
178
178
|
parent,
|
|
179
179
|
returned: void 0
|
|
180
180
|
}, statusIds));
|
|
181
|
-
const picked = cardQuery.returned === void 0 ? matched : (await withAttention(matched)).filter((row) =>
|
|
181
|
+
const picked = cardQuery.returned === void 0 ? matched : (await withAttention(matched)).filter((row) => require_tool_names.matchesKanboCardQuery(row, cardQuery, null));
|
|
182
182
|
const offset = cardQuery.offset ?? 0;
|
|
183
183
|
return {
|
|
184
|
-
cards: (await withAttention(picked.slice(offset, cardQuery.limit === void 0 ? void 0 : offset + cardQuery.limit))).map((row) =>
|
|
184
|
+
cards: (await withAttention(picked.slice(offset, cardQuery.limit === void 0 ? void 0 : offset + cardQuery.limit))).map((row) => require_tool_names.projectKanboCard(row, columns)),
|
|
185
185
|
total: picked.length,
|
|
186
186
|
offset
|
|
187
187
|
};
|
|
@@ -198,7 +198,7 @@ function createHttpTransport(input) {
|
|
|
198
198
|
const decision = comments.filter((comment) => comment.authorKind === "system.approved" || comment.authorKind === "system.returned").at(-1);
|
|
199
199
|
const returned = row.waitingFor !== "human" && decision?.authorKind === "system.returned";
|
|
200
200
|
const latest = comments.filter((comment) => comment.authorKind !== "system.run").at(-1);
|
|
201
|
-
const lastComment = (row.waitingFor === "human" || returned) && latest ?
|
|
201
|
+
const lastComment = (row.waitingFor === "human" || returned) && latest ? require_tool_names.previewComment({
|
|
202
202
|
...latest,
|
|
203
203
|
authorKind: latest.authorKind
|
|
204
204
|
}) : null;
|
|
@@ -218,7 +218,7 @@ function createHttpTransport(input) {
|
|
|
218
218
|
const columns = await readColumns();
|
|
219
219
|
const offset = page.offset ?? 0;
|
|
220
220
|
const ready = {
|
|
221
|
-
cards: cards.slice(offset, page.limit === void 0 ? void 0 : offset + page.limit).map((row) =>
|
|
221
|
+
cards: cards.slice(offset, page.limit === void 0 ? void 0 : offset + page.limit).map((row) => require_tool_names.projectKanboCard(row, columns)),
|
|
222
222
|
total: cards.length,
|
|
223
223
|
offset
|
|
224
224
|
};
|
|
@@ -235,8 +235,8 @@ function createHttpTransport(input) {
|
|
|
235
235
|
ready: async ({ limit }) => (await readyPage({ limit })).cards,
|
|
236
236
|
readyPage,
|
|
237
237
|
columns: readColumns,
|
|
238
|
-
sprints: async () => zod.z.array(SprintSchema).parse(await request("GET", `/issues/sprints?workspaceId=${encodeURIComponent(input.workspaceId())}`)).map(
|
|
239
|
-
cardGet: async ({ card, include =
|
|
238
|
+
sprints: async () => zod.z.array(SprintSchema).parse(await request("GET", `/issues/sprints?workspaceId=${encodeURIComponent(input.workspaceId())}`)).map(require_tool_names.projectKanboSprint),
|
|
239
|
+
cardGet: async ({ card, include = require_tool_names.DEFAULT_KANBO_CARD_INCLUDES, commentLimit = 10 }) => {
|
|
240
240
|
const found = IssueSchema.parse(await request("GET", `/issues/${encodeURIComponent(card)}`));
|
|
241
241
|
const wants = new Set(include);
|
|
242
242
|
const path = `/issues/${encodeURIComponent(found.id)}`;
|
|
@@ -253,15 +253,15 @@ function createHttpTransport(input) {
|
|
|
253
253
|
wants.has("prs") ? request("GET", `${path}/pull-requests`).then((rows) => zod.z.array(PullRequestSchema).parse(rows)) : null
|
|
254
254
|
]);
|
|
255
255
|
return {
|
|
256
|
-
...
|
|
257
|
-
...subCards ? { subCards: subCards.map((row) =>
|
|
256
|
+
...require_tool_names.projectKanboCard(found, columns),
|
|
257
|
+
...subCards ? { subCards: subCards.map((row) => require_tool_names.projectKanboSubCard(row, columns)) } : {},
|
|
258
258
|
...comments ? {
|
|
259
|
-
comments: comments.slice(-commentLimit).map(
|
|
259
|
+
comments: comments.slice(-commentLimit).map(require_tool_names.projectKanboCardComment),
|
|
260
260
|
commentCount: comments.length
|
|
261
261
|
} : {},
|
|
262
|
-
...runs ? { runs: runs.map(
|
|
263
|
-
...history ? { history: history.map(
|
|
264
|
-
...pullRequests ? { pullRequests: pullRequests.map(
|
|
262
|
+
...runs ? { runs: runs.map(require_tool_names.projectKanboRun) } : {},
|
|
263
|
+
...history ? { history: history.map(require_tool_names.projectKanboFieldChange) } : {},
|
|
264
|
+
...pullRequests ? { pullRequests: pullRequests.map(require_tool_names.projectKanboPullRequest) } : {}
|
|
265
265
|
};
|
|
266
266
|
},
|
|
267
267
|
cardList: async ({ column, limit }) => (await cardPage({
|
|
@@ -283,17 +283,17 @@ function createHttpTransport(input) {
|
|
|
283
283
|
})),
|
|
284
284
|
cardMove: async ({ card, column }) => await projectOne(await request("PATCH", `/issues/${encodeURIComponent(card)}/status/${encodeURIComponent(column)}`)),
|
|
285
285
|
cardComment: async ({ card, content }) => CommentSchema.parse(await request("POST", `/issues/${encodeURIComponent(card)}/comments`, { content })),
|
|
286
|
-
cardLinkPullRequest: async ({ card, url }) =>
|
|
287
|
-
cardPullRequests: async ({ card }) => zod.z.array(PullRequestSchema).parse(await request("GET", `/issues/${encodeURIComponent(card)}/pull-requests`)).map(
|
|
286
|
+
cardLinkPullRequest: async ({ card, url }) => require_tool_names.projectKanboPullRequest(PullRequestSchema.parse(await request("POST", `/issues/${encodeURIComponent(card)}/pull-requests`, { url }))),
|
|
287
|
+
cardPullRequests: async ({ card }) => zod.z.array(PullRequestSchema).parse(await request("GET", `/issues/${encodeURIComponent(card)}/pull-requests`)).map(require_tool_names.projectKanboPullRequest),
|
|
288
288
|
statusLine: async ({ card, text }) => await projectOne(await request("PATCH", `/issues/${encodeURIComponent(card)}/status-line`, { statusLine: text })),
|
|
289
289
|
waitApproval: async ({ card, text }) => await projectOne(await request("POST", `/issues/${encodeURIComponent(card)}/wait-approval`, text === void 0 ? {} : { statusLine: text })),
|
|
290
|
-
runStart: async ({ card, agent, branch, executionMode, session }) =>
|
|
290
|
+
runStart: async ({ card, agent, branch, executionMode, session }) => require_tool_names.projectKanboRun(RunSchema.parse(await request("POST", `/issues/${encodeURIComponent(card)}/runs`, {
|
|
291
291
|
agentName: agent,
|
|
292
292
|
...branch !== void 0 ? { branch } : {},
|
|
293
293
|
...executionMode !== void 0 ? { executionMode } : {},
|
|
294
294
|
...session !== void 0 ? { externalSessionRef: session } : {}
|
|
295
295
|
}))),
|
|
296
|
-
runFinish: async ({ run, state, errorText }) =>
|
|
296
|
+
runFinish: async ({ run, state, errorText }) => require_tool_names.projectKanboRun(RunSchema.parse(await request("PATCH", `/issues/runs/${encodeURIComponent(run)}`, {
|
|
297
297
|
state,
|
|
298
298
|
...errorText !== void 0 ? { errorText } : {}
|
|
299
299
|
}))),
|
|
@@ -309,9 +309,9 @@ function createHttpTransport(input) {
|
|
|
309
309
|
}));
|
|
310
310
|
const columns = await readColumns();
|
|
311
311
|
return {
|
|
312
|
-
card:
|
|
313
|
-
run:
|
|
314
|
-
column: columns.find((column) => column.id === answer.column.id) ??
|
|
312
|
+
card: require_tool_names.projectKanboCard(answer.card, columns),
|
|
313
|
+
run: require_tool_names.projectKanboRun(answer.run),
|
|
314
|
+
column: columns.find((column) => column.id === answer.column.id) ?? require_tool_names.projectKanboColumn(answer.column, columns)
|
|
315
315
|
};
|
|
316
316
|
}
|
|
317
317
|
};
|
|
@@ -330,20 +330,19 @@ function findCardRow(rows, reference) {
|
|
|
330
330
|
return rows.find((row) => row.number === Number(digits) && (prefix === void 0 || row.id.slice(0, row.id.lastIndexOf("-")).toUpperCase() === prefix.toUpperCase()));
|
|
331
331
|
}
|
|
332
332
|
//#endregion
|
|
333
|
-
exports.DEFAULT_KANBO_CARD_INCLUDES =
|
|
334
|
-
exports.DEFAULT_KANBO_COMMENT_LIMIT =
|
|
335
|
-
exports.KANBO_CAPABILITIES_MARKDOWN_RESOURCE_URI =
|
|
336
|
-
exports.KANBO_CAPABILITIES_RESOURCE_URI =
|
|
337
|
-
exports.KANBO_CARD_INCLUDES =
|
|
338
|
-
exports.KANBO_MCP_INSTRUCTIONS =
|
|
339
|
-
exports.KANBO_MCP_SERVER_NAME =
|
|
340
|
-
exports.KANBO_TOOLS =
|
|
341
|
-
exports.
|
|
342
|
-
exports.
|
|
343
|
-
exports.buildKanboTools = require_manifest.buildKanboTools;
|
|
333
|
+
exports.DEFAULT_KANBO_CARD_INCLUDES = require_tool_names.DEFAULT_KANBO_CARD_INCLUDES;
|
|
334
|
+
exports.DEFAULT_KANBO_COMMENT_LIMIT = require_tool_names.DEFAULT_KANBO_COMMENT_LIMIT;
|
|
335
|
+
exports.KANBO_CAPABILITIES_MARKDOWN_RESOURCE_URI = require_tool_names.KANBO_CAPABILITIES_MARKDOWN_RESOURCE_URI;
|
|
336
|
+
exports.KANBO_CAPABILITIES_RESOURCE_URI = require_tool_names.KANBO_CAPABILITIES_RESOURCE_URI;
|
|
337
|
+
exports.KANBO_CARD_INCLUDES = require_tool_names.KANBO_CARD_INCLUDES;
|
|
338
|
+
exports.KANBO_MCP_INSTRUCTIONS = require_tool_names.KANBO_MCP_INSTRUCTIONS;
|
|
339
|
+
exports.KANBO_MCP_SERVER_NAME = require_tool_names.KANBO_MCP_SERVER_NAME;
|
|
340
|
+
exports.KANBO_TOOLS = require_tool_names.KANBO_TOOLS;
|
|
341
|
+
exports.KANBO_TOOL_NAMES = require_tool_names.KANBO_TOOL_NAMES;
|
|
342
|
+
exports.buildKanboTools = require_tool_names.buildKanboTools;
|
|
344
343
|
exports.createHttpTransport = createHttpTransport;
|
|
345
|
-
exports.createKanboMcpServer =
|
|
346
|
-
exports.matchesKanboCardQuery =
|
|
347
|
-
exports.pageOf =
|
|
348
|
-
exports.registerKanboCapabilitiesResources =
|
|
349
|
-
exports.registerKanboTools =
|
|
344
|
+
exports.createKanboMcpServer = require_tool_names.createKanboMcpServer;
|
|
345
|
+
exports.matchesKanboCardQuery = require_tool_names.matchesKanboCardQuery;
|
|
346
|
+
exports.pageOf = require_tool_names.pageOf;
|
|
347
|
+
exports.registerKanboCapabilitiesResources = require_tool_names.registerKanboCapabilitiesResources;
|
|
348
|
+
exports.registerKanboTools = require_tool_names.registerKanboTools;
|