open-agents-ai 0.138.28 → 0.138.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/index.js +5 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -39768,15 +39768,10 @@ if __name__ == '__main__':
|
|
|
39768
39768
|
if (wavData.length > 44) {
|
|
39769
39769
|
const sampleRate = wavData.readUInt32LE(24);
|
|
39770
39770
|
const samples = new Int16Array(wavData.buffer, wavData.byteOffset + 44, (wavData.length - 44) / 2);
|
|
39771
|
-
const fadeInSamples = Math.min(Math.round(sampleRate * 0.
|
|
39771
|
+
const fadeInSamples = Math.min(Math.round(sampleRate * 0.35), samples.length);
|
|
39772
39772
|
for (let i = 0; i < fadeInSamples; i++) {
|
|
39773
39773
|
samples[i] = Math.round(samples[i] * (i / fadeInSamples));
|
|
39774
39774
|
}
|
|
39775
|
-
const fadeOutSamples = Math.min(Math.round(sampleRate * 0.05), samples.length);
|
|
39776
|
-
const fadeOutStart = samples.length - fadeOutSamples;
|
|
39777
|
-
for (let i = 0; i < fadeOutSamples; i++) {
|
|
39778
|
-
samples[fadeOutStart + i] = Math.round(samples[fadeOutStart + i] * (1 - i / fadeOutSamples));
|
|
39779
|
-
}
|
|
39780
39775
|
if (volume !== 1) {
|
|
39781
39776
|
for (let i = 0; i < samples.length; i++) {
|
|
39782
39777
|
samples[i] = Math.round(samples[i] * volume);
|
|
@@ -39834,7 +39829,7 @@ if __name__ == '__main__':
|
|
|
39834
39829
|
}
|
|
39835
39830
|
}
|
|
39836
39831
|
await this.playWav(wavPath);
|
|
39837
|
-
await this.sleep(
|
|
39832
|
+
await this.sleep(150);
|
|
39838
39833
|
try {
|
|
39839
39834
|
unlinkSync8(wavPath);
|
|
39840
39835
|
} catch {
|
|
@@ -50793,7 +50788,8 @@ var init_status_bar = __esm({
|
|
|
50793
50788
|
_processing = false;
|
|
50794
50789
|
_brailleSpinner = new BrailleSpinner();
|
|
50795
50790
|
/** Current dynamic footer height (min 5: buffer + topSep + 1 input line + bottomSep + metrics) */
|
|
50796
|
-
_currentFooterHeight =
|
|
50791
|
+
_currentFooterHeight = 3;
|
|
50792
|
+
// input(1) + braille(1) + metrics(1)
|
|
50797
50793
|
/** Timestamp when streaming started (for token rate calculation) */
|
|
50798
50794
|
_streamStartTime = 0;
|
|
50799
50795
|
/** Current package version (shown in metrics row, rightmost) */
|
|
@@ -54046,6 +54042,7 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
|
|
|
54046
54042
|
const prompt = activeTask ? activeTask.runner.isPaused ? pausedPrompt : activePrompt : idlePrompt;
|
|
54047
54043
|
rl.setPrompt(prompt);
|
|
54048
54044
|
if (statusBar.isActive) {
|
|
54045
|
+
statusBar.positionAtInput();
|
|
54049
54046
|
statusBar.setPromptText(prompt, 2);
|
|
54050
54047
|
} else {
|
|
54051
54048
|
rl.prompt();
|
package/package.json
CHANGED