@oh-my-pi/pi-wire 18.4.10 → 18.4.12

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/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [18.4.11] - 2026-10-02
6
+
7
+ ### Added
8
+
9
+ - Added support for agent completion estimates in the wire protocol.
10
+
5
11
  ## [18.4.9] - 2026-10-01
6
12
 
7
13
  ### Added
@@ -722,6 +722,8 @@ export interface TspAgentProps {
722
722
  tokens?: number;
723
723
  context?: number;
724
724
  contextLabel?: string;
725
+ /** The agent's own completion estimate, 0–1; drawn while running. */
726
+ done?: number;
725
727
  cost?: number;
726
728
  age?: number;
727
729
  took?: number;
@@ -1026,6 +1028,16 @@ export type TspEvent = {
1026
1028
  cursor: number;
1027
1029
  len: number;
1028
1030
  }
1031
+ /**
1032
+ * Undo the last change to the text of `editor`/`input` node `id` through the
1033
+ * program's own undo history (an applied `edit` is one unit, as typing is); a
1034
+ * no-op when there is nothing to undo. Sent only when `hello` lists `"undo"`.
1035
+ */
1036
+ | {
1037
+ ev: "undo";
1038
+ sf: string;
1039
+ id: string;
1040
+ }
1029
1041
  /**
1030
1042
  * The user clicked into node `id` (an `editor`/`input` without the focus, or
1031
1043
  * a `prefs` sheet while the focus is outside it): the program moves its
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@oh-my-pi/pi-wire",
4
- "version": "18.4.10",
4
+ "version": "18.4.12",
5
5
  "description": "Shared wire protocol types for omp packages",
6
6
  "homepage": "https://omp.sh",
7
7
  "author": {
package/src/tsp.ts CHANGED
@@ -701,6 +701,8 @@ export interface TspAgentProps {
701
701
  tokens?: number;
702
702
  context?: number;
703
703
  contextLabel?: string;
704
+ /** The agent's own completion estimate, 0–1; drawn while running. */
705
+ done?: number;
704
706
  cost?: number;
705
707
  age?: number;
706
708
  took?: number;
@@ -946,6 +948,12 @@ export type TspEvent =
946
948
  * text length the terminal saw, a mismatch makes the edit stale).
947
949
  */
948
950
  | { ev: "edit"; sf: string; id: string; from: number; to: number; text: string; cursor: number; len: number }
951
+ /**
952
+ * Undo the last change to the text of `editor`/`input` node `id` through the
953
+ * program's own undo history (an applied `edit` is one unit, as typing is); a
954
+ * no-op when there is nothing to undo. Sent only when `hello` lists `"undo"`.
955
+ */
956
+ | { ev: "undo"; sf: string; id: string }
949
957
  /**
950
958
  * The user clicked into node `id` (an `editor`/`input` without the focus, or
951
959
  * a `prefs` sheet while the focus is outside it): the program moves its