Commit Graph

73 Commits

Author SHA1 Message Date
xd-bobo
01becf36c2 feat(plugins): let plugins answer teammate requests (cindy.companions.answer)
A plugin that shows the owner's teammates can now let the owner answer what
a teammate is waiting for in the plugin's own page, instead of only opening
the conversation in Cindy.

- interaction({companionId, interactionRef}) returns one pending request the
  way its card shows it: a question with its options, the command / paths a
  tool wants (redacted like on a phone), or the plan.
- answer(...) needs agent.targets as well. Answers, declines and plan
  feedback take effect directly (they are the owner's words, like a
  message). Allowing a tool or a plan opens Cindy's own native dialog with
  the real request; the request is snapshotted before and re-read after, and
  only that exact request is allowed. One dialog at a time.
- Cindy's own confirmations (host-owned, owner-only tools, desktop-only
  confirmations, input handoff) are listed as kind "other" and stay in Cindy.
- Teammates on another computer are answered through that computer's
  existing maker:get-pending-interactions / maker:resolve-interaction, so its
  own origin gate applies; no new device-link channel.
- interactions[].kind is normalized to question / permission / plan / other.
- Docs: author manual §4.11.9, plugin security rule (product decision
  2026-11-03), implementation and compatibility notes; permission text in
  12 locales; skills bundle 63.

Signed-off-by: xd-bobo <caojianbo@xd.com>
2026-11-04 15:45:24 +08:00
xd-bobo
2f50302f93 feat(plugins): let plugins view the owner's teammates (cindy.companions)
Adds agent.companions, one independent plugin permission for reading the
owner's teammates from a desktop logic page:

- list: every teammate of the account, including those whose home is another
  computer (read from that computer over device-link), with the sidebar's
  status, the public working phase, the titles of requests waiting for the
  owner and the time of the latest reply; offline homes show as offline
- reply: the text of the latest visible reply (the end of a run)
- open: show the conversation, or the task holding a request, in Cindy;
  requests are always handled in Cindy's own cards
- watch/unwatch: content-free change notices, at most once a second

The home computer answers maker:companion-live:read with the same view;
older homes fall back to the released teammate list. Approval follows the
observe capability (install consent, first-use prompt, detail page retry),
with 12-locale wording, author reference 4.11.9 and rule docs updated.

Signed-off-by: xd-bobo <caojianbo@xd.com>
2026-11-04 15:45:23 +08:00
Chris
36a333ac18 refactor: 下线内置智能通讯录,由通讯录插件承接
智能通讯录已迁为官方插件 cindy-contacts,Core 删除全部内置实现:
三个 Harness 的 system prompt 通讯录段、cindy_contacts MCP、maker-core
数据层、设置页与 IPC/preload 接口、旧电脑间同步、Telegram 群发言人自动登记。

保留插件依赖的部分:
- 旧库 maker-contacts/contacts.db 不读不写不清理,供插件只读导入;
  ownerNamespaceMigration 仍迁移旧布局目录。
- 插件电脑间同步使用的设备密钥与加密迁到 device-sync-keys/,
  磁盘文件名与派生参数不变,已配对电脑不受影响。
- macOS 通讯录权限说明保留;局域网权限说明改为 Device Link 直连通用文案。

其它:
- 插件 cindy-contacts 的只读工具经 ghost_call 静默放行,写入仍逐次审批。
- 旧版 Cindy 发来的 device-link:contacts:sync:v1 帧直接丢弃。
- 伙伴已保存的 contacts 内置工具选择自动移除;不做 Core 内下线提示。

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-11-01 12:05:53 +08:00
Naozhong AI
795a6cc606 fix(plugins): observe 状态与侧边栏一致、可重新确认、批量读取活动
- Orca Lead 合并本机 Worker 的出错/待处理状态,与侧边栏 orcaLeadWorkerAttention 同一判据
- 插件详情页为未批准的 agent.observe 提供独立的确认入口(ghosts:request-task-approval 可选 capability)
- 列表一次构造活动快照并复用查询到的持久事实;openTask 只校验单条任务

Signed-off-by: Naozhong AI <oursnoah@gmail.com>
2026-10-31 18:38:05 +09:00
Naozhong AI
867a248997 feat(plugins): 插件只读查看项目任务列表与状态 (agent.observe)
新增独立能力 agent.observe:插件可按已登记本机项目读取任务的标题、Agent 类型、
归档与状态元数据(与侧边栏同一读模型),并在主窗口打开其中的任务。

