@toddzheng024/dscode-bundle 0.7.12 → 0.7.13

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 (152) hide show
  1. package/THIRD_PARTY_NOTICES.md +3 -3
  2. package/cordis.patch.yml +1 -1
  3. package/package.json +5 -4
  4. package/plugins/session-metrics/view.mjs +10 -2
  5. package/vendor/tui/lib/app.mjs +6674 -0
  6. package/vendor/tui/lib/approval.mjs +122 -0
  7. package/vendor/tui/lib/attachments.mjs +218 -0
  8. package/vendor/tui/lib/authorization-panel.mjs +242 -0
  9. package/vendor/tui/lib/authorization.mjs +111 -0
  10. package/vendor/tui/lib/commands.mjs +123 -0
  11. package/vendor/tui/lib/dscode/chat.mjs +64 -0
  12. package/vendor/tui/lib/dscode/flags.mjs +32 -0
  13. package/vendor/tui/lib/dscode/model-search.mjs +68 -0
  14. package/vendor/tui/lib/dscode/paste.mjs +87 -0
  15. package/vendor/tui/lib/dscode/telemetry.mjs +82 -0
  16. package/vendor/tui/lib/dscode/welcome.mjs +100 -0
  17. package/vendor/tui/lib/editor-keys.mjs +346 -0
  18. package/vendor/tui/lib/editor.mjs +50 -0
  19. package/vendor/tui/lib/fork.mjs +24 -0
  20. package/vendor/tui/lib/git-workflow.mjs +278 -0
  21. package/vendor/tui/{types/history.d.ts → lib/history.mjs} +69 -26
  22. package/vendor/tui/{types/i18n.d.ts → lib/i18n.mjs} +23 -15
  23. package/vendor/tui/lib/index.mjs +2198 -0
  24. package/vendor/tui/lib/input-split.mjs +170 -0
  25. package/vendor/tui/lib/internals.mjs +90 -0
  26. package/vendor/tui/lib/invariant.mjs +22 -0
  27. package/vendor/tui/lib/kernel-panels.mjs +1265 -0
  28. package/vendor/tui/lib/keyboard.mjs +283 -0
  29. package/vendor/tui/lib/language-panel.mjs +41 -0
  30. package/vendor/tui/lib/locales/en.mjs +495 -0
  31. package/vendor/tui/lib/locales/zh.mjs +495 -0
  32. package/vendor/tui/lib/mentions.mjs +150 -0
  33. package/vendor/tui/lib/model-capabilities.mjs +245 -0
  34. package/vendor/tui/lib/models.mjs +215 -0
  35. package/vendor/tui/{types/panel-accent.d.ts → lib/panel-accent.mjs} +11 -7
  36. package/vendor/tui/lib/permissions.mjs +45 -0
  37. package/vendor/tui/lib/plugin-inventory.mjs +27 -0
  38. package/vendor/tui/lib/presets.mjs +46 -0
  39. package/vendor/tui/lib/provider-settings.mjs +600 -0
  40. package/vendor/tui/lib/questions.mjs +116 -0
  41. package/vendor/tui/lib/rainbow.mjs +181 -0
  42. package/vendor/tui/lib/render/animations.mjs +665 -0
  43. package/vendor/tui/lib/render/editor.mjs +437 -0
  44. package/vendor/tui/lib/render/export.mjs +119 -0
  45. package/vendor/tui/lib/render/fuzzy.mjs +79 -0
  46. package/vendor/tui/lib/render/ime-cursor.mjs +135 -0
  47. package/vendor/tui/lib/render/inspector.mjs +93 -0
  48. package/vendor/tui/lib/render/lines.mjs +538 -0
  49. package/vendor/tui/lib/render/markdown.mjs +592 -0
  50. package/vendor/tui/lib/render/projection.mjs +1862 -0
  51. package/vendor/tui/lib/render/status.mjs +591 -0
  52. package/vendor/tui/lib/render/text.mjs +157 -0
  53. package/vendor/tui/lib/render/tool-detail.mjs +187 -0
  54. package/vendor/tui/lib/render/tool-preview.mjs +79 -0
  55. package/vendor/tui/lib/render/usage.mjs +336 -0
  56. package/vendor/tui/lib/render/width.mjs +191 -0
  57. package/vendor/tui/lib/session-directory.mjs +329 -0
  58. package/vendor/tui/lib/session-query.mjs +184 -0
  59. package/vendor/tui/lib/session-switch.mjs +51 -0
  60. package/vendor/tui/lib/settings-file.mjs +75 -0
  61. package/vendor/tui/lib/skills.mjs +119 -0
  62. package/vendor/tui/lib/startup.mjs +111 -0
  63. package/vendor/tui/lib/store.mjs +129 -0
  64. package/vendor/tui/lib/subagents.mjs +200 -0
  65. package/vendor/tui/lib/terminal-title.mjs +186 -0
  66. package/vendor/tui/lib/theme-panel.mjs +60 -0
  67. package/vendor/tui/lib/theme.mjs +379 -0
  68. package/vendor/tui/lib/update-panel.mjs +239 -0
  69. package/vendor/tui/lib/update.mjs +101 -0
  70. package/vendor/tui/lib/version.mjs +105 -0
  71. package/vendor/tui/lib/whale-glyph.mjs +20 -0
  72. package/vendor/tui/LICENSE +0 -21
  73. package/vendor/tui/devtools-CdTl3MNy.mjs +0 -3643
  74. package/vendor/tui/dscode-email/cli.mjs +0 -32
  75. package/vendor/tui/dscode-email/contacts.mjs +0 -36
  76. package/vendor/tui/dscode-email/gmail-oauth.mjs +0 -69
  77. package/vendor/tui/dscode-email/gmail-store.mjs +0 -2
  78. package/vendor/tui/dscode-email/gmail.mjs +0 -194
  79. package/vendor/tui/dscode-email/imap.mjs +0 -136
  80. package/vendor/tui/dscode-email/inbox.d.mts +0 -25
  81. package/vendor/tui/dscode-email/inbox.mjs +0 -76
  82. package/vendor/tui/dscode-email/smtp.mjs +0 -69
  83. package/vendor/tui/dscode-email/store.mjs +0 -32
  84. package/vendor/tui/dscode-providers/catalog.mjs +0 -136
  85. package/vendor/tui/dscode-providers/effort.mjs +0 -35
  86. package/vendor/tui/dscode-providers/openrouter-account.mjs +0 -171
  87. package/vendor/tui/index.mjs +0 -44441
  88. package/vendor/tui/invariant.mjs +0 -21
  89. package/vendor/tui/rolldown-runtime-CMFfr-1z.mjs +0 -26
  90. package/vendor/tui/session-query.mjs +0 -150
  91. package/vendor/tui/startup.mjs +0 -109
  92. package/vendor/tui/theme-7u5Qo3dF.mjs +0 -1265
  93. package/vendor/tui/types/app.d.ts +0 -348
  94. package/vendor/tui/types/approval.d.ts +0 -59
  95. package/vendor/tui/types/attachments.d.ts +0 -52
  96. package/vendor/tui/types/authorization-panel.d.ts +0 -22
  97. package/vendor/tui/types/authorization.d.ts +0 -36
  98. package/vendor/tui/types/commands.d.ts +0 -52
  99. package/vendor/tui/types/editor-keys.d.ts +0 -105
  100. package/vendor/tui/types/editor.d.ts +0 -6
  101. package/vendor/tui/types/fork.d.ts +0 -8
  102. package/vendor/tui/types/git-workflow.d.ts +0 -121
  103. package/vendor/tui/types/index.d.ts +0 -223
  104. package/vendor/tui/types/input-split.d.ts +0 -54
  105. package/vendor/tui/types/internals.d.ts +0 -26
  106. package/vendor/tui/types/invariant.d.ts +0 -15
  107. package/vendor/tui/types/kernel-panels.d.ts +0 -245
  108. package/vendor/tui/types/keyboard.d.ts +0 -80
  109. package/vendor/tui/types/language-panel.d.ts +0 -12
  110. package/vendor/tui/types/locales/en.d.ts +0 -450
  111. package/vendor/tui/types/locales/zh.d.ts +0 -9
  112. package/vendor/tui/types/mentions.d.ts +0 -85
  113. package/vendor/tui/types/model-capabilities.d.ts +0 -82
  114. package/vendor/tui/types/models.d.ts +0 -133
  115. package/vendor/tui/types/permissions.d.ts +0 -27
  116. package/vendor/tui/types/plugin-inventory.d.ts +0 -11
  117. package/vendor/tui/types/presets.d.ts +0 -22
  118. package/vendor/tui/types/provider-settings.d.ts +0 -239
  119. package/vendor/tui/types/questions.d.ts +0 -54
  120. package/vendor/tui/types/rainbow.d.ts +0 -69
  121. package/vendor/tui/types/render/animations.d.ts +0 -307
  122. package/vendor/tui/types/render/editor.d.ts +0 -163
  123. package/vendor/tui/types/render/export.d.ts +0 -9
  124. package/vendor/tui/types/render/fuzzy.d.ts +0 -21
  125. package/vendor/tui/types/render/ime-cursor.d.ts +0 -60
  126. package/vendor/tui/types/render/inspector.d.ts +0 -62
  127. package/vendor/tui/types/render/lines.d.ts +0 -86
  128. package/vendor/tui/types/render/markdown.d.ts +0 -29
  129. package/vendor/tui/types/render/projection.d.ts +0 -587
  130. package/vendor/tui/types/render/status.d.ts +0 -196
  131. package/vendor/tui/types/render/text.d.ts +0 -64
  132. package/vendor/tui/types/render/tool-detail.d.ts +0 -94
  133. package/vendor/tui/types/render/tool-preview.d.ts +0 -28
  134. package/vendor/tui/types/render/usage.d.ts +0 -113
  135. package/vendor/tui/types/render/width.d.ts +0 -29
  136. package/vendor/tui/types/session-directory.d.ts +0 -190
  137. package/vendor/tui/types/session-query.d.ts +0 -92
  138. package/vendor/tui/types/session-switch.d.ts +0 -17
  139. package/vendor/tui/types/settings-file.d.ts +0 -41
  140. package/vendor/tui/types/skills.d.ts +0 -47
  141. package/vendor/tui/types/startup.d.ts +0 -65
  142. package/vendor/tui/types/store.d.ts +0 -58
  143. package/vendor/tui/types/subagents.d.ts +0 -70
  144. package/vendor/tui/types/terminal-title.d.ts +0 -66
  145. package/vendor/tui/types/theme-panel.d.ts +0 -24
  146. package/vendor/tui/types/theme.d.ts +0 -434
  147. package/vendor/tui/types/update-panel.d.ts +0 -49
  148. package/vendor/tui/types/update.d.ts +0 -75
  149. package/vendor/tui/types/version.d.ts +0 -19
  150. package/vendor/tui/types/whale-glyph.d.ts +0 -6
  151. /package/vendor/tui/{dscode-clipboard-image → lib/dscode/clipboard-image}/clipboard-image.swift +0 -0
  152. /package/vendor/tui/{dscode-clipboard-image → lib/dscode/clipboard-image}/index.mjs +0 -0
@@ -1,86 +0,0 @@
1
- /** Width-safe styled physical rows for bounded terminal panels. */
2
- import { type TranscriptEntry } from './projection.ts';
3
- import { type MdStyle } from './markdown.ts';
4
- /** Presentation classes mapped to Ink colors by the app boundary. */
5
- export type LineStyle = MdStyle | 'brand' | 'success' | 'error' | 'warn' | 'dimItalic' | 'diffAdd' | 'diffDel' | 'promptRow' | 'promptQueuedRow' | 'promptSteeredRow';
6
- /** One styled run within a physical terminal row. */
7
- export interface StyledSegment {
8
- text: string;
9
- style: LineStyle;
10
- }
11
- /** One row guaranteed not to exceed the requested terminal width. */
12
- export interface StyledLine {
13
- segments: readonly StyledSegment[];
14
- }
15
- /** Construct one segment without leaking mutable objects into cached rows. */
16
- export declare function lineSegment(text: string, style?: LineStyle): StyledSegment;
17
- /**
18
- * Classify one unified-diff row for coloring: additions and deletions carry
19
- * the diff tint styles (background on rich terminals), hunk headers and file
20
- * markers stay brand-blue, and everything else is dim context.
21
- */
22
- export declare function diffLineStyle(line: string): LineStyle;
23
- /**
24
- * Extend pure diff-tinted rows to the full width with same-styled padding so
25
- * the tint reads as one unbroken bar (GitHub-style), including wrapped
26
- * continuation rows; mixed or non-diff rows pass through untouched.
27
- */
28
- export declare function fillDiffLineBars(lines: readonly StyledLine[], columns: number): readonly StyledLine[];
29
- /**
30
- * Sanitize and hard-wrap styled content into exact physical rows.
31
- * Tabs become two visible spaces because terminal tab stops are contextual
32
- * and therefore cannot participate in a deterministic row budget.
33
- */
34
- export declare function styledLines(segments: readonly StyledSegment[], columns: number): readonly StyledLine[];
35
- /** Plain/dim text convenience over {@link styledLines}. */
36
- export declare function textLines(text: string, columns: number, style?: LineStyle): readonly StyledLine[];
37
- /** Markdown rows re-hardened so a single long word cannot escape the budget. */
38
- export declare function markdownLines(text: string, columns: number): readonly StyledLine[];
39
- /**
40
- * Codex-style reasoning rows: the marker occupies the reply gutter and every
41
- * wrapped or explicit continuation starts with the same two-column indent, so
42
- * reasoning content and assistant Markdown share one left edge.
43
- */
44
- export declare function reasoningLines(text: string, columns: number): readonly StyledLine[];
45
- /**
46
- * Style the lines of one user prompt for display: plain verbatim, except
47
- * inside ```diff / ```patch fences where added and removed lines take the
48
- * shared diff tints (the review prompt pastes its diff this way, and the
49
- * user row does not go through the markdown renderer). The fence markers
50
- * and file headers stay plain.
51
- */
52
- export declare function userPromptSegments(text: string): readonly StyledSegment[];
53
- /**
54
- * Convert one durable transcript entry to its complete scrollable row model.
55
- * The source entry stays intact; only the caller's visible slice is rendered.
56
- * Wrapped continuations keep a hanging indent aligned under each row's
57
- * content (Codex history-cell alignment) instead of resetting to column 0.
58
- */
59
- export declare function transcriptEntryLines(entry: TranscriptEntry, columns: number, showReasoning?: boolean, reasoningToggleHint?: boolean, showToolDetails?: boolean): readonly StyledLine[];
60
- /** Settled-history variant carrying the Ctrl+R reasoning fold. */
61
- export declare function settledEntryLines(entry: TranscriptEntry, columns: number, showReasoning: boolean): readonly StyledLine[];
62
- /** The flexible rows of the live region; chrome (composer/notice/status) is never reduced. */
63
- export interface LiveAllocation {
64
- /** Settled tail rows currently rendered in the live tree. */
65
- readonly live: number;
66
- /** Rows reserved for the streaming reasoning tail or its marker. */
67
- readonly reasoning: number;
68
- /** Rows reserved for the streaming answer tail. */
69
- readonly answer: number;
70
- }
71
- /** A clamped allocation plus the invariant-trip warning that triggered it. */
72
- export interface LiveAllocationAudit {
73
- readonly allocation: LiveAllocation;
74
- readonly warning?: string;
75
- }
76
- /**
77
- * Clamp the live-region allocation so the flexible dynamic rows never exceed
78
- * the post-chrome budget. By construction the caller derives these rows from
79
- * the same budget; this is the runtime tripwire for a future edit that breaks
80
- * that derivation. Reduction order: answer first (the freshest content is the
81
- * live tail), then reasoning, then settled live rows; nothing goes negative.
82
- * @param allocation - the intended row allocation.
83
- * @param dynamicRows - the post-chrome row budget.
84
- * @returns the clamped allocation and a warning string when clamping fired.
85
- */
86
- export declare function clampLiveAllocation(allocation: LiveAllocation, dynamicRows: number): LiveAllocationAudit;
@@ -1,29 +0,0 @@
1
- /**
2
- * Terminal markdown renderer for assistant replies: a pure GFM-subset
3
- * block/inline parser producing styled line segments the Ink renderer maps
4
- * to colored text. No ANSI here — the app owns color mapping, tests own the
5
- * structure. The subset mirrors what agent replies actually emit: headings,
6
- * emphasis, inline/fenced code, flat lists, blockquotes, links, rules, GFM
7
- * tables, and wrapped paragraphs. Unknown syntax degrades to plain text.
8
- *
9
- * @module @deepseek-ai/dsh-code/render/markdown
10
- */
11
- /** Style classes the renderer emits; the app maps them to colors/props. */
12
- export type MdStyle = 'plain' | 'bold' | 'italic' | 'boldItalic' | 'code' | 'accent' | 'accentBold' | 'dim' | 'strike' | 'diffAdd' | 'diffDel';
13
- /** One styled run of text. */
14
- export interface MdSegment {
15
- /** Visible text (no ANSI). */
16
- text: string;
17
- /** Presentation class for the app's color map. */
18
- style: MdStyle;
19
- }
20
- /** One rendered line: a sequence of styled runs. */
21
- export interface MdLine {
22
- segments: readonly MdSegment[];
23
- }
24
- /** Visible width of a run in columns (grapheme-cluster and emoji aware). */
25
- export declare function visibleColumns(text: string): number;
26
- /** Render markdown text into styled lines of at most `width` columns. */
27
- export declare function renderMarkdown(text: string, width: number, options?: {
28
- physicalWrap?: boolean;
29
- }): readonly MdLine[];