@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
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { g as getEngine, E as EngineMissingError, a as EngineFailedError } from '../../../../../chunks/engine.js-DzJkajy7.js';
|
|
2
|
+
import { j as json } from '../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
|
+
import 'node:fs';
|
|
4
|
+
import 'node:path';
|
|
5
|
+
import 'node:os';
|
|
6
|
+
import 'node:child_process';
|
|
7
|
+
import 'node:util';
|
|
8
|
+
import '../../../../../chunks/shared.js-HQ0rfhm4.js';
|
|
9
|
+
import '../../../../../chunks/uneval.js-BJ9Qq2SF.js';
|
|
10
|
+
|
|
11
|
+
//#region src/routes/api/skills/uninstall/+server.ts
|
|
12
|
+
/**
|
|
13
|
+
* api-skills - POST /api/skills/uninstall
|
|
14
|
+
* Body: { ids: string[] }. Signed-only (ADR D5): any unsigned refusal maps to 409.
|
|
15
|
+
*/
|
|
16
|
+
var POST = async ({ request }) => {
|
|
17
|
+
let ids;
|
|
18
|
+
try {
|
|
19
|
+
ids = (await request.json()).ids;
|
|
20
|
+
} catch {
|
|
21
|
+
return json({
|
|
22
|
+
ok: false,
|
|
23
|
+
error: "malformed JSON body"
|
|
24
|
+
}, { status: 400 });
|
|
25
|
+
}
|
|
26
|
+
if (!Array.isArray(ids) || ids.length === 0 || !ids.every((t) => typeof t === "string" && t.length > 0)) return json({
|
|
27
|
+
ok: false,
|
|
28
|
+
error: "ids must be a non-empty array of strings"
|
|
29
|
+
}, { status: 400 });
|
|
30
|
+
try {
|
|
31
|
+
const results = await getEngine().apply("uninstall", ids);
|
|
32
|
+
const unsigned = results.some((r) => !r.ok && /unsigned/.test(r.error ?? ""));
|
|
33
|
+
return json({
|
|
34
|
+
ok: results.every((r) => r.ok),
|
|
35
|
+
results
|
|
36
|
+
}, { status: unsigned ? 409 : 200 });
|
|
37
|
+
} catch (err) {
|
|
38
|
+
const status = err instanceof EngineMissingError || err instanceof EngineFailedError ? 503 : 500;
|
|
39
|
+
return json({
|
|
40
|
+
ok: false,
|
|
41
|
+
error: String(err.message)
|
|
42
|
+
}, { status });
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export { POST };
|
|
47
|
+
//# sourceMappingURL=_server.ts.js-qqFlorKD.js.map
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { j as json } from '../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
2
|
+
import { existsSync, readdirSync, readFileSync } from 'node:fs';
|
|
3
|
+
import { join } from 'node:path';
|
|
4
|
+
import { homedir } from 'node:os';
|
|
5
|
+
import '../../../../../chunks/shared.js-HQ0rfhm4.js';
|
|
6
|
+
import '../../../../../chunks/uneval.js-BJ9Qq2SF.js';
|
|
7
|
+
|
|
8
|
+
//#region src/lib/server/skills/voice.ts
|
|
9
|
+
/**
|
|
10
|
+
* skill-voice (The Shelf Voice ADR D5) - the merged voice map: one entry
|
|
11
|
+
* per shelf-installed skill carrying its per-locale words, read from the
|
|
12
|
+
* .dsi-voice/<locale>.json sidecars the engine wrote at install time.
|
|
13
|
+
* Homegrown dsi-* skills are NOT here - their voice is compile-time
|
|
14
|
+
* paraglide (D7), resolved client-side.
|
|
15
|
+
*/
|
|
16
|
+
var VOICE_LOCALES = [
|
|
17
|
+
"en",
|
|
18
|
+
"zh",
|
|
19
|
+
"id",
|
|
20
|
+
"es"
|
|
21
|
+
];
|
|
22
|
+
var VOICE_DIR = ".dsi-voice";
|
|
23
|
+
function buildVoiceMap(skillsDir) {
|
|
24
|
+
const map = {};
|
|
25
|
+
if (!existsSync(skillsDir)) return map;
|
|
26
|
+
for (const skillId of readdirSync(skillsDir)) {
|
|
27
|
+
const voiceDir = join(skillsDir, skillId, VOICE_DIR);
|
|
28
|
+
if (!existsSync(voiceDir)) continue;
|
|
29
|
+
for (const locale of VOICE_LOCALES) {
|
|
30
|
+
const file = join(voiceDir, locale + ".json");
|
|
31
|
+
if (!existsSync(file)) continue;
|
|
32
|
+
try {
|
|
33
|
+
const entry = JSON.parse(readFileSync(file, "utf8"));
|
|
34
|
+
if (typeof entry?.name === "string" && typeof entry?.description === "string") {
|
|
35
|
+
map[skillId] = map[skillId] ?? {};
|
|
36
|
+
map[skillId][locale] = {
|
|
37
|
+
name: entry.name,
|
|
38
|
+
description: entry.description,
|
|
39
|
+
whenToUse: String(entry.whenToUse ?? "")
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
} catch {}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return map;
|
|
46
|
+
}
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region src/routes/api/skills/voice/+server.ts
|
|
49
|
+
/**
|
|
50
|
+
* api-skills - GET /api/skills/voice (The Shelf Voice ADR D5).
|
|
51
|
+
* The merged voice map for shelf-installed skills; the slash menu
|
|
52
|
+
* overlays it onto the host's English wire rows at render.
|
|
53
|
+
*/
|
|
54
|
+
function skillsDirFromEnv() {
|
|
55
|
+
return process.env.SHELF_SKILLS_DIR || join(homedir(), ".agents/skills");
|
|
56
|
+
}
|
|
57
|
+
var GET = async () => {
|
|
58
|
+
try {
|
|
59
|
+
return json({
|
|
60
|
+
ok: true,
|
|
61
|
+
voice: buildVoiceMap(skillsDirFromEnv())
|
|
62
|
+
});
|
|
63
|
+
} catch (err) {
|
|
64
|
+
return json({
|
|
65
|
+
ok: false,
|
|
66
|
+
error: String(err.message)
|
|
67
|
+
}, { status: 503 });
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
export { GET };
|
|
72
|
+
//# sourceMappingURL=_server.ts.js-yiGBLufB.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { s as statusFor, m as mapRpcFailure } from '../../../../../chunks/dsh-connection.js-
|
|
2
|
-
import { g as gitGateEnabled, i as isInsideRoot } from '../../../../../chunks/git-probe.js-
|
|
1
|
+
import { s as statusFor, m as mapRpcFailure } from '../../../../../chunks/dsh-connection.js-DjwmUFoE.js';
|
|
2
|
+
import { g as gitGateEnabled, i as isInsideRoot } from '../../../../../chunks/git-probe.js-BGOqAXVt.js';
|
|
3
3
|
import { j as json } from '../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
4
4
|
import { promises } from 'node:fs';
|
|
5
5
|
import * as nodePath from 'node:path';
|
|
6
6
|
import '../../../../../chunks/config.js-BvW5LrfQ.js';
|
|
7
|
-
import '../../../../../chunks/insight-config.js-
|
|
7
|
+
import '../../../../../chunks/insight-config.js-CmCFt2Kp.js';
|
|
8
8
|
import '../../../../../chunks/settings-document.js-i5MkkSFH.js';
|
|
9
9
|
import 'node:os';
|
|
10
10
|
import 'yaml';
|
|
@@ -107,4 +107,4 @@ var POST = async ({ request }) => {
|
|
|
107
107
|
};
|
|
108
108
|
|
|
109
109
|
export { POST };
|
|
110
|
-
//# sourceMappingURL=_server.ts.js-
|
|
110
|
+
//# sourceMappingURL=_server.ts.js-COt-HtL0.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { s as statusFor, m as mapRpcFailure } from '../../../../../chunks/dsh-connection.js-
|
|
2
|
-
import { g as gitGateEnabled, i as isInsideRoot, a as gitStatus, p as parsePorcelainStatus } from '../../../../../chunks/git-probe.js-
|
|
1
|
+
import { s as statusFor, m as mapRpcFailure } from '../../../../../chunks/dsh-connection.js-DjwmUFoE.js';
|
|
2
|
+
import { g as gitGateEnabled, i as isInsideRoot, a as gitStatus, p as parsePorcelainStatus } from '../../../../../chunks/git-probe.js-BGOqAXVt.js';
|
|
3
3
|
import { j as json } from '../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
4
4
|
import { watch } from 'node:fs';
|
|
5
5
|
import { join } from 'node:path';
|
|
6
6
|
import { execFileSync } from 'node:child_process';
|
|
7
7
|
import '../../../../../chunks/config.js-BvW5LrfQ.js';
|
|
8
|
-
import '../../../../../chunks/insight-config.js-
|
|
8
|
+
import '../../../../../chunks/insight-config.js-CmCFt2Kp.js';
|
|
9
9
|
import '../../../../../chunks/settings-document.js-i5MkkSFH.js';
|
|
10
10
|
import 'node:os';
|
|
11
11
|
import 'yaml';
|
|
@@ -293,4 +293,4 @@ var GET = async ({ url, request }) => {
|
|
|
293
293
|
};
|
|
294
294
|
|
|
295
295
|
export { GET };
|
|
296
|
-
//# sourceMappingURL=_server.ts.js-
|
|
296
|
+
//# sourceMappingURL=_server.ts.js-k7bgOO_c.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { s as statusFor } from '../../../../../chunks/dsh-connection.js-
|
|
2
|
-
import { r as resolveEnclosingRepo, i as isInsideRoot, b as gitFileHead, G as GitUnavailableError } from '../../../../../chunks/git-probe.js-
|
|
1
|
+
import { s as statusFor } from '../../../../../chunks/dsh-connection.js-DjwmUFoE.js';
|
|
2
|
+
import { r as resolveEnclosingRepo, i as isInsideRoot, b as gitFileHead, G as GitUnavailableError } from '../../../../../chunks/git-probe.js-BGOqAXVt.js';
|
|
3
3
|
import { j as json } from '../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
4
4
|
import '../../../../../chunks/config.js-BvW5LrfQ.js';
|
|
5
|
-
import '../../../../../chunks/insight-config.js-
|
|
5
|
+
import '../../../../../chunks/insight-config.js-CmCFt2Kp.js';
|
|
6
6
|
import '../../../../../chunks/settings-document.js-i5MkkSFH.js';
|
|
7
7
|
import 'node:fs';
|
|
8
8
|
import 'node:path';
|
|
@@ -76,4 +76,4 @@ var GET = async ({ url }) => {
|
|
|
76
76
|
};
|
|
77
77
|
|
|
78
78
|
export { GET };
|
|
79
|
-
//# sourceMappingURL=_server.ts.js-
|
|
79
|
+
//# sourceMappingURL=_server.ts.js-H1HUbRif.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { s as statusFor } from '../../../../../chunks/dsh-connection.js-
|
|
2
|
-
import { d as detectRepos } from '../../../../../chunks/git-probe.js-
|
|
1
|
+
import { s as statusFor } from '../../../../../chunks/dsh-connection.js-DjwmUFoE.js';
|
|
2
|
+
import { d as detectRepos } from '../../../../../chunks/git-probe.js-BGOqAXVt.js';
|
|
3
3
|
import { j as json } from '../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
4
4
|
import '../../../../../chunks/config.js-BvW5LrfQ.js';
|
|
5
|
-
import '../../../../../chunks/insight-config.js-
|
|
5
|
+
import '../../../../../chunks/insight-config.js-CmCFt2Kp.js';
|
|
6
6
|
import '../../../../../chunks/settings-document.js-i5MkkSFH.js';
|
|
7
7
|
import 'node:fs';
|
|
8
8
|
import 'node:path';
|
|
@@ -64,4 +64,4 @@ var GET = async ({ url }) => {
|
|
|
64
64
|
};
|
|
65
65
|
|
|
66
66
|
export { GET };
|
|
67
|
-
//# sourceMappingURL=_server.ts.js-
|
|
67
|
+
//# sourceMappingURL=_server.ts.js-D7nqciP7.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { s as statusFor } from '../../../../../chunks/dsh-connection.js-
|
|
2
|
-
import { i as isInsideRoot, a as gitStatus, G as GitUnavailableError } from '../../../../../chunks/git-probe.js-
|
|
1
|
+
import { s as statusFor } from '../../../../../chunks/dsh-connection.js-DjwmUFoE.js';
|
|
2
|
+
import { i as isInsideRoot, a as gitStatus, G as GitUnavailableError } from '../../../../../chunks/git-probe.js-BGOqAXVt.js';
|
|
3
3
|
import { j as json } from '../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
4
4
|
import '../../../../../chunks/config.js-BvW5LrfQ.js';
|
|
5
|
-
import '../../../../../chunks/insight-config.js-
|
|
5
|
+
import '../../../../../chunks/insight-config.js-CmCFt2Kp.js';
|
|
6
6
|
import '../../../../../chunks/settings-document.js-i5MkkSFH.js';
|
|
7
7
|
import 'node:fs';
|
|
8
8
|
import 'node:path';
|
|
@@ -69,4 +69,4 @@ var GET = async ({ url }) => {
|
|
|
69
69
|
};
|
|
70
70
|
|
|
71
71
|
export { GET };
|
|
72
|
-
//# sourceMappingURL=_server.ts.js-
|
|
72
|
+
//# sourceMappingURL=_server.ts.js-D0HYWO9M.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { s as statusFor, m as mapRpcFailure } from '../../../../../chunks/dsh-connection.js-
|
|
2
|
-
import { g as gitGateEnabled } from '../../../../../chunks/git-probe.js-
|
|
1
|
+
import { s as statusFor, m as mapRpcFailure } from '../../../../../chunks/dsh-connection.js-DjwmUFoE.js';
|
|
2
|
+
import { g as gitGateEnabled } from '../../../../../chunks/git-probe.js-BGOqAXVt.js';
|
|
3
3
|
import { j as json } from '../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
4
4
|
import '../../../../../chunks/config.js-BvW5LrfQ.js';
|
|
5
|
-
import '../../../../../chunks/insight-config.js-
|
|
5
|
+
import '../../../../../chunks/insight-config.js-CmCFt2Kp.js';
|
|
6
6
|
import '../../../../../chunks/settings-document.js-i5MkkSFH.js';
|
|
7
7
|
import 'node:fs';
|
|
8
8
|
import 'node:path';
|
|
@@ -51,4 +51,4 @@ var GET = async ({ url }) => {
|
|
|
51
51
|
};
|
|
52
52
|
|
|
53
53
|
export { GET };
|
|
54
|
-
//# sourceMappingURL=_server.ts.js-
|
|
54
|
+
//# sourceMappingURL=_server.ts.js-Boi1Sn8U.js.map
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { V as head, W as escape_html, y as derived } from '../../chunks/server.js-11-pxAWV.js';
|
|
2
|
+
import { t, p as page, s as sessionnotfound2, r as reapednote1, d as dshunreachable1, u as unexpectederror1, b as backtoworkspace2 } from '../../chunks/state.js-vRL4xZQO.js';
|
|
3
|
+
import '../../chunks/uneval.js-BJ9Qq2SF.js';
|
|
4
|
+
import '../../chunks/internal.js-1R9PHQNf.js';
|
|
5
|
+
import '../../chunks/shared.js-HQ0rfhm4.js';
|
|
6
|
+
import '../../chunks/exports.js-DH_tjtdv.js';
|
|
7
|
+
import '../../chunks/config.js-BvW5LrfQ.js';
|
|
8
|
+
import '../../chunks/runtime.js-CCJi3XaY.js';
|
|
9
|
+
import '../../chunks/utils.js-CAdNO8Tu.js';
|
|
10
|
+
|
|
11
|
+
//#region src/routes/+error.svelte
|
|
12
|
+
function _error($$renderer, $$props) {
|
|
13
|
+
$$renderer.component(($$renderer) => {
|
|
14
|
+
/**
|
|
15
|
+
* App-wide error boundary (the Root-is-the-Floor ADR, 2026-09-02):
|
|
16
|
+
* 404 (session absent — and any retired address), 503 (host down),
|
|
17
|
+
* 409 (sub-agent ownership). The way back is `/` itself: a bare
|
|
18
|
+
* arrival restores the persisted desk, so "back" costs nothing.
|
|
19
|
+
*/
|
|
20
|
+
const status = derived(() => page.status);
|
|
21
|
+
const message = derived(() => page.error?.message ?? "Something went wrong.");
|
|
22
|
+
head("1j96wlh", $$renderer, ($$renderer) => {
|
|
23
|
+
$$renderer.title(($$renderer) => {
|
|
24
|
+
$$renderer.push(`<title>${escape_html(status())} — deepseek-insight</title>`);
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
$$renderer.push(`<main data-svelte="ErrorPage" class="mx-auto flex max-w-3xl flex-col items-center gap-4 px-4 py-16 text-center"><p class="text-5xl font-semibold text-slate-300" data-testid="error-status">${escape_html(status())}</p> `);
|
|
28
|
+
if (status() === 404) {
|
|
29
|
+
$$renderer.push("<!--[0-->");
|
|
30
|
+
$$renderer.push(`<h1 class="text-xl font-semibold">${escape_html(t(sessionnotfound2))}</h1> <p class="text-sm text-slate-500" data-testid="error-message">${escape_html(message())}</p> <p class="text-xs text-slate-400">${escape_html(t(reapednote1))}</p>`);
|
|
31
|
+
} else if (status() === 503) {
|
|
32
|
+
$$renderer.push("<!--[1-->");
|
|
33
|
+
$$renderer.push(`<h1 class="text-xl font-semibold">${escape_html(t(dshunreachable1))}</h1> <p class="text-sm text-slate-500" data-testid="error-message">${escape_html(message())}</p>`);
|
|
34
|
+
} else {
|
|
35
|
+
$$renderer.push("<!--[-1-->");
|
|
36
|
+
$$renderer.push(`<h1 class="text-xl font-semibold">${escape_html(t(unexpectederror1))}</h1> <p class="text-sm text-slate-500" data-testid="error-message">${escape_html(message())}</p>`);
|
|
37
|
+
}
|
|
38
|
+
$$renderer.push(`<!--]--> <a href="/" class="mt-2 rounded-md border border-slate-300 px-3 py-1.5 text-sm text-slate-600 hover:bg-slate-100" data-testid="error-back-home">${escape_html(t(backtoworkspace2))}</a></main>`);
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export { _error as default };
|
|
43
|
+
//# sourceMappingURL=_error.svelte.js-CtYKjJrf.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getDshConnection, D as DshRpcError, i as isSubagentRejection } from '../../chunks/dsh-connection.js-
|
|
1
|
+
import { g as getDshConnection, D as DshRpcError, i as isSubagentRejection } from '../../chunks/dsh-connection.js-DjwmUFoE.js';
|
|
2
2
|
import { h as historyToEvents, e as eventsToEntries } from '../../chunks/dsh-events.js-DEZgATm-.js';
|
|
3
3
|
import { p as permissionFromProjection, f as filterKnobEvents } from '../../chunks/permission-state.js-B7UpAHBv.js';
|
|
4
4
|
import { i as imageLimitsFromProjection } from '../../chunks/image-limits.js-CUdJ0f7r.js';
|
|
@@ -83,4 +83,4 @@ var _page_server_ts = /*#__PURE__*/Object.freeze({
|
|
|
83
83
|
});
|
|
84
84
|
|
|
85
85
|
export { _page_server_ts as _ };
|
|
86
|
-
//# sourceMappingURL=_page.server.ts.js-
|
|
86
|
+
//# sourceMappingURL=_page.server.ts.js-DdzOMHcO.js.map
|