@moda-ai/cli 1.55.13 → 1.55.15
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/README.md +12 -0
- package/dist/{agent-rd9deae9.js → agent-a2xwfeeh.js} +9 -9
- package/dist/{cli-ryd7nzke.js → cli-2ars875d.js} +2 -2
- package/dist/{cli-bfmn3bsk.js → cli-3gwbg0xp.js} +2 -2
- package/dist/{cli-4qe6n8am.js → cli-438g4nwh.js} +122 -2
- package/dist/{cli-k7vwt56h.js → cli-53mvsfgn.js} +3 -3
- package/dist/{cli-ssqb8bfw.js → cli-6ca1sz0a.js} +1 -1
- package/dist/{cli-m0fa54ny.js → cli-7fc44hhq.js} +2258 -383
- package/dist/{cli-90hb4ng0.js → cli-86q35fpq.js} +8 -8
- package/dist/{cli-09rr5smg.js → cli-atx672xv.js} +1 -1
- package/dist/{cli-kwz900s4.js → cli-b3cxcxgn.js} +5 -4
- package/dist/{cli-4x9w6ey7.js → cli-kf3d6y8c.js} +1 -1
- package/dist/{cli-34zdvcpg.js → cli-xy6zn80e.js} +5 -5
- package/dist/{cli-y8gbbe9k.js → cli-zdeywyn9.js} +4 -4
- package/dist/cli.js +299 -94
- package/dist/{doctor-8yb6r66e.js → doctor-e2xrbpmp.js} +9 -9
- package/dist/{fix-bt5zn07e.js → fix-v8xka487.js} +7 -7
- package/dist/{harness-9psndqtm.js → harness-28wbzncq.js} +6 -6
- package/dist/{harness-github-actions-nph5t2s7.js → harness-github-actions-301nak95.js} +6 -6
- package/dist/{index-qjaprhrv.js → index-ccdpy9ma.js} +11 -11
- package/dist/{production-intelligence-mg3qp2dg.js → production-intelligence-0wqcvvxk.js} +6 -5
- package/dist/{profile-commands-2g5bjzj2.js → profile-commands-f5kysjrv.js} +3 -3
- package/dist/prompt-source-mcp.js +6 -6
- package/dist/{prompts-mzazn8ce.js → prompts-jg0stjfb.js} +7 -7
- package/dist/{provision-rm0yc08f.js → provision-25bw5rd7.js} +4 -4
- package/dist/{registry-mbz65bjy.js → registry-39xzetsc.js} +4 -4
- package/dist/{skills-sagxq9sc.js → skills-gjesa81c.js} +6 -6
- package/dist/{sync-gkwexz68.js → sync-7ts9psky.js} +8 -8
- package/package.json +1 -1
- package/skills/integration/index.json +2 -2
- package/skills/moda-cli/SKILL.md +31 -4
|
@@ -12,28 +12,28 @@ import {
|
|
|
12
12
|
require_typescript,
|
|
13
13
|
resolvePromptSource,
|
|
14
14
|
safePromptEvidencePath
|
|
15
|
-
} from "./cli-
|
|
15
|
+
} from "./cli-7fc44hhq.js";
|
|
16
16
|
import {
|
|
17
17
|
createCommandContext
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-kf3d6y8c.js";
|
|
19
19
|
import {
|
|
20
20
|
assertFlags,
|
|
21
21
|
assertPositionals
|
|
22
|
-
} from "./cli-
|
|
22
|
+
} from "./cli-53mvsfgn.js";
|
|
23
23
|
import {
|
|
24
24
|
callControlAPI,
|
|
25
25
|
callDataAPI
|
|
26
|
-
} from "./cli-
|
|
26
|
+
} from "./cli-2ars875d.js";
|
|
27
27
|
import {
|
|
28
28
|
setPlatformTenantOverride
|
|
29
|
-
} from "./cli-
|
|
29
|
+
} from "./cli-atx672xv.js";
|
|
30
30
|
import {
|
|
31
31
|
CliInputError,
|
|
32
32
|
EXIT_ERROR,
|
|
33
33
|
EXIT_OK,
|
|
34
34
|
resolveApiTenantId,
|
|
35
35
|
validateConfig
|
|
36
|
-
} from "./cli-
|
|
36
|
+
} from "./cli-b3cxcxgn.js";
|
|
37
37
|
import {
|
|
38
38
|
__commonJS,
|
|
39
39
|
__require,
|
|
@@ -6731,7 +6731,7 @@ async function runPromptSyncExclusive(flags, profileOptions, options) {
|
|
|
6731
6731
|
const analyzedDefinitions = new Map;
|
|
6732
6732
|
if (flags["no-analyze"] !== "true") {
|
|
6733
6733
|
options.onProgress?.("Analyzing prompt sources before sync.");
|
|
6734
|
-
const { analyzeHarnessPrompts } = await import("./harness-
|
|
6734
|
+
const { analyzeHarnessPrompts } = await import("./harness-28wbzncq.js");
|
|
6735
6735
|
const result = await analyzeHarnessPrompts({
|
|
6736
6736
|
rootDir: process.cwd(),
|
|
6737
6737
|
existing: established.flatMap((prompt) => prompt.sourceDefinition ? [prompt.sourceDefinition.source] : []),
|
|
@@ -7061,7 +7061,7 @@ async function migratePromptManifest(options = {}) {
|
|
|
7061
7061
|
let addedSources = [];
|
|
7062
7062
|
let pendingSources = [];
|
|
7063
7063
|
if (options.discover) {
|
|
7064
|
-
const { analyzeHarnessPrompts } = await import("./harness-
|
|
7064
|
+
const { analyzeHarnessPrompts } = await import("./harness-28wbzncq.js");
|
|
7065
7065
|
const result = await analyzeHarnessPrompts({
|
|
7066
7066
|
rootDir: root,
|
|
7067
7067
|
existing: manifest.sources,
|
|
@@ -1224,7 +1224,8 @@ function createCliOutput(options) {
|
|
|
1224
1224
|
mode: options.mode,
|
|
1225
1225
|
quiet: options.quiet === true,
|
|
1226
1226
|
writeData(data, writeOptions = {}) {
|
|
1227
|
-
|
|
1227
|
+
const bypassQuiet = writeOptions.bypassQuiet === true;
|
|
1228
|
+
if (options.quiet && !bypassQuiet)
|
|
1228
1229
|
return;
|
|
1229
1230
|
if (options.mode === "agent" || options.mode === "agent-stream") {
|
|
1230
1231
|
if (state.terminal)
|
|
@@ -1233,13 +1234,13 @@ function createCliOutput(options) {
|
|
|
1233
1234
|
if (envelope.errors.some((error) => error.code === "output_error"))
|
|
1234
1235
|
state.outputError = true;
|
|
1235
1236
|
if (options.mode === "agent-stream") {
|
|
1236
|
-
ensureStarted();
|
|
1237
|
+
ensureStarted({ bypassQuiet });
|
|
1237
1238
|
emitEvent({
|
|
1238
1239
|
event: envelope.status === "error" ? "error" : "completed",
|
|
1239
1240
|
status: envelope.status,
|
|
1240
1241
|
result: envelope,
|
|
1241
1242
|
...envelope.errors[0] ? { error: envelope.errors[0] } : {}
|
|
1242
|
-
});
|
|
1243
|
+
}, { bypassQuiet });
|
|
1243
1244
|
} else {
|
|
1244
1245
|
state.terminal = true;
|
|
1245
1246
|
safeWriteStdout(`${JSON.stringify(envelope)}
|
|
@@ -1945,4 +1946,4 @@ function extractSuggestedCommands(text) {
|
|
|
1945
1946
|
return commands.length > 0 ? commands : undefined;
|
|
1946
1947
|
}
|
|
1947
1948
|
|
|
1948
|
-
export { PROD_BASE_URL, DEFAULT_INGEST_URL, getModaPaths, getModaDir, isLoopbackBaseUrl, describeBaseUrlSource, loadProfileConfig, saveProfileConfig, getActiveProfile, setActiveProfile, upsertProfile, clearStoredApiKeyCredentials, secretFilePathFromRef, resolveSecretReference, resolveApiKeyFromActiveProfile, resolveTenantIdFromActiveProfile, ensureSecretFilePermissions, writeSecretJsonFile, CliInputError, CliAccessError, CliInputRequiredError, CliAuthError, CliNotFoundError, CliCancellationError, isNetworkLikeError, isApiLikeError, apiErrorStatus, VERSION, MODA_BASE_URL, loadCliConfig, saveCliConfig, resolveApiKey, embeddedTenantIdFromApiKey, resolveIngestUrl2 as resolveIngestUrl, resolveTenantId, resolveApiTenantId, resolveModaBaseUrl, validateConfig, recordApiRequest, getApiRequestCount, resetApiRequestCount, MAX_SCANNED_FILE_BYTES, DEFAULT_MAX_INVENTORY_FILES, DEFAULT_MAX_INVENTORY_TEXT_BYTES, MAX_RECORDED_SKIPS, SKIPPED_DIRS, isSkippedDir, isSkippedPathPrefix, isEvalLikePath, shouldInventoryFile, isTextFile, isSecretishPath, SECRET_KEYS, redactDeep, redactString, packSnapshot, setAgentUpdateNotice, EXIT_OK, EXIT_ERROR, EXIT_DEGRADED, EXIT_AUTH_REQUIRED, EXIT_INPUT_REQUIRED, EXIT_CANCELLED, AGENT_ERROR_CODES, wasOutputCancelled, safeWriteStdout, safeWriteStderr, explicitOutputMode, outputModeFromFlags, resolveOutputMode, createCliOutput, agentEnvelopeFits, agentMaxOutputBytes };
|
|
1949
|
+
export { PROD_BASE_URL, DEFAULT_INGEST_URL, getModaPaths, getModaDir, isLoopbackBaseUrl, describeBaseUrlSource, loadProfileConfig, saveProfileConfig, getActiveProfile, setActiveProfile, upsertProfile, clearStoredApiKeyCredentials, secretFilePathFromRef, resolveSecretReference, resolveApiKeyFromActiveProfile, resolveTenantIdFromActiveProfile, ensureSecretFilePermissions, writeSecretJsonFile, CliInputError, CliAccessError, CliInputRequiredError, CliAuthError, CliNotFoundError, CliCancellationError, isNetworkLikeError, isApiLikeError, apiErrorStatus, VERSION, MODA_BASE_URL, loadCliConfig, saveCliConfig, resolveApiKey, embeddedTenantIdFromApiKey, resolveIngestUrl2 as resolveIngestUrl, resolveTenantId, resolveApiTenantId, resolveModaBaseUrl, validateConfig, recordApiRequest, getApiRequestCount, resetApiRequestCount, MAX_SCANNED_FILE_BYTES, DEFAULT_MAX_INVENTORY_FILES, DEFAULT_MAX_INVENTORY_TEXT_BYTES, MAX_RECORDED_SKIPS, SKIPPED_DIRS, isSkippedDir, isSkippedPathPrefix, isEvalLikePath, shouldInventoryFile, isTextFile, isSecretishPath, SECRET_KEYS, redactDeep, redactString, packSnapshot, setAgentUpdateNotice, EXIT_OK, EXIT_ERROR, EXIT_DEGRADED, EXIT_AUTH_REQUIRED, EXIT_INPUT_REQUIRED, EXIT_CANCELLED, AGENT_ERROR_CODES, wasOutputCancelled, safeWriteStdout, safeWriteStderr, explicitOutputMode, outputModeFromFlags, resolveOutputMode, createCliOutput, agentEnvelopeFits, errorToAgentError, agentMaxOutputBytes };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isAuthSessionValid,
|
|
3
3
|
loadAuthSession
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-6ca1sz0a.js";
|
|
5
5
|
import {
|
|
6
6
|
inspectPromptManifest
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-86q35fpq.js";
|
|
8
8
|
import {
|
|
9
9
|
readHarnessSyncState,
|
|
10
10
|
renderDoctorHuman,
|
|
11
11
|
renderStatusHuman,
|
|
12
12
|
scanHarness
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-7fc44hhq.js";
|
|
14
14
|
import {
|
|
15
15
|
callDataAPI
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-2ars875d.js";
|
|
17
17
|
import {
|
|
18
18
|
ensureSecretFilePermissions,
|
|
19
19
|
getActiveProfile,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
resolveSecretReference,
|
|
28
28
|
resolveTenantId,
|
|
29
29
|
secretFilePathFromRef
|
|
30
|
-
} from "./cli-
|
|
30
|
+
} from "./cli-b3cxcxgn.js";
|
|
31
31
|
|
|
32
32
|
// src/doctor.ts
|
|
33
33
|
import { createHash } from "node:crypto";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCommandContext
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-kf3d6y8c.js";
|
|
4
4
|
import {
|
|
5
5
|
assertFlags,
|
|
6
6
|
assertPositionals
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-53mvsfgn.js";
|
|
8
8
|
import {
|
|
9
9
|
callControlAPI
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-2ars875d.js";
|
|
11
11
|
import {
|
|
12
12
|
CliInputError,
|
|
13
13
|
recordApiRequest,
|
|
14
14
|
resolveApiKey,
|
|
15
15
|
resolveIngestUrl,
|
|
16
16
|
resolveTenantId
|
|
17
|
-
} from "./cli-
|
|
17
|
+
} from "./cli-b3cxcxgn.js";
|
|
18
18
|
import {
|
|
19
19
|
SKILL_SOURCE_HARNESS,
|
|
20
20
|
SKILL_SOURCE_INTEGRATION_BUNDLED,
|