@kitman-sh/cli 0.28.0 → 0.29.0
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-ja48xvcs.js → chunk-18x6rmkq.js} +9 -9
- package/dist/{chunk-tsx0347c.js → chunk-1hgsf81a.js} +1 -1
- package/dist/{chunk-egzbfz18.js → chunk-1yyq4nh2.js} +24 -24
- package/dist/{chunk-samxkpbz.js → chunk-4qrb09w4.js} +3 -3
- package/dist/{chunk-t6ynnbcb.js → chunk-4tdk1w0k.js} +7 -7
- package/dist/{chunk-h2f26xbd.js → chunk-61dmxexa.js} +70 -28
- package/dist/{chunk-1vnvmeqr.js → chunk-801jtbdq.js} +3 -3
- package/dist/{chunk-zty7be4e.js → chunk-89eskdmq.js} +22 -22
- package/dist/{chunk-vv7zg8rb.js → chunk-8andwyqa.js} +5 -5
- package/dist/{chunk-zysde2fp.js → chunk-9zxzmsmm.js} +9 -9
- package/dist/{chunk-sgtt81qc.js → chunk-cbkj3km5.js} +1 -1
- package/dist/{chunk-jhby2e0v.js → chunk-cm2sr223.js} +74 -74
- package/dist/{chunk-7re3n1ze.js → chunk-e491q405.js} +10 -10
- package/dist/{chunk-8t2wcrvv.js → chunk-eshk0da5.js} +2 -2
- package/dist/{chunk-220vzyz9.js → chunk-f9fhdprs.js} +4 -4
- package/dist/{chunk-npfdbssf.js → chunk-fyjet273.js} +4 -4
- package/dist/{chunk-bsgvmq34.js → chunk-j021bman.js} +14 -60
- package/dist/{chunk-w4mr1bhh.js → chunk-pyjx5q5s.js} +1 -1
- package/dist/{chunk-ks4q040v.js → chunk-q1medqp5.js} +6 -6
- package/dist/{chunk-vz38kngm.js → chunk-q8e58p57.js} +2 -2
- package/dist/{chunk-4qjfn1sa.js → chunk-rbpn35g5.js} +1 -1
- package/dist/{chunk-j4b1yvcd.js → chunk-sm340tvm.js} +26 -17
- package/dist/{chunk-z05pkzhf.js → chunk-vshy6fm5.js} +10 -10
- package/dist/{chunk-fpmmafh8.js → chunk-wqdxszpm.js} +19 -19
- package/dist/{chunk-xppw33hz.js → chunk-y6petreh.js} +116 -124
- package/dist/{chunk-5kqt4bqp.js → chunk-znhjs0t6.js} +1 -1
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
succeed,
|
|
13
13
|
isSuccess,
|
|
14
14
|
TaggedError,
|
|
15
|
-
|
|
15
|
+
make15,
|
|
16
16
|
_await,
|
|
17
17
|
fail5,
|
|
18
18
|
succeed5,
|
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
decodeJsonStringOption,
|
|
109
109
|
encodeJsonStringSync,
|
|
110
110
|
encodePrettyJsonString
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-61dmxexa.js";
|
|
112
112
|
import {
|
|
113
113
|
tap,
|
|
114
114
|
mapError,
|
|
@@ -120,7 +120,7 @@ import {
|
|
|
120
120
|
withDefault,
|
|
121
121
|
option,
|
|
122
122
|
String2
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-sm340tvm.js";
|
|
124
124
|
import {
|
|
125
125
|
currentTimeMillis,
|
|
126
126
|
SecureRandom,
|
|
@@ -185,7 +185,7 @@ import {
|
|
|
185
185
|
digestSha256,
|
|
186
186
|
sha256Hasher,
|
|
187
187
|
raw,
|
|
188
|
-
|
|
188
|
+
make4,
|
|
189
189
|
get,
|
|
190
190
|
put,
|
|
191
191
|
HttpClient,
|
|
@@ -251,15 +251,15 @@ import {
|
|
|
251
251
|
harnessNames,
|
|
252
252
|
herdrRunnerCapabilities2,
|
|
253
253
|
declaredChecks
|
|
254
|
-
} from "./chunk-
|
|
254
|
+
} from "./chunk-y6petreh.js";
|
|
255
255
|
import {
|
|
256
256
|
ChildProcessSpawner,
|
|
257
|
-
|
|
258
|
-
} from "./chunk-
|
|
257
|
+
make2
|
|
258
|
+
} from "./chunk-j021bman.js";
|
|
259
259
|
import {
|
|
260
260
|
Id,
|
|
261
261
|
Timestamp
|
|
262
|
-
} from "./chunk-
|
|
262
|
+
} from "./chunk-rbpn35g5.js";
|
|
263
263
|
|
|
264
264
|
// apps/cli/src/cli-error.ts
|
|
265
265
|
function cliErrorCode(error, status) {
|
|
@@ -1326,10 +1326,10 @@ var sandboxMissing = (sandbox, missing) => ({
|
|
|
1326
1326
|
var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
|
|
1327
1327
|
var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
|
|
1328
1328
|
var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
|
|
1329
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
1329
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-f9fhdprs.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
|
|
1330
1330
|
});
|
|
1331
1331
|
var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
|
|
1332
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
1332
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-f9fhdprs.js")), (module) => module.updateHerdrCore(options))
|
|
1333
1333
|
});
|
|
1334
1334
|
var herdrCoreMissing = (error) => {
|
|
1335
1335
|
if (isTagged(error, "HerdrCoreMissing"))
|
|
@@ -1773,7 +1773,7 @@ var syncTargets = (harness) => gen(function* () {
|
|
|
1773
1773
|
});
|
|
1774
1774
|
var syncKits = (input) => gen(function* () {
|
|
1775
1775
|
const fs = yield* FileSystem;
|
|
1776
|
-
const { syncKitSetup } = yield* promise(() => import("./chunk-
|
|
1776
|
+
const { syncKitSetup } = yield* promise(() => import("./chunk-vshy6fm5.js"));
|
|
1777
1777
|
const harnesses = yield* syncTargets(input.harness);
|
|
1778
1778
|
const chain = yield* input.client.getKitChain(input.workspaceId);
|
|
1779
1779
|
for (const { name, problem } of chain.skipped)
|
|
@@ -2290,7 +2290,7 @@ var ServiceManager = Reference("kitman/cli/ServiceManager", {
|
|
|
2290
2290
|
run: (command, args) => runCommand2(command, args),
|
|
2291
2291
|
attach: (command, args) => gen(function* () {
|
|
2292
2292
|
const spawner = yield* ChildProcessSpawner;
|
|
2293
|
-
const handle = yield* spawner.spawn(
|
|
2293
|
+
const handle = yield* spawner.spawn(make2(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
|
|
2294
2294
|
const exitCode = yield* handle.exitCode;
|
|
2295
2295
|
if (exitCode !== 0)
|
|
2296
2296
|
return yield* new CommandFailed2({ command, reason: `exit code ${exitCode}` });
|
|
@@ -3268,7 +3268,7 @@ var shipped_steps_generated_default = {
|
|
|
3268
3268
|
};
|
|
3269
3269
|
|
|
3270
3270
|
// apps/cli/src/scaffold-files.ts
|
|
3271
|
-
var cliVersion = "0.
|
|
3271
|
+
var cliVersion = "0.29.0";
|
|
3272
3272
|
var shippedLoopSteps = new Map(Object.entries(shipped_steps_generated_default));
|
|
3273
3273
|
var loopSteps = (loop) => shippedLoopSteps.get(loop) ?? [];
|
|
3274
3274
|
var replacedStep = (loop) => loopSteps(loop).find((step) => step.from === defaultKitName && step.exported?.startsWith("steps.") === true);
|
|
@@ -3533,7 +3533,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
|
|
|
3533
3533
|
|
|
3534
3534
|
// apps/cli/src/commands.ts
|
|
3535
3535
|
var ClientId = "kitman-cli";
|
|
3536
|
-
var agentRuntime = promise(() => import("./chunk-
|
|
3536
|
+
var agentRuntime = promise(() => import("./chunk-cm2sr223.js"));
|
|
3537
3537
|
var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
|
|
3538
3538
|
defaultValue: () => gen(function* () {
|
|
3539
3539
|
const tui = yield* tryPromise({
|
|
@@ -5072,7 +5072,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
|
|
|
5072
5072
|
});
|
|
5073
5073
|
var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
|
|
5074
5074
|
defaultValue: () => (options) => gen(function* () {
|
|
5075
|
-
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-
|
|
5075
|
+
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-q1medqp5.js"));
|
|
5076
5076
|
return yield* makeRunnerRpcClient({
|
|
5077
5077
|
runnerId: options.runnerId,
|
|
5078
5078
|
bearer: options.bearer,
|
|
@@ -5387,7 +5387,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
5387
5387
|
yield* controlPlane.client.listRepoBindings(runner.workspaceId).pipe(flatMap3(({ items }) => forEach(items.filter((binding) => binding.status === "active" && (teamId === undefined || binding.teamId === teamId)), (repoBinding) => map9(checkouts.reaches(repoBinding), (reachable) => ({ repoBinding, reachable })), { concurrency: 4 })), tap2((probed) => sync2(() => reached = probed)), catch_((error) => logWarning("runner_repository_probe_failed", error.message)), flatMap3(() => sleep(reached.some((probe) => !probe.reachable) ? repositoryRetryInterval : repositoryProbeInterval)), forever, forkScoped);
|
|
5388
5388
|
yield* suspend3(() => sleep(ownerLogin.expired() ? ownerLoginRetryInterval : ownerLoginInterval)).pipe(andThen2(checkOwnerLogin), forever, forkScoped);
|
|
5389
5389
|
const platform = yield* context();
|
|
5390
|
-
const updated = yield*
|
|
5390
|
+
const updated = yield* make15();
|
|
5391
5391
|
const scope = yield* scope2;
|
|
5392
5392
|
const startUpdate = (update) => update.pipe(catch_((error) => andThen2(restartOntoUpdate(input.runnerId), fail5(updated, error))), provideContext2(platform), forkIn(scope), asVoid);
|
|
5393
5393
|
const refusedForProtocol = container ? updater.stopWhenDrained(new RunnerStopped({ problem: updateRequired })).pipe(catch_((stopped) => fail5(updated, stopped)), forkIn(scope), asVoid) : startUpdate(updater.updateRequired);
|
|
@@ -5648,7 +5648,7 @@ function mcpCommand(args) {
|
|
|
5648
5648
|
if (command.action === "run") {
|
|
5649
5649
|
if (command.args.length > 0)
|
|
5650
5650
|
return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
|
|
5651
|
-
const { runMcpServerCommand } = yield* promise(() => import("./chunk-
|
|
5651
|
+
const { runMcpServerCommand } = yield* promise(() => import("./chunk-1yyq4nh2.js"));
|
|
5652
5652
|
return yield* runMcpServerCommand({ flags: command.flags });
|
|
5653
5653
|
}
|
|
5654
5654
|
if (command.action !== "setup")
|
|
@@ -6148,7 +6148,7 @@ function programLoopCommand(command) {
|
|
|
6148
6148
|
return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
|
|
6149
6149
|
});
|
|
6150
6150
|
}
|
|
6151
|
-
var docsModule = promise(() => import("./chunk-
|
|
6151
|
+
var docsModule = promise(() => import("./chunk-cbkj3km5.js"));
|
|
6152
6152
|
function docsCommand(args) {
|
|
6153
6153
|
return gen(function* () {
|
|
6154
6154
|
const command = parseCommand(args);
|
|
@@ -7152,7 +7152,7 @@ function changeRequestCommand(args) {
|
|
|
7152
7152
|
yield* log(command.action === "approve" ? `Approved ${short} of ${changeRequest.title}. A Run waiting on approval of ${short} resumes; one waiting on another head does not.` : `Requested changes to ${short} of ${changeRequest.title}`);
|
|
7153
7153
|
});
|
|
7154
7154
|
}
|
|
7155
|
-
var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-
|
|
7155
|
+
var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-wqdxszpm.js")), (build) => build.readOutlines(directory)).pipe(mapError2((error) => new CliError({ message: error.message })));
|
|
7156
7156
|
var loopOutline = (command) => gen(function* () {
|
|
7157
7157
|
const path = yield* Path;
|
|
7158
7158
|
const loop = requiredArg(command, "a Loop id");
|
|
@@ -7172,9 +7172,9 @@ var loopOutline = (command) => gen(function* () {
|
|
|
7172
7172
|
`).pipe(mapError2((error) => new CliError({ message: error.message })));
|
|
7173
7173
|
yield* log(`Wrote the outline of ${loop} to ${out}`);
|
|
7174
7174
|
});
|
|
7175
|
-
var KitWriter = map9(promise(() => import("./chunk-
|
|
7175
|
+
var KitWriter = map9(promise(() => import("./chunk-wqdxszpm.js")), (build) => build.writeKit);
|
|
7176
7176
|
var KitBuilder = Reference("kitman/cli/KitBuilder", {
|
|
7177
|
-
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-
|
|
7177
|
+
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-wqdxszpm.js")), (build) => build.buildKit(directory))
|
|
7178
7178
|
});
|
|
7179
7179
|
var uploadKit = (client, workspaceId, built) => gen(function* () {
|
|
7180
7180
|
yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
|
|
@@ -7953,7 +7953,7 @@ function downloadPresignedAsset(download, outputPath) {
|
|
|
7953
7953
|
return gen(function* () {
|
|
7954
7954
|
const fs = yield* FileSystem;
|
|
7955
7955
|
const failed = (cause) => new CliError({ message: `Asset download failed: ${String(cause)}` });
|
|
7956
|
-
const response = yield* send(
|
|
7956
|
+
const response = yield* send(make4(download.method)(download.url), failed);
|
|
7957
7957
|
if (response.status < 200 || response.status >= 300)
|
|
7958
7958
|
return yield* new CliError({ message: `Asset download failed with ${response.status}` });
|
|
7959
7959
|
const body = yield* response.arrayBuffer.pipe(mapError2((error) => failed(error.message)));
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
Defect,
|
|
97
97
|
Exit,
|
|
98
98
|
toCodecJson
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-61dmxexa.js";
|
|
100
100
|
import {
|
|
101
101
|
interrupt,
|
|
102
102
|
getCurrent,
|
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
shutdownUnsafe,
|
|
109
109
|
fromQueue,
|
|
110
110
|
unwrap
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-sm340tvm.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-y6petreh.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")) {
|
|
@@ -483,7 +483,7 @@ var makeNoSerialization = /* @__PURE__ */ fnUntraced(function* (group, options)
|
|
|
483
483
|
};
|
|
484
484
|
});
|
|
485
485
|
var clientIdCounter = 0;
|
|
486
|
-
var
|
|
486
|
+
var make3 = /* @__PURE__ */ fnUntraced(function* (group, options) {
|
|
487
487
|
const clientId = clientIdCounter++;
|
|
488
488
|
const {
|
|
489
489
|
codecFor,
|
|
@@ -829,4 +829,4 @@ var layerProtocolSocket = (options) => effect(Protocol)(makeProtocolSocket(optio
|
|
|
829
829
|
class ConnectionHooks extends (/* @__PURE__ */ Service2()("effect/rpc/RpcClient/ConnectionHooks")) {
|
|
830
830
|
}
|
|
831
831
|
|
|
832
|
-
export { layerJson,
|
|
832
|
+
export { layerJson, make3, withHeaders, layerProtocolSocket, ConnectionHooks };
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import {
|
|
3
|
+
FileSystem,
|
|
4
|
+
Path,
|
|
5
|
+
optionalEnv,
|
|
6
|
+
tempDirectoryScoped
|
|
7
|
+
} from "./chunk-sm340tvm.js";
|
|
2
8
|
import {
|
|
3
9
|
Reference,
|
|
4
10
|
TaggedError,
|
|
@@ -25,21 +31,15 @@ import {
|
|
|
25
31
|
isString2,
|
|
26
32
|
encodePrettyJsonString,
|
|
27
33
|
decodeJsonStringSync
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import {
|
|
30
|
-
FileSystem,
|
|
31
|
-
Path,
|
|
32
|
-
optionalEnv,
|
|
33
|
-
tempDirectoryScoped
|
|
34
|
-
} from "./chunk-j4b1yvcd.js";
|
|
34
|
+
} from "./chunk-61dmxexa.js";
|
|
35
35
|
import {
|
|
36
36
|
AgentHarnessIds,
|
|
37
37
|
sha2562,
|
|
38
38
|
runCommand2
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-y6petreh.js";
|
|
40
40
|
import {
|
|
41
41
|
NpmRegistry
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-801jtbdq.js";
|
|
43
43
|
|
|
44
44
|
// packages/agent-runtime/src/config-convergence.ts
|
|
45
45
|
var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
isFailure2,
|
|
44
44
|
hasInterrupts,
|
|
45
45
|
makeUnsafe5,
|
|
46
|
-
|
|
46
|
+
make15,
|
|
47
47
|
_await,
|
|
48
48
|
fail5,
|
|
49
49
|
isDoneUnsafe,
|
|
@@ -172,7 +172,53 @@ import {
|
|
|
172
172
|
decodeJsonStringSync,
|
|
173
173
|
encodeUnknownJsonStringSync,
|
|
174
174
|
storable
|
|
175
|
-
} from "./chunk-
|
|
175
|
+
} from "./chunk-61dmxexa.js";
|
|
176
|
+
import {
|
|
177
|
+
join,
|
|
178
|
+
interrupt,
|
|
179
|
+
unbounded,
|
|
180
|
+
publishUnsafe,
|
|
181
|
+
unbounded2,
|
|
182
|
+
offer,
|
|
183
|
+
makeUnsafe3,
|
|
184
|
+
make10,
|
|
185
|
+
fromQueue,
|
|
186
|
+
fromPubSub,
|
|
187
|
+
map2,
|
|
188
|
+
filter,
|
|
189
|
+
take2,
|
|
190
|
+
mapAccum,
|
|
191
|
+
decodeText,
|
|
192
|
+
encodeText,
|
|
193
|
+
splitLines,
|
|
194
|
+
run,
|
|
195
|
+
runCollect,
|
|
196
|
+
runFold,
|
|
197
|
+
runHead,
|
|
198
|
+
runForEach,
|
|
199
|
+
FileSystem,
|
|
200
|
+
Path,
|
|
201
|
+
embeddedFile,
|
|
202
|
+
extractEmbeddedFile,
|
|
203
|
+
optionalEnv,
|
|
204
|
+
operatorConfigHome,
|
|
205
|
+
tempDirectoryScoped,
|
|
206
|
+
harnessesUnsupportedInSrt2,
|
|
207
|
+
harnessesUnsupportedInDocker2,
|
|
208
|
+
compiled2,
|
|
209
|
+
pinnedSrtCommand2,
|
|
210
|
+
pinnedSrtStepCommand2,
|
|
211
|
+
runSrtCli2,
|
|
212
|
+
kitmanCacheDirectory2,
|
|
213
|
+
srtSettings2,
|
|
214
|
+
srtCacheEnvironment2,
|
|
215
|
+
srtInheritedEnv2,
|
|
216
|
+
inheritedEnvironment2,
|
|
217
|
+
withOnlyEnvironment2,
|
|
218
|
+
writeSrtSettings2,
|
|
219
|
+
srtStepArgv2,
|
|
220
|
+
srtArgv2
|
|
221
|
+
} from "./chunk-sm340tvm.js";
|
|
176
222
|
import {
|
|
177
223
|
currentTimeMillis,
|
|
178
224
|
SecureRandom,
|
|
@@ -261,53 +307,7 @@ import {
|
|
|
261
307
|
checkServicesFile,
|
|
262
308
|
checkServices,
|
|
263
309
|
serviceChecks
|
|
264
|
-
} from "./chunk-
|
|
265
|
-
import {
|
|
266
|
-
join,
|
|
267
|
-
interrupt,
|
|
268
|
-
unbounded,
|
|
269
|
-
publishUnsafe,
|
|
270
|
-
unbounded2,
|
|
271
|
-
offer,
|
|
272
|
-
makeUnsafe3,
|
|
273
|
-
make11,
|
|
274
|
-
fromQueue,
|
|
275
|
-
fromPubSub,
|
|
276
|
-
map2,
|
|
277
|
-
filter,
|
|
278
|
-
take2,
|
|
279
|
-
mapAccum,
|
|
280
|
-
decodeText,
|
|
281
|
-
encodeText,
|
|
282
|
-
splitLines,
|
|
283
|
-
run,
|
|
284
|
-
runCollect,
|
|
285
|
-
runFold,
|
|
286
|
-
runHead,
|
|
287
|
-
runForEach,
|
|
288
|
-
FileSystem,
|
|
289
|
-
Path,
|
|
290
|
-
embeddedFile,
|
|
291
|
-
extractEmbeddedFile,
|
|
292
|
-
optionalEnv,
|
|
293
|
-
operatorConfigHome,
|
|
294
|
-
tempDirectoryScoped,
|
|
295
|
-
harnessesUnsupportedInSrt2,
|
|
296
|
-
harnessesUnsupportedInDocker2,
|
|
297
|
-
compiled2,
|
|
298
|
-
pinnedSrtCommand2,
|
|
299
|
-
pinnedSrtStepCommand2,
|
|
300
|
-
runSrtCli2,
|
|
301
|
-
kitmanCacheDirectory2,
|
|
302
|
-
srtSettings2,
|
|
303
|
-
srtCacheEnvironment2,
|
|
304
|
-
srtInheritedEnv2,
|
|
305
|
-
inheritedEnvironment2,
|
|
306
|
-
withOnlyEnvironment2,
|
|
307
|
-
writeSrtSettings2,
|
|
308
|
-
srtStepArgv2,
|
|
309
|
-
srtArgv2
|
|
310
|
-
} from "./chunk-j4b1yvcd.js";
|
|
310
|
+
} from "./chunk-y6petreh.js";
|
|
311
311
|
import {
|
|
312
312
|
writeAgentEnvironmentConfigFile2,
|
|
313
313
|
readManifestSkillPaths2,
|
|
@@ -323,8 +323,8 @@ import {
|
|
|
323
323
|
applyAgentEnvironmentMaterialization2,
|
|
324
324
|
isPathWithin2,
|
|
325
325
|
skillIdentity2
|
|
326
|
-
} from "./chunk-
|
|
327
|
-
import"./chunk-
|
|
326
|
+
} from "./chunk-9zxzmsmm.js";
|
|
327
|
+
import"./chunk-801jtbdq.js";
|
|
328
328
|
import {
|
|
329
329
|
egressAllowed,
|
|
330
330
|
writeSecretRegistry,
|
|
@@ -334,7 +334,7 @@ import {
|
|
|
334
334
|
secretFilter2,
|
|
335
335
|
opaqueTunnelRefusal2,
|
|
336
336
|
isOpaqueConnectReason2
|
|
337
|
-
} from "./chunk-
|
|
337
|
+
} from "./chunk-q8e58p57.js";
|
|
338
338
|
import {
|
|
339
339
|
sliceBytes2,
|
|
340
340
|
maxLineBytes2,
|
|
@@ -342,29 +342,29 @@ import {
|
|
|
342
342
|
decodedOption2,
|
|
343
343
|
decoded2,
|
|
344
344
|
readOpencode2
|
|
345
|
-
} from "./chunk-
|
|
345
|
+
} from "./chunk-e491q405.js";
|
|
346
346
|
import {
|
|
347
347
|
uploadRunFile,
|
|
348
348
|
programLease,
|
|
349
349
|
rpcRunFiles,
|
|
350
350
|
programHostsEnv,
|
|
351
351
|
undeclaredHostsEnv
|
|
352
|
-
} from "./chunk-
|
|
353
|
-
import"./chunk-
|
|
352
|
+
} from "./chunk-18x6rmkq.js";
|
|
353
|
+
import"./chunk-4tdk1w0k.js";
|
|
354
354
|
import {
|
|
355
355
|
nextInt
|
|
356
|
-
} from "./chunk-
|
|
357
|
-
import"./chunk-
|
|
356
|
+
} from "./chunk-znhjs0t6.js";
|
|
357
|
+
import"./chunk-1hgsf81a.js";
|
|
358
358
|
import {
|
|
359
359
|
ChildProcessSpawner,
|
|
360
|
-
|
|
361
|
-
} from "./chunk-
|
|
362
|
-
import"./chunk-
|
|
360
|
+
make2
|
|
361
|
+
} from "./chunk-j021bman.js";
|
|
362
|
+
import"./chunk-8andwyqa.js";
|
|
363
363
|
import {
|
|
364
364
|
Id,
|
|
365
365
|
secretReference,
|
|
366
366
|
secretPlaceholder
|
|
367
|
-
} from "./chunk-
|
|
367
|
+
} from "./chunk-rbpn35g5.js";
|
|
368
368
|
|
|
369
369
|
// packages/core/src/sync-kit.ts
|
|
370
370
|
import { createHash } from "crypto";
|
|
@@ -8032,7 +8032,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
|
|
|
8032
8032
|
const input = yield* unbounded2();
|
|
8033
8033
|
const pending = new Map;
|
|
8034
8034
|
let lastId = 0;
|
|
8035
|
-
const handle = yield* spawner.spawn(
|
|
8035
|
+
const handle = yield* spawner.spawn(make2(binary, ["app-server"], {
|
|
8036
8036
|
cwd: env.home,
|
|
8037
8037
|
extendEnv: true,
|
|
8038
8038
|
env: { HOME: env.home, CODEX_HOME: env.codexHome },
|
|
@@ -8055,7 +8055,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
|
|
|
8055
8055
|
return {
|
|
8056
8056
|
request: (method, params) => gen(function* () {
|
|
8057
8057
|
const id = ++lastId;
|
|
8058
|
-
const deferred = yield*
|
|
8058
|
+
const deferred = yield* make15();
|
|
8059
8059
|
pending.set(id, deferred);
|
|
8060
8060
|
yield* send({ id, method, params });
|
|
8061
8061
|
return yield* _await(deferred).pipe(mapError2((error) => new CodexAppServerFailed({ reason: `${method}: ${error.message}` })));
|
|
@@ -8195,10 +8195,10 @@ var handshake = [
|
|
|
8195
8195
|
`).join("");
|
|
8196
8196
|
var kitmanMcpPreflight = (mcp) => gen(function* () {
|
|
8197
8197
|
const spawner = yield* ChildProcessSpawner;
|
|
8198
|
-
const server = yield* spawner.spawn(
|
|
8198
|
+
const server = yield* spawner.spawn(make2(mcp.command, [...mcp.args], {
|
|
8199
8199
|
extendEnv: true,
|
|
8200
8200
|
env: mcp.env,
|
|
8201
|
-
stdin: { stream:
|
|
8201
|
+
stdin: { stream: make10(new TextEncoder().encode(handshake)), endOnDone: false },
|
|
8202
8202
|
stderr: "ignore"
|
|
8203
8203
|
}));
|
|
8204
8204
|
const reply = yield* server.stdout.pipe(decodeText, splitLines, map2((line) => getOrUndefined(decodeJsonStringOption(line))), filter((message) => isJsonObject(message) && message.id === 2), runHead);
|
|
@@ -8271,8 +8271,8 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
|
|
|
8271
8271
|
};
|
|
8272
8272
|
const exitCode = sandbox === undefined ? yield* gen(function* () {
|
|
8273
8273
|
const spawner = yield* ChildProcessSpawner;
|
|
8274
|
-
const handle = yield* spawner.spawn(
|
|
8275
|
-
stdin:
|
|
8274
|
+
const handle = yield* spawner.spawn(make2(input.bun ?? process.execPath, [file], {
|
|
8275
|
+
stdin: make10(new TextEncoder().encode(stdin)),
|
|
8276
8276
|
stdout: "inherit",
|
|
8277
8277
|
stderr: "inherit",
|
|
8278
8278
|
extendEnv: false,
|
|
@@ -8596,11 +8596,11 @@ if (false)
|
|
|
8596
8596
|
var checkTimeout = "30 minutes";
|
|
8597
8597
|
var checkFilesPerVerification = 50;
|
|
8598
8598
|
var halfCloseListener = (encoder, listenPort, relayPort) => `BUN_BE_BUN=1 ${encoder.map(quoted).join(" ")} ${listenPort} "$HTTP_PROXY" ${relayPort}`;
|
|
8599
|
-
var srtDockerTunnel = (relayPort, encoder) => srtLoopbackTunnel({
|
|
8599
|
+
var srtDockerTunnel = (relayPort, encoder, listenPort) => srtLoopbackTunnel({
|
|
8600
8600
|
service: "Docker daemon",
|
|
8601
8601
|
hostPort: relayPort,
|
|
8602
|
-
listenPort
|
|
8603
|
-
listener: halfCloseListener(encoder,
|
|
8602
|
+
listenPort,
|
|
8603
|
+
listener: halfCloseListener(encoder, listenPort, relayPort),
|
|
8604
8604
|
probe: String.raw`printf 'GET /_ping HTTP/1.0\r\n\r\n'`,
|
|
8605
8605
|
read: "tail -c 2",
|
|
8606
8606
|
answers: "OK"
|
|
@@ -8610,7 +8610,7 @@ var pipelineEnvironment = (docker, dockerHost) => ({
|
|
|
8610
8610
|
DOCKER_CONFIG: `${docker.clientDir}/docker`,
|
|
8611
8611
|
GCL_HOME: `${docker.clientDir}/gitlab-ci-local-home`
|
|
8612
8612
|
});
|
|
8613
|
-
var dockerRoute = (backend, docker) => {
|
|
8613
|
+
var dockerRoute = (backend, docker, srtDockerPort) => {
|
|
8614
8614
|
if (docker === undefined)
|
|
8615
8615
|
return { env: {}, hosts: [], unixSockets: [], services: [], tunnel: undefined };
|
|
8616
8616
|
if (backend === "docker")
|
|
@@ -8636,11 +8636,11 @@ var dockerRoute = (backend, docker) => {
|
|
|
8636
8636
|
};
|
|
8637
8637
|
case "relay":
|
|
8638
8638
|
return {
|
|
8639
|
-
env: pipelineEnvironment(docker, `tcp://127.0.0.1:${
|
|
8639
|
+
env: pipelineEnvironment(docker, `tcp://127.0.0.1:${srtDockerPort}`),
|
|
8640
8640
|
hosts: [`127.0.0.1:${docker.route.port}`],
|
|
8641
8641
|
unixSockets: [],
|
|
8642
8642
|
services: [],
|
|
8643
|
-
tunnel: srtDockerTunnel(docker.route.port, docker.route.encoder)
|
|
8643
|
+
tunnel: srtDockerTunnel(docker.route.port, docker.route.encoder, srtDockerPort)
|
|
8644
8644
|
};
|
|
8645
8645
|
case "direct":
|
|
8646
8646
|
throw new Error("A pipeline check in srt reaches its daemon through a socket or the relay, never directly.");
|
|
@@ -8733,7 +8733,7 @@ var checkRunner = (work, sandbox, cache, inherited, threadBudget) => (checkout)
|
|
|
8733
8733
|
});
|
|
8734
8734
|
}
|
|
8735
8735
|
const route = postgresRoute(sandbox.backend, postgres);
|
|
8736
|
-
const daemon = dockerRoute(sandbox.backend, docker);
|
|
8736
|
+
const daemon = dockerRoute(sandbox.backend, docker, (sandbox.backend === "srt" ? sandbox.dockerPort : undefined) ?? checkDockerPort);
|
|
8737
8737
|
const policy = checkSandboxPolicy(work, sandbox, checkout, cache, filesDir, [...route.hosts, ...daemon.hosts], docker);
|
|
8738
8738
|
const [tunnel, ...innerTunnels] = [route.tunnel, daemon.tunnel].filter((script) => script !== undefined);
|
|
8739
8739
|
const tunnelled = innerTunnels.reduceRight((inner, script) => `sh -c ${quoted(script)} sh ${quoted(inner)}`, command);
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import {
|
|
3
|
+
make10,
|
|
4
|
+
runForEach,
|
|
5
|
+
compiled2
|
|
6
|
+
} from "./chunk-sm340tvm.js";
|
|
2
7
|
import {
|
|
3
8
|
getOrUndefined,
|
|
4
9
|
liftThrowable,
|
|
@@ -25,16 +30,11 @@ import {
|
|
|
25
30
|
isJsonObject,
|
|
26
31
|
isString2,
|
|
27
32
|
encodeUnknownJsonStringSync
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import {
|
|
30
|
-
make11,
|
|
31
|
-
runForEach,
|
|
32
|
-
compiled2
|
|
33
|
-
} from "./chunk-j4b1yvcd.js";
|
|
33
|
+
} from "./chunk-61dmxexa.js";
|
|
34
34
|
import {
|
|
35
35
|
ChildProcessSpawner,
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
36
|
+
make2
|
|
37
|
+
} from "./chunk-j021bman.js";
|
|
38
38
|
|
|
39
39
|
// packages/agent-runtime/src/opencode-store.ts
|
|
40
40
|
import { lstatSync, readFileSync, realpathSync } from "fs";
|
|
@@ -172,8 +172,8 @@ var opencodeReaderCommand = () => compiled2 ? [process.execPath, "opencode-read"
|
|
|
172
172
|
var isolatedRead = (store, name, input) => gen(function* () {
|
|
173
173
|
const spawner = yield* ChildProcessSpawner;
|
|
174
174
|
const [command, ...args] = opencodeReaderCommand();
|
|
175
|
-
const handle = yield* spawner.spawn(
|
|
176
|
-
stdin:
|
|
175
|
+
const handle = yield* spawner.spawn(make2(command, args, {
|
|
176
|
+
stdin: make10(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
|
|
177
177
|
stderr: "ignore",
|
|
178
178
|
extendEnv: false,
|
|
179
179
|
env: {},
|
|
@@ -15,8 +15,8 @@ import {
|
|
|
15
15
|
writeSrtSettings2,
|
|
16
16
|
srtStepArgv2,
|
|
17
17
|
srtArgv2
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import"./chunk-
|
|
18
|
+
} from "./chunk-sm340tvm.js";
|
|
19
|
+
import"./chunk-61dmxexa.js";
|
|
20
20
|
export {
|
|
21
21
|
compiled2 as compiled,
|
|
22
22
|
harnessesUnsupportedInDocker2 as harnessesUnsupportedInDocker,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-j021bman.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-y6petreh.js";
|
|
16
|
+
import"./chunk-sm340tvm.js";
|
|
17
|
+
import"./chunk-61dmxexa.js";
|
|
18
18
|
export {
|
|
19
19
|
HERDR_CORE_GENERATION2 as HERDR_CORE_GENERATION,
|
|
20
20
|
HERDR_CORE_INSTALL_COMMAND2 as HERDR_CORE_INSTALL_COMMAND,
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
decoded2,
|
|
8
8
|
readOpencode2,
|
|
9
9
|
runOpencodeReader2
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import"./chunk-
|
|
12
|
-
import"./chunk-
|
|
13
|
-
import"./chunk-
|
|
10
|
+
} from "./chunk-e491q405.js";
|
|
11
|
+
import"./chunk-j021bman.js";
|
|
12
|
+
import"./chunk-sm340tvm.js";
|
|
13
|
+
import"./chunk-61dmxexa.js";
|
|
14
14
|
export {
|
|
15
15
|
decoded2 as decoded,
|
|
16
16
|
decodedOption2 as decodedOption,
|