@duckmind/dm-darwin-x64 0.35.3 → 0.35.5

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 (43) hide show
  1. package/dm +0 -0
  2. package/extensions/.dm-extensions.json +1 -27
  3. package/package.json +1 -1
  4. package/extensions/dm-alps/LICENSE +0 -21
  5. package/extensions/dm-alps/README.md +0 -22
  6. package/extensions/dm-alps/index.ts +0 -172
  7. package/extensions/dm-alps/package.json +0 -49
  8. package/extensions/dm-alps/src/commands.ts +0 -208
  9. package/extensions/dm-alps/src/features/animations/debug.ts +0 -160
  10. package/extensions/dm-alps/src/features/animations/index.ts +0 -33
  11. package/extensions/dm-alps/src/features/animations/patch.ts +0 -112
  12. package/extensions/dm-alps/src/features/animations/preview.ts +0 -117
  13. package/extensions/dm-alps/src/features/animations/registry.ts +0 -593
  14. package/extensions/dm-alps/src/features/animations/runtime.ts +0 -563
  15. package/extensions/dm-alps/src/features/animations/settings.ts +0 -69
  16. package/extensions/dm-alps/src/features/bottom-input/cluster.ts +0 -2
  17. package/extensions/dm-alps/src/features/bottom-input/compositor.ts +0 -2
  18. package/extensions/dm-alps/src/features/bottom-input/editor.ts +0 -148
  19. package/extensions/dm-alps/src/features/bottom-input/frame.ts +0 -224
  20. package/extensions/dm-alps/src/features/bottom-input/icons.ts +0 -36
  21. package/extensions/dm-alps/src/features/bottom-input/index.ts +0 -8
  22. package/extensions/dm-alps/src/features/bottom-input/runtime.ts +0 -1197
  23. package/extensions/dm-alps/src/features/bottom-input/shortcuts.ts +0 -286
  24. package/extensions/dm-alps/src/features/bottom-input/status.ts +0 -663
  25. package/extensions/dm-alps/src/features/bottom-status/index.ts +0 -2
  26. package/extensions/dm-alps/src/features/chrome-frame/chrome.ts +0 -222
  27. package/extensions/dm-alps/src/features/chrome-frame/debug.ts +0 -212
  28. package/extensions/dm-alps/src/features/chrome-frame/image.ts +0 -11
  29. package/extensions/dm-alps/src/features/chrome-frame/index.ts +0 -4
  30. package/extensions/dm-alps/src/features/chrome-frame/osc.ts +0 -111
  31. package/extensions/dm-alps/src/features/chrome-frame/patch.ts +0 -769
  32. package/extensions/dm-alps/src/features/chrome-frame/preview.ts +0 -67
  33. package/extensions/dm-alps/src/features/chrome-frame/styles.ts +0 -105
  34. package/extensions/dm-alps/src/features/fixed-bottom-editor/cluster.ts +0 -161
  35. package/extensions/dm-alps/src/features/fixed-bottom-editor/compositor.ts +0 -1149
  36. package/extensions/dm-alps/src/features/fixed-bottom-editor/index.ts +0 -3
  37. package/extensions/dm-alps/src/features/fixed-bottom-editor/runtime.ts +0 -3
  38. package/extensions/dm-alps/src/settings-store.ts +0 -194
  39. package/extensions/dm-alps/src/settings-ui.ts +0 -653
  40. package/extensions/dm-alps/src/settings.ts +0 -102
  41. package/extensions/dm-alps/src/terminal-sanitizer.ts +0 -91
  42. package/extensions/dm-alps/themes/LICENSE.synthwave-84 +0 -21
  43. package/extensions/dm-alps/themes/alps.json +0 -93
