bazilion 0.58.2 → 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-BaeuW_3n.js → AgentTemplateParts-Tx0RJoDa.js} +1 -1
  7. package/dist/web/client/assets/{ConfirmDialog-D8f2wI5x.js → ConfirmDialog-Du8-95Zj.js} +1 -1
  8. package/dist/web/client/assets/{ConnectionsView-BUZcfBHw.js → ConnectionsView-Dg9kLuab.js} +1 -1
  9. package/dist/web/client/assets/{SkillsParts-jMYdOiWh.js → SkillsParts-TYzEfrVu.js} +1 -1
  10. package/dist/web/client/assets/{SpawnTeamModal-Dq7D3Zlc.js → SpawnTeamModal-Dr98zpUf.js} +1 -1
  11. package/dist/web/client/assets/{TeamForm-Crz3mvXu.js → TeamForm-DaH5H-LF.js} +1 -1
  12. package/dist/web/client/assets/{TeamThread-qTkvxv27.js → TeamThread-DmtbrFq1.js} +1 -1
  13. package/dist/web/client/assets/{UnsavedChangesGuard-DGzP-x1t.js → UnsavedChangesGuard-fvP4Xr0R.js} +1 -1
  14. package/dist/web/client/assets/{_id-DsZBpW5G.js → _id--1i1fY0o.js} +1 -1
  15. package/dist/web/client/assets/{_id-CiqTBi2Q.js → _id-C_s4pMAk.js} +1 -1
  16. package/dist/web/client/assets/{access-ssWsYTEU.js → access-99X0FS-H.js} +1 -1
  17. package/dist/web/client/assets/{agents-BmkaQvWh.js → agents-CDJMwJL1.js} +1 -1
  18. package/dist/web/client/assets/{agents-D3tZ58Dh.js → agents-DVAJFWJI.js} +1 -1
  19. package/dist/web/client/assets/{attention-ChHdu7E8.js → attention-CDzRuQGN.js} +1 -1
  20. package/dist/web/client/assets/{config-DPsq6Zy9.js → config-9GESe8FI.js} +1 -1
  21. package/dist/web/client/assets/{index-CVVVmIFC.js → index-DkK2xZ2o.js} +2 -2
  22. package/dist/web/client/assets/{login-B-Kpyw9o.js → login-DUmrDZjN.js} +1 -1
  23. package/dist/web/client/assets/{manage-Dwe9yQl9.js → manage-D6zhY8hA.js} +1 -1
  24. package/dist/web/client/assets/{mcp-73AMOCv3.js → mcp-ByioWHXZ.js} +1 -1
  25. package/dist/web/client/assets/routes-DEMmBJiz.js +85 -0
  26. package/dist/web/client/assets/{skills-DmYDuDbl.js → skills-a52e5W9Z.js} +1 -1
  27. package/dist/web/client/assets/{style-B9Vy-99n.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-t9hcqYBg.js → system-wJXOiU47.js} +1 -1
  30. package/dist/web/client/assets/{teams-5B2cyDin.js → teams-vRmMRnY_.js} +1 -1
  31. package/dist/web/client/assets/{teams-Nk_bHpr0.js → teams-wLJHtFW_.js} +1 -1
  32. package/dist/web/client/assets/telegram-CUsT8ZzL.js +1 -0
  33. package/dist/web/client/assets/{tools-mdAuMsYJ.js → tools-NMtdwKi0.js} +1 -1
  34. package/dist/web/client/assets/{usage-CWu7R8ZD.js → usage-DiIpfPPk.js} +1 -1
  35. package/dist/web/client/assets/{welcome-BuRNFxpc.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-gHDkHqeS.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-yEsciAts.js → router-BER0FKkT.js} +21 -21
  74. package/dist/web/server/assets/{routes-BgjikzXy.js → routes-BYmi9O0B.js} +2 -0
  75. package/dist/web/server/assets/{routes-Bfkccvfb.js → routes-DSIwTrHI.js} +238 -91
  76. package/dist/web/server/assets/{routes-CjtC0rDs.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-BsUXLr-m.js +0 -1
  99. package/dist/web/client/assets/routes-Lj8n-RF7.js +0 -85
  100. package/dist/web/client/assets/styles-DyFDuWBI.css +0 -2
  101. package/dist/web/client/assets/telegram-BWfL_OIt.js +0 -1
@@ -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-Bfkccvfb.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(),
@@ -1,6 +1,6 @@
1
- import { d as Chip, f as Fact, g as Notice, p as Facts, r as CardBody, s as CardRow, y as SetupCard } from "./parts-B0wbj_yK.js";
2
- import { t as Route } from "./system-4WV2pOS4.js";
3
- import { t as ConfigPage } from "./ConfigPage-CrxctbtN.js";
1
+ import { d as Chip, f as Fact, g as Notice, p as Facts, r as CardBody, s as CardRow, y as SetupCard } from "./parts-BpwHijPN.js";
2
+ import { t as Route } from "./system-Bx-_Vfss.js";
3
+ import { t as ConfigPage } from "./ConfigPage-DwbP35aS.js";
4
4
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
5
5
  import { Archive, Download, HeartPulse, SquareTerminal } from "lucide-react";
6
6
  //#region src/components/setup/SystemCards.tsx
@@ -1,13 +1,13 @@
1
1
  import { i as api, o as errorMessage } from "./live-DbJeq6KP.js";
2
- import { D as MODE_NAME, S as slugify, f as rosterCounts, p as rosterLine, s as count, x as slugProblem } from "./manage-C7ss0xG5.js";
2
+ import { D as MODE_NAME, S as slugify, f as rosterCounts, p as rosterLine, s as count, x as slugProblem } from "./manage-CfDQUV7j.js";
3
3
  import { t as Button } from "./Button-Dsnw22OF.js";
4
- import { n as DialogActions, t as Dialog } from "./Dialog-CwAfaXpM.js";
5
- import { t as ConfirmDialog } from "./ConfirmDialog-CuD5HXTw.js";
6
- import { _ as RowMenu, d as Chip, g as Notice, h as ListRow, i as CardEmpty, o as CardList, y as SetupCard } from "./parts-B0wbj_yK.js";
7
- import { d as TextField } from "./form-Bwsyt9OY.js";
8
- import { t as Route } from "./teams-Blfyu8ej.js";
9
- import { t as ManagePage } from "./ManagePage-DGYNJ6XG.js";
10
- import { t as SpawnTeamModal } from "./SpawnTeamModal-BmBXqfFi.js";
4
+ import { n as DialogActions, t as Dialog } from "./Dialog-B2ZAk0JC.js";
5
+ import { t as ConfirmDialog } from "./ConfirmDialog-CR_DTRpW.js";
6
+ import { _ as RowMenu, d as Chip, g as Notice, h as ListRow, i as CardEmpty, o as CardList, y as SetupCard } from "./parts-BpwHijPN.js";
7
+ import { d as TextField } from "./form-BGif16IN.js";
8
+ import { t as Route } from "./teams-Bd6J6rHj.js";
9
+ import { t as ManagePage } from "./ManagePage-DSzEP6tP.js";
10
+ import { t as SpawnTeamModal } from "./SpawnTeamModal-Zz03rkBZ.js";
11
11
  import { useState } from "react";
12
12
  import { useNavigate, useRouter } from "@tanstack/react-router";
13
13
  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/templates/teams/index.tsx
5
- var $$splitComponentImporter = () => import("./teams-BnsbH4YW.js");
5
+ var $$splitComponentImporter = () => import("./teams-BL_lLFPd.js");
6
6
  var fetchTemplates = createServerFn({ method: "GET" }).handler(createSsrRpc("04bb4df13ae68275e2f037ca67976778d2133273183d30d9ac2821f7cc7e85ad"));
7
7
  var Route = createFileRoute("/templates/teams/")({
8
8
  validateSearch: (search) => ({ new: search.new === 1 || search.new === "1" ? 1 : void 0 }),
@@ -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/teams/index.tsx
5
- var $$splitComponentImporter = () => import("./teams-gzY3tOtu.js");
5
+ var $$splitComponentImporter = () => import("./teams-fQEKru2G.js");
6
6
  var fetchTeams = createServerFn({ method: "GET" }).handler(createSsrRpc("fda651b73911d8ef30f3a6b58894b5d853fdc4997acaf1793c76c06680504b82"));
7
7
  var Route = createFileRoute("/teams/")({
8
8
  loader: () => fetchTeams(),
@@ -1,13 +1,13 @@
1
1
  import { i as api } from "./live-DbJeq6KP.js";
2
- import { C as teamRemoveBlocker, D as MODE_NAME, O as MODE_SENTENCE, s as count } from "./manage-C7ss0xG5.js";
2
+ import { C as teamRemoveBlocker, D as MODE_NAME, O as MODE_SENTENCE, s as count } from "./manage-CfDQUV7j.js";
3
3
  import { t as AgentAvatar } from "./AgentAvatar-8gTAy_tP.js";
4
4
  import { t as Button } from "./Button-Dsnw22OF.js";
5
- import { t as Dialog } from "./Dialog-CwAfaXpM.js";
6
- import { t as ConfirmDialog } from "./ConfirmDialog-CuD5HXTw.js";
7
- import { _ as RowMenu, d as Chip, h as ListRow, i as CardEmpty, o as CardList, y as SetupCard } from "./parts-B0wbj_yK.js";
8
- import { t as Route } from "./teams-QVxXJfo7.js";
9
- import { t as ManagePage } from "./ManagePage-DGYNJ6XG.js";
10
- import { t as TeamForm } from "./TeamForm-B4702hBg.js";
5
+ import { t as Dialog } from "./Dialog-B2ZAk0JC.js";
6
+ import { t as ConfirmDialog } from "./ConfirmDialog-CR_DTRpW.js";
7
+ import { _ as RowMenu, d as Chip, h as ListRow, i as CardEmpty, o as CardList, y as SetupCard } from "./parts-BpwHijPN.js";
8
+ import { t as Route } from "./teams-CRGLRUp9.js";
9
+ import { t as ManagePage } from "./ManagePage-DSzEP6tP.js";
10
+ import { t as TeamForm } from "./TeamForm-DwXwjZWb.js";
11
11
  import { useState } from "react";
12
12
  import { Link, useNavigate, useRouter } from "@tanstack/react-router";
13
13
  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/config/telegram.tsx
5
- var $$splitComponentImporter = () => import("./telegram-Ctj5dqvs.js");
5
+ var $$splitComponentImporter = () => import("./telegram-Do0oUOXQ.js");
6
6
  var fetchTelegramConfig = createServerFn({ method: "GET" }).handler(createSsrRpc("9252e07d6f45cb1c4543c2ca6f1b0c4c7697c249f3e6c94fda53b8a603929a92"));
7
7
  var Route = createFileRoute("/config/telegram")({
8
8
  loader: () => fetchTelegramConfig(),
@@ -1,12 +1,12 @@
1
1
  import { i as api, o as errorMessage } from "./live-DbJeq6KP.js";
2
2
  import { r as useResource } from "./use-resource-BjN1uJoL.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 { a as CardForm, d as Chip, f as Fact, g as Notice, h as ListRow, l as CheckItem, o as CardList, p as Facts, r as CardBody, s as CardRow, t as Banner, u as CheckList, x as Waiting, y as SetupCard } from "./parts-B0wbj_yK.js";
7
- import { a as SaveBar, d as TextField, f as saveStatus, i as Problem, l as SwitchRow, o as SecretField, t as CheckboxRow } from "./form-Bwsyt9OY.js";
8
- import { t as Route } from "./telegram-CIbuQ5-U.js";
9
- import { t as ConfigPage } from "./ConfigPage-CrxctbtN.js";
4
+ import { r as ago } from "./ModelMenu-BgIvpkO0.js";
5
+ import { t as ConfirmDialog } from "./ConfirmDialog-CR_DTRpW.js";
6
+ import { a as CardForm, d as Chip, f as Fact, g as Notice, h as ListRow, l as CheckItem, o as CardList, p as Facts, r as CardBody, s as CardRow, t as Banner, u as CheckList, x as Waiting, y as SetupCard } from "./parts-BpwHijPN.js";
7
+ import { a as SaveBar, d as TextField, f as saveStatus, i as Problem, l as SwitchRow, o as SecretField, t as CheckboxRow } from "./form-BGif16IN.js";
8
+ import { t as Route } from "./telegram-CpHjomwG.js";
9
+ import { t as ConfigPage } from "./ConfigPage-DwbP35aS.js";
10
10
  import { useEffect, useState } from "react";
11
11
  import { useRouter } from "@tanstack/react-router";
12
12
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
@@ -1,9 +1,9 @@
1
1
  import { i as api, o as errorMessage, r as ApiError } from "./live-DbJeq6KP.js";
2
- import { p as cn } from "./ModelMenu-DEJoYASj.js";
3
- import { a as CardForm, d as Chip, g as Notice, y as SetupCard } from "./parts-B0wbj_yK.js";
4
- import { a as SaveBar, d as TextField, f as saveStatus, i as Problem, l as SwitchRow, n as ChoiceCards, o as SecretField } from "./form-Bwsyt9OY.js";
5
- import { t as Route } from "./tools-Dn6RnOFu.js";
6
- import { t as ConfigPage } from "./ConfigPage-CrxctbtN.js";
2
+ import { m as cn } from "./ModelMenu-BgIvpkO0.js";
3
+ import { a as CardForm, d as Chip, g as Notice, y as SetupCard } from "./parts-BpwHijPN.js";
4
+ import { a as SaveBar, d as TextField, f as saveStatus, i as Problem, l as SwitchRow, n as ChoiceCards, o as SecretField } from "./form-BGif16IN.js";
5
+ import { t as Route } from "./tools-Ctckgev8.js";
6
+ import { t as ConfigPage } from "./ConfigPage-DwbP35aS.js";
7
7
  import { useId, useState } from "react";
8
8
  import { useRouter } from "@tanstack/react-router";
9
9
  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/config/tools.tsx
5
- var $$splitComponentImporter = () => import("./tools-x_DQTQtE.js");
5
+ var $$splitComponentImporter = () => import("./tools-CMXn8htp.js");
6
6
  var fetchTools = createServerFn({ method: "GET" }).handler(createSsrRpc("946c6cbff3f55931c3fb28c971d20b18b4b8a9f25417a5d1afc0550d7afa393b"));
7
7
  var Route = createFileRoute("/config/tools")({
8
8
  loader: () => fetchTools(),
@@ -30,7 +30,7 @@ function parseDays(value) {
30
30
  }
31
31
  //#endregion
32
32
  //#region src/routes/usage/index.tsx
33
- var $$splitComponentImporter = () => import("./usage-Dsi2V9Wh.js");
33
+ var $$splitComponentImporter = () => import("./usage-sZ4SFz36.js");
34
34
  var text = (value) => typeof value === "string" && value ? value : void 0;
35
35
  /** The address's period: `?days=7` reads as the number 7, `?days=all` as text. */
36
36
  var Route = createFileRoute("/usage/")({
@@ -2,9 +2,9 @@ import { i as api } from "./live-DbJeq6KP.js";
2
2
  import { n as formatTokens, r as usageSummary, t as formatCost } from "./src-ErO6nYmi.js";
3
3
  import { t as Button } from "./Button-Dsnw22OF.js";
4
4
  import { t as Segmented } from "./Segmented-3ZLdqa5U.js";
5
- import { d as Chip, g as Notice, h as ListRow, i as CardEmpty, o as CardList, r as CardBody, t as Banner, y as SetupCard } from "./parts-B0wbj_yK.js";
6
- import { n as PERIODS, r as parseDays, t as Route } from "./usage-CeiyPffw.js";
7
- import { t as ManagePage } from "./ManagePage-DGYNJ6XG.js";
5
+ import { d as Chip, g as Notice, h as ListRow, i as CardEmpty, o as CardList, r as CardBody, t as Banner, y as SetupCard } from "./parts-BpwHijPN.js";
6
+ import { n as PERIODS, r as parseDays, t as Route } from "./usage-DaV-iwEz.js";
7
+ import { t as ManagePage } from "./ManagePage-DSzEP6tP.js";
8
8
  import { useEffect, useId, useState } from "react";
9
9
  import { Link, useNavigate } from "@tanstack/react-router";
10
10
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
@@ -11,7 +11,7 @@ function isSetupOpen(path) {
11
11
  }
12
12
  //#endregion
13
13
  //#region src/routes/welcome.tsx
14
- var $$splitComponentImporter = () => import("./welcome-A2Koo4HI.js");
14
+ var $$splitComponentImporter = () => import("./welcome-Dz5zfvV2.js");
15
15
  var fetchProviders = createServerFn({ method: "GET" }).handler(createSsrRpc("818bf71baeed233268a5ad1a4be5a77e488be79b79ad1bd739463445a7be4d58"));
16
16
  var Route = createFileRoute("/welcome")({
17
17
  beforeLoad: async () => {
@@ -3,9 +3,9 @@ import { u as DEFAULT_PROFILE_ID } from "./src-ErO6nYmi.js";
3
3
  import { r as useResource } from "./use-resource-BjN1uJoL.js";
4
4
  import { t as Button } from "./Button-Dsnw22OF.js";
5
5
  import { n as usePageTitle } from "./page-title-PTpFHXWo.js";
6
- import { C as PageShell } from "./parts-B0wbj_yK.js";
7
- import { t as Route } from "./welcome-C71pZOQ9.js";
8
- import { a as ProviderConnect, c as ProviderAvatar, i as hostOf, n as ConnectedSummary, r as ProviderChooser } from "./AddProviderDialog-Bqsz5NaL.js";
6
+ import { C as PageShell } from "./parts-BpwHijPN.js";
7
+ import { t as Route } from "./welcome-BhfLQBOr.js";
8
+ import { a as ProviderConnect, c as ProviderAvatar, i as hostOf, n as ConnectedSummary, r as ProviderChooser } from "./AddProviderDialog-CxwjFPVY.js";
9
9
  import { useState } from "react";
10
10
  import { useNavigate } from "@tanstack/react-router";
11
11
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -3558,7 +3558,7 @@ var defaultSerovalPlugins = [
3558
3558
  * the dev styles URL for route-scoped CSS collection.
3559
3559
  */
3560
3560
  async function getStartManifest(matchedRoutes) {
3561
- const { tsrStartManifest } = await import("./assets/_tanstack-start-manifest_v-gHDkHqeS.js");
3561
+ const { tsrStartManifest } = await import("./assets/_tanstack-start-manifest_v-Be9mOSxg.js");
3562
3562
  const startManifest = tsrStartManifest();
3563
3563
  let routes = startManifest.routes;
3564
3564
  routes[rootRouteId];
@@ -3586,7 +3586,7 @@ var manifest = {
3586
3586
  },
3587
3587
  "22325942f341b7af6fb13fa5fde2b06e1d7d91f9178205ef3eb9e5ba3c9ef2fe": {
3588
3588
  functionName: "fetchWorkspace_createServerFn_handler",
3589
- importer: () => import("./assets/routes-BgjikzXy.js")
3589
+ importer: () => import("./assets/routes-BYmi9O0B.js")
3590
3590
  },
3591
3591
  "278849457893891c3d22806d15e11a0a42cc3630b30e9e62b74cf2d3b982ded7": {
3592
3592
  functionName: "fetchServers_createServerFn_handler",
@@ -3602,7 +3602,7 @@ var manifest = {
3602
3602
  },
3603
3603
  "7bc7f3b145d10e7a733fbe068ce367dda04ec2f1cdb53f0d6dcba3838eb2deeb": {
3604
3604
  functionName: "fetchTemplates_createServerFn_handler",
3605
- importer: () => import("./assets/agents-BepbikC0.js")
3605
+ importer: () => import("./assets/agents-CSMQtQCr.js")
3606
3606
  },
3607
3607
  "818bf71baeed233268a5ad1a4be5a77e488be79b79ad1bd739463445a7be4d58": {
3608
3608
  functionName: "fetchProviders_createServerFn_handler",
@@ -3622,7 +3622,7 @@ var manifest = {
3622
3622
  },
3623
3623
  "a3ce4c3b27c4c69828cf8a81d1f5312a9f8e2c82de6c7e6e2846eb5c2fc322ea": {
3624
3624
  functionName: "fetchTemplate_createServerFn_handler",
3625
- importer: () => import("./assets/_id-BWtcQovD.js")
3625
+ importer: () => import("./assets/_id-Dkx7QsM_.js")
3626
3626
  },
3627
3627
  "a5d3825fc69573bb55bab6df578c750ebb0240dd394c3acee3adea02918a5dc2": {
3628
3628
  functionName: "fetchAuthState_createServerFn_handler",
@@ -3642,7 +3642,7 @@ var manifest = {
3642
3642
  },
3643
3643
  "f715bab0037380aa3db7e237e7cf1e74168c363f48a960bb1ddfa5560de3a74e": {
3644
3644
  functionName: "fetchAgents_createServerFn_handler",
3645
- importer: () => import("./assets/agents-Co6S2Ml9.js")
3645
+ importer: () => import("./assets/agents-Bgo3LnIL.js")
3646
3646
  },
3647
3647
  "fda651b73911d8ef30f3a6b58894b5d853fdc4997acaf1793c76c06680504b82": {
3648
3648
  functionName: "fetchTeams_createServerFn_handler",
@@ -5524,7 +5524,7 @@ var getBaseManifest = getProdBaseManifest;
5524
5524
  var createEarlyHintsForRequest = createEarlyHintsCollector;
5525
5525
  async function loadEntries() {
5526
5526
  const [routerEntry, startEntry, pluginAdapters] = await Promise.all([
5527
- import("./assets/router-yEsciAts.js"),
5527
+ import("./assets/router-BER0FKkT.js"),
5528
5528
  import("./assets/start-D4sx5Ovq.js"),
5529
5529
  import("./assets/empty-plugin-adapters-Cq4--YW-.js")
5530
5530
  ]);
package/dist/worker.js CHANGED
@@ -1294,6 +1294,17 @@ var PROGRESS_TAIL_CHARS = 8 * 1024;
1294
1294
  var PROGRESS_INTERVAL_MS = 250;
1295
1295
  function translatePiEvent(e, secrets = []) {
1296
1296
  switch (e.type) {
1297
+ case "compaction_start":
1298
+ return [{ type: "compaction", state: "running" }];
1299
+ case "compaction_end":
1300
+ if (e.aborted) return [];
1301
+ return e.result ? [{ type: "compaction", state: "done" }] : [
1302
+ {
1303
+ type: "compaction",
1304
+ state: "failed",
1305
+ error: redactExactValues(e.errorMessage ?? "no summary came back", secrets)
1306
+ }
1307
+ ];
1297
1308
  case "message_start": {
1298
1309
  if (e.message.role === "user") {
1299
1310
  return [{ type: "user_message", text: stringifyContent(e.message.content) }];
@@ -1499,7 +1510,8 @@ function piMessagesToProviderView(messages, secrets = []) {
1499
1510
  toolCallId: tr.toolCallId,
1500
1511
  toolName: tr.toolName,
1501
1512
  results: extractResultReferences(m),
1502
- ...images.length > 0 ? { images } : {}
1513
+ ...images.length > 0 ? { images } : {},
1514
+ ...tr.isError ? { isError: true } : {}
1503
1515
  });
1504
1516
  break;
1505
1517
  }
@@ -1519,6 +1531,34 @@ function extractResultReferences(value) {
1519
1531
  });
1520
1532
  }
1521
1533
 
1534
+ // ../daemon/src/runtime/pi/history.ts
1535
+ import {
1536
+ calculateContextTokens
1537
+ } from "@earendil-works/pi-coding-agent";
1538
+ function conversationHistory(branch) {
1539
+ const messages = [];
1540
+ const position = /* @__PURE__ */ new Map();
1541
+ const compactions = [];
1542
+ for (const entry of branch) {
1543
+ position.set(entry.id, messages.length);
1544
+ if (entry.type === "message" && entry.message.role !== "system") {
1545
+ const message = entry.message;
1546
+ messages.push(
1547
+ "content" in message && message.content == null ? { ...message, content: [] } : message
1548
+ );
1549
+ } else if (entry.type === "compaction") {
1550
+ compactions.push({
1551
+ // The part kept verbatim starts at firstKeptEntryId; the summary stands for what precedes.
1552
+ index: position.get(entry.firstKeptEntryId) ?? messages.length,
1553
+ summary: entry.summary,
1554
+ tokensBefore: entry.tokensBefore,
1555
+ at: Date.parse(entry.timestamp) || 0
1556
+ });
1557
+ }
1558
+ }
1559
+ return { messages, compactions };
1560
+ }
1561
+
1522
1562
  // ../daemon/src/runtime/pi/session.ts
1523
1563
  import { existsSync as existsSync4, mkdirSync as mkdirSync4, statSync as statSync3, writeFileSync as writeFileSync3 } from "node:fs";
1524
1564
  import { basename as basename3, join as join8 } from "node:path";
@@ -1565,6 +1605,13 @@ function resolveBrowserConfig(env) {
1565
1605
  // ../daemon/src/runtime/providers/pi-runtime.ts
1566
1606
  import { InMemoryCredentialStore } from "@earendil-works/pi-ai";
1567
1607
  import { ModelRuntime } from "@earendil-works/pi-coding-agent";
1608
+
1609
+ // ../daemon/src/runtime/providers/catalog.ts
1610
+ import { getBuiltinModels } from "@earendil-works/pi-ai/providers/all";
1611
+ import { fetch as undiciFetch } from "undici";
1612
+
1613
+ // ../daemon/src/runtime/providers/pi-runtime.ts
1614
+ var ENDPOINT_CONTEXT_WINDOW = 32768;
1568
1615
  function endpointModel(providerName, modelId, baseUrl) {
1569
1616
  return {
1570
1617
  id: modelId,
@@ -1575,7 +1622,7 @@ function endpointModel(providerName, modelId, baseUrl) {
1575
1622
  reasoning: false,
1576
1623
  input: ["text"],
1577
1624
  cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
1578
- contextWindow: 32768,
1625
+ contextWindow: ENDPOINT_CONTEXT_WINDOW,
1579
1626
  maxTokens: 4096
1580
1627
  };
1581
1628
  }
@@ -3270,7 +3317,7 @@ etag: ${etag}`;
3270
3317
  }
3271
3318
 
3272
3319
  // ../daemon/src/runtime/tools/web.ts
3273
- import { fetch as undiciFetch2 } from "undici";
3320
+ import { fetch as undiciFetch3 } from "undici";
3274
3321
 
3275
3322
  // ../daemon/src/runtime/tools/web-extract.ts
3276
3323
  import { Readability } from "@mozilla/readability";
@@ -3353,7 +3400,7 @@ function extractReadable(html, url, mode2) {
3353
3400
  import { lookup as dnsLookupCb } from "node:dns";
3354
3401
  import { lookup as dnsLookup } from "node:dns/promises";
3355
3402
  import { isIP } from "node:net";
3356
- import { Agent, fetch as undiciFetch } from "undici";
3403
+ import { Agent, fetch as undiciFetch2 } from "undici";
3357
3404
  var SsrFBlockedError = class extends Error {
3358
3405
  constructor(message) {
3359
3406
  super(message);
@@ -3507,7 +3554,7 @@ async function closeDispatcher(d) {
3507
3554
  }
3508
3555
  }
3509
3556
  async function guardedFetch(opts) {
3510
- const fetcher = opts.fetchImpl ?? undiciFetch;
3557
+ const fetcher = opts.fetchImpl ?? undiciFetch2;
3511
3558
  const maxRedirects = opts.maxRedirects ?? 3;
3512
3559
  const abortController = new AbortController();
3513
3560
  const timeoutId = opts.timeoutMs ? setTimeout(() => abortController.abort(new Error("timeout")), opts.timeoutMs) : null;
@@ -3764,7 +3811,7 @@ function webSearchTool(host) {
3764
3811
  };
3765
3812
  }
3766
3813
  function webFetchTool(opts) {
3767
- const fetchFn = opts?.fetchImpl ?? undiciFetch2;
3814
+ const fetchFn = opts?.fetchImpl ?? undiciFetch3;
3768
3815
  const env = opts?.env ?? process.env;
3769
3816
  const allowPrivate = opts?.allowPrivate ?? false;
3770
3817
  const cacheTtlMs = opts?.cacheTtlMs ?? DEFAULT_CACHE_TTL_MS;
@@ -3928,10 +3975,11 @@ function createBazilionCustomTools(opts) {
3928
3975
  async function openPiSession(spec) {
3929
3976
  const { runtime: modelRuntime, model } = await createPiModel(spec.model);
3930
3977
  const settingsManager = SettingsManager.inMemory({
3931
- // Provider requests happen only for turns: no cache warming, and compaction runs only on
3932
- // request (/compact).
3978
+ // Provider requests happen only for turns: no cache warming. A turn compacts the
3979
+ // conversation when it nears the model's window (Pi's defaults: within 16,384 tokens of it,
3980
+ // keeping the last 20,000 verbatim), and redoes a reply the full window cut short.
3933
3981
  cacheWarming: "off",
3934
- compaction: { enabled: false },
3982
+ compaction: { enabled: true },
3935
3983
  retry: {
3936
3984
  enabled: true,
3937
3985
  maxRetries: 2,
@@ -4487,13 +4535,7 @@ async function main() {
4487
4535
  await session.prompt(text, images ? { images } : void 0);
4488
4536
  await session.agent.waitForIdle();
4489
4537
  emit(
4490
- review ? { kind: "review_result", proposals: review.result() } : {
4491
- kind: "done",
4492
- messages: piMessagesToProviderView(
4493
- session.agent.state.messages,
4494
- handle.redactionSecrets
4495
- )
4496
- }
4538
+ review ? { kind: "review_result", proposals: review.result() } : finishedFrame(session, handle.redactionSecrets)
4497
4539
  );
4498
4540
  } catch (error) {
4499
4541
  const message = workerFailureMessage(
@@ -4521,4 +4563,17 @@ main().catch(async (error) => {
4521
4563
  emit({ kind: "fatal", error: error instanceof Error ? error.message : String(error) });
4522
4564
  await exitWorker(1);
4523
4565
  });
4566
+ function finishedFrame(session, secrets) {
4567
+ const { messages, compactions } = conversationHistory(session.sessionManager.getBranch());
4568
+ const usage = session.getContextUsage();
4569
+ return {
4570
+ kind: "done",
4571
+ messages: piMessagesToProviderView(messages, secrets),
4572
+ compactions,
4573
+ context: {
4574
+ tokens: usage?.tokens ?? null,
4575
+ window: usage && usage.contextWindow > 0 ? usage.contextWindow : null
4576
+ }
4577
+ };
4578
+ }
4524
4579
  //# sourceMappingURL=worker.js.map