@impulselab/hepha 0.2.627 → 0.2.629

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
@@ -1926,6 +1926,7 @@ var HOST_TOOL_NAMES = {
1926
1926
  // to durable storage and downloadable once the sandbox is gone.
1927
1927
  ATTACH_FILE: "attach_file",
1928
1928
  SHOW_INTERACTIVE_VIEW: "show_interactive_view",
1929
+ PREVIEW_INTERACTIVE_VIEW: "preview_interactive_view",
1929
1930
  // Delegation: a task is the work, a session is one attempt at it. The agent
1930
1931
  // describes the task and the PLATFORM dispatches it; these address the task,
1931
1932
  // never a runner. Fire-and-forget, none of them park the turn.
@@ -2759,18 +2760,38 @@ function describeAttachFile(record, state) {
2759
2760
  );
2760
2761
  }
2761
2762
 
2762
- // ../../packages/agents/src/tool-activity/interactive-view/describe-show-interactive-view.ts
2763
- function describeShowInteractiveView(record, state) {
2764
- const title = toolInput.trimmed(record.title);
2765
- const subject = title ? `"${title}"` : "an interactive view";
2766
- if (state.hasFailed) {
2767
- return labelOnly(`Failed to show ${subject}`);
2768
- }
2769
- return labelOnly(
2770
- state.isRunning ? `Showing ${subject}` : `Showed ${subject}`
2771
- );
2763
+ // ../../packages/agents/src/tool-activity/interactive-view/describe-interactive-view.ts
2764
+ function describeInteractiveView(verb) {
2765
+ return (record, state) => {
2766
+ const title = toolInput.trimmed(record.title);
2767
+ const subject = title ? `"${title}"` : "an interactive view";
2768
+ if (state.hasFailed) return labelOnly(`${verb.failed} ${subject}`);
2769
+ return labelOnly(
2770
+ `${state.isRunning ? verb.running : verb.done} ${subject}`
2771
+ );
2772
+ };
2772
2773
  }
2773
2774
 
2775
+ // ../../packages/agents/src/tool-activity/interactive-view/interactive-view-tool-activity-describers.ts
2776
+ var interactiveViewToolActivityDescribers = [
2777
+ [
2778
+ HOST_TOOL_NAMES.SHOW_INTERACTIVE_VIEW,
2779
+ describeInteractiveView({
2780
+ running: "Showing",
2781
+ done: "Showed",
2782
+ failed: "Failed to show"
2783
+ })
2784
+ ],
2785
+ [
2786
+ HOST_TOOL_NAMES.PREVIEW_INTERACTIVE_VIEW,
2787
+ describeInteractiveView({
2788
+ running: "Previewing",
2789
+ done: "Previewed",
2790
+ failed: "Failed to preview"
2791
+ })
2792
+ ]
2793
+ ];
2794
+
2774
2795
  // ../../packages/agents/src/teams/agent-task-update-constants.ts
2775
2796
  var AGENT_TASK_UPDATE_ACTIONS = {
2776
2797
  BLOCK: "block",
@@ -2962,7 +2983,6 @@ var canonicalToolActivityDescribers = new Map([
2962
2983
  [HOST_TOOL_NAMES.RECORD_VIDEO, describeRecordVideo],
2963
2984
  [HOST_TOOL_NAMES.ATTACH_IMAGE, describeAttachImage],
2964
2985
  [HOST_TOOL_NAMES.ATTACH_FILE, describeAttachFile],
2965
- [HOST_TOOL_NAMES.SHOW_INTERACTIVE_VIEW, describeShowInteractiveView],
2966
2986
  [
2967
2987
  HOST_TOOL_NAMES.GET_IMAGE_GENERATORS,
2968
2988
  () => labelOnly("Listed the image models")
@@ -3078,7 +3098,8 @@ var canonicalToolActivityDescribers = new Map([
3078
3098
  ...designToolActivityDescribers,
3079
3099
  ...automationToolActivityDescribers,
3080
3100
  ...reviewToolActivityDescribers,
3081
- ...factoryToolActivityDescribers
3101
+ ...factoryToolActivityDescribers,
3102
+ ...interactiveViewToolActivityDescribers
3082
3103
  ]);
3083
3104
 
3084
3105
  // ../../packages/agents/src/tool-activity/browser/soft-fail-browser-tools-constants.ts
@@ -3109,7 +3130,8 @@ var SOFT_FAIL_CAPTURE_TOOLS = /* @__PURE__ */ new Set([
3109
3130
  HOST_TOOL_NAMES.ATTACH_IMAGE,
3110
3131
  HOST_TOOL_NAMES.ATTACH_FILE,
3111
3132
  HOST_TOOL_NAMES.GENERATE_IMAGE,
3112
- HOST_TOOL_NAMES.ANNOTATE_IMAGE
3133
+ HOST_TOOL_NAMES.ANNOTATE_IMAGE,
3134
+ HOST_TOOL_NAMES.PREVIEW_INTERACTIVE_VIEW
3113
3135
  ]);
3114
3136
 
3115
3137
  // ../../packages/agents/src/tool-activity/capture/soft-failed-capture.ts