@kitman-sh/cli 0.11.6 → 0.11.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-3d4d52e5.js → chunk-0b93nv6j.js} +10 -1
- package/dist/{chunk-qy9e5gms.js → chunk-0wv30032.js} +4 -4
- package/dist/{chunk-sk6ceghr.js → chunk-2qarscbj.js} +1 -1
- package/dist/{chunk-d9bv70qb.js → chunk-5vzznkvb.js} +3 -3
- package/dist/{chunk-vxftwsbn.js → chunk-5wvqtbfp.js} +3 -11
- package/dist/{chunk-sn8yf0zj.js → chunk-8zg8nv7h.js} +8 -8
- package/dist/{chunk-3nwq8a1k.js → chunk-akzke77d.js} +3 -3
- package/dist/{chunk-japwbj9n.js → chunk-ap9y5k9y.js} +1 -1
- package/dist/{chunk-xvbct1tt.js → chunk-c41b37fd.js} +14 -14
- package/dist/{chunk-wf6hts0g.js → chunk-f3cbjk00.js} +2 -2
- package/dist/{chunk-4cfn0afm.js → chunk-g31s31k7.js} +16 -16
- package/dist/{chunk-vmv7gwwr.js → chunk-kpfrhex3.js} +6 -6
- package/dist/{chunk-aqnsvq80.js → chunk-m1sqgdym.js} +141 -77
- package/dist/{chunk-cwj7kdt3.js → chunk-ntfk63fx.js} +3 -3
- package/dist/{chunk-951j2kzn.js → chunk-sr6ag7ye.js} +466 -126
- package/dist/{chunk-7ww1ztjr.js → chunk-y1rfbqaf.js} +7 -7
- package/dist/{chunk-yz9mt7sj.js → chunk-z2dnw6ey.js} +2 -2
- package/dist/{chunk-pft5558d.js → chunk-z9zqctv2.js} +5 -5
- package/dist/index.js +3 -3
- package/package.json +1 -1
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
withDefault,
|
|
109
109
|
option,
|
|
110
110
|
String2
|
|
111
|
-
} from "./chunk-
|
|
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-
|
|
221
|
+
} from "./chunk-5wvqtbfp.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-
|
|
238
|
+
} from "./chunk-2qarscbj.js";
|
|
239
239
|
|
|
240
240
|
// apps/cli/src/cli-error.ts
|
|
241
241
|
function cliErrorCode(error, status) {
|
|
@@ -400,6 +400,457 @@ 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|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
|
+
"Runs:",
|
|
418
|
+
' kitman run start <loop> "<words>" [--input <json>] [--team <team>] [--type <task type>] [--constraint <text>]... [--fresh] [--override-blockers]',
|
|
419
|
+
" kitman run show <run>",
|
|
420
|
+
" kitman run intent <run> [--set-goal <text>] [--add-constraint <text>] [--remove-constraint <id>] [--corrections on|off]",
|
|
421
|
+
" kitman run drift <run> [--dismiss <constraint> --reason <text>]",
|
|
422
|
+
" kitman run files <run> [--step <step>]",
|
|
423
|
+
" kitman run file get <run> <id> [--out <path>]",
|
|
424
|
+
" kitman run list [--team <id>] [--loop <loop>] [--state <state>[,<state>\u2026]] [--limit <n>]",
|
|
425
|
+
" kitman run wait <run> [--until attention|finished]",
|
|
426
|
+
' kitman run answer <run> ["<option or words>"] [--question <name>] (on a terminal, with no answer: asks each open Question)',
|
|
427
|
+
' kitman run steer <run> "<note for the agent>"',
|
|
428
|
+
" kitman run follow <run> (prints its agents' Transcripts as they grow, until the Run settles)",
|
|
429
|
+
" kitman transcript <run> [--step <step>] [--attempt <n>]",
|
|
430
|
+
" kitman run stop <run>",
|
|
431
|
+
' kitman run resume <run> [--steer "<note for the retried Step>"]',
|
|
432
|
+
" kitman run close <run> --complete|--abandoned [--reason <text>]",
|
|
433
|
+
" kitman run actions <run>",
|
|
434
|
+
" kitman run action <run> <action> [--override-blockers]",
|
|
435
|
+
" kitman task assign <task> --to <person> (by email, name or id)",
|
|
436
|
+
" kitman task assign <task> --loop <loop> [--override-blockers] (starts a Run of the Loop on the Task; you stay its owner)",
|
|
437
|
+
" kitman inbox [--unread|--snoozed|--done]",
|
|
438
|
+
" kitman inbox my-teams [--team <team>]",
|
|
439
|
+
" kitman inbox read|unread|done|undone|unsnooze <task:id|run:id|proposal:id|project_update:id>...",
|
|
440
|
+
" kitman inbox snooze <task:id|run:id|proposal:id|project_update:id>... --until <time>",
|
|
441
|
+
" kitman inbox unsubscribe <task>...",
|
|
442
|
+
" 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)",
|
|
443
|
+
" kitman cr request-changes <id|url> --summary <text>",
|
|
444
|
+
"",
|
|
445
|
+
"",
|
|
446
|
+
"Loops and Agents the Kits deployed here declare (kitman deploy changes them):",
|
|
447
|
+
" kitman loop list",
|
|
448
|
+
" kitman loop show <loop>",
|
|
449
|
+
" kitman loop starts [--limit <n>] (what Events started, or why they started nothing)",
|
|
450
|
+
" kitman loop when <loop> <event> on|off (turn an automatic start on or off for the Team)",
|
|
451
|
+
" kitman agent list",
|
|
452
|
+
"",
|
|
453
|
+
"Kits of your own, to deploy with kitman deploy:",
|
|
454
|
+
" kitman init --kit [dir] (a new Kit with an example Loop and a GitLab pipeline)",
|
|
455
|
+
" kitman loop fork <loop> [dir] (a new Kit that spreads a software-engineering Loop, to change it)",
|
|
456
|
+
"",
|
|
457
|
+
"Approved verifications of the current repository:",
|
|
458
|
+
" kitman verify list",
|
|
459
|
+
' kitman verify add <name> "<command>" [--cwd <directory>] [--pipeline] [--reads-target]',
|
|
460
|
+
" kitman verify remove <name>",
|
|
461
|
+
" kitman constraint list",
|
|
462
|
+
' kitman constraint add "<constraint>"',
|
|
463
|
+
" kitman constraint remove <constraint>",
|
|
464
|
+
"",
|
|
465
|
+
"Secrets, for the Workspace or with --team for one Team; values are write-only:",
|
|
466
|
+
" <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)",
|
|
467
|
+
" kitman secret delete <name> [--team <team>]",
|
|
468
|
+
" kitman secret list [--team <team>]",
|
|
469
|
+
" kitman secret move <name> [--team <team>] --to <team>|workspace",
|
|
470
|
+
"",
|
|
471
|
+
"Network hosts a Team's agent Steps and checks may reach, or with --repo those of this checkout's repository:",
|
|
472
|
+
" kitman network-host list [--team <team> | --repo]",
|
|
473
|
+
" kitman network-host add <host> --team <team> | --repo (example.com, example.com:8443 or *.example.com)",
|
|
474
|
+
" kitman network-host remove <host> --team <team> | --repo",
|
|
475
|
+
"",
|
|
476
|
+
"Shared resources Runs claim, such as a deploy target:",
|
|
477
|
+
" kitman claim list",
|
|
478
|
+
" kitman claim release <resource> --reason <text>",
|
|
479
|
+
"",
|
|
480
|
+
"A private Team, and all it holds, is seen by its members alone:",
|
|
481
|
+
" kitman team private <team>",
|
|
482
|
+
" kitman team open <team>",
|
|
483
|
+
" kitman team invite <team> <person>",
|
|
484
|
+
" kitman team delivery <team> gated|auto (only a person, signed in as an owner or admin)",
|
|
485
|
+
"",
|
|
486
|
+
"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:",
|
|
487
|
+
" kitman release workspace [merge|milestone|project] (setting it needs an owner or admin)",
|
|
488
|
+
" kitman release team <team> [merge|milestone|project|inherit]",
|
|
489
|
+
" kitman release project <project> [merge|milestone|project|inherit]",
|
|
490
|
+
"",
|
|
491
|
+
"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:",
|
|
492
|
+
" kitman land workspace [default|epic] (setting it needs an owner or admin)",
|
|
493
|
+
" kitman land team <team> [default|epic|inherit]",
|
|
494
|
+
" kitman land project <project> [default|epic|inherit]",
|
|
495
|
+
"",
|
|
496
|
+
"Repositories, Memory and Decisions belong to the Workspace or one Team:",
|
|
497
|
+
" kitman repo list",
|
|
498
|
+
" kitman repo add [--from-current-repo] [--team <team>]",
|
|
499
|
+
" kitman repo move <repository> --to <team>|workspace",
|
|
500
|
+
" kitman memory move <memory> --to <team>|workspace",
|
|
501
|
+
" kitman decision move <decision> --to <team>|workspace",
|
|
502
|
+
"",
|
|
503
|
+
"Kits, built from the current directory and deployed to the Workspace or with --team to one Team:",
|
|
504
|
+
" kitman deploy [--plan] [--team <team>] (--plan prints what would change; deploying needs a clean tree)",
|
|
505
|
+
' kitman dev <loop> "<words>" [--input <json>] [--team <team>] (runs the working tree on your personal Runner)',
|
|
506
|
+
" kitman kit build [dir] [--out <dir>] (for prepack: writes the built Kit into the npm package)",
|
|
507
|
+
"",
|
|
508
|
+
"Kits on the Workspace, a Team with --team, or yourself with --me: deployed from a repository or installed from npm:",
|
|
509
|
+
" kitman kit list [--team <team>|--me]",
|
|
510
|
+
" kitman kit show <name> [--team <team>|--me]",
|
|
511
|
+
" kitman kit add <npm name> [--team <team>|--me]",
|
|
512
|
+
" kitman kit pin <name> <version> [--team <team>|--me]",
|
|
513
|
+
" kitman kit unpin <name> [--team <team>|--me]",
|
|
514
|
+
" kitman kit remove <name> [--team <team>|--me] [--yes] (a deployed Kit prints the plan; it is removed only with --yes)",
|
|
515
|
+
"",
|
|
516
|
+
"Every run, loop, agent, verify, constraint, secret, claim, deploy, dev and kit command takes --json."
|
|
517
|
+
].join(`
|
|
518
|
+
`);
|
|
519
|
+
var moreUsage = [
|
|
520
|
+
[
|
|
521
|
+
"Sign in and out, and see who and where you are:",
|
|
522
|
+
[
|
|
523
|
+
" kitman login [--api-url <url>]",
|
|
524
|
+
" kitman logout [--all] [--api-url <url>] (--all signs out of every Kitman API)",
|
|
525
|
+
" kitman whoami",
|
|
526
|
+
" kitman config show (the API URL, Workspace and Team in use, and where each came from)"
|
|
527
|
+
]
|
|
528
|
+
],
|
|
529
|
+
[
|
|
530
|
+
"Workspaces and Teams in use:",
|
|
531
|
+
[
|
|
532
|
+
" kitman workspace list",
|
|
533
|
+
" kitman workspace create <name>",
|
|
534
|
+
" kitman workspace use <workspace> [--local] (--local writes it to this directory\u2019s .kitman/config.json)",
|
|
535
|
+
" kitman team list",
|
|
536
|
+
" kitman team use <team> [--local]"
|
|
537
|
+
]
|
|
538
|
+
],
|
|
539
|
+
[
|
|
540
|
+
"Runners:",
|
|
541
|
+
[
|
|
542
|
+
" kitman runner list",
|
|
543
|
+
" kitman runner status|logs|restart|remove <runner> [--follow] (--follow keeps printing logs)",
|
|
544
|
+
" kitman runner doctor [<runner>] [--team <team>] [--backend <backend>]",
|
|
545
|
+
" kitman runner register [<name>] [--backend herdr] [--team <team>] [--scope-type workspace|team|personal] [--scope-id <id>]",
|
|
546
|
+
" [--team-access all|selected] (registers this machine as a Runner of the active Workspace)",
|
|
547
|
+
" kitman runner heartbeat <runner>",
|
|
548
|
+
" kitman runner rescope <runner> --scope-type workspace|team|personal [--scope-id <id>] [--team-access all|selected]",
|
|
549
|
+
" kitman runner grant list <runner> (the Teams a Runner serving selected Teams serves)",
|
|
550
|
+
" kitman runner grant add|remove <runner> --team <team>",
|
|
551
|
+
" kitman runner replica list <runner>",
|
|
552
|
+
" kitman runner attach|detach <workspace> --runner <runner> (your personal Runner, in another Workspace you are a member of)",
|
|
553
|
+
" kitman runner attachments <runner>",
|
|
554
|
+
" kitman runner bootstrap|install --local [--profile <profile>] (prepares this machine; creates nothing in Kitman)"
|
|
555
|
+
]
|
|
556
|
+
],
|
|
557
|
+
[
|
|
558
|
+
"Code Mode MCP and Harness setup:",
|
|
559
|
+
[
|
|
560
|
+
" kitman mcp (serves the Code Mode MCP on stdio)",
|
|
561
|
+
" kitman mcp setup --name <tool> [--local] (a delegated credential for an MCP client)",
|
|
562
|
+
" kitman sync [--harness <id>] (writes your Kits' skills and MCP servers into this machine's Harnesses)"
|
|
563
|
+
]
|
|
564
|
+
],
|
|
565
|
+
[
|
|
566
|
+
"Tasks of the active Team:",
|
|
567
|
+
[
|
|
568
|
+
" kitman task list [--status <state>]",
|
|
569
|
+
" kitman task show <task>",
|
|
570
|
+
" kitman task thread <task> [--limit <n>]",
|
|
571
|
+
' kitman task note|decision <task> "<text>"|--content <text>|--stdin [--session <session>]',
|
|
572
|
+
" kitman task sessions <task>",
|
|
573
|
+
" kitman task session-updates <session>",
|
|
574
|
+
" kitman task dependencies <task>",
|
|
575
|
+
" kitman task assets <task> [--limit <n>]",
|
|
576
|
+
" kitman task upload-asset <task> <path> [--filename <name>] [--content-type <type>] [--description <text>] [--session <session>]",
|
|
577
|
+
" kitman task download-asset <asset> <path>",
|
|
578
|
+
" kitman task delete-asset <asset>"
|
|
579
|
+
]
|
|
580
|
+
],
|
|
581
|
+
[
|
|
582
|
+
"Memory, Proposals and Decisions:",
|
|
583
|
+
[
|
|
584
|
+
" kitman memory list [--status <status>] [--scope-type <scope>] [--scope-id <id>] [--limit <n>]",
|
|
585
|
+
' kitman memory propose "<text>"|--content <text>|--stdin --scope-type <scope> --scope-id <id>',
|
|
586
|
+
" kitman memory approve|reject|deprecate <memory>",
|
|
587
|
+
" kitman proposal list [--team <team>] [--status <status>] [--target-type <type>] [--limit <n>]",
|
|
588
|
+
" kitman proposal show <proposal>",
|
|
589
|
+
" kitman proposal approve <proposal>",
|
|
590
|
+
" kitman proposal reject <proposal> <revision>",
|
|
591
|
+
" kitman decision list [--team <team>] [--status <status>] [--limit <n>]",
|
|
592
|
+
" kitman decision show <decision>"
|
|
593
|
+
]
|
|
594
|
+
],
|
|
595
|
+
[
|
|
596
|
+
"ContextPacks:",
|
|
597
|
+
[" kitman context <task> [--mode planning|implementation|debugging|review|handoff] (implementation by default)"]
|
|
598
|
+
],
|
|
599
|
+
[
|
|
600
|
+
"Loops in the catalog:",
|
|
601
|
+
[" kitman loop catalog [--limit <n>]", " kitman loop validate|test <loop> [--input <json>]"]
|
|
602
|
+
],
|
|
603
|
+
[
|
|
604
|
+
"Deploy Bindings, which deploy a Kit when its repository branch changes:",
|
|
605
|
+
[
|
|
606
|
+
" kitman deploy bindings",
|
|
607
|
+
" kitman deploy bind --branch <branch> [--team <team>] (binds the current repository)",
|
|
608
|
+
" kitman deploy unbind <binding>"
|
|
609
|
+
]
|
|
610
|
+
],
|
|
611
|
+
[
|
|
612
|
+
"Operations:",
|
|
613
|
+
[
|
|
614
|
+
" kitman schedule publish <schedule> [--input <json>] [--idempotency-key <key>]",
|
|
615
|
+
" kitman delivery deliver|reconcile [<delivery>] [--input <json>] [--idempotency-key <key>]",
|
|
616
|
+
" kitman reconcile <delivery> [--input <json>] [--idempotency-key <key>]",
|
|
617
|
+
" kitman lifecycle capabilities|show",
|
|
618
|
+
" kitman trigger [--event <event>] [--input <json>] [--idempotency-key <key>]",
|
|
619
|
+
" kitman work-unit list [--work-unit-kind <kind>] [--status <status>] [--runner <runner>] [--replica <replica>] [--run <run>] [--limit <n>]",
|
|
620
|
+
" kitman work-unit show|get <work unit>",
|
|
621
|
+
" kitman work-unit claim|start|heartbeat|complete|fail|cancel <work unit> [--input <json>] [--idempotency-key <key>]"
|
|
622
|
+
]
|
|
623
|
+
]
|
|
624
|
+
];
|
|
625
|
+
var run2 = "01a1e94e-0e3b-751c-9bab-5b931ddc7f27";
|
|
626
|
+
var examples = [
|
|
627
|
+
"kitman init --yes",
|
|
628
|
+
"kitman init --kit my-kit",
|
|
629
|
+
"kitman pair 4F7K-9QX2",
|
|
630
|
+
"kitman pair 8HJD-2MZP --credential-file ./runner.json",
|
|
631
|
+
"kitman runner start --credential-file ./runner.json",
|
|
632
|
+
"kitman runner settings my-runner --concurrency 2 --sandbox srt",
|
|
633
|
+
"kitman runner settings history my-runner",
|
|
634
|
+
"kitman runner list",
|
|
635
|
+
"kitman runner logs my-runner --follow",
|
|
636
|
+
"kitman runner doctor my-runner",
|
|
637
|
+
'kitman runner register "Build box" --backend herdr --scope-type team --scope-id platform',
|
|
638
|
+
"kitman runner heartbeat my-runner",
|
|
639
|
+
"kitman runner rescope my-runner --scope-type workspace --team-access selected",
|
|
640
|
+
"kitman runner grant list my-runner",
|
|
641
|
+
"kitman runner grant add my-runner --team platform",
|
|
642
|
+
"kitman runner replica list my-runner",
|
|
643
|
+
"kitman runner attach 01a1ea66-7081-7da2-8adb-bf5e8e7d3c44 --runner my-runner",
|
|
644
|
+
"kitman runner attachments my-runner",
|
|
645
|
+
"kitman runner bootstrap --local --profile local-fast",
|
|
646
|
+
`kitman run start build "Fix the flaky login test" --team platform`,
|
|
647
|
+
`kitman run show ${run2}`,
|
|
648
|
+
`kitman run intent ${run2} --add-constraint "Keep the public API unchanged"`,
|
|
649
|
+
`kitman run drift ${run2}`,
|
|
650
|
+
`kitman run files ${run2} --step implement`,
|
|
651
|
+
`kitman run file get ${run2} 01a1e9a0-6c1f-7d4b-8e21-3f0c2a9b7d10 --out screenshot.png`,
|
|
652
|
+
"kitman run list --loop build --state running,needs_you --limit 10",
|
|
653
|
+
`kitman run wait ${run2} --until finished`,
|
|
654
|
+
`kitman run answer ${run2} "Yes, ship it" --question approve`,
|
|
655
|
+
`kitman run steer ${run2} "Use the existing retry helper"`,
|
|
656
|
+
`kitman run follow ${run2}`,
|
|
657
|
+
`kitman transcript ${run2} --step implement --attempt 2`,
|
|
658
|
+
`kitman run stop ${run2}`,
|
|
659
|
+
`kitman run resume ${run2} --steer "The migration already exists; reuse it"`,
|
|
660
|
+
`kitman run close ${run2} --abandoned --reason "Superseded by KIT-43"`,
|
|
661
|
+
`kitman run actions ${run2}`,
|
|
662
|
+
`kitman run action ${run2} retry`,
|
|
663
|
+
"kitman task assign KIT-42 --to ada@example.com",
|
|
664
|
+
"kitman task assign KIT-42 --loop build",
|
|
665
|
+
'kitman task list --status "In Progress"',
|
|
666
|
+
"kitman task show KIT-42",
|
|
667
|
+
"kitman task thread KIT-42 --limit 20",
|
|
668
|
+
'kitman task note KIT-42 "Reproduced on master"',
|
|
669
|
+
"kitman task sessions KIT-42",
|
|
670
|
+
"kitman task session-updates 01a1e9b2-55d0-7c3e-9a41-0d6e2f8b1c33",
|
|
671
|
+
"kitman task dependencies KIT-42",
|
|
672
|
+
"kitman task assets KIT-42",
|
|
673
|
+
"kitman task upload-asset KIT-42 ./trace.log --content-type text/plain",
|
|
674
|
+
"kitman task download-asset 01a1e9c4-1b7a-7f02-8d55-6a3e9c0f2b44 ./trace.log",
|
|
675
|
+
"kitman task delete-asset 01a1e9c4-1b7a-7f02-8d55-6a3e9c0f2b44",
|
|
676
|
+
"kitman inbox --unread",
|
|
677
|
+
"kitman inbox my-teams --team platform",
|
|
678
|
+
`kitman inbox read task:KIT-42 run:${run2}`,
|
|
679
|
+
"kitman inbox snooze task:KIT-42 --until 2026-11-18T09:00",
|
|
680
|
+
"kitman inbox unsubscribe KIT-42",
|
|
681
|
+
'kitman cr approve 128 --summary "Looks good"',
|
|
682
|
+
'kitman cr request-changes 128 --summary "The migration drops a column still read by the API"',
|
|
683
|
+
"kitman loop list",
|
|
684
|
+
"kitman loop show build",
|
|
685
|
+
"kitman loop starts --limit 20",
|
|
686
|
+
"kitman loop when shepherd change_request.pipeline on",
|
|
687
|
+
"kitman loop fork build ./kits/my-build",
|
|
688
|
+
"kitman loop catalog",
|
|
689
|
+
`kitman loop validate build --input '{"task":"KIT-42"}'`,
|
|
690
|
+
"kitman agent list",
|
|
691
|
+
"kitman verify list",
|
|
692
|
+
'kitman verify add unit-tests "bun run test" --cwd apps/cli',
|
|
693
|
+
"kitman verify remove unit-tests",
|
|
694
|
+
"kitman constraint list",
|
|
695
|
+
'kitman constraint add "Never edit generated migrations by hand"',
|
|
696
|
+
"kitman constraint remove 01a1e9d6-3e8c-7a19-b6f4-2c7d0e5a9f55",
|
|
697
|
+
'printf %s "$TOKEN" | kitman secret set NPM_TOKEN --host registry.npmjs.org --team platform',
|
|
698
|
+
"kitman secret delete NPM_TOKEN --team platform",
|
|
699
|
+
"kitman secret list --team platform",
|
|
700
|
+
"kitman secret move NPM_TOKEN --team platform --to workspace",
|
|
701
|
+
"kitman network-host list --repo",
|
|
702
|
+
"kitman network-host add registry.npmjs.org --team platform",
|
|
703
|
+
"kitman network-host remove registry.npmjs.org --repo",
|
|
704
|
+
"kitman claim list",
|
|
705
|
+
'kitman claim release staging --reason "Rolled back by hand"',
|
|
706
|
+
"kitman team list",
|
|
707
|
+
"kitman team use platform",
|
|
708
|
+
"kitman team private platform",
|
|
709
|
+
"kitman team open platform",
|
|
710
|
+
"kitman team invite platform ada@example.com",
|
|
711
|
+
"kitman team delivery platform gated",
|
|
712
|
+
"kitman release workspace merge",
|
|
713
|
+
"kitman release team platform milestone",
|
|
714
|
+
'kitman release project "Loop stability" inherit',
|
|
715
|
+
"kitman land workspace default",
|
|
716
|
+
"kitman land team platform epic",
|
|
717
|
+
'kitman land project "Loop stability" inherit',
|
|
718
|
+
"kitman repo list",
|
|
719
|
+
"kitman repo add --from-current-repo --team platform",
|
|
720
|
+
"kitman repo move platform/api --to workspace",
|
|
721
|
+
"kitman memory list --status proposed --scope-type team",
|
|
722
|
+
'kitman memory propose "Run the API tests with a disposable Postgres" --scope-type repository --scope-id platform/api',
|
|
723
|
+
"kitman memory approve 01a1e9e8-7a2d-7b6c-91f3-4e8a1d0c6b77",
|
|
724
|
+
"kitman memory move 01a1e9e8-7a2d-7b6c-91f3-4e8a1d0c6b77 --to platform",
|
|
725
|
+
"kitman proposal list --status in_review",
|
|
726
|
+
"kitman proposal show 01a1e9fa-0c4e-7d8f-a2b5-5f9b2e1d7c88",
|
|
727
|
+
"kitman proposal approve 01a1e9fa-0c4e-7d8f-a2b5-5f9b2e1d7c88",
|
|
728
|
+
"kitman proposal reject 01a1e9fa-0c4e-7d8f-a2b5-5f9b2e1d7c88 01a1ea0c-9d1f-7e2a-b3c6-6a0c3f2e8d99",
|
|
729
|
+
"kitman decision list --team platform",
|
|
730
|
+
"kitman decision show 01a1ea1e-2b3c-7f4d-85e7-7b1d4a3f9e00",
|
|
731
|
+
"kitman decision move 01a1ea1e-2b3c-7f4d-85e7-7b1d4a3f9e00 --to workspace",
|
|
732
|
+
"kitman context KIT-42 --mode planning",
|
|
733
|
+
"kitman deploy --plan --team platform",
|
|
734
|
+
"kitman deploy bindings",
|
|
735
|
+
"kitman deploy bind --branch main --team platform",
|
|
736
|
+
"kitman deploy unbind 01a1ea30-4d5e-7a6f-97a8-8c2e5b4a0f11",
|
|
737
|
+
'kitman dev build "Try the new review Step" --team platform',
|
|
738
|
+
"kitman kit build . --out dist/kit",
|
|
739
|
+
"kitman kit list --me",
|
|
740
|
+
"kitman kit show @kitman-sh/software-engineering",
|
|
741
|
+
"kitman kit add @kitman-sh/software-engineering --team platform",
|
|
742
|
+
"kitman kit pin @kitman-sh/software-engineering 0.11.6",
|
|
743
|
+
"kitman kit unpin @kitman-sh/software-engineering",
|
|
744
|
+
"kitman kit remove my-kit --yes",
|
|
745
|
+
"kitman login --api-url https://api.kitman.sh",
|
|
746
|
+
"kitman logout --all",
|
|
747
|
+
"kitman whoami",
|
|
748
|
+
"kitman config show",
|
|
749
|
+
"kitman workspace list",
|
|
750
|
+
"kitman workspace create Acme",
|
|
751
|
+
"kitman workspace use acme --local",
|
|
752
|
+
"kitman mcp",
|
|
753
|
+
"kitman mcp setup --name codex",
|
|
754
|
+
"kitman sync --harness codex",
|
|
755
|
+
"kitman schedule publish nightly-tidy",
|
|
756
|
+
"kitman delivery reconcile 01a1ea42-5e6f-7b80-a8b9-9d3f6c5b1a22",
|
|
757
|
+
"kitman reconcile 01a1ea42-5e6f-7b80-a8b9-9d3f6c5b1a22",
|
|
758
|
+
"kitman lifecycle capabilities",
|
|
759
|
+
`kitman trigger --event task.created --input '{"taskId":"KIT-42"}'`,
|
|
760
|
+
"kitman work-unit list --status running --limit 20",
|
|
761
|
+
"kitman work-unit show 01a1ea54-6f70-7c91-b9ca-ae4f7d6c2b33",
|
|
762
|
+
"kitman work-unit complete 01a1ea54-6f70-7c91-b9ca-ae4f7d6c2b33 --idempotency-key complete-1"
|
|
763
|
+
];
|
|
764
|
+
var withoutJson = new Set(["init", "pair", "login", "logout", "mcp", "sync"]);
|
|
765
|
+
var commandWord = /^[a-z][a-z|-]*$/;
|
|
766
|
+
var wordsAfterKitman = (line) => {
|
|
767
|
+
const command = /(?:^|\| )kitman (.*)$/.exec(line.trim())?.[1] ?? "";
|
|
768
|
+
return [...command.matchAll(/"([^"]*)"|'([^']*)'|(\S+)/g)].map((match) => match[1] ?? match[2] ?? match[3] ?? "");
|
|
769
|
+
};
|
|
770
|
+
var pathsOf = (line) => {
|
|
771
|
+
const words = wordsAfterKitman(line);
|
|
772
|
+
const end = words.findIndex((word) => !commandWord.test(word));
|
|
773
|
+
return (end === -1 ? words : words.slice(0, end)).reduce((paths, word) => paths.flatMap((path) => word.split("|").map((choice) => [...path, choice])), [[]]).map((path) => path.join(" "));
|
|
774
|
+
};
|
|
775
|
+
var parseEntries = (heading, text) => {
|
|
776
|
+
const entries = [];
|
|
777
|
+
for (const line of text) {
|
|
778
|
+
if (line.startsWith(" "))
|
|
779
|
+
entries.at(-1)?.lines.push(line);
|
|
780
|
+
else if (line.startsWith(" "))
|
|
781
|
+
entries.push({ heading, lines: [line], paths: pathsOf(line) });
|
|
782
|
+
else if (line.trim() !== "" && !line.startsWith("Usage:") && !line.startsWith("Every "))
|
|
783
|
+
heading = line;
|
|
784
|
+
}
|
|
785
|
+
return entries;
|
|
786
|
+
};
|
|
787
|
+
var helpEntries = [
|
|
788
|
+
...parseEntries("", Usage.split(`
|
|
789
|
+
`)),
|
|
790
|
+
...moreUsage.flatMap(([heading, lines]) => parseEntries(heading, lines))
|
|
791
|
+
];
|
|
792
|
+
var startsWithWords = (path, prefix) => path === prefix || path.startsWith(`${prefix} `);
|
|
793
|
+
var entriesFor = (words) => {
|
|
794
|
+
for (let length = words.length;length > 0; length -= 1) {
|
|
795
|
+
const prefix = words.slice(0, length).join(" ");
|
|
796
|
+
const found = helpEntries.filter((entry) => entry.paths.some((path) => startsWithWords(path, prefix)));
|
|
797
|
+
if (found.length > 0)
|
|
798
|
+
return found;
|
|
799
|
+
}
|
|
800
|
+
return [];
|
|
801
|
+
};
|
|
802
|
+
var wordCount = (path) => path.split(" ").length;
|
|
803
|
+
var entriesNamedBy = (words) => {
|
|
804
|
+
const named = (entry) => Math.max(0, ...entry.paths.filter((path) => startsWithWords(words.join(" "), path)).map(wordCount));
|
|
805
|
+
const longest = Math.max(0, ...helpEntries.map(named));
|
|
806
|
+
return longest === 0 ? [] : helpEntries.filter((entry) => named(entry) === longest);
|
|
807
|
+
};
|
|
808
|
+
var entryExamples = new Map;
|
|
809
|
+
for (const example of examples)
|
|
810
|
+
for (const entry of entriesNamedBy(wordsAfterKitman(example)))
|
|
811
|
+
entryExamples.set(entry, [...entryExamples.get(entry) ?? [], example]);
|
|
812
|
+
var examplesOf = (entry) => entryExamples.get(entry) ?? [];
|
|
813
|
+
var optionPattern = /--[a-z][a-z-]*(?: (?:"?<[^>]+>"?(?:\|[a-z]+)*|[a-z0-9]+(?:\|[a-z0-9]+)+))?/g;
|
|
814
|
+
var optionsOf = (command, lines) => {
|
|
815
|
+
const options = new Map;
|
|
816
|
+
for (const match of lines.join(" ").matchAll(optionPattern)) {
|
|
817
|
+
const name = match[0].split(" ")[0] ?? match[0];
|
|
818
|
+
if (!options.has(name))
|
|
819
|
+
options.set(name, match[0]);
|
|
820
|
+
}
|
|
821
|
+
if (!withoutJson.has(command))
|
|
822
|
+
options.set("--json", options.get("--json") ?? "--json");
|
|
823
|
+
options.set("--help", "-h, --help");
|
|
824
|
+
return [...options.values()];
|
|
825
|
+
};
|
|
826
|
+
var isHelpFlag = (arg) => arg === "--help" || arg === "-h";
|
|
827
|
+
var commandHelp = (args) => {
|
|
828
|
+
if (!args.some(isHelpFlag))
|
|
829
|
+
return;
|
|
830
|
+
const words = args.filter((arg) => !arg.startsWith("-"));
|
|
831
|
+
const entries = entriesFor(words);
|
|
832
|
+
const command = words[0];
|
|
833
|
+
if (command === undefined || entries.length === 0)
|
|
834
|
+
return;
|
|
835
|
+
const lines = entries.flatMap((entry) => entry.lines);
|
|
836
|
+
const shown = [...new Set(entries.flatMap(examplesOf))];
|
|
837
|
+
const usage = [];
|
|
838
|
+
for (const [index, entry] of entries.entries()) {
|
|
839
|
+
if (entry.heading !== entries[index - 1]?.heading)
|
|
840
|
+
usage.push(...index === 0 ? [] : [""], entry.heading);
|
|
841
|
+
usage.push(...entry.lines);
|
|
842
|
+
}
|
|
843
|
+
return [
|
|
844
|
+
...usage,
|
|
845
|
+
"",
|
|
846
|
+
"Options:",
|
|
847
|
+
...optionsOf(command, lines).map((option) => ` ${option}`),
|
|
848
|
+
"",
|
|
849
|
+
shown.length === 1 ? "Example:" : "Examples:",
|
|
850
|
+
...shown.map((example) => ` ${example}`)
|
|
851
|
+
].join(`
|
|
852
|
+
`);
|
|
853
|
+
};
|
|
403
854
|
// apps/cli/src/herdr-runner-credential.ts
|
|
404
855
|
function herdrRunnerCredentialName(runnerId) {
|
|
405
856
|
return `herdr-runner:${runnerId}`;
|
|
@@ -530,10 +981,10 @@ var sandboxMissing = (sandbox, missing) => ({
|
|
|
530
981
|
var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
|
|
531
982
|
var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
|
|
532
983
|
var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
|
|
533
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
984
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-ntfk63fx.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
|
|
534
985
|
});
|
|
535
986
|
var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
|
|
536
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
987
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-ntfk63fx.js")), (module) => module.updateHerdrCore(options))
|
|
537
988
|
});
|
|
538
989
|
var herdrCoreMissing = (error) => {
|
|
539
990
|
if (isTagged(error, "HerdrCoreMissing"))
|
|
@@ -953,7 +1404,7 @@ var syncTargets = (harness) => gen(function* () {
|
|
|
953
1404
|
});
|
|
954
1405
|
var syncKits = (input) => gen(function* () {
|
|
955
1406
|
const fs = yield* FileSystem;
|
|
956
|
-
const { syncKitSetup } = yield* promise(() => import("./chunk-
|
|
1407
|
+
const { syncKitSetup } = yield* promise(() => import("./chunk-8zg8nv7h.js"));
|
|
957
1408
|
const harnesses = yield* syncTargets(input.harness);
|
|
958
1409
|
const chain = yield* input.client.getKitChain(input.workspaceId);
|
|
959
1410
|
for (const { name, problem } of chain.skipped)
|
|
@@ -1871,7 +2322,7 @@ var package_default = {
|
|
|
1871
2322
|
};
|
|
1872
2323
|
|
|
1873
2324
|
// apps/cli/src/scaffold.ts
|
|
1874
|
-
var cliVersion = "0.11.
|
|
2325
|
+
var cliVersion = "0.11.7";
|
|
1875
2326
|
var packageJson = (name, scaffold) => `${JSON.stringify({
|
|
1876
2327
|
name,
|
|
1877
2328
|
private: true,
|
|
@@ -2023,121 +2474,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
|
|
|
2023
2474
|
|
|
2024
2475
|
// apps/cli/src/commands.ts
|
|
2025
2476
|
var ClientId = "kitman-cli";
|
|
2026
|
-
var
|
|
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"));
|
|
2477
|
+
var agentRuntime = promise(() => import("./chunk-m1sqgdym.js"));
|
|
2141
2478
|
var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
|
|
2142
2479
|
defaultValue: () => gen(function* () {
|
|
2143
2480
|
const tui = yield* tryPromise({
|
|
@@ -2161,6 +2498,9 @@ function runEffect(args) {
|
|
|
2161
2498
|
}
|
|
2162
2499
|
if (args[0] === "--version")
|
|
2163
2500
|
return yield* log(kitmanVersion ?? "dev");
|
|
2501
|
+
const help = commandHelp(args);
|
|
2502
|
+
if (help !== undefined)
|
|
2503
|
+
return yield* log(help);
|
|
2164
2504
|
const [command, ...rest] = args;
|
|
2165
2505
|
if (command === "init" && rest[0] === "--kit")
|
|
2166
2506
|
return yield* scaffoldKit(rest[1] ?? ".");
|
|
@@ -3134,7 +3474,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
|
|
|
3134
3474
|
});
|
|
3135
3475
|
var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
|
|
3136
3476
|
defaultValue: () => (options) => gen(function* () {
|
|
3137
|
-
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-
|
|
3477
|
+
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-0wv30032.js"));
|
|
3138
3478
|
return yield* makeRunnerRpcClient({
|
|
3139
3479
|
runnerId: options.runnerId,
|
|
3140
3480
|
bearer: options.bearer,
|
|
@@ -3658,7 +3998,7 @@ function mcpCommand(args) {
|
|
|
3658
3998
|
if (command.action === "run") {
|
|
3659
3999
|
if (command.args.length > 0)
|
|
3660
4000
|
return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
|
|
3661
|
-
const { runMcpServerCommand } = yield* promise(() => import("./chunk-
|
|
4001
|
+
const { runMcpServerCommand } = yield* promise(() => import("./chunk-g31s31k7.js"));
|
|
3662
4002
|
return yield* runMcpServerCommand({ flags: command.flags });
|
|
3663
4003
|
}
|
|
3664
4004
|
if (command.action !== "setup")
|
|
@@ -4928,9 +5268,9 @@ function changeRequestCommand(args) {
|
|
|
4928
5268
|
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
5269
|
});
|
|
4930
5270
|
}
|
|
4931
|
-
var KitWriter = map8(promise(() => import("./chunk-
|
|
5271
|
+
var KitWriter = map8(promise(() => import("./chunk-c41b37fd.js")), (build) => build.writeKit);
|
|
4932
5272
|
var KitBuilder = Reference("kitman/cli/KitBuilder", {
|
|
4933
|
-
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-
|
|
5273
|
+
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-c41b37fd.js")), (build) => build.buildKit(directory))
|
|
4934
5274
|
});
|
|
4935
5275
|
var uploadKit = (client, workspaceId, built) => gen(function* () {
|
|
4936
5276
|
yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
|