@spotpatch/runtime 1.3.0 → 1.5.0

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
@@ -1,19 +1,6 @@
1
- import { SPOTPATCH_API_BASE, RuntimeAiConfig, ContextBudget, SpotPatchEditorPreference, SpotPatchLocalePreference } from '@spotpatch/shared';
1
+ import { SpotPatchRuntimeConfig } from '@spotpatch/shared';
2
2
 
3
- interface RuntimeConfig {
4
- readonly apiBase: typeof SPOTPATCH_API_BASE;
5
- readonly ai: RuntimeAiConfig;
6
- readonly budget: Readonly<ContextBudget>;
7
- readonly debug: boolean;
8
- readonly editor: SpotPatchEditorPreference;
9
- readonly locale: SpotPatchLocalePreference;
10
- readonly maxTargets: number;
11
- readonly redact: boolean;
12
- readonly sessionToken: string;
13
- readonly shortcut: string;
14
- readonly spotPatchVersion: string;
15
- readonly viteVersion: string;
16
- }
3
+ type RuntimeConfig = SpotPatchRuntimeConfig;
17
4
 
18
5
  declare function bootstrapSpotPatch(config: RuntimeConfig): void;
19
6
 
package/dist/index.d.ts CHANGED
@@ -1,19 +1,6 @@
1
- import { SPOTPATCH_API_BASE, RuntimeAiConfig, ContextBudget, SpotPatchEditorPreference, SpotPatchLocalePreference } from '@spotpatch/shared';
1
+ import { SpotPatchRuntimeConfig } from '@spotpatch/shared';
2
2
 
3
- interface RuntimeConfig {
4
- readonly apiBase: typeof SPOTPATCH_API_BASE;
5
- readonly ai: RuntimeAiConfig;
6
- readonly budget: Readonly<ContextBudget>;
7
- readonly debug: boolean;
8
- readonly editor: SpotPatchEditorPreference;
9
- readonly locale: SpotPatchLocalePreference;
10
- readonly maxTargets: number;
11
- readonly redact: boolean;
12
- readonly sessionToken: string;
13
- readonly shortcut: string;
14
- readonly spotPatchVersion: string;
15
- readonly viteVersion: string;
16
- }
3
+ type RuntimeConfig = SpotPatchRuntimeConfig;
17
4
 
18
5
  declare function bootstrapSpotPatch(config: RuntimeConfig): void;
19
6