@oh-my-pi/pi-wire 18.5.0 → 18.5.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/CHANGELOG.md +6 -0
- package/dist/types/tsp.d.ts +14 -0
- package/package.json +1 -1
- package/src/tsp.ts +9 -1
package/CHANGELOG.md
CHANGED
package/dist/types/tsp.d.ts
CHANGED
|
@@ -932,6 +932,7 @@ export type TspQuery = {
|
|
|
932
932
|
v: readonly number[];
|
|
933
933
|
app: string;
|
|
934
934
|
ver?: string;
|
|
935
|
+
features?: readonly string[];
|
|
935
936
|
} | {
|
|
936
937
|
q: "blobs";
|
|
937
938
|
ids: readonly string[];
|
|
@@ -1038,6 +1039,19 @@ export type TspEvent = {
|
|
|
1038
1039
|
sf: string;
|
|
1039
1040
|
id: string;
|
|
1040
1041
|
}
|
|
1042
|
+
/**
|
|
1043
|
+
* Submit `text` as one prompt through the addressed composer's ordinary
|
|
1044
|
+
* submission path, without paste or keyboard simulation. Sent only when
|
|
1045
|
+
* the program's `hello.features` includes `"send"` and `sf`/`id` identify
|
|
1046
|
+
* a live editable composer. Blank text is a no-op; an existing draft is
|
|
1047
|
+
* retained for local recall, not appended to the supplied prompt.
|
|
1048
|
+
*/
|
|
1049
|
+
| {
|
|
1050
|
+
ev: "send";
|
|
1051
|
+
sf: string;
|
|
1052
|
+
id: string;
|
|
1053
|
+
text: string;
|
|
1054
|
+
}
|
|
1041
1055
|
/**
|
|
1042
1056
|
* The user clicked into node `id` (an `editor`/`input` without the focus, or
|
|
1043
1057
|
* a `prefs` sheet while the focus is outside it): the program moves its
|
package/package.json
CHANGED
package/src/tsp.ts
CHANGED
|
@@ -902,7 +902,7 @@ export interface TspPalette {
|
|
|
902
902
|
|
|
903
903
|
/** Verb `q`. */
|
|
904
904
|
export type TspQuery =
|
|
905
|
-
| { q: "hello"; v: readonly number[]; app: string; ver?: string }
|
|
905
|
+
| { q: "hello"; v: readonly number[]; app: string; ver?: string; features?: readonly string[] }
|
|
906
906
|
| { q: "blobs"; ids: readonly string[] };
|
|
907
907
|
|
|
908
908
|
/** Verb `r`. */
|
|
@@ -954,6 +954,14 @@ export type TspEvent =
|
|
|
954
954
|
* no-op when there is nothing to undo. Sent only when `hello` lists `"undo"`.
|
|
955
955
|
*/
|
|
956
956
|
| { ev: "undo"; sf: string; id: string }
|
|
957
|
+
/**
|
|
958
|
+
* Submit `text` as one prompt through the addressed composer's ordinary
|
|
959
|
+
* submission path, without paste or keyboard simulation. Sent only when
|
|
960
|
+
* the program's `hello.features` includes `"send"` and `sf`/`id` identify
|
|
961
|
+
* a live editable composer. Blank text is a no-op; an existing draft is
|
|
962
|
+
* retained for local recall, not appended to the supplied prompt.
|
|
963
|
+
*/
|
|
964
|
+
| { ev: "send"; sf: string; id: string; text: string }
|
|
957
965
|
/**
|
|
958
966
|
* The user clicked into node `id` (an `editor`/`input` without the focus, or
|
|
959
967
|
* a `prefs` sheet while the focus is outside it): the program moves its
|