@kosuke-ai/kosuke 1.0.160 → 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,9 @@
|
|
|
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
|
+
|
|
3
7
|
## 1.0.160
|
|
4
8
|
|
|
5
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.
|
|
@@ -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,
|
|
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.',
|
|
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",
|
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
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kosuke-ai/kosuke",
|
|
3
|
-
"version": "1.0.
|
|
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": "
|
|
47
|
-
"sourceIdentity": "
|
|
46
|
+
"sourceCommit": "9f1dc5e31fbb2a07ae406daf07478dcc24126b0b",
|
|
47
|
+
"sourceIdentity": "f9c8e0e5e551b1388402cc6924e0f669738293f6e46a3d101f03de8b4aafd022",
|
|
48
48
|
"fragments": [
|
|
49
|
-
"
|
|
49
|
+
"mcp-servers-list-toolkit-sd76l0.json"
|
|
50
50
|
]
|
|
51
51
|
}
|
|
52
52
|
}
|