@skmtc/core 0.58.2 → 0.58.4

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 (63) hide show
  1. package/esm/context/BuiltOnRead.d.ts +37 -0
  2. package/esm/context/BuiltOnRead.js +199 -0
  3. package/esm/context/CoreContext.js +11 -5
  4. package/esm/context/GenerateContext.d.ts +3 -3
  5. package/esm/context/GenerateContext.js +13 -6
  6. package/esm/context/ParseContext.js +116 -11
  7. package/esm/context/Subject.d.ts +29 -2
  8. package/esm/context/Subject.js +67 -6
  9. package/esm/context/generateTypes.d.ts +2 -2
  10. package/esm/dsl/model/ModelDriver.js +2 -2
  11. package/esm/dsl/operation/gql/GqlOperationDriver.js +2 -2
  12. package/esm/dsl/operation/oas/OasOperationDriver.js +2 -2
  13. package/esm/dsl/webhook/WebhookDriver.js +2 -2
  14. package/esm/helpers/getPath.d.ts +6 -0
  15. package/esm/helpers/getPath.js +6 -0
  16. package/esm/helpers/isDeepEqual.d.ts +17 -0
  17. package/esm/helpers/isDeepEqual.js +93 -0
  18. package/esm/helpers/parseModuleName.d.ts +8 -8
  19. package/esm/helpers/parseModuleName.js +8 -8
  20. package/esm/helpers/toVariantList.d.ts +1 -1
  21. package/esm/oas/document/Document.d.ts +5 -1
  22. package/esm/oas/document/Document.js +10 -1
  23. package/esm/oas/document/documentSource.d.ts +37 -0
  24. package/esm/oas/document/documentSource.js +27 -0
  25. package/esm/oas/schema/siblings.js +6 -4
  26. package/esm/parse/v3-0/operation/toOperationsV3.d.ts +14 -0
  27. package/esm/parse/v3-0/operation/toOperationsV3.js +68 -67
  28. package/esm/parse/v3-1/operation/toOperationsV3.d.ts +14 -0
  29. package/esm/parse/v3-1/operation/toOperationsV3.js +68 -67
  30. package/esm/parse/v3-2/operation/toOperationsV3.d.ts +14 -0
  31. package/esm/parse/v3-2/operation/toOperationsV3.js +69 -68
  32. package/package.json +1 -4
  33. package/script/context/BuiltOnRead.d.ts +37 -0
  34. package/script/context/BuiltOnRead.js +203 -0
  35. package/script/context/CoreContext.js +11 -5
  36. package/script/context/GenerateContext.d.ts +3 -3
  37. package/script/context/GenerateContext.js +13 -6
  38. package/script/context/ParseContext.js +116 -11
  39. package/script/context/Subject.d.ts +29 -2
  40. package/script/context/Subject.js +67 -6
  41. package/script/context/generateTypes.d.ts +2 -2
  42. package/script/dsl/model/ModelDriver.js +2 -5
  43. package/script/dsl/operation/gql/GqlOperationDriver.js +2 -5
  44. package/script/dsl/operation/oas/OasOperationDriver.js +2 -2
  45. package/script/dsl/webhook/WebhookDriver.js +2 -5
  46. package/script/helpers/getPath.d.ts +6 -0
  47. package/script/helpers/getPath.js +10 -0
  48. package/script/helpers/isDeepEqual.d.ts +17 -0
  49. package/script/helpers/isDeepEqual.js +97 -0
  50. package/script/helpers/parseModuleName.d.ts +8 -8
  51. package/script/helpers/parseModuleName.js +8 -8
  52. package/script/helpers/toVariantList.d.ts +1 -1
  53. package/script/oas/document/Document.d.ts +5 -1
  54. package/script/oas/document/Document.js +10 -1
  55. package/script/oas/document/documentSource.d.ts +37 -0
  56. package/script/oas/document/documentSource.js +36 -0
  57. package/script/oas/schema/siblings.js +6 -7
  58. package/script/parse/v3-0/operation/toOperationsV3.d.ts +14 -0
  59. package/script/parse/v3-0/operation/toOperationsV3.js +71 -69
  60. package/script/parse/v3-1/operation/toOperationsV3.d.ts +14 -0
  61. package/script/parse/v3-1/operation/toOperationsV3.js +71 -69
  62. package/script/parse/v3-2/operation/toOperationsV3.d.ts +14 -0
  63. package/script/parse/v3-2/operation/toOperationsV3.js +72 -70
