@sonara/client 0.32.17 → 0.33.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/cjs/extensions.d.ts +8 -0
- package/dist/cjs/extensions.js +9 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/extensions.d.ts +8 -0
- package/dist/esm/extensions.js +9 -0
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
package/dist/cjs/extensions.d.ts
CHANGED
|
@@ -82,6 +82,14 @@ export declare class AgentApi {
|
|
|
82
82
|
* message text, else the question before (question 1 again on question 1).
|
|
83
83
|
*/
|
|
84
84
|
previousQuestion(extra?: Extra): Promise<Reply>;
|
|
85
|
+
/**
|
|
86
|
+
* `question_shown` (protocol 1.12, #323): the terminal shows `text`, a
|
|
87
|
+
* question of the session's set as on screen, or with `{ review: true }`
|
|
88
|
+
* the review of the answers. Reply: `moved`, `question`, `of`.
|
|
89
|
+
*/
|
|
90
|
+
questionShown(channel: string, text: string | {
|
|
91
|
+
review: true;
|
|
92
|
+
}, extra?: Extra): Promise<Reply>;
|
|
85
93
|
/** `earcon`. */
|
|
86
94
|
earcon(kind: string, extra?: Extra): Promise<Reply>;
|
|
87
95
|
/** `set mute_level` 0, 1 or 2. */
|
package/dist/cjs/extensions.js
CHANGED
|
@@ -96,6 +96,15 @@ class AgentApi {
|
|
|
96
96
|
previousQuestion(extra = {}) {
|
|
97
97
|
return this.send("control", defined({ ...extra, action: "previous_question" }));
|
|
98
98
|
}
|
|
99
|
+
/**
|
|
100
|
+
* `question_shown` (protocol 1.12, #323): the terminal shows `text`, a
|
|
101
|
+
* question of the session's set as on screen, or with `{ review: true }`
|
|
102
|
+
* the review of the answers. Reply: `moved`, `question`, `of`.
|
|
103
|
+
*/
|
|
104
|
+
questionShown(channel, text, extra = {}) {
|
|
105
|
+
const shown = typeof text === "string" ? { text } : { review: true };
|
|
106
|
+
return this.send("question_shown", defined({ ...extra, channel, ...shown }));
|
|
107
|
+
}
|
|
99
108
|
/** `earcon`. */
|
|
100
109
|
earcon(kind, extra = {}) {
|
|
101
110
|
return this.send("earcon", defined({ ...extra, kind }));
|
package/dist/cjs/version.d.ts
CHANGED
package/dist/cjs/version.js
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PROTOCOL = exports.VERSION = void 0;
|
|
4
4
|
/** Version of this package, sent as `client.version` in `hello`. */
|
|
5
|
-
exports.VERSION = "0.
|
|
5
|
+
exports.VERSION = "0.33.0";
|
|
6
6
|
/** Protocol this client speaks. */
|
|
7
7
|
exports.PROTOCOL = { major: 1, minor: 0 };
|
package/dist/esm/extensions.d.ts
CHANGED
|
@@ -82,6 +82,14 @@ export declare class AgentApi {
|
|
|
82
82
|
* message text, else the question before (question 1 again on question 1).
|
|
83
83
|
*/
|
|
84
84
|
previousQuestion(extra?: Extra): Promise<Reply>;
|
|
85
|
+
/**
|
|
86
|
+
* `question_shown` (protocol 1.12, #323): the terminal shows `text`, a
|
|
87
|
+
* question of the session's set as on screen, or with `{ review: true }`
|
|
88
|
+
* the review of the answers. Reply: `moved`, `question`, `of`.
|
|
89
|
+
*/
|
|
90
|
+
questionShown(channel: string, text: string | {
|
|
91
|
+
review: true;
|
|
92
|
+
}, extra?: Extra): Promise<Reply>;
|
|
85
93
|
/** `earcon`. */
|
|
86
94
|
earcon(kind: string, extra?: Extra): Promise<Reply>;
|
|
87
95
|
/** `set mute_level` 0, 1 or 2. */
|
package/dist/esm/extensions.js
CHANGED
|
@@ -92,6 +92,15 @@ export class AgentApi {
|
|
|
92
92
|
previousQuestion(extra = {}) {
|
|
93
93
|
return this.send("control", defined({ ...extra, action: "previous_question" }));
|
|
94
94
|
}
|
|
95
|
+
/**
|
|
96
|
+
* `question_shown` (protocol 1.12, #323): the terminal shows `text`, a
|
|
97
|
+
* question of the session's set as on screen, or with `{ review: true }`
|
|
98
|
+
* the review of the answers. Reply: `moved`, `question`, `of`.
|
|
99
|
+
*/
|
|
100
|
+
questionShown(channel, text, extra = {}) {
|
|
101
|
+
const shown = typeof text === "string" ? { text } : { review: true };
|
|
102
|
+
return this.send("question_shown", defined({ ...extra, channel, ...shown }));
|
|
103
|
+
}
|
|
95
104
|
/** `earcon`. */
|
|
96
105
|
earcon(kind, extra = {}) {
|
|
97
106
|
return this.send("earcon", defined({ ...extra, kind }));
|
package/dist/esm/version.d.ts
CHANGED
package/dist/esm/version.js
CHANGED
package/package.json
CHANGED