@kosuke-ai/kosuke 1.2.3617 → 1.3.3622
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.3.3622
|
|
4
|
+
|
|
5
|
+
- `sensei messages send --file-ids` sends up to 10 workspace File ids with a teammate message; the recipient's card shows each one. A Personal File, another workspace's File, a folder, a deleted or an expired File is refused with 400 naming each, and nothing is sent.
|
|
6
|
+
|
|
7
|
+
## 1.2.3619
|
|
8
|
+
|
|
9
|
+
- The system cron settings accept and list `weekly-card`, the Friday "Your week in Kosuke" card members can turn off like the other system crons. The app's icon set has a trophy and a flame, the icons the Overview's new Leaderboard uses for first place and merge streaks.
|
|
10
|
+
|
|
3
11
|
## 1.2.3617
|
|
4
12
|
|
|
5
13
|
- `crons create` and `crons update` for a Personal Cron with no repositories now say that every run follows its thread's model: a model given is saved as the thread's on its first run when the thread has none.
|
|
@@ -180,7 +180,7 @@ export const operation = {
|
|
|
180
180
|
"flag": "target",
|
|
181
181
|
"kind": "json",
|
|
182
182
|
"required": true,
|
|
183
|
-
"shape": "{nudge: {day: integer}, job?: unknown, memory?: unknown, integration?: unknown, messages?: unknown, messagesDigest?: unknown, thread?: unknown, projectId?: unknown, sessionId?: unknown, pullRequest?: unknown, cronId?: unknown, deployJobId?: unknown} | {projectId: string, sessionId?: string, pullRequest?: {number: integer, headSha: string}, cronId?: string, deployJobId?: string, thread?: unknown, nudge?: unknown, job?: unknown, memory?: unknown, integration?: unknown, messages?: unknown, messagesDigest?: unknown} | {nudge?: unknown, job?: unknown, memory: \"general.md\", integration?: unknown, messages?: unknown, messagesDigest?: unknown, thread?: unknown, projectId?: unknown, sessionId?: unknown, pullRequest?: unknown, cronId?: unknown, deployJobId?: unknown} | {nudge?: unknown, job?: unknown, integration: \"linkedin\"|\"x\", memory?: unknown, messages?: unknown, messagesDigest?: unknown, thread?: unknown, projectId?: unknown, sessionId?: unknown, pullRequest?: unknown, cronId?: unknown, deployJobId?: unknown} | {nudge?: unknown, job?: unknown, messages: {connection: string, conversation: string}, messagesDigest?: unknown, memory?: unknown, integration?: unknown, thread?: unknown, projectId?: unknown, sessionId?: unknown, pullRequest?: unknown, cronId?: unknown, deployJobId?: unknown} | {nudge?: unknown, job?: unknown, messages?: unknown, messagesDigest: boolean, memory?: unknown, integration?: unknown, thread?: unknown, projectId?: unknown, sessionId?: unknown, pullRequest?: unknown, cronId?: unknown, deployJobId?: unknown} | {thread: boolean, nudge?: unknown, job?: unknown, memory?: unknown, integration?: unknown, messages?: unknown, messagesDigest?: unknown, projectId?: unknown, sessionId?: unknown, pullRequest?: unknown, cronId?: unknown, deployJobId?: unknown} | {nudge?: unknown, job: {delegateId: string, resultId: string}, memory?: unknown, integration?: unknown, messages?: unknown, messagesDigest?: unknown, thread?: unknown, projectId?: unknown, sessionId?: unknown, pullRequest?: unknown, cronId?: unknown, deployJobId?: unknown}"
|
|
183
|
+
"shape": "{weekly: {recapId: string}, nudge?: unknown, job?: unknown, memory?: unknown, integration?: unknown, messages?: unknown, messagesDigest?: unknown, thread?: unknown, projectId?: unknown, sessionId?: unknown, pullRequest?: unknown, cronId?: unknown, deployJobId?: unknown} | {nudge: {day: integer}, weekly?: unknown, job?: unknown, memory?: unknown, integration?: unknown, messages?: unknown, messagesDigest?: unknown, thread?: unknown, projectId?: unknown, sessionId?: unknown, pullRequest?: unknown, cronId?: unknown, deployJobId?: unknown} | {projectId: string, sessionId?: string, pullRequest?: {number: integer, headSha: string}, cronId?: string, deployJobId?: string, thread?: unknown, nudge?: unknown, weekly?: unknown, job?: unknown, memory?: unknown, integration?: unknown, messages?: unknown, messagesDigest?: unknown} | {nudge?: unknown, weekly?: unknown, job?: unknown, memory: \"general.md\", integration?: unknown, messages?: unknown, messagesDigest?: unknown, thread?: unknown, projectId?: unknown, sessionId?: unknown, pullRequest?: unknown, cronId?: unknown, deployJobId?: unknown} | {nudge?: unknown, weekly?: unknown, job?: unknown, integration: \"linkedin\"|\"x\", memory?: unknown, messages?: unknown, messagesDigest?: unknown, thread?: unknown, projectId?: unknown, sessionId?: unknown, pullRequest?: unknown, cronId?: unknown, deployJobId?: unknown} | {nudge?: unknown, weekly?: unknown, job?: unknown, messages: {connection: string, conversation: string}, messagesDigest?: unknown, memory?: unknown, integration?: unknown, thread?: unknown, projectId?: unknown, sessionId?: unknown, pullRequest?: unknown, cronId?: unknown, deployJobId?: unknown} | {nudge?: unknown, weekly?: unknown, job?: unknown, messages?: unknown, messagesDigest: boolean, memory?: unknown, integration?: unknown, thread?: unknown, projectId?: unknown, sessionId?: unknown, pullRequest?: unknown, cronId?: unknown, deployJobId?: unknown} | {thread: boolean, nudge?: unknown, weekly?: unknown, job?: unknown, memory?: unknown, integration?: unknown, messages?: unknown, messagesDigest?: unknown, projectId?: unknown, sessionId?: unknown, pullRequest?: unknown, cronId?: unknown, deployJobId?: unknown} | {nudge?: unknown, weekly?: unknown, job: {delegateId: string, resultId: string}, memory?: unknown, integration?: unknown, messages?: unknown, messagesDigest?: unknown, thread?: unknown, projectId?: unknown, sessionId?: unknown, pullRequest?: unknown, cronId?: unknown, deployJobId?: unknown}"
|
|
184
184
|
},
|
|
185
185
|
{
|
|
186
186
|
"name": "action",
|
|
@@ -6,7 +6,7 @@ export const operation = {
|
|
|
6
6
|
"messages",
|
|
7
7
|
"send"
|
|
8
8
|
],
|
|
9
|
-
"summary": "Send a message to a member's Sensei. Any sender can: you, your Sensei, a Cron Run, a session's agent, or a project's deploy agent; the sender is read from the credential. Their Sensei shows it on a card that says who sent it, with the action that fits, and they are notified as for any card. Name the project with projectId, and optionally the Chat Session (sessionId) or pull request (pullRequest, with projectId) it is about; a sessionId alone names its project. memberId is required: the id a Member mention carries or `kosuke workspaces members list` prints, never a guess between members who share a name. key is a slug such as merge-plan, ticket-<slug> or qa-guide, and text, up to 60,000 characters, is everything the member needs, so it can hold a ticket prompt or a whole Project QA Guide. title, why (one line: why this member), paths (the repository paths it is about) and link (a Sensei path starting with / or an https URL the card opens) are optional. The same key with new text or
|
|
9
|
+
"summary": "Send a message to a member's Sensei. Any sender can: you, your Sensei, a Cron Run, a session's agent, or a project's deploy agent; the sender is read from the credential. Their Sensei shows it on a card that says who sent it, with the action that fits, and they are notified as for any card. Name the project with projectId, and optionally the Chat Session (sessionId) or pull request (pullRequest, with projectId) it is about; a sessionId alone names its project. memberId is required: the id a Member mention carries or `kosuke workspaces members list` prints, never a guess between members who share a name. key is a slug such as merge-plan, ticket-<slug> or qa-guide, and text, up to 60,000 characters, is everything the member needs, so it can hold a ticket prompt or a whole Project QA Guide. title, why (one line: why this member), paths (the repository paths it is about) and link (a Sensei path starting with / or an https URL the card opens) are optional. fileIds, up to ten ids of the workspace's Files (`files get <workspaceId> <fileId>`), show on the recipient's card; a file the member attached, or a Personal File they ask to send, is saved to the workspace's Files first. A Personal File id, another workspace's File, a folder or an expired File is refused with 400, naming each, and then nothing is sent. The same key with new text, link or attached Files updates the open card and raises the revision; the same again writes nothing. Pass ifRevision, the revision an earlier send answered, to be refused with MESSAGE_CHANGED when it moved on. When a member sent it, the recipient's approve, edit, reject or reply comes back to the thread it was sent from. Answers id, revision, updated and the recipient: say who it went to. Keys and text by kind: ticket-<slug of the title>, whose text is \"File the ticket <title> in <project>'s Backlog.\" then the reason and the description; start-<slug>, only for an unassigned or the member's own ticket while nothing of theirs builds or waits on them; delete-<slug> with its evidence; merge-<slug> with the merged text and each task's promptRevision; cron-<slug> with its prompt, crontab and projects; merge-plan with each pull request's number, head SHA and action. Before a ticket message, read the open tasks (`tasks list --include-prompt`): send nothing for work a session already covers, and name the Todo task that covers part of it in text. A 400 VALIDATION_ERROR wrote nothing: fix the fields in details and send again with the same key and memberId. Any other refusal is final: send to nobody else instead. An unknown outcome (a timeout, a 5xx) is never sent again. Pass the body with --body or --body-file.",
|
|
10
10
|
"pathParams": [],
|
|
11
11
|
"query": [],
|
|
12
12
|
"body": {
|
|
@@ -82,6 +82,14 @@ export const operation = {
|
|
|
82
82
|
"required": false,
|
|
83
83
|
"description": "Where the card should open: a path inside Sensei starting with /, or an https URL."
|
|
84
84
|
},
|
|
85
|
+
{
|
|
86
|
+
"name": "fileIds",
|
|
87
|
+
"flag": "file-ids",
|
|
88
|
+
"kind": "json",
|
|
89
|
+
"required": false,
|
|
90
|
+
"description": "Workspace Files to send with it, by id as `kosuke files get <workspaceId> <fileId>` shows them, up to 10: Files of the message's workspace, which the recipient's card shows. A file the member attached to their message, or a Personal File the member asks to send, is saved to the workspace's Files first (`kosuke files set <workspaceId>`) and goes by that File's id; a Personal File id itself is refused.",
|
|
91
|
+
"shape": "string[] (max 10)"
|
|
92
|
+
},
|
|
85
93
|
{
|
|
86
94
|
"name": "ifRevision",
|
|
87
95
|
"flag": "if-revision",
|
package/openapi.json
CHANGED
|
@@ -25216,6 +25216,60 @@
|
|
|
25216
25216
|
},
|
|
25217
25217
|
"target": {
|
|
25218
25218
|
"anyOf": [
|
|
25219
|
+
{
|
|
25220
|
+
"type": "object",
|
|
25221
|
+
"properties": {
|
|
25222
|
+
"weekly": {
|
|
25223
|
+
"type": "object",
|
|
25224
|
+
"properties": {
|
|
25225
|
+
"recapId": {
|
|
25226
|
+
"type": "string",
|
|
25227
|
+
"pattern": "^[A-Za-z0-9_-]{16,24}$"
|
|
25228
|
+
}
|
|
25229
|
+
},
|
|
25230
|
+
"required": ["recapId"],
|
|
25231
|
+
"additionalProperties": false
|
|
25232
|
+
},
|
|
25233
|
+
"nudge": {
|
|
25234
|
+
"not": {}
|
|
25235
|
+
},
|
|
25236
|
+
"job": {
|
|
25237
|
+
"not": {}
|
|
25238
|
+
},
|
|
25239
|
+
"memory": {
|
|
25240
|
+
"not": {}
|
|
25241
|
+
},
|
|
25242
|
+
"integration": {
|
|
25243
|
+
"not": {}
|
|
25244
|
+
},
|
|
25245
|
+
"messages": {
|
|
25246
|
+
"not": {}
|
|
25247
|
+
},
|
|
25248
|
+
"messagesDigest": {
|
|
25249
|
+
"not": {}
|
|
25250
|
+
},
|
|
25251
|
+
"thread": {
|
|
25252
|
+
"not": {}
|
|
25253
|
+
},
|
|
25254
|
+
"projectId": {
|
|
25255
|
+
"not": {}
|
|
25256
|
+
},
|
|
25257
|
+
"sessionId": {
|
|
25258
|
+
"not": {}
|
|
25259
|
+
},
|
|
25260
|
+
"pullRequest": {
|
|
25261
|
+
"not": {}
|
|
25262
|
+
},
|
|
25263
|
+
"cronId": {
|
|
25264
|
+
"not": {}
|
|
25265
|
+
},
|
|
25266
|
+
"deployJobId": {
|
|
25267
|
+
"not": {}
|
|
25268
|
+
}
|
|
25269
|
+
},
|
|
25270
|
+
"required": ["weekly"],
|
|
25271
|
+
"additionalProperties": false
|
|
25272
|
+
},
|
|
25219
25273
|
{
|
|
25220
25274
|
"type": "object",
|
|
25221
25275
|
"properties": {
|
|
@@ -25231,6 +25285,9 @@
|
|
|
25231
25285
|
"required": ["day"],
|
|
25232
25286
|
"additionalProperties": false
|
|
25233
25287
|
},
|
|
25288
|
+
"weekly": {
|
|
25289
|
+
"not": {}
|
|
25290
|
+
},
|
|
25234
25291
|
"job": {
|
|
25235
25292
|
"not": {}
|
|
25236
25293
|
},
|
|
@@ -25312,6 +25369,9 @@
|
|
|
25312
25369
|
"nudge": {
|
|
25313
25370
|
"not": {}
|
|
25314
25371
|
},
|
|
25372
|
+
"weekly": {
|
|
25373
|
+
"not": {}
|
|
25374
|
+
},
|
|
25315
25375
|
"job": {
|
|
25316
25376
|
"not": {}
|
|
25317
25377
|
},
|
|
@@ -25336,6 +25396,9 @@
|
|
|
25336
25396
|
"nudge": {
|
|
25337
25397
|
"not": {}
|
|
25338
25398
|
},
|
|
25399
|
+
"weekly": {
|
|
25400
|
+
"not": {}
|
|
25401
|
+
},
|
|
25339
25402
|
"job": {
|
|
25340
25403
|
"not": {}
|
|
25341
25404
|
},
|
|
@@ -25380,6 +25443,9 @@
|
|
|
25380
25443
|
"nudge": {
|
|
25381
25444
|
"not": {}
|
|
25382
25445
|
},
|
|
25446
|
+
"weekly": {
|
|
25447
|
+
"not": {}
|
|
25448
|
+
},
|
|
25383
25449
|
"job": {
|
|
25384
25450
|
"not": {}
|
|
25385
25451
|
},
|
|
@@ -25424,6 +25490,9 @@
|
|
|
25424
25490
|
"nudge": {
|
|
25425
25491
|
"not": {}
|
|
25426
25492
|
},
|
|
25493
|
+
"weekly": {
|
|
25494
|
+
"not": {}
|
|
25495
|
+
},
|
|
25427
25496
|
"job": {
|
|
25428
25497
|
"not": {}
|
|
25429
25498
|
},
|
|
@@ -25481,6 +25550,9 @@
|
|
|
25481
25550
|
"nudge": {
|
|
25482
25551
|
"not": {}
|
|
25483
25552
|
},
|
|
25553
|
+
"weekly": {
|
|
25554
|
+
"not": {}
|
|
25555
|
+
},
|
|
25484
25556
|
"job": {
|
|
25485
25557
|
"not": {}
|
|
25486
25558
|
},
|
|
@@ -25529,6 +25601,9 @@
|
|
|
25529
25601
|
"nudge": {
|
|
25530
25602
|
"not": {}
|
|
25531
25603
|
},
|
|
25604
|
+
"weekly": {
|
|
25605
|
+
"not": {}
|
|
25606
|
+
},
|
|
25532
25607
|
"job": {
|
|
25533
25608
|
"not": {}
|
|
25534
25609
|
},
|
|
@@ -25569,6 +25644,9 @@
|
|
|
25569
25644
|
"nudge": {
|
|
25570
25645
|
"not": {}
|
|
25571
25646
|
},
|
|
25647
|
+
"weekly": {
|
|
25648
|
+
"not": {}
|
|
25649
|
+
},
|
|
25572
25650
|
"job": {
|
|
25573
25651
|
"type": "object",
|
|
25574
25652
|
"properties": {
|
|
@@ -27712,7 +27790,7 @@
|
|
|
27712
27790
|
"/api/sensei/teammate-messages": {
|
|
27713
27791
|
"post": {
|
|
27714
27792
|
"operationId": "senseiMessagesSend",
|
|
27715
|
-
"summary": "Send a message to a member's Sensei. Any sender can: you, your Sensei, a Cron Run, a session's agent, or a project's deploy agent; the sender is read from the credential. Their Sensei shows it on a card that says who sent it, with the action that fits, and they are notified as for any card. Name the project with projectId, and optionally the Chat Session (sessionId) or pull request (pullRequest, with projectId) it is about; a sessionId alone names its project. memberId is required: the id a Member mention carries or `kosuke workspaces members list` prints, never a guess between members who share a name. key is a slug such as merge-plan, ticket-<slug> or qa-guide, and text, up to 60,000 characters, is everything the member needs, so it can hold a ticket prompt or a whole Project QA Guide. title, why (one line: why this member), paths (the repository paths it is about) and link (a Sensei path starting with / or an https URL the card opens) are optional. The same key with new text or
|
|
27793
|
+
"summary": "Send a message to a member's Sensei. Any sender can: you, your Sensei, a Cron Run, a session's agent, or a project's deploy agent; the sender is read from the credential. Their Sensei shows it on a card that says who sent it, with the action that fits, and they are notified as for any card. Name the project with projectId, and optionally the Chat Session (sessionId) or pull request (pullRequest, with projectId) it is about; a sessionId alone names its project. memberId is required: the id a Member mention carries or `kosuke workspaces members list` prints, never a guess between members who share a name. key is a slug such as merge-plan, ticket-<slug> or qa-guide, and text, up to 60,000 characters, is everything the member needs, so it can hold a ticket prompt or a whole Project QA Guide. title, why (one line: why this member), paths (the repository paths it is about) and link (a Sensei path starting with / or an https URL the card opens) are optional. fileIds, up to ten ids of the workspace's Files (`files get <workspaceId> <fileId>`), show on the recipient's card; a file the member attached, or a Personal File they ask to send, is saved to the workspace's Files first. A Personal File id, another workspace's File, a folder or an expired File is refused with 400, naming each, and then nothing is sent. The same key with new text, link or attached Files updates the open card and raises the revision; the same again writes nothing. Pass ifRevision, the revision an earlier send answered, to be refused with MESSAGE_CHANGED when it moved on. When a member sent it, the recipient's approve, edit, reject or reply comes back to the thread it was sent from. Answers id, revision, updated and the recipient: say who it went to. Keys and text by kind: ticket-<slug of the title>, whose text is \"File the ticket <title> in <project>'s Backlog.\" then the reason and the description; start-<slug>, only for an unassigned or the member's own ticket while nothing of theirs builds or waits on them; delete-<slug> with its evidence; merge-<slug> with the merged text and each task's promptRevision; cron-<slug> with its prompt, crontab and projects; merge-plan with each pull request's number, head SHA and action. Before a ticket message, read the open tasks (`tasks list --include-prompt`): send nothing for work a session already covers, and name the Todo task that covers part of it in text. A 400 VALIDATION_ERROR wrote nothing: fix the fields in details and send again with the same key and memberId. Any other refusal is final: send to nobody else instead. An unknown outcome (a timeout, a 5xx) is never sent again. Pass the body with --body or --body-file.",
|
|
27716
27794
|
"tags": ["sensei"],
|
|
27717
27795
|
"x-kosuke-command": ["sensei", "messages", "send"],
|
|
27718
27796
|
"x-kosuke-sandbox-token": true,
|
|
@@ -27787,6 +27865,16 @@
|
|
|
27787
27865
|
"type": "string",
|
|
27788
27866
|
"maxLength": 2000
|
|
27789
27867
|
},
|
|
27868
|
+
"fileIds": {
|
|
27869
|
+
"description": "Workspace Files to send with it, by id as `kosuke files get <workspaceId> <fileId>` shows them, up to 10: Files of the message's workspace, which the recipient's card shows. A file the member attached to their message, or a Personal File the member asks to send, is saved to the workspace's Files first (`kosuke files set <workspaceId>`) and goes by that File's id; a Personal File id itself is refused.",
|
|
27870
|
+
"maxItems": 10,
|
|
27871
|
+
"type": "array",
|
|
27872
|
+
"items": {
|
|
27873
|
+
"type": "string",
|
|
27874
|
+
"format": "uuid",
|
|
27875
|
+
"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)$"
|
|
27876
|
+
}
|
|
27877
|
+
},
|
|
27790
27878
|
"ifRevision": {
|
|
27791
27879
|
"description": "The revision an earlier send answered. Refused with MESSAGE_CHANGED when the message moved past it.",
|
|
27792
27880
|
"type": "integer",
|
|
@@ -32097,7 +32185,8 @@
|
|
|
32097
32185
|
"people-nearby",
|
|
32098
32186
|
"daily-report",
|
|
32099
32187
|
"find-us",
|
|
32100
|
-
"daily-ideas"
|
|
32188
|
+
"daily-ideas",
|
|
32189
|
+
"weekly-card"
|
|
32101
32190
|
]
|
|
32102
32191
|
},
|
|
32103
32192
|
"systemCronOn": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kosuke-ai/kosuke",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.3622",
|
|
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": "
|
|
47
|
-
"sourceIdentity": "
|
|
46
|
+
"sourceCommit": "61581d4d5281500f2e0661be93622cc48fe65d9c",
|
|
47
|
+
"sourceIdentity": "45b50589e30588ba1961767f8cadc0883d7866a9514a99268abd162e341bc26b",
|
|
48
48
|
"fragments": [
|
|
49
|
-
"
|
|
49
|
+
"teammate-message-attachments-b3emig.json"
|
|
50
50
|
]
|
|
51
51
|
}
|
|
52
52
|
}
|