@modelprofile.com/flexharness 13.1.1 → 13.2.0

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 (50) hide show
  1. package/dist_ts/00_commitinfo_data.js +1 -1
  2. package/dist_ts/classes.flexharness.cachewarm.d.ts +64 -0
  3. package/dist_ts/classes.flexharness.cachewarm.js +353 -0
  4. package/dist_ts/classes.flexharness.callbacks.js +2 -1
  5. package/dist_ts/classes.flexharness.core.d.ts +4 -1
  6. package/dist_ts/classes.flexharness.core.js +9 -3
  7. package/dist_ts/classes.flexharness.d.ts +10 -1
  8. package/dist_ts/classes.flexharness.deletion.js +2 -1
  9. package/dist_ts/classes.flexharness.js +14 -1
  10. package/dist_ts/classes.flexharness.lifecycle.js +4 -1
  11. package/dist_ts/classes.flexharness.prompts.d.ts +1 -1
  12. package/dist_ts/classes.flexharness.prompts.js +28 -9
  13. package/dist_ts/classes.flexharness.reversions.d.ts +2 -0
  14. package/dist_ts/classes.flexharness.reversions.js +7 -2
  15. package/dist_ts/classes.flexharness.runs.js +25 -3
  16. package/dist_ts/interfaces.d.ts +89 -1
  17. package/dist_ts/interfaces.flexharness.d.ts +15 -0
  18. package/dist_ts/interfaces.js +1 -1
  19. package/dist_ts/plugins.d.ts +1 -1
  20. package/dist_ts/plugins.js +1 -1
  21. package/dist_ts/utils.harnessoptions.d.ts +8 -1
  22. package/dist_ts/utils.harnessoptions.js +50 -6
  23. package/dist_ts/utils.json.js +9 -2
  24. package/dist_ts/utils.sessionpreview.d.ts +3 -3
  25. package/dist_ts/utils.sessionpreview.js +5 -5
  26. package/dist_ts_chat_harness/classes.transcript.js +17 -4
  27. package/dist_ts_chat_harness/functions.mapping.d.ts +1 -0
  28. package/dist_ts_chat_harness/functions.mapping.js +5 -2
  29. package/package.json +3 -3
  30. package/readme.md +27 -0
  31. package/ts/00_commitinfo_data.ts +1 -1
  32. package/ts/classes.flexharness.cachewarm.ts +433 -0
  33. package/ts/classes.flexharness.callbacks.ts +1 -0
  34. package/ts/classes.flexharness.core.ts +8 -1
  35. package/ts/classes.flexharness.deletion.ts +1 -0
  36. package/ts/classes.flexharness.lifecycle.ts +3 -0
  37. package/ts/classes.flexharness.prompts.ts +25 -6
  38. package/ts/classes.flexharness.reversions.ts +7 -1
  39. package/ts/classes.flexharness.runs.ts +20 -2
  40. package/ts/classes.flexharness.ts +21 -0
  41. package/ts/interfaces.flexharness.ts +16 -0
  42. package/ts/interfaces.ts +100 -1
  43. package/ts/plugins.ts +1 -0
  44. package/ts/readme.md +27 -0
  45. package/ts/utils.harnessoptions.ts +74 -5
  46. package/ts/utils.json.ts +8 -1
  47. package/ts/utils.sessionpreview.ts +4 -4
  48. package/ts_chat_harness/classes.transcript.ts +14 -3
  49. package/ts_chat_harness/functions.mapping.ts +3 -1
  50. package/ts_chat_harness/readme.md +1 -0
@@ -78,6 +78,7 @@ The host forwards every event of the harness instance, of every session, in orde
78
78
  - Permission rows stay in the transcript once answered, showing the decision. A request its run leaves unanswered, because the run was stopped or failed, is removed when the run finishes.
79
79
  - FlexHarness emits no event for project state. After a run, or after a project tool's row completes, read `getProjectState()` and pass it to `applyProjectState()` for the task list and the scratchpad.
80
80
  - `questions` is always empty: FlexHarness has no question requests.
81
+ - A cache-warm turn (see the FlexHarness readme, Keeping the Prompt Cache Warm) has no rows and leaves the status idle, the session card normal and `activeQueueId` unset, so a steer never joins it. Its usage still counts in `usage`: it is spent.
81
82
  - Messages the session has not taken in yet (a queued prompt, a steer) carry no text in FlexHarness events. The host that sent them shows them as pending rows.
82
83
  - An attachment row needs a name, a media type and a size. The public projection keeps no payload and states these only when the prompt did, so an attachment without all three, such as a remote URL of unknown size, has no row.
83
84