kaiten-cli 0.3.3__py3-none-any.whl
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.
- kaiten_cli/__init__.py +5 -0
- kaiten_cli/__main__.py +9 -0
- kaiten_cli/agent_gateway.py +577 -0
- kaiten_cli/app.py +1636 -0
- kaiten_cli/completion.py +570 -0
- kaiten_cli/discovery.py +39 -0
- kaiten_cli/errors.py +79 -0
- kaiten_cli/i18n.py +92 -0
- kaiten_cli/locales/ru.json +2967 -0
- kaiten_cli/localized_click.py +160 -0
- kaiten_cli/models.py +202 -0
- kaiten_cli/profiles.py +316 -0
- kaiten_cli/registry/__init__.py +260 -0
- kaiten_cli/registry/addons.py +392 -0
- kaiten_cli/registry/audit_and_analytics.py +451 -0
- kaiten_cli/registry/automation_schema.py +44 -0
- kaiten_cli/registry/automation_schemas.json +7417 -0
- kaiten_cli/registry/automations.py +342 -0
- kaiten_cli/registry/base.py +62 -0
- kaiten_cli/registry/blockers.py +320 -0
- kaiten_cli/registry/boards.py +520 -0
- kaiten_cli/registry/card_relations.py +376 -0
- kaiten_cli/registry/card_types.py +363 -0
- kaiten_cli/registry/cards.py +1329 -0
- kaiten_cli/registry/charts.py +539 -0
- kaiten_cli/registry/checklists.py +600 -0
- kaiten_cli/registry/columns.py +558 -0
- kaiten_cli/registry/comments.py +224 -0
- kaiten_cli/registry/custom_directories.py +980 -0
- kaiten_cli/registry/custom_properties.py +1460 -0
- kaiten_cli/registry/dashboards.py +564 -0
- kaiten_cli/registry/documents.py +761 -0
- kaiten_cli/registry/external_links.py +128 -0
- kaiten_cli/registry/files.py +738 -0
- kaiten_cli/registry/github_addon.py +613 -0
- kaiten_cli/registry/iterations.py +397 -0
- kaiten_cli/registry/lanes.py +205 -0
- kaiten_cli/registry/live_contracts.py +361 -0
- kaiten_cli/registry/members.py +336 -0
- kaiten_cli/registry/module_docs.py +108 -0
- kaiten_cli/registry/projects.py +369 -0
- kaiten_cli/registry/query.py +129 -0
- kaiten_cli/registry/restrictions.py +249 -0
- kaiten_cli/registry/roles_and_groups.py +1102 -0
- kaiten_cli/registry/scim.py +263 -0
- kaiten_cli/registry/service_desk.py +1270 -0
- kaiten_cli/registry/snapshot.py +187 -0
- kaiten_cli/registry/spaces.py +272 -0
- kaiten_cli/registry/subscribers.py +168 -0
- kaiten_cli/registry/tags.py +193 -0
- kaiten_cli/registry/time_logs.py +353 -0
- kaiten_cli/registry/tree.py +352 -0
- kaiten_cli/registry/utilities.py +287 -0
- kaiten_cli/registry/webhooks.py +265 -0
- kaiten_cli/runtime/__init__.py +1 -0
- kaiten_cli/runtime/automation_validation.py +115 -0
- kaiten_cli/runtime/behaviors.py +787 -0
- kaiten_cli/runtime/cache.py +733 -0
- kaiten_cli/runtime/client.py +387 -0
- kaiten_cli/runtime/endpoints.py +59 -0
- kaiten_cli/runtime/executor.py +269 -0
- kaiten_cli/runtime/fs_security.py +168 -0
- kaiten_cli/runtime/input.py +310 -0
- kaiten_cli/runtime/output.py +59 -0
- kaiten_cli/runtime/public_validation.py +35 -0
- kaiten_cli/runtime/snapshot_build.py +527 -0
- kaiten_cli/runtime/snapshot_common.py +363 -0
- kaiten_cli/runtime/snapshot_query.py +306 -0
- kaiten_cli/runtime/snapshot_store.py +1192 -0
- kaiten_cli/runtime/snapshots.py +62 -0
- kaiten_cli/runtime/sqlite_errors.py +23 -0
- kaiten_cli/runtime/support/__init__.py +1 -0
- kaiten_cli/runtime/support/addons.py +953 -0
- kaiten_cli/runtime/support/audit.py +70 -0
- kaiten_cli/runtime/support/batch.py +234 -0
- kaiten_cli/runtime/support/card_move_url.py +213 -0
- kaiten_cli/runtime/support/cards.py +174 -0
- kaiten_cli/runtime/support/checklists.py +21 -0
- kaiten_cli/runtime/support/company_users.py +117 -0
- kaiten_cli/runtime/support/dashboards.py +35 -0
- kaiten_cli/runtime/support/documents.py +175 -0
- kaiten_cli/runtime/support/files.py +561 -0
- kaiten_cli/runtime/support/markdown_export.py +525 -0
- kaiten_cli/runtime/support/pagination.py +167 -0
- kaiten_cli/runtime/support/projects.py +66 -0
- kaiten_cli/runtime/support/relations.py +86 -0
- kaiten_cli/runtime/support/restrictions.py +62 -0
- kaiten_cli/runtime/support/spaces.py +20 -0
- kaiten_cli/runtime/support/time_logs.py +61 -0
- kaiten_cli/runtime/support/tree.py +140 -0
- kaiten_cli/runtime/support/tree_sharing.py +447 -0
- kaiten_cli/runtime/trace.py +500 -0
- kaiten_cli/runtime/transforms.py +128 -0
- kaiten_cli/schema_docs.py +22 -0
- kaiten_cli/update_check.py +519 -0
- kaiten_cli-0.3.3.dist-info/METADATA +1110 -0
- kaiten_cli-0.3.3.dist-info/RECORD +99 -0
- kaiten_cli-0.3.3.dist-info/WHEEL +4 -0
- kaiten_cli-0.3.3.dist-info/entry_points.txt +3 -0
|
@@ -0,0 +1,558 @@
|
|
|
1
|
+
"""Column and subcolumn tool specs."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from kaiten_cli.models import ExampleSpec, OperationSpec, RuntimeBehavior
|
|
6
|
+
from kaiten_cli.registry.base import make_tool
|
|
7
|
+
from kaiten_cli.runtime.public_validation import validate_nonempty_body
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
TOOLS = (
|
|
11
|
+
make_tool(
|
|
12
|
+
canonical_name="columns.list",
|
|
13
|
+
mcp_alias="kaiten_list_columns",
|
|
14
|
+
description="List columns on a Kaiten board. Column types: 1=queue, 2=in_progress, 3=done. Response includes: wip_limit, wip_limit_type (1=cards count, 2=size sum), last_moved_warning_after_days, archive_after_days, card_hide_after_days.",
|
|
15
|
+
input_schema={
|
|
16
|
+
"type": "object",
|
|
17
|
+
"properties": {"board_id": {"type": "integer", "description": "Board ID"}},
|
|
18
|
+
"required": ["board_id"],
|
|
19
|
+
},
|
|
20
|
+
operation=OperationSpec(
|
|
21
|
+
method="GET", path_template="/boards/{board_id}/columns", path_fields=("board_id",)
|
|
22
|
+
),
|
|
23
|
+
examples=(
|
|
24
|
+
ExampleSpec(
|
|
25
|
+
command="kaiten --json columns list --board-id 10",
|
|
26
|
+
description="List columns on a board.",
|
|
27
|
+
),
|
|
28
|
+
),
|
|
29
|
+
),
|
|
30
|
+
make_tool(
|
|
31
|
+
canonical_name="columns.create",
|
|
32
|
+
mcp_alias="kaiten_create_column",
|
|
33
|
+
description="Create a column on a Kaiten board, including automatic card archival via archive_after_days. Type: 1=queue, 2=in_progress, 3=done.",
|
|
34
|
+
search_terms=("column auto archive", "автоархивация колонок", "автоархивирование"),
|
|
35
|
+
input_schema={
|
|
36
|
+
"type": "object",
|
|
37
|
+
"properties": {
|
|
38
|
+
"board_id": {"type": "integer", "description": "Board ID"},
|
|
39
|
+
"title": {"type": "string", "description": "Column title"},
|
|
40
|
+
"type": {
|
|
41
|
+
"type": "integer",
|
|
42
|
+
"enum": [1, 2, 3],
|
|
43
|
+
"description": "Column type: 1=queue, 2=in_progress, 3=done",
|
|
44
|
+
},
|
|
45
|
+
"wip_limit": {"type": "integer", "description": "WIP limit"},
|
|
46
|
+
"wip_limit_type": {
|
|
47
|
+
"type": "integer",
|
|
48
|
+
"description": "WIP limit type (1=cards count, 2=size sum)",
|
|
49
|
+
},
|
|
50
|
+
"col_count": {
|
|
51
|
+
"type": "integer",
|
|
52
|
+
"description": "Number of sub-columns to split into",
|
|
53
|
+
},
|
|
54
|
+
"sort_order": {"type": "number", "description": "Sort order"},
|
|
55
|
+
"external_id": {
|
|
56
|
+
"maxLength": 1024,
|
|
57
|
+
"description": "Any external id you want to assign to column. Not exposed in web interface",
|
|
58
|
+
"type": ["number", "string", "null"],
|
|
59
|
+
"x-documentation-alternatives": [
|
|
60
|
+
{
|
|
61
|
+
"type": ["number", "string"],
|
|
62
|
+
"maxLength": 1024,
|
|
63
|
+
"description": "Any external id you want to assign to column. Not exposed in web interface",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"type": "null",
|
|
67
|
+
"description": "Any external id you want to assign to column. Not exposed in web interface",
|
|
68
|
+
},
|
|
69
|
+
],
|
|
70
|
+
},
|
|
71
|
+
"last_moved_warning_after_days": {
|
|
72
|
+
"type": "integer",
|
|
73
|
+
"description": "Warning appears on stale cards",
|
|
74
|
+
},
|
|
75
|
+
"last_moved_warning_after_hours": {
|
|
76
|
+
"type": "integer",
|
|
77
|
+
"description": "Warning appears on stale cards",
|
|
78
|
+
},
|
|
79
|
+
"last_moved_warning_after_minutes": {
|
|
80
|
+
"type": "integer",
|
|
81
|
+
"description": "Warning appears on stale cards",
|
|
82
|
+
},
|
|
83
|
+
"archive_after_days": {
|
|
84
|
+
"type": "integer",
|
|
85
|
+
"minimum": -1,
|
|
86
|
+
"description": "Days before automatic card archival; -1 disables auto-archive. Reducing the threshold also affects cards already in the column; eligible cards may be archived by the background job.",
|
|
87
|
+
},
|
|
88
|
+
"card_hide_after_days": {
|
|
89
|
+
"type": ["integer", "null"],
|
|
90
|
+
"description": "Hide cards not moved for the last N days",
|
|
91
|
+
},
|
|
92
|
+
"rules": {
|
|
93
|
+
"type": "integer",
|
|
94
|
+
"minimum": 0,
|
|
95
|
+
"description": "Bit mask for column rules. Rules: 1 - checklists must be checked, 2 - display FIFO order",
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
"required": ["board_id", "title"],
|
|
99
|
+
},
|
|
100
|
+
operation=OperationSpec(
|
|
101
|
+
method="POST",
|
|
102
|
+
path_template="/boards/{board_id}/columns",
|
|
103
|
+
path_fields=("board_id",),
|
|
104
|
+
body_fields=(
|
|
105
|
+
"title",
|
|
106
|
+
"type",
|
|
107
|
+
"wip_limit",
|
|
108
|
+
"wip_limit_type",
|
|
109
|
+
"col_count",
|
|
110
|
+
"sort_order",
|
|
111
|
+
"external_id",
|
|
112
|
+
"last_moved_warning_after_days",
|
|
113
|
+
"last_moved_warning_after_hours",
|
|
114
|
+
"last_moved_warning_after_minutes",
|
|
115
|
+
"archive_after_days",
|
|
116
|
+
"card_hide_after_days",
|
|
117
|
+
"rules",
|
|
118
|
+
),
|
|
119
|
+
),
|
|
120
|
+
examples=(
|
|
121
|
+
ExampleSpec(
|
|
122
|
+
command='kaiten --json columns create --board-id 10 --title "Doing" --type 2',
|
|
123
|
+
description="Create a board column.",
|
|
124
|
+
),
|
|
125
|
+
),
|
|
126
|
+
),
|
|
127
|
+
make_tool(
|
|
128
|
+
canonical_name="columns.update",
|
|
129
|
+
mcp_alias="kaiten_update_column",
|
|
130
|
+
description="Update a column on a Kaiten board, including automatic card archival via archive_after_days.",
|
|
131
|
+
search_terms=("column auto archive", "автоархивация колонок", "автоархивирование"),
|
|
132
|
+
input_schema={
|
|
133
|
+
"type": "object",
|
|
134
|
+
"properties": {
|
|
135
|
+
"board_id": {"type": "integer", "description": "Board ID"},
|
|
136
|
+
"column_id": {"type": "integer", "description": "Column ID"},
|
|
137
|
+
"title": {"type": "string", "description": "New title"},
|
|
138
|
+
"type": {"type": "integer", "enum": [1, 2, 3], "description": "Column type"},
|
|
139
|
+
"wip_limit": {
|
|
140
|
+
"type": ["integer", "null"],
|
|
141
|
+
"description": "WIP limit",
|
|
142
|
+
"x-documentation-alternatives": [
|
|
143
|
+
{
|
|
144
|
+
"type": "integer",
|
|
145
|
+
"description": "Work in progress recommended limit for column",
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"type": "null",
|
|
149
|
+
"description": "Empty work in progress recommended limit for column",
|
|
150
|
+
},
|
|
151
|
+
],
|
|
152
|
+
},
|
|
153
|
+
"wip_limit_type": {
|
|
154
|
+
"type": "integer",
|
|
155
|
+
"description": "WIP limit type (1=cards count, 2=size sum)",
|
|
156
|
+
},
|
|
157
|
+
"col_count": {
|
|
158
|
+
"type": "integer",
|
|
159
|
+
"description": "Number of sub-columns to split into",
|
|
160
|
+
},
|
|
161
|
+
"sort_order": {"type": "number", "description": "Sort order"},
|
|
162
|
+
"external_id": {
|
|
163
|
+
"maxLength": 1024,
|
|
164
|
+
"description": "Any external id you want to assign to column. Not exposed in web interface",
|
|
165
|
+
"type": ["number", "string", "null"],
|
|
166
|
+
"x-documentation-alternatives": [
|
|
167
|
+
{
|
|
168
|
+
"type": ["number", "string"],
|
|
169
|
+
"maxLength": 1024,
|
|
170
|
+
"description": "Any external id you want to assign to column. Not exposed in web interface",
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"type": "null",
|
|
174
|
+
"description": "Any external id you want to assign to column. Not exposed in web interface",
|
|
175
|
+
},
|
|
176
|
+
],
|
|
177
|
+
},
|
|
178
|
+
"last_moved_warning_after_days": {
|
|
179
|
+
"type": "integer",
|
|
180
|
+
"description": "Warning appears on stale cards",
|
|
181
|
+
},
|
|
182
|
+
"last_moved_warning_after_hours": {
|
|
183
|
+
"type": "integer",
|
|
184
|
+
"description": "Warning appears on stale cards",
|
|
185
|
+
},
|
|
186
|
+
"last_moved_warning_after_minutes": {
|
|
187
|
+
"type": "integer",
|
|
188
|
+
"description": "Warning appears on stale cards",
|
|
189
|
+
},
|
|
190
|
+
"archive_after_days": {
|
|
191
|
+
"type": "integer",
|
|
192
|
+
"minimum": -1,
|
|
193
|
+
"description": "Days before automatic card archival; -1 disables auto-archive. Reducing the threshold also affects cards already in the column; eligible cards may be archived by the background job.",
|
|
194
|
+
},
|
|
195
|
+
"card_hide_after_days": {
|
|
196
|
+
"type": ["integer", "null"],
|
|
197
|
+
"description": "Hide cards not moved for the last N days",
|
|
198
|
+
},
|
|
199
|
+
"rules": {
|
|
200
|
+
"type": "integer",
|
|
201
|
+
"minimum": 0,
|
|
202
|
+
"description": "Bit mask for column rules. Rules: 1 - checklists must be checked, 2 - display FIFO order",
|
|
203
|
+
},
|
|
204
|
+
"default_tags": {"type": ["string", "null"], "description": "Default tags"},
|
|
205
|
+
"prev_column_id": {
|
|
206
|
+
"description": "Column ID to move column before",
|
|
207
|
+
"type": ["integer", "null"],
|
|
208
|
+
"x-documentation-alternatives": [
|
|
209
|
+
{"type": "integer", "description": "Column ID to move column before"},
|
|
210
|
+
{
|
|
211
|
+
"type": "null",
|
|
212
|
+
"description": "Indicates that column should be moved to the beginning",
|
|
213
|
+
},
|
|
214
|
+
],
|
|
215
|
+
},
|
|
216
|
+
"next_column_id": {
|
|
217
|
+
"description": "Column ID to move column after",
|
|
218
|
+
"type": ["integer", "null"],
|
|
219
|
+
"x-documentation-alternatives": [
|
|
220
|
+
{"type": "integer", "description": "Column ID to move column after"},
|
|
221
|
+
{
|
|
222
|
+
"type": "null",
|
|
223
|
+
"description": "Indicates that column should be moved to the end",
|
|
224
|
+
},
|
|
225
|
+
],
|
|
226
|
+
},
|
|
227
|
+
"pause_sla": {"type": "boolean"},
|
|
228
|
+
},
|
|
229
|
+
"required": ["board_id", "column_id"],
|
|
230
|
+
},
|
|
231
|
+
operation=OperationSpec(
|
|
232
|
+
method="PATCH",
|
|
233
|
+
path_template="/boards/{board_id}/columns/{column_id}",
|
|
234
|
+
path_fields=("board_id", "column_id"),
|
|
235
|
+
body_fields=(
|
|
236
|
+
"title",
|
|
237
|
+
"type",
|
|
238
|
+
"wip_limit",
|
|
239
|
+
"wip_limit_type",
|
|
240
|
+
"col_count",
|
|
241
|
+
"sort_order",
|
|
242
|
+
"external_id",
|
|
243
|
+
"last_moved_warning_after_days",
|
|
244
|
+
"last_moved_warning_after_hours",
|
|
245
|
+
"last_moved_warning_after_minutes",
|
|
246
|
+
"archive_after_days",
|
|
247
|
+
"card_hide_after_days",
|
|
248
|
+
"rules",
|
|
249
|
+
"default_tags",
|
|
250
|
+
"prev_column_id",
|
|
251
|
+
"next_column_id",
|
|
252
|
+
"pause_sla",
|
|
253
|
+
),
|
|
254
|
+
),
|
|
255
|
+
runtime_behavior=RuntimeBehavior(payload_validator=validate_nonempty_body),
|
|
256
|
+
usage_notes=("Provide at least one field to update.",),
|
|
257
|
+
examples=(
|
|
258
|
+
ExampleSpec(
|
|
259
|
+
command='kaiten --json columns update --board-id 10 --column-id 20 --title "Review"',
|
|
260
|
+
description="Rename a board column.",
|
|
261
|
+
),
|
|
262
|
+
),
|
|
263
|
+
),
|
|
264
|
+
make_tool(
|
|
265
|
+
canonical_name="columns.delete",
|
|
266
|
+
mcp_alias="kaiten_delete_column",
|
|
267
|
+
description="Delete a column from a Kaiten board.",
|
|
268
|
+
input_schema={
|
|
269
|
+
"type": "object",
|
|
270
|
+
"properties": {
|
|
271
|
+
"board_id": {"type": "integer", "description": "Board ID"},
|
|
272
|
+
"column_id": {"type": "integer", "description": "Column ID"},
|
|
273
|
+
"force": {
|
|
274
|
+
"type": "boolean",
|
|
275
|
+
"description": "Remove cascade (all related data will be gone)",
|
|
276
|
+
},
|
|
277
|
+
},
|
|
278
|
+
"required": ["board_id", "column_id"],
|
|
279
|
+
},
|
|
280
|
+
operation=OperationSpec(
|
|
281
|
+
method="DELETE",
|
|
282
|
+
path_template="/boards/{board_id}/columns/{column_id}",
|
|
283
|
+
path_fields=("board_id", "column_id"),
|
|
284
|
+
body_fields=("force",),
|
|
285
|
+
),
|
|
286
|
+
examples=(
|
|
287
|
+
ExampleSpec(
|
|
288
|
+
command="kaiten --json columns delete --board-id 10 --column-id 20",
|
|
289
|
+
description="Delete a board column.",
|
|
290
|
+
),
|
|
291
|
+
),
|
|
292
|
+
),
|
|
293
|
+
make_tool(
|
|
294
|
+
canonical_name="subcolumns.list",
|
|
295
|
+
mcp_alias="kaiten_list_subcolumns",
|
|
296
|
+
description="List all subcolumns of a Kaiten column.",
|
|
297
|
+
input_schema={
|
|
298
|
+
"type": "object",
|
|
299
|
+
"properties": {"column_id": {"type": "integer", "description": "Column ID"}},
|
|
300
|
+
"required": ["column_id"],
|
|
301
|
+
},
|
|
302
|
+
operation=OperationSpec(
|
|
303
|
+
method="GET",
|
|
304
|
+
path_template="/columns/{column_id}/subcolumns",
|
|
305
|
+
path_fields=("column_id",),
|
|
306
|
+
),
|
|
307
|
+
examples=(
|
|
308
|
+
ExampleSpec(
|
|
309
|
+
command="kaiten --json subcolumns list --column-id 20",
|
|
310
|
+
description="List subcolumns for a column.",
|
|
311
|
+
),
|
|
312
|
+
),
|
|
313
|
+
),
|
|
314
|
+
make_tool(
|
|
315
|
+
canonical_name="subcolumns.create",
|
|
316
|
+
mcp_alias="kaiten_create_subcolumn",
|
|
317
|
+
description="Create a subcolumn inside a Kaiten column, including automatic card archival via archive_after_days.",
|
|
318
|
+
search_terms=("column auto archive", "автоархивация колонок", "автоархивирование"),
|
|
319
|
+
input_schema={
|
|
320
|
+
"type": "object",
|
|
321
|
+
"properties": {
|
|
322
|
+
"column_id": {"type": "integer", "description": "Column ID"},
|
|
323
|
+
"title": {"type": "string", "description": "Subcolumn title"},
|
|
324
|
+
"sort_order": {"type": "number", "description": "Sort order"},
|
|
325
|
+
"wip_limit": {"type": "integer", "description": "WIP limit"},
|
|
326
|
+
"col_count": {
|
|
327
|
+
"type": "integer",
|
|
328
|
+
"description": "Number of sub-columns to split into",
|
|
329
|
+
},
|
|
330
|
+
"external_id": {
|
|
331
|
+
"maxLength": 1024,
|
|
332
|
+
"description": "Any external id you want to assign to column. Not exposed in web interface",
|
|
333
|
+
"type": ["number", "string", "null"],
|
|
334
|
+
"x-documentation-alternatives": [
|
|
335
|
+
{
|
|
336
|
+
"type": ["number", "string"],
|
|
337
|
+
"maxLength": 1024,
|
|
338
|
+
"description": "Any external id you want to assign to column. Not exposed in web interface",
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"type": "null",
|
|
342
|
+
"description": "Any external id you want to assign to column. Not exposed in web interface",
|
|
343
|
+
},
|
|
344
|
+
],
|
|
345
|
+
},
|
|
346
|
+
"type": {
|
|
347
|
+
"enum": [1, 2, 3],
|
|
348
|
+
"description": "1 - queue, 2 – in progress, 3 – done",
|
|
349
|
+
"type": "integer",
|
|
350
|
+
},
|
|
351
|
+
"archive_after_days": {
|
|
352
|
+
"type": "integer",
|
|
353
|
+
"minimum": -1,
|
|
354
|
+
"description": "Days before automatic card archival; -1 disables auto-archive. Reducing the threshold also affects cards already in the column; eligible cards may be archived by the background job.",
|
|
355
|
+
},
|
|
356
|
+
"card_hide_after_days": {
|
|
357
|
+
"type": ["integer", "null"],
|
|
358
|
+
"description": "Hide cards not moved for the last N days",
|
|
359
|
+
},
|
|
360
|
+
"rules": {
|
|
361
|
+
"type": "integer",
|
|
362
|
+
"minimum": 0,
|
|
363
|
+
"description": "Bit mask for column rules. Rules: 1 - checklists must be checked, 2 - display FIFO order",
|
|
364
|
+
},
|
|
365
|
+
"last_moved_warning_after_minutes": {
|
|
366
|
+
"type": "integer",
|
|
367
|
+
"description": "Warning appears on stale cards",
|
|
368
|
+
},
|
|
369
|
+
"last_moved_warning_after_hours": {
|
|
370
|
+
"type": "integer",
|
|
371
|
+
"description": "Warning appears on stale cards",
|
|
372
|
+
},
|
|
373
|
+
"last_moved_warning_after_days": {
|
|
374
|
+
"type": "integer",
|
|
375
|
+
"description": "Warning appears on stale cards",
|
|
376
|
+
},
|
|
377
|
+
},
|
|
378
|
+
"required": ["column_id", "title"],
|
|
379
|
+
},
|
|
380
|
+
operation=OperationSpec(
|
|
381
|
+
method="POST",
|
|
382
|
+
path_template="/columns/{column_id}/subcolumns",
|
|
383
|
+
path_fields=("column_id",),
|
|
384
|
+
body_fields=(
|
|
385
|
+
"title",
|
|
386
|
+
"sort_order",
|
|
387
|
+
"wip_limit",
|
|
388
|
+
"col_count",
|
|
389
|
+
"external_id",
|
|
390
|
+
"type",
|
|
391
|
+
"archive_after_days",
|
|
392
|
+
"card_hide_after_days",
|
|
393
|
+
"rules",
|
|
394
|
+
"last_moved_warning_after_minutes",
|
|
395
|
+
"last_moved_warning_after_hours",
|
|
396
|
+
"last_moved_warning_after_days",
|
|
397
|
+
),
|
|
398
|
+
),
|
|
399
|
+
examples=(
|
|
400
|
+
ExampleSpec(
|
|
401
|
+
command='kaiten --json subcolumns create --column-id 20 --title "Blocked"',
|
|
402
|
+
description="Create a subcolumn.",
|
|
403
|
+
),
|
|
404
|
+
),
|
|
405
|
+
),
|
|
406
|
+
make_tool(
|
|
407
|
+
canonical_name="subcolumns.update",
|
|
408
|
+
mcp_alias="kaiten_update_subcolumn",
|
|
409
|
+
description="Update a subcolumn of a Kaiten column, including automatic card archival via archive_after_days.",
|
|
410
|
+
search_terms=("column auto archive", "автоархивация колонок", "автоархивирование"),
|
|
411
|
+
input_schema={
|
|
412
|
+
"type": "object",
|
|
413
|
+
"properties": {
|
|
414
|
+
"column_id": {"type": "integer", "description": "Column ID"},
|
|
415
|
+
"subcolumn_id": {"type": "integer", "description": "Subcolumn ID"},
|
|
416
|
+
"title": {"type": "string", "description": "New title"},
|
|
417
|
+
"sort_order": {"type": "number", "description": "Sort order"},
|
|
418
|
+
"wip_limit": {"type": "integer", "description": "WIP limit"},
|
|
419
|
+
"col_count": {
|
|
420
|
+
"type": "integer",
|
|
421
|
+
"description": "Number of sub-columns to split into",
|
|
422
|
+
},
|
|
423
|
+
"external_id": {
|
|
424
|
+
"maxLength": 1024,
|
|
425
|
+
"description": "Any external id you want to assign to column. Not exposed in web interface",
|
|
426
|
+
"type": ["number", "string", "null"],
|
|
427
|
+
"x-documentation-alternatives": [
|
|
428
|
+
{
|
|
429
|
+
"type": ["number", "string"],
|
|
430
|
+
"maxLength": 1024,
|
|
431
|
+
"description": "Any external id you want to assign to column. Not exposed in web interface",
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"type": "null",
|
|
435
|
+
"description": "Any external id you want to assign to column. Not exposed in web interface",
|
|
436
|
+
},
|
|
437
|
+
],
|
|
438
|
+
},
|
|
439
|
+
"type": {
|
|
440
|
+
"enum": [1, 2, 3],
|
|
441
|
+
"description": "1 - queue, 2 – in progress, 3 – done",
|
|
442
|
+
"type": "integer",
|
|
443
|
+
},
|
|
444
|
+
"archive_after_days": {
|
|
445
|
+
"type": "integer",
|
|
446
|
+
"minimum": -1,
|
|
447
|
+
"description": "Days before automatic card archival; -1 disables auto-archive. Reducing the threshold also affects cards already in the column; eligible cards may be archived by the background job.",
|
|
448
|
+
},
|
|
449
|
+
"card_hide_after_days": {
|
|
450
|
+
"type": ["integer", "null"],
|
|
451
|
+
"description": "Hide cards not moved for the last N days",
|
|
452
|
+
},
|
|
453
|
+
"rules": {
|
|
454
|
+
"type": "integer",
|
|
455
|
+
"minimum": 0,
|
|
456
|
+
"description": "Bit mask for column rules. Rules: 1 - checklists must be checked, 2 - display FIFO order",
|
|
457
|
+
},
|
|
458
|
+
"default_tags": {"type": ["string", "null"], "description": "Default tags"},
|
|
459
|
+
"last_moved_warning_after_minutes": {
|
|
460
|
+
"type": "integer",
|
|
461
|
+
"description": "Warning appears on stale cards",
|
|
462
|
+
},
|
|
463
|
+
"last_moved_warning_after_hours": {
|
|
464
|
+
"type": "integer",
|
|
465
|
+
"description": "Warning appears on stale cards",
|
|
466
|
+
},
|
|
467
|
+
"last_moved_warning_after_days": {
|
|
468
|
+
"type": "integer",
|
|
469
|
+
"description": "Warning appears on stale cards",
|
|
470
|
+
},
|
|
471
|
+
"prev_column_id": {
|
|
472
|
+
"description": "Column ID to move column before",
|
|
473
|
+
"type": ["integer", "null"],
|
|
474
|
+
"x-documentation-alternatives": [
|
|
475
|
+
{"type": "integer", "description": "Column ID to move column before"},
|
|
476
|
+
{
|
|
477
|
+
"type": "null",
|
|
478
|
+
"description": "Indicates that column should be moved to the beginning",
|
|
479
|
+
},
|
|
480
|
+
],
|
|
481
|
+
},
|
|
482
|
+
"next_column_id": {
|
|
483
|
+
"description": "Column ID to move column after",
|
|
484
|
+
"type": ["integer", "null"],
|
|
485
|
+
"x-documentation-alternatives": [
|
|
486
|
+
{"type": "integer", "description": "Column ID to move column after"},
|
|
487
|
+
{
|
|
488
|
+
"type": "null",
|
|
489
|
+
"description": "Indicates that column should be moved to the end",
|
|
490
|
+
},
|
|
491
|
+
],
|
|
492
|
+
},
|
|
493
|
+
"pause_sla": {"type": "boolean"},
|
|
494
|
+
},
|
|
495
|
+
"required": ["column_id", "subcolumn_id"],
|
|
496
|
+
},
|
|
497
|
+
operation=OperationSpec(
|
|
498
|
+
method="PATCH",
|
|
499
|
+
path_template="/columns/{column_id}/subcolumns/{subcolumn_id}",
|
|
500
|
+
path_fields=("column_id", "subcolumn_id"),
|
|
501
|
+
body_fields=(
|
|
502
|
+
"title",
|
|
503
|
+
"sort_order",
|
|
504
|
+
"wip_limit",
|
|
505
|
+
"col_count",
|
|
506
|
+
"external_id",
|
|
507
|
+
"type",
|
|
508
|
+
"archive_after_days",
|
|
509
|
+
"card_hide_after_days",
|
|
510
|
+
"rules",
|
|
511
|
+
"default_tags",
|
|
512
|
+
"last_moved_warning_after_minutes",
|
|
513
|
+
"last_moved_warning_after_hours",
|
|
514
|
+
"last_moved_warning_after_days",
|
|
515
|
+
"prev_column_id",
|
|
516
|
+
"next_column_id",
|
|
517
|
+
"pause_sla",
|
|
518
|
+
),
|
|
519
|
+
),
|
|
520
|
+
runtime_behavior=RuntimeBehavior(payload_validator=validate_nonempty_body),
|
|
521
|
+
usage_notes=("Provide at least one field to update.",),
|
|
522
|
+
examples=(
|
|
523
|
+
ExampleSpec(
|
|
524
|
+
command='kaiten --json subcolumns update --column-id 20 --subcolumn-id 30 --title "Blocked"',
|
|
525
|
+
description="Update a subcolumn.",
|
|
526
|
+
),
|
|
527
|
+
),
|
|
528
|
+
),
|
|
529
|
+
make_tool(
|
|
530
|
+
canonical_name="subcolumns.delete",
|
|
531
|
+
mcp_alias="kaiten_delete_subcolumn",
|
|
532
|
+
description="Delete a subcolumn from a Kaiten column.",
|
|
533
|
+
input_schema={
|
|
534
|
+
"type": "object",
|
|
535
|
+
"properties": {
|
|
536
|
+
"column_id": {"type": "integer", "description": "Column ID"},
|
|
537
|
+
"subcolumn_id": {"type": "integer", "description": "Subcolumn ID"},
|
|
538
|
+
"force": {
|
|
539
|
+
"type": "boolean",
|
|
540
|
+
"description": "Remove cascade (all related data will be gone)",
|
|
541
|
+
},
|
|
542
|
+
},
|
|
543
|
+
"required": ["column_id", "subcolumn_id"],
|
|
544
|
+
},
|
|
545
|
+
operation=OperationSpec(
|
|
546
|
+
method="DELETE",
|
|
547
|
+
path_template="/columns/{column_id}/subcolumns/{subcolumn_id}",
|
|
548
|
+
path_fields=("column_id", "subcolumn_id"),
|
|
549
|
+
body_fields=("force",),
|
|
550
|
+
),
|
|
551
|
+
examples=(
|
|
552
|
+
ExampleSpec(
|
|
553
|
+
command="kaiten --json subcolumns delete --column-id 20 --subcolumn-id 30",
|
|
554
|
+
description="Delete a subcolumn.",
|
|
555
|
+
),
|
|
556
|
+
),
|
|
557
|
+
),
|
|
558
|
+
)
|