bazilion 0.58.1 → 0.59.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/dist/cli.js +16 -1
  2. package/dist/cli.js.map +1 -1
  3. package/dist/daemon.js +211 -77
  4. package/dist/daemon.js.map +1 -1
  5. package/dist/web/client/assets/AddProviderDialog-CbBtkgU7.js +1 -0
  6. package/dist/web/client/assets/{AgentTemplateParts-B9JD9mno.js → AgentTemplateParts-Tx0RJoDa.js} +1 -1
  7. package/dist/web/client/assets/{ConfirmDialog-D-Qk9p6V.js → ConfirmDialog-Du8-95Zj.js} +1 -1
  8. package/dist/web/client/assets/{ConnectionsView-Dfbn7vfB.js → ConnectionsView-Dg9kLuab.js} +1 -1
  9. package/dist/web/client/assets/{SkillsParts-DN_JvpRU.js → SkillsParts-TYzEfrVu.js} +1 -1
  10. package/dist/web/client/assets/{SpawnTeamModal-Btj3My2v.js → SpawnTeamModal-Dr98zpUf.js} +1 -1
  11. package/dist/web/client/assets/{TeamForm-BX_68QZQ.js → TeamForm-DaH5H-LF.js} +1 -1
  12. package/dist/web/client/assets/{TeamThread-CJXudrt6.js → TeamThread-DmtbrFq1.js} +1 -1
  13. package/dist/web/client/assets/{UnsavedChangesGuard-B_e5_ck_.js → UnsavedChangesGuard-fvP4Xr0R.js} +1 -1
  14. package/dist/web/client/assets/{_id-BJt13p-G.js → _id--1i1fY0o.js} +1 -1
  15. package/dist/web/client/assets/{_id-DoP6Mlct.js → _id-C_s4pMAk.js} +1 -1
  16. package/dist/web/client/assets/{access-DnkUj0iM.js → access-99X0FS-H.js} +1 -1
  17. package/dist/web/client/assets/{agents-CrfF2ZOS.js → agents-CDJMwJL1.js} +1 -1
  18. package/dist/web/client/assets/{agents-Cv07gKT0.js → agents-DVAJFWJI.js} +1 -1
  19. package/dist/web/client/assets/{attention-TQpP915m.js → attention-CDzRuQGN.js} +1 -1
  20. package/dist/web/client/assets/{config-CKPln0Ng.js → config-9GESe8FI.js} +1 -1
  21. package/dist/web/client/assets/{index-Bwz8tnmS.js → index-DkK2xZ2o.js} +2 -2
  22. package/dist/web/client/assets/{login-C-FCzcQU.js → login-DUmrDZjN.js} +1 -1
  23. package/dist/web/client/assets/{manage-BSGsiEPw.js → manage-D6zhY8hA.js} +1 -1
  24. package/dist/web/client/assets/{mcp-DDw8SGMV.js → mcp-ByioWHXZ.js} +1 -1
  25. package/dist/web/client/assets/routes-DEMmBJiz.js +85 -0
  26. package/dist/web/client/assets/{skills-H_AVE6G7.js → skills-a52e5W9Z.js} +1 -1
  27. package/dist/web/client/assets/{style-HG30duye.js → style-CiyV21dp.js} +1 -1
  28. package/dist/web/client/assets/styles-B-X0olFi.css +2 -0
  29. package/dist/web/client/assets/{system-C7vZKVdU.js → system-wJXOiU47.js} +1 -1
  30. package/dist/web/client/assets/{teams-Dcy3Wb4u.js → teams-vRmMRnY_.js} +1 -1
  31. package/dist/web/client/assets/{teams-DcxoMrsV.js → teams-wLJHtFW_.js} +1 -1
  32. package/dist/web/client/assets/telegram-CUsT8ZzL.js +1 -0
  33. package/dist/web/client/assets/{tools-BNZxmJJk.js → tools-NMtdwKi0.js} +1 -1
  34. package/dist/web/client/assets/{usage-BhqvXWtk.js → usage-DiIpfPPk.js} +1 -1
  35. package/dist/web/client/assets/{welcome-4H9Gvu-u.js → welcome-BWN0jtZP.js} +1 -1
  36. package/dist/web/server/assets/{AddProviderDialog-Bqsz5NaL.js → AddProviderDialog-CxwjFPVY.js} +3 -3
  37. package/dist/web/server/assets/{AgentTemplateParts-D97gKNdN.js → AgentTemplateParts-CDDoX_bG.js} +5 -5
  38. package/dist/web/server/assets/{ConfigPage-CrxctbtN.js → ConfigPage-DwbP35aS.js} +2 -2
  39. package/dist/web/server/assets/{ConfirmDialog-CuD5HXTw.js → ConfirmDialog-CR_DTRpW.js} +1 -1
  40. package/dist/web/server/assets/{ConnectionsView-CSf83J-v.js → ConnectionsView-CplWLHII.js} +4 -4
  41. package/dist/web/server/assets/{Dialog-CwAfaXpM.js → Dialog-B2ZAk0JC.js} +1 -1
  42. package/dist/web/server/assets/{ManagePage-DGYNJ6XG.js → ManagePage-DSzEP6tP.js} +2 -2
  43. package/dist/web/server/assets/{ModelMenu-DEJoYASj.js → ModelMenu-BgIvpkO0.js} +1 -1
  44. package/dist/web/server/assets/{SectionTabs--vMBvaUz.js → SectionTabs-B56iIxRj.js} +1 -1
  45. package/dist/web/server/assets/{SkillsParts-hjS9a_Ht.js → SkillsParts-Bf5aGuER.js} +5 -5
  46. package/dist/web/server/assets/{SpawnDialog-BjVZl7xK.js → SpawnDialog-Fsdom-ur.js} +4 -4
  47. package/dist/web/server/assets/{SpawnTeamModal-BmBXqfFi.js → SpawnTeamModal-Zz03rkBZ.js} +4 -4
  48. package/dist/web/server/assets/{TeamForm-B4702hBg.js → TeamForm-DwXwjZWb.js} +4 -4
  49. package/dist/web/server/assets/{UnsavedChangesGuard-Be8EqfV_.js → UnsavedChangesGuard-BEtAdwza.js} +1 -1
  50. package/dist/web/server/assets/{_id-VqiN2zRR.js → _id-D1USZSkO.js} +9 -9
  51. package/dist/web/server/assets/{_id-BWtcQovD.js → _id-Dkx7QsM_.js} +1 -1
  52. package/dist/web/server/assets/{_id-DBhvSxVl.js → _id-R5F7ISnu.js} +1 -1
  53. package/dist/web/server/assets/{_id-TT_ZsaSc.js → _id-gh-ba9YO.js} +10 -10
  54. package/dist/web/server/assets/{_id-CKBQM7LH.js → _id-sS3ozDuV.js} +1 -1
  55. package/dist/web/server/assets/{_tanstack-start-manifest_v-Df5LTm5g.js → _tanstack-start-manifest_v-Be9mOSxg.js} +57 -57
  56. package/dist/web/server/assets/{access-Bog7dbtP.js → access-BcKK4G_w.js} +1 -1
  57. package/dist/web/server/assets/{access-C5lXP5JS.js → access-CftAsKX6.js} +5 -5
  58. package/dist/web/server/assets/{agents-DDUHE3eY.js → agents-BAlP1gc_.js} +8 -8
  59. package/dist/web/server/assets/{agents-8XZAjHh0.js → agents-BBQyhQz7.js} +7 -7
  60. package/dist/web/server/assets/{agents-Co6S2Ml9.js → agents-Bgo3LnIL.js} +1 -1
  61. package/dist/web/server/assets/{agents-BepbikC0.js → agents-CSMQtQCr.js} +1 -1
  62. package/dist/web/server/assets/{agents-DnUK-7qJ.js → agents-CvU8ljqt.js} +1 -1
  63. package/dist/web/server/assets/{agents-CKkMouJX.js → agents-DlxkPC-q.js} +1 -1
  64. package/dist/web/server/assets/{attention-n8edCJBL.js → attention-CHqUjESP.js} +5 -5
  65. package/dist/web/server/assets/{attention--1dBWt0c.js → attention-rfqLfyDE.js} +1 -1
  66. package/dist/web/server/assets/{config-BpwsF11b.js → config-CraGjaZB.js} +1 -1
  67. package/dist/web/server/assets/{config-UHRqSrh4.js → config-DSBJKiDX.js} +7 -7
  68. package/dist/web/server/assets/{form-Bwsyt9OY.js → form-BGif16IN.js} +2 -2
  69. package/dist/web/server/assets/{manage-C7ss0xG5.js → manage-CfDQUV7j.js} +1 -1
  70. package/dist/web/server/assets/{mcp-CUoF4jIO.js → mcp-RKq9Cj-h.js} +6 -6
  71. package/dist/web/server/assets/{mcp-COn047tO.js → mcp-VCW2SGMk.js} +1 -1
  72. package/dist/web/server/assets/{parts-B0wbj_yK.js → parts-BpwHijPN.js} +1 -1
  73. package/dist/web/server/assets/{router-q3PwQgDH.js → router-BER0FKkT.js} +22 -22
  74. package/dist/web/server/assets/{routes-BgjikzXy.js → routes-BYmi9O0B.js} +2 -0
  75. package/dist/web/server/assets/{routes-Do8a2liK.js → routes-DSIwTrHI.js} +241 -104
  76. package/dist/web/server/assets/{routes-DRtxA9c1.js → routes-qtTyGHXK.js} +1 -1
  77. package/dist/web/server/assets/{skills-D5oN5ehC.js → skills-DM_Qcvqk.js} +7 -7
  78. package/dist/web/server/assets/{skills-DouMCq_2.js → skills-DZI56DdW.js} +1 -1
  79. package/dist/web/server/assets/{style-BgFXDhAR.js → style-DuiMhwn4.js} +1 -1
  80. package/dist/web/server/assets/{system-4WV2pOS4.js → system-Bx-_Vfss.js} +1 -1
  81. package/dist/web/server/assets/{system-DtGHi7X7.js → system-C_kmuned.js} +3 -3
  82. package/dist/web/server/assets/{teams-BnsbH4YW.js → teams-BL_lLFPd.js} +8 -8
  83. package/dist/web/server/assets/{teams-Blfyu8ej.js → teams-Bd6J6rHj.js} +1 -1
  84. package/dist/web/server/assets/{teams-QVxXJfo7.js → teams-CRGLRUp9.js} +1 -1
  85. package/dist/web/server/assets/{teams-gzY3tOtu.js → teams-fQEKru2G.js} +7 -7
  86. package/dist/web/server/assets/{telegram-CIbuQ5-U.js → telegram-CpHjomwG.js} +1 -1
  87. package/dist/web/server/assets/{telegram-Ctj5dqvs.js → telegram-Do0oUOXQ.js} +6 -6
  88. package/dist/web/server/assets/{tools-x_DQTQtE.js → tools-CMXn8htp.js} +5 -5
  89. package/dist/web/server/assets/{tools-Dn6RnOFu.js → tools-Ctckgev8.js} +1 -1
  90. package/dist/web/server/assets/{usage-CeiyPffw.js → usage-DaV-iwEz.js} +1 -1
  91. package/dist/web/server/assets/{usage-Dsi2V9Wh.js → usage-sZ4SFz36.js} +3 -3
  92. package/dist/web/server/assets/{welcome-C71pZOQ9.js → welcome-BhfLQBOr.js} +1 -1
  93. package/dist/web/server/assets/{welcome-A2Koo4HI.js → welcome-Dz5zfvV2.js} +3 -3
  94. package/dist/web/server/server.js +6 -6
  95. package/dist/worker.js +71 -16
  96. package/dist/worker.js.map +1 -1
  97. package/package.json +1 -1
  98. package/dist/web/client/assets/AddProviderDialog-DIxB5CRz.js +0 -1
  99. package/dist/web/client/assets/routes-C5KzZ73E.js +0 -85
  100. package/dist/web/client/assets/styles-DyFDuWBI.css +0 -2
  101. package/dist/web/client/assets/telegram-CUw1r_J5.js +0 -1
