@impulselab/hepha 0.2.537 → 0.2.538

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/dist/index.js CHANGED
@@ -1809,6 +1809,9 @@ var HOST_TOOL_NAMES = {
1809
1809
  // prompt, so the agent reads on demand and writes what it learns.
1810
1810
  MEMORY_SEARCH: "memory_search",
1811
1811
  MEMORY_WRITE: "memory_write",
1812
+ // Another chat, read through a separate model for one goal, never loaded
1813
+ // whole (docs/agents/session-reading.md).
1814
+ READ_SESSION: "read_session",
1812
1815
  // A project's shared context (docs/agents/projects.md): every session of the
1813
1816
  // project reads it in its instructions and writes back what it learned.
1814
1817
  PROJECT_CONTEXT_READ: "project_context_read",
@@ -2858,6 +2861,15 @@ var canonicalToolActivityDescribers = new Map([
2858
2861
  [HOST_TOOL_NAMES.MEMORY_SEARCH, describeMemorySearch],
2859
2862
  [HOST_TOOL_NAMES.REPORT_DEV_SERVER, describeReportDevServer],
2860
2863
  [HOST_TOOL_NAMES.MEMORY_WRITE, () => labelOnly("Wrote to its memory")],
2864
+ [
2865
+ HOST_TOOL_NAMES.READ_SESSION,
2866
+ (record) => {
2867
+ const goal = toolInput.str(record.goal);
2868
+ return labelOnly(
2869
+ goal ? `Read another chat: ${toolInput.truncate(goal, 60)}` : "Read another chat"
2870
+ );
2871
+ }
2872
+ ],
2861
2873
  [
2862
2874
  HOST_TOOL_NAMES.PROJECT_CONTEXT_READ,
2863
2875
  () => labelOnly("Read the project's shared context")