dsh-content-search-ad 0.26.1 → 0.27.0
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 +23 -11
- package/client.js +2 -2
- package/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -69,20 +69,28 @@ is a subsequence, which turns the list into match-everything noise.
|
|
|
69
69
|
The panel is split in two, and the lower frame never moves:
|
|
70
70
|
|
|
71
71
|
```
|
|
72
|
-
┌ search field + scope
|
|
73
|
-
│ results
|
|
74
|
-
├ This chat · 24
|
|
75
|
-
│
|
|
76
|
-
│ …
|
|
77
|
-
|
|
72
|
+
┌ search field + scope ──────────────────────────┐
|
|
73
|
+
│ results │ ← search output, scrolls
|
|
74
|
+
├ This chat list · 24 ────────────────────────────┤
|
|
75
|
+
│ every question you asked, oldest first │ ← fixed frame, scrolls alone
|
|
76
|
+
│ … │
|
|
77
|
+
├──────────────── [A−] [A+] ──────── v0.26.x ─────┤
|
|
78
78
|
```
|
|
79
79
|
|
|
80
|
-
- The lower frame
|
|
81
|
-
(injected context and tool output are
|
|
82
|
-
|
|
83
|
-
|
|
80
|
+
- The lower frame is titled **This chat list** and holds every question **you**
|
|
81
|
+
asked in the current conversation (injected context and tool output are
|
|
82
|
+
filtered out by the message source).
|
|
83
|
+
- It reads the **raw session log** once per conversation, so a conversation that
|
|
84
|
+
was compacted still lists its older prompts; a cache plus the cheap surface
|
|
85
|
+
read keep later refreshes fast.
|
|
86
|
+
- A prompt you send appears within about a second (a document observer watches
|
|
87
|
+
for the new chat node), and the frame keeps the newest question in view unless
|
|
88
|
+
you have scrolled up to read older ones. A 20 s poll is the fallback.
|
|
84
89
|
- Typing a query does **not** filter or reorder that list: matching rows are
|
|
85
90
|
highlighted in place, and clicking any row still jumps to it in the transcript.
|
|
91
|
+
- **A− / A+** in the footer change the panel's text size between 12 and 24 px and
|
|
92
|
+
the choice is remembered per browser. Every size in the panel is in `em`, so
|
|
93
|
+
text, padding and control heights scale together.
|
|
86
94
|
- The running version is printed in the footer of both the list and the detail
|
|
87
95
|
view, so a build can be identified (and rolled back) without opening the
|
|
88
96
|
plugin's files.
|
|
@@ -123,7 +131,7 @@ This build ships the session-content index switched off
|
|
|
123
131
|
|
|
124
132
|
| Half | Job |
|
|
125
133
|
|---|---|
|
|
126
|
-
| `index.js` (Host) | `/content-search/query?q=…&focus=…&scope=…` — extracts prose once per conversation and caches it, then scans it literally. `anchor`/`snippet` are computed from that prose. |
|
|
134
|
+
| `index.js` (Host) | `/content-search/query?q=…&focus=…&scope=…` — extracts prose once per conversation and caches it, then scans it literally. `anchor`/`snippet` are computed from that prose. `/content-search/questions?focus=…` — the raw-log question list for one conversation. |
|
|
127
135
|
| `client.js` (Browser) | The tab: field, scope switch, list, detail view, anchors, highlights, jumps, shortcut, recents. |
|
|
128
136
|
|
|
129
137
|
Cache lifetimes: a quiet conversation 10 min, one still attached to a live agent
|
|
@@ -154,6 +162,10 @@ that happens after a restart and before the warm-up finishes.
|
|
|
154
162
|
the footer says when the answer was truncated.
|
|
155
163
|
- Code the user or the model typed **as plain text** in a message is prose, not a
|
|
156
164
|
code block: it stays searchable by design.
|
|
165
|
+
- Search reads the current model **surface**, so a conversation that was
|
|
166
|
+
compacted may not return matches from its folded-away history. The question
|
|
167
|
+
list does not have this limit: it reads the raw log of the conversation the
|
|
168
|
+
panel belongs to.
|
|
157
169
|
- No semantic search: there is no embedding model in this build, so synonyms and
|
|
158
170
|
meaning-level matches are out of scope.
|
|
159
171
|
|
package/client.js
CHANGED
|
@@ -19,7 +19,7 @@ window.__ModuleLoader__.load({
|
|
|
19
19
|
/** Locale namespace owned by this plugin. */
|
|
20
20
|
const NS = 'contentSearch'
|
|
21
21
|
/** Plugin version, shown in the panel so a running build can be identified. */
|
|
22
|
-
const PLUGIN_VERSION = '0.
|
|
22
|
+
const PLUGIN_VERSION = '0.27.0'
|
|
23
23
|
/** Tab-type identity; the body slot registers under the same key. */
|
|
24
24
|
const TAB_ID = 'dsh-content-search-ad/panel'
|
|
25
25
|
/** Page kind opened by the guide card and the strip's add control. */
|
|
@@ -798,7 +798,7 @@ window.__ModuleLoader__.load({
|
|
|
798
798
|
.dcs-chat{flex:0 0 auto;display:flex;flex-direction:column;max-height:42%;border-top:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1)}
|
|
799
799
|
.dcs-chat-head{flex:0 0 auto;margin:9px 10px 5px;font-size:.9em;line-height:1.4}
|
|
800
800
|
.dcs-chat-list{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 6px 8px;display:flex;flex-direction:column;gap:2px}
|
|
801
|
-
.dcs-question{flex:0 0 auto;min-height:2.4em;width:100%;box-sizing:border-box;padding:.45em .6em;border:0;border-radius:var(--dsw-radius-sm);background:transparent;color:var(--dsw-alias-label-secondary);font:inherit;font-size:.95em;line-height:1.55;text-align:left;cursor:pointer;
|
|
801
|
+
.dcs-question{flex:0 0 auto;min-height:2.4em;width:100%;box-sizing:border-box;padding:.45em .6em;border:0;border-radius:var(--dsw-radius-sm);background:transparent;color:var(--dsw-alias-label-secondary);font:inherit;font-size:.95em;line-height:1.55;text-align:left;cursor:pointer;white-space:normal;overflow-wrap:anywhere}
|
|
802
802
|
.dcs-question:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}
|
|
803
803
|
.dcs-question[data-hit="true"]{background:var(--dsw-alias-interactive-bg-hover-accent,var(--dsw-alias-bg-layer-3));color:var(--dsw-alias-label-primary);font-weight:600}
|
|
804
804
|
.dcs-version{flex:0 0 auto;font-size:.85em;font-variant-numeric:tabular-nums;opacity:.75}
|
package/index.js
CHANGED
|
@@ -64,7 +64,7 @@ const FUZZY_MAX_CHARS = 12
|
|
|
64
64
|
/** Shortest query, in code points, still worth a fuzzy pass. */
|
|
65
65
|
const FUZZY_MIN_CHARS = 4
|
|
66
66
|
|
|
67
|
-
const VERSION = '0.
|
|
67
|
+
const VERSION = '0.27.0'
|
|
68
68
|
|
|
69
69
|
//#region http helpers
|
|
70
70
|
function writeJson(res, status, value) {
|
|
@@ -573,7 +573,7 @@ async function scanCorpus(ctx, parsed, focusId, scope) {
|
|
|
573
573
|
/** How many user messages the panel lists for one conversation. */
|
|
574
574
|
const QUESTIONS_MAX = 500
|
|
575
575
|
/** Longest question text sent for display. */
|
|
576
|
-
const QUESTION_TEXT_CHARS =
|
|
576
|
+
const QUESTION_TEXT_CHARS = 4000
|
|
577
577
|
/** Longest anchor sent for locating the question in the transcript. */
|
|
578
578
|
const QUESTION_ANCHOR_CHARS = 80
|
|
579
579
|
/** How long a complete question list is served before the log is re-read. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-content-search-ad",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"description": "DeepSeek Harness (DSH) plugin: full-text search over every conversation's prose from a right sidebar tab, with a jump-to-match detail view.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "zmq6931",
|