@kitman-sh/cli 0.10.103 → 0.10.104

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.
@@ -26,15 +26,15 @@ import {
26
26
  tomlKeyPath2,
27
27
  kitmanSkillEntry,
28
28
  isPathWithin2
29
- } from "./chunk-1hw35x4x.js";
29
+ } from "./chunk-ksmcqpr5.js";
30
30
  import {
31
31
  instructionsStart,
32
32
  instructionsEnd,
33
33
  renderMcpServer,
34
34
  materializeKitSetup,
35
35
  tomlInline
36
- } from "./chunk-7z9m11z3.js";
37
- import"./chunk-t80dhv1r.js";
36
+ } from "./chunk-pcc2hcmx.js";
37
+ import"./chunk-r4rz67d3.js";
38
38
  import"./chunk-5esfnamp.js";
39
39
 
40
40
  // packages/agent-runtime/src/kit-setup-sync.ts
@@ -246,7 +246,7 @@ import {
246
246
  installCommand,
247
247
  checkServicesFile,
248
248
  checkServices
249
- } from "./chunk-7z9m11z3.js";
249
+ } from "./chunk-pcc2hcmx.js";
250
250
  import {
251
251
  join,
252
252
  interrupt,
@@ -302,8 +302,8 @@ import {
302
302
  applyAgentEnvironmentMaterialization2,
303
303
  isPathWithin2,
304
304
  skillIdentity2
305
- } from "./chunk-1hw35x4x.js";
306
- import"./chunk-t80dhv1r.js";
305
+ } from "./chunk-ksmcqpr5.js";
306
+ import"./chunk-r4rz67d3.js";
307
307
  import {
308
308
  egressAllowed,
309
309
  writeSecretRegistry,
@@ -328,8 +328,8 @@ import {
328
328
  rpcRunFiles,
329
329
  programHostsEnv,
330
330
  undeclaredHostsEnv
331
- } from "./chunk-kadsqvtm.js";
332
- import"./chunk-pme28eew.js";
331
+ } from "./chunk-z4vzxhrf.js";
332
+ import"./chunk-sgsy68k7.js";
333
333
  import {
334
334
  nextInt
335
335
  } from "./chunk-xckn5gax.js";
@@ -337,7 +337,7 @@ import {
337
337
  ChildProcessSpawner,
338
338
  make3
339
339
  } from "./chunk-5esfnamp.js";
340
- import"./chunk-cazap5by.js";
340
+ import"./chunk-yhhr9a4r.js";
341
341
 
342
342
  // packages/core/src/sync-kit.ts
343
343
  import { createHash } from "crypto";
@@ -54,23 +54,23 @@ import {
54
54
  layer4,
55
55
  kitmanMcpServer,
56
56
  RunnerRpcProtocolVersion
57
- } from "./chunk-7z9m11z3.js";
57
+ } from "./chunk-pcc2hcmx.js";
58
58
  import {
59
59
  Packument,
60
60
  tarballMatches
61
- } from "./chunk-t80dhv1r.js";
62
- import"./chunk-pme28eew.js";
61
+ } from "./chunk-r4rz67d3.js";
62
+ import"./chunk-sgsy68k7.js";
63
63
  import {
64
64
  AgentDeclaration,
65
65
  KitDeclarations,
66
66
  describeFlag,
67
67
  Described
68
- } from "./chunk-kadsqvtm.js";
68
+ } from "./chunk-z4vzxhrf.js";
69
69
  import {
70
70
  ChildProcessSpawner,
71
71
  make3
72
72
  } from "./chunk-5esfnamp.js";
73
- import"./chunk-cazap5by.js";
73
+ import"./chunk-yhhr9a4r.js";
74
74
 
75
75
  // packages/sdk/src/build/index.ts
76
76
  class DependencyInstallFailed extends TaggedError2()("DependencyInstallFailed", {
@@ -4,9 +4,9 @@ import {
4
4
  runnerRpcUrl2,
5
5
  makeRunnerRpcClient2,
6
6
  makeProgramRpcClient2
7
- } from "./chunk-pme28eew.js";
8
- import"./chunk-cazap5by.js";
9
- import"./chunk-7z9m11z3.js";
7
+ } from "./chunk-sgsy68k7.js";
8
+ import"./chunk-yhhr9a4r.js";
9
+ import"./chunk-pcc2hcmx.js";
10
10
  import"./chunk-30mfra3r.js";
11
11
  import"./chunk-hxqxdy21.js";
12
12
  import"./chunk-9nrr1dwr.js";
@@ -159,7 +159,7 @@ import {
159
159
  runMcpEffect,
160
160
  createAgentAuthSignedFetch,
161
161
  setupMcpAgentCredential
162
- } from "./chunk-7z9m11z3.js";
162
+ } from "./chunk-pcc2hcmx.js";
163
163
  import {
164
164
  guard,
165
165
  Id,
@@ -202,7 +202,7 @@ import {
202
202
  withHeaders,
203
203
  layerProtocolSocket,
204
204
  ConnectionHooks
205
- } from "./chunk-cazap5by.js";
205
+ } from "./chunk-yhhr9a4r.js";
206
206
 
