@moda-ai/cli 1.55.65 → 1.55.67

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.
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  buildDoctorReport
3
- } from "./cli-7rq27nht.js";
3
+ } from "./cli-ff4675az.js";
4
4
  import"./cli-27kkk5z4.js";
5
- import"./cli-7mdzvenp.js";
5
+ import"./cli-nhnr529r.js";
6
6
  import"./cli-mm48br00.js";
7
7
  import {
8
8
  readHarnessSyncState
@@ -14,7 +14,7 @@ import {
14
14
  hashStableJson,
15
15
  readHarnessReport,
16
16
  validateHarnessReport
17
- } from "./cli-1fcx3eyn.js";
17
+ } from "./cli-z0v1j51p.js";
18
18
  import"./cli-m702wdtv.js";
19
19
  import"./cli-e0kbye4s.js";
20
20
  import"./cli-wcax07xh.js";
@@ -30,7 +30,7 @@ import {
30
30
  } from "./cli-k4tqwah4.js";
31
31
  import"./cli-9kfxkxmk.js";
32
32
  import"./cli-9a4b1wxz.js";
33
- import"./cli-mfvwvh84.js";
33
+ import"./cli-ysh0mdwp.js";
34
34
  import {
35
35
  __require
36
36
  } from "./cli-0v6na3yp.js";
