@kitman-sh/cli 0.10.92 → 0.10.93
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-cb4z73yk.js → chunk-mjn42bxn.js} +21 -21
- 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/index.js +4 -4
- package/package.json +1 -1
|
@@ -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-ampzxrqe.js";
|
|
89
89
|
import {
|
|
90
90
|
tap,
|
|
91
91
|
mapError,
|
|
@@ -97,7 +97,7 @@ import {
|
|
|
97
97
|
withDefault,
|
|
98
98
|
option,
|
|
99
99
|
String2
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-vjcn82g3.js";
|
|
101
101
|
import {
|
|
102
102
|
currentTimeMillis,
|
|
103
103
|
SecureRandom,
|
|
@@ -135,7 +135,7 @@ import {
|
|
|
135
135
|
digestSha256,
|
|
136
136
|
sha256Hasher,
|
|
137
137
|
raw,
|
|
138
|
-
|
|
138
|
+
make5,
|
|
139
139
|
get,
|
|
140
140
|
put,
|
|
141
141
|
HttpClient,
|
|
@@ -197,10 +197,10 @@ import {
|
|
|
197
197
|
harnessNames,
|
|
198
198
|
herdrRunnerCapabilities2,
|
|
199
199
|
declaredChecks
|
|
200
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-2kr43ps6.js";
|
|
201
201
|
import {
|
|
202
202
|
Id
|
|
203
|
-
} from "./chunk-
|
|
203
|
+
} from "./chunk-et6qa95h.js";
|
|
204
204
|
import {
|
|
205
205
|
toJsonValue,
|
|
206
206
|
isOneOf,
|
|
@@ -210,11 +210,11 @@ import {
|
|
|
210
210
|
isObject,
|
|
211
211
|
isJsonObject,
|
|
212
212
|
isString
|
|
213
|
-
} from "./chunk-
|
|
213
|
+
} from "./chunk-bk3dpjxq.js";
|
|
214
214
|
import {
|
|
215
215
|
ChildProcessSpawner,
|
|
216
|
-
|
|
217
|
-
} from "./chunk-
|
|
216
|
+
make3
|
|
217
|
+
} from "./chunk-3r7ahnwy.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-6aa8y66v.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-6aa8y66v.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-c9wzakrx.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.93";
|
|
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-s3qgchay.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-q3nygncv.js"));
|
|
2781
2781
|
return yield* makeRunnerRpcClient({
|
|
2782
2782
|
runnerId: options.runnerId,
|
|
2783
2783
|
bearer: options.bearer,
|
|
@@ -2980,7 +2980,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
2980
2980
|
});
|
|
2981
2981
|
const checkouts = runCheckouts(path.join(runnerRootDir, ".kitman"), rpc.gitCredential);
|
|
2982
2982
|
const platform = yield* context();
|
|
2983
|
-
const updated = yield*
|
|
2983
|
+
const updated = yield* make16();
|
|
2984
2984
|
const scope = yield* scope2;
|
|
2985
2985
|
yield* listenForSignals({
|
|
2986
2986
|
rpc,
|
|
@@ -3169,7 +3169,7 @@ function mcpCommand(args) {
|
|
|
3169
3169
|
if (command.action === "run") {
|
|
3170
3170
|
if (command.args.length > 0)
|
|
3171
3171
|
return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
|
|
3172
|
-
const { runMcpServerCommand } = yield* promise(() => import("./chunk-
|
|
3172
|
+
const { runMcpServerCommand } = yield* promise(() => import("./chunk-tpdcq44c.js"));
|
|
3173
3173
|
return yield* runMcpServerCommand({ flags: command.flags });
|
|
3174
3174
|
}
|
|
3175
3175
|
if (command.action !== "setup")
|
|
@@ -4380,9 +4380,9 @@ function claimCommand(args) {
|
|
|
4380
4380
|
}
|
|
4381
4381
|
});
|
|
4382
4382
|
}
|
|
4383
|
-
var KitWriter = map8(promise(() => import("./chunk-
|
|
4383
|
+
var KitWriter = map8(promise(() => import("./chunk-15w92pn6.js")), (build) => build.writeKit);
|
|
4384
4384
|
var KitBuilder = Reference("kitman/cli/KitBuilder", {
|
|
4385
|
-
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-
|
|
4385
|
+
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-15w92pn6.js")), (build) => build.buildKit(directory))
|
|
4386
4386
|
});
|
|
4387
4387
|
var uploadKit = (client, workspaceId, built) => gen(function* () {
|
|
4388
4388
|
yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
|
|
@@ -5140,7 +5140,7 @@ function downloadPresignedAsset(download, outputPath) {
|
|
|
5140
5140
|
return gen(function* () {
|
|
5141
5141
|
const fs = yield* FileSystem;
|
|
5142
5142
|
const failed = (cause) => new CliError({ message: `Asset download failed: ${String(cause)}` });
|
|
5143
|
-
const response = yield* send(
|
|
5143
|
+
const response = yield* send(make5(download.method)(download.url), failed);
|
|
5144
5144
|
if (response.status < 200 || response.status >= 300)
|
|
5145
5145
|
return yield* new CliError({ message: `Asset download failed with ${response.status}` });
|
|
5146
5146
|
const body = yield* response.arrayBuffer.pipe(mapError2((error) => failed(error.message)));
|
|
@@ -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: {},
|