@treeseed/core
v0.6.11
Published
Treeseed integrated platform starter for Astro/Starlight web runtimes and Hono API runtimes.
Readme
@treeseed/core
@treeseed/core is the Treeseed integrated platform starter for Astro/Starlight sites, Hono API runtimes, agent runtimes, and worker services. It contains the published web runtime, API runtime, manager/worker entrypoints, integrated local dev orchestration, shared components and styles, the knowledge-factory content model, and the forms stack used by Treeseed tenants.
This repository is the package root. Run package commands from core, not from the top-level treeseed workspace.
Requirements
- Node
>=22 - npm
>=10
Install
For package contributors:
git submodule update --init --recursive
npm installThis creates package-lock.json, installs dependencies, and runs the package prepare step to build dist/.
For CI or any fresh reproducible checkout:
npm ciPackage Layout
src/: package sourcescripts/: build, release, and verification scriptstest/: unit tests run by Vitest.fixtures/treeseed-fixtures/: pinned shared fixtures submodule.github/workflows/: CI and publish workflows for this package repotemplates/github/deploy.workflow.yml: downstream tenant deploy workflow template
The package builds directly against the canonical shared working-site fixture in treeseed-fixtures.
Shared Fixture Usage
@treeseed/core validates itself against the integrated shared fixture, not a Core-specific fork.
That means the fixture may reference package surfaces owned by sdk, core, and cli, and isolated Core verification links the real local core package into the shared fixture instead of maintaining a separate agent package boundary.
Commands
Core development
npm run dev
npm run dev:web
npm run dev:api
npm run dev:worker
npm run dev:workday-start
npm run dev:workday-report
npm run fixtures:check
npm run build:dist
npm run test:unit
npm run check
npm run build
npm run test:smokeWhat they do:
dev: starts the integrated Astro UI and Hono API local runtime fromcoredev:web: starts only the Astro UI dev surface through thecoreruntimedev:api: starts only the Hono API dev surface through thecoreruntimedev:worker,dev:workday-start,dev:workday-report: start the worker-service entrypoints fromcorefixtures:check: verifies that the pinned shared fixture is initialized and usablebuild:dist: builds the publishabledist/package outputtest:unit: runs package unit tests with Vitestcheck: runsastro checkagainst the internal fixture appbuild: builds the internal fixture app in production-like modetest:smoke: runs the packed-install smoke test
Full verification
npm run verify
npm run verify:local
npm run verify:actionnpm run verify uses the shared Treeseed SDK verify driver in auto mode.
npm run verifyauto-selects between local direct verification and thegh actworkflow pathnpm run verify:localforces local direct verification against the current repo statenpm run verify:actionforces the isolated workflow path throughgh actnpm run verify:directis the raw package verification chain used by the driver
The direct verification chain is:
npm run build:distnpm run test:unitnpm run checknpm run buildnpm run test:smoke
If this command passes, the package is in the same state expected by CI and the publish workflow.
Release commands
npm run release:check-tag -- 0.0.1
npm run release:publishrelease:check-tagvalidates that a git tag matches the version inpackage.jsonrelease:publishpublishes the package to npm
GitHub Actions
This repo ships two package workflows:
ci.yml: runs on push and pull request, installs withnpm ci, then runsnpm run verifypublish.yml: runs onworkflow_dispatchand on plain semver tags like0.1.0; it installs withnpm ci, validates the tag withrelease:check-tag, runsnpm run verify, and publishes withNPM_TOKEN
The deploy workflow template at templates/github/deploy.workflow.yml is for downstream Treeseed site repositories, not for publishing this package.
Consumer Contract
The package publishes built artifacts from dist/ and exposes runtime entrypoints through package.json exports.
The published package includes:
dist/tsconfigs/templates/style/utils/README.md
The package currently depends on @treeseed/sdk plus the runtime packages needed for its web, API, and worker surfaces. It does not depend on @treeseed/cli.
Contributor Workflow
Typical local workflow:
npm install
npm run verifyIf you only need one stage:
npm run test:unit
npm run check
npm run buildWhen changing exported package code, rerun npm run build:dist and then npm run verify.
Publishing
Release flow for this repo:
- Update the package version in
package.json. - Run
npm run verify. - Create a matching tag:
<version>such as0.1.0. - Push the tag or run the publish workflow manually.
The publish workflow expects the npm auth token in NPM_TOKEN.
