@kosuke-ai/kosuke 1.0.147 → 1.0.149

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 (46) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/generated/commands/deploys/cancel.js +1 -1
  3. package/dist/generated/commands/deploys/start.js +1 -1
  4. package/dist/generated/commands/index.js +344 -330
  5. package/dist/generated/commands/mac/calendar-calendars-list.js +29 -0
  6. package/dist/generated/commands/mac/calendar-events-create.js +75 -0
  7. package/dist/generated/commands/mac/calendar-events-list.js +71 -0
  8. package/dist/generated/commands/mac/calendar-events-update.js +92 -0
  9. package/dist/generated/commands/mac/contacts-get.js +35 -0
  10. package/dist/generated/commands/mac/contacts-search.js +49 -0
  11. package/dist/generated/commands/mac/location-get.js +28 -0
  12. package/dist/generated/commands/mac/messages-conversations-list.js +43 -0
  13. package/dist/generated/commands/mac/messages-list.js +49 -0
  14. package/dist/generated/commands/mac/messages-send.js +53 -0
  15. package/dist/generated/commands/mac/notes-create.js +48 -0
  16. package/dist/generated/commands/mac/notes-folders-list.js +29 -0
  17. package/dist/generated/commands/mac/notes-get.js +35 -0
  18. package/dist/generated/commands/mac/notes-search.js +56 -0
  19. package/dist/generated/commands/mac/notes-update.js +42 -0
  20. package/dist/generated/commands/mac/reminders-complete.js +42 -0
  21. package/dist/generated/commands/mac/reminders-create.js +61 -0
  22. package/dist/generated/commands/mac/reminders-list.js +56 -0
  23. package/dist/generated/commands/mac/reminders-lists-list.js +29 -0
  24. package/dist/generated/commands/mac/reminders-search.js +63 -0
  25. package/dist/generated/commands/mac/reminders-update.js +75 -0
  26. package/dist/generated/commands/sessions/jobs-cancel.js +1 -1
  27. package/dist/generated/commands/sessions/runtime-commands-run.js +1 -1
  28. package/dist/generated/commands/sessions/send.js +1 -1
  29. package/dist/generated/commands/sessions/steer.js +2 -2
  30. package/dist/runtime/list-defaults.js +8 -0
  31. package/openapi.json +8627 -8003
  32. package/package.json +4 -4
  33. package/dist/generated/commands/deploys/queue-delete.js +0 -20
  34. package/dist/generated/commands/deploys/queue-list.js +0 -19
  35. package/dist/generated/commands/deploys/queue-move.js +0 -31
  36. package/dist/generated/commands/deploys/queue-resume.js +0 -18
  37. package/dist/generated/commands/deploys/queue-send.js +0 -19
  38. package/dist/generated/commands/deploys/queue-steer.js +0 -19
  39. package/dist/generated/commands/deploys/queue-update.js +0 -57
  40. package/dist/generated/commands/sessions/queue-delete.js +0 -21
  41. package/dist/generated/commands/sessions/queue-list.js +0 -20
  42. package/dist/generated/commands/sessions/queue-move.js +0 -32
  43. package/dist/generated/commands/sessions/queue-resume.js +0 -20
  44. package/dist/generated/commands/sessions/queue-send.js +0 -21
  45. package/dist/generated/commands/sessions/queue-steer.js +0 -21
  46. package/dist/generated/commands/sessions/queue-update.js +0 -59
@@ -0,0 +1,56 @@
1
+ export const operation = {
2
+ "method": "post",
3
+ "path": "/api/devices/mac/notes/search",
4
+ "command": [
5
+ "mac",
6
+ "notes",
7
+ "search"
8
+ ],
9
+ "summary": "Search notes on the member's Mac whose title or body contains --query, in one folder (by id or exact name) or in all. Answers notes (id, title, folder, modified, snippet) and nextCursor, null on the last page: pass it as --cursor for the next (--limit 25 by default, at most 100). Without Apple Notes turned on in the Sensei app on that Mac (Settings, You, Integrations) it fails with PERMISSION_MISSING, which says so. Only Sensei calls it; a Chat Session gets 403 SENSEI_ONLY_TOOL.",
10
+ "pathParams": [],
11
+ "query": [],
12
+ "body": {
13
+ "fields": [
14
+ {
15
+ "name": "deviceId",
16
+ "flag": "device-id",
17
+ "kind": "string",
18
+ "required": false,
19
+ "description": "The member’s Mac, by the device ID `kosuke mac status get` prints. Leave it out for the member’s Mac that is online."
20
+ },
21
+ {
22
+ "name": "query",
23
+ "flag": "query",
24
+ "kind": "string",
25
+ "required": true,
26
+ "description": "Matches the title or body."
27
+ },
28
+ {
29
+ "name": "folder",
30
+ "flag": "folder",
31
+ "kind": "string",
32
+ "required": false,
33
+ "description": "The folder, by id or exact name, from `kosuke mac notes folders list`."
34
+ },
35
+ {
36
+ "name": "limit",
37
+ "flag": "limit",
38
+ "kind": "integer",
39
+ "required": false,
40
+ "description": "Most items in one page: 25 by default, at most 100."
41
+ },
42
+ {
43
+ "name": "cursor",
44
+ "flag": "cursor",
45
+ "kind": "string",
46
+ "required": false,
47
+ "description": "The nextCursor of the previous page. Leave it out for the first page."
48
+ }
49
+ ],
50
+ "required": true
51
+ },
52
+ "multipart": null,
53
+ "attachments": false,
54
+ "anonymous": false,
55
+ "agents": "all"
56
+ };
@@ -0,0 +1,42 @@
1
+ export const operation = {
2
+ "method": "post",
3
+ "path": "/api/devices/mac/notes/append",
4
+ "command": [
5
+ "mac",
6
+ "notes",
7
+ "update"
8
+ ],
9
+ "summary": "Add plain text at the end of a note on the member's Mac, by its id: it never replaces what the note holds. Answers note: id, title and folder. Without Apple Notes turned on in the Sensei app on that Mac (Settings, You, Integrations) it fails with PERMISSION_MISSING, which says so. Only Sensei calls it; a Chat Session gets 403 SENSEI_ONLY_TOOL.",
10
+ "pathParams": [],
11
+ "query": [],
12
+ "body": {
13
+ "fields": [
14
+ {
15
+ "name": "deviceId",
16
+ "flag": "device-id",
17
+ "kind": "string",
18
+ "required": false,
19
+ "description": "The member’s Mac, by the device ID `kosuke mac status get` prints. Leave it out for the member’s Mac that is online."
20
+ },
21
+ {
22
+ "name": "id",
23
+ "flag": "id",
24
+ "kind": "string",
25
+ "required": true,
26
+ "description": "The note, by the id a search or create answered."
27
+ },
28
+ {
29
+ "name": "text",
30
+ "flag": "text",
31
+ "kind": "string",
32
+ "required": true,
33
+ "description": "Plain text added at the end of the note."
34
+ }
35
+ ],
36
+ "required": true
37
+ },
38
+ "multipart": null,
39
+ "attachments": false,
40
+ "anonymous": false,
41
+ "agents": "all"
42
+ };
@@ -0,0 +1,42 @@
1
+ export const operation = {
2
+ "method": "post",
3
+ "path": "/api/devices/mac/reminders/complete",
4
+ "command": [
5
+ "mac",
6
+ "reminders",
7
+ "complete"
8
+ ],
9
+ "summary": "Mark a reminder on the member's Mac done, by its id; --no-completed opens it again. Answers reminder. Without Apple Reminders turned on in the Sensei app on that Mac (Settings, You, Integrations) it fails with PERMISSION_MISSING, which says so. Only Sensei calls it; a Chat Session gets 403 SENSEI_ONLY_TOOL.",
10
+ "pathParams": [],
11
+ "query": [],
12
+ "body": {
13
+ "fields": [
14
+ {
15
+ "name": "deviceId",
16
+ "flag": "device-id",
17
+ "kind": "string",
18
+ "required": false,
19
+ "description": "The member’s Mac, by the device ID `kosuke mac status get` prints. Leave it out for the member’s Mac that is online."
20
+ },
21
+ {
22
+ "name": "id",
23
+ "flag": "id",
24
+ "kind": "string",
25
+ "required": true,
26
+ "description": "The reminder, by the id a list, search or create answered."
27
+ },
28
+ {
29
+ "name": "completed",
30
+ "flag": "completed",
31
+ "kind": "boolean",
32
+ "required": false,
33
+ "description": "Send false (--no-completed) to open a completed reminder again. True by default."
34
+ }
35
+ ],
36
+ "required": true
37
+ },
38
+ "multipart": null,
39
+ "attachments": false,
40
+ "anonymous": false,
41
+ "agents": "all"
42
+ };
@@ -0,0 +1,61 @@
1
+ export const operation = {
2
+ "method": "post",
3
+ "path": "/api/devices/mac/reminders/create",
4
+ "command": [
5
+ "mac",
6
+ "reminders",
7
+ "create"
8
+ ],
9
+ "summary": "Create a reminder on the member's Mac with a title, in --list (by id or exact title) or the default list, with optional notes, due (a date such as 2026-11-20, or a date and time with an offset) and priority (0 none, 1 highest to 9 lowest). Answers reminder. Without Apple Reminders turned on in the Sensei app on that Mac (Settings, You, Integrations) it fails with PERMISSION_MISSING, which says so. Only Sensei calls it; a Chat Session gets 403 SENSEI_ONLY_TOOL.",
10
+ "pathParams": [],
11
+ "query": [],
12
+ "body": {
13
+ "fields": [
14
+ {
15
+ "name": "deviceId",
16
+ "flag": "device-id",
17
+ "kind": "string",
18
+ "required": false,
19
+ "description": "The member’s Mac, by the device ID `kosuke mac status get` prints. Leave it out for the member’s Mac that is online."
20
+ },
21
+ {
22
+ "name": "title",
23
+ "flag": "title",
24
+ "kind": "string",
25
+ "required": true
26
+ },
27
+ {
28
+ "name": "list",
29
+ "flag": "list",
30
+ "kind": "string",
31
+ "required": false,
32
+ "description": "The list, by id or exact title. The default list by default."
33
+ },
34
+ {
35
+ "name": "notes",
36
+ "flag": "notes",
37
+ "kind": "string",
38
+ "required": false
39
+ },
40
+ {
41
+ "name": "due",
42
+ "flag": "due",
43
+ "kind": "string",
44
+ "required": false,
45
+ "description": "When it is due: a date (2026-11-20) or a date and time with an offset."
46
+ },
47
+ {
48
+ "name": "priority",
49
+ "flag": "priority",
50
+ "kind": "integer",
51
+ "required": false,
52
+ "description": "0 for none, 1 highest to 9 lowest, as Reminders reads it."
53
+ }
54
+ ],
55
+ "required": true
56
+ },
57
+ "multipart": null,
58
+ "attachments": false,
59
+ "anonymous": false,
60
+ "agents": "all"
61
+ };
@@ -0,0 +1,56 @@
1
+ export const operation = {
2
+ "method": "post",
3
+ "path": "/api/devices/mac/reminders/list",
4
+ "command": [
5
+ "mac",
6
+ "reminders",
7
+ "list"
8
+ ],
9
+ "summary": "List reminders on the member's Mac, open ones unless --completed, in one list (by id or exact title) or in all. Answers reminders (id, title, notes, list, due, completed, completedAt, priority) and nextCursor, null on the last page: pass it as --cursor for the next (--limit 25 by default, at most 100). Without Apple Reminders turned on in the Sensei app on that Mac (Settings, You, Integrations) it fails with PERMISSION_MISSING, which says so. Only Sensei calls it; a Chat Session gets 403 SENSEI_ONLY_TOOL.",
10
+ "pathParams": [],
11
+ "query": [],
12
+ "body": {
13
+ "fields": [
14
+ {
15
+ "name": "deviceId",
16
+ "flag": "device-id",
17
+ "kind": "string",
18
+ "required": false,
19
+ "description": "The member’s Mac, by the device ID `kosuke mac status get` prints. Leave it out for the member’s Mac that is online."
20
+ },
21
+ {
22
+ "name": "list",
23
+ "flag": "list",
24
+ "kind": "string",
25
+ "required": false,
26
+ "description": "The list, by id or exact title, from `kosuke mac reminders lists list`."
27
+ },
28
+ {
29
+ "name": "completed",
30
+ "flag": "completed",
31
+ "kind": "boolean",
32
+ "required": false,
33
+ "description": "List completed reminders instead of open ones. Open ones by default."
34
+ },
35
+ {
36
+ "name": "limit",
37
+ "flag": "limit",
38
+ "kind": "integer",
39
+ "required": false,
40
+ "description": "Most items in one page: 25 by default, at most 100."
41
+ },
42
+ {
43
+ "name": "cursor",
44
+ "flag": "cursor",
45
+ "kind": "string",
46
+ "required": false,
47
+ "description": "The nextCursor of the previous page. Leave it out for the first page."
48
+ }
49
+ ],
50
+ "required": true
51
+ },
52
+ "multipart": null,
53
+ "attachments": false,
54
+ "anonymous": false,
55
+ "agents": "all"
56
+ };
@@ -0,0 +1,29 @@
1
+ export const operation = {
2
+ "method": "post",
3
+ "path": "/api/devices/mac/reminders/lists",
4
+ "command": [
5
+ "mac",
6
+ "reminders",
7
+ "lists",
8
+ "list"
9
+ ],
10
+ "summary": "List the member's Reminders lists on their Mac. Answers lists: id, title and color. Without Apple Reminders turned on in the Sensei app on that Mac (Settings, You, Integrations) it fails with PERMISSION_MISSING, which says so. Only Sensei calls it; a Chat Session gets 403 SENSEI_ONLY_TOOL.",
11
+ "pathParams": [],
12
+ "query": [],
13
+ "body": {
14
+ "fields": [
15
+ {
16
+ "name": "deviceId",
17
+ "flag": "device-id",
18
+ "kind": "string",
19
+ "required": false,
20
+ "description": "The member’s Mac, by the device ID `kosuke mac status get` prints. Leave it out for the member’s Mac that is online."
21
+ }
22
+ ],
23
+ "required": true
24
+ },
25
+ "multipart": null,
26
+ "attachments": false,
27
+ "anonymous": false,
28
+ "agents": "all"
29
+ };
@@ -0,0 +1,63 @@
1
+ export const operation = {
2
+ "method": "post",
3
+ "path": "/api/devices/mac/reminders/search",
4
+ "command": [
5
+ "mac",
6
+ "reminders",
7
+ "search"
8
+ ],
9
+ "summary": "Search reminders on the member's Mac whose title or notes contain --query, ignoring case, in one list or in all: open and completed ones, unless --completed or --no-completed says which. Answers reminders and nextCursor, null on the last page: pass it as --cursor for the next (--limit 25 by default, at most 100). Without Apple Reminders turned on in the Sensei app on that Mac (Settings, You, Integrations) it fails with PERMISSION_MISSING, which says so. Only Sensei calls it; a Chat Session gets 403 SENSEI_ONLY_TOOL.",
10
+ "pathParams": [],
11
+ "query": [],
12
+ "body": {
13
+ "fields": [
14
+ {
15
+ "name": "deviceId",
16
+ "flag": "device-id",
17
+ "kind": "string",
18
+ "required": false,
19
+ "description": "The member’s Mac, by the device ID `kosuke mac status get` prints. Leave it out for the member’s Mac that is online."
20
+ },
21
+ {
22
+ "name": "query",
23
+ "flag": "query",
24
+ "kind": "string",
25
+ "required": true,
26
+ "description": "Matches the title and notes, ignoring case."
27
+ },
28
+ {
29
+ "name": "list",
30
+ "flag": "list",
31
+ "kind": "string",
32
+ "required": false,
33
+ "description": "The list, by id or exact title, from `kosuke mac reminders lists list`."
34
+ },
35
+ {
36
+ "name": "completed",
37
+ "flag": "completed",
38
+ "kind": "boolean",
39
+ "required": false,
40
+ "description": "Only completed (true) or only open (false) reminders. Both by default."
41
+ },
42
+ {
43
+ "name": "limit",
44
+ "flag": "limit",
45
+ "kind": "integer",
46
+ "required": false,
47
+ "description": "Most items in one page: 25 by default, at most 100."
48
+ },
49
+ {
50
+ "name": "cursor",
51
+ "flag": "cursor",
52
+ "kind": "string",
53
+ "required": false,
54
+ "description": "The nextCursor of the previous page. Leave it out for the first page."
55
+ }
56
+ ],
57
+ "required": true
58
+ },
59
+ "multipart": null,
60
+ "attachments": false,
61
+ "anonymous": false,
62
+ "agents": "all"
63
+ };
@@ -0,0 +1,75 @@
1
+ export const operation = {
2
+ "method": "post",
3
+ "path": "/api/devices/mac/reminders/update",
4
+ "command": [
5
+ "mac",
6
+ "reminders",
7
+ "update"
8
+ ],
9
+ "summary": "Change a reminder on the member's Mac, by its id: its title, notes, due (--clear-due removes it), priority, or the list it is in. Fields left out stay as they are. Answers reminder. Without Apple Reminders turned on in the Sensei app on that Mac (Settings, You, Integrations) it fails with PERMISSION_MISSING, which says so. Only Sensei calls it; a Chat Session gets 403 SENSEI_ONLY_TOOL.",
10
+ "pathParams": [],
11
+ "query": [],
12
+ "body": {
13
+ "fields": [
14
+ {
15
+ "name": "deviceId",
16
+ "flag": "device-id",
17
+ "kind": "string",
18
+ "required": false,
19
+ "description": "The member’s Mac, by the device ID `kosuke mac status get` prints. Leave it out for the member’s Mac that is online."
20
+ },
21
+ {
22
+ "name": "id",
23
+ "flag": "id",
24
+ "kind": "string",
25
+ "required": true,
26
+ "description": "The reminder, by the id a list, search or create answered."
27
+ },
28
+ {
29
+ "name": "title",
30
+ "flag": "title",
31
+ "kind": "string",
32
+ "required": false
33
+ },
34
+ {
35
+ "name": "notes",
36
+ "flag": "notes",
37
+ "kind": "string",
38
+ "required": false
39
+ },
40
+ {
41
+ "name": "due",
42
+ "flag": "due",
43
+ "kind": "string",
44
+ "required": false,
45
+ "description": "When it is due: a date (2026-11-20) or a date and time with an offset."
46
+ },
47
+ {
48
+ "name": "clearDue",
49
+ "flag": "clear-due",
50
+ "kind": "boolean",
51
+ "required": false,
52
+ "description": "Remove its due date."
53
+ },
54
+ {
55
+ "name": "priority",
56
+ "flag": "priority",
57
+ "kind": "integer",
58
+ "required": false,
59
+ "description": "0 for none, 1 highest to 9 lowest, as Reminders reads it."
60
+ },
61
+ {
62
+ "name": "list",
63
+ "flag": "list",
64
+ "kind": "string",
65
+ "required": false,
66
+ "description": "Move it to this list, by id or exact title."
67
+ }
68
+ ],
69
+ "required": true
70
+ },
71
+ "multipart": null,
72
+ "attachments": false,
73
+ "anonymous": false,
74
+ "agents": "all"
75
+ };
@@ -6,7 +6,7 @@ export const operation = {
6
6
  "jobs",
7
7
  "cancel"
8
8
  ],
