@jaypie/mcp 0.8.146 → 0.8.147

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.
@@ -10,7 +10,7 @@ import { gt } from 'semver';
10
10
  /**
11
11
  * Docs Suite - Documentation services (skill, version, release_notes)
12
12
  */
13
- const BUILD_VERSION_STRING = "@jaypie/mcp@0.8.146#5d742935"
13
+ const BUILD_VERSION_STRING = "@jaypie/mcp@0.8.147#f46c48c1"
14
14
  ;
15
15
  const __filename$1 = fileURLToPath(import.meta.url);
16
16
  const __dirname$1 = path.dirname(__filename$1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jaypie/mcp",
3
- "version": "0.8.146",
3
+ "version": "0.8.147",
4
4
  "description": "Jaypie MCP",
5
5
  "repository": {
6
6
  "type": "git",
@@ -0,0 +1,11 @@
1
+ ---
2
+ version: 1.2.98
3
+ date: 2026-09-05
4
+ summary: Pick up @jaypie/logger 1.2.24 and @jaypie/llm 1.3.40
5
+ ---
6
+
7
+ ## Changes
8
+
9
+ - `@jaypie/logger` 1.2.24: `log.sessionActive` reports whether a report session
10
+ is open
11
+ - `@jaypie/llm` 1.3.40: no tally attempt outside an active logger session
@@ -0,0 +1,13 @@
1
+ ---
2
+ version: 1.3.40
3
+ date: 2026-09-05
4
+ summary: Skip the operate tally when no logger session is active
5
+ ---
6
+
7
+ ## Changes
8
+
9
+ - `tallyOperate` returns before building a payload when `log.sessionActive` is
10
+ `false`, so `operate()` and `stream()` outside a Jaypie handler no longer
11
+ produce `[logger] tally() called without active session` at trace (issue #522)
12
+ - Behavior inside a handler is unchanged; the guard compares against `false`, so
13
+ a logger predating `@jaypie/logger` 1.2.24 still tallies
@@ -0,0 +1,24 @@
1
+ ---
2
+ version: 1.2.24
3
+ date: 2026-09-05
4
+ summary: Expose log.sessionActive so libraries can guard optional report and tally calls
5
+ ---
6
+
7
+ ## Changes
8
+
9
+ - `JaypieLogger` exposes a read-only `sessionActive` getter, `true` between
10
+ `setup()` and `teardown()`
11
+ - Libraries that tally opportunistically guard on it rather than calling
12
+ `tally()` unconditionally and having the logger trace
13
+ `[logger] tally() called without active session`
14
+
15
+ ## Usage
16
+
17
+ ```typescript
18
+ if (log.sessionActive !== false) {
19
+ log.tally({ llm: { operates: 1, turns: 2 } });
20
+ }
21
+ ```
22
+
23
+ Compare against `false` rather than testing truthiness: a logger predating this
24
+ release reports `undefined`, where the tally should still be attempted.
@@ -0,0 +1,14 @@
1
+ ---
2
+ version: 0.8.147
3
+ date: 2026-09-05
4
+ summary: Release notes for @jaypie/logger 1.2.24, @jaypie/llm 1.3.40, @jaypie/testkit 1.2.69, and jaypie 1.2.98
5
+ ---
6
+
7
+ ## Changes
8
+
9
+ - Added release notes for `@jaypie/logger` 1.2.24, `@jaypie/llm` 1.3.40,
10
+ `@jaypie/testkit` 1.2.69, and `jaypie` 1.2.98
11
+ - `skills/logs.md` documents `log.sessionActive` and the guard pattern for
12
+ optional tally calls
13
+ - `skills/llm.md` records that the operate tally is skipped outside a handler
14
+ session rather than no-oping inside the logger
@@ -0,0 +1,12 @@
1
+ ---
2
+ version: 1.2.69
3
+ date: 2026-09-05
4
+ summary: Mock log reports sessionActive
5
+ ---
6
+
7
+ ## Changes
8
+
9
+ - `mockLogFactory` sets `sessionActive: true` on the mock log, matching
10
+ `@jaypie/logger` 1.2.24, so code guarding a tally on the session runs under
11
+ test
12
+ - Tests exercising the unguarded path set `log.sessionActive = false`
package/skills/llm.md CHANGED
@@ -676,7 +676,7 @@ Inside a Jaypie handler (`expressHandler`, `lambdaHandler`, and stream variants)
676
676
  - `operates` counts loop executions; repeated calls sum every number
677
677
  - `usage` is keyed `provider:model` — fallback providers appear as separate keys
678
678
  - `tools` appears only when tools were called
679
- - Outside a handler session the tally is a silent no-op
679
+ - Outside a handler session the tally is skipped entirely (guarded on `log.sessionActive`), so a CLI or script calling `operate()` directly emits nothing
680
680
 
681
681
  ## LLM Observability (Datadog)
682
682
 
package/skills/logs.md CHANGED
@@ -132,6 +132,16 @@ log.tally({ llm: { operates: 1, turns: 3 } });
132
132
 
133
133
  Outside an active session `tally()` silently no-ops, so libraries can tally unconditionally. `@jaypie/llm` tallies an `llm` key (turns, tool calls, usage by model) automatically.
134
134
 
135
+ `log.sessionActive` reports whether a session is open. A library that assembles a tally payload guards on it, skipping the work when nothing will collect the result:
136
+
137
+ ```typescript
138
+ if (log.sessionActive !== false) {
139
+ log.tally({ llm: { operates: 1, turns: 2 } });
140
+ }
141
+ ```
142
+
143
+ Compare against `false` rather than testing truthiness: an older logger without the accessor reports `undefined`, and the tally should still be attempted there.
144
+
135
145
  ## Setting Log Level
136
146
 
137
147
  Via environment variable: