@kitman-sh/cli 0.11.6 → 0.12.0-rc.1

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.
@@ -108,7 +108,7 @@ import {
108
108
  withDefault,
109
109
  option,
110
110
  String2
111
- } from "./chunk-3d4d52e5.js";
111
+ } from "./chunk-0b93nv6j.js";
112
112
  import {
113
113
  currentTimeMillis,
114
114
  SecureRandom,
@@ -218,7 +218,7 @@ import {
218
218
  harnessNames,
219
219
  herdrRunnerCapabilities2,
220
220
  declaredChecks
221
- } from "./chunk-vxftwsbn.js";
221
+ } from "./chunk-dc57c8s5.js";
222
222
  import {
223
223
  Id
224
224
  } from "./chunk-0qz10ek8.js";
@@ -235,7 +235,7 @@ import {
235
235
  import {
236
236
  ChildProcessSpawner,
237
237
  make3
238
- } from "./chunk-sk6ceghr.js";
238
+ } from "./chunk-2qarscbj.js";
239
239
 
240
240
  // apps/cli/src/cli-error.ts
241
241
  function cliErrorCode(error, status) {
@@ -400,6 +400,463 @@ var notListTypes = new Set([
400
400
  "ClassExpression"
401
401
  ]);
402
402
  var unbindable = new Set("arguments await break case catch class config const continue debugger default defineKit delete do else enum eval export extends false finally for function if implements import in instanceof interface let new null package private protected public return static super switch this throw true try typeof undefined var void while with yield".split(" "));
403
+
404
+ // apps/cli/src/command-help.ts
405
+ var Usage = [
406
+ "Usage: kitman <init|pair|docs|run|inbox|loop|agent|deploy|verify|secret|claim|team|repo|constraint|mcp|sync|whoami|config|kit|task|memory|proposal|decision|context|schedule|delivery|reconcile|lifecycle|logout> [options]",
407
+ "",
408
+ "Set up, in a repository (run it again to repair what is missing):",
409
+ " kitman init [--yes] [--api-url <url>]",
410
+ " kitman pair [<pairing code>] [--api-url <url>] (what the command the web shows runs; no code finishes or re-keys with your session)",
411
+ " kitman pair <runner pairing code> --credential-file <path> (writes a shared Runner's credential for a container or its replicas to mount)",
412
+ " kitman runner start --credential-file <path> (or KITMAN_RUNNER_CREDENTIAL_FILE; starts the Runner the file holds)",
413
+ " kitman runner settings <runner> [--concurrency <1-4>] [--sandbox srt|docker|host] [--docker-image <image@sha256:\u2026>|none]",
414
+ " [--check-hosts <host,\u2026>|none] [--check-docker-image <image@sha256:\u2026>|none] [--check-registry-image <image@sha256:\u2026>|none]",
415
+ " kitman runner settings history <runner> (each change: who, when, old and new value)",
416
+ "",
417
+ "Kitman's docs, as this version ships them and offline: Kits, Agents and their layers, Loops, Runners and the CLI:",
418
+ ' kitman docs search "<query>" [--limit <n>] [--json]',
419
+ " kitman docs read <path> [--json] (a path search printed; a guide's own path reads the whole guide)",
420
+ "",
421
+ "Runs:",
422
+ ' kitman run start <loop> "<words>" [--input <json>] [--team <team>] [--type <task type>] [--constraint <text>]... [--fresh] [--override-blockers]',
423
+ " kitman run show <run>",
424
+ " kitman run intent <run> [--set-goal <text>] [--add-constraint <text>] [--remove-constraint <id>] [--corrections on|off]",
425
+ " kitman run drift <run> [--dismiss <constraint> --reason <text>]",
426
+ " kitman run files <run> [--step <step>]",
427
+ " kitman run file get <run> <id> [--out <path>]",
428
+ " kitman run list [--team <id>] [--loop <loop>] [--state <state>[,<state>\u2026]] [--limit <n>]",
429
+ " kitman run wait <run> [--until attention|finished]",
430
+ ' kitman run answer <run> ["<option or words>"] [--question <name>] (on a terminal, with no answer: asks each open Question)',
431
+ ' kitman run steer <run> "<note for the agent>"',
432
+ " kitman run follow <run> (prints its agents' Transcripts as they grow, until the Run settles)",
433
+ " kitman transcript <run> [--step <step>] [--attempt <n>]",
434
+ " kitman run stop <run>",
435
+ ' kitman run resume <run> [--steer "<note for the retried Step>"]',
436
+ " kitman run close <run> --complete|--abandoned [--reason <text>]",
437
+ " kitman run actions <run>",
438
+ " kitman run action <run> <action> [--override-blockers]",
439
+ " kitman task assign <task> --to <person> (by email, name or id)",
440
+ " kitman task assign <task> --loop <loop> [--override-blockers] (starts a Run of the Loop on the Task; you stay its owner)",
441
+ " kitman inbox [--unread|--snoozed|--done]",
442
+ " kitman inbox my-teams [--team <team>]",
443
+ " kitman inbox read|unread|done|undone|unsnooze <task:id|run:id|proposal:id|project_update:id>...",
444
+ " kitman inbox snooze <task:id|run:id|proposal:id|project_update:id>... --until <time>",
445
+ " kitman inbox unsubscribe <task>...",
446
+ " kitman cr approve <id|url> [--summary <text>] (approves the head Kitman last saw; only a person, not an agent or a tool acting for one)",
447
+ " kitman cr request-changes <id|url> --summary <text>",
448
+ "",
449
+ "",
450
+ "Loops and Agents the Kits deployed here declare (kitman deploy changes them):",
451
+ " kitman loop list",
452
+ " kitman loop show <loop>",
453
+ " kitman loop starts [--limit <n>] (what Events started, or why they started nothing)",
454
+ " kitman loop when <loop> <event> on|off (turn an automatic start on or off for the Team)",
455
+ " kitman agent list",
456
+ "",
457
+ "Kits of your own, to deploy with kitman deploy:",
458
+ " kitman init --kit [dir] (a new Kit with an example Loop and a GitLab pipeline)",
459
+ " kitman loop fork <loop> [dir] (a new Kit that spreads a software-engineering Loop, to change it)",
460
+ "",
461
+ "Approved verifications of the current repository:",
462
+ " kitman verify list",
463
+ ' kitman verify add <name> "<command>" [--cwd <directory>] [--pipeline] [--reads-target]',
464
+ " kitman verify remove <name>",
465
+ " kitman constraint list",
466
+ ' kitman constraint add "<constraint>"',
467
+ " kitman constraint remove <constraint>",
468
+ "",
469
+ "Secrets, for the Workspace or with --team for one Team; values are write-only:",
470
+ " <command> | kitman secret set <name> [--host <host>...] [--team <team>] (reads the value from stdin; a Step may send it only to these hosts, kept when none is given)",
471
+ " kitman secret delete <name> [--team <team>]",
472
+ " kitman secret list [--team <team>]",
473
+ " kitman secret move <name> [--team <team>] --to <team>|workspace",
474
+ "",
475
+ "Network hosts a Team's agent Steps and checks may reach, or with --repo those of this checkout's repository:",
476
+ " kitman network-host list [--team <team> | --repo]",
477
+ " kitman network-host add <host> --team <team> | --repo (example.com, example.com:8443 or *.example.com)",
478
+ " kitman network-host remove <host> --team <team> | --repo",
479
+ "",
480
+ "Shared resources Runs claim, such as a deploy target:",
481
+ " kitman claim list",
482
+ " kitman claim release <resource> --reason <text>",
483
+ "",
484
+ "A private Team, and all it holds, is seen by its members alone:",
485
+ " kitman team private <team>",
486
+ " kitman team open <team>",
487
+ " kitman team invite <team> <person>",
488
+ " kitman team delivery <team> gated|auto (only a person, signed in as an owner or admin)",
489
+ "",
490
+ "When Release runs: on each merge, when a Milestone is done, or when a Project is done. A Project inherits its Team's, a Team the Workspace's:",
491
+ " kitman release workspace [merge|milestone|project] (setting it needs an owner or admin)",
492
+ " kitman release team <team> [merge|milestone|project|inherit]",
493
+ " kitman release project <project> [merge|milestone|project|inherit]",
494
+ "",
495
+ "Where delivery lands: on the default branch, or a sub-task on its epic's branch and the epic on the default branch once every sub-task is done. A Project inherits its Team's, a Team the Workspace's:",
496
+ " kitman land workspace [default|epic] (setting it needs an owner or admin)",
497
+ " kitman land team <team> [default|epic|inherit]",
498
+ " kitman land project <project> [default|epic|inherit]",
499
+ "",
500
+ "Repositories, Memory and Decisions belong to the Workspace or one Team:",
501
+ " kitman repo list",
502
+ " kitman repo add [--from-current-repo] [--team <team>]",
503
+ " kitman repo move <repository> --to <team>|workspace",
504
+ " kitman memory move <memory> --to <team>|workspace",
505
+ " kitman decision move <decision> --to <team>|workspace",
506
+ "",
507
+ "Kits, built from the current directory and deployed to the Workspace or with --team to one Team:",
508
+ " kitman deploy [--plan] [--team <team>] (--plan prints what would change; deploying needs a clean tree)",
509
+ ' kitman dev <loop> "<words>" [--input <json>] [--team <team>] (runs the working tree on your personal Runner)',
510
+ " kitman kit build [dir] [--out <dir>] (for prepack: writes the built Kit into the npm package)",
511
+ "",
512
+ "Kits on the Workspace, a Team with --team, or yourself with --me: deployed from a repository or installed from npm:",
513
+ " kitman kit list [--team <team>|--me]",
514
+ " kitman kit show <name> [--team <team>|--me]",
515
+ " kitman kit add <npm name> [--team <team>|--me]",
516
+ " kitman kit pin <name> <version> [--team <team>|--me]",
517
+ " kitman kit unpin <name> [--team <team>|--me]",
518
+ " kitman kit remove <name> [--team <team>|--me] [--yes] (a deployed Kit prints the plan; it is removed only with --yes)",
519
+ "",
520
+ "Every docs, run, loop, agent, verify, constraint, secret, claim, deploy, dev and kit command takes --json."
521
+ ].join(`
522
+ `);
523
+ var moreUsage = [
524
+ [
525
+ "Sign in and out, and see who and where you are:",
526
+ [
527
+ " kitman login [--api-url <url>]",
528
+ " kitman logout [--all] [--api-url <url>] (--all signs out of every Kitman API)",
529
+ " kitman whoami",
530
+ " kitman config show (the API URL, Workspace and Team in use, and where each came from)"
531
+ ]
532
+ ],
533
+ [
534
+ "Workspaces and Teams in use:",
535
+ [
536
+ " kitman workspace list",
537
+ " kitman workspace create <name>",
538
+ " kitman workspace use <workspace> [--local] (--local writes it to this directory\u2019s .kitman/config.json)",
539
+ " kitman team list",
540
+ " kitman team use <team> [--local]"
541
+ ]
542
+ ],
543
+ [
544
+ "Runners:",
545
+ [
546
+ " kitman runner list",
547
+ " kitman runner status|logs|restart|remove <runner> [--follow] (--follow keeps printing logs)",
548
+ " kitman runner doctor [<runner>] [--team <team>] [--backend <backend>]",
549
+ " kitman runner register [<name>] [--backend herdr] [--team <team>] [--scope-type workspace|team|personal] [--scope-id <id>]",
550
+ " [--team-access all|selected] (registers this machine as a Runner of the active Workspace)",
551
+ " kitman runner heartbeat <runner>",
552
+ " kitman runner rescope <runner> --scope-type workspace|team|personal [--scope-id <id>] [--team-access all|selected]",
553
+ " kitman runner grant list <runner> (the Teams a Runner serving selected Teams serves)",
554
+ " kitman runner grant add|remove <runner> --team <team>",
555
+ " kitman runner replica list <runner>",
556
+ " kitman runner attach|detach <workspace> --runner <runner> (your personal Runner, in another Workspace you are a member of)",
557
+ " kitman runner attachments <runner>",
558
+ " kitman runner bootstrap|install --local [--profile <profile>] (prepares this machine; creates nothing in Kitman)"
559
+ ]
560
+ ],
561
+ [
562
+ "Code Mode MCP and Harness setup:",
563
+ [
564
+ " kitman mcp (serves the Code Mode MCP on stdio)",
565
+ " kitman mcp setup --name <tool> [--local] (a delegated credential for an MCP client)",
566
+ " kitman sync [--harness <id>] (writes your Kits' skills and MCP servers into this machine's Harnesses)"
567
+ ]
568
+ ],
569
+ [
570
+ "Tasks of the active Team:",
571
+ [
572
+ " kitman task list [--status <state>]",
573
+ " kitman task show <task>",
574
+ " kitman task thread <task> [--limit <n>]",
575
+ ' kitman task note|decision <task> "<text>"|--content <text>|--stdin [--session <session>]',
576
+ " kitman task sessions <task>",
577
+ " kitman task session-updates <session>",
578
+ " kitman task dependencies <task>",
579
+ " kitman task assets <task> [--limit <n>]",
580
+ " kitman task upload-asset <task> <path> [--filename <name>] [--content-type <type>] [--description <text>] [--session <session>]",
581
+ " kitman task download-asset <asset> <path>",
582
+ " kitman task delete-asset <asset>"
583
+ ]
584
+ ],
585
+ [
586
+ "Memory, Proposals and Decisions:",
587
+ [
588
+ " kitman memory list [--status <status>] [--scope-type <scope>] [--scope-id <id>] [--limit <n>]",
589
+ ' kitman memory propose "<text>"|--content <text>|--stdin --scope-type <scope> --scope-id <id>',
590
+ " kitman memory approve|reject|deprecate <memory>",
591
+ " kitman proposal list [--team <team>] [--status <status>] [--target-type <type>] [--limit <n>]",
592
+ " kitman proposal show <proposal>",
593
+ " kitman proposal approve <proposal>",
594
+ " kitman proposal reject <proposal> <revision>",
595
+ " kitman decision list [--team <team>] [--status <status>] [--limit <n>]",
596
+ " kitman decision show <decision>"
597
+ ]
598
+ ],
599
+ [
600
+ "ContextPacks:",
601
+ [" kitman context <task> [--mode planning|implementation|debugging|review|handoff] (implementation by default)"]
602
+ ],
603
+ [
604
+ "Loops in the catalog:",
605
+ [" kitman loop catalog [--limit <n>]", " kitman loop validate|test <loop> [--input <json>]"]
606
+ ],
607
+ [
608
+ "Deploy Bindings, which deploy a Kit when its repository branch changes:",
609
+ [
610
+ " kitman deploy bindings",
611
+ " kitman deploy bind --branch <branch> [--team <team>] (binds the current repository)",
612
+ " kitman deploy unbind <binding>"
613
+ ]
614
+ ],
615
+ [
616
+ "Operations:",
617
+ [
618
+ " kitman schedule publish <schedule> [--input <json>] [--idempotency-key <key>]",
619
+ " kitman delivery deliver|reconcile [<delivery>] [--input <json>] [--idempotency-key <key>]",
620
+ " kitman reconcile <delivery> [--input <json>] [--idempotency-key <key>]",
621
+ " kitman lifecycle capabilities|show",
622
+ " kitman trigger [--event <event>] [--input <json>] [--idempotency-key <key>]",
623
+ " kitman work-unit list [--work-unit-kind <kind>] [--status <status>] [--runner <runner>] [--replica <replica>] [--run <run>] [--limit <n>]",
624
+ " kitman work-unit show|get <work unit>",
625
+ " kitman work-unit claim|start|heartbeat|complete|fail|cancel <work unit> [--input <json>] [--idempotency-key <key>]"
626
+ ]
627
+ ]
628
+ ];
629
+ var run2 = "01a1e94e-0e3b-751c-9bab-5b931ddc7f27";
630
+ var examples = [
631
+ "kitman init --yes",
632
+ "kitman init --kit my-kit",
633
+ "kitman pair 4F7K-9QX2",
634
+ "kitman pair 8HJD-2MZP --credential-file ./runner.json",
635
+ "kitman runner start --credential-file ./runner.json",
636
+ 'kitman docs search "override an agent harness for a team" --limit 5',
637
+ "kitman docs read loop-operations#agents-and-effort",
638
+ "kitman runner settings my-runner --concurrency 2 --sandbox srt",
639
+ "kitman runner settings history my-runner",
640
+ "kitman runner list",
641
+ "kitman runner logs my-runner --follow",
642
+ "kitman runner doctor my-runner",
643
+ 'kitman runner register "Build box" --backend herdr --scope-type team --scope-id platform',
644
+ "kitman runner heartbeat my-runner",
645
+ "kitman runner rescope my-runner --scope-type workspace --team-access selected",
646
+ "kitman runner grant list my-runner",
647
+ "kitman runner grant add my-runner --team platform",
648
+ "kitman runner replica list my-runner",
649
+ "kitman runner attach 01a1ea66-7081-7da2-8adb-bf5e8e7d3c44 --runner my-runner",
650
+ "kitman runner attachments my-runner",
651
+ "kitman runner bootstrap --local --profile local-fast",
652
+ `kitman run start build "Fix the flaky login test" --team platform`,
653
+ `kitman run show ${run2}`,
654
+ `kitman run intent ${run2} --add-constraint "Keep the public API unchanged"`,
655
+ `kitman run drift ${run2}`,
656
+ `kitman run files ${run2} --step implement`,
657
+ `kitman run file get ${run2} 01a1e9a0-6c1f-7d4b-8e21-3f0c2a9b7d10 --out screenshot.png`,
658
+ "kitman run list --loop build --state running,needs_you --limit 10",
659
+ `kitman run wait ${run2} --until finished`,
660
+ `kitman run answer ${run2} "Yes, ship it" --question approve`,
661
+ `kitman run steer ${run2} "Use the existing retry helper"`,
662
+ `kitman run follow ${run2}`,
663
+ `kitman transcript ${run2} --step implement --attempt 2`,
664
+ `kitman run stop ${run2}`,
665
+ `kitman run resume ${run2} --steer "The migration already exists; reuse it"`,
666
+ `kitman run close ${run2} --abandoned --reason "Superseded by KIT-43"`,
667
+ `kitman run actions ${run2}`,
668
+ `kitman run action ${run2} retry`,
669
+ "kitman task assign KIT-42 --to ada@example.com",
670
+ "kitman task assign KIT-42 --loop build",
671
+ 'kitman task list --status "In Progress"',
672
+ "kitman task show KIT-42",
673
+ "kitman task thread KIT-42 --limit 20",
674
+ 'kitman task note KIT-42 "Reproduced on master"',
675
+ "kitman task sessions KIT-42",
676
+ "kitman task session-updates 01a1e9b2-55d0-7c3e-9a41-0d6e2f8b1c33",
677
+ "kitman task dependencies KIT-42",
678
+ "kitman task assets KIT-42",
679
+ "kitman task upload-asset KIT-42 ./trace.log --content-type text/plain",
680
+ "kitman task download-asset 01a1e9c4-1b7a-7f02-8d55-6a3e9c0f2b44 ./trace.log",
681
+ "kitman task delete-asset 01a1e9c4-1b7a-7f02-8d55-6a3e9c0f2b44",
682
+ "kitman inbox --unread",
683
+ "kitman inbox my-teams --team platform",
684
+ `kitman inbox read task:KIT-42 run:${run2}`,
685
+ "kitman inbox snooze task:KIT-42 --until 2026-11-18T09:00",
686
+ "kitman inbox unsubscribe KIT-42",
687
+ 'kitman cr approve 128 --summary "Looks good"',
688
+ 'kitman cr request-changes 128 --summary "The migration drops a column still read by the API"',
689
+ "kitman loop list",
690
+ "kitman loop show build",
691
+ "kitman loop starts --limit 20",
692
+ "kitman loop when shepherd change_request.pipeline on",
693
+ "kitman loop fork build ./kits/my-build",
694
+ "kitman loop catalog",
695
+ `kitman loop validate build --input '{"task":"KIT-42"}'`,
696
+ "kitman agent list",
697
+ "kitman verify list",
698
+ 'kitman verify add unit-tests "bun run test" --cwd apps/cli',
699
+ "kitman verify remove unit-tests",
700
+ "kitman constraint list",
701
+ 'kitman constraint add "Never edit generated migrations by hand"',
702
+ "kitman constraint remove 01a1e9d6-3e8c-7a19-b6f4-2c7d0e5a9f55",
703
+ 'printf %s "$TOKEN" | kitman secret set NPM_TOKEN --host registry.npmjs.org --team platform',
704
+ "kitman secret delete NPM_TOKEN --team platform",
705
+ "kitman secret list --team platform",
706
+ "kitman secret move NPM_TOKEN --team platform --to workspace",
707
+ "kitman network-host list --repo",
708
+ "kitman network-host add registry.npmjs.org --team platform",
709
+ "kitman network-host remove registry.npmjs.org --repo",
710
+ "kitman claim list",
711
+ 'kitman claim release staging --reason "Rolled back by hand"',
712
+ "kitman team list",
713
+ "kitman team use platform",
714
+ "kitman team private platform",
715
+ "kitman team open platform",
716
+ "kitman team invite platform ada@example.com",
717
+ "kitman team delivery platform gated",
718
+ "kitman release workspace merge",
719
+ "kitman release team platform milestone",
720
+ 'kitman release project "Loop stability" inherit',
721
+ "kitman land workspace default",
722
+ "kitman land team platform epic",
723
+ 'kitman land project "Loop stability" inherit',
724
+ "kitman repo list",
725
+ "kitman repo add --from-current-repo --team platform",
726
+ "kitman repo move platform/api --to workspace",
727
+ "kitman memory list --status proposed --scope-type team",
728
+ 'kitman memory propose "Run the API tests with a disposable Postgres" --scope-type repository --scope-id platform/api',
729
+ "kitman memory approve 01a1e9e8-7a2d-7b6c-91f3-4e8a1d0c6b77",
730
+ "kitman memory move 01a1e9e8-7a2d-7b6c-91f3-4e8a1d0c6b77 --to platform",
731
+ "kitman proposal list --status in_review",
732
+ "kitman proposal show 01a1e9fa-0c4e-7d8f-a2b5-5f9b2e1d7c88",
733
+ "kitman proposal approve 01a1e9fa-0c4e-7d8f-a2b5-5f9b2e1d7c88",
734
+ "kitman proposal reject 01a1e9fa-0c4e-7d8f-a2b5-5f9b2e1d7c88 01a1ea0c-9d1f-7e2a-b3c6-6a0c3f2e8d99",
735
+ "kitman decision list --team platform",
736
+ "kitman decision show 01a1ea1e-2b3c-7f4d-85e7-7b1d4a3f9e00",
737
+ "kitman decision move 01a1ea1e-2b3c-7f4d-85e7-7b1d4a3f9e00 --to workspace",
738
+ "kitman context KIT-42 --mode planning",
739
+ "kitman deploy --plan --team platform",
740
+ "kitman deploy bindings",
741
+ "kitman deploy bind --branch main --team platform",
742
+ "kitman deploy unbind 01a1ea30-4d5e-7a6f-97a8-8c2e5b4a0f11",
743
+ 'kitman dev build "Try the new review Step" --team platform',
744
+ "kitman kit build . --out dist/kit",
745
+ "kitman kit list --me",
746
+ "kitman kit show @kitman-sh/software-engineering",
747
+ "kitman kit add @kitman-sh/software-engineering --team platform",
748
+ "kitman kit pin @kitman-sh/software-engineering 0.11.6",
749
+ "kitman kit unpin @kitman-sh/software-engineering",
750
+ "kitman kit remove my-kit --yes",
751
+ "kitman login --api-url https://api.kitman.sh",
752
+ "kitman logout --all",
753
+ "kitman whoami",
754
+ "kitman config show",
755
+ "kitman workspace list",
756
+ "kitman workspace create Acme",
757
+ "kitman workspace use acme --local",
758
+ "kitman mcp",
759
+ "kitman mcp setup --name codex",
760
+ "kitman sync --harness codex",
761
+ "kitman schedule publish nightly-tidy",
762
+ "kitman delivery reconcile 01a1ea42-5e6f-7b80-a8b9-9d3f6c5b1a22",
763
+ "kitman reconcile 01a1ea42-5e6f-7b80-a8b9-9d3f6c5b1a22",
764
+ "kitman lifecycle capabilities",
765
+ `kitman trigger --event task.created --input '{"taskId":"KIT-42"}'`,
766
+ "kitman work-unit list --status running --limit 20",
767
+ "kitman work-unit show 01a1ea54-6f70-7c91-b9ca-ae4f7d6c2b33",
768
+ "kitman work-unit complete 01a1ea54-6f70-7c91-b9ca-ae4f7d6c2b33 --idempotency-key complete-1"
769
+ ];
770
+ var withoutJson = new Set(["init", "pair", "login", "logout", "mcp", "sync"]);
771
+ var commandWord = /^[a-z][a-z|-]*$/;
772
+ var wordsAfterKitman = (line) => {
773
+ const command = /(?:^|\| )kitman (.*)$/.exec(line.trim())?.[1] ?? "";
774
+ return [...command.matchAll(/"([^"]*)"|'([^']*)'|(\S+)/g)].map((match) => match[1] ?? match[2] ?? match[3] ?? "");
775
+ };
776
+ var pathsOf = (line) => {
777
+ const words = wordsAfterKitman(line);
778
+ const end = words.findIndex((word) => !commandWord.test(word));
779
+ return (end === -1 ? words : words.slice(0, end)).reduce((paths, word) => paths.flatMap((path) => word.split("|").map((choice) => [...path, choice])), [[]]).map((path) => path.join(" "));
780
+ };
781
+ var parseEntries = (heading, text) => {
782
+ const entries = [];
783
+ for (const line of text) {
784
+ if (line.startsWith(" "))
785
+ entries.at(-1)?.lines.push(line);
786
+ else if (line.startsWith(" "))
787
+ entries.push({ heading, lines: [line], paths: pathsOf(line) });
788
+ else if (line.trim() !== "" && !line.startsWith("Usage:") && !line.startsWith("Every "))
789
+ heading = line;
790
+ }
791
+ return entries;
792
+ };
793
+ var helpEntries = [
794
+ ...parseEntries("", Usage.split(`
795
+ `)),
796
+ ...moreUsage.flatMap(([heading, lines]) => parseEntries(heading, lines))
797
+ ];
798
+ var startsWithWords = (path, prefix) => path === prefix || path.startsWith(`${prefix} `);
799
+ var entriesFor = (words) => {
800
+ for (let length = words.length;length > 0; length -= 1) {
801
+ const prefix = words.slice(0, length).join(" ");
802
+ const found = helpEntries.filter((entry) => entry.paths.some((path) => startsWithWords(path, prefix)));
803
+ if (found.length > 0)
804
+ return found;
805
+ }
806
+ return [];
807
+ };
808
+ var wordCount = (path) => path.split(" ").length;
809
+ var entriesNamedBy = (words) => {
810
+ const named = (entry) => Math.max(0, ...entry.paths.filter((path) => startsWithWords(words.join(" "), path)).map(wordCount));
811
+ const longest = Math.max(0, ...helpEntries.map(named));
812
+ return longest === 0 ? [] : helpEntries.filter((entry) => named(entry) === longest);
813
+ };
814
+ var entryExamples = new Map;
815
+ for (const example of examples)
816
+ for (const entry of entriesNamedBy(wordsAfterKitman(example)))
817
+ entryExamples.set(entry, [...entryExamples.get(entry) ?? [], example]);
818
+ var examplesOf = (entry) => entryExamples.get(entry) ?? [];
819
+ var optionPattern = /--[a-z][a-z-]*(?: (?:"?<[^>]+>"?(?:\|[a-z]+)*|[a-z0-9]+(?:\|[a-z0-9]+)+))?/g;
820
+ var optionsOf = (command, lines) => {
821
+ const options = new Map;
822
+ for (const match of lines.join(" ").matchAll(optionPattern)) {
823
+ const name = match[0].split(" ")[0] ?? match[0];
824
+ if (!options.has(name))
825
+ options.set(name, match[0]);
826
+ }
827
+ if (!withoutJson.has(command))
828
+ options.set("--json", options.get("--json") ?? "--json");
829
+ options.set("--help", "-h, --help");
830
+ return [...options.values()];
831
+ };
832
+ var isHelpFlag = (arg) => arg === "--help" || arg === "-h";
833
+ var commandHelp = (args) => {
834
+ if (!args.some(isHelpFlag))
835
+ return;
836
+ const words = args.filter((arg) => !arg.startsWith("-"));
837
+ const entries = entriesFor(words);
838
+ const command = words[0];
839
+ if (command === undefined || entries.length === 0)
840
+ return;
841
+ const lines = entries.flatMap((entry) => entry.lines);
842
+ const shown = [...new Set(entries.flatMap(examplesOf))];
843
+ const usage = [];
844
+ for (const [index, entry] of entries.entries()) {
845
+ if (entry.heading !== entries[index - 1]?.heading)
846
+ usage.push(...index === 0 ? [] : [""], entry.heading);
847
+ usage.push(...entry.lines);
848
+ }
849
+ return [
850
+ ...usage,
851
+ "",
852
+ "Options:",
853
+ ...optionsOf(command, lines).map((option) => ` ${option}`),
854
+ "",
855
+ shown.length === 1 ? "Example:" : "Examples:",
856
+ ...shown.map((example) => ` ${example}`)
857
+ ].join(`
858
+ `);
859
+ };
403
860
  // apps/cli/src/herdr-runner-credential.ts
404
861
  function herdrRunnerCredentialName(runnerId) {
405
862
  return `herdr-runner:${runnerId}`;
@@ -530,10 +987,10 @@ var sandboxMissing = (sandbox, missing) => ({
530
987
  var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
531
988
  var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
532
989
  var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
533
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-cwj7kdt3.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
990
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-8yyj061t.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
534
991
  });
535
992
  var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
536
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-cwj7kdt3.js")), (module) => module.updateHerdrCore(options))
993
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-8yyj061t.js")), (module) => module.updateHerdrCore(options))
537
994
  });
