@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 CHANGED
@@ -1,9 +1,27 @@
1
- # @spotpatch/runtime
1
+ <p align="center">
2
+ <a href="https://github.com/huanglvjing/spotpatch"><img src="https://raw.githubusercontent.com/huanglvjing/spotpatch/main/docs/assets/spotpatch-logo.svg" alt="SpotPatch" width="560" /></a>
3
+ </p>
2
4
 
3
- The browser-only SpotPatch runtime containing the element picker, bounded DOM
4
- and CSS collectors, localized Shadow DOM workbench, and prompt composer.
5
+ # `@spotpatch/runtime`
5
6
 
6
- Applications should install and configure
7
- [`@spotpatch/vite`](https://www.npmjs.com/package/@spotpatch/vite). The Vite
8
- plugin injects this runtime only during development and verifies that it is
9
- absent from production output.
7
+ ## English
8
+
9
+ The browser Runtime used by SpotPatch framework adapters. It contains the element picker, bounded DOM and CSS collectors, source-context client, localized Shadow DOM workbench, multi-target state, prompt composer, and optional Agent review UI.
10
+
11
+ Applications should install and configure [`@spotpatch/vite`](https://www.npmjs.com/package/@spotpatch/vite) rather than bootstrap this package directly. The adapter supplies authenticated development configuration and guarantees that the Runtime is absent from production output.
12
+
13
+ This package never owns provider credentials or unrestricted filesystem access.
14
+
15
+ ## 简体中文
16
+
17
+ 这是 SpotPatch 框架适配器使用的浏览器 Runtime,包含元素选择器、有界 DOM/CSS 采集器、源码上下文客户端、本地化 Shadow DOM 工作台、多目标状态、Prompt 生成器和可选 Agent 审阅界面。
18
+
19
+ 业务应用应安装并配置 [`@spotpatch/vite`](https://www.npmjs.com/package/@spotpatch/vite),而不是直接启动本包。框架适配器负责提供经过认证的开发期配置,并保证生产产物不包含 Runtime。
20
+
21
+ 本包不持有 Provider 凭据,也不具备不受限制的文件系统访问能力。
22
+
23
+ ## Links / 链接
24
+
25
+ - [Repository / 仓库](https://github.com/huanglvjing/spotpatch)
26
+ - [UI and diagnostics / UI 与诊断](https://github.com/huanglvjing/spotpatch/blob/main/docs/%E6%8A%80%E6%9C%AF%E6%96%B9%E6%A1%88/10-UI%E4%B8%8E%E8%AF%8A%E6%96%AD.md)
27
+ - [MIT License / 许可证](https://github.com/huanglvjing/spotpatch/blob/main/LICENSE)
package/dist/index.cjs CHANGED
@@ -4120,7 +4120,7 @@ function sourceLocation2(resolution, context, messages) {
4120
4120
  function createSelectionSummary(input, messages) {
4121
4121
  const lines = [
4122
4122
  `SpotPatch: ${input.spotPatchVersion}`,
4123
- `Vite: ${input.viteVersion}`,
4123
+ `${input.framework === "next" ? "Next.js" : "Vite"}: ${input.frameworkVersion}`,
4124
4124
  `${messages.source}: ${sourceLocation2(input.resolution, input.code, messages)}`,
4125
4125
  `${messages.confidence}: ${input.resolution.source.confidence} (${messages.confidenceLabels[input.resolution.source.confidence]})`,
4126
4126
  `${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
- spotPatchVersion: config.spotPatchVersion,
4659
- viteVersion: config.viteVersion
4658
+ framework: config.framework,
4659
+ frameworkVersion: config.frameworkVersion,
4660
+ spotPatchVersion: config.spotPatchVersion
4660
4661
  },
4661
4662
  messages
4662
4663
  );