@kitman-sh/cli 0.13.10 → 0.13.11
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-t82w7459.js → chunk-0h49y8gf.js} +17 -26
- package/dist/{chunk-kj1zjrs9.js → chunk-3rkhx6gq.js} +6 -6
- package/dist/{chunk-d4pxty7x.js → chunk-5an78wy8.js} +5 -5
- package/dist/{chunk-kk32jckf.js → chunk-5zhh41gb.js} +4 -4
- package/dist/{chunk-4crf5vhd.js → chunk-5zth85pj.js} +2 -2
- package/dist/{chunk-j34gensq.js → chunk-7rpd6a98.js} +1 -1
- package/dist/{chunk-jkddgvev.js → chunk-acneym1p.js} +30 -30
- package/dist/{chunk-mtdz4k32.js → chunk-cbpb2rww.js} +10 -10
- package/dist/{chunk-rz01craf.js → chunk-dtkejy3r.js} +118 -108
- package/dist/{chunk-bkecckjn.js → chunk-fcb6skhx.js} +10 -10
- package/dist/{chunk-24h0y27w.js → chunk-gq7y5v3e.js} +1 -1
- package/dist/{chunk-mmd7mjv0.js → chunk-gy9rf14f.js} +3 -3
- package/dist/{chunk-0nh3w4vn.js → chunk-h7mnz0w3.js} +7 -7
- package/dist/{chunk-s00cj5sw.js → chunk-j48k8j8y.js} +4 -4
- package/dist/{chunk-813vn8sn.js → chunk-jyq4790r.js} +18 -18
- package/dist/{chunk-2dwqak36.js → chunk-krqb80g6.js} +9 -9
- package/dist/{chunk-vxfajzpz.js → chunk-mtkstrh3.js} +60 -14
- package/dist/{chunk-r5v7df8h.js → chunk-mx3zt8v8.js} +61 -61
- package/dist/{chunk-6n3m0t02.js → chunk-p0vqjc0n.js} +2 -2
- package/dist/{chunk-6x4wkf0x.js → chunk-p8fhxfa0.js} +3 -3
- package/dist/{chunk-pxvd8w2v.js → chunk-q5w3v4k1.js} +1 -1
- package/dist/{chunk-c60xk73g.js → chunk-rh9g6sef.js} +21 -21
- package/dist/{chunk-hkg8s472.js → chunk-xzfj61cp.js} +7 -7
- package/dist/{chunk-ggmwpwhf.js → chunk-y1krmnbv.js} +2 -2
- package/dist/{chunk-zgraq2y3.js → chunk-zw3gf6r5.js} +28 -70
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
FileSystem,
|
|
4
|
-
Path
|
|
5
|
-
} from "./chunk-t82w7459.js";
|
|
6
2
|
import {
|
|
7
3
|
isObject,
|
|
8
4
|
isUint8Array,
|
|
@@ -17,23 +13,27 @@ import {
|
|
|
17
13
|
isJsonObject,
|
|
18
14
|
decodeJsonString,
|
|
19
15
|
encodePrettyJsonString
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import"./chunk-
|
|
16
|
+
} from "./chunk-zw3gf6r5.js";
|
|
17
|
+
import"./chunk-q5w3v4k1.js";
|
|
18
|
+
import {
|
|
19
|
+
FileSystem,
|
|
20
|
+
Path
|
|
21
|
+
} from "./chunk-0h49y8gf.js";
|
|
22
22
|
import {
|
|
23
23
|
tomlTableHeader2,
|
|
24
24
|
tomlKeyPath2,
|
|
25
25
|
kitmanSkillEntry,
|
|
26
26
|
isPathWithin2
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-krqb80g6.js";
|
|
28
28
|
import {
|
|
29
29
|
instructionsStart,
|
|
30
30
|
instructionsEnd,
|
|
31
31
|
renderMcpServer,
|
|
32
32
|
materializeKitSetup,
|
|
33
33
|
tomlInline
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import"./chunk-
|
|
36
|
-
import"./chunk-
|
|
34
|
+
} from "./chunk-dtkejy3r.js";
|
|
35
|
+
import"./chunk-p8fhxfa0.js";
|
|
36
|
+
import"./chunk-mtkstrh3.js";
|
|
37
37
|
|
|
38
38
|
// packages/agent-runtime/src/kit-setup-sync.ts
|
|
39
39
|
class KitSyncError extends TaggedError("KitSyncError") {
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
opaqueTunnelRefusal2,
|
|
5
5
|
isOpaqueConnectReason2,
|
|
6
6
|
runSrtStep2
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import"./chunk-
|
|
9
|
-
import"./chunk-
|
|
7
|
+
} from "./chunk-y1krmnbv.js";
|
|
8
|
+
import"./chunk-q5w3v4k1.js";
|
|
9
|
+
import"./chunk-zw3gf6r5.js";
|
|
10
10
|
export {
|
|
11
11
|
isOpaqueConnectReason2 as isOpaqueConnectReason,
|
|
12
12
|
opaqueTunnelRefusal2 as opaqueTunnelRefusal,
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
gen,
|
|
7
7
|
flatMap3,
|
|
8
8
|
provideContext2
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-zw3gf6r5.js";
|
|
10
10
|
import {
|
|
11
11
|
runForEach
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-0h49y8gf.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-dtkejy3r.js";
|
|
23
23
|
import {
|
|
24
24
|
layerJson,
|
|
25
|
-
|
|
25
|
+
make4,
|
|
26
26
|
withHeaders,
|
|
27
27
|
layerProtocolSocket
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-5an78wy8.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)),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-mtkstrh3.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-dtkejy3r.js";
|
|
16
|
+
import"./chunk-0h49y8gf.js";
|
|
17
|
+
import"./chunk-zw3gf6r5.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,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,8 @@ import {
|
|
|
40
32
|
toCodecJson,
|
|
41
33
|
Json,
|
|
42
34
|
encodePrettyJsonString
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import"./chunk-
|
|
35
|
+
} from "./chunk-zw3gf6r5.js";
|
|
36
|
+
import"./chunk-q5w3v4k1.js";
|
|
45
37
|
import {
|
|
46
38
|
SecureRandom,
|
|
47
39
|
layerWebCrypto,
|
|
@@ -53,23 +45,31 @@ import {
|
|
|
53
45
|
layer4,
|
|
54
46
|
kitmanMcpServer,
|
|
55
47
|
RunnerRpcProtocolVersion
|
|
56
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-dtkejy3r.js";
|
|
49
|
+
import {
|
|
50
|
+
decodeText,
|
|
51
|
+
mkString,
|
|
52
|
+
FileSystem,
|
|
53
|
+
Path,
|
|
54
|
+
withDefault,
|
|
55
|
+
String2
|
|
56
|
+
} from "./chunk-0h49y8gf.js";
|
|
57
57
|
import {
|
|
58
58
|
Packument,
|
|
59
59
|
tarballMatches
|
|
60
|
-
} from "./chunk-
|
|
61
|
-
import"./chunk-
|
|
60
|
+
} from "./chunk-p8fhxfa0.js";
|
|
61
|
+
import"./chunk-h7mnz0w3.js";
|
|
62
62
|
import {
|
|
63
63
|
AgentDeclaration,
|
|
64
64
|
KitDeclarations,
|
|
65
65
|
describeFlag,
|
|
66
66
|
Described
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-xzfj61cp.js";
|
|
68
68
|
import {
|
|
69
69
|
ChildProcessSpawner,
|
|
70
|
-
|
|
71
|
-
} from "./chunk-
|
|
72
|
-
import"./chunk-
|
|
70
|
+
make3
|
|
71
|
+
} from "./chunk-mtkstrh3.js";
|
|
72
|
+
import"./chunk-5an78wy8.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)),
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
FileSystem,
|
|
4
|
-
Path,
|
|
5
|
-
optionalEnv,
|
|
6
|
-
tempDirectoryScoped
|
|
7
|
-
} from "./chunk-t82w7459.js";
|
|
8
2
|
import {
|
|
9
3
|
Reference,
|
|
10
4
|
TaggedError,
|
|
@@ -31,15 +25,21 @@ import {
|
|
|
31
25
|
isString2,
|
|
32
26
|
encodePrettyJsonString,
|
|
33
27
|
decodeJsonStringSync
|
|
34
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-zw3gf6r5.js";
|
|
29
|
+
import {
|
|
30
|
+
FileSystem,
|
|
31
|
+
Path,
|
|
32
|
+
optionalEnv,
|
|
33
|
+
tempDirectoryScoped
|
|
34
|
+
} from "./chunk-0h49y8gf.js";
|
|
35
35
|
import {
|
|
36
36
|
AgentHarnessIds,
|
|
37
37
|
sha2562,
|
|
38
38
|
runCommand2
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-dtkejy3r.js";
|
|
40
40
|
import {
|
|
41
41
|
NpmRegistry
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-p8fhxfa0.js";
|
|
43
43
|
|
|
44
44
|
// packages/agent-runtime/src/config-convergence.ts
|
|
45
45
|
var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
|
|
@@ -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-zw3gf6r5.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-0h49y8gf.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 };
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
isFailure2,
|
|
42
42
|
hasInterrupts,
|
|
43
43
|
makeUnsafe5,
|
|
44
|
-
|
|
44
|
+
make16,
|
|
45
45
|
_await,
|
|
46
46
|
fail5,
|
|
47
47
|
isDoneUnsafe,
|
|
@@ -168,53 +168,12 @@ import {
|
|
|
168
168
|
decodeJsonStringSync,
|
|
169
169
|
encodeUnknownJsonStringSync,
|
|
170
170
|
storable
|
|
171
|
-
} from "./chunk-
|
|
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";
|
|
171
|
+
} from "./chunk-zw3gf6r5.js";
|
|
213
172
|
import {
|
|
214
173
|
Id,
|
|
215
174
|
secretReference,
|
|
216
175
|
secretPlaceholder
|
|
217
|
-
} from "./chunk-
|
|
176
|
+
} from "./chunk-q5w3v4k1.js";
|
|
218
177
|
import {
|
|
219
178
|
currentTimeMillis,
|
|
220
179
|
SecureRandom,
|
|
@@ -288,7 +247,48 @@ import {
|
|
|
288
247
|
installCommand,
|
|
289
248
|
checkServicesFile,
|
|
290
249
|
checkServices
|
|
291
|
-
} from "./chunk-
|
|
250
|
+
} from "./chunk-dtkejy3r.js";
|
|
251
|
+
import {
|
|
252
|
+
join,
|
|
253
|
+
interrupt,
|
|
254
|
+
unbounded,
|
|
255
|
+
publishUnsafe,
|
|
256
|
+
unbounded2,
|
|
257
|
+
offer,
|
|
258
|
+
makeUnsafe3,
|
|
259
|
+
make11,
|
|
260
|
+
fromQueue,
|
|
261
|
+
fromPubSub,
|
|
262
|
+
map2,
|
|
263
|
+
filter,
|
|
264
|
+
decodeText,
|
|
265
|
+
encodeText,
|
|
266
|
+
splitLines,
|
|
267
|
+
run,
|
|
268
|
+
runHead,
|
|
269
|
+
runForEach,
|
|
270
|
+
FileSystem,
|
|
271
|
+
Path,
|
|
272
|
+
embeddedFile,
|
|
273
|
+
extractEmbeddedFile,
|
|
274
|
+
optionalEnv,
|
|
275
|
+
operatorConfigHome,
|
|
276
|
+
tempDirectoryScoped,
|
|
277
|
+
harnessesUnsupportedInSrt2,
|
|
278
|
+
compiled2,
|
|
279
|
+
pinnedSrtCommand2,
|
|
280
|
+
pinnedSrtStepCommand2,
|
|
281
|
+
runSrtCli2,
|
|
282
|
+
kitmanCacheDirectory2,
|
|
283
|
+
srtSettings2,
|
|
284
|
+
srtCacheEnvironment2,
|
|
285
|
+
srtInheritedEnv2,
|
|
286
|
+
inheritedEnvironment2,
|
|
287
|
+
withOnlyEnvironment2,
|
|
288
|
+
writeSrtSettings2,
|
|
289
|
+
srtStepArgv2,
|
|
290
|
+
srtArgv2
|
|
291
|
+
} from "./chunk-0h49y8gf.js";
|
|
292
292
|
import {
|
|
293
293
|
writeAgentEnvironmentConfigFile2,
|
|
294
294
|
readManifestSkillPaths2,
|
|
@@ -304,8 +304,8 @@ import {
|
|
|
304
304
|
applyAgentEnvironmentMaterialization2,
|
|
305
305
|
isPathWithin2,
|
|
306
306
|
skillIdentity2
|
|
307
|
-
} from "./chunk-
|
|
308
|
-
import"./chunk-
|
|
307
|
+
} from "./chunk-krqb80g6.js";
|
|
308
|
+
import"./chunk-p8fhxfa0.js";
|
|
309
309
|
import {
|
|
310
310
|
egressAllowed,
|
|
311
311
|
writeSecretRegistry,
|
|
@@ -315,7 +315,7 @@ import {
|
|
|
315
315
|
secretFilter2,
|
|
316
316
|
opaqueTunnelRefusal2,
|
|
317
317
|
isOpaqueConnectReason2
|
|
318
|
-
} from "./chunk-
|
|
318
|
+
} from "./chunk-y1krmnbv.js";
|
|
319
319
|
import {
|
|
320
320
|
sliceBytes2,
|
|
321
321
|
maxLineBytes2,
|
|
@@ -323,23 +323,23 @@ import {
|
|
|
323
323
|
decodedOption2,
|
|
324
324
|
decoded2,
|
|
325
325
|
readOpencode2
|
|
326
|
-
} from "./chunk-
|
|
326
|
+
} from "./chunk-cbpb2rww.js";
|
|
327
327
|
import {
|
|
328
328
|
uploadRunFile,
|
|
329
329
|
programLease,
|
|
330
330
|
rpcRunFiles,
|
|
331
331
|
programHostsEnv,
|
|
332
332
|
undeclaredHostsEnv
|
|
333
|
-
} from "./chunk-
|
|
334
|
-
import"./chunk-
|
|
333
|
+
} from "./chunk-xzfj61cp.js";
|
|
334
|
+
import"./chunk-h7mnz0w3.js";
|
|
335
335
|
import {
|
|
336
336
|
nextInt
|
|
337
|
-
} from "./chunk-
|
|
337
|
+
} from "./chunk-gq7y5v3e.js";
|
|
338
338
|
import {
|
|
339
339
|
ChildProcessSpawner,
|
|
340
|
-
|
|
341
|
-
} from "./chunk-
|
|
342
|
-
import"./chunk-
|
|
340
|
+
make3
|
|
341
|
+
} from "./chunk-mtkstrh3.js";
|
|
342
|
+
import"./chunk-5an78wy8.js";
|
|
343
343
|
|
|
344
344
|
// packages/core/src/sync-kit.ts
|
|
345
345
|
import { createHash } from "crypto";
|
|
@@ -7037,7 +7037,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
|
|
|
7037
7037
|
const input = yield* unbounded2();
|
|
7038
7038
|
const pending = new Map;
|
|
7039
7039
|
let lastId = 0;
|
|
7040
|
-
const handle = yield* spawner.spawn(
|
|
7040
|
+
const handle = yield* spawner.spawn(make3(binary, ["app-server"], {
|
|
7041
7041
|
cwd: env.home,
|
|
7042
7042
|
extendEnv: true,
|
|
7043
7043
|
env: { HOME: env.home, CODEX_HOME: env.codexHome },
|
|
@@ -7060,7 +7060,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
|
|
|
7060
7060
|
return {
|
|
7061
7061
|
request: (method, params) => gen(function* () {
|
|
7062
7062
|
const id = ++lastId;
|
|
7063
|
-
const deferred = yield*
|
|
7063
|
+
const deferred = yield* make16();
|
|
7064
7064
|
pending.set(id, deferred);
|
|
7065
7065
|
yield* send({ id, method, params });
|
|
7066
7066
|
return yield* _await(deferred).pipe(mapError2((error) => new CodexAppServerFailed({ reason: `${method}: ${error.message}` })));
|
|
@@ -7200,10 +7200,10 @@ var handshake = [
|
|
|
7200
7200
|
`).join("");
|
|
7201
7201
|
var kitmanMcpPreflight = (mcp) => gen(function* () {
|
|
7202
7202
|
const spawner = yield* ChildProcessSpawner;
|
|
7203
|
-
const server = yield* spawner.spawn(
|
|
7203
|
+
const server = yield* spawner.spawn(make3(mcp.command, [...mcp.args], {
|
|
7204
7204
|
extendEnv: true,
|
|
7205
7205
|
env: mcp.env,
|
|
7206
|
-
stdin: { stream:
|
|
7206
|
+
stdin: { stream: make11(new TextEncoder().encode(handshake)), endOnDone: false },
|
|
7207
7207
|
stderr: "ignore"
|
|
7208
7208
|
}));
|
|
7209
7209
|
const reply = yield* server.stdout.pipe(decodeText, splitLines, map2((line) => getOrUndefined(decodeJsonStringOption(line))), filter((message) => isJsonObject(message) && message.id === 2), runHead);
|
|
@@ -7276,8 +7276,8 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
|
|
|
7276
7276
|
};
|
|
7277
7277
|
const exitCode = sandbox === undefined ? yield* gen(function* () {
|
|
7278
7278
|
const spawner = yield* ChildProcessSpawner;
|
|
7279
|
-
const handle = yield* spawner.spawn(
|
|
7280
|
-
stdin:
|
|
7279
|
+
const handle = yield* spawner.spawn(make3(input.bun ?? process.execPath, [file], {
|
|
7280
|
+
stdin: make11(new TextEncoder().encode(stdin)),
|
|
7281
7281
|
stdout: "inherit",
|
|
7282
7282
|
stderr: "inherit",
|
|
7283
7283
|
extendEnv: false,
|
|
@@ -594,7 +594,7 @@ kitman run drift <run> --dismiss <constraint> --reason "fixtures, not released m
|
|
|
594
594
|
path: "loop-operations#tokens",
|
|
595
595
|
level: 2,
|
|
596
596
|
link: "https://kitman.sh/knowledge/docs/loop-operations#tokens",
|
|
597
|
-
text: "## Tokens\n\nEach attempt of an agent Step records the input, output and cached tokens its Harness reported in its session: Claude Code, Codex and Pi do. Input counts tokens read fresh or written to the cache; cached counts tokens read from it. Claude Code's subagents write their own session files, and their tokens count with the attempt that ran them. An attempt parked on a Question and resumed adds both parts, and one that ran past its time budget or whose Run was stopped still records what its Harness spent. An attempt whose Harness wrote no usage records that it reported none. `runs.show` and `kitman run show` give the Run's total and each Step's. A Child Run shows its own."
|
|
597
|
+
text: "## Tokens\n\nEach attempt of an agent Step records the input, output and cached tokens its Harness reported in its session: Claude Code, Codex and Pi do. Input counts tokens read fresh or written to the cache; cached counts tokens read from it. Claude Code's subagents write their own session files, and their tokens count with the attempt that ran them. An attempt parked on a Question and resumed adds both parts, and one that ran past its time budget or whose Run was stopped still records what its Harness spent. An attempt whose Harness wrote no usage records that it reported none. `runs.show` and `kitman run show` give the Run's total and each Step's. `runs.show` also gives the Harness each started attempt launched on and the model its launch named; an attempt left to its Harness's default model gives no model. A Child Run shows its own."
|
|
598
598
|
},
|
|
599
599
|
{
|
|
600
600
|
title: "Loop Operations Guide \u203A Automatic starts",
|
|
@@ -1555,7 +1555,7 @@ var pathOfLink = (link) => {
|
|
|
1555
1555
|
return page === null ? link : page[1] || "index";
|
|
1556
1556
|
};
|
|
1557
1557
|
var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
|
|
1558
|
-
var pinnedLink2 = (link, version = "0.13.
|
|
1558
|
+
var pinnedLink2 = (link, version = "0.13.11") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
|
|
1559
1559
|
var pageOf = (path) => path.split("#")[0];
|
|
1560
1560
|
var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
|
|
1561
1561
|
function excerpt(text, queryTerms) {
|
|
@@ -24,11 +24,11 @@ import {
|
|
|
24
24
|
Record,
|
|
25
25
|
Int,
|
|
26
26
|
fromJsonString
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-zw3gf6r5.js";
|
|
28
28
|
import {
|
|
29
29
|
withDefault,
|
|
30
30
|
String2
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-0h49y8gf.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-dtkejy3r.js";
|
|
43
43
|
|
|
44
44
|
// packages/core/src/npm-registry.ts
|
|
45
45
|
var KitManifest = Struct({
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
isMinLength,
|
|
19
19
|
isMaxLength,
|
|
20
20
|
FiniteFromString
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-zw3gf6r5.js";
|
|
22
22
|
|
|
23
23
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/JsonSchema.js
|
|
24
24
|
var PRE_2020_TO_2020_COLLISIONS = ["$anchor", "$defs", "$dynamicAnchor", "$dynamicRef", "$vocabulary", "contentSchema", "dependentRequired", "dependentSchemas", "maxContains", "minContains", "prefixItems", "unevaluatedItems", "unevaluatedProperties"];
|