@moda-ai/cli 1.55.14 → 1.55.16

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.
Files changed (31) hide show
  1. package/README.md +12 -0
  2. package/dist/{agent-y47qgmf1.js → agent-a2xwfeeh.js} +9 -9
  3. package/dist/{cli-ryd7nzke.js → cli-2ars875d.js} +2 -2
  4. package/dist/{cli-bfmn3bsk.js → cli-3gwbg0xp.js} +2 -2
  5. package/dist/{cli-4qe6n8am.js → cli-438g4nwh.js} +122 -2
  6. package/dist/{cli-k7vwt56h.js → cli-53mvsfgn.js} +3 -3
  7. package/dist/{cli-ssqb8bfw.js → cli-6ca1sz0a.js} +1 -1
  8. package/dist/{cli-k9nae6t9.js → cli-7fc44hhq.js} +1123 -187
  9. package/dist/{cli-ndn5m6wn.js → cli-86q35fpq.js} +8 -8
  10. package/dist/{cli-09rr5smg.js → cli-atx672xv.js} +1 -1
  11. package/dist/{cli-kwz900s4.js → cli-b3cxcxgn.js} +5 -4
  12. package/dist/{cli-4x9w6ey7.js → cli-kf3d6y8c.js} +1 -1
  13. package/dist/{cli-weqp7xc1.js → cli-xy6zn80e.js} +5 -5
  14. package/dist/{cli-y8gbbe9k.js → cli-zdeywyn9.js} +4 -4
  15. package/dist/cli.js +504 -150
  16. package/dist/{doctor-grvx6xx0.js → doctor-e2xrbpmp.js} +9 -9
  17. package/dist/{fix-91sr76gw.js → fix-v8xka487.js} +7 -7
  18. package/dist/{harness-vm0xd80p.js → harness-28wbzncq.js} +6 -6
  19. package/dist/{harness-github-actions-tmy3gqwa.js → harness-github-actions-301nak95.js} +6 -6
  20. package/dist/{index-f6cydfxg.js → index-ccdpy9ma.js} +11 -11
  21. package/dist/{production-intelligence-mg3qp2dg.js → production-intelligence-0wqcvvxk.js} +6 -5
  22. package/dist/{profile-commands-2g5bjzj2.js → profile-commands-f5kysjrv.js} +3 -3
  23. package/dist/prompt-source-mcp.js +6 -6
  24. package/dist/{prompts-kw5kzm39.js → prompts-jg0stjfb.js} +7 -7
  25. package/dist/{provision-rm0yc08f.js → provision-25bw5rd7.js} +4 -4
  26. package/dist/{registry-mbz65bjy.js → registry-39xzetsc.js} +4 -4
  27. package/dist/{skills-sagxq9sc.js → skills-gjesa81c.js} +6 -6
  28. package/dist/{sync-xv04wnth.js → sync-7ts9psky.js} +8 -8
  29. package/package.json +1 -1
  30. package/skills/integration/index.json +2 -2
  31. 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-k9nae6t9.js";
15
+ } from "./cli-7fc44hhq.js";
16
16
  import {
17
17
  createCommandContext
18
- } from "./cli-4x9w6ey7.js";
18
+ } from "./cli-kf3d6y8c.js";
19
19
  import {
20
20
  assertFlags,
21
21
  assertPositionals
22
- } from "./cli-k7vwt56h.js";
22
+ } from "./cli-53mvsfgn.js";
23
23
  import {
24
24
  callControlAPI,
25
25
  callDataAPI
26
- } from "./cli-ryd7nzke.js";
26
+ } from "./cli-2ars875d.js";
27
27
  import {
28
28
  setPlatformTenantOverride
29
- } from "./cli-09rr5smg.js";
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-kwz900s4.js";
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-vm0xd80p.js");
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-vm0xd80p.js");
7064
+ const { analyzeHarnessPrompts } = await import("./harness-28wbzncq.js");
7065
7065
  const result = await analyzeHarnessPrompts({
7066
7066
  rootDir: root,
7067
7067
  existing: manifest.sources,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveTenantId
3
- } from "./cli-kwz900s4.js";
3
+ } from "./cli-b3cxcxgn.js";
4
4
 
5
5
  // src/api-key-headers.ts
6
6
  var PLATFORM_API_KEY_PREFIX = "moda_pk_";
@@ -1224,7 +1224,8 @@ function createCliOutput(options) {
1224
1224
  mode: options.mode,
1225
1225
  quiet: options.quiet === true,
1226
1226
  writeData(data, writeOptions = {}) {
1227
- if (options.quiet)
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,7 +1,7 @@
1
1
  import {
2
2
  createCliOutput,
3
3
  outputModeFromFlags
4
- } from "./cli-kwz900s4.js";
4
+ } from "./cli-b3cxcxgn.js";
5
5
 
6
6
  // src/command-context.ts
7
7
  function flagEnabled(flags, key) {
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  isAuthSessionValid,
3
3
  loadAuthSession
4
- } from "./cli-ssqb8bfw.js";
4
+ } from "./cli-6ca1sz0a.js";
5
5
  import {
6
6
  inspectPromptManifest
7
- } from "./cli-ndn5m6wn.js";
7
+ } from "./cli-86q35fpq.js";
8
8
  import {
9
9
  readHarnessSyncState,
10
10
  renderDoctorHuman,
11
11
  renderStatusHuman,
12
12
  scanHarness
13
- } from "./cli-k9nae6t9.js";
13
+ } from "./cli-7fc44hhq.js";
14
14
  import {
15
15
  callDataAPI
16
- } from "./cli-ryd7nzke.js";
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-kwz900s4.js";
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-4x9w6ey7.js";
3
+ } from "./cli-kf3d6y8c.js";
4
4
  import {
5
5
  assertFlags,
6
6
  assertPositionals
7
- } from "./cli-k7vwt56h.js";
7
+ } from "./cli-53mvsfgn.js";
8
8
  import {
9
9
  callControlAPI
10
- } from "./cli-ryd7nzke.js";
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-kwz900s4.js";
17
+ } from "./cli-b3cxcxgn.js";
18
18
  import {
19
19
  SKILL_SOURCE_HARNESS,
20
20
  SKILL_SOURCE_INTEGRATION_BUNDLED,