@hachej/boring-workspace 0.1.24 → 0.1.27
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-DjPzfDMq.js → FileTree-DDO-RrZ8.js} +1 -1
- package/dist/{MarkdownEditor-BbSy0bLV.js → MarkdownEditor-Bx5InUeG.js} +1 -1
- package/dist/{WorkspaceLoadingState-fccm3AQg.js → WorkspaceLoadingState-DuLadpix.js} +1 -1
- package/dist/{WorkspaceProvider-BW4wzbpR.js → WorkspaceProvider-CpMMNtLh.js} +2319 -2215
- package/dist/app-front.js +361 -328
- package/dist/app-server.d.ts +9 -2
- package/dist/app-server.js +667 -566
- package/dist/createInMemoryBridge--ZFPAgXy.d.ts +161 -0
- package/dist/server.d.ts +41 -68
- package/dist/server.js +155 -26
- package/dist/testing.js +1 -1
- package/dist/workspace.js +5 -5
- package/package.json +3 -3
- package/dist/createInMemoryBridge-DLckqafe.d.ts +0 -61
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, p as fs, o as ps } from "./WorkspaceProvider-
|
|
4
|
+
import { h as cs, p as fs, o as ps } from "./WorkspaceProvider-CpMMNtLh.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.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
var V = Object.defineProperty;
|
|
2
2
|
var X = (e, r, t) => r in e ? V(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;
|
|
3
3
|
var T = (e, r, t) => X(e, typeof r != "symbol" ? r + "" : r, t);
|
|
4
|
-
import { u as z, a as G, b as Q, D as Y } from "./WorkspaceProvider-
|
|
5
|
-
import { A as ze, C as Ke, c as je, d as $e, e as _e, F as He, f as Ue, M as Ae, g as qe, P as Je, h as Ve, i as Xe, j as Ge, k as Qe, R as Ye, S as Ze, l as et, m as tt, T as at, U as rt, W as nt, n as st, o as ot, p as it, q as lt, r as ct, s as dt, t as ut, v as pt, w as mt, x as ht, y as ft, z as gt, B as bt, E as yt, G as vt, H as xt, I as Pt, J as St, K as kt, L as Ct, N as wt, O as Nt, Q as Et, V as Rt, X as Tt, Y as It, Z as Ot, _ as Ft, $ as Mt, a0 as Lt, a1 as Bt, a2 as Wt, a3 as Dt, a4 as zt, a5 as Kt, a6 as jt, a7 as $t, a8 as _t, a9 as Ht, aa as Ut, ab as At, ac as qt, ad as Jt, ae as Vt, af as Xt, ag as Gt, ah as Qt, ai as Yt, aj as Zt, ak as ea, al as ta, am as aa, an as ra, ao as na, ap as sa, aq as oa, ar as ia } from "./WorkspaceProvider-
|
|
4
|
+
import { u as z, a as G, b as Q, D as Y } from "./WorkspaceProvider-CpMMNtLh.js";
|
|
5
|
+
import { A as ze, C as Ke, c as je, d as $e, e as _e, F as He, f as Ue, M as Ae, g as qe, P as Je, h as Ve, i as Xe, j as Ge, k as Qe, R as Ye, S as Ze, l as et, m as tt, T as at, U as rt, W as nt, n as st, o as ot, p as it, q as lt, r as ct, s as dt, t as ut, v as pt, w as mt, x as ht, y as ft, z as gt, B as bt, E as yt, G as vt, H as xt, I as Pt, J as St, K as kt, L as Ct, N as wt, O as Nt, Q as Et, V as Rt, X as Tt, Y as It, Z as Ot, _ as Ft, $ as Mt, a0 as Lt, a1 as Bt, a2 as Wt, a3 as Dt, a4 as zt, a5 as Kt, a6 as jt, a7 as $t, a8 as _t, a9 as Ht, aa as Ut, ab as At, ac as qt, ad as Jt, ae as Vt, af as Xt, ag as Gt, ah as Qt, ai as Yt, aj as Zt, ak as ea, al as ta, am as aa, an as ra, ao as na, ap as sa, aq as oa, ar as ia } from "./WorkspaceProvider-CpMMNtLh.js";
|
|
6
6
|
import { c as w } from "./utils-B6yFEsav.js";
|
|
7
|
-
import { C as ca, T as da, W as ua, b as pa } from "./WorkspaceLoadingState-
|
|
7
|
+
import { C as ca, T as da, W as ua, b as pa } from "./WorkspaceLoadingState-DuLadpix.js";
|
|
8
8
|
import { jsxs as b, jsx as a, Fragment as Z } from "react/jsx-runtime";
|
|
9
9
|
import { Button as k, Sheet as ee, SheetContent as te, SheetHeader as ae, SheetTitle as re, SheetDescription as ne, EmptyState as se, Kbd as I, ErrorState as oe, IconButton as O } from "@hachej/boring-ui-kit";
|
|
10
10
|
import { Toaster as ha, dismissToast as fa, toast as ga } from "@hachej/boring-ui-kit";
|
|
11
11
|
import { useSyncExternalStore as K, useState as N, useEffect as P, useRef as C, useCallback as y, useMemo as S, Suspense as ie, Component as le } from "react";
|
|
12
12
|
import { C as ya, c as va } from "./CodeEditor-DQqOn4xz.js";
|
|
13
|
-
import { FileTree as Pa } from "./FileTree-
|
|
14
|
-
import { MarkdownEditor as ka } from "./MarkdownEditor-
|
|
13
|
+
import { FileTree as Pa } from "./FileTree-DDO-RrZ8.js";
|
|
14
|
+
import { MarkdownEditor as ka } from "./MarkdownEditor-Bx5InUeG.js";
|
|
15
15
|
import { MenuIcon as ce, PanelLeftOpenIcon as de, PanelLeftCloseIcon as ue, PinIcon as pe, CheckIcon as me, CopyIcon as he } from "lucide-react";
|
|
16
16
|
import { d as wa } from "./panel-DnvDNQac.js";
|
|
17
17
|
function Te() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hachej/boring-workspace",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.27",
|
|
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.",
|
|
@@ -130,8 +130,8 @@
|
|
|
130
130
|
"tailwind-merge": "^2.0.0",
|
|
131
131
|
"zod": "^3.23.0",
|
|
132
132
|
"zustand": "^5.0.0",
|
|
133
|
-
"@hachej/boring-agent": "0.1.
|
|
134
|
-
"@hachej/boring-ui-kit": "0.1.
|
|
133
|
+
"@hachej/boring-agent": "0.1.27",
|
|
134
|
+
"@hachej/boring-ui-kit": "0.1.27"
|
|
135
135
|
},
|
|
136
136
|
"devDependencies": {
|
|
137
137
|
"@tailwindcss/postcss": "^4.0.0",
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { PiPackageSource, PluginSkillSource, ProvisionWorkspaceRuntimeOptions } from '@hachej/boring-agent/server';
|
|
2
|
-
import { FastifyPluginAsync } from 'fastify';
|
|
3
|
-
import { A as AgentTool, U as UiBridge } from './ui-bridge-Bdgl2hR8.js';
|
|
4
|
-
|
|
5
|
-
type WorkspaceRuntimeProvisioning = NonNullable<ProvisionWorkspaceRuntimeOptions["plugins"][number]["provisioning"]>;
|
|
6
|
-
interface WorkspaceServerPlugin {
|
|
7
|
-
id: string;
|
|
8
|
-
label?: string;
|
|
9
|
-
/**
|
|
10
|
-
* Native Pi package sources required by this workspace integration.
|
|
11
|
-
* Workspace declares them; @hachej/boring-agent applies them through Pi's native
|
|
12
|
-
* resource loader without asking Pi packages to export Boring adapters.
|
|
13
|
-
*/
|
|
14
|
-
piPackages?: PiPackageSource[];
|
|
15
|
-
/**
|
|
16
|
-
* Native pi extension entrypoints contributed by this plugin.
|
|
17
|
-
* Passed to DefaultResourceLoader.additionalExtensionPaths so pi owns jiti
|
|
18
|
-
* loading and ctx.reload() re-imports fresh source.
|
|
19
|
-
*/
|
|
20
|
-
extensionPaths?: string[];
|
|
21
|
-
systemPrompt?: string;
|
|
22
|
-
skills?: PluginSkillSource[];
|
|
23
|
-
agentTools?: AgentTool[];
|
|
24
|
-
provisioning?: WorkspaceRuntimeProvisioning;
|
|
25
|
-
routes?: FastifyPluginAsync;
|
|
26
|
-
/** UI state keys owned by this plugin that browser state PUTs must not overwrite. */
|
|
27
|
-
preservedUiStateKeys?: string[];
|
|
28
|
-
}
|
|
29
|
-
declare function validateServerPlugin(plugin: WorkspaceServerPlugin): void;
|
|
30
|
-
declare function defineServerPlugin<T extends WorkspaceServerPlugin>(plugin: T): T;
|
|
31
|
-
|
|
32
|
-
interface ServerBootstrapOptions {
|
|
33
|
-
plugins?: WorkspaceServerPlugin[];
|
|
34
|
-
defaults?: WorkspaceServerPlugin[];
|
|
35
|
-
excludeDefaults?: string[];
|
|
36
|
-
}
|
|
37
|
-
type WorkspaceRuntimeProvisioningInput = ProvisionWorkspaceRuntimeOptions["plugins"][number];
|
|
38
|
-
type WorkspaceProvisioningContribution = {
|
|
39
|
-
id: string;
|
|
40
|
-
provisioning: NonNullable<WorkspaceRuntimeProvisioningInput["provisioning"]>;
|
|
41
|
-
};
|
|
42
|
-
type WorkspaceRouteContribution = {
|
|
43
|
-
id: string;
|
|
44
|
-
routes: FastifyPluginAsync;
|
|
45
|
-
};
|
|
46
|
-
interface ServerBootstrapResult {
|
|
47
|
-
registered: string[];
|
|
48
|
-
systemPromptAppend: string;
|
|
49
|
-
piPackages: PiPackageSource[];
|
|
50
|
-
extensionPaths: string[];
|
|
51
|
-
agentTools: AgentTool[];
|
|
52
|
-
runtimePlugins: WorkspaceRuntimeProvisioningInput[];
|
|
53
|
-
provisioningContributions: WorkspaceProvisioningContribution[];
|
|
54
|
-
routeContributions: WorkspaceRouteContribution[];
|
|
55
|
-
preservedUiStateKeys: string[];
|
|
56
|
-
}
|
|
57
|
-
declare function bootstrapServer(options: ServerBootstrapOptions): ServerBootstrapResult;
|
|
58
|
-
|
|
59
|
-
declare function createInMemoryBridge(): UiBridge;
|
|
60
|
-
|
|
61
|
-
export { type ServerBootstrapOptions as S, type WorkspaceServerPlugin as W, type WorkspaceProvisioningContribution as a, type WorkspaceRouteContribution as b, createInMemoryBridge as c, type WorkspaceRuntimeProvisioningInput as d, type ServerBootstrapResult as e, bootstrapServer as f, defineServerPlugin as g, validateServerPlugin as v };
|