mirror of
https://github.com/stablyai/orca.git
synced 2026-09-23 08:02:31 +00:00
* fix(memory): detach retained CI and terminal tails from oversized strings * fix(terminal): detach retained error and reattach string slices * fix(terminal): release oversized recent-output backing strings * fix(terminal): release backing strings held by PTY detectors * fix(memory): own bounded Claude background task labels * fix: detach retained terminal mode scan tails * fix: own retained plugin worker output strings * fix: own incomplete OSC 133 carry strings --------- Co-authored-by: m4air <m4air@Mac.localdomain> Co-authored-by: m4air <m4air@m4airs-MacBook-Air.local>
24 lines
691 B
JavaScript
24 lines
691 B
JavaScript
import { resolve } from 'node:path'
|
|
import { createRequire } from 'node:module'
|
|
import { defineConfig, mergeConfig } from 'vitest/config'
|
|
import baseConfig from '../../../config/vitest.config.ts'
|
|
|
|
const { loadSources } = createRequire(import.meta.url)('./sources.cjs')
|
|
const { before } = loadSources()
|
|
const sourcePath = resolve('src/main/plugins/plugin-worker-output-buffer.ts')
|
|
|
|
export default mergeConfig(
|
|
baseConfig,
|
|
defineConfig({
|
|
plugins: [
|
|
{
|
|
name: 'plugin-output-before-fix',
|
|
enforce: 'pre',
|
|
transform(_code, id) {
|
|
return resolve(id.split('?')[0]) === sourcePath ? { code: before, map: null } : undefined
|
|
}
|
|
}
|
|
]
|
|
})
|
|
)
|