@joe-broadhead/opencode-mem 0.7.0 → 0.7.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 +8 -2
- package/package.json +1 -1
- package/views/home.html +13 -0
- package/views/memory.html +20 -1
package/README.md
CHANGED
|
@@ -311,8 +311,14 @@ is all `mem_forget` needs: it finds the memory under the agent the person is
|
|
|
311
311
|
talking to, which is the agent the views read under, so no agent name is
|
|
312
312
|
written. The person sends it, and `mem_forget` runs under
|
|
313
313
|
their rules, as any forget does. **Remember conversations** stays a declared
|
|
314
|
-
setting on the plugin's card
|
|
315
|
-
|
|
314
|
+
setting on the plugin's card, on by default. Because memory is on for every
|
|
315
|
+
Jelly user, the Home tile and the top of the Overview say plainly what it
|
|
316
|
+
saves ("Memory saves your finished conversations to your private memory"),
|
|
317
|
+
what private means (only you and your agents; nothing goes to a shared space
|
|
318
|
+
unless you choose, and Jelly asks first), and where to turn it off
|
|
319
|
+
(Settings → Plugins → Memory). A view cannot open a setting, so the place is
|
|
320
|
+
named in words. The Overview also notes when a saved change waits for the
|
|
321
|
+
engine's next start.
|
|
316
322
|
|
|
317
323
|
**No recall view yet.** Jelly runs the memory tools through Code Mode, and a
|
|
318
324
|
view is not given the result of a call made inside it, so there is no view
|
package/package.json
CHANGED
package/views/home.html
CHANGED
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--jelly-accent, Highlight); flex: none; }
|
|
18
18
|
.dot.off { background: transparent; border: 1.5px solid var(--jelly-muted, GrayText); }
|
|
19
19
|
.dot.danger { background: var(--jelly-danger, CanvasText); }
|
|
20
|
+
.notice { font-size: 12px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--jelly-border, GrayText); }
|
|
20
21
|
.figure { font-size: 26px; font-weight: 600; line-height: 1.15; margin: 6px 0 2px; }
|
|
21
22
|
.button {
|
|
22
23
|
font: inherit; font-size: 12px; color: var(--jelly-text, CanvasText); background: var(--jelly-raised, Canvas);
|
|
@@ -169,6 +170,18 @@ async function draw() {
|
|
|
169
170
|
el("p", "muted", `${counts.memories === 1 ? "memory" : "memories"} kept, from ${count(counts.conversations, "conversation", "conversations")}`),
|
|
170
171
|
];
|
|
171
172
|
if (overview.health !== "ok") lines.push(el("p", "muted", "Memory can't be reached just now."));
|
|
173
|
+
// The notice: memory is on for every Jelly user, so the tile says plainly what
|
|
174
|
+
// it saves and where to turn it off. A view cannot open Settings, so it names
|
|
175
|
+
// the place.
|
|
176
|
+
lines.push(
|
|
177
|
+
el(
|
|
178
|
+
"p",
|
|
179
|
+
"notice",
|
|
180
|
+
overview.capture
|
|
181
|
+
? "Memory saves your finished conversations to your private memory. You can turn this off in Settings → Plugins → Memory."
|
|
182
|
+
: "Memory isn't saving conversations. Turn it on in Settings → Plugins → Memory.",
|
|
183
|
+
),
|
|
184
|
+
);
|
|
172
185
|
show(...lines);
|
|
173
186
|
}
|
|
174
187
|
|
package/views/memory.html
CHANGED
|
@@ -240,10 +240,28 @@ function captureRows(overview) {
|
|
|
240
240
|
];
|
|
241
241
|
if (saved !== null && saved !== overview.capture)
|
|
242
242
|
rows.push(`Saved as ${saved ? "on" : "off"}; this takes effect when the agent next starts.`);
|
|
243
|
-
rows.push("Change it with Remember conversations, in this plugin's settings.");
|
|
244
243
|
return rows.map((row, index) => el("div", index === 0 ? {} : { class: "meta" }, row));
|
|
245
244
|
}
|
|
246
245
|
|
|
246
|
+
/**
|
|
247
|
+
* The notice at the top of the Overview: what is saved, what "private" means,
|
|
248
|
+
* and where the switch is. A view cannot open a setting, so it names it.
|
|
249
|
+
*/
|
|
250
|
+
function captureNotice(overview) {
|
|
251
|
+
const where = "Remember conversations, in this plugin's settings (Settings → Plugins → Memory)";
|
|
252
|
+
if (!overview.capture)
|
|
253
|
+
return el("div", { class: "note", role: "note" },
|
|
254
|
+
el("p", {}, el("strong", {}, "Memory isn't saving your conversations.")),
|
|
255
|
+
p("Your agents still recall what memory holds, and remember what you ask them to."),
|
|
256
|
+
p(`To save your finished conversations to your private memory, turn on ${where}.`, "muted"),
|
|
257
|
+
);
|
|
258
|
+
return el("div", { class: "note", role: "note" },
|
|
259
|
+
el("p", {}, el("strong", {}, "Memory saves your finished conversations to your private memory.")),
|
|
260
|
+
p("Private means only you, and your agents working for you, can read it. Nothing goes to a shared space unless you choose to share it, and Jelly asks you first."),
|
|
261
|
+
p(`To stop, turn off ${where}.`, "muted"),
|
|
262
|
+
);
|
|
263
|
+
}
|
|
264
|
+
|
|
247
265
|
async function overviewTab() {
|
|
248
266
|
loading();
|
|
249
267
|
let overview;
|
|
@@ -257,6 +275,7 @@ async function overviewTab() {
|
|
|
257
275
|
const signedIn = [SIGNED_IN[overview.credential] ?? SIGNED_IN.none];
|
|
258
276
|
if (overview.refused) signedIn.push(`${REFUSED[overview.refused] ?? "Jelly couldn't sign you in"}, so the saved key is used.`);
|
|
259
277
|
show(
|
|
278
|
+
captureNotice(overview),
|
|
260
279
|
p("Memory keeps your decisions, preferences and notes, so your agents can use them in later conversations."),
|
|
261
280
|
el("dl", {},
|
|
262
281
|
el("dt", {}, "Status"),
|