counterparts 0.3.19 → 0.3.21
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/CHANGELOG.md +119 -0
- package/README.md +12 -4
- package/docs/module-map.md +6 -0
- package/package.json +1 -1
- package/src/adapters/claude-code/CONTRACT.md +14 -13
- package/src/adapters/claude-code/NOTES.md +29 -0
- package/src/adapters/claude-code/bin/hook.ts +12 -4
- package/src/adapters/claude-code/bin/runner.ts +41 -20
- package/src/adapters/claude-code/doctor.ts +123 -30
- package/src/adapters/claude-code/hooks.ts +70 -86
- package/src/adapters/claude-code/index.ts +0 -3
- package/src/adapters/cli/NOTES.md +8 -0
- package/src/adapters/cli/commands-delete.ts +273 -0
- package/src/adapters/cli/commands-install.ts +29 -10
- package/src/adapters/cli/commands-note.ts +1 -1
- package/src/adapters/cli/commands-readings.ts +4 -2
- package/src/adapters/cli/commands-scope.ts +25 -4
- package/src/adapters/cli/commands-self.ts +4 -1
- package/src/adapters/cli/commands-start-fresh.ts +1 -1
- package/src/adapters/cli/commands.ts +22 -3
- package/src/adapters/cli/help.ts +7 -7
- package/src/adapters/cli/install.ts +4 -2
- package/src/adapters/cli/mechanisms.ts +2 -2
- package/src/adapters/cli/removal.ts +1 -1
- package/src/adapters/config.ts +112 -30
- package/src/adapters/dashboard/CONTRACT.md +14 -0
- package/src/adapters/dashboard/NOTES.md +15 -0
- package/src/adapters/dashboard/activity.ts +1 -1
- package/src/adapters/dashboard/bin/dashboard.ts +3 -3
- package/src/adapters/dashboard/browse.ts +1 -1
- package/src/adapters/dashboard/identity.ts +1 -1
- package/src/adapters/dashboard/registries.ts +14 -14
- package/src/adapters/dashboard/resolve.ts +1 -1
- package/src/adapters/dashboard/status.ts +5 -2
- package/src/adapters/dashboard/web/actions.ts +21 -2
- package/src/adapters/dashboard/web/app.html +1 -1
- package/src/adapters/dashboard/web/flow.ts +1 -1
- package/src/adapters/dashboard/web/mechanisms/consolidation/index.js +2 -2
- package/src/adapters/dashboard/web/mechanisms/consolidation/panel.js +1 -1
- package/src/adapters/dashboard/web/mechanisms/decay/index.js +1 -1
- package/src/adapters/dashboard/web/mechanisms/reconsolidation/index.js +2 -2
- package/src/adapters/dashboard/web/mechanisms/retrieval/panel.js +3 -3
- package/src/adapters/dashboard/web/mechanisms/salience/panel.js +2 -2
- package/src/adapters/dashboard/web/narrate.ts +11 -11
- package/src/adapters/dashboard/web/pages/flow/sections/heatmap.js +1 -1
- package/src/adapters/dashboard/web/pages/health/sections/checks.js +3 -2
- package/src/adapters/dashboard/web/pages/health/sections/cycle.js +5 -5
- package/src/adapters/dashboard/web/pages/health/sections/mechanisms.js +1 -1
- package/src/adapters/dashboard/web/pages/health/sections/wake.js +2 -2
- package/src/adapters/dashboard/web/pages/memories/sections/tools.js +73 -3
- package/src/adapters/dashboard/web/pages/self/sections/dreams.js +2 -2
- package/src/adapters/dashboard/web/pages/self/sections/journal.js +5 -5
- package/src/adapters/dashboard/web/pages/self/sections/page.js +13 -13
- package/src/adapters/dashboard/web/pages/self/sections/settling.js +1 -1
- package/src/adapters/dashboard/web/pages/self/sections/wake.js +7 -7
- package/src/adapters/dashboard/web/server.ts +9 -1
- package/src/adapters/dashboard/web/shared/event-modal.js +1 -1
- package/src/adapters/dashboard/web/shared/memory-card-words.js +1 -1
- package/src/adapters/dashboard/web/shared/memory-modal.js +5 -5
- package/src/adapters/dashboard/web/views/activity.ts +1 -1
- package/src/adapters/dashboard/web/views/dreams.ts +1 -1
- package/src/adapters/dashboard/web/views/health.ts +1 -1
- package/src/adapters/dashboard/web/views/mechanisms.ts +6 -6
- package/src/adapters/dashboard/web/views/mind.ts +21 -9
- package/src/adapters/dashboard/web/views/overview.ts +3 -3
- package/src/adapters/expansions.ts +14 -1
- package/src/adapters/fired.ts +1 -1
- package/src/adapters/lifecycle.ts +25 -4
- package/src/adapters/log/index.ts +21 -0
- package/src/adapters/mcp/CONTRACT.md +1 -1
- package/src/adapters/mcp/server-self-tools.ts +25 -1
- package/src/adapters/mcp/server-words.ts +3 -2
- package/src/adapters/mcp/server.ts +45 -9
- package/src/adapters/mcp/tools.ts +4 -3
- package/src/adapters/plugin.ts +44 -8
- package/src/adapters/sessions.ts +5 -2
- package/src/adapters/snapshots.ts +90 -1
- package/src/adapters/store-id.ts +58 -0
- package/src/core/counterpart-boundary.ts +9 -0
- package/src/core/counterpart.ts +19 -6
- package/src/core/dream/CONTRACT.md +8 -0
- package/src/core/dream/index.ts +15 -2
- package/src/core/handoff/last-here.ts +24 -12
- package/src/core/onboarding.ts +231 -62
- package/src/core/prospective/CONTRACT.md +4 -1
- package/src/core/prospective/index.ts +23 -5
- package/src/core/recall/CONTRACT.md +3 -1
- package/src/core/recall/INTERFACE-GAPS.md +1 -1
- package/src/core/recall/NOTES.md +14 -0
- package/src/core/recall/session.ts +40 -1
- package/src/core/reconsolidation.ts +1 -1
- package/src/core/remember/CONTRACT.md +14 -8
- package/src/core/remember/owes.ts +68 -28
- package/src/core/remember/owner-strike-seam.ts +6 -3
- package/src/core/remember/spans.ts +3 -2
- package/src/core/remember/tunables.ts +18 -5
- package/src/core/remember/write-up-seam.ts +2 -1
- package/src/core/self/CONTRACT.md +25 -9
- package/src/core/self/NOTES.md +6 -0
- package/src/core/self/briefing-delivery.ts +349 -0
- package/src/core/self/briefing-page.ts +315 -0
- package/src/core/self/briefing-room.ts +563 -0
- package/src/core/self/briefing.ts +304 -1156
- package/src/core/self/index.ts +28 -6
- package/src/core/store/NOTES.md +6 -5
- package/src/core/store/index.ts +39 -0
- package/src/core/store/paths.ts +9 -2
- package/src/adapters/claude-code/primacy.ts +0 -162
|
@@ -196,7 +196,7 @@ export const NARRATORS = {
|
|
|
196
196
|
);
|
|
197
197
|
},
|
|
198
198
|
"band.demoted": (t) =>
|
|
199
|
-
notable(`
|
|
199
|
+
notable(`You sent ${subject(t)} back out of the core, to fade like any other memory from today.`),
|
|
200
200
|
"physics.upgrade.census": (t) => {
|
|
201
201
|
const down = n(t, "bandDown") ?? 0;
|
|
202
202
|
const sooner = n(t, "pruneSooner") ?? 0;
|
|
@@ -246,14 +246,14 @@ export const NARRATORS = {
|
|
|
246
246
|
);
|
|
247
247
|
},
|
|
248
248
|
"dream.journaled": () => notable("I woke from a dream and wrote it in the dream journal."),
|
|
249
|
-
"dream.undone": (t) => notable(`
|
|
249
|
+
"dream.undone": (t) => notable(`You undid a dream — ${n(t, "reversed") ?? 0} of its changes were put back.`),
|
|
250
250
|
"dream.ask": (t) => {
|
|
251
251
|
// The day's line follows the owner's setting (2026-09-28): `launched`
|
|
252
252
|
// (auto), `offered` (ask), `relaunched` (a run left behind, started
|
|
253
253
|
// again), `declined`, and `setting` (the owner changed it).
|
|
254
254
|
switch (s(t, "state")) {
|
|
255
255
|
case "declined":
|
|
256
|
-
return calm("
|
|
256
|
+
return calm("You said not today to a dream.");
|
|
257
257
|
case "launched":
|
|
258
258
|
return calm("I started the nightly run in the background: the page writer, a dream, a reflection.");
|
|
259
259
|
case "relaunched":
|
|
@@ -292,8 +292,8 @@ export const NARRATORS = {
|
|
|
292
292
|
// that must not read as routine housekeeping.
|
|
293
293
|
return notable(
|
|
294
294
|
original === null
|
|
295
|
-
? `
|
|
296
|
-
: `
|
|
295
|
+
? `You put ${subject(t, s(t, "candidateId"))} back: a merge had archived it, and it should never have been a duplicate.`
|
|
296
|
+
: `You put ${subject(t, s(t, "candidateId"))} back — a merge had folded it into ${subject(t, original)}, and it should never have been a duplicate. The use that merge credited stands.`,
|
|
297
297
|
);
|
|
298
298
|
},
|
|
299
299
|
|
|
@@ -630,7 +630,7 @@ export const NARRATORS = {
|
|
|
630
630
|
// self-update, first in the nightly run) and the reflection after it.
|
|
631
631
|
const who =
|
|
632
632
|
by === "owner"
|
|
633
|
-
? "
|
|
633
|
+
? "you wrote my page"
|
|
634
634
|
: by === "writer"
|
|
635
635
|
? "the nightly writer revised my page"
|
|
636
636
|
: by === "reflection"
|
|
@@ -690,7 +690,7 @@ export const NARRATORS = {
|
|
|
690
690
|
const created = t.p["created"] === true;
|
|
691
691
|
const days = n(t, "lifeDays") ?? 0;
|
|
692
692
|
return calm(
|
|
693
|
-
`I left a handoff for the next session in this
|
|
693
|
+
`I left a handoff for the next session in this project: ${num(bytes, 0)} bytes, ` +
|
|
694
694
|
`${created ? "a new one from this session" : "replacing this session's earlier one"}, showing for ${num(days, 0)} ${days === 1 ? "day" : "days"} of use.`,
|
|
695
695
|
);
|
|
696
696
|
},
|
|
@@ -700,13 +700,13 @@ export const NARRATORS = {
|
|
|
700
700
|
const when = age === null ? "" : age === 0 ? ", written today" : `, written ${num(age, 0)} ${age === 1 ? "day" : "days"} of use ago`;
|
|
701
701
|
const among = n(t, "among");
|
|
702
702
|
const beside = among === null || among <= 1 ? "" : ` — one of ${num(among, 0)} left here by different sessions`;
|
|
703
|
-
return calm(`I woke here and was handed the pointer to a handoff in this
|
|
703
|
+
return calm(`I woke here and was handed the pointer to a handoff in this project${when}${beside} (${num(bytes, 0)} bytes of the wake).`);
|
|
704
704
|
},
|
|
705
705
|
"handoff.cleared": (t) => {
|
|
706
706
|
const bytes = n(t, "bytes") ?? 0;
|
|
707
707
|
// Since 2026-09-30 a session retires its own handoff with a blank field,
|
|
708
708
|
// or another session's by id; either way others' handoffs here stand.
|
|
709
|
-
const whose = t.p["byId"] === true ? "a handoff in this
|
|
709
|
+
const whose = t.p["byId"] === true ? "a handoff in this project by its id" : "my handoff for this project";
|
|
710
710
|
return calm(`I finished the work and retired ${whose} (${num(bytes, 0)} bytes). Any others left here still stand.`);
|
|
711
711
|
},
|
|
712
712
|
"handoff.refused": (t) => {
|
|
@@ -738,7 +738,7 @@ export const NARRATORS = {
|
|
|
738
738
|
: `This wake had room for ${num(shown, 0)} of ${num(found, 0)} "Work here" lines.`,
|
|
739
739
|
);
|
|
740
740
|
}
|
|
741
|
-
return calm(`This
|
|
741
|
+
return calm(`This project has more work than one wake shows: ${num(shown, 0)} of ${num(found, 0)} "Work here" lines shown, and the rest take turns.`);
|
|
742
742
|
},
|
|
743
743
|
|
|
744
744
|
// ── what a delivery could not carry (durable since 2026-10-02) ─────────────
|
|
@@ -1098,7 +1098,7 @@ export const NARRATORS = {
|
|
|
1098
1098
|
"contradiction.settled": (t) => {
|
|
1099
1099
|
const how = s(t, "how") ?? "settled";
|
|
1100
1100
|
const by = s(t, "actor") ?? "someone";
|
|
1101
|
-
const who = by === "owner" ? "
|
|
1101
|
+
const who = by === "owner" ? "You" : by === "session" ? "A session" : `The ${by}`;
|
|
1102
1102
|
return how === "open"
|
|
1103
1103
|
? calm(`${who} kept two memories that disagree open, each shown with the other (${s(t, "pair") ?? "a pair"}).`)
|
|
1104
1104
|
: notable(`${who} settled a contradiction as ${how}: ${s(t, "holds") ?? "one"} holds over ${s(t, "over") ?? "the other"}.`);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { $, esc } from "../../../shared/dom.js";
|
|
3
3
|
|
|
4
4
|
export const markup = `
|
|
5
|
-
<h2>
|
|
5
|
+
<h2>Day of use × event <small>— the last three weeks of the log</small></h2>
|
|
6
6
|
<div class="card pad heat" id="h-heat"></div>`;
|
|
7
7
|
|
|
8
8
|
export function paint(d) {
|
|
@@ -119,9 +119,10 @@ export const PLAIN = {
|
|
|
119
119
|
const part = (looked, offered, runs, one, many) =>
|
|
120
120
|
runs === 0 ? "no " + one + " measured yet"
|
|
121
121
|
: looked + " of " + offered + " shown only in part were looked up, over " + runs + " " + (runs === 1 ? one : many);
|
|
122
|
-
|
|
122
|
+
// Doctor's detail says "lived days"; the dashboard says "days of use" (2026-10-12).
|
|
123
|
+
const window = /^last (\d+) (?:lived days?|days? of use)/.exec(String(detail || ""));
|
|
123
124
|
const none = d.dreamNights + d.reflections > 0 && d.dreamOffered + d.reflectionOffered > 0 && d.dreamLooked + d.reflectionLooked === 0;
|
|
124
|
-
return (window ? window[
|
|
125
|
+
return (window ? "last " + window[1] + (window[1] === "1" ? " day of use" : " days of use") + " — " : "") +
|
|
125
126
|
"dreams: " + part(d.dreamLooked, d.dreamOffered, d.dreamNights, "night", "nights") +
|
|
126
127
|
"; reflections: " + part(d.reflectionLooked, d.reflectionOffered, d.reflections, "reflection", "reflections") +
|
|
127
128
|
(none ? ". None looked up yet: if that holds, the lines may be too thin or the lookup unclear" : "") +
|
|
@@ -10,19 +10,19 @@ export const markup = `
|
|
|
10
10
|
page; it read the browser's calendar until 2026-10-09. */
|
|
11
11
|
export function when(c) {
|
|
12
12
|
if (c.today) return "today";
|
|
13
|
-
if (c.on) return "on " + (dateWords(c.on) || c.on) + " (
|
|
14
|
-
return "on
|
|
13
|
+
if (c.on) return "on " + (dateWords(c.on) || c.on) + " (day " + c.day + " of use)";
|
|
14
|
+
return "on day " + c.day + " of use";
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
const WORD = { ran: "finished in the last cycle", waiting: "not due yet", behind: "behind — last finished on
|
|
17
|
+
const WORD = { ran: "finished in the last cycle", waiting: "not due yet", behind: "behind — last finished on day ", never: "has never run", torn: "its marker is unreadable" };
|
|
18
18
|
|
|
19
19
|
export function paint(d) {
|
|
20
20
|
const c = d.cycle;
|
|
21
21
|
const dots = c.phases.map((p) => {
|
|
22
22
|
const tone = p.state === "ran" ? "green" : p.state === "waiting" ? "grey" : p.state === "never" && c.day === null ? "grey" : "amber";
|
|
23
23
|
const said =
|
|
24
|
-
p.state === "behind" ? WORD.behind + p.day
|
|
25
|
-
: p.state === "waiting" ? WORD.waiting + (p.nextInDays === null ? "" : p.nextInDays === 0 ? " — due at the next sleep" : " — next in " + p.nextInDays +
|
|
24
|
+
p.state === "behind" ? WORD.behind + p.day + " of use"
|
|
25
|
+
: p.state === "waiting" ? WORD.waiting + (p.nextInDays === null ? "" : p.nextInDays === 0 ? " — due at the next sleep" : " — next in " + p.nextInDays + (p.nextInDays === 1 ? " day of use" : " days of use"))
|
|
26
26
|
: WORD[p.state];
|
|
27
27
|
const title = p.phase + " — " + p.gloss + " (" + said + ")";
|
|
28
28
|
return '<span class="hcy-dot hc-dot hc-' + tone + '" title="' + esc(title) + '" role="img" aria-label="' + esc(title) + '"></span>';
|
|
@@ -35,7 +35,7 @@ import { q, wireTips } from "../../../shared/widgets/tips.js";
|
|
|
35
35
|
|
|
36
36
|
const LEGEND =
|
|
37
37
|
"The small colour mark is the stage a mechanism works in: " + FAMILIES.map((f) => f.label.toLowerCase()).join(", ") + ". " +
|
|
38
|
-
"A green light fired in the last 7
|
|
38
|
+
"A green light fired in the last 7 days of use. A ring is waiting: its next run is ahead, or it has nothing to act on yet. " +
|
|
39
39
|
"Amber is built but quiet. Grey is not built yet. \"Partly built\" means some of it works and some is still to come. " +
|
|
40
40
|
"The line scrolls sideways.";
|
|
41
41
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* Is the wake overflowing? One compact row (round 3b, item 3 — moved here from
|
|
2
2
|
the self tab): the published wake's size against its ceiling, as one stacked
|
|
3
|
-
bar of its parts (headers, self page,
|
|
3
|
+
bar of its parts (headers, self page, might be relevant, coming up, room left),
|
|
4
4
|
and whether the last render had to trim anything to fit. What the wake says
|
|
5
5
|
is on the self tab ("Next time I wake, I start with:"). */
|
|
6
6
|
import { $, esc } from "../../../shared/dom.js";
|
|
@@ -43,7 +43,7 @@ export function costWords(c) {
|
|
|
43
43
|
}
|
|
44
44
|
if (c.handoffs > 0) out.push(c.handoffs + (c.handoffs === 1 ? " handoff" : " handoffs") + " had no room at a session start");
|
|
45
45
|
if (c.lastHere > 0) out.push(c.lastHere + (c.lastHere === 1 ? " \"Last here\" line" : " \"Last here\" lines") + " had no room at a session start");
|
|
46
|
-
if (c.work > 0) out.push("\"Work here\" lines did not all fit at a session start, in " + c.work + (c.work === 1 ? "
|
|
46
|
+
if (c.work > 0) out.push("\"Work here\" lines did not all fit at a session start, in " + c.work + (c.work === 1 ? " project" : " projects"));
|
|
47
47
|
if (c.writerHeld) out.push("the page writer held back for lack of room");
|
|
48
48
|
return out;
|
|
49
49
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/* The page's own buttons: add a memory (a note the owner writes, the same as
|
|
2
|
-
`counterparts note`), back up, export
|
|
2
|
+
`counterparts note`), back up, export, and delete one kind of data (the
|
|
3
|
+
same as `counterparts delete <kind>`, 2026-10-13). Each runs the
|
|
3
4
|
console's own command through `shared/actions.js` and says what it said.
|
|
4
5
|
(Remove lives on the memory card, where the memory is.) */
|
|
5
6
|
import { act, resultHtml } from "../../../shared/actions.js";
|
|
@@ -12,6 +13,7 @@ export const markup = `
|
|
|
12
13
|
<button class="mbtn primary" id="note-open" type="button" aria-expanded="false">+ Add a memory</button>
|
|
13
14
|
<button class="mbtn" id="backup-open" type="button">Back up…</button>
|
|
14
15
|
<button class="mbtn" id="export-open" type="button">Export…</button>
|
|
16
|
+
<button class="mbtn" id="delete-open" type="button">Delete data…</button>
|
|
15
17
|
</div>`;
|
|
16
18
|
|
|
17
19
|
export const notePanel = `
|
|
@@ -57,6 +59,74 @@ export function mount() {
|
|
|
57
59
|
});
|
|
58
60
|
$("backup-open").addEventListener("click", () => folderDialog("backup"));
|
|
59
61
|
$("export-open").addEventListener("click", () => folderDialog("export"));
|
|
62
|
+
$("delete-open").addEventListener("click", deleteDialog);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// ── delete one kind of data ─────────────────────────────────────────────────
|
|
66
|
+
|
|
67
|
+
const KINDS = [
|
|
68
|
+
{ kind: "conversation-text", label: "Conversation text",
|
|
69
|
+
what: "Every word of conversation still kept, waiting to be written up or to age out. Memories already made from it stay." },
|
|
70
|
+
{ kind: "backups", label: "Backups",
|
|
71
|
+
what: "Every daily copy, and the copies taken before an upgrade. Rollback then has nothing to go back to." },
|
|
72
|
+
{ kind: "activity-log", label: "Activity log",
|
|
73
|
+
what: "What the background processes did, one line each. Never what was said." },
|
|
74
|
+
];
|
|
75
|
+
|
|
76
|
+
/* Each kind: "Delete…" asks the console what it would delete (its dry run,
|
|
77
|
+
counts only), shows that, and offers one plain "Yes, delete", which runs the
|
|
78
|
+
console's own `delete <kind> --yes`. */
|
|
79
|
+
function deleteDialog() {
|
|
80
|
+
const back = document.createElement("div");
|
|
81
|
+
back.className = "confirm-back";
|
|
82
|
+
back.innerHTML =
|
|
83
|
+
'<div class="confirm mdialog" role="dialog" aria-modal="true" aria-labelledby="dd-title">' +
|
|
84
|
+
'<h3 id="dd-title">Delete one kind of data</h3>' +
|
|
85
|
+
'<p class="fd-lede">Each deletes that kind and nothing else. Memories are not touched.</p>' +
|
|
86
|
+
KINDS.map((k) =>
|
|
87
|
+
'<div class="fd-set" data-kind="' + esc(k.kind) + '">' +
|
|
88
|
+
"<b>" + esc(k.label) + "</b> — " + esc(k.what) +
|
|
89
|
+
' <button class="mbtn dd-ask" type="button">Delete…</button>' +
|
|
90
|
+
'<div class="dd-out"></div>' +
|
|
91
|
+
"</div>").join("") +
|
|
92
|
+
'<div class="confirm-buttons"><button class="fd-cancel" type="button">Close</button></div>' +
|
|
93
|
+
"</div>";
|
|
94
|
+
const close = () => {
|
|
95
|
+
removeEventListener("keydown", onKey, true);
|
|
96
|
+
if (back.parentNode) back.parentNode.removeChild(back);
|
|
97
|
+
};
|
|
98
|
+
const onKey = (e) => { if (e.key === "Escape") { e.stopPropagation(); close(); } };
|
|
99
|
+
back.querySelectorAll(".fd-set[data-kind]").forEach((row) => {
|
|
100
|
+
const kind = row.getAttribute("data-kind");
|
|
101
|
+
const out = row.querySelector(".dd-out");
|
|
102
|
+
const ask = row.querySelector(".dd-ask");
|
|
103
|
+
ask.addEventListener("click", async () => {
|
|
104
|
+
ask.disabled = true;
|
|
105
|
+
out.innerHTML = '<div class="act-out">counting…</div>';
|
|
106
|
+
const plan = await act("delete", { kind });
|
|
107
|
+
ask.disabled = false;
|
|
108
|
+
if (!plan || !plan.ok) { out.innerHTML = resultHtml(plan); return; }
|
|
109
|
+
const said = (plan.out || []).filter((l) => l.trim().length > 0);
|
|
110
|
+
const nothing = said.some((l) => /nothing to delete/i.test(l));
|
|
111
|
+
const lines = said.filter((l) => !/^Nothing has changed/.test(l));
|
|
112
|
+
out.innerHTML = '<div class="act-out">' + lines.map((l) => "<div>" + esc(l) + "</div>").join("") +
|
|
113
|
+
(nothing ? "" : '<div class="confirm-buttons"><button class="dd-no" type="button">Keep it</button>' +
|
|
114
|
+
'<button class="dd-yes" type="button">Yes, delete</button></div>') + "</div>";
|
|
115
|
+
if (nothing) return;
|
|
116
|
+
out.querySelector(".dd-no").addEventListener("click", () => { out.innerHTML = ""; });
|
|
117
|
+
out.querySelector(".dd-yes").addEventListener("click", async (e) => {
|
|
118
|
+
e.target.disabled = true;
|
|
119
|
+
out.innerHTML = '<div class="act-out">deleting…</div>';
|
|
120
|
+
const r = await act("delete", { kind, confirm: true });
|
|
121
|
+
out.innerHTML = plainResult(r);
|
|
122
|
+
if (r && r.ok) changed();
|
|
123
|
+
});
|
|
124
|
+
});
|
|
125
|
+
});
|
|
126
|
+
back.querySelector(".fd-cancel").addEventListener("click", close);
|
|
127
|
+
back.addEventListener("click", (e) => { if (e.target === back) close(); });
|
|
128
|
+
addEventListener("keydown", onKey, true);
|
|
129
|
+
document.body.appendChild(back);
|
|
60
130
|
}
|
|
61
131
|
|
|
62
132
|
// ── the folder dialog (back up / export) ────────────────────────────────────
|
|
@@ -64,8 +134,8 @@ export function mount() {
|
|
|
64
134
|
const COPY = {
|
|
65
135
|
backup: {
|
|
66
136
|
title: "Back up this memory",
|
|
67
|
-
lede: "A dated snapshot of
|
|
68
|
-
"
|
|
137
|
+
lede: "A dated snapshot of your memories — the database, never conversation text — " +
|
|
138
|
+
"into a new folder inside the one you name. Nothing in the store changes.",
|
|
69
139
|
go: "Back up",
|
|
70
140
|
},
|
|
71
141
|
export: {
|
|
@@ -42,7 +42,7 @@ function countsLine(counts) {
|
|
|
42
42
|
export function paint(d) {
|
|
43
43
|
if (d) last = d;
|
|
44
44
|
d = last;
|
|
45
|
-
$("self-dreams-q").innerHTML = q("dreams", "Once a day, with
|
|
45
|
+
$("self-dreams-q").innerHTML = q("dreams", "Once a day, with your yes, I dream for a few minutes over what was lived since the last dream: merging near-copies, linking what belongs together, replaying what matters, writing down a pattern. Every change can be undone as a whole (counterparts dream --undo <id>). A dream is never a memory of something that happened.");
|
|
46
46
|
wireTips($("self-dreams-q"));
|
|
47
47
|
const box = $("self-dreams");
|
|
48
48
|
if (d.dreamsAbsent) {
|
|
@@ -54,7 +54,7 @@ export function paint(d) {
|
|
|
54
54
|
const open = openIds.has(x.id);
|
|
55
55
|
return '<div class="dr' + (open ? " open" : "") + (x.state === "undone" ? " undone" : "") + '">' +
|
|
56
56
|
'<button type="button" class="dr-top" data-id="' + esc(x.id) + '" aria-expanded="' + open + '">' +
|
|
57
|
-
'<span class="dr-date">' + esc(dateOr(x.date) || "
|
|
57
|
+
'<span class="dr-date">' + esc(dateOr(x.date) || "day " + x.day + " of use") + "</span>" +
|
|
58
58
|
'<span class="dr-title">' + esc(x.title || "(no journal yet)") + "</span>" +
|
|
59
59
|
'<span class="chip">' + esc(STATE[x.state] || x.state) + "</span>" +
|
|
60
60
|
'<span class="dr-counts">' + esc(countsLine(x.counts)) + "</span>" +
|
|
@@ -22,12 +22,12 @@ let last = null;
|
|
|
22
22
|
* else the entry's own). "lived day 3" only when no date reads at all.
|
|
23
23
|
*/
|
|
24
24
|
export function dayLabel(day) {
|
|
25
|
-
return dateWords(day.iso) || "
|
|
25
|
+
return dateWords(day.iso) || "day " + day.day + " of use";
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
/** The picked day's heading: "Thu, Jul 16th" (the year when it is not this one). */
|
|
29
29
|
export function dayTitle(day) {
|
|
30
|
-
return dateWords(day.iso, { weekday: true }) || "
|
|
30
|
+
return dateWords(day.iso, { weekday: true }) || "day " + day.day + " of use";
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
/** "1 chapter" / "7 chapters": what the number in a day's cell counts. */
|
|
@@ -39,7 +39,7 @@ export function paint(d) {
|
|
|
39
39
|
if (d) last = d;
|
|
40
40
|
d = last;
|
|
41
41
|
$("self-journal-q").innerHTML = q("journal", "A chapter is written at the end of a session; these do not fade. " +
|
|
42
|
-
"Each day in the strip shows its date, its
|
|
42
|
+
"Each day in the strip shows its date, its day of use, and how many chapters were written that day. Pick one to list them.");
|
|
43
43
|
wireTips($("self-journal-q"));
|
|
44
44
|
const box = $("self-journal");
|
|
45
45
|
if (d.journalAbsent) {
|
|
@@ -60,7 +60,7 @@ export function paint(d) {
|
|
|
60
60
|
(n === 1 ? "chapter" : "chapters") + "</span>";
|
|
61
61
|
const dated = !!dateWords(x.iso);
|
|
62
62
|
return '<button type="button" class="jd-day' + (on ? " on" : "") + '" data-day="' + x.day + '" aria-pressed="' + on + '"' +
|
|
63
|
-
' aria-label="' + esc(dayTitle(x) + (dated ? ",
|
|
63
|
+
' aria-label="' + esc(dayTitle(x) + (dated ? ", day " + x.day + " of use" : "") + ", " + chapterCount(n)) + '">' +
|
|
64
64
|
'<b>' + esc(dayLabel(x)) + "</b>" +
|
|
65
65
|
(dated ? '<span class="jd-lived">day ' + x.day + "</span>" : "") + marks + "</button>";
|
|
66
66
|
}).join("");
|
|
@@ -83,7 +83,7 @@ export function paint(d) {
|
|
|
83
83
|
box.innerHTML =
|
|
84
84
|
'<div class="jd-strip" role="group" aria-label="Days">' + cells + "</div>" +
|
|
85
85
|
'<div class="jd-head"><b>' + esc(dayTitle(picked)) + "</b>" +
|
|
86
|
-
(dateWords(picked.iso) ? "<span>
|
|
86
|
+
(dateWords(picked.iso) ? "<span>day " + picked.day + " of use · " + esc(chapterCount(picked.chapters.length)) + "</span>" : "<span>" + esc(chapterCount(picked.chapters.length)) + "</span>") + "</div>" +
|
|
87
87
|
'<div class="jd-list">' + chapters + "</div>" +
|
|
88
88
|
(d.journalMore > 0 ? '<p class="foot">' + d.journalMore + " older chapters are not shown here.</p>" : "");
|
|
89
89
|
box.querySelector(".jd-strip").scrollLeft = scrollLeft;
|
|
@@ -84,7 +84,7 @@ export function paintBehind(d) {
|
|
|
84
84
|
el.hidden = false;
|
|
85
85
|
el.innerHTML = esc(b.line) + " " +
|
|
86
86
|
q("behind", "The page is rewritten by the page writer, at most once a night, when something about who I am has moved. " +
|
|
87
|
-
"It was last rewritten on
|
|
87
|
+
"It was last rewritten on day " + b.writtenDay + " of use; today is day " + (b.writtenDay + b.livedDays) + " of use" +
|
|
88
88
|
". The strip beside the page says what happened on each day since.");
|
|
89
89
|
wireTips(el);
|
|
90
90
|
}
|
|
@@ -92,8 +92,8 @@ export function paintBehind(d) {
|
|
|
92
92
|
/** A day's name on the strip: its date when the record gives one, else its lived day. */
|
|
93
93
|
export function dayName(x) {
|
|
94
94
|
const date = dateWords(x.date);
|
|
95
|
-
return (x.today ? "Today" + (date ? ", " + date : "") : date || "
|
|
96
|
-
(date || x.today ? " ·
|
|
95
|
+
return (x.today ? "Today" + (date ? ", " + date : "") : date || "Day " + x.day + " of use") +
|
|
96
|
+
(date || x.today ? " · day " + x.day + " of use" : "");
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
/**
|
|
@@ -118,8 +118,8 @@ export function stripSummary(list) {
|
|
|
118
118
|
if (list.length === 0) return "";
|
|
119
119
|
const newest = written[written.length - 1];
|
|
120
120
|
const n = list.length;
|
|
121
|
-
return "Rewritten on " + written.length + " of " + n +
|
|
122
|
-
(newest ? " · newest " + (dateWords(newest.date) || "
|
|
121
|
+
return "Rewritten on " + written.length + " of " + n + (n === 1 ? " day of use" : " days of use") +
|
|
122
|
+
(newest ? " · newest " + (dateWords(newest.date) || "day " + newest.day + " of use") : "") + ".";
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
/** A filled day opens its newest version. */
|
|
@@ -135,7 +135,7 @@ export function paintHistory(d) {
|
|
|
135
135
|
// Versions with no lived day still exist: say so rather than draw nothing.
|
|
136
136
|
el.hidden = undated === 0;
|
|
137
137
|
el.innerHTML = undated === 0 ? "" : '<h3 class="sb-h">The page, day by day</h3><p class="ps-say">' +
|
|
138
|
-
esc(undated + (undated === 1 ? " version carries" : " versions carry") + " no
|
|
138
|
+
esc(undated + (undated === 1 ? " version carries" : " versions carry") + " no day of use, so no strip can draw " + (undated === 1 ? "it" : "them") + ".") + "</p>";
|
|
139
139
|
paintVersion();
|
|
140
140
|
return;
|
|
141
141
|
}
|
|
@@ -147,14 +147,14 @@ export function paintHistory(d) {
|
|
|
147
147
|
'" data-day="' + x.day + '" aria-pressed="' + on + '" aria-label="' + esc(dayWords(x)) + '"><i></i></button>';
|
|
148
148
|
}).join("");
|
|
149
149
|
const first = days[0], last = days[days.length - 1];
|
|
150
|
-
const ends = '<div class="ps-ends"><span>' + esc(dateWords(first.date) || "
|
|
151
|
-
(days.length > 1 ? "<span>" + esc(last.today ? "today" : dateWords(last.date) || "
|
|
150
|
+
const ends = '<div class="ps-ends"><span>' + esc(dateWords(first.date) || "day " + first.day + " of use") + "</span>" +
|
|
151
|
+
(days.length > 1 ? "<span>" + esc(last.today ? "today" : dateWords(last.date) || "day " + last.day + " of use") + "</span>" : "") + "</div>";
|
|
152
152
|
el.innerHTML =
|
|
153
153
|
'<h3 class="sb-h">The page, day by day ' +
|
|
154
|
-
q("history", "One dot per
|
|
154
|
+
q("history", "One dot per day of use since the page was first written. A filled dot is a day it was rewritten: click it to see what changed. " +
|
|
155
155
|
"A hollow dot is a day it was not: hover or tap it for why, from the page writer's own record." +
|
|
156
|
-
(undated > 0 ? " " + undated + (undated === 1 ? " older version carries" : " older versions carry") + " no
|
|
157
|
-
'<div class="ps-strip" role="group" aria-label="The page\'s history, one dot per
|
|
156
|
+
(undated > 0 ? " " + undated + (undated === 1 ? " older version carries" : " older versions carry") + " no day of use, so no dot shows it." : "")) + "</h3>" +
|
|
157
|
+
'<div class="ps-strip" role="group" aria-label="The page\'s history, one dot per day of use">' + dots + "</div>" +
|
|
158
158
|
ends +
|
|
159
159
|
'<p class="ps-say" id="self-day-say" aria-live="polite"></p>';
|
|
160
160
|
say();
|
|
@@ -189,7 +189,7 @@ function say(hover) {
|
|
|
189
189
|
if (!x) {
|
|
190
190
|
box.className = "ps-say";
|
|
191
191
|
box.textContent = stripSummary(days) +
|
|
192
|
-
(earlier > 0 ? " " + earlier +
|
|
192
|
+
(earlier > 0 ? " " + earlier + (earlier === 1 ? " earlier day of use is" : " earlier days of use are") + " not drawn." : "");
|
|
193
193
|
return;
|
|
194
194
|
}
|
|
195
195
|
box.className = "ps-say" + (x === picked ? " picked" : "");
|
|
@@ -207,7 +207,7 @@ function paintVersion() {
|
|
|
207
207
|
const w = rewriteWords(s.by, s.reason, days.some((x) => x.day === s.day && x.today));
|
|
208
208
|
const head =
|
|
209
209
|
'<div class="tl-vhead"><b>' + (s.current ? "The page as it stands" : "Version " + (s.seq - 1)) + "</b>" +
|
|
210
|
-
'<span class="tl-meta">' + esc(dateWords(s.date) || "undated") + (s.day !== null ? " ·
|
|
210
|
+
'<span class="tl-meta">' + esc(dateWords(s.date) || "undated") + (s.day !== null ? " · day " + s.day + " of use" : "") +
|
|
211
211
|
" · written by " + esc(w.who) + (s.bytes !== null ? " · " + s.bytes + " bytes" : "") + "</span>" +
|
|
212
212
|
'<button type="button" class="tl-close" id="self-version-close" aria-label="Close this version">close</button></div>' +
|
|
213
213
|
(w.quote ? '<div class="tl-why">“' + esc(w.quote) + "”</div>" : "");
|
|
@@ -150,7 +150,7 @@ export function ruleWords(s) {
|
|
|
150
150
|
const r = s.rule;
|
|
151
151
|
const foot = ["Only a memory about me or about us joins the core, by one of two lanes: strongly felt (" + n2(r.needFeeling) +
|
|
152
152
|
" or more) and come back at least once, " + r.needGap + " or more days after it was made; or keep coming back — it, or the memories that are its earlier and later states — on " + r.days +
|
|
153
|
-
" different days" + (r.sessions ? ", in " + r.sessions + " sessions," : "") + " over " + r.span + (r.window ? ", within the last " + r.window : "") + ", once it has been used itself. That is checked every " + r.everyDays + "
|
|
153
|
+
" different days" + (r.sessions ? ", in " + r.sessions + " sessions," : "") + " over " + r.span + (r.window ? ", within the last " + r.window : "") + ", once it has been used itself. That is checked every " + r.everyDays + " days of use, at most " + r.cap + " a night. " +
|
|
154
154
|
(r.quietDays ? "A core memory that stops coming back for " + r.quietDays + " days is reconsidered, never dropped without a decision. " : "") +
|
|
155
155
|
// The map's own words (round 4 of the map, 2026-09-28: three named rings,
|
|
156
156
|
// no legend) — this sentence described the legend before it.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* "Next time I wake, I start with:" — what the next session's wake holds, as a
|
|
2
|
-
short list (round 3b, item 2): the self page and its age, the
|
|
3
|
-
|
|
2
|
+
short list (round 3b, item 2): the self page and its age, the memories
|
|
3
|
+
that might be relevant by title (each opens its card), and anything coming up. "read it"
|
|
4
4
|
opens the whole wake in place, as it will be read. Its size against the
|
|
5
5
|
budget is the health tab's now; the rebuild button comes back when it is
|
|
6
6
|
built (the console's `counterparts rebrief` is unchanged). */
|
|
@@ -17,7 +17,7 @@ export const markup = `
|
|
|
17
17
|
<div id="self-wake"></div>
|
|
18
18
|
</div>`;
|
|
19
19
|
|
|
20
|
-
const EXPLAIN = "The wake is what a session is handed before its first word: composed without a model at the end of each day, from the page and the memories that
|
|
20
|
+
const EXPLAIN = "The wake is what a session is handed before its first word: composed without a model at the end of each day, from the page and the memories that might be relevant. " +
|
|
21
21
|
"When a session starts, a line with today's date goes on top, and in a folder with a handoff note, a pointer to it. " +
|
|
22
22
|
"How much room it takes is on the health tab.";
|
|
23
23
|
|
|
@@ -27,7 +27,7 @@ let last = null;
|
|
|
27
27
|
export function pageAge(p) {
|
|
28
28
|
if (!p) return "";
|
|
29
29
|
const date = dateWords(p.date);
|
|
30
|
-
const ago = p.livedDaysAgo === null ? "" : p.livedDaysAgo === 0 ? "today" : p.livedDaysAgo === 1 ? "1
|
|
30
|
+
const ago = p.livedDaysAgo === null ? "" : p.livedDaysAgo === 0 ? "today" : p.livedDaysAgo === 1 ? "1 day of use ago" : p.livedDaysAgo + " days of use ago";
|
|
31
31
|
const when = date && ago ? "written " + date + ", " + ago : date ? "written " + date : ago ? "written " + ago : "";
|
|
32
32
|
return when + (p.newerThanWake ? (when ? " — " : "") + "rewritten since; the next wake carries the new one" : "");
|
|
33
33
|
}
|
|
@@ -65,13 +65,13 @@ export function paint(d) {
|
|
|
65
65
|
: l.nearbyLines.map((t) => '<li class="wk-line-i">' + esc(headline(t)) + "</li>").join("");
|
|
66
66
|
const nNear = l.nearby.length || l.nearbyLines.length;
|
|
67
67
|
if (nNear > 0) {
|
|
68
|
-
items.push('<li class="wk-it"><span class="wk-what">' + (nNear === 1 ? "A memory
|
|
68
|
+
items.push('<li class="wk-it"><span class="wk-what">' + (nNear === 1 ? "A memory that might be relevant" : nNear + " memories that might be relevant") + "</span>" +
|
|
69
69
|
'<ul class="wk-sublist">' + nearby + "</ul></li>");
|
|
70
70
|
}
|
|
71
71
|
items.push(l.arriving.length > 0
|
|
72
|
-
? '<li class="wk-it"><span class="wk-what">
|
|
72
|
+
? '<li class="wk-it"><span class="wk-what">Coming up</span><ul class="wk-sublist">' +
|
|
73
73
|
l.arriving.map(memoryItem).join("") + "</ul></li>"
|
|
74
|
-
: '<li class="wk-it wk-none"><span class="wk-what">Nothing
|
|
74
|
+
: '<li class="wk-it wk-none"><span class="wk-what">Nothing coming up</span></li>');
|
|
75
75
|
const also = l.also.length > 0
|
|
76
76
|
? '<p class="wk-also">Also ' + l.also.map((a) => a.lines + " line" + (a.lines === 1 ? "" : "s") + " of " + esc(a.label)).join(", ") + ".</p>"
|
|
77
77
|
: "";
|
|
@@ -84,6 +84,8 @@ import { mechanismsView } from "./views/mechanisms.js";
|
|
|
84
84
|
import { DREAM_LIMIT, dreamsView } from "./views/dreams.js";
|
|
85
85
|
import { resolveStatic } from "./static.js";
|
|
86
86
|
import { packagePath } from "../../runtime.js";
|
|
87
|
+
import { installedVersion } from "../../sessions.js";
|
|
88
|
+
import { storeId } from "../../store-id.js";
|
|
87
89
|
import {
|
|
88
90
|
activityView,
|
|
89
91
|
eventDetail,
|
|
@@ -256,7 +258,13 @@ export function router(
|
|
|
256
258
|
if (path === "/api/meta") return json(metaView(src));
|
|
257
259
|
// THE FIRST MEETING'S STATE, for the sidebar mod (2026-10-11): `{ meet,
|
|
258
260
|
// where, style }`, option keys only, never an answer's words.
|
|
259
|
-
|
|
261
|
+
// `store` (2026-10-12): which store this dashboard serves, as `/api/whoami` says it.
|
|
262
|
+
if (path === "/api/onboarding") return json({ ...onboardingView(src.store), store: storeId(src.store.dir) });
|
|
263
|
+
// WHICH STORE THIS IS (2026-10-12, `adapters/store-id.ts`): two stores on
|
|
264
|
+
// one machine can race for one port, so the mod checks this against the
|
|
265
|
+
// wake's `counterparts:store` marker before it trusts what it reads here.
|
|
266
|
+
// An id, never the path; `version` is null when the manifest is unreadable.
|
|
267
|
+
if (path === "/api/whoami") return json({ store: storeId(src.store.dir), version: installedVersion() });
|
|
260
268
|
if (path === "/api/pulse") return json(pulse(src));
|
|
261
269
|
if (path === "/api/overview") return json(overviewView(src, intParam(url, "limit", 40)));
|
|
262
270
|
if (path === "/api/memories") return json(memoriesView(src, { limit: intParam(url, "limit", 4000) }));
|
|
@@ -9,7 +9,7 @@ export async function openEvent(seq) {
|
|
|
9
9
|
const e = d.event;
|
|
10
10
|
openModal(
|
|
11
11
|
"<h3>" + esc(e.name) + "</h3>" +
|
|
12
|
-
"<div class='sub'>
|
|
12
|
+
"<div class='sub'>day " + e.day + " of use · " + esc(d.when || "") +
|
|
13
13
|
" · sequence " + e.seq + (e.node ? " · " + esc(e.node) : "") + "</div>" +
|
|
14
14
|
"<div class='body tone-" + e.tone + "'>" + esc(e.text) + "</div>" +
|
|
15
15
|
(e.subject ? "<h4>subject</h4><div class='ref'>" + esc(e.subject) + "</div>" : "") +
|
|
@@ -20,7 +20,7 @@ export function coreRoadLine(p, promoted) {
|
|
|
20
20
|
if (p.eligible && p.lane === "slow") return "It has come back on enough separate days — it has met the core's bar, and a sleep can make it core.";
|
|
21
21
|
if (p.oneReturn) {
|
|
22
22
|
return "Felt strongly, so one real return makes it core — coming back to it " + p.needGap +
|
|
23
|
-
(p.needGap === 1 ? "
|
|
23
|
+
(p.needGap === 1 ? " day of use" : " days of use") + " or more after it was made.";
|
|
24
24
|
}
|
|
25
25
|
if (p.byUse) {
|
|
26
26
|
const more = Math.max(0, p.required - p.days);
|
|
@@ -149,17 +149,17 @@ function usePart(d) {
|
|
|
149
149
|
let cells = "";
|
|
150
150
|
for (let day = first; day <= last; day++) {
|
|
151
151
|
const cls = "mc-cell" + (used.has(day) ? " used" : "") + (day === d.bornDay ? " born" : "") + (day === last ? " today" : "");
|
|
152
|
-
cells += '<i class="' + cls + '" title="
|
|
152
|
+
cells += '<i class="' + cls + '" title="day ' + day + ' of use' + (day === d.bornDay ? " — born" : "") + (used.has(day) ? " — used" : "") + '"></i>';
|
|
153
153
|
}
|
|
154
154
|
const shown = [...used].filter((x) => x >= first).length;
|
|
155
155
|
const lines = [];
|
|
156
156
|
if (d.uses > 0) {
|
|
157
157
|
lines.push("Used " + d.uses + "× over " + d.reinforcedDays + (d.reinforcedDays === 1 ? " separate day" : " separate days") +
|
|
158
|
-
", last on
|
|
158
|
+
", last on day " + d.lastUsedDay + " of use.");
|
|
159
159
|
if (shown < d.reinforcedDays) lines.push("The log shows " + shown + " of those days; it keeps only so much.");
|
|
160
160
|
} else lines.push("Not used yet.");
|
|
161
161
|
if (road) lines.push(road);
|
|
162
|
-
return '<div class="mc-strip" role="img" aria-label="
|
|
162
|
+
return '<div class="mc-strip" role="img" aria-label="days of use, a dot on each day it was used">' +
|
|
163
163
|
(first > d.bornDay ? '<span class="mc-more">…</span>' : "") + cells + "</div>" +
|
|
164
164
|
'<div class="mc-axis"><span>' + (first === d.bornDay ? "born, day " + first : "day " + first) + "</span><span>today, day " + last + "</span></div>" +
|
|
165
165
|
'<p class="mc-line">' + esc(lines.join(" ")) + "</p>";
|
|
@@ -246,7 +246,7 @@ function chips(d) {
|
|
|
246
246
|
c.push('<span class="mc-chip" title="the calendar day it entered the store (on a migrated or seeded store, the day of the import)">recorded ' +
|
|
247
247
|
esc(dateOr(d.learnedOn, FULL)) + "</span>");
|
|
248
248
|
}
|
|
249
|
-
c.push('<span class="mc-chip" title="the
|
|
249
|
+
c.push('<span class="mc-chip" title="the day of use it was born">day ' + esc(String(d.bornDay)) + " of use</span>");
|
|
250
250
|
for (const p of d.prospective || []) {
|
|
251
251
|
c.push('<span class="mc-chip" title="a reminder it holds">reminder ' + esc(dateOr(p.date, FULL)) + " · " + esc(p.state) + "</span>");
|
|
252
252
|
}
|
|
@@ -277,7 +277,7 @@ function footer(d) {
|
|
|
277
277
|
" · predictive " + n2(s.predictive) + " · novelty " + (s.novelty === null ? "blind" : n2(s.novelty)) +
|
|
278
278
|
(s.claimed === null ? "" : " · claimed floor " + n2(s.claimed)) + "</span>") +
|
|
279
279
|
(d.feelingsLine || d.intensity > 0 ? kv("feelings", esc(d.feelingsLine || "none recorded") + " <span class='mc-dim'>· intensity " + n2(d.intensity) + "</span>") : "") +
|
|
280
|
-
kv("
|
|
280
|
+
kv("use", "born day " + d.bornDay + " · used " + d.uses + "× over " + d.reinforcedDays + " days · last used day " + d.lastUsedDay) +
|
|
281
281
|
kv("standing", (d.consolidated ? "consolidated" : "not consolidated") + " · " + (d.promoted ? "promoted" : "not promoted") +
|
|
282
282
|
" · " + (d.protected ? "protected" : "revisable") + " · pressure " + n3(d.pressure) + (d.bar === null ? "" : " / bar " + n3(d.bar))) +
|
|
283
283
|
(writtenStamp(d) ? kv("written", esc(writtenStamp(d))) : "") +
|
|
@@ -72,7 +72,7 @@ export function activityView(
|
|
|
72
72
|
lastSeq,
|
|
73
73
|
retentionDays: store.retentionDays,
|
|
74
74
|
bound:
|
|
75
|
-
`I keep events for ${store.retentionDays}
|
|
75
|
+
`I keep events for ${store.retentionDays} days of use; older ones are swept unless a replay latch holds them. ` +
|
|
76
76
|
"This is what I still have, not everything that ever happened.",
|
|
77
77
|
absent: events.length === 0 ? (everLived ? NONE : NEVER) : null,
|
|
78
78
|
vocabulary: DURABLE_EVENT_NAMES.map((name) => {
|
|
@@ -205,7 +205,7 @@ export function dreamsView(src: DashboardSource, limit = DREAM_LIMIT): DreamsVie
|
|
|
205
205
|
dreams: shown.map((r) => dreamView(src, r)),
|
|
206
206
|
total,
|
|
207
207
|
more: total - shown.length,
|
|
208
|
-
lastDreamed: shown[0] === undefined ? null : (shown[0].date ?? `
|
|
208
|
+
lastDreamed: shown[0] === undefined ? null : (shown[0].date ?? `day ${String(shown[0].day)} of use`),
|
|
209
209
|
};
|
|
210
210
|
}
|
|
211
211
|
|
|
@@ -244,7 +244,7 @@ export function wakeBudget(src: DashboardSource): WakeBudget {
|
|
|
244
244
|
|
|
245
245
|
/** Each phase of the cycle, in a few plain words (hover text on its dot). */
|
|
246
246
|
const PHASE_GLOSS: Record<string, string> = {
|
|
247
|
-
clock: "
|
|
247
|
+
clock: "start the next day of use",
|
|
248
248
|
decay: "let unused memories weaken",
|
|
249
249
|
consolidate: "strengthen and promote what was used",
|
|
250
250
|
prune: "let go of what fell to the floor",
|