@@ -96,7 +96,7 @@ async function buildAgentContext(context) {
96
96
  const graph = readHarnessGraphIfPresent(context.cwd);
97
97
  const reportState = readHarnessReportState(context.cwd);
98
98
  const syncState = readHarnessSyncState(context.cwd);
99
- const harness = graph ? await import("./harness-462pdr5e.js") : undefined;
99
+ const harness = graph ? await import("./harness-cp1j845n.js") : undefined;
100
100
  const topFindings = doctor.checks.filter((check) => check.status === "fail" || check.status === "warning").slice(0, 12).map(checkToFinding);
101
101
  const evidenceRefs = [
102
102
  ...doctor.checks.map(checkToEvidenceRef),
@@ -29,7 +29,7 @@ import {
29
29
  stampRemoteSnapshotTruncation,
30
30
  validateHarnessReport,
31
31
  writeHarnessReportArtifacts
32
- } from "./cli-1fcx3eyn.js";
32
+ } from "./cli-z0v1j51p.js";
33
33
  import {
34
34
  createCommandContext,
35
35
  stringOption
@@ -44,6 +44,7 @@ import {
44
44
  callControlAPI
45
45
  } from "./cli-bpnt0z0y.js";
46
46
  import {
47
+ EXIT_DEGRADED,
47
48
  embeddedTenantIdFromApiKey,
48
49
  getActiveProfile,
49
50
  recordApiRequest,
@@ -96,11 +97,11 @@ import {
96
97
  } from "./cli-9a4b1wxz.js";
97
98
  import {
98
99
  extractHarnessWithContext
99
- } from "./cli-vqhaj5tv.js";
100
+ } from "./cli-p2s3nwc6.js";
100
101
  import {
101
102
  mergeBoundRuntimeClasses,
102
103
  tagComponentStatus
103
- } from "./cli-mfvwvh84.js";
104
+ } from "./cli-ysh0mdwp.js";
104
105
  import {
105
106
  require_typescript
106
107
  } from "./cli-gmvbapx7.js";
@@ -16890,7 +16891,7 @@ async function runHarnessCommand(context) {
16890
16891
  throw new CliInputError("Focused remote prompt analysis is not supported yet.", "Use local --analyst=claude|codex|cursor|local-scan, or drop --concern for a full remote report.");
16891
16892
  }
16892
16893
  if (context.flags["github-actions"] === "true") {
16893
- const { runGithubActionsAnalyze } = await import("./harness-github-actions-vt8tt6n9.js");
16894
+ const { runGithubActionsAnalyze } = await import("./harness-github-actions-3tkqqmn3.js");
16894
16895
  const result = await runGithubActionsAnalyze(rootDir, {
16895
16896
  writeReport: (report2) => {
16896
16897
  const normalized = normalizeHarnessReport(report2);
@@ -17063,11 +17064,14 @@ async function runHarnessCommand(context) {
17063
17064
  }
17064
17065
  case "extract": {
17065
17066
  writeHumanProgress(context, "Harness extract: tracing model call sites (no LLM, no network)...");
17066
- const { extractHarness, serializeExtractResult } = await import("./index-xkgawks9.js");
17067
+ const { extractHarness, serializeExtractResult } = await import("./index-a3k99ct8.js");
17067
17068
  const result = extractHarness(rootDir, { fresh: true });
17068
17069
  writeHumanProgress(context, `Harness extract: ${result.callSites.length} call sites, ${result.roles.length} traced roles across ${result.files} files (${result.programs} programs, ${result.durationMs.toLocaleString()} ms).`);
17069
- context.output.writeData(serializeExtractResult(result));
17070
- return { exitCode: 0 };
17070
+ context.output.writeData(serializeExtractResult(result), {
17071
+ status: result.warnings.length > 0 ? "degraded" : "success",
17072
+ ...result.warnings.length > 0 ? { warnings: result.warnings } : {}
17073
+ });
17074
+ return { exitCode: result.warnings.length > 0 ? EXIT_DEGRADED : 0 };
17071
17075
  }
17072
17076
  case "agents": {
17073
17077
  const graph = loadOrScanHarness(rootDir, tenant, context);
@@ -4,7 +4,7 @@ import {
4
4
  } from "./cli-27kkk5z4.js";
5
5
  import {
6
6
  inspectPromptManifest
7
- } from "./cli-7mdzvenp.js";
7
+ } from "./cli-nhnr529r.js";
8
8
  import {
9
9
  readHarnessSyncState,
10
10
  renderDoctorHuman,
@@ -395,7 +395,7 @@ async function harnessCurrentCheck(cwd, manifestPath, manifestExists, tenantId)
395
395
  };
396
396
  }
397
397
  try {
398
- const { scanHarness } = await import("./harness-462pdr5e.js");
398
+ const { scanHarness } = await import("./harness-cp1j845n.js");
399
399
  const current = scanHarness({
400
400
  rootDir: cwd,
401
401
  scannerVersion: "doctor",
@@ -5768,7 +5768,7 @@ async function runPromptSyncExclusive(flags, profileOptions, options) {
5768
5768
  const analyzedDefinitions = new Map;
5769
5769
  if (flags["no-analyze"] !== "true") {
5770
5770
  options.onProgress?.("Analyzing prompt sources before sync.");
5771
- const { analyzeHarnessPrompts } = await import("./harness-462pdr5e.js");
5771
+ const { analyzeHarnessPrompts } = await import("./harness-cp1j845n.js");
5772
5772
  const result = await analyzeHarnessPrompts({
5773
5773
  rootDir: process.cwd(),
5774
5774
  existing: established.flatMap((prompt) => prompt.sourceDefinition ? [prompt.sourceDefinition.source] : []),
@@ -5796,7 +5796,7 @@ async function runPromptSyncExclusive(flags, profileOptions, options) {
5796
5796
  const mergedSources = mergePromptSources(manifest.sources, extraSources);
5797
5797
  const manifestUpdate = stableJson(mergedSources) === stableJson(mergePromptSources(manifest.sources, [])) ? undefined : $stringify({ version: 2, prompt_paths: manifest.promptPaths, sources: mergedSources });
5798
5798
  const prompts = await discoverPrompts(extraSources);
5799
- const { checkPromptAttribution } = await import("./prompt-attribution-nha0sccy.js");
5799
+ const { checkPromptAttribution } = await import("./prompt-attribution-68r2331s.js");
5800
5800
  const attribution = checkPromptAttribution(process.cwd(), prompts.map((prompt) => prompt.key));
5801
5801
  const brokenAttribution = attribution.references.filter((reference) => reference.status === "missing");
5802
5802
  if (brokenAttribution.length) {
@@ -6102,7 +6102,7 @@ async function migratePromptManifest(options = {}) {
6102
6102
  let addedSources = [];
6103
6103
  let pendingSources = [];
6104
6104
  if (options.discover) {
6105
- const { analyzeHarnessPrompts } = await import("./harness-462pdr5e.js");
6105
+ const { analyzeHarnessPrompts } = await import("./harness-cp1j845n.js");
6106
6106
  const result = await analyzeHarnessPrompts({
6107
6107
  rootDir: root,
6108
6108
  existing: manifest.sources,
@@ -6303,7 +6303,7 @@ async function readHarnessSources(reportPath) {
6303
6303
  if (!graph) {
6304
6304
  throw new CliInputError(`${selected} is not a harness report with a graph (schema: ${schemaLabel}). Regenerate it with \`${HARNESS_REANALYZE_COMMAND}\`.`);
6305
6305
  }
6306
- const { normalizeHarnessReport } = await import("./harness-report-wbrrfzny.js");
6306
+ const { normalizeHarnessReport } = await import("./harness-report-d28wg4w5.js");
6307
6307
  const { backfillPromptSource, resolvePromptSource } = await loadPromptSources();
6308
6308
  const report = normalizeHarnessReport(raw);
6309
6309
  const artifacts = (report.graph.artifacts ?? []).filter((artifact) => artifact.type === "prompt");