@cohesivesystems/processes 0.1.0-alpha.63

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.
@@ -0,0 +1,191 @@
1
+ /* <auto-generated/> */
2
+ export const canonicalProcessNodeKinds = [
3
+ 'awaitMatch',
4
+ 'cancellationFinalizer',
5
+ 'choice',
6
+ 'durableCut',
7
+ 'emitEvent',
8
+ 'evaluateRelation',
9
+ 'fail',
10
+ 'forEachPartition',
11
+ 'fork',
12
+ 'invokeProcess',
13
+ 'invokeTransition',
14
+ 'join',
15
+ 'match',
16
+ 'repeatAcrossActivation',
17
+ 'reply',
18
+ 'request',
19
+ 'return',
20
+ 'sendSignal',
21
+ 'timer',
22
+ ];
23
+ export const processRecoveryPolicies = {
24
+ unspecified: 'Unspecified',
25
+ continueAttempt: 'ContinueAttempt',
26
+ restartAttempt: 'RestartAttempt',
27
+ };
28
+ export const processRecoveryPolicyLabels = {
29
+ Unspecified: 'Unspecified',
30
+ ContinueAttempt: 'ContinueAttempt',
31
+ RestartAttempt: 'RestartAttempt',
32
+ };
33
+ export const caseSelections = {
34
+ unspecified: 'Unspecified',
35
+ orderedFirstMatch: 'OrderedFirstMatch',
36
+ };
37
+ export const caseSelectionLabels = {
38
+ Unspecified: 'Unspecified',
39
+ OrderedFirstMatch: 'OrderedFirstMatch',
40
+ };
41
+ export const branchCompletenesses = {
42
+ unspecified: 'Unspecified',
43
+ exhaustive: 'Exhaustive',
44
+ fallback: 'Fallback',
45
+ };
46
+ export const branchCompletenessLabels = {
47
+ Unspecified: 'Unspecified',
48
+ Exhaustive: 'Exhaustive',
49
+ Fallback: 'Fallback',
50
+ };
51
+ export const processAwaitArbitrations = {
52
+ unspecified: 'Unspecified',
53
+ exclusivePriorityThenClauseId: 'ExclusivePriorityThenClauseId',
54
+ };
55
+ export const processAwaitArbitrationLabels = {
56
+ Unspecified: 'Unspecified',
57
+ ExclusivePriorityThenClauseId: 'ExclusivePriorityThenClauseId',
58
+ };
59
+ export const canonicalProcessAwaitClauseKinds = [
60
+ 'interaction',
61
+ 'timer',
62
+ ];
63
+ export const processAwaitInputDispositions = {
64
+ unspecified: 'Unspecified',
65
+ reject: 'Reject',
66
+ observe: 'Observe',
67
+ reusePriorDisposition: 'ReusePriorDisposition',
68
+ };
69
+ export const processAwaitInputDispositionLabels = {
70
+ Unspecified: 'Unspecified',
71
+ Reject: 'Reject',
72
+ Observe: 'Observe',
73
+ ReusePriorDisposition: 'ReusePriorDisposition',
74
+ };
75
+ export const processAwaitMissingTargetDispositions = {
76
+ unspecified: 'Unspecified',
77
+ reject: 'Reject',
78
+ observe: 'Observe',
79
+ deadLetter: 'DeadLetter',
80
+ };
81
+ export const processAwaitMissingTargetDispositionLabels = {
82
+ Unspecified: 'Unspecified',
83
+ Reject: 'Reject',
84
+ Observe: 'Observe',
85
+ DeadLetter: 'DeadLetter',
86
+ };
87
+ export const processChildPurposes = {
88
+ unspecified: 'Unspecified',
89
+ work: 'Work',
90
+ compensation: 'Compensation',
91
+ reconciliation: 'Reconciliation',
92
+ };
93
+ export const processChildPurposeLabels = {
94
+ Unspecified: 'Unspecified',
95
+ Work: 'Work',
96
+ Compensation: 'Compensation',
97
+ Reconciliation: 'Reconciliation',
98
+ };
99
+ export const processChildCancellationPolicies = {
100
+ unspecified: 'Unspecified',
101
+ propagate: 'Propagate',
102
+ detach: 'Detach',
103
+ };
104
+ export const processChildCancellationPolicyLabels = {
105
+ Unspecified: 'Unspecified',
106
+ Propagate: 'Propagate',
107
+ Detach: 'Detach',
108
+ };
109
+ export const processPartitionFailurePolicies = {
110
+ unspecified: 'Unspecified',
111
+ failFast: 'FailFast',
112
+ awaitAll: 'AwaitAll',
113
+ };
114
+ export const processPartitionFailurePolicyLabels = {
115
+ Unspecified: 'Unspecified',
116
+ FailFast: 'FailFast',
117
+ AwaitAll: 'AwaitAll',
118
+ };
119
+ export const portableValueStates = {
120
+ missing: 'Missing',
121
+ absent: 'Absent',
122
+ null: 'Null',
123
+ unknown: 'Unknown',
124
+ failed: 'Failed',
125
+ concrete: 'Concrete',
126
+ };
127
+ export const portableValueStateLabels = {
128
+ Missing: 'Missing',
129
+ Absent: 'Absent',
130
+ Null: 'Null',
131
+ Unknown: 'Unknown',
132
+ Failed: 'Failed',
133
+ Concrete: 'Concrete',
134
+ };
135
+ export const processJoinModes = {
136
+ unspecified: 'Unspecified',
137
+ all: 'All',
138
+ any: 'Any',
139
+ requiredCount: 'RequiredCount',
140
+ };
141
+ export const processJoinModeLabels = {
142
+ Unspecified: 'Unspecified',
143
+ All: 'All',
144
+ Any: 'Any',
145
+ RequiredCount: 'RequiredCount',
146
+ };
147
+ export const processJoinFailurePolicies = {
148
+ unspecified: 'Unspecified',
149
+ failFast: 'FailFast',
150
+ waitForRequired: 'WaitForRequired',
151
+ excludeFailed: 'ExcludeFailed',
152
+ };
153
+ export const processJoinFailurePolicyLabels = {
154
+ Unspecified: 'Unspecified',
155
+ FailFast: 'FailFast',
156
+ WaitForRequired: 'WaitForRequired',
157
+ ExcludeFailed: 'ExcludeFailed',
158
+ };
159
+ export const processJoinCancellationPolicies = {
160
+ unspecified: 'Unspecified',
161
+ cancelRemaining: 'CancelRemaining',
162
+ awaitRemaining: 'AwaitRemaining',
163
+ continueRemaining: 'ContinueRemaining',
164
+ };
165
+ export const processJoinCancellationPolicyLabels = {
166
+ Unspecified: 'Unspecified',
167
+ CancelRemaining: 'CancelRemaining',
168
+ AwaitRemaining: 'AwaitRemaining',
169
+ ContinueRemaining: 'ContinueRemaining',
170
+ };
171
+ export const processJoinCompletionOrders = {
172
+ unspecified: 'Unspecified',
173
+ unobservable: 'Unobservable',
174
+ observable: 'Observable',
175
+ };
176
+ export const processJoinCompletionOrderLabels = {
177
+ Unspecified: 'Unspecified',
178
+ Unobservable: 'Unobservable',
179
+ Observable: 'Observable',
180
+ };
181
+ export const processJoinTieBreaks = {
182
+ unspecified: 'Unspecified',
183
+ branchIdentity: 'BranchIdentity',
184
+ completionThenBranchIdentity: 'CompletionThenBranchIdentity',
185
+ };
186
+ export const processJoinTieBreakLabels = {
187
+ Unspecified: 'Unspecified',
188
+ BranchIdentity: 'BranchIdentity',
189
+ CompletionThenBranchIdentity: 'CompletionThenBranchIdentity',
190
+ };
191
+ //# sourceMappingURL=processes.shapes.generated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"processes.shapes.generated.js","sourceRoot":"","sources":["../../src/generated/processes.shapes.generated.ts"],"names":[],"mappings":"AAAA,uBAAuB;AAoEvB,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,YAAY;IACZ,uBAAuB;IACvB,QAAQ;IACR,YAAY;IACZ,WAAW;IACX,kBAAkB;IAClB,MAAM;IACN,kBAAkB;IAClB,MAAM;IACN,eAAe;IACf,kBAAkB;IAClB,MAAM;IACN,OAAO;IACP,wBAAwB;IACxB,OAAO;IACP,SAAS;IACT,QAAQ;IACR,YAAY;IACZ,OAAO;CAC2C,CAAC;AAuKrD,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,WAAW,EAAE,aAAa;IAC1B,eAAe,EAAE,iBAAiB;IAClC,cAAc,EAAE,gBAAgB;CACwB,CAAC;AAE3D,MAAM,CAAC,MAAM,2BAA2B,GAA0C;IAChF,WAAW,EAAE,aAAa;IAC1B,eAAe,EAAE,iBAAiB;IAClC,cAAc,EAAE,gBAAgB;CACjC,CAAC;AAuEF,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,WAAW,EAAE,aAAa;IAC1B,iBAAiB,EAAE,mBAAmB;CACU,CAAC;AAEnD,MAAM,CAAC,MAAM,mBAAmB,GAAkC;IAChE,WAAW,EAAE,aAAa;IAC1B,iBAAiB,EAAE,mBAAmB;CACvC,CAAC;AAIF,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,WAAW,EAAE,aAAa;IAC1B,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,UAAU;CACiC,CAAC;AAExD,MAAM,CAAC,MAAM,wBAAwB,GAAuC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shapes.generated.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wCAAwC,CAAA"}
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export * from './generated/processes.shapes.generated.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wCAAwC,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { canonicalProcessAwaitClauseKinds, canonicalProcessNodeKinds, type ProcessAwaitClause, type ProcessNode } from './generated/processes.shapes.generated.js';
2
+ type Equal<TLeft, TRight> = (<T>() => T extends TLeft ? 1 : 2) extends (<T>() => T extends TRight ? 1 : 2) ? true : false;
3
+ type Assert<T extends true> = T;
4
+ type ProcessNodeKind = ProcessNode['$node'];
5
+ type CatalogProcessNodeKind = (typeof canonicalProcessNodeKinds)[number];
6
+ type ProcessAwaitClauseKind = ProcessAwaitClause['$clause'];
7
+ type CatalogProcessAwaitClauseKind = (typeof canonicalProcessAwaitClauseKinds)[number];
8
+ export type ProcessNodeInventoryIsExact = Assert<Equal<ProcessNodeKind, CatalogProcessNodeKind>>;
9
+ export type ProcessAwaitClauseInventoryIsExact = Assert<Equal<ProcessAwaitClauseKind, CatalogProcessAwaitClauseKind>>;
10
+ export declare function referencedTransition(node: ProcessNode): string | undefined;
11
+ export {};
12
+ //# sourceMappingURL=wire-contract.typecheck.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wire-contract.typecheck.d.ts","sourceRoot":"","sources":["../src/wire-contract.typecheck.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gCAAgC,EAChC,yBAAyB,EACzB,KAAK,kBAAkB,EACvB,KAAK,WAAW,EACjB,MAAM,wCAAwC,CAAA;AAE/C,KAAK,KAAK,CAAC,KAAK,EAAE,MAAM,IACtB,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,KAAK,GAAG,CAAC,GAAG,CAAC,CAAC,SAClC,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,MAAM,GAAG,CAAC,GAAG,CAAC,CAAC,GAC/B,IAAI,GACJ,KAAK,CAAA;AACX,KAAK,MAAM,CAAC,CAAC,SAAS,IAAI,IAAI,CAAC,CAAA;AAE/B,KAAK,eAAe,GAAG,WAAW,CAAC,OAAO,CAAC,CAAA;AAC3C,KAAK,sBAAsB,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,CAAC,CAAA;AACxE,KAAK,sBAAsB,GAAG,kBAAkB,CAAC,SAAS,CAAC,CAAA;AAC3D,KAAK,6BAA6B,GAAG,CAAC,OAAO,gCAAgC,CAAC,CAAC,MAAM,CAAC,CAAA;AAEtF,MAAM,MAAM,2BAA2B,GAAG,MAAM,CAAC,KAAK,CAAC,eAAe,EAAE,sBAAsB,CAAC,CAAC,CAAA;AAChG,MAAM,MAAM,kCAAkC,GAAG,MAAM,CACrD,KAAK,CAAC,sBAAsB,EAAE,6BAA6B,CAAC,CAC7D,CAAA;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,GAAG,SAAS,CAI1E"}
@@ -0,0 +1,7 @@
1
+ import { canonicalProcessAwaitClauseKinds, canonicalProcessNodeKinds, } from './generated/processes.shapes.generated.js';
2
+ export function referencedTransition(node) {
3
+ return node.$node === 'invokeTransition'
4
+ ? node.transition.definitionId
5
+ : undefined;
6
+ }
7
+ //# sourceMappingURL=wire-contract.typecheck.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wire-contract.typecheck.js","sourceRoot":"","sources":["../src/wire-contract.typecheck.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gCAAgC,EAChC,yBAAyB,GAG1B,MAAM,wCAAwC,CAAA;AAmB/C,MAAM,UAAU,oBAAoB,CAAC,IAAiB;IACpD,OAAO,IAAI,CAAC,KAAK,KAAK,kBAAkB;QACtC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,YAAY;QAC9B,CAAC,CAAC,SAAS,CAAA;AACf,CAAC"}
package/package.json ADDED
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "@cohesivesystems/processes",
3
+ "version": "0.1.0-alpha.63",
4
+ "type": "module",
5
+ "sideEffects": false,
6
+ "exports": {
7
+ ".": {
8
+ "types": "./dist/index.d.ts",
9
+ "import": "./dist/index.js"
10
+ },
11
+ "./generated/*": {
12
+ "types": "./dist/generated/*.d.ts",
13
+ "import": "./dist/generated/*.js"
14
+ }
15
+ },
16
+ "files": [
17
+ "dist",
18
+ "src/**/*.ts",
19
+ "!src/**/*.test.ts"
20
+ ],
21
+ "dependencies": {
22
+ "@cohesivesystems/relations": "0.1.0-alpha.63"
23
+ },
24
+ "devDependencies": {
25
+ "typescript": "~5.9.3",
26
+ "vitest": "^4.1.7"
27
+ },
28
+ "license": "Apache-2.0",
29
+ "publishConfig": {
30
+ "access": "public"
31
+ },
32
+ "description": "Generated TypeScript contracts for canonical Cohesive Processes.",
33
+ "keywords": [
34
+ "cohesive",
35
+ "processes",
36
+ "orchestration",
37
+ "typescript"
38
+ ],
39
+ "author": "Cohesive Systems",
40
+ "repository": {
41
+ "type": "git",
42
+ "url": "git+https://github.com/cohesivesystems/cohesive.git",
43
+ "directory": "src/frontend/processes"
44
+ },
45
+ "bugs": {
46
+ "url": "https://github.com/cohesivesystems/cohesive/issues"
47
+ },
48
+ "homepage": "https://github.com/cohesivesystems/cohesive#readme",
49
+ "scripts": {
50
+ "build": "tsc -p tsconfig.json && node ../../../eng/fix-package-js-imports.mjs dist",
51
+ "test": "vitest run --passWithNoTests"
52
+ }
53
+ }