@moda-ai/cli 1.32.0 → 1.34.0

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 CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  runPromptsCommand,
9
9
  runSkillsCommand,
10
10
  runStatusCommand
11
- } from "./cli-w22qhyk4.js";
11
+ } from "./cli-q9t1tr1z.js";
12
12
  import {
13
13
  ApiError,
14
14
  HARNESS_REPORT_APPROVAL_PATH,
@@ -29,7 +29,7 @@ import {
29
29
  summarizeHarness,
30
30
  terminalStyles,
31
31
  validateHarnessReport
32
- } from "./cli-bh8gxmm8.js";
32
+ } from "./cli-xwqb83jb.js";
33
33
  import {
34
34
  authFetch,
35
35
  clearAuthSession,
@@ -37,7 +37,7 @@ import {
37
37
  loadAuthSession,
38
38
  login,
39
39
  revokeCliSessionToken
40
- } from "./cli-yz99t7n8.js";
40
+ } from "./cli-eggpzt87.js";
41
41
  import {
42
42
  AGENT_ERROR_CODES,
43
43
  CliAccessError,
@@ -84,7 +84,7 @@ import {
84
84
  validateConfig,
85
85
  wasOutputCancelled,
86
86
  writeSecretJsonFile
87
- } from "./cli-drabjmaj.js";
87
+ } from "./cli-0h32yvwq.js";
88
88
 
89
89
  // src/cli.ts
90
90
  import { z as z2 } from "zod";
