@kirkchinese/dsh-citeciter 0.5.0 → 0.8.0

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.
Files changed (101) hide show
  1. package/README.md +89 -70
  2. package/README.zh.md +91 -70
  3. package/lib/client.js +7028 -1167
  4. package/lib/index.js +1786 -587
  5. package/lib/{typert-common-DKqYKnRO.js → typert-common-DxE1_Bn_.js} +1 -1
  6. package/lib/typert.host.js +2 -2
  7. package/lib/typert.remote-client.js +1 -1
  8. package/lib/types/actions.d.ts +47 -0
  9. package/lib/types/board-capture.d.ts +11 -0
  10. package/lib/types/board.d.ts +4 -4
  11. package/lib/types/citation-mapping.d.ts +8 -0
  12. package/lib/types/citer-agent-registry.d.ts +21 -0
  13. package/lib/types/citer-session-access.d.ts +11 -0
  14. package/lib/types/citer-session-store.d.ts +7 -0
  15. package/lib/types/citer-session-world.d.ts +21 -0
  16. package/lib/types/client/action-controller.d.ts +61 -0
  17. package/lib/types/client/action-executor.d.ts +6 -0
  18. package/lib/types/client/board-capture-target.d.ts +8 -0
  19. package/lib/types/client/citer-session-face.d.ts +59 -0
  20. package/lib/types/client/compact-navigation.d.ts +3 -0
  21. package/lib/types/client/companion-controller.d.ts +19 -5
  22. package/lib/types/client/components/ActionWheel.d.ts +12 -0
  23. package/lib/types/client/components/BlackboardWorkspace.d.ts +7 -5
  24. package/lib/types/client/components/BoardCaptureSurface.d.ts +8 -0
  25. package/lib/types/client/components/BoardView.d.ts +5 -3
  26. package/lib/types/client/components/ChoicePopover.d.ts +8 -0
  27. package/lib/types/client/components/CiteCiterSettings.d.ts +12 -7
  28. package/lib/types/client/components/CiteLauncher.d.ts +9 -0
  29. package/lib/types/client/components/CitePanel.d.ts +15 -5
  30. package/lib/types/client/components/CompactBackButton.d.ts +4 -0
  31. package/lib/types/client/components/DocumentReader.d.ts +12 -3
  32. package/lib/types/client/components/FileAttachments.d.ts +9 -0
  33. package/lib/types/client/components/FileDropHint.d.ts +5 -0
  34. package/lib/types/client/components/LearningCards.d.ts +12 -0
  35. package/lib/types/client/components/LearningRoute.d.ts +7 -0
  36. package/lib/types/client/components/MessageAttachments.d.ts +12 -0
  37. package/lib/types/client/components/MessageFile.d.ts +8 -0
  38. package/lib/types/client/components/ModelChoice.d.ts +10 -0
  39. package/lib/types/client/components/NativeInteraction.d.ts +7 -0
  40. package/lib/types/client/components/NativeLearningDocument.d.ts +9 -0
  41. package/lib/types/client/components/NativeQueue.d.ts +6 -0
  42. package/lib/types/client/components/OverlayPortal.d.ts +10 -0
  43. package/lib/types/client/components/PermissionControl.d.ts +7 -0
  44. package/lib/types/client/components/QuestionCard.d.ts +10 -4
  45. package/lib/types/client/components/ReasoningDisclosure.d.ts +5 -0
  46. package/lib/types/client/components/ReferenceAttachments.d.ts +6 -0
  47. package/lib/types/client/components/TopicActions.d.ts +6 -0
  48. package/lib/types/client/components/TopicComposer.d.ts +36 -0
  49. package/lib/types/client/components/TopicHeader.d.ts +10 -0
  50. package/lib/types/client/components/TopicModelControls.d.ts +9 -0
  51. package/lib/types/client/components/TopicNavigation.d.ts +12 -0
  52. package/lib/types/client/components/TopicSettingsDialog.d.ts +21 -0
  53. package/lib/types/client/components/TopicTitle.d.ts +6 -0
  54. package/lib/types/client/components/UpdateNotice.d.ts +6 -3
  55. package/lib/types/client/components/UserMessageBody.d.ts +4 -0
  56. package/lib/types/client/components/WheelSettings.d.ts +7 -0
  57. package/lib/types/client/copy.d.ts +6 -0
  58. package/lib/types/client/dock-geometry.d.ts +23 -0
  59. package/lib/types/client/draft-references.d.ts +20 -0
  60. package/lib/types/client/entries.d.ts +3 -2
  61. package/lib/types/client/file-download.d.ts +16 -0
  62. package/lib/types/client/file-drop.d.ts +18 -0
  63. package/lib/types/client/host-dock.d.ts +18 -0
  64. package/lib/types/client/learning-route.d.ts +10 -0
  65. package/lib/types/client/native-composer.d.ts +18 -0
  66. package/lib/types/client/native-document.d.ts +13 -0
  67. package/lib/types/client/panel-drag.d.ts +10 -0
  68. package/lib/types/client/reader-controller.d.ts +7 -1
  69. package/lib/types/client/request-guard.d.ts +3 -2
  70. package/lib/types/client/selection.d.ts +1 -1
  71. package/lib/types/client/submission-preference.d.ts +5 -0
  72. package/lib/types/client/transcript-position.d.ts +6 -0
  73. package/lib/types/client/types.d.ts +6 -5
  74. package/lib/types/client/update-controller.d.ts +5 -3
  75. package/lib/types/client/view-actions.d.ts +26 -0
  76. package/lib/types/client/wheel-gesture.d.ts +13 -0
  77. package/lib/types/document-pages.d.ts +4 -0
  78. package/lib/types/documents.d.ts +7 -5
  79. package/lib/types/host-agent-modules.d.ts +15 -0
  80. package/lib/types/host-session-adapter.d.ts +31 -0
  81. package/lib/types/index.d.ts +6 -6
  82. package/lib/types/learning.d.ts +72 -0
  83. package/lib/types/native-attachment-read.d.ts +19 -0
  84. package/lib/types/native-session-contract.d.ts +198 -0
  85. package/lib/types/native-session-read.d.ts +4 -0
  86. package/lib/types/observer.d.ts +2 -1
  87. package/lib/types/owned-session-cleanup.d.ts +2 -0
  88. package/lib/types/service.d.ts +1 -1
  89. package/lib/types/session-migration.d.ts +3 -0
  90. package/lib/types/source-session.d.ts +7 -0
  91. package/lib/types/source-storage.d.ts +12 -0
  92. package/lib/types/topic-index.d.ts +75 -0
  93. package/lib/types/topic-runtime.d.ts +21 -57
  94. package/lib/types/topic-stream.d.ts +14 -0
  95. package/lib/types/topic.d.ts +301 -2
  96. package/lib/types/typert-common.d.ts +211 -1
  97. package/lib/types/typert.host.d.ts +456 -3
  98. package/lib/types/update.d.ts +1 -0
  99. package/lib/{update-u9-6c_qp.js → update-0LcFDvI5.js} +281 -14
  100. package/package.json +83 -70
  101. package/lib/types/client/components/SelectionMenu.d.ts +0 -13
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kirkchinese/dsh-citeciter",
3
- "version": "0.5.0",
4
- "description": "Read-only learning Topics and presenter boards for DeepSeek Harness",
3
+ "version": "0.8.0",
4
+ "description": "Source-aware native DSH Topics with manual drafts, permissions, visual boards and learning cards",
5
5
  "keywords": [
6
6
  "deepseek-harness",
7
7
  "dsh",
@@ -66,10 +66,13 @@
66
66
  "inject": [
67
67
  "@deepseek-ai/dsh-api-gateway",
68
68
  "@deepseek-ai/dsh-client-connection",
69
- "@deepseek-ai/dsh-client-runtime",
70
69
  "@deepseek-ai/dsh-client-ui-conversation",
71
70
  "@deepseek-ai/dsh-client-ui-layout",
72
- "@deepseek-ai/dsh-client-ui-settings"
71
+ "@deepseek-ai/dsh-client-ui-settings",
72
+ "@deepseek-ai/dsh-api-session-controller",
73
+ "@deepseek-ai/dsh-client-ui-session",
74
+ "@deepseek-ai/dsh-client-ui-chat",
75
+ "@deepseek-ai/dsh-api-settings-controller"
73
76
  ],
74
77
  "platform": "web"
75
78
  }
