@tomflow/proflow-platform-cli 0.1.22 → 0.1.24
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 +12 -0
- package/dist/deployment/adapter.d.ts +7 -7
- package/dist/deployment/adapter.js +1 -1
- package/dist/deployment/descriptor.d.ts +1 -1
- package/dist/deployment/descriptor.js +1 -1
- package/dist/src/cli.js +6 -0
- package/dist/src/install/pnpm-policy.js +14 -10
- package/package.json +4 -4
- package/proflow.module.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @tomflow/proflow-platform-cli
|
|
2
2
|
|
|
3
|
+
## 0.1.24
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Merge pnpm policy ownership across repeated installs so uninstall removes every ProFlow-introduced version exclusion while preserving user-owned entries.
|
|
8
|
+
|
|
9
|
+
## 0.1.23
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Resolve DOCS.md from both source and built deployment adapters, prove all 24 built adapters return the published body, and announce package synchronization before the package manager blocks.
|
|
14
|
+
|
|
3
15
|
## 0.1.22
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -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.24";
|
|
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.24";
|
|
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.24";
|
|
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.24";
|
|
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.24";
|
|
54
54
|
data: {
|
|
55
55
|
docs: string;
|
|
56
56
|
};
|
|
@@ -63,7 +63,7 @@ export declare const behaviorAdapter: {
|
|
|
63
63
|
readonly ok: true;
|
|
64
64
|
readonly status: "SUCCEEDED";
|
|
65
65
|
readonly moduleRef: "platform-cli";
|
|
66
|
-
readonly moduleVersion: "0.1.
|
|
66
|
+
readonly moduleVersion: "0.1.24";
|
|
67
67
|
};
|
|
68
68
|
observedEffects: never[];
|
|
69
69
|
}>;
|
|
@@ -73,7 +73,7 @@ export declare const behaviorAdapter: {
|
|
|
73
73
|
readonly ok: true;
|
|
74
74
|
readonly status: "SUCCEEDED";
|
|
75
75
|
readonly moduleRef: "platform-cli";
|
|
76
|
-
readonly moduleVersion: "0.1.
|
|
76
|
+
readonly moduleVersion: "0.1.24";
|
|
77
77
|
};
|
|
78
78
|
observedEffects: never[];
|
|
79
79
|
}>;
|
|
@@ -32,7 +32,7 @@ export const behaviorAdapter = {
|
|
|
32
32
|
result: {
|
|
33
33
|
...base,
|
|
34
34
|
data: {
|
|
35
|
-
docs: readFileSync(new URL("../DOCS.md", import.meta.url), "utf8"),
|
|
35
|
+
docs: readFileSync(new URL(import.meta.url.includes("/dist/") ? "../../DOCS.md" : "../DOCS.md", import.meta.url), "utf8"),
|
|
36
36
|
},
|
|
37
37
|
},
|
|
38
38
|
observedEffects: [],
|
|
@@ -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.24";
|
|
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.24",
|
|
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
|
@@ -229,6 +229,12 @@ async function handleInstall(root, runtime) {
|
|
|
229
229
|
throw new PlatformError("PACKAGE_NOT_FOUND", "no ProFlow packages were discovered in the configured scope");
|
|
230
230
|
const previousManaged = await workspaceProFlowDependencies(root);
|
|
231
231
|
const pnpmPolicyBefore = await observeMinimumReleaseAgeExclude(root);
|
|
232
|
+
reportProgress(runtime.onProgress, {
|
|
233
|
+
command: "install",
|
|
234
|
+
phase: "packages",
|
|
235
|
+
status: "STARTED",
|
|
236
|
+
message: "正在同步依赖",
|
|
237
|
+
});
|
|
232
238
|
const mutation = await syncWorkspacePackages({
|
|
233
239
|
workspaceRoot: root,
|
|
234
240
|
packages: discovered.candidates.map((item) => ({
|
|
@@ -32,26 +32,30 @@ export async function observeMinimumReleaseAgeExclude(root) {
|
|
|
32
32
|
}
|
|
33
33
|
export async function recordPnpmPolicyOwnership(root, before) {
|
|
34
34
|
const after = await observeMinimumReleaseAgeExclude(root);
|
|
35
|
-
const
|
|
36
|
-
if (
|
|
35
|
+
const newlyIntroduced = after.filter((value) => !before.includes(value));
|
|
36
|
+
if (newlyIntroduced.length === 0)
|
|
37
37
|
return;
|
|
38
|
+
const introduced = [
|
|
39
|
+
...new Set([...(await readOwnedValues(root)), ...newlyIntroduced]),
|
|
40
|
+
].sort();
|
|
38
41
|
await mkdir(join(root, ".proflow", "deployment"), { recursive: true });
|
|
39
42
|
await atomicWrite(ownershipFile(root), `${JSON.stringify({ contract: "proflow.pnpm-policy-ownership.v1", introduced }, null, 2)}\n`);
|
|
40
43
|
}
|
|
41
|
-
|
|
42
|
-
let introduced;
|
|
44
|
+
async function readOwnedValues(root) {
|
|
43
45
|
try {
|
|
44
46
|
const parsed = JSON.parse(await readFile(ownershipFile(root), "utf8"));
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
: [];
|
|
47
|
+
return typeof parsed === "object" &&
|
|
48
|
+
parsed !== null &&
|
|
49
|
+
Array.isArray(Reflect.get(parsed, "introduced"))
|
|
50
|
+
? Reflect.get(parsed, "introduced").filter((value) => typeof value === "string")
|
|
51
|
+
: [];
|
|
51
52
|
}
|
|
52
53
|
catch {
|
|
53
54
|
return [];
|
|
54
55
|
}
|
|
56
|
+
}
|
|
57
|
+
export async function cleanOwnedPnpmPolicy(root) {
|
|
58
|
+
const introduced = await readOwnedValues(root);
|
|
55
59
|
if (introduced.length === 0)
|
|
56
60
|
return [];
|
|
57
61
|
const source = await text(root);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tomflow/proflow-platform-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.24",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"SETUP.md"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@tomflow/proflow-module-contract": "^0.1.
|
|
27
|
+
"@tomflow/proflow-module-contract": "^0.1.9"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@tomflow/proflow-deployment-conformance": "^0.1.
|
|
31
|
-
"@tomflow/proflow-module-template": "^0.1.
|
|
30
|
+
"@tomflow/proflow-deployment-conformance": "^0.1.7",
|
|
31
|
+
"@tomflow/proflow-module-template": "^0.1.7"
|
|
32
32
|
},
|
|
33
33
|
"description": "Thin Platform CLI for Module discovery, documentation, package synchronization and lifecycle orchestration.",
|
|
34
34
|
"keywords": [
|
package/proflow.module.json
CHANGED