@joshuafolkken/kit 1.921.0 → 1.947.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 (97) 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/backlogrun-progress.md +13 -12
  5. package/.claude/skills/workflow-commands/backlogrun-steps.md +2 -1
  6. package/.claude/skills/workflow-commands/observation-filing.md +3 -3
  7. package/.claude/skills/workflow-commands/prerequisite.md +1 -1
  8. package/.github/workflows/ci.yml +26 -8
  9. package/.github/workflows/pr-classification.yml +76 -0
  10. package/README.md +47 -21
  11. package/dist/hooks/batch-guard.js +6 -6
  12. package/dist/hooks/{chunk-LC765SUA.js → chunk-3FWV6CFC.js} +119 -20
  13. package/dist/hooks/{chunk-UULARQ5Q.js → chunk-EYFJ74MJ.js} +13 -15
  14. package/dist/hooks/{chunk-O2FBZPSW.js → chunk-GIX5SAAB.js} +248 -231
  15. package/dist/hooks/{chunk-OLTAGGHH.js → chunk-IA7WC4NS.js} +1 -1
  16. package/dist/hooks/{chunk-UANRLZV7.js → chunk-IBFC25IX.js} +4 -4
  17. package/dist/hooks/{chunk-XMR3BS35.js → chunk-M4U4YNRE.js} +3 -3
  18. package/dist/hooks/{chunk-NWD47MW3.js → chunk-NKVLBB65.js} +3 -3
  19. package/dist/hooks/{chunk-OYU6KPRA.js → chunk-O3PEDF3M.js} +2 -2
  20. package/dist/hooks/{chunk-3HZ5MJIW.js → chunk-OM5VDM6F.js} +2 -2
  21. package/dist/hooks/{chunk-SSX23SJ2.js → chunk-RKUAD3I6.js} +1 -0
  22. package/dist/hooks/{chunk-77RLKZ5V.js → chunk-V7RH56HU.js} +2 -2
  23. package/dist/hooks/{chunk-FXAKJKTB.js → chunk-WPALEIRX.js} +1 -1
  24. package/dist/hooks/codex-hook-adapter.js +12 -12
  25. package/dist/hooks/duplicate-read-guard.js +7 -7
  26. package/dist/hooks/format-edited.js +3 -3
  27. package/dist/hooks/investigation-guard.js +7 -7
  28. package/dist/hooks/pretool-guard.js +11 -11
  29. package/dist/hooks/session-lang.js +2 -2
  30. package/dist/hooks/stop-guard.js +11 -5
  31. package/dist/josh.js +12 -14
  32. package/eslint/base.js +4 -1
  33. package/package.json +21 -6
  34. package/playwright.config.ts +9 -17
  35. package/ports/index.d.ts +1 -0
  36. package/ports/index.js +1 -0
  37. package/ports/web-server.d.ts +5 -0
  38. package/ports/web-server.js +73 -0
  39. package/prompts/collaboration-workflow/issue-template.md +1 -1
  40. package/scripts/agent/agent-role-profile.ts +11 -0
  41. package/scripts/ci/pr-classification.ts +27 -6
  42. package/scripts/document/document-byte-budget.ts +1 -1
  43. package/scripts/gate/hook-gate-reuse.ts +1 -1
  44. package/scripts/gate/project-checks.ts +60 -6
  45. package/scripts/gate/type-check-command.ts +43 -0
  46. package/scripts/git/constants.ts +4 -0
  47. package/scripts/git/git-command.ts +11 -5
  48. package/scripts/git/git-gh-pr-rollup.ts +56 -16
  49. package/scripts/git/git-staging.ts +6 -4
  50. package/scripts/git/git-stash.ts +73 -1
  51. package/scripts/git/stash-orphans.ts +24 -2
  52. package/scripts/git/stash-sweep-lock.ts +141 -0
  53. package/scripts/hooks/stop-guard.ts +2 -0
  54. package/scripts/init/init-actions.ts +3 -2
  55. package/scripts/init/init-ai-copy.ts +8 -5
  56. package/scripts/init/init-logic-migrate.ts +10 -1
  57. package/scripts/init/init-logic-templates.ts +27 -7
  58. package/scripts/init/init-logic-workspace.ts +89 -5
  59. package/scripts/init/init-logic.ts +7 -1
  60. package/scripts/init/init-static.ts +4 -1
  61. package/scripts/init/init.ts +60 -19
  62. package/scripts/init/project-profile.ts +14 -5
  63. package/scripts/issue/issue-merged.ts +75 -0
  64. package/scripts/issue/measure-rerun-cli.ts +2 -2
  65. package/scripts/josh/__snapshots__/josh-command-map.test.ts.snap +10 -0
  66. package/scripts/josh/josh-command-map.ts +1 -0
  67. package/scripts/josh/josh-command-types.ts +0 -3
  68. package/scripts/josh/josh-commands-ai.ts +6 -0
  69. package/scripts/josh/josh-commands-development.ts +6 -19
  70. package/scripts/lint/format.ts +68 -0
  71. package/scripts/lint/lint-parallel.ts +23 -36
  72. package/scripts/observations/observation-ledger-home.ts +22 -2
  73. package/scripts/observations/observation-ledger-line.ts +11 -0
  74. package/scripts/observations/observation-ledger-migrate.ts +146 -0
  75. package/scripts/observations/observation-ledger.ts +51 -3
  76. package/scripts/observations/observations-flush.ts +38 -7
  77. package/scripts/review/review-finding-ledger.ts +1 -1
  78. package/scripts/review/review-record-cli.ts +1 -7
  79. package/scripts/rules/delivered-rules.ts +10 -0
  80. package/scripts/rules/lane-background.ts +111 -0
  81. package/scripts/rules/stop-rules.ts +15 -2
  82. package/scripts/run/run-carry-flush.ts +2 -7
  83. package/scripts/run/run-hold-cli.ts +10 -2
  84. package/scripts/run/run-step-cli.ts +11 -1
  85. package/scripts/run/run-step.ts +36 -8
  86. package/scripts/run/run-tidy-cli.ts +50 -0
  87. package/scripts/run/run-tidy-lanes.ts +110 -0
  88. package/scripts/run/run-tidy-stashes.ts +160 -0
  89. package/scripts/run/run-tidy.ts +101 -0
  90. package/scripts/safe-chain/ci-installer-pin.ts +90 -0
  91. package/scripts/safe-chain/preinstall-command.ts +39 -0
  92. package/scripts/sync/sync.ts +5 -2
  93. package/scripts/test/pilot-files.ts +0 -1
  94. package/scripts/version/preinstall-version-update.ts +2 -0
  95. package/templates/pnpm-workspace.static.yaml +4 -0
  96. package/templates/workflows/ci.yml +21 -7
  97. package/tsconfig/base.json +4 -1
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ENV_FILE_NAME
3
- } from "./chunk-SSX23SJ2.js";
3
+ } from "./chunk-RKUAD3I6.js";
4
4
 
