@kosuke-ai/kosuke 1.2.3601 → 1.2.3606
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.2.3606
|
|
4
|
+
|
|
5
|
+
- Name each connection's full connectionId in `kosuke integrations list` and in a tool call's meta.ranOn, so a card can reference it.
|
|
6
|
+
|
|
3
7
|
## 1.2.3601
|
|
4
8
|
|
|
5
9
|
- Files keeps everything Kosuke and Sensei make under one `system` folder: sessions, Crons, prototypes, research, reports and task scratch. A prototype saved to Files now lands in `system/prototypes/`, and a file listing can name the new kept folders.
|
package/dist/integrations/api.js
CHANGED
|
@@ -20,13 +20,17 @@ export function oneLine(value, max) {
|
|
|
20
20
|
return flat.length > max ? `${flat.slice(0, max - 1).trimEnd()}…` : flat;
|
|
21
21
|
}
|
|
22
22
|
const count = (value) => typeof value === 'number' && Number.isFinite(value) && value >= 0 ? Math.trunc(value) : 0;
|
|
23
|
+
/** A whole connection id as a card's connection reference takes it: an RFC 9562 UUID. */
|
|
24
|
+
const FULL_ID = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|0{8}-0{4}-0{4}-0{4}-0{12}|f{8}-f{4}-f{4}-f{4}-f{12})$/i;
|
|
23
25
|
export function connectionOf(row) {
|
|
24
26
|
const id = oneLine(row.id, 16);
|
|
25
27
|
const alias = oneLine(row.alias, 80);
|
|
26
28
|
if (!alias)
|
|
27
29
|
return null;
|
|
30
|
+
const connectionId = oneLine(row.connectionId, 36).toLowerCase();
|
|
28
31
|
return {
|
|
29
32
|
id,
|
|
33
|
+
connectionId: FULL_ID.test(connectionId) ? connectionId : null,
|
|
30
34
|
alias,
|
|
31
35
|
scope: row.scope === 'personal' ? 'personal' : 'workspace',
|
|
32
36
|
label: oneLine(row.label, 60),
|
|
@@ -18,6 +18,7 @@ export function withRanOn(text, connection) {
|
|
|
18
18
|
if (!isRow(body))
|
|
19
19
|
return null;
|
|
20
20
|
const ranOn = JSON.stringify({
|
|
21
|
+
...(connection.connectionId && { connectionId: connection.connectionId }),
|
|
21
22
|
alias: connection.alias,
|
|
22
23
|
scope: connection.scope,
|
|
23
24
|
label: connection.label,
|
|
@@ -7,7 +7,8 @@ const plural = (count, noun) => `${count} ${noun}${count === 1 ? '' : 's'}`;
|
|
|
7
7
|
function connectionLine(connection) {
|
|
8
8
|
const identity = connection.accountIdentity ?? 'account unknown';
|
|
9
9
|
const id = connection.id ? `, id ${connection.id}` : '';
|
|
10
|
-
|
|
10
|
+
const whole = connection.connectionId ? `, connectionId ${connection.connectionId}` : '';
|
|
11
|
+
return `${connection.alias}: ${connection.scope}, "${connection.label}", ${identity}${id}${whole}`;
|
|
11
12
|
}
|
|
12
13
|
function toolLine(tool, width) {
|
|
13
14
|
const access = (tool.access === 'read' ? '[read-only]' : '[writes]').padEnd(11);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kosuke-ai/kosuke",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3606",
|
|
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": "7d2a6823b371f54830b2139a27c4367c5c1e805c",
|
|
47
|
+
"sourceIdentity": "ca908e59210d77fa30599cfa8575a1cb0263ed7b63889ca838f6eccb811344da",
|
|
48
48
|
"fragments": [
|
|
49
|
-
"
|
|
49
|
+
"integrations-full-connection-id-56fs9y.json"
|
|
50
50
|
]
|
|
51
51
|
}
|
|
52
52
|
}
|