@kosuke-ai/kosuke 1.0.76 → 1.0.77

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 CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.77
4
+
5
+ - Add `kosuke tasks project set <workspaceId> <taskId> --project-id <projectId>`, which moves a Todo task and its Backlog session to another deployed repository of the same workspace in place, keeping its IDs, Assignee, description, messages, attachments and labels, and starting nothing.
6
+
3
7
  ## 1.0.76
4
8
 
5
9
  - `kosuke github repositories list` takes --limit, --cursor and --q to page and search; without them it still lists every repository.
@@ -48,7 +48,7 @@ export const operation = {
48
48
  "flag": "kind",
49
49
  "kind": "string",
50
50
  "required": false,
51
- "description": "Comma-separated kinds (job_awaiting_response, pr_checks_failed, pr_checks_passed, main_checks_failed, main_checks_passed, pr_merged, branch_behind, cron_run_succeeded, cron_run_failed, deployed, recovery_deploy_started, workspace_device_disconnected, session_started, session_message_sent, session_archived, session_deleted, session_assigned, session_status_changed, session_priority_changed, cron_created, cron_updated, cron_deleted, member_invited, member_removed, member_role_changed, integration_custom_tool_saved, integration_custom_tool_enabled, integration_custom_tool_disabled, integration_custom_tool_deleted, integration_custom_tool_restored), or 'change' for every Change and 'action' for every Member Action."
51
+ "description": "Comma-separated kinds (job_awaiting_response, pr_checks_failed, pr_checks_passed, main_checks_failed, main_checks_passed, pr_merged, branch_behind, cron_run_succeeded, cron_run_failed, deployed, recovery_deploy_started, workspace_device_disconnected, session_started, session_message_sent, session_archived, session_deleted, session_assigned, session_status_changed, session_priority_changed, session_moved, cron_created, cron_updated, cron_deleted, member_invited, member_removed, member_role_changed, integration_custom_tool_saved, integration_custom_tool_enabled, integration_custom_tool_disabled, integration_custom_tool_deleted, integration_custom_tool_restored), or 'change' for every Change and 'action' for every Member Action."
52
52
  },
