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
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { a as apiFetch, i as api, n as useLive, o as errorMessage, r as ApiError } from "./live-DbJeq6KP.js";
|
|
2
2
|
import { a as useActivity, c as lineChange, i as teamSummary, l as parseArgs, o as useActivityOptional, r as shortTime, s as describeStep, t as ActivityProvider, u as summarizeSteps } from "./activity-Czfq-5_F.js";
|
|
3
|
-
import {
|
|
3
|
+
import { d as DEFAULT_TEAM_ID, h as chosenName, i as isTextPreview, p as REASONING_LEVELS, r as usageSummary, u as DEFAULT_PROFILE_ID } from "./src-ErO6nYmi.js";
|
|
4
|
+
import { D as MODE_NAME, O as MODE_SENTENCE, S as slugify, _ as skillState, x as slugProblem } from "./manage-C7ss0xG5.js";
|
|
4
5
|
import { n as useMediaQuery, r as useResource, t as useHydrated } from "./use-resource-BjN1uJoL.js";
|
|
5
6
|
import { t as AgentAvatar } from "./AgentAvatar-8gTAy_tP.js";
|
|
6
7
|
import { t as Button } from "./Button-Dsnw22OF.js";
|
|
7
8
|
import { l as modelName, m as revealInStrip, n as ModelMenu, p as cn, t as MODELS_PATH } from "./ModelMenu-DEJoYASj.js";
|
|
8
|
-
import { i as restoreDialogFocus, n as DialogActions, r as getDialogFocusRestoreTarget, t as Dialog$1 } from "./Dialog-
|
|
9
|
-
import { t as ConfirmDialog } from "./ConfirmDialog-
|
|
9
|
+
import { i as restoreDialogFocus, n as DialogActions, r as getDialogFocusRestoreTarget, t as Dialog$1 } from "./Dialog-CwAfaXpM.js";
|
|
10
|
+
import { t as ConfirmDialog } from "./ConfirmDialog-CuD5HXTw.js";
|
|
10
11
|
import { t as Segmented } from "./Segmented-3ZLdqa5U.js";
|
|
11
|
-
import { t as UnsavedChangesGuard } from "./UnsavedChangesGuard-
|
|
12
|
-
import { a as trafficByPair, c as FocusFrame, d as useWorkspaceOptional, i as pairKey, l as
|
|
12
|
+
import { t as UnsavedChangesGuard } from "./UnsavedChangesGuard-Be8EqfV_.js";
|
|
13
|
+
import { a as trafficByPair, c as FocusFrame, d as useWorkspace, f as useWorkspaceOptional, i as pairKey, l as useTeamCounts, n as useTeamMessages, o as STATE_DOT, r as messageText, s as STATE_TEXT, t as TeamThread, u as WorkspaceProvider } from "./TeamThread-BGl5z8_I.js";
|
|
13
14
|
import { a as isAgentSection, i as PANEL_TABS, l as writePanelCookie, o as isTeamSection, r as PANEL_LABELS } from "./workspace-0XPILV1W.js";
|
|
14
15
|
import { i as useAttentionCount, n as usePageTitle } from "./page-title-PTpFHXWo.js";
|
|
15
16
|
import { _ as RowMenu, a as CardForm, b as Switch, c as CardToolbar, d as Chip, f as Fact, g as Notice, h as ListRow, i as CardEmpty, n as CARD_ROW, o as CardList, p as Facts, r as CardBody, v as SearchField, w as StatusBadge, y as SetupCard } from "./parts-B0wbj_yK.js";
|
|
16
|
-
import { a as neighbour, i as isTyping, n as NEW_CONVERSATION_EVENT, t as Route } from "./routes-
|
|
17
|
+
import { a as neighbour, i as isTyping, n as NEW_CONVERSATION_EVENT, t as Route } from "./routes-DRtxA9c1.js";
|
|
17
18
|
import { a as SaveBar, c as SelectMenu, d as TextField, f as saveStatus, l as SwitchRow, n as ChoiceCards, r as FilterSelect, s as SelectField, u as TextAreaField } from "./form-Bwsyt9OY.js";
|
|
18
|
-
import { t as SpawnDialog } from "./SpawnDialog-
|
|
19
|
+
import { t as SpawnDialog } from "./SpawnDialog-BjVZl7xK.js";
|
|
19
20
|
import { i as unarchiveAgent, n as deleteAgent, r as renameAgent, t as archiveAgent } from "./agent-actions-ChH7Mne4.js";
|
|
20
|
-
import {
|
|
21
|
-
import { t as
|
|
22
|
-
import {
|
|
23
|
-
import { n as
|
|
24
|
-
import { n as FindingsNotice, t as FindingLines } from "./SkillsParts-CqS2B45v.js";
|
|
21
|
+
import { t as SpawnTeamModal } from "./SpawnTeamModal-BmBXqfFi.js";
|
|
22
|
+
import { t as TeamForm } from "./TeamForm-B4702hBg.js";
|
|
23
|
+
import { n as isGroupOpen, r as writeOpenGroupsCookie } from "./open-groups-lUX_YX9X.js";
|
|
24
|
+
import { n as FindingsNotice, t as FindingLines } from "./SkillsParts-hjS9a_Ht.js";
|
|
25
25
|
import { Fragment, Suspense, createContext, lazy, useCallback, useContext, useEffect, useId, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
26
26
|
import { Link, useNavigate, useRouter } from "@tanstack/react-router";
|
|
27
27
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
28
|
-
import { Archive, ArrowLeft, ArrowLeftRight, ArrowRight, BarChart3, BellRing, BookOpen, BookOpenCheck, Bot, CalendarClock, Check, ChevronDown, ChevronRight, CircleHelp, Code2, Columns2, Download, Ellipsis, FileText, FolderOpen, GitBranch, Globe, History, Image, Images, Inbox, LayoutTemplate, Lightbulb, ListChecks, MessageSquare, MessageSquarePlus, MessagesSquare, Network, NotebookText, OctagonX, PanelLeft, PanelRight, Paperclip, Pencil, PencilLine, Plus, RefreshCw, Search, Send, Settings2, Sparkles, StickyNote, Terminal, Trash2, UserRound, UsersRound, Wrench, X } from "lucide-react";
|
|
28
|
+
import { Archive, ArrowLeft, ArrowLeftRight, ArrowRight, ArrowRightLeft, BarChart3, BellRing, BookOpen, BookOpenCheck, Bot, CalendarClock, Check, ChevronDown, ChevronRight, CircleHelp, Code2, Columns2, CornerDownLeft, Download, Ellipsis, FileText, FolderOpen, GitBranch, Globe, History, Image, Images, Inbox, LayoutTemplate, Lightbulb, ListChecks, MessageSquare, MessageSquarePlus, MessageSquareWarning, MessagesSquare, Network, NotebookText, OctagonX, PanelLeft, PanelRight, Paperclip, Pencil, PencilLine, Plus, RefreshCw, Search, Send, Settings2, ShieldAlert, Sparkles, StickyNote, Terminal, Trash2, UserRound, UsersRound, Wrench, X } from "lucide-react";
|
|
29
29
|
import { DropdownMenu } from "radix-ui";
|
|
30
30
|
import DOMPurify from "dompurify";
|
|
31
31
|
import { marked } from "marked";
|
|
@@ -988,27 +988,6 @@ function ReviewCart({ teamId, session, authors, onOpenFile }) {
|
|
|
988
988
|
});
|
|
989
989
|
}
|
|
990
990
|
//#endregion
|
|
991
|
-
//#region src/components/workspace/counts.ts
|
|
992
|
-
/** How many changed files and saved files the Team has; null while unknown or not applicable. */
|
|
993
|
-
function useTeamCounts(teamId) {
|
|
994
|
-
const { turnsEnded } = useActivity();
|
|
995
|
-
return useResource(async (signal) => {
|
|
996
|
-
if (!teamId) return {
|
|
997
|
-
changes: null,
|
|
998
|
-
files: null
|
|
999
|
-
};
|
|
1000
|
-
const team = encodeURIComponent(teamId);
|
|
1001
|
-
const [changes, files] = await Promise.all([api(`/api/teams/${team}/review`, { signal }).then((review) => "unavailable" in review ? null : review.changes.changes.length).catch(() => null), api(`/api/results?teamId=${team}&limit=1`, { signal }).then((list) => list.total).catch(() => null)]);
|
|
1002
|
-
return {
|
|
1003
|
-
changes,
|
|
1004
|
-
files
|
|
1005
|
-
};
|
|
1006
|
-
}, [teamId], { refreshOn: turnsEnded }).data ?? {
|
|
1007
|
-
changes: null,
|
|
1008
|
-
files: null
|
|
1009
|
-
};
|
|
1010
|
-
}
|
|
1011
|
-
//#endregion
|
|
1012
991
|
//#region src/components/agent/AgentModel.tsx
|
|
1013
992
|
function AgentModel({ agent }) {
|
|
1014
993
|
const router = useRouter();
|
|
@@ -1219,6 +1198,17 @@ function AgentPanel({ agent: resolved }) {
|
|
|
1219
1198
|
const router = useRouter();
|
|
1220
1199
|
const hydrated = useHydrated();
|
|
1221
1200
|
const [renaming, setRenaming] = useState(false);
|
|
1201
|
+
const own = chosenName(agent);
|
|
1202
|
+
async function takeOwnName() {
|
|
1203
|
+
if (!own) return;
|
|
1204
|
+
setError(null);
|
|
1205
|
+
try {
|
|
1206
|
+
await renameAgent(agent.id, own);
|
|
1207
|
+
await router.invalidate();
|
|
1208
|
+
} catch (cause) {
|
|
1209
|
+
setError(errorMessage(cause));
|
|
1210
|
+
}
|
|
1211
|
+
}
|
|
1222
1212
|
const [confirm, setConfirm] = useState(null);
|
|
1223
1213
|
const [error, setError] = useState(null);
|
|
1224
1214
|
const archived = agent.status === "archived";
|
|
@@ -1310,6 +1300,23 @@ function AgentPanel({ agent: resolved }) {
|
|
|
1310
1300
|
className: "m-0 truncate text-xs text-muted-foreground",
|
|
1311
1301
|
children: [agent.identity?.creature, agent.identity?.vibe].filter(Boolean).join(" · ")
|
|
1312
1302
|
}),
|
|
1303
|
+
own && /* @__PURE__ */ jsxs("p", {
|
|
1304
|
+
className: "m-0 mt-0.5 flex min-w-0 flex-wrap items-center gap-x-1.5 text-xs text-mocha",
|
|
1305
|
+
children: [/* @__PURE__ */ jsxs("span", { children: [
|
|
1306
|
+
"It calls itself ",
|
|
1307
|
+
own,
|
|
1308
|
+
"."
|
|
1309
|
+
] }), /* @__PURE__ */ jsxs("button", {
|
|
1310
|
+
type: "button",
|
|
1311
|
+
onClick: () => void takeOwnName(),
|
|
1312
|
+
className: "unstyled font-semibold text-sapphire underline underline-offset-2 hover:text-sapphire-deep",
|
|
1313
|
+
children: [
|
|
1314
|
+
"Use ",
|
|
1315
|
+
own,
|
|
1316
|
+
" as its name"
|
|
1317
|
+
]
|
|
1318
|
+
})]
|
|
1319
|
+
}),
|
|
1313
1320
|
/* @__PURE__ */ jsxs("p", {
|
|
1314
1321
|
className: "m-0 mt-0.5 flex min-w-0 items-center gap-1.5 text-xs text-mocha",
|
|
1315
1322
|
children: [
|
|
@@ -1544,18 +1551,20 @@ function ConnectionsPanel({ team }) {
|
|
|
1544
1551
|
const members = policy.data.members.filter((member) => member.status !== "archived");
|
|
1545
1552
|
const traffic = trafficByPair(messages.data ?? []);
|
|
1546
1553
|
const allows = (from, target) => edges.some((edge) => edge.from === from && edge.to === target);
|
|
1554
|
+
const memberIds = new Set(members.map((member) => member.id));
|
|
1555
|
+
const saved = edges.filter((edge) => memberIds.has(edge.from) && memberIds.has(edge.to)).length;
|
|
1547
1556
|
return /* @__PURE__ */ jsxs("div", { children: [
|
|
1548
1557
|
/* @__PURE__ */ jsxs("div", {
|
|
1549
1558
|
className: "rounded-2xl border border-border bg-muted/50 px-3 py-2.5",
|
|
1550
1559
|
children: [
|
|
1551
1560
|
/* @__PURE__ */ jsx("p", {
|
|
1552
1561
|
className: "m-0 text-sm font-semibold text-foreground",
|
|
1553
|
-
children: mode
|
|
1562
|
+
children: MODE_SENTENCE[mode]
|
|
1554
1563
|
}),
|
|
1555
1564
|
/* @__PURE__ */ jsxs("p", {
|
|
1556
1565
|
className: "m-0 mt-0.5 text-xs leading-relaxed text-mocha",
|
|
1557
1566
|
children: [
|
|
1558
|
-
mode === "open" ?
|
|
1567
|
+
mode === "open" ? `Every member can message every other member, with no connections needed. Connections here only matter for messages to and from other Teams, or if you switch the Team to Connections only.${saved > 0 ? ` ${saved} ${saved === 1 ? "connection between teammates is" : "connections between teammates are"} saved; ${saved === 1 ? "it applies" : "they apply"} then.` : ""}` : "A member can message a teammate only along a connection.",
|
|
1559
1568
|
" ",
|
|
1560
1569
|
"You can always talk to every Agent."
|
|
1561
1570
|
]
|
|
@@ -2200,6 +2209,7 @@ function TeamPanel({ team }) {
|
|
|
2200
2209
|
const activity = useActivity();
|
|
2201
2210
|
const router = useRouter();
|
|
2202
2211
|
const [spawning, setSpawning] = useState(false);
|
|
2212
|
+
const [showFolder, setShowFolder] = useState(false);
|
|
2203
2213
|
const [templateId, setTemplateId] = useState(null);
|
|
2204
2214
|
const members = agents.filter((agent) => agent.teamId === team.id);
|
|
2205
2215
|
const eligible = teamTemplates.filter((template) => template.slots.length > 0);
|
|
@@ -2209,23 +2219,46 @@ function TeamPanel({ team }) {
|
|
|
2209
2219
|
className: "flex min-w-0 items-start gap-2",
|
|
2210
2220
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
2211
2221
|
className: "min-w-0 flex-1",
|
|
2212
|
-
children: [
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2222
|
+
children: [
|
|
2223
|
+
/* @__PURE__ */ jsx("div", {
|
|
2224
|
+
className: "truncate text-base font-semibold text-foreground",
|
|
2225
|
+
children: team.name
|
|
2226
|
+
}),
|
|
2227
|
+
/* @__PURE__ */ jsxs("div", {
|
|
2228
|
+
className: "mt-0.5 flex flex-wrap items-center gap-x-3 gap-y-0.5 text-xs",
|
|
2229
|
+
children: [/* @__PURE__ */ jsx(Link, {
|
|
2230
|
+
to: "/",
|
|
2231
|
+
search: { team: team.id },
|
|
2232
|
+
className: "font-semibold text-sapphire hover:text-sapphire-deep",
|
|
2233
|
+
children: "Its day so far"
|
|
2234
|
+
}), !showFolder && /* @__PURE__ */ jsx("button", {
|
|
2235
|
+
type: "button",
|
|
2236
|
+
onClick: () => setShowFolder(true),
|
|
2237
|
+
className: "unstyled text-muted-foreground underline underline-offset-2 hover:text-sapphire",
|
|
2238
|
+
children: "Show the folder"
|
|
2239
|
+
})]
|
|
2240
|
+
}),
|
|
2241
|
+
showFolder && /* @__PURE__ */ jsxs("p", {
|
|
2242
|
+
className: "m-0 mt-0.5 flex min-w-0 items-center gap-1 font-mono text-xs text-muted-foreground",
|
|
2243
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
2244
|
+
className: "min-w-0 truncate",
|
|
2245
|
+
title: team.path,
|
|
2246
|
+
children: team.path
|
|
2247
|
+
}), /* @__PURE__ */ jsx(CopyButton, {
|
|
2248
|
+
value: team.path,
|
|
2249
|
+
ariaLabel: "Copy the folder's path"
|
|
2250
|
+
})]
|
|
2251
|
+
})
|
|
2252
|
+
]
|
|
2220
2253
|
}), /* @__PURE__ */ jsx(Link, {
|
|
2221
2254
|
to: "/",
|
|
2222
2255
|
search: to({
|
|
2223
2256
|
panel: "connections",
|
|
2224
2257
|
section: void 0
|
|
2225
2258
|
}),
|
|
2226
|
-
title: team.policyMode
|
|
2259
|
+
title: MODE_SENTENCE[team.policyMode],
|
|
2227
2260
|
className: "shrink-0 rounded-full border border-border bg-muted px-2 py-0.5 text-xs font-semibold text-mocha hover:border-sapphire-light hover:text-sapphire",
|
|
2228
|
-
children: team.policyMode
|
|
2261
|
+
children: MODE_NAME[team.policyMode]
|
|
2229
2262
|
})]
|
|
2230
2263
|
}),
|
|
2231
2264
|
(open || members.length === 0 && eligible.length > 0) && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("div", {
|
|
@@ -2477,9 +2510,11 @@ function MemoryGlance({ team }) {
|
|
|
2477
2510
|
}
|
|
2478
2511
|
//#endregion
|
|
2479
2512
|
//#region src/components/panel/SidePanel.tsx
|
|
2480
|
-
function SidePanel({ tab }) {
|
|
2513
|
+
function SidePanel({ tab: asked }) {
|
|
2481
2514
|
const { agent, team, to } = useWorkspace();
|
|
2482
2515
|
const counts = useTeamCounts(team?.id);
|
|
2516
|
+
const tabs = PANEL_TABS.filter((id) => id !== "changes" || counts.repository !== false);
|
|
2517
|
+
const tab = tabs.includes(asked) ? asked : "team";
|
|
2483
2518
|
const strip = useRef(null);
|
|
2484
2519
|
useEffect(() => revealInStrip(strip.current, "[aria-selected=\"true\"]"), [tab]);
|
|
2485
2520
|
const count = {
|
|
@@ -2496,7 +2531,7 @@ function SidePanel({ tab }) {
|
|
|
2496
2531
|
role: "tablist",
|
|
2497
2532
|
"aria-label": "Side panel",
|
|
2498
2533
|
className: "flex min-w-0 flex-1 items-center gap-1 overflow-x-auto [scrollbar-width:none]",
|
|
2499
|
-
children:
|
|
2534
|
+
children: tabs.map((id) => {
|
|
2500
2535
|
const selected = id === tab;
|
|
2501
2536
|
const number = count[id];
|
|
2502
2537
|
return /* @__PURE__ */ jsxs(Link, {
|
|
@@ -3028,9 +3063,16 @@ function rememberedPlace(key) {
|
|
|
3028
3063
|
* Remember where the reader is in `log`, under `key()` as it is when they scroll, and put them
|
|
3029
3064
|
* back there once `ready` (the messages are on screen), unless `skip` (a search result opens the
|
|
3030
3065
|
* conversation at its message instead). `onRestored` hears of a place put back that is not the
|
|
3031
|
-
* end, so the caller stops following new output. Call it before the effect that follows the end
|
|
3066
|
+
* end, so the caller stops following new output. Call it before the effect that follows the end,
|
|
3067
|
+
* and spread what it returns on the log.
|
|
3068
|
+
*
|
|
3069
|
+
* The router keeps the pixel offset of every element it saw scroll, by its id or else by where it
|
|
3070
|
+
* stands in the page, and puts it back after each navigation, after this hook has. Every
|
|
3071
|
+
* conversation stands in the same place, so one Agent's offset would land on the next one's log.
|
|
3072
|
+
* An id of this log's own, new for every pane, means the router never finds it again.
|
|
3032
3073
|
*/
|
|
3033
3074
|
function useTranscriptPlace(log, key, { ready, skip, onRestored }) {
|
|
3075
|
+
const id = useId();
|
|
3034
3076
|
const keyRef = useRef(key);
|
|
3035
3077
|
keyRef.current = key;
|
|
3036
3078
|
const restored = useRef(false);
|
|
@@ -3063,6 +3105,7 @@ function useTranscriptPlace(log, key, { ready, skip, onRestored }) {
|
|
|
3063
3105
|
window.cancelAnimationFrame(pending.current);
|
|
3064
3106
|
saveNow.current();
|
|
3065
3107
|
}, []);
|
|
3108
|
+
return { "data-scroll-restoration-id": `conversation${id}` };
|
|
3066
3109
|
}
|
|
3067
3110
|
//#endregion
|
|
3068
3111
|
//#region src/components/chat/AgentQuestions.tsx
|
|
@@ -3829,21 +3872,29 @@ var OUTCOME = {
|
|
|
3829
3872
|
expired: "Expired — the command was not run.",
|
|
3830
3873
|
cancelled: "Cancelled — the command was not run."
|
|
3831
3874
|
};
|
|
3875
|
+
var TOOL_OUTCOME = {
|
|
3876
|
+
pending: "Waiting for a decision.",
|
|
3877
|
+
allowed: "Allowed once — for this call only.",
|
|
3878
|
+
denied: "Denied — nothing was sent.",
|
|
3879
|
+
auto_denied: "Denied — nobody could approve it in this turn, so nothing was sent.",
|
|
3880
|
+
expired: "Expired — nothing was sent.",
|
|
3881
|
+
cancelled: "Cancelled — nothing was sent."
|
|
3882
|
+
};
|
|
3832
3883
|
/** A risky shell command waiting for the user; Allow and Deny apply to this one call only. */
|
|
3833
3884
|
function CommandApprovalCard({ approval, busy = false, error, onDecision }) {
|
|
3834
3885
|
const pending = approval.status === "pending";
|
|
3835
3886
|
return /* @__PURE__ */ jsxs("section", {
|
|
3836
3887
|
className: "my-3 rounded-lg border border-danger/50 bg-danger/5 p-4 text-chocolate",
|
|
3837
|
-
"aria-label": "Shell command approval",
|
|
3888
|
+
"aria-label": approval.tool ? "Approval before it goes out" : "Shell command approval",
|
|
3838
3889
|
children: [
|
|
3839
3890
|
/* @__PURE__ */ jsxs("div", {
|
|
3840
3891
|
className: "flex flex-wrap items-start justify-between gap-2",
|
|
3841
3892
|
children: [/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("p", {
|
|
3842
3893
|
className: "m-0 text-[0.72em] font-semibold uppercase tracking-wider text-danger",
|
|
3843
|
-
children: "Shell command approval"
|
|
3894
|
+
children: approval.tool ? "Before it goes out" : "Shell command approval"
|
|
3844
3895
|
}), /* @__PURE__ */ jsx("h2", {
|
|
3845
3896
|
className: "m-0 mt-1 font-body text-[0.95em] font-semibold",
|
|
3846
|
-
children: pending ? "A risky command is waiting for you" : "Command decision recorded"
|
|
3897
|
+
children: approval.tool ? pending ? `It wants to use ${approval.tool}` : "Decision recorded" : pending ? "A risky command is waiting for you" : "Command decision recorded"
|
|
3847
3898
|
})] }), /* @__PURE__ */ jsx("span", {
|
|
3848
3899
|
className: "rounded-full border border-danger/30 px-2 py-0.5 text-[0.75em] font-semibold uppercase tracking-wide text-danger",
|
|
3849
3900
|
children: approval.status.replaceAll("_", " ")
|
|
@@ -3877,7 +3928,9 @@ function CommandApprovalCard({ approval, busy = false, error, onDecision }) {
|
|
|
3877
3928
|
dateTime: new Date(approval.expiresAt).toISOString(),
|
|
3878
3929
|
children: new Date(approval.expiresAt).toLocaleString()
|
|
3879
3930
|
}),
|
|
3880
|
-
". Deny blocks only this
|
|
3931
|
+
". Deny blocks only this ",
|
|
3932
|
+
approval.tool ? "call" : "command",
|
|
3933
|
+
"; Stop ends the whole turn."
|
|
3881
3934
|
]
|
|
3882
3935
|
}),
|
|
3883
3936
|
error && /* @__PURE__ */ jsx("p", {
|
|
@@ -3902,7 +3955,7 @@ function CommandApprovalCard({ approval, busy = false, error, onDecision }) {
|
|
|
3902
3955
|
] }) : /* @__PURE__ */ jsx("p", {
|
|
3903
3956
|
role: "status",
|
|
3904
3957
|
className: "mt-3 text-[0.84em] font-medium text-mocha",
|
|
3905
|
-
children: OUTCOME[approval.status]
|
|
3958
|
+
children: approval.tool ? TOOL_OUTCOME[approval.status] : OUTCOME[approval.status]
|
|
3906
3959
|
})
|
|
3907
3960
|
]
|
|
3908
3961
|
});
|
|
@@ -4958,7 +5011,7 @@ function useChatSession({ agentId, initialMessages, initialSessionHead, onOpenLi
|
|
|
4958
5011
|
/** Stop the running turn, wherever it came from. */
|
|
4959
5012
|
async function stop() {
|
|
4960
5013
|
try {
|
|
4961
|
-
await api(`${base}/cancel`, { method: "POST" });
|
|
5014
|
+
if ((await api(`${base}/cancel`, { method: "POST" })).queuePaused) pushNote("The follow-ups waiting behind this turn are paused too. Resume them under Follow-ups when you are ready.");
|
|
4962
5015
|
} catch (error) {
|
|
4963
5016
|
if (!(error instanceof ApiError && error.status === 409)) pushNote("Stop was not confirmed; the response may still be running.");
|
|
4964
5017
|
}
|
|
@@ -5059,7 +5112,7 @@ function AgentChat({ agentId, agentName, initialMessages, initialSessionHead, he
|
|
|
5059
5112
|
replace: true
|
|
5060
5113
|
});
|
|
5061
5114
|
});
|
|
5062
|
-
useTranscriptPlace(logRef, () => placeKey(agentId, chat.conversationId()), {
|
|
5115
|
+
const logProps = useTranscriptPlace(logRef, () => placeKey(agentId, chat.conversationId()), {
|
|
5063
5116
|
ready: true,
|
|
5064
5117
|
skip: Boolean(workspace?.search.find),
|
|
5065
5118
|
onRestored: () => {
|
|
@@ -5175,6 +5228,7 @@ function AgentChat({ agentId, agentName, initialMessages, initialSessionHead, he
|
|
|
5175
5228
|
}),
|
|
5176
5229
|
/* @__PURE__ */ jsx("div", {
|
|
5177
5230
|
ref: logRef,
|
|
5231
|
+
...logProps,
|
|
5178
5232
|
onScroll: (event) => {
|
|
5179
5233
|
nearBottomRef.current = isAtEnd(event.currentTarget);
|
|
5180
5234
|
},
|
|
@@ -5647,10 +5701,17 @@ function ConversationHeader({ agent, chat, panel, lastPanel }) {
|
|
|
5647
5701
|
identity: agent.agent.identity,
|
|
5648
5702
|
size: 32
|
|
5649
5703
|
}),
|
|
5650
|
-
/* @__PURE__ */
|
|
5704
|
+
/* @__PURE__ */ jsxs("h1", {
|
|
5651
5705
|
title: agent.agent.name,
|
|
5652
5706
|
className: "m-0 min-w-0 max-w-[14rem] shrink-0 truncate font-display text-xl leading-tight text-charcoal",
|
|
5653
|
-
children: agent.agent.name
|
|
5707
|
+
children: [agent.agent.name, chosenName(agent.agent) && /* @__PURE__ */ jsxs("span", {
|
|
5708
|
+
className: "font-body text-sm text-muted-foreground",
|
|
5709
|
+
children: [
|
|
5710
|
+
" ",
|
|
5711
|
+
"· ",
|
|
5712
|
+
chosenName(agent.agent)
|
|
5713
|
+
]
|
|
5714
|
+
})]
|
|
5654
5715
|
}),
|
|
5655
5716
|
/* @__PURE__ */ jsx(Link, {
|
|
5656
5717
|
to: "/",
|
|
@@ -5999,7 +6060,7 @@ function EarlierConversation({ agentId, agentName, conversationId, header }) {
|
|
|
5999
6060
|
throw cause;
|
|
6000
6061
|
}
|
|
6001
6062
|
}, [path]);
|
|
6002
|
-
useTranscriptPlace(logRef, () => placeKey(agentId, conversationId), {
|
|
6063
|
+
const logProps = useTranscriptPlace(logRef, () => placeKey(agentId, conversationId), {
|
|
6003
6064
|
ready: opened.data !== void 0,
|
|
6004
6065
|
skip: Boolean(search.find)
|
|
6005
6066
|
});
|
|
@@ -6061,6 +6122,7 @@ function EarlierConversation({ agentId, agentName, conversationId, header }) {
|
|
|
6061
6122
|
}),
|
|
6062
6123
|
/* @__PURE__ */ jsx("div", {
|
|
6063
6124
|
ref: logRef,
|
|
6125
|
+
...logProps,
|
|
6064
6126
|
className: "min-h-0 flex-1 overflow-y-auto px-5 py-4",
|
|
6065
6127
|
children: /* @__PURE__ */ jsxs("div", {
|
|
6066
6128
|
className: "mx-auto max-w-[50rem]",
|
|
@@ -6431,9 +6493,12 @@ function AgentRow({ agent, selected, state, lastActivityAt, panel, onRename, onA
|
|
|
6431
6493
|
children: [/* @__PURE__ */ jsxs("span", {
|
|
6432
6494
|
className: "flex items-center gap-1.5",
|
|
6433
6495
|
children: [
|
|
6434
|
-
/* @__PURE__ */
|
|
6496
|
+
/* @__PURE__ */ jsxs("span", {
|
|
6435
6497
|
className: `min-w-0 truncate text-sm font-semibold leading-tight ${selected ? "text-accent-foreground" : "text-foreground"}`,
|
|
6436
|
-
children: agent.name
|
|
6498
|
+
children: [agent.name, chosenName(agent) && /* @__PURE__ */ jsxs("span", {
|
|
6499
|
+
className: "font-normal text-muted-foreground",
|
|
6500
|
+
children: [" · ", chosenName(agent)]
|
|
6501
|
+
})]
|
|
6437
6502
|
}),
|
|
6438
6503
|
agent.telegramTopicId !== null && /* @__PURE__ */ jsx("span", {
|
|
6439
6504
|
className: "shrink-0 text-primary",
|
|
@@ -7832,11 +7897,6 @@ function MailboxView({ agent, agents, messages: all, loopBreaks, onChanged }) {
|
|
|
7832
7897
|
}) })
|
|
7833
7898
|
]
|
|
7834
7899
|
}),
|
|
7835
|
-
senders.length > 0 && /* @__PURE__ */ jsx(SendMessage, {
|
|
7836
|
-
agent,
|
|
7837
|
-
senders,
|
|
7838
|
-
onSent: () => void onChanged()
|
|
7839
|
-
}),
|
|
7840
7900
|
/* @__PURE__ */ jsx(SetupCard, {
|
|
7841
7901
|
labelledBy: "agent-loop-breaks",
|
|
7842
7902
|
icon: /* @__PURE__ */ jsx(OctagonX, { className: "size-5" }),
|
|
@@ -7852,6 +7912,11 @@ function MailboxView({ agent, agents, messages: all, loopBreaks, onChanged }) {
|
|
|
7852
7912
|
event.maxHops
|
|
7853
7913
|
] }), /* @__PURE__ */ jsx("span", { children: when(event.createdAt) })] })
|
|
7854
7914
|
}, event.id)) })
|
|
7915
|
+
}),
|
|
7916
|
+
senders.length > 0 && /* @__PURE__ */ jsx(SendMessage, {
|
|
7917
|
+
agent,
|
|
7918
|
+
senders,
|
|
7919
|
+
onSent: () => void onChanged()
|
|
7855
7920
|
})
|
|
7856
7921
|
]
|
|
7857
7922
|
});
|
|
@@ -7862,6 +7927,7 @@ function SendMessage({ agent, senders, onSent }) {
|
|
|
7862
7927
|
const [error, setError] = useState(null);
|
|
7863
7928
|
const [sent, setSent] = useState(false);
|
|
7864
7929
|
const [submitting, setSubmitting] = useState(false);
|
|
7930
|
+
const [trying, setTrying] = useState(false);
|
|
7865
7931
|
async function submit(event) {
|
|
7866
7932
|
event.preventDefault();
|
|
7867
7933
|
if (!text.trim()) return;
|
|
@@ -7885,9 +7951,14 @@ function SendMessage({ agent, senders, onSent }) {
|
|
|
7885
7951
|
return /* @__PURE__ */ jsx(SetupCard, {
|
|
7886
7952
|
labelledBy: "agent-mailbox-send",
|
|
7887
7953
|
icon: /* @__PURE__ */ jsx(Send, { className: "size-5" }),
|
|
7888
|
-
title: "
|
|
7954
|
+
title: "Try a message from a teammate",
|
|
7889
7955
|
description: `Write to ${agent.name} as one of its teammates, to see how it handles mail.`,
|
|
7890
|
-
|
|
7956
|
+
action: !trying && /* @__PURE__ */ jsx(Button, {
|
|
7957
|
+
variant: "ghost",
|
|
7958
|
+
onClick: () => setTrying(true),
|
|
7959
|
+
children: "Try it"
|
|
7960
|
+
}),
|
|
7961
|
+
children: trying && /* @__PURE__ */ jsxs(CardForm, {
|
|
7891
7962
|
onSubmit: (event) => void submit(event),
|
|
7892
7963
|
children: [
|
|
7893
7964
|
/* @__PURE__ */ jsx(SelectField, {
|
|
@@ -9316,6 +9387,121 @@ function Sheets() {
|
|
|
9316
9387
|
});
|
|
9317
9388
|
}
|
|
9318
9389
|
//#endregion
|
|
9390
|
+
//#region src/components/workspace/TeamToday.tsx
|
|
9391
|
+
var SHOWN$1 = 12;
|
|
9392
|
+
var KIND = {
|
|
9393
|
+
handoff: {
|
|
9394
|
+
icon: ArrowRightLeft,
|
|
9395
|
+
verb: "handed off to",
|
|
9396
|
+
tone: "text-sapphire"
|
|
9397
|
+
},
|
|
9398
|
+
reply: {
|
|
9399
|
+
icon: CornerDownLeft,
|
|
9400
|
+
verb: "replied to",
|
|
9401
|
+
tone: "text-sapphire"
|
|
9402
|
+
},
|
|
9403
|
+
file: {
|
|
9404
|
+
icon: FileText,
|
|
9405
|
+
verb: "delivered",
|
|
9406
|
+
tone: "text-success"
|
|
9407
|
+
},
|
|
9408
|
+
worked: {
|
|
9409
|
+
icon: MessageSquare,
|
|
9410
|
+
verb: "worked in",
|
|
9411
|
+
tone: "text-mocha"
|
|
9412
|
+
},
|
|
9413
|
+
question: {
|
|
9414
|
+
icon: MessageSquareWarning,
|
|
9415
|
+
verb: "asks you",
|
|
9416
|
+
tone: "text-warning"
|
|
9417
|
+
},
|
|
9418
|
+
approval: {
|
|
9419
|
+
icon: ShieldAlert,
|
|
9420
|
+
verb: "waits for your approval",
|
|
9421
|
+
tone: "text-warning"
|
|
9422
|
+
}
|
|
9423
|
+
};
|
|
9424
|
+
/** Where an event happened: the conversation, the file, or the Agent it went to. */
|
|
9425
|
+
function placeOf(teamId, event) {
|
|
9426
|
+
if (event.kind === "file" && event.resultId) return {
|
|
9427
|
+
team: teamId,
|
|
9428
|
+
view: "files",
|
|
9429
|
+
result: event.resultId
|
|
9430
|
+
};
|
|
9431
|
+
if (event.kind === "handoff" && event.otherAgentId) return { agent: event.otherAgentId };
|
|
9432
|
+
return {
|
|
9433
|
+
agent: event.agentId,
|
|
9434
|
+
...event.kind === "worked" && event.conversationId ? { conversation: event.conversationId } : {}
|
|
9435
|
+
};
|
|
9436
|
+
}
|
|
9437
|
+
function TeamToday({ teamId }) {
|
|
9438
|
+
const { turnsEnded } = useActivity();
|
|
9439
|
+
const hydrated = useHydrated();
|
|
9440
|
+
const [all, setAll] = useState(false);
|
|
9441
|
+
const day = useResource((signal) => {
|
|
9442
|
+
const since = /* @__PURE__ */ new Date();
|
|
9443
|
+
since.setHours(0, 0, 0, 0);
|
|
9444
|
+
return api(`/api/teams/${encodeURIComponent(teamId)}/today?since=${since.getTime()}`, { signal });
|
|
9445
|
+
}, [teamId], { refreshOn: turnsEnded });
|
|
9446
|
+
const events = day.data?.events ?? [];
|
|
9447
|
+
if (!hydrated || day.error || events.length === 0) return /* @__PURE__ */ jsx("p", {
|
|
9448
|
+
className: "m-0 text-sm text-muted-foreground",
|
|
9449
|
+
children: day.error ?? (day.data ? "Nothing yet today." : "Loading…")
|
|
9450
|
+
});
|
|
9451
|
+
return /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("ol", {
|
|
9452
|
+
className: "m-0 list-none divide-y divide-border rounded-2xl border border-border bg-card p-0",
|
|
9453
|
+
children: (all ? events : events.slice(0, SHOWN$1)).map((event) => {
|
|
9454
|
+
const kind = KIND[event.kind];
|
|
9455
|
+
const Icon = kind.icon;
|
|
9456
|
+
return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(Link, {
|
|
9457
|
+
to: "/",
|
|
9458
|
+
search: placeOf(teamId, event),
|
|
9459
|
+
className: "flex min-w-0 items-start gap-2.5 px-3 py-2 text-foreground no-underline hover:bg-accent/30",
|
|
9460
|
+
children: [
|
|
9461
|
+
/* @__PURE__ */ jsx(Icon, {
|
|
9462
|
+
className: `mt-0.5 size-4 shrink-0 ${kind.tone}`,
|
|
9463
|
+
"aria-hidden": "true"
|
|
9464
|
+
}),
|
|
9465
|
+
/* @__PURE__ */ jsxs("span", {
|
|
9466
|
+
className: "min-w-0 flex-1",
|
|
9467
|
+
children: [/* @__PURE__ */ jsxs("span", {
|
|
9468
|
+
className: "block text-sm",
|
|
9469
|
+
children: [
|
|
9470
|
+
/* @__PURE__ */ jsx("strong", {
|
|
9471
|
+
className: "font-semibold",
|
|
9472
|
+
children: event.agentName
|
|
9473
|
+
}),
|
|
9474
|
+
" ",
|
|
9475
|
+
kind.verb,
|
|
9476
|
+
event.otherAgentName && /* @__PURE__ */ jsxs(Fragment$1, { children: [" ", /* @__PURE__ */ jsx("strong", {
|
|
9477
|
+
className: "font-semibold",
|
|
9478
|
+
children: event.otherAgentName
|
|
9479
|
+
})] })
|
|
9480
|
+
]
|
|
9481
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
9482
|
+
className: "block truncate text-xs text-mocha",
|
|
9483
|
+
children: event.text
|
|
9484
|
+
})]
|
|
9485
|
+
}),
|
|
9486
|
+
/* @__PURE__ */ jsx("span", {
|
|
9487
|
+
className: "shrink-0 text-xs text-muted-foreground",
|
|
9488
|
+
children: shortTime(event.at)
|
|
9489
|
+
})
|
|
9490
|
+
]
|
|
9491
|
+
}) }, `${event.kind}:${event.at}:${event.agentId}:${event.resultId ?? event.conversationId ?? event.text}`);
|
|
9492
|
+
})
|
|
9493
|
+
}), (events.length > SHOWN$1 || day.data?.truncated) && !all && /* @__PURE__ */ jsxs("button", {
|
|
9494
|
+
type: "button",
|
|
9495
|
+
onClick: () => setAll(true),
|
|
9496
|
+
className: "unstyled mt-2 text-sm font-semibold text-sapphire hover:text-sapphire-deep",
|
|
9497
|
+
children: [
|
|
9498
|
+
"Show all ",
|
|
9499
|
+
events.length,
|
|
9500
|
+
day.data?.truncated ? "+" : ""
|
|
9501
|
+
]
|
|
9502
|
+
})] });
|
|
9503
|
+
}
|
|
9504
|
+
//#endregion
|
|
9319
9505
|
//#region src/components/workspace/TeamHome.tsx
|
|
9320
9506
|
var VIEWS = [
|
|
9321
9507
|
{
|
|
@@ -9443,9 +9629,13 @@ function TeamHome({ team }) {
|
|
|
9443
9629
|
}), "Add an Agent"]
|
|
9444
9630
|
})
|
|
9445
9631
|
})] }),
|
|
9632
|
+
members.length > 0 && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("h2", {
|
|
9633
|
+
className: HEADING,
|
|
9634
|
+
children: "Today"
|
|
9635
|
+
}), /* @__PURE__ */ jsx(TeamToday, { teamId: team.id })] }),
|
|
9446
9636
|
/* @__PURE__ */ jsx("div", {
|
|
9447
9637
|
className: "mt-8 grid grid-cols-1 gap-2 sm:grid-cols-3",
|
|
9448
|
-
children: VIEWS.map(({ view, label, icon: Icon }) => /* @__PURE__ */ jsxs(Link, {
|
|
9638
|
+
children: VIEWS.filter(({ view }) => view !== "changes" || counts.repository !== false).map(({ view, label, icon: Icon }) => /* @__PURE__ */ jsxs(Link, {
|
|
9449
9639
|
to: "/",
|
|
9450
9640
|
search: {
|
|
9451
9641
|
team: team.id,
|
|
@@ -9462,7 +9652,7 @@ function TeamHome({ team }) {
|
|
|
9462
9652
|
children: label
|
|
9463
9653
|
}), /* @__PURE__ */ jsx("span", {
|
|
9464
9654
|
className: "block truncate text-xs text-mocha",
|
|
9465
|
-
children: view === "connections" ? `${team.policyMode
|
|
9655
|
+
children: view === "connections" ? `${MODE_NAME[team.policyMode]} · ${messages.data?.length ? `${messages.data.length} message${messages.data.length === 1 ? "" : "s"}` : "no messages yet"}` : view === "changes" ? counts.changes === null ? "Not readable" : `${counts.changes} changed file${counts.changes === 1 ? "" : "s"}` : `${counts.files ?? 0} saved file${counts.files === 1 ? "" : "s"}`
|
|
9466
9656
|
})]
|
|
9467
9657
|
})]
|
|
9468
9658
|
}, view))
|
|
@@ -9574,7 +9764,7 @@ function WaitingRow({ agent, team, text }) {
|
|
|
9574
9764
|
//#endregion
|
|
9575
9765
|
//#region src/routes/index.tsx?tsr-split=component
|
|
9576
9766
|
/** The rail's open/closed Teams; a bad cookie is ignored. */
|
|
9577
|
-
var ConnectionsView = lazy(() => import("./ConnectionsView-
|
|
9767
|
+
var ConnectionsView = lazy(() => import("./ConnectionsView-CSf83J-v.js").then((module) => ({ default: module.ConnectionsView })));
|
|
9578
9768
|
function WorkspacePage() {
|
|
9579
9769
|
const data = Route.useLoaderData();
|
|
9580
9770
|
const search = Route.useSearch();
|
|
@@ -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/skills/index.tsx?tss-serverfn-split
|
|
5
5
|
var fetchSkills_createServerFn_handler = createServerRpc({
|
|
6
6
|
id: "ae1d30575b229c1e2622fbaf2252800a9a7acc84afdd68cba025ca890b8d52c5",
|
|
@@ -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
3
|
import { t as Button } from "./Button-Dsnw22OF.js";
|
|
3
4
|
import { r as ago } from "./ModelMenu-DEJoYASj.js";
|
|
4
|
-
import { t as ConfirmDialog } from "./ConfirmDialog-
|
|
5
|
+
import { t as ConfirmDialog } from "./ConfirmDialog-CuD5HXTw.js";
|
|
5
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";
|
|
6
|
-
import { t as Route } from "./skills-
|
|
7
|
+
import { t as Route } from "./skills-DouMCq_2.js";
|
|
7
8
|
import { t as ManagePage } from "./ManagePage-DGYNJ6XG.js";
|
|
8
|
-
import {
|
|
9
|
-
import { n as FindingsNotice, r as ImportSkillsDialog } from "./SkillsParts-CqS2B45v.js";
|
|
9
|
+
import { n as FindingsNotice, r as ImportSkillsDialog } from "./SkillsParts-hjS9a_Ht.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-
|
|
5
|
+
var $$splitComponentImporter = () => import("./skills-D5oN5ehC.js");
|
|
6
6
|
var fetchSkills = createServerFn({ method: "GET" }).handler(createSsrRpc("ae1d30575b229c1e2622fbaf2252800a9a7acc84afdd68cba025ca890b8d52c5"));
|
|
7
7
|
var Route = createFileRoute("/skills/")({
|
|
8
8
|
loader: () => fetchSkills(),
|