@tomflow/proflow-platform-cli 0.1.3 → 0.1.5

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
@@ -1,5 +1,17 @@
1
1
  # @tomflow/proflow-platform-cli
2
2
 
3
+ ## 0.1.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Preserve module-provided ACTION_REQUIRED descriptions in startup preflight findings so missing Role readiness tells the user the missing registration fact, next action, and revalidation command.
8
+
9
+ ## 0.1.4
10
+
11
+ ### Patch Changes
12
+
13
+ - Make upgrade planning emit configuration writes only when a real config target exists, and fail before package mutation when new required configuration is missing.
14
+
3
15
  ## 0.1.3
4
16
 
5
17
  ### Patch Changes
@@ -5,7 +5,7 @@ export declare const behaviorAdapter: {
5
5
  ok: boolean;
6
6
  status: "SUCCEEDED";
7
7
  moduleRef: "platform-cli";
8
- moduleVersion: "0.1.3";
8
+ moduleVersion: "0.1.5";
9
9
  data?: {} | null;
10
10
  };
11
11
  observedEffects: never[];
@@ -16,7 +16,7 @@ export declare const behaviorAdapter: {
16
16
  ok: boolean;
17
17
  status: "SUCCEEDED";
18
18
  moduleRef: "platform-cli";
19
- moduleVersion: "0.1.3";
19
+ moduleVersion: "0.1.5";
20
20
  data?: {} | null;
21
21
  };
22
22
  observedEffects: never[];
@@ -27,7 +27,7 @@ export declare const behaviorAdapter: {
27
27
  ok: boolean;
28
28
  status: "SUCCEEDED";
29
29
  moduleRef: "platform-cli";
30
- moduleVersion: "0.1.3";
30
+ moduleVersion: "0.1.5";
31
31
  data?: {} | null;
32
32
  };
33
33
  observedEffects: never[];
@@ -38,7 +38,7 @@ export declare const behaviorAdapter: {
38
38
  ok: boolean;
39
39
  status: "SUCCEEDED";
40
40
  moduleRef: "platform-cli";
41
- moduleVersion: "0.1.3";
41
+ moduleVersion: "0.1.5";
42
42
  data?: {} | null;
43
43
  };
44
44
  observedEffects: never[];
@@ -49,7 +49,7 @@ export declare const behaviorAdapter: {
49
49
  ok: boolean;
50
50
  status: "SUCCEEDED";
51
51
  moduleRef: "platform-cli";
52
- moduleVersion: "0.1.3";
52
+ moduleVersion: "0.1.5";
53
53
  data?: {} | null;
54
54
  };
55
55
  observedEffects: never[];
@@ -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.3";
6
+ readonly moduleVersion: "0.1.5";
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.3",
6
+ moduleVersion: "0.1.5",
7
7
  kind: "cli",
8
8
  templateVersion: "1.0.0",
9
9
  platformCompatibility: ">=1.0.0 <2.0.0",
@@ -71,8 +71,17 @@ export function planUpgrade(input) {
71
71
  throw new PlatformError("UPGRADE_FAILED", `upgrade ${ref} has breaking changes but declares no migrate lifecycle: ${assessment.breakingChanges.join("; ")}`);
72
72
  }
73
73
  const dependencies = deps.get(ref) ?? [];
74
+ const configTarget = input.config?.[ref];
75
+ const missingRequiredConfig = module.configSlots
76
+ .filter((slot) => slot.required &&
77
+ slot.default === undefined &&
78
+ configTarget?.[slot.key] === undefined)
79
+ .map((slot) => slot.key);
80
+ if (missingRequiredConfig.length > 0) {
81
+ throw new PlatformError("UPGRADE_FAILED", `upgrade ${ref} requires configuration before package mutation: ${missingRequiredConfig.join(", ")}`);
82
+ }
74
83
  steps.push(packageStep(seq, module, "upgrade", dependencies));
75
- if (module.configSlots.length > 0) {
84
+ if (configTarget !== undefined) {
76
85
  steps.push(configStep(seq, module));
77
86
  }
78
87
  if (assessment?.migrationRequired === true) {
@@ -119,7 +119,7 @@ function modulePreflightMessage(moduleRef, result) {
119
119
  case "ACTION_REQUIRED": {
120
120
  const action = result.actionRequired;
121
121
  return action !== undefined
122
- ? `module ${moduleRef} preflight requires action "${action.action}"`
122
+ ? `module ${moduleRef} preflight requires action "${action.action}": ${action.description}`
123
123
  : `module ${moduleRef} preflight requires an unspecified human action`;
124
124
  }
125
125
  case "BLOCKED":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomflow/proflow-platform-cli",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -24,8 +24,8 @@
24
24
  "@tomflow/proflow-module-contract": "^0.1.1"
25
25
  },
26
26
  "devDependencies": {
27
- "@tomflow/proflow-deployment-conformance": "^0.1.2",
28
- "@tomflow/proflow-module-template": "^0.1.2"
27
+ "@tomflow/proflow-module-template": "^0.1.2",
28
+ "@tomflow/proflow-deployment-conformance": "^0.1.2"
29
29
  },
30
30
  "description": "Deterministic platform-level deployment discovery, planning, lifecycle and verification CLI.",
31
31
  "keywords": [
@@ -3,7 +3,7 @@
3
3
  "contractVersion": "1.0.0",
4
4
  "moduleRef": "platform-cli",
5
5
  "packageName": "@tomflow/proflow-platform-cli",
6
- "moduleVersion": "0.1.3",
6
+ "moduleVersion": "0.1.5",
7
7
  "kind": "cli",
8
8
  "templateVersion": "1.0.0",
9
9
  "platformCompatibility": ">=1.0.0 <2.0.0",