@firstflow/core 0.0.5

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.
@@ -0,0 +1,11 @@
1
+ import {
2
+ wrapProvider
3
+ } from "./chunk-RZMKPIBO.mjs";
4
+ import "./chunk-X3T7X4JQ.mjs";
5
+
6
+ // src/anthropic.ts
7
+ import RealAnthropic from "@anthropic-ai/sdk";
8
+ var Anthropic = wrapProvider(RealAnthropic);
9
+ export {
10
+ Anthropic
11
+ };
@@ -0,0 +1,17 @@
1
+ import {
2
+ getRuntime,
3
+ wrapClient
4
+ } from "./chunk-X3T7X4JQ.mjs";
5
+
6
+ // src/_wrap-provider.ts
7
+ function wrapProvider(Real) {
8
+ function Wrapped(...args) {
9
+ const real = new Real(...args);
10
+ return wrapClient(real, getRuntime().wrapContext());
11
+ }
12
+ return Wrapped;
13
+ }
14
+
15
+ export {
16
+ wrapProvider
17
+ };