@impulselab/hepha 0.2.604 → 0.2.606

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
@@ -1817,6 +1817,8 @@ var HOST_TOOL_NAMES = {
1817
1817
  PROJECT_CONTEXT_READ: "project_context_read",
1818
1818
  PROJECT_CONTEXT_WRITE: "project_context_write",
1819
1819
  SLACK_SEND_MESSAGE: "slack_send_message",
1820
+ REPORT_FINDING: "report_finding",
1821
+ LIST_FINDINGS: "list_findings",
1820
1822
  SKILL_SEARCH: "skill_search",
1821
1823
  SKILL_LOAD: "skill_load",
1822
1824
  SAVE_SKILL: "save_skill",
@@ -2623,6 +2625,19 @@ function describeMemorySearch(record) {
2623
2625
  );
2624
2626
  }
2625
2627
 
2628
+ // ../../packages/agents/src/tool-activity/canonical/describe-report-finding.ts
2629
+ function describeReportFinding(record) {
2630
+ const title = toolInput.str(record.title);
2631
+ const severity = toolInput.str(record.severity);
2632
+ if (!title) {
2633
+ return labelOnly("Reported a finding");
2634
+ }
2635
+ const prefix = severity ? `${severity}: ` : "";
2636
+ return labelOnly(
2637
+ `Reported a finding, ${prefix}${toolInput.truncate(title, 60)}`
2638
+ );
2639
+ }
2640
+
2626
2641
  // ../../packages/agents/src/tool-activity/canonical/describe-report-dev-server.ts
2627
2642
  function describeReportDevServer(record) {
2628
2643
  const status = toolInput.str(record.status);
@@ -2912,6 +2927,8 @@ var canonicalToolActivityDescribers = new Map([
2912
2927
  }
2913
2928
  ],
2914
2929
  [HOST_TOOL_NAMES.SLACK_SEND_MESSAGE, () => labelOnly("Posted to Slack")],
2930
+ [HOST_TOOL_NAMES.REPORT_FINDING, describeReportFinding],
2931
+ [HOST_TOOL_NAMES.LIST_FINDINGS, () => labelOnly("Read the known findings")],
2915
2932
  [
2916
2933
  HOST_TOOL_NAMES.RUN_VALIDATION,
2917
2934
  (record) => {