@sonara/client 0.27.0 → 0.28.1
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 +6 -0
- package/dist/cjs/extensions.js +8 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/extensions.d.ts +6 -0
- package/dist/esm/extensions.js +8 -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
|
@@ -34,6 +34,12 @@ export declare class ChannelsApi {
|
|
|
34
34
|
nextChannel(extra?: Extra): Promise<void>;
|
|
35
35
|
/** `control` `flush`: stop only the session being read (the flush hotkey, #228). */
|
|
36
36
|
flush(extra?: Extra): Promise<Reply>;
|
|
37
|
+
/**
|
|
38
|
+
* `control` `back` (protocol 1.10, a tap on Up, #299): back one section of
|
|
39
|
+
* the message being read. The reply's `channel` is the session (null for a
|
|
40
|
+
* replay while idle) and `to` is `chunk`, `entry`, `first` or `replay`.
|
|
41
|
+
*/
|
|
42
|
+
back(extra?: Extra): Promise<Reply>;
|
|
37
43
|
}
|
|
38
44
|
export type AskKind = "question" | "permission" | "plan";
|
|
39
45
|
export interface StreamMessage {
|
package/dist/cjs/extensions.js
CHANGED
|
@@ -43,6 +43,14 @@ class ChannelsApi {
|
|
|
43
43
|
flush(extra = {}) {
|
|
44
44
|
return this.send("control", defined({ ...extra, action: "flush" }));
|
|
45
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* `control` `back` (protocol 1.10, a tap on Up, #299): back one section of
|
|
48
|
+
* the message being read. The reply's `channel` is the session (null for a
|
|
49
|
+
* replay while idle) and `to` is `chunk`, `entry`, `first` or `replay`.
|
|
50
|
+
*/
|
|
51
|
+
back(extra = {}) {
|
|
52
|
+
return this.send("control", defined({ ...extra, action: "back" }));
|
|
53
|
+
}
|
|
46
54
|
}
|
|
47
55
|
exports.ChannelsApi = ChannelsApi;
|
|
48
56
|
/** `agent` (needs `channels`): streaming turns, decisions, earcons. */
|
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.28.1";
|
|
6
6
|
/** Protocol this client speaks. */
|
|
7
7
|
exports.PROTOCOL = { major: 1, minor: 0 };
|
package/dist/esm/extensions.d.ts
CHANGED
|
@@ -34,6 +34,12 @@ export declare class ChannelsApi {
|
|
|
34
34
|
nextChannel(extra?: Extra): Promise<void>;
|
|
35
35
|
/** `control` `flush`: stop only the session being read (the flush hotkey, #228). */
|
|
36
36
|
flush(extra?: Extra): Promise<Reply>;
|
|
37
|
+
/**
|
|
38
|
+
* `control` `back` (protocol 1.10, a tap on Up, #299): back one section of
|
|
39
|
+
* the message being read. The reply's `channel` is the session (null for a
|
|
40
|
+
* replay while idle) and `to` is `chunk`, `entry`, `first` or `replay`.
|
|
41
|
+
*/
|
|
42
|
+
back(extra?: Extra): Promise<Reply>;
|
|
37
43
|
}
|
|
38
44
|
export type AskKind = "question" | "permission" | "plan";
|
|
39
45
|
export interface StreamMessage {
|
package/dist/esm/extensions.js
CHANGED
|
@@ -40,6 +40,14 @@ export class ChannelsApi {
|
|
|
40
40
|
flush(extra = {}) {
|
|
41
41
|
return this.send("control", defined({ ...extra, action: "flush" }));
|
|
42
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* `control` `back` (protocol 1.10, a tap on Up, #299): back one section of
|
|
45
|
+
* the message being read. The reply's `channel` is the session (null for a
|
|
46
|
+
* replay while idle) and `to` is `chunk`, `entry`, `first` or `replay`.
|
|
47
|
+
*/
|
|
48
|
+
back(extra = {}) {
|
|
49
|
+
return this.send("control", defined({ ...extra, action: "back" }));
|
|
50
|
+
}
|
|
43
51
|
}
|
|
44
52
|
/** `agent` (needs `channels`): streaming turns, decisions, earcons. */
|
|
45
53
|
export class AgentApi {
|
package/dist/esm/version.d.ts
CHANGED
package/dist/esm/version.js
CHANGED
package/package.json
CHANGED