@waq666/pneuma 0.7.1 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +242 -206
- package/bin/dsc.js +9 -3
- package/bin/headless.cjs +1 -1
- package/lib/adapter/transcript.d.ts +19 -2
- package/lib/adapter/transcript.js +71 -14
- package/lib/app/AgentsOverlay.js +7 -6
- package/lib/app/App.js +1 -1
- package/lib/app/ApprovalCard.js +15 -9
- package/lib/app/ChatView.d.ts +3 -1
- package/lib/app/ChatView.js +21 -17
- package/lib/app/Composer.js +22 -4
- package/lib/app/MarkdownView.js +2 -1
- package/lib/app/ModelPicker.js +7 -6
- package/lib/app/PickerFrame.d.ts +4 -0
- package/lib/app/PickerFrame.js +18 -0
- package/lib/app/PlanReviewCard.js +2 -1
- package/lib/app/PresetPicker.js +8 -7
- package/lib/app/SessionPicker.js +21 -20
- package/lib/app/SettingsOverlay.js +1 -1
- package/lib/app/SkillsPicker.js +7 -6
- package/lib/app/StatusBar.js +3 -15
- package/lib/app/TaskStrips.js +1 -4
- package/lib/app/TimelineRail.js +2 -1
- package/lib/app/ToolCard.js +2 -6
- package/lib/app/Welcome.d.ts +1 -0
- package/lib/app/Welcome.js +1 -4
- package/lib/app/click.d.ts +0 -2
- package/lib/app/click.js +2 -21
- package/lib/app/display-width.d.ts +16 -0
- package/lib/app/display-width.js +33 -0
- package/lib/app/markdown.d.ts +1 -3
- package/lib/app/markdown.js +2 -19
- package/lib/app/scroll-model.js +1 -1
- package/lib/contract/approval.d.ts +91 -0
- package/lib/contract/approval.js +1 -0
- package/lib/contract/mode.d.ts +69 -0
- package/lib/contract/mode.js +1 -0
- package/lib/contract/plugin.d.ts +240 -0
- package/lib/contract/plugin.js +1 -0
- package/lib/contract/runtime.d.ts +282 -0
- package/lib/contract/runtime.js +1 -0
- package/lib/contract/session.d.ts +208 -0
- package/lib/contract/session.js +36 -0
- package/lib/contract/settings.d.ts +242 -0
- package/lib/contract/settings.js +1 -0
- package/lib/contract/snapshot.d.ts +453 -0
- package/lib/contract/snapshot.js +1 -0
- package/lib/contract/task.d.ts +189 -0
- package/lib/contract/task.js +10 -0
- package/lib/contract/transcript.d.ts +358 -0
- package/lib/contract/transcript.js +1 -0
- package/lib/contract/usage.d.ts +132 -0
- package/lib/contract/usage.js +10 -0
- package/lib/contract.d.ts +20 -1968
- package/lib/contract.js +19 -30
- package/lib/core/agent-roles.d.ts +1 -1
- package/lib/core/agent-roles.js +6 -5
- package/lib/core/approval-floor.d.ts +9 -0
- package/lib/core/approval-floor.js +152 -25
- package/lib/core/attachments.d.ts +185 -0
- package/lib/core/attachments.js +425 -0
- package/lib/core/bytes.d.ts +14 -0
- package/lib/core/bytes.js +28 -0
- package/lib/core/call-meaning.d.ts +20 -0
- package/lib/core/call-meaning.js +347 -0
- package/lib/core/cdp/actions.js +6 -0
- package/lib/core/cdp/launch.js +2 -2
- package/lib/core/cdp/report.d.ts +27 -0
- package/lib/core/cdp/report.js +50 -0
- package/lib/core/cdp/ring-buffer.d.ts +25 -0
- package/lib/core/cdp/ring-buffer.js +44 -0
- package/lib/core/cdp/snapshot.js +5 -9
- package/lib/core/cdp/transport.js +1 -1
- package/lib/core/clamp.d.ts +20 -0
- package/lib/core/clamp.js +24 -0
- package/lib/core/clock.d.ts +16 -0
- package/lib/core/clock.js +20 -0
- package/lib/core/command-policy.js +33 -1
- package/lib/core/commands-completion.d.ts +28 -0
- package/lib/core/commands-completion.js +108 -30
- package/lib/core/compact.d.ts +36 -6
- package/lib/core/compact.js +89 -17
- package/lib/core/desktop-control.js +1 -3
- package/lib/core/dsh-compat/llm-usage-event.d.ts +78 -0
- package/lib/core/dsh-compat/llm-usage-event.js +91 -0
- package/lib/core/dsh-compat/presentation.d.ts +84 -0
- package/lib/core/dsh-compat/presentation.js +105 -0
- package/lib/core/dsh-compat/resolve-hook.d.ts +3 -3
- package/lib/core/dsh-compat/resolve-hook.js +41 -13
- package/lib/core/dsh-compat/service-map.d.ts +52 -0
- package/lib/core/dsh-compat/service-map.js +87 -0
- package/lib/core/dsh-compat/session-bridge.d.ts +107 -0
- package/lib/core/dsh-compat/session-bridge.js +376 -0
- package/lib/core/dsh-compat/session-events.d.ts +54 -0
- package/lib/core/dsh-compat/session-events.js +297 -0
- package/lib/core/dsh-compat/shims/credentials.d.ts +62 -0
- package/lib/core/dsh-compat/shims/credentials.js +86 -0
- package/lib/core/dsh-compat/shims/home-paths.d.ts +77 -0
- package/lib/core/dsh-compat/shims/home-paths.js +143 -0
- package/lib/core/dsh-compat/tools-facade.d.ts +31 -1
- package/lib/core/dsh-compat/tools-facade.js +207 -3
- package/lib/core/err-text.d.ts +5 -0
- package/lib/core/err-text.js +5 -0
- package/lib/core/events.d.ts +31 -2
- package/lib/core/git-info.d.ts +127 -15
- package/lib/core/git-info.js +315 -34
- package/lib/core/git-surface.d.ts +17 -0
- package/lib/core/git-surface.js +7 -0
- package/lib/core/hooks.d.ts +19 -2
- package/lib/core/hooks.js +57 -13
- package/lib/core/host-methods.d.ts +1 -1
- package/lib/core/host-methods.js +4 -0
- package/lib/core/image-diet.js +1 -4
- package/lib/core/json-text.d.ts +11 -0
- package/lib/core/json-text.js +18 -0
- package/lib/core/learnings/skill-write.d.ts +1 -7
- package/lib/core/learnings/skill-write.js +3 -37
- package/lib/core/lifecycle-hooks.d.ts +11 -3
- package/lib/core/lifecycle-hooks.js +33 -42
- package/lib/core/llm.d.ts +42 -0
- package/lib/core/llm.js +40 -25
- package/lib/core/loop.d.ts +11 -1
- package/lib/core/loop.js +95 -28
- package/lib/core/lsp/client.js +30 -17
- package/lib/core/lsp/normalize.d.ts +0 -2
- package/lib/core/lsp/normalize.js +1 -6
- package/lib/core/lsp/servers.js +1 -4
- package/lib/core/mcp.d.ts +18 -0
- package/lib/core/mcp.js +60 -16
- package/lib/core/microcompact.d.ts +45 -0
- package/lib/core/microcompact.js +128 -0
- package/lib/core/native-bridge.js +2 -10
- package/lib/core/path-policy.d.ts +13 -1
- package/lib/core/path-policy.js +87 -18
- package/lib/core/permission-presets.d.ts +9 -5
- package/lib/core/permission-presets.js +14 -7
- package/lib/core/permission-scope.d.ts +65 -0
- package/lib/core/permission-scope.js +109 -0
- package/lib/core/plugin-bundle.d.ts +95 -0
- package/lib/core/plugin-bundle.js +137 -0
- package/lib/core/plugin-loader.d.ts +36 -1
- package/lib/core/plugin-loader.js +336 -12
- package/lib/core/plugin-patch.d.ts +64 -0
- package/lib/core/plugin-patch.js +146 -0
- package/lib/core/plugin-registry.d.ts +14 -0
- package/lib/core/plugin-registry.js +2 -0
- package/lib/core/prefs.js +40 -2
- package/lib/core/presets.d.ts +11 -0
- package/lib/core/presets.js +61 -22
- package/lib/core/profile-dir.d.ts +5 -0
- package/lib/core/profile-dir.js +40 -0
- package/lib/core/prompt.js +55 -19
- package/lib/core/ptc.d.ts +8 -2
- package/lib/core/ptc.js +18 -4
- package/lib/core/records.d.ts +16 -0
- package/lib/core/records.js +22 -0
- package/lib/core/remote/notify.js +1 -3
- package/lib/core/remote/push.js +2 -6
- package/lib/core/sandbox/execpolicy.js +27 -3
- package/lib/core/sandbox/net-proxy.js +2 -2
- package/lib/core/sandbox/policy.d.ts +1 -1
- package/lib/core/sandbox/policy.js +21 -15
- package/lib/core/sandbox/win/account.js +1 -4
- package/lib/core/sandbox/win/acl.js +1 -6
- package/lib/core/sandbox/win/backend.d.ts +24 -3
- package/lib/core/sandbox/win/backend.js +73 -23
- package/lib/core/sandbox/win/doctor.js +1 -4
- package/lib/core/sandbox/win/runner-entry.js +1 -6
- package/lib/core/sandbox/win/setup.js +1 -4
- package/lib/core/sandbox/win/utf16.d.ts +11 -0
- package/lib/core/sandbox/win/utf16.js +15 -0
- package/lib/core/sandbox/win/wfp.js +1 -4
- package/lib/core/schedule/rule.d.ts +0 -17
- package/lib/core/schedule/rule.js +1 -3
- package/lib/core/schedule/runner.d.ts +5 -2
- package/lib/core/schedule/runner.js +32 -9
- package/lib/core/schedule/store.d.ts +0 -2
- package/lib/core/schedule/store.js +2 -9
- package/lib/core/session-index.d.ts +50 -0
- package/lib/core/session-index.js +169 -3
- package/lib/core/session.d.ts +89 -13
- package/lib/core/session.js +385 -32
- package/lib/core/shell-quote.d.ts +21 -0
- package/lib/core/shell-quote.js +24 -0
- package/lib/core/side-ask.d.ts +52 -0
- package/lib/core/side-ask.js +89 -0
- package/lib/core/skills.d.ts +16 -0
- package/lib/core/skills.js +45 -8
- package/lib/core/snapshot-throttle.d.ts +8 -0
- package/lib/core/snapshot-throttle.js +24 -0
- package/lib/core/spill.d.ts +11 -5
- package/lib/core/spill.js +35 -36
- package/lib/core/strings.d.ts +21 -0
- package/lib/core/strings.js +33 -0
- package/lib/core/terminal-env.d.ts +61 -0
- package/lib/core/terminal-env.js +327 -0
- package/lib/core/text-format.d.ts +17 -0
- package/lib/core/text-format.js +26 -0
- package/lib/core/todo-reminder.d.ts +19 -14
- package/lib/core/todo-reminder.js +14 -23
- package/lib/core/token-estimate.d.ts +18 -2
- package/lib/core/token-estimate.js +10 -2
- package/lib/core/tool-result-prune.d.ts +42 -0
- package/lib/core/tool-result-prune.js +47 -0
- package/lib/core/tool-search.d.ts +3 -2
- package/lib/core/tool-search.js +3 -2
- package/lib/core/tools/bash.d.ts +35 -3
- package/lib/core/tools/bash.js +168 -41
- package/lib/core/tools/fs-tools.js +18 -17
- package/lib/core/tools/image-tool.d.ts +2 -0
- package/lib/core/tools/image-tool.js +59 -0
- package/lib/core/tools/path-args.d.ts +4 -0
- package/lib/core/tools/path-args.js +22 -0
- package/lib/core/tools/search-tools.d.ts +30 -0
- package/lib/core/tools/search-tools.js +321 -34
- package/lib/core/tools.d.ts +82 -0
- package/lib/core/tools.js +21 -0
- package/lib/core/transcript-text.d.ts +19 -0
- package/lib/core/transcript-text.js +44 -0
- package/lib/core/ui-boot-source.d.ts +5 -0
- package/lib/core/ui-boot-source.js +10 -3
- package/lib/core/ui-bundles.d.ts +80 -6
- package/lib/core/ui-bundles.js +700 -76
- package/lib/core/ui-events.d.ts +10 -0
- package/lib/core/ui-events.js +25 -0
- package/lib/core/ui-methods.d.ts +1 -1
- package/lib/core/ui-methods.js +42 -13
- package/lib/core/ui-route.js +11 -7
- package/lib/core/ui-server.d.ts +6 -0
- package/lib/core/ui-server.js +106 -1
- package/lib/core/unified-diff.d.ts +35 -0
- package/lib/core/unified-diff.js +86 -0
- package/lib/core/usage-log.js +39 -0
- package/lib/core/web-http.d.ts +1 -1
- package/lib/core/web-http.js +1 -3
- package/lib/host/kernel.js +57 -41
- package/lib/plugins/agent.js +101 -20
- package/lib/plugins/approval-floor.js +12 -8
- package/lib/plugins/approval.js +252 -80
- package/lib/plugins/ask.js +60 -8
- package/lib/plugins/browser.js +32 -84
- package/lib/plugins/commands.js +167 -57
- package/lib/plugins/compact.d.ts +2 -2
- package/lib/plugins/compact.js +200 -30
- package/lib/plugins/computer-use.js +34 -18
- package/lib/plugins/dock-browser.js +24 -65
- package/lib/plugins/dsh-compat.js +7 -0
- package/lib/plugins/file-review.js +59 -15
- package/lib/plugins/git.js +16 -8
- package/lib/plugins/goal.js +9 -8
- package/lib/plugins/hooks.js +4 -2
- package/lib/plugins/host-stdio.js +14 -16
- package/lib/plugins/lifecycle-hooks.d.ts +5 -4
- package/lib/plugins/lifecycle-hooks.js +12 -10
- package/lib/plugins/llm.js +74 -33
- package/lib/plugins/lsp.js +22 -27
- package/lib/plugins/mcp.js +16 -17
- package/lib/plugins/memory.js +3 -24
- package/lib/plugins/microcompact.d.ts +4 -1
- package/lib/plugins/microcompact.js +117 -19
- package/lib/plugins/mode.js +30 -11
- package/lib/plugins/permission-presets.d.ts +2 -1
- package/lib/plugins/permission-presets.js +55 -35
- package/lib/plugins/plugin-manager.js +4 -6
- package/lib/plugins/presets.js +56 -27
- package/lib/plugins/prompt.js +54 -11
- package/lib/plugins/ptc.d.ts +13 -0
- package/lib/plugins/ptc.js +121 -24
- package/lib/plugins/remote/types.d.ts +1 -1
- package/lib/plugins/remote/types.js +11 -0
- package/lib/plugins/remote.js +14 -15
- package/lib/plugins/runtime.js +91 -14
- package/lib/plugins/sandbox.js +181 -60
- package/lib/plugins/schedule.js +12 -11
- package/lib/plugins/self-improve.js +28 -18
- package/lib/plugins/session-search.js +18 -13
- package/lib/plugins/session-title.js +1 -1
- package/lib/plugins/session.js +103 -25
- package/lib/plugins/settings.js +16 -40
- package/lib/plugins/skills.js +18 -1
- package/lib/plugins/spill.js +18 -11
- package/lib/plugins/subagent.js +208 -42
- package/lib/plugins/team.js +11 -5
- package/lib/plugins/todo.d.ts +1 -1
- package/lib/plugins/todo.js +25 -19
- package/lib/plugins/tool-search.js +47 -28
- package/lib/plugins/tools-default.js +89 -5
- package/lib/plugins/tools.js +3 -3
- package/lib/plugins/transcript.js +116 -9
- package/lib/plugins/web-search.d.ts +1 -1
- package/lib/plugins/web-search.js +25 -16
- package/lib/plugins/webserver.js +40 -7
- package/lib/remote/assets/app-B3Id1EBq.js +14 -0
- package/lib/remote/assets/index.html +2 -2
- package/lib/remote/assets/{style-DIB6729x.css → style-NtlpbKOI.css} +1 -1
- package/lib/services/types.d.ts +247 -29
- package/lib/tools/plugin-cli.d.ts +1 -0
- package/lib/tools/plugin-cli.js +209 -0
- package/lib/ui/assets/app-B-Jx5dnh.js +90 -0
- package/lib/ui/assets/{chunk-BajyYBss.js → chunk-Bfdlo8Me.js} +1 -1
- package/lib/ui/assets/chunk-DGX-i4eb.js +12 -0
- package/lib/ui/assets/index.html +62 -14
- package/lib/ui/assets/style-WzxwEPaE.css +1 -0
- package/lib/ui/frames.js +1 -3
- package/lib/ui/index.d.ts +30 -1
- package/lib/ui/index.js +29 -0
- package/lib/ui/manifest.d.ts +24 -6
- package/lib/ui/manifest.js +3 -2
- package/lib/ui/plugins/actions/bundle.json +8 -0
- package/lib/ui/plugins/actions/client.js +43 -0
- package/lib/ui/plugins/ask/bundle.json +8 -0
- package/lib/ui/plugins/ask/client.js +415 -0
- package/lib/ui/plugins/browser/bundle.json +8 -0
- package/lib/ui/plugins/composer/bundle.json +9 -0
- package/lib/ui/plugins/composer/client.js +1806 -1087
- package/lib/ui/plugins/files/bundle.json +8 -0
- package/lib/ui/plugins/files/client.js +13 -98
- package/lib/ui/plugins/manifest.json +1 -104
- package/lib/ui/plugins/palette/bundle.json +8 -0
- package/lib/ui/plugins/palette/client.js +360 -0
- package/lib/ui/plugins/plugins/bundle.json +8 -0
- package/lib/ui/plugins/plugins/client.js +116 -38
- package/lib/ui/plugins/preview/bundle.json +8 -0
- package/lib/ui/plugins/preview/client.js +6 -16
- package/lib/ui/plugins/prompt/bundle.json +8 -0
- package/lib/ui/plugins/prompt/client.js +81 -47
- package/lib/ui/plugins/sessions/bundle.json +8 -0
- package/lib/ui/plugins/sessions/client.js +157 -111
- package/lib/ui/plugins/settings/bundle.json +8 -0
- package/lib/ui/plugins/settings/client.js +184 -170
- package/lib/ui/plugins/skills/bundle.json +8 -0
- package/lib/ui/plugins/skills/client.js +161 -79
- package/lib/ui/plugins/status/bundle.json +8 -0
- package/lib/ui/plugins/status/client.js +165 -26
- package/lib/ui/plugins/statusbar/bundle.json +9 -0
- package/lib/ui/plugins/statusbar/client.js +100 -144
- package/lib/ui/plugins/tasks/bundle.json +8 -0
- package/lib/ui/plugins/team/bundle.json +8 -0
- package/lib/ui/plugins/team/client.js +60 -58
- package/lib/ui/plugins/terminal/bundle.json +8 -0
- package/lib/ui/plugins/terminal/client.js +1 -7
- package/lib/ui/plugins/trace/bundle.json +11 -0
- package/lib/ui/plugins/trace/client.js +86 -179
- package/lib/ui/plugins/transcript/bundle.json +8 -0
- package/lib/ui/plugins/transcript/client.js +1608 -1243
- package/lib/ui/sdk/@dsc/ui/index.d.ts +54 -16
- package/lib/ui/sdk/@dsc/ui/package.json +1 -1
- package/lib/ui/sdk/@dsc/ui-core/contract.d.ts +20 -1968
- package/lib/ui/sdk/@dsc/ui-core/core/attachments.d.ts +185 -0
- package/lib/ui/sdk/@dsc/ui-core/core/bytes.d.ts +14 -0
- package/lib/ui/sdk/@dsc/ui-core/core/err-text.d.ts +18 -0
- package/lib/ui/sdk/@dsc/ui-core/core/git-surface.d.ts +17 -0
- package/lib/ui/sdk/@dsc/ui-core/core/json-text.d.ts +11 -0
- package/lib/ui/sdk/@dsc/ui-core/core/path-policy.d.ts +44 -0
- package/lib/ui/sdk/@dsc/ui-core/core/records.d.ts +16 -0
- package/lib/ui/sdk/@dsc/ui-core/core/throughput.d.ts +46 -0
- package/lib/ui/sdk/@dsc/ui-core/core/token-estimate.d.ts +18 -2
- package/lib/ui/sdk/@dsc/ui-core/core/unified-diff.d.ts +35 -0
- package/lib/ui/sdk/@dsc/ui-core/package.json +1 -1
- package/lib/ui/sdk/@dsc/ui-core/ui/index.d.ts +30 -1
- package/lib/ui/sdk/@dsc/ui-core/ui/manifest.d.ts +24 -6
- package/lib/ui/sdk/@dsc/ui-core/ui/services.d.ts +19 -8
- package/lib/ui/sdk/@dsc/ui-core/ui/signal.d.ts +49 -0
- package/lib/ui/sdk/@dsc/ui-dockkit/dock-model.d.ts +17 -3
- package/lib/ui/sdk/@dsc/ui-dockkit/dock-state.d.ts +1 -1
- package/lib/ui/sdk/@dsc/ui-dockkit/package.json +1 -1
- package/lib/ui/sdk/@dsc/ui-layout/app.d.ts +4 -0
- package/lib/ui/sdk/@dsc/ui-layout/appearance.d.ts +6 -1
- package/lib/ui/sdk/@dsc/ui-layout/host-channel.d.ts +21 -0
- package/lib/ui/sdk/@dsc/ui-layout/index.d.ts +1 -0
- package/lib/ui/sdk/@dsc/ui-layout/package.json +1 -1
- package/lib/ui/sdk/@dsc/ui-layout/page-state.d.ts +1 -1
- package/lib/ui/sdk/@dsc/ui-layout/runtime-context.d.ts +10 -1
- package/lib/ui/sdk/@dsc/ui-layout/thread-view.d.ts +1 -1
- package/lib/ui/sdk/@dsc/ui-layout/usage-today.d.ts +11 -0
- package/lib/ui/sdk/@dsc/ui-primitives/dialog-focus.d.ts +30 -0
- package/lib/ui/sdk/@dsc/ui-primitives/error-text.d.ts +12 -0
- package/lib/ui/sdk/@dsc/ui-primitives/git-surface.d.ts +9 -0
- package/lib/ui/sdk/@dsc/ui-primitives/highlight.d.ts +23 -0
- package/lib/ui/sdk/@dsc/ui-primitives/humanize-error.d.ts +35 -0
- package/lib/ui/sdk/@dsc/ui-primitives/icons-workspace.d.ts +33 -0
- package/lib/ui/sdk/@dsc/ui-primitives/icons.d.ts +21 -3
- package/lib/ui/sdk/@dsc/ui-primitives/image-lightbox.d.ts +21 -0
- package/lib/ui/sdk/@dsc/ui-primitives/index.d.ts +16 -0
- package/lib/ui/sdk/@dsc/ui-primitives/markdown.d.ts +10 -14
- package/lib/ui/sdk/@dsc/ui-primitives/package.json +1 -1
- package/lib/ui/sdk/@dsc/ui-primitives/panels.d.ts +31 -8
- package/lib/ui/sdk/@dsc/ui-primitives/paths.d.ts +2 -0
- package/lib/ui/sdk/@dsc/ui-primitives/review-findings-card.d.ts +25 -0
- package/lib/ui/sdk/@dsc/ui-primitives/review-findings.d.ts +64 -0
- package/lib/ui/sdk/@dsc/ui-primitives/review-notice-card.d.ts +27 -0
- package/lib/ui/sdk/@dsc/ui-primitives/review-notice.d.ts +80 -0
- package/lib/ui/sdk/@dsc/ui-primitives/signal.d.ts +9 -0
- package/lib/ui/sdk/@dsc/ui-primitives/sizes.d.ts +15 -0
- package/lib/ui/sdk/@dsc/ui-primitives/skeleton.d.ts +39 -0
- package/lib/ui/sdk/@dsc/ui-primitives/snapshot.d.ts +46 -0
- package/lib/ui/sdk/@dsc/ui-primitives/thread-resizer.d.ts +3 -3
- package/lib/ui/sdk/@dsc/ui-primitives/throughput.d.ts +13 -0
- package/lib/ui/sdk/@dsc/ui-primitives/tokens.d.ts +9 -0
- package/lib/ui/sdk/@dsc/ui-primitives/tool-args.d.ts +1 -1
- package/lib/ui/sdk/@dsc/ui-primitives/tool-summary.d.ts +30 -6
- package/lib/ui/sdk/@dsc/ui-primitives/unified-diff.d.ts +10 -0
- package/lib/ui/sdk/@dsc/ui-renderer/boot.d.ts +10 -1
- package/lib/ui/sdk/@dsc/ui-renderer/cordis-host.d.ts +113 -0
- package/lib/ui/sdk/@dsc/ui-renderer/package.json +1 -1
- package/lib/ui/sdk/@dsc/ui-slots/package.json +1 -1
- package/lib/ui/services.d.ts +19 -8
- package/lib/ui/services.js +20 -12
- package/lib/ui/signal.d.ts +49 -0
- package/lib/ui/signal.js +57 -0
- package/lib/ui/tui-plugins.js +36 -16
- package/package.json +71 -58
- package/lib/remote/assets/app-DAcUCOEn.js +0 -14
- package/lib/ui/assets/app-B70nVIKd.js +0 -69
- package/lib/ui/assets/chunk-BGcgwlCI.js +0 -12
- package/lib/ui/assets/style-Bq01xH_b.css +0 -1
package/lib/ui/services.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* 与参考实现的语义差,如实写清:dsh 的客户端服务是 cordis 的 `Service`(挂 fiber 生命周期、
|
|
5
5
|
* `ctx.inject` 动态等待);dsc 这份是**装载期的值表**——没有 fiber,等待语义在装载循环里
|
|
6
|
-
*
|
|
6
|
+
* 实现(依赖解析 {@link unmetDependencies} + 失败重试一轮,两个装载器共用)。
|
|
7
7
|
* 表本身只负责三件事:提供、读取、订阅(服务出现/消失时让界面换数据源)。
|
|
8
8
|
*
|
|
9
9
|
* 一个名字只能有一个提供者:第二次 `provide` 抛 {@link ServiceConflictError}(人话里带
|
|
@@ -96,24 +96,32 @@ export class ServiceRegistry {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
/**
|
|
99
|
-
*
|
|
99
|
+
* 解析一条插件的依赖,返回未满足的原因(空数组 = 可以装)。
|
|
100
100
|
*
|
|
101
|
-
* `inject`
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
101
|
+
* 插件 id 与服务名分开查:以前一个 `inject` 字段先按插件 id 解、解不到再当服务名,
|
|
102
|
+
* 于是「插件改名」与「服务没提供」在报告里长得一样。现在三档文案各说各的:
|
|
103
|
+
* 「插件 X 没装上:…」「插件 X 被停用了」「服务 Y 还没有提供者」。
|
|
104
|
+
*
|
|
105
|
+
* 第三档为什么单列:被停用的插件不在装载清单里,若混进「不在清单里」,用户会去装一个
|
|
106
|
+
* 已经装好的插件——下一步被指错了。停用是开关,翻回来就好。
|
|
107
|
+
* @param deps - 插件声明的两类依赖
|
|
105
108
|
* @param reportOf - 查另一个插件的装载报告(按插件 id)
|
|
106
109
|
* @param services - 当前的服务表
|
|
110
|
+
* @param disabled - 声明了但被用户停用的插件 id(不传就当没有停用的)
|
|
107
111
|
*/
|
|
108
|
-
export function
|
|
112
|
+
export function unmetDependencies(deps, reportOf, services, disabled) {
|
|
109
113
|
const unmet = [];
|
|
110
|
-
for (const name of
|
|
114
|
+
for (const name of deps.plugins ?? []) {
|
|
111
115
|
const dependency = reportOf(name);
|
|
112
|
-
if (dependency
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
+
if (dependency === undefined) {
|
|
117
|
+
unmet.push(disabled?.has(name) === true
|
|
118
|
+
? `插件 ${name} 被停用了(在插件中心或 ~/.dsc/plugins.json 里打开)`
|
|
119
|
+
: `插件 ${name} 不在清单里`);
|
|
116
120
|
}
|
|
121
|
+
else if (dependency.ok !== true)
|
|
122
|
+
unmet.push(`插件 ${name} 没装上:${dependency.error ?? '未知原因'}`);
|
|
123
|
+
}
|
|
124
|
+
for (const name of deps.services ?? []) {
|
|
117
125
|
if (!services.has(name))
|
|
118
126
|
unmet.push(`服务 ${name} 还没有提供者`);
|
|
119
127
|
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 模块级信号:一份共享状态 + 订阅 + 通知(全壳唯一一份写法)。
|
|
3
|
+
*
|
|
4
|
+
* 为什么要它:界面里有七处模块级共享状态(正文区那张脸、切页、dock 布局、旁问、文件树、
|
|
5
|
+
* 团队面板、启动账本),每处都手写「`Set<() => void>` + `subscribe` + 一个 for 循环通知」。
|
|
6
|
+
* 抄过去的不是那十行代码,是三条**抄漏了也不报错**的语义:
|
|
7
|
+
*
|
|
8
|
+
* 1. **引用稳定**:没变时 `get()` 必须返回同一个值(对象也一样)。`useSyncExternalStore`
|
|
9
|
+
* 拿它判断要不要重画——克隆一次就是逐帧重画,而且是"看起来卡"而不是"看起来错";
|
|
10
|
+
* 2. **通知前复制订阅者**:回调里退订(组件卸载时就会发生)不能打断这一轮遍历,
|
|
11
|
+
* 否则后面几个订阅者这一轮收不到通知,界面就停在旧值上;
|
|
12
|
+
* 3. **写入判等**:值没变就不通知。几个老实现各自用 `next === value` 判,
|
|
13
|
+
* 这里统一成 `Object.is`(`NaN` 算没变)。
|
|
14
|
+
*
|
|
15
|
+
* 与 `defineStore`(`store.ts`)的分工:
|
|
16
|
+
* - `defineStore` 是**按登记实例化**的席位——必须在 `apply(ui)` 里现建,随登记卸载消失,
|
|
17
|
+
* 带 actions 表与浅拷贝 draft;
|
|
18
|
+
* - 这份是**模块级单例**——没有登记、没有生命周期,谁引都是同一份。
|
|
19
|
+
* 两者要的只有「订阅 + 没变不通知」,所以不合并成一层。
|
|
20
|
+
*
|
|
21
|
+
* 两种用法,按「状态归不归这份信号」选:
|
|
22
|
+
* - **值归信号**(`set`):切页、团队面板开合、dock 布局、正文区那张脸。多字段写成
|
|
23
|
+
* **一个对象**、一次 `set` 发出去;分两次写会让订阅方先渲染半套新值
|
|
24
|
+
* (`thread-view` 的「切到轨迹并聚焦某一步」踩过这个:滚动位置会闪一下)。
|
|
25
|
+
* - **值在别处**(`notify`):状态是一张模块级 Map 或挂在 `globalThis` 上的账本
|
|
26
|
+
* (文件树、旁问、启动账本)。这类只借这份信号当**变更通道**:值怎么存照旧,
|
|
27
|
+
* 写完调 `notify()` 让订阅者重读。硬要把 Map 塞进信号,每次流式增量都得整张复制一遍,
|
|
28
|
+
* 换来的是零语义收益。
|
|
29
|
+
*
|
|
30
|
+
* @module dsc/ui/signal
|
|
31
|
+
*/
|
|
32
|
+
/** 一份模块级信号。 */
|
|
33
|
+
export interface Signal<T> {
|
|
34
|
+
/** 读当前值(没变时返回同一个引用)。 */
|
|
35
|
+
get(): T;
|
|
36
|
+
/** 写新值;与当前值相同(`Object.is`)就不通知。 */
|
|
37
|
+
set(next: T): void;
|
|
38
|
+
/**
|
|
39
|
+
* 通知订阅者「外部数据变了,重读一次」。
|
|
40
|
+
*
|
|
41
|
+
* 只在**值不归这份信号**时用(模块级 Map、`globalThis` 上的账本);值归信号时用 `set`。
|
|
42
|
+
* 它不判等——调用方说变了就是变了。
|
|
43
|
+
*/
|
|
44
|
+
notify(): void;
|
|
45
|
+
/** 订阅变化(`useSyncExternalStore` 的订阅函数形状)。 */
|
|
46
|
+
subscribe(listener: () => void): () => void;
|
|
47
|
+
}
|
|
48
|
+
/** 造一份信号;初值就是第一份状态。 */
|
|
49
|
+
export declare function createSignal<T>(initial: T): Signal<T>;
|
package/lib/ui/signal.js
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 模块级信号:一份共享状态 + 订阅 + 通知(全壳唯一一份写法)。
|
|
3
|
+
*
|
|
4
|
+
* 为什么要它:界面里有七处模块级共享状态(正文区那张脸、切页、dock 布局、旁问、文件树、
|
|
5
|
+
* 团队面板、启动账本),每处都手写「`Set<() => void>` + `subscribe` + 一个 for 循环通知」。
|
|
6
|
+
* 抄过去的不是那十行代码,是三条**抄漏了也不报错**的语义:
|
|
7
|
+
*
|
|
8
|
+
* 1. **引用稳定**:没变时 `get()` 必须返回同一个值(对象也一样)。`useSyncExternalStore`
|
|
9
|
+
* 拿它判断要不要重画——克隆一次就是逐帧重画,而且是"看起来卡"而不是"看起来错";
|
|
10
|
+
* 2. **通知前复制订阅者**:回调里退订(组件卸载时就会发生)不能打断这一轮遍历,
|
|
11
|
+
* 否则后面几个订阅者这一轮收不到通知,界面就停在旧值上;
|
|
12
|
+
* 3. **写入判等**:值没变就不通知。几个老实现各自用 `next === value` 判,
|
|
13
|
+
* 这里统一成 `Object.is`(`NaN` 算没变)。
|
|
14
|
+
*
|
|
15
|
+
* 与 `defineStore`(`store.ts`)的分工:
|
|
16
|
+
* - `defineStore` 是**按登记实例化**的席位——必须在 `apply(ui)` 里现建,随登记卸载消失,
|
|
17
|
+
* 带 actions 表与浅拷贝 draft;
|
|
18
|
+
* - 这份是**模块级单例**——没有登记、没有生命周期,谁引都是同一份。
|
|
19
|
+
* 两者要的只有「订阅 + 没变不通知」,所以不合并成一层。
|
|
20
|
+
*
|
|
21
|
+
* 两种用法,按「状态归不归这份信号」选:
|
|
22
|
+
* - **值归信号**(`set`):切页、团队面板开合、dock 布局、正文区那张脸。多字段写成
|
|
23
|
+
* **一个对象**、一次 `set` 发出去;分两次写会让订阅方先渲染半套新值
|
|
24
|
+
* (`thread-view` 的「切到轨迹并聚焦某一步」踩过这个:滚动位置会闪一下)。
|
|
25
|
+
* - **值在别处**(`notify`):状态是一张模块级 Map 或挂在 `globalThis` 上的账本
|
|
26
|
+
* (文件树、旁问、启动账本)。这类只借这份信号当**变更通道**:值怎么存照旧,
|
|
27
|
+
* 写完调 `notify()` 让订阅者重读。硬要把 Map 塞进信号,每次流式增量都得整张复制一遍,
|
|
28
|
+
* 换来的是零语义收益。
|
|
29
|
+
*
|
|
30
|
+
* @module dsc/ui/signal
|
|
31
|
+
*/
|
|
32
|
+
/** 造一份信号;初值就是第一份状态。 */
|
|
33
|
+
export function createSignal(initial) {
|
|
34
|
+
let value = initial;
|
|
35
|
+
const listeners = new Set();
|
|
36
|
+
const notify = () => {
|
|
37
|
+
// 复制一份再遍历:回调里退订不会漏掉后面的订阅者。
|
|
38
|
+
for (const listener of [...listeners])
|
|
39
|
+
listener();
|
|
40
|
+
};
|
|
41
|
+
return {
|
|
42
|
+
get: () => value,
|
|
43
|
+
set: (next) => {
|
|
44
|
+
if (Object.is(next, value))
|
|
45
|
+
return;
|
|
46
|
+
value = next;
|
|
47
|
+
notify();
|
|
48
|
+
},
|
|
49
|
+
notify,
|
|
50
|
+
subscribe: (listener) => {
|
|
51
|
+
listeners.add(listener);
|
|
52
|
+
return () => {
|
|
53
|
+
listeners.delete(listener);
|
|
54
|
+
};
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
}
|
package/lib/ui/tui-plugins.js
CHANGED
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import React from 'react';
|
|
17
17
|
import * as jsxRuntime from 'react/jsx-runtime';
|
|
18
|
-
import { collectUiArtifactsForPlatform, readThirdPartyUiPluginBundle, readUiPluginBundle, } from '../core/ui-bundles.js';
|
|
18
|
+
import { collectUiArtifactsForPlatform, readThirdPartyUiPluginBundle, readUiArtifactBytes, readUiPluginBundle, } from '../core/ui-bundles.js';
|
|
19
19
|
import { isUiMethod, validateUiArgs } from '../core/ui-methods.js';
|
|
20
20
|
import { createScopedSlotApi } from './scoped-slots.js';
|
|
21
|
-
import { ServiceRegistry,
|
|
21
|
+
import { ServiceRegistry, unmetDependencies } from './services.js';
|
|
22
22
|
import * as tuiPluginApi from './tui-plugin-api.js';
|
|
23
23
|
/** 工厂注册用的全局名(与浏览器壳、构建包装同一个名字)。 */
|
|
24
24
|
const FACTORY_GLOBAL = '__DSC_UI_FACTORIES__';
|
|
@@ -56,11 +56,23 @@ export function loadTuiPlugins(options) {
|
|
|
56
56
|
}
|
|
57
57
|
return MODULES[spec];
|
|
58
58
|
};
|
|
59
|
+
/** 按条目的来源去读它的字节(内置在产物目录、第三方在 ~/.dsc/plugins、组合包在包自己的路径)。 */
|
|
60
|
+
const bytesOf = (entry) => {
|
|
61
|
+
const origin = entry.origin;
|
|
62
|
+
if (origin === 'package') {
|
|
63
|
+
// 组合包的入口由包的 exports 决定,不在固定位置:发现时已把绝对路径算好。
|
|
64
|
+
return readUiArtifactBytes(entry, options.pluginsDir === undefined ? {} : { builtinDir: options.pluginsDir });
|
|
65
|
+
}
|
|
66
|
+
if (origin === 'third-party')
|
|
67
|
+
return readThirdPartyUiPluginBundle(entry.id);
|
|
68
|
+
return readUiPluginBundle(entry.id, entry.file, options.pluginsDir);
|
|
69
|
+
};
|
|
59
70
|
/** 把 bundle 字节求值成工厂(求值只注册工厂,不物化)。 */
|
|
60
|
-
const factoryOf = (
|
|
61
|
-
const
|
|
71
|
+
const factoryOf = (entry) => {
|
|
72
|
+
const id = entry.id;
|
|
73
|
+
const code = bytesOf(entry);
|
|
62
74
|
if (code === null)
|
|
63
|
-
throw new Error(`读不到插件 bundle:${id}/${file}`);
|
|
75
|
+
throw new Error(`读不到插件 bundle:${id}/${entry.file}`);
|
|
64
76
|
const table = globalThis;
|
|
65
77
|
const existing = table[FACTORY_GLOBAL];
|
|
66
78
|
const scope = existing !== undefined && typeof existing === 'object' ? existing : (table[FACTORY_GLOBAL] = {});
|
|
@@ -73,7 +85,8 @@ export function loadTuiPlugins(options) {
|
|
|
73
85
|
return factory;
|
|
74
86
|
};
|
|
75
87
|
/** 跑工厂拿导出(require 只认白名单——与浏览器壳的 `instantiate` 同形)。 */
|
|
76
|
-
const install = (
|
|
88
|
+
const install = (entry, deps, attempt) => {
|
|
89
|
+
const id = entry.id;
|
|
77
90
|
// 这个插件的登记账本:中途抛错时按它回滚,重试才不会撞「id 已被占用」。
|
|
78
91
|
const ledger = [];
|
|
79
92
|
const provides = [];
|
|
@@ -88,15 +101,16 @@ export function loadTuiPlugins(options) {
|
|
|
88
101
|
}
|
|
89
102
|
ledger.length = 0;
|
|
90
103
|
};
|
|
91
|
-
//
|
|
92
|
-
|
|
104
|
+
// 硬依赖先解析:插件 id 与服务名各查各的(2.0 起不再双关);
|
|
105
|
+
// 被停用的依赖要说「被停用了」,不能说「不在清单里」——后者会把人指去重装。
|
|
106
|
+
const unmet = unmetDependencies(deps, (name) => reportById.get(name), services, new Set(artifacts.disabled));
|
|
93
107
|
if (unmet.length > 0) {
|
|
94
108
|
const reason = `等待:${unmet.join(';')}`;
|
|
95
109
|
reportById.set(id, { id, ok: false, error: reason, attempts: attempt });
|
|
96
110
|
return reason;
|
|
97
111
|
}
|
|
98
112
|
try {
|
|
99
|
-
const exported = instantiate(factoryOf(
|
|
113
|
+
const exported = instantiate(factoryOf(entry), require_);
|
|
100
114
|
// vite 的 cjs 产物把 `export default` 放在 `.default` 上(与浏览器壳 boot.ts 同一处理)。
|
|
101
115
|
const module_ = exported?.default ?? exported;
|
|
102
116
|
const apply = module_?.apply;
|
|
@@ -138,18 +152,24 @@ export function loadTuiPlugins(options) {
|
|
|
138
152
|
return reason;
|
|
139
153
|
}
|
|
140
154
|
};
|
|
155
|
+
// 两轮装载的键都是「产物条目」本身:组合包的入口在包的绝对路径上(由 exports 决定),
|
|
156
|
+
// 只传 id/file 会读错地方。
|
|
141
157
|
const failed = [];
|
|
142
158
|
for (const entry of artifacts.entries) {
|
|
143
|
-
const
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
159
|
+
const deps = {
|
|
160
|
+
...(entry.inject === undefined ? {} : { plugins: entry.inject }),
|
|
161
|
+
...(entry.services === undefined
|
|
162
|
+
? {}
|
|
163
|
+
: { services: entry.services }),
|
|
164
|
+
};
|
|
165
|
+
if (install(entry, deps, 1) !== null)
|
|
166
|
+
failed.push({ entry, deps });
|
|
147
167
|
}
|
|
148
168
|
// 失败重试一轮(语义同浏览器壳):真的写错了不能靠反复重试掩盖,但一次失败也不能永久缺席。
|
|
149
|
-
for (const
|
|
150
|
-
if (reportById.get(entry.id)?.ok === true)
|
|
169
|
+
for (const item of failed) {
|
|
170
|
+
if (reportById.get(item.entry.id)?.ok === true)
|
|
151
171
|
continue;
|
|
152
|
-
install(
|
|
172
|
+
install(item.entry, item.deps, 2);
|
|
153
173
|
}
|
|
154
174
|
const reports = artifacts.entries.map((entry) => reportById.get(entry.id) ?? { id: entry.id, ok: false, error: '没有尝试加载' });
|
|
155
175
|
for (const report of reports)
|
package/package.json
CHANGED
|
@@ -1,58 +1,71 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@waq666/pneuma",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Pneuma(numa)— 独立的终端 AI harness(自研 ReAct loop + ink TUI)",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"publishConfig": {
|
|
8
|
-
"access": "public",
|
|
9
|
-
"registry": "https://registry.npmjs.org"
|
|
10
|
-
},
|
|
11
|
-
"repository": {
|
|
12
|
-
"type": "git",
|
|
13
|
-
"url": "git+https://github.com/waq05/pneuma.git"
|
|
14
|
-
},
|
|
15
|
-
"engines": {
|
|
16
|
-
"node": ">=22.19"
|
|
17
|
-
},
|
|
18
|
-
"bin": {
|
|
19
|
-
"numa": "./bin/dsc.js"
|
|
20
|
-
},
|
|
21
|
-
"files": [
|
|
22
|
-
"bin",
|
|
23
|
-
"lib",
|
|
24
|
-
"package.json"
|
|
25
|
-
],
|
|
26
|
-
"scripts": {
|
|
27
|
-
"build": "tsc -p tsconfig.json",
|
|
28
|
-
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
29
|
-
"dev": "tsc -p tsconfig.json --watch",
|
|
30
|
-
"build:ui": "pnpm -C ui-shell build",
|
|
31
|
-
"ui
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@waq666/pneuma",
|
|
3
|
+
"version": "0.8.1",
|
|
4
|
+
"description": "Pneuma(numa)— 独立的终端 AI harness(自研 ReAct loop + ink TUI)",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"access": "public",
|
|
9
|
+
"registry": "https://registry.npmjs.org"
|
|
10
|
+
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/waq05/pneuma.git"
|
|
14
|
+
},
|
|
15
|
+
"engines": {
|
|
16
|
+
"node": ">=22.19"
|
|
17
|
+
},
|
|
18
|
+
"bin": {
|
|
19
|
+
"numa": "./bin/dsc.js"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"bin",
|
|
23
|
+
"lib",
|
|
24
|
+
"package.json"
|
|
25
|
+
],
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "tsc -p tsconfig.json",
|
|
28
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
29
|
+
"dev": "tsc -p tsconfig.json --watch",
|
|
30
|
+
"build:ui": "pnpm -C ui-shell build",
|
|
31
|
+
"check:ui": "node scripts/check-ui.mjs",
|
|
32
|
+
"check:ui:e2e": "node scripts/check-ui.mjs --e2e",
|
|
33
|
+
"check:ui:list": "node scripts/check-ui.mjs --list && node scripts/check-ui.mjs --e2e --list",
|
|
34
|
+
"check:dsh": "node scripts/dsh-compat-check.mjs && node scripts/dsh-bundle-check.mjs && node scripts/dsh-real-plugin-check.mjs && node scripts/dsh-session-bridge-check.mjs && node scripts/dsh-llm-event-check.mjs && node scripts/dsh-session-events-check.mjs && node scripts/dsh-compat-live-check.mjs",
|
|
35
|
+
"check:core": "node scripts/check-core.mjs",
|
|
36
|
+
"check:style": "node scripts/style-check.mjs",
|
|
37
|
+
"check:all": "pnpm run check:style && pnpm run check:ui && pnpm run check:dsh && pnpm run check:core",
|
|
38
|
+
"ui:serve": "node scripts/_ui-shell-serve.mjs"
|
|
39
|
+
},
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"@deepseek-ai/cordis": "^4.0.4",
|
|
42
|
+
"@deepseek-ai/cordis-plugin-loader": "^1.0.5",
|
|
43
|
+
"@deepseek-ai/dsh-tools": "0.2.1-rc.3",
|
|
44
|
+
"ink": "^6.0.0",
|
|
45
|
+
"koffi": "3.1.1",
|
|
46
|
+
"react": "^19.2.0",
|
|
47
|
+
"semver": "^7.8.5",
|
|
48
|
+
"web-push": "^3.6.7",
|
|
49
|
+
"ws": "^8.21.3",
|
|
50
|
+
"yaml": "^2.9.1"
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@types/node": "^24.0.0",
|
|
54
|
+
"@types/react": "^19.0.0",
|
|
55
|
+
"@types/semver": "^7.8.0",
|
|
56
|
+
"@types/web-push": "^3.6.4",
|
|
57
|
+
"@types/ws": "^8.18.2",
|
|
58
|
+
"typescript": "^5.9.0"
|
|
59
|
+
},
|
|
60
|
+
"pnpm": {
|
|
61
|
+
"onlyBuiltDependencies": [
|
|
62
|
+
"koffi",
|
|
63
|
+
"electron"
|
|
64
|
+
],
|
|
65
|
+
"//": "react 与 react-dom 钉死同版:四个项目收成 workspace 后,pnpm 把 react 解到 19.3.0、react-dom 解到 19.3.1,后者的 peer 要 ^19.3.1,装完就在警告里躺着。两个 React 版本不一致的后果不是装不上,是运行期 hooks 报错。",
|
|
66
|
+
"overrides": {
|
|
67
|
+
"react": "19.3.1",
|
|
68
|
+
"react-dom": "19.3.1"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|