@deepseek-insight/dsi 0.5.23 → 0.5.25
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/.agents/skills/dsi-adr/SKILL.md +3 -3
- package/.agents/skills/dsi-ov-setup/SKILL.md +6 -1
- package/.agents/skills/dsi-skill-shelf/SKILL.md +46 -0
- package/.agents/skills/dsi-skill-shelf/shelf.mjs +511 -0
- package/.agents/skills/dsi-spec/SKILL.md +4 -4
- package/.agents/skills/dsi-spec/references/tasks-json-template.md +1 -1
- package/README.md +1 -1
- package/build/client/_app/immutable/assets/0.DoqT6ojN.css +2 -0
- package/build/client/_app/immutable/assets/2.DqAZaZ6x.css +1 -0
- package/build/client/_app/immutable/chunks/C1BIbywb.js +1 -0
- package/build/client/_app/immutable/chunks/CN_lPpCU.js +1 -0
- package/build/client/_app/immutable/chunks/{zBRTraNY.js → CT33sMmw.js} +1 -1
- package/build/client/_app/immutable/chunks/{BK-h1DVi.js → DEg6k2po.js} +1 -1
- package/build/client/_app/immutable/chunks/QV2fW_C7.js +2 -0
- package/build/client/_app/immutable/entry/{app.DZJij6sK.js → app.CkwTkkSM.js} +2 -2
- package/build/client/_app/immutable/entry/start.DxUGjIjy.js +1 -0
- package/build/client/_app/immutable/nodes/{0.DfmjWWCy.js → 0.DlNmLZ8S.js} +1 -1
- package/build/client/_app/immutable/nodes/1.8K25GLCS.js +1 -0
- package/build/client/_app/immutable/nodes/2.CZgpKf5S.js +171 -0
- package/build/client/_app/version.json +1 -1
- package/build/handler.js +4 -4
- package/build/index.js +4 -4
- package/build/server/chunks/chunks/{app-config.svelte.js-DX-xENzY.js → app-config.svelte.js-F-U5xz0r.js} +22 -3
- package/build/server/chunks/chunks/{db.js-DUiYPVrk.js → db.js-CSrMZzws.js} +2 -2
- package/build/server/chunks/chunks/{db2.js-B2wnWJ5y.js → db2.js-B9P1MuEl.js} +8 -6
- package/build/server/chunks/chunks/{dsh-connection.js-DLLvHgxn.js → dsh-connection.js-DjwmUFoE.js} +2 -2
- package/build/server/chunks/chunks/engine.js-DzJkajy7.js +90 -0
- package/build/server/chunks/chunks/{git-probe.js-CNhqEFLP.js → git-probe.js-BGOqAXVt.js} +2 -2
- package/build/server/chunks/chunks/{insight-config.js-BgiNeS6f.js → insight-config.js-CmCFt2Kp.js} +2 -2
- package/build/server/chunks/chunks/{internal.js-B0UDNidS.js → internal.js-1R9PHQNf.js} +3 -3
- package/build/server/chunks/chunks/{state.js-DrMw856z.js → state.js-vRL4xZQO.js} +163 -3
- package/build/server/chunks/chunks/{watcher.js-DMNZ6PC_.js → watcher.js-CuX0WU5B.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/a2a/_id_/{_server.ts.js-BFZR8uHn.js → _server.ts.js-BGuC49gg.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/a2a/{_server.ts.js-BgqhjoUU.js → _server.ts.js-BVH1ToLe.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/a2a/register/{_server.ts.js-CLVptu9i.js → _server.ts.js-a85F1GOf.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/config/{_server.ts.js-D8M_XizI.js → _server.ts.js-CBq4bRig.js} +17 -4
- package/build/server/chunks/entries/endpoints/api/dsh/directory/{_server.ts.js-DS8L3_Bt.js → _server.ts.js-BpQX_N7Q.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/pick-directory/{_server.ts.js-BUEokCIX.js → _server.ts.js-eYQQnSgq.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/presets/{_server.ts.js-lLG8ls0C.js → _server.ts.js-vOFZ1siq.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/attachment/{_server.ts.js-BSenSXeg.js → _server.ts.js-D2tytVhM.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/cancel/{_server.ts.js-DCXKkJ0v.js → _server.ts.js-BEn9Ta_U.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/catalog/{_server.ts.js-BED7HhEP.js → _server.ts.js-ZfOtq-D3.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/command/{_server.ts.js-Bg8nHHOZ.js → _server.ts.js-BmJbICbR.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/events/{_server.ts.js-Dyo678sQ.js → _server.ts.js-gsaVQwiM.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/fork/{_server.ts.js-Bo1MLZzv.js → _server.ts.js-Dn0v3kPL.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/goal/{_server.ts.js-B5hEmzA3.js → _server.ts.js-3y0ufVj_.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/history/{_server.ts.js-B0YMraSe.js → _server.ts.js-CLe_Yd9T.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/models/{_server.ts.js-B7E_ugh9.js → _server.ts.js-Reg3sATn.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/path/{_server.ts.js-CpSm33QW.js → _server.ts.js-Der7_1Gf.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/permission/{_server.ts.js-qX_48Xfk.js → _server.ts.js-B0F4vS5A.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/prompt/{_server.ts.js-BmMx7VT-.js → _server.ts.js-DLlAJ59P.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/rename/{_server.ts.js-D9WGgQkP.js → _server.ts.js-cxdpHzTp.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/respond/{_server.ts.js-JNQ1THCO.js → _server.ts.js-Bdymup3B.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/select-model/{_server.ts.js-CyYEK2YZ.js → _server.ts.js-13DIGKaK.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/sessions/{_server.ts.js-9teKQw8I.js → _server.ts.js-ChqfgswA.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/workspace-file/{_server.ts.js-D0EtJceT.js → _server.ts.js-CT8DKYFX.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/workspace-file-bytes/{_server.ts.js-DVBe8VFL.js → _server.ts.js-DY-EoPi1.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/workspace-tree/{_server.ts.js-_ICn-AJI.js → _server.ts.js-D4tdFfjX.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/workspaces/{_server.ts.js-deEnJXis.js → _server.ts.js-BUcBfYnX.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/workspaces/_workspaceId_/delete/{_server.ts.js-C99S7qPG.js → _server.ts.js-CunmEcMs.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/workspaces/_workspaceId_/rename/{_server.ts.js-DIbV5U-C.js → _server.ts.js-CmGqWlUy.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/prompts/_id_/{_server.ts.js-C9sx5xeq.js → _server.ts.js-DMyDOvrX.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/prompts/{_server.ts.js-BQN2GfYg.js → _server.ts.js-BS2wQOe7.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/prompts/use/{_server.ts.js-Ya8ewOIo.js → _server.ts.js-5-lf15sG.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/settings/{_server.ts.js-Dtq_vXJc.js → _server.ts.js-PDRzWcsI.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/skills/install/_server.ts.js-Dvoz59-b.js +47 -0
- package/build/server/chunks/entries/endpoints/api/skills/reload/_server.ts.js-fUUcvsn3.js +33 -0
- package/build/server/chunks/entries/endpoints/api/skills/snapshot/_server.ts.js-C4AvWpBK.js +37 -0
- package/build/server/chunks/entries/endpoints/api/skills/uninstall/_server.ts.js-qqFlorKD.js +47 -0
- package/build/server/chunks/entries/endpoints/api/skills/voice/_server.ts.js-yiGBLufB.js +72 -0
- package/build/server/chunks/entries/endpoints/api/workspace/file-write/{_server.ts.js-DptPqI-s.js → _server.ts.js-COt-HtL0.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/workspace/git-events/{_server.ts.js-B4C7kLHl.js → _server.ts.js-k7bgOO_c.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/workspace/git-file-head/{_server.ts.js-Db9JKnPM.js → _server.ts.js-H1HUbRif.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/workspace/git-map/{_server.ts.js-C8gzgR2I.js → _server.ts.js-D7nqciP7.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/workspace/git-status/{_server.ts.js-BIlHfNA_.js → _server.ts.js-D0HYWO9M.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/workspace/write-gate/{_server.ts.js-DRza8q_m.js → _server.ts.js-Boi1Sn8U.js} +4 -4
- package/build/server/chunks/entries/pages/_error.svelte.js-CtYKjJrf.js +43 -0
- package/build/server/chunks/entries/pages/{_page.server.ts.js-BOFnfJKx.js → _page.server.ts.js-DdzOMHcO.js} +2 -2
- package/build/server/chunks/entries/pages/{_page.svelte.js-Dxu75cnC.js → _page.svelte.js-CZV29jqi.js} +10234 -3366
- package/build/server/chunks/{handler-B-Fvi1qq.js → handler-BcFykRDA.js} +3 -3
- package/build/server/chunks/{index.js-BYyPBZCU.js → index.js-CYc5jGBw.js} +2 -2
- package/build/server/chunks/{manifest.js-CLvln8Eh.js → manifest.js-CgPn3jEA.js} +79 -44
- package/build/server/chunks/nodes/{0.js-CLm26i36.js → 0.js-DO4F8XMq.js} +3 -3
- package/build/server/chunks/nodes/1.js-B3lmNFSp.js +9 -0
- package/build/server/chunks/nodes/{2.js-Df_9OZ2w.js → 2.js-DVa5udLN.js} +7 -7
- package/package.json +1 -1
- package/template/.dsi/prompts.sqlite +0 -0
- package/template/.dsi/resources/skills-reff.md +8 -0
- package/template/.dsi/settings.yaml +1 -1
- package/build/client/_app/immutable/assets/0.C4pk9RsQ.css +0 -2
- package/build/client/_app/immutable/assets/2.DRj7JwRK.css +0 -1
- package/build/client/_app/immutable/chunks/BD47c-Nx.js +0 -2
- package/build/client/_app/immutable/chunks/BvetR65G.js +0 -1
- package/build/client/_app/immutable/chunks/D_8LgB4D.js +0 -1
- package/build/client/_app/immutable/entry/start.BtqJRCaq.js +0 -1
- package/build/client/_app/immutable/nodes/1.C4UQ0qXb.js +0 -1
- package/build/client/_app/immutable/nodes/2.CegDqn2t.js +0 -171
- package/build/server/chunks/entries/pages/_error.svelte.js-DvbfENo8.js +0 -203
- package/build/server/chunks/nodes/1.js-D4qLtt_-.js +0 -9
- package/template/.dsi/prompts.sqlite-shm +0 -0
- package/template/.dsi/prompts.sqlite-wal +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"1790074132758"}
|
package/build/handler.js
CHANGED
|
@@ -2,9 +2,9 @@ import './shims.js';
|
|
|
2
2
|
import 'node:fs';
|
|
3
3
|
import 'node:path';
|
|
4
4
|
import 'node:process';
|
|
5
|
-
export { h as handler } from './server/chunks/handler-
|
|
6
|
-
import './server/chunks/index.js-
|
|
7
|
-
import './server/chunks/manifest.js-
|
|
5
|
+
export { h as handler } from './server/chunks/handler-BcFykRDA.js';
|
|
6
|
+
import './server/chunks/index.js-CYc5jGBw.js';
|
|
7
|
+
import './server/chunks/manifest.js-CgPn3jEA.js';
|
|
8
8
|
import './env.js';
|
|
9
9
|
import 'node:buffer';
|
|
10
10
|
import 'node:crypto';
|
|
@@ -16,7 +16,7 @@ import './server/chunks/chunks/shared.js-HQ0rfhm4.js';
|
|
|
16
16
|
import './server/chunks/chunks/uneval.js-BJ9Qq2SF.js';
|
|
17
17
|
import './server/chunks/chunks/utils.js-CAdNO8Tu.js';
|
|
18
18
|
import 'node:url';
|
|
19
|
-
import './server/chunks/chunks/internal.js-
|
|
19
|
+
import './server/chunks/chunks/internal.js-1R9PHQNf.js';
|
|
20
20
|
import './server/chunks/chunks/server.js-11-pxAWV.js';
|
|
21
21
|
import './server/chunks/chunks/internal2.js-BcS47nI-.js';
|
|
22
22
|
import './server/chunks/chunks/exports.js-DH_tjtdv.js';
|
package/build/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import http from 'node:http';
|
|
2
2
|
import fs__default from 'node:fs';
|
|
3
3
|
import process from 'node:process';
|
|
4
|
-
import { p as polka, h as handler, f as format_listening_address } from './server/chunks/handler-
|
|
4
|
+
import { p as polka, h as handler, f as format_listening_address } from './server/chunks/handler-BcFykRDA.js';
|
|
5
5
|
import { env, timeout_env } from './env.js';
|
|
6
6
|
import { rm } from 'node:fs/promises';
|
|
7
7
|
import './shims.js';
|
|
@@ -14,12 +14,12 @@ import 'node:stream';
|
|
|
14
14
|
import './server/chunks/chunks/shared.js-HQ0rfhm4.js';
|
|
15
15
|
import './server/chunks/chunks/uneval.js-BJ9Qq2SF.js';
|
|
16
16
|
import './server/chunks/chunks/utils.js-CAdNO8Tu.js';
|
|
17
|
-
import './server/chunks/index.js-
|
|
18
|
-
import './server/chunks/chunks/internal.js-
|
|
17
|
+
import './server/chunks/index.js-CYc5jGBw.js';
|
|
18
|
+
import './server/chunks/chunks/internal.js-1R9PHQNf.js';
|
|
19
19
|
import './server/chunks/chunks/server.js-11-pxAWV.js';
|
|
20
20
|
import './server/chunks/chunks/internal2.js-BcS47nI-.js';
|
|
21
21
|
import './server/chunks/chunks/exports.js-DH_tjtdv.js';
|
|
22
|
-
import './server/chunks/manifest.js-
|
|
22
|
+
import './server/chunks/manifest.js-CgPn3jEA.js';
|
|
23
23
|
import 'node:url';
|
|
24
24
|
|
|
25
25
|
const path = env('SOCKET_PATH', false);
|
|
@@ -57,6 +57,22 @@ function isValidTagWord(word) {
|
|
|
57
57
|
return TAG_PATTERN.test(word);
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
|
+
* Split free-form tag input into normalized tag words: split on any run of
|
|
61
|
+
* whitespace, comma, or semicolon; lowercase; dedupe; drop words that fail
|
|
62
|
+
* the grammar. Empty input returns []. Mirrors parseTagWords server-side.
|
|
63
|
+
*/
|
|
64
|
+
function parseTagWords(input) {
|
|
65
|
+
const seen = /* @__PURE__ */ new Set();
|
|
66
|
+
const words = [];
|
|
67
|
+
for (const frag of input.split(/[\s,;]+/)) {
|
|
68
|
+
const word = frag.trim().toLowerCase();
|
|
69
|
+
if (!word || seen.has(word) || !TAG_PATTERN.test(word)) continue;
|
|
70
|
+
seen.add(word);
|
|
71
|
+
words.push(word);
|
|
72
|
+
}
|
|
73
|
+
return words;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
60
76
|
* Should this sent text be recorded (use-count upsert)? Plain prompts
|
|
61
77
|
* only — slash commands, @mentions, and "."-, "?"- or "!"-prefixed lines
|
|
62
78
|
* are control traffic and never touch the ledger.
|
|
@@ -289,7 +305,10 @@ function freshDefault() {
|
|
|
289
305
|
maxWidth: 500,
|
|
290
306
|
placement: DEFAULT_SIDEBAR_PLACEMENT
|
|
291
307
|
},
|
|
292
|
-
prompts: {
|
|
308
|
+
prompts: {
|
|
309
|
+
tags: [...DEFAULT_PROMPT_TAGS],
|
|
310
|
+
dbPath: ""
|
|
311
|
+
},
|
|
293
312
|
settingsHomes: {
|
|
294
313
|
dsi: "~/.dsi",
|
|
295
314
|
dsh: "~/.dsh"
|
|
@@ -305,5 +324,5 @@ function appConfig() {
|
|
|
305
324
|
return config;
|
|
306
325
|
}
|
|
307
326
|
|
|
308
|
-
export { appConfig as a,
|
|
309
|
-
//# sourceMappingURL=app-config.svelte.js-
|
|
327
|
+
export { appConfig as a, textPreviewOf as b, shouldRecordPrompt as c, parseTagWords as d, getTrigger as g, isValidTagWord as i, previewSegments as p, searchKey as s, triggerMode as t };
|
|
328
|
+
//# sourceMappingURL=app-config.svelte.js-F-U5xz0r.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as DSI_CONFIG_PATH } from './insight-config.js-
|
|
1
|
+
import { D as DSI_CONFIG_PATH } from './insight-config.js-CmCFt2Kp.js';
|
|
2
2
|
import { mkdirSync } from 'node:fs';
|
|
3
3
|
import { dirname, join } from 'node:path';
|
|
4
4
|
import { DatabaseSync } from 'node:sqlite';
|
|
@@ -117,4 +117,4 @@ function pruneTerminalBefore(cutoffMs, db = openA2aDb()) {
|
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
export { listRecent as a, getRow as g, insertWaiting as i, listWaiting as l, openA2aDb as o, pruneTerminalBefore as p, settleRow as s };
|
|
120
|
-
//# sourceMappingURL=db.js-
|
|
120
|
+
//# sourceMappingURL=db.js-CSrMZzws.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as readPromptsConfig, D as DSI_CONFIG_PATH, j as joinTagWords, p as parseTagWords } from './insight-config.js-CmCFt2Kp.js';
|
|
2
2
|
import { mkdirSync } from 'node:fs';
|
|
3
|
-
import {
|
|
3
|
+
import { join, dirname } from 'node:path';
|
|
4
4
|
import { DatabaseSync } from 'node:sqlite';
|
|
5
5
|
import { homedir } from 'node:os';
|
|
6
6
|
|
|
@@ -644,7 +644,9 @@ var SORT_MAP = {
|
|
|
644
644
|
}
|
|
645
645
|
};
|
|
646
646
|
/**
|
|
647
|
-
* List prompts for the manager (ADR E4). Supports optional
|
|
647
|
+
* List prompts for the manager (ADR E4). Supports optional contains
|
|
648
|
+
* filter (substring match on label/text — mid-string words like the
|
|
649
|
+
* `coverage` of `pnpm test:coverage` now hit), sort, and offset paging.
|
|
648
650
|
* sort, and offset paging. Returns rows + total count (for cap-footer UX).
|
|
649
651
|
*/
|
|
650
652
|
function listPrompts(opts) {
|
|
@@ -665,7 +667,7 @@ function listPrompts(opts) {
|
|
|
665
667
|
const qCond = "(label LIKE ? ESCAPE '\\' OR text LIKE ? ESCAPE '\\')";
|
|
666
668
|
try {
|
|
667
669
|
if (q) {
|
|
668
|
-
const like =
|
|
670
|
+
const like = `%${escLike(q)}%`;
|
|
669
671
|
const where = [qCond, ...tagConds].join(" AND ");
|
|
670
672
|
return {
|
|
671
673
|
rows: db.prepare(`SELECT ${SELECT_COLS} FROM prompts
|
|
@@ -773,5 +775,5 @@ function updatePrompt(id, fields) {
|
|
|
773
775
|
}
|
|
774
776
|
}
|
|
775
777
|
|
|
776
|
-
export { countPromptUse as a, createPrompt as c, deletePrompt as d, listPrompts as l,
|
|
777
|
-
//# sourceMappingURL=db2.js-
|
|
778
|
+
export { countPromptUse as a, renamePromptLabel as b, createPrompt as c, deletePrompt as d, listPrompts as l, resolvePromptsDbPath as r, searchPrompts as s, updatePrompt as u };
|
|
779
|
+
//# sourceMappingURL=db2.js-B9P1MuEl.js.map
|
package/build/server/chunks/chunks/{dsh-connection.js-DLLvHgxn.js → dsh-connection.js-DjwmUFoE.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { q as dshBaseUrl } from './config.js-BvW5LrfQ.js';
|
|
2
|
-
import { r as readDshPresetEnglishConfig, a as readDshAuthConfig, b as readServerConfig } from './insight-config.js-
|
|
2
|
+
import { r as readDshPresetEnglishConfig, a as readDshAuthConfig, b as readServerConfig } from './insight-config.js-CmCFt2Kp.js';
|
|
3
3
|
|
|
4
4
|
//#region src/lib/server/dsh-rpc.ts
|
|
5
5
|
/**
|
|
@@ -2014,4 +2014,4 @@ function normalizePreset(row, overlayEnglish = true) {
|
|
|
2014
2014
|
}
|
|
2015
2015
|
|
|
2016
2016
|
export { DshRpcError as D, isPromptImageMediaType as a, buildPromptContent as b, getDshConnection as g, isSubagentRejection as i, mapRpcFailure as m, statusFor as s };
|
|
2017
|
-
//# sourceMappingURL=dsh-connection.js-
|
|
2017
|
+
//# sourceMappingURL=dsh-connection.js-DjwmUFoE.js.map
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { existsSync } from 'node:fs';
|
|
2
|
+
import { join } from 'node:path';
|
|
3
|
+
import { homedir } from 'node:os';
|
|
4
|
+
import { execFile } from 'node:child_process';
|
|
5
|
+
import { promisify } from 'node:util';
|
|
6
|
+
|
|
7
|
+
//#region src/lib/server/skills/types.ts
|
|
8
|
+
var EngineMissingError = class extends Error {
|
|
9
|
+
enginePath;
|
|
10
|
+
constructor(enginePath) {
|
|
11
|
+
super("shelf engine not found: " + enginePath);
|
|
12
|
+
this.name = "EngineMissingError";
|
|
13
|
+
this.enginePath = enginePath;
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
var EngineFailedError = class extends Error {
|
|
17
|
+
payload;
|
|
18
|
+
constructor(message, payload) {
|
|
19
|
+
super(message);
|
|
20
|
+
this.name = "EngineFailedError";
|
|
21
|
+
this.payload = payload;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
/** Uninstallable = on disk AND signed (ADR D5 control matrix). */
|
|
25
|
+
function uninstallableIds(snapshot) {
|
|
26
|
+
return snapshot.sources.flatMap((s) => s.skills.filter((k) => k.installed && k.signed).map((k) => k.id));
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region src/lib/server/skills/engine.ts
|
|
30
|
+
var execFileP = promisify(execFile);
|
|
31
|
+
var ENGINE_TIMEOUT_MS = 12e4;
|
|
32
|
+
function defaultEnginePath() {
|
|
33
|
+
return process.env.SHELF_ENGINE_PATH || join(homedir(), ".agents/skills/dsi-skill-shelf/shelf.mjs");
|
|
34
|
+
}
|
|
35
|
+
/** Test seam: override to stub the engine process. */
|
|
36
|
+
var runner = async (enginePath, args) => {
|
|
37
|
+
const { stdout } = await execFileP("node", [enginePath, ...args], {
|
|
38
|
+
timeout: ENGINE_TIMEOUT_MS,
|
|
39
|
+
maxBuffer: 33554432
|
|
40
|
+
});
|
|
41
|
+
return stdout;
|
|
42
|
+
};
|
|
43
|
+
async function run(args) {
|
|
44
|
+
const enginePath = defaultEnginePath();
|
|
45
|
+
if (!existsSync(enginePath)) throw new EngineMissingError(enginePath);
|
|
46
|
+
let stdout;
|
|
47
|
+
try {
|
|
48
|
+
stdout = await runner(enginePath, args);
|
|
49
|
+
} catch (err) {
|
|
50
|
+
const e = err;
|
|
51
|
+
if (e.killed) throw new EngineFailedError("shelf engine timed out after 120000ms", null);
|
|
52
|
+
throw new EngineFailedError(String(e.message ?? e), null);
|
|
53
|
+
}
|
|
54
|
+
let payload;
|
|
55
|
+
try {
|
|
56
|
+
payload = JSON.parse(stdout);
|
|
57
|
+
} catch {
|
|
58
|
+
throw new EngineFailedError("shelf engine emitted non-JSON output", null);
|
|
59
|
+
}
|
|
60
|
+
if (payload.v !== 1) throw new EngineFailedError("shelf engine wire version mismatch: v=" + payload.v, payload);
|
|
61
|
+
return payload;
|
|
62
|
+
}
|
|
63
|
+
function getEngine() {
|
|
64
|
+
return {
|
|
65
|
+
async snapshotStatus() {
|
|
66
|
+
const p = await run(["snapshot-status"]);
|
|
67
|
+
return { present: Boolean(p.present) };
|
|
68
|
+
},
|
|
69
|
+
async refresh(reload) {
|
|
70
|
+
const p = await run(reload ? ["refresh", "--reload"] : ["refresh"]);
|
|
71
|
+
if (!p.ok || !p.snapshot) throw new EngineFailedError("refresh failed", p);
|
|
72
|
+
return {
|
|
73
|
+
snapshot: p.snapshot,
|
|
74
|
+
reused: Boolean(p.reused)
|
|
75
|
+
};
|
|
76
|
+
},
|
|
77
|
+
async apply(action, targets) {
|
|
78
|
+
const p = await run([
|
|
79
|
+
"apply",
|
|
80
|
+
action,
|
|
81
|
+
...targets
|
|
82
|
+
]);
|
|
83
|
+
if (!p.results) throw new EngineFailedError("apply returned no results", p);
|
|
84
|
+
return p.results;
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export { EngineMissingError as E, EngineFailedError as a, getEngine as g, uninstallableIds as u };
|
|
90
|
+
//# sourceMappingURL=engine.js-DzJkajy7.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getDshConnection } from './dsh-connection.js-
|
|
1
|
+
import { g as getDshConnection } from './dsh-connection.js-DjwmUFoE.js';
|
|
2
2
|
import { h as historyToEvents } from './dsh-events.js-DEZgATm-.js';
|
|
3
3
|
import { a as foldKnobs, f as filterKnobEvents, F as FULL_ACCESS_PRESET } from './permission-state.js-B7UpAHBv.js';
|
|
4
4
|
import { promises } from 'node:fs';
|
|
@@ -216,4 +216,4 @@ async function gitStatus(repo) {
|
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
export { GitUnavailableError as G, gitStatus as a, gitFileHead as b, detectRepos as d, gitGateEnabled as g, isInsideRoot as i, parsePorcelainStatus as p, resolveEnclosingRepo as r };
|
|
219
|
-
//# sourceMappingURL=git-probe.js-
|
|
219
|
+
//# sourceMappingURL=git-probe.js-BGOqAXVt.js.map
|
package/build/server/chunks/chunks/{insight-config.js-BgiNeS6f.js → insight-config.js-CmCFt2Kp.js}
RENAMED
|
@@ -278,5 +278,5 @@ function readSettingsHomes() {
|
|
|
278
278
|
};
|
|
279
279
|
}
|
|
280
280
|
|
|
281
|
-
export { DSI_CONFIG_PATH as D, readDshAuthConfig as a, readServerConfig as b, readA2aConfig as c,
|
|
282
|
-
//# sourceMappingURL=insight-config.js-
|
|
281
|
+
export { DSI_CONFIG_PATH as D, readDshAuthConfig as a, readServerConfig as b, readA2aConfig as c, readPromptsConfig as d, readSettingsHomes as e, readSidebarConfig as f, readPanelConfig as g, readHomeConfig as h, readConversationConfig as i, joinTagWords as j, readChatConfig as k, readDshSessionsRootConfig as l, isValidTagWord as m, DEFAULT_DSH_PRESET_ENGLISH as n, DEFAULT_SERVER_CONFIG as o, parseTagWords as p, DEFAULT_PROMPTS_CONFIG as q, readDshPresetEnglishConfig as r, DEFAULT_SIDEBAR_CONFIG as s, DEFAULT_PANEL_CONFIG as t, DEFAULT_A2A_CONFIG as u, DEFAULT_HOME_CONFIG as v, DEFAULT_CONVERSATION_CONFIG as w, DEFAULT_CHAT_CONFIG as x };
|
|
282
|
+
//# sourceMappingURL=insight-config.js-CmCFt2Kp.js.map
|
|
@@ -722,7 +722,7 @@ var options = {
|
|
|
722
722
|
app: ({ head, body, assets, nonce, env }) => "<!doctype html>\n<html lang=\"%paraglide.locale%\">\n <head>\n <meta charset=\"utf-8\" />\n <link rel=\"icon\" href=\"" + assets + "/favicon.svg\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n " + head + "\n </head>\n <body data-sveltekit-preload-data=\"tap\">\n <div style=\"display: contents\">" + body + "</div>\n </body>\n</html>\n",
|
|
723
723
|
error: error_template_default
|
|
724
724
|
},
|
|
725
|
-
version_hash: "
|
|
725
|
+
version_hash: "ch4x77"
|
|
726
726
|
};
|
|
727
727
|
async function get_hooks() {
|
|
728
728
|
let handle;
|
|
@@ -744,5 +744,5 @@ async function get_hooks() {
|
|
|
744
744
|
};
|
|
745
745
|
}
|
|
746
746
|
|
|
747
|
-
export { __commonJSMin as _, set_public_env as a, set_read_implementation as b, onDestroy as c, get_hooks as g, index_server_exports as i, options as o, public_env as p, read_implementation as r, set_private_env as s };
|
|
748
|
-
//# sourceMappingURL=internal.js-
|
|
747
|
+
export { __commonJSMin as _, set_public_env as a, set_read_implementation as b, onDestroy as c, __exportAll as d, get_hooks as g, index_server_exports as i, options as o, public_env as p, read_implementation as r, set_private_env as s };
|
|
748
|
+
//# sourceMappingURL=internal.js-1R9PHQNf.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as index_server_exports } from './internal.js-
|
|
1
|
+
import { i as index_server_exports } from './internal.js-1R9PHQNf.js';
|
|
2
2
|
import './shared.js-HQ0rfhm4.js';
|
|
3
3
|
import './exports.js-DH_tjtdv.js';
|
|
4
4
|
import { U as snapshot, J as getContext, G as noop } from './server.js-11-pxAWV.js';
|
|
@@ -36,6 +36,166 @@ function t(fn) {
|
|
|
36
36
|
} catch {}
|
|
37
37
|
return fn();
|
|
38
38
|
}
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/lib/paraglide/messages/backtoworkspace2.js
|
|
41
|
+
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
42
|
+
/** @typedef {{}} Backtoworkspace2Inputs */
|
|
43
|
+
var en_backtoworkspace2 = () => {
|
|
44
|
+
return `← Back to the workspace`;
|
|
45
|
+
};
|
|
46
|
+
var zh_backtoworkspace2 = () => {
|
|
47
|
+
return `← 返回工作区`;
|
|
48
|
+
};
|
|
49
|
+
var id_backtoworkspace2 = () => {
|
|
50
|
+
return `← Kembali ke workspace`;
|
|
51
|
+
};
|
|
52
|
+
var es_backtoworkspace2 = () => {
|
|
53
|
+
return `← Volver al workspace`;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* | output |
|
|
57
|
+
* | --- |
|
|
58
|
+
* | "← Back to the workspace" |
|
|
59
|
+
*
|
|
60
|
+
* @param {Backtoworkspace2Inputs} inputs
|
|
61
|
+
* @param {{ locale?: "en" | "zh" | "id" | "es" }} options
|
|
62
|
+
* @returns {LocalizedString}
|
|
63
|
+
*/
|
|
64
|
+
var backtoworkspace2 = ((inputs = {}, options = {}) => {
|
|
65
|
+
const locale = options.locale ?? getLocale();
|
|
66
|
+
if (locale === "zh") return zh_backtoworkspace2();
|
|
67
|
+
if (locale === "id") return id_backtoworkspace2();
|
|
68
|
+
if (locale === "es") return es_backtoworkspace2();
|
|
69
|
+
return en_backtoworkspace2();
|
|
70
|
+
});
|
|
71
|
+
//#endregion
|
|
72
|
+
//#region src/lib/paraglide/messages/dshunreachable1.js
|
|
73
|
+
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
74
|
+
/** @typedef {{}} Dshunreachable1Inputs */
|
|
75
|
+
var en_dshunreachable1 = () => {
|
|
76
|
+
return `DSH host unreachable`;
|
|
77
|
+
};
|
|
78
|
+
var zh_dshunreachable1 = () => {
|
|
79
|
+
return `DSH 主机不可达`;
|
|
80
|
+
};
|
|
81
|
+
var id_dshunreachable1 = () => {
|
|
82
|
+
return `Host DSH tidak dapat dijangkau`;
|
|
83
|
+
};
|
|
84
|
+
var es_dshunreachable1 = () => {
|
|
85
|
+
return `Host DSH inalcanzable`;
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* | output |
|
|
89
|
+
* | --- |
|
|
90
|
+
* | "DSH host unreachable" |
|
|
91
|
+
*
|
|
92
|
+
* @param {Dshunreachable1Inputs} inputs
|
|
93
|
+
* @param {{ locale?: "en" | "zh" | "id" | "es" }} options
|
|
94
|
+
* @returns {LocalizedString}
|
|
95
|
+
*/
|
|
96
|
+
var dshunreachable1 = ((inputs = {}, options = {}) => {
|
|
97
|
+
const locale = options.locale ?? getLocale();
|
|
98
|
+
if (locale === "zh") return zh_dshunreachable1();
|
|
99
|
+
if (locale === "id") return id_dshunreachable1();
|
|
100
|
+
if (locale === "es") return es_dshunreachable1();
|
|
101
|
+
return en_dshunreachable1();
|
|
102
|
+
});
|
|
103
|
+
//#endregion
|
|
104
|
+
//#region src/lib/paraglide/messages/reapednote1.js
|
|
105
|
+
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
106
|
+
/** @typedef {{}} Reapednote1Inputs */
|
|
107
|
+
var en_reapednote1 = () => {
|
|
108
|
+
return `It may have been reaped, or the link predates this host's ledger.`;
|
|
109
|
+
};
|
|
110
|
+
var zh_reapednote1 = () => {
|
|
111
|
+
return `它可能已被回收,或链接早于此主机的账本。`;
|
|
112
|
+
};
|
|
113
|
+
var id_reapednote1 = () => {
|
|
114
|
+
return `Mungkin sudah dihapus, atau tautannya lebih tua dari ledger host ini.`;
|
|
115
|
+
};
|
|
116
|
+
var es_reapednote1 = () => {
|
|
117
|
+
return `Puede haber sido recolectada, o el enlace es anterior al libro mayor de este host.`;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* | output |
|
|
121
|
+
* | --- |
|
|
122
|
+
* | "It may have been reaped, or the link predates this host's ledger." |
|
|
123
|
+
*
|
|
124
|
+
* @param {Reapednote1Inputs} inputs
|
|
125
|
+
* @param {{ locale?: "en" | "zh" | "id" | "es" }} options
|
|
126
|
+
* @returns {LocalizedString}
|
|
127
|
+
*/
|
|
128
|
+
var reapednote1 = ((inputs = {}, options = {}) => {
|
|
129
|
+
const locale = options.locale ?? getLocale();
|
|
130
|
+
if (locale === "zh") return zh_reapednote1();
|
|
131
|
+
if (locale === "id") return id_reapednote1();
|
|
132
|
+
if (locale === "es") return es_reapednote1();
|
|
133
|
+
return en_reapednote1();
|
|
134
|
+
});
|
|
135
|
+
//#endregion
|
|
136
|
+
//#region src/lib/paraglide/messages/sessionnotfound2.js
|
|
137
|
+
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
138
|
+
/** @typedef {{}} Sessionnotfound2Inputs */
|
|
139
|
+
var en_sessionnotfound2 = () => {
|
|
140
|
+
return `Session not found`;
|
|
141
|
+
};
|
|
142
|
+
var zh_sessionnotfound2 = () => {
|
|
143
|
+
return `会话未找到`;
|
|
144
|
+
};
|
|
145
|
+
var id_sessionnotfound2 = () => {
|
|
146
|
+
return `Sesi tidak ditemukan`;
|
|
147
|
+
};
|
|
148
|
+
var es_sessionnotfound2 = () => {
|
|
149
|
+
return `Sesión no encontrada`;
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* | output |
|
|
153
|
+
* | --- |
|
|
154
|
+
* | "Session not found" |
|
|
155
|
+
*
|
|
156
|
+
* @param {Sessionnotfound2Inputs} inputs
|
|
157
|
+
* @param {{ locale?: "en" | "zh" | "id" | "es" }} options
|
|
158
|
+
* @returns {LocalizedString}
|
|
159
|
+
*/
|
|
160
|
+
var sessionnotfound2 = ((inputs = {}, options = {}) => {
|
|
161
|
+
const locale = options.locale ?? getLocale();
|
|
162
|
+
if (locale === "zh") return zh_sessionnotfound2();
|
|
163
|
+
if (locale === "id") return id_sessionnotfound2();
|
|
164
|
+
if (locale === "es") return es_sessionnotfound2();
|
|
165
|
+
return en_sessionnotfound2();
|
|
166
|
+
});
|
|
167
|
+
//#endregion
|
|
168
|
+
//#region src/lib/paraglide/messages/unexpectederror1.js
|
|
169
|
+
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
170
|
+
/** @typedef {{}} Unexpectederror1Inputs */
|
|
171
|
+
var en_unexpectederror1 = () => {
|
|
172
|
+
return `Unexpected error`;
|
|
173
|
+
};
|
|
174
|
+
var zh_unexpectederror1 = () => {
|
|
175
|
+
return `意外错误`;
|
|
176
|
+
};
|
|
177
|
+
var id_unexpectederror1 = () => {
|
|
178
|
+
return `Kesalahan tak terduga`;
|
|
179
|
+
};
|
|
180
|
+
var es_unexpectederror1 = () => {
|
|
181
|
+
return `Error inesperado`;
|
|
182
|
+
};
|
|
183
|
+
/**
|
|
184
|
+
* | output |
|
|
185
|
+
* | --- |
|
|
186
|
+
* | "Unexpected error" |
|
|
187
|
+
*
|
|
188
|
+
* @param {Unexpectederror1Inputs} inputs
|
|
189
|
+
* @param {{ locale?: "en" | "zh" | "id" | "es" }} options
|
|
190
|
+
* @returns {LocalizedString}
|
|
191
|
+
*/
|
|
192
|
+
var unexpectederror1 = ((inputs = {}, options = {}) => {
|
|
193
|
+
const locale = options.locale ?? getLocale();
|
|
194
|
+
if (locale === "zh") return zh_unexpectederror1();
|
|
195
|
+
if (locale === "id") return id_unexpectederror1();
|
|
196
|
+
if (locale === "es") return es_unexpectederror1();
|
|
197
|
+
return en_unexpectederror1();
|
|
198
|
+
});
|
|
39
199
|
var is_legacy = noop.toString().includes("$$") || /function \w+\(\) \{\}/.test(noop.toString());
|
|
40
200
|
var placeholder_url = "a:";
|
|
41
201
|
if (is_legacy) {
|
|
@@ -142,5 +302,5 @@ var page = {
|
|
|
142
302
|
}
|
|
143
303
|
};
|
|
144
304
|
|
|
145
|
-
export { afterNavigate as a,
|
|
146
|
-
//# sourceMappingURL=state.js-
|
|
305
|
+
export { afterNavigate as a, backtoworkspace2 as b, replaceState as c, dshunreachable1 as d, currentLocale as e, page as p, reapednote1 as r, sessionnotfound2 as s, t, unexpectederror1 as u };
|
|
306
|
+
//# sourceMappingURL=state.js-vRL4xZQO.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as readA2aConfig } from './insight-config.js-
|
|
2
|
-
import { i as insertWaiting, o as openA2aDb, s as settleRow, p as pruneTerminalBefore, l as listWaiting } from './db.js-
|
|
3
|
-
import { g as getDshConnection } from './dsh-connection.js-
|
|
1
|
+
import { c as readA2aConfig } from './insight-config.js-CmCFt2Kp.js';
|
|
2
|
+
import { i as insertWaiting, o as openA2aDb, s as settleRow, p as pruneTerminalBefore, l as listWaiting } from './db.js-CSrMZzws.js';
|
|
3
|
+
import { g as getDshConnection } from './dsh-connection.js-DjwmUFoE.js';
|
|
4
4
|
import { a as entryForEvent, h as historyToEvents } from './dsh-events.js-DEZgATm-.js';
|
|
5
5
|
|
|
6
6
|
//#region src/lib/server/a2a/matcher.ts
|
|
@@ -470,4 +470,4 @@ function registerWatch(row) {
|
|
|
470
470
|
}
|
|
471
471
|
|
|
472
472
|
export { configureWatcher as c, ensureStarted as e, registerWatch as r };
|
|
473
|
-
//# sourceMappingURL=watcher.js-
|
|
473
|
+
//# sourceMappingURL=watcher.js-CuX0WU5B.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as getRow } from '../../../../../chunks/db.js-
|
|
1
|
+
import { g as getRow } from '../../../../../chunks/db.js-CSrMZzws.js';
|
|
2
2
|
import { j as json } from '../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
|
-
import '../../../../../chunks/insight-config.js-
|
|
3
|
+
import '../../../../../chunks/insight-config.js-CmCFt2Kp.js';
|
|
4
4
|
import '../../../../../chunks/config.js-BvW5LrfQ.js';
|
|
5
5
|
import '../../../../../chunks/settings-document.js-i5MkkSFH.js';
|
|
6
6
|
import 'node:fs';
|
|
@@ -36,4 +36,4 @@ var GET = ({ params }) => {
|
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
export { GET };
|
|
39
|
-
//# sourceMappingURL=_server.ts.js-
|
|
39
|
+
//# sourceMappingURL=_server.ts.js-BGuC49gg.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as listRecent } from '../../../../chunks/db.js-
|
|
2
|
-
import { e as ensureStarted } from '../../../../chunks/watcher.js-
|
|
1
|
+
import { a as listRecent } from '../../../../chunks/db.js-CSrMZzws.js';
|
|
2
|
+
import { e as ensureStarted } from '../../../../chunks/watcher.js-CuX0WU5B.js';
|
|
3
3
|
import { j as json } from '../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
4
|
-
import '../../../../chunks/insight-config.js-
|
|
4
|
+
import '../../../../chunks/insight-config.js-CmCFt2Kp.js';
|
|
5
5
|
import '../../../../chunks/config.js-BvW5LrfQ.js';
|
|
6
6
|
import '../../../../chunks/settings-document.js-i5MkkSFH.js';
|
|
7
7
|
import 'node:fs';
|
|
@@ -10,7 +10,7 @@ import 'node:os';
|
|
|
10
10
|
import 'yaml';
|
|
11
11
|
import '../../../../chunks/settings-home2.js-f75-B6RI.js';
|
|
12
12
|
import 'node:sqlite';
|
|
13
|
-
import '../../../../chunks/dsh-connection.js-
|
|
13
|
+
import '../../../../chunks/dsh-connection.js-DjwmUFoE.js';
|
|
14
14
|
import '../../../../chunks/dsh-events.js-DEZgATm-.js';
|
|
15
15
|
import '../../../../chunks/shared.js-HQ0rfhm4.js';
|
|
16
16
|
import '../../../../chunks/uneval.js-BJ9Qq2SF.js';
|
|
@@ -60,4 +60,4 @@ var GET = ({ url }) => {
|
|
|
60
60
|
};
|
|
61
61
|
|
|
62
62
|
export { GET };
|
|
63
|
-
//# sourceMappingURL=_server.ts.js-
|
|
63
|
+
//# sourceMappingURL=_server.ts.js-BVH1ToLe.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as readA2aConfig } from '../../../../../chunks/insight-config.js-
|
|
2
|
-
import { g as getDshConnection } from '../../../../../chunks/dsh-connection.js-
|
|
3
|
-
import { c as configureWatcher, r as registerWatch } from '../../../../../chunks/watcher.js-
|
|
1
|
+
import { c as readA2aConfig } from '../../../../../chunks/insight-config.js-CmCFt2Kp.js';
|
|
2
|
+
import { g as getDshConnection } from '../../../../../chunks/dsh-connection.js-DjwmUFoE.js';
|
|
3
|
+
import { c as configureWatcher, r as registerWatch } from '../../../../../chunks/watcher.js-CuX0WU5B.js';
|
|
4
4
|
import { m as mintA2aId } from '../../../../../chunks/a2a-protocol.js-C77mVg2Q.js';
|
|
5
5
|
import { j as json } from '../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
6
6
|
import '../../../../../chunks/config.js-BvW5LrfQ.js';
|
|
@@ -10,7 +10,7 @@ import 'node:path';
|
|
|
10
10
|
import 'node:os';
|
|
11
11
|
import 'yaml';
|
|
12
12
|
import '../../../../../chunks/settings-home2.js-f75-B6RI.js';
|
|
13
|
-
import '../../../../../chunks/db.js-
|
|
13
|
+
import '../../../../../chunks/db.js-CSrMZzws.js';
|
|
14
14
|
import 'node:sqlite';
|
|
15
15
|
import '../../../../../chunks/dsh-events.js-DEZgATm-.js';
|
|
16
16
|
import '../../../../../chunks/shared.js-HQ0rfhm4.js';
|
|
@@ -98,4 +98,4 @@ var POST = async ({ request }) => {
|
|
|
98
98
|
};
|
|
99
99
|
|
|
100
100
|
export { POST };
|
|
101
|
-
//# sourceMappingURL=_server.ts.js-
|
|
101
|
+
//# sourceMappingURL=_server.ts.js-a85F1GOf.js.map
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { e as readSettingsHomes, d as readPromptsConfig, f as readSidebarConfig, g as readPanelConfig, c as readA2aConfig, h as readHomeConfig, i as readConversationConfig, k as readChatConfig } from '../../../../chunks/insight-config.js-CmCFt2Kp.js';
|
|
2
|
+
import { r as resolvePromptsDbPath } from '../../../../chunks/db2.js-B9P1MuEl.js';
|
|
2
3
|
import { j as json } from '../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
4
|
+
import { homedir } from 'node:os';
|
|
3
5
|
import '../../../../chunks/config.js-BvW5LrfQ.js';
|
|
4
6
|
import '../../../../chunks/settings-document.js-i5MkkSFH.js';
|
|
5
7
|
import 'node:fs';
|
|
6
8
|
import 'node:path';
|
|
7
|
-
import 'node:os';
|
|
8
9
|
import 'yaml';
|
|
9
10
|
import '../../../../chunks/settings-home2.js-f75-B6RI.js';
|
|
11
|
+
import 'node:sqlite';
|
|
10
12
|
import '../../../../chunks/shared.js-HQ0rfhm4.js';
|
|
11
13
|
import '../../../../chunks/uneval.js-BJ9Qq2SF.js';
|
|
12
14
|
|
|
@@ -21,6 +23,14 @@ import '../../../../chunks/uneval.js-BJ9Qq2SF.js';
|
|
|
21
23
|
* section (server.ringCapacity) is intentionally absent — dsh-connection
|
|
22
24
|
* reads it directly server-side.
|
|
23
25
|
*/
|
|
26
|
+
/** Security tilde-collapse: the wire carries `~/…`, never the absolute
|
|
27
|
+
* homedir — the browser labels the library, it doesn't map the host. */
|
|
28
|
+
function collapseHome(p) {
|
|
29
|
+
const home = homedir();
|
|
30
|
+
if (p === home) return "~";
|
|
31
|
+
if (p.startsWith(home + "/")) return "~" + p.slice(home.length);
|
|
32
|
+
return p;
|
|
33
|
+
}
|
|
24
34
|
var GET = async () => {
|
|
25
35
|
return json({
|
|
26
36
|
ok: true,
|
|
@@ -30,10 +40,13 @@ var GET = async () => {
|
|
|
30
40
|
a2a: readA2aConfig(),
|
|
31
41
|
panel: readPanelConfig(),
|
|
32
42
|
sidebar: readSidebarConfig(),
|
|
33
|
-
prompts: {
|
|
43
|
+
prompts: {
|
|
44
|
+
tags: readPromptsConfig().tags,
|
|
45
|
+
dbPath: collapseHome(resolvePromptsDbPath())
|
|
46
|
+
},
|
|
34
47
|
settingsHomes: readSettingsHomes()
|
|
35
48
|
});
|
|
36
49
|
};
|
|
37
50
|
|
|
38
51
|
export { GET };
|
|
39
|
-
//# sourceMappingURL=_server.ts.js-
|
|
52
|
+
//# sourceMappingURL=_server.ts.js-CBq4bRig.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as getDshConnection, s as statusFor, m as mapRpcFailure } from '../../../../../chunks/dsh-connection.js-
|
|
1
|
+
import { g as getDshConnection, s as statusFor, m as mapRpcFailure } from '../../../../../chunks/dsh-connection.js-DjwmUFoE.js';
|
|
2
2
|
import { j as json } from '../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
3
|
import '../../../../../chunks/config.js-BvW5LrfQ.js';
|
|
4
|
-
import '../../../../../chunks/insight-config.js-
|
|
4
|
+
import '../../../../../chunks/insight-config.js-CmCFt2Kp.js';
|
|
5
5
|
import '../../../../../chunks/settings-document.js-i5MkkSFH.js';
|
|
6
6
|
import 'node:fs';
|
|
7
7
|
import 'node:path';
|
|
@@ -42,4 +42,4 @@ var GET = async ({ url }) => {
|
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
export { GET };
|
|
45
|
-
//# sourceMappingURL=_server.ts.js-
|
|
45
|
+
//# sourceMappingURL=_server.ts.js-BpQX_N7Q.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as getDshConnection, s as statusFor, m as mapRpcFailure } from '../../../../../chunks/dsh-connection.js-
|
|
1
|
+
import { g as getDshConnection, s as statusFor, m as mapRpcFailure } from '../../../../../chunks/dsh-connection.js-DjwmUFoE.js';
|
|
2
2
|
import { j as json } from '../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
3
|
import '../../../../../chunks/config.js-BvW5LrfQ.js';
|
|
4
|
-
import '../../../../../chunks/insight-config.js-
|
|
4
|
+
import '../../../../../chunks/insight-config.js-CmCFt2Kp.js';
|
|
5
5
|
import '../../../../../chunks/settings-document.js-i5MkkSFH.js';
|
|
6
6
|
import 'node:fs';
|
|
7
7
|
import 'node:path';
|
|
@@ -35,4 +35,4 @@ var POST = async ({ request }) => {
|
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
export { POST };
|
|
38
|
-
//# sourceMappingURL=_server.ts.js-
|
|
38
|
+
//# sourceMappingURL=_server.ts.js-eYQQnSgq.js.map
|