clementine-agent 1.11.1 → 1.11.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/cli/dashboard.js +4 -4
- package/package.json +1 -1
package/dist/cli/dashboard.js
CHANGED
|
@@ -25849,9 +25849,10 @@ async function saveComposioApiKey() {
|
|
|
25849
25849
|
|
|
25850
25850
|
async function connectComposio(slug) {
|
|
25851
25851
|
try {
|
|
25852
|
-
|
|
25852
|
+
// Use apiFetch (not raw fetch) so the Authorization: Bearer header is
|
|
25853
|
+
// attached — the /api/* middleware rejects unauth'd POSTs with 401.
|
|
25854
|
+
var res = await apiFetch('/api/composio/toolkits/' + encodeURIComponent(slug) + '/authorize', {
|
|
25853
25855
|
method: 'POST',
|
|
25854
|
-
credentials: 'same-origin',
|
|
25855
25856
|
headers: { 'content-type': 'application/json' },
|
|
25856
25857
|
body: JSON.stringify({}),
|
|
25857
25858
|
});
|
|
@@ -25884,9 +25885,8 @@ async function connectComposio(slug) {
|
|
|
25884
25885
|
async function disconnectComposio(slug, connectionId) {
|
|
25885
25886
|
if (!confirm('Disconnect this ' + slug + ' account?')) return;
|
|
25886
25887
|
try {
|
|
25887
|
-
var res = await
|
|
25888
|
+
var res = await apiFetch('/api/composio/toolkits/' + encodeURIComponent(slug) + '/disconnect', {
|
|
25888
25889
|
method: 'POST',
|
|
25889
|
-
credentials: 'same-origin',
|
|
25890
25890
|
headers: { 'content-type': 'application/json' },
|
|
25891
25891
|
body: JSON.stringify({ connectionId: connectionId }),
|
|
25892
25892
|
});
|