@litfamily/litcodex 1.0.19 → 1.0.21

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 (30) hide show
  1. package/README-Ko-KR.md +9 -9
  2. package/README.md +9 -9
  3. package/dist/config-migration/gpt56-policy.js +0 -3
  4. package/dist/install/doctor-render.js +3 -0
  5. package/dist/install/generated-skill-payload-hashes.d.ts +4 -4
  6. package/dist/install/generated-skill-payload-hashes.js +4 -4
  7. package/marketplace/plugins/litcodex/.codex-plugin/plugin.json +1 -1
  8. package/marketplace/plugins/litcodex/components/auto-update/package.json +1 -1
  9. package/marketplace/plugins/litcodex/components/comment-checker/package.json +1 -1
  10. package/marketplace/plugins/litcodex/components/git-bash/package.json +1 -1
  11. package/marketplace/plugins/litcodex/components/lit-loop/dist/hook-cli.js +44 -2
  12. package/marketplace/plugins/litcodex/components/lit-loop/dist/workflow-map.d.ts +49 -0
  13. package/marketplace/plugins/litcodex/components/lit-loop/dist/workflow-map.js +507 -0
  14. package/marketplace/plugins/litcodex/components/lit-loop/package.json +1 -1
  15. package/marketplace/plugins/litcodex/components/lsp/package.json +1 -1
  16. package/marketplace/plugins/litcodex/components/rules/package.json +1 -1
  17. package/marketplace/plugins/litcodex/components/start-work-continuation/package.json +1 -1
  18. package/marketplace/plugins/litcodex/components/telemetry/package.json +1 -1
  19. package/marketplace/plugins/litcodex/components/wikify-knowledge/package.json +1 -1
  20. package/marketplace/plugins/litcodex/skills/lit-pptx/runtime/package-lock.json +167 -119
  21. package/marketplace/plugins/litcodex/skills/lit-pptx/runtime/package.json +1 -1
  22. package/marketplace/plugins/litcodex/skills/readme-studio/templates/hyperframes-cover/package-lock.json +169 -121
  23. package/marketplace/plugins/litcodex/skills/readme-studio/templates/remotion-cover/package-lock.json +3 -3
  24. package/model-catalog.json +17 -8
  25. package/node_modules/@litcodex/lit-loop/dist/hook-cli.js +44 -2
  26. package/node_modules/@litcodex/lit-loop/dist/workflow-map.d.ts +49 -0
  27. package/node_modules/@litcodex/lit-loop/dist/workflow-map.js +507 -0
  28. package/node_modules/@litcodex/lit-loop/package.json +1 -1
  29. package/package.json +2 -2
  30. package/readme-assets/badge-version.svg +1 -1
package/README-Ko-KR.md CHANGED
@@ -1,12 +1,12 @@
1
- <p align="center"><picture><source media="(prefers-reduced-motion: reduce)" srcset="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.19/readme-assets/cover-motion-still.webp" /><img src="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.19/readme-assets/cover-motion.webp" width="100%" alt="LitFamily 모션 커버: 다섯 로봇 패널이 차례로 켜지고, LitCodex 로봇의 눈과 테두리가 빛난 뒤 LITFAMILY와 KEEP THE WORK LIT. 문구가 밝아지는 영상" /></picture></p>
1
+ <p align="center"><picture><source media="(prefers-reduced-motion: reduce)" srcset="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.21/readme-assets/cover-motion-still.webp" /><img src="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.21/readme-assets/cover-motion.webp" width="100%" alt="LitFamily 모션 커버: 다섯 로봇 패널이 차례로 켜지고, LitCodex 로봇의 눈과 테두리가 빛난 뒤 LITFAMILY와 KEEP THE WORK LIT. 문구가 밝아지는 영상" /></picture></p>
2
2
 
3
3
  <p align="center">
