@cat-factory/orchestration 0.37.2 → 0.38.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/dist/container.d.ts +21 -2
- package/dist/container.d.ts.map +1 -1
- package/dist/container.js +6 -0
- package/dist/container.js.map +1 -1
- package/dist/modules/execution/ExecutionService.d.ts +22 -92
- package/dist/modules/execution/ExecutionService.d.ts.map +1 -1
- package/dist/modules/execution/ExecutionService.js +44 -150
- package/dist/modules/execution/ExecutionService.js.map +1 -1
- package/dist/modules/execution/gate-window-facades.d.ts +107 -0
- package/dist/modules/execution/gate-window-facades.d.ts.map +1 -0
- package/dist/modules/execution/gate-window-facades.js +114 -0
- package/dist/modules/execution/gate-window-facades.js.map +1 -0
- package/package.json +10 -10
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import type { BrainstormSession, BrainstormStage, ClarityReview, ExecutionInstance, RequirementReview, ResolveRequirementsExceededChoice } from '@cat-factory/kernel';
|
|
2
|
+
import type { ReviewCommon } from '../review/IterativeReviewService.js';
|
|
3
|
+
import type { ReviewGateController, ReviewKind } from './ReviewGateController.js';
|
|
4
|
+
/**
|
|
5
|
+
* The iterative-review window actions over ONE pre-bound {@link ReviewKind}: run a fresh pass,
|
|
6
|
+
* fold the human's answers, re-review the incorporated doc, proceed, or resolve a review that
|
|
7
|
+
* hit its iteration cap. Each is a verbatim delegation to the shared {@link ReviewGateController}
|
|
8
|
+
* with the kind pre-applied, so the requirements / clarity windows honour the task's preset
|
|
9
|
+
* identically. Shared by the pipeline gate and the off-path inspector "Run review" surface.
|
|
10
|
+
*/
|
|
11
|
+
export declare class ReviewWindowActions<TReview extends ReviewCommon> {
|
|
12
|
+
protected readonly reviewGate: ReviewGateController;
|
|
13
|
+
protected readonly kind: ReviewKind<TReview>;
|
|
14
|
+
constructor(reviewGate: ReviewGateController, kind: ReviewKind<TReview>);
|
|
15
|
+
/** Run a fresh reviewer pass over a block, snapshotting the task's merge-preset knobs. */
|
|
16
|
+
review(workspaceId: string, blockId: string): Promise<TReview>;
|
|
17
|
+
/**
|
|
18
|
+
* Incorporate the human's settled answers ASYNCHRONOUSLY. Validates that every finding is
|
|
19
|
+
* answered/dismissed, flags the review `incorporating`, records the intent on the parked
|
|
20
|
+
* gate step, and signals the durable driver to wake — which folds the answers and
|
|
21
|
+
* re-reviews in the background. Off-path (no parked run) the fold + re-review run inline.
|
|
22
|
+
*/
|
|
23
|
+
incorporate(workspaceId: string, blockId: string, feedback?: string): Promise<TReview>;
|
|
24
|
+
/**
|
|
25
|
+
* Re-review the incorporated document (one more reviewer pass). On convergence the parked
|
|
26
|
+
* run advances; otherwise the window shows the next cycle (`ready`) or the cap (`exceeded`).
|
|
27
|
+
*/
|
|
28
|
+
reReview(workspaceId: string, blockId: string): Promise<TReview>;
|
|
29
|
+
/** Proceed: settle the review (the last incorporated doc wins downstream) and advance. */
|
|
30
|
+
proceed(workspaceId: string, blockId: string): Promise<TReview>;
|
|
31
|
+
/** Resolve a review that hit its iteration cap (extra-round / proceed / stop-reset). */
|
|
32
|
+
resolveExceeded(workspaceId: string, blockId: string, choice: ResolveRequirementsExceededChoice): Promise<TReview>;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* The requirements-review window: the common iterative-review actions plus the two
|
|
36
|
+
* Requirement-Writer recommendation actions (batch-generate answers for a set of findings,
|
|
37
|
+
* and re-request a single one with a "do it differently" note).
|
|
38
|
+
*/
|
|
39
|
+
export declare class RequirementReviewActions extends ReviewWindowActions<RequirementReview> {
|
|
40
|
+
/**
|
|
41
|
+
* Ask the Requirement Writer to recommend answers for a batch of findings ASYNCHRONOUSLY:
|
|
42
|
+
* append `pending` placeholders at once and signal the driver to run the Writer per finding
|
|
43
|
+
* in the background. Returns the review with the placeholders so the SPA shows "generating…".
|
|
44
|
+
*/
|
|
45
|
+
requestRecommendations(workspaceId: string, blockId: string, itemIds: string[], note?: string): Promise<RequirementReview>;
|
|
46
|
+
/**
|
|
47
|
+
* Re-request a single recommendation with a "do it differently" note — resets it to `pending`
|
|
48
|
+
* and drives the Writer through the same async path. Review-scoped (addressed by review id).
|
|
49
|
+
*/
|
|
50
|
+
reRequestRecommendation(workspaceId: string, reviewId: string, recId: string, note: string): Promise<RequirementReview>;
|
|
51
|
+
}
|
|
52
|
+
/** The clarity-review (bug-report triage) window actions over the pre-bound clarity kind. */
|
|
53
|
+
export declare class ClarityReviewActions extends ReviewWindowActions<ClarityReview> {
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* The brainstorm (structured-dialogue) window actions. Unlike requirements/clarity, the
|
|
57
|
+
* brainstorm kind is stage-keyed (requirements vs architecture), so every action takes the
|
|
58
|
+
* `stage` and resolves the kind through the injected `kindFor`.
|
|
59
|
+
*/
|
|
60
|
+
export declare class BrainstormActions {
|
|
61
|
+
private readonly reviewGate;
|
|
62
|
+
private readonly kindFor;
|
|
63
|
+
constructor(reviewGate: ReviewGateController, kindFor: (stage: BrainstormStage) => ReviewKind<BrainstormSession>);
|
|
64
|
+
/** Run a fresh brainstorm pass over a block + stage (off-path inspector / window surface). */
|
|
65
|
+
review(workspaceId: string, blockId: string, stage: BrainstormStage): Promise<BrainstormSession>;
|
|
66
|
+
/** Incorporate the human's picks ASYNCHRONOUSLY (the brainstorm mirror of incorporate). */
|
|
67
|
+
incorporate(workspaceId: string, blockId: string, stage: BrainstormStage, feedback?: string): Promise<BrainstormSession>;
|
|
68
|
+
/** Re-run the brainstorm against the converged direction (one more pass). */
|
|
69
|
+
reReview(workspaceId: string, blockId: string, stage: BrainstormStage): Promise<BrainstormSession>;
|
|
70
|
+
/** Proceed: settle the brainstorm (last converged direction wins downstream) and advance. */
|
|
71
|
+
proceed(workspaceId: string, blockId: string, stage: BrainstormStage): Promise<BrainstormSession>;
|
|
72
|
+
/** Resolve a brainstorm that hit its iteration cap (extra-round / proceed / stop-reset). */
|
|
73
|
+
resolveExceeded(workspaceId: string, blockId: string, stage: BrainstormStage, choice: ResolveRequirementsExceededChoice): Promise<BrainstormSession>;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* The human-testing gate window actions (driven from the dedicated window): confirm the change
|
|
77
|
+
* works, submit findings + request a fix, pull main, or rebuild / destroy the ephemeral env.
|
|
78
|
+
* This is the action subset of the orchestration `HumanTestController` — declared as an
|
|
79
|
+
* interface so the engine can expose the controller as a getter WITHOUT leaking its
|
|
80
|
+
* engine-internal `evaluate` step-handler entrypoint to the server controllers.
|
|
81
|
+
*/
|
|
82
|
+
export interface HumanTestActions {
|
|
83
|
+
/** Confirm the change works: tear the ephemeral env down and advance the run. */
|
|
84
|
+
confirm(workspaceId: string, blockId: string): Promise<ExecutionInstance>;
|
|
85
|
+
/** Submit findings and request a fix: dispatch the Tester's `fixer`, then rebuild the env. */
|
|
86
|
+
requestFix(workspaceId: string, blockId: string, findings: string): Promise<ExecutionInstance>;
|
|
87
|
+
/** Pull the repo default branch into the PR branch + redeploy (conflict → conflict-resolver). */
|
|
88
|
+
pullMain(workspaceId: string, blockId: string): Promise<ExecutionInstance>;
|
|
89
|
+
/** Rebuild the ephemeral environment on demand. */
|
|
90
|
+
recreateEnvironment(workspaceId: string, blockId: string): Promise<ExecutionInstance>;
|
|
91
|
+
/** Destroy the ephemeral environment on demand (the run stays parked). */
|
|
92
|
+
destroyEnvironment(workspaceId: string, blockId: string): Promise<ExecutionInstance>;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* The visual-confirmation gate window actions (driven from the dedicated window): approve the
|
|
96
|
+
* reviewed screenshots, submit findings + request a fix, or recapture the screenshot pairs.
|
|
97
|
+
* The action subset of the orchestration `VisualConfirmationController` (see {@link HumanTestActions}).
|
|
98
|
+
*/
|
|
99
|
+
export interface VisualConfirmActions {
|
|
100
|
+
/** Approve the reviewed screenshots: advance the run. */
|
|
101
|
+
approve(workspaceId: string, blockId: string): Promise<ExecutionInstance>;
|
|
102
|
+
/** Submit findings and request a fix: dispatch the Tester's `fixer`, then re-park. */
|
|
103
|
+
requestFix(workspaceId: string, blockId: string, findings: string): Promise<ExecutionInstance>;
|
|
104
|
+
/** Refresh the screenshot pairs from the latest UI-tester report. */
|
|
105
|
+
recapture(workspaceId: string, blockId: string): Promise<ExecutionInstance>;
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=gate-window-facades.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gate-window-facades.d.ts","sourceRoot":"","sources":["../../../src/modules/execution/gate-window-facades.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,eAAe,EACf,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,iCAAiC,EAClC,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAA;AACvE,OAAO,KAAK,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAejF;;;;;;GAMG;AACH,qBAAa,mBAAmB,CAAC,OAAO,SAAS,YAAY;IAEzD,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,oBAAoB;IACnD,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC,OAAO,CAAC;IAF9C,YACqB,UAAU,EAAE,oBAAoB,EAChC,IAAI,EAAE,UAAU,CAAC,OAAO,CAAC,EAC1C;IAEJ,0FAA0F;IAC1F,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAE7D;IAED;;;;;OAKG;IACH,WAAW,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAErF;IAED;;;OAGG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAE/D;IAED,0FAA0F;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AM,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAA;IACzE,sFAAsF;IACtF,UAAU,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAA;IAC9F,qEAAqE;IACrE,SAAS,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAA;CAC5E"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
// ---------------------------------------------------------------------------
|
|
2
|
+
// Gate-window action sub-facades
|
|
3
|
+
// ---------------------------------------------------------------------------
|
|
4
|
+
//
|
|
5
|
+
// The dedicated review/test windows drive a parked gate from the SPA through a cluster of
|
|
6
|
+
// thin actions (run a pass, incorporate, re-review, proceed, resolve-at-cap, …). Those used
|
|
7
|
+
// to be ~30 near-identical 3-line delegations on `ExecutionService`, bloating its public
|
|
8
|
+
// surface. They are grouped here into per-feature sub-facades, exposed as getters on the
|
|
9
|
+
// still-injected `ExecutionService` (`.requirementsReview` / `.clarityReview` / `.brainstorm`
|
|
10
|
+
// / `.humanTest` / `.visualConfirm`) and consumed by the matching server controllers. The
|
|
11
|
+
// composition roots are untouched — the single `executionService` is still what every facade
|
|
12
|
+
// injects — so the runtimes stay symmetric.
|
|
13
|
+
/**
|
|
14
|
+
* The iterative-review window actions over ONE pre-bound {@link ReviewKind}: run a fresh pass,
|
|
15
|
+
* fold the human's answers, re-review the incorporated doc, proceed, or resolve a review that
|
|
16
|
+
* hit its iteration cap. Each is a verbatim delegation to the shared {@link ReviewGateController}
|
|
17
|
+
* with the kind pre-applied, so the requirements / clarity windows honour the task's preset
|
|
18
|
+
* identically. Shared by the pipeline gate and the off-path inspector "Run review" surface.
|
|
19
|
+
*/
|
|
20
|
+
export class ReviewWindowActions {
|
|
21
|
+
reviewGate;
|
|
22
|
+
kind;
|
|
23
|
+
constructor(reviewGate, kind) {
|
|
24
|
+
this.reviewGate = reviewGate;
|
|
25
|
+
this.kind = kind;
|
|
26
|
+
}
|
|
27
|
+
/** Run a fresh reviewer pass over a block, snapshotting the task's merge-preset knobs. */
|
|
28
|
+
review(workspaceId, blockId) {
|
|
29
|
+
return this.reviewGate.review(this.kind, workspaceId, blockId);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Incorporate the human's settled answers ASYNCHRONOUSLY. Validates that every finding is
|
|
33
|
+
* answered/dismissed, flags the review `incorporating`, records the intent on the parked
|
|
34
|
+
* gate step, and signals the durable driver to wake — which folds the answers and
|
|
35
|
+
* re-reviews in the background. Off-path (no parked run) the fold + re-review run inline.
|
|
36
|
+
*/
|
|
37
|
+
incorporate(workspaceId, blockId, feedback) {
|
|
38
|
+
return this.reviewGate.incorporate(this.kind, workspaceId, blockId, feedback);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Re-review the incorporated document (one more reviewer pass). On convergence the parked
|
|
42
|
+
* run advances; otherwise the window shows the next cycle (`ready`) or the cap (`exceeded`).
|
|
43
|
+
*/
|
|
44
|
+
reReview(workspaceId, blockId) {
|
|
45
|
+
return this.reviewGate.reReview(this.kind, workspaceId, blockId);
|
|
46
|
+
}
|
|
47
|
+
/** Proceed: settle the review (the last incorporated doc wins downstream) and advance. */
|
|
48
|
+
proceed(workspaceId, blockId) {
|
|
49
|
+
return this.reviewGate.proceed(this.kind, workspaceId, blockId);
|
|
50
|
+
}
|
|
51
|
+
/** Resolve a review that hit its iteration cap (extra-round / proceed / stop-reset). */
|
|
52
|
+
resolveExceeded(workspaceId, blockId, choice) {
|
|
53
|
+
return this.reviewGate.resolveExceeded(this.kind, workspaceId, blockId, choice);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* The requirements-review window: the common iterative-review actions plus the two
|
|
58
|
+
* Requirement-Writer recommendation actions (batch-generate answers for a set of findings,
|
|
59
|
+
* and re-request a single one with a "do it differently" note).
|
|
60
|
+
*/
|
|
61
|
+
export class RequirementReviewActions extends ReviewWindowActions {
|
|
62
|
+
/**
|
|
63
|
+
* Ask the Requirement Writer to recommend answers for a batch of findings ASYNCHRONOUSLY:
|
|
64
|
+
* append `pending` placeholders at once and signal the driver to run the Writer per finding
|
|
65
|
+
* in the background. Returns the review with the placeholders so the SPA shows "generating…".
|
|
66
|
+
*/
|
|
67
|
+
requestRecommendations(workspaceId, blockId, itemIds, note) {
|
|
68
|
+
return this.reviewGate.requestRecommendations(this.kind, workspaceId, blockId, itemIds, note);
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Re-request a single recommendation with a "do it differently" note — resets it to `pending`
|
|
72
|
+
* and drives the Writer through the same async path. Review-scoped (addressed by review id).
|
|
73
|
+
*/
|
|
74
|
+
reRequestRecommendation(workspaceId, reviewId, recId, note) {
|
|
75
|
+
return this.reviewGate.reRequestRecommendation(this.kind, workspaceId, reviewId, recId, note);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
/** The clarity-review (bug-report triage) window actions over the pre-bound clarity kind. */
|
|
79
|
+
export class ClarityReviewActions extends ReviewWindowActions {
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* The brainstorm (structured-dialogue) window actions. Unlike requirements/clarity, the
|
|
83
|
+
* brainstorm kind is stage-keyed (requirements vs architecture), so every action takes the
|
|
84
|
+
* `stage` and resolves the kind through the injected `kindFor`.
|
|
85
|
+
*/
|
|
86
|
+
export class BrainstormActions {
|
|
87
|
+
reviewGate;
|
|
88
|
+
kindFor;
|
|
89
|
+
constructor(reviewGate, kindFor) {
|
|
90
|
+
this.reviewGate = reviewGate;
|
|
91
|
+
this.kindFor = kindFor;
|
|
92
|
+
}
|
|
93
|
+
/** Run a fresh brainstorm pass over a block + stage (off-path inspector / window surface). */
|
|
94
|
+
review(workspaceId, blockId, stage) {
|
|
95
|
+
return this.reviewGate.review(this.kindFor(stage), workspaceId, blockId);
|
|
96
|
+
}
|
|
97
|
+
/** Incorporate the human's picks ASYNCHRONOUSLY (the brainstorm mirror of incorporate). */
|
|
98
|
+
incorporate(workspaceId, blockId, stage, feedback) {
|
|
99
|
+
return this.reviewGate.incorporate(this.kindFor(stage), workspaceId, blockId, feedback);
|
|
100
|
+
}
|
|
101
|
+
/** Re-run the brainstorm against the converged direction (one more pass). */
|
|
102
|
+
reReview(workspaceId, blockId, stage) {
|
|
103
|
+
return this.reviewGate.reReview(this.kindFor(stage), workspaceId, blockId);
|
|
104
|
+
}
|
|
105
|
+
/** Proceed: settle the brainstorm (last converged direction wins downstream) and advance. */
|
|
106
|
+
proceed(workspaceId, blockId, stage) {
|
|
107
|
+
return this.reviewGate.proceed(this.kindFor(stage), workspaceId, blockId);
|
|
108
|
+
}
|
|
109
|
+
/** Resolve a brainstorm that hit its iteration cap (extra-round / proceed / stop-reset). */
|
|
110
|
+
resolveExceeded(workspaceId, blockId, stage, choice) {
|
|
111
|
+
return this.reviewGate.resolveExceeded(this.kindFor(stage), workspaceId, blockId, choice);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
//# sourceMappingURL=gate-window-facades.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gate-window-facades.js","sourceRoot":"","sources":["../../../src/modules/execution/gate-window-facades.ts"],"names":[],"mappings":"AAWA,8EAA8E;AAC9E,iCAAiC;AACjC,8EAA8E;AAC9E,EAAE;AACF,0FAA0F;AAC1F,4FAA4F;AAC5F,yFAAyF;AACzF,yFAAyF;AACzF,8FAA8F;AAC9F,0FAA0F;AAC1F,6FAA6F;AAC7F,4CAA4C;AAE5C;;;;;;GAMG;AACH,MAAM,OAAO,mBAAmB;IAET,UAAU;IACV,IAAI;IAFzB,YACqB,UAAgC,EAChC,IAAyB;0BADzB,UAAU;oBACV,IAAI;IACtB,CAAC;IAEJ,0FAA0F;IAC1F,MAAM,CAAC,WAAmB,EAAE,OAAe;QACzC,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,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AC,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,CAAC,CAAA;IAC3F,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cat-factory/orchestration",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.38.0",
|
|
4
4
|
"description": "Delivery-workflow engine for the Agent Architecture Board (execution, bootstrap, pipelines, board, boardScan, requirements, and composition root).",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,19 +25,19 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"ai": "^6.0.209",
|
|
28
|
-
"@cat-factory/agents": "0.21.
|
|
29
|
-
"@cat-factory/contracts": "0.
|
|
30
|
-
"@cat-factory/integrations": "0.
|
|
31
|
-
"@cat-factory/kernel": "0.
|
|
32
|
-
"@cat-factory/prompt-fragments": "0.8.
|
|
33
|
-
"@cat-factory/sandbox": "0.8.
|
|
34
|
-
"@cat-factory/spend": "0.10.
|
|
35
|
-
"@cat-factory/workspaces": "0.9.
|
|
28
|
+
"@cat-factory/agents": "0.21.8",
|
|
29
|
+
"@cat-factory/contracts": "0.45.0",
|
|
30
|
+
"@cat-factory/integrations": "0.28.0",
|
|
31
|
+
"@cat-factory/kernel": "0.47.0",
|
|
32
|
+
"@cat-factory/prompt-fragments": "0.8.5",
|
|
33
|
+
"@cat-factory/sandbox": "0.8.31",
|
|
34
|
+
"@cat-factory/spend": "0.10.23",
|
|
35
|
+
"@cat-factory/workspaces": "0.9.14"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"typescript": "7.0.1-rc",
|
|
39
39
|
"vitest": "^4.1.9",
|
|
40
|
-
"@cat-factory/sandbox-fixtures": "0.7.
|
|
40
|
+
"@cat-factory/sandbox-fixtures": "0.7.48"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"build": "tsc -b tsconfig.build.json",
|