@tomflow/proflow-platform-host 0.1.30 → 0.1.31
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 +6 -0
- package/dist/deployment/adapter.d.ts +10 -10
- package/dist/deployment/adapter.js +22 -14
- package/dist/deployment/descriptor.d.ts +1 -1
- package/dist/deployment/descriptor.js +1 -1
- package/dist/src/index.d.ts +5 -0
- package/dist/src/index.js +437 -15
- package/dist/src/monitor-rotation-coordinator.d.ts +76 -0
- package/dist/src/monitor-rotation-coordinator.js +782 -0
- package/dist/src/product-campaign-continuation.d.ts +132 -0
- package/dist/src/product-campaign-continuation.js +279 -0
- package/dist/src/product-discussion-admission.d.ts +92 -0
- package/dist/src/product-discussion-admission.js +191 -0
- package/dist/src/product-discussion-host.d.ts +43 -0
- package/dist/src/product-discussion-host.js +167 -0
- package/dist/src/reconciliation-coordinator.d.ts +1 -0
- package/dist/src/reconciliation-coordinator.js +7 -2
- package/dist/src/role-operations.js +8 -0
- package/package.json +9 -9
- package/proflow.module.json +1 -1
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { ExecuteCapabilityRequest } from "@tomflow/proflow-execution-contracts";
|
|
2
|
+
export type MonitorControlPort = {
|
|
3
|
+
invoke(operation: string, input?: unknown): Promise<unknown>;
|
|
4
|
+
};
|
|
5
|
+
export type MonitorExecutionPort = {
|
|
6
|
+
invoke(operation: string, input: unknown): Promise<unknown>;
|
|
7
|
+
};
|
|
8
|
+
export declare function monitorHandoffMessageRef(input: {
|
|
9
|
+
runId: string;
|
|
10
|
+
shiftId: string;
|
|
11
|
+
generation: number;
|
|
12
|
+
}): string;
|
|
13
|
+
export declare function monitorBootstrapMessageRef(input: {
|
|
14
|
+
runId: string;
|
|
15
|
+
shiftId: string;
|
|
16
|
+
generation: number;
|
|
17
|
+
}): string;
|
|
18
|
+
export declare function monitorBootstrapText(input: {
|
|
19
|
+
runId: string;
|
|
20
|
+
shiftId: string;
|
|
21
|
+
}): string;
|
|
22
|
+
export declare function monitorTurnWakeMessageRef(input: {
|
|
23
|
+
runId: string;
|
|
24
|
+
shiftId: string;
|
|
25
|
+
generation: number;
|
|
26
|
+
settledRef: string;
|
|
27
|
+
}): string;
|
|
28
|
+
export declare function monitorTurnWakeText(): string;
|
|
29
|
+
export declare function monitorNextShiftId(input: {
|
|
30
|
+
runId: string;
|
|
31
|
+
shiftId: string;
|
|
32
|
+
generation: number;
|
|
33
|
+
}): string;
|
|
34
|
+
export declare function monitorNextChatMessageRef(input: {
|
|
35
|
+
runId: string;
|
|
36
|
+
shiftId: string;
|
|
37
|
+
generation: number;
|
|
38
|
+
nextShiftId: string;
|
|
39
|
+
}): string;
|
|
40
|
+
export declare function monitorHandoffRequestText(_input: {
|
|
41
|
+
runId: string;
|
|
42
|
+
shiftId: string;
|
|
43
|
+
generation: number;
|
|
44
|
+
projectRef: string;
|
|
45
|
+
}): string;
|
|
46
|
+
export declare function authorizeMonitorExecution(input: {
|
|
47
|
+
monitor: MonitorControlPort;
|
|
48
|
+
request: ExecuteCapabilityRequest;
|
|
49
|
+
now?: () => Date;
|
|
50
|
+
}): Promise<boolean>;
|
|
51
|
+
export declare function createMonitorRotationCoordinator(options: {
|
|
52
|
+
monitor: MonitorControlPort;
|
|
53
|
+
execution: MonitorExecutionPort;
|
|
54
|
+
intervalMs?: number;
|
|
55
|
+
now?: () => Date;
|
|
56
|
+
onError?: (code: "MONITOR_ROTATION_POLL_FAILED") => void | Promise<void>;
|
|
57
|
+
}): Readonly<{
|
|
58
|
+
tick: () => Promise<{
|
|
59
|
+
state: "DISABLED";
|
|
60
|
+
runs: never[];
|
|
61
|
+
notification?: never;
|
|
62
|
+
} | {
|
|
63
|
+
state: "PROJECT_BINDING_REQUIRED";
|
|
64
|
+
runs: never[];
|
|
65
|
+
notification?: never;
|
|
66
|
+
} | {
|
|
67
|
+
state: "CHECKED";
|
|
68
|
+
runs: {
|
|
69
|
+
runId: string;
|
|
70
|
+
outcome: unknown;
|
|
71
|
+
}[];
|
|
72
|
+
notification: unknown;
|
|
73
|
+
}>;
|
|
74
|
+
start(): void;
|
|
75
|
+
stop(): Promise<void>;
|
|
76
|
+
}>;
|