@deepseek-insight/dsi 0.6.3 → 0.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/build/client/_app/immutable/chunks/BwKqFYD7.js +1 -0
  2. package/build/client/_app/immutable/chunks/CAYtjzEm.js +1 -0
  3. package/build/client/_app/immutable/chunks/CdhRVZei.js +2 -0
  4. package/build/client/_app/immutable/chunks/{ChuRCf9h.js → ifNG6R2V.js} +1 -1
  5. package/build/client/_app/immutable/entry/{app.y5dXo2Ok.js → app.BZxw5dG4.js} +2 -2
  6. package/build/client/_app/immutable/entry/start.Dokd35UA.js +1 -0
  7. package/build/client/_app/immutable/nodes/{1.DxZnpXVQ.js → 1.DDxq2YPY.js} +1 -1
  8. package/build/client/_app/immutable/nodes/{2.llFj6Wmd.js → 2.BtlOjw8Q.js} +104 -104
  9. package/build/client/_app/version.json +1 -1
  10. package/build/handler.js +4 -4
  11. package/build/index.js +4 -4
  12. package/build/server/chunks/chunks/{dsh-events.js-CyvSb4O3.js → dsh-events.js-D9tSYE7f.js} +3 -1
  13. package/build/server/chunks/chunks/{git-probe.js-dOJ4Z5Hb.js → git-probe.js-D_H3YQbR.js} +2 -2
  14. package/build/server/chunks/chunks/{internal.js-0AVWztiM.js → internal.js-BzzxrDDl.js} +2 -2
  15. package/build/server/chunks/chunks/{state.js-C_HRp4U4.js → state.js-BTxzeSxQ.js} +2 -2
  16. package/build/server/chunks/chunks/{watcher.js-bCH9-ZiR.js → watcher.js-DU-MZGLU.js} +2 -2
  17. package/build/server/chunks/entries/endpoints/api/a2a/{_server.ts.js-CqAXkMAm.js → _server.ts.js-BvEDeAhP.js} +3 -3
  18. package/build/server/chunks/entries/endpoints/api/a2a/register/{_server.ts.js-FBi0PplP.js → _server.ts.js-DLJ4sQBq.js} +3 -3
  19. package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/events/{_server.ts.js-CYZUxBob.js → _server.ts.js-vydjdEkJ.js} +2 -2
  20. package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/history/{_server.ts.js-DGGCIii3.js → _server.ts.js-SchAEll8.js} +2 -2
  21. package/build/server/chunks/entries/endpoints/api/workspace/file-write/{_server.ts.js-BIOHsnn2.js → _server.ts.js-BmEUPTSa.js} +3 -3
  22. package/build/server/chunks/entries/endpoints/api/workspace/git-events/{_server.ts.js-BLfn9ZtS.js → _server.ts.js-_1uYvYEA.js} +3 -3
  23. package/build/server/chunks/entries/endpoints/api/workspace/git-file-head/{_server.ts.js-p-potXo3.js → _server.ts.js-DaXO3et9.js} +3 -3
  24. package/build/server/chunks/entries/endpoints/api/workspace/git-map/{_server.ts.js-DYFs7MEO.js → _server.ts.js-hp85iKSu.js} +3 -3
  25. package/build/server/chunks/entries/endpoints/api/workspace/git-status/{_server.ts.js-BB2bcMwC.js → _server.ts.js-CPB-9252.js} +3 -3
  26. package/build/server/chunks/entries/endpoints/api/workspace/write-gate/{_server.ts.js-DFnO84k1.js → _server.ts.js-DKqzSQBE.js} +3 -3
  27. package/build/server/chunks/entries/pages/{_error.svelte.js-CEmLRT9p.js → _error.svelte.js-D3waDB7P.js} +3 -3
  28. package/build/server/chunks/entries/pages/{_page.server.ts.js-Cqf2xfOc.js → _page.server.ts.js-DTjoTdYK.js} +2 -2
  29. package/build/server/chunks/entries/pages/{_page.svelte.js-UXIdc_bL.js → _page.svelte.js-CsfYmlsX.js} +75 -5
  30. package/build/server/chunks/{handler-BJ9--VUv.js → handler-B6-GSygl.js} +3 -3
  31. package/build/server/chunks/{index.js-C9NofOps.js → index.js-CnMCjYHC.js} +2 -2
  32. package/build/server/chunks/{manifest.js-DDCEOESO.js → manifest.js-0V3eqw-_.js} +14 -14
  33. package/build/server/chunks/nodes/1.js-HaE4A25V.js +9 -0
  34. package/build/server/chunks/nodes/{2.js-DJr3vFN1.js → 2.js-BJORAo_U.js} +5 -5
  35. package/package.json +2 -2
  36. package/build/client/_app/immutable/chunks/-QMnNhjK.js +0 -1
  37. package/build/client/_app/immutable/chunks/CO5vDamr.js +0 -2
  38. package/build/client/_app/immutable/chunks/t3kw0wer.js +0 -1
  39. package/build/client/_app/immutable/entry/start.DXQR7y2N.js +0 -1
  40. package/build/server/chunks/nodes/1.js-XJPU3cMa.js +0 -9
