super-dsh 0.3.3 → 0.3.4-c
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/README.md +15 -14
- package/agent-agy/dist/world-plugin.js +1 -0
- package/agent-agy/package.json +6 -6
- package/agent-agy-sdk/dist/world-plugin.js +1 -0
- package/agent-agy-sdk/package.json +5 -5
- package/agent-claude/package.json +8 -8
- package/agent-codex/dist/world-plugin.js +1 -0
- package/agent-codex/package.json +7 -7
- package/agent-codex-sdk/dist/world-plugin.js +1 -0
- package/agent-codex-sdk/package.json +7 -7
- package/agent-hermes/bridge/hermes-ws-bridge.py +273 -0
- package/agent-hermes/dist/agent.js +27 -4
- package/agent-hermes/dist/hermes-client.js +55 -10
- package/agent-hermes/dist/index.js +12 -3
- package/agent-hermes/dist/world-plugin.js +1 -0
- package/agent-hermes/package.json +7 -7
- package/agent-omp/dist/world-plugin.js +1 -0
- package/agent-omp/package.json +8 -8
- package/agent-omp-sdk/dist/world-plugin.js +1 -0
- package/agent-omp-sdk/package.json +8 -8
- package/agent-pi/dist/world-plugin.js +1 -0
- package/agent-pi/package.json +7 -7
- package/client/index.js +106 -249
- package/cordis.patch.yml +0 -6
- package/package.json +23 -27
- package/remote/plugin.d.ts +93 -20
- package/remote/plugin.js +921 -452
- package/remote/provenance.json +15 -13
- package/superd-hub/dist/fusion-transport.js +0 -1
- package/superd-hub/dist/world-join.js +1 -0
- package/superd-hub/dist/world-provision.d.ts +4 -0
- package/superd-hub/dist/world-provision.js +37 -0
- package/superd-hub/lib/client/index.js +106 -249
- package/superd-hub/package.json +11 -11
- package/superd-hub/dist/bundle-setup.d.ts +0 -27
- package/superd-hub/dist/bundle-setup.js +0 -94
- package/superd-hub/dist/client/companion-api.d.ts +0 -5
- package/superd-hub/dist/client/companion-api.js +0 -30
- package/superd-hub/dist/companion-contract.d.ts +0 -9
- package/superd-hub/dist/companion-contract.js +0 -1
- package/superd-hub/dist/companions.d.ts +0 -30
- package/superd-hub/dist/companions.js +0 -211
package/remote/provenance.json
CHANGED
|
@@ -6,34 +6,36 @@
|
|
|
6
6
|
"better-dsh/src/remote/agent-registration.ts": "cb08eb9f5d592201054410da69b3bf383e2604899d9494a8cbd8ba2f86b3f7ad",
|
|
7
7
|
"better-dsh/src/remote/archive.ts": "fd32f96dc63421be7d56eb545badf355c6ee2498599605ffa48958b9efca9a63",
|
|
8
8
|
"better-dsh/src/remote/copy.ts": "ab2aec5ee8df814f4bc568370977d229c402489248c738eff147431a52650c52",
|
|
9
|
-
"better-dsh/src/remote/driver.ts": "
|
|
9
|
+
"better-dsh/src/remote/driver.ts": "abad7a3ac50d2d5caac4de4f258a29f5cd64b85176db4e99b2e76693349faa73",
|
|
10
10
|
"better-dsh/src/remote/endpoints.ts": "e4ab0fa1afcee815ad78976eba4036e2ed2b21eaea11f7451874b56229f12eac",
|
|
11
11
|
"better-dsh/src/remote/file-worker.ts": "31ac019a944cf7fdcd0ff044f8b330d923bf4d384c77056f9b7e3032bc8c9598",
|
|
12
|
-
"better-dsh/src/remote/helper.ts": "
|
|
12
|
+
"better-dsh/src/remote/helper.ts": "52120361f301f24c774840d9897fd6919da6e5f14b714f1f5643f942e7b2b8c8",
|
|
13
13
|
"better-dsh/src/remote/hub-contract.ts": "a7ae5501c4ffe63ced1526c2d64d7d83798fc2025f9b4aea998e033a124fe598",
|
|
14
14
|
"better-dsh/src/remote/hub-pty-pump.mjs": "dfe0cb331cc585eb4d858fbb6d8f3ff22414f3ee55109c933df0fc14502aee5c",
|
|
15
|
-
"better-dsh/src/remote/input.ts": "
|
|
16
|
-
"better-dsh/src/remote/jobs.ts": "
|
|
15
|
+
"better-dsh/src/remote/input.ts": "7d05bc17faefa2d2e6c54d612901b2d698cdc924ffa475fbcfc704cf006ee070",
|
|
16
|
+
"better-dsh/src/remote/jobs.ts": "9fa1d2c48a9c2b3e1d2cdeab6c30cb4df0e858a462eaa871110c99769335dbb3",
|
|
17
17
|
"better-dsh/src/remote/labels.ts": "d9dcfdc1c6bb292b37d3250e7897b239c416b55b3102943bcc4f1d0ce7d2e709",
|
|
18
18
|
"better-dsh/src/remote/native-copy.ts": "3f8691abb14dfb7a94e956956fb4d182b7732ffbe70f1a8ff7dec5dd2b9afb7c",
|
|
19
19
|
"better-dsh/src/remote/nonce-framing.ts": "2f2f80d6aa9934f96ba171d575dbe4cddbe2e127da3b0eec3032c5ea522cadc3",
|
|
20
20
|
"better-dsh/src/remote/oneshot.ts": "99f2c809ba1159c7865ec3cff2e6d7b1f165a7f03185a6fc9505c1a534ba57bc",
|
|
21
21
|
"better-dsh/src/remote/output-ring.ts": "a79104bd3dcddab06a3fe7e52d239a70becd4f2dcddd0c9b6513f5fe3c4ed0bc",
|
|
22
22
|
"better-dsh/src/remote/plugin.ts": "da6b985cd013ffc253ee8cf5605dc2d729e26534139dd28269db5d246511fac9",
|
|
23
|
-
"better-dsh/src/remote/process.ts": "
|
|
24
|
-
"better-dsh/src/remote/pty-session.ts": "
|
|
25
|
-
"better-dsh/src/remote/roster.ts": "
|
|
23
|
+
"better-dsh/src/remote/process.ts": "7a93489ddbf55310d6e1f86f4aa6e199ba7081dcc52ee87a2e85003bab935baf",
|
|
24
|
+
"better-dsh/src/remote/pty-session.ts": "7a221ba23a754981a03757d776a3317ad6a5244e258c2c38c403d9cd78770dc9",
|
|
25
|
+
"better-dsh/src/remote/roster.ts": "169925b34f26db409e2e93543fcc405c15ecf2ad62b8088d6d2a190b4da7907e",
|
|
26
26
|
"better-dsh/src/remote/rsync.ts": "f9c15279fdfa67b3265eeda216bcd0c46d8b4f05c6026cf2750a1c818ff333ba",
|
|
27
27
|
"better-dsh/src/remote/ssh-argv.ts": "e7f46ef3e53eaba6cfe92033afad046435db18b0b2f4b86832353d609c535662",
|
|
28
28
|
"better-dsh/src/remote/ssh-config.ts": "71ce833be5c934430e8a9ca982af055fccb71d6c3e64513ae83e7937b070e446",
|
|
29
|
+
"better-dsh/src/remote/ssh-mux.ts": "ae3f9ae94b6fb633eacfc5863ce3b41e79dd14b2ca80bd8d7a800037b3bed200",
|
|
29
30
|
"better-dsh/src/remote/ssh-process.ts": "9b4d754af5af0fe6a903e683642e94842f8662358b72467d41f2288e1e67fd79",
|
|
30
31
|
"better-dsh/src/remote/ssh-rsync-native-relay.ts": "5d9585ab30a11aeeba19ce7b43aa31f47e2ee0bde2e7c006ac3e811cf7940bdf",
|
|
31
32
|
"better-dsh/src/remote/ssh-targets.ts": "2a7e754fc26cf34e05ffb5d7f7406f35c09fd0770684db904dbf4c56d2c00beb",
|
|
32
|
-
"better-dsh/src/remote/status.ts": "
|
|
33
|
-
"better-dsh/src/remote/target.ts": "
|
|
34
|
-
"better-dsh/src/remote/tool.ts": "
|
|
33
|
+
"better-dsh/src/remote/status.ts": "3276051360b2fd08afea2de64b1bb35d383a3620324197a6d328337aed1ebeb5",
|
|
34
|
+
"better-dsh/src/remote/target.ts": "95f88a9c549f500e12bea70839126619a67627a3c7e56bd032eec38efd45725c",
|
|
35
|
+
"better-dsh/src/remote/tool.ts": "bf115fba318b693b71c05dc48d40d0d0729e6de21d2848bd4bf2c0ef1b083b3b",
|
|
36
|
+
"better-dsh/src/remote/trace.ts": "4d5529c406ed2a51a5b47760f88c7e34bd0d759695354394cef6a0b44fa9c05e",
|
|
35
37
|
"better-dsh/src/remote/transfer-tool.ts": "d02b216a31314e98fdf6933230b57adce58b9c8aebe9798aae7be808105b41e2",
|
|
36
|
-
"better-dsh/src/remote/transports.ts": "
|
|
38
|
+
"better-dsh/src/remote/transports.ts": "f3bf2c4e0a2cb1c63d1e2d16c4421f949f1726e700f066dc0bdb999af8520f8c",
|
|
37
39
|
"better-dsh/third_party/schemastery/lib/index.cjs": "aca1c1a47c7b6034feee01501aefca3e6dd97a0bac4fe334fd30647ae5a9e480",
|
|
38
40
|
"better-dsh/third_party/schemastery/lib/index.d.mts": "66847f605af58c42575333c825eefdec4ad38278ad6cb260e37aa0cc63803bbd",
|
|
39
41
|
"better-dsh/third_party/schemastery/lib/index.mjs": "cfcbe46c7416bdb35ce891c252152bbf519e08199bede5930dd7cb880c65f1ef",
|
|
@@ -71,7 +73,7 @@
|
|
|
71
73
|
"helper-bin/x86_64-unknown-linux-musl/BUILT-VER": "8601d3c2ff79795c9657b02080afffe91c42775534dd6687c6dbdc0f4924db70",
|
|
72
74
|
"helper-bin/x86_64-unknown-linux-musl/superd-run": "05b428657942abf22a0ad609433d5cab6b6182fe389851345459a0274b5a6533",
|
|
73
75
|
"hub-pty-pump.mjs": "dfe0cb331cc585eb4d858fbb6d8f3ff22414f3ee55109c933df0fc14502aee5c",
|
|
74
|
-
"plugin.d.ts": "
|
|
75
|
-
"plugin.js": "
|
|
76
|
+
"plugin.d.ts": "c0a9a99c41536bb5e0672d2128109563c741c15e96d8161dc955be3cb1612d62",
|
|
77
|
+
"plugin.js": "23596ec19c2e058d79525793ea813213e8c8b4ccea869ef69560c4b3e9c4b316"
|
|
76
78
|
}
|
|
77
79
|
}
|
|
@@ -132,7 +132,6 @@ try {
|
|
|
132
132
|
// is active.
|
|
133
133
|
const isExempt = (path) => path === CONTROL || path.startsWith(CONTROL + '/')
|
|
134
134
|
|| path === CONTROL_PREFIX || path.startsWith(CONTROL_PREFIX + '/')
|
|
135
|
-
|| path === '/api/superdCompanions' || path.startsWith('/api/superdCompanions/')
|
|
136
135
|
// Key compare matches the server demux shape: searchParams.get('agent')
|
|
137
136
|
// looks up PERCENT-DECODED keys, so '%61gent=x' demuxes as agent=x and the
|
|
138
137
|
// surgery must strip those spellings too (+' ' wins the '+' spelling).
|
|
@@ -23,6 +23,10 @@ export interface ProvisionWorldOptions {
|
|
|
23
23
|
worldHome: string;
|
|
24
24
|
/** Profile directory name under `<worldHome>/profiles`. Default `'web'`. */
|
|
25
25
|
profileName?: string;
|
|
26
|
+
/** Host surface (the caller's ctx0 context) — carries `profileContext` for CTX0 mirrors. */
|
|
27
|
+
host?: {
|
|
28
|
+
get(name: string): unknown;
|
|
29
|
+
};
|
|
26
30
|
}
|
|
27
31
|
/**
|
|
28
32
|
* Provision one world's nested profile (idempotent: rewrites profile files,
|
|
@@ -104,6 +104,36 @@ function resolveHostPackageDir(spec) {
|
|
|
104
104
|
}
|
|
105
105
|
throw new Error(`super-dsh: cannot resolve ${spec} from the running host (set SUPERD_DSH_ANCHOR)`);
|
|
106
106
|
}
|
|
107
|
+
/**
|
|
108
|
+
* Copy the CTX0 profile patch's `ui-settings-general` row (id..next-row) verbatim
|
|
109
|
+
* into a world's patch template. Best-effort: no CTX0 facts or no row → no lines.
|
|
110
|
+
*/
|
|
111
|
+
function mirrorCtx0SettingsGeneralRow(host) {
|
|
112
|
+
try {
|
|
113
|
+
const launcher = host?.get('profileContext');
|
|
114
|
+
if (launcher === undefined || typeof launcher.home !== 'string' || typeof launcher.name !== 'string')
|
|
115
|
+
return [];
|
|
116
|
+
const patch = readFileSync(join(launcher.home, 'profiles', launcher.name, 'cordis.patch.yml'), 'utf8');
|
|
117
|
+
const lines = patch.split('\n');
|
|
118
|
+
const start = lines.findIndex((line) => line.trim() === '- id: ui-settings-general');
|
|
119
|
+
if (start < 0)
|
|
120
|
+
return [];
|
|
121
|
+
let end = start + 1;
|
|
122
|
+
while (end < lines.length && !lines[end].startsWith('- id:'))
|
|
123
|
+
end++;
|
|
124
|
+
while (end > start && lines[end - 1].trim() === '')
|
|
125
|
+
end--;
|
|
126
|
+
return [
|
|
127
|
+
'# Mirror of the CTX0 profile patch (ui-settings-general): worlds project the',
|
|
128
|
+
'# same settings namespace values — the welcome-notice ack rides this row.',
|
|
129
|
+
...lines.slice(start, end),
|
|
130
|
+
'',
|
|
131
|
+
];
|
|
132
|
+
}
|
|
133
|
+
catch {
|
|
134
|
+
return []; // best-effort mirror: the notice degrades to today's behavior
|
|
135
|
+
}
|
|
136
|
+
}
|
|
107
137
|
/**
|
|
108
138
|
* Provision one world's nested profile (idempotent: rewrites profile files,
|
|
109
139
|
* re-links packages — lstat-safe against dangling links). Returns whether
|
|
@@ -171,6 +201,13 @@ function provisionWorldProfileUnchecked(opts) {
|
|
|
171
201
|
' disabled: true',
|
|
172
202
|
'- id: client-hmr',
|
|
173
203
|
' disabled: true',
|
|
204
|
+
// Native settings namespaces project their values from the composition
|
|
205
|
+
// row, not a mutable store: without this mirror every world reads
|
|
206
|
+
// `ui-settings-general` as UNACKNOWLEDGED and the native Preview Notice
|
|
207
|
+
// mounts (its Continue cannot save — the read-back projects the same
|
|
208
|
+
// composition). Mirror the CTX0 row verbatim so worlds see what ctx0
|
|
209
|
+
// sees; upstream version bumps flow through automatically.
|
|
210
|
+
...mirrorCtx0SettingsGeneralRow(opts.host),
|
|
174
211
|
'',
|
|
175
212
|
].join('\n'));
|
|
176
213
|
// @pgmi-builds links, plugin-add shape: adapter + hub into the world
|
|
@@ -2271,145 +2271,6 @@ async function removeProvider(agentKey, namespace, id, doFetch) {
|
|
|
2271
2271
|
return requireProvidersView(await callRuntimeSettings(agentKey, namespace, "remove", { request: { id } }, doFetch));
|
|
2272
2272
|
}
|
|
2273
2273
|
|
|
2274
|
-
//#endregion
|
|
2275
|
-
//#region src/client/companion-api.ts
|
|
2276
|
-
async function callCompanion(operation, doFetch) {
|
|
2277
|
-
const method = `superdCompanions/${operation}`;
|
|
2278
|
-
const response = await (doFetch ?? ((path, init) => fetch(path, init)))(`/api/${method}`, {
|
|
2279
|
-
method: "POST",
|
|
2280
|
-
credentials: "same-origin",
|
|
2281
|
-
headers: { "content-type": "application/json" },
|
|
2282
|
-
body: JSON.stringify({
|
|
2283
|
-
type: "client-request",
|
|
2284
|
-
rpcId: mintRpcId(),
|
|
2285
|
-
method,
|
|
2286
|
-
payload: { args: {} }
|
|
2287
|
-
})
|
|
2288
|
-
});
|
|
2289
|
-
if (!response.ok) throw new Error(`Better Dash: HTTP ${response.status}`);
|
|
2290
|
-
let body;
|
|
2291
|
-
try {
|
|
2292
|
-
body = JSON.parse(await response.text());
|
|
2293
|
-
} catch {
|
|
2294
|
-
throw new Error("Better Dash: unreadable response");
|
|
2295
|
-
}
|
|
2296
|
-
const result = body?.result;
|
|
2297
|
-
if (result?.ok !== true) throw new Error(result?.error?.message ?? "Better Dash: request failed");
|
|
2298
|
-
const value = result.value;
|
|
2299
|
-
if (value === null || typeof value !== "object" || typeof value.installed !== "boolean" || typeof value.installing !== "boolean" || typeof value.requestedVersion !== "string" || value.version !== void 0 && typeof value.version !== "string" || value.enabled !== void 0 && typeof value.enabled !== "boolean" || value.error !== void 0 && typeof value.error !== "string") throw new Error("Better Dash: invalid status");
|
|
2300
|
-
return value;
|
|
2301
|
-
}
|
|
2302
|
-
|
|
2303
|
-
//#endregion
|
|
2304
|
-
//#region src/client/CompanionSettings.tsx
|
|
2305
|
-
/** Native plugin switches remain in Plugin Manager; this row provides explicit recovery. */
|
|
2306
|
-
function CompanionSettings() {
|
|
2307
|
-
const [status, setStatus] = react.default.useState();
|
|
2308
|
-
const [error, setError] = react.default.useState();
|
|
2309
|
-
const [busy, setBusy] = react.default.useState(false);
|
|
2310
|
-
const live = react.default.useRef(false);
|
|
2311
|
-
const operation = react.default.useRef(false);
|
|
2312
|
-
react.default.useEffect(() => {
|
|
2313
|
-
live.current = true;
|
|
2314
|
-
let reading = false;
|
|
2315
|
-
const refresh = async () => {
|
|
2316
|
-
if (reading || operation.current) return;
|
|
2317
|
-
reading = true;
|
|
2318
|
-
try {
|
|
2319
|
-
const next = await callCompanion("getBetterDash");
|
|
2320
|
-
if (live.current) {
|
|
2321
|
-
setStatus(next);
|
|
2322
|
-
setError(next.error);
|
|
2323
|
-
}
|
|
2324
|
-
} catch (cause) {
|
|
2325
|
-
if (live.current) setError(cause instanceof Error ? cause.message : String(cause));
|
|
2326
|
-
} finally {
|
|
2327
|
-
reading = false;
|
|
2328
|
-
}
|
|
2329
|
-
};
|
|
2330
|
-
refresh();
|
|
2331
|
-
const timer = window.setInterval(() => {
|
|
2332
|
-
refresh();
|
|
2333
|
-
}, 5e3);
|
|
2334
|
-
return () => {
|
|
2335
|
-
live.current = false;
|
|
2336
|
-
window.clearInterval(timer);
|
|
2337
|
-
};
|
|
2338
|
-
}, []);
|
|
2339
|
-
const install = async () => {
|
|
2340
|
-
if (operation.current) return;
|
|
2341
|
-
operation.current = true;
|
|
2342
|
-
setBusy(true);
|
|
2343
|
-
setError(void 0);
|
|
2344
|
-
try {
|
|
2345
|
-
const next = await callCompanion("installBetterDash");
|
|
2346
|
-
if (live.current) {
|
|
2347
|
-
setStatus(next);
|
|
2348
|
-
setError(next.error);
|
|
2349
|
-
}
|
|
2350
|
-
} catch (cause) {
|
|
2351
|
-
if (live.current) setError(cause instanceof Error ? cause.message : String(cause));
|
|
2352
|
-
} finally {
|
|
2353
|
-
operation.current = false;
|
|
2354
|
-
if (live.current) setBusy(false);
|
|
2355
|
-
}
|
|
2356
|
-
};
|
|
2357
|
-
const installing = busy || status?.installing === true;
|
|
2358
|
-
const label = status === void 0 ? "Loading…" : status.installed ? `Installed${status.version ? " · " + status.version : ""}${status.enabled === false ? " · Disabled" : ""}` : "Not installed";
|
|
2359
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2360
|
-
style: {
|
|
2361
|
-
borderRadius: 12,
|
|
2362
|
-
padding: "12px 14px",
|
|
2363
|
-
background: "var(--dsw-alias-interactive-bg-hover)"
|
|
2364
|
-
},
|
|
2365
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2366
|
-
style: {
|
|
2367
|
-
display: "flex",
|
|
2368
|
-
alignItems: "center",
|
|
2369
|
-
gap: 16
|
|
2370
|
-
},
|
|
2371
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2372
|
-
style: { flex: 1 },
|
|
2373
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
2374
|
-
style: {
|
|
2375
|
-
fontSize: 14,
|
|
2376
|
-
fontWeight: 600
|
|
2377
|
-
},
|
|
2378
|
-
children: "Better Dash"
|
|
2379
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
2380
|
-
role: "status",
|
|
2381
|
-
style: {
|
|
2382
|
-
fontSize: 12,
|
|
2383
|
-
color: "var(--dsw-alias-label-secondary)",
|
|
2384
|
-
marginTop: 4
|
|
2385
|
-
},
|
|
2386
|
-
children: installing ? "Installing…" : label
|
|
2387
|
-
})]
|
|
2388
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
2389
|
-
type: "button",
|
|
2390
|
-
disabled: installing || status?.installed === true,
|
|
2391
|
-
onClick: () => {
|
|
2392
|
-
install();
|
|
2393
|
-
},
|
|
2394
|
-
style: {
|
|
2395
|
-
padding: "6px 12px",
|
|
2396
|
-
borderRadius: 8,
|
|
2397
|
-
cursor: installing || status?.installed ? "default" : "pointer"
|
|
2398
|
-
},
|
|
2399
|
-
children: installing ? "Installing…" : status?.installed ? "Installed" : "Install"
|
|
2400
|
-
})]
|
|
2401
|
-
}), error && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
2402
|
-
role: "alert",
|
|
2403
|
-
style: {
|
|
2404
|
-
fontSize: 12,
|
|
2405
|
-
margin: "8px 0 0",
|
|
2406
|
-
color: "var(--dsw-alias-state-error-primary)"
|
|
2407
|
-
},
|
|
2408
|
-
children: error
|
|
2409
|
-
})]
|
|
2410
|
-
});
|
|
2411
|
-
}
|
|
2412
|
-
|
|
2413
2274
|
//#endregion
|
|
2414
2275
|
//#region src/client/HubPage.tsx
|
|
2415
2276
|
const EMPTY_DRAFT = {
|
|
@@ -2440,6 +2301,16 @@ const chipMonoId = {
|
|
|
2440
2301
|
fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace",
|
|
2441
2302
|
fontSize: 10.5
|
|
2442
2303
|
};
|
|
2304
|
+
/** Machine-row display name: shrinkable, so an arbitrarily long name can
|
|
2305
|
+
* never force the row wider than the viewport — it ellipsizes like the
|
|
2306
|
+
* origin URL beside it. */
|
|
2307
|
+
const rowNameStyle = {
|
|
2308
|
+
fontWeight: 500,
|
|
2309
|
+
whiteSpace: "nowrap",
|
|
2310
|
+
minWidth: 0,
|
|
2311
|
+
overflow: "hidden",
|
|
2312
|
+
textOverflow: "ellipsis"
|
|
2313
|
+
};
|
|
2443
2314
|
/** The status dot's fixed part (the color is decided per row). */
|
|
2444
2315
|
const dotStyle = {
|
|
2445
2316
|
width: 8,
|
|
@@ -2449,7 +2320,7 @@ const dotStyle = {
|
|
|
2449
2320
|
};
|
|
2450
2321
|
/** The machine origin column: monospace, eats the leftover row width. */
|
|
2451
2322
|
const originStyle = {
|
|
2452
|
-
flex: 1,
|
|
2323
|
+
flex: "1 1 150px",
|
|
2453
2324
|
minWidth: 0,
|
|
2454
2325
|
overflow: "hidden",
|
|
2455
2326
|
textOverflow: "ellipsis",
|
|
@@ -2563,7 +2434,7 @@ const sectionHeadStyle = {
|
|
|
2563
2434
|
* keeps the surface lit while its panel is open, so the open row stays
|
|
2564
2435
|
* identifiable after the pointer leaves. The switch lives in the row's button.
|
|
2565
2436
|
*/
|
|
2566
|
-
function HoverRow({ children, onClick, clickable, expanded }) {
|
|
2437
|
+
function HoverRow({ children, onClick, clickable, expanded, wrap }) {
|
|
2567
2438
|
const [hover, setHover] = react.useState(false);
|
|
2568
2439
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", {
|
|
2569
2440
|
onClick,
|
|
@@ -2577,7 +2448,8 @@ function HoverRow({ children, onClick, clickable, expanded }) {
|
|
|
2577
2448
|
style: {
|
|
2578
2449
|
display: "flex",
|
|
2579
2450
|
alignItems: "center",
|
|
2580
|
-
|
|
2451
|
+
flexWrap: wrap ? "wrap" : "nowrap",
|
|
2452
|
+
gap: wrap ? "4px 12px" : 12,
|
|
2581
2453
|
margin: "0 -8px",
|
|
2582
2454
|
padding: "9px 8px",
|
|
2583
2455
|
borderRadius: 12,
|
|
@@ -3573,11 +3445,7 @@ function HubPage() {
|
|
|
3573
3445
|
gap: 4,
|
|
3574
3446
|
borderBottom: "1px solid var(--dsw-alias-border-l3)"
|
|
3575
3447
|
},
|
|
3576
|
-
children: [
|
|
3577
|
-
["home", "Home"],
|
|
3578
|
-
["workflows", "Workflows"],
|
|
3579
|
-
["settings", "Settings"]
|
|
3580
|
-
].map(([id, label]) => {
|
|
3448
|
+
children: [["home", "Home"], ["workflows", "Workflows"]].map(([id, label]) => {
|
|
3581
3449
|
const active = tab === id;
|
|
3582
3450
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
3583
3451
|
type: "button",
|
|
@@ -3619,17 +3487,6 @@ function HubPage() {
|
|
|
3619
3487
|
children: "Orchestration across the machines and runtimes above — workflow authoring lands with the hub service."
|
|
3620
3488
|
})]
|
|
3621
3489
|
}),
|
|
3622
|
-
tab === "settings" && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
|
|
3623
|
-
style: {
|
|
3624
|
-
display: "flex",
|
|
3625
|
-
flexDirection: "column",
|
|
3626
|
-
gap: 8
|
|
3627
|
-
},
|
|
3628
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(GroupHead, {
|
|
3629
|
-
title: "Settings",
|
|
3630
|
-
count: 1
|
|
3631
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CompanionSettings, {})]
|
|
3632
|
-
}),
|
|
3633
3490
|
tab === "home" && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
|
|
3634
3491
|
style: {
|
|
3635
3492
|
display: "flex",
|
|
@@ -3716,98 +3573,98 @@ function HubPage() {
|
|
|
3716
3573
|
},
|
|
3717
3574
|
children: "No machines yet — add the first one with its token URL."
|
|
3718
3575
|
}),
|
|
3719
|
-
mesh.self !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(HoverRow, {
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
children: "self"
|
|
3760
|
-
})
|
|
3761
|
-
] }),
|
|
3762
|
-
mesh.machines.map((machine) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(HoverRow, { children: [
|
|
3763
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
3764
|
-
title: machine.status,
|
|
3765
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StatusMark, {
|
|
3766
|
-
status: machine.status,
|
|
3767
|
-
size: 16
|
|
3576
|
+
mesh.self !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(HoverRow, {
|
|
3577
|
+
wrap: true,
|
|
3578
|
+
children: [
|
|
3579
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
3580
|
+
"aria-hidden": true,
|
|
3581
|
+
style: {
|
|
3582
|
+
...dotStyle,
|
|
3583
|
+
background: "var(--dsw-alias-state-success-primary)"
|
|
3584
|
+
}
|
|
3585
|
+
}),
|
|
3586
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
3587
|
+
style: rowNameStyle,
|
|
3588
|
+
children: mesh.self.label
|
|
3589
|
+
}),
|
|
3590
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
3591
|
+
style: {
|
|
3592
|
+
...originStyle,
|
|
3593
|
+
flex: "0 1 auto"
|
|
3594
|
+
},
|
|
3595
|
+
children: [hereOrigin, mesh.self.tokenPreview !== void 0 ? `/?token=${mesh.self.tokenPreview}` : ""]
|
|
3596
|
+
}),
|
|
3597
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
3598
|
+
type: "button",
|
|
3599
|
+
"aria-label": "Copy this machine's pairing URL",
|
|
3600
|
+
title: pairingBusy ? "Minting pairing URL…" : "Copy the token URL another machine can Add machine with",
|
|
3601
|
+
disabled: pairingBusy,
|
|
3602
|
+
onClick: () => {
|
|
3603
|
+
copyPairingUrl();
|
|
3604
|
+
},
|
|
3605
|
+
style: iconActionStyle,
|
|
3606
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.IconCopyOutlineRegular, { size: 15 })
|
|
3607
|
+
}),
|
|
3608
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { style: { flex: 1 } }),
|
|
3609
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
3610
|
+
style: chipMonoId,
|
|
3611
|
+
children: mesh.self.id
|
|
3612
|
+
}),
|
|
3613
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
3614
|
+
style: chipSelf,
|
|
3615
|
+
children: "self"
|
|
3768
3616
|
})
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3617
|
+
]
|
|
3618
|
+
}),
|
|
3619
|
+
mesh.machines.map((machine) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(HoverRow, {
|
|
3620
|
+
wrap: true,
|
|
3621
|
+
children: [
|
|
3622
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
3623
|
+
title: machine.status,
|
|
3624
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StatusMark, {
|
|
3625
|
+
status: machine.status,
|
|
3626
|
+
size: 16
|
|
3627
|
+
})
|
|
3628
|
+
}),
|
|
3629
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
3630
|
+
style: rowNameStyle,
|
|
3631
|
+
children: machine.name
|
|
3632
|
+
}),
|
|
3633
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
3634
|
+
style: originStyle,
|
|
3635
|
+
children: machine.origin
|
|
3636
|
+
}),
|
|
3637
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
3638
|
+
style: chipMonoId,
|
|
3639
|
+
children: machine.id
|
|
3640
|
+
}),
|
|
3641
|
+
machineVersionChip(machine) !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
3642
|
+
style: chipWarn,
|
|
3643
|
+
title: `machine ${machine.id}`,
|
|
3644
|
+
children: machine.versionWarning
|
|
3645
|
+
}),
|
|
3646
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
3647
|
+
type: "button",
|
|
3648
|
+
"aria-label": `Refresh ${machine.name}`,
|
|
3649
|
+
title: `Refresh ${machine.name}`,
|
|
3650
|
+
onClick: () => {
|
|
3651
|
+
reprobeRemote(machine.id);
|
|
3652
|
+
},
|
|
3653
|
+
style: iconActionStyle,
|
|
3654
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.IconRefreshOutlineRegular, { size: 15 })
|
|
3655
|
+
}),
|
|
3656
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
3657
|
+
type: "button",
|
|
3658
|
+
"aria-label": `Remove ${machine.name}`,
|
|
3659
|
+
title: `Remove ${machine.name}`,
|
|
3660
|
+
onClick: () => {
|
|
3661
|
+
removeRemote(machine.id);
|
|
3662
|
+
},
|
|
3663
|
+
style: iconActionStyle,
|
|
3664
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.IconTrashOutlineRegular, { size: 15 })
|
|
3665
|
+
})
|
|
3666
|
+
]
|
|
3667
|
+
}, machine.id))
|
|
3811
3668
|
]
|
|
3812
3669
|
}),
|
|
3813
3670
|
showAdd && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
package/superd-hub/package.json
CHANGED
|
@@ -45,17 +45,17 @@
|
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"@earendil-works/pi-coding-agent": "0.84.2",
|
|
47
47
|
"@deepseek-ai/cordis": "*",
|
|
48
|
-
"@deepseek-ai/dsh-agent": ">=0.2.
|
|
49
|
-
"@deepseek-ai/dsh-api-gateway": ">=0.2.
|
|
50
|
-
"@deepseek-ai/dsh-home-paths": ">=0.2.
|
|
51
|
-
"@deepseek-ai/dsh-host-webserver": ">=0.2.
|
|
52
|
-
"@deepseek-ai/dsh-tools": ">=0.2.
|
|
53
|
-
"@deepseek-ai/dsh-typert-protocol": ">=0.2.
|
|
54
|
-
"@deepseek-ai/dsh-client-connection": ">=0.2.
|
|
55
|
-
"@deepseek-ai/dsh-app-boot": ">=0.2.
|
|
56
|
-
"@deepseek-ai/dsh-atomic-write": ">=0.2.
|
|
57
|
-
"@deepseek-ai/dsh-cmdline": ">=0.2.
|
|
58
|
-
"@deepseek-ai/dsh-plugin-manager": ">=0.2.
|
|
48
|
+
"@deepseek-ai/dsh-agent": ">=0.2.0-0 <1.0.0-0",
|
|
49
|
+
"@deepseek-ai/dsh-api-gateway": ">=0.2.0-0 <1.0.0-0",
|
|
50
|
+
"@deepseek-ai/dsh-home-paths": ">=0.2.0-0 <1.0.0-0",
|
|
51
|
+
"@deepseek-ai/dsh-host-webserver": ">=0.2.0-0 <1.0.0-0",
|
|
52
|
+
"@deepseek-ai/dsh-tools": ">=0.2.0-0 <1.0.0-0",
|
|
53
|
+
"@deepseek-ai/dsh-typert-protocol": ">=0.2.0-0 <1.0.0-0",
|
|
54
|
+
"@deepseek-ai/dsh-client-connection": ">=0.2.0-0 <1.0.0-0",
|
|
55
|
+
"@deepseek-ai/dsh-app-boot": ">=0.2.0-0 <1.0.0-0",
|
|
56
|
+
"@deepseek-ai/dsh-atomic-write": ">=0.2.0-0 <1.0.0-0",
|
|
57
|
+
"@deepseek-ai/dsh-cmdline": ">=0.2.0-0 <1.0.0-0",
|
|
58
|
+
"@deepseek-ai/dsh-plugin-manager": ">=0.2.0-0 <1.0.0-0"
|
|
59
59
|
},
|
|
60
60
|
"peerDependenciesMeta": {
|
|
61
61
|
"@earendil-works/pi-coding-agent": {
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/** Better Dash is installed by the current profile's native Plugin Manager. */
|
|
2
|
-
import type { Context } from '@deepseek-ai/cordis';
|
|
3
|
-
import { TypertRemoteService } from '@deepseek-ai/dsh-typert-protocol';
|
|
4
|
-
import { BetterDashCompanion } from './companions.js';
|
|
5
|
-
import type { BetterDashStatus } from './companion-contract.js';
|
|
6
|
-
export { BetterDashCompanion } from './companions.js';
|
|
7
|
-
export type { BetterDashStatus } from './companion-contract.js';
|
|
8
|
-
export declare const name = "superd-bundle-setup";
|
|
9
|
-
export declare const inject: string[];
|
|
10
|
-
declare module '@deepseek-ai/cordis' {
|
|
11
|
-
interface Context {
|
|
12
|
-
superdCompanions: SuperdCompanions;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
export declare class SuperdCompanions extends TypertRemoteService {
|
|
16
|
-
private readonly companion;
|
|
17
|
-
constructor(ctx: Context, companion: BetterDashCompanion);
|
|
18
|
-
getBetterDash(): Promise<BetterDashStatus>;
|
|
19
|
-
installBetterDash(): Promise<BetterDashStatus>;
|
|
20
|
-
}
|
|
21
|
-
export declare function apply(ctx: Context): void;
|
|
22
|
-
declare const _default: {
|
|
23
|
-
name: string;
|
|
24
|
-
inject: string[];
|
|
25
|
-
apply: typeof apply;
|
|
26
|
-
};
|
|
27
|
-
export default _default;
|