@spotpatch/runtime 1.3.0 → 1.4.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/README.md +25 -7
- package/dist/index.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -15
- package/dist/index.d.ts +2 -15
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,19 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SpotPatchRuntimeConfig } from '@spotpatch/shared';
|
|
2
2
|
|
|
3
|
-
|
|
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 {
|
|
1
|
+
import { SpotPatchRuntimeConfig } from '@spotpatch/shared';
|
|
2
2
|
|
|
3
|
-
|
|
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.js
CHANGED
|
@@ -4118,7 +4118,7 @@ function sourceLocation2(resolution, context, messages) {
|
|
|
4118
4118
|
function createSelectionSummary(input, messages) {
|
|
4119
4119
|
const lines = [
|
|
4120
4120
|
`SpotPatch: ${input.spotPatchVersion}`,
|
|
4121
|
-
|
|
4121
|
+
`${input.framework === "next" ? "Next.js" : "Vite"}: ${input.frameworkVersion}`,
|
|
4122
4122
|
`${messages.source}: ${sourceLocation2(input.resolution, input.code, messages)}`,
|
|
4123
4123
|
`${messages.confidence}: ${input.resolution.source.confidence} (${messages.confidenceLabels[input.resolution.source.confidence]})`,
|
|
4124
4124
|
`${messages.origin}: ${input.resolution.source.origin}`
|
|
@@ -4655,8 +4655,9 @@ function createController(config, dependencies = {}) {
|
|
|
4655
4655
|
...target.styles === void 0 ? {} : { styles: target.styles },
|
|
4656
4656
|
apiStatus: target.apiStatus,
|
|
4657
4657
|
collectionStatus: target.collectionStatus,
|
|
4658
|
-
|
|
4659
|
-
|
|
4658
|
+
framework: config.framework,
|
|
4659
|
+
frameworkVersion: config.frameworkVersion,
|
|
4660
|
+
spotPatchVersion: config.spotPatchVersion
|
|
4660
4661
|
},
|
|
4661
4662
|
messages
|
|
4662
4663
|
);
|