@kitman-sh/cli 0.12.12 → 0.12.14

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.
@@ -4,9 +4,9 @@ import {
4
4
  runnerRpcUrl2,
5
5
  makeRunnerRpcClient2,
6
6
  makeProgramRpcClient2
7
- } from "./chunk-7afnkx5b.js";
8
- import"./chunk-fr79hgq2.js";
9
- import"./chunk-4w0c1ykv.js";
7
+ } from "./chunk-51ye0af0.js";
8
+ import"./chunk-5wnjn5r0.js";
9
+ import"./chunk-wx3cx43j.js";
10
10
  import"./chunk-q5w3v4k1.js";
11
11
  import"./chunk-0h49y8gf.js";
12
12
  import"./chunk-zw3gf6r5.js";
@@ -19,13 +19,13 @@ import {
19
19
  RunnerReplicaRpcs,
20
20
  RunnerRunFileRpcs,
21
21
  ProgramRpcs
22
- } from "./chunk-4w0c1ykv.js";
22
+ } from "./chunk-wx3cx43j.js";
23
23
  import {
24
24
  layerJson,
25
25
  make4,
26
26
  withHeaders,
27
27
  layerProtocolSocket
28
- } from "./chunk-fr79hgq2.js";
28
+ } from "./chunk-5wnjn5r0.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-4w0c1ykv.js";
126
+ } from "./chunk-wx3cx43j.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")) {
@@ -170,7 +170,7 @@ import {
170
170
  runMcpEffect,
171
171
  createAgentAuthSignedFetch,
172
172
  setupMcpAgentCredential
173
- } from "./chunk-4w0c1ykv.js";
173
+ } from "./chunk-wx3cx43j.js";
174
174
  import {
175
175
  guard,
176
176
  Id,
@@ -194,7 +194,7 @@ import {
194
194
  import {
195
195
  searchDocs2,
196
196
  readDoc2
197
- } from "./chunk-w83fadhh.js";
197
+ } from "./chunk-gnxa022f.js";
198
198
  import {
199
199
  nextInt
200
200
  } from "./chunk-gq7y5v3e.js";
@@ -204,7 +204,7 @@ import {
204
204
  withHeaders,
205
205
  layerProtocolSocket,
206
206
  ConnectionHooks
207
- } from "./chunk-fr79hgq2.js";
207
+ } from "./chunk-5wnjn5r0.js";
208
208
 
209
209
  // apps/cli/src/mcp.ts
210
210
  import { tmpdir as tmpdir2 } from "os";
@@ -247,7 +247,7 @@ import {
247
247
  installCommand,
248
248
  checkServicesFile,
249
249
  checkServices
250
- } from "./chunk-4w0c1ykv.js";
250
+ } from "./chunk-wx3cx43j.js";
251
251
  import {
252
252
  join,
253
253
  interrupt,
@@ -304,8 +304,8 @@ import {
304
304
  applyAgentEnvironmentMaterialization2,
305
305
  isPathWithin2,
306
306
  skillIdentity2
307
- } from "./chunk-jn7w2ntt.js";
308
- import"./chunk-azfjx5d8.js";
307
+ } from "./chunk-f0h8f3kw.js";
308
+ import"./chunk-xgdyj09a.js";
309
309
  import {
310
310
  egressAllowed,
311
311
  writeSecretRegistry,
@@ -330,8 +330,8 @@ import {
330
330
  rpcRunFiles,
331
331
  programHostsEnv,
332
332
  undeclaredHostsEnv
333
- } from "./chunk-4gy4ty6k.js";
334
- import"./chunk-7afnkx5b.js";
333
+ } from "./chunk-q44g4vf7.js";
334
+ import"./chunk-51ye0af0.js";
335
335
  import {
336
336
  nextInt
337
337
  } from "./chunk-gq7y5v3e.js";
@@ -339,7 +339,7 @@ import {
339
339
  ChildProcessSpawner,
340
340
  make3
341
341
  } from "./chunk-mtkstrh3.js";
342
- import"./chunk-fr79hgq2.js";
342
+ import"./chunk-5wnjn5r0.js";
343
343
 
