@personaai/react 0.18.1 → 0.19.0
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.cjs +9 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +50 -2
- package/dist/index.d.ts +50 -2
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1019,6 +1019,13 @@ function useChat(options = {}) {
|
|
|
1019
1019
|
patchAssistant({});
|
|
1020
1020
|
}
|
|
1021
1021
|
}
|
|
1022
|
+
} else if (event.name === "mcp_auth_required") {
|
|
1023
|
+
const val = event.value;
|
|
1024
|
+
const servers = val?.servers ?? [];
|
|
1025
|
+
if (servers.length > 0) {
|
|
1026
|
+
chatLogger.info("mcp auth required", { mcpIds: servers.map((s) => s.mcpId) });
|
|
1027
|
+
options.onMcpAuthRequired?.(servers);
|
|
1028
|
+
}
|
|
1022
1029
|
}
|
|
1023
1030
|
} else if (event.type === "title") {
|
|
1024
1031
|
const title = event.title;
|
|
@@ -2959,7 +2966,7 @@ function useMcpConnections(options = {}) {
|
|
|
2959
2966
|
throw new Error(`Failed to disconnect MCP: ${res.statusText}`);
|
|
2960
2967
|
setConnections(
|
|
2961
2968
|
(prev) => prev.map(
|
|
2962
|
-
(c) => c.mcpId === mcpId ? { ...c, connected: false, authorizeUrl: null } : c
|
|
2969
|
+
(c) => c.mcpId === mcpId ? { ...c, connected: false, status: "not_connected", authorizeUrl: null } : c
|
|
2963
2970
|
)
|
|
2964
2971
|
);
|
|
2965
2972
|
void fetchConnections();
|
|
@@ -4452,7 +4459,7 @@ function useWorkflowRuns(workflowId, options) {
|
|
|
4452
4459
|
|
|
4453
4460
|
// src/index.ts
|
|
4454
4461
|
var import_logger2 = require("@personaai/logger");
|
|
4455
|
-
var VERSION = "0.
|
|
4462
|
+
var VERSION = "0.19.0";
|
|
4456
4463
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4457
4464
|
0 && (module.exports = {
|
|
4458
4465
|
ARCHITECT_AGENT_ID,
|