@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 +6 -0
- package/dist/types/tsp.d.ts +12 -0
- package/package.json +1 -1
- package/src/tsp.ts +8 -0
package/CHANGELOG.md
CHANGED
package/dist/types/tsp.d.ts
CHANGED
|
@@ -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
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
|