creek 0.4.16 → 0.4.18

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "creek",
3
- "version": "0.4.16",
3
+ "version": "0.4.18",
4
4
  "description": "The Creek deployment platform — CLI and runtime",
5
5
  "type": "module",
6
6
  "bin": {
@@ -51,7 +51,7 @@
51
51
  "directory": "packages/creek"
52
52
  },
53
53
  "dependencies": {
54
- "@solcreek/cli": "^0.4.16",
54
+ "@solcreek/cli": "^0.4.18",
55
55
  "@solcreek/runtime": "^0.4.0"
56
56
  },
57
57
  "scripts": {}
package/skills/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Agent Skills for Creek
2
2
 
3
3
  [Agent Skills](https://agentskills.io/) for [Creek](https://creek.dev) —
4
- the deployment platform that reduces Cloudflare's 200+ API primitives
5
- to a single command.
4
+ the deployment platform that ships full-stack apps to the edge with a
5
+ single command and a single semantic resource model.
6
6
 
7
7
  ## Install
8
8
 
@@ -50,9 +50,8 @@ guidance. They drive:
50
50
  Claude Code / Cursor / Codex / OpenCode.
51
51
  2. **MCP resources** — `mcp.creek.dev` exposes each reference file
52
52
  as `creek://skill/<name>` via `resources/list` + `resources/read`.
53
- Bundled into the MCP worker at deploy time via wrangler's Text
54
- module loader. Serves claude.ai users + API agents that can't
55
- load filesystem skills.
53
+ Bundled into the MCP worker at deploy time. Serves claude.ai users
54
+ + API agents that can't load filesystem skills.
56
55
 
57
56
  Edit the `.md` file once — both surfaces update on next deploy.
58
57
 
@@ -1,27 +1,25 @@
1
1
  ---
2
2
  name: creek
3
3
  description: |
4
- Deploy and manage apps on Creek the Cloudflare Workers deployment
5
- platform. Ship, diagnose failed deploys, read runtime + build logs,
6
- manage team-owned databases (creek db), handle custom domains, cron,
7
- queues, GitHub push deploys, and local dev. Skill also corrects the
8
- CF-native reflexes that look right but break on Creek (do NOT swap
9
- better-sqlite3 D1 manually, do NOT hand-edit wrangler.toml, do NOT
10
- maintain separate sandbox/prod code paths).
4
+ Deploy and manage full-stack apps to the edge with Creek one
5
+ command from local code to a live URL. Ship, diagnose failed deploys,
6
+ read runtime + build logs, manage team-owned databases (creek db),
7
+ handle custom domains, cron, queues, GitHub push deploys, and local
8
+ dev. Skill covers Creek's conventions (semantic resource keys,
9
+ shared schema + split boot pattern, unified sandbox/production code
10
+ path) plus CK-error code fix hints.
11
11
  when_to_use: |
12
12
  Use when the user mentions creek, creek.dev, creek.toml, creek deploy,
13
- creek db, creek logs, creek doctor, `npx creek`, deploying to
14
- Cloudflare, or asks about Workers for Platforms tenancy. Also use
15
- when a user says "my deploy failed" / "deploy to creek didn't work"
16
- / "add a database to my creek project" / "why isn't my push
17
- deploying" / "can I share a database across projects" / "is my
18
- cron running". Pre-emptively load when editing creek.toml,
19
- wrangler.jsonc, or code that imports from @solcreek/*.
13
+ creek db, creek logs, creek doctor, `npx creek`, or "deploy to the
14
+ edge". Also use when a user says "my deploy failed" / "deploy to creek
15
+ didn't work" / "add a database to my creek project" / "why isn't my
16
+ push deploying" / "can I share a database across projects" / "is my
17
+ cron running". Pre-emptively load when editing creek.toml or code
18
+ that imports from @solcreek/*.
20
19
  license: Apache-2.0
21
20
  compatibility: Requires Creek CLI (npm install -g creek)
22
21
  paths:
23
22
  - "**/creek.toml"
24
- - "**/wrangler.{json,jsonc,toml}"
25
23
  - "**/examples/vite-react-drizzle/**"
26
24
  - "**/server/{local,worker,routes,schema}.ts"
27
25
  metadata:
@@ -32,49 +30,55 @@ metadata:
32
30
 
33
31
  # Creek CLI — Agent Skill
34
32
 
35
- Creek deploys web apps to Cloudflare Workers with a single command.
33
+ Creek deploys full-stack web apps to the edge with a single command.
36
34
  Auto-detects framework, determines render mode (SPA/SSR/Worker),
37
35
  provisions infrastructure.
38
36
 
39
37
  ## Mental Model
40
38
 
