@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.
@@ -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 {
@@ -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. */
@@ -1,5 +1,5 @@
1
1
  /** Version of this package, sent as `client.version` in `hello`. */
2
- export declare const VERSION = "0.27.0";
2
+ export declare const VERSION = "0.28.1";
3
3
  /** Protocol this client speaks. */
4
4
  export declare const PROTOCOL: {
5
5
  readonly major: 1;
@@ -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.27.0";
5
+ exports.VERSION = "0.28.1";
6
6
  /** Protocol this client speaks. */
7
7
  exports.PROTOCOL = { major: 1, minor: 0 };
@@ -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 {
@@ -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 {
@@ -1,5 +1,5 @@
1
1
  /** Version of this package, sent as `client.version` in `hello`. */
2
- export declare const VERSION = "0.27.0";
2
+ export declare const VERSION = "0.28.1";
3
3
  /** Protocol this client speaks. */
4
4
  export declare const PROTOCOL: {
5
5
  readonly major: 1;
@@ -1,4 +1,4 @@
1
1
  /** Version of this package, sent as `client.version` in `hello`. */
2
- export const VERSION = "0.27.0";
2
+ export const VERSION = "0.28.1";
3
3
  /** Protocol this client speaks. */
4
4
  export const PROTOCOL = { major: 1, minor: 0 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonara/client",
3
- "version": "0.27.0",
3
+ "version": "0.28.1",
4
4
  "description": "Client for the Sonara text-to-speech runtime (protocol v1): connect, speak, control, live state. Zero dependencies.",
5
5
  "license": "MIT",
6
6
  "repository": {