@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.
Files changed (195) hide show
  1. package/.agents/plugins/marketplace.json +20 -0
  2. package/.claude-plugin/marketplace.json +26 -0
  3. package/.claude-plugin/plugin.json +45 -0
  4. package/.codex-plugin/mcp.json +16 -0
  5. package/.codex-plugin/plugin.json +27 -0
  6. package/.mcp.json +17 -0
  7. package/CHANGELOG.md +510 -0
  8. package/README.es.md +294 -55
  9. package/README.md +293 -55
  10. package/dist/cli/init.d.ts +101 -0
  11. package/dist/cli/init.d.ts.map +1 -0
  12. package/dist/cli/init.js +481 -0
  13. package/dist/cli/init.js.map +1 -0
  14. package/dist/client.d.ts +32 -4
  15. package/dist/client.d.ts.map +1 -1
  16. package/dist/client.js +106 -32
  17. package/dist/client.js.map +1 -1
  18. package/dist/config/policy.d.ts +82 -0
  19. package/dist/config/policy.d.ts.map +1 -0
  20. package/dist/config/policy.js +226 -0
  21. package/dist/config/policy.js.map +1 -0
  22. package/dist/errors.d.ts +5 -1
  23. package/dist/errors.d.ts.map +1 -1
  24. package/dist/errors.js +62 -5
  25. package/dist/errors.js.map +1 -1
  26. package/dist/identity.generated.d.ts +2 -1
  27. package/dist/identity.generated.d.ts.map +1 -1
  28. package/dist/identity.generated.js +2 -1
  29. package/dist/identity.generated.js.map +1 -1
  30. package/dist/index.js +85 -10
  31. package/dist/index.js.map +1 -1
  32. package/dist/instructions.d.ts +21 -0
  33. package/dist/instructions.d.ts.map +1 -0
  34. package/dist/instructions.js +37 -0
  35. package/dist/instructions.js.map +1 -0
  36. package/dist/operations/actions.d.ts +654 -0
  37. package/dist/operations/actions.d.ts.map +1 -0
  38. package/dist/operations/actions.js +154 -0
  39. package/dist/operations/actions.js.map +1 -0
  40. package/dist/operations/archive.d.ts +28 -0
  41. package/dist/operations/archive.d.ts.map +1 -0
  42. package/dist/operations/archive.js +74 -0
  43. package/dist/operations/archive.js.map +1 -0
  44. package/dist/operations/attachments.d.ts +1 -1
  45. package/dist/operations/attachments.d.ts.map +1 -1
  46. package/dist/operations/attachments.js +3 -1
  47. package/dist/operations/attachments.js.map +1 -1
  48. package/dist/operations/board-id.d.ts +1 -1
  49. package/dist/operations/board-id.d.ts.map +1 -1
  50. package/dist/operations/board-id.js +13 -7
  51. package/dist/operations/board-id.js.map +1 -1
  52. package/dist/operations/boards.d.ts +96 -19
  53. package/dist/operations/boards.d.ts.map +1 -1
  54. package/dist/operations/boards.js +377 -93
  55. package/dist/operations/boards.js.map +1 -1
  56. package/dist/operations/card-brief.d.ts +91 -0
  57. package/dist/operations/card-brief.d.ts.map +1 -0
  58. package/dist/operations/card-brief.js +79 -0
  59. package/dist/operations/card-brief.js.map +1 -0
  60. package/dist/operations/cards.d.ts +34 -9
  61. package/dist/operations/cards.d.ts.map +1 -1
  62. package/dist/operations/cards.js +60 -14
  63. package/dist/operations/cards.js.map +1 -1
  64. package/dist/operations/comments.d.ts +61 -4
  65. package/dist/operations/comments.d.ts.map +1 -1
  66. package/dist/operations/comments.js +91 -8
  67. package/dist/operations/comments.js.map +1 -1
  68. package/dist/operations/duplicate.d.ts +16 -0
  69. package/dist/operations/duplicate.d.ts.map +1 -0
  70. package/dist/operations/duplicate.js +43 -0
  71. package/dist/operations/duplicate.js.map +1 -0
  72. package/dist/operations/labels.d.ts +1 -1
  73. package/dist/operations/labels.d.ts.map +1 -1
  74. package/dist/operations/labels.js +7 -4
  75. package/dist/operations/labels.js.map +1 -1
  76. package/dist/operations/lists.d.ts +63 -1
  77. package/dist/operations/lists.d.ts.map +1 -1
  78. package/dist/operations/lists.js +97 -2
  79. package/dist/operations/lists.js.map +1 -1
  80. package/dist/operations/members.d.ts +39 -0
  81. package/dist/operations/members.d.ts.map +1 -0
  82. package/dist/operations/members.js +107 -0
  83. package/dist/operations/members.js.map +1 -0
  84. package/dist/operations/projects.d.ts +16 -0
  85. package/dist/operations/projects.d.ts.map +1 -1
  86. package/dist/operations/projects.js +54 -9
  87. package/dist/operations/projects.js.map +1 -1
  88. package/dist/operations/tasks.d.ts +1 -1
  89. package/dist/operations/tasks.d.ts.map +1 -1
  90. package/dist/operations/tasks.js +5 -3
  91. package/dist/operations/tasks.js.map +1 -1
  92. package/dist/operations/users.d.ts +123 -0
  93. package/dist/operations/users.d.ts.map +1 -0
  94. package/dist/operations/users.js +180 -0
  95. package/dist/operations/users.js.map +1 -0
  96. package/dist/operations/verify.d.ts +84 -0
  97. package/dist/operations/verify.d.ts.map +1 -0
  98. package/dist/operations/verify.js +124 -0
  99. package/dist/operations/verify.js.map +1 -0
  100. package/dist/prompts.d.ts +48 -0
  101. package/dist/prompts.d.ts.map +1 -0
  102. package/dist/prompts.js +155 -0
  103. package/dist/prompts.js.map +1 -0
  104. package/dist/resources.d.ts +38 -0
  105. package/dist/resources.d.ts.map +1 -0
  106. package/dist/resources.js +127 -0
  107. package/dist/resources.js.map +1 -0
  108. package/dist/schemas/entities.d.ts +115 -24
  109. package/dist/schemas/entities.d.ts.map +1 -1
  110. package/dist/schemas/entities.js +48 -0
  111. package/dist/schemas/entities.js.map +1 -1
  112. package/dist/schemas/requests.d.ts +121 -46
  113. package/dist/schemas/requests.d.ts.map +1 -1
  114. package/dist/schemas/requests.js +57 -12
  115. package/dist/schemas/requests.js.map +1 -1
  116. package/dist/schemas/responses.d.ts +541 -186
  117. package/dist/schemas/responses.d.ts.map +1 -1
  118. package/dist/schemas/responses.js +13 -2
  119. package/dist/schemas/responses.js.map +1 -1
  120. package/dist/tools/activity.d.ts +150 -0
  121. package/dist/tools/activity.d.ts.map +1 -0
  122. package/dist/tools/activity.js +198 -0
  123. package/dist/tools/activity.js.map +1 -0
  124. package/dist/tools/annotations.d.ts +52 -0
  125. package/dist/tools/annotations.d.ts.map +1 -0
  126. package/dist/tools/annotations.js +214 -0
  127. package/dist/tools/annotations.js.map +1 -0
  128. package/dist/tools/attachments.d.ts +28 -4
  129. package/dist/tools/attachments.d.ts.map +1 -1
  130. package/dist/tools/attachments.js +53 -34
  131. package/dist/tools/attachments.js.map +1 -1
  132. package/dist/tools/card-ops.d.ts +232 -0
  133. package/dist/tools/card-ops.d.ts.map +1 -0
  134. package/dist/tools/card-ops.js +333 -0
  135. package/dist/tools/card-ops.js.map +1 -0
  136. package/dist/tools/cards.d.ts +90 -8
  137. package/dist/tools/cards.d.ts.map +1 -1
  138. package/dist/tools/cards.js +411 -128
  139. package/dist/tools/cards.js.map +1 -1
  140. package/dist/tools/comments.d.ts +226 -22
  141. package/dist/tools/comments.d.ts.map +1 -1
  142. package/dist/tools/comments.js +163 -134
  143. package/dist/tools/comments.js.map +1 -1
  144. package/dist/tools/dispatch.d.ts +47 -0
  145. package/dist/tools/dispatch.d.ts.map +1 -0
  146. package/dist/tools/dispatch.js +63 -0
  147. package/dist/tools/dispatch.js.map +1 -0
  148. package/dist/tools/guard.d.ts +9 -0
  149. package/dist/tools/guard.d.ts.map +1 -0
  150. package/dist/tools/guard.js +20 -0
  151. package/dist/tools/guard.js.map +1 -0
  152. package/dist/tools/index.d.ts +748 -450
  153. package/dist/tools/index.d.ts.map +1 -1
  154. package/dist/tools/index.js +136 -17
  155. package/dist/tools/index.js.map +1 -1
  156. package/dist/tools/labels.d.ts +213 -18
  157. package/dist/tools/labels.d.ts.map +1 -1
  158. package/dist/tools/labels.js +218 -203
  159. package/dist/tools/labels.js.map +1 -1
  160. package/dist/tools/lists.d.ts +222 -15
  161. package/dist/tools/lists.d.ts.map +1 -1
  162. package/dist/tools/lists.js +175 -156
  163. package/dist/tools/lists.js.map +1 -1
  164. package/dist/tools/members.d.ts +128 -0
  165. package/dist/tools/members.d.ts.map +1 -0
  166. package/dist/tools/members.js +150 -0
  167. package/dist/tools/members.js.map +1 -0
  168. package/dist/tools/navigation.d.ts +22 -2
  169. package/dist/tools/navigation.d.ts.map +1 -1
  170. package/dist/tools/navigation.js +60 -15
  171. package/dist/tools/navigation.js.map +1 -1
  172. package/dist/tools/queries.d.ts +196 -166
  173. package/dist/tools/queries.d.ts.map +1 -1
  174. package/dist/tools/queries.js +125 -155
  175. package/dist/tools/queries.js.map +1 -1
  176. package/dist/tools/tasks.d.ts +26 -6
  177. package/dist/tools/tasks.d.ts.map +1 -1
  178. package/dist/tools/tasks.js +110 -55
  179. package/dist/tools/tasks.js.map +1 -1
  180. package/dist/tools/users.d.ts +130 -0
  181. package/dist/tools/users.d.ts.map +1 -0
  182. package/dist/tools/users.js +165 -0
  183. package/dist/tools/users.js.map +1 -0
  184. package/docs/planka-2x-gotchas.md +121 -5
  185. package/docs/tools.md +771 -187
  186. package/docs/troubleshooting.md +137 -5
  187. package/hooks/hooks.json +15 -0
  188. package/hooks/preflight.mjs +100 -0
  189. package/package.json +6 -1
  190. package/scripts/setup.sh +8 -26
  191. package/scripts/sync-identity.mjs +55 -1
  192. package/server.json +87 -6
  193. package/tests/smoke/planka-smoke.mjs +512 -72
  194. package/workflow/skills/planka-close-card/SKILL.md +18 -5
  195. 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":"AAYA;;GAEG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;iBAayC,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAoDjC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAlBO,CAAA;aAAmB,CAAC;eACtD,CAAA;gBAAsB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA+B8iH,CAAC;mBAAyB,CAAC;eAA4B,CAAC;mBAAgC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAA8hE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAJvrL,CAAA;mB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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"}
