@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.
- package/README.md +7 -7
- package/README_Ko-KR.md +7 -7
- package/assets/lithermes-plugin/README.md +0 -12
- package/assets/lithermes-plugin/adhd_stack.py +43 -1
- package/assets/lithermes-plugin/auto_handoff.py +13 -2
- package/assets/lithermes-plugin/bounded_work.py +33 -3
- package/assets/lithermes-plugin/core.py +59 -18
- package/assets/lithermes-plugin/core_review.py +2 -2
- package/assets/lithermes-plugin/lit_mark.py +2 -7
- package/assets/lithermes-plugin/payload-version.json +49 -53
- package/assets/lithermes-plugin/plugin.yaml +1 -1
- package/assets/lithermes-plugin/rules/bundled-rules/baseline-discipline.md +7 -13
- package/assets/lithermes-plugin/rules/globmatch.py +1 -1
- package/assets/lithermes-plugin/skills/debugging/SKILL.md +1 -1
- package/assets/lithermes-plugin/skills/debugging/references/methodology/00-setup.md +1 -1
- package/assets/lithermes-plugin/skills/debugging/references/methodology/02-investigate.md +2 -2
- package/assets/lithermes-plugin/skills/debugging/references/methodology/09-cleanup.md +1 -1
- package/assets/lithermes-plugin/skills/debugging/references/runtimes/native-binary.md +1 -1
- package/assets/lithermes-plugin/skills/debugging/references/runtimes/rust.md +4 -4
- package/assets/lithermes-plugin/skills/debugging/references/tools/ghidra.md +1 -1
- package/assets/lithermes-plugin/skills/frontend-ui-ux/references/_canonical-corpus/corpus/ui-ux-db/data/stacks/nuxtjs.csv +1 -1
- package/assets/lithermes-plugin/skills/frontend-ui-ux/references/_canonical-corpus/manifest.json +2 -2
- package/assets/lithermes-plugin/skills/frontend-ui-ux/references/complete-contract.md +2 -2
- package/assets/lithermes-plugin/skills/lit-adhd/SKILL.md +10 -10
- package/assets/lithermes-plugin/skills/lit-adhd/references/brief-contract.md +12 -7
- package/assets/lithermes-plugin/skills/lit-adhd/scripts/lib/collect.mjs +81 -27
- package/assets/lithermes-plugin/skills/lit-adhd/scripts/lib/next-step.mjs +34 -6
- package/assets/lithermes-plugin/skills/lit-burnoff/SKILL.md +1 -1
- package/assets/lithermes-plugin/skills/lit-code/SKILL.md +4 -4
- package/assets/lithermes-plugin/skills/lit-code/references/rust/README.md +2 -2
- package/assets/lithermes-plugin/skills/lit-code/references/rust/async-tokio.md +4 -4
- package/assets/lithermes-plugin/skills/lit-code/references/rust/axum-stack.md +1 -1
- package/assets/lithermes-plugin/skills/lit-code/references/rust/clap-stack.md +1 -1
- package/assets/lithermes-plugin/skills/lit-code/references/rust/libraries.md +3 -3
- package/assets/lithermes-plugin/skills/lit-code/references/rust/proptest-insta.md +10 -10
- package/assets/lithermes-plugin/skills/lit-code/references/rust/zero-cost-safety.md +1 -1
- package/assets/lithermes-plugin/skills/lit-code/references/typescript/README.md +2 -2
- package/assets/lithermes-plugin/skills/lit-code/references/typescript/backend-hono.md +1 -1
- package/assets/lithermes-plugin/skills/lit-code/references/typescript/tsconfig-strict.md +1 -1
- package/assets/lithermes-plugin/skills/lit-code/scripts/typescript/check-no-excuse-rules.ts +2 -2
- package/assets/lithermes-plugin/skills/lit-typographic-motion/SKILL.md +1 -1
- package/assets/lithermes-plugin/skills/lit-typographic-motion/engine/cover.mjs +1 -1
- package/assets/lithermes-plugin/skills/lit-typographic-motion/engine/stage-gate.mjs +1 -0
- package/assets/lithermes-plugin/skills/lit-typographic-motion/engine/stage-kit.js +42 -3
- package/assets/lithermes-plugin/skills/lit-typographic-motion/engine/stage.mjs +133 -4
- package/assets/lithermes-plugin/skills/lit-typographic-motion/references/stage.md +55 -1
- package/assets/lithermes-plugin/skills/readme-studio/templates/remotion/package-lock.json +3 -3
- package/assets/lithermes-plugin/skills/readme-studio/templates/remotion/package.json +2 -1
- package/assets/lithermes-plugin/skills/rules/SKILL.md +1 -1
- package/assets/lithermes-plugin/skills/visual-qa/references/complete-contract.md +2 -2
- package/assets/{lithermes-plugin → npm-channel}/auto_update.py +43 -9
- package/package.json +1 -1
- package/readme-assets/badge-version.svg +1 -1
- package/src/lib/canonicalCorpus.js +1 -1
- package/src/lib/install.js +22 -0
- package/src/lib/skillPayload.js +10 -5
package/src/lib/skillPayload.js
CHANGED
|
@@ -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
|
|
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)
|