@tangle-network/agent-app 1.0.6 → 1.0.8
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/{DesignCanvasEditor-6SQAQGOY.js → DesignCanvasEditor-CYFFF2LZ.js} +3 -3
- package/dist/agent-profiles/d1.js +3 -3
- package/dist/agent-profiles/index.js +3 -3
- package/dist/chat-routes/index.js +4 -4
- package/dist/{chunk-X5BDMSPS.js → chunk-27QO3AXJ.js} +68 -68
- package/dist/chunk-27QO3AXJ.js.map +1 -0
- package/dist/{chunk-IIAXUKV7.js → chunk-2V7YCTYU.js} +2 -2
- package/dist/{chunk-M42DQ6HM.js → chunk-3KJAPMZB.js} +2 -2
- package/dist/{chunk-X32H7TXZ.js → chunk-7JUQQEQY.js} +2 -2
- package/dist/{chunk-DURND7YS.js → chunk-7MVMNCRP.js} +5 -5
- package/dist/{chunk-DURND7YS.js.map → chunk-7MVMNCRP.js.map} +1 -1
- package/dist/{chunk-V2BC73KQ.js → chunk-IUAPYE37.js} +2 -2
- package/dist/{chunk-DNM5CN3R.js → chunk-UCXB3ZZ3.js} +3 -3
- package/dist/{chunk-OWNWWT76.js → chunk-VHDBKP3G.js} +2 -2
- package/dist/{chunk-YAIUAUWJ.js → chunk-XU6A5NT2.js} +2 -2
- package/dist/design-canvas-react/index.js +3 -3
- package/dist/design-canvas-react/lazy.js +1 -1
- package/dist/integrations-react/client.d.ts +1 -0
- package/dist/integrations-react/index.js +6 -3
- package/dist/integrations-react/index.js.map +1 -1
- package/dist/integrations-react/panel.d.ts +2 -0
- package/dist/integrations-react/popup.d.ts +1 -0
- package/dist/integrations-react/use-hub-integrations.d.ts +3 -1
- package/dist/platform/hub-settings.d.ts +1 -0
- package/dist/platform/index.js +6 -1
- package/dist/platform/index.js.map +1 -1
- package/dist/preset-cloudflare/index.js +2 -2
- package/dist/public-consultation/index.d.ts +1 -1
- package/dist/public-consultation/index.js +4 -4
- package/dist/sandbox/index.js +4 -4
- package/dist/theme/brand.generated.d.ts +68 -68
- package/dist/theme/dom.js +2 -2
- package/dist/theme/index.js +1 -1
- package/dist/theme/tailwind-preset.js +2 -4
- package/dist/theme/tailwind-preset.js.map +1 -1
- package/dist/theme/tokens.css +1383 -984
- package/dist/tools/index.js +4 -4
- package/dist/web-react/document.js +2 -2
- package/dist/work-product/index.js +2 -2
- package/package.json +7 -7
- package/dist/chunk-X5BDMSPS.js.map +0 -1
- /package/dist/{DesignCanvasEditor-6SQAQGOY.js.map → DesignCanvasEditor-CYFFF2LZ.js.map} +0 -0
- /package/dist/{chunk-IIAXUKV7.js.map → chunk-2V7YCTYU.js.map} +0 -0
- /package/dist/{chunk-M42DQ6HM.js.map → chunk-3KJAPMZB.js.map} +0 -0
- /package/dist/{chunk-X32H7TXZ.js.map → chunk-7JUQQEQY.js.map} +0 -0
- /package/dist/{chunk-V2BC73KQ.js.map → chunk-IUAPYE37.js.map} +0 -0
- /package/dist/{chunk-DNM5CN3R.js.map → chunk-UCXB3ZZ3.js.map} +0 -0
- /package/dist/{chunk-OWNWWT76.js.map → chunk-VHDBKP3G.js.map} +0 -0
- /package/dist/{chunk-YAIUAUWJ.js.map → chunk-XU6A5NT2.js.map} +0 -0
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
} from "./chunk-VCG4DQC4.js";
|
|
39
39
|
import {
|
|
40
40
|
lightTheme
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-27QO3AXJ.js";
|
|
42
42
|
|
|
43
43
|
// src/design-canvas-react/components/Workspace.tsx
|
|
44
44
|
import {
|
|
@@ -2123,4 +2123,4 @@ export {
|
|
|
2123
2123
|
Workspace,
|
|
2124
2124
|
DesignCanvasEditor
|
|
2125
2125
|
};
|
|
2126
|
-
//# sourceMappingURL=chunk-
|
|
2126
|
+
//# sourceMappingURL=chunk-IUAPYE37.js.map
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
} from "./chunk-OY7A6M7S.js";
|
|
5
5
|
import {
|
|
6
6
|
parseRenderUiSchema
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-7JUQQEQY.js";
|
|
8
8
|
import {
|
|
9
9
|
buildAppToolOpenAITools,
|
|
10
10
|
findCustomTool,
|
|
11
11
|
isAppToolName
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-3KJAPMZB.js";
|
|
13
13
|
import {
|
|
14
14
|
ToolInputError
|
|
15
15
|
} from "./chunk-F4XBNR5L.js";
|
|
@@ -212,4 +212,4 @@ export {
|
|
|
212
212
|
createAppToolRuntimeExecutor,
|
|
213
213
|
handleAppToolRequest
|
|
214
214
|
};
|
|
215
|
-
//# sourceMappingURL=chunk-
|
|
215
|
+
//# sourceMappingURL=chunk-UCXB3ZZ3.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-3CI35I4X.js";
|
|
5
5
|
import {
|
|
6
6
|
defineAppTool
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3KJAPMZB.js";
|
|
8
8
|
import {
|
|
9
9
|
ToolInputError
|
|
10
10
|
} from "./chunk-F4XBNR5L.js";
|
|
@@ -672,4 +672,4 @@ export {
|
|
|
672
672
|
PROFILE_MEMORY_PREFIX,
|
|
673
673
|
profileTools
|
|
674
674
|
};
|
|
675
|
-
//# sourceMappingURL=chunk-
|
|
675
|
+
//# sourceMappingURL=chunk-VHDBKP3G.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/design-canvas-react/lazy.tsx
|
|
2
2
|
import { lazy } from "react";
|
|
3
3
|
var DesignCanvasLazy = lazy(
|
|
4
|
-
() => import("./DesignCanvasEditor-
|
|
4
|
+
() => import("./DesignCanvasEditor-CYFFF2LZ.js").then((m) => ({ default: m.DesignCanvasEditor }))
|
|
5
5
|
);
|
|
6
6
|
var DesignCanvasChromeLazy = lazy(
|
|
7
7
|
() => import("./DesignCanvas-JA5O6Y6C.js").then((m) => ({ default: m.DesignCanvas }))
|
|
@@ -11,4 +11,4 @@ export {
|
|
|
11
11
|
DesignCanvasLazy,
|
|
12
12
|
DesignCanvasChromeLazy
|
|
13
13
|
};
|
|
14
|
-
//# sourceMappingURL=chunk-
|
|
14
|
+
//# sourceMappingURL=chunk-XU6A5NT2.js.map
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
bakeTextTransform,
|
|
12
12
|
exportDocumentJson,
|
|
13
13
|
exportPageDataUrl
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-IUAPYE37.js";
|
|
15
15
|
import {
|
|
16
16
|
BTN,
|
|
17
17
|
BTN_ACTIVE,
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
import {
|
|
86
86
|
DesignCanvasChromeLazy,
|
|
87
87
|
DesignCanvasLazy
|
|
88
|
-
} from "../chunk-
|
|
88
|
+
} from "../chunk-XU6A5NT2.js";
|
|
89
89
|
import {
|
|
90
90
|
LockGlyph
|
|
91
91
|
} from "../chunk-P4RRC4AO.js";
|
|
@@ -100,7 +100,7 @@ import "../chunk-ALIWB2P3.js";
|
|
|
100
100
|
import "../chunk-5VE4IDSU.js";
|
|
101
101
|
import "../chunk-V42C72V5.js";
|
|
102
102
|
import "../chunk-TXD5HXLE.js";
|
|
103
|
-
import "../chunk-
|
|
103
|
+
import "../chunk-27QO3AXJ.js";
|
|
104
104
|
|
|
105
105
|
// src/design-canvas-react/components/CanvasInsertPanel.tsx
|
|
106
106
|
import { useEffect, useRef, useState } from "react";
|
|
@@ -21,6 +21,7 @@ export interface HubIntegrationsClient {
|
|
|
21
21
|
startOAuth(identity: HubIntegrationsIdentity, providerId: string, input: {
|
|
22
22
|
returnUrl: string;
|
|
23
23
|
connectionParameters?: Record<string, string>;
|
|
24
|
+
requestedScopes?: readonly string[];
|
|
24
25
|
}, signal?: AbortSignal): Promise<HubOAuthStartResponse>;
|
|
25
26
|
connectApiKey(identity: HubIntegrationsIdentity, providerId: string, apiKey: string, metadata?: HubApiKeyConnectionMetadata, signal?: AbortSignal): Promise<HubConnection>;
|
|
26
27
|
revoke(identity: HubIntegrationsIdentity, connectionId: string, signal?: AbortSignal): Promise<HubConnection>;
|
|
@@ -137,7 +137,8 @@ async function connectWithPopup(input) {
|
|
|
137
137
|
if (!input.isCurrent()) return "cancelled";
|
|
138
138
|
const start = await withAbort(input.client.startOAuth(input.identity, input.providerId, {
|
|
139
139
|
returnUrl: callback.href,
|
|
140
|
-
...input.connectionParameters === void 0 ? {} : { connectionParameters: input.connectionParameters }
|
|
140
|
+
...input.connectionParameters === void 0 ? {} : { connectionParameters: input.connectionParameters },
|
|
141
|
+
...input.requestedScopes === void 0 ? {} : { requestedScopes: input.requestedScopes }
|
|
141
142
|
}, timeout.signal), timeout.signal);
|
|
142
143
|
if (!input.isCurrent() || input.signal.aborted) return "cancelled";
|
|
143
144
|
let redirect;
|
|
@@ -400,7 +401,7 @@ function updateUrl(providerId, connectionId) {
|
|
|
400
401
|
else url.searchParams.delete("connection");
|
|
401
402
|
window.history.pushState(window.history.state, "", url);
|
|
402
403
|
}
|
|
403
|
-
function useHubIntegrations({ identity, client, can, callbackPath, onUnsupportedConnect, hostConnect, getActionPolicy }) {
|
|
404
|
+
function useHubIntegrations({ identity, client, can, callbackPath, getOAuthScopes, onUnsupportedConnect, hostConnect, getActionPolicy }) {
|
|
404
405
|
const scope = contextKey(identity);
|
|
405
406
|
const activeScope = useRef(scope);
|
|
406
407
|
activeScope.current = scope;
|
|
@@ -529,6 +530,7 @@ function useHubIntegrations({ identity, client, can, callbackPath, onUnsupported
|
|
|
529
530
|
const controller = new AbortController();
|
|
530
531
|
pendingPopup.current = controller;
|
|
531
532
|
setConnectStatus({ scope, status: "pending", providerId: target.providerId });
|
|
533
|
+
const requestedScopes = getOAuthScopes?.(target);
|
|
532
534
|
const result = await connectWithPopup({
|
|
533
535
|
client,
|
|
534
536
|
identity,
|
|
@@ -536,6 +538,7 @@ function useHubIntegrations({ identity, client, can, callbackPath, onUnsupported
|
|
|
536
538
|
before: connections.value,
|
|
537
539
|
callbackPath,
|
|
538
540
|
connectionParameters,
|
|
541
|
+
requestedScopes,
|
|
539
542
|
signal: controller.signal,
|
|
540
543
|
isCurrent: () => activeScope.current === scope && !controller.signal.aborted
|
|
541
544
|
});
|
|
@@ -547,7 +550,7 @@ function useHubIntegrations({ identity, client, can, callbackPath, onUnsupported
|
|
|
547
550
|
setConnectStatus({ scope, status: "connected", message: "Connection verified." });
|
|
548
551
|
} else setConnectStatus({ scope, status: "failed", providerId: target.providerId, message: result === "blocked" ? "Allow the popup and try again." : result === "unverified" ? "Could not verify a new connection. Refresh and try again." : result === "failed" ? "Could not connect your account. Please try again." : result === "cancelled" ? "Connection was cancelled." : "This connection flow is unavailable." });
|
|
549
552
|
return result;
|
|
550
|
-
}, [can, connections, client, identity, callbackPath, scope]);
|
|
553
|
+
}, [can, connections, client, identity, callbackPath, getOAuthScopes, scope]);
|
|
551
554
|
const beginConnect = useCallback((target) => {
|
|
552
555
|
if (hostConnect?.providerIds.includes(target.providerId)) {
|
|
553
556
|
hostConnect.onConnect(target);
|