344
344
  // packages/core/src/sync-kit.ts
345
345
  import { createHash } from "crypto";
@@ -36,10 +36,10 @@ import {
36
36
  AgentHarnessIds,
37
37
  sha2562,
38
38
  runCommand2
39
- } from "./chunk-4w0c1ykv.js";
39
+ } from "./chunk-wx3cx43j.js";
40
40
  import {
41
41
  NpmRegistry
42
- } from "./chunk-azfjx5d8.js";
42
+ } from "./chunk-xgdyj09a.js";
43
43
 
44
44
  // packages/agent-runtime/src/config-convergence.ts
45
45
  var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
@@ -362,12 +362,12 @@ The **Review queue** lists everything waiting on you, oldest first, on one page:
362
362
 
363
363
  From the keyboard: **J** and **K** move between items, **A** approves, **R** requests changes, **O** opens the item on its own page and **S** skips it to the end of the queue for now. On a narrow screen, **Enter** opens the item in place of the queue and **Esc** goes back to it. What approve and request changes do depends on the item:
364
364
 
365
- | Item | **A** | **R** |
366
- | ------------- | ------------------------------ | ------------------------------ |
367
- | ChangeRequest | Approve its head | Request changes, in your words |
368
- | Plan | Take the recommended next step | Refine the plan |
369
- | Question | Take the recommended answer | Answer in your own words |
370
- | Memory | Accept it | Reject it |
365
+ | Item | **A** | **R** |
366
+ | ------------- | --------------------------------------------------- | -------------------------------------------- |
367
+ | ChangeRequest | Approve its head | Request changes, in your words |
368
+ | Plan | Approve the plan, or take the recommended next step | Answer in your own words, or refine the plan |
369
+ | Question | Take the recommended answer | Answer in your own words |
370
+ | Memory | Accept it | Reject it |
371
371
 
372
372
  An item leaves the queue as soon as it is resolved, here or anywhere else: on the forge, on the Run page, in the CLI or by its Run taking a default. A ChangeRequest leaves once it closes or merges, or once a person approves or requests changes on the head under review; it comes back when a new head is pushed. A review on GitHub or GitLab counts once the forge's webhook reports it, and only a person's: not a bot's, not the account Kitman reviews as, and not approval rules that pass with no approver.`
373
373
  },