41
- Creek runs on Cloudflare Workers, but **it is not raw Cloudflare**. The
42
- resource model, deploy flow, and runtime are abstracted. An agent
43
- reaching for CF-native workarounds (wrangler.toml edits, manual D1
44
- creation, driver rewrites) is almost always wrong on Creek.
45
-
46
- The rule of thumb: if you're about to write CF-specific glue code, check
47
- whether the `creek` CLI or `@solcreek/runtime` already covers the concern.
48
- If yes use the Creek path.
49
-
50
- ## What you DON'T need to do on Creek
51
-
52
- Because Creek visibly runs on CF, it's tempting to apply CF reasoning.
53
- Don't. These five shortcuts are all counterproductive:
54
-
55
- - **Do NOT swap `better-sqlite3` → D1 manually before deploy.** The
56
- recommended pattern keeps one shared schema + one shared query/routes
57
- file, driver-agnostic. Only the thin boot files differ
58
- (`server/local.ts` uses `better-sqlite3`, `server/worker.ts` uses
59
- D1). See `references/resources.md` and `examples/vite-react-drizzle`.
60
-
61
- - **Do NOT maintain separate sandbox/production code paths.** Env var
62
- behavior is identical. Sandbox just runs without user-set secrets.
63
- Gate on `env.MY_KEY` being present; deploy to production via
64
- `creek deploy` when the full env is needed.
65
-
66
- - **Do NOT hand-edit `wrangler.toml`.** Creek reads `creek.toml` and
67
- generates wrangler config at build time. Bindings are declared in the
68
- dashboard or via `creek db attach` not in wrangler.toml.
69
-
70
- - **Do NOT create a D1 via `wrangler d1 create`.** Use `creek db create
71
- <name>` it creates a team-owned resource that can be renamed, shared
72
- across projects, and detached without dropping data.
73
-
74
- - **Do NOT duplicate schema or queries across `db.local.ts` +
75
- `db.prod.ts` files.** Use the shared-routes + split-boot pattern
76
- from `references/resources.md`. `creek doctor` flags the split with
77
- `CK-DB-DUAL-DRIVER-SPLIT`.
39
+ Creek manages the deploy target, bindings, and runtime for you. You
40
+ work with semantic concepts `database`, `cache`, `storage`, `ai`
41
+ not infrastructure primitives. The CLI and `@solcreek/runtime` cover
42
+ the concerns you'd normally write glue code for.
43
+
44
+ Rule of thumb: if you're about to write platform-level glue (editing
45
+ generated config, manually provisioning infra, swapping drivers across
46
+ local/production), check whether `creek` or `@solcreek/runtime` already
47
+ handles it. It almost always does.
48
+
49
+ ## Conventions that matter on first pass
50
+
51
+ Creek deviates from common deployment heuristics in a few specific
52
+ ways. Getting these right up front avoids dead-end rewrites.
53
+
54
+ - **Semantic resource keys.** In `creek.toml [resources]`, use
55
+ `database`, `cache`, `storage`, `ai`. These map to infrastructure
56
+ automatically. Other names are silently dropped — `creek doctor`
57
+ flags this with `CK-RESOURCES-KEYS`.
58
+
59
+ - **Provision via `creek db create <name>`, not platform-specific
60
+ tooling.** Creates a team-owned resource with a stable UUID that
61
+ can be renamed, shared across projects, and detached without
62
+ dropping data. Provisioning outside Creek creates orphaned
63
+ infrastructure the platform can't track.
64
+
65
+ - **One code path for sandbox and production.** Env var behavior is
66
+ identical. Sandbox just runs without user-set secrets. Gate on
67
+ `env.MY_KEY` being present; don't fork code paths.
68
+
69
+ - **Shared schema + split boot files for portable DB code.** The
70
+ recommended shape: one `schema.ts` + one `routes.ts` (driver-agnostic)
71
+ + thin boot files (`server/local.ts` for local dev, `server/worker.ts`
72
+ for production) that differ only in driver setup. Never duplicate
73
+ the schema across local and production files — `creek doctor` flags
74
+ this with `CK-DB-DUAL-DRIVER-SPLIT`. See `references/resources.md`
75
+ and `examples/vite-react-drizzle`.
76
+
77
+ - **`creek.toml` is the source of truth for config.** Creek generates
78
+ its deploy-target config at build time. Hand-edits to generated
79
+ files get reverted on next deploy. If an existing project has a
80
+ legacy config file from another tool, `creek doctor` flags it with
81
+ `CK-CONFIG-OVERLAP` and guides the reconciliation.
78
82
 
79
83
  ## Quick Triage
80
84
 
@@ -99,7 +103,7 @@ If the phrasing doesn't match any row, default to `creek doctor --json`
99
103
 
100
104
  ## Sandbox with DB (no account, 60 min preview)
101
105
 
102
- Sandbox mode auto-provisions a D1 database when `creek.toml` declares
106
+ Sandbox mode auto-provisions a database when `creek.toml` declares
103
107
  `[resources] database = true` — no `creek login`, no `creek db create`
104
108
  required. The binding name is `DB`. This makes it safe to build a
105
109
  DB-backed CRUD demo (e.g. TODO list) and ship a live URL in one step.