@owlmeans/create-app 0.1.11 → 0.1.13-rc.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owlmeans/create-app",
3
- "version": "0.1.11",
3
+ "version": "0.1.13-rc.0",
4
4
  "license": "MIT",
5
5
  "description": "Scaffold a minimal fullstack OwlMeans Common app — common + api + web workspaces, shadcn UI navigation/layout, no auth, and a session-scoped in-memory resource. Deploys agent skills via @owlmeans/agent-skills by default.",
6
6
  "type": "module",
@@ -29,7 +29,7 @@
29
29
  "template"
30
30
  ],
31
31
  "dependencies": {
32
- "@owlmeans/agent-skills": "^0.1.11"
32
+ "@owlmeans/agent-skills": "^0.1.12"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@owlmeans/dep-config": "workspace:*",
@@ -15,6 +15,13 @@ monorepo with three packages under `sources/` — `common` (shared route entrypo
15
15
  `api` (`@owlmeans/server-app` backend), and `web` (`@owlmeans/web-panel` + shadcn UI). See the
16
16
  `getting-started` skill for how the pieces fit together.
17
17
 
18
+ ## Reuse before you build (mandatory)
19
+
20
+ Before planning or writing any feature, follow the `reuse-code` skill: search for an `@owlmeans/*`
21
+ package (in the installed packages and at https://github.com/owlmeans/common) or existing code that
22
+ already solves the problem **before** proposing a third-party library or a custom solution, and
23
+ simplify whatever you do write. This is required for every planning and development task.
24
+
18
25
  ## Memory & Meta-file Rules
19
26
 
20
27
  All project memory and meta-information lives **inside this project**, never in `~/.claude/`:
@@ -28,6 +28,10 @@ Open the **Session** page and add/remove items — they are stored per browser s
28
28
  (a `sid` kept in `localStorage`) in an in-memory resource on the API. Restarting the API
29
29
  clears them; opening a different browser/incognito window gets an isolated session.
30
30
 
31
+ > **Note:** The API runs over plain HTTP in dev (`cfg.security = { unsecure: true }` in
32
+ > `sources/common/src/config.ts`). If you edit `sources/common`, restart `bun run dev` to
33
+ > rebuild it before the API and web pick up the changes.
34
+
31
35
  ## How it fits together
32
36
 
33
37
  1. **`sources/common`** declares the API routes as OwlMeans *entrypoints* (`session.list`,
@@ -15,6 +15,13 @@ monorepo with three packages under `sources/` — `common` (shared route entrypo
15
15
  `api` (`@owlmeans/server-app` backend), and `web` (`@owlmeans/web-panel` + shadcn UI). See the
16
16
  `getting-started.instructions.md` for how the pieces fit together.
17
17
 
18
+ ## Reuse before you build (mandatory)
19
+
20
+ Before planning or writing any feature, follow `reuse-code.instructions.md`: search for an
21
+ `@owlmeans/*` package (in the installed packages and at https://github.com/owlmeans/common) or existing
22
+ code that already solves the problem **before** proposing a third-party library or a custom solution,
23
+ and simplify whatever you do write. This is required for every planning and development task.
24
+
18
25
  ## Memory & Meta-file Rules
19
26
 
20
27
  All project memory and meta-information lives **inside this project**, never in `~/.copilot/`:
@@ -8,7 +8,7 @@
8
8
  "sources/*"
9
9
  ],
10
10
  "scripts": {
11
- "dev": "bun run --filter './sources/*' --parallel dev",
11
+ "dev": "bun run --filter './sources/common' build && bun run --filter './sources/*' --parallel dev",
12
12
  "build": "bun run --filter './sources/*' build",
13
13
  "typecheck": "bun run --filter './sources/*' typecheck"
14
14
  },
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "main": "build/index.js",
7
7
  "scripts": {
8
- "dev": "sleep 3 && bun --watch --preserve-symlinks src/index.ts",
8
+ "dev": "bun --watch src/index.ts",
9
9
  "start": "bun src/index.ts",
10
10
  "build": "tsc -b",
11
11
  "typecheck": "tsc -b"
@@ -20,5 +20,8 @@ service({
20
20
 
21
21
  cfg.debug = { all: true }
22
22
  cfg.alias = APP
23
+ // Local dev serves the API over plain HTTP. Without this the web client builds https:// URLs
24
+ // and every call fails. In production put the API behind TLS and remove this line.
25
+ cfg.security = { unsecure: true }
23
26
 
24
27
  export const commonConfig = cfg
@@ -4,7 +4,7 @@
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "scripts": {
7
- "dev": "sleep 3 && vite",
7
+ "dev": "vite",
8
8
  "start": "vite",
9
9
  "build": "vite build",
10
10
  "typecheck": "tsc --noEmit",