538
995
  var herdrCoreMissing = (error) => {
539
996
  if (isTagged(error, "HerdrCoreMissing"))
@@ -953,7 +1410,7 @@ var syncTargets = (harness) => gen(function* () {
953
1410
  });
954
1411
  var syncKits = (input) => gen(function* () {
955
1412
  const fs = yield* FileSystem;
956
- const { syncKitSetup } = yield* promise(() => import("./chunk-sn8yf0zj.js"));
1413
+ const { syncKitSetup } = yield* promise(() => import("./chunk-p3jbjz2a.js"));
957
1414
  const harnesses = yield* syncTargets(input.harness);
958
1415
  const chain = yield* input.client.getKitChain(input.workspaceId);
959
1416
  for (const { name, problem } of chain.skipped)
@@ -1871,7 +2328,7 @@ var package_default = {
1871
2328
  };
1872
2329
 
1873
2330
  // apps/cli/src/scaffold.ts
1874
- var cliVersion = "0.11.6";
2331
+ var cliVersion = "0.12.0-rc.1";
1875
2332
  var packageJson = (name, scaffold) => `${JSON.stringify({
1876
2333
  name,
1877
2334
  private: true,
@@ -2023,121 +2480,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
2023
2480
 
2024
2481
  // apps/cli/src/commands.ts
2025
2482
  var ClientId = "kitman-cli";
2026
- var Usage = [
2027
- "Usage: kitman <init|pair|run|inbox|loop|agent|deploy|verify|secret|claim|team|repo|constraint|mcp|sync|whoami|config|kit|task|memory|proposal|decision|context|schedule|delivery|reconcile|lifecycle|logout> [options]",
2028
- "",
2029
- "Set up, in a repository (run it again to repair what is missing):",
2030
- " kitman init [--yes] [--api-url <url>]",
2031
- " kitman pair [<pairing code>] [--api-url <url>] (what the command the web shows runs; no code finishes or re-keys with your session)",
2032
- " kitman pair <runner pairing code> --credential-file <path> (writes a shared Runner's credential for a container or its replicas to mount)",
2033
- " kitman runner start --credential-file <path> (or KITMAN_RUNNER_CREDENTIAL_FILE; starts the Runner the file holds)",
2034
- " kitman runner settings <runner> [--concurrency <1-4>] [--sandbox srt|docker|host] [--docker-image <image@sha256:\u2026>|none]",
2035
- " [--check-hosts <host,\u2026>|none] [--check-docker-image <image@sha256:\u2026>|none] [--check-registry-image <image@sha256:\u2026>|none]",
2036
- " kitman runner settings history <runner> (each change: who, when, old and new value)",
2037
- "",
2038
- "Runs:",
2039
- ' kitman run start <loop> "<words>" [--input <json>] [--team <team>] [--type <task type>] [--constraint <text>]... [--fresh] [--override-blockers]',
2040
- " kitman run show <run>",
2041
- " kitman run intent <run> [--set-goal <text>] [--add-constraint <text>] [--remove-constraint <id>] [--corrections on|off]",
2042
- " kitman run drift <run> [--dismiss <constraint> --reason <text>]",
2043
- " kitman run files <run> [--step <step>]",
2044
- " kitman run file get <run> <id> [--out <path>]",
2045
- " kitman run list [--team <id>] [--loop <loop>] [--state <state>[,<state>\u2026]] [--limit <n>]",
2046
- " kitman run wait <run> [--until attention|finished]",
2047
- ' kitman run answer <run> ["<option or words>"] [--question <name>] (on a terminal, with no answer: asks each open Question)',
2048
- ' kitman run steer <run> "<note for the agent>"',
2049
- " kitman run follow <run> (prints its agents' Transcripts as they grow, until the Run settles)",
2050
- " kitman transcript <run> [--step <step>] [--attempt <n>]",
2051
- " kitman run stop <run>",
2052
- ' kitman run resume <run> [--steer "<note for the retried Step>"]',
2053
- " kitman run close <run> --complete|--abandoned [--reason <text>]",
2054
- " kitman run actions <run>",
2055
- " kitman run action <run> <action> [--override-blockers]",
2056
- " kitman task assign <task> --to <person> (by email, name or id)",
2057
- " kitman task assign <task> --loop <loop> [--override-blockers] (starts a Run of the Loop on the Task; you stay its owner)",
2058
- " kitman inbox [--unread|--snoozed|--done]",
2059
- " kitman inbox my-teams [--team <team>]",
2060
- " kitman inbox read|unread|done|undone|unsnooze <task:id|run:id|proposal:id|project_update:id>...",
2061
- " kitman inbox snooze <task:id|run:id|proposal:id|project_update:id>... --until <time>",
2062
- " kitman inbox unsubscribe <task>...",
2063
- " kitman cr approve <id|url> [--summary <text>] (approves the head Kitman last saw; only a person, not an agent or a tool acting for one)",
2064
- " kitman cr request-changes <id|url> --summary <text>",
2065
- "",
2066
- "",
2067
- "Loops and Agents the Kits deployed here declare (kitman deploy changes them):",
2068
- " kitman loop list",
2069
- " kitman loop show <loop>",
2070
- " kitman loop starts [--limit <n>] (what Events started, or why they started nothing)",
2071
- " kitman loop when <loop> <event> on|off (turn an automatic start on or off for the Team)",
2072
- " kitman agent list",
2073
- "",
2074
- "Kits of your own, to deploy with kitman deploy:",
2075
- " kitman init --kit [dir] (a new Kit with an example Loop and a GitLab pipeline)",
2076
- " kitman loop fork <loop> [dir] (a new Kit that spreads a software-engineering Loop, to change it)",
2077
- "",
2078
- "Approved verifications of the current repository:",
2079
- " kitman verify list",
2080
- ' kitman verify add <name> "<command>" [--cwd <directory>] [--pipeline] [--reads-target]',
2081
- " kitman verify remove <name>",
2082
- " kitman constraint list",
2083
- ' kitman constraint add "<constraint>"',
2084
- " kitman constraint remove <constraint>",
2085
- "",
2086
- "Secrets, for the Workspace or with --team for one Team; values are write-only:",
2087
- " <command> | kitman secret set <name> [--host <host>...] [--team <team>] (reads the value from stdin; a Step may send it only to these hosts, kept when none is given)",
2088
- " kitman secret delete <name> [--team <team>]",
2089
- " kitman secret list [--team <team>]",
2090
- " kitman secret move <name> [--team <team>] --to <team>|workspace",
2091
- "",
2092
- "Network hosts a Team's agent Steps and checks may reach, or with --repo those of this checkout's repository:",
2093
- " kitman network-host list [--team <team> | --repo]",
2094
- " kitman network-host add <host> --team <team> | --repo (example.com, example.com:8443 or *.example.com)",
2095
- " kitman network-host remove <host> --team <team> | --repo",
2096
- "",
2097
- "Shared resources Runs claim, such as a deploy target:",
2098
- " kitman claim list",
2099
- " kitman claim release <resource> --reason <text>",
2100
- "",
2101
- "A private Team, and all it holds, is seen by its members alone:",
2102
- " kitman team private <team>",
2103
- " kitman team open <team>",
2104
- " kitman team invite <team> <person>",
2105
- " kitman team delivery <team> gated|auto (only a person, signed in as an owner or admin)",
2106
- "",
2107
- "When Release runs: on each merge, when a Milestone is done, or when a Project is done. A Project inherits its Team's, a Team the Workspace's:",
2108
- " kitman release workspace [merge|milestone|project] (setting it needs an owner or admin)",
2109
- " kitman release team <team> [merge|milestone|project|inherit]",
2110
- " kitman release project <project> [merge|milestone|project|inherit]",
2111
- "",
2112
- "Where delivery lands: on the default branch, or a sub-task on its epic's branch and the epic on the default branch once every sub-task is done. A Project inherits its Team's, a Team the Workspace's:",
2113
- " kitman land workspace [default|epic] (setting it needs an owner or admin)",
2114
- " kitman land team <team> [default|epic|inherit]",
2115
- " kitman land project <project> [default|epic|inherit]",
2116
- "",
2117
- "Repositories, Memory and Decisions belong to the Workspace or one Team:",
2118
- " kitman repo list",
2119
- " kitman repo add [--from-current-repo] [--team <team>]",
2120
- " kitman repo move <repository> --to <team>|workspace",
2121
- " kitman memory move <memory> --to <team>|workspace",
2122
- " kitman decision move <decision> --to <team>|workspace",
2123
- "",
2124
- "Kits, built from the current directory and deployed to the Workspace or with --team to one Team:",
2125
- " kitman deploy [--plan] [--team <team>] (--plan prints what would change; deploying needs a clean tree)",
2126
- ' kitman dev <loop> "<words>" [--input <json>] [--team <team>] (runs the working tree on your personal Runner)',
2127
- " kitman kit build [dir] [--out <dir>] (for prepack: writes the built Kit into the npm package)",
2128
- "",
2129
- "Kits on the Workspace, a Team with --team, or yourself with --me: deployed from a repository or installed from npm:",
2130
- " kitman kit list [--team <team>|--me]",
2131
- " kitman kit show <name> [--team <team>|--me]",
2132
- " kitman kit add <npm name> [--team <team>|--me]",
2133
- " kitman kit pin <name> <version> [--team <team>|--me]",
2134
- " kitman kit unpin <name> [--team <team>|--me]",
2135
- " kitman kit remove <name> [--team <team>|--me] [--yes] (a deployed Kit prints the plan; it is removed only with --yes)",
2136
- "",
2137
- "Every run, loop, agent, verify, constraint, secret, claim, deploy, dev and kit command takes --json."
2138
- ].join(`
2139
- `);
2140
- var agentRuntime = promise(() => import("./chunk-aqnsvq80.js"));
2483
+ var agentRuntime = promise(() => import("./chunk-s7xcdcqx.js"));
2141
2484
  var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
2142
2485
  defaultValue: () => gen(function* () {
2143
2486
  const tui = yield* tryPromise({
@@ -2161,6 +2504,9 @@ function runEffect(args) {
2161
2504
  }
2162
2505
  if (args[0] === "--version")
2163
2506
  return yield* log(kitmanVersion ?? "dev");
2507
+ const help = commandHelp(args);
2508
+ if (help !== undefined)
2509
+ return yield* log(help);
2164
2510
  const [command, ...rest] = args;
2165
2511
  if (command === "init" && rest[0] === "--kit")
2166
2512
  return yield* scaffoldKit(rest[1] ?? ".");
@@ -2168,6 +2514,8 @@ function runEffect(args) {
2168
2514
  return yield* initCommand(rest);
2169
2515
  if (command === "pair")
2170
2516
  return yield* pairCommand(rest);
2517
+ if (command === "docs")
2518
+ return yield* docsCommand(args);
2171
2519
  if (command === "login")
2172
2520
  return yield* login(rest);
2173
2521
  if (command === "logout")
@@ -3134,7 +3482,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
3134
3482
  });
3135
3483
  var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
3136
3484
  defaultValue: () => (options) => gen(function* () {
3137
- const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-qy9e5gms.js"));
3485
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-82xjnghh.js"));
3138
3486
  return yield* makeRunnerRpcClient({
3139
3487
  runnerId: options.runnerId,
3140
3488
  bearer: options.bearer,
@@ -3500,8 +3848,10 @@ function startCanonicalHerdrRunnerCommand(input) {
3500
3848
  });
3501
3849
  };
3502
3850
  const storage = yield* provide3(service(HttpClient), layer4);
3851
+ const spending = new Map;
3503
3852
  const runAgentStep = agentStepExecutor({
3504
3853
  rootDir: path.join(runnerRootDir, ".kitman"),
3854
+ spending,
3505
3855
  sandbox: sandboxOf,
3506
3856
  heartbeat: heartbeatOf,
3507
3857
  gitCredentials: rpc.gitCredential,
@@ -3595,10 +3945,11 @@ function startCanonicalHerdrRunnerCommand(input) {
3595
3945
  }).pipe(asVoid)), tapError2(onProtocolRefusal)),
3596
3946
  heartbeatWork: (workUnitId, lease) => rpc.heartbeat({ workUnitId, lease }),
3597
3947
  complete: (completion) => rpc.complete(completion),
3598
- release: (workUnitId, lease, crashed) => rpc.release({
3948
+ release: (workUnitId, lease, crashed, tokens) => rpc.release({
3599
3949
  workUnitId,
3600
3950
  lease,
3601
- ...crashed === undefined ? undefined : { crashed: { reason: crashed } }
3951
+ ...crashed === undefined ? undefined : { crashed: { reason: crashed } },
3952
+ ...tokens === undefined ? undefined : { tokens }
3602
3953
  })
3603
3954
  };
3604
3955
  };
@@ -3619,7 +3970,12 @@ function startCanonicalHerdrRunnerCommand(input) {
3619
3970
  case "verification":
3620
3971
  return runVerification(work).pipe(provideContext2(platform), failedWhenUnrun("verification"));
3621
3972
  }
3622
- }
3973
+ },
3974
+ spent: (workUnitId) => sync2(() => {
3975
+ const tokens = spending.get(workUnitId);
3976
+ spending.delete(workUnitId);
3977
+ return tokens;
3978
+ })
3623
3979
  },
3624
3980
  signals
3625
3981
  });
@@ -3658,7 +4014,7 @@ function mcpCommand(args) {
3658
4014
  if (command.action === "run") {
3659
4015
  if (command.args.length > 0)
3660
4016
  return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
3661
- const { runMcpServerCommand } = yield* promise(() => import("./chunk-4cfn0afm.js"));
4017
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-66xhktcp.js"));
3662
4018
  return yield* runMcpServerCommand({ flags: command.flags });
3663
4019
  }
3664
4020
  if (command.action !== "setup")
@@ -4146,6 +4502,40 @@ function programLoopCommand(command) {
4146
4502
  return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
4147
4503
  });
4148
4504
  }
4505
+ var docsModule = promise(() => import("./chunk-a8jgegds.js"));
4506
+ function docsCommand(args) {
4507
+ return gen(function* () {
4508
+ const command = parseCommand(args);
4509
+ const [words] = command.args;
4510
+ const { readDoc, searchDocs } = yield* docsModule;
4511
+ if (command.action !== "search" && command.action !== "read" || words === undefined || command.args.length > 1)
4512
+ return yield* new CliError({
4513
+ message: 'Usage: kitman docs search "<query>" [--limit <n>] | kitman docs read <path>'
4514
+ });
4515
+ if (command.action === "search") {
4516
+ const found = searchDocs({ query: words, limit: command.flags.limit });
4517
+ if (command.flags.json)
4518
+ return yield* printJson(found);
4519
+ if (found.items.length === 0)
4520
+ return yield* log(`No docs section matches "${words}".`);
4521
+ return yield* log([
4522
+ ...found.items.flatMap((hit) => [hit.title, ` ${hit.path} ${hit.link}`, ` ${hit.excerpt}`, ""]),
4523
+ "Read one with: kitman docs read <path>"
4524
+ ].join(`
4525
+ `));
4526
+ }
4527
+ const section = readDoc({ path: words });
4528
+ if ("error" in section)
4529
+ return yield* new CliError({
4530
+ message: [section.error.message, ...section.error.suggestions.map((path) => ` kitman docs read ${path}`)].join(`
4531
+ `)
4532
+ });
4533
+ if (command.flags.json)
4534
+ return yield* printJson(section);
4535
+ yield* log([section.title, section.link, "", section.text].join(`
4536
+ `));
4537
+ });
4538
+ }
4149
4539
  function agentCommand(args) {
4150
4540
  return gen(function* () {
4151
4541
  const command = parseCommand(args);
@@ -4337,6 +4727,8 @@ var runListLine = (item) => [
4337
4727
  item.display.summary === undefined ? "" : listedSummary(item.display.summary),
4338
4728
  item.run.id
4339
4729
  ].filter((part) => part !== "").join(" ");
4730
+ var tokenWords = (tokens) => `${tokens.input.toLocaleString("en-US")} input, ${tokens.output.toLocaleString("en-US")} output, ${tokens.cached.toLocaleString("en-US")} cached`;
4731
+ var stepTokenLines = (step) => step.tokens !== undefined ? [` Tokens: ${tokenWords(step.tokens)}`] : step.attempts.some((attempt) => attempt.tokens === "none") ? [" Tokens: none reported"] : [];
4340
4732
  var runShowLines = (shown) => [
4341
4733
  `Run ${shown.run.id}: ${runDisplayLabels[shown.display.state]}${shown.display.retried ? " \xB7 Retried" : ""}`,
4342
4734
  ...shown.display.summary === undefined ? [] : [`Now: ${shown.display.summary}`],
@@ -4347,8 +4739,10 @@ var runShowLines = (shown) => [
4347
4739
  `Loop${shown.run.loopVersion === undefined ? "" : ` ${shown.run.loopVersion}`}${shown.run.loopLayer === undefined ? "" : ` from the ${shown.run.loopLayer} layer`}, digest ${shown.run.loopDigest}`
4348
4740
  ],
4349
4741
  ...shown.run.failureSummary === undefined ? [] : [`Failure: ${shown.run.failureSummary}`],
4742
+ ...shown.tokens === undefined ? [] : [`Tokens: ${tokenWords(shown.tokens)}`],
4350
4743
  ...shown.steps.flatMap((step) => [
4351
4744
  `Step ${step.name}: ${step.status} (attempt ${step.attempts.length})`,
4745
+ ...stepTokenLines(step),
4352
4746
  ...claimLines(step)
4353
4747
  ]),
4354
4748
  ...evidenceLines(shown.evidence),
@@ -4928,9 +5322,9 @@ function changeRequestCommand(args) {
4928
5322
  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}`);
4929
5323
  });
4930
5324
  }
4931
- var KitWriter = map8(promise(() => import("./chunk-xvbct1tt.js")), (build) => build.writeKit);
5325
+ var KitWriter = map8(promise(() => import("./chunk-tcyqkqzj.js")), (build) => build.writeKit);
4932
5326
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
4933
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-xvbct1tt.js")), (build) => build.buildKit(directory))
5327
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-tcyqkqzj.js")), (build) => build.buildKit(directory))
4934
5328
  });
4935
5329
  var uploadKit = (client, workspaceId, built) => gen(function* () {
4936
5330
  yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });