Commit Graph

1969 Commits

Author SHA1 Message Date
Dash
6e2b0c1960 docs: align secret-field and test-build notes with existing repo rules
Address review feedback on #8261:

- plugin-security-and-authoring, browser-use: the "my browser" notes said
  password, payment and one-time-code fields are readable and fillable, which
  read as contradicting the input-handoff boundary. State that the extension
  does not block by field type, but values the owner enters through ask_owner
  still go only to the host and never into the model, and that task
  permission tiers and automatic review do not replace that boundary.
- simulator-debugging: the side-by-side test build recipe omitted
  CINDY_USE_LOCAL_REGION_CONFIG=1, without which app.config.js ignores the
  temporary self-host-regions.json and silently keeps the built-in bundle ID.
  Add the switch, say which variables only change the display name, require
  checking the built bundle ID before install, and name the two entitlements
  to remove.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-01 04:02:16 +13:00
Dash
8b6503cd41 docs: move agent-learned product and dev knowledge into the repo
Decisions and debugging knowledge that only lived in one person's agent
memory now live where every contributor and agent reads them:

- environment-setup: keep git auto-maintenance in the foreground for
  multi-worktree partial clones (git 2.54 loses the maintenance lock)
- simulator-debugging: evidence-first physical-iPhone debugging and the
  side-by-side test build parameters
- remote-desktop: zero frames from ScreenCaptureKit means check replayd
- model-catalog-maintenance: Cindy AI name suffixes, AI Gateway repos
- design-decision-log: extra model cost display (10-30), remote desktop
  resolution tiers with effect words (10-06)
- core-product-principles: transient failures recover automatically,
  background status hints stay light and never reflow lists
- engineering-conventions: name Chinese variants by script, not region
- REVIEW.md: do not demand mechanisms for rare benign edges
- configuration-and-overrides: four tiers for settings visibility
- protocol-compatibility: manual continuation of interrupted scheduled
  runs; X delete keeps the mention requirement
- plugin-security-and-authoring: "my browser" capability parity, user
  non-interference baseline, on-demand debugger permission, page badge
- new docs/dev-rules/browser-use.md: shared-layer optimizations, no
  capability limits with risk handled by approval, external link handoff,
  recipe catalog maintenance
- new docs/product-rules/mail-card.md: mail card editing, sending,
  reading, read marks, avatars and Google contacts scope
- system-skills README: bundled Skills stay repo-agnostic; pr triggers
  only on explicit PR intent

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-01 03:39:40 +13:00
Lizi
015c80fb90 Merge pull request #8235 from zqchris/plugin-hook-points
feat(plugins): 自动化与例行任务可选插件做前置检查
2026-10-31 23:31:16 +09:00
Lizi
bf1722ff5c Merge pull request #8227 from makecindy/dash/computer-use-single-entry
feat(computer): 桌面操作只保留 cindy_computer 一个入口并补齐护栏
2026-10-31 23:28:29 +09:00
Lizi
868e0ca5a3 Merge pull request #8250 from makecindy/dash/mobile-multi-device-docs
docs(mobile): 说明多台模拟器并行测试,测试流程以仓库为准
2026-10-31 23:26:40 +09:00
Lizi
e6f67b45b2 Merge pull request #8243 from makecindy/dash/mobile-mail-reader-redesign
feat(mobile): 邮件阅读页改为整页滚动的常规邮件布局,写邮件卡片正文内联展开
2026-10-31 22:38:15 +09:00
Dash
cd97491d67 fix(computer): Auto 审阅说明只针对本机,去掉冗余的审核模式挂钩
- 审阅策略里的桌面输入禁令改为只针对运行 Cindy 的这台电脑,写明 SSH 远端等其它主机上的
  命令不受影响,避免把远端原有桌面自动化一并拦掉。
- 删除 auto-review 里 REVIEW_REQUIRED_PATTERNS 的 desktop-input 挂钩:这些命令本来就不在
  白名单里,天然进入 reviewer,挂钩没有额外效果,只增加耦合。
- 文档与 README 写明各档位的真实覆盖:Claude 守卫仅本地运行时;Codex 完全访问档
  (approvalPolicy: never,宿主无拦截点)与 Pi 完全访问档不拦。

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-01 02:21:50 +13:00
Lizi
c3a967e201 Merge pull request #8202 from makecindy/feat/mcp-apps-manual-header
feat(plugin): cindy.fetch 自动带上 MCP Apps 页面生成手册地址
2026-10-31 22:20:48 +09:00
Dash
a6a80287a6 docs(mobile): make the repo the only simulator test workflow
Move the generic rules that only lived in a personal simulator skill into
the simulator guide: what a test request authorizes and excludes, how the
target worktree and device are chosen, how to use Cindy's simulator plugin,
and what a delivery must report. Personal setup now keeps only private
preferences such as the usual device and simulator backend.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-01 01:52:53 +13:00
Dash
68a43f429e docs(mobile): document parallel simulators via RCT_jsLocation
The simulator guide claimed the iOS debug app only ever loads Metro on 8081,
so agents concluded two worktrees could not run on two simulators at once.
React Native first reads the per-device RCT_jsLocation default and only
falls back to 8081 when that Metro does not answer.

Document how the app picks Metro, the two silent fallbacks, the parallel
device recipe (rebuild --udid, start --port, point the device, verify with
whoami --udid --port and the build label, clean up), and what is still
unverified on Android. Align the dev rules and sim-start comments.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-01 01:47:24 +13:00
Chris
a147524c4b Merge remote-tracking branch 'upstream/main' into plugin-hook-points
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

# Conflicts:
#	apps/desktop/src/main/cindy-brain/GhostManager.ts
#	apps/desktop/src/main/cindy-brain/__tests__/ghostInstallReceipt.test.ts
#	apps/desktop/src/main/cindy-brain/ghostInstallReceipt.ts
#	apps/desktop/src/main/cindy-brain/index.ts
#	apps/desktop/src/preload/preload.ts
#	apps/desktop/src/renderer/vite-env.d.ts
#	apps/desktop/src/shared/ghost.ts
2026-10-31 20:36:58 +08:00
fmfsaisai
da4f0f7b4f Merge origin/main into feat/page-manual-build-info
Signed-off-by: fmfsaisai <fmfsaisai@gmail.com>
2026-10-31 20:31:17 +08:00
fmfsaisai
63eec636c8 Merge origin/main into feat/mcp-apps-manual-header
Signed-off-by: fmfsaisai <fmfsaisai@gmail.com>
2026-10-31 20:31:17 +08:00
Lizi
8024c2ea40 Merge pull request #8120 from ThendCN/feat/plugin-observe-tasks
feat(plugins): 插件只读查看项目任务列表与状态 (agent.observe)
2026-10-31 21:20:55 +09:00
Dash
3a7a4ecf45 feat(mobile): 邮件阅读页改为整页滚动的常规邮件布局,写邮件卡片正文内联展开
- 阅读页:主题、发件人头像与时间、收件人/抄送直接列出,正文按全文高度内联并随整页滚动,宽版邮件缩放至屏宽;支持往来邮件串、在邮箱中打开、回复/全部回复/转发(带入任务输入框由 Cindy 起草)
- 写邮件卡片:移除「放大查看」弹窗与固定高度,正文全文显示在卡片内;编辑时锁定缩放,消息列表把光标行滚到键盘上方
- 新增邮件日期解析(RFC 2822 时区)与模拟器示例邮件、示例草稿任务

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-01 01:10:45 +13:00
Chris
007e8daad2 feat(plugins): let each automation and routine choose its pre-run check plugin
Plugin control points no longer screen every automation and routine once a
plugin is installed. A task now opts in from its pre-run check (Script or
Plugin) and stores preRunPlugin { pluginId, onFailure }. Only that plugin is
asked; an unavailable, silent or fused plugin follows the task's failure
setting (default: stop and mark as failed, like script checks).

- schedules gain pre_run_plugin_id / pre_run_plugin_on_failure (0140,
  idempotent companion); routines and companion sync carry the field, and
  routines from another computer arrive turned off
- saving resolves a newly chosen plugin to its instance id and rejects
  unusable ones; unchanged choices are not re-validated
- automation and routine editors get the Script / Plugin choice; the plugin
  detail page now only lists supported checks
- cindy_scheduler create/update and routine_save accept preRunPlugin
  (local computer only)
- removes the per-plugin global failure preference

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-10-31 18:55:32 +08:00
Chris
6fca46271e feat(plugins): host control points for automations and routines
Plugins can declare will-schedule-run / will-routine-run in subscribe.hooks.
Cindy asks them before an automation or teammate routine starts (no Agent
turn); plugins may allow, skip, or block but never approve on the user's
behalf. Failure handling is chosen by the user per plugin and point.
Points only take effect after the user saw them in install/update consent
(receipt approvedControlPoints). Plugins query the catalog at runtime via
host-request control-points, so new plugins need no Cindy release.

