@oddessentials/repo-standards 4.0.1 → 4.2.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/cli.cjs ADDED
@@ -0,0 +1,116 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/cli.ts
22
+ var cli_exports = {};
23
+ __export(cli_exports, {
24
+ VERSION: () => VERSION
25
+ });
26
+ module.exports = __toCommonJS(cli_exports);
27
+
28
+ // node_modules/tsup/assets/cjs_shims.js
29
+ var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.tagName.toUpperCase() === "SCRIPT" ? document.currentScript.src : new URL("main.js", document.baseURI).href;
30
+ var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
31
+
32
+ // src/cli.ts
33
+ var import_node_module = require("module");
34
+
35
+ // src/index.ts
36
+ var import_node_url = require("url");
37
+ var import_node_fs = require("fs");
38
+ var import_node_path = require("path");
39
+ var __filename2 = (0, import_node_url.fileURLToPath)(importMetaUrl);
40
+ var __dirname = (0, import_node_path.dirname)(__filename2);
41
+ var isDevMode = __dirname.includes("src");
42
+ var configDir = isDevMode ? (0, import_node_path.join)(__dirname, "..", "config") : (0, import_node_path.join)(__dirname, "config");
43
+ function loadMasterSpec() {
44
+ const filePath = (0, import_node_path.join)(configDir, "standards.json");
45
+ return JSON.parse((0, import_node_fs.readFileSync)(filePath, "utf8"));
46
+ }
47
+ function loadBaseline(stack, ci) {
48
+ const suffix = ci ? `.${ci}` : "";
49
+ const file = `standards.${stack}${suffix}.json`;
50
+ const filePath = (0, import_node_path.join)(configDir, file);
51
+ return JSON.parse((0, import_node_fs.readFileSync)(filePath, "utf8"));
52
+ }
53
+ function listSupportedStacks() {
54
+ const spec = loadMasterSpec();
55
+ return Object.keys(spec.stacks);
56
+ }
57
+ function listSupportedCiSystems() {
58
+ const spec = loadMasterSpec();
59
+ return spec.ciSystems;
60
+ }
61
+
62
+ // src/cli.ts
63
+ var require2 = (0, import_node_module.createRequire)(importMetaUrl);
64
+ var pkg = require2("../package.json");
65
+ var VERSION = pkg.version;
66
+ function printHelp() {
67
+ console.log(`repo-standards v${VERSION}
68
+
69
+ Usage:
70
+ repo-standards --version Print version and exit
71
+ repo-standards --help Print this help message
72
+ repo-standards <stack> [ci] Get standards for a stack (optional CI system)
73
+
74
+ Supported stacks: ${listSupportedStacks().join(", ")}
75
+ Supported CI systems: ${listSupportedCiSystems().join(", ")}
76
+
77
+ Examples:
78
+ repo-standards typescript-js
79
+ repo-standards python github-actions
80
+ `);
81
+ }
82
+ function main() {
83
+ const args = process.argv.slice(2);
84
+ if (args.includes("--version") || args.includes("-V")) {
85
+ console.log(VERSION);
86
+ process.exit(0);
87
+ }
88
+ if (args.includes("--help") || args.includes("-h") || args.length === 0) {
89
+ printHelp();
90
+ process.exit(args.length === 0 ? 1 : 0);
91
+ }
92
+ const [stackArg, ciArg] = args;
93
+ const validStacks = listSupportedStacks();
94
+ const validCiSystems = listSupportedCiSystems();
95
+ if (!validStacks.includes(stackArg)) {
96
+ console.error(`Error: Unknown stack "${stackArg}"`);
97
+ console.error(`Valid stacks: ${validStacks.join(", ")}`);
98
+ process.exit(1);
99
+ }
100
+ if (ciArg && !validCiSystems.includes(ciArg)) {
101
+ console.error(`Error: Unknown CI system "${ciArg}"`);
102
+ console.error(`Valid CI systems: ${validCiSystems.join(", ")}`);
103
+ process.exit(1);
104
+ }
105
+ const standards = loadBaseline(
106
+ stackArg,
107
+ ciArg
108
+ );
109
+ console.log(JSON.stringify(standards, null, 2));
110
+ }
111
+ main();
112
+ // Annotate the CommonJS export names for ESM import in node:
113
+ 0 && (module.exports = {
114
+ VERSION
115
+ });
116
+ //# sourceMappingURL=cli.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/cli.ts","../node_modules/tsup/assets/cjs_shims.js","../src/index.ts"],"sourcesContent":["#!/usr/bin/env node\n/**\n * repo-standards CLI\n *\n * Usage:\n * repo-standards --version\n * repo-standards --help\n * repo-standards <stack> [ci-system]\n */\n\nimport { createRequire } from \"node:module\";\nimport {\n loadBaseline,\n listSupportedStacks,\n listSupportedCiSystems,\n} from \"./index.js\";\nimport type { StackId, CiSystem } from \"./types.js\";\n\n// Dynamic version reading from package.json for determinism invariant compliance\nconst require = createRequire(import.meta.url);\nconst pkg = require(\"../package.json\") as { version: string };\n\n/** Package version - dynamically read from package.json for determinism */\nexport const VERSION: string = pkg.version;\n\nfunction printHelp(): void {\n console.log(`repo-standards v${VERSION}\n\nUsage:\n repo-standards --version Print version and exit\n repo-standards --help Print this help message\n repo-standards <stack> [ci] Get standards for a stack (optional CI system)\n\nSupported stacks: ${listSupportedStacks().join(\", \")}\nSupported CI systems: ${listSupportedCiSystems().join(\", \")}\n\nExamples:\n repo-standards typescript-js\n repo-standards python github-actions\n`);\n}\n\nfunction main(): void {\n const args = process.argv.slice(2);\n\n // Handle --version\n if (args.includes(\"--version\") || args.includes(\"-V\")) {\n console.log(VERSION);\n process.exit(0);\n }\n\n // Handle --help or no args\n if (args.includes(\"--help\") || args.includes(\"-h\") || args.length === 0) {\n printHelp();\n process.exit(args.length === 0 ? 1 : 0);\n }\n\n const [stackArg, ciArg] = args;\n const validStacks = listSupportedStacks();\n const validCiSystems = listSupportedCiSystems();\n\n // Validate stack\n if (!validStacks.includes(stackArg as StackId)) {\n console.error(`Error: Unknown stack \"${stackArg}\"`);\n console.error(`Valid stacks: ${validStacks.join(\", \")}`);\n process.exit(1);\n }\n\n // Validate CI system if provided\n if (ciArg && !validCiSystems.includes(ciArg as CiSystem)) {\n console.error(`Error: Unknown CI system \"${ciArg}\"`);\n console.error(`Valid CI systems: ${validCiSystems.join(\", \")}`);\n process.exit(1);\n }\n\n // Load and output standards\n const standards = loadBaseline(\n stackArg as StackId,\n ciArg as CiSystem | undefined,\n );\n console.log(JSON.stringify(standards, null, 2));\n}\n\nmain();\n","// Shim globals in cjs bundle\n// There's a weird bug that esbuild will always inject importMetaUrl\n// if we export it as `const importMetaUrl = ... __filename ...`\n// But using a function will not cause this issue\n\nconst getImportMetaUrl = () => \n typeof document === \"undefined\" \n ? new URL(`file:${__filename}`).href \n : (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT') \n ? document.currentScript.src \n : new URL(\"main.js\", document.baseURI).href;\n\nexport const importMetaUrl = /* @__PURE__ */ getImportMetaUrl()\n","import { fileURLToPath } from \"node:url\";\nimport { readFileSync } from \"node:fs\";\nimport { join, dirname } from \"node:path\";\nimport type {\n MasterJson,\n StackChecklistJson,\n StackId,\n CiSystem,\n} from \"./types.js\";\nimport { STANDARDS_VERSION, STANDARDS_SCHEMA_VERSION } from \"./version.js\";\n\n// Re-export types for consumers\nexport type { MasterJson, StackChecklistJson, StackId, CiSystem };\n\n// Re-export version info (stable API contract)\nexport { STANDARDS_VERSION, STANDARDS_SCHEMA_VERSION };\n\n// ESM equivalent of __dirname\nconst __filename = fileURLToPath(import.meta.url);\nconst __dirname = dirname(__filename);\n\n// Path to config directory:\n// - When running from src/ (dev/test): use repo root config/\n// - When running from dist/ (installed): use dist/config/\nconst isDevMode = __dirname.includes(\"src\");\nconst configDir = isDevMode\n ? join(__dirname, \"..\", \"config\")\n : join(__dirname, \"config\");\n\n/** Load the master spec JSON from the packaged dist directory */\nexport function loadMasterSpec(): MasterJson {\n const filePath = join(configDir, \"standards.json\");\n return JSON.parse(readFileSync(filePath, \"utf8\"));\n}\n\n/** Load a stack-specific checklist (optionally filtered by CI system) */\nexport function loadBaseline(\n stack: StackId,\n ci?: CiSystem,\n): StackChecklistJson {\n const suffix = ci ? `.${ci}` : \"\";\n const file = `standards.${stack}${suffix}.json`;\n const filePath = join(configDir, file);\n return JSON.parse(readFileSync(filePath, \"utf8\"));\n}\n\n/** List all supported stacks (derived from the master spec) */\nexport function listSupportedStacks(): readonly StackId[] {\n const spec = loadMasterSpec();\n return Object.keys(spec.stacks) as StackId[];\n}\n\n/** List all supported CI systems (derived from the master spec) */\nexport function listSupportedCiSystems(): readonly CiSystem[] {\n const spec = loadMasterSpec();\n return spec.ciSystems as CiSystem[];\n}\n\n/**\n * PUBLIC API CONTRACT (semver-governed)\n * Alias for loadBaseline - loads stack-specific standards checklist.\n * Breaking changes to this function signature require a major version bump.\n */\nexport function getStandards(\n stack: StackId,\n ci?: CiSystem,\n): StackChecklistJson {\n return loadBaseline(stack, ci);\n}\n\n/**\n * PUBLIC API CONTRACT (semver-governed)\n * Alias for loadMasterSpec - loads the master standards schema.\n * Breaking changes to this function signature require a major version bump.\n */\nexport function getSchema(): MasterJson {\n return loadMasterSpec();\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACKA,IAAM,mBAAmB,MACvB,OAAO,aAAa,cAChB,IAAI,IAAI,QAAQ,UAAU,EAAE,EAAE,OAC7B,SAAS,iBAAiB,SAAS,cAAc,QAAQ,YAAY,MAAM,WAC1E,SAAS,cAAc,MACvB,IAAI,IAAI,WAAW,SAAS,OAAO,EAAE;AAEtC,IAAM,gBAAgC,iCAAiB;;;ADF9D,yBAA8B;;;AEV9B,sBAA8B;AAC9B,qBAA6B;AAC7B,uBAA8B;A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KAAK,KAAK,WAAW,GAAG;AACvE,cAAU;AACV,YAAQ,KAAK,KAAK,WAAW,IAAI,IAAI,CAAC;AAAA,EACxC;AAEA,QAAM,CAAC,UAAU,KAAK,IAAI;AAC1B,QAAM,cAAc,oBAAoB;AACxC,QAAM,iBAAiB,uBAAuB;AAG9C,MAAI,CAAC,YAAY,SAAS,QAAmB,GAAG;AAC9C,YAAQ,MAAM,yBAAyB,QAAQ,GAAG;AAClD,YAAQ,MAAM,iBAAiB,YAAY,KAAK,IAAI,CAAC,EAAE;AACvD,YAAQ,KAAK,CAAC;AAAA,EAChB;AAGA,MAAI,SAAS,CAAC,eAAe,SAAS,KAAiB,GAAG;AACxD,YAAQ,MAAM,6BAA6B,KAAK,GAAG;AACnD,YAAQ,MAAM,qBAAqB,eAAe,KAAK,IAAI,CAAC,EAAE;AAC9D,YAAQ,KAAK,CAAC;AAAA,EAChB;AAGA,QAAM,YAAY;AAAA,IAChB;AAAA,IACA;AAAA,EACF;AACA,UAAQ,IAAI,KAAK,UAAU,WAAW,MAAM,CAAC,CAAC;AAChD;AAEA,KAAK;","names":["__filename","require"]}
package/dist/cli.d.cts ADDED
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * repo-standards CLI
4
+ *
5
+ * Usage:
6
+ * repo-standards --version
7
+ * repo-standards --help
8
+ * repo-standards <stack> [ci-system]
9
+ */
10
+ /** Package version - dynamically read from package.json for determinism */
11
+ declare const VERSION: string;
12
+
13
+ export { VERSION };
package/dist/cli.d.ts ADDED
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * repo-standards CLI
4
+ *
5
+ * Usage:
6
+ * repo-standards --version
7
+ * repo-standards --help
8
+ * repo-standards <stack> [ci-system]
9
+ */
10
+ /** Package version - dynamically read from package.json for determinism */
11
+ declare const VERSION: string;
12
+
13
+ export { VERSION };
package/dist/cli.js ADDED
@@ -0,0 +1,86 @@
1
+ #!/usr/bin/env node
2
+
3
+ // src/cli.ts
4
+ import { createRequire } from "module";
5
+
6
+ // src/index.ts
7
+ import { fileURLToPath } from "url";
8
+ import { readFileSync } from "fs";
9
+ import { join, dirname } from "path";
10
+ var __filename2 = fileURLToPath(import.meta.url);
11
+ var __dirname2 = dirname(__filename2);
12
+ var isDevMode = __dirname2.includes("src");
13
+ var configDir = isDevMode ? join(__dirname2, "..", "config") : join(__dirname2, "config");
14
+ function loadMasterSpec() {
15
+ const filePath = join(configDir, "standards.json");
16
+ return JSON.parse(readFileSync(filePath, "utf8"));
17
+ }
18
+ function loadBaseline(stack, ci) {
19
+ const suffix = ci ? `.${ci}` : "";
20
+ const file = `standards.${stack}${suffix}.json`;
21
+ const filePath = join(configDir, file);
22
+ return JSON.parse(readFileSync(filePath, "utf8"));
23
+ }
24
+ function listSupportedStacks() {
25
+ const spec = loadMasterSpec();
26
+ return Object.keys(spec.stacks);
27
+ }
28
+ function listSupportedCiSystems() {
29
+ const spec = loadMasterSpec();
30
+ return spec.ciSystems;
31
+ }
32
+
33
+ // src/cli.ts
34
+ var require2 = createRequire(import.meta.url);
35
+ var pkg = require2("../package.json");
36
+ var VERSION = pkg.version;
37
+ function printHelp() {
38
+ console.log(`repo-standards v${VERSION}
39
+
40
+ Usage:
41
+ repo-standards --version Print version and exit
42
+ repo-standards --help Print this help message
43
+ repo-standards <stack> [ci] Get standards for a stack (optional CI system)
44
+
45
+ Supported stacks: ${listSupportedStacks().join(", ")}
46
+ Supported CI systems: ${listSupportedCiSystems().join(", ")}
47
+
48
+ Examples:
49
+ repo-standards typescript-js
50
+ repo-standards python github-actions
51
+ `);
52
+ }
53
+ function main() {
54
+ const args = process.argv.slice(2);
55
+ if (args.includes("--version") || args.includes("-V")) {
56
+ console.log(VERSION);
57
+ process.exit(0);
58
+ }
59
+ if (args.includes("--help") || args.includes("-h") || args.length === 0) {
60
+ printHelp();
61
+ process.exit(args.length === 0 ? 1 : 0);
62
+ }
63
+ const [stackArg, ciArg] = args;
64
+ const validStacks = listSupportedStacks();
65
+ const validCiSystems = listSupportedCiSystems();
66
+ if (!validStacks.includes(stackArg)) {
67
+ console.error(`Error: Unknown stack "${stackArg}"`);
68
+ console.error(`Valid stacks: ${validStacks.join(", ")}`);
69
+ process.exit(1);
70
+ }
71
+ if (ciArg && !validCiSystems.includes(ciArg)) {
72
+ console.error(`Error: Unknown CI system "${ciArg}"`);
73
+ console.error(`Valid CI systems: ${validCiSystems.join(", ")}`);
74
+ process.exit(1);
75
+ }
76
+ const standards = loadBaseline(
77
+ stackArg,
78
+ ciArg
79
+ );
80
+ console.log(JSON.stringify(standards, null, 2));
81
+ }
82
+ main();
83
+ export {
84
+ VERSION
85
+ };
86
+ //# sourceMappingURL=cli.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/cli.ts","../src/index.ts"],"sourcesContent":["#!/usr/bin/env node\n/**\n * repo-standards CLI\n *\n * Usage:\n * repo-standards --version\n * repo-standards --help\n * repo-standards <stack> [ci-system]\n */\n\nimport { createRequire } from \"node:module\";\nimport {\n loadBaseline,\n listSupportedStacks,\n listSupportedCiSystems,\n} from \"./index.js\";\nimport type { StackId, CiSystem } from \"./types.js\";\n\n// Dynamic version reading from package.json for determinism invariant compliance\nconst require = createRequire(import.meta.url);\nconst pkg = require(\"../package.json\") as { version: string };\n\n/** Package version - dynamically read from package.json for determinism */\nexport const VERSION: string = pkg.version;\n\nfunction printHelp(): void {\n console.log(`repo-standards v${VERSION}\n\nUsage:\n repo-standards --version Print version and exit\n repo-standards --help Print this help message\n repo-standards <stack> [ci] Get standards for a stack (optional CI system)\n\nSupported stacks: ${listSupportedStacks().join(\", \")}\nSupported CI systems: ${listSupportedCiSystems().join(\", \")}\n\nExamples:\n repo-standards typescript-js\n repo-standards python github-actions\n`);\n}\n\nfunction main(): void {\n const args = process.argv.slice(2);\n\n // Handle --version\n if (args.includes(\"--version\") || args.includes(\"-V\")) {\n console.log(VERSION);\n process.exit(0);\n }\n\n // Handle --help or no args\n if (args.includes(\"--help\") || args.includes(\"-h\") || args.length === 0) {\n printHelp();\n process.exit(args.length === 0 ? 1 : 0);\n }\n\n const [stackArg, ciArg] = args;\n const validStacks = listSupportedStacks();\n const validCiSystems = listSupportedCiSystems();\n\n // Validate stack\n if (!validStacks.includes(stackArg as StackId)) {\n console.error(`Error: Unknown stack \"${stackArg}\"`);\n console.error(`Valid stacks: ${validStacks.join(\", \")}`);\n process.exit(1);\n }\n\n // Validate CI system if provided\n if (ciArg && !validCiSystems.includes(ciArg as CiSystem)) {\n console.error(`Error: Unknown CI system \"${ciArg}\"`);\n console.error(`Valid CI systems: ${validCiSystems.join(\", \")}`);\n process.exit(1);\n }\n\n // Load and output standards\n const standards = loadBaseline(\n stackArg as StackId,\n ciArg as CiSystem | undefined,\n );\n console.log(JSON.stringify(standards, null, 2));\n}\n\nmain();\n","import { fileURLToPath } from \"node:url\";\nimport { readFileSync } from \"node:fs\";\nimport { join, dirname } from \"node:path\";\nimport type {\n MasterJson,\n StackChecklistJson,\n StackId,\n CiSystem,\n} from \"./types.js\";\nimport { STANDARDS_VERSION, STANDARDS_SCHEMA_VERSION } from \"./version.js\";\n\n// Re-export types for consumers\nexport type { MasterJson, StackChecklistJson, StackId, CiSystem };\n\n// Re-export version info (stable API contract)\nexport { STANDARDS_VERSION, STANDARDS_SCHEMA_VERSION };\n\n// ESM equivalent of __dirname\nconst __filename = fileURLToPath(import.meta.url);\nconst __dirname = dirname(__filename);\n\n// Path to config directory:\n// - When running from src/ (dev/test): use repo root config/\n// - When running from dist/ (installed): use dist/config/\nconst isDevMode = __dirname.includes(\"src\");\nconst configDir = isDevMode\n ? join(__dirname, \"..\", \"config\")\n : join(__dirname, \"config\");\n\n/** Load the master spec JSON from the packaged dist directory */\nexport function loadMasterSpec(): MasterJson {\n const filePath = join(configDir, \"standards.json\");\n return JSON.parse(readFileSync(filePath, \"utf8\"));\n}\n\n/** Load a stack-specific checklist (optionally filtered by CI system) */\nexport function loadBaseline(\n stack: StackId,\n ci?: CiSystem,\n): StackChecklistJson {\n const suffix = ci ? `.${ci}` : \"\";\n const file = `standards.${stack}${suffix}.json`;\n const filePath = join(configDir, file);\n return JSON.parse(readFileSync(filePath, \"utf8\"));\n}\n\n/** List all supported stacks (derived from the master spec) */\nexport function listSupportedStacks(): readonly StackId[] {\n const spec = loadMasterSpec();\n return Object.keys(spec.stacks) as StackId[];\n}\n\n/** List all supported CI systems (derived from the master spec) */\nexport function listSupportedCiSystems(): readonly CiSystem[] {\n const spec = loadMasterSpec();\n return spec.ciSystems as CiSystem[];\n}\n\n/**\n * PUBLIC API CONTRACT (semver-governed)\n * Alias for loadBaseline - loads stack-specific standards checklist.\n * Breaking changes to this function signature require a major version bump.\n */\nexport function getStandards(\n stack: StackId,\n ci?: CiSystem,\n): StackChecklistJson {\n return loadBaseline(stack, ci);\n}\n\n/**\n * PUBLIC API CONTRACT (semver-governed)\n * Alias for loadMasterSpec - loads the master standards schema.\n * Breaking changes to this function signature require a major version bump.\n */\nexport function getSchema(): MasterJson {\n return loadMasterSpec();\n}\n"],"mappings":";;;AAUA,SAAS,qBAAqB;;;ACV9B,SAAS,qBAAqB;AAC9B,SAAS,oBAAoB;AAC7B,SAAS,MAAM,eAAe;AAgB9B,IAAMA,cAAa,cAAc,YAAY,GAAG;AAChD,IAAMC,aAAY,QAAQD,WAAU;AAKpC,IAAM,YAAYC,WAAU,SAAS,KAAK;AAC1C,IAAM,YAAY,YACd,KAAKA,YAAW,MAAM,QAAQ,IAC9B,KAAKA,YAAW,QAAQ;AAGrB,SAAS,iBAA6B;AAC3C,QAAM,WAAW,KAAK,WAAW,gBAAgB;AACjD,SAAO,KAAK,MAAM,aAAa,UAAU,MAAM,CAAC;AAClD;AAGO,SAAS,aACd,OACA,IACoB;AACpB,QAAM,SAAS,KAAK,IAAI,EAAE,KAAK;AAC/B,QAAM,OAAO,aAAa,KAAK,GAAG,MAAM;AACxC,QAAM,WAAW,KAAK,WAAW,IAAI;AACrC,SAAO,KAAK,MAAM,aAAa,UAAU,M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eAAe,KAAK,IAAI,CAAC,EAAE;AAC9D,YAAQ,KAAK,CAAC;AAAA,EAChB;AAGA,QAAM,YAAY;AAAA,IAChB;AAAA,IACA;AAAA,EACF;AACA,UAAQ,IAAI,KAAK,UAAU,WAAW,MAAM,CAAC,CAAC;AAChD;AAEA,KAAK;","names":["__filename","__dirname","require"]}
package/dist/index.cjs ADDED
@@ -0,0 +1,87 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ STANDARDS_SCHEMA_VERSION: () => STANDARDS_SCHEMA_VERSION,
24
+ STANDARDS_VERSION: () => STANDARDS_VERSION,
25
+ getSchema: () => getSchema,
26
+ getStandards: () => getStandards,
27
+ listSupportedCiSystems: () => listSupportedCiSystems,
28
+ listSupportedStacks: () => listSupportedStacks,
29
+ loadBaseline: () => loadBaseline,
30
+ loadMasterSpec: () => loadMasterSpec
31
+ });
32
+ module.exports = __toCommonJS(index_exports);
33
+
34
+ // node_modules/tsup/assets/cjs_shims.js
35
+ var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.tagName.toUpperCase() === "SCRIPT" ? document.currentScript.src : new URL("main.js", document.baseURI).href;
36
+ var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
37
+
38
+ // src/index.ts
39
+ var import_node_url = require("url");
40
+ var import_node_fs = require("fs");
41
+ var import_node_path = require("path");
42
+
43
+ // src/version.ts
44
+ var STANDARDS_VERSION = "4.1.0";
45
+ var STANDARDS_SCHEMA_VERSION = 4;
46
+
47
+ // src/index.ts
48
+ var __filename2 = (0, import_node_url.fileURLToPath)(importMetaUrl);
49
+ var __dirname = (0, import_node_path.dirname)(__filename2);
50
+ var isDevMode = __dirname.includes("src");
51
+ var configDir = isDevMode ? (0, import_node_path.join)(__dirname, "..", "config") : (0, import_node_path.join)(__dirname, "config");
52
+ function loadMasterSpec() {
53
+ const filePath = (0, import_node_path.join)(configDir, "standards.json");
54
+ return JSON.parse((0, import_node_fs.readFileSync)(filePath, "utf8"));
55
+ }
56
+ function loadBaseline(stack, ci) {
57
+ const suffix = ci ? `.${ci}` : "";
58
+ const file = `standards.${stack}${suffix}.json`;
59
+ const filePath = (0, import_node_path.join)(configDir, file);
60
+ return JSON.parse((0, import_node_fs.readFileSync)(filePath, "utf8"));
61
+ }
62
+ function listSupportedStacks() {
63
+ const spec = loadMasterSpec();
64
+ return Object.keys(spec.stacks);
65
+ }
66
+ function listSupportedCiSystems() {
67
+ const spec = loadMasterSpec();
68
+ return spec.ciSystems;
69
+ }
70
+ function getStandards(stack, ci) {
71
+ return loadBaseline(stack, ci);
72
+ }
73
+ function getSchema() {
74
+ return loadMasterSpec();
75
+ }
76
+ // Annotate the CommonJS export names for ESM import in node:
77
+ 0 && (module.exports = {
78
+ STANDARDS_SCHEMA_VERSION,
79
+ STANDARDS_VERSION,
80
+ getSchema,
81
+ getStandards,
82
+ listSupportedCiSystems,
83
+ listSupportedStacks,
84
+ loadBaseline,
85
+ loadMasterSpec
86
+ });
87
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts","../node_modules/tsup/assets/cjs_shims.js","../src/version.ts"],"sourcesContent":["import { fileURLToPath } from \"node:url\";\nimport { readFileSync } from \"node:fs\";\nimport { join, dirname } from \"node:path\";\nimport type {\n MasterJson,\n StackChecklistJson,\n StackId,\n CiSystem,\n} from \"./types.js\";\nimport { STANDARDS_VERSION, STANDARDS_SCHEMA_VERSION } from \"./version.js\";\n\n// Re-export types for consumers\nexport type { MasterJson, StackChecklistJson, StackId, CiSystem };\n\n// Re-export version info (stable API contract)\nexport { STANDARDS_VERSION, STANDARDS_SCHEMA_VERSION };\n\n// ESM equivalent of __dirname\nconst __filename = fileURLToPath(import.meta.url);\nconst __dirname = dirname(__filename);\n\n// Path to config directory:\n// - When running from src/ (dev/test): use repo root config/\n// - When running from dist/ (installed): use dist/config/\nconst isDevMode = __dirname.includes(\"src\");\nconst configDir = isDevMode\n ? join(__dirname, \"..\", \"config\")\n : join(__dirname, \"config\");\n\n/** Load the master spec JSON from the packaged dist directory */\nexport function loadMasterSpec(): MasterJson {\n const filePath = join(configDir, \"standards.json\");\n return JSON.parse(readFileSync(filePath, \"utf8\"));\n}\n\n/** Load a stack-specific checklist (optionally filtered by CI system) */\nexport function loadBaseline(\n stack: StackId,\n ci?: CiSystem,\n): StackChecklistJson {\n const suffix = ci ? `.${ci}` : \"\";\n const file = `standards.${stack}${suffix}.json`;\n const filePath = join(configDir, file);\n return JSON.parse(readFileSync(filePath, \"utf8\"));\n}\n\n/** List all supported stacks (derived from the master spec) */\nexport function listSupportedStacks(): readonly StackId[] {\n const spec = loadMasterSpec();\n return Object.keys(spec.stacks) as StackId[];\n}\n\n/** List all supported CI systems (derived from the master spec) */\nexport function listSupportedCiSystems(): readonly CiSystem[] {\n const spec = loadMasterSpec();\n return spec.ciSystems as CiSystem[];\n}\n\n/**\n * PUBLIC API CONTRACT (semver-governed)\n * Alias for loadBaseline - loads stack-specific standards checklist.\n * Breaking changes to this function signature require a major version bump.\n */\nexport function getStandards(\n stack: StackId,\n ci?: CiSystem,\n): StackChecklistJson {\n return loadBaseline(stack, ci);\n}\n\n/**\n * PUBLIC API CONTRACT (semver-governed)\n * Alias for loadMasterSpec - loads the master standards schema.\n * Breaking changes to this function signature require a major version bump.\n */\nexport function getSchema(): MasterJson {\n return loadMasterSpec();\n}\n","// Shim globals in cjs bundle\n// There's a weird bug that esbuild will always inject importMetaUrl\n// if we export it as `const importMetaUrl = ... __filename ...`\n// But using a function will not cause this issue\n\nconst getImportMetaUrl = () => \n typeof document === \"undefined\" \n ? new URL(`file:${__filename}`).href \n : (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT') \n ? document.currentScript.src \n : new URL(\"main.js\", document.baseURI).href;\n\nexport const importMetaUrl = /* @__PURE__ */ getImportMetaUrl()\n","/**\n * AUTO-GENERATED at build time by scripts/build.ts\n * DO NOT EDIT MANUALLY\n *\n * This module provides version information for the repo-standards package.\n * Consumers should import from here instead of package.json to avoid\n * ESM/CJS interop issues.\n */\n\nexport const STANDARDS_VERSION = '4.1.0';\nexport const STANDARDS_SCHEMA_VERSION = 4;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACKA,IAAM,mBAAmB,MACvB,OAAO,aAAa,cAChB,IAAI,IAAI,QAAQ,UAAU,EAAE,EAAE,OAC7B,SAAS,iBAAiB,SAAS,cAAc,QAAQ,YAAY,MAAM,WAC1E,SAAS,cAAc,MACvB,IAAI,IAAI,WAAW,SAAS,OAAO,EAAE;AAEtC,IAAM,gBAAgC,iCAAiB;;;ADZ9D,sBAA8B;AAC9B,qBAA6B;AAC7B,uBAA8B;;;AEOvB,IAAM,oBAAoB;AAC1B,IAAM,2BAA2B;;;AFQxC,IAAMA,kBAAa,+BAAc,aAAe;AAChD,IAAM,gBAAY,0BAAQA,WAAU;AAKpC,IAAM,YAAY,UAAU,SAAS,KAAK;AAC1C,IAAM,YAAY,gBACd,uBAAK,WAAW,MAAM,QAAQ,QAC9B,uBAAK,WAAW,QAAQ;AAGrB,SAAS,iBAA6B;AAC3C,QAAM,eAAW,uBAAK,WAAW,gBAAgB;AACjD,SAAO,KAAK,UAAM,6BAAa,UAAU,MAAM,CAAC;AAClD;AAGO,SAAS,aACd,OACA,IACoB;AACpB,QAAM,SAAS,KAAK,IAAI,EAAE,KAAK;AAC/B,QAAM,OAAO,aAAa,KAAK,GAAG,MAAM;AACxC,QAAM,eAAW,uBAAK,WAAW,IAAI;AACrC,SAAO,KAAK,UAAM,6BAAa,UAAU,MAAM,CAAC;AAClD;AAGO,SAAS,sBAA0C;AACxD,QAAM,OAAO,eAAe;AAC5B,SAAO,OAAO,KAAK,KAAK,MAAM;AAChC;AAGO,SAAS,yBAA8C;AAC5D,QAAM,OAAO,eAAe;AAC5B,SAAO,KAAK;AACd;AAOO,SAAS,aACd,OACA,IACoB;AACpB,SAAO,aAAa,OAAO,EAAE;AAC/B;AAOO,SAAS,YAAwB;AACtC,SAAO,eAAe;AACxB;","names":["__filename"]}
@@ -3,7 +3,7 @@
3
3
  * Commands are actual Bazel invocations (e.g., "bazel test //..."),