@@ -1,27 +1,27 @@
1
1
  import { a as apiFetch, i as api, n as useLive, o as errorMessage, r as ApiError } from "./live-DbJeq6KP.js";
2
2
  import { a as useActivity, c as lineChange, i as teamSummary, l as parseArgs, o as useActivityOptional, r as shortTime, s as describeStep, t as ActivityProvider, u as summarizeSteps } from "./activity-Czfq-5_F.js";
3
3
  import { d as DEFAULT_TEAM_ID, h as chosenName, i as isTextPreview, p as REASONING_LEVELS, r as usageSummary, u as DEFAULT_PROFILE_ID } from "./src-ErO6nYmi.js";
4
- import { D as MODE_NAME, O as MODE_SENTENCE, S as slugify, _ as skillState, x as slugProblem } from "./manage-C7ss0xG5.js";
4
+ import { D as MODE_NAME, O as MODE_SENTENCE, S as slugify, _ as skillState, x as slugProblem } from "./manage-CfDQUV7j.js";
5
5
  import { n as useMediaQuery, r as useResource, t as useHydrated } from "./use-resource-BjN1uJoL.js";
6
6
  import { t as AgentAvatar } from "./AgentAvatar-8gTAy_tP.js";
7
7
  import { t as Button } from "./Button-Dsnw22OF.js";
