@telorun/kernel 0.17.3 → 0.19.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.
@@ -5,9 +5,12 @@ import {
5
5
  ResourceManifest,
6
6
  RuntimeError,
7
7
  RuntimeResource,
8
+ createCancellationSource,
8
9
  isCompiledValue,
10
+ type CancellationSource,
9
11
  type ControllerPolicy,
10
12
  type EvaluationContext as IEvaluationContext,
13
+ type InvokeContext,
11
14
  type LoadOptions,
12
15
  type ModuleContext,
13
16
  type ParsedArgs,
@@ -148,6 +151,10 @@ export class ResourceContextImpl implements ResourceContext {
148
151
  }
149
152
  }
150
153
 
154
+ createCancellationSource(): CancellationSource {
155
+ return createCancellationSource();
156
+ }
157
+
151
158
  invoke<TInputs>(kind: string, name: string, inputs: TInputs): Promise<any> {
152
159
  return this.moduleContext.invoke(kind, name, inputs);
153
160
  }
@@ -157,8 +164,9 @@ export class ResourceContextImpl implements ResourceContext {
157
164
  name: string,
158
165
  instance: ResourceInstance,
159
166
  inputs: TInputs,
167
+ ctx?: InvokeContext,
160
168
  ): Promise<any> {
161
- return this.moduleContext.invokeResolved(kind, name, instance, inputs);
169
+ return this.moduleContext.invokeResolved(kind, name, instance, inputs, ctx);
162
170
  }
163
171
 
164
172
  resolveImportedInstance(alias: string, name: string): ResourceInstance | undefined {