managed-deepagents 0.5.0-dev.80 → 0.5.0-dev.82
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/README.md +6 -5
- package/dist/connectors/github/http.d.ts.map +1 -1
- package/dist/connectors/github/http.js +11 -1
- package/dist/connectors/github/http.js.map +1 -1
- package/dist/connectors/github/index.d.ts +5 -5
- package/dist/connectors/github/index.d.ts.map +1 -1
- package/dist/connectors/github/index.js.map +1 -1
- package/dist/connectors/marketplace/catalog.d.ts +96 -0
- package/dist/connectors/marketplace/catalog.d.ts.map +1 -0
- package/dist/connectors/marketplace/catalog.js +213 -0
- package/dist/connectors/marketplace/catalog.js.map +1 -0
- package/dist/connectors/marketplace/fleet-mcp.d.ts +62 -0
- package/dist/connectors/marketplace/fleet-mcp.d.ts.map +1 -0
- package/dist/connectors/marketplace/fleet-mcp.js +215 -0
- package/dist/connectors/marketplace/fleet-mcp.js.map +1 -0
- package/dist/connectors/marketplace/index.d.ts +31 -0
- package/dist/connectors/marketplace/index.d.ts.map +1 -0
- package/dist/connectors/marketplace/index.js +39 -0
- package/dist/connectors/marketplace/index.js.map +1 -0
- package/dist/connectors/marketplace/load.d.ts +15 -0
- package/dist/connectors/marketplace/load.d.ts.map +1 -0
- package/dist/connectors/marketplace/load.js +265 -0
- package/dist/connectors/marketplace/load.js.map +1 -0
- package/dist/connectors/slack/http.d.ts.map +1 -1
- package/dist/connectors/slack/http.js +16 -2
- package/dist/connectors/slack/http.js.map +1 -1
- package/dist/connectors/slack/index.d.ts +3 -3
- package/dist/connectors/slack/index.d.ts.map +1 -1
- package/dist/connectors/slack/index.js.map +1 -1
- package/dist/connectors/tool-selection.d.ts +32 -8
- package/dist/connectors/tool-selection.d.ts.map +1 -1
- package/dist/connectors/tool-selection.js +62 -4
- package/dist/connectors/tool-selection.js.map +1 -1
- package/dist/connectors/toolserver/catalog.d.ts +241 -43
- package/dist/connectors/toolserver/catalog.d.ts.map +1 -1
- package/dist/connectors/toolserver/catalog.js +423 -34
- package/dist/connectors/toolserver/catalog.js.map +1 -1
- package/dist/connectors/toolserver/connectors.d.ts +698 -0
- package/dist/connectors/toolserver/connectors.d.ts.map +1 -0
- package/dist/connectors/toolserver/connectors.js +13 -0
- package/dist/connectors/toolserver/connectors.js.map +1 -0
- package/dist/connectors/toolserver/index.d.ts +56 -31
- package/dist/connectors/toolserver/index.d.ts.map +1 -1
- package/dist/connectors/toolserver/index.js +15 -58
- package/dist/connectors/toolserver/index.js.map +1 -1
- package/dist/connectors/toolserver/integrations.d.ts +103 -0
- package/dist/connectors/toolserver/integrations.d.ts.map +1 -0
- package/dist/connectors/toolserver/integrations.js +277 -0
- package/dist/connectors/toolserver/integrations.js.map +1 -0
- package/dist/connectors/toolserver/load.d.ts +10 -10
- package/dist/connectors/toolserver/load.d.ts.map +1 -1
- package/dist/connectors/toolserver/load.js +164 -36
- package/dist/connectors/toolserver/load.js.map +1 -1
- package/dist/identity/actor-subject.d.ts +60 -0
- package/dist/identity/actor-subject.d.ts.map +1 -0
- package/dist/identity/actor-subject.js +107 -0
- package/dist/identity/actor-subject.js.map +1 -0
- package/dist/identity/byo-oauth.d.ts +81 -0
- package/dist/identity/byo-oauth.d.ts.map +1 -0
- package/dist/identity/byo-oauth.js +145 -0
- package/dist/identity/byo-oauth.js.map +1 -0
- package/dist/identity/connect-inference.d.ts +13 -3
- package/dist/identity/connect-inference.d.ts.map +1 -1
- package/dist/identity/connect-inference.js +22 -6
- package/dist/identity/connect-inference.js.map +1 -1
- package/dist/identity/connect-provider-types.d.ts +12 -0
- package/dist/identity/connect-provider-types.d.ts.map +1 -1
- package/dist/identity/connect-provider.js +20 -4
- package/dist/identity/connect-provider.js.map +1 -1
- package/dist/identity/fleet-connect-hint.d.ts +39 -0
- package/dist/identity/fleet-connect-hint.d.ts.map +1 -0
- package/dist/identity/fleet-connect-hint.js +134 -0
- package/dist/identity/fleet-connect-hint.js.map +1 -0
- package/dist/identity/fleet-connect.d.ts +92 -0
- package/dist/identity/fleet-connect.d.ts.map +1 -0
- package/dist/identity/fleet-connect.js +256 -0
- package/dist/identity/fleet-connect.js.map +1 -0
- package/dist/identity/fleet-integration-connect.d.ts +32 -0
- package/dist/identity/fleet-integration-connect.d.ts.map +1 -0
- package/dist/identity/fleet-integration-connect.js +35 -0
- package/dist/identity/fleet-integration-connect.js.map +1 -0
- package/dist/identity/fleet.d.ts +56 -0
- package/dist/identity/fleet.d.ts.map +1 -0
- package/dist/identity/fleet.js +133 -0
- package/dist/identity/fleet.js.map +1 -0
- package/dist/identity/github/connect-http.d.ts +6 -1
- package/dist/identity/github/connect-http.d.ts.map +1 -1
- package/dist/identity/github/connect-http.js +22 -11
- package/dist/identity/github/connect-http.js.map +1 -1
- package/dist/identity/github/oauth.d.ts +2 -5
- package/dist/identity/github/oauth.d.ts.map +1 -1
- package/dist/identity/github/oauth.js +3 -43
- package/dist/identity/github/oauth.js.map +1 -1
- package/dist/identity/google/connect-http.d.ts +38 -0
- package/dist/identity/google/connect-http.d.ts.map +1 -0
- package/dist/identity/google/connect-http.js +59 -0
- package/dist/identity/google/connect-http.js.map +1 -0
- package/dist/identity/google/index.d.ts +7 -0
- package/dist/identity/google/index.d.ts.map +1 -0
- package/dist/identity/google/index.js +6 -0
- package/dist/identity/google/index.js.map +1 -0
- package/dist/identity/google/oauth.d.ts +22 -0
- package/dist/identity/google/oauth.d.ts.map +1 -0
- package/dist/identity/google/oauth.js +48 -0
- package/dist/identity/google/oauth.js.map +1 -0
- package/dist/identity/index.d.ts +16 -0
- package/dist/identity/index.d.ts.map +1 -1
- package/dist/identity/index.js +25 -1
- package/dist/identity/index.js.map +1 -1
- package/dist/identity/linkedin/connect-http.d.ts +38 -0
- package/dist/identity/linkedin/connect-http.d.ts.map +1 -0
- package/dist/identity/linkedin/connect-http.js +59 -0
- package/dist/identity/linkedin/connect-http.js.map +1 -0
- package/dist/identity/linkedin/index.d.ts +7 -0
- package/dist/identity/linkedin/index.d.ts.map +1 -0
- package/dist/identity/linkedin/index.js +6 -0
- package/dist/identity/linkedin/index.js.map +1 -0
- package/dist/identity/linkedin/oauth.d.ts +22 -0
- package/dist/identity/linkedin/oauth.d.ts.map +1 -0
- package/dist/identity/linkedin/oauth.js +47 -0
- package/dist/identity/linkedin/oauth.js.map +1 -0
- package/dist/identity/marketplace/connect-hint.d.ts +31 -0
- package/dist/identity/marketplace/connect-hint.d.ts.map +1 -0
- package/dist/identity/marketplace/connect-hint.js +59 -0
- package/dist/identity/marketplace/connect-hint.js.map +1 -0
- package/dist/identity/marketplace/connect.d.ts +51 -0
- package/dist/identity/marketplace/connect.d.ts.map +1 -0
- package/dist/identity/marketplace/connect.js +88 -0
- package/dist/identity/marketplace/connect.js.map +1 -0
- package/dist/identity/marketplace/index.d.ts +9 -0
- package/dist/identity/marketplace/index.d.ts.map +1 -0
- package/dist/identity/marketplace/index.js +9 -0
- package/dist/identity/marketplace/index.js.map +1 -0
- package/dist/identity/microsoft/connect-http.d.ts +39 -0
- package/dist/identity/microsoft/connect-http.d.ts.map +1 -0
- package/dist/identity/microsoft/connect-http.js +60 -0
- package/dist/identity/microsoft/connect-http.js.map +1 -0
- package/dist/identity/microsoft/index.d.ts +7 -0
- package/dist/identity/microsoft/index.d.ts.map +1 -0
- package/dist/identity/microsoft/index.js +6 -0
- package/dist/identity/microsoft/index.js.map +1 -0
- package/dist/identity/microsoft/oauth.d.ts +24 -0
- package/dist/identity/microsoft/oauth.d.ts.map +1 -0
- package/dist/identity/microsoft/oauth.js +65 -0
- package/dist/identity/microsoft/oauth.js.map +1 -0
- package/dist/identity/oauth-tickets.d.ts +37 -0
- package/dist/identity/oauth-tickets.d.ts.map +1 -0
- package/dist/identity/oauth-tickets.js +114 -0
- package/dist/identity/oauth-tickets.js.map +1 -0
- package/dist/identity/options.d.ts +8 -3
- package/dist/identity/options.d.ts.map +1 -1
- package/dist/identity/options.js +6 -2
- package/dist/identity/options.js.map +1 -1
- package/dist/identity/slack/connect-http.d.ts.map +1 -1
- package/dist/identity/slack/connect-http.js +3 -3
- package/dist/identity/slack/connect-http.js.map +1 -1
- package/dist/identity/slack/oauth.d.ts +2 -5
- package/dist/identity/slack/oauth.d.ts.map +1 -1
- package/dist/identity/slack/oauth.js +3 -43
- package/dist/identity/slack/oauth.js.map +1 -1
- package/dist/identity/types.d.ts +14 -2
- package/dist/identity/types.d.ts.map +1 -1
- package/dist/identity/x/connect-http.d.ts +39 -0
- package/dist/identity/x/connect-http.d.ts.map +1 -0
- package/dist/identity/x/connect-http.js +69 -0
- package/dist/identity/x/connect-http.js.map +1 -0
- package/dist/identity/x/index.d.ts +6 -0
- package/dist/identity/x/index.d.ts.map +1 -0
- package/dist/identity/x/index.js +5 -0
- package/dist/identity/x/index.js.map +1 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/namespaces.d.ts +254 -24
- package/dist/namespaces.d.ts.map +1 -1
- package/dist/namespaces.js +65 -32
- package/dist/namespaces.js.map +1 -1
- package/dist/runtime/credentials.d.ts +2 -2
- package/dist/runtime/credentials.js +2 -2
- package/dist/runtime/identity-http.d.ts.map +1 -1
- package/dist/runtime/identity-http.js +45 -4
- package/dist/runtime/identity-http.js.map +1 -1
- package/dist/runtime/index.d.ts +13 -123
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +52 -14
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/recursion-limit.d.ts +22 -0
- package/dist/runtime/recursion-limit.d.ts.map +1 -0
- package/dist/runtime/recursion-limit.js +46 -0
- package/dist/runtime/recursion-limit.js.map +1 -0
- package/package.json +8 -7
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Per-integration factories on `connectors` for LangSmith tool-server tools.
|
|
3
|
+
*
|
|
4
|
+
* Built from {@link TOOL_SERVER_INTEGRATIONS}. Each property documents the
|
|
5
|
+
* provider, the tool names accepted by `includeTools` / `excludeTools`, and the
|
|
6
|
+
* shared {@link ToolServerConnectorConfig} options. Hover docs live here so IDE
|
|
7
|
+
* autocomplete on `connectors.gmail` (etc.) stays useful.
|
|
8
|
+
*
|
|
9
|
+
* GitHub and Slack are first-class connectors (sandbox / Events / messaging) and
|
|
10
|
+
* are intentionally omitted from this interface — see the `connectors` namespace.
|
|
11
|
+
*/
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=connectors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connectors.js","sourceRoot":"","sources":["../../../src/connectors/toolserver/connectors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG"}
|
|
@@ -32,54 +32,78 @@
|
|
|
32
32
|
* behind it has no subject yet, and has to borrow an agent's shared connection
|
|
33
33
|
* via `MDA_TOOLSERVER_AGENT_ID` — see the loader for why that is an env var.
|
|
34
34
|
*
|
|
35
|
-
* Per-actor
|
|
36
|
-
*
|
|
37
|
-
*
|
|
35
|
+
* Per-actor Fleet vault subjects: declaring a Fleet OAuth integration connector
|
|
36
|
+
* (e.g. `connectors.gmail`, `connectors.googleSheets`) on a user-scoped identity
|
|
37
|
+
* deployment mounts Connect-with-X automatically (unioned scopes) and routes
|
|
38
|
+
* toolserver calls with a derived `?agent_id=` at invoke time. Integrations live
|
|
39
|
+
* in {@link ./integrations.ts}.
|
|
38
40
|
*/
|
|
39
|
-
|
|
41
|
+
export { FLEET_OAUTH_INTEGRATIONS, GOOGLE_INTEGRATION, GOOGLE_TOOLSERVER_SLUGS, LINKEDIN_INTEGRATION, LINKEDIN_TOOLSERVER_SLUGS, MICROSOFT_INTEGRATION, MICROSOFT_TOOLSERVER_SLUGS, X_INTEGRATION, X_TOOLSERVER_SLUGS, integrationConnectorKinds, integrationById, integrationForSlug, googleConnectorKinds, googleScopesForConnectorKinds, hasIntegrationToolServerConnector, hasGoogleToolServerConnector, hasLinkedInToolServerConnector, hasMicrosoftToolServerConnector, hasXToolServerConnector, isFleetOAuthSlug, isGoogleToolServerSlug, isLinkedInToolServerSlug, isMicrosoftToolServerSlug, isXToolServerSlug, linkedinConnectorKinds, linkedinScopesForConnectorKinds, microsoftConnectorKinds, microsoftScopesForConnectorKinds, xConnectorKinds, xScopesForConnectorKinds, readIntegrationProviderSlug, readGoogleProviderSlug, readLinkedInProviderSlug, readMicrosoftProviderSlug, readXProviderSlug, scopesForIntegrationConnectorKinds, type FleetOAuthIntegration, type GoogleToolServerSlug, type LinkedInToolServerSlug, type MicrosoftToolServerSlug, type XToolServerSlug, } from "./integrations.js";
|
|
42
|
+
import type { ZodRawShape, ZodType } from "zod";
|
|
40
43
|
import type { Connector } from "../../runtime/connector.js";
|
|
41
|
-
import type
|
|
42
|
-
import { type
|
|
43
|
-
|
|
44
|
-
export
|
|
44
|
+
import { type ToolSelection, type ToolSelectionConnectorConfig } from "../tool-selection.js";
|
|
45
|
+
import { type ToolServerSlug } from "./catalog.js";
|
|
46
|
+
import type { ToolServerConnectors } from "./connectors.js";
|
|
47
|
+
export { GITHUB_SLUG, SLACK_SLUG, STANDALONE_TOOL_SERVER_INTEGRATIONS, TOOL_SERVER_INTEGRATIONS, integrationForFactory, } from "./catalog.js";
|
|
48
|
+
export type { ToolServerFactoryName, ToolServerIntegration, ToolServerIntegrationEntry, ToolServerSlug, ToolsForFactory, } from "./catalog.js";
|
|
49
|
+
export type { ToolServerConnectorFactoryFor, ToolServerConnectors, } from "./connectors.js";
|
|
45
50
|
/**
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
* `includeTools` selects none of them, which is how a connector declared for
|
|
50
|
-
* something other than its tools — `connectors.github` cloning a repository —
|
|
51
|
-
* says so; the gateway is then never called.
|
|
51
|
+
* @deprecated Prefer {@link ToolSelection}. Kept so existing
|
|
52
|
+
* `import type { ToolServerToolSelection } from "managed-deepagents"` keeps
|
|
53
|
+
* compiling after the shared tool-selection rename.
|
|
52
54
|
*/
|
|
53
|
-
export type ToolServerToolSelection = ToolSelection
|
|
55
|
+
export type ToolServerToolSelection<TTool extends string = string> = ToolSelection<TTool>;
|
|
54
56
|
/**
|
|
55
57
|
* Configuration accepted by every `connectors.<integration>` factory.
|
|
56
58
|
*
|
|
57
|
-
*
|
|
58
|
-
* for one. How to reach LangSmith and whose credentials to
|
|
59
|
-
* deployment — see the module docs.
|
|
59
|
+
* Alias of {@link ToolSelectionConnectorConfig}: which tools the agent gets and
|
|
60
|
+
* how long it waits for one. How to reach LangSmith and whose credentials to
|
|
61
|
+
* use come from the deployment — see the module docs.
|
|
62
|
+
*
|
|
63
|
+
* When `TTool` is a catalog tool-name union (via {@link ToolsForFactory}),
|
|
64
|
+
* `includeTools` / `excludeTools` autocomplete the integration's tools.
|
|
65
|
+
* Omitting both means every tool the integration publishes; an empty
|
|
66
|
+
* `includeTools` selects none (e.g. `connectors.github` used only for checkout).
|
|
60
67
|
*/
|
|
61
|
-
export
|
|
62
|
-
/** Timeout, in milliseconds, for each tool call. */
|
|
63
|
-
defaultToolTimeout?: number;
|
|
64
|
-
}
|
|
68
|
+
export type ToolServerConnectorConfig<TTool extends string = string> = ToolSelectionConnectorConfig<TTool>;
|
|
65
69
|
/**
|
|
66
70
|
* A declared tool server integration. Branded as a managed {@link Connector}
|
|
67
71
|
* whose `tools` hook loads the integration's tools at runtime, and whose `kind`
|
|
68
72
|
* is the integration's wire slug.
|
|
69
73
|
*/
|
|
70
|
-
export type ToolServerConnector = Connector & ToolServerConnectorConfig & {
|
|
74
|
+
export type ToolServerConnector<TTool extends string = string> = Connector & ToolServerConnectorConfig<TTool> & {
|
|
71
75
|
/** The tool server slug this connector loads from. */
|
|
72
76
|
readonly kind: ToolServerSlug;
|
|
73
77
|
};
|
|
74
|
-
/**
|
|
78
|
+
/**
|
|
79
|
+
* A `connectors.<integration>` factory for a LangSmith tool-server integration
|
|
80
|
+
* (e.g. `connectors.gmail`, `connectors.linear`, `connectors.googleSheets`).
|
|
81
|
+
*
|
|
82
|
+
* Prefer the per-factory typings on {@link ToolServerConnectors} for hover docs
|
|
83
|
+
* and tool-name autocomplete. This alias is the shared untyped shape used when
|
|
84
|
+
* iterating the catalog.
|
|
85
|
+
*
|
|
86
|
+
* @param config - Optional tool selection and per-call timeout.
|
|
87
|
+
* @returns A branded connector discovered from `connectors/<name>.ts`.
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* ```ts
|
|
91
|
+
* export const connector = connectors.gmail({
|
|
92
|
+
* includeTools: ["gmail_read_emails", "gmail_draft_email"],
|
|
93
|
+
* });
|
|
94
|
+
* ```
|
|
95
|
+
*
|
|
96
|
+
* @see {@link ToolServerConnectorConfig}
|
|
97
|
+
* @see {@link ToolServerConnectors}
|
|
98
|
+
*/
|
|
75
99
|
export type ToolServerConnectorFactory = (config?: ToolServerConnectorConfig) => ToolServerConnector;
|
|
76
100
|
/**
|
|
77
101
|
* Build the argument schema for one tool server integration.
|
|
78
102
|
*
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
103
|
+
* Delegates to {@link toolSelectionConnectorSchema} so marketplace bridges and
|
|
104
|
+
* tool-server factories reject blank/duplicate names and include∩exclude
|
|
105
|
+
* overlap the same way. `extra` adds whatever the integration accepts on top
|
|
106
|
+
* of the shared options — `connectors.github`'s sandbox provisioning, say.
|
|
83
107
|
*
|
|
84
108
|
* Strict, so an option that does not exist is an error rather than a silently
|
|
85
109
|
* ignored key — which matches the Python model's `extra="forbid"`, and is what
|
|
@@ -89,7 +113,7 @@ export type ToolServerConnectorFactory = (config?: ToolServerConnectorConfig) =>
|
|
|
89
113
|
* prefaulted object as "accepts undefined, produces defaults" in one type, so
|
|
90
114
|
* the shape and the declared config interface are kept in step by review.
|
|
91
115
|
*/
|
|
92
|
-
export declare function toolServerConnectorSchema<TArgs, TInput>(extra?:
|
|
116
|
+
export declare function toolServerConnectorSchema<TArgs, TInput>(extra?: ZodRawShape): ZodType<TArgs, TInput>;
|
|
93
117
|
/**
|
|
94
118
|
* Build the `tools` hook that loads one integration's tools.
|
|
95
119
|
*
|
|
@@ -113,7 +137,8 @@ export declare function toolServerConnector(slug: ToolServerSlug, label: string)
|
|
|
113
137
|
* The `connectors` entries for the integrations that have their own factory.
|
|
114
138
|
*
|
|
115
139
|
* Built from the catalog so a new integration is one entry, not an entry plus a
|
|
116
|
-
* namespace line that can be forgotten.
|
|
140
|
+
* namespace line that can be forgotten. Typed as {@link ToolServerConnectors} so
|
|
141
|
+
* hover docs and tool-name unions surface on `connectors.<factory>`.
|
|
117
142
|
*/
|
|
118
|
-
export declare const toolServerConnectors:
|
|
143
|
+
export declare const toolServerConnectors: ToolServerConnectors;
|
|
119
144
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/connectors/toolserver/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/connectors/toolserver/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAEH,OAAO,EACL,wBAAwB,EACxB,kBAAkB,EAClB,uBAAuB,EACvB,oBAAoB,EACpB,yBAAyB,EACzB,qBAAqB,EACrB,0BAA0B,EAC1B,aAAa,EACb,kBAAkB,EAClB,yBAAyB,EACzB,eAAe,EACf,kBAAkB,EAClB,oBAAoB,EACpB,6BAA6B,EAC7B,iCAAiC,EACjC,4BAA4B,EAC5B,8BAA8B,EAC9B,+BAA+B,EAC/B,uBAAuB,EACvB,gBAAgB,EAChB,sBAAsB,EACtB,wBAAwB,EACxB,yBAAyB,EACzB,iBAAiB,EACjB,sBAAsB,EACtB,+BAA+B,EAC/B,uBAAuB,EACvB,gCAAgC,EAChC,eAAe,EACf,wBAAwB,EACxB,2BAA2B,EAC3B,sBAAsB,EACtB,wBAAwB,EACxB,yBAAyB,EACzB,iBAAiB,EACjB,kC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,CACvC,MAAM,CAAC,EAAE,yBAAyB,KAC/B,mBAAmB,CAAC;AAEzB;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,EACrD,KAAK,GAAE,WAAgB,GACtB,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,CAExB;AAED;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,cAAc,EACpB,KAAK,EAAE,MAAM,GACZ,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,yBAAyB,KAAK,OAAO,CAAC,OAAO,EAAE,CAAC,CAKvE;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,cAAc,EACpB,KAAK,EAAE,MAAM,GACZ,0BAA0B,CAU5B;AAED;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,EAAE,oBAKC,CAAC"}
|
|
@@ -32,47 +32,24 @@
|
|
|
32
32
|
* behind it has no subject yet, and has to borrow an agent's shared connection
|
|
33
33
|
* via `MDA_TOOLSERVER_AGENT_ID` — see the loader for why that is an env var.
|
|
34
34
|
*
|
|
35
|
-
* Per-actor
|
|
36
|
-
*
|
|
37
|
-
*
|
|
35
|
+
* Per-actor Fleet vault subjects: declaring a Fleet OAuth integration connector
|
|
36
|
+
* (e.g. `connectors.gmail`, `connectors.googleSheets`) on a user-scoped identity
|
|
37
|
+
* deployment mounts Connect-with-X automatically (unioned scopes) and routes
|
|
38
|
+
* toolserver calls with a derived `?agent_id=` at invoke time. Integrations live
|
|
39
|
+
* in {@link ./integrations.ts}.
|
|
38
40
|
*/
|
|
39
|
-
|
|
41
|
+
export { FLEET_OAUTH_INTEGRATIONS, GOOGLE_INTEGRATION, GOOGLE_TOOLSERVER_SLUGS, LINKEDIN_INTEGRATION, LINKEDIN_TOOLSERVER_SLUGS, MICROSOFT_INTEGRATION, MICROSOFT_TOOLSERVER_SLUGS, X_INTEGRATION, X_TOOLSERVER_SLUGS, integrationConnectorKinds, integrationById, integrationForSlug, googleConnectorKinds, googleScopesForConnectorKinds, hasIntegrationToolServerConnector, hasGoogleToolServerConnector, hasLinkedInToolServerConnector, hasMicrosoftToolServerConnector, hasXToolServerConnector, isFleetOAuthSlug, isGoogleToolServerSlug, isLinkedInToolServerSlug, isMicrosoftToolServerSlug, isXToolServerSlug, linkedinConnectorKinds, linkedinScopesForConnectorKinds, microsoftConnectorKinds, microsoftScopesForConnectorKinds, xConnectorKinds, xScopesForConnectorKinds, readIntegrationProviderSlug, readGoogleProviderSlug, readLinkedInProviderSlug, readMicrosoftProviderSlug, readXProviderSlug, scopesForIntegrationConnectorKinds, } from "./integrations.js";
|
|
40
42
|
import { defineExtension } from "../../extension.js";
|
|
43
|
+
import { toolSelectionConnectorSchema, } from "../tool-selection.js";
|
|
41
44
|
import { STANDALONE_TOOL_SERVER_INTEGRATIONS, } from "./catalog.js";
|
|
42
|
-
export { GITHUB_SLUG, SLACK_SLUG, STANDALONE_TOOL_SERVER_INTEGRATIONS, TOOL_SERVER_INTEGRATIONS, } from "./catalog.js";
|
|
43
|
-
/** Tool names, as the tool server publishes them (already provider-prefixed). */
|
|
44
|
-
const toolNames = z
|
|
45
|
-
.array(nonEmpty("tool name"))
|
|
46
|
-
.check((ctx) => {
|
|
47
|
-
const seen = new Set();
|
|
48
|
-
for (const name of ctx.value) {
|
|
49
|
-
if (seen.has(name)) {
|
|
50
|
-
ctx.issues.push({
|
|
51
|
-
code: "custom",
|
|
52
|
-
input: ctx.value,
|
|
53
|
-
message: `contains duplicate tool name "${name}"`,
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
seen.add(name);
|
|
57
|
-
}
|
|
58
|
-
})
|
|
59
|
-
.optional();
|
|
60
|
-
/** The options every tool server integration accepts. */
|
|
61
|
-
const toolServerConnectorFields = {
|
|
62
|
-
includeTools: toolNames,
|
|
63
|
-
excludeTools: toolNames,
|
|
64
|
-
defaultToolTimeout: z
|
|
65
|
-
.number("defaultToolTimeout must be a positive number")
|
|
66
|
-
.positive("defaultToolTimeout must be a positive number")
|
|
67
|
-
.optional(),
|
|
68
|
-
};
|
|
45
|
+
export { GITHUB_SLUG, SLACK_SLUG, STANDALONE_TOOL_SERVER_INTEGRATIONS, TOOL_SERVER_INTEGRATIONS, integrationForFactory, } from "./catalog.js";
|
|
69
46
|
/**
|
|
70
47
|
* Build the argument schema for one tool server integration.
|
|
71
48
|
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
49
|
+
* Delegates to {@link toolSelectionConnectorSchema} so marketplace bridges and
|
|
50
|
+
* tool-server factories reject blank/duplicate names and include∩exclude
|
|
51
|
+
* overlap the same way. `extra` adds whatever the integration accepts on top
|
|
52
|
+
* of the shared options — `connectors.github`'s sandbox provisioning, say.
|
|
76
53
|
*
|
|
77
54
|
* Strict, so an option that does not exist is an error rather than a silently
|
|
78
55
|
* ignored key — which matches the Python model's `extra="forbid"`, and is what
|
|
@@ -83,28 +60,7 @@ const toolServerConnectorFields = {
|
|
|
83
60
|
* the shape and the declared config interface are kept in step by review.
|
|
84
61
|
*/
|
|
85
62
|
export function toolServerConnectorSchema(extra = {}) {
|
|
86
|
-
return
|
|
87
|
-
.strictObject({ ...toolServerConnectorFields, ...extra })
|
|
88
|
-
.check((ctx) => {
|
|
89
|
-
const { includeTools, excludeTools } = ctx.value;
|
|
90
|
-
const overlap = (includeTools ?? []).filter((name) => (excludeTools ?? []).includes(name));
|
|
91
|
-
if (overlap.length > 0) {
|
|
92
|
-
ctx.issues.push({
|
|
93
|
-
code: "custom",
|
|
94
|
-
input: ctx.value,
|
|
95
|
-
message: `selects tool(s) in both \`includeTools\` and \`excludeTools\`: ${[
|
|
96
|
-
...new Set(overlap),
|
|
97
|
-
]
|
|
98
|
-
.sort()
|
|
99
|
-
.join(", ")}`,
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
})
|
|
103
|
-
.prefault({});
|
|
104
|
-
}
|
|
105
|
-
function nonEmpty(field) {
|
|
106
|
-
const message = `${field} must be a non-empty string`;
|
|
107
|
-
return z.string(message).refine((value) => value.trim().length > 0, message);
|
|
63
|
+
return toolSelectionConnectorSchema(extra);
|
|
108
64
|
}
|
|
109
65
|
/**
|
|
110
66
|
* Build the `tools` hook that loads one integration's tools.
|
|
@@ -141,7 +97,8 @@ export function toolServerConnector(slug, label) {
|
|
|
141
97
|
* The `connectors` entries for the integrations that have their own factory.
|
|
142
98
|
*
|
|
143
99
|
* Built from the catalog so a new integration is one entry, not an entry plus a
|
|
144
|
-
* namespace line that can be forgotten.
|
|
100
|
+
* namespace line that can be forgotten. Typed as {@link ToolServerConnectors} so
|
|
101
|
+
* hover docs and tool-name unions surface on `connectors.<factory>`.
|
|
145
102
|
*/
|
|
146
103
|
export const toolServerConnectors = Object.fromEntries(STANDALONE_TOOL_SERVER_INTEGRATIONS.map(({ slug, factory }) => [
|
|
147
104
|
factory,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/connectors/toolserver/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/connectors/toolserver/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAEH,OAAO,EACL,wBAAwB,EACxB,kBAAkB,EAClB,uBAAuB,EACvB,oBAAoB,EACpB,yBAAyB,EACzB,qBAAqB,EACrB,0BAA0B,EAC1B,aAAa,EACb,kBAAkB,EAClB,yBAAyB,EACzB,eAAe,EACf,kBAAkB,EAClB,oBAAoB,EACpB,6BAA6B,EAC7B,iCAAiC,EACjC,4BAA4B,EAC5B,8BAA8B,EAC9B,+BAA+B,EAC/B,uBAAuB,EACvB,gBAAgB,EAChB,sBAAsB,EACtB,wBAAwB,EACxB,yBAAyB,EACzB,iBAAiB,EACjB,sBAAsB,EACtB,+BAA+B,EAC/B,uBAAu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,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IAC7D,OAAO;IACP,mBAAmB,CAAC,IAAsB,EAAE,cAAc,OAAO,EAAE,CAAC;CACrE,CAAC,CACgC,CAAC"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fleet OAuth integrations for toolserver connectors that store per-actor
|
|
3
|
+
* tokens in the LangSmith vault.
|
|
4
|
+
*
|
|
5
|
+
* Adding an integration here is the main step for a new Fleet provider of the
|
|
6
|
+
* same kind (Google, Microsoft Graph, LinkedIn, X): toolserver load, Connect
|
|
7
|
+
* inference, scopes, and actor-subject enablement all read this catalog.
|
|
8
|
+
*/
|
|
9
|
+
import type { ToolServerSlug } from "./catalog.js";
|
|
10
|
+
/**
|
|
11
|
+
* A group of toolserver slugs that share one LangSmith OAuth provider and one
|
|
12
|
+
* Connect-with-X ceremony.
|
|
13
|
+
*/
|
|
14
|
+
export interface FleetOAuthIntegration {
|
|
15
|
+
/** Stable integration id (actor-subject registry key), e.g. `"google"`. */
|
|
16
|
+
readonly id: string;
|
|
17
|
+
/** Connect path segment / `connect.<id>()` name. */
|
|
18
|
+
readonly connectId: string;
|
|
19
|
+
/** Human label for agent hints ("Google", "Microsoft"). */
|
|
20
|
+
readonly displayName: string;
|
|
21
|
+
/** Default LangSmith OAuth provider slug. */
|
|
22
|
+
readonly defaultProviderSlug: string;
|
|
23
|
+
/** Optional env override for {@link defaultProviderSlug}. */
|
|
24
|
+
readonly providerSlugEnv?: string;
|
|
25
|
+
/** Toolserver wire slugs that belong to this integration. */
|
|
26
|
+
readonly toolServerSlugs: readonly ToolServerSlug[];
|
|
27
|
+
/** Scopes always included when any integration connector is present. */
|
|
28
|
+
readonly profileScopes?: readonly string[];
|
|
29
|
+
/** Extra OAuth scopes per toolserver slug. */
|
|
30
|
+
readonly scopesBySlug: Readonly<Partial<Record<ToolServerSlug, readonly string[]>>>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Built-in Fleet OAuth integrations.
|
|
34
|
+
*
|
|
35
|
+
* To adopt another provider of the same kind: add a row, wire
|
|
36
|
+
* `connect.<id>()` (usually via {@link createFleetVaultConnectProvider}), and
|
|
37
|
+
* optionally a BYO OAuth adapter. Toolserver subject routing and connect
|
|
38
|
+
* inference pick the integration up automatically.
|
|
39
|
+
*/
|
|
40
|
+
export declare const FLEET_OAUTH_INTEGRATIONS: readonly FleetOAuthIntegration[];
|
|
41
|
+
export declare function integrationById(id: string): FleetOAuthIntegration | undefined;
|
|
42
|
+
export declare function integrationForSlug(slug: string | undefined): FleetOAuthIntegration | undefined;
|
|
43
|
+
export declare function isFleetOAuthSlug(slug: string | undefined): boolean;
|
|
44
|
+
/** Toolserver slugs for `integration` that appear in `kinds`. */
|
|
45
|
+
export declare function integrationConnectorKinds(integration: FleetOAuthIntegration, kinds: readonly (string | undefined)[] | undefined): string[];
|
|
46
|
+
export declare function hasIntegrationToolServerConnector(integration: FleetOAuthIntegration, kinds: readonly (string | undefined)[] | undefined): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Union of OAuth scopes for the given connector kinds in `integration`.
|
|
49
|
+
*
|
|
50
|
+
* Includes {@link FleetOAuthIntegration.profileScopes} when at least one
|
|
51
|
+
* integration connector is present.
|
|
52
|
+
*/
|
|
53
|
+
export declare function scopesForIntegrationConnectorKinds(integration: FleetOAuthIntegration, kinds: readonly (string | undefined)[] | undefined): string[];
|
|
54
|
+
export declare function readIntegrationProviderSlug(integration: FleetOAuthIntegration, env?: NodeJS.ProcessEnv): string;
|
|
55
|
+
/** Google integration convenience — same UUID namespace / slug set as before. */
|
|
56
|
+
export declare const GOOGLE_INTEGRATION: FleetOAuthIntegration;
|
|
57
|
+
export declare const GOOGLE_TOOLSERVER_SLUGS: readonly ("apollo" | "ashby" | "base" | "exa" | "excel" | "github" | "gmail" | "google_bigquery" | "google_calendar" | "google_docs" | "google_drive" | "google_meet" | "google_sheets" | "google_slides" | "linear" | "linkedin" | "outlook" | "powerpoint" | "pylon" | "salesforce" | "sharepoint" | "slack" | "tavily" | "teams" | "word" | "x_com")[];
|
|
58
|
+
export type GoogleToolServerSlug = (typeof GOOGLE_TOOLSERVER_SLUGS)[number];
|
|
59
|
+
export declare function isGoogleToolServerSlug(slug: string | undefined): slug is GoogleToolServerSlug;
|
|
60
|
+
export declare function googleConnectorKinds(kinds: readonly (string | undefined)[] | undefined): GoogleToolServerSlug[];
|
|
61
|
+
export declare function googleScopesForConnectorKinds(kinds: readonly (string | undefined)[] | undefined): string[];
|
|
62
|
+
export declare function hasGoogleToolServerConnector(kinds: readonly (string | undefined)[] | undefined): boolean;
|
|
63
|
+
/** Env name for the Google Fleet provider slug. */
|
|
64
|
+
export declare const MDA_GOOGLE_OAUTH_PROVIDER_ENV = "MDA_GOOGLE_OAUTH_PROVIDER";
|
|
65
|
+
export declare const DEFAULT_GOOGLE_PROVIDER_SLUG: string;
|
|
66
|
+
export declare function readGoogleProviderSlug(env?: NodeJS.ProcessEnv): string;
|
|
67
|
+
/** Microsoft Graph integration convenience helpers. */
|
|
68
|
+
export declare const MICROSOFT_INTEGRATION: FleetOAuthIntegration;
|
|
69
|
+
export declare const MICROSOFT_TOOLSERVER_SLUGS: readonly ("apollo" | "ashby" | "base" | "exa" | "excel" | "github" | "gmail" | "google_bigquery" | "google_calendar" | "google_docs" | "google_drive" | "google_meet" | "google_sheets" | "google_slides" | "linear" | "linkedin" | "outlook" | "powerpoint" | "pylon" | "salesforce" | "sharepoint" | "slack" | "tavily" | "teams" | "word" | "x_com")[];
|
|
70
|
+
export type MicrosoftToolServerSlug = (typeof MICROSOFT_TOOLSERVER_SLUGS)[number];
|
|
71
|
+
export declare function isMicrosoftToolServerSlug(slug: string | undefined): slug is MicrosoftToolServerSlug;
|
|
72
|
+
export declare function microsoftConnectorKinds(kinds: readonly (string | undefined)[] | undefined): MicrosoftToolServerSlug[];
|
|
73
|
+
export declare function microsoftScopesForConnectorKinds(kinds: readonly (string | undefined)[] | undefined): string[];
|
|
74
|
+
export declare function hasMicrosoftToolServerConnector(kinds: readonly (string | undefined)[] | undefined): boolean;
|
|
75
|
+
/** Env name for the Microsoft Fleet provider slug. */
|
|
76
|
+
export declare const MDA_MICROSOFT_OAUTH_PROVIDER_ENV = "MDA_MICROSOFT_OAUTH_PROVIDER";
|
|
77
|
+
export declare const DEFAULT_MICROSOFT_PROVIDER_SLUG: string;
|
|
78
|
+
export declare function readMicrosoftProviderSlug(env?: NodeJS.ProcessEnv): string;
|
|
79
|
+
/** LinkedIn integration convenience helpers. */
|
|
80
|
+
export declare const LINKEDIN_INTEGRATION: FleetOAuthIntegration;
|
|
81
|
+
export declare const LINKEDIN_TOOLSERVER_SLUGS: readonly ("apollo" | "ashby" | "base" | "exa" | "excel" | "github" | "gmail" | "google_bigquery" | "google_calendar" | "google_docs" | "google_drive" | "google_meet" | "google_sheets" | "google_slides" | "linear" | "linkedin" | "outlook" | "powerpoint" | "pylon" | "salesforce" | "sharepoint" | "slack" | "tavily" | "teams" | "word" | "x_com")[];
|
|
82
|
+
export type LinkedInToolServerSlug = (typeof LINKEDIN_TOOLSERVER_SLUGS)[number];
|
|
83
|
+
export declare function isLinkedInToolServerSlug(slug: string | undefined): slug is LinkedInToolServerSlug;
|
|
84
|
+
export declare function linkedinConnectorKinds(kinds: readonly (string | undefined)[] | undefined): LinkedInToolServerSlug[];
|
|
85
|
+
export declare function linkedinScopesForConnectorKinds(kinds: readonly (string | undefined)[] | undefined): string[];
|
|
86
|
+
export declare function hasLinkedInToolServerConnector(kinds: readonly (string | undefined)[] | undefined): boolean;
|
|
87
|
+
/** Env name for the LinkedIn Fleet provider slug. */
|
|
88
|
+
export declare const MDA_LINKEDIN_OAUTH_PROVIDER_ENV = "MDA_LINKEDIN_OAUTH_PROVIDER";
|
|
89
|
+
export declare const DEFAULT_LINKEDIN_PROVIDER_SLUG: string;
|
|
90
|
+
export declare function readLinkedInProviderSlug(env?: NodeJS.ProcessEnv): string;
|
|
91
|
+
/** X (Twitter) integration convenience helpers. */
|
|
92
|
+
export declare const X_INTEGRATION: FleetOAuthIntegration;
|
|
93
|
+
export declare const X_TOOLSERVER_SLUGS: readonly ("apollo" | "ashby" | "base" | "exa" | "excel" | "github" | "gmail" | "google_bigquery" | "google_calendar" | "google_docs" | "google_drive" | "google_meet" | "google_sheets" | "google_slides" | "linear" | "linkedin" | "outlook" | "powerpoint" | "pylon" | "salesforce" | "sharepoint" | "slack" | "tavily" | "teams" | "word" | "x_com")[];
|
|
94
|
+
export type XToolServerSlug = (typeof X_TOOLSERVER_SLUGS)[number];
|
|
95
|
+
export declare function isXToolServerSlug(slug: string | undefined): slug is XToolServerSlug;
|
|
96
|
+
export declare function xConnectorKinds(kinds: readonly (string | undefined)[] | undefined): XToolServerSlug[];
|
|
97
|
+
export declare function xScopesForConnectorKinds(kinds: readonly (string | undefined)[] | undefined): string[];
|
|
98
|
+
export declare function hasXToolServerConnector(kinds: readonly (string | undefined)[] | undefined): boolean;
|
|
99
|
+
/** Env name for the X Fleet provider slug. */
|
|
100
|
+
export declare const MDA_X_OAUTH_PROVIDER_ENV = "MDA_X_OAUTH_PROVIDER";
|
|
101
|
+
export declare const DEFAULT_X_PROVIDER_SLUG: string;
|
|
102
|
+
export declare function readXProviderSlug(env?: NodeJS.ProcessEnv): string;
|
|
103
|
+
//# sourceMappingURL=integrations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integrations.d.ts","sourceRoot":"","sources":["../../../src/connectors/toolserver/integrations.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,oDAAoD;IACpD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,2DAA2D;IAC3D,QAAQ,CAAC,WAAW,EAAE,MAA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