Skip to content

refactor: lane-decisions 复用共享的 RUN_CODE_TOOL_NAME(follow-up 小修,#3603) - #3609

Merged
ranxianglei merged 1 commit into
masterfrom
2026-10-17_followup-3603-run-code-const
Oct 17, 2026
Merged

ranxianglei merged 1 commit into
masterfrom
2026-10-17_followup-3603-run-code-const

Conversation

@ranxianglei

Copy link
Copy Markdown
Owner

Follow-up 小修 to #3603(post-merge supplement).

背景

#3603(已合并)给 compressReachable 加了 PTC omnibus 析取项,但写的是裸字面量 declaredTools.has("run_code");而 src/compress-tool.ts:263 早已存在同一事实的命名常量 RUN_CODE_TOOL_NAME = "run_code"(供 #3252 的 ptcNoteMode() 使用),且 #3600 triage 明确承诺「复用同一常量/惯例,两处判据保持一致」。本 PR 兑现该承诺。

改动(3 行,零行为变化)

  • src/compress-tool.ts: RUN_CODE_TOOL_NAME 加 export(值不变);
  • src/server/lane-decisions.ts: 引入该常量,declaredTools.has("run_code") → declaredTools.has(RUN_CODE_TOOL_NAME)。

导入无新增环:lane-decisions.ts 已经经由 preflight.js / session-self-heal.js 传递依赖到 compress-tool.js,直接 import 不改变传递闭包;inject.ts 等 server 模块已有先例。

验证

无配置面变化、无 wire 形状变化、无 kernel 改动。

@github-actions

Copy link
Copy Markdown
Contributor

📦 Built Package Artifact

Branch: 2026-10-17_followup-3603-run-code-const (1a9d24b)

Option A — Install this exact build (recommended)

npm install -g billion-context@0.0.4256-pr.3609.f0761fc

This exact version is immutable and reproducible. The rolling pr tag tracks the newest test build across all PRs.

Option B — Download artifact

  1. Download the artifact from the Actions run
  2. Extract the tarball and install:
tar xzf billion-context-pr3609.tgz
npm install -g package

Install instructions are refreshed on each push.

@ranxianglei
ranxianglei merged commit 74bdffd into master Oct 17, 2026
43 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

📦 Merged Build Published

This merge to master was published as 0.0.544-master.74bdffd (rolling master tag).

npm install -g billion-context@0.0.544-master.74bdffd  # this exact build
npm install -g billion-context@master  # always the newest merged build

npm view billion-context@master prints the current version at any time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant