@moda-ai/cli 1.55.71 → 1.55.72

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-1ykm231r.js";
3
+ } from "./cli-9dwq3vyj.js";
4
4
  import"./cli-rrggdmf8.js";
5
- import"./cli-0qnmrybh.js";
5
+ import"./cli-gqkvypxh.js";
6
6
  import"./cli-mm48br00.js";
7
7
  import {
8
8
  readHarnessSyncState
@@ -95,7 +95,7 @@ async function buildAgentContext(context) {
95
95
  const graph = readHarnessGraphIfPresent(context.cwd);
96
96
  const reportState = readHarnessReportState(context.cwd);
97
97
  const syncState = readHarnessSyncState(context.cwd);
98
- const harness = graph ? await import("./harness-29rxrwfg.js") : undefined;
98
+ const harness = graph ? await import("./harness-qvszhbrt.js") : undefined;
99
99
  const topFindings = doctor.checks.filter((check) => check.status === "fail" || check.status === "warning").slice(0, 12).map(checkToFinding);
100
100
  const evidenceRefs = [
101
101
  ...doctor.checks.map(checkToEvidenceRef),
@@ -4,7 +4,7 @@ import {
4
4
  } from "./cli-rrggdmf8.js";
5
5
  import {
6
6
  inspectPromptManifest
7
- } from "./cli-0qnmrybh.js";
7
+ } from "./cli-gqkvypxh.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-29rxrwfg.js");
398
+ const { scanHarness } = await import("./harness-qvszhbrt.js");
399
399
  const current = scanHarness({
400
400
  rootDir: cwd,
401
401
  scannerVersion: "doctor",
@@ -3136,12 +3136,60 @@ function effectiveField(object, key) {
3136
3136
  });
3137
3137
  return fields;
3138
3138
  }
3139
+ var WRITTEN_SYMBOLS = new WeakMap;
3140
+ function writtenSymbols(file, checker) {
3141
+ let written = WRITTEN_SYMBOLS.get(file);
3142
+ if (written)
3143
+ return written;
3144
+ const found = new Set;
3145
+ const add = (node) => {
3146
+ const root = rootIdentifier(node);
3147
+ const symbol = root ? resolvedSymbol(root, checker) : undefined;
3148
+ if (symbol)
3149
+ found.add(symbol);
3150
+ };
3151
+ const visit = (node) => {
3152
+ if (import_typescript5.default.isBinaryExpression(node) && node.operatorToken.kind >= import_typescript5.default.SyntaxKind.FirstAssignment && node.operatorToken.kind <= import_typescript5.default.SyntaxKind.LastAssignment)
3153
+ add(node.left);
3154
+ else if (import_typescript5.default.isDeleteExpression(node))
3155
+ add(node.expression);
3156
+ else if ((import_typescript5.default.isPrefixUnaryExpression(node) || import_typescript5.default.isPostfixUnaryExpression(node)) && (node.operator === import_typescript5.default.SyntaxKind.PlusPlusToken || node.operator === import_typescript5.default.SyntaxKind.MinusMinusToken))
3157
+ add(node.operand);
3158
+ else if (import_typescript5.default.isCallExpression(node) && node.arguments.length > 0) {
3159
+ const callee = unwrap(node.expression);
3160
+ if (import_typescript5.default.isPropertyAccessExpression(callee) && callee.name.text === "assign")
3161
+ add(node.arguments[0]);
3162
+ }
3163
+ import_typescript5.default.forEachChild(node, visit);
3164
+ };
3165
+ visit(file);
3166
+ written = found;
3167
+ WRITTEN_SYMBOLS.set(file, written);
3168
+ return written;
3169
+ }
3170
+ function gatewayRequestLiteral(argument, checker) {
3171
+ const value = unwrap(argument);
3172
+ if (import_typescript5.default.isObjectLiteralExpression(value))
3173
+ return value;
3174
+ if (!import_typescript5.default.isIdentifier(value))
3175
+ return;
3176
+ const symbol = resolvedSymbol(value, checker);
3177
+ const declaration = valueDeclaration(symbol);
3178
+ if (!symbol || !declaration || !import_typescript5.default.isVariableDeclaration(declaration) || !declaration.initializer)
3179
+ return;
3180
+ if (!(import_typescript5.default.getCombinedNodeFlags(declaration) & import_typescript5.default.NodeFlags.Const))
3181
+ return;
3182
+ const literal = unwrap(declaration.initializer);
3183
+ if (!import_typescript5.default.isObjectLiteralExpression(literal))
3184
+ return;
3185
+ return writtenSymbols(declaration.getSourceFile(), checker).has(symbol) ? undefined : literal;
3186
+ }
3139
3187
  var GATEWAY_METHODS = new Set(["call", "stream"]);
3140
3188
  var GATEWAY_BODY_KEYS = { system: "system", messages: "messages", prompt: "prompt", model: "model", tools: "tools" };
3141
3189
  var modelGatewaySink = {
3142
3190
  id: "model-gateway",
3143
3191
  sdk: "model-gateway",
3144
- match(call) {
3192
+ match(call, ctx) {
3145
3193
  if (!import_typescript5.default.isCallExpression(call) || call.arguments.length !== 1)
3146
3194
  return;
3147
3195
  const callee = unwrap(call.expression);
@@ -3150,8 +3198,8 @@ var modelGatewaySink = {
3150
3198
  const receiver = unwrap(callee.expression);
3151
3199
  if (!import_typescript5.default.isPropertyAccessExpression(receiver) || receiver.name.text !== "models")
3152
3200
  return;
3153
- const request = unwrap(call.arguments[0]);
3154
- if (!import_typescript5.default.isObjectLiteralExpression(request) || !propertyValue(request, "kind"))
3201
+ const request = gatewayRequestLiteral(call.arguments[0], ctx.checker);
3202
+ if (!request || !propertyValue(request, "kind"))
3155
3203
  return;
3156
3204
  const roles = [];
3157
3205
  for (const body of effectiveField(request, "body")) {
@@ -18983,7 +19031,7 @@ async function runHarnessCommand(context) {
18983
19031
  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.");
18984
19032
  }
18985
19033
  if (context.flags["github-actions"] === "true") {
18986
- const { runGithubActionsAnalyze } = await import("./harness-github-actions-6p1czt5h.js");
19034
+ const { runGithubActionsAnalyze } = await import("./harness-github-actions-awcd5ns1.js");
18987
19035
  const result = await runGithubActionsAnalyze(rootDir, {
18988
19036
  writeReport: (report2) => {
18989
19037
  const normalized = normalizeHarnessReport(report2);
@@ -19156,7 +19204,7 @@ async function runHarnessCommand(context) {
19156
19204
  }
19157
19205
  case "extract": {
19158
19206
  writeHumanProgress(context, "Harness extract: tracing model call sites (no LLM, no network)...");
19159
- const { extractHarness: extractHarness2, serializeExtractResult } = await import("./index-8pzrw7v9.js");
19207
+ const { extractHarness: extractHarness2, serializeExtractResult } = await import("./index-tpwztst3.js");
19160
19208
  const result = extractHarness2(rootDir, { fresh: true });
19161
19209
  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).`);
19162
19210
  context.output.writeData(serializeExtractResult(result), {
@@ -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-29rxrwfg.js");
5771
+ const { analyzeHarnessPrompts } = await import("./harness-qvszhbrt.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-80nzjmz0.js");
5799
+ const { checkPromptAttribution } = await import("./prompt-attribution-t62yzfxb.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-29rxrwfg.js");
6105
+ const { analyzeHarnessPrompts } = await import("./harness-qvszhbrt.js");
6106
6106
  const result = await analyzeHarnessPrompts({
6107
6107
  rootDir: root,
6108
6108
  existing: manifest.sources,
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-r1hp4gry.js")).runPromptsCommand(...args);
2978
+ return (await import("./prompts-x74bqatj.js")).runPromptsCommand(...args);
2979
2979
  }
2980
2980
  async function runSkillsCommand(...args) {
2981
2981
  return (await import("./skills-pqhvfc1r.js")).runSkillsCommand(...args);
2982
2982
  }
2983
2983
  async function runHarnessCommand(...args) {
2984
- return (await import("./harness-29rxrwfg.js")).runHarnessCommand(...args);
2984
+ return (await import("./harness-qvszhbrt.js")).runHarnessCommand(...args);
2985
2985
  }
2986
2986
  async function runSyncCommand(...args) {
2987
- return (await import("./sync-fz5tfk4n.js")).runSyncCommand(...args);
2987
+ return (await import("./sync-kbhbrksr.js")).runSyncCommand(...args);
2988
2988
  }
2989
2989
  async function runRegistryCommand(...args) {
2990
2990
  return (await import("./registry-c64qr7ta.js")).runRegistryCommand(...args);
2991
2991
  }
2992
2992
  async function runDoctorCommand(...args) {
2993
- return (await import("./doctor-0afher5t.js")).runDoctorCommand(...args);
2993
+ return (await import("./doctor-z29f8x00.js")).runDoctorCommand(...args);
2994
2994
  }
2995
2995
  async function runStatusCommand(...args) {
2996
- return (await import("./doctor-0afher5t.js")).runStatusCommand(...args);
2996
+ return (await import("./doctor-z29f8x00.js")).runStatusCommand(...args);
2997
2997
  }
2998
2998
  async function runAuthCommand(...args) {
2999
2999
  return (await import("./profile-commands-1fdvrs5y.js")).runAuthCommand(...args);
@@ -3005,7 +3005,7 @@ async function runProfilesCommand(...args) {
3005
3005
  return (await import("./profile-commands-1fdvrs5y.js")).runProfilesCommand(...args);
3006
3006
  }
3007
3007
  async function runAgentCommand(...args) {
3008
- return (await import("./agent-6a97sf18.js")).runAgentCommand(...args);
3008
+ return (await import("./agent-xesfknb0.js")).runAgentCommand(...args);
3009
3009
  }
3010
3010
  async function runProductionCommand(...args) {
3011
3011
  return (await import("./production-intelligence-vsjhv4n2.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-vj7cr35e.js");
6772
+ const { runInit } = await import("./index-badpwfw2.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-1ykm231r.js";
6
+ } from "./cli-9dwq3vyj.js";
7
7
  import"./cli-rrggdmf8.js";
8
- import"./cli-0qnmrybh.js";
8
+ import"./cli-gqkvypxh.js";
9
9
  import"./cli-mm48br00.js";
10
10
  import"./cli-k0vxtzxb.js";
11
11
  import"./cli-5ms8rw8x.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  buildSourceSnapshot
3
- } from "./cli-tgjvf91h.js";
3
+ } from "./cli-ge6ty4hx.js";
4
4
  import"./cli-k0vxtzxb.js";
5
5
  import"./cli-97fnztpy.js";
6
6
  import"./cli-9ww72mrd.js";
@@ -46,7 +46,7 @@ import {
46
46
  writeHarnessAnalyzeResult,
47
47
  writeHarnessArtifacts,
48
48
  writeHumanProgress
49
- } from "./cli-tgjvf91h.js";
49
+ } from "./cli-ge6ty4hx.js";
50
50
  import"./cli-k0vxtzxb.js";
51
51
  import"./cli-97fnztpy.js";
52
52
  import {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  buildDoctorReport
3
- } from "./cli-1ykm231r.js";
3
+ } from "./cli-9dwq3vyj.js";
4
4
  import {
5
5
  selectTenantAndCreateKey
6
6
  } from "./cli-n1406hqg.js";
@@ -20,7 +20,7 @@ import {
20
20
  import {
21
21
  initPrompts,
22
22
  runPromptSync
23
- } from "./cli-0qnmrybh.js";
23
+ } from "./cli-gqkvypxh.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-tgjvf91h.js";
49
+ } from "./cli-ge6ty4hx.js";
50
50
  import {
51
51
  canonicalText,
52
52
  renderInitBanner,
@@ -20,7 +20,7 @@ import {
20
20
  serializeExtractResult,
21
21
  toolNamesOf,
22
22
  valueChildren
23
- } from "./cli-tgjvf91h.js";
23
+ } from "./cli-ge6ty4hx.js";
24
24
  import"./cli-k0vxtzxb.js";
25
25
  import"./cli-97fnztpy.js";
26
26
  import"./cli-9ww72mrd.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  inventoryFiles,
3
3
  safePromptEvidencePath
4
- } from "./cli-tgjvf91h.js";
4
+ } from "./cli-ge6ty4hx.js";
5
5
  import"./cli-k0vxtzxb.js";
6
6
  import"./cli-97fnztpy.js";
7
7
  import"./cli-9ww72mrd.js";
@@ -3,7 +3,7 @@ import {
3
3
  checkPromptMapping,
4
4
  discoverHarnessPromptSources,
5
5
  safePromptEvidencePath
6
- } from "./cli-tgjvf91h.js";
6
+ } from "./cli-ge6ty4hx.js";
7
7
  import"./cli-k0vxtzxb.js";
8
8
  import"./cli-97fnztpy.js";
9
9
  import"./cli-9ww72mrd.js";
@@ -9,7 +9,7 @@ import {
9
9
  runPromptSync,
10
10
  runPromptsCommand,
11
11
  writePromptSyncProgress
12
- } from "./cli-0qnmrybh.js";
12
+ } from "./cli-gqkvypxh.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-0qnmrybh.js";
3
+ } from "./cli-gqkvypxh.js";
4
4
  import {
5
5
  runSkillsCommand
6
6
  } from "./cli-k8hzbxtn.js";
@@ -10,7 +10,7 @@ import"./cli-hcwdz9sd.js";
10
10
  import"./cli-mm48br00.js";
11
11
  import {
12
12
  runHarnessCommand
13
- } from "./cli-tgjvf91h.js";
13
+ } from "./cli-ge6ty4hx.js";
14
14
  import"./cli-k0vxtzxb.js";
15
15
  import"./cli-97fnztpy.js";
16
16
  import"./cli-9ww72mrd.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moda-ai/cli",
3
- "version": "1.55.71",
3
+ "version": "1.55.72",
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-21T07:05:04.818Z",
4
- "cli_version": "1.55.71",
3
+ "bundled_at": "2026-10-21T07:26:27.452Z",
4
+ "cli_version": "1.55.72",
5
5
  "skills": [
6
6
  {
7
7
  "id": "integration-cloudflare-think",