@bunshin-cc/bunshin 0.4.7 → 0.4.8

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.
Files changed (2) hide show
  1. package/dist/bin.js +6 -4
  2. package/package.json +1 -1
package/dist/bin.js CHANGED
@@ -189,7 +189,7 @@ var init_store = __esm({
189
189
  "use strict";
190
190
  init_frontmatter();
191
191
  init_util();
192
- RETIRED_DEFAULT_MODELS = /* @__PURE__ */ new Set(["claude-fable-5-1"]);
192
+ RETIRED_DEFAULT_MODELS = /* @__PURE__ */ new Set(["claude-fable-5-1", "claude-opus-5-5"]);
193
193
  DEFAULT_CONFIG = {
194
194
  orgId: "local",
195
195
  userId: process.env.USER || "me",
@@ -200,7 +200,8 @@ var init_store = __esm({
200
200
  apiUrl: "",
201
201
  scope: "repo",
202
202
  harness: "claude-code",
203
- model: "claude-opus-5-5",
203
+ /** `[1m]` asks Claude Code for the 1M-token context window; API calls strip it (apiModelId). */
204
+ model: "claude-opus-5-5[1m]",
204
205
  gateModel: "claude-haiku-4-5-20251001",
205
206
  backend: "auto",
206
207
  recall: { enabled: true, maxLessons: 4, hookBudgetMs: 3500, useMothership: true },
@@ -3377,7 +3378,7 @@ async function askSdk(opts) {
3377
3378
  const client = new Anthropic({ maxRetries: 1 });
3378
3379
  const isHaiku = /haiku/.test(opts.model);
3379
3380
  const base = {
3380
- model: opts.model,
3381
+ model: apiModelId(opts.model),
3381
3382
  max_tokens: opts.maxTokens ?? 16e3,
3382
3383
  system: opts.system,
3383
3384
  messages: [{ role: "user", content: opts.user }]
@@ -3519,10 +3520,11 @@ function parseJsonLoose(text2) {
3519
3520
  }
3520
3521
  return void 0;
3521
3522
  }
3522
- var CLAUDE_SESSION_ENV;
3523
+ var apiModelId, CLAUDE_SESSION_ENV;
3523
3524
  var init_llm = __esm({
3524
3525
  "src/llm.ts"() {
3525
3526
  "use strict";
3527
+ apiModelId = (model) => model.replace(/\[[^\]]*\]$/, "");
3526
3528
  CLAUDE_SESSION_ENV = [
3527
3529
  "CLAUDE_CODE_SESSION_ID",
3528
3530
  "CLAUDE_CODE_REMOTE_SESSION_ID",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bunshin-cc/bunshin",
3
- "version": "0.4.7",
3
+ "version": "0.4.8",
4
4
  "description": "Shared memory for company AI agents. Connect Codex, Claude Code, or Pi to Bunshin.",
5
5
  "type": "module",
6
6
  "bin": {