* ✨ feat(session): persist and synchronize read state * 🌐 fix(client): complete Japanese labels after base update * 📝 docs: refresh session read-state dependency graph * 🧪 test(web): align session menu and read-state snapshots * 🌐 fix(session): complete Japanese plugin metadata * 🧪 test(web): distinguish unread from pending user input * 🐛 修复会话阅读状态的故障隔离与生命周期 * 🐛 修复阅读状态依赖检查并补齐自动已读覆盖 * 🐛 恢复会话绿点并移除未读标题加粗 * ♻️ Keep shared session reading state in Host memory * 🌐 Complete reading-state metadata for supported locales * 📝 Refresh module graph after removing storage dependency * 🧹 Move storage dependency policy out of memory-only reading * 🐛 Wait for sidebar catalog before replay navigation * 🔧 Give Host TypeScript checks 8 GiB of heap * ✅ Align Host heap checks and Windows diagnostics * ♻️ Keep CI repairs outside the session reading PR * 🐛 Show failed unread turns with an error indicator * 🔧 Adjust npm layout budget for the reading package * 🧪 Scope projection stream assertions to observed units * 🧪 Scope permission and title assertions to their projections * ♻️ Simplify session reading updates to explicit positions * 🐛 Align session reading package with release version * 🧪 Load reading state in LiveShare viewer fixtures * 🧹 Remove persistence-only type link from memory PR * 🧪 Align context menu expectations with reading actions * 🐛 Sync reading package with the release version * 🧪 Include turn boundaries in session summary expectations * ♻️ Derive reading failure facts from Host events instead of a projection The reading service took each completion from the Agent turn-boundary projection, which forced a stateVersion bump and put that projection's whole internal state on the wire for every Session list row. The service now records `turn/end` itself, so `core/agent` and the persisted projection schema are untouched. History that ended before the service started raises no reminder, which keeps "existing history reads as read" without a startup scan. The failure flag therefore describes only turns this Host observed: marking a Session whose last turn failed before a restart shows the ordinary unread reminder. * 🐛 Preserve manual unread until explicit Session interaction * 🧪 Align cold Session reading snapshot with unloaded title * 🔖 chore(session): align session-read-state with 0.2.2-rc.2 Master moved the root and every released manifest to 0.2.2-rc.2, but the new dsh-session-read-state package still declared 0.2.2-rc.1, failing constraints, verify-version-sync, verify-npm-install-layout, and release:verify after the master merge. * ♻️ refactor(gateway): recognize Remote stream carrier loss by error code RemoteStream now decides whether a generation end or failure is a retryable carrier loss by the stable code 'gateway/carrier-lost' instead of `instanceof RemoteStreamCarrierError`. RemoteStreamCarrierError keeps working and carries that code, so existing callers are unchanged, while a Client feature package can return a coded Error from `ended` without importing the class. The new RemoteStreamCarrierFailure type describes such errors; terminal-controller classifies disconnects the same way. * ♻️ refactor(session): move Session reading into ui-session-status Fold the reading feature into the single package packages/client/ui-session-status and delete session-read-state. - Host face: SessionStatusService keeps in-memory reading records and serves the sessionStatus Remote namespace (mark, follow) with session-status/* error codes; its service key is registered only for Gateway discovery and is not declared on Context. - Client face: a package-internal reading model follows the Host stream through RemoteSnapshotStream; ctx.uiSession.sessionStatus folds the records into completionUnread and completionFailed and exposes mark and readingReady; main-view acknowledgement and the session-status/read-intent event live here. No reading service or type is exported. - verify-client-packages lets a packages/client feature package request packages/api rows through dsh.client.external; feature-to-feature requests stay rejected. - ui-workspace, ui-conversation, bundles, remotes, LiveShare, the client test runtime, docs, Agent Notes, and the upgrade guide follow. * ♻️ refactor(session): clear manual unread only when the main view switches to the Session Remove the session-status/read-intent event. ui-session-status now clears an existing manual unread mark when the main view switches to a different Session, including the first selection after a page load, once the reading baseline is ready and the body arrives. Window focus, visibility changes, a replaced binding for the same Session, and activity in the open Session preserve manual unread. ui-conversation returns to master (only the ui-session-status client tsconfig reference remains), and ui-workspace navigation no longer emits the event. Tests, the session-reading Web e2e case, READMEs, and the reading Agent Note follow the new rule. * 🐛 fix(session): address the Session status review findings - Open the reading stream only while ctx.remoteAccess allows sessionStatus/follow, so a LiveShare viewer opens no owner-only stream, keeps readingReady false, and logs no synchronization failure; access changes start or stop the stream. - Hide the unacknowledged completion of the Session the visible, focused main view retains; manual marks stay visible, completionFailed follows completionUnread, and the reminder returns on blur, hiding, or a switch. - Declare ctx.sessionStatus on Context and restore its SERVICE_PAGE and SERVICE_ROLES entries; the service and SessionRead* types document on docs/subsystems/web-client.md, which now owns the reading section with the failed field. - Document that a Host plugin reload can leave the Client with a terminal error until a page reload; drop the redundant types import and the unused publish() result. - Archived Sessions read as read and offer no reading mark in the row menu or the toggle-read shortcut. - session.toggleRead names the open dialog, open panel, or archived Session that blocks it instead of asking to select a Session. - isRemoteStreamCarrierFailure rejects a RemoteError from the Host even when it carries gateway/carrier-lost; the code is Client-local. - ./types is types-only like ui-trajectory, and files no longer ship lib/types JavaScript. * 🐛 fix(session): close the remaining Session status review gaps - The Gateway Client exports isRemoteStreamCarrierFailure, and the terminal view uses it, so a Host RemoteError carrying the carrier code shows as failed rather than disconnected. - Each access grant's reading stream carries a token: frames a revoked or superseded stream still delivers are discarded, and cleanup waits for disposal before leaving reading unavailable unless a newer grant is active. - The status table hides the viewed Session's natural reminder only while that Session is open; the panel case is a documented limitation. - The README limitation and the upgrade guide state that only the main-view switch rule, including a reload restore, clears manual unread automatically. - Add the missing blank line before the next heading in the web-client reading section. * ♻️ refactor(session): install reading under the Session status table - apply returns to master's form plus one line: UiSessionStatus is the root, published as the useSessionStatus source, and installReading() from the new src/client/read.ts follows Host reading records into it. UiSessionStatus takes master's three constructor parameters and creates its own SessionReadModel as the package-internal `reading` member; installSessionStatus is removed and acknowledge.ts stays a separate file. - The viewed Session's snapshot subscription republishes the table only when its openState changes, so streamed events do not rebuild it. - Remove the obsolete Dev Note sentence about failure outcomes. - session.toggleRead passes when the Peer may not mark reading, matching the row menu, and reports readingUnavailable only while unsynchronized. --------- Co-authored-by: imccyu <[email protected]> Co-authored-by: imccyu <[email protected]>
178 lines
9.4 KiB
JSON
178 lines
9.4 KiB
JSON
{
|
|
// Client-side typecheck aggregate: packages/client tests and top-level Client benchmarks.
|
|
// Split from the host aggregate because both sides merge cordis Context
|
|
// under the same keys (sessions, loader) with different services; shared
|
|
// leaves (session/llm/tools/...) build once and are referenced by
|
|
// both programs through each client package's own references.
|
|
"extends": "./tsconfig.base.client.json",
|
|
"compilerOptions": {
|
|
"noEmit": true,
|
|
"rewriteRelativeImportExtensions": false,
|
|
// Tests execute under vitest on node (e2e files spawn processes); browser
|
|
// purity of package src is each package's own tsconfig plus
|
|
// scripts/client-bundle-purity.spec.ts.
|
|
"types": ["node"]
|
|
},
|
|
"include": [
|
|
// The native/renderer keyboard fixture imports only these Cordis-free Desktop modules.
|
|
"apps/desktop/tests/keyboard.spec.ts",
|
|
"apps/desktop/src/keyboard.ts",
|
|
"apps/desktop/src/keybindings.ts",
|
|
"apps/desktop/src/browser-guests.ts",
|
|
"apps/desktop/src/ipc.ts",
|
|
"apps/desktop/src/update-overlay.ts",
|
|
"apps/desktop/src/windows-layout.ts",
|
|
"apps/desktop/tests/**/*.client.spec.tsx",
|
|
// Source-subpath test imports can arrive through workspace links whose
|
|
// realpath semantics vary by host. Load package CSS declarations directly.
|
|
"packages/client/*/src/css-modules.d.ts",
|
|
"packages/experimental/*/src/css-modules.d.ts",
|
|
"packages/client/*/tests/**/*.ts",
|
|
"packages/client/*/tests/**/*.tsx",
|
|
"benchmarks/**/*.client.ts",
|
|
"benchmarks/**/*.client.tsx",
|
|
"benchmarks/support/**/*.ts",
|
|
"packages/*/*/tests/**/*.client.spec.ts",
|
|
"packages/*/*/tests/**/*.client.spec.tsx",
|
|
"packages/*/*/tests/**/*.client.tsx",
|
|
"packages/*/*/tests/**/*.client.ts",
|
|
// Client package outside packages/client with a local CSS module face.
|
|
"packages/extensions/ui-cordis/src/css-modules.d.ts",
|
|
"packages/client/tsdown.client.ts",
|
|
"scripts/client-build-environment.ts",
|
|
"scripts/shipped-locales.ts",
|
|
"scripts/bundle-input-isolation.ts",
|
|
"scripts/experimental-package-policy.ts",
|
|
"scripts/*.client.spec.ts",
|
|
"scripts/client-bundle-css.spec.ts",
|
|
"scripts/client-bundle-purity.spec.ts"
|
|
],
|
|
// Host unit tests (`*.host.spec.ts`), e2e tests (`*.host.e2e.ts`), and fixtures
|
|
// (`*.host.ts`) belong to the host aggregate, which excludes `*.client.*`
|
|
// in turn. `exclude` wins over `include`, so the test glob above stays broad.
|
|
"exclude": [
|
|
"packages/client/*/tests/**/*.host.spec.ts",
|
|
"packages/client/*/tests/**/*.host.e2e.ts",
|
|
"packages/client/*/tests/**/*.host.ts"
|
|
],
|
|
"references": [
|
|
{ "path": "./packages/experimental/client-ui-action-cards" },
|
|
{ "path": "./packages/experimental/client-ui-creation-recommendations" },
|
|
{ "path": "./packages/experimental/client-ui-plugin-recommendations" },
|
|
{ "path": "./packages/client/ui-file-drag" },
|
|
{ "path": "./packages/session/message-quotes" },
|
|
{ "path": "./packages/experimental/client-ui-cot-translation/tsconfig.client.json" },
|
|
{ "path": "./packages/client/product-analytics/tsconfig.client.json" },
|
|
{ "path": "./apps/desktop/tsconfig.client.json" },
|
|
{ "path": "./packages/util/atomic-write" },
|
|
{ "path": "./packages/experimental/client-ui-voice-input" },
|
|
{ "path": "./packages/experimental/client-ui-claude-code-mods" },
|
|
|
|
{ "path": "./packages/client/ui-sidebar-terminal" },
|
|
{ "path": "./packages/api/terminal-controller/tsconfig.client.json" },
|
|
// Producer-to-UI spill tests use the ptc-runtime contract with the real tool registry.
|
|
{ "path": "./packages/ptc-runtime/ptc-runtime" },
|
|
{ "path": "./packages/core/tool-executor-native" },
|
|
{ "path": "./packages/core/tool-executor-ptc" },
|
|
{ "path": "./packages/client/ui-settings-account" },
|
|
{ "path": "./packages/client/ui-account-notifications" },
|
|
// Shared leaf: web e2e boots the real host webserver (fixture + real-host
|
|
// smoke policy). webserver has zero workspace deps and no cordis merge,
|
|
// so it cannot drag host-side Context augmentation into this program.
|
|
{ "path": "./packages/host/webserver" },
|
|
// Compaction seam: ui-chat type-imports the canonical checkpoint contract
|
|
// from the cordis-free dsh-compaction/checkpoint leaf. Composite rootDir
|
|
// rules make that path depend on this project reference.
|
|
{ "path": "./packages/compaction/compaction" },
|
|
{ "path": "./packages/client/store" },
|
|
{ "path": "./packages/client/ui-slots" },
|
|
{ "path": "./packages/client/ui-attachment" },
|
|
{ "path": "./packages/client/ui-primitives" },
|
|
{ "path": "./packages/client/modules" },
|
|
{ "path": "./packages/experimental/inspector/tsconfig.client.json" },
|
|
{ "path": "./packages/experimental/liveshare-protocol/tsconfig.client.json" },
|
|
{ "path": "./packages/experimental/liveshare/tsconfig.client.json" },
|
|
{ "path": "./packages/experimental/session-inspector" },
|
|
{ "path": "./packages/experimental/client-ui-forge/tsconfig.client.json" },
|
|
{ "path": "./packages/client/hmr" },
|
|
{ "path": "./packages/client/connection/tsconfig.client.json" },
|
|
{ "path": "./packages/client/file-upload/tsconfig.client.json" },
|
|
{ "path": "./packages/typert/registry" },
|
|
{ "path": "./packages/api/gateway/tsconfig.client.json" },
|
|
{ "path": "./packages/api/session-controller/tsconfig.client.json" },
|
|
{ "path": "./packages/api/remote-access/tsconfig.client.json" },
|
|
{ "path": "./packages/api/workspace-controller/tsconfig.client.json" },
|
|
{ "path": "./packages/api/remotes/tsconfig.client.json" },
|
|
{ "path": "./packages/extensions/cordis-client-runner" },
|
|
{ "path": "./packages/extensions/ui-cordis" },
|
|
{ "path": "./packages/test-support/client-runtime" },
|
|
{ "path": "./packages/test-support/remote-mock" },
|
|
{ "path": "./packages/test-support/tool-testkit" },
|
|
{ "path": "./packages/client/shortcuts/tsconfig.client.json" },
|
|
{ "path": "./packages/client/ui-shortcuts" },
|
|
{ "path": "./packages/client/ui-context-menu" },
|
|
{ "path": "./packages/client/ui-file-actions" },
|
|
{ "path": "./packages/client/ui-layout" },
|
|
{ "path": "./packages/client/ui-sidebar" },
|
|
{ "path": "./packages/client/ui-brand-official" },
|
|
{ "path": "./packages/client/ui-approval" },
|
|
{ "path": "./packages/client/ui-chat/tsconfig.client.json" },
|
|
{ "path": "./packages/client/ui-conversation/tsconfig.client.json" },
|
|
{ "path": "./packages/client/ui-tool" },
|
|
{ "path": "./packages/client/ui-deliverables/tsconfig.client.json" },
|
|
{ "path": "./packages/client/ui-workflow-run" },
|
|
{ "path": "./packages/client/ui-workspace" },
|
|
{ "path": "./packages/client/ui-input-trigger" },
|
|
{ "path": "./packages/client/ui-commands" },
|
|
{ "path": "./packages/client/ui-skill" },
|
|
{ "path": "./packages/client/ui-reference" },
|
|
{ "path": "./packages/client/ui-secret-mask" },
|
|
{ "path": "./packages/client/ui-subagent" },
|
|
{ "path": "./packages/client/ui-agent-team" },
|
|
{ "path": "./packages/experimental/client-ui-stats" },
|
|
{ "path": "./packages/client/ui-dockkit" },
|
|
{ "path": "./packages/client/ui-sidebar-right" },
|
|
{ "path": "./packages/client/ui-entry-customization" },
|
|
{ "path": "./packages/client/ui-sidebar-documentpreview/tsconfig.client.json" },
|
|
{ "path": "./packages/client/ui-sidebar-browser/tsconfig.client.json" },
|
|
{ "path": "./packages/client/ui-sidebar-files" },
|
|
{ "path": "./packages/client/ui-jobs" },
|
|
{ "path": "./packages/client/ui-schedule" },
|
|
{ "path": "./packages/client/ui-directory-picker-browse" },
|
|
{ "path": "./packages/client/ui-directory-picker-native" },
|
|
{ "path": "./packages/client/ui-goal" },
|
|
{ "path": "./packages/client/ui-message-feedback" },
|
|
{ "path": "./packages/client/ui-model-selection" },
|
|
{ "path": "./packages/client/ui-agent-preset" },
|
|
{ "path": "./packages/client/ui-permission-presets" },
|
|
{ "path": "./packages/client/ui-plan" },
|
|
{ "path": "./packages/client/ui-settings-plugins" },
|
|
{ "path": "./packages/client/ui-settings-shell" },
|
|
{ "path": "./packages/client/ui-settings-agent-loop" },
|
|
{ "path": "./packages/experimental/cua/tsconfig.client.json" },
|
|
{ "path": "./packages/client/ui-settings-session-log" },
|
|
{ "path": "./packages/client/ui-settings-subagent" },
|
|
{ "path": "./packages/client/ui-settings-web-search" },
|
|
{ "path": "./packages/client/ui-user-questions" },
|
|
{ "path": "./packages/client/ui-trajectory/tsconfig.client.json" },
|
|
{ "path": "./packages/session-query/session-log-export/tsconfig.client.json" },
|
|
{ "path": "./packages/client/ui-open-in-app" },
|
|
{ "path": "./packages/client/ui-theme/tsconfig.client.json" },
|
|
{ "path": "./packages/client/ui-settings/tsconfig.client.json" },
|
|
{ "path": "./packages/client/ui-settings-general/tsconfig.client.json" },
|
|
{ "path": "./packages/client/ui-settings-models" },
|
|
{ "path": "./packages/client/ui-plugin-manager/tsconfig.client.json" },
|
|
{ "path": "./packages/client/ui-plugin-market" },
|
|
{ "path": "./packages/client/ui-settings-plugin-inventory" },
|
|
{ "path": "./packages/client/locale/tsconfig.client.json" },
|
|
{ "path": "./packages/client/ui-renderer" },
|
|
{ "path": "./packages/client/ui-session" },
|
|
{ "path": "./packages/client/ui-session-status/tsconfig.client.json" },
|
|
{ "path": "./packages/client/resources" },
|
|
{ "path": "./packages/api/workspace-files/tsconfig.client.json" },
|
|
{ "path": "./packages/client/web" },
|
|
{ "path": "./packages/context/file-reference" },
|
|
{ "path": "./apps/web" }
|
|
]
|
|
}
|