open-agents-ai 0.119.0 → 0.121.0
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/index.js +12 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14099,7 +14099,7 @@ import { readFileSync, writeFileSync, existsSync, mkdirSync, unlinkSync, readdir
|
|
|
14099
14099
|
import { join } from 'node:path';
|
|
14100
14100
|
|
|
14101
14101
|
const nexusDir = process.argv[2];
|
|
14102
|
-
const agentName = process.argv[3] || '
|
|
14102
|
+
const agentName = process.argv[3] || ('oa-node-' + process.pid);
|
|
14103
14103
|
const agentType = process.argv[4] || 'general';
|
|
14104
14104
|
const cmdFile = join(nexusDir, 'cmd.json');
|
|
14105
14105
|
const respFile = join(nexusDir, 'resp.json');
|
|
@@ -16183,7 +16183,7 @@ process.on('SIGINT', () => process.emit('SIGTERM'));
|
|
|
16183
16183
|
if (!pid) {
|
|
16184
16184
|
try {
|
|
16185
16185
|
await this.doConnect({
|
|
16186
|
-
agent_name: "
|
|
16186
|
+
agent_name: "oa-" + hostname().slice(0, 12) + "-" + process.pid,
|
|
16187
16187
|
agent_type: "general"
|
|
16188
16188
|
});
|
|
16189
16189
|
pid = this.getDaemonPid();
|
|
@@ -16403,7 +16403,7 @@ process.on('SIGINT', () => process.emit('SIGTERM'));
|
|
|
16403
16403
|
await this.ensureWallet();
|
|
16404
16404
|
const daemonPath = join36(this.nexusDir, "nexus-daemon.mjs");
|
|
16405
16405
|
await writeFile17(daemonPath, DAEMON_SCRIPT);
|
|
16406
|
-
const agentName = args.agent_name || "
|
|
16406
|
+
const agentName = args.agent_name || "oa-" + hostname().slice(0, 12) + "-" + process.pid;
|
|
16407
16407
|
const agentType = args.agent_type || "general";
|
|
16408
16408
|
const nodePaths = [nodeModulesDir];
|
|
16409
16409
|
try {
|
|
@@ -52710,6 +52710,7 @@ async function startInteractive(config, repoPath) {
|
|
|
52710
52710
|
let currentStyle = PRESET_NAMES.includes(savedSettings.style) ? savedSettings.style : "balanced";
|
|
52711
52711
|
let deepContextEnabled = savedSettings.deepContext ?? false;
|
|
52712
52712
|
let flowEnabled = savedSettings.flow === true;
|
|
52713
|
+
let cohereEnabled = false;
|
|
52713
52714
|
let commandsMode = savedSettings.commandsMode ?? "manual";
|
|
52714
52715
|
if (savedSettings.emojis !== void 0)
|
|
52715
52716
|
setEmojisEnabled(savedSettings.emojis);
|
|
@@ -53589,6 +53590,14 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
|
|
|
53589
53590
|
flowEnabled = !flowEnabled;
|
|
53590
53591
|
return flowEnabled;
|
|
53591
53592
|
},
|
|
53593
|
+
cohereToggle() {
|
|
53594
|
+
cohereEnabled = !cohereEnabled;
|
|
53595
|
+
statusBar.setCohereActive(cohereEnabled);
|
|
53596
|
+
return cohereEnabled;
|
|
53597
|
+
},
|
|
53598
|
+
isCohere() {
|
|
53599
|
+
return cohereEnabled;
|
|
53600
|
+
},
|
|
53592
53601
|
getCommandsMode() {
|
|
53593
53602
|
return commandsMode;
|
|
53594
53603
|
},
|
package/package.json
CHANGED