@kitman-sh/cli 0.12.0-rc.5 → 0.12.0-rc.6
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-2s4x5t92.js → chunk-0346hwh6.js} +5 -5
- package/dist/{chunk-bv9e34qz.js → chunk-0qz10ek8.js} +1 -1
- package/dist/{chunk-dd8hae73.js → chunk-15geyg2d.js} +119 -92
- package/dist/{chunk-77k89h98.js → chunk-1t12wvv1.js} +117 -264
- package/dist/{chunk-nc1rxeav.js → chunk-4w4spvb1.js} +6 -6
- package/dist/{chunk-3530xts6.js → chunk-56knbdt6.js} +9 -9
- package/dist/{chunk-cegdw7gw.js → chunk-5j848ckb.js} +2 -2
- package/dist/{chunk-bbadvwds.js → chunk-bvf6e6yg.js} +1 -1
- package/dist/{chunk-xmq9zpr1.js → chunk-c6rbt85q.js} +1 -1
- package/dist/{chunk-6x9e1etb.js → chunk-e4an66v2.js} +3 -3
- package/dist/{chunk-s661f8p0.js → chunk-ewhzaqp3.js} +2 -2
- package/dist/{chunk-x70r99jg.js → chunk-fxm2jhbd.js} +1 -1
- package/dist/{chunk-5zzfsv07.js → chunk-gspfm7qh.js} +177 -37
- package/dist/{chunk-k9jd2dm0.js → chunk-j5t5nye5.js} +4 -4
- package/dist/{chunk-yafg281p.js → chunk-ktr2smac.js} +18 -18
- package/dist/{chunk-bj73db3f.js → chunk-nzjb36ad.js} +1 -1
- package/dist/{chunk-gr816kwr.js → chunk-pd2vz4bm.js} +10 -10
- package/dist/{chunk-hrds2xy2.js → chunk-qrm334c6.js} +7 -7
- package/dist/{chunk-e838cw9z.js → chunk-r5sw3fe0.js} +11 -11
- package/dist/{chunk-26mj3vr6.js → chunk-r7f8tjc8.js} +21 -21
- package/dist/{chunk-txyp31q5.js → chunk-vtfwjhzh.js} +60 -60
- package/dist/{chunk-s1pjsak4.js → chunk-wc2kba4z.js} +7 -7
- package/dist/{chunk-kvm7j3ed.js → chunk-x6vj1tf8.js} +17 -17
- package/dist/{chunk-y2mkzww9.js → chunk-xwya1er0.js} +2 -2
- package/dist/{chunk-rjdptgqf.js → chunk-z450wa10.js} +4 -4
- package/dist/{chunk-31hk2bjb.js → chunk-znar1th3.js} +4 -4
- 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
|
+
make16,
|
|
16
16
|
_await,
|
|
17
17
|
fail5,
|
|
18
18
|
succeed5,
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
decodeJsonString,
|
|
97
97
|
encodeJsonStringSync,
|
|
98
98
|
encodePrettyJsonString
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-vtfwjhzh.js";
|
|
100
100
|
import {
|
|
101
101
|
tap,
|
|
102
102
|
mapError,
|
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
withDefault,
|
|
109
109
|
option,
|
|
110
110
|
String2
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-gspfm7qh.js";
|
|
112
112
|
import {
|
|
113
113
|
currentTimeMillis,
|
|
114
114
|
SecureRandom,
|
|
@@ -218,10 +218,10 @@ import {
|
|
|
218
218
|
harnessNames,
|
|
219
219
|
herdrRunnerCapabilities2,
|
|
220
220
|
declaredChecks
|
|
221
|
-
} from "./chunk-
|
|
221
|
+
} from "./chunk-1t12wvv1.js";
|
|
222
222
|
import {
|
|
223
223
|
Id
|
|
224
|
-
} from "./chunk-
|
|
224
|
+
} from "./chunk-0qz10ek8.js";
|
|
225
225
|
import {
|
|
226
226
|
toJsonValue,
|
|
227
227
|
isOneOf,
|
|
@@ -231,11 +231,11 @@ import {
|
|
|
231
231
|
isObject,
|
|
232
232
|
isJsonObject,
|
|
233
233
|
isString
|
|
234
|
-
} from "./chunk-
|
|
234
|
+
} from "./chunk-c6rbt85q.js";
|
|
235
235
|
import {
|
|
236
236
|
ChildProcessSpawner,
|
|
237
237
|
make3
|
|
238
|
-
} from "./chunk-
|
|
238
|
+
} from "./chunk-xwya1er0.js";
|
|
239
239
|
|
|
240
240
|
// apps/cli/src/cli-error.ts
|
|
241
241
|
function cliErrorCode(error, status) {
|
|
@@ -987,10 +987,10 @@ var sandboxMissing = (sandbox, missing) => ({
|
|
|
987
987
|
var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
|
|
988
988
|
var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
|
|
989
989
|
var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
|
|
990
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
990
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-znar1th3.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
|
|
991
991
|
});
|
|
992
992
|
var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
|
|
993
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
993
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-znar1th3.js")), (module) => module.updateHerdrCore(options))
|
|
994
994
|
});
|
|
995
995
|
var herdrCoreMissing = (error) => {
|
|
996
996
|
if (isTagged(error, "HerdrCoreMissing"))
|
|
@@ -1410,7 +1410,7 @@ var syncTargets = (harness) => gen(function* () {
|
|
|
1410
1410
|
});
|
|
1411
1411
|
var syncKits = (input) => gen(function* () {
|
|
1412
1412
|
const fs = yield* FileSystem;
|
|
1413
|
-
const { syncKitSetup } = yield* promise(() => import("./chunk-
|
|
1413
|
+
const { syncKitSetup } = yield* promise(() => import("./chunk-r5sw3fe0.js"));
|
|
1414
1414
|
const harnesses = yield* syncTargets(input.harness);
|
|
1415
1415
|
const chain = yield* input.client.getKitChain(input.workspaceId);
|
|
1416
1416
|
for (const { name, problem } of chain.skipped)
|
|
@@ -2328,7 +2328,7 @@ var package_default = {
|
|
|
2328
2328
|
};
|
|
2329
2329
|
|
|
2330
2330
|
// apps/cli/src/scaffold.ts
|
|
2331
|
-
var cliVersion = "0.12.0-rc.
|
|
2331
|
+
var cliVersion = "0.12.0-rc.6";
|
|
2332
2332
|
var packageJson = (name, scaffold) => `${JSON.stringify({
|
|
2333
2333
|
name,
|
|
2334
2334
|
private: true,
|
|
@@ -2480,7 +2480,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
|
|
|
2480
2480
|
|
|
2481
2481
|
// apps/cli/src/commands.ts
|
|
2482
2482
|
var ClientId = "kitman-cli";
|
|
2483
|
-
var agentRuntime = promise(() => import("./chunk-
|
|
2483
|
+
var agentRuntime = promise(() => import("./chunk-15geyg2d.js"));
|
|
2484
2484
|
var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
|
|
2485
2485
|
defaultValue: () => gen(function* () {
|
|
2486
2486
|
const tui = yield* tryPromise({
|
|
@@ -3482,7 +3482,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
|
|
|
3482
3482
|
});
|
|
3483
3483
|
var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
|
|
3484
3484
|
defaultValue: () => (options) => gen(function* () {
|
|
3485
|
-
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-
|
|
3485
|
+
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-wc2kba4z.js"));
|
|
3486
3486
|
return yield* makeRunnerRpcClient({
|
|
3487
3487
|
runnerId: options.runnerId,
|
|
3488
3488
|
bearer: options.bearer,
|
|
@@ -3762,7 +3762,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
3762
3762
|
const checkouts = runCheckouts(path.join(runnerRootDir, ".kitman"), rpc.gitCredential);
|
|
3763
3763
|
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);
|
|
3764
3764
|
const platform = yield* context();
|
|
3765
|
-
const updated = yield*
|
|
3765
|
+
const updated = yield* make16();
|
|
3766
3766
|
const scope = yield* scope2;
|
|
3767
3767
|
const startUpdate = (update) => update.pipe(catch_((error) => andThen2(restartOntoUpdate(input.runnerId), fail5(updated, error))), provideContext2(platform), forkIn(scope), asVoid);
|
|
3768
3768
|
const refusedForProtocol = container ? updater.stopWhenDrained(new RunnerStopped({ problem: updateRequired })).pipe(catch_((stopped) => fail5(updated, stopped)), forkIn(scope), asVoid) : startUpdate(updater.updateRequired);
|
|
@@ -4014,7 +4014,7 @@ function mcpCommand(args) {
|
|
|
4014
4014
|
if (command.action === "run") {
|
|
4015
4015
|
if (command.args.length > 0)
|
|
4016
4016
|
return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
|
|
4017
|
-
const { runMcpServerCommand } = yield* promise(() => import("./chunk-
|
|
4017
|
+
const { runMcpServerCommand } = yield* promise(() => import("./chunk-r7f8tjc8.js"));
|
|
4018
4018
|
return yield* runMcpServerCommand({ flags: command.flags });
|
|
4019
4019
|
}
|
|
4020
4020
|
if (command.action !== "setup")
|
|
@@ -4502,7 +4502,7 @@ function programLoopCommand(command) {
|
|
|
4502
4502
|
return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
|
|
4503
4503
|
});
|
|
4504
4504
|
}
|
|
4505
|
-
var docsModule = promise(() => import("./chunk-
|
|
4505
|
+
var docsModule = promise(() => import("./chunk-bvf6e6yg.js"));
|
|
4506
4506
|
function docsCommand(args) {
|
|
4507
4507
|
return gen(function* () {
|
|
4508
4508
|
const command = parseCommand(args);
|
|
@@ -5335,9 +5335,9 @@ function changeRequestCommand(args) {
|
|
|
5335
5335
|
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}`);
|
|
5336
5336
|
});
|
|
5337
5337
|
}
|
|
5338
|
-
var KitWriter = map8(promise(() => import("./chunk-
|
|
5338
|
+
var KitWriter = map8(promise(() => import("./chunk-x6vj1tf8.js")), (build) => build.writeKit);
|
|
5339
5339
|
var KitBuilder = Reference("kitman/cli/KitBuilder", {
|
|
5340
|
-
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-
|
|
5340
|
+
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-x6vj1tf8.js")), (build) => build.buildKit(directory))
|
|
5341
5341
|
});
|
|
5342
5342
|
var uploadKit = (client, workspaceId, built) => gen(function* () {
|
|
5343
5343
|
yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
FileSystem,
|
|
4
|
-
Path,
|
|
5
|
-
optionalEnv,
|
|
6
|
-
tempDirectoryScoped
|
|
7
|
-
} from "./chunk-5zzfsv07.js";
|
|
8
2
|
import {
|
|
9
3
|
Reference,
|
|
10
4
|
TaggedError,
|
|
@@ -29,19 +23,25 @@ import {
|
|
|
29
23
|
fnUntraced,
|
|
30
24
|
encodePrettyJsonString,
|
|
31
25
|
decodeJsonStringSync
|
|
32
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-vtfwjhzh.js";
|
|
33
27
|
import {
|
|
34
28
|
isJsonObject,
|
|
35
29
|
isString
|
|
36
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-c6rbt85q.js";
|
|
31
|
+
import {
|
|
32
|
+
FileSystem,
|
|
33
|
+
Path,
|
|
34
|
+
optionalEnv,
|
|
35
|
+
tempDirectoryScoped
|
|
36
|
+
} from "./chunk-gspfm7qh.js";
|
|
37
37
|
import {
|
|
38
38
|
AgentHarnessIds,
|
|
39
39
|
sha2562,
|
|
40
40
|
runCommand2
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-1t12wvv1.js";
|
|
42
42
|
import {
|
|
43
43
|
NpmRegistry
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-e4an66v2.js";
|
|
45
45
|
|
|
46
46
|
// packages/agent-runtime/src/config-convergence.ts
|
|
47
47
|
var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
|
|
@@ -75,14 +75,10 @@ import {
|
|
|
75
75
|
toEquivalence,
|
|
76
76
|
toCodecJson,
|
|
77
77
|
Json
|
|
78
|
-
} from "./chunk-
|
|
79
|
-
import {
|
|
80
|
-
runForEach,
|
|
81
|
-
FileSystem
|
|
82
|
-
} from "./chunk-5zzfsv07.js";
|
|
78
|
+
} from "./chunk-vtfwjhzh.js";
|
|
83
79
|
import {
|
|
84
80
|
guard
|
|
85
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-0qz10ek8.js";
|
|
86
82
|
import {
|
|
87
83
|
currentTimeMillis,
|
|
88
84
|
WebCrypto,
|
|
@@ -109,7 +105,11 @@ import {
|
|
|
109
105
|
KitDigest,
|
|
110
106
|
KitSetup,
|
|
111
107
|
RunnerRpcError
|
|
112
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-1t12wvv1.js";
|
|
109
|
+
import {
|
|
110
|
+
runForEach,
|
|
111
|
+
FileSystem
|
|
112
|
+
} from "./chunk-gspfm7qh.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");
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
FileSystem,
|
|
4
|
-
Path
|
|
5
|
-
} from "./chunk-5zzfsv07.js";
|
|
6
2
|
import {
|
|
7
3
|
isObject2,
|
|
8
4
|
isUint8Array,
|
|
@@ -16,26 +12,30 @@ import {
|
|
|
16
12
|
orElseSucceed,
|
|
17
13
|
decodeJsonString,
|
|
18
14
|
encodePrettyJsonString
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import"./chunk-
|
|
15
|
+
} from "./chunk-vtfwjhzh.js";
|
|
16
|
+
import"./chunk-0qz10ek8.js";
|
|
21
17
|
import {
|
|
22
18
|
isJsonObject
|
|
23
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-c6rbt85q.js";
|
|
20
|
+
import {
|
|
21
|
+
FileSystem,
|
|
22
|
+
Path
|
|
23
|
+
} from "./chunk-gspfm7qh.js";
|
|
24
24
|
import {
|
|
25
25
|
tomlTableHeader2,
|
|
26
26
|
tomlKeyPath2,
|
|
27
27
|
kitmanSkillEntry,
|
|
28
28
|
isPathWithin2
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-pd2vz4bm.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-1t12wvv1.js";
|
|
37
|
+
import"./chunk-e4an66v2.js";
|
|
38
|
+
import"./chunk-xwya1er0.js";
|
|
39
39
|
|
|
40
40
|
// packages/agent-runtime/src/kit-setup-sync.ts
|
|
41
41
|
class KitSyncError extends TaggedError("KitSyncError") {
|
|
@@ -107,7 +107,7 @@ import {
|
|
|
107
107
|
decodeJsonStringOption,
|
|
108
108
|
encodeJsonStringSync,
|
|
109
109
|
encodePrettyJsonString
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-vtfwjhzh.js";
|
|
111
111
|
import {
|
|
112
112
|
currentTimeMillis,
|
|
113
113
|
SecureRandom,
|
|
@@ -159,27 +159,13 @@ import {
|
|
|
159
159
|
runMcpEffect,
|
|
160
160
|
createAgentAuthSignedFetch,
|
|
161
161
|
setupMcpAgentCredential
|
|
162
|
-
} from "./chunk-
|
|
163
|
-
import {
|
|
164
|
-
join,
|
|
165
|
-
interrupt,
|
|
166
|
-
runForEach,
|
|
167
|
-
FileSystem,
|
|
168
|
-
Path,
|
|
169
|
-
embeddedFile,
|
|
170
|
-
extractEmbeddedFile,
|
|
171
|
-
map3,
|
|
172
|
-
all,
|
|
173
|
-
withDefault,
|
|
174
|
-
option,
|
|
175
|
-
String2
|
|
176
|
-
} from "./chunk-5zzfsv07.js";
|
|
162
|
+
} from "./chunk-1t12wvv1.js";
|
|
177
163
|
import {
|
|
178
164
|
guard,
|
|
179
165
|
Id,
|
|
180
166
|
Timestamp,
|
|
181
167
|
ActorType
|
|
182
|
-
} from "./chunk-
|
|
168
|
+
} from "./chunk-0qz10ek8.js";
|
|
183
169
|
import {
|
|
184
170
|
toJsonValue,
|
|
185
171
|
isOneOf,
|
|
@@ -192,21 +178,35 @@ import {
|
|
|
192
178
|
isJsonObject,
|
|
193
179
|
isString,
|
|
194
180
|
kindOf
|
|
195
|
-
} from "./chunk-
|
|
181
|
+
} from "./chunk-c6rbt85q.js";
|
|
182
|
+
import {
|
|
183
|
+
join,
|
|
184
|
+
interrupt,
|
|
185
|
+
runForEach,
|
|
186
|
+
FileSystem,
|
|
187
|
+
Path,
|
|
188
|
+
embeddedFile,
|
|
189
|
+
extractEmbeddedFile,
|
|
190
|
+
map3,
|
|
191
|
+
all,
|
|
192
|
+
withDefault,
|
|
193
|
+
option,
|
|
194
|
+
String2
|
|
195
|
+
} from "./chunk-gspfm7qh.js";
|
|
196
196
|
import {
|
|
197
197
|
searchDocs2,
|
|
198
198
|
readDoc2
|
|
199
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-fxm2jhbd.js";
|
|
200
200
|
import {
|
|
201
201
|
nextInt
|
|
202
|
-
} from "./chunk-
|
|
202
|
+
} from "./chunk-nzjb36ad.js";
|
|
203
203
|
import {
|
|
204
204
|
layerJson,
|
|
205
205
|
make4,
|
|
206
206
|
withHeaders,
|
|
207
207
|
layerProtocolSocket,
|
|
208
208
|
ConnectionHooks
|
|
209
|
-
} from "./chunk-
|
|
209
|
+
} from "./chunk-4w4spvb1.js";
|
|
210
210
|
|
|
211
211
|
// apps/cli/src/mcp.ts
|
|
212
212
|
import { tmpdir as tmpdir2 } from "os";
|