@korso/shepherd-ui 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/ConnectAgent.js +29 -11
- package/dist/lib/index.js +240 -233
- package/dist/lib/styles.css +12 -5
- package/dist/selfhost/assets/{index-C78oV7tm.css → index-dBmCZSQx.css} +1 -1
- package/dist/selfhost/index.html +2 -2
- package/package.json +1 -1
- /package/dist/selfhost/assets/{index-B_B7vc7a.js → index--_PPE03M.js} +0 -0
|
@@ -7,17 +7,23 @@ const TOOLS = [
|
|
|
7
7
|
{ id: "claude", label: "Claude Code" },
|
|
8
8
|
{ id: "codex", label: "Codex" },
|
|
9
9
|
{ id: "pi", label: "Pi" },
|
|
10
|
+
{ id: "cursor", label: "Cursor" },
|
|
10
11
|
{ id: "generic", label: "Generic (JSON)" },
|
|
11
12
|
];
|
|
12
13
|
// The token placeholder shown before a real token is minted. Switching tools or
|
|
13
14
|
// reading the command pre-mint shows this, never a real secret.
|
|
14
15
|
const TOKEN_PLACEHOLDER = "shp_<paste-after-generating>";
|
|
15
|
-
//
|
|
16
|
-
//
|
|
16
|
+
// Tools with an `mcp add` CLI. Pi, Cursor, and generic get a JSON config
|
|
17
|
+
// block instead: Pi reads `~/.pi/agent/mcp.json` (or `.pi/mcp.json`), Cursor
|
|
18
|
+
// reads `~/.cursor/mcp.json` (or `.cursor/mcp.json`) — same `mcpServers` shape.
|
|
17
19
|
const CLI_PREFIX = {
|
|
18
20
|
claude: "claude mcp add shepherd -s user",
|
|
19
21
|
codex: "codex mcp add shepherd",
|
|
20
|
-
|
|
22
|
+
};
|
|
23
|
+
// `claude mcp add` takes `-e KEY=val`; `codex mcp add` only accepts `--env`.
|
|
24
|
+
const ENV_FLAG = {
|
|
25
|
+
claude: "-e",
|
|
26
|
+
codex: "--env",
|
|
21
27
|
};
|
|
22
28
|
// "created 3d ago · never used" / "created 3d ago · last used 2h ago" — helps
|
|
23
29
|
// an operator tell which tokens are still active before revoking one.
|
|
@@ -27,13 +33,18 @@ function tokenMeta(token, nowMs) {
|
|
|
27
33
|
return `${created} · ${used}`;
|
|
28
34
|
}
|
|
29
35
|
function installCommand(tool, hubUrl, token) {
|
|
30
|
-
if (tool === "generic") {
|
|
36
|
+
if (tool === "generic" || tool === "pi" || tool === "cursor") {
|
|
37
|
+
// PROGRAM names the tool in the presence feed; it defaults to
|
|
38
|
+
// `claude-code`, so JSON-config tools set it explicitly.
|
|
39
|
+
const env = { HUB_URL: hubUrl, SHEPHERD_TOKEN: token };
|
|
40
|
+
if (tool !== "generic")
|
|
41
|
+
env["PROGRAM"] = tool;
|
|
31
42
|
return JSON.stringify({
|
|
32
43
|
mcpServers: {
|
|
33
44
|
shepherd: {
|
|
34
45
|
command: "npx",
|
|
35
|
-
args: ["-y", "
|
|
36
|
-
env
|
|
46
|
+
args: ["-y", "--package=@korso/shepherd", "shepherd-mcp"],
|
|
47
|
+
env,
|
|
37
48
|
},
|
|
38
49
|
},
|
|
39
50
|
}, null, 2);
|
|
@@ -41,12 +52,19 @@ function installCommand(tool, hubUrl, token) {
|
|
|
41
52
|
// A single line with no shell-specific continuation character (`\` in
|
|
42
53
|
// bash/zsh, backtick in PowerShell, `^` in cmd) so the command pastes
|
|
43
54
|
// cleanly into any terminal.
|
|
44
|
-
|
|
55
|
+
const envFlag = ENV_FLAG[tool];
|
|
56
|
+
const parts = [
|
|
45
57
|
CLI_PREFIX[tool],
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
58
|
+
`${envFlag} HUB_URL=${hubUrl}`,
|
|
59
|
+
`${envFlag} SHEPHERD_TOKEN=${token}`,
|
|
60
|
+
];
|
|
61
|
+
// PROGRAM defaults to claude-code, so only non-Claude tools set it.
|
|
62
|
+
if (tool === "codex")
|
|
63
|
+
parts.push(`${envFlag} PROGRAM=codex`);
|
|
64
|
+
// NOTE: long `--package=` form on purpose — `claude mcp add` (CLI) fails to
|
|
65
|
+
// parse a bare `-p` after the `--` separator ("error: unknown option '-s'").
|
|
66
|
+
parts.push("-- npx -y --package=@korso/shepherd shepherd-mcp");
|
|
67
|
+
return parts.join(" ");
|
|
50
68
|
}
|
|
51
69
|
export function ConnectAgent({ hubUrl }) {
|
|
52
70
|
const client = useShepherdClient();
|
package/dist/lib/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { u as B, d as
|
|
2
|
-
import { E as
|
|
3
|
-
import { jsxs as n, jsx as e, Fragment as
|
|
4
|
-
import { useId as $, useRef as
|
|
5
|
-
function
|
|
6
|
-
return (
|
|
1
|
+
import { u as B, d as R, S as H, f as O, D as K } from "./Dashboard-D7tbhMwK.js";
|
|
2
|
+
import { E as he, a as me, c as pe } from "./Dashboard-D7tbhMwK.js";
|
|
3
|
+
import { jsxs as n, jsx as e, Fragment as P } from "react/jsx-runtime";
|
|
4
|
+
import { useId as $, useRef as U, useState as i, useEffect as A, useCallback as Y } from "react";
|
|
5
|
+
function F(t) {
|
|
6
|
+
return (t.trim()[0] ?? "?").toUpperCase();
|
|
7
7
|
}
|
|
8
8
|
function J({
|
|
9
|
-
workspaces:
|
|
10
|
-
selected:
|
|
9
|
+
workspaces: t,
|
|
10
|
+
selected: a,
|
|
11
11
|
onSelect: o,
|
|
12
|
-
onChanged:
|
|
12
|
+
onChanged: u,
|
|
13
13
|
onMembersChanged: l
|
|
14
14
|
}) {
|
|
15
|
-
const
|
|
15
|
+
const m = B(), c = $(), b = U(null), [r, y] = i(!1), [p, v] = i("menu"), [g, k] = i(""), [h, _] = i(""), [E, s] = i(null), [N, I] = i(!1);
|
|
16
16
|
function C() {
|
|
17
|
-
|
|
17
|
+
y(!1), v("menu"), k(""), _(""), s(null);
|
|
18
18
|
}
|
|
19
19
|
A(() => {
|
|
20
20
|
if (!r) return;
|
|
21
21
|
function d(j) {
|
|
22
|
-
|
|
22
|
+
b.current && !b.current.contains(j.target) && C();
|
|
23
23
|
}
|
|
24
24
|
function x(j) {
|
|
25
25
|
j.key === "Escape" && C();
|
|
@@ -28,34 +28,34 @@ function J({
|
|
|
28
28
|
document.removeEventListener("mousedown", d), document.removeEventListener("keydown", x);
|
|
29
29
|
};
|
|
30
30
|
}, [r]);
|
|
31
|
-
async function
|
|
31
|
+
async function S() {
|
|
32
32
|
if (!(!g.trim() || N)) {
|
|
33
33
|
I(!0), s(null);
|
|
34
34
|
try {
|
|
35
|
-
const d = await
|
|
36
|
-
o(d.id),
|
|
35
|
+
const d = await m.createWorkspace({ name: g.trim() });
|
|
36
|
+
o(d.id), u(), C();
|
|
37
37
|
} catch (d) {
|
|
38
|
-
s(
|
|
38
|
+
s(R(d));
|
|
39
39
|
} finally {
|
|
40
40
|
I(!1);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
async function
|
|
45
|
-
if (!(!
|
|
44
|
+
async function T() {
|
|
45
|
+
if (!(!h.trim() || N)) {
|
|
46
46
|
I(!0), s(null);
|
|
47
47
|
try {
|
|
48
|
-
const d = await
|
|
49
|
-
o(d.workspace.id),
|
|
48
|
+
const d = await m.redeemInvite(h.trim());
|
|
49
|
+
o(d.workspace.id), u(), l == null || l(), C();
|
|
50
50
|
} catch (d) {
|
|
51
|
-
s(
|
|
51
|
+
s(R(d));
|
|
52
52
|
} finally {
|
|
53
53
|
I(!1);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
const w =
|
|
58
|
-
return /* @__PURE__ */ n("div", { className: "ws-switcher", ref:
|
|
57
|
+
const w = a !== null, L = a ? a.name : "Get started";
|
|
58
|
+
return /* @__PURE__ */ n("div", { className: "ws-switcher", ref: b, children: [
|
|
59
59
|
/* @__PURE__ */ n(
|
|
60
60
|
"button",
|
|
61
61
|
{
|
|
@@ -64,19 +64,19 @@ function J({
|
|
|
64
64
|
"aria-haspopup": "menu",
|
|
65
65
|
"aria-expanded": r,
|
|
66
66
|
"aria-controls": r ? c : void 0,
|
|
67
|
-
onClick: () => r ? C() :
|
|
67
|
+
onClick: () => r ? C() : y(!0),
|
|
68
68
|
children: [
|
|
69
|
-
w ? /* @__PURE__ */ e("span", { className: "ws-avatar", "aria-hidden": "true", children:
|
|
69
|
+
w ? /* @__PURE__ */ e("span", { className: "ws-avatar", "aria-hidden": "true", children: F(L) }) : /* @__PURE__ */ e("span", { className: "ws-plus", "aria-hidden": "true", children: "+" }),
|
|
70
70
|
/* @__PURE__ */ e("span", { className: "ws-name", children: L }),
|
|
71
71
|
/* @__PURE__ */ e("span", { className: "ws-caret", "aria-hidden": "true", children: "▾" })
|
|
72
72
|
]
|
|
73
73
|
}
|
|
74
74
|
),
|
|
75
75
|
r && /* @__PURE__ */ n("div", { className: "ws-menu", id: c, role: "menu", children: [
|
|
76
|
-
|
|
76
|
+
p === "menu" && /* @__PURE__ */ n(P, { children: [
|
|
77
77
|
/* @__PURE__ */ e("p", { className: "ws-menu__head", children: w ? "Switch workspace" : "Your workspaces" }),
|
|
78
|
-
|
|
79
|
-
const x = d.id === (
|
|
78
|
+
t.length === 0 ? /* @__PURE__ */ e("p", { className: "ws-menu__none", children: "None yet" }) : /* @__PURE__ */ e("ul", { className: "ws-menu__list", children: t.map((d) => {
|
|
79
|
+
const x = d.id === (a == null ? void 0 : a.id);
|
|
80
80
|
return /* @__PURE__ */ e("li", { children: /* @__PURE__ */ n(
|
|
81
81
|
"button",
|
|
82
82
|
{
|
|
@@ -88,7 +88,7 @@ function J({
|
|
|
88
88
|
o(d.id), C();
|
|
89
89
|
},
|
|
90
90
|
children: [
|
|
91
|
-
/* @__PURE__ */ e("span", { className: "ws-avatar ws-avatar--sm", "aria-hidden": "true", children:
|
|
91
|
+
/* @__PURE__ */ e("span", { className: "ws-avatar ws-avatar--sm", "aria-hidden": "true", children: F(d.name) }),
|
|
92
92
|
/* @__PURE__ */ e("span", { className: "ws-mi__name", children: d.name }),
|
|
93
93
|
x && /* @__PURE__ */ e("span", { className: "ws-mi__check", "aria-hidden": "true", children: "✓" })
|
|
94
94
|
]
|
|
@@ -103,7 +103,7 @@ function J({
|
|
|
103
103
|
role: "menuitem",
|
|
104
104
|
className: "ws-action",
|
|
105
105
|
onClick: () => {
|
|
106
|
-
s(null),
|
|
106
|
+
s(null), v("create");
|
|
107
107
|
},
|
|
108
108
|
children: "+ Create workspace"
|
|
109
109
|
}
|
|
@@ -115,19 +115,19 @@ function J({
|
|
|
115
115
|
role: "menuitem",
|
|
116
116
|
className: "ws-action",
|
|
117
117
|
onClick: () => {
|
|
118
|
-
s(null),
|
|
118
|
+
s(null), v("join");
|
|
119
119
|
},
|
|
120
120
|
children: "⎘ Join with a code"
|
|
121
121
|
}
|
|
122
122
|
)
|
|
123
123
|
] })
|
|
124
124
|
] }),
|
|
125
|
-
|
|
125
|
+
p === "create" && /* @__PURE__ */ n(
|
|
126
126
|
"form",
|
|
127
127
|
{
|
|
128
128
|
className: "ws-form",
|
|
129
129
|
onSubmit: (d) => {
|
|
130
|
-
d.preventDefault(),
|
|
130
|
+
d.preventDefault(), S();
|
|
131
131
|
},
|
|
132
132
|
children: [
|
|
133
133
|
/* @__PURE__ */ e("label", { htmlFor: `${c}-name`, children: "New workspace name" }),
|
|
@@ -143,18 +143,18 @@ function J({
|
|
|
143
143
|
}
|
|
144
144
|
),
|
|
145
145
|
/* @__PURE__ */ n("div", { className: "ws-form__row", children: [
|
|
146
|
-
/* @__PURE__ */ e("button", { type: "button", className: "ws-form__back", onClick: () =>
|
|
146
|
+
/* @__PURE__ */ e("button", { type: "button", className: "ws-form__back", onClick: () => v("menu"), children: "Back" }),
|
|
147
147
|
/* @__PURE__ */ e("button", { type: "submit", disabled: N || !g.trim(), children: "Create" })
|
|
148
148
|
] })
|
|
149
149
|
]
|
|
150
150
|
}
|
|
151
151
|
),
|
|
152
|
-
|
|
152
|
+
p === "join" && /* @__PURE__ */ n(
|
|
153
153
|
"form",
|
|
154
154
|
{
|
|
155
155
|
className: "ws-form",
|
|
156
156
|
onSubmit: (d) => {
|
|
157
|
-
d.preventDefault(),
|
|
157
|
+
d.preventDefault(), T();
|
|
158
158
|
},
|
|
159
159
|
children: [
|
|
160
160
|
/* @__PURE__ */ e("label", { htmlFor: `${c}-code`, children: "Invite code" }),
|
|
@@ -164,14 +164,14 @@ function J({
|
|
|
164
164
|
id: `${c}-code`,
|
|
165
165
|
type: "text",
|
|
166
166
|
placeholder: "Paste an invite code",
|
|
167
|
-
value:
|
|
167
|
+
value: h,
|
|
168
168
|
autoFocus: !0,
|
|
169
169
|
onChange: (d) => _(d.target.value)
|
|
170
170
|
}
|
|
171
171
|
),
|
|
172
172
|
/* @__PURE__ */ n("div", { className: "ws-form__row", children: [
|
|
173
|
-
/* @__PURE__ */ e("button", { type: "button", className: "ws-form__back", onClick: () =>
|
|
174
|
-
/* @__PURE__ */ e("button", { type: "submit", disabled: N || !
|
|
173
|
+
/* @__PURE__ */ e("button", { type: "button", className: "ws-form__back", onClick: () => v("menu"), children: "Back" }),
|
|
174
|
+
/* @__PURE__ */ e("button", { type: "submit", disabled: N || !h.trim(), children: "Join" })
|
|
175
175
|
] })
|
|
176
176
|
]
|
|
177
177
|
}
|
|
@@ -181,29 +181,29 @@ function J({
|
|
|
181
181
|
] });
|
|
182
182
|
}
|
|
183
183
|
function V({
|
|
184
|
-
workspaceName:
|
|
185
|
-
busy:
|
|
184
|
+
workspaceName: t,
|
|
185
|
+
busy: a,
|
|
186
186
|
error: o,
|
|
187
|
-
onConfirm:
|
|
187
|
+
onConfirm: u,
|
|
188
188
|
onCancel: l
|
|
189
189
|
}) {
|
|
190
|
-
const
|
|
190
|
+
const m = $(), c = $(), [b, r] = i(""), y = U(null);
|
|
191
191
|
A(() => {
|
|
192
|
-
var
|
|
193
|
-
(
|
|
192
|
+
var v;
|
|
193
|
+
(v = y.current) == null || v.focus();
|
|
194
194
|
}, []), A(() => {
|
|
195
|
-
function
|
|
196
|
-
g.key === "Escape" && !
|
|
195
|
+
function v(g) {
|
|
196
|
+
g.key === "Escape" && !a && l();
|
|
197
197
|
}
|
|
198
|
-
return document.addEventListener("keydown",
|
|
199
|
-
}, [
|
|
200
|
-
const
|
|
198
|
+
return document.addEventListener("keydown", v), () => document.removeEventListener("keydown", v);
|
|
199
|
+
}, [a, l]);
|
|
200
|
+
const p = b === t;
|
|
201
201
|
return /* @__PURE__ */ e(
|
|
202
202
|
"div",
|
|
203
203
|
{
|
|
204
204
|
className: "shepherd-modal__backdrop",
|
|
205
205
|
onClick: () => {
|
|
206
|
-
|
|
206
|
+
a || l();
|
|
207
207
|
},
|
|
208
208
|
children: /* @__PURE__ */ n(
|
|
209
209
|
"div",
|
|
@@ -211,44 +211,44 @@ function V({
|
|
|
211
211
|
className: "shepherd-modal",
|
|
212
212
|
role: "dialog",
|
|
213
213
|
"aria-modal": "true",
|
|
214
|
-
"aria-labelledby":
|
|
214
|
+
"aria-labelledby": m,
|
|
215
215
|
"aria-describedby": c,
|
|
216
|
-
onClick: (
|
|
216
|
+
onClick: (v) => v.stopPropagation(),
|
|
217
217
|
children: [
|
|
218
|
-
/* @__PURE__ */ e("h3", { id:
|
|
218
|
+
/* @__PURE__ */ e("h3", { id: m, children: "Delete workspace" }),
|
|
219
219
|
/* @__PURE__ */ n("p", { id: c, className: "shepherd-modal__body", children: [
|
|
220
220
|
"This permanently deletes ",
|
|
221
|
-
/* @__PURE__ */ e("b", { children:
|
|
221
|
+
/* @__PURE__ */ e("b", { children: t }),
|
|
222
222
|
" and all of its data — agents, sessions, tasks, announcements, change history, tokens, invites, and members. This cannot be undone."
|
|
223
223
|
] }),
|
|
224
|
-
/* @__PURE__ */ n("label", { htmlFor: `${
|
|
224
|
+
/* @__PURE__ */ n("label", { htmlFor: `${m}-input`, className: "shepherd-modal__label", children: [
|
|
225
225
|
"Type ",
|
|
226
|
-
/* @__PURE__ */ e("b", { children:
|
|
226
|
+
/* @__PURE__ */ e("b", { children: t }),
|
|
227
227
|
" to confirm"
|
|
228
228
|
] }),
|
|
229
229
|
/* @__PURE__ */ e(
|
|
230
230
|
"input",
|
|
231
231
|
{
|
|
232
|
-
id: `${
|
|
233
|
-
ref:
|
|
232
|
+
id: `${m}-input`,
|
|
233
|
+
ref: y,
|
|
234
234
|
type: "text",
|
|
235
|
-
value:
|
|
235
|
+
value: b,
|
|
236
236
|
autoComplete: "off",
|
|
237
|
-
disabled:
|
|
238
|
-
onChange: (
|
|
237
|
+
disabled: a,
|
|
238
|
+
onChange: (v) => r(v.target.value)
|
|
239
239
|
}
|
|
240
240
|
),
|
|
241
241
|
o && /* @__PURE__ */ e("p", { role: "alert", children: o }),
|
|
242
242
|
/* @__PURE__ */ n("div", { className: "shepherd-modal__actions", children: [
|
|
243
|
-
/* @__PURE__ */ e("button", { type: "button", onClick: l, disabled:
|
|
243
|
+
/* @__PURE__ */ e("button", { type: "button", onClick: l, disabled: a, children: "Cancel" }),
|
|
244
244
|
/* @__PURE__ */ e(
|
|
245
245
|
"button",
|
|
246
246
|
{
|
|
247
247
|
type: "button",
|
|
248
248
|
className: "danger",
|
|
249
|
-
onClick:
|
|
250
|
-
disabled: !
|
|
251
|
-
children:
|
|
249
|
+
onClick: u,
|
|
250
|
+
disabled: !p || a,
|
|
251
|
+
children: a ? "Deleting…" : "Delete workspace"
|
|
252
252
|
}
|
|
253
253
|
)
|
|
254
254
|
] })
|
|
@@ -258,15 +258,15 @@ function V({
|
|
|
258
258
|
}
|
|
259
259
|
);
|
|
260
260
|
}
|
|
261
|
-
function
|
|
262
|
-
const
|
|
261
|
+
function M({ workspace: t, onLeft: a, onDeleted: o }) {
|
|
262
|
+
const u = B(), l = $(), [m, c] = i(null), [b, r] = i(!1), [y, p] = i(!1), [v, g] = i(!1), [k, h] = i(!1), [_, E] = i(null), s = t.role === "admin";
|
|
263
263
|
async function N() {
|
|
264
|
-
if (!
|
|
265
|
-
r(!0), c(null),
|
|
264
|
+
if (!b) {
|
|
265
|
+
r(!0), c(null), p(!1);
|
|
266
266
|
try {
|
|
267
|
-
await
|
|
267
|
+
await u.leave(t.id), a == null || a();
|
|
268
268
|
} catch (C) {
|
|
269
|
-
c(
|
|
269
|
+
c(R(C)), C instanceof H && C.status === 409 && p(!0);
|
|
270
270
|
} finally {
|
|
271
271
|
r(!1);
|
|
272
272
|
}
|
|
@@ -274,13 +274,13 @@ function X({ workspace: a, onLeft: t, onDeleted: o }) {
|
|
|
274
274
|
}
|
|
275
275
|
async function I() {
|
|
276
276
|
if (!k) {
|
|
277
|
-
|
|
277
|
+
h(!0), E(null);
|
|
278
278
|
try {
|
|
279
|
-
await
|
|
279
|
+
await u.deleteWorkspace(t.id), g(!1), o == null || o();
|
|
280
280
|
} catch (C) {
|
|
281
|
-
E(
|
|
281
|
+
E(R(C));
|
|
282
282
|
} finally {
|
|
283
|
-
|
|
283
|
+
h(!1);
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
}
|
|
@@ -290,20 +290,20 @@ function X({ workspace: a, onLeft: t, onDeleted: o }) {
|
|
|
290
290
|
/* @__PURE__ */ e("p", { className: "card-sub", children: "Your active workspace and its settings." })
|
|
291
291
|
] }),
|
|
292
292
|
/* @__PURE__ */ n("div", { className: "card-body", children: [
|
|
293
|
-
|
|
294
|
-
|
|
293
|
+
m && /* @__PURE__ */ e("p", { role: "alert", children: m }),
|
|
294
|
+
y && s && /* @__PURE__ */ e("p", { className: "helper", children: "You're the last admin, so you can't leave. To remove this workspace entirely, delete it below." }),
|
|
295
295
|
/* @__PURE__ */ n("div", { className: "field", children: [
|
|
296
296
|
/* @__PURE__ */ e("label", { children: "Workspace name" }),
|
|
297
|
-
/* @__PURE__ */ e("p", { className: "readonly-value", children:
|
|
297
|
+
/* @__PURE__ */ e("p", { className: "readonly-value", children: t.name })
|
|
298
298
|
] }),
|
|
299
299
|
/* @__PURE__ */ n("div", { className: "field", children: [
|
|
300
300
|
/* @__PURE__ */ e("label", { children: "Your role" }),
|
|
301
|
-
/* @__PURE__ */ e("p", { className: "readonly-value", children:
|
|
301
|
+
/* @__PURE__ */ e("p", { className: "readonly-value", children: t.role })
|
|
302
302
|
] }),
|
|
303
303
|
/* @__PURE__ */ n("div", { className: "field leave", children: [
|
|
304
304
|
/* @__PURE__ */ e("label", { children: "Leave workspace" }),
|
|
305
305
|
/* @__PURE__ */ e("p", { className: "helper", children: "Remove yourself from this workspace. You'll need a new invite to rejoin." }),
|
|
306
|
-
/* @__PURE__ */ e("button", { type: "button", className: "danger", onClick: () => void N(), disabled:
|
|
306
|
+
/* @__PURE__ */ e("button", { type: "button", className: "danger", onClick: () => void N(), disabled: b, children: "Leave workspace" })
|
|
307
307
|
] }),
|
|
308
308
|
s && /* @__PURE__ */ n("div", { className: "field delete", children: [
|
|
309
309
|
/* @__PURE__ */ e("label", { children: "Delete workspace" }),
|
|
@@ -322,10 +322,10 @@ function X({ workspace: a, onLeft: t, onDeleted: o }) {
|
|
|
322
322
|
)
|
|
323
323
|
] })
|
|
324
324
|
] }),
|
|
325
|
-
|
|
325
|
+
v && /* @__PURE__ */ e(
|
|
326
326
|
V,
|
|
327
327
|
{
|
|
328
|
-
workspaceName:
|
|
328
|
+
workspaceName: t.name,
|
|
329
329
|
busy: k,
|
|
330
330
|
error: _,
|
|
331
331
|
onConfirm: () => void I(),
|
|
@@ -336,40 +336,40 @@ function X({ workspace: a, onLeft: t, onDeleted: o }) {
|
|
|
336
336
|
)
|
|
337
337
|
] });
|
|
338
338
|
}
|
|
339
|
-
function
|
|
340
|
-
const
|
|
339
|
+
function X({ workspaceId: t, refreshKey: a = 0, canRemove: o = !1 }) {
|
|
340
|
+
const u = B(), l = $(), [m, c] = i([]), [b, r] = i(null), [y, p] = i(null), [v, g] = i(!0), [k, h] = i(null);
|
|
341
341
|
async function _({ keepError: s = !1 } = {}) {
|
|
342
342
|
s || r(null);
|
|
343
343
|
try {
|
|
344
|
-
const N = await
|
|
344
|
+
const N = await u.listMembers(t);
|
|
345
345
|
c(N.members);
|
|
346
346
|
} catch (N) {
|
|
347
|
-
r(
|
|
347
|
+
r(R(N));
|
|
348
348
|
} finally {
|
|
349
349
|
g(!1);
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
A(() => {
|
|
353
353
|
g(!0), _();
|
|
354
|
-
}, [
|
|
354
|
+
}, [u, t, a]);
|
|
355
355
|
async function E(s, N) {
|
|
356
356
|
if (!k) {
|
|
357
|
-
|
|
357
|
+
h(s), r(null), p(null), c((I) => I.filter((C) => C.accountId !== s));
|
|
358
358
|
try {
|
|
359
|
-
await
|
|
359
|
+
await u.removeMember(t, s), p(`Removed ${N}`);
|
|
360
360
|
} catch (I) {
|
|
361
|
-
r(
|
|
361
|
+
r(R(I)), _({ keepError: !0 });
|
|
362
362
|
} finally {
|
|
363
|
-
|
|
363
|
+
h(null);
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
367
|
return /* @__PURE__ */ n("section", { className: "shepherd-members", "aria-labelledby": l, children: [
|
|
368
368
|
/* @__PURE__ */ e("div", { className: "card-head", children: /* @__PURE__ */ e("h3", { id: l, children: "Members" }) }),
|
|
369
369
|
/* @__PURE__ */ n("div", { className: "card-body", children: [
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
370
|
+
b && /* @__PURE__ */ e("p", { role: "alert", children: b }),
|
|
371
|
+
y && /* @__PURE__ */ e("p", { role: "status", children: y }),
|
|
372
|
+
v ? /* @__PURE__ */ e("p", { role: "status", children: "Loading…" }) : m.length === 0 ? /* @__PURE__ */ e("p", { children: "No members." }) : /* @__PURE__ */ e("ul", { children: m.map((s) => {
|
|
373
373
|
const N = s.displayName ?? s.githubLogin ?? s.email ?? s.accountId;
|
|
374
374
|
return /* @__PURE__ */ n("li", { children: [
|
|
375
375
|
/* @__PURE__ */ e("span", { children: N }),
|
|
@@ -389,56 +389,56 @@ function q({ workspaceId: a, refreshKey: t = 0, canRemove: o = !1 }) {
|
|
|
389
389
|
] })
|
|
390
390
|
] });
|
|
391
391
|
}
|
|
392
|
-
function
|
|
393
|
-
const o = B(),
|
|
392
|
+
function q({ workspaceId: t, onMembersChanged: a }) {
|
|
393
|
+
const o = B(), u = $(), [l, m] = i(null), [c, b] = i(null), [r, y] = i(!1), [p, v] = i(""), [g, k] = i(null), [h, _] = i(!1), [E, s] = i(null);
|
|
394
394
|
A(() => {
|
|
395
|
-
|
|
396
|
-
}, [
|
|
395
|
+
m(null), k(null);
|
|
396
|
+
}, [t]);
|
|
397
397
|
async function N() {
|
|
398
398
|
if (!r) {
|
|
399
|
-
|
|
399
|
+
y(!0), b(null);
|
|
400
400
|
try {
|
|
401
|
-
const w = await o.createInvite(
|
|
402
|
-
|
|
401
|
+
const w = await o.createInvite(t, {});
|
|
402
|
+
m(w), a == null || a();
|
|
403
403
|
} catch (w) {
|
|
404
|
-
|
|
404
|
+
b(R(w));
|
|
405
405
|
} finally {
|
|
406
|
-
|
|
406
|
+
y(!1);
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
410
|
async function I() {
|
|
411
411
|
if (!(!l || r)) {
|
|
412
|
-
|
|
412
|
+
y(!0), b(null);
|
|
413
413
|
try {
|
|
414
|
-
await o.revokeInvite(
|
|
414
|
+
await o.revokeInvite(t, l.code), m(null);
|
|
415
415
|
} catch (w) {
|
|
416
|
-
|
|
416
|
+
b(R(w));
|
|
417
417
|
} finally {
|
|
418
|
-
|
|
418
|
+
y(!1);
|
|
419
419
|
}
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
422
|
async function C() {
|
|
423
|
-
if (!(!
|
|
423
|
+
if (!(!p.trim() || h)) {
|
|
424
424
|
_(!0), k(null);
|
|
425
425
|
try {
|
|
426
|
-
const w = await o.inviteByEmail(
|
|
427
|
-
k(`Invite sent to ${w.email}.`),
|
|
426
|
+
const w = await o.inviteByEmail(t, p.trim());
|
|
427
|
+
k(`Invite sent to ${w.email}.`), v(""), a == null || a();
|
|
428
428
|
} catch (w) {
|
|
429
|
-
k(
|
|
429
|
+
k(R(w));
|
|
430
430
|
} finally {
|
|
431
431
|
_(!1);
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
434
|
}
|
|
435
|
-
const
|
|
436
|
-
async function
|
|
435
|
+
const S = l ? `${window.location.origin}/shepherd/join/${encodeURIComponent(l.code)}` : null;
|
|
436
|
+
async function T(w, L) {
|
|
437
437
|
await navigator.clipboard.writeText(L), s(w), setTimeout(() => s((d) => d === w ? null : d), 2e3);
|
|
438
438
|
}
|
|
439
|
-
return /* @__PURE__ */ n("section", { className: "shepherd-invites", "aria-labelledby":
|
|
439
|
+
return /* @__PURE__ */ n("section", { className: "shepherd-invites", "aria-labelledby": u, children: [
|
|
440
440
|
/* @__PURE__ */ n("div", { className: "card-head", children: [
|
|
441
|
-
/* @__PURE__ */ e("h3", { id:
|
|
441
|
+
/* @__PURE__ */ e("h3", { id: u, children: "Invite people" }),
|
|
442
442
|
/* @__PURE__ */ e("p", { className: "card-sub", children: "Share a code, or send a one-time join link by email." })
|
|
443
443
|
] }),
|
|
444
444
|
/* @__PURE__ */ n("div", { className: "card-body", children: [
|
|
@@ -469,19 +469,19 @@ function z({ workspaceId: a, onMembersChanged: t }) {
|
|
|
469
469
|
{
|
|
470
470
|
type: "button",
|
|
471
471
|
className: "copy-btn",
|
|
472
|
-
onClick: () => void
|
|
472
|
+
onClick: () => void T("code", l.code),
|
|
473
473
|
children: E === "code" ? "Copied" : "Copy"
|
|
474
474
|
}
|
|
475
475
|
)
|
|
476
476
|
] }),
|
|
477
|
-
|
|
478
|
-
/* @__PURE__ */ e("a", { href:
|
|
477
|
+
S && /* @__PURE__ */ n("div", { className: "invite-result__copyrow invite-result__copyrow--link", children: [
|
|
478
|
+
/* @__PURE__ */ e("a", { href: S, children: S }),
|
|
479
479
|
/* @__PURE__ */ e(
|
|
480
480
|
"button",
|
|
481
481
|
{
|
|
482
482
|
type: "button",
|
|
483
483
|
className: "copy-btn",
|
|
484
|
-
onClick: () => void
|
|
484
|
+
onClick: () => void T("link", S),
|
|
485
485
|
children: E === "link" ? "Copied" : "Copy link"
|
|
486
486
|
}
|
|
487
487
|
)
|
|
@@ -499,98 +499,105 @@ function z({ workspaceId: a, onMembersChanged: t }) {
|
|
|
499
499
|
id: "invite-email",
|
|
500
500
|
type: "email",
|
|
501
501
|
placeholder: "name@example.com",
|
|
502
|
-
value:
|
|
503
|
-
onChange: (w) =>
|
|
502
|
+
value: p,
|
|
503
|
+
onChange: (w) => v(w.target.value)
|
|
504
504
|
}
|
|
505
505
|
),
|
|
506
|
-
/* @__PURE__ */ e("button", { type: "button", onClick: () => void C(), disabled:
|
|
506
|
+
/* @__PURE__ */ e("button", { type: "button", onClick: () => void C(), disabled: h, children: "Send invite" })
|
|
507
507
|
] }),
|
|
508
508
|
g && /* @__PURE__ */ e("p", { className: "email-invite__status", children: g })
|
|
509
509
|
] })
|
|
510
510
|
] })
|
|
511
511
|
] });
|
|
512
512
|
}
|
|
513
|
-
const
|
|
513
|
+
const z = [
|
|
514
514
|
{ id: "claude", label: "Claude Code" },
|
|
515
515
|
{ id: "codex", label: "Codex" },
|
|
516
516
|
{ id: "pi", label: "Pi" },
|
|
517
|
+
{ id: "cursor", label: "Cursor" },
|
|
517
518
|
{ id: "generic", label: "Generic (JSON)" }
|
|
518
|
-
],
|
|
519
|
+
], Q = "shp_<paste-after-generating>", Z = {
|
|
519
520
|
claude: "claude mcp add shepherd -s user",
|
|
520
|
-
codex: "codex mcp add shepherd"
|
|
521
|
-
|
|
521
|
+
codex: "codex mcp add shepherd"
|
|
522
|
+
}, ee = {
|
|
523
|
+
claude: "-e",
|
|
524
|
+
codex: "--env"
|
|
522
525
|
};
|
|
523
|
-
function
|
|
524
|
-
const o = `created ${O(
|
|
525
|
-
return `${o} · ${
|
|
526
|
+
function ne(t, a) {
|
|
527
|
+
const o = `created ${O(t.createdAt, a)}`, u = t.lastUsedAt ? `last used ${O(t.lastUsedAt, a)}` : "never used";
|
|
528
|
+
return `${o} · ${u}`;
|
|
526
529
|
}
|
|
527
|
-
function
|
|
528
|
-
|
|
529
|
-
{
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
530
|
+
function te(t, a, o) {
|
|
531
|
+
if (t === "generic" || t === "pi" || t === "cursor") {
|
|
532
|
+
const m = { HUB_URL: a, SHEPHERD_TOKEN: o };
|
|
533
|
+
return t !== "generic" && (m.PROGRAM = t), JSON.stringify(
|
|
534
|
+
{
|
|
535
|
+
mcpServers: {
|
|
536
|
+
shepherd: {
|
|
537
|
+
command: "npx",
|
|
538
|
+
args: ["-y", "--package=@korso/shepherd", "shepherd-mcp"],
|
|
539
|
+
env: m
|
|
540
|
+
}
|
|
535
541
|
}
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
]
|
|
542
|
+
},
|
|
543
|
+
null,
|
|
544
|
+
2
|
|
545
|
+
);
|
|
546
|
+
}
|
|
547
|
+
const u = ee[t], l = [
|
|
548
|
+
Z[t],
|
|
549
|
+
`${u} HUB_URL=${a}`,
|
|
550
|
+
`${u} SHEPHERD_TOKEN=${o}`
|
|
551
|
+
];
|
|
552
|
+
return t === "codex" && l.push(`${u} PROGRAM=codex`), l.push("-- npx -y --package=@korso/shepherd shepherd-mcp"), l.join(" ");
|
|
546
553
|
}
|
|
547
|
-
function
|
|
548
|
-
const
|
|
554
|
+
function ae({ hubUrl: t }) {
|
|
555
|
+
const a = B(), o = t ?? a.baseUrl, u = $(), [l, m] = i("claude"), [c, b] = i(""), [r, y] = i(null), [p, v] = i([]), [g, k] = i(null), [h, _] = i(null), [E, s] = i(!1), [N, I] = i(!1), [C, S] = i(!0), [T, w] = i(null);
|
|
549
556
|
async function L() {
|
|
550
557
|
try {
|
|
551
|
-
const
|
|
552
|
-
|
|
553
|
-
} catch (
|
|
554
|
-
k(
|
|
558
|
+
const f = await a.listAccountTokens();
|
|
559
|
+
v(f.tokens);
|
|
560
|
+
} catch (f) {
|
|
561
|
+
k(R(f));
|
|
555
562
|
} finally {
|
|
556
|
-
|
|
563
|
+
S(!1);
|
|
557
564
|
}
|
|
558
565
|
}
|
|
559
566
|
A(() => {
|
|
560
|
-
|
|
561
|
-
}, [
|
|
567
|
+
S(!0), L();
|
|
568
|
+
}, [a]);
|
|
562
569
|
async function d() {
|
|
563
570
|
s(!0), k(null);
|
|
564
571
|
try {
|
|
565
|
-
const
|
|
572
|
+
const f = await a.mintAccountToken(
|
|
566
573
|
c.trim() ? { name: c.trim() } : {}
|
|
567
574
|
);
|
|
568
|
-
|
|
569
|
-
} catch (
|
|
570
|
-
k(
|
|
575
|
+
y(f.token), b(""), await L();
|
|
576
|
+
} catch (f) {
|
|
577
|
+
k(R(f));
|
|
571
578
|
} finally {
|
|
572
579
|
s(!1);
|
|
573
580
|
}
|
|
574
581
|
}
|
|
575
|
-
async function x(
|
|
576
|
-
if (!
|
|
577
|
-
w(
|
|
582
|
+
async function x(f) {
|
|
583
|
+
if (!T) {
|
|
584
|
+
w(f), k(null), _(null);
|
|
578
585
|
try {
|
|
579
|
-
await
|
|
586
|
+
await a.revokeAccountToken(f), v((D) => D.filter((W) => W.id !== f)), _("Token revoked");
|
|
580
587
|
} catch (D) {
|
|
581
|
-
k(
|
|
588
|
+
k(R(D));
|
|
582
589
|
} finally {
|
|
583
590
|
w(null);
|
|
584
591
|
}
|
|
585
592
|
}
|
|
586
593
|
}
|
|
587
|
-
const j =
|
|
588
|
-
async function
|
|
594
|
+
const j = te(l, o, r ?? Q);
|
|
595
|
+
async function G() {
|
|
589
596
|
await navigator.clipboard.writeText(j), I(!0), setTimeout(() => I(!1), 2e3);
|
|
590
597
|
}
|
|
591
|
-
return /* @__PURE__ */ n("section", { className: "shepherd-connect-agent", "aria-labelledby":
|
|
598
|
+
return /* @__PURE__ */ n("section", { className: "shepherd-connect-agent", "aria-labelledby": u, children: [
|
|
592
599
|
/* @__PURE__ */ n("div", { className: "card-head", children: [
|
|
593
|
-
/* @__PURE__ */ e("h3", { id:
|
|
600
|
+
/* @__PURE__ */ e("h3", { id: u, children: "Connect your agent" }),
|
|
594
601
|
/* @__PURE__ */ e("p", { className: "card-sub", children: "Generate a token — it works across all your workspaces — then paste the command into your coding tool." }),
|
|
595
602
|
/* @__PURE__ */ e("p", { className: "card-sub", children: "The first time the agent opens a repo, it'll ask which workspace to coordinate that repo with." })
|
|
596
603
|
] }),
|
|
@@ -602,8 +609,8 @@ function te({ hubUrl: a }) {
|
|
|
602
609
|
{
|
|
603
610
|
id: "connect-tool",
|
|
604
611
|
value: l,
|
|
605
|
-
onChange: (
|
|
606
|
-
children:
|
|
612
|
+
onChange: (f) => m(f.target.value),
|
|
613
|
+
children: z.map((f) => /* @__PURE__ */ e("option", { value: f.id, children: f.label }, f.id))
|
|
607
614
|
}
|
|
608
615
|
)
|
|
609
616
|
] }),
|
|
@@ -616,7 +623,7 @@ function te({ hubUrl: a }) {
|
|
|
616
623
|
id: "token-name",
|
|
617
624
|
type: "text",
|
|
618
625
|
value: c,
|
|
619
|
-
onChange: (
|
|
626
|
+
onChange: (f) => b(f.target.value),
|
|
620
627
|
placeholder: "e.g. laptop"
|
|
621
628
|
}
|
|
622
629
|
),
|
|
@@ -624,7 +631,7 @@ function te({ hubUrl: a }) {
|
|
|
624
631
|
] })
|
|
625
632
|
] }),
|
|
626
633
|
g && /* @__PURE__ */ e("p", { role: "alert", children: g }),
|
|
627
|
-
|
|
634
|
+
h && /* @__PURE__ */ e("p", { role: "status", children: h }),
|
|
628
635
|
r && /* @__PURE__ */ e("p", { className: "token-once", role: "status", children: "Copy this token now — it won't be shown again." }),
|
|
629
636
|
/* @__PURE__ */ n("div", { className: "install-command", children: [
|
|
630
637
|
/* @__PURE__ */ e("pre", { "data-testid": "install-command", children: j }),
|
|
@@ -635,7 +642,7 @@ function te({ hubUrl: a }) {
|
|
|
635
642
|
className: "install-command__copy",
|
|
636
643
|
"aria-label": N ? "Copied" : "Copy command",
|
|
637
644
|
title: N ? "Copied" : "Copy",
|
|
638
|
-
onClick: () => void
|
|
645
|
+
onClick: () => void G(),
|
|
639
646
|
children: N ? /* @__PURE__ */ e(
|
|
640
647
|
"svg",
|
|
641
648
|
{
|
|
@@ -672,111 +679,111 @@ function te({ hubUrl: a }) {
|
|
|
672
679
|
)
|
|
673
680
|
] }),
|
|
674
681
|
/* @__PURE__ */ e("h4", { children: "Existing tokens" }),
|
|
675
|
-
C ? /* @__PURE__ */ e("p", { role: "status", children: "Loading…" }) :
|
|
676
|
-
const D =
|
|
682
|
+
C ? /* @__PURE__ */ e("p", { role: "status", children: "Loading…" }) : p.length === 0 ? /* @__PURE__ */ e("p", { children: "No tokens yet." }) : /* @__PURE__ */ e("ul", { children: p.map((f) => {
|
|
683
|
+
const D = f.name ?? f.id;
|
|
677
684
|
return /* @__PURE__ */ n("li", { children: [
|
|
678
685
|
/* @__PURE__ */ e("span", { children: D }),
|
|
679
|
-
/* @__PURE__ */ e("span", { className: "token-meta", children:
|
|
680
|
-
|
|
686
|
+
/* @__PURE__ */ e("span", { className: "token-meta", children: ne(f, Date.now()) }),
|
|
687
|
+
f.revokedAt ? /* @__PURE__ */ e("span", { className: "revoked", children: "revoked" }) : /* @__PURE__ */ e(
|
|
681
688
|
"button",
|
|
682
689
|
{
|
|
683
690
|
type: "button",
|
|
684
691
|
"aria-label": `Revoke token ${D}`,
|
|
685
|
-
onClick: () => void x(
|
|
686
|
-
disabled:
|
|
692
|
+
onClick: () => void x(f.id),
|
|
693
|
+
disabled: T === f.id,
|
|
687
694
|
children: "Revoke"
|
|
688
695
|
}
|
|
689
696
|
)
|
|
690
|
-
] },
|
|
697
|
+
] }, f.id);
|
|
691
698
|
}) })
|
|
692
699
|
] })
|
|
693
700
|
] });
|
|
694
701
|
}
|
|
695
|
-
const
|
|
702
|
+
const ie = [
|
|
696
703
|
{ id: "general", label: "General" },
|
|
697
704
|
{ id: "members", label: "Members" },
|
|
698
705
|
{ id: "agent", label: "Agent" }
|
|
699
706
|
];
|
|
700
|
-
function
|
|
701
|
-
workspace:
|
|
702
|
-
hubUrl:
|
|
707
|
+
function le({
|
|
708
|
+
workspace: t,
|
|
709
|
+
hubUrl: a,
|
|
703
710
|
membersRefreshKey: o,
|
|
704
|
-
onMembersChanged:
|
|
711
|
+
onMembersChanged: u,
|
|
705
712
|
onLeft: l,
|
|
706
|
-
onDeleted:
|
|
713
|
+
onDeleted: m
|
|
707
714
|
}) {
|
|
708
|
-
const [c,
|
|
715
|
+
const [c, b] = i("general"), r = t.role === "admin";
|
|
709
716
|
return /* @__PURE__ */ n("div", { className: "config-layout", children: [
|
|
710
|
-
/* @__PURE__ */ e("nav", { className: "config-nav", "aria-label": "Configuration sections", children:
|
|
717
|
+
/* @__PURE__ */ e("nav", { className: "config-nav", "aria-label": "Configuration sections", children: ie.map(({ id: y, label: p }) => /* @__PURE__ */ e(
|
|
711
718
|
"button",
|
|
712
719
|
{
|
|
713
720
|
type: "button",
|
|
714
|
-
className: "config-nav__item" + (c ===
|
|
715
|
-
"aria-current": c ===
|
|
716
|
-
onClick: () =>
|
|
717
|
-
children:
|
|
721
|
+
className: "config-nav__item" + (c === y ? " config-nav__item--on" : ""),
|
|
722
|
+
"aria-current": c === y ? "page" : void 0,
|
|
723
|
+
onClick: () => b(y),
|
|
724
|
+
children: p
|
|
718
725
|
},
|
|
719
|
-
|
|
726
|
+
y
|
|
720
727
|
)) }),
|
|
721
728
|
/* @__PURE__ */ n("div", { className: "config-panel", children: [
|
|
722
|
-
c === "general" && /* @__PURE__ */ e(
|
|
723
|
-
c === "members" && /* @__PURE__ */ n(
|
|
729
|
+
c === "general" && /* @__PURE__ */ e(M, { workspace: t, onLeft: l, onDeleted: m }),
|
|
730
|
+
c === "members" && /* @__PURE__ */ n(P, { children: [
|
|
724
731
|
/* @__PURE__ */ e(
|
|
725
|
-
|
|
732
|
+
X,
|
|
726
733
|
{
|
|
727
|
-
workspaceId:
|
|
734
|
+
workspaceId: t.id,
|
|
728
735
|
refreshKey: o,
|
|
729
736
|
canRemove: r
|
|
730
737
|
}
|
|
731
738
|
),
|
|
732
|
-
r && /* @__PURE__ */ e(
|
|
739
|
+
r && /* @__PURE__ */ e(q, { workspaceId: t.id, onMembersChanged: u })
|
|
733
740
|
] }),
|
|
734
|
-
c === "agent" && /* @__PURE__ */ e(
|
|
741
|
+
c === "agent" && /* @__PURE__ */ e(ae, { hubUrl: a })
|
|
735
742
|
] })
|
|
736
743
|
] });
|
|
737
744
|
}
|
|
738
|
-
function
|
|
739
|
-
const
|
|
745
|
+
function ce({ hubUrl: t }) {
|
|
746
|
+
const a = B(), [o, u] = i({ status: "loading" }), [l, m] = i(null), [c, b] = i(0), r = Y(async () => {
|
|
740
747
|
try {
|
|
741
|
-
const
|
|
742
|
-
|
|
748
|
+
const h = await a.listWorkspaces();
|
|
749
|
+
u({ status: "ready", workspaces: h.workspaces }), m(
|
|
743
750
|
(_) => {
|
|
744
751
|
var E;
|
|
745
|
-
return _ &&
|
|
752
|
+
return _ && h.workspaces.some((s) => s.id === _) ? _ : ((E = h.workspaces[0]) == null ? void 0 : E.id) ?? null;
|
|
746
753
|
}
|
|
747
754
|
);
|
|
748
|
-
} catch (
|
|
749
|
-
|
|
755
|
+
} catch (h) {
|
|
756
|
+
u({ status: "error", message: R(h) });
|
|
750
757
|
}
|
|
751
|
-
}, [
|
|
758
|
+
}, [a]);
|
|
752
759
|
A(() => {
|
|
753
760
|
r();
|
|
754
761
|
}, [r]);
|
|
755
|
-
const
|
|
762
|
+
const y = o.status === "ready" ? o.workspaces : [], p = y.find((h) => h.id === l) ?? null;
|
|
756
763
|
if (o.status === "loading")
|
|
757
764
|
return /* @__PURE__ */ e("div", { className: "shepherd-root", children: /* @__PURE__ */ e("p", { role: "status", children: "Loading…" }) });
|
|
758
765
|
if (o.status === "error")
|
|
759
766
|
return /* @__PURE__ */ e("div", { className: "shepherd-root", children: /* @__PURE__ */ e("p", { role: "alert", children: o.message }) });
|
|
760
|
-
const
|
|
767
|
+
const v = y.length > 0, g = /* @__PURE__ */ e(
|
|
761
768
|
J,
|
|
762
769
|
{
|
|
763
|
-
workspaces:
|
|
764
|
-
selected:
|
|
765
|
-
onSelect:
|
|
770
|
+
workspaces: y,
|
|
771
|
+
selected: p,
|
|
772
|
+
onSelect: m,
|
|
766
773
|
onChanged: () => {
|
|
767
774
|
r();
|
|
768
775
|
},
|
|
769
|
-
onMembersChanged: () =>
|
|
776
|
+
onMembersChanged: () => b((h) => h + 1)
|
|
770
777
|
}
|
|
771
778
|
), k = /* @__PURE__ */ n("section", { className: "shepherd-config", "aria-labelledby": "config-heading", children: [
|
|
772
779
|
/* @__PURE__ */ e("h2", { id: "config-heading", children: "Configuration" }),
|
|
773
|
-
|
|
774
|
-
|
|
780
|
+
p ? /* @__PURE__ */ e(
|
|
781
|
+
le,
|
|
775
782
|
{
|
|
776
|
-
workspace:
|
|
777
|
-
hubUrl:
|
|
783
|
+
workspace: p,
|
|
784
|
+
hubUrl: t,
|
|
778
785
|
membersRefreshKey: c,
|
|
779
|
-
onMembersChanged: () =>
|
|
786
|
+
onMembersChanged: () => b((h) => h + 1),
|
|
780
787
|
onLeft: () => void r(),
|
|
781
788
|
onDeleted: () => void r()
|
|
782
789
|
}
|
|
@@ -789,26 +796,26 @@ function oe({ hubUrl: a }) {
|
|
|
789
796
|
return /* @__PURE__ */ e("div", { className: "shepherd-root", children: /* @__PURE__ */ e(
|
|
790
797
|
K,
|
|
791
798
|
{
|
|
792
|
-
workspaceId:
|
|
799
|
+
workspaceId: p == null ? void 0 : p.id,
|
|
793
800
|
config: k,
|
|
794
801
|
switcher: g,
|
|
795
|
-
hasWorkspace:
|
|
802
|
+
hasWorkspace: v
|
|
796
803
|
}
|
|
797
804
|
) });
|
|
798
805
|
}
|
|
799
806
|
export {
|
|
800
|
-
|
|
801
|
-
|
|
807
|
+
le as ConfigPanel,
|
|
808
|
+
ae as ConnectAgent,
|
|
802
809
|
K as Dashboard,
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
+
he as EmptyState,
|
|
811
|
+
M as GeneralSettings,
|
|
812
|
+
q as Invites,
|
|
813
|
+
X as Members,
|
|
814
|
+
H as ShepherdClientError,
|
|
815
|
+
me as ShepherdClientProvider,
|
|
816
|
+
ce as ShepherdRoot,
|
|
810
817
|
J as WorkspaceSwitcher,
|
|
811
|
-
|
|
812
|
-
|
|
818
|
+
pe as createShepherdClient,
|
|
819
|
+
R as describeError,
|
|
813
820
|
B as useShepherdClient
|
|
814
821
|
};
|
package/dist/lib/styles.css
CHANGED
|
@@ -289,10 +289,6 @@
|
|
|
289
289
|
font-size:11px; font-weight:600; letter-spacing:.05em; text-transform:uppercase; color:var(--ink3); }
|
|
290
290
|
.shepherd-config .helper { margin:0; font-size:12.5px; color:var(--ink2); }
|
|
291
291
|
.shepherd-config .field > select { width:100%; }
|
|
292
|
-
.shepherd-config select {
|
|
293
|
-
appearance:none; -webkit-appearance:none; -moz-appearance:none;
|
|
294
|
-
background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239c917a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
|
|
295
|
-
background-repeat:no-repeat; background-position:right 28px center; padding-right:44px; }
|
|
296
292
|
.shepherd-config .field__row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
|
|
297
293
|
.shepherd-config .field__row > input { flex:1; min-width:200px; }
|
|
298
294
|
|
|
@@ -303,11 +299,22 @@
|
|
|
303
299
|
|
|
304
300
|
.shepherd-config input, .shepherd-config select {
|
|
305
301
|
padding:9px 12px; border-radius:8px; border:1px solid var(--line);
|
|
306
|
-
background
|
|
302
|
+
/* background-COLOR, not the `background` shorthand — the shorthand
|
|
303
|
+
resets background-image and erases the select's chevron above. */
|
|
304
|
+
background-color:var(--bg); color:var(--ink); font:inherit;
|
|
307
305
|
transition:border-color .12s ease, box-shadow .12s ease; }
|
|
308
306
|
.shepherd-config input::placeholder { color:var(--ink3); }
|
|
309
307
|
.shepherd-config input:focus, .shepherd-config select:focus {
|
|
310
308
|
outline:none; border-color:var(--terr); box-shadow:0 0 0 3px rgba(122,106,72,.14); }
|
|
309
|
+
/* Select dropdown affordance. AFTER the shared input/select rule on
|
|
310
|
+
purpose: `padding` there is a shorthand and would reset the wider
|
|
311
|
+
padding-right reserved for the chevron. */
|
|
312
|
+
.shepherd-config select {
|
|
313
|
+
appearance:none; -webkit-appearance:none; -moz-appearance:none;
|
|
314
|
+
cursor:pointer;
|
|
315
|
+
background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236f6450' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
|
|
316
|
+
background-repeat:no-repeat; background-position:right 14px center; padding-right:40px; }
|
|
317
|
+
.shepherd-config select:hover:not(:disabled) { border-color:var(--terr); }
|
|
311
318
|
.shepherd-config button {
|
|
312
319
|
padding:9px 16px; border-radius:8px; border:1px solid var(--ink);
|
|
313
320
|
background:var(--ink); color:var(--bg); font-weight:600; cursor:pointer; font:inherit;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--bg:#ece0c6;--ink:#322c20;--ink2:#6f6450;--ink3:#9c917a;--line:#d7c9ac;--line2:#e0d4b9;--live:#3d8b58;--drop:#bd4f3a;--chip:#e3d6ba;--terr:#7a6a48;--card:#f5ecd9}*{box-sizing:border-box}html,body{height:100%}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.45 Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;-webkit-font-smoothing:antialiased}.wrap{max-width:1100px;margin:0 auto;padding:40px 44px}header{display:flex;align-items:center;gap:12px;padding-bottom:18px}.brand{font-size:17px;font-weight:600}.vitals{color:var(--ink3);font-size:12.5px}.grow{flex:1}.status{font-size:12px;color:var(--ink3)}.status--ok{color:var(--live)}.status--warn{color:var(--terr)}.status--error{color:var(--drop)}.freshness{font-size:12px;color:var(--ink3)}.repo{position:relative}.repo-trig{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-family:inherit;color:var(--ink);-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid var(--line);border-radius:8px;padding:4px 10px;background:#fffaee66;cursor:pointer}.repo-trig .slash{color:var(--ink3)}.repo-menu{position:absolute;top:36px;left:0;min-width:200px;background:var(--card);border:1px solid var(--line);border-radius:10px;padding:5px;box-shadow:0 8px 24px #32281424;z-index:5}.repo-mi{display:flex;justify-content:space-between;gap:14px;padding:7px 9px;width:100%;text-align:left;border:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:inherit;color:inherit;background:transparent;border-radius:7px;font-size:13px;cursor:pointer}.repo-mi:hover{background:var(--chip)}.repo-mi.on{background:var(--chip);font-weight:600}.repo-mi .ct{font-size:11px;color:var(--ink3)}.repo-mi.all{border-top:1px solid var(--line2);margin-top:4px;padding-top:9px;color:var(--ink2)}.tabs{display:flex;gap:4px;margin-left:auto}.tab{font-size:13px;color:var(--ink2);padding:5px 11px;border:0;border-radius:7px;background:transparent;cursor:pointer;font:inherit}.tab--active{background:var(--ink);color:var(--bg)}.ws-switcher{position:relative}.ws-trig{display:inline-flex;align-items:center;gap:8px;font:inherit;font-size:13px;font-weight:600;color:var(--ink);cursor:pointer;border:1px solid var(--line);border-radius:9px;padding:5px 10px;background:var(--card)}.ws-trig:hover{border-color:var(--ink3)}.ws-trig--empty{background:transparent;border-style:dashed;border-color:var(--ink2)}.ws-avatar{width:18px;height:18px;border-radius:6px;background:var(--ink);color:var(--bg);display:grid;place-items:center;font-size:10px;font-weight:700;flex:none}.ws-avatar--sm{width:16px;height:16px;font-size:9px}.ws-plus{color:var(--ink2);font-weight:700}.ws-name{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ws-caret{color:var(--ink3);font-size:10px}.ws-menu{position:absolute;top:40px;left:0;width:240px;z-index:20;background:var(--card);border:1px solid var(--line);border-radius:11px;padding:6px;box-shadow:0 8px 24px #32281429}.ws-menu__head{margin:0;padding:6px 8px;font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink3)}.ws-menu__none{margin:0;padding:2px 8px 6px;color:var(--ink3);font-style:italic;font-size:13px}.ws-menu__list{list-style:none;margin:0;padding:0}.ws-mi{display:flex;align-items:center;gap:8px;width:100%;text-align:left;font:inherit;font-size:13px;color:var(--ink);background:transparent;border:0;border-radius:7px;padding:7px 8px;cursor:pointer}.ws-mi:hover{background:var(--chip)}.ws-mi--on{font-weight:600}.ws-mi__name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ws-mi__check{color:var(--live)}.ws-menu__actions{display:flex;flex-direction:column;margin-top:5px;padding-top:5px;border-top:1px solid var(--line2)}.ws-action{display:flex;align-items:center;gap:8px;width:100%;text-align:left;font:inherit;font-size:13px;color:var(--ink2);background:transparent;border:0;border-radius:7px;padding:8px;cursor:pointer}.ws-action:hover{background:var(--chip);color:var(--ink)}.ws-form{display:flex;flex-direction:column;gap:8px;padding:4px}.ws-form label{font-size:10px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--ink3)}.ws-form input{padding:8px 10px;border-radius:8px;border:1px solid var(--line);background:var(--bg);color:var(--ink);font:inherit}.ws-form input:focus{outline:none;border-color:var(--terr);box-shadow:0 0 0 3px #7a6a4824}.ws-form__row{display:flex;gap:8px;justify-content:flex-end}.ws-form__row button{font:inherit;font-size:13px;font-weight:600;border-radius:8px;padding:7px 14px;cursor:pointer;border:1px solid var(--ink);background:var(--ink);color:var(--bg)}.ws-form__row button:disabled{opacity:.55;cursor:default}.ws-form__back{background:transparent!important;color:var(--ink2)!important;border-color:var(--line)!important}.ws-menu__error{margin:6px 4px 2px;font-size:12.5px;color:var(--drop)}.crew{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:26px 0 32px}.person{display:inline-flex;align-items:center;gap:9px;padding:5px 13px 5px 5px;border:1px solid var(--line);border-radius:999px;background:var(--card);font-size:13px}.person--idle{opacity:.55}.avatar{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-size:10px;font-weight:700;color:#fff;flex:none}.person__name{font-weight:600}.person__doing{color:var(--ink3);font-size:12px}.board{display:grid;grid-template-columns:1fr 1px 1fr;gap:0}.board__rule{background:var(--line)}.col{padding:0 36px}.col:first-child{padding-left:0}.col:last-child{padding-right:0}.colhead{display:flex;align-items:center;gap:8px;margin-bottom:6px}.colhead h2{font-size:12px;font-weight:600;letter-spacing:.03em;margin:0;text-transform:uppercase;color:var(--ink2)}.colhead .n{font-size:11px;color:var(--ink3);background:var(--chip);border-radius:999px;padding:1px 8px}.task{padding:16px 0;border-bottom:1px solid var(--line2)}.task__r1{display:flex;align-items:center;gap:8px}.task__who{font-size:13.5px;font-weight:600}.task__tag{font-size:11px;color:var(--ink3)}.task__repo{font-size:11px;color:var(--terr);background:#7a6a481a;border-radius:4px;padding:0 6px}.task__stat{margin-left:auto;font-size:11px;font-weight:500;color:var(--ink3)}.task__stat--drop{color:var(--drop)}.livedot{width:7px;height:7px;border-radius:50%;background:var(--live);margin-left:auto}.task__intent{font-size:13.5px;margin:5px 0 0;line-height:1.45}.terr{margin-top:8px;display:flex;flex-wrap:wrap;gap:6px;align-items:center}.terr__lbl{font-size:9.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--ink3)}.glob{font-family:ui-monospace,Menlo,monospace;font-size:11px;color:var(--terr);background:#7a6a481f;border:1px solid rgba(122,106,72,.22);border-radius:5px;padding:1px 7px}.task__meta{font-size:11.5px;color:var(--ink3);margin-top:6px}.terrx{margin-top:8px}.terrx summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:6px;flex-wrap:wrap;-webkit-user-select:none;user-select:none}.terrx summary::-webkit-details-marker{display:none}.terrx .terr--full{margin-top:8px}.glob--more{cursor:pointer;color:var(--ink2);background:var(--chip);border:1px solid var(--line)}.glob--more .tw{color:var(--ink3);display:inline-block;transition:transform .15s}.terrx[open] summary .glob--more .tw{transform:rotate(90deg)}.grp{padding:16px 0;border-bottom:1px solid var(--line2)}.grp__head{display:flex;align-items:center;gap:8px}.grp__who{font-size:13.5px;font-weight:600}.grp__tag,.grp__count{font-size:11px;color:var(--ink3)}.grp__dot{width:7px;height:7px;border-radius:50%;background:var(--live);margin-left:auto}.claims{margin:10px 0 0 6px;padding-left:14px;border-left:1px solid var(--line)}.claim{padding:6px 0}.claim+.claim{border-top:1px solid var(--line2);margin-top:6px}.fold{margin-top:10px}.fold summary{list-style:none;cursor:pointer;font-size:12px;color:var(--ink2);display:inline-flex;align-items:center;gap:6px;-webkit-user-select:none;user-select:none}.fold summary::-webkit-details-marker{display:none}.fold summary .tw{display:inline-block;color:var(--ink3);transition:transform .15s}.fold[open] summary .tw{transform:rotate(90deg)}.fold__body{margin:8px 0 0 6px;padding-left:14px;border-left:1px dashed var(--line)}.covered{font-size:10.5px;color:var(--ink3);font-style:italic;margin-top:4px}.day{font-size:11px;color:var(--ink3);padding:18px 0 2px;font-weight:600}.more{margin-top:20px;font-size:12.5px;color:var(--ink2);padding:7px 13px;border:1px solid var(--line);border-radius:8px;background:#fffaee59;cursor:pointer}.empty{color:var(--ink3);font-style:italic;padding:14px 0}.chat-wrap{background:var(--card);border:1px solid var(--line);border-radius:12px;display:flex;flex-direction:column;overflow:hidden;height:calc(100vh - 150px);min-height:320px}.chat{flex:1;overflow-y:auto;padding:16px}.chat{scrollbar-width:thin;scrollbar-color:var(--line) transparent}.chat::-webkit-scrollbar{width:10px}.chat::-webkit-scrollbar-track{background:transparent}.chat::-webkit-scrollbar-thumb{background:var(--line);border-radius:999px;border:3px solid var(--card);background-clip:padding-box}.chat::-webkit-scrollbar-thumb:hover{background:var(--ink3);background-clip:padding-box}.chat__note{padding:9px 16px;font-size:11.5px;color:var(--ink3)}.msg{display:flex;gap:11px;padding:9px 0}.msg__avatar{flex:none;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:700;color:#fff}.msg__body{min-width:0;flex:1}.msg__head{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}.msg__who{font-weight:600}.msg__human{font-size:12px;color:var(--ink3)}.msg__to{font-size:11.5px;color:var(--terr)}.msg__time{font-size:11.5px;color:var(--ink3);margin-left:auto}.msg__text{margin-top:3px;padding:8px 12px;border-radius:4px 12px 12px;background:var(--chip);white-space:pre-wrap;word-break:break-word}.msg--targeted .msg__text{box-shadow:inset 3px 0 0 var(--terr)}.msg--me,.msg--me .msg__head{flex-direction:row-reverse}.msg--me .msg__time{margin-left:0;margin-right:auto}.msg--me .msg__body{display:flex;flex-direction:column;align-items:flex-end}.msg--me .msg__text{border-radius:12px 4px 12px 12px;background:#d4e7d2}.msg--me.msg--targeted .msg__text{box-shadow:inset -3px 0 0 var(--terr)}.composer{position:relative;border-top:1px solid var(--line);padding:10px 12px}.chat-form{display:flex;gap:8px}.chat-input{flex:1;padding:9px 12px;border-radius:8px;border:1px solid var(--line);background:var(--bg);color:var(--ink);font:inherit}.chat-input:focus{outline:none;border-color:var(--terr)}.chat-send{padding:9px 16px;border-radius:8px;border:1px solid var(--ink);background:var(--ink);color:var(--bg);font-weight:600;cursor:pointer;font:inherit}.chat-send:disabled{opacity:.5;cursor:default}.mention-pop{position:absolute;left:12px;right:12px;bottom:56px;z-index:6;background:var(--card);border:1px solid var(--line);border-radius:10px;padding:5px;box-shadow:0 8px 24px #32281429;max-height:200px;overflow-y:auto}.mention-mi{display:flex;align-items:center;gap:9px;width:100%;text-align:left;border:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:inherit;color:inherit;background:transparent;border-radius:7px;padding:6px 8px;font-size:13px;cursor:pointer}.mention-mi:hover,.mention-mi.on{background:var(--chip)}.mention-mi .ma{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:9px;font-weight:700;color:#fff;flex:none}.gate{max-width:420px;margin:12vh auto 0;text-align:center}.gate h1{font-size:19px;margin:0 0 6px}.gate p{color:var(--ink2);margin:0 0 20px}.gate form{display:flex;gap:8px}.gate input{flex:1;padding:10px 12px;border-radius:8px;border:1px solid var(--line);background:var(--card);color:var(--ink)}.gate button{padding:10px 16px;border-radius:8px;border:1px solid var(--ink);background:var(--ink);color:var(--bg);font-weight:600;cursor:pointer}.shepherd-root{max-width:1100px;margin:0 auto;padding:40px 44px}.shepherd-root>main{padding-top:18px}.shepherd-config{display:flex;flex-direction:column}.shepherd-config h2{font-size:16px;margin:0 0 22px}.config-layout{display:flex;gap:32px;align-items:flex-start}.config-nav{flex:none;width:170px;display:flex;flex-direction:column;gap:2px;position:sticky;top:0}.shepherd-config .config-nav__item{text-align:left;font:inherit;font-size:13.5px;color:var(--ink2);background:transparent;border:0;border-radius:8px;padding:8px 12px;cursor:pointer;box-shadow:inset 2px 0 0 transparent;transition:color .12s ease,background .12s ease}.shepherd-config .config-nav .config-nav__item:hover{color:var(--ink);background:#322c200f}.shepherd-config .config-nav__item--on{color:var(--ink);font-weight:600;box-shadow:inset 2px 0 0 var(--ink)}.shepherd-config .config-nav .config-nav__item--on:hover{background:transparent}.config-panel{flex:1;min-width:0}.config-panel>section+section{margin-top:26px;padding-top:26px;border-top:1px solid var(--line2)}.config-none{color:var(--ink2);font-size:13.5px;max-width:520px}.shepherd-config .readonly-value{margin:0;font-size:15px;color:var(--ink);padding:1px 0;font-weight:500}.shepherd-general .leave,.shepherd-general .delete{padding-top:4px}.shepherd-config button.danger{border-color:var(--drop);background:transparent;color:var(--drop);align-self:flex-start}.shepherd-config button.danger:hover:not(:disabled){background:var(--drop);color:var(--bg)}.shepherd-config .card-head h3{font-size:13px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--ink2);margin:0}.shepherd-config .card-sub{margin:4px 0 0;font-size:12.5px;color:var(--ink3)}.shepherd-config .card-head{margin-bottom:16px}.shepherd-config .card-body{display:flex;flex-direction:column;gap:16px}.shepherd-config .card-body>[role=alert]{margin:0;color:var(--drop);font-size:13px}.shepherd-config .card-body>[role=status]{margin:0;color:var(--ink2);font-size:13px}.shepherd-config .field{display:flex;flex-direction:column;gap:8px}.shepherd-config .card-body label{font-size:11px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--ink3)}.shepherd-config .helper{margin:0;font-size:12.5px;color:var(--ink2)}.shepherd-config .field>select{width:100%}.shepherd-config select{appearance:none;-webkit-appearance:none;-moz-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239c917a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 28px center;padding-right:44px}.shepherd-config .field__row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.shepherd-config .field__row>input{flex:1;min-width:200px}.shepherd-invites .invites{gap:12px}.shepherd-invites .invites>button{align-self:flex-start}.shepherd-config input,.shepherd-config select{padding:9px 12px;border-radius:8px;border:1px solid var(--line);background:var(--bg);color:var(--ink);font:inherit;transition:border-color .12s ease,box-shadow .12s ease}.shepherd-config input::placeholder{color:var(--ink3)}.shepherd-config input:focus,.shepherd-config select:focus{outline:none;border-color:var(--terr);box-shadow:0 0 0 3px #7a6a4824}.shepherd-config button{padding:9px 16px;border-radius:8px;border:1px solid var(--ink);background:var(--ink);color:var(--bg);font-weight:600;cursor:pointer;font:inherit;white-space:nowrap;transition:background .12s ease}.shepherd-config button:hover:not(:disabled){background:#413a2a}.shepherd-config button:disabled{opacity:.55;cursor:default}.shepherd-config ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}.shepherd-config li{display:flex;align-items:center;gap:10px;padding:10px 0;font-size:13px}.shepherd-config li+li{border-top:1px solid var(--line2)}.shepherd-config li>span:first-child{flex:1;min-width:0;font-weight:500}.shepherd-config li button{padding:5px 12px}.shepherd-config .role,.shepherd-config .token-meta{color:var(--ink3);font-size:12px}.shepherd-config .email-invite__status{margin:0;font-size:12.5px;color:var(--ink2)}.shepherd-connect-agent .install-command{position:relative}.shepherd-connect-agent pre{margin:0;padding:12px 14px;border-radius:8px;border:1px solid var(--line);background:var(--bg);color:var(--ink);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;line-height:1.5;overflow-x:auto;white-space:pre-wrap;word-break:break-word}.shepherd-config .shepherd-connect-agent .install-command__copy{position:absolute;top:7px;right:7px;display:grid;place-items:center;width:28px;height:28px;padding:0;border-radius:7px;border:0;background:transparent;color:var(--ink3);cursor:pointer;transition:background .12s ease,color .12s ease}.shepherd-config .shepherd-connect-agent .install-command__copy:hover{background:#322c2014;color:var(--ink)}.shepherd-connect-agent h4{margin:6px 0 0;font-size:11px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--ink3)}.shepherd-connect-agent .token-once{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;padding:10px 12px;border-radius:8px;background:var(--chip);border:1px solid var(--line2)}.shepherd-config .invite-result{align-self:stretch;display:flex;flex-direction:column;gap:12px;padding:14px 16px;border-radius:10px;background:var(--card);border:1px solid var(--line)}.shepherd-config .invite-result__head{display:flex;align-items:center;gap:12px}.shepherd-config .invite-result__eyebrow{flex:1;font-size:11px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--ink3)}.shepherd-config .invite-uses{font-size:12px;color:var(--ink3)}.shepherd-config .invite-result__copyrow{display:flex;align-items:center;gap:10px}.shepherd-config .invite-result__copyrow>code{flex:1;min-width:0;font-size:15px;font-weight:600;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--ink);letter-spacing:.02em;word-break:break-all}.shepherd-config .invite-result__copyrow--link{padding-top:10px;border-top:1px solid var(--line2)}.shepherd-config .invite-result__copyrow--link a{flex:1;min-width:0;font-size:12px;color:var(--ink2);word-break:break-all}.shepherd-config .invite-result .copy-btn{flex:none;padding:5px 12px;font-size:12px;font-weight:600;border-radius:7px;border:1px solid var(--line);background:var(--bg);color:var(--ink2);cursor:pointer}.shepherd-config .invite-result .copy-btn:hover{background:var(--ink);color:var(--bg);border-color:var(--ink)}.shepherd-config .invite-result .link-btn{flex:none;padding:0;font-size:12px;font-weight:600;border:0;background:transparent;color:var(--drop);cursor:pointer}.shepherd-config .invite-result .link-btn:hover{background:transparent;text-decoration:underline}.shepherd-config .revoked{color:var(--ink3);text-decoration:line-through}.shepherd-empty-state{text-align:center;color:var(--ink2);padding:48px 24px}.shepherd-empty-state button{margin-top:14px}.shepherd-feedback{position:fixed;right:20px;bottom:20px;z-index:10}.shepherd-feedback__trigger{padding:9px 16px;border-radius:999px;border:1px solid var(--ink);background:var(--ink);color:var(--bg);font-weight:600;font-size:13px;font:inherit;cursor:pointer;box-shadow:0 8px 24px #3228142e}.shepherd-feedback__trigger:hover{background:#413a2a}.shepherd-feedback__panel{position:absolute;right:0;bottom:calc(100% + 10px);width:280px;display:flex;flex-direction:column;gap:10px;padding:16px;background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 24px #3228142e}.shepherd-feedback__panel h3{margin:0;font-size:13px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--ink2)}.shepherd-feedback__panel [role=status]{margin:0;font-size:13px;color:var(--ink2)}.shepherd-feedback__panel [role=alert]{margin:0;font-size:13px;color:var(--drop)}.shepherd-feedback__types{display:flex;gap:6px}.shepherd-feedback__types button{flex:1;padding:6px 0;border-radius:8px;border:1px solid var(--line);background:transparent;color:var(--ink2);font-size:12.5px;font:inherit;cursor:pointer;transition:background .12s ease,color .12s ease}.shepherd-feedback__types button[aria-pressed=true]{background:var(--ink);color:var(--bg);border-color:var(--ink);font-weight:600}.shepherd-feedback__panel textarea{min-height:80px;padding:9px 12px;border-radius:8px;border:1px solid var(--line);background:var(--bg);color:var(--ink);font:inherit;resize:vertical}.shepherd-feedback__panel textarea::placeholder{color:var(--ink3)}.shepherd-feedback__panel textarea:focus{outline:none;border-color:var(--terr);box-shadow:0 0 0 3px #7a6a4824}.shepherd-feedback__panel>button{padding:9px 16px;border-radius:8px;border:1px solid var(--ink);background:var(--ink);color:var(--bg);font-weight:600;cursor:pointer;font:inherit}.shepherd-feedback__panel>button:hover:not(:disabled){background:#413a2a}.shepherd-feedback__panel>button:disabled{opacity:.55;cursor:default}.shepherd-modal__backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:flex;align-items:center;justify-content:center;padding:20px;background:#1e180c73}.shepherd-modal{width:100%;max-width:440px;display:flex;flex-direction:column;gap:12px;padding:22px;background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:0 16px 48px #32281447}.shepherd-modal h3{margin:0;font-size:13px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--ink2)}.shepherd-modal__body{margin:0;font-size:13.5px;line-height:1.5;color:var(--ink)}.shepherd-modal__label{font-size:12.5px;color:var(--ink2)}.shepherd-modal input{width:100%;padding:9px 12px;border-radius:8px;border:1px solid var(--line);background:var(--bg);color:var(--ink);font:inherit;transition:border-color .12s ease,box-shadow .12s ease}.shepherd-modal input:focus{outline:none;border-color:var(--terr);box-shadow:0 0 0 3px #7a6a4824}.shepherd-modal [role=alert]{margin:0;font-size:13px;color:var(--drop)}.shepherd-modal__actions{display:flex;justify-content:flex-end;gap:10px;margin-top:4px}.shepherd-modal__actions button.danger{border-color:var(--drop);background:transparent;color:var(--drop)}.shepherd-modal__actions button.danger:hover:not(:disabled){background:var(--drop);color:var(--bg)}.shepherd-modal__actions button:disabled{opacity:.55;cursor:default}
|
|
1
|
+
:root{--bg:#ece0c6;--ink:#322c20;--ink2:#6f6450;--ink3:#9c917a;--line:#d7c9ac;--line2:#e0d4b9;--live:#3d8b58;--drop:#bd4f3a;--chip:#e3d6ba;--terr:#7a6a48;--card:#f5ecd9}*{box-sizing:border-box}html,body{height:100%}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.45 Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;-webkit-font-smoothing:antialiased}.wrap{max-width:1100px;margin:0 auto;padding:40px 44px}header{display:flex;align-items:center;gap:12px;padding-bottom:18px}.brand{font-size:17px;font-weight:600}.vitals{color:var(--ink3);font-size:12.5px}.grow{flex:1}.status{font-size:12px;color:var(--ink3)}.status--ok{color:var(--live)}.status--warn{color:var(--terr)}.status--error{color:var(--drop)}.freshness{font-size:12px;color:var(--ink3)}.repo{position:relative}.repo-trig{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-family:inherit;color:var(--ink);-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid var(--line);border-radius:8px;padding:4px 10px;background:#fffaee66;cursor:pointer}.repo-trig .slash{color:var(--ink3)}.repo-menu{position:absolute;top:36px;left:0;min-width:200px;background:var(--card);border:1px solid var(--line);border-radius:10px;padding:5px;box-shadow:0 8px 24px #32281424;z-index:5}.repo-mi{display:flex;justify-content:space-between;gap:14px;padding:7px 9px;width:100%;text-align:left;border:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:inherit;color:inherit;background:transparent;border-radius:7px;font-size:13px;cursor:pointer}.repo-mi:hover{background:var(--chip)}.repo-mi.on{background:var(--chip);font-weight:600}.repo-mi .ct{font-size:11px;color:var(--ink3)}.repo-mi.all{border-top:1px solid var(--line2);margin-top:4px;padding-top:9px;color:var(--ink2)}.tabs{display:flex;gap:4px;margin-left:auto}.tab{font-size:13px;color:var(--ink2);padding:5px 11px;border:0;border-radius:7px;background:transparent;cursor:pointer;font:inherit}.tab--active{background:var(--ink);color:var(--bg)}.ws-switcher{position:relative}.ws-trig{display:inline-flex;align-items:center;gap:8px;font:inherit;font-size:13px;font-weight:600;color:var(--ink);cursor:pointer;border:1px solid var(--line);border-radius:9px;padding:5px 10px;background:var(--card)}.ws-trig:hover{border-color:var(--ink3)}.ws-trig--empty{background:transparent;border-style:dashed;border-color:var(--ink2)}.ws-avatar{width:18px;height:18px;border-radius:6px;background:var(--ink);color:var(--bg);display:grid;place-items:center;font-size:10px;font-weight:700;flex:none}.ws-avatar--sm{width:16px;height:16px;font-size:9px}.ws-plus{color:var(--ink2);font-weight:700}.ws-name{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ws-caret{color:var(--ink3);font-size:10px}.ws-menu{position:absolute;top:40px;left:0;width:240px;z-index:20;background:var(--card);border:1px solid var(--line);border-radius:11px;padding:6px;box-shadow:0 8px 24px #32281429}.ws-menu__head{margin:0;padding:6px 8px;font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink3)}.ws-menu__none{margin:0;padding:2px 8px 6px;color:var(--ink3);font-style:italic;font-size:13px}.ws-menu__list{list-style:none;margin:0;padding:0}.ws-mi{display:flex;align-items:center;gap:8px;width:100%;text-align:left;font:inherit;font-size:13px;color:var(--ink);background:transparent;border:0;border-radius:7px;padding:7px 8px;cursor:pointer}.ws-mi:hover{background:var(--chip)}.ws-mi--on{font-weight:600}.ws-mi__name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ws-mi__check{color:var(--live)}.ws-menu__actions{display:flex;flex-direction:column;margin-top:5px;padding-top:5px;border-top:1px solid var(--line2)}.ws-action{display:flex;align-items:center;gap:8px;width:100%;text-align:left;font:inherit;font-size:13px;color:var(--ink2);background:transparent;border:0;border-radius:7px;padding:8px;cursor:pointer}.ws-action:hover{background:var(--chip);color:var(--ink)}.ws-form{display:flex;flex-direction:column;gap:8px;padding:4px}.ws-form label{font-size:10px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--ink3)}.ws-form input{padding:8px 10px;border-radius:8px;border:1px solid var(--line);background:var(--bg);color:var(--ink);font:inherit}.ws-form input:focus{outline:none;border-color:var(--terr);box-shadow:0 0 0 3px #7a6a4824}.ws-form__row{display:flex;gap:8px;justify-content:flex-end}.ws-form__row button{font:inherit;font-size:13px;font-weight:600;border-radius:8px;padding:7px 14px;cursor:pointer;border:1px solid var(--ink);background:var(--ink);color:var(--bg)}.ws-form__row button:disabled{opacity:.55;cursor:default}.ws-form__back{background:transparent!important;color:var(--ink2)!important;border-color:var(--line)!important}.ws-menu__error{margin:6px 4px 2px;font-size:12.5px;color:var(--drop)}.crew{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:26px 0 32px}.person{display:inline-flex;align-items:center;gap:9px;padding:5px 13px 5px 5px;border:1px solid var(--line);border-radius:999px;background:var(--card);font-size:13px}.person--idle{opacity:.55}.avatar{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-size:10px;font-weight:700;color:#fff;flex:none}.person__name{font-weight:600}.person__doing{color:var(--ink3);font-size:12px}.board{display:grid;grid-template-columns:1fr 1px 1fr;gap:0}.board__rule{background:var(--line)}.col{padding:0 36px}.col:first-child{padding-left:0}.col:last-child{padding-right:0}.colhead{display:flex;align-items:center;gap:8px;margin-bottom:6px}.colhead h2{font-size:12px;font-weight:600;letter-spacing:.03em;margin:0;text-transform:uppercase;color:var(--ink2)}.colhead .n{font-size:11px;color:var(--ink3);background:var(--chip);border-radius:999px;padding:1px 8px}.task{padding:16px 0;border-bottom:1px solid var(--line2)}.task__r1{display:flex;align-items:center;gap:8px}.task__who{font-size:13.5px;font-weight:600}.task__tag{font-size:11px;color:var(--ink3)}.task__repo{font-size:11px;color:var(--terr);background:#7a6a481a;border-radius:4px;padding:0 6px}.task__stat{margin-left:auto;font-size:11px;font-weight:500;color:var(--ink3)}.task__stat--drop{color:var(--drop)}.livedot{width:7px;height:7px;border-radius:50%;background:var(--live);margin-left:auto}.task__intent{font-size:13.5px;margin:5px 0 0;line-height:1.45}.terr{margin-top:8px;display:flex;flex-wrap:wrap;gap:6px;align-items:center}.terr__lbl{font-size:9.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--ink3)}.glob{font-family:ui-monospace,Menlo,monospace;font-size:11px;color:var(--terr);background:#7a6a481f;border:1px solid rgba(122,106,72,.22);border-radius:5px;padding:1px 7px}.task__meta{font-size:11.5px;color:var(--ink3);margin-top:6px}.terrx{margin-top:8px}.terrx summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:6px;flex-wrap:wrap;-webkit-user-select:none;user-select:none}.terrx summary::-webkit-details-marker{display:none}.terrx .terr--full{margin-top:8px}.glob--more{cursor:pointer;color:var(--ink2);background:var(--chip);border:1px solid var(--line)}.glob--more .tw{color:var(--ink3);display:inline-block;transition:transform .15s}.terrx[open] summary .glob--more .tw{transform:rotate(90deg)}.grp{padding:16px 0;border-bottom:1px solid var(--line2)}.grp__head{display:flex;align-items:center;gap:8px}.grp__who{font-size:13.5px;font-weight:600}.grp__tag,.grp__count{font-size:11px;color:var(--ink3)}.grp__dot{width:7px;height:7px;border-radius:50%;background:var(--live);margin-left:auto}.claims{margin:10px 0 0 6px;padding-left:14px;border-left:1px solid var(--line)}.claim{padding:6px 0}.claim+.claim{border-top:1px solid var(--line2);margin-top:6px}.fold{margin-top:10px}.fold summary{list-style:none;cursor:pointer;font-size:12px;color:var(--ink2);display:inline-flex;align-items:center;gap:6px;-webkit-user-select:none;user-select:none}.fold summary::-webkit-details-marker{display:none}.fold summary .tw{display:inline-block;color:var(--ink3);transition:transform .15s}.fold[open] summary .tw{transform:rotate(90deg)}.fold__body{margin:8px 0 0 6px;padding-left:14px;border-left:1px dashed var(--line)}.covered{font-size:10.5px;color:var(--ink3);font-style:italic;margin-top:4px}.day{font-size:11px;color:var(--ink3);padding:18px 0 2px;font-weight:600}.more{margin-top:20px;font-size:12.5px;color:var(--ink2);padding:7px 13px;border:1px solid var(--line);border-radius:8px;background:#fffaee59;cursor:pointer}.empty{color:var(--ink3);font-style:italic;padding:14px 0}.chat-wrap{background:var(--card);border:1px solid var(--line);border-radius:12px;display:flex;flex-direction:column;overflow:hidden;height:calc(100vh - 150px);min-height:320px}.chat{flex:1;overflow-y:auto;padding:16px}.chat{scrollbar-width:thin;scrollbar-color:var(--line) transparent}.chat::-webkit-scrollbar{width:10px}.chat::-webkit-scrollbar-track{background:transparent}.chat::-webkit-scrollbar-thumb{background:var(--line);border-radius:999px;border:3px solid var(--card);background-clip:padding-box}.chat::-webkit-scrollbar-thumb:hover{background:var(--ink3);background-clip:padding-box}.chat__note{padding:9px 16px;font-size:11.5px;color:var(--ink3)}.msg{display:flex;gap:11px;padding:9px 0}.msg__avatar{flex:none;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:700;color:#fff}.msg__body{min-width:0;flex:1}.msg__head{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}.msg__who{font-weight:600}.msg__human{font-size:12px;color:var(--ink3)}.msg__to{font-size:11.5px;color:var(--terr)}.msg__time{font-size:11.5px;color:var(--ink3);margin-left:auto}.msg__text{margin-top:3px;padding:8px 12px;border-radius:4px 12px 12px;background:var(--chip);white-space:pre-wrap;word-break:break-word}.msg--targeted .msg__text{box-shadow:inset 3px 0 0 var(--terr)}.msg--me,.msg--me .msg__head{flex-direction:row-reverse}.msg--me .msg__time{margin-left:0;margin-right:auto}.msg--me .msg__body{display:flex;flex-direction:column;align-items:flex-end}.msg--me .msg__text{border-radius:12px 4px 12px 12px;background:#d4e7d2}.msg--me.msg--targeted .msg__text{box-shadow:inset -3px 0 0 var(--terr)}.composer{position:relative;border-top:1px solid var(--line);padding:10px 12px}.chat-form{display:flex;gap:8px}.chat-input{flex:1;padding:9px 12px;border-radius:8px;border:1px solid var(--line);background:var(--bg);color:var(--ink);font:inherit}.chat-input:focus{outline:none;border-color:var(--terr)}.chat-send{padding:9px 16px;border-radius:8px;border:1px solid var(--ink);background:var(--ink);color:var(--bg);font-weight:600;cursor:pointer;font:inherit}.chat-send:disabled{opacity:.5;cursor:default}.mention-pop{position:absolute;left:12px;right:12px;bottom:56px;z-index:6;background:var(--card);border:1px solid var(--line);border-radius:10px;padding:5px;box-shadow:0 8px 24px #32281429;max-height:200px;overflow-y:auto}.mention-mi{display:flex;align-items:center;gap:9px;width:100%;text-align:left;border:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:inherit;color:inherit;background:transparent;border-radius:7px;padding:6px 8px;font-size:13px;cursor:pointer}.mention-mi:hover,.mention-mi.on{background:var(--chip)}.mention-mi .ma{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:9px;font-weight:700;color:#fff;flex:none}.gate{max-width:420px;margin:12vh auto 0;text-align:center}.gate h1{font-size:19px;margin:0 0 6px}.gate p{color:var(--ink2);margin:0 0 20px}.gate form{display:flex;gap:8px}.gate input{flex:1;padding:10px 12px;border-radius:8px;border:1px solid var(--line);background:var(--card);color:var(--ink)}.gate button{padding:10px 16px;border-radius:8px;border:1px solid var(--ink);background:var(--ink);color:var(--bg);font-weight:600;cursor:pointer}.shepherd-root{max-width:1100px;margin:0 auto;padding:40px 44px}.shepherd-root>main{padding-top:18px}.shepherd-config{display:flex;flex-direction:column}.shepherd-config h2{font-size:16px;margin:0 0 22px}.config-layout{display:flex;gap:32px;align-items:flex-start}.config-nav{flex:none;width:170px;display:flex;flex-direction:column;gap:2px;position:sticky;top:0}.shepherd-config .config-nav__item{text-align:left;font:inherit;font-size:13.5px;color:var(--ink2);background:transparent;border:0;border-radius:8px;padding:8px 12px;cursor:pointer;box-shadow:inset 2px 0 0 transparent;transition:color .12s ease,background .12s ease}.shepherd-config .config-nav .config-nav__item:hover{color:var(--ink);background:#322c200f}.shepherd-config .config-nav__item--on{color:var(--ink);font-weight:600;box-shadow:inset 2px 0 0 var(--ink)}.shepherd-config .config-nav .config-nav__item--on:hover{background:transparent}.config-panel{flex:1;min-width:0}.config-panel>section+section{margin-top:26px;padding-top:26px;border-top:1px solid var(--line2)}.config-none{color:var(--ink2);font-size:13.5px;max-width:520px}.shepherd-config .readonly-value{margin:0;font-size:15px;color:var(--ink);padding:1px 0;font-weight:500}.shepherd-general .leave,.shepherd-general .delete{padding-top:4px}.shepherd-config button.danger{border-color:var(--drop);background:transparent;color:var(--drop);align-self:flex-start}.shepherd-config button.danger:hover:not(:disabled){background:var(--drop);color:var(--bg)}.shepherd-config .card-head h3{font-size:13px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--ink2);margin:0}.shepherd-config .card-sub{margin:4px 0 0;font-size:12.5px;color:var(--ink3)}.shepherd-config .card-head{margin-bottom:16px}.shepherd-config .card-body{display:flex;flex-direction:column;gap:16px}.shepherd-config .card-body>[role=alert]{margin:0;color:var(--drop);font-size:13px}.shepherd-config .card-body>[role=status]{margin:0;color:var(--ink2);font-size:13px}.shepherd-config .field{display:flex;flex-direction:column;gap:8px}.shepherd-config .card-body label{font-size:11px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--ink3)}.shepherd-config .helper{margin:0;font-size:12.5px;color:var(--ink2)}.shepherd-config .field>select{width:100%}.shepherd-config .field__row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.shepherd-config .field__row>input{flex:1;min-width:200px}.shepherd-invites .invites{gap:12px}.shepherd-invites .invites>button{align-self:flex-start}.shepherd-config input,.shepherd-config select{padding:9px 12px;border-radius:8px;border:1px solid var(--line);background-color:var(--bg);color:var(--ink);font:inherit;transition:border-color .12s ease,box-shadow .12s ease}.shepherd-config input::placeholder{color:var(--ink3)}.shepherd-config input:focus,.shepherd-config select:focus{outline:none;border-color:var(--terr);box-shadow:0 0 0 3px #7a6a4824}.shepherd-config select{appearance:none;-webkit-appearance:none;-moz-appearance:none;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236f6450' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;padding-right:40px}.shepherd-config select:hover:not(:disabled){border-color:var(--terr)}.shepherd-config button{padding:9px 16px;border-radius:8px;border:1px solid var(--ink);background:var(--ink);color:var(--bg);font-weight:600;cursor:pointer;font:inherit;white-space:nowrap;transition:background .12s ease}.shepherd-config button:hover:not(:disabled){background:#413a2a}.shepherd-config button:disabled{opacity:.55;cursor:default}.shepherd-config ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}.shepherd-config li{display:flex;align-items:center;gap:10px;padding:10px 0;font-size:13px}.shepherd-config li+li{border-top:1px solid var(--line2)}.shepherd-config li>span:first-child{flex:1;min-width:0;font-weight:500}.shepherd-config li button{padding:5px 12px}.shepherd-config .role,.shepherd-config .token-meta{color:var(--ink3);font-size:12px}.shepherd-config .email-invite__status{margin:0;font-size:12.5px;color:var(--ink2)}.shepherd-connect-agent .install-command{position:relative}.shepherd-connect-agent pre{margin:0;padding:12px 14px;border-radius:8px;border:1px solid var(--line);background:var(--bg);color:var(--ink);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;line-height:1.5;overflow-x:auto;white-space:pre-wrap;word-break:break-word}.shepherd-config .shepherd-connect-agent .install-command__copy{position:absolute;top:7px;right:7px;display:grid;place-items:center;width:28px;height:28px;padding:0;border-radius:7px;border:0;background:transparent;color:var(--ink3);cursor:pointer;transition:background .12s ease,color .12s ease}.shepherd-config .shepherd-connect-agent .install-command__copy:hover{background:#322c2014;color:var(--ink)}.shepherd-connect-agent h4{margin:6px 0 0;font-size:11px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--ink3)}.shepherd-connect-agent .token-once{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;padding:10px 12px;border-radius:8px;background:var(--chip);border:1px solid var(--line2)}.shepherd-config .invite-result{align-self:stretch;display:flex;flex-direction:column;gap:12px;padding:14px 16px;border-radius:10px;background:var(--card);border:1px solid var(--line)}.shepherd-config .invite-result__head{display:flex;align-items:center;gap:12px}.shepherd-config .invite-result__eyebrow{flex:1;font-size:11px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--ink3)}.shepherd-config .invite-uses{font-size:12px;color:var(--ink3)}.shepherd-config .invite-result__copyrow{display:flex;align-items:center;gap:10px}.shepherd-config .invite-result__copyrow>code{flex:1;min-width:0;font-size:15px;font-weight:600;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--ink);letter-spacing:.02em;word-break:break-all}.shepherd-config .invite-result__copyrow--link{padding-top:10px;border-top:1px solid var(--line2)}.shepherd-config .invite-result__copyrow--link a{flex:1;min-width:0;font-size:12px;color:var(--ink2);word-break:break-all}.shepherd-config .invite-result .copy-btn{flex:none;padding:5px 12px;font-size:12px;font-weight:600;border-radius:7px;border:1px solid var(--line);background:var(--bg);color:var(--ink2);cursor:pointer}.shepherd-config .invite-result .copy-btn:hover{background:var(--ink);color:var(--bg);border-color:var(--ink)}.shepherd-config .invite-result .link-btn{flex:none;padding:0;font-size:12px;font-weight:600;border:0;background:transparent;color:var(--drop);cursor:pointer}.shepherd-config .invite-result .link-btn:hover{background:transparent;text-decoration:underline}.shepherd-config .revoked{color:var(--ink3);text-decoration:line-through}.shepherd-empty-state{text-align:center;color:var(--ink2);padding:48px 24px}.shepherd-empty-state button{margin-top:14px}.shepherd-feedback{position:fixed;right:20px;bottom:20px;z-index:10}.shepherd-feedback__trigger{padding:9px 16px;border-radius:999px;border:1px solid var(--ink);background:var(--ink);color:var(--bg);font-weight:600;font-size:13px;font:inherit;cursor:pointer;box-shadow:0 8px 24px #3228142e}.shepherd-feedback__trigger:hover{background:#413a2a}.shepherd-feedback__panel{position:absolute;right:0;bottom:calc(100% + 10px);width:280px;display:flex;flex-direction:column;gap:10px;padding:16px;background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 24px #3228142e}.shepherd-feedback__panel h3{margin:0;font-size:13px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--ink2)}.shepherd-feedback__panel [role=status]{margin:0;font-size:13px;color:var(--ink2)}.shepherd-feedback__panel [role=alert]{margin:0;font-size:13px;color:var(--drop)}.shepherd-feedback__types{display:flex;gap:6px}.shepherd-feedback__types button{flex:1;padding:6px 0;border-radius:8px;border:1px solid var(--line);background:transparent;color:var(--ink2);font-size:12.5px;font:inherit;cursor:pointer;transition:background .12s ease,color .12s ease}.shepherd-feedback__types button[aria-pressed=true]{background:var(--ink);color:var(--bg);border-color:var(--ink);font-weight:600}.shepherd-feedback__panel textarea{min-height:80px;padding:9px 12px;border-radius:8px;border:1px solid var(--line);background:var(--bg);color:var(--ink);font:inherit;resize:vertical}.shepherd-feedback__panel textarea::placeholder{color:var(--ink3)}.shepherd-feedback__panel textarea:focus{outline:none;border-color:var(--terr);box-shadow:0 0 0 3px #7a6a4824}.shepherd-feedback__panel>button{padding:9px 16px;border-radius:8px;border:1px solid var(--ink);background:var(--ink);color:var(--bg);font-weight:600;cursor:pointer;font:inherit}.shepherd-feedback__panel>button:hover:not(:disabled){background:#413a2a}.shepherd-feedback__panel>button:disabled{opacity:.55;cursor:default}.shepherd-modal__backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:flex;align-items:center;justify-content:center;padding:20px;background:#1e180c73}.shepherd-modal{width:100%;max-width:440px;display:flex;flex-direction:column;gap:12px;padding:22px;background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:0 16px 48px #32281447}.shepherd-modal h3{margin:0;font-size:13px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--ink2)}.shepherd-modal__body{margin:0;font-size:13.5px;line-height:1.5;color:var(--ink)}.shepherd-modal__label{font-size:12.5px;color:var(--ink2)}.shepherd-modal input{width:100%;padding:9px 12px;border-radius:8px;border:1px solid var(--line);background:var(--bg);color:var(--ink);font:inherit;transition:border-color .12s ease,box-shadow .12s ease}.shepherd-modal input:focus{outline:none;border-color:var(--terr);box-shadow:0 0 0 3px #7a6a4824}.shepherd-modal [role=alert]{margin:0;font-size:13px;color:var(--drop)}.shepherd-modal__actions{display:flex;justify-content:flex-end;gap:10px;margin-top:4px}.shepherd-modal__actions button.danger{border-color:var(--drop);background:transparent;color:var(--drop)}.shepherd-modal__actions button.danger:hover:not(:disabled){background:var(--drop);color:var(--bg)}.shepherd-modal__actions button:disabled{opacity:.55;cursor:default}
|
package/dist/selfhost/index.html
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>Shepherd</title>
|
|
7
|
-
<script type="module" crossorigin src="/assets/index
|
|
8
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
7
|
+
<script type="module" crossorigin src="/assets/index--_PPE03M.js"></script>
|
|
8
|
+
<link rel="stylesheet" crossorigin href="/assets/index-dBmCZSQx.css">
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
|
11
11
|
<div id="root"></div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@korso/shepherd-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Auth-agnostic React UI library for the Shepherd wallboard (Dashboard, client, provider). Host injects auth; the library never reads tokens.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "AGPL-3.0-only",
|
|
File without changes
|