@kosuke-ai/kosuke 1.0.159 → 1.0.161

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.161
4
+
5
+ - `kosuke integrations list --toolkit` takes an MCP server's toolkit, such as `mcp-deepwiki`: the tools of an MCP server you or a workspace admin added in Settings, Integrations.
6
+
7
+ ## 1.0.160
8
+
9
+ - Mac: the installer window is named Sensei, like the app. iPhone: Home cards show their question options and a prototype beside its questions, screenshots in a card's messages, Slack messages as Slack rows with More under the text, a visible close button on every sheet, the ticket row at the normal inset, "N more conversations" opening the older ones, picture-less items as file rows, a visible full-screen button on QA films, and the Later counter unclipped. CLI: `sensei delegates start --model` runs a delegate on another model.
10
+
3
11
  ## 1.0.159
4
12
 
5
13
  - `sensei watch-reads finish` takes each conversation's shown date as `newest.at` (an ISO datetime, `now`, an age such as `5m`, `HH:MM`, `yesterday`, a weekday, `MM-DD` or `YYYY-MM-DD`). LinkedIn and X Watching now raises a message only when its list dates it after the last read, so an old conversation that scrolls into a read no longer arrives as new.
@@ -27,6 +27,15 @@ export function toolkitSlug(raw) {
27
27
  // Slugs are lower case; `SLACK` names the same toolkit, as `SLACK_SEND_MESSAGE` names its tool.
28
28
  return raw.toLowerCase();
29
29
  }