@@ -1 +1 @@
1
- {"version":"1790713823441"}
1
+ {"version":"1791150609025"}
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-BJ9--VUv.js';
6
- import './server/chunks/index.js-C9NofOps.js';
7
- import './server/chunks/manifest.js-DDCEOESO.js';
5
+ export { h as handler } from './server/chunks/handler-B6-GSygl.js';
6
+ import './server/chunks/index.js-CnMCjYHC.js';
7
+ import './server/chunks/manifest.js-0V3eqw-_.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-0AVWztiM.js';
19
+ import './server/chunks/chunks/internal.js-BzzxrDDl.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-BJ9--VUv.js';
4
+ import { p as polka, h as handler, f as format_listening_address } from './server/chunks/handler-B6-GSygl.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-C9NofOps.js';
18
- import './server/chunks/chunks/internal.js-0AVWztiM.js';
17
+ import './server/chunks/index.js-CnMCjYHC.js';
18
+ import './server/chunks/chunks/internal.js-BzzxrDDl.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-DDCEOESO.js';
22
+ import './server/chunks/manifest.js-0V3eqw-_.js';
23
23
  import 'node:url';
24
24
 
25
25
  const path = env('SOCKET_PATH', false);
@@ -466,11 +466,13 @@ function usageOf(v, source) {
466
466
  const u = v;
467
467
  if (u === void 0 || typeof u.inputTokens !== "number" || typeof u.outputTokens !== "number") return;
468
468
  const opt = (n) => typeof n === "number" ? n : void 0;
469
+ const count = (n) => typeof n === "number" && Number.isSafeInteger(n) && n > 0 ? n : void 0;
469
470
  const provider = typeof source?.provider === "string" && source.provider.length > 0 ? source.provider : void 0;
470
471
  const model = typeof source?.model === "string" && source.model.length > 0 ? source.model : void 0;
471
472
  return {
472
473
  inputTokens: u.inputTokens,
473
474
  outputTokens: u.outputTokens,
475
+ ...count(u.totalTokens) !== void 0 ? { totalTokens: count(u.totalTokens) } : {},
474
476
  ...opt(u.cacheReadTokens) !== void 0 ? { cacheReadTokens: opt(u.cacheReadTokens) } : {},
475
477
  ...opt(u.cacheWriteTokens) !== void 0 ? { cacheWriteTokens: opt(u.cacheWriteTokens) } : {},
476
478
  ...opt(u.reasoningTokens) !== void 0 ? { reasoningTokens: opt(u.reasoningTokens) } : {},
@@ -742,4 +744,4 @@ function historyToEvents(history) {
742
744
  }
743
745
 
744
746
  export { entryForEvent as a, collapseSystemPromptEntries as c, eventsToEntries as e, historyToEvents as h, mergeEntries as m, truncate as t };
745
- //# sourceMappingURL=dsh-events.js-CyvSb4O3.js.map
747
+ //# sourceMappingURL=dsh-events.js-D9tSYE7f.js.map
@@ -1,5 +1,5 @@
1
1
  import { g as getDshConnection } from './dsh-connection.js-Lnv7PlHw.js';
2
- import { h as historyToEvents } from './dsh-events.js-CyvSb4O3.js';
2
+ import { h as historyToEvents } from './dsh-events.js-D9tSYE7f.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';
5
5
  import * as nodePath from 'node:path';
@@ -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-dOJ4Z5Hb.js.map
219
+ //# sourceMappingURL=git-probe.js-D_H3YQbR.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: "1qcnfxz"
725
+ version_hash: "s9z6hj"
726
726
  };
727
727
  async function get_hooks() {
728
728
  let handle;
@@ -745,4 +745,4 @@ async function get_hooks() {
745
745
  }
746
746
 
747
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-0AVWztiM.js.map
748
+ //# sourceMappingURL=internal.js-BzzxrDDl.js.map
@@ -1,4 +1,4 @@
1
- import { i as index_server_exports } from './internal.js-0AVWztiM.js';
1
+ import { i as index_server_exports } from './internal.js-BzzxrDDl.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';
@@ -303,4 +303,4 @@ var page = {
303
303
  };
304
304
 
305
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-C_HRp4U4.js.map
306
+ //# sourceMappingURL=state.js-BTxzeSxQ.js.map
@@ -1,7 +1,7 @@
1
1
  import { c as readA2aConfig } from './insight-config.js-XUD5BN0g.js';
2
2
  import { i as insertWaiting, o as openA2aDb, s as settleRow, p as pruneTerminalBefore, l as listWaiting } from './db.js-BylhmazO.js';
3
3
  import { g as getDshConnection } from './dsh-connection.js-Lnv7PlHw.js';
4
- import { a as entryForEvent, h as historyToEvents } from './dsh-events.js-CyvSb4O3.js';
4
+ import { a as entryForEvent, h as historyToEvents } from './dsh-events.js-D9tSYE7f.js';
5
5
 
6
6
  //#region src/lib/server/a2a/matcher.ts
7
7
  /**
@@ -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-bCH9-ZiR.js.map
473
+ //# sourceMappingURL=watcher.js-DU-MZGLU.js.map
@@ -1,5 +1,5 @@
1
1
  import { a as listRecent } from '../../../../chunks/db.js-BylhmazO.js';
2
- import { e as ensureStarted } from '../../../../chunks/watcher.js-bCH9-ZiR.js';
2
+ import { e as ensureStarted } from '../../../../chunks/watcher.js-DU-MZGLU.js';
3
3
  import { j as json } from '../../../../chunks/utils.js-CAdNO8Tu.js';
4
4
  import '../../../../chunks/insight-config.js-XUD5BN0g.js';
5
5
  import '../../../../chunks/config.js-B0w1-uCA.js';
@@ -11,7 +11,7 @@ import 'yaml';
11
11
  import '../../../../chunks/settings-home2.js-f75-B6RI.js';
12
12
  import 'node:sqlite';
13
13
  import '../../../../chunks/dsh-connection.js-Lnv7PlHw.js';
14
- import '../../../../chunks/dsh-events.js-CyvSb4O3.js';
14
+ import '../../../../chunks/dsh-events.js-D9tSYE7f.js';
15
15
  import '../../../../chunks/shared.js-HQ0rfhm4.js';
16
16
  import '../../../../chunks/uneval.js-BJ9Qq2SF.js';
17
17
 
@@ -60,4 +60,4 @@ var GET = ({ url }) => {
60
60
  };
61
61
 
62
62
  export { GET };
63
- //# sourceMappingURL=_server.ts.js-CqAXkMAm.js.map
63
+ //# sourceMappingURL=_server.ts.js-BvEDeAhP.js.map
@@ -1,6 +1,6 @@
1
1
  import { c as readA2aConfig } from '../../../../../chunks/insight-config.js-XUD5BN0g.js';
2
2
  import { g as getDshConnection } from '../../../../../chunks/dsh-connection.js-Lnv7PlHw.js';
3
- import { c as configureWatcher, r as registerWatch } from '../../../../../chunks/watcher.js-bCH9-ZiR.js';
3
+ import { c as configureWatcher, r as registerWatch } from '../../../../../chunks/watcher.js-DU-MZGLU.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-B0w1-uCA.js';
@@ -12,7 +12,7 @@ import 'yaml';
12
12
  import '../../../../../chunks/settings-home2.js-f75-B6RI.js';
13
13
  import '../../../../../chunks/db.js-BylhmazO.js';
14
14
  import 'node:sqlite';
15
- import '../../../../../chunks/dsh-events.js-CyvSb4O3.js';
15
+ import '../../../../../chunks/dsh-events.js-D9tSYE7f.js';
16
16
  import '../../../../../chunks/shared.js-HQ0rfhm4.js';
17
17
  import '../../../../../chunks/uneval.js-BJ9Qq2SF.js';
18
18
 
@@ -98,4 +98,4 @@ var POST = async ({ request }) => {
98
98
  };
99
99
 
100
100
  export { POST };
101
- //# sourceMappingURL=_server.ts.js-FBi0PplP.js.map
101
+ //# sourceMappingURL=_server.ts.js-DLJ4sQBq.js.map
@@ -1,5 +1,5 @@
1
1
  import { g as getDshConnection, s as statusFor, m as mapRpcFailure } from '../../../../../../../chunks/dsh-connection.js-Lnv7PlHw.js';
2
- import { h as historyToEvents, e as eventsToEntries, a as entryForEvent } from '../../../../../../../chunks/dsh-events.js-CyvSb4O3.js';
2
+ import { h as historyToEvents, e as eventsToEntries, a as entryForEvent } from '../../../../../../../chunks/dsh-events.js-D9tSYE7f.js';
3
3
  import { f as filterKnobEvents, p as permissionFromProjection } from '../../../../../../../chunks/permission-state.js-B7UpAHBv.js';
4
4
  import { i as imageLimitsFromProjection } from '../../../../../../../chunks/image-limits.js-CUdJ0f7r.js';
5
5
  import { g as goalFromProjection } from '../../../../../../../chunks/goal-projection.js-0_34t60K.js';
@@ -212,4 +212,4 @@ var GET = async ({ params, url, setHeaders }) => {
212
212
  };
213
213
 
214
214
  export { GET };
215
- //# sourceMappingURL=_server.ts.js-CYZUxBob.js.map
215
+ //# sourceMappingURL=_server.ts.js-vydjdEkJ.js.map
@@ -1,5 +1,5 @@
1
1
  import { g as getDshConnection, s as statusFor, m as mapRpcFailure } from '../../../../../../../chunks/dsh-connection.js-Lnv7PlHw.js';
2
- import { h as historyToEvents, e as eventsToEntries } from '../../../../../../../chunks/dsh-events.js-CyvSb4O3.js';
2
+ import { h as historyToEvents, e as eventsToEntries } from '../../../../../../../chunks/dsh-events.js-D9tSYE7f.js';
3
3
  import { j as json } from '../../../../../../../chunks/utils.js-CAdNO8Tu.js';
4
4
  import '../../../../../../../chunks/config.js-B0w1-uCA.js';
5
5
  import '../../../../../../../chunks/insight-config.js-XUD5BN0g.js';
@@ -54,4 +54,4 @@ var GET = async ({ params, url, setHeaders }) => {
54
54
  };
55
55
 
56
56
  export { GET };
57
- //# sourceMappingURL=_server.ts.js-DGGCIii3.js.map
57
+ //# sourceMappingURL=_server.ts.js-SchAEll8.js.map
@@ -1,5 +1,5 @@
1
1
  import { s as statusFor, m as mapRpcFailure } from '../../../../../chunks/dsh-connection.js-Lnv7PlHw.js';
2
- import { g as gitGateEnabled, i as isInsideRoot } from '../../../../../chunks/git-probe.js-dOJ4Z5Hb.js';
2
+ import { g as gitGateEnabled, i as isInsideRoot } from '../../../../../chunks/git-probe.js-D_H3YQbR.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';
@@ -9,7 +9,7 @@ import '../../../../../chunks/settings-document.js-BRTO59Al.js';
9
9
  import 'node:os';
10
10
  import 'yaml';
11
11
  import '../../../../../chunks/settings-home2.js-f75-B6RI.js';
12
- import '../../../../../chunks/dsh-events.js-CyvSb4O3.js';
12
+ import '../../../../../chunks/dsh-events.js-D9tSYE7f.js';
13
13
  import '../../../../../chunks/permission-state.js-B7UpAHBv.js';
14
14
  import 'node:child_process';
15
15
  import '../../../../../chunks/shared.js-HQ0rfhm4.js';
@@ -107,4 +107,4 @@ var POST = async ({ request }) => {
107
107
  };
108
108
 
109
109
  export { POST };
110
- //# sourceMappingURL=_server.ts.js-BIOHsnn2.js.map
110
+ //# sourceMappingURL=_server.ts.js-BmEUPTSa.js.map
@@ -1,5 +1,5 @@
1
1
  import { s as statusFor, m as mapRpcFailure } from '../../../../../chunks/dsh-connection.js-Lnv7PlHw.js';
2
- import { g as gitGateEnabled, i as isInsideRoot, a as gitStatus, p as parsePorcelainStatus } from '../../../../../chunks/git-probe.js-dOJ4Z5Hb.js';
2
+ import { g as gitGateEnabled, i as isInsideRoot, a as gitStatus, p as parsePorcelainStatus } from '../../../../../chunks/git-probe.js-D_H3YQbR.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';
@@ -10,7 +10,7 @@ import '../../../../../chunks/settings-document.js-BRTO59Al.js';
10
10
  import 'node:os';
11
11
  import 'yaml';
12
12
  import '../../../../../chunks/settings-home2.js-f75-B6RI.js';
13
- import '../../../../../chunks/dsh-events.js-CyvSb4O3.js';
13
+ import '../../../../../chunks/dsh-events.js-D9tSYE7f.js';
14
14
  import '../../../../../chunks/permission-state.js-B7UpAHBv.js';
15
15
  import '../../../../../chunks/shared.js-HQ0rfhm4.js';
16
16
  import '../../../../../chunks/uneval.js-BJ9Qq2SF.js';
@@ -311,4 +311,4 @@ var GET = async ({ url, request }) => {
311
311
  };
312
312
 
313
313
  export { GET };
314
- //# sourceMappingURL=_server.ts.js-BLfn9ZtS.js.map
314
+ //# sourceMappingURL=_server.ts.js-_1uYvYEA.js.map
@@ -1,5 +1,5 @@
1
1
  import { s as statusFor } from '../../../../../chunks/dsh-connection.js-Lnv7PlHw.js';
2
- import { r as resolveEnclosingRepo, i as isInsideRoot, b as gitFileHead, G as GitUnavailableError } from '../../../../../chunks/git-probe.js-dOJ4Z5Hb.js';
2
+ import { r as resolveEnclosingRepo, i as isInsideRoot, b as gitFileHead, G as GitUnavailableError } from '../../../../../chunks/git-probe.js-D_H3YQbR.js';
3
3
  import { j as json } from '../../../../../chunks/utils.js-CAdNO8Tu.js';
4
4
  import '../../../../../chunks/config.js-B0w1-uCA.js';
5
5
  import '../../../../../chunks/insight-config.js-XUD5BN0g.js';
@@ -9,7 +9,7 @@ import 'node:path';
9
9
  import 'node:os';
10
10
  import 'yaml';
11
11
  import '../../../../../chunks/settings-home2.js-f75-B6RI.js';
12
- import '../../../../../chunks/dsh-events.js-CyvSb4O3.js';
12
+ import '../../../../../chunks/dsh-events.js-D9tSYE7f.js';
13
13
  import '../../../../../chunks/permission-state.js-B7UpAHBv.js';
14
14
  import 'node:child_process';
15
15
  import '../../../../../chunks/shared.js-HQ0rfhm4.js';
@@ -76,4 +76,4 @@ var GET = async ({ url }) => {
76
76
  };
77
77
 
78
78
  export { GET };
79
- //# sourceMappingURL=_server.ts.js-p-potXo3.js.map
79
+ //# sourceMappingURL=_server.ts.js-DaXO3et9.js.map
@@ -1,5 +1,5 @@
1
1
  import { s as statusFor } from '../../../../../chunks/dsh-connection.js-Lnv7PlHw.js';
2
- import { d as detectRepos } from '../../../../../chunks/git-probe.js-dOJ4Z5Hb.js';
2
+ import { d as detectRepos } from '../../../../../chunks/git-probe.js-D_H3YQbR.js';
3
3
  import { j as json } from '../../../../../chunks/utils.js-CAdNO8Tu.js';
4
4
  import '../../../../../chunks/config.js-B0w1-uCA.js';
5
5
  import '../../../../../chunks/insight-config.js-XUD5BN0g.js';
@@ -9,7 +9,7 @@ import 'node:path';
9
9
  import 'node:os';
10
10
  import 'yaml';
11
11
  import '../../../../../chunks/settings-home2.js-f75-B6RI.js';
12
- import '../../../../../chunks/dsh-events.js-CyvSb4O3.js';
12
+ import '../../../../../chunks/dsh-events.js-D9tSYE7f.js';
13
13
  import '../../../../../chunks/permission-state.js-B7UpAHBv.js';
14
14
  import 'node:child_process';
15
15
  import '../../../../../chunks/shared.js-HQ0rfhm4.js';
@@ -64,4 +64,4 @@ var GET = async ({ url }) => {
64
64
  };
65
65
 
66
66
  export { GET };
67
- //# sourceMappingURL=_server.ts.js-DYFs7MEO.js.map
67
+ //# sourceMappingURL=_server.ts.js-hp85iKSu.js.map
@@ -1,5 +1,5 @@
1
1
  import { s as statusFor } from '../../../../../chunks/dsh-connection.js-Lnv7PlHw.js';
2
- import { i as isInsideRoot, a as gitStatus, G as GitUnavailableError } from '../../../../../chunks/git-probe.js-dOJ4Z5Hb.js';
2
+ import { i as isInsideRoot, a as gitStatus, G as GitUnavailableError } from '../../../../../chunks/git-probe.js-D_H3YQbR.js';
3
3
  import { j as json } from '../../../../../chunks/utils.js-CAdNO8Tu.js';
4
4
  import '../../../../../chunks/config.js-B0w1-uCA.js';
5
5
  import '../../../../../chunks/insight-config.js-XUD5BN0g.js';
@@ -9,7 +9,7 @@ import 'node:path';
9
9
  import 'node:os';
10
10
  import 'yaml';
11
11
  import '../../../../../chunks/settings-home2.js-f75-B6RI.js';
12
- import '../../../../../chunks/dsh-events.js-CyvSb4O3.js';
12
+ import '../../../../../chunks/dsh-events.js-D9tSYE7f.js';
13
13
  import '../../../../../chunks/permission-state.js-B7UpAHBv.js';
14
14
  import 'node:child_process';
15
15
  import '../../../../../chunks/shared.js-HQ0rfhm4.js';
@@ -69,4 +69,4 @@ var GET = async ({ url }) => {
69
69
  };
70
70
 
71
71
  export { GET };
72
- //# sourceMappingURL=_server.ts.js-BB2bcMwC.js.map
72
+ //# sourceMappingURL=_server.ts.js-CPB-9252.js.map
@@ -1,5 +1,5 @@
1
1
  import { s as statusFor, m as mapRpcFailure } from '../../../../../chunks/dsh-connection.js-Lnv7PlHw.js';
2
- import { g as gitGateEnabled } from '../../../../../chunks/git-probe.js-dOJ4Z5Hb.js';
2
+ import { g as gitGateEnabled } from '../../../../../chunks/git-probe.js-D_H3YQbR.js';
3
3
  import { j as json } from '../../../../../chunks/utils.js-CAdNO8Tu.js';
4
4
  import '../../../../../chunks/config.js-B0w1-uCA.js';
5
5
  import '../../../../../chunks/insight-config.js-XUD5BN0g.js';
@@ -9,7 +9,7 @@ import 'node:path';
9
9
  import 'node:os';
10
10
  import 'yaml';
11
11
  import '../../../../../chunks/settings-home2.js-f75-B6RI.js';
12
- import '../../../../../chunks/dsh-events.js-CyvSb4O3.js';
12
+ import '../../../../../chunks/dsh-events.js-D9tSYE7f.js';
13
13
  import '../../../../../chunks/permission-state.js-B7UpAHBv.js';
14
14
  import 'node:child_process';
15
15
  import '../../../../../chunks/shared.js-HQ0rfhm4.js';
@@ -51,4 +51,4 @@ var GET = async ({ url }) => {
51
51
  };
52
52
 
53
53
  export { GET };
54
- //# sourceMappingURL=_server.ts.js-DFnO84k1.js.map
54
+ //# sourceMappingURL=_server.ts.js-DKqzSQBE.js.map
@@ -1,7 +1,7 @@
1
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-C_HRp4U4.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-BTxzeSxQ.js';
3
3
  import '../../chunks/uneval.js-BJ9Qq2SF.js';
4
- import '../../chunks/internal.js-0AVWztiM.js';
4
+ import '../../chunks/internal.js-BzzxrDDl.js';
5
5
  import '../../chunks/shared.js-HQ0rfhm4.js';
6
6
  import '../../chunks/exports.js-DH_tjtdv.js';
7
7
  import '../../chunks/config.js-B0w1-uCA.js';
@@ -40,4 +40,4 @@ function _error($$renderer, $$props) {
40
40
  }
41
41
 
42
42
  export { _error as default };
43
- //# sourceMappingURL=_error.svelte.js-CEmLRT9p.js.map
43
+ //# sourceMappingURL=_error.svelte.js-D3waDB7P.js.map
@@ -1,5 +1,5 @@
1
1
  import { g as getDshConnection, D as DshRpcError, i as isSubagentRejection } from '../../chunks/dsh-connection.js-Lnv7PlHw.js';
2
- import { h as historyToEvents, e as eventsToEntries } from '../../chunks/dsh-events.js-CyvSb4O3.js';
2
+ import { h as historyToEvents, e as eventsToEntries } from '../../chunks/dsh-events.js-D9tSYE7f.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';
5
5
  import { v as error } from '../../chunks/utils.js-CAdNO8Tu.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-Cqf2xfOc.js.map
86
+ //# sourceMappingURL=_page.server.ts.js-DTjoTdYK.js.map
@@ -1,13 +1,13 @@
1
- import { c as onDestroy, d as __exportAll } from '../../chunks/internal.js-0AVWztiM.js';
1
+ import { c as onDestroy, d as __exportAll } from '../../chunks/internal.js-BzzxrDDl.js';
2
2
  import { V as head, y as derived, X as bind_props, W as escape_html, Y as attr, Z as attr_style, _ as attr_class, x as setContext, $ as spread_props, a0 as attributes, a1 as clsx, a2 as ensure_array_like, a3 as element, J as getContext, a4 as stringify, a5 as html, F as run, a6 as props_id } from '../../chunks/server.js-11-pxAWV.js';
3
3
  import { U as UI_LOCALES } from '../../chunks/config.js-B0w1-uCA.js';
4
- import { m as mergeEntries, c as collapseSystemPromptEntries, t as truncate } from '../../chunks/dsh-events.js-CyvSb4O3.js';
4
+ import { m as mergeEntries, c as collapseSystemPromptEntries, t as truncate } from '../../chunks/dsh-events.js-D9tSYE7f.js';
5
5
  import { p as parseA2aSignature, m as mintA2aId, b as buildDeliveredText } from '../../chunks/a2a-protocol.js-C77mVg2Q.js';
6
6
  import { b as applyKnobEvent, E as EMPTY_KNOBS, r as resolvePermission, l as localPermission, c as presetLabel, d as presetDescription, C as CUSTOM_PRESET, F as FULL_ACCESS_PRESET } from '../../chunks/permission-state.js-B7UpAHBv.js';
7
7
  import { D as DEFAULT_IMAGE_LIMITS } from '../../chunks/image-limits.js-CUdJ0f7r.js';
8
8
  import { a as appConfig, t as triggerMode, g as getTrigger, p as previewSegments, i as isValidTagWord, b as textPreviewOf, s as searchKey, c as shouldRecordPrompt, d as parseTagWords } from '../../chunks/app-config.svelte.js-BBPHOX4N.js';
9
9
  import { c as getLocale } from '../../chunks/runtime.js-CCJi3XaY.js';
10
- import { p as page, a as afterNavigate, t, c as replaceState, e as currentLocale, u as unexpectederror1, s as sessionnotfound2, r as reapednote1, d as dshunreachable1, b as backtoworkspace2 } from '../../chunks/state.js-C_HRp4U4.js';
10
+ import { p as page, a as afterNavigate, t, c as replaceState, e as currentLocale, u as unexpectederror1, s as sessionnotfound2, r as reapednote1, d as dshunreachable1, b as backtoworkspace2 } from '../../chunks/state.js-BTxzeSxQ.js';
11
11
  import 'yaml';
12
12
  import 'html-to-image';
13
13
  import hljs from 'highlight.js/lib/core';
@@ -5398,6 +5398,70 @@ var imageskepthint2 = ((inputs = {}, options = {}) => {
5398
5398
  return en_imageskepthint2();
5399
5399
  });
5400
5400
  //#endregion
5401
+ //#region src/lib/paraglide/messages/impliedmarker1.js
5402
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
5403
+ /** @typedef {{}} Impliedmarker1Inputs */
5404
+ var en_impliedmarker1 = () => {
5405
+ return `~ implied`;
5406
+ };
5407
+ var zh_impliedmarker1 = () => {
5408
+ return `~推算`;
5409
+ };
5410
+ var id_impliedmarker1 = () => {
5411
+ return `~ implisit`;
5412
+ };
5413
+ var es_impliedmarker1 = () => {
5414
+ return `~ implícita`;
5415
+ };
5416
+ /**
5417
+ * | output |
5418
+ * | --- |
5419
+ * | "~ implied" |
5420
+ *
5421
+ * @param {Impliedmarker1Inputs} inputs
5422
+ * @param {{ locale?: "en" | "zh" | "id" | "es" }} options
5423
+ * @returns {LocalizedString}
5424
+ */
5425
+ var impliedmarker1 = ((inputs = {}, options = {}) => {
5426
+ const locale = options.locale ?? getLocale();
5427
+ if (locale === "zh") return zh_impliedmarker1();
5428
+ if (locale === "id") return id_impliedmarker1();
5429
+ if (locale === "es") return es_impliedmarker1();
5430
+ return en_impliedmarker1();
5431
+ });
5432
+ //#endregion
5433
+ //#region src/lib/paraglide/messages/impliednote1.js
5434
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
5435
+ /** @typedef {{}} Impliednote1Inputs */
5436
+ var en_impliednote1 = () => {
5437
+ return `Derived from the provider total — not provider-reported.`;
5438
+ };
5439
+ var zh_impliednote1 = () => {
5440
+ return `由提供商总计推算得出,非提供商直接上报。`;
5441
+ };
5442
+ var id_impliednote1 = () => {
5443
+ return `Dihitung dari total penyedia — bukan dilaporkan penyedia.`;
5444
+ };
5445
+ var es_impliednote1 = () => {
5446
+ return `Derivada del total del proveedor — no informada por el proveedor.`;
5447
+ };
5448
+ /**
5449
+ * | output |
5450
+ * | --- |
5451
+ * | "Derived from the provider total — not provider-reported." |
5452
+ *
5453
+ * @param {Impliednote1Inputs} inputs
5454
+ * @param {{ locale?: "en" | "zh" | "id" | "es" }} options
5455
+ * @returns {LocalizedString}
5456
+ */
5457
+ var impliednote1 = ((inputs = {}, options = {}) => {
5458
+ const locale = options.locale ?? getLocale();
5459
+ if (locale === "zh") return zh_impliednote1();
5460
+ if (locale === "id") return id_impliednote1();
5461
+ if (locale === "es") return es_impliednote1();
5462
+ return en_impliednote1();
5463
+ });
5464
+ //#endregion
5401
5465
  //#region src/lib/paraglide/messages/injectedfiles1.js
5402
5466
  /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
5403
5467
  /** @typedef {{ n: NonNullable<unknown> }} Injectedfiles1Inputs */
@@ -13442,6 +13506,8 @@ var _index_exports = /* @__PURE__ */ __exportAll({
13442
13506
  hideTurnWork: () => hideturnwork2,
13443
13507
  iUnderstandFullAccess: () => iunderstandfullaccess3,
13444
13508
  imagesKeptHint: () => imageskepthint2,
13509
+ impliedMarker: () => impliedmarker1,
13510
+ impliedNote: () => impliednote1,
13445
13511
  injectedFiles: () => injectedfiles1,
13446
13512
  injectedTitle: () => injectedtitle1,
13447
13513
  label: () => label,
@@ -13865,6 +13931,8 @@ var messages_exports = /* @__PURE__ */ __exportAll({
13865
13931
  hideTurnWork: () => hideturnwork2,
13866
13932
  iUnderstandFullAccess: () => iunderstandfullaccess3,
13867
13933
  imagesKeptHint: () => imageskepthint2,
13934
+ impliedMarker: () => impliedmarker1,
13935
+ impliedNote: () => impliednote1,
13868
13936
  injectedFiles: () => injectedfiles1,
13869
13937
  injectedTitle: () => injectedtitle1,
13870
13938
  label: () => label,
@@ -22125,7 +22193,7 @@ function TurnUsagePanel($$renderer, $$props) {
22125
22193
  let { usage: usage$1, class: className = "" } = $$props;
22126
22194
  let open = false;
22127
22195
  const exact = (n) => n.toLocaleString("en-US");
22128
- const total = derived(() => usage$1.inputTokens + (usage$1.cacheReadTokens ?? 0) + (usage$1.cacheWriteTokens ?? 0) + usage$1.outputTokens);
22196
+ const total = derived(() => usage$1.totalTokens ?? usage$1.inputTokens + (usage$1.cacheReadTokens ?? 0) + (usage$1.cacheWriteTokens ?? 0) + usage$1.outputTokens);
22129
22197
  $$renderer.push(`<span data-svelte="TurnUsagePanel"${attr_class(clsx(className))} data-testid="turn-usage"><button type="button" class="inline cursor-pointer rounded border-none bg-transparent p-0 align-bottom font-inherit text-[10px] leading-none text-text-muted/60 hover:text-text-muted group-hover/bubble:text-[#7c3aed] hover:group-hover/bubble:text-[#7c3aed]" aria-haspopup="dialog"${attr("aria-expanded", open)}>${escape_html(t(usage))} ${escape_html(exact(total()))} tok</button> `);
22130
22198
  $$renderer.push("<!--[-1-->");
22131
22199
  $$renderer.push(`<!--]--></span>`);
@@ -24555,9 +24623,11 @@ function turnUsage(entries) {
24555
24623
  const cacheRead = sum((u) => u.cacheReadTokens);
24556
24624
  const cacheWrite = sum((u) => u.cacheWriteTokens);
24557
24625
  const reasoning = sum((u) => u.reasoningTokens);
24626
+ const total = sum((u) => u.totalTokens);
24558
24627
  return {
24559
24628
  inputTokens: records.reduce((a, u) => a + u.inputTokens, 0),
24560
24629
  outputTokens: records.reduce((a, u) => a + u.outputTokens, 0),
24630
+ ...total !== void 0 ? { totalTokens: total } : {},
24561
24631
  ...cacheRead !== void 0 ? { cacheReadTokens: cacheRead } : {},
24562
24632
  ...cacheWrite !== void 0 ? { cacheWriteTokens: cacheWrite } : {},
24563
24633
  ...reasoning !== void 0 ? { reasoningTokens: reasoning } : {},
@@ -30997,4 +31067,4 @@ function _page($$renderer, $$props) {
30997
31067
  }
30998
31068
 
30999
31069
  export { _page as default };
31000
- //# sourceMappingURL=_page.svelte.js-UXIdc_bL.js.map
31070
+ //# sourceMappingURL=_page.svelte.js-CsfYmlsX.js.map
@@ -9,8 +9,8 @@ import * as qs from 'node:querystring';
9
9
  import { Readable } from 'node:stream';
10
10
  import { S as SvelteKitError } from './chunks/shared.js-HQ0rfhm4.js';
11
11
  import './chunks/utils.js-CAdNO8Tu.js';
12
- import { S as Server } from './index.js-C9NofOps.js';
13
- import { m as manifest } from './manifest.js-DDCEOESO.js';
12
+ import { S as Server } from './index.js-CnMCjYHC.js';
13
+ import { m as manifest } from './manifest.js-0V3eqw-_.js';
14
14
  import { env, dir, env_prefix } from '../../env.js';
15
15
  import { format } from 'node:url';
16
16
 
@@ -1732,4 +1732,4 @@ const handler = sequence(
1732
1732
  );
1733
1733
 
1734
1734
  export { format_listening_address as f, handler as h, polka as p };
1735
- //# sourceMappingURL=handler-BJ9--VUv.js.map
1735
+ //# sourceMappingURL=handler-B6-GSygl.js.map
@@ -1,4 +1,4 @@
1
- import { _ as __commonJSMin, o as options, s as set_private_env, a as set_public_env, g as get_hooks, p as public_env, r as read_implementation, b as set_read_implementation } from './chunks/internal.js-0AVWztiM.js';
1
+ import { _ as __commonJSMin, o as options, s as set_private_env, a as set_public_env, g as get_hooks, p as public_env, r as read_implementation, b as set_read_implementation } from './chunks/internal.js-BzzxrDDl.js';
2
2
  import { n as noop, T as TRAILING_SLASH_PARAM, I as INVALIDATED_PARAM, R as Redirect, b as get_relative_path, S as SvelteKitError, g as get_status, t as text_encoder, o as once, H as HttpError, d as normalize_error, e as create_remote_key, f as parse_remote_arg, s as stringify, h as stringify$1, A as ActionFailure, i as split_remote_key, j as base64_encode } from './chunks/shared.js-HQ0rfhm4.js';
3
3
  import { b as base, o as override, a as assets, r as reset, c as app_dir } from './chunks/internal2.js-BcS47nI-.js';
4
4
  import { f as format_server_error, j as json, i as is_form_content_type, t as text, h as has_prerendered_path, a as handle_fatal_error, r as redirect_response, g as get_set_cookies, n as negotiate, w as with_request_store, p as parseString, m as merge_tracing, b as method_not_allowed, s as static_error_page, c as handle_error_and_jsonify, d as get_global_name, e as create_replacer, k as serialize_uses, l as clarify_devalue_error, E as ENDPOINT_METHODS, P as PAGE_METHODS, o as get_node_type, q as isRedirect, u as escape_html, v as error, x as deserialize_binary_form } from './chunks/utils.js-CAdNO8Tu.js';
@@ -3861,4 +3861,4 @@ var Server = class {
3861
3861
  };
3862
3862
 
3863
3863
  export { Server as S };
3864
- //# sourceMappingURL=index.js-C9NofOps.js.map
3864
+ //# sourceMappingURL=index.js-CnMCjYHC.js.map