@omnicoreos/planka-mcp 0.2.0 → 0.3.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/.agents/plugins/marketplace.json +20 -0
- package/.claude-plugin/marketplace.json +26 -0
- package/.claude-plugin/plugin.json +45 -0
- package/.codex-plugin/mcp.json +16 -0
- package/.codex-plugin/plugin.json +27 -0
- package/.mcp.json +17 -0
- package/CHANGELOG.md +510 -0
- package/README.es.md +294 -55
- package/README.md +293 -55
- package/dist/cli/init.d.ts +101 -0
- package/dist/cli/init.d.ts.map +1 -0
- package/dist/cli/init.js +481 -0
- package/dist/cli/init.js.map +1 -0
- package/dist/client.d.ts +32 -4
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +106 -32
- package/dist/client.js.map +1 -1
- package/dist/config/policy.d.ts +82 -0
- package/dist/config/policy.d.ts.map +1 -0
- package/dist/config/policy.js +226 -0
- package/dist/config/policy.js.map +1 -0
- package/dist/errors.d.ts +5 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +62 -5
- package/dist/errors.js.map +1 -1
- package/dist/identity.generated.d.ts +2 -1
- package/dist/identity.generated.d.ts.map +1 -1
- package/dist/identity.generated.js +2 -1
- package/dist/identity.generated.js.map +1 -1
- package/dist/index.js +85 -10
- package/dist/index.js.map +1 -1
- package/dist/instructions.d.ts +21 -0
- package/dist/instructions.d.ts.map +1 -0
- package/dist/instructions.js +37 -0
- package/dist/instructions.js.map +1 -0
- package/dist/operations/actions.d.ts +654 -0
- package/dist/operations/actions.d.ts.map +1 -0
- package/dist/operations/actions.js +154 -0
- package/dist/operations/actions.js.map +1 -0
- package/dist/operations/archive.d.ts +28 -0
- package/dist/operations/archive.d.ts.map +1 -0
- package/dist/operations/archive.js +74 -0
- package/dist/operations/archive.js.map +1 -0
- package/dist/operations/attachments.d.ts +1 -1
- package/dist/operations/attachments.d.ts.map +1 -1
- package/dist/operations/attachments.js +3 -1
- package/dist/operations/attachments.js.map +1 -1
- package/dist/operations/board-id.d.ts +1 -1
- package/dist/operations/board-id.d.ts.map +1 -1
- package/dist/operations/board-id.js +13 -7
- package/dist/operations/board-id.js.map +1 -1
- package/dist/operations/boards.d.ts +96 -19
- package/dist/operations/boards.d.ts.map +1 -1
- package/dist/operations/boards.js +377 -93
- package/dist/operations/boards.js.map +1 -1
- package/dist/operations/card-brief.d.ts +91 -0
- package/dist/operations/card-brief.d.ts.map +1 -0
- package/dist/operations/card-brief.js +79 -0
- package/dist/operations/card-brief.js.map +1 -0
- package/dist/operations/cards.d.ts +34 -9
- package/dist/operations/cards.d.ts.map +1 -1
- package/dist/operations/cards.js +60 -14
- package/dist/operations/cards.js.map +1 -1
- package/dist/operations/comments.d.ts +61 -4
- package/dist/operations/comments.d.ts.map +1 -1
- package/dist/operations/comments.js +91 -8
- package/dist/operations/comments.js.map +1 -1
- package/dist/operations/duplicate.d.ts +16 -0
- package/dist/operations/duplicate.d.ts.map +1 -0
- package/dist/operations/duplicate.js +43 -0
- package/dist/operations/duplicate.js.map +1 -0
- package/dist/operations/labels.d.ts +1 -1
- package/dist/operations/labels.d.ts.map +1 -1
- package/dist/operations/labels.js +7 -4
- package/dist/operations/labels.js.map +1 -1
- package/dist/operations/lists.d.ts +63 -1
- package/dist/operations/lists.d.ts.map +1 -1
- package/dist/operations/lists.js +97 -2
- package/dist/operations/lists.js.map +1 -1
- package/dist/operations/members.d.ts +39 -0
- package/dist/operations/members.d.ts.map +1 -0
- package/dist/operations/members.js +107 -0
- package/dist/operations/members.js.map +1 -0
- package/dist/operations/projects.d.ts +16 -0
- package/dist/operations/projects.d.ts.map +1 -1
- package/dist/operations/projects.js +54 -9
- package/dist/operations/projects.js.map +1 -1
- package/dist/operations/tasks.d.ts +1 -1
- package/dist/operations/tasks.d.ts.map +1 -1
- package/dist/operations/tasks.js +5 -3
- package/dist/operations/tasks.js.map +1 -1
- package/dist/operations/users.d.ts +123 -0
- package/dist/operations/users.d.ts.map +1 -0
- package/dist/operations/users.js +180 -0
- package/dist/operations/users.js.map +1 -0
- package/dist/operations/verify.d.ts +84 -0
- package/dist/operations/verify.d.ts.map +1 -0
- package/dist/operations/verify.js +124 -0
- package/dist/operations/verify.js.map +1 -0
- package/dist/prompts.d.ts +48 -0
- package/dist/prompts.d.ts.map +1 -0
- package/dist/prompts.js +155 -0
- package/dist/prompts.js.map +1 -0
- package/dist/resources.d.ts +38 -0
- package/dist/resources.d.ts.map +1 -0
- package/dist/resources.js +127 -0
- package/dist/resources.js.map +1 -0
- package/dist/schemas/entities.d.ts +115 -24
- package/dist/schemas/entities.d.ts.map +1 -1
- package/dist/schemas/entities.js +48 -0
- package/dist/schemas/entities.js.map +1 -1
- package/dist/schemas/requests.d.ts +121 -46
- package/dist/schemas/requests.d.ts.map +1 -1
- package/dist/schemas/requests.js +57 -12
- package/dist/schemas/requests.js.map +1 -1
- package/dist/schemas/responses.d.ts +541 -186
- package/dist/schemas/responses.d.ts.map +1 -1
- package/dist/schemas/responses.js +13 -2
- package/dist/schemas/responses.js.map +1 -1
- package/dist/tools/activity.d.ts +150 -0
- package/dist/tools/activity.d.ts.map +1 -0
- package/dist/tools/activity.js +198 -0
- package/dist/tools/activity.js.map +1 -0
- package/dist/tools/annotations.d.ts +52 -0
- package/dist/tools/annotations.d.ts.map +1 -0
- package/dist/tools/annotations.js +214 -0
- package/dist/tools/annotations.js.map +1 -0
- package/dist/tools/attachments.d.ts +28 -4
- package/dist/tools/attachments.d.ts.map +1 -1
- package/dist/tools/attachments.js +53 -34
- package/dist/tools/attachments.js.map +1 -1
- package/dist/tools/card-ops.d.ts +232 -0
- package/dist/tools/card-ops.d.ts.map +1 -0
- package/dist/tools/card-ops.js +333 -0
- package/dist/tools/card-ops.js.map +1 -0
- package/dist/tools/cards.d.ts +90 -8
- package/dist/tools/cards.d.ts.map +1 -1
- package/dist/tools/cards.js +411 -128
- package/dist/tools/cards.js.map +1 -1
- package/dist/tools/comments.d.ts +226 -22
- package/dist/tools/comments.d.ts.map +1 -1
- package/dist/tools/comments.js +163 -134
- package/dist/tools/comments.js.map +1 -1
- package/dist/tools/dispatch.d.ts +47 -0
- package/dist/tools/dispatch.d.ts.map +1 -0
- package/dist/tools/dispatch.js +63 -0
- package/dist/tools/dispatch.js.map +1 -0
- package/dist/tools/guard.d.ts +9 -0
- package/dist/tools/guard.d.ts.map +1 -0
- package/dist/tools/guard.js +20 -0
- package/dist/tools/guard.js.map +1 -0
- package/dist/tools/index.d.ts +748 -450
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +136 -17
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/labels.d.ts +213 -18
- package/dist/tools/labels.d.ts.map +1 -1
- package/dist/tools/labels.js +218 -203
- package/dist/tools/labels.js.map +1 -1
- package/dist/tools/lists.d.ts +222 -15
- package/dist/tools/lists.d.ts.map +1 -1
- package/dist/tools/lists.js +175 -156
- package/dist/tools/lists.js.map +1 -1
- package/dist/tools/members.d.ts +128 -0
- package/dist/tools/members.d.ts.map +1 -0
- package/dist/tools/members.js +150 -0
- package/dist/tools/members.js.map +1 -0
- package/dist/tools/navigation.d.ts +22 -2
- package/dist/tools/navigation.d.ts.map +1 -1
- package/dist/tools/navigation.js +60 -15
- package/dist/tools/navigation.js.map +1 -1
- package/dist/tools/queries.d.ts +196 -166
- package/dist/tools/queries.d.ts.map +1 -1
- package/dist/tools/queries.js +125 -155
- package/dist/tools/queries.js.map +1 -1
- package/dist/tools/tasks.d.ts +26 -6
- package/dist/tools/tasks.d.ts.map +1 -1
- package/dist/tools/tasks.js +110 -55
- package/dist/tools/tasks.js.map +1 -1
- package/dist/tools/users.d.ts +130 -0
- package/dist/tools/users.d.ts.map +1 -0
- package/dist/tools/users.js +165 -0
- package/dist/tools/users.js.map +1 -0
- package/docs/planka-2x-gotchas.md +121 -5
- package/docs/tools.md +771 -187
- package/docs/troubleshooting.md +137 -5
- package/hooks/hooks.json +15 -0
- package/hooks/preflight.mjs +100 -0
- package/package.json +6 -1
- package/scripts/setup.sh +8 -26
- package/scripts/sync-identity.mjs +55 -1
- package/server.json +87 -6
- package/tests/smoke/planka-smoke.mjs +512 -72
- package/workflow/skills/planka-close-card/SKILL.md +18 -5
- package/workflow/skills/planka-orchestrator/SKILL.md +36 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAiBA,OAAO,EACL,YAAY,EAIb,MAAM,qBAAqB,CAAC;AAE7B;;GAEG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;iBAiBe,CAAC;iBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAoEP,CAAC;yBAEnC,CAAA;aAAoB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBARwC,CAAC;aAC5D,CAAC;eAClB,CAAD;gBACmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsI84H,CAAC;oBAAqC,CAAC;wBAAsC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAAy2K,CAAC;mBAAyB,CAAC;eAA4B,CAAC;mBAAgC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAAwyG,CAAC;gBAAsB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA5H5sZ,CAAC;YAAkB,CAAC;mBAItD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyFC,CAAH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAlHK,CAAA;;;gBACI,CAAC;;;;;;;;;;;;;;;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MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EACL,gBAAgB,EAChB,gCAAgC,GACjC,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC"}
|
package/dist/tools/index.js
CHANGED
|
@@ -9,6 +9,13 @@ import { commentTools } from "./comments.js";
|
|
|
9
9
|
import { listTools } from "./lists.js";
|
|
10
10
|
import { attachmentTools } from "./attachments.js";
|
|
11
11
|
import { queryTools } from "./queries.js";
|
|
12
|
+
import { activityTools } from "./activity.js";
|
|
13
|
+
import { memberTools } from "./members.js";
|
|
14
|
+
import { userTools } from "./users.js";
|
|
15
|
+
import { cardOpsTools } from "./card-ops.js";
|
|
16
|
+
import { toolPresentation } from "./annotations.js";
|
|
17
|
+
import { missingRequiredArgs } from "./dispatch.js";
|
|
18
|
+
import { getPolicy, isToolVisible, toolBlockedReason, } from "../config/policy.js";
|
|
12
19
|
/**
|
|
13
20
|
* All registered tools.
|
|
14
21
|
*/
|
|
@@ -21,34 +28,140 @@ export const allTools = [
|
|
|
21
28
|
...commentTools,
|
|
22
29
|
...listTools,
|
|
23
30
|
...attachmentTools,
|
|
31
|
+
...activityTools,
|
|
32
|
+
...memberTools,
|
|
33
|
+
...userTools,
|
|
34
|
+
...cardOpsTools,
|
|
24
35
|
];
|
|
36
|
+
/**
|
|
37
|
+
* A tool the policy switched off, kept callable so the refusal can explain
|
|
38
|
+
* itself. Hiding it from tools/list is not enough: a model working from a
|
|
39
|
+
* cached list, or from a skill that names the tool, would otherwise get a
|
|
40
|
+
* generic "unknown tool" and keep trying.
|
|
41
|
+
*/
|
|
42
|
+
function blockedTool(name, reason) {
|
|
43
|
+
return {
|
|
44
|
+
name,
|
|
45
|
+
description: reason,
|
|
46
|
+
inputSchema: { type: "object", properties: {} },
|
|
47
|
+
handler: async () => ({
|
|
48
|
+
content: [{ type: "text", text: reason }],
|
|
49
|
+
isError: true,
|
|
50
|
+
}),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
25
53
|
/**
|
|
26
54
|
* Get a tool by name.
|
|
55
|
+
*
|
|
56
|
+
* Returns a refusing stub for tools disabled by PLANKA_READ_ONLY or
|
|
57
|
+
* PLANKA_DISABLED_TOOLS, and undefined only for names that do not exist.
|
|
27
58
|
*/
|
|
28
|
-
export function getTool(name) {
|
|
29
|
-
|
|
59
|
+
export function getTool(name, policy = getPolicy()) {
|
|
60
|
+
const tool = allTools.find((t) => t.name === name);
|
|
61
|
+
if (!tool)
|
|
62
|
+
return undefined;
|
|
63
|
+
const reason = toolBlockedReason(tool.name, policy);
|
|
64
|
+
return reason ? blockedTool(tool.name, reason) : tool;
|
|
30
65
|
}
|
|
31
66
|
/**
|
|
32
67
|
* Required inputSchema fields that never arrived.
|
|
33
68
|
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
69
|
+
* With one tool per action (create/update/delete instead of a `manage_*` enum)
|
|
70
|
+
* `required` is finally expressive enough for this generic check to carry the
|
|
71
|
+
* weight the hand-written guards used to.
|
|
72
|
+
*
|
|
73
|
+
* Checked against `effectiveInputSchema`, never the raw registry schema: what
|
|
74
|
+
* the deployment ANNOUNCED is what the call is judged by. Doing it the other
|
|
75
|
+
* way is how `PLANKA_DEFAULT_BOARD_ID` used to reject `planka_board_summary {}`
|
|
76
|
+
* while its own tools/list entry said `boardId` was optional.
|
|
77
|
+
*/
|
|
78
|
+
export function findMissingRequiredArgs(tool, args, policy = getPolicy()) {
|
|
79
|
+
return missingRequiredArgs(effectiveInputSchema(tool, policy), args);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Tools kept only so callers written against the old names keep working.
|
|
83
|
+
*
|
|
84
|
+
* Each one routes to the create_/update_/delete_ tool that replaced it and adds
|
|
85
|
+
* nothing else. They are still callable when hidden — a model working from a
|
|
86
|
+
* cached tools/list must get the real behaviour, not "unknown tool".
|
|
87
|
+
*
|
|
88
|
+
* `PLANKA_HIDE_DEPRECATED=true` drops them from tools/list, which is worth a
|
|
89
|
+
* few hundred characters of context per session on a deployment that has
|
|
90
|
+
* already migrated.
|
|
91
|
+
*/
|
|
92
|
+
export const DEPRECATED_TOOL_NAMES = new Set([
|
|
93
|
+
"planka_manage_labels",
|
|
94
|
+
"planka_manage_lists",
|
|
95
|
+
"planka_manage_comment",
|
|
96
|
+
"planka_add_comment",
|
|
97
|
+
// Not an alias, but its own description opens with DEPRECATED: the summary
|
|
98
|
+
// plus find_cards replaced it, and it is the most expensive read here.
|
|
99
|
+
"planka_get_board",
|
|
100
|
+
// Literal aliases: same handler, same properties, and their own descriptions
|
|
101
|
+
// already said "prefer planka_find_cards" / "prefer planka_board_summary".
|
|
102
|
+
// Together they are the two most expensive schemas in tools/list.
|
|
103
|
+
"planka_list_cards",
|
|
104
|
+
"planka_list_lists",
|
|
105
|
+
]);
|
|
106
|
+
/**
|
|
107
|
+
* With a default board configured, `boardId` stops being mandatory.
|
|
108
|
+
*
|
|
109
|
+
* Done here rather than in each tool file so the individual schemas stay
|
|
110
|
+
* declarative: the tools describe Planka, this describes the deployment.
|
|
111
|
+
* Never mutates the registry — the returned schema is a copy.
|
|
112
|
+
*/
|
|
113
|
+
function applyDefaultBoard(inputSchema, defaultBoardId) {
|
|
114
|
+
const property = inputSchema.properties.boardId;
|
|
115
|
+
if (!property)
|
|
116
|
+
return inputSchema;
|
|
117
|
+
const description = typeof property.description === "string" ? property.description : "";
|
|
118
|
+
const note = `boardId defaults to PLANKA_DEFAULT_BOARD_ID (${defaultBoardId}) when omitted.`;
|
|
119
|
+
return {
|
|
120
|
+
...inputSchema,
|
|
121
|
+
properties: {
|
|
122
|
+
...inputSchema.properties,
|
|
123
|
+
boardId: {
|
|
124
|
+
...property,
|
|
125
|
+
description: description ? `${description} ${note}` : note,
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
...(inputSchema.required
|
|
129
|
+
? { required: inputSchema.required.filter((field) => field !== "boardId") }
|
|
130
|
+
: {}),
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* The schema a tool is actually published — and judged — with.
|
|
135
|
+
*
|
|
136
|
+
* The single source of truth for both sides of the contract: `tools/list`
|
|
137
|
+
* advertises this, and the runtime presence check validates against this.
|
|
138
|
+
*/
|
|
139
|
+
export function effectiveInputSchema(tool, policy = getPolicy()) {
|
|
140
|
+
return policy.defaultBoardId
|
|
141
|
+
? applyDefaultBoard(tool.inputSchema, policy.defaultBoardId)
|
|
142
|
+
: tool.inputSchema;
|
|
42
143
|
}
|
|
43
144
|
/**
|
|
44
|
-
* Get all tool definitions (for MCP listTools)
|
|
145
|
+
* Get all tool definitions (for MCP listTools), after the access policy:
|
|
146
|
+
* read-only and disabled tools are not advertised at all.
|
|
45
147
|
*/
|
|
46
|
-
export function getToolDefinitions() {
|
|
47
|
-
return allTools
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
148
|
+
export function getToolDefinitions(policy = getPolicy()) {
|
|
149
|
+
return allTools
|
|
150
|
+
.filter((tool) => isToolVisible(tool.name, policy))
|
|
151
|
+
.filter((tool) => !(policy.hideDeprecated && DEPRECATED_TOOL_NAMES.has(tool.name)))
|
|
152
|
+
.map((tool) => {
|
|
153
|
+
// Annotations live in their own map; forgetting to spread them here is how
|
|
154
|
+
// they get silently dropped from tools/list.
|
|
155
|
+
const presentation = toolPresentation[tool.name];
|
|
156
|
+
return {
|
|
157
|
+
name: tool.name,
|
|
158
|
+
...(presentation ? { title: presentation.title } : {}),
|
|
159
|
+
description: tool.description,
|
|
160
|
+
inputSchema: effectiveInputSchema(tool, policy),
|
|
161
|
+
...(presentation ? { annotations: presentation.annotations } : {}),
|
|
162
|
+
...(presentation?._meta ? { _meta: presentation._meta } : {}),
|
|
163
|
+
};
|
|
164
|
+
});
|
|
52
165
|
}
|
|
53
166
|
// Re-export individual tool groups
|
|
54
167
|
export { navigationTools } from "./navigation.js";
|
|
@@ -59,4 +172,10 @@ export { commentTools } from "./comments.js";
|
|
|
59
172
|
export { listTools } from "./lists.js";
|
|
60
173
|
export { attachmentTools } from "./attachments.js";
|
|
61
174
|
export { queryTools } from "./queries.js";
|
|
175
|
+
export { activityTools } from "./activity.js";
|
|
176
|
+
export { memberTools } from "./members.js";
|
|
177
|
+
export { userTools } from "./users.js";
|
|
178
|
+
export { cardOpsTools } from "./card-ops.js";
|
|
179
|
+
export { missingRequiredArgs } from "./dispatch.js";
|
|
180
|
+
export { toolPresentation, TOOLS_REQUIRING_USER_INTERACTION, } from "./annotations.js";
|
|
62
181
|
//# sourceMappingURL=index.js.map
|
package/dist/tools/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,C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AAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EACL,gBAAgB,EAChB,gCAAgC,GACjC,MAAM,kBAAkB,CAAC"}
|
package/dist/tools/labels.d.ts
CHANGED
|
@@ -1,6 +1,109 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Tool:
|
|
3
|
-
|
|
2
|
+
* Tool: planka_create_label
|
|
3
|
+
*/
|
|
4
|
+
export declare const createLabelTool: {
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
inputSchema: {
|
|
8
|
+
type: "object";
|
|
9
|
+
properties: {
|
|
10
|
+
boardId: {
|
|
11
|
+
type: string;
|
|
12
|
+
description: string;
|
|
13
|
+
};
|
|
14
|
+
name: {
|
|
15
|
+
type: string;
|
|
16
|
+
description: string;
|
|
17
|
+
};
|
|
18
|
+
color: {
|
|
19
|
+
type: string;
|
|
20
|
+
enum: readonly string[];
|
|
21
|
+
description: string;
|
|
22
|
+
};
|
|
23
|
+
position: {
|
|
24
|
+
type: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
required: string[];
|
|
29
|
+
};
|
|
30
|
+
handler: (params: {
|
|
31
|
+
boardId?: string;
|
|
32
|
+
name: string;
|
|
33
|
+
color: string;
|
|
34
|
+
position?: number;
|
|
35
|
+
}) => Promise<{
|
|
36
|
+
isError?: true | undefined;
|
|
37
|
+
content: {
|
|
38
|
+
type: "text";
|
|
39
|
+
text: string;
|
|
40
|
+
}[];
|
|
41
|
+
} | import("./guard.js").ToolReply>;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Tool: planka_update_label
|
|
45
|
+
*/
|
|
46
|
+
export declare const updateLabelTool: {
|
|
47
|
+
name: string;
|
|
48
|
+
description: string;
|
|
49
|
+
inputSchema: {
|
|
50
|
+
type: "object";
|
|
51
|
+
properties: {
|
|
52
|
+
labelId: {
|
|
53
|
+
type: string;
|
|
54
|
+
description: string;
|
|
55
|
+
};
|
|
56
|
+
name: {
|
|
57
|
+
type: string;
|
|
58
|
+
description: string;
|
|
59
|
+
};
|
|
60
|
+
color: {
|
|
61
|
+
type: string;
|
|
62
|
+
description: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
required: string[];
|
|
66
|
+
};
|
|
67
|
+
handler: (params: {
|
|
68
|
+
labelId: string;
|
|
69
|
+
name?: string;
|
|
70
|
+
color?: string;
|
|
71
|
+
}) => Promise<{
|
|
72
|
+
isError?: true | undefined;
|
|
73
|
+
content: {
|
|
74
|
+
type: "text";
|
|
75
|
+
text: string;
|
|
76
|
+
}[];
|
|
77
|
+
} | import("./guard.js").ToolReply>;
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* Tool: planka_delete_label
|
|
81
|
+
*/
|
|
82
|
+
export declare const deleteLabelTool: {
|
|
83
|
+
name: string;
|
|
84
|
+
description: string;
|
|
85
|
+
inputSchema: {
|
|
86
|
+
type: "object";
|
|
87
|
+
properties: {
|
|
88
|
+
labelId: {
|
|
89
|
+
type: string;
|
|
90
|
+
description: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
required: string[];
|
|
94
|
+
};
|
|
95
|
+
handler: (params: {
|
|
96
|
+
labelId: string;
|
|
97
|
+
}) => Promise<{
|
|
98
|
+
isError?: true | undefined;
|
|
99
|
+
content: {
|
|
100
|
+
type: "text";
|
|
101
|
+
text: string;
|
|
102
|
+
}[];
|
|
103
|
+
} | import("./guard.js").ToolReply>;
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* Tool: planka_manage_labels (DEPRECATED alias)
|
|
4
107
|
*/
|
|
5
108
|
export declare const manageLabelsTool: {
|
|
6
109
|
name: string;
|
|
@@ -39,17 +142,17 @@ export declare const manageLabelsTool: {
|
|
|
39
142
|
name?: string;
|
|
40
143
|
color?: string;
|
|
41
144
|
}) => Promise<{
|
|
42
|
-
content: {
|
|
43
|
-
type:
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
isError
|
|
145
|
+
content: Array<{
|
|
146
|
+
type: string;
|
|
147
|
+
[key: string]: unknown;
|
|
148
|
+
}>;
|
|
149
|
+
isError?: boolean;
|
|
47
150
|
} | {
|
|
48
151
|
content: {
|
|
49
152
|
type: "text";
|
|
50
153
|
text: string;
|
|
51
154
|
}[];
|
|
52
|
-
isError
|
|
155
|
+
isError: true;
|
|
53
156
|
}>;
|
|
54
157
|
};
|
|
55
158
|
/**
|
|
@@ -96,20 +199,112 @@ export declare const setCardLabelsTool: {
|
|
|
96
199
|
labelIds?: string[];
|
|
97
200
|
removeLabelIds?: string[];
|
|
98
201
|
}) => Promise<{
|
|
202
|
+
isError?: true | undefined;
|
|
99
203
|
content: {
|
|
100
204
|
type: "text";
|
|
101
205
|
text: string;
|
|
102
206
|
}[];
|
|
103
|
-
isError: boolean;
|
|
104
207
|
} | {
|
|
105
|
-
isError?: true | undefined;
|
|
106
208
|
content: {
|
|
107
209
|
type: "text";
|
|
108
210
|
text: string;
|
|
109
211
|
}[];
|
|
212
|
+
isError: boolean;
|
|
110
213
|
}>;
|
|
111
214
|
};
|
|
112
215
|
export declare const labelTools: ({
|
|
216
|
+
name: string;
|
|
217
|
+
description: string;
|
|
218
|
+
inputSchema: {
|
|
219
|
+
type: "object";
|
|
220
|
+
properties: {
|
|
221
|
+
boardId: {
|
|
222
|
+
type: string;
|
|
223
|
+
description: string;
|
|
224
|
+
};
|
|
225
|
+
name: {
|
|
226
|
+
type: string;
|
|
227
|
+
description: string;
|
|
228
|
+
};
|
|
229
|
+
color: {
|
|
230
|
+
type: string;
|
|
231
|
+
enum: readonly string[];
|
|
232
|
+
description: string;
|
|
233
|
+
};
|
|
234
|
+
position: {
|
|
235
|
+
type: string;
|
|
236
|
+
description: string;
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
required: string[];
|
|
240
|
+
};
|
|
241
|
+
handler: (params: {
|
|
242
|
+
boardId?: string;
|
|
243
|
+
name: string;
|
|
244
|
+
color: string;
|
|
245
|
+
position?: number;
|
|
246
|
+
}) => Promise<{
|
|
247
|
+
isError?: true | undefined;
|
|
248
|
+
content: {
|
|
249
|
+
type: "text";
|
|
250
|
+
text: string;
|
|
251
|
+
}[];
|
|
252
|
+
} | import("./guard.js").ToolReply>;
|
|
253
|
+
} | {
|
|
254
|
+
name: string;
|
|
255
|
+
description: string;
|
|
256
|
+
inputSchema: {
|
|
257
|
+
type: "object";
|
|
258
|
+
properties: {
|
|
259
|
+
labelId: {
|
|
260
|
+
type: string;
|
|
261
|
+
description: string;
|
|
262
|
+
};
|
|
263
|
+
name: {
|
|
264
|
+
type: string;
|
|
265
|
+
description: string;
|
|
266
|
+
};
|
|
267
|
+
color: {
|
|
268
|
+
type: string;
|
|
269
|
+
description: string;
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
required: string[];
|
|
273
|
+
};
|
|
274
|
+
handler: (params: {
|
|
275
|
+
labelId: string;
|
|
276
|
+
name?: string;
|
|
277
|
+
color?: string;
|
|
278
|
+
}) => Promise<{
|
|
279
|
+
isError?: true | undefined;
|
|
280
|
+
content: {
|
|
281
|
+
type: "text";
|
|
282
|
+
text: string;
|
|
283
|
+
}[];
|
|
284
|
+
} | import("./guard.js").ToolReply>;
|
|
285
|
+
} | {
|
|
286
|
+
name: string;
|
|
287
|
+
description: string;
|
|
288
|
+
inputSchema: {
|
|
289
|
+
type: "object";
|
|
290
|
+
properties: {
|
|
291
|
+
labelId: {
|
|
292
|
+
type: string;
|
|
293
|
+
description: string;
|
|
294
|
+
};
|
|
295
|
+
};
|
|
296
|
+
required: string[];
|
|
297
|
+
};
|
|
298
|
+
handler: (params: {
|
|
299
|
+
labelId: string;
|
|
300
|
+
}) => Promise<{
|
|
301
|
+
isError?: true | undefined;
|
|
302
|
+
content: {
|
|
303
|
+
type: "text";
|
|
304
|
+
text: string;
|
|
305
|
+
}[];
|
|
306
|
+
} | import("./guard.js").ToolReply>;
|
|
307
|
+
} | {
|
|
113
308
|
name: string;
|
|
114
309
|
description: string;
|
|
115
310
|
inputSchema: {
|
|
@@ -146,17 +341,17 @@ export declare const labelTools: ({
|
|
|
146
341
|
name?: string;
|
|
147
342
|
color?: string;
|
|
148
343
|
}) => Promise<{
|
|
149
|
-
content: {
|
|
150
|
-
type:
|
|
151
|
-
|
|
152
|
-
}
|
|
153
|
-
isError
|
|
344
|
+
content: Array<{
|
|
345
|
+
type: string;
|
|
346
|
+
[key: string]: unknown;
|
|
347
|
+
}>;
|
|
348
|
+
isError?: boolean;
|
|
154
349
|
} | {
|
|
155
350
|
content: {
|
|
156
351
|
type: "text";
|
|
157
352
|
text: string;
|
|
158
353
|
}[];
|
|
159
|
-
isError
|
|
354
|
+
isError: true;
|
|
160
355
|
}>;
|
|
161
356
|
} | {
|
|
162
357
|
name: string;
|
|
@@ -198,17 +393,17 @@ export declare const labelTools: ({
|
|
|
198
393
|
labelIds?: string[];
|
|
199
394
|
removeLabelIds?: string[];
|
|
200
395
|
}) => Promise<{
|
|
396
|
+
isError?: true | undefined;
|
|
201
397
|
content: {
|
|
202
398
|
type: "text";
|
|
203
399
|
text: string;
|
|
204
400
|
}[];
|
|
205
|
-
isError: boolean;
|
|
206
401
|
} | {
|
|
207
|
-
isError?: true | undefined;
|
|
208
402
|
content: {
|
|
209
403
|
type: "text";
|
|
210
404
|
text: string;
|
|
211
405
|
}[];
|
|
406
|
+
isError: boolean;
|
|
212
407
|
}>;
|
|
213
408
|
})[];
|
|
214
409
|
//# sourceMappingURL=labels.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"labels.d.ts","sourceRoot":"","sources":["../../src/tools/labels.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"labels.d.ts","sourceRoot":"","sources":["../../src/tools/labels.ts"],"names":[],"mappings":"AA+DA;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;sBAcF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