Also strips bypassGhostHooks from device-link queued input.

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-10-31 18:40:52 +08:00
Dash
71f647c4c1 feat(computer): 桌面操作只保留 cindy_computer 一个入口并补齐护栏
2026-10 复盘 45 个 Computer Use 会话:26 个走了用户自己注册的原始 cua-driver
MCP,驱动拒绝输入后模型退到 osascript keystroke / 剪贴板粘贴 / CGEvent 脚本,
按键打进别的窗口;Electron 文本输入、模拟器点击、锁屏/后台窗口的失败原因也
没有区分。本次按「只有一套工具」收口:

- 能力路由新增 user-mcp 来源:Claude Code 无条件屏蔽用户 ~/.claude.json 里的
  cua-driver / cua,替代为 cindy_computer(Computer Use 开关是唯一总闸,原始
  服务器恰在它关闭时绕过)。
- 共用判定 desktop-input-shell:Claude PreToolUse 守卫拒绝 shell 模拟桌面键鼠
  (完全访问档同样生效,Computer Use 关闭时理由指向设置);Ask/Auto 档经共用
  审核核心交 reviewer 拦下,审阅策略补一句说明;Pi 完全访问档按红线不加拦截。
- 宿主层:前台投递前按 powerMonitor 空闲时间扣除 Agent 自身投递后判断有人在用
  电脑,返回 USER_INPUT_ACTIVE;锁屏状态注入 MCP 层;窗口身份新增 ios-simulator
  (Simulator.app / Device Hub)与 Electron / 浏览器的 hints;cua-driver 0.37
  的缺应用错误映射回 APP_NOT_INSTALLED,其余 snake_case 错误码保留。
- MCP 层:锁屏/注销/休眠快捷键返回 HOTKEY_BLOCKED;CUA_UNAVAILABLE 与抛错型
  窗口失效附 reason(screen_locked / window_gone / window_not_on_screen /
  driver_error);恢复用的窗口清单只保留身份字段;工具说明与 workflow 改写为
  单一入口、拒绝即报告、Electron 文本用 set_value、模拟器用 simctl/AXe。
- 压缩白名单加入 USER_INPUT_ACTIVE / HOTKEY_BLOCKED。

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-31 22:53:19 +13: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
fmfsaisai
57eb8ae382 Merge feat/page-manual-versioned-path into feat/page-manual-build-info
Signed-off-by: fmfsaisai <fmfsaisai@gmail.com>
2026-10-31 17:20:54 +08:00
fmfsaisai
752302ae54 Merge feat/page-manual-versioned-path into feat/mcp-apps-manual-header
Signed-off-by: fmfsaisai <fmfsaisai@gmail.com>

# Conflicts:
#	apps/desktop/resources/system-skills/cindy-plugin-creator/references/plugin-network.md
#	apps/desktop/src/main/cindy-brain/networkSlot.ts
#	apps/desktop/src/main/maker-host/built-in-skills.ts
2026-10-31 17:20:01 +08:00
fmfsaisai
b16c37f6f7 Merge origin/main into feat/page-manual-versioned-path
Signed-off-by: fmfsaisai <fmfsaisai@gmail.com>

# Conflicts:
#	docs/dev-rules/media-storage-and-protocols.md
#	docs/dev-rules/plugin-security-and-authoring.md
#	scripts/publish-page-manual.mjs
2026-10-31 17:14:01 +08:00
Lizi
40b0f5278c Merge pull request #8185 from zqchris/classical-chinese-locale
feat(i18n): 文言界面(简繁两版)与 AI 文言作答文风
2026-10-31 16:45:19 +09:00
Lizi
edef2b7bf7 Merge pull request #8192 from PraiseZhu/keel/keel-run-20261030170018-5fea
fix(desktop): 离开聊天页时停放左/上/下边组插件面板,不再销毁 webview
2026-10-31 16:43:21 +09:00
fmfsaisai
28791dcf8d feat(release): bind the published page manual to the packaged bytes
package-desktop.mjs now refuses a versioned package when the manual has
uncommitted changes, and records the manual it actually packaged in
build-info.json as mcpAppsManual: { sha256, size } (null for versionless
builds or builds without the manual). publish-page-manual.mjs requires
the checkout's manual to match that record and rejects build-info files
from the old packager.

