kozou 0.0.2 → 0.1.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/LICENSE +202 -21
- package/README.md +97 -17
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +54 -0
- package/dist/cli.js.map +1 -0
- package/dist/commands/dev-runtime.d.ts +5 -0
- package/dist/commands/dev-runtime.d.ts.map +1 -0
- package/dist/commands/dev-runtime.js +38 -0
- package/dist/commands/dev-runtime.js.map +1 -0
- package/dist/commands/dev.d.ts +5 -0
- package/dist/commands/dev.d.ts.map +1 -0
- package/dist/commands/dev.js +96 -0
- package/dist/commands/dev.js.map +1 -0
- package/dist/commands/inspect.d.ts +10 -0
- package/dist/commands/inspect.d.ts.map +1 -0
- package/dist/commands/inspect.js +47 -0
- package/dist/commands/inspect.js.map +1 -0
- package/dist/commands/mcp.d.ts +9 -0
- package/dist/commands/mcp.d.ts.map +1 -0
- package/dist/commands/mcp.js +29 -0
- package/dist/commands/mcp.js.map +1 -0
- package/dist/config.d.ts +54 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +178 -0
- package/dist/config.js.map +1 -0
- package/dist/create-kozou.d.ts +3 -0
- package/dist/create-kozou.d.ts.map +1 -0
- package/dist/create-kozou.js +27 -0
- package/dist/create-kozou.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -0
- package/dist/scaffold.d.ts +11 -0
- package/dist/scaffold.d.ts.map +1 -0
- package/dist/scaffold.js +65 -0
- package/dist/scaffold.js.map +1 -0
- package/dist/templates/docker-compose.yml +64 -0
- package/dist/templates/env.example +17 -0
- package/dist/templates/kozou.config.yaml +29 -0
- package/dist/templates/migrations/0001_init.sql +25 -0
- package/dist/templates/ui-hints.yaml +26 -0
- package/package.json +52 -21
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
-- 0001_init.sql
|
|
2
|
+
--
|
|
3
|
+
-- Add your CREATE TABLE / CREATE VIEW / COMMENT ON statements here.
|
|
4
|
+
-- kozou reads from this database at runtime; the COMMENT ON text is what
|
|
5
|
+
-- shapes the Admin UI and the MCP context handed to AI agents.
|
|
6
|
+
--
|
|
7
|
+
-- See https://kozou.org for documentation on the COMMENT conventions
|
|
8
|
+
-- (@ai / @widget / @policy / @example tags), VIEW-as-domain-concept,
|
|
9
|
+
-- and the recommended layout for migrations.
|
|
10
|
+
|
|
11
|
+
-- Example (delete and replace with your own schema):
|
|
12
|
+
--
|
|
13
|
+
-- CREATE TABLE users (
|
|
14
|
+
-- id uuid PRIMARY KEY DEFAULT gen_random_uuid(),
|
|
15
|
+
-- email text NOT NULL UNIQUE,
|
|
16
|
+
-- full_name text,
|
|
17
|
+
-- created_at timestamptz NOT NULL DEFAULT now(),
|
|
18
|
+
-- deleted_at timestamptz
|
|
19
|
+
-- );
|
|
20
|
+
--
|
|
21
|
+
-- COMMENT ON TABLE users IS
|
|
22
|
+
-- 'Application users.
|
|
23
|
+
-- @ai: rows with deleted_at IS NOT NULL must be excluded from queries.';
|
|
24
|
+
--
|
|
25
|
+
-- COMMENT ON COLUMN users.email IS 'Login email (unique).';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# ui-hints.yaml (optional)
|
|
2
|
+
#
|
|
3
|
+
# COMMENT ON and CREATE VIEW already give kozou enough information to
|
|
4
|
+
# render a usable Admin UI out of the box. Use this file only to fine-tune
|
|
5
|
+
# presentation: override a table label, force a specific widget for a
|
|
6
|
+
# column, or surface relation search fields.
|
|
7
|
+
#
|
|
8
|
+
# See Kozou v0.1 design spec §4.3 for the full schema.
|
|
9
|
+
|
|
10
|
+
tables: {}
|
|
11
|
+
|
|
12
|
+
# Example overrides (uncomment and adapt):
|
|
13
|
+
#
|
|
14
|
+
# tables:
|
|
15
|
+
# users:
|
|
16
|
+
# label: People
|
|
17
|
+
# displayField: full_name
|
|
18
|
+
# columns:
|
|
19
|
+
# bio:
|
|
20
|
+
# widget: textarea
|
|
21
|
+
# avatar_url:
|
|
22
|
+
# widget: image-url
|
|
23
|
+
#
|
|
24
|
+
# views:
|
|
25
|
+
# vw_active_users:
|
|
26
|
+
# label: Active users
|
package/package.json
CHANGED
|
@@ -1,29 +1,60 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kozou",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
"mcp",
|
|
12
|
-
"admin-ui",
|
|
13
|
-
"typescript",
|
|
14
|
-
"graphql"
|
|
15
|
-
],
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Kozou CLI: scaffolding, schema introspection, and MCP server entry points. See Kozou v0.1 design spec §9.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/kozou-dev/kozou.git",
|
|
9
|
+
"directory": "packages/kozou"
|
|
10
|
+
},
|
|
16
11
|
"homepage": "https://kozou.org",
|
|
17
12
|
"bugs": {
|
|
18
13
|
"url": "https://github.com/kozou-dev/kozou/issues"
|
|
19
14
|
},
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
"type": "module",
|
|
16
|
+
"main": "./dist/index.js",
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"import": "./dist/index.js",
|
|
21
|
+
"types": "./dist/index.d.ts"
|
|
22
|
+
},
|
|
23
|
+
"./package.json": "./package.json"
|
|
24
|
+
},
|
|
25
|
+
"bin": {
|
|
26
|
+
"kozou": "./dist/cli.js",
|
|
27
|
+
"create-kozou": "./dist/create-kozou.js"
|
|
23
28
|
},
|
|
24
|
-
"license": "MIT",
|
|
25
|
-
"author": "Takashi Matsuyama",
|
|
26
29
|
"files": [
|
|
27
|
-
"
|
|
28
|
-
]
|
|
29
|
-
|
|
30
|
+
"dist"
|
|
31
|
+
],
|
|
32
|
+
"publishConfig": {
|
|
33
|
+
"access": "public",
|
|
34
|
+
"provenance": true
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"commander": "^14.0.0",
|
|
38
|
+
"yaml": "^2.9.0",
|
|
39
|
+
"zod": "^4.4.3",
|
|
40
|
+
"@kozou/core": "0.1.1",
|
|
41
|
+
"@kozou/introspect": "0.1.1",
|
|
42
|
+
"@kozou/mcp": "0.1.1",
|
|
43
|
+
"@kozou/svelte-ui": "0.1.1"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
47
|
+
"@playwright/test": "^1.50.0",
|
|
48
|
+
"@testcontainers/postgresql": "^12.0.0",
|
|
49
|
+
"@types/pg": "^8.11.10",
|
|
50
|
+
"pg": "^8.13.0",
|
|
51
|
+
"testcontainers": "^12.0.0",
|
|
52
|
+
"tsx": "^4.19.0"
|
|
53
|
+
},
|
|
54
|
+
"scripts": {
|
|
55
|
+
"typecheck": "tsc --noEmit",
|
|
56
|
+
"build": "tsc && node scripts/copy-templates.mjs",
|
|
57
|
+
"test": "vitest run --coverage",
|
|
58
|
+
"test:e2e": "playwright test"
|
|
59
|
+
}
|
|
60
|
+
}
|