open-agents-ai 0.187.111 → 0.187.113
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 +19 -16
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -278291,7 +278291,8 @@ function hitTestHeaderButton(row, col, termWidth) {
|
|
|
278291
278291
|
if (_updateBadgeActive && row === 1 && col >= _updateBadgeCol && col < _updateBadgeCol + _updateBadgeLen) {
|
|
278292
278292
|
return "/update";
|
|
278293
278293
|
}
|
|
278294
|
-
|
|
278294
|
+
const hdrRow = layout().headerContent;
|
|
278295
|
+
if (row === hdrRow) {
|
|
278295
278296
|
if (col <= 3)
|
|
278296
278297
|
return "header-prev";
|
|
278297
278298
|
if (col >= termWidth - 3)
|
|
@@ -278317,6 +278318,7 @@ var SEL_BG, SEL_FG, SEL_START, SEL_END, TextSelection, _clipboardAutoInstallAtte
|
|
|
278317
278318
|
var init_text_selection = __esm({
|
|
278318
278319
|
"packages/cli/dist/tui/text-selection.js"() {
|
|
278319
278320
|
"use strict";
|
|
278321
|
+
init_layout2();
|
|
278320
278322
|
SEL_BG = 178;
|
|
278321
278323
|
SEL_FG = 30;
|
|
278322
278324
|
SEL_START = `\x1B[${SEL_FG}m\x1B[48;5;${SEL_BG}m`;
|
|
@@ -310120,18 +310122,18 @@ ${opts.systemPromptAddition}` : `Working directory: ${repoRoot}`;
|
|
|
310120
310122
|
}
|
|
310121
310123
|
statusBar.refreshHeaderContent();
|
|
310122
310124
|
if (isResumed) {
|
|
310123
|
-
statusBar.beginContentWrite();
|
|
310124
310125
|
const { getLastTaskSummary: getLastTaskSummary2 } = (init_oa_directory(), __toCommonJS(oa_directory_exports));
|
|
310125
310126
|
const taskSummary = hasTaskToResume ? getLastTaskSummary2(repoRoot) : null;
|
|
310126
310127
|
const resumeMsg = taskSummary ? `v${version4} \u2014 picking up: ${taskSummary}` : `Updated to v${version4}.`;
|
|
310127
|
-
|
|
310128
|
-
|
|
310129
|
-
|
|
310130
|
-
|
|
310131
|
-
|
|
310132
|
-
|
|
310133
|
-
|
|
310134
|
-
|
|
310128
|
+
writeContent(() => {
|
|
310129
|
+
renderInfo(resumeMsg);
|
|
310130
|
+
const resumePrompt = buildContextRestorePrompt(repoRoot);
|
|
310131
|
+
if (resumePrompt) {
|
|
310132
|
+
restoredSessionContext = resumePrompt;
|
|
310133
|
+
const info = loadSessionContext(repoRoot);
|
|
310134
|
+
renderInfo(`Context restored from ${info?.entries.length ?? 0} session(s).`);
|
|
310135
|
+
}
|
|
310136
|
+
});
|
|
310135
310137
|
}
|
|
310136
310138
|
setContentWriteHook({
|
|
310137
310139
|
begin: () => statusBar.beginContentWrite(),
|
|
@@ -310141,6 +310143,11 @@ ${opts.systemPromptAddition}` : `Working directory: ${repoRoot}`;
|
|
|
310141
310143
|
redirect: () => isNeovimActive() ? writeToNeovimOutput : null
|
|
310142
310144
|
});
|
|
310143
310145
|
}
|
|
310146
|
+
setContentWriteHook({
|
|
310147
|
+
begin: () => statusBar.beginContentWrite(),
|
|
310148
|
+
end: () => statusBar.endContentWrite(),
|
|
310149
|
+
redirect: () => isNeovimActive() ? writeToNeovimOutput : null
|
|
310150
|
+
});
|
|
310144
310151
|
let resolvedContextWindowSize = 0;
|
|
310145
310152
|
queryContextSize(config.backendUrl, config.model, config.apiKey).then((ctxSize) => {
|
|
310146
310153
|
if (ctxSize) {
|
|
@@ -310279,16 +310286,12 @@ ${opts.systemPromptAddition}` : `Working directory: ${repoRoot}`;
|
|
|
310279
310286
|
voiceEngine.toggle().then((msg) => {
|
|
310280
310287
|
statusBar.setVoiceStatus(voiceEngine.enabled, voiceEngine.modelId || "");
|
|
310281
310288
|
if (statusBar?.isActive && !statusBar.isStreaming) {
|
|
310282
|
-
|
|
310283
|
-
renderInfo(msg);
|
|
310284
|
-
statusBar.endContentWrite();
|
|
310289
|
+
writeContent(() => renderInfo(msg));
|
|
310285
310290
|
}
|
|
310286
310291
|
}).catch((err) => {
|
|
310287
310292
|
const msg = err instanceof Error ? err.message : String(err);
|
|
310288
310293
|
if (statusBar?.isActive && !statusBar.isStreaming) {
|
|
310289
|
-
|
|
310290
|
-
renderWarning(`Voice: ${msg.slice(0, 80)}`);
|
|
310291
|
-
statusBar.endContentWrite();
|
|
310294
|
+
writeContent(() => renderWarning(`Voice: ${msg.slice(0, 80)}`));
|
|
310292
310295
|
}
|
|
310293
310296
|
});
|
|
310294
310297
|
}
|
package/package.json
CHANGED