@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.
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  selectTenantAndCreateKey
3
- } from "./cli-scjxgaba.js";
3
+ } from "./cli-4ycvzfdg.js";
4
4
  import {
5
5
  loadAuthSession
6
- } from "./cli-yz99t7n8.js";
6
+ } from "./cli-eggpzt87.js";
7
7
  import {
8
8
  CliAuthError,
9
9
  resolveIngestUrl,
10
10
  resolveModaBaseUrl,
11
11
  stringOption
12
- } from "./cli-drabjmaj.js";
12
+ } from "./cli-0h32yvwq.js";
13
13
 
14
14
  // src/provision.ts
15
15
  async function runProvision(context, options = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moda-ai/cli",
3
- "version": "1.32.0",
3
+ "version": "1.34.0",
4
4
  "description": "CLI for Moda - AI agent analytics and observability",
5
5
  "type": "module",
6
6
  "bin": {
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "scripts": {
22
22
  "bundle:skills": "bun scripts/bundle-skills.ts",
23
- "build": "bun run bundle:skills && tsc --noEmit && bun build ./src/cli.ts --target=node --format=esm --outdir=dist --splitting --external @inquirer/prompts --external open --external zod",
23
+ "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
24
  "dev": "tsc --watch",
25
25
  "typecheck": "tsc --noEmit",
26
26
  "test": "bun run bundle:skills && vitest run",
@@ -51,7 +51,8 @@
51
51
  "fast-glob": "^3.3.3",
52
52
  "open": "^11.0.0",
53
53
  "yaml": "^2.9.1",
54
- "zod": "^3.24.1"
54
+ "zod": "^3.25.76",
55
+ "@modelcontextprotocol/sdk": "^1.30.0"
55
56
  },
56
57
  "devDependencies": {
57
58
  "@moda/eslint-config": "*",
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "schema_version": "moda.skill_index.v1",
3
- "bundled_at": "2026-09-18T05:32:32.364Z",
4
- "cli_version": "1.32.0",
3
+ "bundled_at": "2026-09-21T22:32:21.368Z",
4
+ "cli_version": "1.34.0",
5
5
  "skills": [
6
6
  {
7
7
  "id": "integration-cloudflare-think",
8
- "version": "1.0.0",
8
+ "version": "1.1.0",
9
9
  "summary": "Instrument Think on Workers with AI SDK 7, prompt versions, and acknowledged JSON export.",
10
10
  "targets": {
11
11
  "language": "node",
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  id: integration-cloudflare-think
3
3
  name: "Integrate Moda with Cloudflare Think"
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  category: integration
6
6
  targets:
7
7
  language: node
@@ -63,21 +63,21 @@ runtime termination does not have durable archival guarantees.
63
63
 
64
64
  ## 4. Ingest reusable prompts when requested
65
65
 
66
- Find the source prompt (`getSystemPrompt` or context configuration), preserving
67
- its current location and assembly logic. With a CLI supporting source selectors:
66
+ Keep source prompts (`getSystemPrompt` or context configuration) in their current
67
+ locations, preserving assembly logic. With a CLI supporting verified discovery:
68
68
 
69
69
  ```bash
70
- moda harness analyze --experimental --concern=prompts --analyst=local-scan
71
- moda prompts init --from-harness=.moda/harness-report.json
72
- moda prompts sync --dry-run
70
+ moda prompts sync --dry-run --analyst=auto
73
71
  ```
74
72
 
75
- Inspect each mapping and dry-run definition. Resolve missing sources with explicit
76
- `.moda/prompts.yml` `sources` entries (stable `key`, repository-relative `path`,
77
- `selector.symbol` or JSON/YAML `selector.pointer`). For unresolved code, an
78
- installed coding agent can investigate via `--analyst=claude|codex|cursor`;
79
- source resolution must still verify its mappings. Never substitute agent-written
80
- prompt text or relocate inline code merely to satisfy discovery.
73
+ This runs deterministic discovery, installed-agent investigation, mapping repair,
74
+ and independent review. Inspect accepted sources and `discovery.pending` before
75
+ syncing. A plain `--dry-run` is deterministic; use an explicit analyst for the
76
+ assisted preview. Let discovery follow imports, loaders and compositions instead
77
+ of hand-writing mappings. Report unresolved relationships with concrete evidence;
78
+ a found fragment does not establish coverage of the assembled system prompt.
79
+ Preserve existing configured mappings and keys. Agent-generated prompt text must
80
+ never substitute for source extraction.
81
81
 
82
82
  Static definitions can register as text/messages; runtime joins, conditions, and
83
83
  functions register as builders with source/dependency fingerprints. Preserve
@@ -3,6 +3,10 @@
3
3
  Only relevant when the repository manages prompts with Moda
4
4
  (`.moda/prompts.yml` exists and prompts are synced with `moda prompts sync`).
5
5
 
6
+ When prompt sync is requested, preview with
7
+ `moda prompts sync --dry-run --analyst=auto` and inspect accepted sources and
8
+ `discovery.pending`. Pending candidates have no registry version to attribute;
9
+ report those gaps instead of inventing IDs or assuming full prompt coverage.
6
10
  Run `moda prompts sync`, read `.moda/prompts.lock.json`, and pass its registry
7
11
  IDs explicitly in telemetry metadata. Keep the application's own rendering.
8
12
  This example uses the tracer-based AI SDK API through v6. Think with AI SDK