@kitman-sh/cli 0.12.2 → 0.12.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.
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-zw3gf6r5.js";
10
10
  import {
11
11
  runForEach
12
- } from "./chunk-0h49y8gf.js";
12
+ } from "./chunk-trqvcc06.js";
13
13
  import {
14
14
  WebSocketConstructor,
15
15
  layerWebSocketConstructorGlobal,
@@ -19,13 +19,13 @@ import {
19
19
  RunnerReplicaRpcs,
20
20
  RunnerRunFileRpcs,
21
21
  ProgramRpcs
22
- } from "./chunk-c7253rcg.js";
22
+ } from "./chunk-vbv9x6d7.js";
23
23
  import {
24
24
  layerJson,
25
25
  make4,
26
26
  withHeaders,
27
27
  layerProtocolSocket
28
- } from "./chunk-fs72937p.js";
28
+ } from "./chunk-v1pa2dpe.js";
29
29
 
30
30
  // packages/live/src/rpc/runner-client.ts
31
31
  var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
@@ -169,6 +169,47 @@ import {
169
169
  encodeUnknownJsonStringSync,
170
170
  storable
171
171
  } from "./chunk-zw3gf6r5.js";
172
+ import {
173
+ join,
174
+ interrupt,
175
+ unbounded,
176
+ publishUnsafe,
177
+ unbounded2,
178
+ offer,
179
+ makeUnsafe3,
180
+ make11,
181
+ fromQueue,
182
+ fromPubSub,
183
+ map2,
184
+ filter,
185
+ decodeText,
186
+ encodeText,
187
+ splitLines,
188
+ run,
189
+ runHead,
190
+ runForEach,
191
+ FileSystem,
192
+ Path,
193
+ embeddedFile,
194
+ extractEmbeddedFile,
195
+ optionalEnv,
196
+ operatorConfigHome,
197
+ tempDirectoryScoped,
198
+ harnessesUnsupportedInSrt2,
199
+ compiled2,
200
+ pinnedSrtCommand2,
201
+ pinnedSrtStepCommand2,
202
+ runSrtCli2,
203
+ kitmanCacheDirectory2,
204
+ srtSettings2,
205
+ srtCacheEnvironment2,
206
+ srtInheritedEnv2,
207
+ inheritedEnvironment2,
208
+ withOnlyEnvironment2,
209
+ writeSrtSettings2,
210
+ srtStepArgv2,
211
+ srtArgv2
212
+ } from "./chunk-trqvcc06.js";
172
213
  import {
173
214
  Id,
174
215
  secretReference,
@@ -247,48 +288,7 @@ import {
247
288
  installCommand,
248
289
  checkServicesFile,
249
290
  checkServices
250
- } from "./chunk-c7253rcg.js";
251
- import {
252
- join,
253
- interrupt,
254
- unbounded,
255
- publishUnsafe,
256
- unbounded2,
257
- offer,
258
- makeUnsafe3,
259
- make11,
260
- fromQueue,
261
- fromPubSub,
262
- map2,
263
- filter,
264
- decodeText,
265
- encodeText,
266
- splitLines,
267
- run,
268
- runHead,
269
- runForEach,
270
- FileSystem,
271
- Path,
272
- embeddedFile,
273
- extractEmbeddedFile,
274
- optionalEnv,
275
- operatorConfigHome,
276
- tempDirectoryScoped,
277
- harnessesUnsupportedInSrt2,
278
- compiled2,
279
- pinnedSrtCommand2,
280
- pinnedSrtStepCommand2,
281
- runSrtCli2,
282
- kitmanCacheDirectory2,
283
- srtSettings2,
284
- srtCacheEnvironment2,
285
- srtInheritedEnv2,
286
- inheritedEnvironment2,
287
- withOnlyEnvironment2,
288
- writeSrtSettings2,
289
- srtStepArgv2,
290
- srtArgv2
291
- } from "./chunk-0h49y8gf.js";
291
+ } from "./chunk-vbv9x6d7.js";
292
292
  import {
293
293
  writeAgentEnvironmentConfigFile2,
294
294
  readManifestSkillPaths2,
@@ -304,8 +304,8 @@ import {
304
304
  applyAgentEnvironmentMaterialization2,
305
305
  isPathWithin2,
306
306
  skillIdentity2
307
- } from "./chunk-rgby07sa.js";
308
- import"./chunk-1wbdexzg.js";
307
+ } from "./chunk-y1mhc7qd.js";
308
+ import"./chunk-rs0qassb.js";
309
309
  import {
310
310
  egressAllowed,
311
311
  writeSecretRegistry,
@@ -323,23 +323,23 @@ import {
323
323
  decodedOption2,
324
324
  decoded2,
325
325
  readOpencode2
326
- } from "./chunk-cbpb2rww.js";
326
+ } from "./chunk-bvpczkzf.js";
327
327
  import {
328
328
  uploadRunFile,
329
329
  programLease,
330
330
  rpcRunFiles,
331
331
  programHostsEnv,
332
332
  undeclaredHostsEnv
333
- } from "./chunk-4d4n8qjs.js";
334
- import"./chunk-13yrey2v.js";
333
+ } from "./chunk-j373bdw1.js";
334
+ import"./chunk-6b91ftp6.js";
335
335
  import {
336
336
  nextInt
337
337
  } from "./chunk-gq7y5v3e.js";
