@cnwenf/occ 2.1.283 → 2.1.284

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 +17 -11
  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.283","BINARY_NAME":"occ","BUILD_TIME":"2026-07-24T11:07:56.761Z","FEEDBACK_CHANNEL":"","ISSUES_EXPLAINER":"","NATIVE_PACKAGE_URL":"","PACKAGE_URL":"@cnwenf/occ","VERSION_CHANGELOG":""};
2
+ globalThis.MACRO={"VERSION":"2.1.284","BINARY_NAME":"occ","BUILD_TIME":"2026-07-24T11:11:41.231Z","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;
@@ -455975,21 +455975,21 @@ function getTmuxInstallInstructions() {
455975
455975
  case "macos":
455976
455976
  return `To use agent swarms, install tmux:
455977
455977
  brew install tmux
455978
- Then start a tmux session with: tmux new-session -s claude`;
455978
+ Then start a tmux session with: tmux new-session -s ${CLI_BINARY_NAME}`;
455979
455979
  case "linux":
455980
455980
  case "wsl":
455981
455981
  return `To use agent swarms, install tmux:
455982
455982
  sudo apt install tmux # Ubuntu/Debian
455983
455983
  sudo dnf install tmux # Fedora/RHEL
455984
- Then start a tmux session with: tmux new-session -s claude`;
455984
+ Then start a tmux session with: tmux new-session -s ${CLI_BINARY_NAME}`;
455985
455985
  case "windows":
455986
455986
  return `To use agent swarms, you need tmux which requires WSL (Windows Subsystem for Linux).
455987
455987
  Install WSL first, then inside WSL run:
455988
455988
  sudo apt install tmux
455989
- Then start a tmux session with: tmux new-session -s claude`;
455989
+ Then start a tmux session with: tmux new-session -s ${CLI_BINARY_NAME}`;
455990
455990
  default:
455991
455991
  return `To use agent swarms, install tmux using your system's package manager.
455992
- Then start a tmux session with: tmux new-session -s claude`;
455992
+ Then start a tmux session with: tmux new-session -s ${CLI_BINARY_NAME}`;
455993
455993
  }
455994
455994
  }
