@openforge-app/plugin-sdk 0.1.0 → 0.2.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.
Files changed (101) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +26 -0
  3. package/dist/backend.d.ts +2 -2
  4. package/dist/browserSurfaces.d.ts +78 -0
  5. package/dist/browserSurfaces.js +17 -0
  6. package/dist/browserSurfacesTesting.d.ts +60 -0
  7. package/dist/browserSurfacesTesting.js +240 -0
  8. package/dist/domain.d.ts +74 -15
  9. package/dist/domain.js +5 -1
  10. package/dist/fileIcons.d.ts +6 -0
  11. package/dist/fileIcons.js +84 -0
  12. package/dist/frontend.d.ts +5 -2
  13. package/dist/frontend.js +1 -0
  14. package/dist/index.d.ts +5 -3
  15. package/dist/index.js +2 -1
  16. package/dist/manifest.d.ts +80 -2
  17. package/dist/manifest.js +55 -1
  18. package/dist/markdown.d.ts +5 -1
  19. package/dist/markdown.js +67 -18
  20. package/dist/openforgePackageMetadataSchema.json +80 -4
  21. package/dist/pluginIconContract.d.ts +3 -0
  22. package/dist/pluginIconContract.js +12 -0
  23. package/dist/pluginIcons.d.ts +7 -0
  24. package/dist/pluginIcons.js +99 -0
  25. package/dist/publicUiExports.d.mts +16 -0
  26. package/dist/publicUiExports.mjs +60 -0
  27. package/dist/svelteHostRuntimeContract.d.mts +1 -0
  28. package/dist/svelteHostRuntimeContract.mjs +16 -0
  29. package/dist/testing/backendServicesFake.d.ts +19 -0
  30. package/dist/testing/backendServicesFake.js +87 -0
  31. package/dist/testing/commonApiFake.d.ts +23 -0
  32. package/dist/testing/commonApiFake.js +306 -0
  33. package/dist/testing/contracts.d.ts +236 -0
  34. package/dist/testing/contracts.js +1 -0
  35. package/dist/testing/frontendContributionFake.d.ts +36 -0
  36. package/dist/testing/frontendContributionFake.js +204 -0
  37. package/dist/testing/registryFake.d.ts +40 -0
  38. package/dist/testing/registryFake.js +124 -0
  39. package/dist/testing/support.d.ts +40 -0
  40. package/dist/testing/support.js +247 -0
  41. package/dist/testing.d.ts +3 -223
  42. package/dist/testing.js +2 -625
  43. package/dist/types.d.ts +251 -9
  44. package/dist/types.js +47 -0
  45. package/dist/ui/Button.svelte +49 -0
  46. package/dist/ui/Checkbox.svelte +137 -0
  47. package/dist/ui/FileTypeIcon.svelte +37 -0
  48. package/dist/ui/MarkdownContent.svelte +71 -11
  49. package/dist/ui/Modal.svelte +157 -0
  50. package/dist/ui/PluginPageHeader.svelte +26 -0
  51. package/dist/ui/PluginSidebarLink.svelte +54 -0
  52. package/dist/ui/PluginViewState.svelte +76 -0
  53. package/dist/ui/ResizablePanel.svelte +10 -0
  54. package/dist/ui/icons/README.md +9 -0
  55. package/dist/ui/icons/c.svg +1 -0
  56. package/dist/ui/icons/console.svg +1 -0
  57. package/dist/ui/icons/cpp.svg +1 -0
  58. package/dist/ui/icons/csharp.svg +1 -0
  59. package/dist/ui/icons/css.svg +3 -0
  60. package/dist/ui/icons/database.svg +1 -0
  61. package/dist/ui/icons/docker.svg +1 -0
  62. package/dist/ui/icons/document.svg +4 -0
  63. package/dist/ui/icons/file.svg +1 -0
  64. package/dist/ui/icons/folder-open.svg +1 -0
  65. package/dist/ui/icons/folder.svg +1 -0
  66. package/dist/ui/icons/git.svg +3 -0
  67. package/dist/ui/icons/go.svg +1 -0
  68. package/dist/ui/icons/graphql.svg +20 -0
  69. package/dist/ui/icons/h.svg +3 -0
  70. package/dist/ui/icons/html.svg +3 -0
  71. package/dist/ui/icons/image.svg +3 -0
  72. package/dist/ui/icons/java.svg +6 -0
  73. package/dist/ui/icons/javascript.svg +3 -0
  74. package/dist/ui/icons/json.svg +3 -0
  75. package/dist/ui/icons/kotlin.svg +1 -0
  76. package/dist/ui/icons/lock.svg +3 -0
  77. package/dist/ui/icons/markdown.svg +6 -0
  78. package/dist/ui/icons/nodejs.svg +6 -0
  79. package/dist/ui/icons/npm.svg +3 -0
  80. package/dist/ui/icons/pdf.svg +1 -0
  81. package/dist/ui/icons/php.svg +1 -0
  82. package/dist/ui/icons/python.svg +1 -0
  83. package/dist/ui/icons/react.svg +8 -0
  84. package/dist/ui/icons/react_ts.svg +8 -0
  85. package/dist/ui/icons/readme.svg +4 -0
  86. package/dist/ui/icons/ruby.svg +1 -0
  87. package/dist/ui/icons/rust.svg +1 -0
  88. package/dist/ui/icons/sass.svg +3 -0
  89. package/dist/ui/icons/settings.svg +4 -0
  90. package/dist/ui/icons/svelte.svg +1 -0
  91. package/dist/ui/icons/svg.svg +3 -0
  92. package/dist/ui/icons/swift.svg +1 -0
  93. package/dist/ui/icons/tune.svg +11 -0
  94. package/dist/ui/icons/typescript-def.svg +6 -0
  95. package/dist/ui/icons/typescript.svg +3 -0
  96. package/dist/ui/icons/vue.svg +1 -0
  97. package/dist/ui/icons/xml.svg +1 -0
  98. package/dist/ui/icons/yaml.svg +3 -0
  99. package/dist/ui/icons/zip.svg +3 -0
  100. package/dist/vite.js +5 -2
  101. package/package.json +35 -7
