@joshuafolkken/kit 1.929.0 → 1.953.0

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.
Files changed (83) hide show
  1. package/.claude/skills/workflow-commands/background-commands.md +6 -0
  2. package/.claude/skills/workflow-commands/backlogrun-child.md +1 -1
  3. package/.claude/skills/workflow-commands/backlogrun-lanes.md +4 -3
  4. package/.claude/skills/workflow-commands/observation-filing.md +3 -3
  5. package/.claude/skills/workflow-commands/prerequisite.md +1 -1
  6. package/.github/workflows/ci.yml +26 -8
  7. package/.github/workflows/pr-classification.yml +76 -0
  8. package/README.md +44 -22
  9. package/dist/hooks/batch-guard.js +4 -4
  10. package/dist/hooks/{chunk-GQ3EVWHY.js → chunk-452OKRQX.js} +421 -195
  11. package/dist/hooks/{chunk-2PGRQ62K.js → chunk-EYFJ74MJ.js} +11 -6
  12. package/dist/hooks/{chunk-LCJZE42I.js → chunk-IA7WC4NS.js} +1 -1
  13. package/dist/hooks/{chunk-BNFG2IFK.js → chunk-IBFC25IX.js} +4 -4
  14. package/dist/hooks/{chunk-I3JP3D4A.js → chunk-M4U4YNRE.js} +3 -3
  15. package/dist/hooks/{chunk-NJZSO7BK.js → chunk-NKVLBB65.js} +3 -3
  16. package/dist/hooks/{chunk-SXPTRFPG.js → chunk-O3PEDF3M.js} +1 -1
  17. package/dist/hooks/{chunk-7XQ6TK3R.js → chunk-OM5VDM6F.js} +2 -2
  18. package/dist/hooks/{chunk-ROULPSQC.js → chunk-V7RH56HU.js} +2 -2
  19. package/dist/hooks/{chunk-YO43HEPY.js → chunk-Z5TVZ4AP.js} +237 -235
  20. package/dist/hooks/codex-hook-adapter.js +10 -10
  21. package/dist/hooks/duplicate-read-guard.js +5 -5
  22. package/dist/hooks/format-edited.js +2 -2
  23. package/dist/hooks/investigation-guard.js +5 -5
  24. package/dist/hooks/pretool-guard.js +9 -9
  25. package/dist/hooks/stop-guard.js +9 -3
  26. package/dist/josh.js +11 -6
  27. package/dist/version/index.js +7 -4
  28. package/package.json +13 -1
  29. package/prompts/collaboration-workflow/issue-template.md +1 -1
  30. package/scripts/ci/pr-classification.ts +27 -6
  31. package/scripts/document/document-byte-budget.ts +1 -1
  32. package/scripts/gate/hook-gate-reuse.ts +1 -1
  33. package/scripts/gate/project-checks.ts +45 -15
  34. package/scripts/gate/type-check-command.ts +43 -0
  35. package/scripts/git/constants.ts +4 -0
  36. package/scripts/git/git-command.ts +11 -5
  37. package/scripts/git/git-gh-pr-rollup.ts +56 -16
  38. package/scripts/git/git-staging.ts +6 -4
  39. package/scripts/git/git-stash.ts +73 -1
  40. package/scripts/git/git-worktree.ts +35 -4
  41. package/scripts/git/repository-lock.ts +138 -0
  42. package/scripts/git/stash-orphans.ts +24 -2
  43. package/scripts/git/stash-sweep-lock.ts +30 -0
  44. package/scripts/hooks/stop-guard.ts +2 -0
  45. package/scripts/init/init-actions.ts +3 -2
  46. package/scripts/init/init-logic-migrate.ts +10 -1
  47. package/scripts/init/init-logic-templates.ts +27 -7
  48. package/scripts/init/init-logic-workspace.ts +52 -1
  49. package/scripts/init/init-logic.ts +6 -1
  50. package/scripts/init/init.ts +60 -19
  51. package/scripts/issue/issue-merged.ts +75 -0
  52. package/scripts/issue/measure-rerun-cli.ts +2 -2
  53. package/scripts/josh/__snapshots__/josh-command-map.test.ts.snap +10 -0
  54. package/scripts/josh/josh-command-map.ts +1 -0
  55. package/scripts/josh/josh-command-types.ts +0 -3
  56. package/scripts/josh/josh-commands-ai.ts +6 -0
  57. package/scripts/josh/josh-commands-development.ts +5 -5
  58. package/scripts/lint/lint-parallel.ts +19 -18
  59. package/scripts/observations/observation-ledger-home.ts +22 -2
  60. package/scripts/observations/observation-ledger-line.ts +11 -0
  61. package/scripts/observations/observation-ledger-migrate.ts +146 -0
  62. package/scripts/observations/observation-ledger.ts +51 -3
  63. package/scripts/observations/observations-flush.ts +38 -7
  64. package/scripts/review/review-finding-ledger.ts +1 -1
  65. package/scripts/review/review-record-cli.ts +1 -7
  66. package/scripts/rules/delivered-rules.ts +10 -0
  67. package/scripts/rules/lane-background.ts +111 -0
  68. package/scripts/rules/stop-rules.ts +15 -2
  69. package/scripts/run/run-carry-flush.ts +2 -7
  70. package/scripts/run/run-hold-cli.ts +10 -2
  71. package/scripts/run/run-tidy-cli.ts +50 -0
  72. package/scripts/run/run-tidy-lanes.ts +110 -0
  73. package/scripts/run/run-tidy-stashes.ts +160 -0
  74. package/scripts/run/run-tidy.ts +101 -0
  75. package/scripts/safe-chain/ci-installer-pin.ts +90 -0
  76. package/scripts/safe-chain/preinstall-command.ts +39 -0
  77. package/scripts/safe-chain/project-config.ts +55 -10
  78. package/scripts/sync/sync.ts +8 -3
  79. package/scripts/test/pilot-files.ts +0 -1
  80. package/scripts/version/preinstall-version-update.ts +2 -0
  81. package/scripts/version/release-age.ts +11 -6
  82. package/templates/workflows/ci.yml +21 -7
  83. package/tsconfig/base.json +4 -1
