@moda-ai/cli 1.55.155 → 1.55.157

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,13 +1,13 @@
1
1
  import {
2
2
  buildDoctorReport
3
- } from "./cli-fwscar49.js";
3
+ } from "./cli-p5zs3yrw.js";
4
4
  import"./cli-331t1p3c.js";
5
- import"./cli-a66x9ze6.js";
5
+ import"./cli-zjn1z0ez.js";
6
6
  import"./cli-mm48br00.js";
7
7
  import"./cli-764m5azg.js";
8
8
  import {
9
9
  readHarnessSyncState
10
- } from "./cli-jkv3y2bj.js";
10
+ } from "./cli-f3cpwhc9.js";
11
11
  import {
12
12
  HARNESS_REPORT_APPROVAL_PATH,
13
13
  HARNESS_REPORT_PATH,
@@ -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-5d3fnewd.js") : undefined;
99
+ const harness = graph ? await import("./harness-sgh1xte4.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),
@@ -11,8 +11,8 @@ import {
11
11
  resolvedSymbol,
12
12
  returnExpressions,
13
13
  valueDeclaration
14
- } from "./cli-4bcvdkwz.js";
15
- import"./cli-jkv3y2bj.js";
14
+ } from "./cli-y21hydw2.js";
15
+ import"./cli-f3cpwhc9.js";
16
16
  import"./cli-97fnztpy.js";
17
17
  import {
18
18
  detectBoundRuntimeClasses
@@ -21,7 +21,7 @@ import {
21
21
  valueDeclaration,
22
22
  visit,
23
23
  workspacePackages
24
- } from "./cli-4bcvdkwz.js";
24
+ } from "./cli-y21hydw2.js";
25
25
  import {
26
26
  require_typescript
27
27
  } from "./cli-r0pkdy83.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  enumerateToolCatalog,
3
3
  enumerateWorkflows
4
- } from "./cli-erpwkg87.js";
4
+ } from "./cli-5dsw6vnj.js";
5
5
  import {
6
6
  require_out
7
7
  } from "./cli-764m5azg.js";
@@ -34,8 +34,8 @@ import {
34
34
  unwrap,
35
35
  valueDeclaration,
36
36
  visit
37
- } from "./cli-4bcvdkwz.js";
38
- import"./cli-jkv3y2bj.js";
37
+ } from "./cli-y21hydw2.js";
38
+ import"./cli-f3cpwhc9.js";
39
39
  import"./cli-97fnztpy.js";