207
207
  // apps/cli/src/mcp.ts
208
208
  import { tmpdir as tmpdir2 } from "os";
@@ -12,7 +12,7 @@ import {
12
12
  herdrCoreLayer2,
13
13
  herdrCoreTransportLayer2,
14
14
  updateHerdrCore2
15
- } from "./chunk-7z9m11z3.js";
15
+ } from "./chunk-pcc2hcmx.js";
16
16
  import"./chunk-9nrr1dwr.js";
17
17
  import"./chunk-che5w0y4.js";
18
18
  export {
@@ -207,7 +207,7 @@ import {
207
207
  harnessNames,
208
208
  herdrRunnerCapabilities2,
209
209
  declaredChecks
210
- } from "./chunk-7z9m11z3.js";
210
+ } from "./chunk-pcc2hcmx.js";
211
211
  import {
212
212
  Id
213
213
  } from "./chunk-30mfra3r.js";
@@ -507,10 +507,10 @@ var sandboxMissing = (sandbox, missing) => ({
507
507
  var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
508
508
  var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
509
509
  var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
510
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-01fzz2j3.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
510
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-h0vga20s.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
511
511
  });
512
512
  var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
513
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-01fzz2j3.js")), (module) => module.updateHerdrCore(options))
513
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-h0vga20s.js")), (module) => module.updateHerdrCore(options))
514
514
  });
515
515
  var herdrCoreMissing = (error) => {
516
516
  if (isTagged(error, "HerdrCoreMissing"))
@@ -861,7 +861,7 @@ var syncTargets = (harness) => gen(function* () {
861
861
  });
862
862
  var syncKits = (input) => gen(function* () {
863
863
  const fs = yield* FileSystem;
864
- const { syncKitSetup } = yield* promise(() => import("./chunk-0xjrc51m.js"));
864
+ const { syncKitSetup } = yield* promise(() => import("./chunk-1byp081v.js"));
865
865
  const harnesses = yield* syncTargets(input.harness);
866
866
  const chain = yield* input.client.getKitChain(input.workspaceId);
867
867
  for (const { name, problem } of chain.skipped)
@@ -1779,7 +1779,7 @@ var package_default = {
1779
1779
  };
1780
1780
 
1781
1781
  // apps/cli/src/scaffold.ts
1782
- var cliVersion = "0.10.103";
1782
+ var cliVersion = "0.10.104";
1783
1783
  var packageJson = (name, scaffold) => `${JSON.stringify({
1784
1784
  name,
1785
1785
  private: true,
@@ -2039,7 +2039,7 @@ var Usage = [
2039
2039
  "Every run, loop, agent, verify, constraint, secret, claim, deploy, dev and kit command takes --json."
2040
2040
  ].join(`
2041
2041
  `);
2042
- var agentRuntime = promise(() => import("./chunk-044h6f3n.js"));
2042
+ var agentRuntime = promise(() => import("./chunk-90y97b8c.js"));
2043
2043
  var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
2044
2044
  defaultValue: () => gen(function* () {
2045
2045
  const tui = yield* tryPromise({
@@ -2982,12 +2982,15 @@ function runnerCommand(args) {
2982
2982
  return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
2983
2983
  });
2984
2984
  }
2985
+ var RunningKitmanVersion = Reference("kitman/cli/RunningKitmanVersion", {
2986
+ defaultValue: () => kitmanVersion
2987
+ });
2985
2988
  var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
2986
2989
  defaultValue: () => flatMap3(agentRuntime, (runtime) => runtime.commandHostProbe)
2987
2990
  });
2988
2991
  var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
2989
2992
  defaultValue: () => (options) => gen(function* () {
2990
- const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-2cznmt28.js"));
2993
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-fcrc5e9b.js"));
2991
2994
  return yield* makeRunnerRpcClient({
2992
2995
  runnerId: options.runnerId,
2993
2996
  bearer: options.bearer,
@@ -3068,7 +3071,8 @@ function startCanonicalHerdrRunnerCommand(input) {
3068
3071
  const { fullAccess, sshAgentAvailable } = hostSettings;
3069
3072
  const fs = yield* FileSystem;
3070
3073
  const container = input.credential !== undefined || (yield* fs.exists("/.dockerenv").pipe(orElseSucceed(() => false))) || (yield* fs.exists("/run/.containerenv").pipe(orElseSucceed(() => false)));
3071
- const reported = { ...kitmanVersion === undefined ? undefined : { version: kitmanVersion }, container };
3074
+ const version = yield* RunningKitmanVersion;
3075
+ const reported = { ...version === undefined ? undefined : { version }, container };
3072
3076
  const credential = input.credential ?? (yield* startupStep("load the Runner credential", "10 seconds", storedHerdrRunnerCredential(input.apiUrl, input.runnerId)));
3073
3077
  if (credential === undefined)
3074
3078
  return yield* new RunnerStopped({ problem: credentialMissing(input.runnerId) });
@@ -3464,7 +3468,7 @@ function mcpCommand(args) {
3464
3468
  if (command.action === "run") {
3465
3469
  if (command.args.length > 0)
3466
3470
  return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
3467
- const { runMcpServerCommand } = yield* promise(() => import("./chunk-fe65rbvv.js"));
3471
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-gn2phqk2.js"));
3468
3472
  return yield* runMcpServerCommand({ flags: command.flags });
3469
3473
  }
3470
3474
  if (command.action !== "setup")
@@ -4718,9 +4722,9 @@ function changeRequestCommand(args) {
4718
4722
  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}`);
4719
4723
  });
