Skip to content

fix(release): ship built-in skills in the hypha-skills package - #22

Merged
erwinmsmith merged 2 commits into
mainfrom
fix/release-ship-builtin-skills
Aug 14, 2026
Merged

fix(release): ship built-in skills in the hypha-skills package#22
erwinmsmith merged 2 commits into
mainfrom
fix/release-ship-builtin-skills

Conversation

@erwinmsmith

Copy link
Copy Markdown
Contributor

Problem

The framework built-in skills (context-enrichment, intent-classification) live only under apps/server/src/core/skills/builtins. The published @codesoul-co/hypha-* release line does not include the Server, so npm consumers (e.g. agents that compile a DomainPack referencing the built-ins) cannot load them without a source checkout.

Change

  • Move the canonical builtin files into packages/skills/builtins/.
  • Include builtins/ in the @codesoul-co/hypha-skills tarball (files: ["dist", "builtins"]).
  • Export resolveBuiltinSkillsDirectory() from @codesoul-co/hypha-skills so consumers and the Server share one source of truth.
  • SkillManager resolves its default builtin directory from the package instead of process.cwd().
  • Add packages/skills/src/builtin-skills.test.ts proving both built-ins load from the packaged directory.
  • Document the shipped data in docs/guides/releases.md.

Verification

  • npm run build:packages
  • npx vitest run packages/skills/src/builtin-skills.test.ts packages/skills/src/skills.test.ts (14 tests) ✅
  • npx tsc -p apps/server/tsconfig.json --noEmit
  • npm run release:check:npm ✅ (15 publishable packages at 1.0.0)

The framework built-in skills (context-enrichment, intent-classification)
live only under apps/server/src/core/skills/builtins, which is not part of
any published npm package. Consumers of the @codesoul-co/hypha-* release
line therefore cannot load the built-ins without a Server source checkout.

Move the canonical files into packages/skills/builtins, include the
directory in the published tarball, and export
resolveBuiltinSkillsDirectory() so consumers and the Server share one
source of truth. The Server's SkillManager now resolves its default
builtin directory from the package instead of process.cwd().

Adds a package-level test proving both built-ins load from the packaged
directory.
@erwinmsmith
erwinmsmith merged commit b39aa7c into main Aug 14, 2026
4 checks passed
@erwinmsmith
erwinmsmith deleted the fix/release-ship-builtin-skills branch August 14, 2026 04:20
erwinmsmith added a commit that referenced this pull request Aug 14, 2026
The published 1.0.0 line predates two fixes now on main:

- #22 ships the framework built-in skills inside @codesoul-co/hypha-skills
  (tarball data + resolveBuiltinSkillsDirectory export);
- #23 resolves the npm audit findings that fail the Repository gates job.

The patch release moves the whole release line to 1.0.1 with exact-version
internal dependencies.
erwinmsmith added a commit to erwinmsmith/THETA-Agent that referenced this pull request Aug 14, 2026
Hypha is no longer a local third_party checkout. THETA-Agent now depends
on the published @codesoul-co/hypha-* npm release line (1.0.1) exactly as
Hypha's official release guidance prescribes; THETA remains the single
third_party upstream checkout.

- manifests: replace all file:third_party/Hypha dependencies with
  @codesoul-co/hypha-*@1.0.1 and drop the hypha:install/hypha:build steps
- imports: rename every @hypha/* import across agent, tools, domain to the
  published package names
- skills: load Hypha built-in skills from the shipped
  resolveBuiltinSkillsDirectory() data of @codesoul-co/hypha-skills instead
  of a source checkout
- doctor: replace hypha.lock/hypha.build checks with hypha.packages, which
  verifies the installed release line, package entries, and shipped built-ins
- upstreams: config/upstreams.lock.json now pins only THETA
- tooling: allow better-sqlite3 postinstall for pnpm; update repository
  validation, README, architecture and CLI docs accordingly

Hypha-side fixes released upstream and consumed here:
- CodeSoul-co/Hypha#22 ships built-in skills in the hypha-skills tarball
- CodeSoul-co/Hypha#23 resolves the npm audit failures
- CodeSoul-co/Hypha#24 prepares and publishes @codesoul-co/hypha-* 1.0.1
- CodeSoul-co/Hypha#25 makes the official consumer example compile from
  the registry

Verified: build, test:registries, test:providers, test:docs, test:python,
validate, doctor, governed demo, REPL, and the HTTP API all pass without a
Hypha checkout.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant