@ankhorage/studio 2.5.6 → 2.5.7
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/features/project-updates/application/ProjectUpdateService.d.ts +1 -0
- package/dist/features/project-updates/application/ProjectUpdateService.d.ts.map +1 -1
- package/dist/features/project-updates/application/ProjectUpdateService.js +10 -1
- package/dist/features/project-updates/application/ProjectUpdateService.js.map +1 -1
- package/dist/types/project-updates.d.ts +2 -1
- package/dist/types/project-updates.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -3,6 +3,7 @@ import type { ProjectUpdateServiceOptions } from '../../../types/project-updates
|
|
|
3
3
|
/*** Compose Studio's project update lifecycle through the released APM Node use cases. */
|
|
4
4
|
export declare class ProjectUpdateService {
|
|
5
5
|
private readonly options;
|
|
6
|
+
private readonly statusPort;
|
|
6
7
|
/*** Create one Studio update service with optional package-owned protocol and execution ports. */
|
|
7
8
|
constructor(options?: ProjectUpdateServiceOptions);
|
|
8
9
|
/*** Inspect dependency/update evidence without mutating the project. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectUpdateService.d.ts","sourceRoot":"","sources":["../../../../src/features/project-updates/application/ProjectUpdateService.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,mBAAmB,EACnB,aAAa,
|
|
1
|
+
{"version":3,"file":"ProjectUpdateService.d.ts","sourceRoot":"","sources":["../../../../src/features/project-updates/application/ProjectUpdateService.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,mBAAmB,EACnB,aAAa,EAEb,cAAc,EACd,eAAe,EACf,cAAc,EACd,eAAe,EAChB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAC;AAElF,0FAA0F;AAC1F,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA8B;IACtD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAuB;IAElD,kGAAkG;gBACtF,OAAO,GAAE,2BAAgC;IAUrD,wEAAwE;IAClE,WAAW,CAAC,KAAK,EAAE,cAAc,GAAG,OAAO,CAAC,eAAe,CAAC;IAIlE,4FAA4F;IACtF,SAAS,CAAC,KAAK,EAAE,mBAAmB,GAAG,OAAO,CAAC,aAAa,CAAC;IAOnE,sGAAsG;IAChG,UAAU,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO,CAAC,cAAc,CAAC;IAa/D,kGAAkG;IAC5F,WAAW,CAAC,KAAK,EAAE,cAAc,GAAG,OAAO,CAAC,eAAe,CAAC;CAQnE"}
|
|
@@ -2,23 +2,31 @@ import { applyProjectAsync, planProjectAsync, statusProjectAsync, verifyProjectA
|
|
|
2
2
|
/*** Compose Studio's project update lifecycle through the released APM Node use cases. */
|
|
3
3
|
export class ProjectUpdateService {
|
|
4
4
|
options;
|
|
5
|
+
statusPort;
|
|
5
6
|
/*** Create one Studio update service with optional package-owned protocol and execution ports. */
|
|
6
7
|
constructor(options = {}) {
|
|
7
8
|
this.options = options;
|
|
9
|
+
this.statusPort = {
|
|
10
|
+
inspectStatusAsync: (input) => statusProjectAsync(input, {
|
|
11
|
+
...(options.extensions === undefined ? {} : { extensions: options.extensions }),
|
|
12
|
+
}),
|
|
13
|
+
};
|
|
8
14
|
}
|
|
9
15
|
/*** Inspect dependency/update evidence without mutating the project. */
|
|
10
16
|
async statusAsync(input) {
|
|
11
|
-
return
|
|
17
|
+
return this.statusPort.inspectStatusAsync(input);
|
|
12
18
|
}
|
|
13
19
|
/*** Produce one reviewable APM plan using Studio-owned protocol evidence when available. */
|
|
14
20
|
async planAsync(input) {
|
|
15
21
|
return planProjectAsync(input, {
|
|
22
|
+
status: this.statusPort,
|
|
16
23
|
...(this.options.protocol === undefined ? {} : { protocol: this.options.protocol }),
|
|
17
24
|
});
|
|
18
25
|
}
|
|
19
26
|
/*** Start or resume one durable APM operation using Studio-owned execution adapters when required. */
|
|
20
27
|
async applyAsync(input) {
|
|
21
28
|
return applyProjectAsync(input, {
|
|
29
|
+
status: this.statusPort,
|
|
22
30
|
...(this.options.applyOwnerStep === undefined
|
|
23
31
|
? {}
|
|
24
32
|
: { ownerStep: this.options.applyOwnerStep }),
|
|
@@ -31,6 +39,7 @@ export class ProjectUpdateService {
|
|
|
31
39
|
/*** Verify one completed APM operation against fresh project and package-owned postconditions. */
|
|
32
40
|
async verifyAsync(input) {
|
|
33
41
|
return verifyProjectAsync(input, {
|
|
42
|
+
status: this.statusPort,
|
|
34
43
|
...(this.options.verifyOwnerStep === undefined
|
|
35
44
|
? {}
|
|
36
45
|
: { ownerStep: this.options.verifyOwnerStep }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectUpdateService.js","sourceRoot":"","sources":["../../../../src/features/project-updates/application/ProjectUpdateService.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"ProjectUpdateService.js","sourceRoot":"","sources":["../../../../src/features/project-updates/application/ProjectUpdateService.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAe7B,0FAA0F;AAC1F,MAAM,OAAO,oBAAoB;IACd,OAAO,CAA8B;IACrC,UAAU,CAAuB;IAElD,kGAAkG;IAClG,YAAY,UAAuC,EAAE;QACnD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,UAAU,GAAG;YAChB,kBAAkB,EAAE,CAAC,KAAK,EAAE,EAAE,CAC5B,kBAAkB,CAAC,KAAK,EAAE;gBACxB,GAAG,CAAC,OAAO,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC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W,CAAC,KAAqB;QACrC,OAAO,kBAAkB,CAAC,KAAK,EAAE;YAC/B,MAAM,EAAE,IAAI,CAAC,UAAU;YACvB,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,KAAK,SAAS;gBAC5C,CAAC,CAAC,EAAE;gBACJ,CAAC,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,CAAC;SACjD,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type { ApmApplyCancellationPort, ApmApplyProgressPort, ApmApplyStepPort, ApmPlanProtocolPort, ApmVerifyStepPort } from '@ankhorage/apm/types';
|
|
1
|
+
import type { ApmApplyCancellationPort, ApmApplyProgressPort, ApmApplyStepPort, ApmPlanProtocolPort, ApmStatusExtensionEvidencePort, ApmVerifyStepPort } from '@ankhorage/apm/types';
|
|
2
2
|
/*** Optional Studio-owned ports composed around the released APM project update lifecycle. */
|
|
3
3
|
export interface ProjectUpdateServiceOptions {
|
|
4
|
+
readonly extensions?: ApmStatusExtensionEvidencePort;
|
|
4
5
|
readonly protocol?: ApmPlanProtocolPort;
|
|
5
6
|
readonly applyOwnerStep?: ApmApplyStepPort;
|
|
6
7
|
readonly verifyOwnerStep?: ApmVerifyStepPort;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-updates.d.ts","sourceRoot":"","sources":["../../src/types/project-updates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,EACnB,iBAAiB,EAClB,MAAM,sBAAsB,CAAC;AAE9B,8FAA8F;AAC9F,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IACxC,QAAQ,CAAC,cAAc,CAAC,EAAE,gBAAgB,CAAC;IAC3C,QAAQ,CAAC,eAAe,CAAC,EAAE,iBAAiB,CAAC;IAC7C,QAAQ,CAAC,QAAQ,CAAC,EAAE,oBAAoB,CAAC;IACzC,QAAQ,CAAC,YAAY,CAAC,EAAE,wBAAwB,CAAC;CAClD"}
|
|
1
|
+
{"version":3,"file":"project-updates.d.ts","sourceRoot":"","sources":["../../src/types/project-updates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,EACnB,8BAA8B,EAC9B,iBAAiB,EAClB,MAAM,sBAAsB,CAAC;AAE9B,8FAA8F;AAC9F,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,UAAU,CAAC,EAAE,8BAA8B,CAAC;IACrD,QAAQ,CAAC,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IACxC,QAAQ,CAAC,cAAc,CAAC,EAAE,gBAAgB,CAAC;IAC3C,QAAQ,CAAC,eAAe,CAAC,EAAE,iBAAiB,CAAC;IAC7C,QAAQ,CAAC,QAAQ,CAAC,EAAE,oBAAoB,CAAC;IACzC,QAAQ,CAAC,YAAY,CAAC,EAAE,wBAAwB,CAAC;CAClD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ankhorage/studio",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.7",
|
|
4
4
|
"description": "Studio authoring package for Ankhorage apps",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/ankhorage/studio#readme",
|
|
@@ -200,7 +200,7 @@
|
|
|
200
200
|
"supabase-vault"
|
|
201
201
|
],
|
|
202
202
|
"dependencies": {
|
|
203
|
-
"@ankhorage/apm": "^0.
|
|
203
|
+
"@ankhorage/apm": "^0.6.0",
|
|
204
204
|
"@ankhorage/color-theory": "^0.3.0",
|
|
205
205
|
"@ankhorage/contracts": "^13.0.0",
|
|
206
206
|
"@ankhorage/data-sources": "^2.0.3",
|