@inspecto-dev/types 0.2.0-alpha.2 → 0.2.0-alpha.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.
package/dist/index.d.cts CHANGED
@@ -141,12 +141,7 @@ interface ChannelDef {
141
141
  type: ProviderMode;
142
142
  execute: (payload: AiPayload) => Promise<void>;
143
143
  }
144
- interface IntentLabels {
145
- copilot?: string;
146
- claude?: string;
147
- /** Label for the "copy to clipboard only" fallback */
148
- clipboard?: string;
149
- }
144
+ type IntentLabels = Partial<Record<Provider | 'clipboard', string>>;
150
145
  /**
151
146
  * Configuration for a custom intent in the AI menu.
152
147
  */
@@ -269,7 +264,7 @@ interface SendToAiRequest {
269
264
  /** Prompt template. Server may override with its own template. */
270
265
  prompt?: string;
271
266
  /** Target AI tool. If not provided, server will resolve it based on config */
272
- target?: string;
267
+ target?: Provider;
273
268
  }
274
269
  interface SendToAiResponse {
275
270
  success: boolean;
@@ -298,7 +293,7 @@ interface IdeInfo {
298
293
  interface InspectoConfig {
299
294
  ide: IdeType;
300
295
  /** List of AI targets available in the environment to show/enable in UI */
301
- providers: Record<Provider, ProviderInfo>;
296
+ providers?: Record<Provider, ProviderInfo>;
302
297
  /** Fully resolved and merged list of intent configurations for the UI to display */
303
298
  prompts?: IntentConfig[];
304
299
  hotKeys?: HotKeys;
package/dist/index.d.ts CHANGED
@@ -141,12 +141,7 @@ interface ChannelDef {
141
141
  type: ProviderMode;
142
142
  execute: (payload: AiPayload) => Promise<void>;
143
143
  }
144
- interface IntentLabels {
145
- copilot?: string;
146
- claude?: string;
147
- /** Label for the "copy to clipboard only" fallback */
148
- clipboard?: string;
149
- }
144
+ type IntentLabels = Partial<Record<Provider | 'clipboard', string>>;
150
145
  /**
151
146
  * Configuration for a custom intent in the AI menu.
152
147
  */
@@ -269,7 +264,7 @@ interface SendToAiRequest {
269
264
  /** Prompt template. Server may override with its own template. */
270
265
  prompt?: string;
271
266
  /** Target AI tool. If not provided, server will resolve it based on config */
272
- target?: string;
267
+ target?: Provider;
273
268
  }
274
269
  interface SendToAiResponse {
275
270
  success: boolean;
@@ -298,7 +293,7 @@ interface IdeInfo {
298
293
  interface InspectoConfig {
299
294
  ide: IdeType;
300
295
  /** List of AI targets available in the environment to show/enable in UI */
301
- providers: Record<Provider, ProviderInfo>;
296
+ providers?: Record<Provider, ProviderInfo>;
302
297
  /** Fully resolved and merged list of intent configurations for the UI to display */
303
298
  prompts?: IntentConfig[];
304
299
  hotKeys?: HotKeys;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inspecto-dev/types",
3
- "version": "0.2.0-alpha.2",
3
+ "version": "0.2.0-alpha.4",
4
4
  "description": "Shared TypeScript definitions for the Inspecto monorepo",
5
5
  "license": "MIT",
6
6
  "type": "module",