@staff0rd/assist 0.825.1 → 0.826.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/dist/commands/sessions/web/bundle.js +417 -417
- package/dist/index.js +27 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Command } from "commander";
|
|
|
6
6
|
// package.json
|
|
7
7
|
var package_default = {
|
|
8
8
|
name: "@staff0rd/assist",
|
|
9
|
-
version: "0.
|
|
9
|
+
version: "0.826.0",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -46873,6 +46873,30 @@ function restoreCodexSession(id, persisted, base, status2) {
|
|
|
46873
46873
|
return plan2.idle ? waitingSession(base, persisted, pty2) : runningSession(base, persisted, pty2);
|
|
46874
46874
|
}
|
|
46875
46875
|
|
|
46876
|
+
// src/commands/sessions/daemon/restoreServerRun.ts
|
|
46877
|
+
function restoreServerRun(id, persisted, base) {
|
|
46878
|
+
if (persisted.commandType !== "run" || !persisted.runName) return null;
|
|
46879
|
+
const meta = serverRunMeta(persisted.runName, persisted.cwd);
|
|
46880
|
+
if (!meta.server) return null;
|
|
46881
|
+
daemonLog(
|
|
46882
|
+
`relaunching server run session ${id} ("${persisted.name}") for ${meta.origin} (${meta.group})`
|
|
46883
|
+
);
|
|
46884
|
+
const pty2 = spawnRun({
|
|
46885
|
+
name: persisted.runName,
|
|
46886
|
+
args: persisted.runArgs,
|
|
46887
|
+
cwd: persisted.cwd
|
|
46888
|
+
});
|
|
46889
|
+
return {
|
|
46890
|
+
...runningSession(base, persisted, pty2),
|
|
46891
|
+
runName: persisted.runName,
|
|
46892
|
+
runArgs: persisted.runArgs,
|
|
46893
|
+
server: true,
|
|
46894
|
+
serverPort: meta.port,
|
|
46895
|
+
serverOrigin: meta.origin,
|
|
46896
|
+
serverGroup: meta.group
|
|
46897
|
+
};
|
|
46898
|
+
}
|
|
46899
|
+
|
|
46876
46900
|
// src/commands/sessions/daemon/unresumableReason.ts
|
|
46877
46901
|
function unresumableReason(harness) {
|
|
46878
46902
|
if (resolveHarness(harness) === "claude")
|
|
@@ -46916,6 +46940,8 @@ function restoreInteractiveSession(id, persisted, base, status2) {
|
|
|
46916
46940
|
if (persisted.commandType === "claude") {
|
|
46917
46941
|
return unrecoverableClaude(id, persisted);
|
|
46918
46942
|
}
|
|
46943
|
+
const serverRun = restoreServerRun(id, persisted, base);
|
|
46944
|
+
if (serverRun) return serverRun;
|
|
46919
46945
|
return notRestoredStub(base, persisted);
|
|
46920
46946
|
}
|
|
46921
46947
|
function unrecoverableClaude(id, persisted) {
|