dsh-mnemon 0.5.40 → 0.5.42
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/lib/bundle.js +1 -1
- package/lib/client.js +97 -4
- package/lib/index.js +760 -158
- package/lib/{starter-resolution-C5nNk-cs.js → starter-resolution-B5mdKlvf.js} +3 -3
- package/lib/starter.js +1 -1
- package/lib/types/src/client/locales.d.ts +11 -0
- package/lib/types/src/host/protocol.d.ts +7 -0
- package/package.json +4 -4
package/lib/bundle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as prepareStarterResolution } from "./starter-resolution-
|
|
1
|
+
import { t as prepareStarterResolution } from "./starter-resolution-B5mdKlvf.js";
|
|
2
2
|
//#region src/bundle.ts
|
|
3
3
|
const groupKey = Symbol.for("cordis.group");
|
|
4
4
|
const init = Symbol.for("cordis.init");
|
package/lib/client.js
CHANGED
|
@@ -318,6 +318,8 @@ window.__ModuleLoader__.load({
|
|
|
318
318
|
allowUpdate: true,
|
|
319
319
|
targetScope: "user",
|
|
320
320
|
autoBacktest: true,
|
|
321
|
+
draftMaxTokens: 32768,
|
|
322
|
+
draftRetryMaxTokens: 65536,
|
|
321
323
|
hints: true,
|
|
322
324
|
sidebar: false,
|
|
323
325
|
reviewThreshold: 5,
|
|
@@ -1286,6 +1288,12 @@ window.__ModuleLoader__.load({
|
|
|
1286
1288
|
"documents.selectText": "在左侧查看活跃项目知识或沿 Mnemon 引用打开归档原文。",
|
|
1287
1289
|
"documents.coldArchive": "归档原文",
|
|
1288
1290
|
"documents.edit": "编辑",
|
|
1291
|
+
"documents.delete": "删除",
|
|
1292
|
+
"documents.deleteConfirm": "永久删除这份档案?",
|
|
1293
|
+
"documents.deleteDescription": "将永久移除档案记录和托管副本,无法撤销。不会建立记忆空间冷索引,也不会修改已有记忆空间条目或项目源文件。",
|
|
1294
|
+
"documents.deleteNow": "永久删除",
|
|
1295
|
+
"documents.deleting": "删除中…",
|
|
1296
|
+
"documents.deleted": "档案已永久删除。",
|
|
1289
1297
|
"documents.path": "托管路径",
|
|
1290
1298
|
"documents.revision": "修订",
|
|
1291
1299
|
"documents.hash": "内容哈希",
|
|
@@ -1349,6 +1357,12 @@ window.__ModuleLoader__.load({
|
|
|
1349
1357
|
"documents.selectText": "Read active project knowledge or follow a Mnemon reference to an archived original.",
|
|
1350
1358
|
"documents.coldArchive": "Archived original",
|
|
1351
1359
|
"documents.edit": "Edit",
|
|
1360
|
+
"documents.delete": "Delete",
|
|
1361
|
+
"documents.deleteConfirm": "Permanently delete this document?",
|
|
1362
|
+
"documents.deleteDescription": "This permanently removes the document record and managed copy and cannot be undone. No Memory Space index is created. Existing Memory Space entries and original project files remain unchanged.",
|
|
1363
|
+
"documents.deleteNow": "Delete permanently",
|
|
1364
|
+
"documents.deleting": "Deleting…",
|
|
1365
|
+
"documents.deleted": "Document permanently deleted.",
|
|
1352
1366
|
"documents.path": "Managed path",
|
|
1353
1367
|
"documents.revision": "Revision",
|
|
1354
1368
|
"documents.hash": "Content hash",
|
|
@@ -2784,6 +2798,7 @@ window.__ModuleLoader__.load({
|
|
|
2784
2798
|
"board.relationNeeds": "需要“{component}”",
|
|
2785
2799
|
"board.relationNeededBy": "“{component}”依赖它",
|
|
2786
2800
|
"options.aria": "“{component}”的选项",
|
|
2801
|
+
"options.emptySourcesConfirm": "当前未选择任何记忆源。保存后 Agent 的热记忆、档案和记忆空间读写将不可用。若想恢复自动选择,请取消并点击恢复默认。确定保存空列表吗?",
|
|
2787
2802
|
"options.apply": "应用",
|
|
2788
2803
|
"options.fix": "先修正标出的选项",
|
|
2789
2804
|
"options.applying": "正在应用…",
|
|
@@ -3145,6 +3160,10 @@ window.__ModuleLoader__.load({
|
|
|
3145
3160
|
"skills.autoBacktest": "草案自动回测",
|
|
3146
3161
|
"skills.autoBacktestHint": "草案写好后,用测试用例与当前版本对比",
|
|
3147
3162
|
"skills.parameters": "复盘参数",
|
|
3163
|
+
"skills.draftGeneration": "草案生成",
|
|
3164
|
+
"skills.draftMaxTokens": "草案输出 token 上限",
|
|
3165
|
+
"skills.draftRetryMaxTokens": "重试输出 token 上限",
|
|
3166
|
+
"skills.draftBudgetHint": "预算包含推理与完整 SKILL.md。截断时仅在重试上限更大时重新生成一次;设为相同或更小值可关闭扩容重试。两项均需符合模型提供方的输出限制,保存后用于下一次草案。",
|
|
3148
3167
|
"skills.reviewThreshold": "复盘阈值",
|
|
3149
3168
|
"skills.idleSeconds": "空闲等待(秒)",
|
|
3150
3169
|
"skills.cooldownSeconds": "复盘间隔(秒)",
|
|
@@ -3604,6 +3623,7 @@ window.__ModuleLoader__.load({
|
|
|
3604
3623
|
"board.relationNeeds": "Needs “{component}”",
|
|
3605
3624
|
"board.relationNeededBy": "“{component}” depends on it",
|
|
3606
3625
|
"options.aria": "Options of “{component}”",
|
|
3626
|
+
"options.emptySourcesConfirm": "No memory sources are selected. Saving disables Agent access to runtime memory, documents and memory spaces. To restore automatic selection, cancel and reset this option to default. Save an empty selection?",
|
|
3607
3627
|
"options.apply": "Apply",
|
|
3608
3628
|
"options.fix": "Fix the marked options first",
|
|
3609
3629
|
"options.applying": "Applying…",
|
|
@@ -3965,6 +3985,10 @@ window.__ModuleLoader__.load({
|
|
|
3965
3985
|
"skills.autoBacktest": "Backtest drafts",
|
|
3966
3986
|
"skills.autoBacktestHint": "Compare a new draft with the current version on its test cases",
|
|
3967
3987
|
"skills.parameters": "Review parameters",
|
|
3988
|
+
"skills.draftGeneration": "Draft generation",
|
|
3989
|
+
"skills.draftMaxTokens": "Draft output token limit",
|
|
3990
|
+
"skills.draftRetryMaxTokens": "Retry output token limit",
|
|
3991
|
+
"skills.draftBudgetHint": "Budgets include reasoning and the complete SKILL.md. Truncation triggers one fresh attempt only when the retry limit is higher; an equal or lower value disables it. Keep both within the model provider’s output limit. Saved changes apply to the next draft.",
|
|
3968
3992
|
"skills.reviewThreshold": "Review threshold",
|
|
3969
3993
|
"skills.idleSeconds": "Idle wait (s)",
|
|
3970
3994
|
"skills.cooldownSeconds": "Review interval (s)",
|
|
@@ -4578,7 +4602,7 @@ window.__ModuleLoader__.load({
|
|
|
4578
4602
|
};
|
|
4579
4603
|
//#endregion
|
|
4580
4604
|
//#region \0dsh-mnemon-css:/home/runner/work/dsh-mnemon/dsh-mnemon/plugins/dsh-mnemon-source-documents/presentation/page.module.css.mjs
|
|
4581
|
-
const css$10 = ".IIa07q_documentSummary{grid-template-columns:.7fr .7fr 1.6fr;gap:12px;margin-bottom:12px;display:grid}.IIa07q_documentSummary article{border:.5px solid var(--mn-card-line);border-radius:var(--dsw-radius-lg);min-width:0;min-height:92px;padding:14px 16px}.IIa07q_documentSummary article>span{color:var(--mn-faint);font-size:12px;line-height:18px;display:block}.IIa07q_documentSummary article>strong{font-variant-numeric:tabular-nums;margin:4px 0 2px;font-size:20px;font-weight:500;line-height:28px;display:block}.IIa07q_documentSummary article>small{color:var(--mn-faint);font-size:12px;line-height:18px}.IIa07q_documentCapacity>div{background:var(--mn-fill);border-radius:999px;height:4px;margin:8px 0 6px;overflow:hidden}.IIa07q_documentCapacity>div i{border-radius:inherit;background:var(--dsw-alias-brand-primary);height:100%;transition:width .3s;display:block}.IIa07q_documentToolbar{border:.5px solid var(--mn-card-line);border-radius:var(--dsw-radius-lg);align-items:center;gap:8px;margin-bottom:12px;padding:8px;display:flex}.IIa07q_documentToolbar form{flex:1;align-items:center;gap:8px;min-width:260px;display:flex}.IIa07q_documentSearch{flex:1}.IIa07q_documentEditor input,.IIa07q_documentEditor textarea{border:.5px solid var(--mn-field-line);border-radius:var(--dsw-radius-md);width:100%;color:var(--mn-text);background:var(--mn-input);outline:0;padding:6px 10px;font-size:13px;line-height:20px}.IIa07q_documentEditor input:focus,.IIa07q_documentEditor textarea:focus{border-color:var(--mn-accent)}.IIa07q_documentToolbar>div{border-radius:var(--dsw-radius-md);background:var(--mn-hover);align-items:center;gap:2px;padding:3px;display:flex}.IIa07q_documentToolbar>div button{border-radius:var(--dsw-radius-sm);min-height:28px;color:var(--mn-muted);cursor:pointer;background:0 0;border:0;padding:0 12px;font-size:13px;font-weight:500;line-height:20px}.IIa07q_documentToolbar>div button:hover{color:var(--mn-text)}.IIa07q_documentToolbar>div button[data-active]{color:var(--mn-text);background:var(--mn-layer-1);box-shadow:var(--dsw-elevation-soft)}.IIa07q_documentToolbar>div b{color:var(--mn-faint);font-variant-numeric:tabular-nums;margin-left:6px;font-size:12px;font-weight:400}.IIa07q_documentWorkspace{grid-template-columns:minmax(250px,310px) minmax(0,1fr);gap:12px;min-height:590px;display:grid}.IIa07q_documentList,.IIa07q_documentReader{border:.5px solid var(--mn-card-line);border-radius:var(--dsw-radius-lg);min-width:0;overflow:hidden}.IIa07q_documentList{align-self:stretch}.IIa07q_documentList>header{border-bottom:.5px solid var(--mn-line);min-height:44px;color:var(--mn-faint);justify-content:space-between;align-items:center;padding:0 14px;font-size:12px;line-height:18px;display:flex}.IIa07q_documentList>header code{color:var(--mn-muted)}.IIa07q_documentList>button{--mn-provider-color:var(--mn-faint);border-radius:var(--dsw-radius-md);width:calc(100% - 12px);color:var(--mn-text);text-align:left;cursor:pointer;background:0 0;border:0;margin:6px 6px 0;padding:10px 12px;transition:background-color .15s;display:block}.IIa07q_documentList>button:hover{background:var(--mn-hover)}.IIa07q_documentList>button[data-selected]{background:var(--mn-fill)}.IIa07q_documentList>button>div{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.IIa07q_documentList>button strong{text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:500;line-height:20px;overflow:hidden}.IIa07q_documentList>button time{color:var(--mn-faint);font-variant-numeric:tabular-nums;flex:none;font-size:11px}.IIa07q_documentList>button p{color:var(--mn-faint);-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:4px 0 6px;font-size:12px;line-height:18px;display:-webkit-box;overflow:hidden}.IIa07q_documentList>button footer{color:var(--mn-faint);align-items:center;gap:8px;font-size:11px;line-height:16px;display:flex}.IIa07q_documentList>button footer code{margin-left:auto}.IIa07q_documentList>button footer em{color:var(--mn-danger);font-style:normal}.IIa07q_documentListEmpty{min-height:230px;color:var(--mn-muted);text-align:center;align-content:center;place-items:center;gap:4px;padding:24px;display:grid}.IIa07q_documentListEmpty>span{color:var(--mn-faint);margin-bottom:6px;font-size:24px;line-height:1}.IIa07q_documentListEmpty p{color:var(--mn-faint);margin:0;font-size:12px;line-height:18px}.IIa07q_documentReader{padding:clamp(16px,2vw,24px)}.IIa07q_documentReader>.IIa07q_emptyState{background:0 0;border:0;height:100%}.IIa07q_documentDetail>header{border-bottom:.5px solid var(--mn-line);justify-content:space-between;align-items:flex-start;gap:16px;padding-bottom:14px;display:flex}.IIa07q_documentDetail>header span{color:var(--mn-faint);font-size:12px;line-height:18px}.IIa07q_documentDetail>header h3{margin:2px 0;font-size:16px;font-weight:500;line-height:24px}.IIa07q_documentDetail>header p{color:var(--mn-faint);margin:0;font-size:12px;line-height:18px}.IIa07q_documentDetail>dl{border:.5px solid var(--mn-line);border-radius:var(--dsw-radius-md);grid-template-columns:2fr .45fr .8fr .55fr;margin:12px 0;display:grid;overflow:hidden}.IIa07q_documentDetail>dl>div{min-width:0;padding:8px 10px}.IIa07q_documentDetail>dl>div+div{border-left:.5px solid var(--mn-line)}.IIa07q_documentDetail dt{color:var(--mn-faint);margin-bottom:2px;font-size:11px;line-height:16px}.IIa07q_documentDetail dd{text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:12px;line-height:18px;overflow:hidden}.IIa07q_documentSources{flex-wrap:wrap;align-items:center;gap:6px;margin:12px 0;display:flex}.IIa07q_documentSources>span{color:var(--mn-faint);margin-right:4px;font-size:12px}.IIa07q_documentSources code,.IIa07q_documentArchiveReceipt code{color:var(--mn-muted);background:var(--mn-fill);border-radius:999px;padding:1px 8px;font-size:11px;line-height:17px}.IIa07q_markdownBody{overflow-wrap:anywhere;border:.5px solid var(--mn-line);border-radius:var(--dsw-radius-md);min-height:310px;color:var(--mn-text);margin:16px 0 0;padding:clamp(16px,2.5vw,28px);font-size:14px;line-height:1.75}.IIa07q_markdownBody>:first-child{margin-top:0}.IIa07q_markdownBody>:last-child{margin-bottom:0}.IIa07q_markdownBody h1,.IIa07q_markdownBody h2,.IIa07q_markdownBody h3,.IIa07q_markdownBody h4{color:var(--mn-text);margin:1.5em 0 .6em;font-weight:500;line-height:1.35}.IIa07q_markdownBody h1{border-bottom:.5px solid var(--mn-line);padding-bottom:.35em;font-size:1.6em}.IIa07q_markdownBody h2{border-bottom:.5px solid var(--mn-line);padding-bottom:.3em;font-size:1.35em}.IIa07q_markdownBody h3{font-size:1.15em}.IIa07q_markdownBody p,.IIa07q_markdownBody ul,.IIa07q_markdownBody ol,.IIa07q_markdownBody blockquote,.IIa07q_markdownBody table,.IIa07q_markdownBody pre{margin:.85em 0}.IIa07q_markdownBody ul,.IIa07q_markdownBody ol{padding-left:1.6em}.IIa07q_markdownBody li+li{margin-top:.3em}.IIa07q_markdownBody blockquote{border-left:2px solid var(--mn-line-strong);color:var(--mn-muted);margin-inline:0;padding:.1em 1em}.IIa07q_markdownBody code{border-radius:var(--dsw-radius-xs);color:var(--mn-text);background:var(--dsw-alias-markdown-inline-code,var(--mn-fill));font:.88em/1.55 var(--mn-code);padding:.15em .4em}.IIa07q_markdownBody pre{border-radius:var(--dsw-radius-md);background:var(--dsw-alias-markdown-code-block,var(--mn-fill));max-width:100%;padding:12px 16px;overflow:auto}.IIa07q_markdownBody pre code{background:0 0;padding:0;font-size:12px}.IIa07q_markdownBody a{color:var(--dsw-alias-link,var(--mn-accent));text-underline-offset:3px;text-decoration-thickness:1px}.IIa07q_markdownBody hr{border:0;border-top:.5px solid var(--mn-line);margin:1.8em 0}.IIa07q_markdownBody table{border-collapse:collapse;max-width:100%;display:block;overflow-x:auto}.IIa07q_markdownBody th,.IIa07q_markdownBody td{border:.5px solid var(--mn-line);text-align:left;vertical-align:top;padding:8px 10px}.IIa07q_markdownBody th{background:var(--mn-fill);font-weight:500}.IIa07q_markdownBody img{border-radius:var(--dsw-radius-sm);max-width:100%;height:auto}.IIa07q_documentArchiveReceipt{border-radius:var(--dsw-radius-md);background:color-mix(in srgb, var(--mn-success) 8%, transparent);margin:12px 0;padding:10px 12px}.IIa07q_documentArchiveReceipt p{color:var(--mn-muted);margin:2px 0 8px;font-size:12px;line-height:18px}.IIa07q_documentArchiveReceipt div{flex-wrap:wrap;gap:6px;display:flex}.IIa07q_documentDanger{border-top:.5px solid var(--mn-line);justify-content:flex-end;align-items:center;gap:8px;min-height:56px;margin-top:12px;padding-top:12px;display:flex}.IIa07q_documentDanger>div{margin-right:auto}.IIa07q_documentDanger strong{font-size:13px;font-weight:500;line-height:20px;display:block}.IIa07q_documentDanger p{color:var(--mn-faint);margin:2px 0 0;font-size:12px;line-height:18px}.IIa07q_documentDanger>span{color:var(--mn-danger);margin-right:auto;font-size:12px}.IIa07q_documentEditor{border:.5px solid var(--mn-card-line);border-radius:var(--dsw-radius-lg);margin-bottom:12px;padding:16px}.IIa07q_documentReader>.IIa07q_documentEditor{background:0 0;border:0;margin:0;padding:0}.IIa07q_documentEditor>header{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:12px;display:flex}.IIa07q_documentEditor h3{margin:0;font-size:14px;font-weight:500;line-height:22px}.IIa07q_documentEditor header p{color:var(--mn-faint);margin:2px 0 0;font-size:12px;line-height:18px}.IIa07q_documentEditor header>span,.IIa07q_documentEditor header>code{color:var(--mn-muted);background:var(--mn-fill);border-radius:999px;padding:1px 8px;font-size:11px;font-weight:500;line-height:17px}.IIa07q_documentEditor label{color:var(--mn-muted);gap:6px;margin-top:12px;font-size:12px;font-weight:500;line-height:18px;display:grid}.IIa07q_documentEditor textarea{resize:vertical;line-height:1.65}.IIa07q_documentEditorMeta{grid-template-columns:.8fr 1.2fr;gap:12px;display:grid}.IIa07q_documentEditorMeta label{margin:0}.IIa07q_documentEditor footer{justify-content:flex-end;gap:8px;margin-top:12px;display:flex}@media (width<=1000px){.IIa07q_documentWorkspace{grid-template-columns:minmax(220px,270px) minmax(0,1fr)}.IIa07q_documentDetail>dl{grid-template-columns:repeat(2,minmax(0,1fr))}.IIa07q_documentDetail>dl>div+div{border-left:0}.IIa07q_documentDetail>dl>div:nth-child(2n){border-left:.5px solid var(--mn-line)}.IIa07q_documentDetail>dl>div:nth-child(n+3){border-top:.5px solid var(--mn-line)}}@media (width<=760px){.IIa07q_documentSummary{grid-template-columns:repeat(2,minmax(0,1fr))}.IIa07q_documentCapacity{grid-column:1/-1}.IIa07q_documentToolbar{flex-direction:column;align-items:stretch}.IIa07q_documentToolbar form{min-width:0}.IIa07q_documentToolbar>div,.IIa07q_documentToolbar>button{width:100%}.IIa07q_documentToolbar>div button{flex:1}.IIa07q_documentWorkspace{grid-template-columns:1fr;min-height:0}.IIa07q_documentList{-webkit-overflow-scrolling:touch;max-height:330px;overflow:auto}.IIa07q_documentReader{min-height:430px}.IIa07q_documentEditorMeta{grid-template-columns:1fr}}@media (width<=520px){.IIa07q_documentDetail>header,.IIa07q_documentDanger{flex-direction:column;align-items:flex-start}.IIa07q_documentDetail>header>div:last-child,.IIa07q_documentDetail>header button{width:100%}.IIa07q_documentDanger>div,.IIa07q_documentDanger>span{margin-right:0}.IIa07q_documentDanger>button{width:100%}.IIa07q_documentDetail>dl{grid-template-columns:1fr}.IIa07q_documentDetail>dl>div:nth-child(2n){border-left:0}.IIa07q_documentDetail>dl>div+div{border-top:.5px solid var(--mn-line)}.IIa07q_markdownBody{padding:16px;font-size:13px}}";
|
|
4605
|
+
const css$10 = ".IIa07q_documentSummary{grid-template-columns:.7fr .7fr 1.6fr;gap:12px;margin-bottom:12px;display:grid}.IIa07q_documentSummary article{border:.5px solid var(--mn-card-line);border-radius:var(--dsw-radius-lg);min-width:0;min-height:92px;padding:14px 16px}.IIa07q_documentSummary article>span{color:var(--mn-faint);font-size:12px;line-height:18px;display:block}.IIa07q_documentSummary article>strong{font-variant-numeric:tabular-nums;margin:4px 0 2px;font-size:20px;font-weight:500;line-height:28px;display:block}.IIa07q_documentSummary article>small{color:var(--mn-faint);font-size:12px;line-height:18px}.IIa07q_documentCapacity>div{background:var(--mn-fill);border-radius:999px;height:4px;margin:8px 0 6px;overflow:hidden}.IIa07q_documentCapacity>div i{border-radius:inherit;background:var(--dsw-alias-brand-primary);height:100%;transition:width .3s;display:block}.IIa07q_documentToolbar{border:.5px solid var(--mn-card-line);border-radius:var(--dsw-radius-lg);align-items:center;gap:8px;margin-bottom:12px;padding:8px;display:flex}.IIa07q_documentToolbar form{flex:1;align-items:center;gap:8px;min-width:260px;display:flex}.IIa07q_documentSearch{flex:1}.IIa07q_documentEditor input,.IIa07q_documentEditor textarea{border:.5px solid var(--mn-field-line);border-radius:var(--dsw-radius-md);width:100%;color:var(--mn-text);background:var(--mn-input);outline:0;padding:6px 10px;font-size:13px;line-height:20px}.IIa07q_documentEditor input:focus,.IIa07q_documentEditor textarea:focus{border-color:var(--mn-accent)}.IIa07q_documentToolbar>div{border-radius:var(--dsw-radius-md);background:var(--mn-hover);align-items:center;gap:2px;padding:3px;display:flex}.IIa07q_documentToolbar>div button{border-radius:var(--dsw-radius-sm);min-height:28px;color:var(--mn-muted);cursor:pointer;background:0 0;border:0;padding:0 12px;font-size:13px;font-weight:500;line-height:20px}.IIa07q_documentToolbar>div button:hover{color:var(--mn-text)}.IIa07q_documentToolbar>div button[data-active]{color:var(--mn-text);background:var(--mn-layer-1);box-shadow:var(--dsw-elevation-soft)}.IIa07q_documentToolbar>div b{color:var(--mn-faint);font-variant-numeric:tabular-nums;margin-left:6px;font-size:12px;font-weight:400}.IIa07q_documentWorkspace{grid-template-columns:minmax(250px,310px) minmax(0,1fr);gap:12px;min-height:590px;display:grid}.IIa07q_documentList,.IIa07q_documentReader{border:.5px solid var(--mn-card-line);border-radius:var(--dsw-radius-lg);min-width:0;overflow:hidden}.IIa07q_documentList{align-self:stretch}.IIa07q_documentList>header{border-bottom:.5px solid var(--mn-line);min-height:44px;color:var(--mn-faint);justify-content:space-between;align-items:center;padding:0 14px;font-size:12px;line-height:18px;display:flex}.IIa07q_documentList>header code{color:var(--mn-muted)}.IIa07q_documentList>button{--mn-provider-color:var(--mn-faint);border-radius:var(--dsw-radius-md);width:calc(100% - 12px);color:var(--mn-text);text-align:left;cursor:pointer;background:0 0;border:0;margin:6px 6px 0;padding:10px 12px;transition:background-color .15s;display:block}.IIa07q_documentList>button:hover{background:var(--mn-hover)}.IIa07q_documentList>button[data-selected]{background:var(--mn-fill)}.IIa07q_documentList>button>div{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.IIa07q_documentList>button strong{text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:500;line-height:20px;overflow:hidden}.IIa07q_documentList>button time{color:var(--mn-faint);font-variant-numeric:tabular-nums;flex:none;font-size:11px}.IIa07q_documentList>button p{color:var(--mn-faint);-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:4px 0 6px;font-size:12px;line-height:18px;display:-webkit-box;overflow:hidden}.IIa07q_documentList>button footer{color:var(--mn-faint);align-items:center;gap:8px;font-size:11px;line-height:16px;display:flex}.IIa07q_documentList>button footer code{margin-left:auto}.IIa07q_documentList>button footer em{color:var(--mn-danger);font-style:normal}.IIa07q_documentListEmpty{min-height:230px;color:var(--mn-muted);text-align:center;align-content:center;place-items:center;gap:4px;padding:24px;display:grid}.IIa07q_documentListEmpty>span{color:var(--mn-faint);margin-bottom:6px;font-size:24px;line-height:1}.IIa07q_documentListEmpty p{color:var(--mn-faint);margin:0;font-size:12px;line-height:18px}.IIa07q_documentReader{padding:clamp(16px,2vw,24px)}.IIa07q_documentReader>.IIa07q_emptyState{background:0 0;border:0;height:100%}.IIa07q_documentDetail>header{border-bottom:.5px solid var(--mn-line);justify-content:space-between;align-items:flex-start;gap:16px;padding-bottom:14px;display:flex}.IIa07q_documentDetail>header span{color:var(--mn-faint);font-size:12px;line-height:18px}.IIa07q_documentDetail>header h3{margin:2px 0;font-size:16px;font-weight:500;line-height:24px}.IIa07q_documentDetail>header p{color:var(--mn-faint);margin:0;font-size:12px;line-height:18px}.IIa07q_documentActions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.IIa07q_documentDetail>dl{border:.5px solid var(--mn-line);border-radius:var(--dsw-radius-md);grid-template-columns:2fr .45fr .8fr .55fr;margin:12px 0;display:grid;overflow:hidden}.IIa07q_documentDetail>dl>div{min-width:0;padding:8px 10px}.IIa07q_documentDetail>dl>div+div{border-left:.5px solid var(--mn-line)}.IIa07q_documentDetail dt{color:var(--mn-faint);margin-bottom:2px;font-size:11px;line-height:16px}.IIa07q_documentDetail dd{text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:12px;line-height:18px;overflow:hidden}.IIa07q_documentSources{flex-wrap:wrap;align-items:center;gap:6px;margin:12px 0;display:flex}.IIa07q_documentSources>span{color:var(--mn-faint);margin-right:4px;font-size:12px}.IIa07q_documentSources code,.IIa07q_documentArchiveReceipt code{color:var(--mn-muted);background:var(--mn-fill);border-radius:999px;padding:1px 8px;font-size:11px;line-height:17px}.IIa07q_markdownBody{overflow-wrap:anywhere;border:.5px solid var(--mn-line);border-radius:var(--dsw-radius-md);min-height:310px;color:var(--mn-text);margin:16px 0 0;padding:clamp(16px,2.5vw,28px);font-size:14px;line-height:1.75}.IIa07q_markdownBody>:first-child{margin-top:0}.IIa07q_markdownBody>:last-child{margin-bottom:0}.IIa07q_markdownBody h1,.IIa07q_markdownBody h2,.IIa07q_markdownBody h3,.IIa07q_markdownBody h4{color:var(--mn-text);margin:1.5em 0 .6em;font-weight:500;line-height:1.35}.IIa07q_markdownBody h1{border-bottom:.5px solid var(--mn-line);padding-bottom:.35em;font-size:1.6em}.IIa07q_markdownBody h2{border-bottom:.5px solid var(--mn-line);padding-bottom:.3em;font-size:1.35em}.IIa07q_markdownBody h3{font-size:1.15em}.IIa07q_markdownBody p,.IIa07q_markdownBody ul,.IIa07q_markdownBody ol,.IIa07q_markdownBody blockquote,.IIa07q_markdownBody table,.IIa07q_markdownBody pre{margin:.85em 0}.IIa07q_markdownBody ul,.IIa07q_markdownBody ol{padding-left:1.6em}.IIa07q_markdownBody li+li{margin-top:.3em}.IIa07q_markdownBody blockquote{border-left:2px solid var(--mn-line-strong);color:var(--mn-muted);margin-inline:0;padding:.1em 1em}.IIa07q_markdownBody code{border-radius:var(--dsw-radius-xs);color:var(--mn-text);background:var(--dsw-alias-markdown-inline-code,var(--mn-fill));font:.88em/1.55 var(--mn-code);padding:.15em .4em}.IIa07q_markdownBody pre{border-radius:var(--dsw-radius-md);background:var(--dsw-alias-markdown-code-block,var(--mn-fill));max-width:100%;padding:12px 16px;overflow:auto}.IIa07q_markdownBody pre code{background:0 0;padding:0;font-size:12px}.IIa07q_markdownBody a{color:var(--dsw-alias-link,var(--mn-accent));text-underline-offset:3px;text-decoration-thickness:1px}.IIa07q_markdownBody hr{border:0;border-top:.5px solid var(--mn-line);margin:1.8em 0}.IIa07q_markdownBody table{border-collapse:collapse;max-width:100%;display:block;overflow-x:auto}.IIa07q_markdownBody th,.IIa07q_markdownBody td{border:.5px solid var(--mn-line);text-align:left;vertical-align:top;padding:8px 10px}.IIa07q_markdownBody th{background:var(--mn-fill);font-weight:500}.IIa07q_markdownBody img{border-radius:var(--dsw-radius-sm);max-width:100%;height:auto}.IIa07q_documentArchiveReceipt{border-radius:var(--dsw-radius-md);background:color-mix(in srgb, var(--mn-success) 8%, transparent);margin:12px 0;padding:10px 12px}.IIa07q_documentArchiveReceipt p{color:var(--mn-muted);margin:2px 0 8px;font-size:12px;line-height:18px}.IIa07q_documentArchiveReceipt div{flex-wrap:wrap;gap:6px;display:flex}.IIa07q_documentDanger{border-top:.5px solid var(--mn-line);justify-content:flex-end;align-items:center;gap:8px;min-height:56px;margin-top:12px;padding-top:12px;display:flex}.IIa07q_documentDanger>div{margin-right:auto}.IIa07q_documentDanger strong{font-size:13px;font-weight:500;line-height:20px;display:block}.IIa07q_documentDanger p{color:var(--mn-faint);margin:2px 0 0;font-size:12px;line-height:18px}.IIa07q_documentDanger>span{color:var(--mn-danger);margin-right:auto;font-size:12px}.IIa07q_documentEditor{border:.5px solid var(--mn-card-line);border-radius:var(--dsw-radius-lg);margin-bottom:12px;padding:16px}.IIa07q_documentReader>.IIa07q_documentEditor{background:0 0;border:0;margin:0;padding:0}.IIa07q_documentEditor>header{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:12px;display:flex}.IIa07q_documentEditor h3{margin:0;font-size:14px;font-weight:500;line-height:22px}.IIa07q_documentEditor header p{color:var(--mn-faint);margin:2px 0 0;font-size:12px;line-height:18px}.IIa07q_documentEditor header>span,.IIa07q_documentEditor header>code{color:var(--mn-muted);background:var(--mn-fill);border-radius:999px;padding:1px 8px;font-size:11px;font-weight:500;line-height:17px}.IIa07q_documentEditor label{color:var(--mn-muted);gap:6px;margin-top:12px;font-size:12px;font-weight:500;line-height:18px;display:grid}.IIa07q_documentEditor textarea{resize:vertical;line-height:1.65}.IIa07q_documentEditorMeta{grid-template-columns:.8fr 1.2fr;gap:12px;display:grid}.IIa07q_documentEditorMeta label{margin:0}.IIa07q_documentEditor footer{justify-content:flex-end;gap:8px;margin-top:12px;display:flex}@media (width<=1000px){.IIa07q_documentWorkspace{grid-template-columns:minmax(220px,270px) minmax(0,1fr)}.IIa07q_documentDetail>dl{grid-template-columns:repeat(2,minmax(0,1fr))}.IIa07q_documentDetail>dl>div+div{border-left:0}.IIa07q_documentDetail>dl>div:nth-child(2n){border-left:.5px solid var(--mn-line)}.IIa07q_documentDetail>dl>div:nth-child(n+3){border-top:.5px solid var(--mn-line)}}@media (width<=760px){.IIa07q_documentSummary{grid-template-columns:repeat(2,minmax(0,1fr))}.IIa07q_documentCapacity{grid-column:1/-1}.IIa07q_documentToolbar{flex-direction:column;align-items:stretch}.IIa07q_documentToolbar form{min-width:0}.IIa07q_documentToolbar>div,.IIa07q_documentToolbar>button{width:100%}.IIa07q_documentToolbar>div button{flex:1}.IIa07q_documentWorkspace{grid-template-columns:1fr;min-height:0}.IIa07q_documentList{-webkit-overflow-scrolling:touch;max-height:330px;overflow:auto}.IIa07q_documentReader{min-height:430px}.IIa07q_documentEditorMeta{grid-template-columns:1fr}}@media (width<=520px){.IIa07q_documentDetail>header,.IIa07q_documentDanger{flex-direction:column;align-items:flex-start}.IIa07q_documentDetail>header>div:last-child,.IIa07q_documentDetail>header button{width:100%}.IIa07q_documentDanger>div,.IIa07q_documentDanger>span{margin-right:0}.IIa07q_documentDanger>button{width:100%}.IIa07q_documentDetail>dl{grid-template-columns:1fr}.IIa07q_documentDetail>dl>div:nth-child(2n){border-left:0}.IIa07q_documentDetail>dl>div+div{border-top:.5px solid var(--mn-line)}.IIa07q_markdownBody{padding:16px;font-size:13px}}";
|
|
4582
4606
|
const tagId$9 = "dsh-mnemon-source-documents/presentation/page.module.css";
|
|
4583
4607
|
if (typeof document !== "undefined") {
|
|
4584
4608
|
let tag = document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$9) + "]");
|
|
@@ -4590,6 +4614,7 @@ window.__ModuleLoader__.load({
|
|
|
4590
4614
|
if (tag.textContent !== css$10) tag.textContent = css$10;
|
|
4591
4615
|
}
|
|
4592
4616
|
var page_module_css_default$1 = {
|
|
4617
|
+
"documentActions": "IIa07q_documentActions",
|
|
4593
4618
|
"documentArchiveReceipt": "IIa07q_documentArchiveReceipt",
|
|
4594
4619
|
"documentCapacity": "IIa07q_documentCapacity",
|
|
4595
4620
|
"documentDanger": "IIa07q_documentDanger",
|
|
@@ -5167,6 +5192,7 @@ window.__ModuleLoader__.load({
|
|
|
5167
5192
|
field.input === "source-list" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SourceChoice, {
|
|
5168
5193
|
field,
|
|
5169
5194
|
value,
|
|
5195
|
+
defaultAll: entry.typeId === "scoped" && field.key === "sourceKeys",
|
|
5170
5196
|
sources: props.dashboard.sources,
|
|
5171
5197
|
name: sourceName,
|
|
5172
5198
|
labelledBy: `${control}-label`,
|
|
@@ -5211,6 +5237,7 @@ window.__ModuleLoader__.load({
|
|
|
5211
5237
|
t,
|
|
5212
5238
|
onDiscard: () => setDraft(initial(entry)),
|
|
5213
5239
|
onApply: () => {
|
|
5240
|
+
if (entry.typeId === "scoped" && Array.isArray(config.sourceKeys) && config.sourceKeys.length === 0 && !window.confirm(t("options.emptySourcesConfirm"))) return;
|
|
5214
5241
|
props.onApply(config);
|
|
5215
5242
|
}
|
|
5216
5243
|
})]
|
|
@@ -5220,9 +5247,15 @@ window.__ModuleLoader__.load({
|
|
|
5220
5247
|
function SourceChoice(props) {
|
|
5221
5248
|
const { field, value, t } = props;
|
|
5222
5249
|
const eligible = props.sources.filter((source) => field.sourceRoles === void 0 || field.sourceRoles.length === 0 || field.sourceRoles.includes(source.role));
|
|
5223
|
-
const
|
|
5250
|
+
const defaultRoles = [
|
|
5251
|
+
"working-context",
|
|
5252
|
+
"narrative",
|
|
5253
|
+
"durable-evidence"
|
|
5254
|
+
];
|
|
5255
|
+
const selected = !value.own && props.defaultAll ? eligible.filter((source) => defaultRoles.includes(source.role)).sort((a, b) => defaultRoles.indexOf(a.role) - defaultRoles.indexOf(b.role) || a.sourceInstanceKey.localeCompare(b.sourceInstanceKey)).map((source) => source.sourceInstanceKey) : value.sources;
|
|
5256
|
+
const missing = selected.filter((key) => !eligible.some((source) => source.sourceInstanceKey === key));
|
|
5224
5257
|
const several = (sourceTypeId) => eligible.filter((source) => source.sourceTypeId === sourceTypeId).length > 1;
|
|
5225
|
-
const toggle = (key, on) => props.onChange(on ? [...
|
|
5258
|
+
const toggle = (key, on) => props.onChange(on ? [...selected, key] : selected.filter((item) => item !== key));
|
|
5226
5259
|
if (eligible.length === 0 && missing.length === 0) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
5227
5260
|
className: MnemonSettingsCard_module_css_default.optionEmpty,
|
|
5228
5261
|
children: t("options.noSources")
|
|
@@ -5234,7 +5267,7 @@ window.__ModuleLoader__.load({
|
|
|
5234
5267
|
children: [eligible.map((source) => {
|
|
5235
5268
|
const label = props.name(source.sourceTypeId, source.label);
|
|
5236
5269
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Checkbox, {
|
|
5237
|
-
checked:
|
|
5270
|
+
checked: selected.includes(source.sourceInstanceKey),
|
|
5238
5271
|
disabled: props.disabled,
|
|
5239
5272
|
label: several(source.sourceTypeId) ? `${label} · ${source.sourceInstanceKey}` : label,
|
|
5240
5273
|
onChange: (on) => toggle(source.sourceInstanceKey, on)
|
|
@@ -12032,6 +12065,17 @@ window.__ModuleLoader__.load({
|
|
|
12032
12065
|
integer: true
|
|
12033
12066
|
}
|
|
12034
12067
|
];
|
|
12068
|
+
const DRAFT_PARAMETERS = [{
|
|
12069
|
+
key: "draftMaxTokens",
|
|
12070
|
+
min: 128,
|
|
12071
|
+
max: 131072,
|
|
12072
|
+
integer: true
|
|
12073
|
+
}, {
|
|
12074
|
+
key: "draftRetryMaxTokens",
|
|
12075
|
+
min: 128,
|
|
12076
|
+
max: 131072,
|
|
12077
|
+
integer: true
|
|
12078
|
+
}];
|
|
12035
12079
|
/** The value a parameter stores, or undefined when the Host would refuse it. */
|
|
12036
12080
|
function parameterValue(field, text) {
|
|
12037
12081
|
if (text.trim() === "") return void 0;
|
|
@@ -12072,8 +12116,16 @@ window.__ModuleLoader__.load({
|
|
|
12072
12116
|
const changed = PARAMETERS.filter((field) => parameterValue(field, draft[field.key]) !== saved[field.key]);
|
|
12073
12117
|
if (changed.length > 0) await scope.mutate(changed.map((field) => set(field.key, parameterValue(field, draft[field.key]))));
|
|
12074
12118
|
});
|
|
12119
|
+
const draftBudgets = useStaged({
|
|
12120
|
+
draftMaxTokens: String(saved.draftMaxTokens),
|
|
12121
|
+
draftRetryMaxTokens: String(saved.draftRetryMaxTokens)
|
|
12122
|
+
}, async (draft) => {
|
|
12123
|
+
const changed = DRAFT_PARAMETERS.filter((field) => parameterValue(field, draft[field.key]) !== saved[field.key]);
|
|
12124
|
+
if (changed.length > 0) await scope.mutate(changed.map((field) => set(field.key, parameterValue(field, draft[field.key]))));
|
|
12125
|
+
});
|
|
12075
12126
|
const disabled = !page.writable || snapshot.status === "loading" || !snapshot.writable;
|
|
12076
12127
|
const invalid = PARAMETERS.find((field) => parameterValue(field, parameters.draft[field.key]) === void 0);
|
|
12128
|
+
const invalidDraft = DRAFT_PARAMETERS.find((field) => parameterValue(field, draftBudgets.draft[field.key]) === void 0);
|
|
12077
12129
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
|
|
12078
12130
|
className: MnemonSettingsCard_module_css_default.panelSection,
|
|
12079
12131
|
"aria-label": t("skills.label"),
|
|
@@ -12133,6 +12185,47 @@ window.__ModuleLoader__.load({
|
|
|
12133
12185
|
destination.apply();
|
|
12134
12186
|
}
|
|
12135
12187
|
}),
|
|
12188
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("details", {
|
|
12189
|
+
className: MnemonSettingsCard_module_css_default.advanced,
|
|
12190
|
+
children: [
|
|
12191
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("summary", { children: [t("skills.draftGeneration"), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronDownOutlineRegular, { size: 12 })] }),
|
|
12192
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
12193
|
+
className: MnemonSettingsCard_module_css_default.panelNote,
|
|
12194
|
+
children: t("skills.draftBudgetHint")
|
|
12195
|
+
}),
|
|
12196
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
12197
|
+
className: MnemonSettingsCard_module_css_default.fieldGrid,
|
|
12198
|
+
children: DRAFT_PARAMETERS.map((field) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", { children: [t(`skills.${field.key}`), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
12199
|
+
type: "number",
|
|
12200
|
+
step: 1,
|
|
12201
|
+
min: field.min,
|
|
12202
|
+
max: field.max,
|
|
12203
|
+
inputMode: "numeric",
|
|
12204
|
+
value: draftBudgets.draft[field.key],
|
|
12205
|
+
disabled: disabled || draftBudgets.saving,
|
|
12206
|
+
"aria-invalid": parameterValue(field, draftBudgets.draft[field.key]) === void 0,
|
|
12207
|
+
onChange: (event) => draftBudgets.edit({ [field.key]: event.target.value })
|
|
12208
|
+
})] }, field.key))
|
|
12209
|
+
}),
|
|
12210
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(PanelActions, {
|
|
12211
|
+
dirty: draftBudgets.dirty,
|
|
12212
|
+
saving: draftBudgets.saving,
|
|
12213
|
+
applied: draftBudgets.applied,
|
|
12214
|
+
failed: draftBudgets.failed,
|
|
12215
|
+
disabled,
|
|
12216
|
+
t,
|
|
12217
|
+
invalid: invalidDraft === void 0 ? null : t("skills.invalid", {
|
|
12218
|
+
field: t(`skills.${invalidDraft.key}`),
|
|
12219
|
+
min: invalidDraft.min,
|
|
12220
|
+
max: invalidDraft.max
|
|
12221
|
+
}),
|
|
12222
|
+
onDiscard: draftBudgets.discard,
|
|
12223
|
+
onApply: () => {
|
|
12224
|
+
draftBudgets.apply();
|
|
12225
|
+
}
|
|
12226
|
+
})
|
|
12227
|
+
]
|
|
12228
|
+
}),
|
|
12136
12229
|
evolution.value && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ToggleRow, {
|
|
12137
12230
|
id: "mnemon-skills-backtest",
|
|
12138
12231
|
label: t("skills.autoBacktest"),
|