@oxmumu3/dsh-project-companion 0.30.0 → 0.31.0
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/README.md +1 -1
- package/docs/install.md +4 -4
- package/docs/roadmap.md +1 -1
- package/docs/verification.md +10 -0
- package/index.js +24 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -96,7 +96,7 @@ dsh plugin --profile web add @oxmumu3/dsh-project-companion
|
|
|
96
96
|
|
|
97
97
|
## 版本与数据
|
|
98
98
|
|
|
99
|
-
- 当前版本 **`0.
|
|
99
|
+
- 当前版本 **`0.31.0`**:任意已授权工作区都能直接问进度(未关注会说明没有项目记忆);`0.30.0` 项目简报会读本机 git 的最近提交与未提交改动。
|
|
100
100
|
- 兼容官方 Harness `0.2.0-rc.2`、`0.2.1-rc.2` 至 `rc.5`、`0.2.2-rc.1`;清单在 [compatibility.json](compatibility.json)。
|
|
101
101
|
- 数据留在本机 Harness profile 内,不经过第三方服务器;微信组件内置部分保留上游 MIT 许可,见 [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md)。
|
|
102
102
|
- 已知边界(Google 数据权限审核、flomo MAX、主动关注与手机收件的验收状态)统一写在[验证记录](docs/verification.md),本页不重复。
|
package/docs/install.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# 安装 DSH Dot 0.
|
|
1
|
+
# 安装 DSH Dot 0.31.0
|
|
2
2
|
|
|
3
3
|
## 在创造模式中安装/更新
|
|
4
4
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
请安装或更新并启用 DSH Dot。先检查现有插件,避免重复添加和降级。从 npm 官方源实时查询 @oxmumu3/dsh-project-companion 的 latest,按查到的精确版本安装或更新,不直接采用本机缓存的旧 latest。保留已有微信绑定、账号授权、资料范围、设置和其他插件,不自动读取或新建计划。核对实际版本、启用状态,再打开 DSH Dot。
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
新用户也可在「插件 → 添加插件」填写 `@oxmumu3/dsh-project-companion`(或精确版本 `@oxmumu3/dsh-project-companion@0.
|
|
11
|
+
新用户也可在「插件 → 添加插件」填写 `@oxmumu3/dsh-project-companion`(或精确版本 `@oxmumu3/dsh-project-companion@0.31.0`),安装后启用。它是一个标准插件包,已内置独立微信组件。已有未带 namespace 的历史安装应沿原包名更新;不要将两个名称当成同一个插件重复添加。
|
|
12
12
|
|
|
13
13
|
牛村木木山制作的 DeepSeek Harness 社区插件,非 DeepSeek 或 OpenAI 官方产品。本版内置微信组件,只需添加一个标准插件包,不包含 Harness 应用或 Family 家庭助手。
|
|
14
14
|
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
无法联网或想用离线包时,到 [Releases](https://github.com/oxmumu3/dsh-project-companion/releases) 下载对应版本的 `.tgz`,在官方管理器填写下载后的文件实际路径;无需解压、另装微信组件或运行 macOS 脚本。
|
|
28
28
|
|
|
29
|
-
[本版发布页](https://github.com/oxmumu3/dsh-project-companion/releases/tag/v0.
|
|
29
|
+
[本版发布页](https://github.com/oxmumu3/dsh-project-companion/releases/tag/v0.31.0)记录本版变更。插件包从 npm 安装,npm 页面提供 integrity 与 provenance 可核;0.24 起 release 不再附带离线包。插件尚未上架官方插件市场,npm latest 同步为本版;不要用旧版 ZIP 或第二个微信安装包代替这条单插件路径。
|
|
30
30
|
|
|
31
31
|
## 已有用户
|
|
32
32
|
|
|
@@ -68,7 +68,7 @@ Google 品牌已验证,Gmail、日历、Drive 数据权限已提交审核但
|
|
|
68
68
|
|
|
69
69
|
## 本版验证与已知问题
|
|
70
70
|
|
|
71
|
-
0.
|
|
71
|
+
0.31.0 源码全量回归 2,365 项 / 2,328 通过 / 0 失败 / 37 跳过(跳过项均需 Family 源码树,不在本包范围)。自检只读本机状态,不发外部请求;单项探测 2 秒上限,超时或抛错显示「未知」。私人外发确认只覆盖 `personal_review.run_now` 这条路径,宿主自带的 `send_wechat`、定时投递和带内容的 `remind` / `coordinate` 不经过这道门禁——插件单方面无法覆盖全部外发路径。
|
|
72
72
|
|
|
73
73
|
自动回顾仍为实验能力:自然语言 `focus` 尚未用真实模型验证实际效果,手机端呈现也未验证。历史 flomo 范围投影与模型失败未全部归因。新用户独立扫码到收件、多日与休眠恢复、真实 macOS 输入法仍分别验收。通道报告发送不等于手机收到。详见[验证记录](verification.md)。
|
|
74
74
|
|
package/docs/roadmap.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# 当前收尾 · 0.24.2 公开版本
|
|
2
2
|
|
|
3
|
-
最新公开版本 0.30.0:项目简报先读本机 git 的真实变化(分支、最近提交、未提交改动),为按变化推送打底;0.29.0:新增升级前状态自查脚本;0.28.0:早报授权失败时说明下一步(换绑要重设、离线下次再试),自检同步提醒;0.27.0:自检新增「手机控制」一行并在自检时补一次注册,手机控制两边是否接通一眼可见;0.26.0:并入手机端任务控制的 Dot 侧(`mobileTaskScope` / `mobileQuestionState` / 桥接注册),等家庭助手暴露接口后即可用;`0.25.0`:补上滴答账户级只读搜索(`search_task` / `search` / `list_all_tasks`);此前 0.24.2:项目工具收敛到 `look`/`manage` 两个入口,新增自检、私人外发确认与回顾关注点,首次打开有示例卡,交办记录可复用。
|
|
3
|
+
最新公开版本 0.31.0:任意已授权工作区可直接问进度,未授权名字明确拒绝;0.30.0:项目简报先读本机 git 的真实变化(分支、最近提交、未提交改动),为按变化推送打底;0.29.0:新增升级前状态自查脚本;0.28.0:早报授权失败时说明下一步(换绑要重设、离线下次再试),自检同步提醒;0.27.0:自检新增「手机控制」一行并在自检时补一次注册,手机控制两边是否接通一眼可见;0.26.0:并入手机端任务控制的 Dot 侧(`mobileTaskScope` / `mobileQuestionState` / 桥接注册),等家庭助手暴露接口后即可用;`0.25.0`:补上滴答账户级只读搜索(`search_task` / `search` / `list_all_tasks`);此前 0.24.2:项目工具收敛到 `look`/`manage` 两个入口,新增自检、私人外发确认与回顾关注点,首次打开有示例卡,交办记录可复用。
|
|
4
4
|
|
|
5
5
|
下一步按影响排序:
|
|
6
6
|
|
package/docs/verification.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
# 0.31.0 验证增量
|
|
2
|
+
|
|
3
|
+
2026-11-09,已授权但未关注的工作区可以直接问进度。
|
|
4
|
+
|
|
5
|
+
- `node --max-old-space-size=256 --test --test-concurrency=1 test/*.test.mjs`:2,383 项 / 2,346 通过 / 0 失败 / 37 跳过(0.30.0 基线 2,382 / 2,345 / 0 / 37)。
|
|
6
|
+
- 新增 1 条宿主级用例:走真实 HTTP 路由保存授权后,用「只授权项目」问 digest,`memoryContext` 同时出现「还没加入关注」与本机最近变化;用「未授权项目」问则返回 blocked 并说明先允许它。
|
|
7
|
+
- 同时收紧:digest 的显式项目目标必须落在已关注或已授权范围内,未授权的工作区不再被读取。
|
|
8
|
+
|
|
9
|
+
**没有验证的**:真实桌面 UI 里从「全部项目」目录跳到「问进度」的链路;本轮只验证服务端与宿主入口。
|
|
10
|
+
|
|
1
11
|
# 0.30.0 验证增量
|
|
2
12
|
|
|
3
13
|
2026-11-09,项目简报新增「最近变化」一层的证据来自本机 git。
|
package/index.js
CHANGED
|
@@ -416,7 +416,7 @@ export async function installCompanion(ctx,options={}){
|
|
|
416
416
|
const noteError=error=>{lastRuntimeError=String(error?.message??error).slice(0,200);};
|
|
417
417
|
const authorizeRoot=async root=>(await service.coordinationTarget(root))?.root===root;
|
|
418
418
|
const familyRead=createFamilyReadAdapter({getBridge:getFamilyBridge,isCurrent:scope=>familyDelegate.current(scope),authorizeRoot,recheck:scope=>familyDelegate.recheck(scope)});
|
|
419
|
-
projectPulse=createProjectPulse({...(options.clock?{clock:options.clock}:{})});
|
|
419
|
+
projectPulse=options.projectPulse??createProjectPulse({...(options.clock?{clock:options.clock}:{})});
|
|
420
420
|
memory=createProjectMemory({authorizeRoot,...(options.clock?{clock:options.clock}:{}),...(options.hostTimeZone?{hostTimeZone:options.hostTimeZone}:{})});
|
|
421
421
|
// Personal review is Owner-wide; it never borrows a synthetic project or a
|
|
422
422
|
// one-project follow-up capability. Persisted runs re-enter the exact grant.
|
|
@@ -910,6 +910,19 @@ export async function installCompanion(ctx,options={}){
|
|
|
910
910
|
if(plan.enabled&&origin)await followup.cancel({root:project.root,sessionId:origin});
|
|
911
911
|
await followup.cancelOnceForProject({root:project.root});
|
|
912
912
|
}
|
|
913
|
+
// 已授权但没加入关注的工作区也能问进度;这里只解析目标,不改任何范围。
|
|
914
|
+
const resolveDigestTarget=async reference=>{
|
|
915
|
+
let watched=null;try{watched=await service.coordinationTarget(reference);}catch{watched=null;}
|
|
916
|
+
if(watched)return watched;
|
|
917
|
+
try{
|
|
918
|
+
const snapshot=await workspaceAccess.capture(),key=String(reference).trim().toLowerCase();
|
|
919
|
+
const matches=snapshot.grants.filter(grant=>grant.id===reference||grant.workspaceId===reference||String(grant.label).toLowerCase()===key);
|
|
920
|
+
if(matches.length!==1)return null;
|
|
921
|
+
const grant=matches[0];
|
|
922
|
+
return{id:'workspace:'+grant.id,root:grant.root,label:grant.label,sessionIds:grant.sessionIds,grantedOnly:true};
|
|
923
|
+
}catch{return null;}
|
|
924
|
+
};
|
|
925
|
+
if(input.action==='digest'&&input.project!==undefined&&!await resolveDigestTarget(input.project))return{status:'blocked',accepted:false,text:'没找到这个名字的已关注项目或已授权工作区。请先在工作区选择里允许这个项目,再加入关注;本次没有读取任何内容。'};
|
|
913
926
|
const familyScope=familyContext.activeScope();
|
|
914
927
|
const result=await service.act(owner(ctx,agent),familyScope&&['configure_daily','remind'].includes(input.action)?{...input,expectedBinding:familyBinding(familyScope)}:input);
|
|
915
928
|
if(input.action==='status'){
|
|
@@ -921,11 +934,18 @@ export async function installCompanion(ctx,options={}){
|
|
|
921
934
|
if(result.followups.length){const summary=`主动跟进:${result.followups.map(plan=>`${plan.projectLabel} ${plan.unknown?'状态未知':plan.paused?'已暂停':plan.blocked?'等待恢复绑定':`每${plan.everyMinutes}分钟只读检查`}`).join(';')}`;result.text=`${result.text.slice(0,3199-summary.length)}\n${summary}`;}
|
|
922
935
|
}
|
|
923
936
|
if(input.action==='digest'){
|
|
924
|
-
|
|
937
|
+
let projects;
|
|
938
|
+
if(input.project===undefined)projects=await service.watchedProjects();
|
|
939
|
+
else{
|
|
940
|
+
const target=await resolveDigestTarget(input.project);
|
|
941
|
+
if(!target){result.status='blocked';result.text='没找到这个名字的已关注项目或已授权工作区。请先在工作区选择里允许这个项目,再加入关注;本次没有读取任何内容。';return result;}
|
|
942
|
+
projects=[target];
|
|
943
|
+
}
|
|
925
944
|
const context=[];
|
|
926
945
|
for(const project of projects){
|
|
927
|
-
|
|
928
|
-
|
|
946
|
+
if(project.grantedOnly){context.push(`${project.label} 只做了范围授权、还没加入关注,因此没有项目记忆;以下是它本机最近的改动。`);}
|
|
947
|
+
else{try{const snapshot=await memory.read({root:project.root,sessionId:owner(ctx,agent).sessionId});if(snapshot.goals.length||snapshot.entries.length)context.push(`${project.label}\n${snapshot.text}`);}
|
|
948
|
+
catch(error){context.push(`${project.label}:项目记忆读取失败,内容未知。${String(error?.message??error).slice(0,120)}`);}}
|
|
929
949
|
if(projects.indexOf(project)<20){
|
|
930
950
|
try{const pulse=summarizePulse(await projectPulse.capture(project.root));if(pulse)context.push(`${project.label} 最近变化\n${pulse}`);}
|
|
931
951
|
catch{context.push(`${project.label} 最近变化:本机读取失败,状态未知。`);}
|
package/package.json
CHANGED