@kitman-sh/cli 0.10.80 → 0.10.82
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-z0tv3ak5.js → chunk-2mxpxw3j.js} +3 -3
- package/dist/{chunk-0wy2gwj2.js → chunk-5my30s53.js} +8 -8
- package/dist/{chunk-ctfv3bg6.js → chunk-62565d52.js} +2 -2
- package/dist/{chunk-2afjvt1c.js → chunk-76ctrqm6.js} +1 -1
- package/dist/{chunk-vcvnk771.js → chunk-8p0psats.js} +4 -4
- package/dist/{chunk-wqv9y3dk.js → chunk-98sg1yyd.js} +60 -14
- package/dist/{chunk-4tjeks83.js → chunk-9zd52pda.js} +5 -5
- package/dist/{chunk-czxcs1ce.js → chunk-a03wf71k.js} +7 -7
- package/dist/{chunk-84gm9qq8.js → chunk-by4t402z.js} +25 -25
- package/dist/{chunk-7b6qsc4y.js → chunk-d4atn90g.js} +23 -23
- package/dist/{chunk-xkqbgz5j.js → chunk-e8zm8z3a.js} +8 -8
- package/dist/{chunk-kjms81x1.js → chunk-fq47a5yd.js} +2 -2
- package/dist/{chunk-61jk9k82.js → chunk-gn0v83as.js} +126 -117
- package/dist/{chunk-v9nqb2tp.js → chunk-jbwk6k6m.js} +40 -226
- package/dist/{chunk-0dwnwx45.js → chunk-jr1363cj.js} +5 -5
- package/dist/{chunk-fwsq4r8a.js → chunk-kgdppbdr.js} +1 -1
- package/dist/{chunk-hr6etnzn.js → chunk-ky974pcr.js} +4 -4
- package/dist/{chunk-twms8y72.js → chunk-pkn6g975.js} +4 -4
- package/dist/{chunk-1xn27063.js → chunk-q4cpages.js} +5 -5
- package/dist/{chunk-yp10rhmv.js → chunk-q767c0cv.js} +7 -7
- package/dist/{chunk-f3k1vjtf.js → chunk-szf97jdk.js} +21 -21
- package/dist/{chunk-80z95x19.js → chunk-tzz4fv17.js} +1 -1
- package/dist/{chunk-bxxym84e.js → chunk-xb70ys3n.js} +165 -31
- package/dist/{chunk-5v9pywm3.js → chunk-zzhewave.js} +111 -124
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -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-gn0v83as.js";
|
|
42
42
|
|
|
43
43
|
// packages/core/src/npm-registry.ts
|
|
44
44
|
var KitManifest = Struct({
|
|
@@ -12,30 +12,30 @@ import {
|
|
|
12
12
|
orElseSucceed,
|
|
13
13
|
decodeJsonString,
|
|
14
14
|
encodePrettyJsonString
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import"./chunk-
|
|
15
|
+
} from "./chunk-jbwk6k6m.js";
|
|
16
|
+
import"./chunk-kgdppbdr.js";
|
|
17
17
|
import {
|
|
18
18
|
isJsonObject
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-tzz4fv17.js";
|
|
20
20
|
import {
|
|
21
21
|
FileSystem,
|
|
22
22
|
Path
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-xb70ys3n.js";
|
|
24
24
|
import {
|
|
25
25
|
tomlTableHeader2,
|
|
26
26
|
tomlKeyPath2,
|
|
27
27
|
kitmanSkillEntry,
|
|
28
28
|
isPathWithin2
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-jr1363cj.js";
|
|
30
30
|
import {
|
|
31
31
|
instructionsStart,
|
|
32
32
|
instructionsEnd,
|
|
33
33
|
renderMcpServer,
|
|
34
34
|
materializeKitSetup,
|
|
35
35
|
tomlInline
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import"./chunk-
|
|
38
|
-
import"./chunk-
|
|
36
|
+
} from "./chunk-gn0v83as.js";
|
|
37
|
+
import"./chunk-2mxpxw3j.js";
|
|
38
|
+
import"./chunk-98sg1yyd.js";
|
|
39
39
|
|
|
40
40
|
// packages/agent-runtime/src/kit-setup-sync.ts
|
|
41
41
|
class KitSyncError extends TaggedError("KitSyncError") {
|
|
@@ -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";
|
|
@@ -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-gn0v83as.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");
|
|
@@ -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-v9nqb2tp.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,
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
gen,
|
|
7
7
|
flatMap3,
|
|
8
8
|
provideContext2
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-jbwk6k6m.js";
|
|
10
10
|
import {
|
|
11
11
|
runForEach
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-xb70ys3n.js";
|
|
13
13
|
import {
|
|
14
14
|
WebSocketConstructor,
|
|
15
15
|
layerWebSocketConstructorGlobal,
|
|
@@ -19,13 +19,13 @@ import {
|
|
|
19
19
|
RunnerReplicaRpcs,
|
|
20
20
|
RunnerRunFileRpcs,
|
|
21
21
|
ProgramRpcs
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-gn0v83as.js";
|
|
23
23
|
import {
|
|
24
24
|
layerJson,
|
|
25
|
-
|
|
25
|
+
make4,
|
|
26
26
|
withHeaders,
|
|
27
27
|
layerProtocolSocket
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-q4cpages.js";
|
|
29
29
|
|
|
30
30
|
// packages/live/src/rpc/runner-client.ts
|
|
31
31
|
var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
|
|
@@ -46,7 +46,7 @@ var authorizer = (options) => (call) => flatMap3(options.bearer, (token) => with
|
|
|
46
46
|
var RunnerProcessRpcs = RunnerReplicaRpcs.merge(RunnerRunFileRpcs);
|
|
47
47
|
var makeRunnerRpcClient2 = (options) => gen(function* () {
|
|
48
48
|
const protocol = yield* build(options.protocol);
|
|
49
|
-
const client = yield*
|
|
49
|
+
const client = yield* make4(RunnerProcessRpcs).pipe(provideContext2(protocol));
|
|
50
50
|
const authorized = authorizer(options);
|
|
51
51
|
return {
|
|
52
52
|
claim: (input) => authorized(client.Claim(input)),
|
|
@@ -74,7 +74,7 @@ var makeRunnerRpcClient2 = (options) => gen(function* () {
|
|
|
74
74
|
});
|
|
75
75
|
var makeProgramRpcClient2 = (options) => gen(function* () {
|
|
76
76
|
const protocol = yield* build(options.protocol);
|
|
77
|
-
const client = yield*
|
|
77
|
+
const client = yield* make4(ProgramRpcs).pipe(provideContext2(protocol));
|
|
78
78
|
const authorized = authorizer(options);
|
|
79
79
|
return {
|
|
80
80
|
recordActivity: (input) => authorized(client.RecordActivity(input)),
|
|
@@ -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-gn0v83as.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,12 +299,8 @@ import {
|
|
|
299
299
|
applyAgentEnvironmentMaterialization2,
|
|
300
300
|
isPathWithin2,
|
|
301
301
|
skillIdentity2
|
|
302
|
-
} from "./chunk-
|
|
303
|
-
import"./chunk-
|
|
304
|
-
import {
|
|
305
|
-
ChildProcessSpawner,
|
|
306
|
-
make2
|
|
307
|
-
} from "./chunk-wqv9y3dk.js";
|
|
302
|
+
} from "./chunk-jr1363cj.js";
|
|
303
|
+
import"./chunk-2mxpxw3j.js";
|
|
308
304
|
import {
|
|
309
305
|
egressAllowed,
|
|
310
306
|
writeSecretRegistry,
|
|
@@ -314,7 +310,7 @@ import {
|
|
|
314
310
|
secretFilter2,
|
|
315
311
|
opaqueTunnelRefusal2,
|
|
316
312
|
isOpaqueConnectReason2
|
|
317
|
-
} from "./chunk-
|
|
313
|
+
} from "./chunk-62565d52.js";
|
|
318
314
|
import {
|
|
319
315
|
sliceBytes2,
|
|
320
316
|
maxLineBytes2,
|
|
@@ -322,19 +318,23 @@ import {
|
|
|
322
318
|
decodedOption2,
|
|
323
319
|
decoded2,
|
|
324
320
|
readOpencode2
|
|
325
|
-
} from "./chunk-
|
|
321
|
+
} from "./chunk-e8zm8z3a.js";
|
|
326
322
|
import {
|
|
327
323
|
uploadRunFile,
|
|
328
324
|
programLease,
|
|
329
325
|
rpcRunFiles,
|
|
330
326
|
programHostsEnv,
|
|
331
327
|
undeclaredHostsEnv
|
|
332
|
-
} from "./chunk-
|
|
333
|
-
import"./chunk-
|
|
328
|
+
} from "./chunk-8p0psats.js";
|
|
329
|
+
import"./chunk-a03wf71k.js";
|
|
334
330
|
import {
|
|
335
331
|
nextInt
|
|
336
|
-
} from "./chunk-
|
|
337
|
-
import
|
|
332
|
+
} from "./chunk-76ctrqm6.js";
|
|
333
|
+
import {
|
|
334
|
+
ChildProcessSpawner,
|
|
335
|
+
make3
|
|
336
|
+
} from "./chunk-98sg1yyd.js";
|
|
337
|
+
import"./chunk-q4cpages.js";
|
|
338
338
|
|
|
339
339
|
// packages/core/src/sync-kit.ts
|
|
340
340
|
import { createHash } from "crypto";
|
|
@@ -6532,7 +6532,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
|
|
|
6532
6532
|
const input = yield* unbounded2();
|
|
6533
6533
|
const pending = new Map;
|
|
6534
6534
|
let lastId = 0;
|
|
6535
|
-
const handle = yield* spawner.spawn(
|
|
6535
|
+
const handle = yield* spawner.spawn(make3(binary, ["app-server"], {
|
|
6536
6536
|
cwd: env.home,
|
|
6537
6537
|
extendEnv: true,
|
|
6538
6538
|
env: { HOME: env.home, CODEX_HOME: env.codexHome },
|
|
@@ -6555,7 +6555,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
|
|
|
6555
6555
|
return {
|
|
6556
6556
|
request: (method, params) => gen(function* () {
|
|
6557
6557
|
const id = ++lastId;
|
|
6558
|
-
const deferred = yield*
|
|
6558
|
+
const deferred = yield* make16();
|
|
6559
6559
|
pending.set(id, deferred);
|
|
6560
6560
|
yield* send({ id, method, params });
|
|
6561
6561
|
return yield* _await(deferred).pipe(mapError2((error) => new CodexAppServerFailed({ reason: `${method}: ${error.message}` })));
|
|
@@ -6695,10 +6695,10 @@ var handshake = [
|
|
|
6695
6695
|
`).join("");
|
|
6696
6696
|
var kitmanMcpPreflight = (mcp) => gen(function* () {
|
|
6697
6697
|
const spawner = yield* ChildProcessSpawner;
|
|
6698
|
-
const server = yield* spawner.spawn(
|
|
6698
|
+
const server = yield* spawner.spawn(make3(mcp.command, [...mcp.args], {
|
|
6699
6699
|
extendEnv: true,
|
|
6700
6700
|
env: mcp.env,
|
|
6701
|
-
stdin: { stream:
|
|
6701
|
+
stdin: { stream: make11(new TextEncoder().encode(handshake)), endOnDone: false },
|
|
6702
6702
|
stderr: "ignore"
|
|
6703
6703
|
}));
|
|
6704
6704
|
const reply = yield* server.stdout.pipe(decodeText, splitLines, map2((line) => getOrUndefined(decodeJsonStringOption(line))), filter((message) => isJsonObject(message) && message.id === 2), runHead);
|
|
@@ -6771,8 +6771,8 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
|
|
|
6771
6771
|
};
|
|
6772
6772
|
const exitCode = sandbox === undefined ? yield* gen(function* () {
|
|
6773
6773
|
const spawner = yield* ChildProcessSpawner;
|
|
6774
|
-
const handle = yield* spawner.spawn(
|
|
6775
|
-
stdin:
|
|
6774
|
+
const handle = yield* spawner.spawn(make3(input.bun ?? process.execPath, [file], {
|
|
6775
|
+
stdin: make11(new TextEncoder().encode(stdin)),
|
|
6776
6776
|
stdout: "inherit",
|
|
6777
6777
|
stderr: "inherit",
|
|
6778
6778
|
extendEnv: false,
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
getOrUndefined,
|
|
7
7
|
Reference,
|
|
8
8
|
TaggedError,
|
|
9
|
-
|
|
9
|
+
make16,
|
|
10
10
|
_await,
|
|
11
11
|
fail5,
|
|
12
12
|
succeed5,
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
decodeJsonString,
|
|
86
86
|
encodeJsonStringSync,
|
|
87
87
|
encodePrettyJsonString
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-jbwk6k6m.js";
|
|
89
89
|
import {
|
|
90
90
|
tap,
|
|
91
91
|
mapError,
|
|
@@ -97,11 +97,7 @@ import {
|
|
|
97
97
|
withDefault,
|
|
98
98
|
option,
|
|
99
99
|
String2
|
|
100
|
-
} from "./chunk-
|
|
101
|
-
import {
|
|
102
|
-
ChildProcessSpawner,
|
|
103
|
-
make2
|
|
104
|
-
} from "./chunk-wqv9y3dk.js";
|
|
100
|
+
} from "./chunk-xb70ys3n.js";
|
|
105
101
|
import {
|
|
106
102
|
currentTimeMillis,
|
|
107
103
|
SecureRandom,
|
|
@@ -139,7 +135,7 @@ import {
|
|
|
139
135
|
digestSha256,
|
|
140
136
|
sha256Hasher,
|
|
141
137
|
raw,
|
|
142
|
-
|
|
138
|
+
make5,
|
|
143
139
|
get,
|
|
144
140
|
put,
|
|
145
141
|
HttpClient,
|
|
@@ -201,10 +197,10 @@ import {
|
|
|
201
197
|
harnessNames,
|
|
202
198
|
herdrRunnerCapabilities2,
|
|
203
199
|
declaredChecks
|
|
204
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-gn0v83as.js";
|
|
205
201
|
import {
|
|
206
202
|
Id
|
|
207
|
-
} from "./chunk-
|
|
203
|
+
} from "./chunk-kgdppbdr.js";
|
|
208
204
|
import {
|
|
209
205
|
toJsonValue,
|
|
210
206
|
isOneOf,
|
|
@@ -214,7 +210,11 @@ import {
|
|
|
214
210
|
isObject,
|
|
215
211
|
isJsonObject,
|
|
216
212
|
isString
|
|
217
|
-
} from "./chunk-
|
|
213
|
+
} from "./chunk-tzz4fv17.js";
|
|
214
|
+
import {
|
|
215
|
+
ChildProcessSpawner,
|
|
216
|
+
make3
|
|
217
|
+
} from "./chunk-98sg1yyd.js";
|
|
218
218
|
|
|
219
219
|
// apps/cli/src/cli-error.ts
|
|
220
220
|
function cliErrorCode(error, status) {
|
|
@@ -504,10 +504,10 @@ var checkDockerImageSetting = pinnedImage;
|
|
|
504
504
|
var checkRegistryImageSetting = pinnedImage;
|
|
505
505
|
var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
|
|
506
506
|
var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
|
|
507
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
507
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-pkn6g975.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
|
|
508
508
|
});
|
|
509
509
|
var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
|
|
510
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
510
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-pkn6g975.js")), (module) => module.updateHerdrCore(options))
|
|
511
511
|
});
|
|
512
512
|
var herdrCoreMissing = (error) => {
|
|
513
513
|
if (isTagged(error, "HerdrCoreMissing"))
|
|
@@ -733,7 +733,7 @@ var syncTargets = (harness) => gen(function* () {
|
|
|
733
733
|
});
|
|
734
734
|
var syncKits = (input) => gen(function* () {
|
|
735
735
|
const fs = yield* FileSystem;
|
|
736
|
-
const { syncKitSetup } = yield* promise(() => import("./chunk-
|
|
736
|
+
const { syncKitSetup } = yield* promise(() => import("./chunk-5my30s53.js"));
|
|
737
737
|
const harnesses = yield* syncTargets(input.harness);
|
|
738
738
|
const chain = yield* input.client.getKitChain(input.workspaceId);
|
|
739
739
|
for (const { name, problem } of chain.skipped)
|
|
@@ -1249,7 +1249,7 @@ var ServiceManager = Reference("kitman/cli/ServiceManager", {
|
|
|
1249
1249
|
run: (command, args) => runCommand2(command, args),
|
|
1250
1250
|
attach: (command, args) => gen(function* () {
|
|
1251
1251
|
const spawner = yield* ChildProcessSpawner;
|
|
1252
|
-
const handle = yield* spawner.spawn(
|
|
1252
|
+
const handle = yield* spawner.spawn(make3(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
|
|
1253
1253
|
const exitCode = yield* handle.exitCode;
|
|
1254
1254
|
if (exitCode !== 0)
|
|
1255
1255
|
return yield* new CommandFailed2({ command, reason: `exit code ${exitCode}` });
|
|
@@ -1651,7 +1651,7 @@ var package_default = {
|
|
|
1651
1651
|
};
|
|
1652
1652
|
|
|
1653
1653
|
// apps/cli/src/scaffold.ts
|
|
1654
|
-
var cliVersion = "0.10.
|
|
1654
|
+
var cliVersion = "0.10.82";
|
|
1655
1655
|
var packageJson = (name, scaffold) => `${JSON.stringify({
|
|
1656
1656
|
name,
|
|
1657
1657
|
private: true,
|
|
@@ -1901,7 +1901,7 @@ var Usage = [
|
|
|
1901
1901
|
"Every run, loop, agent, verify, constraint, secret, claim, deploy, dev and kit command takes --json."
|
|
1902
1902
|
].join(`
|
|
1903
1903
|
`);
|
|
1904
|
-
var agentRuntime = promise(() => import("./chunk-
|
|
1904
|
+
var agentRuntime = promise(() => import("./chunk-by4t402z.js"));
|
|
1905
1905
|
var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
|
|
1906
1906
|
defaultValue: () => gen(function* () {
|
|
1907
1907
|
const tui = yield* tryPromise({
|
|
@@ -2777,7 +2777,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
|
|
|
2777
2777
|
});
|
|
2778
2778
|
var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
|
|
2779
2779
|
defaultValue: () => (options) => gen(function* () {
|
|
2780
|
-
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-
|
|
2780
|
+
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-q767c0cv.js"));
|
|
2781
2781
|
return yield* makeRunnerRpcClient({
|
|
2782
2782
|
runnerId: options.runnerId,
|
|
2783
2783
|
bearer: options.bearer,
|
|
@@ -2972,7 +2972,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
2972
2972
|
});
|
|
2973
2973
|
const checkouts = runCheckouts(path.join(runnerRootDir, ".kitman"), rpc.gitCredential);
|
|
2974
2974
|
const platform = yield* context();
|
|
2975
|
-
const updated = yield*
|
|
2975
|
+
const updated = yield* make16();
|
|
2976
2976
|
const scope = yield* scope2;
|
|
2977
2977
|
yield* listenForSignals({
|
|
2978
2978
|
rpc,
|
|
@@ -3161,7 +3161,7 @@ function mcpCommand(args) {
|
|
|
3161
3161
|
if (command.action === "run") {
|
|
3162
3162
|
if (command.args.length > 0)
|
|
3163
3163
|
return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
|
|
3164
|
-
const { runMcpServerCommand } = yield* promise(() => import("./chunk-
|
|
3164
|
+
const { runMcpServerCommand } = yield* promise(() => import("./chunk-zzhewave.js"));
|
|
3165
3165
|
return yield* runMcpServerCommand({ flags: command.flags });
|
|
3166
3166
|
}
|
|
3167
3167
|
if (command.action !== "setup")
|
|
@@ -4372,9 +4372,9 @@ function claimCommand(args) {
|
|
|
4372
4372
|
}
|
|
4373
4373
|
});
|
|
4374
4374
|
}
|
|
4375
|
-
var KitWriter = map8(promise(() => import("./chunk-
|
|
4375
|
+
var KitWriter = map8(promise(() => import("./chunk-szf97jdk.js")), (build) => build.writeKit);
|
|
4376
4376
|
var KitBuilder = Reference("kitman/cli/KitBuilder", {
|
|
4377
|
-
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-
|
|
4377
|
+
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-szf97jdk.js")), (build) => build.buildKit(directory))
|
|
4378
4378
|
});
|
|
4379
4379
|
var uploadKit = (client, workspaceId, built) => gen(function* () {
|
|
4380
4380
|
yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
|
|
@@ -5132,7 +5132,7 @@ function downloadPresignedAsset(download, outputPath) {
|
|
|
5132
5132
|
return gen(function* () {
|
|
5133
5133
|
const fs = yield* FileSystem;
|
|
5134
5134
|
const failed = (cause) => new CliError({ message: `Asset download failed: ${String(cause)}` });
|
|
5135
|
-
const response = yield* send(
|
|
5135
|
+
const response = yield* send(make5(download.method)(download.url), failed);
|
|
5136
5136
|
if (response.status < 200 || response.status >= 300)
|
|
5137
5137
|
return yield* new CliError({ message: `Asset download failed with ${response.status}` });
|
|
5138
5138
|
const body = yield* response.arrayBuffer.pipe(mapError2((error) => failed(error.message)));
|
|
@@ -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,
|