@eworkbase/sdk 0.4.2 → 0.4.4

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.
@@ -15,22 +15,6 @@ declare const executionLogEntrySchema: z.ZodObject<{
15
15
  details: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
16
  status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
17
  }, z.core.$strict>;
18
- declare const logCallSchema: z.ZodObject<{
19
- id: z.ZodString;
20
- title: z.ZodString;
21
- status: z.ZodString;
22
- createdAt: z.ZodString;
23
- operationKind: z.ZodString;
24
- hasWarnings: z.ZodBoolean;
25
- context: z.ZodObject<{
26
- finishedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
- }, z.core.$strip>;
28
- hasChildErrors: z.ZodOptional<z.ZodBoolean>;
29
- execution: z.ZodOptional<z.ZodNullable<z.ZodObject<{
30
- pluginId: z.ZodString;
31
- commandId: z.ZodString;
32
- }, z.core.$strip>>>;
33
- }, z.core.$strip>;
34
18
  /** Existing operation evidence is returned alongside entries; it is never copied into another store. */
35
19
  declare const executionLogRecordSchema: z.ZodObject<{
36
20
  id: z.ZodString;
@@ -108,9 +92,8 @@ declare const executionLogRecordSchema: z.ZodObject<{
108
92
  type ExecutionLogEntry = Omit<z.infer<typeof executionLogEntrySchema>, "kind"> & {
109
93
  readonly kind: `${ExecutionLogEntryKind}`;
110
94
  };
111
- type ExecutionLogCallRecord = z.infer<typeof logCallSchema>;
112
95
  type ExecutionLogRecord = Readonly<Omit<z.infer<typeof executionLogRecordSchema>, "entries">> & {
113
96
  readonly entries: readonly ExecutionLogEntry[];
114
97
  };
115
98
  //#endregion
116
- export { executionLogEntrySchema as a, ExecutionLogRecord as i, ExecutionLogEntry as n, executionLogRecordSchema as o, ExecutionLogEntryKind as r, ExecutionLogCallRecord as t };
99
+ export { executionLogRecordSchema as a, executionLogEntrySchema as i, ExecutionLogEntryKind as n, ExecutionLogRecord as r, ExecutionLogEntry as t };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { a as executionLogEntrySchema, i as ExecutionLogRecord, n as ExecutionLogEntry, o as executionLogRecordSchema, r as ExecutionLogEntryKind } from "./ExecutionLog.dto-CI-HpxZa.js";
2
- import { $ as PluginAgentContextCatalogEntry, A as PluginLifecycleOutcome, At as PluginToolsService, B as PluginRepositoryStatus, C as PluginExecutionStatus, Ct as PluginTaskDescriptor, D as PluginInvocationContext, Dt as PluginToastLevel, E as PluginHookResult, Et as PluginToastApi, F as PluginProcessOutputMode, Ft as roleToolsAppliedSchema, G as PluginStatusDefinition, H as PluginSharedChangeKind, I as PluginProcessResult, It as roleToolsProposalSchema, J as PluginViewDefinition, K as PluginToolContribution, L as PluginProcessRunOptions, M as PluginLifecycleStatus, Mt as RoleToolsApplied, N as PluginLogger, Nt as RoleToolsProposal, O as PluginLifecycleDispatchResult, Ot as PluginToastOptions, P as PluginProcessApi, Pt as roleToolEnvironmentSchema, Q as WorkbasePluginDefinition, R as PluginProject, S as PluginExecutionSnapshot, St as PluginSystemContextService, T as PluginHookId, Tt as PluginTaskService, U as PluginSharedChanges, V as PluginSetupHooks, W as PluginStatusContribution, X as PluginViewRequest, Y as PluginViewLayout, Z as PluginWorkspace, _ as PluginContext, _t as PluginPromptQuestion, a as PluginCapabilityReference, at as PluginColoredMessage, b as PluginDisposable, bt as PluginStatusCatalogEntry, c as PluginCommandContext, ct as PluginExecutionService, d as PluginCommandDetails, dt as PluginLogEntry, et as PluginAgentPolicy, f as PluginCommandEffect, ft as PluginLogQueryRequest, g as PluginCommandTransaction, gt as PluginPromptChoice, h as PluginCommandOption, ht as PluginPromptApi, i as PluginCapabilityKind, it as PluginCapabilityService, j as PluginLifecyclePolicy, jt as RoleToolEnvironment, k as PluginLifecycleHook, kt as PluginViewCatalogEntry, l as PluginCommandContribution, lt as PluginHostServices, m as PluginCommandExecutionResult, mt as PluginLogService, n as PluginAgentContextDefinition, nt as PluginCapabilityCommandRequest, o as PluginCommandArgument, ot as PluginCommandCatalogEntry, p as PluginCommandExecutionMode, pt as PluginLogQueryResult, q as PluginViewContribution, r as PluginAgentScope, rt as PluginCapabilityResolveRequest, s as PluginCommandCategory, st as PluginConfigApi, t as PluginAgentContextContribution, tt as PluginCapabilityCatalog, u as PluginCommandDefinition, ut as PluginInteractiveLogger, v as PluginContextExposure, vt as PluginPromptType, w as PluginFileChange, wt as PluginTaskResult, x as PluginExecutionEvidence, xt as PluginStoreApi, y as PluginContributionSnapshot, yt as PluginPromptViewRequest, z as PluginRepository } from "./types-Bv7aJizu.js";
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-DoDWh0mS.js";
3
3
  export * from "zod";
4
4
  //#region src/definition.d.ts
5
5
  export declare const PLUGIN_API_VERSION = 2;
@@ -7,4 +7,4 @@ type DefinedWorkbasePlugin = Readonly<WorkbasePluginDefinition>;
7
7
  export declare function definePlugin(definition: WorkbasePluginDefinition): DefinedWorkbasePlugin;
8
8
  export declare function isDefinedPlugin(value: unknown): value is DefinedWorkbasePlugin;
9
9
  //#endregion
10
- 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 PluginColoredMessage, type PluginCommandArgument, type PluginCommandCatalogEntry, PluginCommandCategory, type PluginCommandContext, type PluginCommandContribution, type PluginCommandDefinition, type PluginCommandDetails, PluginCommandEffect, PluginCommandExecutionMode, type PluginCommandExecutionResult, 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 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, type PluginViewRequest, type PluginWorkspace, RoleToolEnvironment, RoleToolsApplied, RoleToolsProposal, type WorkbasePluginDefinition, executionLogEntrySchema, executionLogRecordSchema, roleToolEnvironmentSchema, roleToolsAppliedSchema, roleToolsProposalSchema };
10
+ 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 };
package/dist/index.js CHANGED
@@ -70,6 +70,11 @@ let PluginCommandEffect = /* @__PURE__ */ function(PluginCommandEffect) {
70
70
  PluginCommandEffect["LongRunning"] = "longRunning";
71
71
  return PluginCommandEffect;
72
72
  }({});