Signed-off-by: fmfsaisai <fmfsaisai@gmail.com>
2026-10-31 15:41:27 +08:00
Lizi
867757bf90 Merge pull request #8176 from makecindy/dash/iphone-usage-widgets
feat(quota): iPhone 桌面小组件、余量汇总拆层与余量变色统一
2026-10-31 16:39:43 +09:00
Lizi
1d9709be92 Merge pull request #8028 from makecindy/cindy/gentle-knuth
fix(desktop): 远控模型列表以任务所在电脑为准 #8010
2026-10-31 16:32:56 +09:00
Lizi
6ce276340c Merge pull request #8169 from makecindy/docs/plugin-pages-guide
docs(plugin): rewrite the interactive pages guide for the host-provided SDK
2026-10-31 16:12:58 +09:00
fmfsaisai
32dbc913aa feat(plugin): send the MCP Apps manual reference with page tool fetches
cindy.fetch now adds Cindy-MCP-Apps-Manual and Cindy-MCP-Apps-Manual-Sha256
when the in-flight call's tool is model-visible in mcpApps.ui, so a
business backend can generate pages with the manual that matches the
user's client. Plugins override with mcpAppsManual: true | false. The
headers go only to declared network hosts on every hop, plugin-supplied
copies are stripped, and versionless builds send nothing.

Signed-off-by: fmfsaisai <fmfsaisai@gmail.com>
2026-10-31 15:11:12 +08:00
fmfsaisai
50ccfc6f60 feat(release): publish the page manual under mcp-apps/manual
Rename the CDN prefix from plugin-pages/manual/ to mcp-apps/manual/ so
the path names the MCP Apps protocol it serves. Nothing has been
published under the old prefix.

Signed-off-by: fmfsaisai <fmfsaisai@gmail.com>
2026-10-31 14:23:27 +08:00
fmfsaisai
9826417ba7 feat(release): put the client version in the page manual CDN path
Publish the manual to plugin-pages/manual/<version>/<sha256>.md so a
CDN object shows which client it belongs to, while the hash still keeps
two different manuals for the same version apart. The script now reads
version, region and release commit from the package's build-info.json,
rejects versionless/0.0.0 packages and checkouts that are not the
release commit, and uses the full manual name in the dev rules.

Signed-off-by: fmfsaisai <fmfsaisai@gmail.com>
2026-10-31 14:02:02 +08:00
Chris
e9ca3e6cb0 Merge remote-tracking branch 'upstream/main' into classical-chinese-locale
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-10-31 13:56:49 +08:00
Lizi
9ab350ef60 Merge pull request #8182 from makecindy/feat/self-hosted-relay-cross-account
feat(device-link): 自建中转下继续支持共享任务和供应商分享
2026-10-31 14:47:32 +09:00
Chris
4226c334c1 Merge remote-tracking branch 'upstream/main' into classical-chinese-locale
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-10-31 13:44:45 +08:00
fmfsaisai
ca97326676 docs(repo): use the full page manual name in dev rules
Refer to 《Cindy MCP Apps 页面生成手册》 instead of the short 《页面生成手册》 in the media/plugin dev rules and the publish script header.

Signed-off-by: fmfsaisai <fmfsaisai@gmail.com>
2026-10-31 13:32:51 +08:00
Lizi
b0511cbac5 Merge pull request #8148 from makecindy/feat/mcp-apps-host-sdk
feat(mcp-apps): 提供宿主 SDK 并隔离换页前后的请求
2026-10-31 14:28:12 +09:00
Dash
e6aec511b8 docs: register the iOS widget's App Group data
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-31 18:19:52 +13:00
Dash
5cde375423 refactor(quota): share panel logic across platforms
QuotaPanelController owns the complete panel view (task activity, remote-control
indicator), the low-quota notification and every panel command. The macOS menu bar
service only runs its native helper as a QuotaPanelPresenter; another platform's
panel implements the same presenter.

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-31 18:19:49 +13:00
Dash
33e0ecc483 feat(quota): standalone quota overview, offline computers, widget data source
- Move collection, caches and rebuild cadence out of the macOS menu bar panel into
  quota-overview/service.ts; the panel holds it, phone requests lease it, so any
  platform answers the widgets whether or not a panel runs.
- Keep an unreachable computer's accounts with their last reading for up to 3 days,
  marked with their age and never recommended; retry failed remote reads after 1 min.
- Store each computer's widget state in the App Group; widgets pick a data source
  (automatic = the computer that answered last, or a specific computer).

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-31 18:19:49 +13:00
Dash
985214bc11 feat(mobile): iPhone 桌面小组件(订阅余量、每日用量)
新增 WidgetKit 扩展 CindyHomeWidgets,照 Mac 菜单栏面板的试管、数字字体与配色绘制
订阅余量与每日用量两种组件(小 / 中 / 大)。Desktop 新增只读通道
device-link:usage-widget:snapshot:v1,投影菜单栏面板已构建的视图;手机 App 在前台
时读取快照写入 App Group 并刷新组件,切换或退出账号时清空。

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-31 18:19:48 +13:00
Chris
378820a7fe feat(i18n): add Simplified 文言 edition and classical reply styles
- New locale zh-Hans-x-lzh, generated from the Traditional edition (copy kept
  verbatim from zh-TW takes the zh-CN value; the rest goes through OpenCC tw2sp).
  Falls back to zh-CN, then en; never chosen from the OS language.
- The language menu has a single 文言 entry. Choosing it adds a row to the same
  card for script (简体 / 繁體) and AI reply style: classical prose (default),
  Tang poetry, Song ci, Yuan qu, Chu ci, parallel prose, pre-Qin masters,
  historian, Ming–Qing essays, or plain replies with the classical interface.
- Styles live in @cindy/maker-shared/classical-reply, grouped by literary
  family so Japanese / Korean classical editions can add their own later.
- The style rides the per-turn [UI language] note next to uiLanguage; the
  cached system prompt is unchanged. Desktop mirrors its choice to main over
  IPC; Mobile sends its own with each turn; IM channels keep the error-language
  note only.
- QA previews, glossary, docs and the installer message check cover the new
  edition.

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-10-31 13:18:15 +08:00
Chris
3019820b8f feat(i18n): add Classical Chinese (文言) UI edition with classical AI replies
Add a hand-selectable Classical Chinese locale (zh-Hant-x-lzh) across
Desktop, Mobile and native copy, written in Traditional characters with
Cindy's playful ancient-style voice, verse on welcome and milestone
screens, and plain wording for deletion, permission, credential and
payment prompts.

- The private-use tag keeps Intl dates, numbers and plurals on zh-Hant;
  missing keys fall back to zh-TW, then English. OS languages never
  resolve to it, and an app locale passed back through the main-process
  resolver keeps its identity instead of folding into zh-TW.
- With this interface the per-turn UI language note also asks the model
  to reply in Classical Chinese; switching languages replaces the note
  and ends the style. IM channels keep the error-language-only note.
  The cached system prompt is unchanged.
- Server-facing locales stay on existing values (zh-TW / zh-CN).
- Record the style guide and glossary terms; refresh login QA previews.

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-10-31 13:18:14 +08:00
Lizi
af22c65892 Merge pull request #8166 from makecindy/cindy/eager-leakey
fix(i18n): 校对法语西语文案并兼容旧端回执
2026-10-31 14:15:37 +09:00
Lizi
6ca4ac5440 Merge pull request #8102 from zqchris/session-importer
feat(session-import): 全新任务导入器,支持 11 个工具并可直接接着做
2026-10-31 14:14:04 +09:00
Lizi
ebb2b34a7c Merge pull request #8177 from makecindy/feat/publish-page-manual
feat(release): 按内容寻址发布页面生成手册
2026-10-31 14:12:01 +09:00
DavidShen
cfa16f2da6 merge: sync main and reconcile locale updates for PR 8028
Signed-off-by: DavidShen <david@xd.com>
2026-10-31 12:40:07 +08:00
DavidShen
c8fe111b50 fix(desktop): route share favorites and catalog invalidations through task host
Signed-off-by: DavidShen <david@xd.com>
2026-10-31 12:36:34 +08:00
Lizi
d9a1e4a7c2 Merge pull request #8171 from zqchris/codex-provider-compat
fix(codex): 修复订阅和 Cindy AI 的供应商接线冲突
2026-10-31 13:30:46 +09:00
Chris
e74a57bc54 feat(session-import): phone entry and agent tools
- Remote Resource 'session-import' (scan, job progress, import, cancel);
  paths and source locators never leave the computer
- Mobile device page gains 'Import from Other Tools' with the same list,
  progress and results; source marks shared via maker-shared
- cindy_helper control tools scan_importable_sessions / import_sessions /
  get_session_import_status (local), ledger updated
- Concurrent imports from desktop, phone and agent skip in-flight items

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-10-31 12:28:49 +08:00