@oxmumu3/dsh-project-companion 0.35.0 → 0.35.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.
- package/docs/install.md +4 -4
- package/package.json +1 -1
- package/src/client.js +4 -4
package/docs/install.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# 安装 DSH Dot 0.35.
|
|
1
|
+
# 安装 DSH Dot 0.35.1
|
|
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.35.
|
|
11
|
+
新用户也可在「插件 → 添加插件」填写 `@oxmumu3/dsh-project-companion`(或精确版本 `@oxmumu3/dsh-project-companion@0.35.1`),安装后启用。它是一个标准插件包,已内置独立微信组件。已有未带 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.35.
|
|
29
|
+
[本版发布页](https://github.com/oxmumu3/dsh-project-companion/releases/tag/v0.35.1)记录本版变更。插件包从 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.35.
|
|
71
|
+
0.35.1 源码全量回归 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/package.json
CHANGED
package/src/client.js
CHANGED
|
@@ -986,7 +986,7 @@ function createDotGoalBoardViews(React) {
|
|
|
986
986
|
/* Approved paper/ink/blue workstation. The native writing surface is white. */
|
|
987
987
|
.pc_dot,.pc_dot_modal{--dot-paper:#f6f5f0;--dot-card:#fffefa;--dot-white:#fff;--dot-ink:#23313c;--dot-muted:#5b6973;--dot-line:#cbd2ce;--dot-blue:#345ec7;font-family:${dotFont};font-size:14px;line-height:1.6}
|
|
988
988
|
.pc_dot_inner{max-width:1192px;padding:24px 28px 32px}.pc_dot h1{font:400 24px/1.35 ${dotFont};letter-spacing:0}.pc_dot h2{font-size:18px;font-weight:600}.pc_dot h3{font-size:16px;line-height:1.45}.pc_dot p{max-width:75ch}.pc_dot_muted{font-size:12px;line-height:1.75}.pc_dot_brand_mark{border-radius:14px;width:43px;height:43px;background:var(--dot-card)}.pc_dot_brand h2{font-size:20px}.pc_dot_brand p{margin-top:4px}.pc_dot_header>.pc_dot_actions{font-size:12px;gap:12px}
|
|
989
|
-
.pc_dot button:not(:where(.pc_dot_conversation *)),.pc_dot_drawer button{border-radius:7px;min-height:44px;font-size:13px}.pc_dot_tabs{width:max-content;max-width:100%;gap:4px;padding:4px;margin:20px 0 24px;background:#eeefea;border:1px solid var(--dot-line);border-radius:10px}.pc_dot_tabs button{min-width:76px;padding:7px 16px;border:0;border-radius:7px;font-size:14px}.pc_dot_tabs button.active{color:var(--dot-blue);background:var(--dot-white);box-shadow:0 1px 3px #23313c10}.pc_dot_home_grid{grid-template-columns:minmax(0,1fr) 268px;gap:32px}.pc_dot_home_single{grid-template-columns:minmax(0,1fr)}.pc_dot_more{margin-top:26px;border-top:1px solid var(--dot-line);padding-top:16px}.pc_dot_more>summary{cursor:pointer;font-size:13px;color:var(--dot-muted);list-style:none}.pc_dot_more>summary::-webkit-details-marker{display:none}.pc_dot_more>summary::before{content:'▸ ';display:inline-block;transition:transform .15s}.pc_dot_more[open]>summary::before{transform:rotate(90deg)}.pc_dot_more[open]{padding-bottom:8px}.pc_dot_column{min-width:0}.pc_dot_hero{max-width:none;margin:0 0 20px}.pc_dot_hero>p{margin:8px 0 12px}.pc_dot_composer,.pc_dot_conversation{--dsw-specific-input-major:#fff;background:var(--dot-white);border:1px solid #7e8e98;border-radius:8px;box-shadow:0 2px 10px #23313c08;color:#23313c;--dsw-alias-bg-base:#fff;--dsw-alias-bg-layer-1:#fff;--dsw-alias-bg-layer-2:#fff;--dsw-alias-bg-layer-3:#fff;--dsw-alias-label-primary:#23313c;--dsw-alias-label-secondary:#5b6973;--dsw-alias-state-business-primary:#345ec7}.pc_dot_composer{padding:16px;margin:14px 0 8px}.pc_dot_composer textarea{background:#fff;color:#23313c;min-height:68px;resize:vertical}.pc_dot_composer textarea::placeholder{color:#5b6973}.pc_dot_composer select{background:#fff;border-color:#cbd2ce;min-width:140px}.pc_dot_conversation{height:auto;min-height:180px;max-height:480px;margin-top:14px;overflow:auto}.pc_dot_conversation>div{min-height:0}.pc_dot_shortcuts{gap:8px}.pc_dot_shortcuts button{padding:6px 10px;border:1px solid var(--dot-line);background:var(--dot-card);font-size:12px;min-height:44px}.pc_dot_compose_bottom{gap:8px}.pc_dot_keyboard{font-size:11px}.pc_dot_section{padding-top:18px;margin-top:22px}.pc_dot_rail .pc_dot_section{margin:0 0 24px;padding:0 0 24px;border-top:0;border-bottom:1px solid var(--dot-line)}.pc_dot_rail h3{font-size:14px;margin-bottom:16px}
|
|
989
|
+
.pc_dot button:not(:where(.pc_dot_conversation *)),.pc_dot_drawer button{border-radius:7px;min-height:44px;font-size:13px}.pc_dot_tabs{width:max-content;max-width:100%;gap:4px;padding:4px;margin:20px 0 24px;background:#eeefea;border:1px solid var(--dot-line);border-radius:10px}.pc_dot_tabs button{min-width:76px;padding:7px 16px;border:0;border-radius:7px;font-size:14px}.pc_dot_tabs button.active{color:var(--dot-blue);background:var(--dot-white);box-shadow:0 1px 3px #23313c10}.pc_dot_home_grid{grid-template-columns:minmax(0,1fr) 268px;gap:32px}.pc_dot_home_single{grid-template-columns:minmax(0,1fr)}.pc_dot_statusline{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;padding:6px 0 12px;margin:0 0 10px;border-bottom:1px solid var(--dot-line);font-size:13px;color:var(--dot-muted)}.pc_dot_statusline span{flex:1 1 260px}.pc_dot_statusline button{min-height:32px;padding:2px 10px}.pc_dot_more{margin-top:26px;border-top:1px solid var(--dot-line);padding-top:16px}.pc_dot_more>summary{cursor:pointer;font-size:13px;color:var(--dot-muted);list-style:none}.pc_dot_more>summary::-webkit-details-marker{display:none}.pc_dot_more>summary::before{content:'▸ ';display:inline-block;transition:transform .15s}.pc_dot_more[open]>summary::before{transform:rotate(90deg)}.pc_dot_more[open]{padding-bottom:8px}.pc_dot_column{min-width:0}.pc_dot_hero{max-width:none;margin:0 0 20px}.pc_dot_hero>p{margin:8px 0 12px}.pc_dot_composer,.pc_dot_conversation{--dsw-specific-input-major:#fff;background:var(--dot-white);border:1px solid #7e8e98;border-radius:8px;box-shadow:0 2px 10px #23313c08;color:#23313c;--dsw-alias-bg-base:#fff;--dsw-alias-bg-layer-1:#fff;--dsw-alias-bg-layer-2:#fff;--dsw-alias-bg-layer-3:#fff;--dsw-alias-label-primary:#23313c;--dsw-alias-label-secondary:#5b6973;--dsw-alias-state-business-primary:#345ec7}.pc_dot_composer{padding:16px;margin:14px 0 8px}.pc_dot_composer textarea{background:#fff;color:#23313c;min-height:68px;resize:vertical}.pc_dot_composer textarea::placeholder{color:#5b6973}.pc_dot_composer select{background:#fff;border-color:#cbd2ce;min-width:140px}.pc_dot_conversation{height:auto;min-height:180px;max-height:480px;margin-top:14px;overflow:auto}.pc_dot_conversation>div{min-height:0}.pc_dot_shortcuts{gap:8px}.pc_dot_shortcuts button{padding:6px 10px;border:1px solid var(--dot-line);background:var(--dot-card);font-size:12px;min-height:44px}.pc_dot_compose_bottom{gap:8px}.pc_dot_keyboard{font-size:11px}.pc_dot_section{padding-top:18px;margin-top:22px}.pc_dot_rail .pc_dot_section{margin:0 0 24px;padding:0 0 24px;border-top:0;border-bottom:1px solid var(--dot-line)}.pc_dot_rail h3{font-size:14px;margin-bottom:16px}
|
|
990
990
|
.pc_dot_inline_wechat{display:grid;grid-template-columns:minmax(0,1fr) 188px;border:1px solid var(--dot-line);border-radius:8px;overflow:hidden;background:var(--dot-card);margin-bottom:22px}.pc_dot_pair_copy{padding:22px}.pc_dot_pair_copy h2{font-size:24px;font-weight:400;line-height:1.35}.pc_dot_pair_copy>p{font-size:14px;color:var(--dot-muted);margin-top:8px;line-height:1.75}.pc_dot_pair_copy>p.pc_dot_muted{font-size:12px}.pc_dot_text_button{border:0!important;padding-left:0!important;color:var(--dot-blue)!important;margin-top:8px}.pc_dot_inline_code{padding:16px 14px;background:#edf2fc;border-left:1px solid var(--dot-line);text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px}.pc_dot_inline_code p{font-size:12px;line-height:1.5}.pc_dot_inline_code img{width:136px;height:136px;object-fit:contain;display:block;background:#fff;padding:4px;border-radius:6px}.pc_dot_inline_code button{font-size:12px;min-height:44px;background:#fff}.pc_dot_intro{font-size:14px;color:var(--dot-muted);padding:10px 0 20px}.pc_dot_sample{margin:14px 0 4px;padding:16px;border:1px solid var(--dot-line);border-radius:10px;background:var(--dot-card)}.pc_dot_sample_head{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:10px}.pc_dot_sample ol{margin:0;padding-left:20px;font-size:14px;line-height:1.65}.pc_dot_sample li{margin:4px 0}.pc_dot_sample li b{font-weight:600;margin-right:4px}.pc_dot_sample .pc_dot_actions{margin-top:12px}
|
|
991
991
|
.pc_dot_attention_item{padding:18px 0;border-bottom:1px solid var(--dot-line);overflow-wrap:anywhere}.pc_dot_attention_item:first-of-type{border-top:1px solid var(--dot-line)}.pc_dot_item_kicker{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:var(--dot-muted);font-size:12px;margin-bottom:5px}.pc_dot_attention_item h3{font-size:16px;font-weight:600}.pc_dot_attention_item p{font-size:14px;color:var(--dot-muted);line-height:1.75;margin-top:6px}.pc_dot_attention_item p.pc_dot_item_next{color:var(--dot-ink)}.pc_dot_attention_item>.pc_dot_actions{margin-top:8px;justify-content:space-between;align-items:flex-start}.pc_dot_attention_item .pc_dot_actions>button{border:0;padding-left:0;color:var(--dot-blue);font-size:12px}.pc_dot_attention_item details{font-size:12px;color:var(--dot-muted);max-width:100%}.pc_dot_attention_item summary{padding:10px 0}.pc_dot_item_source{padding:8px 0;max-width:55ch}.pc_dot_item_source strong,.pc_dot_item_source span{display:block;font-size:12px}.pc_dot_item_source span{color:var(--dot-muted)}
|
|
992
992
|
.pc_dot_schedule_item{position:relative;padding:0 0 18px 14px;margin:0 0 0 3px;border-left:1px solid var(--dot-line);overflow-wrap:anywhere}.pc_dot_schedule_item:before{content:'';position:absolute;left:-3px;top:7px;width:5px;height:5px;border-radius:50%;background:#7e8e98}.pc_dot_schedule_item strong{display:block;font-size:14px;font-weight:550}.pc_dot_schedule_item p{font-size:12px;color:var(--dot-muted);margin-top:3px;line-height:1.65}.pc_dot_plan_status{font-size:11px;color:var(--dot-muted)}.pc_dot_rail_note{font-size:12px;color:var(--dot-muted);line-height:1.75;margin-top:8px!important}.pc_dot_recovery{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border:1px solid var(--dot-line);border-radius:8px;background:#f4ebdc;padding:12px 16px;margin-bottom:18px!important;color:var(--dot-ink)}.pc_dot_recovery strong{font-weight:600}.pc_dot_recovery p{font-size:12px;margin-top:4px}.pc_dot_recovery>button{flex-shrink:0;background:var(--dot-card)}.pc_dot_recovery details{font-size:12px;color:var(--dot-muted)}.pc_dot_recovery summary{padding:6px 0;min-height:44px}.pc_dot_history,.pc_dot_legacy_details,.pc_dot_review_details{border-top:1px solid var(--dot-line);margin-top:20px;font-size:12px;color:var(--dot-muted)}.pc_dot_history>summary,.pc_dot_legacy_details>summary,.pc_dot_review_details>summary{min-height:44px}.pc_dot_history .pc_dot_update{padding:14px 0}.pc_dot_history h3{font-size:14px}.pc_dot_footer{font-size:11px;margin-top:24px}.pc_dot_project_cards{display:block}.pc_dot_project_card{border-width:0 0 1px;border-radius:0;padding:18px 0;background:transparent}.pc_dot_project_card:first-child{border-top:1px solid var(--dot-line)}.pc_dot_project_card h2{font-size:17px}.pc_dot_project_card .pc_dot_eyebrow{display:none}
|
|
@@ -1358,7 +1358,7 @@ function createDotGoalBoardViews(React) {
|
|
|
1358
1358
|
// Family projections intentionally exclude independent Dot's legacy plans.
|
|
1359
1359
|
// Their current schedules have a separate availability check below.
|
|
1360
1360
|
const unknownScopes=[!availability.projects?'关注项目':null,!availability.jobs?'交办记录':null,!readOnly&&!availability.plans?'已有安排':null,!attentionItems?'当前事项':attentionProjection.coverage==='unconfirmed'?'部分事项覆盖':null,scheduleProjection?.available!==true?'下一次安排':null,['unknown','failed'].includes(snapshot?.connection?.state)?'微信连接':null].filter(Boolean);
|
|
1361
|
-
const recovery=!firstUse&&unknownScopes.length?h('div',{className:'
|
|
1361
|
+
const recovery=!firstUse&&unknownScopes.length?h('div',{className:'pc_dot_statusline',role:'status','data-dot-recovery':true},h('span',null,`${unknownScopes.join('、')}还在核对;不影响你现在对话,原来的安排都保留。`),button('重试状态',refresh,{className:'pc_dot_text_button'}),button('查看连接',()=>changePage('settings'),{className:'pc_dot_text_button'})):null;
|
|
1362
1362
|
const jobCard=job=>h('article',{className:'pc_dot_update',key:job.id,'data-dot-job':job.id},h('p',{className:'pc_dot_muted'},`${job.projectLabel} · ${states[job.status]??'状态待核对'}`),h('h3',null,job.task),job.result?.available===true&&typeof job.result.text==='string'?h('p',{className:'pc_dot_excerpt'},job.result.text):null,job.result?.truncated?h('p',{className:'pc_dot_muted'},'原回复较长,此处为摘录。'):null,job.delivery?h('p',{className:'pc_dot_muted'},deliveries[job.delivery.status]??'回传状态待核对'):null,h('div',{className:'pc_dot_actions'},button('看看这次结果',()=>openTask(job)),readOnly?null:button('和 Dot 接着聊',()=>continueJob(job))));
|
|
1363
1363
|
const focusComposer=()=>{composerStart.current?.focus?.();composerStart.current?.scrollIntoView?.({block:'nearest'});};
|
|
1364
1364
|
const continueDesktopCandidate=async()=>{if(!conversationCandidate||flight.current)return;flight.current=true;setBusy(true);try{const candidate=await desktopController.resolve(conversationCandidate);if(!candidate)throw Error('candidate unavailable');const remembered=await desktopController.remember(candidate.sessionId);if(active.current){workbenchCache.localConversation=candidate;setLocalConversation(candidate);setConversationCandidate(null);setNotice(remembered?'已选择上次对话,沿用原草稿。':'本次可继续上次对话;入口暂未保存,可从原生历史找回。');}}catch{if(active.current)setError('上次对话暂不可用,请从原生历史核对;当前草稿仍保留。');}finally{flight.current=false;if(active.current)setBusy(false);}};
|
|
@@ -1369,12 +1369,12 @@ function createDotGoalBoardViews(React) {
|
|
|
1369
1369
|
const composer=embedded?h('section',{className:'pc_dot_hero','aria-label':'和 Dot 继续对话'},h('h1',null,'今天想做什么?'),h('p',{className:'pc_dot_muted'},'说一句要做的事,或者接着上次聊;需要资料时再连。'),retainedDraftView(desktopTarget,{busy,onApply:recoverLocalDraft,onCopy:()=>copyCachedDraft(setNotice)}),h('div',{ref:homeAnchor,'data-dot-home-conversation':true},goalActive||overlayActive?h('div',{'data-dot-native-placeholder':true,style:{height:homeHeight.current},'aria-hidden':true}):nativeSuspended?h('p',{className:'pc_dot_notice',role:'status'},'正在切换完整对话,原草稿会保留。'):h(DesktopConversation,{target:desktopTarget,SessionProvider:props.SessionProvider,renderSlot:props.renderSlot,onOpenHistory:()=>navigate(desktopTarget.sessionId),onReady:setNativeHomeReady}))):h('section',{className:'pc_dot_hero'},h('h1',null,firstUse?'先把一件事交给 Dot。':'今天想做什么?'),h('p',{className:'pc_dot_muted'},'说说背景和目标,需要资料时再按需连接。'),h('div',{className:'pc_dot_composer'},h('textarea',{ref:composerStart,'aria-label':'交代给 Dot 的事情',placeholder:'把背景、想做的事,或刚刚变化的情况告诉我…',maxLength:3500,value:draft,disabled:busy,onChange:e=>{if(!flight.current)setDraft(e.target.value);},onKeyDown:e=>{if((e.metaKey||e.ctrlKey)&&e.key==='Enter'&&!e.isComposing&&e.keyCode!==229&&!e.nativeEvent?.isComposing){e.preventDefault();void chat();}}}),h('div',{className:'pc_dot_compose_bottom'},h('select',{'aria-label':'这句话关联的项目',value:selected??'',disabled:busy,onChange:e=>{if(!flight.current)setSelected(e.target.value);}},h('option',{value:''},'不关联项目'),...projects.map(p=>h('option',{value:p.id,key:p.id},p.label))),h('span',{className:'pc_dot_keyboard'},'⌘ / Ctrl + Enter'),button('开始对话',()=>chat(),{className:'pc_dot_primary'}))),h('p',{className:'pc_dot_muted'},'带入原生 Dot 会话后,由你发送;已有会话草稿会保留。'),conversationCandidate?button('继续上次对话',continueDesktopCandidate,{className:'pc_dot_text_button'}):null,h('div',{className:'pc_dot_actions pc_dot_shortcuts'},...shortcuts.slice(0,3).map(([label,prompt])=>button(label,()=>stageDraft(prompt),{key:label}))));
|
|
1370
1370
|
const sourceMeta=source=>h('div',{className:'pc_dot_item_source',key:`${source.source??''}:${source.title??''}`},h('strong',null,source.label||source.title||source.source||'来源'),h('span',null,[source.source,source.at?date(source.at):null,['metadata_only','metadata-only'].includes(source.contentState)?'仅来源信息':null,source.contentState==='unread'?'正文未读':null,source.contentState==='unavailable'?'内容尚未确认':null,source.contentState==='actual_empty'?'返回内容为空':null,source.truncated?'内容已截断':null].filter(Boolean).join(' · ')));
|
|
1371
1371
|
const attentionCard=item=>h('article',{className:'pc_dot_attention_item',key:item.id,'data-dot-attention-item':item.id},h('div',{className:'pc_dot_item_kicker'},h('span',null,({deadline:'截止事项',risk:'需要留意',invitation:'待确认邀请',reply:'待回复',change:'近期变化',progress:'项目进展',event:'近期安排'}[item.kind]??'当前事项')),h('span',null,item.dueAt?`${item.dueAtBasis==='relative'?'估算期限':'截止'} ${date(item.dueAt)}`:item.eventStartAt?`开始 ${date(item.eventStartAt)}`:item.time?date(item.time):'')),h('h3',null,item.title),typeof item.summary==='string'&&item.summary?h('p',{className:'pc_dot_item_summary'},item.summary):null,typeof item.why==='string'&&item.why?h('p',{className:'pc_dot_item_why'},item.why):null,typeof item.action==='string'&&item.action?h('p',{className:'pc_dot_item_next'},item.action):null,typeof item.unknown==='string'&&item.unknown?h('p',{className:'pc_dot_item_unknown'},`待确认:${item.unknown}`):null,item.execution?h('p',{className:'pc_dot_muted','data-dot-item-execution':true},({in_progress:'正在执行',ready_for_review:'已有结果,待你验收',blocked:'执行当前受阻',unknown:'执行结果尚未确认'}[item.execution.status]??'执行结果尚未确认'),item.execution.outdated===true?' · 依据已有更新,执行结果基于旧版资料,需重新核对。':null):null,item.confidence==='inferred'?h('p',{className:'pc_dot_muted'},'这是基于已保存资料的判断,仍需核对。'):null,h('div',{className:'pc_dot_actions'},button('和 Dot 接着聊',()=>stageDraft(`请准备个人回顾「${item.title}」的下一步\n事项 ID:${item.id}\n请先核对原事项及已授权来源,再帮我梳理下一步;不要自动重做旧任务或扩大读取范围。`,'')),Array.isArray(item.sources)&&item.sources.length?h('details',null,h('summary',null,'查看依据'),...item.sources.slice(0,5).map(sourceMeta)):null));
|
|
1372
|
-
const attentionView
|
|
1372
|
+
const attentionView=!attentionItems?h('p',{className:'pc_dot_muted pc_dot_inline_note'},['当前事项还没核对。',typeof attentionProjection?.note==='string'?attentionProjection.note:null].filter(Boolean).join(' ')):section('值得你留意',attentionItems?attentionItems.length?attentionItems.map(attentionCard):h('p',{className:'pc_dot_empty'},'当前已核对的范围内,没有待处理事项。有事可以直接告诉 Dot。'):h('p',{className:'pc_dot_empty'},'当前事项尚未核对,恢复入口见上方提示。'),typeof attentionProjection?.note==='string'&&attentionProjection.note?h('p',{className:'pc_dot_muted'},attentionProjection.note):null,attentionProjection?.truncated?h('p',{className:'pc_dot_muted'},'这里只展示最近 5 条事项,其他内容请在原会话核对。'):null);
|
|
1373
1373
|
const scheduleTime=item=>item.nextDueAt?date(item.nextDueAt):[item.dailyTime?`每天 ${item.dailyTime}`:'',Number.isInteger(item.weeklyDay)&&item.weeklyTime?`每周${['日','一','二','三','四','五','六'][item.weeklyDay]} ${item.weeklyTime}`:'',Number.isInteger(item.everyMinutes)?`每 ${item.everyMinutes} 分钟`:''].filter(Boolean).join(' · ')||'下次时间待确认';
|
|
1374
1374
|
const scheduleRail=h('section',{className:'pc_dot_section pc_dot_schedule','data-dot-schedule-rail':true},h('h3',null,'下一次安排'),typeof reviewHealth?.label==='string'&&reviewHealth.label?h('p',{className:'pc_dot_muted','data-dot-review-health':true},`最近运行:${reviewHealth.label}${reviewHealth.at?' · '+date(reviewHealth.at):''}。手机收到仍未确认。`):null,scheduleItems?scheduleItems.length?scheduleItems.map(item=>h('div',{className:'pc_dot_schedule_item',key:item.id},h('strong',null,item.title),h('span',{className:'pc_dot_plan_status'},({stored:'已保存',paused:'已暂停',blocked:'当前受阻'}[item.status]??'状态待核对')),h('p',null,scheduleTime(item)),h('p',{className:'pc_dot_muted'},item.timeZone||'时区待核对'),h('p',{className:'pc_dot_muted'},({['personal-review']:'个人回顾',news:'AI 日报',['project-followup']:'项目跟进'}[item.source]??'原安排')))):scheduleProjection?.available===true?h('p',{className:'pc_dot_empty'},'当前范围没有已保存的安排。想跟进一件事,可以直接告诉 Dot。'):h('p',{className:'pc_dot_empty'},'安排状态见上方提示。'):h('p',{className:'pc_dot_empty'},'安排状态见上方提示。'),scheduleProjection?.available!==true&&scheduleItems?.length?h('p',{className:'pc_dot_muted'},'部分安排尚未确认;这里保留已核对的安排。'):null,scheduleItems?.length?h('p',{className:'pc_dot_rail_note'},reviewHealth?'这里显示已保存的安排;手机收到仍未确认。':'这里显示已保存的安排;运行尚未核验,手机收到仍未确认。'):null,scheduleProjection?.truncated?h('p',{className:'pc_dot_muted'},'此处为有限安排,其余请在原入口核对。'):null);
|
|
1375
1375
|
const history=availability.jobs?h('details',{className:'pc_dot_history','data-dot-history':true},h('summary',null,`找到之前聊过的事(${jobs.length})`),recentJobs.length?recentJobs.map(jobCard):h('p',{className:'pc_dot_muted'},'这个窗口里还没有交办记录。'),h('p',{className:'pc_dot_muted'},'这里展示最近的有限记录;更早的原始内容在 Dot 会话中。'),desktopTarget?button('打开完整会话历史',()=>navigate(desktopTarget.sessionId)):bound&&!readOnly?button('打开完整会话历史',()=>navigate(snapshot.connection.sessionId)):null):null;
|
|
1376
1376
|
const sampleCard=firstUse&&!projects.length?h('section',{className:'pc_dot_sample','data-dot-sample':true,'aria-label':'示例简报'},h('div',{className:'pc_dot_sample_head'},h('span',{className:'pc_dot_badge'},'示例'),h('strong',null,'Dot 会把一件事接成这样的简报')),h('ol',null,h('li',null,h('b',null,'进展'),'三篇阅读材料已经整理好,试读说明还差一版。'),h('li',null,h('b',null,'卡点'),'作者希望把“读完有什么收获”说得更具体。'),h('li',null,h('b',null,'下一步'),'先找 5 位读者试读一周,再决定是否扩大。')),h('p',{className:'pc_dot_muted'},'这是示例,不是你的资料。连上项目或微信后,Dot 会按你的来源整理。'),h('div',{className:'pc_dot_actions'},button('用这个例子聊聊',()=>stageDraft('请参考示例简报的结构,帮我整理一件正在推进的事:先只问我缺的目标和范围,再给我进展、卡点和下一步。'),{className:'pc_dot_text_button'}))):null;
|
|
1377
|
-
const home=h('div',null,recovery,h('div',{className:'pc_dot_home_grid pc_dot_home_single'},h('div',{className:'pc_dot_column'},inlineWechat,h(WorkspaceGuide,{controller:workspaceScope,organizer:logicalProjects,onOrganize:async()=>{if(await logicalProjects.organize(workspaceScope.getSnapshot().summary?.revision))changePage('projects');}}),
|
|
1377
|
+
const home=h('div',null,recovery,h('div',{className:'pc_dot_home_grid pc_dot_home_single'},h('div',{className:'pc_dot_column'},inlineWechat,composer,h(WorkspaceGuide,{controller:workspaceScope,organizer:logicalProjects,onOrganize:async()=>{if(await logicalProjects.organize(workspaceScope.getSnapshot().summary?.revision))changePage('projects');}}),sampleCard,firstUse?h('p',{className:'pc_dot_intro'},'不用先把所有东西配好。先聊手上的任务,用到邮件、日程或项目时,再连接需要的资料。'):attentionView,history,h('details',{className:'pc_dot_legacy_details'},h('summary',null,'更多原会话安排与检查'),plans,checkHistory)),h('details',{className:'pc_dot_more','aria-label':'安排与关注'},h('summary',null,'安排与关注'),firstUse?section('从你手上的事开始',h('p',{className:'pc_dot_muted'},'先交代一个目标,Dot 会接着整理下一步。用到资料时再连接;想定时跟进时再安排。')):scheduleRail,section('正在关注',availability.projects?projects.length?projects.map(p=>button(h('span',null,h('strong',null,p.label),h('small',{className:'pc_dot_muted'},latest(p)?`资料更新 ${date(latest(p))}`:'尚无近期资料')),()=>openProject(p.id),{key:p.id,className:'pc_dot_project_mini'})):h('p',{className:'pc_dot_muted'},'先从手头的一件事开始,需要时再关注项目。'):h('p',{className:'pc_dot_muted'},'关注范围见上方提示。'),readOnly?null:button('选择关注项目',()=>setSetup(true))),reviewState?h('details',{className:'pc_dot_review_details'},h('summary',null,'个人回顾与资讯设置'),reviewCard):null)));
|
|
1378
1378
|
const catalogView=section(`全部项目${catalog?` · ${catalog.total}`:''}`,
|
|
1379
1379
|
h('p',{className:'pc_dot_muted'},'按名称找到 Harness 已登记的项目,单次查看不占持续关注名额。列目录不会读取项目内容。'),
|
|
1380
1380
|
!bound?h('p',{className:'pc_dot_empty'},'先确认微信连接,再查看你的项目目录。'):h('div',null,
|