@@ -0,0 +1,247 @@
1
+ export function createDisposable(dispose) {
2
+ let disposed = false;
3
+ return {
4
+ async dispose() {
5
+ if (disposed)
6
+ return;
7
+ disposed = true;
8
+ await dispose();
9
+ },
10
+ };
11
+ }
12
+ export class TestingSubscriptionSink {
13
+ subscriptions = [];
14
+ add(subscription) {
15
+ if (typeof subscription === 'function') {
16
+ this.subscriptions.push(createDisposable(subscription));
17
+ return;
18
+ }
19
+ if (!subscription || typeof subscription.dispose !== 'function') {
20
+ throw new Error('context.subscriptions.add requires a disposable or cleanup function');
21
+ }
22
+ this.subscriptions.push(subscription);
23
+ }
24
+ async disposeAll() {
25
+ const subscriptions = this.subscriptions.splice(0).reverse();
26
+ for (const subscription of subscriptions)
27
+ await subscription.dispose();
28
+ }
29
+ }
30
+ export function createTestingCalls() {
31
+ return {
32
+ commandInvocations: [],
33
+ globalCommandInvocations: [],
34
+ backendInvocations: [],
35
+ emittedEvents: [],
36
+ emittedGlobalEvents: [],
37
+ openUrl: [],
38
+ clipboardWrites: [],
39
+ taskLinkOpenRequests: [],
40
+ navigationRequests: [],
41
+ notify: [],
42
+ taskCreations: [],
43
+ taskComposes: [],
44
+ startPromptContributionConfigurations: [],
45
+ taskImplementationStarts: [],
46
+ taskFollowUps: [],
47
+ taskListRequests: [],
48
+ taskStatusUpdates: [],
49
+ configWrites: [],
50
+ fsWrites: [],
51
+ fsUserDataReadDirs: [],
52
+ fsUserDataReads: [],
53
+ fsUserDataWrites: [],
54
+ fsExternalReadDirs: [],
55
+ fsExternalReads: [],
56
+ shellSpawns: [],
57
+ shellWrites: [],
58
+ shellResizes: [],
59
+ shellKills: [],
60
+ shellBuffers: [],
61
+ browserSurfaceGetOrCreate: [],
62
+ browserSurfaceAttachments: [],
63
+ browserSurfaceDetaches: [],
64
+ browserSurfaceDestroys: [],
65
+ browserSurfaceNavigations: [],
66
+ browserSurfaceControls: [],
67
+ browserSurfaceSelections: [],
68
+ browserSurfaceFeedbackClears: [],
69
+ browserSurfaceFeedbackReplacements: [],
70
+ browserSurfaceCaptureChecks: [],
71
+ browserSurfaceCaptures: [],
72
+ browserSurfaceCaptureDiscards: [],
73
+ browserSurfaceSessionResets: [],
74
+ storageGets: [],
75
+ storageSets: [],
76
+ storageDeletes: [],
77
+ };
78
+ }
79
+ export function createMemoryPluginStorage(calls = createTestingCalls()) {
80
+ const values = new Map();
81
+ function scope(scopeKind, scopeId) {
82
+ const prefix = `${scopeKind}:${scopeId ?? ''}:`;
83
+ return {
84
+ async get(key) {
85
+ calls.storageGets.push({ scope: scopeKind, scopeId, key });
86
+ return values.has(`${prefix}${key}`) ? values.get(`${prefix}${key}`) : null;
87
+ },
88
+ async set(key, value) {
89
+ values.set(`${prefix}${key}`, value);
90
+ calls.storageSets.push({ scope: scopeKind, scopeId, key, value });
91
+ },
92
+ async delete(key) {
93
+ values.delete(`${prefix}${key}`);
94
+ calls.storageDeletes.push({ scope: scopeKind, scopeId, key });
95
+ },
96
+ };
97
+ }
98
+ return {
99
+ global: scope('global', null),
100
+ project: (projectId) => scope('project', projectId),
101
+ task: (taskId) => scope('task', taskId),
102
+ };
103
+ }
104
+ export function commandDescriptor(command) {
105
+ return {
106
+ id: command.id,
107
+ qualifiedId: command.qualifiedId,
108
+ pluginId: command.pluginId,
109
+ projectId: command.projectId,
110
+ title: command.title,
111
+ icon: command.icon,
112
+ shortcut: command.shortcut,
113
+ discoverable: command.discoverable ?? true,
114
+ input: command.input,
115
+ output: command.output,
116
+ };
117
+ }
118
+ export function normalizeAgentCommandMetadata(metadata) {
119
+ if (metadata === undefined)
120
+ return undefined;
121
+ if (metadata === null || typeof metadata !== 'object' || Array.isArray(metadata)) {
122
+ throw new Error('commands registration agent metadata must be an object');
123
+ }
124
+ const candidate = metadata;
125
+ if (typeof candidate.description !== 'string' || candidate.description.trim().length === 0) {
126
+ throw new Error('commands registration agent metadata requires a non-empty description');
127
+ }
128
+ if (candidate.examples !== undefined && (!Array.isArray(candidate.examples) || !candidate.examples.every(example => isJsonValue(example)))) {
129
+ throw new Error('commands registration agent metadata examples must contain only JSON values');
130
+ }
131
+ if (candidate.discoverable !== undefined && typeof candidate.discoverable !== 'boolean') {
132
+ throw new Error('commands registration agent metadata discoverable must be a boolean');
133
+ }
134
+ return {
135
+ description: candidate.description.trim(),
136
+ examples: candidate.examples ? [...candidate.examples] : [],
137
+ discoverable: candidate.discoverable ?? true,
138
+ };
139
+ }
140
+ export function isJsonValue(value, seen = new Set()) {
141
+ if (value === null || typeof value === 'string' || typeof value === 'boolean')
142
+ return true;
143
+ if (typeof value === 'number')
144
+ return Number.isFinite(value);
145
+ if (typeof value !== 'object')
146
+ return false;
147
+ if (seen.has(value))
148
+ return false;
149
+ seen.add(value);
150
+ const valid = Array.isArray(value)
151
+ ? value.every(entry => isJsonValue(entry, seen))
152
+ : Object.values(value).every(entry => isJsonValue(entry, seen));
153
+ seen.delete(value);
154
+ return valid;
155
+ }
156
+ export function assertLocalId(kind, id) {
157
+ if (typeof id !== 'string' || id.trim().length === 0) {
158
+ throw new Error(`${kind} registration requires a non-empty id`);
159
+ }
160
+ const trimmed = id.trim();
161
+ if (trimmed.startsWith('openforge.')) {
162
+ throw new Error(`${kind} registration cannot use openforge.* reserved namespace`);
163
+ }
164
+ if (trimmed.includes(':') || trimmed.startsWith('.') || trimmed.endsWith('.') || trimmed.includes('..')) {
165
+ throw new Error(`${kind} registration has invalid id "${trimmed}"`);
166
+ }
167
+ }
168
+ export function assertTitle(kind, title) {
169
+ if (typeof title !== 'string' || title.trim().length === 0) {
170
+ throw new Error(`${kind} registration requires a non-empty title`);
171
+ }
172
+ }
173
+ export function assertFunction(kind, field, value) {
174
+ if (typeof value !== 'function') {
175
+ throw new Error(`${kind} registration requires a ${field} function`);
176
+ }
177
+ }
178
+ export class TestingContributionClaims {
179
+ ids = new Set();
180
+ claim(kind, qualifiedId) {
181
+ const key = this.key(kind, qualifiedId);
182
+ if (this.ids.has(key)) {
183
+ throw new Error(`Duplicate runtime contribution id: ${qualifiedId}`);
184
+ }
185
+ this.ids.add(key);
186
+ }
187
+ release(kind, qualifiedId) {
188
+ this.ids.delete(this.key(kind, qualifiedId));
189
+ }
190
+ key(kind, qualifiedId) {
191
+ return kind === 'commands' ? `commands:${qualifiedId}` : `${kind}:${qualifiedId}`;
192
+ }
193
+ }
194
+ export class TestingRegistryServices {
195
+ pluginId;
196
+ projectId;
197
+ taskId;
198
+ viewId;
199
+ packageMetadata;
200
+ calls;
201
+ storage;
202
+ config = new Map();
203
+ seededTasks;
204
+ claims = new TestingContributionClaims();
205
+ constructor(options = {}) {
206
+ this.pluginId = options.pluginId ?? 'test-plugin';
207
+ this.projectId = options.projectId ?? null;
208
+ this.taskId = options.taskId ?? null;
209
+ this.viewId = options.viewId ?? 'board';
210
+ this.packageMetadata = options.packageMetadata ?? {
211
+ id: this.pluginId,
212
+ apiVersion: 1,
213
+ displayName: this.pluginId,
214
+ description: '',
215
+ };
216
+ this.calls = createTestingCalls();
217
+ this.storage = options.storage ?? createMemoryPluginStorage(this.calls);
218
+ this.seededTasks = options.tasks ?? [];
219
+ }
220
+ localQualifiedId(kind, id) {
221
+ assertLocalId(kind, id);
222
+ return `${this.pluginId}.${id.trim()}`;
223
+ }
224
+ getContextSnapshot() {
225
+ return {
226
+ pluginId: this.pluginId,
227
+ projectId: this.projectId,
228
+ ...(this.taskId === null ? {} : { taskId: this.taskId }),
229
+ };
230
+ }
231
+ getNavigationSnapshot(overrides = {}) {
232
+ return {
233
+ activeProjectId: overrides.projectId ?? this.projectId,
234
+ currentView: overrides.viewId ?? this.viewId,
235
+ selectedTaskId: overrides.taskId ?? this.taskId,
236
+ };
237
+ }
238
+ startPromptContributions(projectId) {
239
+ const raw = this.config.get(`project:${projectId}:start_prompt_contributions`);
240
+ return Array.isArray(raw)
241
+ ? raw.filter((entry) => Boolean(entry)
242
+ && typeof entry === 'object'
243
+ && typeof entry.id === 'string'
244
+ && typeof entry.content === 'string')
245
+ : [];
246
+ }
247
+ }
package/dist/testing.d.ts CHANGED
@@ -1,223 +1,3 @@
1
- import type { BackendMethodRegistration, BackendOpenForgeAPI, BackendPlugin, BackendPluginContext, BackgroundServiceRegistration, CommandRegistration, CommandShortcutMetadata, ConfigureStartPromptContributionRequest, CreateTaskRequest, Disposable, FrontendOpenForgeAPI, FrontendPlugin, FrontendPluginContext, JsonValue, NotificationRequest, OpenForgeNavigationRequest, OpenForgePackageMetadata, PluginSettingsSectionRegistration, PluginStorage, PluginTaskPaneTabRegistration, StartTaskImplementationRequest, PluginViewRegistration, SubscriptionSink } from './types';
2
- export type TestingRuntimeScope = 'global' | 'project' | 'task';
3
- export type TestingRuntimeKind = 'commands' | 'events' | 'views' | 'taskPane' | 'settings' | 'backend' | 'background';
4
- type MaybePromise<T> = T | Promise<T>;
5
- type CommandHandler = (payload?: unknown) => MaybePromise<unknown>;
6
- type EventHandler = (payload: unknown) => void;
7
- export interface TestingOpenForgeApiOptions {
8
- pluginId?: string;
9
- projectId?: string | null;
10
- taskId?: string | null;
11
- /** The active view key reported by `navigation.get().currentView`. Defaults to `'board'`. */
12
- viewId?: string;
13
- packageMetadata?: OpenForgePackageMetadata;
14
- storage?: PluginStorage;
15
- }
16
- export interface TestingOpenForgeApiCalls {
17
- commandInvocations: Array<{
18
- id: string;
19
- qualifiedId: string;
20
- payload: unknown;
21
- }>;
22
- globalCommandInvocations: Array<{
23
- qualifiedId: string;
24
- payload: unknown;
25
- }>;
26
- backendInvocations: Array<{
27
- method: string;
28
- qualifiedId: string;
29
- payload: unknown;
30
- }>;
31
- emittedEvents: Array<{
32
- event: string;
33
- qualifiedEvent: string;
34
- payload: unknown;
35
- }>;
36
- emittedGlobalEvents: Array<{
37
- qualifiedEvent: string;
38
- payload: unknown;
39
- }>;
40
- openUrl: string[];
41
- navigationRequests: OpenForgeNavigationRequest[];
42
- notify: NotificationRequest[];
43
- taskCreations: CreateTaskRequest[];
44
- startPromptContributionConfigurations: ConfigureStartPromptContributionRequest[];
45
- taskImplementationStarts: StartTaskImplementationRequest[];
46
- taskSummaryUpdates: Array<{
47
- taskId: string;
48
- summary: string;
49
- }>;
50
- taskStatusUpdates: Array<{
51
- taskId: string;
52
- status: string;
53
- }>;
54
- configWrites: Array<{
55
- key: string;
56
- value: JsonValue;
57
- projectId: string | null;
58
- }>;
59
- fsWrites: Array<{
60
- projectId: string;
61
- path: string;
62
- content: string;
63
- }>;
64
- shellSpawns: Array<{
65
- taskId: string;
66
- cwd: string;
67
- cols: number;
68
- rows: number;
69
- terminalIndex: number;
70
- }>;
71
- shellWrites: Array<{
72
- taskId: string;
73
- terminalIndex: number;
74
- data: string;
75
- }>;
76
- shellResizes: Array<{
77
- taskId: string;
78
- terminalIndex: number;
79
- cols: number;
80
- rows: number;
81
- }>;
82
- shellKills: Array<{
83
- taskId: string;
84
- terminalIndex: number;
85
- }>;
86
- shellBuffers: Array<{
87
- taskId: string;
88
- terminalIndex: number;
89
- }>;
90
- storageGets: Array<{
91
- scope: TestingRuntimeScope;
92
- scopeId: string | null;
93
- key: string;
94
- }>;
95
- storageSets: Array<{
96
- scope: TestingRuntimeScope;
97
- scopeId: string | null;
98
- key: string;
99
- value: JsonValue;
100
- }>;
101
- storageDeletes: Array<{
102
- scope: TestingRuntimeScope;
103
- scopeId: string | null;
104
- key: string;
105
- }>;
106
- }
107
- export interface TestingContributionBase {
108
- id: string;
109
- qualifiedId: string;
110
- pluginId: string;
111
- projectId: string | null;
112
- }
113
- export type TestingCommandContribution = TestingContributionBase & CommandRegistration & {
114
- title: string;
115
- icon?: string;
116
- shortcut?: CommandShortcutMetadata;
117
- handler: CommandHandler;
118
- };
119
- export type TestingEventListenerContribution = TestingContributionBase & {
120
- handler: EventHandler;
121
- global: boolean;
122
- };
123
- export type TestingViewContribution = TestingContributionBase & PluginViewRegistration;
124
- export type TestingTaskPaneTabContribution = TestingContributionBase & PluginTaskPaneTabRegistration;
125
- export type TestingSettingsSectionContribution = TestingContributionBase & PluginSettingsSectionRegistration;
126
- export type TestingBackendMethodContribution = TestingContributionBase & {
127
- registration: BackendMethodRegistration;
128
- };
129
- export type TestingBackgroundServiceContribution = TestingContributionBase & BackgroundServiceRegistration & {
130
- started: boolean;
131
- };
132
- export interface TestingOpenForgeRegistrySnapshot {
133
- pluginId: string;
134
- projectId: string | null;
135
- views: TestingViewContribution[];
136
- taskPaneTabs: TestingTaskPaneTabContribution[];
137
- settingsSections: TestingSettingsSectionContribution[];
138
- commands: TestingCommandContribution[];
139
- eventListeners: TestingEventListenerContribution[];
140
- backendMethods: TestingBackendMethodContribution[];
141
- backgroundServices: TestingBackgroundServiceContribution[];
142
- }
143
- export type MockFrontendOpenForgeAPI = FrontendOpenForgeAPI & {
144
- readonly __testing: {
145
- readonly calls: TestingOpenForgeApiCalls;
146
- readonly registry: TestingOpenForgeRegistryFake;
147
- };
148
- };
149
- export type MockBackendOpenForgeAPI = BackendOpenForgeAPI & {
150
- readonly __testing: {
151
- readonly calls: TestingOpenForgeApiCalls;
152
- readonly registry: TestingOpenForgeRegistryFake;
153
- };
154
- };
155
- export declare class TestingSubscriptionSink implements SubscriptionSink {
156
- readonly subscriptions: Disposable[];
157
- add(subscription: Disposable | (() => void)): void;
158
- disposeAll(): Promise<void>;
159
- }
160
- export declare class TestingOpenForgeRegistryFake {
161
- readonly pluginId: string;
162
- readonly projectId: string | null;
163
- readonly taskId: string | null;
164
- readonly viewId: string;
165
- readonly packageMetadata: OpenForgePackageMetadata;
166
- readonly calls: TestingOpenForgeApiCalls;
167
- readonly storage: PluginStorage;
168
- readonly frontendSubscriptions: TestingSubscriptionSink;
169
- readonly backendSubscriptions: TestingSubscriptionSink;
170
- private readonly commands;
171
- private readonly views;
172
- private readonly taskPaneTabs;
173
- private readonly settingsSections;
174
- private readonly eventListeners;
175
- private readonly eventHandlers;
176
- private readonly backendMethods;
177
- private readonly backgroundServices;
178
- private readonly claimedIds;
179
- private readonly config;
180
- private eventListenerSequence;
181
- private cachedFrontendApi;
182
- private cachedBackendApi;
183
- constructor(options?: TestingOpenForgeApiOptions);
184
- get frontendApi(): MockFrontendOpenForgeAPI;
185
- get backendApi(): MockBackendOpenForgeAPI;
186
- get snapshot(): TestingOpenForgeRegistrySnapshot;
187
- createFrontendApi(): MockFrontendOpenForgeAPI;
188
- createBackendApi(): MockBackendOpenForgeAPI;
189
- createFrontendContext(): FrontendPluginContext;
190
- createBackendContext(): BackendPluginContext;
191
- activateFrontend(plugin: FrontendPlugin): Promise<void>;
192
- activateBackend(plugin: BackendPlugin): Promise<void>;
193
- disposeAll(): Promise<void>;
194
- getSnapshot(): TestingOpenForgeRegistrySnapshot;
195
- private createContext;
196
- private startPromptContributions;
197
- private createCommonApi;
198
- private getContextSnapshot;
199
- private getNavigationSnapshot;
200
- private localQualifiedId;
201
- private claim;
202
- private release;
203
- private registerCommand;
204
- private registerView;
205
- private registerTaskPaneTab;
206
- private registerSettingsSection;
207
- private registerBackendMethod;
208
- private registerBackgroundService;
209
- private registerEventListener;
210
- private startBackgroundServices;
211
- private invokeCommand;
212
- private invokeGlobalCommand;
213
- private invokeBackend;
214
- private emitEvent;
215
- }
216
- export declare function createOpenForgeRegistryFake(options?: TestingOpenForgeApiOptions): TestingOpenForgeRegistryFake;
217
- export declare function createMockOpenForgeApi(options?: TestingOpenForgeApiOptions): MockFrontendOpenForgeAPI;
218
- export declare function createMockFrontendOpenForgeApi(options?: TestingOpenForgeApiOptions): MockFrontendOpenForgeAPI;
219
- export declare function createMockBackendOpenForgeApi(options?: TestingOpenForgeApiOptions): MockBackendOpenForgeAPI;
220
- export declare function createMockPluginContext(options?: TestingOpenForgeApiOptions): FrontendPluginContext;
221
- export declare function createMemoryPluginStorage(calls?: TestingOpenForgeApiCalls): PluginStorage;
222
- export declare function createTestingCalls(): TestingOpenForgeApiCalls;
223
- export {};
1
+ export { createMockBackendOpenForgeApi, createMockFrontendOpenForgeApi, createMockOpenForgeApi, createMockPluginContext, createOpenForgeRegistryFake, TestingOpenForgeRegistryFake, } from './testing/registryFake';
2
+ export { createMemoryPluginStorage, createTestingCalls, TestingSubscriptionSink, } from './testing/support';
3
+ export type { MockBackendOpenForgeAPI, MockFrontendOpenForgeAPI, TestingBackgroundServiceContribution, TestingBackendMethodContribution, TestingCommandContribution, TestingContributionBase, TestingEventListenerContribution, TestingInjectionPointContribution, TestingOpenForgeApiCalls, TestingOpenForgeApiOptions, TestingOpenForgeRegistrySnapshot, TestingRuntimeKind, TestingRuntimeScope, TestingSettingsSectionContribution, TestingTaskPaneTabContribution, TestingTaskUISectionContribution, TestingViewContribution, } from './testing/contracts';