455995
455995
  function getBackendByType(type) {
@@ -456074,6 +456074,7 @@ var init_registry = __esm(() => {
456074
456074
  init_state();
456075
456075
  init_debug();
456076
456076
  init_platform2();
456077
+ init_cli();
456077
456078
  init_detection();
456078
456079
  init_InProcessBackend();
456079
456080
  init_it2Setup();
@@ -686965,6 +686966,7 @@ function getActiveNotices(context8) {
686965
686966
  var jsx_runtime274, largeMemoryFilesNotice, claudeAiSubscriberExternalTokenNotice, apiKeyConflictNotice, bothAuthMethodsNotice, largeAgentDescriptionsNotice, jetbrainsPluginNotice, statusNoticeDefinitions;
686966
686967
  var init_statusNoticeDefinitions = __esm(() => {
686967
686968
  init_ink2();
686969
+ init_cli();
686968
686970
  init_claudemd();
686969
686971
  init_figures();
686970
686972
  init_context();
@@ -687043,7 +687045,8 @@ var init_statusNoticeDefinitions = __esm(() => {
687043
687045
  authTokenInfo.source,
687044
687046
  " instead of Claude account subscription token. Either unset ",
687045
687047
  authTokenInfo.source,
687046
- ", or run `claude /logout`."
687048
+ ", or run",
687049
+ `\`${CLI_BINARY_NAME} /logout\`.`
687047
687050
  ]
687048
687051
  })
687049
687052
  ]
@@ -687082,7 +687085,9 @@ var init_statusNoticeDefinitions = __esm(() => {
687082
687085
  apiKeySource,
687083
687086
  " instead of Anthropic Console key. Either unset ",
687084
687087
  apiKeySource,
687085
- ", or run `occ /logout`."
687088
+ ", or run ",
687089
+ `\`${CLI_BINARY_NAME} /logout\`.`,
687090
+ "."
687086
687091
  ]
687087
687092
  })
687088
687093
  ]
@@ -687143,7 +687148,7 @@ var init_statusNoticeDefinitions = __esm(() => {
687143
687148
  authTokenInfo.source === "claude.ai" ? "claude.ai" : authTokenInfo.source,
687144
687149
  "?",
687145
687150
  " ",
687146
- apiKeySource === "ANTHROPIC_API_KEY" ? 'Unset the ANTHROPIC_API_KEY environment variable, or claude /logout then say "No" to the API key approval before login.' : apiKeySource === "apiKeyHelper" ? "Unset the apiKeyHelper setting." : "claude /logout"
687151
+ apiKeySource === "ANTHROPIC_API_KEY" ? `Unset the ANTHROPIC_API_KEY environment variable, or ${CLI_BINARY_NAME} /logout then say "No" to the API key approval before login.` : apiKeySource === "apiKeyHelper" ? "Unset the apiKeyHelper setting." : `${CLI_BINARY_NAME} /logout`
687147
687152
  ]
687148
687153
  }),
687149
687154
  /* @__PURE__ */ jsx_runtime274.jsxs(ThemedText, {
@@ -687153,7 +687158,7 @@ var init_statusNoticeDefinitions = __esm(() => {
687153
687158
  apiKeySource,
687154
687159
  "?",
687155
687160
  " ",
687156
- authTokenInfo.source === "claude.ai" ? "claude /logout to sign out of claude.ai." : `Unset the ${authTokenInfo.source} environment variable.`
687161
+ authTokenInfo.source === "claude.ai" ? `${CLI_BINARY_NAME} /logout to sign out of claude.ai.` : `Unset the ${authTokenInfo.source} environment variable.`
687157
687162
  ]
687158
687163
  })
687159
687164
  ]
@@ -823120,7 +823125,7 @@ async function run() {
823120
823125
  await init2();
823121
823126
  profileCheckpoint("preAction_after_init");
823122
823127
  if (!isEnvTruthy(process.env.CLAUDE_CODE_DISABLE_TERMINAL_TITLE)) {
823123
- process.title = "claude";
823128
+ process.title = CLI_BINARY_NAME;
823124
823129
  }
823125
823130
  const {
823126
823131
  initSinks: initSinks2
@@ -823168,7 +823173,7 @@ async function run() {
823168
823173
  }
823169
823174
  profileCheckpoint("preAction_after_settings_sync");
823170
823175
  });
823171
- program3.name("claude").description(`Claude Code - starts an interactive session by default, use -p/--print for non-interactive output`).argument("[prompt]", "Your prompt", String).helpOption("-h, --help", "Display help for command").option("-d, --debug [filter]", 'Enable debug mode with optional category filtering (e.g., "api,hooks" or "!1p,!file")', (_value) => {
823176
+ program3.name(CLI_BINARY_NAME).description(`Claude Code - starts an interactive session by default, use -p/--print for non-interactive output`).argument("[prompt]", "Your prompt", String).helpOption("-h, --help", "Display help for command").option("-d, --debug [filter]", 'Enable debug mode with optional category filtering (e.g., "api,hooks" or "!1p,!file")', (_value) => {
823172
823177
  return true;
823173
823178
  }).addOption(new Option("--debug-to-stderr", "Enable debug mode (to stderr)").argParser(Boolean).hideHelp()).option("--debug-file <path>", "Write debug logs to a specific file path (implicitly enables debug mode)", () => true).option("--verbose", "Override verbose mode setting from config", () => true).option("-p, --print", "Print response and exit (useful for pipes). Note: The workspace trust dialog is skipped when Claude is run with the -p mode. Only use this flag in directories you trust.", () => true).option("--bare", "Minimal mode: skip hooks, LSP, plugin sync, attribution, auto-memory, background prefetches, keychain reads, and CLAUDE.md auto-discovery. Sets CLAUDE_CODE_SIMPLE=1. Anthropic auth is strictly ANTHROPIC_API_KEY or apiKeyHelper via --settings (OAuth and keychain are never read). 3P providers (Bedrock/Vertex/Foundry) use their own credentials. Skills still resolve via /skill-name. Explicitly provide context via: --system-prompt[-file], --append-system-prompt[-file], --add-dir (CLAUDE.md dirs), --mcp-config, --settings, --agents, --plugin-dir.", () => true).option("--safe-mode", 'Start in safe mode: disable all plugins, bundled skills, and hooks. Used for troubleshooting ("is a plugin/hook causing my problem?").', () => true).option("--ax-screen-reader", "Render screen-reader friendly output (flat text, no decorative borders or animations). Overridden by the CLAUDE_AX_SCREEN_READER env var and the axScreenReader setting.", () => true).addOption(new Option("--init", "Run Setup hooks with init trigger, then continue").hideHelp()).addOption(new Option("--init-only", "Run Setup and SessionStart:startup hooks, then exit").hideHelp()).addOption(new Option("--maintenance", "Run Setup hooks with maintenance trigger, then continue").hideHelp()).addOption(new Option("--output-format <format>", 'Output format (only works with --print): "text" (default), "json" (single result), or "stream-json" (realtime streaming)').choices(["text", "json", "stream-json"])).addOption(new Option("--json-schema <schema>", 'JSON Schema for structured output validation. Example: {"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}').argParser(String)).option("--include-hook-events", "Include all hook lifecycle events in the output stream (only works with --output-format=stream-json)", () => true).option("--include-partial-messages", "Include partial message chunks as they arrive (only works with --print and --output-format=stream-json)", () => true).option("--forward-subagent-text", "Forward subagent text and thinking blocks as assistant/user messages with parent_tool_use_id set (only works with --print and --output-format=stream-json)", () => true).addOption(new Option("--input-format <format>", 'Input format (only works with --print): "text" (default), or "stream-json" (realtime streaming input)').choices(["text", "stream-json"])).option("--mcp-debug", "[DEPRECATED. Use --debug instead] Enable MCP debug mode (shows MCP server errors)", () => true).option("--dangerously-skip-permissions", "Bypass all permission checks. Recommended only for sandboxes with no internet access.", () => true).option("--allow-dangerously-skip-permissions", "Enable bypassing all permission checks as an option, without it being enabled by default. Recommended only for sandboxes with no internet access.", () => true).option("--dangerously-skip-protected-paths", "Skip permission prompts for writes to protected paths (.claude/, .git/, .vscode/, shell configs). These paths are protected because editing them can execute code or alter tool behavior. Use with caution.", () => true).addOption(new Option("--thinking <mode>", "Thinking mode: enabled (equivalent to adaptive), disabled").choices(["enabled", "adaptive", "disabled"]).hideHelp()).addOption(new Option("--max-thinking-tokens <tokens>", "[DEPRECATED. Use --thinking instead for newer models] Maximum number of thinking tokens (only works with --print)").argParser(Number).hideHelp()).addOption(new Option("--max-turns <turns>", "Maximum number of agentic turns in non-interactive mode. This will early exit the conversation after the specified number of turns. (only works with --print)").argParser(Number).hideHelp()).addOption(new Option("--max-budget-usd <amount>", "Maximum dollar amount to spend on API calls (only works with --print)").argParser((value) => {
823174
823179
  const amount = Number(value);
@@ -825908,6 +825913,7 @@ var init_main7 = __esm(() => {
825908
825913
  init_mapValues();
825909
825914
  init_pickBy();
825910
825915
  init_uniqBy();
825916
+ init_cli();
825911
825917
  init_oauth();
825912
825918
  init_context2();
825913
825919
  init_init3();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cnwenf/occ",
3
- "version": "2.1.283",
3
+ "version": "2.1.284",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "bin": {