@auto-engineer/narrative 1.127.0 → 1.128.1

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
@@ -26,9 +26,9 @@
26
26
  "typescript": "^5.9.2",
27
27
  "zod": "^3.22.4",
28
28
  "zod-to-json-schema": "^3.22.3",
29
- "@auto-engineer/file-store": "1.127.0",
30
- "@auto-engineer/id": "1.127.0",
31
- "@auto-engineer/message-bus": "1.127.0"
29
+ "@auto-engineer/file-store": "1.128.1",
30
+ "@auto-engineer/id": "1.128.1",
31
+ "@auto-engineer/message-bus": "1.128.1"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/node": "^20.0.0",
@@ -38,7 +38,7 @@
38
38
  "publishConfig": {
39
39
  "access": "public"
40
40
  },
41
- "version": "1.127.0",
41
+ "version": "1.128.1",
42
42
  "scripts": {
43
43
  "build": "tsx scripts/build.ts",
44
44
  "test": "vitest run --reporter=dot",
@@ -19,7 +19,6 @@ describe('getNarratives', (_mode) => {
19
19
  vfs = new NodeFileStore();
20
20
  root = path.resolve(__dirname);
21
21
  });
22
- // eslint-disable-next-line complexity
23
22
  it('loads multiple narratives and generates correct models', async () => {
24
23
  const flows = await getNarratives({ vfs, root: path.resolve(__dirname), pattern, fastFsScan: true });
25
24
  const schemas = flows.toModel();
@@ -134,7 +134,6 @@ export function runGraph(entryFiles: string[], graph: Graph): void {
134
134
 
135
135
  try {
136
136
  const codeWithShim = `var r = require; var __require = require;\n${mod.js}`;
137
- // eslint-disable-next-line @typescript-eslint/no-implied-eval
138
137
  const fn = new Function('require', 'module', 'exports', '__filename', '__dirname', codeWithShim) as (
139
138
  req: (s: string) => unknown,
140
139
  module: { exports: Record<string, unknown> },
@@ -205,7 +205,6 @@ function extractTypeLiteralProperties(
205
205
  return `{ ${properties.join('; ')} }`;
206
206
  }
207
207
 
208
- // eslint-disable-next-line complexity
209
208
  function extractTypeFromNode(ts: typeof import('typescript'), typeNode?: import('typescript').TypeNode): string {
210
209
  if (!typeNode) return 'unknown';
211
210
 
@@ -304,8 +304,7 @@ export function setSliceData(data: Data): void {
304
304
  function stripTypeDiscriminator(items: (DataSink | DataSource | DataTarget)[]): (DataSink | DataSource | DataTarget)[] {
305
305
  return items.map((item) => {
306
306
  if ('__type' in item) {
307
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
308
- const { __type, ...rest } = item;
307
+ const { __type: _, ...rest } = item;
309
308
  return rest;
310
309
  }
311
310
  return item;
@@ -273,7 +273,6 @@ function tryAlternativeResolutionsForEvent(
273
273
  return false;
274
274
  }
275
275
 
276
- // eslint-disable-next-line complexity
277
276
  function processEventRefInGiven(
278
277
  g: {
279
278
  eventRef?: string;
@@ -361,7 +360,6 @@ export function processGiven(
361
360
  });
362
361
  }
363
362
 
364
- // eslint-disable-next-line complexity
365
363
  function processSingleWhen(
366
364
  when: {
367
365
  commandRef?: string;
package/src/types.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import type { ZodTypeAny } from 'zod';
2
2
 
3
- /* eslint-disable @typescript-eslint/no-explicit-any */
4
3
  type IntegrationHandler = (...args: any[]) => Promise<any>;
5
4
 
6
5
  // Enhanced WithSchema type that includes schemas for each handler