@zackbart/connecta 0.12.2 → 0.14.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/CHANGELOG.md +324 -0
- package/README.md +4 -1
- package/dist/catalog-service.d.ts +41 -0
- package/dist/catalog-service.d.ts.map +1 -1
- package/dist/catalog-service.js +127 -11
- package/dist/catalog-service.js.map +1 -1
- package/dist/connectors/api.d.ts +5 -4
- package/dist/connectors/api.d.ts.map +1 -1
- package/dist/connectors/api.js +5 -1
- package/dist/connectors/api.js.map +1 -1
- package/dist/connectors/remote-mcp.d.ts +5 -4
- package/dist/connectors/remote-mcp.d.ts.map +1 -1
- package/dist/connectors/remote-mcp.js.map +1 -1
- package/dist/execute.d.ts.map +1 -1
- package/dist/execute.js +12 -10
- package/dist/execute.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/meta-tools.d.ts.map +1 -1
- package/dist/meta-tools.js +5 -4
- package/dist/meta-tools.js.map +1 -1
- package/dist/providers/cloudflare.d.ts +53 -0
- package/dist/providers/cloudflare.d.ts.map +1 -0
- package/dist/providers/cloudflare.js +1385 -0
- package/dist/providers/cloudflare.js.map +1 -0
- package/dist/providers/linear.d.ts +44 -0
- package/dist/providers/linear.d.ts.map +1 -0
- package/dist/providers/linear.js +243 -0
- package/dist/providers/linear.js.map +1 -0
- package/dist/providers/mixpanel.d.ts +21 -0
- package/dist/providers/mixpanel.d.ts.map +1 -0
- package/dist/providers/mixpanel.js +191 -0
- package/dist/providers/mixpanel.js.map +1 -0
- package/dist/providers/notion.d.ts +39 -0
- package/dist/providers/notion.d.ts.map +1 -0
- package/dist/providers/notion.js +1625 -0
- package/dist/providers/notion.js.map +1 -0
- package/dist/providers/stripe.d.ts +37 -0
- package/dist/providers/stripe.d.ts.map +1 -0
- package/dist/providers/stripe.js +232 -0
- package/dist/providers/stripe.js.map +1 -0
- package/dist/skills.d.ts +7 -9
- package/dist/skills.d.ts.map +1 -1
- package/dist/skills.js +58 -24
- package/dist/skills.js.map +1 -1
- package/dist/types.d.ts +26 -6
- package/dist/types.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/documentation/cloudflare.md +268 -0
- package/documentation/code-mode.md +6 -6
- package/documentation/connectors.md +122 -4
- package/documentation/linear.md +144 -0
- package/documentation/meta-tools.md +91 -8
- package/documentation/mixpanel.md +77 -0
- package/documentation/notion.md +233 -0
- package/documentation/stripe.md +202 -0
- package/ethos.md +8 -3
- package/package.json +21 -1
- package/src/catalog-service.ts +174 -10
- package/src/connectors/api.ts +10 -4
- package/src/connectors/remote-mcp.ts +5 -3
- package/src/execute.ts +18 -10
- package/src/index.ts +1 -0
- package/src/meta-tools.ts +10 -4
- package/src/providers/cloudflare.ts +1696 -0
- package/src/providers/linear.ts +301 -0
- package/src/providers/mixpanel.ts +228 -0
- package/src/providers/notion.ts +1879 -0
- package/src/providers/stripe.ts +306 -0
- package/src/skills.ts +64 -23
- package/src/types.ts +27 -6
- package/src/version.ts +1 -1
- package/templates/node/package.json +1 -1
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { Connector, ConnectorCredentialConfig } from "../types.js";
|
|
2
|
+
/** Cloudflare's v4 REST base. Override only for a proxy or a test double. */
|
|
3
|
+
export declare const CLOUDFLARE_API_BASE = "https://api.cloudflare.com/client/v4";
|
|
4
|
+
/**
|
|
5
|
+
* Every DNS record type the records API accepts, for filtering a list.
|
|
6
|
+
* Enumerated in the schema so an agent picks a legal type without reading
|
|
7
|
+
* Cloudflare's documentation.
|
|
8
|
+
*/
|
|
9
|
+
export declare const CLOUDFLARE_DNS_RECORD_TYPES: readonly ["A", "AAAA", "CAA", "CERT", "CNAME", "DNSKEY", "DS", "HTTPS", "LOC", "MX", "NAPTR", "NS", "OPENPGPKEY", "PTR", "SMIMEA", "SRV", "SSHFP", "SVCB", "TLSA", "TXT", "URI"];
|
|
10
|
+
/**
|
|
11
|
+
* The record types whose value is a single `content` string — the eight this
|
|
12
|
+
* connection can create and update.
|
|
13
|
+
*
|
|
14
|
+
* The other thirteen (CAA, CERT, DNSKEY, DS, HTTPS, LOC, NAPTR, SMIMEA, SRV,
|
|
15
|
+
* SSHFP, SVCB, TLSA, URI) carry a per-type structured `data` object instead,
|
|
16
|
+
* each with its own field set. Accepting them here would mean either a
|
|
17
|
+
* free-form `data` passthrough — exactly the untyped `{}` this connection
|
|
18
|
+
* exists to avoid — or thirteen more hand-written schemas for record types
|
|
19
|
+
* that are rare in the day-to-day work this surface is for. They remain fully
|
|
20
|
+
* readable and filterable; only creating and updating them is out of scope.
|
|
21
|
+
*/
|
|
22
|
+
export declare const CLOUDFLARE_CONTENT_DNS_RECORD_TYPES: readonly ["A", "AAAA", "CNAME", "MX", "NS", "OPENPGPKEY", "PTR", "TXT"];
|
|
23
|
+
export interface CloudflareOptions {
|
|
24
|
+
/** Human-readable display name; defaults to "Cloudflare". */
|
|
25
|
+
title?: string;
|
|
26
|
+
/** Which account/estate this connection administers, and for whom. */
|
|
27
|
+
purpose: string;
|
|
28
|
+
/**
|
|
29
|
+
* Default account id for account-scoped tools. When set, `accountId` becomes
|
|
30
|
+
* an optional argument; when omitted, agents must pass one and can find it
|
|
31
|
+
* with `list_accounts`.
|
|
32
|
+
*/
|
|
33
|
+
accountId?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Default zone id for zone-scoped tools. When set, `zoneId` becomes an
|
|
36
|
+
* optional argument; when omitted, agents must pass one and can find it with
|
|
37
|
+
* `list_zones`.
|
|
38
|
+
*/
|
|
39
|
+
zoneId?: string;
|
|
40
|
+
/** API base override for a proxy or a test double. Defaults to the v4 API. */
|
|
41
|
+
baseUrl?: string;
|
|
42
|
+
/** Credential presentation override; the token is always operator-managed. */
|
|
43
|
+
credential?: ConnectorCredentialConfig;
|
|
44
|
+
/** Account-specific conventions appended to the maintained provider guide. */
|
|
45
|
+
instructions?: string;
|
|
46
|
+
/** Connector-specific inline result limit; omit to inherit the deployment. */
|
|
47
|
+
maxResultBytes?: number;
|
|
48
|
+
/** Simultaneous downstream calls. Defaults to 6. */
|
|
49
|
+
maxConcurrency?: number;
|
|
50
|
+
}
|
|
51
|
+
/** A maintained Cloudflare REST API connection. */
|
|
52
|
+
export declare function cloudflare(id: string, options: CloudflareOptions): Connector;
|
|
53
|
+
//# sourceMappingURL=cloudflare.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cloudflare.d.ts","sourceRoot":"","sources":["../../src/providers/cloudflare.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EACV,SAAS,EAGT,yBAAyB,EAE1B,MAAM,aAAa,CAAC;AAErB,6EAA6E;AAC7E,eAAO,MAAM,mBAAmB,yCAAyC,CAAC;AAE1E;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,kLAsB9B,CAAC;AAEX;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mCAAmC,yEAStC,CAAC;AAEX,MAAM,WAAW,iBAAiB;IAChC,6DAA6D;IAC7D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sEAAsE;IACtE,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8EAA8E;IAC9E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,8EAA8E;IAC9E,UAAU,CAAC,EAAE,yBAAyB,CAAC;IACvC,8EAA8E;IAC9E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,8EAA8E;IAC9E,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oDAAoD;IACpD,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAggDD,mDAAmD;AACnD,wBAAgB,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,GAAG,SAAS,CAiD5E"}
|