@firstflow/core 0.0.6 → 0.0.7
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/anthropic.d.mts +9 -0
- package/dist/anthropic.d.ts +9 -0
- package/dist/openai.d.mts +9 -0
- package/dist/openai.d.ts +9 -0
- package/package.json +7 -3
package/dist/anthropic.d.mts
CHANGED
|
@@ -15,5 +15,14 @@ declare module "@anthropic-ai/sdk/resources/messages/messages" {
|
|
|
15
15
|
|
|
16
16
|
/** Drop-in `Anthropic` client with Firstflow observability built in. */
|
|
17
17
|
declare const Anthropic: typeof RealAnthropic;
|
|
18
|
+
/**
|
|
19
|
+
* Instance type of the wrapped client, so consumers can annotate naturally:
|
|
20
|
+
*
|
|
21
|
+
* private readonly client: Anthropic = new Anthropic();
|
|
22
|
+
*
|
|
23
|
+
* `Anthropic` lives in both the value and type namespaces (the `const` above is
|
|
24
|
+
* the value; this alias is the type), mirroring how the real SDK's class works.
|
|
25
|
+
*/
|
|
26
|
+
type Anthropic = RealAnthropic;
|
|
18
27
|
|
|
19
28
|
export { Anthropic };
|
package/dist/anthropic.d.ts
CHANGED
|
@@ -15,5 +15,14 @@ declare module "@anthropic-ai/sdk/resources/messages/messages" {
|
|
|
15
15
|
|
|
16
16
|
/** Drop-in `Anthropic` client with Firstflow observability built in. */
|
|
17
17
|
declare const Anthropic: typeof RealAnthropic;
|
|
18
|
+
/**
|
|
19
|
+
* Instance type of the wrapped client, so consumers can annotate naturally:
|
|
20
|
+
*
|
|
21
|
+
* private readonly client: Anthropic = new Anthropic();
|
|
22
|
+
*
|
|
23
|
+
* `Anthropic` lives in both the value and type namespaces (the `const` above is
|
|
24
|
+
* the value; this alias is the type), mirroring how the real SDK's class works.
|
|
25
|
+
*/
|
|
26
|
+
type Anthropic = RealAnthropic;
|
|
18
27
|
|
|
19
28
|
export { Anthropic };
|
package/dist/openai.d.mts
CHANGED
|
@@ -15,5 +15,14 @@ declare module "openai/resources/chat/completions/completions" {
|
|
|
15
15
|
|
|
16
16
|
/** Drop-in `OpenAI` client with Firstflow observability built in. */
|
|
17
17
|
declare const OpenAI: typeof RealOpenAI;
|
|
18
|
+
/**
|
|
19
|
+
* Instance type of the wrapped client, so consumers can annotate naturally:
|
|
20
|
+
*
|
|
21
|
+
* private readonly client: OpenAI = new OpenAI();
|
|
22
|
+
*
|
|
23
|
+
* `OpenAI` lives in both the value and type namespaces (the `const` above is the
|
|
24
|
+
* value; this alias is the type), mirroring how the real SDK's class works.
|
|
25
|
+
*/
|
|
26
|
+
type OpenAI = RealOpenAI;
|
|
18
27
|
|
|
19
28
|
export { OpenAI };
|
package/dist/openai.d.ts
CHANGED
|
@@ -15,5 +15,14 @@ declare module "openai/resources/chat/completions/completions" {
|
|
|
15
15
|
|
|
16
16
|
/** Drop-in `OpenAI` client with Firstflow observability built in. */
|
|
17
17
|
declare const OpenAI: typeof RealOpenAI;
|
|
18
|
+
/**
|
|
19
|
+
* Instance type of the wrapped client, so consumers can annotate naturally:
|
|
20
|
+
*
|
|
21
|
+
* private readonly client: OpenAI = new OpenAI();
|
|
22
|
+
*
|
|
23
|
+
* `OpenAI` lives in both the value and type namespaces (the `const` above is the
|
|
24
|
+
* value; this alias is the type), mirroring how the real SDK's class works.
|
|
25
|
+
*/
|
|
26
|
+
type OpenAI = RealOpenAI;
|
|
18
27
|
|
|
19
28
|
export { OpenAI };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firstflow/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"description": "Firstflow Node SDK — cloud forwarding, LLM wrap, self-owned analytics",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -24,8 +24,12 @@
|
|
|
24
24
|
},
|
|
25
25
|
"typesVersions": {
|
|
26
26
|
"*": {
|
|
27
|
-
"openai": [
|
|
28
|
-
|
|
27
|
+
"openai": [
|
|
28
|
+
"./dist/openai.d.ts"
|
|
29
|
+
],
|
|
30
|
+
"anthropic": [
|
|
31
|
+
"./dist/anthropic.d.ts"
|
|
32
|
+
]
|
|
29
33
|
}
|
|
30
34
|
},
|
|
31
35
|
"files": [
|