@impulselab/hepha 0.2.467 → 0.2.469
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 +38 -18
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1841,6 +1841,7 @@ var HOST_TOOL_NAMES = {
|
|
|
1841
1841
|
RENAME_SESSION: "rename_session",
|
|
1842
1842
|
// Files an issue in Hephaistos' own Linear tracker; never parks the turn.
|
|
1843
1843
|
REPORT_HARNESS_ISSUE: "report_harness_issue",
|
|
1844
|
+
REPORT_DEV_SERVER: "report_dev_server",
|
|
1844
1845
|
RUN_VALIDATION: "run_validation",
|
|
1845
1846
|
// Media tool (Stage 1): generate images host-side via the AI Gateway; the
|
|
1846
1847
|
// result renders inline in the thread. Always available, never parks the
|
|
@@ -2293,6 +2294,28 @@ var factoryToolActivityDescribers = [
|
|
|
2293
2294
|
[HOST_TOOL_NAMES.DECIDE_QA, () => labelOnly("Settled the QA verdict")]
|
|
2294
2295
|
];
|
|
2295
2296
|
|
|
2297
|
+
// ../../packages/agents/src/tool-activity/canonical/integration-tool-activity-describers.ts
|
|
2298
|
+
var integrationToolActivityDescribers = [
|
|
2299
|
+
[
|
|
2300
|
+
"tool_search",
|
|
2301
|
+
(record) => {
|
|
2302
|
+
const query = toolInput.str(record.query);
|
|
2303
|
+
return labelOnly(
|
|
2304
|
+
query ? `Searched integrations for "${toolInput.truncate(query, 60)}"` : "Searched the connected integrations"
|
|
2305
|
+
);
|
|
2306
|
+
}
|
|
2307
|
+
],
|
|
2308
|
+
[
|
|
2309
|
+
"tool_execute",
|
|
2310
|
+
(record) => {
|
|
2311
|
+
const target = toolInput.str(record.tool);
|
|
2312
|
+
return labelOnly(
|
|
2313
|
+
target ? `Ran ${toolInput.truncate(target, 60)}` : "Ran an integration tool"
|
|
2314
|
+
);
|
|
2315
|
+
}
|
|
2316
|
+
]
|
|
2317
|
+
];
|
|
2318
|
+
|
|
2296
2319
|
// ../../packages/agents/src/tool-activity/capture/describe-annotate-image.ts
|
|
2297
2320
|
function describeAnnotateImage(record, state) {
|
|
2298
2321
|
return captureLabel(
|
|
@@ -2547,6 +2570,19 @@ function describeMemorySearch(record) {
|
|
|
2547
2570
|
);
|
|
2548
2571
|
}
|
|
2549
2572
|
|
|
2573
|
+
// ../../packages/agents/src/tool-activity/canonical/describe-report-dev-server.ts
|
|
2574
|
+
function describeReportDevServer(record) {
|
|
2575
|
+
const status = toolInput.str(record.status);
|
|
2576
|
+
const port = toolInput.str(record.port) ?? String(record.port ?? "");
|
|
2577
|
+
if (status && port) {
|
|
2578
|
+
return labelOnly(`Reported the dev server ${status} on port ${port}`);
|
|
2579
|
+
}
|
|
2580
|
+
if (status) {
|
|
2581
|
+
return labelOnly(`Reported the dev server ${status}`);
|
|
2582
|
+
}
|
|
2583
|
+
return labelOnly("Reported the dev server");
|
|
2584
|
+
}
|
|
2585
|
+
|
|
2550
2586
|
// ../../packages/agents/src/tool-activity/canonical/describe-request-env-vars.ts
|
|
2551
2587
|
function describeRequestEnvVars(record) {
|
|
2552
2588
|
const asked = Array.isArray(record.variables) ? record.variables.length : null;
|
|
@@ -2798,6 +2834,7 @@ var canonicalToolActivityDescribers = new Map([
|
|
|
2798
2834
|
}
|
|
2799
2835
|
],
|
|
2800
2836
|
[HOST_TOOL_NAMES.MEMORY_SEARCH, describeMemorySearch],
|
|
2837
|
+
[HOST_TOOL_NAMES.REPORT_DEV_SERVER, describeReportDevServer],
|
|
2801
2838
|
[HOST_TOOL_NAMES.MEMORY_WRITE, () => labelOnly("Wrote to its memory")],
|
|
2802
2839
|
[
|
|
2803
2840
|
HOST_TOOL_NAMES.RUN_VALIDATION,
|
|
@@ -2840,26 +2877,9 @@ var canonicalToolActivityDescribers = new Map([
|
|
|
2840
2877
|
);
|
|
2841
2878
|
}
|
|
2842
2879
|
],
|
|
2843
|
-
[
|
|
2844
|
-
"tool_search",
|
|
2845
|
-
(record) => {
|
|
2846
|
-
const query = toolInput.str(record.query);
|
|
2847
|
-
return labelOnly(
|
|
2848
|
-
query ? `Searched integrations for "${toolInput.truncate(query, 60)}"` : "Searched the connected integrations"
|
|
2849
|
-
);
|
|
2850
|
-
}
|
|
2851
|
-
],
|
|
2852
|
-
[
|
|
2853
|
-
"tool_execute",
|
|
2854
|
-
(record) => {
|
|
2855
|
-
const target = toolInput.str(record.tool);
|
|
2856
|
-
return labelOnly(
|
|
2857
|
-
target ? `Ran ${toolInput.truncate(target, 60)}` : "Ran an integration tool"
|
|
2858
|
-
);
|
|
2859
|
-
}
|
|
2860
|
-
],
|
|
2861
2880
|
[HOST_TOOL_NAMES.GENERATE_IMAGE, describeGenerateImage],
|
|
2862
2881
|
[HOST_TOOL_NAMES.ANNOTATE_IMAGE, describeAnnotateImage],
|
|
2882
|
+
...integrationToolActivityDescribers,
|
|
2863
2883
|
...browserToolActivityDescribers,
|
|
2864
2884
|
...designToolActivityDescribers,
|
|
2865
2885
|
...factoryToolActivityDescribers
|