@origostudio/origo-design 0.0.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.
Files changed (209) hide show
  1. package/.editorconfig +13 -0
  2. package/.gitattributes +22 -0
  3. package/.perf-baseline.json +12 -0
  4. package/.prettierignore +13 -0
  5. package/.prettierrc +10 -0
  6. package/.vscode/extensions.json +3 -0
  7. package/BRANCH-PROTECTION.md +25 -0
  8. package/CHANGELOG.md +292 -0
  9. package/LICENSE +21 -0
  10. package/README.md +11 -0
  11. package/commitlint.config.js +6 -0
  12. package/dist/packages/cli/CHANGELOG.md +92 -0
  13. package/dist/packages/cli/README.md +11 -0
  14. package/dist/packages/cli/package.json +16 -0
  15. package/dist/packages/cli/package.json.bak +16 -0
  16. package/dist/packages/cli/src/commands/generate/entity.d.ts +2 -0
  17. package/dist/packages/cli/src/commands/generate/entity.js +24 -0
  18. package/dist/packages/cli/src/commands/generate/entity.js.map +1 -0
  19. package/dist/packages/cli/src/commands/generate/index.d.ts +2 -0
  20. package/dist/packages/cli/src/commands/generate/index.js +30 -0
  21. package/dist/packages/cli/src/commands/generate/index.js.map +1 -0
  22. package/dist/packages/cli/src/commands/init.d.ts +5 -0
  23. package/dist/packages/cli/src/commands/init.js +27 -0
  24. package/dist/packages/cli/src/commands/init.js.map +1 -0
  25. package/dist/packages/cli/src/commands/new.d.ts +2 -0
  26. package/dist/packages/cli/src/commands/new.js +24 -0
  27. package/dist/packages/cli/src/commands/new.js.map +1 -0
  28. package/dist/packages/cli/src/commands/validate.d.ts +2 -0
  29. package/dist/packages/cli/src/commands/validate.js +50 -0
  30. package/dist/packages/cli/src/commands/validate.js.map +1 -0
  31. package/dist/packages/cli/src/index.d.ts +11 -0
  32. package/dist/packages/cli/src/index.js +15 -0
  33. package/dist/packages/cli/src/index.js.map +1 -0
  34. package/dist/packages/cli/src/lib/cli.d.ts +1 -0
  35. package/dist/packages/cli/src/lib/cli.js +7 -0
  36. package/dist/packages/cli/src/lib/cli.js.map +1 -0
  37. package/dist/packages/cli/src/lib/generator.d.ts +16 -0
  38. package/dist/packages/cli/src/lib/generator.js +165 -0
  39. package/dist/packages/cli/src/lib/generator.js.map +1 -0
  40. package/dist/packages/cli/src/lib/scaffolding.d.ts +5 -0
  41. package/dist/packages/cli/src/lib/scaffolding.js +87 -0
  42. package/dist/packages/cli/src/lib/scaffolding.js.map +1 -0
  43. package/dist/packages/cli/src/lib/validation.d.ts +4 -0
  44. package/dist/packages/cli/src/lib/validation.js +191 -0
  45. package/dist/packages/cli/src/lib/validation.js.map +1 -0
  46. package/dist/packages/cli/src/main.d.ts +4 -0
  47. package/dist/packages/cli/src/main.js +38 -0
  48. package/dist/packages/cli/src/main.js.map +1 -0
  49. package/dist/packages/cli/src/templates/entity.json +6 -0
  50. package/dist/packages/cli/src/templates/extension.json +8 -0
  51. package/dist/packages/cli/src/templates/index.d.ts +29 -0
  52. package/dist/packages/cli/src/templates/index.js +61 -0
  53. package/dist/packages/cli/src/templates/index.js.map +1 -0
  54. package/dist/packages/cli/src/templates/origo.json +16 -0
  55. package/dist/packages/cli/src/utils/errors.d.ts +15 -0
  56. package/dist/packages/cli/src/utils/errors.js +58 -0
  57. package/dist/packages/cli/src/utils/errors.js.map +1 -0
  58. package/dist/packages/core/CHANGELOG.md +275 -0
  59. package/dist/packages/core/README.md +11 -0
  60. package/dist/packages/core/package.json +21 -0
  61. package/dist/packages/core/package.json.bak +21 -0
  62. package/dist/packages/core/src/extension-api/extension-manager.d.ts +35 -0
  63. package/dist/packages/core/src/extension-api/extension-manager.js +300 -0
  64. package/dist/packages/core/src/extension-api/extension-manager.js.map +1 -0
  65. package/dist/packages/core/src/extension-api/index.d.ts +2 -0
  66. package/dist/packages/core/src/extension-api/index.js +6 -0
  67. package/dist/packages/core/src/extension-api/index.js.map +1 -0
  68. package/dist/packages/core/src/extension-api/types.d.ts +34 -0
  69. package/dist/packages/core/src/extension-api/types.js +3 -0
  70. package/dist/packages/core/src/extension-api/types.js.map +1 -0
  71. package/dist/packages/core/src/index.d.ts +3 -0
  72. package/dist/packages/core/src/index.js +7 -0
  73. package/dist/packages/core/src/index.js.map +1 -0
  74. package/dist/packages/core/src/schemas/capability.schema.json +104 -0
  75. package/dist/packages/core/src/schemas/contract.schema.json +52 -0
  76. package/dist/packages/core/src/schemas/domain.schema.json +47 -0
  77. package/dist/packages/core/src/schemas/entity.schema.json +72 -0
  78. package/dist/packages/core/src/schemas/extension.schema.json +39 -0
  79. package/dist/packages/core/src/schemas/permission.schema.json +21 -0
  80. package/dist/packages/core/src/types/ast.d.ts +17 -0
  81. package/dist/packages/core/src/types/ast.js +3 -0
  82. package/dist/packages/core/src/types/ast.js.map +1 -0
  83. package/dist/packages/core/src/types/domain.d.ts +101 -0
  84. package/dist/packages/core/src/types/domain.js +8 -0
  85. package/dist/packages/core/src/types/domain.js.map +1 -0
  86. package/dist/packages/core/src/types/validation.d.ts +12 -0
  87. package/dist/packages/core/src/types/validation.js +16 -0
  88. package/dist/packages/core/src/types/validation.js.map +1 -0
  89. package/dist/packages/core/src/validator/ast-validator.d.ts +11 -0
  90. package/dist/packages/core/src/validator/ast-validator.js +388 -0
  91. package/dist/packages/core/src/validator/ast-validator.js.map +1 -0
  92. package/dist/packages/core/src/validator/index.d.ts +23 -0
  93. package/dist/packages/core/src/validator/index.js +143 -0
  94. package/dist/packages/core/src/validator/index.js.map +1 -0
  95. package/dist/packages/core/src/validator/serializer.d.ts +11 -0
  96. package/dist/packages/core/src/validator/serializer.js +99 -0
  97. package/dist/packages/core/src/validator/serializer.js.map +1 -0
  98. package/eslint.config.js +114 -0
  99. package/generate_prompts.js +19 -0
  100. package/jest.config.ts +5 -0
  101. package/jest.preset.js +3 -0
  102. package/nx.json +169 -0
  103. package/package.json +115 -0
  104. package/packages/angular-renderer/CHANGELOG.md +274 -0
  105. package/packages/angular-renderer/README.md +11 -0
  106. package/packages/angular-renderer/package.json +20 -0
  107. package/packages/angular-renderer/playwright-ct.config.ts +23 -0
  108. package/packages/angular-renderer/src/adapters/web/adapter.ts +145 -0
  109. package/packages/angular-renderer/src/adapters/web/experience-adapter.service.ts +21 -0
  110. package/packages/angular-renderer/src/components/primitives/button/button.component.html +9 -0
  111. package/packages/angular-renderer/src/components/primitives/button/button.component.pw.ts +19 -0
  112. package/packages/angular-renderer/src/components/primitives/button/button.component.scss +31 -0
  113. package/packages/angular-renderer/src/components/primitives/button/button.component.ts +67 -0
  114. package/packages/angular-renderer/src/components/primitives/primitives.a11y.pw.ts +33 -0
  115. package/packages/angular-renderer/src/components/primitives/text-input/text-input.component.html +10 -0
  116. package/packages/angular-renderer/src/components/primitives/text-input/text-input.component.pw.ts +29 -0
  117. package/packages/angular-renderer/src/components/primitives/text-input/text-input.component.scss +42 -0
  118. package/packages/angular-renderer/src/components/primitives/text-input/text-input.component.ts +84 -0
  119. package/packages/angular-renderer/src/components/primitives/vbox/vbox.component.html +2 -0
  120. package/packages/angular-renderer/src/components/primitives/vbox/vbox.component.pw.ts +19 -0
  121. package/packages/angular-renderer/src/components/primitives/vbox/vbox.component.scss +5 -0
  122. package/packages/angular-renderer/src/components/primitives/vbox/vbox.component.ts +74 -0
  123. package/packages/angular-renderer/src/index.ts +7 -0
  124. package/packages/angular-renderer/src/lib/renderer.component.ts +118 -0
  125. package/packages/angular-renderer/src/lib/renderer.tokens.ts +9 -0
  126. package/packages/angular-renderer/src/lib/test-utils.ts +26 -0
  127. package/packages/angular-renderer/src/lib/theme.provider.ts +83 -0
  128. package/packages/angular-renderer/src/test-setup.ts +8 -0
  129. package/packages/cli/CHANGELOG.md +92 -0
  130. package/packages/cli/README.md +11 -0
  131. package/packages/cli/package.json +16 -0
  132. package/packages/cli/src/commands/generate/entity.ts +20 -0
  133. package/packages/cli/src/commands/generate/index.ts +28 -0
  134. package/packages/cli/src/commands/init.ts +28 -0
  135. package/packages/cli/src/commands/new.ts +22 -0
  136. package/packages/cli/src/commands/validate.ts +47 -0
  137. package/packages/cli/src/index.ts +11 -0
  138. package/packages/cli/src/lib/cli.ts +3 -0
  139. package/packages/cli/src/lib/generator.ts +181 -0
  140. package/packages/cli/src/lib/scaffolding.ts +104 -0
  141. package/packages/cli/src/lib/validation.ts +218 -0
  142. package/packages/cli/src/main.ts +38 -0
  143. package/packages/cli/src/templates/entity.json +6 -0
  144. package/packages/cli/src/templates/extension.json +8 -0
  145. package/packages/cli/src/templates/index.ts +94 -0
  146. package/packages/cli/src/templates/origo.json +16 -0
  147. package/packages/cli/src/utils/errors.ts +80 -0
  148. package/packages/core/CHANGELOG.md +275 -0
  149. package/packages/core/README.md +11 -0
  150. package/packages/core/package-lock.json +1035 -0
  151. package/packages/core/package.json +21 -0
  152. package/packages/core/scripts/generate-types.ts +23 -0
  153. package/packages/core/src/extension-api/extension-manager.ts +378 -0
  154. package/packages/core/src/extension-api/index.ts +2 -0
  155. package/packages/core/src/extension-api/types.ts +37 -0
  156. package/packages/core/src/index.ts +3 -0
  157. package/packages/core/src/schemas/__fixtures__/target-page.json +222 -0
  158. package/packages/core/src/schemas/capability.schema.json +104 -0
  159. package/packages/core/src/schemas/contract.schema.json +52 -0
  160. package/packages/core/src/schemas/domain.schema.json +47 -0
  161. package/packages/core/src/schemas/entity.schema.json +72 -0
  162. package/packages/core/src/schemas/extension.schema.json +39 -0
  163. package/packages/core/src/schemas/permission.schema.json +21 -0
  164. package/packages/core/src/types/ast.ts +20 -0
  165. package/packages/core/src/types/domain.ts +105 -0
  166. package/packages/core/src/types/validation.ts +29 -0
  167. package/packages/core/src/validator/ast-validator.ts +406 -0
  168. package/packages/core/src/validator/index.ts +207 -0
  169. package/packages/core/src/validator/serializer.ts +120 -0
  170. package/packages/core/test/fixtures/target-page.json +87 -0
  171. package/packages/design-tokens/CHANGELOG.md +273 -0
  172. package/packages/design-tokens/README.md +11 -0
  173. package/packages/design-tokens/package.json +25 -0
  174. package/packages/design-tokens/src/build.ts +97 -0
  175. package/packages/design-tokens/src/compile.ts +60 -0
  176. package/packages/design-tokens/src/index.ts +7 -0
  177. package/packages/design-tokens/src/runtime/index.ts +2 -0
  178. package/packages/design-tokens/src/runtime/theme-fetcher.ts +90 -0
  179. package/packages/design-tokens/src/runtime/theme-injector.ts +149 -0
  180. package/packages/design-tokens/src/schemas/base-tokens.schema.json +127 -0
  181. package/packages/design-tokens/src/schemas/semantic-tokens.schema.json +52 -0
  182. package/packages/design-tokens/src/tokens/base.json +46 -0
  183. package/packages/design-tokens/src/tokens/semantic.json +33 -0
  184. package/packages/playground/CHANGELOG.md +12 -0
  185. package/packages/playground/package.json +10 -0
  186. package/packages/playground/public/favicon.ico +0 -0
  187. package/packages/playground/src/app/app.component.html +1 -0
  188. package/packages/playground/src/app/app.component.scss +4 -0
  189. package/packages/playground/src/app/app.component.ts +13 -0
  190. package/packages/playground/src/app/app.config.ts +9 -0
  191. package/packages/playground/src/editor/badl-editor.component.html +1 -0
  192. package/packages/playground/src/editor/badl-editor.component.scss +10 -0
  193. package/packages/playground/src/editor/badl-editor.component.ts +57 -0
  194. package/packages/playground/src/editor/editor.worker.ts +1 -0
  195. package/packages/playground/src/editor/json.worker.ts +1 -0
  196. package/packages/playground/src/editor/monaco-environment.ts +11 -0
  197. package/packages/playground/src/editor/schema-registry.ts +30 -0
  198. package/packages/playground/src/index.html +13 -0
  199. package/packages/playground/src/main.ts +5 -0
  200. package/packages/playground/src/schemas/capability.schema.json +104 -0
  201. package/packages/playground/src/schemas/contract.schema.json +52 -0
  202. package/packages/playground/src/schemas/domain.schema.json +47 -0
  203. package/packages/playground/src/schemas/entity.schema.json +72 -0
  204. package/packages/playground/src/schemas/extension.schema.json +39 -0
  205. package/packages/playground/src/schemas/permission.schema.json +21 -0
  206. package/packages/playground/src/styles.scss +8 -0
  207. package/packages/playground/src/test-setup.ts +146 -0
  208. package/packages/playground/vite.config.ts +12 -0
  209. package/packages/playground/vitest.config.mjs +24 -0
