@genesislcap/ai-assistant 15.82.0 → 15.84.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 (101) hide show
  1. package/dist/ai-assistant.api.json +2811 -233
  2. package/dist/ai-assistant.d.ts +835 -93
  3. package/dist/chat-driver.cjs +452 -99
  4. package/dist/chat-driver.cjs.map +4 -4
  5. package/dist/chat-driver.mjs +452 -99
  6. package/dist/chat-driver.mjs.map +4 -4
  7. package/dist/custom-elements.json +1903 -907
  8. package/dist/dts/autopilot/autopilot-driver.d.ts +117 -11
  9. package/dist/dts/autopilot/autopilot-driver.d.ts.map +1 -1
  10. package/dist/dts/autopilot/autopilot-session.d.ts +55 -7
  11. package/dist/dts/autopilot/autopilot-session.d.ts.map +1 -1
  12. package/dist/dts/autopilot/autopilot-tools.d.ts +3 -2
  13. package/dist/dts/autopilot/autopilot-tools.d.ts.map +1 -1
  14. package/dist/dts/autopilot/decision-message.d.ts +35 -3
  15. package/dist/dts/autopilot/decision-message.d.ts.map +1 -1
  16. package/dist/dts/autopilot/hand-back/hand-back.controller.d.ts +2 -2
  17. package/dist/dts/autopilot/hand-back/hand-back.controller.d.ts.map +1 -1
  18. package/dist/dts/autopilot/hand-back/hand-back.d.ts +2 -2
  19. package/dist/dts/autopilot/hand-back/hand-back.d.ts.map +1 -1
  20. package/dist/dts/autopilot/index.d.ts +1 -0
  21. package/dist/dts/autopilot/index.d.ts.map +1 -1
  22. package/dist/dts/autopilot/widget-tools.d.ts +95 -0
  23. package/dist/dts/autopilot/widget-tools.d.ts.map +1 -0
  24. package/dist/dts/channel/ai-activity-channel.d.ts +10 -0
  25. package/dist/dts/channel/ai-activity-channel.d.ts.map +1 -1
  26. package/dist/dts/components/ai-driver/ai-driver.d.ts +25 -6
  27. package/dist/dts/components/ai-driver/ai-driver.d.ts.map +1 -1
  28. package/dist/dts/components/ai-driver/base-driver-decorator.d.ts +2 -0
  29. package/dist/dts/components/ai-driver/base-driver-decorator.d.ts.map +1 -1
  30. package/dist/dts/components/chat-driver/chat-driver.d.ts +14 -2
  31. package/dist/dts/components/chat-driver/chat-driver.d.ts.map +1 -1
  32. package/dist/dts/components/chat-driver/interaction-controller.d.ts +61 -17
  33. package/dist/dts/components/chat-driver/interaction-controller.d.ts.map +1 -1
  34. package/dist/dts/config/config.d.ts +31 -6
  35. package/dist/dts/config/config.d.ts.map +1 -1
  36. package/dist/dts/config/define-stateful-agent.d.ts +5 -1
  37. package/dist/dts/config/define-stateful-agent.d.ts.map +1 -1
  38. package/dist/dts/genesis/write-outcome.d.ts.map +1 -1
  39. package/dist/dts/index.d.ts +4 -2
  40. package/dist/dts/index.d.ts.map +1 -1
  41. package/dist/dts/main/main.d.ts +11 -0
  42. package/dist/dts/main/main.d.ts.map +1 -1
  43. package/dist/dts/main/main.template.d.ts.map +1 -1
  44. package/dist/dts/notifications/agent-notifications.d.ts +6 -2
  45. package/dist/dts/notifications/agent-notifications.d.ts.map +1 -1
  46. package/dist/dts/notifications/agent-notifier.d.ts +26 -4
  47. package/dist/dts/notifications/agent-notifier.d.ts.map +1 -1
  48. package/dist/dts/state/decision-surface.d.ts +22 -4
  49. package/dist/dts/state/decision-surface.d.ts.map +1 -1
  50. package/dist/dts/state/interaction-context.d.ts +23 -4
  51. package/dist/dts/state/interaction-context.d.ts.map +1 -1
  52. package/dist/dts/state/interaction-registry.d.ts +55 -6
  53. package/dist/dts/state/interaction-registry.d.ts.map +1 -1
  54. package/dist/dts/state/live-interactions.d.ts +28 -0
  55. package/dist/dts/state/live-interactions.d.ts.map +1 -0
  56. package/dist/dts/state/persistence/session-persister.d.ts.map +1 -1
  57. package/dist/dts/state/persistence/session-snapshot.d.ts +16 -5
  58. package/dist/dts/state/persistence/session-snapshot.d.ts.map +1 -1
  59. package/dist/dts/state/test-interaction-context.d.ts +93 -0
  60. package/dist/dts/state/test-interaction-context.d.ts.map +1 -0
  61. package/dist/dts/types/ai-chat-widget.d.ts +7 -6
  62. package/dist/dts/types/ai-chat-widget.d.ts.map +1 -1
  63. package/dist/dts/types/interaction-context.d.ts +128 -17
  64. package/dist/dts/types/interaction-context.d.ts.map +1 -1
  65. package/dist/dts/types/interaction-interceptor.d.ts +48 -6
  66. package/dist/dts/types/interaction-interceptor.d.ts.map +1 -1
  67. package/dist/dts/types/interaction-surface.d.ts +145 -23
  68. package/dist/dts/types/interaction-surface.d.ts.map +1 -1
  69. package/dist/esm/autopilot/autopilot-driver.js +313 -60
  70. package/dist/esm/autopilot/autopilot-session.js +219 -40
  71. package/dist/esm/autopilot/autopilot-tools.js +11 -7
  72. package/dist/esm/autopilot/decision-message.js +105 -26
  73. package/dist/esm/autopilot/hand-back/hand-back.controller.js +2 -1
  74. package/dist/esm/autopilot/index.js +1 -0
  75. package/dist/esm/autopilot/widget-tools.js +39 -0
  76. package/dist/esm/components/ai-driver/base-driver-decorator.js +17 -0
  77. package/dist/esm/components/chat-driver/chat-driver.js +18 -2
  78. package/dist/esm/components/chat-driver/interaction-controller.js +232 -71
  79. package/dist/esm/components/settings-modal/settings-modal.template.js +2 -2
  80. package/dist/esm/config/define-stateful-agent.js +22 -1
  81. package/dist/esm/genesis/write-outcome.js +8 -4
  82. package/dist/esm/index.js +2 -0
  83. package/dist/esm/main/main.js +39 -3
  84. package/dist/esm/main/main.template.js +4 -1
  85. package/dist/esm/notifications/agent-notifications.js +11 -1
  86. package/dist/esm/notifications/agent-notifier.js +41 -7
  87. package/dist/esm/state/debug-event-log.js +5 -5
  88. package/dist/esm/state/decision-surface.js +137 -54
  89. package/dist/esm/state/interaction-context.js +41 -8
  90. package/dist/esm/state/interaction-registry.js +11 -0
  91. package/dist/esm/state/live-interactions.js +36 -0
  92. package/dist/esm/state/persistence/session-persister.js +44 -17
  93. package/dist/esm/state/persistence/session-snapshot.js +2 -2
  94. package/dist/esm/state/test-interaction-context.js +99 -0
  95. package/docs/notifications.md +55 -5
  96. package/docs/styling.md +33 -0
  97. package/package.json +19 -19
  98. package/sandbox/README.md +3 -2
  99. package/sandbox/autopilot.ts +26 -6
  100. package/sandbox/sandbox.ts +2 -0
  101. /package/dist/{tsdoc-metadata.json → dts/tsdoc-metadata.json} +0 -0
