@spotpatch/dev-server 0.1.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/LICENSE +21 -0
- package/README.md +31 -0
- package/dist/index.cjs +2447 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +201 -0
- package/dist/index.d.ts +201 -0
- package/dist/index.js +2438 -0
- package/dist/index.js.map +1 -0
- package/package.json +61 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 SpotPatch contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
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>
|
|
4
|
+
|
|
5
|
+
# `@spotpatch/dev-server`
|
|
6
|
+
|
|
7
|
+
## English
|
|
8
|
+
|
|
9
|
+
The framework-neutral, Node-only development service shared by SpotPatch adapters. It owns validated options, session and source registries, authorized local HTTP handlers, bounded source context, editor launching, Runtime bootstrap configuration, and optional Agent orchestration.
|
|
10
|
+
|
|
11
|
+
Applications should install a framework adapter such as [`@spotpatch/vite`](https://www.npmjs.com/package/@spotpatch/vite). Browser code must never import this package, and provider credentials must remain in its trusted Node environment.
|
|
12
|
+
|
|
13
|
+
The service is development-only. Production adapters must omit it together with all private endpoints and source-registration state.
|
|
14
|
+
|
|
15
|
+
Requires Node.js `>=20.19.0`.
|
|
16
|
+
|
|
17
|
+
## 简体中文
|
|
18
|
+
|
|
19
|
+
这是 SpotPatch 框架适配器共享的框架无关、Node-only 开发服务,负责经过校验的选项、会话与源码注册、授权本地 HTTP Handler、有界源码上下文、编辑器启动、Runtime bootstrap 配置和可选 Agent 编排。
|
|
20
|
+
|
|
21
|
+
业务应用应安装 [`@spotpatch/vite`](https://www.npmjs.com/package/@spotpatch/vite) 等框架适配器。浏览器代码绝不能导入本包,Provider 凭据也必须只保留在可信 Node 环境中。
|
|
22
|
+
|
|
23
|
+
本服务仅限开发期。生产适配器必须同时移除本包、全部私有端点和源码注册状态。
|
|
24
|
+
|
|
25
|
+
要求 Node.js `>=20.19.0`。
|
|
26
|
+
|
|
27
|
+
## Links / 链接
|
|
28
|
+
|
|
29
|
+
- [Repository / 仓库](https://github.com/huanglvjing/spotpatch)
|
|
30
|
+
- [Security model / 安全模型](https://github.com/huanglvjing/spotpatch/blob/main/docs/%E6%8A%80%E6%9C%AF%E6%96%B9%E6%A1%88/09-%E6%9C%AC%E5%9C%B0%E5%8D%8F%E8%AE%AE%E4%B8%8E%E5%AE%89%E5%85%A8.md)
|
|
31
|
+
- [MIT License / 许可证](https://github.com/huanglvjing/spotpatch/blob/main/LICENSE)
|