338
338
  import {
339
339
  ChildProcessSpawner,
340
340
  make3
341
- } from "./chunk-mtkstrh3.js";
342
- import"./chunk-fs72937p.js";
341
+ } from "./chunk-nfc1scfz.js";
342
+ import"./chunk-v1pa2dpe.js";
343
343
 
344
344
  // packages/core/src/sync-kit.ts
345
345
  import { createHash } from "crypto";
@@ -116,7 +116,7 @@ import {
116
116
  withDefault,
117
117
  option,
118
118
  String2
119
- } from "./chunk-0h49y8gf.js";
119
+ } from "./chunk-trqvcc06.js";
120
120
  import {
121
121
  currentTimeMillis,
122
122
  SecureRandom,
@@ -228,14 +228,14 @@ import {
228
228
  harnessNames,
229
229
  herdrRunnerCapabilities2,
230
230
  declaredChecks
231
- } from "./chunk-c7253rcg.js";
231
+ } from "./chunk-vbv9x6d7.js";
232
232
  import {
233
233
  Id
234
234
  } from "./chunk-q5w3v4k1.js";
235
235
  import {
236
236
  ChildProcessSpawner,
237
237
  make3
238
- } from "./chunk-mtkstrh3.js";
238
+ } from "./chunk-nfc1scfz.js";
239
239
 
240
240
  // apps/cli/src/cli-error.ts
241
241
  function cliErrorCode(error, status) {
@@ -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-y39h1gzp.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
992
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-9ydwnxh9.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-y39h1gzp.js")), (module) => module.updateHerdrCore(options))
995
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-9ydwnxh9.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-c76ngzr6.js"));
1415
+ const { syncKitSetup } = yield* promise(() => import("./chunk-r3yamwdd.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.2";
2334
+ var cliVersion = "0.12.4";
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-hvwkpnv5.js"));
2486
+ var agentRuntime = promise(() => import("./chunk-74zwne6t.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-kvt8cr8m.js"));
3510
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-r4a6f4pa.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-11yawd7p.js"));
4042
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-9rvj15vf.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-xj6qb52g.js"));
4530
+ var docsModule = promise(() => import("./chunk-gbakhy7m.js"));
4531
4531
  function docsCommand(args) {
4532
4532
  return gen(function* () {
4533
4533
  const command = parseCommand(args);
@@ -4751,6 +4751,7 @@ var graphNodeText = (node) => `${node.name} ${node.kind} ${runDisplayLabels[node
4751
4751
  var displayGlyphs = {
4752
4752
  queued: "\u25CB",
4753
4753
  running: "\u25D0",
4754
+ paused: "\u2016",
4754
4755
  needs_you: "?",
4755
4756
  blocked: "\u25B2",
4756
4757
  failed: "\u2717",
@@ -5360,9 +5361,9 @@ function changeRequestCommand(args) {
5360
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}`);
5361
5362
  });
5362
5363
  }
5363
- var KitWriter = map8(promise(() => import("./chunk-711r4pfw.js")), (build) => build.writeKit);
5364
+ var KitWriter = map8(promise(() => import("./chunk-j8j7ryjm.js")), (build) => build.writeKit);
5364
5365
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
5365
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-711r4pfw.js")), (build) => build.buildKit(directory))
5366
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-j8j7ryjm.js")), (build) => build.buildKit(directory))
5366
5367
  });