@@ -2,6 +2,17 @@ import { getInteractionRegistration } from '../state/interaction-registry';
2
2
  import { filterVisibleMessages } from '../utils/message-partition';
3
3
  /** How long a fallback dump of a widget's data may run, in characters. */
4
4
  const FALLBACK_DATA_CHARS = 2000;
5
+ /** How long one read may run, in characters: a view, a preview or a widget tool's result. */
6
+ export const READ_CAP_CHARS = 20000;
7
+ /**
8
+ * A read cut to {@link READ_CAP_CHARS}, with a note telling the model to ask for less. A safety
9
+ * net: each widget pages its own data, and this stops one that does not from flooding a decision.
10
+ */
11
+ export function capRead(text, max = READ_CAP_CHARS) {
12
+ if (text.length <= max)
13
+ return text;
14
+ return `${text.slice(0, max)}\n[Cut at ${max} of ${text.length} characters. Ask for less: a narrower view, or a smaller page (an offset or a limit) where the tool takes one.]`;
15
+ }
5
16
  /**
6
17
  * A widget as text: what the person saw (GENC-1660 §4.7). From its registration's `asText` when it
7
18
  * has one; otherwise its name and a size-limited dump of its data — ugly, never wrong, and a nudge
@@ -21,23 +32,42 @@ export function widgetAsText(componentName, data, result) {
21
32
  const dump = (_b = JSON.stringify(data)) !== null && _b !== void 0 ? _b : '';
22
33
  return `[${componentName}] ${dump.length > FALLBACK_DATA_CHARS ? `${dump.slice(0, FALLBACK_DATA_CHARS)}…` : dump}`;
23
34
  }
35
+ /** What a list of actions offers when none of them can be taken now. */
36
+ export const NOTHING_ENABLED_LINE = 'Nothing here can be done right now: every action is unavailable. Hand it back with hand_back, saying in your reason what is unavailable and why, so the user knows what to do.';
37
+ /**
38
+ * Whether any of `actions` can be taken now, as {@link renderActions} offers them: enabled, and not
39
+ * a refining action withheld past the refinement limit.
40
+ */
41
+ export const anyActionable = (actions, withholdRefining) => actions.some((a) => a.enabled && !(withholdRefining && a.refines));
24
42
  /**
25
43
  * List a surface's actions for the model (GENC-1660 §4.2). Options are numbered from 1, so they are
26
44
  * chosen by number rather than by retyping a label; platform-owned actions keep their names. An
27
45
  * unavailable action is listed, and marked, so the model knows it exists but cannot take it.
46
+ * Past the refinement limit (`withholdRefining`), a refining action is not listed at all.
47
+ *
48
+ * `refinementsLeft`, when the step has a limit, is said beneath the list wherever the surface has
49
+ * a refining action (listed or withheld), so the model can spend them knowingly. When nothing listed
50
+ * can be taken, the list ends by saying the only way out is to hand it back.
28
51
  */