- 不依赖 agent.tasks;单列 agent:observe 权限,需 Host receipt 的
  observeCapabilityApproved 显式批准,首次调用复用既有宿主确认
- 旧 tasks/targets 批准与历史未知字段不授予查看
- 只返回元数据,不含消息、计划或文件;不能发送、修改或停止任务
- 仅本机 Desktop 逻辑页,Mobile 页面返回 UNSUPPORTED_CAPABILITY

Refs #8118

Signed-off-by: Naozhong AI <oursnoah@gmail.com>
2026-10-31 18:38:05 +09:00
liugaowei
8809c487c7 merge: 同步 main 并保留插件委派兼容
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-10-30 12:14:50 +08:00
liugaowei
1790990262 fix(plugin): 清理协同计划残留限制并保留权限偏好
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-10-30 12:10:28 +08:00
Dash
e3e43e3c52 plugin tasks: default to the Pi harness when the chain model is offered there
Decided 2026-10-28 after a paired run on a real install: the same deepseek
passages reasoned three to five times longer through Codex than through
Pi, whose tool surface stays small however many plugins are installed.
Each auxiliary-chain candidate is tried on Pi first, then on the harness
the chain named; light efforts before defaults as before.

Skills bundle bumped past main (22 -> 23) for the reference doc change.

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-29 22:43:51 +13:00
Dash
ebffbcc853 feat(plugins): 插件任务新增 archive,归档自有的空闲任务
按视频、按文档开新任务的插件需要在切换时收掉上一条,否则后台任务会堆积。新增
tasks.archive({taskId}):只作用于本插件创建的本地任务,有执行中或排队输入时返回
TASK_BUSY,走与侧栏归档相同的 patchSessionMetaInDb 路径(落库并广播),用户可随时
恢复;不提供删除。预载 SDK、管子校验、能力列表、实现台账与作者手册同步。

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-29 22:43:42 +13:00
liugaowei
72c6890c18 fix(plugin): 统一插件任务与普通任务的权限判断
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-10-29 16:44:22 +08:00
liugaowei
edfd3caabd fix(plugin): 插件任务按普通任务权限使用工具
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-10-29 15:51:39 +08:00
liugaowei
a57fd37fed fix(plugin): 将卡片停用限定到当前插件
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-10-28 15:24:26 +08:00
liugaowei
2be475d895 docs(plugin): 明确逐插件默认配置和任务授权边界
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-10-28 14:35:28 +08:00
liugaowei
20b4504e9a feat(plugin): 支持独立消息资料、自动标题和任务权限选择
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-10-28 13:20:57 +08:00
WZBbiao
a4786fd978 merge: 同步 main(5190fead4),解决 sessions:list 冲突
冲突只有一处:`localDb/ipc/sessions.ts` 的 sessions:list 首次加载预热。

- 本分支把 `hiddenSessionRegistry` 扩成 `sessionFlagRegistry`(后台隐藏 + 消息免打扰),
  调用改为 `ensureSessionFlagRegistryLoaded()`。
- main 在同一位置新增 `await sweepLeftoverProvisionalSessions()`,先清残留再读列表。

两侧语义都要保留:既预热标记索引,也等残留未发送任务清完再读列表。

核对:合并结果相对 origin/main 的差异与本 PR 的 49 个文件完全一致(无额外漂移);
migration 无撞号(main 仍止于 0129,本分支 0130)。

验证:provisionalSessions / sessionsPerTaskFlags / sessionsUpdate /
agentIslandSessionPatch / agent-island state+service / notificationService /
desktopConfirmNotice / sessionNotificationMute / SessionTaskMenu / notifier /
migrationReplay / drizzleProxy / botCanonicalSession / sessionAutoTitlePersist /
sessionsRestoreIfArchived / conversationSearch / orcaTeamStore 共 18 个用例文件
(1215 个用例)通过;`pnpm --filter desktop typecheck` 通过。

