@schoolai/shipyard 3.5.0 → 3.5.1-nightly.20260505.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/{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-IVUGCBEE.js → serve-FKQGUNWD.js} +20099 -19298
- package/dist/{serve-IVUGCBEE.js.map → serve-FKQGUNWD.js.map} +1 -1
- package/dist/{shell-JINTQUIR.js → shell-V36EX2IJ.js} +4 -2
- package/dist/{start-I7ZONWK7.js → start-KR5OYB64.js} +4 -4
- package/dist/{services/watcher-worker/worker.js → worker.js} +3 -3
- package/dist/worker.js.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-KYLY4DJF.js.map +0 -1
- package/dist/services/watcher-worker/worker.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-I7ZONWK7.js.map → start-KR5OYB64.js.map} +0 -0
- /package/dist/{services/watcher-worker/worker.d.ts → worker.d.ts} +0 -0
|
@@ -4,6 +4,23 @@
|
|
|
4
4
|
import { execFile } from "child_process";
|
|
5
5
|
var TIMEOUT_MS = 5e3;
|
|
6
6
|
var AUTH_STATUS_TIMEOUT_MS = 15e3;
|
|
7
|
+
var STANDARD_PATHS_BY_PLATFORM = {
|
|
8
|
+
darwin: ["/usr/bin", "/usr/local/bin", "/opt/homebrew/bin"],
|
|
9
|
+
linux: ["/usr/bin", "/usr/local/bin"]
|
|
10
|
+
};
|
|
11
|
+
function augmentPath(currentPath, platform) {
|
|
12
|
+
const standardPaths = STANDARD_PATHS_BY_PLATFORM[platform];
|
|
13
|
+
if (!standardPaths) return currentPath;
|
|
14
|
+
const existing = currentPath.length > 0 ? currentPath.split(":") : [];
|
|
15
|
+
const existingSet = new Set(existing);
|
|
16
|
+
const toPrepend = standardPaths.filter((p) => !existingSet.has(p));
|
|
17
|
+
if (toPrepend.length === 0) return currentPath;
|
|
18
|
+
return existing.length > 0 ? `${toPrepend.join(":")}:${currentPath}` : toPrepend.join(":");
|
|
19
|
+
}
|
|
20
|
+
var augmentedPath = augmentPath(process.env.PATH ?? "", process.platform);
|
|
21
|
+
if (augmentedPath.length > 0) {
|
|
22
|
+
process.env.PATH = augmentedPath;
|
|
23
|
+
}
|
|
7
24
|
function run(command, args, cwd, timeoutMs = TIMEOUT_MS) {
|
|
8
25
|
return new Promise((resolve, reject) => {
|
|
9
26
|
execFile(command, args, { timeout: timeoutMs, cwd }, (error, stdout) => {
|
|
@@ -50,6 +67,7 @@ function truncateDiff(result) {
|
|
|
50
67
|
export {
|
|
51
68
|
TIMEOUT_MS,
|
|
52
69
|
AUTH_STATUS_TIMEOUT_MS,
|
|
70
|
+
augmentPath,
|
|
53
71
|
run,
|
|
54
72
|
runWithTimeout,
|
|
55
73
|
DIFF_TIMEOUT_MS,
|
|
@@ -58,4 +76,4 @@ export {
|
|
|
58
76
|
BUFFER_OVERFLOW_MSG,
|
|
59
77
|
truncateDiff
|
|
60
78
|
};
|
|
61
|
-
//# sourceMappingURL=chunk-
|
|
79
|
+
//# sourceMappingURL=chunk-66OBOZ3X.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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\nconst STANDARD_PATHS_BY_PLATFORM: Partial<Record<NodeJS.Platform, readonly string[]>> = {\n darwin: ['/usr/bin', '/usr/local/bin', '/opt/homebrew/bin'],\n linux: ['/usr/bin', '/usr/local/bin'],\n};\n\n/**\n * Daemons launched from Finder/Spotlight on macOS get a stripped PATH that may\n * omit /usr/bin where git lives. Prepend standard locations idempotently so\n * `execFile('git', ...)` resolves the binary. User-customized PATH entries\n * stay preferred — we only prepend dirs that aren't already present.\n */\nexport function augmentPath(currentPath: string, platform: NodeJS.Platform): string {\n const standardPaths = STANDARD_PATHS_BY_PLATFORM[platform];\n if (!standardPaths) return currentPath;\n\n const existing = currentPath.length > 0 ? currentPath.split(':') : [];\n const existingSet = new Set(existing);\n const toPrepend = standardPaths.filter((p) => !existingSet.has(p));\n if (toPrepend.length === 0) return currentPath;\n return existing.length > 0 ? `${toPrepend.join(':')}:${currentPath}` : toPrepend.join(':');\n}\n\nconst augmentedPath = augmentPath(process.env.PATH ?? '', process.platform);\nif (augmentedPath.length > 0) {\n process.env.PATH = augmentedPath;\n}\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;AAEtC,IAAM,6BAAkF;AAAA,EACtF,QAAQ,CAAC,YAAY,kBAAkB,mBAAmB;AAAA,EAC1D,OAAO,CAAC,YAAY,gBAAgB;AACtC;AAQO,SAAS,YAAY,aAAqB,UAAmC;AAClF,QAAM,gBAAgB,2BAA2B,QAAQ;AACzD,MAAI,CAAC,cAAe,QAAO;AAE3B,QAAM,WAAW,YAAY,SAAS,IAAI,YAAY,MAAM,GAAG,IAAI,CAAC;AACpE,QAAM,cAAc,IAAI,IAAI,QAAQ;AACpC,QAAM,YAAY,cAAc,OAAO,CAAC,MAAM,CAAC,YAAY,IAAI,CAAC,CAAC;AACjE,MAAI,UAAU,WAAW,EAAG,QAAO;AACnC,SAAO,SAAS,SAAS,IAAI,GAAG,UAAU,KAAK,GAAG,CAAC,IAAI,WAAW,KAAK,UAAU,KAAK,GAAG;AAC3F;AAEA,IAAM,gBAAgB,YAAY,QAAQ,IAAI,QAAQ,IAAI,QAAQ,QAAQ;AAC1E,IAAI,cAAc,SAAS,GAAG;AAC5B,UAAQ,IAAI,OAAO;AACrB;AAEO,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":[]}
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
DevicePollResponseSchema,
|
|
6
6
|
DeviceStartResponseSchema,
|
|
7
7
|
ROUTES
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TCP3B2LJ.js";
|
|
9
9
|
import {
|
|
10
10
|
print,
|
|
11
11
|
printError
|
|
@@ -219,4 +219,4 @@ export {
|
|
|
219
219
|
ensureAuthenticated,
|
|
220
220
|
loginCommand
|
|
221
221
|
};
|
|
222
|
-
//# sourceMappingURL=chunk-
|
|
222
|
+
//# sourceMappingURL=chunk-EO5Z7KRI.js.map
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
TIMEOUT_MS,
|
|
13
13
|
run,
|
|
14
14
|
runWithTimeout
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-66OBOZ3X.js";
|
|
16
16
|
|
|
17
17
|
// src/shared/capabilities/git-repo.ts
|
|
18
18
|
import { readdir } from "fs/promises";
|
|
@@ -392,4 +392,4 @@ export {
|
|
|
392
392
|
detectEnvironments,
|
|
393
393
|
_testing
|
|
394
394
|
};
|
|
395
|
-
//# sourceMappingURL=chunk-
|
|
395
|
+
//# sourceMappingURL=chunk-RXI4637N.js.map
|
|
@@ -1173,7 +1173,7 @@ var PersonalRoomConnection = class {
|
|
|
1173
1173
|
};
|
|
1174
1174
|
|
|
1175
1175
|
// ../../packages/session/src/protocol-version.ts
|
|
1176
|
-
var PROTOCOL_VERSION =
|
|
1176
|
+
var PROTOCOL_VERSION = 67;
|
|
1177
1177
|
|
|
1178
1178
|
// ../../packages/session/src/publish-constants.ts
|
|
1179
1179
|
var PUBLISHED_PREVIEW_KINDS = [
|
|
@@ -1273,4 +1273,4 @@ export {
|
|
|
1273
1273
|
PublishCreateResponseSchema,
|
|
1274
1274
|
ROUTES
|
|
1275
1275
|
};
|
|
1276
|
-
//# sourceMappingURL=chunk-
|
|
1276
|
+
//# sourceMappingURL=chunk-TCP3B2LJ.js.map
|