@cosmicdrift/kumiko-framework 0.8.0 → 0.9.0

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/package.json +4 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # @cosmicdrift/kumiko-framework
2
2
 
3
+ ## 0.9.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 51e22f5: Add deploy-template scaffolding (Sprint 9.6).
8
+
9
+ **New API:**
10
+
11
+ - `scaffoldDeploy({ appName, port?, githubOrg?, destination?, force? })` exported from `@cosmicdrift/kumiko-dev-server`. Generates `deploy/Dockerfile`, `deploy/Dockerfile.dockerignore`, and `deploy/migrate-step.sh` from canonical templates shipped with the package. Substitutes `{{appName}}`, `{{port}}`, `{{githubOrg}}` placeholders.
12
+ - New CLI command: `kumiko init-deploy --app <name> [--port <n>] [--github-org <org>] [--out <dir>] [--force]`.
13
+
14
+ The templates are extracted from publicstatus's production-tested `deploy/Dockerfile` (node-alpine build stage → bun-alpine runtime, drizzle migrations baked in, healthcheck wired). Refuses to overwrite existing files unless `--force` is passed so a tuned per-app Dockerfile isn't clobbered.
15
+
16
+ **Templates are a starting point, not a contract.** Apps should review and adjust:
17
+
18
+ - **Image tag** is hardcoded `:latest` in `migrate-step.sh.template`. Swap to `:${BUILD_SHA}` for atomic deploys.
19
+ - **DB defaults** in `migrate-step.sh.template` assume `db user = db name = appName`, host `db`, port `5432`. Adjust to your stack.
20
+ - **`COPY /app/seeds`** assumes the app uses ES-Operations seed migrations. Comment out if your app has no `seeds/` directory (otherwise `docker build` fails).
21
+ - **`docker build`-smoke-test:** the templates run untested against a non-publicstatus app-tree. Verify locally before pushing to CI.
22
+
23
+ **Deferred to Sprint 9.7+:** `.github/workflows/build-image.yml.suggested`, `pulumi/secrets-bootstrap.sh`, `pulumi/extraEnv.snippet.ts`.
24
+
25
+ **Plan-Doc drift (for 9.9 update):** Plan-Doc-Tabelle nennt `start.sh` (in-container migrate-then-run); diese Implementation liefert `migrate-step.sh` (host-side deploy-pipeline). Beide Konzepte sind gültig — Plan-Doc-Update sollte das klarstellen.
26
+
27
+ ## 0.8.1
28
+
29
+ ### Patch Changes
30
+
31
+ - 4b5f91e: Expose `./package.json` via subpath export so downstream tooling (publish/materialize, app-templates) can derive the installed framework version at runtime without manual version-pin drift.
32
+
3
33
  ## 0.8.0
4
34
 
5
35
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmicdrift/kumiko-framework",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "Framework core — engine, pipeline, API, DB, and every other bit that makes Kumiko go.",
5
5
  "license": "BUSL-1.1",
6
6
  "author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
@@ -151,7 +151,8 @@
151
151
  "./utils": {
152
152
  "types": "./src/utils/index.ts",
153
153
  "default": "./src/utils/index.ts"
154
- }
154
+ },
155
+ "./package.json": "./package.json"
155
156
  },
156
157
  "dependencies": {
157
158
  "bullmq": "^5.76.7",
@@ -171,7 +172,7 @@
171
172
  "zod": "^4.4.3"
172
173
  },
173
174
  "devDependencies": {
174
- "@cosmicdrift/kumiko-dispatcher-live": "0.8.0",
175
+ "@cosmicdrift/kumiko-dispatcher-live": "0.9.0",
175
176
  "@types/uuid": "^11.0.0",
176
177
  "bun-types": "^1.3.13",
177
178
  "drizzle-kit": "^0.31.10",