@kitman-sh/cli 0.10.92 → 0.10.94
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-kd3y2tq5.js → chunk-15w92pn6.js} +19 -19
- package/dist/{chunk-63mhk3ft.js → chunk-2kr43ps6.js} +108 -107
- package/dist/{chunk-w0sehmpd.js → chunk-3r7ahnwy.js} +60 -14
- package/dist/{chunk-vzhkp7xw.js → chunk-4psvc86s.js} +4 -4
- package/dist/{chunk-bjdn0pww.js → chunk-6aa8y66v.js} +4 -4
- package/dist/{chunk-vsb31vgf.js → chunk-8tq7n7wc.js} +5 -5
- package/dist/{chunk-c3k32vw4.js → chunk-a244myqw.js} +1 -1
- package/dist/{chunk-yzmyy4vs.js → chunk-abf4m4b2.js} +5 -5
- package/dist/{chunk-dstm8aen.js → chunk-ampzxrqe.js} +28 -70
- package/dist/{chunk-k4fvnphp.js → chunk-bk3dpjxq.js} +1 -1
- package/dist/{chunk-5qmjv3n4.js → chunk-c9wzakrx.js} +8 -8
- package/dist/{chunk-5s6e82wd.js → chunk-dh3108wk.js} +5 -5
- package/dist/{chunk-mbqeakm1.js → chunk-et6qa95h.js} +1 -1
- package/dist/{chunk-hsf2sj69.js → chunk-fv6kgtze.js} +2 -2
- package/dist/{chunk-9m9cv82t.js → chunk-g3r5xp0t.js} +2 -2
- package/dist/{chunk-a7zc3zf8.js → chunk-mcpesyz2.js} +3 -3
- package/dist/{chunk-0cbdb51w.js → chunk-q3nygncv.js} +7 -7
- package/dist/{chunk-m4ac8xka.js → chunk-qacvrg7j.js} +7 -7
- package/dist/{chunk-rmsm8vnc.js → chunk-rdv42ygn.js} +4 -4
- package/dist/{chunk-8zhjaef4.js → chunk-s3qgchay.js} +37 -29
- package/dist/{chunk-2ndnvcp3.js → chunk-t7ncjd6s.js} +8 -8
- package/dist/{chunk-vzynb4qs.js → chunk-tpdcq44c.js} +25 -25
- package/dist/{chunk-25q7mg6g.js → chunk-vjcn82g3.js} +17 -17
- package/dist/{chunk-cb4z73yk.js → chunk-ya8wk3pk.js} +29 -23
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
runnerRpcUrl2,
|
|
5
5
|
makeRunnerRpcClient2,
|
|
6
6
|
makeProgramRpcClient2
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import"./chunk-
|
|
9
|
-
import"./chunk-
|
|
10
|
-
import"./chunk-
|
|
11
|
-
import"./chunk-
|
|
12
|
-
import"./chunk-
|
|
13
|
-
import"./chunk-
|
|
7
|
+
} from "./chunk-qacvrg7j.js";
|
|
8
|
+
import"./chunk-8tq7n7wc.js";
|
|
9
|
+
import"./chunk-2kr43ps6.js";
|
|
10
|
+
import"./chunk-et6qa95h.js";
|
|
11
|
+
import"./chunk-bk3dpjxq.js";
|
|
12
|
+
import"./chunk-vjcn82g3.js";
|
|
13
|
+
import"./chunk-ampzxrqe.js";
|
|
14
14
|
export {
|
|
15
15
|
makeProgramRpcClient2 as makeProgramRpcClient,
|
|
16
16
|
makeRunnerRpcClient2 as makeRunnerRpcClient,
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
gen,
|
|
7
7
|
flatMap3,
|
|
8
8
|
provideContext2
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ampzxrqe.js";
|
|
10
10
|
import {
|
|
11
11
|
runForEach
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-vjcn82g3.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-2kr43ps6.js";
|
|
23
23
|
import {
|
|
24
24
|
layerJson,
|
|
25
|
-
|
|
25
|
+
make4,
|
|
26
26
|
withHeaders,
|
|
27
27
|
layerProtocolSocket
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-8tq7n7wc.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)),
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
opaqueTunnelRefusal2,
|
|
5
5
|
isOpaqueConnectReason2,
|
|
6
6
|
runSrtStep2
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import"./chunk-
|
|
9
|
-
import"./chunk-
|
|
10
|
-
import"./chunk-
|
|
7
|
+
} from "./chunk-fv6kgtze.js";
|
|
8
|
+
import"./chunk-et6qa95h.js";
|
|
9
|
+
import"./chunk-bk3dpjxq.js";
|
|
10
|
+
import"./chunk-ampzxrqe.js";
|
|
11
11
|
export {
|
|
12
12
|
isOpaqueConnectReason2 as isOpaqueConnectReason,
|
|
13
13
|
opaqueTunnelRefusal2 as opaqueTunnelRefusal,
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
isObject,
|
|
7
7
|
isJsonObject,
|
|
8
8
|
isString
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-bk3dpjxq.js";
|
|
10
10
|
import {
|
|
11
11
|
pipeArguments,
|
|
12
12
|
dual,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
isFailure2,
|
|
48
48
|
hasInterrupts,
|
|
49
49
|
makeUnsafe5,
|
|
50
|
-
|
|
50
|
+
make16,
|
|
51
51
|
_await,
|
|
52
52
|
fail5,
|
|
53
53
|
isDoneUnsafe,
|
|
@@ -167,12 +167,12 @@ import {
|
|
|
167
167
|
encodePrettyJsonString,
|
|
168
168
|
decodeJsonStringSync,
|
|
169
169
|
encodeUnknownJsonStringSync
|
|
170
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-ampzxrqe.js";
|
|
171
171
|
import {
|
|
172
172
|
Id,
|
|
173
173
|
secretReference,
|
|
174
174
|
secretPlaceholder
|
|
175
|
-
} from "./chunk-
|
|
175
|
+
} from "./chunk-et6qa95h.js";
|
|
176
176
|
import {
|
|
177
177
|
currentTimeMillis,
|
|
178
178
|
SecureRandom,
|
|
@@ -245,7 +245,7 @@ import {
|
|
|
245
245
|
installCommand,
|
|
246
246
|
checkServicesFile,
|
|
247
247
|
checkServices
|
|
248
|
-
} from "./chunk-
|
|
248
|
+
} from "./chunk-2kr43ps6.js";
|
|
249
249
|
import {
|
|
250
250
|
join,
|
|
251
251
|
interrupt,
|
|
@@ -254,7 +254,7 @@ import {
|
|
|
254
254
|
unbounded2,
|
|
255
255
|
offer,
|
|
256
256
|
makeUnsafe3,
|
|
257
|
-
|
|
257
|
+
make11,
|
|
258
258
|
fromQueue,
|
|
259
259
|
fromPubSub,
|
|
260
260
|
map2,
|
|
@@ -285,7 +285,7 @@ import {
|
|
|
285
285
|
writeSrtSettings2,
|
|
286
286
|
srtStepArgv2,
|
|
287
287
|
srtArgv2
|
|
288
|
-
} from "./chunk-
|
|
288
|
+
} from "./chunk-vjcn82g3.js";
|
|
289
289
|
import {
|
|
290
290
|
writeAgentEnvironmentConfigFile2,
|
|
291
291
|
readManifestSkillPaths2,
|
|
@@ -301,8 +301,8 @@ import {
|
|
|
301
301
|
applyAgentEnvironmentMaterialization2,
|
|
302
302
|
isPathWithin2,
|
|
303
303
|
skillIdentity2
|
|
304
|
-
} from "./chunk-
|
|
305
|
-
import"./chunk-
|
|
304
|
+
} from "./chunk-dh3108wk.js";
|
|
305
|
+
import"./chunk-mcpesyz2.js";
|
|
306
306
|
import {
|
|
307
307
|
egressAllowed,
|
|
308
308
|
writeSecretRegistry,
|
|
@@ -312,7 +312,7 @@ import {
|
|
|
312
312
|
secretFilter2,
|
|
313
313
|
opaqueTunnelRefusal2,
|
|
314
314
|
isOpaqueConnectReason2
|
|
315
|
-
} from "./chunk-
|
|
315
|
+
} from "./chunk-fv6kgtze.js";
|
|
316
316
|
import {
|
|
317
317
|
sliceBytes2,
|
|
318
318
|
maxLineBytes2,
|
|
@@ -320,23 +320,23 @@ import {
|
|
|
320
320
|
decodedOption2,
|
|
321
321
|
decoded2,
|
|
322
322
|
readOpencode2
|
|
323
|
-
} from "./chunk-
|
|
323
|
+
} from "./chunk-t7ncjd6s.js";
|
|
324
324
|
import {
|
|
325
325
|
uploadRunFile,
|
|
326
326
|
programLease,
|
|
327
327
|
rpcRunFiles,
|
|
328
328
|
programHostsEnv,
|
|
329
329
|
undeclaredHostsEnv
|
|
330
|
-
} from "./chunk-
|
|
331
|
-
import"./chunk-
|
|
330
|
+
} from "./chunk-4psvc86s.js";
|
|
331
|
+
import"./chunk-qacvrg7j.js";
|
|
332
332
|
import {
|
|
333
333
|
nextInt
|
|
334
|
-
} from "./chunk-
|
|
334
|
+
} from "./chunk-a244myqw.js";
|
|
335
335
|
import {
|
|
336
336
|
ChildProcessSpawner,
|
|
337
|
-
|
|
338
|
-
} from "./chunk-
|
|
339
|
-
import"./chunk-
|
|
337
|
+
make3
|
|
338
|
+
} from "./chunk-3r7ahnwy.js";
|
|
339
|
+
import"./chunk-8tq7n7wc.js";
|
|
340
340
|
|
|
341
341
|
// packages/core/src/sync-kit.ts
|
|
342
342
|
import { createHash } from "crypto";
|
|
@@ -5894,13 +5894,16 @@ var mergeTarget = (worktree, target) => gen(function* () {
|
|
|
5894
5894
|
const targetCommit = (yield* git("rev-parse", "--verify", `origin/${target}^{commit}`)).trim();
|
|
5895
5895
|
const merged = yield* exit(git("merge", "--no-edit", "-m", `Merge remote-tracking branch 'origin/${target}'`, targetCommit));
|
|
5896
5896
|
const subject = `Kitman's merge of \`origin/${target}\``;
|
|
5897
|
-
if (isSuccess2(merged))
|
|
5897
|
+
if (isSuccess2(merged)) {
|
|
5898
|
+
const clean = (yield* git("rev-parse", "HEAD")) === before ? "up_to_date" : "merged";
|
|
5898
5899
|
return {
|
|
5899
5900
|
from: before.trim(),
|
|
5900
5901
|
target: targetCommit,
|
|
5901
5902
|
conflicted: [],
|
|
5902
|
-
|
|
5903
|
+
clean,
|
|
5904
|
+
note: clean === "up_to_date" ? `${subject}: already up to date.` : `${subject}: merged cleanly and committed.`
|
|
5903
5905
|
};
|
|
5906
|
+
}
|
|
5904
5907
|
const conflicted = (yield* git("diff", "--name-only", "-z", "--diff-filter=U")).split("\x00").filter(Boolean);
|
|
5905
5908
|
if (conflicted.length === 0)
|
|
5906
5909
|
return yield* failCause3(merged.cause);
|
|
@@ -6194,10 +6197,15 @@ var stepAttempt = (input, resending) => (work) => gen(function* () {
|
|
|
6194
6197
|
conflicted: merge.conflicted,
|
|
6195
6198
|
...merge.automerged === undefined ? undefined : { automerged: merge.automerged }
|
|
6196
6199
|
}).pipe(catch_((error) => as(logWarning("runner_catch_up_unread", error.message), undefined)));
|
|
6197
|
-
const
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6200
|
+
const completed = {
|
|
6201
|
+
status: "completed",
|
|
6202
|
+
revision,
|
|
6203
|
+
...boundary === undefined ? undefined : { boundary },
|
|
6204
|
+
...catchUp === undefined ? undefined : { catchUp },
|
|
6205
|
+
...merge === undefined ? undefined : { syncedTarget: merge.target },
|
|
6206
|
+
...merge?.clean === undefined ? undefined : { cleanSync: merge.clean }
|
|
6207
|
+
};
|
|
6208
|
+
return completed;
|
|
6201
6209
|
}).pipe(scoped);
|
|
6202
6210
|
var agentStepExecutor = (input) => stepAttempt(input, new Map);
|
|
6203
6211
|
var checkpointRef = (work) => `refs/kitman/checkpoints/${work.runId}/${work.id}`;
|
|
@@ -6767,7 +6775,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
|
|
|
6767
6775
|
const input = yield* unbounded2();
|
|
6768
6776
|
const pending = new Map;
|
|
6769
6777
|
let lastId = 0;
|
|
6770
|
-
const handle = yield* spawner.spawn(
|
|
6778
|
+
const handle = yield* spawner.spawn(make3(binary, ["app-server"], {
|
|
6771
6779
|
cwd: env.home,
|
|
6772
6780
|
extendEnv: true,
|
|
6773
6781
|
env: { HOME: env.home, CODEX_HOME: env.codexHome },
|
|
@@ -6790,7 +6798,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
|
|
|
6790
6798
|
return {
|
|
6791
6799
|
request: (method, params) => gen(function* () {
|
|
6792
6800
|
const id = ++lastId;
|
|
6793
|
-
const deferred = yield*
|
|
6801
|
+
const deferred = yield* make16();
|
|
6794
6802
|
pending.set(id, deferred);
|
|
6795
6803
|
yield* send({ id, method, params });
|
|
6796
6804
|
return yield* _await(deferred).pipe(mapError2((error) => new CodexAppServerFailed({ reason: `${method}: ${error.message}` })));
|
|
@@ -6930,10 +6938,10 @@ var handshake = [
|
|
|
6930
6938
|
`).join("");
|
|
6931
6939
|
var kitmanMcpPreflight = (mcp) => gen(function* () {
|
|
6932
6940
|
const spawner = yield* ChildProcessSpawner;
|
|
6933
|
-
const server = yield* spawner.spawn(
|
|
6941
|
+
const server = yield* spawner.spawn(make3(mcp.command, [...mcp.args], {
|
|
6934
6942
|
extendEnv: true,
|
|
6935
6943
|
env: mcp.env,
|
|
6936
|
-
stdin: { stream:
|
|
6944
|
+
stdin: { stream: make11(new TextEncoder().encode(handshake)), endOnDone: false },
|
|
6937
6945
|
stderr: "ignore"
|
|
6938
6946
|
}));
|
|
6939
6947
|
const reply = yield* server.stdout.pipe(decodeText, splitLines, map2((line) => getOrUndefined(decodeJsonStringOption(line))), filter((message) => isJsonObject(message) && message.id === 2), runHead);
|
|
@@ -7006,8 +7014,8 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
|
|
|
7006
7014
|
};
|
|
7007
7015
|
const exitCode = sandbox === undefined ? yield* gen(function* () {
|
|
7008
7016
|
const spawner = yield* ChildProcessSpawner;
|
|
7009
|
-
const handle = yield* spawner.spawn(
|
|
7010
|
-
stdin:
|
|
7017
|
+
const handle = yield* spawner.spawn(make3(input.bun ?? process.execPath, [file], {
|
|
7018
|
+
stdin: make11(new TextEncoder().encode(stdin)),
|
|
7011
7019
|
stdout: "inherit",
|
|
7012
7020
|
stderr: "inherit",
|
|
7013
7021
|
extendEnv: false,
|
|
@@ -22,21 +22,21 @@ import {
|
|
|
22
22
|
NullOr,
|
|
23
23
|
Finite,
|
|
24
24
|
encodeUnknownJsonStringSync
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-ampzxrqe.js";
|
|
26
26
|
import {
|
|
27
27
|
isNumber,
|
|
28
28
|
isJsonObject,
|
|
29
29
|
isString
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-bk3dpjxq.js";
|
|
31
31
|
import {
|
|
32
|
-
|
|
32
|
+
make11,
|
|
33
33
|
runForEach,
|
|
34
34
|
compiled2
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-vjcn82g3.js";
|
|
36
36
|
import {
|
|
37
37
|
ChildProcessSpawner,
|
|
38
|
-
|
|
39
|
-
} from "./chunk-
|
|
38
|
+
make3
|
|
39
|
+
} from "./chunk-3r7ahnwy.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: {},
|