@@ -83,98 +86,108 @@
83
86
  "scripts": {
84
87
  "build": "npm run build:lib && npm run build:bundle",
85
88
  "prebuild:lib": "node scripts/clean-types.mjs",
86
- "build:lib": "tsc -p tsconfig.json",
89
+ "build:lib": "tsc -p tsconfig.host.json && tsc -p tsconfig.client.json",
87
90
  "prebuild:bundle": "node scripts/clean-bundle.mjs",
88
91
  "build:bundle": "tsdown --env.DSH_BUILD_FACE client",
89
92
  "postbuild:bundle": "node scripts/normalize-bundle.mjs",
90
93
  "prepack": "npm run build",
91
94
  "dev": "npm run build && node dev/watch.mjs",
92
- "smoke:seed": "node dev/seed-smoke-session.mjs",
93
- "smoke:hmr": "node dev/hmr-smoke.mjs",
94
- "typecheck": "tsc -p tsconfig.json --noEmit",
95
- "test": "npm run build:lib && node --test tests/*.test.mjs"
95
+ "typecheck": "tsc -p tsconfig.host.json --noEmit && tsc -p tsconfig.client.json --noEmit"
96
96
  },
97
97
  "peerDependencies": {
98
- "@deepseek-ai/cordis": "^4.0.1",
99
- "@deepseek-ai/dsh-agent": ">=0.1.1-rc.1 <0.1.1-rc.3",
100
- "@deepseek-ai/dsh-agent-loop": ">=0.1.1-rc.1 <0.1.1-rc.3",
101
- "@deepseek-ai/dsh-api-gateway": ">=0.1.1-rc.1 <0.1.1-rc.3",
102
- "@deepseek-ai/dsh-client-connection": ">=0.1.1-rc.1 <0.1.1-rc.3",
103
- "@deepseek-ai/dsh-client-runtime": ">=0.1.1-rc.1 <0.1.1-rc.3",
104
- "@deepseek-ai/dsh-client-ui-conversation": ">=0.1.1-rc.1 <0.1.1-rc.3",
105
- "@deepseek-ai/dsh-client-ui-layout": ">=0.1.1-rc.1 <0.1.1-rc.3",
106
- "@deepseek-ai/dsh-client-ui-settings": ">=0.1.1-rc.1 <0.1.1-rc.3",
107
- "@deepseek-ai/dsh-fs": ">=0.1.1-rc.1 <0.1.1-rc.3",
108
- "@deepseek-ai/dsh-home-paths": ">=0.1.1-rc.1 <0.1.1-rc.3",
109
- "@deepseek-ai/dsh-llm": ">=0.1.1-rc.1 <0.1.1-rc.3",
110
- "@deepseek-ai/dsh-output-retention": ">=0.1.1-rc.1 <0.1.1-rc.3",
111
- "@deepseek-ai/dsh-sandbox-policy": ">=0.1.1-rc.1 <0.1.1-rc.3",
112
- "@deepseek-ai/dsh-session": ">=0.1.1-rc.1 <0.1.1-rc.3",
113
- "@deepseek-ai/dsh-session-persistence-jsonl": ">=0.1.1-rc.1 <0.1.1-rc.3",
114
- "@deepseek-ai/dsh-session-query": ">=0.1.1-rc.1 <0.1.1-rc.3",
115
- "@deepseek-ai/dsh-session-title": ">=0.1.1-rc.1 <0.1.1-rc.3",
116
- "@deepseek-ai/dsh-session-title-llm": ">=0.1.1-rc.1 <0.1.1-rc.3",
117
- "@deepseek-ai/dsh-settings": ">=0.1.1-rc.1 <0.1.1-rc.3",
118
- "@deepseek-ai/dsh-spill": ">=0.1.1-rc.1 <0.1.1-rc.3",
119
- "@deepseek-ai/dsh-subprocess": ">=0.1.1-rc.1 <0.1.1-rc.3",
120
- "@deepseek-ai/dsh-system-prompt": ">=0.1.1-rc.1 <0.1.1-rc.3",
121
- "@deepseek-ai/dsh-tool-ask-user": ">=0.1.1-rc.1 <0.1.1-rc.3",
122
- "@deepseek-ai/dsh-tool-fs": ">=0.1.1-rc.1 <0.1.1-rc.3",
123
- "@deepseek-ai/dsh-tool-fs-search": ">=0.1.1-rc.1 <0.1.1-rc.3",
124
- "@deepseek-ai/dsh-tools": ">=0.1.1-rc.1 <0.1.1-rc.3",
125
- "@deepseek-ai/dsh-typert-protocol": ">=0.1.1-rc.1 <0.1.1-rc.3",
126
- "@deepseek-ai/dsh-user-questions": ">=0.1.1-rc.1 <0.1.1-rc.3",
98
+ "@deepseek-ai/cordis": "^4.0.2",
99
+ "@deepseek-ai/dsh-agent": "0.1.5-rc.1",
100
+ "@deepseek-ai/dsh-agent-loop": "0.1.5-rc.1",
101
+ "@deepseek-ai/dsh-agent-presets": "0.1.5-rc.1",
102
+ "@deepseek-ai/dsh-attachment": "0.1.5-rc.1",
103
+ "@deepseek-ai/dsh-fs": "0.1.5-rc.1",
104
+ "@deepseek-ai/dsh-home-paths": "0.1.5-rc.1",
105
+ "@deepseek-ai/dsh-llm": "0.1.5-rc.1",
106
+ "@deepseek-ai/dsh-output-retention": "0.1.5-rc.1",
107
+ "@deepseek-ai/dsh-sandbox-policy": "0.1.5-rc.1",
108
+ "@deepseek-ai/dsh-session": "0.1.5-rc.1",
109
+ "@deepseek-ai/dsh-session-persistence-jsonl": "0.1.5-rc.1",
110
+ "@deepseek-ai/dsh-session-projection": "0.1.5-rc.1",
111
+ "@deepseek-ai/dsh-session-query": "0.1.5-rc.1",
112
+ "@deepseek-ai/dsh-session-title": "0.1.5-rc.1",
113
+ "@deepseek-ai/dsh-session-title-llm": "0.1.5-rc.1",
114
+ "@deepseek-ai/dsh-settings": "0.1.5-rc.1",
115
+ "@deepseek-ai/dsh-spill": "0.1.5-rc.1",
116
+ "@deepseek-ai/dsh-subprocess": "0.1.5-rc.1",
117
+ "@deepseek-ai/dsh-system-prompt": "0.1.5-rc.1",
118
+ "@deepseek-ai/dsh-tool-ask-user": "0.1.5-rc.1",
119
+ "@deepseek-ai/dsh-tool-fs": "0.1.5-rc.1",
120
+ "@deepseek-ai/dsh-tool-fs-search": "0.1.5-rc.1",
121
+ "@deepseek-ai/dsh-tools": "0.1.5-rc.1",
122
+ "@deepseek-ai/dsh-typert-protocol": "0.1.5-rc.1",
123
+ "@deepseek-ai/dsh-user-questions": "0.1.5-rc.1",
127
124
  "@deepseek-ai/schemastery": "^3.18.1",
128
125
  "zod": "^4.4.3"
129
126
  },