Signed-off-by: WZBbiao <16611004+WZBbiao@users.noreply.github.com>
2026-10-22 09:33:10 +08:00
liugaowei
0b7075ae46 fix(plugin): 限制在途附件的解码内存
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-10-21 12:44:31 +08:00
liugaowei
ec97ea6864 fix(plugin): 补齐目标授权与持久投递边界
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-10-20 10:15:06 +08:00
WZBbiao
5d53bcf35f merge: 同步 main(6a6ad571a),解决 agent-island / sessions / register 的 import 与术语表冲突
Signed-off-by: WZBbiao <16611004+WZBbiao@users.noreply.github.com>
2026-10-20 09:35:04 +08:00
liugaowei
fa8ecb9adc refactor(plugin): 解耦目标查询解析与投递并移除宿主选择器
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-10-19 18:48:28 +08:00
liugaowei
5d05509e4b feat(plugin): 开放目标选择、投递方式与图片消息接口
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-10-19 18:30:17 +08:00
GaoWei Liu
216cca16a8 Merge pull request #6209 from makecindy/feature/plugin-task-preferences-opt-out
feat(plugin): 支持插件隐藏默认模型与任务配置卡
2026-10-19 16:40:35 +08:00
WZBbiao
3602339c8d feat(desktop): 任务级「消息免打扰」,单条任务不再发通知
会话右键菜单新增「消息免打扰」:开着的任务不再发系统 toast(含提示音)、
不上 Agent 灵动岛、不推手机、不发飞书;任务内的未读与角标照常,任务照常跑。
菜单项是开关,设过之后文案变成「允许消息通知」。

实现走一个进程内同步索引(原 hiddenSessionRegistry 泛化为 sessionFlagRegistry)
而不是逐事件查库,四道门都在发出侧:

- notificationService 的 notification:show-session-event:桌面 / 手机 / 飞书一次挡住;
- maker-ipc/register 的 shouldNotifyAgentIslandForSession:挡在进岛之前,岛态不进入即无声;
- device-link 的 sendMobileSessionNotify:覆盖代输入等不走会话终态路径的调用方;
- scheduler-host 的 DesktopNotifier:自动化 run 的桌面 / 飞书通道(共享群通知不跟个人静音走)。

数据库加 sessions.notifications_muted(migration 0129,默认 false,存量任务全部按未静音)。

