bazilion 0.57.1 → 0.58.1
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 +392 -92
- package/dist/cli.js.map +1 -1
- package/dist/daemon.js +674 -259
- package/dist/daemon.js.map +1 -1
- package/dist/web/client/assets/AddProviderDialog-DIxB5CRz.js +1 -0
- package/dist/web/client/assets/AgentTemplateParts-B9JD9mno.js +1 -0
- package/dist/web/client/assets/ConfirmDialog-D-Qk9p6V.js +1 -0
- package/dist/web/client/assets/ConnectionsView-Dfbn7vfB.js +1 -0
- package/dist/web/client/assets/SkillsParts-DN_JvpRU.js +1 -0
- package/dist/web/client/assets/SpawnTeamModal-Btj3My2v.js +1 -0
- package/dist/web/client/assets/TeamForm-BX_68QZQ.js +1 -0
- package/dist/web/client/assets/TeamThread-CJXudrt6.js +1 -0
- package/dist/web/client/assets/{UnsavedChangesGuard-CYz0AopL.js → UnsavedChangesGuard-B_e5_ck_.js} +1 -1
- package/dist/web/client/assets/_id-BJt13p-G.js +1 -0
- package/dist/web/client/assets/_id-DoP6Mlct.js +1 -0
- package/dist/web/client/assets/{access-BGtASxet.js → access-DnkUj0iM.js} +1 -1
- package/dist/web/client/assets/{agents-BAODfMcm.js → agents-CrfF2ZOS.js} +1 -1
- package/dist/web/client/assets/agents-Cv07gKT0.js +1 -0
- package/dist/web/client/assets/{attention-BIC0TL8d.js → attention-TQpP915m.js} +1 -1
- package/dist/web/client/assets/config-CKPln0Ng.js +1 -0
- package/dist/web/client/assets/index-Bwz8tnmS.js +14 -0
- package/dist/web/client/assets/{login-q9O7dqRe.js → login-C-FCzcQU.js} +1 -1
- package/dist/web/client/assets/manage-BSGsiEPw.js +1 -0
- package/dist/web/client/assets/mcp-DDw8SGMV.js +1 -0
- package/dist/web/client/assets/routes-C5KzZ73E.js +85 -0
- package/dist/web/client/assets/shield-alert-CO7P-cbq.js +1 -0
- package/dist/web/client/assets/{skills-VEtq-MQJ.js → skills-H_AVE6G7.js} +1 -1
- package/dist/web/client/assets/style-HG30duye.js +7 -0
- package/dist/web/client/assets/styles-DyFDuWBI.css +2 -0
- package/dist/web/client/assets/system-C7vZKVdU.js +1 -0
- package/dist/web/client/assets/teams-DcxoMrsV.js +1 -0
- package/dist/web/client/assets/teams-Dcy3Wb4u.js +1 -0
- package/dist/web/client/assets/telegram-CUw1r_J5.js +1 -0
- package/dist/web/client/assets/{tools-C0FIeAL1.js → tools-BNZxmJJk.js} +1 -1
- package/dist/web/client/assets/usage-BhqvXWtk.js +1 -0
- package/dist/web/client/assets/welcome-4H9Gvu-u.js +1 -0
- package/dist/web/server/assets/{AddProviderDialog-CpLDHOcA.js → AddProviderDialog-Bqsz5NaL.js} +1 -1
- package/dist/web/server/assets/{AgentTemplateParts-Dh9F_-T_.js → AgentTemplateParts-D97gKNdN.js} +2 -2
- package/dist/web/server/assets/{ConfirmDialog-C89B8qKM.js → ConfirmDialog-CuD5HXTw.js} +1 -1
- package/dist/web/server/assets/{ConnectionsView-DslcKQmA.js → ConnectionsView-CSf83J-v.js} +32 -10
- package/dist/web/server/assets/{Dialog-_Gt_Nt86.js → Dialog-CwAfaXpM.js} +5 -0
- package/dist/web/server/assets/{SkillsParts-CqS2B45v.js → SkillsParts-hjS9a_Ht.js} +2 -2
- package/dist/web/server/assets/{SpawnDialog-BNKj2Lup.js → SpawnDialog-BjVZl7xK.js} +19 -6
- package/dist/web/server/assets/{SpawnTeamModal-zcLxtFOO.js → SpawnTeamModal-BmBXqfFi.js} +7 -7
- package/dist/web/server/assets/{TeamForm-XFP0l2TB.js → TeamForm-B4702hBg.js} +2 -2
- package/dist/web/server/assets/{TeamThread-gYV_ToRM.js → TeamThread-BGl5z8_I.js} +40 -2
- package/dist/web/server/assets/{UnsavedChangesGuard-CB_TugFF.js → UnsavedChangesGuard-Be8EqfV_.js} +1 -1
- package/dist/web/server/assets/{_id-D4RFNqaJ.js → _id-BWtcQovD.js} +1 -1
- package/dist/web/server/assets/{_id-josYXBx3.js → _id-CKBQM7LH.js} +1 -1
- package/dist/web/server/assets/{_id-BTyd2i5U.js → _id-Cf1461pN.js} +1 -1
- package/dist/web/server/assets/{_id-517adSuB.js → _id-DBhvSxVl.js} +1 -1
- package/dist/web/server/assets/{_id-CyinHJam.js → _id-TT_ZsaSc.js} +6 -6
- package/dist/web/server/assets/{_id-BsQnL9LV.js → _id-VqiN2zRR.js} +35 -12
- package/dist/web/server/assets/{_tanstack-start-manifest_v-DIMayzEa.js → _tanstack-start-manifest_v-Df5LTm5g.js} +60 -58
- package/dist/web/server/assets/{access-BdQmjMJV.js → access-Bog7dbtP.js} +1 -1
- package/dist/web/server/assets/{access-Cc7fMMod.js → access-C5lXP5JS.js} +2 -2
- package/dist/web/server/assets/{access-B97-94Wt.js → access-bTlESGXh.js} +1 -1
- package/dist/web/server/assets/{agents-CjrkaEz8.js → agents-8XZAjHh0.js} +5 -5
- package/dist/web/server/assets/{agents-Tg3zkmQv.js → agents-BepbikC0.js} +1 -1
- package/dist/web/server/assets/{agents-BL918wVc.js → agents-CKkMouJX.js} +1 -1
- package/dist/web/server/assets/{agents-BzJFjA2i.js → agents-Co6S2Ml9.js} +1 -1
- package/dist/web/server/assets/{agents-BlUZqqJn.js → agents-DDUHE3eY.js} +17 -9
- package/dist/web/server/assets/{agents-uw32jPWx.js → agents-DnUK-7qJ.js} +1 -1
- package/dist/web/server/assets/{attention-C94WWwQe.js → attention--1dBWt0c.js} +1 -1
- package/dist/web/server/assets/{attention-2unmuO-q.js → attention-ColV2zMz.js} +1 -1
- package/dist/web/server/assets/{attention-a_OmC6L3.js → attention-n8edCJBL.js} +2 -2
- package/dist/web/server/assets/{auth-DuIqEAed.js → auth-Q5eVKoKR.js} +1 -1
- package/dist/web/server/assets/{config-BG1KOtwA.js → config-BpwsF11b.js} +1 -1
- package/dist/web/server/assets/{config-D1Li_7Yt2.js → config-Cfn1TU8w.js} +1 -1
- package/dist/web/server/assets/{config-Bhem9XER.js → config-UHRqSrh4.js} +4 -4
- package/dist/web/server/assets/{daemon-client-D-NWKQto.js → daemon-client-Dw3ut4pU.js} +1 -1
- package/dist/web/server/assets/{manage-C7ReF2ZZ.js → manage-C7ss0xG5.js} +147 -1
- package/dist/web/server/assets/{mcp-BFixpBQk.js → mcp-COn047tO.js} +1 -1
- package/dist/web/server/assets/mcp-CUoF4jIO.js +753 -0
- package/dist/web/server/assets/{mcp-Ceg9gzKE.js → mcp-DVjTaRq3.js} +1 -1
- package/dist/web/server/assets/{open-groups-C89TEK85.js → open-groups-lUX_YX9X.js} +1 -1
- package/dist/web/server/assets/{router-DizFxqh-.js → router-q3PwQgDH.js} +22 -22
- package/dist/web/server/assets/{routes-DsuaDPTO.js → routes-BgjikzXy.js} +2 -2
- package/dist/web/server/assets/{routes-CVrH9qgo.js → routes-DRtxA9c1.js} +1 -1
- package/dist/web/server/assets/{routes-D9Mw1_VV.js → routes-Do8a2liK.js} +261 -71
- package/dist/web/server/assets/{skills-BNbZ75am.js → skills-B--hjk-0.js} +1 -1
- package/dist/web/server/assets/{skills-D5rnOmKJ.js → skills-D5oN5ehC.js} +4 -4
- package/dist/web/server/assets/{skills-BWwEFc4a.js → skills-DouMCq_2.js} +1 -1
- package/dist/web/server/assets/src-ErO6nYmi.js +226 -0
- package/dist/web/server/assets/{start-2MvkBRdC.js → start-D4sx5Ovq.js} +1 -1
- package/dist/web/server/assets/style-BgFXDhAR.js +64 -0
- package/dist/web/server/assets/{system-Cr4C-YRw.js → system-4WV2pOS4.js} +1 -1
- package/dist/web/server/assets/{system-DsmXkgqn.js → system-A2Aib6JE.js} +2 -1
- package/dist/web/server/assets/{system-DT7AU0e6.js → system-DtGHi7X7.js} +31 -11
- package/dist/web/server/assets/{teams-u6m6JzuU.js → teams-BJNZ7ZsS.js} +1 -1
- package/dist/web/server/assets/{teams-Dix5XVIx.js → teams-Blfyu8ej.js} +1 -1
- package/dist/web/server/assets/{teams-DjE0swAZ.js → teams-BnsbH4YW.js} +9 -9
- package/dist/web/server/assets/{teams-Rk_RED7X.js → teams-GDzT7Tv0.js} +1 -1
- package/dist/web/server/assets/{teams-BeStcDvQ.js → teams-QVxXJfo7.js} +1 -1
- package/dist/web/server/assets/{teams-CsEBLW8-.js → teams-gzY3tOtu.js} +7 -7
- package/dist/web/server/assets/{telegram-CQpF3EHA.js → telegram-BSp9aCz6.js} +1 -1
- package/dist/web/server/assets/{telegram-DhzHgDfg.js → telegram-CIbuQ5-U.js} +1 -1
- package/dist/web/server/assets/{telegram-BjqABrl-.js → telegram-Ctj5dqvs.js} +2 -2
- package/dist/web/server/assets/{tools-DC69leH7.js → tools-BPhol5jb.js} +1 -1
- package/dist/web/server/assets/{usage-mvQegG4l.js → usage-CeiyPffw.js} +1 -1
- package/dist/web/server/assets/{usage-4zMG0sab.js → usage-Dsi2V9Wh.js} +2 -2
- package/dist/web/server/assets/{welcome-DrYbWGd_.js → welcome-A2Koo4HI.js} +3 -3
- package/dist/web/server/assets/{welcome-BuE9FRf4.js → welcome-C71pZOQ9.js} +1 -1
- package/dist/web/server/assets/{welcome-DYw35wl5.js → welcome-PxSZeoU6.js} +1 -1
- package/dist/web/server/server.js +20 -20
- package/dist/worker.js +15 -5
- package/dist/worker.js.map +1 -1
- package/package.json +1 -1
- package/dist/web/client/assets/AddProviderDialog-D8VvDmbM.js +0 -1
- package/dist/web/client/assets/AgentTemplateParts-BWorU6-F.js +0 -1
- package/dist/web/client/assets/ConfirmDialog-DrN26lN_.js +0 -1
- package/dist/web/client/assets/ConnectionsView-DcO7RJZ7.js +0 -1
- package/dist/web/client/assets/SkillsParts-BueR3HoP.js +0 -1
- package/dist/web/client/assets/SpawnTeamModal-B65eQyzu.js +0 -1
- package/dist/web/client/assets/TeamForm-BhI9FbjV.js +0 -1
- package/dist/web/client/assets/TeamThread-FPpHlVFc.js +0 -1
- package/dist/web/client/assets/_id-5mTcKU2j.js +0 -1
- package/dist/web/client/assets/_id-DKgyyyeX.js +0 -1
- package/dist/web/client/assets/agents-Bfwz3dl5.js +0 -1
- package/dist/web/client/assets/config-kMzM8kdp.js +0 -1
- package/dist/web/client/assets/index-DuLpyCSP.js +0 -14
- package/dist/web/client/assets/manage-DdCiSgG9.js +0 -1
- package/dist/web/client/assets/mcp-B3LzNtrr.js +0 -1
- package/dist/web/client/assets/routes-BDdLZEGO.js +0 -85
- package/dist/web/client/assets/style-J8ypSsCb.js +0 -7
- package/dist/web/client/assets/styles-C7NsCHeU.css +0 -2
- package/dist/web/client/assets/system-DtBBeAjO.js +0 -1
- package/dist/web/client/assets/teams-D4X9oNx8.js +0 -1
- package/dist/web/client/assets/teams-QlaY2Sxd.js +0 -1
- package/dist/web/client/assets/telegram-B7vlTQbt.js +0 -1
- package/dist/web/client/assets/usage-3mYfS5C-.js +0 -1
- package/dist/web/client/assets/welcome-CkmanVa_.js +0 -1
- package/dist/web/server/assets/mcp-BTZkDvdc.js +0 -379
- package/dist/web/server/assets/src-BeMh8Fze.js +0 -113
- package/dist/web/server/assets/style-B3l0Wtlf.js +0 -178
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
//#region ../../packages/api-types/src/entities.ts
|
|
2
|
+
/** The Team and the Profile first-run setup creates. */
|
|
3
|
+
var DEFAULT_TEAM_ID = "default";
|
|
4
|
+
/** The longest role an Agent can be given when it is added ("What is it for?"). */
|
|
5
|
+
var AGENT_ROLE_MAX = 4e3;
|
|
6
|
+
/**
|
|
7
|
+
* Why a name cannot be an Agent's, or null. A name is one line of visible text: it is shown in
|
|
8
|
+
* every teammate's instructions, so line breaks and control or format characters are refused.
|
|
9
|
+
*/
|
|
10
|
+
function agentNameProblem(name) {
|
|
11
|
+
if (!name.trim()) return "A name cannot be empty.";
|
|
12
|
+
if (name.length > 120) return `A name is at most 120 characters.`;
|
|
13
|
+
if (/[\p{Cc}\p{Cf}\u2028\u2029]/u.test(name)) return "A name is one line of text, without control characters.";
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
16
|
+
var DEFAULT_PROFILE_ID = "default";
|
|
17
|
+
/** Edge endpoint standing for every Agent in other Teams. */
|
|
18
|
+
var OUTSIDE_TEAM = "outside";
|
|
19
|
+
var REASONING_LEVELS = [
|
|
20
|
+
"off",
|
|
21
|
+
"minimal",
|
|
22
|
+
"low",
|
|
23
|
+
"medium",
|
|
24
|
+
"high",
|
|
25
|
+
"xhigh"
|
|
26
|
+
];
|
|
27
|
+
/**
|
|
28
|
+
* The name an Agent gave itself (its IDENTITY.md, usually in its first conversation), when it is
|
|
29
|
+
* not the name it has in the list: "Sales Director" that calls itself Sally. Null otherwise.
|
|
30
|
+
*/
|
|
31
|
+
function chosenName(agent) {
|
|
32
|
+
const own = agent.identity?.name?.trim();
|
|
33
|
+
if (!own || agentNameProblem(own)) return null;
|
|
34
|
+
return own.toLowerCase() !== agent.name.trim().toLowerCase() ? own : null;
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region ../../packages/api-types/src/mcp-presets.ts
|
|
38
|
+
var MCP_PRESETS = [
|
|
39
|
+
{
|
|
40
|
+
id: "microsoft365",
|
|
41
|
+
title: "Microsoft 365",
|
|
42
|
+
does: "Outlook mail and calendar, OneDrive and Excel; with a work or school account also Teams and SharePoint.",
|
|
43
|
+
command: "npx",
|
|
44
|
+
args: ["-y", "@softeria/ms-365-mcp-server"],
|
|
45
|
+
fields: [],
|
|
46
|
+
options: [{
|
|
47
|
+
id: "org",
|
|
48
|
+
label: "A work or school account",
|
|
49
|
+
hint: "Adds Teams, SharePoint and shared mailboxes.",
|
|
50
|
+
args: ["--org-mode"]
|
|
51
|
+
}],
|
|
52
|
+
signIn: "No key to paste: once it is added, ask any Agent to sign in to Microsoft 365. Its login tool gives a link and a code to enter there, and the Agent then checks the sign-in.",
|
|
53
|
+
guide: "https://github.com/Softeria/ms-365-mcp-server"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
id: "google_workspace",
|
|
57
|
+
title: "Google Workspace",
|
|
58
|
+
does: "Gmail, Calendar, Drive, Docs and Sheets.",
|
|
59
|
+
command: "uvx",
|
|
60
|
+
args: [
|
|
61
|
+
"workspace-mcp",
|
|
62
|
+
"--tool-tier",
|
|
63
|
+
"core"
|
|
64
|
+
],
|
|
65
|
+
fields: [{
|
|
66
|
+
name: "GOOGLE_OAUTH_CLIENT_ID",
|
|
67
|
+
label: "OAuth client ID",
|
|
68
|
+
hint: "From a Google Cloud OAuth client of your own, with the Gmail, Calendar and Drive APIs turned on.",
|
|
69
|
+
secret: false
|
|
70
|
+
}, {
|
|
71
|
+
name: "GOOGLE_OAUTH_CLIENT_SECRET",
|
|
72
|
+
label: "OAuth client secret",
|
|
73
|
+
hint: "The same client’s secret.",
|
|
74
|
+
secret: true
|
|
75
|
+
}],
|
|
76
|
+
options: [],
|
|
77
|
+
needs: "uv, which provides the uvx command.",
|
|
78
|
+
signIn: "You sign in to Google in the browser; its guide shows how to make the OAuth client.",
|
|
79
|
+
guide: "https://github.com/taylorwilsdon/google_workspace_mcp"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
id: "slack",
|
|
83
|
+
title: "Slack",
|
|
84
|
+
does: "Read channels, threads and messages, and search them; post messages when you allow it.",
|
|
85
|
+
command: "npx",
|
|
86
|
+
args: [
|
|
87
|
+
"-y",
|
|
88
|
+
"slack-mcp-server@latest",
|
|
89
|
+
"--transport",
|
|
90
|
+
"stdio"
|
|
91
|
+
],
|
|
92
|
+
fields: [{
|
|
93
|
+
name: "SLACK_MCP_XOXP_TOKEN",
|
|
94
|
+
label: "User token",
|
|
95
|
+
hint: "Starts with xoxp-: a Slack app’s user token, with the scopes its guide lists.",
|
|
96
|
+
secret: true
|
|
97
|
+
}],
|
|
98
|
+
options: [{
|
|
99
|
+
id: "post",
|
|
100
|
+
label: "Let Agents post messages",
|
|
101
|
+
hint: "Off in this server unless turned on. Each post still asks you first.",
|
|
102
|
+
env: { SLACK_MCP_ADD_MESSAGE_TOOL: "true" }
|
|
103
|
+
}],
|
|
104
|
+
signIn: "The token is the sign-in: Agents act as the user who made it.",
|
|
105
|
+
guide: "https://github.com/korotovsky/slack-mcp-server"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
id: "notion",
|
|
109
|
+
title: "Notion",
|
|
110
|
+
does: "Search, read and write pages and databases you share with it.",
|
|
111
|
+
command: "npx",
|
|
112
|
+
args: ["-y", "@notionhq/notion-mcp-server"],
|
|
113
|
+
fields: [{
|
|
114
|
+
name: "NOTION_TOKEN",
|
|
115
|
+
label: "Integration secret",
|
|
116
|
+
hint: "Starts with ntn_: an internal integration’s secret. Share the pages it may use with that integration.",
|
|
117
|
+
secret: true
|
|
118
|
+
}],
|
|
119
|
+
options: [],
|
|
120
|
+
signIn: "The integration secret is the sign-in; it sees only what you share with it.",
|
|
121
|
+
caveat: "Notion no longer maintains this server and recommends its remote one, which needs a browser sign-in Bazilion cannot do yet. It still works with an integration secret.",
|
|
122
|
+
guide: "https://github.com/makenotion/notion-mcp-server"
|
|
123
|
+
}
|
|
124
|
+
];
|
|
125
|
+
/** The server a preset makes, with the options chosen and the fields filled in. */
|
|
126
|
+
function presetServer(preset, options) {
|
|
127
|
+
const chosen = preset.options.filter((option) => options.chosen?.includes(option.id));
|
|
128
|
+
return {
|
|
129
|
+
name: options.name?.trim() || preset.id,
|
|
130
|
+
command: preset.command,
|
|
131
|
+
args: [...preset.args, ...chosen.flatMap((option) => option.args ?? [])],
|
|
132
|
+
env: {
|
|
133
|
+
...Object.fromEntries(preset.fields.map((field) => [field.name, options.values?.[field.name]?.trim() ?? ""]).filter(([, value]) => value !== "")),
|
|
134
|
+
...Object.assign({}, ...chosen.map((option) => option.env ?? {}))
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
//#endregion
|
|
139
|
+
//#region ../../packages/api-types/src/public-origin.ts
|
|
140
|
+
/** The configuration for a BAZILION_PUBLIC_ORIGIN value; anything but an exact HTTPS origin throws. */
|
|
141
|
+
function publicOriginConfig(raw) {
|
|
142
|
+
const value = raw?.trim();
|
|
143
|
+
if (!value) return {
|
|
144
|
+
origin: null,
|
|
145
|
+
production: false,
|
|
146
|
+
sessionCookie: "bz_session_dev",
|
|
147
|
+
csrfCookie: "bz_csrf_dev"
|
|
148
|
+
};
|
|
149
|
+
let url;
|
|
150
|
+
try {
|
|
151
|
+
url = new URL(value);
|
|
152
|
+
} catch {
|
|
153
|
+
throw new Error("BAZILION_PUBLIC_ORIGIN must be an exact HTTPS origin");
|
|
154
|
+
}
|
|
155
|
+
if (url.protocol !== "https:" || url.username || url.password || url.pathname !== "/" || url.search || url.hash || url.origin !== value.replace(/\/$/, "")) throw new Error("BAZILION_PUBLIC_ORIGIN must be an exact HTTPS origin");
|
|
156
|
+
return {
|
|
157
|
+
origin: url.origin,
|
|
158
|
+
production: true,
|
|
159
|
+
sessionCookie: "__Host-bz_session",
|
|
160
|
+
csrfCookie: "__Host-bz_csrf"
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
function isLoopbackHost(hostname) {
|
|
164
|
+
return [
|
|
165
|
+
"127.0.0.1",
|
|
166
|
+
"localhost",
|
|
167
|
+
"[::1]",
|
|
168
|
+
"::1"
|
|
169
|
+
].includes(hostname);
|
|
170
|
+
}
|
|
171
|
+
var TEXT_TYPES = new Set([
|
|
172
|
+
"application/json",
|
|
173
|
+
"application/ld+json",
|
|
174
|
+
"application/xml",
|
|
175
|
+
"application/yaml",
|
|
176
|
+
"application/x-yaml",
|
|
177
|
+
"application/toml",
|
|
178
|
+
"application/javascript",
|
|
179
|
+
"application/x-sh",
|
|
180
|
+
"application/sql",
|
|
181
|
+
"application/x-ndjson"
|
|
182
|
+
]);
|
|
183
|
+
/** Files sent without a text type (`application/octet-stream`) that are text by their name. */
|
|
184
|
+
var TEXT_EXTENSIONS = new Set("txt md markdown csv tsv json jsonl ndjson yaml yml toml ini cfg conf log xml css scss js mjs cjs jsx ts tsx py rb go rs java kt swift c h cc cpp hpp cs php sh bash zsh fish ps1 sql r lua pl tex diff patch vue svelte graphql proto dockerfile makefile".split(" "));
|
|
185
|
+
/** Pages a browser would run are only ever downloaded, never shown, not even as text. */
|
|
186
|
+
var ACTIVE_TYPES = new Set([
|
|
187
|
+
"text/html",
|
|
188
|
+
"application/xhtml+xml",
|
|
189
|
+
"image/svg+xml"
|
|
190
|
+
]);
|
|
191
|
+
/** Whether Files can show a saved file as text: its type or its name says text, and it is small. */
|
|
192
|
+
function isTextPreview(result) {
|
|
193
|
+
if (result.byteLength > 262144) return false;
|
|
194
|
+
const type = result.mimeType.toLowerCase();
|
|
195
|
+
if (ACTIVE_TYPES.has(type)) return false;
|
|
196
|
+
if (type.startsWith("text/") || TEXT_TYPES.has(type) || /\+(json|xml)$/.test(type)) return true;
|
|
197
|
+
if (type !== "application/octet-stream") return false;
|
|
198
|
+
const name = result.name.toLowerCase();
|
|
199
|
+
const extension = name.includes(".") ? name.slice(name.lastIndexOf(".") + 1) : name;
|
|
200
|
+
return TEXT_EXTENSIONS.has(extension);
|
|
201
|
+
}
|
|
202
|
+
//#endregion
|
|
203
|
+
//#region ../../packages/api-types/src/usage.ts
|
|
204
|
+
/** US dollars as Usage shows them: `$0.42`, `<$0.01`, `$1,234`. */
|
|
205
|
+
function formatCost(usd) {
|
|
206
|
+
if (usd <= 0) return "$0.00";
|
|
207
|
+
if (usd < .01) return "<$0.01";
|
|
208
|
+
if (usd < 1e3) return `$${usd.toFixed(2)}`;
|
|
209
|
+
return `$${Math.round(usd).toLocaleString("en-US")}`;
|
|
210
|
+
}
|
|
211
|
+
/** A use in a few words: `$0.42 · 12k tokens`, `15k tokens, on a plan`, `3.1k tokens, local`. */
|
|
212
|
+
function usageSummary(usage) {
|
|
213
|
+
const tokens = `${formatTokens(usage.totalTokens)} tokens`;
|
|
214
|
+
if (usage.cost > 0) return `${formatCost(usage.cost)} · ${tokens}`;
|
|
215
|
+
if (usage.totalTokens > 0 && usage.planTokens === usage.totalTokens) return `${tokens}, on a plan`;
|
|
216
|
+
if (usage.totalTokens > 0 && usage.localTokens === usage.totalTokens) return `${tokens}, local`;
|
|
217
|
+
return tokens;
|
|
218
|
+
}
|
|
219
|
+
/** A token count in a few characters: `950`, `12.5k`, `3.4M`. */
|
|
220
|
+
function formatTokens(tokens) {
|
|
221
|
+
if (tokens < 1e3) return String(Math.round(tokens));
|
|
222
|
+
if (tokens < 1e6) return `${(tokens / 1e3).toFixed(tokens < 1e4 ? 1 : 0)}k`;
|
|
223
|
+
return `${(tokens / 1e6).toFixed(tokens < 1e7 ? 1 : 0)}M`;
|
|
224
|
+
}
|
|
225
|
+
//#endregion
|
|
226
|
+
export { isLoopbackHost as a, presetServer as c, DEFAULT_TEAM_ID as d, OUTSIDE_TEAM as f, chosenName as h, isTextPreview as i, AGENT_ROLE_MAX as l, agentNameProblem as m, formatTokens as n, publicOriginConfig as o, REASONING_LEVELS as p, usageSummary as r, MCP_PRESETS as s, formatCost as t, DEFAULT_PROFILE_ID as u };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as createMiddleware } from "../server.js";
|
|
2
2
|
import { n as cookieValues } from "./cookies-HnTYjKRp.js";
|
|
3
|
-
import { a as isLoopbackHost, o as publicOriginConfig } from "./src-
|
|
3
|
+
import { a as isLoopbackHost, o as publicOriginConfig } from "./src-ErO6nYmi.js";
|
|
4
4
|
//#region ../../node_modules/.pnpm/@tanstack+start-client-core@1.170.14/node_modules/@tanstack/start-client-core/dist/esm/createStart.js
|
|
5
5
|
function dedupeSerializationAdapters(deduped, serializationAdapters) {
|
|
6
6
|
for (let i = 0, len = serializationAdapters.length; i < len; i++) {
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { F as hasEdge, P as endpointLabel, k as OUTSIDE } from "./manage-C7ss0xG5.js";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Check, Minus, X } from "lucide-react";
|
|
4
|
+
//#region src/components/team-policy/TeamPolicyMatrix.tsx
|
|
5
|
+
function TeamPolicyMatrix({ document, selectedId, onSelect, onToggle }) {
|
|
6
|
+
const actors = [...document.members.map((member) => member.key), OUTSIDE];
|
|
7
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
8
|
+
className: "h-full min-h-[420px] overflow-auto bg-ivory p-4 sm:p-6",
|
|
9
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
10
|
+
className: "mb-4",
|
|
11
|
+
children: [/* @__PURE__ */ jsx("h2", {
|
|
12
|
+
className: "m-0 font-body text-base font-semibold text-chocolate",
|
|
13
|
+
children: "Communication matrix"
|
|
14
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
15
|
+
className: "mt-1 text-xs text-mocha-light",
|
|
16
|
+
children: "Rows send; columns receive. Every cell edits the same connections as Flow."
|
|
17
|
+
})]
|
|
18
|
+
}), /* @__PURE__ */ jsxs("table", {
|
|
19
|
+
className: "m-0 min-w-[620px] table-fixed overflow-visible rounded-md text-xs",
|
|
20
|
+
children: [/* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [/* @__PURE__ */ jsx("th", {
|
|
21
|
+
className: "sticky left-0 z-20 w-40 bg-ivory",
|
|
22
|
+
children: "from / to"
|
|
23
|
+
}), actors.map((target) => /* @__PURE__ */ jsx("th", {
|
|
24
|
+
className: "w-24 max-w-24 text-center normal-case tracking-normal",
|
|
25
|
+
children: /* @__PURE__ */ jsx("button", {
|
|
26
|
+
type: "button",
|
|
27
|
+
onClick: () => onSelect(target),
|
|
28
|
+
className: `w-full truncate rounded-sm px-1 py-1 hover:bg-sapphire-glow ${selectedId === target ? "text-sapphire" : "text-mocha"}`,
|
|
29
|
+
title: endpointLabel(document, target),
|
|
30
|
+
children: endpointLabel(document, target)
|
|
31
|
+
})
|
|
32
|
+
}, target))] }) }), /* @__PURE__ */ jsx("tbody", { children: actors.map((source) => /* @__PURE__ */ jsxs("tr", { children: [/* @__PURE__ */ jsx("th", {
|
|
33
|
+
className: "sticky left-0 z-10 max-w-40 bg-snow normal-case tracking-normal",
|
|
34
|
+
children: /* @__PURE__ */ jsx("button", {
|
|
35
|
+
type: "button",
|
|
36
|
+
onClick: () => onSelect(source),
|
|
37
|
+
className: `w-full truncate rounded-sm px-1 py-1 text-left hover:bg-sapphire-glow ${selectedId === source ? "text-sapphire" : "text-mocha"}`,
|
|
38
|
+
title: endpointLabel(document, source),
|
|
39
|
+
children: endpointLabel(document, source)
|
|
40
|
+
})
|
|
41
|
+
}), actors.map((target) => {
|
|
42
|
+
const allowed = hasEdge(document, source, target);
|
|
43
|
+
const label = `${endpointLabel(document, source)} to ${endpointLabel(document, target)}`;
|
|
44
|
+
return /* @__PURE__ */ jsx("td", {
|
|
45
|
+
className: "h-14 p-1 text-center",
|
|
46
|
+
children: source !== target ? /* @__PURE__ */ jsx("button", {
|
|
47
|
+
type: "button",
|
|
48
|
+
onClick: () => onToggle(source, target, !allowed),
|
|
49
|
+
"aria-pressed": allowed,
|
|
50
|
+
"aria-label": `${allowed ? "Deny" : "Allow"} ${label}`,
|
|
51
|
+
title: `${allowed ? "Allowed" : "Not allowed"}: ${label}`,
|
|
52
|
+
className: `mx-auto flex h-9 w-9 items-center justify-center rounded-md border transition-colors ${allowed ? "border-sapphire bg-sapphire text-snow hover:bg-sapphire-deep" : "border-frost bg-ivory text-mocha-light hover:border-rose-baziu hover:text-rose-baziu"}`,
|
|
53
|
+
children: allowed ? /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" }) : /* @__PURE__ */ jsx(X, { className: "h-4 w-4" })
|
|
54
|
+
}) : /* @__PURE__ */ jsx("span", {
|
|
55
|
+
className: "mx-auto flex h-9 w-9 items-center justify-center text-mocha-light",
|
|
56
|
+
children: /* @__PURE__ */ jsx(Minus, { className: "h-4 w-4" })
|
|
57
|
+
})
|
|
58
|
+
}, target);
|
|
59
|
+
})] }, source)) })]
|
|
60
|
+
})]
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
//#endregion
|
|
64
|
+
export { TeamPolicyMatrix as t };
|
|
@@ -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-
|
|
5
|
+
var $$splitComponentImporter = () => import("./system-DtGHi7X7.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
1
|
import { n as createServerFn } from "../server.js";
|
|
2
2
|
import { t as createServerRpc } from "./createServerRpc-B7Yr1K8i.js";
|
|
3
|
-
import { n as daemonClient } from "./daemon-client-
|
|
3
|
+
import { n as daemonClient } from "./daemon-client-Dw3ut4pU.js";
|
|
4
4
|
//#region src/routes/config/system.tsx?tss-serverfn-split
|
|
5
5
|
var fetchSystem_createServerFn_handler = createServerRpc({
|
|
6
6
|
id: "58834496dff9dbc5592f06b548d9eed177e540c1be46c549dbd10fb7987403d7",
|
|
@@ -12,6 +12,7 @@ var fetchSystem = createServerFn({ method: "GET" }).handler(fetchSystem_createSe
|
|
|
12
12
|
const [health, { tools }] = await Promise.all([daemon.get("/api/health/details"), daemon.get("/api/config/tools")]);
|
|
13
13
|
return {
|
|
14
14
|
ok: health.ok,
|
|
15
|
+
problems: health.problems ?? [],
|
|
15
16
|
runtime: health.shellSecurity,
|
|
16
17
|
commands: tools.find((tool) => tool.id === "commands")?.state ?? null
|
|
17
18
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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-
|
|
2
|
+
import { t as Route } from "./system-4WV2pOS4.js";
|
|
3
3
|
import { t as ConfigPage } from "./ConfigPage-CrxctbtN.js";
|
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
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
|
|
7
7
|
var TONE = {
|
|
@@ -9,8 +9,8 @@ var TONE = {
|
|
|
9
9
|
warning: "warning",
|
|
10
10
|
off: "neutral"
|
|
11
11
|
};
|
|
12
|
-
/** Whether the home, the database and what they hold are in order. */
|
|
13
|
-
function HealthCard({ ok }) {
|
|
12
|
+
/** Whether the home, the database and what they hold are in order, and if not, what is not. */
|
|
13
|
+
function HealthCard({ ok, problems }) {
|
|
14
14
|
return /* @__PURE__ */ jsx(SetupCard, {
|
|
15
15
|
labelledBy: "system-health",
|
|
16
16
|
icon: /* @__PURE__ */ jsx(HeartPulse, { className: "size-5" }),
|
|
@@ -30,11 +30,28 @@ function HealthCard({ ok }) {
|
|
|
30
30
|
}) : /* @__PURE__ */ jsxs(Notice, {
|
|
31
31
|
tone: "warning",
|
|
32
32
|
title: "Something in the installation is not as it should be.",
|
|
33
|
-
children: [
|
|
34
|
-
"
|
|
35
|
-
/* @__PURE__ */ jsx("
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
children: [problems.length > 0 ? /* @__PURE__ */ jsx("ul", {
|
|
34
|
+
className: "m-0 mt-1 list-disc space-y-1 pl-5",
|
|
35
|
+
children: problems.map((problem) => /* @__PURE__ */ jsx("li", {
|
|
36
|
+
className: "break-words",
|
|
37
|
+
children: problem
|
|
38
|
+
}, problem))
|
|
39
|
+
}) : null, /* @__PURE__ */ jsxs("p", {
|
|
40
|
+
className: "m-0 mt-1.5",
|
|
41
|
+
children: [
|
|
42
|
+
problems.some((problem) => problem.startsWith("The skill ")) && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
43
|
+
"Fix or remove a broken skill under ",
|
|
44
|
+
/* @__PURE__ */ jsx("a", {
|
|
45
|
+
href: "/skills",
|
|
46
|
+
children: "Manage → Skills"
|
|
47
|
+
}),
|
|
48
|
+
".",
|
|
49
|
+
" "
|
|
50
|
+
] }),
|
|
51
|
+
/* @__PURE__ */ jsx("code", { children: "bazilion doctor" }),
|
|
52
|
+
" in a terminal gives the full report."
|
|
53
|
+
]
|
|
54
|
+
})]
|
|
38
55
|
}) })
|
|
39
56
|
});
|
|
40
57
|
}
|
|
@@ -127,12 +144,15 @@ function BackupCard() {
|
|
|
127
144
|
//#endregion
|
|
128
145
|
//#region src/routes/config/system.tsx?tsr-split=component
|
|
129
146
|
function SystemPage() {
|
|
130
|
-
const { ok, runtime, commands } = Route.useLoaderData();
|
|
147
|
+
const { ok, problems, runtime, commands } = Route.useLoaderData();
|
|
131
148
|
return /* @__PURE__ */ jsxs(ConfigPage, {
|
|
132
149
|
title: "System",
|
|
133
150
|
description: "The installation itself: its health, how Agents run commands, and a backup of everything.",
|
|
134
151
|
children: [
|
|
135
|
-
/* @__PURE__ */ jsx(HealthCard, {
|
|
152
|
+
/* @__PURE__ */ jsx(HealthCard, {
|
|
153
|
+
ok,
|
|
154
|
+
problems
|
|
155
|
+
}),
|
|
136
156
|
/* @__PURE__ */ jsx(RuntimeCard, {
|
|
137
157
|
shell: runtime,
|
|
138
158
|
state: commands
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as createServerFn } from "../server.js";
|
|
2
2
|
import { t as createServerRpc } from "./createServerRpc-B7Yr1K8i.js";
|
|
3
|
-
import { n as daemonClient } from "./daemon-client-
|
|
3
|
+
import { n as daemonClient } from "./daemon-client-Dw3ut4pU.js";
|
|
4
4
|
//#region src/routes/templates/teams/index.tsx?tss-serverfn-split
|
|
5
5
|
var fetchTemplates_createServerFn_handler = createServerRpc({
|
|
6
6
|
id: "04bb4df13ae68275e2f037ca67976778d2133273183d30d9ac2821f7cc7e85ad",
|
|
@@ -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-BnsbH4YW.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 }),
|
|
@@ -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
3
|
import { t as Button } from "./Button-Dsnw22OF.js";
|
|
3
|
-
import { n as DialogActions, t as Dialog } from "./Dialog-
|
|
4
|
-
import { t as ConfirmDialog } from "./ConfirmDialog-
|
|
4
|
+
import { n as DialogActions, t as Dialog } from "./Dialog-CwAfaXpM.js";
|
|
5
|
+
import { t as ConfirmDialog } from "./ConfirmDialog-CuD5HXTw.js";
|
|
5
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";
|
|
6
7
|
import { d as TextField } from "./form-Bwsyt9OY.js";
|
|
7
|
-
import { t as Route } from "./teams-
|
|
8
|
+
import { t as Route } from "./teams-Blfyu8ej.js";
|
|
8
9
|
import { t as ManagePage } from "./ManagePage-DGYNJ6XG.js";
|
|
9
|
-
import {
|
|
10
|
-
import { t as SpawnTeamModal } from "./SpawnTeamModal-zcLxtFOO.js";
|
|
10
|
+
import { t as SpawnTeamModal } from "./SpawnTeamModal-BmBXqfFi.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";
|
|
@@ -31,7 +31,7 @@ function TeamTemplatesPage() {
|
|
|
31
31
|
};
|
|
32
32
|
return /* @__PURE__ */ jsxs(ManagePage, {
|
|
33
33
|
title: "Team templates",
|
|
34
|
-
description: "Reusable rosters: one Agent per slot, from an Agent template, and who may message whom.
|
|
34
|
+
description: "Reusable rosters: one Agent per slot, from an Agent template, and who may message whom. Using one adds its Agents and their connections to a new Team or one that exists.",
|
|
35
35
|
actions: /* @__PURE__ */ jsx(Button, {
|
|
36
36
|
variant: "primary",
|
|
37
37
|
onClick: () => setCreating(true),
|
|
@@ -67,7 +67,7 @@ function TeamTemplatesPage() {
|
|
|
67
67
|
}),
|
|
68
68
|
chip: template.policyMode === "restricted" && /* @__PURE__ */ jsx(Chip, {
|
|
69
69
|
tone: "neutral",
|
|
70
|
-
children:
|
|
70
|
+
children: MODE_NAME.restricted
|
|
71
71
|
}),
|
|
72
72
|
meta: /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
73
73
|
/* @__PURE__ */ jsx("span", {
|
|
@@ -80,9 +80,9 @@ function TeamTemplatesPage() {
|
|
|
80
80
|
actions: /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Button, {
|
|
81
81
|
variant: "ghost",
|
|
82
82
|
disabled: template.slots.length === 0,
|
|
83
|
-
"aria-label": `
|
|
83
|
+
"aria-label": `Use ${template.name}`,
|
|
84
84
|
onClick: () => setSpawning(template),
|
|
85
|
-
children: "
|
|
85
|
+
children: "Use"
|
|
86
86
|
}), /* @__PURE__ */ jsx(RowMenu, {
|
|
87
87
|
label: `More for ${template.name}`,
|
|
88
88
|
items: [{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as createServerFn } from "../server.js";
|
|
2
2
|
import { t as createServerRpc } from "./createServerRpc-B7Yr1K8i.js";
|
|
3
|
-
import { n as daemonClient } from "./daemon-client-
|
|
3
|
+
import { n as daemonClient } from "./daemon-client-Dw3ut4pU.js";
|
|
4
4
|
//#region src/routes/teams/index.tsx?tss-serverfn-split
|
|
5
5
|
var fetchTeams_createServerFn_handler = createServerRpc({
|
|
6
6
|
id: "fda651b73911d8ef30f3a6b58894b5d853fdc4997acaf1793c76c06680504b82",
|
|
@@ -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-gzY3tOtu.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
3
|
import { t as AgentAvatar } from "./AgentAvatar-8gTAy_tP.js";
|
|
3
4
|
import { t as Button } from "./Button-Dsnw22OF.js";
|
|
4
|
-
import { t as Dialog } from "./Dialog-
|
|
5
|
-
import { t as ConfirmDialog } from "./ConfirmDialog-
|
|
5
|
+
import { t as Dialog } from "./Dialog-CwAfaXpM.js";
|
|
6
|
+
import { t as ConfirmDialog } from "./ConfirmDialog-CuD5HXTw.js";
|
|
6
7
|
import { _ as RowMenu, d as Chip, h as ListRow, i as CardEmpty, o as CardList, y as SetupCard } from "./parts-B0wbj_yK.js";
|
|
7
|
-
import { t as Route } from "./teams-
|
|
8
|
+
import { t as Route } from "./teams-QVxXJfo7.js";
|
|
8
9
|
import { t as ManagePage } from "./ManagePage-DGYNJ6XG.js";
|
|
9
|
-
import {
|
|
10
|
-
import { t as TeamForm } from "./TeamForm-XFP0l2TB.js";
|
|
10
|
+
import { t as TeamForm } from "./TeamForm-B4702hBg.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";
|
|
@@ -95,11 +95,11 @@ function TeamsPage() {
|
|
|
95
95
|
}),
|
|
96
96
|
chip: team.policyMode === "restricted" && /* @__PURE__ */ jsx(Chip, {
|
|
97
97
|
tone: "neutral",
|
|
98
|
-
children:
|
|
98
|
+
children: MODE_NAME.restricted
|
|
99
99
|
}),
|
|
100
100
|
meta: /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
101
101
|
/* @__PURE__ */ jsxs("span", { children: [current.length === 0 ? "No Agents" : current.map((agent) => agent.name).join(", "), archived > 0 && ` · ${archived} archived`] }),
|
|
102
|
-
/* @__PURE__ */ jsx("span", { children: team.policyMode
|
|
102
|
+
/* @__PURE__ */ jsx("span", { children: MODE_SENTENCE[team.policyMode] }),
|
|
103
103
|
/* @__PURE__ */ jsx("code", { children: team.id })
|
|
104
104
|
] }),
|
|
105
105
|
actions: /* @__PURE__ */ jsx(RowMenu, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as createServerFn } from "../server.js";
|
|
2
2
|
import { t as createServerRpc } from "./createServerRpc-B7Yr1K8i.js";
|
|
3
|
-
import { n as daemonClient } from "./daemon-client-
|
|
3
|
+
import { n as daemonClient } from "./daemon-client-Dw3ut4pU.js";
|
|
4
4
|
//#region src/routes/config/telegram.tsx?tss-serverfn-split
|
|
5
5
|
var fetchTelegramConfig_createServerFn_handler = createServerRpc({
|
|
6
6
|
id: "9252e07d6f45cb1c4543c2ca6f1b0c4c7697c249f3e6c94fda53b8a603929a92",
|
|
@@ -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-Ctj5dqvs.js");
|
|
6
6
|
var fetchTelegramConfig = createServerFn({ method: "GET" }).handler(createSsrRpc("9252e07d6f45cb1c4543c2ca6f1b0c4c7697c249f3e6c94fda53b8a603929a92"));
|
|
7
7
|
var Route = createFileRoute("/config/telegram")({
|
|
8
8
|
loader: () => fetchTelegramConfig(),
|
|
@@ -2,10 +2,10 @@ 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
4
|
import { r as ago } from "./ModelMenu-DEJoYASj.js";
|
|
5
|
-
import { t as ConfirmDialog } from "./ConfirmDialog-
|
|
5
|
+
import { t as ConfirmDialog } from "./ConfirmDialog-CuD5HXTw.js";
|
|
6
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
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-
|
|
8
|
+
import { t as Route } from "./telegram-CIbuQ5-U.js";
|
|
9
9
|
import { t as ConfigPage } from "./ConfigPage-CrxctbtN.js";
|
|
10
10
|
import { useEffect, useState } from "react";
|
|
11
11
|
import { useRouter } from "@tanstack/react-router";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as createServerFn } from "../server.js";
|
|
2
2
|
import { t as createServerRpc } from "./createServerRpc-B7Yr1K8i.js";
|
|
3
|
-
import { n as daemonClient } from "./daemon-client-
|
|
3
|
+
import { n as daemonClient } from "./daemon-client-Dw3ut4pU.js";
|
|
4
4
|
//#region src/routes/config/tools.tsx?tss-serverfn-split
|
|
5
5
|
var fetchTools_createServerFn_handler = createServerRpc({
|
|
6
6
|
id: "946c6cbff3f55931c3fb28c971d20b18b4b8a9f25417a5d1afc0550d7afa393b",
|
|
@@ -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-Dsi2V9Wh.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/")({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { i as api } from "./live-DbJeq6KP.js";
|
|
2
|
-
import { n as formatTokens, r as usageSummary, t as formatCost } from "./src-
|
|
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
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-
|
|
6
|
+
import { n as PERIODS, r as parseDays, t as Route } from "./usage-CeiyPffw.js";
|
|
7
7
|
import { t as ManagePage } from "./ManagePage-DGYNJ6XG.js";
|
|
8
8
|
import { useEffect, useId, useState } from "react";
|
|
9
9
|
import { Link, useNavigate } from "@tanstack/react-router";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { i as api } from "./live-DbJeq6KP.js";
|
|
2
|
-
import {
|
|
2
|
+
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
6
|
import { C as PageShell } from "./parts-B0wbj_yK.js";
|
|
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-
|
|
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";
|
|
9
9
|
import { useState } from "react";
|
|
10
10
|
import { useNavigate } from "@tanstack/react-router";
|
|
11
11
|
import { 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-A2Koo4HI.js");
|
|
15
15
|
var fetchProviders = createServerFn({ method: "GET" }).handler(createSsrRpc("818bf71baeed233268a5ad1a4be5a77e488be79b79ad1bd739463445a7be4d58"));
|
|
16
16
|
var Route = createFileRoute("/welcome")({
|
|
17
17
|
beforeLoad: async () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as createServerFn } from "../server.js";
|
|
2
2
|
import { t as createServerRpc } from "./createServerRpc-B7Yr1K8i.js";
|
|
3
|
-
import { n as daemonClient } from "./daemon-client-
|
|
3
|
+
import { n as daemonClient } from "./daemon-client-Dw3ut4pU.js";
|
|
4
4
|
//#region src/routes/welcome.tsx?tss-serverfn-split
|
|
5
5
|
var fetchProviders_createServerFn_handler = createServerRpc({
|
|
6
6
|
id: "818bf71baeed233268a5ad1a4be5a77e488be79b79ad1bd739463445a7be4d58",
|