@distri/core 0.3.0 → 0.3.2
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.d.mts +3 -4
- package/dist/index.d.ts +3 -4
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -960,10 +960,9 @@ interface AgentUsageInfo {
|
|
|
960
960
|
*/
|
|
961
961
|
interface BrowserSession {
|
|
962
962
|
session_id: string;
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
frame_url?: string;
|
|
963
|
+
viewer_url?: string;
|
|
964
|
+
stream_url?: string;
|
|
965
|
+
frame_token?: string;
|
|
967
966
|
}
|
|
968
967
|
interface ChatProps {
|
|
969
968
|
thread: Thread;
|
package/dist/index.d.ts
CHANGED
|
@@ -960,10 +960,9 @@ interface AgentUsageInfo {
|
|
|
960
960
|
*/
|
|
961
961
|
interface BrowserSession {
|
|
962
962
|
session_id: string;
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
frame_url?: string;
|
|
963
|
+
viewer_url?: string;
|
|
964
|
+
stream_url?: string;
|
|
965
|
+
frame_token?: string;
|
|
967
966
|
}
|
|
968
967
|
interface ChatProps {
|
|
969
968
|
thread: Thread;
|
package/dist/index.js
CHANGED
|
@@ -1945,7 +1945,7 @@ var Agent = class _Agent {
|
|
|
1945
1945
|
const enhancedParams = this.enhanceParamsWithTools(params, tools);
|
|
1946
1946
|
const a2aStream = this.client.sendMessageStream(this.agentDefinition.id, enhancedParams);
|
|
1947
1947
|
const self = this;
|
|
1948
|
-
return
|
|
1948
|
+
return async function* () {
|
|
1949
1949
|
for await (const event of a2aStream) {
|
|
1950
1950
|
const converted = decodeA2AStreamEvent(event);
|
|
1951
1951
|
if (converted && converted.type === "inline_hook_requested") {
|
|
@@ -1966,7 +1966,7 @@ var Agent = class _Agent {
|
|
|
1966
1966
|
yield converted;
|
|
1967
1967
|
}
|
|
1968
1968
|
}
|
|
1969
|
-
}
|
|
1969
|
+
}();
|
|
1970
1970
|
}
|
|
1971
1971
|
/**
|
|
1972
1972
|
* Validate that required external tools are registered before invoking.
|
|
@@ -2023,6 +2023,9 @@ var Agent = class _Agent {
|
|
|
2023
2023
|
if (!toolConfig?.external || !Array.isArray(toolConfig.external)) {
|
|
2024
2024
|
return [];
|
|
2025
2025
|
}
|
|
2026
|
+
if (toolConfig.external.includes("*")) {
|
|
2027
|
+
return [];
|
|
2028
|
+
}
|
|
2026
2029
|
return toolConfig.external.filter((tool) => typeof tool === "string" && tool.trim().length > 0);
|
|
2027
2030
|
}
|
|
2028
2031
|
resolveToolConfig() {
|