opensyn 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/README.md +73 -0
- package/README.zh-CN.md +65 -0
- package/index.ts +3507 -0
- package/openclaw.plugin.json +173 -0
- package/package.json +33 -0
- package/runtime/bin/linux-x64/synapse-cli +0 -0
- package/runtime/bin/linux-x64/synapse-daemon +0 -0
- package/runtime/opensyn-cli +43 -0
- package/runtime/opensyn-daemon +43 -0
- package/runtime/opensyn-host-distiller.mjs +173 -0
- package/runtime/opensyn-ingest-command +124 -0
- package/runtime/opensyn-run +99 -0
- package/runtime/postinstall.mjs +85 -0
package/README.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# OpenSyn OpenClaw Plugin
|
|
2
|
+
|
|
3
|
+
This plugin is the current OpenClaw entry point for OpenSyn.
|
|
4
|
+
|
|
5
|
+
Fast install:
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
openclaw plugins install opensyn
|
|
9
|
+
openclaw enable_opensyn
|
|
10
|
+
openclaw status_opensyn
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Default local paths:
|
|
14
|
+
- runtime root: `~/.opensyn`
|
|
15
|
+
- database: `~/.opensyn/opensyn.db`
|
|
16
|
+
|
|
17
|
+
Default workspace behavior:
|
|
18
|
+
- `openclaw enable_opensyn` uses the current OpenClaw workspace if no project path is provided
|
|
19
|
+
- `openclaw enable_opensyn` also bootstraps the managed shell hook, starts the plugin-managed background `watch-linux` collector, and starts the plugin-managed host-model distillation worker
|
|
20
|
+
- `openclaw status_opensyn` returns a compact `next=...` hint so the customer can see the next required action immediately
|
|
21
|
+
|
|
22
|
+
Fallback local-dev install:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
./scripts/openclaw-install-plugin --mode link --project-root "$PWD"
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Maintainer npm publish flow:
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
./scripts/publish-opensyn-plugin --dry-run
|
|
32
|
+
npm adduser
|
|
33
|
+
./scripts/publish-opensyn-plugin
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Primary documentation:
|
|
37
|
+
|
|
38
|
+
- English handbook: [docs/opensyn-handbook.md](/workspace/hengzhuang.jin/ai/opensyn/docs/opensyn-handbook.md)
|
|
39
|
+
- 中文手册: [docs/opensyn-handbook.zh-CN.md](/workspace/hengzhuang.jin/ai/opensyn/docs/opensyn-handbook.zh-CN.md)
|
|
40
|
+
- 中文插件入口: [README.zh-CN.md](/workspace/hengzhuang.jin/ai/opensyn/extensions/open-synapse/README.zh-CN.md)
|
|
41
|
+
|
|
42
|
+
Primary OpenClaw CLI commands:
|
|
43
|
+
|
|
44
|
+
- `openclaw enable_opensyn`
|
|
45
|
+
- `openclaw disable_opensyn`
|
|
46
|
+
- `openclaw status_opensyn`
|
|
47
|
+
- `openclaw doctor_opensyn`
|
|
48
|
+
- `openclaw repair_opensyn`
|
|
49
|
+
|
|
50
|
+
Plugin tools still available:
|
|
51
|
+
|
|
52
|
+
- `opensyn_autonomous_collection_status`
|
|
53
|
+
- `opensyn_autonomous_tick`
|
|
54
|
+
- `opensyn_current_context`
|
|
55
|
+
- `opensyn_recent_failure`
|
|
56
|
+
- `opensyn_search_history`
|
|
57
|
+
- `opensyn_list_assets`
|
|
58
|
+
- `opensyn_approve_asset`
|
|
59
|
+
- `opensyn_sync_assets`
|
|
60
|
+
|
|
61
|
+
Hard safety rules:
|
|
62
|
+
|
|
63
|
+
- only the OpenClaw-configured model may perform model-assisted distillation
|
|
64
|
+
- no external browsing or external model calls
|
|
65
|
+
- all context, jobs, and projected assets stay local on the machine
|
|
66
|
+
|
|
67
|
+
Current host overlay targets:
|
|
68
|
+
|
|
69
|
+
- `OPENSYN.md`
|
|
70
|
+
- `MEMORY.md`
|
|
71
|
+
- `AGENTS.md`
|
|
72
|
+
- `SOUL.md`
|
|
73
|
+
- `skills/opensyn-*/SKILL.md`
|
package/README.zh-CN.md
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# OpenSyn OpenClaw 插件(中文)
|
|
2
|
+
|
|
3
|
+
这是当前 OpenSyn 面向 OpenClaw 的主入口。
|
|
4
|
+
|
|
5
|
+
快速安装:
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
openclaw plugins install opensyn
|
|
9
|
+
openclaw enable_opensyn
|
|
10
|
+
openclaw status_opensyn
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
默认本地路径:
|
|
14
|
+
- runtime 根目录:`~/.opensyn`
|
|
15
|
+
- 数据库:`~/.opensyn/opensyn.db`
|
|
16
|
+
|
|
17
|
+
默认 workspace 行为:
|
|
18
|
+
- `openclaw enable_opensyn` 如果不传项目路径,会直接使用当前 OpenClaw workspace
|
|
19
|
+
- `openclaw enable_opensyn` 还会完成托管 shell hook 自举,并拉起插件托管的后台 `watch-linux` 采集器和 host-model distillation worker
|
|
20
|
+
- `openclaw status_opensyn` 会直接返回统一的 `next=...` 提示,让客户马上知道下一步动作
|
|
21
|
+
|
|
22
|
+
本地开发联调安装:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
./scripts/openclaw-install-plugin --mode link --project-root "$PWD"
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
维护者发布到 npm 的流程:
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
./scripts/publish-opensyn-plugin --dry-run
|
|
32
|
+
npm adduser
|
|
33
|
+
./scripts/publish-opensyn-plugin
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
主要文档:
|
|
37
|
+
|
|
38
|
+
- 中文手册:[docs/opensyn-handbook.zh-CN.md](/workspace/hengzhuang.jin/ai/opensyn/docs/opensyn-handbook.zh-CN.md)
|
|
39
|
+
- English handbook: [docs/opensyn-handbook.md](/workspace/hengzhuang.jin/ai/opensyn/docs/opensyn-handbook.md)
|
|
40
|
+
- 根入口:[README.zh-CN.md](/workspace/hengzhuang.jin/ai/opensyn/README.zh-CN.md)
|
|
41
|
+
|
|
42
|
+
主要 OpenClaw CLI 命令:
|
|
43
|
+
|
|
44
|
+
- `openclaw enable_opensyn`
|
|
45
|
+
- `openclaw disable_opensyn`
|
|
46
|
+
- `openclaw status_opensyn`
|
|
47
|
+
- `openclaw doctor_opensyn`
|
|
48
|
+
- `openclaw repair_opensyn`
|
|
49
|
+
|
|
50
|
+
插件工具仍可直接调用:
|
|
51
|
+
|
|
52
|
+
- `opensyn_autonomous_collection_status`
|
|
53
|
+
- `opensyn_autonomous_tick`
|
|
54
|
+
- `opensyn_current_context`
|
|
55
|
+
- `opensyn_recent_failure`
|
|
56
|
+
- `opensyn_search_history`
|
|
57
|
+
- `opensyn_list_assets`
|
|
58
|
+
- `opensyn_approve_asset`
|
|
59
|
+
- `opensyn_sync_assets`
|
|
60
|
+
|
|
61
|
+
安全约束:
|
|
62
|
+
|
|
63
|
+
- 只允许使用 OpenClaw 当前配置模型
|
|
64
|
+
- 不联网浏览,不调用外部模型
|
|
65
|
+
- 所有上下文、job、资产和投影都留在本机
|