@kitman-sh/cli 0.13.10 → 0.13.12
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-813vn8sn.js → chunk-02ye1s9f.js} +18 -18
- package/dist/{chunk-4crf5vhd.js → chunk-1bkrxc3v.js} +2 -2
- package/dist/{chunk-hkg8s472.js → chunk-2xh5p0na.js} +11 -10
- package/dist/{chunk-r5v7df8h.js → chunk-36s51mp6.js} +78 -69
- package/dist/{chunk-vxfajzpz.js → chunk-3z9yz32f.js} +60 -14
- package/dist/{chunk-6x4wkf0x.js → chunk-4m923rz8.js} +3 -3
- package/dist/{chunk-kk32jckf.js → chunk-4t6nrgxw.js} +4 -4
- package/dist/{chunk-jkddgvev.js → chunk-8cxh8j07.js} +145 -55
- package/dist/{chunk-zgraq2y3.js → chunk-8pbnfqaz.js} +59 -101
- package/dist/{chunk-s00cj5sw.js → chunk-8t1vygmr.js} +4 -4
- package/dist/{chunk-kj1zjrs9.js → chunk-95w14qxp.js} +6 -6
- package/dist/{chunk-2dwqak36.js → chunk-9d03t0pn.js} +10 -10
- package/dist/{chunk-ggmwpwhf.js → chunk-eahqsd8h.js} +2 -2
- package/dist/{chunk-24h0y27w.js → chunk-fwja3qb1.js} +1 -1
- package/dist/{chunk-pxvd8w2v.js → chunk-mcw7wvtx.js} +1 -6
- package/dist/{chunk-bkecckjn.js → chunk-n1aqwdc2.js} +10 -10
- package/dist/{chunk-j34gensq.js → chunk-n734b61f.js} +1 -1
- package/dist/{chunk-mtdz4k32.js → chunk-nge8fq10.js} +9 -9
- package/dist/{chunk-0nh3w4vn.js → chunk-npjpmb0w.js} +9 -9
- package/dist/{chunk-t82w7459.js → chunk-szt25e0z.js} +61 -195
- package/dist/{chunk-rz01craf.js → chunk-ths93svq.js} +463 -195
- package/dist/{chunk-6n3m0t02.js → chunk-x5nv63jj.js} +3 -3
- package/dist/{chunk-mmd7mjv0.js → chunk-yab3j170.js} +3 -3
- package/dist/{chunk-d4pxty7x.js → chunk-z74fnmqb.js} +20 -20
- package/dist/{chunk-c60xk73g.js → chunk-zb5pnthp.js} +66 -33
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
decodeText,
|
|
4
|
-
mkString,
|
|
5
|
-
FileSystem,
|
|
6
|
-
Path,
|
|
7
|
-
withDefault,
|
|
8
|
-
String2
|
|
9
|
-
} from "./chunk-t82w7459.js";
|
|
10
2
|
import {
|
|
11
3
|
isString,
|
|
12
4
|
hasProperty,
|
|
@@ -40,8 +32,7 @@ import {
|
|
|
40
32
|
toCodecJson,
|
|
41
33
|
Json,
|
|
42
34
|
encodePrettyJsonString
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import"./chunk-pxvd8w2v.js";
|
|
35
|
+
} from "./chunk-8pbnfqaz.js";
|
|
45
36
|
import {
|
|
46
37
|
SecureRandom,
|
|
47
38
|
layerWebCrypto,
|
|
@@ -53,23 +44,32 @@ import {
|
|
|
53
44
|
layer4,
|
|
54
45
|
kitmanMcpServer,
|
|
55
46
|
RunnerRpcProtocolVersion
|
|
56
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-ths93svq.js";
|
|
48
|
+
import {
|
|
49
|
+
decodeText,
|
|
50
|
+
mkString,
|
|
51
|
+
FileSystem,
|
|
52
|
+
Path,
|
|
53
|
+
withDefault,
|
|
54
|
+
String2
|
|
55
|
+
} from "./chunk-szt25e0z.js";
|
|
57
56
|
import {
|
|
58
57
|
Packument,
|
|
59
58
|
tarballMatches
|
|
60
|
-
} from "./chunk-
|
|
61
|
-
import"./chunk-
|
|
59
|
+
} from "./chunk-4m923rz8.js";
|
|
60
|
+
import"./chunk-npjpmb0w.js";
|
|
62
61
|
import {
|
|
63
62
|
AgentDeclaration,
|
|
64
63
|
KitDeclarations,
|
|
65
64
|
describeFlag,
|
|
66
65
|
Described
|
|
67
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-2xh5p0na.js";
|
|
68
67
|
import {
|
|
69
68
|
ChildProcessSpawner,
|
|
70
|
-
|
|
71
|
-
} from "./chunk-
|
|
72
|
-
import"./chunk-
|
|
69
|
+
make3
|
|
70
|
+
} from "./chunk-3z9yz32f.js";
|
|
71
|
+
import"./chunk-z74fnmqb.js";
|
|
72
|
+
import"./chunk-mcw7wvtx.js";
|
|
73
73
|
|
|
74
74
|
// packages/sdk/src/build/index.ts
|
|
75
75
|
class DependencyInstallFailed extends TaggedError2()("DependencyInstallFailed", {
|
|
@@ -108,7 +108,7 @@ var ConfigAgents = Record(String4, Struct({
|
|
|
108
108
|
}));
|
|
109
109
|
var run = (command, args, cwd) => gen(function* () {
|
|
110
110
|
const spawner = yield* ChildProcessSpawner;
|
|
111
|
-
const handle = yield* spawner.spawn(
|
|
111
|
+
const handle = yield* spawner.spawn(make3(command, args, { cwd, stdin: "ignore" }));
|
|
112
112
|
const [stdout, stderr, exitCode] = yield* all3([
|
|
113
113
|
mkString(decodeText(handle.stdout)),
|
|
114
114
|
mkString(decodeText(handle.stderr)),
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
writeSrtSettings2,
|
|
15
15
|
srtStepArgv2,
|
|
16
16
|
srtArgv2
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import"./chunk-
|
|
17
|
+
} from "./chunk-szt25e0z.js";
|
|
18
|
+
import"./chunk-8pbnfqaz.js";
|
|
19
19
|
export {
|
|
20
20
|
compiled2 as compiled,
|
|
21
21
|
harnessesUnsupportedInSrt2 as harnessesUnsupportedInSrt,
|
|
@@ -75,16 +75,8 @@ import {
|
|
|
75
75
|
toEquivalence,
|
|
76
76
|
toCodecJson,
|
|
77
77
|
Json
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-8pbnfqaz.js";
|
|
79
79
|
import {
|
|
80
|
-
runForEach,
|
|
81
|
-
FileSystem
|
|
82
|
-
} from "./chunk-t82w7459.js";
|
|
83
|
-
import {
|
|
84
|
-
guard
|
|
85
|
-
} from "./chunk-pxvd8w2v.js";
|
|
86
|
-
import {
|
|
87
|
-
currentTimeMillis,
|
|
88
80
|
WebCrypto,
|
|
89
81
|
SafeJson,
|
|
90
82
|
AgentSandboxNetwork,
|
|
@@ -109,7 +101,15 @@ import {
|
|
|
109
101
|
KitDigest,
|
|
110
102
|
KitSetup,
|
|
111
103
|
RunnerRpcError
|
|
112
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-ths93svq.js";
|
|
105
|
+
import {
|
|
106
|
+
currentTimeMillis,
|
|
107
|
+
runForEach,
|
|
108
|
+
FileSystem
|
|
109
|
+
} from "./chunk-szt25e0z.js";
|
|
110
|
+
import {
|
|
111
|
+
guard
|
|
112
|
+
} from "./chunk-mcw7wvtx.js";
|
|
113
113
|
|
|
114
114
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/crypto/internal/webCrypto.js
|
|
115
115
|
var subtleUnavailable = () => new Error("crypto.subtle is unavailable; browsers expose it only in secure contexts");
|
|
@@ -497,6 +497,7 @@ var EvidenceCheck = Struct({
|
|
|
497
497
|
durationMs: Finite,
|
|
498
498
|
evidenceId: String4,
|
|
499
499
|
outputTail: optionalKey(String4),
|
|
500
|
+
failedTests: optionalKey(ArraySchema(String4)),
|
|
500
501
|
suggested: optionalKey(Boolean2),
|
|
501
502
|
skippedSinceBaseline: optionalKey(ArraySchema(String4)),
|
|
502
503
|
newNotRun: optionalKey(ArraySchema(String4))
|
|
@@ -168,55 +168,8 @@ import {
|
|
|
168
168
|
decodeJsonStringSync,
|
|
169
169
|
encodeUnknownJsonStringSync,
|
|
170
170
|
storable
|
|
171
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-8pbnfqaz.js";
|
|
172
172
|
import {
|
|
173
|
-
join,
|
|
174
|
-
interrupt,
|
|
175
|
-
unbounded,
|
|
176
|
-
publishUnsafe,
|
|
177
|
-
unbounded2,
|
|
178
|
-
offer,
|
|
179
|
-
makeUnsafe3,
|
|
180
|
-
make10,
|
|
181
|
-
fromQueue,
|
|
182
|
-
fromPubSub,
|
|
183
|
-
map2,
|
|
184
|
-
filter,
|
|
185
|
-
decodeText,
|
|
186
|
-
encodeText,
|
|
187
|
-
splitLines,
|
|
188
|
-
run,
|
|
189
|
-
runHead,
|
|
190
|
-
runForEach,
|
|
191
|
-
FileSystem,
|
|
192
|
-
Path,
|
|
193
|
-
embeddedFile,
|
|
194
|
-
extractEmbeddedFile,
|
|
195
|
-
optionalEnv,
|
|
196
|
-
operatorConfigHome,
|
|
197
|
-
tempDirectoryScoped,
|
|
198
|
-
harnessesUnsupportedInSrt2,
|
|
199
|
-
compiled2,
|
|
200
|
-
pinnedSrtCommand2,
|
|
201
|
-
pinnedSrtStepCommand2,
|
|
202
|
-
runSrtCli2,
|
|
203
|
-
kitmanCacheDirectory2,
|
|
204
|
-
srtSettings2,
|
|
205
|
-
srtCacheEnvironment2,
|
|
206
|
-
srtInheritedEnv2,
|
|
207
|
-
inheritedEnvironment2,
|
|
208
|
-
withOnlyEnvironment2,
|
|
209
|
-
writeSrtSettings2,
|
|
210
|
-
srtStepArgv2,
|
|
211
|
-
srtArgv2
|
|
212
|
-
} from "./chunk-t82w7459.js";
|
|
213
|
-
import {
|
|
214
|
-
Id,
|
|
215
|
-
secretReference,
|
|
216
|
-
secretPlaceholder
|
|
217
|
-
} from "./chunk-pxvd8w2v.js";
|
|
218
|
-
import {
|
|
219
|
-
currentTimeMillis,
|
|
220
173
|
SecureRandom,
|
|
221
174
|
layerWebCrypto,
|
|
222
175
|
layer,
|
|
@@ -238,6 +191,7 @@ import {
|
|
|
238
191
|
canonicalSha256,
|
|
239
192
|
tokensSpent,
|
|
240
193
|
isTestReportName,
|
|
194
|
+
failedTestOfLine,
|
|
241
195
|
checkTests,
|
|
242
196
|
MeasureSample,
|
|
243
197
|
catchUpPathLimit,
|
|
@@ -288,7 +242,51 @@ import {
|
|
|
288
242
|
installCommand,
|
|
289
243
|
checkServicesFile,
|
|
290
244
|
checkServices
|
|
291
|
-
} from "./chunk-
|
|
245
|
+
} from "./chunk-ths93svq.js";
|
|
246
|
+
import {
|
|
247
|
+
currentTimeMillis,
|
|
248
|
+
join,
|
|
249
|
+
interrupt,
|
|
250
|
+
unbounded,
|
|
251
|
+
publishUnsafe,
|
|
252
|
+
unbounded2,
|
|
253
|
+
offer,
|
|
254
|
+
makeUnsafe3,
|
|
255
|
+
make10,
|
|
256
|
+
fromQueue,
|
|
257
|
+
fromPubSub,
|
|
258
|
+
map2,
|
|
259
|
+
filter,
|
|
260
|
+
take2,
|
|
261
|
+
decodeText,
|
|
262
|
+
encodeText,
|
|
263
|
+
splitLines,
|
|
264
|
+
run,
|
|
265
|
+
runCollect,
|
|
266
|
+
runHead,
|
|
267
|
+
runForEach,
|
|
268
|
+
FileSystem,
|
|
269
|
+
Path,
|
|
270
|
+
embeddedFile,
|
|
271
|
+
extractEmbeddedFile,
|
|
272
|
+
optionalEnv,
|
|
273
|
+
operatorConfigHome,
|
|
274
|
+
tempDirectoryScoped,
|
|
275
|
+
harnessesUnsupportedInSrt2,
|
|
276
|
+
compiled2,
|
|
277
|
+
pinnedSrtCommand2,
|
|
278
|
+
pinnedSrtStepCommand2,
|
|
279
|
+
runSrtCli2,
|
|
280
|
+
kitmanCacheDirectory2,
|
|
281
|
+
srtSettings2,
|
|
282
|
+
srtCacheEnvironment2,
|
|
283
|
+
srtInheritedEnv2,
|
|
284
|
+
inheritedEnvironment2,
|
|
285
|
+
withOnlyEnvironment2,
|
|
286
|
+
writeSrtSettings2,
|
|
287
|
+
srtStepArgv2,
|
|
288
|
+
srtArgv2
|
|
289
|
+
} from "./chunk-szt25e0z.js";
|
|
292
290
|
import {
|
|
293
291
|
writeAgentEnvironmentConfigFile2,
|
|
294
292
|
readManifestSkillPaths2,
|
|
@@ -304,8 +302,8 @@ import {
|
|
|
304
302
|
applyAgentEnvironmentMaterialization2,
|
|
305
303
|
isPathWithin2,
|
|
306
304
|
skillIdentity2
|
|
307
|
-
} from "./chunk-
|
|
308
|
-
import"./chunk-
|
|
305
|
+
} from "./chunk-9d03t0pn.js";
|
|
306
|
+
import"./chunk-4m923rz8.js";
|
|
309
307
|
import {
|
|
310
308
|
egressAllowed,
|
|
311
309
|
writeSecretRegistry,
|
|
@@ -315,7 +313,7 @@ import {
|
|
|
315
313
|
secretFilter2,
|
|
316
314
|
opaqueTunnelRefusal2,
|
|
317
315
|
isOpaqueConnectReason2
|
|
318
|
-
} from "./chunk-
|
|
316
|
+
} from "./chunk-eahqsd8h.js";
|
|
319
317
|
import {
|
|
320
318
|
sliceBytes2,
|
|
321
319
|
maxLineBytes2,
|
|
@@ -323,23 +321,28 @@ import {
|
|
|
323
321
|
decodedOption2,
|
|
324
322
|
decoded2,
|
|
325
323
|
readOpencode2
|
|
326
|
-
} from "./chunk-
|
|
324
|
+
} from "./chunk-nge8fq10.js";
|
|
327
325
|
import {
|
|
328
326
|
uploadRunFile,
|
|
329
327
|
programLease,
|
|
330
328
|
rpcRunFiles,
|
|
331
329
|
programHostsEnv,
|
|
332
330
|
undeclaredHostsEnv
|
|
333
|
-
} from "./chunk-
|
|
334
|
-
import"./chunk-
|
|
331
|
+
} from "./chunk-2xh5p0na.js";
|
|
332
|
+
import"./chunk-npjpmb0w.js";
|
|
335
333
|
import {
|
|
336
334
|
nextInt
|
|
337
|
-
} from "./chunk-
|
|
335
|
+
} from "./chunk-fwja3qb1.js";
|
|
338
336
|
import {
|
|
339
337
|
ChildProcessSpawner,
|
|
340
|
-
|
|
341
|
-
} from "./chunk-
|
|
342
|
-
import"./chunk-
|
|
338
|
+
make3
|
|
339
|
+
} from "./chunk-3z9yz32f.js";
|
|
340
|
+
import"./chunk-z74fnmqb.js";
|
|
341
|
+
import {
|
|
342
|
+
Id,
|
|
343
|
+
secretReference,
|
|
344
|
+
secretPlaceholder
|
|
345
|
+
} from "./chunk-mcw7wvtx.js";
|
|
343
346
|
|
|
344
347
|
// packages/core/src/sync-kit.ts
|
|
345
348
|
import { createHash } from "crypto";
|
|
@@ -7037,7 +7040,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
|
|
|
7037
7040
|
const input = yield* unbounded2();
|
|
7038
7041
|
const pending = new Map;
|
|
7039
7042
|
let lastId = 0;
|
|
7040
|
-
const handle = yield* spawner.spawn(
|
|
7043
|
+
const handle = yield* spawner.spawn(make3(binary, ["app-server"], {
|
|
7041
7044
|
cwd: env.home,
|
|
7042
7045
|
extendEnv: true,
|
|
7043
7046
|
env: { HOME: env.home, CODEX_HOME: env.codexHome },
|
|
@@ -7200,7 +7203,7 @@ var handshake = [
|
|
|
7200
7203
|
`).join("");
|
|
7201
7204
|
var kitmanMcpPreflight = (mcp) => gen(function* () {
|
|
7202
7205
|
const spawner = yield* ChildProcessSpawner;
|
|
7203
|
-
const server = yield* spawner.spawn(
|
|
7206
|
+
const server = yield* spawner.spawn(make3(mcp.command, [...mcp.args], {
|
|
7204
7207
|
extendEnv: true,
|
|
7205
7208
|
env: mcp.env,
|
|
7206
7209
|
stdin: { stream: make10(new TextEncoder().encode(handshake)), endOnDone: false },
|
|
@@ -7276,7 +7279,7 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
|
|
|
7276
7279
|
};
|
|
7277
7280
|
const exitCode = sandbox === undefined ? yield* gen(function* () {
|
|
7278
7281
|
const spawner = yield* ChildProcessSpawner;
|
|
7279
|
-
const handle = yield* spawner.spawn(
|
|
7282
|
+
const handle = yield* spawner.spawn(make3(input.bun ?? process.execPath, [file], {
|
|
7280
7283
|
stdin: make10(new TextEncoder().encode(stdin)),
|
|
7281
7284
|
stdout: "inherit",
|
|
7282
7285
|
stderr: "inherit",
|
|
@@ -7640,13 +7643,13 @@ var checkFileKeeper = (work, runFiles, storage) => {
|
|
|
7640
7643
|
return kept.flat();
|
|
7641
7644
|
}).pipe(catch_((error) => as(logWarning("check_run_files_not_kept", `${input.check}: ${error.message}`), [])));
|
|
7642
7645
|
};
|
|
7643
|
-
var
|
|
7646
|
+
var checkedTests = (filesDir, printed) => gen(function* () {
|
|
7644
7647
|
const fs = yield* FileSystem;
|
|
7645
7648
|
const path = yield* Path;
|
|
7646
7649
|
const names = (yield* regularFiles(filesDir)).filter(isTestReportName);
|
|
7647
7650
|
const reports = yield* forEach(names, (name) => fs.readFileString(path.join(filesDir, name)).pipe(map8((text) => [text]), orElseSucceed(() => [])));
|
|
7648
|
-
return checkTests(reports.flat());
|
|
7649
|
-
}).pipe(orElseSucceed(() => checkTests([])));
|
|
7651
|
+
return checkTests(reports.flat(), printed);
|
|
7652
|
+
}).pipe(orElseSucceed(() => checkTests([], printed)));
|
|
7650
7653
|
|
|
7651
7654
|
class ServicesUnavailable extends TaggedError("ServicesUnavailable") {
|
|
7652
7655
|
get message() {
|
|
@@ -7837,6 +7840,11 @@ var installIn = (worktree, run) => gen(function* () {
|
|
|
7837
7840
|
if (unresolved.length > 0)
|
|
7838
7841
|
return yield* new InstallFailed({ command: forced, output: unresolved.join("; ") });
|
|
7839
7842
|
});
|
|
7843
|
+
var failingLinesRead = 1000;
|
|
7844
|
+
var printedFailures = (output) => gen(function* () {
|
|
7845
|
+
const fs = yield* FileSystem;
|
|
7846
|
+
return yield* fs.stream(output).pipe(decodeText, splitLines, map2(failedTestOfLine), filter((name) => name !== undefined), take2(failingLinesRead), runCollect);
|
|
7847
|
+
}).pipe(orElseSucceed(() => []));
|
|
7840
7848
|
var runChecks = (worktree, checks, tree, known, run, keeper, services) => gen(function* () {
|
|
7841
7849
|
const path = yield* Path;
|
|
7842
7850
|
const due = checks.filter((check) => !known.some((entry) => entry.tree === tree && entry.name === check.name && entry.command === check.command));
|
|
@@ -7850,7 +7858,7 @@ var runChecks = (worktree, checks, tree, known, run, keeper, services) => gen(fu
|
|
|
7850
7858
|
const startedAt = yield* currentTimeMillis;
|
|
7851
7859
|
const filesDir = yield* tempDirectoryScoped(fs, { prefix: "kitman-check-files-" });
|
|
7852
7860
|
const output = path.join(yield* tempDirectoryScoped(fs, { prefix: "kitman-check-output-" }), "output");
|
|
7853
|
-
const sink =
|
|
7861
|
+
const sink = yield* fs.open(output, { flag: "w" });
|
|
7854
7862
|
const docker = check.pipeline === true ? yield* pipelineDaemon(services, check.name) : undefined;
|
|
7855
7863
|
const ran = yield* run({
|
|
7856
7864
|
command: check.command,
|
|
@@ -7858,10 +7866,11 @@ var runChecks = (worktree, checks, tree, known, run, keeper, services) => gen(fu
|
|
|
7858
7866
|
filesDir,
|
|
7859
7867
|
...postgres === undefined ? undefined : { postgres },
|
|
7860
7868
|
...docker === undefined ? undefined : { docker },
|
|
7861
|
-
|
|
7869
|
+
onOutput: (chunk) => sink.writeAll(chunk)
|
|
7862
7870
|
});
|
|
7863
7871
|
const durationMs = (yield* currentTimeMillis) - startedAt;
|
|
7864
|
-
const
|
|
7872
|
+
const printed = ran.exitCode === 0 ? [] : yield* printedFailures(output);
|
|
7873
|
+
const { failedTests, ...tests } = yield* checkedTests(filesDir, printed);
|
|
7865
7874
|
const fileIds = keeper === undefined ? undefined : yield* keeper.keep({ check: check.name, prefix: keeper.prefix, output, filesDir });
|
|
7866
7875
|
return {
|
|
7867
7876
|
name: check.name,
|
|
@@ -7871,7 +7880,7 @@ var runChecks = (worktree, checks, tree, known, run, keeper, services) => gen(fu
|
|
|
7871
7880
|
durationMs,
|
|
7872
7881
|
outputTail: redactedOutputTail(ran.output),
|
|
7873
7882
|
...fileIds === undefined ? undefined : { fileIds },
|
|
7874
|
-
tests
|
|
7883
|
+
tests: { ...tests, ...ran.exitCode === 0 || failedTests === undefined ? undefined : { failedTests } }
|
|
7875
7884
|
};
|
|
7876
7885
|
}).pipe(scoped));
|
|
7877
7886
|
});
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
+
isString,
|
|
4
|
+
hasProperty,
|
|
5
|
+
symbol,
|
|
6
|
+
hash,
|
|
7
|
+
symbol2,
|
|
8
|
+
equals,
|
|
3
9
|
BaseProto,
|
|
10
|
+
PipeInspectableProto,
|
|
4
11
|
Prototype,
|
|
5
12
|
some,
|
|
6
13
|
Service2,
|
|
@@ -14,11 +21,8 @@ import {
|
|
|
14
21
|
andThen2,
|
|
15
22
|
map8,
|
|
16
23
|
raceFirst,
|
|
17
|
-
scoped
|
|
18
|
-
|
|
19
|
-
make16,
|
|
20
|
-
value
|
|
21
|
-
} from "./chunk-zgraq2y3.js";
|
|
24
|
+
scoped
|
|
25
|
+
} from "./chunk-8pbnfqaz.js";
|
|
22
26
|
import {
|
|
23
27
|
unwrap,
|
|
24
28
|
drainFork,
|
|
@@ -27,7 +31,49 @@ import {
|
|
|
27
31
|
runCollect,
|
|
28
32
|
runDrain,
|
|
29
33
|
mkString
|
|
30
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-szt25e0z.js";
|
|
35
|
+
|
|
36
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/redacted.js
|
|
37
|
+
var redactedRegistry = /* @__PURE__ */ new WeakMap;
|
|
38
|
+
var value2 = (self) => {
|
|
39
|
+
if (redactedRegistry.has(self)) {
|
|
40
|
+
return redactedRegistry.get(self);
|
|
41
|
+
} else {
|
|
42
|
+
throw new Error("Unable to get redacted value" + (self.label ? ` with label: "${self.label}"` : ""));
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Redacted.js
|
|
47
|
+
var TypeId = "~effect/Redacted";
|
|
48
|
+
var isRedacted = (u) => hasProperty(u, TypeId);
|
|
49
|
+
var make = (value, options) => {
|
|
50
|
+
const self = Object.create(Proto);
|
|
51
|
+
if (options?.label) {
|
|
52
|
+
self.label = options.label;
|
|
53
|
+
}
|
|
54
|
+
redactedRegistry.set(self, value);
|
|
55
|
+
return self;
|
|
56
|
+
};
|
|
57
|
+
var Proto = {
|
|
58
|
+
[TypeId]: {
|
|
59
|
+
_A: (_) => _
|
|
60
|
+
},
|
|
61
|
+
label: undefined,
|
|
62
|
+
...PipeInspectableProto,
|
|
63
|
+
toJSON() {
|
|
64
|
+
return this.toString();
|
|
65
|
+
},
|
|
66
|
+
toString() {
|
|
67
|
+
return `<redacted${isString(this.label) ? ":" + this.label : ""}>`;
|
|
68
|
+
},
|
|
69
|
+
[symbol]() {
|
|
70
|
+
return hash(redactedRegistry.get(this));
|
|
71
|
+
},
|
|
72
|
+
[symbol2](that) {
|
|
73
|
+
return isRedacted(that) && equals(redactedRegistry.get(this), redactedRegistry.get(that));
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
var value = value2;
|
|
31
77
|
|
|
32
78
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Brand.js
|
|
33
79
|
function nominal() {
|
|
@@ -55,7 +101,7 @@ var HandleProto = {
|
|
|
55
101
|
var makeHandle = (params) => Object.setPrototypeOf({
|
|
56
102
|
...params
|
|
57
103
|
}, HandleProto);
|
|
58
|
-
var
|
|
104
|
+
var make2 = (spawn) => {
|
|
59
105
|
const streamString = (command, options) => spawn(command).pipe(map8((handle) => decodeText(options?.includeStderr === true ? handle.all : drainFork(handle.stdout, handle.stderr))), unwrap);
|
|
60
106
|
const streamLines = (command, options) => splitLines(streamString(command, options));
|
|
61
107
|
return ChildProcessSpawner.of({
|
|
@@ -176,7 +222,7 @@ var parseTemplate = (texts, values) => {
|
|
|
176
222
|
if (word.length === 0)
|
|
177
223
|
return;
|
|
178
224
|
const value = word.map(unwrap2).join("");
|
|
179
|
-
words.push(word.length === 1 && isRedacted(word[0]) ? word[0] : word.some(isRedacted) ?
|
|
225
|
+
words.push(word.length === 1 && isRedacted(word[0]) ? word[0] : word.some(isRedacted) ? make(value) : value);
|
|
180
226
|
word = [];
|
|
181
227
|
plain = true;
|
|
182
228
|
braceDepth = 0;
|
|
@@ -266,23 +312,23 @@ var parseTemplate = (texts, values) => {
|
|
|
266
312
|
};
|
|
267
313
|
|
|
268
314
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/process/ChildProcess.js
|
|
269
|
-
var
|
|
270
|
-
var
|
|
315
|
+
var TypeId2 = "~effect/process/ChildProcess";
|
|
316
|
+
var Proto2 = {
|
|
271
317
|
.../* @__PURE__ */ Prototype({
|
|
272
318
|
label: "Command",
|
|
273
319
|
evaluate(fiber) {
|
|
274
320
|
return getUnsafe(fiber.context, ChildProcessSpawner).spawn(this);
|
|
275
321
|
}
|
|
276
322
|
}),
|
|
277
|
-
[
|
|
323
|
+
[TypeId2]: TypeId2
|
|
278
324
|
};
|
|
279
|
-
var makeStandardCommand = (command, args, options) => Object.assign(Object.create(
|
|
325
|
+
var makeStandardCommand = (command, args, options) => Object.assign(Object.create(Proto2), {
|
|
280
326
|
_tag: "StandardCommand",
|
|
281
327
|
command,
|
|
282
328
|
args,
|
|
283
329
|
options
|
|
284
330
|
});
|
|
285
|
-
var
|
|
331
|
+
var make3 = function make(...args) {
|
|
286
332
|
if (isTemplateString(args[0])) {
|
|
287
333
|
const [templates, ...expressions] = args;
|
|
288
334
|
const [command, cmdArgs] = parseTemplate2(templates, expressions);
|
|
@@ -340,4 +386,4 @@ var shellScript = (templates, expressions) => {
|
|
|
340
386
|
}
|
|
341
387
|
return script;
|
|
342
388
|
};
|
|
343
|
-
export { ExitCode, ProcessId, makeHandle,
|
|
389
|
+
export { isRedacted, make, value, ExitCode, ProcessId, makeHandle, make2, ChildProcessSpawner, display, make3, parseFdName, fdName };
|
|
@@ -24,11 +24,11 @@ import {
|
|
|
24
24
|
Record,
|
|
25
25
|
Int,
|
|
26
26
|
fromJsonString
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-8pbnfqaz.js";
|
|
28
28
|
import {
|
|
29
29
|
withDefault,
|
|
30
30
|
String2
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-szt25e0z.js";
|
|
32
32
|
import {
|
|
33
33
|
newerKitmanVersion,
|
|
34
34
|
digestSha256,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
get2,
|
|
40
40
|
layer4,
|
|
41
41
|
KitDigest
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-ths93svq.js";
|
|
43
43
|
|
|
44
44
|
// packages/core/src/npm-registry.ts
|
|
45
45
|
var KitManifest = Struct({
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
decoded2,
|
|
8
8
|
readOpencode2,
|
|
9
9
|
runOpencodeReader2
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import"./chunk-
|
|
12
|
-
import"./chunk-
|
|
13
|
-
import"./chunk-
|
|
10
|
+
} from "./chunk-nge8fq10.js";
|
|
11
|
+
import"./chunk-3z9yz32f.js";
|
|
12
|
+
import"./chunk-szt25e0z.js";
|
|
13
|
+
import"./chunk-8pbnfqaz.js";
|
|
14
14
|
export {
|
|
15
15
|
decoded2 as decoded,
|
|
16
16
|
decodedOption2 as decodedOption,
|