Skip to content

Feat: init command - #20

Merged
AxiosLeo merged 3 commits into
mainfrom
feat/init-command
Oct 22, 2026
Merged

AxiosLeo merged 3 commits into
mainfrom
feat/init-command

Conversation

@AxiosLeo

@AxiosLeo AxiosLeo commented Oct 22, 2026 •

Copy link
Copy Markdown
Owner

Note

Low Risk
Mostly scaffolding, docs, and default-port constant changes; init behavior is additive with tests, with no auth or runtime API changes to the framework core beyond the port default.

Overview
koapp init now supports three project templates: simple-ts (default), simple-js, and monorepo, chosen interactively or with -t. Scaffolding logic lives in src/cli/scaffold.js, which renders assets/simple/{ts,js}/ or assets/monorepo/, substitutes ${name}, copies assets/skills into .agents/skills/ (with reback disabled), and for monorepo renames bin/monoapp.js to bin/<app-name>.js.

New simple templates ship minimal koapp HTTP services (sample routes, no DB) in TypeScript or CommonJS. Docs and bundled skills drop koapp gen / JSON-schema CRUD generation in favor of hand-written modules following the monorepo layout.

Default listen ports for socket/WebSocket clients, monorepo API_PORT, and examples/docs move from 8081/8082 to 8801. tests/scaffold.tests.js and extended pnpm pin tests cover template output.

Reviewed by Cursor Bugbot for commit c160d2b. Bugbot is set up for automated code reviews on this repo. Configure here.

AxiosLeo and others added 3 commits October 22, 2026 14:29
- Updated CLI command documentation to include new commands for serving static directories and installing AI skills.
- Revised project initialization instructions to reflect the new pnpm monorepo structure and automatic command loading.
- Clarified template usage and directory structure in the development workflow documentation.
- Adjusted README templates to specify the correct API port and improved clarity on project setup steps.
HTTP services already listen on 8801. Socket and WebSocket
runtime defaults, examples, and docs still used 8081.

Co-authored-by: Cursor <cursoragent@cursor.com>
init now asks for simple-ts, simple-js, or monorepo.
The simple templates are a single HTTP service with sample
routes and no database. Pass -t to skip the prompt.

Co-authored-by: Cursor <cursoragent@cursor.com>
@AxiosLeo
AxiosLeo merged commit f0e4587 into main Oct 22, 2026
9 checks passed
@AxiosLeo
AxiosLeo deleted the feat/init-command branch October 22, 2026 06:46
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