create-cogitator-app 0.7.1 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -28,6 +28,8 @@ Anything the flags leave out is asked for at a terminal. With `--yes`, `--json`,
28
28
 
29
29
  After writing the files the scaffolder installs the dependencies, formats the code with the project's Biome, writes `.cogitator/scaffold.json` (hashes of what it generated, for `cogitator add`) and commits everything to a new git repository, unless the project is inside one already. With Ollama it offers to pull a missing model, with a cloud provider it checks the key you pass with `--api-key` (written to `.env`, mode 600, never printed).
30
30
 
31
+ When the stack has compose services and Docker is running, it offers to start them with `docker compose up --wait`, so Postgres, Redis or MongoDB are healthy before the first run. The Ollama container starts too and pulls the model in the background (`docker compose logs -f ollama-pull` follows it), unless an Ollama already answers at `OLLAMA_BASE_URL`: the project uses that one, and a second one could not take its port. With `--yes`, `--json`, without a TTY, in CI or in a dry run nothing is started, and the next steps say `docker compose up -d`.
32
+
31
33
  Requires Node.js 22.12+.
32
34
 
33
35
  ## Presets
@@ -94,6 +96,7 @@ Every project, whatever the stack:
94
96
  - `AGENTS.md` with a managed block of rules for coding agents and `CLAUDE.md` pointing at it, and the Cogitator docs of the installed version in `node_modules/@cogitator-ai/core/docs/`.
95
97
  - Scripts: `dev`, `build`, `start`, `test`, `typecheck`, `lint`, `format`, `doctor` and `dev:studio`.
96
98
  - With `--deploy`, a production Dockerfile from `@cogitator-ai/deploy` (multi-stage, lockfile install, non-root user, only production dependencies) and `fly.toml` for Fly.io.
99
+ - With Yarn 2 or later, a `.yarnrc.yml` with `nodeLinker: node-modules`, since tsx, vitest and Cogitator Studio expect a `node_modules` folder, and the `.gitignore` entries Yarn recommends for `.yarn/`. Yarn 1 never reads the file, so a project pinned to it gets none, while `--example` projects, which pin no version, always get it. `cogitator doctor` and `cogitator deploy` still handle Plug'n'Play if you switch the linker yourself.
97
100
  - With `--agent`, the `cogitator` MCP server and a skill for Claude Code (`.mcp.json`, `.claude/skills`), Cursor (`.cursor/mcp.json`, `.cursor/skills`) or Codex (`.codex/config.toml`, `.agents/skills`).
98
101
 
99
102
  The `@cogitator-ai/*` packages are pinned with a caret to the versions released with the scaffolder, and `package.json` records the spec and the command that recreate the project under `cogitator`.
@@ -143,9 +146,9 @@ const result = await scaffold(spec, { directory: './my-agent', install: true, gi
143
146
  if (result.install.status === 'failed') console.error(result.install.error.message);
144
147
  ```
145
148
 
146
- `planProject(spec)` is pure: it validates the spec, refuses combinations that cannot work (`IncompatibleSpecError` with the issues) and returns the files, dependencies, scripts, environment, services and the command that recreates the project. `scaffold(spec, options)` writes the plan, installs, formats, writes the lock and commits; the `log` option replaces the CLI's spinners, and a failed install, format or git step is reported in the result (`{ status: 'done' | 'skipped' | 'failed' }`) instead of thrown.
149
+ `planProject(spec)` is pure: it validates the spec, refuses combinations that cannot work (`IncompatibleSpecError` with the issues) and returns the files, dependencies, scripts, environment, services (`oneShotServices` names the ones that run a task and exit) and the command that recreates the project. `scaffold(spec, options)` writes the plan, installs, formats, writes the lock and commits, the `log` option replaces the CLI's spinners, and a failed install, format or git step is reported in the result (`{ status: 'done' | 'skipped' | 'failed' }`) instead of thrown.
147
150
 
148
- Also exported: `planAdd` and `addToProject` behind `cogitator add`, `createFromExample` and `createFromTemplate`, the catalogs (`PRESETS`, `FEATURE_CHOICES` and the rest), `compatibilityIssues`, `checkApiKey`, the Ollama helpers and the telemetry functions.
151
+ Also exported: `planAdd` and `addToProject` behind `cogitator add`, `createFromExample` and `createFromTemplate`, the catalogs (`PRESETS`, `FEATURE_CHOICES` and the rest), `compatibilityIssues`, `checkApiKey`, `startServices`, `dockerComposeAvailable`, `servicesToStart` and `offerServices` behind the offer to start the services (`offerServices` asks at the terminal, so check `isInteractive` first), the Ollama helpers and the telemetry functions.
149
152
 
150
153
  ## License
151
154