Commit Graph

16 Commits

Author SHA1 Message Date
Dash
04a1cf914a feat(host): preserve canonical Codex history across account changes
Wire the shared thread storage hooks with owner-bound profile and account services. Cover read-only lookups, late Desktop export replacement and native resume, archive, fork and route handoffs without relocating the original history or SQLite directory.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-14 15:08:53 +13:00
Dash
f4426ac940 merge: sync main for subscription account placement
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-14 09:50:52 +13:00
Hariketsu
e2e94840d6 feat(host): let a release choose which agent harnesses to bundle
Distributions that ship fewer agents (for example a NAS app that only offers
Pi) had to edit build.mjs, or delete harness directories after the build,
which leaves SHA256SUMS.json out of sync with the release.

Add a --harnesses option (comma-separated), with CINDY_HOST_HARNESSES as a
fallback; the option wins. Without either, all four harnesses are bundled as
before. Unknown or empty selections fail before any build work, selecting
pi-bin without ripgrep-bin prints a warning because Pi's search and file
tools need ripgrep, and the selection is recorded in release.json.

Closes #10404

Signed-off-by: Hariketsu <88932209+Hariketsu@users.noreply.github.com>
2026-11-13 22:01:43 +08:00
Dash
b1b26f52a0 Merge main into cindy/host-m1-rc3 for Host services
Preserve the shared Host services and client IPC route. Resolve only
the overlapping assembly, runtime and test changes.

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Assisted-by: Cindy (https://cindy.app)
2026-11-14 01:17:35 +13:00
Dash
d5bd6276ae fix(host): preserve running tasks and settle failed turns
Running Claude tasks continue when credentials change. Failed and stopped
turns settle their own Git baseline. Match test isolation and tiers to CI,
including Windows fixtures, both Vitest pools and source-contract guards.

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Assisted-by: Cindy (https://cindy.app)
2026-11-14 01:17:35 +13:00
Dash
6a48285974 feat(host): run Claude, Codex and Pi tasks on the Node Host as the desktop does
The Node Host builds its Claude, Codex and Pi engines from the same
modules as the desktop, with its own ports: model context and efforts,
disabled and managed Skills, the plugin roster and capability routing,
engine model lists, turn change sets and git savepoints, worktree
runtime leases, the loopback compatibility proxy and subscription
bridges, Codex native login reconciliation and invalidation, Pi native
providers and packages, the Pi persistent subagent runner, auto-review
and the auxiliary model chain, the vision bridge, the /learn capture,
and the event and tool input redaction before events leave the Host.

Parity tests run the desktop and Host code on the same inputs; Host
end-to-end scripts run the bundled engines against a local mock
upstream with an isolated HOME.
docs/host/personal-migration-release-table.md records, item by item,
what is aligned, the known differences and what remains before the
personal edition can move to the Host.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-13 22:44:27 +13:00
Dash
cc78b32da4 refactor(plugins): share plugin availability and managed Skills with the Node Host
The plugin availability lookups move verbatim from cindy-brain/index.ts
into ghostAvailability.ts, and the managed Skill catalog (built-in and
approved plugin Skills, each approved snapshot re-verified against its
install receipt) moves verbatim from managed-skills.ts into
managedSkillsCore.ts. The desktop exports forward to them with the
desktop's manager and registry, read when called. The Pi subagent runner
launch checks in cindy-brain move into piSubagentRunnerLaunchCore.ts the
same way.

The Host plugin runtime and gateway list managed Skills, read plugin
identity, expose the plugin roster and the custom MCP registry reads as
the desktop does. Approval records, manifests, packaging and the install
layout are unchanged; installed plugins keep working without any action.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-13 22:44:27 +13:00
liugaowei
374bfeca5d merge: 同步插件公共入口与主干宿主装配
合入 209212431e,保留凭证复用和现有风险守卫;Node 平台 provider 与插件共用,Skill 迁移到记录制版本 113。

Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-12 10:29:34 +08:00
Dash
dc32b12ade fix(host): preserve desktop startup and close handoff review gaps
Keep platform imports and Electron monitor access at the original desktop lifecycle points. Preserve extension wake failures and settle stale-owner relays. Keep sidebar operations at their canonical source path.

Bind native session cleanup to its executing client, close platform transports before runtime shutdown, and route trusted browser settings to the Host executor.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-12 02:49:47 +13:00
Dash
6e11d2dc35 feat(host): separate background lifecycle and desktop platform execution
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-12 02:14:03 +13:00
liugaowei
a7f5289e84 feat(host): 接入插件公共宿主工具与客户端确认
Node Host 复用同一 helper registry、终端服务和调用授权,首次能力批准保存在既有 receipt。确认按客户端协商并绑定真实控制窗口,取消与断线不进入任务事件回放。

Signed-off-by: liugaowei <liugaowei@xd.com>
2026-11-11 18:23:29 +08:00
Dash
3eb486ea64 feat(host): normalize local attachments through shared queue services
Bind media ingestion and rollback to the originating account. Reuse queued attachment ownership for edits, persistence, and cancellation; keep shared blob bytes until the Host recycler is connected. Separate owner-runtime temporary roots with a shared process liveness identity.

Validate queue and native Codex image/file delivery with isolated files and SQLite. Remote attachment transport remains explicitly unsupported; desktop production code is unchanged.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-11 21:51:02 +13:00
Dash
b75adc4b38 refactor(host): route task sends through the shared transaction
Preserve desktop dispatch behavior, input settings and the existing authorization boundary. Bind refreshed runtimes to the current input and durably mark Host turns before provider startup.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-11 15:30:11 +13:00
Dash
0494c9235d fix(host): embed raw package assets and expose startup readiness
Validate the standalone artifact outside the checkout and record isolated trial limits.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 13:36:05 +13:00
Dash
b465adf684 refactor(host): share scheduler services without changing desktop ownership
Keep scheduler business modules at their original paths and inject desktop
services through explicit assemblies. Reuse scheduler queue admission and
accepted callback handling in the Host durable queue, including Stop races.
Exercise script execution, capability denial and restart persistence with
an isolated SQLite integration fixture. Preserve the six remaining shared
module paths so upstream changes continue to land in the common bodies.

Full Host startup wiring, companion/IM ownership and Linux credential
deployment remain pending and are recorded in the implementation plan.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 12:38:03 +13:00
Dash
2c230ea21f WIP: share headless runtime services with desktop adapters
Preserve the implemented task, Device Link, plugin and model runtime work locally before integrating main. Full multi-client, automation and platform acceptance remains incomplete.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 11:11:41 +13:00