@kitman-sh/cli 0.10.88 → 0.10.90
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-101maext.js → chunk-0gs7cjkt.js} +21 -9
- package/dist/{chunk-ghga9phe.js → chunk-5vsqzmvf.js} +5 -5
- package/dist/{chunk-aj4ev9v2.js → chunk-62565d52.js} +2 -2
- package/dist/{chunk-jv2xwq5v.js → chunk-75d425rk.js} +4 -4
- package/dist/{chunk-maj4dn1b.js → chunk-76ctrqm6.js} +1 -1
- package/dist/{chunk-ybp1mwv9.js → chunk-98sg1yyd.js} +60 -14
- package/dist/{chunk-5dwyvg1z.js → chunk-9zd52pda.js} +5 -5
- package/dist/{chunk-tm2zkgsf.js → chunk-bbvvx5z1.js} +12 -12
- package/dist/{chunk-7202s8t5.js → chunk-dd5aa39j.js} +23 -23
- package/dist/{chunk-dmwqvnmb.js → chunk-e8zm8z3a.js} +8 -8
- package/dist/{chunk-vne4rsj0.js → chunk-fq47a5yd.js} +2 -2
- package/dist/{chunk-a7m6tq5q.js → chunk-j9frwmmt.js} +3 -3
- package/dist/{chunk-caqesagt.js → chunk-jbwk6k6m.js} +28 -70
- package/dist/{chunk-7bv81x50.js → chunk-jq8hhvdv.js} +8 -8
- package/dist/{chunk-p74pmd81.js → chunk-kgdppbdr.js} +1 -1
- package/dist/{chunk-cw2ghw7n.js → chunk-ky974pcr.js} +4 -4
- package/dist/{chunk-9b0agw88.js → chunk-m1ewm9dy.js} +25 -25
- package/dist/{chunk-zy5ywtx2.js → chunk-mgmsx0bm.js} +7 -7
- package/dist/{chunk-h2e1m210.js → chunk-py4t32pa.js} +122 -112
- package/dist/{chunk-ntbwavn3.js → chunk-rq6bn96v.js} +5 -5
- package/dist/{chunk-1mcwey0c.js → chunk-tzz4fv17.js} +1 -1
- package/dist/{chunk-8n5fwxyd.js → chunk-x11j5jcj.js} +21 -21
- package/dist/{chunk-w9j2yb0n.js → chunk-xb70ys3n.js} +17 -17
- package/dist/{chunk-q6yydf12.js → chunk-yx90ye72.js} +7 -7
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -75,10 +75,10 @@ import {
|
|
|
75
75
|
toEquivalence,
|
|
76
76
|
toCodecJson,
|
|
77
77
|
Json
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-jbwk6k6m.js";
|
|
79
79
|
import {
|
|
80
80
|
guard
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-kgdppbdr.js";
|
|
82
82
|
import {
|
|
83
83
|
currentTimeMillis,
|
|
84
84
|
WebCrypto,
|
|
@@ -105,11 +105,11 @@ import {
|
|
|
105
105
|
KitDigest,
|
|
106
106
|
KitSetup,
|
|
107
107
|
RunnerRpcError
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-py4t32pa.js";
|
|
109
109
|
import {
|
|
110
110
|
runForEach,
|
|
111
111
|
FileSystem
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-xb70ys3n.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");
|
|
@@ -261,6 +261,7 @@ var LoopManifest = Struct({
|
|
|
261
261
|
from: optionalKey(String4)
|
|
262
262
|
})),
|
|
263
263
|
capabilities: ArraySchema(Literals(LoopCapabilities)),
|
|
264
|
+
ownCapabilities: optionalKey(ArraySchema(Literals(LoopCapabilities))),
|
|
264
265
|
secrets: optionalKey(ArraySchema(SecretName)),
|
|
265
266
|
network: optionalKey(AgentSandboxNetwork),
|
|
266
267
|
schedule: optionalKey(Struct({ rule: ScheduleRule, timezone: String4 }))
|
|
@@ -635,7 +636,7 @@ var ChangeRequestRequest = Struct({
|
|
|
635
636
|
integration: optional(String4)
|
|
636
637
|
});
|
|
637
638
|
var ChangeRequestResult = Struct({ id: String4, number: String4, url: String4 });
|
|
638
|
-
var WriteBackMilestones = ["started", "change_request_opened", "merged", "failed"];
|
|
639
|
+
var WriteBackMilestones = ["started", "change_request_opened", "merged", "failed", "blocked"];
|
|
639
640
|
var WriteBackRequest = Struct({
|
|
640
641
|
milestone: optional(Literals(WriteBackMilestones)),
|
|
641
642
|
changeRequestUrl: optional(String4)
|
|
@@ -796,18 +797,28 @@ var TranscriptPoint = Struct({
|
|
|
796
797
|
sequence: Int
|
|
797
798
|
});
|
|
798
799
|
var TranscriptsRequest = Struct({
|
|
799
|
-
days: Int.check(isGreaterThanOrEqualTo(1), isLessThanOrEqualTo(31))
|
|
800
|
+
days: Int.check(isGreaterThanOrEqualTo(1), isLessThanOrEqualTo(31)),
|
|
801
|
+
teamId: optionalKey(String4)
|
|
800
802
|
});
|
|
801
803
|
var TranscriptsResult = Struct({
|
|
802
804
|
runs: ArraySchema(Struct({
|
|
803
805
|
runId: String4,
|
|
804
806
|
loopId: String4,
|
|
807
|
+
rootRunId: optional(String4),
|
|
805
808
|
status: optional(Literals(["completed", "failed", "canceled", "expired"])),
|
|
806
809
|
teamId: optional(String4),
|
|
807
810
|
failure: optional(String4),
|
|
808
811
|
retried: optional(Boolean2),
|
|
809
|
-
entries: ArraySchema(Struct({ stepAttemptId: String4, sequence: Int, kind: String4, text: String4 }))
|
|
810
|
-
|
|
812
|
+
entries: ArraySchema(Struct({ stepAttemptId: String4, sequence: Int, kind: String4, text: String4 })),
|
|
813
|
+
omitted: optional(Int)
|
|
814
|
+
})),
|
|
815
|
+
artifactId: optional(String4),
|
|
816
|
+
findings: optional(ArraySchema(Struct({
|
|
817
|
+
key: String4,
|
|
818
|
+
title: String4,
|
|
819
|
+
taskId: optional(String4),
|
|
820
|
+
taskKey: optional(String4)
|
|
821
|
+
})))
|
|
811
822
|
});
|
|
812
823
|
var Citations = NonEmptyArray(TranscriptPoint);
|
|
813
824
|
var ProposeRequest = Union([
|
|
@@ -829,7 +840,8 @@ var ProposeRequest = Union([
|
|
|
829
840
|
var ProposeResult = Struct({
|
|
830
841
|
kind: Literals(["memory", "task"]),
|
|
831
842
|
id: String4,
|
|
832
|
-
matched: optionalKey(Boolean2)
|
|
843
|
+
matched: optionalKey(Boolean2),
|
|
844
|
+
task: optionalKey(Struct({ id: String4, active: Boolean2 }))
|
|
833
845
|
});
|
|
834
846
|
var Health = Literals(["on_track", "at_risk", "off_track"]);
|
|
835
847
|
var ProjectActivityRequest = Struct({ projectId: String4 });
|
|
@@ -23,24 +23,24 @@ import {
|
|
|
23
23
|
fnUntraced,
|
|
24
24
|
encodePrettyJsonString,
|
|
25
25
|
decodeJsonStringSync
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-jbwk6k6m.js";
|
|
27
27
|
import {
|
|
28
28
|
isJsonObject,
|
|
29
29
|
isString
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-tzz4fv17.js";
|
|
31
31
|
import {
|
|
32
32
|
FileSystem,
|
|
33
33
|
Path,
|
|
34
34
|
optionalEnv
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-xb70ys3n.js";
|
|
36
36
|
import {
|
|
37
37
|
AgentHarnessIds,
|
|
38
38
|
sha2562,
|
|
39
39
|
runCommand2
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-py4t32pa.js";
|
|
41
41
|
import {
|
|
42
42
|
NpmRegistry
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-j9frwmmt.js";
|
|
44
44
|
|
|
45
45
|
// packages/agent-runtime/src/config-convergence.ts
|
|
46
46
|
var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
ArraySchema,
|
|
14
14
|
decodeJsonStringOption,
|
|
15
15
|
encodeUnknownJsonStringSync
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-jbwk6k6m.js";
|
|
17
17
|
import {
|
|
18
18
|
replaceSecretReferences,
|
|
19
19
|
secretReferencesIn
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-kgdppbdr.js";
|
|
21
21
|
|
|
22
22
|
// packages/agent-runtime/src/srt-step.ts
|
|
23
23
|
import { SandboxRuntimeConfigSchema } from "@anthropic-ai/sandbox-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-98sg1yyd.js";
|
|
3
3
|
import {
|
|
4
4
|
HERDR_CORE_GENERATION2,
|
|
5
5
|
HERDR_CORE_INSTALL_COMMAND2,
|
|
@@ -12,9 +12,9 @@ import {
|
|
|
12
12
|
herdrCoreLayer2,
|
|
13
13
|
herdrCoreTransportLayer2,
|
|
14
14
|
updateHerdrCore2
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import"./chunk-
|
|
17
|
-
import"./chunk-
|
|
15
|
+
} from "./chunk-py4t32pa.js";
|
|
16
|
+
import"./chunk-xb70ys3n.js";
|
|
17
|
+
import"./chunk-jbwk6k6m.js";
|
|
18
18
|
export {
|
|
19
19
|
HERDR_CORE_GENERATION2 as HERDR_CORE_GENERATION,
|
|
20
20
|
HERDR_CORE_INSTALL_COMMAND2 as HERDR_CORE_INSTALL_COMMAND,
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
+
isString2,
|
|
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-caqesagt.js";
|
|
24
|
+
scoped
|
|
25
|
+
} from "./chunk-jbwk6k6m.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-xb70ys3n.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${isString2(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 };
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
decoded2,
|
|
8
8
|
readOpencode2,
|
|
9
9
|
runOpencodeReader2
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import"./chunk-
|
|
12
|
-
import"./chunk-
|
|
13
|
-
import"./chunk-
|
|
14
|
-
import"./chunk-
|
|
10
|
+
} from "./chunk-e8zm8z3a.js";
|
|
11
|
+
import"./chunk-98sg1yyd.js";
|
|
12
|
+
import"./chunk-tzz4fv17.js";
|
|
13
|
+
import"./chunk-xb70ys3n.js";
|
|
14
|
+
import"./chunk-jbwk6k6m.js";
|
|
15
15
|
export {
|
|
16
16
|
decoded2 as decoded,
|
|
17
17
|
decodedOption2 as decodedOption,
|
|
@@ -32,9 +32,9 @@ import {
|
|
|
32
32
|
toCodecJson,
|
|
33
33
|
Json,
|
|
34
34
|
encodePrettyJsonString
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import"./chunk-
|
|
37
|
-
import"./chunk-
|
|
35
|
+
} from "./chunk-jbwk6k6m.js";
|
|
36
|
+
import"./chunk-kgdppbdr.js";
|
|
37
|
+
import"./chunk-tzz4fv17.js";
|
|
38
38
|
import {
|
|
39
39
|
SecureRandom,
|
|
40
40
|
layerWebCrypto,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
layer4,
|
|
47
47
|
kitmanMcpServer,
|
|
48
48
|
RunnerRpcProtocolVersion
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-py4t32pa.js";
|
|
50
50
|
import {
|
|
51
51
|
decodeText,
|
|
52
52
|
mkString,
|
|
@@ -54,23 +54,23 @@ import {
|
|
|
54
54
|
Path,
|
|
55
55
|
withDefault,
|
|
56
56
|
String2
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-xb70ys3n.js";
|
|
58
58
|
import {
|
|
59
59
|
Packument,
|
|
60
60
|
tarballMatches
|
|
61
|
-
} from "./chunk-
|
|
62
|
-
import"./chunk-
|
|
61
|
+
} from "./chunk-j9frwmmt.js";
|
|
62
|
+
import"./chunk-mgmsx0bm.js";
|
|
63
63
|
import {
|
|
64
64
|
AgentDeclaration,
|
|
65
65
|
KitDeclarations,
|
|
66
66
|
describeFlag,
|
|
67
67
|
Described
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-0gs7cjkt.js";
|
|
69
69
|
import {
|
|
70
70
|
ChildProcessSpawner,
|
|
71
|
-
|
|
72
|
-
} from "./chunk-
|
|
73
|
-
import"./chunk-
|
|
71
|
+
make3
|
|
72
|
+
} from "./chunk-98sg1yyd.js";
|
|
73
|
+
import"./chunk-rq6bn96v.js";
|
|
74
74
|
|
|
75
75
|
// packages/sdk/src/build/index.ts
|
|
76
76
|
class DependencyInstallFailed extends TaggedError2()("DependencyInstallFailed", {
|
|
@@ -109,7 +109,7 @@ var ConfigAgents = Record(String4, Struct({
|
|
|
109
109
|
}));
|
|
110
110
|
var run = (command, args, cwd) => gen(function* () {
|
|
111
111
|
const spawner = yield* ChildProcessSpawner;
|
|
112
|
-
const handle = yield* spawner.spawn(
|
|
112
|
+
const handle = yield* spawner.spawn(make3(command, args, { cwd, stdin: "ignore" }));
|
|
113
113
|
const [stdout, stderr, exitCode] = yield* all3([
|
|
114
114
|
mkString(decodeText(handle.stdout)),
|
|
115
115
|
mkString(decodeText(handle.stderr)),
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
isObject,
|
|
7
7
|
isJsonObject,
|
|
8
8
|
isString
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-tzz4fv17.js";
|
|
10
10
|
import {
|
|
11
11
|
pipeArguments,
|
|
12
12
|
dual,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
isFailure2,
|
|
47
47
|
hasInterrupts,
|
|
48
48
|
makeUnsafe5,
|
|
49
|
-
|
|
49
|
+
make16,
|
|
50
50
|
_await,
|
|
51
51
|
fail5,
|
|
52
52
|
isDoneUnsafe,
|
|
@@ -165,12 +165,12 @@ import {
|
|
|
165
165
|
encodePrettyJsonString,
|
|
166
166
|
decodeJsonStringSync,
|
|
167
167
|
encodeUnknownJsonStringSync
|
|
168
|
-
} from "./chunk-
|
|
168
|
+
} from "./chunk-jbwk6k6m.js";
|
|
169
169
|
import {
|
|
170
170
|
Id,
|
|
171
171
|
secretReference,
|
|
172
172
|
secretPlaceholder
|
|
173
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-kgdppbdr.js";
|
|
174
174
|
import {
|
|
175
175
|
currentTimeMillis,
|
|
176
176
|
SecureRandom,
|
|
@@ -243,7 +243,7 @@ import {
|
|
|
243
243
|
installCommand,
|
|
244
244
|
checkServicesFile,
|
|
245
245
|
checkServices
|
|
246
|
-
} from "./chunk-
|
|
246
|
+
} from "./chunk-py4t32pa.js";
|
|
247
247
|
import {
|
|
248
248
|
join,
|
|
249
249
|
interrupt,
|
|
@@ -252,7 +252,7 @@ import {
|
|
|
252
252
|
unbounded2,
|
|
253
253
|
offer,
|
|
254
254
|
makeUnsafe3,
|
|
255
|
-
|
|
255
|
+
make11,
|
|
256
256
|
fromQueue,
|
|
257
257
|
fromPubSub,
|
|
258
258
|
map2,
|
|
@@ -283,7 +283,7 @@ import {
|
|
|
283
283
|
writeSrtSettings2,
|
|
284
284
|
srtStepArgv2,
|
|
285
285
|
srtArgv2
|
|
286
|
-
} from "./chunk-
|
|
286
|
+
} from "./chunk-xb70ys3n.js";
|
|
287
287
|
import {
|
|
288
288
|
writeAgentEnvironmentConfigFile2,
|
|
289
289
|
readManifestSkillPaths2,
|
|
@@ -299,8 +299,8 @@ import {
|
|
|
299
299
|
applyAgentEnvironmentMaterialization2,
|
|
300
300
|
isPathWithin2,
|
|
301
301
|
skillIdentity2
|
|
302
|
-
} from "./chunk-
|
|
303
|
-
import"./chunk-
|
|
302
|
+
} from "./chunk-5vsqzmvf.js";
|
|
303
|
+
import"./chunk-j9frwmmt.js";
|
|
304
304
|
import {
|
|
305
305
|
egressAllowed,
|
|
306
306
|
writeSecretRegistry,
|
|
@@ -310,7 +310,7 @@ import {
|
|
|
310
310
|
secretFilter2,
|
|
311
311
|
opaqueTunnelRefusal2,
|
|
312
312
|
isOpaqueConnectReason2
|
|
313
|
-
} from "./chunk-
|
|
313
|
+
} from "./chunk-62565d52.js";
|
|
314
314
|
import {
|
|
315
315
|
sliceBytes2,
|
|
316
316
|
maxLineBytes2,
|
|
@@ -318,23 +318,23 @@ import {
|
|
|
318
318
|
decodedOption2,
|
|
319
319
|
decoded2,
|
|
320
320
|
readOpencode2
|
|
321
|
-
} from "./chunk-
|
|
321
|
+
} from "./chunk-e8zm8z3a.js";
|
|
322
322
|
import {
|
|
323
323
|
uploadRunFile,
|
|
324
324
|
programLease,
|
|
325
325
|
rpcRunFiles,
|
|
326
326
|
programHostsEnv,
|
|
327
327
|
undeclaredHostsEnv
|
|
328
|
-
} from "./chunk-
|
|
329
|
-
import"./chunk-
|
|
328
|
+
} from "./chunk-0gs7cjkt.js";
|
|
329
|
+
import"./chunk-mgmsx0bm.js";
|
|
330
330
|
import {
|
|
331
331
|
nextInt
|
|
332
|
-
} from "./chunk-
|
|
332
|
+
} from "./chunk-76ctrqm6.js";
|
|
333
333
|
import {
|
|
334
334
|
ChildProcessSpawner,
|
|
335
|
-
|
|
336
|
-
} from "./chunk-
|
|
337
|
-
import"./chunk-
|
|
335
|
+
make3
|
|
336
|
+
} from "./chunk-98sg1yyd.js";
|
|
337
|
+
import"./chunk-rq6bn96v.js";
|
|
338
338
|
|
|
339
339
|
// packages/core/src/sync-kit.ts
|
|
340
340
|
import { createHash } from "crypto";
|
|
@@ -6550,7 +6550,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
|
|
|
6550
6550
|
const input = yield* unbounded2();
|
|
6551
6551
|
const pending = new Map;
|
|
6552
6552
|
let lastId = 0;
|
|
6553
|
-
const handle = yield* spawner.spawn(
|
|
6553
|
+
const handle = yield* spawner.spawn(make3(binary, ["app-server"], {
|
|
6554
6554
|
cwd: env.home,
|
|
6555
6555
|
extendEnv: true,
|
|
6556
6556
|
env: { HOME: env.home, CODEX_HOME: env.codexHome },
|
|
@@ -6573,7 +6573,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
|
|
|
6573
6573
|
return {
|
|
6574
6574
|
request: (method, params) => gen(function* () {
|
|
6575
6575
|
const id = ++lastId;
|
|
6576
|
-
const deferred = yield*
|
|
6576
|
+
const deferred = yield* make16();
|
|
6577
6577
|
pending.set(id, deferred);
|
|
6578
6578
|
yield* send({ id, method, params });
|
|
6579
6579
|
return yield* _await(deferred).pipe(mapError2((error) => new CodexAppServerFailed({ reason: `${method}: ${error.message}` })));
|
|
@@ -6713,10 +6713,10 @@ var handshake = [
|
|
|
6713
6713
|
`).join("");
|
|
6714
6714
|
var kitmanMcpPreflight = (mcp) => gen(function* () {
|
|
6715
6715
|
const spawner = yield* ChildProcessSpawner;
|
|
6716
|
-
const server = yield* spawner.spawn(
|
|
6716
|
+
const server = yield* spawner.spawn(make3(mcp.command, [...mcp.args], {
|
|
6717
6717
|
extendEnv: true,
|
|
6718
6718
|
env: mcp.env,
|
|
6719
|
-
stdin: { stream:
|
|
6719
|
+
stdin: { stream: make11(new TextEncoder().encode(handshake)), endOnDone: false },
|
|
6720
6720
|
stderr: "ignore"
|
|
6721
6721
|
}));
|
|
6722
6722
|
const reply = yield* server.stdout.pipe(decodeText, splitLines, map2((line) => getOrUndefined(decodeJsonStringOption(line))), filter((message) => isJsonObject(message) && message.id === 2), runHead);
|
|
@@ -6789,8 +6789,8 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
|
|
|
6789
6789
|
};
|
|
6790
6790
|
const exitCode = sandbox === undefined ? yield* gen(function* () {
|
|
6791
6791
|
const spawner = yield* ChildProcessSpawner;
|
|
6792
|
-
const handle = yield* spawner.spawn(
|
|
6793
|
-
stdin:
|
|
6792
|
+
const handle = yield* spawner.spawn(make3(input.bun ?? process.execPath, [file], {
|
|
6793
|
+
stdin: make11(new TextEncoder().encode(stdin)),
|
|
6794
6794
|
stdout: "inherit",
|
|
6795
6795
|
stderr: "inherit",
|
|
6796
6796
|
extendEnv: false,
|
|
@@ -22,21 +22,21 @@ import {
|
|
|
22
22
|
NullOr,
|
|
23
23
|
Finite,
|
|
24
24
|
encodeUnknownJsonStringSync
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-jbwk6k6m.js";
|
|
26
26
|
import {
|
|
27
27
|
isNumber,
|
|
28
28
|
isJsonObject,
|
|
29
29
|
isString
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-tzz4fv17.js";
|
|
31
31
|
import {
|
|
32
|
-
|
|
32
|
+
make11,
|
|
33
33
|
runForEach,
|
|
34
34
|
compiled2
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-xb70ys3n.js";
|
|
36
36
|
import {
|
|
37
37
|
ChildProcessSpawner,
|
|
38
|
-
|
|
39
|
-
} from "./chunk-
|
|
38
|
+
make3
|
|
39
|
+
} from "./chunk-98sg1yyd.js";
|
|
40
40
|
|
|
41
41
|
// packages/agent-runtime/src/opencode-store.ts
|
|
42
42
|
import { lstatSync, readFileSync, realpathSync } from "fs";
|
|
@@ -169,8 +169,8 @@ var opencodeReaderCommand = () => compiled2 ? [process.execPath, "opencode-read"
|
|
|
169
169
|
var isolatedRead = (store, name, input) => gen(function* () {
|
|
170
170
|
const spawner = yield* ChildProcessSpawner;
|
|
171
171
|
const [command, ...args] = opencodeReaderCommand();
|
|
172
|
-
const handle = yield* spawner.spawn(
|
|
173
|
-
stdin:
|
|
172
|
+
const handle = yield* spawner.spawn(make3(command, args, {
|
|
173
|
+
stdin: make11(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
|
|
174
174
|
stderr: "ignore",
|
|
175
175
|
extendEnv: false,
|
|
176
176
|
env: {},
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
writeSrtSettings2,
|
|
15
15
|
srtStepArgv2,
|
|
16
16
|
srtArgv2
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import"./chunk-
|
|
17
|
+
} from "./chunk-xb70ys3n.js";
|
|
18
|
+
import"./chunk-jbwk6k6m.js";
|
|
19
19
|
export {
|
|
20
20
|
compiled2 as compiled,
|
|
21
21
|
harnessesUnsupportedInSrt2 as harnessesUnsupportedInSrt,
|
|
@@ -24,11 +24,11 @@ import {
|
|
|
24
24
|
Record,
|
|
25
25
|
Int,
|
|
26
26
|
fromJsonString
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-jbwk6k6m.js";
|
|
28
28
|
import {
|
|
29
29
|
withDefault,
|
|
30
30
|
String2
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-xb70ys3n.js";
|
|
32
32
|
import {
|
|
33
33
|
digestSha256,
|
|
34
34
|
digestSha512,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
get2,
|
|
39
39
|
layer4,
|
|
40
40
|
KitDigest
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-py4t32pa.js";
|
|
42
42
|
|
|
43
43
|
// packages/core/src/npm-registry.ts
|
|
44
44
|
var KitManifest = Struct({
|