@aibolabs/plugin-protocol 0.1.10 → 0.1.11

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/index.d.ts CHANGED
@@ -14,3 +14,5 @@ export type { PresentationInspector, PresentationInspectorAction, PresentationAr
14
14
  export type { PresentationCapabilityWorkbench, PresentationCapabilityView, PresentationCapabilityAction, PresentationCapabilityContribution, PresentationCapabilityScope } from './presentation-capability.js';
15
15
  export type { PresentationLayout, PresentationLayoutAction } from './presentation-layout.js';
16
16
  export type { AgentSettingValue, AgentSettingField, AgentSettingsDescriptor, AgentSettingsTarget, AgentSettingsSnapshot, AgentSettingsSave, AgentSettingsContext } from './settings.js';
17
+ export type { SidebarTarget, SidebarTab, SidebarPane, SidebarLayout, SidebarOperation, PresentationSidebar, PresentationSidebarAction } from './presentation-layout.js';
18
+ export type { ToolViewContribution, ToolViewBackendRequest, ToolViewBackendResponse, ToolViewInitialize, ToolViewStatus } from './tool-view.js';
@@ -19,3 +19,73 @@ export type PresentationLayoutAction = {
19
19
  event: 'input' | 'click';
20
20
  args: readonly ('navigation' | 'auxiliary' | 'standard' | 'focus' | 'review')[];
21
21
  };
22
+ /** Serializable layout only; plugin leases and file data never enter storage. */
23
+ export type SidebarTarget = {
24
+ kind: 'git' | 'context';
25
+ } | {
26
+ kind: 'plugin';
27
+ installationId: string;
28
+ contributionId: string;
29
+ };
30
+ export type SidebarTab = {
31
+ id: string;
32
+ target: SidebarTarget;
33
+ };
34
+ export type SidebarPane = {
35
+ id: string;
36
+ tabs: string[];
37
+ active: string | null;
38
+ floating: boolean;
39
+ x: number;
40
+ y: number;
41
+ width: number;
42
+ height: number;
43
+ };
44
+ export type SidebarLayout = {
45
+ tabs: SidebarTab[];
46
+ panes: SidebarPane[];
47
+ activePane: string;
48
+ };
49
+ export type SidebarOperation = {
50
+ kind: 'open';
51
+ target: SidebarTarget;
52
+ paneId?: string;
53
+ } | {
54
+ kind: 'focus' | 'close';
55
+ tabId: string;
56
+ } | {
57
+ kind: 'reorder';
58
+ tabId: string;
59
+ before?: string;
60
+ } | {
61
+ kind: 'move';
62
+ tabId: string;
63
+ paneId: string;
64
+ before?: string;
65
+ } | {
66
+ kind: 'split' | 'float' | 'dock';
67
+ tabId: string;
68
+ } | {
69
+ kind: 'bounds';
70
+ paneId: string;
71
+ x: number;
72
+ y: number;
73
+ width: number;
74
+ height: number;
75
+ };
76
+ export type PresentationSidebar = {
77
+ layout: SidebarLayout;
78
+ titles: Record<string, string>;
79
+ entries: {
80
+ label: string;
81
+ value: string;
82
+ disabled?: boolean;
83
+ }[];
84
+ views: Record<string, import('./presentation-capability.js').PresentationCapabilityView>;
85
+ };
86
+ export type PresentationSidebarAction = {
87
+ token: string;
88
+ operation: 'layout' | 'reload' | 'reading' | 'semantic';
89
+ event: 'click';
90
+ args: readonly (string | null)[];
91
+ };
@@ -0,0 +1,32 @@
1
+ /** Independent tool applications; not a Presentation Worker or Agent capability. */
2
+ export type ToolViewContribution = {
3
+ kind: 'toolView';
4
+ id: string;
5
+ scope: 'workspace';
6
+ required: true;
7
+ title: string;
8
+ contractVersion: '1.0.0';
9
+ frontend: string;
10
+ backend: string;
11
+ permissions: ['local.process'];
12
+ };
13
+ export type ToolViewBackendRequest = {
14
+ protocol: 'aibo.tool-view/1';
15
+ method: 'initialize' | 'request' | 'status' | 'shutdown';
16
+ params: unknown;
17
+ };
18
+ export type ToolViewBackendResponse = {
19
+ protocol: 'aibo.tool-view/1';
20
+ } & ({
21
+ result: unknown;
22
+ } | {
23
+ error: string;
24
+ });
25
+ export type ToolViewInitialize = {
26
+ workspacePath: string;
27
+ workspaceId: string;
28
+ windowId: string;
29
+ };
30
+ export type ToolViewStatus = {
31
+ active: number;
32
+ };
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aibolabs/plugin-protocol",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",