@goodtiming/baton-sdk 0.2.0 → 0.3.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/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
 
3
- declare const SDK_VERSION = "ts-0.2.0";
3
+ declare const SDK_VERSION = "ts-0.3.0";
4
4
 
5
5
  /**
6
6
  * Zod schemas + TS types for the Baton event stream per SPEC §11.4.
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
 
3
- declare const SDK_VERSION = "ts-0.2.0";
3
+ declare const SDK_VERSION = "ts-0.3.0";
4
4
 
5
5
  /**
6
6
  * Zod schemas + TS types for the Baton event stream per SPEC §11.4.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/version.ts
2
- var SDK_VERSION = "ts-0.2.0";
2
+ var SDK_VERSION = "ts-0.3.0";
3
3
 
4
4
  // src/events.ts
5
5
  import { z } from "zod";
@@ -457,11 +457,6 @@ function extraMeta(extra) {
457
457
  // src/integrations/mcp/runtimeAdapter.ts
458
458
  function detectAgentRuntime(meta) {
459
459
  if (!meta) return null;
460
- const batonMeta = meta["baton"];
461
- if (batonMeta && typeof batonMeta === "object") {
462
- const runtime = batonMeta["agent_runtime"];
463
- if (typeof runtime === "string" && runtime) return runtime;
464
- }
465
460
  for (const key of Object.keys(meta)) {
466
461
  if (key.startsWith("claudecode/")) return "claude-code";
467
462
  }