* chore: establish main-based DSH 0.1.7 baseline * fix(windows): harden installer signing and signed package gate * refactor(windows): launch Harness with Electron Node mode * fix(release): place Windows publisher in signtool options * feat(windows): stage installer directories before atomic promotion * fix(plugins): keep concurrent generation changes during rollback * fix(market): validate generation peers before publication * test(windows): exit packaged native probe after successful call * fix(plugins): preserve manager registry for generation fetch * fix(plugins): commit manager install only after enablement * test(release): assert native probe exit diagnostics * test(windows): verify native call using child completion marker * feat(packaging): archive app shell with physical runtime dependencies * refactor(plugins): route market installs through generation backend * fix(windows): retain Node until native loader supports Electron runtime * docs(release): record packaged runtime compatibility gate * fix(client): define conversation accessory CSS during module load * fix(windows): embed verified Windows extractor in installer * fix(release): compare Windows signer common name structurally * ci(windows): allow rechecking an existing signed installer * revert(ci): defer standalone smoke workflow until default branch * ci(signing): skip npm cache restore on self-hosted signer * ci(windows): recheck signed installers without rebuilding * fix(windows): sign NSIS uninstaller during repackaging * fix(signing): retain vendor signatures and configure SHA-256 array * test(windows): locate installed Harness log across app data paths * fix: use latest Harness URL in signed installer smoke * test: bound signed installer smoke and show upgrade stages * fix: keep prior install when choosing another Windows directory * fix: remove unused NSIS old-uninstaller function * fix: remove obsolete NSIS uninstaller helpers * ci: distinguish startup progress logs from runtime errors * ci: reuse unsigned artifact and bypass slow signer proxy * ci: use unique proxy environment names * ci: clear lowercase proxy inherited by signing runner * refactor: build PPT runtime from source (#512) * feat: adapt Desktop to Harness 0.1.6-alpha.2 (#499) * feat(release): configure initial 5% rollout on crash service (#401) - Add configure-rollout.mjs script to manage platform rollout rules on crash service - Integrate initial 5% rollout step into release workflow - Add unit tests covering creation, update, and race condition conflict recovery * fix(llm): send Harness session headers through pi-ai (#329) Co-authored-by: yaojin3616 <yaoj.alex@gmail.com> * fix(llm): recover missing terminal content (#400) Co-authored-by: Debug Agent <debug-agent@noreply.local> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> * feat: import the local web Harness home on first launch (#397) * feat: import the local web Harness home on first launch Copy ~/.dsh into an unused desktop home so same-machine web users are not treated as a fresh install. Co-authored-by: Cursor <cursoragent@cursor.com> * fix(market-baseline): treat pnpm isolated-store symlinks as valid installs In dev mode (dsh-desktop-dev), profiles have no nodeLinker:hoisted config so pnpm installs dshmarket as a symlink into .pnpm/…. The previous isSymbolicLink() check treated any symlink as a stray generation link, deleted it, then called pnpm to reinstall — which recreated the same symlink. The post-install guard rejected it and the app entered Safe Mode on every dev launch. Fix: read the symlink target and only treat paths containing `.generations` as generation links. pnpm isolated-store symlinks (.pnpm/…) are left alone in demoteMarketGeneration and ensureMarketBaseline, and are accepted by upgradeMarketInSharedTree's post-install verification. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: fairy <3054158379@qq.com> Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: yaojin3616 <yaoj.alex@gmail.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> * fix(test): correct patch indentation in provider-error-patch.test.ts (#433) * fix(test): correct patch indentation in provider-error-patch.test.ts * fix(types): add type declarations for configure-rollout.mjs and resolve typecheck errors * fix(diagnostics): 减少误报故障反馈、优化插件自愈免报与修复 Windows 启动缺陷 (#418) * fix(diagnostics): reduce false-positive crash reports and fix Windows startup issues - Suppress false-positive unclean-exit reports when previous session log was healthy - Mark clean exit synchronously on before-quit and handle Windows session-end - Defer plugin failure reports during startup and discard them when recovery succeeds - Fix Windows EPERM on junction removal in ensureSymlink (@deepseek-ai/dsh-app-boot) - Use pathToFileURL in loadDesktopResource to avoid ERR_FAILED (-2) on non-C drives - Enrich render-process-gone logs in harness.log with URL and GPU feature status - Enable V8 compile cache (NODE_COMPILE_CACHE) for faster Node.js restarts * fix(windows): declare asInvoker, enable long paths, and defer profile inspection * feat(runtime): prefix harness.log lines with ISO date timestamp * feat(release): sign inner Windows binaries and repackage NSIS installer with SafeNet UKey * fix(release): harden Windows inner signing with version sync and fallback * fix(runtime): use platform-specific path join for NODE_COMPILE_CACHE * fix(types): add type declarations for configure-rollout.mjs and resolve typecheck errors * test: serialize suites on Windows CI and set global timeout to prevent hangs * fix(release): verify PE header for .node files to skip non-Windows prebuilds in Jsign * perf(windows): exclude build-tool deps and add Defender exclusions on install - Exclude ~2,000 build-tool-only transitive files from the Windows package: caniuse-lite (838 JS files, browserslist/babel only) lodash (1,048 JS files, only used by @malept/flatpak-bundler linux tool) browserslist / electron-to-chromium / update-browserslist-db (15 files) @malept/* (flatpak bundler, Linux-only build tool) Excluded packages are verified to have no runtime dependency chain: - @mixmark-io/domino kept (dsh-tool-web → turndown → domino) - jsdom kept (dsh-ppt runtime dep) - dsh-ppt's nested typescript kept (only top-level typescript is absent) - Add Windows Defender exclusions in NSIS installer (customInstall macro): Add-MpPreference for $INSTDIR and $APPDATA\dsh-desktop via PowerShell. Uses -ErrorAction SilentlyContinue so non-admin installs fail silently. Without this exclusion Defender scans 44k files on first launch (observed: 121-123 s until Harness ready on a fresh install). With the exclusion, first launch should complete in under 20 s. * fix(release): align package.json version with package-lock.json (0.1.1) * fix(test): correct patch indentation in provider-error-patch.test.ts * fix(windows): optimize titlebar layout, integrate more actions into app menu, and fix sidebar overlap (#409) * perf(windows): cut 20k non-runtime files, elevate defender exclusion, and relax startup timeout (#435) * fix(diagnostics): suppress unclean-exit after upgrade or overwrite in… (#437) * fix(diagnostics): suppress unclean-exit after upgrade or overwrite install An in-app update can be force-killed before will-quit, and a leftover session marker from another version is a reinstall, not a crash. Co-authored-by: Cursor <cursoragent@cursor.com> * fix(diagnostics): suppress startup failure report when frontend identifies incompatible plugins * fix(build): preserve runtime skill markdown files in build output and update ppt artifacts --------- Co-authored-by: fairy <3054158379@qq.com> Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: yaojin3616 <yaoj.alex@gmail.com> * fix(windows): clear session marker on overwrite install (#440) NSIS force-kills the running app, so will-quit never clears session.json and a same-version overwrite looks like an unclean exit. Co-authored-by: fairy <3054158379@qq.com> Co-authored-by: Cursor <cursoragent@cursor.com> * Fix/suppress upgrade unclean exit (#441) * fix(diagnostics): suppress unclean-exit after upgrade or overwrite install An in-app update can be force-killed before will-quit, and a leftover session marker from another version is a reinstall, not a crash. Co-authored-by: Cursor <cursoragent@cursor.com> * fix(diagnostics): suppress startup failure report when frontend identifies incompatible plugins * fix(build): preserve runtime skill markdown files in build output and update ppt artifacts * update * update * update * update --------- Co-authored-by: fairy <3054158379@qq.com> Co-authored-by: Cursor <cursoragent@cursor.com> * docs: stop tracking plugin-management and keep it local only (#443) Co-authored-by: fairy <3054158379@qq.com> Co-authored-by: Cursor <cursoragent@cursor.com> * docs: 建立仓库级 AGENTS.md 开发约束与治理规范 (#428) * docs: establish repository-wide AGENTS development standards and governance contracts - Add root AGENTS.md defining project boundaries, TypeScript code style, dependency/data constraints, and verification runbooks. - Add directory-scoped AGENTS.md rules for src/main, src/preload, packages, patches, and build. - Add supporting design specifications: - docs/code-standards.md (design rationale and phased tool enforcement) - docs/patch-plugin-contract.md (patch vs plugin selection and slot compatibility) - docs/source-build-contract.md (single authoritative source and build artifact boundaries) * docs: 补齐 AGENTS 前端硬约束与企业/编译型包覆盖 把主题 token、locale、preload 与 slot 边界写成可执行规则,并标出 enterprise 存量与 ppt-runtime 的维护入口。 --------- Co-authored-by: fairy <3054158379@qq.com> * fix(security): allow notifications permission from the harness window (#461) The allowlist only covered clipboard-sanitized-write, so notification permission requests from the harness page could not be granted. The loopback main-frame checks are unchanged, so the trust boundary is the same. * fix(release): honor platform target and add signed-only dispatch mode (#468) A filled prerelease tag previously forced a Windows build even when macos was selected. Dispatch now separates development, signed, and prerelease so production-identity packages can be signed without publishing. Co-authored-by: fairy <3054158379@qq.com> Co-authored-by: Cursor <cursoragent@cursor.com> * fix(settings): keep long navigation menus scrollable (#456) * fix(settings): keep long navigation menus scrollable * fix(settings): add navigation overflow patch * feat(safe-mode): add floating repair agent widget in recovery and safe mode (#431) * feat(safe-mode): add floating repair agent widget in recovery and safe mode - Add floating repair agent FAB widget on plugin recovery and safe mode overlay - Provide pre-configured quick action prompts with error diagnostics and logs - Support switching models and uploading/pasting screenshots for vision models - Connect with isolated safe mode Harness session and stream responses via IPC * feat(safe-mode): temporarily disable floating repair agent chat widget * feat(safe-mode): enable repair agent with 0.9.0 incident knowledge and offline diagnostics * feat(release): expand release notes generator with performance section and full changelog * feat(window): persist window bounds, maximized state, and zoom level * fix(repair-agent): handle unconfigured models with api key drawer and prevent silent stream failures * fix(dev): strip inherited ELECTRON_RUN_AS_NODE to prevent electron launch crash * feat(dev): forward runtime logs to console in development and log single-instance conflicts * fix(repair-agent): inherit working default model route and add dual-track history polling * refactor(repair-agent): rely purely on websocket stream without redundant history polling * feat(repair-agent): replace floating widget with seamless native Harness UI diagnostic cards * fix(windows): stop GPU fallback ladder from degrading on TDR device-loss recoveries, recover the menu view from a lost renderer gcp3 crash data for v0.9.0 showed 23/30 Windows gpu-crash reports at exitCode=34 — Chromium's own exit code when it detects a lost D3D11 device (typically a driver TDR reset) and exits the GPU process on purpose so it can restart it. The fallback ladder was counting this self-recovery as evidence the sandbox is broken and would degrade hardware acceleration after 3 of these on an otherwise healthy machine. isGpuLossFatal now takes the exit code and treats exitCode 34 as non-fatal, only logging a breadcrumb. Separately, ~6 renderer-crash reports were on windows-menu.html: that view runs in its own WebContentsView outside installMainWindowRendererRecovery, which only hooks the main window's webContents, so a lost renderer there left a dead menu until the whole app restarted. It now reloads itself on render-process-gone. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> * fix(session): skip unreadable session logs instead of failing the whole listing One corrupt JSONL/zstd session log made sessionPersistence.list() throw, which failed dsh-workspace and stopped the Harness entirely (0.9.0 startup-failure reports: "corrupt Zstandard session log", corrupt header id). The log is now skipped with a warning naming its path and left on disk untouched. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix(startup): stop reporting attributed plugin failures, clear stale writer locks, fix repair diagnosis - Harness startup failures that plugin recovery attributes to a user plugin are handed to the user and their pending crash report is discarded; only the frontend recovery path did this before, so they were still uploaded. - Remove dsh-atomic-write locks in DSH_HOME and DSH_HOME/profiles whose owner pid is gone before launching; a killed Harness left .credentials.yaml.lock behind and the next launch timed out on it. - Repair Agent diagnosis uses loader provenance and the recovery-resolved plugins, and only reports a startup timeout when the runtime says so, since "waiting for Harness" + SIGTERM matched ordinary failure cleanup. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix(safe-mode): ensure safe mode uses hoisted node-linker and hide diagnostics when plugins are identified * feat(runtime): add preset YAML validation step before launch * refactor(runtime): remove redundant preset check in favor of native Cordis loader logging * feat(repair-agent): unify diagnostic cards into a single entry with verification and reporting instructions * fix(repair-agent): restore the 3 fine-grained diagnostic cards in safe mode * fix(safe-mode): unify safe mode diagnostic cards into a single AI agent entry * fix(web-import): never replace a desktop home that already holds plugins or credentials A 0.9.0-rc1 home with plugins or .credentials.yaml but no settings.yaml or sessions was treated as unused, so the web import deleted it wholesale. It now counts as used. An unused home is also moved aside before deletion so delete-pending entries on Windows cannot block links created at the same path. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix(recovery): don't remove plugins a deferred migration has not installed yet When the generation migration failed (e.g. pnpm EPERM right after install), imported plugins stayed manifest-only, failed to prepare, and plugin recovery removed them as incompatible. Deferred migrations now report the pending plugins and recovery excludes them. Transient EPERM/EBUSY/EACCES failures no longer freeze the same profile for six hours, so the next launch retries. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix(windows): stop the titlebar drag region from swallowing clicks and churning The drag region now ignores pointer events, and only semantic dialog markers hide it: class-name guesses like [class*="modal"] matched permanent elements and hid it for good. Visibility checks run at most once a frame, since streaming output mutates the DOM continuously. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix(diagnostics): send crashes without an event id right away Only a plugin-attributed startup failure should wait for recovery to decide whether to discard it. A crash with no event id compared equal to an unset pending id and was held back too. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix(market): pin the exact version a declared dshmarket range names The installer pins and verifies an exact version, so a declared range such as ^1.47.0 is reduced to the version it names instead of being passed through. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * chore: ignore the local pnpm content store Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix(safe-mode): resolve Safe Mode plugins from the installation, not the module fallback Safe Mode loads only installation-owned bundles, yet it still went through the shared $DSH_HOME/profiles/node_modules fallback, whose junctions Windows can refuse to recreate (EPERM) for minutes — the top startup failure of v0.9.0. The desktop now sets DSH_DESKTOP_HOST_RESOLVED for the Safe Mode profile only; the patched Harness then skips healing the fallback and resolves bare plugin names, including entries created at runtime through ctx.loader.create, from its own installation. A flag leaked from the parent environment never reaches a normal profile. This replaces the hoisted node-linker workaround for Safe Mode. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix(runtime): mirror Harness logs to the console only in development A packaged app's stdout may be a closed pipe; writing every Harness log line to it there buys nothing and can fail. harness.log still receives every line. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix(recovery): still blame a migration-pending plugin whose legacy copy is installedf475ce59exempted every plugin with a pending deferred migration from recovery. Only a plugin the migration left manifest-only is not broken; one whose legacy copy is installed still loads and can be the real culprit. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * feat(logging): record Harness runtime warnings and errors in harness.log Cordis's ctx.logger keeps messages only in an in-memory ring, and its default level filters out warnings; nothing in the shipped composition exported them. Session activation failures (a preset that cannot be found or mounted) never reach the logger at all — they are only pushed to the client. So errors after startup left no trace for a person or the Repair Agent once the process was gone. A new desktop plugin, dsh-desktop-log-bridge, is composed first into both the normal and the Safe Mode profile. It writes warn and error messages, the errors already in the ring, and api-session/error events to stderr, which the desktop records into harness.log. It rate-limits floods and writes one ready line per launch, so a log without it is known to predate the bridge. Every bridged line carries a [harness-log] prefix, and latestHarnessAttemptLogs drops such lines: runtime warnings never become recovery's failure cause or the plugin it blames. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * feat(safe-mode): disable plugins instead of removing them Safe Mode now switches a plugin off the way the plugin market's own toggle does, so it can come back without a reinstall: `disabled: true` rows for the loader entries the package inserts in the user patch layer, which the loader re-applies on every boot, plus the market's .dsh-market/state.json list, which is also the only switch for client-only packages. Nothing is deleted. Disabled plugins show as disabled with a Re-enable action instead of a selection. Compatibility issues that call for disabling a plugin use the same path; the old approach of dropping it from dsh.profile.bundles was silently undone, because the generation projection rewrites that list on every launch. Compatibility inspection skips disabled plugins, since they never load. A disable-carrier (a bundle whose patch disables another plugin) cannot be switched off on its own without stranding the plugin it replaces, so it keeps the backed-up removal. Startup recovery keeps removal too: a package that is itself broken fails before the patch layer's disable applies. When recovery removes a plugin it also clears its market disable entry, as the market's own uninstall does. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * feat(repair-agent): start a fresh, well-briefed repair session from one card Recovery and Safe Mode now offer a single "start the repair agent" card. Each click opens a new session in the Safe Mode Harness and makes it the session the Harness UI shows: the UI restores its current session from desktop storage when the page loads, so the Recovery path opens the session before its page loads and the Safe Mode path reloads the already open page. The floating repair widget is gone. The session's workspace is the Harness home (profiles, plugins, patch layer) instead of the empty launch root, and the first turn of each session carries the diagnosis. The system prompt is rebuilt around real incidents: - a directory map that separates the normal profile it repairs from the Safe Mode profile it runs in; - the path to harness.log with how to find the failed launch in it, plus a short excerpt, instead of pasting logs; Safe Mode's own logs are no longer used when no failed launch was captured; - one bilingual playbook source, so the Chinese and English prompts can no longer drift: plugin load failures, broken packages (which disabling cannot fix), the Windows module-fallback EPERM (no Developer Mode advice), a corrupt patch layer, startup timeouts, the code -> ptc preset rename, and schema errors in copied user presets; - actions named after the real UI, and a confirm-and-back-up rule before any file change. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix(market): stop shipping dshmarket so market upgrades take effect Harness resolves every profile bundle from its own installation before the profile (`resolveBundleDir` in dsh-app-boot). Since #352 pinned dshmarket 1.45.1 as a runtime dependency, the packaged copy won that lookup: upgrading the market wrote 1.48.0 into the profile, the market and the baseline check both read 1.48.0 back, and Harness kept loading 1.45.1 after every restart. Nothing in the app imports dshmarket; the profile copy is installed from npm by the market installer and `ensureMarketBaseline`. It stays a devDependency for the tests that exercise its real profile reader, which keeps it out of the packaged app. `ensureMarketBaseline` now also notes when the copy Harness would load is not the profile's, so a shadowed market shows up in harness.log instead of as a version the UI reports but never runs. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * feat(recovery): let startup recovery repair a plugin market that breaks startup The market is a core bundle, so startup-failure attribution never named it and the Recovery page, finding no culprit, could only offer Safe Mode — which does not load the market and has nothing to act on. A market release that stopped Harness from booting therefore failed every launch the same way. Until now the packaged dshmarket shadowed the profile copy and hid this; with it gone the profile copy really loads, so the loop is live. When the failed launch's log (or loader provenance) names dshmarket, the Recovery page shows it as its own row, apart from the third-party plugin list whose removal path refuses core bundles: - Upgrade to the newest release the market check finds compatible with this Harness, for a market too old for it; a release already tried here is not offered again. - Install the verified version (VERIFIED_MARKET_BASELINE). That moves down from a broken release, up from a stale one, or reinstalls a damaged copy. It is the primary action when the market is the only culprit. - Remove the market; installed community plugins are kept. Versions come from the main process's own check, never from the page. Each change stops Harness first, as the shared-tree installer requires, pins the exact version so the next baseline check does not reinstall the broken release, then relaunches and returns to recovery if startup still fails. The market removal behind the settings page is shared as `removeMarket`. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix(recovery): render the plugin market row like any other plugin row The market row added its own touches: a version after the name, a green button for restoring the verified version (which can be a downgrade), and a confirmation dialog plus its own wording for removal. Third-party rows have none of these, so the market read as a different kind of item. Show the name only, keep green for the upgrade alone with every other action in the neutral style, and remove it the way the page removes any plugin — "Remove this plugin", no extra confirmation. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix(recovery): offer the plugin market only upgrade and removal Restoring the verified market version was an action no other plugin row has. Drop it, so the market row is a plugin row like the rest: upgrade to a compatible release when the market check finds one, and removal. When the market alone blocks startup, the page now uses the same buttons as a lone third-party plugin: "Upgrade plugin and restart" with "Uninstall plugin" beside it when an upgrade exists, otherwise "Remove this plugin and continue". Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * chore: stop tracking the local pnpm content store0d083d5dcommitted the whole `.pnpm-store/` (13,357 files, ~235 MB) along with its four intended changes, before7a2cb730added it to .gitignore. An ignore rule does not untrack files already committed, so they stayed in the branch and buried the PR's real diff. Remove them from the index only; the local store is untouched and stays ignored. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * test: drop tests that only grep our own source code About 40 tests read src/main/index.ts, the preload, build/*.html, the NSIS script or our own packages' client.js as text and asserted that particular lines were present — `toContain("ipcMain.handle('safe-mode:action'")`, `indexOf(a) < indexOf(b)` and the like. They execute nothing, so they cannot catch a behavior regression, yet they fail on any rename or reformat, and on Windows, where the checkout has CRLF line endings, any expected string that spans a newline never matches. Two of them failed CI that way on PR #431. Removed: every test block whose assertions were such text matches, and the source-text lines inside otherwise behavioral tests (windows-titlebar allowlist, runtime Node mode, release dev channel, branding postinstall, harness-node-entry). The dev-channel check now reads electron-builder.dev.cjs as a config object instead of matching its text. Kept: tests that execute code, parse package.json/lockfile/YAML/JSON config, or check the installed third-party bundles in node_modules (patch and upstream-contract checks), since those inspect what actually ships. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * test(repair-agent): drop tests that only check the prompt's wording Two repair-prompt tests asserted fixed sentences of the generated prompt: exact Chinese phrases with hard-coded POSIX paths, and a fixed count of seven playbooks plus two error strings. Any edit to the copy broke them without saying anything about how the agent behaves, and the path one failed on Windows, where path.join correctly yields backslashes. Keep the test of real prompt logic: only the tail of the log is included, and none at all when no failed launch was captured. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * test(repair-agent): drop the remaining repair-prompt test It asserted which log lines and which sentence end up in the generated prompt text. Like the other prompt tests, that pins the copy rather than anything the agent does with it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix(safe-mode): offer the repair agent as one line under the summary The repair agent sat in its own section below the actions — a heading, a divider and a card, about 140px. In a 1280x800 window that pushed the plugin list into a scrollbar, which the native Windows recovery UI check rejects: every plugin has to be visible at once. Its text was also Chinese-only. Show it as a single link under the summary instead, in both languages. It sends the same diagnostic request as the card did. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix(recovery): offer the repair agent as a button beside Safe Mode The recovery page showed the repair agent in its own section under the technical details — a heading and a card, in Chinese only. Make it a secondary "Repair agent" button next to "Enter Safe Mode", in both languages. As before, it appears only when no plugin or market was identified; a named culprit has its own repair above. The native Windows UI check expected Safe Mode to be the only action when nothing is identified; it now expects the agent beside it, and nowhere else. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix(runtime): keep a clean launch off stderr The packaged Windows smoke fails any launch that writes to stderr once a workspace and session exist. Two lines did on every launch, and neither reported a problem: - The log bridge's "recording from here on" marker. It is a notice, so it now goes to stdout; stderr carries only bridged warnings and errors. - `patch: entry dsh-market not found`. The desktop patch configured the market's entry (restart off, wait for desktopProfiles) unconditionally, but the market is optional, and a patch row whose entry is absent makes the loader warn. It was always there; the bridge only made it visible. The row now lives in dsh-desktop-market.patch.yml, passed as a second --patch only when the profile boots dshmarket, so a market profile behaves as before. Checked by booting a fresh web profile (no market overlay, no bridged warning) and one that boots dshmarket (overlay applied, no warning). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com> * fix(market): remove dshmarket devDependency to avoid shadowing profile updates (#478) * fix(market): remove dshmarket devDependency to avoid shadowing profile updates Harness resolves every profile bundle from its installation anchor before the user profile (resolveBundleDir in dsh-app-boot). Previously, dshmarket was retained as a devDependency in package.json to support test/generation-boundary.test.js. However, electron-builder's files: ["node_modules/**/*"] glob unconditionally includes all modules in node_modules unless explicitly excluded, causing dshmarket to be bundled into the packaged application and to exist in dev checkouts. When the user upgrades dshmarket in their profile to 1.48.0, Harness continues loading the packaged copy instead of the profile's copy. This removes dshmarket from devDependencies and package-lock.json: - test/generation-boundary.test.js implements a local readInstalledVersion helper - test/market-baseline.test.ts verifies dshmarket is absent from both dependencies and devDependencies, and simulates installation shadowing with a mock directory * style(safe-mode): style repair agent session link with blue accent color * fix(safe-mode): make the repair agent's failures visible and its guidance true (#479) * fix(safe-mode): report a repair agent session that could not open Clicking "let the repair agent read the log" did nothing at all when the session failed to start: startRepairAgentPrompt returned a bare boolean, the caller skipped the reload, openHarness found the window already on the Harness origin and only raised it, and the reason reached the log alone. A user whose default agent preset was broken saw three clicks produce no visible change. The call now carries the reason. The Safe Mode manager stays open and shows it instead of closing on the way out, so the click can be retried, and plugin recovery surfaces the same reason through the manager it hands the window to. The notice keeps the first two lines of Harness's mount error; the rest is a stack that would push the plugin list off the page. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix(plugin-disable): refuse a bundle whose package yields no loader row Disabling a broken plugin reported success and changed nothing that matters. pluginPatchRows reads the loader rows from the package's own patch; when that file is missing or unparsable the list comes back empty, so the patch layer was skipped, only the market state was written, and the result was ok. The bundle stayed in dsh.profile.bundles and the next launch composed — and failed on — the same package. A package listed as a bundle is one the loader prepares on every launch, so no readable row means the package on disk is broken, not that the plugin has no rows. That case is now refused as broken-package, and Safe Mode falls back to the backed-up removal it already uses for carriers. A client-only plugin is untouched: it is not a listed bundle, and the market state remains its only switch. The compatibility fixture listed a bundle whose manifest declared no dsh.bundle — a profile that cannot start — so it now carries the patch the loader would read. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * refactor(repair-agent): tighten the prompt and drop the unused repair module The prompt repeated absolute Windows paths in every playbook entry and walked through the Safe Mode profile the agent must not touch. Paths are given once in the directory section and referred to by name afterwards; the Safe Mode profile is one line. 5290 to 4403 characters, with more in it than before. What changed beyond wording: - The agent fixes what it can fix itself. Disabling a plugin is spelled out (patch layer plus market state, never dsh.profile.bundles), and only upgrading and reinstalling still go through the UI. - A broken package is triaged by layer first: node_modules/<package> is usually a link the next launch reprojects, so a merely missing link is a restart, not a removal. Only a missing manifest or patch in the real package is an interrupted install. - Windows EPERM tries to self-heal once by deleting the entry the error names — Safe Mode does not use that folder — before asking the user to hunt for the process holding it. - A clean log is a finding: say nothing is wrong, name the log sections checked, and ask what the user actually saw. The "a quiet log proves nothing" line that contradicted this is gone, and an empty offline diagnosis is no longer printed as if it were a result. - Failures outside the list are reasoned from the log, with the source repository named for confirming Desktop's own behaviour. - The preset-not-found entry is dropped: an old session naming a deleted preset simply cannot open, and recreating the preset to revive it is not a repair worth prescribing. profile-repair.ts goes with it. Startup stopped performing destructive package repair, which left the module with no caller in src/ and only its own test — a documented, tested path to nothing. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * chore: point the community link at the current Discord invite The old invite is replaced everywhere it appears: the six READMEs, the Discord entry on the plugin recovery and Safe Mode pages, and the recovery smoke test that asserts the URL the click opens. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com> * fix(workspace): start a new session on the default preset, not a stale blank one (#481) * fix(workspace): start a new session on the default preset, not a stale blank one Opening a workspace does not create a session when a blank one is already there: connectWorkspace returns the first blank session whose cwd matches and only calls sessions.create when it finds none. A blank session is never run, so it stays blank forever — every later visit to that project is handed the same one as its "new session", carrying whatever preset was default when it was made. Changing the default in settings reaches only sessions created afterwards, which a session made weeks ago is not. Switching that session's preset instead is not available: the host resumes a session before recomposing it, and resuming loads the preset it already names. A blank session naming a preset that has since been deleted cannot be resumed at all, so it cannot be moved either — the select call comes back with "resume failed … preset not found". So the stale session is left alone and simply not reused. A blank session now qualifies only when the preset it names matches the current default, and a workspace whose blank session does not is given a fresh one. The stale session stays in the list to open or delete. The default is read through ctx.get rather than an inject: reading an un-injected Remote namespace throws rather than answering undefined, and this plugin has to keep working where no preset roster is composed. When it cannot be read, reuse behaves exactly as before. Verified in a running Harness: opening the project created session-67b5595c on `standard` and left session-95d736d0 on the deleted `repair` untouched, where before the stale one was handed back every time. The patch applies cleanly to the pristine 0.1.5-rc.2 package. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix(repair-agent): check model and key availability before starting repair - Add checkModelAvailability in RepairAgentService to verify model keys and default session model status - Show informative warning dialog in Safe Mode and Recovery views when models are unavailable or unroutable - Add unit tests covering missing keys, unroutable providers, provider failures, and valid configurations --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com> * fix: add loader await timeout diagnostics and refine model unavailable copy (#485) * fix(loader): add timeout and stuck plugin diagnostics to loader await - Add timeout handling to cordis-plugin-loader EntryTree.prototype.await (configurable via DSH_LOADER_TIMEOUT_MS, default 100s) with 5s progress heartbeat - Accurately identify stuck plugins on timeout and emit structured dshPluginFailure errors - Add unit test coverage in cordis-plugin-loader-patch.test.ts * fix(repair-agent): update model unavailable dialog copy text - Refine warning dialog message and detail copy when default model is unconfigured or unavailable - Update unit tests in test/repair-agent.test.ts * update * test(repair-agent): sync model unavailable detail assertion wording (#486) * feat: adapt desktop to Harness 0.1.6-alpha.2 --------- Co-authored-by: fzfz <fzfzqp@gmail.com> Co-authored-by: Debug Agent <debug-agent@noreply.local> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: Fairy-happy <243122010@qq.com> Co-authored-by: fairy <3054158379@qq.com> Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: Keep-Silence <keep137950@163.com> Co-authored-by: Wanming08 <152006802+Wanming08@users.noreply.github.com> * fix: route Plugin Manager through generations (#503) * fix: route Plugin Manager through generations * fix: close P1 Harness integration gaps * feat(workbench): connect Desktop to the Awesome market (#496) Co-authored-by: yaojin3616 <yaoj.alex@gmail.com> * feat(workbench): add the make-my-workbench flow and GitHub listing guide (#497) Co-authored-by: yaojin3616 <yaoj.alex@gmail.com> * feat(workbench): submit through Awesome PRs and query status (#508) Co-authored-by: yaojin3616 <yaoj.alex@gmail.com> * feat(workbench): publish development and acceptance guides (#509) Co-authored-by: yaojin3616 <yaoj.alex@gmail.com> * feat(workbench): install update and uninstall market entries (#510) Co-authored-by: yaojin3616 <yaoj.alex@gmail.com> * feat(onboarding): add the desktop first-run notice (#505) Co-authored-by: yaojin3616 <yaoj.alex@gmail.com> * refactor: build PPT runtime from source * fix(workbench): reconcile market installs with declared runtime IDs (#514) * fix(workbench): reconcile market installs after restart * feat(workbench): declare runtime IDs in market catalog * fix(workbench): preserve v2 market compatibility --------- Co-authored-by: yaojin <yaojin@58.com> * feat(workbench): migrate namespaced runtime IDs (#521) Co-authored-by: yaojin <yaojin@58.com> * fix(workbench): read the current session from the uiWorkspace main view (#517) Harness 0.1.6 removed ClientSessions.open/clear and list.current. #514 moved opening onto uiWorkspace.openSession, but the controller still read list.current in five places, which is always undefined now: native navigation to a bound session never switched the workbench, and the frame never saw a current session. - Workbench: add public currentSession(), which reads the session holding the `mainView` retention, and showSession(id); replace every list.current read. Workbench providers read the same fact. - ui-workspace patch: add deleteSession(), so deleting the current session releases the main view, and restore the 0.1.5 guard that stops a superseded initial navigation from opening a native session over a workbench. - session-controller patch: drop the dead selection code in delete(). - Tests mock the real 0.1.6 selection model instead of the removed API. Co-authored-by: cinderzhan <cinderzhan@users.noreply.github.com> Co-authored-by: Claude Opus 5 <noreply@anthropic.com> * fix(workbench): give each workbench its own icon (#516) WorkbenchIcon had collapsed to the shared market glyph. Use the workbench's own short icon when it declares one, else a themed glyph picked from its category and title, else its first character. Co-authored-by: cinderzhan <cinderzhan@users.noreply.github.com> Co-authored-by: Claude Opus 5 <noreply@anthropic.com> * fix(workbench): single display-mode toggle and no fill behind the open market (#518) The sidebar showed both list and icon mode buttons; show one button with the mode a click switches to. Drop the faint fill behind the market entry while the market is open (hover still highlights it). Co-authored-by: cinderzhan <cinderzhan@users.noreply.github.com> Co-authored-by: Claude Opus 5 <noreply@anthropic.com> * feat(workbench): polish market cards and the detail view (#520) * feat(workbench): polish market cards and the detail view - Favorite with a bookmark instead of a star; the star now means GitHub stars, replacing the thumbs-up. - Show the author as a GitHub avatar and login, without the "作者" label. - Show downloads next to stars (npm 30-day or GitHub release downloads), with a dash when the catalog has no value. - The workbench name links to its GitHub repository, in the card and the detail view; the separate GitHub row is gone. - Added workbenches show a quiet "已安装" state instead of a primary "打开工作台" button. - The detail view shows screenshots as a large swipeable carousel that starts on the first image. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * feat(workbench): keep card actions on one row when an update is available Show a short 检测到更新 action in place of 已安装 instead of adding a third "更新到 vX.Y.Z" button that wrapped the row; the target version moves to the tooltip. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> --------- Co-authored-by: cinderzhan <cinderzhan@users.noreply.github.com> Co-authored-by: Claude Opus 5 <noreply@anthropic.com> Co-authored-by: yaojin3616 <yaoj.alex@gmail.com> * feat(workbench): let authors choose the market category when submitting (#522) The submission prompt only said "category 必填", so the Agent picked a category on the author's behalf. Step 3 now offers a category picker fed by the market catalog's own category list, and the chosen id is written into the prompt with an instruction not to change it. Choosing "other" adds an optional new-category idea, relayed as one sanitized line for the PR description so the market maintainers decide. With no choice, or no catalog, the prompt keeps asking the Agent to pick from categories.json. Co-authored-by: cinderzhan <cinderzhan@users.noreply.github.com> Co-authored-by: Claude Opus 5 <noreply@anthropic.com> * feat(workbench): use repository as the canonical identity (#524) * feat(workbench): derive identity from market repository * feat(workbench): derive local identity from repository --------- Co-authored-by: yaojin <yaojin@58.com> * fix(workbench): display the catalog version (#525) Co-authored-by: yaojin <yaojin@58.com> * fix: recover session deletion and legacy workbench state (#526) * fix: restore session deletion confirmation * fix: migrate legacy workbench state * update * fix(patches): remove stray blank line breaking session-controller patch (#528) commit3d03717cintroduced an unprefixed blank line inside the last hunk of the @deepseek-ai/dsh-api-session-controller 0.1.6-alpha.2 patch, which patch-package 8.0.1 cannot parse. This failed `npm ci` postinstall on every platform of the v0.10.0 release build. Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com> * fix(workbench): enforce runtime session boundaries (#537) Co-authored-by: cinderzhan <cinderzhan@users.noreply.github.com> * docs(workbench): require user-selected project locations (#538) Co-authored-by: cinderzhan <cinderzhan@users.noreply.github.com> * feat(workbench): guide sidebar focus and session ownership (#540) Co-authored-by: cinderzhan <cinderzhan@users.noreply.github.com> * feat(workbench): move navigation to a compact Dock (#541) * feat(workbench): promote workbench navigation entry * feat(workbench): add compact switcher dock --------- Co-authored-by: cinderzhan <cinderzhan@users.noreply.github.com> * fix(workbench): open added workbenches from market (#542) Co-authored-by: cinderzhan <cinderzhan@users.noreply.github.com> * fix(workbench): keep open action beside updates (#543) Co-authored-by: cinderzhan <cinderzhan@users.noreply.github.com> * feat(workbench): show Dock in unbound sessions (#544) Co-authored-by: cinderzhan <cinderzhan@users.noreply.github.com> * feat(workbench): move switcher into sidebar (#545) Co-authored-by: cinderzhan <cinderzhan@users.noreply.github.com> * Upgrade Harness to 0.1.7-rc.1 with preset migration * Audit Harness 0.1.7 patches and remove picker override * fix(onboarding): show first-run notice only on new installs (#550) Co-authored-by: cinderzhan <cinderzhan@users.noreply.github.com> * fix: skip disabled profile bundles before startup checks * fix: retain Desktop workflows after PPT baseline merge --------- Co-authored-by: fzfz <fzfzqp@gmail.com> Co-authored-by: Debug Agent <debug-agent@noreply.local> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: Fairy-happy <243122010@qq.com> Co-authored-by: fairy <3054158379@qq.com> Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: Keep-Silence <keep137950@163.com> Co-authored-by: Wanming08 <152006802+Wanming08@users.noreply.github.com> Co-authored-by: Yutong <cinderttt@gmail.com> Co-authored-by: yaojin <yaojin@58.com> Co-authored-by: cinderzhan <cinderzhan@users.noreply.github.com> * test: make cross-platform packaging checks deterministic * ci: capture packaged Windows startup diagnostics * ci: bound and show Windows test progress * fix: persist early Desktop startup errors * test: isolate legacy preset runtime port * ci: consolidate native builds and reuse prepared runtime * fix: resolve host patch plugins from bundled Harness anchor * test: compare physical host paths on Windows * ci: allow platform retries alongside independent builds * fix: unpack staged PPT plugins and verify physical runtime * ci: download signing artifacts in verified parallel ranges * ci: fetch pinned Jsign through GitHub release API * Fix legacy preset migration from empty Profile patch * Revert "refactor: build PPT runtime from source (#512)" This reverts commit914f1a8fcf. * refactor(ppt): build bundled runtime from source on 0.1.7 baseline Port the PPT-only source build, package projection, Electron overlay and afterPack runtime gate from PR #512. Keep workbench and onboarding changes out of the baseline. Pin Electron to 43.0.0 because the Harness native runtime rejects 43.4.0. * chore: upgrade baseline to Harness 0.1.7-rc.2 * chore: normalize Undici patch context whitespace * UI plugin/ sidemenu update --------- Co-authored-by: fzfz <fzfzqp@gmail.com> Co-authored-by: Debug Agent <debug-agent@noreply.local> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: Fairy-happy <243122010@qq.com> Co-authored-by: fairy <3054158379@qq.com> Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: Keep-Silence <keep137950@163.com> Co-authored-by: Wanming08 <152006802+Wanming08@users.noreply.github.com> Co-authored-by: Yutong <cinderttt@gmail.com> Co-authored-by: yaojin <yaojin@58.com> Co-authored-by: cinderzhan <cinderzhan@users.noreply.github.com>
Maintained DSH PPT runtime
Product packages: dsh-ppt (authoring/export) and dsh-ppt-composer (PPT button/template chooser). The repository keeps their maintained runtime seeds and generator inputs, while every dev, test, build and package run assembles complete distributions under the ignored .build/ppt-runtime/packages/ staging root.
This directory maintains the distributed JavaScript extracted at Desktop base 9d4502f; the complete original TypeScript source was not present. Original copyright notices and factual Kimi Slides research attribution remain in THIRD_PARTY_NOTICES.md. Renaming does not change provenance or establish legal clearance.
参考来源
实现方案参考了 Kimi PPT(Kimi Slides) 的 PPTD 文档与示例;其中十套模板参考并按 MIT 许可改编自 Zara Zhang(GitHub:zarazhangrui) 的 beautiful-html-templates。具体参考范围、固定版本和许可证见 来源说明。
Catalog and languages
16 templates, 192 layouts, each with English (source/) and Chinese (source-zh/) examples. All 192 gallery/reference previews are rendered from English source. Preview language does not select the user's output language.
- Three retained native packs: Modular Logistics System, Swiss Signal Grid, Nordic Operating Report, expanded from 10 to 12 pages each.
- Engineering Blueprint, Course Workshop, Editorial Notebook: 12 pages each. The first two adapt pinned Apache-2.0 HTML Anything directions; Editorial Notebook is DSH-authored.
- Ten MIT adaptations of Zara Zhang's
beautiful-html-templates@e5e204fb1f3b06290846e7dcd7aceddabeceec8c: Soft Editorial, Editorial Forest, Signal, Blue Professional, Broadside, Monochrome, Neo-Grid Bold, Sakura Chroma, Playful, Cartesian. All ten now have 12 layouts each, including DSH-authored composition extensions. Office font substitutions are documented per template. This is a selected native adaptation, not a full import of every HTML slide or animation.
Every metadata/design record contains English and Chinese title/body fonts and platform fallbacks. Font names do not distribute or embed fonts. The renderer selects the Latin face for English text and the platform Chinese face for Chinese text, including tables. Chinese serif headings use Songti SC / SimSun / Noto Serif CJK SC; sans uses PingFang SC / Microsoft YaHei / Noto Sans CJK SC. Actual font availability can still affect Office fallback. The preview renderer preserves English word boundaries.
Build and install
npm run ppt:build starts from an empty .build/ppt-runtime/ directory, regenerates the ten Zara packs, restores the six maintained baseline packs from scripts/ppt/base-templates/, applies reviewed English translations, and expands all sixteen packs to twelve layouts each. It validates and renders the 192 English previews, hydrates the runtime clients/catalog, assembles both package directories, then atomically projects those directories into node_modules for local execution. It never writes generated templates, previews, archives or hash manifests back into tracked source paths. Every pack retains explicit English/Chinese font pairs. The two original experiments live in scripts/ppt/rich-layouts.mjs; the other composition plans and editable geometry live in scripts/ppt/composition-library.mjs.
npm ci bootstraps from the tracked local package seeds, so a clean checkout does not need a pre-existing archive. The dev, build and test lifecycles all invoke the same preparation step; every package script delegates to build. Electron Builder excludes the bootstrap links and copies the current staged packages explicitly. Tests verify the generated distributions, language coverage, fonts, activation and state migration. The 23 withdrawn designs and 345 excluded images remain absent; excluded-assets.json is a hash-only regression list.
Compatibility
For Harness 0.1.7-rc.1, the chooser uses conversation.hero.dock (list, session-maybe, InputZone owner) before a session exists and the existing session-only conversation.composer.dock afterwards. The hero outlet belongs to ConversationContent and sits after its input bar; it must not be rendered inside the independently registered InputBar. Only one chooser outlet is active at a time, sharing the mode-button store. The panel measures the composer card width because the upstream session dock can shrink to its content width. The conversation patch can drop the extra hero outlet when Harness provides an equivalent public pre-session outlet.
The built-in profile loads one dsh-ppt-composer plugin. The Skill, new automatic context records, client registration and primary RPC use DSH names. Historical attribution is kept in notices and an entry-point comment.
Desktop's startup bundle reconciliation removes dsh-ppt and dsh-ppt-composer from the normal Profile's extra bundle list: the Desktop patch already loads the composer, which mounts the core. This prevents duplicate preview routes and the dsh-ppt-bundled skill provider when a Profile also declares these packages. Dependencies, installed packages, user patch files and existing kimi-ppt projects are retained. Custom patch rows are not rewritten; this reconciliation handles standard bundle declarations only. Standalone Harness profiles do not opt into Desktop's bundle ownership.
The legacy on-disk kimi-ppt directory is deliberately retained to preserve sessions, revisions and output files. /kimi-ppt remains an alias for in-flight older clients; legacy Skill-root config/env values and old automatic snapshots are handled explicitly. The three retained template IDs migrate to DSH IDs without losing selection; removed IDs fall back visibly. User-authored messages and historical generated decks are preserved.
PPT remains preinstalled. Its automatic instructions are scoped to sessions where the user enabled the PPT button.
Personal PPT templates
The chooser's My templates tab accepts PPTX files with the configured slide limit (40 by default). Uploads use the Host's shared transport and archive resource limits. They produce page previews and conversion diagnostics. Save template registers the reviewed file in the current Desktop profile; new sessions and restarts read the same library. Identical source bytes resolve to the saved template. Users can rename or remove entries; generated task projects stay available.
The host stores source PPTX, editable PPTD pages, assets, previews and conversion records under personal-templates/ inside the configured PPT data root. Drafts belong to their initiating session. Registered templates belong to this local Desktop profile, including remote connections to that profile. Account-based sharing and cross-device synchronization require a separate identity integration.
ppt_template_create_project copies the selected personal template into a new confined workspace directory. The model then adapts that copy with the existing PPTD tools and exports through pptd_render. The saved source remains separate from generated task files. All conversion and copy operations use the existing bounded parser/compiler and host audit. Company template fidelity requires review of actual imported pages, particularly master elements and advanced Office objects. Product rules and evidence: Personal PPT templates.
Generated templates, previews, package directories and build diagnostics live under ignored .build/ppt-runtime/. Validation evidence and temporary exports live under ignored doc/ppt-remediation/. Windows packaging and native Windows PowerPoint require their own runner/device validation.
Layout refinement
The content layouts now include evidence panels, reconciled contributions, direct chart annotations, exception rows and accountable roadmaps. Shared authoring guidance lives in scripts/ppt/refinement-guidance.mjs and the bundled references/composition.md. English and Chinese pages retain separate line wrapping and font fallbacks.
Historical withdrawn Kimi-associated reference images were inspected locally to identify general information-design principles. This iteration does not restore those images, their guides, or source files to the distributed packs. The new compositions and wording are authored in the maintained generators; current palette/font provenance remains unchanged.
Shared preview assets
The build keeps the 192 reference JPGs only in the core skill directory. Both browser clients receive a small manifest of /dsh-ppt/previews/<sha256>.jpg URLs instead of Base64 image copies. The core optionally registers an HTTP route using the existing host web server, serving only build-listed reference images with immutable caching. No user files or configurable skill directories are exposed. Model reference reads, bilingual sources and editable exports continue using the existing core files; no remote download is required. Rebuilds change image URLs when the bytes change.
Validation feedback
pptd_check is read-only and returns every diagnostic, including file, page and element ID. pptd_render returns status: needs_revision with the full check when blocked by validation, without publishing or consuming delivery capacity; only status: exported includes delivery metadata. Warning-only checks remain exportable. Filesystem, authorization and runtime faults still fail normally. Existing sessions refresh their automatic authoring instructions to this workflow.
The CLI resolves npm .bin symlinks before detecting its entry point. check --json retains its complete checker output and conventional nonzero exit code for failed validation; blocked render --json also prints complete diagnostics and exported: false. Neither bypasses the compiler checks.
Authoring diagnostics group misplaced text-style fields by page while retaining per-field issues. Layout estimates wait until an element has a valid field structure. Tool diagnostics include confined absolute paths and pptd_read_file arguments. New files accept an omitted or empty expected_sha256; replacements still require the current hash. The bundled CLI and tool compiler apply the same structural checks.
Text escape semantics
Multiline text uses actual line breaks, with YAML |- as the shared authoring form. The CLI and host use lib/text-escapes.js to report text-escaped-newline for literal \n or \r in text elements and table cells before export. An explicit boolean literalEscapes: true preserves intentionally displayed code, escape notation or paths; imported PPTX text carries this declaration when the original already displays those characters. The declaration leaves layout checks active. V4 automatic Skill snapshots explain the correction loop and replace older V2/V3 snapshots in active PPT sessions.