9
- "summary": "Stop a running turn. Steers it had not taken go back to the top of Up next, which pauses.",
9
+ "summary": "Stop a running turn. Steers it had not read go at once as the next turn.",
10
10
  "pathParams": [
11
11
  "projectId",
12
12
  "sessionId",
@@ -6,7 +6,7 @@ export const operation = {
6
6
  "runtime-commands",
7
7
  "run"
8
8
  ],
9
- "summary": "Run a runtime command on the agent session: clear starts a fresh conversation, compact summarizes it, with optional focus instructions. Queued Up next while a turn or another command is running. Compact waits for the sandbox and can take a minute.",
9
+ "summary": "Run a runtime command on the agent session: clear starts a fresh conversation, compact summarizes it, with optional focus instructions. Refused while a turn or another command is running. Compact waits for the sandbox and can take a minute.",
10
10
  "pathParams": [
11
11
  "projectId",
12
12
  "sessionId"
@@ -5,7 +5,7 @@ export const operation = {
5
5
  "sessions",
6
6
  "send"
7
7
  ],
8
- "summary": "Send a message: starts a turn, or waits Up next while one is running. To steer the running turn with it, steer the Queued Message it becomes. Attachments ride along as multipart. Use it over steer only for attachments, a message that runs a skill, or text over 10,000 characters. From Sensei, /kosuke:sync-branch is refused with 409 SYNC_OWNED_BY_MERGE_AGENT when the project is on the merge train and the pull request has the go-ahead, unless a member started the Turn: the merge agent syncs those.",
8
+ "summary": "Send a message: starts a turn, or steers the running one. Attachments ride along as multipart. Use it over steer only for attachments, a message that runs a skill, or text over 10,000 characters. From Sensei, /kosuke:sync-branch is refused with 409 SYNC_OWNED_BY_MERGE_AGENT when the project is on the merge train and the pull request has the go-ahead, unless a member started the Turn: the merge agent syncs those.",
9
9
  "pathParams": [
10
10
  "projectId",
11
11
  "sessionId"
@@ -5,7 +5,7 @@ export const operation = {
5
5
  "sessions",
6
6
  "steer"
7
7
  ],
8
- "summary": "Send a message and steer it into your running turn. Answers delivery steer, queued (the turn could not take it), job (no turn was running) or refused (the turn was stopped). Use it for plain text up to 10,000 characters; on queued or refused, say where the message is. From Sensei, /kosuke:sync-branch is refused with 409 SYNC_OWNED_BY_MERGE_AGENT when the project is on the merge train and the pull request has the go-ahead, unless a member started the Turn: the merge agent syncs those.",
8
+ "summary": "Send a message and steer it into the running turn. Answers delivery steer, or job (no turn was running). Use it for plain text up to 10,000 characters. From Sensei, /kosuke:sync-branch is refused with 409 SYNC_OWNED_BY_MERGE_AGENT when the project is on the merge train and the pull request has the go-ahead, unless a member started the Turn: the merge agent syncs those.",
9
9
  "pathParams": [
10
10
  "projectId",
11
11
  "sessionId"
@@ -24,7 +24,7 @@ export const operation = {
24
24
  "flag": "running-job-id",
25
25
  "kind": "string",
26
26
  "required": false,
27
- "description": "The turn the sender meant to steer. Without it the latest turn stands in. A stopped turn answers delivery refused and nothing is sent."
27
+ "description": "Accepted from older clients and ignored: the running turn takes the message."
28
28
  }
29
29
  ],
30
30
  "required": true
@@ -127,7 +127,15 @@ const LISTS_WITHOUT_DEFAULT = new Set([
127
127
  'mac apps list',
128
128
  'mac browser connections list',
129
129
  'mac browser profiles list',
130
+ // The Apple apps' lists page on the Mac itself, 25 rows by default, with their own nextCursor.
131
+ 'mac calendar calendars list',
132
+ 'mac calendar events list',
130
133
  'mac files list',
134
+ 'mac messages conversations list',
135
+ 'mac messages list',
136
+ 'mac notes folders list',
137
+ 'mac reminders list',
138
+ 'mac reminders lists list',
131
139
  'mac windows list',
132
140
  'models list',
133
141
  'plugins list',