@tomflow/proflow-task-orchestration 0.1.1 → 0.1.3

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/DOCS.md ADDED
@@ -0,0 +1,27 @@
1
+ # @tomflow/proflow-task-orchestration — Module Docs
2
+
3
+ Module ref: `task-orchestration`
4
+ Domain: `task-orchestration`
5
+ Kind: `library`
6
+
7
+ Owns the Task & Orchestration public contract, domain rules and application services.
8
+
9
+ ## Standard management surface
10
+
11
+ `install / uninstall / status / setup / docs / start / stop`
12
+
13
+ ## Provides
14
+
15
+ - `task-orchestration` `1.0.0`
16
+
17
+ ## Requires
18
+
19
+ - None.
20
+
21
+ ## Public setup inputs
22
+
23
+ - None. Deterministic/private values and cross-Module shared facts are not public configuration.
24
+
25
+ ## Ownership boundary
26
+
27
+ Module business APIs and any module-specific extra commands remain package-owned. Platform does not proxy or interpret them. Current human/external preparation is documented in `SETUP.md`.
package/SETUP.md ADDED
@@ -0,0 +1,7 @@
1
+ # @tomflow/proflow-task-orchestration — Module Setup
2
+
3
+ No user or external setup is required by the current frozen Module contract. `Module.install` completes deterministic preparation; `Module.setup` only re-observes current reality and must not ask the user to supply private paths, loopback endpoints, tokens or cross-Module facts.
4
+
5
+ ## Completion
6
+
7
+ Setup is complete only when the Module's own `status` reports `setupStatus=READY`. Re-running setup must re-observe reality; it must not resume from a blind historical step index.
@@ -1,47 +1,46 @@
1
- export declare const behaviorAdapter: {
2
- readonly describe: () => {
3
- result: {
4
- readonly contract: "deployment.result.v1";
5
- readonly ok: true;
6
- readonly status: "SUCCEEDED";
7
- readonly moduleRef: "task-orchestration";
8
- readonly moduleVersion: "0.1.1";
9
- };
10
- observedEffects: never[];
11
- };
12
- readonly preflight: () => {
13
- result: {
14
- readonly contract: "deployment.result.v1";
15
- readonly ok: true;
16
- readonly status: "SUCCEEDED";
17
- readonly moduleRef: "task-orchestration";
18
- readonly moduleVersion: "0.1.1";
19
- };
20
- observedEffects: never[];
1
+ declare const success: () => {
2
+ result: {
3
+ readonly contract: "deployment.result.v1";
4
+ readonly ok: true;
5
+ readonly status: "SUCCEEDED";
6
+ readonly moduleRef: "task-orchestration";
7
+ readonly moduleVersion: "0.1.3";
21
8
  };
22
- readonly verify: () => {
9
+ observedEffects: string[];
10
+ };
11
+ export declare const behaviorAdapter: {
12
+ readonly install: typeof success;
13
+ readonly uninstall: typeof success;
14
+ readonly status: () => {
23
15
  result: {
24
16
  contract: "deployment.result.v1";
25
17
  ok: true;
26
18
  status: "SUCCEEDED";
27
19
  moduleRef: "task-orchestration";
28
- moduleVersion: "0.1.1";
29
- checks: {
30
- id: string;
31
- status: string;
32
- message: string;
33
- }[];
20
+ moduleVersion: "0.1.3";
21
+ data: {
22
+ setupStatus: "READY";
23
+ runtimeStatus: "NOT_APPLICABLE";
24
+ };
34
25
  };
35
- observedEffects: never[];
26
+ observedEffects: string[];
36
27
  };
37
- readonly doctor: () => {
28
+ readonly setup: typeof success;
29
+ readonly docs: () => {
38
30
  result: {
39
- readonly contract: "deployment.result.v1";
40
- readonly ok: true;
41
- readonly status: "SUCCEEDED";
42
- readonly moduleRef: "task-orchestration";
43
- readonly moduleVersion: "0.1.1";
31
+ contract: "deployment.result.v1";
32
+ ok: true;
33
+ status: "SUCCEEDED";
34
+ moduleRef: "task-orchestration";
35
+ moduleVersion: "0.1.3";
36
+ data: {
37
+ readonly docs: "DOCS.md";
38
+ readonly setup: "SETUP.md";
39
+ };
44
40
  };
45
- observedEffects: never[];
41
+ observedEffects: string[];
46
42
  };
43
+ readonly start: typeof success;
44
+ readonly stop: typeof success;
47
45
  };
46
+ export {};
@@ -1,26 +1,30 @@
1
1
  import { descriptor } from "./descriptor.js";
2
- const result = {
2
+ const base = {
3
3
  contract: "deployment.result.v1",
4
4
  ok: true,
5
5
  status: "SUCCEEDED",
6
6
  moduleRef: descriptor.moduleRef,
7
7
  moduleVersion: descriptor.moduleVersion,
8
8
  };
9
+ const success = () => ({ result: base, observedEffects: [] });
9
10
  export const behaviorAdapter = {
10
- describe: () => ({ result, observedEffects: [] }),
11
- preflight: () => ({ result, observedEffects: [] }),
12
- verify: () => ({
11
+ install: success,
12
+ uninstall: success,
13
+ status: () => ({
13
14
  result: {
14
- ...result,
15
- checks: [
16
- {
17
- id: "task-domain-tests-pass",
18
- status: "PASS",
19
- message: "Task Domain test gate is available",
20
- },
21
- ],
15
+ ...base,
16
+ data: {
17
+ setupStatus: "READY",
18
+ runtimeStatus: "NOT_APPLICABLE",
19
+ },
22
20
  },
23
21
  observedEffects: [],
24
22
  }),
25
- doctor: () => ({ result, observedEffects: [] }),
23
+ setup: success,
24
+ docs: () => ({
25
+ result: { ...base, data: descriptor.documentation },
26
+ observedEffects: [],
27
+ }),
28
+ start: success,
29
+ stop: success,
26
30
  };
@@ -3,11 +3,10 @@ export declare const descriptor: {
3
3
  readonly contractVersion: "1.0.0";
4
4
  readonly moduleRef: "task-orchestration";
5
5
  readonly packageName: "@tomflow/proflow-task-orchestration";
6
- readonly moduleVersion: "0.1.1";
6
+ readonly moduleVersion: "0.1.3";
7
7
  readonly kind: "library";
8
8
  readonly templateVersion: "1.0.0";
9
9
  readonly platformCompatibility: ">=1.0.0 <2.0.0";
10
- readonly installClass: "core";
11
10
  readonly identity: {
12
11
  readonly domain: "task-orchestration";
13
12
  readonly summary: "Owns the Task & Orchestration public contract, domain rules and application services.";
@@ -23,24 +22,13 @@ export declare const descriptor: {
23
22
  readonly versionRange: ">=24.19.0";
24
23
  }];
25
24
  readonly configSlots: readonly [];
26
- readonly lifecycle: {
27
- readonly supported: readonly ["describe", "preflight", "verify", "doctor"];
28
- };
29
- readonly verification: {
30
- readonly checks: readonly [{
31
- readonly id: "task-domain-tests-pass";
32
- readonly description: "Task orchestration Critical Proofs pass";
33
- readonly lifecycle: "verify";
34
- }];
35
- };
36
25
  readonly effects: readonly [{
37
26
  readonly kind: "filesystem";
38
27
  readonly description: "Owns TaskDocument Markdown writes inside the configured workspace";
39
28
  readonly retention: "preserve";
40
29
  }];
41
- readonly documentation: readonly [{
42
- readonly id: "overview";
43
- readonly path: "./README.md";
44
- readonly description: "Package-owned module overview";
45
- }];
30
+ readonly documentation: {
31
+ readonly docs: "DOCS.md";
32
+ readonly setup: "SETUP.md";
33
+ };
46
34
  };
@@ -3,31 +3,29 @@ export const descriptor = {
3
3
  contractVersion: "1.0.0",
4
4
  moduleRef: "task-orchestration",
5
5
  packageName: "@tomflow/proflow-task-orchestration",
6
- moduleVersion: "0.1.1",
6
+ moduleVersion: "0.1.3",
7
7
  kind: "library",
8
8
  templateVersion: "1.0.0",
9
9
  platformCompatibility: ">=1.0.0 <2.0.0",
10
- installClass: "core",
11
10
  identity: {
12
11
  domain: "task-orchestration",
13
12
  summary: "Owns the Task & Orchestration public contract, domain rules and application services.",
14
13
  },
15
- provides: [{ contractRef: "task-orchestration", version: "1.0.0" }],
14
+ provides: [
15
+ {
16
+ contractRef: "task-orchestration",
17
+ version: "1.0.0",
18
+ },
19
+ ],
16
20
  requires: [],
17
21
  requirements: [
18
- { kind: "runtime", runtime: "node", versionRange: ">=24.19.0" },
22
+ {
23
+ kind: "runtime",
24
+ runtime: "node",
25
+ versionRange: ">=24.19.0",
26
+ },
19
27
  ],
20
28
  configSlots: [],
21
- lifecycle: { supported: ["describe", "preflight", "verify", "doctor"] },
22
- verification: {
23
- checks: [
24
- {
25
- id: "task-domain-tests-pass",
26
- description: "Task orchestration Critical Proofs pass",
27
- lifecycle: "verify",
28
- },
29
- ],
30
- },
31
29
  effects: [
32
30
  {
33
31
  kind: "filesystem",
@@ -35,11 +33,8 @@ export const descriptor = {
35
33
  retention: "preserve",
36
34
  },
37
35
  ],
38
- documentation: [
39
- {
40
- id: "overview",
41
- path: "./README.md",
42
- description: "Package-owned module overview",
43
- },
44
- ],
36
+ documentation: {
37
+ docs: "DOCS.md",
38
+ setup: "SETUP.md",
39
+ },
45
40
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomflow/proflow-task-orchestration",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -15,16 +15,17 @@
15
15
  "proflow.module.json",
16
16
  "conformance.json",
17
17
  "README.md",
18
- "self-install.mjs"
18
+ "DOCS.md",
19
+ "SETUP.md"
19
20
  ],
20
21
  "dependencies": {
21
22
  "zod": "4.1.12",
22
- "@tomflow/proflow-module-contract": "^0.1.1"
23
+ "@tomflow/proflow-module-contract": "^0.1.4"
23
24
  },
24
25
  "devDependencies": {
25
- "@tomflow/proflow-task-migration-runner": "^0.1.1",
26
- "@tomflow/proflow-task-store-sqlite": "^0.1.1",
27
- "@tomflow/proflow-deployment-conformance": "^0.1.2"
26
+ "@tomflow/proflow-task-migration-runner": "^0.1.4",
27
+ "@tomflow/proflow-deployment-conformance": "^0.1.4",
28
+ "@tomflow/proflow-task-store-sqlite": "^0.1.4"
28
29
  },
29
30
  "description": "Owns the Task & Orchestration public contract, domain rules and application services.",
30
31
  "keywords": [
@@ -34,16 +35,9 @@
34
35
  ],
35
36
  "proflow": {
36
37
  "module": true,
37
- "installClass": "core",
38
- "installRequires": [
39
- "@tomflow/proflow-module-contract"
40
- ],
41
38
  "descriptor": "./dist/deployment/descriptor.js",
42
39
  "manifest": "./proflow.module.json"
43
40
  },
44
- "bin": {
45
- "proflow-task-orchestration": "./self-install.mjs"
46
- },
47
41
  "scripts": {
48
42
  "test": "node --test tests/**/*.test.ts",
49
43
  "typecheck": "tsc --noEmit"
@@ -3,11 +3,10 @@
3
3
  "contractVersion": "1.0.0",
4
4
  "moduleRef": "task-orchestration",
5
5
  "packageName": "@tomflow/proflow-task-orchestration",
6
- "moduleVersion": "0.1.1",
6
+ "moduleVersion": "0.1.3",
7
7
  "kind": "library",
8
8
  "templateVersion": "1.0.0",
9
9
  "platformCompatibility": ">=1.0.0 <2.0.0",
10
- "installClass": "core",
11
10
  "identity": {
12
11
  "domain": "task-orchestration",
13
12
  "summary": "Owns the Task & Orchestration public contract, domain rules and application services."
@@ -27,18 +26,6 @@
27
26
  }
28
27
  ],
29
28
  "configSlots": [],
30
- "lifecycle": {
31
- "supported": ["describe", "preflight", "verify", "doctor"]
32
- },
33
- "verification": {
34
- "checks": [
35
- {
36
- "id": "task-domain-tests-pass",
37
- "description": "Task orchestration Critical Proofs pass",
38
- "lifecycle": "verify"
39
- }
40
- ]
41
- },
42
29
  "effects": [
43
30
  {
44
31
  "kind": "filesystem",
@@ -46,11 +33,8 @@
46
33
  "retention": "preserve"
47
34
  }
48
35
  ],
49
- "documentation": [
50
- {
51
- "id": "overview",
52
- "path": "./README.md",
53
- "description": "Package-owned module overview"
54
- }
55
- ]
36
+ "documentation": {
37
+ "docs": "DOCS.md",
38
+ "setup": "SETUP.md"
39
+ }
56
40
  }
package/CHANGELOG.md DELETED
@@ -1,7 +0,0 @@
1
- # @tomflow/proflow-task-orchestration
2
-
3
- ## 0.1.1
4
-
5
- ### Patch Changes
6
-
7
- - 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.
package/self-install.mjs DELETED
@@ -1,34 +0,0 @@
1
- #!/usr/bin/env node
2
- import { spawnSync } from "node:child_process";
3
-
4
- const [command, ...rest] = process.argv.slice(2);
5
- const usage = "Usage: npx @tomflow/proflow-task-orchestration install\n";
6
- if (command === "--help" || command === "-h") {
7
- process.stdout.write(usage);
8
- process.exit(0);
9
- }
10
- if (command !== "install" || rest.length > 0) {
11
- process.stderr.write(usage);
12
- process.exit(2);
13
- }
14
- const executable = process.platform === "win32" ? "platform.cmd" : "platform";
15
- const result = spawnSync(
16
- executable,
17
- [
18
- "install",
19
- "@tomflow/proflow-task-orchestration",
20
- "--workspace",
21
- process.cwd(),
22
- ],
23
- { cwd: process.cwd(), env: process.env, stdio: "inherit" },
24
- );
25
- if (result.error) {
26
- if (result.error.code === "ENOENT") {
27
- process.stderr.write(
28
- "GLOBAL_PLATFORM_CLI_REQUIRED: install @tomflow/proflow-platform-cli globally before package-owned install\n",
29
- );
30
- process.exit(127);
31
- }
32
- throw result.error;
33
- }
34
- process.exit(result.status ?? 1);