@ainative/cody-cli 0.4.0 → 0.4.1

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 +33 -33
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -108134,7 +108134,7 @@ function getCanonicalName(fullModelName) {
108134
108134
  function getClaudeAiUserDefaultModelDescription(fastMode = false) {
108135
108135
  if (isMaxSubscriber() || isTeamPremiumSubscriber()) {
108136
108136
  if (isOpus1mMergeEnabled()) {
108137
- return `Opus 4.6 with 1M context \xB7 Most capable for complex work${fastMode ? getOpus46PricingSuffix(true) : ""}`;
108137
+ return `DeepSeek R1 -- Reasoning \xB7 Most capable for complex work${fastMode ? getOpus46PricingSuffix(true) : ""}`;
108138
108138
  }
108139
108139
  return `Opus 4.6 \xB7 Most capable for complex work${fastMode ? getOpus46PricingSuffix(true) : ""}`;
108140
108140
  }
@@ -145854,7 +145854,7 @@ function getMCPUserAgent() {
145854
145854
  return `claude-code/${"0.1.0"}${suffix}`;
145855
145855
  }
145856
145856
  function getWebFetchUserAgent() {
145857
- return `Claude-User (${getCodyUserAgent()}; +https://support.anthropic.com/)`;
145857
+ return `Cody-User (${getCodyUserAgent()}; +https://support.anthropic.com/)`;
145858
145858
  }
145859
145859
  function getAuthHeaders2() {
145860
145860
  if (isClaudeAISubscriber()) {
@@ -145939,7 +145939,7 @@ function getEmail() {
145939
145939
  return;
145940
145940
  }
145941
145941
  if (process.env.COO_CREATOR) {
145942
- return `${process.env.COO_CREATOR}@anthropic.com`;
145942
+ return `${process.env.COO_CREATOR}@ainative.studio`;
145943
145943
  }
145944
145944
  return;
145945
145945
  }
@@ -145952,7 +145952,7 @@ async function getEmailAsync() {
145952
145952
  return;
145953
145953
  }
145954
145954
  if (process.env.COO_CREATOR) {
145955
- return `${process.env.COO_CREATOR}@anthropic.com`;
145955
+ return `${process.env.COO_CREATOR}@ainative.studio`;
145956
145956
  }
145957
145957
  return getGitEmail();
145958
145958
  }
@@ -199748,7 +199748,7 @@ function getFeedbackGuideline() {
199748
199748
  }
199749
199749
  return "- When you cannot find an answer or the feature doesn't exist, direct the user to use /feedback to report a feature request or bug";
199750
199750
  }
199751
- var CLAUDE_CODE_DOCS_MAP_URL = "https://ainative.studio/docs/cody-cli/docs/en/claude_code_docs_map.md", CDP_DOCS_MAP_URL = "https://platform.claude.com/llms.txt", CLAUDE_CODE_GUIDE_AGENT_TYPE = "claude-code-guide", CLAUDE_CODE_GUIDE_AGENT;
199751
+ var CLAUDE_CODE_DOCS_MAP_URL = "https://ainative.studio/docs/cody-cli/docs/en/claude_code_docs_map.md", CDP_DOCS_MAP_URL = "https://ainative.studio/docs/cody-cli/llms.txt", CLAUDE_CODE_GUIDE_AGENT_TYPE = "cody-guide", CLAUDE_CODE_GUIDE_AGENT;
199752
199752
  var init_claudeCodeGuideAgent = __esm(() => {
199753
199753
  init_prompt2();
199754
199754
  init_prompt();
@@ -199759,7 +199759,7 @@ var init_claudeCodeGuideAgent = __esm(() => {
199759
199759
  init_slowOperations();
199760
199760
  CLAUDE_CODE_GUIDE_AGENT = {
199761
199761
  agentType: CLAUDE_CODE_GUIDE_AGENT_TYPE,
199762
- whenToUse: `Use this agent when the user asks questions ("Can Claude...", "Does Claude...", "How do I...") about: (1) Cody CLI (the CLI tool) - features, hooks, slash commands, MCP servers, settings, IDE integrations, keyboard shortcuts; (2) Claude Agent SDK - building custom agents; (3) AINative API (formerly Anthropic API) - API usage, tool use, Anthropic SDK usage. **IMPORTANT:** Before spawning a new agent, check if there is already a running or recently completed claude-code-guide agent that you can continue via ${SEND_MESSAGE_TOOL_NAME}.`,
199762
+ whenToUse: `Use this agent when the user asks questions ("Can Cody...", "Does Cody...", "How do I...") about: (1) Cody CLI (the CLI tool) - features, hooks, slash commands, MCP servers, settings, IDE integrations, keyboard shortcuts; (2) Claude Agent SDK - building custom agents; (3) AINative API (formerly Anthropic API) - API usage, tool use, Anthropic SDK usage. **IMPORTANT:** Before spawning a new agent, check if there is already a running or recently completed claude-code-guide agent that you can continue via ${SEND_MESSAGE_TOOL_NAME}.`,
199763
199763
  tools: hasEmbeddedSearchTools() ? [
199764
199764
  BASH_TOOL_NAME,
199765
199765
  FILE_READ_TOOL_NAME,
@@ -200144,7 +200144,7 @@ Guidelines:
200144
200144
  - Return a summary of what was configured, including the name of the script file if used
200145
200145
  - If the script includes git commands, they should skip optional locks
200146
200146
  - IMPORTANT: At the end of your response, inform the parent agent that this "statusline-setup" agent must be used for further status line changes.
200147
- Also ensure that the user is informed that they can ask Claude to continue to make changes to the status line.
200147
+ Also ensure that the user is informed that they can ask Cody to continue to make changes to the status line.
200148
200148
  `, STATUSLINE_SETUP_AGENT;
200149
200149
  var init_statuslineSetup = __esm(() => {
200150
200150
  STATUSLINE_SETUP_AGENT = {
@@ -371715,8 +371715,8 @@ function getSonnet46_1MOption() {
371715
371715
  return {
371716
371716
  value: is3P ? getModelStrings2().sonnet46 + "[1m]" : "sonnet[1m]",
371717
371717
  label: "Sonnet (1M context)",
371718
- description: `Sonnet 4.6 for long sessions${is3P ? "" : ` \xB7 ${formatModelPricing(COST_TIER_3_15)}`}`,
371719
- descriptionForModel: "Sonnet 4.6 with 1M context window - for long sessions with large codebases"
371718
+ description: `Gemma 9B -- General text and reasoning${is3P ? "" : ` \xB7 ${formatModelPricing(COST_TIER_3_15)}`}`,
371719
+ descriptionForModel: "Gemma 9B -- Text and reasoning window - for long sessions with large codebases"
371720
371720
  };
371721
371721
  }
371722
371722
  function getOpus46_1MOption(fastMode = false) {
@@ -371724,8 +371724,8 @@ function getOpus46_1MOption(fastMode = false) {
371724
371724
  return {
371725
371725
  value: is3P ? getModelStrings2().opus46 + "[1m]" : "opus[1m]",
371726
371726
  label: "Opus (1M context)",
371727
- description: `Opus 4.6 for long sessions${getOpus46PricingSuffix(fastMode)}`,
371728
- descriptionForModel: "Opus 4.6 with 1M context window - for long sessions with large codebases"
371727
+ description: `DeepSeek R1 -- Step-by-step reasoning${getOpus46PricingSuffix(fastMode)}`,
371728
+ descriptionForModel: "DeepSeek R1 -- Reasoning window - for long sessions with large codebases"
371729
371729
  };
371730
371730
  }
371731
371731
  function getCustomHaikuOption() {
@@ -371754,7 +371754,7 @@ function getHaiku35Option() {
371754
371754
  return {
371755
371755
  value: "haiku",
371756
371756
  label: "Haiku",
371757
- description: `Haiku 3.5 for simple tasks${is3P ? "" : ` \xB7 ${formatModelPricing(COST_HAIKU_35)}`}`,
371757
+ description: `Qwen Coder 7B -- Fast${is3P ? "" : ` \xB7 ${formatModelPricing(COST_HAIKU_35)}`}`,
371758
371758
  descriptionForModel: "Haiku 3.5 - faster and lower cost, but less capable than Sonnet. Use for simple tasks."
371759
371759
  };
371760
371760
  }
@@ -371775,7 +371775,7 @@ function getMaxSonnet46_1MOption() {
371775
371775
  return {
371776
371776
  value: "sonnet[1m]",
371777
371777
  label: "Sonnet (1M context)",
371778
- description: `Sonnet 4.6 with 1M context${billingInfo}${is3P ? "" : ` \xB7 ${formatModelPricing(COST_TIER_3_15)}`}`
371778
+ description: `Gemma 9B -- Text and reasoning${billingInfo}${is3P ? "" : ` \xB7 ${formatModelPricing(COST_TIER_3_15)}`}`
371779
371779
  };
371780
371780
  }
371781
371781
  function getMaxOpus46_1MOption(fastMode = false) {
@@ -371783,7 +371783,7 @@ function getMaxOpus46_1MOption(fastMode = false) {
371783
371783
  return {
371784
371784
  value: "opus[1m]",
371785
371785
  label: "Opus (1M context)",
371786
- description: `Opus 4.6 with 1M context${billingInfo}${getOpus46PricingSuffix(fastMode)}`
371786
+ description: `DeepSeek R1 -- Reasoning${billingInfo}${getOpus46PricingSuffix(fastMode)}`
371787
371787
  };
371788
371788
  }
371789
371789
  function getMergedOpus1MOption(fastMode = false) {
@@ -371791,15 +371791,15 @@ function getMergedOpus1MOption(fastMode = false) {
371791
371791
  return {
371792
371792
  value: is3P ? getModelStrings2().opus46 + "[1m]" : "opus[1m]",
371793
371793
  label: "Opus (1M context)",
371794
- description: `Opus 4.6 with 1M context \xB7 Most capable for complex work${!is3P && fastMode ? getOpus46PricingSuffix(fastMode) : ""}`,
371795
- descriptionForModel: "Opus 4.6 with 1M context - most capable for complex work"
371794
+ description: `DeepSeek R1 -- Reasoning \xB7 Most capable for complex work${!is3P && fastMode ? getOpus46PricingSuffix(fastMode) : ""}`,
371795
+ descriptionForModel: "DeepSeek R1 -- Reasoning - most capable for complex work"
371796
371796
  };
371797
371797
  }
371798
371798
  function getOpusPlanOption() {
371799
371799
  return {
371800
371800
  value: "opusplan",
371801
371801
  label: "Opus Plan Mode",
371802
- description: "Use Opus 4.6 in plan mode, Sonnet 4.6 otherwise"
371802
+ description: "Use best model for planning, fast model otherwise"
371803
371803
  };
371804
371804
  }
371805
371805
  function getModelOptionsBase(fastMode = false) {
@@ -379406,7 +379406,7 @@ function getAttributionTexts() {
379406
379406
  const isKnownPublicModel = getPublicModelDisplayName(model) !== null;
379407
379407
  const modelName = isInternalModelRepoCached() || isKnownPublicModel ? getPublicModelName(model) : "Claude Opus 4.6";
379408
379408
  const defaultAttribution = `\uD83E\uDD16 Generated with [Cody](${PRODUCT_URL})`;
379409
- const defaultCommit = `Co-Authored-By: ${modelName} <noreply@anthropic.com>`;
379409
+ const defaultCommit = `Co-Authored-By: ${modelName} <noreply@ainative.studio>`;
379410
379410
  const settings = getInitialSettings();
379411
379411
  if (settings.attribution) {
379412
379412
  return {
@@ -401916,7 +401916,7 @@ function getAssistantMessageFromError(error43, model, options) {
401916
401916
  const innerMessage = stripped.match(/"message"\s*:\s*"([^"]*)"/)?.[1];
401917
401917
  const detail = innerMessage || stripped;
401918
401918
  return createAssistantAPIErrorMessage({
401919
- content: `${API_ERROR_MESSAGE_PREFIX}: Request rejected (429) \xB7 ${detail || "this may be a temporary capacity issue \u2014 check status.anthropic.com"}`,
401919
+ content: `${API_ERROR_MESSAGE_PREFIX}: Request rejected (429) \xB7 ${detail || "this may be a temporary capacity issue \u2014 check status.ainative.studio"}`,
401920
401920
  error: "rate_limit"
401921
401921
  });
401922
401922
  }
@@ -470480,7 +470480,7 @@ function SelectEventMode(t0) {
470480
470480
  dimColor: true,
470481
470481
  children: [
470482
470482
  figures_default.info,
470483
- " This menu is read-only. To add or modify hooks, edit settings.json directly or ask Claude.",
470483
+ " This menu is read-only. To add or modify hooks, edit settings.json directly or ask Cody.",
470484
470484
  " ",
470485
470485
  /* @__PURE__ */ jsx_dev_runtime307.jsxDEV(Link, {
470486
470486
  url: "https://ainative.studio/docs/cody-cli/docs/en/hooks",
@@ -470628,7 +470628,7 @@ function SelectHookMode(t0) {
470628
470628
  }, undefined, false, undefined, this),
470629
470629
  /* @__PURE__ */ jsx_dev_runtime308.jsxDEV(ThemedText, {
470630
470630
  dimColor: true,
470631
- children: "To add hooks, edit settings.json directly or ask Claude."
470631
+ children: "To add hooks, edit settings.json directly or ask Cody."
470632
470632
  }, undefined, false, undefined, this)
470633
470633
  ]
470634
470634
  }, undefined, true, undefined, this);
@@ -470788,7 +470788,7 @@ function SelectMatcherMode(t0) {
470788
470788
  }, undefined, false, undefined, this),
470789
470789
  /* @__PURE__ */ jsx_dev_runtime309.jsxDEV(ThemedText, {
470790
470790
  dimColor: true,
470791
- children: "To add hooks, edit settings.json directly or ask Claude."
470791
+ children: "To add hooks, edit settings.json directly or ask Cody."
470792
470792
  }, undefined, false, undefined, this)
470793
470793
  ]
470794
470794
  }, undefined, true, undefined, this);
@@ -471097,7 +471097,7 @@ function ViewHookMode(t0) {
471097
471097
  if ($3[32] === Symbol.for("react.memo_cache_sentinel")) {
471098
471098
  t14 = /* @__PURE__ */ jsx_dev_runtime310.jsxDEV(ThemedText, {
471099
471099
  dimColor: true,
471100
- children: "To modify or remove this hook, edit settings.json directly or ask Claude to help."
471100
+ children: "To modify or remove this hook, edit settings.json directly or ask Cody to help."
471101
471101
  }, undefined, false, undefined, this);
471102
471102
  $3[32] = t14;
471103
471103
  } else {
@@ -471528,7 +471528,7 @@ function HooksConfigMenu(t0) {
471528
471528
  if ($3[53] !== disabledByPolicy) {
471529
471529
  t322 = !disabledByPolicy && /* @__PURE__ */ jsx_dev_runtime311.jsxDEV(ThemedText, {
471530
471530
  dimColor: true,
471531
- children: 'To re-enable hooks, remove "disableAllHooks" from settings.json or ask Claude.'
471531
+ children: 'To re-enable hooks, remove "disableAllHooks" from settings.json or ask Cody.'
471532
471532
  }, undefined, false, undefined, this);
471533
471533
  $3[53] = disabledByPolicy;
471534
471534
  $3[54] = t322;
@@ -476283,13 +476283,13 @@ function MemoryStep() {
476283
476283
  label: "None (no persistent memory)",
476284
476284
  value: "none"
476285
476285
  }, {
476286
- label: "Project scope (.claude/agent-memory/)",
476286
+ label: "Project scope (.ainative/agent-memory/)",
476287
476287
  value: "project"
476288
476288
  }, {
476289
- label: "Local scope (.claude/agent-memory-local/)",
476289
+ label: "Local scope (.ainative/agent-memory-local/)",
476290
476290
  value: "local"
476291
476291
  }] : [{
476292
- label: "Project scope (.claude/agent-memory/) (Recommended)",
476292
+ label: "Project scope (.ainative/agent-memory/) (Recommended)",
476293
476293
  value: "project"
476294
476294
  }, {
476295
476295
  label: "None (no persistent memory)",
@@ -476298,7 +476298,7 @@ function MemoryStep() {
476298
476298
  label: "User scope (~/.cody/agent-memory/)",
476299
476299
  value: "user"
476300
476300
  }, {
476301
- label: "Local scope (.claude/agent-memory-local/)",
476301
+ label: "Local scope (.ainative/agent-memory-local/)",
476302
476302
  value: "local"
476303
476303
  }];
476304
476304
  $3[1] = isUserScope;
@@ -481956,13 +481956,13 @@ function SetModelAndClose({
481956
481956
  return;
481957
481957
  }
481958
481958
  if (model && isOpus1mUnavailable(model)) {
481959
- onDone(`Opus 4.6 with 1M context is not available for your account. Learn more: https://ainative.studio/docs/cody-cli/docs/en/model-config#extended-context-with-1m`, {
481959
+ onDone(`DeepSeek R1 -- Reasoning is not available for your account. Learn more: https://ainative.studio/docs/cody-cli/docs/en/model-config#extended-context-with-1m`, {
481960
481960
  display: "system"
481961
481961
  });
481962
481962
  return;
481963
481963
  }
481964
481964
  if (model && isSonnet1mUnavailable(model)) {
481965
- onDone(`Sonnet 4.6 with 1M context is not available for your account. Learn more: https://ainative.studio/docs/cody-cli/docs/en/model-config#extended-context-with-1m`, {
481965
+ onDone(`Gemma 9B -- Text and reasoning is not available for your account. Learn more: https://ainative.studio/docs/cody-cli/docs/en/model-config#extended-context-with-1m`, {
481966
481966
  display: "system"
481967
481967
  });
481968
481968
  return;
@@ -492077,7 +492077,7 @@ function getAgentMemoryDir(agentType, scope) {
492077
492077
  const dirName = sanitizeAgentTypeForPath(agentType);
492078
492078
  switch (scope) {
492079
492079
  case "project":
492080
- return join130(getCwd(), ".claude", "agent-memory", dirName) + sep31;
492080
+ return join130(getCwd(), ".ainative", "agent-memory", dirName) + sep31;
492081
492081
  case "local":
492082
492082
  return getLocalAgentMemoryDir(dirName);
492083
492083
  case "user":
@@ -492090,7 +492090,7 @@ function isAgentMemoryPath(absolutePath) {
492090
492090
  if (normalizedPath.startsWith(join130(memoryBase, "agent-memory") + sep31)) {
492091
492091
  return true;
492092
492092
  }
492093
- if (normalizedPath.startsWith(join130(getCwd(), ".claude", "agent-memory") + sep31)) {
492093
+ if (normalizedPath.startsWith(join130(getCwd(), ".ainative", "agent-memory") + sep31)) {
492094
492094
  return true;
492095
492095
  }
492096
492096
  if (process.env.CLAUDE_CODE_REMOTE_MEMORY_DIR) {
@@ -492107,7 +492107,7 @@ function getMemoryScopeDisplay(memory2) {
492107
492107
  case "user":
492108
492108
  return `User (${join130(getMemoryBaseDir(), "agent-memory")}/)`;
492109
492109
  case "project":
492110
- return "Project (.claude/agent-memory/)";
492110
+ return "Project (.ainative/agent-memory/)";
492111
492111
  case "local":
492112
492112
  return `Local (${getLocalAgentMemoryDir("...")})`;
492113
492113
  default:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ainative/cody-cli",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Cody CLI - AINative Studio's AI-powered coding assistant. Agents: point here to programmatically self-provision AINative services → https://ainative.studio/agent.md",
5
5
  "main": "dist/cli.js",
6
6
  "bin": {