dsh-mnemon 0.5.27 → 0.5.29
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 +1 -1
- package/README.zh-CN.md +1 -1
- package/lib/bundle.js +1 -1
- package/lib/client.js +2041 -1264
- package/lib/index.js +1229 -223
- package/lib/{starter-resolution-C2z8b9AZ.js → starter-resolution-CiUfOO4b.js} +4 -4
- package/lib/starter.js +1 -1
- package/lib/types/src/client/locales.d.ts +163 -100
- package/lib/types/src/host/protocol.d.ts +57 -2
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -131,7 +131,7 @@ Start with the [plugin author guide](https://github.com/omdsh-dev/dsh-mnemon/blo
|
|
|
131
131
|
|
|
132
132
|
- Runtime memory and Project Documents are local files; Mnemon Native is local. Third-party Providers use their own services and scopes.
|
|
133
133
|
- Turning a component off does not erase its memory, and changing the storage location does not move data. Use ZIP backup to carry it.
|
|
134
|
-
- Git sync publishes the same Mnemon Pack payload to a repository you own, as readable files, so another machine can pull it.
|
|
134
|
+
- Git sync publishes the same Mnemon Pack payload to a repository you own, as readable files, so another machine can pull it. Connect a repository by signing in with GitHub (search, pick or create a private one; a public one asks first) or by its address, with a token field only for HTTPS. **Sync now** merges the repository into this machine and pushes the result, **Check remote** shows what a sync would change before anything is written, and **Automatic sync** repeats the same sync at an interval from an hour to a week. When the repository cannot be read, the row says why (credentials, not found, network or timeout) and how to fix it, and **Backup history** lists every machine's versions by time and computer. Both directions are refused where `writeEnabled` is false. Two machines that wrote one subject differently keep both wordings until **Reconcile** under **Memory reconciliation** proposes a plan, which arrives as a pending proposal to **Accept** and then **Apply**, or to annotate with an opinion first; a rejected plan has to be **reopened** before your words reach the next run. Reconciliation takes your own words as guidance, and an accepted plan is applied operation by operation, so you can take part of it.
|
|
135
135
|
- Saved Provider credentials stay on the Host and are never exported. Backups still contain private memory; protect them.
|
|
136
136
|
- Sources and Strategies are trusted in-process JavaScript, not sandboxed code. Remembered history never outranks current instructions.
|
|
137
137
|
|
package/README.zh-CN.md
CHANGED
|
@@ -132,7 +132,7 @@ Starter 固定一组经过测试、各自独立版本的包。同一时间只运
|
|
|
132
132
|
|
|
133
133
|
- 运行时记忆与项目档案是本地文件,Mnemon Native 也在本地;第三方 Provider 使用各自的服务与作用域。
|
|
134
134
|
- 关闭组件不会删除其中的记忆,更换存储位置也不会搬移数据;需要迁移时使用 ZIP 备份。
|
|
135
|
-
- Git 同步把同一份 Mnemon Pack
|
|
135
|
+
- Git 同步把同一份 Mnemon Pack 载荷以可读文件发布到你自己的仓库,另一台机器可以拉取。可以用 GitHub 登录连接仓库(搜索、选择或新建私有仓库,选择公开仓库前会先确认),也可以填写地址,只有 HTTPS 地址才需要访问令牌。**立即同步**先把仓库合并到本机,再推送结果;**检查远端**在写入任何内容之前说明一次同步会带来什么;**自动同步**按一小时到一周的间隔重复同样的同步。读不到仓库时,这一行会说明原因(凭据、找不到、网络或超时)以及如何修正;**备份历史**按时间与设备列出每台机器的版本。`writeEnabled=false` 时两个方向都会被拒绝。两台设备对同一主题写法不同时,两种写法都会保留,直到**记忆整理**里的**整理记忆**给出方案;方案以待审查建议出现,可以**接受**后**执行**,也可以先留下意见——已拒绝的方案要先**重新打开**,你的意见才会进入下一次整理。整理记忆可以填写你的要求,已接受的方案可以逐条勾选执行,因此可以只采纳其中一部分。
|
|
136
136
|
- 已保存的 Provider 凭据只留在宿主上,不会被导出;但备份仍包含私有记忆,请妥善保护。
|
|
137
137
|
- Source 与 Strategy 是受信任的进程内 JavaScript,**不是沙箱代码**;历史记忆永远不会凌驾于当前指令之上。
|
|
138
138
|
|
package/lib/bundle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as prepareStarterResolution } from "./starter-resolution-
|
|
1
|
+
import { t as prepareStarterResolution } from "./starter-resolution-CiUfOO4b.js";
|
|
2
2
|
//#region src/bundle.ts
|
|
3
3
|
const groupKey = Symbol.for("cordis.group");
|
|
4
4
|
const init = Symbol.for("cordis.init");
|