@moda-ai/cli 1.55.59 → 1.55.60
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-zxzp33vn.js → agent-ds0qdtxz.js} +3 -3
- package/dist/{cli-0zz7kg8d.js → cli-bt564t50.js} +2 -2
- package/dist/{cli-q89d6scp.js → cli-hxy54rx3.js} +3 -3
- package/dist/{cli-9hr66ft2.js → cli-wbd3hzqh.js} +39 -4
- package/dist/cli.js +7 -7
- package/dist/{doctor-p63wxy0s.js → doctor-s9t8e808.js} +2 -2
- package/dist/{harness-f8e1xhc9.js → harness-bxcetthw.js} +5 -1
- package/dist/{harness-github-actions-zczyrzra.js → harness-github-actions-acxh0dbf.js} +1 -1
- package/dist/{index-92eabh3j.js → index-d8hc0er0.js} +3 -3
- package/dist/{prompt-attribution-b0k1tcrb.js → prompt-attribution-6xc7h59r.js} +1 -1
- package/dist/prompt-source-mcp.js +1 -1
- package/dist/{prompts-33ywsv3x.js → prompts-e8rhawyc.js} +1 -1
- package/dist/{sync-e02rm8d9.js → sync-m9htrc8t.js} +2 -2
- 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-bt564t50.js";
|
|
4
4
|
import"./cli-94r5x9bg.js";
|
|
5
|
-
import"./cli-
|
|
5
|
+
import"./cli-hxy54rx3.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-
|
|
98
|
+
const harness = graph ? await import("./harness-bxcetthw.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-94r5x9bg.js";
|
|
5
5
|
import {
|
|
6
6
|
inspectPromptManifest
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-hxy54rx3.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-bxcetthw.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-
|
|
5771
|
+
const { analyzeHarnessPrompts } = await import("./harness-bxcetthw.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-6xc7h59r.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-bxcetthw.js");
|
|
6106
6106
|
const result = await analyzeHarnessPrompts({
|
|
6107
6107
|
rootDir: root,
|
|
6108
6108
|
existing: manifest.sources,
|
|
@@ -15325,7 +15325,7 @@ async function runHarnessCommand(context) {
|
|
|
15325
15325
|
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.");
|
|
15326
15326
|
}
|
|
15327
15327
|
if (context.flags["github-actions"] === "true") {
|
|
15328
|
-
const { runGithubActionsAnalyze } = await import("./harness-github-actions-
|
|
15328
|
+
const { runGithubActionsAnalyze } = await import("./harness-github-actions-acxh0dbf.js");
|
|
15329
15329
|
const result = await runGithubActionsAnalyze(rootDir, {
|
|
15330
15330
|
writeReport: (report2) => {
|
|
15331
15331
|
const normalized = normalizeHarnessReport(report2);
|
|
@@ -16965,13 +16965,17 @@ function resolveExternalHarnessAnalystInvocation(options) {
|
|
|
16965
16965
|
throw new CliInputError(`${titleFromId(options.adapter)} analyst CLI was not found.`, `Install/sign into ${titleFromId(options.adapter)}, set MODA_HARNESS_ANALYST_COMMAND, or choose another analyst with --analyst=claude|codex|cursor.`);
|
|
16966
16966
|
}
|
|
16967
16967
|
if (options.adapter === "claude") {
|
|
16968
|
-
const extraArgs = options.promptTools ? [] : externalAnalystExtraArgs(options.adapter);
|
|
16968
|
+
const extraArgs = options.promptTools ? [] : mode === "write" ? externalAnalystExtraArgs(options.adapter) : readOnlyClaudeExtraArgs(externalAnalystExtraArgs(options.adapter));
|
|
16969
16969
|
const model = resolveAnalystModel(options.adapter, options.flags);
|
|
16970
|
-
const permission = mode === "write" ? ["--permission-mode", "acceptEdits", "--allowedTools", "Read,Grep,Glob,Edit,Write,Bash"] : ["--allowedTools", `Read,Grep,Glob,Edit(${HARNESS_REPORT_PATH})
|
|
16970
|
+
const permission = mode === "write" ? ["--permission-mode", "acceptEdits", "--allowedTools", "Read,Grep,Glob,Edit,Write,Bash"] : ["--allowedTools", `Read,Grep,Glob,Edit(${HARNESS_REPORT_PATH})`, "--disallowedTools", "Bash"];
|
|
16971
16971
|
if (isolated) {
|
|
16972
16972
|
permission[1] = "Read,Grep,Glob,mcp__moda-prompt-source__inspect_sources,mcp__moda-prompt-source__check_mapping";
|
|
16973
16973
|
permission.push("--mcp-config", isolated.configPath, "--strict-mcp-config");
|
|
16974
|
+
} else if (mode !== "write") {
|
|
16975
|
+
permission.push("--mcp-config", '{"mcpServers":{}}', "--strict-mcp-config");
|
|
16974
16976
|
}
|
|
16977
|
+
if (mode !== "write")
|
|
16978
|
+
permission.push("--setting-sources", "user");
|
|
16975
16979
|
return {
|
|
16976
16980
|
adapter: options.adapter,
|
|
16977
16981
|
command,
|
|
@@ -17110,6 +17114,37 @@ async function runCodingAgent(options) {
|
|
|
17110
17114
|
function externalAnalystExtraArgs(adapter) {
|
|
17111
17115
|
return splitCommandLine(process.env[`MODA_HARNESS_ANALYST_${adapter.toUpperCase()}_ARGS`] ?? "");
|
|
17112
17116
|
}
|
|
17117
|
+
var READ_ONLY_CLAUDE_ARG_FLAGS = new Map([
|
|
17118
|
+
["--model", true],
|
|
17119
|
+
["--fallback-model", true],
|
|
17120
|
+
["--effort", true],
|
|
17121
|
+
["--max-turns", true],
|
|
17122
|
+
["--debug-file", true],
|
|
17123
|
+
["--debug", false],
|
|
17124
|
+
["--verbose", false],
|
|
17125
|
+
["--exclude-dynamic-system-prompt-sections", false]
|
|
17126
|
+
]);
|
|
17127
|
+
function readOnlyClaudeExtraArgs(args) {
|
|
17128
|
+
const kept = [];
|
|
17129
|
+
for (let i = 0;i < args.length; i += 1) {
|
|
17130
|
+
const [flag, inline] = args[i].split(/=(.*)/s, 2);
|
|
17131
|
+
const takesValue = READ_ONLY_CLAUDE_ARG_FLAGS.get(flag);
|
|
17132
|
+
if (takesValue === undefined) {
|
|
17133
|
+
if (inline === undefined && args[i + 1] !== undefined && !args[i + 1].startsWith("-"))
|
|
17134
|
+
i += 1;
|
|
17135
|
+
continue;
|
|
17136
|
+
}
|
|
17137
|
+
if (takesValue && inline === undefined) {
|
|
17138
|
+
if (args[i + 1] === undefined)
|
|
17139
|
+
continue;
|
|
17140
|
+
kept.push(flag, args[i + 1]);
|
|
17141
|
+
i += 1;
|
|
17142
|
+
} else {
|
|
17143
|
+
kept.push(args[i]);
|
|
17144
|
+
}
|
|
17145
|
+
}
|
|
17146
|
+
return kept;
|
|
17147
|
+
}
|
|
17113
17148
|
var DEFAULT_CLAUDE_ANALYST_MODEL = "sonnet";
|
|
17114
17149
|
function resolveAnalystModel(adapter, flags) {
|
|
17115
17150
|
const flagValue = flags["analyst-model"] && flags["analyst-model"] !== "true" ? flags["analyst-model"] : undefined;
|
|
@@ -19664,4 +19699,4 @@ function hashText(text) {
|
|
|
19664
19699
|
return createHash5("sha256").update(text).digest("hex");
|
|
19665
19700
|
}
|
|
19666
19701
|
|
|
19667
|
-
export { startRemoteAnalyze, pollRemoteAnalyzeUntilDone, isRecoverableRemoteRun, checkPromptMapping, safePromptEvidencePath, discoverHarnessPromptSources, runHarnessCommand, writeHarnessAnalyzeResult, emitWrittenArtifacts, analyzeHarnessPrompts, isToolGroupPlaceholder, repairExternalAnalystReport, deriveRelationshipsFromGraph, deterministicArtifacts, mergeDeterministicArtifacts, analystRefutations, describeCodingAgentEvent, analystEventProgress, isRetryableExternalAnalystFailure, sleep, summarizeInvalidAnalystReport, isDeterministicLocalAnalyst, resolveHarnessAnalyzeConcern, detectAvailableCodingAgents, codingAgentDisplayName, runCodingAgent, resolveAnalystModel, renderExternalHarnessAnalystPrompt, CONCERN_CANDIDATE_KINDS, SEED_CANDIDATE_KIND_LABELS, renderAnalystCandidateLines, renderAnalystSeedLines, truncateText, scanHarness, summarizeHarness, buildSourceSnapshot, writeHumanProgress, describeSyncIdentity, describeSyncTenantLabel, findFresherHarnessReports, writeHarnessArtifacts, assertHarnessGraphSyncQuality, graphForSync, inventoryFiles, numericEnv, numericEnvAllowZero, computeDeterministicFloor, stableId, titleFromId, promptNameFromPath };
|
|
19702
|
+
export { startRemoteAnalyze, pollRemoteAnalyzeUntilDone, isRecoverableRemoteRun, checkPromptMapping, safePromptEvidencePath, discoverHarnessPromptSources, runHarnessCommand, writeHarnessAnalyzeResult, emitWrittenArtifacts, analyzeHarnessPrompts, isToolGroupPlaceholder, repairExternalAnalystReport, deriveRelationshipsFromGraph, deterministicArtifacts, mergeDeterministicArtifacts, analystRefutations, describeCodingAgentEvent, analystEventProgress, isRetryableExternalAnalystFailure, sleep, summarizeInvalidAnalystReport, isDeterministicLocalAnalyst, resolveHarnessAnalyzeConcern, resolveExternalHarnessAnalystInvocation, detectAvailableCodingAgents, codingAgentDisplayName, runCodingAgent, readOnlyClaudeExtraArgs, resolveAnalystModel, renderExternalHarnessAnalystPrompt, CONCERN_CANDIDATE_KINDS, SEED_CANDIDATE_KIND_LABELS, renderAnalystCandidateLines, renderAnalystSeedLines, truncateText, scanHarness, summarizeHarness, buildSourceSnapshot, writeHumanProgress, describeSyncIdentity, describeSyncTenantLabel, findFresherHarnessReports, writeHarnessArtifacts, assertHarnessGraphSyncQuality, graphForSync, inventoryFiles, numericEnv, numericEnvAllowZero, computeDeterministicFloor, stableId, titleFromId, promptNameFromPath };
|
package/dist/cli.js
CHANGED
|
@@ -2968,25 +2968,25 @@ function leafManifestFields(leaf, commands) {
|
|
|
2968
2968
|
import { fileURLToPath } from "url";
|
|
2969
2969
|
import { realpathSync } from "fs";
|
|
2970
2970
|
async function runPromptsCommand(...args) {
|
|
2971
|
-
return (await import("./prompts-
|
|
2971
|
+
return (await import("./prompts-e8rhawyc.js")).runPromptsCommand(...args);
|
|
2972
2972
|
}
|
|
2973
2973
|
async function runSkillsCommand(...args) {
|
|
2974
2974
|
return (await import("./skills-etzcqhp8.js")).runSkillsCommand(...args);
|
|
2975
2975
|
}
|
|
2976
2976
|
async function runHarnessCommand(...args) {
|
|
2977
|
-
return (await import("./harness-
|
|
2977
|
+
return (await import("./harness-bxcetthw.js")).runHarnessCommand(...args);
|
|
2978
2978
|
}
|
|
2979
2979
|
async function runSyncCommand(...args) {
|
|
2980
|
-
return (await import("./sync-
|
|
2980
|
+
return (await import("./sync-m9htrc8t.js")).runSyncCommand(...args);
|
|
2981
2981
|
}
|
|
2982
2982
|
async function runRegistryCommand(...args) {
|
|
2983
2983
|
return (await import("./registry-wv1zzyce.js")).runRegistryCommand(...args);
|
|
2984
2984
|
}
|
|
2985
2985
|
async function runDoctorCommand(...args) {
|
|
2986
|
-
return (await import("./doctor-
|
|
2986
|
+
return (await import("./doctor-s9t8e808.js")).runDoctorCommand(...args);
|
|
2987
2987
|
}
|
|
2988
2988
|
async function runStatusCommand(...args) {
|
|
2989
|
-
return (await import("./doctor-
|
|
2989
|
+
return (await import("./doctor-s9t8e808.js")).runStatusCommand(...args);
|
|
2990
2990
|
}
|
|
2991
2991
|
async function runAuthCommand(...args) {
|
|
2992
2992
|
return (await import("./profile-commands-yvpe4d8y.js")).runAuthCommand(...args);
|
|
@@ -2998,7 +2998,7 @@ async function runProfilesCommand(...args) {
|
|
|
2998
2998
|
return (await import("./profile-commands-yvpe4d8y.js")).runProfilesCommand(...args);
|
|
2999
2999
|
}
|
|
3000
3000
|
async function runAgentCommand(...args) {
|
|
3001
|
-
return (await import("./agent-
|
|
3001
|
+
return (await import("./agent-ds0qdtxz.js")).runAgentCommand(...args);
|
|
3002
3002
|
}
|
|
3003
3003
|
async function runProductionCommand(...args) {
|
|
3004
3004
|
return (await import("./production-intelligence-fqvhzq6s.js")).runProductionCommand(...args);
|
|
@@ -6762,7 +6762,7 @@ var commandRegistry = createCommandRegistry([
|
|
|
6762
6762
|
resetApiRequestCountBeforeRun: true,
|
|
6763
6763
|
telemetry: "result-and-error",
|
|
6764
6764
|
handler: async (context) => {
|
|
6765
|
-
const { runInit } = await import("./index-
|
|
6765
|
+
const { runInit } = await import("./index-d8hc0er0.js");
|
|
6766
6766
|
if (context.outputMode === "agent-stream") {
|
|
6767
6767
|
context.output.writeEvent({
|
|
6768
6768
|
event: "started",
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
promptsDiscoveredCheck,
|
|
4
4
|
runDoctorCommand,
|
|
5
5
|
runStatusCommand
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-bt564t50.js";
|
|
7
7
|
import"./cli-94r5x9bg.js";
|
|
8
|
-
import"./cli-
|
|
8
|
+
import"./cli-hxy54rx3.js";
|
|
9
9
|
import"./cli-mm48br00.js";
|
|
10
10
|
import"./cli-k0vxtzxb.js";
|
|
11
11
|
import"./cli-v2h21cgf.js";
|
|
@@ -25,11 +25,13 @@ import {
|
|
|
25
25
|
numericEnv,
|
|
26
26
|
numericEnvAllowZero,
|
|
27
27
|
promptNameFromPath,
|
|
28
|
+
readOnlyClaudeExtraArgs,
|
|
28
29
|
renderAnalystCandidateLines,
|
|
29
30
|
renderAnalystSeedLines,
|
|
30
31
|
renderExternalHarnessAnalystPrompt,
|
|
31
32
|
repairExternalAnalystReport,
|
|
32
33
|
resolveAnalystModel,
|
|
34
|
+
resolveExternalHarnessAnalystInvocation,
|
|
33
35
|
resolveHarnessAnalyzeConcern,
|
|
34
36
|
runCodingAgent,
|
|
35
37
|
runHarnessCommand,
|
|
@@ -43,7 +45,7 @@ import {
|
|
|
43
45
|
writeHarnessAnalyzeResult,
|
|
44
46
|
writeHarnessArtifacts,
|
|
45
47
|
writeHumanProgress
|
|
46
|
-
} from "./cli-
|
|
48
|
+
} from "./cli-wbd3hzqh.js";
|
|
47
49
|
import"./cli-97fnztpy.js";
|
|
48
50
|
import"./cli-k0vxtzxb.js";
|
|
49
51
|
import"./cli-v2h21cgf.js";
|
|
@@ -73,11 +75,13 @@ export {
|
|
|
73
75
|
runHarnessCommand,
|
|
74
76
|
runCodingAgent,
|
|
75
77
|
resolveHarnessAnalyzeConcern,
|
|
78
|
+
resolveExternalHarnessAnalystInvocation,
|
|
76
79
|
resolveAnalystModel,
|
|
77
80
|
repairExternalAnalystReport,
|
|
78
81
|
renderExternalHarnessAnalystPrompt,
|
|
79
82
|
renderAnalystSeedLines,
|
|
80
83
|
renderAnalystCandidateLines,
|
|
84
|
+
readOnlyClaudeExtraArgs,
|
|
81
85
|
promptNameFromPath,
|
|
82
86
|
numericEnvAllowZero,
|
|
83
87
|
numericEnv,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from "./cli-hcwdz9sd.js";
|
|
22
22
|
import {
|
|
23
23
|
buildDoctorReport
|
|
24
|
-
} from "./cli-
|
|
24
|
+
} from "./cli-bt564t50.js";
|
|
25
25
|
import {
|
|
26
26
|
ConnectCodeError,
|
|
27
27
|
connectWithCode,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
import {
|
|
33
33
|
initPrompts,
|
|
34
34
|
runPromptSync
|
|
35
|
-
} from "./cli-
|
|
35
|
+
} from "./cli-hxy54rx3.js";
|
|
36
36
|
import"./cli-mm48br00.js";
|
|
37
37
|
import {
|
|
38
38
|
codingAgentDisplayName,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
runCodingAgent,
|
|
47
47
|
runHarnessCommand,
|
|
48
48
|
startRemoteAnalyze
|
|
49
|
-
} from "./cli-
|
|
49
|
+
} from "./cli-wbd3hzqh.js";
|
|
50
50
|
import {
|
|
51
51
|
stripAnsi
|
|
52
52
|
} from "./cli-97fnztpy.js";
|
|
@@ -6,11 +6,11 @@ import"./cli-rjav0vj1.js";
|
|
|
6
6
|
import"./cli-hcwdz9sd.js";
|
|
7
7
|
import {
|
|
8
8
|
runPromptsCommand
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-hxy54rx3.js";
|
|
10
10
|
import"./cli-mm48br00.js";
|
|
11
11
|
import {
|
|
12
12
|
runHarnessCommand
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-wbd3hzqh.js";
|
|
14
14
|
import"./cli-97fnztpy.js";
|
|
15
15
|
import"./cli-k0vxtzxb.js";
|
|
16
16
|
import"./cli-v2h21cgf.js";
|
package/package.json
CHANGED