@schoolai/shipyard 3.26.0-rc.20260821.0 → 3.26.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/capability-detector-worker.js +4 -4
- package/dist/{chunk-PZ5HELSE.js → chunk-ASN6META.js} +2 -2
- package/dist/{chunk-YANUTYUV.js → chunk-KAA6A3YV.js} +2 -2
- package/dist/{chunk-3PS6R44Z.js → chunk-LLRLVCL4.js} +4 -4
- package/dist/{chunk-WOF2CNLX.js → chunk-OPMLQQWV.js} +49 -19
- package/dist/chunk-OPMLQQWV.js.map +1 -0
- package/dist/{chunk-OW66JVRI.js → chunk-UUE4MBYJ.js} +2 -2
- package/dist/{chunk-6Y627GV2.js → chunk-WUGADZYC.js} +2 -2
- package/dist/cursor-runner.js +3 -3
- package/dist/electron-utility.js +1 -1
- package/dist/index.js +4 -4
- package/dist/{login-G6KSXZYX.js → login-HS7TO3GQ.js} +3 -3
- package/dist/{plan-backfill-SIEOKGBX.js → plan-backfill-OM7ZKGCR.js} +4 -4
- package/dist/{serve-FAK2T3TT.js → serve-32BIUHWA.js} +39 -7
- package/dist/{serve-FAK2T3TT.js.map → serve-32BIUHWA.js.map} +1 -1
- package/dist/{start-WIWKZY7L.js → start-NAUZF4JP.js} +4 -4
- package/package.json +1 -1
- package/dist/chunk-WOF2CNLX.js.map +0 -1
- /package/dist/{chunk-PZ5HELSE.js.map → chunk-ASN6META.js.map} +0 -0
- /package/dist/{chunk-YANUTYUV.js.map → chunk-KAA6A3YV.js.map} +0 -0
- /package/dist/{chunk-3PS6R44Z.js.map → chunk-LLRLVCL4.js.map} +0 -0
- /package/dist/{chunk-OW66JVRI.js.map → chunk-UUE4MBYJ.js.map} +0 -0
- /package/dist/{chunk-6Y627GV2.js.map → chunk-WUGADZYC.js.map} +0 -0
- /package/dist/{login-G6KSXZYX.js.map → login-HS7TO3GQ.js.map} +0 -0
- /package/dist/{plan-backfill-SIEOKGBX.js.map → plan-backfill-OM7ZKGCR.js.map} +0 -0
- /package/dist/{start-WIWKZY7L.js.map → start-NAUZF4JP.js.map} +0 -0
package/dist/cursor-runner.js
CHANGED
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
} from "./chunk-BBKZIEKF.js";
|
|
7
7
|
import {
|
|
8
8
|
buildCursorUserPrompt
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KAA6A3YV.js";
|
|
10
10
|
import {
|
|
11
11
|
ContentBlockSchema,
|
|
12
12
|
HARNESS_SERVER_NAME
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-UUE4MBYJ.js";
|
|
14
|
+
import "./chunk-OPMLQQWV.js";
|
|
15
15
|
import "./chunk-EHQITHQX.js";
|
|
16
16
|
import "./chunk-X3MULCV5.js";
|
|
17
17
|
import "./chunk-CA5PKTNJ.js";
|
package/dist/electron-utility.js
CHANGED
|
@@ -71,7 +71,7 @@ async function main() {
|
|
|
71
71
|
await loadAuthFromConfig(env);
|
|
72
72
|
crumb("post-auth-load");
|
|
73
73
|
crumb("pre-serve-import");
|
|
74
|
-
const { serve } = await import("./serve-
|
|
74
|
+
const { serve } = await import("./serve-32BIUHWA.js");
|
|
75
75
|
crumb("post-serve-import");
|
|
76
76
|
const portQueue = [];
|
|
77
77
|
let acceptor = null;
|
package/dist/index.js
CHANGED
|
@@ -126,7 +126,7 @@ async function loadAuthFromConfig(env) {
|
|
|
126
126
|
async function handleSubcommand() {
|
|
127
127
|
const subcommand = process.argv[2];
|
|
128
128
|
if (subcommand === "login") {
|
|
129
|
-
const { loginCommand } = await import("./login-
|
|
129
|
+
const { loginCommand } = await import("./login-HS7TO3GQ.js");
|
|
130
130
|
const hasCheck = process.argv.includes("--check");
|
|
131
131
|
await loginCommand({ check: hasCheck });
|
|
132
132
|
return true;
|
|
@@ -137,7 +137,7 @@ async function handleSubcommand() {
|
|
|
137
137
|
return true;
|
|
138
138
|
}
|
|
139
139
|
if (subcommand === "start") {
|
|
140
|
-
const { startCommand } = await import("./start-
|
|
140
|
+
const { startCommand } = await import("./start-NAUZF4JP.js");
|
|
141
141
|
await startCommand();
|
|
142
142
|
return true;
|
|
143
143
|
}
|
|
@@ -147,7 +147,7 @@ async function handleSubcommand() {
|
|
|
147
147
|
return true;
|
|
148
148
|
}
|
|
149
149
|
if (subcommand === "plan-backfill") {
|
|
150
|
-
const { planBackfillCommand } = await import("./plan-backfill-
|
|
150
|
+
const { planBackfillCommand } = await import("./plan-backfill-OM7ZKGCR.js");
|
|
151
151
|
await planBackfillCommand();
|
|
152
152
|
return true;
|
|
153
153
|
}
|
|
@@ -159,7 +159,7 @@ async function main() {
|
|
|
159
159
|
const args = parseCliArgs();
|
|
160
160
|
if (args.serve) {
|
|
161
161
|
await loadAuthFromConfig(env);
|
|
162
|
-
const { serve } = await import("./serve-
|
|
162
|
+
const { serve } = await import("./serve-32BIUHWA.js");
|
|
163
163
|
return serve({ isDev: env.SHIPYARD_DEV });
|
|
164
164
|
}
|
|
165
165
|
logger.error("Use `shipyard start` to run the daemon. Use --help for usage.");
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
ensureAuthenticated,
|
|
4
4
|
getSignalingUrl,
|
|
5
5
|
loginCommand
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ASN6META.js";
|
|
7
7
|
import "./chunk-2YH743ND.js";
|
|
8
8
|
import "./chunk-2UE3TNY7.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-OPMLQQWV.js";
|
|
10
10
|
import "./chunk-EHQITHQX.js";
|
|
11
11
|
import "./chunk-CA5PKTNJ.js";
|
|
12
12
|
import "./chunk-SXXAWBW7.js";
|
|
@@ -17,4 +17,4 @@ export {
|
|
|
17
17
|
getSignalingUrl,
|
|
18
18
|
loginCommand
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=login-
|
|
20
|
+
//# sourceMappingURL=login-HS7TO3GQ.js.map
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
buildTaskStateStore,
|
|
4
4
|
runPlanBackfill
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WUGADZYC.js";
|
|
6
6
|
import "./chunk-RR6V6SNM.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-UUE4MBYJ.js";
|
|
8
|
+
import "./chunk-OPMLQQWV.js";
|
|
9
9
|
import "./chunk-EHQITHQX.js";
|
|
10
10
|
import "./chunk-X3MULCV5.js";
|
|
11
11
|
import {
|
|
@@ -65,4 +65,4 @@ async function planBackfillCommand(argv = process.argv.slice(3)) {
|
|
|
65
65
|
export {
|
|
66
66
|
planBackfillCommand
|
|
67
67
|
};
|
|
68
|
-
//# sourceMappingURL=plan-backfill-
|
|
68
|
+
//# sourceMappingURL=plan-backfill-OM7ZKGCR.js.map
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
startPlanBackfillForDaemon,
|
|
40
40
|
sync,
|
|
41
41
|
validatePeerId
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-WUGADZYC.js";
|
|
43
43
|
import {
|
|
44
44
|
loadAuthToken
|
|
45
45
|
} from "./chunk-2UE3TNY7.js";
|
|
@@ -178,7 +178,7 @@ import {
|
|
|
178
178
|
unresolveReviewThread,
|
|
179
179
|
withLabelAsync,
|
|
180
180
|
writeCursorApiKeyToVault
|
|
181
|
-
} from "./chunk-
|
|
181
|
+
} from "./chunk-LLRLVCL4.js";
|
|
182
182
|
import {
|
|
183
183
|
buildNodeSpawnEnv,
|
|
184
184
|
nodeSpawnEnvOverlay,
|
|
@@ -242,7 +242,7 @@ import {
|
|
|
242
242
|
createAssetResolver,
|
|
243
243
|
toSdkContent,
|
|
244
244
|
toSdkPermissionMode
|
|
245
|
-
} from "./chunk-
|
|
245
|
+
} from "./chunk-KAA6A3YV.js";
|
|
246
246
|
import {
|
|
247
247
|
AGENT_IDS,
|
|
248
248
|
AGENT_SYSTEM_CLAUDE_CODE,
|
|
@@ -447,7 +447,7 @@ import {
|
|
|
447
447
|
unsafeAssertSourceId,
|
|
448
448
|
vizFileExtension,
|
|
449
449
|
withPreferredRuntimeAuthMethod
|
|
450
|
-
} from "./chunk-
|
|
450
|
+
} from "./chunk-UUE4MBYJ.js";
|
|
451
451
|
import {
|
|
452
452
|
AuthGitHubCallbackRequestSchema,
|
|
453
453
|
AuthGitHubCallbackResponseSchema,
|
|
@@ -495,7 +495,7 @@ import {
|
|
|
495
495
|
VaultKeyPutResponseSchema,
|
|
496
496
|
classifyClaudeCodeCompatibility,
|
|
497
497
|
classifyCodexCompatibility
|
|
498
|
-
} from "./chunk-
|
|
498
|
+
} from "./chunk-OPMLQQWV.js";
|
|
499
499
|
import {
|
|
500
500
|
external_exports as external_exports2
|
|
501
501
|
} from "./chunk-EHQITHQX.js";
|
|
@@ -6066,6 +6066,31 @@ function getOrCreateAgentId(shipyardHome) {
|
|
|
6066
6066
|
}
|
|
6067
6067
|
return id;
|
|
6068
6068
|
}
|
|
6069
|
+
function getOrCreateMachineId(shipyardHome, computedId) {
|
|
6070
|
+
const filePath = join12(shipyardHome, "machine-id");
|
|
6071
|
+
let existingFileIsBlank = false;
|
|
6072
|
+
try {
|
|
6073
|
+
const existing = readFileSync2(filePath, "utf-8").trim();
|
|
6074
|
+
if (existing) return existing;
|
|
6075
|
+
existingFileIsBlank = true;
|
|
6076
|
+
} catch {
|
|
6077
|
+
}
|
|
6078
|
+
try {
|
|
6079
|
+
mkdirSync(dirname5(filePath), { recursive: true });
|
|
6080
|
+
writeFileSync(filePath, computedId, {
|
|
6081
|
+
flag: existingFileIsBlank ? "w" : "wx",
|
|
6082
|
+
mode: 384
|
|
6083
|
+
});
|
|
6084
|
+
return computedId;
|
|
6085
|
+
} catch {
|
|
6086
|
+
}
|
|
6087
|
+
try {
|
|
6088
|
+
const existing = readFileSync2(filePath, "utf-8").trim();
|
|
6089
|
+
if (existing) return existing;
|
|
6090
|
+
} catch {
|
|
6091
|
+
}
|
|
6092
|
+
return computedId;
|
|
6093
|
+
}
|
|
6069
6094
|
function resolveInstallArtifact(env) {
|
|
6070
6095
|
return env.SHIPYARD_ARTIFACT === "electron" ? "electron" : "npm";
|
|
6071
6096
|
}
|
|
@@ -6087,7 +6112,8 @@ async function createSignalingHandle(env, log, shipyardHome, options = {}) {
|
|
|
6087
6112
|
}
|
|
6088
6113
|
const devSuffix = env.SHIPYARD_DEV ? "-dev" : "";
|
|
6089
6114
|
const worktreeSuffix = env.SHIPYARD_WORKTREE_NAME ? `-wt-${env.SHIPYARD_WORKTREE_NAME}` : "";
|
|
6090
|
-
const
|
|
6115
|
+
const computedMachineId = `${hostname()}${devSuffix}${worktreeSuffix}`;
|
|
6116
|
+
const machineId = env.SHIPYARD_MACHINE_ID ?? getOrCreateMachineId(shipyardHome, computedMachineId);
|
|
6091
6117
|
const machineName = env.SHIPYARD_MACHINE_NAME ?? `${hostname()}${devSuffix}${worktreeSuffix}`;
|
|
6092
6118
|
if (!env.SHIPYARD_USER_ID) {
|
|
6093
6119
|
log.error(
|
|
@@ -6138,6 +6164,12 @@ async function createSignalingHandle(env, log, shipyardHome, options = {}) {
|
|
|
6138
6164
|
if (state === "disconnected") {
|
|
6139
6165
|
log.warn({ machineId }, "Disconnected from signaling server");
|
|
6140
6166
|
}
|
|
6167
|
+
if (state === "error") {
|
|
6168
|
+
log.warn({ machineId }, "Signaling WebSocket entered error state");
|
|
6169
|
+
}
|
|
6170
|
+
});
|
|
6171
|
+
connection.onCloseInfo(({ code, reason, wasClean }) => {
|
|
6172
|
+
log.warn({ machineId, code, reason, wasClean }, "Signaling WebSocket closed");
|
|
6141
6173
|
});
|
|
6142
6174
|
return { signaling, connection, tokenStore, machineId };
|
|
6143
6175
|
}
|
|
@@ -104325,4 +104357,4 @@ export {
|
|
|
104325
104357
|
decideWorkspaceScope,
|
|
104326
104358
|
serve
|
|
104327
104359
|
};
|
|
104328
|
-
//# sourceMappingURL=serve-
|
|
104360
|
+
//# sourceMappingURL=serve-32BIUHWA.js.map
|