@moda-ai/cli 1.55.9 → 1.55.11
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-n0ch2j90.js +459 -0
- package/dist/cli-11fevr8y.js +811 -0
- package/dist/{cli-mx9r1689.js → cli-429zt7g4.js} +1 -65
- package/dist/cli-4qe6n8am.js +345 -0
- package/dist/cli-97fnztpy.js +140 -0
- package/dist/{cli-sjc132j8.js → cli-fq7kk77e.js} +18 -1733
- package/dist/cli-fwec3m42.js +946 -0
- package/dist/cli-g7ferymy.js +496 -0
- package/dist/cli-k5qqj2bp.js +70 -0
- package/dist/cli-m16taf4z.js +30 -0
- package/dist/{cli-4af3thx7.js → cli-m857n028.js} +195 -976
- package/dist/{cli-fhfdnvh4.js → cli-n9gexgma.js} +2 -2
- package/dist/{cli-tw8jj190.js → cli-t4jjhn3g.js} +5 -7
- package/dist/cli-tmqd1f0m.js +159 -0
- package/dist/cli.js +1410 -7193
- package/dist/doctor-spvy2zb3.js +23 -0
- package/dist/fix-ax6bbg37.js +1444 -0
- package/dist/{harness-github-actions-73a08nct.js → harness-github-actions-mtksqp3c.js} +7 -2
- package/dist/{harness-yshh2pgj.js → harness-jbqpbp6n.js} +7 -2
- package/dist/{index-f3k9jgrt.js → index-2d0q94sv.js} +35 -36
- package/dist/production-intelligence-1tf98n79.js +1802 -0
- package/dist/profile-commands-f6599bcx.js +481 -0
- package/dist/prompt-source-mcp.js +8 -3
- package/dist/prompts-y3xd9heh.js +40 -0
- package/dist/{provision-parsn3xg.js → provision-cjpsswa9.js} +7 -5
- package/dist/registry-1dvxsekd.js +1201 -0
- package/dist/skills-1k0hbkaf.js +19 -0
- package/dist/sync-by81xqk4.js +54 -0
- package/package.json +6 -7
- package/skills/integration/index.json +2 -2
- package/skills/moda-cli/SKILL.md +2 -2
- package/hooks/moda-snapshot.sh +0 -41
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildSourceSnapshot
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-m857n028.js";
|
|
4
|
+
import"./cli-97fnztpy.js";
|
|
5
|
+
import"./cli-k5qqj2bp.js";
|
|
6
|
+
import"./cli-g7ferymy.js";
|
|
7
|
+
import"./cli-tmqd1f0m.js";
|
|
8
|
+
import"./cli-m16taf4z.js";
|
|
4
9
|
import {
|
|
5
10
|
recordApiRequest
|
|
6
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-429zt7g4.js";
|
|
7
12
|
import"./cli-0v6na3yp.js";
|
|
8
13
|
|
|
9
14
|
// src/harness-github-actions.ts
|
|
@@ -42,8 +42,13 @@ import {
|
|
|
42
42
|
writeHarnessAnalyzeResult,
|
|
43
43
|
writeHarnessArtifacts,
|
|
44
44
|
writeHumanProgress
|
|
45
|
-
} from "./cli-
|
|
46
|
-
import"./cli-
|
|
45
|
+
} from "./cli-m857n028.js";
|
|
46
|
+
import"./cli-97fnztpy.js";
|
|
47
|
+
import"./cli-k5qqj2bp.js";
|
|
48
|
+
import"./cli-g7ferymy.js";
|
|
49
|
+
import"./cli-tmqd1f0m.js";
|
|
50
|
+
import"./cli-m16taf4z.js";
|
|
51
|
+
import"./cli-429zt7g4.js";
|
|
47
52
|
import"./cli-0v6na3yp.js";
|
|
48
53
|
export {
|
|
49
54
|
writeHumanProgress,
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
selectTenantAndCreateKey
|
|
3
|
+
} from "./cli-n9gexgma.js";
|
|
4
|
+
import {
|
|
5
|
+
buildDoctorReport
|
|
6
|
+
} from "./cli-11fevr8y.js";
|
|
7
|
+
import {
|
|
8
|
+
ConnectCodeError,
|
|
9
|
+
connectWithCode,
|
|
10
|
+
loadAuthSession,
|
|
11
|
+
loadToken,
|
|
12
|
+
login
|
|
13
|
+
} from "./cli-t4jjhn3g.js";
|
|
14
|
+
import {
|
|
3
15
|
initPrompts,
|
|
4
|
-
runPromptSync
|
|
5
|
-
|
|
6
|
-
} from "./cli-sjc132j8.js";
|
|
16
|
+
runPromptSync
|
|
17
|
+
} from "./cli-fq7kk77e.js";
|
|
7
18
|
import"./cli-mm48br00.js";
|
|
8
19
|
import {
|
|
9
20
|
canonicalText,
|
|
@@ -22,37 +33,37 @@ import {
|
|
|
22
33
|
renderInitStep,
|
|
23
34
|
runCodingAgent,
|
|
24
35
|
runHarnessCommand,
|
|
25
|
-
startRemoteAnalyze
|
|
36
|
+
startRemoteAnalyze
|
|
37
|
+
} from "./cli-m857n028.js";
|
|
38
|
+
import {
|
|
26
39
|
stripAnsi
|
|
27
|
-
} from "./cli-
|
|
40
|
+
} from "./cli-97fnztpy.js";
|
|
28
41
|
import {
|
|
29
42
|
bundledSkillsDir,
|
|
30
43
|
installIntegrationSkill,
|
|
31
44
|
readBundledIndex
|
|
32
45
|
} from "./cli-c5c6f0yw.js";
|
|
33
46
|
import {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
} from "./cli-ssfq84k5.js";
|
|
37
|
-
import {
|
|
38
|
-
selectTenantAndCreateKey
|
|
39
|
-
} from "./cli-fhfdnvh4.js";
|
|
47
|
+
runSkillSync
|
|
48
|
+
} from "./cli-fwec3m42.js";
|
|
40
49
|
import {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
} from "./cli-tw8jj190.js";
|
|
50
|
+
createCommandContext
|
|
51
|
+
} from "./cli-k5qqj2bp.js";
|
|
52
|
+
import"./cli-g7ferymy.js";
|
|
53
|
+
import"./cli-tmqd1f0m.js";
|
|
54
|
+
import"./cli-m16taf4z.js";
|
|
47
55
|
import {
|
|
48
56
|
CliAuthError,
|
|
49
57
|
CliInputError,
|
|
50
58
|
VERSION,
|
|
51
|
-
createCommandContext,
|
|
52
59
|
recordApiRequest,
|
|
53
60
|
resolveIngestUrl,
|
|
54
61
|
resolveModaBaseUrl
|
|
55
|
-
} from "./cli-
|
|
62
|
+
} from "./cli-429zt7g4.js";
|
|
63
|
+
import {
|
|
64
|
+
detectAgents,
|
|
65
|
+
installRules
|
|
66
|
+
} from "./cli-ssfq84k5.js";
|
|
56
67
|
import"./cli-0v6na3yp.js";
|
|
57
68
|
|
|
58
69
|
// src/init/index.ts
|
|
@@ -1751,7 +1762,6 @@ async function runInit(flags, options = {}) {
|
|
|
1751
1762
|
let setupPlan = [];
|
|
1752
1763
|
const renderPlan = () => {
|
|
1753
1764
|
setupPlan = buildSetupPlan({
|
|
1754
|
-
installHooks: false,
|
|
1755
1765
|
integrateSdk,
|
|
1756
1766
|
configureCiCd,
|
|
1757
1767
|
configureAutosync,
|
|
@@ -1861,7 +1871,7 @@ async function runInit(flags, options = {}) {
|
|
|
1861
1871
|
board ??= new InitProgressBoard;
|
|
1862
1872
|
return board;
|
|
1863
1873
|
};
|
|
1864
|
-
const validationFailure = () => new CliInputError("Moda Analyst produced a harness report that did not pass validation.", "Review .moda/harness-report-validation.json, then rerun `moda init --local --analyst=claude|cursor|codex` or `moda harness analyze --analyst=local-scan --summary`.");
|
|
1874
|
+
const validationFailure = () => new CliInputError("Moda Analyst produced a harness report that did not pass validation.", "Review .moda/harness-report-validation.json, then rerun `moda init --local --analyst=claude|cursor|codex` or `moda harness analyze --analyst=local-scan --summary --experimental`.");
|
|
1865
1875
|
let harnessPhase = { id: "harness", title: "Harness discovery", status: "completed" };
|
|
1866
1876
|
let harnessDeferred = false;
|
|
1867
1877
|
let harnessSkipped = false;
|
|
@@ -1891,7 +1901,7 @@ async function runInit(flags, options = {}) {
|
|
|
1891
1901
|
} : undefined;
|
|
1892
1902
|
if (signals && harnessLooksIncomplete(signals)) {
|
|
1893
1903
|
const names = [...signals.frameworks, ...signals.providers].join(", ");
|
|
1894
|
-
const retryCommand = remote ? "moda harness analyze --remote --summary --experimental" : "moda harness analyze --analyst=claude|cursor|codex --summary";
|
|
1904
|
+
const retryCommand = remote ? "moda harness analyze --remote --summary --experimental" : "moda harness analyze --analyst=claude|cursor|codex --summary --experimental";
|
|
1895
1905
|
warn(renderInitNote(`Harness discovery found 0 runtime agents, but this repo has LLM framework signals (${names}). ` + "Discovery likely failed, so the result was NOT approved or synced.", "warning"));
|
|
1896
1906
|
warn(` Retry with \`${retryCommand}\`, then \`moda harness approve --yes && moda harness sync --from-report\`.`);
|
|
1897
1907
|
emit("harness", "Harness discovery found 0 agents despite LLM framework signals; sync withheld.", "warning");
|
|
@@ -2012,7 +2022,6 @@ Harness analysis keeps running on Moda. Resume anytime with \`${HARNESS_PULL_REC
|
|
|
2012
2022
|
}
|
|
2013
2023
|
emit("apply", "Applying approved setup changes.");
|
|
2014
2024
|
const laneBoard = startBoard();
|
|
2015
|
-
const ingestCodingAgentTraces = false;
|
|
2016
2025
|
const agents = detectAgents();
|
|
2017
2026
|
laneBoard?.startLane("agent-skills", "Agent skills");
|
|
2018
2027
|
if (agents.length > 0) {
|
|
@@ -2093,7 +2102,6 @@ Harness analysis keeps running on Moda. Resume anytime with \`${HARNESS_PULL_REC
|
|
|
2093
2102
|
} else {
|
|
2094
2103
|
markApplied(setupPlan, "sdk", "User skipped SDK integration.");
|
|
2095
2104
|
}
|
|
2096
|
-
markApplied(setupPlan, "hooks", ingestCodingAgentTraces ? undefined : "Coding-agent trace capture is temporarily unavailable.");
|
|
2097
2105
|
markApplied(setupPlan, "prompts");
|
|
2098
2106
|
markApplied(setupPlan, "skills");
|
|
2099
2107
|
if (remote && pollPromise && remoteRunId) {
|
|
@@ -2214,16 +2222,7 @@ function buildSetupPlan(options) {
|
|
|
2214
2222
|
".moda/harness.json",
|
|
2215
2223
|
".moda/HARNESS.md"
|
|
2216
2224
|
],
|
|
2217
|
-
command: options.remote ? "moda harness analyze --remote --summary && moda harness approve --yes && moda harness sync --from-report" : "moda harness analyze --analyst=auto --summary && moda harness approve --yes && moda harness sync --from-report"
|
|
2218
|
-
},
|
|
2219
|
-
{
|
|
2220
|
-
category: "hooks",
|
|
2221
|
-
title: "Install coding-agent trace hooks",
|
|
2222
|
-
status: options.installHooks ? "planned" : "skipped",
|
|
2223
|
-
approved: options.installHooks,
|
|
2224
|
-
files: ["~/.claude/settings.json", "~/.codex/hooks.json", "~/.cursor/hooks.json"],
|
|
2225
|
-
command: "moda hooks install --agent=all",
|
|
2226
|
-
reason: options.installHooks ? undefined : "Coding-agent trace capture is temporarily unavailable."
|
|
2225
|
+
command: options.remote ? "moda harness analyze --remote --summary --experimental && moda harness approve --yes && moda harness sync --from-report" : "moda harness analyze --analyst=auto --summary --experimental && moda harness approve --yes && moda harness sync --from-report"
|
|
2227
2226
|
},
|
|
2228
2227
|
{
|
|
2229
2228
|
category: "prompts",
|
|
@@ -2274,7 +2273,7 @@ function buildSetupPlan(options) {
|
|
|
2274
2273
|
status: options.configureHarnessRescan ? "planned" : "manual",
|
|
2275
2274
|
approved: options.configureHarnessRescan,
|
|
2276
2275
|
files: [".github/workflows/moda-harness-rescan.yml"],
|
|
2277
|
-
command: "moda harness analyze --remote --yes && moda harness approve --yes && moda harness sync --from-report",
|
|
2276
|
+
command: "moda harness analyze --remote --yes --experimental && moda harness approve --yes && moda harness sync --from-report",
|
|
2278
2277
|
reason: options.configureHarnessRescan ? undefined : "No harness rescan workflow is written until it is explicitly approved (--harness-rescan)."
|
|
2279
2278
|
},
|
|
2280
2279
|
{
|