@hachej/boring-workspace 0.1.33 → 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/app-front.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { jsx as c, jsxs as te, Fragment as K } from "react/jsx-runtime";
2
2
  import { useEffect as v, useSyncExternalStore as Lr, useMemo as T, useState as _, useRef as k, useCallback as L, useLayoutEffect as Tr } from "react";
3
3
  import { ChatPanel as xr, useSessions as Or } from "@hachej/boring-agent/front";
4
- import { aj as Wr, as as Mr, at as kr, U as xt, q as Fr, au as Ur, u as Gt, ag as Gr, av as Cr } from "./WorkspaceProvider-CuIZx1ua.js";
5
- import { T as $r, C as Ir, r as Ot, w as qr, W as Wt } from "./WorkspaceLoadingState-BlvZXmFg.js";
4
+ import { aj as Wr, as as Mr, at as kr, U as xt, q as Fr, au as Ur, u as Gt, ag as Gr, av as Cr } from "./WorkspaceProvider-hCE2wXKZ.js";
5
+ import { T as $r, C as Ir, r as Ot, w as qr, W as Wt } from "./WorkspaceLoadingState-RVGURLJy.js";
6
6
  import { Sun as jr, Moon as Br } from "lucide-react";
7
7
  import { IconButton as Kr, ErrorState as Jr } from "@hachej/boring-ui-kit";
8
8
  function Hr() {
@@ -84,7 +84,7 @@ function Qr(e = {}) {
84
84
  function Xr(e) {
85
85
  return Lr(e.subscribe, e.getState, e.getState);
86
86
  }
87
- const Ct = ["/api/v1/tree?path=.", "/api/v1/agent/sessions"], Zr = /* @__PURE__ */ new Set([
87
+ const Ct = ["/api/v1/tree?path=."], Zr = /* @__PURE__ */ new Set([
88
88
  "WORKSPACE_NOT_READY",
89
89
  "AGENT_RUNTIME_NOT_READY",
90
90
  "RUNTIME_PROVISIONING_LOCKED"
@@ -1,8 +1,8 @@
1
1
  import { PiPackageSource, PiExtensionFactory, CreateAgentAppOptions, ProvisionWorkspaceRuntimeOptions } from '@hachej/boring-agent/server';
2
2
  export { PiPackageSource as WorkspacePiPackageSource } from '@hachej/boring-agent/server';
3
3
  import { FastifyInstance } from 'fastify';
4
- import { W as WorkspaceServerPlugin, S as ServerBootstrapOptions, B as BoringPluginFrontTargetResolver, a as WorkspaceProvisioningContribution, b as WorkspaceRouteContribution, c as createInMemoryBridge } from './createInMemoryBridge-HJopAIbo.js';
5
- export { d as ServerWorkspaceRuntimeProvisioningInput } from './createInMemoryBridge-HJopAIbo.js';
4
+ import { W as WorkspaceServerPlugin, S as ServerBootstrapOptions, B as BoringPluginSourceInput, a as BoringPluginFrontTargetResolver, b as WorkspaceProvisioningContribution, c as WorkspaceRouteContribution, d as createInMemoryBridge } from './createInMemoryBridge-zb8MpO60.js';
5
+ export { e as ServerWorkspaceRuntimeProvisioningInput } from './createInMemoryBridge-zb8MpO60.js';
6
6
  import './manifest-C2vVgH_e.js';
7
7
  import './ui-bridge-DFNem0df.js';
8
8
 
@@ -15,6 +15,10 @@ interface DirPluginEntry {
15
15
  options?: unknown;
16
16
  hotReload?: boolean;
17
17
  }
18
+ /**
19
+ * Directory-source server entries are manifest-only: missing declarations mean
20
+ * the package is front/Pi-only, while declared-but-missing entries throw loudly.
21
+ */
18
22
  /**
19
23
  * Context the resolver hands to plugin factories. Same shape as the
20
24
  * top-level `WorkspaceAgentServerPluginContext` (workspaceRoot + bridge)
@@ -86,12 +90,11 @@ interface CreateWorkspaceAgentServerOptions extends WorkspaceAgentCreateOptions,
86
90
  };
87
91
  validateUiPaths?: boolean;
88
92
  /**
89
- * Whether live plugin reload endpoints refresh discovered package plugins.
93
+ * Whether the canonical agent reload refreshes discovered package plugins.
90
94
  * When true, chat `/reload` refreshes package front/Pi metadata and reports
91
95
  * static-server restart warnings; dir-source server entries are re-imported
92
96
  * for diagnostics only. When false, initial static discovery still runs, but
93
- * dynamic Pi/system-prompt refresh and `POST /api/boring.reload` are disabled.
94
- * Defaults to true.
97
+ * dynamic Pi/system-prompt refresh is disabled. Defaults to true.
95
98
  */
96
99
  pluginHotReload?: boolean;
97
100
  /**
@@ -132,7 +135,7 @@ interface CreateWorkspaceAgentServerOptions extends WorkspaceAgentCreateOptions,
132
135
  */
133
136
  appPackageJsonPath?: string;
134
137
  /** Additional plugin collection roots to scan alongside workspace .pi/extensions and package/plugin-derived roots. */
135
- additionalBoringPluginDirs?: string[];
138
+ additionalBoringPluginDirs?: BoringPluginSourceInput[];
136
139
  /**
137
140
  * Install and advertise the boring plugin-authoring runtime.
138
141
  *
@@ -181,8 +184,8 @@ interface WorkspacePluginPackagePiSnapshot {
181
184
  systemPromptAppend?: string;
182
185
  }
183
186
  type WorkspaceRuntimeProvisioningInput = ProvisionWorkspaceRuntimeOptions["plugins"][number];
184
- declare function readWorkspacePluginPackageRuntimePlugins(pluginDirs: string[]): WorkspaceRuntimeProvisioningInput[];
185
- declare function readWorkspacePluginPackagePiSnapshot(pluginDirs: string[]): WorkspacePluginPackagePiSnapshot;
187
+ declare function readWorkspacePluginPackageRuntimePlugins(pluginDirs: BoringPluginSourceInput[]): WorkspaceRuntimeProvisioningInput[];
188
+ declare function readWorkspacePluginPackagePiSnapshot(pluginDirs: BoringPluginSourceInput[]): WorkspacePluginPackagePiSnapshot;
186
189
  declare function createWorkspaceAgentServer(opts?: CreateWorkspaceAgentServerOptions): Promise<FastifyInstance>;
187
190
 
188
191
  interface ResolveDefaultWorkspacePluginPackagePathsOptions {