@zackbart/connecta 0.27.0 → 0.28.1
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/AGENTS.md +6 -6
- package/CHANGELOG.md +229 -0
- package/README.md +23 -24
- package/bin/connecta.mjs +1 -5
- package/dist/activity.d.ts +5 -4
- package/dist/activity.js +1 -10
- package/dist/artifacts/connector.js +1 -1
- package/dist/artifacts/json.js +10 -0
- package/dist/artifacts/operations.js +1 -1
- package/dist/artifacts/validate.js +1 -2
- package/dist/auth/downstream-oauth.js +147 -28
- package/dist/auth/static-oauth.js +504 -0
- package/dist/catalog-service.js +1 -1
- package/dist/connectors/api-connector.d.ts +168 -0
- package/dist/connectors/api-connector.js +127 -0
- package/dist/connectors/api.d.ts +8 -71
- package/dist/connectors/api.js +10 -99
- package/dist/connectors/guarded-fetch.js +37 -3
- package/dist/connectors/remote-mcp.js +7 -32
- package/dist/execute.js +92 -368
- package/dist/executors/quickjs.js +1 -1
- package/dist/exempt-writes.js +162 -0
- package/dist/index.d.ts +13 -32
- package/dist/index.js +14 -47
- package/dist/invocation.js +6 -19
- package/dist/meta-tools.js +1 -2
- package/dist/oauth-partition.js +17 -0
- package/dist/operator-ui/generated.js +1 -1
- package/dist/operator-ui/model.d.ts +3 -3
- package/dist/operator-ui/view.js +6 -4
- package/dist/providers/basecamp.d.ts +65 -0
- package/dist/providers/basecamp.js +445 -0
- package/dist/providers/breeze.d.ts +34 -0
- package/dist/providers/breeze.js +1402 -0
- package/dist/providers/ccb.d.ts +103 -0
- package/dist/providers/ccb.js +1570 -0
- package/dist/providers/cloudflare.js +1 -1
- package/dist/providers/linear.js +1 -1
- package/dist/providers/mixpanel.js +1 -1
- package/dist/providers/notion.js +1 -1
- package/dist/providers/overflow.d.ts +60 -0
- package/dist/providers/overflow.js +1572 -0
- package/dist/providers/planning-center.d.ts +59 -0
- package/dist/providers/planning-center.js +2039 -0
- package/dist/providers/revenuecat.js +1 -1
- package/dist/providers/stripe.js +1 -1
- package/dist/providers/tithely.d.ts +49 -0
- package/dist/providers/tithely.js +1034 -0
- package/dist/providers/vercel.js +1 -1
- package/dist/routes/mcp.js +5 -21
- package/dist/routes/oauth.js +29 -3
- package/dist/routes/shared.d.ts +1 -6
- package/dist/server.js +0 -4
- package/dist/skills.js +8 -23
- package/dist/tool-safety.d.ts +1 -1
- package/dist/tool-safety.js +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/documentation/architecture.md +15 -17
- package/documentation/auth.md +120 -6
- package/documentation/code-mode.md +91 -194
- package/documentation/meta-tools.md +38 -41
- package/ethos.md +8 -9
- package/examples/worker/README.md +10 -14
- package/examples/worker/src/d1-activity-row.ts +4 -1
- package/examples/worker/src/index.ts +1 -9
- package/package.json +26 -2
- package/templates/node/AGENTS.md +4 -3
- package/templates/node/README.md +3 -4
- package/templates/node/package.json +1 -1
- package/dist/resumable.js +0 -1323
- package/dist/run-journal.js +0 -347
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { remoteMcp, withCredentialDefaults, } from "../connectors/remote-mcp.js";
|
|
2
2
|
import { vettedCatalog, withVettedCatalog } from "../catalog-drift.js";
|
|
3
|
-
import { defined } from "../connectors/api.js";
|
|
3
|
+
import { defined } from "../connectors/api-connector.js";
|
|
4
4
|
/** RevenueCat publishes one hosted MCP endpoint, streamable HTTP. */
|
|
5
5
|
export const REVENUECAT_MCP_ENDPOINT = "https://mcp.revenuecat.ai/mcp";
|
|
6
6
|
/**
|
package/dist/providers/stripe.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { remoteMcp, withCredentialDefaults, } from "../connectors/remote-mcp.js";
|
|
2
2
|
import { vettedCatalog, withVettedCatalog } from "../catalog-drift.js";
|
|
3
|
-
import { defined } from "../connectors/api.js";
|
|
3
|
+
import { defined } from "../connectors/api-connector.js";
|
|
4
4
|
/** Stripe publishes one hosted MCP endpoint for every account and mode. */
|
|
5
5
|
export const STRIPE_MCP_ENDPOINT = "https://mcp.stripe.com/";
|
|
6
6
|
/**
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { Connector, ConnectorCallAdmissionPolicy } from "../types.js";
|
|
2
|
+
/** Tithe.ly's two published v1 endpoints, one per environment. */
|
|
3
|
+
export declare const TITHELY_API_BASE_URLS: {
|
|
4
|
+
readonly live: "https://tithe.ly/api/v1";
|
|
5
|
+
readonly test: "https://tithelydev.com/api/v1";
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* The connection's environment. Required, with no default.
|
|
9
|
+
*
|
|
10
|
+
* P4 asks for the safest honest default. Tithe.ly publishes two endpoints, but
|
|
11
|
+
* the environment really rides the key pair: test keys work only against
|
|
12
|
+
* tithelydev.com and live keys only against tithe.ly, and nothing in a
|
|
13
|
+
* `pub_…`/`pri_…` pair says which it is — so construction cannot catch a
|
|
14
|
+
* contradiction the way Stripe's `sk_live_`/`sk_test_` prefixes allow. A
|
|
15
|
+
* default of `"test"` would be safe for money and wrong for the job: the
|
|
16
|
+
* realistic deployment reads live giving data, and it would boot cleanly and
|
|
17
|
+
* fail every call with an authentication error that reads like a bad key. A
|
|
18
|
+
* default of `"live"` would point an unconsidered configuration at real
|
|
19
|
+
* donors. Neither failure belongs at runtime, so the choice is the operator's,
|
|
20
|
+
* made in code where review sees it, and a missing one throws at construction.
|
|
21
|
+
*/
|
|
22
|
+
export type TithelyEnvironment = keyof typeof TITHELY_API_BASE_URLS;
|
|
23
|
+
/** Connecta's maintained hand-written Tithe.ly giving surface. */
|
|
24
|
+
export interface TithelyOptions {
|
|
25
|
+
/** Which Tithe.ly account this connection reads, and for whom. */
|
|
26
|
+
purpose: string;
|
|
27
|
+
/** `"live"` (tithe.ly) or `"test"` (tithelydev.com). Required; see {@link TithelyEnvironment}. */
|
|
28
|
+
environment: TithelyEnvironment;
|
|
29
|
+
/** Human-readable display name; the default names the environment. */
|
|
30
|
+
title?: string;
|
|
31
|
+
/** Account-specific conventions appended to the maintained provider guide. */
|
|
32
|
+
instructions?: string;
|
|
33
|
+
/** Downstream auth ownership. Defaults to one shared deployment grant. */
|
|
34
|
+
authScope?: "shared" | "personal";
|
|
35
|
+
/**
|
|
36
|
+
* Optional per-runtime call-admission policy. Tithe.ly publishes no rate
|
|
37
|
+
* limit, so none is declared by default (P12); supply one here if the
|
|
38
|
+
* account has a limit you know.
|
|
39
|
+
*/
|
|
40
|
+
callAdmission?: ConnectorCallAdmissionPolicy;
|
|
41
|
+
/** Connector-specific inline result limit; omit to inherit the deployment. */
|
|
42
|
+
maxResultBytes?: number;
|
|
43
|
+
/** Default page size for list tools. Defaults to 25; this connector's cap is 99. */
|
|
44
|
+
defaultPageSize?: number;
|
|
45
|
+
/** API base override for a proxy or test double; replaces the environment's endpoint. */
|
|
46
|
+
baseUrl?: string;
|
|
47
|
+
}
|
|
48
|
+
/** A maintained Tithe.ly giving connection over the v1 REST API. */
|
|
49
|
+
export declare function tithely(id: string, options: TithelyOptions): Connector;
|