@runa-ai/runa-cli 0.7.0 → 0.7.1

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 (27) hide show
  1. package/dist/{build-V66FAQXB.js → build-HUDIP6KU.js} +1 -1
  2. package/dist/{chunk-AIP6MR42.js → chunk-AFY3TX4I.js} +1 -1
  3. package/dist/{chunk-KWX3JHCY.js → chunk-AKZAN4BC.js} +6 -1
  4. package/dist/{chunk-SGJG3BKD.js → chunk-CCW3PLQY.js} +1 -1
  5. package/dist/{chunk-IBVVGH6X.js → chunk-EMB6IZFT.js} +17 -4
  6. package/dist/{ci-ZWRVWNFX.js → ci-XY6IKEDC.js} +844 -120
  7. package/dist/{cli-2JNBJUBB.js → cli-UZA4RBNQ.js} +13 -13
  8. package/dist/commands/ci/machine/actors/db/collect-schema-stats.d.ts +4 -1
  9. package/dist/commands/ci/machine/actors/db/production-preview.d.ts +10 -0
  10. package/dist/commands/ci/machine/actors/db/schema-canonical-diff.d.ts +22 -0
  11. package/dist/commands/ci/machine/commands/machine-runner.d.ts +2 -0
  12. package/dist/commands/ci/machine/formatters/sections/production-schema-status.d.ts +30 -0
  13. package/dist/commands/ci/machine/helpers.d.ts +8 -0
  14. package/dist/commands/ci/machine/machine.d.ts +57 -4
  15. package/dist/commands/template-check/commands/template-check.d.ts +1 -0
  16. package/dist/commands/template-check/contract.d.ts +1 -0
  17. package/dist/constants/versions.d.ts +1 -1
  18. package/dist/{db-XULCILOU.js → db-Q3GF7JWP.js} +78 -18
  19. package/dist/{env-SS66PZ4B.js → env-GMB3THRG.js} +1 -1
  20. package/dist/{hotfix-YA3DGLOM.js → hotfix-NDTPY2T4.js} +1 -1
  21. package/dist/index.js +3 -3
  22. package/dist/{init-ZIL6LRFO.js → init-U4VCRHTD.js} +1 -1
  23. package/dist/{template-check-3P4HZXVY.js → template-check-FFJVDLBF.js} +23 -6
  24. package/dist/{upgrade-NUK3ZBCL.js → upgrade-7TWORWBV.js} +1 -1
  25. package/dist/{vuln-check-2W7N5TA2.js → vuln-check-6CMNPSBR.js} +1 -1
  26. package/dist/{vuln-checker-IQJ56RUV.js → vuln-checker-EJJTNDNE.js} +1 -1
  27. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'module';
3
- import { getErrorMessage } from './chunk-IBVVGH6X.js';
3
+ import { getErrorMessage } from './chunk-EMB6IZFT.js';
4
4
  import { findRepoRoot } from './chunk-3WDV32GA.js';
5
5
  import { createMachineStateChangeLogger } from './chunk-5FT3F36G.js';
6
6
  import { getOutputFormatFromEnv } from './chunk-HKUWEGUX.js';
@@ -694,7 +694,11 @@ function sortResults(results) {
694
694
  return pathA.localeCompare(pathB);
695
695
  });
696
696
  }
