@cnwenf/occ 2.1.287 → 2.1.288

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/cli.js +4 -4
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bun
2
- globalThis.MACRO={"VERSION":"2.1.287","BINARY_NAME":"occ","BUILD_TIME":"2026-07-26T17:34:43.289Z","FEEDBACK_CHANNEL":"","ISSUES_EXPLAINER":"","NATIVE_PACKAGE_URL":"","PACKAGE_URL":"@cnwenf/occ","VERSION_CHANGELOG":""};
2
+ globalThis.MACRO={"VERSION":"2.1.288","BINARY_NAME":"occ","BUILD_TIME":"2026-07-27T17:54:44.726Z","FEEDBACK_CHANNEL":"","ISSUES_EXPLAINER":"","NATIVE_PACKAGE_URL":"","PACKAGE_URL":"@cnwenf/occ","VERSION_CHANGELOG":""};
3
3
  // @bun
4
4
  var __create = Object.create;
5
5
  var __getProtoOf = Object.getPrototypeOf;
@@ -100940,7 +100940,7 @@ function getDefaultOpusModel() {
100940
100940
  if (getAPIProvider() === "gateway") {
100941
100941
  return getModelStrings2().opus47;
100942
100942
  }
100943
- return getModelStrings2().opus48;
100943
+ return getModelStrings2().opus5;
100944
100944
  }
100945
100945
  function getDefaultSonnetModel() {
100946
100946
  if (process.env.ANTHROPIC_DEFAULT_SONNET_MODEL) {
@@ -139682,7 +139682,7 @@ function modelSupports1M(model) {
139682
139682
  return false;
139683
139683
  }
139684
139684
  const canonical = getCanonicalName(model);
139685
- return canonical.includes("claude-sonnet-4") || canonical.includes("claude-sonnet-5") || canonical.includes("opus-4-6") || canonical.includes("opus-4-7") || canonical.includes("opus-4-8");
139685
+ return canonical.includes("claude-sonnet-4") || canonical.includes("claude-sonnet-5") || canonical.includes("opus-4-6") || canonical.includes("opus-4-7") || canonical.includes("opus-4-8") || canonical.includes("opus-5");
139686
139686
  }
139687
139687
  function getContextWindowForModel(model, betas) {
139688
139688
  if (process.env.USER_TYPE === "ant" && process.env.CLAUDE_CODE_MAX_CONTEXT_TOKENS) {
@@ -823263,7 +823263,7 @@ async function run() {
823263
823263
  })).option("-c, --continue", "Continue the most recent conversation in the current directory", () => true).option("-r, --resume [value]", "Resume a conversation by session ID, or open interactive picker with optional search term", (value) => value || true).option("--fork-session", "When resuming, create a new session ID instead of reusing the original (use with --resume or --continue)", () => true).addOption(new Option("--prefill <text>", "Pre-fill the prompt input with text without submitting it").hideHelp()).addOption(new Option("--deep-link-origin", "Signal that this session was launched from a deep link").hideHelp()).addOption(new Option("--deep-link-repo <slug>", "Repo slug the deep link ?repo= parameter resolved to the current cwd").hideHelp()).addOption(new Option("--deep-link-last-fetch <ms>", "FETCH_HEAD mtime in epoch ms, precomputed by the deep link trampoline").argParser((v6) => {
823264
823264
  const n6 = Number(v6);
823265
823265
  return Number.isFinite(n6) ? n6 : undefined;
823266
- }).hideHelp()).option("--from-pr [value]", "Resume a session linked to a PR by PR number/URL, or open interactive picker with optional search term", (value) => value || true).option("--no-session-persistence", "Disable session persistence - sessions will not be saved to disk and cannot be resumed (only works with --print)").addOption(new Option("--resume-session-at <message id>", "When resuming, only messages up to and including the assistant message with <message.id> (use with --resume in print mode)").argParser(String).hideHelp()).addOption(new Option("--rewind-files <user-message-id>", "Restore files to state at the specified user message and exit (requires --resume)").hideHelp()).option("--model <model>", `Model for the current session. Provide an alias for the latest model (e.g. 'sonnet' or 'opus') or a model's full name (e.g. 'claude-sonnet-4-6').`).addOption(new Option("--effort <level>", `Effort level for the current session (${EFFORT_LEVELS.join(", ")})`).argParser((rawValue) => {
823266
+ }).hideHelp()).option("--from-pr [value]", "Resume a session linked to a PR by PR number/URL, or open interactive picker with optional search term", (value) => value || true).option("--no-session-persistence", "Disable session persistence - sessions will not be saved to disk and cannot be resumed (only works with --print)").addOption(new Option("--resume-session-at <message id>", "When resuming, only messages up to and including the assistant message with <message.id> (use with --resume in print mode)").argParser(String).hideHelp()).addOption(new Option("--rewind-files <user-message-id>", "Restore files to state at the specified user message and exit (requires --resume)").hideHelp()).option("--model <model>", `Model for the current session. Provide an alias for the latest model (e.g. 'fable', 'opus', or 'sonnet') or a model's full name (e.g. 'claude-fable-5').`).addOption(new Option("--effort <level>", `Effort level for the current session (${EFFORT_LEVELS.join(", ")})`).argParser((rawValue) => {
823267
823267
  const value = rawValue.toLowerCase();
823268
823268
  if (!EFFORT_LEVELS.includes(value)) {
823269
823269
  throw new InvalidArgumentError(`It must be one of: ${EFFORT_LEVELS.join(", ")}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cnwenf/occ",
3
- "version": "2.1.287",
3
+ "version": "2.1.288",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "bin": {