@@ -18,7 +18,6 @@ var json_value = { parse_or_undefined, is_record };
18
18
  // scripts/josh/josh-command-types.ts
19
19
  var OPTIONAL_ENV_FILE_FLAGS = [`--env-file-if-exists=${ENV_FILE_NAME}`];
20
20
  var GATE_COMMAND = "gate";
21
- var PE = ["pnpm", "exec"];
22
21
  var ESLINT_CACHE_FILE = ".eslintcache";
23
22
  var TS_BUILD_INFO_FILE = ".tsbuildinfo";
24
23
  var CSPELL_CACHE_FILE = ".cspellcache";
@@ -56,7 +55,6 @@ function content_cache_flags(cache_file) {
56
55
  var ESLINT_CACHE_FLAGS = content_cache_flags(ESLINT_CACHE_FILE);
57
56
  var ESLINT_EDIT_CACHE_FLAGS = content_cache_flags(ESLINT_EDIT_CACHE_FILE);
58
57
  var ESLINT_RELATED_CACHE_FLAGS = content_cache_flags(ESLINT_RELATED_CACHE_FILE);
59
- var TS_CACHE_FLAGS = ["--incremental", "--tsBuildInfoFile", TS_BUILD_INFO_FILE];
60
58
  var CSPELL_CACHE_FLAGS = content_cache_flags(CSPELL_CACHE_FILE);
61
59
 
62
60
  // scripts/cost-runtime/cost-blocks.ts
@@ -502,6 +500,12 @@ var AI_COMMANDS = {
502
500
  reference: ["[issue|--force]", "automation", ["files"]],
503
501
  default_script_arguments: ["--release"]
504
502
  },
503
+ "run:tidy": {
504
+ script: "scripts/run/run-tidy-cli.ts",
505
+ description: "Close merged lanes and drop stashes whose issues are all merged",
506
+ category: "AI tools",
507
+ reference: ["", "automation", ["git", "network", "files"]]
508
+ },
505
509
  "run:carry": {
506
510
  script: "scripts/run/run-carry-cli.ts",
507
511
  description: "Carry one invocation\u2019s budget across its own session cuts",
@@ -698,7 +702,7 @@ var DEV_COMMANDS = {
698
702
  },
699
703
  lint: {
700
704
  script: "scripts/lint/lint-parallel.ts",
701
- description: "Check code with prettier and eslint",
705
+ description: "Check code with prettier and eslint (skips a tool a static project lacks)",
702
706
  category: "Development",
703
707
  reference: ["", "developer", ["processes"]]
704
708
  },
@@ -734,7 +738,7 @@ var DEV_COMMANDS = {
734
738
  },
735
739
  format: {
736
740
  script: "scripts/lint/format.ts",
737
- description: "Format code with prettier and eslint",
741
+ description: "Format code with prettier and eslint (skips a tool a static project lacks)",
738
742
  category: "Development",
739
743
  reference: ["", "developer", ["files", "processes"]]
740
744
  },
@@ -846,8 +850,8 @@ var DEV_COMMANDS = {
846
850
  argument_targets: ["test:unit", "test:e2e"]
847
851
  },
848
852
  check: {
849
- shell: [...PE, "tsc", "--noEmit", ...TS_CACHE_FLAGS],
850
- description: "Type-check TypeScript project",
853
+ script: "scripts/gate/type-check-command.ts",
854
+ description: "Type-check with tsc (skips a static project with no TypeScript to check)",
851
855
  category: "Development",
852
856
  reference: ["[arguments...]", "developer", ["processes"]]
853
857
  },
@@ -1336,6 +1340,7 @@ var ALIASES = {
1336
1340
  rh: "run:hold",
1337
1341
  rr: "run:release",
1338
1342
  rc: "run:carry",
1343
+ rtd: "run:tidy",
1339
1344
  rw: "run:wake",
1340
1345
  rct: "run:cut",
1341
1346
  rv: "run:liveness",
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  ESLINT_EDIT_CACHE_FLAGS,
7
7
  time_density_hook
8
- } from "./chunk-2PGRQ62K.js";
8
+ } from "./chunk-EYFJ74MJ.js";
9
9
 
10
10
  // scripts/hooks/format-edited-file.ts
11
11
  import { existsSync as existsSync2 } from "node:fs";
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  investigation_reads
3
- } from "./chunk-I3JP3D4A.js";
3
+ } from "./chunk-M4U4YNRE.js";
4
4
  import {
5
5
  lane_guard_policy
6
- } from "./chunk-7XQ6TK3R.js";
6
+ } from "./chunk-OM5VDM6F.js";
7
7
  import {
8
8
  hook_decision
9
- } from "./chunk-SXPTRFPG.js";
9
+ } from "./chunk-O3PEDF3M.js";
10
10
  import {
11
11
  json_value,
12
12
  time_spans
13
- } from "./chunk-2PGRQ62K.js";
13
+ } from "./chunk-EYFJ74MJ.js";
14
14
 
