@kosuke-ai/kosuke 1.0.97 → 1.0.99

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.99
4
+
5
+ - `integrations request` and `integrations list --toolkit` take a toolkit slug in any case, such as `SLACK`.
6
+
7
+ ## 1.0.98
8
+
9
+ - `integrations list` help now says the Personal space is a workspace with workspace connections of its own, and that scope personal is your own account, reached in every workspace.
10
+
3
11
  ## 1.0.97
4
12
 
5
13
  - Build the package from the API document generated at publish time; the commands it ships are unchanged.
@@ -8,7 +8,7 @@ import { isTurnToken } from '../runtime/credentials.js';
8
8
  * 60 s budget, and wait no longer than their answer takes.
9
9
  */
10
10
  export const CALL_TIMEOUT_MS = 330_000;
11
- const TOOLKIT_PATTERN = /^[a-z0-9_]{1,64}$/;
11
+ const TOOLKIT_PATTERN = /^[a-z0-9_]{1,64}$/i;
12
12
  const MAX_ACCOUNT_CHARS = 100;
13
13
  /** The header a call made by a Delegated Run carries, so the platform counts it as a delegate's. */
14
14
  export const DELEGATED_RUN_HEADER = 'x-kosuke-delegated-run';
@@ -24,7 +24,8 @@ export function toolkitSlug(raw) {
24
24
  if (!TOOLKIT_PATTERN.test(raw)) {
25
25
  throw new InvalidArgumentError('Expected a toolkit slug such as gmail, as `list` prints it.');
26
26
  }
27
- return raw;
27
+ // Slugs are lower case; `SLACK` names the same toolkit, as `SLACK_SEND_MESSAGE` names its tool.
28
+ return raw.toLowerCase();
28
29
  }
29
30
  export function accountText(raw) {
30
31
  // A flag swallowed as the value (`--account --args`) shows as a leading dash.
@@ -34,7 +35,8 @@ export function accountText(raw) {
34
35
  return raw;
35
36
  }
36
37
  export const WORKSPACE_HELP = 'The workspace to use. Required with an API key, which is refused when you are not a member of it. ' +
37
- 'Inside an agent turn the credential decides, and this is optional.';
38
+ 'Inside an agent turn the credential decides, and this is optional. The Personal space is a ' +
39
+ 'workspace too, with workspace connections of its own.';
38
40
  /** A turn's token decides its workspace; a member's API key has to name one. */
39
41
  export function workspaceFor(runtime, given) {
40
42
  if (given)
@@ -172,7 +172,9 @@ export function attachIntegrationsCommands(root, runtime, deps = {}) {
172
172
  leafAt(root, HAND_WRITTEN.integrationsList.command)
173
173
  .description('List the connected tools. With no filter, one block per toolkit: its connections (alias, ' +
174
174
  'scope, label, account, id) and how many read-only and write tools it has. --toolkit and ' +
175
- '--search list the matching tools. A cut list says "N of M" and how to narrow it.')
175
+ '--search list the matching tools. A cut list says "N of M" and how to narrow it. Scope ' +
176
+ "workspace is the workspace's own connection, the Personal space's included; scope " +
177
+ 'personal is your own account, reached in every workspace.')
176
178
  .option('--toolkit <slug>', 'Only this toolkit, such as gmail.', toolkitSlug)
177
179
  .option('--search <text>', 'Only tools whose name or description mention the text.', searchText)
178
180
  .option('--account <account>', 'Only what one connection offers: an alias, id or scope:label.', accountText)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kosuke-ai/kosuke",
3
- "version": "1.0.97",
3
+ "version": "1.0.99",
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": "0cb9c9b8987c42412202c368cbc1b0d380c1d764",
47
- "sourceIdentity": "c64adc511c9872f3246cc320b5d5383649ee8af8c7ad269ac61524b5cfb522d5",
46
+ "sourceCommit": "dcb426e4db79560eefab56c13c75b3b631a8f164",
47
+ "sourceIdentity": "d3c2fe4195351c286aa6bb9814dca97f27a909bad43471a85b24d2e2b07a09f9",
48
48
  "fragments": [
49
- "cli-generated-at-publish-2lsi5c.json"
49
+ "integration-names-any-case-t8o77w.json"
50
50
  ]
51
51
  }
52
52
  }