@ainative/cody-cli 0.7.28 → 0.7.29
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/dist/cli.js +13 -5
- package/package.json +1 -1
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: "
|
|
181027
|
+
buildTime: "1775536142",
|
|
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("
|
|
419010
|
+
const buildTime = new Date("1775536142").getTime();
|
|
419011
419011
|
if (isNaN(buildTime))
|
|
419012
419012
|
return;
|
|
419013
419013
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -511997,7 +511997,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
511997
511997
|
var call56 = async () => {
|
|
511998
511998
|
return {
|
|
511999
511999
|
type: "text",
|
|
512000
|
-
value: `${"0.7.15"} (built ${"
|
|
512000
|
+
value: `${"0.7.15"} (built ${"1775536142"})`
|
|
512001
512001
|
};
|
|
512002
512002
|
}, version6, version_default;
|
|
512003
512003
|
var init_version = __esm(() => {
|
|
@@ -532639,7 +532639,15 @@ async function* ainativeBypass(messages, systemPrompt, model, toolSchemas) {
|
|
|
532639
532639
|
system: chatMessages.find((m2) => m2.role === "system")?.content || undefined,
|
|
532640
532640
|
stream: false
|
|
532641
532641
|
};
|
|
532642
|
-
|
|
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) {
|
|
532643
532651
|
anthropicBody.tools = simplifiedTools;
|
|
532644
532652
|
anthropicBody.tool_choice = { type: "auto" };
|
|
532645
532653
|
}
|
|
@@ -532821,7 +532829,7 @@ async function* queryModel(messages, systemPrompt, thinkingConfig, tools, signal
|
|
|
532821
532829
|
model: options.model,
|
|
532822
532830
|
deferLoading: willDefer(tool)
|
|
532823
532831
|
})));
|
|
532824
|
-
if (isAINativeProvider()) {
|
|
532832
|
+
if (isAINativeProvider() && !isClaudeModelName(options.model)) {
|
|
532825
532833
|
try {
|
|
532826
532834
|
yield* ainativeBypass(messages, systemPrompt, options.model, toolSchemas);
|
|
532827
532835
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ainative/cody-cli",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.29",
|
|
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",
|