4
- <a href="#설치"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.19/readme-assets/badge-version.svg" alt="1.0.19" /></a>
5
- <a href="https://github.com/wjgoarxiv/litcodex/blob/main/LICENSE"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.19/readme-assets/badge-license.svg" alt="MIT license" /></a>
4
+ <a href="#설치"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.21/readme-assets/badge-version.svg" alt="1.0.21" /></a>
5
+ <a href="https://github.com/wjgoarxiv/litcodex/blob/main/LICENSE"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.21/readme-assets/badge-license.svg" alt="MIT license" /></a>
6
6
  </p>
7
7
 
8
8
  <p align="center">
9
- <a href="https://github.com/wjgoarxiv/litcodex/blob/main/docs/usage-Ko-KR.md"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.19/readme-assets/lucide-book-open.svg" width="16" alt="" /> 문서</a> &nbsp; <a href="#설치">설치</a> &nbsp; <a href="https://github.com/wjgoarxiv/litcodex/blob/main/docs/assets/readme/ignition-film.mp4"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.19/readme-assets/lucide-play.svg" width="16" alt="" /> Ignition</a> &nbsp; <a href="https://github.com/wjgoarxiv/litcodex/blob/main/LICENSE"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.19/readme-assets/lucide-shield-check.svg" width="16" alt="" /> MIT</a>
9
+ <a href="https://github.com/wjgoarxiv/litcodex/blob/main/docs/usage-Ko-KR.md"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.21/readme-assets/lucide-book-open.svg" width="16" alt="" /> 문서</a> &nbsp; <a href="#설치">설치</a> &nbsp; <a href="https://github.com/wjgoarxiv/litcodex/blob/main/docs/assets/readme/ignition-film.mp4"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.21/readme-assets/lucide-play.svg" width="16" alt="" /> Ignition</a> &nbsp; <a href="https://github.com/wjgoarxiv/litcodex/blob/main/LICENSE"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.21/readme-assets/lucide-shield-check.svg" width="16" alt="" /> MIT</a>
10
10
  </p>
11
11
 
12
12
  # LitCodex
@@ -23,12 +23,12 @@ Codex CLI 플러그인입니다.
23
23
  Node.js 22 이상과 Codex CLI가 필요합니다.
24
24
 
25
25
  ```sh
26
- npm exec --yes --package @litfamily/litcodex@1.0.19 -- litcodex install
26
+ npm exec --yes --package @litfamily/litcodex@1.0.21 -- litcodex install
27
27
  ```
28
28
 
29
29
  설치기는 어떤 모델이 이끌지, 어떤 모델이 거들지, 답변 스타일은 무엇으로 할지 묻고, 쓰려는 내용을 먼저 보여 준 뒤
30
30
  `~/.codex/config.toml`에서 자기가 관리하는 항목만 고칩니다. 계획만 먼저 보려면
31
- `npm exec --yes --package @litfamily/litcodex@1.0.19 -- litcodex --dry-run install`을 실행하고, 묻는 단계 없이
31
+ `npm exec --yes --package @litfamily/litcodex@1.0.21 -- litcodex --dry-run install`을 실행하고, 묻는 단계 없이
32
32
  설치하려면 `install` 뒤에 `--yes`를 붙이세요.
33
33
 
34
34
  ```sh
@@ -39,7 +39,7 @@ litcodex install
39
39
  전역으로 설치하면 영상 스킬이 쓸 도구를 미리 준비하느라 버전이 고정된 파일 몇 개를 내려받습니다. 무엇을 받는지와
40
40
  건너뛰는 방법은 [설치 안내](https://github.com/wjgoarxiv/litcodex/blob/main/docs/install-Ko-KR.md#전역-명령으로-쓰기)에 있습니다.
41
41
 
42
- > 전역 설치가 없다면 `npm exec --yes --package @litfamily/litcodex@1.0.19 -- litcodex <command>` 형식을 사용하세요.
42
+ > 전역 설치가 없다면 `npm exec --yes --package @litfamily/litcodex@1.0.21 -- litcodex <command>` 형식을 사용하세요.
43
43
 
44
44
  ## 첫 작업
45
45
 
@@ -91,7 +91,7 @@ lit 회원가입 폼에 입력 검증을 추가해줘
91
91
  ## 확인, 문제 해결, 제거
92
92
 
93
93
  ```sh