@@ -521,6 +521,13 @@ Each amendment is a new version with its author, and \`kitman run intent <run>\`
521
521
  link: "https://kitman.sh/knowledge/docs/loop-operations#steering-pausing-and-resuming",
522
522
  text: "## Steering, pausing and resuming\n\nWhile a Run is running, send its agent a note from the Run page: the Live tab's box goes to the live agent Session, and the Timeline tab's box goes to the live Session or, with none, the next agent Step. The box shows the note as queued, delivered or failed, and the Timeline lists every steer with who sent it.\n\nPause holds a Run and its Child Runs without stopping them: Runners are offered none of their work until you resume it. A Child Run started or resumed meanwhile waits too, and a Child Run you paused yourself stays paused when its parent resumes. Nothing is canceled, so an agent Step already running finishes, its Output and the Run's journal are kept, and steers wait for the next agent Step. Resume lets the Run carry on from where it was held. The Timeline shows who paused and resumed it. With the API, use `runs.pause` and `runs.resume`."
523
523
  },
524
+ {
525
+ title: "Loop Operations Guide \u203A Reviewing a plan",
526
+ path: "loop-operations#reviewing-a-plan",
527
+ level: 2,
528
+ link: "https://kitman.sh/knowledge/docs/loop-operations#reviewing-a-plan",
529
+ text: "## Reviewing a plan\n\nA Plan Run waits for a person to approve each revision of its plan, the first and each one a review or the menu's Refine makes, before it offers to build or file it. Its Run page opens on the **Plan** tab while a revision waits for review or is being revised, and the tab renders the plan as a document. Select any text in it, a line, a sentence or a single word, to comment on that quote; your comments collect into one review, kept in the browser until you send it. **Request changes** sends every comment to the planner with its quote, its line in the plan's Markdown and the revision it is on, and the tab stays open to say the planner is revising. The next revision shows **Changes since revision N**, the diff from the last one, and marks each comment of your review **Addressed**, with how, or **Open**, with why when the planner says why it did not act on it. **Approve plan** lets the Run carry on; until then it waits. A Run started with `implement` approves a revision nobody answers within an hour, or at once when nobody attends the Run. Words typed in place of a review, in the Inbox or the CLI, reach the planner as one comment on the whole revision."
530
+ },
524
531
  {
525
532
  title: "Loop Operations Guide \u203A Constraints",
526
533
  path: "loop-operations#constraints",
@@ -1481,7 +1488,7 @@ var pathOfLink = (link) => {
1481
1488
  return page === null ? link : page[1] || "index";
1482
1489
  };
1483
1490
  var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
1484
- var pinnedLink2 = (link, version = "0.12.12") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
1491
+ var pinnedLink2 = (link, version = "0.12.14") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
1485
1492
  var pageOf = (path) => path.split("#")[0];
1486
1493
  var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
1487
1494
  function excerpt(text, queryTerms) {
@@ -228,7 +228,7 @@ import {
228
228
  harnessNames,
229
229
  herdrRunnerCapabilities2,
230
230
  declaredChecks
231
- } from "./chunk-4w0c1ykv.js";
231
+ } from "./chunk-wx3cx43j.js";
232
232
  import {
233
233
  Id
234
234
  } from "./chunk-q5w3v4k1.js";
@@ -989,10 +989,10 @@ var sandboxMissing = (sandbox, missing) => ({
989
989
  var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
990
990
  var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
991
991
  var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
992
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-gxbcvd4q.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
992
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-mxq6zpkw.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
993
993
  });
994
994
  var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
995
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-gxbcvd4q.js")), (module) => module.updateHerdrCore(options))
995
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-mxq6zpkw.js")), (module) => module.updateHerdrCore(options))
996
996
  });
997
997
  var herdrCoreMissing = (error) => {
998
998
  if (isTagged(error, "HerdrCoreMissing"))
@@ -1412,7 +1412,7 @@ var syncTargets = (harness) => gen(function* () {
1412
1412
  });
1413
1413
  var syncKits = (input) => gen(function* () {
1414
1414
  const fs = yield* FileSystem;
1415
- const { syncKitSetup } = yield* promise(() => import("./chunk-vkg40ysx.js"));
1415
+ const { syncKitSetup } = yield* promise(() => import("./chunk-hhnx6314.js"));
1416
1416
  const harnesses = yield* syncTargets(input.harness);
1417
1417
  const chain = yield* input.client.getKitChain(input.workspaceId);
1418
1418
  for (const { name, problem } of chain.skipped)
@@ -2331,7 +2331,7 @@ var package_default = {
2331
2331
  };
2332
2332
 
2333
2333
  // apps/cli/src/scaffold.ts
2334
- var cliVersion = "0.12.12";
2334
+ var cliVersion = "0.12.14";
2335
2335
  var packageJson = (name, scaffold) => `${JSON.stringify({
2336
2336
  name,
2337
2337
  private: true,
@@ -2483,7 +2483,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
2483
2483
 
2484
2484
  // apps/cli/src/commands.ts
2485
2485
  var ClientId = "kitman-cli";
2486
- var agentRuntime = promise(() => import("./chunk-gwnyxm1r.js"));
2486
+ var agentRuntime = promise(() => import("./chunk-bzq3bz0d.js"));
2487
2487
  var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
2488
2488
  defaultValue: () => gen(function* () {
2489
2489
  const tui = yield* tryPromise({
@@ -3507,7 +3507,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
3507
3507
  });
3508
3508
  var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
3509
3509
  defaultValue: () => (options) => gen(function* () {
3510
- const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-ywzxwgrz.js"));
3510
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-0300vp5q.js"));
3511
3511
  return yield* makeRunnerRpcClient({
3512
3512
  runnerId: options.runnerId,
3513
3513
  bearer: options.bearer,
@@ -4039,7 +4039,7 @@ function mcpCommand(args) {
4039
4039
  if (command.action === "run") {
4040
4040
  if (command.args.length > 0)
4041
4041
  return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
4042
- const { runMcpServerCommand } = yield* promise(() => import("./chunk-s9ts6nct.js"));
4042
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-br7t2pre.js"));
4043
4043
  return yield* runMcpServerCommand({ flags: command.flags });
4044
4044
  }
4045
4045
  if (command.action !== "setup")
@@ -4527,7 +4527,7 @@ function programLoopCommand(command) {
4527
4527
  return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
4528
4528
  });
4529
4529
  }
4530
- var docsModule = promise(() => import("./chunk-ajwxd61t.js"));
4530
+ var docsModule = promise(() => import("./chunk-tfd4pnnt.js"));
4531
4531
  function docsCommand(args) {
4532
4532
  return gen(function* () {
4533
4533
  const command = parseCommand(args);
@@ -5361,9 +5361,9 @@ function changeRequestCommand(args) {
5361
5361
  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}`);
5362
5362
  });
5363
5363
  }
5364
- var KitWriter = map8(promise(() => import("./chunk-nb1x1swa.js")), (build) => build.writeKit);
5364
+ var KitWriter = map8(promise(() => import("./chunk-x7574rns.js")), (build) => build.writeKit);
5365
5365
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
5366
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-nb1x1swa.js")), (build) => build.buildKit(directory))
5366
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-x7574rns.js")), (build) => build.buildKit(directory))
5367
5367
  });
5368
5368
  var uploadKit = (client, workspaceId, built) => gen(function* () {
5369
5369
  yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
@@ -24,15 +24,15 @@ import {
24
24
  tomlKeyPath2,
25
25
  kitmanSkillEntry,
26
26
  isPathWithin2
27
- } from "./chunk-jn7w2ntt.js";
27
+ } from "./chunk-f0h8f3kw.js";
28
28
  import {
29
29
  instructionsStart,
30
30
  instructionsEnd,
31
31
  renderMcpServer,
32
32
  materializeKitSetup,
33
33
  tomlInline
34
- } from "./chunk-4w0c1ykv.js";
35
- import"./chunk-azfjx5d8.js";
34
+ } from "./chunk-wx3cx43j.js";
35
+ import"./chunk-xgdyj09a.js";
36
36
  import"./chunk-mtkstrh3.js";
37
37
 
38
38
  // packages/agent-runtime/src/kit-setup-sync.ts
@@ -12,7 +12,7 @@ import {
12
12
  herdrCoreLayer2,
13
13
  herdrCoreTransportLayer2,
14
14
  updateHerdrCore2
15
- } from "./chunk-4w0c1ykv.js";
15
+ } from "./chunk-wx3cx43j.js";
16
16
  import"./chunk-0h49y8gf.js";
17
17
  import"./chunk-zw3gf6r5.js";
18
18
  export {
@@ -105,7 +105,7 @@ import {
105
105
  KitDigest,
106
106
  KitSetup,
107
107
  RunnerRpcError
108
- } from "./chunk-4w0c1ykv.js";
108
+ } from "./chunk-wx3cx43j.js";
109
109
  import {
110
110
  runForEach,
111
111
  FileSystem
@@ -4,7 +4,7 @@ import {
4
4
  searchDocs2,
5
5
  readDoc2,
6
6
  pinnedLink2
7
- } from "./chunk-w83fadhh.js";
7
+ } from "./chunk-gnxa022f.js";
8
8
  export {
9
9
  DefaultDocsSearchLimit2 as DefaultDocsSearchLimit,
10
10
  pinnedLink2 as pinnedLink,
@@ -5838,7 +5838,8 @@ var LoopForbiddenDataflowKeyRegExp = new RegExp(LoopForbiddenDataflowKeyPattern)
5838
5838
  var LoopForbiddenContentRegExp = new RegExp(LoopReferenceAndUrlForbiddenContentPattern);
5839
5839
  var LoopSafeReferenceString = String4.check(isMinLength(1), isMaxLength(240), isPattern(new RegExp(LoopSafeReferencePattern, "u")));
5840
5840
  var LoopSafeInternalReferenceString = String4.check(isMinLength(1), isMaxLength(240), isPattern(new RegExp(LoopSafeInternalReferencePattern, "u")));
5841
- var LoopSafeText = String4.check(isMaxLength(4000), isPattern(new RegExp(`^(?![\\s\\S]*(?:${LoopCredentialContentPattern}|[A-Za-z][A-Za-z0-9+.-]*://(?:[^\\s/?#]*@|[^\\s?#]*\\?)))[\\s\\S]*$`, "u")));
5841
+ var loopSafeTextMaxLength = 4000;
5842
+ var LoopSafeText = String4.check(isMaxLength(loopSafeTextMaxLength), isPattern(new RegExp(`^(?![\\s\\S]*(?:${LoopCredentialContentPattern}|[A-Za-z][A-Za-z0-9+.-]*://(?:[^\\s/?#]*@|[^\\s?#]*\\?)))[\\s\\S]*$`, "u")));
5842
5843
  var QuestionText = String4;
5843
5844
  var LoopSafeOutputDataString = String4.check(isMaxLength(4000), isPattern(new RegExp(LoopSafeInternalReferencePattern, "u")));
5844
5845
  var LoopSafePackageName = String4.check(isMinLength(1), isMaxLength(200), isPattern(new RegExp(LoopSafeReferencePattern, "u")));
@@ -34,6 +34,14 @@ import {
34
34
  encodePrettyJsonString
35
35
  } from "./chunk-zw3gf6r5.js";
36
36
  import"./chunk-q5w3v4k1.js";
37
+ import {
38
+ decodeText,
39
+ mkString,
40
+ FileSystem,
41
+ Path,
42
+ withDefault,
43
+ String2
44
+ } from "./chunk-0h49y8gf.js";
37
45
  import {
38
46
  SecureRandom,
39
47
  layerWebCrypto,
@@ -45,31 +53,23 @@ import {
45
53
  layer4,
46
54
  kitmanMcpServer,
47
55
  RunnerRpcProtocolVersion
48
- } from "./chunk-4w0c1ykv.js";
49
- import {
50
- decodeText,
51
- mkString,
52
- FileSystem,
53
- Path,
54
- withDefault,
55
- String2
56
- } from "./chunk-0h49y8gf.js";
56
+ } from "./chunk-wx3cx43j.js";
57
57
  import {
58
58
  Packument,
59
59
  tarballMatches
60
- } from "./chunk-azfjx5d8.js";
61
- import"./chunk-7afnkx5b.js";
60
+ } from "./chunk-xgdyj09a.js";
61
+ import"./chunk-51ye0af0.js";
62
62
  import {
63
63
  AgentDeclaration,
64
64
  KitDeclarations,
65
65
  describeFlag,
66
66
  Described
67
- } from "./chunk-4gy4ty6k.js";
67
+ } from "./chunk-q44g4vf7.js";
68
68
  import {
69
69
  ChildProcessSpawner,
70
70
  make3
71
71
  } from "./chunk-mtkstrh3.js";
72
- import"./chunk-fr79hgq2.js";
72
+ import"./chunk-5wnjn5r0.js";
73
73
 
74
74
  // packages/sdk/src/build/index.ts
75
75
  class DependencyInstallFailed extends TaggedError2()("DependencyInstallFailed", {
@@ -39,7 +39,7 @@ import {
39
39
  get2,
40
40
  layer4,
41
41
  KitDigest
42
- } from "./chunk-4w0c1ykv.js";
42
+ } from "./chunk-wx3cx43j.js";
43
43
 
44
44
  // packages/core/src/npm-registry.ts
45
45
  var KitManifest = Struct({
package/dist/index.js CHANGED
@@ -14,6 +14,6 @@ if (args[0] === "srt") {
14
14
  const { runOpencodeReader } = await import("./chunk-5zhh41gb.js");
15
15
  runOpencodeReader();
16
16
  } else {
17
- const { runCli } = await import("./chunk-k6jnrs2f.js");
17
+ const { runCli } = await import("./chunk-hh7rg13h.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.12.12",
3
+ "version": "0.12.14",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "bin": {