teapot-coding-agent 0.35.2 → 0.35.4
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/agent/agent.js +16 -5
- package/package.json +1 -1
- package/public/assets/index--wQ12QcV.js +30 -0
- package/public/assets/index--wQ12QcV.js.map +1 -0
- package/public/assets/{shiki-CGVa5YzG.js → shiki-CKvYeMPD.js} +2 -2
- package/public/assets/{shiki-CGVa5YzG.js.map → shiki-CKvYeMPD.js.map} +1 -1
- package/public/index.html +1 -1
- package/public/assets/index-BsDZh_Eg.js +0 -30
- package/public/assets/index-BsDZh_Eg.js.map +0 -1
package/dist/agent/agent.js
CHANGED
|
@@ -1141,11 +1141,22 @@ export class Agent {
|
|
|
1141
1141
|
*/
|
|
1142
1142
|
get memoryFile() {
|
|
1143
1143
|
const perSession = path.join(this.opts.sessionDir, "memory.md");
|
|
1144
|
-
const
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1144
|
+
const parent = path.dirname(this.opts.sessionDir);
|
|
1145
|
+
/**
|
|
1146
|
+
* Agent-scoped when the session dir sits inside a `sessions/` ROOT, session-scoped otherwise.
|
|
1147
|
+
*
|
|
1148
|
+
* The previous test was `/-[0-9a-f]{6,}$/` against the basename — "looks like
|
|
1149
|
+
* `<agent>-<hex>`". MEASURED: `mkdtemp` suffixes are 6 alphanumerics, so ~0.2% of them are
|
|
1150
|
+
* all-hex and match. That made the memory file's LOCATION depend on a random temp name, which
|
|
1151
|
+
* is why a test asserting `read_memory(query)` failed in CI and passed locally: the fixture
|
|
1152
|
+
* `mems-AbCdEf` resolved to the agent-wide file, and a sibling test's notes were then in
|
|
1153
|
+
* scope.
|
|
1154
|
+
*
|
|
1155
|
+
* The structural fact is reliable: `Master.resolveSessionDir` always mints session dirs
|
|
1156
|
+
* inside its `sessions/` root, so a parent named `sessions` means "one level down from the
|
|
1157
|
+
* agent". A bare temp dir has no such parent and stays session-scoped.
|
|
1158
|
+
*/
|
|
1159
|
+
return path.basename(parent) === "sessions" ? path.join(parent, "memory.md") : perSession;
|
|
1149
1160
|
}
|
|
1150
1161
|
/** the pre-migration location, read once so notes are not lost on upgrade */
|
|
1151
1162
|
get legacyMemoryFile() {
|