@dougbots/avenor-core 0.5.2 → 0.6.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.
package/dist/index.d.ts CHANGED
@@ -68,6 +68,7 @@ declare class Client {
68
68
  shutdown(mode: string): Promise<void>;
69
69
  answerPermission(runtimeId: string, requestId: string, optionId: string): Promise<void>;
70
70
  prompt(runtimeId: string, text: string): Promise<void>;
71
+ interruptAndPrompt(runtimeId: string, text: string, keepQueue?: boolean): Promise<void>;
71
72
  cancel(runtimeId?: string): Promise<void>;
72
73
  close(): void;
73
74
  }
package/dist/index.js CHANGED
@@ -259,6 +259,13 @@ var Client = class {
259
259
  text
260
260
  });
261
261
  }
262
+ async interruptAndPrompt(runtimeId, text, keepQueue = false) {
263
+ await this.call("interrupt_and_prompt", {
264
+ runtime_id: runtimeId,
265
+ text,
266
+ keep_queue: keepQueue
267
+ });
268
+ }
262
269
  async cancel(runtimeId) {
263
270
  const params = runtimeId ? { runtime_id: runtimeId } : void 0;
264
271
  await this.call("cancel", params);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dougbots/avenor-core",
3
- "version": "0.5.2",
3
+ "version": "0.6.0",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",