@standards-kit/conform 0.3.1 → 0.3.2

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.
Files changed (65) hide show
  1. package/README.md +0 -9
  2. package/dist/{chunk-YKKWXHYS.js → chunk-AJIWBLUQ.js} +2 -5
  3. package/dist/chunk-AJIWBLUQ.js.map +1 -0
  4. package/dist/{chunk-DXIYZR62.js → chunk-G5AS4QBP.js} +1 -1
  5. package/dist/{chunk-RHM53NLG.js → chunk-HMNRMNEA.js} +1 -1
  6. package/dist/{chunk-RHM53NLG.js.map → chunk-HMNRMNEA.js.map} +1 -1
  7. package/dist/{chunk-M7G73Q6P.js → chunk-T2PWT2B5.js} +1 -1
  8. package/dist/chunk-T2PWT2B5.js.map +1 -0
  9. package/dist/{chunk-FJZMUGYW.js → chunk-UU6OT5O3.js} +32 -6
  10. package/dist/chunk-UU6OT5O3.js.map +1 -0
  11. package/dist/{chunk-J5S6GRGW.js → chunk-XZERDHOH.js} +2 -2
  12. package/dist/cli/index.d.ts +1 -1
  13. package/dist/cli/utils.d.ts +2 -4
  14. package/dist/cli.js +16 -16
  15. package/dist/cli.js.map +1 -1
  16. package/dist/constants.d.ts +0 -9
  17. package/dist/core/index.d.ts +0 -1
  18. package/dist/{core-LFX2BFLG.js → core-SAQ5O5IL.js} +6 -16
  19. package/dist/{generate-D4MFMOHP.js → generate-4EY6VETG.js} +3 -3
  20. package/dist/{iam-YXMHK2MV.js → iam-ZV3RA3JZ.js} +2 -2
  21. package/dist/index.d.ts +1 -1
  22. package/dist/index.js +8 -9
  23. package/dist/index.js.map +1 -1
  24. package/dist/infra/checkers/index.d.ts +0 -4
  25. package/dist/infra/schemas.d.ts +1 -1
  26. package/dist/{infra-RFEWGWPW.js → infra-OWKYLH3J.js} +10 -10
  27. package/dist/infra-OWKYLH3J.js.map +1 -0
  28. package/dist/{manifest-7AIL2FK2.js → manifest-CL4QMZT6.js} +2 -2
  29. package/dist/mcp/standards/matcher.d.ts +0 -9
  30. package/dist/mcp/standards/parser.d.ts +0 -4
  31. package/dist/{mcp-DYQG6JEQ.js → mcp-6PRCC6P6.js} +5 -5
  32. package/dist/process/index.d.ts +1 -1
  33. package/dist/process/scan/remote-fetcher.d.ts +0 -2
  34. package/dist/process/tools/index.d.ts +0 -1
  35. package/dist/projects/templates.d.ts +0 -4
  36. package/dist/{registry-J2LVW3M2.js → registry-QYUYWBMY.js} +3 -3
  37. package/dist/{s3-S4GXNR7H.js → s3-3DJX6X5S.js} +4 -4
  38. package/dist/{s3-53UELUWT.js → s3-6YMTP5VV.js} +4 -4
  39. package/dist/{scan-BZH5IR3Z.js → scan-5QKYVHI6.js} +5 -5
  40. package/dist/scan-5QKYVHI6.js.map +1 -0
  41. package/dist/{standards-ALMA4VIU.js → standards-EGSQSDOD.js} +3 -9
  42. package/dist/{sync-EGJ2CSYK.js → sync-QMZDAV44.js} +4 -4
  43. package/dist/validate/guidelines.d.ts +0 -14
  44. package/dist/validate/index.d.ts +1 -2
  45. package/dist/{validate-X4K2SHYT.js → validate-OGNSVZO5.js} +5 -6
  46. package/dist/validate-OGNSVZO5.js.map +1 -0
  47. package/package.json +2 -2
  48. package/dist/chunk-FJZMUGYW.js.map +0 -1
  49. package/dist/chunk-M7G73Q6P.js.map +0 -1
  50. package/dist/chunk-YKKWXHYS.js.map +0 -1
  51. package/dist/infra-RFEWGWPW.js.map +0 -1
  52. package/dist/scan-BZH5IR3Z.js.map +0 -1
  53. package/dist/validate-X4K2SHYT.js.map +0 -1
  54. /package/dist/{chunk-DXIYZR62.js.map → chunk-G5AS4QBP.js.map} +0 -0
  55. /package/dist/{chunk-J5S6GRGW.js.map → chunk-XZERDHOH.js.map} +0 -0
  56. /package/dist/{core-LFX2BFLG.js.map → core-SAQ5O5IL.js.map} +0 -0
  57. /package/dist/{generate-D4MFMOHP.js.map → generate-4EY6VETG.js.map} +0 -0
  58. /package/dist/{iam-YXMHK2MV.js.map → iam-ZV3RA3JZ.js.map} +0 -0
  59. /package/dist/{manifest-7AIL2FK2.js.map → manifest-CL4QMZT6.js.map} +0 -0
  60. /package/dist/{mcp-DYQG6JEQ.js.map → mcp-6PRCC6P6.js.map} +0 -0
  61. /package/dist/{registry-J2LVW3M2.js.map → registry-QYUYWBMY.js.map} +0 -0
  62. /package/dist/{s3-53UELUWT.js.map → s3-3DJX6X5S.js.map} +0 -0
  63. /package/dist/{s3-S4GXNR7H.js.map → s3-6YMTP5VV.js.map} +0 -0
  64. /package/dist/{standards-ALMA4VIU.js.map → standards-EGSQSDOD.js.map} +0 -0
  65. /package/dist/{sync-EGJ2CSYK.js.map → sync-QMZDAV44.js.map} +0 -0