73
+ let PluginCommandLogPolicy = /* @__PURE__ */ function(PluginCommandLogPolicy) {
74
+ PluginCommandLogPolicy["Always"] = "always";
75
+ PluginCommandLogPolicy["OnIssue"] = "onIssue";
76
+ return PluginCommandLogPolicy;
77
+ }({});
73
78
  let PluginCommandTransaction = /* @__PURE__ */ function(PluginCommandTransaction) {
74
79
  PluginCommandTransaction["None"] = "none";
75
80
  PluginCommandTransaction["ProjectMutation"] = "projectMutation";
@@ -123,6 +128,11 @@ let PluginContextExposure = /* @__PURE__ */ function(PluginContextExposure) {
123
128
  PluginContextExposure["Internal"] = "internal";
124
129
  return PluginContextExposure;
125
130
  }({});
131
+ let PluginViewMethod = /* @__PURE__ */ function(PluginViewMethod) {
132
+ PluginViewMethod["CardActions"] = "workbase.cardActions";
133
+ PluginViewMethod["OverviewCard"] = "workbase.overviewCard";
134
+ return PluginViewMethod;
135
+ }({});
126
136
  //#endregion
127
137
  //#region src/Tools.dto.ts
128
138
  /** Typed tool-domain contracts shared by the SDK and host bridge. */
@@ -289,4 +299,30 @@ const executionLogRecordSchema = z.object({
289
299
  context: executionContextSchema.optional()
290
300
  });
291
301
  //#endregion
292
- export { ExecutionLogEntryKind, PLUGIN_API_VERSION, PluginAgentScope, PluginCapabilityKind, PluginCommandCategory, PluginCommandEffect, PluginCommandExecutionMode, PluginCommandTransaction, PluginContextExposure, PluginExecutionStatus, PluginHookId, PluginLifecyclePolicy, PluginLifecycleStatus, PluginProcessOutputMode, PluginRepositoryStatus, PluginSharedChangeKind, PluginViewLayout, definePlugin, executionLogEntrySchema, executionLogRecordSchema, isDefinedPlugin, roleToolEnvironmentSchema, roleToolsAppliedSchema, roleToolsProposalSchema };
302
+ //#region src/WorkflowContribution.dto.ts
303
+ /** Serializable opt-in for workflow nodes and the result fields a condition may read. */
304
+ const name = z.string().trim().min(1).max(120);
305
+ const fieldKey = z.string().regex(/^[A-Za-z][A-Za-z0-9_]{0,63}$/).refine((key) => ![
306
+ "constructor",
307
+ "prototype",
308
+ "__proto__"
309
+ ].includes(key));
310
+ const outputField = z.discriminatedUnion("type", [
311
+ z.object({
312
+ type: z.literal("boolean"),
313
+ label: name
314
+ }).strict(),
315
+ z.object({
316
+ type: z.literal("number"),
317
+ label: name,
318
+ unit: name.optional()
319
+ }).strict(),
320
+ z.object({
321
+ type: z.literal("enum"),
322
+ label: name,
323
+ values: z.array(name).min(1).max(64)
324
+ }).strict()
325
+ ]);
326
+ const workflowContributionSchema = z.union([z.literal(true), z.object({ outputs: z.record(fieldKey, outputField).refine((fields) => Object.keys(fields).length <= 32) }).strict()]);
327
+ //#endregion
328
+ export { ExecutionLogEntryKind, PLUGIN_API_VERSION, PluginAgentScope, PluginCapabilityKind, PluginCommandCategory, PluginCommandEffect, PluginCommandExecutionMode, PluginCommandLogPolicy, PluginCommandTransaction, PluginContextExposure, PluginExecutionStatus, PluginHookId, PluginLifecyclePolicy, PluginLifecycleStatus, PluginProcessOutputMode, PluginRepositoryStatus, PluginSharedChangeKind, PluginViewLayout, PluginViewMethod, definePlugin, executionLogEntrySchema, executionLogRecordSchema, isDefinedPlugin, roleToolEnvironmentSchema, roleToolsAppliedSchema, roleToolsProposalSchema, workflowContributionSchema };
@@ -1,4 +1,4 @@
1
- import { D as PluginInvocationContext } from "./types-Bv7aJizu.js";
1
+ import { k as PluginInvocationContext } from "./types-DoDWh0mS.js";
2
2
  //#region src/Markdown.dto.d.ts
3
3
  interface MarkdownDocument {
4
4
  readonly path: string;
@@ -1,4 +1,4 @@
1
- import { S as PluginExecutionSnapshot, m as PluginCommandExecutionResult } from "./types-Bv7aJizu.js";
1
+ import { h as PluginCommandExecutionResult, w as PluginExecutionSnapshot } from "./types-DoDWh0mS.js";
2
2
  //#region src/ui/types.d.ts
3
3
  /**
4
4
  * Browser authoring API and transport contracts for Workbase plugin views.
@@ -14,6 +14,8 @@ interface PluginUiViewIdentity extends PluginUiContextIdentity {
14
14
  readonly title: string;
15
15
  }
16
16
  interface PluginUiInitializationPayload {
17
+ /** Accepted configuration for a view that refreshes in place. */
18
+ readonly configurationRevision?: string;
17
19
  /** Changes when the workspace is prepared again; route changes retain the same generation. */
18
20
  readonly activationGeneration?: number;
19
21
  readonly locale: string;
@@ -1,4 +1,4 @@
1
- import { i as ExecutionLogRecord, n as ExecutionLogEntry } from "./ExecutionLog.dto-CI-HpxZa.js";
1
+ import { r as ExecutionLogRecord, t as ExecutionLogEntry } from "./ExecutionLog.dto-ig9GUWhK.js";
2
2
  import { ZodType, z } from "zod";
3
3
  //#region src/Tools.dto.d.ts
4
4
  declare const roleToolEnvironmentSchema: z.ZodObject<{
@@ -99,6 +99,36 @@ interface PluginToolsService {
99
99
  readonly applyRoleTools: (proposalId: string) => Promise<RoleToolsApplied>;
100
100
  }
101
101
  //#endregion
102
+ //#region src/WorkflowContribution.dto.d.ts
103
+ declare const outputField: z.ZodDiscriminatedUnion<[z.ZodObject<{
104
+ type: z.ZodLiteral<"boolean">;
105
+ label: z.ZodString;
106
+ }, z.core.$strict>, z.ZodObject<{
107
+ type: z.ZodLiteral<"number">;
108
+ label: z.ZodString;
109
+ unit: z.ZodOptional<z.ZodString>;
110
+ }, z.core.$strict>, z.ZodObject<{
111
+ type: z.ZodLiteral<"enum">;
112
+ label: z.ZodString;
113
+ values: z.ZodArray<z.ZodString>;
114
+ }, z.core.$strict>], "type">;
115
+ declare const workflowContributionSchema: z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodObject<{
116
+ outputs: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
117
+ type: z.ZodLiteral<"boolean">;
118
+ label: z.ZodString;
119
+ }, z.core.$strict>, z.ZodObject<{
120
+ type: z.ZodLiteral<"number">;
121
+ label: z.ZodString;
122
+ unit: z.ZodOptional<z.ZodString>;
123
+ }, z.core.$strict>, z.ZodObject<{
124
+ type: z.ZodLiteral<"enum">;
125
+ label: z.ZodString;
126
+ values: z.ZodArray<z.ZodString>;
127
+ }, z.core.$strict>], "type">>;
128
+ }, z.core.$strict>]>;
129
+ type PluginWorkflowContribution = z.infer<typeof workflowContributionSchema>;
130
+ type PluginWorkflowOutput = z.infer<typeof outputField>;
131
+ //#endregion
102
132
  //#region src/host-services.d.ts
