@moda-ai/cli 1.55.62 → 1.55.63

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-3t4ft30h.js";
3
+ } from "./cli-8b5yqyg3.js";
4
4
  import"./cli-27kkk5z4.js";
5
- import"./cli-thy08dak.js";
5
+ import"./cli-jfb2fnfh.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-kmq9pgef.js";
17
+ } from "./cli-1fcx3eyn.js";
18
18
  import"./cli-m702wdtv.js";
19
19
  import"./cli-e0kbye4s.js";
20
20
  import"./cli-wcax07xh.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-e1yawk87.js") : undefined;
99
+ const harness = graph ? await import("./harness-5e3qnand.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),
@@ -563,6 +563,8 @@ function normalizeHarnessReport(value) {
563
563
  if (!isRecord(report.graph))
564
564
  return report;
565
565
  const graph = report.graph;
566
+ const reportSource = isRecord(report.source) ? report.source : undefined;
567
+ const hashMatched = typeof reportSource?.graphHash === "string" && reportSource.graphHash === hashStableJson(graphForReport(graph));
566
568
  if (typeof graph.schemaVersion !== "string" && typeof graph.graphSchemaVersion === "string") {
567
569
  graph.schemaVersion = graph.graphSchemaVersion;
568
570
  }
@@ -603,6 +605,8 @@ function normalizeHarnessReport(value) {
603
605
  report.claims = report.claims.map((claim) => normalizeHarnessClaim(claim, graph));
604
606
  }
605
607
  normalizeHarnessSyncPlan(report);
608
+ if (reportSource && hashMatched)
609
+ reportSource.graphHash = hashStableJson(graphForReport(graph));
606
610
  return report;
607
611
  }
608
612
  function normalizeHarnessSyncPlan(report) {
@@ -942,6 +946,16 @@ function normalizeGraphItemFieldAliases(collection, item) {
942
946
  if (typeof item.type !== "string" || item.type.length === 0) {
943
947
  item.type = typeof item.kind === "string" && HARNESS_ARTIFACT_TYPES.has(item.kind) ? item.kind : "unknown";
944
948
  }
949
+ if (item.type === "tool" && typeof item.name === "string") {
950
+ const decorated = /^([A-Za-z_][\w.:-]*)\s+\((.+)\)$/.exec(item.name.trim());
951
+ if (decorated) {
952
+ if (typeof item.displayName !== "string" || item.displayName.length === 0)
953
+ item.displayName = item.name;
954
+ if (typeof item.variant !== "string" || item.variant.length === 0)
955
+ item.variant = decorated[2];
956
+ item.name = decorated[1];
957
+ }
958
+ }
945
959
  if (typeof item.sourcePath !== "string" && typeof item.path === "string" && item.path.length > 0) {
946
960
  item.sourcePath = item.path;
947
961
  }
@@ -4,7 +4,7 @@ import {
4
4
  } from "./cli-27kkk5z4.js";
5
5
  import {
6
6
  inspectPromptManifest
7
- } from "./cli-thy08dak.js";
7
+ } from "./cli-jfb2fnfh.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-e1yawk87.js");
398
+ const { scanHarness } = await import("./harness-5e3qnand.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-e1yawk87.js");
5771
+ const { analyzeHarnessPrompts } = await import("./harness-5e3qnand.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-htyrwdjj.js");
5799
+ const { checkPromptAttribution } = await import("./prompt-attribution-s7ec7bd3.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-e1yawk87.js");
6105
+ const { analyzeHarnessPrompts } = await import("./harness-5e3qnand.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-dc6yf2qv.js");
6306
+ const { normalizeHarnessReport } = await import("./harness-report-wbrrfzny.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");
@@ -29,7 +29,7 @@ import {
29
29
  stampRemoteSnapshotTruncation,
30
30
  validateHarnessReport,
31
31
  writeHarnessReportArtifacts
32
- } from "./cli-kmq9pgef.js";
32
+ } from "./cli-1fcx3eyn.js";
33
33
  import {
34
34
  createCommandContext,
35
35
  stringOption
@@ -15801,7 +15801,7 @@ async function runHarnessCommand(context) {
15801
15801
  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.");
15802
15802
  }
15803
15803
  if (context.flags["github-actions"] === "true") {
15804
- const { runGithubActionsAnalyze } = await import("./harness-github-actions-bgfnh4tw.js");
15804
+ const { runGithubActionsAnalyze } = await import("./harness-github-actions-0mxwmp6g.js");
15805
15805
  const result = await runGithubActionsAnalyze(rootDir, {
15806
15806
  writeReport: (report2) => {
15807
15807
  const normalized = normalizeHarnessReport(report2);
package/dist/cli.js CHANGED
@@ -2975,25 +2975,25 @@ function leafManifestFields(leaf, commands) {
2975
2975
  import { fileURLToPath } from "url";
2976
2976
  import { realpathSync } from "fs";
2977
2977
  async function runPromptsCommand(...args) {
2978
- return (await import("./prompts-s5q70jge.js")).runPromptsCommand(...args);
2978
+ return (await import("./prompts-h59g3egz.js")).runPromptsCommand(...args);
2979
2979
  }
2980
2980
  async function runSkillsCommand(...args) {
2981
2981
  return (await import("./skills-c25dmy28.js")).runSkillsCommand(...args);
2982
2982
  }
2983
2983
  async function runHarnessCommand(...args) {
2984
- return (await import("./harness-e1yawk87.js")).runHarnessCommand(...args);
2984
+ return (await import("./harness-5e3qnand.js")).runHarnessCommand(...args);
2985
2985
  }
2986
2986
  async function runSyncCommand(...args) {
2987
- return (await import("./sync-t1d50rpv.js")).runSyncCommand(...args);
2987
+ return (await import("./sync-jgk7dfjd.js")).runSyncCommand(...args);
2988
2988
  }
2989
2989
  async function runRegistryCommand(...args) {
2990
2990
  return (await import("./registry-ztn727mn.js")).runRegistryCommand(...args);
2991
2991
  }
2992
2992
  async function runDoctorCommand(...args) {
2993
- return (await import("./doctor-ehqrzq5e.js")).runDoctorCommand(...args);
2993
+ return (await import("./doctor-34yw1shj.js")).runDoctorCommand(...args);
2994
2994
  }
2995
2995
  async function runStatusCommand(...args) {
2996
- return (await import("./doctor-ehqrzq5e.js")).runStatusCommand(...args);
2996
+ return (await import("./doctor-34yw1shj.js")).runStatusCommand(...args);
2997
2997
  }
2998
2998
  async function runAuthCommand(...args) {
2999
2999
  return (await import("./profile-commands-fa2858ez.js")).runAuthCommand(...args);
@@ -3005,7 +3005,7 @@ async function runProfilesCommand(...args) {
3005
3005
  return (await import("./profile-commands-fa2858ez.js")).runProfilesCommand(...args);
3006
3006
  }
3007
3007
  async function runAgentCommand(...args) {
3008
- return (await import("./agent-rc62qxke.js")).runAgentCommand(...args);
3008
+ return (await import("./agent-y53qz08m.js")).runAgentCommand(...args);
3009
3009
  }
3010
3010
  async function runProductionCommand(...args) {
3011
3011
  return (await import("./production-intelligence-40teyxyv.js")).runProductionCommand(...args);
@@ -6769,7 +6769,7 @@ var commandRegistry = createCommandRegistry([
6769
6769
  resetApiRequestCountBeforeRun: true,
6770
6770
  telemetry: "result-and-error",
6771
6771
  handler: async (context) => {
6772
- const { runInit } = await import("./index-ma1gt133.js");
6772
+ const { runInit } = await import("./index-tap398h2.js");
6773
6773
  if (context.outputMode === "agent-stream") {
6774
6774
  context.output.writeEvent({
6775
6775
  event: "started",
@@ -3,9 +3,9 @@ import {
3
3
  promptsDiscoveredCheck,
4
4
  runDoctorCommand,
5
5
  runStatusCommand
6
- } from "./cli-3t4ft30h.js";
6
+ } from "./cli-8b5yqyg3.js";
7
7
  import"./cli-27kkk5z4.js";
8
- import"./cli-thy08dak.js";
8
+ import"./cli-jfb2fnfh.js";
9
9
  import"./cli-mm48br00.js";
10
10
  import"./cli-k0vxtzxb.js";
11
11
  import"./cli-m702wdtv.js";
@@ -45,12 +45,12 @@ import {
45
45
  writeHarnessAnalyzeResult,
46
46
  writeHarnessArtifacts,
47
47
  writeHumanProgress
48
- } from "./cli-tn9dg758.js";
48
+ } from "./cli-xmv0fark.js";
49
49
  import"./cli-k0vxtzxb.js";
50
50
  import"./cli-97fnztpy.js";
51
51
  import {
52
52
  HARNESS_ANALYZE_CONCERNS
53
- } from "./cli-kmq9pgef.js";
53
+ } from "./cli-1fcx3eyn.js";
54
54
  import"./cli-m702wdtv.js";
55
55
  import"./cli-e0kbye4s.js";
56
56
  import"./cli-wcax07xh.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  buildSourceSnapshot
3
- } from "./cli-tn9dg758.js";
3
+ } from "./cli-xmv0fark.js";
4
4
  import"./cli-k0vxtzxb.js";
5
5
  import"./cli-97fnztpy.js";
6
- import"./cli-kmq9pgef.js";
6
+ import"./cli-1fcx3eyn.js";
7
7
  import"./cli-m702wdtv.js";
8
8
  import"./cli-e0kbye4s.js";
9
9
  import"./cli-wcax07xh.js";
@@ -24,7 +24,7 @@ import {
24
24
  stampRemoteSnapshotTruncation,
25
25
  validateHarnessReport,
26
26
  writeHarnessReportArtifacts
27
- } from "./cli-kmq9pgef.js";
27
+ } from "./cli-1fcx3eyn.js";
28
28
  import"./cli-k4tqwah4.js";
29
29
  import"./cli-mfvwvh84.js";
30
30
  import"./cli-0v6na3yp.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  buildDoctorReport
3
- } from "./cli-3t4ft30h.js";
3
+ } from "./cli-8b5yqyg3.js";
4
4
  import {
5
5
  selectTenantAndCreateKey
6
6
  } from "./cli-rdwy3y4f.js";
@@ -20,7 +20,7 @@ import {
20
20
  import {
21
21
  initPrompts,
22
22
  runPromptSync
23
- } from "./cli-thy08dak.js";
23
+ } from "./cli-jfb2fnfh.js";
24
24
  import {
25
25
  agentsMdProblem,
26
26
  runSkillSync
@@ -46,7 +46,7 @@ import {
46
46
  runCodingAgent,
47
47
  runHarnessCommand,
48
48
  startRemoteAnalyze
49
- } from "./cli-tn9dg758.js";
49
+ } from "./cli-xmv0fark.js";
50
50
  import {
51
51
  canonicalText,
52
52
  renderInitBanner,
@@ -58,7 +58,7 @@ import {
58
58
  import {
59
59
  stripAnsi
60
60
  } from "./cli-97fnztpy.js";
61
- import"./cli-kmq9pgef.js";
61
+ import"./cli-1fcx3eyn.js";
62
62
  import {
63
63
  createCommandContext
64
64
  } from "./cli-m702wdtv.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  inventoryFiles,
3
3
  safePromptEvidencePath
4
- } from "./cli-tn9dg758.js";
4
+ } from "./cli-xmv0fark.js";
5
5
  import"./cli-k0vxtzxb.js";
6
6
  import"./cli-97fnztpy.js";
7
- import"./cli-kmq9pgef.js";
7
+ import"./cli-1fcx3eyn.js";
8
8
  import"./cli-m702wdtv.js";
9
9
  import"./cli-e0kbye4s.js";
10
10
  import"./cli-wcax07xh.js";
@@ -3,10 +3,10 @@ import {
3
3
  checkPromptMapping,
4
4
  discoverHarnessPromptSources,
5
5
  safePromptEvidencePath
6
- } from "./cli-tn9dg758.js";
6
+ } from "./cli-xmv0fark.js";
7
7
  import"./cli-k0vxtzxb.js";
8
8
  import"./cli-97fnztpy.js";
9
- import"./cli-kmq9pgef.js";
9
+ import"./cli-1fcx3eyn.js";
10
10
  import"./cli-m702wdtv.js";
11
11
  import"./cli-e0kbye4s.js";
12
12
  import"./cli-wcax07xh.js";
@@ -9,7 +9,7 @@ import {
9
9
  runPromptSync,
10
10
  runPromptsCommand,
11
11
  writePromptSyncProgress
12
- } from "./cli-thy08dak.js";
12
+ } from "./cli-jfb2fnfh.js";
13
13
  import {
14
14
  promptSourceHashPayload
15
15
  } from "./cli-mm48br00.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  runPromptsCommand
3
- } from "./cli-thy08dak.js";
3
+ } from "./cli-jfb2fnfh.js";
4
4
  import {
5
5
  runSkillsCommand
6
6
  } from "./cli-p2tfx93b.js";
@@ -10,10 +10,10 @@ import"./cli-hcwdz9sd.js";
10
10
  import"./cli-mm48br00.js";
11
11
  import {
12
12
  runHarnessCommand
13
- } from "./cli-tn9dg758.js";
13
+ } from "./cli-xmv0fark.js";
14
14
  import"./cli-k0vxtzxb.js";
15
15
  import"./cli-97fnztpy.js";
16
- import"./cli-kmq9pgef.js";
16
+ import"./cli-1fcx3eyn.js";
17
17
  import"./cli-m702wdtv.js";
18
18
  import"./cli-e0kbye4s.js";
19
19
  import"./cli-wcax07xh.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moda-ai/cli",
3
- "version": "1.55.62",
3
+ "version": "1.55.63",
4
4
  "description": "CLI for Moda: production monitoring and evals for AI agents.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schema_version": "moda.skill_index.v1",
3
- "bundled_at": "2026-10-21T05:29:33.363Z",
4
- "cli_version": "1.55.62",
3
+ "bundled_at": "2026-10-21T05:36:16.000Z",
4
+ "cli_version": "1.55.63",
5
5
  "skills": [
6
6
  {
7
7
  "id": "integration-cloudflare-think",