130
127
  "devDependencies": {
131
- "@deepseek-ai/cordis": "^4.0.1",
132
- "@deepseek-ai/dsh-agent": "0.1.1-rc.2",
133
- "@deepseek-ai/dsh-agent-loop": "0.1.1-rc.2",
134
- "@deepseek-ai/dsh-api-gateway": "0.1.1-rc.2",
135
- "@deepseek-ai/dsh-client-connection": "0.1.1-rc.2",
136
- "@deepseek-ai/dsh-client-runtime": "0.1.1-rc.2",
137
- "@deepseek-ai/dsh-client-ui-conversation": "0.1.1-rc.2",
138
- "@deepseek-ai/dsh-client-ui-layout": "0.1.1-rc.2",
139
- "@deepseek-ai/dsh-client-ui-primitives": "0.1.1-rc.2",
140
- "@deepseek-ai/dsh-client-ui-settings": "0.1.1-rc.2",
141
- "@deepseek-ai/dsh-client-ui-slots": "0.1.1-rc.2",
142
- "@deepseek-ai/dsh-fs": "0.1.1-rc.2",
143
- "@deepseek-ai/dsh-home-paths": "0.1.1-rc.2",
144
- "@deepseek-ai/dsh-llm": "0.1.1-rc.2",
145
- "@deepseek-ai/dsh-output-retention": "0.1.1-rc.2",
146
- "@deepseek-ai/dsh-sandbox-policy": "0.1.1-rc.2",
147
- "@deepseek-ai/dsh-session": "0.1.1-rc.2",
148
- "@deepseek-ai/dsh-session-persistence-jsonl": "0.1.1-rc.2",
149
- "@deepseek-ai/dsh-session-query": "0.1.1-rc.2",
150
- "@deepseek-ai/dsh-session-title": "0.1.1-rc.2",
151
- "@deepseek-ai/dsh-session-title-llm": "0.1.1-rc.2",
152
- "@deepseek-ai/dsh-settings": "0.1.1-rc.2",
153
- "@deepseek-ai/dsh-spill": "0.1.1-rc.2",
154
- "@deepseek-ai/dsh-subprocess": "0.1.1-rc.2",
155
- "@deepseek-ai/dsh-system-prompt": "0.1.1-rc.2",
156
- "@deepseek-ai/dsh-tool-ask-user": "0.1.1-rc.2",
157
- "@deepseek-ai/dsh-tool-fs": "0.1.1-rc.2",
158
- "@deepseek-ai/dsh-tool-fs-search": "0.1.1-rc.2",
159
- "@deepseek-ai/dsh-tools": "0.1.1-rc.2",
160
- "@deepseek-ai/dsh-typert-protocol": "0.1.1-rc.2",
161
- "@deepseek-ai/dsh-user-questions": "0.1.1-rc.2",
128
+ "@deepseek-ai/cordis": "^4.0.2",
129
+ "@deepseek-ai/dsh-agent": "0.1.5-rc.1",
130
+ "@deepseek-ai/dsh-agent-loop": "0.1.5-rc.1",
131
+ "@deepseek-ai/dsh-agent-presets": "0.1.5-rc.1",
132
+ "@deepseek-ai/dsh-api-gateway": "0.1.5-rc.1",
133
+ "@deepseek-ai/dsh-api-session-controller": "0.1.5-rc.1",
134
+ "@deepseek-ai/dsh-api-settings-controller": "0.1.5-rc.1",
135
+ "@deepseek-ai/dsh-attachment": "0.1.5-rc.1",
136
+ "@deepseek-ai/dsh-client-connection": "0.1.5-rc.1",
137
+ "@deepseek-ai/dsh-client-store": "0.1.5-rc.1",
138
+ "@deepseek-ai/dsh-client-ui-approval": "0.1.5-rc.1",
139
+ "@deepseek-ai/dsh-client-ui-chat": "0.1.5-rc.1",
140
+ "@deepseek-ai/dsh-client-ui-conversation": "0.1.5-rc.1",
141
+ "@deepseek-ai/dsh-client-ui-layout": "0.1.5-rc.1",
142
+ "@deepseek-ai/dsh-client-ui-primitives": "0.1.5-rc.1",
143
+ "@deepseek-ai/dsh-client-ui-renderer": "0.1.5-rc.1",
144
+ "@deepseek-ai/dsh-client-ui-session": "0.1.5-rc.1",
145
+ "@deepseek-ai/dsh-client-ui-settings": "0.1.5-rc.1",
146
+ "@deepseek-ai/dsh-client-ui-sidebar-documentpreview": "0.1.5-rc.2",
147
+ "@deepseek-ai/dsh-client-ui-slots": "0.1.5-rc.1",
148
+ "@deepseek-ai/dsh-client-ui-user-questions": "0.1.5-rc.1",
149
+ "@deepseek-ai/dsh-commands": "0.1.5-rc.1",
150
+ "@deepseek-ai/dsh-fs": "0.1.5-rc.1",
151
+ "@deepseek-ai/dsh-home-paths": "0.1.5-rc.1",
152
+ "@deepseek-ai/dsh-llm": "0.1.5-rc.1",
153
+ "@deepseek-ai/dsh-output-retention": "0.1.5-rc.1",
154
+ "@deepseek-ai/dsh-sandbox-policy": "0.1.5-rc.1",
155
+ "@deepseek-ai/dsh-session": "0.1.5-rc.1",
156
+ "@deepseek-ai/dsh-session-persistence-jsonl": "0.1.5-rc.1",
157
+ "@deepseek-ai/dsh-session-projection": "0.1.5-rc.1",
158
+ "@deepseek-ai/dsh-session-query": "0.1.5-rc.1",
159
+ "@deepseek-ai/dsh-session-title": "0.1.5-rc.1",
160
+ "@deepseek-ai/dsh-session-title-llm": "0.1.5-rc.1",
161
+ "@deepseek-ai/dsh-settings": "0.1.5-rc.1",
162
+ "@deepseek-ai/dsh-spill": "0.1.5-rc.1",
163
+ "@deepseek-ai/dsh-subprocess": "0.1.5-rc.1",
164
+ "@deepseek-ai/dsh-system-prompt": "0.1.5-rc.1",
165
+ "@deepseek-ai/dsh-tool-ask-user": "0.1.5-rc.1",
166
+ "@deepseek-ai/dsh-tool-fs": "0.1.5-rc.1",
167
+ "@deepseek-ai/dsh-tool-fs-search": "0.1.5-rc.1",
168
+ "@deepseek-ai/dsh-tools": "0.1.5-rc.1",
169
+ "@deepseek-ai/dsh-typert-protocol": "0.1.5-rc.1",
170
+ "@deepseek-ai/dsh-user-questions": "0.1.5-rc.1",
171
+ "@deepseek-ai/dsh-util-workspace-path": "0.1.5-rc.2",
162
172
  "@deepseek-ai/schemastery": "^3.18.1",
163
173
  "@types/mdast": "^4.0.4",
164
174
  "@types/node": "^24.10.0",
165
175
  "@types/react": "~18.3.1",
176
+ "@types/react-dom": "~18.3.1",
166
177
  "lightningcss": "^1.32.0",
167
178
  "mdast-util-from-markdown": "^2.0.3",
168
179
  "mdast-util-gfm": "^3.1.0",
169
180
  "micromark-extension-gfm": "^3.0.0",
170
181
  "micromark-util-decode-string": "^2.0.1",
171
- "playwright": "^1.58.2",
172
182
  "react": "^18.2.0",
183
+ "react-dom": "^18.2.0",
173
184
  "tsdown": "^0.22.2",
174
185
  "typescript": "^6.0.3",
175
186
  "zod": "^4.4.3"
176
187
  },
177
188
  "dependencies": {
189
+ "@deepseek-ai/dsh-util-values": "0.1.5-rc.1",
190
+ "html-to-image": "1.11.13",
178
191
  "katex": "^0.18.4"
179
192
  }
180
193
  }
@@ -1,13 +0,0 @@
1
- import type { CompanionFace } from '../companion-controller.ts';
2
- import type { CiteBus } from '../types.ts';
3
- export interface SelectionMenuProps {
4
- readonly bus: CiteBus;
5
- readonly companion: CompanionFace;
6
- readonly openPanel: () => void;
7
- }
8
- /**
9
- * Ask the first question beside the selected source text.
10
- * @param props - shared selection state and Topic actions.
11
- * @returns the contextual creation popover and companion launcher.
12
- */
13
- export declare function SelectionMenu({ bus, companion, openPanel }: SelectionMenuProps): import("react").JSX.Element;