@atlaswork/atlascode 0.1.132 → 0.1.134
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/CHANGELOG.md +4056 -0
- package/dist/atlasweb-carrier.json +1 -1
- package/dist/cli.js +12723 -12661
- package/dist/web-session-runtime/shared/index.d.ts +2 -0
- package/dist/web-session-runtime/shared/installRoot.d.ts +11 -0
- package/dist/web-session-runtime/shared/updateCache.d.ts +20 -0
- package/dist/web-session-runtime-execution/shared/index.d.ts +2 -0
- package/dist/web-session-runtime-execution/shared/installRoot.d.ts +11 -0
- package/dist/web-session-runtime-execution/shared/updateCache.d.ts +20 -0
- package/package.json +3 -2
|
@@ -44,3 +44,5 @@ export { SWARM_FIELDS_BY_TOOL, filterSwarmFieldsFromSchema, } from "./swarmSchem
|
|
|
44
44
|
export { type AgentRoleTemplate, registerAgentRoleTemplate, getAgentRoleTemplate, resetAgentRoleTemplates, type TeammatePromptParts, renderTeammatePrompt, } from "./agentRoleTemplates.js";
|
|
45
45
|
export { type TeammateContext, getTeammateContext, runWithTeammateContext, isInProcessTeammate, createTeammateContext, } from "./teammateContext.js";
|
|
46
46
|
export { getActiveProductDefinition, type ProductDefinition, } from "./ProductDefinition.js";
|
|
47
|
+
export { resolveInstallRootPackage, type InstallRootPackage, } from "./installRoot.js";
|
|
48
|
+
export { UPDATE_CHECK_CACHE_TTL_MS, createDiskUpdateCache, diskUpdateCache, getUpdateCachePath, isUpdateCacheFresh, type UpdateCacheEntry, type UpdateCachePort, } from "./updateCache.js";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface InstallRootPackage {
|
|
2
|
+
root: string;
|
|
3
|
+
name: string;
|
|
4
|
+
version: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* 解析安装根包(root/name/version;版本缺省 'unknown')。
|
|
8
|
+
* 定位失败(argv[1] 所在树无 package.json 祖先)→ null——调用方回落
|
|
9
|
+
* identity PACKAGE_NAME(dev/异常态保守回落,行为面显文)。
|
|
10
|
+
*/
|
|
11
|
+
export declare function resolveInstallRootPackage(): InstallRootPackage | null;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** 缓存条目(磁盘 JSON 形状;latest=null 表检查失败,亦缓存以免失败态反复打网)。 */
|
|
2
|
+
export interface UpdateCacheEntry {
|
|
3
|
+
latest: string | null;
|
|
4
|
+
checkedAtMs: number;
|
|
5
|
+
}
|
|
6
|
+
/** 缓存 port——抽象磁盘读写,测试注内存 fake(unit 无真盘)。 */
|
|
7
|
+
export interface UpdateCachePort {
|
|
8
|
+
read(): Promise<UpdateCacheEntry | null>;
|
|
9
|
+
write(entry: UpdateCacheEntry): Promise<void>;
|
|
10
|
+
}
|
|
11
|
+
/** 24h 磁盘缓存(低频版本检查,避免每次启动打 registry;B-1 缓存过期语义可测)。 */
|
|
12
|
+
export declare const UPDATE_CHECK_CACHE_TTL_MS: number;
|
|
13
|
+
/** 缓存文件路径(~/.atlas/update-check.json;dir 注入供测试/非常规 home)。 */
|
|
14
|
+
export declare function getUpdateCachePath(dir?: string): string;
|
|
15
|
+
/** 缓存新鲜判定(纯函数;B-1 缓存过期语义:now- checkedAtMs < TTL 才用缓存)。 */
|
|
16
|
+
export declare function isUpdateCacheFresh(checkedAtMs: number, nowMs: number, ttlMs?: number): boolean;
|
|
17
|
+
/** 真盘缓存 port(fs/promises 异步,autoUpdater.ts 同源 idiom;读/写失败 = 静默不阻塞)。 */
|
|
18
|
+
export declare function createDiskUpdateCache(dir?: string): UpdateCachePort;
|
|
19
|
+
/** 缺省真盘缓存 port(~/.atlas)。 */
|
|
20
|
+
export declare const diskUpdateCache: UpdateCachePort;
|
|
@@ -44,3 +44,5 @@ export { SWARM_FIELDS_BY_TOOL, filterSwarmFieldsFromSchema, } from "./swarmSchem
|
|
|
44
44
|
export { type AgentRoleTemplate, registerAgentRoleTemplate, getAgentRoleTemplate, resetAgentRoleTemplates, type TeammatePromptParts, renderTeammatePrompt, } from "./agentRoleTemplates.js";
|
|
45
45
|
export { type TeammateContext, getTeammateContext, runWithTeammateContext, isInProcessTeammate, createTeammateContext, } from "./teammateContext.js";
|
|
46
46
|
export { getActiveProductDefinition, type ProductDefinition, } from "./ProductDefinition.js";
|
|
47
|
+
export { resolveInstallRootPackage, type InstallRootPackage, } from "./installRoot.js";
|
|
48
|
+
export { UPDATE_CHECK_CACHE_TTL_MS, createDiskUpdateCache, diskUpdateCache, getUpdateCachePath, isUpdateCacheFresh, type UpdateCacheEntry, type UpdateCachePort, } from "./updateCache.js";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface InstallRootPackage {
|
|
2
|
+
root: string;
|
|
3
|
+
name: string;
|
|
4
|
+
version: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* 解析安装根包(root/name/version;版本缺省 'unknown')。
|
|
8
|
+
* 定位失败(argv[1] 所在树无 package.json 祖先)→ null——调用方回落
|
|
9
|
+
* identity PACKAGE_NAME(dev/异常态保守回落,行为面显文)。
|
|
10
|
+
*/
|
|
11
|
+
export declare function resolveInstallRootPackage(): InstallRootPackage | null;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** 缓存条目(磁盘 JSON 形状;latest=null 表检查失败,亦缓存以免失败态反复打网)。 */
|
|
2
|
+
export interface UpdateCacheEntry {
|
|
3
|
+
latest: string | null;
|
|
4
|
+
checkedAtMs: number;
|
|
5
|
+
}
|
|
6
|
+
/** 缓存 port——抽象磁盘读写,测试注内存 fake(unit 无真盘)。 */
|
|
7
|
+
export interface UpdateCachePort {
|
|
8
|
+
read(): Promise<UpdateCacheEntry | null>;
|
|
9
|
+
write(entry: UpdateCacheEntry): Promise<void>;
|
|
10
|
+
}
|
|
11
|
+
/** 24h 磁盘缓存(低频版本检查,避免每次启动打 registry;B-1 缓存过期语义可测)。 */
|
|
12
|
+
export declare const UPDATE_CHECK_CACHE_TTL_MS: number;
|
|
13
|
+
/** 缓存文件路径(~/.atlas/update-check.json;dir 注入供测试/非常规 home)。 */
|
|
14
|
+
export declare function getUpdateCachePath(dir?: string): string;
|
|
15
|
+
/** 缓存新鲜判定(纯函数;B-1 缓存过期语义:now- checkedAtMs < TTL 才用缓存)。 */
|
|
16
|
+
export declare function isUpdateCacheFresh(checkedAtMs: number, nowMs: number, ttlMs?: number): boolean;
|
|
17
|
+
/** 真盘缓存 port(fs/promises 异步,autoUpdater.ts 同源 idiom;读/写失败 = 静默不阻塞)。 */
|
|
18
|
+
export declare function createDiskUpdateCache(dir?: string): UpdateCachePort;
|
|
19
|
+
/** 缺省真盘缓存 port(~/.atlas)。 */
|
|
20
|
+
export declare const diskUpdateCache: UpdateCachePort;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaswork/atlascode",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.134",
|
|
4
4
|
"description": "AtlasCode — Coding Agent for the domestic computing ecosystem (Ascend NPU + domestic LLM backends)",
|
|
5
5
|
"homepage": "https://www.atlaswork.cn/",
|
|
6
6
|
"bin": {
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
"atlascode": "dist/cli.js"
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
|
-
"dist"
|
|
11
|
+
"dist",
|
|
12
|
+
"CHANGELOG.md"
|
|
12
13
|
],
|
|
13
14
|
"exports": {
|
|
14
15
|
"./package.json": "./package.json",
|