@litfamily/litcodex 1.0.32 → 1.0.34
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/README-Ko-KR.md +9 -9
- package/README.md +9 -9
- package/dist/cli.js +63 -0
- package/dist/install/agent-file/apply.d.ts +35 -0
- package/dist/install/agent-file/apply.js +141 -0
- package/dist/install/agent-file/attribution.d.ts +15 -0
- package/dist/install/agent-file/attribution.js +54 -0
- package/dist/install/agent-file/bodies.d.ts +14 -0
- package/dist/install/agent-file/bodies.js +40 -0
- package/dist/install/agent-file/cli.d.ts +70 -0
- package/dist/install/agent-file/cli.js +174 -0
- package/dist/install/agent-file/managed-block.d.ts +28 -0
- package/dist/install/agent-file/managed-block.js +103 -0
- package/dist/install/agent-file/mode.d.ts +13 -0
- package/dist/install/agent-file/mode.js +52 -0
- package/dist/install/doctor-render.js +2 -0
- package/dist/install/doctor.js +20 -0
- package/dist/install/generated-skill-payload-hashes.d.ts +4 -4
- package/dist/install/generated-skill-payload-hashes.js +4 -4
- package/dist/install/index.js +48 -6
- package/dist/install/install-options.js +2 -0
- package/dist/install/types.d.ts +5 -0
- package/dist/install/uninstall.js +1 -0
- package/marketplace/plugins/litcodex/.codex-plugin/plugin.json +1 -1
- package/marketplace/plugins/litcodex/components/auto-update/package.json +1 -1
- package/marketplace/plugins/litcodex/components/comment-checker/package.json +1 -1
- package/marketplace/plugins/litcodex/components/git-bash/package.json +1 -1
- package/marketplace/plugins/litcodex/components/lit-loop/dist/herdr-agents.d.ts +18 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/herdr-agents.js +63 -0
- package/marketplace/plugins/litcodex/components/lit-loop/dist/rewind-go.js +19 -2
- package/marketplace/plugins/litcodex/components/lit-loop/dist/rewind.d.ts +21 -2
- package/marketplace/plugins/litcodex/components/lit-loop/dist/rewind.js +169 -13
- package/marketplace/plugins/litcodex/components/lit-loop/package.json +1 -1
- package/marketplace/plugins/litcodex/components/lsp/package.json +1 -1
- package/marketplace/plugins/litcodex/components/rules/package.json +1 -1
- package/marketplace/plugins/litcodex/components/start-work-continuation/dist/lifecycle-store.js +21 -2
- package/marketplace/plugins/litcodex/components/start-work-continuation/package.json +1 -1
- package/marketplace/plugins/litcodex/components/telemetry/package.json +1 -1
- package/marketplace/plugins/litcodex/components/wikify-knowledge/package.json +1 -1
- package/marketplace/plugins/litcodex/skills/lit-adhd/SKILL.md +9 -6
- package/marketplace/plugins/litcodex/skills/lit-typographic-motion/runtime/requirements-audio.txt +92 -89
- package/marketplace/plugins/litcodex/skills/readme-studio/templates/hyperframes-cover/package-lock.json +4 -4
- package/marketplace/plugins/litcodex/skills/readme-studio/templates/remotion-cover/package-lock.json +3 -3
- package/marketplace/plugins/litcodex/skills/readme-studio/templates/remotion-cover/package.json +3 -0
- package/node_modules/@litcodex/lit-loop/dist/herdr-agents.d.ts +18 -0
- package/node_modules/@litcodex/lit-loop/dist/herdr-agents.js +63 -0
- package/node_modules/@litcodex/lit-loop/dist/rewind-go.js +19 -2
- package/node_modules/@litcodex/lit-loop/dist/rewind.d.ts +21 -2
- package/node_modules/@litcodex/lit-loop/dist/rewind.js +169 -13
- package/node_modules/@litcodex/lit-loop/package.json +1 -1
- package/node_modules/@litcodex/lit-loop/skills/lit-adhd/SKILL.md +9 -6
- package/package.json +2 -2
- package/readme-assets/badge-version.svg +1 -1
package/marketplace/plugins/litcodex/skills/lit-typographic-motion/runtime/requirements-audio.txt
CHANGED
|
@@ -392,95 +392,98 @@ llvmlite==0.49.0 \
|
|
|
392
392
|
--hash=sha256:ee81e96c15a6f870918f1eb60c913551c16aa23defb4f5f1acfa660d6a0aaac2 \
|
|
393
393
|
--hash=sha256:f3f2ff0aeb17d34fcce9f79b99baac441cfd3efa41b83e233ca4530a72381f72
|
|
394
394
|
# via numba
|
|
395
|
-
msgpack==1.2.
|
|
396
|
-
--hash=sha256:
|
|
397
|
-
--hash=sha256:
|
|
398
|
-
--hash=sha256:
|
|
399
|
-
--hash=sha256:
|
|
400
|
-
--hash=sha256:
|
|
401
|
-
--hash=sha256:
|
|
402
|
-
--hash=sha256:
|
|
403
|
-
--hash=sha256:
|
|
404
|
-
--hash=sha256:
|
|
405
|
-
--hash=sha256:
|
|
406
|
-
--hash=sha256:
|
|
407
|
-
--hash=sha256:
|
|
408
|
-
--hash=sha256:
|
|
409
|
-
--hash=sha256:
|
|
410
|
-
--hash=sha256:
|
|
411
|
-
--hash=sha256:
|
|
412
|
-
--hash=sha256:
|
|
413
|
-
--hash=sha256:
|
|
414
|
-
--hash=sha256:
|
|
415
|
-
--hash=sha256:
|
|
416
|
-
--hash=sha256:
|
|
417
|
-
--hash=sha256:
|
|
418
|
-
--hash=sha256:
|
|
419
|
-
--hash=sha256:
|
|
420
|
-
--hash=sha256:
|
|
421
|
-
--hash=sha256:
|
|
422
|
-
--hash=sha256:
|
|
423
|
-
--hash=sha256:
|
|
424
|
-
--hash=sha256:
|
|
425
|
-
--hash=sha256:
|
|
426
|
-
--hash=sha256:
|
|
427
|
-
--hash=sha256:
|
|
428
|
-
--hash=sha256:
|
|
429
|
-
--hash=sha256:
|
|
430
|
-
--hash=sha256:
|
|
431
|
-
--hash=sha256:
|
|
432
|
-
--hash=sha256:
|
|
433
|
-
--hash=sha256:
|
|
434
|
-
--hash=sha256:
|
|
435
|
-
--hash=sha256:
|
|
436
|
-
--hash=sha256:
|
|
437
|
-
--hash=sha256:
|
|
438
|
-
--hash=sha256:
|
|
439
|
-
--hash=sha256:
|
|
440
|
-
--hash=sha256:
|
|
441
|
-
--hash=sha256:
|
|
442
|
-
--hash=sha256:
|
|
443
|
-
--hash=sha256:
|
|
444
|
-
--hash=sha256:
|
|
445
|
-
--hash=sha256:
|
|
446
|
-
--hash=sha256:
|
|
447
|
-
--hash=sha256:
|
|
448
|
-
--hash=sha256:
|
|
449
|
-
--hash=sha256:
|
|
450
|
-
--hash=sha256:
|
|
451
|
-
--hash=sha256:
|
|
452
|
-
--hash=sha256:
|
|
453
|
-
--hash=sha256:
|
|
454
|
-
--hash=sha256:
|
|
455
|
-
--hash=sha256:
|
|
456
|
-
--hash=sha256:
|
|
457
|
-
--hash=sha256:
|
|
458
|
-
--hash=sha256:
|
|
459
|
-
--hash=sha256:
|
|
460
|
-
--hash=sha256:
|
|
461
|
-
--hash=sha256:
|
|
462
|
-
--hash=sha256:
|
|
463
|
-
--hash=sha256:
|
|
464
|
-
--hash=sha256:
|
|
465
|
-
--hash=sha256:
|
|
466
|
-
--hash=sha256:
|
|
467
|
-
--hash=sha256:
|
|
468
|
-
--hash=sha256:
|
|
469
|
-
--hash=sha256:
|
|
470
|
-
--hash=sha256:
|
|
471
|
-
--hash=sha256:
|
|
472
|
-
--hash=sha256:
|
|
473
|
-
--hash=sha256:
|
|
474
|
-
--hash=sha256:
|
|
475
|
-
--hash=sha256:
|
|
476
|
-
--hash=sha256:
|
|
477
|
-
--hash=sha256:
|
|
478
|
-
--hash=sha256:
|
|
479
|
-
--hash=sha256:
|
|
480
|
-
--hash=sha256:
|
|
481
|
-
--hash=sha256:
|
|
482
|
-
--hash=sha256:
|
|
483
|
-
--hash=sha256:
|
|
395
|
+
msgpack==1.2.3 \
|
|
396
|
+
--hash=sha256:07c9733089d1b176c3dd2f7fa268452f9d5d784d076473499d754a58e8d1fbbb \
|
|
397
|
+
--hash=sha256:0955b9000725573d1457c1676944b370dd9643c8d18f25bda5ac72913f850949 \
|
|
398
|
+
--hash=sha256:0c91762c48cd686dc9cf2b142c0bc544083952de32f5853d6624c956e54b85e5 \
|
|
399
|
+
--hash=sha256:0ed5823c4efc20fe87d3530665f40ec18a002be003114814c21235cc8d256207 \
|
|
400
|
+
--hash=sha256:13221a6c81ebb8e43ea63a7251c35d54e4175cea37ebf3a62e911bdf42562a3c \
|
|
401
|
+
--hash=sha256:186e6c602b8a9968b8e864c67d622a69279f7d1e55ae25f40e3bff7e815b2b62 \
|
|
402
|
+
--hash=sha256:18a6ed513023001b28dcd3ba54966f6bb90a38274ba8d2640464bcab3a1b81d4 \
|
|
403
|
+
--hash=sha256:1d6bcec3dbbdb89ca385d3a73e63ceae7b841fa0d7ca7c676f1a7bfe7fb2cdb8 \
|
|
404
|
+
--hash=sha256:1f4ae8bd4ad9ba085fde95e95d055a896d19210238a4199a771a3cf36dceed49 \
|
|
405
|
+
--hash=sha256:1f585407f740a9eac04a3bb82c61d68a0ea78f90e29e670bfb086b9ce3a518dd \
|
|
406
|
+
--hash=sha256:21bfa4d2aa0b04c1806ef778a1199e9e53ea2441bcbf284420a32083896320b8 \
|
|
407
|
+
--hash=sha256:2487453ca1b6104442c6442f9a1a8fee1fe8f428a70d99d4cba799108b304150 \
|
|
408
|
+
--hash=sha256:2574ef81c1c8c38b10e330f3f9406fd09198a776b002030fafcf8e7647e9e06e \
|
|
409
|
+
--hash=sha256:30e1522e4173230dca4d9ad896f038f73c0da6c1edd42f4dbad88ac583cf5d46 \
|
|
410
|
+
--hash=sha256:32edb81a2b5eb7cd7c9d941b2bfbbb082fd2cd09e0e725930316af6b708db186 \
|
|
411
|
+
--hash=sha256:3372475211a9ce1a23acefe512cb3e121d18c95dc74ed56cb1819ef40836ebf4 \
|
|
412
|
+
--hash=sha256:382b219de3d436de3baba0f4b0c6d4336e8f5858d0eb047918b13b69a71c6c55 \
|
|
413
|
+
--hash=sha256:382bc88fe90f29f5ac8a0b65c7046ff255356f2f2f3186c30e370215736fa1dc \
|
|
414
|
+
--hash=sha256:39b6986c19e1f2dfa549d185dba6ccf1de2e4c0ba10d8cfc0048935b1c5f9109 \
|
|
415
|
+
--hash=sha256:3a31905206722103a84c1f72633fe30692cff6732c9d262e09a27dbc468797c8 \
|
|
416
|
+
--hash=sha256:3d4c807ed050fe3ddbea5ba7e9f63d7136871ce42861be1f50ff739f0e91047a \
|
|
417
|
+
--hash=sha256:3ec409b0d6aa8e9eec6eaf881b893caa215dbe68c5319ca96e8a271d81bb111d \
|
|
418
|
+
--hash=sha256:471e12a6a42498a31490c206e0069e343b6a7c35db540be73a879eb06f5be047 \
|
|
419
|
+
--hash=sha256:4c0780095871ecc49a58b2ff6b1b43b25214704da67646557ca287a3f49fb2dd \
|
|
420
|
+
--hash=sha256:59612b4ed48a04cf024584218e813562f3b30a3bafa5f55abe300b15da314751 \
|
|
421
|
+
--hash=sha256:5bd5f91ea75c45cafcc5433ba8fae59b708b736ec178d2441c40c499e9e079db \
|
|
422
|
+
--hash=sha256:5bf390259cb25a6a1cd197c65810999b811f64cd38683251538bcc5a1e41f7d3 \
|
|
423
|
+
--hash=sha256:5c1efdd9181cb1b719ee46865f368a927f1c0c65d577798340b1194545b7515a \
|
|
424
|
+
--hash=sha256:5e0d7950ca3c1bbae291d0552dd3bb2792fc680629c4c0d44e47e5bab969f3ca \
|
|
425
|
+
--hash=sha256:5f304123b90e8b2e49867981b7f6061612c39f50cca51ee88de007c084cf68d3 \
|
|
426
|
+
--hash=sha256:62cc1a4ef0e553bac32c8342e1f04834aca7de276b92744eb7307db77759b890 \
|
|
427
|
+
--hash=sha256:63bb7448a1e9111319ae2430c09a5596140c160422830d6271bc75730ff2ff9a \
|
|
428
|
+
--hash=sha256:6576f348ed6cc4f31db6fd915a8e94245f042f50eae08d48732425e70638ea37 \
|
|
429
|
+
--hash=sha256:666ef5601ab0e6e345e47febc96aa81143cc932201543480cbb9499164f05ffb \
|
|
430
|
+
--hash=sha256:6707d2fa2aa1bb5424ea0b05f44ffc989b15ab41a73ff5855bff4944fec7c8ac \
|
|
431
|
+
--hash=sha256:69ad12cedb674c73527bed869cddb42b742cac79a207a614202a4abaa24ea173 \
|
|
432
|
+
--hash=sha256:6a834097144aabe948b8ca9020a833e8026f7d0abbd0ec54bc7e50f45a8ce012 \
|
|
433
|
+
--hash=sha256:6df430419f2338cb71e4a34d6e64f83c88ccd321f91f40ba4513400b36d864ec \
|
|
434
|
+
--hash=sha256:700bc0fc9e968a292b9137ee70e7a012f7e115bf0107ce45e3a88202788dfc1e \
|
|
435
|
+
--hash=sha256:7013534a7163aa4f213c4d9864f1a8a7555daac6fcd48f699a198e29b436bfab \
|
|
436
|
+
--hash=sha256:7995a7c6a62a1d6e7df211b4a16de513bd99fd053525050a319f80f44fb8015e \
|
|
437
|
+
--hash=sha256:79dfa38faf92f804aa61beec140d70b18418e1dde1778dbb77a87a4cce85aa8a \
|
|
438
|
+
--hash=sha256:7a003b02c6ee2eea6dfe0bb08818631e3597e69f0131f2a8250488a1cc553290 \
|
|
439
|
+
--hash=sha256:7c047250096f9fc19dba26e3d1639b5e7a84114003605c94def667149a70ced1 \
|
|
440
|
+
--hash=sha256:84a6616d396ec1bc18a1e83e67c96a393ec35dfe5e17434a5be7b9aa0fe988ab \
|
|
441
|
+
--hash=sha256:87cf2ef05ff2f2493ba29fcdaef27e960ca64dacfd13460ae29e6f92e0ed05bb \
|
|
442
|
+
--hash=sha256:89c930aece4e972b208ba589c8410b4167b05e411a5ea2cb25fd96f8bc47ee43 \
|
|
443
|
+
--hash=sha256:8ca67f77938ea6a3663aa9bd22b3e031f6da84d665be850abab910ee90728dfd \
|
|
444
|
+
--hash=sha256:8e51eca14fbb65c4e0a5a9657346962bd3dca78c08e04e3d4dee70ef48687d30 \
|
|
445
|
+
--hash=sha256:8ec7a1d49ca6c2569d722ab5ec86e90089b0713900aa31905b47b4c4d9e78ce0 \
|
|
446
|
+
--hash=sha256:902f3490db0e07a7d40b48536a85c9b28fbf1397e7e1658a45a55f958e303620 \
|
|
447
|
+
--hash=sha256:905a189853d6bdb204c7ae5f4ab77fb857448abfff574d3d93c62e2815b24b4f \
|
|
448
|
+
--hash=sha256:9276ba88891338f2617044429dfd080ae008c9868a25f6f1a7d004a35dc9ac0a \
|
|
449
|
+
--hash=sha256:9324c54995641c3d1f92a9d55093c8cde0ffa2fbc87a467a688ef60428393220 \
|
|
450
|
+
--hash=sha256:968583e956d0427878050b371308c5f8647088732ef3e66a117dbe1192ec91e0 \
|
|
451
|
+
--hash=sha256:9d7e9cbb0998bbfd363fd9a09c330520d5e9cb323c05b5a1a05865d23ccf2226 \
|
|
452
|
+
--hash=sha256:a393e428f6ffb0dcb73308c1fff5593041c16ff42da66e5bac8a83a6107a54b0 \
|
|
453
|
+
--hash=sha256:a6b63917d60d6df451f328bd6afba8565e33c4afe1f62ec4ad758b78731c827b \
|
|
454
|
+
--hash=sha256:b1631e12fe572e181cd77e831f69335d6cd5278eac22e3db3f33cf264ac2ac18 \
|
|
455
|
+
--hash=sha256:b774ff994d844e541439ac5d2d49a14def4104830c3465e9394c153f86200ffb \
|
|
456
|
+
--hash=sha256:b949cc25e4a09252cbcc54e66e507de914d0e94a3a7039bd54c299bf7037c098 \
|
|
457
|
+
--hash=sha256:bb89b5dc30469c84bbf8684826eb851d82412ca95690e111b9ac5e8fb343961a \
|
|
458
|
+
--hash=sha256:bfe7d5b62cbe7aa664f0b3e2c49077f10fcdd06183d3014f8271ff3c5edbfbf9 \
|
|
459
|
+
--hash=sha256:c309a7abae1d14ba29a8bd0ddbd704a5e469d8e9bd9c3dee0e4ff53d7ae01d56 \
|
|
460
|
+
--hash=sha256:c77e27790ad72989db783d5303825fba0b71550f00a490efba35cde7dc4b719f \
|
|
461
|
+
--hash=sha256:c942c21a93f36b3a69e828c8945bb72c94dc2ffe488a2086950c812f3edf046c \
|
|
462
|
+
--hash=sha256:ccea05b5542f6d283fef3f0a8e93a7f0be90af0ddeeef84c25c0216ba76dcae1 \
|
|
463
|
+
--hash=sha256:cd5a9f9f86a52c24713679aa2631956835f3842512964ff93f736ff76f1f530d \
|
|
464
|
+
--hash=sha256:d0238cd05dec9ffbe0de1071df685ba63e30a36ac155285b1a094e727c38cbe9 \
|
|
465
|
+
--hash=sha256:d1c1e8989a855b7f1f2a64ec4a80b23a631822903952770813857b2e4f460471 \
|
|
466
|
+
--hash=sha256:d2f9c4f85e47a44d26d5baf3b041eef23436e224d44eed273f01bd8a12048d9f \
|
|
467
|
+
--hash=sha256:d31864ba3933a589b6a00249f89c0eb422197f49128fc10da550e57e9cb0f377 \
|
|
468
|
+
--hash=sha256:d8ef3a66e4b52d2d7fdd90df2984670124b2ff7546d76bb25dcf68ef47f7df58 \
|
|
469
|
+
--hash=sha256:db84203b13aecc222f465061397fdd5b53b7ae73d2c95ffc1c8dc5be0153a709 \
|
|
470
|
+
--hash=sha256:db9fb67a3a2e75247bae569d34ebb5ff61c0448a4f0d6dbf991dae68af39b007 \
|
|
471
|
+
--hash=sha256:e0bd394e999949c814f7912284243298de1b5a17b6a3dcb6cc8a79b156ffc4fa \
|
|
472
|
+
--hash=sha256:e15f70588f4db8cd10df0930145b186de70feb9db51710cd378b1399009655bd \
|
|
473
|
+
--hash=sha256:e54394b7dbe2e12ab032d9d21feef7bb61a90a150a2623633ba3781ba69dcb1f \
|
|
474
|
+
--hash=sha256:eaf7e82249837e3aa97297b34a0bb9ff562027381631e057cea6e1367f10b438 \
|
|
475
|
+
--hash=sha256:ec0030361cc861ac699b2ef1c695b741fa145c88f8667fa3d7e3f73deeb648a3 \
|
|
476
|
+
--hash=sha256:ec90a9ae3e1169fa1171147340f0e97d941aa19fcd3b34e8339a55933ed042af \
|
|
477
|
+
--hash=sha256:ed899d73a22f286a72bd9528d63f2ab3030dbad8bf1527fc249319a50d61fb9d \
|
|
478
|
+
--hash=sha256:ede33b2892ceb976283e009ad12fa1834cfdf1f9c43ee9c97849fc588d00a618 \
|
|
479
|
+
--hash=sha256:f24a43b3560e20f825b807fe1e874bd73d53abaf8bbdcf258a6eb152cddbc1f5 \
|
|
480
|
+
--hash=sha256:f3d7b3d0018746b5997dd6b14a1870b07cc4c327d9101145d94a1fc264a51a06 \
|
|
481
|
+
--hash=sha256:f41ca154b7737b11893cdce3c78c61d703398a1cd54d4297bdad908392338a8e \
|
|
482
|
+
--hash=sha256:f42f146752eedb6765f07dcc04d72dab0a25779ec8d4a88c0085263ce114f22c \
|
|
483
|
+
--hash=sha256:f56fba61b2516be7917cb00151f0d060b5b21184e3499bb57f0f7d9259bea124 \
|
|
484
|
+
--hash=sha256:f9ddd28d3e9bbc602a9dced1591882c7fb9ab776eef8837da2c326fde19e2853 \
|
|
485
|
+
--hash=sha256:fafc3b8898b432b841d30a61082c599fa7f4d06885f9dc58ad72259e12059fa6 \
|
|
486
|
+
--hash=sha256:fcc6800daac4922960f6eeb7a0dda3dd4105e0bf7bce0e83ebc465a78cb7bdba
|
|
484
487
|
# via librosa
|
|
485
488
|
narwhals==2.26.0 ; python_full_version >= '3.11' \
|
|
486
489
|
--hash=sha256:29326d74f107c347fd1009bd58e38d9f7c7c5b51e6de97bc93dbc325d9038b54 \
|
|
@@ -466,16 +466,16 @@
|
|
|
466
466
|
}
|
|
467
467
|
},
|
|
468
468
|
"node_modules/@hono/node-server": {
|
|
469
|
-
"version": "2.1.
|
|
470
|
-
"resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-2.1.
|
|
471
|
-
"integrity": "sha512-
|
|
469
|
+
"version": "2.1.5",
|
|
470
|
+
"resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-2.1.5.tgz",
|
|
471
|
+
"integrity": "sha512-MgP/I06GdvsilDspMk/qmRzpk8LOUStP6jFAbSRi40W09DhoyUn+Mj7eyKICPqeYKybOjVFLVIAQzvu1bfIa7Q==",
|
|
472
472
|
"dev": true,
|
|
473
473
|
"license": "MIT",
|
|
474
474
|
"engines": {
|
|
475
475
|
"node": ">=20"
|
|
476
476
|
},
|
|
477
477
|
"peerDependencies": {
|
|
478
|
-
"hono": "^4"
|
|
478
|
+
"hono": "^4 || ^5.0.0-0"
|
|
479
479
|
}
|
|
480
480
|
},
|
|
481
481
|
"node_modules/@img/colour": {
|
package/marketplace/plugins/litcodex/skills/readme-studio/templates/remotion-cover/package-lock.json
CHANGED
|
@@ -3771,9 +3771,9 @@
|
|
|
3771
3771
|
"license": "ISC"
|
|
3772
3772
|
},
|
|
3773
3773
|
"node_modules/zod": {
|
|
3774
|
-
"version": "4.
|
|
3775
|
-
"resolved": "https://registry.npmjs.org/zod/-/zod-4.
|
|
3776
|
-
"integrity": "sha512-
|
|
3774
|
+
"version": "4.6.6",
|
|
3775
|
+
"resolved": "https://registry.npmjs.org/zod/-/zod-4.6.6.tgz",
|
|
3776
|
+
"integrity": "sha512-4UmzQUF5fxvfcYHlbjBmejU+w+hbDnWFx4aS8kBx7nPBHcO2SqPbpAG8snbdg+Xse4pRefR98hgjFgIMCI/UhA==",
|
|
3777
3777
|
"license": "MIT",
|
|
3778
3778
|
"funding": {
|
|
3779
3779
|
"url": "https://github.com/sponsors/colinhacks"
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface HerdrAgent {
|
|
2
|
+
readonly agent: string;
|
|
3
|
+
readonly status: string;
|
|
4
|
+
readonly pane: string | null;
|
|
5
|
+
readonly workspace: string | null;
|
|
6
|
+
readonly cwd: string | null;
|
|
7
|
+
readonly foregroundCwd: string | null;
|
|
8
|
+
readonly session: string | null;
|
|
9
|
+
}
|
|
10
|
+
export interface HerdrAgents {
|
|
11
|
+
readonly state: "off" | "ok" | "unknown";
|
|
12
|
+
readonly agents: readonly HerdrAgent[];
|
|
13
|
+
}
|
|
14
|
+
/** Runs `herdr agent list` and returns its stdout, or null when it fails. Injectable for tests. */
|
|
15
|
+
export type HerdrRunner = () => string | null;
|
|
16
|
+
export declare const runHerdr: HerdrRunner;
|
|
17
|
+
/** The agents herdr reports; `off` unless `HERDR_ENV=1`, `unknown` when the list cannot be read. */
|
|
18
|
+
export declare function readHerdrAgents(env: NodeJS.ProcessEnv, run?: HerdrRunner): HerdrAgents;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
// src/herdr-agents.ts — the agents a herdr session reports, read only when `HERDR_ENV=1`.
|
|
2
|
+
//
|
|
3
|
+
// `herdr agent list` prints one JSON document, `{"result":{"agents":[…]}}`. The brief reads it to count the
|
|
4
|
+
// lanes still at work beside this session. The call is bounded by a short timeout; a missing binary, a slow
|
|
5
|
+
// answer or a document that does not parse makes the source `unknown`, never a guess. Outside herdr the source
|
|
6
|
+
// is `off` and nothing runs.
|
|
7
|
+
import { execFileSync } from "node:child_process";
|
|
8
|
+
import { clean } from "./control-chars.js";
|
|
9
|
+
const HERDR_TIMEOUT_MS = 2000;
|
|
10
|
+
const MAX_AGENTS = 64;
|
|
11
|
+
const PANE = /^[A-Za-z0-9:_-]{1,32}$/u;
|
|
12
|
+
export const runHerdr = () => {
|
|
13
|
+
try {
|
|
14
|
+
return execFileSync("herdr", ["agent", "list"], {
|
|
15
|
+
encoding: "utf8",
|
|
16
|
+
timeout: HERDR_TIMEOUT_MS,
|
|
17
|
+
stdio: ["ignore", "pipe", "ignore"],
|
|
18
|
+
maxBuffer: 1_000_000,
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
catch {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
function isRecord(value) {
|
|
26
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
27
|
+
}
|
|
28
|
+
const text = (value) => typeof value === "string" && value.length > 0 && value.length <= 4096 ? clean(value) : null;
|
|
29
|
+
/** The agents herdr reports; `off` unless `HERDR_ENV=1`, `unknown` when the list cannot be read. */
|
|
30
|
+
export function readHerdrAgents(env, run = runHerdr) {
|
|
31
|
+
if (env["HERDR_ENV"] !== "1")
|
|
32
|
+
return { state: "off", agents: [] };
|
|
33
|
+
const out = run();
|
|
34
|
+
if (out === null)
|
|
35
|
+
return { state: "unknown", agents: [] };
|
|
36
|
+
let parsed;
|
|
37
|
+
try {
|
|
38
|
+
parsed = JSON.parse(out);
|
|
39
|
+
}
|
|
40
|
+
catch {
|
|
41
|
+
return { state: "unknown", agents: [] };
|
|
42
|
+
}
|
|
43
|
+
const list = isRecord(parsed) && isRecord(parsed["result"]) ? parsed["result"]["agents"] : undefined;
|
|
44
|
+
if (!Array.isArray(list))
|
|
45
|
+
return { state: "unknown", agents: [] };
|
|
46
|
+
const agents = list
|
|
47
|
+
.filter(isRecord)
|
|
48
|
+
.slice(0, MAX_AGENTS)
|
|
49
|
+
.map((entry) => {
|
|
50
|
+
const pane = text(entry["pane_id"]);
|
|
51
|
+
const session = isRecord(entry["agent_session"]) ? text(entry["agent_session"]["value"]) : null;
|
|
52
|
+
return {
|
|
53
|
+
agent: text(entry["agent"]) ?? "agent",
|
|
54
|
+
status: text(entry["agent_status"]) ?? "unknown",
|
|
55
|
+
pane: pane !== null && PANE.test(pane) ? pane : null,
|
|
56
|
+
workspace: text(entry["workspace_id"]),
|
|
57
|
+
cwd: text(entry["cwd"]),
|
|
58
|
+
foregroundCwd: text(entry["foreground_cwd"]),
|
|
59
|
+
session,
|
|
60
|
+
};
|
|
61
|
+
});
|
|
62
|
+
return { state: "ok", agents };
|
|
63
|
+
}
|
|
@@ -18,7 +18,14 @@ const MAX_NOTE_BYTES = 8 * 1024;
|
|
|
18
18
|
export function isGoPrompt(prompt) {
|
|
19
19
|
return GO_PROMPT.test(prompt);
|
|
20
20
|
}
|
|
21
|
-
const KINDS = [
|
|
21
|
+
const KINDS = [
|
|
22
|
+
"resume-frame",
|
|
23
|
+
"approve-boundary",
|
|
24
|
+
"continue-work",
|
|
25
|
+
"start-plan",
|
|
26
|
+
"other-session",
|
|
27
|
+
"wait-lanes",
|
|
28
|
+
];
|
|
22
29
|
function readNote(cwd, sessionId) {
|
|
23
30
|
const id = normalizeSessionId(sessionId);
|
|
24
31
|
if (id === null || !isAbsolute(cwd) || !plainDirsOrMissing(cwd, ADHD_DIR))
|
|
@@ -47,12 +54,15 @@ function readNote(cwd, sessionId) {
|
|
|
47
54
|
kind: kind,
|
|
48
55
|
at,
|
|
49
56
|
plan: typeof fields["plan"] === "string" ? fields["plan"] : null,
|
|
57
|
+
work: typeof fields["work"] === "string" ? fields["work"] : null,
|
|
50
58
|
text: typeof fields["text"] === "string" ? clean(fields["text"]) : "",
|
|
51
59
|
};
|
|
52
60
|
}
|
|
53
61
|
const EXPIRED = "The user said `go`, but the briefed next step is older than 30 minutes, so nothing was started. Tell the user that in one sentence and offer `lit adhd` for a fresh brief; start no other work.";
|
|
54
62
|
const STALE = "The user said `go`, but the briefed next step no longer holds, so nothing was started. Tell the user that in one sentence and offer `lit adhd` for a fresh brief; start no other work.";
|
|
55
63
|
const BOUNDARY = "The user said `go`, but the briefed step is a start-work boundary waiting for an answer. `go` never approves it: tell the user in one sentence to answer `lit approve` or `lit deny` themselves; start nothing.";
|
|
64
|
+
const LANES = "The user said `go`, but the brief offered no step for `go`: other lanes in this repository were still working, so nothing was started. Tell the user that in one sentence: wait for those lanes (or answer the one that waits on them), then ask for a fresh `lit adhd`; start no other work.";
|
|
65
|
+
const ELSEWHERE = "The user said `go`, but the briefed run belongs to another session, so nothing was started. Tell the user in one sentence to continue it in that session; start no other work.";
|
|
56
66
|
/**
|
|
57
67
|
* What a go-word prompt means in this session. Null when the session has no note (the prompt is then an
|
|
58
68
|
* ordinary one); a hint when a note existed but cannot run; otherwise the prompt to route in its place.
|
|
@@ -65,6 +75,10 @@ export function takeGo(cwd, sessionId, now) {
|
|
|
65
75
|
return { kind: "hint", text: EXPIRED };
|
|
66
76
|
if (note.kind === "approve-boundary")
|
|
67
77
|
return { kind: "hint", text: BOUNDARY };
|
|
78
|
+
if (note.kind === "wait-lanes")
|
|
79
|
+
return { kind: "hint", text: LANES };
|
|
80
|
+
if (note.kind === "other-session")
|
|
81
|
+
return { kind: "hint", text: ELSEWHERE };
|
|
68
82
|
const fresh = chooseNext(cwd, sessionId);
|
|
69
83
|
// A note naming its plan (a saved lit-plan, or a brief) holds while that plan is open and nothing outranks it,
|
|
70
84
|
// even when a second open plan means the brief alone would name none.
|
|
@@ -76,7 +90,10 @@ export function takeGo(cwd, sessionId, now) {
|
|
|
76
90
|
note: `go: start work on ${named.name}, ${named.done} of ${named.total} tasks done`,
|
|
77
91
|
};
|
|
78
92
|
}
|
|
79
|
-
|
|
93
|
+
// The run the note named must still be the active one, still owned by this session.
|
|
94
|
+
if (fresh.kind !== note.kind ||
|
|
95
|
+
(note.kind === "start-plan" && fresh.plan !== note.plan) ||
|
|
96
|
+
(note.kind === "continue-work" && note.work !== null && fresh.work !== note.work)) {
|
|
80
97
|
return { kind: "hint", text: STALE };
|
|
81
98
|
}
|
|
82
99
|
if (note.kind === "start-plan" && fresh.plan !== undefined) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type HerdrRunner } from "./herdr-agents.js";
|
|
1
2
|
export declare const ADHD_DIR = ".litcodex/adhd";
|
|
2
3
|
/** A session written to in the last quarter hour is still running. */
|
|
3
4
|
export declare const ACTIVE_MS: number;
|
|
@@ -6,8 +7,11 @@ export declare const GO_WINDOW_MS: number;
|
|
|
6
7
|
export declare const DEFAULT_SINCE_MS: number;
|
|
7
8
|
export declare const DEFAULT_MAX = 12;
|
|
8
9
|
export type SessionStatus = "waiting-on-user" | "active" | "idle" | "done" | "ended" | "unknown";
|
|
9
|
-
/**
|
|
10
|
-
|
|
10
|
+
/**
|
|
11
|
+
* `handoff` is shown, never run: a `go` over it starts nothing. `other-session` is a start-work run another
|
|
12
|
+
* session owns, and `wait-lanes` holds a step back while other lanes of this repo still work; `go` runs neither.
|
|
13
|
+
*/
|
|
14
|
+
export type NextKind = "resume-frame" | "approve-boundary" | "continue-work" | "start-plan" | "handoff" | "other-session" | "wait-lanes" | "none";
|
|
11
15
|
export interface NextStep {
|
|
12
16
|
readonly kind: NextKind;
|
|
13
17
|
readonly text: string;
|
|
@@ -16,6 +20,18 @@ export interface NextStep {
|
|
|
16
20
|
readonly n?: number;
|
|
17
21
|
readonly total?: number;
|
|
18
22
|
readonly plan?: string;
|
|
23
|
+
/** The start-work run a `continue-work` step continues, so `go` can check it is still this one. */
|
|
24
|
+
readonly work?: string;
|
|
25
|
+
/** How many lanes a `wait-lanes` step waits for. */
|
|
26
|
+
readonly lanes?: number;
|
|
27
|
+
}
|
|
28
|
+
/** Other live sessions of this repo and, under herdr, its working or blocked agents, each counted once. */
|
|
29
|
+
export interface RewindLanes {
|
|
30
|
+
readonly count: number;
|
|
31
|
+
/** Lanes that wait on the user: a session asking something, or a blocked agent. */
|
|
32
|
+
readonly waiting: number;
|
|
33
|
+
readonly labels: readonly string[];
|
|
34
|
+
readonly herdr: "off" | "ok" | "unknown";
|
|
19
35
|
}
|
|
20
36
|
export interface RewindSession {
|
|
21
37
|
readonly id: string;
|
|
@@ -87,6 +103,7 @@ export interface RewindResult {
|
|
|
87
103
|
readonly sessions: readonly RewindSession[];
|
|
88
104
|
readonly worktrees: readonly RewindWorktree[];
|
|
89
105
|
readonly next: NextStep;
|
|
106
|
+
readonly lanes: RewindLanes;
|
|
90
107
|
/**
|
|
91
108
|
* A step to recommend when `next.kind` is `none`, chosen from the records: a session that waits on the user, a
|
|
92
109
|
* paused workflow, an open plan item, the latest active session, the latest ended one. Shown, never recorded.
|
|
@@ -125,6 +142,8 @@ export interface RewindOptions {
|
|
|
125
142
|
readonly codexHome?: string | null;
|
|
126
143
|
/** Overrides the whole-run read allowance in bytes (a test seam). */
|
|
127
144
|
readonly budgetBytes?: number;
|
|
145
|
+
/** Overrides the `herdr agent list` call (a test seam); it runs only under `HERDR_ENV=1`. */
|
|
146
|
+
readonly herdr?: HerdrRunner;
|
|
128
147
|
}
|
|
129
148
|
/** `7d`, `36h`, `90m` as milliseconds; null for anything else. */
|
|
130
149
|
export declare function parseSince(text: string): number | null;
|