697
- function filterResults(results, category) {
697
+ function normalizeTemplatePath(templatePath) {
698
+ if (!templatePath) return null;
699
+ return `packages/runa-templates/templates/${templatePath}`;
700
+ }
701
+ function filterResults(results, category, paths) {
698
702
  let filtered = results.filter((r) => {
699
703
  const filePath = r.runaPath ?? r.templatePath ?? "";
700
704
  return isCodeFile(filePath);
@@ -702,6 +706,14 @@ function filterResults(results, category) {
702
706
  if (category) {
703
707
  filtered = filtered.filter((r) => r.category === category);
704
708
  }
709
+ if (paths && paths.length > 0) {
710
+ const pathSet = new Set(paths);
711
+ filtered = filtered.filter((r) => {
712
+ const runaPath = r.runaPath;
713
+ const templatePath = normalizeTemplatePath(r.templatePath);
714
+ return runaPath !== null && pathSet.has(runaPath) || templatePath !== null && pathSet.has(templatePath);
715
+ });
716
+ }
705
717
  return filtered;
706
718
  }
707
719
  var compareActor = fromPromise(async ({ input }) => {
@@ -736,7 +748,7 @@ var compareActor = fromPromise(async ({ input }) => {
736
748
  results.push(createTemplateOnlyResult(templateRelPath, templateFile.category));
737
749
  }
738
750
  sortResults(results);
739
- return { results: filterResults(results, options.category) };
751
+ return { results: filterResults(results, options.category, options.paths) };
740
752
  });
741
753
 
742
754
  // src/commands/template-check/actors/discover.ts
@@ -1126,7 +1138,7 @@ function getCategoryForPath(path3) {
1126
1138
  }
1127
1139
  return "other";
1128
1140
  }
1129
- function normalizeTemplatePath(templatePath) {
1141
+ function normalizeTemplatePath2(templatePath) {
1130
1142
  return templatePath.replace(/^_claude\//, ".claude/").replace(".claude/rules/sdk/", ".claude/rules/").replace(".claude/agents/sdk/", ".claude/agents/").replace(".claude/skills/sdk/", ".claude/skills/").replace(".claude/commands/sdk/", ".claude/commands/");
1131
1143
  }
1132
1144
  function applyReverseRename(normalized, rule, isTemplate) {
@@ -1141,7 +1153,7 @@ function applyReverseRename(normalized, rule, isTemplate) {
1141
1153
  return normalized;
1142
1154
  }
1143
1155
  function generateComparisonKey(path3, isTemplate) {
1144
- let normalized = isTemplate ? normalizeTemplatePath(path3) : path3;
1156
+ let normalized = isTemplate ? normalizeTemplatePath2(path3) : path3;
1145
1157
  for (const rule of PATH_MAPPING_RULES) {
1146
1158
  normalized = applyReverseRename(normalized, rule, isTemplate);
1147
1159
  }
@@ -1644,6 +1656,10 @@ var AHEAD_LABELS = {
1644
1656
  diverged: "diverged",
1645
1657
  equal: ""
1646
1658
  };
1659
+ function collectValues(value, previous) {
1660
+ previous.push(value);
1661
+ return previous;
1662
+ }
1647
1663
  var STATUS_SUFFIXES = {
1648
1664
  "runa-only": "(unexpected - missing in template)",
1649
1665
  "template-only": "(unexpected - missing in runa-repo)",
@@ -1929,11 +1945,12 @@ async function runTemplateCheckAction(options) {
1929
1945
  }
1930
1946
  var templateCheckCommand = new Command("template-check").description(
1931
1947
  "Compare runa-repo with SDK templates (runa-repo only)\n\n Exit codes:\n 0 = All files in sync\n 1 = Differences detected (action needed)\n 2 = Error occurred"
1932
- ).option("--verbose", "Show all files including identical ones").option("--diff", "Show unified diff for differences").option("--category <name>", "Filter by category (rules, agents, skills, etc.)").option("--json", "Output as JSON (for CI integration)").option("--quiet", "Only show summary and actions (for pre-commit hooks)").option("--target-dir <path>", "Target directory (defaults to repo root)").action(async (options) => {
1948
+ ).option("--verbose", "Show all files including identical ones").option("--diff", "Show unified diff for differences").option("--category <name>", "Filter by category (rules, agents, skills, etc.)").option("--path <file>", "Restrict results to a specific runa/template path", collectValues, []).option("--json", "Output as JSON (for CI integration)").option("--quiet", "Only show summary and actions (for pre-commit hooks)").option("--target-dir <path>", "Target directory (defaults to repo root)").action(async (options) => {
1933
1949
  const input = {
1934
1950
  verbose: options.verbose ?? false,
1935
1951
  diff: options.diff ?? false,
1936
1952
  category: options.category,
1953
+ paths: options.path?.length ? options.path : void 0,
1937
1954
  json: options.json ?? false,
1938
1955
  quiet: options.quiet ?? false,
1939
1956
  targetDir: options.targetDir
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'module';
3
- import { fetchTemplates } from './chunk-SGJG3BKD.js';
3
+ import { fetchTemplates } from './chunk-CCW3PLQY.js';
4
4
  import { updateRunaConfigSdkVersion } from './chunk-6AALH2ED.js';
5
5
  import './chunk-DRSUEMAK.js';
6
6
  import './chunk-RZLYEO4U.js';
@@ -71,7 +71,7 @@ var vulnCheckCommand = new Command("vuln-check").description("Run comprehensive
71
71
  const logger = createCLILogger("vuln-check");
72
72
  const isJsonMode = getOutputFormatFromEnv() === "json" || options.format === "json";
73
73
  try {
74
- const { VulnChecker } = await import('./vuln-checker-IQJ56RUV.js');
74
+ const { VulnChecker } = await import('./vuln-checker-EJJTNDNE.js');
75
75
  const categoryMap = {
76
76
  code: ["injection", "auth", "crypto"],
77
77
  deps: ["dependency"],
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'module';
3
- import { CLI_VERSION } from './chunk-AIP6MR42.js';
3
+ import { CLI_VERSION } from './chunk-AFY3TX4I.js';
4
4
  import { init_esm_shims } from './chunk-VRXHCR5K.js';
5
5
  import { glob } from 'glob';
6
6
  import { exec } from 'child_process';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runa-ai/runa-cli",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "private": false,
5
5
  "description": "AI-powered DevOps CLI",
6
6
  "type": "module",
@@ -56,7 +56,7 @@
56
56
  "typescript": "5.9.3",
57
57
  "xstate": "5.28.0",
58
58
  "zod": "4.3.6",
59
- "@runa-ai/runa": "0.7.0",
59
+ "@runa-ai/runa": "0.7.1",
60
60
  "@runa-ai/runa-xstate-test-plugin": "0.5.58"
61
61
  },
62
62
  "engines": {