@cline/core 0.0.91 → 0.0.92-nightly.1791599808
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/cloud/index.js +14 -14
- package/dist/extensions/composio/composio-meta-tools.d.ts +39 -0
- package/dist/hub/daemon/entry.js +163 -163
- package/dist/hub/index.js +150 -150
- package/dist/index.d.ts +1 -1
- package/dist/index.js +186 -186
- package/dist/remote/remote-helper-entry.js +1 -1
- package/dist/remote/remote-helper.js +1 -1
- package/dist/services/mcp-install.d.ts +9 -0
- package/package.json +4 -4
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* In-chat authentication for Composio connectors.
|
|
3
|
+
*
|
|
4
|
+
* The Cline API creates a per-user Composio tool-router session scoped to the
|
|
5
|
+
* project's enabled auth configs (`POST /api/v1/connectors/meta-tools/sessions`)
|
|
6
|
+
* and returns the schemas of its allowlisted meta tools: COMPOSIO_SEARCH_TOOLS
|
|
7
|
+
* finds tools across those toolkits, COMPOSIO_MANAGE_CONNECTIONS returns a
|
|
8
|
+
* hosted Connect Link the agent surfaces in chat, COMPOSIO_WAIT_FOR_CONNECTIONS
|
|
9
|
+
* blocks until the user finishes, and COMPOSIO_MULTI_EXECUTE_TOOL runs the
|
|
10
|
+
* tools search found — no new session needed after connecting.
|
|
11
|
+
* Credentials never pass through Cline or the model — only the link does.
|
|
12
|
+
* Executions go back through the proxy with the session id
|
|
13
|
+
* (`POST /api/v1/connectors/meta-tools/{slug}/execute`), which checks that the
|
|
14
|
+
* session belongs to the caller.
|
|
15
|
+
*/
|
|
16
|
+
export declare const CONNECTORS_API_PATH = "/api/v1/connectors";
|
|
17
|
+
export type ConnectorsAuth = {
|
|
18
|
+
baseUrl: string;
|
|
19
|
+
token: string;
|
|
20
|
+
};
|
|
21
|
+
export type ComposioMetaTool = {
|
|
22
|
+
slug: string;
|
|
23
|
+
name?: string;
|
|
24
|
+
description?: string;
|
|
25
|
+
input_parameters?: Record<string, unknown>;
|
|
26
|
+
};
|
|
27
|
+
export type ComposioMetaToolSession = {
|
|
28
|
+
sessionId: string;
|
|
29
|
+
tools: ComposioMetaTool[];
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Creates a meta-tool session, or returns undefined when in-chat auth is
|
|
33
|
+
* unavailable: no connectable toolkits (404), a proxy without the endpoint, or
|
|
34
|
+
* any network failure. Callers then run without the meta tools.
|
|
35
|
+
*/
|
|
36
|
+
export declare function createComposioMetaToolSession(auth: ConnectorsAuth, options?: {
|
|
37
|
+
log?: (message: string) => void;
|
|
38
|
+
}): Promise<ComposioMetaToolSession | undefined>;
|
|
39
|
+
export declare function executeComposioMetaTool(auth: ConnectorsAuth, sessionId: string, slug: string, input: unknown): Promise<unknown>;
|