@kitman-sh/cli 0.14.3 → 0.14.4
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-bbf0jzsc.js → chunk-0kreahhj.js} +1 -1
- package/dist/{chunk-91j33xf2.js → chunk-4yvafzhp.js} +6 -6
- package/dist/{chunk-ctpgfdzf.js → chunk-5c4tn29r.js} +3 -3
- package/dist/{chunk-3f6mzrm7.js → chunk-6zwwrpve.js} +1 -1
- package/dist/{chunk-my9vcmfw.js → chunk-af3m4nhz.js} +44 -30
- package/dist/{chunk-a4mkjaxa.js → chunk-c6fanp7r.js} +6 -6
- package/dist/{chunk-7q3t3x0x.js → chunk-dz7qcbpp.js} +6 -6
- package/dist/{chunk-zpp4jg4a.js → chunk-ec01eq70.js} +215 -71
- package/dist/{chunk-rvnem2bt.js → chunk-kg32dz1w.js} +4 -4
- package/dist/{chunk-zxmx605h.js → chunk-me1zn085.js} +2 -2
- package/dist/{chunk-7v1n7a6k.js → chunk-nmw831xh.js} +4 -4
- package/dist/{chunk-y0y2gg8d.js → chunk-p9wzycsm.js} +2 -2
- package/dist/{chunk-9anvghq2.js → chunk-pcyscxe1.js} +2 -2
- package/dist/{chunk-hasfatd4.js → chunk-pvv8y59t.js} +5 -5
- package/dist/{chunk-65dpe0ev.js → chunk-q1y9qjjp.js} +5 -3
- package/dist/{chunk-34748vfg.js → chunk-qd9bkybz.js} +123 -288
- package/dist/{chunk-f96vy2h9.js → chunk-qnb3a82t.js} +4 -4
- package/dist/{chunk-44kx62t6.js → chunk-ra22g5nv.js} +7 -7
- package/dist/{chunk-tebzffha.js → chunk-rx2cg7rn.js} +17 -17
- package/dist/{chunk-2w9a76nr.js → chunk-tnrmd4hz.js} +178 -163
- package/dist/{chunk-er9n65mh.js → chunk-v26jmjr0.js} +9 -9
- package/dist/{chunk-daem5h1c.js → chunk-wvhm5fgh.js} +14 -14
- package/dist/{chunk-dhtx14r5.js → chunk-x2jjnfff.js} +3 -3
- package/dist/{chunk-9avbsbvk.js → chunk-yv2mq2e9.js} +6 -1
- package/dist/{chunk-rgrpvnwg.js → chunk-zv1sshtj.js} +22 -22
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -6,7 +6,10 @@ import {
|
|
|
6
6
|
gen,
|
|
7
7
|
flatMap3,
|
|
8
8
|
provideContext2
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ec01eq70.js";
|
|
10
|
+
import {
|
|
11
|
+
runForEach
|
|
12
|
+
} from "./chunk-tnrmd4hz.js";
|
|
10
13
|
import {
|
|
11
14
|
WebSocketConstructor,
|
|
12
15
|
layerWebSocketConstructorGlobal,
|
|
@@ -16,16 +19,13 @@ import {
|
|
|
16
19
|
RunnerReplicaRpcs,
|
|
17
20
|
RunnerRunFileRpcs,
|
|
18
21
|
ProgramRpcs
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import {
|
|
21
|
-
runForEach
|
|
22
|
-
} from "./chunk-2w9a76nr.js";
|
|
22
|
+
} from "./chunk-qd9bkybz.js";
|
|
23
23
|
import {
|
|
24
24
|
layerJson,
|
|
25
25
|
make4,
|
|
26
26
|
withHeaders,
|
|
27
27
|
layerProtocolSocket
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-rx2cg7rn.js";
|
|
29
29
|
|
|
30
30
|
// packages/live/src/rpc/runner-client.ts
|
|
31
31
|
var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
opaqueTunnelRefusal2,
|
|
5
5
|
isOpaqueConnectReason2,
|
|
6
6
|
runSrtStep2
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import"./chunk-
|
|
9
|
-
import"./chunk-
|
|
7
|
+
} from "./chunk-p9wzycsm.js";
|
|
8
|
+
import"./chunk-yv2mq2e9.js";
|
|
9
|
+
import"./chunk-ec01eq70.js";
|
|
10
10
|
export {
|
|
11
11
|
isOpaqueConnectReason2 as isOpaqueConnectReason,
|
|
12
12
|
opaqueTunnelRefusal2 as opaqueTunnelRefusal,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
succeed,
|
|
13
13
|
isSuccess,
|
|
14
14
|
TaggedError,
|
|
15
|
-
|
|
15
|
+
make16,
|
|
16
16
|
_await,
|
|
17
17
|
fail5,
|
|
18
18
|
succeed5,
|
|
@@ -104,7 +104,19 @@ import {
|
|
|
104
104
|
decodeJsonString,
|
|
105
105
|
encodeJsonStringSync,
|
|
106
106
|
encodePrettyJsonString
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-ec01eq70.js";
|
|
108
|
+
import {
|
|
109
|
+
tap,
|
|
110
|
+
mapError,
|
|
111
|
+
decodeText,
|
|
112
|
+
run,
|
|
113
|
+
mkString,
|
|
114
|
+
FileSystem,
|
|
115
|
+
Path,
|
|
116
|
+
withDefault,
|
|
117
|
+
option,
|
|
118
|
+
String2
|
|
119
|
+
} from "./chunk-tnrmd4hz.js";
|
|
108
120
|
import {
|
|
109
121
|
currentTimeMillis,
|
|
110
122
|
SecureRandom,
|
|
@@ -220,26 +232,14 @@ import {
|
|
|
220
232
|
harnessNames,
|
|
221
233
|
herdrRunnerCapabilities2,
|
|
222
234
|
declaredChecks
|
|
223
|
-
} from "./chunk-
|
|
235
|
+
} from "./chunk-qd9bkybz.js";
|
|
224
236
|
import {
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
decodeText,
|
|
228
|
-
run,
|
|
229
|
-
mkString,
|
|
230
|
-
FileSystem,
|
|
231
|
-
Path,
|
|
232
|
-
withDefault,
|
|
233
|
-
option,
|
|
234
|
-
String2
|
|
235
|
-
} from "./chunk-2w9a76nr.js";
|
|
237
|
+
Id
|
|
238
|
+
} from "./chunk-yv2mq2e9.js";
|
|
236
239
|
import {
|
|
237
240
|
ChildProcessSpawner,
|
|
238
241
|
make3
|
|
239
|
-
} from "./chunk-
|
|
240
|
-
import {
|
|
241
|
-
Id
|
|
242
|
-
} from "./chunk-9avbsbvk.js";
|
|
242
|
+
} from "./chunk-me1zn085.js";
|
|
243
243
|
|
|
244
244
|
// apps/cli/src/cli-error.ts
|
|
245
245
|
function cliErrorCode(error, status) {
|
|
@@ -1020,10 +1020,10 @@ var sandboxMissing = (sandbox, missing) => ({
|
|
|
1020
1020
|
var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
|
|
1021
1021
|
var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
|
|
1022
1022
|
var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
|
|
1023
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
1023
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-kg32dz1w.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
|
|
1024
1024
|
});
|
|
1025
1025
|
var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
|
|
1026
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
1026
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-kg32dz1w.js")), (module) => module.updateHerdrCore(options))
|
|
1027
1027
|
});
|
|
1028
1028
|
var herdrCoreMissing = (error) => {
|
|
1029
1029
|
if (isTagged(error, "HerdrCoreMissing"))
|
|
@@ -1198,7 +1198,7 @@ var settingChangeRows = (history) => history.items.map((change) => ({
|
|
|
1198
1198
|
|
|
1199
1199
|
// apps/cli/src/managed-install.ts
|
|
1200
1200
|
var RunnerReleaseManifest = Struct({
|
|
1201
|
-
version: String4.check(isPattern(/^[\w.+-]+$/u)),
|
|
1201
|
+
version: String4.check(isPattern(/^(?!\.+$)[\w.+-]+$/u)),
|
|
1202
1202
|
platforms: ArraySchema(Struct({ os: String4, architecture: String4, sha256: String4, url: String4 }))
|
|
1203
1203
|
});
|
|
1204
1204
|
var versionsDirectory = (platform) => gen(function* () {
|
|
@@ -1277,10 +1277,24 @@ var linkManagedKitman = (kitman) => gen(function* () {
|
|
|
1277
1277
|
const path = yield* Path;
|
|
1278
1278
|
const link = yield* managedKitmanPath;
|
|
1279
1279
|
const nextLink = `${link}.next`;
|
|
1280
|
+
const previous = yield* fs.readLink(link).pipe(map8((target) => path.resolve(path.dirname(link), target)), orElseSucceed(() => {
|
|
1281
|
+
return;
|
|
1282
|
+
}));
|
|
1280
1283
|
yield* fs.makeDirectory(path.dirname(link), { recursive: true });
|
|
1281
1284
|
yield* ignore(fs.remove(nextLink));
|
|
1282
1285
|
yield* fs.symlink(kitman, nextLink);
|
|
1283
1286
|
yield* fs.rename(nextLink, link);
|
|
1287
|
+
const versions = path.dirname(path.dirname(kitman));
|
|
1288
|
+
if (previous === kitman || path.basename(versions) !== "versions")
|
|
1289
|
+
return;
|
|
1290
|
+
const kept = new Set([kitman, ...previous === undefined ? [] : [previous]].map((kept) => path.dirname(kept)));
|
|
1291
|
+
const installed = yield* fs.readDirectory(versions).pipe(orElseSucceed(() => []));
|
|
1292
|
+
for (const version of installed) {
|
|
1293
|
+
const directory = path.join(versions, version);
|
|
1294
|
+
const managed = yield* fs.exists(path.join(directory, "kitman")).pipe(orElseSucceed(() => false));
|
|
1295
|
+
if (managed && !version.startsWith(".") && !kept.has(directory))
|
|
1296
|
+
yield* ignore(fs.remove(directory, { recursive: true }));
|
|
1297
|
+
}
|
|
1284
1298
|
});
|
|
1285
1299
|
var installManagedKitman = (apiUrl, platform) => gen(function* () {
|
|
1286
1300
|
const downloaded = yield* downloadManagedKitman(apiUrl, platform);
|
|
@@ -1449,7 +1463,7 @@ var syncTargets = (harness) => gen(function* () {
|
|
|
1449
1463
|
});
|
|
1450
1464
|
var syncKits = (input) => gen(function* () {
|
|
1451
1465
|
const fs = yield* FileSystem;
|
|
1452
|
-
const { syncKitSetup } = yield* promise(() => import("./chunk-
|
|
1466
|
+
const { syncKitSetup } = yield* promise(() => import("./chunk-ra22g5nv.js"));
|
|
1453
1467
|
const harnesses = yield* syncTargets(input.harness);
|
|
1454
1468
|
const chain = yield* input.client.getKitChain(input.workspaceId);
|
|
1455
1469
|
for (const { name, problem } of chain.skipped)
|
|
@@ -2368,7 +2382,7 @@ var package_default = {
|
|
|
2368
2382
|
};
|
|
2369
2383
|
|
|
2370
2384
|
// apps/cli/src/scaffold.ts
|
|
2371
|
-
var cliVersion = "0.14.
|
|
2385
|
+
var cliVersion = "0.14.4";
|
|
2372
2386
|
var packageJson = (name, scaffold) => `${JSON.stringify({
|
|
2373
2387
|
name,
|
|
2374
2388
|
private: true,
|
|
@@ -2520,7 +2534,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
|
|
|
2520
2534
|
|
|
2521
2535
|
// apps/cli/src/commands.ts
|
|
2522
2536
|
var ClientId = "kitman-cli";
|
|
2523
|
-
var agentRuntime = promise(() => import("./chunk-
|
|
2537
|
+
var agentRuntime = promise(() => import("./chunk-zv1sshtj.js"));
|
|
2524
2538
|
var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
|
|
2525
2539
|
defaultValue: () => gen(function* () {
|
|
2526
2540
|
const tui = yield* tryPromise({
|
|
@@ -3556,7 +3570,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
|
|
|
3556
3570
|
});
|
|
3557
3571
|
var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
|
|
3558
3572
|
defaultValue: () => (options) => gen(function* () {
|
|
3559
|
-
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-
|
|
3573
|
+
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-c6fanp7r.js"));
|
|
3560
3574
|
return yield* makeRunnerRpcClient({
|
|
3561
3575
|
runnerId: options.runnerId,
|
|
3562
3576
|
bearer: options.bearer,
|
|
@@ -3868,7 +3882,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
3868
3882
|
yield* controlPlane.client.listRepoBindings(runner.workspaceId).pipe(flatMap3(({ items }) => forEach(items.filter((binding) => binding.status === "active" && (teamId === undefined || binding.teamId === teamId)), (repoBinding) => map8(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);
|
|
3869
3883
|
yield* suspend3(() => sleep(ownerLogin.expired() ? ownerLoginRetryInterval : ownerLoginInterval)).pipe(andThen2(checkOwnerLogin), forever, forkScoped);
|
|
3870
3884
|
const platform = yield* context();
|
|
3871
|
-
const updated = yield*
|
|
3885
|
+
const updated = yield* make16();
|
|
3872
3886
|
const scope = yield* scope2;
|
|
3873
3887
|
const startUpdate = (update) => update.pipe(catch_((error) => andThen2(restartOntoUpdate(input.runnerId), fail5(updated, error))), provideContext2(platform), forkIn(scope), asVoid);
|
|
3874
3888
|
const refusedForProtocol = container ? updater.stopWhenDrained(new RunnerStopped({ problem: updateRequired })).pipe(catch_((stopped) => fail5(updated, stopped)), forkIn(scope), asVoid) : startUpdate(updater.updateRequired);
|
|
@@ -4123,7 +4137,7 @@ function mcpCommand(args) {
|
|
|
4123
4137
|
if (command.action === "run") {
|
|
4124
4138
|
if (command.args.length > 0)
|
|
4125
4139
|
return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
|
|
4126
|
-
const { runMcpServerCommand } = yield* promise(() => import("./chunk-
|
|
4140
|
+
const { runMcpServerCommand } = yield* promise(() => import("./chunk-wvhm5fgh.js"));
|
|
4127
4141
|
return yield* runMcpServerCommand({ flags: command.flags });
|
|
4128
4142
|
}
|
|
4129
4143
|
if (command.action !== "setup")
|
|
@@ -4611,7 +4625,7 @@ function programLoopCommand(command) {
|
|
|
4611
4625
|
return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
|
|
4612
4626
|
});
|
|
4613
4627
|
}
|
|
4614
|
-
var docsModule = promise(() => import("./chunk-
|
|
4628
|
+
var docsModule = promise(() => import("./chunk-6zwwrpve.js"));
|
|
4615
4629
|
function docsCommand(args) {
|
|
4616
4630
|
return gen(function* () {
|
|
4617
4631
|
const command = parseCommand(args);
|
|
@@ -5453,9 +5467,9 @@ function changeRequestCommand(args) {
|
|
|
5453
5467
|
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}`);
|
|
5454
5468
|
});
|
|
5455
5469
|
}
|
|
5456
|
-
var KitWriter = map8(promise(() => import("./chunk-
|
|
5470
|
+
var KitWriter = map8(promise(() => import("./chunk-v26jmjr0.js")), (build) => build.writeKit);
|
|
5457
5471
|
var KitBuilder = Reference("kitman/cli/KitBuilder", {
|
|
5458
|
-
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-
|
|
5472
|
+
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-v26jmjr0.js")), (build) => build.buildKit(directory))
|
|
5459
5473
|
});
|
|
5460
5474
|
var uploadKit = (client, workspaceId, built) => gen(function* () {
|
|
5461
5475
|
yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
|
|
@@ -4,12 +4,12 @@ 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-
|
|
7
|
+
} from "./chunk-4yvafzhp.js";
|
|
8
|
+
import"./chunk-rx2cg7rn.js";
|
|
9
|
+
import"./chunk-qd9bkybz.js";
|
|
10
|
+
import"./chunk-yv2mq2e9.js";
|
|
11
|
+
import"./chunk-tnrmd4hz.js";
|
|
12
|
+
import"./chunk-ec01eq70.js";
|
|
13
13
|
export {
|
|
14
14
|
makeProgramRpcClient2 as makeProgramRpcClient,
|
|
15
15
|
makeRunnerRpcClient2 as makeRunnerRpcClient,
|
|
@@ -75,7 +75,10 @@ import {
|
|
|
75
75
|
toEquivalence,
|
|
76
76
|
toCodecJson,
|
|
77
77
|
Json
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-ec01eq70.js";
|
|
79
|
+
import {
|
|
80
|
+
guard
|
|
81
|
+
} from "./chunk-yv2mq2e9.js";
|
|
79
82
|
import {
|
|
80
83
|
currentTimeMillis,
|
|
81
84
|
WebCrypto,
|
|
@@ -102,14 +105,11 @@ import {
|
|
|
102
105
|
KitDigest,
|
|
103
106
|
KitSetup,
|
|
104
107
|
RunnerRpcError
|
|
105
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-qd9bkybz.js";
|
|
106
109
|
import {
|
|
107
110
|
runForEach,
|
|
108
111
|
FileSystem
|
|
109
|
-
} from "./chunk-
|
|
110
|
-
import {
|
|
111
|
-
guard
|
|
112
|
-
} from "./chunk-9avbsbvk.js";
|
|
112
|
+
} from "./chunk-tnrmd4hz.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");
|