@oh-my-pi/pi-wire 18.5.1 → 18.6.0

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.
@@ -328,6 +328,9 @@ export interface TspEditorProps {
328
328
  /** The text is code in this language (`python`, `bash`): highlighted, in the mono face. */
329
329
  lang?: string;
330
330
  readonly?: boolean;
331
+ /** Ready to accept an atomic `send` when advertised in `hello.features`.
332
+ * Independent of text editability or keyboard focus; absent or false is not ready. */
333
+ sendable?: boolean;
331
334
  maxLines?: number;
332
335
  }
333
336
  export type TspInputProps = Omit<TspEditorProps, "maxLines">;
@@ -1043,8 +1046,10 @@ export type TspEvent = {
1043
1046
  * Submit `text` as one prompt through the addressed composer's ordinary
1044
1047
  * submission path, without paste or keyboard simulation. Sent only when
1045
1048
  * 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.
1049
+ * a live editable composer whose `sendable` is exactly true. Writable text
1050
+ * or keyboard focus alone does not imply submission readiness. Blank text is
1051
+ * a no-op; an existing draft is retained for local recall, not appended to
1052
+ * the supplied prompt.
1048
1053
  */
1049
1054
  | {
1050
1055
  ev: "send";
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.5.1",
4
+ "version": "18.6.0",
5
5
  "description": "Shared wire protocol types for omp packages",
6
6
  "homepage": "https://omp.sh",
7
7
  "author": {
package/src/tsp.ts CHANGED
@@ -357,6 +357,9 @@ export interface TspEditorProps {
357
357
  /** The text is code in this language (`python`, `bash`): highlighted, in the mono face. */
358
358
  lang?: string;
359
359
  readonly?: boolean;
360
+ /** Ready to accept an atomic `send` when advertised in `hello.features`.
361
+ * Independent of text editability or keyboard focus; absent or false is not ready. */
362
+ sendable?: boolean;
360
363
  maxLines?: number;
361
364
  }
362
365
  export type TspInputProps = Omit<TspEditorProps, "maxLines">;
@@ -958,8 +961,10 @@ export type TspEvent =
958
961
  * Submit `text` as one prompt through the addressed composer's ordinary
959
962
  * submission path, without paste or keyboard simulation. Sent only when
960
963
  * 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.
964
+ * a live editable composer whose `sendable` is exactly true. Writable text
965
+ * or keyboard focus alone does not imply submission readiness. Blank text is
966
+ * a no-op; an existing draft is retained for local recall, not appended to
967
+ * the supplied prompt.
963
968
  */
964
969
  | { ev: "send"; sf: string; id: string; text: string }
965
970
  /**