p1-polymorph-studio 0.1.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/bin/314-lex.js +2 -0
- package/dist/chunk-BCH2RATL.js +817 -0
- package/dist/chunk-BCH2RATL.js.map +1 -0
- package/dist/chunk-HGZJ53NR.cjs +817 -0
- package/dist/chunk-HGZJ53NR.cjs.map +1 -0
- package/dist/cli/index.cjs +423 -0
- package/dist/cli/index.cjs.map +1 -0
- package/dist/cli/index.d.cts +2 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.js +423 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/index.cjs +59 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +895 -0
- package/dist/index.d.ts +895 -0
- package/dist/index.js +59 -0
- package/dist/index.js.map +1 -0
- package/package.json +43 -0
|
@@ -0,0 +1,423 @@
|
|
|
1
|
+
import {
|
|
2
|
+
KudRegistrySchema,
|
|
3
|
+
LexConfigError,
|
|
4
|
+
LexConfigSchema,
|
|
5
|
+
createLexClient
|
|
6
|
+
} from "../chunk-BCH2RATL.js";
|
|
7
|
+
|
|
8
|
+
// src/cli/index.ts
|
|
9
|
+
import { Command } from "commander";
|
|
10
|
+
|
|
11
|
+
// src/cli/commands/init.ts
|
|
12
|
+
import { writeFile, access } from "fs/promises";
|
|
13
|
+
import { resolve } from "path";
|
|
14
|
+
function registerInitCommand(program2) {
|
|
15
|
+
program2.command("init").description("Initialize 314-lex config for a new project").option("-n, --name <name>", "Project name").option("-p, --project-id <id>", "Project ID").action(async (opts) => {
|
|
16
|
+
const configPath = resolve(process.cwd(), "314-lex.config.json");
|
|
17
|
+
const registryPath = resolve(process.cwd(), "kuds.registry.json");
|
|
18
|
+
try {
|
|
19
|
+
await access(configPath);
|
|
20
|
+
console.log("314-lex.config.json already exists. Skipping.");
|
|
21
|
+
return;
|
|
22
|
+
} catch {
|
|
23
|
+
}
|
|
24
|
+
const name = opts.name ?? "my-project";
|
|
25
|
+
const projectId = opts.projectId ?? `proj_${name.toLowerCase().replace(/\s+/g, "_")}`;
|
|
26
|
+
const config = {
|
|
27
|
+
$schema: "https://unpkg.com/@314-lex/sdk/schema/config.json",
|
|
28
|
+
version: 2,
|
|
29
|
+
name,
|
|
30
|
+
projectId,
|
|
31
|
+
tokens: {
|
|
32
|
+
source: "tailwind-v4",
|
|
33
|
+
css: "src/app/globals.css"
|
|
34
|
+
},
|
|
35
|
+
kuds: {
|
|
36
|
+
typesFile: "src/types/intent.ts",
|
|
37
|
+
componentsDir: "src/components/sections/",
|
|
38
|
+
registry: "kuds.registry.json",
|
|
39
|
+
autoSync: false
|
|
40
|
+
},
|
|
41
|
+
api: {
|
|
42
|
+
baseUrl: "env:POLYMORPH_BASE_URL",
|
|
43
|
+
token: "env:POLYMORPH_TOKEN",
|
|
44
|
+
routes: "/api/314-lex"
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
const registry = {
|
|
48
|
+
version: 1,
|
|
49
|
+
projectId,
|
|
50
|
+
generatedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
51
|
+
kuds: []
|
|
52
|
+
};
|
|
53
|
+
await writeFile(configPath, JSON.stringify(config, null, 2) + "\n", "utf-8");
|
|
54
|
+
await writeFile(registryPath, JSON.stringify(registry, null, 2) + "\n", "utf-8");
|
|
55
|
+
console.log("Created 314-lex.config.json");
|
|
56
|
+
console.log("Created kuds.registry.json");
|
|
57
|
+
console.log(`
|
|
58
|
+
Project: ${name} (${projectId})`);
|
|
59
|
+
console.log("\nNext steps:");
|
|
60
|
+
console.log(" 1. Set POLYMORPH_BASE_URL and POLYMORPH_TOKEN env vars");
|
|
61
|
+
console.log(' 2. Run "314-lex extract" to scan your codebase for KUD types');
|
|
62
|
+
console.log(' 3. Run "314-lex push kuds" to sync to the database');
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// src/cli/commands/extract.ts
|
|
67
|
+
import { readFile as readFile2, readdir, writeFile as writeFile2 } from "fs/promises";
|
|
68
|
+
import { resolve as resolve3, relative, join } from "path";
|
|
69
|
+
|
|
70
|
+
// src/cli/helpers.ts
|
|
71
|
+
import { readFile } from "fs/promises";
|
|
72
|
+
import { resolve as resolve2 } from "path";
|
|
73
|
+
async function loadConfig(configPath) {
|
|
74
|
+
const path = configPath ?? resolve2(process.cwd(), "314-lex.config.json");
|
|
75
|
+
try {
|
|
76
|
+
const raw = await readFile(path, "utf-8");
|
|
77
|
+
return LexConfigSchema.parse(JSON.parse(raw));
|
|
78
|
+
} catch (err) {
|
|
79
|
+
if (err.code === "ENOENT") {
|
|
80
|
+
throw new LexConfigError(`Config file not found: ${path}. Run "314-lex init" first.`);
|
|
81
|
+
}
|
|
82
|
+
throw err;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
function resolveEnvValue(value) {
|
|
86
|
+
if (value.startsWith("env:")) {
|
|
87
|
+
const envVar = value.slice(4);
|
|
88
|
+
const envValue = process.env[envVar];
|
|
89
|
+
if (!envValue) {
|
|
90
|
+
throw new LexConfigError(`Environment variable ${envVar} is not set`);
|
|
91
|
+
}
|
|
92
|
+
return envValue;
|
|
93
|
+
}
|
|
94
|
+
return value;
|
|
95
|
+
}
|
|
96
|
+
function createClientFromEnv(config) {
|
|
97
|
+
const baseUrl = process.env.POLYMORPH_BASE_URL ?? (config?.api?.baseUrl ? resolveEnvValue(config.api.baseUrl) : void 0);
|
|
98
|
+
const token = process.env.POLYMORPH_TOKEN ?? (config?.api?.token ? resolveEnvValue(config.api.token) : void 0);
|
|
99
|
+
const projectId = process.env.LEX_PROJECT_ID ?? config?.projectId;
|
|
100
|
+
if (!baseUrl) throw new LexConfigError("POLYMORPH_BASE_URL is required");
|
|
101
|
+
if (!token) throw new LexConfigError("POLYMORPH_TOKEN is required");
|
|
102
|
+
if (!projectId) throw new LexConfigError("Project ID is required (set LEX_PROJECT_ID or configure projectId in config)");
|
|
103
|
+
return createLexClient({ baseUrl, token, projectId });
|
|
104
|
+
}
|
|
105
|
+
function printSyncResult(result) {
|
|
106
|
+
console.log(` Created: ${result.created}`);
|
|
107
|
+
console.log(` Updated: ${result.updated}`);
|
|
108
|
+
console.log(` Deleted: ${result.deleted}`);
|
|
109
|
+
console.log(` Unchanged: ${result.unchanged}`);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// src/cli/commands/extract.ts
|
|
113
|
+
function registerExtractCommand(program2) {
|
|
114
|
+
program2.command("extract").description("Extract KUD types from codebase into kuds.registry.json").option("-c, --config <path>", "Path to 314-lex.config.json").action(async (opts) => {
|
|
115
|
+
const config = await loadConfig(opts.config);
|
|
116
|
+
const kudsConfig = config.kuds;
|
|
117
|
+
if (!kudsConfig) {
|
|
118
|
+
console.error('No "kuds" section in config. Add typesFile and componentsDir.');
|
|
119
|
+
process.exit(1);
|
|
120
|
+
}
|
|
121
|
+
const typesFile = resolve3(process.cwd(), kudsConfig.typesFile);
|
|
122
|
+
const componentsDir = resolve3(process.cwd(), kudsConfig.componentsDir);
|
|
123
|
+
const registryPath = resolve3(process.cwd(), kudsConfig.registry);
|
|
124
|
+
console.log(`Scanning ${kudsConfig.typesFile}...`);
|
|
125
|
+
const typesContent = await readFile2(typesFile, "utf-8");
|
|
126
|
+
const kudTypes = extractKUDTypes(typesContent);
|
|
127
|
+
if (kudTypes.length === 0) {
|
|
128
|
+
console.log('No KUD types found. Expected a union type like: type KUDType = "hero" | "cta" | ...');
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
console.log(`Found ${kudTypes.length} KUD types: ${kudTypes.join(", ")}`);
|
|
132
|
+
const componentMap = await scanComponents(componentsDir);
|
|
133
|
+
const entries = kudTypes.map((type) => {
|
|
134
|
+
const componentPath = componentMap.get(type);
|
|
135
|
+
return {
|
|
136
|
+
type,
|
|
137
|
+
label: type.split("-").map((w) => w.charAt(0).toUpperCase() + w.slice(1)).join(" "),
|
|
138
|
+
version: 1,
|
|
139
|
+
schema: {},
|
|
140
|
+
...componentPath ? { componentPath: relative(process.cwd(), componentPath) } : {}
|
|
141
|
+
};
|
|
142
|
+
});
|
|
143
|
+
const registry = {
|
|
144
|
+
version: 1,
|
|
145
|
+
projectId: config.projectId,
|
|
146
|
+
generatedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
147
|
+
kuds: entries
|
|
148
|
+
};
|
|
149
|
+
await writeFile2(registryPath, JSON.stringify(registry, null, 2) + "\n", "utf-8");
|
|
150
|
+
console.log(`
|
|
151
|
+
Wrote ${entries.length} KUDs to ${kudsConfig.registry}`);
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
function extractKUDTypes(content) {
|
|
155
|
+
const unionRegex = /(?:export\s+)?type\s+KUDType\s*=\s*([^;]+)/;
|
|
156
|
+
const match = content.match(unionRegex);
|
|
157
|
+
if (!match) return [];
|
|
158
|
+
const unionBody = match[1];
|
|
159
|
+
const stringLiterals = unionBody.match(/['"]([^'"]+)['"]/g);
|
|
160
|
+
if (!stringLiterals) return [];
|
|
161
|
+
return stringLiterals.map((s) => s.replace(/['"]/g, ""));
|
|
162
|
+
}
|
|
163
|
+
async function scanComponents(dir) {
|
|
164
|
+
const map = /* @__PURE__ */ new Map();
|
|
165
|
+
try {
|
|
166
|
+
const entries = await readdir(dir, { withFileTypes: true });
|
|
167
|
+
for (const entry of entries) {
|
|
168
|
+
if (entry.isDirectory()) {
|
|
169
|
+
const name = entry.name.toLowerCase();
|
|
170
|
+
const fullPath = join(dir, entry.name);
|
|
171
|
+
map.set(name, fullPath);
|
|
172
|
+
} else if (entry.isFile() && /\.(tsx?|jsx?)$/.test(entry.name)) {
|
|
173
|
+
const name = entry.name.replace(/\.(tsx?|jsx?)$/, "").toLowerCase();
|
|
174
|
+
const kebab = name.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
|
|
175
|
+
map.set(kebab, join(dir, entry.name));
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
} catch {
|
|
179
|
+
}
|
|
180
|
+
return map;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
// src/cli/commands/push.ts
|
|
184
|
+
import { resolve as resolve4 } from "path";
|
|
185
|
+
function registerPushCommand(program2) {
|
|
186
|
+
program2.command("push <target>").description("Push data to the database (kuds or tokens)").option("-c, --config <path>", "Path to 314-lex.config.json").action(async (target, opts) => {
|
|
187
|
+
const config = await loadConfig(opts.config);
|
|
188
|
+
const lex = createClientFromEnv(config);
|
|
189
|
+
switch (target) {
|
|
190
|
+
case "kuds": {
|
|
191
|
+
const registryPath = resolve4(process.cwd(), config.kuds?.registry ?? "kuds.registry.json");
|
|
192
|
+
console.log(`Pushing KUDs from ${registryPath} to database...`);
|
|
193
|
+
const result = await lex.kuds.syncFromRegistry(registryPath);
|
|
194
|
+
console.log("KUD sync complete:");
|
|
195
|
+
printSyncResult(result);
|
|
196
|
+
break;
|
|
197
|
+
}
|
|
198
|
+
case "tokens": {
|
|
199
|
+
const cssPath = resolve4(process.cwd(), config.tokens?.css ?? "src/app/globals.css");
|
|
200
|
+
console.log(`Pushing tokens from ${cssPath} to database...`);
|
|
201
|
+
const result = await lex.tokens.pushFromCode(cssPath);
|
|
202
|
+
console.log(`Token sync complete: ${result.upserted} tokens upserted`);
|
|
203
|
+
break;
|
|
204
|
+
}
|
|
205
|
+
default:
|
|
206
|
+
console.error(`Unknown target: ${target}. Use "kuds" or "tokens".`);
|
|
207
|
+
process.exit(1);
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
// src/cli/commands/pull.ts
|
|
213
|
+
import { resolve as resolve5 } from "path";
|
|
214
|
+
function registerPullCommand(program2) {
|
|
215
|
+
program2.command("pull <target>").description("Pull data from the database (kuds or tokens)").option("-c, --config <path>", "Path to 314-lex.config.json").action(async (target, opts) => {
|
|
216
|
+
const config = await loadConfig(opts.config);
|
|
217
|
+
const lex = createClientFromEnv(config);
|
|
218
|
+
switch (target) {
|
|
219
|
+
case "kuds": {
|
|
220
|
+
const registryPath = resolve5(process.cwd(), config.kuds?.registry ?? "kuds.registry.json");
|
|
221
|
+
console.log(`Pulling KUDs from database to ${registryPath}...`);
|
|
222
|
+
await lex.kuds.syncToRegistry(registryPath);
|
|
223
|
+
console.log("KUD pull complete.");
|
|
224
|
+
break;
|
|
225
|
+
}
|
|
226
|
+
case "tokens": {
|
|
227
|
+
const cssPath = resolve5(process.cwd(), config.tokens?.css ?? "src/app/globals.css");
|
|
228
|
+
console.log(`Pulling tokens from database to ${cssPath}...`);
|
|
229
|
+
await lex.tokens.pullToCode(cssPath);
|
|
230
|
+
console.log("Token pull complete.");
|
|
231
|
+
break;
|
|
232
|
+
}
|
|
233
|
+
default:
|
|
234
|
+
console.error(`Unknown target: ${target}. Use "kuds" or "tokens".`);
|
|
235
|
+
process.exit(1);
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
// src/cli/commands/sync.ts
|
|
241
|
+
import { resolve as resolve6 } from "path";
|
|
242
|
+
function registerSyncCommand(program2) {
|
|
243
|
+
program2.command("sync").description("Bidirectional sync of KUDs and tokens").option("-c, --config <path>", "Path to 314-lex.config.json").option("--prefer-local", "Prefer local registry over database on conflicts").action(async (opts) => {
|
|
244
|
+
const config = await loadConfig(opts.config);
|
|
245
|
+
const lex = createClientFromEnv(config);
|
|
246
|
+
const registryPath = resolve6(process.cwd(), config.kuds?.registry ?? "kuds.registry.json");
|
|
247
|
+
if (opts.preferLocal) {
|
|
248
|
+
console.log("Syncing KUDs (local \u2192 database)...");
|
|
249
|
+
const result = await lex.kuds.syncFromRegistry(registryPath);
|
|
250
|
+
console.log("KUD sync complete:");
|
|
251
|
+
printSyncResult(result);
|
|
252
|
+
} else {
|
|
253
|
+
console.log("Syncing KUDs (database \u2192 local)...");
|
|
254
|
+
await lex.kuds.syncToRegistry(registryPath);
|
|
255
|
+
console.log("KUD pull complete.");
|
|
256
|
+
}
|
|
257
|
+
if (config.tokens?.css) {
|
|
258
|
+
const cssPath = resolve6(process.cwd(), config.tokens.css);
|
|
259
|
+
if (opts.preferLocal) {
|
|
260
|
+
console.log("\nSyncing tokens (local \u2192 database)...");
|
|
261
|
+
const result = await lex.tokens.pushFromCode(cssPath);
|
|
262
|
+
console.log(`Token sync complete: ${result.upserted} tokens upserted`);
|
|
263
|
+
} else {
|
|
264
|
+
console.log("\nSyncing tokens (database \u2192 local)...");
|
|
265
|
+
await lex.tokens.pullToCode(cssPath);
|
|
266
|
+
console.log("Token pull complete.");
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
console.log("\nSync complete.");
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
// src/cli/commands/validate.ts
|
|
274
|
+
import { readFile as readFile3 } from "fs/promises";
|
|
275
|
+
import { resolve as resolve7 } from "path";
|
|
276
|
+
function registerValidateCommand(program2) {
|
|
277
|
+
program2.command("validate").description("Validate 314-lex.config.json and kuds.registry.json").option("-c, --config <path>", "Path to 314-lex.config.json").action(async (opts) => {
|
|
278
|
+
let hasErrors = false;
|
|
279
|
+
const configPath = opts.config ?? resolve7(process.cwd(), "314-lex.config.json");
|
|
280
|
+
console.log(`Validating ${configPath}...`);
|
|
281
|
+
try {
|
|
282
|
+
const raw = await readFile3(configPath, "utf-8");
|
|
283
|
+
const result = LexConfigSchema.safeParse(JSON.parse(raw));
|
|
284
|
+
if (result.success) {
|
|
285
|
+
console.log(" Config: valid");
|
|
286
|
+
} else {
|
|
287
|
+
console.error(" Config: invalid");
|
|
288
|
+
for (const issue of result.error.issues) {
|
|
289
|
+
console.error(` - ${issue.path.join(".")}: ${issue.message}`);
|
|
290
|
+
}
|
|
291
|
+
hasErrors = true;
|
|
292
|
+
}
|
|
293
|
+
} catch (err) {
|
|
294
|
+
console.error(` Config: ${err.message}`);
|
|
295
|
+
hasErrors = true;
|
|
296
|
+
}
|
|
297
|
+
const registryPath = resolve7(process.cwd(), "kuds.registry.json");
|
|
298
|
+
console.log(`Validating ${registryPath}...`);
|
|
299
|
+
try {
|
|
300
|
+
const raw = await readFile3(registryPath, "utf-8");
|
|
301
|
+
const result = KudRegistrySchema.safeParse(JSON.parse(raw));
|
|
302
|
+
if (result.success) {
|
|
303
|
+
console.log(` Registry: valid (${result.data.kuds.length} KUDs)`);
|
|
304
|
+
} else {
|
|
305
|
+
console.error(" Registry: invalid");
|
|
306
|
+
for (const issue of result.error.issues) {
|
|
307
|
+
console.error(` - ${issue.path.join(".")}: ${issue.message}`);
|
|
308
|
+
}
|
|
309
|
+
hasErrors = true;
|
|
310
|
+
}
|
|
311
|
+
} catch (err) {
|
|
312
|
+
console.error(` Registry: ${err.message}`);
|
|
313
|
+
hasErrors = true;
|
|
314
|
+
}
|
|
315
|
+
console.log("\nEnvironment:");
|
|
316
|
+
const baseUrl = process.env.POLYMORPH_BASE_URL;
|
|
317
|
+
const token = process.env.POLYMORPH_TOKEN;
|
|
318
|
+
console.log(` POLYMORPH_BASE_URL: ${baseUrl ? "set" : "NOT SET"}`);
|
|
319
|
+
console.log(` POLYMORPH_TOKEN: ${token ? "set" : "NOT SET"}`);
|
|
320
|
+
if (!baseUrl || !token) {
|
|
321
|
+
console.log("\n Warning: Required env vars are missing. API operations will fail.");
|
|
322
|
+
}
|
|
323
|
+
if (hasErrors) {
|
|
324
|
+
process.exit(1);
|
|
325
|
+
} else {
|
|
326
|
+
console.log("\nAll validations passed.");
|
|
327
|
+
}
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
// src/cli/commands/codegen.ts
|
|
332
|
+
import { readFile as readFile4, writeFile as writeFile3 } from "fs/promises";
|
|
333
|
+
import { resolve as resolve8, dirname } from "path";
|
|
334
|
+
import { mkdir } from "fs/promises";
|
|
335
|
+
function registerCodegenCommand(program2) {
|
|
336
|
+
program2.command("codegen").description("Generate TypeScript types from kuds.registry.json").option("-c, --config <path>", "Path to 314-lex.config.json").option("-o, --output <path>", "Output file path (defaults to src/types/generated-kuds.ts)").action(async (opts) => {
|
|
337
|
+
const config = await loadConfig(opts.config);
|
|
338
|
+
const registryPath = resolve8(process.cwd(), config.kuds?.registry ?? "kuds.registry.json");
|
|
339
|
+
const raw = await readFile4(registryPath, "utf-8");
|
|
340
|
+
const registry = KudRegistrySchema.parse(JSON.parse(raw));
|
|
341
|
+
if (registry.kuds.length === 0) {
|
|
342
|
+
console.log("No KUDs found in registry. Nothing to generate.");
|
|
343
|
+
return;
|
|
344
|
+
}
|
|
345
|
+
const outputPath = opts.output ?? resolve8(process.cwd(), "src/types/generated-kuds.ts");
|
|
346
|
+
await mkdir(dirname(outputPath), { recursive: true });
|
|
347
|
+
const lines = [
|
|
348
|
+
"// Auto-generated by 314-lex codegen",
|
|
349
|
+
`// Generated at: ${(/* @__PURE__ */ new Date()).toISOString()}`,
|
|
350
|
+
"// Do not edit manually",
|
|
351
|
+
""
|
|
352
|
+
];
|
|
353
|
+
const types = registry.kuds.map((k) => `'${k.type}'`);
|
|
354
|
+
lines.push(`export type KUDType = ${types.join(" | ")}`);
|
|
355
|
+
lines.push("");
|
|
356
|
+
for (const kud of registry.kuds) {
|
|
357
|
+
const interfaceName = toPascalCase(kud.type) + "Content";
|
|
358
|
+
lines.push(`export interface ${interfaceName} {`);
|
|
359
|
+
for (const [fieldName, fieldDef] of Object.entries(kud.schema)) {
|
|
360
|
+
const tsType = fieldDefToTSType(fieldDef);
|
|
361
|
+
const optional = fieldDef.required ? "" : "?";
|
|
362
|
+
lines.push(` ${fieldName}${optional}: ${tsType}`);
|
|
363
|
+
}
|
|
364
|
+
lines.push("}");
|
|
365
|
+
lines.push("");
|
|
366
|
+
}
|
|
367
|
+
lines.push("export interface KUDContentMap {");
|
|
368
|
+
for (const kud of registry.kuds) {
|
|
369
|
+
const interfaceName = toPascalCase(kud.type) + "Content";
|
|
370
|
+
lines.push(` '${kud.type}': ${interfaceName}`);
|
|
371
|
+
}
|
|
372
|
+
lines.push("}");
|
|
373
|
+
lines.push("");
|
|
374
|
+
await writeFile3(outputPath, lines.join("\n"), "utf-8");
|
|
375
|
+
console.log(`Generated ${registry.kuds.length} type definitions to ${outputPath}`);
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
function toPascalCase(str) {
|
|
379
|
+
return str.split(/[-_]/).map((w) => w.charAt(0).toUpperCase() + w.slice(1)).join("");
|
|
380
|
+
}
|
|
381
|
+
function fieldDefToTSType(fieldDef) {
|
|
382
|
+
switch (fieldDef.type) {
|
|
383
|
+
case "string":
|
|
384
|
+
case "text":
|
|
385
|
+
case "link":
|
|
386
|
+
return "string";
|
|
387
|
+
case "number":
|
|
388
|
+
return "number";
|
|
389
|
+
case "boolean":
|
|
390
|
+
return "boolean";
|
|
391
|
+
case "image":
|
|
392
|
+
return "{ url: string; alt?: string }";
|
|
393
|
+
case "array":
|
|
394
|
+
if (fieldDef.items) {
|
|
395
|
+
return `${fieldDefToTSType(fieldDef.items)}[]`;
|
|
396
|
+
}
|
|
397
|
+
return "unknown[]";
|
|
398
|
+
case "object":
|
|
399
|
+
if (fieldDef.properties) {
|
|
400
|
+
const props = Object.entries(fieldDef.properties).map(([name, def]) => {
|
|
401
|
+
const opt = def.required ? "" : "?";
|
|
402
|
+
return `${name}${opt}: ${fieldDefToTSType(def)}`;
|
|
403
|
+
}).join("; ");
|
|
404
|
+
return `{ ${props} }`;
|
|
405
|
+
}
|
|
406
|
+
return "Record<string, unknown>";
|
|
407
|
+
default:
|
|
408
|
+
return "unknown";
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
// src/cli/index.ts
|
|
413
|
+
var program = new Command();
|
|
414
|
+
program.name("314-lex").description("CLI for p1-polymorph-studio \u2014 KUD/KUI database sync & config management").version("0.1.0");
|
|
415
|
+
registerInitCommand(program);
|
|
416
|
+
registerExtractCommand(program);
|
|
417
|
+
registerPushCommand(program);
|
|
418
|
+
registerPullCommand(program);
|
|
419
|
+
registerSyncCommand(program);
|
|
420
|
+
registerValidateCommand(program);
|
|
421
|
+
registerCodegenCommand(program);
|
|
422
|
+
program.parse();
|
|
423
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/cli/index.ts","../../src/cli/commands/init.ts","../../src/cli/commands/extract.ts","../../src/cli/helpers.ts","../../src/cli/commands/push.ts","../../src/cli/commands/pull.ts","../../src/cli/commands/sync.ts","../../src/cli/commands/validate.ts","../../src/cli/commands/codegen.ts"],"sourcesContent":["import { Command } from 'commander'\nimport { registerInitCommand } from './commands/init.js'\nimport { registerExtractCommand } from './commands/extract.js'\nimport { registerPushCommand } from './commands/push.js'\nimport { registerPullCommand } from './commands/pull.js'\nimport { registerSyncCommand } from './commands/sync.js'\nimport { registerValidateCommand } from './commands/validate.js'\nimport { registerCodegenCommand } from './commands/codegen.js'\n\nconst program = new Command()\n\nprogram\n .name('314-lex')\n .description('CLI for p1-polymorph-studio — KUD/KUI database sync & config management')\n .version('0.1.0')\n\nregisterInitCommand(program)\nregisterExtractCommand(program)\nregisterPushCommand(program)\nregisterPullCommand(program)\nregisterSyncCommand(program)\nregisterValidateCommand(program)\nregisterCodegenCommand(program)\n\nprogram.parse()\n","import { writeFile, access } from 'node:fs/promises'\nimport { resolve } from 'node:path'\nimport type { Command } from 'commander'\nimport type { LexConfig } from '../../types/config.js'\nimport type { KudRegistry } from '../../types/registry.js'\n\nexport function registerInitCommand(program: Command): void {\n program\n .command('init')\n .description('Initialize 314-lex config for a new project')\n .option('-n, --name <name>', 'Project name')\n .option('-p, --project-id <id>', 'Project ID')\n .action(async (opts) => {\n const configPath = resolve(process.cwd(), '314-lex.config.json')\n const registryPath = resolve(process.cwd(), 'kuds.registry.json')\n\n // Check if config already exists\n try {\n await access(configPath)\n console.log('314-lex.config.json already exists. Skipping.')\n return\n } catch {\n // File doesn't exist, proceed\n }\n\n const name = opts.name ?? 'my-project'\n const projectId = opts.projectId ?? `proj_${name.toLowerCase().replace(/\\s+/g, '_')}`\n\n const config: LexConfig = {\n $schema: 'https://unpkg.com/@314-lex/sdk/schema/config.json',\n version: 2,\n name,\n projectId,\n tokens: {\n source: 'tailwind-v4',\n css: 'src/app/globals.css',\n },\n kuds: {\n typesFile: 'src/types/intent.ts',\n componentsDir: 'src/components/sections/',\n registry: 'kuds.registry.json',\n autoSync: false,\n },\n api: {\n baseUrl: 'env:POLYMORPH_BASE_URL',\n token: 'env:POLYMORPH_TOKEN',\n routes: '/api/314-lex',\n },\n }\n\n const registry: KudRegistry = {\n version: 1,\n projectId,\n generatedAt: new Date().toISOString(),\n kuds: [],\n }\n\n await writeFile(configPath, JSON.stringify(config, null, 2) + '\\n', 'utf-8')\n await writeFile(registryPath, JSON.stringify(registry, null, 2) + '\\n', 'utf-8')\n\n console.log('Created 314-lex.config.json')\n console.log('Created kuds.registry.json')\n console.log(`\\nProject: ${name} (${projectId})`)\n console.log('\\nNext steps:')\n console.log(' 1. Set POLYMORPH_BASE_URL and POLYMORPH_TOKEN env vars')\n console.log(' 2. Run \"314-lex extract\" to scan your codebase for KUD types')\n console.log(' 3. Run \"314-lex push kuds\" to sync to the database')\n })\n}\n","import { readFile, readdir, writeFile } from 'node:fs/promises'\nimport { resolve, relative, join } from 'node:path'\nimport type { Command } from 'commander'\nimport type { KudRegistryEntry, KudRegistry } from '../../types/registry.js'\nimport { loadConfig } from '../helpers.js'\n\nexport function registerExtractCommand(program: Command): void {\n program\n .command('extract')\n .description('Extract KUD types from codebase into kuds.registry.json')\n .option('-c, --config <path>', 'Path to 314-lex.config.json')\n .action(async (opts) => {\n const config = await loadConfig(opts.config)\n const kudsConfig = config.kuds\n\n if (!kudsConfig) {\n console.error('No \"kuds\" section in config. Add typesFile and componentsDir.')\n process.exit(1)\n }\n\n const typesFile = resolve(process.cwd(), kudsConfig.typesFile)\n const componentsDir = resolve(process.cwd(), kudsConfig.componentsDir)\n const registryPath = resolve(process.cwd(), kudsConfig.registry)\n\n // Extract KUD types from the TypeScript file\n console.log(`Scanning ${kudsConfig.typesFile}...`)\n const typesContent = await readFile(typesFile, 'utf-8')\n const kudTypes = extractKUDTypes(typesContent)\n\n if (kudTypes.length === 0) {\n console.log('No KUD types found. Expected a union type like: type KUDType = \"hero\" | \"cta\" | ...')\n return\n }\n\n console.log(`Found ${kudTypes.length} KUD types: ${kudTypes.join(', ')}`)\n\n // Scan components directory for matching section components\n const componentMap = await scanComponents(componentsDir)\n\n // Build registry entries\n const entries: KudRegistryEntry[] = kudTypes.map((type) => {\n const componentPath = componentMap.get(type)\n return {\n type,\n label: type\n .split('-')\n .map((w) => w.charAt(0).toUpperCase() + w.slice(1))\n .join(' '),\n version: 1,\n schema: {},\n ...(componentPath ? { componentPath: relative(process.cwd(), componentPath) } : {}),\n }\n })\n\n const registry: KudRegistry = {\n version: 1,\n projectId: config.projectId,\n generatedAt: new Date().toISOString(),\n kuds: entries,\n }\n\n await writeFile(registryPath, JSON.stringify(registry, null, 2) + '\\n', 'utf-8')\n console.log(`\\nWrote ${entries.length} KUDs to ${kudsConfig.registry}`)\n })\n}\n\nfunction extractKUDTypes(content: string): string[] {\n // Match: type KUDType = 'hero' | 'pricing-card' | ...\n // or: export type KUDType = \"hero\" | \"pricing-card\" | ...\n const unionRegex = /(?:export\\s+)?type\\s+KUDType\\s*=\\s*([^;]+)/\n const match = content.match(unionRegex)\n if (!match) return []\n\n const unionBody = match[1]\n const stringLiterals = unionBody.match(/['\"]([^'\"]+)['\"]/g)\n if (!stringLiterals) return []\n\n return stringLiterals.map((s) => s.replace(/['\"]/g, ''))\n}\n\nasync function scanComponents(dir: string): Promise<Map<string, string>> {\n const map = new Map<string, string>()\n\n try {\n const entries = await readdir(dir, { withFileTypes: true })\n for (const entry of entries) {\n if (entry.isDirectory()) {\n // Look for index.tsx or component file inside\n const name = entry.name.toLowerCase()\n const fullPath = join(dir, entry.name)\n map.set(name, fullPath)\n } else if (entry.isFile() && /\\.(tsx?|jsx?)$/.test(entry.name)) {\n const name = entry.name.replace(/\\.(tsx?|jsx?)$/, '').toLowerCase()\n // Convert PascalCase to kebab-case\n const kebab = name.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase()\n map.set(kebab, join(dir, entry.name))\n }\n }\n } catch {\n // Directory doesn't exist yet, that's OK\n }\n\n return map\n}\n","import { readFile } from 'node:fs/promises'\nimport { resolve } from 'node:path'\nimport { createLexClient, type LexClient } from '../index.js'\nimport { LexConfigSchema, type LexConfig } from '../types/config.js'\nimport { LexConfigError } from '../utils/errors.js'\n\nexport async function loadConfig(configPath?: string): Promise<LexConfig> {\n const path = configPath ?? resolve(process.cwd(), '314-lex.config.json')\n try {\n const raw = await readFile(path, 'utf-8')\n return LexConfigSchema.parse(JSON.parse(raw))\n } catch (err) {\n if ((err as NodeJS.ErrnoException).code === 'ENOENT') {\n throw new LexConfigError(`Config file not found: ${path}. Run \"314-lex init\" first.`)\n }\n throw err\n }\n}\n\nfunction resolveEnvValue(value: string): string {\n if (value.startsWith('env:')) {\n const envVar = value.slice(4)\n const envValue = process.env[envVar]\n if (!envValue) {\n throw new LexConfigError(`Environment variable ${envVar} is not set`)\n }\n return envValue\n }\n return value\n}\n\nexport function createClientFromEnv(config?: LexConfig): LexClient {\n const baseUrl = process.env.POLYMORPH_BASE_URL\n ?? (config?.api?.baseUrl ? resolveEnvValue(config.api.baseUrl) : undefined)\n\n const token = process.env.POLYMORPH_TOKEN\n ?? (config?.api?.token ? resolveEnvValue(config.api.token) : undefined)\n\n const projectId = process.env.LEX_PROJECT_ID ?? config?.projectId\n\n if (!baseUrl) throw new LexConfigError('POLYMORPH_BASE_URL is required')\n if (!token) throw new LexConfigError('POLYMORPH_TOKEN is required')\n if (!projectId) throw new LexConfigError('Project ID is required (set LEX_PROJECT_ID or configure projectId in config)')\n\n return createLexClient({ baseUrl, token, projectId })\n}\n\nexport function printSyncResult(result: { created: number; updated: number; deleted: number; unchanged: number }): void {\n console.log(` Created: ${result.created}`)\n console.log(` Updated: ${result.updated}`)\n console.log(` Deleted: ${result.deleted}`)\n console.log(` Unchanged: ${result.unchanged}`)\n}\n","import { resolve } from 'node:path'\nimport type { Command } from 'commander'\nimport { loadConfig, createClientFromEnv, printSyncResult } from '../helpers.js'\n\nexport function registerPushCommand(program: Command): void {\n program\n .command('push <target>')\n .description('Push data to the database (kuds or tokens)')\n .option('-c, --config <path>', 'Path to 314-lex.config.json')\n .action(async (target, opts) => {\n const config = await loadConfig(opts.config)\n const lex = createClientFromEnv(config)\n\n switch (target) {\n case 'kuds': {\n const registryPath = resolve(process.cwd(), config.kuds?.registry ?? 'kuds.registry.json')\n console.log(`Pushing KUDs from ${registryPath} to database...`)\n const result = await lex.kuds.syncFromRegistry(registryPath)\n console.log('KUD sync complete:')\n printSyncResult(result)\n break\n }\n case 'tokens': {\n const cssPath = resolve(process.cwd(), config.tokens?.css ?? 'src/app/globals.css')\n console.log(`Pushing tokens from ${cssPath} to database...`)\n const result = await lex.tokens.pushFromCode(cssPath)\n console.log(`Token sync complete: ${result.upserted} tokens upserted`)\n break\n }\n default:\n console.error(`Unknown target: ${target}. Use \"kuds\" or \"tokens\".`)\n process.exit(1)\n }\n })\n}\n","import { resolve } from 'node:path'\nimport type { Command } from 'commander'\nimport { loadConfig, createClientFromEnv } from '../helpers.js'\n\nexport function registerPullCommand(program: Command): void {\n program\n .command('pull <target>')\n .description('Pull data from the database (kuds or tokens)')\n .option('-c, --config <path>', 'Path to 314-lex.config.json')\n .action(async (target, opts) => {\n const config = await loadConfig(opts.config)\n const lex = createClientFromEnv(config)\n\n switch (target) {\n case 'kuds': {\n const registryPath = resolve(process.cwd(), config.kuds?.registry ?? 'kuds.registry.json')\n console.log(`Pulling KUDs from database to ${registryPath}...`)\n await lex.kuds.syncToRegistry(registryPath)\n console.log('KUD pull complete.')\n break\n }\n case 'tokens': {\n const cssPath = resolve(process.cwd(), config.tokens?.css ?? 'src/app/globals.css')\n console.log(`Pulling tokens from database to ${cssPath}...`)\n await lex.tokens.pullToCode(cssPath)\n console.log('Token pull complete.')\n break\n }\n default:\n console.error(`Unknown target: ${target}. Use \"kuds\" or \"tokens\".`)\n process.exit(1)\n }\n })\n}\n","import { resolve } from 'node:path'\nimport type { Command } from 'commander'\nimport { loadConfig, createClientFromEnv, printSyncResult } from '../helpers.js'\n\nexport function registerSyncCommand(program: Command): void {\n program\n .command('sync')\n .description('Bidirectional sync of KUDs and tokens')\n .option('-c, --config <path>', 'Path to 314-lex.config.json')\n .option('--prefer-local', 'Prefer local registry over database on conflicts')\n .action(async (opts) => {\n const config = await loadConfig(opts.config)\n const lex = createClientFromEnv(config)\n\n // Sync KUDs\n const registryPath = resolve(process.cwd(), config.kuds?.registry ?? 'kuds.registry.json')\n\n if (opts.preferLocal) {\n console.log('Syncing KUDs (local → database)...')\n const result = await lex.kuds.syncFromRegistry(registryPath)\n console.log('KUD sync complete:')\n printSyncResult(result)\n } else {\n console.log('Syncing KUDs (database → local)...')\n await lex.kuds.syncToRegistry(registryPath)\n console.log('KUD pull complete.')\n }\n\n // Sync tokens\n if (config.tokens?.css) {\n const cssPath = resolve(process.cwd(), config.tokens.css)\n\n if (opts.preferLocal) {\n console.log('\\nSyncing tokens (local → database)...')\n const result = await lex.tokens.pushFromCode(cssPath)\n console.log(`Token sync complete: ${result.upserted} tokens upserted`)\n } else {\n console.log('\\nSyncing tokens (database → local)...')\n await lex.tokens.pullToCode(cssPath)\n console.log('Token pull complete.')\n }\n }\n\n console.log('\\nSync complete.')\n })\n}\n","import { readFile } from 'node:fs/promises'\nimport { resolve } from 'node:path'\nimport type { Command } from 'commander'\nimport { LexConfigSchema } from '../../types/config.js'\nimport { KudRegistrySchema } from '../../types/registry.js'\n\nexport function registerValidateCommand(program: Command): void {\n program\n .command('validate')\n .description('Validate 314-lex.config.json and kuds.registry.json')\n .option('-c, --config <path>', 'Path to 314-lex.config.json')\n .action(async (opts) => {\n let hasErrors = false\n\n // Validate config\n const configPath = opts.config ?? resolve(process.cwd(), '314-lex.config.json')\n console.log(`Validating ${configPath}...`)\n try {\n const raw = await readFile(configPath, 'utf-8')\n const result = LexConfigSchema.safeParse(JSON.parse(raw))\n if (result.success) {\n console.log(' Config: valid')\n } else {\n console.error(' Config: invalid')\n for (const issue of result.error.issues) {\n console.error(` - ${issue.path.join('.')}: ${issue.message}`)\n }\n hasErrors = true\n }\n } catch (err) {\n console.error(` Config: ${(err as Error).message}`)\n hasErrors = true\n }\n\n // Validate registry\n const registryPath = resolve(process.cwd(), 'kuds.registry.json')\n console.log(`Validating ${registryPath}...`)\n try {\n const raw = await readFile(registryPath, 'utf-8')\n const result = KudRegistrySchema.safeParse(JSON.parse(raw))\n if (result.success) {\n console.log(` Registry: valid (${result.data.kuds.length} KUDs)`)\n } else {\n console.error(' Registry: invalid')\n for (const issue of result.error.issues) {\n console.error(` - ${issue.path.join('.')}: ${issue.message}`)\n }\n hasErrors = true\n }\n } catch (err) {\n console.error(` Registry: ${(err as Error).message}`)\n hasErrors = true\n }\n\n // Check env vars\n console.log('\\nEnvironment:')\n const baseUrl = process.env.POLYMORPH_BASE_URL\n const token = process.env.POLYMORPH_TOKEN\n console.log(` POLYMORPH_BASE_URL: ${baseUrl ? 'set' : 'NOT SET'}`)\n console.log(` POLYMORPH_TOKEN: ${token ? 'set' : 'NOT SET'}`)\n\n if (!baseUrl || !token) {\n console.log('\\n Warning: Required env vars are missing. API operations will fail.')\n }\n\n if (hasErrors) {\n process.exit(1)\n } else {\n console.log('\\nAll validations passed.')\n }\n })\n}\n","import { readFile, writeFile } from 'node:fs/promises'\nimport { resolve, dirname } from 'node:path'\nimport { mkdir } from 'node:fs/promises'\nimport type { Command } from 'commander'\nimport { KudRegistrySchema } from '../../types/registry.js'\nimport { loadConfig } from '../helpers.js'\nimport type { KUDFieldDef } from '../../types/kud.js'\n\nexport function registerCodegenCommand(program: Command): void {\n program\n .command('codegen')\n .description('Generate TypeScript types from kuds.registry.json')\n .option('-c, --config <path>', 'Path to 314-lex.config.json')\n .option('-o, --output <path>', 'Output file path (defaults to src/types/generated-kuds.ts)')\n .action(async (opts) => {\n const config = await loadConfig(opts.config)\n const registryPath = resolve(process.cwd(), config.kuds?.registry ?? 'kuds.registry.json')\n\n const raw = await readFile(registryPath, 'utf-8')\n const registry = KudRegistrySchema.parse(JSON.parse(raw))\n\n if (registry.kuds.length === 0) {\n console.log('No KUDs found in registry. Nothing to generate.')\n return\n }\n\n const outputPath = opts.output ?? resolve(process.cwd(), 'src/types/generated-kuds.ts')\n await mkdir(dirname(outputPath), { recursive: true })\n\n const lines: string[] = [\n '// Auto-generated by 314-lex codegen',\n `// Generated at: ${new Date().toISOString()}`,\n '// Do not edit manually',\n '',\n ]\n\n // Generate KUDType union\n const types = registry.kuds.map((k) => `'${k.type}'`)\n lines.push(`export type KUDType = ${types.join(' | ')}`)\n lines.push('')\n\n // Generate content interfaces for each KUD\n for (const kud of registry.kuds) {\n const interfaceName = toPascalCase(kud.type) + 'Content'\n lines.push(`export interface ${interfaceName} {`)\n\n for (const [fieldName, fieldDef] of Object.entries(kud.schema)) {\n const tsType = fieldDefToTSType(fieldDef)\n const optional = fieldDef.required ? '' : '?'\n lines.push(` ${fieldName}${optional}: ${tsType}`)\n }\n\n lines.push('}')\n lines.push('')\n }\n\n // Generate content type map\n lines.push('export interface KUDContentMap {')\n for (const kud of registry.kuds) {\n const interfaceName = toPascalCase(kud.type) + 'Content'\n lines.push(` '${kud.type}': ${interfaceName}`)\n }\n lines.push('}')\n lines.push('')\n\n await writeFile(outputPath, lines.join('\\n'), 'utf-8')\n console.log(`Generated ${registry.kuds.length} type definitions to ${outputPath}`)\n })\n}\n\nfunction toPascalCase(str: string): string {\n return str\n .split(/[-_]/)\n .map((w) => w.charAt(0).toUpperCase() + w.slice(1))\n .join('')\n}\n\nfunction fieldDefToTSType(fieldDef: KUDFieldDef): string {\n switch (fieldDef.type) {\n case 'string':\n case 'text':\n case 'link':\n return 'string'\n case 'number':\n return 'number'\n case 'boolean':\n return 'boolean'\n case 'image':\n return '{ url: string; alt?: string }'\n case 'array':\n if (fieldDef.items) {\n return `${fieldDefToTSType(fieldDef.items)}[]`\n }\n return 'unknown[]'\n case 'object':\n if (fieldDef.properties) {\n const props = Object.entries(fieldDef.properties)\n .map(([name, def]) => {\n const opt = def.required ? '' : '?'\n return `${name}${opt}: ${fieldDefToTSType(def)}`\n })\n .join('; ')\n return `{ ${props} }`\n }\n return 'Record<string, unknown>'\n default:\n return 'unknown'\n }\n}\n"],"mappings":";;;;;;;;AAAA,SAAS,eAAe;;;ACAxB,SAAS,WAAW,cAAc;AAClC,SAAS,eAAe;AAKjB,SAAS,oBAAoBA,UAAwB;AAC1D,EAAAA,SACG,QAAQ,MAAM,EACd,YAAY,6CAA6C,EACzD,OAAO,qBAAqB,cAAc,EAC1C,OAAO,yBAAyB,YAAY,EAC5C,OAAO,OAAO,SAAS;AACtB,UAAM,aAAa,QAAQ,QAAQ,IAAI,GAAG,qBAAqB;AAC/D,UAAM,eAAe,QAAQ,QAAQ,IAAI,GAAG,oBAAoB;AAGhE,QAAI;AACF,YAAM,OAAO,UAAU;AACvB,cAAQ,IAAI,+CAA+C;AAC3D;AAAA,IACF,QAAQ;AAAA,IAER;AAEA,UAAM,OAAO,KAAK,QAAQ;AAC1B,UAAM,YAAY,KAAK,aAAa,QAAQ,KAAK,YAAY,EAAE,QAAQ,QAAQ,GAAG,CAAC;AAEnF,UAAM,SAAoB;AAAA,MACxB,SAAS;AAAA,MACT,SAAS;AAAA,MACT;AAAA,MACA;AAAA,MACA,QAAQ;AAAA,QACN,QAAQ;AAAA,QACR,KAAK;AAAA,MACP;AAAA,MACA,MAAM;AAAA,QACJ,WAAW;AAAA,QACX,eAAe;AAAA,QACf,UAAU;AAAA,QACV,UAAU;AAAA,MACZ;AAAA,MACA,KAAK;AAAA,QACH,SAAS;AAAA,QACT,OAAO;AAAA,QACP,QAAQ;AAAA,MACV;AAAA,IACF;AAEA,UAAM,WAAwB;AAAA,MAC5B,SAAS;AAAA,MACT;AAAA,MACA,cAAa,oBAAI,KAAK,GAAE,YAAY;AAAA,MACpC,MAAM,CAAC;AAAA,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K;AAChC,iBAAO,GAAG,IAAI,GAAG,GAAG,KAAK,iBAAiB,GAAG,CAAC;AAAA,QAChD,CAAC,EACA,KAAK,IAAI;AACZ,eAAO,KAAK,KAAK;AAAA,MACnB;AACA,aAAO;AAAA,IACT;AACE,aAAO;AAAA,EACX;AACF;;;ARnGA,IAAM,UAAU,IAAI,QAAQ;AAE5B,QACG,KAAK,SAAS,EACd,YAAY,8EAAyE,EACrF,QAAQ,OAAO;AAElB,oBAAoB,OAAO;AAC3B,uBAAuB,OAAO;AAC9B,oBAAoB,OAAO;AAC3B,oBAAoB,OAAO;AAC3B,oBAAoB,OAAO;AAC3B,wBAAwB,OAAO;AAC/B,uBAAuB,OAAO;AAE9B,QAAQ,MAAM;","names":["program","readFile","writeFile","resolve","resolve","resolve","program","resolve","readFile","writeFile","resolve","program","resolve","resolve","program","resolve","resolve","program","resolve","readFile","resolve","program","resolve","readFile","readFile","writeFile","resolve","program","resolve","readFile","writeFile"]}
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
var _chunkHGZJ53NRcjs = require('./chunk-HGZJ53NR.cjs');
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
exports.CreateKUDInputSchema = _chunkHGZJ53NRcjs.CreateKUDInputSchema; exports.CreateKUIInputSchema = _chunkHGZJ53NRcjs.CreateKUIInputSchema; exports.DTCGTokenSchema = _chunkHGZJ53NRcjs.DTCGTokenSchema; exports.DesignTokenSchema = _chunkHGZJ53NRcjs.DesignTokenSchema; exports.IntentVectorSchema = _chunkHGZJ53NRcjs.IntentVectorSchema; exports.KUDFieldDefSchema = _chunkHGZJ53NRcjs.KUDFieldDefSchema; exports.KUDFieldTypeSchema = _chunkHGZJ53NRcjs.KUDFieldTypeSchema; exports.KUDSchema = _chunkHGZJ53NRcjs.KUDSchema; exports.KUISchema = _chunkHGZJ53NRcjs.KUISchema; exports.KUIStatusSchema = _chunkHGZJ53NRcjs.KUIStatusSchema; exports.KudRegistryEntrySchema = _chunkHGZJ53NRcjs.KudRegistryEntrySchema; exports.KudRegistrySchema = _chunkHGZJ53NRcjs.KudRegistrySchema; exports.LexApiError = _chunkHGZJ53NRcjs.LexApiError; exports.LexClientOptionsSchema = _chunkHGZJ53NRcjs.LexClientOptionsSchema; exports.LexConfigError = _chunkHGZJ53NRcjs.LexConfigError; exports.LexConfigSchema = _chunkHGZJ53NRcjs.LexConfigSchema; exports.LexValidationError = _chunkHGZJ53NRcjs.LexValidationError; exports.ListKUIsFilterSchema = _chunkHGZJ53NRcjs.ListKUIsFilterSchema; exports.PageLayoutSchema = _chunkHGZJ53NRcjs.PageLayoutSchema; exports.PageSlotSchema = _chunkHGZJ53NRcjs.PageSlotSchema; exports.ResolveKUIInputSchema = _chunkHGZJ53NRcjs.ResolveKUIInputSchema; exports.ResolvedPageSchema = _chunkHGZJ53NRcjs.ResolvedPageSchema; exports.ResolvedSlotSchema = _chunkHGZJ53NRcjs.ResolvedSlotSchema; exports.UpdateKUDInputSchema = _chunkHGZJ53NRcjs.UpdateKUDInputSchema; exports.UpdateKUIInputSchema = _chunkHGZJ53NRcjs.UpdateKUIInputSchema; exports.UpdateLayoutInputSchema = _chunkHGZJ53NRcjs.UpdateLayoutInputSchema; exports.createLexClient = _chunkHGZJ53NRcjs.createLexClient;
|
|
59
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/Users/brunoantunesluis/mathematica/01_engineering/p1-polymorph-studio/dist/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,guDAAC","file":"/Users/brunoantunesluis/mathematica/01_engineering/p1-polymorph-studio/dist/index.cjs"}
|