omnikey-cli 1.0.18 → 1.0.19
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.
|
@@ -105,6 +105,21 @@ async function runToolLoop(initialResult, session, sessionId, send, log, tools,
|
|
|
105
105
|
});
|
|
106
106
|
await onUsage(result);
|
|
107
107
|
}
|
|
108
|
+
// If we exhausted the iteration cap and the model still wants to call tools,
|
|
109
|
+
// force a final text response by calling again without tools.
|
|
110
|
+
if (result.finish_reason === 'tool_calls') {
|
|
111
|
+
log.warn('Tool loop hit MAX_TOOL_ITERATIONS; forcing final conclusion', { sessionId });
|
|
112
|
+
session.history.push(result.assistantMessage);
|
|
113
|
+
session.history.push({
|
|
114
|
+
role: 'user',
|
|
115
|
+
content: 'You have reached the maximum number of tool calls. Based on all the information gathered so far, provide a single, final, concise answer. Do not call any more tools.',
|
|
116
|
+
});
|
|
117
|
+
result = await ai_client_1.aiClient.complete(aiModel, session.history, {
|
|
118
|
+
tools: undefined,
|
|
119
|
+
temperature: 0.2,
|
|
120
|
+
});
|
|
121
|
+
await onUsage(result);
|
|
122
|
+
}
|
|
108
123
|
log.info('Finished reasoning and tool calls: ', {
|
|
109
124
|
reason: result.finish_reason,
|
|
110
125
|
});
|
package/backend-dist/index.js
CHANGED
|
@@ -64,8 +64,8 @@ app.get('/macos/appcast', (req, res) => {
|
|
|
64
64
|
const appcastUrl = `${baseUrl}/macos/appcast`;
|
|
65
65
|
// These should match the values embedded into the macOS app
|
|
66
66
|
// Info.plist in macOS/build_release_dmg.sh.
|
|
67
|
-
const bundleVersion = '
|
|
68
|
-
const shortVersion = '1.0.
|
|
67
|
+
const bundleVersion = '16';
|
|
68
|
+
const shortVersion = '1.0.15';
|
|
69
69
|
const xml = `<?xml version="1.0" encoding="utf-8"?>
|
|
70
70
|
<rss version="2.0"
|
|
71
71
|
xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle"
|
|
@@ -93,7 +93,7 @@ app.get('/macos/appcast', (req, res) => {
|
|
|
93
93
|
// ── Windows distribution endpoints ───────────────────────────────────────────
|
|
94
94
|
// These should match the values in windows/OmniKey.Windows.csproj
|
|
95
95
|
// <Version> and windows/build_release_zip.ps1 $APP_VERSION.
|
|
96
|
-
const WIN_VERSION = '1.
|
|
96
|
+
const WIN_VERSION = '1.3';
|
|
97
97
|
const WIN_ZIP_FILENAME = 'OmniKeyAI-windows-win-x64.zip';
|
|
98
98
|
const WIN_ZIP_PATH = path_1.default.join(process.cwd(), 'windows', WIN_ZIP_FILENAME);
|
|
99
99
|
// Serves the pre-built ZIP produced by windows/build_release_zip.ps1.
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public",
|
|
5
5
|
"registry": "https://registry.npmjs.org/"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.0.
|
|
7
|
+
"version": "1.0.19",
|
|
8
8
|
"description": "CLI for onboarding users to Omnikey AI and configuring OPENAI_API_KEY. Use Yarn for install/build.",
|
|
9
9
|
"engines": {
|
|
10
10
|
"node": ">=14.0.0",
|