@moda-ai/cli 1.55.106 → 1.55.108
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-8z1k639g.js → agent-vvefg4bm.js} +5 -5
- package/dist/{change-impact-tda0d76m.js → change-impact-5h3k9kg6.js} +3 -3
- package/dist/{cli-37z2f5wa.js → cli-2bhhk2nn.js} +2 -7
- package/dist/{cli-ev54s4wy.js → cli-5z2f1w5m.js} +4 -4
- package/dist/{cli-n9wt2k8t.js → cli-ekartfps.js} +1 -1
- package/dist/{cli-25yzb3wd.js → cli-eq09n00v.js} +3 -15
- package/dist/{cli-pae8jxe9.js → cli-h7hfpmwa.js} +4 -7
- package/dist/{cli-82fxwm0m.js → cli-r2dxdhg8.js} +11 -11
- package/dist/{cli-k0vxtzxb.js → cli-rpyepjwb.js} +1 -2
- package/dist/{cli-2qcedyw0.js → cli-xxpaq3n8.js} +4 -4
- package/dist/cli.js +10 -33
- package/dist/{doctor-knvvpcjg.js → doctor-1hhktzsz.js} +4 -4
- package/dist/{harness-d92py0t2.js → harness-7s0w2wc9.js} +3 -3
- package/dist/{harness-github-actions-1x0bfww6.js → harness-github-actions-1hq2ed0v.js} +3 -3
- package/dist/{index-dmhrtv9c.js → index-2g0ft2hm.js} +6 -6
- package/dist/{index-2z6m9gq4.js → index-9adksf01.js} +3 -3
- package/dist/{index-8v6zbm1m.js → index-n1jx9hta.js} +4 -4
- package/dist/{prompt-attribution-sftw2s9g.js → prompt-attribution-c1a5pysf.js} +3 -3
- package/dist/prompt-source-mcp.js +3 -3
- package/dist/{prompts-mtptqs7c.js → prompts-fdqrbawx.js} +2 -2
- package/dist/{registry-w50mdzsb.js → registry-vxrxw1tj.js} +1 -1
- package/dist/{skills-0kkps03j.js → skills-rjbnv8nn.js} +2 -2
- package/dist/{sync-q5n028df.js → sync-gxgpfztm.js} +5 -5
- package/package.json +1 -1
- package/skills/integration/index.json +2 -2
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildDoctorReport
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-eq09n00v.js";
|
|
4
4
|
import"./cli-qwnkv4jy.js";
|
|
5
|
-
import"./cli-
|
|
5
|
+
import"./cli-xxpaq3n8.js";
|
|
6
6
|
import"./cli-mm48br00.js";
|
|
7
7
|
import"./cli-764m5azg.js";
|
|
8
8
|
import {
|
|
9
9
|
readHarnessSyncState
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-rpyepjwb.js";
|
|
11
11
|
import {
|
|
12
12
|
HARNESS_REPORT_APPROVAL_PATH,
|
|
13
13
|
HARNESS_REPORT_PATH,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
validateHarnessReport
|
|
18
18
|
} from "./cli-krm4w2v9.js";
|
|
19
19
|
import"./cli-13zdcv4w.js";
|
|
20
|
-
import"./cli-
|
|
20
|
+
import"./cli-2bhhk2nn.js";
|
|
21
21
|
import"./cli-e0kbye4s.js";
|
|
22
22
|
import"./cli-n9ng8mym.js";
|
|
23
23
|
import {
|
|
@@ -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-7s0w2wc9.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,14 +11,14 @@ import {
|
|
|
11
11
|
resolvedSymbol,
|
|
12
12
|
returnExpressions,
|
|
13
13
|
valueDeclaration
|
|
14
|
-
} from "./cli-
|
|
15
|
-
import"./cli-
|
|
14
|
+
} from "./cli-r2dxdhg8.js";
|
|
15
|
+
import"./cli-rpyepjwb.js";
|
|
16
16
|
import"./cli-97fnztpy.js";
|
|
17
17
|
import {
|
|
18
18
|
detectBoundRuntimeClasses
|
|
19
19
|
} from "./cli-krm4w2v9.js";
|
|
20
20
|
import"./cli-13zdcv4w.js";
|
|
21
|
-
import"./cli-
|
|
21
|
+
import"./cli-2bhhk2nn.js";
|
|
22
22
|
import"./cli-e0kbye4s.js";
|
|
23
23
|
import"./cli-n9ng8mym.js";
|
|
24
24
|
import"./cli-1nd4339b.js";
|
|
@@ -74,7 +74,7 @@ var ConversationsSchema = z.object({
|
|
|
74
74
|
until: isoBoundFlag().describe("Absolute UTC end, inclusive (ISO date or datetime; a date covers that whole day)"),
|
|
75
75
|
environment: z.enum(["all", "development", "staging", "production"]).default("all").optional().describe("Only traces from this environment"),
|
|
76
76
|
world_state: z.string().max(200).optional().describe("Match world-state content (slots + durable profile); comma = AND"),
|
|
77
|
-
outcome: z.enum(["any", "positive", "negative"]).default("any").optional().describe("Filter by trace outcome
|
|
77
|
+
outcome: z.enum(["any", "positive", "negative"]).default("any").optional().describe("Filter by trace outcome: negative = a frustration was detected in the trace, positive = no frustration detected"),
|
|
78
78
|
include_world_state: boolFlag().describe("Attach each result's world-state summary"),
|
|
79
79
|
sort: z.enum(["recent", "longest", "slowest"]).optional().describe("recent = newest activity, longest = most messages, slowest = longest span"),
|
|
80
80
|
cohort: cohortFlag("Only traces of this cohort's current members (builtin:<key> or a saved cohort id)"),
|
|
@@ -187,7 +187,6 @@ var REMAINDER_FAMILIES = [
|
|
|
187
187
|
"emotion",
|
|
188
188
|
"laziness",
|
|
189
189
|
"hallucination",
|
|
190
|
-
"prm_dip",
|
|
191
190
|
"custom_signal",
|
|
192
191
|
"conversation_reader"
|
|
193
192
|
];
|
|
@@ -403,9 +402,6 @@ var LazinessSchema = z.object({
|
|
|
403
402
|
order: z.enum(SORT_ORDERS).optional().describe("Sort direction (default desc)"),
|
|
404
403
|
cohort: cohortFlag("Only traces of this cohort's members (builtin:<key> or a saved cohort id); not with --conversation-id")
|
|
405
404
|
});
|
|
406
|
-
var StepScoresSchema = z.object({
|
|
407
|
-
conversation_id: z.string().min(1).describe("Trace ID")
|
|
408
|
-
});
|
|
409
405
|
var TAIL_SIGNALS = ["traces", "conversations", "emotions", "all"];
|
|
410
406
|
var TailSchema = z.object({
|
|
411
407
|
interval: z.number().int().min(5).max(3600).default(15).optional().describe("Seconds between polls"),
|
|
@@ -776,7 +772,6 @@ var COMMAND_FLAG_SPECS = {
|
|
|
776
772
|
emotions: { schema: EmotionsSchema },
|
|
777
773
|
laziness: { schema: LazinessSchema },
|
|
778
774
|
hallucinations: { schema: HallucinationsSchema },
|
|
779
|
-
"step-scores": { schema: StepScoresSchema, handParsed: true, positionals: [TRACE_ID] },
|
|
780
775
|
tail: { schema: TailSchema },
|
|
781
776
|
feedback: {
|
|
782
777
|
schema: FeedbackSchema,
|
|
@@ -1664,4 +1659,4 @@ function unknownSignalsSubcommandError(sub, args = []) {
|
|
|
1664
1659
|
${SIGNAL_USAGE}`);
|
|
1665
1660
|
}
|
|
1666
1661
|
|
|
1667
|
-
export { CLUSTER_COHORT_TIME_RANGES, TRACE_GRAIN_FLAGS, MAX_CONVERSATION_IDS_FILTER, BOOK_PROBLEM_SORTS, DREAM_PROBLEM_SORTS, PROBLEMS_MAX_LIMIT, PROBLEMS_DEFAULT_LIMIT, ProblemsRemainderSchema, UUID_RE, ProblemImpactSchema, PROBLEM_FEEDBACK_ACTIONS, ProblemFeedbackSchema, ProblemLinearFileSchema, SignalLabelSchema, DETECTION_VERDICTS, DetectionReviewSchema, FALSE_POSITIVE_KINDS, FalsePositiveSchema, EMOTION_FAMILIES, LAZINESS_FAMILIES,
|
|
1662
|
+
export { CLUSTER_COHORT_TIME_RANGES, TRACE_GRAIN_FLAGS, MAX_CONVERSATION_IDS_FILTER, BOOK_PROBLEM_SORTS, DREAM_PROBLEM_SORTS, PROBLEMS_MAX_LIMIT, PROBLEMS_DEFAULT_LIMIT, ProblemsRemainderSchema, UUID_RE, ProblemImpactSchema, PROBLEM_FEEDBACK_ACTIONS, ProblemFeedbackSchema, ProblemLinearFileSchema, SignalLabelSchema, DETECTION_VERDICTS, DetectionReviewSchema, FALSE_POSITIVE_KINDS, FalsePositiveSchema, EMOTION_FAMILIES, LAZINESS_FAMILIES, AuditSchema, TraceFindingsSchema, FEEDBACK_USAGE, isFeedbackRefFlag, buildFeedbackRequest, writeDryRun, COMMAND_FLAG_SPECS, flagSpecFor, kebabFlag, schemaShape, describeField, specFlagKeys, specFlagNames, describeSpecFlags, closestMatches, usageLine, renderFlagHelp, subcommandHelpFlags, manifestFlagFields, requireTenant, assertFlags, assertPositionals, runUsersCommand, runUserCommand, runCohortCommand, runProblemReopenCommand, runSignalsManagementCommand, SIGNALS_MANAGEMENT_SUBCOMMANDS, unknownSignalsSubcommandError };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
enumerateToolCatalog,
|
|
3
3
|
enumerateWorkflows
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-ekartfps.js";
|
|
5
5
|
import {
|
|
6
6
|
require_out
|
|
7
7
|
} from "./cli-764m5azg.js";
|
|
@@ -34,15 +34,15 @@ import {
|
|
|
34
34
|
unwrap,
|
|
35
35
|
valueDeclaration,
|
|
36
36
|
visit
|
|
37
|
-
} from "./cli-
|
|
38
|
-
import"./cli-
|
|
37
|
+
} from "./cli-r2dxdhg8.js";
|
|
38
|
+
import"./cli-rpyepjwb.js";
|
|
39
39
|
import"./cli-97fnztpy.js";
|
|
40
40
|
import {
|
|
41
41
|
detectBoundRuntimeClasses,
|
|
42
42
|
isTestWorkerConfig
|
|
43
43
|
} from "./cli-krm4w2v9.js";
|
|
44
44
|
import"./cli-13zdcv4w.js";
|
|
45
|
-
import"./cli-
|
|
45
|
+
import"./cli-2bhhk2nn.js";
|
|
46
46
|
import"./cli-e0kbye4s.js";
|
|
47
47
|
import"./cli-n9ng8mym.js";
|
|
48
48
|
import {
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
} from "./cli-qwnkv4jy.js";
|
|
5
5
|
import {
|
|
6
6
|
inspectPromptManifest
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-xxpaq3n8.js";
|
|
8
8
|
import {
|
|
9
9
|
readHarnessSyncState,
|
|
10
10
|
renderDoctorHuman,
|
|
11
11
|
renderStatusHuman
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-rpyepjwb.js";
|
|
13
13
|
import {
|
|
14
14
|
callDataAPI
|
|
15
15
|
} from "./cli-n9ng8mym.js";
|
|
@@ -73,7 +73,6 @@ async function runStatusCommand(context) {
|
|
|
73
73
|
harness: checkStatus(report.checks, "harness_manifest_current"),
|
|
74
74
|
harnessSync: checkStatus(report.checks, "harness_sync_state_present"),
|
|
75
75
|
harnessReport: "skipped",
|
|
76
|
-
shadowSpark: "skipped",
|
|
77
76
|
prompts: checkStatus(report.checks, "prompts_discovered"),
|
|
78
77
|
skills: checkStatus(report.checks, "skills_discovered"),
|
|
79
78
|
topBrokenCheck: topBroken ? {
|
|
@@ -186,7 +185,6 @@ async function buildDoctorReport(context, options) {
|
|
|
186
185
|
"tests",
|
|
187
186
|
"__tests__"
|
|
188
187
|
]));
|
|
189
|
-
checks.push(validationEventPathCheck(ingestUrl));
|
|
190
188
|
if (options.offline || !apiKey || base.refused) {
|
|
191
189
|
checks.push(...offlineCloudChecks(options.offline, Boolean(base.refused)));
|
|
192
190
|
} else {
|
|
@@ -395,7 +393,7 @@ async function harnessCurrentCheck(cwd, manifestPath, manifestExists, tenantId)
|
|
|
395
393
|
};
|
|
396
394
|
}
|
|
397
395
|
try {
|
|
398
|
-
const { scanHarness } = await import("./harness-
|
|
396
|
+
const { scanHarness } = await import("./harness-7s0w2wc9.js");
|
|
399
397
|
const current = scanHarness({
|
|
400
398
|
rootDir: cwd,
|
|
401
399
|
scannerVersion: "doctor",
|
|
@@ -524,16 +522,6 @@ function discoveryCheck(id, group, title, cwd, relativePaths, nextCommand) {
|
|
|
524
522
|
nextCommand: found.length > 0 ? undefined : nextCommand
|
|
525
523
|
};
|
|
526
524
|
}
|
|
527
|
-
function validationEventPathCheck(ingestUrl) {
|
|
528
|
-
return {
|
|
529
|
-
id: "validation_event_path_defined",
|
|
530
|
-
group: "cloud",
|
|
531
|
-
title: "Validation event path is defined",
|
|
532
|
-
status: "pass",
|
|
533
|
-
severity: "info",
|
|
534
|
-
evidence: [{ label: "path", value: `${ingestUrl.replace(/\/+$/, "")}/v1/otel/validation` }]
|
|
535
|
-
};
|
|
536
|
-
}
|
|
537
525
|
function offlineCloudChecks(isOffline, refused = false) {
|
|
538
526
|
const status = isOffline || refused ? "skipped" : "warning";
|
|
539
527
|
const evidence = [{ label: "mode", value: refused ? "base url refused" : isOffline ? "offline" : "missing api key" }];
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
assertFlags,
|
|
19
19
|
assertPositionals,
|
|
20
20
|
writeDryRun
|
|
21
|
-
} from "./cli-
|
|
21
|
+
} from "./cli-2bhhk2nn.js";
|
|
22
22
|
import {
|
|
23
23
|
callControlAPI
|
|
24
24
|
} from "./cli-n9ng8mym.js";
|
|
@@ -804,9 +804,6 @@ async function generateSkills(flags) {
|
|
|
804
804
|
const waitForCompletion = flags.wait === "true" || flags["wait-for-completion"] === "true";
|
|
805
805
|
const forceReprocess = flags["force-reprocess"] === "true";
|
|
806
806
|
const source = normalizeSkillSource(flags.source);
|
|
807
|
-
if (source === "coding_agent") {
|
|
808
|
-
console.error("Note: --source=coding-agent is deprecated for skills gen (SDK-only). The run will find no coding-agent sessions; use --source=all or --source=sdk.");
|
|
809
|
-
}
|
|
810
807
|
const body = compactObject({
|
|
811
808
|
tenant_id: tenantId || undefined,
|
|
812
809
|
max_sessions: parseScopeInt(flags["max-sessions"], "max-sessions"),
|
|
@@ -870,10 +867,10 @@ function compactObject(input) {
|
|
|
870
867
|
return Object.fromEntries(Object.entries(input).filter(([, value]) => value !== undefined));
|
|
871
868
|
}
|
|
872
869
|
function normalizeSkillSource(value) {
|
|
873
|
-
const normalized = (value || "all").toLowerCase()
|
|
874
|
-
if (["all", "sdk"
|
|
870
|
+
const normalized = (value || "all").toLowerCase();
|
|
871
|
+
if (["all", "sdk"].includes(normalized))
|
|
875
872
|
return normalized;
|
|
876
|
-
|
|
873
|
+
throw new CliInputError(`Invalid --source '${value}'. Use --source=all or --source=sdk.`);
|
|
877
874
|
}
|
|
878
875
|
function releaseKeyFor(release, skills, status) {
|
|
879
876
|
if (release?.generation_run_id)
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
renderHarnessAnalystPreflight,
|
|
7
7
|
renderHarnessAnalyzeHumanResult,
|
|
8
8
|
renderHarnessProgress
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-rpyepjwb.js";
|
|
10
10
|
import {
|
|
11
11
|
stripAnsi
|
|
12
12
|
} from "./cli-97fnztpy.js";
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
assertFlags,
|
|
45
45
|
assertPositionals,
|
|
46
46
|
requireTenant
|
|
47
|
-
} from "./cli-
|
|
47
|
+
} from "./cli-2bhhk2nn.js";
|
|
48
48
|
import {
|
|
49
49
|
ApiError,
|
|
50
50
|
callControlAPI
|
|
@@ -21010,7 +21010,7 @@ async function runHarnessCommand(context) {
|
|
|
21010
21010
|
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(", ")}.`);
|
|
21011
21011
|
}
|
|
21012
21012
|
if (subcommand === "skeleton" || subcommand === "skeleton-diff") {
|
|
21013
|
-
const { runSkeletonCommand } = await import("./cli-
|
|
21013
|
+
const { runSkeletonCommand } = await import("./cli-5z2f1w5m.js");
|
|
21014
21014
|
return runSkeletonCommand(context);
|
|
21015
21015
|
}
|
|
21016
21016
|
if (subcommand === "register")
|
|
@@ -21022,7 +21022,7 @@ async function runHarnessCommand(context) {
|
|
|
21022
21022
|
assertPositionals("harness impact", context.positionals, 1, "moda harness impact --from=<commit> --to=<commit>");
|
|
21023
21023
|
if (!context.flags.from)
|
|
21024
21024
|
throw new CliInputError("harness impact requires --from=<old-commit>.");
|
|
21025
|
-
const { localChangeImpact, readRecordedImpactCalls } = await import("./change-impact-
|
|
21025
|
+
const { localChangeImpact, readRecordedImpactCalls } = await import("./change-impact-5h3k9kg6.js");
|
|
21026
21026
|
const result = localChangeImpact({
|
|
21027
21027
|
checkout: resolve10(context.cwd, context.flags.path ?? "."),
|
|
21028
21028
|
from: context.flags.from,
|
|
@@ -21294,7 +21294,7 @@ async function runHarnessCommand(context) {
|
|
|
21294
21294
|
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.");
|
|
21295
21295
|
}
|
|
21296
21296
|
if (context.flags["github-actions"] === "true") {
|
|
21297
|
-
const { runGithubActionsAnalyze } = await import("./harness-github-actions-
|
|
21297
|
+
const { runGithubActionsAnalyze } = await import("./harness-github-actions-1hq2ed0v.js");
|
|
21298
21298
|
const result = await runGithubActionsAnalyze(rootDir, {
|
|
21299
21299
|
writeReport: (report2) => {
|
|
21300
21300
|
const normalized = normalizeHarnessReport(report2);
|
|
@@ -21445,8 +21445,8 @@ async function runHarnessCommand(context) {
|
|
|
21445
21445
|
}
|
|
21446
21446
|
const { artifacts, unknowns, canonicalAgentIdentities } = deterministicGraphItems(rootDir, promote === "all" ? undefined : promote);
|
|
21447
21447
|
tagComponentStatus({ runtimeAgents: [], artifacts }, rootDir);
|
|
21448
|
-
const { extractHarnessWithContext: extractHarnessWithContext2 } = await import("./index-
|
|
21449
|
-
const { enumerateHarnessComponents, mergeEnumeratedComponents } = await import("./index-
|
|
21448
|
+
const { extractHarnessWithContext: extractHarnessWithContext2 } = await import("./index-9adksf01.js");
|
|
21449
|
+
const { enumerateHarnessComponents, mergeEnumeratedComponents } = await import("./index-n1jx9hta.js");
|
|
21450
21450
|
let components = { runtimeAgents: [], artifacts: [], warnings: [] };
|
|
21451
21451
|
if (promote === "all" || promote === "topology" || promote === "tools") {
|
|
21452
21452
|
const { result, ctx } = extractHarnessWithContext2(rootDir);
|
|
@@ -21518,8 +21518,8 @@ async function runHarnessCommand(context) {
|
|
|
21518
21518
|
}
|
|
21519
21519
|
case "extract": {
|
|
21520
21520
|
writeHumanProgress(context, "Harness extract: tracing model call sites (no LLM, no network)...");
|
|
21521
|
-
const { extractHarnessWithContext: extractHarnessWithContext2, serializeExtractResult } = await import("./index-
|
|
21522
|
-
const { enumerateHarnessComponents, mergeEnumeratedComponents } = await import("./index-
|
|
21521
|
+
const { extractHarnessWithContext: extractHarnessWithContext2, serializeExtractResult } = await import("./index-9adksf01.js");
|
|
21522
|
+
const { enumerateHarnessComponents, mergeEnumeratedComponents } = await import("./index-n1jx9hta.js");
|
|
21523
21523
|
const { result, ctx } = extractHarnessWithContext2(rootDir, { fresh: true });
|
|
21524
21524
|
const items = deterministicGraphItems(rootDir);
|
|
21525
21525
|
const artifacts = items.artifacts;
|
|
@@ -22426,8 +22426,8 @@ var CONCERN_PROMOTED_ARTIFACT_TYPES = {
|
|
|
22426
22426
|
evals: new Set(["model_config", "eval"])
|
|
22427
22427
|
};
|
|
22428
22428
|
async function deterministicFloorGraph(rootDir, options = {}) {
|
|
22429
|
-
const { extractHarnessWithContext: extractHarnessWithContext2 } = await import("./index-
|
|
22430
|
-
const { enumerateHarnessComponents, mergeEnumeratedComponents } = await import("./index-
|
|
22429
|
+
const { extractHarnessWithContext: extractHarnessWithContext2 } = await import("./index-9adksf01.js");
|
|
22430
|
+
const { enumerateHarnessComponents, mergeEnumeratedComponents } = await import("./index-n1jx9hta.js");
|
|
22431
22431
|
const { result, ctx } = extractHarnessWithContext2(rootDir);
|
|
22432
22432
|
const items = deterministicGraphItems(rootDir);
|
|
22433
22433
|
const components = mergeEnumeratedComponents(items.artifacts, enumerateHarnessComponents(result, ctx));
|
|
@@ -23,7 +23,7 @@ var messaging_default = {
|
|
|
23
23
|
"apps/moda-frontend/content/llms/homepage.md",
|
|
24
24
|
"apps/moda-frontend/app/llms.txt/route.ts (summary line)",
|
|
25
25
|
"docs/index.mdx frontmatter description",
|
|
26
|
-
"
|
|
26
|
+
".cursorrules (What Moda Is)",
|
|
27
27
|
"Y Combinator company page one-liner"
|
|
28
28
|
]
|
|
29
29
|
},
|
|
@@ -822,7 +822,6 @@ function renderStatusHuman(status, options = {}) {
|
|
|
822
822
|
lines.push(` Data flow ${ui.status(status.dataFlow)}`);
|
|
823
823
|
lines.push(` Harness ${ui.status(status.harness)}`);
|
|
824
824
|
lines.push(` Harness sync ${ui.status(status.harnessSync)}`);
|
|
825
|
-
lines.push(` Shadow Spark ${ui.status(status.shadowSpark)}`);
|
|
826
825
|
lines.push(` Prompts ${ui.status(status.prompts)}`);
|
|
827
826
|
lines.push(` Skills ${ui.status(status.skills)}`);
|
|
828
827
|
if (status.topBrokenCheck) {
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
assertFlags,
|
|
13
13
|
assertPositionals
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-2bhhk2nn.js";
|
|
15
15
|
import {
|
|
16
16
|
callControlAPI
|
|
17
17
|
} from "./cli-n9ng8mym.js";
|
|
@@ -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-
|
|
273
|
+
const { analyzeHarnessPrompts } = await import("./harness-7s0w2wc9.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-
|
|
301
|
+
const { checkPromptAttribution } = await import("./prompt-attribution-c1a5pysf.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-
|
|
607
|
+
const { analyzeHarnessPrompts } = await import("./harness-7s0w2wc9.js");
|
|
608
608
|
const result = await analyzeHarnessPrompts({
|
|
609
609
|
rootDir: root,
|
|
610
610
|
existing: manifest.sources,
|
package/dist/cli.js
CHANGED
|
@@ -53,7 +53,6 @@ import {
|
|
|
53
53
|
ProblemsRemainderSchema,
|
|
54
54
|
SIGNALS_MANAGEMENT_SUBCOMMANDS,
|
|
55
55
|
SignalLabelSchema,
|
|
56
|
-
StepScoresSchema,
|
|
57
56
|
TRACE_GRAIN_FLAGS,
|
|
58
57
|
TraceFindingsSchema,
|
|
59
58
|
UUID_RE,
|
|
@@ -78,7 +77,7 @@ import {
|
|
|
78
77
|
unknownSignalsSubcommandError,
|
|
79
78
|
usageLine,
|
|
80
79
|
writeDryRun
|
|
81
|
-
} from "./cli-
|
|
80
|
+
} from "./cli-2bhhk2nn.js";
|
|
82
81
|
import {
|
|
83
82
|
envOptOutSet,
|
|
84
83
|
envSwitchedOff,
|
|
@@ -3088,25 +3087,25 @@ function leafManifestFields(leaf, commands) {
|
|
|
3088
3087
|
import { fileURLToPath } from "url";
|
|
3089
3088
|
import { realpathSync } from "fs";
|
|
3090
3089
|
async function runPromptsCommand(...args) {
|
|
3091
|
-
return (await import("./prompts-
|
|
3090
|
+
return (await import("./prompts-fdqrbawx.js")).runPromptsCommand(...args);
|
|
3092
3091
|
}
|
|
3093
3092
|
async function runSkillsCommand(...args) {
|
|
3094
|
-
return (await import("./skills-
|
|
3093
|
+
return (await import("./skills-rjbnv8nn.js")).runSkillsCommand(...args);
|
|
3095
3094
|
}
|
|
3096
3095
|
async function runHarnessCommand(...args) {
|
|
3097
|
-
return (await import("./harness-
|
|
3096
|
+
return (await import("./harness-7s0w2wc9.js")).runHarnessCommand(...args);
|
|
3098
3097
|
}
|
|
3099
3098
|
async function runSyncCommand(...args) {
|
|
3100
|
-
return (await import("./sync-
|
|
3099
|
+
return (await import("./sync-gxgpfztm.js")).runSyncCommand(...args);
|
|
3101
3100
|
}
|
|
3102
3101
|
async function runRegistryCommand(...args) {
|
|
3103
|
-
return (await import("./registry-
|
|
3102
|
+
return (await import("./registry-vxrxw1tj.js")).runRegistryCommand(...args);
|
|
3104
3103
|
}
|
|
3105
3104
|
async function runDoctorCommand(...args) {
|
|
3106
|
-
return (await import("./doctor-
|
|
3105
|
+
return (await import("./doctor-1hhktzsz.js")).runDoctorCommand(...args);
|
|
3107
3106
|
}
|
|
3108
3107
|
async function runStatusCommand(...args) {
|
|
3109
|
-
return (await import("./doctor-
|
|
3108
|
+
return (await import("./doctor-1hhktzsz.js")).runStatusCommand(...args);
|
|
3110
3109
|
}
|
|
3111
3110
|
async function runAuthCommand(...args) {
|
|
3112
3111
|
return (await import("./profile-commands-zgq8dja0.js")).runAuthCommand(...args);
|
|
@@ -3118,7 +3117,7 @@ async function runProfilesCommand(...args) {
|
|
|
3118
3117
|
return (await import("./profile-commands-zgq8dja0.js")).runProfilesCommand(...args);
|
|
3119
3118
|
}
|
|
3120
3119
|
async function runAgentCommand(...args) {
|
|
3121
|
-
return (await import("./agent-
|
|
3120
|
+
return (await import("./agent-vvefg4bm.js")).runAgentCommand(...args);
|
|
3122
3121
|
}
|
|
3123
3122
|
async function runProductionCommand(...args) {
|
|
3124
3123
|
return (await import("./production-intelligence-8w7an97c.js")).runProductionCommand(...args);
|
|
@@ -6699,21 +6698,6 @@ async function runCommand(command, positional, flags, positionals = positional ?
|
|
|
6699
6698
|
context.output.writeData(data, withCohortScope(params.cohort, data, { summary: countingSummary(data) }));
|
|
6700
6699
|
break;
|
|
6701
6700
|
}
|
|
6702
|
-
case "step-scores": {
|
|
6703
|
-
if (!positional) {
|
|
6704
|
-
throw new CliInputError("<conversation_id> is required", "Usage: moda step-scores <conversation_id>");
|
|
6705
|
-
}
|
|
6706
|
-
const params = StepScoresSchema.parse({ conversation_id: positional });
|
|
6707
|
-
const data = await callDataAPI(`/conversations/${encodeURIComponent(params.conversation_id)}/step-scores`);
|
|
6708
|
-
const record = asRecord(data) ?? {};
|
|
6709
|
-
const steps = Array.isArray(record.steps) ? record.steps : [];
|
|
6710
|
-
const segments = Array.isArray(record.segments) ? record.segments : [];
|
|
6711
|
-
const warnings = steps.length === 0 && segments.length === 0 ? [
|
|
6712
|
-
`No step scores found for trace "${params.conversation_id}" — it may not exist in this tenant, or has not been scored yet.`
|
|
6713
|
-
] : [];
|
|
6714
|
-
context.output.writeData(data, warnings.length > 0 ? { warnings } : undefined);
|
|
6715
|
-
break;
|
|
6716
|
-
}
|
|
6717
6701
|
case "tail": {
|
|
6718
6702
|
const args = flagsToArgs(flags);
|
|
6719
6703
|
const params = parseSpecFlags("tail", args, command);
|
|
@@ -6885,7 +6869,7 @@ var commandRegistry = createCommandRegistry([
|
|
|
6885
6869
|
resetApiRequestCountBeforeRun: true,
|
|
6886
6870
|
telemetry: "result-and-error",
|
|
6887
6871
|
handler: async (context) => {
|
|
6888
|
-
const { runInit } = await import("./index-
|
|
6872
|
+
const { runInit } = await import("./index-2g0ft2hm.js");
|
|
6889
6873
|
if (context.outputMode === "agent-stream") {
|
|
6890
6874
|
context.output.writeEvent({
|
|
6891
6875
|
event: "started",
|
|
@@ -7659,13 +7643,6 @@ var commandRegistry = createCommandRegistry([
|
|
|
7659
7643
|
],
|
|
7660
7644
|
...dataApiDefaults
|
|
7661
7645
|
}),
|
|
7662
|
-
legacyCommand({
|
|
7663
|
-
name: "step-scores",
|
|
7664
|
-
description: "Step scores for a trace (per-segment curves, first bad step, rollup)",
|
|
7665
|
-
examples: ["moda step-scores <conversation_id>"],
|
|
7666
|
-
hidden: true,
|
|
7667
|
-
...dataApiDefaults
|
|
7668
|
-
}),
|
|
7669
7646
|
legacyCommand({
|
|
7670
7647
|
name: "tail",
|
|
7671
7648
|
description: "Live-tail new traces and detections as NDJSON (one JSON line per item); --signal=traces|emotions|all (conversations = legacy alias of traces)",
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
promptsDiscoveredCheck,
|
|
4
4
|
runDoctorCommand,
|
|
5
5
|
runStatusCommand
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-eq09n00v.js";
|
|
7
7
|
import"./cli-qwnkv4jy.js";
|
|
8
|
-
import"./cli-
|
|
8
|
+
import"./cli-xxpaq3n8.js";
|
|
9
9
|
import"./cli-mm48br00.js";
|
|
10
10
|
import"./cli-764m5azg.js";
|
|
11
|
-
import"./cli-
|
|
11
|
+
import"./cli-rpyepjwb.js";
|
|
12
12
|
import"./cli-13zdcv4w.js";
|
|
13
|
-
import"./cli-
|
|
13
|
+
import"./cli-2bhhk2nn.js";
|
|
14
14
|
import"./cli-e0kbye4s.js";
|
|
15
15
|
import"./cli-n9ng8mym.js";
|
|
16
16
|
import"./cli-1nd4339b.js";
|
|
@@ -48,14 +48,14 @@ import {
|
|
|
48
48
|
writeHarnessAnalyzeResult,
|
|
49
49
|
writeHarnessArtifacts,
|
|
50
50
|
writeHumanProgress
|
|
51
|
-
} from "./cli-
|
|
52
|
-
import"./cli-
|
|
51
|
+
} from "./cli-r2dxdhg8.js";
|
|
52
|
+
import"./cli-rpyepjwb.js";
|
|
53
53
|
import"./cli-97fnztpy.js";
|
|
54
54
|
import {
|
|
55
55
|
HARNESS_ANALYZE_CONCERNS
|
|
56
56
|
} from "./cli-krm4w2v9.js";
|
|
57
57
|
import"./cli-13zdcv4w.js";
|
|
58
|
-
import"./cli-
|
|
58
|
+
import"./cli-2bhhk2nn.js";
|
|
59
59
|
import"./cli-e0kbye4s.js";
|
|
60
60
|
import"./cli-n9ng8mym.js";
|
|
61
61
|
import"./cli-1nd4339b.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildSourceSnapshot
|
|
3
|
-
} from "./cli-
|
|
4
|
-
import"./cli-
|
|
3
|
+
} from "./cli-r2dxdhg8.js";
|
|
4
|
+
import"./cli-rpyepjwb.js";
|
|
5
5
|
import"./cli-97fnztpy.js";
|
|
6
6
|
import"./cli-krm4w2v9.js";
|
|
7
7
|
import"./cli-13zdcv4w.js";
|
|
8
|
-
import"./cli-
|
|
8
|
+
import"./cli-2bhhk2nn.js";
|
|
9
9
|
import"./cli-e0kbye4s.js";
|
|
10
10
|
import"./cli-n9ng8mym.js";
|
|
11
11
|
import {
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
agentsMdProblem,
|
|
6
6
|
runSkillSync
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-h7hfpmwa.js";
|
|
8
8
|
import"./cli-998n4kz9.js";
|
|
9
9
|
import {
|
|
10
10
|
buildDoctorReport
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-eq09n00v.js";
|
|
12
12
|
import {
|
|
13
13
|
ConnectCodeError,
|
|
14
14
|
connectWithCode,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
initPrompts,
|
|
21
21
|
runPromptSync
|
|
22
|
-
} from "./cli-
|
|
22
|
+
} from "./cli-xxpaq3n8.js";
|
|
23
23
|
import {
|
|
24
24
|
bundledSkillsDir,
|
|
25
25
|
installIntegrationSkill,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
runCodingAgent,
|
|
48
48
|
runHarnessCommand,
|
|
49
49
|
startRemoteAnalyze
|
|
50
|
-
} from "./cli-
|
|
50
|
+
} from "./cli-r2dxdhg8.js";
|
|
51
51
|
import {
|
|
52
52
|
canonicalText,
|
|
53
53
|
renderInitBanner,
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
renderInitNote,
|
|
56
56
|
renderInitSetupPlan,
|
|
57
57
|
renderInitStep
|
|
58
|
-
} from "./cli-
|
|
58
|
+
} from "./cli-rpyepjwb.js";
|
|
59
59
|
import {
|
|
60
60
|
stripAnsi
|
|
61
61
|
} from "./cli-97fnztpy.js";
|
|
@@ -63,7 +63,7 @@ import"./cli-krm4w2v9.js";
|
|
|
63
63
|
import {
|
|
64
64
|
createCommandContext
|
|
65
65
|
} from "./cli-13zdcv4w.js";
|
|
66
|
-
import"./cli-
|
|
66
|
+
import"./cli-2bhhk2nn.js";
|
|
67
67
|
import"./cli-e0kbye4s.js";
|
|
68
68
|
import"./cli-n9ng8mym.js";
|
|
69
69
|
import {
|
|
@@ -20,12 +20,12 @@ import {
|
|
|
20
20
|
serializeExtractResult,
|
|
21
21
|
toolNamesOf,
|
|
22
22
|
valueChildren
|
|
23
|
-
} from "./cli-
|
|
24
|
-
import"./cli-
|
|
23
|
+
} from "./cli-r2dxdhg8.js";
|
|
24
|
+
import"./cli-rpyepjwb.js";
|
|
25
25
|
import"./cli-97fnztpy.js";
|
|
26
26
|
import"./cli-krm4w2v9.js";
|
|
27
27
|
import"./cli-13zdcv4w.js";
|
|
28
|
-
import"./cli-
|
|
28
|
+
import"./cli-2bhhk2nn.js";
|
|
29
29
|
import"./cli-e0kbye4s.js";
|
|
30
30
|
import"./cli-n9ng8mym.js";
|
|
31
31
|
import"./cli-1nd4339b.js";
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
enumerateToolCatalog,
|
|
4
4
|
enumerateWorkflows,
|
|
5
5
|
mergeEnumeratedComponents
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-ekartfps.js";
|
|
7
7
|
import {
|
|
8
8
|
createAgentScopeResolver,
|
|
9
9
|
enumerateAgents
|
|
10
|
-
} from "./cli-
|
|
11
|
-
import"./cli-
|
|
10
|
+
} from "./cli-r2dxdhg8.js";
|
|
11
|
+
import"./cli-rpyepjwb.js";
|
|
12
12
|
import"./cli-97fnztpy.js";
|
|
13
13
|
import"./cli-krm4w2v9.js";
|
|
14
14
|
import"./cli-13zdcv4w.js";
|
|
15
|
-
import"./cli-
|
|
15
|
+
import"./cli-2bhhk2nn.js";
|
|
16
16
|
import"./cli-e0kbye4s.js";
|
|
17
17
|
import"./cli-n9ng8mym.js";
|
|
18
18
|
import"./cli-1nd4339b.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
inventoryFiles,
|
|
3
3
|
safePromptEvidencePath
|
|
4
|
-
} from "./cli-
|
|
5
|
-
import"./cli-
|
|
4
|
+
} from "./cli-r2dxdhg8.js";
|
|
5
|
+
import"./cli-rpyepjwb.js";
|
|
6
6
|
import"./cli-97fnztpy.js";
|
|
7
7
|
import"./cli-krm4w2v9.js";
|
|
8
8
|
import"./cli-13zdcv4w.js";
|
|
9
|
-
import"./cli-
|
|
9
|
+
import"./cli-2bhhk2nn.js";
|
|
10
10
|
import"./cli-e0kbye4s.js";
|
|
11
11
|
import"./cli-n9ng8mym.js";
|
|
12
12
|
import"./cli-1nd4339b.js";
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
checkPromptMapping,
|
|
4
4
|
discoverHarnessPromptSources,
|
|
5
5
|
safePromptEvidencePath
|
|
6
|
-
} from "./cli-
|
|
7
|
-
import"./cli-
|
|
6
|
+
} from "./cli-r2dxdhg8.js";
|
|
7
|
+
import"./cli-rpyepjwb.js";
|
|
8
8
|
import"./cli-97fnztpy.js";
|
|
9
9
|
import"./cli-krm4w2v9.js";
|
|
10
10
|
import"./cli-13zdcv4w.js";
|
|
11
|
-
import"./cli-
|
|
11
|
+
import"./cli-2bhhk2nn.js";
|
|
12
12
|
import"./cli-e0kbye4s.js";
|
|
13
13
|
import"./cli-n9ng8mym.js";
|
|
14
14
|
import"./cli-1nd4339b.js";
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
runPromptSync,
|
|
10
10
|
runPromptsCommand,
|
|
11
11
|
writePromptSyncProgress
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-xxpaq3n8.js";
|
|
13
13
|
import {
|
|
14
14
|
promptSourceHashPayload
|
|
15
15
|
} from "./cli-mm48br00.js";
|
|
16
16
|
import"./cli-764m5azg.js";
|
|
17
17
|
import"./cli-13zdcv4w.js";
|
|
18
|
-
import"./cli-
|
|
18
|
+
import"./cli-2bhhk2nn.js";
|
|
19
19
|
import"./cli-e0kbye4s.js";
|
|
20
20
|
import"./cli-n9ng8mym.js";
|
|
21
21
|
import"./cli-1nd4339b.js";
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
pullSkills,
|
|
4
4
|
runSkillSync,
|
|
5
5
|
runSkillsCommand
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-h7hfpmwa.js";
|
|
7
7
|
import"./cli-qm5b1vck.js";
|
|
8
8
|
import"./cli-rjav0vj1.js";
|
|
9
9
|
import"./cli-hcwdz9sd.js";
|
|
10
10
|
import"./cli-13zdcv4w.js";
|
|
11
|
-
import"./cli-
|
|
11
|
+
import"./cli-2bhhk2nn.js";
|
|
12
12
|
import"./cli-e0kbye4s.js";
|
|
13
13
|
import"./cli-n9ng8mym.js";
|
|
14
14
|
import"./cli-1nd4339b.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runSkillsCommand
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-h7hfpmwa.js";
|
|
4
4
|
import {
|
|
5
5
|
runPromptsCommand
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-xxpaq3n8.js";
|
|
7
7
|
import"./cli-qm5b1vck.js";
|
|
8
8
|
import"./cli-rjav0vj1.js";
|
|
9
9
|
import"./cli-hcwdz9sd.js";
|
|
@@ -11,12 +11,12 @@ import"./cli-mm48br00.js";
|
|
|
11
11
|
import"./cli-764m5azg.js";
|
|
12
12
|
import {
|
|
13
13
|
runHarnessCommand
|
|
14
|
-
} from "./cli-
|
|
15
|
-
import"./cli-
|
|
14
|
+
} from "./cli-r2dxdhg8.js";
|
|
15
|
+
import"./cli-rpyepjwb.js";
|
|
16
16
|
import"./cli-97fnztpy.js";
|
|
17
17
|
import"./cli-krm4w2v9.js";
|
|
18
18
|
import"./cli-13zdcv4w.js";
|
|
19
|
-
import"./cli-
|
|
19
|
+
import"./cli-2bhhk2nn.js";
|
|
20
20
|
import"./cli-e0kbye4s.js";
|
|
21
21
|
import"./cli-n9ng8mym.js";
|
|
22
22
|
import"./cli-1nd4339b.js";
|
package/package.json
CHANGED