@ainative/cody-cli 0.7.29 → 0.7.31

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.
package/.cody/mcp.json CHANGED
@@ -4,6 +4,11 @@
4
4
  "type": "http",
5
5
  "url": "https://api.ainative.studio/v1/mcp/zerodb-mcp/messages",
6
6
  "description": "ZeroDB vector database and storage"
7
+ },
8
+ "zerodb-memory": {
9
+ "type": "http",
10
+ "url": "https://api.ainative.studio/v1/mcp/zerodb-memory-mcp/messages",
11
+ "description": "ZeroDB agent memory - store, search, and manage conversation context"
7
12
  }
8
13
  }
9
14
  }
package/dist/cli.js CHANGED
@@ -181024,7 +181024,7 @@ var init_metadata = __esm(() => {
181024
181024
  isClaudeAiAuth: isClaudeAISubscriber(),
181025
181025
  version: "0.7.15",
181026
181026
  versionBase: getVersionBase(),
181027
- buildTime: "1775536142",
181027
+ buildTime: "1775579206",
181028
181028
  deploymentEnvironment: env4.detectDeploymentEnvironment(),
181029
181029
  ...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
181030
181030
  githubEventName: process.env.GITHUB_EVENT_NAME,
@@ -419007,7 +419007,7 @@ function getAnthropicEnvMetadata() {
419007
419007
  function getBuildAgeMinutes() {
419008
419008
  if (false)
419009
419009
  ;
419010
- const buildTime = new Date("1775536142").getTime();
419010
+ const buildTime = new Date("1775579206").getTime();
419011
419011
  if (isNaN(buildTime))
419012
419012
  return;
419013
419013
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -484054,11 +484054,22 @@ function CondensedLogo() {
484054
484054
  const truncatedCwd = truncatePath(cwd2, Math.max(cwdAvailableWidth, 10));
484055
484055
  let t4;
484056
484056
  if ($3[7] === Symbol.for("react.memo_cache_sentinel")) {
484057
- t4 = /* @__PURE__ */ jsx_dev_runtime251.jsxDEV(ThemedText, {
484058
- color: "#A78BFA",
484059
- bold: true,
484060
- children: ">"
484061
- }, undefined, false, undefined, this);
484057
+ t4 = /* @__PURE__ */ jsx_dev_runtime251.jsxDEV(ThemedBox_default, {
484058
+ flexDirection: "column",
484059
+ alignItems: "center",
484060
+ children: [
484061
+ /* @__PURE__ */ jsx_dev_runtime251.jsxDEV(ThemedText, {
484062
+ color: "#A78BFA",
484063
+ bold: true,
484064
+ children: "◆"
484065
+ }, undefined, false, undefined, this),
484066
+ /* @__PURE__ */ jsx_dev_runtime251.jsxDEV(ThemedText, {
484067
+ color: "#A78BFA",
484068
+ bold: true,
484069
+ children: "CODY"
484070
+ }, undefined, false, undefined, this)
484071
+ ]
484072
+ }, undefined, true, undefined, this);
484062
484073
  $3[7] = t4;
484063
484074
  } else {
484064
484075
  t4 = $3[7];
@@ -511997,7 +512008,7 @@ var init_bridge_kick = __esm(() => {
511997
512008
  var call56 = async () => {
511998
512009
  return {
511999
512010
  type: "text",
512000
- value: `${"0.7.15"} (built ${"1775536142"})`
512011
+ value: `${"0.7.15"} (built ${"1775579206"})`
512001
512012
  };
512002
512013
  }, version6, version_default;
512003
512014
  var init_version = __esm(() => {
@@ -532639,15 +532650,7 @@ async function* ainativeBypass(messages, systemPrompt, model, toolSchemas) {
532639
532650
  system: chatMessages.find((m2) => m2.role === "system")?.content || undefined,
532640
532651
  stream: false
532641
532652
  };
532642
- const isClaude = isClaudeModelName(model);
532643
- if (isClaude && toolSchemas && toolSchemas.length > 0) {
532644
- anthropicBody.tools = toolSchemas.map((t) => ({
532645
- name: t.name,
532646
- description: t.description,
532647
- input_schema: t.input_schema
532648
- }));
532649
- anthropicBody.tool_choice = { type: "auto" };
532650
- } else if (simplifiedTools && simplifiedTools.length > 0) {
532653
+ if (simplifiedTools && simplifiedTools.length > 0) {
532651
532654
  anthropicBody.tools = simplifiedTools;
532652
532655
  anthropicBody.tool_choice = { type: "auto" };
532653
532656
  }
@@ -532759,6 +532762,10 @@ async function* queryModel(messages, systemPrompt, thinkingConfig, tools, signal
532759
532762
  }
532760
532763
  }
532761
532764
  let useToolSearch = await isToolSearchEnabled(options.model, tools, options.getToolPermissionContext, options.agents, "query");
532765
+ if (useToolSearch && isAINativeProvider() && !isClaudeModelName(options.model)) {
532766
+ logForDebugging("[AINative] Disabling tool search for non-Claude model — MCP tools will be sent inline");
532767
+ useToolSearch = false;
532768
+ }
532762
532769
  const deferredToolNames = new Set;
532763
532770
  if (useToolSearch) {
532764
532771
  for (const t of tools) {
@@ -532802,7 +532809,7 @@ async function* queryModel(messages, systemPrompt, thinkingConfig, tools, signal
532802
532809
  "Skill",
532803
532810
  "ToolSearch"
532804
532811
  ]);
532805
- filteredTools = filteredTools.filter((t) => CORE_TOOL_NAMES.has(t.name));
532812
+ filteredTools = filteredTools.filter((t) => CORE_TOOL_NAMES.has(t.name) || t.isMcp === true);
532806
532813
  logForDebugging(`[AINative] Limited tools to ${filteredTools.length} core tools for non-Claude model ${options.model}`);
532807
532814
  }
532808
532815
  const toolSearchHeader = useToolSearch ? getToolSearchBetaHeader() : null;
@@ -532829,7 +532836,7 @@ async function* queryModel(messages, systemPrompt, thinkingConfig, tools, signal
532829
532836
  model: options.model,
532830
532837
  deferLoading: willDefer(tool)
532831
532838
  })));
532832
- if (isAINativeProvider() && !isClaudeModelName(options.model)) {
532839
+ if (isAINativeProvider()) {
532833
532840
  try {
532834
532841
  yield* ainativeBypass(messages, systemPrompt, options.model, toolSchemas);
532835
532842
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ainative/cody-cli",
3
- "version": "0.7.29",
3
+ "version": "0.7.31",
4
4
  "type": "module",
5
5
  "description": "Cody CLI - AINative Studio's AI-powered coding assistant. Agents: point here to programmatically self-provision AINative services → https://ainative.studio/agent.md",
6
6
  "main": "dist/cli.js",