@@ -49,74 +49,75 @@ export const toOperationV3 = ({ operation, operationInfo, stackTrail, context })
49
49
  }, context));
50
50
  };
51
51
  export const toOperationsV3 = ({ paths, stackTrail, context }) => {
52
- return Object.entries(paths).flatMap(([path, pathItem]) => {
53
- return stackTrail.trace(path, pathStack => {
54
- if (!pathItem) {
55
- return [];
56
- }
57
- const cleaned = Object.entries(pathItem).reduce(({ rest, methodObject }, [key, operation]) => {
58
- const method = toPathItemMethod(key);
59
- if (method) {
60
- const { [method]: _deleted, ...remaining } = rest;
61
- return {
62
- rest: remaining,
63
- methodObject: {
64
- ...methodObject,
65
- [method]: operation
66
- }
67
- };
52
+ return Object.entries(paths).flatMap(([path, pathItem]) => stackTrail.trace(path, pathStack => pathItem ? toPathOperationsV3({ path, pathItem, stackTrail: pathStack, context }) : []));
53
+ };
54
+ /**
55
+ * The operations of the path item at `path`. They share one parsed path
56
+ * item. With `method`, only the operation at that method is parsed.
57
+ */
58
+ export const toPathOperationsV3 = ({ path, pathItem, stackTrail: pathStack, context, method: only }) => {
59
+ const cleaned = Object.entries(pathItem).reduce(({ rest, methodObject }, [key, operation]) => {
60
+ const method = toPathItemMethod(key);
61
+ if (method) {
62
+ const { [method]: _deleted, ...remaining } = rest;
63
+ return {
64
+ rest: remaining,
65
+ methodObject: {
66
+ ...methodObject,
67
+ [method]: operation
68
68
  }
69
- return { rest, methodObject };
70
- }, {
71
- rest: pathItem,
72
- methodObject: {}
73
- });
74
- const pathItemResult = !isEmpty(cleaned.rest)
75
- ? toPathItemV3({ pathItem: cleaned.rest, stackTrail: pathStack, context })
76
- : undefined;
77
- const pathItemObject = pathItemResult?.pathItem;
78
- const brokenParameters = pathItemResult?.brokenParameters ?? [];
79
- return Object.entries(cleaned.methodObject)
80
- .map(([method, operation]) => {
81
- // Use `pathStack` (the trail with `path` already pushed),
82
- // not the outer `stackTrail` — otherwise downstream traces
83
- // record paths:<method>:... and lose the actual path
84
- // segment, which breaks `OasDocument.removeItem` and the
85
- // dependency-ref invalidation it backs.
86
- return pathStack.trace(method, st => {
87
- if (!operation) {
88
- return;
89
- }
90
- if (isDroppedByPathParameter({ brokenParameters, operation, stackTrail: st, context })) {
91
- return undefined;
92
- }
93
- try {
94
- return toOperationV3({
95
- operation,
96
- operationInfo: {
97
- method: method,
98
- path,
99
- pathItem: pathItemObject
100
- },
101
- stackTrail: st,
102
- context
103
- });
104
- }
105
- catch (error) {
106
- const normalized = error instanceof Error ? error : new Error(String(error));
107
- context.logIssueNoKey({
108
- parent: operation,
109
- level: 'error',
110
- message: normalized.message,
111
- cause: normalized,
112
- stackTrail: st,
113
- type: 'INVALID_OPERATION'
114
- });
115
- return undefined;
116
- }
69
+ };
70
+ }
71
+ return { rest, methodObject };
72
+ }, {
73
+ rest: pathItem,
74
+ methodObject: {}
75
+ });
76
+ const pathItemResult = !isEmpty(cleaned.rest)
77
+ ? toPathItemV3({ pathItem: cleaned.rest, stackTrail: pathStack, context })
78
+ : undefined;
79
+ const pathItemObject = pathItemResult?.pathItem;
80
+ const brokenParameters = pathItemResult?.brokenParameters ?? [];
81
+ return Object.entries(cleaned.methodObject)
82
+ .filter(([method]) => only === undefined || method === only)
83
+ .map(([method, operation]) => {
84
+ // Use `pathStack` (the trail with `path` already pushed),
85
+ // not the outer `stackTrail` — otherwise downstream traces
86
+ // record paths:<method>:... and lose the actual path
87
+ // segment, which breaks `OasDocument.removeItem` and the
88
+ // dependency-ref invalidation it backs.
89
+ return pathStack.trace(method, st => {
90
+ if (!operation) {
91
+ return;
92
+ }
93
+ if (isDroppedByPathParameter({ brokenParameters, operation, stackTrail: st, context })) {
94
+ return undefined;
95
+ }
96
+ try {
97
+ return toOperationV3({
98
+ operation,
99
+ operationInfo: {
100
+ method: method,
101
+ path,
102
+ pathItem: pathItemObject
103
+ },
104
+ stackTrail: st,
105
+ context
117
106
  });
118
- })
119
- .filter((item) => Boolean(item));
107
+ }
108
+ catch (error) {
109
+ const normalized = error instanceof Error ? error : new Error(String(error));
110
+ context.logIssueNoKey({
111
+ parent: operation,
112
+ level: 'error',
113
+ message: normalized.message,
114
+ cause: normalized,
115
+ stackTrail: st,
116
+ type: 'INVALID_OPERATION'
117
+ });
118
+ return undefined;
119
+ }
120
120
  });
121
- });
121
+ })
122
+ .filter((item) => Boolean(item));
122
123
  };
@@ -22,4 +22,18 @@ export type ToOperationsV3Args = {
22
22
  context: ParseContextType;
23
23
  };
24
24
  export declare const toOperationsV3: ({ paths, stackTrail, context }: ToOperationsV3Args) => OasOperation[];
25
+ export type ToPathOperationsV3Args = {
26
+ path: string;
27
+ pathItem: OpenAPIV3.PathItemObject;
28
+ /** The trail of the path item, with `path` already pushed. */
29
+ stackTrail: StackTrail;
30
+ context: ParseContextType;
31
+ /** Parses only the operation at this method. */
32
+ method?: Method;
33
+ };
34
+ /**
35
+ * The operations of the path item at `path`. They share one parsed path
36
+ * item. With `method`, only the operation at that method is parsed.
37
+ */
38
+ export declare const toPathOperationsV3: ({ path, pathItem, stackTrail: pathStack, context, method: only }: ToPathOperationsV3Args) => OasOperation[];
25
39
  export {};
@@ -52,74 +52,75 @@ export const toOperationsV3 = ({ paths, stackTrail, context }) => {
52
52
  if (!paths) {
53
53
  return [];
54
54
  }
55
- return Object.entries(paths).flatMap(([path, pathItem]) => {
56
- return stackTrail.trace(path, pathStack => {
57
- if (!pathItem) {
58
- return [];
59
- }
60
- const cleaned = Object.entries(pathItem).reduce(({ rest, methodObject }, [key, operation]) => {
61
- const method = toPathItemMethod(key);
62
- if (method) {
63
- const { [method]: _deleted, ...remaining } = rest;
64
- return {
65
- rest: remaining,
66
- methodObject: {
67
- ...methodObject,
68
- [method]: operation
69
- }
70
- };
55
+ return Object.entries(paths).flatMap(([path, pathItem]) => stackTrail.trace(path, pathStack => pathItem ? toPathOperationsV3({ path, pathItem, stackTrail: pathStack, context }) : []));
56
+ };
57
+ /**
58
+ * The operations of the path item at `path`. They share one parsed path
59
+ * item. With `method`, only the operation at that method is parsed.
60
+ */
61
+ export const toPathOperationsV3 = ({ path, pathItem, stackTrail: pathStack, context, method: only }) => {
62
+ const cleaned = Object.entries(pathItem).reduce(({ rest, methodObject }, [key, operation]) => {
63
+ const method = toPathItemMethod(key);
64
+ if (method) {
65
+ const { [method]: _deleted, ...remaining } = rest;
66
+ return {
67
+ rest: remaining,
68
+ methodObject: {
69
+ ...methodObject,
70
+ [method]: operation
71
71
  }
72
- return { rest, methodObject };
73
- }, {
74
- rest: pathItem,
75
- methodObject: {}
76
- });
77
- const pathItemResult = !isEmpty(cleaned.rest)
78
- ? toPathItemV3({ pathItem: cleaned.rest, stackTrail: pathStack, context })
79
- : undefined;
80
- const pathItemObject = pathItemResult?.pathItem;
81
- const brokenParameters = pathItemResult?.brokenParameters ?? [];
82
- return Object.entries(cleaned.methodObject)
83
- .map(([method, operation]) => {
84
- // Use `pathStack` (the trail with `path` already pushed),
85
- // not the outer `stackTrail` — otherwise downstream traces
86
- // record paths:<method>:... and lose the actual path
87
- // segment, which breaks `OasDocument.removeItem` and the
88
- // dependency-ref invalidation it backs.
89
- return pathStack.trace(method, st => {
90
- if (!operation) {
91
- return;
92
- }
93
- if (isDroppedByPathParameter({ brokenParameters, operation, stackTrail: st, context })) {
94
- return undefined;
95
- }
96
- try {
97
- return toOperationV3({
98
- operation,
99
- operationInfo: {
100
- method: method,
101
- path,
102
- pathItem: pathItemObject
103
- },
104
- stackTrail: st,
105
- context
106
- });
107
- }
108
- catch (error) {
109
- const normalized = error instanceof Error ? error : new Error(String(error));
110
- context.logIssueNoKey({
111
- parent: operation,
112
- level: 'error',
113
- message: normalized.message,
114
- cause: normalized,
115
- stackTrail: st,
116
- type: 'INVALID_OPERATION'
117
- });
118
- return undefined;
119
- }
72
+ };
73
+ }
74
+ return { rest, methodObject };
75
+ }, {
76
+ rest: pathItem,
77
+ methodObject: {}
78
+ });
79
+ const pathItemResult = !isEmpty(cleaned.rest)
80
+ ? toPathItemV3({ pathItem: cleaned.rest, stackTrail: pathStack, context })
81
+ : undefined;
82
+ const pathItemObject = pathItemResult?.pathItem;
83
+ const brokenParameters = pathItemResult?.brokenParameters ?? [];
84
+ return Object.entries(cleaned.methodObject)
85
+ .filter(([method]) => only === undefined || method === only)
86
+ .map(([method, operation]) => {
87
+ // Use `pathStack` (the trail with `path` already pushed),
88
+ // not the outer `stackTrail` — otherwise downstream traces
89
+ // record paths:<method>:... and lose the actual path
90
+ // segment, which breaks `OasDocument.removeItem` and the
91
+ // dependency-ref invalidation it backs.
92
+ return pathStack.trace(method, st => {
93
+ if (!operation) {
94
+ return;
95
+ }
96
+ if (isDroppedByPathParameter({ brokenParameters, operation, stackTrail: st, context })) {
97
+ return undefined;
98
+ }
99
+ try {
100
+ return toOperationV3({
101
+ operation,
102
+ operationInfo: {
103
+ method: method,
104
+ path,
105
+ pathItem: pathItemObject
106
+ },
107
+ stackTrail: st,
108
+ context
120
109
  });
121
- })
122
- .filter((item) => Boolean(item));
110
+ }
111
+ catch (error) {
112
+ const normalized = error instanceof Error ? error : new Error(String(error));
113
+ context.logIssueNoKey({
114
+ parent: operation,
115
+ level: 'error',
116
+ message: normalized.message,
117
+ cause: normalized,
118
+ stackTrail: st,
119
+ type: 'INVALID_OPERATION'
120
+ });
121
+ return undefined;
122
+ }
123
123
  });
124
- });
124
+ })
125
+ .filter((item) => Boolean(item));
125
126
  };
@@ -22,4 +22,18 @@ export type ToOperationsV3Args = {
22
22
  context: ParseContextType;
23
23
  };
24
24
  export declare const toOperationsV3: ({ paths, stackTrail, context }: ToOperationsV3Args) => OasOperation[];
25
+ export type ToPathOperationsV3Args = {
26
+ path: string;
27
+ pathItem: OpenAPIV3.PathItemObject;
28
+ /** The trail of the path item, with `path` already pushed. */
29
+ stackTrail: StackTrail;
30
+ context: ParseContextType;
31
+ /** Parses only the operation at this method. */
32
+ method?: Method;
33
+ };
34
+ /**
35
+ * The operations of the path item at `path`. They share one parsed path
36
+ * item. With `method`, only the operation at that method is parsed.
37
+ */
38
+ export declare const toPathOperationsV3: ({ path, pathItem, stackTrail: pathStack, context, method: only }: ToPathOperationsV3Args) => OasOperation[];
25
39
  export {};
@@ -55,75 +55,76 @@ export const toOperationsV3 = ({ paths, stackTrail, context }) => {
55
55
  if (!paths) {
56
56
  return [];
57
57
  }
58
- return Object.entries(paths).flatMap(([path, pathItem]) => {
59
- return stackTrail.trace(path, pathStack => {
60
- if (!pathItem) {
61
- return [];
62
- }
63
- const fixedFields = dropAdditionalOperationsV3({ pathItem, stackTrail: pathStack, context });
64
- const cleaned = Object.entries(fixedFields).reduce(({ rest, methodObject }, [key, operation]) => {
65
- const method = toPathItemMethod(key);
66
- if (method) {
67
- const { [method]: _deleted, ...remaining } = rest;
68
- return {
69
- rest: remaining,
70
- methodObject: {
71
- ...methodObject,
72
- [method]: operation
73
- }
74
- };
58
+ return Object.entries(paths).flatMap(([path, pathItem]) => stackTrail.trace(path, pathStack => pathItem ? toPathOperationsV3({ path, pathItem, stackTrail: pathStack, context }) : []));
59
+ };
60
+ /**
61
+ * The operations of the path item at `path`. They share one parsed path
62
+ * item. With `method`, only the operation at that method is parsed.
63
+ */
64
+ export const toPathOperationsV3 = ({ path, pathItem, stackTrail: pathStack, context, method: only }) => {
65
+ const fixedFields = dropAdditionalOperationsV3({ pathItem, stackTrail: pathStack, context });
66
+ const cleaned = Object.entries(fixedFields).reduce(({ rest, methodObject }, [key, operation]) => {
67
+ const method = toPathItemMethod(key);
68
+ if (method) {
69
+ const { [method]: _deleted, ...remaining } = rest;
70
+ return {
71
+ rest: remaining,
72
+ methodObject: {
73
+ ...methodObject,
74
+ [method]: operation
75
75
  }
76
- return { rest, methodObject };
77
- }, {
78
- rest: fixedFields,
79
- methodObject: {}
80
- });
81
- const pathItemResult = !isEmpty(cleaned.rest)
82
- ? toPathItemV3({ pathItem: cleaned.rest, stackTrail: pathStack, context })
83
- : undefined;
84
- const pathItemObject = pathItemResult?.pathItem;
85
- const brokenParameters = pathItemResult?.brokenParameters ?? [];
86
- return Object.entries(cleaned.methodObject)
87
- .map(([method, operation]) => {
88
- // Use `pathStack` (the trail with `path` already pushed),
89
- // not the outer `stackTrail` — otherwise downstream traces
90
- // record paths:<method>:... and lose the actual path
91
- // segment, which breaks `OasDocument.removeItem` and the
92
- // dependency-ref invalidation it backs.
93
- return pathStack.trace(method, st => {
94
- if (!operation) {
95
- return;
96
- }
97
- if (isDroppedByPathParameter({ brokenParameters, operation, stackTrail: st, context })) {
98
- return undefined;
99
- }
100
- try {
101
- return toOperationV3({
102
- operation,
103
- operationInfo: {
104
- method: method,
105
- path,
106
- pathItem: pathItemObject
107
- },
108
- stackTrail: st,
109
- context
110
- });
111
- }
112
- catch (error) {
113
- const normalized = error instanceof Error ? error : new Error(String(error));
114
- context.logIssueNoKey({
115
- parent: operation,
116
- level: 'error',
117
- message: normalized.message,
118
- cause: normalized,
119
- stackTrail: st,
120
- type: 'INVALID_OPERATION'
121
- });
122
- return undefined;
123
- }
76
+ };
77
+ }
78
+ return { rest, methodObject };
79
+ }, {
80
+ rest: fixedFields,
81
+ methodObject: {}
82
+ });
83
+ const pathItemResult = !isEmpty(cleaned.rest)
84
+ ? toPathItemV3({ pathItem: cleaned.rest, stackTrail: pathStack, context })
85
+ : undefined;
86
+ const pathItemObject = pathItemResult?.pathItem;
87
+ const brokenParameters = pathItemResult?.brokenParameters ?? [];
88
+ return Object.entries(cleaned.methodObject)
89
+ .filter(([method]) => only === undefined || method === only)
90
+ .map(([method, operation]) => {
91
+ // Use `pathStack` (the trail with `path` already pushed),
92
+ // not the outer `stackTrail` — otherwise downstream traces
93
+ // record paths:<method>:... and lose the actual path
94
+ // segment, which breaks `OasDocument.removeItem` and the
95
+ // dependency-ref invalidation it backs.
96
+ return pathStack.trace(method, st => {
97
+ if (!operation) {
98
+ return;
99
+ }
100
+ if (isDroppedByPathParameter({ brokenParameters, operation, stackTrail: st, context })) {
101
+ return undefined;
102
+ }
103
+ try {
104
+ return toOperationV3({
105
+ operation,
106
+ operationInfo: {
107
+ method: method,
108
+ path,
109
+ pathItem: pathItemObject
110
+ },
111
+ stackTrail: st,
112
+ context
124
113
  });
125
- })
126
- .filter((item) => Boolean(item));
114
+ }
115
+ catch (error) {
116
+ const normalized = error instanceof Error ? error : new Error(String(error));
117
+ context.logIssueNoKey({
118
+ parent: operation,
119
+ level: 'error',
120
+ message: normalized.message,
121
+ cause: normalized,
122
+ stackTrail: st,
123
+ type: 'INVALID_OPERATION'
124
+ });
125
+ return undefined;
126
+ }
127
127
  });
128
- });
128
+ })
129
+ .filter((item) => Boolean(item));
129
130
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skmtc/core",
3
- "version": "0.58.2",
3
+ "version": "0.58.4",
4
4
  "description": "Skmtc is a declarative code generation framework",
5
5
  "keywords": [
6
6
  "openapi",
@@ -213,9 +213,7 @@
213
213
  },
214
214
  "rootDir": "./",
215
215
  "dependencies": {
216
- "@types/lodash-es": "4.17.12",
217
216
  "graphql": "^16.9.0",
218
- "lodash-es": "4.17.21",
219
217
  "openapi-types": "^12.1.3",
220
218
  "tiny-invariant": "1.3.3",
221
219
  "valibot": "1.5.0",
@@ -223,7 +221,6 @@
223
221
  },
224
222
  "devDependencies": {
225
223
  "@types/node": "^20.9.0",
226
- "@types/lodash-es": "4.17.12",
227
224
  "openapi-types": "12.1.3",
228
225
  "valibot": "1.1.0"
229
226
  },
@@ -0,0 +1,37 @@
1
+ /**
2
+ * In a run with `onArtifact`, the operations and the component schemas that
3
+ * pass 1 parsed are let go once the file plan is built. Each is built again
4
+ * from the input document when a generator reads it, and let go after the
5
+ * last subject that can read it. Internal: `mod.ts` does not list this file.
6
+ */
7
+ import type { OasDocument } from '../oas/document/Document.js';
8
+ import type { Reach } from '../parse/Reach.js';
9
+ import type { PlannedSubject } from './Subject.js';
10
+ type BuiltOnReadArgs = {
11
+ document: OasDocument;
12
+ /** The subjects of the run, in the order their steps run. */
13
+ subjects: PlannedSubject[];
14
+ reach: Reach;
15
+ };
16
+ /**
17
+ * The run's operations and component schemas, built when read. `start` and
18
+ * `finish` go round each step, as `FilePlan.finish` does.
19
+ */
20
+ export declare class BuiltOnRead {
21
+ #private;
22
+ private constructor();
23
+ /**
24
+ * Lets the parsed operations and component schemas of `document` go, or
25
+ * returns `undefined` when its parse context builds nothing again (a run
26
+ * without `onArtifact`). Call it once the file plan is built.
27
+ */
28
+ static start({ document, subjects, reach }: BuiltOnReadArgs): BuiltOnRead | undefined;
29
+ /**
30
+ * `subject`'s step starts. The first read of its operation in the step
31
+ * builds it, and every generator of the step gets that object.
32
+ */
33
+ start(subject: PlannedSubject): void;
34
+ /** `subject`'s step has run: its operation goes, and each schema no subject left reaches. */
35
+ finish(subject: PlannedSubject): void;
36
+ }
37
+ export {};