@moda-ai/cli 1.45.1 → 1.45.3
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/cli.js +16 -6
- package/package.json +2 -1
- package/skills/integration/index.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -2418,8 +2418,11 @@ agent and prompt handled each LLM call.
|
|
|
2418
2418
|
|
|
2419
2419
|
## Part 0: setup
|
|
2420
2420
|
|
|
2421
|
-
1. Run \`moda --
|
|
2422
|
-
\`
|
|
2421
|
+
1. Run \`moda registry --help\` and confirm it lists all of \`push\`,
|
|
2422
|
+
\`status\`, \`coverage\`, \`log\`, \`show\`, and \`prompt\` (the full set
|
|
2423
|
+
first shipped in 1.45.0). If any is missing or the command fails, run
|
|
2424
|
+
\`npm install -g @moda-ai/cli@latest\` and check again. If they're still
|
|
2425
|
+
missing, stop and tell me which ones; nothing below works without them.
|
|
2423
2426
|
2. Auth: \`MODA_API_KEY\` must be set, or run \`moda auth login --api-key=<key>\`.
|
|
2424
2427
|
Ask me for the key if neither is available. Check with \`moda doctor\`.
|
|
2425
2428
|
3. Run \`moda registry template\` to see a complete example manifest, and
|
|
@@ -3382,6 +3385,9 @@ function buildSearchAdoptionTelemetry(input) {
|
|
|
3382
3385
|
output_mode: outputMode,
|
|
3383
3386
|
search_surface: SEARCH_SURFACE_BY_COMMAND[command] ?? "none"
|
|
3384
3387
|
};
|
|
3388
|
+
if (positional && input.subcommands?.includes(positional)) {
|
|
3389
|
+
adoption.subcommand = positional;
|
|
3390
|
+
}
|
|
3385
3391
|
let queryText;
|
|
3386
3392
|
if (command === "search")
|
|
3387
3393
|
queryText = positional;
|
|
@@ -10204,7 +10210,7 @@ var commandRegistry = createCommandRegistry([
|
|
|
10204
10210
|
description: "Diagnose local Moda setup and data flow",
|
|
10205
10211
|
examples: ["moda doctor", "moda doctor --json", "moda doctor --offline"],
|
|
10206
10212
|
auth: "none",
|
|
10207
|
-
authNote: "
|
|
10213
|
+
authNote: "With an API key it also checks the key and data flow against Moda Cloud; --offline runs local checks only.",
|
|
10208
10214
|
outputModes: ["human", "json", "agent"],
|
|
10209
10215
|
mutability: "read",
|
|
10210
10216
|
validateConfigBeforeRun: false,
|
|
@@ -11105,6 +11111,7 @@ async function dispatchParsedCommandInner(parsed, startedAt) {
|
|
|
11105
11111
|
});
|
|
11106
11112
|
setActiveContext(context);
|
|
11107
11113
|
const telemetryCommand = telemetryCommandName(definition);
|
|
11114
|
+
const telemetrySubcommands = definition.subcommands?.map((subcommand2) => subcommand2.name);
|
|
11108
11115
|
const needsConfig = typeof definition.validateConfigBeforeRun === "function" ? definition.validateConfigBeforeRun(parsed) : definition.validateConfigBeforeRun;
|
|
11109
11116
|
if (needsConfig) {
|
|
11110
11117
|
try {
|
|
@@ -11126,7 +11133,8 @@ async function dispatchParsedCommandInner(parsed, startedAt) {
|
|
|
11126
11133
|
flags: commandFlags,
|
|
11127
11134
|
outputMode: context.outputMode,
|
|
11128
11135
|
recorded: context.getTelemetryMeta(),
|
|
11129
|
-
skillVersion: process.env.MODA_SKILL_VERSION
|
|
11136
|
+
skillVersion: process.env.MODA_SKILL_VERSION,
|
|
11137
|
+
subcommands: telemetrySubcommands
|
|
11130
11138
|
})
|
|
11131
11139
|
});
|
|
11132
11140
|
}
|
|
@@ -11158,7 +11166,8 @@ async function dispatchParsedCommandInner(parsed, startedAt) {
|
|
|
11158
11166
|
flags: commandFlags,
|
|
11159
11167
|
outputMode: context.outputMode,
|
|
11160
11168
|
recorded: context.getTelemetryMeta(),
|
|
11161
|
-
skillVersion: process.env.MODA_SKILL_VERSION
|
|
11169
|
+
skillVersion: process.env.MODA_SKILL_VERSION,
|
|
11170
|
+
subcommands: telemetrySubcommands
|
|
11162
11171
|
})
|
|
11163
11172
|
});
|
|
11164
11173
|
}
|
|
@@ -11184,7 +11193,8 @@ async function dispatchParsedCommandInner(parsed, startedAt) {
|
|
|
11184
11193
|
flags: commandFlags,
|
|
11185
11194
|
outputMode: context.outputMode,
|
|
11186
11195
|
recorded: context.getTelemetryMeta(),
|
|
11187
|
-
skillVersion: process.env.MODA_SKILL_VERSION
|
|
11196
|
+
skillVersion: process.env.MODA_SKILL_VERSION,
|
|
11197
|
+
subcommands: telemetrySubcommands
|
|
11188
11198
|
})
|
|
11189
11199
|
});
|
|
11190
11200
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moda-ai/cli",
|
|
3
|
-
"version": "1.45.
|
|
3
|
+
"version": "1.45.3",
|
|
4
4
|
"description": "CLI for Moda - AI agent analytics and observability",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"scripts": {
|
|
22
22
|
"bundle:skills": "bun scripts/bundle-skills.ts",
|
|
23
|
+
"export:admin-manifest": "bun scripts/export-admin-command-manifest.ts",
|
|
23
24
|
"build": "bun run bundle:skills && tsc --noEmit && bun build ./src/cli.ts ./src/prompt-source-mcp.ts --target=node --format=esm --outdir=dist --splitting --external @inquirer/prompts --external open --external zod",
|
|
24
25
|
"dev": "tsc --watch",
|
|
25
26
|
"typecheck": "tsc --noEmit",
|