@origostudio/core 0.0.40

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 (40) hide show
  1. package/CHANGELOG.md +365 -0
  2. package/README.md +11 -0
  3. package/package.json +25 -0
  4. package/package.json.bak +25 -0
  5. package/src/extension-api/extension-manager.d.ts +35 -0
  6. package/src/extension-api/extension-manager.js +300 -0
  7. package/src/extension-api/extension-manager.js.map +1 -0
  8. package/src/extension-api/index.d.ts +2 -0
  9. package/src/extension-api/index.js +6 -0
  10. package/src/extension-api/index.js.map +1 -0
  11. package/src/extension-api/types.d.ts +34 -0
  12. package/src/extension-api/types.js +3 -0
  13. package/src/extension-api/types.js.map +1 -0
  14. package/src/index.d.ts +3 -0
  15. package/src/index.js +7 -0
  16. package/src/index.js.map +1 -0
  17. package/src/schemas/capability.schema.json +104 -0
  18. package/src/schemas/contract.schema.json +52 -0
  19. package/src/schemas/domain.schema.json +47 -0
  20. package/src/schemas/entity.schema.json +72 -0
  21. package/src/schemas/extension.schema.json +39 -0
  22. package/src/schemas/permission.schema.json +21 -0
  23. package/src/types/ast.d.ts +17 -0
  24. package/src/types/ast.js +3 -0
  25. package/src/types/ast.js.map +1 -0
  26. package/src/types/domain.d.ts +101 -0
  27. package/src/types/domain.js +8 -0
  28. package/src/types/domain.js.map +1 -0
  29. package/src/types/validation.d.ts +12 -0
  30. package/src/types/validation.js +16 -0
  31. package/src/types/validation.js.map +1 -0
  32. package/src/validator/ast-validator.d.ts +11 -0
  33. package/src/validator/ast-validator.js +388 -0
  34. package/src/validator/ast-validator.js.map +1 -0
  35. package/src/validator/index.d.ts +23 -0
  36. package/src/validator/index.js +143 -0
  37. package/src/validator/index.js.map +1 -0
  38. package/src/validator/serializer.d.ts +11 -0
  39. package/src/validator/serializer.js +99 -0
  40. package/src/validator/serializer.js.map +1 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,365 @@
