@tomflow/proflow-platform-cli 0.1.18 → 0.1.19
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/CHANGELOG.md
CHANGED
|
@@ -6,7 +6,7 @@ export declare const behaviorAdapter: {
|
|
|
6
6
|
readonly ok: true;
|
|
7
7
|
readonly status: "SUCCEEDED";
|
|
8
8
|
readonly moduleRef: "platform-cli";
|
|
9
|
-
readonly moduleVersion: "0.1.
|
|
9
|
+
readonly moduleVersion: "0.1.19";
|
|
10
10
|
};
|
|
11
11
|
observedEffects: never[];
|
|
12
12
|
}>;
|
|
@@ -16,7 +16,7 @@ export declare const behaviorAdapter: {
|
|
|
16
16
|
readonly ok: true;
|
|
17
17
|
readonly status: "SUCCEEDED";
|
|
18
18
|
readonly moduleRef: "platform-cli";
|
|
19
|
-
readonly moduleVersion: "0.1.
|
|
19
|
+
readonly moduleVersion: "0.1.19";
|
|
20
20
|
};
|
|
21
21
|
observedEffects: never[];
|
|
22
22
|
}>;
|
|
@@ -26,7 +26,7 @@ export declare const behaviorAdapter: {
|
|
|
26
26
|
ok: true;
|
|
27
27
|
status: "SUCCEEDED";
|
|
28
28
|
moduleRef: "platform-cli";
|
|
29
|
-
moduleVersion: "0.1.
|
|
29
|
+
moduleVersion: "0.1.19";
|
|
30
30
|
data: {
|
|
31
31
|
readonly setupStatus: "READY";
|
|
32
32
|
readonly runtimeStatus: "NOT_APPLICABLE";
|
|
@@ -40,7 +40,7 @@ export declare const behaviorAdapter: {
|
|
|
40
40
|
readonly ok: true;
|
|
41
41
|
readonly status: "SUCCEEDED";
|
|
42
42
|
readonly moduleRef: "platform-cli";
|
|
43
|
-
readonly moduleVersion: "0.1.
|
|
43
|
+
readonly moduleVersion: "0.1.19";
|
|
44
44
|
};
|
|
45
45
|
observedEffects: never[];
|
|
46
46
|
}>;
|
|
@@ -50,7 +50,7 @@ export declare const behaviorAdapter: {
|
|
|
50
50
|
ok: true;
|
|
51
51
|
status: "SUCCEEDED";
|
|
52
52
|
moduleRef: "platform-cli";
|
|
53
|
-
moduleVersion: "0.1.
|
|
53
|
+
moduleVersion: "0.1.19";
|
|
54
54
|
data: {
|
|
55
55
|
docs: string;
|
|
56
56
|
setup: string;
|
|
@@ -64,7 +64,7 @@ export declare const behaviorAdapter: {
|
|
|
64
64
|
readonly ok: true;
|
|
65
65
|
readonly status: "SUCCEEDED";
|
|
66
66
|
readonly moduleRef: "platform-cli";
|
|
67
|
-
readonly moduleVersion: "0.1.
|
|
67
|
+
readonly moduleVersion: "0.1.19";
|
|
68
68
|
};
|
|
69
69
|
observedEffects: never[];
|
|
70
70
|
}>;
|
|
@@ -74,7 +74,7 @@ export declare const behaviorAdapter: {
|
|
|
74
74
|
readonly ok: true;
|
|
75
75
|
readonly status: "SUCCEEDED";
|
|
76
76
|
readonly moduleRef: "platform-cli";
|
|
77
|
-
readonly moduleVersion: "0.1.
|
|
77
|
+
readonly moduleVersion: "0.1.19";
|
|
78
78
|
};
|
|
79
79
|
observedEffects: never[];
|
|
80
80
|
}>;
|
|
@@ -3,7 +3,7 @@ export declare const descriptor: {
|
|
|
3
3
|
readonly contractVersion: "1.0.0";
|
|
4
4
|
readonly moduleRef: "platform-cli";
|
|
5
5
|
readonly packageName: "@tomflow/proflow-platform-cli";
|
|
6
|
-
readonly moduleVersion: "0.1.
|
|
6
|
+
readonly moduleVersion: "0.1.19";
|
|
7
7
|
readonly kind: "cli";
|
|
8
8
|
readonly templateVersion: "1.0.0";
|
|
9
9
|
readonly platformCompatibility: ">=1.0.0 <2.0.0";
|
|
@@ -3,7 +3,7 @@ export const descriptor = {
|
|
|
3
3
|
contractVersion: "1.0.0",
|
|
4
4
|
moduleRef: "platform-cli",
|
|
5
5
|
packageName: "@tomflow/proflow-platform-cli",
|
|
6
|
-
moduleVersion: "0.1.
|
|
6
|
+
moduleVersion: "0.1.19",
|
|
7
7
|
kind: "cli",
|
|
8
8
|
templateVersion: "1.0.0",
|
|
9
9
|
platformCompatibility: ">=1.0.0 <2.0.0",
|
package/dist/src/cli.js
CHANGED
|
@@ -415,12 +415,20 @@ function renderSetup(data) {
|
|
|
415
415
|
pending += 1;
|
|
416
416
|
lines.push(`## ${moduleRef} — ${status}`);
|
|
417
417
|
const actionRequired = raw.result.actionRequired;
|
|
418
|
+
const error = raw.result.error;
|
|
418
419
|
if (isRecord(actionRequired)) {
|
|
419
420
|
if (actionRequired.action !== undefined)
|
|
420
421
|
lines.push(`Action: ${String(actionRequired.action)}`);
|
|
421
422
|
if (actionRequired.description !== undefined)
|
|
422
423
|
lines.push(String(actionRequired.description));
|
|
423
424
|
}
|
|
425
|
+
else if (isRecord(error)) {
|
|
426
|
+
const code = error.code === undefined ? "FAILED" : String(error.code);
|
|
427
|
+
const message = error.message === undefined
|
|
428
|
+
? "Module setup failed."
|
|
429
|
+
: String(error.message);
|
|
430
|
+
lines.push(`Error: ${code} — ${message}`);
|
|
431
|
+
}
|
|
424
432
|
else if (raw.result.data !== undefined) {
|
|
425
433
|
lines.push(JSON.stringify(raw.result.data, null, 2));
|
|
426
434
|
}
|
|
@@ -433,6 +441,10 @@ function renderSetup(data) {
|
|
|
433
441
|
return lines.join("\n").trimEnd();
|
|
434
442
|
}
|
|
435
443
|
export function renderHumanResult(result) {
|
|
444
|
+
if (result.command === "setup" &&
|
|
445
|
+
isRecord(result.data) &&
|
|
446
|
+
Array.isArray(result.data.results))
|
|
447
|
+
return renderSetup(result.data);
|
|
436
448
|
if (result.status === "FAILED")
|
|
437
449
|
return `${result.command.toUpperCase()} FAILED${result.error ? ` [${result.error.code}] ${result.error.message}` : ""}`;
|
|
438
450
|
if (result.command === "help")
|
package/package.json
CHANGED
package/proflow.module.json
CHANGED