5367
5368
  var uploadKit = (client, workspaceId, built) => gen(function* () {
5368
5369
  yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
@@ -312,7 +312,7 @@ Open the item and use **Start run** in it: pick the Loop, and give what is missi
312
312
  path: "inbox",
313
313
  level: 1,
314
314
  link: "https://kitman.sh/knowledge/docs/inbox",
315
- text: `What arrives in your Inbox, acting on it in place, and the My Teams view.
315
+ text: `What arrives in your Inbox, acting on it in place, the review queue and the My Teams view.
316
316
 
317
317
  Kitman opens on your Inbox: the work that needs you, and news about the work you care about. Each item is one Task, Run or Proposal, with every Notification about it, newest first, and what is new since you last looked.`
318
318
  },
@@ -350,6 +350,26 @@ Mark items read or unread, done, or snooze them until later. A new Notification
350
350
  From the keyboard: **J** and **K** move between items, **Enter** opens one and **Esc** closes it, **E** marks it done, **U** read or unread, **H** snoozes, and **Z** undoes the last done or snooze. With a Task open, **C** replies, **S**, **P** and **A** change its state, priority and assignee, and **R** starts a Run. **?** lists them all with the control that does the same.
351
351
 
352
352
  New items arrive live, and the navigation shows how many are unread.`
353
+ },
354
+ {
355
+ title: "Inbox \u203A Review queue",
356
+ path: "inbox#review-queue",
357
+ level: 2,
358
+ link: "https://kitman.sh/knowledge/docs/inbox#review-queue",
359
+ text: `## Review queue
360
+
361
+ The **Review queue** lists everything waiting on you, oldest first, on one page: your Teams' open ChangeRequests that wait on a person's review, plans to review, the open Run Questions you may answer, and, for Workspace owners and admins, proposed Memory. Each item shows its Task, its Run, how long it has waited and who asked: the Run's Loop and the person who started it, or whoever opened the ChangeRequest or proposed the Memory.
362
+
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
+
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 |
371
+
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.`
353
373
  },
354
374
  {
355
375
  title: "Inbox \u203A My Teams",
@@ -492,7 +512,14 @@ kitman run intent <run> --remove-constraint <id>
492
512
  kitman run intent <run> --corrections off
493
513
  \`\`\`
494
514
 
495
- Each amendment is a new version with its author, and \`kitman run intent <run>\` lists them all. A constraint a person removed never comes back. A settled or closed Run refuses amendments.`
515
+ Each amendment is a new version with its author, and \`kitman run intent <run>\` lists them all. On the Run page's Intent tab, edit the goal or a constraint in place: each save is one new version. An edited constraint takes the old one's place under a new id, so Drift Reports against the old wording stay with it. A constraint a person removed or reworded never comes back. A settled or closed Run refuses amendments.`
516
+ },
517
+ {
518
+ title: "Loop Operations Guide \u203A Steering, pausing and resuming",
519
+ path: "loop-operations#steering-pausing-and-resuming",
520
+ level: 2,
521
+ link: "https://kitman.sh/knowledge/docs/loop-operations#steering-pausing-and-resuming",
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`."
496
523
  },
497
524
  {
498
525
  title: "Loop Operations Guide \u203A Constraints",
@@ -1454,7 +1481,7 @@ var pathOfLink = (link) => {
1454
1481
  return page === null ? link : page[1] || "index";
1455
1482
  };
1456
1483
  var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
1457
- var pinnedLink2 = (link, version = "0.12.2") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
1484
+ var pinnedLink2 = (link, version = "0.12.4") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
1458
1485
  var pageOf = (path) => path.split("#")[0];
1459
1486
  var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
1460
1487
  function excerpt(text, queryTerms) {