@impulselab/hepha 0.2.487 → 0.2.489

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
@@ -1807,6 +1807,10 @@ var HOST_TOOL_NAMES = {
1807
1807
  // prompt, so the agent reads on demand and writes what it learns.
1808
1808
  MEMORY_SEARCH: "memory_search",
1809
1809
  MEMORY_WRITE: "memory_write",
1810
+ // A project's shared context (docs/agents/projects.md): every session of the
1811
+ // project reads it in its instructions and writes back what it learned.
1812
+ PROJECT_CONTEXT_READ: "project_context_read",
1813
+ PROJECT_CONTEXT_WRITE: "project_context_write",
1810
1814
  SKILL_SEARCH: "skill_search",
1811
1815
  SKILL_LOAD: "skill_load",
1812
1816
  SAVE_SKILL: "save_skill",
@@ -2837,6 +2841,19 @@ var canonicalToolActivityDescribers = new Map([
2837
2841
  [HOST_TOOL_NAMES.MEMORY_SEARCH, describeMemorySearch],
2838
2842
  [HOST_TOOL_NAMES.REPORT_DEV_SERVER, describeReportDevServer],
2839
2843
  [HOST_TOOL_NAMES.MEMORY_WRITE, () => labelOnly("Wrote to its memory")],
2844
+ [
2845
+ HOST_TOOL_NAMES.PROJECT_CONTEXT_READ,
2846
+ () => labelOnly("Read the project's shared context")
2847
+ ],
2848
+ [
2849
+ HOST_TOOL_NAMES.PROJECT_CONTEXT_WRITE,
2850
+ (record) => {
2851
+ const title = toolInput.verbatim(record.title);
2852
+ return title ? labelOnly(
2853
+ `Wrote to the project context: ${toolInput.truncate(title, 60)}`
2854
+ ) : labelOnly("Wrote to the project context");
2855
+ }
2856
+ ],
2840
2857
  [
2841
2858
  HOST_TOOL_NAMES.RUN_VALIDATION,
2842
2859
  (record) => {