@litfamily/lithermes 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.
Files changed (56) hide show
  1. package/README.md +7 -7
  2. package/README_Ko-KR.md +7 -7
  3. package/assets/lithermes-plugin/README.md +0 -12
  4. package/assets/lithermes-plugin/adhd_stack.py +43 -1
  5. package/assets/lithermes-plugin/auto_handoff.py +13 -2
  6. package/assets/lithermes-plugin/bounded_work.py +33 -3
  7. package/assets/lithermes-plugin/core.py +59 -18
  8. package/assets/lithermes-plugin/core_review.py +2 -2
  9. package/assets/lithermes-plugin/lit_mark.py +2 -7
  10. package/assets/lithermes-plugin/payload-version.json +49 -53
  11. package/assets/lithermes-plugin/plugin.yaml +1 -1
  12. package/assets/lithermes-plugin/rules/bundled-rules/baseline-discipline.md +7 -13
  13. package/assets/lithermes-plugin/rules/globmatch.py +1 -1
  14. package/assets/lithermes-plugin/skills/debugging/SKILL.md +1 -1
  15. package/assets/lithermes-plugin/skills/debugging/references/methodology/00-setup.md +1 -1
  16. package/assets/lithermes-plugin/skills/debugging/references/methodology/02-investigate.md +2 -2
  17. package/assets/lithermes-plugin/skills/debugging/references/methodology/09-cleanup.md +1 -1
  18. package/assets/lithermes-plugin/skills/debugging/references/runtimes/native-binary.md +1 -1
  19. package/assets/lithermes-plugin/skills/debugging/references/runtimes/rust.md +4 -4
  20. package/assets/lithermes-plugin/skills/debugging/references/tools/ghidra.md +1 -1
  21. package/assets/lithermes-plugin/skills/frontend-ui-ux/references/_canonical-corpus/corpus/ui-ux-db/data/stacks/nuxtjs.csv +1 -1
  22. package/assets/lithermes-plugin/skills/frontend-ui-ux/references/_canonical-corpus/manifest.json +2 -2
  23. package/assets/lithermes-plugin/skills/frontend-ui-ux/references/complete-contract.md +2 -2
  24. package/assets/lithermes-plugin/skills/lit-adhd/SKILL.md +10 -10
  25. package/assets/lithermes-plugin/skills/lit-adhd/references/brief-contract.md +12 -7
  26. package/assets/lithermes-plugin/skills/lit-adhd/scripts/lib/collect.mjs +81 -27
  27. package/assets/lithermes-plugin/skills/lit-adhd/scripts/lib/next-step.mjs +34 -6
  28. package/assets/lithermes-plugin/skills/lit-burnoff/SKILL.md +1 -1
  29. package/assets/lithermes-plugin/skills/lit-code/SKILL.md +4 -4
  30. package/assets/lithermes-plugin/skills/lit-code/references/rust/README.md +2 -2
  31. package/assets/lithermes-plugin/skills/lit-code/references/rust/async-tokio.md +4 -4
  32. package/assets/lithermes-plugin/skills/lit-code/references/rust/axum-stack.md +1 -1
  33. package/assets/lithermes-plugin/skills/lit-code/references/rust/clap-stack.md +1 -1
  34. package/assets/lithermes-plugin/skills/lit-code/references/rust/libraries.md +3 -3
  35. package/assets/lithermes-plugin/skills/lit-code/references/rust/proptest-insta.md +10 -10
  36. package/assets/lithermes-plugin/skills/lit-code/references/rust/zero-cost-safety.md +1 -1
  37. package/assets/lithermes-plugin/skills/lit-code/references/typescript/README.md +2 -2
  38. package/assets/lithermes-plugin/skills/lit-code/references/typescript/backend-hono.md +1 -1
  39. package/assets/lithermes-plugin/skills/lit-code/references/typescript/tsconfig-strict.md +1 -1
  40. package/assets/lithermes-plugin/skills/lit-code/scripts/typescript/check-no-excuse-rules.ts +2 -2
  41. package/assets/lithermes-plugin/skills/lit-typographic-motion/SKILL.md +1 -1
  42. package/assets/lithermes-plugin/skills/lit-typographic-motion/engine/cover.mjs +1 -1
  43. package/assets/lithermes-plugin/skills/lit-typographic-motion/engine/stage-gate.mjs +1 -0
  44. package/assets/lithermes-plugin/skills/lit-typographic-motion/engine/stage-kit.js +42 -3
  45. package/assets/lithermes-plugin/skills/lit-typographic-motion/engine/stage.mjs +133 -4
  46. package/assets/lithermes-plugin/skills/lit-typographic-motion/references/stage.md +55 -1
  47. package/assets/lithermes-plugin/skills/readme-studio/templates/remotion/package-lock.json +3 -3
  48. package/assets/lithermes-plugin/skills/readme-studio/templates/remotion/package.json +2 -1
  49. package/assets/lithermes-plugin/skills/rules/SKILL.md +1 -1
  50. package/assets/lithermes-plugin/skills/visual-qa/references/complete-contract.md +2 -2
  51. package/assets/{lithermes-plugin → npm-channel}/auto_update.py +43 -9
  52. package/package.json +1 -1
  53. package/readme-assets/badge-version.svg +1 -1
  54. package/src/lib/canonicalCorpus.js +1 -1
  55. package/src/lib/install.js +22 -0
  56. package/src/lib/skillPayload.js +10 -5