Signed-off-by: WZBbiao <16611004+WZBbiao@users.noreply.github.com>
2026-10-16 20:45:16 +08:00
liugaowei
b32efed5b6 fix(plugin): 将任务配置声明收敛为默认卡片显隐
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-10-16 15:56:40 +08:00
liugaowei
cf2a921859 fix(plugin): confirm updates that leave host task settings
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-10-16 15:34:40 +08:00
liugaowei
7b212708f9 feat(plugin): 允许插件自行管理任务配置
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-10-16 14:52:55 +08:00
Chris
d7c0187cd6 docs(plugins): document plugin-default model negotiation
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-10-15 21:03:24 +08:00
Chris Zhang
97cf41273d fix(pi): preserve per-message plan mode through dispatch (#6074)
* fix(pi): preserve per-message plan mode through dispatch

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
Signed-off-by: Lizi <jiali@magiclizi.com>

* fix(pi): retain plan intent until prompt acceptance

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
Signed-off-by: Lizi <jiali@magiclizi.com>

* fix(pi): prepare plan mode before managed package mutations

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
Signed-off-by: Lizi <jiali@magiclizi.com>

* fix(pi): keep startup usable without plan extension

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
Signed-off-by: Lizi <jiali@magiclizi.com>

* fix(pi): enforce live execution plan state for Forge writes

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
Signed-off-by: Lizi <jiali@magiclizi.com>

* fix(pi): recover unknown plan state before dispatch

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
Signed-off-by: Lizi <jiali@magiclizi.com>

* fix(pi): guard plugin dispatch with live plan state

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

---------

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
Signed-off-by: Lizi <jiali@magiclizi.com>
Co-authored-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-10-15 20:30:11 +08:00
Chris Zhang
226c83d31a feat(plugins): 插件单一模型字段与后台隐藏任务 (#6073)
* feat(plugins): single plugin model field and hidden background tasks

Merge the per-ability "Cindy abilities" pickers and the separate task
settings card on the plugin detail page into one "Model & tasks" card
with a single model field. The field defaults to the system auxiliary
model for quick answers (new tasks keep following the originating task)
and, once set explicitly, drives both quick answers and the tasks the
plugin creates. Legacy per-ability quick-answer catalog pins are migrated
once into the plugin task config; media/embedding overrides are dropped
in favour of the system defaults. The stray model tooltip over the row
label is fixed by giving the label its own column.

Add plugin background tasks: plugins declaring `agent.hiddenTasks`
(with `agent.tasks`) can create tasks with `hidden: true` and toggle
them with `tasks.setHidden`. Hidden tasks get `sessions.hidden_at`
(migration 0126) and are excluded from the task list, search, unfinished
hints, notifications and the Agent Island on Desktop and phone; the
plugin detail page lists them under "Background Tasks" where the user
can open them or show them in the task list, and uninstalling reveals
them first.

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
Signed-off-by: Lizi <jiali@magiclizi.com>

* fix(plugins): pin explicit provider, reveal all hidden tasks on uninstall, filter stale list responses

Review follow-ups for #6073:
- Quick answers never switch to another provider's same-named model when
  the user pinned a provider; only a route on that provider is accepted.
- Uninstall reveals every background task in batches instead of only the
  first display page, and fails loudly if a reveal does not take effect.
- The renderer remembers hidden task ids so an in-flight task-list
  response (or a local prepend) cannot re-add a task hidden moments ago.

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
Signed-off-by: Lizi <jiali@magiclizi.com>

---------

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
Signed-off-by: Lizi <jiali@magiclizi.com>
Co-authored-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-10-15 19:44:08 +08:00
Chris Zhang
44f78204d5 fix(desktop): unify ordinary session opening and plugin model controls (#5333)
* fix(desktop): unify ordinary session creation for plugins and teammates

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* fix(desktop): preserve accepted plugin route across model changes

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* fix(desktop): preserve pending task selections and optional effort

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* test(desktop): align plugin authority fixtures with shared preferences

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

---------

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
Co-authored-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-10-01 19:40:55 +08:00
Dash
9127feef4b merge: sync parent Plan and Memory permission fixes
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 15:58:52 +13:00
Dash
63319e8337 fix(plugins): guard memory access and Plan permission commits
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 15:50:43 +13:00
Dash
8013b27c1d fix(plugins): sync permission commits and bound native Auto contract
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 15:14:57 +13:00
Dash
59af390ce9 fix(plugins): serialize complete task permission changes
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 15:09:46 +13:00
Dash
2f7215b807 Merge published parent account data access fixes
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 09:08:43 +13:00
Dash
0a774f10bb fix(plugins): restrict account data and reject worker full access
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 08:59:39 +13:00
Dash
caea0d02e6 fix(plugins): resolve delegated directories before final authorization
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 07:25:35 +13:00
Dash
d7769dd5ac merge: sync final Worker authority checks from plugin runtime
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 06:50:29 +13:00
Dash
68be7616ba fix: retain plugin authority through Worker acceptance and controls
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 06:41:14 +13:00
Dash
5ac3fd7e37 merge: 同步插件派发前失败结算修复
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 06:06:15 +13:00
Dash
dd90bed2c6 fix(plugin): 将派发前拒绝结算为确定失败
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 05:47:17 +13:00
Dash
f30fa8ca53 merge: 同步父任务运行时的撤权历史边界修复
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 05:21:48 +13:00
Dash
dbb9a4317e fix(plugin): 保持撤权后在途任务的历史读取边界
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 05:12:59 +13:00
Dash
66b726e51c merge: sync plugin Worker input and completion fixes
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 04:35:33 +13:00
Dash
5226c61f62 fix(plugins): validate Worker input authority and completion evidence
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 04:24:43 +13:00
Dash
5d5c21c625 Merge published task acceptance fix into delegated Auto
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 03:20:42 +13:00
Dash
58f3c08988 fix(plugin-tasks): recheck Worker provenance at input acceptance
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 03:11:24 +13:00
Dash
4e8d933699 Merge plugin runtime creation provenance fix into delegated Auto
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 02:47:58 +13:00
Dash
a93b5881b6 fix(plugins): preserve worker creation ownership across waits
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 02:33:17 +13:00
Dash
c0488f4097 fix(plugins): 同步任务恢复边界并拒绝缺失委派范围的自动授权
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 01:31:12 +13:00
Dash
62117f4179 fix(plugins): restrict task access to account history
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 01:13:38 +13:00