@downcity/agent 1.1.337 → 1.1.338
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/bin/index.d.ts +1 -1
- package/bin/index.d.ts.map +1 -1
- package/bin/index.js.map +1 -1
- package/bin/session/Session.d.ts.map +1 -1
- package/bin/session/Session.js +23 -2
- package/bin/session/Session.js.map +1 -1
- package/bin/types/agent/SessionTypes.d.ts +9 -1
- package/bin/types/agent/SessionTypes.d.ts.map +1 -1
- package/bin/types/session/SessionMutation.d.ts +15 -2
- package/bin/types/session/SessionMutation.d.ts.map +1 -1
- package/bin/types/session/SessionMutation.js.map +1 -1
- package/bin/workspace/WorkspacePaths.d.ts +0 -22
- package/bin/workspace/WorkspacePaths.d.ts.map +1 -1
- package/bin/workspace/WorkspacePaths.js +2 -30
- package/bin/workspace/WorkspacePaths.js.map +1 -1
- package/package.json +1 -1
- package/scripts/session-config-turn-boundary.test.mjs +9 -0
- package/src/index.ts +2 -0
- package/src/session/Session.ts +25 -1
- package/src/types/agent/SessionTypes.ts +10 -1
- package/src/types/session/SessionMutation.ts +17 -2
- package/src/workspace/WorkspacePaths.ts +2 -33
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* Workspace 项目路径规则模块。
|
|
3
3
|
*
|
|
4
4
|
* 职责说明(中文)
|
|
5
|
-
* -
|
|
5
|
+
* - 统一管理 Workspace 根目录下的 `.downcity` 运行时状态路径。
|
|
6
6
|
* - 负责把“路径协议”集中到一个模块,避免各领域模块自行拼接字符串。
|
|
7
7
|
* - 为初始化、日志、任务与调试文件等非 Store 子系统提供一致的路径入口。
|
|
8
8
|
*
|
|
9
9
|
* 边界说明(中文)
|
|
10
10
|
* - 这里只负责路径计算,不负责目录创建、文件读写或存在性校验。
|
|
11
|
-
* -
|
|
11
|
+
* - 这里描述的是 Workspace 约定,不涉及 Agent Memory 或平台级全局目录布局。
|
|
12
12
|
*/
|
|
13
13
|
import path from "path";
|
|
14
14
|
|
|
@@ -36,37 +36,6 @@ export function get_cache_dir_path(cwd: string): string {
|
|
|
36
36
|
return path.join(get_downcity_dir_path(cwd), ".cache");
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
/**
|
|
40
|
-
* 返回 profile 运行态目录路径。
|
|
41
|
-
*
|
|
42
|
-
* 关键点(中文)
|
|
43
|
-
* - 初始化流程会统一创建该目录,并在其中写入 profile 相关文件。
|
|
44
|
-
* - 单独保留目录级 API,避免调用方散落 `path.join(..., "profile")`。
|
|
45
|
-
*/
|
|
46
|
-
export function get_downcity_profile_dir_path(cwd: string): string {
|
|
47
|
-
return path.join(get_downcity_dir_path(cwd), "profile");
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* 返回 profile 主记忆文件路径。
|
|
52
|
-
*
|
|
53
|
-
* 关键点(中文)
|
|
54
|
-
* - 该文件通常承载主画像或核心长期 profile 信息。
|
|
55
|
-
*/
|
|
56
|
-
export function get_downcity_profile_primary_path(cwd: string): string {
|
|
57
|
-
return path.join(get_downcity_profile_dir_path(cwd), "Primary.md");
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* 返回 profile 补充记忆文件路径。
|
|
62
|
-
*
|
|
63
|
-
* 关键点(中文)
|
|
64
|
-
* - 该文件用于存放不适合进入主 profile 的补充材料。
|
|
65
|
-
*/
|
|
66
|
-
export function get_downcity_profile_other_path(cwd: string): string {
|
|
67
|
-
return path.join(get_downcity_profile_dir_path(cwd), "other.md");
|
|
68
|
-
}
|
|
69
|
-
|
|
70
39
|
/**
|
|
71
40
|
* Plugin Schedule JSONL 路径。
|
|
72
41
|
*
|