@hachej/boring-workspace 0.1.32 → 0.1.34
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/{FileTree-BltQETt9.js → FileTree-DWbh0xNI.js} +1 -1
- package/dist/{MarkdownEditor-heUJdK4j.js → MarkdownEditor-BhLjIyPQ.js} +1 -1
- package/dist/{WorkspaceLoadingState-InXsc_8G.js → WorkspaceLoadingState-RVGURLJy.js} +1 -1
- package/dist/{WorkspaceProvider-Cg-J1wxr.js → WorkspaceProvider-hCE2wXKZ.js} +1287 -1257
- package/dist/app-front.d.ts +3 -0
- package/dist/app-front.js +238 -235
- package/dist/app-server.d.ts +11 -8
- package/dist/app-server.js +603 -79
- package/dist/{createInMemoryBridge-HJopAIbo.d.ts → createInMemoryBridge-zb8MpO60.d.ts} +11 -1
- package/dist/runtime-server.d.ts +47 -0
- package/dist/runtime-server.js +32 -0
- package/dist/server.d.ts +63 -25
- package/dist/server.js +549 -46
- package/dist/testing.js +1 -1
- package/dist/workspace.css +5 -0
- package/dist/workspace.d.ts +4 -1
- package/dist/workspace.js +5 -5
- package/docs/PLUGIN_SYSTEM.md +5 -6
- package/package.json +9 -3
package/dist/testing.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as Ba } from "react/jsx-runtime";
|
|
2
2
|
import * as Pa from "react";
|
|
3
3
|
import { createElement as is, useMemo as wn, useLayoutEffect as us, isValidElement as ss, cloneElement as ds, useSyncExternalStore as Gi } from "react";
|
|
4
|
-
import { h as cs, q as fs, o as ps } from "./WorkspaceProvider-
|
|
4
|
+
import { h as cs, q as fs, o as ps } from "./WorkspaceProvider-hCE2wXKZ.js";
|
|
5
5
|
import { d as ms } from "./panel-DnvDNQac.js";
|
|
6
6
|
import * as bs from "react-dom/test-utils";
|
|
7
7
|
import ka from "react-dom";
|
package/dist/workspace.css
CHANGED
|
@@ -2917,6 +2917,11 @@
|
|
|
2917
2917
|
opacity: 50%;
|
|
2918
2918
|
}
|
|
2919
2919
|
}
|
|
2920
|
+
.disabled\:opacity-60 {
|
|
2921
|
+
&:disabled {
|
|
2922
|
+
opacity: 60%;
|
|
2923
|
+
}
|
|
2924
|
+
}
|
|
2920
2925
|
.aria-selected\:bg-\[color\:oklch\(from_var\(--accent\)_l_c_h\/0\.10\)\] {
|
|
2921
2926
|
&[aria-selected="true"] {
|
|
2922
2927
|
background-color: oklch(from var(--accent) l c h/0.10);
|
package/dist/workspace.d.ts
CHANGED
|
@@ -1337,7 +1337,7 @@ export declare interface ResponsiveDockviewShellProps {
|
|
|
1337
1337
|
|
|
1338
1338
|
export declare type SerializedLayout = Parameters<DockviewApi["fromJSON"]>[0];
|
|
1339
1339
|
|
|
1340
|
-
export declare function SessionBrowser({ sessions, activeId, onSwitch, onCreate, onDelete, onClose, className, }: SessionBrowserProps): JSX.Element;
|
|
1340
|
+
export declare function SessionBrowser({ sessions, activeId, onSwitch, onCreate, onDelete, onLoadMore, hasMore, loadingMore, onClose, className, }: SessionBrowserProps): JSX.Element;
|
|
1341
1341
|
|
|
1342
1342
|
export declare interface SessionBrowserProps {
|
|
1343
1343
|
sessions: SessionItem[];
|
|
@@ -1345,6 +1345,9 @@ export declare interface SessionBrowserProps {
|
|
|
1345
1345
|
onSwitch?: (id: string) => void;
|
|
1346
1346
|
onCreate?: () => void;
|
|
1347
1347
|
onDelete?: (id: string) => void;
|
|
1348
|
+
onLoadMore?: () => void;
|
|
1349
|
+
hasMore?: boolean;
|
|
1350
|
+
loadingMore?: boolean;
|
|
1348
1351
|
onClose?: () => void;
|
|
1349
1352
|
className?: string;
|
|
1350
1353
|
}
|
package/dist/workspace.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
var V = Object.defineProperty;
|
|
2
2
|
var X = (e, t, a) => t in e ? V(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
|
|
3
3
|
var T = (e, t, a) => X(e, typeof t != "symbol" ? t + "" : t, a);
|
|
4
|
-
import { u as K, p as Q, a as Y, b as Z, D as ee } from "./WorkspaceProvider-
|
|
5
|
-
import { A as Je, C as Ge, c as Ve, d as Xe, e as Qe, F as Ye, f as Ze, M as et, g as tt, P as at, h as rt, i as nt, j as st, k as ot, R as it, S as lt, l as ct, m as dt, T as ut, U as pt, W as ft, n as mt, o as ht, q as gt, r as bt, s as yt, t as vt, v as xt, w as kt, x as wt, y as Pt, z as St, B as Ct, E as Nt, G as Rt, H as Et, I as Tt, J as It, K as Ot, L as Ft, N as Lt, O as Mt, Q as Bt, V as Wt, X as Dt, Y as Kt, Z as $t, _ as jt, $ as zt, a0 as Ht, a1 as Ut, a2 as _t, a3 as qt, a4 as At, a5 as Jt, a6 as Gt, a7 as Vt, a8 as Xt, a9 as Qt, aa as Yt, ab as Zt, ac as ea, ad as ta, ae as aa, af as ra, ag as na, ah as sa, ai as oa, aj as ia, ak as la, al as ca, am as da, an as ua, ao as pa, ap as fa, aq as ma, ar as ha } from "./WorkspaceProvider-
|
|
4
|
+
import { u as K, p as Q, a as Y, b as Z, D as ee } from "./WorkspaceProvider-hCE2wXKZ.js";
|
|
5
|
+
import { A as Je, C as Ge, c as Ve, d as Xe, e as Qe, F as Ye, f as Ze, M as et, g as tt, P as at, h as rt, i as nt, j as st, k as ot, R as it, S as lt, l as ct, m as dt, T as ut, U as pt, W as ft, n as mt, o as ht, q as gt, r as bt, s as yt, t as vt, v as xt, w as kt, x as wt, y as Pt, z as St, B as Ct, E as Nt, G as Rt, H as Et, I as Tt, J as It, K as Ot, L as Ft, N as Lt, O as Mt, Q as Bt, V as Wt, X as Dt, Y as Kt, Z as $t, _ as jt, $ as zt, a0 as Ht, a1 as Ut, a2 as _t, a3 as qt, a4 as At, a5 as Jt, a6 as Gt, a7 as Vt, a8 as Xt, a9 as Qt, aa as Yt, ab as Zt, ac as ea, ad as ta, ae as aa, af as ra, ag as na, ah as sa, ai as oa, aj as ia, ak as la, al as ca, am as da, an as ua, ao as pa, ap as fa, aq as ma, ar as ha } from "./WorkspaceProvider-hCE2wXKZ.js";
|
|
6
6
|
import { c as C } from "./utils-B6yFEsav.js";
|
|
7
|
-
import { C as ba, T as ya, W as va, b as xa } from "./WorkspaceLoadingState-
|
|
7
|
+
import { C as ba, T as ya, W as va, b as xa } from "./WorkspaceLoadingState-RVGURLJy.js";
|
|
8
8
|
import { jsx as r, jsxs as g, Fragment as te } from "react/jsx-runtime";
|
|
9
9
|
import { Button as P, Sheet as ae, SheetContent as re, SheetHeader as ne, SheetTitle as se, SheetDescription as oe, EmptyState as ie, Kbd as I, ErrorState as le, IconButton as O } from "@hachej/boring-ui-kit";
|
|
10
10
|
import { Toaster as wa, dismissToast as Pa, toast as Sa } from "@hachej/boring-ui-kit";
|
|
11
11
|
import { useSyncExternalStore as $, useState as N, useEffect as k, useRef as S, useCallback as b, useMemo as w, Suspense as ce, Component as de } from "react";
|
|
12
12
|
import { C as Na, c as Ra } from "./CodeEditor-DQqOn4xz.js";
|
|
13
|
-
import { FileTree as Ta } from "./FileTree-
|
|
14
|
-
import { MarkdownEditor as Oa } from "./MarkdownEditor-
|
|
13
|
+
import { FileTree as Ta } from "./FileTree-DWbh0xNI.js";
|
|
14
|
+
import { MarkdownEditor as Oa } from "./MarkdownEditor-BhLjIyPQ.js";
|
|
15
15
|
import { MenuIcon as ue, PanelLeftOpenIcon as pe, PanelLeftCloseIcon as fe, PinIcon as me, CheckIcon as he, CopyIcon as ge } from "lucide-react";
|
|
16
16
|
import { d as La } from "./panel-DnvDNQac.js";
|
|
17
17
|
function We() {
|
package/docs/PLUGIN_SYSTEM.md
CHANGED
|
@@ -243,14 +243,13 @@ plugins. That template is an app/internal publishable package example.
|
|
|
243
243
|
|
|
244
244
|
### 4.7 `pluginHotReload`
|
|
245
245
|
|
|
246
|
-
`createWorkspaceAgentServer({ pluginHotReload })` controls
|
|
247
|
-
|
|
246
|
+
`createWorkspaceAgentServer({ pluginHotReload })` controls dynamic Pi/package
|
|
247
|
+
refresh through the canonical `/api/v1/agent/reload` path.
|
|
248
248
|
|
|
249
|
-
- `true` (default):
|
|
250
|
-
`/api/v1/agent
|
|
251
|
-
resources on `/api/v1/agent/reload`.
|
|
249
|
+
- `true` (default): keeps `/api/v1/agent-plugins/events` active and refreshes
|
|
250
|
+
discovered plugin Pi resources on `/api/v1/agent/reload`.
|
|
252
251
|
- `false`: static discovery/listing remains available, but package resources
|
|
253
|
-
are snapped once at boot and
|
|
252
|
+
are snapped once at boot and canonical reload skips plugin hot-refresh work.
|
|
254
253
|
|
|
255
254
|
---
|
|
256
255
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hachej/boring-workspace",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.34",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Workspace UI, plugin, and bridge package for composing chat, files, catalogs, editors, and app-specific panes.",
|
|
@@ -49,6 +49,11 @@
|
|
|
49
49
|
"import": "./dist/server.js",
|
|
50
50
|
"default": "./dist/server.js"
|
|
51
51
|
},
|
|
52
|
+
"./runtime-server": {
|
|
53
|
+
"types": "./dist/runtime-server.d.ts",
|
|
54
|
+
"import": "./dist/runtime-server.js",
|
|
55
|
+
"default": "./dist/runtime-server.js"
|
|
56
|
+
},
|
|
52
57
|
"./events": {
|
|
53
58
|
"types": "./dist/events.d.ts",
|
|
54
59
|
"import": "./dist/events.js"
|
|
@@ -130,8 +135,9 @@
|
|
|
130
135
|
"tailwind-merge": "^2.0.0",
|
|
131
136
|
"zod": "^3.23.0",
|
|
132
137
|
"zustand": "^5.0.0",
|
|
133
|
-
"@hachej/boring-agent": "0.1.
|
|
134
|
-
"@hachej/boring-ui-kit": "0.1.
|
|
138
|
+
"@hachej/boring-agent": "0.1.34",
|
|
139
|
+
"@hachej/boring-ui-kit": "0.1.34",
|
|
140
|
+
"@hachej/boring-ui-plugin-cli": "0.1.34"
|
|
135
141
|
},
|
|
136
142
|
"devDependencies": {
|
|
137
143
|
"@tailwindcss/postcss": "^4.0.0",
|