@@ -221,7 +221,7 @@ function inspectSkillPayload(pluginPath, manifest, verifySourceHash = false, opt
221
221
  const failure = checkEntry(pluginPath, entryPath, expectedHash);
222
222
  if (failure) failures.push(failure);
223
223
  }
224
- const allowedUnlisted = new Set(["payload-version.json"]);
224
+ const allowedUnlisted = new Set(["payload-version.json", "auto_update.py", ".lithermes-npm-channel"]);
225
225
  const allowedDirectories = new Set();
226
226
  for (const entryPath of inspected.entries.keys()) {
227
227
  const segments = entryPath.split("/");
@@ -237,20 +237,25 @@ function inspectSkillPayload(pluginPath, manifest, verifySourceHash = false, opt
237
237
  const directory = path.posix.dirname(entryPath);
238
238
  hostCacheDirectories.add(directory === "." ? "__pycache__/" : `${directory}/__pycache__/`);
239
239
  }
240
- const isHostBytecode = (entryPath) => {
241
- const source = hostBytecodeSource(entryPath);
242
- if (!source || !inspected.entries.has(source)) return false;
240
+ const isRegularFile = (entryPath) => {
243
241
  try {
244
242
  return fs.lstatSync(path.join(pluginPath, ...entryPath.split("/"))).isFile();
245
243
  } catch {
246
244
  return false;
247
245
  }
248
246
  };
247
+ const isHostBytecode = (entryPath) => {
248
+ const source = hostBytecodeSource(entryPath);
249
+ if (!source || !(inspected.entries.has(source) || source === "auto_update.py")) return false;
250
+ return isRegularFile(entryPath);
251
+ };
252
+ const isNpmChannelFile = (entryPath) =>
253
+ (entryPath === "auto_update.py" || entryPath === ".lithermes-npm-channel") && isRegularFile(entryPath);
249
254
  const traversal = listPayloadEntries(pluginPath, options.readDirectory);
250
255
  for (const entryPath of traversal.entries) {
251
256
  if (
252
257
  inspected.entries.has(entryPath)
253
- || allowedUnlisted.has(entryPath)
258
+ || (allowedUnlisted.has(entryPath) && (entryPath === "payload-version.json" || isNpmChannelFile(entryPath)))
254
259
  || allowedDirectories.has(entryPath)
255
260
  || hostCacheDirectories.has(entryPath)
256
261
  || isHostBytecode(entryPath)