@@ -6580,7 +6580,7 @@ var commandRegistry = createCommandRegistry([
6580
6580
  resetApiRequestCountBeforeRun: true,
6581
6581
  telemetry: "result",
6582
6582
  handler: async (context) => {
6583
- const { runInit } = await import("./index-tbrrfhhf.js");
6583
+ const { runInit } = await import("./index-a0hvade2.js");
6584
6584
  if (context.outputMode === "agent-stream") {
6585
6585
  context.output.writeEvent({
6586
6586
  event: "started",
@@ -6621,7 +6621,7 @@ var commandRegistry = createCommandRegistry([
6621
6621
  resetApiRequestCountBeforeRun: true,
6622
6622
  telemetry: "result-and-error",
6623
6623
  handler: async (context) => {
6624
- const { runProvision } = await import("./provision-d242y9qd.js");
6624
+ const { runProvision } = await import("./provision-c5sx3s32.js");
6625
6625
  return runProvision(context, {
6626
6626
  resumeCommand: buildResumeCommand("provision", context.rawFlags)
6627
6627
  });
@@ -7076,13 +7076,13 @@ var commandRegistry = createCommandRegistry([
7076
7076
  description: "Analyze prompt sources and upload verified versions to Moda Cloud",
7077
7077
  usage: "moda prompts sync [--analyst=local-scan|claude|codex|cursor|auto] [--no-analyze] [--from-harness=<report>] [--watch] [--dry-run]",
7078
7078
  flags: [
7079
- { name: "--analyst=local-scan|claude|codex|cursor|auto", description: "Prompt discovery analyst; defaults to deterministic local-scan. Other values enable bounded agent fallback." },
7079
+ { name: "--analyst=local-scan|claude|codex|cursor|auto", description: "Defaults to auto: deterministic discovery, installed-agent extension, and independent verification. Use local-scan for no agent calls." },
7080
7080
  { name: "--assist=none", description: "Disable agent fallback, including with an explicit analyst." },
7081
7081
  { name: "--no-analyze", description: "Skip discovery and sync only configured sources." },
7082
7082
  { name: "--from-harness=<report>", description: "Read and register harness prompt source mappings before sync." },
7083
7083
  { name: "--allow-untrack", description: "Explicitly remove missing keys from local tracking; registry history remains." },
7084
7084
  { name: "--watch", description: "Analyze before syncing; re-upload when mapped prompt files change." },
7085
- { name: "--dry-run", description: "Show what would be uploaded without writing." }
7085
+ { name: "--dry-run", description: "Preview without saving mappings or registry versions; deterministic unless an analyst is explicitly selected." }
7086
7086
  ],
7087
7087
  examples: ["moda prompts sync", "moda prompts sync --dry-run"]
7088
7088
  },
@@ -42,8 +42,8 @@ import {
42
42
  writeHarnessAnalyzeResult,
43
43
  writeHarnessArtifacts,
44
44
  writeHumanProgress
45
- } from "./cli-bh8gxmm8.js";
46
- import"./cli-drabjmaj.js";
45
+ } from "./cli-xwqb83jb.js";
46
+ import"./cli-0h32yvwq.js";
47
47
  export {
48
48
  writeHumanProgress,
49
49
  writeHarnessArtifacts,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  buildSourceSnapshot
3
- } from "./cli-bh8gxmm8.js";
4
- import"./cli-drabjmaj.js";
3
+ } from "./cli-xwqb83jb.js";
4
+ import"./cli-0h32yvwq.js";
5
5
 
6
6
  // src/harness-github-actions.ts
7
7
  var DEFAULT_MODA_GITHUB_URL = "https://moda-github.modas.workers.dev";
@@ -10,7 +10,7 @@ import {
10
10
  runPromptSync,
11
11
  runSkillSync,
12
12
  upsertSkillManifestRecord
13
- } from "./cli-w22qhyk4.js";
13
+ } from "./cli-q9t1tr1z.js";
14
14
  import {
15
15
  codingAgentDisplayName,
16
16
  describeCodingAgentEvent,
@@ -28,14 +28,14 @@ import {
28
28
  runHarnessCommand,
29
29
  startRemoteAnalyze,
30
30
  stripAnsi
31
- } from "./cli-bh8gxmm8.js";
31
+ } from "./cli-xwqb83jb.js";
32
32
  import {
33
33
  selectTenantAndCreateKey
34
- } from "./cli-scjxgaba.js";
34
+ } from "./cli-4ycvzfdg.js";
35
35
  import {
36
36
  loadToken,
37
37
  login
38
- } from "./cli-yz99t7n8.js";
38
+ } from "./cli-eggpzt87.js";
39
39
  import {
40
40
  CliAuthError,
41
41
  CliInputError,
@@ -43,7 +43,7 @@ import {
43
43
  createCommandContext,
44
44
  resolveIngestUrl,
45
45
  resolveModaBaseUrl
46
- } from "./cli-drabjmaj.js";
46
+ } from "./cli-0h32yvwq.js";
47
47
 
48
48
  // src/init/index.ts
49
49
  import { existsSync as existsSync6, mkdirSync as mkdirSync5, readdirSync as readdirSync4, readFileSync as readFileSync5, writeFileSync as writeFileSync4 } from "node:fs";
@@ -2025,15 +2025,7 @@ Harness analysis keeps running on Moda. Resume anytime with \`${HARNESS_PULL_REC
2025
2025
  await initPrompts({ silent: true });
2026
2026
  laneBoard?.startLane("prompts", "Prompts", { detail: "Created or verified .moda/prompts.yml" });
2027
2027
  try {
2028
- const reportPath = join6(process.cwd(), ".moda/harness-report.json");
2029
- let sourceReport;
2030
- if (existsSync6(reportPath)) {
2031
- const report = JSON.parse(readFileSync5(reportPath, "utf8"));
2032
- const prompts = report?.graph?.artifacts?.filter((item) => item.type === "prompt") ?? [];
2033
- if (prompts.length)
2034
- sourceReport = reportPath;
2035
- }
2036
- const promptSync = await runPromptSync(sourceReport ? { "from-harness": sourceReport } : {}, { profile });
2028
+ const promptSync = await runPromptSync({}, { profile });
2037
2029
  laneBoard?.complete("prompts", promptSync.synced.length > 0 ? `${promptSync.synced.length} prompt(s) synced` : "manifest ready (no prompt files to sync yet)");
2038
2030
  } catch (err) {
2039
2031
  const message = err instanceof Error ? err.message : String(err);