@spectie/adapter-javascript 1.0.0 → 1.0.1
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,4 +1,4 @@
|
|
|
1
|
-
# rf.javascript 1.0.
|
|
1
|
+
# rf.javascript 1.0.1
|
|
2
2
|
|
|
3
3
|
当前接入使用协议 1:`spectie adapter add /本包目录`,自动注册并精确选择;Node 包先在本包目录执行 `npm ci --ignore-scripts`。共享运行时、依赖声明及完整流程见 [扩展说明](https://github.com/fanglinwei/spectie/blob/main/docs/ADAPTERS.md)。
|
|
4
4
|
|
|
@@ -12,7 +12,7 @@ Explicit registration (executes only this chosen adapter's self-check):
|
|
|
12
12
|
python3 /absolute/path/rf.py --project /absolute/project adapter-register --manifest /absolute/package-directory/adapter.json
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
Then use the core's adapter-select command to explicitly lock `rf.javascript@1.0.
|
|
15
|
+
Then use the core's adapter-select command to explicitly lock `rf.javascript@1.0.1` in the project. Registration alone does not select or approve any requirement. Multiple versions may coexist; no auto-updates. The executable reads one JSON request from stdin and writes one JSON response to stdout; diagnostics use stderr. Subprocess separation is not an OS sandbox.
|
|
16
16
|
|
|
17
17
|
Capabilities: language.js-ts. Category: language. All observations are static source facts, never business verification. Detailed supported concrete versions and limitations are recorded by the package manifest and [adapter guide](https://github.com/fanglinwei/spectie/blob/main/docs/ADAPTERS.md).
|
|
18
18
|
|
package/adapter.json
CHANGED
|
@@ -11,6 +11,6 @@
|
|
|
11
11
|
|
|
12
12
|
package.json 的 spectie 字段声明 capabilities,可选 parsers、algorithms 等;不必重复版本。运行时从 adapter.json(若存在)或 package.json 读取清单。详见 [公共 Interface](../../docs/ADAPTERS.md)。language 的 analyze 必须返回对象;{} 是成功空结果,complete:false 表示部分处理,抛异常不会记录完整覆盖。
|
|
13
13
|
|
|
14
|
-
开发时使用 `file:../../adapter-runtime/node` 依赖并配置 `install-links=true`,修改共享运行时后需重新安装本地副本。四个现有 Node 包 bundle 运行时,npm/offline 包不依赖仓库外部相对路径。扩展也可使用 registry 中已发布的准确运行时版本;从 GitHub Release 获取 SDK tgz 后,可用 `npm install /包/spectie-adapter-1.0.
|
|
14
|
+
开发时使用 `file:../../adapter-runtime/node` 依赖并配置 `install-links=true`,修改共享运行时后需重新安装本地副本。四个现有 Node 包 bundle 运行时,npm/offline 包不依赖仓库外部相对路径。扩展也可使用 registry 中已发布的准确运行时版本;从 GitHub Release 获取 SDK tgz 后,可用 `npm install /包/spectie-adapter-1.0.1.tgz` 安装。
|
|
15
15
|
|
|
16
16
|
打包本运行时:`npm pack --pack-destination /tmp`。只导出 index.mjs,不导入核心私有实现。
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spectie/adapter",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "git+https://github.com/fanglinwei/spectie.git",
|
|
7
|
+
"directory": "adapter-runtime/node"
|
|
8
|
+
},
|
|
4
9
|
"type": "module",
|
|
5
10
|
"exports": "./index.mjs",
|
|
6
11
|
"files": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spectie/adapter-javascript",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "git+https://github.com/fanglinwei/spectie.git",
|
|
7
|
+
"directory": "adapters/javascript"
|
|
8
|
+
},
|
|
4
9
|
"type": "module",
|
|
5
10
|
"license": "MIT",
|
|
6
11
|
"engines": {
|