@auto-engineer/narrative 0.11.17 → 0.11.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -19,9 +19,9 @@
19
19
  "typescript": "^5.9.2",
20
20
  "zod": "^3.22.4",
21
21
  "zod-to-json-schema": "^3.22.3",
22
- "@auto-engineer/file-store": "0.11.17",
23
- "@auto-engineer/id": "0.11.17",
24
- "@auto-engineer/message-bus": "0.11.17"
22
+ "@auto-engineer/file-store": "0.11.19",
23
+ "@auto-engineer/id": "0.11.19",
24
+ "@auto-engineer/message-bus": "0.11.19"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/node": "^20.0.0",
@@ -29,12 +29,12 @@
29
29
  "eslint-plugin-sort-keys-fix": "^1.1.2",
30
30
  "fake-indexeddb": "^6.0.0",
31
31
  "tsx": "^4.20.3",
32
- "@auto-engineer/cli": "0.11.17"
32
+ "@auto-engineer/cli": "0.11.19"
33
33
  },
34
34
  "publishConfig": {
35
35
  "access": "public"
36
36
  },
37
- "version": "0.11.17",
37
+ "version": "0.11.19",
38
38
  "scripts": {
39
39
  "build": "tsx scripts/build.ts",
40
40
  "test": "vitest run --reporter=dot",
@@ -1,5 +1,4 @@
1
1
  import { type Command, type Event, defineCommandHandler } from '@auto-engineer/message-bus';
2
- import { getFs } from './filestore.node.js';
3
2
  import createDebug from 'debug';
4
3
 
5
4
  const debug = createDebug('auto:narrative:export-schema');
@@ -65,6 +64,7 @@ export async function handleExportSchemaCommand(
65
64
 
66
65
  try {
67
66
  // Run the helper script with tsx
67
+ const { getFs } = await import('./filestore.node.js');
68
68
  const fs = await getFs();
69
69
  const __dirname = fs.dirname(new URL(import.meta.url).href);
70
70
  const helperScript = fs.join(__dirname, 'export-schema-helper.js');
@@ -1,6 +1,6 @@
1
1
  import { describe, expect, it, beforeEach } from 'vitest';
2
2
  import { getNarratives, clearGetNarrativesCache } from './getNarratives';
3
- import { InMemoryFileStore, type IFileStore } from '@auto-engineer/file-store/node';
3
+ import { InMemoryFileStore, type IFileStore } from '@auto-engineer/file-store';
4
4
  import * as flowApi from './narrative';
5
5
  import * as fluent from './fluent-builder';
6
6
  import * as dataBuilders from './data-narrative-builders';
@@ -3,7 +3,8 @@ import { modelSchema } from './schema';
3
3
  import { DataSource, Example, Narrative, Model, modelToNarrative, QuerySlice } from './index';
4
4
  import { fileURLToPath } from 'url';
5
5
  import path from 'path';
6
- import { InMemoryFileStore, NodeFileStore } from '@auto-engineer/file-store/node';
6
+ import { InMemoryFileStore } from '@auto-engineer/file-store';
7
+ import { NodeFileStore } from '@auto-engineer/file-store/node';
7
8
  import { getNarratives } from './getNarratives';
8
9
 
9
10
  const __filename = fileURLToPath(import.meta.url);
@@ -2,7 +2,7 @@ import createDebug from 'debug';
2
2
  import { registry } from './narrative-registry';
3
3
  import type { Narrative, Model } from './index';
4
4
  import { narrativesToModel } from './transformers/narrative-to-model';
5
- import type { IFileStore } from '@auto-engineer/file-store/node';
5
+ import type { IFileStore } from '@auto-engineer/file-store';
6
6
  import { executeAST } from './loader';
7
7
  import { sha256 } from 'js-sha256';
8
8
 
@@ -1,7 +1,7 @@
1
1
  import { describe, expect, it, beforeEach } from 'vitest';
2
2
  import { hasAllIds, addAutoIds } from './index';
3
3
  import { getNarratives } from '../getNarratives';
4
- import { InMemoryFileStore, type IFileStore } from '@auto-engineer/file-store/node';
4
+ import { InMemoryFileStore, type IFileStore } from '@auto-engineer/file-store';
5
5
  import * as flowApi from '../narrative';
6
6
  import * as fluent from '../fluent-builder';
7
7
  import * as dataBuilders from '../data-narrative-builders';
@@ -1,6 +1,6 @@
1
1
  import createDebug from 'debug';
2
2
  import type { Graph } from './types';
3
- import type { IFileStore } from '@auto-engineer/file-store/node';
3
+ import type { IFileStore } from '@auto-engineer/file-store';
4
4
  import {
5
5
  parseImports,
6
6
  parseTypeDefinitions,
@@ -1,4 +1,4 @@
1
- import type { IFileStore } from '@auto-engineer/file-store/node';
1
+ import type { IFileStore } from '@auto-engineer/file-store';
2
2
  import { resolveAbsolute, resolveRelative } from './ts-utils';
3
3
  import type { Resolved } from './types';
4
4
 
@@ -1,4 +1,4 @@
1
- import type { IFileStore } from '@auto-engineer/file-store/node';
1
+ import type { IFileStore } from '@auto-engineer/file-store';
2
2
  import { CANDIDATE_EXTS, dirname, join, normalize } from './fs-path';
3
3
  import createDebug from 'debug';
4
4
 
@@ -1,4 +1,4 @@
1
- import type { IFileStore } from '@auto-engineer/file-store/node';
1
+ import type { IFileStore } from '@auto-engineer/file-store';
2
2
 
3
3
  export type Resolved =
4
4
  | { kind: 'vfs'; path: string }