@hearsay-tools/squawk 0.19.0-pr4624.9217 → 0.19.0-pr4624.9218
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/server/runs-routes.d.ts +18 -18
- package/package.json +4 -4
- package/web/dist/assets/{accounts-section-D5XgNziC.js → accounts-section-s6sAdUT8.js} +1 -1
- package/web/dist/assets/{activity-motion-D-KHKtyy.js → activity-motion-CXlbNrMI.js} +1 -1
- package/web/dist/assets/{activity-route-DQocpeX-.js → activity-route-BL-QWLNp.js} +1 -1
- package/web/dist/assets/agent-accounts-Du8CHfFX.js +1 -0
- package/web/dist/assets/{agent-config-section-rYku3AZT.js → agent-config-section-BzMSlPK0.js} +1 -1
- package/web/dist/assets/{agent-defaults-section-CqPUj6Ym.js → agent-defaults-section-CqEVmRK0.js} +1 -1
- package/web/dist/assets/{appearance-CQq9oAy8.js → appearance-vI6ae_So.js} +1 -1
- package/web/dist/assets/{archive-on-merge-field-Px9cxA_C.js → archive-on-merge-field-C4hrO55O.js} +1 -1
- package/web/dist/assets/{ask-card-w_alMeJO.js → ask-card-hEb8IHjL.js} +1 -1
- package/web/dist/assets/{automations-route-Bj1q3ZaB.js → automations-route-Bd6crv15.js} +1 -1
- package/web/dist/assets/{commit-list-CTXetI6a.js → commit-list-Jr1_04RS.js} +1 -1
- package/web/dist/assets/{diff-DrxwDSjG.js → diff-BOF9OXhn.js} +2 -2
- package/web/dist/assets/{diff-controls-ZudnxdcW.js → diff-controls-CkxtRrbB.js} +1 -1
- package/web/dist/assets/{diff-view-BWdxHI4k.js → diff-view-Chu6rn_i.js} +1 -1
- package/web/dist/assets/{discard-changes-dialog-1jgBq6CB.js → discard-changes-dialog-BB47RqdX.js} +1 -1
- package/web/dist/assets/{file-preview-BzEh3tBo.js → file-preview-DNM-krBZ.js} +1 -1
- package/web/dist/assets/{folder-browser-BITUwN6e.js → folder-browser-TNWat5kt.js} +1 -1
- package/web/dist/assets/{git-toolbar-CuwCJ1Ce.js → git-toolbar-CoKBTzNV.js} +1 -1
- package/web/dist/assets/github-t611QkCi.js +1 -0
- package/web/dist/assets/{global-activity-route-C_n3hxpm.js → global-activity-route-B9DMoviv.js} +1 -1
- package/web/dist/assets/hosts-rdWe_OBc.js +1 -0
- package/web/dist/assets/index-C3kap2_j.js +21 -0
- package/web/dist/assets/label-B_s8eiYA.js +1 -0
- package/web/dist/assets/{markdown-1lVJvsmG.js → markdown-Bmdr6MIa.js} +1 -1
- package/web/dist/assets/{open-in-menu-CmqEGqeo.js → open-in-menu-DkFneOWr.js} +1 -1
- package/web/dist/assets/{option-select-CUz3VpXM.js → option-select-BxTmKg8G.js} +1 -1
- package/web/dist/assets/{preferences-section-C1XH8qrR.js → preferences-section-B_yl_o-g.js} +1 -1
- package/web/dist/assets/{preview-B3P2zCSB.js → preview-D3zYSmIA.js} +1 -1
- package/web/dist/assets/{preview-pane-connected-BE_GmSMJ.js → preview-pane-connected-s9LvCVbp.js} +1 -1
- package/web/dist/assets/{project-location-DEsVcZWf.js → project-location-BczZtNyO.js} +1 -1
- package/web/dist/assets/{project-router-Cz4947On.js → project-router-CfEuKuz1.js} +1 -1
- package/web/dist/assets/project-scope-context-DNrHbqd2.js +4 -0
- package/web/dist/assets/{projects-section-BfZsgX5k.js → projects-section-C6DnyUa2.js} +1 -1
- package/web/dist/assets/{prompt-templates-section-DuG4N4Ao.js → prompt-templates-section-BQvKWcaX.js} +2 -2
- package/web/dist/assets/queries-DD_9iITj.js +1 -0
- package/web/dist/assets/{reference-chip-CTZzdYE-.js → reference-chip-e-fG4-yW.js} +1 -1
- package/web/dist/assets/{remote-settings-notice-BiHxgFHO.js → remote-settings-notice-CUqI2DdF.js} +1 -1
- package/web/dist/assets/{repo-git-CP18eaqb.js → repo-git-NG_TxE7N.js} +1 -1
- package/web/dist/assets/{report-reader-CA1-jsvV.js → report-reader-LYNHrAe-.js} +1 -1
- package/web/dist/assets/{report-selection-Wmowg6KN.js → report-selection-nUbQVjJu.js} +1 -1
- package/web/dist/assets/{reports-Dkjpd6Ua.js → reports-DuT4m7i5.js} +1 -1
- package/web/dist/assets/{resources-section-DvVqiEXZ.js → resources-section-CT48TCXY.js} +1 -1
- package/web/dist/assets/{review-notes-drafts-CAy5hCNT.js → review-notes-drafts-C7HCRebB.js} +1 -1
- package/web/dist/assets/{review-panel-BYIr5ss4.js → review-panel-BffLSkRo.js} +1 -1
- package/web/dist/assets/{review-strip-DSWeJJ-q.js → review-strip-COa0ir6V.js} +1 -1
- package/web/dist/assets/{run-detail-refresh-CbjQ1uRt.js → run-detail-refresh-Db5HOGMX.js} +1 -1
- package/web/dist/assets/{run-diff-BlsnIDWY.js → run-diff-DldSY8BJ.js} +1 -1
- package/web/dist/assets/run-header-DxpN6yVQ.js +2 -0
- package/web/dist/assets/{select-oEl3fx63.js → select-Cd8wvwvm.js} +1 -1
- package/web/dist/assets/{session-context-section-CSX4VVyz.js → session-context-section-CW8DS0dW.js} +1 -1
- package/web/dist/assets/{settings-agent-picker-CkWMLzyU.js → settings-agent-picker-an3ysM1B.js} +1 -1
- package/web/dist/assets/{settings-save-bar-CPpDVL5P.js → settings-save-bar-BiHFQ4c0.js} +1 -1
- package/web/dist/assets/{settings-shell-CuFJKhFd.js → settings-shell-KZ801oLH.js} +1 -1
- package/web/dist/assets/{sidebar-section-BPmyhYza.js → sidebar-section-BRMO7aY4.js} +1 -1
- package/web/dist/assets/{skills-w7D9Qrut.js → skills-DHkLoxXb.js} +1 -1
- package/web/dist/assets/{status-dot-BJizt-Te.js → status-dot-Da1M54kK.js} +1 -1
- package/web/dist/assets/{tab-link-COd4H6PM.js → tab-link-DL1UtKVR.js} +1 -1
- package/web/dist/assets/{task-changes-DITle-GG.js → task-changes-CQhwyj0L.js} +2 -2
- package/web/dist/assets/{task-commits-BdI4gj_G.js → task-commits-CTP8izpc.js} +1 -1
- package/web/dist/assets/{task-file-scope-BHLxoBS-.js → task-file-scope-CDIfOvl-.js} +1 -1
- package/web/dist/assets/{task-files-pTO4QRWe.js → task-files-CGlRH86B.js} +1 -1
- package/web/dist/assets/task-github-item-ChgjULzj.js +1 -0
- package/web/dist/assets/{task-thread-Oo6A_P2M.js → task-thread-Cj9B2ISO.js} +2 -2
- package/web/dist/assets/{thread-state-Dkcl5bfG.js → thread-state-D2KJrZ1o.js} +1 -1
- package/web/dist/assets/{use-finish-run-NBU3wLYy.js → use-finish-run-DifixlCM.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-C-jDPwgM.js → use-hand-to-agent-state-Bjh1EnB3.js} +1 -1
- package/web/dist/assets/use-path-bases-AV9YYh2B.js +1 -0
- package/web/dist/assets/use-workspace-config-save-02qlUK8v.js +1 -0
- package/web/dist/assets/{workflows-BjR_LEJm.js → workflows-BDc-MpiC.js} +2 -2
- package/web/dist/assets/{workspace-tools-DcWdFqHQ.js → workspace-tools-D7kUSb-0.js} +1 -1
- package/web/dist/assets/{worktrees-section-DZMjdzEe.js → worktrees-section-Cv65NBgq.js} +4 -4
- package/web/dist/index.html +14 -14
- package/web/dist/assets/agent-accounts-8nQaLOOz.js +0 -1
- package/web/dist/assets/github-CsalPmPp.js +0 -1
- package/web/dist/assets/hosts-CfxnorWj.js +0 -1
- package/web/dist/assets/index-I_2HwBGo.js +0 -21
- package/web/dist/assets/label-CIqBXTgQ.js +0 -1
- package/web/dist/assets/project-scope-context-6hCh4cW_.js +0 -4
- package/web/dist/assets/queries-D2VvZ31t.js +0 -1
- package/web/dist/assets/run-header-CerGWRTZ.js +0 -2
- package/web/dist/assets/task-github-item-Bl4u6q9i.js +0 -1
- package/web/dist/assets/use-path-bases-DYuZDchL.js +0 -1
- package/web/dist/assets/use-workspace-config-save-Br8WuWSM.js +0 -1
|
@@ -92,8 +92,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
|
|
|
92
92
|
} | undefined;
|
|
93
93
|
invalidAsk?: boolean | undefined;
|
|
94
94
|
delegation?: {
|
|
95
|
-
role: "invalid";
|
|
96
|
-
} | {
|
|
97
95
|
role: "root";
|
|
98
96
|
conversation?: {
|
|
99
97
|
messages: {
|
|
@@ -328,6 +326,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
|
|
|
328
326
|
} | undefined;
|
|
329
327
|
executionRevision?: number | undefined;
|
|
330
328
|
executionStartSeq?: number | undefined;
|
|
329
|
+
} | {
|
|
330
|
+
role: "invalid";
|
|
331
331
|
} | undefined;
|
|
332
332
|
agentInputs?: {
|
|
333
333
|
conversation?: {
|
|
@@ -1954,8 +1954,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
|
|
|
1954
1954
|
} | undefined;
|
|
1955
1955
|
invalidAsk?: boolean | undefined;
|
|
1956
1956
|
delegation?: {
|
|
1957
|
-
role: "invalid";
|
|
1958
|
-
} | {
|
|
1959
1957
|
role: "root";
|
|
1960
1958
|
conversation?: {
|
|
1961
1959
|
messages: {
|
|
@@ -2190,6 +2188,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
|
|
|
2190
2188
|
} | undefined;
|
|
2191
2189
|
executionRevision?: number | undefined;
|
|
2192
2190
|
executionStartSeq?: number | undefined;
|
|
2191
|
+
} | {
|
|
2192
|
+
role: "invalid";
|
|
2193
2193
|
} | undefined;
|
|
2194
2194
|
agentInputs?: {
|
|
2195
2195
|
conversation?: {
|
|
@@ -3169,8 +3169,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
|
|
|
3169
3169
|
} | undefined;
|
|
3170
3170
|
invalidAsk?: boolean | undefined;
|
|
3171
3171
|
delegation?: {
|
|
3172
|
-
role: "invalid";
|
|
3173
|
-
} | {
|
|
3174
3172
|
role: "root";
|
|
3175
3173
|
conversation?: {
|
|
3176
3174
|
messages: {
|
|
@@ -3405,6 +3403,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
|
|
|
3405
3403
|
} | undefined;
|
|
3406
3404
|
executionRevision?: number | undefined;
|
|
3407
3405
|
executionStartSeq?: number | undefined;
|
|
3406
|
+
} | {
|
|
3407
|
+
role: "invalid";
|
|
3408
3408
|
} | undefined;
|
|
3409
3409
|
agentInputs?: {
|
|
3410
3410
|
conversation?: {
|
|
@@ -5108,8 +5108,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
|
|
|
5108
5108
|
currentStepId?: string | undefined;
|
|
5109
5109
|
error?: string | undefined;
|
|
5110
5110
|
delegation?: {
|
|
5111
|
-
role: "invalid";
|
|
5112
|
-
} | {
|
|
5113
5111
|
role: "root";
|
|
5114
5112
|
conversation?: {
|
|
5115
5113
|
messages: {
|
|
@@ -5344,6 +5342,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
|
|
|
5344
5342
|
} | undefined;
|
|
5345
5343
|
executionRevision?: number | undefined;
|
|
5346
5344
|
executionStartSeq?: number | undefined;
|
|
5345
|
+
} | {
|
|
5346
|
+
role: "invalid";
|
|
5347
5347
|
} | undefined;
|
|
5348
5348
|
lastWaitsError?: string | undefined;
|
|
5349
5349
|
automaticWakes?: number | undefined;
|
|
@@ -5608,8 +5608,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
|
|
|
5608
5608
|
} | undefined;
|
|
5609
5609
|
invalidAsk?: boolean | undefined;
|
|
5610
5610
|
delegation?: {
|
|
5611
|
-
role: "invalid";
|
|
5612
|
-
} | {
|
|
5613
5611
|
role: "root";
|
|
5614
5612
|
conversation?: {
|
|
5615
5613
|
messages: {
|
|
@@ -5844,6 +5842,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
|
|
|
5844
5842
|
} | undefined;
|
|
5845
5843
|
executionRevision?: number | undefined;
|
|
5846
5844
|
executionStartSeq?: number | undefined;
|
|
5845
|
+
} | {
|
|
5846
|
+
role: "invalid";
|
|
5847
5847
|
} | undefined;
|
|
5848
5848
|
agentInputs?: {
|
|
5849
5849
|
conversation?: {
|
|
@@ -6799,8 +6799,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
|
|
|
6799
6799
|
} | undefined;
|
|
6800
6800
|
invalidAsk?: boolean | undefined;
|
|
6801
6801
|
delegation?: {
|
|
6802
|
-
role: "invalid";
|
|
6803
|
-
} | {
|
|
6804
6802
|
role: "root";
|
|
6805
6803
|
conversation?: {
|
|
6806
6804
|
messages: {
|
|
@@ -7035,6 +7033,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
|
|
|
7035
7033
|
} | undefined;
|
|
7036
7034
|
executionRevision?: number | undefined;
|
|
7037
7035
|
executionStartSeq?: number | undefined;
|
|
7036
|
+
} | {
|
|
7037
|
+
role: "invalid";
|
|
7038
7038
|
} | undefined;
|
|
7039
7039
|
agentInputs?: {
|
|
7040
7040
|
conversation?: {
|
|
@@ -8717,8 +8717,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
|
|
|
8717
8717
|
currentStepId?: string | undefined;
|
|
8718
8718
|
error?: string | undefined;
|
|
8719
8719
|
delegation?: {
|
|
8720
|
-
role: "invalid";
|
|
8721
|
-
} | {
|
|
8722
8720
|
role: "root";
|
|
8723
8721
|
conversation?: {
|
|
8724
8722
|
messages: {
|
|
@@ -8953,6 +8951,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
|
|
|
8953
8951
|
} | undefined;
|
|
8954
8952
|
executionRevision?: number | undefined;
|
|
8955
8953
|
executionStartSeq?: number | undefined;
|
|
8954
|
+
} | {
|
|
8955
|
+
role: "invalid";
|
|
8956
8956
|
} | undefined;
|
|
8957
8957
|
lastWaitsError?: string | undefined;
|
|
8958
8958
|
automaticWakes?: number | undefined;
|
|
@@ -9261,8 +9261,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
|
|
|
9261
9261
|
} | undefined;
|
|
9262
9262
|
invalidAsk?: boolean | undefined;
|
|
9263
9263
|
delegation?: {
|
|
9264
|
-
role: "invalid";
|
|
9265
|
-
} | {
|
|
9266
9264
|
role: "root";
|
|
9267
9265
|
conversation?: {
|
|
9268
9266
|
messages: {
|
|
@@ -9497,6 +9495,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
|
|
|
9497
9495
|
} | undefined;
|
|
9498
9496
|
executionRevision?: number | undefined;
|
|
9499
9497
|
executionStartSeq?: number | undefined;
|
|
9498
|
+
} | {
|
|
9499
|
+
role: "invalid";
|
|
9500
9500
|
} | undefined;
|
|
9501
9501
|
agentInputs?: {
|
|
9502
9502
|
conversation?: {
|
|
@@ -11369,8 +11369,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
|
|
|
11369
11369
|
currentStepId?: string | undefined;
|
|
11370
11370
|
error?: string | undefined;
|
|
11371
11371
|
delegation?: {
|
|
11372
|
-
role: "invalid";
|
|
11373
|
-
} | {
|
|
11374
11372
|
role: "root";
|
|
11375
11373
|
conversation?: {
|
|
11376
11374
|
messages: {
|
|
@@ -11605,6 +11603,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
|
|
|
11605
11603
|
} | undefined;
|
|
11606
11604
|
executionRevision?: number | undefined;
|
|
11607
11605
|
executionStartSeq?: number | undefined;
|
|
11606
|
+
} | {
|
|
11607
|
+
role: "invalid";
|
|
11608
11608
|
} | undefined;
|
|
11609
11609
|
lastWaitsError?: string | undefined;
|
|
11610
11610
|
automaticWakes?: number | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hearsay-tools/squawk",
|
|
3
|
-
"version": "0.19.0-pr4624.
|
|
3
|
+
"version": "0.19.0-pr4624.9218",
|
|
4
4
|
"description": "Local cockpit for running and tracking AI agent tasks in your repo. Uses your logged-in `claude` CLI and `gh` — zero config, zero database.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@babel/parser": "^8.0.8",
|
|
71
71
|
"@babel/types": "^8.0.8",
|
|
72
|
-
"@open-mercato/cezar-api-client": "0.19.0-pr4624.
|
|
73
|
-
"@open-mercato/cezar-contract": "0.19.0-pr4624.
|
|
72
|
+
"@open-mercato/cezar-api-client": "0.19.0-pr4624.9218",
|
|
73
|
+
"@open-mercato/cezar-contract": "0.19.0-pr4624.9218",
|
|
74
74
|
"@types/node": "^24.19.1",
|
|
75
75
|
"@types/ws": "^8.18.1",
|
|
76
76
|
"esbuild": "^0.28.1",
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
"publishConfig": {
|
|
88
88
|
"access": "public"
|
|
89
89
|
},
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "36de14fe71261fa53e4de9c45c26fd760ef39f86"
|
|
91
91
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{i as t,t as n}from"./react-runtime-CCIEwYL0.js";import{B as r,F as i,G as a,J as o,M as s,P as c,St as l,W as u,bt as d,et as f,ft as p,gr as m,gt as h,ht as g,j as _,pt as v,rt as y}from"./queries-D2VvZ31t.js";import{An as b,Bi as x,Cn as S,Zi as C,a as w,qn as ee,wn as T}from"./project-scope-context-6hCh4cW_.js";import{p as E}from"./chunk-KS7C4IRE-BdLLx37K.js";import{b as D}from"./design-icons-QbNMZniQ.js";import{t as O}from"./createLucideIcon-BHp8sXmF.js";import{t as te}from"./folder-browser-BITUwN6e.js";import{t as k}from"./button-BV_AiLj2.js";import{t as ne}from"./badge-DAnkqD7i.js";import{a as re,i as ie,o as ae,r as oe,s as se,t as A}from"./dialog-DKr-j9S6.js";import{t as j}from"./status-dot-BJizt-Te.js";import{n as M}from"./agents-settings-path-7X6_cvUg.js";import{t as N}from"./centered-state-N8vWM_Hw.js";import{$t as P,Hn as F,I,Mn as L,On as R,P as z,R as B,an as V,en as H,in as U,jn as W,nn as G,on as K,rn as ce,tn as le}from"./index-I_2HwBGo.js";import{t as q}from"./option-select-CUz3VpXM.js";import{n as J,r as ue,t as de}from"./settings-agent-picker-CkWMLzyU.js";import{n as fe,r as pe,t as me}from"./remote-settings-notice-BiHxgFHO.js";import{n as he,t as ge}from"./save-cue-CpHgT93o.js";import{t as _e}from"./use-path-bases-DYuZDchL.js";import{t as ve}from"./use-workspace-config-save-Br8WuWSM.js";var ye=O(`id-card`,[[`path`,{d:`M16 10h2`,key:`8sgtl7`}],[`path`,{d:`M16 14h2`,key:`epxaof`}],[`path`,{d:`M6.17 15a3 3 0 0 1 5.66 0`,key:`n6f512`}],[`circle`,{cx:`9`,cy:`11`,r:`2`,key:`yxgjnd`}],[`rect`,{x:`2`,y:`5`,width:`20`,height:`14`,rx:`2`,key:`qneu4z`}]]),Y=e(t(),1),X=n(),be=`~/.claude-second`;function xe({open:e,onOpenChange:t,providers:n,initialProvider:r}){let a=d().data,[o,s]=(0,Y.useState)(null),[c,l]=(0,Y.useState)(null),[u,f]=(0,Y.useState)(r??n[0]??`claude`),[p,m]=(0,Y.useState)(``),[h,_]=(0,Y.useState)(``),[y,b]=(0,Y.useState)(!1),x=i(),S=h.trim();return(0,X.jsx)(A,{open:e,onOpenChange:t,children:(0,X.jsxs)(oe,{"data-slot":`add-account-dialog`,className:`sm:max-w-lg`,children:[(0,X.jsxs)(ae,{children:[(0,X.jsx)(se,{children:`Add agent account`}),(0,X.jsx)(ie,{children:`The config folder this account uses. It does not have to exist yet — Connect signs in and the CLI creates it.`})]}),(0,X.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,X.jsxs)(`label`,{className:`flex items-center gap-2 text-[13px]`,children:[(0,X.jsx)(`span`,{className:`text-muted-foreground`,children:`Agent`}),(0,X.jsx)(q,{"aria-label":`Agent`,"data-slot":`add-account-provider`,value:u,onValueChange:e=>f(e),className:`settings-select max-w-full bg-card text-[13px]`,options:n.map(e=>({value:e,label:v(a,e)}))})]}),(0,X.jsxs)(`label`,{className:`flex min-w-0 flex-1 items-center gap-2 text-[13px]`,children:[(0,X.jsx)(`span`,{className:`shrink-0 text-muted-foreground`,children:`Name`}),(0,X.jsx)(`input`,{type:`text`,"aria-label":`Account name`,"data-slot":`add-account-label`,value:p,placeholder:`Work`,onChange:e=>m(e.target.value),className:`min-w-0 flex-1 rounded-md border border-input bg-card px-2 py-1 text-[13px] outline-none focus-visible:border-ring`})]})]}),(0,X.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,X.jsxs)(`label`,{className:`flex min-w-0 items-center gap-2 text-[13px]`,children:[(0,X.jsx)(`span`,{className:`shrink-0 text-muted-foreground`,children:`Folder`}),(0,X.jsx)(`input`,{type:`text`,spellCheck:!1,autoComplete:`off`,"aria-label":`Config folder`,"data-slot":`add-account-dir`,value:h,placeholder:g(a,u)?.accountFolderExample??be,onChange:e=>{_(e.target.value),l(null),x.reset()},className:`min-w-0 flex-1 rounded-md border border-input bg-card px-2 py-1 font-mono text-[13px] outline-none focus-visible:border-ring`}),(0,X.jsx)(k,{type:`button`,variant:`ghost`,size:`sm`,"data-action":`add-account-browse`,"aria-expanded":y,onClick:()=>b(e=>!e),children:y?`Hide folders`:`Browse…`})]}),(0,X.jsxs)(`p`,{className:`text-xs text-soft-foreground`,children:[`A `,(0,X.jsx)(`code`,{children:`~`}),` is kept as written and expanded when the agent runs.`]})]}),y?(0,X.jsx)(te,{path:o,selected:c,onSelect:e=>{l(e),_(e.path),x.reset()},onEnter:e=>{s(e),l(null),x.reset()},showHidden:!0,emptyHint:`No subfolders here — pick this folder by typing its path above.`}):null,x.isError?(0,X.jsx)(`p`,{"data-slot":`add-account-error`,className:`min-w-0 break-words text-[13px] text-danger`,children:x.error instanceof Error?x.error.message:`could not add that folder`}):null,(0,X.jsxs)(re,{className:`min-w-0 sm:items-center sm:justify-end`,children:[(0,X.jsx)(k,{variant:`outline`,onClick:()=>t(!1),children:`Cancel`}),(0,X.jsx)(k,{"data-slot":`add-account-confirm`,disabled:S===``||x.isPending,onClick:()=>{S===``||x.isPending||x.mutate({provider:u,configDir:S,...p.trim()?{label:p.trim()}:{}},{onSuccess:()=>{t(!1),m(``),_(``),l(null),b(!1),w(`Account added — use Connect to sign in`)}})},children:x.isPending?`Adding…`:`Add account`})]})]})})}async function Se(e){return b(await T.api.v1[`runner-install`][`:runner`].$get({param:{runner:e}}),`/runner-install/:runner`)}async function Ce(e,t){return b(await T.api.v1[`runner-install`][`:runner`].$post({param:{runner:e},json:{action:t}}),`/runner-install/:runner`)}var we={idle:``,checking:`Checking for updates…`,downloading:`Downloading CLI…`,verifying:`Verifying CLI…`,extracting:`Extracting CLI…`,activating:`Activating CLI…`,removing:`Removing CLI…`,failed:``};function Te(e){let t=r().data?.capabilities?.settingsAdmin===!0,n=C(),i=[`runner-install`,e],a=x({queryKey:i,queryFn:()=>Se(e),enabled:t,retry:!1,refetchInterval:e=>{if(e.state.error)return!1;let t=e.state.data?.phase;return t&&t!==`idle`&&t!==`failed`?1e3:6e4}}),o=m({mutationFn:t=>Ce(e,t),retry:!1,onSuccess:e=>{n.setQueryData(i,e)}}),s=a.data;return{allowed:t,data:s,busy:o.isPending||!!s&&s.phase!==`idle`&&s.phase!==`failed`,error:o.error?.message??a.error?.message??s?.error,action:o,status:a}}function Ee({state:e}){let{data:t,busy:n,action:r,status:i}=e;if(t?.supported===!1)return(0,X.jsx)(`p`,{children:`This host is not supported by the CLI installer.`});let a=!!t?.installedVersion;return(0,X.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,X.jsx)(k,{className:`active:opacity-80`,disabled:n||!t,onClick:()=>r.mutate(a?`update`:`install`),children:a?`Update CLI`:`Install CLI`}),a?(0,X.jsx)(k,{className:`active:opacity-80`,variant:`outline`,disabled:n,onClick:()=>r.mutate(`remove`),children:`Remove CLI`}):null,(0,X.jsx)(k,{className:`active:opacity-80`,variant:`outline`,disabled:n,onClick:()=>{i.isError?i.refetch():r.mutate(`check`)},children:`Check for updates`})]})}function De({runner:e}){let t=Te(e),{allowed:n,data:r,busy:i,error:a}=t;return n?(0,X.jsxs)(`section`,{"aria-label":`CLI installation`,className:`grid gap-3`,children:[(0,X.jsxs)(`p`,{role:`status`,className:`text-sm text-muted-foreground`,children:[r?.installedVersion?`Installed CLI ${r.installedVersion}`:`CLI not installed`,r?.latestVersion?` · Latest ${r.latestVersion}`:``,i&&r?` · ${we[r.phase]}`:``]}),a?(0,X.jsx)(`p`,{role:`alert`,className:`text-sm text-destructive`,children:a}):null,(0,X.jsx)(Ee,{state:t}),r?.installedVersion?(0,X.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Removing the CLI keeps account data and lets running tasks finish.`}):null]}):null}var Oe={connected:L(`connected`),disconnected:L(`disconnected`),"not-installed":L(`not-installed`),unknown:L(`unknown`)};function ke(){let e=s(),t=d();if(e.isPending||t.isPending)return(0,X.jsx)(`p`,{"data-slot":`accounts-loading`,className:`p-4 text-[13px] text-soft-foreground md:p-6`,children:`Loading agents…`});let n=e.error??t.error;return n?(0,X.jsx)(N,{icon:(0,X.jsx)(ye,{}),tone:`danger`,title:`Agents did not load`,subtitle:n.message,heading:`h2`}):(0,X.jsx)(je,{data:e.data,runners:t.data})}function Z(e,t){let n=F(e,t),r=n.split(`/`);return r.length>4?`…/${r.slice(-3).join(`/`)}`:n}function Ae(){let{hash:e}=E();(0,Y.useEffect)(()=>{if(!e)return;let t=document.getElementById(decodeURIComponent(e.slice(1)));t&&(t.scrollIntoView?.({block:`start`}),t.focus({preventScroll:!0}))},[e])}function je({data:e,runners:t}){let n=r(),[i,a]=(0,Y.useState)(null),[s,c]=(0,Y.useState)(null),l=o();return Ae(),pe(),(0,X.jsxs)(`div`,{"data-slot":`accounts-section`,className:`mx-auto flex w-full max-w-2xl flex-col gap-5 p-4 pb-[calc(90px+env(safe-area-inset-bottom))] md:p-6 md:pb-6`,children:[(0,X.jsx)(fe,{risk:`Agent accounts run each CLI with the configured host folder`}),e.editable?null:(0,X.jsxs)(`p`,{"data-slot":`accounts-hosted`,className:`text-[13px] text-muted-foreground`,children:[`Agent accounts are read-only on this remote cockpit. Run`,` `,(0,X.jsx)(`code`,{children:me}),` on the host to add, edit, or sign in to accounts here.`]}),(0,X.jsx)(`div`,{"data-slot":`agent-cards`,className:`flex flex-col gap-3`,children:t.runners.map(r=>(0,X.jsx)(Fe,{entry:r,check:n.data?.checks?.find(e=>e.name===r.id),settingsAdmin:n.data?.capabilities?.settingsAdmin===!0,runners:t,editable:e.editable,accounts:e.profiles.filter(e=>e.provider===r.id),canCarryAccounts:e.profileCapableProviders.includes(r.id),onAdd:()=>a(r.id),onRemove:c},r.id))}),(0,X.jsx)(Ie,{runners:t}),i===null?null:(0,X.jsx)(xe,{open:!0,onOpenChange:e=>!e&&a(null),providers:e.profileCapableProviders,initialProvider:i},i),(0,X.jsx)(P,{open:s!==null,onOpenChange:e=>!e&&c(null),children:(0,X.jsxs)(G,{"data-slot":`accounts-remove-confirm`,children:[(0,X.jsxs)(V,{children:[(0,X.jsxs)(K,{children:[`Remove “`,s?.label,`”?`]}),(0,X.jsxs)(ce,{children:[`This only forgets the account. Nothing in `,s?.configDir??`this account’s folder`,` is deleted — not your login, not your sessions. Projects using it fall back to the default account, and tasks that ran under it can no longer be resumed from here.`]})]}),(0,X.jsxs)(U,{children:[(0,X.jsx)(le,{children:`Cancel`}),(0,X.jsx)(H,{"data-action":`accounts-remove-confirm`,disabled:l.isPending,onClick:()=>{let e=s;e&&l.mutate(e.id,{onSuccess:()=>{c(null),w(`Removed ${e.label}`)},onError:e=>w(e.message,{tone:`danger`})})},children:`Remove`})]})]})})]})}function Me({entry:e,check:t}){return t===void 0?(0,X.jsx)(`span`,{"data-slot":`agent-installed`,children:`Checking CLI…`}):t.available?(0,X.jsxs)(`span`,{className:`whitespace-nowrap`,children:[(0,X.jsx)(`span`,{"data-slot":`agent-installed`,children:W(t.version)?`CLI simulated`:`CLI installed`}),t.version?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(`span`,{"aria-hidden":`true`,className:`settings-agent-summary-sep`,children:`·`}),(0,X.jsx)(Ne,{version:t.version})]}):null]}):(0,X.jsxs)(`span`,{"data-slot":`agent-installed`,children:[`CLI not installed`,e.installHint?(0,X.jsxs)(X.Fragment,{children:[` — `,(0,X.jsx)(`code`,{className:`break-all`,children:e.installHint})]}):null]})}function Ne({version:e}){return W(e)?(0,X.jsx)(`span`,{"data-slot":`agent-version`,"data-dry-run":``,title:e,className:`rounded-full border border-border bg-muted px-2 py-0.5 text-xs font-medium text-muted-foreground`,children:R.label}):(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(`span`,{className:`sr-only`,children:`, version `}),(0,X.jsx)(`span`,{"data-slot":`agent-version`,className:`text-muted-foreground`,children:e})]})}function Pe({items:e}){let t=e.filter(e=>e!=null&&e!==!1);return t.length===0?null:(0,X.jsx)(`p`,{"data-slot":`agent-summary`,className:`settings-agent-summary`,children:t.map((e,t)=>(0,X.jsxs)(`span`,{className:`settings-agent-summary-item`,children:[t>0?(0,X.jsx)(`span`,{"aria-hidden":`true`,className:`settings-agent-summary-sep`,children:`·`}):null,e]},t))})}function Q({titleId:e,title:t,summary:n,actions:r,actionsSlot:i}){return(0,X.jsxs)(`div`,{"data-slot":`agent-head`,className:`settings-agent-head`,children:[(0,X.jsxs)(`div`,{className:`settings-agent-heading`,children:[(0,X.jsx)(`h3`,{id:e,className:`settings-account-provider-title`,children:t}),(0,X.jsx)(Pe,{items:n})]}),r?(0,X.jsx)(`div`,{"data-slot":i,className:`settings-account-actions`,children:r}):null]})}function Fe({entry:e,check:t,settingsAdmin:n,runners:r,editable:i,accounts:a,canCarryAccounts:o,onAdd:s,onRemove:c}){let l=e.id,u=e.displayName,d=e.managedInstall===!0&&n,f=a.filter(e=>e.isDefault).length,p=`${M(l)}-title`,m=i&&o?(0,X.jsx)(k,{type:`button`,variant:`outline`,size:`sm`,"data-action":`accounts-add`,"data-provider":l,onClick:s,children:`Add account`}):null,h={titleId:p,title:u,facts:[d?null:(0,X.jsx)(Me,{entry:e,check:t}),i||a.length>0?(0,X.jsxs)(`span`,{className:`settings-account-count`,title:`${f} discovered, ${a.length-f} added`,children:[a.length,` `,a.length===1?`account`:`accounts`]}):null],addButton:m},[g,..._]=a;return(0,X.jsxs)(`section`,{id:M(l),tabIndex:-1,"aria-labelledby":p,"data-slot":`accounts-provider`,"data-provider":l,className:`settings-agent-card flex flex-col rounded-lg border border-border bg-card`,children:[g===void 0?(0,X.jsx)(Q,{titleId:p,title:u,summary:h.facts,actions:m,actionsSlot:`accounts-actions`}):null,d?(0,X.jsx)(De,{runner:l}):null,g===void 0?null:(0,X.jsxs)(`ul`,{className:`settings-agent-accounts`,children:[(0,X.jsx)($,{account:g,runners:r,editable:i,onRemove:()=>c(g),agent:h}),_.map(e=>(0,X.jsx)($,{account:e,runners:r,editable:i,onRemove:()=>c(e)},e.id))]}),i&&!o?(0,X.jsxs)(`p`,{"data-slot":`accounts-single-only`,className:`settings-agent-note`,children:[`One account only: `,u,` keeps its login outside its config folder, so a second folder would change settings without changing who is billed.`]}):!i&&a.length===0&&e.browserLogin?(0,X.jsxs)(`div`,{"data-slot":`hosted-sign-in`,className:`settings-agent-note flex flex-wrap items-center gap-3`,children:[(0,X.jsx)(`span`,{children:`Discovered account`}),(0,X.jsx)(J,{provider:l,label:u})]}):null]})}function Ie({runners:e}){let[t,n]=(0,Y.useState)(null),r=y(),i=u(),a=l(h(e)),o=ve(),s=he(),c=e=>o.mutate(e,{onSuccess:s.flash});if(r.data===void 0)return null;let d=ue([],e),f=r.data.agentDefaults.runner??`claude`,m=p(t??f,h(e))??t??f,g=r.data.agentDefaults.models??{};return(0,X.jsxs)(`section`,{"data-slot":`accounts-defaults`,className:`flex flex-col gap-3 rounded-lg border border-border bg-card/40 p-3.5`,children:[(0,X.jsxs)(`div`,{children:[(0,X.jsx)(`h3`,{className:`text-[13px] font-semibold text-foreground`,children:`Defaults for new projects`}),(0,X.jsxs)(`p`,{className:`text-[13px] text-muted-foreground`,children:[`What a project runs when it has not chosen for itself — set once instead of per repository. A project that has chosen keeps its own. `,(0,X.jsx)(ge,{saved:s.saved})]})]}),(0,X.jsx)(de,{rows:d,runner:f,accountFor:()=>null,providerStatus:i,disabled:o.isPending,onPick:e=>{e!==f&&c({agentDefaults:{runner:e}})}}),(0,X.jsxs)(`div`,{className:`settings-account-models flex flex-col gap-2`,children:[(0,X.jsxs)(`label`,{className:`settings-model-agent-choice`,children:[(0,X.jsx)(`span`,{children:`Default model for`}),(0,X.jsx)(q,{"aria-label":`Model agent`,className:`settings-select max-w-full`,value:m,onValueChange:e=>n(e),options:e.runners.map(e=>({value:e.id,label:e.displayName}))})]}),e.runners.filter(e=>e.id===m).map(t=>(0,X.jsxs)(`label`,{className:`settings-account-model flex flex-wrap items-center gap-3`,children:[(0,X.jsx)(D,{className:`size-4 text-accent-icon shrink-0`}),(0,X.jsx)(`span`,{className:`w-28 shrink-0 text-xs text-muted-foreground`,children:t.displayName}),(0,X.jsx)(q,{"aria-label":`Default model for ${t.pickerLabel}`,"data-slot":`accounts-default-model`,"data-runner":t.id,value:g[t.id]??``,disabled:o.isPending,onValueChange:e=>c({agentDefaults:{models:{[t.id]:e||null}}}),className:`settings-select w-64 max-w-full bg-card`,options:[...B(t.id,e,a[t.id]?.data,[g[t.id]]).map(e=>({value:e.id,label:e.label})),...Le(t.id,e,a[t.id])]})]},t.id))]})]})}function Le(e,t,n){let r=I(e,t,n);return r?[{value:z,label:r,disabled:!0}]:[]}function Re({account:e,runners:t,status:n,editable:r}){let i=c();return(0,X.jsxs)(X.Fragment,{children:[n&&n.status!==`connected`&&g(t,e.provider)?.browserLogin?(0,X.jsx)(J,{provider:e.provider,...e.isDefault?{}:{profileId:e.id},label:e.label}):null,r&&n&&n.status!==`connected`&&g(t,e.provider)?.terminalLogin!==!1?(0,X.jsx)(k,{type:`button`,size:`sm`,"data-action":`account-connect`,disabled:i.isPending,onClick:()=>i.mutate({provider:e.provider,...e.isDefault?{}:{profileId:e.id}},{onSuccess:e=>w(e.opened?`Finish signing in in the terminal, then Check again.`:`This account is already connected.`),onError:e=>w(e instanceof S&&e.command?`${e.message} — run: ${e.command}`:e.message,{tone:`danger`})}),children:`Connect`}):null]})}function ze(e,t,n,r){return!n||n.requiresAccountHome===!1?null:e.exists?!e.looksValid&&e.configDir?{slot:`account-unrecognised`,label:`Unrecognized folder`,guidance:`This folder does not look like ${v(t,e.provider)} config yet.`}:null:{slot:`account-missing`,label:`Not initialized`,guidance:r?n.status===`connected`?`Folder not created yet. Use Check again to refresh.`:`Folder not created yet. Connect will make it.`:`Folder not created on the host yet.`}}function $({account:e,runners:t,editable:n,onRemove:r,agent:i}){let o=ee(e),s=a(),c=_e(),l=_(o,e.status===void 0),u=e.status??l.data?.status,d=u?Oe[u.status]:void 0,f=ze(e,t,u,n),p=f?(0,X.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,title:d?`Sign-in: ${d.label}`:void 0,children:[(0,X.jsx)(j,{tone:`pending`}),(0,X.jsx)(`span`,{"data-slot":f.slot,className:`text-foreground`,children:f.label})]}):(0,X.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,X.jsx)(j,{tone:d?.tone??`neutral`,pulse:d===void 0}),(0,X.jsx)(`span`,{"data-slot":`account-status`,className:`text-foreground`,children:d?.label??`Checking…`})]}),m=(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Re,{account:e,runners:t,status:u,editable:n}),(0,X.jsx)(k,{type:`button`,variant:`outline`,size:`sm`,"data-action":`account-recheck`,disabled:s.isPending,title:`Re-probe this account's login now, instead of waiting for the cached answer`,onClick:()=>s.mutate(o,{onError:e=>w(e.message,{tone:`danger`})}),children:`Check again`})]}),h=(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(`span`,{className:`settings-account-label`,children:e.label}),e.isDefault?(0,X.jsx)(ne,{variant:`outline`,"data-slot":`account-discovered`,className:`shrink-0 text-xs font-normal text-muted-foreground`,children:`discovered`}):null]}),g=e.configDir?(0,X.jsx)(`span`,{"data-slot":`account-path`,className:`settings-account-path`,title:e.path,children:Z(e.configDir,c)}):null,v=f?(0,X.jsx)(`p`,{"data-slot":`account-folder-guidance`,className:`settings-account-hint`,children:f.guidance}):null,y=u?.hint?(0,X.jsx)(`p`,{className:`settings-account-hint`,children:u.hint}):null,b=n&&!e.isDefault?(0,X.jsx)(Be,{account:e,onRemove:r}):null,x=(0,X.jsxs)(`div`,{className:`settings-account-readout`,children:[(0,X.jsxs)(`div`,{className:`settings-account-meta-line`,children:[h,p]}),g,v,y]});return i?(0,X.jsxs)(`li`,{"data-slot":`account-row`,"data-account":e.id,"data-primary":``,className:`settings-account-primary`,children:[(0,X.jsx)(Q,{titleId:i.titleId,title:i.title,summary:i.facts,actions:(0,X.jsxs)(X.Fragment,{children:[m,i.addButton]}),actionsSlot:`account-actions`}),(0,X.jsxs)(`div`,{className:`settings-account-meta`,children:[x,b?(0,X.jsx)(`div`,{className:`settings-account-actions`,children:b}):null]})]}):(0,X.jsxs)(`li`,{"data-slot":`account-row`,"data-account":e.id,className:`settings-account-line`,children:[x,(0,X.jsxs)(`div`,{"data-slot":`account-actions`,className:`settings-account-actions`,children:[m,b]})]})}function Be({account:e,onRemove:t}){let[n,r]=(0,Y.useState)(!1),[i,a]=(0,Y.useState)(e.label),o=f();return(0,X.jsx)(X.Fragment,{children:e.isDefault?null:(0,X.jsx)(`div`,{"data-slot":`account-manage`,className:`settings-account-management`,children:n?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(`input`,{type:`text`,autoFocus:!0,"aria-label":`Name for ${e.label}`,"data-slot":`account-rename-input`,value:i,onChange:e=>a(e.target.value),className:`w-48 rounded-md border border-input bg-card px-2 py-1 text-xs outline-none focus-visible:border-ring`}),(0,X.jsx)(k,{type:`button`,variant:`outline`,size:`sm`,"data-action":`account-rename-save`,disabled:o.isPending||i.trim()===``||i.trim()===e.label,onClick:()=>o.mutate({id:e.id,label:i.trim()},{onSuccess:()=>r(!1),onError:e=>w(e.message,{tone:`danger`})}),children:`Save`}),(0,X.jsx)(k,{type:`button`,variant:`ghost`,size:`sm`,onClick:()=>{a(e.label),r(!1)},children:`Cancel`})]}):(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(k,{type:`button`,variant:`outline`,size:`sm`,"data-action":`account-rename`,onClick:()=>r(!0),children:`Rename`}),(0,X.jsx)(k,{type:`button`,variant:`outline`,size:`sm`,"data-action":`account-remove`,onClick:t,children:`Remove account`}),(0,X.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Renaming changes what Squawk calls this account, not its folder.`})]})})})}export{ke as GlobalAgentsSection};
|
|
1
|
+
import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{i as t,t as n}from"./react-runtime-CCIEwYL0.js";import{B as r,F as i,G as a,J as o,M as s,P as c,St as l,W as u,_r as d,bt as f,et as p,ft as m,gt as h,ht as g,j as _,pt as v,rt as y}from"./queries-DD_9iITj.js";import{An as b,Bi as x,Cn as S,Zi as C,a as w,qn as ee,wn as T}from"./project-scope-context-DNrHbqd2.js";import{p as E}from"./chunk-KS7C4IRE-BdLLx37K.js";import{b as D}from"./design-icons-QbNMZniQ.js";import{t as O}from"./createLucideIcon-BHp8sXmF.js";import{t as te}from"./folder-browser-TNWat5kt.js";import{t as k}from"./button-BV_AiLj2.js";import{t as ne}from"./badge-DAnkqD7i.js";import{a as re,i as ie,o as ae,r as oe,s as se,t as A}from"./dialog-DKr-j9S6.js";import{t as j}from"./status-dot-Da1M54kK.js";import{n as M}from"./agents-settings-path-7X6_cvUg.js";import{t as N}from"./centered-state-N8vWM_Hw.js";import{$t as P,Hn as F,I,Mn as L,On as R,P as z,R as B,an as V,en as H,in as U,jn as W,nn as G,on as K,rn as ce,tn as le}from"./index-C3kap2_j.js";import{t as q}from"./option-select-BxTmKg8G.js";import{n as J,r as ue,t as de}from"./settings-agent-picker-an3ysM1B.js";import{n as fe,r as pe,t as me}from"./remote-settings-notice-CUqI2DdF.js";import{n as he,t as ge}from"./save-cue-CpHgT93o.js";import{t as _e}from"./use-path-bases-AV9YYh2B.js";import{t as ve}from"./use-workspace-config-save-02qlUK8v.js";var ye=O(`id-card`,[[`path`,{d:`M16 10h2`,key:`8sgtl7`}],[`path`,{d:`M16 14h2`,key:`epxaof`}],[`path`,{d:`M6.17 15a3 3 0 0 1 5.66 0`,key:`n6f512`}],[`circle`,{cx:`9`,cy:`11`,r:`2`,key:`yxgjnd`}],[`rect`,{x:`2`,y:`5`,width:`20`,height:`14`,rx:`2`,key:`qneu4z`}]]),Y=e(t(),1),X=n(),be=`~/.claude-second`;function xe({open:e,onOpenChange:t,providers:n,initialProvider:r}){let a=f().data,[o,s]=(0,Y.useState)(null),[c,l]=(0,Y.useState)(null),[u,d]=(0,Y.useState)(r??n[0]??`claude`),[p,m]=(0,Y.useState)(``),[h,_]=(0,Y.useState)(``),[y,b]=(0,Y.useState)(!1),x=i(),S=h.trim();return(0,X.jsx)(A,{open:e,onOpenChange:t,children:(0,X.jsxs)(oe,{"data-slot":`add-account-dialog`,className:`sm:max-w-lg`,children:[(0,X.jsxs)(ae,{children:[(0,X.jsx)(se,{children:`Add agent account`}),(0,X.jsx)(ie,{children:`The config folder this account uses. It does not have to exist yet — Connect signs in and the CLI creates it.`})]}),(0,X.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,X.jsxs)(`label`,{className:`flex items-center gap-2 text-[13px]`,children:[(0,X.jsx)(`span`,{className:`text-muted-foreground`,children:`Agent`}),(0,X.jsx)(q,{"aria-label":`Agent`,"data-slot":`add-account-provider`,value:u,onValueChange:e=>d(e),className:`settings-select max-w-full bg-card text-[13px]`,options:n.map(e=>({value:e,label:v(a,e)}))})]}),(0,X.jsxs)(`label`,{className:`flex min-w-0 flex-1 items-center gap-2 text-[13px]`,children:[(0,X.jsx)(`span`,{className:`shrink-0 text-muted-foreground`,children:`Name`}),(0,X.jsx)(`input`,{type:`text`,"aria-label":`Account name`,"data-slot":`add-account-label`,value:p,placeholder:`Work`,onChange:e=>m(e.target.value),className:`min-w-0 flex-1 rounded-md border border-input bg-card px-2 py-1 text-[13px] outline-none focus-visible:border-ring`})]})]}),(0,X.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,X.jsxs)(`label`,{className:`flex min-w-0 items-center gap-2 text-[13px]`,children:[(0,X.jsx)(`span`,{className:`shrink-0 text-muted-foreground`,children:`Folder`}),(0,X.jsx)(`input`,{type:`text`,spellCheck:!1,autoComplete:`off`,"aria-label":`Config folder`,"data-slot":`add-account-dir`,value:h,placeholder:g(a,u)?.accountFolderExample??be,onChange:e=>{_(e.target.value),l(null),x.reset()},className:`min-w-0 flex-1 rounded-md border border-input bg-card px-2 py-1 font-mono text-[13px] outline-none focus-visible:border-ring`}),(0,X.jsx)(k,{type:`button`,variant:`ghost`,size:`sm`,"data-action":`add-account-browse`,"aria-expanded":y,onClick:()=>b(e=>!e),children:y?`Hide folders`:`Browse…`})]}),(0,X.jsxs)(`p`,{className:`text-xs text-soft-foreground`,children:[`A `,(0,X.jsx)(`code`,{children:`~`}),` is kept as written and expanded when the agent runs.`]})]}),y?(0,X.jsx)(te,{path:o,selected:c,onSelect:e=>{l(e),_(e.path),x.reset()},onEnter:e=>{s(e),l(null),x.reset()},showHidden:!0,emptyHint:`No subfolders here — pick this folder by typing its path above.`}):null,x.isError?(0,X.jsx)(`p`,{"data-slot":`add-account-error`,className:`min-w-0 break-words text-[13px] text-danger`,children:x.error instanceof Error?x.error.message:`could not add that folder`}):null,(0,X.jsxs)(re,{className:`min-w-0 sm:items-center sm:justify-end`,children:[(0,X.jsx)(k,{variant:`outline`,onClick:()=>t(!1),children:`Cancel`}),(0,X.jsx)(k,{"data-slot":`add-account-confirm`,disabled:S===``||x.isPending,onClick:()=>{S===``||x.isPending||x.mutate({provider:u,configDir:S,...p.trim()?{label:p.trim()}:{}},{onSuccess:()=>{t(!1),m(``),_(``),l(null),b(!1),w(`Account added — use Connect to sign in`)}})},children:x.isPending?`Adding…`:`Add account`})]})]})})}async function Se(e){return b(await T.api.v1[`runner-install`][`:runner`].$get({param:{runner:e}}),`/runner-install/:runner`)}async function Ce(e,t){return b(await T.api.v1[`runner-install`][`:runner`].$post({param:{runner:e},json:{action:t}}),`/runner-install/:runner`)}var we={idle:``,checking:`Checking for updates…`,downloading:`Downloading CLI…`,verifying:`Verifying CLI…`,extracting:`Extracting CLI…`,activating:`Activating CLI…`,removing:`Removing CLI…`,failed:``};function Te(e){let t=r().data?.capabilities?.settingsAdmin===!0,n=C(),i=[`runner-install`,e],a=x({queryKey:i,queryFn:()=>Se(e),enabled:t,retry:!1,refetchInterval:e=>{if(e.state.error)return!1;let t=e.state.data?.phase;return t&&t!==`idle`&&t!==`failed`?1e3:6e4}}),o=d({mutationFn:t=>Ce(e,t),retry:!1,onSuccess:e=>{n.setQueryData(i,e)}}),s=a.data;return{allowed:t,data:s,busy:o.isPending||!!s&&s.phase!==`idle`&&s.phase!==`failed`,error:o.error?.message??a.error?.message??s?.error,action:o,status:a}}function Ee({state:e}){let{data:t,busy:n,action:r,status:i}=e;if(t?.supported===!1)return(0,X.jsx)(`p`,{children:`This host is not supported by the CLI installer.`});let a=!!t?.installedVersion;return(0,X.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,X.jsx)(k,{className:`active:opacity-80`,disabled:n||!t,onClick:()=>r.mutate(a?`update`:`install`),children:a?`Update CLI`:`Install CLI`}),a?(0,X.jsx)(k,{className:`active:opacity-80`,variant:`outline`,disabled:n,onClick:()=>r.mutate(`remove`),children:`Remove CLI`}):null,(0,X.jsx)(k,{className:`active:opacity-80`,variant:`outline`,disabled:n,onClick:()=>{i.isError?i.refetch():r.mutate(`check`)},children:`Check for updates`})]})}function De({runner:e}){let t=Te(e),{allowed:n,data:r,busy:i,error:a}=t;return n?(0,X.jsxs)(`section`,{"aria-label":`CLI installation`,className:`grid gap-3`,children:[(0,X.jsxs)(`p`,{role:`status`,className:`text-sm text-muted-foreground`,children:[r?.installedVersion?`Installed CLI ${r.installedVersion}`:`CLI not installed`,r?.latestVersion?` · Latest ${r.latestVersion}`:``,i&&r?` · ${we[r.phase]}`:``]}),a?(0,X.jsx)(`p`,{role:`alert`,className:`text-sm text-destructive`,children:a}):null,(0,X.jsx)(Ee,{state:t}),r?.installedVersion?(0,X.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Removing the CLI keeps account data and lets running tasks finish.`}):null]}):null}var Oe={connected:L(`connected`),disconnected:L(`disconnected`),"not-installed":L(`not-installed`),unknown:L(`unknown`)};function ke(){let e=s(),t=f();if(e.isPending||t.isPending)return(0,X.jsx)(`p`,{"data-slot":`accounts-loading`,className:`p-4 text-[13px] text-soft-foreground md:p-6`,children:`Loading agents…`});let n=e.error??t.error;return n?(0,X.jsx)(N,{icon:(0,X.jsx)(ye,{}),tone:`danger`,title:`Agents did not load`,subtitle:n.message,heading:`h2`}):(0,X.jsx)(je,{data:e.data,runners:t.data})}function Z(e,t){let n=F(e,t),r=n.split(`/`);return r.length>4?`…/${r.slice(-3).join(`/`)}`:n}function Ae(){let{hash:e}=E();(0,Y.useEffect)(()=>{if(!e)return;let t=document.getElementById(decodeURIComponent(e.slice(1)));t&&(t.scrollIntoView?.({block:`start`}),t.focus({preventScroll:!0}))},[e])}function je({data:e,runners:t}){let n=r(),[i,a]=(0,Y.useState)(null),[s,c]=(0,Y.useState)(null),l=o();return Ae(),pe(),(0,X.jsxs)(`div`,{"data-slot":`accounts-section`,className:`mx-auto flex w-full max-w-2xl flex-col gap-5 p-4 pb-[calc(90px+env(safe-area-inset-bottom))] md:p-6 md:pb-6`,children:[(0,X.jsx)(fe,{risk:`Agent accounts run each CLI with the configured host folder`}),e.editable?null:(0,X.jsxs)(`p`,{"data-slot":`accounts-hosted`,className:`text-[13px] text-muted-foreground`,children:[`Agent accounts are read-only on this remote cockpit. Run`,` `,(0,X.jsx)(`code`,{children:me}),` on the host to add, edit, or sign in to accounts here.`]}),(0,X.jsx)(`div`,{"data-slot":`agent-cards`,className:`flex flex-col gap-3`,children:t.runners.map(r=>(0,X.jsx)(Fe,{entry:r,check:n.data?.checks?.find(e=>e.name===r.id),settingsAdmin:n.data?.capabilities?.settingsAdmin===!0,runners:t,editable:e.editable,accounts:e.profiles.filter(e=>e.provider===r.id),canCarryAccounts:e.profileCapableProviders.includes(r.id),onAdd:()=>a(r.id),onRemove:c},r.id))}),(0,X.jsx)(Ie,{runners:t}),i===null?null:(0,X.jsx)(xe,{open:!0,onOpenChange:e=>!e&&a(null),providers:e.profileCapableProviders,initialProvider:i},i),(0,X.jsx)(P,{open:s!==null,onOpenChange:e=>!e&&c(null),children:(0,X.jsxs)(G,{"data-slot":`accounts-remove-confirm`,children:[(0,X.jsxs)(V,{children:[(0,X.jsxs)(K,{children:[`Remove “`,s?.label,`”?`]}),(0,X.jsxs)(ce,{children:[`This only forgets the account. Nothing in `,s?.configDir??`this account’s folder`,` is deleted — not your login, not your sessions. Projects using it fall back to the default account, and tasks that ran under it can no longer be resumed from here.`]})]}),(0,X.jsxs)(U,{children:[(0,X.jsx)(le,{children:`Cancel`}),(0,X.jsx)(H,{"data-action":`accounts-remove-confirm`,disabled:l.isPending,onClick:()=>{let e=s;e&&l.mutate(e.id,{onSuccess:()=>{c(null),w(`Removed ${e.label}`)},onError:e=>w(e.message,{tone:`danger`})})},children:`Remove`})]})]})})]})}function Me({entry:e,check:t}){return t===void 0?(0,X.jsx)(`span`,{"data-slot":`agent-installed`,children:`Checking CLI…`}):t.available?(0,X.jsxs)(`span`,{className:`whitespace-nowrap`,children:[(0,X.jsx)(`span`,{"data-slot":`agent-installed`,children:W(t.version)?`CLI simulated`:`CLI installed`}),t.version?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(`span`,{"aria-hidden":`true`,className:`settings-agent-summary-sep`,children:`·`}),(0,X.jsx)(Ne,{version:t.version})]}):null]}):(0,X.jsxs)(`span`,{"data-slot":`agent-installed`,children:[`CLI not installed`,e.installHint?(0,X.jsxs)(X.Fragment,{children:[` — `,(0,X.jsx)(`code`,{className:`break-all`,children:e.installHint})]}):null]})}function Ne({version:e}){return W(e)?(0,X.jsx)(`span`,{"data-slot":`agent-version`,"data-dry-run":``,title:e,className:`rounded-full border border-border bg-muted px-2 py-0.5 text-xs font-medium text-muted-foreground`,children:R.label}):(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(`span`,{className:`sr-only`,children:`, version `}),(0,X.jsx)(`span`,{"data-slot":`agent-version`,className:`text-muted-foreground`,children:e})]})}function Pe({items:e}){let t=e.filter(e=>e!=null&&e!==!1);return t.length===0?null:(0,X.jsx)(`p`,{"data-slot":`agent-summary`,className:`settings-agent-summary`,children:t.map((e,t)=>(0,X.jsxs)(`span`,{className:`settings-agent-summary-item`,children:[t>0?(0,X.jsx)(`span`,{"aria-hidden":`true`,className:`settings-agent-summary-sep`,children:`·`}):null,e]},t))})}function Q({titleId:e,title:t,summary:n,actions:r,actionsSlot:i}){return(0,X.jsxs)(`div`,{"data-slot":`agent-head`,className:`settings-agent-head`,children:[(0,X.jsxs)(`div`,{className:`settings-agent-heading`,children:[(0,X.jsx)(`h3`,{id:e,className:`settings-account-provider-title`,children:t}),(0,X.jsx)(Pe,{items:n})]}),r?(0,X.jsx)(`div`,{"data-slot":i,className:`settings-account-actions`,children:r}):null]})}function Fe({entry:e,check:t,settingsAdmin:n,runners:r,editable:i,accounts:a,canCarryAccounts:o,onAdd:s,onRemove:c}){let l=e.id,u=e.displayName,d=e.managedInstall===!0&&n,f=a.filter(e=>e.isDefault).length,p=`${M(l)}-title`,m=i&&o?(0,X.jsx)(k,{type:`button`,variant:`outline`,size:`sm`,"data-action":`accounts-add`,"data-provider":l,onClick:s,children:`Add account`}):null,h={titleId:p,title:u,facts:[d?null:(0,X.jsx)(Me,{entry:e,check:t}),i||a.length>0?(0,X.jsxs)(`span`,{className:`settings-account-count`,title:`${f} discovered, ${a.length-f} added`,children:[a.length,` `,a.length===1?`account`:`accounts`]}):null],addButton:m},[g,..._]=a;return(0,X.jsxs)(`section`,{id:M(l),tabIndex:-1,"aria-labelledby":p,"data-slot":`accounts-provider`,"data-provider":l,className:`settings-agent-card flex flex-col rounded-lg border border-border bg-card`,children:[g===void 0?(0,X.jsx)(Q,{titleId:p,title:u,summary:h.facts,actions:m,actionsSlot:`accounts-actions`}):null,d?(0,X.jsx)(De,{runner:l}):null,g===void 0?null:(0,X.jsxs)(`ul`,{className:`settings-agent-accounts`,children:[(0,X.jsx)($,{account:g,runners:r,editable:i,onRemove:()=>c(g),agent:h}),_.map(e=>(0,X.jsx)($,{account:e,runners:r,editable:i,onRemove:()=>c(e)},e.id))]}),i&&!o?(0,X.jsxs)(`p`,{"data-slot":`accounts-single-only`,className:`settings-agent-note`,children:[`One account only: `,u,` keeps its login outside its config folder, so a second folder would change settings without changing who is billed.`]}):!i&&a.length===0&&e.browserLogin?(0,X.jsxs)(`div`,{"data-slot":`hosted-sign-in`,className:`settings-agent-note flex flex-wrap items-center gap-3`,children:[(0,X.jsx)(`span`,{children:`Discovered account`}),(0,X.jsx)(J,{provider:l,label:u})]}):null]})}function Ie({runners:e}){let[t,n]=(0,Y.useState)(null),r=y(),i=u(),a=l(h(e)),o=ve(),s=he(),c=e=>o.mutate(e,{onSuccess:s.flash});if(r.data===void 0)return null;let d=ue([],e),f=r.data.agentDefaults.runner??`claude`,p=m(t??f,h(e))??t??f,g=r.data.agentDefaults.models??{};return(0,X.jsxs)(`section`,{"data-slot":`accounts-defaults`,className:`flex flex-col gap-3 rounded-lg border border-border bg-card/40 p-3.5`,children:[(0,X.jsxs)(`div`,{children:[(0,X.jsx)(`h3`,{className:`text-[13px] font-semibold text-foreground`,children:`Defaults for new projects`}),(0,X.jsxs)(`p`,{className:`text-[13px] text-muted-foreground`,children:[`What a project runs when it has not chosen for itself — set once instead of per repository. A project that has chosen keeps its own. `,(0,X.jsx)(ge,{saved:s.saved})]})]}),(0,X.jsx)(de,{rows:d,runner:f,accountFor:()=>null,providerStatus:i,disabled:o.isPending,onPick:e=>{e!==f&&c({agentDefaults:{runner:e}})}}),(0,X.jsxs)(`div`,{className:`settings-account-models flex flex-col gap-2`,children:[(0,X.jsxs)(`label`,{className:`settings-model-agent-choice`,children:[(0,X.jsx)(`span`,{children:`Default model for`}),(0,X.jsx)(q,{"aria-label":`Model agent`,className:`settings-select max-w-full`,value:p,onValueChange:e=>n(e),options:e.runners.map(e=>({value:e.id,label:e.displayName}))})]}),e.runners.filter(e=>e.id===p).map(t=>(0,X.jsxs)(`label`,{className:`settings-account-model flex flex-wrap items-center gap-3`,children:[(0,X.jsx)(D,{className:`size-4 text-accent-icon shrink-0`}),(0,X.jsx)(`span`,{className:`w-28 shrink-0 text-xs text-muted-foreground`,children:t.displayName}),(0,X.jsx)(q,{"aria-label":`Default model for ${t.pickerLabel}`,"data-slot":`accounts-default-model`,"data-runner":t.id,value:g[t.id]??``,disabled:o.isPending,onValueChange:e=>c({agentDefaults:{models:{[t.id]:e||null}}}),className:`settings-select w-64 max-w-full bg-card`,options:[...B(t.id,e,a[t.id]?.data,[g[t.id]]).map(e=>({value:e.id,label:e.label})),...Le(t.id,e,a[t.id])]})]},t.id))]})]})}function Le(e,t,n){let r=I(e,t,n);return r?[{value:z,label:r,disabled:!0}]:[]}function Re({account:e,runners:t,status:n,editable:r}){let i=c();return(0,X.jsxs)(X.Fragment,{children:[n&&n.status!==`connected`&&g(t,e.provider)?.browserLogin?(0,X.jsx)(J,{provider:e.provider,...e.isDefault?{}:{profileId:e.id},label:e.label}):null,r&&n&&n.status!==`connected`&&g(t,e.provider)?.terminalLogin!==!1?(0,X.jsx)(k,{type:`button`,size:`sm`,"data-action":`account-connect`,disabled:i.isPending,onClick:()=>i.mutate({provider:e.provider,...e.isDefault?{}:{profileId:e.id}},{onSuccess:e=>w(e.opened?`Finish signing in in the terminal, then Check again.`:`This account is already connected.`),onError:e=>w(e instanceof S&&e.command?`${e.message} — run: ${e.command}`:e.message,{tone:`danger`})}),children:`Connect`}):null]})}function ze(e,t,n,r){return!n||n.requiresAccountHome===!1?null:e.exists?!e.looksValid&&e.configDir?{slot:`account-unrecognised`,label:`Unrecognized folder`,guidance:`This folder does not look like ${v(t,e.provider)} config yet.`}:null:{slot:`account-missing`,label:`Not initialized`,guidance:r?n.status===`connected`?`Folder not created yet. Use Check again to refresh.`:`Folder not created yet. Connect will make it.`:`Folder not created on the host yet.`}}function $({account:e,runners:t,editable:n,onRemove:r,agent:i}){let o=ee(e),s=a(),c=_e(),l=_(o,e.status===void 0),u=e.status??l.data?.status,d=u?Oe[u.status]:void 0,f=ze(e,t,u,n),p=f?(0,X.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,title:d?`Sign-in: ${d.label}`:void 0,children:[(0,X.jsx)(j,{tone:`pending`}),(0,X.jsx)(`span`,{"data-slot":f.slot,className:`text-foreground`,children:f.label})]}):(0,X.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,X.jsx)(j,{tone:d?.tone??`neutral`,pulse:d===void 0}),(0,X.jsx)(`span`,{"data-slot":`account-status`,className:`text-foreground`,children:d?.label??`Checking…`})]}),m=(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Re,{account:e,runners:t,status:u,editable:n}),(0,X.jsx)(k,{type:`button`,variant:`outline`,size:`sm`,"data-action":`account-recheck`,disabled:s.isPending,title:`Re-probe this account's login now, instead of waiting for the cached answer`,onClick:()=>s.mutate(o,{onError:e=>w(e.message,{tone:`danger`})}),children:`Check again`})]}),h=(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(`span`,{className:`settings-account-label`,children:e.label}),e.isDefault?(0,X.jsx)(ne,{variant:`outline`,"data-slot":`account-discovered`,className:`shrink-0 text-xs font-normal text-muted-foreground`,children:`discovered`}):null]}),g=e.configDir?(0,X.jsx)(`span`,{"data-slot":`account-path`,className:`settings-account-path`,title:e.path,children:Z(e.configDir,c)}):null,v=f?(0,X.jsx)(`p`,{"data-slot":`account-folder-guidance`,className:`settings-account-hint`,children:f.guidance}):null,y=u?.hint?(0,X.jsx)(`p`,{className:`settings-account-hint`,children:u.hint}):null,b=n&&!e.isDefault?(0,X.jsx)(Be,{account:e,onRemove:r}):null,x=(0,X.jsxs)(`div`,{className:`settings-account-readout`,children:[(0,X.jsxs)(`div`,{className:`settings-account-meta-line`,children:[h,p]}),g,v,y]});return i?(0,X.jsxs)(`li`,{"data-slot":`account-row`,"data-account":e.id,"data-primary":``,className:`settings-account-primary`,children:[(0,X.jsx)(Q,{titleId:i.titleId,title:i.title,summary:i.facts,actions:(0,X.jsxs)(X.Fragment,{children:[m,i.addButton]}),actionsSlot:`account-actions`}),(0,X.jsxs)(`div`,{className:`settings-account-meta`,children:[x,b?(0,X.jsx)(`div`,{className:`settings-account-actions`,children:b}):null]})]}):(0,X.jsxs)(`li`,{"data-slot":`account-row`,"data-account":e.id,className:`settings-account-line`,children:[x,(0,X.jsxs)(`div`,{"data-slot":`account-actions`,className:`settings-account-actions`,children:[m,b]})]})}function Be({account:e,onRemove:t}){let[n,r]=(0,Y.useState)(!1),[i,a]=(0,Y.useState)(e.label),o=p();return(0,X.jsx)(X.Fragment,{children:e.isDefault?null:(0,X.jsx)(`div`,{"data-slot":`account-manage`,className:`settings-account-management`,children:n?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(`input`,{type:`text`,autoFocus:!0,"aria-label":`Name for ${e.label}`,"data-slot":`account-rename-input`,value:i,onChange:e=>a(e.target.value),className:`w-48 rounded-md border border-input bg-card px-2 py-1 text-xs outline-none focus-visible:border-ring`}),(0,X.jsx)(k,{type:`button`,variant:`outline`,size:`sm`,"data-action":`account-rename-save`,disabled:o.isPending||i.trim()===``||i.trim()===e.label,onClick:()=>o.mutate({id:e.id,label:i.trim()},{onSuccess:()=>r(!1),onError:e=>w(e.message,{tone:`danger`})}),children:`Save`}),(0,X.jsx)(k,{type:`button`,variant:`ghost`,size:`sm`,onClick:()=>{a(e.label),r(!1)},children:`Cancel`})]}):(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(k,{type:`button`,variant:`outline`,size:`sm`,"data-action":`account-rename`,onClick:()=>r(!0),children:`Rename`}),(0,X.jsx)(k,{type:`button`,variant:`outline`,size:`sm`,"data-action":`account-remove`,onClick:t,children:`Remove account`}),(0,X.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Renaming changes what Squawk calls this account, not its folder.`})]})})})}export{ke as GlobalAgentsSection};
|