@kosuke-ai/kosuke 1.0.64 → 1.0.65
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 +5 -0
- package/dist/generated/commands/projects/batch-merging-finish.js +1 -1
- package/dist/generated/commands/projects/batch-merging-picks-set.js +1 -1
- package/dist/generated/commands/sensei/cards-set.js +3 -2
- package/dist/generated/commands/sensei/delegates-stop.js +1 -1
- package/dist/generated/commands/sensei/messages-reply.js +1 -1
- package/dist/generated/commands/sensei/messages-send.js +1 -1
- package/dist/generated/commands/sessions/list--all.js +8 -1
- package/dist/generated/commands/sessions/list.js +8 -1
- package/dist/generated/commands/sessions/send.js +1 -1
- package/dist/generated/commands/sessions/steer.js +1 -1
- package/openapi.json +31 -10
- package/package.json +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.65
|
|
4
|
+
|
|
5
|
+
- `kosuke sessions list` takes `--include-merge-agent-runs` to list Merge agent run sessions, which it leaves out by default, and `kosuke sensei messages send` and `reply` describe that a project's Deploy agent can send a message and that a session's, the Merge agent's or a Cron's message gets the member's answer back.
|
|
6
|
+
- Document the new refusals: a Sensei-sent sync is refused with SYNC_OWNED_BY_MERGE_AGENT in Batch and Train modes, a Sensei card with no primary with PRIMARY_REQUIRED, and Kosuke closes a Batch pull request that merged nothing.
|
|
7
|
+
|
|
3
8
|
## 1.0.64
|
|
4
9
|
|
|
5
10
|
- Sensei runs on your workspace's Credentials for a provider you hold no Subscription of, instead of Sensei free, and uses the workspace's Default Model when a thread has no model of its own. Pick the workspace under Sensei workspace in Settings > You > AI Providers. Sensei no longer has Auto: pick a model, and a model at its usage limit waits for its reset or another pick.
|
|
@@ -6,7 +6,7 @@ export const operation = {
|
|
|
6
6
|
"batch-merging",
|
|
7
7
|
"finish"
|
|
8
8
|
],
|
|
9
|
-
"summary": "The running Batch's own session only: end the Batch with nothing to merge, when it left every pull request out or failed on its own work. The platform starts no Batch for the same ready pull requests for an hour, or until one changes. A Batch whose pull request merges or closes ends on its own.",
|
|
9
|
+
"summary": "The running Batch's own session only: end the Batch with nothing to merge, when it left every pull request out or failed on its own work. The platform starts no Batch for the same ready pull requests for an hour, or until one changes. Kosuke then closes the Batch's pull request with a comment giving the reason, which archives its session. A Batch whose pull request merges or closes ends on its own.",
|
|
10
10
|
"pathParams": [
|
|
11
11
|
"projectId"
|
|
12
12
|
],
|
|
@@ -7,7 +7,7 @@ export const operation = {
|
|
|
7
7
|
"picks",
|
|
8
8
|
"set"
|
|
9
9
|
],
|
|
10
|
-
"summary": "The open Batch's own session only
|
|
10
|
+
"summary": "The open Batch's own session only: replace the list of task pull requests merged into its branch. Their tasks show the Batch while it runs, and stop once it ends. Safe to repeat.",
|
|
11
11
|
"pathParams": [
|
|
12
12
|
"projectId"
|
|
13
13
|
],
|
|
@@ -6,7 +6,7 @@ export const operation = {
|
|
|
6
6
|
"cards",
|
|
7
7
|
"set"
|
|
8
8
|
],
|
|
9
|
-
"summary": "Open a card in your Turn's own thread, or update its open card with that key by passing the revision you read. Refused when the card moved, closed or is being sent, when your Turn stopped, when the session now lives in another thread (SESSION_MOVED), or when an id it names is not in the member's reach.",
|
|
9
|
+
"summary": "Open a card in your Turn's own thread, or update its open card with that key by passing the revision you read. Refused when the card moved, closed or is being sent, when your Turn stopped, when the session now lives in another thread (SESSION_MOVED), when the card has no primary (PRIMARY_REQUIRED: give it a verb, \"Ok\" when nothing follows), or when an id it names is not in the member's reach. The answer's warnings name what a written card misses (QA_REPORT_MISSING: a ready-, merge- or review- card with no qa_report block).",
|
|
10
10
|
"pathParams": [],
|
|
11
11
|
"query": [],
|
|
12
12
|
"body": {
|
|
@@ -68,7 +68,8 @@ export const operation = {
|
|
|
68
68
|
"name": "verb",
|
|
69
69
|
"flag": "verb",
|
|
70
70
|
"kind": "string",
|
|
71
|
-
"required": false
|
|
71
|
+
"required": false,
|
|
72
|
+
"description": "The primary button's label: one short word for what the tap does, such as \"Approve\", \"Fix\" or \"Merge\". Every card has a primary, this verb or one action with tone primary; a card without one is refused (PRIMARY_REQUIRED). When nothing follows the tap, the verb is \"Ok\": an Ok card with no instruction is an acknowledgement, needs no instruction, outcome or request, and its tap only closes the card, sending nothing to Sensei."
|
|
72
73
|
},
|
|
73
74
|
{
|
|
74
75
|
"name": "actions",
|
|
@@ -6,7 +6,7 @@ export const operation = {
|
|
|
6
6
|
"delegates",
|
|
7
7
|
"stop"
|
|
8
8
|
],
|
|
9
|
-
"summary": "Stop one of the member's delegates. A job stays stopped until the member redirects it or you note it
|
|
9
|
+
"summary": "Stop one of the member's delegates. A job stays stopped until the member redirects it or you note it.",
|
|
10
10
|
"pathParams": [
|
|
11
11
|
"delegateId"
|
|
12
12
|
],
|
|
@@ -6,7 +6,7 @@ export const operation = {
|
|
|
6
6
|
"messages",
|
|
7
7
|
"reply"
|
|
8
8
|
],
|
|
9
|
-
"summary": "Pass your member's reply to a
|
|
9
|
+
"summary": "Pass your member's reply to a message card back to the teammate, session or Cron who sent it, when the words are meant for them. It updates the answer that teammate already got for the message, so their answer card quotes the words instead of saying your member replied to their Sensei; a session is woken with the words, and a Cron's next run reads them. messageId is the message's identity and replyId the reply's id, as the reply's note names them. The same words again write nothing. Only the Turn of your member's reply sends one, for the card that reply decided. Refused with 404 when this Turn carries no reply with that replyId to the message with that messageId, and with 409 ANSWER_CHANGED when your member decided the message again since the reply. Answers the answer's id, revision, updated and the sender: memberId, sessionId or cronId, with its name.",
|
|
10
10
|
"pathParams": [],
|
|
11
11
|
"query": [],
|
|
12
12
|
"body": {
|
|
@@ -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, or a
|
|
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 a new link 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": {
|
|
@@ -8,7 +8,7 @@ export const operation = {
|
|
|
8
8
|
"variant": {
|
|
9
9
|
"scope": "all"
|
|
10
10
|
},
|
|
11
|
-
"summary": "List chat sessions across every workspace you belong to, each with its workspace, project, URL and Needs You reason. q narrows them to titles containing it, ids to the sessions it names. With needsYou, at most 100, most severe first. An agent token reads its own workspace only. Each session carries waitingForDeploy: true while it waits for the Deploy to finish, false once the Deploy ends, before its sandbox starts; goAheadSha, the head its open pull request has the go-ahead on; and mergeRule, its Assignee's Merge rule.",
|
|
11
|
+
"summary": "List chat sessions across every workspace you belong to, each with its workspace, project, URL and Needs You reason. q narrows them to titles containing it, ids to the sessions it names. Merge agent run sessions are left out unless includeMergeAgentRuns=true or ids names them. With needsYou, at most 100, most severe first. An agent token reads its own workspace only. Each session carries waitingForDeploy: true while it waits for the Deploy to finish, false once the Deploy ends, before its sandbox starts; goAheadSha, the head its open pull request has the go-ahead on; and mergeRule, its Assignee's Merge rule.",
|
|
12
12
|
"pathParams": [],
|
|
13
13
|
"query": [
|
|
14
14
|
{
|
|
@@ -28,6 +28,13 @@ export const operation = {
|
|
|
28
28
|
"required": false,
|
|
29
29
|
"description": "Add prompt to each session: its first user message, cut to the first 4,000 characters (code points), or null when it has none. promptTruncated says whether it was cut."
|
|
30
30
|
},
|
|
31
|
+
{
|
|
32
|
+
"name": "includeMergeAgentRuns",
|
|
33
|
+
"flag": "include-merge-agent-runs",
|
|
34
|
+
"kind": "boolean",
|
|
35
|
+
"required": false,
|
|
36
|
+
"description": "Keep the Merge agent's run sessions (Batches and Merge train runs), which only its panel lists by default."
|
|
37
|
+
},
|
|
31
38
|
{
|
|
32
39
|
"name": "completedSince",
|
|
33
40
|
"flag": "completed-since",
|
|
@@ -5,7 +5,7 @@ export const operation = {
|
|
|
5
5
|
"sessions",
|
|
6
6
|
"list"
|
|
7
7
|
],
|
|
8
|
-
"summary": "List chat sessions. Without limit the whole list comes back as data; with it, one page plus meta.pagination. status, priorities and owners are comma-separated strings. Each session carries waitingForDeploy: true while it waits for the Deploy to finish, false once the Deploy ends, before its sandbox starts.",
|
|
8
|
+
"summary": "List chat sessions. Without limit the whole list comes back as data; with it, one page plus meta.pagination. status, priorities and owners are comma-separated strings. Merge agent run sessions are left out unless includeMergeAgentRuns=true. Each session carries waitingForDeploy: true while it waits for the Deploy to finish, false once the Deploy ends, before its sandbox starts.",
|
|
9
9
|
"pathParams": [
|
|
10
10
|
"projectId"
|
|
11
11
|
],
|
|
@@ -120,6 +120,13 @@ export const operation = {
|
|
|
120
120
|
"kind": "boolean",
|
|
121
121
|
"required": false,
|
|
122
122
|
"description": "Add prompt to each session: its first user message, cut to the first 4,000 characters (code points), or null when it has none. promptTruncated says whether it was cut."
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "includeMergeAgentRuns",
|
|
126
|
+
"flag": "include-merge-agent-runs",
|
|
127
|
+
"kind": "boolean",
|
|
128
|
+
"required": false,
|
|
129
|
+
"description": "Keep the Merge agent's run sessions (Batches and Merge train runs), which only its panel lists by default."
|
|
123
130
|
}
|
|
124
131
|
],
|
|
125
132
|
"body": null,
|
|
@@ -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.",
|
|
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 Batch merging, or 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.",
|
|
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 Batch merging, or 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"
|
package/openapi.json
CHANGED
|
@@ -550,7 +550,7 @@
|
|
|
550
550
|
"/api/chat-sessions": {
|
|
551
551
|
"get": {
|
|
552
552
|
"operationId": "sessionsListAll",
|
|
553
|
-
"summary": "List chat sessions across every workspace you belong to, each with its workspace, project, URL and Needs You reason. q narrows them to titles containing it, ids to the sessions it names. With needsYou, at most 100, most severe first. An agent token reads its own workspace only. Each session carries waitingForDeploy: true while it waits for the Deploy to finish, false once the Deploy ends, before its sandbox starts; goAheadSha, the head its open pull request has the go-ahead on; and mergeRule, its Assignee's Merge rule.",
|
|
553
|
+
"summary": "List chat sessions across every workspace you belong to, each with its workspace, project, URL and Needs You reason. q narrows them to titles containing it, ids to the sessions it names. Merge agent run sessions are left out unless includeMergeAgentRuns=true or ids names them. With needsYou, at most 100, most severe first. An agent token reads its own workspace only. Each session carries waitingForDeploy: true while it waits for the Deploy to finish, false once the Deploy ends, before its sandbox starts; goAheadSha, the head its open pull request has the go-ahead on; and mergeRule, its Assignee's Merge rule.",
|
|
554
554
|
"tags": ["sessions"],
|
|
555
555
|
"x-kosuke-command": ["sessions", "list"],
|
|
556
556
|
"x-kosuke-variant": {
|
|
@@ -581,6 +581,16 @@
|
|
|
581
581
|
"type": "boolean"
|
|
582
582
|
}
|
|
583
583
|
},
|
|
584
|
+
{
|
|
585
|
+
"name": "includeMergeAgentRuns",
|
|
586
|
+
"in": "query",
|
|
587
|
+
"required": false,
|
|
588
|
+
"description": "Keep the Merge agent's run sessions (Batches and Merge train runs), which only its panel lists by default.",
|
|
589
|
+
"schema": {
|
|
590
|
+
"description": "Keep the Merge agent's run sessions (Batches and Merge train runs), which only its panel lists by default.",
|
|
591
|
+
"type": "boolean"
|
|
592
|
+
}
|
|
593
|
+
},
|
|
584
594
|
{
|
|
585
595
|
"name": "completedSince",
|
|
586
596
|
"in": "query",
|
|
@@ -10705,7 +10715,7 @@
|
|
|
10705
10715
|
"/api/projects/{projectId}/batch-merging/finish": {
|
|
10706
10716
|
"post": {
|
|
10707
10717
|
"operationId": "projectsBatchMergingFinish",
|
|
10708
|
-
"summary": "The running Batch's own session only: end the Batch with nothing to merge, when it left every pull request out or failed on its own work. The platform starts no Batch for the same ready pull requests for an hour, or until one changes. A Batch whose pull request merges or closes ends on its own.",
|
|
10718
|
+
"summary": "The running Batch's own session only: end the Batch with nothing to merge, when it left every pull request out or failed on its own work. The platform starts no Batch for the same ready pull requests for an hour, or until one changes. Kosuke then closes the Batch's pull request with a comment giving the reason, which archives its session. A Batch whose pull request merges or closes ends on its own.",
|
|
10709
10719
|
"tags": ["projects"],
|
|
10710
10720
|
"x-kosuke-command": ["projects", "batch-merging", "finish"],
|
|
10711
10721
|
"x-kosuke-sandbox-token": true,
|
|
@@ -10853,7 +10863,7 @@
|
|
|
10853
10863
|
"/api/projects/{projectId}/batch-merging/picks": {
|
|
10854
10864
|
"put": {
|
|
10855
10865
|
"operationId": "projectsBatchMergingPicksSet",
|
|
10856
|
-
"summary": "The open Batch's own session only
|
|
10866
|
+
"summary": "The open Batch's own session only: replace the list of task pull requests merged into its branch. Their tasks show the Batch while it runs, and stop once it ends. Safe to repeat.",
|
|
10857
10867
|
"tags": ["projects"],
|
|
10858
10868
|
"x-kosuke-command": ["projects", "batch-merging", "picks", "set"],
|
|
10859
10869
|
"x-kosuke-sandbox-token": true,
|
|
@@ -11004,7 +11014,7 @@
|
|
|
11004
11014
|
"/api/projects/{projectId}/chat-sessions": {
|
|
11005
11015
|
"get": {
|
|
11006
11016
|
"operationId": "sessionsList",
|
|
11007
|
-
"summary": "List chat sessions. Without limit the whole list comes back as data; with it, one page plus meta.pagination. status, priorities and owners are comma-separated strings. Each session carries waitingForDeploy: true while it waits for the Deploy to finish, false once the Deploy ends, before its sandbox starts.",
|
|
11017
|
+
"summary": "List chat sessions. Without limit the whole list comes back as data; with it, one page plus meta.pagination. status, priorities and owners are comma-separated strings. Merge agent run sessions are left out unless includeMergeAgentRuns=true. Each session carries waitingForDeploy: true while it waits for the Deploy to finish, false once the Deploy ends, before its sandbox starts.",
|
|
11008
11018
|
"tags": ["sessions"],
|
|
11009
11019
|
"x-kosuke-command": ["sessions", "list"],
|
|
11010
11020
|
"x-kosuke-sandbox-token": true,
|
|
@@ -11165,6 +11175,16 @@
|
|
|
11165
11175
|
"description": "Add prompt to each session: its first user message, cut to the first 4,000 characters (code points), or null when it has none. promptTruncated says whether it was cut.",
|
|
11166
11176
|
"type": "boolean"
|
|
11167
11177
|
}
|
|
11178
|
+
},
|
|
11179
|
+
{
|
|
11180
|
+
"name": "includeMergeAgentRuns",
|
|
11181
|
+
"in": "query",
|
|
11182
|
+
"required": false,
|
|
11183
|
+
"description": "Keep the Merge agent's run sessions (Batches and Merge train runs), which only its panel lists by default.",
|
|
11184
|
+
"schema": {
|
|
11185
|
+
"description": "Keep the Merge agent's run sessions (Batches and Merge train runs), which only its panel lists by default.",
|
|
11186
|
+
"type": "boolean"
|
|
11187
|
+
}
|
|
11168
11188
|
}
|
|
11169
11189
|
],
|
|
11170
11190
|
"responses": {
|
|
@@ -12528,7 +12548,7 @@
|
|
|
12528
12548
|
},
|
|
12529
12549
|
"post": {
|
|
12530
12550
|
"operationId": "sessionsSend",
|
|
12531
|
-
"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.",
|
|
12551
|
+
"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 Batch merging, or on the merge train and the pull request has the go-ahead, unless a member started the Turn: the merge agent syncs those.",
|
|
12532
12552
|
"tags": ["sessions"],
|
|
12533
12553
|
"x-kosuke-command": ["sessions", "send"],
|
|
12534
12554
|
"x-kosuke-attachments": true,
|
|
@@ -16414,7 +16434,7 @@
|
|
|
16414
16434
|
"/api/projects/{projectId}/chat-sessions/{sessionId}/steer": {
|
|
16415
16435
|
"post": {
|
|
16416
16436
|
"operationId": "sessionsSteer",
|
|
16417
|
-
"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.",
|
|
16437
|
+
"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 Batch merging, or on the merge train and the pull request has the go-ahead, unless a member started the Turn: the merge agent syncs those.",
|
|
16418
16438
|
"tags": ["sessions"],
|
|
16419
16439
|
"x-kosuke-command": ["sessions", "steer"],
|
|
16420
16440
|
"x-kosuke-sandbox-token": true,
|
|
@@ -20706,7 +20726,7 @@
|
|
|
20706
20726
|
},
|
|
20707
20727
|
"post": {
|
|
20708
20728
|
"operationId": "senseiCardsSet",
|
|
20709
|
-
"summary": "Open a card in your Turn's own thread, or update its open card with that key by passing the revision you read. Refused when the card moved, closed or is being sent, when your Turn stopped, when the session now lives in another thread (SESSION_MOVED), or when an id it names is not in the member's reach.",
|
|
20729
|
+
"summary": "Open a card in your Turn's own thread, or update its open card with that key by passing the revision you read. Refused when the card moved, closed or is being sent, when your Turn stopped, when the session now lives in another thread (SESSION_MOVED), when the card has no primary (PRIMARY_REQUIRED: give it a verb, \"Ok\" when nothing follows), or when an id it names is not in the member's reach. The answer's warnings name what a written card misses (QA_REPORT_MISSING: a ready-, merge- or review- card with no qa_report block).",
|
|
20710
20730
|
"tags": ["sensei"],
|
|
20711
20731
|
"x-kosuke-command": ["sensei", "cards", "set"],
|
|
20712
20732
|
"x-kosuke-sandbox-token": true,
|
|
@@ -21705,6 +21725,7 @@
|
|
|
21705
21725
|
"additionalProperties": false
|
|
21706
21726
|
},
|
|
21707
21727
|
"verb": {
|
|
21728
|
+
"description": "The primary button's label: one short word for what the tap does, such as \"Approve\", \"Fix\" or \"Merge\". Every card has a primary, this verb or one action with tone primary; a card without one is refused (PRIMARY_REQUIRED). When nothing follows the tap, the verb is \"Ok\": an Ok card with no instruction is an acknowledgement, needs no instruction, outcome or request, and its tap only closes the card, sending nothing to Sensei.",
|
|
21708
21729
|
"type": "string",
|
|
21709
21730
|
"minLength": 1,
|
|
21710
21731
|
"maxLength": 32
|
|
@@ -23022,7 +23043,7 @@
|
|
|
23022
23043
|
"/api/sensei/delegates/{delegateId}/stop": {
|
|
23023
23044
|
"post": {
|
|
23024
23045
|
"operationId": "senseiDelegatesStop",
|
|
23025
|
-
"summary": "Stop one of the member's delegates. A job stays stopped until the member redirects it or you note it
|
|
23046
|
+
"summary": "Stop one of the member's delegates. A job stays stopped until the member redirects it or you note it.",
|
|
23026
23047
|
"tags": ["sensei"],
|
|
23027
23048
|
"x-kosuke-command": ["sensei", "delegates", "stop"],
|
|
23028
23049
|
"x-kosuke-sandbox-token": true,
|
|
@@ -24029,7 +24050,7 @@
|
|
|
24029
24050
|
"/api/sensei/teammate-messages": {
|
|
24030
24051
|
"post": {
|
|
24031
24052
|
"operationId": "senseiMessagesSend",
|
|
24032
|
-
"summary": "Send a message to a member's Sensei. Any sender can: you, your Sensei, a Cron Run, or a
|
|
24053
|
+
"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 a new link 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.",
|
|
24033
24054
|
"tags": ["sensei"],
|
|
24034
24055
|
"x-kosuke-command": ["sensei", "messages", "send"],
|
|
24035
24056
|
"x-kosuke-sandbox-token": true,
|
|
@@ -24153,7 +24174,7 @@
|
|
|
24153
24174
|
"/api/sensei/teammate-messages/reply": {
|
|
24154
24175
|
"post": {
|
|
24155
24176
|
"operationId": "senseiMessagesReply",
|
|
24156
|
-
"summary": "Pass your member's reply to a
|
|
24177
|
+
"summary": "Pass your member's reply to a message card back to the teammate, session or Cron who sent it, when the words are meant for them. It updates the answer that teammate already got for the message, so their answer card quotes the words instead of saying your member replied to their Sensei; a session is woken with the words, and a Cron's next run reads them. messageId is the message's identity and replyId the reply's id, as the reply's note names them. The same words again write nothing. Only the Turn of your member's reply sends one, for the card that reply decided. Refused with 404 when this Turn carries no reply with that replyId to the message with that messageId, and with 409 ANSWER_CHANGED when your member decided the message again since the reply. Answers the answer's id, revision, updated and the sender: memberId, sessionId or cronId, with its name.",
|
|
24157
24178
|
"tags": ["sensei"],
|
|
24158
24179
|
"x-kosuke-command": ["sensei", "messages", "reply"],
|
|
24159
24180
|
"x-kosuke-sandbox-token": true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kosuke-ai/kosuke",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.65",
|
|
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,11 @@
|
|
|
43
43
|
"minimatch": "^11.0.1"
|
|
44
44
|
},
|
|
45
45
|
"kosukeRelease": {
|
|
46
|
-
"sourceCommit": "
|
|
47
|
-
"sourceIdentity": "
|
|
46
|
+
"sourceCommit": "35e572e767e9d36cd2500daeecfa1b213bf253a2",
|
|
47
|
+
"sourceIdentity": "7a8a15bed4f7ea85e82f15dc0418fb5ffabc275d1cdc63081d45628f0742aea2",
|
|
48
48
|
"fragments": [
|
|
49
|
-
"
|
|
49
|
+
"cli-agent-reach.json",
|
|
50
|
+
"sensei-rules-one-prompt-r7k2pq.json"
|
|
50
51
|
]
|
|
51
52
|
}
|
|
52
53
|
}
|