@eworkbase/sdk 0.8.4 → 0.8.6

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.
@@ -72,9 +72,9 @@ declare const executionLogRecordSchema: z.ZodObject<{
72
72
  id: z.ZodString;
73
73
  createdAt: z.ZodString;
74
74
  level: z.ZodEnum<{
75
+ info: "info";
75
76
  error: "error";
76
77
  debug: "debug";
77
- info: "info";
78
78
  warn: "warn";
79
79
  }>;
80
80
  message: z.ZodString;
@@ -0,0 +1,54 @@
1
+ //#region src/build.d.ts
2
+ /**
3
+ * Shared tsdown build factory for Workbase plugins.
4
+ * Generates the Node backend bundle, browser React bundle and canonical dist/ui/index.html.
5
+ */
6
+ export interface PluginBuildCopyEntry {
7
+ readonly from: string | readonly string[];
8
+ readonly to?: string;
9
+ }
10
+ export interface PluginBuildEntryConfig {
11
+ readonly entry: Readonly<Record<string, string>>;
12
+ readonly outDir?: string;
13
+ readonly platform: "node" | "browser" | "neutral";
14
+ readonly target: string;
15
+ readonly minify?: boolean;
16
+ readonly shims?: boolean;
17
+ readonly dts?: boolean;
18
+ readonly env?: Readonly<Record<string, string>>;
19
+ readonly inputOptions?: Readonly<Record<string, unknown>>;
20
+ readonly deps?: {
21
+ readonly alwaysBundle?: readonly (string | RegExp)[];
22
+ readonly neverBundle?: readonly (string | RegExp)[];
23
+ };
24
+ readonly plugins?: readonly unknown[];
25
+ readonly copy?: readonly PluginBuildCopyEntry[];
26
+ }
27
+ export interface PluginBackendBuildOverrides {
28
+ readonly entry?: string;
29
+ readonly alwaysBundle?: readonly (string | RegExp)[];
30
+ readonly neverBundle?: readonly (string | RegExp)[];
31
+ readonly inputOptions?: Readonly<Record<string, unknown>>;
32
+ readonly copy?: readonly PluginBuildCopyEntry[];
33
+ }
34
+ export interface PluginUiBuildOverrides {
35
+ readonly entry?: string;
36
+ readonly plugins?: readonly unknown[];
37
+ readonly copy?: readonly PluginBuildCopyEntry[];
38
+ }
39
+ export interface DefinePluginBuildOptions {
40
+ /** Page <title> emitted into dist/ui/index.html. Omit only for backend-only plugins (ui: false). */
41
+ readonly title?: string;
42
+ /** Copies shared Vditor / markdown editor static assets into dist/ui. */
43
+ readonly markdownEditorAssets?: boolean;
44
+ readonly backend?: PluginBackendBuildOverrides;
45
+ /** Pass false for backend-only plugins without a browser view. */
46
+ readonly ui?: false | PluginUiBuildOverrides;
47
+ /** Additional standalone build targets (for example a stdio bridge helper). */
48
+ readonly extraEntries?: readonly PluginBuildEntryConfig[];
49
+ }
50
+ /** Creates the canonical tsdown config array for a Workbase plugin package. */
51
+ export declare function definePluginBuild(options: DefinePluginBuildOptions): PluginBuildEntryConfig[];
52
+ /** Renders the canonical Workbase plugin iframe HTML document with CSP style nonce placeholder. */
53
+ export declare function renderPluginHtml(title: string): string;
54
+ //#endregion
package/dist/build.js ADDED
@@ -0,0 +1,78 @@
1
+ import { fileURLToPath } from "node:url";
2
+ //#region src/build.ts
3
+ /**
4
+ * Shared tsdown build factory for Workbase plugins.
5
+ * Generates the Node backend bundle, browser React bundle and canonical dist/ui/index.html.
6
+ */
7
+ const DEFAULT_SDK_EXTERNAL = /^@eworkbase\/sdk(?:\/.*)?$/;
8
+ /** Creates the canonical tsdown config array for a Workbase plugin package. */
9
+ function definePluginBuild(options) {
10
+ const { backend = {}, extraEntries = [], markdownEditorAssets = false, title = "Workbase Plugin", ui } = options;
11
+ const entries = [{
12
+ entry: { plugin: backend.entry ?? "src/plugin.ts" },
13
+ platform: "node",
14
+ target: "node22",
15
+ minify: true,
16
+ shims: true,
17
+ dts: false,
18
+ ...backend.inputOptions ? { inputOptions: backend.inputOptions } : {},
19
+ deps: {
20
+ alwaysBundle: backend.alwaysBundle ?? [/.*/],
21
+ neverBundle: [DEFAULT_SDK_EXTERNAL, ...backend.neverBundle ?? []]
22
+ },
23
+ ...backend.copy?.length ? { copy: backend.copy } : {}
24
+ }, ...extraEntries];
25
+ if (ui === false) return entries;
26
+ const uiCopy = [...ui?.copy ?? []];
27
+ if (markdownEditorAssets) uiCopy.push({
28
+ from: fileURLToPath(new URL("./ui/markdown-editor-assets", import.meta.url)),
29
+ to: "dist/ui"
30
+ });
31
+ entries.push({
32
+ entry: { main: ui?.entry ?? "src/ui/main.tsx" },
33
+ outDir: "dist/ui",
34
+ platform: "browser",
35
+ target: "es2022",
36
+ minify: true,
37
+ dts: false,
38
+ env: { NODE_ENV: "production" },
39
+ deps: { alwaysBundle: [/.*/] },
40
+ plugins: [emitPluginHtml(title), ...ui?.plugins ?? []],
41
+ ...uiCopy.length ? { copy: uiCopy } : {}
42
+ });
43
+ return entries;
44
+ }
45
+ /** Renders the canonical Workbase plugin iframe HTML document with CSP style nonce placeholder. */
46
+ function renderPluginHtml(title) {
47
+ return [
48
+ "<!doctype html>",
49
+ "<html lang=\"zh-CN\">",
50
+ " <head>",
51
+ " <meta name=\"workbase-style-nonce\" content=\"__WORKBASE_STYLE_NONCE__\" />",
52
+ " <meta charset=\"UTF-8\" />",
53
+ " <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />",
54
+ " <link rel=\"stylesheet\" href=\"./style.css\" />",
55
+ ` <title>${title.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;")}</title>`,
56
+ " </head>",
57
+ " <body>",
58
+ " <div id=\"root\"></div>",
59
+ " <script type=\"module\" src=\"./main.js\"><\/script>",
60
+ " </body>",
61
+ "</html>",
62
+ ""
63
+ ].join("\n");
64
+ }
65
+ function emitPluginHtml(title) {
66
+ return {
67
+ name: "workbase-plugin-html",
68
+ generateBundle() {
69
+ this.emitFile({
70
+ type: "asset",
71
+ fileName: "index.html",
72
+ source: renderPluginHtml(title)
73
+ });
74
+ }
75
+ };
76
+ }
77
+ //#endregion
78
+ export { definePluginBuild, renderPluginHtml };
@@ -0,0 +1,131 @@
1
+ import { PluginErrorPanel } from "./ui/error-panel.js";
2
+ import { Component, memo } from "react";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ //#region src/ui/Components.dto.ts
5
+ let PluginStatusTone = /* @__PURE__ */ function(PluginStatusTone) {
6
+ PluginStatusTone["Success"] = "success";
7
+ PluginStatusTone["Warning"] = "warning";
8
+ PluginStatusTone["Danger"] = "danger";
9
+ PluginStatusTone["Info"] = "info";
10
+ PluginStatusTone["Neutral"] = "neutral";
11
+ return PluginStatusTone;
12
+ }({});
13
+ //#endregion
14
+ //#region src/ui/components.tsx
15
+ /**
16
+ * Shared React primitives for Workbase plugins (status pill, inline error, empty state, error boundary).
17
+ * Implemented with semantic HTML and SDK CSS tokens to stay zero-dependency beyond React.
18
+ */
19
+ const DEFAULT_ERROR_BOUNDARY_TITLE = "界面渲染异常";
20
+ const DEFAULT_ERROR_BOUNDARY_SCOPE = "当前插件视图。";
21
+ const DEFAULT_ERROR_BOUNDARY_RECOVERY = "可重试渲染当前视图;若反复出现,请刷新工作区或查看执行日志。";
22
+ const DEFAULT_RETRY_LABEL = "重试渲染";
23
+ const DEFAULT_DISMISS_LABEL = "关闭错误提示";
24
+ const PluginStatusPill = memo(function PluginStatusPill({ tone, label, isLoading = false, className, ...attributes }) {
25
+ return /* @__PURE__ */ jsxs("span", {
26
+ ...attributes,
27
+ "data-tone": tone,
28
+ "data-loading": isLoading || void 0,
29
+ className: joinClassNames("workbase-pill", className),
30
+ children: [isLoading ? /* @__PURE__ */ jsx("span", {
31
+ "aria-hidden": "true",
32
+ className: "workbase-pill-spinner"
33
+ }) : /* @__PURE__ */ jsx("span", {
34
+ "aria-hidden": "true",
35
+ className: "workbase-pill-dot"
36
+ }), /* @__PURE__ */ jsx("span", { children: label })]
37
+ });
38
+ });
39
+ const PluginInlineError = memo(function PluginInlineError({ message, actionLabel, onAction, isActionDisabled = false, onDismiss, dismissLabel = DEFAULT_DISMISS_LABEL, className, ...attributes }) {
40
+ return /* @__PURE__ */ jsxs("div", {
41
+ role: "alert",
42
+ ...attributes,
43
+ className: joinClassNames("workbase-inline-error", className),
44
+ children: [
45
+ /* @__PURE__ */ jsx("span", { children: message }),
46
+ actionLabel && onAction ? /* @__PURE__ */ jsx("button", {
47
+ type: "button",
48
+ disabled: isActionDisabled,
49
+ onClick: onAction,
50
+ children: actionLabel
51
+ }) : null,
52
+ onDismiss ? /* @__PURE__ */ jsx("button", {
53
+ type: "button",
54
+ className: "workbase-error-close",
55
+ "aria-label": dismissLabel,
56
+ title: dismissLabel,
57
+ onClick: onDismiss
58
+ }) : null
59
+ ]
60
+ });
61
+ });
62
+ const PluginEmptyState = memo(function PluginEmptyState({ title, description, icon, action, className, ...attributes }) {
63
+ return /* @__PURE__ */ jsxs("section", {
64
+ ...attributes,
65
+ className: joinClassNames("workbase-empty-state", className),
66
+ children: [
67
+ icon ? /* @__PURE__ */ jsx("span", {
68
+ "aria-hidden": "true",
69
+ className: "workbase-empty-icon",
70
+ children: icon
71
+ }) : null,
72
+ /* @__PURE__ */ jsx("h2", {
73
+ className: "workbase-empty-title",
74
+ children: title
75
+ }),
76
+ description ? /* @__PURE__ */ jsx("p", {
77
+ className: "workbase-empty-description",
78
+ children: description
79
+ }) : null,
80
+ action ? /* @__PURE__ */ jsx("div", {
81
+ className: "workbase-empty-action",
82
+ children: action
83
+ }) : null
84
+ ]
85
+ });
86
+ });
87
+ var PluginErrorBoundary = class extends Component {
88
+ state = {
89
+ error: null,
90
+ componentStack: null
91
+ };
92
+ static getDerivedStateFromError(error) {
93
+ return { error: error instanceof Error ? error : new Error(String(error ?? "未知渲染异常")) };
94
+ }
95
+ componentDidCatch(_error, info) {
96
+ this.setState({ componentStack: info.componentStack?.trim() || null });
97
+ }
98
+ handleReset = () => {
99
+ this.setState({
100
+ error: null,
101
+ componentStack: null
102
+ });
103
+ this.props.onReset?.();
104
+ };
105
+ render() {
106
+ const { error, componentStack } = this.state;
107
+ if (!error) return this.props.children;
108
+ const details = [error.stack || error.message, componentStack].filter(Boolean).join("\n\n");
109
+ return /* @__PURE__ */ jsx("div", {
110
+ className: "workbase-feedback-page workbase-error-boundary",
111
+ children: /* @__PURE__ */ jsx(PluginErrorPanel, {
112
+ title: this.props.title ?? DEFAULT_ERROR_BOUNDARY_TITLE,
113
+ error: error.message,
114
+ scope: this.props.scope ?? DEFAULT_ERROR_BOUNDARY_SCOPE,
115
+ recovery: this.props.recovery ?? DEFAULT_ERROR_BOUNDARY_RECOVERY,
116
+ technicalDetails: details,
117
+ children: /* @__PURE__ */ jsx("button", {
118
+ type: "button",
119
+ className: "workbase-error-retry",
120
+ onClick: this.handleReset,
121
+ children: this.props.retryLabel ?? DEFAULT_RETRY_LABEL
122
+ })
123
+ })
124
+ });
125
+ }
126
+ };
127
+ function joinClassNames(...values) {
128
+ return values.filter(Boolean).join(" ");
129
+ }
130
+ //#endregion
131
+ export { PluginStatusTone as a, PluginStatusPill as i, PluginErrorBoundary as n, PluginInlineError as r, PluginEmptyState as t };
@@ -0,0 +1,5 @@
1
+ //#region src/host-services.ts
2
+ const DEFAULT_VIEW_STATE_TOPIC = "default";
3
+ const MAXIMUM_VIEW_STATE_BYTES = 1048576;
4
+ //#endregion
5
+ export { MAXIMUM_VIEW_STATE_BYTES as n, DEFAULT_VIEW_STATE_TOPIC as t };
package/dist/index.d.ts CHANGED
@@ -1,17 +1,23 @@
1
- import { a as executionLogRecordSchema, i as executionLogEntrySchema, n as ExecutionLogEntryKind, r as ExecutionLogRecord, t as ExecutionLogEntry } from "./ExecutionLog.dto-ig9GUWhK.js";
2
- import { $ as PluginViewDefinition, A as PluginLifecycleDispatchResult, At as PluginTaskResult, B as PluginProcessOutputMode, Bt as RoleToolEnvironment, C as PluginExecutionEvidence, Ct as PluginPromptQuestion, D as PluginHookId, Dt as PluginStoreApi, E as PluginFileChange, Et as PluginStatusCatalogEntry, F as PluginLogger, Ft as PluginViewCatalogEntry, G as PluginRepositoryStatus, Gt as roleToolsProposalSchema, H as PluginProcessRunOptions, Ht as RoleToolsProposal, I as PluginOverviewCardData, It as PluginWorkflowContribution, J as PluginSharedChanges, K as PluginSetupHooks, L as PluginOverviewCardDefinition, Lt as PluginWorkflowOutput, M as PluginLifecycleOutcome, Mt as PluginToastApi, N as PluginLifecyclePolicy, Nt as PluginToastLevel, O as PluginHookResult, Ot as PluginSystemContextService, P as PluginLifecycleStatus, Pt as PluginToastOptions, Q as PluginViewContribution, R as PluginOverviewCardStatus, Rt as workflowContributionSchema, S as PluginDisposable, St as PluginPromptChoice, T as PluginExecutionStatus, Tt as PluginPromptViewRequest, U as PluginProject, Ut as roleToolEnvironmentSchema, V as PluginProcessResult, Vt as RoleToolsApplied, W as PluginRepository, Wt as roleToolsAppliedSchema, X as PluginStatusDefinition, Y as PluginStatusContribution, Z as PluginToolContribution, _ as PluginCommandOption, _t as PluginLogEntry, a as PluginCapabilityReference, at as PluginAgentContextCatalogEntry, b as PluginContextExposure, bt as PluginLogService, c as PluginCommandCategory, ct as PluginCapabilityCommandRequest, d as PluginCommandDefinition, dt as PluginColoredMessage, et as PluginViewLayout, f as PluginCommandDetails, ft as PluginCommandCatalogEntry, g as PluginCommandLogPolicy, gt as PluginInteractiveLogger, h as PluginCommandExecutionResult, ht as PluginHostServices, i as PluginCapabilityKind, it as WorkbasePluginDefinition, j as PluginLifecycleHook, jt as PluginTaskService, k as PluginInvocationContext, kt as PluginTaskDescriptor, l as PluginCommandContext, lt as PluginCapabilityResolveRequest, m as PluginCommandExecutionMode, mt as PluginExecutionService, n as PluginAgentContextDefinition, nt as PluginViewRequest, o as PluginCardAction, ot as PluginAgentPolicy, p as PluginCommandEffect, pt as PluginConfigApi, q as PluginSharedChangeKind, r as PluginAgentScope, rt as PluginWorkspace, s as PluginCommandArgument, st as PluginCapabilityCatalog, t as PluginAgentContextContribution, tt as PluginViewMethod, u as PluginCommandContribution, ut as PluginCapabilityService, v as PluginCommandTransaction, vt as PluginLogQueryRequest, w as PluginExecutionSnapshot, wt as PluginPromptType, x as PluginContributionSnapshot, xt as PluginPromptApi, y as PluginContext, yt as PluginLogQueryResult, z as PluginProcessApi, zt as PluginToolsService } from "./types-2X-_T_W_.js";
3
- export * from "zod";
4
- //#region src/publication.d.ts
5
- interface PublicationContext {
6
- readonly project: PluginProject;
7
- readonly process: PluginProcessApi;
8
- readonly signal?: AbortSignal;
1
+ import { a as executionLogRecordSchema, i as executionLogEntrySchema, n as ExecutionLogEntryKind, r as ExecutionLogRecord, t as ExecutionLogEntry } from "./ExecutionLog.dto-Bq2u5C90.js";
2
+ import { $ as WorkbasePluginDefinition, A as PluginLifecycleStatus, At as PluginToastLevel, B as PluginRepository, Bt as roleToolsAppliedSchema, C as PluginHookId, Ct as PluginStatusCatalogEntry, D as PluginLifecycleHook, Dt as PluginTaskResult, E as PluginLifecycleDispatchResult, Et as PluginTaskDescriptor, F as PluginProcessApi, Ft as PluginToolsService, G as PluginStatusContribution, H as PluginSetupHooks, I as PluginProcessOutputMode, It as RoleToolEnvironment, J as PluginViewContribution, K as PluginStatusDefinition, L as PluginProcessResult, Lt as RoleToolsApplied, M as PluginOverviewCardData, Mt as PluginViewCatalogEntry, N as PluginOverviewCardDefinition, Nt as PluginViewStatePublishOptions, O as PluginLifecycleOutcome, Ot as PluginTaskService, P as PluginOverviewCardStatus, Pt as PluginViewStateService, Q as PluginWorkspace, R as PluginProcessRunOptions, Rt as RoleToolsProposal, S as PluginFileChange, St as PluginPublicationChanges, T as PluginInvocationContext, Tt as PluginSystemContextService, U as PluginSharedChangeKind, V as PluginRepositoryStatus, Vt as roleToolsProposalSchema, W as PluginSharedChanges, X as PluginViewLayout, Y as PluginViewDefinition, Z as PluginViewMethod, _ as PluginContributionSnapshot, _t as PluginPromptApi, a as PluginCapabilityReference, at as PluginCapabilityCommandRequest, b as PluginExecutionSnapshot, bt as PluginPromptType, c as PluginCommandContribution, ct as PluginCommandCatalogEntry, d as PluginCommandEffect, dt as PluginHostServices, et as DEFAULT_VIEW_STATE_TOPIC, f as PluginCommandExecutionResult, ft as PluginInteractiveLogger, g as PluginContextExposure, gt as PluginLogService, h as PluginContext, ht as PluginLogQueryResult, i as PluginCapabilityKind, it as PluginCapabilityCatalog, j as PluginLogger, jt as PluginToastOptions, k as PluginLifecyclePolicy, kt as PluginToastApi, l as PluginCommandDefinition, lt as PluginConfigApi, m as PluginCommandTransaction, mt as PluginLogQueryRequest, n as PluginAgentContextDefinition, nt as PluginAgentContextCatalogEntry, o as PluginCardAction, ot as PluginCapabilityResolveRequest, p as PluginCommandLogPolicy, pt as PluginLogEntry, q as PluginToolContribution, r as PluginAgentScope, rt as PluginAgentPolicy, s as PluginCommandContext, st as PluginCapabilityService, t as PluginAgentContextContribution, tt as MAXIMUM_VIEW_STATE_BYTES, u as PluginCommandDetails, ut as PluginExecutionService, v as PluginDisposable, vt as PluginPromptChoice, w as PluginHookResult, wt as PluginStoreApi, x as PluginExecutionStatus, xt as PluginPromptViewRequest, y as PluginExecutionEvidence, yt as PluginPromptQuestion, z as PluginProject, zt as roleToolEnvironmentSchema } from "./types-DDEHTBRv.js";
3
+ import { ZodError, ZodType, z } from "zod";
4
+ //#region src/error.d.ts
5
+ /**
6
+ * Canonical structured plugin error recognized by the Workbase Node Bridge.
7
+ */
8
+ interface PluginErrorOptions {
9
+ readonly code: string;
10
+ readonly message: string;
11
+ readonly details?: unknown;
12
+ readonly retryable?: boolean;
9
13
  }
10
- export declare function readPublicationChanges({ project, process, signal }: PublicationContext, directory: string): Promise<{
11
- files: string[];
12
- working: Set<string>;
13
- partiallyStaged: boolean;
14
- }>;
14
+ export declare class PluginError extends Error {
15
+ readonly code: string;
16
+ readonly details?: unknown;
17
+ readonly retryable: boolean;
18
+ constructor({ code, message, details, retryable }: PluginErrorOptions);
19
+ }
20
+ export declare function createPluginError(options: PluginErrorOptions): PluginError;
15
21
  //#endregion
16
22
  //#region src/definition.d.ts
17
23
  export declare const PLUGIN_API_VERSION = 2;
@@ -19,4 +25,4 @@ type DefinedWorkbasePlugin = Readonly<WorkbasePluginDefinition>;
19
25
  export declare function definePlugin(definition: WorkbasePluginDefinition): DefinedWorkbasePlugin;
20
26
  export declare function isDefinedPlugin(value: unknown): value is DefinedWorkbasePlugin;
21
27
  //#endregion
22
- export { type DefinedWorkbasePlugin, type ExecutionLogEntry, ExecutionLogEntryKind, type ExecutionLogRecord, type PluginAgentContextCatalogEntry, type PluginAgentContextContribution, type PluginAgentContextDefinition, type PluginAgentPolicy, PluginAgentScope, type PluginCapabilityCatalog, type PluginCapabilityCommandRequest, PluginCapabilityKind, type PluginCapabilityReference, type PluginCapabilityResolveRequest, type PluginCapabilityService, type PluginCardAction, type PluginColoredMessage, type PluginCommandArgument, type PluginCommandCatalogEntry, PluginCommandCategory, type PluginCommandContext, type PluginCommandContribution, type PluginCommandDefinition, type PluginCommandDetails, PluginCommandEffect, PluginCommandExecutionMode, type PluginCommandExecutionResult, PluginCommandLogPolicy, type PluginCommandOption, PluginCommandTransaction, type PluginConfigApi, type PluginContext, PluginContextExposure, type PluginContributionSnapshot, type PluginDisposable, type PluginExecutionEvidence, type PluginExecutionService, type PluginExecutionSnapshot, PluginExecutionStatus, type PluginFileChange, PluginHookId, type PluginHookResult, type PluginHostServices, type PluginInteractiveLogger, type PluginInvocationContext, type PluginLifecycleDispatchResult, type PluginLifecycleHook, type PluginLifecycleOutcome, PluginLifecyclePolicy, PluginLifecycleStatus, type PluginLogEntry, type PluginLogQueryRequest, type PluginLogQueryResult, type PluginLogService, type PluginLogger, type PluginOverviewCardData, type PluginOverviewCardDefinition, type PluginOverviewCardStatus, type PluginProcessApi, PluginProcessOutputMode, type PluginProcessResult, type PluginProcessRunOptions, type PluginProject, type PluginPromptApi, type PluginPromptChoice, type PluginPromptQuestion, type PluginPromptType, type PluginPromptViewRequest, type PluginRepository, PluginRepositoryStatus, type PluginSetupHooks, PluginSharedChangeKind, type PluginSharedChanges, type PluginStatusCatalogEntry, type PluginStatusContribution, type PluginStatusDefinition, type PluginStoreApi, type PluginSystemContextService, type PluginTaskDescriptor, type PluginTaskResult, type PluginTaskService, type PluginToastApi, type PluginToastLevel, type PluginToastOptions, type PluginToolContribution, PluginToolsService, type PluginViewCatalogEntry, type PluginViewContribution, type PluginViewDefinition, PluginViewLayout, PluginViewMethod, type PluginViewRequest, type PluginWorkflowContribution, type PluginWorkflowOutput, type PluginWorkspace, RoleToolEnvironment, RoleToolsApplied, RoleToolsProposal, type WorkbasePluginDefinition, executionLogEntrySchema, executionLogRecordSchema, roleToolEnvironmentSchema, roleToolsAppliedSchema, roleToolsProposalSchema, workflowContributionSchema };
28
+ export { DEFAULT_VIEW_STATE_TOPIC, type DefinedWorkbasePlugin, type ExecutionLogEntry, ExecutionLogEntryKind, type ExecutionLogRecord, MAXIMUM_VIEW_STATE_BYTES, type PluginAgentContextCatalogEntry, type PluginAgentContextContribution, type PluginAgentContextDefinition, type PluginAgentPolicy, PluginAgentScope, type PluginCapabilityCatalog, type PluginCapabilityCommandRequest, PluginCapabilityKind, type PluginCapabilityReference, type PluginCapabilityResolveRequest, type PluginCapabilityService, type PluginCardAction, type PluginCommandCatalogEntry, type PluginCommandContext, type PluginCommandContribution, type PluginCommandDefinition, type PluginCommandDetails, PluginCommandEffect, type PluginCommandExecutionResult, PluginCommandLogPolicy, PluginCommandTransaction, type PluginConfigApi, type PluginContext, PluginContextExposure, type PluginContributionSnapshot, type PluginDisposable, type PluginErrorOptions, type PluginExecutionEvidence, type PluginExecutionService, type PluginExecutionSnapshot, PluginExecutionStatus, type PluginFileChange, PluginHookId, type PluginHookResult, type PluginHostServices, type PluginInteractiveLogger, type PluginInvocationContext, type PluginLifecycleDispatchResult, type PluginLifecycleHook, type PluginLifecycleOutcome, PluginLifecyclePolicy, PluginLifecycleStatus, type PluginLogEntry, type PluginLogQueryRequest, type PluginLogQueryResult, type PluginLogService, type PluginLogger, type PluginOverviewCardData, type PluginOverviewCardDefinition, type PluginOverviewCardStatus, type PluginProcessApi, PluginProcessOutputMode, type PluginProcessResult, type PluginProcessRunOptions, type PluginProject, type PluginPromptApi, type PluginPromptChoice, type PluginPromptQuestion, type PluginPromptType, type PluginPromptViewRequest, type PluginPublicationChanges, type PluginRepository, PluginRepositoryStatus, type PluginSetupHooks, PluginSharedChangeKind, type PluginSharedChanges, type PluginStatusCatalogEntry, type PluginStatusContribution, type PluginStatusDefinition, type PluginStoreApi, type PluginSystemContextService, type PluginTaskDescriptor, type PluginTaskResult, type PluginTaskService, type PluginToastApi, type PluginToastLevel, type PluginToastOptions, type PluginToolContribution, PluginToolsService, type PluginViewCatalogEntry, type PluginViewContribution, type PluginViewDefinition, PluginViewLayout, PluginViewMethod, type PluginViewStatePublishOptions, type PluginViewStateService, type PluginWorkspace, RoleToolEnvironment, RoleToolsApplied, RoleToolsProposal, type WorkbasePluginDefinition, ZodError, type ZodType, executionLogEntrySchema, executionLogRecordSchema, roleToolEnvironmentSchema, roleToolsAppliedSchema, roleToolsProposalSchema, z };