mirror of
https://github.com/callstack/agent-device.git
synced 2026-09-14 20:06:34 +08:00
233a34d138
* refactor(daemon): extract the session event journal into a workspace package `src/daemon/session-event-*.ts` (6 modules) and `src/core/keyboard-actions.ts` move as git renames into a new private package `@agent-device/session-journal`. One subpath per moved module points straight at the moved file; no `index.ts`, no re-export at any old path. Every consumer switches to the owning specifier. The journal's request-shaped inputs now name `DaemonRequest`/`DaemonResponse`/ `DaemonResponseData` from `@agent-device/kernel/contracts` instead of the daemon's own `daemon-request.ts`, which the package may not reach (R11) and which carries `internal` with its `SessionState` callbacks and admitted `DeviceLease`. The response types were already re-exports of the kernel ones, so no shape changes; the request type narrows to the four fields the journal reads. A type-level test reads every request-shaped parameter off the real signatures and asserts the reachable type graph declares no `internal` key, holds nothing shaped like a live session record or a `DeviceLease`, and carries no callback. The daemon reaches the journal only by workspace specifier now, so the code-signature walk gets the same pin the descriptor registry got: a walk stopping at the package boundary would report an unchanged signature after an entry-shape or retention-window edit, and a client would keep reusing a daemon writing the superseded journal. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XUhCzFDpMU92EM8o3tjRhy * chore(gates): rank the session-journal package on the layering spine R6's drift guard requires every production zone to be a deliberate ranked-or-unranked decision. `session-journal` is vocabulary the daemon reads a dispatched request through, so it takes rank 1 beside `command-registry` and `contracts` rather than the unranked kit treatment: its only ranked edges are to same-rank zones, which is not a back-edge. No `APPROVED_OVER_CEILING` row and no fallow baseline edit: rename detection carries all seven moved entries' merge-base closures, so each falls under the no-growth rule, and no baseline entry was keyed on the old paths. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XUhCzFDpMU92EM8o3tjRhy --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
45 lines
1.6 KiB
JSON
45 lines
1.6 KiB
JSON
{
|
|
"name": "@agent-device/session-journal",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"sideEffects": false,
|
|
"type": "module",
|
|
"description": "The ADR 0018 unified request event journal: the append-only per-session event log, its rotation window and line scanner, and the presentation projections that turn a dispatched request or action into a journal entry.",
|
|
"dependencies": {
|
|
"@agent-device/command-registry": "workspace:*",
|
|
"@agent-device/contracts": "workspace:*",
|
|
"@agent-device/host-kit": "workspace:*",
|
|
"@agent-device/kernel": "workspace:*"
|
|
},
|
|
"exports": {
|
|
"./session-event-log": {
|
|
"types": "./src/session-event-log.ts",
|
|
"default": "./src/session-event-log.ts"
|
|
},
|
|
"./session-event-log-lines": {
|
|
"types": "./src/session-event-log-lines.ts",
|
|
"default": "./src/session-event-log-lines.ts"
|
|
},
|
|
"./session-event-log-window": {
|
|
"types": "./src/session-event-log-window.ts",
|
|
"default": "./src/session-event-log-window.ts"
|
|
},
|
|
"./session-event-request": {
|
|
"types": "./src/session-event-request.ts",
|
|
"default": "./src/session-event-request.ts"
|
|
},
|
|
"./session-event-action": {
|
|
"types": "./src/session-event-action.ts",
|
|
"default": "./src/session-event-action.ts"
|
|
},
|
|
"./session-event-action-presentation": {
|
|
"types": "./src/session-event-action-presentation.ts",
|
|
"default": "./src/session-event-action-presentation.ts"
|
|
},
|
|
"./keyboard-actions": {
|
|
"types": "./src/keyboard-actions.ts",
|
|
"default": "./src/keyboard-actions.ts"
|
|
}
|
|
}
|
|
}
|