@auto-engineer/narrative 1.10.0 → 1.11.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.
- package/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-test.log +3 -3
- package/.turbo/turbo-type-check.log +1 -1
- package/CHANGELOG.md +17 -0
- package/dist/src/index.d.ts +2 -23
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +2 -12
- package/dist/src/index.js.map +1 -1
- package/dist/src/schema.d.ts +201 -184
- package/dist/src/schema.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -4
- package/src/index.ts +2 -87
- package/src/schema.ts +18 -0
package/.turbo/turbo-build.log
CHANGED
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @auto-engineer/narrative@1.
|
|
2
|
+
> @auto-engineer/narrative@1.11.0 test /home/runner/work/auto-engineer/auto-engineer/packages/narrative
|
|
3
3
|
> vitest run --reporter=dot
|
|
4
4
|
|
|
5
5
|
|
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
|
|
10
10
|
[2m Test Files [22m [1m[32m16 passed[39m[22m[90m (16)[39m
|
|
11
11
|
[2m Tests [22m [1m[32m226 passed[39m[22m[90m (226)[39m
|
|
12
|
-
[2m Start at [22m
|
|
13
|
-
[2m Duration [22m 12.
|
|
12
|
+
[2m Start at [22m 18:13:52
|
|
13
|
+
[2m Duration [22m 12.50s[2m (transform 3.20s, setup 0ms, collect 15.59s, tests 11.13s, environment 6ms, prepare 4.26s)[22m
|
|
14
14
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @auto-engineer/flow
|
|
2
2
|
|
|
3
|
+
## 1.11.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`94f3151`](https://github.com/BeOnAuto/auto-engineer/commit/94f315181e69e190f84ba06871b27591e27771c2) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - Added a lightweight schema subpath export for the narrative package, allowing consumers to import Zod schemas and TypeScript types without pulling in heavy dependencies like typescript, prettier, or graphql
|
|
8
|
+
|
|
9
|
+
- [`afd1cd2`](https://github.com/BeOnAuto/auto-engineer/commit/afd1cd28412d12ba7c29ba133fdf57616cf42370) Thanks [@github-actions[bot]](https://github.com/github-actions%5Bbot%5D)! - - **packages/frontend-implementer**: updates implementation prompt
|
|
10
|
+
- **global**: version packages
|
|
11
|
+
- **global**: add changeset
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [[`94f3151`](https://github.com/BeOnAuto/auto-engineer/commit/94f315181e69e190f84ba06871b27591e27771c2), [`afd1cd2`](https://github.com/BeOnAuto/auto-engineer/commit/afd1cd28412d12ba7c29ba133fdf57616cf42370)]:
|
|
16
|
+
- @auto-engineer/file-store@1.11.0
|
|
17
|
+
- @auto-engineer/id@1.11.0
|
|
18
|
+
- @auto-engineer/message-bus@1.11.0
|
|
19
|
+
|
|
3
20
|
## 1.10.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import type { z } from 'zod';
|
|
2
1
|
export { gql } from 'graphql-tag';
|
|
3
|
-
export { DataSchema, DataSinkSchema, DataSourceSchema, MessageTargetSchema } from './schema';
|
|
4
2
|
export type { Command, Data, DataItem, DataSink, DataSinkItem, DataSource, DataSourceItem, Destination, Event, Integration, MessageTarget, Origin, Query, State, } from './types';
|
|
5
3
|
export { createIntegration } from './types';
|
|
6
4
|
export declare const get: (strings: TemplateStringsArray, ...values: unknown[]) => string;
|
|
@@ -10,31 +8,12 @@ export { sink, source } from './data-narrative-builders';
|
|
|
10
8
|
export type { FluentCommandSliceBuilder, FluentExperienceSliceBuilder, FluentQuerySliceBuilder, FluentReactionSliceBuilder, } from './fluent-builder';
|
|
11
9
|
export { command, decide, evolve, experience, query, react } from './fluent-builder';
|
|
12
10
|
export { getNarratives } from './getNarratives';
|
|
11
|
+
export { addAutoIds, hasAllIds } from './id';
|
|
13
12
|
export type { ExampleBuilder, GivenBuilder, SliceTypeValueInterface, ThenBuilder, WhenBuilder } from './narrative';
|
|
14
13
|
export { client, data, describe, example, it, narrative, narrative as flow, request, rule, SliceType, server, should, specs, thenError, } from './narrative';
|
|
15
|
-
export
|
|
14
|
+
export * from './schema';
|
|
16
15
|
export { createNarrativeSpec, given as testGiven, when as testWhen } from './testing';
|
|
17
16
|
export type { GeneratedNarratives } from './transformers/model-to-narrative';
|
|
18
17
|
export { modelToNarrative } from './transformers/model-to-narrative';
|
|
19
|
-
import type { CommandSliceSchema, ExampleSchema, ExperienceSliceSchema, MappingEntrySchema, MappingFieldRefSchema, MessageFieldSchema, MessageRefSchema, MessageSchema, ModuleSchema, modelSchema, NarrativeSchema, QuerySliceSchema, ReactSliceSchema, RuleSchema, SliceSchema, SpecSchema, StepSchema } from './schema';
|
|
20
|
-
export type Model = z.infer<typeof modelSchema>;
|
|
21
|
-
export type Narrative = z.infer<typeof NarrativeSchema>;
|
|
22
|
-
export type Slice = z.infer<typeof SliceSchema>;
|
|
23
|
-
export type QuerySlice = z.infer<typeof QuerySliceSchema>;
|
|
24
|
-
export type ReactSlice = z.infer<typeof ReactSliceSchema>;
|
|
25
|
-
export type CommandSlice = z.infer<typeof CommandSliceSchema>;
|
|
26
|
-
export type ExperienceSlice = z.infer<typeof ExperienceSliceSchema>;
|
|
27
|
-
export type Message = z.infer<typeof MessageSchema>;
|
|
28
|
-
export type Example = z.infer<typeof ExampleSchema>;
|
|
29
|
-
export type MessageField = z.infer<typeof MessageFieldSchema>;
|
|
30
|
-
export type Rule = z.infer<typeof RuleSchema>;
|
|
31
|
-
export type Spec = z.infer<typeof SpecSchema>;
|
|
32
|
-
export type Step = z.infer<typeof StepSchema>;
|
|
33
|
-
export type Module = z.infer<typeof ModuleSchema>;
|
|
34
|
-
export type MessageRef = z.infer<typeof MessageRefSchema>;
|
|
35
|
-
export type MappingFieldRef = z.infer<typeof MappingFieldRefSchema>;
|
|
36
|
-
export type MappingEntry = z.infer<typeof MappingEntrySchema>;
|
|
37
|
-
export { addAutoIds, hasAllIds } from './id';
|
|
38
|
-
export type { ClientSpecNode } from './schema';
|
|
39
18
|
export { detectQueryAction, extractQueryNameFromRequest } from './transformers/narrative-to-model/spec-processors';
|
|
40
19
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,YAAY,EACV,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,cAAc,EACd,WAAW,EACX,KAAK,EACL,WAAW,EACX,aAAa,EACb,MAAM,EACN,KAAK,EACL,KAAK,GACN,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C,eAAO,MAAM,GAAG,GAAI,SAAS,oBAAoB,EAAE,GAAG,QAAQ,OAAO,EAAE,WAKtE,CAAC;AAEF,YAAY,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,YAAY,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACzD,YAAY,EACV,yBAAyB,EACzB,4BAA4B,EAC5B,uBAAuB,EACvB,0BAA0B,GAC3B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAC7C,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,uBAAuB,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACnH,OAAO,EACL,MAAM,EACN,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,EAAE,EACF,SAAS,EACT,SAAS,IAAI,IAAI,EACjB,OAAO,EACP,IAAI,EACJ,SAAS,EACT,MAAM,EACN,MAAM,EACN,KAAK,EACL,SAAS,GACV,MAAM,aAAa,CAAC;AACrB,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,mBAAmB,EAAE,KAAK,IAAI,SAAS,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,WAAW,CAAC;AACtF,YAAY,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAErE,OAAO,EAAE,iBAAiB,EAAE,2BAA2B,EAAE,MAAM,mDAAmD,CAAC"}
|
package/dist/src/index.js
CHANGED
|
@@ -1,28 +1,18 @@
|
|
|
1
|
-
// Republished to fix workspace:* dependency resolution in 1.3.0
|
|
2
|
-
// Apollo GraphQL
|
|
3
1
|
export { gql } from 'graphql-tag';
|
|
4
|
-
export { DataSchema, DataSinkSchema, DataSourceSchema, MessageTargetSchema } from './schema.js';
|
|
5
2
|
export { createIntegration } from './types.js';
|
|
6
|
-
// HTTP GET template literal function
|
|
7
3
|
export const get = (strings, ...values) => {
|
|
8
4
|
return strings.reduce((result, str, i) => {
|
|
9
5
|
const value = values[i];
|
|
10
6
|
return result + str + (value !== undefined && value !== null ? String(value) : '');
|
|
11
7
|
}, '');
|
|
12
8
|
};
|
|
13
|
-
// Data narrative builders
|
|
14
9
|
export { sink, source } from './data-narrative-builders.js';
|
|
15
10
|
export { command, decide, evolve, experience, query, react } from './fluent-builder.js';
|
|
16
|
-
// Narrative conversion utilities
|
|
17
11
|
export { getNarratives } from './getNarratives.js';
|
|
18
|
-
|
|
12
|
+
export { addAutoIds, hasAllIds } from './id/index.js';
|
|
19
13
|
export { client, data, describe, example, it, narrative, narrative as flow, request, rule, SliceType, server, should, specs, thenError, } from './narrative.js';
|
|
20
|
-
|
|
21
|
-
export { ClientServerNamesSchema as ClientServerNamesSystemSchema, CommandSchema, CommandSliceSchema, EventSchema, ExampleSchema, ExperienceSliceSchema, IntegrationSchema, MappingEntrySchema, MappingFieldRefSchema, MessageFieldSchema, MessageRefSchema, MessageSchema, ModuleSchema, modelSchema as SpecsSystemSchema, modelSchema, NarrativeNamesSchema as NarrativeNamesSystemSchema, NarrativeSchema, QuerySchema, QuerySliceSchema, ReactSliceSchema, RuleSchema, SliceNamesSchema as SliceNamesSystemSchema, SliceSchema, SpecSchema, StateSchema, StepErrorSchema, StepSchema, StepWithDocStringSchema, StepWithErrorSchema, } from './schema.js';
|
|
22
|
-
// Testing helpers
|
|
14
|
+
export * from './schema.js';
|
|
23
15
|
export { createNarrativeSpec, given as testGiven, when as testWhen } from './testing.js';
|
|
24
16
|
export { modelToNarrative } from './transformers/model-to-narrative/index.js';
|
|
25
|
-
// ID assignment utilities
|
|
26
|
-
export { addAutoIds, hasAllIds } from './id/index.js';
|
|
27
17
|
export { detectQueryAction, extractQueryNameFromRequest } from './transformers/narrative-to-model/spec-processors.js';
|
|
28
18
|
//# sourceMappingURL=index.js.map
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AA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