@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.cjs +1 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -6
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/version.ts
|
|
2
|
-
var SDK_VERSION = "ts-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
|
}
|