@tomflow/proflow-dev-tunnel 0.1.0 → 0.1.2

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 ADDED
@@ -0,0 +1,13 @@
1
+ # @tomflow/proflow-dev-tunnel
2
+
3
+ ## 0.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Real-1 final remediation and black-box release closure
8
+
9
+ ## 0.1.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Close the Real-1 global Platform control-plane contract across every published ProFlow package. Platform CLI now owns one durable global Workspace binding with canonical identity, cross-process operation locking, cwd/`--workspace` install targeting, cross-directory instance commands, whole-instance uninstall/rebind, and deterministic npm/yarn/pnpm Workspace package-manager selection. Every package-owned install entry, including newly generated Module Template packages, delegates to the Shell-global `platform` command and fails closed when that global CLI is unavailable; Deployment Conformance and the formal test plans mechanically enforce the same rule across all 24 packages.
@@ -191,7 +191,9 @@ export function createBehaviorAdapter(input) {
191
191
  uninstall: async () => {
192
192
  if (!input) {
193
193
  return {
194
- result: actionRequired("configure-tunnel", "No bound dev-tunnel resource to stop before package removal"),
194
+ // No bound tunnel means there is no managed external resource to
195
+ // stop. Whole-instance uninstall must remain idempotent.
196
+ result: success(),
195
197
  observedEffects: [],
196
198
  };
197
199
  }
@@ -3,7 +3,7 @@ export declare const descriptor: {
3
3
  readonly contractVersion: "1.0.0";
4
4
  readonly moduleRef: "dev-tunnel";
5
5
  readonly packageName: "@tomflow/proflow-dev-tunnel";
6
- readonly moduleVersion: "0.1.0";
6
+ readonly moduleVersion: "0.1.2";
7
7
  readonly kind: "external-resource";
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: "dev-tunnel",
5
5
  packageName: "@tomflow/proflow-dev-tunnel",
6
- moduleVersion: "0.1.0",
6
+ moduleVersion: "0.1.2",
7
7
  kind: "external-resource",
8
8
  templateVersion: "1.0.0",
9
9
  platformCompatibility: ">=1.0.0 <2.0.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomflow/proflow-dev-tunnel",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -18,10 +18,10 @@
18
18
  "self-install.mjs"
19
19
  ],
20
20
  "dependencies": {
21
- "@tomflow/proflow-module-contract": "^0.1.0"
21
+ "@tomflow/proflow-module-contract": "^0.1.1"
22
22
  },
23
23
  "devDependencies": {
24
- "@tomflow/proflow-deployment-conformance": "^0.1.0"
24
+ "@tomflow/proflow-deployment-conformance": "^0.1.2"
25
25
  },
26
26
  "description": "Governs the Microsoft Dev Tunnel public HTTPS ingress resource and its managed local host process.",
27
27
  "keywords": [
@@ -3,7 +3,7 @@
3
3
  "contractVersion": "1.0.0",
4
4
  "moduleRef": "dev-tunnel",
5
5
  "packageName": "@tomflow/proflow-dev-tunnel",
6
- "moduleVersion": "0.1.0",
6
+ "moduleVersion": "0.1.2",
7
7
  "kind": "external-resource",
8
8
  "templateVersion": "1.0.0",
9
9
  "platformCompatibility": ">=1.0.0 <2.0.0",
package/self-install.mjs CHANGED
@@ -11,16 +11,19 @@ if (command !== "install" || rest.length > 0) {
11
11
  process.stderr.write(usage);
12
12
  process.exit(2);
13
13
  }
14
- const executable = process.platform === "win32" ? "npx.cmd" : "npx";
14
+ const executable = process.platform === "win32" ? "platform.cmd" : "platform";
15
15
  const result = spawnSync(
16
16
  executable,
17
- [
18
- "--yes",
19
- "@tomflow/proflow-platform-cli",
20
- "install",
21
- "@tomflow/proflow-dev-tunnel",
22
- ],
17
+ ["install", "@tomflow/proflow-dev-tunnel", "--workspace", process.cwd()],
23
18
  { cwd: process.cwd(), env: process.env, stdio: "inherit" },
24
19
  );
25
- if (result.error) throw result.error;
20
+ if (result.error) {
21
+ if (result.error.code === "ENOENT") {
22
+ process.stderr.write(
23
+ "GLOBAL_PLATFORM_CLI_REQUIRED: install @tomflow/proflow-platform-cli globally before package-owned install\n",
24
+ );
25
+ process.exit(127);
26
+ }
27
+ throw result.error;
28
+ }
26
29
  process.exit(result.status ?? 1);