@kitman-sh/cli 0.10.63 → 0.10.65
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-eawcprsb.js → chunk-1rry0tsn.js} +1 -1
- package/dist/{chunk-sdpjvc1r.js → chunk-1v319b82.js} +2 -3
- package/dist/{chunk-wkccjgwb.js → chunk-1zt2rcea.js} +3 -3
- package/dist/{chunk-rrz0v4fg.js → chunk-60333x3q.js} +3 -3
- package/dist/{chunk-smgvtzd2.js → chunk-7xtst67f.js} +4 -4
- package/dist/{chunk-62mqje8y.js → chunk-cc4cy79t.js} +12 -12
- package/dist/{chunk-09jf8588.js → chunk-csbf77zs.js} +2 -2
- package/dist/{chunk-0fdgam8v.js → chunk-dk0ftqwg.js} +2 -1
- package/dist/{chunk-a4798jzf.js → chunk-gbsqf61e.js} +2 -2
- package/dist/{chunk-e3tv8mv2.js → chunk-hmwvsfgq.js} +2 -2
- package/dist/{chunk-d8awdfdj.js → chunk-k4vvmwvj.js} +22 -14
- package/dist/{chunk-z0z56a72.js → chunk-kebax0r8.js} +3 -3
- package/dist/{chunk-5y050gx7.js → chunk-mvvp19kb.js} +3 -3
- package/dist/{chunk-hvev0dve.js → chunk-qp07hf3f.js} +5 -5
- package/dist/{chunk-1z9p4q8b.js → chunk-rm83dbpv.js} +1 -1
- package/dist/{chunk-hxkk42cg.js → chunk-rzxt9mb5.js} +3 -3
- package/dist/{chunk-phmma642.js → chunk-y1328g78.js} +2 -2
- package/dist/{chunk-88257wax.js → chunk-ysw716r4.js} +7 -7
- package/dist/index.js +3 -3
- package/package.json +1 -1
|
@@ -315,7 +315,7 @@ import {
|
|
|
315
315
|
String2,
|
|
316
316
|
optionalEnv,
|
|
317
317
|
harnessesUnsupportedInSrt2
|
|
318
|
-
} from "./chunk-
|
|
318
|
+
} from "./chunk-dk0ftqwg.js";
|
|
319
319
|
import {
|
|
320
320
|
isDateTime,
|
|
321
321
|
Numeric,
|
|
@@ -355,8 +355,7 @@ import {
|
|
|
355
355
|
make3,
|
|
356
356
|
parseFdName,
|
|
357
357
|
fdName
|
|
358
|
-
} from "./chunk-
|
|
359
|
-
|
|
358
|
+
} from "./chunk-1rry0tsn.js";
|
|
360
359
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
|
|
361
360
|
var makeEquivalence3 = Tuple;
|
|
362
361
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-1rry0tsn.js";
|
|
3
3
|
import {
|
|
4
4
|
HERDR_CORE_GENERATION2,
|
|
5
5
|
HERDR_CORE_INSTALL_COMMAND2,
|
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
herdrCoreLayer2,
|
|
13
13
|
herdrCoreTransportLayer2,
|
|
14
14
|
updateHerdrCore2
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import"./chunk-
|
|
15
|
+
} from "./chunk-1v319b82.js";
|
|
16
|
+
import"./chunk-dk0ftqwg.js";
|
|
17
17
|
import"./chunk-d3ksv8y1.js";
|
|
18
18
|
export {
|
|
19
19
|
HERDR_CORE_GENERATION2 as HERDR_CORE_GENERATION,
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
decoded2,
|
|
8
8
|
readOpencode2,
|
|
9
9
|
runOpencodeReader2
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import"./chunk-
|
|
10
|
+
} from "./chunk-csbf77zs.js";
|
|
11
|
+
import"./chunk-1rry0tsn.js";
|
|
12
12
|
import"./chunk-v01c0k6j.js";
|
|
13
|
-
import"./chunk-
|
|
13
|
+
import"./chunk-dk0ftqwg.js";
|
|
14
14
|
import"./chunk-d3ksv8y1.js";
|
|
15
15
|
export {
|
|
16
16
|
decoded2 as decoded,
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
runnerRpcUrl2,
|
|
5
5
|
makeRunnerRpcClient2,
|
|
6
6
|
makeProgramRpcClient2
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import"./chunk-
|
|
9
|
-
import"./chunk-
|
|
7
|
+
} from "./chunk-rzxt9mb5.js";
|
|
8
|
+
import"./chunk-hmwvsfgq.js";
|
|
9
|
+
import"./chunk-1v319b82.js";
|
|
10
10
|
import"./chunk-rrnee9mk.js";
|
|
11
11
|
import"./chunk-v01c0k6j.js";
|
|
12
|
-
import"./chunk-
|
|
12
|
+
import"./chunk-dk0ftqwg.js";
|
|
13
13
|
import"./chunk-d3ksv8y1.js";
|
|
14
14
|
export {
|
|
15
15
|
makeProgramRpcClient2 as makeProgramRpcClient,
|
|
@@ -97,7 +97,7 @@ import {
|
|
|
97
97
|
withDefault,
|
|
98
98
|
option,
|
|
99
99
|
String2
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-dk0ftqwg.js";
|
|
101
101
|
import {
|
|
102
102
|
currentTimeMillis,
|
|
103
103
|
SecureRandom,
|
|
@@ -197,7 +197,7 @@ import {
|
|
|
197
197
|
harnessNames,
|
|
198
198
|
herdrRunnerCapabilities2,
|
|
199
199
|
declaredChecks
|
|
200
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-1v319b82.js";
|
|
201
201
|
import {
|
|
202
202
|
Id
|
|
203
203
|
} from "./chunk-rrnee9mk.js";
|
|
@@ -214,7 +214,7 @@ import {
|
|
|
214
214
|
import {
|
|
215
215
|
ChildProcessSpawner,
|
|
216
216
|
make3
|
|
217
|
-
} from "./chunk-
|
|
217
|
+
} from "./chunk-1rry0tsn.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-1zt2rcea.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-1zt2rcea.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-qp07hf3f.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)
|
|
@@ -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.65";
|
|
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-k4vvmwvj.js"));
|
|
1905
1905
|
var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
|
|
1906
1906
|
defaultValue: () => gen(function* () {
|
|
1907
1907
|
const tui = yield* tryPromise({
|
|
@@ -2756,7 +2756,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
|
|
|
2756
2756
|
});
|
|
2757
2757
|
var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
|
|
2758
2758
|
defaultValue: () => (options) => gen(function* () {
|
|
2759
|
-
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-
|
|
2759
|
+
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-7xtst67f.js"));
|
|
2760
2760
|
return yield* makeRunnerRpcClient({
|
|
2761
2761
|
runnerId: options.runnerId,
|
|
2762
2762
|
bearer: options.bearer,
|
|
@@ -3140,7 +3140,7 @@ function mcpCommand(args) {
|
|
|
3140
3140
|
if (command.action === "run") {
|
|
3141
3141
|
if (command.args.length > 0)
|
|
3142
3142
|
return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
|
|
3143
|
-
const { runMcpServerCommand } = yield* promise(() => import("./chunk-
|
|
3143
|
+
const { runMcpServerCommand } = yield* promise(() => import("./chunk-mvvp19kb.js"));
|
|
3144
3144
|
return yield* runMcpServerCommand({ flags: command.flags });
|
|
3145
3145
|
}
|
|
3146
3146
|
if (command.action !== "setup")
|
|
@@ -4342,9 +4342,9 @@ function claimCommand(args) {
|
|
|
4342
4342
|
}
|
|
4343
4343
|
});
|
|
4344
4344
|
}
|
|
4345
|
-
var KitWriter = map8(promise(() => import("./chunk-
|
|
4345
|
+
var KitWriter = map8(promise(() => import("./chunk-ysw716r4.js")), (build) => build.writeKit);
|
|
4346
4346
|
var KitBuilder = Reference("kitman/cli/KitBuilder", {
|
|
4347
|
-
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-
|
|
4347
|
+
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-ysw716r4.js")), (build) => build.buildKit(directory))
|
|
4348
4348
|
});
|
|
4349
4349
|
var uploadKit = (client, workspaceId, built) => gen(function* () {
|
|
4350
4350
|
yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
|
|
@@ -32,11 +32,11 @@ import {
|
|
|
32
32
|
make11,
|
|
33
33
|
runForEach,
|
|
34
34
|
compiled2
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-dk0ftqwg.js";
|
|
36
36
|
import {
|
|
37
37
|
ChildProcessSpawner,
|
|
38
38
|
make3
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-1rry0tsn.js";
|
|
40
40
|
|
|
41
41
|
// packages/agent-runtime/src/opencode-store.ts
|
|
42
42
|
import { lstatSync, readFileSync, realpathSync } from "fs";
|
|
@@ -3463,6 +3463,7 @@ var optionalEnv = (name) => gen(function* () {
|
|
|
3463
3463
|
}).pipe(orElseSucceed(() => {
|
|
3464
3464
|
return;
|
|
3465
3465
|
}));
|
|
3466
|
+
var operatorConfigHome = (home) => optionalEnv("XDG_CONFIG_HOME").pipe(map8((configHome) => configHome ?? `${home}/.config`));
|
|
3466
3467
|
|
|
3467
3468
|
// packages/agent-runtime/src/srt-sandbox.ts
|
|
3468
3469
|
var harnessesUnsupportedInSrt2 = ["codex"];
|
|
@@ -3551,4 +3552,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
|
|
|
3551
3552
|
...argv
|
|
3552
3553
|
];
|
|
3553
3554
|
|
|
3554
|
-
export { map, makeEquivalence, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2, make8, unbounded, publishUnsafe, make9, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, make10, get3, isStream, fromChannel2, callback, empty2, make11, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make12, FileTypeId, WatchBackend, Path, make13, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, harnessesUnsupportedInSrt2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
|
|
3555
|
+
export { map, makeEquivalence, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2, make8, unbounded, publishUnsafe, make9, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, make10, get3, isStream, fromChannel2, callback, empty2, make11, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make12, FileTypeId, WatchBackend, Path, make13, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, harnessesUnsupportedInSrt2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
withDefault,
|
|
30
30
|
String2
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-dk0ftqwg.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-1v319b82.js";
|
|
42
42
|
|
|
43
43
|
// packages/core/src/npm-registry.ts
|
|
44
44
|
var KitManifest = Struct({
|
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
shutdownUnsafe,
|
|
109
109
|
fromQueue,
|
|
110
110
|
unwrap
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-dk0ftqwg.js";
|
|
112
112
|
import {
|
|
113
113
|
Clock,
|
|
114
114
|
empty,
|
|
@@ -123,7 +123,7 @@ import {
|
|
|
123
123
|
ParseOptions,
|
|
124
124
|
RpcClientDefect,
|
|
125
125
|
RpcClientError
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-1v319b82.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")) {
|
|
@@ -225,7 +225,7 @@ import {
|
|
|
225
225
|
installCommand,
|
|
226
226
|
checkServicesFile,
|
|
227
227
|
checkServices
|
|
228
|
-
} from "./chunk-
|
|
228
|
+
} from "./chunk-1v319b82.js";
|
|
229
229
|
import {
|
|
230
230
|
join,
|
|
231
231
|
interrupt,
|
|
@@ -250,6 +250,7 @@ import {
|
|
|
250
250
|
embeddedFile,
|
|
251
251
|
extractEmbeddedFile,
|
|
252
252
|
optionalEnv,
|
|
253
|
+
operatorConfigHome,
|
|
253
254
|
harnessesUnsupportedInSrt2,
|
|
254
255
|
compiled2,
|
|
255
256
|
pinnedSrtCommand2,
|
|
@@ -264,7 +265,7 @@ import {
|
|
|
264
265
|
writeSrtSettings2,
|
|
265
266
|
srtStepArgv2,
|
|
266
267
|
srtArgv2
|
|
267
|
-
} from "./chunk-
|
|
268
|
+
} from "./chunk-dk0ftqwg.js";
|
|
268
269
|
import {
|
|
269
270
|
writeAgentEnvironmentConfigFile2,
|
|
270
271
|
readManifestSkillPaths2,
|
|
@@ -280,8 +281,8 @@ import {
|
|
|
280
281
|
applyAgentEnvironmentMaterialization2,
|
|
281
282
|
isPathWithin2,
|
|
282
283
|
skillIdentity2
|
|
283
|
-
} from "./chunk-
|
|
284
|
-
import"./chunk-
|
|
284
|
+
} from "./chunk-kebax0r8.js";
|
|
285
|
+
import"./chunk-gbsqf61e.js";
|
|
285
286
|
import {
|
|
286
287
|
sliceBytes2,
|
|
287
288
|
maxLineBytes2,
|
|
@@ -289,7 +290,7 @@ import {
|
|
|
289
290
|
decodedOption2,
|
|
290
291
|
decoded2,
|
|
291
292
|
readOpencode2
|
|
292
|
-
} from "./chunk-
|
|
293
|
+
} from "./chunk-csbf77zs.js";
|
|
293
294
|
import {
|
|
294
295
|
writeSecretRegistry,
|
|
295
296
|
secretRefusalLog,
|
|
@@ -301,16 +302,16 @@ import {
|
|
|
301
302
|
rpcRunFiles,
|
|
302
303
|
programHostsEnv,
|
|
303
304
|
undeclaredHostsEnv
|
|
304
|
-
} from "./chunk-
|
|
305
|
-
import"./chunk-
|
|
305
|
+
} from "./chunk-y1328g78.js";
|
|
306
|
+
import"./chunk-rzxt9mb5.js";
|
|
306
307
|
import {
|
|
307
308
|
nextInt
|
|
308
309
|
} from "./chunk-q3c7vmby.js";
|
|
309
310
|
import {
|
|
310
311
|
ChildProcessSpawner,
|
|
311
312
|
make3
|
|
312
|
-
} from "./chunk-
|
|
313
|
-
import"./chunk-
|
|
313
|
+
} from "./chunk-1rry0tsn.js";
|
|
314
|
+
import"./chunk-hmwvsfgq.js";
|
|
314
315
|
|
|
315
316
|
// packages/core/src/sync-kit.ts
|
|
316
317
|
import { createHash } from "crypto";
|
|
@@ -1757,7 +1758,7 @@ var HarnessAdapters = [
|
|
|
1757
1758
|
directories: { XDG_DATA_HOME: "data", XDG_STATE_HOME: "state", CLAUDE_CODE_TMPDIR: "tmp" },
|
|
1758
1759
|
sessionDatabase: "data/opencode/opencode.db",
|
|
1759
1760
|
login: { source: ".local/share/opencode/auth.json", path: "data/opencode/auth.json" },
|
|
1760
|
-
|
|
1761
|
+
configHomeDirectory: "opencode"
|
|
1761
1762
|
}
|
|
1762
1763
|
}
|
|
1763
1764
|
];
|
|
@@ -1797,9 +1798,13 @@ function resolveHarnessLaunch(input) {
|
|
|
1797
1798
|
const effortful = effort === undefined || input.adapter.effortArgs === undefined ? launch : { ...launch, args: [...launch.args, ...input.adapter.effortArgs.map((arg) => arg.replace("{effort}", effort))] };
|
|
1798
1799
|
return flagProbedLaunch(input.adapter, sandboxHomeLaunch(input, effortful));
|
|
1799
1800
|
}
|
|
1800
|
-
var sandboxedLaunch = (launch) => launch.sandboxed === undefined ? launch : {
|
|
1801
|
+
var sandboxedLaunch = (launch, backend) => launch.sandboxed === undefined ? launch : {
|
|
1801
1802
|
...launch,
|
|
1802
|
-
env: {
|
|
1803
|
+
env: {
|
|
1804
|
+
...launch.env,
|
|
1805
|
+
...launch.sandboxed.env,
|
|
1806
|
+
...backend === "srt" ? { XDG_CONFIG_HOME: launch.sandboxed.configHome } : undefined
|
|
1807
|
+
},
|
|
1803
1808
|
loginCopy: launch.sandboxed.login,
|
|
1804
1809
|
homeDirectory: launch.sandboxed.homeDirectory
|
|
1805
1810
|
};
|
|
@@ -1808,15 +1813,17 @@ function sandboxHomeLaunch(input, launch) {
|
|
|
1808
1813
|
if (sandboxHome === undefined)
|
|
1809
1814
|
return launch;
|
|
1810
1815
|
const home = input.home ?? homedir();
|
|
1816
|
+
const configHome = input.configHome ?? `${home}/.config`;
|
|
1811
1817
|
return {
|
|
1812
1818
|
...launch,
|
|
1813
1819
|
sandboxed: {
|
|
1814
1820
|
env: Object.fromEntries(Object.entries(sandboxHome.directories).map(([variable, path]) => [variable, `${input.configDir}/${path}`])),
|
|
1821
|
+
configHome,
|
|
1815
1822
|
login: {
|
|
1816
1823
|
path: `${input.configDir}/${sandboxHome.login.path}`,
|
|
1817
1824
|
source: `${home}/${sandboxHome.login.source}`
|
|
1818
1825
|
},
|
|
1819
|
-
homeDirectory: `${
|
|
1826
|
+
homeDirectory: `${configHome}/${sandboxHome.configHomeDirectory}`
|
|
1820
1827
|
}
|
|
1821
1828
|
};
|
|
1822
1829
|
}
|
|
@@ -2237,6 +2244,7 @@ var prepareHarness = (input) => gen(function* () {
|
|
|
2237
2244
|
|
|
2238
2245
|
`),
|
|
2239
2246
|
home: input.home,
|
|
2247
|
+
configHome: yield* operatorConfigHome(input.home),
|
|
2240
2248
|
...input.agent.session === undefined ? undefined : {
|
|
2241
2249
|
session: {
|
|
2242
2250
|
id: input.agent.session.id,
|
|
@@ -3186,7 +3194,7 @@ var runAttempt = (request, options) => gen(function* () {
|
|
|
3186
3194
|
if (isFailure(prepared))
|
|
3187
3195
|
return failed(prepared.failure.reason, prepared.failure.summary);
|
|
3188
3196
|
const { adapter, mcp, configDir, kitSetup } = prepared.success;
|
|
3189
|
-
const launch = request.sandbox.backend === "host" ? prepared.success.launch : sandboxedLaunch(prepared.success.launch);
|
|
3197
|
+
const launch = request.sandbox.backend === "host" ? prepared.success.launch : sandboxedLaunch(prepared.success.launch, request.sandbox.backend);
|
|
3190
3198
|
const policy = stepSandboxPolicy({
|
|
3191
3199
|
policy: request.sandbox.policy,
|
|
3192
3200
|
adapter,
|
|
@@ -32,15 +32,15 @@ import {
|
|
|
32
32
|
FileSystem,
|
|
33
33
|
Path,
|
|
34
34
|
optionalEnv
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-dk0ftqwg.js";
|
|
36
36
|
import {
|
|
37
37
|
AgentHarnessIds,
|
|
38
38
|
sha2562,
|
|
39
39
|
runCommand2
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-1v319b82.js";
|
|
41
41
|
import {
|
|
42
42
|
NpmRegistry
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-gbsqf61e.js";
|
|
44
44
|
|
|
45
45
|
// packages/agent-runtime/src/config-convergence.ts
|
|
46
46
|
var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
|
|
@@ -153,7 +153,7 @@ import {
|
|
|
153
153
|
runMcpEffect,
|
|
154
154
|
createAgentAuthSignedFetch,
|
|
155
155
|
setupMcpAgentCredential
|
|
156
|
-
} from "./chunk-
|
|
156
|
+
} from "./chunk-1v319b82.js";
|
|
157
157
|
import {
|
|
158
158
|
guard,
|
|
159
159
|
Id,
|
|
@@ -187,7 +187,7 @@ import {
|
|
|
187
187
|
withDefault,
|
|
188
188
|
option,
|
|
189
189
|
String2
|
|
190
|
-
} from "./chunk-
|
|
190
|
+
} from "./chunk-dk0ftqwg.js";
|
|
191
191
|
import {
|
|
192
192
|
nextInt
|
|
193
193
|
} from "./chunk-q3c7vmby.js";
|
|
@@ -197,7 +197,7 @@ import {
|
|
|
197
197
|
withHeaders,
|
|
198
198
|
layerProtocolSocket,
|
|
199
199
|
ConnectionHooks
|
|
200
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-hmwvsfgq.js";
|
|
201
201
|
|
|
202
202
|
// apps/cli/src/mcp.ts
|
|
203
203
|
import { tmpdir } from "os";
|
|
@@ -20,22 +20,22 @@ import {
|
|
|
20
20
|
import {
|
|
21
21
|
FileSystem,
|
|
22
22
|
Path
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-dk0ftqwg.js";
|
|
24
24
|
import {
|
|
25
25
|
tomlTableHeader2,
|
|
26
26
|
tomlKeyPath2,
|
|
27
27
|
kitmanSkillEntry,
|
|
28
28
|
isPathWithin2
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-kebax0r8.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-1v319b82.js";
|
|
37
|
+
import"./chunk-gbsqf61e.js";
|
|
38
|
+
import"./chunk-1rry0tsn.js";
|
|
39
39
|
|
|
40
40
|
// packages/agent-runtime/src/kit-setup-sync.ts
|
|
41
41
|
class KitSyncError extends TaggedError("KitSyncError") {
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-d3ksv8y1.js";
|
|
10
10
|
import {
|
|
11
11
|
runForEach
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-dk0ftqwg.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-1v319b82.js";
|
|
23
23
|
import {
|
|
24
24
|
layerJson,
|
|
25
25
|
make4,
|
|
26
26
|
withHeaders,
|
|
27
27
|
layerProtocolSocket
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-hmwvsfgq.js";
|
|
29
29
|
|
|
30
30
|
// packages/live/src/rpc/runner-client.ts
|
|
31
31
|
var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
|
|
@@ -105,11 +105,11 @@ import {
|
|
|
105
105
|
KitDigest,
|
|
106
106
|
KitSetup,
|
|
107
107
|
RunnerRpcError
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-1v319b82.js";
|
|
109
109
|
import {
|
|
110
110
|
runForEach,
|
|
111
111
|
FileSystem
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-dk0ftqwg.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");
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
layer4,
|
|
47
47
|
kitmanMcpServer,
|
|
48
48
|
RunnerRpcProtocolVersion
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-1v319b82.js";
|
|
50
50
|
import {
|
|
51
51
|
decodeText,
|
|
52
52
|
mkString,
|
|
@@ -54,23 +54,23 @@ import {
|
|
|
54
54
|
Path,
|
|
55
55
|
withDefault,
|
|
56
56
|
String2
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-dk0ftqwg.js";
|
|
58
58
|
import {
|
|
59
59
|
Packument,
|
|
60
60
|
tarballMatches
|
|
61
|
-
} from "./chunk-
|
|
62
|
-
import"./chunk-
|
|
61
|
+
} from "./chunk-gbsqf61e.js";
|
|
62
|
+
import"./chunk-rzxt9mb5.js";
|
|
63
63
|
import {
|
|
64
64
|
AgentDeclaration,
|
|
65
65
|
KitDeclarations,
|
|
66
66
|
describeFlag,
|
|
67
67
|
Described
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-y1328g78.js";
|
|
69
69
|
import {
|
|
70
70
|
ChildProcessSpawner,
|
|
71
71
|
make3
|
|
72
|
-
} from "./chunk-
|
|
73
|
-
import"./chunk-
|
|
72
|
+
} from "./chunk-1rry0tsn.js";
|
|
73
|
+
import"./chunk-hmwvsfgq.js";
|
|
74
74
|
|
|
75
75
|
// packages/sdk/src/build/index.ts
|
|
76
76
|
class DependencyInstallFailed extends TaggedError2()("DependencyInstallFailed", {
|
package/dist/index.js
CHANGED
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
var args = process.argv.slice(2);
|
|
6
6
|
if (args[0] === "srt") {
|
|
7
7
|
process.argv.splice(2, 1);
|
|
8
|
-
const { runSrtCli } = await import("./chunk-
|
|
8
|
+
const { runSrtCli } = await import("./chunk-rm83dbpv.js");
|
|
9
9
|
await runSrtCli();
|
|
10
10
|
} else if (args[0] === "srt-step") {
|
|
11
11
|
const { runSrtStep } = await import("./chunk-wtpwkjws.js");
|
|
12
12
|
await runSrtStep(args.slice(1));
|
|
13
13
|
} else if (args[0] === "opencode-read") {
|
|
14
|
-
const { runOpencodeReader } = await import("./chunk-
|
|
14
|
+
const { runOpencodeReader } = await import("./chunk-60333x3q.js");
|
|
15
15
|
runOpencodeReader();
|
|
16
16
|
} else {
|
|
17
|
-
const { runCli } = await import("./chunk-
|
|
17
|
+
const { runCli } = await import("./chunk-cc4cy79t.js");
|
|
18
18
|
runCli(args);
|
|
19
19
|
}
|