29
52
  export function renderActions(actions, options = {}) {
30
53
  var _a;
31
54
  const numbering = [];
32
55
  const lines = [];
33
56
  for (const action of actions) {
34
- // Past the refinement limit, `reply` is not offered at all: not listed, not runnable.
35
- if (options.withholdReply && action.args === 'text')
57
+ // Past the refinement limit, a refining action (`reply`, a regenerate) is not offered at all:
58
+ // not listed, not runnable.
59
+ if (options.withholdRefining && action.refines)
36
60
  continue;
37
- const unavailable = action.enabled ? '' : ' (not available right now)';
61
+ const unavailable = action.enabled
62
+ ? ''
63
+ : ` (not available right now${action.unavailable ? `: ${action.unavailable}` : ''})`;
38
64
  if (action.description !== undefined) {
39
65
  // A full-form action: named, described, and finishing or not.
40
- const call = action.args === 'fields' ? `${action.name}({fields})` : `${action.name}()`;
66
+ const call = action.args === 'fields'
67
+ ? `${action.name}({fields})`
68
+ : action.args === 'text'
69
+ ? `${action.name}({text})`
70
+ : `${action.name}()`;
41
71
  const settles = action.finishes ? 'settles it' : 'does not settle it';
42
72
  lines.push(` ${call} — ${action.description} (${settles})${unavailable}`);
43
73
  if (action.argsSchema)
@@ -55,33 +85,66 @@ export function renderActions(actions, options = {}) {
55
85
  }
56
86
  }
57
87
  const allSettle = actions.every((a) => a.description === undefined);
88
+ const actionable = anyActionable(actions, options.withholdRefining);
89
+ const left = options.refinementsLeft;
90
+ const refinements = left !== undefined && Number.isFinite(left) && actions.some((a) => a.refines)
91
+ ? [
92
+ `Refinements left at this step: ${left}${left > 0 ? '' : ' (written answers and other refining actions are withdrawn)'}`,
93
+ ]
94
+ : [];
58
95
  return {
59
- text: `${allSettle ? 'Actions (each settles it)' : 'Actions'}:\n${lines.join('\n')}`,
96
+ text: [
97
+ `${allSettle ? 'Actions (each settles it)' : 'Actions'}:`,
98
+ ...lines,
99
+ ...refinements,
100
+ ...(actionable ? [] : [NOTHING_ENABLED_LINE]),
101
+ ].join('\n'),
60
102
  numbering,
103
+ actionable,
61
104
  };
62
105
  }
106
+ /**
107
+ * List a surface's views for the model, as lines (GENC-1660 §4.2): one view a line, with what it
108
+ * holds, and the preview marked as the one shown below. Nothing where it has no views.
109
+ */
110
+ export function renderViews(surface) {
111
+ var _a;
112
+ const views = Object.entries((_a = surface.views) !== null && _a !== void 0 ? _a : {});
113
+ if (!views.length)
114
+ return [];
115
+ return [
116
+ 'Views (widget_read):',
117
+ ...views.map(([name, description]) => {
118
+ const shown = name === surface.preview ? ' (shown below as Now)' : '';
119
+ return description ? ` ${name} — ${description}${shown}` : ` ${name}${shown}`;
120
+ }),
121
+ ];
122
+ }
63
123
  /** The current decision as one message for the autopilot (GENC-1660 §4.2). */
64
124
  export function renderDecision(opts) {
65
125
  var _a, _b;
66
126
  const { surface } = opts;
67
127
  const facts = surface.facts();
68
- const actions = renderActions(surface.actions(), { withholdReply: opts.withholdReply });
69
- // A full-form surface describes itself, lists its views, and shows its default view up front, to
70
- // save a round trip.
71
- let full = [];
128
+ const actions = renderActions(surface.actions(), {
129
+ withholdRefining: opts.withholdRefining,
130
+ refinementsLeft: opts.refinementsLeft,
131
+ });
132
+ // A full-form surface describes itself, lists its views, and shows its preview up front, to save
133
+ // a round trip. A short-form decision lists its views alone: its default is its facts, shown
134
+ // below, and the views hold what is too long to send every time — but the model can only ask for
135
+ // a view it has been told exists.
136
+ let full = renderViews(surface);
72
137
  if (surface.describe) {
73
138
  let preview = '';
74
- try {
75
- preview = JSON.stringify((_a = surface.read) === null || _a === void 0 ? void 0 : _a.call(surface));
76
- }
77
- catch (_c) {
78
- preview = '';
139
+ if (surface.preview !== undefined) {
140
+ try {
141
+ preview = capRead((_b = JSON.stringify((_a = surface.read) === null || _a === void 0 ? void 0 : _a.call(surface, surface.preview))) !== null && _b !== void 0 ? _b : '');
142
+ }
143
+ catch (_c) {
144
+ preview = '';
145
+ }
79
146
  }
80
- full = [
81
- surface.describe(),
82
- ...(((_b = surface.views) === null || _b === void 0 ? void 0 : _b.length) ? [`Views (widget_read): ${surface.views.join(', ')}`] : []),
83
- ...(preview ? [`Now: ${preview}`] : []),
84
- ];
147
+ full = [surface.describe(), ...full, ...(preview ? [`Now: ${preview}`] : [])];
85
148
  }
86
149
  const parts = [
87
150
  `<interaction id="${opts.interactionId}" widget="${opts.componentName}">`,
@@ -90,14 +153,18 @@ export function renderDecision(opts) {
90
153
  ...(Object.keys(facts).length ? [`Facts: ${JSON.stringify(facts)}`] : []),
91
154
  ...(surface.prompt ? [`Guidance: ${surface.prompt}`] : []),
92
155
  actions.text,
156
+ // Asked to decide it themselves, with nothing that can be done: handing it back is the only way
157
+ // out, so it stays open, and the reason tells the person why the autopilot could not.
93
158
  ...(opts.decideYourself
94
159
  ? [
95
- 'The user handed this one back to you and asked you to use your best judgement: decide it yourself. hand_back is not available.',
160
+ actions.actionable
161
+ ? 'The user handed this one back to you and asked you to use your best judgement: decide it yourself. hand_back is not available.'
162
+ : 'The user handed this one back to you and asked you to decide it yourself, but nothing here can be done right now, so hand_back is available after all: use it, and say why you could not decide.',
96
163
  ]
97
164
  : []),
98
165
  '</interaction>',
99
166
  ];
100
- return { text: parts.join('\n'), numbering: actions.numbering };
167
+ return { text: parts.join('\n'), numbering: actions.numbering, actionable: actions.actionable };
101
168
  }
102
169
  /**
103
170
  * A written question the working agent ended its turn on, as one message for the autopilot
@@ -132,15 +199,27 @@ const DEFAULT_VISIBILITY = {
132
199
  * record of who answered is newer than some saved sessions, so a widget without one that did not
133
200
  * time out was answered by the person. `claimant` is this autopilot; any other claimant answered on
134
201
  * the user's behalf.
202
+ *
203
+ * One that settled by itself asked nothing — stamped `resolvedItself` (its controller said so of
204
+ * this outcome), or registered `resolvesItself` — so unless a claimant settled it, it simply
205
+ * `finished`: telling the autopilot the person answered it would invent a decision they never
206
+ * made. That includes `user` on one registered `resolvesItself` and saved before the driver stopped
207
+ * stamping it there.
135
208
  */
136
- const answeredPhrase = (resolved, answeredBy, claimant) => {
209
+ const answeredPhrase = (componentName, resolved, answeredBy, claimant, resolvedItself) => {
210
+ var _a;
137
211
  if ((resolved === null || resolved === void 0 ? void 0 : resolved.status) === 'timeout') {
138
212
  return 'answered by nobody';
139
213
  }
140
214
  if (answeredBy === claimant)
141
215
  return 'answered by you';
142
- if (answeredBy === undefined || answeredBy === 'user')
143
- return 'answered by the user';
216
+ if (resolvedItself && answeredBy === undefined)
217
+ return 'finished';
218
+ if (answeredBy === undefined || answeredBy === 'user') {
219
+ return ((_a = getInteractionRegistration(componentName)) === null || _a === void 0 ? void 0 : _a.resolvesItself) === true
220
+ ? 'finished'
221
+ : 'answered by the user';
222
+ }
144
223
  return "answered on the user's behalf";
145
224
  };
146
225
  /** Recent entries a short-form transcript keeps verbatim. */
@@ -167,10 +246,10 @@ export function visibleTranscript(messages, opts) {
167
246
  visible.forEach((m, i) => {
168
247
  var _a, _b, _c, _d, _e, _f;
169
248
  if (m.interaction) {
170
- const { interactionId, componentName, data, resolved, answeredBy } = m.interaction;
249
+ const { interactionId, componentName, data, resolved, answeredBy, resolvedItself } = m.interaction;
171
250
  if (interactionId === opts.skipInteractionId || !resolved)
172
251
  return;
173
- const answered = answeredPhrase(resolved, answeredBy, opts.claimant);
252
+ const answered = answeredPhrase(componentName, resolved, answeredBy, opts.claimant, resolvedItself);
174
253
  const text = widgetAsText(componentName, data, resolved);
175
254
  lines.push(`[${componentName}, ${answered}] ${i < olderThan ? text.split('\n')[0] : text}`);
176
255
  return;
@@ -12,9 +12,10 @@ export const AUTOPILOT_HAND_BACK = 'ai-autopilot-hand-back';
12
12
  */
13
13
  export class HandBackController {
14
14
  constructor(data, ctx) {
15
+ var _a;
15
16
  this.data = data;
16
17
  this.ctx = ctx;
17
- ctx.exposeDecision({
18
+ (_a = ctx.exposeDecision) === null || _a === void 0 ? void 0 : _a.call(ctx, {
18
19
  options: data.options.map((o) => ({ id: o.id, label: o.label })),
19
20
  freeText: data.freeText,
20
21
  choose: (answer) => this.choose(answer),
@@ -1,4 +1,5 @@
1
1
  export { AUTOPILOT_CLAIMANT, AutopilotDriver, } from './autopilot-driver';
2
2
  export { AUTOPILOT_HAND_BACK, } from './hand-back/hand-back.controller';
3
+ export { widgetTools } from './widget-tools';
3
4
  // The view: importing the package defines the element, so the host can render the hand-back.
4
5
  export { AutopilotHandBack } from './hand-back/hand-back';
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Declare tools that read from one widget type (GENC-1660): parameterised reads that a view cannot
3
+ * express, such as one table's rows, or a page of them.
4
+ *
5
+ * Put them on the autopilot (`defineAutopilot({ widgetTools: [...] })`), never discovered from the
6
+ * registration. Its tool list is fixed when its session starts, sorted by name, and identical for
7
+ * every decision, so the cache never breaks. Each call is routed to the interaction of
8
+ * `componentName` the autopilot is deciding, and `run` gets its controller; with none open, it is
9
+ * refused with a reason. While one is open, the autopilot's tail says which tools are usable now.
10
+ *
11
+ * Reads only. Their results leave the autopilot's history at the end of the decision, as
12
+ * `widget_read`'s do.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * export const SAMPLE_DATA_TOOLS = widgetTools('sample-data-review', {
17
+ * sample_data_rows: {
18
+ * definition: {
19
+ * description: "One table's rows. Only while a sample-data review is open.",
20
+ * parameters: {
21
+ * type: 'object',
22
+ * properties: { table: { type: 'string' }, offset: { type: 'integer' } },
23
+ * required: ['table'],
24
+ * },
25
+ * },
26
+ * run: (controller: SampleDataReviewController, args: { table: string; offset?: number }) =>
27
+ * controller.rows(args.table, args.offset ?? 0),
28
+ * },
29
+ * });
30
+ * ```
31
+ *
32
+ * @beta
33
+ */
34
+ export function widgetTools(componentName, tools) {
35
+ return {
36
+ componentName,
37
+ tools: tools,
38
+ };
39
+ }
@@ -119,6 +119,23 @@ export class BaseDriverDecorator extends EventTarget {
119
119
  var _a, _b, _c;
120
120
  return (_c = (_b = (_a = this.inner).getFlowOwner) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : null;
121
121
  }
122
+ getInteractionCheckpoints() {
123
+ var _a, _b;
124
+ // A third-party inner driver with only the older, single form still has its one saved.
125
+ if (this.inner.getInteractionCheckpoints)
126
+ return this.inner.getInteractionCheckpoints();
127
+ const one = (_b = (_a = this.inner).getInteractionCheckpoint) === null || _b === void 0 ? void 0 : _b.call(_a);
128
+ return one ? [one] : [];
129
+ }
130
+ restoreInteractionCheckpoints(saved) {
131
+ var _a, _b;
132
+ if (this.inner.restoreInteractionCheckpoints) {
133
+ this.inner.restoreInteractionCheckpoints(saved);
134
+ }
135
+ else {
136
+ (_b = (_a = this.inner).restoreInteractionCheckpoint) === null || _b === void 0 ? void 0 : _b.call(_a, saved[saved.length - 1]);
137
+ }
138
+ }
122
139
  getInteractionCheckpoint() {
123
140
  var _a, _b;
124
141
  return (_b = (_a = this.inner).getInteractionCheckpoint) === null || _b === void 0 ? void 0 : _b.call(_a);
@@ -1830,11 +1830,27 @@ export class ChatDriver extends EventTarget {
1830
1830
  getInteractionContext(interactionId) {
1831
1831
  return this.interactions.context(interactionId);
1832
1832
  }
1833
- /** {@inheritDoc AiDriver.getInteractionCheckpoint} */
1833
+ /** {@inheritDoc AiDriver.getInteractionCheckpoints} */
1834
+ getInteractionCheckpoints() {
1835
+ return this.interactions.getCheckpoints();
1836
+ }
1837
+ /** {@inheritDoc AiDriver.restoreInteractionCheckpoints} */
1838
+ restoreInteractionCheckpoints(saved) {
1839
+ this.interactions.restoreCheckpoints(saved);
1840
+ }
1841
+ /**
1842
+ * {@inheritDoc AiDriver.getInteractionCheckpoint}
1843
+ *
1844
+ * @deprecated Use `getInteractionCheckpoints`.
1845
+ */
1834
1846
  getInteractionCheckpoint() {
1835
1847
  return this.interactions.getCheckpoint();
1836
1848
  }
1837
- /** {@inheritDoc AiDriver.restoreInteractionCheckpoint} */
1849
+ /**
1850
+ * {@inheritDoc AiDriver.restoreInteractionCheckpoint}
1851
+ *
1852
+ * @deprecated Use `restoreInteractionCheckpoints`.
1853
+ */
1838
1854
  restoreInteractionCheckpoint(saved) {
1839
1855
  this.interactions.restoreCheckpoint(saved);
1840
1856
  }