@ryuenn3123/agentic-senior-core 6.2.0 → 6.2.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.
package/gemini-extension.json
CHANGED
|
@@ -3,6 +3,7 @@ import path from 'node:path';
|
|
|
3
3
|
|
|
4
4
|
import { runAscx } from './runtime.mjs';
|
|
5
5
|
import { estimateOutputTokens } from './token-estimate.mjs';
|
|
6
|
+
import { getDefaultTeeDirectory } from './tee-writer.mjs';
|
|
6
7
|
|
|
7
8
|
function combineOutput(stdout, stderr) {
|
|
8
9
|
return [stdout, stderr].filter(Boolean).join('\n');
|
|
@@ -115,7 +116,7 @@ async function evaluateFixture(fixtureEntry, options) {
|
|
|
115
116
|
export async function evaluateAscxFixtures(fixtures, options = {}) {
|
|
116
117
|
const cwd = options.cwd || process.cwd();
|
|
117
118
|
const teeDirectoryPath = path.resolve(
|
|
118
|
-
options.teeDirectoryPath ||
|
|
119
|
+
options.teeDirectoryPath || getDefaultTeeDirectory(cwd)
|
|
119
120
|
);
|
|
120
121
|
const results = [];
|
|
121
122
|
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import fs from 'node:fs/promises';
|
|
2
|
+
import { existsSync } from 'node:fs';
|
|
2
3
|
import path from 'node:path';
|
|
4
|
+
import os from 'node:os';
|
|
3
5
|
|
|
4
6
|
export const MAX_TEE_FILES = 20;
|
|
5
7
|
|
|
@@ -12,7 +14,11 @@ function sanitizeFileNamePart(rawValue) {
|
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
export function getDefaultTeeDirectory(cwd = process.cwd()) {
|
|
15
|
-
|
|
17
|
+
const localLegacyDir = path.resolve(cwd, '.agent-context', 'state', 'token-saver', 'tee');
|
|
18
|
+
if (existsSync(localLegacyDir)) {
|
|
19
|
+
return localLegacyDir;
|
|
20
|
+
}
|
|
21
|
+
return path.join(os.homedir(), '.asc', 'state', 'token-saver', 'tee');
|
|
16
22
|
}
|
|
17
23
|
|
|
18
24
|
async function sweepOldTeeFiles(directoryPath, maxFiles = MAX_TEE_FILES) {
|
|
@@ -60,4 +66,3 @@ export async function writeRawTeeFile({
|
|
|
60
66
|
|
|
61
67
|
return teeFilePath;
|
|
62
68
|
}
|
|
63
|
-
|
package/package.json
CHANGED
package/plugin.yaml
CHANGED