@gaganref/confect-cli 10.3.1-fork.51 → 10.3.1-fork.52
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/SectionFiles.mjs +25 -5
- package/dist/SectionFiles.mjs.map +1 -1
- package/package.json +3 -3
package/dist/SectionFiles.mjs
CHANGED
|
@@ -6,8 +6,16 @@ import { toPosixPath, writeFileStringAndLog } from "./utils.mjs";
|
|
|
6
6
|
import * as Effect from "effect/Effect";
|
|
7
7
|
import * as FileSystem from "effect/FileSystem";
|
|
8
8
|
import * as Path from "effect/Path";
|
|
9
|
+
import * as Result from "effect/Result";
|
|
9
10
|
import * as Schema from "effect/Schema";
|
|
10
11
|
//#region src/SectionFiles.ts
|
|
12
|
+
/**
|
|
13
|
+
* The files codegen writes directly in `confect/_generated`, current and
|
|
14
|
+
* legacy, which no section may claim.
|
|
15
|
+
*/
|
|
16
|
+
const builtIn = new Set(`spec schema convexSchema id components component refs docs services manifest
|
|
17
|
+
auth.providers testing api nodeApi impl nodeImpl nodeSpec registeredFunctions
|
|
18
|
+
nodeRegisteredFunctions`.split(/\s+/).map((name) => `${name}.ts`));
|
|
11
19
|
const header = (key) => `// Generated by \`confect codegen\` from the manifest section ${JSON.stringify(key)}. Do not edit.`;
|
|
12
20
|
const encodeSources = Schema.encodeSync(Schema.fromJsonString(Schema.Array(Schema.String)));
|
|
13
21
|
const visit = (leaves, each) => {
|
|
@@ -18,18 +26,30 @@ const visit = (leaves, each) => {
|
|
|
18
26
|
for (const leaf of leaves) walk(leaf.spec, leaf.pathSegments.join("/"), leaf.relativePath);
|
|
19
27
|
};
|
|
20
28
|
/**
|
|
21
|
-
* One claim per section key that generates a file, ordered by file.
|
|
29
|
+
* One claim per section key that generates a file, ordered by file. A name that
|
|
30
|
+
* is built in, not a `.ts` file directly in `_generated`, or claimed by two
|
|
31
|
+
* keys is refused.
|
|
22
32
|
*/
|
|
23
|
-
const claims = (leaves) => {
|
|
33
|
+
const claims = (leaves) => Result.gen(function* () {
|
|
24
34
|
const byKey = /* @__PURE__ */ new Map();
|
|
25
35
|
visit(leaves, (spec) => {
|
|
26
36
|
for (const { key, section } of spec.manifestSections ?? []) if (section.generate !== void 0 && !byKey.has(key)) byKey.set(key, section.generate);
|
|
27
37
|
});
|
|
38
|
+
const byFile = /* @__PURE__ */ new Map();
|
|
39
|
+
for (const [key, { file }] of byKey) {
|
|
40
|
+
const other = byFile.get(file);
|
|
41
|
+
const refusal = builtIn.has(file) ? `claims confect/_generated/${file}, which codegen writes itself.` : !/^[\w-]+\.ts$/.test(file) ? `claims ${JSON.stringify(file)}; name a .ts file directly inside confect/_generated.` : other !== void 0 ? `claims confect/_generated/${file}, which the manifest section ${JSON.stringify(other)} also claims.` : void 0;
|
|
42
|
+
if (refusal !== void 0) return yield* Result.fail(new InvalidManifestSectionError({
|
|
43
|
+
sectionKey: key,
|
|
44
|
+
reason: refusal
|
|
45
|
+
}));
|
|
46
|
+
byFile.set(file, key);
|
|
47
|
+
}
|
|
28
48
|
return [...byKey].map(([key, generate]) => ({
|
|
29
49
|
key,
|
|
30
50
|
generate
|
|
31
51
|
})).sort((a, b) => a.generate.file.localeCompare(b.generate.file));
|
|
32
|
-
};
|
|
52
|
+
});
|
|
33
53
|
const sourceFiles = Effect.gen(function* () {
|
|
34
54
|
const fs = yield* FileSystem.FileSystem;
|
|
35
55
|
const path = yield* Path.Path;
|
|
@@ -78,7 +98,7 @@ const render = Effect.fnUntraced(function* ({ key, generate }, input, files) {
|
|
|
78
98
|
const sync = Effect.fnUntraced(function* (leaves, mounts) {
|
|
79
99
|
const path = yield* Path.Path;
|
|
80
100
|
const generated = path.join(yield* ConfectDirectory.get, "_generated");
|
|
81
|
-
const claimed = claims(leaves);
|
|
101
|
+
const claimed = yield* Effect.fromResult(claims(leaves));
|
|
82
102
|
const functions = [];
|
|
83
103
|
visit(leaves, (_, functionPath, source) => functions.push({
|
|
84
104
|
path: functionPath,
|
|
@@ -99,6 +119,6 @@ const sync = Effect.fnUntraced(function* (leaves, mounts) {
|
|
|
99
119
|
return rendered.map(({ file }) => file);
|
|
100
120
|
});
|
|
101
121
|
//#endregion
|
|
102
|
-
export { sync };
|
|
122
|
+
export { builtIn, claims, sync };
|
|
103
123
|
|
|
104
124
|
//# sourceMappingURL=SectionFiles.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SectionFiles.mjs","names":["Bundler.bundle"],"sources":["../src/SectionFiles.ts"],"sourcesContent":["import type { FunctionSpec, GroupSpec, ManifestSection } from \"@confect/core\";\nimport * as Effect from \"effect/Effect\";\nimport * as FileSystem from \"effect/FileSystem\";\nimport * as Path from \"effect/Path\";\nimport * as Schema from \"effect/Schema\";\nimport { fromBundlerError } from \"./BuildError.js\";\nimport * as Bundler from \"./Bundler.js\";\nimport {\n InvalidManifestSectionError,\n logCodegenError,\n} from \"./CodegenError.js\";\nimport { ConfectDirectory } from \"./ConfectDirectory.js\";\nimport type { LoadedLeafModule } from \"./LeafModule.js\";\nimport { toPosixPath, writeFileStringAndLog } from \"./utils.js\";\n\ntype Leaf = Pick<LoadedLeafModule, \"spec\" | \"pathSegments\" | \"relativePath\">;\n\nconst header = (key: string) =>\n `// Generated by \\`confect codegen\\` from the manifest section ${JSON.stringify(key)}. Do not edit.`;\nconst encodeSources = Schema.encodeSync(\n Schema.fromJsonString(Schema.Array(Schema.String)),\n);\n\ninterface Claim {\n readonly key: string;\n readonly generate: ManifestSection.Generate;\n}\n\nconst visit = (\n leaves: ReadonlyArray<Leaf>,\n each: (spec: FunctionSpec.AnyWithProps, path: string, source: string) => void,\n) => {\n const walk = (\n group: GroupSpec.AnyWithProps,\n path: string,\n source: string,\n ) => {\n for (const spec of Object.values(group.functions))\n each(spec, `${path}:${spec.name}`, source);\n for (const [name, child] of Object.entries(group.groups))\n walk(child, `${path}/${name}`, source);\n };\n for (const leaf of leaves)\n walk(leaf.spec, leaf.pathSegments.join(\"/\"), leaf.relativePath);\n};\n\n/**\n * One claim per section key that generates a file, ordered by file.\n */\nconst claims = (leaves: ReadonlyArray<Leaf>): ReadonlyArray<Claim> => {\n const byKey = new Map<string, ManifestSection.Generate>();\n visit(leaves, (spec) => {\n for (const { key, section } of spec.manifestSections ?? [])\n if (section.generate !== undefined && !byKey.has(key))\n byKey.set(key, section.generate);\n });\n return [...byKey]\n .map(([key, generate]) => ({ key, generate }))\n .sort((a, b) => a.generate.file.localeCompare(b.generate.file));\n};\n\nconst sourceFiles = Effect.gen(function* () {\n const fs = yield* FileSystem.FileSystem;\n const path = yield* Path.Path;\n const confectDirectory = yield* ConfectDirectory.get;\n return (yield* fs.readDirectory(confectDirectory, { recursive: true }))\n .map((file) => toPosixPath(path, file))\n .filter(\n (file) =>\n file.endsWith(\".ts\") &&\n !file.endsWith(\".d.ts\") &&\n !file.split(\"/\").includes(\"_generated\"),\n )\n .sort();\n});\n\nconst render = Effect.fnUntraced(function* (\n { key, generate }: Claim,\n input: Omit<ManifestSection.GenerateInput, \"modules\">,\n files: ReadonlyArray<string>,\n) {\n const path = yield* Path.Path;\n const confectDirectory = yield* ConfectDirectory.get;\n const failed = (cause: unknown) =>\n new InvalidManifestSectionError({\n sectionKey: key,\n reason: `generate failed: ${String(cause)}`,\n });\n const matched = yield* Effect.try({\n try: () => files.filter((file) => generate.match(file)),\n catch: failed,\n });\n const modules = yield* Effect.forEach(matched, (relativePath) =>\n Bundler.bundle(path.join(confectDirectory, relativePath)).pipe(\n Effect.map(({ module }) => ({ relativePath, exports: module })),\n Effect.mapError((error) =>\n fromBundlerError(`confect/${relativePath}`, error),\n ),\n ),\n );\n const { contents, errors } = yield* Effect.try({\n try: () => generate.render({ ...input, modules }),\n catch: failed,\n });\n const [error, ...more] = errors.map(\n (reason) => new InvalidManifestSectionError({ sectionKey: key, reason }),\n );\n for (const other of more) yield* logCodegenError(other);\n if (error !== undefined) return yield* error;\n return [header(key), `// Sources: ${encodeSources(matched)}`, contents].join(\n \"\\n\",\n );\n});\n\n/**\n * Write each claimed file into `confect/_generated` once every section has\n * rendered. Every section renders before codegen fails with the first error\n * after logging the rest. Returns the claimed file names.\n */\nexport const sync = Effect.fnUntraced(function* (\n leaves: ReadonlyArray<Leaf>,\n mounts: ManifestSection.GenerateInput[\"mounts\"],\n) {\n const path = yield* Path.Path;\n const generated = path.join(yield* ConfectDirectory.get, \"_generated\");\n const claimed = claims(leaves);\n const functions: Array<{ path: string; source: string }> = [];\n visit(leaves, (_, functionPath, source) =>\n functions.push({ path: functionPath, source }),\n );\n const files = claimed.length === 0 ? [] : yield* sourceFiles;\n const [rendered, failures] = yield* Effect.partition(claimed, (claim) =>\n render(claim, { functions, mounts }, files).pipe(\n Effect.map((contents) => ({ file: claim.generate.file, contents })),\n ),\n );\n const [error, ...more] = failures;\n for (const other of more) yield* logCodegenError(other);\n if (error !== undefined) return yield* error;\n for (const { file, contents } of rendered)\n yield* writeFileStringAndLog(path.join(generated, file), contents);\n return rendered.map(({ file }) => file);\n});\n"],"mappings":";;;;;;;;;;AAiBA,MAAM,UAAU,QACd,iEAAiE,KAAK,UAAU,GAAG,EAAE;AACvF,MAAM,gBAAgB,OAAO,WAC3B,OAAO,eAAe,OAAO,MAAM,OAAO,MAAM,CAAC,CACnD;AAOA,MAAM,SACJ,QACA,SACG;CACH,MAAM,QACJ,OACA,MACA,WACG;EACH,KAAK,MAAM,QAAQ,OAAO,OAAO,MAAM,SAAS,GAC9C,KAAK,MAAM,GAAG,KAAK,GAAG,KAAK,QAAQ,MAAM;EAC3C,KAAK,MAAM,CAAC,MAAM,UAAU,OAAO,QAAQ,MAAM,MAAM,GACrD,KAAK,OAAO,GAAG,KAAK,GAAG,QAAQ,MAAM;CACzC;CACA,KAAK,MAAM,QAAQ,QACjB,KAAK,KAAK,MAAM,KAAK,aAAa,KAAK,GAAG,GAAG,KAAK,YAAY;AAClE;;;;AAKA,MAAM,UAAU,WAAsD;CACpE,MAAM,wBAAQ,IAAI,IAAsC;CACxD,MAAM,SAAS,SAA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KAAK,WAAW,IAAI,GAAG,QAAQ;CACnE,OAAO,SAAS,KAAK,EAAE,WAAW,IAAI;AACxC,CAAC"}
|
|
1
|
+
{"version":3,"file":"SectionFiles.mjs","names":["Bundler.bundle"],"sources":["../src/SectionFiles.ts"],"sourcesContent":["import type { FunctionSpec, GroupSpec, ManifestSection } from \"@confect/core\";\nimport * as Effect from \"effect/Effect\";\nimport * as FileSystem from \"effect/FileSystem\";\nimport * as Path from \"effect/Path\";\nimport * as Result from \"effect/Result\";\nimport * as Schema from \"effect/Schema\";\nimport { fromBundlerError } from \"./BuildError.js\";\nimport * as Bundler from \"./Bundler.js\";\nimport {\n InvalidManifestSectionError,\n logCodegenError,\n} from \"./CodegenError.js\";\nimport { ConfectDirectory } from \"./ConfectDirectory.js\";\nimport type { LoadedLeafModule } from \"./LeafModule.js\";\nimport { toPosixPath, writeFileStringAndLog } from \"./utils.js\";\n\ntype Leaf = Pick<LoadedLeafModule, \"spec\" | \"pathSegments\" | \"relativePath\">;\n\n/**\n * The files codegen writes directly in `confect/_generated`, current and\n * legacy, which no section may claim.\n */\nexport const builtIn: ReadonlySet<string> = new Set(\n `spec schema convexSchema id components component refs docs services manifest\n auth.providers testing api nodeApi impl nodeImpl nodeSpec registeredFunctions\n nodeRegisteredFunctions`\n .split(/\\s+/)\n .map((name) => `${name}.ts`),\n);\n\nconst header = (key: string) =>\n `// Generated by \\`confect codegen\\` from the manifest section ${JSON.stringify(key)}. Do not edit.`;\nconst encodeSources = Schema.encodeSync(\n Schema.fromJsonString(Schema.Array(Schema.String)),\n);\n\ninterface Claim {\n readonly key: string;\n readonly generate: ManifestSection.Generate;\n}\n\nconst visit = (\n leaves: ReadonlyArray<Leaf>,\n each: (spec: FunctionSpec.AnyWithProps, path: string, source: string) => void,\n) => {\n const walk = (\n group: GroupSpec.AnyWithProps,\n path: string,\n source: string,\n ) => {\n for (const spec of Object.values(group.functions))\n each(spec, `${path}:${spec.name}`, source);\n for (const [name, child] of Object.entries(group.groups))\n walk(child, `${path}/${name}`, source);\n };\n for (const leaf of leaves)\n walk(leaf.spec, leaf.pathSegments.join(\"/\"), leaf.relativePath);\n};\n\n/**\n * One claim per section key that generates a file, ordered by file. A name that\n * is built in, not a `.ts` file directly in `_generated`, or claimed by two\n * keys is refused.\n */\nexport const claims = (leaves: ReadonlyArray<Leaf>) =>\n Result.gen(function* () {\n const byKey = new Map<string, ManifestSection.Generate>();\n visit(leaves, (spec) => {\n for (const { key, section } of spec.manifestSections ?? [])\n if (section.generate !== undefined && !byKey.has(key))\n byKey.set(key, section.generate);\n });\n const byFile = new Map<string, string>();\n for (const [key, { file }] of byKey) {\n const other = byFile.get(file);\n const refusal = builtIn.has(file)\n ? `claims confect/_generated/${file}, which codegen writes itself.`\n : !/^[\\w-]+\\.ts$/.test(file)\n ? `claims ${JSON.stringify(file)}; name a .ts file directly inside confect/_generated.`\n : other !== undefined\n ? `claims confect/_generated/${file}, which the manifest section ${JSON.stringify(other)} also claims.`\n : undefined;\n if (refusal !== undefined)\n return yield* Result.fail(\n new InvalidManifestSectionError({ sectionKey: key, reason: refusal }),\n );\n byFile.set(file, key);\n }\n return [...byKey]\n .map(([key, generate]) => ({ key, generate }))\n .sort((a, b) => a.generate.file.localeCompare(b.generate.file));\n });\n\nconst sourceFiles = Effect.gen(function* () {\n const fs = yield* FileSystem.FileSystem;\n const path = yield* Path.Path;\n const confectDirectory = yield* ConfectDirectory.get;\n return (yield* fs.readDirectory(confectDirectory, { recursive: true }))\n .map((file) => toPosixPath(path, file))\n .filter(\n (file) =>\n file.endsWith(\".ts\") &&\n !file.endsWith(\".d.ts\") &&\n !file.split(\"/\").includes(\"_generated\"),\n )\n .sort();\n});\n\nconst render = Effect.fnUntraced(function* (\n { key, generate }: Claim,\n input: Omit<ManifestSection.GenerateInput, \"modules\">,\n files: ReadonlyArray<string>,\n) {\n const path = yield* Path.Path;\n const confectDirectory = yield* ConfectDirectory.get;\n const failed = (cause: unknown) =>\n new InvalidManifestSectionError({\n sectionKey: key,\n reason: `generate failed: ${String(cause)}`,\n });\n const matched = yield* Effect.try({\n try: () => files.filter((file) => generate.match(file)),\n catch: failed,\n });\n const modules = yield* Effect.forEach(matched, (relativePath) =>\n Bundler.bundle(path.join(confectDirectory, relativePath)).pipe(\n Effect.map(({ module }) => ({ relativePath, exports: module })),\n Effect.mapError((error) =>\n fromBundlerError(`confect/${relativePath}`, error),\n ),\n ),\n );\n const { contents, errors } = yield* Effect.try({\n try: () => generate.render({ ...input, modules }),\n catch: failed,\n });\n const [error, ...more] = errors.map(\n (reason) => new InvalidManifestSectionError({ sectionKey: key, reason }),\n );\n for (const other of more) yield* logCodegenError(other);\n if (error !== undefined) return yield* error;\n return [header(key), `// Sources: ${encodeSources(matched)}`, contents].join(\n \"\\n\",\n );\n});\n\n/**\n * Write each claimed file into `confect/_generated` once every section has\n * rendered. Every section renders before codegen fails with the first error\n * after logging the rest. Returns the claimed file names.\n */\nexport const sync = Effect.fnUntraced(function* (\n leaves: ReadonlyArray<Leaf>,\n mounts: ManifestSection.GenerateInput[\"mounts\"],\n) {\n const path = yield* Path.Path;\n const generated = path.join(yield* ConfectDirectory.get, \"_generated\");\n const claimed = yield* Effect.fromResult(claims(leaves));\n const functions: Array<{ path: string; source: string }> = [];\n visit(leaves, (_, functionPath, source) =>\n functions.push({ path: functionPath, source }),\n );\n const files = claimed.length === 0 ? [] : yield* sourceFiles;\n const [rendered, failures] = yield* Effect.partition(claimed, (claim) =>\n render(claim, { functions, mounts }, files).pipe(\n Effect.map((contents) => ({ file: claim.generate.file, contents })),\n ),\n );\n const [error, ...more] = failures;\n for (const other of more) yield* logCodegenError(other);\n if (error !== undefined) return yield* error;\n for (const { file, contents } of rendered)\n yield* writeFileStringAndLog(path.join(generated, file), contents);\n return rendered.map(({ file }) => file);\n});\n"],"mappings":";;;;;;;;;;;;;;;AAsBA,MAAa,UAA+B,IAAI,IAC9C;;2BAGG,MAAM,KAAK,CAAC,CACZ,KAAK,SAAS,GAAG,KAAK,IA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HANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gaganref/confect-cli",
|
|
3
|
-
"version": "10.3.1-fork.
|
|
3
|
+
"version": "10.3.1-fork.52",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@effect/platform-node": ">=4.0.4 <4.1.0",
|
|
6
6
|
"bundle-require": "^5.1.0",
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"exsolve": "^1.1.3"
|
|
10
10
|
},
|
|
11
11
|
"peerDependencies": {
|
|
12
|
-
"@confect/core": "npm:@gaganref/confect-core@10.3.1-fork.
|
|
13
|
-
"@confect/server": "npm:@gaganref/confect-server@10.3.1-fork.
|
|
12
|
+
"@confect/core": "npm:@gaganref/confect-core@10.3.1-fork.52",
|
|
13
|
+
"@confect/server": "npm:@gaganref/confect-server@10.3.1-fork.52",
|
|
14
14
|
"@effect/platform-node-shared": ">=4.0.4 <4.1.0",
|
|
15
15
|
"effect": ">=4.0.4 <4.1.0"
|
|
16
16
|
},
|