@jaypie/mcp 0.8.70 → 0.8.72
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.
|
@@ -9,7 +9,7 @@ import { gt } from 'semver';
|
|
|
9
9
|
/**
|
|
10
10
|
* Docs Suite - Documentation services (skill, version, release_notes)
|
|
11
11
|
*/
|
|
12
|
-
const BUILD_VERSION_STRING = "@jaypie/mcp@0.8.
|
|
12
|
+
const BUILD_VERSION_STRING = "@jaypie/mcp@0.8.72#c0c8b6f2"
|
|
13
13
|
;
|
|
14
14
|
const __filename$1 = fileURLToPath(import.meta.url);
|
|
15
15
|
const __dirname$1 = path.dirname(__filename$1);
|
package/package.json
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
version: 1.2.39
|
|
3
|
+
date: 2026-06-16
|
|
4
|
+
summary: Fix MODEL.GPT_MINI/GPT_NANO typo (gpt-5.5-* → gpt-5.4-*) to match OpenAI provider constants
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## @jaypie/llm 1.2.39
|
|
8
|
+
|
|
9
|
+
### Fixes
|
|
10
|
+
|
|
11
|
+
- **Model constants**: `MODEL.GPT_MINI` and `MODEL.GPT_NANO` were pinned to nonexistent `gpt-5.5-mini`/`gpt-5.5-nano`; corrected to `gpt-5.4-mini`/`gpt-5.4-nano`, matching `PROVIDER.OPENAI.MODEL.SMALL`/`TINY` and the CI test matrix.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
version: 1.2.40
|
|
3
|
+
date: 2026-06-17
|
|
4
|
+
summary: Opt-in Datadog LLM Observability span emission from operate()/stream() via DD_LLMOBS_ENABLED
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## @jaypie/llm 1.2.40
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
- **LLM Observability**: When `DD_LLMOBS_ENABLED` is set, `operate()` and `stream()` emit Datadog `llm`/`tool` spans (annotated with input, output, and token metrics) plus an enclosing `agent`/`llm` span — no code changes required (#373).
|
|
12
|
+
- Lazy, **bundler-safe** `dd-trace` resolution (computed module specifier); `dd-trace` is not a dependency. Fully no-op when the flag is unset or `dd-trace` is absent, and instrumentation failures never break the underlying call.
|
|
13
|
+
- Parenting is AsyncLocalStorage-based: spans attach to any active enclosing LLMObs span (e.g. a consumer `llmobs.trace({ kind: "workflow" })`).
|
|
14
|
+
- `operate()` spans nest fully (model + tool under the enclosing span). `stream()` spans attach to an active enclosing span but are siblings within a single stream (the held-open streamed model span is not active when tools run).
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
version: 0.8.71
|
|
3
|
+
date: 2026-06-16
|
|
4
|
+
summary: Add @jaypie/llm 1.2.39 release notes; document model-first Llm constructor
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Changes
|
|
8
|
+
|
|
9
|
+
- Adds release notes for `@jaypie/llm` 1.2.39 (`MODEL.GPT_MINI`/`GPT_NANO` typo fix).
|
|
10
|
+
- Documents that `new Llm(model)` accepts a model name as its first argument (provider auto-detected, model retained) in the `llm` skill.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
version: 0.8.72
|
|
3
|
+
date: 2026-06-17
|
|
4
|
+
summary: Add @jaypie/llm 1.2.40 release notes; document LLM Observability (DD_LLMOBS_ENABLED) in the llm skill
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Changes
|
|
8
|
+
|
|
9
|
+
- Adds release notes for `@jaypie/llm` 1.2.40 (opt-in Datadog LLM Observability span emission).
|
|
10
|
+
- Documents the `DD_LLMOBS_ENABLED` LLM Observability behavior and span parenting semantics in the `llm` skill.
|
package/skills/llm.md
CHANGED
|
@@ -315,6 +315,15 @@ const review1 = await llm.operate(code1);
|
|
|
315
315
|
const review2 = await llm.operate(code2);
|
|
316
316
|
```
|
|
317
317
|
|
|
318
|
+
The first constructor argument may be a provider name **or** a model name. When a model name is passed, the provider is auto-detected and the model is retained:
|
|
319
|
+
|
|
320
|
+
```typescript
|
|
321
|
+
import Llm, { LLM } from "@jaypie/llm";
|
|
322
|
+
|
|
323
|
+
const llm = new Llm("claude-sonnet-4-6"); // -> anthropic, claude-sonnet-4-6
|
|
324
|
+
const flash = new Llm(LLM.MODEL.GEMINI_FLASH); // -> google, gemini-3.5-flash
|
|
325
|
+
```
|
|
326
|
+
|
|
318
327
|
## Environment Variables
|
|
319
328
|
|
|
320
329
|
```bash
|
|
@@ -327,6 +336,28 @@ XAI_API_KEY # Required for xAI (Grok)
|
|
|
327
336
|
|
|
328
337
|
Keys are resolved via `getEnvSecret()` which supports AWS Secrets Manager.
|
|
329
338
|
|
|
339
|
+
## LLM Observability (Datadog)
|
|
340
|
+
|
|
341
|
+
Set `DD_LLMOBS_ENABLED` (any truthy value except `false`/`0`) and `operate()`/`stream()` emit Datadog [LLM Observability](https://docs.datadoghq.com/llm_observability/) spans with **no code changes**:
|
|
342
|
+
|
|
343
|
+
- Enclosing span per call (`agent` when tools are configured, else `llm`)
|
|
344
|
+
- Child `llm` span per model request — annotated with input, output, token metrics
|
|
345
|
+
- Child `tool` span per tool execution — annotated with args + result
|
|
346
|
+
|
|
347
|
+
```bash
|
|
348
|
+
DD_LLMOBS_ENABLED=true # opt in; unset = fully no-op
|
|
349
|
+
DD_LLMOBS_ML_APP=my-app # ML app name (dd-trace standard)
|
|
350
|
+
```
|
|
351
|
+
|
|
352
|
+
Behavior:
|
|
353
|
+
|
|
354
|
+
- **Opt-in and lazy** — `dd-trace` is resolved at runtime via a computed module specifier, so it is **bundler-safe** (esbuild will not bundle it) and **not** a dependency. Absence is a silent no-op; instrumentation failures never break the LLM call.
|
|
355
|
+
- **Parenting is AsyncLocalStorage-based** — spans attach to whatever LLMObs span is active when created. Wrapping a call in a consumer span (e.g. `llmobs.trace({ kind: "workflow" }, () => Llm.operate(...))`) nests ours under it. The Datadog Lambda layer provides APM spans automatically, but not an enclosing *LLMObs* span around an arbitrary handler.
|
|
356
|
+
- **`operate()`** spans form a full tree (model + tool nest under the enclosing span).
|
|
357
|
+
- **`stream()`** spans attach to any active enclosing span, but within a single stream the `llm` and `tool` spans are **siblings** — the streamed model span is held open across `yield` boundaries, so it is not the active span when tools run.
|
|
358
|
+
|
|
359
|
+
For esbuild-bundled Lambda handlers that also want dd-trace auto-instrumentation, wire the `dd-trace/esbuild` plugin with `keepNames: true`; the spans above do not require it.
|
|
360
|
+
|
|
330
361
|
## Error Handling
|
|
331
362
|
|
|
332
363
|
The package auto-retries rate limits and transient errors:
|