30
+ // A member's MCP server is listed as its own toolkit, `mcp-<name>`, which takes no direct request.
31
+ const LISTED_TOOLKIT_PATTERN = /^[a-z0-9_-]{1,64}$/i;
32
+ /** A toolkit `list --toolkit` narrows to: a slug, or an MCP server's `mcp-<name>`. */
33
+ export function listedToolkitSlug(raw) {
34
+ if (!LISTED_TOOLKIT_PATTERN.test(raw)) {
35
+ throw new InvalidArgumentError('Expected a toolkit slug such as gmail or mcp-deepwiki, as `list` prints it.');
36
+ }
37
+ return raw.toLowerCase();
38
+ }
30
39
  export function accountText(raw) {
31
40
  // A flag swallowed as the value (`--account --args`) shows as a leading dash.
32
41
  if (raw.trim() === '' || raw.startsWith('-') || raw.length > MAX_ACCOUNT_CHARS) {
@@ -4,7 +4,7 @@ import { InvalidArgumentError } from 'commander';
4
4
  import { leafAt } from '../runtime/attach.js';
5
5
  import { HAND_WRITTEN } from './hand-written.js';
6
6
  import { attachIntegrationsRequest } from './integrations-request.js';
7
- import { accountText, CALL_TIMEOUT_MS, DELEGATED_RUN_HEADER, delegatedRunOf, toolkitSlug, UsageError, WORKSPACE_HELP, workspaceFor, } from './integrations-shared.js';
7
+ import { accountText, CALL_TIMEOUT_MS, DELEGATED_RUN_HEADER, delegatedRunOf, listedToolkitSlug, UsageError, WORKSPACE_HELP, workspaceFor, } from './integrations-shared.js';
8
8
  import { jsonRequested } from '../runtime/runtime.js';
9
9
  import { connectionOf, failureOf, isRow, oneLine, readOverview, rowsOf, TOOLS_PATH, transportFailure, } from '../integrations/api.js';
10
10
  import { FILE_UPLOAD_PATH, fileSize, MAX_FILE_BYTES, md5Of, mimetypeOf, parseFileArgument, putFile, setAt, uploadName, } from '../integrations/file-upload.js';
@@ -191,7 +191,7 @@ export function attachIntegrationsCommands(root, runtime, deps = {}) {
191
191
  '--search list the matching tools. A cut list says "N of M" and how to narrow it. Scope ' +
192
192
  "workspace is the workspace's own connection, the Personal space's included; scope " +
193
193
  'personal is your own account, reached in every workspace.')
194
- .option('--toolkit <slug>', 'Only this toolkit, such as gmail.', toolkitSlug)
194
+ .option('--toolkit <slug>', 'Only this toolkit, such as gmail.', listedToolkitSlug)
195
195
  .option('--search <text>', 'Only tools whose name or description mention the text.', searchText)
196
196
  .option('--account <account>', 'Only what one connection offers: an alias, id or scope:label.', accountText)
197
197
  .option('--limit <n>', 'How many tools to list with --toolkit or --search. Default 40, at most 100.', limitNumber)
@@ -33,7 +33,7 @@ export const operation = {
33
33
  "flag": "toolkit",
34
34
  "kind": "string",
35
35
  "required": false,
36
- "description": "Only this toolkit, by slug, such as gmail."
36
+ "description": "Only this toolkit, by slug, such as gmail or mcp-deepwiki."
37
37
  },
38
38
  {
39
39
  "name": "search",
@@ -103,7 +103,7 @@ export const operation = {
103
103
  "flag": "reply-label",
104
104
  "kind": "string",
105
105
  "required": false,
106
- "description": "The Reply button's label: one word of 12 characters at most that says what the member's typed words do on this card, such as \"Ask\", \"Change\", \"Edit\" or \"Answer\"; those are examples, not a list to pick from. Omit it for \"Reply\", and a card that drafts a reply reads \"Edit\" unless it is set. Set it when Reply misdescribes what typing here does."
106
+ "description": "The Reply button's label: one word of 12 characters at most that says what the member's typed words do on this card, such as \"Ask\", \"Change\" or \"Edit\"; those are examples, not a list to pick from. Never the primary's word or \"Answer\"; leave it out on a question card. Omit it for \"Reply\", and a card that drafts a reply reads \"Edit\" unless it is set. Set it when Reply misdescribes what typing here does."
107
107
  },
108
108
  {
109
109
  "name": "negativeTone",
@@ -38,6 +38,13 @@ export const operation = {
38
38
  "kind": "string",
39
39
  "required": true,
40
40
  "description": "Your brief to the delegate: what to find or make, what the member decided, the ids it needs and what to report. The platform adds the member's message itself."
41
+ },
42
+ {
43
+ "name": "model",
44
+ "flag": "model",
45
+ "kind": "string",
46
+ "required": false,
47
+ "description": "A Model for this job, such as one the member named. Omitted, or one that can't run, the job runs on its thread's Model."
41
48
  }
42
49
  ],
43
50
  "required": true
package/openapi.json CHANGED
@@ -499,11 +499,11 @@
499
499
  "name": "toolkit",
500
500
  "in": "query",
501
501
  "required": false,
502
- "description": "Only this toolkit, by slug, such as gmail.",
502
+ "description": "Only this toolkit, by slug, such as gmail or mcp-deepwiki.",
503
503
  "schema": {
504
- "description": "Only this toolkit, by slug, such as gmail.",
504
+ "description": "Only this toolkit, by slug, such as gmail or mcp-deepwiki.",
505
505
  "type": "string",
506
- "pattern": "^[a-z0-9_]{1,64}$"
506
+ "pattern": "^[a-z0-9_-]{1,64}$"
507
507
  }
508
508
  },
509
509
  {
@@ -24762,7 +24762,7 @@
24762
24762
  "maxLength": 20
24763
24763
  },
24764
24764
  "replyLabel": {
24765
- "description": "The Reply button's label: one word of 12 characters at most that says what the member's typed words do on this card, such as \"Ask\", \"Change\", \"Edit\" or \"Answer\"; those are examples, not a list to pick from. Omit it for \"Reply\", and a card that drafts a reply reads \"Edit\" unless it is set. Set it when Reply misdescribes what typing here does.",
24765
+ "description": "The Reply button's label: one word of 12 characters at most that says what the member's typed words do on this card, such as \"Ask\", \"Change\" or \"Edit\"; those are examples, not a list to pick from. Never the primary's word or \"Answer\"; leave it out on a question card. Omit it for \"Reply\", and a card that drafts a reply reads \"Edit\" unless it is set. Set it when Reply misdescribes what typing here does.",
24766
24766
  "type": "string",
24767
24767
  "minLength": 1,
24768
24768
  "maxLength": 20
@@ -26006,6 +26006,10 @@
26006
26006
  "minLength": 1,
26007
26007
  "maxLength": 20000,
26008
26008
  "description": "Your brief to the delegate: what to find or make, what the member decided, the ids it needs and what to report. The platform adds the member's message itself."
26009
+ },
26010
+ "model": {
26011
+ "description": "A Model for this job, such as one the member named. Omitted, or one that can't run, the job runs on its thread's Model.",
26012
+ "type": "string"
26009
26013
  }
26010
26014
  },
26011
26015
  "required": ["messageId", "key", "brief"]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kosuke-ai/kosuke",
3
- "version": "1.0.159",
3
+ "version": "1.0.161",
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": "f7f1982720a2b6c9eacebc4bf079629510630a19",
47
- "sourceIdentity": "52235fbeb9a2555415ce4c5ed01f09176679df8c5156d193cbfccff46edc9cba",
46
+ "sourceCommit": "9f1dc5e31fbb2a07ae406daf07478dcc24126b0b",
47
+ "sourceIdentity": "f9c8e0e5e551b1388402cc6924e0f669738293f6e46a3d101f03de8b4aafd022",
48
48
  "fragments": [
49
- "watch-read-shown-dates-6nq4ea.json"
49
+ "mcp-servers-list-toolkit-sd76l0.json"
50
50
  ]
51
51
  }
52
52
  }