40
40
  import {
41
41
  detectBoundRuntimeClasses,
@@ -0,0 +1,324 @@
1
+ // src/tui.ts
2
+ var STATUS_LABELS = {
3
+ pass: "ok",
4
+ warning: "warn",
5
+ fail: "fail",
6
+ skipped: "skip",
7
+ info: "info",
8
+ run: "run"
9
+ };
10
+ var STATUS_COLORS = {
11
+ pass: 32,
12
+ warning: 33,
13
+ fail: 31,
14
+ skipped: 90,
15
+ info: 36,
16
+ run: 35
17
+ };
18
+ function renderDoctorHuman(report, options = {}) {
19
+ const ui = createTerminalUi(options);
20
+ const lines = [];
21
+ lines.push(ui.title("Moda doctor"));
22
+ lines.push(ui.dim(`Profile ${report.profile.active}${report.profile.requested ? ` (requested ${report.profile.requested})` : ""}`));
23
+ lines.push("");
24
+ lines.push(renderSummary(ui, report));
25
+ for (const [group, checks] of groupChecks(report.checks)) {
26
+ lines.push("");
27
+ lines.push(ui.section(titleCase(group)));
28
+ for (const check of checks) {
29
+ lines.push(renderCheck(ui, check));
30
+ }
31
+ }
32
+ if (report.nextCommands.length > 0) {
33
+ lines.push("");
34
+ lines.push(ui.section("Next commands"));
35
+ for (const command of report.nextCommands.slice(0, 8)) {
36
+ lines.push(` ${ui.command(command)}`);
37
+ }
38
+ }
39
+ if (report.fixPlan.length > 0) {
40
+ lines.push("");
41
+ lines.push(ui.section("Repair plan"));
42
+ for (const item of report.fixPlan.slice(0, 8)) {
43
+ const command = item.command ? ` ${ui.command(item.command)}` : "";
44
+ lines.push(ui.wrap(` - ${item.action}${command}`, 4));
45
+ }
46
+ }
47
+ return lines.join(`
48
+ `);
49
+ }
50
+ function renderStatusHuman(status, options = {}) {
51
+ const ui = createTerminalUi(options);
52
+ const lines = [];
53
+ lines.push(ui.title("Moda status"));
54
+ lines.push(`${ui.status(status.status)} ${ui.dim(`profile ${status.activeProfile}`)}`);
55
+ lines.push("");
56
+ lines.push(`Auth ${status.auth.apiKey}`);
57
+ lines.push(`Tenant ${status.workspace.tenantId ?? "missing"}`);
58
+ lines.push(`Base URL ${status.workspace.baseUrl}`);
59
+ lines.push(`Ingest URL ${status.workspace.ingestUrl}`);
60
+ lines.push("");
61
+ lines.push(ui.section("Readiness"));
62
+ lines.push(` Data flow ${ui.status(status.dataFlow)}`);
63
+ lines.push(` Harness ${ui.status(status.harness)}`);
64
+ lines.push(` Harness sync ${ui.status(status.harnessSync)}`);
65
+ lines.push(` Prompts ${ui.status(status.prompts)}`);
66
+ lines.push(` Skills ${ui.status(status.skills)}`);
67
+ if (status.topBrokenCheck) {
68
+ lines.push("");
69
+ lines.push(ui.section("Attention"));
70
+ lines.push(` ${ui.status(status.topBrokenCheck.status)} ${status.topBrokenCheck.id}`);
71
+ if (status.topBrokenCheck.nextCommand) {
72
+ lines.push(` Next: ${ui.command(status.topBrokenCheck.nextCommand)}`);
73
+ }
74
+ }
75
+ if (status.nextCommands.length > 0) {
76
+ lines.push("");
77
+ lines.push(ui.section("Next commands"));
78
+ for (const command of status.nextCommands) {
79
+ lines.push(` ${ui.command(command)}`);
80
+ }
81
+ }
82
+ return lines.join(`
83
+ `);
84
+ }
85
+ function renderInitBanner() {
86
+ const ui = createTerminalUi();
87
+ return [
88
+ ui.title("Moda init"),
89
+ ui.dim("CLI for Moda: production monitoring and evals for AI agents."),
90
+ "",
91
+ ` ${ui.status("info")} Human-in-the-loop setup. Secrets stay untouched and file changes are shown before completion.`
92
+ ].join(`
93
+ `);
94
+ }
95
+ function renderInitStep(index, total, title, detail) {
96
+ const ui = createTerminalUi();
97
+ return [
98
+ "",
99
+ ui.section(`Step ${index}/${total}: ${title}`),
100
+ ...detail ? [ui.wrap(` ${detail}`, 2)] : []
101
+ ].join(`
102
+ `);
103
+ }
104
+ function renderInitNote(message, status = "pass") {
105
+ const ui = createTerminalUi();
106
+ return ` ${ui.status(status)} ${message}`;
107
+ }
108
+ function renderInitSetupPlan(actions, options = {}) {
109
+ const ui = createTerminalUi();
110
+ const lines = actions.map((action) => {
111
+ const status = action.approved ? "pass" : action.status === "manual" ? "skipped" : "warning";
112
+ const suffix = action.reason ? ` - ${action.reason}` : "";
113
+ return ui.wrap(` ${ui.status(status)} ${action.title}${suffix}`, 4);
114
+ });
115
+ if (options.notes?.length) {
116
+ lines.push("");
117
+ for (const note of options.notes)
118
+ lines.push(ui.wrap(` ${ui.status("info")} ${note}`, 4));
119
+ }
120
+ return lines.join(`
121
+ `);
122
+ }
123
+ function renderInitComplete(options) {
124
+ const ui = createTerminalUi();
125
+ const dashboardUrl = options.dashboardUrl ?? "https://moda.dev";
126
+ const lines = [];
127
+ lines.push("");
128
+ lines.push(ui.title(`Workspace ready: ${options.tenantName}`));
129
+ lines.push(`Dashboard: ${ui.command(dashboardUrl)}`);
130
+ lines.push("");
131
+ lines.push(ui.section("Files changed"));
132
+ if (options.filesChanged.length === 0) {
133
+ lines.push(` ${ui.dim("none")}`);
134
+ } else {
135
+ for (const file of options.filesChanged)
136
+ lines.push(` ${file}`);
137
+ }
138
+ if (options.skipped.length > 0) {
139
+ lines.push("");
140
+ lines.push(ui.section("Skipped or manual"));
141
+ for (const action of options.skipped) {
142
+ lines.push(ui.wrap(` - ${action.title}: ${action.reason ?? action.status}`, 4));
143
+ }
144
+ }
145
+ lines.push("");
146
+ lines.push(ui.section("Next steps"));
147
+ if (options.telemetrySeen === true) {
148
+ lines.push(` Telemetry is flowing. Explore it: ${ui.command("moda overview")}`);
149
+ } else {
150
+ lines.push(` Run your app to send telemetry, then: ${ui.command("moda doctor --online")}`);
151
+ }
152
+ lines.push(` Ask about your agents: ${ui.command('moda ask "what did my agents do today?"')}`);
153
+ return lines.join(`
154
+ `);
155
+ }
156
+ function renderHarnessProgress(message, status = "run") {
157
+ const ui = createTerminalUi();
158
+ return `${ui.status(status)} ${message}`;
159
+ }
160
+ function renderHarnessAnalystPreflight(options) {
161
+ const ui = createTerminalUi();
162
+ const lines = [];
163
+ lines.push(ui.section("Analyst read plan"));
164
+ lines.push(` ${ui.status("info")} Moda Analyst will inspect this project before any sync.`);
165
+ lines.push(` Root ${options.root}`);
166
+ lines.push(ui.wrap(` Reads ${options.willRead.join(", ")}`, 12));
167
+ lines.push(ui.wrap(` Skips ${options.willSkip.join(", ")}`, 12));
168
+ lines.push(` Writes ${ui.dim("none during investigation; Moda writes .moda artifacts after validation")}`);
169
+ return lines.join(`
170
+ `);
171
+ }
172
+ function renderHarnessAnalystLaunch(options) {
173
+ const ui = createTerminalUi();
174
+ const lines = [];
175
+ lines.push(ui.section("Moda Analyst"));
176
+ lines.push(` ${ui.status("run")} Launching ${options.adapterName}`);
177
+ lines.push(` Command ${options.command}`);
178
+ lines.push(` Mode read-only repository access`);
179
+ lines.push(` Root ${options.root}`);
180
+ lines.push(` Output ${options.reportPath}`);
181
+ lines.push(` Boundary Agent can inspect files and print a cited report. Moda validates it, then writes .moda artifacts.`);
182
+ return lines.join(`
183
+ `);
184
+ }
185
+ function renderHarnessAnalystChoice(options) {
186
+ const ui = createTerminalUi();
187
+ return [
188
+ ui.section("Detected coding agents"),
189
+ ` ${ui.status("info")} ${options.detected.join(", ")}`,
190
+ " Pick the agent that should investigate this repo in read-only mode."
191
+ ].join(`
192
+ `);
193
+ }
194
+ function renderHarnessAnalyzeHumanResult(data) {
195
+ const ui = createTerminalUi();
196
+ const value = asRecord(data);
197
+ const summary = asRecord(value?.summary);
198
+ const validation = asRecord(value?.validation);
199
+ const written = Array.isArray(value?.written) ? value.written.map(String) : [];
200
+ const lines = [];
201
+ lines.push(ui.title("Moda Analyst report"));
202
+ lines.push(`${ui.status(validation?.status === "fail" ? "fail" : "pass")} validation ${String(validation?.status ?? "unknown")}`);
203
+ if (summary) {
204
+ lines.push("");
205
+ lines.push(ui.section("Harness summary"));
206
+ lines.push(` Runtime agents ${numberOrZero(summary.runtimeAgentCount)}`);
207
+ lines.push(` Agent families ${numberOrZero(summary.agentFamilyCount)}`);
208
+ lines.push(` Artifacts ${numberOrZero(summary.artifactCount ?? summary.sharedArtifactCount)}`);
209
+ lines.push(` Providers ${numberOrZero(summary.modelProviderCount)}`);
210
+ lines.push(` Unknowns ${numberOrZero(summary.unknownCount)}`);
211
+ }
212
+ if (written.length > 0) {
213
+ lines.push("");
214
+ lines.push(ui.section("Artifacts"));
215
+ for (const file of written.slice(0, 12))
216
+ lines.push(` ${file}`);
217
+ }
218
+ lines.push("");
219
+ lines.push(ui.section("Next commands"));
220
+ lines.push(` ${ui.command("moda harness approve --yes")}`);
221
+ lines.push(` ${ui.command("moda harness sync --from-report .moda/harness-report.json --dry-run")}`);
222
+ return lines.join(`
223
+ `);
224
+ }
225
+ function renderSummary(ui, report) {
226
+ return [
227
+ ui.status(report.summary.status),
228
+ `pass ${report.summary.pass}`,
229
+ `warn ${report.summary.warning}`,
230
+ `fail ${report.summary.fail}`,
231
+ `skip ${report.summary.skipped}`
232
+ ].join(" ");
233
+ }
234
+ function renderCheck(ui, check) {
235
+ const lines = [];
236
+ lines.push(` ${ui.status(check.status)} ${check.title}`);
237
+ for (const evidence of check.evidence.slice(0, 4)) {
238
+ lines.push(ui.wrap(` ${evidence.label}: ${evidence.value}`, 6));
239
+ }
240
+ if (check.remediation) {
241
+ lines.push(ui.wrap(` fix: ${check.remediation}`, 6));
242
+ }
243
+ if (check.nextCommand) {
244
+ lines.push(` next: ${ui.command(check.nextCommand)}`);
245
+ }
246
+ return lines.join(`
247
+ `);
248
+ }
249
+ function groupChecks(checks) {
250
+ const groups = new Map;
251
+ for (const check of checks) {
252
+ const existing = groups.get(check.group) ?? [];
253
+ existing.push(check);
254
+ groups.set(check.group, existing);
255
+ }
256
+ return [...groups.entries()];
257
+ }
258
+ function titleCase(value) {
259
+ return value.split(/[-_\s]+/).filter(Boolean).map((part) => `${part.slice(0, 1).toUpperCase()}${part.slice(1)}`).join(" ");
260
+ }
261
+ function numberOrZero(value) {
262
+ return typeof value === "number" && Number.isFinite(value) ? String(value) : "0";
263
+ }
264
+ function asRecord(value) {
265
+ return isRecord(value) ? value : undefined;
266
+ }
267
+ function isRecord(value) {
268
+ return typeof value === "object" && value !== null && !Array.isArray(value);
269
+ }
270
+ function createTerminalUi(options = {}) {
271
+ const width = Math.max(48, Math.min(options.width ?? process.stdout.columns ?? 96, 140));
272
+ const color = options.color ?? Boolean(process.stdout.isTTY && process.env.NO_COLOR !== "1");
273
+ const paint = (code, text) => color ? `\x1B[${code}m${text}\x1B[0m` : text;
274
+ return {
275
+ title: (text) => paint(1, text),
276
+ section: (text) => paint(36, text),
277
+ status: (status) => paint(STATUS_COLORS[status], `[${STATUS_LABELS[status]}]`),
278
+ command: (text) => paint(36, text),
279
+ dim: (text) => paint(90, text),
280
+ wrap: (text, indent) => wrapLine(text, width, indent)
281
+ };
282
+ }
283
+ function wrapLine(text, width, indent) {
284
+ if (text.length <= width)
285
+ return text;
286
+ const lead = text.match(/^\s*/)?.[0] ?? "";
287
+ const words = text.trimStart().split(/\s+/);
288
+ const lines = [];
289
+ let current = "";
290
+ for (const word of words) {
291
+ const next = current ? `${current} ${word}` : `${lead}${word}`;
292
+ if (next.length > width && current) {
293
+ lines.push(current);
294
+ current = `${" ".repeat(indent)}${word}`;
295
+ } else {
296
+ current = next;
297
+ }
298
+ }
299
+ if (current)
300
+ lines.push(current);
301
+ return lines.join(`
302
+ `);
303
+ }
304
+
305
+ // src/harness-sync-state.ts
306
+ import { existsSync, readFileSync } from "node:fs";
307
+ import { join } from "node:path";
308
+ var SYNC_STATE_PATH = join(".moda", "sync-state.json");
309
+ function readHarnessSyncState(rootDir) {
310
+ const path = join(rootDir, SYNC_STATE_PATH);
311
+ if (!existsSync(path))
312
+ return;
313
+ try {
314
+ const parsed = JSON.parse(readFileSync(path, "utf8"));
315
+ if (!parsed || typeof parsed !== "object" || Array.isArray(parsed) || parsed.schemaVersion !== "sync_state.v0.1") {
316
+ return;
317
+ }
318
+ return parsed;
319
+ } catch {
320
+ return;
321
+ }
322
+ }
323
+
324
+ export { renderDoctorHuman, renderStatusHuman, renderInitBanner, renderInitStep, renderInitNote, renderInitSetupPlan, renderInitComplete, renderHarnessProgress, renderHarnessAnalystPreflight, renderHarnessAnalystLaunch, renderHarnessAnalystChoice, renderHarnessAnalyzeHumanResult, SYNC_STATE_PATH, readHarnessSyncState };
@@ -4,12 +4,12 @@ import {
4
4
  } from "./cli-331t1p3c.js";
5
5
  import {
6
6
  inspectPromptManifest
7
- } from "./cli-a66x9ze6.js";
7
+ } from "./cli-zjn1z0ez.js";
8
8
  import {
9
9
  readHarnessSyncState,
10
10
  renderDoctorHuman,
11
11
  renderStatusHuman
12
- } from "./cli-jkv3y2bj.js";
12
+ } from "./cli-f3cpwhc9.js";
13
13
  import {
14
14
  callDataAPI
15
15
  } from "./cli-jc9gdwgp.js";
