@kitman-sh/cli 0.10.82 → 0.10.83
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-szf97jdk.js → chunk-1chta572.js} +17 -17
- package/dist/{chunk-d4atn90g.js → chunk-20rbya07.js} +31 -31
- package/dist/{chunk-tzz4fv17.js → chunk-292vjjdz.js} +1 -1
- package/dist/{chunk-xb70ys3n.js → chunk-2fqry6rd.js} +34 -177
- package/dist/{chunk-zzhewave.js → chunk-2rpwpzt5.js} +15 -15
- package/dist/{chunk-8p0psats.js → chunk-66fhj0c3.js} +12 -10
- package/dist/{chunk-by4t402z.js → chunk-6kt28g8r.js} +68 -27
- package/dist/{chunk-ky974pcr.js → chunk-72232jhj.js} +4 -4
- package/dist/{chunk-kgdppbdr.js → chunk-7bsf0fyh.js} +1 -6
- package/dist/{chunk-pkn6g975.js → chunk-7wag4s6j.js} +4 -4
- package/dist/{chunk-76ctrqm6.js → chunk-93vddjpx.js} +1 -1
- package/dist/{chunk-e8zm8z3a.js → chunk-999xbcaa.js} +6 -6
- package/dist/{chunk-jr1363cj.js → chunk-adqabkwv.js} +5 -5
- package/dist/{chunk-98sg1yyd.js → chunk-bjexx93x.js} +2 -2
- package/dist/{chunk-62565d52.js → chunk-by54dw1n.js} +2 -2
- package/dist/{chunk-a03wf71k.js → chunk-dzthc6th.js} +6 -6
- package/dist/{chunk-q767c0cv.js → chunk-hccw303w.js} +7 -7
- package/dist/{chunk-9zd52pda.js → chunk-mr30hj39.js} +5 -5
- package/dist/{chunk-q4cpages.js → chunk-ptp9p22x.js} +18 -18
- package/dist/{chunk-fq47a5yd.js → chunk-qnnsy306.js} +2 -2
- package/dist/{chunk-5my30s53.js → chunk-smnx6fad.js} +8 -8
- package/dist/{chunk-gn0v83as.js → chunk-tnqzvx55.js} +311 -146
- package/dist/{chunk-2mxpxw3j.js → chunk-xbyd16q3.js} +3 -3
- package/dist/{chunk-jbwk6k6m.js → chunk-xq4k0mgr.js} +60 -60
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -75,12 +75,8 @@ import {
|
|
|
75
75
|
toEquivalence,
|
|
76
76
|
toCodecJson,
|
|
77
77
|
Json
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-xq4k0mgr.js";
|
|
79
79
|
import {
|
|
80
|
-
guard
|
|
81
|
-
} from "./chunk-kgdppbdr.js";
|
|
82
|
-
import {
|
|
83
|
-
currentTimeMillis,
|
|
84
80
|
WebCrypto,
|
|
85
81
|
SafeJson,
|
|
86
82
|
AgentSandboxNetwork,
|
|
@@ -105,11 +101,15 @@ import {
|
|
|
105
101
|
KitDigest,
|
|
106
102
|
KitSetup,
|
|
107
103
|
RunnerRpcError
|
|
108
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-tnqzvx55.js";
|
|
109
105
|
import {
|
|
106
|
+
currentTimeMillis,
|
|
110
107
|
runForEach,
|
|
111
108
|
FileSystem
|
|
112
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-2fqry6rd.js";
|
|
110
|
+
import {
|
|
111
|
+
guard
|
|
112
|
+
} from "./chunk-7bsf0fyh.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");
|
|
@@ -757,6 +757,7 @@ var PipelineStatus = Struct({
|
|
|
757
757
|
runnerChecks: optionalKey(ArraySchema(String4)),
|
|
758
758
|
approved: optionalKey(String4),
|
|
759
759
|
repository: optionalKey(String4),
|
|
760
|
+
targetBranch: optionalKey(String4),
|
|
760
761
|
conflicts: optionalKey(Boolean2),
|
|
761
762
|
needsRebase: optionalKey(Boolean2),
|
|
762
763
|
target: optionalKey(Struct({ branch: String4, head: String4, jobs: ArraySchema(PipelineJob) }))
|
|
@@ -1012,10 +1013,11 @@ var merged = {
|
|
|
1012
1013
|
settled: ArraySchema(String4)
|
|
1013
1014
|
};
|
|
1014
1015
|
var SyncAnswer = Union([UpToDate, Struct(merged), Conflict]);
|
|
1016
|
+
var reported = { base: optionalKey(String4) };
|
|
1015
1017
|
var BaseSync = Union([
|
|
1016
|
-
UpToDate,
|
|
1017
|
-
Struct({ ...merged, catchUp: optionalKey(CatchUp) }),
|
|
1018
|
-
Conflict
|
|
1018
|
+
Struct({ ...UpToDate.fields, ...reported }),
|
|
1019
|
+
Struct({ ...merged, catchUp: optionalKey(CatchUp), ...reported }),
|
|
1020
|
+
Struct({ ...Conflict.fields, ...reported })
|
|
1019
1021
|
]);
|
|
1020
1022
|
// packages/sdk/src/loop/continuing.ts
|
|
1021
1023
|
var Continuing = Struct({
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
isObject,
|
|
7
7
|
isJsonObject,
|
|
8
8
|
isString
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-292vjjdz.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
|
+
make15,
|
|
50
50
|
_await,
|
|
51
51
|
fail5,
|
|
52
52
|
isDoneUnsafe,
|
|
@@ -165,14 +165,8 @@ import {
|
|
|
165
165
|
encodePrettyJsonString,
|
|
166
166
|
decodeJsonStringSync,
|
|
167
167
|
encodeUnknownJsonStringSync
|
|
168
|
-
} from "./chunk-
|
|
168
|
+
} from "./chunk-xq4k0mgr.js";
|
|
169
169
|
import {
|
|
170
|
-
Id,
|
|
171
|
-
secretReference,
|
|
172
|
-
secretPlaceholder
|
|
173
|
-
} from "./chunk-kgdppbdr.js";
|
|
174
|
-
import {
|
|
175
|
-
currentTimeMillis,
|
|
176
170
|
SecureRandom,
|
|
177
171
|
layerWebCrypto,
|
|
178
172
|
layer,
|
|
@@ -243,8 +237,9 @@ import {
|
|
|
243
237
|
installCommand,
|
|
244
238
|
checkServicesFile,
|
|
245
239
|
checkServices
|
|
246
|
-
} from "./chunk-
|
|
240
|
+
} from "./chunk-tnqzvx55.js";
|
|
247
241
|
import {
|
|
242
|
+
currentTimeMillis,
|
|
248
243
|
join,
|
|
249
244
|
interrupt,
|
|
250
245
|
unbounded,
|
|
@@ -252,7 +247,7 @@ import {
|
|
|
252
247
|
unbounded2,
|
|
253
248
|
offer,
|
|
254
249
|
makeUnsafe3,
|
|
255
|
-
|
|
250
|
+
make10,
|
|
256
251
|
fromQueue,
|
|
257
252
|
fromPubSub,
|
|
258
253
|
map2,
|
|
@@ -283,7 +278,7 @@ import {
|
|
|
283
278
|
writeSrtSettings2,
|
|
284
279
|
srtStepArgv2,
|
|
285
280
|
srtArgv2
|
|
286
|
-
} from "./chunk-
|
|
281
|
+
} from "./chunk-2fqry6rd.js";
|
|
287
282
|
import {
|
|
288
283
|
writeAgentEnvironmentConfigFile2,
|
|
289
284
|
readManifestSkillPaths2,
|
|
@@ -299,8 +294,8 @@ import {
|
|
|
299
294
|
applyAgentEnvironmentMaterialization2,
|
|
300
295
|
isPathWithin2,
|
|
301
296
|
skillIdentity2
|
|
302
|
-
} from "./chunk-
|
|
303
|
-
import"./chunk-
|
|
297
|
+
} from "./chunk-adqabkwv.js";
|
|
298
|
+
import"./chunk-xbyd16q3.js";
|
|
304
299
|
import {
|
|
305
300
|
egressAllowed,
|
|
306
301
|
writeSecretRegistry,
|
|
@@ -310,7 +305,7 @@ import {
|
|
|
310
305
|
secretFilter2,
|
|
311
306
|
opaqueTunnelRefusal2,
|
|
312
307
|
isOpaqueConnectReason2
|
|
313
|
-
} from "./chunk-
|
|
308
|
+
} from "./chunk-by54dw1n.js";
|
|
314
309
|
import {
|
|
315
310
|
sliceBytes2,
|
|
316
311
|
maxLineBytes2,
|
|
@@ -318,23 +313,28 @@ import {
|
|
|
318
313
|
decodedOption2,
|
|
319
314
|
decoded2,
|
|
320
315
|
readOpencode2
|
|
321
|
-
} from "./chunk-
|
|
316
|
+
} from "./chunk-999xbcaa.js";
|
|
322
317
|
import {
|
|
323
318
|
uploadRunFile,
|
|
324
319
|
programLease,
|
|
325
320
|
rpcRunFiles,
|
|
326
321
|
programHostsEnv,
|
|
327
322
|
undeclaredHostsEnv
|
|
328
|
-
} from "./chunk-
|
|
329
|
-
import"./chunk-
|
|
323
|
+
} from "./chunk-66fhj0c3.js";
|
|
324
|
+
import"./chunk-dzthc6th.js";
|
|
330
325
|
import {
|
|
331
326
|
nextInt
|
|
332
|
-
} from "./chunk-
|
|
327
|
+
} from "./chunk-93vddjpx.js";
|
|
333
328
|
import {
|
|
334
329
|
ChildProcessSpawner,
|
|
335
330
|
make3
|
|
336
|
-
} from "./chunk-
|
|
337
|
-
import"./chunk-
|
|
331
|
+
} from "./chunk-bjexx93x.js";
|
|
332
|
+
import"./chunk-ptp9p22x.js";
|
|
333
|
+
import {
|
|
334
|
+
Id,
|
|
335
|
+
secretReference,
|
|
336
|
+
secretPlaceholder
|
|
337
|
+
} from "./chunk-7bsf0fyh.js";
|
|
338
338
|
|
|
339
339
|
// packages/core/src/sync-kit.ts
|
|
340
340
|
import { createHash } from "crypto";
|
|
@@ -5660,11 +5660,13 @@ var automergedTree = (worktree, conflicted) => gen(function* () {
|
|
|
5660
5660
|
var mergeTarget = (worktree, target) => gen(function* () {
|
|
5661
5661
|
const git = (...args) => runCommand2("git", ["-C", worktree, ...gitIdentity, ...args]);
|
|
5662
5662
|
const before = yield* git("rev-parse", "HEAD");
|
|
5663
|
-
const
|
|
5663
|
+
const targetCommit = (yield* git("rev-parse", "--verify", `origin/${target}^{commit}`)).trim();
|
|
5664
|
+
const merged = yield* exit(git("merge", "--no-edit", "-m", `Merge remote-tracking branch 'origin/${target}'`, targetCommit));
|
|
5664
5665
|
const subject = `Kitman's merge of \`origin/${target}\``;
|
|
5665
5666
|
if (isSuccess2(merged))
|
|
5666
5667
|
return {
|
|
5667
5668
|
from: before.trim(),
|
|
5669
|
+
target: targetCommit,
|
|
5668
5670
|
conflicted: [],
|
|
5669
5671
|
note: (yield* git("rev-parse", "HEAD")) === before ? `${subject}: already up to date.` : `${subject}: merged cleanly and committed.`
|
|
5670
5672
|
};
|
|
@@ -5676,6 +5678,7 @@ var mergeTarget = (worktree, target) => gen(function* () {
|
|
|
5676
5678
|
const conflicts = [...marked.length === 0 ? [] : [`${list(marked)}: it holds conflict markers`], ...unmarked];
|
|
5677
5679
|
return {
|
|
5678
5680
|
from: before.trim(),
|
|
5681
|
+
target: targetCommit,
|
|
5679
5682
|
conflicted,
|
|
5680
5683
|
automerged: yield* automergedTree(worktree, conflicted),
|
|
5681
5684
|
note: [
|
|
@@ -5960,9 +5963,10 @@ var stepAttempt = (input, resending) => (work) => gen(function* () {
|
|
|
5960
5963
|
conflicted: merge.conflicted,
|
|
5961
5964
|
...merge.automerged === undefined ? undefined : { automerged: merge.automerged }
|
|
5962
5965
|
}).pipe(catch_((error) => as(logWarning("runner_catch_up_unread", error.message), undefined)));
|
|
5966
|
+
const syncedTarget = merge?.target;
|
|
5963
5967
|
if (catchUp !== undefined)
|
|
5964
|
-
return boundary === undefined ? { status: "completed", revision, catchUp } : { status: "completed", revision, boundary, catchUp };
|
|
5965
|
-
return boundary === undefined ? { status: "completed", revision } : { status: "completed", revision, boundary };
|
|
5968
|
+
return boundary === undefined ? syncedTarget === undefined ? { status: "completed", revision, catchUp } : { status: "completed", revision, catchUp, syncedTarget } : syncedTarget === undefined ? { status: "completed", revision, boundary, catchUp } : { status: "completed", revision, boundary, catchUp, syncedTarget };
|
|
5969
|
+
return boundary === undefined ? syncedTarget === undefined ? { status: "completed", revision } : { status: "completed", revision, syncedTarget } : syncedTarget === undefined ? { status: "completed", revision, boundary } : { status: "completed", revision, boundary, syncedTarget };
|
|
5966
5970
|
}).pipe(scoped);
|
|
5967
5971
|
var agentStepExecutor = (input) => stepAttempt(input, new Map);
|
|
5968
5972
|
var checkpointRef = (work) => `refs/kitman/checkpoints/${work.runId}/${work.id}`;
|
|
@@ -6555,7 +6559,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
|
|
|
6555
6559
|
return {
|
|
6556
6560
|
request: (method, params) => gen(function* () {
|
|
6557
6561
|
const id = ++lastId;
|
|
6558
|
-
const deferred = yield*
|
|
6562
|
+
const deferred = yield* make15();
|
|
6559
6563
|
pending.set(id, deferred);
|
|
6560
6564
|
yield* send({ id, method, params });
|
|
6561
6565
|
return yield* _await(deferred).pipe(mapError2((error) => new CodexAppServerFailed({ reason: `${method}: ${error.message}` })));
|
|
@@ -6698,7 +6702,7 @@ var kitmanMcpPreflight = (mcp) => gen(function* () {
|
|
|
6698
6702
|
const server = yield* spawner.spawn(make3(mcp.command, [...mcp.args], {
|
|
6699
6703
|
extendEnv: true,
|
|
6700
6704
|
env: mcp.env,
|
|
6701
|
-
stdin: { stream:
|
|
6705
|
+
stdin: { stream: make10(new TextEncoder().encode(handshake)), endOnDone: false },
|
|
6702
6706
|
stderr: "ignore"
|
|
6703
6707
|
}));
|
|
6704
6708
|
const reply = yield* server.stdout.pipe(decodeText, splitLines, map2((line) => getOrUndefined(decodeJsonStringOption(line))), filter((message) => isJsonObject(message) && message.id === 2), runHead);
|
|
@@ -6772,7 +6776,7 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
|
|
|
6772
6776
|
const exitCode = sandbox === undefined ? yield* gen(function* () {
|
|
6773
6777
|
const spawner = yield* ChildProcessSpawner;
|
|
6774
6778
|
const handle = yield* spawner.spawn(make3(input.bun ?? process.execPath, [file], {
|
|
6775
|
-
stdin:
|
|
6779
|
+
stdin: make10(new TextEncoder().encode(stdin)),
|
|
6776
6780
|
stdout: "inherit",
|
|
6777
6781
|
stderr: "inherit",
|
|
6778
6782
|
extendEnv: false,
|
|
@@ -7398,6 +7402,41 @@ var ownRepository = (worktree, clone, targetBranch) => gen(function* () {
|
|
|
7398
7402
|
yield* fs.rename(gitDir, path.join(worktree, ".git"));
|
|
7399
7403
|
yield* runCommand2("git", ["-C", worktree, "reset", "--quiet"]);
|
|
7400
7404
|
}).pipe(scoped);
|
|
7405
|
+
var resolveRevisions = (work, revisions, checkouts) => gen(function* () {
|
|
7406
|
+
const checkout = yield* checkouts.checkout({ runId: work.runId, id: work.id, baseRevision: work.revision }, work.repoBinding);
|
|
7407
|
+
const commits = [];
|
|
7408
|
+
for (const revision of revisions) {
|
|
7409
|
+
const commit = yield* exit(runCommand2("git", [
|
|
7410
|
+
"-C",
|
|
7411
|
+
checkout,
|
|
7412
|
+
"rev-parse",
|
|
7413
|
+
"--verify",
|
|
7414
|
+
"--quiet",
|
|
7415
|
+
"--end-of-options",
|
|
7416
|
+
`${revision}^{commit}`
|
|
7417
|
+
]));
|
|
7418
|
+
if (isFailure2(commit)) {
|
|
7419
|
+
const unresolved = {
|
|
7420
|
+
status: "failed",
|
|
7421
|
+
failureSummary: `\`${revision}\` names no commit in ${work.repoBinding.id}'s clone`
|
|
7422
|
+
};
|
|
7423
|
+
return unresolved;
|
|
7424
|
+
}
|
|
7425
|
+
commits.push(commit.value.trim());
|
|
7426
|
+
}
|
|
7427
|
+
const resolved = {
|
|
7428
|
+
status: "completed",
|
|
7429
|
+
evidence: {
|
|
7430
|
+
head: {
|
|
7431
|
+
revision: (yield* runCommand2("git", ["-C", checkout, "rev-parse", "HEAD"])).trim(),
|
|
7432
|
+
tree: yield* treeOf(checkout),
|
|
7433
|
+
checks: []
|
|
7434
|
+
},
|
|
7435
|
+
resolved: { commits }
|
|
7436
|
+
}
|
|
7437
|
+
};
|
|
7438
|
+
return resolved;
|
|
7439
|
+
});
|
|
7401
7440
|
var treeOf = (worktree) => map8(runCommand2("git", ["-C", worktree, "rev-parse", "HEAD^{tree}"]), (tree) => tree.trim());
|
|
7402
7441
|
var verificationExecutor = (input) => (work) => gen(function* () {
|
|
7403
7442
|
if (input.sandbox !== undefined && input.sandbox.backend === undefined)
|
|
@@ -7408,6 +7447,8 @@ var verificationExecutor = (input) => (work) => gen(function* () {
|
|
|
7408
7447
|
const cache = yield* (yield* FileSystem).makeTempDirectoryScoped({ prefix: "kitman-verify-cache-" });
|
|
7409
7448
|
const runIn = checkRunner(work, input.sandbox, cache, yield* inheritedEnvironment2(srtInheritedEnv2));
|
|
7410
7449
|
const checkouts = runCheckouts(input.rootDir, input.gitCredentials);
|
|
7450
|
+
if (work.resolve !== undefined)
|
|
7451
|
+
return yield* resolveRevisions(work, work.resolve.revisions, checkouts);
|
|
7411
7452
|
if (work.measure !== undefined) {
|
|
7412
7453
|
const measured = yield* measureRevisions(work, work.measure, checkouts, runIn);
|
|
7413
7454
|
const outcome = "failed" in measured ? { status: "failed", failureSummary: measured.failed } : { status: "completed", evidence: measured.measured };
|
|
@@ -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-by54dw1n.js";
|
|
8
|
+
import"./chunk-7bsf0fyh.js";
|
|
9
|
+
import"./chunk-292vjjdz.js";
|
|
10
|
+
import"./chunk-xq4k0mgr.js";
|
|
11
11
|
export {
|
|
12
12
|
isOpaqueConnectReason2 as isOpaqueConnectReason,
|
|
13
13
|
opaqueTunnelRefusal2 as opaqueTunnelRefusal,
|
|
@@ -18,12 +18,7 @@ import {
|
|
|
18
18
|
isMinLength,
|
|
19
19
|
isMaxLength,
|
|
20
20
|
FiniteFromString
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
|
|
23
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/JsonSchema.js
|
|
24
|
-
var PRE_2020_TO_2020_COLLISIONS = ["$anchor", "$defs", "$dynamicAnchor", "$dynamicRef", "$vocabulary", "contentSchema", "dependentRequired", "dependentSchemas", "maxContains", "minContains", "prefixItems", "unevaluatedItems", "unevaluatedProperties"];
|
|
25
|
-
var DRAFT_07_TO_2020_COLLISIONS = [...PRE_2020_TO_2020_COLLISIONS, "deprecated"];
|
|
26
|
-
var OPEN_API_30_TO_2020_COLLISIONS = [...PRE_2020_TO_2020_COLLISIONS, "$comment", "$id", "$schema", "const", "contains", "contentEncoding", "contentMediaType", "else", "examples", "if", "patternProperties", "propertyNames", "then"];
|
|
21
|
+
} from "./chunk-xq4k0mgr.js";
|
|
27
22
|
|
|
28
23
|
// packages/core/src/schema.ts
|
|
29
24
|
var Days = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-bjexx93x.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-tnqzvx55.js";
|
|
16
|
+
import"./chunk-2fqry6rd.js";
|
|
17
|
+
import"./chunk-xq4k0mgr.js";
|
|
18
18
|
export {
|
|
19
19
|
HERDR_CORE_GENERATION2 as HERDR_CORE_GENERATION,
|
|
20
20
|
HERDR_CORE_INSTALL_COMMAND2 as HERDR_CORE_INSTALL_COMMAND,
|
|
@@ -22,21 +22,21 @@ import {
|
|
|
22
22
|
NullOr,
|
|
23
23
|
Finite,
|
|
24
24
|
encodeUnknownJsonStringSync
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-xq4k0mgr.js";
|
|
26
26
|
import {
|
|
27
27
|
isNumber,
|
|
28
28
|
isJsonObject,
|
|
29
29
|
isString
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-292vjjdz.js";
|
|
31
31
|
import {
|
|
32
|
-
|
|
32
|
+
make10,
|
|
33
33
|
runForEach,
|
|
34
34
|
compiled2
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-2fqry6rd.js";
|
|
36
36
|
import {
|
|
37
37
|
ChildProcessSpawner,
|
|
38
38
|
make3
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-bjexx93x.js";
|
|
40
40
|
|
|
41
41
|
// packages/agent-runtime/src/opencode-store.ts
|
|
42
42
|
import { lstatSync, readFileSync, realpathSync } from "fs";
|
|
@@ -170,7 +170,7 @@ var isolatedRead = (store, name, input) => gen(function* () {
|
|
|
170
170
|
const spawner = yield* ChildProcessSpawner;
|
|
171
171
|
const [command, ...args] = opencodeReaderCommand();
|
|
172
172
|
const handle = yield* spawner.spawn(make3(command, args, {
|
|
173
|
-
stdin:
|
|
173
|
+
stdin: make10(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
|
|
174
174
|
stderr: "ignore",
|
|
175
175
|
extendEnv: false,
|
|
176
176
|
env: {},
|
|
@@ -23,24 +23,24 @@ import {
|
|
|
23
23
|
fnUntraced,
|
|
24
24
|
encodePrettyJsonString,
|
|
25
25
|
decodeJsonStringSync
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-xq4k0mgr.js";
|
|
27
27
|
import {
|
|
28
28
|
isJsonObject,
|
|
29
29
|
isString
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-292vjjdz.js";
|
|
31
31
|
import {
|
|
32
32
|
FileSystem,
|
|
33
33
|
Path,
|
|
34
34
|
optionalEnv
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-2fqry6rd.js";
|
|
36
36
|
import {
|
|
37
37
|
AgentHarnessIds,
|
|
38
38
|
sha2562,
|
|
39
39
|
runCommand2
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-tnqzvx55.js";
|
|
41
41
|
import {
|
|
42
42
|
NpmRegistry
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-xbyd16q3.js";
|
|
44
44
|
|
|
45
45
|
// packages/agent-runtime/src/config-convergence.ts
|
|
46
46
|
var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
map8,
|
|
23
23
|
raceFirst,
|
|
24
24
|
scoped
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-xq4k0mgr.js";
|
|
26
26
|
import {
|
|
27
27
|
unwrap,
|
|
28
28
|
drainFork,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
runCollect,
|
|
32
32
|
runDrain,
|
|
33
33
|
mkString
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-2fqry6rd.js";
|
|
35
35
|
|
|
36
36
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/redacted.js
|
|
37
37
|
var redactedRegistry = /* @__PURE__ */ new WeakMap;
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
ArraySchema,
|
|
14
14
|
decodeJsonStringOption,
|
|
15
15
|
encodeUnknownJsonStringSync
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-xq4k0mgr.js";
|
|
17
17
|
import {
|
|
18
18
|
replaceSecretReferences,
|
|
19
19
|
secretReferencesIn
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-7bsf0fyh.js";
|
|
21
21
|
|
|
22
22
|
// packages/agent-runtime/src/srt-step.ts
|
|
23
23
|
import { SandboxRuntimeConfigSchema } from "@anthropic-ai/sandbox-runtime";
|
|
@@ -6,10 +6,7 @@ import {
|
|
|
6
6
|
gen,
|
|
7
7
|
flatMap3,
|
|
8
8
|
provideContext2
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
runForEach
|
|
12
|
-
} from "./chunk-xb70ys3n.js";
|
|
9
|
+
} from "./chunk-xq4k0mgr.js";
|
|
13
10
|
import {
|
|
14
11
|
WebSocketConstructor,
|
|
15
12
|
layerWebSocketConstructorGlobal,
|
|
@@ -19,13 +16,16 @@ import {
|
|
|
19
16
|
RunnerReplicaRpcs,
|
|
20
17
|
RunnerRunFileRpcs,
|
|
21
18
|
ProgramRpcs
|
|
22
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-tnqzvx55.js";
|
|
20
|
+
import {
|
|
21
|
+
runForEach
|
|
22
|
+
} from "./chunk-2fqry6rd.js";
|
|
23
23
|
import {
|
|
24
24
|
layerJson,
|
|
25
25
|
make4,
|
|
26
26
|
withHeaders,
|
|
27
27
|
layerProtocolSocket
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-ptp9p22x.js";
|
|
29
29
|
|
|
30
30
|
// packages/live/src/rpc/runner-client.ts
|
|
31
31
|
var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
|
|
@@ -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-dzthc6th.js";
|
|
8
|
+
import"./chunk-ptp9p22x.js";
|
|
9
|
+
import"./chunk-tnqzvx55.js";
|
|
10
|
+
import"./chunk-7bsf0fyh.js";
|
|
11
|
+
import"./chunk-292vjjdz.js";
|
|
12
|
+
import"./chunk-2fqry6rd.js";
|
|
13
|
+
import"./chunk-xq4k0mgr.js";
|
|
14
14
|
export {
|
|
15
15
|
makeProgramRpcClient2 as makeProgramRpcClient,
|
|
16
16
|
makeRunnerRpcClient2 as makeRunnerRpcClient,
|
|
@@ -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-999xbcaa.js";
|
|
11
|
+
import"./chunk-bjexx93x.js";
|
|
12
|
+
import"./chunk-292vjjdz.js";
|
|
13
|
+
import"./chunk-2fqry6rd.js";
|
|
14
|
+
import"./chunk-xq4k0mgr.js";
|
|
15
15
|
export {
|
|
16
16
|
decoded2 as decoded,
|
|
17
17
|
decodedOption2 as decodedOption,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
add,
|
|
13
13
|
getOrUndefinedUnsafe,
|
|
14
14
|
getUnsafe,
|
|
15
|
-
|
|
15
|
+
get3,
|
|
16
16
|
Reference,
|
|
17
17
|
toMillis,
|
|
18
18
|
isSuccess,
|
|
@@ -96,21 +96,8 @@ import {
|
|
|
96
96
|
Defect,
|
|
97
97
|
Exit,
|
|
98
98
|
toCodecJson
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-xq4k0mgr.js";
|
|
100
100
|
import {
|
|
101
|
-
interrupt,
|
|
102
|
-
getCurrent,
|
|
103
|
-
makeUnsafe2,
|
|
104
|
-
bounded,
|
|
105
|
-
offerAll,
|
|
106
|
-
failCause,
|
|
107
|
-
end,
|
|
108
|
-
shutdownUnsafe,
|
|
109
|
-
fromQueue,
|
|
110
|
-
unwrap
|
|
111
|
-
} from "./chunk-xb70ys3n.js";
|
|
112
|
-
import {
|
|
113
|
-
Clock,
|
|
114
101
|
empty,
|
|
115
102
|
fromInput,
|
|
116
103
|
merge,
|
|
@@ -123,7 +110,20 @@ import {
|
|
|
123
110
|
ParseOptions,
|
|
124
111
|
RpcClientDefect,
|
|
125
112
|
RpcClientError
|
|
126
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-tnqzvx55.js";
|
|
114
|
+
import {
|
|
115
|
+
Clock,
|
|
116
|
+
interrupt,
|
|
117
|
+
getCurrent,
|
|
118
|
+
makeUnsafe2,
|
|
119
|
+
bounded,
|
|
120
|
+
offerAll,
|
|
121
|
+
failCause,
|
|
122
|
+
end,
|
|
123
|
+
shutdownUnsafe,
|
|
124
|
+
fromQueue,
|
|
125
|
+
unwrap
|
|
126
|
+
} from "./chunk-2fqry6rd.js";
|
|
127
127
|
|
|
128
128
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/workers/Transferable.js
|
|
129
129
|
class Collector extends (/* @__PURE__ */ Service2()("effect/workers/Transferable/Collector")) {
|
|
@@ -237,7 +237,7 @@ var makeNoSerialization = /* @__PURE__ */ fnUntraced(function* (group, options)
|
|
|
237
237
|
const disableTracing = options?.disableTracing ?? false;
|
|
238
238
|
const generateRequestId = options?.generateRequestId ?? (() => requestIdCounter++);
|
|
239
239
|
const services = yield* context();
|
|
240
|
-
const scope =
|
|
240
|
+
const scope = get3(services, Scope);
|
|
241
241
|
const entries = new Map;
|
|
242
242
|
let isShutdown = false;
|
|
243
243
|
yield* addFinalizer(scope, withFiber2((parent) => {
|
|
@@ -643,7 +643,7 @@ var makeRpcSchemas = (codecFor) => {
|
|
|
643
643
|
return entry;
|
|
644
644
|
}
|
|
645
645
|
const streamSchemas = getStreamSchemas(rpc.successSchema);
|
|
646
|
-
const parseOptions =
|
|
646
|
+
const parseOptions = get3(rpc.annotations, ParseOptions);
|
|
647
647
|
const exitSchema2 = exitSchema(rpc);
|
|
648
648
|
let decodeDiscardExit;
|
|
649
649
|
entry = {
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
writeSrtSettings2,
|
|
15
15
|
srtStepArgv2,
|
|
16
16
|
srtArgv2
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import"./chunk-
|
|
17
|
+
} from "./chunk-2fqry6rd.js";
|
|
18
|
+
import"./chunk-xq4k0mgr.js";
|
|
19
19
|
export {
|
|
20
20
|
compiled2 as compiled,
|
|
21
21
|
harnessesUnsupportedInSrt2 as harnessesUnsupportedInSrt,
|
|
@@ -12,30 +12,30 @@ import {
|
|
|
12
12
|
orElseSucceed,
|
|
13
13
|
decodeJsonString,
|
|
14
14
|
encodePrettyJsonString
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import"./chunk-kgdppbdr.js";
|
|
15
|
+
} from "./chunk-xq4k0mgr.js";
|
|
17
16
|
import {
|
|
18
17
|
isJsonObject
|
|
19
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-292vjjdz.js";
|
|
20
19
|
import {
|
|
21
20
|
FileSystem,
|
|
22
21
|
Path
|
|
23
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-2fqry6rd.js";
|
|
24
23
|
import {
|
|
25
24
|
tomlTableHeader2,
|
|
26
25
|
tomlKeyPath2,
|
|
27
26
|
kitmanSkillEntry,
|
|
28
27
|
isPathWithin2
|
|
29
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-adqabkwv.js";
|
|
30
29
|
import {
|
|
31
30
|
instructionsStart,
|
|
32
31
|
instructionsEnd,
|
|
33
32
|
renderMcpServer,
|
|
34
33
|
materializeKitSetup,
|
|
35
34
|
tomlInline
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import"./chunk-
|
|
38
|
-
import"./chunk-
|
|
35
|
+
} from "./chunk-tnqzvx55.js";
|
|
36
|
+
import"./chunk-xbyd16q3.js";
|
|
37
|
+
import"./chunk-bjexx93x.js";
|
|
38
|
+
import"./chunk-7bsf0fyh.js";
|
|
39
39
|
|
|
40
40
|
// packages/agent-runtime/src/kit-setup-sync.ts
|
|
41
41
|
class KitSyncError extends TaggedError("KitSyncError") {
|