8
- import { l as modelName, m as revealInStrip, n as ModelMenu, p as cn, t as MODELS_PATH } from "./ModelMenu-DEJoYASj.js";
9
- import { i as restoreDialogFocus, n as DialogActions, r as getDialogFocusRestoreTarget, t as Dialog$1 } from "./Dialog-CwAfaXpM.js";
10
- import { t as ConfirmDialog } from "./ConfirmDialog-CuD5HXTw.js";
8
+ import { h as revealInStrip, m as cn, n as ModelMenu, s as formatContext$1, t as MODELS_PATH, u as modelName } from "./ModelMenu-BgIvpkO0.js";
9
+ import { i as restoreDialogFocus, n as DialogActions, r as getDialogFocusRestoreTarget, t as Dialog$1 } from "./Dialog-B2ZAk0JC.js";
10
+ import { t as ConfirmDialog } from "./ConfirmDialog-CR_DTRpW.js";
11
11
  import { t as Segmented } from "./Segmented-3ZLdqa5U.js";
12
- import { t as UnsavedChangesGuard } from "./UnsavedChangesGuard-Be8EqfV_.js";
12
+ import { t as UnsavedChangesGuard } from "./UnsavedChangesGuard-BEtAdwza.js";
13
13
  import { a as trafficByPair, c as FocusFrame, d as useWorkspace, f as useWorkspaceOptional, i as pairKey, l as useTeamCounts, n as useTeamMessages, o as STATE_DOT, r as messageText, s as STATE_TEXT, t as TeamThread, u as WorkspaceProvider } from "./TeamThread-BGl5z8_I.js";
14
14
  import { a as isAgentSection, i as PANEL_TABS, l as writePanelCookie, o as isTeamSection, r as PANEL_LABELS } from "./workspace-0XPILV1W.js";
15
15
  import { i as useAttentionCount, n as usePageTitle } from "./page-title-PTpFHXWo.js";
16
- import { _ as RowMenu, a as CardForm, b as Switch, c as CardToolbar, d as Chip, f as Fact, g as Notice, h as ListRow, i as CardEmpty, n as CARD_ROW, o as CardList, p as Facts, r as CardBody, v as SearchField, w as StatusBadge, y as SetupCard } from "./parts-B0wbj_yK.js";
17
- import { a as neighbour, i as isTyping, n as NEW_CONVERSATION_EVENT, t as Route } from "./routes-DRtxA9c1.js";
18
- import { a as SaveBar, c as SelectMenu, d as TextField, f as saveStatus, l as SwitchRow, n as ChoiceCards, r as FilterSelect, s as SelectField, u as TextAreaField } from "./form-Bwsyt9OY.js";
19
- import { t as SpawnDialog } from "./SpawnDialog-BjVZl7xK.js";
16
+ import { _ as RowMenu, a as CardForm, b as Switch, c as CardToolbar, d as Chip, f as Fact, g as Notice, h as ListRow, i as CardEmpty, n as CARD_ROW, o as CardList, p as Facts, r as CardBody, v as SearchField, w as StatusBadge, y as SetupCard } from "./parts-BpwHijPN.js";
17
+ import { a as neighbour, i as isTyping, n as NEW_CONVERSATION_EVENT, t as Route } from "./routes-qtTyGHXK.js";
18
+ import { a as SaveBar, c as SelectMenu, d as TextField, f as saveStatus, l as SwitchRow, n as ChoiceCards, r as FilterSelect, s as SelectField, u as TextAreaField } from "./form-BGif16IN.js";
19
+ import { t as SpawnDialog } from "./SpawnDialog-Fsdom-ur.js";
20
20
  import { i as unarchiveAgent, n as deleteAgent, r as renameAgent, t as archiveAgent } from "./agent-actions-ChH7Mne4.js";
21
- import { t as SpawnTeamModal } from "./SpawnTeamModal-BmBXqfFi.js";
22
- import { t as TeamForm } from "./TeamForm-B4702hBg.js";
21
+ import { t as SpawnTeamModal } from "./SpawnTeamModal-Zz03rkBZ.js";
22
+ import { t as TeamForm } from "./TeamForm-DwXwjZWb.js";
23
23
  import { n as isGroupOpen, r as writeOpenGroupsCookie } from "./open-groups-lUX_YX9X.js";
