@punica/editor 1.0.6 → 1.0.7
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.bundle.esm.js +1 -1
- package/dist/index.bundle.esm.js.map +1 -1
- package/dist/index.bundle.umd.js +1 -1
- package/dist/index.bundle.umd.js.map +1 -1
- package/package.json +28 -3
- package/types/index.d.ts +120 -11
- package/types/punica.module.bootstrap.d.ts +45 -0
- package/types/punica.module.capability.d.ts +359 -0
- package/types/punica.module.extensions.api.d.ts +740 -0
- package/types/punica.module.extensions.settings.d.ts +106 -0
- package/types/punica.module.flow.agent.d.ts +75 -0
- package/types/punica.module.flow.api.d.ts +128 -0
- package/types/punica.module.flow.d.ts +490 -0
- package/types/punica.module.flow.engine.d.ts +228 -0
- package/types/punica.module.flow.mcp.d.ts +26 -0
- package/types/punica.module.flow.notebook.d.ts +210 -0
- package/types/punica.module.flow.primitives.d.ts +700 -0
- package/types/punica.module.flow.shell.d.ts +374 -0
- package/types/punica.module.kernel.ai.d.ts +462 -0
- package/types/punica.module.kernel.commands.d.ts +49 -0
- package/types/punica.module.kernel.events.d.ts +274 -0
- package/types/punica.module.kernel.history.d.ts +20 -0
- package/types/punica.module.kernel.llm.d.ts +343 -0
- package/types/punica.module.kernel.notifications.d.ts +64 -0
- package/types/punica.module.kernel.policy.d.ts +273 -0
- package/types/punica.module.kernel.tasks.d.ts +107 -0
- package/types/punica.module.kernel.timeServer.d.ts +16 -0
- package/types/punica.module.runtime.api.d.ts +214 -0
- package/types/punica.module.runtime.capabilities.d.ts +175 -0
- package/types/punica.module.runtime.compute.d.ts +339 -0
- package/types/punica.module.runtime.datasets.d.ts +234 -0
- package/types/punica.module.runtime.fs.d.ts +385 -0
- package/types/punica.module.runtime.harness.d.ts +246 -0
- package/types/punica.module.runtime.host.d.ts +272 -0
- package/types/punica.module.runtime.inference.d.ts +164 -0
- package/types/punica.module.runtime.lifecycle.d.ts +15 -0
- package/types/punica.module.runtime.llm.d.ts +470 -0
- package/types/punica.module.runtime.mcp.d.ts +139 -0
- package/types/punica.module.runtime.modelRuntimes.d.ts +90 -0
- package/types/punica.module.runtime.models.d.ts +254 -0
- package/types/punica.module.runtime.search.d.ts +59 -0
- package/types/punica.module.runtime.secrets.d.ts +26 -0
- package/types/punica.module.runtime.tasks.d.ts +27 -0
- package/types/punica.module.runtime.vcs.d.ts +67 -0
- package/types/punica.module.runtime.vectors.d.ts +74 -0
- package/types/punica.module.runtime.workspace.d.ts +134 -0
- package/types/punica.module.shell.activityBar.d.ts +42 -0
- package/types/punica.module.shell.components.d.ts +87 -0
- package/types/punica.module.shell.contentTabs.d.ts +33 -0
- package/types/punica.module.shell.dragDrop.d.ts +25 -0
- package/types/punica.module.shell.keyboardShortcuts.d.ts +38 -0
- package/types/punica.module.shell.layout.d.ts +106 -0
- package/types/punica.module.shell.markdown.d.ts +36 -0
- package/types/punica.module.shell.panelTabs.d.ts +48 -0
- package/types/punica.module.shell.profile.d.ts +278 -0
- package/types/punica.module.shell.statusbar.d.ts +26 -0
- package/types/punica.module.shell.view.d.ts +455 -0
- package/types/punica.module.shell.views.d.ts +150 -0
- package/types/punica.module.test.d.ts +562 -0
- package/types/punica.module.activityBar.d.ts +0 -21
- package/types/punica.module.commands.d.ts +0 -21
- package/types/punica.module.dragDrop.d.ts +0 -23
- package/types/punica.module.extensions.d.ts +0 -157
- package/types/punica.module.history.d.ts +0 -18
- package/types/punica.module.keyboardShortcuts.d.ts +0 -29
- package/types/punica.module.layout.d.ts +0 -22
- package/types/punica.module.statusbar.d.ts +0 -21
- package/types/punica.module.timeServer.d.ts +0 -14
- package/types/punica.module.view.d.ts +0 -8
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
declare module 'punica' {
|
|
2
|
-
export namespace Extensions {
|
|
3
|
-
interface BaseView {
|
|
4
|
-
id: string;
|
|
5
|
-
name: string;
|
|
6
|
-
title?: string;
|
|
7
|
-
label?: string;
|
|
8
|
-
icon?: string;
|
|
9
|
-
alignment?: 'primary' | 'secondary';
|
|
10
|
-
content?: HTMLElement;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
interface Views {
|
|
14
|
-
primarySidebar?: BaseView;
|
|
15
|
-
secondarySidebar?: BaseView;
|
|
16
|
-
content?: BaseView;
|
|
17
|
-
activityBar?: Pick<BaseView, 'id' | 'name'> &
|
|
18
|
-
Required<Pick<BaseView, 'title' | 'icon' | 'alignment'>>;
|
|
19
|
-
statusBar?: Pick<BaseView, 'id' | 'name'> &
|
|
20
|
-
Required<Pick<BaseView, 'title' | 'label' | 'icon' | 'alignment'>>;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
interface Command {
|
|
24
|
-
command: string;
|
|
25
|
-
title: string;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
interface Keybinding {
|
|
29
|
-
command: string;
|
|
30
|
-
key: string;
|
|
31
|
-
when: string;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
interface MenuItem {
|
|
35
|
-
command: string;
|
|
36
|
-
when: string;
|
|
37
|
-
group: string;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
interface Menu {
|
|
41
|
-
commandPalette: MenuItem;
|
|
42
|
-
context: MenuItem;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
interface BooleanProperty {
|
|
46
|
-
type: 'boolean';
|
|
47
|
-
default: boolean;
|
|
48
|
-
description: string;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
interface StringProperty {
|
|
52
|
-
type: 'string';
|
|
53
|
-
default: string;
|
|
54
|
-
description: string;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
interface NumberProperty {
|
|
58
|
-
type: 'number';
|
|
59
|
-
default: number;
|
|
60
|
-
description: string;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
interface ArrayProperty {
|
|
64
|
-
type: 'array';
|
|
65
|
-
default: any[];
|
|
66
|
-
description: string;
|
|
67
|
-
items: any;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
interface ObjectProperty {
|
|
71
|
-
type: 'object';
|
|
72
|
-
default: { [key: string]: any };
|
|
73
|
-
description: string;
|
|
74
|
-
properties: { [key: string]: Property };
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
type Property =
|
|
78
|
-
| BooleanProperty
|
|
79
|
-
| StringProperty
|
|
80
|
-
| NumberProperty
|
|
81
|
-
| ArrayProperty
|
|
82
|
-
| ObjectProperty;
|
|
83
|
-
|
|
84
|
-
interface Configuration {
|
|
85
|
-
title: string;
|
|
86
|
-
properties: {
|
|
87
|
-
[key: string]: Property;
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
interface Integrations {
|
|
92
|
-
commands?: Command[];
|
|
93
|
-
keybindings?: Keybinding[];
|
|
94
|
-
menus?: Menu;
|
|
95
|
-
views?: Views;
|
|
96
|
-
configuration?: Configuration;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
interface Extension {
|
|
100
|
-
module: Extensions.IExtension;
|
|
101
|
-
moduleURL: string;
|
|
102
|
-
name: string;
|
|
103
|
-
displayName: string;
|
|
104
|
-
description: string;
|
|
105
|
-
version: string;
|
|
106
|
-
main: string;
|
|
107
|
-
activationEvents?: string[];
|
|
108
|
-
dependOns?: string[];
|
|
109
|
-
integrations: Integrations;
|
|
110
|
-
engines: {
|
|
111
|
-
punica: string;
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
interface ExtensionDecorator {
|
|
116
|
-
execute(): Promise<Extension>;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
interface IExtensionContext {}
|
|
120
|
-
|
|
121
|
-
interface IExtension {
|
|
122
|
-
activate: (context: IExtensionContext) => Promise<void>;
|
|
123
|
-
deactivate: () => void;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
interface IExtensionManager {
|
|
127
|
-
/**
|
|
128
|
-
* Load one or more extensions from URL or file path.
|
|
129
|
-
*/
|
|
130
|
-
load(extensionPath: string, ...args: string[]): Promise<void>;
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* Activate a specific extension by name.
|
|
134
|
-
*/
|
|
135
|
-
activate(extensionName: string): Promise<void>;
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* Trigger activation of all extensions that declare `onStartup:begin`
|
|
139
|
-
* in their activationEvents.
|
|
140
|
-
*/
|
|
141
|
-
startupBegin(): Promise<void>;
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* Trigger activation of all extensions that declare `onStartup:finish`
|
|
145
|
-
* in their activationEvents.
|
|
146
|
-
*/
|
|
147
|
-
startupFinish(): Promise<void>;
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* Get loaded extension metadata by name.
|
|
151
|
-
*/
|
|
152
|
-
getExtension(extensionName: string): Extension | undefined;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
const manager: IExtensionManager;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
declare module 'punica' {
|
|
2
|
-
export namespace History {
|
|
3
|
-
interface ICommand {
|
|
4
|
-
id: string;
|
|
5
|
-
execute(): void;
|
|
6
|
-
undo(): void;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
interface IHistoryManager {
|
|
10
|
-
registerCommand(command: ICommand): void;
|
|
11
|
-
executeCommand(commandId: string): void;
|
|
12
|
-
undo(): void;
|
|
13
|
-
redo(): void;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
const manager: IHistoryManager;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
declare module 'punica' {
|
|
2
|
-
export namespace KeyboardShortcuts {
|
|
3
|
-
interface IDisposable {
|
|
4
|
-
dispose(): void;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
interface IKey {
|
|
8
|
-
key: string;
|
|
9
|
-
ctrlKey?: boolean;
|
|
10
|
-
shiftKey?: boolean;
|
|
11
|
-
altKey?: boolean;
|
|
12
|
-
metaKey?: boolean;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
interface IShortcut {
|
|
16
|
-
command: string;
|
|
17
|
-
keys: IKey[];
|
|
18
|
-
disposable?: IDisposable;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
interface IShortcutManager {
|
|
22
|
-
registerShortcut(shortcut: IShortcut): void;
|
|
23
|
-
unregisterShortcut(keys: IKey[]): void;
|
|
24
|
-
handleKeyEvent(event: KeyboardEvent): void;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
const manager: IShortcutManager;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
declare module 'punica' {
|
|
2
|
-
export namespace Layout {
|
|
3
|
-
type ItemType =
|
|
4
|
-
| 'activityBar'
|
|
5
|
-
| 'content'
|
|
6
|
-
| 'statusbar'
|
|
7
|
-
| 'primarySidebar'
|
|
8
|
-
| 'secondarySidebar';
|
|
9
|
-
|
|
10
|
-
interface IItem {
|
|
11
|
-
type: ItemType;
|
|
12
|
-
content?: HTMLElement;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
interface ILayoutManager {
|
|
16
|
-
getItem(type: ItemType): IItem;
|
|
17
|
-
render(container: HTMLElement): void;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
const manager: ILayoutManager;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
declare module 'punica' {
|
|
2
|
-
export namespace Statusbar {
|
|
3
|
-
type Alignment = 'primary' | 'secondary';
|
|
4
|
-
type ItemType = 'progress' | 'warning' | 'error' | 'normal';
|
|
5
|
-
|
|
6
|
-
interface IItem {
|
|
7
|
-
id: string;
|
|
8
|
-
label: string;
|
|
9
|
-
alignment: Alignment;
|
|
10
|
-
title: string;
|
|
11
|
-
icon: string;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
interface IStatusbarManager {
|
|
15
|
-
addItem(item: IItem): void;
|
|
16
|
-
removeItem(itemId: string): void;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
const manager: IStatusbarManager;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare module 'punica' {
|
|
2
|
-
export namespace TimeServer {
|
|
3
|
-
interface ISubscriber {
|
|
4
|
-
update(time: Date): void;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
interface ITimeServerManager {
|
|
8
|
-
subscribe(subscriber: ISubscriber): void;
|
|
9
|
-
unsubscribe(subscriber: ISubscriber): void;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const manager: ITimeServerManager;
|
|
13
|
-
}
|
|
14
|
-
}
|