Files
Tianyi ZhouandClaude Opus 5.5 e9f95675dd Share one host table, ship one payload, split optional deps (#208)
* Share one host table, ship one payload, split optional deps

- tools/hosts.json is the single host path table, read by bin/distilly.mjs
  and tools/hosts.py (install_distilly, install_generated_skill,
  install_claude_generated_skill, skill_writer).
- package.json "files" is the single publish list; the npm CLI and the
  Python installer both derive the install payload from it, so the Python
  installer no longer copies docs/, tests/ or .github/ into skill dirs and
  now supports all eight hosts.
- requirements.txt keeps only requests; collector extras move to
  requirements-optional.txt.
- Ruff is pinned with an explicit rule set and blocks CI; fix its findings.
- tests/_paths.py replaces the sys.path boilerplate in 11 test files.
- Rename the cover image to docs/social-preview.png so redesigns stop
  adding versioned files.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014AQdagxHQtDiYDXHNMsRSK

* Keep reinstalling from an installed copy working

An installed copy has no package.json, so install_distilly.py copies it
whole (minus caches) instead of failing to read the publish list.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014AQdagxHQtDiYDXHNMsRSK

* Allow running CI manually

A stacked PR retargeted after its base merges gets no CI run until the
next push; workflow_dispatch lets a maintainer start one.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014AQdagxHQtDiYDXHNMsRSK

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-13 13:37:01 +08:00

21 lines
1.0 KiB
JSON

{
"_comment": "Single source of host install paths, read by bin/distilly.mjs and tools/hosts.py. skills_dir is relative to the home directory. When home_env is set in the environment, it replaces the first segment of skills_dir. generated_skills_dir overrides skills_dir for generated person skills.",
"hosts": {
"claude-code": { "skills_dir": [".claude", "skills"], "aliases": ["claude"] },
"openclaw": { "skills_dir": [".openclaw", "workspace", "skills"] },
"hermes": {
"skills_dir": [".hermes", "skills", "openclaw-imports"],
"generated_skills_dir": [".hermes", "skills", "distilly-generated"]
},
"codex": { "skills_dir": [".agents", "skills"] },
"deepseek-harness": {
"skills_dir": [".dsh", "skills"],
"home_env": "DSH_HOME",
"aliases": ["deepseek"]
},
"pi": { "skills_dir": [".pi", "agent", "skills"] },
"grok-build": { "skills_dir": [".grok", "skills"], "aliases": ["grok"] },
"opencode": { "skills_dir": [".config", "opencode", "skills"] }
}
}