@deepseek-harness-tui/dsh-tui 0.19.0 → 0.20.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 +67 -57
- package/bin/dsh-tui.js +26 -8
- package/cordis.patch.yml +5 -3
- package/cordis.yml +3 -2
- package/guide/dsh-tui-guide/claude-backend.en.md +6 -5
- package/guide/dsh-tui-guide/claude-backend.md +5 -5
- package/guide/dsh-tui-guide/configuration.en.md +1 -1
- package/guide/dsh-tui-guide/configuration.md +1 -1
- package/guide/dsh-tui-guide/getting-started.en.md +2 -2
- package/guide/dsh-tui-guide/getting-started.md +2 -2
- package/guide/dsh-tui-guide/migrate.en.md +5 -0
- package/guide/dsh-tui-guide/migrate.md +4 -0
- package/guide/dsh-tui-guide/plugins.en.md +17 -1
- package/guide/dsh-tui-guide/plugins.md +12 -1
- package/guide/dsh-tui-guide/user-guide.en.md +7 -2
- package/guide/dsh-tui-guide/user-guide.md +7 -2
- package/lib/settings.json +24 -8
- package/lib/types/adapter/kernel/host-facade.d.ts +3 -1
- package/lib/types/adapter/kernel/host-facade.d.ts.map +1 -1
- package/lib/types/adapter/kernel/host-facade.js +6 -0
- package/lib/types/adapter/kernel/runtime.d.ts.map +1 -1
- package/lib/types/adapter/kernel/runtime.js +5 -0
- package/lib/types/adapter/kernel/slices/extensions.d.ts +1 -0
- package/lib/types/adapter/kernel/slices/extensions.d.ts.map +1 -1
- package/lib/types/adapter/kernel/slices/extensions.js +6 -1
- package/lib/types/adapter/kernel/slices/index.d.ts +1 -1
- package/lib/types/adapter/kernel/slices/index.d.ts.map +1 -1
- package/lib/types/adapter/kernel/slices/index.js +3 -2
- package/lib/types/adapter/ports/channel-catalog.d.ts +19 -0
- package/lib/types/adapter/ports/channel-catalog.d.ts.map +1 -1
- package/lib/types/adapter/ports/channel-view.d.ts +39 -3
- package/lib/types/adapter/ports/channel-view.d.ts.map +1 -1
- package/lib/types/adapter/ports/extensions.d.ts +9 -0
- package/lib/types/adapter/ports/extensions.d.ts.map +1 -1
- package/lib/types/adapter/ports/index.d.ts +1 -1
- package/lib/types/adapter/ports/index.d.ts.map +1 -1
- package/lib/types/adapter/upstream/extensions-driver.d.ts +4 -1
- package/lib/types/adapter/upstream/extensions-driver.d.ts.map +1 -1
- package/lib/types/adapter/upstream/extensions-driver.js +111 -1
- package/lib/types/adapter/upstream/index.d.ts +1 -1
- package/lib/types/adapter/upstream/index.d.ts.map +1 -1
- package/lib/types/adapter/upstream/index.js +1 -1
- package/lib/types/agent/events.d.ts +3 -1
- package/lib/types/agent/events.d.ts.map +1 -1
- package/lib/types/api.d.ts +1 -1
- package/lib/types/api.d.ts.map +1 -1
- package/lib/types/backends/claude/backend.d.ts.map +1 -1
- package/lib/types/backends/claude/backend.js +7 -2
- package/lib/types/backends/claude/tools.d.ts.map +1 -1
- package/lib/types/backends/claude/tools.js +8 -3
- package/lib/types/backends/codex/translate/presentation.d.ts.map +1 -1
- package/lib/types/backends/codex/translate/presentation.js +5 -2
- package/lib/types/channel/interaction.d.ts.map +1 -1
- package/lib/types/channel/interaction.js +1 -0
- package/lib/types/channel/permissions.d.ts +15 -0
- package/lib/types/channel/permissions.d.ts.map +1 -1
- package/lib/types/channel/permissions.js +28 -0
- package/lib/types/channel/projection.d.ts.map +1 -1
- package/lib/types/channel/projection.js +11 -1
- package/lib/types/channel/questions.d.ts +26 -0
- package/lib/types/channel/questions.d.ts.map +1 -1
- package/lib/types/channel/questions.js +43 -0
- package/lib/types/commands.js +1 -1
- package/lib/types/components/FileSuggestions.d.ts +2 -2
- package/lib/types/components/FileSuggestions.d.ts.map +1 -1
- package/lib/types/components/FileSuggestions.js +25 -5
- package/lib/types/components/MessageList.d.ts.map +1 -1
- package/lib/types/components/MessageList.js +3 -3
- package/lib/types/components/PromptInput.d.ts +7 -1
- package/lib/types/components/PromptInput.d.ts.map +1 -1
- package/lib/types/components/PromptInput.js +81 -23
- package/lib/types/components/SplitDiffView.d.ts.map +1 -1
- package/lib/types/components/SplitDiffView.js +3 -2
- package/lib/types/components/StarPrompt.d.ts +5 -3
- package/lib/types/components/StarPrompt.d.ts.map +1 -1
- package/lib/types/components/StarPrompt.js +56 -6
- package/lib/types/components/SubagentCard.d.ts.map +1 -1
- package/lib/types/components/SubagentCard.js +1 -1
- package/lib/types/components/SubagentDashboard.d.ts.map +1 -1
- package/lib/types/components/SubagentDashboard.js +3 -2
- package/lib/types/components/SubagentDetailScene.d.ts.map +1 -1
- package/lib/types/components/SubagentDetailScene.js +1 -1
- package/lib/types/components/messages/AssistantToolUseMessage.d.ts.map +1 -1
- package/lib/types/components/messages/AssistantToolUseMessage.js +121 -23
- package/lib/types/components/teamRoster.d.ts +6 -3
- package/lib/types/components/teamRoster.d.ts.map +1 -1
- package/lib/types/dsh-adapter/approvals.d.ts +19 -0
- package/lib/types/dsh-adapter/approvals.d.ts.map +1 -1
- package/lib/types/dsh-adapter/approvals.js +17 -1
- package/lib/types/dsh-adapter/backend/translate.d.ts.map +1 -1
- package/lib/types/dsh-adapter/backend/translate.js +15 -3
- package/lib/types/dsh-adapter/channel/extensions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/extensions.js +7 -4
- package/lib/types/dsh-adapter/channel/local-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/local-actions.js +7 -3
- package/lib/types/dsh-adapter/channel/projection-helpers.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/projection-helpers.js +4 -2
- package/lib/types/dsh-adapter/channel/settings-host.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/settings-host.js +179 -33
- package/lib/types/dsh-adapter/channel/subagent-projection.d.ts +55 -4
- package/lib/types/dsh-adapter/channel/subagent-projection.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/subagent-projection.js +80 -16
- package/lib/types/dsh-adapter/channel/subagent-transcript.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/subagent-transcript.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/subagent-transcript.js +6 -5
- package/lib/types/dsh-adapter/channel/task-completion.js +2 -10
- package/lib/types/dsh-adapter/childStderr.d.ts +1 -1
- package/lib/types/dsh-adapter/childStderr.d.ts.map +1 -1
- package/lib/types/dsh-adapter/childStderr.js +5 -0
- package/lib/types/dsh-adapter/compat/compaction-previews.d.ts +11 -0
- package/lib/types/dsh-adapter/compat/compaction-previews.d.ts.map +1 -0
- package/lib/types/dsh-adapter/compat/compaction-previews.js +38 -0
- package/lib/types/dsh-adapter/compat/messages.d.ts +1 -1
- package/lib/types/dsh-adapter/compat/messages.d.ts.map +1 -1
- package/lib/types/dsh-adapter/compat/messages.js +2 -2
- package/lib/types/dsh-adapter/contract.d.ts +12 -5
- package/lib/types/dsh-adapter/contract.d.ts.map +1 -1
- package/lib/types/dsh-adapter/contract.js +15 -4
- package/lib/types/dsh-adapter/experimental-bundles.d.ts +5 -0
- package/lib/types/dsh-adapter/experimental-bundles.d.ts.map +1 -1
- package/lib/types/dsh-adapter/experimental-bundles.js +0 -2
- package/lib/types/dsh-adapter/extensions.d.ts +3 -2
- package/lib/types/dsh-adapter/extensions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/extensions.js +5 -2
- package/lib/types/dsh-adapter/host-contract.d.ts +1 -1
- package/lib/types/dsh-adapter/host-contract.js +2 -2
- package/lib/types/dsh-adapter/host-dsh.d.ts +6 -0
- package/lib/types/dsh-adapter/host-dsh.d.ts.map +1 -1
- package/lib/types/dsh-adapter/host-dsh.js +29 -0
- package/lib/types/dsh-adapter/index.d.ts +9 -1
- package/lib/types/dsh-adapter/index.d.ts.map +1 -1
- package/lib/types/dsh-adapter/index.js +5 -0
- package/lib/types/dsh-adapter/mention-providers.d.ts +91 -0
- package/lib/types/dsh-adapter/mention-providers.d.ts.map +1 -0
- package/lib/types/dsh-adapter/mention-providers.js +214 -0
- package/lib/types/dsh-adapter/migrate/entry.d.ts +2 -0
- package/lib/types/dsh-adapter/migrate/entry.d.ts.map +1 -0
- package/lib/types/dsh-adapter/migrate/entry.js +46 -0
- package/lib/types/dsh-adapter/oauth/account-notifications.d.ts +73 -0
- package/lib/types/dsh-adapter/oauth/account-notifications.d.ts.map +1 -0
- package/lib/types/dsh-adapter/oauth/account-notifications.js +250 -0
- package/lib/types/dsh-adapter/oauth/bonus.d.ts +34 -9
- package/lib/types/dsh-adapter/oauth/bonus.d.ts.map +1 -1
- package/lib/types/dsh-adapter/oauth/bonus.js +47 -5
- package/lib/types/dsh-adapter/oauth/deepseek.d.ts +7 -2
- package/lib/types/dsh-adapter/oauth/deepseek.d.ts.map +1 -1
- package/lib/types/dsh-adapter/oauth/deepseek.js +6 -1
- package/lib/types/dsh-adapter/oauth/index.d.ts.map +1 -1
- package/lib/types/dsh-adapter/oauth/index.js +44 -0
- package/lib/types/dsh-adapter/oauth/service.d.ts.map +1 -1
- package/lib/types/dsh-adapter/oauth/service.js +5 -6
- package/lib/types/dsh-adapter/plugin-manage.d.ts +6 -4
- package/lib/types/dsh-adapter/plugin-manage.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin-manage.js +3 -2
- package/lib/types/dsh-adapter/plugin.d.ts +237 -6
- package/lib/types/dsh-adapter/plugin.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin.js +611 -23
- package/lib/types/dsh-adapter/session-projection-store.d.ts +1 -1
- package/lib/types/dsh-adapter/session-projection-store.d.ts.map +1 -1
- package/lib/types/dsh-adapter/session-projection-store.js +30 -23
- package/lib/types/dsh-adapter/sessionTree.d.ts.map +1 -1
- package/lib/types/dsh-adapter/sessionTree.js +4 -1
- package/lib/types/dsh-adapter/subagents.d.ts +1 -0
- package/lib/types/dsh-adapter/subagents.d.ts.map +1 -1
- package/lib/types/dsh-adapter/subagents.js +10 -2
- package/lib/types/dsh-adapter/team-mode.d.ts +29 -17
- package/lib/types/dsh-adapter/team-mode.d.ts.map +1 -1
- package/lib/types/dsh-adapter/team-mode.js +138 -17
- package/lib/types/dsh-adapter/team-roster.d.ts +53 -18
- package/lib/types/dsh-adapter/team-roster.d.ts.map +1 -1
- package/lib/types/dsh-adapter/team-roster.js +206 -39
- package/lib/types/dsh-adapter/team-tools.d.ts +25 -12
- package/lib/types/dsh-adapter/team-tools.d.ts.map +1 -1
- package/lib/types/dsh-adapter/team-tools.js +81 -26
- package/lib/types/extensions.d.ts +2 -0
- package/lib/types/extensions.d.ts.map +1 -1
- package/lib/types/extensions.js +4 -1
- package/lib/types/i18n.d.ts +71 -11
- package/lib/types/i18n.d.ts.map +1 -1
- package/lib/types/i18n.js +32 -9
- package/lib/types/ink/dom.d.ts.map +1 -1
- package/lib/types/ink/dom.js +13 -3
- package/lib/types/ink/flush-tick.d.ts +6 -0
- package/lib/types/ink/flush-tick.d.ts.map +1 -1
- package/lib/types/ink/flush-tick.js +31 -0
- package/lib/types/ink/hooks/use-terminal-title.d.ts +15 -0
- package/lib/types/ink/hooks/use-terminal-title.d.ts.map +1 -1
- package/lib/types/ink/hooks/use-terminal-title.js +23 -3
- package/lib/types/ink/ink.js +2 -2
- package/lib/types/ink/jumpback-state.d.ts +33 -0
- package/lib/types/ink/jumpback-state.d.ts.map +1 -0
- package/lib/types/ink/jumpback-state.js +51 -0
- package/lib/types/ink/jumpback.d.ts +78 -0
- package/lib/types/ink/jumpback.d.ts.map +1 -0
- package/lib/types/ink/jumpback.js +515 -0
- package/lib/types/ink/log-update.js +37 -14
- package/lib/types/ink/notify-helper/activate.cs +836 -0
- package/lib/types/ink/notify-helper/compile.d.ts +30 -0
- package/lib/types/ink/notify-helper/compile.d.ts.map +1 -0
- package/lib/types/ink/notify-helper/compile.js +235 -0
- package/lib/types/ink/terminal-notification-windows.d.ts +8 -4
- package/lib/types/ink/terminal-notification-windows.d.ts.map +1 -1
- package/lib/types/ink/terminal-notification-windows.js +14 -21
- package/lib/types/ink/terminal-notification.d.ts +31 -2
- package/lib/types/ink/terminal-notification.d.ts.map +1 -1
- package/lib/types/ink/terminal-notification.js +51 -0
- package/lib/types/ink/terminal.d.ts +2 -1
- package/lib/types/ink/terminal.d.ts.map +1 -1
- package/lib/types/ink/terminal.js +9 -4
- package/lib/types/screens/AgentTranscriptScene.d.ts.map +1 -1
- package/lib/types/screens/AgentTranscriptScene.js +1 -1
- package/lib/types/screens/Chat.d.ts +8 -4
- package/lib/types/screens/Chat.d.ts.map +1 -1
- package/lib/types/screens/Chat.js +40 -11
- package/lib/types/settings/definitions.d.ts +12 -0
- package/lib/types/settings/definitions.d.ts.map +1 -1
- package/lib/types/settings/definitions.js +15 -7
- package/lib/types/utils/fileSuggestions.d.ts +14 -3
- package/lib/types/utils/fileSuggestions.d.ts.map +1 -1
- package/lib/types/utils/fileSuggestions.js +33 -0
- package/package.json +117 -112
- package/presets/liangshen/agent.cordis.yml +4 -0
- package/tui-profile/feed/README.md +1 -1
- package/tui-profile/feed/first-party.json +1 -1
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Plugin `@`-mention providers (`ctx.tuiMentions`): optional plugins add rows
|
|
3
|
+
* to the composer's `@` completion popup next to the workspace files — a
|
|
4
|
+
* Blender bridge offering scene objects, an issue tracker offering tickets.
|
|
5
|
+
*
|
|
6
|
+
* The seam is completion-only. A chosen row replaces the typed `@query` with
|
|
7
|
+
* the provider's plain `insertText`; nothing is resolved or attached at submit
|
|
8
|
+
* time, so the file-mention expander never sees provider rows (an item whose
|
|
9
|
+
* `insertText` would itself parse as an `@` mention is dropped at ingress).
|
|
10
|
+
*
|
|
11
|
+
* Same split as the command-tree seam: a host-only facade the composer
|
|
12
|
+
* queries, plus a thin cordis service that validates untrusted registrations
|
|
13
|
+
* and binds each provider to its caller's activation, so a disposed or
|
|
14
|
+
* hot-reloaded plugin leaves no rows behind.
|
|
15
|
+
*
|
|
16
|
+
* Provider calls are untrusted and optional UI: every call gets its own
|
|
17
|
+
* AbortSignal (aborted when the query moves on or the call times out), late
|
|
18
|
+
* results are dropped, a throwing or rejecting provider contributes nothing,
|
|
19
|
+
* and the failure goes to the opt-in `DSH_TUI_DEBUG` log, never the screen.
|
|
20
|
+
*/
|
|
21
|
+
import { Context, Service } from '@deepseek-ai/cordis';
|
|
22
|
+
import type { ProvidedMentionCandidate } from '../adapter/ports/channel-catalog.js';
|
|
23
|
+
/** One completion row a provider offers for the current query. */
|
|
24
|
+
export interface TuiMentionItem {
|
|
25
|
+
/** Row text; single line, at most 80 cells after sanitization. */
|
|
26
|
+
readonly label: string;
|
|
27
|
+
/** Dim trailing hint (kind, location); at most 40 cells. */
|
|
28
|
+
readonly detail?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Plain single-line text that replaces the typed `@query` (the host adds
|
|
31
|
+
* the trailing space). At most 200 characters, and it must not contain an
|
|
32
|
+
* `@` mention token of its own — such an item is dropped.
|
|
33
|
+
*/
|
|
34
|
+
readonly insertText: string;
|
|
35
|
+
}
|
|
36
|
+
/** A plugin's `@` completion source. */
|
|
37
|
+
export interface TuiMentionProvider {
|
|
38
|
+
/** Unique provider id, `^[a-z][a-z0-9_-]*$`. */
|
|
39
|
+
readonly id: string;
|
|
40
|
+
/** Shown beside every row this provider contributes; at most 40 cells. */
|
|
41
|
+
readonly title: string;
|
|
42
|
+
/**
|
|
43
|
+
* Rows for `query` (the text after `@`, possibly empty). `signal` aborts
|
|
44
|
+
* when the user keeps typing or the call outlives its time budget; results
|
|
45
|
+
* that arrive after that are ignored.
|
|
46
|
+
*/
|
|
47
|
+
complete(query: string, signal: AbortSignal): readonly TuiMentionItem[] | Promise<readonly TuiMentionItem[]>;
|
|
48
|
+
}
|
|
49
|
+
/** Admission and per-call bounds, exported so docs and the battery agree. */
|
|
50
|
+
export declare const MENTION_PROVIDER_LIMITS: Readonly<{
|
|
51
|
+
/** Providers one plugin activation may hold at once. */
|
|
52
|
+
perActivation: 4;
|
|
53
|
+
/** Providers the whole host holds at once. */
|
|
54
|
+
total: 16;
|
|
55
|
+
/** Rows taken from one provider per query. */
|
|
56
|
+
itemsPerProvider: 50;
|
|
57
|
+
/** Per-call budget; a slower provider contributes nothing for that query. */
|
|
58
|
+
timeoutMs: 300;
|
|
59
|
+
titleCells: 40;
|
|
60
|
+
labelCells: 80;
|
|
61
|
+
detailCells: 40;
|
|
62
|
+
insertTextChars: 200;
|
|
63
|
+
}>;
|
|
64
|
+
/** Host-only access. Plugins see only `register` on the traceable service;
|
|
65
|
+
* the composer queries every provider through this facade. */
|
|
66
|
+
export interface TuiMentionHost {
|
|
67
|
+
register(provider: TuiMentionProvider): () => void;
|
|
68
|
+
/** Registered provider count; the composer skips the query at zero. */
|
|
69
|
+
size(): number;
|
|
70
|
+
/** Every provider's rows for `query`, in registration order. */
|
|
71
|
+
complete(query: string, signal: AbortSignal): Promise<readonly ProvidedMentionCandidate[]>;
|
|
72
|
+
}
|
|
73
|
+
declare module '@deepseek-ai/cordis' {
|
|
74
|
+
interface Context {
|
|
75
|
+
tuiMentions: TuiMentionRuntime;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
export declare const name = "dsh-tui-mentions";
|
|
79
|
+
/**
|
|
80
|
+
* `ctx.tuiMentions` — plugin `@` completion providers. `register` throws on a
|
|
81
|
+
* malformed provider, a duplicate id or an exhausted budget (registration is
|
|
82
|
+
* a programming error, unlike a per-query failure, which only logs).
|
|
83
|
+
*/
|
|
84
|
+
export declare class TuiMentionRuntime extends Service {
|
|
85
|
+
constructor(ctx: Context);
|
|
86
|
+
register(provider: TuiMentionProvider): () => void;
|
|
87
|
+
}
|
|
88
|
+
/** Host-only facade accessor; not part of the package export map. */
|
|
89
|
+
export declare function getHostMentions(runtime: TuiMentionRuntime | undefined): TuiMentionHost | undefined;
|
|
90
|
+
export default TuiMentionRuntime;
|
|
91
|
+
//# sourceMappingURL=mention-providers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mention-providers.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/mention-providers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,E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,GAAG,EAAE,OAAO;IAkBxB,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,GAAG,MAAM,IAAI;CAYnD;AAqHD,qEAAqE;AACrE,wBAAgB,eAAe,CAAC,OAAO,EAAE,iBAAiB,GAAG,SAAS,GAAG,cAAc,GAAG,SAAS,CAOlG;AAED,eAAe,iBAAiB,CAAA"}
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Plugin `@`-mention providers (`ctx.tuiMentions`): optional plugins add rows
|
|
3
|
+
* to the composer's `@` completion popup next to the workspace files — a
|
|
4
|
+
* Blender bridge offering scene objects, an issue tracker offering tickets.
|
|
5
|
+
*
|
|
6
|
+
* The seam is completion-only. A chosen row replaces the typed `@query` with
|
|
7
|
+
* the provider's plain `insertText`; nothing is resolved or attached at submit
|
|
8
|
+
* time, so the file-mention expander never sees provider rows (an item whose
|
|
9
|
+
* `insertText` would itself parse as an `@` mention is dropped at ingress).
|
|
10
|
+
*
|
|
11
|
+
* Same split as the command-tree seam: a host-only facade the composer
|
|
12
|
+
* queries, plus a thin cordis service that validates untrusted registrations
|
|
13
|
+
* and binds each provider to its caller's activation, so a disposed or
|
|
14
|
+
* hot-reloaded plugin leaves no rows behind.
|
|
15
|
+
*
|
|
16
|
+
* Provider calls are untrusted and optional UI: every call gets its own
|
|
17
|
+
* AbortSignal (aborted when the query moves on or the call times out), late
|
|
18
|
+
* results are dropped, a throwing or rejecting provider contributes nothing,
|
|
19
|
+
* and the failure goes to the opt-in `DSH_TUI_DEBUG` log, never the screen.
|
|
20
|
+
*/
|
|
21
|
+
import { Service } from '@deepseek-ai/cordis';
|
|
22
|
+
import { extractMentions } from '../utils/mentions.js';
|
|
23
|
+
import { logForDebugging } from '../utils/debug.js';
|
|
24
|
+
import { cleanStatusFieldText } from './sanitize.js';
|
|
25
|
+
import { activationFiber, bindCallerEffect, compositionRoot, concreteService, requirePluginCaller } from './host-access.js';
|
|
26
|
+
import { adapterRuntimeFor } from '../adapter/kernel/runtime-context.js';
|
|
27
|
+
import { assertCapabilityShadowPolicy, } from '../adapter/kernel/runtime.js';
|
|
28
|
+
/** Admission and per-call bounds, exported so docs and the battery agree. */
|
|
29
|
+
export const MENTION_PROVIDER_LIMITS = Object.freeze({
|
|
30
|
+
/** Providers one plugin activation may hold at once. */
|
|
31
|
+
perActivation: 4,
|
|
32
|
+
/** Providers the whole host holds at once. */
|
|
33
|
+
total: 16,
|
|
34
|
+
/** Rows taken from one provider per query. */
|
|
35
|
+
itemsPerProvider: 50,
|
|
36
|
+
/** Per-call budget; a slower provider contributes nothing for that query. */
|
|
37
|
+
timeoutMs: 300,
|
|
38
|
+
titleCells: 40,
|
|
39
|
+
labelCells: 80,
|
|
40
|
+
detailCells: 40,
|
|
41
|
+
insertTextChars: 200,
|
|
42
|
+
});
|
|
43
|
+
const PROVIDER_ID = /^[a-z][a-z0-9_-]*$/u;
|
|
44
|
+
export const name = 'dsh-tui-mentions';
|
|
45
|
+
const mentionStates = new WeakMap();
|
|
46
|
+
/**
|
|
47
|
+
* `ctx.tuiMentions` — plugin `@` completion providers. `register` throws on a
|
|
48
|
+
* malformed provider, a duplicate id or an exhausted budget (registration is
|
|
49
|
+
* a programming error, unlike a per-query failure, which only logs).
|
|
50
|
+
*/
|
|
51
|
+
export class TuiMentionRuntime extends Service {
|
|
52
|
+
constructor(ctx) {
|
|
53
|
+
super(ctx, 'tuiMentions');
|
|
54
|
+
compositionRoot(ctx);
|
|
55
|
+
const runtime = this;
|
|
56
|
+
const state = { runtime: adapterRuntimeFor(ctx), providers: new Map(), host: undefined };
|
|
57
|
+
state.host = Object.freeze({
|
|
58
|
+
register: (provider) => {
|
|
59
|
+
const state = mentionStateFor(runtime);
|
|
60
|
+
const entry = admit(state, provider, undefined);
|
|
61
|
+
state.providers.set(entry.id, entry);
|
|
62
|
+
return () => release(state, entry);
|
|
63
|
+
},
|
|
64
|
+
size: () => mentionStateFor(runtime).providers.size,
|
|
65
|
+
complete: (query, signal) => completeAll(mentionStateFor(runtime), query, signal),
|
|
66
|
+
});
|
|
67
|
+
mentionStates.set(this, state);
|
|
68
|
+
}
|
|
69
|
+
register(provider) {
|
|
70
|
+
const state = mentionStateFor(this);
|
|
71
|
+
assertCapabilityShadowPolicy('host.mentions.register', state.runtime.mode, state.runtime.slices);
|
|
72
|
+
const caller = requirePluginCaller(this.ctx, 'tuiMentions.register', this);
|
|
73
|
+
const owner = activationFiber(caller);
|
|
74
|
+
if (owner === undefined)
|
|
75
|
+
throw new Error('dsh-tui: tuiMentions.register requires a live activation');
|
|
76
|
+
const entry = admit(state, provider, owner);
|
|
77
|
+
state.providers.set(entry.id, entry);
|
|
78
|
+
const dispose = () => release(state, entry);
|
|
79
|
+
bindCallerEffect(caller, dispose);
|
|
80
|
+
return dispose;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
/** Validate one registration against shape and budgets; throws on refusal. */
|
|
84
|
+
function admit(state, provider, owner) {
|
|
85
|
+
if (provider === null || typeof provider !== 'object')
|
|
86
|
+
throw new TypeError('tuiMentions.register expects a provider object');
|
|
87
|
+
const id = typeof provider.id === 'string' ? provider.id : '';
|
|
88
|
+
if (!PROVIDER_ID.test(id))
|
|
89
|
+
throw new TypeError(`invalid TUI mention provider id: ${String(provider.id)}`);
|
|
90
|
+
if (typeof provider.complete !== 'function')
|
|
91
|
+
throw new TypeError(`TUI mention provider "${id}" needs a complete() function`);
|
|
92
|
+
const title = cleanStatusFieldText(provider.title, MENTION_PROVIDER_LIMITS.titleCells);
|
|
93
|
+
if (title === '')
|
|
94
|
+
throw new TypeError(`TUI mention provider "${id}" needs a non-empty title`);
|
|
95
|
+
if (state.providers.has(id))
|
|
96
|
+
throw new Error(`TUI mention provider "${id}" is already registered`);
|
|
97
|
+
if (state.providers.size >= MENTION_PROVIDER_LIMITS.total) {
|
|
98
|
+
throw new Error(`TUI mention providers are capped at ${MENTION_PROVIDER_LIMITS.total}; "${id}" was refused`);
|
|
99
|
+
}
|
|
100
|
+
if (owner !== undefined) {
|
|
101
|
+
let held = 0;
|
|
102
|
+
for (const entry of state.providers.values())
|
|
103
|
+
if (entry.owner === owner)
|
|
104
|
+
held += 1;
|
|
105
|
+
if (held >= MENTION_PROVIDER_LIMITS.perActivation) {
|
|
106
|
+
throw new Error(`TUI mention providers are capped at ${MENTION_PROVIDER_LIMITS.perActivation} per plugin; "${id}" was refused`);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
return { id, title, provider, owner };
|
|
110
|
+
}
|
|
111
|
+
function release(state, entry) {
|
|
112
|
+
if (state.providers.get(entry.id) === entry)
|
|
113
|
+
state.providers.delete(entry.id);
|
|
114
|
+
}
|
|
115
|
+
async function completeAll(state, query, signal) {
|
|
116
|
+
if (state.providers.size === 0 || signal.aborted)
|
|
117
|
+
return [];
|
|
118
|
+
const settled = await Promise.all([...state.providers.values()].map(entry => completeOne(entry, query, signal)));
|
|
119
|
+
return signal.aborted ? [] : settled.flat();
|
|
120
|
+
}
|
|
121
|
+
/** One provider call under its own signal and time budget. Never rejects. */
|
|
122
|
+
async function completeOne(entry, query, outer) {
|
|
123
|
+
const controller = new AbortController();
|
|
124
|
+
const abort = () => controller.abort();
|
|
125
|
+
outer.addEventListener('abort', abort, { once: true });
|
|
126
|
+
let timer;
|
|
127
|
+
try {
|
|
128
|
+
const timeout = new Promise(resolve => {
|
|
129
|
+
timer = setTimeout(() => {
|
|
130
|
+
controller.abort();
|
|
131
|
+
resolve(undefined);
|
|
132
|
+
}, MENTION_PROVIDER_LIMITS.timeoutMs);
|
|
133
|
+
});
|
|
134
|
+
// `then` turns a synchronous throw into a rejection the catch below sees.
|
|
135
|
+
const call = Promise.resolve().then(() => entry.provider.complete(query, controller.signal));
|
|
136
|
+
const result = await Promise.race([call, timeout]);
|
|
137
|
+
if (controller.signal.aborted) {
|
|
138
|
+
if (!outer.aborted)
|
|
139
|
+
logForDebugging('tuiMentions provider timed out', { id: entry.id, timeoutMs: MENTION_PROVIDER_LIMITS.timeoutMs });
|
|
140
|
+
return [];
|
|
141
|
+
}
|
|
142
|
+
return normalizeItems(entry, result);
|
|
143
|
+
}
|
|
144
|
+
catch (error) {
|
|
145
|
+
if (!controller.signal.aborted) {
|
|
146
|
+
logForDebugging('tuiMentions provider failed', { id: entry.id, error: error instanceof Error ? error.message : String(error) });
|
|
147
|
+
}
|
|
148
|
+
return [];
|
|
149
|
+
}
|
|
150
|
+
finally {
|
|
151
|
+
clearTimeout(timer);
|
|
152
|
+
outer.removeEventListener('abort', abort);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
/** Sanitize one provider's rows; malformed rows are skipped, not fatal. */
|
|
156
|
+
function normalizeItems(entry, result) {
|
|
157
|
+
if (!Array.isArray(result)) {
|
|
158
|
+
logForDebugging('tuiMentions provider returned a non-array', { id: entry.id });
|
|
159
|
+
return [];
|
|
160
|
+
}
|
|
161
|
+
const out = [];
|
|
162
|
+
const seen = new Set();
|
|
163
|
+
for (const raw of result.slice(0, MENTION_PROVIDER_LIMITS.itemsPerProvider)) {
|
|
164
|
+
try {
|
|
165
|
+
if (raw === null || typeof raw !== 'object')
|
|
166
|
+
continue;
|
|
167
|
+
const item = raw;
|
|
168
|
+
const label = cleanStatusFieldText(item.label, MENTION_PROVIDER_LIMITS.labelCells);
|
|
169
|
+
const insertText = cleanStatusFieldText(item.insertText, Number.POSITIVE_INFINITY);
|
|
170
|
+
if (label === '' || insertText === '')
|
|
171
|
+
continue;
|
|
172
|
+
if (insertText.length > MENTION_PROVIDER_LIMITS.insertTextChars)
|
|
173
|
+
continue;
|
|
174
|
+
if (extractMentions(insertText).length > 0)
|
|
175
|
+
continue;
|
|
176
|
+
const detail = item.detail === undefined ? '' : cleanStatusFieldText(item.detail, MENTION_PROVIDER_LIMITS.detailCells);
|
|
177
|
+
const id = `${entry.id}\u0000${label}\u0000${insertText}`;
|
|
178
|
+
if (seen.has(id))
|
|
179
|
+
continue;
|
|
180
|
+
seen.add(id);
|
|
181
|
+
out.push({
|
|
182
|
+
id,
|
|
183
|
+
kind: 'provided',
|
|
184
|
+
providerId: entry.id,
|
|
185
|
+
section: entry.title,
|
|
186
|
+
label,
|
|
187
|
+
...(detail === '' ? {} : { detail }),
|
|
188
|
+
insertText,
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
catch {
|
|
192
|
+
// A throwing getter on one row must not cost the provider its others.
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
return out;
|
|
196
|
+
}
|
|
197
|
+
function mentionStateFor(runtime) {
|
|
198
|
+
const state = mentionStates.get(concreteService(runtime));
|
|
199
|
+
if (state === undefined)
|
|
200
|
+
throw new Error('tuiMentions host state is unavailable');
|
|
201
|
+
return state;
|
|
202
|
+
}
|
|
203
|
+
/** Host-only facade accessor; not part of the package export map. */
|
|
204
|
+
export function getHostMentions(runtime) {
|
|
205
|
+
if (runtime === undefined)
|
|
206
|
+
return undefined;
|
|
207
|
+
try {
|
|
208
|
+
return mentionStateFor(runtime).host;
|
|
209
|
+
}
|
|
210
|
+
catch {
|
|
211
|
+
return undefined;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
export default TuiMentionRuntime;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entry.d.ts","sourceRoot":"","sources":["../../../../src/dsh-adapter/migrate/entry.ts"],"names":[],"mappings":"AAYA,wBAAsB,UAAU,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAgC7F"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Child processes do not inherit the TUI's package resolution hooks. Install
|
|
3
|
+
* the host resolver before the first import of migration's framework peers.
|
|
4
|
+
*/
|
|
5
|
+
import { loadHostDsh, prepareHostModuleResolution } from '../host-dsh.js';
|
|
6
|
+
const reasonOf = (value) => value instanceof Error ? value.message : String(value);
|
|
7
|
+
/** Keep a directly written diagnostic on one line. */
|
|
8
|
+
const flat = (value) => reasonOf(value).replace(/[\x00-\x1f\x7f-\x9f]/g, ' ').replace(/\s+/g, ' ').trim();
|
|
9
|
+
export async function cliMigrate(argv, profileDir) {
|
|
10
|
+
let root;
|
|
11
|
+
let hostError;
|
|
12
|
+
try {
|
|
13
|
+
root = await prepareHostModuleResolution(await loadHostDsh(), profileDir);
|
|
14
|
+
}
|
|
15
|
+
catch (error) {
|
|
16
|
+
// Development installs and older hosts may already resolve their peers
|
|
17
|
+
// directly. Try that path once: a failed ESM import cannot be retried
|
|
18
|
+
// reliably because Node caches rejected module jobs.
|
|
19
|
+
hostError = error;
|
|
20
|
+
}
|
|
21
|
+
let failed = false;
|
|
22
|
+
let exitCode;
|
|
23
|
+
try {
|
|
24
|
+
const { cliMigrate: run } = await import('./cli.js');
|
|
25
|
+
exitCode = await run(argv);
|
|
26
|
+
}
|
|
27
|
+
catch (error) {
|
|
28
|
+
failed = true;
|
|
29
|
+
if (hostError === undefined)
|
|
30
|
+
throw error;
|
|
31
|
+
throw new Error(`${reasonOf(error)}; host module resolution: ${reasonOf(hostError)}`, { cause: error });
|
|
32
|
+
}
|
|
33
|
+
finally {
|
|
34
|
+
try {
|
|
35
|
+
await root?.fiber.dispose();
|
|
36
|
+
}
|
|
37
|
+
catch (error) {
|
|
38
|
+
// The migration already ran: a cleanup failure must not turn a finished
|
|
39
|
+
// run into "could not run". Keep the original error on the failure path.
|
|
40
|
+
if (!failed) {
|
|
41
|
+
process.stderr.write(`dsh-tui: migrate finished; host module resolution cleanup failed: ${flat(error)}\n`);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return exitCode;
|
|
46
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type { AccountClientMetadata } from '@deepseek-ai/dsh-deepseek-account';
|
|
2
|
+
/** Structural public rc.2 protocol; older hosts do not export its types. */
|
|
3
|
+
export interface AccountNotificationNotice {
|
|
4
|
+
readonly kind: 'account-notification';
|
|
5
|
+
readonly orderId: string;
|
|
6
|
+
readonly title: string;
|
|
7
|
+
readonly body: string;
|
|
8
|
+
readonly displayUntil: string | null;
|
|
9
|
+
readonly amount?: string;
|
|
10
|
+
readonly currency?: 'CNY' | 'USD';
|
|
11
|
+
readonly expiresAt?: string;
|
|
12
|
+
readonly actions: readonly {
|
|
13
|
+
readonly label: string;
|
|
14
|
+
readonly style: 'primary' | 'secondary';
|
|
15
|
+
readonly target: {
|
|
16
|
+
readonly type: 'dismiss';
|
|
17
|
+
} | {
|
|
18
|
+
readonly type: 'app_route';
|
|
19
|
+
readonly name: 'account';
|
|
20
|
+
};
|
|
21
|
+
}[];
|
|
22
|
+
}
|
|
23
|
+
interface NotificationContent extends Omit<AccountNotificationNotice, 'kind' | 'orderId'> {
|
|
24
|
+
readonly id: string;
|
|
25
|
+
readonly data?: unknown;
|
|
26
|
+
}
|
|
27
|
+
export interface AccountNotifications {
|
|
28
|
+
getNotifications(client: AccountClientMetadata): Promise<{
|
|
29
|
+
readonly nextPollAfterSeconds: number;
|
|
30
|
+
readonly notifications: readonly NotificationContent[];
|
|
31
|
+
} | null>;
|
|
32
|
+
getNotificationContent(id: string, client: AccountClientMetadata): Promise<NotificationContent | null>;
|
|
33
|
+
reportNotificationEvent(id: string, event: 'displayed' | 'cta_clicked' | 'dismissed', client: AccountClientMetadata): Promise<boolean>;
|
|
34
|
+
}
|
|
35
|
+
export declare function accountNotificationsOf(account: unknown): AccountNotifications | undefined;
|
|
36
|
+
/** Account-owned cards: reads never acknowledge; only the presented card reports display. */
|
|
37
|
+
export declare class AccountNotificationStore {
|
|
38
|
+
private readonly changed;
|
|
39
|
+
private readonly diagnose;
|
|
40
|
+
private account;
|
|
41
|
+
private generation;
|
|
42
|
+
private pollEpoch;
|
|
43
|
+
private localeGeneration;
|
|
44
|
+
private timer;
|
|
45
|
+
private expiryTimer;
|
|
46
|
+
private intervalMs;
|
|
47
|
+
private cards;
|
|
48
|
+
private readonly displayed;
|
|
49
|
+
private readonly pendingDismissals;
|
|
50
|
+
private localeRefresh;
|
|
51
|
+
constructor(changed: () => void, diagnose?: (operation: 'read' | 'content' | 'report') => void);
|
|
52
|
+
getSnapshot(): AccountNotificationNotice | null;
|
|
53
|
+
begin(account: AccountNotifications): void;
|
|
54
|
+
/** Explicit refresh uses the same generation fence and server-paced poll. */
|
|
55
|
+
refresh(account: AccountNotifications): Promise<void>;
|
|
56
|
+
clear(): void;
|
|
57
|
+
/** A language change refreshes content without consuming it or changing card order. */
|
|
58
|
+
localeChanged(): Promise<void>;
|
|
59
|
+
/** A poll finished with copy from before a language change: reuse an
|
|
60
|
+
* in-flight refresh instead of invalidating its successful request. */
|
|
61
|
+
private staleLocaleRefresh;
|
|
62
|
+
private startLocaleRefresh;
|
|
63
|
+
private refreshLocale;
|
|
64
|
+
shown(id: string): void;
|
|
65
|
+
dismiss(id: string): void;
|
|
66
|
+
private report;
|
|
67
|
+
private dropExpired;
|
|
68
|
+
private publish;
|
|
69
|
+
private scheduleExpiry;
|
|
70
|
+
private poll;
|
|
71
|
+
}
|
|
72
|
+
export {};
|
|
73
|
+
//# sourceMappingURL=account-notifications.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account-notifications.d.ts","sourceRoot":"","sources":["../../../../src/dsh-adapter/oauth/account-notifications.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAA;AAG9E,4EAA4E;AAC5E,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,IAAI,EAAE,sBAAsB,CAAA;IACrC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IACpC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACxB,QAAQ,C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