dsh-code 1.0.2 → 1.0.4
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.en.md +21 -13
- package/README.md +285 -271
- package/bin/deepseek.mjs +26 -3
- package/lib/index.mjs +2962 -1560
- package/lib/types/app.d.ts +13 -2
- package/lib/types/commands.d.ts +13 -0
- package/lib/types/editor-keys.d.ts +105 -0
- package/lib/types/git-workflow.d.ts +6 -2
- package/lib/types/index.d.ts +28 -0
- package/lib/types/input-split.d.ts +54 -0
- package/lib/types/kernel-panels.d.ts +3 -1
- package/lib/types/keyboard.d.ts +8 -0
- package/lib/types/model-capabilities.d.ts +82 -0
- package/lib/types/provider-settings.d.ts +84 -0
- package/lib/types/render/lines.d.ts +25 -0
- package/lib/types/render/markdown.d.ts +1 -1
- package/lib/types/render/projection.d.ts +22 -2
- package/lib/types/render/status.d.ts +22 -15
- package/lib/types/render/text.d.ts +15 -9
- package/lib/types/render/width.d.ts +29 -0
- package/lib/types/session-directory.d.ts +27 -0
- package/lib/types/settings-file.d.ts +33 -0
- package/lib/types/skills.d.ts +1 -1
- package/lib/types/store.d.ts +10 -0
- package/lib/types/subagents.d.ts +13 -3
- package/package.json +159 -159
- package/src/app.ts +4514 -3892
- package/src/approval.ts +8 -3
- package/src/authorization-panel.ts +2 -4
- package/src/commands.ts +27 -3
- package/src/editor-keys.ts +371 -0
- package/src/git-workflow.ts +10 -6
- package/src/index.ts +1752 -1523
- package/src/input-split.ts +191 -0
- package/src/internals.ts +26 -8
- package/src/kernel-panels.ts +26 -10
- package/src/keyboard.ts +123 -88
- package/src/mentions.ts +42 -9
- package/src/model-capabilities.ts +318 -0
- package/src/provider-settings.ts +220 -0
- package/src/questions.ts +20 -0
- package/src/render/lines.ts +415 -356
- package/src/render/markdown.ts +18 -19
- package/src/render/projection.ts +162 -52
- package/src/render/status.ts +76 -71
- package/src/render/text.ts +158 -150
- package/src/render/width.ts +189 -0
- package/src/session-directory.ts +56 -0
- package/src/settings-file.ts +56 -0
- package/src/skills.ts +19 -6
- package/src/store.ts +26 -7
- package/src/subagents.ts +39 -6
- package/src/theme-panel.ts +79 -72
package/src/questions.ts
CHANGED
|
@@ -80,6 +80,26 @@ export function mountQuestionProvider(ctx: Context): QuestionStore {
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
if (service !== undefined) {
|
|
83
|
+
// Capability guard against contract drift: the pinned release exposes
|
|
84
|
+
// registerProvider, but an upstream alignment may replace it with the
|
|
85
|
+
// 'user-questions/request' waterfall. Degrade to the permanently-empty
|
|
86
|
+
// store (the no-service path) instead of failing startup with a
|
|
87
|
+
// TypeError on a missing method.
|
|
88
|
+
if (typeof (service as unknown as { registerProvider?: unknown }).registerProvider !== 'function') {
|
|
89
|
+
return {
|
|
90
|
+
subscribe(listener: () => void): () => void {
|
|
91
|
+
listeners.add(listener)
|
|
92
|
+
return () => {
|
|
93
|
+
listeners.delete(listener)
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
getSnapshot(): QuestionSnapshot {
|
|
97
|
+
return snapshot
|
|
98
|
+
},
|
|
99
|
+
submit(): void {},
|
|
100
|
+
cancel(): void {},
|
|
101
|
+
}
|
|
102
|
+
}
|
|
83
103
|
service.registerProvider({
|
|
84
104
|
ask(request: AskUserQuestionRequest): Promise<AskUserQuestionAnswer> {
|
|
85
105
|
return new Promise((resolve, reject) => {
|