@moda-ai/cli 1.55.146 → 1.55.148
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-4hhnz80x.js → agent-wwmwp9mt.js} +8 -8
- package/dist/{change-impact-cqe813jv.js → change-impact-6x1z046p.js} +5 -5
- package/dist/{cli-e9fbqcmw.js → cli-0gtfbh57.js} +2 -3
- package/dist/{cli-g2yt5hqj.js → cli-1dcc684x.js} +12 -22
- package/dist/{cli-4fv2pthb.js → cli-331t1p3c.js} +1 -1
- package/dist/{cli-je1hfmvv.js → cli-4bcvdkwz.js} +13 -13
- package/dist/{cli-8zs1h8fp.js → cli-574b6cbr.js} +6 -6
- package/dist/{cli-bh28xd19.js → cli-a66x9ze6.js} +6 -6
- package/dist/{cli-zjcmwdth.js → cli-erpwkg87.js} +1 -1
- package/dist/{cli-bevt4ysp.js → cli-fsnzyqje.js} +3 -3
- package/dist/{cli-kjvyvq4a.js → cli-fwscar49.js} +5 -5
- package/dist/{cli-ezcpsapd.js → cli-jc9gdwgp.js} +1 -1
- package/dist/{cli-mnhevv08.js → cli-nwwfqgbj.js} +1 -1
- package/dist/{cli-wkg8bwhs.js → cli-qdfz3p5k.js} +3 -3
- package/dist/{cli-d7039574.js → cli-t48q3cx4.js} +1 -1
- package/dist/{cli-bd38by3f.js → cli-zwgh9h9c.js} +1 -4
- package/dist/cli.js +24 -61
- package/dist/{doctor-qkvw53c6.js → doctor-za483wxn.js} +7 -7
- package/dist/{harness-ra7mcjkx.js → harness-5d3fnewd.js} +5 -5
- package/dist/{harness-github-actions-dxave4sw.js → harness-github-actions-pmsw1dcg.js} +5 -5
- package/dist/{index-nx002wq4.js → index-74tbed31.js} +6 -6
- package/dist/{index-0byf2g3b.js → index-q8gp0gz8.js} +5 -5
- package/dist/{index-wz0dtzw8.js → index-rhescwf6.js} +10 -10
- package/dist/{production-intelligence-h9yqwqzm.js → production-intelligence-2dd5cbs4.js} +3 -3
- package/dist/{profile-commands-f7n798cf.js → profile-commands-3bxbsgwn.js} +4 -4
- package/dist/{prompt-attribution-zczfker9.js → prompt-attribution-r2a07rjp.js} +5 -5
- package/dist/prompt-source-mcp.js +5 -5
- package/dist/{prompts-16pzrz65.js → prompts-rd7fxz2r.js} +5 -5
- package/dist/{provision-jjen0rfn.js → provision-xt1pw7zv.js} +5 -5
- package/dist/{registry-hvgqw45r.js → registry-h9mbgs9e.js} +3 -3
- package/dist/{skills-p0bk6cnn.js → skills-d2tb8e10.js} +5 -5
- package/dist/{sync-ma4z3q96.js → sync-g3twbgv8.js} +7 -7
- package/package.json +1 -1
- package/skills/integration/index.json +2 -2
- package/skills/moda-cli/references/commands.md +1 -1
- package/skills/moda-cli/references/dashboard-parity.md +0 -1
- package/skills/moda-cli/references/output-protocol.md +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildDoctorReport
|
|
3
|
-
} from "./cli-
|
|
4
|
-
import"./cli-
|
|
5
|
-
import"./cli-
|
|
3
|
+
} from "./cli-fwscar49.js";
|
|
4
|
+
import"./cli-331t1p3c.js";
|
|
5
|
+
import"./cli-a66x9ze6.js";
|
|
6
6
|
import"./cli-mm48br00.js";
|
|
7
7
|
import"./cli-764m5azg.js";
|
|
8
8
|
import {
|
|
@@ -16,16 +16,16 @@ import {
|
|
|
16
16
|
readHarnessReport,
|
|
17
17
|
validateHarnessReport
|
|
18
18
|
} from "./cli-krm4w2v9.js";
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
19
|
+
import"./cli-nwwfqgbj.js";
|
|
20
|
+
import"./cli-1dcc684x.js";
|
|
21
21
|
import"./cli-e0kbye4s.js";
|
|
22
|
-
import"./cli-
|
|
22
|
+
import"./cli-jc9gdwgp.js";
|
|
23
23
|
import {
|
|
24
24
|
resolveApiKey,
|
|
25
25
|
resolveIngestUrl,
|
|
26
26
|
resolveModaBaseUrl,
|
|
27
27
|
resolveTenantId
|
|
28
|
-
} from "./cli-
|
|
28
|
+
} from "./cli-zwgh9h9c.js";
|
|
29
29
|
import {
|
|
30
30
|
CliInputError
|
|
31
31
|
} from "./cli-k4tqwah4.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-5d3fnewd.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,17 +11,17 @@ import {
|
|
|
11
11
|
resolvedSymbol,
|
|
12
12
|
returnExpressions,
|
|
13
13
|
valueDeclaration
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-4bcvdkwz.js";
|
|
15
15
|
import"./cli-jkv3y2bj.js";
|
|
16
16
|
import"./cli-97fnztpy.js";
|
|
17
17
|
import {
|
|
18
18
|
detectBoundRuntimeClasses
|
|
19
19
|
} from "./cli-krm4w2v9.js";
|
|
20
|
-
import"./cli-
|
|
21
|
-
import"./cli-
|
|
20
|
+
import"./cli-nwwfqgbj.js";
|
|
21
|
+
import"./cli-1dcc684x.js";
|
|
22
22
|
import"./cli-e0kbye4s.js";
|
|
23
|
-
import"./cli-
|
|
24
|
-
import"./cli-
|
|
23
|
+
import"./cli-jc9gdwgp.js";
|
|
24
|
+
import"./cli-zwgh9h9c.js";
|
|
25
25
|
import"./cli-k4tqwah4.js";
|
|
26
26
|
import {
|
|
27
27
|
require_typescript
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./cli-e0kbye4s.js";
|
|
4
4
|
import {
|
|
5
5
|
callDataAPI
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-jc9gdwgp.js";
|
|
7
7
|
import {
|
|
8
8
|
shellArg
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-zwgh9h9c.js";
|
|
10
10
|
import {
|
|
11
11
|
CliInputError
|
|
12
12
|
} from "./cli-k4tqwah4.js";
|
|
@@ -350,7 +350,6 @@ var PROBLEM_COMPACT_OMITTED_BLOCKS = [
|
|
|
350
350
|
"sub_problems",
|
|
351
351
|
"affected_conversations",
|
|
352
352
|
"remainder",
|
|
353
|
-
"confidence",
|
|
354
353
|
"change_history",
|
|
355
354
|
"stories"
|
|
356
355
|
];
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
ApiError,
|
|
3
3
|
callControlAPI,
|
|
4
4
|
callDataAPI
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-jc9gdwgp.js";
|
|
6
6
|
import {
|
|
7
7
|
continuationCommand,
|
|
8
8
|
embeddedTenantIdFromApiKey,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
resolveApiTenantId,
|
|
12
12
|
setPlatformTenantOverride,
|
|
13
13
|
shellArg
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-zwgh9h9c.js";
|
|
15
15
|
import {
|
|
16
16
|
CliAccessError,
|
|
17
17
|
CliInputError
|
|
@@ -174,20 +174,6 @@ var ProblemsSchema = z.object({
|
|
|
174
174
|
dir: z.enum(["desc", "asc"]).optional().describe("Sort direction (default desc)"),
|
|
175
175
|
cohort: cohortFlag("Only the Problems this cohort hit (builtin:<key> or a saved cohort id), with its counts")
|
|
176
176
|
});
|
|
177
|
-
var REMAINDER_FAMILIES = [
|
|
178
|
-
"tool_failure",
|
|
179
|
-
"emotion",
|
|
180
|
-
"laziness",
|
|
181
|
-
"hallucination",
|
|
182
|
-
"custom_signal",
|
|
183
|
-
"conversation_reader"
|
|
184
|
-
];
|
|
185
|
-
var ProblemsRemainderSchema = z.object({
|
|
186
|
-
days_back: daysBackFlag(30),
|
|
187
|
-
limit: z.number().int().min(1).max(25).default(25).optional().describe("Maximum groups to return"),
|
|
188
|
-
family: z.enum(REMAINDER_FAMILIES).optional().describe("Only this signal family (frustration is under emotion)"),
|
|
189
|
-
cursor: z.string().min(1).max(4096).optional().describe("next_cursor from the previous page, verbatim")
|
|
190
|
-
});
|
|
191
177
|
var UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
192
178
|
var ProblemImpactSchema = z.object({
|
|
193
179
|
node_id: z.string().min(1).max(256).optional().describe("Use case (cluster node) id"),
|
|
@@ -212,7 +198,14 @@ var ProblemImpactSchema = z.object({
|
|
|
212
198
|
}).refine((p) => !p.cursor || p.mode === "evidence" && p.to && p.run_id, {
|
|
213
199
|
message: "An evidence cursor requires --mode=evidence, --to, and --run-id from the previous response"
|
|
214
200
|
});
|
|
215
|
-
var PROBLEM_FAMILIES =
|
|
201
|
+
var PROBLEM_FAMILIES = [
|
|
202
|
+
"tool_failure",
|
|
203
|
+
"emotion",
|
|
204
|
+
"laziness",
|
|
205
|
+
"hallucination",
|
|
206
|
+
"custom_signal",
|
|
207
|
+
"conversation_reader"
|
|
208
|
+
];
|
|
216
209
|
var PROBLEM_DOORS = ["rubric_match", "local_causal_chain"];
|
|
217
210
|
var ProblemSchema = z.object({
|
|
218
211
|
id: z.string().min(1).describe("Problem id"),
|
|
@@ -730,10 +723,7 @@ var COMMAND_FLAG_SPECS = {
|
|
|
730
723
|
"tool-failure-detail": { schema: ToolFailureDetailSchema, positionals: [{ name: "tool_name", key: "tool_name", required: true }] },
|
|
731
724
|
"tool-catalog": { schema: ToolCatalogSchema },
|
|
732
725
|
"tool-catalog-detail": { schema: ToolCatalogDetailSchema, positionals: [{ name: "tool_name", key: "tool_name", required: true }] },
|
|
733
|
-
problems: {
|
|
734
|
-
schema: ProblemsSchema,
|
|
735
|
-
subcommands: { remainder: { schema: ProblemsRemainderSchema } }
|
|
736
|
-
},
|
|
726
|
+
problems: { schema: ProblemsSchema },
|
|
737
727
|
"problem-impact": { schema: ProblemImpactSchema, handParsed: true },
|
|
738
728
|
problem: { schema: ProblemSchema, positionals: [PROBLEM_ID] },
|
|
739
729
|
"problem-feedback": { schema: ProblemFeedbackSchema, extra: DRY_RUN, handParsed: true, positionals: [PROBLEM_ID] },
|
|
@@ -1651,4 +1641,4 @@ function unknownSignalsSubcommandError(sub, args = []) {
|
|
|
1651
1641
|
${SIGNAL_USAGE}`);
|
|
1652
1642
|
}
|
|
1653
1643
|
|
|
1654
|
-
export { CLUSTER_COHORT_TIME_RANGES, TRACE_GRAIN_FLAGS, MAX_CONVERSATION_IDS_FILTER, BOOK_PROBLEM_SORTS, DREAM_PROBLEM_SORTS, PROBLEMS_MAX_LIMIT, PROBLEMS_DEFAULT_LIMIT,
|
|
1644
|
+
export { CLUSTER_COHORT_TIME_RANGES, TRACE_GRAIN_FLAGS, MAX_CONVERSATION_IDS_FILTER, BOOK_PROBLEM_SORTS, DREAM_PROBLEM_SORTS, PROBLEMS_MAX_LIMIT, PROBLEMS_DEFAULT_LIMIT, 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 };
|
|
@@ -39,19 +39,19 @@ import {
|
|
|
39
39
|
import {
|
|
40
40
|
createCommandContext,
|
|
41
41
|
stringOption
|
|
42
|
-
} from "./cli-
|
|
42
|
+
} from "./cli-nwwfqgbj.js";
|
|
43
43
|
import {
|
|
44
44
|
assertFlags,
|
|
45
45
|
assertPositionals,
|
|
46
46
|
requireTenant
|
|
47
|
-
} from "./cli-
|
|
47
|
+
} from "./cli-1dcc684x.js";
|
|
48
48
|
import {
|
|
49
49
|
parseBooleanFlagValue
|
|
50
50
|
} from "./cli-e0kbye4s.js";
|
|
51
51
|
import {
|
|
52
52
|
ApiError,
|
|
53
53
|
callControlAPI
|
|
54
|
-
} from "./cli-
|
|
54
|
+
} from "./cli-jc9gdwgp.js";
|
|
55
55
|
import {
|
|
56
56
|
EXIT_DEGRADED,
|
|
57
57
|
PLATFORM_API_KEY_PREFIX,
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
resolveModaBaseUrl,
|
|
64
64
|
resolveTenantId,
|
|
65
65
|
shellArg
|
|
66
|
-
} from "./cli-
|
|
66
|
+
} from "./cli-zwgh9h9c.js";
|
|
67
67
|
import {
|
|
68
68
|
CliInputError,
|
|
69
69
|
CliInputRequiredError
|
|
@@ -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-
|
|
21021
|
+
const { runSkeletonCommand } = await import("./cli-574b6cbr.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-
|
|
21033
|
+
const { localChangeImpact, readRecordedImpactCalls } = await import("./change-impact-6x1z046p.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-
|
|
21305
|
+
const { runGithubActionsAnalyze } = await import("./harness-github-actions-pmsw1dcg.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-
|
|
21457
|
-
const { enumerateHarnessComponents, mergeEnumeratedComponents } = await import("./index-
|
|
21456
|
+
const { extractHarnessWithContext: extractHarnessWithContext2 } = await import("./index-q8gp0gz8.js");
|
|
21457
|
+
const { enumerateHarnessComponents, mergeEnumeratedComponents } = await import("./index-74tbed31.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-
|
|
21530
|
-
const { enumerateHarnessComponents, mergeEnumeratedComponents } = await import("./index-
|
|
21529
|
+
const { extractHarnessWithContext: extractHarnessWithContext2, serializeExtractResult } = await import("./index-q8gp0gz8.js");
|
|
21530
|
+
const { enumerateHarnessComponents, mergeEnumeratedComponents } = await import("./index-74tbed31.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-
|
|
22438
|
-
const { enumerateHarnessComponents, mergeEnumeratedComponents } = await import("./index-
|
|
22437
|
+
const { extractHarnessWithContext: extractHarnessWithContext2 } = await import("./index-q8gp0gz8.js");
|
|
22438
|
+
const { enumerateHarnessComponents, mergeEnumeratedComponents } = await import("./index-74tbed31.js");
|
|
22439
22439
|
const { result, ctx } = extractHarnessWithContext2(rootDir);
|
|
22440
22440
|
const items = deterministicGraphItems(rootDir);
|
|
22441
22441
|
const components = mergeEnumeratedComponents(items.artifacts, enumerateHarnessComponents(result, ctx));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
enumerateToolCatalog,
|
|
3
3
|
enumerateWorkflows
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-erpwkg87.js";
|
|
5
5
|
import {
|
|
6
6
|
require_out
|
|
7
7
|
} from "./cli-764m5azg.js";
|
|
@@ -34,21 +34,21 @@ import {
|
|
|
34
34
|
unwrap,
|
|
35
35
|
valueDeclaration,
|
|
36
36
|
visit
|
|
37
|
-
} from "./cli-
|
|
37
|
+
} from "./cli-4bcvdkwz.js";
|
|
38
38
|
import"./cli-jkv3y2bj.js";
|
|
39
39
|
import"./cli-97fnztpy.js";
|
|
40
40
|
import {
|
|
41
41
|
detectBoundRuntimeClasses,
|
|
42
42
|
isTestWorkerConfig
|
|
43
43
|
} from "./cli-krm4w2v9.js";
|
|
44
|
-
import"./cli-
|
|
45
|
-
import"./cli-
|
|
44
|
+
import"./cli-nwwfqgbj.js";
|
|
45
|
+
import"./cli-1dcc684x.js";
|
|
46
46
|
import"./cli-e0kbye4s.js";
|
|
47
|
-
import"./cli-
|
|
47
|
+
import"./cli-jc9gdwgp.js";
|
|
48
48
|
import {
|
|
49
49
|
EXIT_DEGRADED,
|
|
50
50
|
VERSION
|
|
51
|
-
} from "./cli-
|
|
51
|
+
} from "./cli-zwgh9h9c.js";
|
|
52
52
|
import {
|
|
53
53
|
CliInputError
|
|
54
54
|
} from "./cli-k4tqwah4.js";
|
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
} from "./cli-764m5azg.js";
|
|
8
8
|
import {
|
|
9
9
|
createCommandContext
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-nwwfqgbj.js";
|
|
11
11
|
import {
|
|
12
12
|
assertFlags,
|
|
13
13
|
assertPositionals
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-1dcc684x.js";
|
|
15
15
|
import {
|
|
16
16
|
callControlAPI
|
|
17
|
-
} from "./cli-
|
|
17
|
+
} from "./cli-jc9gdwgp.js";
|
|
18
18
|
import {
|
|
19
19
|
CliInputError
|
|
20
20
|
} from "./cli-k4tqwah4.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-5d3fnewd.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-r2a07rjp.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-5d3fnewd.js");
|
|
608
608
|
const result = await analyzeHarnessPrompts({
|
|
609
609
|
rootDir: root,
|
|
610
610
|
existing: manifest.sources,
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
} from "./cli-2fv0q9tx.js";
|
|
4
4
|
import {
|
|
5
5
|
createCommandContext
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-nwwfqgbj.js";
|
|
7
7
|
import {
|
|
8
8
|
assertFlags,
|
|
9
9
|
assertPositionals
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-1dcc684x.js";
|
|
11
11
|
import {
|
|
12
12
|
callControlAPI
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-jc9gdwgp.js";
|
|
14
14
|
import {
|
|
15
15
|
CliInputError
|
|
16
16
|
} from "./cli-k4tqwah4.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isAuthSessionValid,
|
|
3
3
|
loadAuthSession
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-331t1p3c.js";
|
|
5
5
|
import {
|
|
6
6
|
inspectPromptManifest
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-a66x9ze6.js";
|
|
8
8
|
import {
|
|
9
9
|
readHarnessSyncState,
|
|
10
10
|
renderDoctorHuman,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./cli-jkv3y2bj.js";
|
|
13
13
|
import {
|
|
14
14
|
callDataAPI
|
|
15
|
-
} from "./cli-
|
|
15
|
+
} from "./cli-jc9gdwgp.js";
|
|
16
16
|
import {
|
|
17
17
|
describeModaBaseUrl,
|
|
18
18
|
ensureSecretFilePermissions,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
resolveSecretReference,
|
|
28
28
|
resolveTenantId,
|
|
29
29
|
secretFilePathFromRef
|
|
30
|
-
} from "./cli-
|
|
30
|
+
} from "./cli-zwgh9h9c.js";
|
|
31
31
|
import {
|
|
32
32
|
__require
|
|
33
33
|
} from "./cli-0v6na3yp.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-
|
|
396
|
+
const { scanHarness } = await import("./harness-5d3fnewd.js");
|
|
397
397
|
const current = scanHarness({
|
|
398
398
|
rootDir: cwd,
|
|
399
399
|
scannerVersion: "doctor",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetchApiKeyProbe
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-t48q3cx4.js";
|
|
4
4
|
import {
|
|
5
5
|
authFetch,
|
|
6
6
|
getCachedLoginContext
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-331t1p3c.js";
|
|
8
8
|
import {
|
|
9
9
|
embeddedTenantIdFromApiKey,
|
|
10
10
|
getModaDir,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
resolveTenantIdFromActiveProfile,
|
|
16
16
|
saveCliConfig,
|
|
17
17
|
writeSecretJsonFile
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-zwgh9h9c.js";
|
|
19
19
|
import {
|
|
20
20
|
CliAccessError,
|
|
21
21
|
CliInputError,
|
|
@@ -749,7 +749,6 @@ var LEGACY_NAMES = [
|
|
|
749
749
|
{ legacy: "trace", use: "moda traces spans <conversation_id|trace_id>", canonical: { command: "traces", subcommand: "spans" } },
|
|
750
750
|
{ legacy: "trace-findings", use: "moda traces findings <conversation_id>", canonical: { command: "traces", subcommand: "findings" }, silent: true },
|
|
751
751
|
{ legacy: "problem", use: "moda problems get <problem_id>", canonical: { command: "problems", subcommand: "get" } },
|
|
752
|
-
{ legacy: "problems remainder", use: "moda problems unexplained", canonical: { command: "problems", subcommand: "unexplained" } },
|
|
753
752
|
{ legacy: "problem-impact", use: "moda problems impact", canonical: { command: "problems", subcommand: "impact" } },
|
|
754
753
|
{ legacy: "problem-feedback", use: "moda problems feedback <problem_id>", canonical: { command: "problems", subcommand: "feedback" } },
|
|
755
754
|
{ legacy: "problem-reopen", use: "moda problems reopen <problem_id>", canonical: { command: "problems", subcommand: "reopen" } },
|
|
@@ -2012,9 +2011,7 @@ var PAGED_LIST_BY_COMMAND = {
|
|
|
2012
2011
|
emotions: ["detections", "traces"],
|
|
2013
2012
|
frustrations: ["frustrations", "traces"],
|
|
2014
2013
|
laziness: "conversations",
|
|
2015
|
-
problems: ["problems", "untrusted"]
|
|
2016
|
-
"problems remainder": "groups",
|
|
2017
|
-
"problem remainder": "groups"
|
|
2014
|
+
problems: ["problems", "untrusted"]
|
|
2018
2015
|
};
|
|
2019
2016
|
function pagedListsFor(invocation) {
|
|
2020
2017
|
const { command, positionals } = invocation.routedAs ?? invocation;
|
package/dist/cli.js
CHANGED
|
@@ -26,10 +26,10 @@ import {
|
|
|
26
26
|
withSummaryCompare,
|
|
27
27
|
withToolFailureAnchors,
|
|
28
28
|
withoutDetectionWindows
|
|
29
|
-
} from "./cli-
|
|
29
|
+
} from "./cli-0gtfbh57.js";
|
|
30
30
|
import {
|
|
31
31
|
createCommandContext
|
|
32
|
-
} from "./cli-
|
|
32
|
+
} from "./cli-nwwfqgbj.js";
|
|
33
33
|
import {
|
|
34
34
|
AuditSchema,
|
|
35
35
|
BOOK_PROBLEM_SORTS,
|
|
@@ -50,7 +50,6 @@ import {
|
|
|
50
50
|
ProblemFeedbackSchema,
|
|
51
51
|
ProblemImpactSchema,
|
|
52
52
|
ProblemLinearFileSchema,
|
|
53
|
-
ProblemsRemainderSchema,
|
|
54
53
|
SIGNALS_MANAGEMENT_SUBCOMMANDS,
|
|
55
54
|
SignalLabelSchema,
|
|
56
55
|
TRACE_GRAIN_FLAGS,
|
|
@@ -77,7 +76,7 @@ import {
|
|
|
77
76
|
unknownSignalsSubcommandError,
|
|
78
77
|
usageLine,
|
|
79
78
|
writeDryRun
|
|
80
|
-
} from "./cli-
|
|
79
|
+
} from "./cli-1dcc684x.js";
|
|
81
80
|
import {
|
|
82
81
|
envOptOutSet,
|
|
83
82
|
envSwitchedOff,
|
|
@@ -88,7 +87,7 @@ import {
|
|
|
88
87
|
import {
|
|
89
88
|
ApiError,
|
|
90
89
|
callDataAPI
|
|
91
|
-
} from "./cli-
|
|
90
|
+
} from "./cli-jc9gdwgp.js";
|
|
92
91
|
import {
|
|
93
92
|
AGENT_ERROR_CODES,
|
|
94
93
|
EXIT_AUTH_REQUIRED,
|
|
@@ -121,7 +120,7 @@ import {
|
|
|
121
120
|
shellArg,
|
|
122
121
|
validateConfig,
|
|
123
122
|
wasOutputCancelled
|
|
124
|
-
} from "./cli-
|
|
123
|
+
} from "./cli-zwgh9h9c.js";
|
|
125
124
|
import {
|
|
126
125
|
CliAccessError,
|
|
127
126
|
CliAuthError,
|
|
@@ -1258,16 +1257,6 @@ var CANONICAL_LEAVES = [
|
|
|
1258
1257
|
summary: "One Problem: dossier, its --evidence/--reports/--traces/--feedback pages, or --view=dream",
|
|
1259
1258
|
examples: ["moda problems get <problem_id>", "moda problems get <problem_id> --view=dream", "moda problems get <problem_id> --evidence --limit=10", "moda problems get <problem_id> --traces --family=tool_failure", "moda problems get <problem_id> --trend --days-back=14"]
|
|
1260
1259
|
},
|
|
1261
|
-
{
|
|
1262
|
-
noun: "problems",
|
|
1263
|
-
verb: "unexplained",
|
|
1264
|
-
path: "problems unexplained",
|
|
1265
|
-
args: "",
|
|
1266
|
-
handler: "problems",
|
|
1267
|
-
handlerSubcommand: "remainder",
|
|
1268
|
-
summary: "Signals no Problem explains yet, grouped by family",
|
|
1269
|
-
examples: ["moda problems unexplained --family=emotion --days-back=7"]
|
|
1270
|
-
},
|
|
1271
1260
|
{
|
|
1272
1261
|
noun: "problems",
|
|
1273
1262
|
verb: "impact",
|
|
@@ -1807,8 +1796,6 @@ function leafHandlers(leaf) {
|
|
|
1807
1796
|
function leafFlagSpec(leaf) {
|
|
1808
1797
|
if (!leaf.handler)
|
|
1809
1798
|
return;
|
|
1810
|
-
if (leaf.path === "problems unexplained")
|
|
1811
|
-
return COMMAND_FLAG_SPECS.problems.subcommands.remainder;
|
|
1812
1799
|
return flagSpecFor(leaf.handler);
|
|
1813
1800
|
}
|
|
1814
1801
|
|
|
@@ -3038,40 +3025,40 @@ function leafManifestFields(leaf, commands) {
|
|
|
3038
3025
|
import { fileURLToPath } from "url";
|
|
3039
3026
|
import { realpathSync } from "fs";
|
|
3040
3027
|
async function runPromptsCommand(...args) {
|
|
3041
|
-
return (await import("./prompts-
|
|
3028
|
+
return (await import("./prompts-rd7fxz2r.js")).runPromptsCommand(...args);
|
|
3042
3029
|
}
|
|
3043
3030
|
async function runSkillsCommand(...args) {
|
|
3044
|
-
return (await import("./skills-
|
|
3031
|
+
return (await import("./skills-d2tb8e10.js")).runSkillsCommand(...args);
|
|
3045
3032
|
}
|
|
3046
3033
|
async function runHarnessCommand(...args) {
|
|
3047
|
-
return (await import("./harness-
|
|
3034
|
+
return (await import("./harness-5d3fnewd.js")).runHarnessCommand(...args);
|
|
3048
3035
|
}
|
|
3049
3036
|
async function runSyncCommand(...args) {
|
|
3050
|
-
return (await import("./sync-
|
|
3037
|
+
return (await import("./sync-g3twbgv8.js")).runSyncCommand(...args);
|
|
3051
3038
|
}
|
|
3052
3039
|
async function runRegistryCommand(...args) {
|
|
3053
|
-
return (await import("./registry-
|
|
3040
|
+
return (await import("./registry-h9mbgs9e.js")).runRegistryCommand(...args);
|
|
3054
3041
|
}
|
|
3055
3042
|
async function runDoctorCommand(...args) {
|
|
3056
|
-
return (await import("./doctor-
|
|
3043
|
+
return (await import("./doctor-za483wxn.js")).runDoctorCommand(...args);
|
|
3057
3044
|
}
|
|
3058
3045
|
async function runStatusCommand(...args) {
|
|
3059
|
-
return (await import("./doctor-
|
|
3046
|
+
return (await import("./doctor-za483wxn.js")).runStatusCommand(...args);
|
|
3060
3047
|
}
|
|
3061
3048
|
async function runAuthCommand(...args) {
|
|
3062
|
-
return (await import("./profile-commands-
|
|
3049
|
+
return (await import("./profile-commands-3bxbsgwn.js")).runAuthCommand(...args);
|
|
3063
3050
|
}
|
|
3064
3051
|
async function runConfigCommand(...args) {
|
|
3065
|
-
return (await import("./profile-commands-
|
|
3052
|
+
return (await import("./profile-commands-3bxbsgwn.js")).runConfigCommand(...args);
|
|
3066
3053
|
}
|
|
3067
3054
|
async function runProfilesCommand(...args) {
|
|
3068
|
-
return (await import("./profile-commands-
|
|
3055
|
+
return (await import("./profile-commands-3bxbsgwn.js")).runProfilesCommand(...args);
|
|
3069
3056
|
}
|
|
3070
3057
|
async function runAgentCommand(...args) {
|
|
3071
|
-
return (await import("./agent-
|
|
3058
|
+
return (await import("./agent-wwmwp9mt.js")).runAgentCommand(...args);
|
|
3072
3059
|
}
|
|
3073
3060
|
async function runProductionCommand(...args) {
|
|
3074
|
-
return (await import("./production-intelligence-
|
|
3061
|
+
return (await import("./production-intelligence-2dd5cbs4.js")).runProductionCommand(...args);
|
|
3075
3062
|
}
|
|
3076
3063
|
function parseArgs(argv) {
|
|
3077
3064
|
const args = argv.slice(2);
|
|
@@ -3205,7 +3192,7 @@ function parseHandlersFor(command, verb) {
|
|
|
3205
3192
|
if (CANONICAL_NOUNS.includes(command) && verb !== undefined) {
|
|
3206
3193
|
const leaf = leafFor(command, verb);
|
|
3207
3194
|
if (leaf)
|
|
3208
|
-
return
|
|
3195
|
+
return leafHandlers(leaf);
|
|
3209
3196
|
}
|
|
3210
3197
|
return [commandRegistry.find(command)?.name ?? command];
|
|
3211
3198
|
}
|
|
@@ -4203,8 +4190,8 @@ var WINDOW_FLAG_HINTS = {
|
|
|
4203
4190
|
};
|
|
4204
4191
|
var COMMAND_FLAG_HINTS = {
|
|
4205
4192
|
problems: {
|
|
4206
|
-
family: "'moda problems' ranks every family together. To filter by family use 'moda problems
|
|
4207
|
-
cursor: "'moda problems list' pages with --offset=<next_offset> --list-version=<list_version
|
|
4193
|
+
family: "'moda problems' ranks every family together. To filter by family use 'moda problems get <problem_id> --traces --family=<family>' (one Problem's traces).",
|
|
4194
|
+
cursor: "'moda problems list' pages with --offset=<next_offset> --list-version=<list_version>."
|
|
4208
4195
|
}
|
|
4209
4196
|
};
|
|
4210
4197
|
function parseCommandFlags(schema, args, command, options = {}) {
|
|
@@ -4513,8 +4500,6 @@ function assertPositionalArity(command, positionals) {
|
|
|
4513
4500
|
return;
|
|
4514
4501
|
if (BATCH_POSITIONAL_COMMANDS.has(command))
|
|
4515
4502
|
return;
|
|
4516
|
-
if (command === "problem" && positionals[0] === "remainder")
|
|
4517
|
-
return;
|
|
4518
4503
|
if (positionals.length <= expected.length)
|
|
4519
4504
|
return;
|
|
4520
4505
|
const extra = positionals.slice(expected.length);
|
|
@@ -4565,20 +4550,6 @@ function normalizeBooleanFlags(target) {
|
|
|
4565
4550
|
return error;
|
|
4566
4551
|
}
|
|
4567
4552
|
var PROFILE_MANAGING_COMMANDS = new Set(["profiles", "auth", "init", "provision", "status", "config", "manifest", "agent", "doctor"]);
|
|
4568
|
-
async function runProblemsRemainder(flags, context) {
|
|
4569
|
-
const params = parseCommandFlags(ProblemsRemainderSchema, flagsToArgs(flags), "problems remainder", specParseOptions(COMMAND_FLAG_SPECS.problems.subcommands.remainder));
|
|
4570
|
-
const query = new URLSearchParams;
|
|
4571
|
-
if (params.days_back)
|
|
4572
|
-
query.set("days_back", params.days_back.toString());
|
|
4573
|
-
if (params.limit)
|
|
4574
|
-
query.set("limit", params.limit.toString());
|
|
4575
|
-
if (params.family)
|
|
4576
|
-
query.set("family", params.family);
|
|
4577
|
-
if (params.cursor)
|
|
4578
|
-
query.set("cursor", params.cursor);
|
|
4579
|
-
const queryString = query.toString() ? `?${query.toString()}` : "";
|
|
4580
|
-
context.output.writeData(await callDataAPI(`/problems/remainder${queryString}`));
|
|
4581
|
-
}
|
|
4582
4553
|
var isDreamOnlySort = (sort) => sort === "severity" || sort === "silent";
|
|
4583
4554
|
var isBookOnlySort = (sort) => sort === "signals" || sort === "problems" || (sort?.startsWith("signal:") ?? false);
|
|
4584
4555
|
function problemsListCommand(params, view, page, daysGiven) {
|
|
@@ -6072,21 +6043,13 @@ async function runCommand(command, positional, flags, positionals = positional ?
|
|
|
6072
6043
|
break;
|
|
6073
6044
|
}
|
|
6074
6045
|
case "problems": {
|
|
6075
|
-
if (positional === "remainder") {
|
|
6076
|
-
await runProblemsRemainder(flags, context);
|
|
6077
|
-
break;
|
|
6078
|
-
}
|
|
6079
6046
|
if (positional) {
|
|
6080
|
-
throw new CliInputError(`Unknown problems subcommand '${positional}'.`, "Usage: moda problems list [--view=auto|book|dream] [--days-back=N] [--limit=N] [--offset=N --list-version=V] [--sort=S] [--cohort=REF]
|
|
6047
|
+
throw new CliInputError(`Unknown problems subcommand '${positional}'.`, "Usage: moda problems list [--view=auto|book|dream] [--days-back=N] [--limit=N] [--offset=N --list-version=V] [--sort=S] [--cohort=REF]. For one Problem use 'moda problems get <id>'.");
|
|
6081
6048
|
}
|
|
6082
6049
|
await runProblemsList(flags, context, command);
|
|
6083
6050
|
break;
|
|
6084
6051
|
}
|
|
6085
6052
|
case "problem": {
|
|
6086
|
-
if (positional === "remainder") {
|
|
6087
|
-
await runProblemsRemainder(flags, context);
|
|
6088
|
-
break;
|
|
6089
|
-
}
|
|
6090
6053
|
if (!positional) {
|
|
6091
6054
|
throw new CliInputError("<problem_id> is required", "Usage: moda problems get <problem_id> [--full | --evidence|--reports|--traces|--feedback] [--limit=N] [--cursor=TOKEN] [--family=F] [--door=D]");
|
|
6092
6055
|
}
|
|
@@ -6784,7 +6747,7 @@ var commandRegistry = createCommandRegistry([
|
|
|
6784
6747
|
resetApiRequestCountBeforeRun: true,
|
|
6785
6748
|
telemetry: "result-and-error",
|
|
6786
6749
|
handler: async (context) => {
|
|
6787
|
-
const { runInit } = await import("./index-
|
|
6750
|
+
const { runInit } = await import("./index-rhescwf6.js");
|
|
6788
6751
|
if (context.outputMode === "agent-stream") {
|
|
6789
6752
|
context.output.writeEvent({
|
|
6790
6753
|
event: "started",
|
|
@@ -6834,7 +6797,7 @@ var commandRegistry = createCommandRegistry([
|
|
|
6834
6797
|
resetApiRequestCountBeforeRun: true,
|
|
6835
6798
|
telemetry: "result-and-error",
|
|
6836
6799
|
handler: async (context) => {
|
|
6837
|
-
const { runProvision } = await import("./provision-
|
|
6800
|
+
const { runProvision } = await import("./provision-xt1pw7zv.js");
|
|
6838
6801
|
return runProvision(context, {
|
|
6839
6802
|
resumeCommand: buildResumeCommand("provision", context.rawFlags)
|
|
6840
6803
|
});
|
|
@@ -7377,7 +7340,7 @@ var commandRegistry = createCommandRegistry([
|
|
|
7377
7340
|
legacyCommand({
|
|
7378
7341
|
name: "problems",
|
|
7379
7342
|
description: "Rank cross-signal Problems by root cause (what to fix first)",
|
|
7380
|
-
examples: ["moda problems list", "moda problems list --view=book --sort=users --limit=20", "moda problems get <problem_id> --view=dream", "moda problems get <problem_id> --evidence"
|
|
7343
|
+
examples: ["moda problems list", "moda problems list --view=book --sort=users --limit=20", "moda problems get <problem_id> --view=dream", "moda problems get <problem_id> --evidence"],
|
|
7381
7344
|
subcommands: treeSubcommandHelp("problems"),
|
|
7382
7345
|
defaultSubcommand: "list",
|
|
7383
7346
|
...dataApiDefaults
|
|
@@ -3,17 +3,17 @@ import {
|
|
|
3
3
|
promptsDiscoveredCheck,
|
|
4
4
|
runDoctorCommand,
|
|
5
5
|
runStatusCommand
|
|
6
|
-
} from "./cli-
|
|
7
|
-
import"./cli-
|
|
8
|
-
import"./cli-
|
|
6
|
+
} from "./cli-fwscar49.js";
|
|
7
|
+
import"./cli-331t1p3c.js";
|
|
8
|
+
import"./cli-a66x9ze6.js";
|
|
9
9
|
import"./cli-mm48br00.js";
|
|
10
10
|
import"./cli-764m5azg.js";
|
|
11
11
|
import"./cli-jkv3y2bj.js";
|
|
12
|
-
import"./cli-
|
|
13
|
-
import"./cli-
|
|
12
|
+
import"./cli-nwwfqgbj.js";
|
|
13
|
+
import"./cli-1dcc684x.js";
|
|
14
14
|
import"./cli-e0kbye4s.js";
|
|
15
|
-
import"./cli-
|
|
16
|
-
import"./cli-
|
|
15
|
+
import"./cli-jc9gdwgp.js";
|
|
16
|
+
import"./cli-zwgh9h9c.js";
|
|
17
17
|
import"./cli-k4tqwah4.js";
|
|
18
18
|
import"./cli-9kfxkxmk.js";
|
|
19
19
|
import"./cli-0semcakc.js";
|
|
@@ -47,17 +47,17 @@ import {
|
|
|
47
47
|
writeHarnessAnalyzeResult,
|
|
48
48
|
writeHarnessArtifacts,
|
|
49
49
|
writeHumanProgress
|
|
50
|
-
} from "./cli-
|
|
50
|
+
} from "./cli-4bcvdkwz.js";
|
|
51
51
|
import"./cli-jkv3y2bj.js";
|
|
52
52
|
import"./cli-97fnztpy.js";
|
|
53
53
|
import {
|
|
54
54
|
HARNESS_ANALYZE_CONCERNS
|
|
55
55
|
} from "./cli-krm4w2v9.js";
|
|
56
|
-
import"./cli-
|
|
57
|
-
import"./cli-
|
|
56
|
+
import"./cli-nwwfqgbj.js";
|
|
57
|
+
import"./cli-1dcc684x.js";
|
|
58
58
|
import"./cli-e0kbye4s.js";
|
|
59
|
-
import"./cli-
|
|
60
|
-
import"./cli-
|
|
59
|
+
import"./cli-jc9gdwgp.js";
|
|
60
|
+
import"./cli-zwgh9h9c.js";
|
|
61
61
|
import"./cli-k4tqwah4.js";
|
|
62
62
|
import"./cli-r0pkdy83.js";
|
|
63
63
|
import"./cli-9kfxkxmk.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildSourceSnapshot
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-4bcvdkwz.js";
|
|
4
4
|
import"./cli-jkv3y2bj.js";
|
|
5
5
|
import"./cli-97fnztpy.js";
|
|
6
6
|
import"./cli-krm4w2v9.js";
|
|
7
|
-
import"./cli-
|
|
8
|
-
import"./cli-
|
|
7
|
+
import"./cli-nwwfqgbj.js";
|
|
8
|
+
import"./cli-1dcc684x.js";
|
|
9
9
|
import"./cli-e0kbye4s.js";
|
|
10
|
-
import"./cli-
|
|
10
|
+
import"./cli-jc9gdwgp.js";
|
|
11
11
|
import {
|
|
12
12
|
recordApiRequest
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-zwgh9h9c.js";
|
|
14
14
|
import"./cli-k4tqwah4.js";
|
|
15
15
|
import"./cli-r0pkdy83.js";
|
|
16
16
|
import"./cli-9kfxkxmk.js";
|
|
@@ -3,19 +3,19 @@ import {
|
|
|
3
3
|
enumerateToolCatalog,
|
|
4
4
|
enumerateWorkflows,
|
|
5
5
|
mergeEnumeratedComponents
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-erpwkg87.js";
|
|
7
7
|
import {
|
|
8
8
|
createAgentScopeResolver,
|
|
9
9
|
enumerateAgents
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-4bcvdkwz.js";
|
|
11
11
|
import"./cli-jkv3y2bj.js";
|
|
12
12
|
import"./cli-97fnztpy.js";
|
|
13
13
|
import"./cli-krm4w2v9.js";
|
|
14
|
-
import"./cli-
|
|
15
|
-
import"./cli-
|
|
14
|
+
import"./cli-nwwfqgbj.js";
|
|
15
|
+
import"./cli-1dcc684x.js";
|
|
16
16
|
import"./cli-e0kbye4s.js";
|
|
17
|
-
import"./cli-
|
|
18
|
-
import"./cli-
|
|
17
|
+
import"./cli-jc9gdwgp.js";
|
|
18
|
+
import"./cli-zwgh9h9c.js";
|
|
19
19
|
import"./cli-k4tqwah4.js";
|
|
20
20
|
import"./cli-r0pkdy83.js";
|
|
21
21
|
import"./cli-9kfxkxmk.js";
|
|
@@ -20,15 +20,15 @@ import {
|
|
|
20
20
|
serializeExtractResult,
|
|
21
21
|
toolNamesOf,
|
|
22
22
|
valueChildren
|
|
23
|
-
} from "./cli-
|
|
23
|
+
} from "./cli-4bcvdkwz.js";
|
|
24
24
|
import"./cli-jkv3y2bj.js";
|
|
25
25
|
import"./cli-97fnztpy.js";
|
|
26
26
|
import"./cli-krm4w2v9.js";
|
|
27
|
-
import"./cli-
|
|
28
|
-
import"./cli-
|
|
27
|
+
import"./cli-nwwfqgbj.js";
|
|
28
|
+
import"./cli-1dcc684x.js";
|
|
29
29
|
import"./cli-e0kbye4s.js";
|
|
30
|
-
import"./cli-
|
|
31
|
-
import"./cli-
|
|
30
|
+
import"./cli-jc9gdwgp.js";
|
|
31
|
+
import"./cli-zwgh9h9c.js";
|
|
32
32
|
import"./cli-k4tqwah4.js";
|
|
33
33
|
import"./cli-r0pkdy83.js";
|
|
34
34
|
import"./cli-9kfxkxmk.js";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
selectTenantAndCreateKey
|
|
3
|
-
} from "./cli-
|
|
4
|
-
import"./cli-
|
|
3
|
+
} from "./cli-qdfz3p5k.js";
|
|
4
|
+
import"./cli-t48q3cx4.js";
|
|
5
5
|
import {
|
|
6
6
|
buildDoctorReport
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-fwscar49.js";
|
|
8
8
|
import {
|
|
9
9
|
ConnectCodeError,
|
|
10
10
|
connectWithCode,
|
|
11
11
|
loadAuthSession,
|
|
12
12
|
loadToken,
|
|
13
13
|
login
|
|
14
|
-
} from "./cli-
|
|
15
|
-
import"./cli-
|
|
14
|
+
} from "./cli-331t1p3c.js";
|
|
15
|
+
import"./cli-a66x9ze6.js";
|
|
16
16
|
import {
|
|
17
17
|
bundledSkillsDir,
|
|
18
18
|
installIntegrationSkill,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
describeCodingAgentEvent,
|
|
36
36
|
detectAvailableCodingAgents,
|
|
37
37
|
runCodingAgent
|
|
38
|
-
} from "./cli-
|
|
38
|
+
} from "./cli-4bcvdkwz.js";
|
|
39
39
|
import {
|
|
40
40
|
canonicalText,
|
|
41
41
|
renderInitBanner,
|
|
@@ -50,16 +50,16 @@ import {
|
|
|
50
50
|
import"./cli-krm4w2v9.js";
|
|
51
51
|
import {
|
|
52
52
|
createCommandContext
|
|
53
|
-
} from "./cli-
|
|
54
|
-
import"./cli-
|
|
53
|
+
} from "./cli-nwwfqgbj.js";
|
|
54
|
+
import"./cli-1dcc684x.js";
|
|
55
55
|
import"./cli-e0kbye4s.js";
|
|
56
|
-
import"./cli-
|
|
56
|
+
import"./cli-jc9gdwgp.js";
|
|
57
57
|
import {
|
|
58
58
|
recordApiRequest,
|
|
59
59
|
resolveIngestUrl,
|
|
60
60
|
resolveModaBaseUrl,
|
|
61
61
|
shellArg
|
|
62
|
-
} from "./cli-
|
|
62
|
+
} from "./cli-zwgh9h9c.js";
|
|
63
63
|
import {
|
|
64
64
|
CliAuthError,
|
|
65
65
|
CliInputError
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
overviewTrendsQuery,
|
|
11
11
|
renderTrendsHuman,
|
|
12
12
|
trendsSummaryText
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-0gtfbh57.js";
|
|
14
14
|
import {
|
|
15
15
|
renderMarkdownForTerminal,
|
|
16
16
|
shouldColorTerminalOutput,
|
|
@@ -21,7 +21,7 @@ import"./cli-e0kbye4s.js";
|
|
|
21
21
|
import {
|
|
22
22
|
callControlAPI,
|
|
23
23
|
callDataAPI
|
|
24
|
-
} from "./cli-
|
|
24
|
+
} from "./cli-jc9gdwgp.js";
|
|
25
25
|
import {
|
|
26
26
|
EXIT_DEGRADED,
|
|
27
27
|
EXIT_OK,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
resolveModaBaseUrl,
|
|
32
32
|
safeWriteStderr,
|
|
33
33
|
shellArg
|
|
34
|
-
} from "./cli-
|
|
34
|
+
} from "./cli-zwgh9h9c.js";
|
|
35
35
|
import {
|
|
36
36
|
CliAuthError,
|
|
37
37
|
CliInputError,
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
probeApiKey,
|
|
3
3
|
redactApiKey,
|
|
4
4
|
resolveApiKeyCredential
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-t48q3cx4.js";
|
|
6
6
|
import {
|
|
7
7
|
authFetch,
|
|
8
8
|
clearAuthSession,
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
loadAuthSession,
|
|
11
11
|
login,
|
|
12
12
|
revokeCliSessionToken
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-331t1p3c.js";
|
|
14
14
|
import {
|
|
15
15
|
ApiError
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-jc9gdwgp.js";
|
|
17
17
|
import {
|
|
18
18
|
DEFAULT_INGEST_URL,
|
|
19
19
|
EXIT_AUTH_REQUIRED,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
setActiveProfile,
|
|
45
45
|
shellArg,
|
|
46
46
|
upsertProfile
|
|
47
|
-
} from "./cli-
|
|
47
|
+
} from "./cli-zwgh9h9c.js";
|
|
48
48
|
import {
|
|
49
49
|
CliInputError
|
|
50
50
|
} from "./cli-k4tqwah4.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
inventoryFiles,
|
|
3
3
|
safePromptEvidencePath
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-4bcvdkwz.js";
|
|
5
5
|
import"./cli-jkv3y2bj.js";
|
|
6
6
|
import"./cli-97fnztpy.js";
|
|
7
7
|
import"./cli-krm4w2v9.js";
|
|
8
|
-
import"./cli-
|
|
9
|
-
import"./cli-
|
|
8
|
+
import"./cli-nwwfqgbj.js";
|
|
9
|
+
import"./cli-1dcc684x.js";
|
|
10
10
|
import"./cli-e0kbye4s.js";
|
|
11
|
-
import"./cli-
|
|
12
|
-
import"./cli-
|
|
11
|
+
import"./cli-jc9gdwgp.js";
|
|
12
|
+
import"./cli-zwgh9h9c.js";
|
|
13
13
|
import"./cli-k4tqwah4.js";
|
|
14
14
|
import {
|
|
15
15
|
require_typescript
|
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
checkPromptMapping,
|
|
4
4
|
discoverHarnessPromptSources,
|
|
5
5
|
safePromptEvidencePath
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-4bcvdkwz.js";
|
|
7
7
|
import"./cli-jkv3y2bj.js";
|
|
8
8
|
import"./cli-97fnztpy.js";
|
|
9
9
|
import"./cli-krm4w2v9.js";
|
|
10
|
-
import"./cli-
|
|
11
|
-
import"./cli-
|
|
10
|
+
import"./cli-nwwfqgbj.js";
|
|
11
|
+
import"./cli-1dcc684x.js";
|
|
12
12
|
import"./cli-e0kbye4s.js";
|
|
13
|
-
import"./cli-
|
|
14
|
-
import"./cli-
|
|
13
|
+
import"./cli-jc9gdwgp.js";
|
|
14
|
+
import"./cli-zwgh9h9c.js";
|
|
15
15
|
import"./cli-k4tqwah4.js";
|
|
16
16
|
import {
|
|
17
17
|
inspectCodeSelectors,
|
|
@@ -9,16 +9,16 @@ import {
|
|
|
9
9
|
runPromptSync,
|
|
10
10
|
runPromptsCommand,
|
|
11
11
|
writePromptSyncProgress
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-a66x9ze6.js";
|
|
13
13
|
import {
|
|
14
14
|
promptSourceHashPayload
|
|
15
15
|
} from "./cli-mm48br00.js";
|
|
16
16
|
import"./cli-764m5azg.js";
|
|
17
|
-
import"./cli-
|
|
18
|
-
import"./cli-
|
|
17
|
+
import"./cli-nwwfqgbj.js";
|
|
18
|
+
import"./cli-1dcc684x.js";
|
|
19
19
|
import"./cli-e0kbye4s.js";
|
|
20
|
-
import"./cli-
|
|
21
|
-
import"./cli-
|
|
20
|
+
import"./cli-jc9gdwgp.js";
|
|
21
|
+
import"./cli-zwgh9h9c.js";
|
|
22
22
|
import"./cli-k4tqwah4.js";
|
|
23
23
|
import"./cli-9kfxkxmk.js";
|
|
24
24
|
import"./cli-0semcakc.js";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
selectTenantAndCreateKey
|
|
3
|
-
} from "./cli-
|
|
4
|
-
import"./cli-
|
|
3
|
+
} from "./cli-qdfz3p5k.js";
|
|
4
|
+
import"./cli-t48q3cx4.js";
|
|
5
5
|
import {
|
|
6
6
|
loadAuthSession
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-331t1p3c.js";
|
|
8
8
|
import {
|
|
9
9
|
stringOption
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-nwwfqgbj.js";
|
|
11
11
|
import"./cli-e0kbye4s.js";
|
|
12
12
|
import {
|
|
13
13
|
resolveIngestUrl,
|
|
14
14
|
resolveModaBaseUrl
|
|
15
|
-
} from "./cli-
|
|
15
|
+
} from "./cli-zwgh9h9c.js";
|
|
16
16
|
import {
|
|
17
17
|
CliAuthError
|
|
18
18
|
} from "./cli-k4tqwah4.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
assertFlags
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-1dcc684x.js";
|
|
4
4
|
import {
|
|
5
5
|
callControlAPI
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-jc9gdwgp.js";
|
|
7
7
|
import {
|
|
8
8
|
explicitOutputMode,
|
|
9
9
|
resolveApiKey
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-zwgh9h9c.js";
|
|
11
11
|
import {
|
|
12
12
|
CliInputError
|
|
13
13
|
} from "./cli-k4tqwah4.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runSkillSync,
|
|
3
3
|
runSkillsCommand
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-fsnzyqje.js";
|
|
5
5
|
import"./cli-2fv0q9tx.js";
|
|
6
|
-
import"./cli-
|
|
7
|
-
import"./cli-
|
|
6
|
+
import"./cli-nwwfqgbj.js";
|
|
7
|
+
import"./cli-1dcc684x.js";
|
|
8
8
|
import"./cli-e0kbye4s.js";
|
|
9
|
-
import"./cli-
|
|
10
|
-
import"./cli-
|
|
9
|
+
import"./cli-jc9gdwgp.js";
|
|
10
|
+
import"./cli-zwgh9h9c.js";
|
|
11
11
|
import"./cli-k4tqwah4.js";
|
|
12
12
|
import"./cli-0semcakc.js";
|
|
13
13
|
import"./cli-0v6na3yp.js";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runSkillsCommand
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-fsnzyqje.js";
|
|
4
4
|
import {
|
|
5
5
|
runPromptsCommand
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-a66x9ze6.js";
|
|
7
7
|
import"./cli-2fv0q9tx.js";
|
|
8
8
|
import"./cli-mm48br00.js";
|
|
9
9
|
import"./cli-764m5azg.js";
|
|
10
10
|
import {
|
|
11
11
|
runHarnessCommand
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-4bcvdkwz.js";
|
|
13
13
|
import"./cli-jkv3y2bj.js";
|
|
14
14
|
import"./cli-97fnztpy.js";
|
|
15
15
|
import"./cli-krm4w2v9.js";
|
|
16
|
-
import"./cli-
|
|
17
|
-
import"./cli-
|
|
16
|
+
import"./cli-nwwfqgbj.js";
|
|
17
|
+
import"./cli-1dcc684x.js";
|
|
18
18
|
import"./cli-e0kbye4s.js";
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
19
|
+
import"./cli-jc9gdwgp.js";
|
|
20
|
+
import"./cli-zwgh9h9c.js";
|
|
21
21
|
import {
|
|
22
22
|
CliInputError
|
|
23
23
|
} from "./cli-k4tqwah4.js";
|
package/package.json
CHANGED
|
@@ -29,7 +29,7 @@ Loaded on demand from the moda-cli skill. This table can lag the CLI: `moda <com
|
|
|
29
29
|
| `moda detections tools <tool_name>` | Per-tool failure breakdown + examples |
|
|
30
30
|
| `moda tools list` | Tool catalog: every tool called in the window with calls, failed calls, success rate, traces, effect direction, last seen (`--sort=calls\|failure_rate\|failures\|traces\|last_seen`, `--search`, `--direction`, `--limit` 1-200, `--offset`) |
|
|
31
31
|
| `moda tools get <tool_name>` | One tool: call stats, registered description and schema, observed payload fields, usage over time, top failure categories with the newest failure (`--days-back`, `--full`) |
|
|
32
|
-
| `moda problems list` | The Problems the dashboard shows, ranked: the dream grouping when the tenant has one published, else the Book (`view` in the output says which; `--view=book\|dream` forces one). `--days-back`, `--limit` (1-200, default 10), `--offset` + `--list-version` (from the previous page; `next_commands` has the next page), `--sort=rank\|users` (dream: `severity\|silent`; Book: `signals\|problems\|signal:<family>`), `--dir`, `--cohort=builtin:<key>\|<saved id>`. Filter by family with `moda problems
|
|
32
|
+
| `moda problems list` | The Problems the dashboard shows, ranked: the dream grouping when the tenant has one published, else the Book (`view` in the output says which; `--view=book\|dream` forces one). `--days-back`, `--limit` (1-200, default 10), `--offset` + `--list-version` (from the previous page; `next_commands` has the next page), `--sort=rank\|users` (dream: `severity\|silent`; Book: `signals\|problems\|signal:<family>`), `--dir`, `--cohort=builtin:<key>\|<saved id>`. Filter by family with `moda problems get <problem_id> --traces --family=F` |
|
|
33
33
|
| `moda problems get <problem_id>` | One Problem: dossier, or `--evidence`/`--reports`/`--traces`/`--feedback` pages (`--conversations` is a legacy alias of `--traces`) (`--limit` 1–50, `--cursor` verbatim keyset token). `--view=dream`: the dashboard's dream page of it (definition, fix, severity, incidents with verdicts; `--limit` default 3, `--offset`). Dream problem ids are Book ids, so the dossier works for ids from either list view |
|
|
34
34
|
| `moda problems feedback <problem_id>` | Write: `--action=mark_fixed\|dismiss\|flag_attribution\|rename`. `--reason` required for flag_attribution, optional for dismiss; `--new-name` for rename; `--attribution-id` (UUID) required for flag_attribution |
|
|
35
35
|
| `moda review <kind> <target>` | Write: kinds `problem\|problem-detection\|quote\|tool\|laziness\|hallucination\|custom-signal`; `--reason` optional; problem-detection needs `--conversation-id` + `--attribution-id`; quote needs `--family`, `--turn`, `--quote`; tool needs `--tool` plus `--tool-use-id` or `--msg-index`; custom-signal needs `--conversation-id`; `--verdict=clear` removes a mark (not for problem) |
|
|
@@ -23,7 +23,6 @@ Writes listed here accept `--dry-run`: it validates the call, prints the exact r
|
|
|
23
23
|
| Tool catalog: every tool, its schema and usage | `moda tools list [--sort=calls\|failure_rate\|failures\|traces\|last_seen --search --direction --offset]`, `moda tools get <tool_name>` |
|
|
24
24
|
| Problems list (dream grouping or Book, as the page decides): sort, cohort, page | `moda problems list [--sort=users --cohort=builtin:<key> --offset=N --list-version=V]`; `--view=book\|dream` forces one |
|
|
25
25
|
| Problem page (dream view): severity, incidents with verdicts | `moda problems get <problem_id> --view=dream [--offset=N]` |
|
|
26
|
-
| Problems: unexplained remainder | `moda problems unexplained [--family=emotion\|tool_failure\|laziness\|… --cursor]` |
|
|
27
26
|
| Reopen a problem marked fixed | `moda problems reopen <problem_id> --reason="…"` (resolved ones return only via re-detection) |
|
|
28
27
|
| Custom signals: create | `moda signals draft --note="…"`, then `moda signals create --name --description --pass-criteria --fail-criteria [--tool-names=a,b]` or `--file=body.json` |
|
|
29
28
|
| Custom signals: edit, lifecycle | `moda signals update <id> …`, `moda signals activate\|pause\|delete <id>` (delete: drafts only; archiving is dashboard-only) |
|
|
@@ -252,7 +252,7 @@ instead of being clamped.
|
|
|
252
252
|
| Flag | Commands | Allowed values | Default |
|
|
253
253
|
| --- | --- | --- | --- |
|
|
254
254
|
| `--days-back=N` | `overview`, `investigate`, `failures`, `ask`, `frustrations`, `emotions`, `laziness`, `hallucinations`, `tool-failures`, `tool-failure-detail`, `signal --detections` | whole number 1–90 | 7 |
|
|
255
|
-
| `--days-back=N` | `problems
|
|
255
|
+
| `--days-back=N` | `problems` | whole number 1–90 | 30 |
|
|
256
256
|
| `--days-back=N` | `problem-impact` | `all`, 1, 3, 7, 30, 90 | 7 |
|
|
257
257
|
| `--time-range=R` | `traces`, `search`, `clusters` | `all`, `1h`, `24h`, `3d`, `7d`, `30d`, `90d` | `all` |
|
|
258
258
|
| `--window=W` | `users`, `user` | `24h`, `7d`, `30d`, `90d` | `30d` |
|