103
133
  interface PluginColoredMessage {
104
134
  readonly color?: string;
@@ -176,6 +206,7 @@ interface PluginConfigApi {
176
206
  readonly replace: (config: Readonly<Record<string, unknown>>) => Promise<Readonly<Record<string, unknown>>>;
177
207
  }
178
208
  interface PluginCommandCatalogEntry {
209
+ readonly workflow?: PluginWorkflowContribution;
179
210
  readonly background?: boolean;
180
211
  readonly agent?: PluginAgentPolicy;
181
212
  readonly arguments?: readonly PluginCommandArgument[];
@@ -214,6 +245,7 @@ interface PluginCapabilityResolveRequest {
214
245
  readonly pluginId: string;
215
246
  }
216
247
  interface PluginStatusCatalogEntry {
248
+ readonly workflow?: Exclude<PluginWorkflowContribution, true>;
217
249
  readonly description: string;
218
250
  readonly id: string;
219
251
  readonly input?: ZodType;
@@ -243,7 +275,8 @@ interface PluginCapabilityCatalog {
243
275
  }
244
276
  interface PluginCapabilityService {
245
277
  readonly catalog: () => PluginCapabilityCatalog;
246
- readonly executeCommand: (request: PluginCapabilityCommandRequest) => Promise<PluginCommandExecutionResult>;
278
+ /** OnIssue is available to automatic workspace lifecycle calls. Other calls keep full logs. */
279
+ readonly executeCommand: (request: PluginCapabilityCommandRequest, logPolicy?: PluginCommandLogPolicy) => Promise<PluginCommandExecutionResult>;
247
280
  readonly resolveContext: (request: PluginCapabilityResolveRequest) => Promise<unknown>;
248
281
  readonly resolveStatus: (request: PluginCapabilityResolveRequest) => Promise<unknown>;
249
282
  }
@@ -271,7 +304,8 @@ interface PluginLogQueryResult {
271
304
  }
272
305
  interface PluginLogService {
273
306
  readonly query: (request?: PluginLogQueryRequest) => Promise<PluginLogQueryResult>;
274
- readonly get: (executionId: string) => Promise<ExecutionLogRecord>;
307
+ /** Reads an owned execution or one of its directly owned child logs in this workspace. */
308
+ readonly get: (executionId: string, childLogId?: string) => Promise<ExecutionLogRecord>;
275
309
  }
276
310
  interface PluginTaskDescriptor {
277
311
  readonly id: string;
@@ -322,8 +356,10 @@ interface PluginHostServices {
322
356
  readonly toast: PluginToastApi;
323
357
  readonly tasks: PluginTaskService;
324
358
  readonly tools: PluginToolsService;
325
- /** Checks committed code against the configured collaboration branches without closing the workspace. */
326
359
  readonly workspace: {
360
+ /** Notifies the host to refresh one bound repository after local writes, including partial failures. */
361
+ readonly notifyRepositoryChanged: (repositoryId: string) => Promise<void>;
362
+ /** Checks committed code against the configured collaboration branches without closing the workspace. */
327
363
  readonly verifySynchronized: () => Promise<void>;
328
364
  };
329
365
  }
@@ -405,6 +441,10 @@ declare enum PluginCommandEffect {
405
441
  Immediate = "immediate",
406
442
  LongRunning = "longRunning"
407
443
  }
444
+ declare enum PluginCommandLogPolicy {
445
+ Always = "always",
446
+ OnIssue = "onIssue"
447
+ }
408
448
  declare enum PluginCommandTransaction {
409
449
  None = "none",
410
450
  ProjectMutation = "projectMutation"
@@ -472,6 +512,8 @@ declare enum PluginProcessOutputMode {
472
512
  interface PluginProcessRunOptions {
473
513
  /** Content preserves final characters and fails on bounded output overflow. */
474
514
  readonly outputMode?: PluginProcessOutputMode;
515
+ /** Maximum retained bytes per output stream; defaults to 1 MiB, capped at 16 MiB. */
516
+ readonly maximumOutputBytes?: number;
475
517
  readonly program: string;
476
518
  readonly arguments?: readonly string[];
477
519
  readonly currentDirectory?: string;
@@ -548,6 +590,7 @@ interface PluginCommandContext extends PluginInvocationContext {
548
590
  readonly executionId: string;
549
591
  }
550
592
  interface PluginCommandDefinition {
593
+ readonly workflow?: PluginWorkflowContribution;
551
594
  /** Explicit host-owned background execution; transaction must be None. */
552
595
  readonly background?: boolean;
553
596
  /** Required for ProjectMutation; read-only and evaluated before the write lease is used. */
@@ -591,18 +634,49 @@ interface PluginViewRequest {
591
634
  readonly input: unknown;
592
635
  readonly method: string;
593
636
  }
637
+ declare enum PluginViewMethod {
638
+ CardActions = "workbase.cardActions",
639
+ OverviewCard = "workbase.overviewCard"
640
+ }
641
+ /** Repository-card shortcuts; visibility, tooltip and view input belong to the plugin. */
642
+ interface PluginCardAction {
643
+ readonly id: string;
644
+ /** Lucide icon name in kebab-case. */
645
+ readonly icon: string;
646
+ readonly tooltip: string;
647
+ readonly params?: Readonly<Record<string, unknown>>;
648
+ }
649
+ type PluginOverviewCardStatus = "error" | "neutral" | "ready" | "warning" | "working";
650
+ interface PluginOverviewCardData {
651
+ readonly detail?: string;
652
+ readonly status: PluginOverviewCardStatus;
653
+ readonly value: string;
654
+ }
655
+ interface PluginOverviewCardDefinition {
656
+ /** Lucide icon name in kebab-case. */
657
+ readonly icon: string;
658
+ readonly order?: number;
659
+ readonly resolve: (context: PluginInvocationContext) => PluginOverviewCardData | Promise<PluginOverviewCardData>;
660
+ readonly tone?: "blue" | "teal" | "yellow";
661
+ }
594
662
  interface PluginViewDefinition {
663
+ /** Refresh configuration through onInit while keeping the current document and its drafts. */
664
+ readonly refreshConfigurationInPlace?: boolean;
665
+ /** Read-only; return an empty array when this repository has no available shortcut. */
666
+ readonly cardActions?: (repositoryId: string, context: PluginInvocationContext) => readonly PluginCardAction[] | Promise<readonly PluginCardAction[]>;
595
667
  readonly description?: string;
596
668
  readonly entry: string;
597
669
  readonly handlers?: Readonly<Record<string, (input: unknown, context: PluginInvocationContext) => unknown | Promise<unknown>>>;
598
670
  readonly id: string;
599
671
  readonly layout?: PluginViewLayout;
672
+ readonly overviewCard?: PluginOverviewCardDefinition;
600
673
  readonly order?: number;
601
674
  readonly request?: (request: PluginViewRequest, context: PluginInvocationContext) => unknown | Promise<unknown>;
602
675
  readonly slot: string;
603
676
  readonly title?: string;
604
677
  }
605
678
  interface PluginStatusDefinition {
679
+ readonly workflow?: Exclude<PluginWorkflowContribution, true>;
606
680
  readonly description: string;
607
681
  readonly id: string;
608
682
  readonly input?: ZodType;
@@ -684,9 +758,12 @@ interface PluginAgentContextContribution {
684
758
  readonly pluginId: string;
685
759
  }
686
760
  interface PluginViewContribution {
761
+ readonly refreshConfigurationInPlace?: boolean;
762
+ readonly hasCardActions: boolean;
687
763
  readonly entry: string;
688
764
  readonly id: string;
689
765
  readonly layout: PluginViewLayout;
766
+ readonly overviewCard?: Omit<PluginOverviewCardDefinition, "resolve">;
690
767
  readonly order: number;
691
768
  readonly pluginId: string;
692
769
  readonly slot: string;
@@ -705,4 +782,4 @@ interface PluginContributionSnapshot {
705
782
  readonly views: readonly PluginViewContribution[];
706
783
  }
707
784
  //#endregion
708
- export { PluginAgentContextCatalogEntry as $, PluginLifecycleOutcome as A, PluginToolsService as At, PluginRepositoryStatus as B, PluginExecutionStatus as C, PluginTaskDescriptor as Ct, PluginInvocationContext as D, PluginToastLevel as Dt, PluginHookResult as E, PluginToastApi as Et, PluginProcessOutputMode as F, roleToolsAppliedSchema as Ft, PluginStatusDefinition as G, PluginSharedChangeKind as H, PluginProcessResult as I, roleToolsProposalSchema as It, PluginViewDefinition as J, PluginToolContribution as K, PluginProcessRunOptions as L, PluginLifecycleStatus as M, RoleToolsApplied as Mt, PluginLogger as N, RoleToolsProposal as Nt, PluginLifecycleDispatchResult as O, PluginToastOptions as Ot, PluginProcessApi as P, roleToolEnvironmentSchema as Pt, WorkbasePluginDefinition as Q, PluginProject as R, PluginExecutionSnapshot as S, PluginSystemContextService as St, PluginHookId as T, PluginTaskService as Tt, PluginSharedChanges as U, PluginSetupHooks as V, PluginStatusContribution as W, PluginViewRequest as X, PluginViewLayout as Y, PluginWorkspace as Z, PluginContext as _, PluginPromptQuestion as _t, PluginCapabilityReference as a, PluginColoredMessage as at, PluginDisposable as b, PluginStatusCatalogEntry as bt, PluginCommandContext as c, PluginExecutionService as ct, PluginCommandDetails as d, PluginLogEntry as dt, PluginAgentPolicy as et, PluginCommandEffect as f, PluginLogQueryRequest as ft, PluginCommandTransaction as g, PluginPromptChoice as gt, PluginCommandOption as h, PluginPromptApi as ht, PluginCapabilityKind as i, PluginCapabilityService as it, PluginLifecyclePolicy as j, RoleToolEnvironment as jt, PluginLifecycleHook as k, PluginViewCatalogEntry as kt, PluginCommandContribution as l, PluginHostServices as lt, PluginCommandExecutionResult as m, PluginLogService as mt, PluginAgentContextDefinition as n, PluginCapabilityCommandRequest as nt, PluginCommandArgument as o, PluginCommandCatalogEntry as ot, PluginCommandExecutionMode as p, PluginLogQueryResult as pt, PluginViewContribution as q, PluginAgentScope as r, PluginCapabilityResolveRequest as rt, PluginCommandCategory as s, PluginConfigApi as st, PluginAgentContextContribution as t, PluginCapabilityCatalog as tt, PluginCommandDefinition as u, PluginInteractiveLogger as ut, PluginContextExposure as v, PluginPromptType as vt, PluginFileChange as w, PluginTaskResult as wt, PluginExecutionEvidence as x, PluginStoreApi as xt, PluginContributionSnapshot as y, PluginPromptViewRequest as yt, PluginRepository as z };
785
+ export { PluginViewDefinition as $, PluginLifecycleDispatchResult as A, PluginTaskResult as At, PluginProcessOutputMode as B, RoleToolEnvironment as Bt, PluginExecutionEvidence as C, PluginPromptQuestion as Ct, PluginHookId as D, PluginStoreApi as Dt, PluginFileChange as E, PluginStatusCatalogEntry as Et, PluginLogger as F, PluginViewCatalogEntry as Ft, PluginRepositoryStatus as G, roleToolsProposalSchema as Gt, PluginProcessRunOptions as H, RoleToolsProposal as Ht, PluginOverviewCardData as I, PluginWorkflowContribution as It, PluginSharedChanges as J, PluginSetupHooks as K, PluginOverviewCardDefinition as L, PluginWorkflowOutput as Lt, PluginLifecycleOutcome as M, PluginToastApi as Mt, PluginLifecyclePolicy as N, PluginToastLevel as Nt, PluginHookResult as O, PluginSystemContextService as Ot, PluginLifecycleStatus as P, PluginToastOptions as Pt, PluginViewContribution as Q, PluginOverviewCardStatus as R, workflowContributionSchema as Rt, PluginDisposable as S, PluginPromptChoice as St, PluginExecutionStatus as T, PluginPromptViewRequest as Tt, PluginProject as U, roleToolEnvironmentSchema as Ut, PluginProcessResult as V, RoleToolsApplied as Vt, PluginRepository as W, roleToolsAppliedSchema as Wt, PluginStatusDefinition as X, PluginStatusContribution as Y, PluginToolContribution as Z, PluginCommandOption as _, PluginLogEntry as _t, PluginCapabilityReference as a, PluginAgentContextCatalogEntry as at, PluginContextExposure as b, PluginLogService as bt, PluginCommandCategory as c, PluginCapabilityCommandRequest as ct, PluginCommandDefinition as d, PluginColoredMessage as dt, PluginViewLayout as et, PluginCommandDetails as f, PluginCommandCatalogEntry as ft, PluginCommandLogPolicy as g, PluginInteractiveLogger as gt, PluginCommandExecutionResult as h, PluginHostServices as ht, PluginCapabilityKind as i, WorkbasePluginDefinition as it, PluginLifecycleHook as j, PluginTaskService as jt, PluginInvocationContext as k, PluginTaskDescriptor as kt, PluginCommandContext as l, PluginCapabilityResolveRequest as lt, PluginCommandExecutionMode as m, PluginExecutionService as mt, PluginAgentContextDefinition as n, PluginViewRequest as nt, PluginCardAction as o, PluginAgentPolicy as ot, PluginCommandEffect as p, PluginConfigApi as pt, PluginSharedChangeKind as q, PluginAgentScope as r, PluginWorkspace as rt, PluginCommandArgument as s, PluginCapabilityCatalog as st, PluginAgentContextContribution as t, PluginViewMethod as tt, PluginCommandContribution as u, PluginCapabilityService as ut, PluginCommandTransaction as v, PluginLogQueryRequest as vt, PluginExecutionSnapshot as w, PluginPromptType as wt, PluginContributionSnapshot as x, PluginPromptApi as xt, PluginContext as y, PluginLogQueryResult as yt, PluginProcessApi as z, PluginToolsService as zt };
@@ -1,10 +1,17 @@
1
- import { i as ExecutionLogRecord, n as ExecutionLogEntry, t as ExecutionLogCallRecord } from "../ExecutionLog.dto-CI-HpxZa.js";
1
+ import { r as ExecutionLogRecord, t as ExecutionLogEntry } from "../ExecutionLog.dto-ig9GUWhK.js";
2
2
  //#region src/ui/ExecutionLogTimeline.dto.d.ts
3
3
  export declare enum ExecutionLogDisplay {
4
4
  Full = "full",
5
5
  Compact = "compact"
6
6
  }
7
+ declare enum ExecutionLogEvidenceKind {
8
+ Command = "command",
9
+ Output = "output",
10
+ Error = "error",
11
+ Details = "details"
12
+ }
7
13
  interface ExecutionLogEvidence {
14
+ readonly kind: ExecutionLogEvidenceKind;
8
15
  readonly label: string;
9
16
  readonly content: string;
10
17
  }
@@ -18,12 +25,12 @@ interface ExecutionLogTimelineItem {
18
25
  readonly status: string;
19
26
  readonly metadata: readonly string[];
20
27
  readonly evidence: readonly ExecutionLogEvidence[];
21
- readonly calls: readonly ExecutionLogCallRecord[];
22
28
  readonly logId?: string;
23
29
  }
24
30
  interface ExecutionLogTimelineProps {
25
31
  readonly entries?: readonly ExecutionLogEntry[];
26
32
  readonly record?: ExecutionLogRecord;
33
+ readonly relatedRecords?: readonly ExecutionLogRecord[];
27
34
  readonly display?: ExecutionLogDisplay;
28
35
  readonly executionId?: string;
29
36
  readonly limit?: number;
@@ -33,8 +40,8 @@ interface ExecutionLogTimelineProps {
33
40
  }
34
41
  //#endregion
35
42
  //#region src/ui/execution-log-model.d.ts
36
- /** Adapts existing evidence for both complete and compact readers without persisting derived events. */
37
- export declare function buildExecutionLogItems(record: ExecutionLogRecord): readonly ExecutionLogTimelineItem[];
43
+ /** Merge loaded related records into the same reader; unresolved calls retain their navigation. */
44
+ export declare function buildExecutionLogItems(record: ExecutionLogRecord, relatedRecords?: readonly ExecutionLogRecord[]): readonly ExecutionLogTimelineItem[];
38
45
  export declare function executionLogStatusLabel(status: string): string;
39
46
  //#endregion
40
47
  //#region src/ui/ExecutionLogTimeline.d.ts