@@ -1,3 +1,3 @@
1
1
  export { createValidateCommand } from "./validate.js";
2
2
  export { createProcessCommand } from "./process.js";
3
- export { configureExitOverride, handleError, runCheck, runAudit, buildResult, type DomainFilter, } from "./utils.js";
3
+ export { configureExitOverride, handleError, runCheck, runAudit, } from "./utils.js";
@@ -1,13 +1,10 @@
1
1
  import { Command } from "commander";
2
- import { type DomainResult, type FullResult } from "../core/index.js";
3
2
  /**
4
3
  * Configure exitOverride for a Command to return proper exit codes.
5
4
  * Must be called on parent commands that have subcommands with options.
6
5
  */
7
6
  export declare function configureExitOverride(cmd: Command): Command;
8
- export type DomainFilter = "code" | "process" | undefined;
9
- export declare function shouldRunDomain(filter: DomainFilter, domain: "code" | "process"): boolean;
10
- export declare function buildResult(version: string, configPath: string, domains: Record<string, DomainResult>): FullResult;
7
+ type DomainFilter = "code" | "process" | undefined;
11
8
  export declare function handleError(error: unknown): never;
12
9
  export declare function runCheck(version: string, options: {
13
10
  config?: string;
@@ -17,3 +14,4 @@ export declare function runAudit(version: string, options: {
17
14
  config?: string;
18
15
  format: string;
19
16
  }, domain?: DomainFilter): Promise<void>;
17
+ export {};
package/dist/cli.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  CheckResultBuilder,
4
4
  DomainResultBuilder,
5
5
  ExitCode
6
- } from "./chunk-DXIYZR62.js";
6
+ } from "./chunk-G5AS4QBP.js";
7
7
  import {
8
8
  ConfigError,
9
9
  DEFAULT_FORBIDDEN_FILES_IGNORE,
@@ -11,12 +11,12 @@ import {
11
11
  getProjectRoot,
12
12
  loadConfig,
13
13
  loadConfigAsync
14
- } from "./chunk-FJZMUGYW.js";
14
+ } from "./chunk-UU6OT5O3.js";
15
15
  import {
16
16
  AWS_DEFAULTS,
17
17
  GITHUB_API,
18
18
  TIMEOUTS
19
- } from "./chunk-RHM53NLG.js";
19
+ } from "./chunk-HMNRMNEA.js";
20
20
 
21
21
  // src/cli.ts
22
22
  import * as fs23 from "fs";
