clavarium 0.2.234-beta.1 → 0.2.235-beta.1
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/npm-shrinkwrap.json +10 -10
- package/package.json +3 -3
- package/server/api.mjs +3 -1
- package/server/mcpoauth.mjs +3 -0
- package/server/settingswords.mjs +1 -1
- package/web/app.js +3 -0
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavarium",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.235-beta.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "clavarium",
|
|
9
|
-
"version": "0.2.
|
|
9
|
+
"version": "0.2.235-beta.1",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@xterm/addon-fit": "^0.11.0",
|
|
13
13
|
"@xterm/xterm": "^6.0.0",
|
|
14
14
|
"clavarium-binder": "0.1.66-next.1",
|
|
15
15
|
"clavarium-docket": "0.1.2-next.3",
|
|
16
|
-
"clavarium-parley": "0.17.
|
|
17
|
-
"clavarium-tether": "0.1.0-next.
|
|
16
|
+
"clavarium-parley": "0.17.96-next.1",
|
|
17
|
+
"clavarium-tether": "0.1.0-next.79",
|
|
18
18
|
"mammoth": "1.13.0",
|
|
19
19
|
"mermaid": "11.17.2",
|
|
20
20
|
"node-pty": "^1.1.0",
|
|
@@ -787,9 +787,9 @@
|
|
|
787
787
|
}
|
|
788
788
|
},
|
|
789
789
|
"node_modules/clavarium-parley": {
|
|
790
|
-
"version": "0.17.
|
|
791
|
-
"resolved": "https://registry.npmjs.org/clavarium-parley/-/clavarium-parley-0.17.
|
|
792
|
-
"integrity": "sha512-
|
|
790
|
+
"version": "0.17.96-next.1",
|
|
791
|
+
"resolved": "https://registry.npmjs.org/clavarium-parley/-/clavarium-parley-0.17.96-next.1.tgz",
|
|
792
|
+
"integrity": "sha512-UpRSpfdJOdoRFUsT5X/7pPaKPJ4PlnVvpdM1lml7ETXIFHJmhIGNe71Dixd+h6ETXI9rQfZ4FJ8b5CJJGjrcAg==",
|
|
793
793
|
"license": "MIT",
|
|
794
794
|
"bin": {
|
|
795
795
|
"parley": "bin/parley.mjs",
|
|
@@ -800,9 +800,9 @@
|
|
|
800
800
|
}
|
|
801
801
|
},
|
|
802
802
|
"node_modules/clavarium-tether": {
|
|
803
|
-
"version": "0.1.0-next.
|
|
804
|
-
"resolved": "https://registry.npmjs.org/clavarium-tether/-/clavarium-tether-0.1.0-next.
|
|
805
|
-
"integrity": "sha512-
|
|
803
|
+
"version": "0.1.0-next.79",
|
|
804
|
+
"resolved": "https://registry.npmjs.org/clavarium-tether/-/clavarium-tether-0.1.0-next.79.tgz",
|
|
805
|
+
"integrity": "sha512-oRbJn6olIySm1RbQLwuBK0tMklv5VIqOCYovRAdzg01BBrn9HyoDALIyOrj9VtNS1I6RsIAoI4GRU3yozNtLWw==",
|
|
806
806
|
"license": "MIT",
|
|
807
807
|
"bin": {
|
|
808
808
|
"tether": "bin/cli.mjs",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavarium",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.235-beta.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "A conversation is a VM with a terminal in it. Everything else is a folder.",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"@xterm/xterm": "^6.0.0",
|
|
48
48
|
"clavarium-binder": "0.1.66-next.1",
|
|
49
49
|
"clavarium-docket": "0.1.2-next.3",
|
|
50
|
-
"clavarium-parley": "0.17.
|
|
51
|
-
"clavarium-tether": "0.1.0-next.
|
|
50
|
+
"clavarium-parley": "0.17.96-next.1",
|
|
51
|
+
"clavarium-tether": "0.1.0-next.79",
|
|
52
52
|
"mammoth": "1.13.0",
|
|
53
53
|
"mermaid": "11.17.2",
|
|
54
54
|
"node-pty": "^1.1.0",
|
package/server/api.mjs
CHANGED
|
@@ -419,7 +419,9 @@ export async function handleApi(request, response, conversations, headers, resou
|
|
|
419
419
|
const approvals = Array.isArray(data.approvals) ? data.approvals.map((q) => { try { return { ...q, view: demandeView(q) }; } catch { return q; } }) : data.approvals;
|
|
420
420
|
/* Each paired browser: connected or not, and the tabs its person granted (browsers.mjs). Never a token. */
|
|
421
421
|
const browsersNow = tethers.browsers ? { browsers: tethers.browsers.all(), browsersWaiting: tethers.browsers.waiting() } : {};
|
|
422
|
-
|
|
422
|
+
/* Each MCP server's kept sign-in client, as the page shows it: its id, a secret kept or not -- never the secret. */
|
|
423
|
+
const targets = Array.isArray(data.targets) && tethers.oauth?.shown ? data.targets.map((x) => { if (x.kind !== 'mcp') return x; const client = tethers.oauth.shown(x.id); return client ? { ...x, client } : x; }) : data.targets;
|
|
424
|
+
return send(200, { given: tethers.given(), changes: tethers.changes(), ...data, ...(targets ? { targets } : {}), ...(approvals ? { approvals } : {}), ...browsersNow }), true;
|
|
423
425
|
}
|
|
424
426
|
/* Every device, each with all it was given. */
|
|
425
427
|
if (pathname === '/api/devices' && sharing) return send(200, sharing.devices.all()), true;
|
package/server/mcpoauth.mjs
CHANGED
|
@@ -210,6 +210,9 @@ export class McpOAuth {
|
|
|
210
210
|
return { url: url.href };
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
+
/* What the page shows of a kept client (18-11: the owner saw the fields empty again and thought it lost): its id
|
|
214
|
+
(not a secret: it travels in every sign-in address), whether a secret is kept, the permissions asked. Never the secret. */
|
|
215
|
+
shown(id) { const c = this.#client(id); return c ? { clientId: c.clientId, secret: Boolean(c.clientSecret), scope: typeof c.scope === 'string' ? c.scope : '' } : null; }
|
|
213
216
|
/* The client the owner pasted for a server, from the vault: { clientId, clientSecret, scope? } or null. */
|
|
214
217
|
#client(id) {
|
|
215
218
|
let raw;
|
package/server/settingswords.mjs
CHANGED
|
@@ -202,7 +202,7 @@ export const SETTINGS_WORDS_FR = {
|
|
|
202
202
|
'set-mcp-notjson': 'Pas du JSON : collez tout le bloc.',
|
|
203
203
|
'set-mcp-noserver': 'Pas de serveur dans ce bloc.', 'set-mcp-program': '« {name} » : programme à lancer, refusé ici.',
|
|
204
204
|
'set-mcp-heads': '« {name} » : un seul en-tête pour sa clé.', 'set-mcp-basic': '« {name} » : clé non « Bearer », à la main.',
|
|
205
|
-
'set-mcp-need': 'Collez le bloc, ou donnez nom et adresse.', 'set-mcp-tools': 'Outils', 'set-mcp-new': 'Nouveaux outils', 'set-mcp-new-ask': 'Demander une fois', 'set-mcp-new-read': 'Lecture : acceptés', 'set-mcp-new-all': 'Tous acceptés', 'set-mcp-refresh': 'Actualiser', 'set-mcp-seen': 'Marquer comme vu',
|
|
205
|
+
'set-mcp-need': 'Collez le bloc, ou donnez nom et adresse.', 'set-mcp-tools': 'Outils', 'set-mcp-new': 'Nouveaux outils', 'set-mcp-secret-kept': 'Enregistré : laisser vide pour le garder', 'set-mcp-new-ask': 'Demander une fois', 'set-mcp-new-read': 'Lecture : acceptés', 'set-mcp-new-all': 'Tous acceptés', 'set-mcp-refresh': 'Actualiser', 'set-mcp-seen': 'Marquer comme vu',
|
|
206
206
|
'set-mcp-none': 'Aucun outil listé pour l\'instant.', 'set-mcp-unreached': 'Injoignable : {why}', 'set-mcp-open': 'atteint l\'extérieur',
|
|
207
207
|
'set-mcp-fresh': 'Nouveau : demandé jusqu\'à ce que vous l\'ayez vu',
|
|
208
208
|
'set-mcp-oauth': 'Se connecter', 'set-mcp-link': 'Ou ouvrez ce lien dans un autre navigateur :', 'set-mcp-link-copy': 'Copier', 'set-mcp-link-copied': 'Copié', 'set-mcp-link-open': 'Ouvrir', 'set-mcp-client': 'Identifiant client', 'set-mcp-client-need': 'Collez son identifiant et son secret, une fois.',
|
package/web/app.js
CHANGED
|
@@ -5893,6 +5893,9 @@
|
|
|
5893
5893
|
const said = el('p', 'hint mcp-client-said', uiSaid('set-mcp-client-kept', 'Kept on the server. No AI sees them.'));
|
|
5894
5894
|
const asked = mcpClientNeed.get(t.id);
|
|
5895
5895
|
if (asked) { redirect.value = asked.redirect ?? ''; scopes.value = (asked.scopes ?? []).join(' '); clientId.value = asked.id ?? ''; }
|
|
5896
|
+
/* The client kept for it (18-11): its id and permissions shown again; the secret never, said kept. */
|
|
5897
|
+
else if (t.client) { clientId.value = t.client.clientId ?? ''; scopes.value = t.client.scope ?? ''; }
|
|
5898
|
+
if (t.client?.secret) clientSecret.placeholder = uiSaid('set-mcp-secret-kept', 'Kept — leave empty to keep it');
|
|
5896
5899
|
redirect.hidden = !redirect.value;
|
|
5897
5900
|
clientBox.append(field('set-mcp-client', 'Client ID', clientId), field('set-mcp-secret', 'Client secret', clientSecret),
|
|
5898
5901
|
field('set-mcp-scopes', 'Permissions asked', scopes), ...(redirect.value ? [field('set-mcp-redirect', 'Its app\'s redirect address', redirect)] : []), said);
|