24
- import { n as FindingsNotice, t as FindingLines } from "./SkillsParts-hjS9a_Ht.js";
24
+ import { n as FindingsNotice, t as FindingLines } from "./SkillsParts-Bf5aGuER.js";
25
25
  import { Fragment, Suspense, createContext, lazy, useCallback, useContext, useEffect, useId, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
26
26
  import { Link, useNavigate, useRouter } from "@tanstack/react-router";
27
27
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
@@ -3063,16 +3063,9 @@ function rememberedPlace(key) {
3063
3063
  * Remember where the reader is in `log`, under `key()` as it is when they scroll, and put them
3064
3064
  * back there once `ready` (the messages are on screen), unless `skip` (a search result opens the
3065
3065
  * conversation at its message instead). `onRestored` hears of a place put back that is not the
3066
- * end, so the caller stops following new output. Call it before the effect that follows the end,
3067
- * and spread what it returns on the log.
3068
- *
3069
- * The router keeps the pixel offset of every element it saw scroll, by its id or else by where it
3070
- * stands in the page, and puts it back after each navigation, after this hook has. Every
3071
- * conversation stands in the same place, so one Agent's offset would land on the next one's log.
3072
- * An id of this log's own, new for every pane, means the router never finds it again.
3066
+ * end, so the caller stops following new output. Call it before the effect that follows the end.
3073
3067
  */
3074
3068
  function useTranscriptPlace(log, key, { ready, skip, onRestored }) {
3075
- const id = useId();
3076
3069
  const keyRef = useRef(key);
3077
3070
  keyRef.current = key;
3078
3071
  const restored = useRef(false);
@@ -3105,7 +3098,6 @@ function useTranscriptPlace(log, key, { ready, skip, onRestored }) {
3105
3098
  window.cancelAnimationFrame(pending.current);
3106
3099
  saveNow.current();
3107
3100
  }, []);
3108
- return { "data-scroll-restoration-id": `conversation${id}` };
3109
3101
  }
3110
3102
  //#endregion
3111
3103
  //#region src/components/chat/AgentQuestions.tsx
@@ -3300,7 +3292,7 @@ function draftEntry(text, attachments) {
3300
3292
  * answer them grouped into one tool box. Saved results and images are deliverables, so they stand
3301
3293
  * outside the box.
3302
3294
  */
3303
- function projectMessages(messages) {
3295
+ function projectMessages(messages, compactions = []) {
3304
3296
  const entries = [];
3305
3297
  let openTool = null;
3306
3298
  const toolBox = () => {
@@ -3313,56 +3305,71 @@ function projectMessages(messages) {
3313
3305
  }
3314
3306
  return openTool;
3315
3307
  };
3316
- for (const message of messages) if (message.role === "user") {
3317
- openTool = null;
3318
- entries.push({
3319
- type: "user",
3320
- content: message.content,
3321
- ...message.images?.length ? { images: message.images } : {}
3322
- });
3323
- } else if (message.role === "assistant") {
3324
- if (message.content) {
3308
+ /** The dividers that stand before message `index`, in the order they happened. */
3309
+ const dividersAt = (index) => {
3310
+ for (const mark of compactions) {
3311
+ if (mark.index !== index) continue;
3325
3312
  openTool = null;
3326
3313
  entries.push({
3327
- type: "assistant",
3328
- content: message.content
3314
+ type: "compacted",
3315
+ mark
3329
3316
  });
3330
3317
  }
3331
- for (const call of message.toolCalls ?? []) toolBox().items.push({
3332
- kind: "call",
3333
- id: call.id,
3334
- name: call.name,
3335
- body: call.arguments
3336
- });
3337
- if (message.stopped) {
3318
+ };
3319
+ messages.forEach((message, index) => {
3320
+ dividersAt(index);
3321
+ if (message.role === "user") {
3338
3322
  openTool = null;
3339
3323
  entries.push({
3340
- type: "stopped",
3341
- reason: message.stopped
3324
+ type: "user",
3325
+ content: message.content,
3326
+ ...message.images?.length ? { images: message.images } : {}
3342
3327
  });
3343
- }
3344
- } else if (message.role === "tool") {
3345
- toolBox().items.push({
3346
- kind: /^error:/i.test(message.content) ? "error" : "result",
3347
- id: message.toolCallId ?? "",
3348
- name: message.toolName ?? "",
3349
- body: message.content
3350
- });
3351
- for (const result of message.results ?? []) {
3352
- entries.push({
3353
- type: "result",
3354
- resultId: result.resultId
3328
+ } else if (message.role === "assistant") {
3329
+ if (message.content) {
3330
+ openTool = null;
3331
+ entries.push({
3332
+ type: "assistant",
3333
+ content: message.content
3334
+ });
3335
+ }
3336
+ for (const call of message.toolCalls ?? []) toolBox().items.push({
3337
+ kind: "call",
3338
+ id: call.id,
3339
+ name: call.name,
3340
+ body: call.arguments
3355
3341
  });
3356
- openTool = null;
3357
- }
3358
- if (message.images?.length) {
3359
- entries.push({
3360
- type: "images",
3361
- images: message.images
3342
+ if (message.stopped) {
3343
+ openTool = null;
3344
+ entries.push({
3345
+ type: "stopped",
3346
+ reason: message.stopped
3347
+ });
3348
+ }
3349
+ } else if (message.role === "tool") {
3350
+ toolBox().items.push({
3351
+ kind: message.isError || /^error:/i.test(message.content) ? "error" : "result",
3352
+ id: message.toolCallId ?? "",
3353
+ name: message.toolName ?? "",
3354
+ body: message.content
3362
3355
  });
3363
- openTool = null;
3356
+ for (const result of message.results ?? []) {
3357
+ entries.push({
3358
+ type: "result",
3359
+ resultId: result.resultId
3360
+ });
3361
+ openTool = null;
3362
+ }
3363
+ if (message.images?.length) {
3364
+ entries.push({
3365
+ type: "images",
3366
+ images: message.images
3367
+ });
3368
+ openTool = null;
3369
+ }
3364
3370
  }
3365
- }
3371
+ });
3372
+ dividersAt(messages.length);
3366
3373
  return entries;
3367
3374
  }
3368
3375
  /** Pair each call with its result. A result without its call (a cut history) stands alone. */
@@ -3523,6 +3530,15 @@ function applyEvent(entries, event) {
3523
3530
  type: "result",
3524
3531
  resultId: event.result.resultId
3525
3532
  }];
3533
+ case "compaction": {
3534
+ const entry = {
3535
+ type: "compacting",
3536
+ state: event.state,
3537
+ ...event.error ? { error: event.error } : {}
3538
+ };
3539
+ const at = entries.findLastIndex((candidate) => candidate.type === "compacting");
3540
+ return at >= 0 && entries[at]?.type === "compacting" && entries[at].state === "running" ? entries.map((candidate, index) => index === at ? entry : candidate) : [...entries, entry];
3541
+ }
3526
3542
  case "error":
3527
3543
  if (event.error === "cancelled") return [...entries, {
3528
3544
  type: "stopped",
@@ -4187,10 +4203,27 @@ function LiveOutput({ output }) {
4187
4203
  children: output
4188
4204
  });
4189
4205
  }
4206
+ /**
4207
+ * The teammate a message went to: `to` is an id, the name in the list or the name the teammate
4208
+ * gave itself, as send_message takes them (in the open Agent's Team, whatever the case).
4209
+ */
4210
+ function recipientOf(workspace, to) {
4211
+ if (!workspace || !to) return void 0;
4212
+ const byId = workspace.agentById(to);
4213
+ if (byId) return byId;
4214
+ const key = to.trim().toLowerCase();
4215
+ const team = workspace.agent?.agent.teamId;
4216
+ const named = (match) => {
4217
+ const found = workspace.agents.filter((agent) => agent.teamId === team && match(agent));
4218
+ return found.length === 1 ? found[0] : void 0;
4219
+ };
4220
+ return named((agent) => agent.name.trim().toLowerCase() === key) ?? named((agent) => chosenName(agent)?.toLowerCase() === key);
4221
+ }
4190
4222
  /** Messages to teammates: who got what, and what that teammate is doing now. */
4191
4223
  function Handoffs({ steps }) {
4192
4224
  const workspace = useWorkspaceOptional();
4193
4225
  const activity = useActivityOptional();
4226
+ const sent = steps.filter((step) => step.status !== "failed").length;
4194
4227
  return /* @__PURE__ */ jsxs("div", {
4195
4228
  className: "my-3 overflow-hidden rounded-[10px] border border-border bg-muted text-sm",
4196
4229
  children: [/* @__PURE__ */ jsxs("div", {
@@ -4202,7 +4235,7 @@ function Handoffs({ steps }) {
4202
4235
  }),
4203
4236
  /* @__PURE__ */ jsx("span", {
4204
4237
  className: "font-semibold text-foreground",
4205
- children: steps.length === 1 ? "Handed off to a teammate" : `Handed off to ${steps.length} teammates`
4238
+ children: sent === 0 ? steps.length === 1 ? "Not handed off" : "Nothing handed off" : sent === 1 ? "Handed off to a teammate" : `Handed off to ${sent} teammates`
4206
4239
  }),
4207
4240
  workspace?.team && /* @__PURE__ */ jsx(Link, {
4208
4241
  to: "/",
@@ -4214,7 +4247,7 @@ function Handoffs({ steps }) {
4214
4247
  }), steps.map((step, index) => {
4215
4248
  const args = parseArgs(step.args);
4216
4249
  const to = typeof args?.to === "string" ? args.to : "";
4217
- const recipient = workspace?.agentById(to);
4250
+ const recipient = recipientOf(workspace, to);
4218
4251
  const message = typeof args?.text === "string" ? args.text : "";
4219
4252
  const state = recipient ? activity?.stateOf(recipient.id) : void 0;
4220
4253
  return /* @__PURE__ */ jsxs("div", {
@@ -4317,7 +4350,6 @@ function WrittenFiles({ paths }) {
4317
4350
  //#endregion
4318
4351
  //#region src/components/chat/Transcript.tsx
4319
4352
  var INBOX_WAKE_PREFIX = "[[bazilion:inbox-wake]]\n";
4320
- var COMPACTION_REPLAY_PREFIX = "[conversation summary]";
4321
4353
  var noSubscription = () => () => {};
4322
4354
  /**
4323
4355
  * False during SSR and the hydration pass, true afterwards. Markdown renders as escaped text until
@@ -4391,31 +4423,17 @@ function Bubble({ entry, markdownReady, onEdit, dropped = false, approvals }) {
4391
4423
  })
4392
4424
  ]
4393
4425
  });
4394
- case "assistant":
4395
- if (entry.content.startsWith(COMPACTION_REPLAY_PREFIX)) {
4396
- const summary = entry.content.slice(22).trim();
4397
- return /* @__PURE__ */ jsx("div", {
4398
- className: `my-3 border-y border-dashed border-frost py-2 text-[0.85em] italic text-mocha-light ${dropClass}`,
4399
- children: /* @__PURE__ */ jsxs("details", { children: [/* @__PURE__ */ jsx("summary", {
4400
- className: "cursor-pointer select-none text-center [&::-webkit-details-marker]:hidden",
4401
- children: "— conversation summary (click to expand) —"
4402
- }), /* @__PURE__ */ jsx("div", {
4403
- className: "md-content mt-2 rounded-sm bg-frost/40 p-2 not-italic",
4404
- dangerouslySetInnerHTML: { __html: renderMd(summary, markdownReady) }
4405
- })] })
4406
- });
4407
- }
4408
- return /* @__PURE__ */ jsxs("div", {
4409
- "data-message": "",
4410
- className: `my-4 flex flex-col items-start ${dropClass}`,
4411
- children: [/* @__PURE__ */ jsx("span", {
4412
- className: "sr-only",
4413
- children: "agent"
4414
- }), /* @__PURE__ */ jsx("div", {
4415
- className: "md-content bubble-content w-full leading-[1.55] text-chocolate",
4416
- dangerouslySetInnerHTML: { __html: renderMd(entry.content, markdownReady) }
4417
- })]
4418
- });
4426
+ case "assistant": return /* @__PURE__ */ jsxs("div", {
4427
+ "data-message": "",
4428
+ className: `my-4 flex flex-col items-start ${dropClass}`,
4429
+ children: [/* @__PURE__ */ jsx("span", {
4430
+ className: "sr-only",
4431
+ children: "agent"
4432
+ }), /* @__PURE__ */ jsx("div", {
4433
+ className: "md-content bubble-content w-full leading-[1.55] text-chocolate",
4434
+ dangerouslySetInnerHTML: { __html: renderMd(entry.content, markdownReady) }
4435
+ })]
4436
+ });
4419
4437
  case "images": return /* @__PURE__ */ jsx("div", {
4420
4438
  className: `my-2 space-y-2 ${dropClass}`,
4421
4439
  children: entry.images.map((image, index) => /* @__PURE__ */ jsx("img", {
@@ -4448,8 +4466,73 @@ function Bubble({ entry, markdownReady, onEdit, dropped = false, approvals }) {
4448
4466
  className: "my-3 rounded-r-sm border-l-[3px] border-danger bg-danger/10 px-3 py-1 text-[0.92em] text-danger",
4449
4467
  children: entry.content
4450
4468
  });
4469
+ case "compacted": return /* @__PURE__ */ jsx(CompactedDivider, {
4470
+ mark: entry.mark,
4471
+ markdownReady
4472
+ });
4473
+ case "compacting": return entry.state === "failed" ? /* @__PURE__ */ jsxs("div", {
4474
+ role: "alert",
4475
+ className: "my-3 rounded-r-sm border-l-[3px] border-danger bg-danger/10 px-3 py-1 text-[0.92em] text-danger",
4476
+ children: ["Could not summarize older messages: ", entry.error]
4477
+ }) : /* @__PURE__ */ jsxs("p", {
4478
+ role: "status",
4479
+ className: "my-2 flex items-center gap-2 px-1 text-[0.85em] text-mocha",
4480
+ children: [entry.state === "running" && /* @__PURE__ */ jsx("span", {
4481
+ className: "size-[7px] animate-pulse rounded-full bg-success",
4482
+ "aria-hidden": "true"
4483
+ }), entry.state === "running" ? "Summarizing older messages to make room…" : "Older messages summarized to make room."]
4484
+ });
4451
4485
  }
4452
4486
  }
4487
+ /**
4488
+ * Where a compaction summarized the conversation. The messages above stay for the reader; the
4489
+ * Agent reads the summary in their place.
4490
+ */
4491
+ function CompactedDivider({ mark, markdownReady }) {
4492
+ const size = formatContext$1(mark.tokensBefore);
4493
+ return /* @__PURE__ */ jsxs("details", {
4494
+ className: "group my-5 text-[0.85em] text-mocha",
4495
+ children: [/* @__PURE__ */ jsxs("summary", {
4496
+ className: "flex cursor-pointer list-none items-center gap-3 rounded-md [&::-webkit-details-marker]:hidden",
4497
+ children: [
4498
+ /* @__PURE__ */ jsx("span", {
4499
+ className: "h-px flex-1 bg-fawn",
4500
+ "aria-hidden": "true"
4501
+ }),
4502
+ /* @__PURE__ */ jsxs("span", {
4503
+ className: "min-w-0 text-center",
4504
+ children: [
4505
+ "Older messages summarized to make room",
4506
+ size ? ` (${size} tokens)` : "",
4507
+ " ·",
4508
+ " ",
4509
+ /* @__PURE__ */ jsx("span", {
4510
+ className: "font-semibold text-sapphire-deep group-open:hidden",
4511
+ children: "Show the summary"
4512
+ }),
4513
+ /* @__PURE__ */ jsx("span", {
4514
+ className: "hidden font-semibold text-sapphire-deep group-open:inline",
4515
+ children: "Hide the summary"
4516
+ })
4517
+ ]
4518
+ }),
4519
+ /* @__PURE__ */ jsx("span", {
4520
+ className: "h-px flex-1 bg-fawn",
4521
+ "aria-hidden": "true"
4522
+ })
4523
+ ]
4524
+ }), /* @__PURE__ */ jsxs("div", {
4525
+ className: "mt-2 rounded-[10px] border border-frost bg-muted px-3 py-2 text-chocolate",
4526
+ children: [/* @__PURE__ */ jsx("p", {
4527
+ className: "m-0 mb-1.5 text-[0.92em] text-mocha",
4528
+ children: "The Agent reads this summary in place of the messages above; they stay here for you."
4529
+ }), /* @__PURE__ */ jsx("div", {
4530
+ className: "md-content",
4531
+ dangerouslySetInnerHTML: { __html: renderMd(mark.summary, markdownReady) }
4532
+ })]
4533
+ })]
4534
+ });
4535
+ }
4453
4536
  var LONG_LINES = 14;
4454
4537
  var LONG_CHARS = 1400;
4455
4538
  var SHOWN_LINES = 8;
@@ -4527,12 +4610,12 @@ function TranscriptBlocks({ entries, notes = [], markdownReady, editableEntry =
4527
4610
  return /* @__PURE__ */ jsx(Fragment$1, { children: out });
4528
4611
  }
4529
4612
  /** A conversation's messages, read-only (an earlier conversation). */
4530
- function ReadOnlyTranscript({ messages }) {
4613
+ function ReadOnlyTranscript({ messages, compactions }) {
4531
4614
  const markdownReady = useMarkdownReady();
4532
4615
  return /* @__PURE__ */ jsx("section", {
4533
4616
  "aria-label": "Conversation history",
4534
4617
  children: /* @__PURE__ */ jsx(TranscriptBlocks, {
4535
- entries: projectMessages(messages),
4618
+ entries: projectMessages(messages, compactions),
4536
4619
  markdownReady
4537
4620
  })
4538
4621
  });
@@ -4744,7 +4827,7 @@ function useSessionSync({ agentId, base, initialSessionHead, onConversation, str
4744
4827
  try {
4745
4828
  const body = await api(`${base}/sessions/messages`);
4746
4829
  setHistoryUnavailable(body.head.unavailable ?? false);
4747
- onHistory(body.messages);
4830
+ onHistory(body);
4748
4831
  know(body.head);
4749
4832
  setStale(false);
4750
4833
  } catch {
@@ -4848,9 +4931,11 @@ function useSessionSync({ agentId, base, initialSessionHead, onConversation, str
4848
4931
  }
4849
4932
  //#endregion
4850
4933
  //#region src/components/chat/useChatSession.ts
4851
- function useChatSession({ agentId, initialMessages, initialSessionHead, onOpenLibrary, onConversation }) {
4934
+ function useChatSession({ agentId, initialMessages, initialCompactions = [], initialContext = null, initialSessionHead, onOpenLibrary, onConversation }) {
4852
4935
  const base = `/api/agents/${encodeURIComponent(agentId)}`;
4853
4936
  const [messages, setMessages] = useState(initialMessages);
4937
+ const [compactions, setCompactions] = useState(initialCompactions);
4938
+ const [context, setContext] = useState(initialContext);
4854
4939
  const [live, setLive] = useState([]);
4855
4940
  const [notes, setNotes] = useState([]);
4856
4941
  const [thinking, setThinking] = useState(false);
@@ -4879,7 +4964,9 @@ function useChatSession({ agentId, initialMessages, initialSessionHead, onOpenLi
4879
4964
  streamingRef,
4880
4965
  pushNote,
4881
4966
  onHistory: (saved) => {
4882
- setMessages(saved);
4967
+ setMessages(saved.messages);
4968
+ setCompactions(saved.compactions ?? []);
4969
+ setContext(saved.context ?? null);
4883
4970
  setLive([]);
4884
4971
  setEditing(false);
4885
4972
  }
@@ -4906,6 +4993,8 @@ function useChatSession({ agentId, initialMessages, initialSessionHead, onOpenLi
4906
4993
  if (frame.kind === "done") {
4907
4994
  approvalTurnRef.current = false;
4908
4995
  setMessages(frame.messages);
4996
+ if (frame.compactions) setCompactions(frame.compactions);
4997
+ if (frame.context) setContext(frame.context);
4909
4998
  setLive([]);
4910
4999
  setRecoveredTurn(false);
4911
5000
  resetApprovals();
@@ -4958,6 +5047,7 @@ function useChatSession({ agentId, initialMessages, initialSessionHead, onOpenLi
4958
5047
  return draft;
4959
5048
  }
4960
5049
  setMessages((current) => current.slice(0, keepCount));
5050
+ setCompactions((current) => current.filter((mark) => mark.index < keepCount));
4961
5051
  setEditing(false);
4962
5052
  }
4963
5053
  setLive([draftEntry(draft.text, draft.attachments)]);
@@ -5025,7 +5115,7 @@ function useChatSession({ agentId, initialMessages, initialSessionHead, onOpenLi
5025
5115
  setEditing(true);
5026
5116
  return messages[index]?.content ?? null;
5027
5117
  }
5028
- const history = projectMessages(messages);
5118
+ const history = projectMessages(messages, compactions);
5029
5119
  const entries = [...history, ...live];
5030
5120
  entryCountRef.current = entries.length;
5031
5121
  const lastUserEntry = history.findLastIndex((entry) => entry.type === "user");
@@ -5039,6 +5129,8 @@ function useChatSession({ agentId, initialMessages, initialSessionHead, onOpenLi
5039
5129
  thinking,
5040
5130
  turnBusy,
5041
5131
  agentBusy,
5132
+ /** How full the model's window is; null before the daemon has said. */
5133
+ context,
5042
5134
  editing,
5043
5135
  stale: sync.stale,
5044
5136
  recoveredTurn,
@@ -5070,13 +5162,15 @@ var CHAT_FRAME = "relative flex h-full flex-col overflow-hidden rounded-[16px] b
5070
5162
  function ChatPane(props) {
5071
5163
  return /* @__PURE__ */ jsx(AgentChat, { ...props }, props.agentId);
5072
5164
  }
5073
- function AgentChat({ agentId, agentName, initialMessages, initialSessionHead, header, onViewConversation, onConversationChange }) {
5165
+ function AgentChat({ agentId, agentName, initialMessages, initialCompactions, initialContext, initialSessionHead, header, onViewConversation, onConversationChange }) {
5074
5166
  const markdownReady = useMarkdownReady();
5075
5167
  const activity = useActivityOptional();
5076
5168
  const [conversationsOpen, setConversationsOpen] = useState(false);
5077
5169
  const chat = useChatSession({
5078
5170
  agentId,
5079
5171
  initialMessages,
5172
+ ...initialCompactions ? { initialCompactions } : {},
5173
+ ...initialContext !== void 0 ? { initialContext } : {},
5080
5174
  initialSessionHead,
5081
5175
  onOpenLibrary: () => setConversationsOpen(true),
5082
5176
  onConversation: onConversationChange
@@ -5112,7 +5206,7 @@ function AgentChat({ agentId, agentName, initialMessages, initialSessionHead, he
5112
5206
  replace: true
5113
5207
  });
5114
5208
  });
5115
- const logProps = useTranscriptPlace(logRef, () => placeKey(agentId, chat.conversationId()), {
5209
+ useTranscriptPlace(logRef, () => placeKey(agentId, chat.conversationId()), {
5116
5210
  ready: true,
5117
5211
  skip: Boolean(workspace?.search.find),
5118
5212
  onRestored: () => {
@@ -5182,6 +5276,7 @@ function AgentChat({ agentId, agentName, initialMessages, initialSessionHead, he
5182
5276
  }),
5183
5277
  header ? header({
5184
5278
  agentBusy: chat.agentBusy,
5279
+ context: chat.context,
5185
5280
  reload: chat.refreshHistory,
5186
5281
  conversationsOpen,
5187
5282
  setConversationsOpen
@@ -5228,7 +5323,6 @@ function AgentChat({ agentId, agentName, initialMessages, initialSessionHead, he
5228
5323
  }),
5229
5324
  /* @__PURE__ */ jsx("div", {
5230
5325
  ref: logRef,
5231
- ...logProps,
5232
5326
  onScroll: (event) => {
5233
5327
  nearBottomRef.current = isAtEnd(event.currentTarget);
5234
5328
  },
@@ -5685,7 +5779,7 @@ function shortModel(model) {
5685
5779
  function ConversationHeader({ agent, chat, panel, lastPanel }) {
5686
5780
  const { to } = useWorkspace();
5687
5781
  return /* @__PURE__ */ jsxs("div", {
5688
- className: "flex flex-wrap items-center gap-x-2.5 gap-y-2 border-b border-frost px-3 py-2.5 sm:flex-nowrap sm:px-4",
5782
+ className: "@container flex flex-wrap items-center gap-x-2.5 gap-y-2 border-b border-frost px-3 py-2.5 sm:flex-nowrap sm:px-4",
5689
5783
  children: [
5690
5784
  /* @__PURE__ */ jsx(Link, {
5691
5785
  to: "/",
@@ -5742,6 +5836,7 @@ function ConversationHeader({ agent, chat, panel, lastPanel }) {
5742
5836
  "aria-hidden": "true"
5743
5837
  })]
5744
5838
  }),
5839
+ chat && /* @__PURE__ */ jsx(WindowMeter, { context: chat.context }),
5745
5840
  /* @__PURE__ */ jsxs("div", {
5746
5841
  className: "ml-auto flex min-w-[7.75rem] shrink-[20] items-center justify-end gap-1.5",
5747
5842
  children: [/* @__PURE__ */ jsx(ConversationMenu, {
@@ -5765,6 +5860,44 @@ function ConversationHeader({ agent, chat, panel, lastPanel }) {
5765
5860
  ]
5766
5861
  });
5767
5862
  }
5863
+ /** Tokens as a short figure: 812, 41K, 1.2M. */
5864
+ function tokenFigure(tokens) {
5865
+ return tokens < 1e3 ? String(tokens) : formatContext$1(tokens) ?? String(tokens);
5866
+ }
5867
+ /**
5868
+ * How full the model's window is with this conversation: what the model read for its last reply.
5869
+ * Unknown after a compaction until the next reply; nothing when the model's window is unknown too.
5870
+ */
5871
+ function WindowMeter({ context }) {
5872
+ if (!context) return null;
5873
+ const { tokens, window } = context;
5874
+ if (tokens === null && window === null) return null;
5875
+ const share = tokens !== null && window ? Math.min(1, tokens / window) : null;
5876
+ const label = tokens === null ? `${tokenFigure(window ?? 0)} window` : window ? `${tokenFigure(tokens)} / ${tokenFigure(window)}` : tokenFigure(tokens);
5877
+ return /* @__PURE__ */ jsxs("span", {
5878
+ title: share === null ? "The size of this conversation shows after the next reply. Near the end of the window, older messages are summarized to make room." : `This conversation fills ${Math.round(share * 100)}% of the model's window. Near the end, older messages are summarized to make room.`,
5879
+ className: "hidden h-[26px] min-w-0 shrink-[2] items-center gap-1.5 rounded-full border border-border bg-muted px-2.5 text-xs text-mocha @min-[36rem]:inline-flex",
5880
+ ...share === null ? {} : {
5881
+ role: "meter",
5882
+ "aria-label": "Conversation size",
5883
+ "aria-valuemin": 0,
5884
+ "aria-valuemax": 100,
5885
+ "aria-valuenow": Math.round(share * 100),
5886
+ "aria-valuetext": `${label} tokens`
5887
+ },
5888
+ children: [share !== null && /* @__PURE__ */ jsx("span", {
5889
+ className: "h-1.5 w-8 shrink-0 overflow-hidden rounded-full bg-frost",
5890
+ "aria-hidden": "true",
5891
+ children: /* @__PURE__ */ jsx("span", {
5892
+ className: `block h-full rounded-full ${share >= .8 ? "bg-warning" : "bg-sapphire"}`,
5893
+ style: { width: `${Math.max(4, share * 100)}%` }
5894
+ })
5895
+ }), /* @__PURE__ */ jsx("span", {
5896
+ className: "min-w-0 truncate font-mono",
5897
+ children: label
5898
+ })]
5899
+ });
5900
+ }
5768
5901
  /** The Agent's conversations: read an earlier one, continue it, start a new one, rename. */
5769
5902
  function ConversationMenu({ agentId, chat }) {
5770
5903
  const { search, to } = useWorkspace();
@@ -6060,7 +6193,7 @@ function EarlierConversation({ agentId, agentName, conversationId, header }) {
6060
6193
  throw cause;
6061
6194
  }
6062
6195
  }, [path]);
6063
- const logProps = useTranscriptPlace(logRef, () => placeKey(agentId, conversationId), {
6196
+ useTranscriptPlace(logRef, () => placeKey(agentId, conversationId), {
6064
6197
  ready: opened.data !== void 0,
6065
6198
  skip: Boolean(search.find)
6066
6199
  });
@@ -6122,7 +6255,6 @@ function EarlierConversation({ agentId, agentName, conversationId, header }) {
6122
6255
  }),
6123
6256
  /* @__PURE__ */ jsx("div", {
6124
6257
  ref: logRef,
6125
- ...logProps,
6126
6258
  className: "min-h-0 flex-1 overflow-y-auto px-5 py-4",
6127
6259
  children: /* @__PURE__ */ jsxs("div", {
6128
6260
  className: "mx-auto max-w-[50rem]",
@@ -6141,7 +6273,10 @@ function EarlierConversation({ agentId, agentName, conversationId, header }) {
6141
6273
  role: "alert",
6142
6274
  className: "text-sm",
6143
6275
  children: "This conversation's history is unavailable, so it cannot be read or continued."
6144
- }) : opened.data.messages.length > 0 ? /* @__PURE__ */ jsx(ReadOnlyTranscript, { messages: opened.data.messages }) : /* @__PURE__ */ jsx("p", {
6276
+ }) : opened.data.messages.length > 0 ? /* @__PURE__ */ jsx(ReadOnlyTranscript, {
6277
+ messages: opened.data.messages,
6278
+ compactions: opened.data.compactions
6279
+ }) : /* @__PURE__ */ jsx("p", {
6145
6280
  className: "py-12 text-center italic text-mocha-light",
6146
6281
  children: "This conversation is empty."
6147
6282
  }))
@@ -9764,7 +9899,7 @@ function WaitingRow({ agent, team, text }) {
9764
9899
  //#endregion
9765
9900
  //#region src/routes/index.tsx?tsr-split=component
9766
9901
  /** The rail's open/closed Teams; a bad cookie is ignored. */
9767
- var ConnectionsView = lazy(() => import("./ConnectionsView-CSf83J-v.js").then((module) => ({ default: module.ConnectionsView })));
9902
+ var ConnectionsView = lazy(() => import("./ConnectionsView-CplWLHII.js").then((module) => ({ default: module.ConnectionsView })));
9768
9903
  function WorkspacePage() {
9769
9904
  const data = Route.useLoaderData();
9770
9905
  const search = Route.useSearch();
@@ -9967,6 +10102,8 @@ function WorkspacePage() {
9967
10102
  agentId: open.agent.id,
9968
10103
  agentName: open.agent.name,
9969
10104
  initialMessages: selected.messages,
10105
+ initialCompactions: selected.compactions,
10106
+ initialContext: selected.context,
9970
10107
  initialSessionHead: selected.head,
9971
10108
  header,
9972
10109
  onViewConversation: (id) => void router.navigate({
@@ -79,7 +79,7 @@ function neighbour(ordered, current, step) {
79
79
  }
80
80
  //#endregion
81
81
  //#region src/routes/index.tsx
82
- var $$splitComponentImporter = () => import("./routes-Do8a2liK.js");
82
+ var $$splitComponentImporter = () => import("./routes-DSIwTrHI.js");
83
83
  /** The rail's open/closed Teams; a bad cookie is ignored. */
84
84
  var fetchWorkspace = createServerFn({ method: "GET" }).validator((data) => data).handler(createSsrRpc("22325942f341b7af6fb13fa5fde2b06e1d7d91f9178205ef3eb9e5ba3c9ef2fe"));
85
85
  var Route = createFileRoute("/")({
@@ -1,12 +1,12 @@
1
1
  import { i as api } from "./live-DbJeq6KP.js";
2
- import { _ as skillState, b as skillsNeedingALook, g as skillSourceLabel, h as skillChosenBy, i as allSkillsLine, l as listed, s as count, u as matchesSkill, v as skillUseSentence } from "./manage-C7ss0xG5.js";
2
+ import { _ as skillState, b as skillsNeedingALook, g as skillSourceLabel, h as skillChosenBy, i as allSkillsLine, l as listed, s as count, u as matchesSkill, v as skillUseSentence } from "./manage-CfDQUV7j.js";
3
3
  import { t as Button } from "./Button-Dsnw22OF.js";
4
- import { r as ago } from "./ModelMenu-DEJoYASj.js";
5
- import { t as ConfirmDialog } from "./ConfirmDialog-CuD5HXTw.js";
6
- import { _ as RowMenu, c as CardToolbar, d as Chip, g as Notice, h as ListRow, i as CardEmpty, o as CardList, r as CardBody, t as Banner, v as SearchField, y as SetupCard } from "./parts-B0wbj_yK.js";
7
- import { t as Route } from "./skills-DouMCq_2.js";
8
- import { t as ManagePage } from "./ManagePage-DGYNJ6XG.js";
9
- import { n as FindingsNotice, r as ImportSkillsDialog } from "./SkillsParts-hjS9a_Ht.js";
4
+ import { r as ago } from "./ModelMenu-BgIvpkO0.js";
5
+ import { t as ConfirmDialog } from "./ConfirmDialog-CR_DTRpW.js";
6
+ import { _ as RowMenu, c as CardToolbar, d as Chip, g as Notice, h as ListRow, i as CardEmpty, o as CardList, r as CardBody, t as Banner, v as SearchField, y as SetupCard } from "./parts-BpwHijPN.js";
7
+ import { t as Route } from "./skills-DZI56DdW.js";
8
+ import { t as ManagePage } from "./ManagePage-DSzEP6tP.js";
9
+ import { n as FindingsNotice, r as ImportSkillsDialog } from "./SkillsParts-Bf5aGuER.js";
10
10
  import { useState } from "react";
11
11
  import { useRouter } from "@tanstack/react-router";
12
12
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
@@ -2,7 +2,7 @@ import { n as createServerFn } from "../server.js";
2
2
  import { t as createSsrRpc } from "./createSsrRpc-6LHNEsSK.js";
3
3
  import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
4
4
  //#region src/routes/skills/index.tsx
5
- var $$splitComponentImporter = () => import("./skills-D5oN5ehC.js");
5
+ var $$splitComponentImporter = () => import("./skills-DM_Qcvqk.js");
6
6
  var fetchSkills = createServerFn({ method: "GET" }).handler(createSsrRpc("ae1d30575b229c1e2622fbaf2252800a9a7acc84afdd68cba025ca890b8d52c5"));
7
7
  var Route = createFileRoute("/skills/")({
8
8
  loader: () => fetchSkills(),
@@ -1,4 +1,4 @@
1
- import { F as hasEdge, P as endpointLabel, k as OUTSIDE } from "./manage-C7ss0xG5.js";
1
+ import { F as hasEdge, P as endpointLabel, k as OUTSIDE } from "./manage-CfDQUV7j.js";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { Check, Minus, X } from "lucide-react";
4
4
  //#region src/components/team-policy/TeamPolicyMatrix.tsx
@@ -2,7 +2,7 @@ import { n as createServerFn } from "../server.js";
2
2
  import { t as createSsrRpc } from "./createSsrRpc-6LHNEsSK.js";
3
3
  import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
4
4
  //#region src/routes/config/system.tsx
5
- var $$splitComponentImporter = () => import("./system-DtGHi7X7.js");
5
+ var $$splitComponentImporter = () => import("./system-C_kmuned.js");
6
6
  var fetchSystem = createServerFn({ method: "GET" }).handler(createSsrRpc("58834496dff9dbc5592f06b548d9eed177e540c1be46c549dbd10fb7987403d7"));
7
7
  var Route = createFileRoute("/config/system")({
8
8
  loader: () => fetchSystem(),