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.
Files changed (63) hide show
  1. package/README.md +14 -9
  2. package/dist/apps/index.html +41 -0
  3. package/dist/bin/ont.js +1378 -257
  4. package/dist/index.js +15089 -9091
  5. package/dist/src/browser/launch.d.ts +25 -0
  6. package/dist/src/browser/server.d.ts +2 -0
  7. package/dist/src/browser/transform.d.ts +1 -0
  8. package/dist/src/cli/commands/init/index.d.ts +7 -0
  9. package/dist/src/cli/commands/init/templates/app.d.ts +2 -0
  10. package/dist/src/cli/commands/init/templates/components.d.ts +4 -0
  11. package/dist/src/cli/commands/init/templates/config.d.ts +4 -0
  12. package/dist/src/cli/commands/init/templates/css.d.ts +1 -0
  13. package/dist/src/cli/commands/init/templates/gitignore.d.ts +1 -0
  14. package/dist/src/cli/commands/init/templates/index.d.ts +9 -0
  15. package/dist/src/cli/commands/init/templates/resolvers.d.ts +4 -0
  16. package/dist/src/cli/commands/init/templates/routes.d.ts +3 -0
  17. package/dist/src/cli/commands/init/templates/server.d.ts +2 -0
  18. package/dist/src/cli/commands/init/templates/skills.d.ts +1 -0
  19. package/dist/src/config/define.d.ts +6 -2
  20. package/dist/src/config/schema.d.ts +4 -2
  21. package/dist/src/config/types.d.ts +19 -2
  22. package/dist/src/config/validate-ui.d.ts +5 -0
  23. package/dist/src/index.d.ts +5 -1
  24. package/dist/src/server/api/index.d.ts +4 -0
  25. package/dist/src/server/mcp/apps/visualizer.d.ts +9 -0
  26. package/dist/src/server/mcp/index.d.ts +12 -0
  27. package/dist/src/server/mcp/tools.d.ts +10 -1
  28. package/package.json +19 -5
  29. package/src/browser/launch.ts +47 -0
  30. package/src/browser/server.ts +93 -5
  31. package/src/browser/transform.ts +3 -1
  32. package/src/cli/commands/init/index.ts +278 -0
  33. package/src/cli/commands/init/templates/app.ts +33 -0
  34. package/src/cli/commands/init/templates/components.ts +153 -0
  35. package/src/cli/commands/init/templates/config.ts +199 -0
  36. package/src/cli/commands/init/templates/css.ts +47 -0
  37. package/src/cli/commands/init/templates/gitignore.ts +34 -0
  38. package/src/cli/commands/init/templates/index.ts +18 -0
  39. package/src/cli/commands/init/templates/resolvers.ts +129 -0
  40. package/src/cli/commands/init/templates/routes.ts +478 -0
  41. package/src/cli/commands/init/templates/server.ts +53 -0
  42. package/src/cli/commands/init/templates/skills.ts +246 -0
  43. package/src/cli/index.ts +1 -1
  44. package/src/config/define.ts +14 -2
  45. package/src/config/schema.ts +4 -5
  46. package/src/config/types.ts +20 -2
  47. package/src/config/validate-ui.ts +131 -0
  48. package/src/index.ts +5 -0
  49. package/src/lockfile/hasher.ts +10 -12
  50. package/src/server/api/index.ts +66 -1
  51. package/src/server/api/router.ts +10 -0
  52. package/src/server/mcp/apps/visualizer/components/DataChart.tsx +125 -0
  53. package/src/server/mcp/apps/visualizer/components/DataTable.tsx +73 -0
  54. package/src/server/mcp/apps/visualizer/components/JsonView.tsx +100 -0
  55. package/src/server/mcp/apps/visualizer/components/index.ts +3 -0
  56. package/src/server/mcp/apps/visualizer/index.html +12 -0
  57. package/src/server/mcp/apps/visualizer/mcp-app.tsx +207 -0
  58. package/src/server/mcp/apps/visualizer/styles.css +210 -0
  59. package/src/server/mcp/apps/visualizer/tsconfig.json +17 -0
  60. package/src/server/mcp/apps/visualizer.ts +9 -0
  61. package/src/server/mcp/index.ts +218 -5
  62. package/src/server/mcp/tools.ts +43 -12
  63. 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 `npx ont-run review` to approve these changes.
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
- npm install ont-run
82
- # or
83
- bun add ont-run
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
- Works with both Node.js and Bun.
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
- npx ont-run init my-api
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
- npx ont-run review
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
- npx ont-run init [dir] # Initialize a new project
278
- npx ont-run review # Review and approve ontology changes
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