@tomflow/proflow-platform-cli 0.1.7 → 0.1.9

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.9
4
+
5
+ ### Patch Changes
6
+
7
+ - Clarify whole-instance uninstall preservation boundaries in public CLI help and package documentation.
8
+
9
+ ## 0.1.8
10
+
11
+ ### Patch Changes
12
+
13
+ - Align human-action completion across Apply resume, preflight, and manifest current reality by treating the latest current-version verification PASS as the durable completion proof while preserving append-only deployment history.
14
+
3
15
  ## 0.1.7
4
16
 
5
17
  ### Patch Changes
package/README.md CHANGED
@@ -55,4 +55,5 @@ platform manifest [module]
55
55
  - Requested Workspace paths are canonicalized before binding comparison. A second distinct Workspace is rejected with `WORKSPACE_ALREADY_BOUND` until the current Platform Instance is uninstalled.
56
56
  - `status/start/stop/restart/modules/docs/verify/doctor/upgrade/uninstall` resolve the durable global binding rather than the caller's cwd. `platform status` exposes the bound Workspace path.
57
57
  - `platform uninstall` without a module/package removes the current Platform Instance and clears its binding; it does not uninstall the global CLI package.
58
+ - Whole-instance uninstall removes managed ProFlow modules plus Deployment-owned `.proflow/deployment` state (plans, deployment state, verification, and instance identity). Business/domain data outside `.proflow/deployment` is intentionally preserved. v1 has no purge mode, so ordinary uninstall never claims to delete preserved domain data.
58
59
  - Workspace package mutation is package-manager agnostic for v1: `npm`, `yarn`, and `pnpm` are supported. The CLI installation manager and the bound Workspace manager are independent facts.
@@ -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.7";
8
+ moduleVersion: "0.1.9";
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.7";
19
+ moduleVersion: "0.1.9";
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.7";
30
+ moduleVersion: "0.1.9";
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.7";
41
+ moduleVersion: "0.1.9";
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.7";
52
+ moduleVersion: "0.1.9";
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.7";
6
+ readonly moduleVersion: "0.1.9";
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.7",
6
+ moduleVersion: "0.1.9",
7
7
  kind: "cli",
8
8
  templateVersion: "1.0.0",
9
9
  platformCompatibility: ">=1.0.0 <2.0.0",
@@ -1,5 +1,5 @@
1
1
  import { dispatchLifecycle } from "../lifecycle/index.js";
2
- import { loadConfig } from "../persistence/index.js";
2
+ import { loadConfig, loadLatestVerification } from "../persistence/index.js";
3
3
  export function createRealityObserver(deps) {
4
4
  return {
5
5
  observe(step, plan) {
@@ -87,7 +87,19 @@ async function observeStep(deps, step, plan) {
87
87
  }
88
88
  case "lifecycle":
89
89
  case "external-resource":
90
- case "human":
91
90
  return observeViaStatus(deps.catalog, module);
91
+ case "human": {
92
+ const statusReality = await observeViaStatus(deps.catalog, module);
93
+ if (statusReality === undefined)
94
+ return undefined;
95
+ if (statusReality.humanActionVerified === true)
96
+ return statusReality;
97
+ const latest = await loadLatestVerification(deps.paths, module.moduleRef);
98
+ return {
99
+ ...statusReality,
100
+ humanActionVerified: latest?.result === "PASS" &&
101
+ latest.moduleVersion === module.moduleVersion,
102
+ };
103
+ }
92
104
  }
93
105
  }
package/dist/src/cli.js CHANGED
@@ -1288,7 +1288,7 @@ export async function runCli(argv, runtime = {}) {
1288
1288
  "platform plan --intent configure --config <file>",
1289
1289
  "platform apply <planRef>",
1290
1290
  "platform start | status | verify | doctor | stop | restart",
1291
- "platform uninstall # uninstall the bound Platform Instance, not the global CLI",
1291
+ "platform uninstall # remove managed modules and .proflow/deployment state; preserve business/domain data outside .proflow/deployment; clear binding; keep the global CLI; v1 has no purge mode",
1292
1292
  "append --json for the stable machine-readable contract",
1293
1293
  ],
1294
1294
  },
@@ -38,6 +38,7 @@ export async function buildManifest(deps) {
38
38
  const pendingActions = [];
39
39
  const blockingActions = [];
40
40
  const resources = [];
41
+ const currentVerifiedModuleRefs = new Set();
41
42
  const materializedConfig = {};
42
43
  for (const module of modules) {
43
44
  // materialized config current reality (never caller-supplied intent)
@@ -106,6 +107,10 @@ export async function buildManifest(deps) {
106
107
  const history = await loadVerificationHistory(deps.paths, module.moduleRef);
107
108
  allRecords.push(...history);
108
109
  const latest = history[history.length - 1];
110
+ if (latest?.result === "PASS" &&
111
+ latest.moduleVersion === module.moduleVersion) {
112
+ currentVerifiedModuleRefs.add(module.moduleRef);
113
+ }
109
114
  const lastPassAt = lastVerifiedAt(history, "PASS");
110
115
  const lastFailAt = lastVerifiedAt(history, "FAIL");
111
116
  verification.push({
@@ -129,6 +134,8 @@ export async function buildManifest(deps) {
129
134
  if (deploymentState !== undefined) {
130
135
  for (const pending of clearCompletedPendingActions(deploymentState)
131
136
  .pendingActions) {
137
+ if (currentVerifiedModuleRefs.has(pending.moduleRef))
138
+ continue;
132
139
  const action = {
133
140
  moduleRef: pending.moduleRef,
134
141
  action: pending.action,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomflow/proflow-platform-cli",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
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.7",
6
+ "moduleVersion": "0.1.9",
7
7
  "kind": "cli",
8
8
  "templateVersion": "1.0.0",
9
9
  "platformCompatibility": ">=1.0.0 <2.0.0",