@shajara/kernel 0.1.0

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.
Files changed (226) hide show
  1. package/LICENSE +28 -0
  2. package/README.md +67 -0
  3. package/dist/.vite/license.md +27 -0
  4. package/dist/contracts/context-key.d.ts +10 -0
  5. package/dist/contracts/context-key.d.ts.map +1 -0
  6. package/dist/contracts/failure.d.ts +5 -0
  7. package/dist/contracts/failure.d.ts.map +1 -0
  8. package/dist/contracts/future-key.d.ts +16 -0
  9. package/dist/contracts/future-key.d.ts.map +1 -0
  10. package/dist/contracts/index.d.ts +11 -0
  11. package/dist/contracts/index.d.ts.map +1 -0
  12. package/dist/contracts/message-key.d.ts +10 -0
  13. package/dist/contracts/message-key.d.ts.map +1 -0
  14. package/dist/contracts/process.d.ts +7 -0
  15. package/dist/contracts/process.d.ts.map +1 -0
  16. package/dist/contracts/scope.d.ts +7 -0
  17. package/dist/contracts/scope.d.ts.map +1 -0
  18. package/dist/contracts/sigil.d.ts +7 -0
  19. package/dist/contracts/sigil.d.ts.map +1 -0
  20. package/dist/contracts/suppressor.d.ts +4 -0
  21. package/dist/contracts/suppressor.d.ts.map +1 -0
  22. package/dist/contracts/token.d.ts +4 -0
  23. package/dist/contracts/token.d.ts.map +1 -0
  24. package/dist/contracts/wisp.d.ts +19 -0
  25. package/dist/contracts/wisp.d.ts.map +1 -0
  26. package/dist/executor/autonomy.d.ts +24 -0
  27. package/dist/executor/autonomy.d.ts.map +1 -0
  28. package/dist/executor/domain-interpreter.d.ts +15 -0
  29. package/dist/executor/domain-interpreter.d.ts.map +1 -0
  30. package/dist/executor/domains/domain.d.ts +14 -0
  31. package/dist/executor/domains/domain.d.ts.map +1 -0
  32. package/dist/executor/domains/index.d.ts +4 -0
  33. package/dist/executor/domains/index.d.ts.map +1 -0
  34. package/dist/executor/domains/reaper.d.ts +26 -0
  35. package/dist/executor/domains/reaper.d.ts.map +1 -0
  36. package/dist/executor/domains/scheduler.d.ts +15 -0
  37. package/dist/executor/domains/scheduler.d.ts.map +1 -0
  38. package/dist/executor/execution-scope.d.ts +7 -0
  39. package/dist/executor/execution-scope.d.ts.map +1 -0
  40. package/dist/executor/executor-driver.d.ts +14 -0
  41. package/dist/executor/executor-driver.d.ts.map +1 -0
  42. package/dist/executor/executor.d.ts +13 -0
  43. package/dist/executor/executor.d.ts.map +1 -0
  44. package/dist/executor/fault-sink.d.ts +12 -0
  45. package/dist/executor/fault-sink.d.ts.map +1 -0
  46. package/dist/executor/index.d.ts +8 -0
  47. package/dist/executor/index.d.ts.map +1 -0
  48. package/dist/executor/launch-handle.d.ts +33 -0
  49. package/dist/executor/launch-handle.d.ts.map +1 -0
  50. package/dist/executor/pacer.d.ts +9 -0
  51. package/dist/executor/pacer.d.ts.map +1 -0
  52. package/dist/executor/primitives/autonomy.d.ts +4 -0
  53. package/dist/executor/primitives/autonomy.d.ts.map +1 -0
  54. package/dist/executor/primitives/index.d.ts +2 -0
  55. package/dist/executor/primitives/index.d.ts.map +1 -0
  56. package/dist/executor/processor.d.ts +9 -0
  57. package/dist/executor/processor.d.ts.map +1 -0
  58. package/dist/executor/round-limit-reaper.d.ts +11 -0
  59. package/dist/executor/round-limit-reaper.d.ts.map +1 -0
  60. package/dist/failures/canceled.d.ts +6 -0
  61. package/dist/failures/canceled.d.ts.map +1 -0
  62. package/dist/failures/external.d.ts +7 -0
  63. package/dist/failures/external.d.ts.map +1 -0
  64. package/dist/failures/index.d.ts +10 -0
  65. package/dist/failures/index.d.ts.map +1 -0
  66. package/dist/failures/interrupted.d.ts +7 -0
  67. package/dist/failures/interrupted.d.ts.map +1 -0
  68. package/dist/failures/scope.d.ts +19 -0
  69. package/dist/failures/scope.d.ts.map +1 -0
  70. package/dist/index.cjs +1 -0
  71. package/dist/index.d.ts +5 -0
  72. package/dist/index.d.ts.map +1 -0
  73. package/dist/index.js +1986 -0
  74. package/dist/internal/fp/index.d.ts +6 -0
  75. package/dist/internal/fp/index.d.ts.map +1 -0
  76. package/dist/internal/fp/lifting.d.ts +21 -0
  77. package/dist/internal/fp/lifting.d.ts.map +1 -0
  78. package/dist/internal/fp/sigil.d.ts +11 -0
  79. package/dist/internal/fp/sigil.d.ts.map +1 -0
  80. package/dist/internal/fp/wisp-either.d.ts +53 -0
  81. package/dist/internal/fp/wisp-either.d.ts.map +1 -0
  82. package/dist/internal/fp/wisp-option.d.ts +52 -0
  83. package/dist/internal/fp/wisp-option.d.ts.map +1 -0
  84. package/dist/internal/fp/wisp.d.ts +37 -0
  85. package/dist/internal/fp/wisp.d.ts.map +1 -0
  86. package/dist/interpreter/index.d.ts +4 -0
  87. package/dist/interpreter/index.d.ts.map +1 -0
  88. package/dist/interpreter/interpreter.d.ts +48 -0
  89. package/dist/interpreter/interpreter.d.ts.map +1 -0
  90. package/dist/interpreter/process-step.d.ts +21 -0
  91. package/dist/interpreter/process-step.d.ts.map +1 -0
  92. package/dist/interpreter/runtime-future.d.ts +14 -0
  93. package/dist/interpreter/runtime-future.d.ts.map +1 -0
  94. package/dist/interpreter/runtime-process/handle.d.ts +9 -0
  95. package/dist/interpreter/runtime-process/handle.d.ts.map +1 -0
  96. package/dist/interpreter/runtime-process/index.d.ts +5 -0
  97. package/dist/interpreter/runtime-process/index.d.ts.map +1 -0
  98. package/dist/interpreter/runtime-process/keeper.d.ts +39 -0
  99. package/dist/interpreter/runtime-process/keeper.d.ts.map +1 -0
  100. package/dist/interpreter/runtime-process/process.d.ts +54 -0
  101. package/dist/interpreter/runtime-process/process.d.ts.map +1 -0
  102. package/dist/interpreter/runtime-process/runner.d.ts +45 -0
  103. package/dist/interpreter/runtime-process/runner.d.ts.map +1 -0
  104. package/dist/interpreter/runtime-process/stepper.d.ts +9 -0
  105. package/dist/interpreter/runtime-process/stepper.d.ts.map +1 -0
  106. package/dist/interpreter/runtime-scope/index.d.ts +2 -0
  107. package/dist/interpreter/runtime-scope/index.d.ts.map +1 -0
  108. package/dist/interpreter/runtime-scope/runtime-mailbox.d.ts +11 -0
  109. package/dist/interpreter/runtime-scope/runtime-mailbox.d.ts.map +1 -0
  110. package/dist/interpreter/runtime-scope/runtime-scope.d.ts +58 -0
  111. package/dist/interpreter/runtime-scope/runtime-scope.d.ts.map +1 -0
  112. package/dist/interpreter/runtime-scope/scope-failure-draft.d.ts +12 -0
  113. package/dist/interpreter/runtime-scope/scope-failure-draft.d.ts.map +1 -0
  114. package/dist/interpreter/scope-zone.d.ts +6 -0
  115. package/dist/interpreter/scope-zone.d.ts.map +1 -0
  116. package/dist/primitives/all.d.ts +7 -0
  117. package/dist/primitives/all.d.ts.map +1 -0
  118. package/dist/primitives/bind.d.ts +3 -0
  119. package/dist/primitives/bind.d.ts.map +1 -0
  120. package/dist/primitives/cancel.d.ts +3 -0
  121. package/dist/primitives/cancel.d.ts.map +1 -0
  122. package/dist/primitives/cede.d.ts +3 -0
  123. package/dist/primitives/cede.d.ts.map +1 -0
  124. package/dist/primitives/defer.d.ts +3 -0
  125. package/dist/primitives/defer.d.ts.map +1 -0
  126. package/dist/primitives/enclose.d.ts +4 -0
  127. package/dist/primitives/enclose.d.ts.map +1 -0
  128. package/dist/primitives/future.d.ts +3 -0
  129. package/dist/primitives/future.d.ts.map +1 -0
  130. package/dist/primitives/guard.d.ts +6 -0
  131. package/dist/primitives/guard.d.ts.map +1 -0
  132. package/dist/primitives/halt.d.ts +3 -0
  133. package/dist/primitives/halt.d.ts.map +1 -0
  134. package/dist/primitives/index.d.ts +21 -0
  135. package/dist/primitives/index.d.ts.map +1 -0
  136. package/dist/primitives/lookup.d.ts +4 -0
  137. package/dist/primitives/lookup.d.ts.map +1 -0
  138. package/dist/primitives/park.d.ts +3 -0
  139. package/dist/primitives/park.d.ts.map +1 -0
  140. package/dist/primitives/poll.d.ts +4 -0
  141. package/dist/primitives/poll.d.ts.map +1 -0
  142. package/dist/primitives/race.d.ts +8 -0
  143. package/dist/primitives/race.d.ts.map +1 -0
  144. package/dist/primitives/resource.d.ts +5 -0
  145. package/dist/primitives/resource.d.ts.map +1 -0
  146. package/dist/primitives/resumable.d.ts +3 -0
  147. package/dist/primitives/resumable.d.ts.map +1 -0
  148. package/dist/primitives/self.d.ts +5 -0
  149. package/dist/primitives/self.d.ts.map +1 -0
  150. package/dist/primitives/settle.d.ts +3 -0
  151. package/dist/primitives/settle.d.ts.map +1 -0
  152. package/dist/primitives/spawn.d.ts +3 -0
  153. package/dist/primitives/spawn.d.ts.map +1 -0
  154. package/dist/primitives/unbind.d.ts +3 -0
  155. package/dist/primitives/unbind.d.ts.map +1 -0
  156. package/dist/primitives/wait.d.ts +3 -0
  157. package/dist/primitives/wait.d.ts.map +1 -0
  158. package/dist/primitives-kit/index.d.ts +3 -0
  159. package/dist/primitives-kit/index.d.ts.map +1 -0
  160. package/dist/primitives-kit/process.d.ts +7 -0
  161. package/dist/primitives-kit/process.d.ts.map +1 -0
  162. package/dist/primitives-kit/resumable.d.ts +9 -0
  163. package/dist/primitives-kit/resumable.d.ts.map +1 -0
  164. package/dist/primitives.d.ts +2 -0
  165. package/dist/primitives.d.ts.map +1 -0
  166. package/dist/sigils/bind.d.ts +9 -0
  167. package/dist/sigils/bind.d.ts.map +1 -0
  168. package/dist/sigils/branch.d.ts +17 -0
  169. package/dist/sigils/branch.d.ts.map +1 -0
  170. package/dist/sigils/cancel.d.ts +7 -0
  171. package/dist/sigils/cancel.d.ts.map +1 -0
  172. package/dist/sigils/cede.d.ts +7 -0
  173. package/dist/sigils/cede.d.ts.map +1 -0
  174. package/dist/sigils/defer.d.ts +8 -0
  175. package/dist/sigils/defer.d.ts.map +1 -0
  176. package/dist/sigils/future.d.ts +7 -0
  177. package/dist/sigils/future.d.ts.map +1 -0
  178. package/dist/sigils/halt.d.ts +8 -0
  179. package/dist/sigils/halt.d.ts.map +1 -0
  180. package/dist/sigils/index.d.ts +34 -0
  181. package/dist/sigils/index.d.ts.map +1 -0
  182. package/dist/sigils/lookup.d.ts +9 -0
  183. package/dist/sigils/lookup.d.ts.map +1 -0
  184. package/dist/sigils/poll.d.ts +9 -0
  185. package/dist/sigils/poll.d.ts.map +1 -0
  186. package/dist/sigils/receive.d.ts +8 -0
  187. package/dist/sigils/receive.d.ts.map +1 -0
  188. package/dist/sigils/self.d.ts +11 -0
  189. package/dist/sigils/self.d.ts.map +1 -0
  190. package/dist/sigils/send.d.ts +10 -0
  191. package/dist/sigils/send.d.ts.map +1 -0
  192. package/dist/sigils/settle.d.ts +9 -0
  193. package/dist/sigils/settle.d.ts.map +1 -0
  194. package/dist/sigils/spawn.d.ts +13 -0
  195. package/dist/sigils/spawn.d.ts.map +1 -0
  196. package/dist/sigils/unbind.d.ts +8 -0
  197. package/dist/sigils/unbind.d.ts.map +1 -0
  198. package/dist/sigils/wait.d.ts +8 -0
  199. package/dist/sigils/wait.d.ts.map +1 -0
  200. package/dist/sigils.cjs +1 -0
  201. package/dist/sigils.d.ts +2 -0
  202. package/dist/sigils.d.ts.map +1 -0
  203. package/dist/sigils.js +125 -0
  204. package/dist/utils/disposer.d.ts +2 -0
  205. package/dist/utils/disposer.d.ts.map +1 -0
  206. package/dist/utils/either.d.ts +2 -0
  207. package/dist/utils/either.d.ts.map +1 -0
  208. package/dist/utils/iife.d.ts +2 -0
  209. package/dist/utils/iife.d.ts.map +1 -0
  210. package/dist/utils/index.d.ts +8 -0
  211. package/dist/utils/index.d.ts.map +1 -0
  212. package/dist/utils/narrow.d.ts +4 -0
  213. package/dist/utils/narrow.d.ts.map +1 -0
  214. package/dist/utils/noop.d.ts +2 -0
  215. package/dist/utils/noop.d.ts.map +1 -0
  216. package/dist/utils/option.d.ts +2 -0
  217. package/dist/utils/option.d.ts.map +1 -0
  218. package/dist/utils/unreachable.d.ts +2 -0
  219. package/dist/utils/unreachable.d.ts.map +1 -0
  220. package/dist/utils-O8j9DzUQ.cjs +1 -0
  221. package/dist/utils-PwEUjNtC.js +327 -0
  222. package/dist/utils.cjs +1 -0
  223. package/dist/utils.d.ts +2 -0
  224. package/dist/utils.d.ts.map +1 -0
  225. package/dist/utils.js +2 -0
  226. package/package.json +73 -0
