@hachej/boring-workspace 0.1.23 → 0.1.26
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-D8Rmj8Bo.js → FileTree-BZGu5Ap6.js} +114 -104
- package/dist/{MarkdownEditor-DKC4gNT4.js → MarkdownEditor-DshmttZM.js} +9 -9
- package/dist/{WorkspaceLoadingState-hKrnYCL3.js → WorkspaceLoadingState-DVCLcOQu.js} +167 -146
- package/dist/WorkspaceProvider-DQ-325Qs.js +6367 -0
- package/dist/app-front.d.ts +114 -2
- package/dist/app-front.js +787 -333
- package/dist/app-server.d.ts +10 -3
- package/dist/app-server.js +744 -579
- package/dist/createInMemoryBridge--ZFPAgXy.d.ts +161 -0
- package/dist/events.d.ts +3 -0
- package/dist/{manifest-CyNNdfYz.d.ts → manifest-C2vVgH_e.d.ts} +2 -0
- package/dist/plugin.d.ts +8 -3
- package/dist/plugin.js +3 -2
- package/dist/server.d.ts +50 -70
- package/dist/server.js +192 -44
- package/dist/shared.d.ts +2 -2
- package/dist/{surface-COYagY2m.d.ts → surface-CEEkd81D.d.ts} +1 -0
- package/dist/testing.d.ts +1 -0
- package/dist/testing.js +409 -404
- package/dist/{ui-bridge-CT18yqwN.d.ts → ui-bridge-Bdgl2hR8.d.ts} +2 -0
- package/dist/workspace.css +73 -0
- package/dist/workspace.d.ts +228 -6
- package/dist/workspace.js +188 -179
- package/docs/INTERFACES.md +6 -0
- package/docs/plans/FULL_PAGE_PANEL_ROUTE_SPEC.md +633 -0
- package/package.json +6 -6
- package/dist/WorkspaceProvider-Cn0sPgaB.js +0 -5976
- package/dist/createInMemoryBridge-CYNW1h_o.d.ts +0 -61
|
@@ -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-CT18yqwN.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 };
|