@moda-ai/cli 1.55.29 → 1.55.31
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-0w9rtdsw.js → agent-e4k17rzy.js} +3 -3
- package/dist/{cli-ny48a8de.js → cli-a03st7e3.js} +2 -2
- package/dist/{cli-yf39avhh.js → cli-n1d52cww.js} +1 -1
- package/dist/{cli-3n0gz4d0.js → cli-x9cwat4a.js} +10238 -10127
- package/dist/{cli-3retgh64.js → cli-zgj5bakm.js} +5 -5
- package/dist/cli.js +9 -9
- package/dist/{doctor-k3ta6h2y.js → doctor-hnzte896.js} +2 -2
- package/dist/{harness-7azmzytc.js → harness-6vwehf47.js} +2 -5
- package/dist/{harness-github-actions-bv2qrnqb.js → harness-github-actions-6gdrpn4m.js} +1 -1
- package/dist/{index-d1z50dsq.js → index-6atgddwt.js} +3 -3
- package/dist/{production-intelligence-wvsgjxth.js → production-intelligence-7wb1djy2.js} +0 -9
- package/dist/{prompt-attribution-1nytc9wj.js → prompt-attribution-t0eq8gn8.js} +1 -1
- package/dist/prompt-source-mcp.js +1 -1
- package/dist/{prompts-ab-ezrd63sk.js → prompts-ab-qed3ra5e.js} +4 -11
- package/dist/{prompts-6y9wfq5z.js → prompts-kswdk3ft.js} +1 -1
- package/dist/{prompts-propose-2k3enm2q.js → prompts-propose-y5r68pcw.js} +2 -2
- package/dist/{registry-96aze5wp.js → registry-ctnn8e26.js} +20 -3
- package/dist/{sync-ew7yvy0e.js → sync-5e8t28t7.js} +2 -2
- package/package.json +1 -1
- package/skills/integration/index.json +2 -2
|
@@ -5725,9 +5725,9 @@ async function runPromptsCommand(input, legacyFlags, legacyProfileOptions) {
|
|
|
5725
5725
|
await promotePrompt(positionals, flags, profileOptions, context);
|
|
5726
5726
|
break;
|
|
5727
5727
|
case "ab":
|
|
5728
|
-
return (await import("./prompts-ab-
|
|
5728
|
+
return (await import("./prompts-ab-qed3ra5e.js")).runPromptAb(flags, profileOptions, context);
|
|
5729
5729
|
case "propose":
|
|
5730
|
-
await (await import("./prompts-propose-
|
|
5730
|
+
await (await import("./prompts-propose-y5r68pcw.js")).runPromptPropose(positionals, flags, profileOptions, context);
|
|
5731
5731
|
break;
|
|
5732
5732
|
case "list":
|
|
5733
5733
|
case "show":
|
|
@@ -5830,7 +5830,7 @@ async function runPromptSyncExclusive(flags, profileOptions, options) {
|
|
|
5830
5830
|
const analyzedDefinitions = new Map;
|
|
5831
5831
|
if (flags["no-analyze"] !== "true") {
|
|
5832
5832
|
options.onProgress?.("Analyzing prompt sources before sync.");
|
|
5833
|
-
const { analyzeHarnessPrompts } = await import("./harness-
|
|
5833
|
+
const { analyzeHarnessPrompts } = await import("./harness-6vwehf47.js");
|
|
5834
5834
|
const result = await analyzeHarnessPrompts({
|
|
5835
5835
|
rootDir: process.cwd(),
|
|
5836
5836
|
existing: established.flatMap((prompt) => prompt.sourceDefinition ? [prompt.sourceDefinition.source] : []),
|
|
@@ -5858,7 +5858,7 @@ async function runPromptSyncExclusive(flags, profileOptions, options) {
|
|
|
5858
5858
|
const mergedSources = mergePromptSources(manifest.sources, extraSources);
|
|
5859
5859
|
const manifestUpdate = stableJson(mergedSources) === stableJson(mergePromptSources(manifest.sources, [])) ? undefined : $stringify({ version: 2, prompt_paths: manifest.promptPaths, sources: mergedSources });
|
|
5860
5860
|
const prompts = await discoverPrompts(extraSources);
|
|
5861
|
-
const { checkPromptAttribution } = await import("./prompt-attribution-
|
|
5861
|
+
const { checkPromptAttribution } = await import("./prompt-attribution-t0eq8gn8.js");
|
|
5862
5862
|
const attribution = checkPromptAttribution(process.cwd(), prompts.map((prompt) => prompt.key));
|
|
5863
5863
|
const brokenAttribution = attribution.references.filter((reference) => reference.status === "missing");
|
|
5864
5864
|
if (brokenAttribution.length) {
|
|
@@ -6164,7 +6164,7 @@ async function migratePromptManifest(options = {}) {
|
|
|
6164
6164
|
let addedSources = [];
|
|
6165
6165
|
let pendingSources = [];
|
|
6166
6166
|
if (options.discover) {
|
|
6167
|
-
const { analyzeHarnessPrompts } = await import("./harness-
|
|
6167
|
+
const { analyzeHarnessPrompts } = await import("./harness-6vwehf47.js");
|
|
6168
6168
|
const result = await analyzeHarnessPrompts({
|
|
6169
6169
|
rootDir: root,
|
|
6170
6170
|
existing: manifest.sources,
|
package/dist/cli.js
CHANGED
|
@@ -2959,7 +2959,7 @@ function leafManifestFields(leaf, commands) {
|
|
|
2959
2959
|
import { fileURLToPath } from "url";
|
|
2960
2960
|
import { realpathSync } from "fs";
|
|
2961
2961
|
async function runPromptsCommand(...args) {
|
|
2962
|
-
return (await import("./prompts-
|
|
2962
|
+
return (await import("./prompts-kswdk3ft.js")).runPromptsCommand(...args);
|
|
2963
2963
|
}
|
|
2964
2964
|
async function runSkillsCommand(...args) {
|
|
2965
2965
|
return (await import("./skills-j8865009.js")).runSkillsCommand(...args);
|
|
@@ -2971,19 +2971,19 @@ async function runFixesCommand(...args) {
|
|
|
2971
2971
|
return (await import("./fix-w5z02wt4.js")).runFixesCommand(...args);
|
|
2972
2972
|
}
|
|
2973
2973
|
async function runHarnessCommand(...args) {
|
|
2974
|
-
return (await import("./harness-
|
|
2974
|
+
return (await import("./harness-6vwehf47.js")).runHarnessCommand(...args);
|
|
2975
2975
|
}
|
|
2976
2976
|
async function runSyncCommand(...args) {
|
|
2977
|
-
return (await import("./sync-
|
|
2977
|
+
return (await import("./sync-5e8t28t7.js")).runSyncCommand(...args);
|
|
2978
2978
|
}
|
|
2979
2979
|
async function runRegistryCommand(...args) {
|
|
2980
|
-
return (await import("./registry-
|
|
2980
|
+
return (await import("./registry-ctnn8e26.js")).runRegistryCommand(...args);
|
|
2981
2981
|
}
|
|
2982
2982
|
async function runDoctorCommand(...args) {
|
|
2983
|
-
return (await import("./doctor-
|
|
2983
|
+
return (await import("./doctor-hnzte896.js")).runDoctorCommand(...args);
|
|
2984
2984
|
}
|
|
2985
2985
|
async function runStatusCommand(...args) {
|
|
2986
|
-
return (await import("./doctor-
|
|
2986
|
+
return (await import("./doctor-hnzte896.js")).runStatusCommand(...args);
|
|
2987
2987
|
}
|
|
2988
2988
|
async function runAuthCommand(...args) {
|
|
2989
2989
|
return (await import("./profile-commands-h8evz9x0.js")).runAuthCommand(...args);
|
|
@@ -2995,10 +2995,10 @@ async function runProfilesCommand(...args) {
|
|
|
2995
2995
|
return (await import("./profile-commands-h8evz9x0.js")).runProfilesCommand(...args);
|
|
2996
2996
|
}
|
|
2997
2997
|
async function runAgentCommand(...args) {
|
|
2998
|
-
return (await import("./agent-
|
|
2998
|
+
return (await import("./agent-e4k17rzy.js")).runAgentCommand(...args);
|
|
2999
2999
|
}
|
|
3000
3000
|
async function runProductionCommand(...args) {
|
|
3001
|
-
return (await import("./production-intelligence-
|
|
3001
|
+
return (await import("./production-intelligence-7wb1djy2.js")).runProductionCommand(...args);
|
|
3002
3002
|
}
|
|
3003
3003
|
function parseArgs(argv) {
|
|
3004
3004
|
const args = argv.slice(2);
|
|
@@ -6143,7 +6143,7 @@ var commandRegistry = createCommandRegistry([
|
|
|
6143
6143
|
resetApiRequestCountBeforeRun: true,
|
|
6144
6144
|
telemetry: "result-and-error",
|
|
6145
6145
|
handler: async (context) => {
|
|
6146
|
-
const { runInit } = await import("./index-
|
|
6146
|
+
const { runInit } = await import("./index-6atgddwt.js");
|
|
6147
6147
|
if (context.outputMode === "agent-stream") {
|
|
6148
6148
|
context.output.writeEvent({
|
|
6149
6149
|
event: "started",
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
promptsDiscoveredCheck,
|
|
4
4
|
runDoctorCommand,
|
|
5
5
|
runStatusCommand
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-a03st7e3.js";
|
|
7
7
|
import"./cli-9bgnvth2.js";
|
|
8
|
-
import"./cli-
|
|
8
|
+
import"./cli-zgj5bakm.js";
|
|
9
9
|
import"./cli-mm48br00.js";
|
|
10
10
|
import"./cli-xq45etg1.js";
|
|
11
11
|
import"./cli-dr6x0zv7.js";
|
|
@@ -40,10 +40,8 @@ import {
|
|
|
40
40
|
writeHarnessAnalyzeResult,
|
|
41
41
|
writeHarnessArtifacts,
|
|
42
42
|
writeHumanProgress
|
|
43
|
-
} from "./cli-
|
|
44
|
-
import
|
|
45
|
-
readHarnessSyncState
|
|
46
|
-
} from "./cli-xq45etg1.js";
|
|
43
|
+
} from "./cli-x9cwat4a.js";
|
|
44
|
+
import"./cli-xq45etg1.js";
|
|
47
45
|
import"./cli-97fnztpy.js";
|
|
48
46
|
import {
|
|
49
47
|
HARNESS_ANALYZE_CONCERNS
|
|
@@ -76,7 +74,6 @@ export {
|
|
|
76
74
|
renderExternalHarnessAnalystPrompt,
|
|
77
75
|
renderAnalystSeedLines,
|
|
78
76
|
renderAnalystCandidateLines,
|
|
79
|
-
readHarnessSyncState,
|
|
80
77
|
promptNameFromPath,
|
|
81
78
|
numericEnvAllowZero,
|
|
82
79
|
numericEnv,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildDoctorReport
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-a03st7e3.js";
|
|
4
4
|
import {
|
|
5
5
|
selectTenantAndCreateKey
|
|
6
6
|
} from "./cli-9bgk5jeh.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
import {
|
|
30
30
|
initPrompts,
|
|
31
31
|
runPromptSync
|
|
32
|
-
} from "./cli-
|
|
32
|
+
} from "./cli-zgj5bakm.js";
|
|
33
33
|
import"./cli-mm48br00.js";
|
|
34
34
|
import {
|
|
35
35
|
codingAgentDisplayName,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
runCodingAgent,
|
|
44
44
|
runHarnessCommand,
|
|
45
45
|
startRemoteAnalyze
|
|
46
|
-
} from "./cli-
|
|
46
|
+
} from "./cli-x9cwat4a.js";
|
|
47
47
|
import {
|
|
48
48
|
canonicalText,
|
|
49
49
|
renderInitBanner,
|
|
@@ -42,7 +42,6 @@ import { join } from "node:path";
|
|
|
42
42
|
// src/ask-stream.ts
|
|
43
43
|
class AskStreamError extends Error {
|
|
44
44
|
elapsedMs;
|
|
45
|
-
toolEvents;
|
|
46
45
|
accepted;
|
|
47
46
|
constructor(message) {
|
|
48
47
|
super(message);
|
|
@@ -169,7 +168,6 @@ class AskStreamCollector {
|
|
|
169
168
|
terminal = false;
|
|
170
169
|
lastPhase;
|
|
171
170
|
toolNames = new Map;
|
|
172
|
-
toolEvents = 0;
|
|
173
171
|
events = 0;
|
|
174
172
|
constructor(onProgress = () => {}) {
|
|
175
173
|
this.onProgress = onProgress;
|
|
@@ -201,7 +199,6 @@ class AskStreamCollector {
|
|
|
201
199
|
break;
|
|
202
200
|
}
|
|
203
201
|
case "tool_start": {
|
|
204
|
-
this.toolEvents += 1;
|
|
205
202
|
const tool = event.tool;
|
|
206
203
|
const id = typeof tool?.id === "string" ? tool.id : "";
|
|
207
204
|
const name = stripAnsi(typeof tool?.tool === "string" ? tool.tool : "tool");
|
|
@@ -212,7 +209,6 @@ class AskStreamCollector {
|
|
|
212
209
|
break;
|
|
213
210
|
}
|
|
214
211
|
case "tool_end": {
|
|
215
|
-
this.toolEvents += 1;
|
|
216
212
|
const id = typeof event.id === "string" ? event.id : "";
|
|
217
213
|
const name = this.toolNames.get(id) ?? "tool";
|
|
218
214
|
this.onProgress(`• ${name} — ${toolEndDetail(event)}`);
|
|
@@ -250,9 +246,6 @@ class AskStreamCollector {
|
|
|
250
246
|
get eventCount() {
|
|
251
247
|
return this.events;
|
|
252
248
|
}
|
|
253
|
-
get toolEventCount() {
|
|
254
|
-
return this.toolEvents;
|
|
255
|
-
}
|
|
256
249
|
finish() {
|
|
257
250
|
if (!this.terminal) {
|
|
258
251
|
throw new AskStreamError("stream ended before a terminal done/error event");
|
|
@@ -392,8 +385,6 @@ async function streamAsk(options) {
|
|
|
392
385
|
if (error instanceof AskStreamError) {
|
|
393
386
|
if (error.elapsedMs === undefined)
|
|
394
387
|
error.elapsedMs = Date.now() - startedAt;
|
|
395
|
-
if (error.toolEvents === undefined)
|
|
396
|
-
error.toolEvents = collector.toolEventCount;
|
|
397
388
|
if (error.accepted === undefined)
|
|
398
389
|
error.accepted = accepted || collector.eventCount > 0;
|
|
399
390
|
}
|
|
@@ -23,13 +23,9 @@ import {
|
|
|
23
23
|
runPromptAb,
|
|
24
24
|
selectProblemCases,
|
|
25
25
|
waitLabel
|
|
26
|
-
} from "./cli-
|
|
27
|
-
import
|
|
28
|
-
|
|
29
|
-
DEFAULT_WAIT_TIMEOUT_MS,
|
|
30
|
-
fetchLatestRun
|
|
31
|
-
} from "./cli-yz8xcpyk.js";
|
|
32
|
-
import"./cli-3retgh64.js";
|
|
26
|
+
} from "./cli-n1d52cww.js";
|
|
27
|
+
import"./cli-yz8xcpyk.js";
|
|
28
|
+
import"./cli-zgj5bakm.js";
|
|
33
29
|
import"./cli-mm48br00.js";
|
|
34
30
|
import"./cli-dr6x0zv7.js";
|
|
35
31
|
import"./cli-n2hng3gv.js";
|
|
@@ -51,7 +47,6 @@ export {
|
|
|
51
47
|
formatVerdict,
|
|
52
48
|
fetchReplaySetCases,
|
|
53
49
|
fetchProblemCases,
|
|
54
|
-
fetchLatestRun,
|
|
55
50
|
enqueueAndPollComparison,
|
|
56
51
|
describeProblemCases,
|
|
57
52
|
describePlayouts,
|
|
@@ -64,7 +59,5 @@ export {
|
|
|
64
59
|
PLAYOUT_CONFIRM_THRESHOLD,
|
|
65
60
|
MAX_REPLAY_TRACES,
|
|
66
61
|
MAX_AUTO_GENERATE_CASES,
|
|
67
|
-
|
|
68
|
-
DEFAULT_PROBLEM_MAX_CASES,
|
|
69
|
-
DEFAULT_POLL_INTERVAL_MS
|
|
62
|
+
DEFAULT_PROBLEM_MAX_CASES
|
|
70
63
|
};
|
|
@@ -7,9 +7,9 @@ import {
|
|
|
7
7
|
formatVerdict,
|
|
8
8
|
rerunWithYes,
|
|
9
9
|
resolvePromptArmSpec
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-n1d52cww.js";
|
|
11
11
|
import"./cli-yz8xcpyk.js";
|
|
12
|
-
import"./cli-
|
|
12
|
+
import"./cli-zgj5bakm.js";
|
|
13
13
|
import"./cli-mm48br00.js";
|
|
14
14
|
import"./cli-dr6x0zv7.js";
|
|
15
15
|
import"./cli-n2hng3gv.js";
|
|
@@ -580,7 +580,24 @@ installed dependencies a lockfile reproduces, build output, and paths in
|
|
|
580
580
|
\`--entry\` goes last: everything after \`--\` is the command. If the code
|
|
581
581
|
hardcodes the model base URL instead of reading an env var, say so in your
|
|
582
582
|
report; do not change it.
|
|
583
|
-
4.
|
|
583
|
+
4. Write the same values to \`.moda/registration.json\` so the Moda GitHub App
|
|
584
|
+
registers the harness the same way on every push (show me the file; it
|
|
585
|
+
holds env var names only, never values):
|
|
586
|
+
|
|
587
|
+
{
|
|
588
|
+
"schema": "moda_harness_registration.v1",
|
|
589
|
+
"harnesses": [{
|
|
590
|
+
"name": "<name>",
|
|
591
|
+
"root": "<harness dir, . for the repo root>",
|
|
592
|
+
"entrypoint": ["node", "dist/server.js"],
|
|
593
|
+
"modelRouting": { "baseUrlEnv": "OPENAI_BASE_URL",
|
|
594
|
+
"modelEnv": "OPENAI_MODEL", "apiKeyEnv": "OPENAI_API_KEY" }
|
|
595
|
+
}]
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
One entry per harness in a monorepo, each with its own unique \`name\`
|
|
599
|
+
(required when there are several). Unknown keys are rejected.
|
|
600
|
+
5. When I approve the dry run, register for real with the same flags and no
|
|
584
601
|
\`--dry-run\`. It prints a registration id, a status, and a dashboard link.
|
|
585
602
|
Then run:
|
|
586
603
|
|
|
@@ -605,8 +622,8 @@ Reply with:
|
|
|
605
622
|
couldn't resolve.
|
|
606
623
|
6. Anything you found but couldn't express in the manifest.
|
|
607
624
|
7. The registration id and status, the entrypoint and model-routing env vars
|
|
608
|
-
you declared
|
|
609
|
-
checklist items still open.
|
|
625
|
+
you declared (and the \`.moda/registration.json\` you wrote), exclusions or
|
|
626
|
+
ignored paths a build may need, and the checklist items still open.
|
|
610
627
|
`;
|
|
611
628
|
|
|
612
629
|
// src/registry.ts
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
import"./cli-8dtnwp9r.js";
|
|
5
5
|
import {
|
|
6
6
|
runPromptsCommand
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-zgj5bakm.js";
|
|
8
8
|
import"./cli-mm48br00.js";
|
|
9
9
|
import {
|
|
10
10
|
runHarnessCommand
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-x9cwat4a.js";
|
|
12
12
|
import"./cli-xq45etg1.js";
|
|
13
13
|
import"./cli-97fnztpy.js";
|
|
14
14
|
import"./cli-cesds766.js";
|
package/package.json
CHANGED