@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/README.md +46 -17
- package/dist/{cli-drabjmaj.js → cli-0h32yvwq.js} +3 -3
- package/dist/{cli-scjxgaba.js → cli-4ycvzfdg.js} +2 -2
- package/dist/{cli-yz99t7n8.js → cli-eggpzt87.js} +1 -1
- package/dist/{cli-w22qhyk4.js → cli-q9t1tr1z.js} +101 -79
- package/dist/{cli-bh8gxmm8.js → cli-xwqb83jb.js} +1673 -411
- package/dist/cli.js +8 -8
- package/dist/{harness-4s8pybt1.js → harness-g0jbmgsx.js} +2 -2
- package/dist/{harness-github-actions-53mhczg2.js → harness-github-actions-43kt57xm.js} +2 -2
- package/dist/{index-tbrrfhhf.js → index-a0hvade2.js} +6 -14
- package/dist/prompt-source-mcp.js +9402 -0
- package/dist/{provision-d242y9qd.js → provision-c5sx3s32.js} +3 -3
- package/package.json +4 -3
- package/skills/integration/index.json +3 -3
- package/skills/integration/integration-cloudflare-think/SKILL.md +12 -12
- package/skills/integration/integration-node-vercel-ai-sdk/references/prompt-attribution.md +4 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
selectTenantAndCreateKey
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-4ycvzfdg.js";
|
|
4
4
|
import {
|
|
5
5
|
loadAuthSession
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-eggpzt87.js";
|
|
7
7
|
import {
|
|
8
8
|
CliAuthError,
|
|
9
9
|
resolveIngestUrl,
|
|
10
10
|
resolveModaBaseUrl,
|
|
11
11
|
stringOption
|
|
12
|
-
} from "./cli-
|
|
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.
|
|
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.
|
|
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-
|
|
4
|
-
"cli_version": "1.
|
|
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.
|
|
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.
|
|
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
|
-
|
|
67
|
-
|
|
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
|
|
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
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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
|