@tool-bridge/server 0.24.0 → 0.26.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/dist/admin.js +164 -5
- package/dist/{airtable-Z6KEL3MA.js → airtable-JTSZEDE6.js} +6 -6
- package/dist/{alt_text_generator_ai-RM2GHSNM.js → alt_text_generator_ai-L2PD7KOZ.js} +5 -5
- package/dist/{amap-YEJLGIKY.js → amap-3ADNY5XP.js} +5 -5
- package/dist/{anthropic-62M4MUVQ.js → anthropic-DBCGFDPX.js} +6 -6
- package/dist/{apify-AHRNDBCB.js → apify-RKZ7J5QB.js} +6 -6
- package/dist/{brave_search-JAHWOMQC.js → brave_search-ILUZ45IV.js} +6 -6
- package/dist/{chunk-7MUNQNXG.js → chunk-4WDQGEOC.js} +1732 -1358
- package/dist/{chunk-TH3H5YAG.js → chunk-6W5WJCKR.js} +40 -3
- package/dist/{chunk-SU6Q4RAY.js → chunk-7M4PPWV2.js} +2 -2
- package/dist/{chunk-LD7KQRQ3.js → chunk-CIPTWB3V.js} +4914 -18218
- package/dist/{chunk-NG4C7YB3.js → chunk-KZYWJWBG.js} +3 -3
- package/dist/{chunk-FZV7CF7L.js → chunk-MJHL4ZYP.js} +3 -3
- package/dist/{chunk-GQ4O7NK5.js → chunk-NXLE6ZEK.js} +1 -1
- package/dist/{chunk-U2UGFSOX.js → chunk-REAPBHVJ.js} +4 -2
- package/dist/{circleci-UJUYBIAO.js → circleci-XW77D4AC.js} +6 -6
- package/dist/{clerk-FCFM3WJK.js → clerk-UUASBPMO.js} +6 -6
- package/dist/{cohere-OTSYSMPC.js → cohere-DSBCGIWN.js} +6 -6
- package/dist/{confluence-LPANSCGT.js → confluence-QZN4ZNFS.js} +6 -6
- package/dist/{convertapi-AJZOVUHT.js → convertapi-RVMUJC7F.js} +4 -4
- package/dist/{currencyapi-HGK5FSGO.js → currencyapi-JVBN3IVC.js} +6 -6
- package/dist/{deepseek-7HMTFJRV.js → deepseek-EEK5BFEJ.js} +6 -6
- package/dist/{docker_hub-FCNVKJZW.js → docker_hub-M5434ZVW.js} +5 -5
- package/dist/{dropbox-2XVKCQZE.js → dropbox-2UTG2VWY.js} +6 -6
- package/dist/{dub-CTUKPX2A.js → dub-5VJOLUW5.js} +6 -6
- package/dist/{e2b-ULEWTRKI.js → e2b-26BKS6L2.js} +6 -6
- package/dist/{exa-QENFV3AU.js → exa-MZ2EJ2H5.js} +6 -6
- package/dist/{fal_ai-TQYUBBAF.js → fal_ai-3G4YBQFR.js} +6 -6
- package/dist/{feishu-OYCWDSHD.js → feishu-EMQOUPVQ.js} +3 -3
- package/dist/{feishu_custom_bot-VYQ7A3PU.js → feishu_custom_bot-RTVG2TKP.js} +4 -4
- package/dist/{figma-5DLOKAQQ.js → figma-MPMS3NGY.js} +6 -6
- package/dist/{firehydrant-X4MGP2OI.js → firehydrant-A343GHOS.js} +6 -6
- package/dist/{fixer-LMIWM3ZX.js → fixer-RM6NGEBM.js} +5 -5
- package/dist/{fly-J5HN5L2I.js → fly-HFWFX2C2.js} +6 -6
- package/dist/{front-E3SMBQW3.js → front-A3W4LAMS.js} +6 -6
- package/dist/{geocodio-AOINRPLA.js → geocodio-UYKOKRCM.js} +5 -5
- package/dist/{ghost-E4CBGZWJ.js → ghost-5FLMMUSG.js} +5 -5
- package/dist/{github-PGR6U3FC.js → github-FEAY6DJV.js} +6 -6
- package/dist/github_events-MTUZEFQR.js +78 -0
- package/dist/{gmail-XNQHMQ6F.js → gmail-PQCOIDJ4.js} +6 -6
- package/dist/{googlecalendar-RE6DGG7L.js → googlecalendar-5TZO2L6R.js} +6 -6
- package/dist/{googledocs-CX2BZDQH.js → googledocs-ESF6RR77.js} +4 -4
- package/dist/{grafana-GX75ZA5X.js → grafana-HEGAJ6AT.js} +6 -6
- package/dist/{graphhopper-XMUYLWHS.js → graphhopper-ZTWZ3RBW.js} +5 -5
- package/dist/index.d.ts +321 -5
- package/dist/index.js +7 -5
- package/dist/{ip2proxy-ZGIRBAG5.js → ip2proxy-DARIAL7O.js} +5 -5
- package/dist/{ipgeolocation_io-MAP27QMO.js → ipgeolocation_io-WTUK2WUJ.js} +5 -5
- package/dist/{ipqualityscore-6IIUUAQ2.js → ipqualityscore-ORLXGKHN.js} +5 -5
- package/dist/{jina_ai-GGH77RQH.js → jina_ai-HM5H7272.js} +6 -6
- package/dist/{jira-7GPZW6HZ.js → jira-YKBW2G7F.js} +6 -6
- package/dist/{langsmith-CJXYE7WM.js → langsmith-5JAZ5TCB.js} +6 -6
- package/dist/{lemlist-OYPOX6GN.js → lemlist-SMTBGABN.js} +6 -6
- package/dist/{linear-TPQ6X4XZ.js → linear-AUBYHL2E.js} +4 -4
- package/dist/{logsnag-HT2PRLIV.js → logsnag-76AUREA3.js} +6 -6
- package/dist/main.js +6 -5
- package/dist/{mattermost-6IYTWTM5.js → mattermost-YGIA3LM6.js} +6 -6
- package/dist/{mem0-7AVGBGOX.js → mem0-FFYLJV7H.js} +6 -6
- package/dist/{memos-CTOXWZ6X.js → memos-NPTHXLDG.js} +6 -6
- package/dist/{metabase-AFJXQ5SQ.js → metabase-SP6GZPW7.js} +6 -6
- package/dist/{mistral_ai-QDKM4N3R.js → mistral_ai-CDTVOCY7.js} +6 -6
- package/dist/{mother_duck-XSKR4GVL.js → mother_duck-INFQKSRI.js} +6 -6
- package/dist/{ngrok-NQMLM24P.js → ngrok-IYTP3IMG.js} +6 -6
- package/dist/{notes-ZWMVZQWJ.js → notes-PPPMG6KW.js} +2 -2
- package/dist/{notion-6544KSMM.js → notion-YYD2MSZ3.js} +6 -6
- package/dist/{open_exchange_rates-4CLN7O2N.js → open_exchange_rates-KWW2NMFY.js} +5 -5
- package/dist/{openai-HLFGPVI5.js → openai-4OG6IUIR.js} +6 -6
- package/dist/{opengraph_io-57JDHT3M.js → opengraph_io-YXNQHFUD.js} +5 -5
- package/dist/{openrouter-WDAVB2OP.js → openrouter-MANP6GD3.js} +6 -6
- package/dist/{outline-A6MDLZVH.js → outline-UXQF6BNB.js} +6 -6
- package/dist/{paddle-WX5ULOPP.js → paddle-I45HOJBW.js} +6 -6
- package/dist/{perplexity-LYTWWWCZ.js → perplexity-BN7NZDZX.js} +6 -6
- package/dist/{pinecone-7KAF3S7U.js → pinecone-J6IXKPEX.js} +6 -6
- package/dist/{pipedrive-YQY243G7.js → pipedrive-SR26XA2N.js} +6 -6
- package/dist/{polar-A5HKXSQY.js → polar-7XONFYMC.js} +6 -6
- package/dist/{posthog-CF2LHLS4.js → posthog-XJSRQXPB.js} +6 -6
- package/dist/{postmark-W756TMJM.js → postmark-CV6NVVPS.js} +6 -6
- package/dist/{prerender-ZYM4UQ5R.js → prerender-IGKXEWQ4.js} +5 -5
- package/dist/{pubmed-QXTUQCTQ.js → pubmed-Q7TW4HEA.js} +4 -4
- package/dist/{railway-F4MOZ3LQ.js → railway-6JTEPF6F.js} +4 -4
- package/dist/{readwise-S7MF5SR5.js → readwise-6GAWUBNI.js} +6 -6
- package/dist/{render-D7EIVDUA.js → render-Z3MWJVLH.js} +6 -6
- package/dist/{replicate-ABNKPZR7.js → replicate-GB7W7CTX.js} +6 -6
- package/dist/{resend-7VJEY4KC.js → resend-HYV57C7Z.js} +6 -6
- package/dist/{rootly-UMFJOKXC.js → rootly-ZF567XW5.js} +6 -6
- package/dist/{scrapfly-UDT4KNFL.js → scrapfly-T6CHNTIR.js} +5 -5
- package/dist/{scrapingbee-XTFD54NB.js → scrapingbee-BS7C2JO4.js} +5 -5
- package/dist/{screenshot_fyi-5GTW3SFY.js → screenshot_fyi-3T3N6U4H.js} +5 -5
- package/dist/{semantic_scholar-Y6WK2MST.js → semantic_scholar-MVHTOV7Q.js} +6 -6
- package/dist/{sentry-ZFPGDA6C.js → sentry-EAAGZ3YS.js} +6 -6
- package/dist/{shodan-3SCDBOQ3.js → shodan-CITDPOT7.js} +5 -5
- package/dist/{shopify-LMTBS2I2.js → shopify-DZJWULX4.js} +6 -6
- package/dist/{stripe-4JQJ2CUG.js → stripe-22HIZNF2.js} +4 -4
- package/dist/{supabase-7HA3BEFK.js → supabase-FVN67AP2.js} +6 -6
- package/dist/{tavily-H34ZBPGC.js → tavily-VOKIWFQR.js} +6 -6
- package/dist/{telegram-CRX4YWQ3.js → telegram-ZI2RGDRZ.js} +5 -5
- package/dist/{telnyx-TIKGEU34.js → telnyx-AV3VJ75A.js} +6 -6
- package/dist/{todoist-LU563DGZ.js → todoist-CPX3Y76W.js} +6 -6
- package/dist/{trello-NTRGEROX.js → trello-ZJTAMLGT.js} +5 -5
- package/dist/{turso-EY3CNVPZ.js → turso-LU5PFWAC.js} +6 -6
- package/dist/{twilio-ICX3WRQH.js → twilio-P6UWRJQ3.js} +4 -4
- package/dist/{umami-NPMRVI3M.js → umami-7RST7UUX.js} +6 -6
- package/dist/{unsplash-TIHBZFIM.js → unsplash-EBTUJBAJ.js} +6 -6
- package/dist/{upstash_redis-2DO6EHCN.js → upstash_redis-EPQ54FP7.js} +6 -6
- package/dist/{uptimerobot-BGYOCKGI.js → uptimerobot-EJMAP6IC.js} +4 -4
- package/dist/{v2ex-GOWDPGGA.js → v2ex-ABWP4P56.js} +6 -6
- package/dist/{vercel-G33RXVBI.js → vercel-ATBO5QKA.js} +6 -6
- package/dist/{wolfram_alpha_api-IRZSMD3P.js → wolfram_alpha_api-GCO67H4Y.js} +5 -5
- package/dist/{wordpress-ATWGGUC3.js → wordpress-PWJFJYZE.js} +6 -6
- package/dist/{workos-LHJDETBX.js → workos-2LNHWQRN.js} +6 -6
- package/dist/{zhihu-IAH53YPP.js → zhihu-ZTCNBEFK.js} +6 -6
- package/package.json +7 -5
package/dist/admin.js
CHANGED
|
@@ -2,21 +2,180 @@
|
|
|
2
2
|
import {
|
|
3
3
|
BootstrapStateStore,
|
|
4
4
|
package_default
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import
|
|
5
|
+
} from "./chunk-REAPBHVJ.js";
|
|
6
|
+
import {
|
|
7
|
+
httpsReleaseUrl,
|
|
8
|
+
pluginImageSchema
|
|
9
|
+
} from "./chunk-4WDQGEOC.js";
|
|
7
10
|
import "./chunk-U67V476Y.js";
|
|
8
11
|
|
|
9
12
|
// src/admin.ts
|
|
10
|
-
import { chown, mkdir, readFile, writeFile } from "fs/promises";
|
|
13
|
+
import { chown, mkdir, readFile as readFile2, writeFile } from "fs/promises";
|
|
11
14
|
import { CreateBucketCommand, S3Client } from "@aws-sdk/client-s3";
|
|
12
15
|
import writeFileAtomic from "write-file-atomic";
|
|
13
16
|
import { randomBytes } from "crypto";
|
|
14
17
|
import { Command } from "commander";
|
|
15
18
|
import { join } from "path";
|
|
19
|
+
import pRetry2 from "p-retry";
|
|
20
|
+
|
|
21
|
+
// src/pluginRunner.ts
|
|
22
|
+
import { getRequestListener } from "@hono/node-server";
|
|
23
|
+
import { chmod, readFile } from "fs/promises";
|
|
24
|
+
import { execFile } from "child_process";
|
|
25
|
+
import { bodyLimit } from "hono/body-limit";
|
|
26
|
+
import { createHash } from "crypto";
|
|
27
|
+
import { createServer } from "http";
|
|
28
|
+
import { promisify } from "util";
|
|
16
29
|
import pRetry from "p-retry";
|
|
30
|
+
import { Hono } from "hono";
|
|
31
|
+
import { z } from "zod/v4";
|
|
32
|
+
var identity = z.strictObject({
|
|
33
|
+
id: z.string().max(128).regex(/^[A-Za-z0-9][A-Za-z0-9._-]*$/),
|
|
34
|
+
image: pluginImageSchema
|
|
35
|
+
});
|
|
36
|
+
var policySchema = z.strictObject({
|
|
37
|
+
// A dedicated bridge with operator-managed egress rules. Reject Docker's special network modes.
|
|
38
|
+
network: z.string().regex(/^tb-plugins-[a-z0-9-]+$/),
|
|
39
|
+
releases: z.array(identity.extend({
|
|
40
|
+
endpoint: z.string().transform((value) => httpsReleaseUrl(value).replace(/\/+$/, "")),
|
|
41
|
+
port: z.int().min(1024).max(65535),
|
|
42
|
+
tokenFile: z.string().startsWith("/")
|
|
43
|
+
})).min(1)
|
|
44
|
+
});
|
|
45
|
+
var exec = promisify(execFile);
|
|
46
|
+
async function docker(args, pluginToken) {
|
|
47
|
+
const host = process.env.DOCKER_HOST ?? "unix:///var/run/docker.sock";
|
|
48
|
+
if (!host.startsWith("unix:///")) throw new Error("plugin runner requires a local Docker socket");
|
|
49
|
+
const { stdout } = await exec("docker", ["--host", host, ...args], {
|
|
50
|
+
timeout: args[0] === "image" && args[1] === "pull" ? 3e5 : 15e3,
|
|
51
|
+
maxBuffer: 32 * 1024,
|
|
52
|
+
env: pluginToken === void 0 ? process.env : { ...process.env, PLUGIN_TOKEN: pluginToken }
|
|
53
|
+
});
|
|
54
|
+
return stdout.trim();
|
|
55
|
+
}
|
|
56
|
+
async function checkEndpoint(port) {
|
|
57
|
+
const response = await fetch(`http://127.0.0.1:${port}/~auth`, {
|
|
58
|
+
method: "HEAD",
|
|
59
|
+
redirect: "manual",
|
|
60
|
+
signal: AbortSignal.timeout(1e3)
|
|
61
|
+
});
|
|
62
|
+
if (response.status >= 500) throw new Error("plugin is starting");
|
|
63
|
+
}
|
|
64
|
+
function createPluginRunner(policy, run = docker, ready = checkEndpoint) {
|
|
65
|
+
const { releases, network } = policySchema.parse(policy);
|
|
66
|
+
for (const values of [releases.map((r) => r.endpoint), releases.map((r) => r.port), releases.map((r) => r.id + ":" + r.image)]) {
|
|
67
|
+
if (new Set(values).size !== releases.length) throw new Error("duplicate plugin release identity, endpoint or port");
|
|
68
|
+
}
|
|
69
|
+
const pending = /* @__PURE__ */ new Map();
|
|
70
|
+
async function prepare(entry, name) {
|
|
71
|
+
const listing = await run(["container", "ls", "--all", "--filter", "name=^/" + name + "$", "--format", "{{.Names}}"]);
|
|
72
|
+
if (listing !== name) {
|
|
73
|
+
const inspectVolumes = () => run(["image", "inspect", "--format", "{{json .Config.Volumes}}", entry.image]);
|
|
74
|
+
let volumes;
|
|
75
|
+
try {
|
|
76
|
+
volumes = await inspectVolumes();
|
|
77
|
+
} catch (error) {
|
|
78
|
+
const stderr = error?.stderr;
|
|
79
|
+
if (typeof stderr !== "string" || !/no such (?:image|object)\s*:/i.test(stderr)) throw error;
|
|
80
|
+
await run(["image", "pull", "--quiet", entry.image]);
|
|
81
|
+
volumes = await inspectVolumes();
|
|
82
|
+
}
|
|
83
|
+
if (volumes !== "null" && volumes !== "{}") throw new Error("plugin images must not declare writable volumes");
|
|
84
|
+
const token = (await readFile(entry.tokenFile, "utf8")).trim();
|
|
85
|
+
if (!token) throw new Error("missing plugin credential");
|
|
86
|
+
await run([
|
|
87
|
+
"container",
|
|
88
|
+
"create",
|
|
89
|
+
"--name",
|
|
90
|
+
name,
|
|
91
|
+
"--pull",
|
|
92
|
+
"never",
|
|
93
|
+
"--read-only",
|
|
94
|
+
"--user",
|
|
95
|
+
"65532:65532",
|
|
96
|
+
"--cap-drop",
|
|
97
|
+
"ALL",
|
|
98
|
+
"--security-opt",
|
|
99
|
+
"no-new-privileges",
|
|
100
|
+
"--pids-limit",
|
|
101
|
+
"64",
|
|
102
|
+
"--memory",
|
|
103
|
+
"128m",
|
|
104
|
+
"--cpus",
|
|
105
|
+
"0.5",
|
|
106
|
+
"--tmpfs",
|
|
107
|
+
"/tmp:rw,noexec,nosuid,nodev,size=16m",
|
|
108
|
+
"--network",
|
|
109
|
+
network,
|
|
110
|
+
"--restart",
|
|
111
|
+
"unless-stopped",
|
|
112
|
+
"--log-opt",
|
|
113
|
+
"max-size=4m",
|
|
114
|
+
"--log-opt",
|
|
115
|
+
"max-file=2",
|
|
116
|
+
"--publish",
|
|
117
|
+
"127.0.0.1:" + entry.port + ":8080",
|
|
118
|
+
"--env",
|
|
119
|
+
"PLUGIN_TOKEN",
|
|
120
|
+
"--env",
|
|
121
|
+
"PORT=8080",
|
|
122
|
+
entry.image
|
|
123
|
+
], token);
|
|
124
|
+
}
|
|
125
|
+
const image = await run(["container", "inspect", "--format", "{{.Config.Image}}", name]);
|
|
126
|
+
if (image !== entry.image) throw new Error("existing container image mismatch");
|
|
127
|
+
await run(["container", "start", name]);
|
|
128
|
+
await pRetry(() => ready(entry.port), { retries: 7, minTimeout: 100, maxTimeout: 1e3 });
|
|
129
|
+
}
|
|
130
|
+
const app = new Hono();
|
|
131
|
+
app.post("/prepare", bodyLimit({ maxSize: 1024 }), async (c) => {
|
|
132
|
+
const request = identity.safeParse(await c.req.json().catch(() => null));
|
|
133
|
+
if (!request.success) return c.body(null, 400);
|
|
134
|
+
const entry = releases.find((r) => r.id === request.data.id && r.image === request.data.image);
|
|
135
|
+
if (!entry) return c.body(null, 403);
|
|
136
|
+
const name = "tb-plugin-" + createHash("sha256").update(JSON.stringify([network, entry])).digest("hex").slice(0, 24);
|
|
137
|
+
try {
|
|
138
|
+
let work = pending.get(name);
|
|
139
|
+
if (!work) {
|
|
140
|
+
work = prepare(entry, name).finally(() => pending.delete(name));
|
|
141
|
+
pending.set(name, work);
|
|
142
|
+
}
|
|
143
|
+
await work;
|
|
144
|
+
return c.body(null, 204, { "X-TB-Plugin-Endpoint": entry.endpoint });
|
|
145
|
+
} catch {
|
|
146
|
+
return c.body(null, 503);
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
return app;
|
|
150
|
+
}
|
|
151
|
+
async function servePluginRunner(policyFile, socketPath) {
|
|
152
|
+
const app = createPluginRunner(JSON.parse(await readFile(policyFile, "utf8")));
|
|
153
|
+
const server = createServer(getRequestListener(app.fetch));
|
|
154
|
+
server.requestTimeout = 3e4;
|
|
155
|
+
await new Promise((resolve, reject) => {
|
|
156
|
+
server.once("error", reject);
|
|
157
|
+
server.listen(socketPath, resolve);
|
|
158
|
+
});
|
|
159
|
+
try {
|
|
160
|
+
await chmod(socketPath, 432);
|
|
161
|
+
} catch (error) {
|
|
162
|
+
server.close();
|
|
163
|
+
throw error;
|
|
164
|
+
}
|
|
165
|
+
return server;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
// src/admin.ts
|
|
17
169
|
var program = new Command("tool-bridge-admin").version(package_default.version).description(
|
|
18
170
|
"Local installation and recovery; requires access to the protected bootstrap directory"
|
|
19
171
|
);
|
|
172
|
+
program.command("plugin-runner").description("Serve locally approved immutable plugin containers on a protected Unix socket").requiredOption("--policy <file>", "Operator-owned JSON release allowlist").requiredOption("--socket <path>", "Private control socket in an operator-owned directory").action(async (opts) => {
|
|
173
|
+
process.umask(79);
|
|
174
|
+
const server = await servePluginRunner(opts.policy, opts.socket);
|
|
175
|
+
const stop = () => server.close();
|
|
176
|
+
process.once("SIGINT", stop);
|
|
177
|
+
process.once("SIGTERM", stop);
|
|
178
|
+
});
|
|
20
179
|
for (const mode of ["pair", "recover"]) {
|
|
21
180
|
program.command(mode).option(
|
|
22
181
|
"--directory <path>",
|
|
@@ -131,7 +290,7 @@ program.command("init-bucket").option(
|
|
|
131
290
|
"/secrets/s3/admin.json"
|
|
132
291
|
).option("--endpoint <url>", "Exact local S3 endpoint", "http://objects:8333").action(async (opts) => {
|
|
133
292
|
const credentials = JSON.parse(
|
|
134
|
-
await
|
|
293
|
+
await readFile2(opts.credentials, "utf8")
|
|
135
294
|
);
|
|
136
295
|
const client = new S3Client({
|
|
137
296
|
endpoint: opts.endpoint,
|
|
@@ -141,7 +300,7 @@ program.command("init-bucket").option(
|
|
|
141
300
|
maxAttempts: 1
|
|
142
301
|
});
|
|
143
302
|
try {
|
|
144
|
-
await
|
|
303
|
+
await pRetry2(
|
|
145
304
|
async () => {
|
|
146
305
|
try {
|
|
147
306
|
await client.send(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createAuthedClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-MJHL4ZYP.js";
|
|
4
|
+
import "./chunk-KZYWJWBG.js";
|
|
5
5
|
import {
|
|
6
6
|
asJsonObject,
|
|
7
7
|
booleanValue,
|
|
@@ -12,12 +12,12 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
createProviderPlugin,
|
|
14
14
|
upstreamError
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-7M4PPWV2.js";
|
|
16
|
+
import "./chunk-NXLE6ZEK.js";
|
|
17
|
+
import "./chunk-6W5WJCKR.js";
|
|
18
18
|
import {
|
|
19
19
|
TBError
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-4WDQGEOC.js";
|
|
21
21
|
import "./chunk-U67V476Y.js";
|
|
22
22
|
|
|
23
23
|
// ../plugins/src/airtable/api.ts
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createProviderHttpClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KZYWJWBG.js";
|
|
4
4
|
import "./chunk-JXHMDBAY.js";
|
|
5
5
|
import {
|
|
6
6
|
createProviderPlugin,
|
|
7
7
|
requireApiKey,
|
|
8
8
|
upstreamError
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-7M4PPWV2.js";
|
|
10
|
+
import "./chunk-NXLE6ZEK.js";
|
|
11
|
+
import "./chunk-6W5WJCKR.js";
|
|
12
12
|
import {
|
|
13
13
|
TBError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4WDQGEOC.js";
|
|
15
15
|
import "./chunk-U67V476Y.js";
|
|
16
16
|
|
|
17
17
|
// ../plugins/src/alt_text_generator_ai/schema.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createProviderHttpClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KZYWJWBG.js";
|
|
4
4
|
import {
|
|
5
5
|
asJsonObject,
|
|
6
6
|
booleanValue,
|
|
@@ -10,12 +10,12 @@ import {
|
|
|
10
10
|
createProviderPlugin,
|
|
11
11
|
requireApiKey,
|
|
12
12
|
upstreamError
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-7M4PPWV2.js";
|
|
14
|
+
import "./chunk-NXLE6ZEK.js";
|
|
15
|
+
import "./chunk-6W5WJCKR.js";
|
|
16
16
|
import {
|
|
17
17
|
TBError
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-4WDQGEOC.js";
|
|
19
19
|
import "./chunk-U67V476Y.js";
|
|
20
20
|
|
|
21
21
|
// ../plugins/src/amap/api.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createAuthedClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-MJHL4ZYP.js";
|
|
4
|
+
import "./chunk-KZYWJWBG.js";
|
|
5
5
|
import {
|
|
6
6
|
compactDefined,
|
|
7
7
|
trimmedText
|
|
@@ -9,12 +9,12 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
createProviderPlugin,
|
|
11
11
|
upstreamError
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-7M4PPWV2.js";
|
|
13
|
+
import "./chunk-NXLE6ZEK.js";
|
|
14
|
+
import "./chunk-6W5WJCKR.js";
|
|
15
15
|
import {
|
|
16
16
|
TBError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-4WDQGEOC.js";
|
|
18
18
|
import "./chunk-U67V476Y.js";
|
|
19
19
|
|
|
20
20
|
// ../plugins/src/anthropic/api.ts
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createAuthedClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-MJHL4ZYP.js";
|
|
4
|
+
import "./chunk-KZYWJWBG.js";
|
|
5
5
|
import {
|
|
6
6
|
asJsonObject
|
|
7
7
|
} from "./chunk-JXHMDBAY.js";
|
|
8
8
|
import {
|
|
9
9
|
createProviderPlugin,
|
|
10
10
|
upstreamError
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-7M4PPWV2.js";
|
|
12
|
+
import "./chunk-NXLE6ZEK.js";
|
|
13
|
+
import "./chunk-6W5WJCKR.js";
|
|
14
14
|
import {
|
|
15
15
|
TBError
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4WDQGEOC.js";
|
|
17
17
|
import "./chunk-U67V476Y.js";
|
|
18
18
|
|
|
19
19
|
// ../plugins/src/apify/api.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createAuthedClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-MJHL4ZYP.js";
|
|
4
|
+
import "./chunk-KZYWJWBG.js";
|
|
5
5
|
import {
|
|
6
6
|
asJsonObject,
|
|
7
7
|
compactDefined,
|
|
@@ -10,12 +10,12 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
createProviderPlugin,
|
|
12
12
|
upstreamError
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-7M4PPWV2.js";
|
|
14
|
+
import "./chunk-NXLE6ZEK.js";
|
|
15
|
+
import "./chunk-6W5WJCKR.js";
|
|
16
16
|
import {
|
|
17
17
|
TBError
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-4WDQGEOC.js";
|
|
19
19
|
import "./chunk-U67V476Y.js";
|
|
20
20
|
|
|
21
21
|
// ../plugins/src/brave_search/api.ts
|