@xmarts/genius-setup 1.5.0 → 1.6.0
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/bin/genius-setup.js +6 -2
- package/package.json +1 -1
package/bin/genius-setup.js
CHANGED
|
@@ -61,9 +61,13 @@ function exchangeSetupToken(setupToken, cb) {
|
|
|
61
61
|
try { url = new URL(BASE + '/xma/genius/v1/setup/exchange'); }
|
|
62
62
|
catch (e) { return cb(e); }
|
|
63
63
|
const mod = url.protocol === 'http:' ? require('http') : require('https');
|
|
64
|
+
// device_name labels this machine in the consultant's Devices tab (each
|
|
65
|
+
// machine gets its OWN revocable key). Best-effort; harmless if unavailable.
|
|
66
|
+
let deviceName = '';
|
|
67
|
+
try { deviceName = os.hostname() || ''; } catch (_) { deviceName = ''; }
|
|
64
68
|
const payload = JSON.stringify({
|
|
65
69
|
jsonrpc: '2.0', method: 'call', id: 1,
|
|
66
|
-
params: { setup_token: setupToken },
|
|
70
|
+
params: { setup_token: setupToken, device_name: deviceName },
|
|
67
71
|
});
|
|
68
72
|
const req = mod.request({
|
|
69
73
|
hostname: url.hostname,
|
|
@@ -74,7 +78,7 @@ function exchangeSetupToken(setupToken, cb) {
|
|
|
74
78
|
'Content-Type': 'application/json',
|
|
75
79
|
'Content-Length': Buffer.byteLength(payload),
|
|
76
80
|
// Cloudflare in front of beesmart.digital 403s the default Node UA.
|
|
77
|
-
'User-Agent': 'XmartsGenius-Setup/1.
|
|
81
|
+
'User-Agent': 'XmartsGenius-Setup/1.6.0',
|
|
78
82
|
},
|
|
79
83
|
timeout: 15000,
|
|
80
84
|
}, (res) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xmarts/genius-setup",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "One-command, self-updating onboarding for Xmarts Genius (Brain MCP + per-turn injection + automatic session/time capture + CLAUDE.md protocol). Secret-free onboarding via single-use setup-token exchange (no Bearer in the GET-able bootstrap). Installs once; self-updates daily so new tools/skills/features arrive with zero action.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"genius-setup": "bin/genius-setup.js"
|