@@ -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
- return allTools.find((tool) => tool.name === name);
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
- * The inputSchema is JSON Schema, not Zod: this only checks presence, which is
35
- * what stops a missing `tasks` from blowing up inside the handler as "Cannot
36
- * read properties of undefined (reading 'map')".
37
- */
38
- export function findMissingRequiredArgs(tool, args) {
39
- const required = tool.inputSchema.required ?? [];
40
- const received = args && typeof args === "object" ? args : {};
41
- return required.filter((field) => received[field] === undefined || received[field] === null);
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.map((tool) => ({
48
- name: tool.name,
49
- description: tool.description,
50
- inputSchema: tool.inputSchema,
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
@@ -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;AAE1C;;GAEG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,GAA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,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,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"}
@@ -1,6 +1,109 @@
1
1
  /**
2
- * Tool: planka_manage_labels
3
- * Create, update, or delete labels on a board.
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: "text";
44
- text: string;
45
- }[];
46
- isError: boolean;
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?: undefined;
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: "text";
151
- text: string;
152
- }[];
153
- isError: boolean;
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?: undefined;
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":"AAgBA;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBA8BH;QACtB,MAAM,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;QACvC,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB;;;;;;;;;;;;;CA0LF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBA+BJ;QACtB,MAAM,EAAE,MAAM,CAAC;QACf,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;QACvB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;QACpB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;KAC3B;;;;;;;;;;;;;CAiEF,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBA7SG;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