1
+ ## 0.0.40 (2026-09-29)
2
+
3
+ ### 🚀 Features
4
+
5
+ - initialize packages, documentation site, and release workflow ([e0f7371](https://github.com/OrigoStudio/origo-design/commit/e0f7371))
6
+
7
+ ### ❤️ Thank You
8
+
9
+ - Hardik Patel @hardikpatelse
10
+
11
+ ## 0.0.39 (2026-09-29)
12
+
13
+ ### 🚀 Features
14
+
15
+ - add GitHub Actions release workflow and package configurations for core and angular-renderer ([d80abc7](https://github.com/OrigoStudio/origo-design/commit/d80abc7))
16
+
17
+ ### ❤️ Thank You
18
+
19
+ - Hardik Patel @hardikpatelse
20
+
21
+ ## 0.0.38 (2026-09-28)
22
+
23
+ This was a version bump only for core to align it with other projects, there were no code changes.
24
+
25
+ ## 0.0.37 (2026-09-24)
26
+
27
+ This was a version bump only for core to align it with other projects, there were no code changes.
28
+
29
+ ## 0.0.36 (2026-09-23)
30
+
31
+ This was a version bump only for core to align it with other projects, there were no code changes.
32
+
33
+ ## 0.0.35 (2026-09-22)
34
+
35
+ This was a version bump only for core to align it with other projects, there were no code changes.
36
+
37
+ ## 0.0.34 (2026-09-22)
38
+
39
+ This was a version bump only for core to align it with other projects, there were no code changes.
40
+
41
+ ## 0.0.33 (2026-09-21)
42
+
43
+ This was a version bump only for core to align it with other projects, there were no code changes.
44
+
45
+ ## 0.0.32 (2026-09-19)
46
+
47
+ This was a version bump only for core to align it with other projects, there were no code changes.
48
+
49
+ ## 0.0.31 (2026-09-16)
50
+
51
+ This was a version bump only for core to align it with other projects, there were no code changes.
52
+
53
+ ## 0.0.30 (2026-09-15)
54
+
55
+ This was a version bump only for core to align it with other projects, there were no code changes.
56
+
57
+ ## 0.0.29 (2026-09-14)
58
+
59
+ This was a version bump only for core to align it with other projects, there were no code changes.
60
+
61
+ ## 0.0.28 (2026-09-14)
62
+
63
+ This was a version bump only for core to align it with other projects, there were no code changes.
64
+
65
+ ## 0.0.27 (2026-09-09)
66
+
67
+ This was a version bump only for core to align it with other projects, there were no code changes.
68
+
69
+ ## 0.0.26 (2026-09-08)
70
+
71
+ This was a version bump only for core to align it with other projects, there were no code changes.
72
+
73
+ ## 0.0.25 (2026-09-07)
74
+
75
+ ### 🚀 Features
76
+
77
+ - initialize package.json files for cli, core, design-tokens, playground, and angular-renderer packages ([2dee8cc](https://github.com/OrigoStudio/origo-design/commit/2dee8cc))
78
+
79
+ ### ❤️ Thank You
80
+
81
+ - Hardik Patel @hardikpatelse
82
+
83
+ ## 0.0.24 (2026-09-07)
84
+
85
+ This was a version bump only for core to align it with other projects, there were no code changes.
86
+
87
+ ## 0.0.23 (2026-09-07)
88
+
89
+ This was a version bump only for core to align it with other projects, there were no code changes.
90
+
91
+ ## 0.0.22 (2026-09-04)
92
+
93
+ ### 🚀 Features
94
+
95
+ - scaffold playground application and e2e testing suite with initial editor component and schema registry ([f097894](https://github.com/OrigoStudio/origo-design/commit/f097894))
96
+ - add GitHub Actions workflow to automate library releases using Nx Release ([3d6651f](https://github.com/OrigoStudio/origo-design/commit/3d6651f))
97
+
98
+ ### ❤️ Thank You
99
+
100
+ - Hardik Patel @hardikpatelse
101
+
102
+ ## 0.0.21 (2026-09-02)
103
+
104
+ ### 🚀 Features
105
+
106
+ - add centralized test registry tool with validation logic, CI integration, and documentation artifacts ([384c1c7](https://github.com/OrigoStudio/origo-design/commit/384c1c7))
107
+ - implement central test registry with validation tools and CI integration ([02cf656](https://github.com/OrigoStudio/origo-design/commit/02cf656))
108
+ - initialize negative testing story and update sprint status tracking ([bbe5fdc](https://github.com/OrigoStudio/origo-design/commit/bbe5fdc))
109
+ - implement CLI framework with validation, testing, and CI/CD workflows ([ff6ce55](https://github.com/OrigoStudio/origo-design/commit/ff6ce55))
110
+ - implement validate command and schema validation logic for BADL files ([4f9e41d](https://github.com/OrigoStudio/origo-design/commit/4f9e41d))
111
+ - 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))
112
+ - initialize web-based editor component and track security remediation tasks in implementation artifacts ([65716bd](https://github.com/OrigoStudio/origo-design/commit/65716bd))
113
+ - document e2e npm verification plan for cli package releases ([22dab4c](https://github.com/OrigoStudio/origo-design/commit/22dab4c))
114
+ - initialize sprint status tracking and retrospective verification story for npm packaging ([c326751](https://github.com/OrigoStudio/origo-design/commit/c326751))
115
+ - add generated bundle for epic7-worker-csp spike ([16ca492](https://github.com/OrigoStudio/origo-design/commit/16ca492))
116
+ - add web worker CSP spike and associated implementation documentation ([ebf5aa4](https://github.com/OrigoStudio/origo-design/commit/ebf5aa4))
117
+ - implement web worker CSP spike with supporting documentation and harness tools ([f57b1e5](https://github.com/OrigoStudio/origo-design/commit/f57b1e5))
118
+ - add technical spike story for Epic 7 web worker CSP validation and ADR planning ([c977487](https://github.com/OrigoStudio/origo-design/commit/c977487))
119
+ - initialize sprint status tracking and create Epic 7 discovery research story ([b37b967](https://github.com/OrigoStudio/origo-design/commit/b37b967))
120
+ - implement entity generator command with template customization and ejection support ([02a3193](https://github.com/OrigoStudio/origo-design/commit/02a3193))
121
+ - implement entity generator command and template ejection logic in CLI ([d7d519a](https://github.com/OrigoStudio/origo-design/commit/d7d519a))
122
+ - implementation of 6-2-local-schema-validation ([45e67f6](https://github.com/OrigoStudio/origo-design/commit/45e67f6))
123
+
124
+ ### ❤️ Thank You
125
+
126
+ - Hardik Patel @hardikpatelse
127
+
128
+ ## 0.0.20 (2026-08-25)
129
+
130
+ ### 🚀 Features
131
+
132
+ - implementation of 6-1-cli-initialization-and-scaffolding ([f6aca9e](https://github.com/OrigoStudio/origo-design/commit/f6aca9e))
133
+
134
+ ### ❤️ Thank You
135
+
136
+ - Hardik Patel @hardikpatelse
137
+
138
+ ## 0.0.19 (2026-08-23)
139
+
140
+ ### 🚀 Features
141
+
142
+ - 5.5-5-define-secure-by-default-boilerplate-templates ([0eb6dde](https://github.com/OrigoStudio/origo-design/commit/0eb6dde))
143
+
144
+ ### ❤️ Thank You
145
+
146
+ - Hardik Patel @hardikpatelse
147
+
148
+ ## 0.0.18 (2026-08-23)
149
+
150
+ ### 🚀 Features
151
+
152
+ - 5.5-4-verify-core-compiler-source-map-preservation ([a3b0d9b](https://github.com/OrigoStudio/origo-design/commit/a3b0d9b))
153
+
154
+ ### 🩹 Fixes
155
+
156
+ - pipeline issue ([c1bbe47](https://github.com/OrigoStudio/origo-design/commit/c1bbe47))
157
+
158
+ ### ❤️ Thank You
159
+
160
+ - Hardik Patel @hardikpatelse
161
+
162
+ ## 0.0.17 (2026-08-21)
163
+
164
+ ### 🚀 Features
165
+
166
+ - 5.5-3-resolve-recursive-schema-resolution-tech-debt ([943e2e7](https://github.com/OrigoStudio/origo-design/commit/943e2e7))
167
+ - 5.5-2-establish-end-to-end-qa-protocols ([d8990ae](https://github.com/OrigoStudio/origo-design/commit/d8990ae))
168
+ - 5.5-2-establish-end-to-end-qa-protocols ([a31d97a](https://github.com/OrigoStudio/origo-design/commit/a31d97a))
169
+
170
+ ### ❤️ Thank You
171
+
172
+ - Hardik Patel @hardikpatelse
173
+
174
+ ## 0.0.16 (2026-08-21)
175
+
176
+ ### 🚀 Features
177
+
178
+ - 5.5-1-create-usability-quickstart-guide ([e740a1a](https://github.com/OrigoStudio/origo-design/commit/e740a1a))
179
+
180
+ ### ❤️ Thank You
181
+
182
+ - Hardik Patel @hardikpatelse
183
+
184
+ ## 0.0.15 (2026-08-20)
185
+
186
+ ### 🚀 Features
187
+
188
+ - code-review 5-5-reactive-state-event-binding ([b235951](https://github.com/OrigoStudio/origo-design/commit/b235951))
189
+ - implementation of 5-5-reactive-state-event-binding ([3a5948a](https://github.com/OrigoStudio/origo-design/commit/3a5948a))
190
+ - story creation 5-5-reactive-state-event-binding ([21104c6](https://github.com/OrigoStudio/origo-design/commit/21104c6))
191
+
192
+ ### ❤️ Thank You
193
+
194
+ - Hardik Patel @hardikpatelse
195
+
196
+ ## 0.0.14 (2026-08-19)
197
+
198
+ ### 🚀 Features
199
+
200
+ - 5-4-design-token-consumption ([c1f64ed](https://github.com/OrigoStudio/origo-design/commit/c1f64ed))
201
+ - add sprint status update and design token consumption story documentation ([49aec07](https://github.com/OrigoStudio/origo-design/commit/49aec07))
202
+
203
+ ### ❤️ Thank You
204
+
205
+ - Hardik Patel @hardikpatelse
206
+
207
+ ## 0.0.13 (2026-08-18)
208
+
209
+ ### 🚀 Features
210
+
211
+ - implement core primitives (Button, VBox, TextInput) with improved property coercion and accessibility support ([1be1def](https://github.com/OrigoStudio/origo-design/commit/1be1def))
212
+ - implement VBox, TextInput, and Button core primitives with accessibility testing and improved adapter coercion ([532417f](https://github.com/OrigoStudio/origo-design/commit/532417f))
213
+
214
+ ### ❤️ Thank You
215
+
216
+ - Hardik Patel @hardikpatelse
217
+
218
+ ## 0.0.12 (2026-08-17)
219
+
220
+ ### 🚀 Features
221
+
222
+ - implement InteractionContract-based OrigoAdapter and transition angular-renderer architecture to web adapter pattern ([1a8ea32](https://github.com/OrigoStudio/origo-design/commit/1a8ea32))
223
+
224
+ ### ❤️ Thank You
225
+
226
+ - Hardik Patel @hardikpatelse
227
+
228
+ ## 0.0.11 (2026-08-14)
229
+
230
+ ### 🚀 Features
231
+
232
+ - implement angular-renderer package with AST-based dynamic component instantiation and registry support ([500f396](https://github.com/OrigoStudio/origo-design/commit/500f396))
233
+
234
+ ### ❤️ Thank You
235
+
236
+ - Hardik Patel @hardikpatelse
237
+
238
+ ## 0.0.10 (2026-08-14)
239
+
240
+ ### 🚀 Features
241
+
242
+ - implement extension API scaffolding, define Angular signals patterns, and add renderer test utilities ([d2adbed](https://github.com/OrigoStudio/origo-design/commit/d2adbed))
243
+ - mark Epic 4 as complete and record its retrospective action items in sprint status ([37c2caa](https://github.com/OrigoStudio/origo-design/commit/37c2caa))
244
+
245
+ ### ❤️ Thank You
246
+
247
+ - Hardik Patel @hardikpatelse
248
+
249
+ ## 0.0.9 (2026-08-14)
250
+
251
+ ### 🚀 Features
252
+
253
+ - implement extension manager with manifest validation, permission security, and dependency resolution ([154b0d4](https://github.com/OrigoStudio/origo-design/commit/154b0d4))
254
+
255
+ ### ❤️ Thank You
256
+
257
+ - Hardik Patel @hardikpatelse
258
+
259
+ ## 0.0.8 (2026-08-14)
260
+
261
+ ### 🚀 Features
262
+
263
+ - implement formal extension manifest, capability negotiation, and lifecycle management in core extension-api ([808f113](https://github.com/OrigoStudio/origo-design/commit/808f113))
264
+
265
+ ### ❤️ Thank You
266
+
267
+ - Hardik Patel @hardikpatelse
268
+
269
+ ## 0.0.7 (2026-08-14)
270
+
271
+ ### 🚀 Features
272
+
273
+ - implement behavior validation test suite and expand AST validator test coverage ([d4c79ef](https://github.com/OrigoStudio/origo-design/commit/d4c79ef))
274
+ - register behavior validation suite story and update sprint status tracking ([798ec74](https://github.com/OrigoStudio/origo-design/commit/798ec74))
275
+
276
+ ### ❤️ Thank You
277
+
278
+ - Hardik Patel @hardikpatelse
279
+
280
+ ## 0.0.6 (2026-08-13)
281
+
282
+ ### 🚀 Features
283
+
284
+ - initialize package.json for @origo/core with essential dependencies ([f819e96](https://github.com/OrigoStudio/origo-design/commit/f819e96))
285
+ - implement AST validation engine with support for circular dependency detection and reference integrity checks ([afd48c9](https://github.com/OrigoStudio/origo-design/commit/afd48c9))
286
+ - initialize sprint-status.yaml to track project development and retrospective action items ([66c6cdf](https://github.com/OrigoStudio/origo-design/commit/66c6cdf))
287
+
288
+ ### ❤️ Thank You
289
+
290
+ - Hardik Patel @hardikpatelse
291
+
292
+ ## 0.0.5 (2026-08-13)
293
+
294
+ ### 🚀 Features
295
+
296
+ - **core:** implement security and permissions engine ([d066d90](https://github.com/OrigoStudio/origo-design/commit/d066d90))
297
+ - add story 4.3 for security and permissions engine and update sprint status ([3eb4aae](https://github.com/OrigoStudio/origo-design/commit/3eb4aae))
298
+
299
+ ### ❤️ Thank You
300
+
301
+ - Hardik Patel @hardikpatelse
302
+
303
+ ## 0.0.4 (2026-08-13)
304
+
305
+ ### 🚀 Features
306
+
307
+ - add auto-generated Domain, Entity, Capability, and Contract TypeScript types for BADL definition ([10c337d](https://github.com/OrigoStudio/origo-design/commit/10c337d))
308
+ - implement semantic AST validator with domain, entity, and contract schema definitions ([e969466](https://github.com/OrigoStudio/origo-design/commit/e969466))
309
+ - update sprint status and initialize story 4-2 contracts and implementations documentation ([4b37c59](https://github.com/OrigoStudio/origo-design/commit/4b37c59))
310
+
311
+ ### ❤️ Thank You
312
+
313
+ - Hardik Patel @hardikpatelse
314
+
315
+ ## 0.0.3 (2026-08-13)
316
+
317
+ ### 🚀 Features
318
+
319
+ - 4-1-capabilities-schema-parsing ([869c872](https://github.com/OrigoStudio/origo-design/commit/869c872))
320
+
321
+ ### ❤️ Thank You
322
+
323
+ - Hardik Patel @hardikpatelse
324
+
325
+ ## 0.0.2 (2026-08-12)
326
+
327
+ ### 🚀 Features
328
+
329
+ - implement defensive AST validation with depth limiting, circular reference detection, and graceful error reporting ([d2f5f98](https://github.com/OrigoStudio/origo-design/commit/d2f5f98))
330
+ - initialize 3-5-3-defensive-ast-traversal story and update sprint status ([4f82702](https://github.com/OrigoStudio/origo-design/commit/4f82702))
331
+ - enforce JSON import standard and document AST validator ([162db09](https://github.com/OrigoStudio/origo-design/commit/162db09))
332
+ - implement automated semantic versioning with Nx release and commitlint enforcement ([5e7a25e](https://github.com/OrigoStudio/origo-design/commit/5e7a25e))
333
+ - implement AST validation engine and documentation for semantic versioning workflow ([838e472](https://github.com/OrigoStudio/origo-design/commit/838e472))
334
+ - implement AST validation engine and associated implementation artifacts ([49cbdf0](https://github.com/OrigoStudio/origo-design/commit/49cbdf0))
335
+ - implement deterministic canonical AST serialization and interfaces in @origo/core ([c35a2c9](https://github.com/OrigoStudio/origo-design/commit/c35a2c9))
336
+ - 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))
337
+ - add design tokens documentation and update Starlight navigation configuration ([ba2404a](https://github.com/OrigoStudio/origo-design/commit/ba2404a))
338
+ - initialize Epic 3 planning and document Epic 2 retrospective findings ([4cc46f9](https://github.com/OrigoStudio/origo-design/commit/4cc46f9))
339
+ - implement runtime theme fetching, injection, and Angular renderer integration to complete the token resolution contract ([87f583e](https://github.com/OrigoStudio/origo-design/commit/87f583e))
340
+ - implement theme-fetcher runtime utility and create angular-renderer package with theme initialization provider ([1d5b7ab](https://github.com/OrigoStudio/origo-design/commit/1d5b7ab))
341
+ - implement secure theme injection with CSS token validation and scope management ([a708825](https://github.com/OrigoStudio/origo-design/commit/a708825))
342
+ - implement runtime theme injector for parsing and applying CSS variables ([969fed5](https://github.com/OrigoStudio/origo-design/commit/969fed5))
343
+ - add astro, @astrojs/starlight, and sharp dependencies to package.json ([1c40a92](https://github.com/OrigoStudio/origo-design/commit/1c40a92))
344
+ - implement design token compilation pipeline with CSS variable parsing and generation ([0ffe822](https://github.com/OrigoStudio/origo-design/commit/0ffe822))
345
+ - **nx-cloud:** setup nx cloud workspace ([ee09042](https://github.com/OrigoStudio/origo-design/commit/ee09042))
346
+ - **design-tokens:** implement css compilation pipeline ([7bd632d](https://github.com/OrigoStudio/origo-design/commit/7bd632d))
347
+ - add script to generate automated LLM review prompts from git diffs ([1ddbd39](https://github.com/OrigoStudio/origo-design/commit/1ddbd39))
348
+ - scaffold @origo/design-tokens package with JSON schema validation and Nx configuration ([ae61244](https://github.com/OrigoStudio/origo-design/commit/ae61244))
349
+ - scaffold @origo/design-tokens library with JSON schema validation and initial token definitions ([efbecc9](https://github.com/OrigoStudio/origo-design/commit/efbecc9))
350
+ - initialize Astro documentation site and relocate internal project scripts to the tools directory. ([1cd8e71](https://github.com/OrigoStudio/origo-design/commit/1cd8e71))
351
+ - add documentation story spec and update epic-1 status to done ([b612ea3](https://github.com/OrigoStudio/origo-design/commit/b612ea3))
352
+ - initialize and populate agent skill definitions, workflows, and technical knowledge resources ([8668c52](https://github.com/OrigoStudio/origo-design/commit/8668c52))
353
+ - initialize Starlight documentation site within the monorepo and add benchmark tools ([9a16b03](https://github.com/OrigoStudio/origo-design/commit/9a16b03))
354
+ - implement performance benchmark harness with regression and SLA gate logic ([350d472](https://github.com/OrigoStudio/origo-design/commit/350d472))
355
+ - implement performance benchmark harness with CI regression gating and SLA validation ([3230ac9](https://github.com/OrigoStudio/origo-design/commit/3230ac9))
356
+ - implement Husky pre-commit hooks and Nx-based lint-staged configuration ([9181885](https://github.com/OrigoStudio/origo-design/commit/9181885))
357
+ - 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))
358
+ - configure Husky, lint-staged, and GitHub CI workflow for automated quality enforcement ([b6bf597](https://github.com/OrigoStudio/origo-design/commit/b6bf597))
359
+ - initialize Nx monorepo workspace with core configuration and tooling ([fd0665a](https://github.com/OrigoStudio/origo-design/commit/fd0665a))
360
+ - add sprint tracking artifacts and automation script for project bootstrapping ([ddc6149](https://github.com/OrigoStudio/origo-design/commit/ddc6149))
361
+ - document Origo Design functional requirements and architectural scope ([d1e0b7f](https://github.com/OrigoStudio/origo-design/commit/d1e0b7f))
362
+
363
+ ### ❤️ Thank You
364
+
365
+ - Hardik Patel @hardikpatelse
package/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # core
2
+
3
+ This library was generated with [Nx](https://nx.dev).
4
+
5
+ ## Building
6
+
7
+ Run `nx build core` to build the library.
8
+
9
+ ## Running unit tests
10
+
11
+ Run `nx test core` to execute the unit tests via [Jest](https://jestjs.io).
package/package.json ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "@origostudio/core",
3
+ "version": "0.0.40",
4
+ "private": false,
5
+ "type": "commonjs",
6
+ "main": "./src/index.js",
7
+ "types": "./src/index.d.ts",
8
+ "dependencies": {
9
+ "ajv": "^8.17.1",
10
+ "ajv-errors": "^3.0.0",
11
+ "ajv-formats": "^3.0.1",
12
+ "json-schema-to-typescript": "^14.1.0",
13
+ "json-source-map": "^0.6.1",
14
+ "semver": "^7.7.4",
15
+ "tslib": "^2.3.0"
16
+ },
17
+ "devDependencies": {
18
+ "@types/json-source-map": "^0.6.0",
19
+ "@types/semver": "^7.8.0"
20
+ },
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "https://github.com/OrigoStudio/origo-design.git"
24
+ }
25
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "@origostudio/core",
3
+ "version": "0.0.40",
4
+ "private": false,
5
+ "type": "commonjs",
6
+ "main": "./src/index.js",
7
+ "types": "./src/index.d.ts",
8
+ "dependencies": {
9
+ "ajv": "^8.17.1",
10
+ "ajv-errors": "^3.0.0",
11
+ "ajv-formats": "^3.0.1",
12
+ "json-schema-to-typescript": "^14.1.0",
13
+ "json-source-map": "^0.6.1",
14
+ "semver": "^7.7.4",
15
+ "tslib": "^2.3.0"
16
+ },
17
+ "devDependencies": {
18
+ "@types/json-source-map": "^0.6.0",
19
+ "@types/semver": "^7.8.0"
20
+ },
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "https://github.com/OrigoStudio/origo-design.git"
24
+ }
25
+ }
@@ -0,0 +1,35 @@
1
+ import { ExtensionManifest, ExtensionLifecycle, CorePermission, ExtensionContext } from './types';
2
+ export declare class ExtensionError extends Error {
3
+ readonly code: string;
4
+ constructor(message: string, code: string);
5
+ }
6
+ export declare enum ExtensionState {
7
+ REGISTERED = "REGISTERED",
8
+ INITIALIZED = "INITIALIZED",
9
+ CONFIGURED = "CONFIGURED",
10
+ VALIDATED = "VALIDATED",
11
+ ACTIVATED = "ACTIVATED"
12
+ }
13
+ export declare class ExtensionManager {
14
+ private extensions;
15
+ private capabilities;
16
+ private grantedPermissions;
17
+ registerExtension(manifest: ExtensionManifest, lifecycle: ExtensionLifecycle): void;
18
+ registerCapability(capability: string): void;
19
+ private validateManifest;
20
+ private negotiateCapabilities;
21
+ grantPermission(id: string, permission: CorePermission): void;
22
+ getDeclaredPermissions(id: string): CorePermission[];
23
+ getGrantedPermissions(id: string): CorePermission[];
24
+ hasPermission(id: string, permission: CorePermission): boolean;
25
+ checkPermission(id: string, permission: CorePermission): void;
26
+ private createSandboxContext;
27
+ private enforcePermissionsBeforeExecution;
28
+ resolveDependencyGraph(): string[];
29
+ initializeExtension(id: string, context?: ExtensionContext): Promise<void>;
30
+ configureExtension(id: string, config?: unknown): Promise<void>;
31
+ validateExtension(id: string): Promise<void>;
32
+ activateExtension(id: string): Promise<void>;
33
+ loadAll(context?: ExtensionContext, config?: unknown): Promise<void>;
34
+ getExtensionState(id: string): ExtensionState | undefined;
35
+ }