@kosuke-ai/kosuke 1.0.75 → 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,13 @@
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
+
7
+ ## 1.0.76
8
+
9
+ - `kosuke github repositories list` takes --limit, --cursor and --q to page and search; without them it still lists every repository.
10
+
3
11
  ## 1.0.75
4
12
 
5
13
  - `kosuke sensei cards set` takes `--quoted`, the earlier words a card answers (a teammate's ask, quoted exactly).
@@ -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",
@@ -6,9 +6,52 @@ export const operation = {
6
6
  "repositories",
7
7
  "list"
8
8
  ],
9
- "summary": "List the repositories the Kosuke GitHub App can reach through your connection, all at once, with installUrl when there is no connection yet. With an API key this is always your own listing, never the staff one. 401 GITHUB_RECONNECT_REQUIRED when GitHub no longer accepts your connection.",
9
+ "summary": "List the repositories the Kosuke GitHub App can reach through your connection, installed first then by name, with installUrl when there is no connection yet. Every repository at once by default; with limit, pass nextCursor back as cursor until it is null. q filters by owner/name. With an API key this is always your own listing, never the staff one. 401 GITHUB_RECONNECT_REQUIRED when GitHub no longer accepts your connection.",
10
10
  "pathParams": [],
11
- "query": [],
11
+ "query": [
12
+ {
13
+ "name": "limit",
14
+ "flag": "limit",
15
+ "kind": "integer",
16
+ "required": false,
17
+ "description": "Page size. Without limit or cursor every repository comes back at once. Values above 100 are clamped, not rejected."
18
+ },
19
+ {
20
+ "name": "cursor",
21
+ "flag": "cursor",
22
+ "kind": "string",
23
+ "required": false,
24
+ "description": "nextCursor from the previous page; pages by 10 when limit is not given."
25
+ },
26
+ {
27
+ "name": "q",
28
+ "flag": "q",
29
+ "kind": "string",
30
+ "required": false,
31
+ "description": "Only repositories whose owner/name contains this text, ignoring case."
32
+ },
33
+ {
34
+ "name": "importable",
35
+ "flag": "importable",
36
+ "kind": "boolean",
37
+ "required": false,
38
+ "description": "Only repositories Kosuke can import: the App is installed and you can write."
39
+ },
40
+ {
41
+ "name": "installed",
42
+ "flag": "installed",
43
+ "kind": "boolean",
44
+ "required": false,
45
+ "description": "Only repositories the App is installed on."
46
+ },
47
+ {
48
+ "name": "refresh",
49
+ "flag": "refresh",
50
+ "kind": "boolean",
51
+ "required": false,
52
+ "description": "Read GitHub again instead of the listing kept for up to a minute."
53
+ }
54
+ ],
12
55
  "body": null,
13
56
  "multipart": null,
14
57
  "attachments": false,
@@ -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
  },
@@ -592,12 +592,78 @@
592
592
  "/api/auth/github/repositories": {
593
593
  "get": {
594
594
  "operationId": "githubRepositoriesList",
595
- "summary": "List the repositories the Kosuke GitHub App can reach through your connection, all at once, with installUrl when there is no connection yet. With an API key this is always your own listing, never the staff one. 401 GITHUB_RECONNECT_REQUIRED when GitHub no longer accepts your connection.",
595
+ "summary": "List the repositories the Kosuke GitHub App can reach through your connection, installed first then by name, with installUrl when there is no connection yet. Every repository at once by default; with limit, pass nextCursor back as cursor until it is null. q filters by owner/name. With an API key this is always your own listing, never the staff one. 401 GITHUB_RECONNECT_REQUIRED when GitHub no longer accepts your connection.",
596
596
  "tags": ["github"],
597
597
  "x-kosuke-command": ["github", "repositories", "list"],
598
598
  "x-kosuke-sandbox-token": true,
599
599
  "x-kosuke-cron-token": true,
600
600
  "x-kosuke-sensei-token": true,
601
+ "parameters": [
602
+ {
603
+ "name": "limit",
604
+ "in": "query",
605
+ "required": false,
606
+ "description": "Page size. Without limit or cursor every repository comes back at once. Values above 100 are clamped, not rejected.",
607
+ "schema": {
608
+ "description": "Page size. Without limit or cursor every repository comes back at once. Values above 100 are clamped, not rejected.",
609
+ "type": "integer",
610
+ "minimum": 1,
611
+ "maximum": 9007199254740991
612
+ }
613
+ },
614
+ {
615
+ "name": "cursor",
616
+ "in": "query",
617
+ "required": false,
618
+ "description": "nextCursor from the previous page; pages by 10 when limit is not given.",
619
+ "schema": {
620
+ "description": "nextCursor from the previous page; pages by 10 when limit is not given.",
621
+ "type": "string",
622
+ "maxLength": 1024
623
+ }
624
+ },
625
+ {
626
+ "name": "q",
627
+ "in": "query",
628
+ "required": false,
629
+ "description": "Only repositories whose owner/name contains this text, ignoring case.",
630
+ "schema": {
631
+ "description": "Only repositories whose owner/name contains this text, ignoring case.",
632
+ "type": "string",
633
+ "maxLength": 255
634
+ }
635
+ },
636
+ {
637
+ "name": "importable",
638
+ "in": "query",
639
+ "required": false,
640
+ "description": "Only repositories Kosuke can import: the App is installed and you can write.",
641
+ "schema": {
642
+ "description": "Only repositories Kosuke can import: the App is installed and you can write.",
643
+ "type": "boolean"
644
+ }
645
+ },
646
+ {
647
+ "name": "installed",
648
+ "in": "query",
649
+ "required": false,
650
+ "description": "Only repositories the App is installed on.",
651
+ "schema": {
652
+ "description": "Only repositories the App is installed on.",
653
+ "type": "boolean"
654
+ }
655
+ },
656
+ {
657
+ "name": "refresh",
658
+ "in": "query",
659
+ "required": false,
660
+ "description": "Read GitHub again instead of the listing kept for up to a minute.",
661
+ "schema": {
662
+ "description": "Read GitHub again instead of the listing kept for up to a minute.",
663
+ "type": "boolean"
664
+ }
665
+ }
666
+ ],
601
667
  "responses": {
602
668
  "2XX": {
603
669
  "description": "Success envelope",
@@ -9361,6 +9427,93 @@
9361
9427
  }
9362
9428
  }
9363
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
+ },
9364
9517
  "/api/organizations/{workspaceId}/timezone": {
9365
9518
  "put": {
9366
9519
  "operationId": "workspacesTimezoneSet",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kosuke-ai/kosuke",
3
- "version": "1.0.75",
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": "3bc0660afe20181e8e7f71defd26b891307da387",
47
- "sourceIdentity": "4e048893ec5a25f64dadb13b7dc3e7008289d29b695df760110efd92e50fa7ce",
46
+ "sourceCommit": "6ceaba921ef65b9f778225c484d3de9fefd81a5e",
47
+ "sourceIdentity": "dffecba42ebc62ea71a0ee1bc7f466cd063bfe7f971780abed8f21b6cbf6a5fd",
48
48
  "fragments": [
49
- "sensei-cards-quoted-r4k9tw.json"
49
+ "tasks-transfer-usbwnh.json"
50
50
  ]
51
51
  }
52
52
  }