@herbertgao/pi-extensions 2026.11.9 → 2026.11.11
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 +21 -0
- package/README.md +6 -6
- package/THIRD_PARTY_NOTICES.md +2 -2
- package/node_modules/@herbertgao/pi-cc-extensions/CHANGELOG.md +12 -0
- package/node_modules/@herbertgao/pi-cc-extensions/README.en.md +8 -6
- package/node_modules/@herbertgao/pi-cc-extensions/README.md +8 -6
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/config/config.ts +12 -0
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/config/panel.ts +36 -13
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/compact-thinking.ts +4 -8
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/context.ts +7 -2
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/shell/footer.ts +115 -6
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/shell/prompt-editor.ts +47 -15
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/shell/startup-header.ts +3 -18
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/compact-mode.ts +34 -10
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/default-mode.ts +6 -1
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/markdown-enhance.ts +30 -17
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/mouse/scroll.ts +4 -21
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/grouping.ts +63 -7
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/names.ts +3 -13
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/tool-io.ts +0 -5
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/transcript-mode.ts +34 -7
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/utils/ansi-text.ts +43 -4
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/utils/keybindings.ts +75 -0
- package/node_modules/@herbertgao/pi-cc-extensions/package.json +4 -4
- package/node_modules/@herbertgao/pi-impeccable/CHANGELOG.md +6 -0
- package/node_modules/@herbertgao/pi-impeccable/README.md +2 -2
- package/node_modules/@herbertgao/pi-impeccable/package.json +4 -4
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/SKILL.md +3 -1
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/adapt.md +1 -1
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/audit.md +12 -1
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/audit.native.md +4 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/critique.md +5 -5
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/degraded/documenter.md +1 -1
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/degraded/finish-reviewer.md +1 -1
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/distill.md +1 -1
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/document.md +3 -1
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/foundations.md +44 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/live-setup.md +1 -1
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/live.md +26 -12
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/new-work.md +10 -9
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/onboard.md +7 -6
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/overdrive.md +2 -2
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/quieter.md +1 -1
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/visualize.md +1 -1
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/VERSION +1 -1
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/engine-checksums.txt +5 -5
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/impeccable +69 -16
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/impeccable.cmd +55 -7
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/live-browser.js +34 -4
- package/node_modules/@herbertgao/pi-subagents/CHANGELOG.md +12 -0
- package/node_modules/@herbertgao/pi-subagents/README.md +53 -26
- package/node_modules/@herbertgao/pi-subagents/docs/workflows.md +12 -12
- package/node_modules/@herbertgao/pi-subagents/package.json +4 -4
- package/node_modules/@herbertgao/pi-subagents/src/agent-manager.ts +84 -8
- package/node_modules/@herbertgao/pi-subagents/src/agent-runner.ts +51 -32
- package/node_modules/@herbertgao/pi-subagents/src/default-agents.ts +7 -0
- package/node_modules/@herbertgao/pi-subagents/src/index.ts +369 -879
- package/node_modules/@herbertgao/pi-subagents/src/nested-tools.ts +4 -1
- package/node_modules/@herbertgao/pi-subagents/src/prompts.ts +13 -0
- package/node_modules/@herbertgao/pi-subagents/src/schedule-store.ts +18 -13
- package/node_modules/@herbertgao/pi-subagents/src/schedule.ts +25 -5
- package/node_modules/@herbertgao/pi-subagents/src/settings.ts +225 -61
- package/node_modules/@herbertgao/pi-subagents/src/types.ts +27 -0
- package/node_modules/@herbertgao/pi-subagents/src/ui/agent-tree.ts +47 -0
- package/node_modules/@herbertgao/pi-subagents/src/ui/agent-widget.ts +16 -5
- package/node_modules/@herbertgao/pi-subagents/src/ui/agents-menu.ts +705 -0
- package/node_modules/@herbertgao/pi-subagents/src/ui/fleet-list.ts +211 -47
- package/node_modules/@herbertgao/pi-subagents/src/ui/settings-menu.ts +361 -0
- package/node_modules/@herbertgao/pi-subagents/src/ui/viewer-keys.ts +1 -1
- package/node_modules/pi-commandcode-provider/CHANGELOG.md +11 -1
- package/node_modules/pi-commandcode-provider/index.ts +2 -1
- package/node_modules/pi-commandcode-provider/package.json +5 -4
- package/node_modules/pi-commandcode-provider/src/pricing.ts +8 -1
- package/node_modules/pi-commandcode-provider/src/responses-compat.ts +137 -0
- package/package.json +5 -5
|
@@ -32,18 +32,23 @@ probe_ok() {
|
|
|
32
32
|
return 1
|
|
33
33
|
}
|
|
34
34
|
probing=${IMPECCABLE_LAUNCHER_PROBE:-}
|
|
35
|
+
# Space, tab and CR, made once: hooks run this launcher on every edit and turn
|
|
36
|
+
# end, and every process it starts before the engine costs real time on a busy
|
|
37
|
+
# Windows machine (#1237), so the hot path below sticks to shell builtins.
|
|
38
|
+
ws=$(printf ' \t\r')
|
|
35
39
|
|
|
36
|
-
#
|
|
37
|
-
# asset $2 (lines are "<version> <asset> <sha256>"),
|
|
40
|
+
# Sets $digest_out to the digest engine-checksums.txt records for engine
|
|
41
|
+
# version $1 and asset $2 (lines are "<version> <asset> <sha256>"), empty when
|
|
42
|
+
# there is none.
|
|
38
43
|
# A CR is a separator too (CRLF checkouts), and a last line with no newline
|
|
39
44
|
# still counts.
|
|
40
45
|
manifest_digest() {
|
|
46
|
+
digest_out=""
|
|
41
47
|
[ -f "$manifest" ] || return 0
|
|
42
|
-
|
|
43
|
-
while IFS="$sep" read -r m_version m_asset m_sum _ || [ -n "$m_version" ]; do
|
|
48
|
+
while IFS="$ws" read -r m_version m_asset m_sum _ || [ -n "$m_version" ]; do
|
|
44
49
|
case "$m_version" in ''|'#'*) continue ;; esac
|
|
45
50
|
if [ "$m_version" = "$1" ] && [ "$m_asset" = "$2" ]; then
|
|
46
|
-
|
|
51
|
+
digest_out=$m_sum
|
|
47
52
|
return 0
|
|
48
53
|
fi
|
|
49
54
|
done < "$manifest"
|
|
@@ -52,10 +57,12 @@ manifest_digest() {
|
|
|
52
57
|
# Sets $expected (and, on Windows on ARM, which runs x64 binaries,
|
|
53
58
|
# $expected_x64) from engine-checksums.txt.
|
|
54
59
|
read_expected() {
|
|
55
|
-
|
|
60
|
+
manifest_digest "$version" "$asset"
|
|
61
|
+
expected=$digest_out
|
|
56
62
|
expected_x64=""
|
|
57
63
|
if [ "$os" = windows ] && [ "$arch" = arm64 ]; then
|
|
58
|
-
|
|
64
|
+
manifest_digest "$version" impeccable-windows-x64.exe
|
|
65
|
+
expected_x64=$digest_out
|
|
59
66
|
fi
|
|
60
67
|
}
|
|
61
68
|
# Sets $size to the byte count of the cached binary (BSD wc pads it).
|
|
@@ -73,7 +80,19 @@ hash_file() {
|
|
|
73
80
|
fi
|
|
74
81
|
}
|
|
75
82
|
|
|
76
|
-
|
|
83
|
+
# This script's directory without dirname or a subshell: what dirname "$0"
|
|
84
|
+
# gives, made absolute by a cd there and back.
|
|
85
|
+
case $0 in
|
|
86
|
+
*/*) dir=${0%/*} ;;
|
|
87
|
+
*) dir=. ;;
|
|
88
|
+
esac
|
|
89
|
+
[ -n "$dir" ] || dir=/
|
|
90
|
+
caller_pwd=$PWD
|
|
91
|
+
CDPATH= cd -- "$dir" || { echo "impeccable: cannot enter the launcher directory $dir" >&2; exit 127; }
|
|
92
|
+
dir=$PWD
|
|
93
|
+
skill_dir=${dir%/*}
|
|
94
|
+
[ -n "$skill_dir" ] || skill_dir=/
|
|
95
|
+
cd -- "$caller_pwd" || { echo "impeccable: cannot return to $caller_pwd" >&2; exit 127; }
|
|
77
96
|
# VS Code syncs a plugin without the executable bit. Its hooks run this through
|
|
78
97
|
# sh, so restore the bit for the commands the skill runs directly (#1249).
|
|
79
98
|
[ -x "$0" ] || chmod +x "$0" 2>/dev/null || :
|
|
@@ -86,7 +105,7 @@ manifest="$dir/engine-checksums.txt"
|
|
|
86
105
|
# cannot find reference/*.md (so native platform refs never inline) or read its
|
|
87
106
|
# own version (so UPDATE_AVAILABLE never fires). Setting it here covers every
|
|
88
107
|
# candidate the launcher can exec.
|
|
89
|
-
: "${IMPECCABLE_SKILL_DIR:=$
|
|
108
|
+
: "${IMPECCABLE_SKILL_DIR:=$skill_dir}"
|
|
90
109
|
: "${IMPECCABLE_SELF:=$0}"
|
|
91
110
|
export IMPECCABLE_SKILL_DIR IMPECCABLE_SELF
|
|
92
111
|
|
|
@@ -94,20 +113,29 @@ if [ -n "${IMPECCABLE_BIN:-}" ] && [ -x "${IMPECCABLE_BIN}" ]; then
|
|
|
94
113
|
exec "${IMPECCABLE_BIN}" "$@"
|
|
95
114
|
fi
|
|
96
115
|
|
|
97
|
-
|
|
116
|
+
# Windows names itself in the environment, which saves a process there; one
|
|
117
|
+
# uname covers the rest. PROCESSOR_ARCHITECTURE is what impeccable.cmd reads,
|
|
118
|
+
# so both launchers pick the same cached engine (AMD64 under x64 Git Bash on
|
|
119
|
+
# ARM64, as uname -m reported before).
|
|
120
|
+
if [ "${OS:-}" = Windows_NT ]; then
|
|
121
|
+
sys="Windows_NT ${PROCESSOR_ARCHITECTURE:-unknown}"
|
|
122
|
+
else
|
|
123
|
+
sys=$(uname -sm 2>/dev/null) || sys="unknown unknown"
|
|
124
|
+
fi
|
|
125
|
+
case "${sys%% *}" in
|
|
98
126
|
Darwin) os=darwin ;;
|
|
99
127
|
Linux) os=linux ;;
|
|
100
128
|
MINGW*|MSYS*|CYGWIN*|Windows_NT) os=windows ;;
|
|
101
129
|
*) os=unknown ;;
|
|
102
130
|
esac
|
|
103
|
-
case "$
|
|
104
|
-
arm64|aarch64) arch=arm64 ;;
|
|
105
|
-
x86_64|amd64) arch=x64 ;;
|
|
131
|
+
case "${sys##* }" in
|
|
132
|
+
arm64|aarch64|ARM64) arch=arm64 ;;
|
|
133
|
+
x86_64|amd64|AMD64) arch=x64 ;;
|
|
106
134
|
*) arch=unknown ;;
|
|
107
135
|
esac
|
|
108
136
|
|
|
109
137
|
version=""
|
|
110
|
-
[ -f "$dir/VERSION" ] &&
|
|
138
|
+
[ -f "$dir/VERSION" ] && { IFS="$ws" read -r version _ < "$dir/VERSION" || :; }
|
|
111
139
|
bin="$dir/bin/$os-$arch/impeccable"
|
|
112
140
|
[ "$os" = windows ] && bin="$bin.exe"
|
|
113
141
|
|
|
@@ -136,7 +164,7 @@ if [ -n "$version" ] && [ -x "$cached" ]; then
|
|
|
136
164
|
cached_size
|
|
137
165
|
stamp=""
|
|
138
166
|
stamp_size=""
|
|
139
|
-
{ IFS="$
|
|
167
|
+
{ IFS="$ws" read -r stamp stamp_size _ < "$cached.verified"; } 2>/dev/null || :
|
|
140
168
|
if [ -n "$stamp" ] && [ "$stamp_size" = "$size" ] && { [ "$stamp" = "$expected" ] || [ "$stamp" = "$expected_x64" ]; } && [ ! "$cached" -nt "$cached.verified" ]; then
|
|
141
169
|
exec "$cached" "$@"
|
|
142
170
|
fi
|
|
@@ -160,8 +188,23 @@ setup_help() {
|
|
|
160
188
|
echo "Alternatively, set IMPECCABLE_HOME to a writable cache location, or IMPECCABLE_BIN to a preinstalled engine binary." >&2
|
|
161
189
|
}
|
|
162
190
|
fetch_url() {
|
|
191
|
+
http_status=""
|
|
192
|
+
download_host=""
|
|
163
193
|
if command -v curl >/dev/null 2>&1; then
|
|
164
|
-
|
|
194
|
+
fetch_result=0
|
|
195
|
+
metadata=$(curl -fsSL --retry 2 -w '%{http_code} %{url_effective}' -o "$tmp" "$1" 2>/dev/null) || fetch_result=$?
|
|
196
|
+
http_status=${metadata%% *}
|
|
197
|
+
effective_url=${metadata#* }
|
|
198
|
+
# Only the authority is needed, never the signed storage URL's query.
|
|
199
|
+
download_host=${effective_url#*://}
|
|
200
|
+
download_host=${download_host%%/*}
|
|
201
|
+
download_host=${download_host##*@}
|
|
202
|
+
case "$download_host" in
|
|
203
|
+
\[*) download_host=${download_host%%]*}] ;;
|
|
204
|
+
*) download_host=${download_host%%:*} ;;
|
|
205
|
+
esac
|
|
206
|
+
download_host=$(printf '%s' "$download_host" | tr '[:upper:]' '[:lower:]')
|
|
207
|
+
return "$fetch_result"
|
|
165
208
|
elif command -v wget >/dev/null 2>&1; then
|
|
166
209
|
wget -q -O "$tmp" "$1" 2>/dev/null
|
|
167
210
|
else
|
|
@@ -256,6 +299,16 @@ if [ -n "$version" ] && [ "$os" != unknown ] && [ "$arch" != unknown ]; then
|
|
|
256
299
|
exec "$cached" "$@"
|
|
257
300
|
fi
|
|
258
301
|
rm -f "$tmp" 2>/dev/null
|
|
302
|
+
case "$http_status" in
|
|
303
|
+
5[0-9][0-9])
|
|
304
|
+
case "$download_host" in
|
|
305
|
+
github.com|*.github.com|githubusercontent.com|*.githubusercontent.com)
|
|
306
|
+
echo "impeccable: could not download engine $version: GitHub's downloads are failing right now (HTTP $http_status from $download_host). This is an outage on GitHub's side, not a problem with your setup or the CLI, so updating won't help. Check https://www.githubstatus.com and run the same command again once GitHub has recovered." >&2 ;;
|
|
307
|
+
*)
|
|
308
|
+
echo "impeccable: could not download engine $version: $download_host is failing right now (HTTP $http_status), a server error on $download_host's side. Try again later." >&2 ;;
|
|
309
|
+
esac
|
|
310
|
+
exit 127 ;;
|
|
311
|
+
esac
|
|
259
312
|
echo "impeccable: could not download engine $version from $url; check network access, the release URL, and curl or wget availability." >&2
|
|
260
313
|
setup_help
|
|
261
314
|
exit 127
|
|
@@ -93,11 +93,26 @@ goto run
|
|
|
93
93
|
:no_cache
|
|
94
94
|
|
|
95
95
|
if defined IMPECCABLE_LAUNCHER_PROBE goto download
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
call
|
|
96
|
+
rem The first impeccable on PATH, resolved once so the probe and the run see
|
|
97
|
+
rem the same file. A batch shim (npm writes impeccable.cmd) must run under
|
|
98
|
+
rem call to return here (#1240), and call expands % in the arguments a second
|
|
99
|
+
rem time; a real binary runs directly so a target such as a%20b reaches it intact.
|
|
100
|
+
set "path_bin="
|
|
101
|
+
rem where also lists npm's extensionless POSIX shim, which cmd cannot run:
|
|
102
|
+
rem take the first match with a runnable extension.
|
|
103
|
+
rem Loop letters c and k are not path modifiers, so %%~xc reads as the
|
|
104
|
+
rem extension of c and never as a loop variable followed by text.
|
|
105
|
+
for /f "delims=" %%c in ('where impeccable 2^>nul') do if not defined path_bin for %%k in (.exe .com .cmd .bat) do if /I "%%~xc"=="%%k" set "path_bin=%%c"
|
|
106
|
+
if not defined path_bin goto download
|
|
107
|
+
call :probe "%path_bin%"
|
|
99
108
|
if not "%probe_ok%"=="1" goto download
|
|
100
|
-
|
|
109
|
+
for %%k in ("%path_bin%") do set "path_ext=%%~xk"
|
|
110
|
+
if /I "%path_ext%"==".cmd" goto path_shim
|
|
111
|
+
if /I "%path_ext%"==".bat" goto path_shim
|
|
112
|
+
"%path_bin%" %*
|
|
113
|
+
exit /b %errorlevel%
|
|
114
|
+
:path_shim
|
|
115
|
+
call "%path_bin%" %*
|
|
101
116
|
exit /b %errorlevel%
|
|
102
117
|
|
|
103
118
|
:download
|
|
@@ -139,14 +154,14 @@ rem branch on the command's failure directly.
|
|
|
139
154
|
(type nul >"%part%") 2>nul || goto staging_write_failed
|
|
140
155
|
set "url=%IMPECCABLE_DOWNLOAD_BASE%/engine-v%version%/%asset%"
|
|
141
156
|
if not defined expected goto fetch_x64
|
|
142
|
-
|
|
157
|
+
call :fetch_url
|
|
143
158
|
if not errorlevel 1 goto verify
|
|
144
159
|
:fetch_x64
|
|
145
160
|
if not defined expected_x64 goto download_failed
|
|
146
161
|
set "asset=impeccable-windows-x64.exe"
|
|
147
162
|
set "expected=%expected_x64%"
|
|
148
163
|
set "url=%IMPECCABLE_DOWNLOAD_BASE%/engine-v%version%/%asset%"
|
|
149
|
-
|
|
164
|
+
call :fetch_url
|
|
150
165
|
if errorlevel 1 goto download_failed
|
|
151
166
|
|
|
152
167
|
:verify
|
|
@@ -172,6 +187,25 @@ call :discard_staging
|
|
|
172
187
|
echo impeccable: cannot verify %url% (certutil could not hash it); refusing the unverified download 1>&2
|
|
173
188
|
exit /b 127
|
|
174
189
|
|
|
190
|
+
:fetch_url
|
|
191
|
+
set "http_status="
|
|
192
|
+
set "effective_url="
|
|
193
|
+
set "download_host="
|
|
194
|
+
curl.exe -fsSL --retry 2 -w "%%{http_code} %%{url_effective}" -o "%part%" "%url%" >"%staging%\http.txt" 2>nul
|
|
195
|
+
set "fetch_result=%errorlevel%"
|
|
196
|
+
for /f "usebackq tokens=1" %%a in ("%staging%\http.txt") do set "http_status=%%a"
|
|
197
|
+
for /f "usebackq tokens=2" %%a in ("%staging%\http.txt") do set "effective_url=%%a"
|
|
198
|
+
rem Token 2 is the authority after scheme://. Drop userinfo and the port.
|
|
199
|
+
for /f "tokens=2 delims=/" %%h in ("%effective_url%") do set "download_host=%%h"
|
|
200
|
+
for /f "tokens=1,* delims=@" %%h in ("%download_host%") do if not "%%i"=="" set "download_host=%%i"
|
|
201
|
+
rem Bracketed IPv6 hosts contain colons that are not port separators.
|
|
202
|
+
if "%download_host:~0,1%"=="[" goto fetch_ipv6
|
|
203
|
+
for /f "tokens=1 delims=:" %%h in ("%download_host%") do set "download_host=%%h"
|
|
204
|
+
exit /b %fetch_result%
|
|
205
|
+
:fetch_ipv6
|
|
206
|
+
for /f "tokens=1 delims=]" %%h in ("%download_host%") do set "download_host=%%h]"
|
|
207
|
+
exit /b %fetch_result%
|
|
208
|
+
|
|
175
209
|
:read_expected
|
|
176
210
|
rem Sets expected (and, on ARM64, expected_x64: Windows on ARM runs x64
|
|
177
211
|
rem binaries) from engine-checksums.txt.
|
|
@@ -255,11 +289,13 @@ rem Sets probe_ok=1 when %1 answers the engine handshake: prints
|
|
|
255
289
|
rem "impeccable-engine <version>" and exits 0, and probe_version to that
|
|
256
290
|
rem version. The 3.x npm CLI answers any unknown verb with "Unknown command",
|
|
257
291
|
rem exit 1, so it never passes.
|
|
292
|
+
rem The candidate runs under call: an npm .cmd shim run without it takes
|
|
293
|
+
rem over this script and never returns (#1240).
|
|
258
294
|
set "probe_ok="
|
|
259
295
|
set "probe_version="
|
|
260
296
|
set "probe_tmp=%TEMP%\impeccable-probe-%RANDOM%%RANDOM%.txt"
|
|
261
297
|
set "IMPECCABLE_LAUNCHER_PROBE=1"
|
|
262
|
-
"%~1" engine-probe >"%probe_tmp%" 2>nul
|
|
298
|
+
call "%~1" engine-probe >"%probe_tmp%" 2>nul
|
|
263
299
|
set "probe_err=%ERRORLEVEL%"
|
|
264
300
|
set "IMPECCABLE_LAUNCHER_PROBE="
|
|
265
301
|
if not "%probe_err%"=="0" goto probe_done
|
|
@@ -292,6 +328,18 @@ goto setup_failed
|
|
|
292
328
|
|
|
293
329
|
:download_failed
|
|
294
330
|
call :discard_staging
|
|
331
|
+
if not "%http_status:~0,1%"=="5" goto download_generic
|
|
332
|
+
if "%http_status:~2,1%"=="" goto download_generic
|
|
333
|
+
if /I "%download_host%"=="github.com" goto download_github
|
|
334
|
+
if /I "%download_host:~-11%"==".github.com" goto download_github
|
|
335
|
+
if /I "%download_host%"=="githubusercontent.com" goto download_github
|
|
336
|
+
if /I "%download_host:~-22%"==".githubusercontent.com" goto download_github
|
|
337
|
+
echo impeccable: could not download engine %version%: %download_host% is failing right now (HTTP %http_status%), a server error on %download_host%'s side. Try again later. 1>&2
|
|
338
|
+
exit /b 127
|
|
339
|
+
:download_github
|
|
340
|
+
echo impeccable: could not download engine %version%: GitHub's downloads are failing right now (HTTP %http_status% from %download_host%). This is an outage on GitHub's side, not a problem with your setup or the CLI, so updating won't help. Check https://www.githubstatus.com and run the same command again once GitHub has recovered. 1>&2
|
|
341
|
+
exit /b 127
|
|
342
|
+
:download_generic
|
|
295
343
|
echo impeccable: could not download engine %version% from %url%; check network access and the release URL. 1>&2
|
|
296
344
|
|
|
297
345
|
:setup_failed
|
|
@@ -7519,8 +7519,25 @@
|
|
|
7519
7519
|
let liveBarHiddenByHelper = false;
|
|
7520
7520
|
|
|
7521
7521
|
function applyLiveBarPreference(hidden) {
|
|
7522
|
+
const wasHidden = liveBarHiddenByHelper;
|
|
7522
7523
|
liveBarHiddenByHelper = hidden === true;
|
|
7523
7524
|
setLiveBarHidden(liveBarHiddenByHelper);
|
|
7525
|
+
// A hidden bar has no Pick or Insert control, so a choice remembered
|
|
7526
|
+
// from a visible session stops capturing the page's clicks until the
|
|
7527
|
+
// bar is back. The stored prefs stay as they are.
|
|
7528
|
+
if (liveBarHiddenByHelper && !wasHidden && state === 'PICKING') {
|
|
7529
|
+
clearInsertPicking();
|
|
7530
|
+
hideHighlight();
|
|
7531
|
+
setLiveState('IDLE');
|
|
7532
|
+
syncPageInteractionCursor();
|
|
7533
|
+
} else if (!liveBarHiddenByHelper && wasHidden) {
|
|
7534
|
+
enterPickingIfArmed();
|
|
7535
|
+
syncPageInteractionCursor();
|
|
7536
|
+
}
|
|
7537
|
+
}
|
|
7538
|
+
|
|
7539
|
+
function enterPickingIfArmed() {
|
|
7540
|
+
if (state === 'IDLE' && (pickActive || insertActive) && !liveBarHiddenByHelper) setLiveState('PICKING');
|
|
7524
7541
|
}
|
|
7525
7542
|
|
|
7526
7543
|
// A plain live session must never notice this code: hiding remembers the
|
|
@@ -7825,13 +7842,21 @@
|
|
|
7825
7842
|
hasProjectContext = !!msg.hasProjectContext;
|
|
7826
7843
|
// The generate lane runs without PRODUCT.md by design and never
|
|
7827
7844
|
// sends the user to init, so its quiet chrome skips this notice.
|
|
7828
|
-
|
|
7845
|
+
// A first session gets the first move instead: what to click
|
|
7846
|
+
// matters more than a missing file, and it shows once.
|
|
7847
|
+
if (liveFirstRun && !liveBarHiddenByHelper) {
|
|
7848
|
+
liveFirstRun = false;
|
|
7849
|
+
if (!insertActive) pickActive = true;
|
|
7850
|
+
saveInteractionPrefs();
|
|
7851
|
+
updateGlobalBarState();
|
|
7852
|
+
showToast('Click anything on the page to restyle it.', 8000);
|
|
7853
|
+
} else if (!hasProjectContext && !liveBarHiddenByHelper) showToast(`No PRODUCT.md found. Variants will be brand-agnostic. Run ${IMPECCABLE_COMMAND} init to generate one.`, 7000);
|
|
7829
7854
|
console.log('[impeccable] Live mode connected.');
|
|
7830
7855
|
syncAgentPollingUi(!!msg.agentPolling);
|
|
7831
7856
|
startAgentStatusPoll();
|
|
7832
7857
|
restoreFromActiveSessions(msg.activeSessions, 'sse_connected');
|
|
7833
7858
|
recoverMissedGenerationCompletion(msg.activeSessions);
|
|
7834
|
-
|
|
7859
|
+
enterPickingIfArmed();
|
|
7835
7860
|
syncPageInteractionCursor();
|
|
7836
7861
|
syncPageChatFocus('sse-connected');
|
|
7837
7862
|
break;
|
|
@@ -10549,7 +10574,11 @@ void main() {
|
|
|
10549
10574
|
return { pickActive: !!prefs.pickActive, insertActive: false };
|
|
10550
10575
|
}
|
|
10551
10576
|
} catch { /* ignore */ }
|
|
10552
|
-
|
|
10577
|
+
// Nothing stored: this browser's first Live session here. Pick turns on
|
|
10578
|
+
// when the helper connects with the bar visible (see `connected`), so the
|
|
10579
|
+
// first click on the page already does something; the generate lane hides
|
|
10580
|
+
// the bar, and a Pick nobody can see or turn off would eat app clicks.
|
|
10581
|
+
return { pickActive: false, insertActive: false, firstRun: true };
|
|
10553
10582
|
}
|
|
10554
10583
|
|
|
10555
10584
|
function saveInteractionPrefs() {
|
|
@@ -10567,6 +10596,7 @@ void main() {
|
|
|
10567
10596
|
}
|
|
10568
10597
|
|
|
10569
10598
|
let pickActive = loadInteractionPrefs().pickActive;
|
|
10599
|
+
let liveFirstRun = loadInteractionPrefs().firstRun === true;
|
|
10570
10600
|
let insertActive = loadInteractionPrefs().insertActive;
|
|
10571
10601
|
let configureKind = 'replace';
|
|
10572
10602
|
let insertLineEl = null;
|
|
@@ -13865,7 +13895,7 @@ void main() {
|
|
|
13865
13895
|
scout.observe(document.body, { childList: true, subtree: true });
|
|
13866
13896
|
}
|
|
13867
13897
|
|
|
13868
|
-
|
|
13898
|
+
enterPickingIfArmed();
|
|
13869
13899
|
syncPageInteractionCursor();
|
|
13870
13900
|
syncPageChatFocus('init-complete');
|
|
13871
13901
|
}
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.25.0-local.1
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#377](https://github.com/HerbertGao/pi-extensions/pull/377) [`b02be94`](https://github.com/HerbertGao/pi-extensions/commit/b02be9410f637abc110fd2ee02def0f9d75fd419) Thanks [@HerbertGao](https://github.com/HerbertGao)! - Replay upstream pi-subagents 0.25.0. The built-in general-purpose agent can spawn its own subagents, and Settings writes the global file unless the project already has one. A finished nested agent is dropped with its parent on a session switch. Unconsumed top-level results and a failed worktree cleanup still stay recoverable.
|
|
8
|
+
|
|
9
|
+
## 0.24.0-local.1
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#374](https://github.com/HerbertGao/pi-extensions/pull/374) [`4d323bd`](https://github.com/HerbertGao/pi-extensions/commit/4d323bdfd68139885b475e721ad150d9ee4958ea) Thanks [@HerbertGao](https://github.com/HerbertGao)! - Replay upstream pi-subagents 0.24.0. A nested spawn over the nested concurrency limit is refused instead of queued, and Fleet view lists those nested agents under their parent with the model and thinking level. Unconsumed results and a failed worktree cleanup still stay recoverable.
|
|
14
|
+
|
|
3
15
|
## 0.23.2-local.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|