5
5
  // scripts/lib/json-value.ts
6
6
  function parse_or_undefined(text) {
@@ -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
  },
@@ -733,15 +737,8 @@ var DEV_COMMANDS = {
733
737
  reference: ["", "developer", ["none"]]
734
738
  },
735
739
  format: {
736
- // prettier first here, unlike `format:edited`, and deliberately: `eslint --fix` exits 1
737
- // whenever a non-autofixable error remains, so putting it first behind `&&` would mean one
738
- // unused variable anywhere in the tree stops prettier from running at all.
739
- shell: [
740
- "sh",
741
- "-c",
742
- `pnpm exec prettier --write . && pnpm exec eslint . --fix ${ESLINT_CACHE_FLAGS.join(" ")}`
743
- ],
744
- description: "Format code with prettier and eslint",
740
+ script: "scripts/lint/format.ts",
741
+ description: "Format code with prettier and eslint (skips a tool a static project lacks)",
745
742
  category: "Development",
746
743
  reference: ["", "developer", ["files", "processes"]]
747
744
  },
@@ -853,8 +850,8 @@ var DEV_COMMANDS = {
853
850
  argument_targets: ["test:unit", "test:e2e"]
854
851
  },
855
852
  check: {
856
- shell: [...PE, "tsc", "--noEmit", ...TS_CACHE_FLAGS],
857
- 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)",
858
855
  category: "Development",
859
856
  reference: ["[arguments...]", "developer", ["processes"]]
860
857
  },
@@ -1343,6 +1340,7 @@ var ALIASES = {
1343
1340
  rh: "run:hold",
1344
1341
  rr: "run:release",
1345
1342
  rc: "run:carry",
1343
+ rtd: "run:tidy",
1346
1344
  rw: "run:wake",
1347
1345
  rct: "run:cut",
1348
1346
  rv: "run:liveness",