skalpel 3.0.29 → 3.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skalpel",
3
- "version": "3.0.29",
3
+ "version": "3.1.0",
4
4
  "description": "Skalpel — local proxy and TUI for coding agents (skalpel + skalpeld bundle).",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://skalpel.ai",
@@ -55,10 +55,10 @@
55
55
  "x64"
56
56
  ],
57
57
  "optionalDependencies": {
58
- "@skalpelai/skalpel-darwin-arm64": "3.0.29",
59
- "@skalpelai/skalpel-darwin-x64": "3.0.29",
60
- "@skalpelai/skalpel-linux-arm64": "3.0.29",
61
- "@skalpelai/skalpel-linux-x64": "3.0.29",
62
- "@skalpelai/skalpel-win32-x64": "3.0.29"
58
+ "@skalpelai/skalpel-darwin-arm64": "3.1.0",
59
+ "@skalpelai/skalpel-darwin-x64": "3.1.0",
60
+ "@skalpelai/skalpel-linux-arm64": "3.1.0",
61
+ "@skalpelai/skalpel-linux-x64": "3.1.0",
62
+ "@skalpelai/skalpel-win32-x64": "3.1.0"
63
63
  }
64
64
  }
@@ -23,7 +23,10 @@ const claudeCode = {
23
23
  if [ -z "\${SKALPEL_NO_AGENT_WRAP:-}" ] && ! alias claude >/dev/null 2>&1 && command -v skalpel >/dev/null 2>&1; then
24
24
  claude() {
25
25
  if skalpel status >&2; then
26
- command claude "$@"
26
+ # Route active launches through \`skalpel claude-exec\`: it restores
27
+ # the 1M context window on resumed sessions (BUG-0030) before
28
+ # exec'ing the real claude binary.
29
+ command skalpel claude-exec "$@"
27
30
  else
28
31
  ANTHROPIC_API_URL= ANTHROPIC_BASE_URL= OPENAI_BASE_URL= OPENAI_API_BASE= SKALPEL_PROXY_URL= SKALPEL_CODEX_OPENAI_BASE_URL= SKALPEL_CODEX_CHATGPT_BASE_URL= command claude "$@"
29
32
  fi
@@ -35,7 +38,7 @@ fi`,
35
38
  if not set -q SKALPEL_NO_AGENT_WRAP; and not functions -q claude; and command -q skalpel
36
39
  function claude
37
40
  if skalpel status 1>&2
38
- command claude $argv
41
+ command skalpel claude-exec $argv
39
42
  else
40
43
  env -u ANTHROPIC_API_URL -u ANTHROPIC_BASE_URL -u OPENAI_BASE_URL -u OPENAI_API_BASE -u SKALPEL_PROXY_URL -u SKALPEL_CODEX_OPENAI_BASE_URL -u SKALPEL_CODEX_CHATGPT_BASE_URL command claude $argv
41
44
  end
@@ -50,7 +53,7 @@ if (-not $env:SKALPEL_NO_AGENT_WRAP -and $_skalpelOrigClaude -and $_skalpelStatu
50
53
  function global:claude {
51
54
  & $script:_skalpelStatusBin.Source status 1>&2
52
55
  if ($LASTEXITCODE -eq 0) {
53
- & $script:_skalpelOrigClaude.Source @args
56
+ & $script:_skalpelStatusBin.Source claude-exec @args
54
57
  } else {
55
58
  $_savedAnthropicApi = $env:ANTHROPIC_API_URL
56
59
  $_savedAnthropicBase = $env:ANTHROPIC_BASE_URL