halfcycle 0.4.17 → 0.4.18

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/dist/index.js CHANGED
@@ -5193,12 +5193,13 @@ ${GENERATED_USER_PROMPT_SCOPE_HEADER} the Halfcycle installer, now also for the
5193
5193
  # own on or off, by typing one line as the whole prompt in their own Claude
5194
5194
  # Code session: "approve <phase>", "send back <phase>: <note>", "accept
5195
5195
  # <phase>/<part>", "question <phase>/<part>: <words>", "carry <phase>/<part>:
5196
- # <words>", "drop <phase>/<part>: <words>", "autonomy on" or "autonomy off".
5196
+ # <words>", "drop <phase>/<part>: <words>", "reject <phase>/<task>: <words>",
5197
+ # "autonomy on" or "autonomy off".
5197
5198
  #
5198
5199
  # AN ORDINARY PROMPT STARTS NOTHING. This script reads the hook input once and
5199
5200
  # looks only at the start of the prompt's value. Unless the prompt begins, after
5200
5201
  # any whitespace (typed, or escaped in the input), with "approve ", "send back ",
5201
- # "accept ", "question ", "carry ", "drop " or "autonomy ", in any case, it exits
5202
+ # "accept ", "question ", "carry ", "drop ", "reject " or "autonomy ", in any case, it exits
5202
5203
  # 0 with no output, and Node never starts. A quote inside any other field arrives
5203
5204
  # escaped, so no other field (the folder the session is in, for one) can read as
5204
5205
  # the start of the prompt.
@@ -5222,7 +5223,7 @@ IFS= read -r -d '' HC_INPUT || true
5222
5223
  # \\u escape, or as the UTF-8 bytes of a Unicode space. Compared byte for byte.
5223
5224
  HC_LEAD='[[:space:]]|\\\\[nrtf]|\\\\u(000[9a-d]|0020|00a0|1680|200[0-9a]|202[89f]|205f|3000|feff)'
5224
5225
  HC_LEAD="$HC_LEAD|"$'\\xc2\\xa0|\\xe1\\x9a\\x80|\\xe2\\x80[\\x80-\\x8a\\xa8\\xa9\\xaf]|\\xe2\\x81\\x9f|\\xe3\\x80\\x80|\\xef\\xbb\\xbf'
5225
- if ! printf '%s' "$HC_INPUT" | LC_ALL=C grep -Eiq "\\"prompt\\"[[:space:]]*:[[:space:]]*\\"($HC_LEAD)*(approve|send back|accept|question|carry|drop|autonomy) "; then
5226
+ if ! printf '%s' "$HC_INPUT" | LC_ALL=C grep -Eiq "\\"prompt\\"[[:space:]]*:[[:space:]]*\\"($HC_LEAD)*(approve|send back|accept|question|carry|drop|reject|autonomy) "; then
5226
5227
  exit 0
5227
5228
  fi
5228
5229