@moda-ai/cli 1.55.33 → 1.55.34
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema_version": "moda.skill_index.v1",
|
|
3
|
-
"bundled_at": "2026-10-
|
|
4
|
-
"cli_version": "1.55.
|
|
3
|
+
"bundled_at": "2026-10-17T05:16:11.378Z",
|
|
4
|
+
"cli_version": "1.55.34",
|
|
5
5
|
"skills": [
|
|
6
6
|
{
|
|
7
7
|
"id": "integration-cloudflare-think",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
"id": "integration-node-vercel-ai-sdk",
|
|
66
|
-
"version": "1.0.
|
|
66
|
+
"version": "1.0.3",
|
|
67
67
|
"summary": "Instrument Vercel AI SDK calls (generateText, streamText, generateObject) with Moda telemetry in a Node.js or TypeScript app.",
|
|
68
68
|
"targets": {
|
|
69
69
|
"language": "node",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: integration-node-vercel-ai-sdk
|
|
3
3
|
name: "Integrate Moda with the Vercel AI SDK (Node.js / TypeScript)"
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.3
|
|
5
5
|
category: integration
|
|
6
6
|
targets:
|
|
7
7
|
language: node
|
|
@@ -108,8 +108,23 @@ const result = await generateText({
|
|
|
108
108
|
```
|
|
109
109
|
|
|
110
110
|
Streaming works the same way; telemetry is captured after the stream
|
|
111
|
-
completes.
|
|
112
|
-
|
|
111
|
+
completes.
|
|
112
|
+
|
|
113
|
+
If a call site already passes `experimental_telemetry`, find where its spans
|
|
114
|
+
go. When they go only to Langfuse (the app registers `LangfuseSpanProcessor`
|
|
115
|
+
from `@langfuse/otel` or `LangfuseExporter` from `langfuse-vercel`, usually
|
|
116
|
+
in `instrumentation.ts`), Moda replaces Langfuse: replace the setting with
|
|
117
|
+
`Moda.getVercelAITelemetry()` and remove that Langfuse span processor or
|
|
118
|
+
exporter from the OpenTelemetry setup, leaving any other span processors and
|
|
119
|
+
exporters as they are. Pass the setting's `functionId`, `recordInputs`,
|
|
120
|
+
`recordOutputs` and its metadata through the helper's options, for example
|
|
121
|
+
`Moda.getVercelAITelemetry({ functionId, metadata })`, dropping only
|
|
122
|
+
Langfuse's own keys (`sessionId`, `userId` and keys starting with
|
|
123
|
+
`langfuse`). Carry its `sessionId` and `userId` metadata into the
|
|
124
|
+
conversation and user ids in Step 5. Leave the Langfuse package installed and
|
|
125
|
+
report what you replaced, so the user can remove it. If the spans go
|
|
126
|
+
anywhere else, or you cannot tell, stop and report that call site instead of
|
|
127
|
+
overwriting it.
|
|
113
128
|
|
|
114
129
|
## Step 5: Set conversation and user context
|
|
115
130
|
|