bazilion 0.21.0 → 0.23.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/README.md +4 -2
- package/dist/cli-main.js +9163 -0
- package/dist/cli-main.js.map +1 -0
- package/dist/cli.js +2 -8714
- package/dist/daemon-main.js +42862 -0
- package/dist/daemon-main.js.map +1 -0
- package/dist/daemon.js +2 -57109
- package/dist/migrations/0001_init.sql +1 -1
- package/dist/migrations/0004_image_generation.sql +25 -0
- package/dist/runtime-version.js +28 -0
- package/dist/runtime-version.js.map +1 -0
- package/dist/web/client/assets/{AgentTabs-BT7RsEUU.js → AgentTabs-ZozvE4RV.js} +1 -1
- package/dist/web/client/assets/{ChatPane-3I0Vsgz1.js → ChatPane-nv9xOKnM.js} +2 -2
- package/dist/web/client/assets/{ConfigPage-hftJBBIY.js → ConfigPage-D_3AsSG4.js} +1 -1
- package/dist/web/client/assets/{ConfirmDialog-gjgxRmxG.js → ConfirmDialog-CH2zTXuo.js} +1 -1
- package/dist/web/client/assets/FieldRow-CcrDV3An.js +1 -0
- package/dist/web/client/assets/{ProductionTeamPolicyEditor-D4WcyDGX.js → ProductionTeamPolicyEditor-DNJsrcW8.js} +1 -1
- package/dist/web/client/assets/{ProfileCommunicationEditor-CgIyV1rY.js → ProfileCommunicationEditor-B2SthMNH.js} +1 -1
- package/dist/web/client/assets/{RecoveryState-CbuT_rGW.js → RecoveryState-DlaJiGZs.js} +1 -1
- package/dist/web/client/assets/ResultCard-CF7a0iFy.js +1 -0
- package/dist/web/client/assets/{ResultSourceConversation-CYBczpnZ.js → ResultSourceConversation-X5SuheW6.js} +1 -1
- package/dist/web/client/assets/{SectionTabs-t8xkqWIa.js → SectionTabs-CCHDsNpe.js} +1 -1
- package/dist/web/client/assets/{TeamTabs-BN6P91fO.js → TeamTabs-BplbR2LB.js} +1 -1
- package/dist/web/client/assets/{TemplatesTabs-DwG1CWan.js → TemplatesTabs-DsnlhO7j.js} +1 -1
- package/dist/web/client/assets/{UnsavedChangesGuard-fTPP7TCu.js → UnsavedChangesGuard-BFGfvKOY.js} +1 -1
- package/dist/web/client/assets/{_id-DYkghdJm.js → _id-C75PSTfh.js} +1 -1
- package/dist/web/client/assets/{_id-DbwNJKQ8.js → _id-CHE9wjEm.js} +1 -1
- package/dist/web/client/assets/{_id-CZG5wnur.js → _id-CM4HcwqG.js} +1 -1
- package/dist/web/client/assets/{_id-Bcqu2cAS.js → _id-HgkOZjnh.js} +1 -1
- package/dist/web/client/assets/{_id-Di_SGuwC.js → _id-I4COPqTO.js} +1 -1
- package/dist/web/client/assets/_id-W8yP8QHB.js +1 -0
- package/dist/web/client/assets/{_id-Bqk9L9xm.js → _id-eKsjDym9.js} +1 -1
- package/dist/web/client/assets/_id-fxbpjlEa.js +1 -0
- package/dist/web/client/assets/{activity-vP2HVz4C.js → activity-BCYUctkB.js} +1 -1
- package/dist/web/client/assets/{activity-Bt9WrtwT.js → activity-jvvmbNos.js} +1 -1
- package/dist/web/client/assets/{agents-gvU7Aqby.js → agents-C6mJyZUx.js} +1 -1
- package/dist/web/client/assets/{agents-DaNXwDyg.js → agents-CpusMfSn.js} +1 -1
- package/dist/web/client/assets/{agents-Bo7EfRdf.js → agents-CvLzI7m_.js} +1 -1
- package/dist/web/client/assets/{approvals-DmJ5zwtE.js → approvals-C2R4qUbS.js} +1 -1
- package/dist/web/client/assets/{approvals-BOJoboDp.js → approvals-Cd2np6JM.js} +1 -1
- package/dist/web/client/assets/{attention-yEG75DvH.js → attention-CFwT25yC.js} +1 -1
- package/dist/web/client/assets/{attention-DWPCjYsx.js → attention-Q_sRUULz.js} +1 -1
- package/dist/web/client/assets/chevron-right-BfSr7R_L.js +1 -0
- package/dist/web/client/assets/{config-B8YR3RWJ.js → config-B7UhhXW6.js} +2 -2
- package/dist/web/client/assets/{context-Cqc6E2UY.js → context-Cjb1-4nB.js} +1 -1
- package/dist/web/client/assets/{inbox-PEvgddwX.js → inbox-CX0alCy_.js} +1 -1
- package/dist/web/client/assets/{inbox-C2B8Re-f.js → inbox-QoBXXR8s.js} +1 -1
- package/dist/web/client/assets/{index-CK_tkx73.js → index-Du-fy_6d.js} +2 -2
- package/dist/web/client/assets/{learning-CTOIJfXI.js → learning-C1n4NTM1.js} +1 -1
- package/dist/web/client/assets/{learning-C8u7s_fv.js → learning-VwXsV_lU.js} +1 -1
- package/dist/web/client/assets/{login-32oN5__g.js → login-CqnOW-JM.js} +1 -1
- package/dist/web/client/assets/{mcp-CMdrj5RZ.js → mcp-B02-ofb9.js} +1 -1
- package/dist/web/client/assets/mcp-DMpVmmfU.js +1 -0
- package/dist/web/client/assets/{members-CIVp1pgE.js → members-CEkRCNto.js} +1 -1
- package/dist/web/client/assets/{members-CdL5g4oy.js → members-va8WzU_O.js} +1 -1
- package/dist/web/client/assets/{memory-DB2R5Zna.js → memory-DejWBeGz.js} +1 -1
- package/dist/web/client/assets/{memory-kGfkKaO9.js → memory-DiGxdDEp.js} +1 -1
- package/dist/web/client/assets/{policy-D6mIMw1q.js → policy-CEiX5AXJ.js} +1 -1
- package/dist/web/client/assets/{policy-3wgqPeNP.js → policy-DgIcquCb.js} +1 -1
- package/dist/web/client/assets/{results-DNv3ByLD.js → results-BBBBjgd1.js} +1 -1
- package/dist/web/client/assets/results-DsK9IvTu.js +1 -0
- package/dist/web/client/assets/{review-NchTcTNb.js → review-BGbU_GAW.js} +1 -1
- package/dist/web/client/assets/{review-CT9N-mCa.js → review-X2RHaLwW.js} +1 -1
- package/dist/web/client/assets/{routes-Dsbob2Ux.js → routes-CNz-oflx.js} +1 -1
- package/dist/web/client/assets/{services-CkInaMBQ.js → services-D7TEP2JX.js} +1 -1
- package/dist/web/client/assets/{services-BRUdbA_y.js → services-dcsfVgOY.js} +1 -1
- package/dist/web/client/assets/{skills-By2Mztj4.js → skills-CnI7SkP2.js} +1 -1
- package/dist/web/client/assets/{skills-BYlQVmk4.js → skills-NDtAsHyl.js} +1 -1
- package/dist/web/client/assets/styles-CjCML-UX.css +2 -0
- package/dist/web/client/assets/{teams-DokMjbwf.js → teams-DETtQypB.js} +1 -1
- package/dist/web/client/assets/{teams--rX4Emqg.js → teams-DErd3Weq.js} +1 -1
- package/dist/web/client/assets/{teams-Ckkao-PS.js → teams-DPgdJBly.js} +1 -1
- package/dist/web/client/assets/{teams-CVAt-A9j.js → teams-Dyll0JrQ.js} +1 -1
- package/dist/web/client/assets/{telegram-HbT_i0ez.js → telegram-CAGu-kLc.js} +1 -1
- package/dist/web/client/assets/{templates-ChE1fd0Z.js → templates-CgOQU6RS.js} +1 -1
- package/dist/web/client/assets/{tokens-BV8ipZCW.js → tokens-BYVE1y6V.js} +1 -1
- package/dist/web/client/assets/{tokens-CBjv3oax.js → tokens-CvjME9aI.js} +1 -1
- package/dist/web/client/assets/{triggers-BhpXkk_u.js → triggers-BeZ7olEG.js} +1 -1
- package/dist/web/client/assets/{triggers-Fe-XQRpk.js → triggers-Dmli752j.js} +1 -1
- package/dist/web/client/assets/{verifications-CPV9gl2d.js → verifications-CnLEVFoZ.js} +1 -1
- package/dist/web/client/assets/{verifications-CRrwQEXg.js → verifications-qQz5-X-o.js} +1 -1
- package/dist/web/client/assets/{welcome-DD_q6paM.js → welcome-BF3pg5U5.js} +1 -1
- package/dist/web/client/assets/{x-DHrC-Hx0.js → x-B-Fk6DuU.js} +1 -1
- package/dist/web/server/assets/{ChatPane-CLUUTi2r.js → ChatPane-DsDa1E0a.js} +3 -3
- package/dist/web/server/assets/{FieldRow-BEFxeckR.js → FieldRow-DPO8x_le.js} +21 -1
- package/dist/web/server/assets/{ResultCard-CFjh8884.js → ResultCard-BtVFqdRU.js} +20 -1
- package/dist/web/server/assets/{ResultSourceConversation-BoRcXEfg.js → ResultSourceConversation-NKiRGO6_.js} +1 -1
- package/dist/web/server/assets/WorkspaceRecoveryCard-B-6gfg0D.js +18 -0
- package/dist/web/server/assets/{_id-DFf_uQiI.js → _id-4fEeAcp0.js} +1 -1
- package/dist/web/server/assets/{_id-Bazctexc.js → _id-6aGxCNlp.js} +1 -1
- package/dist/web/server/assets/{_id-B7uXxqZ5.js → _id-BS4MnPa3.js} +1 -1
- package/dist/web/server/assets/{_id-DzoJ3t_C.js → _id-BXOT74Jd.js} +122 -1
- package/dist/web/server/assets/{_id-BjvOb4CK.js → _id-C0C6wOt8.js} +1 -1
- package/dist/web/server/assets/{_id-B-tA4zr0.js → _id-C1TCGcHL.js} +1 -1
- package/dist/web/server/assets/{_id-4t_AIt1b.js → _id-CAxK6pln.js} +1 -1
- package/dist/web/server/assets/{_id-B8EgU2la.js → _id-CmS2d0me.js} +2 -2
- package/dist/web/server/assets/{_id-j2iOW-7w.js → _id-CrOJD02W.js} +226 -4
- package/dist/web/server/assets/{_id-Bn0w00AG.js → _id-D9VWEfdp.js} +1 -1
- package/dist/web/server/assets/{_tanstack-start-manifest_v-D6Cx8dbN.js → _tanstack-start-manifest_v-CPSd5WEy.js} +135 -135
- package/dist/web/server/assets/{activity-j_Enmf3L.js → activity-DhzxlXUk.js} +1 -1
- package/dist/web/server/assets/{agents-BAi0dE66.js → agents-Cmw-sUUD.js} +1 -1
- package/dist/web/server/assets/{agents-BHUbTrm7.js → agents-DOrzqCXg.js} +1 -1
- package/dist/web/server/assets/{approvals-BcUm6IOo.js → approvals-szknIxB6.js} +1 -1
- package/dist/web/server/assets/{attention-BQBa0Bu5.js → attention-CsYqmV0L.js} +1 -1
- package/dist/web/server/assets/{auth-PDNSxrT-.js → auth-DChuQIh4.js} +1 -1
- package/dist/web/server/assets/browser-BiDvr0fy.js +66 -0
- package/dist/web/server/assets/{config-C63Rp2Tc.js → config-DM2DIzMT.js} +1 -1
- package/dist/web/server/assets/{config-Cf7hhsUR.js → config-DTI4EPbU.js} +1 -1
- package/dist/web/server/assets/{config-Cnj8GNk_.js → config-DX3c4Co0.js} +5 -3
- package/dist/web/server/assets/{daemon-client-DY4jE6KU.js → daemon-client-C-RlJHYO.js} +40 -1
- package/dist/web/server/assets/{git-review-RvzReZyD.js → git-review-CqZTrIWS.js} +1 -1
- package/dist/web/server/assets/{inbox-Du1guYth.js → inbox-D1ROE7jB.js} +1 -1
- package/dist/web/server/assets/{learning-CjcixPRH.js → learning-BuL0c1vH.js} +1 -1
- package/dist/web/server/assets/{mcp-BCalFLvt.js → mcp-B8ErRiR_.js} +1 -1
- package/dist/web/server/assets/{mcp-qWWT9MiE.js → mcp-CLWr5_0I.js} +1 -1
- package/dist/web/server/assets/{mcp-DFhcsmod.js → mcp-DmzP8n2G.js} +5 -9
- package/dist/web/server/assets/{members-C4TpK50B.js → members-DFLi2nQg.js} +1 -1
- package/dist/web/server/assets/{memory-CLZs-XRY.js → memory-CS-9Bb6q.js} +1 -1
- package/dist/web/server/assets/{policy-BrIXpwxZ.js → policy-JF7ZI2-i.js} +1 -1
- package/dist/web/server/assets/{publications-BrX3-WJf.js → publications-DV2uRrvJ.js} +1 -1
- package/dist/web/server/assets/results-BYU6Bfzt.js +362 -0
- package/dist/web/server/assets/{results-m4JaXsRF.js → results-Cr1B3XoP.js} +1 -1
- package/dist/web/server/assets/{results-CJR6dNzB.js → results-vtkmZPro.js} +1 -1
- package/dist/web/server/assets/{review-packets-D3bZ7QYU.js → review-packets-CO69K-FK.js} +1 -1
- package/dist/web/server/assets/{router-CMMB5oyy.js → router-B2R22qdF.js} +10 -10
- package/dist/web/server/assets/{routes-yLlXfjsn.js → routes-B6TnJyQ8.js} +1 -1
- package/dist/web/server/assets/{routes-DFAvoScC.js → routes-BGMHt0b0.js} +2 -2
- package/dist/web/server/assets/{routes-BrtSbu3l.js → routes-kSjMHwrg.js} +1 -1
- package/dist/web/server/assets/{services-W4rO8Lc-.js → services-T8adll3y.js} +14 -6
- package/dist/web/server/assets/{services-2f0nAQPX.js → services-UL_2b8PP.js} +1 -1
- package/dist/web/server/assets/{services-DDRj180j.js → services-ZeEIgTn0.js} +1 -1
- package/dist/web/server/assets/{skills-Bck9L5oo.js → skills-kfqhxYmf.js} +1 -1
- package/dist/web/server/assets/{teams-C_PicOsj.js → teams-C9tfV3IC.js} +1 -1
- package/dist/web/server/assets/{teams-CSqR5mWl.js → teams-DKROLgw-.js} +1 -1
- package/dist/web/server/assets/{telegram-D0odXx1E.js → telegram-ByHqeAGC.js} +1 -1
- package/dist/web/server/assets/{tokens-B2O0Di4p.js → tokens-CiThDMwM.js} +1 -1
- package/dist/web/server/assets/{triggers-DtKMYL2r.js → triggers-B9CIl4Co.js} +1 -1
- package/dist/web/server/assets/{verification-no5BrOeR.js → verification-DBsJYadO.js} +1 -1
- package/dist/web/server/assets/web-search-dgw10fLn.js +12 -0
- package/dist/web/server/server.js +74 -50
- package/dist/web-server.js +0 -0
- package/dist/worker.js +630 -69
- package/dist/worker.js.map +1 -1
- package/package.json +16 -9
- package/dist/cli.js.map +0 -1
- package/dist/daemon.js.map +0 -1
- package/dist/web/client/assets/FieldRow-VR8Sv-gN.js +0 -1
- package/dist/web/client/assets/ResultCard-D1bopCj0.js +0 -1
- package/dist/web/client/assets/_id-CRG3gXZW.js +0 -1
- package/dist/web/client/assets/_id-DoW8SZjQ.js +0 -1
- package/dist/web/client/assets/chevron-right-BxPmmRg9.js +0 -1
- package/dist/web/client/assets/mcp-BatNZnwC.js +0 -1
- package/dist/web/client/assets/results-Bt-h8qZH.js +0 -1
- package/dist/web/client/assets/styles-CMSFIJ_r.css +0 -2
- package/dist/web/server/assets/results-BWsxk1aR.js +0 -173
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as Button } from "./utils-ySbqTi3g.js";
|
|
2
2
|
import { r as fetchSnapshotApplicability } from "./git-review-BB3M9nYg.js";
|
|
3
3
|
import { n as applicabilityWarns, t as applicabilityLabel } from "./git-review-presentation-TJiHJhen.js";
|
|
4
|
-
import { t as ResultCard } from "./ResultCard-
|
|
4
|
+
import { t as ResultCard } from "./ResultCard-BtVFqdRU.js";
|
|
5
5
|
import { forwardRef, useCallback, useEffect, useImperativeHandle, useLayoutEffect, useRef, useState, useSyncExternalStore } from "react";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import DOMPurify from "dompurify";
|
|
@@ -1483,10 +1483,10 @@ function projectMessages(msgs) {
|
|
|
1483
1483
|
body: m.content,
|
|
1484
1484
|
...m.codingLog ? { codingLog: m.codingLog } : {}
|
|
1485
1485
|
});
|
|
1486
|
-
|
|
1486
|
+
for (const ref of m.results ?? (m.result ? [m.result] : [])) {
|
|
1487
1487
|
entries.push({
|
|
1488
1488
|
type: "result",
|
|
1489
|
-
resultId:
|
|
1489
|
+
resultId: ref.resultId
|
|
1490
1490
|
});
|
|
1491
1491
|
openTool = null;
|
|
1492
1492
|
}
|
|
@@ -83,7 +83,27 @@ function FieldRow({ field }) {
|
|
|
83
83
|
}),
|
|
84
84
|
/* @__PURE__ */ jsx("div", {
|
|
85
85
|
className: "min-w-0",
|
|
86
|
-
children: field.kind === "config" ? /* @__PURE__ */
|
|
86
|
+
children: field.kind === "config" && field.options ? /* @__PURE__ */ jsxs("select", {
|
|
87
|
+
id: inputId,
|
|
88
|
+
"aria-describedby": field.description ? descriptionId : void 0,
|
|
89
|
+
value,
|
|
90
|
+
onChange: (e) => setValue(e.target.value),
|
|
91
|
+
className: "w-full rounded-md border bg-background px-2 py-1.5 text-sm outline-none focus:ring-2 focus:ring-ring/30",
|
|
92
|
+
children: [
|
|
93
|
+
/* @__PURE__ */ jsx("option", {
|
|
94
|
+
value: "",
|
|
95
|
+
children: "Not set (default)"
|
|
96
|
+
}),
|
|
97
|
+
value && !field.options.includes(value) && /* @__PURE__ */ jsxs("option", {
|
|
98
|
+
value,
|
|
99
|
+
children: ["Unsupported: ", value]
|
|
100
|
+
}),
|
|
101
|
+
field.options.map((option) => /* @__PURE__ */ jsx("option", {
|
|
102
|
+
value: option,
|
|
103
|
+
children: field.optionLabels?.[option] ?? option
|
|
104
|
+
}, option))
|
|
105
|
+
]
|
|
106
|
+
}) : field.kind === "config" ? /* @__PURE__ */ jsx("input", {
|
|
87
107
|
id: inputId,
|
|
88
108
|
type: "text",
|
|
89
109
|
"aria-describedby": field.description ? descriptionId : void 0,
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import { n as Button } from "./utils-ySbqTi3g.js";
|
|
2
2
|
import { useEffect, useRef, useState } from "react";
|
|
3
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
//#region ../../packages/api-types/src/image-generation.ts
|
|
5
|
+
/** The selection is also the credential/billing route; it is not a backend model attestation. */
|
|
6
|
+
function imageGenerationRouteLabel(model) {
|
|
7
|
+
if (model === "openai:gpt-image-2") return "OpenAI API key";
|
|
8
|
+
if (model === "openai-codex:gpt-image-2") return "ChatGPT/Codex login";
|
|
9
|
+
if (model === "google/gemini-3.1-flash-image" || model === "openai/gpt-image-2") return "OpenRouter";
|
|
10
|
+
return "Unknown image route";
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
4
13
|
//#region src/components/ResultCard.tsx
|
|
5
|
-
function ResultCard({ resultId, showPreview = false }) {
|
|
14
|
+
function ResultCard({ resultId, showPreview: requestedPreview = false }) {
|
|
6
15
|
const [result, setResult] = useState(null);
|
|
16
|
+
const showPreview = requestedPreview || Boolean(result?.imageModel);
|
|
7
17
|
const [error, setError] = useState("");
|
|
8
18
|
const [loading, setLoading] = useState(true);
|
|
9
19
|
const [busy, setBusy] = useState(null);
|
|
@@ -103,6 +113,15 @@ function ResultCard({ resultId, showPreview = false }) {
|
|
|
103
113
|
result.mimeType
|
|
104
114
|
]
|
|
105
115
|
}),
|
|
116
|
+
result.imageModel && /* @__PURE__ */ jsxs("p", {
|
|
117
|
+
className: "text-xs text-muted-foreground",
|
|
118
|
+
children: [
|
|
119
|
+
"Generated via ",
|
|
120
|
+
imageGenerationRouteLabel(result.imageModel),
|
|
121
|
+
" · Selected: ",
|
|
122
|
+
result.imageModel
|
|
123
|
+
]
|
|
124
|
+
}),
|
|
106
125
|
result.deletedAt !== null ? /* @__PURE__ */ jsx("p", {
|
|
107
126
|
role: "status",
|
|
108
127
|
children: "This result was deleted."
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as Button } from "./utils-ySbqTi3g.js";
|
|
2
|
-
import { n as ResultTranscript } from "./ChatPane-
|
|
2
|
+
import { n as ResultTranscript } from "./ChatPane-DsDa1E0a.js";
|
|
3
3
|
import { useEffect, useState } from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/ResultSourceConversation.tsx
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { n as createServerFn } from "../server.js";
|
|
2
|
+
import { t as createServerRpc } from "./createServerRpc-B7Yr1K8i.js";
|
|
3
|
+
import { n as daemonClient } from "./daemon-client-C-RlJHYO.js";
|
|
4
|
+
//#region src/components/WorkspaceRecoveryCard.tsx?tss-serverfn-split
|
|
5
|
+
var readRecovery_createServerFn_handler = createServerRpc({
|
|
6
|
+
id: "9f23b9b4ea534d187b98bfcb5a75272bf9c7ae319766ff93172d6d9ee3113452",
|
|
7
|
+
name: "readRecovery",
|
|
8
|
+
filename: "src/components/WorkspaceRecoveryCard.tsx"
|
|
9
|
+
}, (opts) => readRecovery.__executeServer(opts));
|
|
10
|
+
var readRecovery = createServerFn({ method: "POST" }).validator((data) => data).handler(readRecovery_createServerFn_handler, ({ data }) => daemonClient().workspaceRecovery(data.teamId).list());
|
|
11
|
+
var attemptRecovery_createServerFn_handler = createServerRpc({
|
|
12
|
+
id: "1e7cbf76e28bcfd2222b105da85935e198ace00a583d3ffc1f4955aaa5ff37cb",
|
|
13
|
+
name: "attemptRecovery",
|
|
14
|
+
filename: "src/components/WorkspaceRecoveryCard.tsx"
|
|
15
|
+
}, (opts) => attemptRecovery.__executeServer(opts));
|
|
16
|
+
var attemptRecovery = createServerFn({ method: "POST" }).validator((data) => data).handler(attemptRecovery_createServerFn_handler, ({ data }) => daemonClient().workspaceRecovery(data.teamId).attempt(data.writerId));
|
|
17
|
+
//#endregion
|
|
18
|
+
export { attemptRecovery_createServerFn_handler, readRecovery_createServerFn_handler };
|
|
@@ -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, r as ApiClientError } from "./daemon-client-
|
|
3
|
+
import { n as daemonClient, r as ApiClientError } from "./daemon-client-C-RlJHYO.js";
|
|
4
4
|
//#region src/routes/templates/agents/$id/index.tsx?tss-serverfn-split
|
|
5
5
|
var fetchProfile_createServerFn_handler = createServerRpc({
|
|
6
6
|
id: "032d74b7d41c718191dbdde6b06ba44993340ce1154af1fa6723a6d4f7a7236e",
|
|
@@ -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, r as ApiClientError } from "./daemon-client-
|
|
3
|
+
import { n as daemonClient, r as ApiClientError } from "./daemon-client-C-RlJHYO.js";
|
|
4
4
|
//#region src/routes/agents/$id/index.tsx?tss-serverfn-split
|
|
5
5
|
var fetchAgent_createServerFn_handler = createServerRpc({
|
|
6
6
|
id: "846c9081aed17057351730985f133b0aab67a5dabfca9562552829a90ff30849",
|
|
@@ -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, redirect } from "@tanstack/react-router";
|
|
4
4
|
//#region src/routes/teams/$id/index.tsx
|
|
5
|
-
var $$splitComponentImporter = () => import("./_id-
|
|
5
|
+
var $$splitComponentImporter = () => import("./_id-BXOT74Jd.js");
|
|
6
6
|
var $$splitErrorComponentImporter = () => import("./_id-CI33J2xv.js");
|
|
7
7
|
var fetchGroup = createServerFn({ method: "POST" }).validator((d) => d).handler(createSsrRpc("4773184b3ddd3656fb80ec74375a6d304e25acb56b79f1d349dcabf9f0914359"));
|
|
8
8
|
var Route = createFileRoute("/teams/$id/")({
|
|
@@ -1,11 +1,131 @@
|
|
|
1
|
+
import { n as createServerFn } from "../server.js";
|
|
2
|
+
import { a as workspaceRecoveryExplanation, i as WORKSPACE_RECOVERY_OUTCOME_TEXT } from "./daemon-client-C-RlJHYO.js";
|
|
1
3
|
import { n as Button } from "./utils-ySbqTi3g.js";
|
|
2
4
|
import { a as StatusBadge, i as SectionCard, r as PageShell } from "./Page-DJNoI4Gn.js";
|
|
3
|
-
import { t as
|
|
5
|
+
import { t as createSsrRpc } from "./createSsrRpc-6LHNEsSK.js";
|
|
6
|
+
import { t as Route } from "./_id-BS4MnPa3.js";
|
|
4
7
|
import { t as TeamTabs } from "./TeamTabs-XybMRm3w.js";
|
|
5
8
|
import { t as UnsavedChangesGuard } from "./UnsavedChangesGuard-BfSyMhiD.js";
|
|
6
9
|
import { useEffect, useRef, useState } from "react";
|
|
7
10
|
import { useRouter } from "@tanstack/react-router";
|
|
8
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
+
//#region src/components/WorkspaceRecoveryCard.tsx
|
|
13
|
+
var readRecovery = createServerFn({ method: "POST" }).validator((data) => data).handler(createSsrRpc("9f23b9b4ea534d187b98bfcb5a75272bf9c7ae319766ff93172d6d9ee3113452"));
|
|
14
|
+
var attemptRecovery = createServerFn({ method: "POST" }).validator((data) => data).handler(createSsrRpc("1e7cbf76e28bcfd2222b105da85935e198ace00a583d3ffc1f4955aaa5ff37cb"));
|
|
15
|
+
function WorkspaceRecoveryCard({ teamId }) {
|
|
16
|
+
const generation = useRef(0);
|
|
17
|
+
const selectedTeam = useRef(teamId);
|
|
18
|
+
selectedTeam.current = teamId;
|
|
19
|
+
const [report, setReport] = useState(null);
|
|
20
|
+
const [outcome, setOutcome] = useState(null);
|
|
21
|
+
const [busy, setBusy] = useState(false);
|
|
22
|
+
const [error, setError] = useState(false);
|
|
23
|
+
useEffect(() => {
|
|
24
|
+
const epoch = ++generation.current;
|
|
25
|
+
setBusy(false);
|
|
26
|
+
setReport(null);
|
|
27
|
+
setOutcome(null);
|
|
28
|
+
setError(false);
|
|
29
|
+
readRecovery({ data: { teamId } }).then((value) => {
|
|
30
|
+
if (generation.current === epoch) setReport(value);
|
|
31
|
+
}).catch(() => {
|
|
32
|
+
if (generation.current === epoch) setError(true);
|
|
33
|
+
});
|
|
34
|
+
return () => {
|
|
35
|
+
generation.current += 1;
|
|
36
|
+
};
|
|
37
|
+
}, [teamId]);
|
|
38
|
+
async function refresh() {
|
|
39
|
+
if (busy) return;
|
|
40
|
+
const epoch = ++generation.current;
|
|
41
|
+
const current = () => epoch === generation.current && selectedTeam.current === teamId;
|
|
42
|
+
setBusy(true);
|
|
43
|
+
setError(false);
|
|
44
|
+
setOutcome(null);
|
|
45
|
+
try {
|
|
46
|
+
const value = await readRecovery({ data: { teamId } });
|
|
47
|
+
if (current()) setReport(value);
|
|
48
|
+
} catch {
|
|
49
|
+
if (current()) setError(true);
|
|
50
|
+
} finally {
|
|
51
|
+
if (current()) setBusy(false);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
async function attempt(writerId) {
|
|
55
|
+
if (busy) return;
|
|
56
|
+
const epoch = ++generation.current;
|
|
57
|
+
const current = () => epoch === generation.current && selectedTeam.current === teamId;
|
|
58
|
+
setBusy(true);
|
|
59
|
+
setError(false);
|
|
60
|
+
setOutcome(null);
|
|
61
|
+
try {
|
|
62
|
+
const result = await attemptRecovery({ data: {
|
|
63
|
+
teamId,
|
|
64
|
+
writerId
|
|
65
|
+
} });
|
|
66
|
+
if (current()) {
|
|
67
|
+
setReport(result.report);
|
|
68
|
+
setOutcome(result.outcome);
|
|
69
|
+
}
|
|
70
|
+
} catch {
|
|
71
|
+
if (current()) setError(true);
|
|
72
|
+
} finally {
|
|
73
|
+
if (current()) setBusy(false);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return /* @__PURE__ */ jsxs("section", {
|
|
77
|
+
className: "my-4 space-y-3",
|
|
78
|
+
"aria-label": "Workspace recovery",
|
|
79
|
+
children: [
|
|
80
|
+
/* @__PURE__ */ jsxs("div", {
|
|
81
|
+
className: "flex items-center justify-between gap-3",
|
|
82
|
+
children: [/* @__PURE__ */ jsx("h3", {
|
|
83
|
+
className: "font-semibold",
|
|
84
|
+
children: "Workspace recovery"
|
|
85
|
+
}), /* @__PURE__ */ jsx(Button, {
|
|
86
|
+
variant: "ghost",
|
|
87
|
+
disabled: busy,
|
|
88
|
+
onClick: refresh,
|
|
89
|
+
children: "Refresh status"
|
|
90
|
+
})]
|
|
91
|
+
}),
|
|
92
|
+
/* @__PURE__ */ jsx("p", {
|
|
93
|
+
className: "text-sm text-muted-foreground",
|
|
94
|
+
children: "Owner-only recorded cleanup. Unknown or restored ownership stays blocked; there is no force-clear. Recovery of unconfirmed host-command cleanup is not supported in this release."
|
|
95
|
+
}),
|
|
96
|
+
error && /* @__PURE__ */ jsx("p", {
|
|
97
|
+
role: "alert",
|
|
98
|
+
children: "Recovery status unavailable. No cleanup confirmation."
|
|
99
|
+
}),
|
|
100
|
+
outcome && /* @__PURE__ */ jsx("p", {
|
|
101
|
+
role: "status",
|
|
102
|
+
children: WORKSPACE_RECOVERY_OUTCOME_TEXT[outcome]
|
|
103
|
+
}),
|
|
104
|
+
report && report.writers.length === 0 && /* @__PURE__ */ jsx("p", { children: "No recorded writers. This is not a workspace verification." }),
|
|
105
|
+
report?.truncated && /* @__PURE__ */ jsx("p", { children: "Report truncated." }),
|
|
106
|
+
report?.writers.map((writer) => /* @__PURE__ */ jsxs("div", {
|
|
107
|
+
className: "space-y-2 rounded border p-3",
|
|
108
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
109
|
+
className: "flex items-center gap-3 flex-wrap",
|
|
110
|
+
children: [
|
|
111
|
+
/* @__PURE__ */ jsx("code", { children: writer.writerId }),
|
|
112
|
+
/* @__PURE__ */ jsx("span", { children: writer.posture }),
|
|
113
|
+
/* @__PURE__ */ jsx(Button, {
|
|
114
|
+
variant: "ghost",
|
|
115
|
+
disabled: busy || writer.posture !== "recovery_required" || !!writer.blocker,
|
|
116
|
+
onClick: () => attempt(writer.writerId),
|
|
117
|
+
children: "Attempt recorded cleanup"
|
|
118
|
+
})
|
|
119
|
+
]
|
|
120
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
121
|
+
className: "text-sm",
|
|
122
|
+
children: workspaceRecoveryExplanation(writer)
|
|
123
|
+
})]
|
|
124
|
+
}, writer.writerId))
|
|
125
|
+
]
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
//#endregion
|
|
9
129
|
//#region src/components/CodingDefaultsCard.tsx
|
|
10
130
|
function CodingDefaultsCard({ teamId }) {
|
|
11
131
|
const [status, setStatus] = useState(null);
|
|
@@ -517,6 +637,7 @@ function TeamDetailPage() {
|
|
|
517
637
|
})
|
|
518
638
|
]
|
|
519
639
|
}),
|
|
640
|
+
/* @__PURE__ */ jsx(WorkspaceRecoveryCard, { teamId: team.id }, team.id),
|
|
520
641
|
/* @__PURE__ */ jsxs("details", {
|
|
521
642
|
className: "mb-6 rounded-lg border bg-card p-4",
|
|
522
643
|
children: [
|
|
@@ -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-C-RlJHYO.js";
|
|
4
4
|
//#region src/routes/templates/teams/$id/index.tsx?tss-serverfn-split
|
|
5
5
|
var fetchTeam_createServerFn_handler = createServerRpc({
|
|
6
6
|
id: "a0bbbee5d0c1240a05e35c04d56a0e95ec78f05265e4e937eec48c8ac2041e58",
|
|
@@ -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, redirect } from "@tanstack/react-router";
|
|
4
4
|
//#region src/routes/agents/$id/index.tsx
|
|
5
|
-
var $$splitComponentImporter = () => import("./_id-
|
|
5
|
+
var $$splitComponentImporter = () => import("./_id-CrOJD02W.js");
|
|
6
6
|
var fetchAgent = createServerFn({ method: "POST" }).validator((d) => d).handler(createSsrRpc("846c9081aed17057351730985f133b0aab67a5dabfca9562552829a90ff30849"));
|
|
7
7
|
var Route = createFileRoute("/agents/$id/")({
|
|
8
8
|
validateSearch: (search) => ({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
|
|
2
2
|
//#region src/routes/results/$id.tsx
|
|
3
|
-
var $$splitComponentImporter = () => import("./_id-
|
|
3
|
+
var $$splitComponentImporter = () => import("./_id-CmS2d0me.js");
|
|
4
4
|
var Route = createFileRoute("/results/$id")({ component: lazyRouteComponent($$splitComponentImporter, "component") });
|
|
5
5
|
//#endregion
|
|
6
6
|
export { Route as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as PageShell } from "./Page-DJNoI4Gn.js";
|
|
2
|
-
import { t as Route } from "./_id-
|
|
3
|
-
import { t as ResultCard } from "./ResultCard-
|
|
2
|
+
import { t as Route } from "./_id-CAxK6pln.js";
|
|
3
|
+
import { t as ResultCard } from "./ResultCard-BtVFqdRU.js";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region src/routes/results/$id.tsx?tsr-split=component
|
|
6
6
|
function SavedResultPage() {
|
|
@@ -1,16 +1,233 @@
|
|
|
1
|
+
import { n as createServerFn } from "../server.js";
|
|
1
2
|
import { n as Button } from "./utils-ySbqTi3g.js";
|
|
2
3
|
import { i as SectionCard, r as PageShell } from "./Page-DJNoI4Gn.js";
|
|
3
|
-
import { t as
|
|
4
|
+
import { t as createSsrRpc } from "./createSsrRpc-6LHNEsSK.js";
|
|
5
|
+
import { t as Route } from "./_id-C1TCGcHL.js";
|
|
4
6
|
import { t as AgentTabs } from "./AgentTabs-DVVkxBks.js";
|
|
5
7
|
import { t as AgentAvatar } from "./AgentAvatar-8gTAy_tP.js";
|
|
6
|
-
import { t as ChatPane } from "./ChatPane-CLUUTi2r.js";
|
|
7
|
-
import { t as ResultSourceConversation } from "./ResultSourceConversation-BoRcXEfg.js";
|
|
8
8
|
import { t as ConfirmDialog } from "./ConfirmDialog-C-2cbcmQ.js";
|
|
9
|
+
import { t as ChatPane } from "./ChatPane-DsDa1E0a.js";
|
|
10
|
+
import { t as ResultSourceConversation } from "./ResultSourceConversation-NKiRGO6_.js";
|
|
9
11
|
import { r as REASONING_LEVELS } from "./wire-constants-C8nBJcU3.js";
|
|
10
|
-
import { useState } from "react";
|
|
12
|
+
import { useCallback, useEffect, useState } from "react";
|
|
11
13
|
import { useRouter } from "@tanstack/react-router";
|
|
12
14
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
13
15
|
import { ArrowLeft } from "lucide-react";
|
|
16
|
+
//#region src/lib/browser.ts
|
|
17
|
+
var fetchAgentBrowser = createServerFn({ method: "POST" }).validator((input) => input).handler(createSsrRpc("f2e22e5bff21237425b6e52cfd3a5c496451c7358d29fdbf980cd806b455132e"));
|
|
18
|
+
var stopAgentBrowser = createServerFn({ method: "POST" }).validator((input) => input).handler(createSsrRpc("d9f4821fb42488b35bdf71885072200bb48ce2697d960ca87166586a18ae45b2"));
|
|
19
|
+
var resetAgentBrowser = createServerFn({ method: "POST" }).validator((input) => input).handler(createSsrRpc("8e9d45197cb5ece3030d58cee285b83debbe8fa1544130e02e2049aac8ce5165"));
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region src/components/AgentBrowserCard.tsx
|
|
22
|
+
function StateLine({ status }) {
|
|
23
|
+
const availability = status.availability === "configured" ? "Browser configured" : status.availability === "disabled" ? "Browser tools disabled" : "Browser unavailable";
|
|
24
|
+
const selected = status.selectedBrowser;
|
|
25
|
+
return /* @__PURE__ */ jsxs("dl", {
|
|
26
|
+
className: "grid min-w-0 grid-cols-1 gap-x-4 gap-y-2 text-sm sm:grid-cols-[max-content_minmax(0,1fr)]",
|
|
27
|
+
children: [
|
|
28
|
+
/* @__PURE__ */ jsx("dt", {
|
|
29
|
+
className: "font-medium text-mocha",
|
|
30
|
+
children: "Availability"
|
|
31
|
+
}),
|
|
32
|
+
/* @__PURE__ */ jsx("dd", { children: availability }),
|
|
33
|
+
/* @__PURE__ */ jsx("dt", {
|
|
34
|
+
className: "font-medium text-mocha",
|
|
35
|
+
children: "Session"
|
|
36
|
+
}),
|
|
37
|
+
/* @__PURE__ */ jsx("dd", { children: status.state }),
|
|
38
|
+
/* @__PURE__ */ jsx("dt", {
|
|
39
|
+
className: "font-medium text-mocha",
|
|
40
|
+
children: "Profile"
|
|
41
|
+
}),
|
|
42
|
+
/* @__PURE__ */ jsx("dd", { children: status.profilePresent ? "Persistent profile exists" : "No profile slot" }),
|
|
43
|
+
/* @__PURE__ */ jsx("dt", {
|
|
44
|
+
className: "font-medium text-mocha",
|
|
45
|
+
children: "Selected browser"
|
|
46
|
+
}),
|
|
47
|
+
/* @__PURE__ */ jsx("dd", {
|
|
48
|
+
className: "break-words",
|
|
49
|
+
children: selected ? `${selected.name} · ${selected.source} · ${selected.mode}${selected.version ? ` · ${selected.version}` : ""}` : "No usable browser selection"
|
|
50
|
+
}),
|
|
51
|
+
status.reasonCode && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("dt", {
|
|
52
|
+
className: "font-medium text-mocha",
|
|
53
|
+
children: "State code"
|
|
54
|
+
}), /* @__PURE__ */ jsx("dd", {
|
|
55
|
+
className: "break-words font-mono text-xs",
|
|
56
|
+
children: status.reasonCode
|
|
57
|
+
})] })
|
|
58
|
+
]
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
function AgentBrowserCard({ agentId }) {
|
|
62
|
+
const [view, setView] = useState(null);
|
|
63
|
+
const [loading, setLoading] = useState(true);
|
|
64
|
+
const [pending, setPending] = useState(null);
|
|
65
|
+
const [error, setError] = useState(null);
|
|
66
|
+
const [confirmReset, setConfirmReset] = useState(false);
|
|
67
|
+
const refresh = useCallback(async () => {
|
|
68
|
+
setLoading(true);
|
|
69
|
+
try {
|
|
70
|
+
setView(await fetchAgentBrowser({ data: { agentId } }));
|
|
71
|
+
} catch (err) {
|
|
72
|
+
setView({
|
|
73
|
+
status: null,
|
|
74
|
+
unavailable: { message: err instanceof Error ? err.message : String(err) }
|
|
75
|
+
});
|
|
76
|
+
} finally {
|
|
77
|
+
setLoading(false);
|
|
78
|
+
}
|
|
79
|
+
}, [agentId]);
|
|
80
|
+
useEffect(() => {
|
|
81
|
+
refresh();
|
|
82
|
+
}, [refresh]);
|
|
83
|
+
async function stop() {
|
|
84
|
+
setPending("stop");
|
|
85
|
+
setError(null);
|
|
86
|
+
try {
|
|
87
|
+
const result = await stopAgentBrowser({ data: { agentId } });
|
|
88
|
+
if (!result.ok) setError(`${result.failure.message}${result.failure.code ? ` (${result.failure.code})` : ""}`);
|
|
89
|
+
} catch (err) {
|
|
90
|
+
setError(err instanceof Error ? err.message : String(err));
|
|
91
|
+
} finally {
|
|
92
|
+
await refresh();
|
|
93
|
+
setPending(null);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
async function reset() {
|
|
97
|
+
setPending("reset");
|
|
98
|
+
setError(null);
|
|
99
|
+
try {
|
|
100
|
+
const result = await resetAgentBrowser({ data: { agentId } });
|
|
101
|
+
if (!result.ok) throw new Error(`${result.failure.message}${result.failure.code ? ` (${result.failure.code})` : ""}`);
|
|
102
|
+
} finally {
|
|
103
|
+
await refresh();
|
|
104
|
+
setPending(null);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
const status = view?.status ?? null;
|
|
108
|
+
const unavailable = view?.unavailable ?? null;
|
|
109
|
+
const busy = pending !== null || loading;
|
|
110
|
+
return /* @__PURE__ */ jsxs(SectionCard, {
|
|
111
|
+
title: "Managed browser",
|
|
112
|
+
description: "Isolated persistent browser session. Availability does not guarantee that a particular site will load.",
|
|
113
|
+
actions: /* @__PURE__ */ jsx(Button, {
|
|
114
|
+
variant: "ghost",
|
|
115
|
+
disabled: busy,
|
|
116
|
+
onClick: () => void refresh(),
|
|
117
|
+
children: loading ? "refreshing…" : "refresh status"
|
|
118
|
+
}),
|
|
119
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
120
|
+
className: "space-y-4",
|
|
121
|
+
children: [
|
|
122
|
+
loading && !view && /* @__PURE__ */ jsx("p", {
|
|
123
|
+
role: "status",
|
|
124
|
+
children: "Loading browser status…"
|
|
125
|
+
}),
|
|
126
|
+
unavailable && /* @__PURE__ */ jsxs("div", {
|
|
127
|
+
role: "alert",
|
|
128
|
+
className: "rounded-md border border-warning/30 bg-fawn/30 p-3 text-sm",
|
|
129
|
+
children: [/* @__PURE__ */ jsx("strong", { children: unavailable.code ? `${unavailable.code}: ` : "" }), unavailable.message]
|
|
130
|
+
}),
|
|
131
|
+
status && /* @__PURE__ */ jsx(StateLine, { status }),
|
|
132
|
+
status?.remedy && /* @__PURE__ */ jsx("p", {
|
|
133
|
+
className: "break-words rounded-md bg-fawn/35 p-3 text-sm text-chocolate",
|
|
134
|
+
children: status.remedy
|
|
135
|
+
}),
|
|
136
|
+
error && /* @__PURE__ */ jsx("p", {
|
|
137
|
+
role: "alert",
|
|
138
|
+
className: "err break-words",
|
|
139
|
+
children: error
|
|
140
|
+
}),
|
|
141
|
+
/* @__PURE__ */ jsxs("div", {
|
|
142
|
+
className: "flex flex-wrap gap-2",
|
|
143
|
+
children: [/* @__PURE__ */ jsx(Button, {
|
|
144
|
+
variant: "ghost",
|
|
145
|
+
disabled: busy || status?.state !== "running",
|
|
146
|
+
onClick: () => void stop(),
|
|
147
|
+
children: pending === "stop" ? "stopping…" : "Stop session"
|
|
148
|
+
}), /* @__PURE__ */ jsx(Button, {
|
|
149
|
+
variant: "danger",
|
|
150
|
+
disabled: busy || !status?.profilePresent && status?.state !== "running",
|
|
151
|
+
onClick: () => setConfirmReset(true),
|
|
152
|
+
children: "Reset profile"
|
|
153
|
+
})]
|
|
154
|
+
}),
|
|
155
|
+
/* @__PURE__ */ jsx("p", {
|
|
156
|
+
className: "text-xs leading-5 text-mocha-light",
|
|
157
|
+
children: "Stop and archive preserve the profile. Reset and Team transfer remove it (cookies and logins are lost). Browser state is excluded from backup. A site may still block or challenge an otherwise available browser."
|
|
158
|
+
})
|
|
159
|
+
]
|
|
160
|
+
}), /* @__PURE__ */ jsx(ConfirmDialog, {
|
|
161
|
+
open: confirmReset,
|
|
162
|
+
onOpenChange: setConfirmReset,
|
|
163
|
+
title: "Reset this Agent’s browser profile?",
|
|
164
|
+
description: /* @__PURE__ */ jsx("p", { children: "This stops the session and permanently removes this Agent’s isolated profile, including cookies and logins. This cannot be undone. Stop preserves the profile; use reset only when you intend to discard that site state." }),
|
|
165
|
+
confirmLabel: pending === "reset" ? "resetting…" : "delete profile",
|
|
166
|
+
onConfirm: reset
|
|
167
|
+
})]
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
//#endregion
|
|
171
|
+
//#region src/lib/web-search.ts
|
|
172
|
+
var fetchAgentSearchStatus = createServerFn({ method: "POST" }).validator((input) => input).handler(createSsrRpc("80ba6720c4e6bcc7b042fccbc78a7f2aeafd75e7914a99c9edaf91403470c93e"));
|
|
173
|
+
//#endregion
|
|
174
|
+
//#region src/components/AgentSearchCard.tsx
|
|
175
|
+
function AgentSearchCard({ agentId, model }) {
|
|
176
|
+
const [status, setStatus] = useState(null);
|
|
177
|
+
const [error, setError] = useState(false);
|
|
178
|
+
const [refresh, setRefresh] = useState(0);
|
|
179
|
+
useEffect(() => {
|
|
180
|
+
let current = true;
|
|
181
|
+
setStatus(null);
|
|
182
|
+
setError(false);
|
|
183
|
+
fetchAgentSearchStatus({ data: { agentId } }).then((value) => {
|
|
184
|
+
if (current) setStatus(value);
|
|
185
|
+
}, () => {
|
|
186
|
+
if (current) setError(true);
|
|
187
|
+
});
|
|
188
|
+
return () => {
|
|
189
|
+
current = false;
|
|
190
|
+
};
|
|
191
|
+
}, [
|
|
192
|
+
agentId,
|
|
193
|
+
model,
|
|
194
|
+
refresh
|
|
195
|
+
]);
|
|
196
|
+
return /* @__PURE__ */ jsx(SectionCard, {
|
|
197
|
+
title: "Web discovery",
|
|
198
|
+
description: "Configuration only, not proof of search execution or source reading. Ordinary interactive turns only; browser reading is separate.",
|
|
199
|
+
actions: /* @__PURE__ */ jsx(Button, {
|
|
200
|
+
variant: "ghost",
|
|
201
|
+
onClick: () => setRefresh((value) => value + 1),
|
|
202
|
+
children: "Refresh status"
|
|
203
|
+
}),
|
|
204
|
+
children: error ? /* @__PURE__ */ jsx("p", {
|
|
205
|
+
role: "alert",
|
|
206
|
+
children: "Search readiness unavailable."
|
|
207
|
+
}) : status ? /* @__PURE__ */ jsxs("div", {
|
|
208
|
+
className: "space-y-2 text-sm",
|
|
209
|
+
children: [
|
|
210
|
+
/* @__PURE__ */ jsxs("p", { children: [
|
|
211
|
+
status.state,
|
|
212
|
+
" · ",
|
|
213
|
+
status.route ?? "no route",
|
|
214
|
+
" · ",
|
|
215
|
+
status.account ?? "no account",
|
|
216
|
+
status.model ? ` · ${status.model}` : ""
|
|
217
|
+
] }),
|
|
218
|
+
/* @__PURE__ */ jsx("p", {
|
|
219
|
+
className: "break-words",
|
|
220
|
+
children: status.message
|
|
221
|
+
}),
|
|
222
|
+
/* @__PURE__ */ jsx("p", { children: "Change route, mode or disablement in Config → Web Search. Native routes are experimental until live qualification." })
|
|
223
|
+
]
|
|
224
|
+
}) : /* @__PURE__ */ jsx("p", {
|
|
225
|
+
role: "status",
|
|
226
|
+
children: "Loading search readiness…"
|
|
227
|
+
})
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
//#endregion
|
|
14
231
|
//#region src/components/CopyButton.tsx
|
|
15
232
|
function CopyButton({ value, className, ariaLabel = "Copy to clipboard", title = "Copy to clipboard" }) {
|
|
16
233
|
const [copied, setCopied] = useState(false);
|
|
@@ -244,6 +461,11 @@ function AgentDetailPage() {
|
|
|
244
461
|
] }) : /* @__PURE__ */ jsxs("div", {
|
|
245
462
|
className: "space-y-6",
|
|
246
463
|
children: [
|
|
464
|
+
/* @__PURE__ */ jsx(AgentSearchCard, {
|
|
465
|
+
agentId: resolved.agent.id,
|
|
466
|
+
model: resolved.model
|
|
467
|
+
}),
|
|
468
|
+
/* @__PURE__ */ jsx(AgentBrowserCard, { agentId: resolved.agent.id }),
|
|
247
469
|
/* @__PURE__ */ jsx(SettingsDetails, {
|
|
248
470
|
agentId: resolved.agent.id,
|
|
249
471
|
currentModelOverride: resolved.agent.modelOverride ?? null,
|
|
@@ -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, r as ApiClientError } from "./daemon-client-
|
|
3
|
+
import { n as daemonClient, r as ApiClientError } from "./daemon-client-C-RlJHYO.js";
|
|
4
4
|
//#region src/routes/teams/$id/index.tsx?tss-serverfn-split
|
|
5
5
|
var fetchGroup_createServerFn_handler = createServerRpc({
|
|
6
6
|
id: "4773184b3ddd3656fb80ec74375a6d304e25acb56b79f1d349dcabf9f0914359",
|