53
53
  {
54
54
  "name": "limit",
@@ -311,29 +311,30 @@ import { operation as o309 } from './tasks/list--all.js';
311
311
  import { operation as o310 } from './tasks/list--personal.js';
312
312
  import { operation as o311 } from './tasks/move.js';
313
313
  import { operation as o312 } from './tasks/move--personal.js';
314
- import { operation as o313 } from './tasks/start.js';
315
- import { operation as o314 } from './tasks/start--personal.js';
316
- import { operation as o315 } from './tasks/update.js';
317
- import { operation as o316 } from './tasks/update--personal.js';
318
- import { operation as o317 } from './user/api-keys-delete.js';
319
- import { operation as o318 } from './user/personal-space-get.js';
320
- import { operation as o319 } from './user/profile-get.js';
321
- import { operation as o320 } from './user/push-devices-create.js';
322
- import { operation as o321 } from './user/push-devices-delete.js';
323
- import { operation as o322 } from './user/settings-get.js';
324
- import { operation as o323 } from './user/settings-update.js';
325
- import { operation as o324 } from './user/usage-get.js';
326
- import { operation as o325 } from './workspaces/artifacts-search.js';
327
- import { operation as o326 } from './workspaces/credits-get.js';
328
- import { operation as o327 } from './workspaces/get.js';
329
- import { operation as o328 } from './workspaces/list.js';
330
- import { operation as o329 } from './workspaces/members-list.js';
331
- import { operation as o330 } from './workspaces/members-list--all.js';
332
- import { operation as o331 } from './workspaces/sandbox-limit-get.js';
333
- import { operation as o332 } from './workspaces/sandboxes-stop.js';
334
- import { operation as o333 } from './workspaces/timezone-set.js';
335
- import { operation as o334 } from './workspaces/usage-breakdown-get.js';
336
- import { operation as o335 } from './workspaces/usage-get.js';
314
+ import { operation as o313 } from './tasks/project-set.js';
315
+ import { operation as o314 } from './tasks/start.js';
316
+ import { operation as o315 } from './tasks/start--personal.js';
317
+ import { operation as o316 } from './tasks/update.js';
318
+ import { operation as o317 } from './tasks/update--personal.js';
319
+ import { operation as o318 } from './user/api-keys-delete.js';
320
+ import { operation as o319 } from './user/personal-space-get.js';
321
+ import { operation as o320 } from './user/profile-get.js';
322
+ import { operation as o321 } from './user/push-devices-create.js';
323
+ import { operation as o322 } from './user/push-devices-delete.js';
324
+ import { operation as o323 } from './user/settings-get.js';
325
+ import { operation as o324 } from './user/settings-update.js';
326
+ import { operation as o325 } from './user/usage-get.js';
327
+ import { operation as o326 } from './workspaces/artifacts-search.js';
328
+ import { operation as o327 } from './workspaces/credits-get.js';
329
+ import { operation as o328 } from './workspaces/get.js';
330
+ import { operation as o329 } from './workspaces/list.js';
331
+ import { operation as o330 } from './workspaces/members-list.js';
332
+ import { operation as o331 } from './workspaces/members-list--all.js';
333
+ import { operation as o332 } from './workspaces/sandbox-limit-get.js';
334
+ import { operation as o333 } from './workspaces/sandboxes-stop.js';
335
+ import { operation as o334 } from './workspaces/timezone-set.js';
336
+ import { operation as o335 } from './workspaces/usage-breakdown-get.js';
337
+ import { operation as o336 } from './workspaces/usage-get.js';
337
338
  export const operations = [
338
339
  o0,
339
340
  o1,
@@ -671,4 +672,5 @@ export const operations = [
671
672
  o333,
672
673
  o334,
673
674
  o335,
675
+ o336,
674
676
  ];
@@ -0,0 +1,38 @@
1
+ export const operation = {
2
+ "method": "post",
3
+ "path": "/api/organizations/{workspaceId}/tasks/{taskId}/transfer",
4
+ "command": [
5
+ "tasks",
6
+ "project",
7
+ "set"
8
+ ],
9
+ "summary": "Move a Todo task and its Backlog session to another deployed repository of the same workspace, in place: same IDs, Assignee, description, messages, attachments and labels; nothing starts. Members and Sensei only, with access to both repositories. Only when the member asks. The same repository again succeeds with the task; a started task, or one with a branch, sandbox or pull request, answers 409 TASK_CONFLICT; a repository not deployed answers 409 TASK_INVALID_PROJECT, one out of reach 404.",
10
+ "pathParams": [
11
+ "workspaceId",
12
+ "taskId"
13
+ ],
14
+ "query": [],
15
+ "body": {
16
+ "fields": [
17
+ {
18
+ "name": "projectId",
19
+ "flag": "project-id",
20
+ "kind": "string",
21
+ "required": true,
22
+ "description": "The deployed repository of the same workspace the Todo task and its Backlog session move to, in place. Nothing starts."
23
+ },
24
+ {
25
+ "name": "ifRevision",
26
+ "flag": "if-revision",
27
+ "kind": "string",
28
+ "required": false,
29
+ "description": "The task updatedAt `tasks get` printed (not descriptionRevision); a task changed or moved since answers 409 TASK_CONFLICT. A retry to the repository it already moved to succeeds."
30
+ }
31
+ ],
32
+ "required": true
33
+ },
34
+ "multipart": null,
35
+ "attachments": false,
36
+ "anonymous": false,
37
+ "agents": "all"
38
+ };
package/openapi.json CHANGED
@@ -77,9 +77,9 @@
77
77
  "name": "kind",
78
78
  "in": "query",
79
79
  "required": false,
80
- "description": "Comma-separated kinds (job_awaiting_response, pr_checks_failed, pr_checks_passed, main_checks_failed, main_checks_passed, pr_merged, branch_behind, cron_run_succeeded, cron_run_failed, deployed, recovery_deploy_started, workspace_device_disconnected, session_started, session_message_sent, session_archived, session_deleted, session_assigned, session_status_changed, session_priority_changed, cron_created, cron_updated, cron_deleted, member_invited, member_removed, member_role_changed, integration_custom_tool_saved, integration_custom_tool_enabled, integration_custom_tool_disabled, integration_custom_tool_deleted, integration_custom_tool_restored), or 'change' for every Change and 'action' for every Member Action.",
80
+ "description": "Comma-separated kinds (job_awaiting_response, pr_checks_failed, pr_checks_passed, main_checks_failed, main_checks_passed, pr_merged, branch_behind, cron_run_succeeded, cron_run_failed, deployed, recovery_deploy_started, workspace_device_disconnected, session_started, session_message_sent, session_archived, session_deleted, session_assigned, session_status_changed, session_priority_changed, session_moved, cron_created, cron_updated, cron_deleted, member_invited, member_removed, member_role_changed, integration_custom_tool_saved, integration_custom_tool_enabled, integration_custom_tool_disabled, integration_custom_tool_deleted, integration_custom_tool_restored), or 'change' for every Change and 'action' for every Member Action.",
81
81
  "schema": {
82
- "description": "Comma-separated kinds (job_awaiting_response, pr_checks_failed, pr_checks_passed, main_checks_failed, main_checks_passed, pr_merged, branch_behind, cron_run_succeeded, cron_run_failed, deployed, recovery_deploy_started, workspace_device_disconnected, session_started, session_message_sent, session_archived, session_deleted, session_assigned, session_status_changed, session_priority_changed, cron_created, cron_updated, cron_deleted, member_invited, member_removed, member_role_changed, integration_custom_tool_saved, integration_custom_tool_enabled, integration_custom_tool_disabled, integration_custom_tool_deleted, integration_custom_tool_restored), or 'change' for every Change and 'action' for every Member Action.",
82
+ "description": "Comma-separated kinds (job_awaiting_response, pr_checks_failed, pr_checks_passed, main_checks_failed, main_checks_passed, pr_merged, branch_behind, cron_run_succeeded, cron_run_failed, deployed, recovery_deploy_started, workspace_device_disconnected, session_started, session_message_sent, session_archived, session_deleted, session_assigned, session_status_changed, session_priority_changed, session_moved, cron_created, cron_updated, cron_deleted, member_invited, member_removed, member_role_changed, integration_custom_tool_saved, integration_custom_tool_enabled, integration_custom_tool_disabled, integration_custom_tool_deleted, integration_custom_tool_restored), or 'change' for every Change and 'action' for every Member Action.",
83
83
  "type": "string"
84
84
  }
85
85
  },
@@ -9427,6 +9427,93 @@
9427
9427
  }
