@duckmind/dm-darwin-arm64 0.33.1 → 0.33.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/dm +0 -0
- package/extensions/.dm-extensions.json +1 -34
- package/extensions/greedysearch-dm/bin/cdp.mjs +1 -1
- package/package.json +1 -1
- package/theme/theme-alps.json +68 -77
- package/extensions/dm-ask/CHANGELOG.md +0 -149
- package/extensions/dm-ask/LICENSE +0 -21
- package/extensions/dm-ask/README.md +0 -94
- package/extensions/dm-ask/ask-ui.ts +0 -238
- package/extensions/dm-ask/ask.ts +0 -348
- package/extensions/dm-ask/btw-ui.test.ts +0 -270
- package/extensions/dm-ask/btw.command.test.ts +0 -152
- package/extensions/dm-ask/btw.test.ts +0 -340
- package/extensions/dm-ask/docs/cover.png +0 -0
- package/extensions/dm-ask/docs/cover.svg +0 -70
- package/extensions/dm-ask/docs/overlay.jpg +0 -0
- package/extensions/dm-ask/docs/vertical-cover.png +0 -0
- package/extensions/dm-ask/docs/vertical-cover.svg +0 -147
- package/extensions/dm-ask/index.ts +0 -17
- package/extensions/dm-ask/package.json +0 -44
- package/extensions/dm-ask/prompts/ask-system.txt +0 -9
package/dm
CHANGED
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"status": "ok",
|
|
3
|
-
"prepared_at": "2026-06-
|
|
3
|
+
"prepared_at": "2026-06-05T11:19:16.523784+00:00",
|
|
4
4
|
"managed_entries": [
|
|
5
5
|
{
|
|
6
6
|
"id": "dm-context",
|
|
@@ -133,30 +133,6 @@
|
|
|
133
133
|
"source_subdir": "extensions/ask-user-question",
|
|
134
134
|
"pinned_ref": "2d44b5788fbaf7aa23242226596c6d15e050beca"
|
|
135
135
|
},
|
|
136
|
-
{
|
|
137
|
-
"id": "dm-ask",
|
|
138
|
-
"upstream_name": "rpiv-btw",
|
|
139
|
-
"source_url": "https://github.com/juicesharp/rpiv-mono.git",
|
|
140
|
-
"upstream_revision": "4df925e17ebee772ec187a84f8509eaa5e72f818",
|
|
141
|
-
"target_dir": "extensions/dm-ask",
|
|
142
|
-
"bundle_mode": "source-package",
|
|
143
|
-
"copied_paths": [
|
|
144
|
-
"README.md",
|
|
145
|
-
"LICENSE",
|
|
146
|
-
"CHANGELOG.md",
|
|
147
|
-
"package.json",
|
|
148
|
-
"index.ts",
|
|
149
|
-
"btw-ui.test.ts",
|
|
150
|
-
"btw-ui.ts",
|
|
151
|
-
"btw.command.test.ts",
|
|
152
|
-
"btw.test.ts",
|
|
153
|
-
"btw.ts",
|
|
154
|
-
"prompts/",
|
|
155
|
-
"docs/"
|
|
156
|
-
],
|
|
157
|
-
"source_subdir": "packages/rpiv-btw",
|
|
158
|
-
"pinned_ref": "4df925e17ebee772ec187a84f8509eaa5e72f818"
|
|
159
|
-
},
|
|
160
136
|
{
|
|
161
137
|
"id": "dm-usage",
|
|
162
138
|
"upstream_name": "usage-extension",
|
|
@@ -341,15 +317,6 @@
|
|
|
341
317
|
"install_mode": "none",
|
|
342
318
|
"dependency_patches": []
|
|
343
319
|
},
|
|
344
|
-
{
|
|
345
|
-
"id": "dm-ask",
|
|
346
|
-
"source_dir": "extensions/dm-ask",
|
|
347
|
-
"staged_dir": "dist/extensions/dm-ask",
|
|
348
|
-
"bundle_mode": "source-package",
|
|
349
|
-
"dependencies_installed": false,
|
|
350
|
-
"install_mode": "none",
|
|
351
|
-
"dependency_patches": []
|
|
352
|
-
},
|
|
353
320
|
{
|
|
354
321
|
"id": "dm-usage",
|
|
355
322
|
"source_dir": "extensions/dm-usage",
|
|
@@ -89,7 +89,7 @@ const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
|
|
|
89
89
|
function listDaemonSockets() {
|
|
90
90
|
// Named pipes on Windows aren't enumerable as filesystem entries
|
|
91
91
|
if (platform() === "win32") return [];
|
|
92
|
-
|
|
92
|
+
const tmp = SOCKET_DIR;
|
|
93
93
|
try {
|
|
94
94
|
return readdirSync(tmp)
|
|
95
95
|
.filter((f) => f.startsWith("cdp-") && f.endsWith(".sock"))
|
package/package.json
CHANGED
package/theme/theme-alps.json
CHANGED
|
@@ -2,92 +2,83 @@
|
|
|
2
2
|
"$schema": "https://duckmind.ai/theme-schema.json",
|
|
3
3
|
"name": "theme-alps",
|
|
4
4
|
"vars": {
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
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"
|
|
5
|
+
"background": "#121212",
|
|
6
|
+
"surface": "#171B22",
|
|
7
|
+
"surfaceAlt": "#1F2430",
|
|
8
|
+
"surfaceSuccess": "#18211B",
|
|
9
|
+
"surfaceError": "#21181D",
|
|
10
|
+
"selection": "#2D3748",
|
|
11
|
+
"foreground": "#F8F8F2",
|
|
12
|
+
"foregroundSoft": "#B8BCC6",
|
|
13
|
+
"comment": "#7F869E",
|
|
14
|
+
"dimText": "#5C6378",
|
|
15
|
+
"harpyPink": "#F04282",
|
|
16
|
+
"harpyBlue": "#5FA0DE",
|
|
17
|
+
"harpyTeal": "#4ED4E8",
|
|
18
|
+
"green": "#A6E22E",
|
|
19
|
+
"orange": "#FD971F",
|
|
20
|
+
"amber": "#D19A66",
|
|
21
|
+
"harpyViolet": "#9B8BF4",
|
|
22
|
+
"red": "#E06C75",
|
|
23
|
+
"alarm": "#FF0055",
|
|
24
|
+
"criticalRed": "#FF0040"
|
|
34
25
|
},
|
|
35
26
|
"colors": {
|
|
36
|
-
"accent": "
|
|
37
|
-
"border": "
|
|
38
|
-
"borderAccent": "
|
|
39
|
-
"borderMuted": "
|
|
40
|
-
"success": "
|
|
41
|
-
"error": "
|
|
42
|
-
"warning": "
|
|
27
|
+
"accent": "harpyViolet",
|
|
28
|
+
"border": "comment",
|
|
29
|
+
"borderAccent": "harpyTeal",
|
|
30
|
+
"borderMuted": "surfaceAlt",
|
|
31
|
+
"success": "green",
|
|
32
|
+
"error": "red",
|
|
33
|
+
"warning": "orange",
|
|
43
34
|
"muted": "comment",
|
|
44
|
-
"dim": "
|
|
45
|
-
"text": "",
|
|
35
|
+
"dim": "dimText",
|
|
36
|
+
"text": "#F8F8F2",
|
|
46
37
|
"thinkingText": "comment",
|
|
47
38
|
"selectedBg": "selection",
|
|
48
|
-
"userMessageBg": "
|
|
49
|
-
"userMessageText": "",
|
|
50
|
-
"customMessageBg": "
|
|
51
|
-
"customMessageText": "",
|
|
52
|
-
"customMessageLabel": "
|
|
53
|
-
"toolPendingBg": "
|
|
54
|
-
"toolSuccessBg": "
|
|
55
|
-
"toolErrorBg": "
|
|
56
|
-
"toolTitle": "
|
|
57
|
-
"toolOutput": "
|
|
58
|
-
"mdHeading": "
|
|
59
|
-
"mdLink": "
|
|
60
|
-
"mdLinkUrl": "
|
|
61
|
-
"mdCode": "
|
|
62
|
-
"mdCodeBlock": "
|
|
63
|
-
"mdCodeBlockBorder": "
|
|
64
|
-
"mdQuote": "
|
|
39
|
+
"userMessageBg": "surfaceAlt",
|
|
40
|
+
"userMessageText": "foreground",
|
|
41
|
+
"customMessageBg": "surface",
|
|
42
|
+
"customMessageText": "foreground",
|
|
43
|
+
"customMessageLabel": "harpyPink",
|
|
44
|
+
"toolPendingBg": "surface",
|
|
45
|
+
"toolSuccessBg": "surfaceSuccess",
|
|
46
|
+
"toolErrorBg": "surfaceError",
|
|
47
|
+
"toolTitle": "harpyTeal",
|
|
48
|
+
"toolOutput": "foregroundSoft",
|
|
49
|
+
"mdHeading": "harpyViolet",
|
|
50
|
+
"mdLink": "harpyBlue",
|
|
51
|
+
"mdLinkUrl": "comment",
|
|
52
|
+
"mdCode": "amber",
|
|
53
|
+
"mdCodeBlock": "foregroundSoft",
|
|
54
|
+
"mdCodeBlockBorder": "comment",
|
|
55
|
+
"mdQuote": "foregroundSoft",
|
|
65
56
|
"mdQuoteBorder": "comment",
|
|
66
|
-
"mdHr": "
|
|
67
|
-
"mdListBullet": "
|
|
68
|
-
"toolDiffAdded": "
|
|
69
|
-
"toolDiffRemoved": "
|
|
57
|
+
"mdHr": "dimText",
|
|
58
|
+
"mdListBullet": "harpyTeal",
|
|
59
|
+
"toolDiffAdded": "green",
|
|
60
|
+
"toolDiffRemoved": "red",
|
|
70
61
|
"toolDiffContext": "comment",
|
|
71
62
|
"syntaxComment": "comment",
|
|
72
|
-
"syntaxKeyword": "
|
|
73
|
-
"syntaxFunction": "
|
|
74
|
-
"syntaxVariable": "
|
|
75
|
-
"syntaxString": "
|
|
76
|
-
"syntaxNumber": "
|
|
77
|
-
"syntaxType": "
|
|
78
|
-
"syntaxOperator": "
|
|
79
|
-
"syntaxPunctuation": "
|
|
80
|
-
"thinkingOff": "
|
|
81
|
-
"thinkingMinimal": "
|
|
82
|
-
"thinkingLow": "
|
|
83
|
-
"thinkingMedium": "
|
|
84
|
-
"thinkingHigh": "
|
|
85
|
-
"thinkingXhigh": "
|
|
86
|
-
"bashMode": "
|
|
63
|
+
"syntaxKeyword": "harpyPink",
|
|
64
|
+
"syntaxFunction": "#5C9CE6",
|
|
65
|
+
"syntaxVariable": "amber",
|
|
66
|
+
"syntaxString": "green",
|
|
67
|
+
"syntaxNumber": "orange",
|
|
68
|
+
"syntaxType": "harpyTeal",
|
|
69
|
+
"syntaxOperator": "harpyPink",
|
|
70
|
+
"syntaxPunctuation": "foregroundSoft",
|
|
71
|
+
"thinkingOff": "surface",
|
|
72
|
+
"thinkingMinimal": "comment",
|
|
73
|
+
"thinkingLow": "amber",
|
|
74
|
+
"thinkingMedium": "orange",
|
|
75
|
+
"thinkingHigh": "alarm",
|
|
76
|
+
"thinkingXhigh": "criticalRed",
|
|
77
|
+
"bashMode": "orange"
|
|
87
78
|
},
|
|
88
79
|
"export": {
|
|
89
|
-
"pageBg": "#
|
|
90
|
-
"cardBg": "#
|
|
91
|
-
"infoBg": "#
|
|
80
|
+
"pageBg": "#121212",
|
|
81
|
+
"cardBg": "#171B22",
|
|
82
|
+
"infoBg": "#4B3F63"
|
|
92
83
|
}
|
|
93
84
|
}
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to `dm-ask` are documented here.
|
|
4
|
-
|
|
5
|
-
Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
6
|
-
Versioning: [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
-
|
|
8
|
-
## [Unreleased]
|
|
9
|
-
|
|
10
|
-
## [1.5.0] - 2026-05-12
|
|
11
|
-
|
|
12
|
-
## [1.4.2] - 2026-05-11
|
|
13
|
-
|
|
14
|
-
## [1.4.1] - 2026-05-11
|
|
15
|
-
|
|
16
|
-
## [1.4.0] - 2026-05-10
|
|
17
|
-
|
|
18
|
-
## [1.3.1] - 2026-05-10
|
|
19
|
-
|
|
20
|
-
## [1.3.0] - 2026-05-08
|
|
21
|
-
|
|
22
|
-
## [1.2.1] - 2026-05-07
|
|
23
|
-
|
|
24
|
-
## [1.2.0] - 2026-05-07
|
|
25
|
-
|
|
26
|
-
## [1.1.5] - 2026-05-05
|
|
27
|
-
|
|
28
|
-
## [1.1.4] - 2026-05-03
|
|
29
|
-
|
|
30
|
-
## [1.1.3] - 2026-05-03
|
|
31
|
-
|
|
32
|
-
## [1.1.2] - 2026-05-03
|
|
33
|
-
|
|
34
|
-
## [1.1.1] - 2026-05-03
|
|
35
|
-
|
|
36
|
-
## [1.1.0] - 2026-05-03
|
|
37
|
-
|
|
38
|
-
## [1.0.19] - 2026-05-03
|
|
39
|
-
|
|
40
|
-
## [1.0.18] - 2026-05-02
|
|
41
|
-
|
|
42
|
-
## [1.0.17] - 2026-05-02
|
|
43
|
-
|
|
44
|
-
## [1.0.16] - 2026-05-02
|
|
45
|
-
|
|
46
|
-
## [1.0.15] - 2026-05-02
|
|
47
|
-
|
|
48
|
-
## [1.0.14] - 2026-05-01
|
|
49
|
-
|
|
50
|
-
### Changed
|
|
51
|
-
- Cover redesigned as a macOS-style terminal-window screenshot demonstrating the extension's hero feature.
|
|
52
|
-
|
|
53
|
-
## [1.0.13] - 2026-05-01
|
|
54
|
-
|
|
55
|
-
### Added
|
|
56
|
-
- `docs/vertical-cover.{svg,png}` — portrait-orientation hero artwork (1280×800 canvas; PNG downscaled to 320×711).
|
|
57
|
-
|
|
58
|
-
### Changed
|
|
59
|
-
- Cover canvas extended from 1280×640 to 1280×800 with refreshed crop marks/footer.
|
|
60
|
-
- README hero swapped from `docs/cover.png` to `docs/vertical-cover.png`, rendered at `width="160"`. The `<a>` wrapper around the `<picture>` was removed so the image is no longer a clickable link to the package directory.
|
|
61
|
-
|
|
62
|
-
## [1.0.12] - 2026-05-01
|
|
63
|
-
|
|
64
|
-
### Added
|
|
65
|
-
- `docs/cover.png` — package hero (rasterized from `docs/cover.svg` via `rsvg-convert`, 1280×640).
|
|
66
|
-
|
|
67
|
-
### Changed
|
|
68
|
-
- README hero: open with a `<picture>`-wrapped `cover.png` above the shield badges so DM.dev's package-card image extractor picks the friendly artwork instead of the npm version shield. Existing `docs/overlay.jpg` screenshot retained below the description.
|
|
69
|
-
|
|
70
|
-
## [1.0.11] - 2026-04-30
|
|
71
|
-
|
|
72
|
-
## [1.0.10] - 2026-04-30
|
|
73
|
-
|
|
74
|
-
## [1.0.9] - 2026-04-30
|
|
75
|
-
|
|
76
|
-
## [1.0.8] - 2026-04-29
|
|
77
|
-
|
|
78
|
-
## [1.0.7] - 2026-04-29
|
|
79
|
-
|
|
80
|
-
## [1.0.6] - 2026-04-29
|
|
81
|
-
|
|
82
|
-
## [1.0.5] - 2026-04-29
|
|
83
|
-
|
|
84
|
-
## [1.0.4] - 2026-04-28
|
|
85
|
-
|
|
86
|
-
## [1.0.3] - 2026-04-28
|
|
87
|
-
|
|
88
|
-
## [1.0.2] - 2026-04-28
|
|
89
|
-
|
|
90
|
-
## [1.0.1] - 2026-04-28
|
|
91
|
-
|
|
92
|
-
## [1.0.0] - 2026-04-28
|
|
93
|
-
|
|
94
|
-
## [0.13.0] - 2026-04-28
|
|
95
|
-
|
|
96
|
-
## [0.12.7] - 2026-04-26
|
|
97
|
-
|
|
98
|
-
## [0.12.6] - 2026-04-26
|
|
99
|
-
|
|
100
|
-
## [0.12.5] - 2026-04-24
|
|
101
|
-
|
|
102
|
-
## [0.12.4] - 2026-04-24
|
|
103
|
-
|
|
104
|
-
## [0.12.3] - 2026-04-24
|
|
105
|
-
|
|
106
|
-
## [0.12.2] - 2026-04-24
|
|
107
|
-
|
|
108
|
-
## [0.12.1] - 2026-04-24
|
|
109
|
-
|
|
110
|
-
## [0.12.0] - 2026-04-24
|
|
111
|
-
|
|
112
|
-
## [0.11.7] - 2026-04-23
|
|
113
|
-
|
|
114
|
-
## [0.11.6] - 2026-04-22
|
|
115
|
-
|
|
116
|
-
## [0.11.5] - 2026-04-22
|
|
117
|
-
|
|
118
|
-
## [0.11.4] - 2026-04-21
|
|
119
|
-
|
|
120
|
-
## [0.11.3] - 2026-04-21
|
|
121
|
-
|
|
122
|
-
## [0.11.2] - 2026-04-21
|
|
123
|
-
|
|
124
|
-
## [0.11.1] - 2026-04-20
|
|
125
|
-
|
|
126
|
-
## [0.11.0] - 2026-04-20
|
|
127
|
-
|
|
128
|
-
## [0.10.0] - 2026-04-20
|
|
129
|
-
|
|
130
|
-
## [0.9.1] - 2026-04-20
|
|
131
|
-
|
|
132
|
-
## [0.9.0] - 2026-04-19
|
|
133
|
-
|
|
134
|
-
## [0.8.3] - 2026-04-19
|
|
135
|
-
|
|
136
|
-
## [0.8.2] - 2026-04-19
|
|
137
|
-
|
|
138
|
-
## [0.8.1] - 2026-04-19
|
|
139
|
-
|
|
140
|
-
## [0.8.0] - 2026-04-19
|
|
141
|
-
|
|
142
|
-
## [0.7.0] - 2026-04-18
|
|
143
|
-
|
|
144
|
-
## [0.6.1] - 2026-04-18
|
|
145
|
-
|
|
146
|
-
## [0.6.0] — 2026-04-18
|
|
147
|
-
|
|
148
|
-
### Changed
|
|
149
|
-
- Consolidated into the `juicesharp/rpiv-mono` monorepo. Version aligned to the rpiv-pi family lockstep starting point. No runtime behavior change from `0.1.1`.
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 juicesharp
|
|
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,94 +0,0 @@
|
|
|
1
|
-
# dm-ask
|
|
2
|
-
|
|
3
|
-
<div align="center">
|
|
4
|
-
<a href="https://github.com/juicesharp/rpiv-mono/tree/main/packages/dm-ask">
|
|
5
|
-
<picture>
|
|
6
|
-
<img src="https://raw.githubusercontent.com/juicesharp/rpiv-mono/main/packages/dm-ask/docs/cover.png" alt="dm-ask cover" width="50%">
|
|
7
|
-
</picture>
|
|
8
|
-
</a>
|
|
9
|
-
</div>
|
|
10
|
-
|
|
11
|
-
[](https://www.npmjs.com/package/dm-ask)
|
|
12
|
-
[](https://opensource.org/licenses/MIT)
|
|
13
|
-
|
|
14
|
-
Ask a side question without polluting the main conversation. `dm-ask` adds `/ask <question>` to [DM Agent](https://github.com/badlogic/pi-mono) - a lightweight side agent picks up a **read-only clone** of your current conversation and answers in a panel at the bottom of the terminal. The side agent remembers its own `/ask` thread for follow-ups, while your main chat keeps going - its transcript is never polluted.
|
|
15
|
-
|
|
16
|
-

|
|
17
|
-
|
|
18
|
-
## Install
|
|
19
|
-
|
|
20
|
-
```bash
|
|
21
|
-
pi install npm:dm-ask
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
Restart your DM Agent session, then type `/ask` followed by your question:
|
|
25
|
-
|
|
26
|
-
```
|
|
27
|
-
/ask why did we switch from sockets to SSE last week?
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
## Usage
|
|
31
|
-
|
|
32
|
-
### What you see
|
|
33
|
-
|
|
34
|
-
A panel opens at the bottom of the terminal with:
|
|
35
|
-
|
|
36
|
-
- your question on a banner,
|
|
37
|
-
- a `…` while the model is thinking,
|
|
38
|
-
- the answer when it arrives.
|
|
39
|
-
|
|
40
|
-
Prior `/ask` questions from the same session appear above the banner, so follow-ups have context.
|
|
41
|
-
|
|
42
|
-
### Keys
|
|
43
|
-
|
|
44
|
-
| Key | Action |
|
|
45
|
-
|---|---|
|
|
46
|
-
| `↑` / `↓` | Scroll the panel (when its content overflows) |
|
|
47
|
-
| `x` | Clear this session's `/ask` history (hidden until you have a prior entry) |
|
|
48
|
-
| `Esc` | Close the panel; cancel the request if it's still running |
|
|
49
|
-
|
|
50
|
-
### What the model sees
|
|
51
|
-
|
|
52
|
-
The side agent is a fresh, tool-less instance of the same primary model, handed a read-only clone of your current conversation. When you press enter, `/ask` sends it:
|
|
53
|
-
|
|
54
|
-
1. A snapshot of your main conversation so far - so it knows what you've been working on. The side agent only reads the clone, so nothing it does pollutes your main transcript.
|
|
55
|
-
2. Your previous `/ask` questions and answers in this session - so follow-ups make sense.
|
|
56
|
-
3. The question you just typed.
|
|
57
|
-
|
|
58
|
-
### What it does *not* do
|
|
59
|
-
|
|
60
|
-
- Your main conversation is never polluted. The side answer lives only in the panel and in memory - it's not written to the agent's transcript or to disk.
|
|
61
|
-
- `/ask` has no tools. The model answers in plain text.
|
|
62
|
-
- History is lost when you exit DM Agent. Your main session is unaffected.
|
|
63
|
-
|
|
64
|
-
## Commands
|
|
65
|
-
|
|
66
|
-
| Command | Description |
|
|
67
|
-
|---|---|
|
|
68
|
-
| `/ask <question>` | Ask a side question without polluting the main conversation |
|
|
69
|
-
|
|
70
|
-
## Architecture
|
|
71
|
-
|
|
72
|
-
```
|
|
73
|
-
dm-ask/
|
|
74
|
-
├── index.ts - extension entry; registers command + hooks
|
|
75
|
-
├── ask.ts - state, message threading, model call
|
|
76
|
-
├── ask-ui.ts - bottom panel renderer
|
|
77
|
-
└── prompts/
|
|
78
|
-
└── ask-system.txt - system prompt for the side call
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
DM Agent discovers the extension via `"pi": { "extensions": ["./index.ts"] }` in `package.json`.
|
|
82
|
-
|
|
83
|
-
## Troubleshooting
|
|
84
|
-
|
|
85
|
-
| Symptom | Cause | Fix |
|
|
86
|
-
|---|---|---|
|
|
87
|
-
| `/ask requires interactive mode` | Running in `pi --print …` or RPC mode | `/ask` needs a terminal - run DM interactively |
|
|
88
|
-
| `/ask requires an active model` | No primary model configured | Set one with `/login` or edit `~/.dm/agent/models.json` |
|
|
89
|
-
| Panel opens but answer never arrives | Model call failed or network dropped | Press `Esc` to cancel; check your provider credentials |
|
|
90
|
-
| History missing after restart | Expected - no disk persistence | `/ask` history is per-DM-process by design |
|
|
91
|
-
|
|
92
|
-
## License
|
|
93
|
-
|
|
94
|
-
MIT
|