@miadi/tide 0.6.7 → 0.6.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@miadi/tide",
3
- "version": "0.6.7",
3
+ "version": "0.6.8",
4
4
  "description": "Typed client boundary for the ironsilk `tide` runtime. Daemon Unix-socket transport with CLI fallback.",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -63,6 +63,17 @@ else
63
63
  fi
64
64
 
65
65
  # Extract the region BETWEEN the last two horizontal rules.
66
+ if printf '%s\n' "$PANE" | grep -q '^›'; then
67
+ # Codex has no horizontal-rule composer. Its last › row is the live input;
68
+ # the native placeholder proves emptiness. Blank/unknown prompts stay held.
69
+ INPUT=$(printf '%s\n' "$PANE" | awk '/^›/ { input = $0 } END { print input }' \
70
+ | sed 's/^›[[:space:]]*//; s/[[:space:]]*$//')
71
+ if [ "$INPUT" = 'Ask Codex to do anything' ]; then
72
+ INPUT=''
73
+ elif [ -z "$INPUT" ]; then
74
+ INPUT='Codex composer has no visible empty-input placeholder'
75
+ fi
76
+ else
66
77
  INPUT=$(printf '%s\n' "$PANE" | awk '
67
78
  { line[NR] = $0; if ($0 ~ /[─━]{10,}/) rule[++r] = NR }
68
79
  END {
@@ -76,6 +87,7 @@ INPUT=$(printf '%s\n' "$PANE" | awk '
76
87
  | grep -viE 'bypass permissions|esc to interrupt|shift\+tab|for agents|^/rc$|ctrl\+' \
77
88
  | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//' \
78
89
  | grep -v '^$')
90
+ fi
79
91
 
80
92
  if [ -n "$INPUT" ]; then
81
93
  say "COMPOSING $TARGET has text at its prompt — someone is writing."