94
- npm exec --yes --package @litfamily/litcodex@1.0.19 -- litcodex doctor
94
+ npm exec --yes --package @litfamily/litcodex@1.0.21 -- litcodex doctor
95
95
  ```
96
96
 
97
97
  `litcodex doctor`는 등록·훅·설정·호스트 기능을, `litcodex loop doctor`는 현재 프로젝트의 루프 상태를 확인합니다.
@@ -99,7 +99,7 @@ npm exec --yes --package @litfamily/litcodex@1.0.19 -- litcodex doctor
99
99
  [문제 해결](https://github.com/wjgoarxiv/litcodex/blob/main/README-Ko-KR.md#문제-해결)에 있습니다.
100
100
 
101
101
  ```sh
102
- npm exec --yes --package @litfamily/litcodex@1.0.19 -- litcodex uninstall
102
+ npm exec --yes --package @litfamily/litcodex@1.0.21 -- litcodex uninstall
103
103
  ```
104
104
 
105
105
  플러그인과 LitCodex가 관리하는 설정을 지우고, 관련 없는 설정은 그대로 둡니다.
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
- <p align="center"><picture><source media="(prefers-reduced-motion: reduce)" srcset="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.19/readme-assets/cover-motion-still.webp" /><img src="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.19/readme-assets/cover-motion.webp" width="100%" alt="LitFamily motion cover: five armored robots power on one by one, the LitCodex robot wakes with glowing eyes and a lit frame, then LITFAMILY and KEEP THE WORK LIT. light up." /></picture></p>
1
+ <p align="center"><picture><source media="(prefers-reduced-motion: reduce)" srcset="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.21/readme-assets/cover-motion-still.webp" /><img src="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.21/readme-assets/cover-motion.webp" width="100%" alt="LitFamily motion cover: five armored robots power on one by one, the LitCodex robot wakes with glowing eyes and a lit frame, then LITFAMILY and KEEP THE WORK LIT. light up." /></picture></p>
2
2
 
3
3
  <p align="center">
4
- <a href="#install"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.19/readme-assets/badge-version.svg" alt="1.0.19" /></a>
5
- <a href="https://github.com/wjgoarxiv/litcodex/blob/main/LICENSE"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.19/readme-assets/badge-license.svg" alt="MIT license" /></a>
4
+ <a href="#install"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.21/readme-assets/badge-version.svg" alt="1.0.21" /></a>
5
+ <a href="https://github.com/wjgoarxiv/litcodex/blob/main/LICENSE"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.21/readme-assets/badge-license.svg" alt="MIT license" /></a>
6
6
  </p>
7
7
 
8
8
  <p align="center">
9
- <a href="https://github.com/wjgoarxiv/litcodex/blob/main/docs/usage.md"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.19/readme-assets/lucide-book-open.svg" width="16" alt="" /> Docs</a> &nbsp; <a href="#install">Install</a> &nbsp; <a href="https://github.com/wjgoarxiv/litcodex/blob/main/docs/assets/readme/ignition-film.mp4"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.19/readme-assets/lucide-play.svg" width="16" alt="" /> Ignition</a> &nbsp; <a href="https://github.com/wjgoarxiv/litcodex/blob/main/LICENSE"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.19/readme-assets/lucide-shield-check.svg" width="16" alt="" /> MIT</a>
9
+ <a href="https://github.com/wjgoarxiv/litcodex/blob/main/docs/usage.md"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.21/readme-assets/lucide-book-open.svg" width="16" alt="" /> Docs</a> &nbsp; <a href="#install">Install</a> &nbsp; <a href="https://github.com/wjgoarxiv/litcodex/blob/main/docs/assets/readme/ignition-film.mp4"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.21/readme-assets/lucide-play.svg" width="16" alt="" /> Ignition</a> &nbsp; <a href="https://github.com/wjgoarxiv/litcodex/blob/main/LICENSE"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litcodex@1.0.21/readme-assets/lucide-shield-check.svg" width="16" alt="" /> MIT</a>
10
10
  </p>
11
11
 
12
12
  # LitCodex
@@ -23,12 +23,12 @@ and hands unfinished work to the next session.
23
23
  You need Node.js 22 or later and Codex CLI.
24
24
 
25
25
  ```sh
