@mimir-labs/core 0.3.0 → 0.5.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 (74) hide show
  1. package/README.md +16 -4
  2. package/dist/implementation/authoring/mimir-descriptor-loader.d.ts +2 -0
  3. package/dist/implementation/authoring/mimir-descriptor-loader.js +7 -0
  4. package/dist/implementation/authoring/mimir-descriptor-loader.js.map +1 -0
  5. package/dist/implementation/contracts/descriptor.d.ts +33 -0
  6. package/dist/implementation/contracts/descriptor.js +3 -0
  7. package/dist/implementation/contracts/descriptor.js.map +1 -0
  8. package/dist/implementation/contracts/resource.d.ts +109 -0
  9. package/dist/implementation/contracts/resource.js +3 -0
  10. package/dist/implementation/contracts/resource.js.map +1 -0
  11. package/dist/implementation/descriptors/descriptor-discovery.d.ts +2 -0
  12. package/dist/implementation/descriptors/descriptor-discovery.js +47 -0
  13. package/dist/implementation/descriptors/descriptor-discovery.js.map +1 -0
  14. package/dist/implementation/descriptors/descriptor-repository.d.ts +2 -0
  15. package/dist/implementation/descriptors/descriptor-repository.js +175 -0
  16. package/dist/implementation/descriptors/descriptor-repository.js.map +1 -0
  17. package/dist/implementation/generation/generate-service.d.ts +5 -0
  18. package/dist/implementation/generation/generate-service.js +77 -57
  19. package/dist/implementation/generation/generate-service.js.map +1 -1
  20. package/dist/implementation/generation/provenance/provenance-builder.d.ts +0 -1
  21. package/dist/implementation/generation/provenance/provenance-builder.js +0 -8
  22. package/dist/implementation/generation/provenance/provenance-builder.js.map +1 -1
  23. package/dist/implementation/generation/types.d.ts +2 -19
  24. package/dist/implementation/generators/aps-generator.js +1 -1
  25. package/dist/implementation/generators/aps-generator.js.map +1 -1
  26. package/dist/implementation/io/fs.d.ts +1 -0
  27. package/dist/implementation/io/fs.js +13 -0
  28. package/dist/implementation/io/fs.js.map +1 -1
  29. package/dist/implementation/knowledge/knowledge-engine.d.ts +8 -0
  30. package/dist/implementation/knowledge/knowledge-engine.js +40 -0
  31. package/dist/implementation/knowledge/knowledge-engine.js.map +1 -0
  32. package/dist/implementation/knowledge/knowledge-graph.d.ts +12 -0
  33. package/dist/implementation/knowledge/knowledge-graph.js +34 -0
  34. package/dist/implementation/knowledge/knowledge-graph.js.map +1 -0
  35. package/dist/implementation/knowledge/model.d.ts +44 -0
  36. package/dist/implementation/knowledge/model.js +3 -0
  37. package/dist/implementation/knowledge/model.js.map +1 -0
  38. package/dist/implementation/knowledge/persistence-policy.d.ts +21 -0
  39. package/dist/implementation/knowledge/persistence-policy.js +51 -0
  40. package/dist/implementation/knowledge/persistence-policy.js.map +1 -0
  41. package/dist/implementation/knowledge/providers.d.ts +36 -0
  42. package/dist/implementation/knowledge/providers.js +150 -0
  43. package/dist/implementation/knowledge/providers.js.map +1 -0
  44. package/dist/implementation/resource-discovery/design-token-extractor.d.ts +3 -0
  45. package/dist/implementation/resource-discovery/design-token-extractor.js +78 -0
  46. package/dist/implementation/resource-discovery/design-token-extractor.js.map +1 -0
  47. package/dist/implementation/resource-discovery/react-pattern-extractor.d.ts +3 -0
  48. package/dist/implementation/resource-discovery/react-pattern-extractor.js +49 -0
  49. package/dist/implementation/resource-discovery/react-pattern-extractor.js.map +1 -0
  50. package/dist/implementation/resource-discovery/relationship-extractor.d.ts +3 -0
  51. package/dist/implementation/resource-discovery/relationship-extractor.js +80 -0
  52. package/dist/implementation/resource-discovery/relationship-extractor.js.map +1 -0
  53. package/dist/implementation/resource-discovery/semantic-resource-classifier.d.ts +23 -0
  54. package/dist/implementation/resource-discovery/semantic-resource-classifier.js +267 -0
  55. package/dist/implementation/resource-discovery/semantic-resource-classifier.js.map +1 -0
  56. package/dist/implementation/resource-discovery/storybook-extractor.d.ts +3 -0
  57. package/dist/implementation/resource-discovery/storybook-extractor.js +102 -0
  58. package/dist/implementation/resource-discovery/storybook-extractor.js.map +1 -0
  59. package/dist/implementation/resource-discovery/typescript-analysis.d.ts +7 -0
  60. package/dist/implementation/resource-discovery/typescript-analysis.js +42 -0
  61. package/dist/implementation/resource-discovery/typescript-analysis.js.map +1 -0
  62. package/dist/implementation/resource-discovery/typescript-extractor.d.ts +8 -0
  63. package/dist/implementation/resource-discovery/typescript-extractor.js +195 -0
  64. package/dist/implementation/resource-discovery/typescript-extractor.js.map +1 -0
  65. package/dist/implementation/resource-discovery/typescript-public-api-extractor.d.ts +11 -0
  66. package/dist/implementation/resource-discovery/typescript-public-api-extractor.js +439 -0
  67. package/dist/implementation/resource-discovery/typescript-public-api-extractor.js.map +1 -0
  68. package/dist/implementation/resource-identity.d.ts +1 -0
  69. package/dist/implementation/resource-identity.js +7 -0
  70. package/dist/implementation/resource-identity.js.map +1 -1
  71. package/dist/implementation/services/authoring-service.d.ts +9 -0
  72. package/dist/implementation/services/authoring-service.js +335 -32
  73. package/dist/implementation/services/authoring-service.js.map +1 -1
  74. package/package.json +1 -1