@@ -1,102 +0,0 @@
1
-
2
- export type ChromeFrameSettings = {
3
- enabled: boolean;
4
- assistantFrame: boolean;
5
- toolCompactMode: boolean;
6
- compactEditTool: boolean;
7
- };
8
-
9
- export type FixedBottomEditorSettings = {
10
- enabled: boolean;
11
- };
12
-
13
- export type BeautifiedInputSettings = {
14
- enabled: boolean;
15
- };
16
-
17
- export type AnimationsSettings = {
18
- enabled: boolean;
19
- randomMode: boolean;
20
- working: string;
21
- thinking: string;
22
- tool: string;
23
- width: "full" | "default" | number;
24
- fps: number;
25
- };
26
-
27
- export type BottomInputShortcutSettings = {
28
- stashEditor: string;
29
- copyEditor: string;
30
- cutEditor: string;
31
- scrollChatUp: string;
32
- scrollChatDown: string;
33
- editorStart: string;
34
- editorEnd: string;
35
- jumpPreviousUserMessage: string;
36
- jumpNextUserMessage: string;
37
- jumpPreviousAssistantMessage: string;
38
- jumpNextAssistantMessage: string;
39
- jumpChatBottom: string;
40
- };
41
-
42
- export type FixedBottomEditorStatus = {
43
- enabled: boolean;
44
- installed: boolean;
45
- failure?: string;
46
- };
47
-
48
- export type AlpsDmSettings = {
49
- chromeFrame: ChromeFrameSettings;
50
- fixedBottomEditor: FixedBottomEditorSettings;
51
- beautifiedInput: BeautifiedInputSettings;
52
- animations: AnimationsSettings;
53
- shortcuts: BottomInputShortcutSettings;
54
- };
55
-
56
- export const DEFAULT_SETTINGS: AlpsDmSettings = {
57
- chromeFrame: {
58
- enabled: false,
59
- assistantFrame: false,
60
- toolCompactMode: true,
61
- compactEditTool: false,
62
- },
63
- fixedBottomEditor: {
64
- enabled: true,
65
- },
66
- beautifiedInput: {
67
- enabled: true,
68
- },
69
- animations: {
70
- enabled: true,
71
- randomMode: false,
72
- working: "typewriter",
73
- thinking: "shimmer",
74
- tool: "crush",
75
- width: "default",
76
- fps: 16,
77
- },
78
- shortcuts: {
79
- stashEditor: "alt+s",
80
- copyEditor: "ctrl+alt+c",
81
- cutEditor: "ctrl+alt+x",
82
- scrollChatUp: "super+up",
83
- scrollChatDown: "super+down",
84
- editorStart: "super+shift+up",
85
- editorEnd: "super+shift+down",
86
- jumpPreviousUserMessage: "ctrl+shift+u",
87
- jumpNextUserMessage: "ctrl+shift+i",
88
- jumpPreviousAssistantMessage: "ctrl+alt+,",
89
- jumpNextAssistantMessage: "ctrl+alt+.",
90
- jumpChatBottom: "ctrl+shift+g",
91
- },
92
- };
93
-
94
- export function cloneDefaultSettings(): AlpsDmSettings {
95
- return {
96
- chromeFrame: { ...DEFAULT_SETTINGS.chromeFrame },
97
- fixedBottomEditor: { ...DEFAULT_SETTINGS.fixedBottomEditor },
98
- beautifiedInput: { ...DEFAULT_SETTINGS.beautifiedInput },
99
- animations: { ...DEFAULT_SETTINGS.animations },
100
- shortcuts: { ...DEFAULT_SETTINGS.shortcuts },
101
- };
102
- }
@@ -1,91 +0,0 @@
1
-
2
- const ESC = "\x1b";
3
- const C1_STRING_START = /[\x90\x9d\x9e\x9f]/;
4
- const C0_CONTROL = /[\x00-\x08\x0b\x0c\x0e-\x1f\x7f]/g;
5
- const C1_CONTROL = /[\x80-\x8f\x91-\x9a\x9c]/g;
6
-
7
- export type TerminalSanitizeOptions = {
8
- allowNewline?: boolean;
9
- allowTab?: boolean;
10
- preserveSgr?: boolean;
11
- };
12
-
13
- /**
14
- */
15
- export function sanitizeTerminalText(value: unknown, options: TerminalSanitizeOptions = {}): string {
16
- const input = value === undefined || value === null ? "" : String(value);
17
- if (!input) return "";
18
- const preserveSgr = options.preserveSgr !== false;
19
- let result = "";
20
- for (let index = 0; index < input.length;) {
21
- const sequence = readAnsiSequence(input, index);
22
- if (sequence) {
23
- if (preserveSgr && isSgrSequence(sequence.code)) result += sequence.code;
24
- index += sequence.length;
25
- continue;
26
- }
27
- const char = input[index]!;
28
- if (char === "\n") {
29
- if (options.allowNewline !== false) result += char;
30
- index += 1;
31
- continue;
32
- }
33
- if (char === "\t") {
34
- if (options.allowTab !== false) result += char;
35
- index += 1;
36
- continue;
37
- }
38
- if (C0_CONTROL.test(char) || C1_CONTROL.test(char) || C1_STRING_START.test(char)) {
39
- C0_CONTROL.lastIndex = 0;
40
- C1_CONTROL.lastIndex = 0;
41
- C1_STRING_START.lastIndex = 0;
42
- index += 1;
43
- continue;
44
- }
45
- C0_CONTROL.lastIndex = 0;
46
- C1_CONTROL.lastIndex = 0;
47
- C1_STRING_START.lastIndex = 0;
48
- result += char;
49
- index += 1;
50
- }
51
- return result;
52
- }
53
-
54
- export function sanitizeTerminalSingleLineText(value: unknown, options: Omit<TerminalSanitizeOptions, "allowNewline" | "allowTab"> = {}): string {
55
- return sanitizeTerminalText(value, { ...options, allowNewline: false, allowTab: false }).replace(/\s+/g, " ").trim();
56
- }
57
-
58
- function isSgrSequence(sequence: string): boolean {
59
- return /^\x1b\[[0-9;:]*m$/.test(sequence) || /^\x9b[0-9;:]*m$/.test(sequence);
60
- }
61
-
62
- function readAnsiSequence(input: string, index: number): { code: string; length: number } | null {
63
- const char = input[index];
64
- if (char === ESC) return readEscSequence(input, index);
65
- if (char === "\x9b") return readCsiSequence(input, index, 1);
66
- if (char === "\x90" || char === "\x9d" || char === "\x9e" || char === "\x9f") return readStringControlSequence(input, index, 1);
67
- return null;
68
- }
69
-
70
- function readEscSequence(input: string, index: number): { code: string; length: number } {
71
- const next = input[index + 1];
72
- if (next === "[") return readCsiSequence(input, index, 2);
73
- if (next === "]" || next === "P" || next === "_" || next === "^") return readStringControlSequence(input, index, 2);
74
- return { code: input.slice(index, Math.min(input.length, index + 2)), length: Math.min(2, input.length - index) };
75
- }
76
-
77
- function readCsiSequence(input: string, index: number, prefixLength: number): { code: string; length: number } {
78
- for (let end = index + prefixLength; end < input.length; end += 1) {
79
- const code = input.charCodeAt(end);
80
- if (code >= 0x40 && code <= 0x7e) return { code: input.slice(index, end + 1), length: end + 1 - index };
81
- }
82
- return { code: input.slice(index), length: input.length - index };
83
- }
84
-
85
- function readStringControlSequence(input: string, index: number, prefixLength: number): { code: string; length: number } {
86
- for (let end = index + prefixLength; end < input.length; end += 1) {
87
- if (input[end] === "\x07") return { code: input.slice(index, end + 1), length: end + 1 - index };
88
- if (input[end] === ESC && input[end + 1] === "\\") return { code: input.slice(index, end + 2), length: end + 2 - index };
89
- }
90
- return { code: input.slice(index), length: input.length - index };
91
- }
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Rob Zolkos
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1,93 +0,0 @@
1
- {
2
- "$schema": "https://duckmind.ai/theme-schema.json",
3
- "name": "alps",
4
- "vars": {
5
- "bg": "#000000",
6
- "bgAlt": "#241b2f",
7
- "fg": "#ffffff",
8
- "comment": "#848bbd",
9
- "string": "#ff8b39",
10
- "variable": "#ff7edb",
11
- "type": "#fe4450",
12
- "constant": "#f97e72",
13
- "keyword": "#fede5d",
14
- "func": "#36f9f6",
15
- "tag": "#72f1b8",
16
- "tagBrkt": "#36f9f6",
17
- "inherit": "#DD5500",
18
- "quote": "#b6b1b1",
19
- "mdLink": "#72f1b8",
20
- "mdLinkUrl": "#DD5500",
21
- "mdBold": "#2EE2FA",
22
- "mdList": "#ff7edb",
23
- "mdHeading": "#ff7edb",
24
- "bgDark": "#1a1628",
25
- "bgMid": "#1e1a2e",
26
- "bgLight": "#2e2840",
27
- "surface": "#34294f",
28
- "selection": "#322d44",
29
- "dimmed": "#6a6f96",
30
- "warmGray": "#8a8570",
31
- "gitMod": "#b893ce",
32
- "gitAdd": "#09f7a0",
33
- "gitDel": "#fe4450"
34
- },
35
- "colors": {
36
- "accent": "variable",
37
- "border": "surface",
38
- "borderAccent": "func",
39
- "borderMuted": "keyword",
40
- "success": "tag",
41
- "error": "type",
42
- "warning": "warmGray",
43
- "muted": "comment",
44
- "dim": "dimmed",
45
- "text": "",
46
- "thinkingText": "comment",
47
- "selectedBg": "selection",
48
- "userMessageBg": "bgAlt",
49
- "userMessageText": "",
50
- "customMessageBg": "#1f1a30",
51
- "customMessageText": "",
52
- "customMessageLabel": "tag",
53
- "toolPendingBg": "bgMid",
54
- "toolSuccessBg": "#1a2e26",
55
- "toolErrorBg": "#2e1a1e",
56
- "toolTitle": "func",
57
- "toolOutput": "comment",
58
- "mdHeading": "mdHeading",
59
- "mdLink": "mdLink",
60
- "mdLinkUrl": "mdLinkUrl",
61
- "mdCode": "string",
62
- "mdCodeBlock": "fg",
63
- "mdCodeBlockBorder": "surface",
64
- "mdQuote": "quote",
65
- "mdQuoteBorder": "comment",
66
- "mdHr": "surface",
67
- "mdListBullet": "mdList",
68
- "toolDiffAdded": "gitAdd",
69
- "toolDiffRemoved": "gitDel",
70
- "toolDiffContext": "comment",
71
- "syntaxComment": "comment",
72
- "syntaxKeyword": "keyword",
73
- "syntaxFunction": "func",
74
- "syntaxVariable": "variable",
75
- "syntaxString": "string",
76
- "syntaxNumber": "constant",
77
- "syntaxType": "type",
78
- "syntaxOperator": "keyword",
79
- "syntaxPunctuation": "comment",
80
- "thinkingOff": "#444251",
81
- "thinkingMinimal": "dimmed",
82
- "thinkingLow": "#6796e6",
83
- "thinkingMedium": "variable",
84
- "thinkingHigh": "type",
85
- "thinkingXhigh": "type",
86
- "bashMode": "keyword"
87
- },
88
- "export": {
89
- "pageBg": "#1a1628",
90
- "cardBg": "#000000",
91
- "infoBg": "#2e2840"
92
- }
93
- }