@@ -393,7 +393,7 @@ async function harnessCurrentCheck(cwd, manifestPath, manifestExists, tenantId)
393
393
  };
394
394
  }
395
395
  try {
396
- const { scanHarness } = await import("./harness-5d3fnewd.js");
396
+ const { scanHarness } = await import("./harness-sgh1xte4.js");
397
397
  const current = scanHarness({
398
398
  rootDir: cwd,
399
399
  scannerVersion: "doctor",
@@ -6,7 +6,7 @@ import {
6
6
  renderHarnessAnalystPreflight,
7
7
  renderHarnessAnalyzeHumanResult,
8
8
  renderHarnessProgress
9
- } from "./cli-jkv3y2bj.js";
9
+ } from "./cli-f3cpwhc9.js";
10
10
  import {
11
11
  stripAnsi
12
12
  } from "./cli-97fnztpy.js";
@@ -21018,7 +21018,7 @@ async function runHarnessCommand(context) {
21018
21018
  throw new CliInputError(`'moda harness ${subcommand}' has no dry-run mode, so nothing was sent.`, `Remove --dry-run to run it for real. Harness commands with a real dry-run: ${[...HARNESS_DRY_RUN_SUBCOMMANDS].join(", ")}.`);
21019
21019
  }
21020
21020
  if (subcommand === "skeleton" || subcommand === "skeleton-diff") {
21021
- const { runSkeletonCommand } = await import("./cli-574b6cbr.js");
21021
+ const { runSkeletonCommand } = await import("./cli-dw05n6ds.js");
21022
21022
  return runSkeletonCommand(context);
21023
21023
  }
21024
21024
  if (subcommand === "register")
@@ -21030,7 +21030,7 @@ async function runHarnessCommand(context) {
21030
21030
  assertPositionals("harness impact", context.positionals, 1, "moda harness impact --from=<commit> --to=<commit>");
21031
21031
  if (!context.flags.from)
21032
21032
  throw new CliInputError("harness impact requires --from=<old-commit>.");
21033
- const { localChangeImpact, readRecordedImpactCalls } = await import("./change-impact-6x1z046p.js");
21033
+ const { localChangeImpact, readRecordedImpactCalls } = await import("./change-impact-dcyb4k9g.js");
21034
21034
  const result = localChangeImpact({
21035
21035
  checkout: resolve10(context.cwd, context.flags.path ?? "."),
21036
21036
  from: context.flags.from,
@@ -21302,7 +21302,7 @@ async function runHarnessCommand(context) {
21302
21302
  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.");
21303
21303
  }
21304
21304
  if (context.flags["github-actions"] === "true") {
21305
- const { runGithubActionsAnalyze } = await import("./harness-github-actions-pmsw1dcg.js");
21305
+ const { runGithubActionsAnalyze } = await import("./harness-github-actions-ay8n261f.js");
21306
21306
  const result = await runGithubActionsAnalyze(rootDir, {
21307
21307
  writeReport: (report2) => {
21308
21308
  const normalized = normalizeHarnessReport(report2);
@@ -21453,8 +21453,8 @@ async function runHarnessCommand(context) {
21453
21453
  }
21454
21454
  const { artifacts, unknowns, canonicalAgentIdentities } = deterministicGraphItems(rootDir, promote === "all" ? undefined : promote);
21455
21455
  tagComponentStatus({ runtimeAgents: [], artifacts }, rootDir);
21456
- const { extractHarnessWithContext: extractHarnessWithContext2 } = await import("./index-q8gp0gz8.js");
21457
- const { enumerateHarnessComponents, mergeEnumeratedComponents } = await import("./index-74tbed31.js");
21456
+ const { extractHarnessWithContext: extractHarnessWithContext2 } = await import("./index-6wn89bpb.js");
21457
+ const { enumerateHarnessComponents, mergeEnumeratedComponents } = await import("./index-wmq64x94.js");
21458
21458
  let components = { runtimeAgents: [], artifacts: [], warnings: [] };
21459
21459
  if (promote === "all" || promote === "topology" || promote === "tools") {
21460
21460
  const { result, ctx } = extractHarnessWithContext2(rootDir);
@@ -21526,8 +21526,8 @@ async function runHarnessCommand(context) {
21526
21526
  }
21527
21527
  case "extract": {
21528
21528
  writeHumanProgress(context, "Harness extract: tracing model call sites (no LLM, no network)...");
21529
- const { extractHarnessWithContext: extractHarnessWithContext2, serializeExtractResult } = await import("./index-q8gp0gz8.js");
21530
- const { enumerateHarnessComponents, mergeEnumeratedComponents } = await import("./index-74tbed31.js");
21529
+ const { extractHarnessWithContext: extractHarnessWithContext2, serializeExtractResult } = await import("./index-6wn89bpb.js");
21530
+ const { enumerateHarnessComponents, mergeEnumeratedComponents } = await import("./index-wmq64x94.js");
21531
21531
  const { result, ctx } = extractHarnessWithContext2(rootDir, { fresh: true });
21532
21532
  const items = deterministicGraphItems(rootDir);
21533
21533
  const artifacts = items.artifacts;
@@ -22434,8 +22434,8 @@ var CONCERN_PROMOTED_ARTIFACT_TYPES = {
22434
22434
  evals: new Set(["model_config", "eval"])
22435
22435
  };
22436
22436
  async function deterministicFloorGraph(rootDir, options = {}) {
22437
- const { extractHarnessWithContext: extractHarnessWithContext2 } = await import("./index-q8gp0gz8.js");
22438
- const { enumerateHarnessComponents, mergeEnumeratedComponents } = await import("./index-74tbed31.js");
22437
+ const { extractHarnessWithContext: extractHarnessWithContext2 } = await import("./index-6wn89bpb.js");
22438
+ const { enumerateHarnessComponents, mergeEnumeratedComponents } = await import("./index-wmq64x94.js");
22439
22439
  const { result, ctx } = extractHarnessWithContext2(rootDir);
22440
22440
  const items = deterministicGraphItems(rootDir);
22441
22441
  const components = mergeEnumeratedComponents(items.artifacts, enumerateHarnessComponents(result, ctx));
@@ -270,7 +270,7 @@ async function runPromptSyncExclusive(flags, profileOptions, options) {
270
270
  const analyzedDefinitions = new Map;
271
271
  if (flags["no-analyze"] !== "true") {
272
272
  options.onProgress?.("Analyzing prompt sources before sync.");
273
- const { analyzeHarnessPrompts } = await import("./harness-5d3fnewd.js");
273
+ const { analyzeHarnessPrompts } = await import("./harness-sgh1xte4.js");
274
274
  const result = await analyzeHarnessPrompts({
275
275
  rootDir: process.cwd(),
276
276
  existing: established.flatMap((prompt) => prompt.sourceDefinition ? [prompt.sourceDefinition.source] : []),
@@ -298,7 +298,7 @@ async function runPromptSyncExclusive(flags, profileOptions, options) {
298
298
  const mergedSources = mergePromptSources(manifest.sources, extraSources);
299
299
  const manifestUpdate = stableJson(mergedSources) === stableJson(mergePromptSources(manifest.sources, [])) ? undefined : $stringify({ version: 2, prompt_paths: manifest.promptPaths, sources: mergedSources });
300
300
  const prompts = await discoverPrompts(extraSources);
301
- const { checkPromptAttribution } = await import("./prompt-attribution-r2a07rjp.js");
301
+ const { checkPromptAttribution } = await import("./prompt-attribution-d7t4gwa6.js");
302
302
  const attribution = checkPromptAttribution(process.cwd(), prompts.map((prompt) => prompt.key));
303
303
  const brokenAttribution = attribution.references.filter((reference) => reference.status === "missing");
304
304
  if (brokenAttribution.length) {
@@ -604,7 +604,7 @@ async function migratePromptManifest(options = {}) {
604
604
  let addedSources = [];
605
605
  let pendingSources = [];
606
606
  if (options.discover) {
607
- const { analyzeHarnessPrompts } = await import("./harness-5d3fnewd.js");
607
+ const { analyzeHarnessPrompts } = await import("./harness-sgh1xte4.js");
608
608
  const result = await analyzeHarnessPrompts({
609
609
  rootDir: root,
610
610
  existing: manifest.sources,
package/dist/cli.js CHANGED
@@ -3025,25 +3025,25 @@ function leafManifestFields(leaf, commands) {
3025
3025
  import { fileURLToPath } from "url";
3026
3026
  import { realpathSync } from "fs";
3027
3027
  async function runPromptsCommand(...args) {
3028
- return (await import("./prompts-rd7fxz2r.js")).runPromptsCommand(...args);
3028
+ return (await import("./prompts-6wyk7asx.js")).runPromptsCommand(...args);
3029
3029
  }
3030
3030
  async function runSkillsCommand(...args) {
3031
3031
  return (await import("./skills-d2tb8e10.js")).runSkillsCommand(...args);
3032
3032
  }
3033
3033
  async function runHarnessCommand(...args) {
3034
- return (await import("./harness-5d3fnewd.js")).runHarnessCommand(...args);
3034
+ return (await import("./harness-sgh1xte4.js")).runHarnessCommand(...args);
3035
3035
  }
3036
3036
  async function runSyncCommand(...args) {
3037
- return (await import("./sync-g3twbgv8.js")).runSyncCommand(...args);
3037
+ return (await import("./sync-pcy3v107.js")).runSyncCommand(...args);
3038
3038
  }
3039
3039
  async function runRegistryCommand(...args) {
3040
3040
  return (await import("./registry-h9mbgs9e.js")).runRegistryCommand(...args);
3041
3041
  }
3042
3042
  async function runDoctorCommand(...args) {
3043
- return (await import("./doctor-za483wxn.js")).runDoctorCommand(...args);
3043
+ return (await import("./doctor-x33mzdts.js")).runDoctorCommand(...args);
3044
3044
  }
3045
3045
  async function runStatusCommand(...args) {
3046
- return (await import("./doctor-za483wxn.js")).runStatusCommand(...args);
3046
+ return (await import("./doctor-x33mzdts.js")).runStatusCommand(...args);
3047
3047
  }
3048
3048
  async function runAuthCommand(...args) {
3049
3049
  return (await import("./profile-commands-3bxbsgwn.js")).runAuthCommand(...args);
@@ -3055,7 +3055,7 @@ async function runProfilesCommand(...args) {
3055
3055
  return (await import("./profile-commands-3bxbsgwn.js")).runProfilesCommand(...args);
3056
3056
  }
3057
3057
  async function runAgentCommand(...args) {
3058
- return (await import("./agent-wwmwp9mt.js")).runAgentCommand(...args);
3058
+ return (await import("./agent-s1kmpeqj.js")).runAgentCommand(...args);
3059
3059
  }
3060
3060
  async function runProductionCommand(...args) {
3061
3061
  return (await import("./production-intelligence-2dd5cbs4.js")).runProductionCommand(...args);
@@ -6747,7 +6747,7 @@ var commandRegistry = createCommandRegistry([
6747
6747
  resetApiRequestCountBeforeRun: true,
6748
6748
  telemetry: "result-and-error",
6749
6749
  handler: async (context) => {
6750
- const { runInit } = await import("./index-rhescwf6.js");
6750
+ const { runInit } = await import("./index-g496yzsz.js");
6751
6751
  if (context.outputMode === "agent-stream") {
6752
6752
  context.output.writeEvent({
6753
6753
  event: "started",
@@ -3,12 +3,12 @@ import {
3
3
  promptsDiscoveredCheck,
4
4
  runDoctorCommand,
5
5
  runStatusCommand
6
- } from "./cli-fwscar49.js";
6
+ } from "./cli-p5zs3yrw.js";
7
7
  import"./cli-331t1p3c.js";
8
- import"./cli-a66x9ze6.js";
8
+ import"./cli-zjn1z0ez.js";
9
9
  import"./cli-mm48br00.js";
10
10
  import"./cli-764m5azg.js";
11
- import"./cli-jkv3y2bj.js";
11
+ import"./cli-f3cpwhc9.js";
12
12
  import"./cli-nwwfqgbj.js";
13
13
  import"./cli-1dcc684x.js";
14
14
  import"./cli-e0kbye4s.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  buildSourceSnapshot
3
- } from "./cli-4bcvdkwz.js";
4
- import"./cli-jkv3y2bj.js";
3
+ } from "./cli-y21hydw2.js";
4
+ import"./cli-f3cpwhc9.js";
5
5
  import"./cli-97fnztpy.js";
6
6
  import"./cli-krm4w2v9.js";
7
7
  import"./cli-nwwfqgbj.js";
@@ -47,8 +47,8 @@ import {
47
47
  writeHarnessAnalyzeResult,
48
48
  writeHarnessArtifacts,
49
49
  writeHumanProgress
50
- } from "./cli-4bcvdkwz.js";
51
- import"./cli-jkv3y2bj.js";
50
+ } from "./cli-y21hydw2.js";
51
+ import"./cli-f3cpwhc9.js";
52
52
  import"./cli-97fnztpy.js";
53
53
  import {
54
54
  HARNESS_ANALYZE_CONCERNS
@@ -20,8 +20,8 @@ import {
20
20
  serializeExtractResult,
21
21
  toolNamesOf,
22
22
  valueChildren
23
- } from "./cli-4bcvdkwz.js";
24
- import"./cli-jkv3y2bj.js";
23
+ } from "./cli-y21hydw2.js";
24
+ import"./cli-f3cpwhc9.js";
25
25
  import"./cli-97fnztpy.js";
26
26
  import"./cli-krm4w2v9.js";
27
27
  import"./cli-nwwfqgbj.js";
@@ -4,7 +4,7 @@ import {
4
4
  import"./cli-t48q3cx4.js";
5
5
  import {
6
6
  buildDoctorReport
7
- } from "./cli-fwscar49.js";
7
+ } from "./cli-p5zs3yrw.js";
8
8
  import {
9
9
  ConnectCodeError,
10
10
  connectWithCode,
@@ -12,7 +12,7 @@ import {
12
12
  loadToken,
13
13
  login
14
14
  } from "./cli-331t1p3c.js";
15
- import"./cli-a66x9ze6.js";
15
+ import"./cli-zjn1z0ez.js";
16
16
  import {
17
17
  bundledSkillsDir,
18
18
  installIntegrationSkill,
@@ -35,15 +35,14 @@ import {
35
35
  describeCodingAgentEvent,
36
36
  detectAvailableCodingAgents,
37
37
  runCodingAgent
38
- } from "./cli-4bcvdkwz.js";
38
+ } from "./cli-y21hydw2.js";
39
39
  import {
40
- canonicalText,
41
40
  renderInitBanner,
42
41
  renderInitComplete,
43
42
  renderInitNote,
44
43
  renderInitSetupPlan,
45
44
  renderInitStep
46
- } from "./cli-jkv3y2bj.js";
45
+ } from "./cli-f3cpwhc9.js";
47
46
  import {
48
47
  stripAnsi
49
48
  } from "./cli-97fnztpy.js";
@@ -794,7 +793,7 @@ async function runSdkIntegration(options = {}) {
794
793
  }
795
794
  function renderSdkIntegrationPrompt(opts) {
796
795
  return [
797
- canonicalText("init_prompt_line"),
796
+ "Add the Moda SDK to this project so its AI agents are monitored in production.",
798
797
  "",
799
798
  "You are running inside `moda init` as a one-shot SDK integration task. The user has",
800
799
  "approved letting you install packages and edit source files in THIS repository to add",