kernelpm 0.1.12 → 0.1.13

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.
Files changed (2) hide show
  1. package/dist/session.js +6 -0
  2. package/package.json +1 -1
package/dist/session.js CHANGED
@@ -27,6 +27,12 @@ class Session {
27
27
  return this.enqueue(async () => {
28
28
  if (this.meta.pendingDecision)
29
29
  await this.clearDecision();
30
+ // Persist the user's prompt as a `user_text` event so it round-trips
31
+ // through the store like the assistant's reply: attached clients see it
32
+ // live (via the push fan-out), and a session reopened later replays it
33
+ // from `sessions/<id>.jsonl`. Without this, the daemon only persisted
34
+ // assistant events and resume showed the AI half of the conversation.
35
+ await this.appendBody({ kind: 'user_text', text });
30
36
  await this.driver.sendMessage(text);
31
37
  });
32
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kernelpm",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "description": "kernelpm daemon — keeps opencode sessions alive on a server (via `opencode serve`) and exposes them over a local control socket.",
5
5
  "license": "MIT",
6
6
  "bin": {