@moda-ai/cli 1.55.62 → 1.55.64
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.
- package/dist/{agent-rc62qxke.js → agent-hn9z5mtw.js} +4 -4
- package/dist/{cli-kmq9pgef.js → cli-1fcx3eyn.js} +14 -0
- package/dist/{cli-thy08dak.js → cli-7mdzvenp.js} +4 -4
- package/dist/{cli-3t4ft30h.js → cli-7rq27nht.js} +2 -2
- package/dist/{cli-tn9dg758.js → cli-rec661n7.js} +1127 -24
- package/dist/{index-gtqxj0fp.js → cli-vqhaj5tv.js} +2 -18
- package/dist/cli.js +7 -7
- package/dist/{doctor-ehqrzq5e.js → doctor-6bccjmx8.js} +2 -2
- package/dist/{harness-e1yawk87.js → harness-462pdr5e.js} +3 -2
- package/dist/{harness-github-actions-bgfnh4tw.js → harness-github-actions-vt8tt6n9.js} +3 -2
- package/dist/{harness-report-dc6yf2qv.js → harness-report-wbrrfzny.js} +1 -1
- package/dist/{index-ma1gt133.js → index-1cjavfpa.js} +5 -4
- package/dist/index-xkgawks9.js +39 -0
- package/dist/{prompt-attribution-htyrwdjj.js → prompt-attribution-nha0sccy.js} +3 -2
- package/dist/prompt-source-mcp.js +3 -2
- package/dist/{prompts-s5q70jge.js → prompts-nhsbq9me.js} +1 -1
- package/dist/{sync-t1d50rpv.js → sync-tvf4cggm.js} +4 -3
- package/package.json +1 -1
- package/skills/integration/index.json +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildDoctorReport
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-7rq27nht.js";
|
|
4
4
|
import"./cli-27kkk5z4.js";
|
|
5
|
-
import"./cli-
|
|
5
|
+
import"./cli-7mdzvenp.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-
|
|
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-
|
|
99
|
+
const harness = graph ? await import("./harness-462pdr5e.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
|
}
|
|
@@ -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-
|
|
5771
|
+
const { analyzeHarnessPrompts } = await import("./harness-462pdr5e.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-
|
|
5799
|
+
const { checkPromptAttribution } = await import("./prompt-attribution-nha0sccy.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-
|
|
6105
|
+
const { analyzeHarnessPrompts } = await import("./harness-462pdr5e.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-
|
|
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");
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./cli-27kkk5z4.js";
|
|
5
5
|
import {
|
|
6
6
|
inspectPromptManifest
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-7mdzvenp.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-
|
|
398
|
+
const { scanHarness } = await import("./harness-462pdr5e.js");
|
|
399
399
|
const current = scanHarness({
|
|
400
400
|
rootDir: cwd,
|
|
401
401
|
scannerVersion: "doctor",
|