Documentation
¶
Overview ¶
Package scaffold writes Holon apps: an MCP server and the view it serves, in Go, Python or TypeScript, into a new directory or beside an existing project in that language.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Languages are the languages an app can be written in, by their --lang names.
Functions ¶
Types ¶
type Project ¶
Project is an app in Dir, whose MCP server is named Name.
func (Project) Check ¶
Check reports why the app cannot be written: in an existing project, a file the app adds that is already there, another server entry, or a project Holon would not run the server of.
func (Project) PythonRequirements ¶
PythonRequirements are the Python requirements the app needs: dependencies, which a project declares directly, and development ones, which it only needs installed.
func (Project) Write ¶
Write writes the app after Check accepts it, and returns the files it created and those it changed. An existing project keeps its manifest, tsconfig.json and scripts, gains the npm packages the app needs in its package.json and the app's lines in its .gitignore; notes say what the project may still need.
type Versions ¶
type Versions struct {
HolonSH string // holon-sh on npm, for a TypeScript server
HolonUI string // holon-ui on npm, for the view
HolonPy string // holon-sh on PyPI, for a Python server
}
Versions are the Holon SDK versions an app pins.