4
4
  * NOT assumed pattern labels.
5
5
  */
6
- export interface BazelHints {
6
+ interface BazelHints {
7
7
  /** Bazel commands to run (e.g., "bazel test //...", "bazel run //tools/lint") */
8
8
  commands?: string[];
9
9
  /** Recommended target conventions (documentation only, not assumed to exist) */
@@ -11,24 +11,24 @@ export interface BazelHints {
11
11
  /** Usage notes for this check in Bazel context */
12
12
  notes?: string;
13
13
  }
14
- export type StackId = "typescript-js" | "csharp-dotnet" | "python" | "rust" | "go";
15
- export type CiSystem = "azure-devops" | "github-actions";
14
+ type StackId = "typescript-js" | "csharp-dotnet" | "python" | "rust" | "go";
15
+ type CiSystem = "azure-devops" | "github-actions";
16
16
  /**
17
17
  * Enforcement level for checklist items.
18
18
  * - required: Must be implemented (core items)
19
19
  * - recommended: Should be implemented (recommended items)
20
20
  * - optional: Nice to have (optional enhancements)
21
21
  */
22
- export type Enforcement = "required" | "recommended" | "optional";
22
+ type Enforcement = "required" | "recommended" | "optional";
23
23
  /**
24
24
  * Severity level for violations.
25
25
  * - error: Fails CI (core items)
26
26
  * - warn: Warning only (recommended items)
27
27
  * - info: Informational (optional enhancements)
28
28
  */
29
- export type Severity = "error" | "warn" | "info";
29
+ type Severity = "error" | "warn" | "info";
30
30
  /** Migration guide step for onboarding repositories */
31
- export interface MigrationStep {
31
+ interface MigrationStep {
32
32
  step: number;
33
33
  title: string;
34
34
  description: string;
@@ -36,7 +36,7 @@ export interface MigrationStep {
36
36
  notes?: string;
37
37
  }
38
38
  /** Bazel integration configuration */
39
- export interface BazelExecutorConfig {
39
+ interface BazelExecutorConfig {
40
40
  detectionRules?: {
41
41
  rootMarkers?: string[];
42
42
  optionalMarkers?: string[];
@@ -60,7 +60,7 @@ export interface BazelExecutorConfig {
60
60
  * Bazel is the first (and currently only) supported executor.
61
61
  * Future monorepo executors may be added following the same pattern.
62
62
  */
63
- export interface ExecutorHints {
63
+ interface ExecutorHints {
64
64
  /** Container-level description of the executor hints system */
65
65
  description?: string;
66
66
  /** Bazel executor configuration (first supported instance) */
@@ -70,7 +70,7 @@ export interface ExecutorHints {
70
70
  * Meta configuration for the standards.
71
71
  * Includes coverage thresholds, quality gate policies, and migration guidance.
72
72
  */
73
- export interface Meta {
73
+ interface Meta {
74
74
  /**
75
75
  * Default code coverage threshold as a ratio (0-1).
76
76
  * E.g., 0.8 = 80% coverage.
@@ -92,7 +92,7 @@ export interface Meta {
92
92
  migrationGuide?: MigrationStep[];
93
93
  executorHints?: ExecutorHints;
94
94
  }
95
- export interface MasterJson {
95
+ interface MasterJson {
96
96
  version: number;
97
97
  meta?: Meta;
98
98
  ciSystems: CiSystem[];
@@ -106,7 +106,7 @@ export interface MasterJson {
106
106
  optionalEnhancements: ChecklistItem[];
107
107
  };
108
108
  }
109
- export interface ChecklistItem {
109
+ interface ChecklistItem {
110
110
  id: string;
111
111
  label: string;
112
112
  description: string;
@@ -123,7 +123,7 @@ export interface ChecklistItem {
123
123
  }>;
124
124
  stackHints?: Record<StackId, StackHints>;
125
125
  }
126
- export interface StackHints {
126
+ interface StackHints {
127
127
  exampleTools?: string[];
128
128
  exampleConfigFiles?: string[];
129
129
  notes?: string;
@@ -135,7 +135,7 @@ export interface StackHints {
135
135
  pinningNotes?: string;
136
136
  bazelHints?: BazelHints;
137
137
  }
138
- export interface StackChecklistJson {
138
+ interface StackChecklistJson {
139
139
  version: number;
140
140
  stack: StackId;
141
141
  stackLabel: string;
@@ -147,4 +147,37 @@ export interface StackChecklistJson {
147
147
  optionalEnhancements: ChecklistItem[];
148
148
  };
149
149
  }
150
- //# sourceMappingURL=types.d.ts.map
150
+
151
+ /**
152
+ * AUTO-GENERATED at build time by scripts/build.ts
153
+ * DO NOT EDIT MANUALLY
154
+ *
155
+ * This module provides version information for the repo-standards package.
156
+ * Consumers should import from here instead of package.json to avoid
157
+ * ESM/CJS interop issues.
158
+ */
159
+ declare const STANDARDS_VERSION = "4.1.0";
160
+ declare const STANDARDS_SCHEMA_VERSION = 4;
161
+
162
+ /** Load the master spec JSON from the packaged dist directory */
163
+ declare function loadMasterSpec(): MasterJson;
164
+ /** Load a stack-specific checklist (optionally filtered by CI system) */
165
+ declare function loadBaseline(stack: StackId, ci?: CiSystem): StackChecklistJson;
166
+ /** List all supported stacks (derived from the master spec) */
167
+ declare function listSupportedStacks(): readonly StackId[];
168
+ /** List all supported CI systems (derived from the master spec) */
169
+ declare function listSupportedCiSystems(): readonly CiSystem[];
170
+ /**
171
+ * PUBLIC API CONTRACT (semver-governed)
172
+ * Alias for loadBaseline - loads stack-specific standards checklist.
173
+ * Breaking changes to this function signature require a major version bump.
174
+ */
175
+ declare function getStandards(stack: StackId, ci?: CiSystem): StackChecklistJson;
176
+ /**
177
+ * PUBLIC API CONTRACT (semver-governed)
178
+ * Alias for loadMasterSpec - loads the master standards schema.
179
+ * Breaking changes to this function signature require a major version bump.
180
+ */
181
+ declare function getSchema(): MasterJson;
182
+
183
+ export { type CiSystem, type MasterJson, STANDARDS_SCHEMA_VERSION, STANDARDS_VERSION, type StackChecklistJson, type StackId, getSchema, getStandards, listSupportedCiSystems, listSupportedStacks, loadBaseline, loadMasterSpec };
package/dist/index.d.ts CHANGED
@@ -1,25 +1,183 @@
1
- import type { MasterJson, StackChecklistJson, StackId, CiSystem } from "./types.js";
2
- import { STANDARDS_VERSION, STANDARDS_SCHEMA_VERSION } from "./version.js";
3
- export type { MasterJson, StackChecklistJson, StackId, CiSystem };
4
- export { STANDARDS_VERSION, STANDARDS_SCHEMA_VERSION };
1
+ /**
2
+ * Bazel execution hints for individual checklist items.
3
+ * Commands are actual Bazel invocations (e.g., "bazel test //..."),
4
+ * NOT assumed pattern labels.
5
+ */
6
+ interface BazelHints {
7
+ /** Bazel commands to run (e.g., "bazel test //...", "bazel run //tools/lint") */
8
+ commands?: string[];
9
+ /** Recommended target conventions (documentation only, not assumed to exist) */
10
+ recommendedTargets?: string[];
11
+ /** Usage notes for this check in Bazel context */
12
+ notes?: string;
13
+ }
14
+ type StackId = "typescript-js" | "csharp-dotnet" | "python" | "rust" | "go";
15
+ type CiSystem = "azure-devops" | "github-actions";
16
+ /**
17
+ * Enforcement level for checklist items.
18
+ * - required: Must be implemented (core items)
19
+ * - recommended: Should be implemented (recommended items)
20
+ * - optional: Nice to have (optional enhancements)
21
+ */
22
+ type Enforcement = "required" | "recommended" | "optional";
23
+ /**
24
+ * Severity level for violations.
25
+ * - error: Fails CI (core items)
26
+ * - warn: Warning only (recommended items)
27
+ * - info: Informational (optional enhancements)
28
+ */
29
+ type Severity = "error" | "warn" | "info";
30
+ /** Migration guide step for onboarding repositories */
31
+ interface MigrationStep {
32
+ step: number;
33
+ title: string;
34
+ description: string;
35
+ focusIds?: string[];
36
+ notes?: string;
37
+ }
38
+ /** Bazel integration configuration */
39
+ interface BazelExecutorConfig {
40
+ detectionRules?: {
41
+ rootMarkers?: string[];
42
+ optionalMarkers?: string[];
43
+ notes?: string;
44
+ };
45
+ optOut?: {
46
+ description?: string;
47
+ configPath?: string;
48
+ };
49
+ targetConventions?: Record<string, string>;
50
+ ciContract?: {
51
+ versionPinning?: string;
52
+ configFlag?: string;
53
+ deterministicFlags?: string[];
54
+ remoteCache?: string;
55
+ };
56
+ advisoryNotice?: string;
57
+ }
58
+ /**
59
+ * Executor hints container.
60
+ * Bazel is the first (and currently only) supported executor.
61
+ * Future monorepo executors may be added following the same pattern.
62
+ */
63
+ interface ExecutorHints {
64
+ /** Container-level description of the executor hints system */
65
+ description?: string;
66
+ /** Bazel executor configuration (first supported instance) */
67
+ bazel?: BazelExecutorConfig;
68
+ }
69
+ /**
70
+ * Meta configuration for the standards.
71
+ * Includes coverage thresholds, quality gate policies, and migration guidance.
72
+ */
73
+ interface Meta {
74
+ /**
75
+ * Default code coverage threshold as a ratio (0-1).
76
+ * E.g., 0.8 = 80% coverage.
77
+ */
78
+ defaultCoverageThreshold?: number;
79
+ /**
80
+ * Documents that coverage threshold is a ratio (0-1), not a percentage (0-100).
81
+ */
82
+ coverageThresholdUnit?: "ratio";
83
+ coverageThresholdDescription?: string;
84
+ complexityChecks?: {
85
+ enabledByDefault?: boolean;
86
+ description?: string;
87
+ };
88
+ qualityGatePolicy?: {
89
+ preferSoftFailOnLegacy?: boolean;
90
+ description?: string;
91
+ };
92
+ migrationGuide?: MigrationStep[];
93
+ executorHints?: ExecutorHints;
94
+ }
95
+ interface MasterJson {
96
+ version: number;
97
+ meta?: Meta;
98
+ ciSystems: CiSystem[];
99
+ stacks: Record<StackId, {
100
+ label: string;
101
+ languageFamily: string;
102
+ }>;
103
+ checklist: {
104
+ core: ChecklistItem[];
105
+ recommended: ChecklistItem[];
106
+ optionalEnhancements: ChecklistItem[];
107
+ };
108
+ }
109
+ interface ChecklistItem {
110
+ id: string;
111
+ label: string;
112
+ description: string;
113
+ enforcement?: Enforcement;
114
+ severity?: Severity;
115
+ appliesTo: {
116
+ stacks: StackId[];
117
+ ciSystems?: CiSystem[];
118
+ };
119
+ ciHints?: Record<CiSystem, {
120
+ stage?: string;
121
+ job?: string;
122
+ notes?: string;
123
+ }>;
124
+ stackHints?: Record<StackId, StackHints>;
125
+ }
126
+ interface StackHints {
127
+ exampleTools?: string[];
128
+ exampleConfigFiles?: string[];
129
+ notes?: string;
130
+ verification?: string;
131
+ requiredFiles?: string[];
132
+ anyOfFiles?: string[];
133
+ optionalFiles?: string[];
134
+ requiredScripts?: string[];
135
+ pinningNotes?: string;
136
+ bazelHints?: BazelHints;
137
+ }
138
+ interface StackChecklistJson {
139
+ version: number;
140
+ stack: StackId;
141
+ stackLabel: string;
142
+ ciSystems: CiSystem[];
143
+ meta?: Meta;
144
+ checklist: {
145
+ core: ChecklistItem[];
146
+ recommended: ChecklistItem[];
147
+ optionalEnhancements: ChecklistItem[];
148
+ };
149
+ }
150
+
151
+ /**
152
+ * AUTO-GENERATED at build time by scripts/build.ts
153
+ * DO NOT EDIT MANUALLY
154
+ *
155
+ * This module provides version information for the repo-standards package.
156
+ * Consumers should import from here instead of package.json to avoid
157
+ * ESM/CJS interop issues.
158
+ */
159
+ declare const STANDARDS_VERSION = "4.1.0";
160
+ declare const STANDARDS_SCHEMA_VERSION = 4;
161
+
5
162
  /** Load the master spec JSON from the packaged dist directory */
6
- export declare function loadMasterSpec(): MasterJson;
163
+ declare function loadMasterSpec(): MasterJson;
7
164
  /** Load a stack-specific checklist (optionally filtered by CI system) */
8
- export declare function loadBaseline(stack: StackId, ci?: CiSystem): StackChecklistJson;
165
+ declare function loadBaseline(stack: StackId, ci?: CiSystem): StackChecklistJson;
9
166
  /** List all supported stacks (derived from the master spec) */
10
- export declare function listSupportedStacks(): readonly StackId[];
167
+ declare function listSupportedStacks(): readonly StackId[];
11
168
  /** List all supported CI systems (derived from the master spec) */
12
- export declare function listSupportedCiSystems(): readonly CiSystem[];
169
+ declare function listSupportedCiSystems(): readonly CiSystem[];
13
170
  /**
14
171
  * PUBLIC API CONTRACT (semver-governed)
15
172
  * Alias for loadBaseline - loads stack-specific standards checklist.
16
173
  * Breaking changes to this function signature require a major version bump.
17
174
  */
18
- export declare function getStandards(stack: StackId, ci?: CiSystem): StackChecklistJson;
175
+ declare function getStandards(stack: StackId, ci?: CiSystem): StackChecklistJson;
19
176
  /**
20
177
  * PUBLIC API CONTRACT (semver-governed)
21
178
  * Alias for loadMasterSpec - loads the master standards schema.
22
179
  * Breaking changes to this function signature require a major version bump.
23
180
  */
24
- export declare function getSchema(): MasterJson;
25
- //# sourceMappingURL=index.d.ts.map
181
+ declare function getSchema(): MasterJson;
182
+
183
+ export { type CiSystem, type MasterJson, STANDARDS_SCHEMA_VERSION, STANDARDS_VERSION, type StackChecklistJson, type StackId, getSchema, getStandards, listSupportedCiSystems, listSupportedStacks, loadBaseline, loadMasterSpec };
package/dist/index.js CHANGED
@@ -1,61 +1,49 @@
1
- import { fileURLToPath } from "node:url";
2
- import { readFileSync } from "node:fs";
3
- import { join, dirname } from "node:path";
4
- import { STANDARDS_VERSION, STANDARDS_SCHEMA_VERSION } from "./version.js";
5
- // Re-export version info (stable API contract)
6
- export { STANDARDS_VERSION, STANDARDS_SCHEMA_VERSION };
7
- // ESM equivalent of __dirname
8
- const __filename = fileURLToPath(import.meta.url);
9
- const __dirname = dirname(__filename);
10
- // Path to config directory:
11
- // - When running from src/ (dev/test): use repo root config/
12
- // - When running from dist/ (installed): use dist/config/
13
- const isDevMode = __dirname.includes("src");
14
- const configDir = isDevMode
15
- ? join(__dirname, "..", "config")
16
- : join(__dirname, "config");
17
- /** Load the master spec JSON from the packaged dist directory */
18
- export function loadMasterSpec() {
19
- const filePath = join(configDir, "standards.json");
20
- return JSON.parse(readFileSync(filePath, "utf8"));
1
+ // src/index.ts
2
+ import { fileURLToPath } from "url";
3
+ import { readFileSync } from "fs";
4
+ import { join, dirname } from "path";
5
+
6
+ // src/version.ts
7
+ var STANDARDS_VERSION = "4.1.0";
8
+ var STANDARDS_SCHEMA_VERSION = 4;
9
+
10
+ // src/index.ts
11
+ var __filename2 = fileURLToPath(import.meta.url);
12
+ var __dirname2 = dirname(__filename2);
13
+ var isDevMode = __dirname2.includes("src");
14
+ var configDir = isDevMode ? join(__dirname2, "..", "config") : join(__dirname2, "config");
15
+ function loadMasterSpec() {
16
+ const filePath = join(configDir, "standards.json");
17
+ return JSON.parse(readFileSync(filePath, "utf8"));
21
18
  }
22
- /** Load a stack-specific checklist (optionally filtered by CI system) */
23
- export function loadBaseline(stack, ci) {
24
- const suffix = ci ? `.${ci}` : "";
25
- const file = `standards.${stack}${suffix}.json`;
26
- const filePath = join(configDir, file);
27
- return JSON.parse(readFileSync(filePath, "utf8"));
19
+ function loadBaseline(stack, ci) {
20
+ const suffix = ci ? `.${ci}` : "";
21
+ const file = `standards.${stack}${suffix}.json`;
22
+ const filePath = join(configDir, file);
23
+ return JSON.parse(readFileSync(filePath, "utf8"));
28
24
  }
29
- /** List all supported stacks (derived from the master spec) */
30
- export function listSupportedStacks() {
31
- const spec = loadMasterSpec();
32
- return Object.keys(spec.stacks);
25
+ function listSupportedStacks() {
26
+ const spec = loadMasterSpec();
27
+ return Object.keys(spec.stacks);
33
28
  }
34
- /** List all supported CI systems (derived from the master spec) */
35
- export function listSupportedCiSystems() {
36
- const spec = loadMasterSpec();
37
- return spec.ciSystems;
29
+ function listSupportedCiSystems() {
30
+ const spec = loadMasterSpec();
31
+ return spec.ciSystems;
38
32
  }
39
- /**
40
- * PUBLIC API CONTRACT (semver-governed)
41
- * Alias for loadBaseline - loads stack-specific standards checklist.
42
- * Breaking changes to this function signature require a major version bump.
43
- */
44
- export function getStandards(stack, ci) {
45
- return loadBaseline(stack, ci);
33
+ function getStandards(stack, ci) {
34
+ return loadBaseline(stack, ci);
46
35
  }
47
- /**
48
- * PUBLIC API CONTRACT (semver-governed)
49
- * Alias for loadMasterSpec - loads the master standards schema.
50
- * Breaking changes to this function signature require a major version bump.
51
- */
52
- export function getSchema() {
53
- return loadMasterSpec();
54
- }
55
- /** Optional CLI entry point for debugging */
56
- if (import.meta.url.startsWith("file:") && process.argv[1] === __filename) {
57
- console.log({
58
- stacks: listSupportedStacks(),
59
- ciSystems: listSupportedCiSystems(),
60
- });
36
+ function getSchema() {
37
+ return loadMasterSpec();
61
38
  }
39
+ export {
40
+ STANDARDS_SCHEMA_VERSION,
41
+ STANDARDS_VERSION,
42
+ getSchema,
43
+ getStandards,
44
+ listSupportedCiSystems,
45
+ listSupportedStacks,
46
+ loadBaseline,
47
+ loadMasterSpec
48
+ };
49
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts","../src/version.ts"],"sourcesContent":["import { fileURLToPath } from \"node:url\";\nimport { readFileSync } from \"node:fs\";\nimport { join, dirname } from \"node:path\";\nimport type {\n MasterJson,\n StackChecklistJson,\n StackId,\n CiSystem,\n} from \"./types.js\";\nimport { STANDARDS_VERSION, STANDARDS_SCHEMA_VERSION } from \"./version.js\";\n\n// Re-export types for consumers\nexport type { MasterJson, StackChecklistJson, StackId, CiSystem };\n\n// Re-export version info (stable API contract)\nexport { STANDARDS_VERSION, STANDARDS_SCHEMA_VERSION };\n\n// ESM equivalent of __dirname\nconst __filename = fileURLToPath(import.meta.url);\nconst __dirname = dirname(__filename);\n\n// Path to config directory:\n// - When running from src/ (dev/test): use repo root config/\n// - When running from dist/ (installed): use dist/config/\nconst isDevMode = __dirname.includes(\"src\");\nconst configDir = isDevMode\n ? join(__dirname, \"..\", \"config\")\n : join(__dirname, \"config\");\n\n/** Load the master spec JSON from the packaged dist directory */\nexport function loadMasterSpec(): MasterJson {\n const filePath = join(configDir, \"standards.json\");\n return JSON.parse(readFileSync(filePath, \"utf8\"));\n}\n\n/** Load a stack-specific checklist (optionally filtered by CI system) */\nexport function loadBaseline(\n stack: StackId,\n ci?: CiSystem,\n): StackChecklistJson {\n const suffix = ci ? `.${ci}` : \"\";\n const file = `standards.${stack}${suffix}.json`;\n const filePath = join(configDir, file);\n return JSON.parse(readFileSync(filePath, \"utf8\"));\n}\n\n/** List all supported stacks (derived from the master spec) */\nexport function listSupportedStacks(): readonly StackId[] {\n const spec = loadMasterSpec();\n return Object.keys(spec.stacks) as StackId[];\n}\n\n/** List all supported CI systems (derived from the master spec) */\nexport function listSupportedCiSystems(): readonly CiSystem[] {\n const spec = loadMasterSpec();\n return spec.ciSystems as CiSystem[];\n}\n\n/**\n * PUBLIC API CONTRACT (semver-governed)\n * Alias for loadBaseline - loads stack-specific standards checklist.\n * Breaking changes to this function signature require a major version bump.\n */\nexport function getStandards(\n stack: StackId,\n ci?: CiSystem,\n): StackChecklistJson {\n return loadBaseline(stack, ci);\n}\n\n/**\n * PUBLIC API CONTRACT (semver-governed)\n * Alias for loadMasterSpec - loads the master standards schema.\n * Breaking changes to this function signature require a major version bump.\n */\nexport function getSchema(): MasterJson {\n return loadMasterSpec();\n}\n","/**\n * AUTO-GENERATED at build time by scripts/build.ts\n * DO NOT EDIT MANUALLY\n *\n * This module provides version information for the repo-standards package.\n * Consumers should import from here instead of package.json to avoid\n * ESM/CJS interop issues.\n */\n\nexport const STANDARDS_VERSION = '4.1.0';\nexport const STANDARDS_SCHEMA_VERSION = 4;\n"],"mappings":";AAAA,SAAS,qBAAqB;AAC9B,SAAS,oBAAoB;AAC7B,SAAS,MAAM,eAAe;;;ACOvB,IAAM,oBAAoB;AAC1B,IAAM,2BAA2B;;;ADQxC,IAAMA,cAAa,cAAc,YAAY,GAAG;AAChD,IAAMC,aAAY,QAAQD,WAAU;AAKpC,IAAM,YAAYC,WAAU,SAAS,KAAK;AAC1C,IAAM,YAAY,YACd,KAAKA,YAAW,MAAM,QAAQ,IAC9B,KAAKA,YAAW,QAAQ;AAGrB,SAAS,iBAA6B;AAC3C,QAAM,WAAW,KAAK,WAAW,gBAAgB;AACjD,SAAO,KAAK,MAAM,aAAa,UAAU,MAAM,CAAC;AAClD;AAGO,SAAS,aACd,OACA,IACoB;AACpB,QAAM,SAAS,KAAK,IAAI,EAAE,KAAK;AAC/B,QAAM,OAAO,aAAa,KAAK,GAAG,MAAM;AACxC,QAAM,WAAW,KAAK,WAAW,IAAI;AACrC,SAAO,KAAK,MAAM,aAAa,UAAU,MAAM,CAAC;AAClD;AAGO,SAAS,sBAA0C;AACxD,QAAM,OAAO,eAAe;AAC5B,SAAO,OAAO,KAAK,KAAK,MAAM;AAChC;AAGO,SAAS,yBAA8C;AAC5D,QAAM,OAAO,eAAe;AAC5B,SAAO,KAAK;AACd;AAOO,SAAS,aACd,OACA,IACoB;AACpB,SAAO,aAAa,OAAO,EAAE;AAC/B;AAOO,SAAS,YAAwB;AACtC,SAAO,eAAe;AACxB;","names":["__filename","__dirname"]}
package/package.json CHANGED
@@ -1,12 +1,15 @@
1
1
  {
2
2
  "name": "@oddessentials/repo-standards",
3
3
  "private": false,
4
- "version": "4.0.1",
4
+ "version": "4.2.0",
5
5
  "description": "Standards and CI filtering utilities for multi-stack repository governance.",
6
6
  "type": "module",
7
+ "bin": {
8
+ "repo-standards": "./dist/cli.js"
9
+ },
7
10
  "scripts": {
8
11
  "dev": "ts-node-dev --respawn --transpile-only src/index.ts",
9
- "build": "npm run validate:schema && tsc -p tsconfig.build.json && tsx scripts/build.ts",
12
+ "build": "npm run validate:schema && tsx scripts/build.ts && tsup",
10
13
  "start": "node dist/index.js",
11
14
  "lint": "eslint .",
12
15
  "format": "prettier . --write",
@@ -41,6 +44,7 @@
41
44
  "prettier": "^3.7.4",
42
45
  "semantic-release": "^24.2.0",
43
46
  "ts-node": "^10.9.2",
47
+ "tsup": "^8.5.1",
44
48
  "tsx": "^4.7.2",
45
49
  "typescript": "^5.9.3",
46
50
  "vitest": "^4.0.15"
@@ -68,12 +72,19 @@
68
72
  "publishConfig": {
69
73
  "access": "public"
70
74
  },
71
- "main": "./dist/index.js",
75
+ "main": "./dist/index.cjs",
76
+ "module": "./dist/index.js",
72
77
  "types": "./dist/index.d.ts",
73
78
  "exports": {
74
79
  ".": {
75
- "import": "./dist/index.js",
76
- "types": "./dist/index.d.ts"
80
+ "import": {
81
+ "types": "./dist/index.d.ts",
82
+ "default": "./dist/index.js"
83
+ },
84
+ "require": {
85
+ "types": "./dist/index.d.cts",
86
+ "default": "./dist/index.cjs"
87
+ }
77
88
  },
78
89
  "./config/*": "./dist/config/*",
79
90
  "./schema/*": "./dist/schema/*"
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,UAAU,EACV,kBAAkB,EAClB,OAAO,EACP,QAAQ,EACT,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAG3E,YAAY,EAAE,UAAU,EAAE,kBAAkB,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;AAGlE,OAAO,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,CAAC;AAcvD,iEAAiE;AACjE,wBAAgB,cAAc,IAAI,UAAU,CAG3C;AAED,yEAAyE;AACzE,wBAAgB,YAAY,CAC1B,KAAK,EAAE,OAAO,EACd,EAAE,CAAC,EAAE,QAAQ,GACZ,kBAAkB,CAKpB;AAED,+DAA+D;AAC/D,wBAAgB,mBAAmB,IAAI,SAAS,OAAO,EAAE,CAGxD;AAED,mEAAmE;AACnE,wBAAgB,sBAAsB,IAAI,SAAS,QAAQ,EAAE,CAG5D;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,OAAO,EACd,EAAE,CAAC,EAAE,QAAQ,GACZ,kBAAkB,CAEpB;AAED;;;;GAIG;AACH,wBAAgB,SAAS,IAAI,UAAU,CAEtC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACzB,iFAAiF;IACjF,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,gFAAgF;IAChF,kBAAkB,CAAC,EAAE,MAAM,EAA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,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;KACxB,CAAC;IACF,OAAO,CAAC,EAAE,MAAM,CAAC,QAAQ,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC7E,UAAU,CAAC,EAAE,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;CAC1C;AAED,MAAM,WAAW,UAAU;IACzB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,OAAO,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,SAAS,EAAE;QACT,IAAI,EAAE,aAAa,EAAE,CAAC;QACtB,WAAW,EAAE,aAAa,EAAE,CAAC;QAC7B,oBAAoB,EAAE,aAAa,EAAE,CAAC;KACvC,CAAC;CACH"}
package/dist/types.js DELETED
@@ -1,2 +0,0 @@
1
- // src/types.ts
2
- export {};
package/dist/version.d.ts DELETED
@@ -1,11 +0,0 @@
1
- /**
2
- * AUTO-GENERATED at build time by scripts/build.ts
3
- * DO NOT EDIT MANUALLY
4
- *
5
- * This module provides version information for the repo-standards package.
6
- * Consumers should import from here instead of package.json to avoid
7
- * ESM/CJS interop issues.
8
- */
9
- export declare const STANDARDS_VERSION = "4.0.0";
10
- export declare const STANDARDS_SCHEMA_VERSION = 4;
11
- //# sourceMappingURL=version.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,eAAO,MAAM,iBAAiB,UAAU,CAAC;AACzC,eAAO,MAAM,wBAAwB,IAAI,CAAC"}
package/dist/version.js DELETED
@@ -1,10 +0,0 @@
1
- /**
2
- * AUTO-GENERATED at build time by scripts/build.ts
3
- * DO NOT EDIT MANUALLY
4
- *
5
- * This module provides version information for the repo-standards package.
6
- * Consumers should import from here instead of package.json to avoid
7
- * ESM/CJS interop issues.
8
- */
9
- export const STANDARDS_VERSION = "4.0.0";
10
- export const STANDARDS_SCHEMA_VERSION = 4;