@hachej/boring-workspace 0.1.33 → 0.1.35
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-SmsE0Raq.js → FileTree-CkCxHBDu.js} +1 -1
- package/dist/MarkdownEditor-CtPphEVP.js +549 -0
- package/dist/{WorkspaceLoadingState-BlvZXmFg.js → WorkspaceLoadingState-Bl-92Dly.js} +287 -252
- package/dist/WorkspaceProvider-BhRPFy5R.js +7508 -0
- package/dist/app-front.d.ts +50 -3
- package/dist/app-front.js +893 -756
- package/dist/app-server.d.ts +11 -8
- package/dist/app-server.js +609 -79
- package/dist/boring-workspace.css +1 -1
- package/dist/{createInMemoryBridge-HJopAIbo.d.ts → createInMemoryBridge-zb8MpO60.d.ts} +11 -1
- package/dist/plugin.d.ts +8 -0
- package/dist/plugin.js +8 -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 +555 -46
- package/dist/testing.js +1 -1
- package/dist/workspace.css +328 -30
- package/dist/workspace.d.ts +68 -2
- package/dist/workspace.js +31 -30
- package/docs/PLUGIN_SYSTEM.md +5 -6
- package/package.json +10 -4
- package/dist/MarkdownEditor-zbp8ezds.js +0 -540
- package/dist/WorkspaceProvider-CuIZx1ua.js +0 -6553
package/dist/app-server.d.ts
CHANGED
|
@@ -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
|
|
5
|
-
export {
|
|
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
|
|
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
|
|
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?:
|
|
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:
|
|
185
|
-
declare function readWorkspacePluginPackagePiSnapshot(pluginDirs:
|
|
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 {
|