15
15
  // scripts/delegation/duplicate-read-guard.ts
16
16
  import { statSync } from "node:fs";
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  time_batch_guard
3
- } from "./chunk-7XQ6TK3R.js";
3
+ } from "./chunk-OM5VDM6F.js";
4
4
  import {
5
5
  hook_decision
6
- } from "./chunk-SXPTRFPG.js";
6
+ } from "./chunk-O3PEDF3M.js";
7
7
  import {
8
8
  cost_blocks,
9
9
  cost_transcript,
10
10
  time_bundle_call,
11
11
  time_shell,
12
12
  time_spans
13
- } from "./chunk-2PGRQ62K.js";
13
+ } from "./chunk-EYFJ74MJ.js";
14
14
 
15
15
  // scripts/delegation/investigation-reads.ts
16
16
  import path from "node:path";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  investigation_reads
3
- } from "./chunk-I3JP3D4A.js";
3
+ } from "./chunk-M4U4YNRE.js";
4
4
  import {
5
5
  lane_guard_policy
6
- } from "./chunk-7XQ6TK3R.js";
6
+ } from "./chunk-OM5VDM6F.js";
7
7
  import {
8
8
  hook_decision
9
- } from "./chunk-SXPTRFPG.js";
9
+ } from "./chunk-O3PEDF3M.js";
10
10
 
11
11
  // scripts/delegation/investigation-guard.ts
12
12
  import { text } from "node:stream/consumers";
@@ -3,7 +3,7 @@ import {
3
3
  stamp_file,
4
4
  time_density_hook,
5
5
  time_hook_transcript
6
- } from "./chunk-2PGRQ62K.js";
6
+ } from "./chunk-EYFJ74MJ.js";
7
7
  import {
8
8
  josh_environment_file
9
9
  } from "./chunk-WPALEIRX.js";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  lane_child_marker
3
- } from "./chunk-SXPTRFPG.js";
3
+ } from "./chunk-O3PEDF3M.js";
4
4
  import {
5
5
  time_bundle_call,
6
6
  time_format,
7
7
  time_round_trips,
8
8
  time_spans,
9
9
  time_transcript_line
10
- } from "./chunk-2PGRQ62K.js";
10
+ } from "./chunk-EYFJ74MJ.js";
11
11
 
12
12
  // scripts/lane/lane-guard-policy.ts
13
13
  var DEFAULT_MODE = "refuse";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  lane_guard_policy,
3
3
  time_batch_guard
4
- } from "./chunk-7XQ6TK3R.js";
4
+ } from "./chunk-OM5VDM6F.js";
5
5
  import {
6
6
  hook_decision
7
- } from "./chunk-SXPTRFPG.js";
7
+ } from "./chunk-O3PEDF3M.js";
8
8
 
9
9
  // scripts/hooks/batch-guard.ts
10
10
  import { text } from "node:stream/consumers";