@tanstack/cli 0.0.6 → 0.0.8
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/bin.cjs +15 -7
- package/dist/bin.mjs +11 -3
- package/dist/fetch-CbFFGJEw.cjs +3 -0
- package/dist/fetch-DG5dLrsb.cjs +522 -0
- package/dist/fetch-DhlVXS6S.mjs +390 -0
- package/dist/fetch-I_OVg8JX.mjs +3 -0
- package/dist/index.cjs +23 -22
- package/dist/index.mjs +2 -1
- package/dist/{template-CkAkdP8n.mjs → template-Szi7-AZJ.mjs} +53 -396
- package/dist/{template-Cup47s9h.cjs → template-lWrIZhCQ.cjs} +53 -522
- package/package.json +1 -1
- package/src/api/fetch.ts +31 -2
- package/src/commands/create.ts +9 -2
- package/src/commands/mcp.ts +9 -1
- package/src/engine/compile.ts +18 -0
- package/src/templates/base.ts +11 -19
|
@@ -0,0 +1,390 @@
|
|
|
1
|
+
import { existsSync, mkdirSync, readFileSync, readdirSync, statSync, writeFileSync } from "node:fs";
|
|
2
|
+
import { extname, join } from "node:path";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
import { homedir } from "node:os";
|
|
5
|
+
|
|
6
|
+
//#region src/engine/types.ts
|
|
7
|
+
const CategorySchema = z.enum([
|
|
8
|
+
"tanstack",
|
|
9
|
+
"database",
|
|
10
|
+
"orm",
|
|
11
|
+
"auth",
|
|
12
|
+
"deploy",
|
|
13
|
+
"tooling",
|
|
14
|
+
"monitoring",
|
|
15
|
+
"api",
|
|
16
|
+
"i18n",
|
|
17
|
+
"cms",
|
|
18
|
+
"other"
|
|
19
|
+
]);
|
|
20
|
+
const IntegrationTypeSchema = z.enum([
|
|
21
|
+
"integration",
|
|
22
|
+
"example",
|
|
23
|
+
"toolchain",
|
|
24
|
+
"deployment"
|
|
25
|
+
]);
|
|
26
|
+
const IntegrationPhaseSchema = z.enum([
|
|
27
|
+
"setup",
|
|
28
|
+
"integration",
|
|
29
|
+
"example"
|
|
30
|
+
]);
|
|
31
|
+
const RouterModeSchema = z.enum(["file-router", "code-router"]);
|
|
32
|
+
const SelectOptionSchema = z.object({
|
|
33
|
+
type: z.literal("select"),
|
|
34
|
+
label: z.string(),
|
|
35
|
+
description: z.string().optional(),
|
|
36
|
+
default: z.string(),
|
|
37
|
+
options: z.array(z.object({
|
|
38
|
+
value: z.string(),
|
|
39
|
+
label: z.string()
|
|
40
|
+
}))
|
|
41
|
+
});
|
|
42
|
+
const BooleanOptionSchema = z.object({
|
|
43
|
+
type: z.literal("boolean"),
|
|
44
|
+
label: z.string(),
|
|
45
|
+
description: z.string().optional(),
|
|
46
|
+
default: z.boolean()
|
|
47
|
+
});
|
|
48
|
+
const StringOptionSchema = z.object({
|
|
49
|
+
type: z.literal("string"),
|
|
50
|
+
label: z.string(),
|
|
51
|
+
description: z.string().optional(),
|
|
52
|
+
default: z.string()
|
|
53
|
+
});
|
|
54
|
+
const IntegrationOptionSchema = z.discriminatedUnion("type", [
|
|
55
|
+
SelectOptionSchema,
|
|
56
|
+
BooleanOptionSchema,
|
|
57
|
+
StringOptionSchema
|
|
58
|
+
]);
|
|
59
|
+
const IntegrationOptionsSchema = z.record(z.string(), IntegrationOptionSchema);
|
|
60
|
+
const HookTypeSchema = z.enum([
|
|
61
|
+
"header-user",
|
|
62
|
+
"provider",
|
|
63
|
+
"root-provider",
|
|
64
|
+
"layout",
|
|
65
|
+
"vite-plugin",
|
|
66
|
+
"devtools",
|
|
67
|
+
"entry-client"
|
|
68
|
+
]);
|
|
69
|
+
const HookSchema = z.object({
|
|
70
|
+
type: HookTypeSchema.optional(),
|
|
71
|
+
path: z.string().optional(),
|
|
72
|
+
jsName: z.string().optional(),
|
|
73
|
+
import: z.string().optional(),
|
|
74
|
+
code: z.string().optional()
|
|
75
|
+
});
|
|
76
|
+
const RouteSchema = z.object({
|
|
77
|
+
url: z.string().optional(),
|
|
78
|
+
name: z.string().optional(),
|
|
79
|
+
icon: z.string().optional(),
|
|
80
|
+
path: z.string(),
|
|
81
|
+
jsName: z.string(),
|
|
82
|
+
children: z.array(z.lazy(() => RouteSchema)).optional()
|
|
83
|
+
});
|
|
84
|
+
const EnvVarSchema = z.object({
|
|
85
|
+
name: z.string(),
|
|
86
|
+
description: z.string(),
|
|
87
|
+
required: z.boolean().optional(),
|
|
88
|
+
example: z.string().optional()
|
|
89
|
+
});
|
|
90
|
+
const CommandSchema = z.object({
|
|
91
|
+
command: z.string(),
|
|
92
|
+
args: z.array(z.string()).optional()
|
|
93
|
+
});
|
|
94
|
+
const IntegrationInfoSchema = z.object({
|
|
95
|
+
id: z.string().optional(),
|
|
96
|
+
name: z.string(),
|
|
97
|
+
description: z.string(),
|
|
98
|
+
author: z.string().optional(),
|
|
99
|
+
version: z.string().optional(),
|
|
100
|
+
link: z.string().optional(),
|
|
101
|
+
license: z.string().optional(),
|
|
102
|
+
warning: z.string().optional(),
|
|
103
|
+
type: IntegrationTypeSchema,
|
|
104
|
+
phase: IntegrationPhaseSchema,
|
|
105
|
+
category: CategorySchema.optional(),
|
|
106
|
+
modes: z.array(RouterModeSchema),
|
|
107
|
+
priority: z.number().optional(),
|
|
108
|
+
default: z.boolean().optional(),
|
|
109
|
+
requiresTailwind: z.boolean().optional(),
|
|
110
|
+
demoRequiresTailwind: z.boolean().optional(),
|
|
111
|
+
dependsOn: z.array(z.string()).optional(),
|
|
112
|
+
exclusive: z.array(z.string()).optional(),
|
|
113
|
+
partnerId: z.string().optional(),
|
|
114
|
+
options: IntegrationOptionsSchema.optional(),
|
|
115
|
+
hooks: z.array(HookSchema).optional(),
|
|
116
|
+
routes: z.array(RouteSchema).optional(),
|
|
117
|
+
packageAdditions: z.object({
|
|
118
|
+
dependencies: z.record(z.string(), z.string()).optional(),
|
|
119
|
+
devDependencies: z.record(z.string(), z.string()).optional(),
|
|
120
|
+
scripts: z.record(z.string(), z.string()).optional()
|
|
121
|
+
}).optional(),
|
|
122
|
+
shadcnComponents: z.array(z.string()).optional(),
|
|
123
|
+
gitignorePatterns: z.array(z.string()).optional(),
|
|
124
|
+
envVars: z.array(EnvVarSchema).optional(),
|
|
125
|
+
command: CommandSchema.optional(),
|
|
126
|
+
integrationSpecialSteps: z.array(z.string()).optional(),
|
|
127
|
+
createSpecialSteps: z.array(z.string()).optional(),
|
|
128
|
+
postInitSpecialSteps: z.array(z.string()).optional(),
|
|
129
|
+
smallLogo: z.string().optional(),
|
|
130
|
+
logo: z.string().optional(),
|
|
131
|
+
readme: z.string().optional()
|
|
132
|
+
});
|
|
133
|
+
const IntegrationCompiledSchema = IntegrationInfoSchema.extend({
|
|
134
|
+
id: z.string(),
|
|
135
|
+
files: z.record(z.string(), z.string()),
|
|
136
|
+
deletedFiles: z.array(z.string()).optional()
|
|
137
|
+
});
|
|
138
|
+
const CustomTemplateInfoSchema = z.object({
|
|
139
|
+
id: z.string().optional(),
|
|
140
|
+
name: z.string(),
|
|
141
|
+
description: z.string(),
|
|
142
|
+
framework: z.string(),
|
|
143
|
+
mode: RouterModeSchema,
|
|
144
|
+
typescript: z.boolean(),
|
|
145
|
+
tailwind: z.boolean(),
|
|
146
|
+
integrations: z.array(z.string()),
|
|
147
|
+
integrationOptions: z.record(z.string(), z.record(z.string(), z.unknown())).optional(),
|
|
148
|
+
banner: z.string().optional()
|
|
149
|
+
});
|
|
150
|
+
const CustomTemplateCompiledSchema = CustomTemplateInfoSchema.extend({ id: z.string() });
|
|
151
|
+
const ManifestIntegrationSchema = z.object({
|
|
152
|
+
id: z.string(),
|
|
153
|
+
name: z.string(),
|
|
154
|
+
description: z.string(),
|
|
155
|
+
type: IntegrationTypeSchema,
|
|
156
|
+
category: CategorySchema.optional(),
|
|
157
|
+
modes: z.array(RouterModeSchema),
|
|
158
|
+
dependsOn: z.array(z.string()).optional(),
|
|
159
|
+
exclusive: z.array(z.string()).optional(),
|
|
160
|
+
partnerId: z.string().optional(),
|
|
161
|
+
hasOptions: z.boolean().optional(),
|
|
162
|
+
link: z.string().optional(),
|
|
163
|
+
color: z.string().optional(),
|
|
164
|
+
requiresTailwind: z.boolean().optional(),
|
|
165
|
+
demoRequiresTailwind: z.boolean().optional()
|
|
166
|
+
});
|
|
167
|
+
const ManifestCustomTemplateSchema = z.object({
|
|
168
|
+
id: z.string(),
|
|
169
|
+
name: z.string(),
|
|
170
|
+
description: z.string(),
|
|
171
|
+
banner: z.string().optional(),
|
|
172
|
+
icon: z.string().optional(),
|
|
173
|
+
features: z.array(z.string()).optional()
|
|
174
|
+
});
|
|
175
|
+
const ManifestSchema = z.object({
|
|
176
|
+
version: z.string(),
|
|
177
|
+
generated: z.string(),
|
|
178
|
+
integrations: z.array(ManifestIntegrationSchema),
|
|
179
|
+
customTemplates: z.array(ManifestCustomTemplateSchema).optional()
|
|
180
|
+
});
|
|
181
|
+
|
|
182
|
+
//#endregion
|
|
183
|
+
//#region src/cache/index.ts
|
|
184
|
+
const CACHE_DIR = join(homedir(), ".tanstack", "cache");
|
|
185
|
+
const DEFAULT_TTL_MS = 1440 * 60 * 1e3;
|
|
186
|
+
function ensureCacheDir() {
|
|
187
|
+
if (!existsSync(CACHE_DIR)) mkdirSync(CACHE_DIR, { recursive: true });
|
|
188
|
+
}
|
|
189
|
+
function getCachePath(key) {
|
|
190
|
+
return join(CACHE_DIR, `${key.replace(/[^a-zA-Z0-9-_]/g, "_")}.json`);
|
|
191
|
+
}
|
|
192
|
+
function getCached(key) {
|
|
193
|
+
const cachePath = getCachePath(key);
|
|
194
|
+
if (!existsSync(cachePath)) return null;
|
|
195
|
+
try {
|
|
196
|
+
const raw = readFileSync(cachePath, "utf-8");
|
|
197
|
+
const entry = JSON.parse(raw);
|
|
198
|
+
if (Date.now() - entry.timestamp > entry.ttl) return null;
|
|
199
|
+
return entry.data;
|
|
200
|
+
} catch {
|
|
201
|
+
return null;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
function setCache(key, data, ttlMs = DEFAULT_TTL_MS) {
|
|
205
|
+
ensureCacheDir();
|
|
206
|
+
const cachePath = getCachePath(key);
|
|
207
|
+
const entry = {
|
|
208
|
+
data,
|
|
209
|
+
timestamp: Date.now(),
|
|
210
|
+
ttl: ttlMs
|
|
211
|
+
};
|
|
212
|
+
writeFileSync(cachePath, JSON.stringify(entry, null, 2), "utf-8");
|
|
213
|
+
}
|
|
214
|
+
async function fetchWithCache(key, fetcher, ttlMs = DEFAULT_TTL_MS) {
|
|
215
|
+
const cached = getCached(key);
|
|
216
|
+
if (cached !== null) return cached;
|
|
217
|
+
const data = await fetcher();
|
|
218
|
+
setCache(key, data, ttlMs);
|
|
219
|
+
return data;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
//#endregion
|
|
223
|
+
//#region src/api/fetch.ts
|
|
224
|
+
const GITHUB_RAW_BASE = "https://raw.githubusercontent.com/TanStack/cli/main/integrations";
|
|
225
|
+
const CACHE_TTL_MS = 3600 * 1e3;
|
|
226
|
+
const BINARY_EXTENSIONS = new Set([
|
|
227
|
+
".png",
|
|
228
|
+
".jpg",
|
|
229
|
+
".jpeg",
|
|
230
|
+
".gif",
|
|
231
|
+
".webp",
|
|
232
|
+
".ico",
|
|
233
|
+
".svg",
|
|
234
|
+
".woff",
|
|
235
|
+
".woff2",
|
|
236
|
+
".ttf",
|
|
237
|
+
".eot",
|
|
238
|
+
".otf",
|
|
239
|
+
".pdf",
|
|
240
|
+
".zip",
|
|
241
|
+
".tar",
|
|
242
|
+
".gz",
|
|
243
|
+
".mp3",
|
|
244
|
+
".mp4",
|
|
245
|
+
".wav",
|
|
246
|
+
".ogg",
|
|
247
|
+
".webm"
|
|
248
|
+
]);
|
|
249
|
+
const BINARY_PREFIX = "base64:";
|
|
250
|
+
/**
|
|
251
|
+
* Check if a file should be treated as binary based on extension
|
|
252
|
+
*/
|
|
253
|
+
function isBinaryFile(filePath) {
|
|
254
|
+
return BINARY_EXTENSIONS.has(extname(filePath).toLowerCase());
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* Check if a path is a local directory
|
|
258
|
+
*/
|
|
259
|
+
function isLocalPath(path) {
|
|
260
|
+
return path.startsWith("/") || path.startsWith("./") || path.startsWith("..");
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* Fetch the integration manifest from GitHub or local path (with caching for remote)
|
|
264
|
+
*/
|
|
265
|
+
async function fetchManifest(baseUrl = GITHUB_RAW_BASE) {
|
|
266
|
+
if (isLocalPath(baseUrl)) {
|
|
267
|
+
const manifestPath = join(baseUrl, "manifest.json");
|
|
268
|
+
if (!existsSync(manifestPath)) throw new Error(`Manifest not found at ${manifestPath}`);
|
|
269
|
+
const data = JSON.parse(readFileSync(manifestPath, "utf-8"));
|
|
270
|
+
return ManifestSchema.parse(data);
|
|
271
|
+
}
|
|
272
|
+
return fetchWithCache(`manifest_${baseUrl.replace(/[^a-zA-Z0-9]/g, "_")}`, async () => {
|
|
273
|
+
const url = `${baseUrl}/manifest.json`;
|
|
274
|
+
const response = await fetch(url);
|
|
275
|
+
if (!response.ok) throw new Error(`Failed to fetch manifest: ${response.statusText}`);
|
|
276
|
+
const data = await response.json();
|
|
277
|
+
return ManifestSchema.parse(data);
|
|
278
|
+
}, CACHE_TTL_MS);
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Fetch integration info.json from GitHub or local path (with caching for remote)
|
|
282
|
+
*/
|
|
283
|
+
async function fetchIntegrationInfo(integrationId, baseUrl = GITHUB_RAW_BASE) {
|
|
284
|
+
if (isLocalPath(baseUrl)) {
|
|
285
|
+
const infoPath = join(baseUrl, integrationId, "info.json");
|
|
286
|
+
if (!existsSync(infoPath)) throw new Error(`Integration info not found at ${infoPath}`);
|
|
287
|
+
const data = JSON.parse(readFileSync(infoPath, "utf-8"));
|
|
288
|
+
return IntegrationInfoSchema.parse(data);
|
|
289
|
+
}
|
|
290
|
+
return fetchWithCache(`integration_info_${integrationId}_${baseUrl.replace(/[^a-zA-Z0-9]/g, "_")}`, async () => {
|
|
291
|
+
const url = `${baseUrl}/${integrationId}/info.json`;
|
|
292
|
+
const response = await fetch(url);
|
|
293
|
+
if (!response.ok) throw new Error(`Failed to fetch integration ${integrationId}: ${response.statusText}`);
|
|
294
|
+
const data = await response.json();
|
|
295
|
+
return IntegrationInfoSchema.parse(data);
|
|
296
|
+
}, CACHE_TTL_MS);
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* Recursively read all files from a directory
|
|
300
|
+
* Binary files are read as base64 with a prefix marker
|
|
301
|
+
*/
|
|
302
|
+
function readDirRecursive(dir, basePath = "") {
|
|
303
|
+
const files = {};
|
|
304
|
+
if (!existsSync(dir)) return files;
|
|
305
|
+
for (const entry of readdirSync(dir)) {
|
|
306
|
+
const fullPath = join(dir, entry);
|
|
307
|
+
const relativePath = basePath ? `${basePath}/${entry}` : entry;
|
|
308
|
+
if (statSync(fullPath).isDirectory()) Object.assign(files, readDirRecursive(fullPath, relativePath));
|
|
309
|
+
else if (isBinaryFile(relativePath)) files[relativePath] = BINARY_PREFIX + readFileSync(fullPath).toString("base64");
|
|
310
|
+
else files[relativePath] = readFileSync(fullPath, "utf-8");
|
|
311
|
+
}
|
|
312
|
+
return files;
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* Fetch all files for an integration from GitHub or local path (with caching for remote)
|
|
316
|
+
*/
|
|
317
|
+
async function fetchIntegrationFiles(integrationId, baseUrl = GITHUB_RAW_BASE) {
|
|
318
|
+
if (isLocalPath(baseUrl)) return readDirRecursive(join(baseUrl, integrationId, "assets"));
|
|
319
|
+
return fetchWithCache(`integration_files_${integrationId}_${baseUrl.replace(/[^a-zA-Z0-9]/g, "_")}`, async () => {
|
|
320
|
+
const filesUrl = `${baseUrl}/${integrationId}/files.json`;
|
|
321
|
+
const response = await fetch(filesUrl);
|
|
322
|
+
if (!response.ok) return {};
|
|
323
|
+
const fileList = await response.json();
|
|
324
|
+
const files = {};
|
|
325
|
+
await Promise.all(fileList.map(async (filePath) => {
|
|
326
|
+
const fileUrl = `${baseUrl}/${integrationId}/assets/${filePath}`;
|
|
327
|
+
const fileResponse = await fetch(fileUrl);
|
|
328
|
+
if (fileResponse.ok) if (isBinaryFile(filePath)) {
|
|
329
|
+
const buffer = await fileResponse.arrayBuffer();
|
|
330
|
+
files[filePath] = BINARY_PREFIX + Buffer.from(buffer).toString("base64");
|
|
331
|
+
} else files[filePath] = await fileResponse.text();
|
|
332
|
+
}));
|
|
333
|
+
return files;
|
|
334
|
+
}, CACHE_TTL_MS);
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* Fetch integration package.json if it exists
|
|
338
|
+
*/
|
|
339
|
+
async function fetchIntegrationPackageJson(integrationId, baseUrl) {
|
|
340
|
+
if (isLocalPath(baseUrl)) {
|
|
341
|
+
const pkgPath = join(baseUrl, integrationId, "package.json");
|
|
342
|
+
if (existsSync(pkgPath)) return JSON.parse(readFileSync(pkgPath, "utf-8"));
|
|
343
|
+
return null;
|
|
344
|
+
}
|
|
345
|
+
const url = `${baseUrl}/${integrationId}/package.json`;
|
|
346
|
+
const response = await fetch(url);
|
|
347
|
+
if (!response.ok) return null;
|
|
348
|
+
return response.json();
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* Fetch a complete compiled integration from GitHub
|
|
352
|
+
*/
|
|
353
|
+
async function fetchIntegration(integrationId, baseUrl = GITHUB_RAW_BASE) {
|
|
354
|
+
const [info, files, pkgJson] = await Promise.all([
|
|
355
|
+
fetchIntegrationInfo(integrationId, baseUrl),
|
|
356
|
+
fetchIntegrationFiles(integrationId, baseUrl),
|
|
357
|
+
fetchIntegrationPackageJson(integrationId, baseUrl)
|
|
358
|
+
]);
|
|
359
|
+
const packageAdditions = info.packageAdditions ?? {};
|
|
360
|
+
if (pkgJson) {
|
|
361
|
+
if (pkgJson.dependencies) packageAdditions.dependencies = {
|
|
362
|
+
...packageAdditions.dependencies,
|
|
363
|
+
...pkgJson.dependencies
|
|
364
|
+
};
|
|
365
|
+
if (pkgJson.devDependencies) packageAdditions.devDependencies = {
|
|
366
|
+
...packageAdditions.devDependencies,
|
|
367
|
+
...pkgJson.devDependencies
|
|
368
|
+
};
|
|
369
|
+
if (pkgJson.scripts) packageAdditions.scripts = {
|
|
370
|
+
...packageAdditions.scripts,
|
|
371
|
+
...pkgJson.scripts
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
return IntegrationCompiledSchema.parse({
|
|
375
|
+
...info,
|
|
376
|
+
id: integrationId,
|
|
377
|
+
files,
|
|
378
|
+
packageAdditions: Object.keys(packageAdditions).length > 0 ? packageAdditions : void 0,
|
|
379
|
+
deletedFiles: []
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* Fetch multiple integrations in parallel
|
|
384
|
+
*/
|
|
385
|
+
async function fetchIntegrations(integrationIds, baseUrl = GITHUB_RAW_BASE) {
|
|
386
|
+
return Promise.all(integrationIds.map((id) => fetchIntegration(id, baseUrl)));
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
//#endregion
|
|
390
|
+
export { RouterModeSchema as S, IntegrationPhaseSchema as _, fetchIntegrations as a, ManifestSchema as b, CommandSchema as c, EnvVarSchema as d, HookSchema as f, IntegrationOptionsSchema as g, IntegrationOptionSchema as h, fetchIntegrationInfo as i, CustomTemplateCompiledSchema as l, IntegrationInfoSchema as m, fetchIntegration as n, fetchManifest as o, IntegrationCompiledSchema as p, fetchIntegrationFiles as r, CategorySchema as s, BINARY_PREFIX as t, CustomTemplateInfoSchema as u, IntegrationTypeSchema as v, RouteSchema as x, ManifestIntegrationSchema as y };
|
package/dist/index.cjs
CHANGED
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
const require_template = require('./template-
|
|
1
|
+
const require_template = require('./template-lWrIZhCQ.cjs');
|
|
2
|
+
const require_fetch = require('./fetch-DG5dLrsb.cjs');
|
|
2
3
|
|
|
3
4
|
exports.CONFIG_FILE = require_template.CONFIG_FILE;
|
|
4
|
-
exports.CategorySchema =
|
|
5
|
-
exports.CommandSchema =
|
|
6
|
-
exports.CustomTemplateCompiledSchema =
|
|
7
|
-
exports.CustomTemplateInfoSchema =
|
|
8
|
-
exports.EnvVarSchema =
|
|
9
|
-
exports.HookSchema =
|
|
10
|
-
exports.IntegrationCompiledSchema =
|
|
11
|
-
exports.IntegrationInfoSchema =
|
|
12
|
-
exports.IntegrationOptionSchema =
|
|
13
|
-
exports.IntegrationOptionsSchema =
|
|
14
|
-
exports.IntegrationPhaseSchema =
|
|
15
|
-
exports.IntegrationTypeSchema =
|
|
16
|
-
exports.ManifestIntegrationSchema =
|
|
17
|
-
exports.ManifestSchema =
|
|
18
|
-
exports.RouteSchema =
|
|
19
|
-
exports.RouterModeSchema =
|
|
5
|
+
exports.CategorySchema = require_fetch.CategorySchema;
|
|
6
|
+
exports.CommandSchema = require_fetch.CommandSchema;
|
|
7
|
+
exports.CustomTemplateCompiledSchema = require_fetch.CustomTemplateCompiledSchema;
|
|
8
|
+
exports.CustomTemplateInfoSchema = require_fetch.CustomTemplateInfoSchema;
|
|
9
|
+
exports.EnvVarSchema = require_fetch.EnvVarSchema;
|
|
10
|
+
exports.HookSchema = require_fetch.HookSchema;
|
|
11
|
+
exports.IntegrationCompiledSchema = require_fetch.IntegrationCompiledSchema;
|
|
12
|
+
exports.IntegrationInfoSchema = require_fetch.IntegrationInfoSchema;
|
|
13
|
+
exports.IntegrationOptionSchema = require_fetch.IntegrationOptionSchema;
|
|
14
|
+
exports.IntegrationOptionsSchema = require_fetch.IntegrationOptionsSchema;
|
|
15
|
+
exports.IntegrationPhaseSchema = require_fetch.IntegrationPhaseSchema;
|
|
16
|
+
exports.IntegrationTypeSchema = require_fetch.IntegrationTypeSchema;
|
|
17
|
+
exports.ManifestIntegrationSchema = require_fetch.ManifestIntegrationSchema;
|
|
18
|
+
exports.ManifestSchema = require_fetch.ManifestSchema;
|
|
19
|
+
exports.RouteSchema = require_fetch.RouteSchema;
|
|
20
|
+
exports.RouterModeSchema = require_fetch.RouterModeSchema;
|
|
20
21
|
exports.compile = require_template.compile;
|
|
21
22
|
exports.compileIntegration = require_template.compileIntegration;
|
|
22
23
|
exports.compileTemplate = require_template.compileTemplate;
|
|
23
24
|
exports.compileWithAttribution = require_template.compileWithAttribution;
|
|
24
|
-
exports.fetchIntegration =
|
|
25
|
-
exports.fetchIntegrationFiles =
|
|
26
|
-
exports.fetchIntegrationInfo =
|
|
27
|
-
exports.fetchIntegrations =
|
|
28
|
-
exports.fetchManifest =
|
|
25
|
+
exports.fetchIntegration = require_fetch.fetchIntegration;
|
|
26
|
+
exports.fetchIntegrationFiles = require_fetch.fetchIntegrationFiles;
|
|
27
|
+
exports.fetchIntegrationInfo = require_fetch.fetchIntegrationInfo;
|
|
28
|
+
exports.fetchIntegrations = require_fetch.fetchIntegrations;
|
|
29
|
+
exports.fetchManifest = require_fetch.fetchManifest;
|
|
29
30
|
exports.initIntegration = require_template.initIntegration;
|
|
30
31
|
exports.initTemplate = require_template.initTemplate;
|
|
31
32
|
exports.loadRemoteIntegration = require_template.loadRemoteIntegration;
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as initIntegration, c as readConfigFile, d as compileWithAttribution, f as processTemplateFile, i as compileIntegration, l as writeConfigFile, n as initTemplate, o as loadRemoteIntegration, p as relativePath, r as loadTemplate, s as CONFIG_FILE, t as compileTemplate, u as compile } from "./template-Szi7-AZJ.mjs";
|
|
2
|
+
import { S as RouterModeSchema, _ as IntegrationPhaseSchema, a as fetchIntegrations, b as ManifestSchema, c as CommandSchema, d as EnvVarSchema, f as HookSchema, g as IntegrationOptionsSchema, h as IntegrationOptionSchema, i as fetchIntegrationInfo, l as CustomTemplateCompiledSchema, m as IntegrationInfoSchema, n as fetchIntegration, o as fetchManifest, p as IntegrationCompiledSchema, r as fetchIntegrationFiles, s as CategorySchema, u as CustomTemplateInfoSchema, v as IntegrationTypeSchema, x as RouteSchema, y as ManifestIntegrationSchema } from "./fetch-DhlVXS6S.mjs";
|
|
2
3
|
|
|
3
4
|
export { CONFIG_FILE, CategorySchema, CommandSchema, CustomTemplateCompiledSchema, CustomTemplateInfoSchema, EnvVarSchema, HookSchema, IntegrationCompiledSchema, IntegrationInfoSchema, IntegrationOptionSchema, IntegrationOptionsSchema, IntegrationPhaseSchema, IntegrationTypeSchema, ManifestIntegrationSchema, ManifestSchema, RouteSchema, RouterModeSchema, compile, compileIntegration, compileTemplate, compileWithAttribution, fetchIntegration, fetchIntegrationFiles, fetchIntegrationInfo, fetchIntegrations, fetchManifest, initIntegration, initTemplate, loadRemoteIntegration, loadTemplate, processTemplateFile, readConfigFile, relativePath, writeConfigFile };
|