@@ -5,57 +5,360 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.runAuthoringWorkflow = runAuthoringWorkflow;
7
7
  const node_path_1 = __importDefault(require("node:path"));
8
- const typescript_extractor_1 = require("../generation/extractors/typescript-extractor");
8
+ const yaml_1 = require("yaml");
9
+ const knowledge_engine_1 = require("../knowledge/knowledge-engine");
10
+ const persistence_policy_1 = require("../knowledge/persistence-policy");
11
+ const descriptor_discovery_1 = require("../descriptors/descriptor-discovery");
9
12
  const fs_1 = require("../io/fs");
13
+ const json_1 = require("../io/json");
10
14
  const resource_identity_1 = require("../resource-identity");
11
- const AUTHORING_TEMPLATE = `description: ""
12
- # Describe brevemente qué hace este recurso.
13
-
14
- whenToUse: []
15
- # ¿Cuándo recomendarías utilizar este recurso?
16
-
17
- whenNotToUse: []
18
- # ¿En qué casos elegirías otra alternativa?
19
- `;
20
- async function readPackageName(cwd) {
15
+ const KNOWN_RESOURCE_KINDS = new Set([
16
+ "component",
17
+ "hook",
18
+ "context",
19
+ "provider",
20
+ "template",
21
+ "icon",
22
+ "page",
23
+ "utility",
24
+ "theme",
25
+ "token",
26
+ "configuration",
27
+ "story",
28
+ "internal",
29
+ "unknown"
30
+ ]);
31
+ function normalizeSlashes(value) {
32
+ return value.split(node_path_1.default.sep).join("/");
33
+ }
34
+ function sanitizePathSegment(value) {
35
+ const normalized = value.trim().replace(/[^A-Za-z0-9_-]+/g, "-").replace(/-+/g, "-").replace(/^-|-$/g, "");
36
+ return normalized === "" ? "resource" : normalized.toLowerCase();
37
+ }
38
+ function toDescriptorPath(sourceFile, resourceName) {
39
+ const ext = node_path_1.default.extname(sourceFile);
40
+ const base = node_path_1.default.basename(sourceFile, ext);
41
+ const segment = sanitizePathSegment(resourceName);
42
+ return node_path_1.default.join(node_path_1.default.dirname(sourceFile), `${base}.${segment}.mimir.yaml`);
43
+ }
44
+ function toPropsArray(props) {
45
+ return Object.values(props)
46
+ .sort((a, b) => a.name.localeCompare(b.name))
47
+ .map((prop) => ({
48
+ name: prop.name,
49
+ type: prop.type ?? "unknown",
50
+ required: prop.required !== false
51
+ }));
52
+ }
53
+ function buildPersistedAutoBlock(seed) {
54
+ return {
55
+ source: {
56
+ file: seed.sourceFile,
57
+ symbol: seed.name,
58
+ public: true
59
+ },
60
+ props: toPropsArray(seed.props),
61
+ api: seed.api ??
62
+ {
63
+ props: [],
64
+ events: [],
65
+ slots: [],
66
+ methods: [],
67
+ refs: []
68
+ },
69
+ classification: seed.classification,
70
+ variants: [...new Set(seed.variants)].sort((a, b) => a.localeCompare(b)),
71
+ storyFiles: [...new Set(seed.storyFiles)].sort((a, b) => a.localeCompare(b)),
72
+ relationships: seed.relationships,
73
+ examples: seed.examples,
74
+ react: seed.react,
75
+ ai: seed.metadata
76
+ };
77
+ }
78
+ function patchManagedResourceAuto(existing, seed) {
79
+ return {
80
+ ...existing,
81
+ auto: buildPersistedAutoBlock(seed)
82
+ };
83
+ }
84
+ function createManagedResource(seed) {
85
+ return {
86
+ kind: seed.kind,
87
+ name: seed.name,
88
+ id: seed.id,
89
+ auto: buildPersistedAutoBlock(seed),
90
+ human: {
91
+ description: "",
92
+ whenToUse: [],
93
+ whenNotToUse: []
94
+ }
95
+ };
96
+ }
97
+ function buildSchemaV2Document(resource) {
98
+ return {
99
+ schemaVersion: 2,
100
+ ...resource
101
+ };
102
+ }
103
+ function resourceIdentity(resource) {
104
+ const id = typeof resource.id === "string" ? resource.id : null;
105
+ if (id && id.trim() !== "") {
106
+ return id;
107
+ }
108
+ const kind = typeof resource.kind === "string" ? resource.kind.trim().toLowerCase() : "";
109
+ const name = typeof resource.name === "string" ? resource.name.trim() : "";
110
+ if (kind && name) {
111
+ return `${kind}:${name}`;
112
+ }
113
+ return null;
114
+ }
115
+ function isComponentResource(resource) {
116
+ return typeof resource.kind === "string" && resource.kind.trim().toLowerCase() === "component";
117
+ }
118
+ function serializeDescriptorDocument(doc) {
119
+ return (0, yaml_1.stringify)(doc, { lineWidth: 120 });
120
+ }
121
+ function readDiscoveryKinds(value) {
122
+ if (!Array.isArray(value)) {
123
+ return undefined;
124
+ }
125
+ const aliasToKind = {
126
+ styled: "internal",
127
+ private: "internal"
128
+ };
129
+ const resolved = value
130
+ .filter((item) => typeof item === "string")
131
+ .map((item) => item.trim().toLowerCase())
132
+ .map((item) => aliasToKind[item] ?? item)
133
+ .filter((item) => KNOWN_RESOURCE_KINDS.has(item));
134
+ if (resolved.length === 0) {
135
+ return undefined;
136
+ }
137
+ return [...new Set(resolved)];
138
+ }
139
+ async function readPackageMetadata(cwd) {
21
140
  const packageJson = await (0, fs_1.readJson)(node_path_1.default.join(cwd, "package.json"));
22
141
  if (typeof packageJson.name !== "string" || packageJson.name.trim() === "") {
23
142
  throw new Error("package.json name is required for authoring");
24
143
  }
25
- return packageJson.name;
144
+ const aps = (0, json_1.isObject)(packageJson.aps) ? packageJson.aps : {};
145
+ const discovery = (0, json_1.isObject)(aps.discovery) ? aps.discovery : {};
146
+ return {
147
+ packageName: packageJson.name,
148
+ discovery: {
149
+ includeKinds: readDiscoveryKinds(discovery.include),
150
+ excludeKinds: readDiscoveryKinds(discovery.exclude)
151
+ }
152
+ };
153
+ }
154
+ function parseDescriptorEntries(raw, sourceRef, filePath) {
155
+ if (!(0, json_1.isObject)(raw)) {
156
+ throw new Error(`${sourceRef}: descriptor must be a YAML object`);
157
+ }
158
+ const schemaVersion = raw.schemaVersion;
159
+ if (schemaVersion === 2) {
160
+ const resource = raw;
161
+ return [
162
+ {
163
+ schemaVersion: 2,
164
+ resourcesInFile: 1,
165
+ sourceRef,
166
+ filePath,
167
+ resource,
168
+ identity: resourceIdentity(resource)
169
+ }
170
+ ];
171
+ }
172
+ if (schemaVersion === 1) {
173
+ if (!Array.isArray(raw.resources)) {
174
+ throw new Error(`${sourceRef}: resources must be an array for schemaVersion 1`);
175
+ }
176
+ const resources = raw.resources.filter((item) => (0, json_1.isObject)(item));
177
+ return resources.map((resource) => ({
178
+ schemaVersion: 1,
179
+ resourcesInFile: resources.length,
180
+ sourceRef,
181
+ filePath,
182
+ resource,
183
+ identity: resourceIdentity(resource)
184
+ }));
185
+ }
186
+ throw new Error(`${sourceRef}: schemaVersion must be 1 or 2`);
187
+ }
188
+ async function loadExistingDescriptorEntries(cwd, relativePath) {
189
+ const filePath = node_path_1.default.join(cwd, relativePath);
190
+ const parsed = (0, yaml_1.parse)(await (0, fs_1.readText)(filePath));
191
+ return parseDescriptorEntries(parsed, relativePath, filePath);
192
+ }
193
+ function toManagedSeeds(knowledge) {
194
+ const byId = new Map();
195
+ for (const item of knowledge) {
196
+ const resource = item.resource;
197
+ const id = (0, resource_identity_1.createResourceId)(resource.packageName, resource.classification.kind, resource.name);
198
+ byId.set(id, {
199
+ name: resource.name,
200
+ kind: resource.classification.kind,
201
+ id,
202
+ sourceFile: normalizeSlashes(resource.filePath),
203
+ props: item.props,
204
+ api: item.api,
205
+ classification: resource.classification,
206
+ variants: item.variants,
207
+ storyFiles: item.storyFiles,
208
+ relationships: item.relationships,
209
+ examples: item.examples,
210
+ react: item.react,
211
+ metadata: item.metadata
212
+ });
213
+ }
214
+ return [...byId.values()].sort((a, b) => a.name.localeCompare(b.name));
26
215
  }
27
216
  async function runAuthoringWorkflow(cwd, options = {}) {
28
- const packageName = await readPackageName(cwd);
29
- const components = await (0, typescript_extractor_1.extractTypeScriptComponents)(cwd, packageName);
30
- const outputDir = node_path_1.default.join(cwd, "aps", "knowledge", "components");
217
+ const shouldRefreshAuto = options.refreshAuto !== false;
218
+ const shouldDeleteOrphans = options.deleteOrphans === true;
219
+ const packageMetadata = await readPackageMetadata(cwd);
220
+ const workspace = await (0, knowledge_engine_1.createKnowledgeWorkspace)(cwd, packageMetadata.packageName, {
221
+ includeKinds: packageMetadata.discovery.includeKinds,
222
+ excludeKinds: packageMetadata.discovery.excludeKinds
223
+ });
224
+ const graph = await (0, knowledge_engine_1.buildKnowledgeGraph)(workspace);
225
+ const seeds = toManagedSeeds(new persistence_policy_1.DescriptorPersistencePolicy().select(graph));
226
+ const existingDescriptorFiles = await (0, descriptor_discovery_1.discoverDescriptorFiles)(cwd);
227
+ const existingEntries = [];
228
+ for (const relativePath of existingDescriptorFiles) {
229
+ try {
230
+ existingEntries.push(...(await loadExistingDescriptorEntries(cwd, relativePath)));
231
+ }
232
+ catch (error) {
233
+ const message = error instanceof Error ? error.message : String(error);
234
+ throw new Error(`Invalid descriptor\n\n${relativePath}\n\nYAML parse error.\n${message}\n\nFix the descriptor before running author again.`);
235
+ }
236
+ }
237
+ const existingByIdentity = new Map();
238
+ for (const entry of existingEntries) {
239
+ if (!entry.identity) {
240
+ continue;
241
+ }
242
+ const current = existingByIdentity.get(entry.identity);
243
+ if (!current) {
244
+ existingByIdentity.set(entry.identity, entry);
245
+ continue;
246
+ }
247
+ if (current.schemaVersion === 1 && entry.schemaVersion === 2) {
248
+ existingByIdentity.set(entry.identity, entry);
249
+ }
250
+ }
31
251
  const createdFiles = [];
252
+ const updatedFiles = [];
32
253
  const existingFiles = [];
33
254
  const plannedFiles = [];
34
- for (const component of components) {
35
- const resourceId = (0, resource_identity_1.createComponentResourceId)(component.packageName, component.name);
36
- const filePath = node_path_1.default.join(outputDir, `${resourceId}.yaml`);
37
- const relativePath = node_path_1.default.relative(cwd, filePath);
38
- if (await (0, fs_1.fileExists)(filePath)) {
39
- existingFiles.push(relativePath);
255
+ const orphanedResources = [];
256
+ const deletedOrphans = [];
257
+ const warnings = [];
258
+ const pendingHumanResources = [];
259
+ const consumedIdentities = new Set();
260
+ if (options.interactive) {
261
+ warnings.push("--interactive is not implemented yet. Running sync-only mode.");
262
+ }
263
+ if (options.ai) {
264
+ warnings.push("--ai is not implemented yet. Running sync-only mode.");
265
+ }
266
+ for (const seed of seeds) {
267
+ const legacyIdentity = `component:${seed.name}`;
268
+ const existingEntry = existingByIdentity.get(seed.id) ?? existingByIdentity.get(legacyIdentity);
269
+ if (existingEntry &&
270
+ existingEntry.schemaVersion === 1 &&
271
+ existingEntry.resourcesInFile > 1 &&
272
+ shouldRefreshAuto) {
273
+ warnings.push(`${existingEntry.sourceRef}: schemaVersion 1 descriptor contains multiple resources and cannot be auto-updated to v2 in-place. Keep using it as-is or split manually.`);
274
+ consumedIdentities.add(seed.id);
275
+ consumedIdentities.add(legacyIdentity);
276
+ existingFiles.push(existingEntry.sourceRef);
277
+ pendingHumanResources.push(`${existingEntry.sourceRef}#${seed.id}`);
40
278
  continue;
41
279
  }
42
- if (options.dryRun) {
43
- plannedFiles.push(relativePath);
280
+ const descriptorRelativePath = existingEntry
281
+ ? existingEntry.sourceRef
282
+ : normalizeSlashes(toDescriptorPath(seed.sourceFile, seed.name));
283
+ const descriptorPath = node_path_1.default.join(cwd, descriptorRelativePath);
284
+ const baseResource = existingEntry?.resource ?? createManagedResource(seed);
285
+ const nextResource = shouldRefreshAuto
286
+ ? patchManagedResourceAuto(baseResource, seed)
287
+ : baseResource;
288
+ const nextDoc = buildSchemaV2Document(nextResource);
289
+ const after = serializeDescriptorDocument(nextDoc).trim();
290
+ const existed = await (0, fs_1.fileExists)(descriptorPath);
291
+ if (!existed) {
292
+ if (options.dryRun) {
293
+ plannedFiles.push(descriptorRelativePath);
294
+ }
295
+ else {
296
+ await (0, fs_1.writeText)(descriptorPath, `${after}\n`);
297
+ createdFiles.push(descriptorRelativePath);
298
+ }
299
+ }
300
+ else {
301
+ let beforeDoc;
302
+ try {
303
+ const parsed = (0, yaml_1.parse)(await (0, fs_1.readText)(descriptorPath));
304
+ if (!(0, json_1.isObject)(parsed)) {
305
+ throw new Error(`${descriptorRelativePath}: descriptor must be a YAML object`);
306
+ }
307
+ beforeDoc = parsed;
308
+ }
309
+ catch (error) {
310
+ const message = error instanceof Error ? error.message : String(error);
311
+ throw new Error(`Invalid descriptor\n\n${descriptorRelativePath}\n\nYAML parse error.\n${message}\n\nFix the descriptor before running author again.`);
312
+ }
313
+ const before = serializeDescriptorDocument(beforeDoc).trim();
314
+ if (before === after) {
315
+ existingFiles.push(descriptorRelativePath);
316
+ }
317
+ else if (options.dryRun) {
318
+ plannedFiles.push(descriptorRelativePath);
319
+ }
320
+ else {
321
+ await (0, fs_1.writeText)(descriptorPath, `${after}\n`);
322
+ updatedFiles.push(descriptorRelativePath);
323
+ }
324
+ }
325
+ consumedIdentities.add(seed.id);
326
+ consumedIdentities.add(legacyIdentity);
327
+ pendingHumanResources.push(`${descriptorRelativePath}#${seed.id}`);
328
+ }
329
+ for (const entry of existingEntries) {
330
+ const identity = entry.identity;
331
+ if (!identity || consumedIdentities.has(identity) || !isComponentResource(entry.resource)) {
44
332
  continue;
45
333
  }
46
- if (await (0, fs_1.writeTextIfMissing)(filePath, AUTHORING_TEMPLATE)) {
47
- createdFiles.push(relativePath);
334
+ const id = typeof entry.resource.id === "string" ? entry.resource.id : identity;
335
+ orphanedResources.push(`${entry.sourceRef}#${id}`);
336
+ if (!shouldDeleteOrphans) {
337
+ continue;
48
338
  }
49
- else {
50
- existingFiles.push(relativePath);
339
+ if (entry.schemaVersion === 1 && entry.resourcesInFile > 1) {
340
+ warnings.push(`${entry.sourceRef}: cannot delete orphan from schemaVersion 1 multi-resource descriptor automatically.`);
341
+ continue;
342
+ }
343
+ if (options.dryRun) {
344
+ plannedFiles.push(entry.sourceRef);
345
+ deletedOrphans.push(`${entry.sourceRef}#${id}`);
346
+ continue;
51
347
  }
348
+ await (0, fs_1.deleteFile)(entry.filePath);
349
+ deletedOrphans.push(`${entry.sourceRef}#${id}`);
52
350
  }
53
351
  return {
54
- outputDir: node_path_1.default.relative(cwd, outputDir),
55
- discoveredResources: components.length,
56
- createdFiles,
57
- existingFiles,
58
- plannedFiles,
352
+ outputDir: ".",
353
+ discoveredResources: seeds.length,
354
+ createdFiles: [...new Set(createdFiles)].sort((a, b) => a.localeCompare(b)),
355
+ updatedFiles: [...new Set(updatedFiles)].sort((a, b) => a.localeCompare(b)),
356
+ existingFiles: [...new Set(existingFiles)].sort((a, b) => a.localeCompare(b)),
357
+ plannedFiles: [...new Set(plannedFiles)].sort((a, b) => a.localeCompare(b)),
358
+ orphanedResources: [...new Set(orphanedResources)].sort((a, b) => a.localeCompare(b)),
359
+ deletedOrphans: [...new Set(deletedOrphans)].sort((a, b) => a.localeCompare(b)),
360
+ pendingHumanResources: [...new Set(pendingHumanResources)].sort((a, b) => a.localeCompare(b)),
361
+ warnings: [...new Set(warnings)],
59
362
  dryRun: Boolean(options.dryRun)
60
363
  };
61
364
  }
@@ -1 +1 @@
1
- {"version":3,"file":"authoring-service.js","sourceRoot":"","sources":["../../../src/implementation/services/authoring-service.ts"],"names":[],"mappings":";;;;;AA0CA,oDAyCC;AAnFD,0DAA6B;AAC7B,wFAA4F;AAC5F,iCAAoE;AACpE,4DAAiE;AAmBjE,MAAM,kBAAkB,GAAG;;;;;;;;CAQ1B,CAAC;AAEF,KAAK,UAAU,eAAe,CAAC,GAAW;IACxC,MAAM,WAAW,GAAG,MAAM,IAAA,aAAQ,EAAc,mBAAI,CAAC,IAAI,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC,CAAC;IAEhF,IAAI,OAAO,WAAW,CAAC,IAAI,KAAK,QA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,CAAC;YAC3D,YAAY,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAClC,CAAC;aAAM,CAAC;YACN,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACnC,CAAC;IACH,CAAC;IAED,OAAO;QACL,SAAS,EAAE,mBAAI,CAAC,QAAQ,CAAC,GAAG,EAAE,SAAS,CAAC;QACxC,mBAAmB,EAAE,UAAU,CAAC,MAAM;QACtC,YAAY;QACZ,aAAa;QACb,YAAY;QACZ,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC;KAChC,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"authoring-service.js","sourceRoot":"","sources":["../../../src/implementation/services/authoring-service.ts"],"names":[],"mappings":";;;;;AA4UA,oDA+KC;AA3fD,0DAA6B;AAC7B,+BAAwC;AACxC,oEAA8F;AAC9F,wEAAgH;AAWhH,8EAA8E;AAC9E,iCAAiF;AACjF,qCAAsC;AACtC,4DAAwD;AAqDxD,MAAM,oBAAoB,GAAsC,IAAI,GAAG,CAAC;IACtE,WAAW;IACX,MAAM;IACN,SAAS;IACT,UAAU;IACV,UAAU;IACV,MAAM;IACN,MAAM;IACN,SAAS;IACT,OAAO;IACP,OAAO;IACP,eAAe;IACf,OAAO;IACP,UAAU;IACV,SAAS;CACV,CAAC,CAAC;AA2BH,SAAS,gBAAgB,CAAC,KAAa;IACrC,OAAO,KAAK,CAAC,KAAK,CAAC,mBAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACzC,CAAC;AAED,SAAS,mBAAmB,CAAC,KAAa;IACxC,MAAM,UAAU,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,kBAAkB,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;IAC3G,OAAO,UAAU,KAAK,EAAE,CAAC,CAAC,CAAC,U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AC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;QACrF,cAAc,EAAE,CAAC,GAAG,IAAI,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;QAC/E,qBAAqB,EAAE,CAAC,GAAG,IAAI,GAAG,CAAC,qBAAqB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;QAC7F,QAAQ,EAAE,CAAC,GAAG,IAAI,GAAG,CAAC,QAAQ,CAAC,CAAC;QAChC,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC;KAChC,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mimir-labs/core",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
4
4
  "description": "Reusable core services for the Mimir APS implementation",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",