Skip to content

feat(twister): restore the per-focus memory and status-brief surface - #386

Merged
KrisBraun merged 1 commit into
mainfrom
restore-focus-memory-surface
Aug 20, 2026
Merged

feat(twister): restore the per-focus memory and status-brief surface#386
KrisBraun merged 1 commit into
mainfrom
restore-focus-memory-surface

Conversation

@KrisBraun

Copy link
Copy Markdown
Contributor

Restores Plot.getMemory(), Plot.setMemory() and Plot.getBriefs(), along with the FocusMemoryEntry and FocusBrief types. All three require FocusAccess.Full.

Why now

These were withdrawn because the platform did not implement them yet — a twist that declared FocusAccess.Full and called one of them would type-check cleanly against the SDK and then fail at runtime. Withdrawing kept the declared surface an accurate description of what the platform answers.

That is no longer the case. Platform support lands alongside this, so the surface is honest again.

Unchanged shape

The types and signatures are identical to the withdrawn version, as stated at the time. Nothing about the API has been redesigned in the interim.

No published version is affected

The methods were added after 0.92.0 and their changeset was never consumed by a release, so they never reached npm. From a consumer's point of view this is an addition, not a restoration — and the changeset is worded that way.

What they do

  • getMemory(focusId) / setMemory(...) — maintain a per-focus agent memory: short freeform entries with optional absolute YYYY-MM-DD dates.
  • getBriefs() — read each focus's current status brief.

Verification

pnpm build clean (0 errors), changeset present and validating.

Restores `Plot.getMemory()`, `Plot.setMemory()` and `Plot.getBriefs()`,
along with the `FocusMemoryEntry` and `FocusBrief` types. All three
require `FocusAccess.Full`.
These were withdrawn because the platform did not implement them yet —
a twist declaring `FocusAccess.Full` and calling one would type-check
against the SDK and then fail at runtime. That is no longer the case:
the platform support lands alongside this, so the declared surface
again describes what the platform actually answers.
The shape is unchanged from the withdrawn version, as promised at the
time. No published version was ever affected — the methods were added
after 0.92.0 and their changeset was never consumed by a release — so
this reads as an addition rather than a restoration from a consumer's
point of view, and the changeset is worded that way.
@KrisBraun
KrisBraun merged commit c92f06b into mainAug 20, 2026
1 check passed
@KrisBraun
KrisBraun deleted the restore-focus-memory-surface branch August 20, 2026 14:23
@plot-app-builderplot-app-builderBot mentioned this pull request Aug 20, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@KrisBraun