@@ -0,0 +1,58 @@
1
+ import { ProvideRuntimeProcess, RuntimeProcessKeeper } from '../runtime-process';
2
+ import { ContextKey, FutureKey, MessageKey, ProcessRef, REF_TOKEN, ScopeRef, Suppressor } from '../../contracts';
3
+ import { ProcessDescriptor, ScopeDescriptor } from '../../sigils';
4
+ import { option } from 'fp-ts';
5
+ import { Failure } from '../../failures';
6
+ import { RuntimeFuture } from '../runtime-future';
7
+ import { ScopeFailureDraft } from './scope-failure-draft';
8
+ import { ScopeZone } from '../scope-zone';
9
+ import { TaggedUnion } from 'type-fest';
10
+ export declare class RuntimeScope implements ScopeRef<unknown> {
11
+ #private;
12
+ private readonly scopeDescriptor;
13
+ private readonly parentScope;
14
+ private readonly scopeZone;
15
+ static root(entry: ProvideRuntimeProcess, descriptor: ScopeDescriptor, zone: ScopeZone, suppressor: Suppressor): RuntimeScope;
16
+ complete(process: RuntimeProcessKeeper, result: unknown, suppressor: Suppressor): void;
17
+ halt(process: RuntimeProcessKeeper, failure: Failure, suppressor: Suppressor): void;
18
+ cancel(suppressor: Suppressor): void;
19
+ branch(entry: ProvideRuntimeProcess, descriptor: ScopeDescriptor, zone: ScopeZone, suppressor: Suppressor): RuntimeScope;
20
+ spawn<Relic>(provideProcess: ProvideRuntimeProcess, descriptor: ProcessDescriptor, suppressor: Suppressor): ProcessRef<Relic>;
21
+ createFuture<Result>(): RuntimeFuture<Result>;
22
+ wait(process: RuntimeProcessKeeper, future: RuntimeFuture<unknown>, suppressor: Suppressor): void;
23
+ send<Value>(targetScope: RuntimeScope, messageKey: MessageKey<Value>, value: Value, suppressor: Suppressor): void;
24
+ receive(process: RuntimeProcessKeeper, messageKey: MessageKey<unknown>, suppressor: Suppressor): void;
25
+ tryReceive<Value>(messageKey: MessageKey<Value>): option.Option<Value>;
26
+ lookup<Value>(contextKey: ContextKey<Value>): option.Option<Value>;
27
+ bind<Value>(contextKey: ContextKey<Value>, value: Value): void;
28
+ unbind(contextKey: ContextKey<unknown>): void;
29
+ forceFailed(failure: Failure, suppressor: Suppressor): void;
30
+ get descriptor(): ScopeDescriptor;
31
+ get entryProcess(): ProcessRef<unknown>;
32
+ get zone(): ScopeZone;
33
+ get parent(): RuntimeScope | null;
34
+ get children(): readonly RuntimeScope[];
35
+ get exitFuture(): FutureKey<unknown>;
36
+ get status(): RuntimeScopeStatus;
37
+ get isClosed(): boolean;
38
+ readonly [REF_TOKEN]: ScopeRef<unknown>[typeof REF_TOKEN];
39
+ private constructor();
40
+ }
41
+ export type RuntimeScopeStatus = RuntimeScopeState["status"];
42
+ type RuntimeScopeState = TaggedUnion<"status", {
43
+ canceled: {};
44
+ canceling: {};
45
+ closing: {};
46
+ completed: {
47
+ readonly result: unknown;
48
+ };
49
+ failed: {
50
+ readonly failure: Failure;
51
+ };
52
+ failing: {
53
+ readonly draft: ScopeFailureDraft;
54
+ };
55
+ running: {};
56
+ }>;
57
+ export {};
58
+ //# sourceMappingURL=runtime-scope.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-scope.d.ts","sourceRoot":"","sources":["../../../src/interpreter/runtime-scope/runtime-scope.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,12 @@
1
+ import { Failure, ProcessCause, ScopeCause, ScopeFailure } from '../../failures';
2
+ export declare class ScopeFailureDraft {
3
+ #private;
4
+ private readonly cause;
5
+ private readonly resolveFailure;
6
+ constructor(cause: FailureCause, resolveFailure: () => Failure);
7
+ capture(failure: Failure): void;
8
+ build(): ScopeFailure;
9
+ }
10
+ type FailureCause = Omit<ProcessCause, "failure"> | Omit<ScopeCause, "failure">;
11
+ export {};
12
+ //# sourceMappingURL=scope-failure-draft.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scope-failure-draft.d.ts","sourceRoot":"","sources":["../../../src/interpreter/runtime-scope/scope-failure-draft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAGlF,qBAAa,iBAAiB;;IAE1B,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,cAAc;gBADd,KAAK,EAAE,YAAY,EACnB,cAAc,EAAE,MAAM,OAAO;IAGzC,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAI/B,KAAK,IAAI,YAAY;CAW7B;AAED,KAAK,YAAY,GAAG,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,GAAG,IAAI,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { ProcessRef, ScopeRef, Suppressor } from '../contracts';
2
+ export interface ScopeZone {
3
+ trackProcess(process: ProcessRef<unknown>, suppressor: Suppressor): void;
4
+ trackScope(scope: ScopeRef<unknown>, suppressor: Suppressor): void;
5
+ }
6
+ //# sourceMappingURL=scope-zone.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scope-zone.d.ts","sourceRoot":"","sources":["../../src/interpreter/scope-zone.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEpE,MAAM,WAAW,SAAS;IACxB,YAAY,CAAC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC,EAAE,UAAU,EAAE,UAAU,GAAG,IAAI,CAAC;IACzE,UAAU,CAAC,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,UAAU,EAAE,UAAU,GAAG,IAAI,CAAC;CACpE"}
@@ -0,0 +1,7 @@
1
+ import { FutureKey, Ritual, Wisp } from '../contracts';
2
+ export declare function all<BranchReturns extends readonly unknown[]>(branches: AllBranches<BranchReturns>): Wisp<FutureKey<BranchReturns>>;
3
+ type AllBranches<BranchReturns extends readonly unknown[]> = {
4
+ readonly [Index in keyof BranchReturns]: Ritual<BranchReturns[Index]>;
5
+ };
6
+ export {};
7
+ //# sourceMappingURL=all.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"all.d.ts","sourceRoot":"","sources":["../../src/primitives/all.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAQ3D,wBAAgB,GAAG,CAAC,aAAa,SAAS,SAAS,OAAO,EAAE,EAC1D,QAAQ,EAAE,WAAW,CAAC,aAAa,CAAC,GACnC,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAMhC;AAED,KAAK,WAAW,CAAC,aAAa,SAAS,SAAS,OAAO,EAAE,IAAI;IAC3D,QAAQ,EAAE,KAAK,IAAI,MAAM,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;CACtE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { ContextKey, Wisp } from '../contracts';
2
+ export declare function bind<Value>(key: ContextKey<Value>, value: Value): Wisp<void>;
3
+ //# sourceMappingURL=bind.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bind.d.ts","sourceRoot":"","sources":["../../src/primitives/bind.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAIpD,wBAAgB,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE,UAAU,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,CAE5E"}
@@ -0,0 +1,3 @@
1
+ import { Wisp } from '../contracts';
2
+ export declare function cancel(): Wisp<never>;
3
+ //# sourceMappingURL=cancel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cancel.d.ts","sourceRoot":"","sources":["../../src/primitives/cancel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAIxC,wBAAgB,MAAM,IAAI,IAAI,CAAC,KAAK,CAAC,CAEpC"}
@@ -0,0 +1,3 @@
1
+ import { Wisp } from '../contracts';
2
+ export declare function cede(): Wisp<void>;
3
+ //# sourceMappingURL=cede.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cede.d.ts","sourceRoot":"","sources":["../../src/primitives/cede.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAIxC,wBAAgB,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC,CAEjC"}
@@ -0,0 +1,3 @@
1
+ import { Ritual, Wisp } from '../contracts';
2
+ export declare function defer(cleanup: Ritual<void>): Wisp<void>;
3
+ //# sourceMappingURL=defer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defer.d.ts","sourceRoot":"","sources":["../../src/primitives/defer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAIhD,wBAAgB,KAAK,CAAC,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAEvD"}
@@ -0,0 +1,4 @@
1
+ import { FailureShape, Ritual, Wisp } from '../contracts';
2
+ import { Either } from '../utils';
3
+ export declare function enclose<Relic>(entry: Ritual<Relic>): Wisp<Either<FailureShape, Relic>>;
4
+ //# sourceMappingURL=enclose.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enclose.d.ts","sourceRoot":"","sources":["../../src/primitives/enclose.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAE9D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAItC,wBAAgB,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC,CAMtF"}
@@ -0,0 +1,3 @@
1
+ import { FutureHandle, Wisp } from '../contracts';
2
+ export declare function future<Result>(): Wisp<FutureHandle<Result>>;
3
+ //# sourceMappingURL=future.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"future.d.ts","sourceRoot":"","sources":["../../src/primitives/future.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAItD,wBAAgB,MAAM,CAAC,MAAM,KAAK,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAE3D"}
@@ -0,0 +1,6 @@
1
+ import { FailureShape, FutureKey, Ritual, Wisp } from '../contracts';
2
+ import { Either } from '../utils';
3
+ import { ScopeFailure } from '../failures';
4
+ export declare function guard(entry: Ritual<void>, recover: RecoveryHandler): Wisp<FutureKey<void>>;
5
+ export type RecoveryHandler = (failure: ScopeFailure) => Wisp<Either<FailureShape, unknown>>;
6
+ //# sourceMappingURL=guard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"guard.d.ts","sourceRoot":"","sources":["../../src/primitives/guard.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAGzE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEtC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAI/C,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,eAAe,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAM1F;AAED,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,EAAE,YAAY,KAAK,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { FailureShape, Wisp } from '../contracts';
2
+ export declare function halt(failure: FailureShape): Wisp<never>;
3
+ //# sourceMappingURL=halt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"halt.d.ts","sourceRoot":"","sources":["../../src/primitives/halt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAItD,wBAAgB,IAAI,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,CAEvD"}
@@ -0,0 +1,21 @@
1
+ export * from './all';
2
+ export * from './wait';
3
+ export * from './bind';
4
+ export * from './cancel';
5
+ export * from './cede';
6
+ export * from './defer';
7
+ export * from './spawn';
8
+ export * from './future';
9
+ export * from './halt';
10
+ export * from './lookup';
11
+ export * from './poll';
12
+ export * from './park';
13
+ export * from './race';
14
+ export * from './resource';
15
+ export * from './resumable';
16
+ export * from './guard';
17
+ export * from './enclose';
18
+ export * from './self';
19
+ export * from './settle';
20
+ export * from './unbind';
21
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/primitives/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { ContextKey, Wisp } from '../contracts';
2
+ import { Option } from '../utils';
3
+ export declare function lookup<Value>(key: ContextKey<Value>): Wisp<Option<Value>>;
4
+ //# sourceMappingURL=lookup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lookup.d.ts","sourceRoot":"","sources":["../../src/primitives/lookup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAItC,wBAAgB,MAAM,CAAC,KAAK,EAAE,GAAG,EAAE,UAAU,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAEzE"}
@@ -0,0 +1,3 @@
1
+ import { Wisp } from '../contracts';
2
+ export declare function park(): Wisp<never>;
3
+ //# sourceMappingURL=park.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"park.d.ts","sourceRoot":"","sources":["../../src/primitives/park.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAKxC,wBAAgB,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,CAElC"}
@@ -0,0 +1,4 @@
1
+ import { FutureKey, FutureResult, Wisp } from '../contracts';
2
+ import { Option } from '../utils';
3
+ export declare function poll<Result>(future: FutureKey<Result>): Wisp<Option<FutureResult<Result>>>;
4
+ //# sourceMappingURL=poll.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"poll.d.ts","sourceRoot":"","sources":["../../src/primitives/poll.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAItC,wBAAgB,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAE1F"}
@@ -0,0 +1,8 @@
1
+ import { ArrayValues, NonEmptyTuple } from 'type-fest';
2
+ import { FutureKey, Ritual, Wisp } from '../contracts';
3
+ export declare function race<BranchReturns extends NonEmptyTuple<unknown>>(branches: RaceBranches<BranchReturns>): Wisp<FutureKey<ArrayValues<BranchReturns>>>;
4
+ type RaceBranches<BranchReturns extends NonEmptyTuple<unknown>> = {
5
+ readonly [Index in keyof BranchReturns]: Ritual<BranchReturns[Index]>;
6
+ };
7
+ export {};
8
+ //# sourceMappingURL=race.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"race.d.ts","sourceRoot":"","sources":["../../src/primitives/race.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC5D,OAAO,KAAK,EAAE,SAAS,EAAmB,MAAM,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAM5E,wBAAgB,IAAI,CAAC,aAAa,SAAS,aAAa,CAAC,OAAO,CAAC,EAC/D,QAAQ,EAAE,YAAY,CAAC,aAAa,CAAC,GACpC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC,CAAC,CAO7C;AAED,KAAK,YAAY,CAAC,aAAa,SAAS,aAAa,CAAC,OAAO,CAAC,IAAI;IAChE,QAAQ,EAAE,KAAK,IAAI,MAAM,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;CACtE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { FutureKey, Wisp } from '../contracts';
2
+ export declare function resource<Value>(body: ResourceBody<Value>): Wisp<FutureKey<Value>>;
3
+ export type ResourceBody<Value> = (provide: ResourceProvide<Value>) => Wisp<void>;
4
+ export type ResourceProvide<Value> = (value: Value) => Wisp<never>;
5
+ //# sourceMappingURL=resource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resource.d.ts","sourceRoot":"","sources":["../../src/primitives/resource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAmB,IAAI,EAAE,MAAM,aAAa,CAAC;AAOpE,wBAAgB,QAAQ,CAAC,KAAK,EAAE,IAAI,EAAE,YAAY,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAOjF;AAED,MAAM,MAAM,YAAY,CAAC,KAAK,IAAI,CAAC,OAAO,EAAE,eAAe,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,CAAC;AAClF,MAAM,MAAM,eAAe,CAAC,KAAK,IAAI,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { FutureKey, Ritual, Wisp } from '../contracts';
2
+ export declare function resumable<Relic>(entry: Ritual<Relic>): Wisp<FutureKey<Relic>>;
3
+ //# sourceMappingURL=resumable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resumable.d.ts","sourceRoot":"","sources":["../../src/primitives/resumable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAgB,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAQzE,wBAAgB,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAO7E"}
@@ -0,0 +1,5 @@
1
+ import { SelfHandle } from '../sigils';
2
+ import { Wisp } from '../contracts';
3
+ export type { SelfHandle } from '../sigils';
4
+ export declare function self(): Wisp<SelfHandle>;
5
+ //# sourceMappingURL=self.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"self.d.ts","sourceRoot":"","sources":["../../src/primitives/self.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAIxC,YAAY,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,wBAAgB,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,CAEvC"}
@@ -0,0 +1,3 @@
1
+ import { FutureResult, FutureSettleKey, Wisp } from '../contracts';
2
+ export declare function settle<Result>(futureSettle: FutureSettleKey<Result>, result: FutureResult<Result>): Wisp<void>;
3
+ //# sourceMappingURL=settle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settle.d.ts","sourceRoot":"","sources":["../../src/primitives/settle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAIvE,wBAAgB,MAAM,CAAC,MAAM,EAC3B,YAAY,EAAE,eAAe,CAAC,MAAM,CAAC,EACrC,MAAM,EAAE,YAAY,CAAC,MAAM,CAAC,GAC3B,IAAI,CAAC,IAAI,CAAC,CAEZ"}
@@ -0,0 +1,3 @@
1
+ import { FutureKey, Ritual, Wisp } from '../contracts';
2
+ export declare function spawn<Relic>(entry: Ritual<Relic>): Wisp<FutureKey<Relic>>;
3
+ //# sourceMappingURL=spawn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spawn.d.ts","sourceRoot":"","sources":["../../src/primitives/spawn.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAK3D,wBAAgB,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAMzE"}
@@ -0,0 +1,3 @@
1
+ import { ContextKey, Wisp } from '../contracts';
2
+ export declare function unbind(key: ContextKey<unknown>): Wisp<void>;
3
+ //# sourceMappingURL=unbind.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unbind.d.ts","sourceRoot":"","sources":["../../src/primitives/unbind.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAIpD,wBAAgB,MAAM,CAAC,GAAG,EAAE,UAAU,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAE3D"}
@@ -0,0 +1,3 @@
1
+ import { FutureKey, FutureResult, Wisp } from '../contracts';
2
+ export declare function wait<Result>(future: FutureKey<Result>): Wisp<FutureResult<Result>>;
3
+ //# sourceMappingURL=wait.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wait.d.ts","sourceRoot":"","sources":["../../src/primitives/wait.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAIjE,wBAAgB,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAElF"}
@@ -0,0 +1,3 @@
1
+ export * from './process';
2
+ export * from './resumable';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/primitives-kit/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { ProcessRef, Wisp } from '../contracts';
2
+ /**
3
+ * Awaits a process through the in-band completion path only.
4
+ * Non-completed exits are treated as invalid for this helper.
5
+ */
6
+ export declare function awaitProcessInBand<Relic>(process: ProcessRef<Relic>): Wisp<Relic>;
7
+ //# sourceMappingURL=process.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"process.d.ts","sourceRoot":"","sources":["../../src/primitives-kit/process.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAOpD;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,EAAE,UAAU,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAOjF"}
@@ -0,0 +1,9 @@
1
+ import { ContextKey, FutureSettleKey, ScopeRef } from '../contracts';
2
+ import { ScopeFailure } from '../failures';
3
+ export declare const resumableDelegateKey: ContextKey<ScopeRef<unknown>>;
4
+ export interface ResumableRecoveryRequest<Relic> {
5
+ readonly failure: ScopeFailure;
6
+ readonly recoverySettle: FutureSettleKey<Relic>;
7
+ }
8
+ export declare const resumableFailureKey: import('../contracts').MessageKey<ResumableRecoveryRequest<unknown>>;
9
+ //# sourceMappingURL=resumable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resumable.d.ts","sourceRoot":"","sources":["../../src/primitives-kit/resumable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEzE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,eAAO,MAAM,oBAAoB,EAAE,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAmC,CAAC;AAEnG,MAAM,WAAW,wBAAwB,CAAC,KAAK;IAC7C,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC;IAC/B,QAAQ,CAAC,cAAc,EAAE,eAAe,CAAC,KAAK,CAAC,CAAC;CACjD;AAED,eAAO,MAAM,mBAAmB,qEAAkD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './primitives/index';
2
+ //# sourceMappingURL=primitives.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"primitives.d.ts","sourceRoot":"","sources":["../src/primitives.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { ContextKey, ECHO_TOKEN, SigilShape } from '../contracts';
2
+ export declare function bind<Value>(key: ContextKey<Value>, value: Value): BindSigil<Value>;
3
+ export interface BindSigil<Value> extends SigilShape {
4
+ readonly kind: "bind";
5
+ readonly key: ContextKey<Value>;
6
+ readonly [ECHO_TOKEN]?: readonly [void];
7
+ readonly value: Value;
8
+ }
9
+ //# sourceMappingURL=bind.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bind.d.ts","sourceRoot":"","sources":["../../src/sigils/bind.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEtE,wBAAgB,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE,UAAU,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,CAMlF;AAED,MAAM,WAAW,SAAS,CAAC,KAAK,CAAE,SAAQ,UAAU;IAClD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,GAAG,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC;IAEhC,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC;IACxC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;CACvB"}
@@ -0,0 +1,17 @@
1
+ import { ECHO_TOKEN, ProcessRef, Ritual, ScopeRef, SigilShape } from '../contracts';
2
+ export declare function branch<Relic>(entry: Ritual<Relic>, descriptor?: ScopeDescriptor): BranchSigil<Relic>;
3
+ export interface BranchSigil<Relic> extends SigilShape {
4
+ readonly kind: "branch";
5
+ readonly entry: Ritual<Relic>;
6
+ readonly descriptor: ScopeDescriptor;
7
+ readonly [ECHO_TOKEN]?: readonly [BranchHandle<Relic>];
8
+ }
9
+ export interface ScopeDescriptor {
10
+ readonly failureMode: FailureMode;
11
+ }
12
+ export interface BranchHandle<Relic> {
13
+ readonly scope: ScopeRef<Relic>;
14
+ readonly process: ProcessRef<Relic>;
15
+ }
16
+ export type FailureMode = "propagate" | "contain";
17
+ //# sourceMappingURL=branch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"branch.d.ts","sourceRoot":"","sources":["../../src/sigils/branch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAExF,wBAAgB,MAAM,CAAC,KAAK,EAC1B,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,EACpB,UAAU,GAAE,eAA0C,GACrD,WAAW,CAAC,KAAK,CAAC,CAMpB;AAED,MAAM,WAAW,WAAW,CAAC,KAAK,CAAE,SAAQ,UAAU;IACpD,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IAC9B,QAAQ,CAAC,UAAU,EAAE,eAAe,CAAC;IACrC,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAC,EAAE,SAAS,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;CACxD;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;CACnC;AAED,MAAM,WAAW,YAAY,CAAC,KAAK;IACjC,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IAChC,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC;CACrC;AAED,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG,SAAS,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { ECHO_TOKEN, SigilShape } from '../contracts';
2
+ export declare function cancel(): CancelSigil;
3
+ export interface CancelSigil extends SigilShape {
4
+ readonly kind: "cancel";
5
+ readonly [ECHO_TOKEN]?: readonly [never];
6
+ }
7
+ //# sourceMappingURL=cancel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cancel.d.ts","sourceRoot":"","sources":["../../src/sigils/cancel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE1D,wBAAgB,MAAM,IAAI,WAAW,CAEpC;AAED,MAAM,WAAW,WAAY,SAAQ,UAAU;IAC7C,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAC,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC;CAC1C"}
@@ -0,0 +1,7 @@
1
+ import { ECHO_TOKEN, SigilShape } from '../contracts';
2
+ export declare function cede(): CedeSigil;
3
+ export interface CedeSigil extends SigilShape {
4
+ readonly kind: "cede";
5
+ readonly [ECHO_TOKEN]?: readonly [void];
6
+ }
7
+ //# sourceMappingURL=cede.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cede.d.ts","sourceRoot":"","sources":["../../src/sigils/cede.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE1D,wBAAgB,IAAI,IAAI,SAAS,CAIhC;AAED,MAAM,WAAW,SAAU,SAAQ,UAAU;IAC3C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC;CACzC"}
@@ -0,0 +1,8 @@
1
+ import { ECHO_TOKEN, Ritual, SigilShape } from '../contracts';
2
+ export declare function defer(cleanup: Ritual<void>): DeferSigil;
3
+ export interface DeferSigil extends SigilShape {
4
+ readonly cleanup: Ritual<void>;
5
+ readonly kind: "defer";
6
+ readonly [ECHO_TOKEN]?: readonly [void];
7
+ }
8
+ //# sourceMappingURL=defer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defer.d.ts","sourceRoot":"","sources":["../../src/sigils/defer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAElE,wBAAgB,KAAK,CAAC,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,UAAU,CAEvD;AAED,MAAM,WAAW,UAAW,SAAQ,UAAU;IAC5C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;IAC/B,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAEvB,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC;CACzC"}
@@ -0,0 +1,7 @@
1
+ import { ECHO_TOKEN, FutureHandle, SigilShape } from '../contracts';
2
+ export declare function future<Result>(): FutureSigil<Result>;
3
+ export interface FutureSigil<Result> extends SigilShape {
4
+ readonly kind: "future";
5
+ readonly [ECHO_TOKEN]?: readonly [FutureHandle<Result>];
6
+ }
7
+ //# sourceMappingURL=future.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"future.d.ts","sourceRoot":"","sources":["../../src/sigils/future.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAExE,wBAAgB,MAAM,CAAC,MAAM,KAAK,WAAW,CAAC,MAAM,CAAC,CAIpD;AAED,MAAM,WAAW,WAAW,CAAC,MAAM,CAAE,SAAQ,UAAU;IACrD,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAC,EAAE,SAAS,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC;CACzD"}
@@ -0,0 +1,8 @@
1
+ import { ECHO_TOKEN, FailureShape, SigilShape } from '../contracts';
2
+ export declare function halt(failure: FailureShape): HaltSigil;
3
+ export interface HaltSigil extends SigilShape {
4
+ readonly failure: FailureShape;
5
+ readonly kind: "halt";
6
+ readonly [ECHO_TOKEN]?: readonly [never];
7
+ }
8
+ //# sourceMappingURL=halt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"halt.d.ts","sourceRoot":"","sources":["../../src/sigils/halt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAExE,wBAAgB,IAAI,CAAC,OAAO,EAAE,YAAY,GAAG,SAAS,CAErD;AAED,MAAM,WAAW,SAAU,SAAQ,UAAU;IAC3C,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC;IAC/B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAC,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC;CAC1C"}
@@ -0,0 +1,34 @@
1
+ import { BindSigil } from './bind';
2
+ import { BranchSigil } from './branch';
3
+ import { CancelSigil } from './cancel';
4
+ import { CedeSigil } from './cede';
5
+ import { DeferSigil } from './defer';
6
+ import { FutureSigil } from './future';
7
+ import { HaltSigil } from './halt';
8
+ import { LookupSigil } from './lookup';
9
+ import { PollSigil } from './poll';
10
+ import { ReceiveSigil } from './receive';
11
+ import { SelfSigil } from './self';
12
+ import { SendSigil } from './send';
13
+ import { SettleSigil } from './settle';
14
+ import { SpawnSigil } from './spawn';
15
+ import { UnbindSigil } from './unbind';
16
+ import { WaitSigil } from './wait';
17
+ export * from './wait';
18
+ export * from './bind';
19
+ export * from './cede';
20
+ export * from './cancel';
21
+ export * from './defer';
22
+ export * from './spawn';
23
+ export * from './future';
24
+ export * from './halt';
25
+ export * from './lookup';
26
+ export * from './poll';
27
+ export * from './send';
28
+ export * from './receive';
29
+ export * from './self';
30
+ export * from './branch';
31
+ export * from './settle';
32
+ export * from './unbind';
33
+ export type Sigil = BindSigil<unknown> | BranchSigil<unknown> | CancelSigil | CedeSigil | DeferSigil | FutureSigil<unknown> | HaltSigil | LookupSigil<unknown> | PollSigil<unknown> | ReceiveSigil<unknown> | SelfSigil | SendSigil<unknown> | SettleSigil<unknown> | SpawnSigil<unknown> | UnbindSigil | WaitSigil<unknown>;
34
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sigils/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAExC,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AAEzB,MAAM,MAAM,KAAK,GACb,SAAS,CAAC,OAAO,CAAC,GAClB,WAAW,CAAC,OAAO,CAAC,GACpB,WAAW,GACX,SAAS,GACT,UAAU,GACV,WAAW,CAAC,OAAO,CAAC,GACpB,SAAS,GACT,WAAW,CAAC,OAAO,CAAC,GACpB,SAAS,CAAC,OAAO,CAAC,GAClB,YAAY,CAAC,OAAO,CAAC,GACrB,SAAS,GACT,SAAS,CAAC,OAAO,CAAC,GAClB,WAAW,CAAC,OAAO,CAAC,GACpB,UAAU,CAAC,OAAO,CAAC,GACnB,WAAW,GACX,SAAS,CAAC,OAAO,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { ContextKey, ECHO_TOKEN, SigilShape } from '../contracts';
2
+ import { Option } from '../utils';
3
+ export declare function lookup<Value>(key: ContextKey<Value>): LookupSigil<Value>;
4
+ export interface LookupSigil<Value> extends SigilShape {
5
+ readonly kind: "lookup";
6
+ readonly key: ContextKey<Value>;
7
+ readonly [ECHO_TOKEN]?: readonly [Option<Value>];
8
+ }
9
+ //# sourceMappingURL=lookup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lookup.d.ts","sourceRoot":"","sources":["../../src/sigils/lookup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACtE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEtC,wBAAgB,MAAM,CAAC,KAAK,EAAE,GAAG,EAAE,UAAU,CAAC,KAAK,CAAC,GAAG,WAAW,CAAC,KAAK,CAAC,CAKxE;AAED,MAAM,WAAW,WAAW,CAAC,KAAK,CAAE,SAAQ,UAAU;IACpD,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,GAAG,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC;IAChC,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;CAClD"}
@@ -0,0 +1,9 @@
1
+ import { ECHO_TOKEN, FutureKey, FutureResult, SigilShape } from '../contracts';
2
+ import { Option } from '../utils';
3
+ export declare function poll<Result>(future: FutureKey<Result>): PollSigil<Result>;
4
+ export interface PollSigil<Result> extends SigilShape {
5
+ readonly kind: "poll";
6
+ readonly future: FutureKey<Result>;
7
+ readonly [ECHO_TOKEN]?: readonly [Option<FutureResult<Result>>];
8
+ }
9
+ //# sourceMappingURL=poll.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"poll.d.ts","sourceRoot":"","sources":["../../src/sigils/poll.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACnF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEtC,wBAAgB,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,MAAM,CAAC,CAKzE;AAED,MAAM,WAAW,SAAS,CAAC,MAAM,CAAE,SAAQ,UAAU;IACnD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IACnC,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;CACjE"}
@@ -0,0 +1,8 @@
1
+ import { ECHO_TOKEN, MessageKey, SigilShape } from '../contracts';
2
+ export declare function receive<ReceiveValue>(messageKey: MessageKey<ReceiveValue>): ReceiveSigil<ReceiveValue>;
3
+ export interface ReceiveSigil<Value> extends SigilShape {
4
+ readonly kind: "receive";
5
+ readonly messageKey: MessageKey<Value>;
6
+ readonly [ECHO_TOKEN]?: readonly [Value];
7
+ }
8
+ //# sourceMappingURL=receive.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"receive.d.ts","sourceRoot":"","sources":["../../src/sigils/receive.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEtE,wBAAgB,OAAO,CAAC,YAAY,EAClC,UAAU,EAAE,UAAU,CAAC,YAAY,CAAC,GACnC,YAAY,CAAC,YAAY,CAAC,CAK5B;AAED,MAAM,WAAW,YAAY,CAAC,KAAK,CAAE,SAAQ,UAAU;IACrD,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC;IACvC,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAC,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC;CAC1C"}
@@ -0,0 +1,11 @@
1
+ import { ECHO_TOKEN, ProcessRef, ScopeRef, SigilShape } from '../contracts';
2
+ export declare function self(): SelfSigil;
3
+ export interface SelfSigil extends SigilShape {
4
+ readonly kind: "self";
5
+ readonly [ECHO_TOKEN]?: readonly [SelfHandle];
6
+ }
7
+ export interface SelfHandle {
8
+ readonly scope: ScopeRef<unknown>;
9
+ readonly process: ProcessRef<unknown>;
10
+ }
11
+ //# sourceMappingURL=self.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"self.d.ts","sourceRoot":"","sources":["../../src/sigils/self.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEhF,wBAAgB,IAAI,IAAI,SAAS,CAIhC;AAED,MAAM,WAAW,SAAU,SAAQ,UAAU;IAC3C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;CAC/C;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;IAClC,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;CACvC"}
@@ -0,0 +1,10 @@
1
+ import { ECHO_TOKEN, MessageKey, ScopeRef, SigilShape } from '../contracts';
2
+ export declare function send<Value>(scope: ScopeRef<unknown>, messageKey: MessageKey<Value>, value: Value): SendSigil<Value>;
3
+ export interface SendSigil<Value> extends SigilShape {
4
+ readonly kind: "send";
5
+ readonly scope: ScopeRef<unknown>;
6
+ readonly messageKey: MessageKey<Value>;
7
+ readonly value: Value;
8
+ readonly [ECHO_TOKEN]?: readonly [void];
9
+ }
10
+ //# sourceMappingURL=send.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send.d.ts","sourceRoot":"","sources":["../../src/sigils/send.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEhF,wBAAgB,IAAI,CAAC,KAAK,EACxB,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC,EACxB,UAAU,EAAE,UAAU,CAAC,KAAK,CAAC,EAC7B,KAAK,EAAE,KAAK,GACX,SAAS,CAAC,KAAK,CAAC,CAOlB;AAED,MAAM,WAAW,SAAS,CAAC,KAAK,CAAE,SAAQ,UAAU;IAClD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;IAClC,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC;IACvC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;IAEtB,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC;CACzC"}