@cydm/happy-elves 0.1.0-beta.504 → 0.1.0-beta.505

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 CHANGED
@@ -6,8 +6,8 @@ Public beta CLI for Happy Elves.
6
6
 
7
7
  Run once in the existing user account; it detects %USERPROFILE%\.happy-elves\hosted, keeps the current daemon and sessions running, installs the independent updater, and registers per-user startup.
8
8
 
9
- npm.cmd install --prefix $HOME\.happy-elves\management-entry --ignore-scripts --no-audit --no-fund --package-lock=false @cydm/happy-elves@0.1.0-beta.504
10
- npm.cmd exec --yes --package @cydm/happy-elves@0.1.0-beta.504 -- happy-elves-updater install --state-root $HOME\.happy-elves\hosted --autostart
9
+ npm.cmd install --prefix $HOME\.happy-elves\management-entry --ignore-scripts --no-audit --no-fund --package-lock=false @cydm/happy-elves@0.1.0-beta.505
10
+ npm.cmd exec --yes --package @cydm/happy-elves@0.1.0-beta.505 -- happy-elves-updater install --state-root $HOME\.happy-elves\hosted --autostart
11
11
 
12
12
  The same updater entrypoint works on macOS after selecting a permanent user prefix.
13
13
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cydm/happy-elves-cli",
3
- "version": "0.1.0-beta.504",
3
+ "version": "0.1.0-beta.505",
4
4
  "private": true,
5
5
  "type": "module"
6
6
  }
@@ -900,18 +900,20 @@ export function historicalEventsFromThread(items, turns, limit, runtimeEvents =
900
900
  if (event)
901
901
  addEvent(event);
902
902
  }
903
- for (const runtimeEvent of runtimeEvents) {
904
- const event = userMessageHistoricalEventFromRuntimeEvent(runtimeEvent);
905
- if (event)
906
- addEvent(event);
907
- }
903
+ // The canonical item projection is authoritative for text, including user
904
+ // prompts. Do not add user-message snapshots back from the append-only log:
905
+ // a native-history reconciliation can deliberately remove stale HE item
906
+ // identities, and replaying those raw events here would resurrect them in
907
+ // the rebuilt transcript. Forward/anchored reads still use
908
+ // historicalEventsFromRuntimeEvents, where the append-only log is the
909
+ // authority until a canonical rebuild is requested.
908
910
  // Server requests and provider/HE tool calls are not guaranteed to be
909
911
  // represented by canonical ThreadItems. Preserve only those non-text
910
912
  // runtime events which are absent from the canonical identity set. Text
911
913
  // snapshots remain canonical-only: merging them would resurrect the raw
912
914
  // assistant history that the rebuild deliberately replaces.
913
915
  for (const event of historicalEventsFromRuntimeEvents(runtimeEvents)) {
914
- if (event.payload.type === "text_delta" || event.payload.type === "done")
916
+ if (event.payload.type === "user_prompt" || event.payload.type === "text_delta" || event.payload.type === "done")
915
917
  continue;
916
918
  if (event.payload.type === "tool_call" && runtimeEventMatchesCanonicalItem(event, canonicalToolItemIds, canonicalToolCallIds))
917
919
  continue;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cydm/happy-elves-daemon",
3
- "version": "0.1.0-beta.504",
3
+ "version": "0.1.0-beta.505",
4
4
  "private": true,
5
5
  "type": "module"
6
6
  }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@cydm/happy-elves",
3
- "version": "0.1.0-beta.504",
3
+ "version": "0.1.0-beta.505",
4
4
  "description": "Remote controller for local coding agents with hosted or self-hosted relay support.",
5
- "buildId": "d074135e7e6ab20470b2dcf91f68dcdc",
5
+ "buildId": "fc41bb5163a821b3528eec51617acc2a",
6
6
  "type": "module",
7
7
  "bin": {
8
8
  "happy-elves": "./apps/cli/dist/index.js",