@impulselab/hepha 0.2.517 → 0.2.519
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 +16 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1874,6 +1874,9 @@ var HOST_TOOL_NAMES = {
|
|
|
1874
1874
|
BROWSER_NAVIGATE: "browser_navigate",
|
|
1875
1875
|
BROWSER_SNAPSHOT: "browser_snapshot",
|
|
1876
1876
|
BROWSER_ACT: "browser_act",
|
|
1877
|
+
// The same page loop, decided by Jev instead of an agent turn: one call
|
|
1878
|
+
// walks a whole flow (docs/agents/browser-control.md).
|
|
1879
|
+
BROWSER_AUTOPILOT: "browser_autopilot",
|
|
1877
1880
|
BROWSER_WAIT: "browser_wait",
|
|
1878
1881
|
BROWSER_INSPECT: "browser_inspect",
|
|
1879
1882
|
BROWSER_SCREENSHOT: "browser_screenshot",
|
|
@@ -2162,6 +2165,18 @@ function describeTakeScreenshot(record, state) {
|
|
|
2162
2165
|
var browserToolActivityDescribers = [
|
|
2163
2166
|
[HOST_TOOL_NAMES.BROWSER_NAVIGATE, describeBrowserNavigate],
|
|
2164
2167
|
[HOST_TOOL_NAMES.BROWSER_ACT, describeBrowserAct],
|
|
2168
|
+
[
|
|
2169
|
+
// The goal is the only thing worth reading: the steps are in the result.
|
|
2170
|
+
HOST_TOOL_NAMES.BROWSER_AUTOPILOT,
|
|
2171
|
+
(record, state) => {
|
|
2172
|
+
const goal = toolInput.str(record.goal);
|
|
2173
|
+
return browserLabel(state, {
|
|
2174
|
+
failed: goal ? `Could not: ${goal}` : "Could not drive the browser",
|
|
2175
|
+
running: goal ? `Driving the browser: ${goal}` : "Driving the browser",
|
|
2176
|
+
done: goal ? `Drove the browser: ${goal}` : "Drove the browser"
|
|
2177
|
+
});
|
|
2178
|
+
}
|
|
2179
|
+
],
|
|
2165
2180
|
[
|
|
2166
2181
|
HOST_TOOL_NAMES.BROWSER_SNAPSHOT,
|
|
2167
2182
|
(_record, state) => browserLabel(state, {
|
|
@@ -2910,6 +2925,7 @@ var SOFT_FAIL_BROWSER_TOOLS = /* @__PURE__ */ new Set([
|
|
|
2910
2925
|
HOST_TOOL_NAMES.BROWSER_NAVIGATE,
|
|
2911
2926
|
HOST_TOOL_NAMES.BROWSER_SNAPSHOT,
|
|
2912
2927
|
HOST_TOOL_NAMES.BROWSER_ACT,
|
|
2928
|
+
HOST_TOOL_NAMES.BROWSER_AUTOPILOT,
|
|
2913
2929
|
HOST_TOOL_NAMES.BROWSER_WAIT,
|
|
2914
2930
|
HOST_TOOL_NAMES.BROWSER_INSPECT,
|
|
2915
2931
|
HOST_TOOL_NAMES.BROWSER_SCREENSHOT,
|