9428
9428
  }
9429
9429
  },
9430
+ "/api/organizations/{workspaceId}/tasks/{taskId}/transfer": {
9431
+ "post": {
9432
+ "operationId": "tasksProjectSet",
9433
+ "summary": "Move a Todo task and its Backlog session to another deployed repository of the same workspace, in place: same IDs, Assignee, description, messages, attachments and labels; nothing starts. Members and Sensei only, with access to both repositories. Only when the member asks. The same repository again succeeds with the task; a started task, or one with a branch, sandbox or pull request, answers 409 TASK_CONFLICT; a repository not deployed answers 409 TASK_INVALID_PROJECT, one out of reach 404.",
9434
+ "tags": ["tasks"],
9435
+ "x-kosuke-command": ["tasks", "project", "set"],
9436
+ "x-kosuke-sandbox-token": true,
9437
+ "x-kosuke-cron-token": true,
9438
+ "x-kosuke-sensei-token": true,
9439
+ "parameters": [
9440
+ {
9441
+ "name": "workspaceId",
9442
+ "in": "path",
9443
+ "required": true,
9444
+ "schema": {
9445
+ "type": "string",
9446
+ "minLength": 1
9447
+ }
9448
+ },
9449
+ {
9450
+ "name": "taskId",
9451
+ "in": "path",
9452
+ "required": true,
9453
+ "schema": {
9454
+ "type": "string",
9455
+ "format": "uuid",
9456
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
9457
+ }
9458
+ }
9459
+ ],
9460
+ "requestBody": {
9461
+ "required": true,
9462
+ "content": {
9463
+ "application/json": {
9464
+ "schema": {
9465
+ "type": "object",
9466
+ "properties": {
9467
+ "projectId": {
9468
+ "type": "string",
9469
+ "format": "uuid",
9470
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
9471
+ "description": "The deployed repository of the same workspace the Todo task and its Backlog session move to, in place. Nothing starts."
9472
+ },
9473
+ "ifRevision": {
9474
+ "description": "The task updatedAt `tasks get` printed (not descriptionRevision); a task changed or moved since answers 409 TASK_CONFLICT. A retry to the repository it already moved to succeeds.",
9475
+ "type": "string"
9476
+ }
9477
+ },
9478
+ "required": ["projectId"]
9479
+ }
9480
+ }
9481
+ }
9482
+ },
9483
+ "responses": {
9484
+ "2XX": {
9485
+ "description": "Success envelope",
9486
+ "content": {
9487
+ "application/json": {
9488
+ "schema": {
9489
+ "$ref": "#/components/schemas/ApiSuccess"
9490
+ }
9491
+ }
9492
+ }
9493
+ },
9494
+ "4XX": {
9495
+ "description": "Error envelope",
9496
+ "content": {
9497
+ "application/json": {
9498
+ "schema": {
9499
+ "$ref": "#/components/schemas/ApiError"
9500
+ }
9501
+ }
9502
+ }
9503
+ },
9504
+ "5XX": {
9505
+ "description": "Error envelope",
9506
+ "content": {
9507
+ "application/json": {
9508
+ "schema": {
9509
+ "$ref": "#/components/schemas/ApiError"
9510
+ }
9511
+ }
9512
+ }
9513
+ }
9514
+ }
9515
+ }
9516
+ },
9430
9517
  "/api/organizations/{workspaceId}/timezone": {
9431
9518
  "put": {
9432
9519
  "operationId": "workspacesTimezoneSet",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kosuke-ai/kosuke",
3
- "version": "1.0.76",
3
+ "version": "1.0.77",
4
4
  "description": "Sensei platform CLI. The client customers install to drive app.kosuke.ai from their own machine.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -43,10 +43,10 @@
43
43
  "minimatch": "^11.0.1"
44
44
  },
45
45
  "kosukeRelease": {
46
- "sourceCommit": "af66e28e34a12cd7277ae464e55c5b960d48d252",
47
- "sourceIdentity": "922587bf7457e7180f37541a12371b0568b8ee6f02416933ce71e73c9cb554dc",
46
+ "sourceCommit": "6ceaba921ef65b9f778225c484d3de9fefd81a5e",
47
+ "sourceIdentity": "dffecba42ebc62ea71a0ee1bc7f466cd063bfe7f971780abed8f21b6cbf6a5fd",
48
48
  "fragments": [
49
- "github-repositories-pages-wikrwz.json"
49
+ "tasks-transfer-usbwnh.json"
50
50
  ]
51
51
  }
52
52
  }