@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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentic-senior-core",
3
- "version": "6.2.0",
3
+ "version": "6.2.1",
4
4
  "description": "Universal AI coding rules. Because your AI writes code like it gets paid by the line.",
5
5
  "contextFileName": "rules/agentic-senior-core.md",
6
6
  "rules": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentic-senior-core",
3
- "version": "6.2.0",
3
+ "version": "6.2.1",
4
4
  "description": "Universal AI coding rules. Write code like a staff engineer.",
5
5
  "author": "fatidaprilian",
6
6
  "license": "MIT",
@@ -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 || path.join(cwd, '.agent-context', 'state', 'token-saver', 'tee')
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
- return path.resolve(cwd, '.agent-context', 'state', 'token-saver', 'tee');
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ryuenn3123/agentic-senior-core",
3
- "version": "6.2.0",
3
+ "version": "6.2.1",
4
4
  "type": "module",
5
5
  "description": "Agentic Senior Core: Universal AI coding rules and workflows. Write code like a staff engineer, not a junior.",
6
6
  "bin": {
package/plugin.yaml CHANGED
@@ -1,5 +1,5 @@
1
1
  name: agentic-senior-core
2
- version: 6.2.0
2
+ version: 6.2.1
3
3
  description: Universal AI coding rules. Write code like a staff engineer.
4
4
  author: fatidaprilian
5
5
  provides_hooks: