omnikey-cli 1.5.0 → 1.5.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.
|
@@ -234,7 +234,7 @@ async function enforceSessionCap(subscriptionId, logger) {
|
|
|
234
234
|
logger.error('Failed to enforce agent session cap', { subscriptionId, error: err });
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
|
-
async function getOrCreateSession(sessionId, subscription, platform, log, isCronJob = false) {
|
|
237
|
+
async function getOrCreateSession(sessionId, subscription, platform, log, isCronJob = false, groupName) {
|
|
238
238
|
// 1. Try to resume from a persisted DB record.
|
|
239
239
|
try {
|
|
240
240
|
const dbSession = await agentSession_1.AgentSession.findOne({
|
|
@@ -310,6 +310,7 @@ ${prompt}
|
|
|
310
310
|
historyJson: JSON.stringify(entry.history),
|
|
311
311
|
turns: 0,
|
|
312
312
|
lastActiveAt: new Date(),
|
|
313
|
+
groupName: groupName ?? null,
|
|
313
314
|
},
|
|
314
315
|
});
|
|
315
316
|
if (!created) {
|
|
@@ -349,7 +350,7 @@ ${prompt}
|
|
|
349
350
|
};
|
|
350
351
|
}
|
|
351
352
|
async function runAgentTurnInternal(sessionId, subscription, clientMessage, send, log, options) {
|
|
352
|
-
const { sessionState: session, hasStoredPrompt } = await getOrCreateSession(sessionId, subscription, clientMessage.platform, log, options?.isCronJob);
|
|
353
|
+
const { sessionState: session, hasStoredPrompt } = await getOrCreateSession(sessionId, subscription, clientMessage.platform, log, options?.isCronJob, clientMessage.group_name);
|
|
353
354
|
// Count this call as one agent iteration.
|
|
354
355
|
session.turns += 1;
|
|
355
356
|
log.info('Starting agent turn', {
|
package/backend-dist/index.js
CHANGED
|
@@ -78,8 +78,8 @@ app.get('/macos/appcast', (req, res) => {
|
|
|
78
78
|
const appcastUrl = `${baseUrl}/macos/appcast`;
|
|
79
79
|
// These should match the values embedded into the macOS app
|
|
80
80
|
// Info.plist in macOS/build_release_dmg.sh.
|
|
81
|
-
const bundleVersion = '
|
|
82
|
-
const shortVersion = '1.0.
|
|
81
|
+
const bundleVersion = '37';
|
|
82
|
+
const shortVersion = '1.0.36';
|
|
83
83
|
const xml = `<?xml version="1.0" encoding="utf-8"?>
|
|
84
84
|
<rss version="2.0"
|
|
85
85
|
xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle"
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public",
|
|
5
5
|
"registry": "https://registry.npmjs.org/"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.5.
|
|
7
|
+
"version": "1.5.1",
|
|
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",
|