package/.editorconfig ADDED
@@ -0,0 +1,13 @@
1
+ # Editor configuration, see http://editorconfig.org
2
+ root = true
3
+
4
+ [*]
5
+ charset = utf-8
6
+ indent_style = space
7
+ indent_size = 2
8
+ insert_final_newline = true
9
+ trim_trailing_whitespace = true
10
+
11
+ [*.md]
12
+ max_line_length = off
13
+ trim_trailing_whitespace = false
package/.gitattributes ADDED
@@ -0,0 +1,22 @@
1
+ # Ignore internal and development directories when creating release archives (e.g. GitHub Releases)
2
+ _bmad export-ignore
3
+ _bmad-output export-ignore
4
+ .agent export-ignore
5
+ .agents export-ignore
6
+ .bmad export-ignore
7
+ .github export-ignore
8
+ .husky export-ignore
9
+ .nx export-ignore
10
+ tools export-ignore
11
+ design-artifacts export-ignore
12
+ docs export-ignore
13
+ tmp export-ignore
14
+ apps export-ignore
15
+
16
+ # Ignore root config files not needed by users downloading the release source
17
+ *.txt export-ignore
18
+ *.py export-ignore
19
+ *.patch export-ignore
20
+ bmad_resolved_config*.json export-ignore
21
+ resolved_config.json export-ignore
22
+ test*.js export-ignore
@@ -0,0 +1,12 @@
1
+ {
2
+ "timestamp": "2026-07-31T17:11:23.750Z",
3
+ "entityCount": 500,
4
+ "totalAstNodes": 115505,
5
+ "iterations": 50,
6
+ "totalValidationMs": 178.62,
7
+ "avgValidationMs": 3.572,
8
+ "p50Ms": 0.738,
9
+ "p95Ms": 20.349,
10
+ "opsPerSec": 279.92,
11
+ "heapUsedMb": 123.84
12
+ }
@@ -0,0 +1,13 @@
1
+ # Add files here to ignore them from prettier formatting
2
+ /dist
3
+ /coverage
4
+ /.nx/cache
5
+ /.nx/workspace-data
6
+ /_bmad-output
7
+ /_bmad
8
+ /.agents
9
+ /.agent
10
+ **/.astro
11
+ /resolved_config.json
12
+ /bmad_resolved_config.json
13
+ .angular
package/.prettierrc ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "singleQuote": true,
3
+ "printWidth": 100,
4
+ "tabWidth": 2,
5
+ "useTabs": false,
6
+ "semi": true,
7
+ "trailingComma": "es5",
8
+ "bracketSpacing": true,
9
+ "arrowParens": "avoid"
10
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "recommendations": ["ms-playwright.playwright"]
3
+ }
@@ -0,0 +1,25 @@
1
+ # Branch Protection Rules (NFR-GIT-001)
2
+
3
+ As part of the Origo Design architecture (Layered Hexagonal with Versioned Language Contract) and CI pipeline enforcement, it is critical that no code bypasses the CI checks. This ensures that formatting (Prettier), linting (Nx boundaries), and tests are consistently enforced before merging.
4
+
5
+ To configure branch protection for the `main` branch, a repository administrator must apply the following settings in the GitHub repository settings.
6
+
7
+ ## Configuration Steps
8
+
9
+ 1. Go to the repository on GitHub.
10
+ 2. Click on **Settings** > **Branches**.
11
+ 3. Under "Branch protection rules", click **Add rule** or edit the existing rule for `main`.
12
+ 4. **Branch name pattern:** Enter `main`.
13
+ 5. **Protect matching branches:** Check the following options:
14
+ - **Require a pull request before merging:**
15
+ - Require approvals: Minimum 1 approval.
16
+ - Dismiss stale pull request approvals when new commits are pushed.
17
+ - **Require status checks to pass before merging:**
18
+ - Require branches to be up to date before merging.
19
+ - Add the status checks generated by the `.github/workflows/ci.yml` pipeline. Search for `main` (the job name in the CI file) or specific check names like `Run Nx Lint`, `Run Nx Test`, etc., and mark them as required.
20
+ - **Do not allow bypassing the above settings:** Ensure that even administrators are subject to these rules.
21
+ 6. Click **Save changes**.
22
+
23
+ ## Verification
24
+
25
+ Once configured, any pull request to the `main` branch will display the status checks. If a status check fails (e.g., due to a boundary violation or failing tests), the PR cannot be merged until the issue is resolved and the check passes.
package/CHANGELOG.md ADDED
@@ -0,0 +1,292 @@
1
+ ## 0.0.22 (2026-09-04)
2
+
3
+ ### 🚀 Features
4
+
5
+ - add GitHub Actions workflow to automate library releases using Nx Release ([3d6651f](https://github.com/OrigoStudio/origo-design/commit/3d6651f))
6
+ - scaffold playground application and e2e testing suite with initial editor component and schema registry ([f097894](https://github.com/OrigoStudio/origo-design/commit/f097894))
7
+ - add test setup configuration for vitest and browser environment mocks ([e75ad98](https://github.com/OrigoStudio/origo-design/commit/e75ad98))
8
+ - add tsconfig.app.json to playground package for application-specific build configuration ([3a9d8e4](https://github.com/OrigoStudio/origo-design/commit/3a9d8e4))
9
+
10
+ ### ❤️ Thank You
11
+
12
+ - Hardik Patel @hardikpatelse
13
+
14
+ ## 0.0.21 (2026-09-02)
15
+
16
+ ### 🚀 Features
17
+
18
+ - implementation of 6-2-local-schema-validation ([45e67f6](https://github.com/OrigoStudio/origo-design/commit/45e67f6))
19
+ - implement entity generator command and template ejection logic in CLI ([d7d519a](https://github.com/OrigoStudio/origo-design/commit/d7d519a))
20
+ - implement entity generator command with template customization and ejection support ([02a3193](https://github.com/OrigoStudio/origo-design/commit/02a3193))
21
+ - initialize sprint status tracking and create Epic 7 discovery research story ([b37b967](https://github.com/OrigoStudio/origo-design/commit/b37b967))
22
+ - add technical spike story for Epic 7 web worker CSP validation and ADR planning ([c977487](https://github.com/OrigoStudio/origo-design/commit/c977487))
23
+ - implement web worker CSP spike with supporting documentation and harness tools ([f57b1e5](https://github.com/OrigoStudio/origo-design/commit/f57b1e5))
24
+ - add web worker CSP spike and associated implementation documentation ([ebf5aa4](https://github.com/OrigoStudio/origo-design/commit/ebf5aa4))
25
+ - add generated bundle for epic7-worker-csp spike ([16ca492](https://github.com/OrigoStudio/origo-design/commit/16ca492))
26
+ - initialize sprint status tracking and retrospective verification story for npm packaging ([c326751](https://github.com/OrigoStudio/origo-design/commit/c326751))
27
+ - document e2e npm verification plan for cli package releases ([22dab4c](https://github.com/OrigoStudio/origo-design/commit/22dab4c))
28
+ - initialize web-based editor component and track security remediation tasks in implementation artifacts ([65716bd](https://github.com/OrigoStudio/origo-design/commit/65716bd))
29
+ - implement path traversal guards, remove process termination from library logic, and enable error cause preservation in @origo/cli ([0854f78](https://github.com/OrigoStudio/origo-design/commit/0854f78))
30
+ - implement validate command and schema validation logic for BADL files ([4f9e41d](https://github.com/OrigoStudio/origo-design/commit/4f9e41d))
31
+ - implement CLI framework with validation, testing, and CI/CD workflows ([ff6ce55](https://github.com/OrigoStudio/origo-design/commit/ff6ce55))
32
+ - initialize negative testing story and update sprint status tracking ([bbe5fdc](https://github.com/OrigoStudio/origo-design/commit/bbe5fdc))
33
+ - implement central test registry with validation tools and CI integration ([02cf656](https://github.com/OrigoStudio/origo-design/commit/02cf656))
34
+ - add centralized test registry tool with validation logic, CI integration, and documentation artifacts ([384c1c7](https://github.com/OrigoStudio/origo-design/commit/384c1c7))
35
+
36
+ ### ❤️ Thank You
37
+
38
+ - Hardik Patel @hardikpatelse
39
+
40
+ ## 0.0.20 (2026-08-25)
41
+
42
+ ### 🚀 Features
43
+
44
+ - implementation of 6-1-cli-initialization-and-scaffolding ([f6aca9e](https://github.com/OrigoStudio/origo-design/commit/f6aca9e))
45
+
46
+ ### ❤️ Thank You
47
+
48
+ - Hardik Patel @hardikpatelse
49
+
50
+ ## [Unreleased]
51
+
52
+ ### 🚀 Upcoming Features (Epic 6)
53
+
54
+ - **CLI Template Generation Strategy:** Established a tiered template generation pattern for `@origo/cli` (ADR-002). The CLI will use embedded, CI-validated templates by default (Zero-Config) to prevent architectural drift. An `--eject` flag will be available to copy templates into a local workspace directory (`.origo/templates`) for custom overrides.
55
+
56
+ ## 0.0.19 (2026-08-23)
57
+
58
+ ### 🚀 Features
59
+
60
+ - 5.5-5-define-secure-by-default-boilerplate-templates ([0eb6dde](https://github.com/OrigoStudio/origo-design/commit/0eb6dde))
61
+
62
+ ### ❤️ Thank You
63
+
64
+ - Hardik Patel @hardikpatelse
65
+
66
+ ## 0.0.18 (2026-08-23)
67
+
68
+ ### 🚀 Features
69
+
70
+ - 5.5-4-verify-core-compiler-source-map-preservation ([a3b0d9b](https://github.com/OrigoStudio/origo-design/commit/a3b0d9b))
71
+
72
+ ### 🩹 Fixes
73
+
74
+ - pipeline issue ([c1bbe47](https://github.com/OrigoStudio/origo-design/commit/c1bbe47))
75
+
76
+ ### ❤️ Thank You
77
+
78
+ - Hardik Patel @hardikpatelse
79
+
80
+ ## 0.0.17 (2026-08-21)
81
+
82
+ ### 🚀 Features
83
+
84
+ - 5.5-2-establish-end-to-end-qa-protocols ([a31d97a](https://github.com/OrigoStudio/origo-design/commit/a31d97a))
85
+ - 5.5-2-establish-end-to-end-qa-protocols ([d8990ae](https://github.com/OrigoStudio/origo-design/commit/d8990ae))
86
+ - 5.5-3-resolve-recursive-schema-resolution-tech-debt ([943e2e7](https://github.com/OrigoStudio/origo-design/commit/943e2e7))
87
+
88
+ ### ❤️ Thank You
89
+
90
+ - Hardik Patel @hardikpatelse
91
+
92
+ ## 0.0.16 (2026-08-21)
93
+
94
+ ### 🚀 Features
95
+
96
+ - 5.5-1-create-usability-quickstart-guide ([e740a1a](https://github.com/OrigoStudio/origo-design/commit/e740a1a))
97
+
98
+ ### ❤️ Thank You
99
+
100
+ - Hardik Patel @hardikpatelse
101
+
102
+ ## 0.0.15 (2026-08-20)
103
+
104
+ ### 🚀 Features
105
+
106
+ - story creation 5-5-reactive-state-event-binding ([21104c6](https://github.com/OrigoStudio/origo-design/commit/21104c6))
107
+ - implementation of 5-5-reactive-state-event-binding ([3a5948a](https://github.com/OrigoStudio/origo-design/commit/3a5948a))
108
+ - code-review 5-5-reactive-state-event-binding ([b235951](https://github.com/OrigoStudio/origo-design/commit/b235951))
109
+
110
+ ### ❤️ Thank You
111
+
112
+ - Hardik Patel @hardikpatelse
113
+
114
+ ## 0.0.14 (2026-08-19)
115
+
116
+ ### 🚀 Features
117
+
118
+ - add sprint status update and design token consumption story documentation ([49aec07](https://github.com/OrigoStudio/origo-design/commit/49aec07))
119
+ - 5-4-design-token-consumption ([c1f64ed](https://github.com/OrigoStudio/origo-design/commit/c1f64ed))
120
+
121
+ ### ❤️ Thank You
122
+
123
+ - Hardik Patel @hardikpatelse
124
+
125
+ ## 0.0.13 (2026-08-18)
126
+
127
+ ### 🚀 Features
128
+
129
+ - implement VBox, TextInput, and Button core primitives with accessibility testing and improved adapter coercion ([532417f](https://github.com/OrigoStudio/origo-design/commit/532417f))
130
+ - implement core primitives (Button, VBox, TextInput) with improved property coercion and accessibility support ([1be1def](https://github.com/OrigoStudio/origo-design/commit/1be1def))
131
+
132
+ ### ❤️ Thank You
133
+
134
+ - Hardik Patel @hardikpatelse
135
+
136
+ ## 0.0.12 (2026-08-17)
137
+
138
+ ### 🚀 Features
139
+
140
+ - implement InteractionContract-based OrigoAdapter and transition angular-renderer architecture to web adapter pattern ([1a8ea32](https://github.com/OrigoStudio/origo-design/commit/1a8ea32))
141
+
142
+ ### ❤️ Thank You
143
+
144
+ - Hardik Patel @hardikpatelse
145
+
146
+ ## 0.0.11 (2026-08-14)
147
+
148
+ ### 🚀 Features
149
+
150
+ - implement angular-renderer package with AST-based dynamic component instantiation and registry support ([500f396](https://github.com/OrigoStudio/origo-design/commit/500f396))
151
+ - initialize changelogs and package manifests for core, design-tokens, and angular-renderer packages ([10455ec](https://github.com/OrigoStudio/origo-design/commit/10455ec))
152
+
153
+ ### ❤️ Thank You
154
+
155
+ - Hardik Patel @hardikpatelse
156
+
157
+ ## 0.0.10 (2026-08-14)
158
+
159
+ ### 🚀 Features
160
+
161
+ - mark Epic 4 as complete and record its retrospective action items in sprint status ([37c2caa](https://github.com/OrigoStudio/origo-design/commit/37c2caa))
162
+ - implement extension API scaffolding, define Angular signals patterns, and add renderer test utilities ([d2adbed](https://github.com/OrigoStudio/origo-design/commit/d2adbed))
163
+
164
+ ### ❤️ Thank You
165
+
166
+ - Hardik Patel @hardikpatelse
167
+
168
+ ## 0.0.9 (2026-08-14)
169
+
170
+ ### 🚀 Features
171
+
172
+ - implement extension manager with manifest validation, permission security, and dependency resolution ([154b0d4](https://github.com/OrigoStudio/origo-design/commit/154b0d4))
173
+
174
+ ### ❤️ Thank You
175
+
176
+ - Hardik Patel @hardikpatelse
177
+
178
+ ## 0.0.8 (2026-08-14)
179
+
180
+ ### 🚀 Features
181
+
182
+ - implement formal extension manifest, capability negotiation, and lifecycle management in core extension-api ([808f113](https://github.com/OrigoStudio/origo-design/commit/808f113))
183
+
184
+ ### ❤️ Thank You
185
+
186
+ - Hardik Patel @hardikpatelse
187
+
188
+ ## 0.0.7 (2026-08-14)
189
+
190
+ ### 🚀 Features
191
+
192
+ - register behavior validation suite story and update sprint status tracking ([798ec74](https://github.com/OrigoStudio/origo-design/commit/798ec74))
193
+ - implement behavior validation test suite and expand AST validator test coverage ([d4c79ef](https://github.com/OrigoStudio/origo-design/commit/d4c79ef))
194
+
195
+ ### ❤️ Thank You
196
+
197
+ - Hardik Patel @hardikpatelse
198
+
199
+ ## 0.0.6 (2026-08-13)
200
+
201
+ ### 🚀 Features
202
+
203
+ - initialize sprint-status.yaml to track project development and retrospective action items ([66c6cdf](https://github.com/OrigoStudio/origo-design/commit/66c6cdf))
204
+ - implement AST validation engine with support for circular dependency detection and reference integrity checks ([afd48c9](https://github.com/OrigoStudio/origo-design/commit/afd48c9))
205
+ - initialize package.json for @origo/core with essential dependencies ([f819e96](https://github.com/OrigoStudio/origo-design/commit/f819e96))
206
+
207
+ ### ❤️ Thank You
208
+
209
+ - Hardik Patel @hardikpatelse
210
+
211
+ ## 0.0.5 (2026-08-13)
212
+
213
+ ### 🚀 Features
214
+
215
+ - add story 4.3 for security and permissions engine and update sprint status ([3eb4aae](https://github.com/OrigoStudio/origo-design/commit/3eb4aae))
216
+ - **core:** implement security and permissions engine ([d066d90](https://github.com/OrigoStudio/origo-design/commit/d066d90))
217
+
218
+ ### ❤️ Thank You
219
+
220
+ - Hardik Patel @hardikpatelse
221
+
222
+ ## 0.0.4 (2026-08-13)
223
+
224
+ ### 🚀 Features
225
+
226
+ - update sprint status and initialize story 4-2 contracts and implementations documentation ([4b37c59](https://github.com/OrigoStudio/origo-design/commit/4b37c59))
227
+ - implement semantic AST validator with domain, entity, and contract schema definitions ([e969466](https://github.com/OrigoStudio/origo-design/commit/e969466))
228
+ - add auto-generated Domain, Entity, Capability, and Contract TypeScript types for BADL definition ([10c337d](https://github.com/OrigoStudio/origo-design/commit/10c337d))
229
+
230
+ ### ❤️ Thank You
231
+
232
+ - Hardik Patel @hardikpatelse
233
+
234
+ ## 0.0.3 (2026-08-13)
235
+
236
+ ### 🚀 Features
237
+
238
+ - 4-1-capabilities-schema-parsing ([869c872](https://github.com/OrigoStudio/origo-design/commit/869c872))
239
+
240
+ ### ❤️ Thank You
241
+
242
+ - Hardik Patel @hardikpatelse
243
+
244
+ ## 0.0.2 (2026-08-12)
245
+
246
+ ### 🚀 Features
247
+
248
+ - document Origo Design functional requirements and architectural scope ([d1e0b7f](https://github.com/OrigoStudio/origo-design/commit/d1e0b7f))
249
+ - add sprint tracking artifacts and automation script for project bootstrapping ([ddc6149](https://github.com/OrigoStudio/origo-design/commit/ddc6149))
250
+ - initialize Nx monorepo workspace with core configuration and tooling ([fd0665a](https://github.com/OrigoStudio/origo-design/commit/fd0665a))
251
+ - configure Husky, lint-staged, and GitHub CI workflow for automated quality enforcement ([b6bf597](https://github.com/OrigoStudio/origo-design/commit/b6bf597))
252
+ - add GitHub Actions CI workflow, Husky pre-commit hooks, and update package.json with necessary configuration ([95b8bf1](https://github.com/OrigoStudio/origo-design/commit/95b8bf1))
253
+ - implement Husky pre-commit hooks and Nx-based lint-staged configuration ([9181885](https://github.com/OrigoStudio/origo-design/commit/9181885))
254
+ - implement performance benchmark harness with CI regression gating and SLA validation ([3230ac9](https://github.com/OrigoStudio/origo-design/commit/3230ac9))
255
+ - implement performance benchmark harness with regression and SLA gate logic ([350d472](https://github.com/OrigoStudio/origo-design/commit/350d472))
256
+ - initialize Starlight documentation site within the monorepo and add benchmark tools ([9a16b03](https://github.com/OrigoStudio/origo-design/commit/9a16b03))
257
+ - initialize and populate agent skill definitions, workflows, and technical knowledge resources ([8668c52](https://github.com/OrigoStudio/origo-design/commit/8668c52))
258
+ - add documentation story spec and update epic-1 status to done ([b612ea3](https://github.com/OrigoStudio/origo-design/commit/b612ea3))
259
+ - initialize Astro documentation site and relocate internal project scripts to the tools directory. ([1cd8e71](https://github.com/OrigoStudio/origo-design/commit/1cd8e71))
260
+ - initialize Starlight documentation site with Astro configuration ([20b8f44](https://github.com/OrigoStudio/origo-design/commit/20b8f44))
261
+ - scaffold @origo/design-tokens library with JSON schema validation and initial token definitions ([efbecc9](https://github.com/OrigoStudio/origo-design/commit/efbecc9))
262
+ - scaffold @origo/design-tokens package with JSON schema validation and Nx configuration ([ae61244](https://github.com/OrigoStudio/origo-design/commit/ae61244))
263
+ - add script to generate automated LLM review prompts from git diffs ([1ddbd39](https://github.com/OrigoStudio/origo-design/commit/1ddbd39))
264
+ - implement design token compilation pipeline with CSS variable parsing and generation ([0ffe822](https://github.com/OrigoStudio/origo-design/commit/0ffe822))
265
+ - add Nx project configuration for documentation site ([e6d8c70](https://github.com/OrigoStudio/origo-design/commit/e6d8c70))
266
+ - add Nx project configuration for documentation site [Self-Healing CI Rerun] ([ba64df4](https://github.com/OrigoStudio/origo-design/commit/ba64df4))
267
+ - add astro, @astrojs/starlight, and sharp dependencies to package.json ([1c40a92](https://github.com/OrigoStudio/origo-design/commit/1c40a92))
268
+ - implement runtime theme injector for parsing and applying CSS variables ([969fed5](https://github.com/OrigoStudio/origo-design/commit/969fed5))
269
+ - implement secure theme injection with CSS token validation and scope management ([a708825](https://github.com/OrigoStudio/origo-design/commit/a708825))
270
+ - implement theme-fetcher runtime utility and create angular-renderer package with theme initialization provider ([1d5b7ab](https://github.com/OrigoStudio/origo-design/commit/1d5b7ab))
271
+ - implement runtime theme fetching, injection, and Angular renderer integration to complete the token resolution contract ([87f583e](https://github.com/OrigoStudio/origo-design/commit/87f583e))
272
+ - initialize Epic 3 planning and document Epic 2 retrospective findings ([4cc46f9](https://github.com/OrigoStudio/origo-design/commit/4cc46f9))
273
+ - add design tokens documentation and update Starlight navigation configuration ([ba2404a](https://github.com/OrigoStudio/origo-design/commit/ba2404a))
274
+ - implement domain and entity schema parser with Ajv-based validation and circular dependency detection in new @origo/core package ([4165b5f](https://github.com/OrigoStudio/origo-design/commit/4165b5f))
275
+ - implement deterministic canonical AST serialization and interfaces in @origo/core ([c35a2c9](https://github.com/OrigoStudio/origo-design/commit/c35a2c9))
276
+ - implement AST validation engine and associated implementation artifacts ([49cbdf0](https://github.com/OrigoStudio/origo-design/commit/49cbdf0))
277
+ - implement AST validation engine and documentation for semantic versioning workflow ([838e472](https://github.com/OrigoStudio/origo-design/commit/838e472))
278
+ - initialize Starlight content collections configuration ([f6a5067](https://github.com/OrigoStudio/origo-design/commit/f6a5067))
279
+ - implement automated semantic versioning with Nx release and commitlint enforcement ([5e7a25e](https://github.com/OrigoStudio/origo-design/commit/5e7a25e))
280
+ - enforce JSON import standard and document AST validator ([162db09](https://github.com/OrigoStudio/origo-design/commit/162db09))
281
+ - initialize 3-5-3-defensive-ast-traversal story and update sprint status ([4f82702](https://github.com/OrigoStudio/origo-design/commit/4f82702))
282
+ - implement defensive AST validation with depth limiting, circular reference detection, and graceful error reporting ([d2f5f98](https://github.com/OrigoStudio/origo-design/commit/d2f5f98))
283
+ - **design-tokens:** implement css compilation pipeline ([7bd632d](https://github.com/OrigoStudio/origo-design/commit/7bd632d))
284
+ - **nx-cloud:** setup nx cloud workspace ([ee09042](https://github.com/OrigoStudio/origo-design/commit/ee09042))
285
+
286
+ ### 🩹 Fixes
287
+
288
+ - **docs:** update starlight config syntax for v0.39+ ([e44f4f1](https://github.com/OrigoStudio/origo-design/commit/e44f4f1))
289
+
290
+ ### ❤️ Thank You
291
+
292
+ - Hardik Patel @hardikpatelse
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Origo Studio
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # origo-design
2
+
3
+ ## Semantic Versioning and Commits
4
+
5
+ This repository enforces **Conventional Commits** for all changes. Our CI pipeline relies on these commit messages to automatically determine semantic version bumps for packages (like `@origo/core`) using `nx release`.
6
+
7
+ - `fix: ...` -> Patch release (e.g. 1.0.0 to 1.0.1)
8
+ - `feat: ...` -> Minor release (e.g. 1.0.0 to 1.1.0)
9
+ - `feat!: ...` or `BREAKING CHANGE: ...` -> Major release (e.g. 1.0.0 to 2.0.0)
10
+
11
+ A commit hook (`commitlint`) runs locally to verify that commit messages adhere to the `config-conventional` specification. If your commit is rejected, please format it properly.
@@ -0,0 +1,6 @@
1
+ module.exports = {
2
+ extends: ['@commitlint/config-conventional'],
3
+ rules: {
4
+ 'header-max-length': [2, 'always', 250], // Increased from the default of 100
5
+ },
6
+ };
@@ -0,0 +1,92 @@
1
+ ## 0.0.22 (2026-09-04)
2
+
3
+ ### 🚀 Features
4
+
5
+ - scaffold playground application and e2e testing suite with initial editor component and schema registry ([f097894](https://github.com/OrigoStudio/origo-design/commit/f097894))
6
+ - add GitHub Actions workflow to automate library releases using Nx Release ([3d6651f](https://github.com/OrigoStudio/origo-design/commit/3d6651f))
7
+
8
+ ### ❤️ Thank You
9
+
10
+ - Hardik Patel @hardikpatelse
11
+
12
+ ## 0.0.21 (2026-09-02)
13
+
14
+ ### 🚀 Features
15
+
16
+ - add centralized test registry tool with validation logic, CI integration, and documentation artifacts ([384c1c7](https://github.com/OrigoStudio/origo-design/commit/384c1c7))
17
+ - implement central test registry with validation tools and CI integration ([02cf656](https://github.com/OrigoStudio/origo-design/commit/02cf656))
18
+ - initialize negative testing story and update sprint status tracking ([bbe5fdc](https://github.com/OrigoStudio/origo-design/commit/bbe5fdc))
19
+ - implement CLI framework with validation, testing, and CI/CD workflows ([ff6ce55](https://github.com/OrigoStudio/origo-design/commit/ff6ce55))
20
+ - implement validate command and schema validation logic for BADL files ([4f9e41d](https://github.com/OrigoStudio/origo-design/commit/4f9e41d))
21
+ - implement path traversal guards, remove process termination from library logic, and enable error cause preservation in @origo/cli ([0854f78](https://github.com/OrigoStudio/origo-design/commit/0854f78))
22
+ - initialize web-based editor component and track security remediation tasks in implementation artifacts ([65716bd](https://github.com/OrigoStudio/origo-design/commit/65716bd))
23
+ - document e2e npm verification plan for cli package releases ([22dab4c](https://github.com/OrigoStudio/origo-design/commit/22dab4c))
24
+ - initialize sprint status tracking and retrospective verification story for npm packaging ([c326751](https://github.com/OrigoStudio/origo-design/commit/c326751))
25
+ - add generated bundle for epic7-worker-csp spike ([16ca492](https://github.com/OrigoStudio/origo-design/commit/16ca492))
26
+ - add web worker CSP spike and associated implementation documentation ([ebf5aa4](https://github.com/OrigoStudio/origo-design/commit/ebf5aa4))
27
+ - implement web worker CSP spike with supporting documentation and harness tools ([f57b1e5](https://github.com/OrigoStudio/origo-design/commit/f57b1e5))
28
+ - add technical spike story for Epic 7 web worker CSP validation and ADR planning ([c977487](https://github.com/OrigoStudio/origo-design/commit/c977487))
29
+ - initialize sprint status tracking and create Epic 7 discovery research story ([b37b967](https://github.com/OrigoStudio/origo-design/commit/b37b967))
30
+ - implement entity generator command with template customization and ejection support ([02a3193](https://github.com/OrigoStudio/origo-design/commit/02a3193))
31
+ - implement entity generator command and template ejection logic in CLI ([d7d519a](https://github.com/OrigoStudio/origo-design/commit/d7d519a))
32
+ - implementation of 6-2-local-schema-validation ([45e67f6](https://github.com/OrigoStudio/origo-design/commit/45e67f6))
33
+
34
+ ### ❤️ Thank You
35
+
36
+ - Hardik Patel @hardikpatelse
37
+
38
+ ## 0.0.20 (2026-08-25)
39
+
40
+ ### 🚀 Features
41
+
42
+ - implementation of 6-1-cli-initialization-and-scaffolding ([f6aca9e](https://github.com/OrigoStudio/origo-design/commit/f6aca9e))
43
+
44
+ ### ❤️ Thank You
45
+
46
+ - Hardik Patel @hardikpatelse
47
+
48
+ ## 0.0.19 (2026-08-23)
49
+
50
+ ### 🚀 Features
51
+
52
+ - 5.5-5-define-secure-by-default-boilerplate-templates ([0eb6dde](https://github.com/OrigoStudio/origo-design/commit/0eb6dde))
53
+
54
+ ### ❤️ Thank You
55
+
56
+ - Hardik Patel @hardikpatelse
57
+
58
+ ## 0.0.18 (2026-08-23)
59
+
60
+ ### 🚀 Features
61
+
62
+ - 5.5-4-verify-core-compiler-source-map-preservation ([a3b0d9b](https://github.com/OrigoStudio/origo-design/commit/a3b0d9b))
63
+
64
+ ### 🩹 Fixes
65
+
66
+ - pipeline issue ([c1bbe47](https://github.com/OrigoStudio/origo-design/commit/c1bbe47))
67
+
68
+ ### ❤️ Thank You
69
+
70
+ - Hardik Patel @hardikpatelse
71
+
72
+ ## 0.0.17 (2026-08-21)
73
+
74
+ ### 🚀 Features
75
+
76
+ - 5.5-3-resolve-recursive-schema-resolution-tech-debt ([943e2e7](https://github.com/OrigoStudio/origo-design/commit/943e2e7))
77
+ - 5.5-2-establish-end-to-end-qa-protocols ([d8990ae](https://github.com/OrigoStudio/origo-design/commit/d8990ae))
78
+ - 5.5-2-establish-end-to-end-qa-protocols ([a31d97a](https://github.com/OrigoStudio/origo-design/commit/a31d97a))
79
+
80
+ ### ❤️ Thank You
81
+
82
+ - Hardik Patel @hardikpatelse
83
+
84
+ ## 0.0.16 (2026-08-21)
85
+
86
+ ### 🚀 Features
87
+
88
+ - 5.5-1-create-usability-quickstart-guide ([e740a1a](https://github.com/OrigoStudio/origo-design/commit/e740a1a))
89
+
90
+ ### ❤️ Thank You
91
+
92
+ - Hardik Patel @hardikpatelse
@@ -0,0 +1,11 @@
1
+ # cli
2
+
3
+ This library was generated with [Nx](https://nx.dev).
4
+
5
+ ## Building
6
+
7
+ Run `nx build cli` to build the library.
8
+
9
+ ## Running unit tests
10
+
11
+ Run `nx test cli` to execute the unit tests via [Jest](https://jestjs.io).
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "@origo/cli",
3
+ "version": "0.0.22",
4
+ "private": true,
5
+ "type": "commonjs",
6
+ "main": "./src/index.js",
7
+ "types": "./src/index.d.ts",
8
+ "bin": {
9
+ "origo": "./src/main.js"
10
+ },
11
+ "dependencies": {
12
+ "@origo/core": "0.0.22",
13
+ "commander": "^15.0.0",
14
+ "tslib": "^2.3.0"
15
+ }
16
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "@origo/cli",
3
+ "version": "0.0.22",
4
+ "private": true,
5
+ "type": "commonjs",
6
+ "main": "./src/index.js",
7
+ "types": "./src/index.d.ts",
8
+ "bin": {
9
+ "origo": "./src/main.js"
10
+ },
11
+ "dependencies": {
12
+ "@origo/core": "0.0.22",
13
+ "commander": "^15.0.0",
14
+ "tslib": "^2.3.0"
15
+ }
16
+ }
@@ -0,0 +1,2 @@
1
+ import { Command } from 'commander';
2
+ export declare function entityCommand(): Command;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.entityCommand = entityCommand;
4
+ const commander_1 = require("commander");
5
+ const generator_1 = require("../../lib/generator");
6
+ const errors_1 = require("../../utils/errors");
7
+ function entityCommand() {
8
+ const cmd = new commander_1.Command('entity');
9
+ cmd
10
+ .description('Generate a new entity BADL schema')
11
+ .argument('<name>', 'Entity name (PascalCase, e.g. User)')
12
+ .option('--force', 'Overwrite existing file if it exists')
13
+ .option('--json', 'Output machine-readable JSON format')
14
+ .action(async (name, options) => {
15
+ try {
16
+ await (0, generator_1.generateEntity)(name, { force: options.force, json: options.json });
17
+ }
18
+ catch (error) {
19
+ (0, errors_1.handleError)(error, { json: options.json });
20
+ }
21
+ });
22
+ return cmd;
23
+ }
24
+ //# sourceMappingURL=entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity.js","sourceRoot":"","sources":["../../../../../../packages/cli/src/commands/generate/entity.ts"],"names":[],"mappings":";;AAIA,sCAeC;AAnBD,yCAAoC;AACpC,mDAAqD;AACrD,+CAAiD;AAEjD,SAAgB,aAAa;IAC3B,MAAM,GAAG,GAAG,IAAI,mBAAO,CAAC,QAAQ,CAAC,CAAC;IAClC,GAAG;SACA,WAAW,CAAC,mCAAmC,CAAC;SAChD,QAAQ,CAAC,QAAQ,EAAE,qCAAqC,CAAC;SACzD,MAAM,CAAC,SAAS,EAAE,sCAAsC,CAAC;SACzD,MAAM,CAAC,QAAQ,EAAE,qCAAqC,CAAC;SACvD,MAAM,CAAC,KAAK,EAAE,IAAY,EAAE,OAA4C,EAAE,EAAE;QAC3E,IAAI,CAAC;YACH,MAAM,IAAA,0BAAc,EAAC,IAAI,EAAE,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;QAC3E,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACxB,IAAA,oBAAW,EAAC,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;QAC7C,CAAC;IACH,CAAC,CAAC,CAAC;IACL,OAAO,GAAG,CAAC;AACb,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { Command } from 'commander';
2
+ export declare function generateCommand(): Command;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.generateCommand = generateCommand;
4
+ const commander_1 = require("commander");
5
+ const entity_1 = require("./entity");
6
+ const generator_1 = require("../../lib/generator");
7
+ const errors_1 = require("../../utils/errors");
8
+ function generateCommand() {
9
+ const cmd = new commander_1.Command('generate').description('Generate Origo artifacts');
10
+ cmd.addCommand((0, entity_1.entityCommand)());
11
+ cmd
12
+ .option('--eject', 'Copy internal templates to .origo/templates/ for customization')
13
+ .option('--force', 'Overwrite existing templates if they exist')
14
+ .option('--json', 'Output machine-readable JSON format')
15
+ .action(async (options) => {
16
+ if (options.eject) {
17
+ try {
18
+ await (0, generator_1.ejectTemplates)({ force: options.force, json: options.json });
19
+ }
20
+ catch (error) {
21
+ (0, errors_1.handleError)(error, { json: options.json });
22
+ }
23
+ }
24
+ else {
25
+ cmd.outputHelp();
26
+ }
27
+ });
28
+ return cmd;
29
+ }
30
+ //# sourceMappingURL=index.js.map