26
- npm exec --yes --package @litfamily/litcodex@1.0.19 -- litcodex install
26
+ npm exec --yes --package @litfamily/litcodex@1.0.21 -- litcodex install
27
27
  ```
28
28
 
29
29
  The installer asks which model leads, which model helps and which output style you like, shows what it is
30
30
  about to write, and changes only the keys it manages in `~/.codex/config.toml`. To see the plan first, run
31
- `npm exec --yes --package @litfamily/litcodex@1.0.19 -- litcodex --dry-run install`. To skip the
31
+ `npm exec --yes --package @litfamily/litcodex@1.0.21 -- litcodex --dry-run install`. To skip the
32
32
  questions, add `--yes` after `install`.
33
33
 
34
34
  ```sh
@@ -40,7 +40,7 @@ A global install also gets the video skill's tools ready with a few pinned downl
40
40
  [install guide](https://github.com/wjgoarxiv/litcodex/blob/main/docs/install.md#a-global-command) lists them
41
41
  and shows how to skip them.
42
42
 
43
- > Without a global install, use `npm exec --yes --package @litfamily/litcodex@1.0.19 -- litcodex <command>`.
43
+ > Without a global install, use `npm exec --yes --package @litfamily/litcodex@1.0.21 -- litcodex <command>`.
44
44
 
45
45
  ## First task
46
46
 
@@ -96,7 +96,7 @@ Pick any skill in the Codex skill picker or mention it by scoped name, such as `
96
96
  ## Check, fix, remove
97
97
 
98
98
  ```sh
99
- npm exec --yes --package @litfamily/litcodex@1.0.19 -- litcodex doctor
99
+ npm exec --yes --package @litfamily/litcodex@1.0.21 -- litcodex doctor
100
100
  ```
101
101
 
102
102
  `litcodex doctor` checks registration, hooks, config and host capabilities; `litcodex loop doctor` checks
@@ -104,7 +104,7 @@ the current project's loop state. If `lit` does nothing, run doctor and check th
104
104
  in Codex. More fixes are under [troubleshooting](https://github.com/wjgoarxiv/litcodex#troubleshooting).
105
105
 
106
106
  ```sh
107
- npm exec --yes --package @litfamily/litcodex@1.0.19 -- litcodex uninstall
107
+ npm exec --yes --package @litfamily/litcodex@1.0.21 -- litcodex uninstall
108
108
  ```
109
109
 
110
110
  This removes the plugin and the config LitCodex manages, and leaves your other settings alone.
@@ -54,9 +54,6 @@ export function unsafeEffectiveRoute(current) {
54
54
  }
55
55
  if (definition.safeExistingEfforts !== undefined &&
56
56
  !definition.safeExistingEfforts.includes(effort)) {
57
- if (definition.legacyProfile === "luna" && effort === "xhigh") {
58
- return `${model} cannot use xhigh reasoning effort; use max`;
59
- }
60
57
  return `${model} requires ${formatEfforts(definition.safeExistingEfforts)} reasoning effort`;
61
58
  }
62
59
  return null;
@@ -63,6 +63,9 @@ function tuiSuggestionLines(suggestion) {
63
63
  `Suggestion: your Codex config has no built-in ${what}. LitCodex never edits it for you.`,
64
64
  ` Pick items in Codex with ${commands}, or ${where}:`,
65
65
  ...suggestion.snippet.split("\n").map((line) => ` ${line}`),
66
+ ...(suggestion.missing.includes("status_line")
67
+ ? [" task-progress counts the steps of Codex's own plan; the LIT workflow map shows the stage on activation."]
68
+ : []),
66
69
  ];
67
70
  }
68
71
  function missingResourceSummary(paths) {
@@ -302,11 +302,11 @@ export declare const README_STUDIO_PAYLOAD_HASHES: {
302
302
  readonly "templates/cover-source.json": "2f65ec7706431a308619f57c5741c5fa0b24bd60c0c2c649c364aafdb8170e26";
303
303
  readonly "templates/hyperframes-cover/index.html": "cd89b5c6c0fbeeb895eb38a7eb9e232d622323a48adc9773b548032acf6d6c64";
304
304
  readonly "templates/hyperframes-cover/index.motion.json": "18dab5464db575a5048e0f3a476c0eddbf284545147283ba04025a8495d16e43";
305
- readonly "templates/hyperframes-cover/package-lock.json": "6cb809955794acbefa0f8f4ba0a00ba7d91e0b79c65345653ef5a5a8e21d59d8";
305
+ readonly "templates/hyperframes-cover/package-lock.json": "d6d9b47ce49369bfc73d62e8efa01de2dca153e17fdde274456bb642a1afe2c8";
306
306
  readonly "templates/hyperframes-cover/package.json": "9ec0e871126193a545f898f0ed994412a518e2bf06170cd07b3fc9e61cae2530";
307
307
  readonly "templates/readme-cover-section.md": "324e61dd601c42af7117f0eed7ef6ca58c66444c0607919831a64685f4d49b7a";
308
308
  readonly "templates/readme-facts.json": "3155f9b36f98db20d588f68358d0152aa24ad395c1cb62c39a72d2084abb6ddd";
309
- readonly "templates/remotion-cover/package-lock.json": "09fb65f7b5a5088e4f568e6e444a0606f220116d3b3eae0d9ccbec17573219b1";
309
+ readonly "templates/remotion-cover/package-lock.json": "586931a24fffb1117eb5b04f5a4917b5c099f0c040f6c04d278e2ba3c39f1f77";
310
310
  readonly "templates/remotion-cover/package.json": "88448fd7021c32527fb36ee4d6a709f32f1289eae126d9532fca033c4b2debeb";
311
311
  readonly "templates/remotion-cover/src/ReadmeCover.tsx": "bdaddbadcddd99102e2f915eb16eaa1d1def9d8aacd777772afc6d66d106443d";
312
312
  readonly "templates/remotion-cover/src/Root.tsx": "0b3e22dd556216d67bbbca4745f5b041c9fc2a986ca3ba9945bf4b916a51e004";
@@ -804,8 +804,8 @@ export declare const PPTX_PAYLOAD_HASHES: {
804
804
  readonly "references/tonalities/paper.md": "39973f22a4021c5dc1a4210ef123d7444b2dd279352418314caaabb8ae5d669e";
805
805
  readonly "references/tonalities/signal.md": "3c52945f7c4d513b97ae382b6bd544f9cf1daf5780b6f462ac947284b1d38285";
806
806
  readonly "references/tonalities/studio.md": "cca577f4458a6be2306995d996dd99e2d605b7f2a80cbc256c7eff776b65858f";
807
- readonly "runtime/package-lock.json": "73cd3f54d979460757603c8a44c395e777cc0655d7f1c54dfb9512a9c77b8acd";
808
- readonly "runtime/package.json": "700e183641eff75aa87b963d68d96b9c8e0bb21516a3b413c94b70bea10fbd55";
807
+ readonly "runtime/package-lock.json": "67b19a8431f408ab6c75eeb6dd658850089e13f072bf475ae72a2ae79d4e1687";
808
+ readonly "runtime/package.json": "a92c2edf9320ce49043317cb4c8437134a8473bd935f1b769fc595303fb1f879";
809
809
  readonly "runtime/requirements.in": "893e4232e7e69e731053a8c3b3383eb22fb3f82affd6d96ad96d3a8ef8321656";
810
810
  readonly "runtime/requirements.lock": "79028c622048b4a43f747a2bee14ce838b7092aa7eff39c0c725463394a2c85d";
811
811
  readonly "scripts/check_ooxml.py": "52078a351f5f999e2871e9d4136c195f396dcfee45fea6cb6d2a84f07bd837a2";
@@ -303,11 +303,11 @@ export const README_STUDIO_PAYLOAD_HASHES = {
303
303
  "templates/cover-source.json": "2f65ec7706431a308619f57c5741c5fa0b24bd60c0c2c649c364aafdb8170e26",
304
304
  "templates/hyperframes-cover/index.html": "cd89b5c6c0fbeeb895eb38a7eb9e232d622323a48adc9773b548032acf6d6c64",
305
305
  "templates/hyperframes-cover/index.motion.json": "18dab5464db575a5048e0f3a476c0eddbf284545147283ba04025a8495d16e43",
306
- "templates/hyperframes-cover/package-lock.json": "6cb809955794acbefa0f8f4ba0a00ba7d91e0b79c65345653ef5a5a8e21d59d8",
306
+ "templates/hyperframes-cover/package-lock.json": "d6d9b47ce49369bfc73d62e8efa01de2dca153e17fdde274456bb642a1afe2c8",
307
307
  "templates/hyperframes-cover/package.json": "9ec0e871126193a545f898f0ed994412a518e2bf06170cd07b3fc9e61cae2530",
308
308
  "templates/readme-cover-section.md": "324e61dd601c42af7117f0eed7ef6ca58c66444c0607919831a64685f4d49b7a",
309
309
  "templates/readme-facts.json": "3155f9b36f98db20d588f68358d0152aa24ad395c1cb62c39a72d2084abb6ddd",
310
- "templates/remotion-cover/package-lock.json": "09fb65f7b5a5088e4f568e6e444a0606f220116d3b3eae0d9ccbec17573219b1",
310
+ "templates/remotion-cover/package-lock.json": "586931a24fffb1117eb5b04f5a4917b5c099f0c040f6c04d278e2ba3c39f1f77",
311
311
  "templates/remotion-cover/package.json": "88448fd7021c32527fb36ee4d6a709f32f1289eae126d9532fca033c4b2debeb",
312
312
  "templates/remotion-cover/src/ReadmeCover.tsx": "bdaddbadcddd99102e2f915eb16eaa1d1def9d8aacd777772afc6d66d106443d",
313
313
  "templates/remotion-cover/src/Root.tsx": "0b3e22dd556216d67bbbca4745f5b041c9fc2a986ca3ba9945bf4b916a51e004",
@@ -805,8 +805,8 @@ export const PPTX_PAYLOAD_HASHES = {
805
805
  "references/tonalities/paper.md": "39973f22a4021c5dc1a4210ef123d7444b2dd279352418314caaabb8ae5d669e",
806
806
  "references/tonalities/signal.md": "3c52945f7c4d513b97ae382b6bd544f9cf1daf5780b6f462ac947284b1d38285",
807
807
  "references/tonalities/studio.md": "cca577f4458a6be2306995d996dd99e2d605b7f2a80cbc256c7eff776b65858f",
808
- "runtime/package-lock.json": "73cd3f54d979460757603c8a44c395e777cc0655d7f1c54dfb9512a9c77b8acd",
809
- "runtime/package.json": "700e183641eff75aa87b963d68d96b9c8e0bb21516a3b413c94b70bea10fbd55",
808
+ "runtime/package-lock.json": "67b19a8431f408ab6c75eeb6dd658850089e13f072bf475ae72a2ae79d4e1687",
809
+ "runtime/package.json": "a92c2edf9320ce49043317cb4c8437134a8473bd935f1b769fc595303fb1f879",
810
810
  "runtime/requirements.in": "893e4232e7e69e731053a8c3b3383eb22fb3f82affd6d96ad96d3a8ef8321656",
811
811
  "runtime/requirements.lock": "79028c622048b4a43f747a2bee14ce838b7092aa7eff39c0c725463394a2c85d",
812
812
  "scripts/check_ooxml.py": "52078a351f5f999e2871e9d4136c195f396dcfee45fea6cb6d2a84f07bd837a2",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "litcodex",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "description": "LitCodex Codex plugin: the lit-loop activation, durable loop runtime, and local review-gated knowledge.",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@litcodex/auto-update",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "description": "LitCodex foreground update barrier for the SessionStart and management lifecycles.",
5
5
  "type": "module",
6
6
  "private": true,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@litcodex/comment-checker",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "description": "LitCodex Comment-Checker hook: flags low-value / AI-slop comments introduced by edits.",
5
5
  "type": "module",
6
6
  "private": true,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@litcodex/git-bash",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "description": "LitCodex Git-Bash hook: reminds Windows sessions to prefer the git_bash MCP before the built-in shell.",
5
5
  "type": "module",
6
6
  "private": true,
@@ -14,6 +14,7 @@ import { applyAutoHandoffRoute, clearManagedCompactionWhenOff, parseAutoHandoffR
14
14
  import { applyPreToolUseCreateGoalGuard, isLitUserPromptSubmitInput, runUserPromptSubmitHook } from "./codex-hook.js";
15
15
  import { claimJevOnBanner, formatJevHookOutput, jevSwitchState, runJevSkillHint, withJevBanner, } from "./jev-hint.js";
16
16
  import { evaluatePlanPersistence, formatStopBlockOutput, recordLitPlanActivation } from "./plan-persistence.js";
17
+ import { recordWorkflowTurn, workflowMapLine, workflowStopLine } from "./workflow-map.js";
17
18
  /** Hard cap on stdin to bound memory / ReDoS exposure inside the 5 s Codex hook budget. 8 MB. */
18
19
  export const MAX_STDIN_BYTES = 8_000_000;
19
20
  const INVALID_JSON_MESSAGE = "lit hook: stdin was not valid JSON";
@@ -105,7 +106,9 @@ export async function runUserPromptSubmitHookCli(stdin, stdout, stderr, repoRoot
105
106
  if (scope !== null)
106
107
  recordLitPlanActivation(scope.cwd, scope.sessionId);
107
108
  }
108
- const own = decision.kind === "inject" ? decision.stdout : await jevHintOutput(parsed, repoRoot, jev);
109
+ const own = decision.kind === "inject"
110
+ ? withWorkflowMap(decision.stdout, parsed, decision.mode)
111
+ : await jevHintOutput(parsed, repoRoot, jev);
109
112
  const output = withAutoHandoffReload(own, parsed, repoRoot, auto);
110
113
  if (output !== "")
111
114
  stdout.write(output);
@@ -163,6 +166,35 @@ function withReloadContext(stdout, reload) {
163
166
  return null;
164
167
  }
165
168
  }
169
+ /**
170
+ * Add the workflow map under the activation banner and remember the turn for the Stop line. Only an
171
+ * event that names its own absolute `cwd` is mapped, so the map always describes the session's repo.
172
+ */
173
+ function withWorkflowMap(stdout, parsed, mode) {
174
+ if (!isRecord(parsed) || typeof parsed["cwd"] !== "string" || !isAbsolute(parsed["cwd"]))
175
+ return stdout;
176
+ const cwd = parsed["cwd"];
177
+ const sessionId = typeof parsed["session_id"] === "string" && parsed["session_id"] !== "" ? parsed["session_id"] : null;
178
+ try {
179
+ if (sessionId !== null && typeof parsed["turn_id"] === "string") {
180
+ recordWorkflowTurn(cwd, sessionId, parsed["turn_id"], mode);
181
+ }
182
+ const map = workflowMapLine(cwd, sessionId, mode);
183
+ if (map === null)
184
+ return stdout;
185
+ const output = JSON.parse(stdout);
186
+ if (!isRecord(output) || typeof output["systemMessage"] !== "string")
187
+ return stdout;
188
+ output["systemMessage"] = `${output["systemMessage"]}\n${map}`;
189
+ return `${JSON.stringify(output)}\n`;
190
+ }
191
+ catch {
192
+ return stdout;
193
+ }
194
+ }
195
+ function isRecord(value) {
196
+ return typeof value === "object" && value !== null && !Array.isArray(value);
197
+ }
166
198
  /** Absolute `cwd` from a hook event, else the fallback root. */
167
199
  function hookCwd(parsed, repoRoot) {
168
200
  if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed))
@@ -242,8 +274,18 @@ export async function runStopPlanPersistenceHookCli(stdin, stdout, stderr, repoR
242
274
  env: auto.env ?? process.env,
243
275
  ...(auto.now === undefined ? {} : { now: auto.now }),
244
276
  });
245
- if (handoff.decision === "block")
277
+ if (handoff.decision === "block") {
246
278
  stdout.write(formatStopBlockOutput(handoff.reason));
279
+ return 0;
280
+ }
281
+ const line = typeof record["turn_id"] === "string"
282
+ ? workflowStopLine(scope.cwd, scope.sessionId, record["turn_id"], {
283
+ stopHookActive: record["stop_hook_active"] === true,
284
+ transcriptPath: typeof record["transcript_path"] === "string" ? record["transcript_path"] : null,
285
+ })
286
+ : null;
287
+ if (line !== null)
288
+ stdout.write(`${JSON.stringify({ systemMessage: line })}\n`);
247
289
  }
248
290
  return 0;
249
291
  }
@@ -0,0 +1,49 @@
1
+ interface Progress {
2
+ readonly done: number;
3
+ readonly total: number;
4
+ readonly next: string | null;
5
+ }
6
+ /** Where an unfinished research journal stands: the highest wave written and whether verification began. */
7
+ interface ResearchProgress {
8
+ readonly wave: number | null;
9
+ readonly verifying: boolean;
10
+ }
11
+ export interface WorkflowSignals {
12
+ readonly work: (Progress & {
13
+ readonly status: "active" | "paused" | "completed";
14
+ }) | null;
15
+ readonly goals: Progress | null;
16
+ readonly plan: "drafting" | "published" | null;
17
+ readonly research: ResearchProgress | null;
18
+ }
19
+ /** What the Stop event says about the host's own continuation state. */
20
+ export interface StopContext {
21
+ readonly stopHookActive: boolean;
22
+ readonly transcriptPath: string | null;
23
+ }
24
+ /**
25
+ * Checkbox rows the way start-work counts them: fenced blocks are skipped, and when the plan has a
26
+ * `## Todos` or `## Final verification wave` section only rows inside those sections count.
27
+ */
28
+ export declare function countPlanRows(markdown: string): Progress;
29
+ /** One cell per task, at most ten; a partly done plan never draws as full or empty. */
30
+ export declare function progressBar(done: number, total: number): string;
31
+ /**
32
+ * A task title without its row number, cut at the first code span, path, variable or flag and marked
33
+ * with `…`. Deleting those words mid-sentence reads oddly, so the title stops there instead; a title
34
+ * with fewer than three words left before the cut is dropped.
35
+ */
36
+ export declare function safeTitle(label: string): string | null;
37
+ export declare function readWorkflowSignals(repoRoot: string, sessionId: string | null, now?: number): WorkflowSignals;
38
+ /** One map line, or null when there is nothing true to draw. Plain text: emoji and block cells only. */
39
+ export declare function renderWorkflowMap(mode: string | null, signals: WorkflowSignals): string | null;
40
+ export declare function workflowMapLine(repoRoot: string, sessionId: string | null, mode: string | null): string | null;
41
+ /** Remember that this turn is a LIT activation and where its progress started. Never throws. */
42
+ export declare function recordWorkflowTurn(repoRoot: string, sessionId: string, turnId: string, mode: string, now?: number): void;
43
+ /**
44
+ * The Stop line for a LIT turn, or null when this turn was not a LIT activation. At a start-work
45
+ * checkpoint the continuation hook keeps the turn going, so the line says so instead of "turn done".
46
+ * No commands or paths.
47
+ */
48
+ export declare function workflowStopLine(repoRoot: string, sessionId: string, turnId: string, stop?: StopContext): string | null;
49
+ export {};