@@ -6988,7 +6988,7 @@ function createValidateCommand() {
6988
6988
  new Option("-f, --format <format>", "Output format").choices(["text", "json"]).default("text")
6989
6989
  ).action(async (options) => {
6990
6990
  try {
6991
- const { loadConfigWithOverrides } = await import("./core-LFX2BFLG.js");
6991
+ const { loadConfigWithOverrides } = await import("./core-SAQ5O5IL.js");
6992
6992
  const { configPath, overrides } = await loadConfigWithOverrides(options.config);
6993
6993
  outputValidateResult(configPath, overrides, options);
6994
6994
  process.exit(ExitCode.SUCCESS);
@@ -7009,7 +7009,7 @@ function createValidateCommand() {
7009
7009
  new Option("-f, --format <format>", "Output format").choices(["text", "json"]).default("text")
7010
7010
  ).action(async (options) => {
7011
7011
  try {
7012
- const { validateTierRuleset, formatTierResultText, formatTierResultJson } = await import("./validate-X4K2SHYT.js");
7012
+ const { validateTierRuleset, formatTierResultText, formatTierResultJson } = await import("./validate-OGNSVZO5.js");
7013
7013
  const result = validateTierRuleset({ config: options.config });
7014
7014
  const output = options.format === "json" ? formatTierResultJson(result) : formatTierResultText(result);
7015
7015
  process.stdout.write(`${output}
@@ -7036,7 +7036,7 @@ function createValidateCommand() {
7036
7036
  new Option("-f, --format <format>", "Output format").choices(["text", "json"]).default("text")
7037
7037
  ).action(async (dirPath, options) => {
7038
7038
  try {
7039
- const { runValidateGuidelines } = await import("./validate-X4K2SHYT.js");
7039
+ const { runValidateGuidelines } = await import("./validate-OGNSVZO5.js");
7040
7040
  await runValidateGuidelines(dirPath, options);
7041
7041
  } catch (error) {
7042
7042
  handleError(error);
@@ -7291,14 +7291,14 @@ function createProcessCommand(version) {
7291
7291
  processCommand.command("diff").description("Show repository setting differences (current vs. config)").option("-c, --config <path>", "Path to standards.toml config file").addOption(
7292
7292
  new Option2("-f, --format <format>", "Output format").choices(["text", "json"]).default("text")
7293
7293
  ).action(async (options) => {
7294
- const { runDiff } = await import("./sync-EGJ2CSYK.js");
7294
+ const { runDiff } = await import("./sync-QMZDAV44.js");
7295
7295
  await runDiff({ config: options.config, format: options.format });
7296
7296
  });
7297
7297
  processCommand.command("sync").description("Synchronize repository settings to match config").option("-c, --config <path>", "Path to standards.toml config file").option("--apply", "Actually apply changes (required for safety)").option("--validate-actors", "Validate bypass actor IDs against GitHub API before applying").addOption(
7298
7298
  new Option2("-f, --format <format>", "Output format").choices(["text", "json"]).default("text")
7299
7299
  ).action(
7300
7300
  async (options) => {
7301
- const { runSync } = await import("./sync-EGJ2CSYK.js");
7301
+ const { runSync } = await import("./sync-QMZDAV44.js");
7302
7302
  await runSync({
7303
7303
  config: options.config,
7304
7304
  format: options.format,
@@ -7310,13 +7310,13 @@ function createProcessCommand(version) {
7310
7310
  processCommand.command("diff-tags").description("Show tag protection differences (current vs. config)").option("-c, --config <path>", "Path to standards.toml config file").addOption(
7311
7311
  new Option2("-f, --format <format>", "Output format").choices(["text", "json"]).default("text")
7312
7312
  ).action(async (options) => {
7313
- const { runTagDiff } = await import("./sync-EGJ2CSYK.js");
7313
+ const { runTagDiff } = await import("./sync-QMZDAV44.js");
7314
7314
  await runTagDiff({ config: options.config, format: options.format });
7315
7315
  });
7316
7316
  processCommand.command("sync-tags").description("Synchronize tag protection ruleset to match config").option("-c, --config <path>", "Path to standards.toml config file").option("--apply", "Actually apply changes (required for safety)").addOption(
7317
7317
  new Option2("-f, --format <format>", "Output format").choices(["text", "json"]).default("text")
7318
7318
  ).action(async (options) => {
7319
- const { runTagSync } = await import("./sync-EGJ2CSYK.js");
7319
+ const { runTagSync } = await import("./sync-QMZDAV44.js");
7320
7320
  await runTagSync({
7321
7321
  config: options.config,
7322
7322
  format: options.format,
@@ -7347,7 +7347,7 @@ function createProcessCommand(version) {
7347
7347
  ).option("-c, --config <path>", "Path to standards.toml config file").addOption(
7348
7348
  new Option2("-f, --format <format>", "Output format").choices(["text", "json"]).default("text")
7349
7349
  ).action(async (options) => {
7350
- const { runScan } = await import("./scan-BZH5IR3Z.js");
7350
+ const { runScan } = await import("./scan-5QKYVHI6.js");
7351
7351
  await runScan({
7352
7352
  repo: options.repo,
7353
7353
  config: options.config,
@@ -7380,7 +7380,7 @@ schemaCommand.command("config").description("Output JSON schema for standards.to
7380
7380
  `);
7381
7381
  });
7382
7382
  schemaCommand.command("guidelines").description("Output JSON schema for guideline frontmatter").action(async () => {
7383
- const { frontmatterSchema } = await import("./standards-ALMA4VIU.js");
7383
+ const { frontmatterSchema } = await import("./standards-EGSQSDOD.js");
7384
7384
  const jsonSchema = z.toJSONSchema(frontmatterSchema, {
7385
7385
  reused: "inline"
7386
7386
  });
@@ -7397,7 +7397,7 @@ codeCommand.command("audit").description("Verify linting and type checking confi
7397
7397
  ).action((options) => runAudit(VERSION, options, "code"));
7398
7398
  program.addCommand(codeCommand);
7399
7399
  program.addCommand(createProcessCommand(VERSION));
7400
- program.command("dependencies").description("List config files tracked by enabled checks (for drift-toolkit)").option("-c, --config <path>", "Path to standards.toml config file").addOption(
7400
+ program.command("dependencies").description("List config files tracked by enabled checks (for @standards-kit/drift)").option("-c, --config <path>", "Path to standards.toml config file").addOption(
7401
7401
  new Option3("-f, --format <format>", "Output format").choices(["text", "json"]).default("text")
7402
7402
  ).option("--check <name>", "Filter to specific check (e.g., eslint)").option("--project <path>", "Monorepo project path").action(
7403
7403
  async (options) => {
@@ -7429,7 +7429,7 @@ var infraCommand = configureExitOverride(
7429
7429
  infraCommand.command("scan").description("Verify AWS resources declared in manifest exist").option("-c, --config <path>", "Path to standards.toml config file").option("-m, --manifest <path>", "Path to manifest file (overrides config)").option("-a, --account <name>", "Filter to specific account (by alias or account key like 'aws:123')").addOption(
7430
7430
  new Option3("-f, --format <format>", "Output format").choices(["text", "json"]).default("text")
7431
7431
  ).action(async (options) => {
7432
- const { runInfraScan } = await import("./infra-RFEWGWPW.js");
7432
+ const { runInfraScan } = await import("./infra-OWKYLH3J.js");
7433
7433
  await runInfraScan({
7434
7434
  configPath: options.config,
7435
7435
  manifestPath: options.manifest,
@@ -7439,7 +7439,7 @@ infraCommand.command("scan").description("Verify AWS resources declared in manif
7439
7439
  });
7440
7440
  infraCommand.command("generate").description("Generate infra-manifest.json from Pulumi stack export").option("-i, --input <path>", "Input file (reads from stdin if not provided)").option("-o, --output <path>", "Output file path (default: infra-manifest.json)").option("-p, --project <name>", "Project name (extracted from stack if not provided)").option("-a, --account <alias>", "Account alias (e.g., 'prod-aws')").option("--account-id <id>", "Explicit account ID (e.g., 'aws:111111111111')").option("--merge", "Merge into existing manifest instead of overwriting").option("--stdout", "Output to stdout instead of file").action(
7441
7441
  async (options) => {
7442
- const { runInfraGenerate } = await import("./infra-RFEWGWPW.js");
7442
+ const { runInfraGenerate } = await import("./infra-OWKYLH3J.js");
7443
7443
  await runInfraGenerate(options);
7444
7444
  }
7445
7445
  );
@@ -7452,7 +7452,7 @@ program.command("audit").description("Verify all configs exist (code + process)"
7452
7452
  ).action((options) => runAudit(VERSION, options));
7453
7453
  program.command("mcp").description("Start MCP server for coding standards (for Claude Desktop integration)").action(async () => {
7454
7454
  try {
7455
- const { startServer } = await import("./mcp-DYQG6JEQ.js");
7455
+ const { startServer } = await import("./mcp-6PRCC6P6.js");
7456
7456
  await startServer();
7457
7457
  } catch (error) {
7458
7458
  handleError(error);