ont-run 0.0.10 → 0.0.13
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 +14 -9
- package/dist/apps/index.html +41 -0
- package/dist/bin/ont.js +1378 -257
- package/dist/index.js +15089 -9091
- package/dist/src/browser/launch.d.ts +25 -0
- package/dist/src/browser/server.d.ts +2 -0
- package/dist/src/browser/transform.d.ts +1 -0
- package/dist/src/cli/commands/init/index.d.ts +7 -0
- package/dist/src/cli/commands/init/templates/app.d.ts +2 -0
- package/dist/src/cli/commands/init/templates/components.d.ts +4 -0
- package/dist/src/cli/commands/init/templates/config.d.ts +4 -0
- package/dist/src/cli/commands/init/templates/css.d.ts +1 -0
- package/dist/src/cli/commands/init/templates/gitignore.d.ts +1 -0
- package/dist/src/cli/commands/init/templates/index.d.ts +9 -0
- package/dist/src/cli/commands/init/templates/resolvers.d.ts +4 -0
- package/dist/src/cli/commands/init/templates/routes.d.ts +3 -0
- package/dist/src/cli/commands/init/templates/server.d.ts +2 -0
- package/dist/src/cli/commands/init/templates/skills.d.ts +1 -0
- package/dist/src/config/define.d.ts +6 -2
- package/dist/src/config/schema.d.ts +4 -2
- package/dist/src/config/types.d.ts +19 -2
- package/dist/src/config/validate-ui.d.ts +5 -0
- package/dist/src/index.d.ts +5 -1
- package/dist/src/server/api/index.d.ts +4 -0
- package/dist/src/server/mcp/apps/visualizer.d.ts +9 -0
- package/dist/src/server/mcp/index.d.ts +12 -0
- package/dist/src/server/mcp/tools.d.ts +10 -1
- package/package.json +19 -5
- package/src/browser/launch.ts +47 -0
- package/src/browser/server.ts +93 -5
- package/src/browser/transform.ts +3 -1
- package/src/cli/commands/init/index.ts +278 -0
- package/src/cli/commands/init/templates/app.ts +33 -0
- package/src/cli/commands/init/templates/components.ts +153 -0
- package/src/cli/commands/init/templates/config.ts +199 -0
- package/src/cli/commands/init/templates/css.ts +47 -0
- package/src/cli/commands/init/templates/gitignore.ts +34 -0
- package/src/cli/commands/init/templates/index.ts +18 -0
- package/src/cli/commands/init/templates/resolvers.ts +129 -0
- package/src/cli/commands/init/templates/routes.ts +478 -0
- package/src/cli/commands/init/templates/server.ts +53 -0
- package/src/cli/commands/init/templates/skills.ts +246 -0
- package/src/cli/index.ts +1 -1
- package/src/config/define.ts +14 -2
- package/src/config/schema.ts +4 -5
- package/src/config/types.ts +20 -2
- package/src/config/validate-ui.ts +131 -0
- package/src/index.ts +5 -0
- package/src/lockfile/hasher.ts +10 -12
- package/src/server/api/index.ts +66 -1
- package/src/server/api/router.ts +10 -0
- package/src/server/mcp/apps/visualizer/components/DataChart.tsx +125 -0
- package/src/server/mcp/apps/visualizer/components/DataTable.tsx +73 -0
- package/src/server/mcp/apps/visualizer/components/JsonView.tsx +100 -0
- package/src/server/mcp/apps/visualizer/components/index.ts +3 -0
- package/src/server/mcp/apps/visualizer/index.html +12 -0
- package/src/server/mcp/apps/visualizer/mcp-app.tsx +207 -0
- package/src/server/mcp/apps/visualizer/styles.css +210 -0
- package/src/server/mcp/apps/visualizer/tsconfig.json +17 -0
- package/src/server/mcp/apps/visualizer.ts +9 -0
- package/src/server/mcp/index.ts +218 -5
- package/src/server/mcp/tools.ts +43 -12
- package/src/cli/commands/init.ts +0 -594
package/README.md
CHANGED
|
@@ -70,7 +70,7 @@ WARN Ontology has changed:
|
|
|
70
70
|
~ assignTicket
|
|
71
71
|
Access: [admin] -> [admin, public]
|
|
72
72
|
|
|
73
|
-
WARN Run `
|
|
73
|
+
WARN Run `bunx ont-run review` to approve these changes.
|
|
74
74
|
```
|
|
75
75
|
|
|
76
76
|
**Why not just prompts?** The ontology is the source of truth. The framework won't run if it changes without human review.
|
|
@@ -78,26 +78,31 @@ WARN Run `npx ont-run review` to approve these changes.
|
|
|
78
78
|
## Installation
|
|
79
79
|
|
|
80
80
|
```bash
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
# Using bun (recommended)
|
|
82
|
+
bunx ont-run init my-api
|
|
83
|
+
|
|
84
|
+
# Using npm
|
|
85
|
+
npx ont-run init my-api
|
|
84
86
|
```
|
|
85
87
|
|
|
86
|
-
|
|
88
|
+
This creates a new project with the ont-run framework configured.
|
|
87
89
|
|
|
88
90
|
## Quick Start
|
|
89
91
|
|
|
90
92
|
### 1. Initialize
|
|
91
93
|
|
|
92
94
|
```bash
|
|
93
|
-
|
|
95
|
+
bunx ont-run init my-api
|
|
96
|
+
# or: npx ont-run init my-api
|
|
97
|
+
|
|
94
98
|
cd my-api
|
|
95
99
|
```
|
|
96
100
|
|
|
97
101
|
### 2. Review the initial ontology
|
|
98
102
|
|
|
99
103
|
```bash
|
|
100
|
-
|
|
104
|
+
bunx ont-run review
|
|
105
|
+
# or: npx ont-run review
|
|
101
106
|
```
|
|
102
107
|
|
|
103
108
|
Opens a browser showing all functions and access groups. Click **Approve** to generate `ont.lock`.
|
|
@@ -274,8 +279,8 @@ export default async function editPost(
|
|
|
274
279
|
## CLI Commands
|
|
275
280
|
|
|
276
281
|
```bash
|
|
277
|
-
|
|
278
|
-
|
|
282
|
+
bunx ont-run init [dir] # Initialize a new project (or: npx ont-run init [dir])
|
|
283
|
+
bunx ont-run review # Review and approve ontology changes (or: npx ont-run review)
|
|
279
284
|
```
|
|
280
285
|
|
|
281
286
|
## API Endpoints
|