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.
- package/dist/cli.js +16 -1
- package/dist/cli.js.map +1 -1
- package/dist/daemon.js +211 -77
- package/dist/daemon.js.map +1 -1
- package/dist/web/client/assets/AddProviderDialog-CbBtkgU7.js +1 -0
- package/dist/web/client/assets/{AgentTemplateParts-B9JD9mno.js → AgentTemplateParts-Tx0RJoDa.js} +1 -1
- package/dist/web/client/assets/{ConfirmDialog-D-Qk9p6V.js → ConfirmDialog-Du8-95Zj.js} +1 -1
- package/dist/web/client/assets/{ConnectionsView-Dfbn7vfB.js → ConnectionsView-Dg9kLuab.js} +1 -1
- package/dist/web/client/assets/{SkillsParts-DN_JvpRU.js → SkillsParts-TYzEfrVu.js} +1 -1
- package/dist/web/client/assets/{SpawnTeamModal-Btj3My2v.js → SpawnTeamModal-Dr98zpUf.js} +1 -1
- package/dist/web/client/assets/{TeamForm-BX_68QZQ.js → TeamForm-DaH5H-LF.js} +1 -1
- package/dist/web/client/assets/{TeamThread-CJXudrt6.js → TeamThread-DmtbrFq1.js} +1 -1
- package/dist/web/client/assets/{UnsavedChangesGuard-B_e5_ck_.js → UnsavedChangesGuard-fvP4Xr0R.js} +1 -1
- package/dist/web/client/assets/{_id-BJt13p-G.js → _id--1i1fY0o.js} +1 -1
- package/dist/web/client/assets/{_id-DoP6Mlct.js → _id-C_s4pMAk.js} +1 -1
- package/dist/web/client/assets/{access-DnkUj0iM.js → access-99X0FS-H.js} +1 -1
- package/dist/web/client/assets/{agents-CrfF2ZOS.js → agents-CDJMwJL1.js} +1 -1
- package/dist/web/client/assets/{agents-Cv07gKT0.js → agents-DVAJFWJI.js} +1 -1
- package/dist/web/client/assets/{attention-TQpP915m.js → attention-CDzRuQGN.js} +1 -1
- package/dist/web/client/assets/{config-CKPln0Ng.js → config-9GESe8FI.js} +1 -1
- package/dist/web/client/assets/{index-Bwz8tnmS.js → index-DkK2xZ2o.js} +2 -2
- package/dist/web/client/assets/{login-C-FCzcQU.js → login-DUmrDZjN.js} +1 -1
- package/dist/web/client/assets/{manage-BSGsiEPw.js → manage-D6zhY8hA.js} +1 -1
- package/dist/web/client/assets/{mcp-DDw8SGMV.js → mcp-ByioWHXZ.js} +1 -1
- package/dist/web/client/assets/routes-DEMmBJiz.js +85 -0
- package/dist/web/client/assets/{skills-H_AVE6G7.js → skills-a52e5W9Z.js} +1 -1
- package/dist/web/client/assets/{style-HG30duye.js → style-CiyV21dp.js} +1 -1
- package/dist/web/client/assets/styles-B-X0olFi.css +2 -0
- package/dist/web/client/assets/{system-C7vZKVdU.js → system-wJXOiU47.js} +1 -1
- package/dist/web/client/assets/{teams-Dcy3Wb4u.js → teams-vRmMRnY_.js} +1 -1
- package/dist/web/client/assets/{teams-DcxoMrsV.js → teams-wLJHtFW_.js} +1 -1
- package/dist/web/client/assets/telegram-CUsT8ZzL.js +1 -0
- package/dist/web/client/assets/{tools-BNZxmJJk.js → tools-NMtdwKi0.js} +1 -1
- package/dist/web/client/assets/{usage-BhqvXWtk.js → usage-DiIpfPPk.js} +1 -1
- package/dist/web/client/assets/{welcome-4H9Gvu-u.js → welcome-BWN0jtZP.js} +1 -1
- package/dist/web/server/assets/{AddProviderDialog-Bqsz5NaL.js → AddProviderDialog-CxwjFPVY.js} +3 -3
- package/dist/web/server/assets/{AgentTemplateParts-D97gKNdN.js → AgentTemplateParts-CDDoX_bG.js} +5 -5
- package/dist/web/server/assets/{ConfigPage-CrxctbtN.js → ConfigPage-DwbP35aS.js} +2 -2
- package/dist/web/server/assets/{ConfirmDialog-CuD5HXTw.js → ConfirmDialog-CR_DTRpW.js} +1 -1
- package/dist/web/server/assets/{ConnectionsView-CSf83J-v.js → ConnectionsView-CplWLHII.js} +4 -4
- package/dist/web/server/assets/{Dialog-CwAfaXpM.js → Dialog-B2ZAk0JC.js} +1 -1
- package/dist/web/server/assets/{ManagePage-DGYNJ6XG.js → ManagePage-DSzEP6tP.js} +2 -2
- package/dist/web/server/assets/{ModelMenu-DEJoYASj.js → ModelMenu-BgIvpkO0.js} +1 -1
- package/dist/web/server/assets/{SectionTabs--vMBvaUz.js → SectionTabs-B56iIxRj.js} +1 -1
- package/dist/web/server/assets/{SkillsParts-hjS9a_Ht.js → SkillsParts-Bf5aGuER.js} +5 -5
- package/dist/web/server/assets/{SpawnDialog-BjVZl7xK.js → SpawnDialog-Fsdom-ur.js} +4 -4
- package/dist/web/server/assets/{SpawnTeamModal-BmBXqfFi.js → SpawnTeamModal-Zz03rkBZ.js} +4 -4
- package/dist/web/server/assets/{TeamForm-B4702hBg.js → TeamForm-DwXwjZWb.js} +4 -4
- package/dist/web/server/assets/{UnsavedChangesGuard-Be8EqfV_.js → UnsavedChangesGuard-BEtAdwza.js} +1 -1
- package/dist/web/server/assets/{_id-VqiN2zRR.js → _id-D1USZSkO.js} +9 -9
- package/dist/web/server/assets/{_id-BWtcQovD.js → _id-Dkx7QsM_.js} +1 -1
- package/dist/web/server/assets/{_id-DBhvSxVl.js → _id-R5F7ISnu.js} +1 -1
- package/dist/web/server/assets/{_id-TT_ZsaSc.js → _id-gh-ba9YO.js} +10 -10
- package/dist/web/server/assets/{_id-CKBQM7LH.js → _id-sS3ozDuV.js} +1 -1
- package/dist/web/server/assets/{_tanstack-start-manifest_v-Df5LTm5g.js → _tanstack-start-manifest_v-Be9mOSxg.js} +57 -57
- package/dist/web/server/assets/{access-Bog7dbtP.js → access-BcKK4G_w.js} +1 -1
- package/dist/web/server/assets/{access-C5lXP5JS.js → access-CftAsKX6.js} +5 -5
- package/dist/web/server/assets/{agents-DDUHE3eY.js → agents-BAlP1gc_.js} +8 -8
- package/dist/web/server/assets/{agents-8XZAjHh0.js → agents-BBQyhQz7.js} +7 -7
- package/dist/web/server/assets/{agents-Co6S2Ml9.js → agents-Bgo3LnIL.js} +1 -1
- package/dist/web/server/assets/{agents-BepbikC0.js → agents-CSMQtQCr.js} +1 -1
- package/dist/web/server/assets/{agents-DnUK-7qJ.js → agents-CvU8ljqt.js} +1 -1
- package/dist/web/server/assets/{agents-CKkMouJX.js → agents-DlxkPC-q.js} +1 -1
- package/dist/web/server/assets/{attention-n8edCJBL.js → attention-CHqUjESP.js} +5 -5
- package/dist/web/server/assets/{attention--1dBWt0c.js → attention-rfqLfyDE.js} +1 -1
- package/dist/web/server/assets/{config-BpwsF11b.js → config-CraGjaZB.js} +1 -1
- package/dist/web/server/assets/{config-UHRqSrh4.js → config-DSBJKiDX.js} +7 -7
- package/dist/web/server/assets/{form-Bwsyt9OY.js → form-BGif16IN.js} +2 -2
- package/dist/web/server/assets/{manage-C7ss0xG5.js → manage-CfDQUV7j.js} +1 -1
- package/dist/web/server/assets/{mcp-CUoF4jIO.js → mcp-RKq9Cj-h.js} +6 -6
- package/dist/web/server/assets/{mcp-COn047tO.js → mcp-VCW2SGMk.js} +1 -1
- package/dist/web/server/assets/{parts-B0wbj_yK.js → parts-BpwHijPN.js} +1 -1
- package/dist/web/server/assets/{router-q3PwQgDH.js → router-BER0FKkT.js} +22 -22
- package/dist/web/server/assets/{routes-BgjikzXy.js → routes-BYmi9O0B.js} +2 -0
- package/dist/web/server/assets/{routes-Do8a2liK.js → routes-DSIwTrHI.js} +241 -104
- package/dist/web/server/assets/{routes-DRtxA9c1.js → routes-qtTyGHXK.js} +1 -1
- package/dist/web/server/assets/{skills-D5oN5ehC.js → skills-DM_Qcvqk.js} +7 -7
- package/dist/web/server/assets/{skills-DouMCq_2.js → skills-DZI56DdW.js} +1 -1
- package/dist/web/server/assets/{style-BgFXDhAR.js → style-DuiMhwn4.js} +1 -1
- package/dist/web/server/assets/{system-4WV2pOS4.js → system-Bx-_Vfss.js} +1 -1
- package/dist/web/server/assets/{system-DtGHi7X7.js → system-C_kmuned.js} +3 -3
- package/dist/web/server/assets/{teams-BnsbH4YW.js → teams-BL_lLFPd.js} +8 -8
- package/dist/web/server/assets/{teams-Blfyu8ej.js → teams-Bd6J6rHj.js} +1 -1
- package/dist/web/server/assets/{teams-QVxXJfo7.js → teams-CRGLRUp9.js} +1 -1
- package/dist/web/server/assets/{teams-gzY3tOtu.js → teams-fQEKru2G.js} +7 -7
- package/dist/web/server/assets/{telegram-CIbuQ5-U.js → telegram-CpHjomwG.js} +1 -1
- package/dist/web/server/assets/{telegram-Ctj5dqvs.js → telegram-Do0oUOXQ.js} +6 -6
- package/dist/web/server/assets/{tools-x_DQTQtE.js → tools-CMXn8htp.js} +5 -5
- package/dist/web/server/assets/{tools-Dn6RnOFu.js → tools-Ctckgev8.js} +1 -1
- package/dist/web/server/assets/{usage-CeiyPffw.js → usage-DaV-iwEz.js} +1 -1
- package/dist/web/server/assets/{usage-Dsi2V9Wh.js → usage-sZ4SFz36.js} +3 -3
- package/dist/web/server/assets/{welcome-C71pZOQ9.js → welcome-BhfLQBOr.js} +1 -1
- package/dist/web/server/assets/{welcome-A2Koo4HI.js → welcome-Dz5zfvV2.js} +3 -3
- package/dist/web/server/server.js +6 -6
- package/dist/worker.js +71 -16
- package/dist/worker.js.map +1 -1
- package/package.json +1 -1
- package/dist/web/client/assets/AddProviderDialog-DIxB5CRz.js +0 -1
- package/dist/web/client/assets/routes-C5KzZ73E.js +0 -85
- package/dist/web/client/assets/styles-DyFDuWBI.css +0 -2
- package/dist/web/client/assets/telegram-CUw1r_J5.js +0 -1
|
@@ -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-
|
|
2
|
-
import { t as Route } from "./system-
|
|
3
|
-
import { t as ConfigPage } from "./ConfigPage-
|
|
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-
|
|
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-
|
|
5
|
-
import { t as ConfirmDialog } from "./ConfirmDialog-
|
|
6
|
-
import { _ as RowMenu, d as Chip, g as Notice, h as ListRow, i as CardEmpty, o as CardList, y as SetupCard } from "./parts-
|
|
7
|
-
import { d as TextField } from "./form-
|
|
8
|
-
import { t as Route } from "./teams-
|
|
9
|
-
import { t as ManagePage } from "./ManagePage-
|
|
10
|
-
import { t as SpawnTeamModal } from "./SpawnTeamModal-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
6
|
-
import { t as ConfirmDialog } from "./ConfirmDialog-
|
|
7
|
-
import { _ as RowMenu, d as Chip, h as ListRow, i as CardEmpty, o as CardList, y as SetupCard } from "./parts-
|
|
8
|
-
import { t as Route } from "./teams-
|
|
9
|
-
import { t as ManagePage } from "./ManagePage-
|
|
10
|
-
import { t as TeamForm } from "./TeamForm-
|
|
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-
|
|
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-
|
|
5
|
-
import { t as ConfirmDialog } from "./ConfirmDialog-
|
|
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-
|
|
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-
|
|
8
|
-
import { t as Route } from "./telegram-
|
|
9
|
-
import { t as ConfigPage } from "./ConfigPage-
|
|
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 {
|
|
3
|
-
import { a as CardForm, d as Chip, g as Notice, y as SetupCard } from "./parts-
|
|
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-
|
|
5
|
-
import { t as Route } from "./tools-
|
|
6
|
-
import { t as ConfigPage } from "./ConfigPage-
|
|
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-
|
|
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-
|
|
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-
|
|
6
|
-
import { n as PERIODS, r as parseDays, t as Route } from "./usage-
|
|
7
|
-
import { t as ManagePage } from "./ManagePage-
|
|
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-
|
|
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-
|
|
7
|
-
import { t as Route } from "./welcome-
|
|
8
|
-
import { a as ProviderConnect, c as ProviderAvatar, i as hostOf, n as ConnectedSummary, r as ProviderChooser } from "./AddProviderDialog-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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:
|
|
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
|
|
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
|
|
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 ??
|
|
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 ??
|
|
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
|
|
3932
|
-
//
|
|
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:
|
|
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
|