@basein/runner 0.3.25 → 0.3.26
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/README.md +27 -26
- package/dist/auth/client.d.ts +4 -1
- package/dist/auth/client.js +83 -14
- package/dist/bin/bir-hooks.js +4 -2
- package/dist/bin/bir.js +153 -37
- package/dist/bin/investigate.js +5 -0
- package/dist/bin/scenario-edit.d.ts +5 -0
- package/dist/bin/scenario-edit.js +17 -1
- package/dist/config/adapters/claude-code.d.ts +51 -7
- package/dist/config/adapters/claude-code.js +105 -18
- package/dist/config/generate.d.ts +61 -13
- package/dist/config/generate.js +108 -20
- package/dist/config/resolve.d.ts +5 -0
- package/dist/config/resolve.js +7 -0
- package/dist/control/correlation.js +0 -0
- package/dist/control/daemon.d.ts +28 -0
- package/dist/control/daemon.js +62 -0
- package/dist/control/paths.d.ts +19 -1
- package/dist/control/paths.js +20 -2
- package/dist/control/pin-guard.js +8 -2
- package/dist/control/recorder-main.js +17 -5
- package/dist/control/server.d.ts +63 -9
- package/dist/control/server.js +350 -62
- package/dist/control/transcript.d.ts +64 -3
- package/dist/control/transcript.js +318 -37
- package/dist/jsonrpc/framing.d.ts +18 -3
- package/dist/jsonrpc/framing.js +57 -4
- package/dist/proxy/intercept.d.ts +4 -0
- package/dist/proxy/intercept.js +4 -0
- package/dist/proxy/relay.d.ts +13 -0
- package/dist/proxy/relay.js +12 -1
- package/dist/proxy/session.d.ts +8 -1
- package/dist/proxy/session.js +67 -10
- package/dist/record/recorder.d.ts +6 -1
- package/dist/record/redact.d.ts +18 -4
- package/dist/record/redact.js +538 -79
- package/dist/record/remote-recorder.d.ts +26 -5
- package/dist/record/remote-recorder.js +174 -18
- package/dist/record/truncate.js +3 -1
- package/dist/replay/bash-channel.d.ts +7 -1
- package/dist/replay/bash-channel.js +9 -3
- package/dist/replay/builtins.d.ts +14 -0
- package/dist/replay/builtins.js +460 -95
- package/dist/replay/bundle.d.ts +15 -11
- package/dist/replay/bundle.js +167 -33
- package/dist/replay/controller.d.ts +62 -0
- package/dist/replay/controller.js +218 -32
- package/dist/replay/derive.js +46 -4
- package/dist/replay/handover.d.ts +13 -0
- package/dist/replay/handover.js +18 -0
- package/dist/replay/pricing.d.ts +61 -11
- package/dist/replay/pricing.js +135 -42
- package/dist/replay/safety.js +43 -5
- package/dist/upstream/http-client.d.ts +6 -3
- package/dist/upstream/http-client.js +54 -13
- package/dist/upstream/stdio-client.d.ts +7 -0
- package/dist/upstream/stdio-client.js +1 -1
- package/dist/util/atomic-write.d.ts +9 -1
- package/dist/util/atomic-write.js +9 -6
- package/dist/util/service-health.d.ts +7 -0
- package/dist/util/service-health.js +10 -3
- package/package.json +1 -1
- package/production.md +2 -2
- package/scripts/install.ps1 +14 -2
package/scripts/install.ps1
CHANGED
|
@@ -65,6 +65,11 @@ function Invoke-BirInstall {
|
|
|
65
65
|
# child's environment only, set right before the spawn and removed after.
|
|
66
66
|
$setupToken = $env:BIR_SETUP_TOKEN
|
|
67
67
|
if ($setupToken) { Remove-Item -Path Env:BIR_SETUP_TOKEN -ErrorAction SilentlyContinue }
|
|
68
|
+
# The uninstall switch the same way: read once and taken out of the session,
|
|
69
|
+
# so pasting the ordinary install line later in this window installs, and
|
|
70
|
+
# does not uninstall again.
|
|
71
|
+
$uninstall = ($env:BIR_UNINSTALL -eq '1')
|
|
72
|
+
if ($null -ne $env:BIR_UNINSTALL) { Remove-Item -Path Env:BIR_UNINSTALL -ErrorAction SilentlyContinue }
|
|
68
73
|
|
|
69
74
|
# Inside the function on purpose: under `irm | iex` these would otherwise
|
|
70
75
|
# change the session the person keeps working in.
|
|
@@ -262,7 +267,14 @@ function Invoke-BirInstall {
|
|
|
262
267
|
Write-Note "node v$Version already at $exe"
|
|
263
268
|
return $exe
|
|
264
269
|
}
|
|
265
|
-
|
|
270
|
+
}
|
|
271
|
+
# Half an extraction, a foreign file, or a folder whose node.exe is gone
|
|
272
|
+
# (an antivirus quarantine takes just that): removed, never extracted
|
|
273
|
+
# over. Whenever the folder is there, not only when node.exe is - a
|
|
274
|
+
# Move-Item onto a folder that exists moves the new one INSIDE it, so
|
|
275
|
+
# node.exe never appeared where it is looked for and every retry
|
|
276
|
+
# failed, 80 MB heavier. install.sh removes it the same way.
|
|
277
|
+
if (Test-Path -LiteralPath $nodeDir) {
|
|
266
278
|
if ($dryRun) { Write-Would "remove the unusable $nodeDir" }
|
|
267
279
|
else {
|
|
268
280
|
try { Remove-Item -LiteralPath $nodeDir -Recurse -Force }
|
|
@@ -459,7 +471,7 @@ public static extern IntPtr SendMessageTimeout(IntPtr hWnd, uint Msg, UIntPtr wP
|
|
|
459
471
|
# before its files go. Every wrapped MCP server and every hook names a
|
|
460
472
|
# file under ~\.baseinstrunner; deleting that first would break them
|
|
461
473
|
# all, in every project, with no `bir` left to repair it.
|
|
462
|
-
if ($
|
|
474
|
+
if ($uninstall) {
|
|
463
475
|
Write-Step 'Removing the runner from every project on this machine'
|
|
464
476
|
$birCmd = Join-Path $birHome 'bin\bir.cmd'
|
|
465
477
|
if (-not (Test-Path -LiteralPath $birCmd -PathType Leaf)) {
|