dsh-engramory 1.5.1 → 1.5.2
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.en.md +1 -1
- package/README.md +1 -1
- package/client.js +1 -1
- package/index.js +19 -5
- package/package.json +1 -1
package/README.en.md
CHANGED
|
@@ -47,7 +47,7 @@ dsh plugin --profile <name> add dsh-engramory
|
|
|
47
47
|
To uninstall, use `remove` instead of `add`.
|
|
48
48
|
|
|
49
49
|
**Name the version to upgrade**, as in `dsh plugin --profile <name> add
|
|
50
|
-
dsh-engramory@1.5.
|
|
50
|
+
dsh-engramory@1.5.2`: by name alone, pnpm 11 (the desktop app's own included) by default
|
|
51
51
|
installs only a version published at least 24 hours ago. The desktop app's Plugins page has no *Update*
|
|
52
52
|
for a plugin from outside dsh: uninstall it, search for `dsh-engramory@<version>` and
|
|
53
53
|
install that, then quit dsh from the tray and open it again. Your memory and settings stay.
|
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ dsh plugin --profile <名字> add dsh-engramory
|
|
|
26
26
|
|
|
27
27
|
卸载把 `add` 换成 `remove`。
|
|
28
28
|
|
|
29
|
-
**升级要写上版本号**,比如 `dsh plugin --profile <名字> add dsh-engramory@1.5.
|
|
29
|
+
**升级要写上版本号**,比如 `dsh plugin --profile <名字> add dsh-engramory@1.5.2`:只写名字时,pnpm 11(桌面版自带的也是)默认只装发布满 24 小时的版本。桌面版的插件页对第三方插件没有「更新」按钮:先卸载,再搜 `dsh-engramory@<版本>` 安装,装完从托盘退出 dsh 再打开。记忆库和设置都会保留。记忆页底部的「检查更新」能查到最新版本号,并列出这几步。
|
|
30
30
|
|
|
31
31
|
兼容的 dsh 版本见 [`package.json`](https://github.com/tinqiao-oss/engramory/blob/master/adapters/dsh/plugin/package.json) 里的 `dsh.compatibility.dshReleases`,没列出的版本未经验证。
|
|
32
32
|
|
package/client.js
CHANGED
|
@@ -39,7 +39,7 @@ window.__ModuleLoader__.load({
|
|
|
39
39
|
/** How often the page looks again at a move it did not start, while one is under way. */
|
|
40
40
|
const MOVE_FOLLOW_MS = 2000
|
|
41
41
|
/** This plugin's version, for the feedback footer; a test keeps it equal to package.json's. */
|
|
42
|
-
const VERSION = '1.5.
|
|
42
|
+
const VERSION = '1.5.2'
|
|
43
43
|
/** Where feedback goes: a new issue on the repository, or the project's mailbox. Opening
|
|
44
44
|
* the link is the browser's (the desktop app hands it to the system's); the footer submits
|
|
45
45
|
* nothing by itself. */
|
package/index.js
CHANGED
|
@@ -1496,8 +1496,9 @@ async function fileIn(store, name, archived) {
|
|
|
1496
1496
|
* so a restored older log reads the same. Two carry text without an author, and only the
|
|
1497
1497
|
* owner can send either on that dsh (it grants a caller other than the owner nothing):
|
|
1498
1498
|
* an answer to the agent's question (`user-question-reply`) and a scheduled prompt
|
|
1499
|
-
* (`schedule`). `webhook`, input from outside, is left out.
|
|
1500
|
-
*
|
|
1499
|
+
* (`schedule`). `webhook`, input from outside, is left out. dsh 0.2.2-rc.1 adds one,
|
|
1500
|
+
* `action-cards` (ACTION_CARD_NOTICE). A kind not named here — a later dsh's, or any
|
|
1501
|
+
* plugin's — is someone else's unless its source says otherwise.
|
|
1501
1502
|
*/
|
|
1502
1503
|
const INERT_PRODUCERS = new Set([
|
|
1503
1504
|
'runtime-context', 'system-prompt', 'time-context', 'tmux-context', 'working-directory',
|
|
@@ -1509,6 +1510,17 @@ const INERT_PRODUCERS = new Set([
|
|
|
1509
1510
|
'dsh-session-title-llm', 'hooks-codex', 'hooks-claude-code', 'model', 'tool',
|
|
1510
1511
|
])
|
|
1511
1512
|
|
|
1513
|
+
/**
|
|
1514
|
+
* dsh 0.2.2-rc.1's `action-cards` messages (dsh-action-cards, in the optional personalized
|
|
1515
|
+
* recommendations bundle): what became of the cards the agent proposed, sent as a notice
|
|
1516
|
+
* (`form: 'notice'`) before the agent's next step. Its text is dsh's own preamble and the
|
|
1517
|
+
* cards' receipts — a card's title, the agent's own, and what each kind reports, such as a
|
|
1518
|
+
* place the owner typed — none of it written by an outsider: on that dsh only the owner
|
|
1519
|
+
* decides a card (`actionCards/act` is granted to no one else). Only the notice is nobody's;
|
|
1520
|
+
* any other form of the kind is someone else's, until a later dsh is read again.
|
|
1521
|
+
*/
|
|
1522
|
+
const ACTION_CARD_NOTICE = 'action-cards'
|
|
1523
|
+
|
|
1512
1524
|
/**
|
|
1513
1525
|
* Who wrote one user message, by the source dsh stamps on it (a message queued in
|
|
1514
1526
|
* `agent/inbox/spliced` or committed in `user/message`):
|
|
@@ -1524,7 +1536,7 @@ const INERT_PRODUCERS = new Set([
|
|
|
1524
1536
|
* cannot be read. Anyone in a group, the owner included: a `speaker` whose
|
|
1525
1537
|
* `chat` is set to anything but 'private' ('group' is the standard) — the whole
|
|
1526
1538
|
* group reads the reply, even before anyone else there has spoken;
|
|
1527
|
-
* undefined nobody: dsh's own producers (INERT_PRODUCERS) and a plugin's own message
|
|
1539
|
+
* undefined nobody: dsh's own producers (INERT_PRODUCERS, ACTION_CARD_NOTICE) and a plugin's own message
|
|
1528
1540
|
* declared `speaker: { role: 'none' }` — a report or a reminder no outsider
|
|
1529
1541
|
* wrote. These decide nothing. (SPEAKERS also lets through two bare `user`
|
|
1530
1542
|
* messages dsh writes itself.)
|
|
@@ -1541,6 +1553,7 @@ function speakerOf(source) {
|
|
|
1541
1553
|
return typeof source.rpcId === 'string' && typeof source.clientTimeZone === 'string' &&
|
|
1542
1554
|
source.principal === undefined ? 'owner' : 'other'
|
|
1543
1555
|
}
|
|
1556
|
+
if (kind === ACTION_CARD_NOTICE) return source.form === 'notice' ? undefined : 'other'
|
|
1544
1557
|
return typeof kind === 'string' && INERT_PRODUCERS.has(kind) ? undefined : 'other'
|
|
1545
1558
|
}
|
|
1546
1559
|
|
|
@@ -1644,8 +1657,9 @@ const SPEAKERS = {
|
|
|
1644
1657
|
// Bumped whenever the state's fields or the fold change, so dsh refolds a session from its
|
|
1645
1658
|
// log rather than seed it from a checkpoint the fold no longer means (2: pre-release shapes;
|
|
1646
1659
|
// 3: a message in a group chat is someone else's, the owner's included; 4: dsh 0.1's own
|
|
1647
|
-
// `{ kind: 'plugin' }` messages are nobody's, no longer an outsider's
|
|
1648
|
-
|
|
1660
|
+
// `{ kind: 'plugin' }` messages are nobody's, no longer an outsider's; 5: dsh 0.2.2's
|
|
1661
|
+
// `action-cards` notices are nobody's, no longer an outsider's, ACTION_CARD_NOTICE).
|
|
1662
|
+
stateVersion: 5,
|
|
1649
1663
|
// dsh only calls `parse`, on a checkpoint before folding on from it; no zod needed.
|
|
1650
1664
|
stateSchema: {
|
|
1651
1665
|
parse(value) {
|