@schoolai/shipyard 3.5.1 → 3.5.2
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/{chunk-KYLY4DJF.js → chunk-66OBOZ3X.js} +19 -1
- package/dist/chunk-66OBOZ3X.js.map +1 -0
- package/dist/{chunk-3CAEALVL.js → chunk-EO5Z7KRI.js} +2 -2
- package/dist/{chunk-BNEE7ZPW.js → chunk-RXI4637N.js} +2 -2
- package/dist/{chunk-6TYNQ5KQ.js → chunk-TCP3B2LJ.js} +2 -2
- package/dist/{chunk-6TYNQ5KQ.js.map → chunk-TCP3B2LJ.js.map} +1 -1
- package/dist/{git-repo-364VANDM.js → git-repo-VRT57DGC.js} +3 -3
- package/dist/index.js +3 -3
- package/dist/{login-D6USDG5M.js → login-DS5NF6NY.js} +3 -3
- package/dist/{serve-NZHMK5B6.js → serve-QEYLJVS7.js} +18397 -17630
- package/dist/{serve-NZHMK5B6.js.map → serve-QEYLJVS7.js.map} +1 -1
- package/dist/{shell-JINTQUIR.js → shell-V36EX2IJ.js} +4 -2
- package/dist/{start-GKOOIAPI.js → start-3EOO3GKE.js} +4 -4
- package/package.json +1 -1
- package/dist/chunk-KYLY4DJF.js.map +0 -1
- /package/dist/{chunk-3CAEALVL.js.map → chunk-EO5Z7KRI.js.map} +0 -0
- /package/dist/{chunk-BNEE7ZPW.js.map → chunk-RXI4637N.js.map} +0 -0
- /package/dist/{git-repo-364VANDM.js.map → git-repo-VRT57DGC.js.map} +0 -0
- /package/dist/{login-D6USDG5M.js.map → login-DS5NF6NY.js.map} +0 -0
- /package/dist/{shell-JINTQUIR.js.map → shell-V36EX2IJ.js.map} +0 -0
- /package/dist/{start-GKOOIAPI.js.map → start-3EOO3GKE.js.map} +0 -0
|
@@ -5,11 +5,12 @@ import {
|
|
|
5
5
|
DIFF_TIMEOUT_MS,
|
|
6
6
|
MAX_DIFF_SIZE,
|
|
7
7
|
TIMEOUT_MS,
|
|
8
|
+
augmentPath,
|
|
8
9
|
isMaxBufferError,
|
|
9
10
|
run,
|
|
10
11
|
runWithTimeout,
|
|
11
12
|
truncateDiff
|
|
12
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-66OBOZ3X.js";
|
|
13
14
|
import "./chunk-2H7UOFLK.js";
|
|
14
15
|
export {
|
|
15
16
|
AUTH_STATUS_TIMEOUT_MS,
|
|
@@ -17,9 +18,10 @@ export {
|
|
|
17
18
|
DIFF_TIMEOUT_MS,
|
|
18
19
|
MAX_DIFF_SIZE,
|
|
19
20
|
TIMEOUT_MS,
|
|
21
|
+
augmentPath,
|
|
20
22
|
isMaxBufferError,
|
|
21
23
|
run,
|
|
22
24
|
runWithTimeout,
|
|
23
25
|
truncateDiff
|
|
24
26
|
};
|
|
25
|
-
//# sourceMappingURL=shell-
|
|
27
|
+
//# sourceMappingURL=shell-V36EX2IJ.js.map
|
|
@@ -10,8 +10,8 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
ensureAuthenticated,
|
|
12
12
|
getSignalingUrl
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-EO5Z7KRI.js";
|
|
14
|
+
import "./chunk-TCP3B2LJ.js";
|
|
15
15
|
import "./chunk-EHQITHQX.js";
|
|
16
16
|
import {
|
|
17
17
|
print
|
|
@@ -243,7 +243,7 @@ async function runDaemonChild() {
|
|
|
243
243
|
env.SHIPYARD_USER_ID = authResult.userId;
|
|
244
244
|
env.SHIPYARD_USER_DISPLAY_NAME = authResult.displayName;
|
|
245
245
|
env.SHIPYARD_SIGNALING_URL = authResult.signalingUrl;
|
|
246
|
-
const { serve } = await import("./serve-
|
|
246
|
+
const { serve } = await import("./serve-QEYLJVS7.js");
|
|
247
247
|
return serve({ isDev: env.SHIPYARD_DEV, autoOpenBrowser: !authResult.deviceFlowRan });
|
|
248
248
|
}
|
|
249
249
|
async function runSupervisor() {
|
|
@@ -282,4 +282,4 @@ async function runSupervisor() {
|
|
|
282
282
|
export {
|
|
283
283
|
startCommand
|
|
284
284
|
};
|
|
285
|
-
//# sourceMappingURL=start-
|
|
285
|
+
//# sourceMappingURL=start-3EOO3GKE.js.map
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/shared/capabilities/shell.ts"],"sourcesContent":["import { execFile } from 'node:child_process';\n\nexport const TIMEOUT_MS = 5_000;\nexport const AUTH_STATUS_TIMEOUT_MS = 15_000;\n\nexport function run(\n command: string,\n args: string[],\n cwd?: string,\n timeoutMs: number = TIMEOUT_MS\n): Promise<string> {\n return new Promise((resolve, reject) => {\n execFile(command, args, { timeout: timeoutMs, cwd }, (error, stdout) => {\n if (error) {\n reject(error);\n return;\n }\n resolve(stdout.trim());\n });\n });\n}\n\nexport function runWithTimeout(\n command: string,\n args: string[],\n cwd: string,\n timeoutMs: number\n): Promise<string> {\n return new Promise((resolve, reject) => {\n execFile(\n command,\n args,\n { timeout: timeoutMs, cwd, maxBuffer: 10 * 1024 * 1024 },\n (error, stdout) => {\n if (error) {\n reject(error);\n return;\n }\n resolve(stdout.trim());\n }\n );\n });\n}\n\nexport const DIFF_TIMEOUT_MS = 15_000;\nexport const MAX_DIFF_SIZE = 500_000;\n\nexport function isMaxBufferError(err: unknown): boolean {\n return err instanceof Error && err.message.includes('maxBuffer');\n}\n\nexport const BUFFER_OVERFLOW_MSG = '... diff too large (exceeded buffer limit) ...\\n';\n\nexport function truncateDiff(result: string): string {\n if (result.length <= MAX_DIFF_SIZE) return result;\n const boundary = result.lastIndexOf('\\ndiff --git ', MAX_DIFF_SIZE);\n const cutoff = boundary > 0 ? boundary : MAX_DIFF_SIZE;\n return `${result.slice(0, cutoff)}\\n\\n... diff truncated (exceeds 500KB) ...\\n`;\n}\n"],"mappings":";;;AAAA,SAAS,gBAAgB;AAElB,IAAM,aAAa;AACnB,IAAM,yBAAyB;AAE/B,SAAS,IACd,SACA,MACA,KACA,YAAoB,YACH;AACjB,SAAO,IAAI,QAAQ,CAAC,SAAS,WAAW;AACtC,aAAS,SAAS,MAAM,EAAE,SAAS,WAAW,IAAI,GAAG,CAAC,OAAO,WAAW;AACtE,UAAI,OAAO;AACT,eAAO,KAAK;AACZ;AAAA,MACF;AACA,cAAQ,OAAO,KAAK,CAAC;AAAA,IACvB,CAAC;AAAA,EACH,CAAC;AACH;AAEO,SAAS,eACd,SACA,MACA,KACA,WACiB;AACjB,SAAO,IAAI,QAAQ,CAAC,SAAS,WAAW;AACtC;AAAA,MACE;AAAA,MACA;AAAA,MACA,EAAE,SAAS,WAAW,KAAK,WAAW,KAAK,OAAO,KAAK;AAAA,MACvD,CAAC,OAAO,WAAW;AACjB,YAAI,OAAO;AACT,iBAAO,KAAK;AACZ;AAAA,QACF;AACA,gBAAQ,OAAO,KAAK,CAAC;AAAA,MACvB;AAAA,IACF;AAAA,EACF,CAAC;AACH;AAEO,IAAM,kBAAkB;AACxB,IAAM,gBAAgB;AAEtB,SAAS,iBAAiB,KAAuB;AACtD,SAAO,eAAe,SAAS,IAAI,QAAQ,SAAS,WAAW;AACjE;AAEO,IAAM,sBAAsB;AAE5B,SAAS,aAAa,QAAwB;AACnD,MAAI,OAAO,UAAU,cAAe,QAAO;AAC3C,QAAM,WAAW,OAAO,YAAY,iBAAiB,aAAa;AAClE,QAAM,SAAS,WAAW,IAAI,WAAW;AACzC,SAAO,GAAG,OAAO,MAAM,GAAG,MAAM,CAAC;AAAA;AAAA;AAAA;AACnC;","names":[]}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|