4720
4724
  }
4721
- var KitWriter = map8(promise(() => import("./chunk-m5mn7dk6.js")), (build) => build.writeKit);
4725
+ var KitWriter = map8(promise(() => import("./chunk-et36zt3j.js")), (build) => build.writeKit);
4722
4726
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
4723
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-m5mn7dk6.js")), (build) => build.buildKit(directory))
4727
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-et36zt3j.js")), (build) => build.buildKit(directory))
4724
4728
  });
4725
4729
  var uploadKit = (client, workspaceId, built) => gen(function* () {
4726
4730
  yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
@@ -5364,6 +5368,8 @@ function runnerRow(runner) {
5364
5368
  effectiveTeamAccess,
5365
5369
  managementBoundary: "workspace_operator_only",
5366
5370
  schedulingBoundary: "scope_and_identity_gated",
5371
+ version: runner.version,
5372
+ latestVersion: runner.latestVersion,
5367
5373
  lastHeartbeatAt: runner.lastHeartbeatAt
5368
5374
  };
5369
5375
  }
@@ -37,10 +37,10 @@ import {
37
37
  AgentHarnessIds,
38
38
  sha2562,
39
39
  runCommand2
40
- } from "./chunk-7z9m11z3.js";
40
+ } from "./chunk-pcc2hcmx.js";
41
41
  import {
42
42
  NpmRegistry
43
- } from "./chunk-t80dhv1r.js";
43
+ } from "./chunk-r4rz67d3.js";
44
44
 
45
45
  // packages/agent-runtime/src/config-convergence.ts
46
46
  var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
@@ -358,7 +358,6 @@ import {
358
358
  parseFdName,
359
359
  fdName
360
360
  } from "./chunk-5esfnamp.js";
361
-
362
361
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
363
362
  var makeEquivalence3 = Tuple;
364
363
 
@@ -38,7 +38,7 @@ import {
38
38
  get2,
39
39
  layer4,
40
40
  KitDigest
41
- } from "./chunk-7z9m11z3.js";
41
+ } from "./chunk-pcc2hcmx.js";
42
42
 
43
43
  // packages/core/src/npm-registry.ts
44
44
  var KitManifest = Struct({
@@ -19,13 +19,13 @@ import {
19
19
  RunnerReplicaRpcs,
20
20
  RunnerRunFileRpcs,
21
21
  ProgramRpcs
22
- } from "./chunk-7z9m11z3.js";
22
+ } from "./chunk-pcc2hcmx.js";
23
23
  import {
24
24
  layerJson,
25
25
  make4,
26
26
  withHeaders,
27
27
  layerProtocolSocket
28
- } from "./chunk-cazap5by.js";
28
+ } from "./chunk-yhhr9a4r.js";
29
29
 
30
30
  // packages/live/src/rpc/runner-client.ts
31
31
  var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
@@ -123,7 +123,7 @@ import {
123
123
  ParseOptions,
124
124
  RpcClientDefect,
125
125
  RpcClientError
126
- } from "./chunk-7z9m11z3.js";
126
+ } from "./chunk-pcc2hcmx.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")) {
@@ -105,7 +105,7 @@ import {
105
105
  KitDigest,
106
106
  KitSetup,
107
107
  RunnerRpcError
108
- } from "./chunk-7z9m11z3.js";
108
+ } from "./chunk-pcc2hcmx.js";
109
109
  import {
110
110
  runForEach,
111
111
  FileSystem
package/dist/index.js CHANGED
@@ -14,6 +14,6 @@ if (args[0] === "srt") {
14
14
  const { runOpencodeReader } = await import("./chunk-s27r6x3a.js");
15
15
  runOpencodeReader();
16
16
  } else {
17
- const { runCli } = await import("./chunk-3p2rz1a0.js");
17
+ const { runCli } = await import("./chunk-k2mg7dhf.js");
18
18
  runCli(args);
19
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitman-sh/cli",
3
- "version": "0.10.103",
3
+ "version": "0.10.104",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "bin": {