call-ai 0.20.3-dev-push → 2.0.0-dev-cli-1

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.
@@ -1,3 +1,4 @@
1
+ import { Falsy } from "./types.js";
1
2
  import { type CallAIEnv } from "./env.js";
2
3
  export interface EnvLike {
3
4
  readonly CALLAI_API_KEY?: unknown;
@@ -16,7 +17,7 @@ export interface KeyMetadata {
16
17
  export declare function keyStore(): {
17
18
  current: string | undefined;
18
19
  refreshEndpoint: string;
19
- refreshToken: string | 0 | false | null | undefined;
20
+ refreshToken: string | Falsy;
20
21
  isRefreshing: boolean;
21
22
  lastRefreshAttempt: number;
22
23
  metadata: Record<string, Partial<KeyMetadata>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "call-ai",
3
- "version": "0.20.3-dev-push",
3
+ "version": "2.0.0-dev-cli-1",
4
4
  "description": "Lightweight library for making AI API calls with streaming support",
5
5
  "type": "module",
6
6
  "repository": {
@@ -11,6 +11,9 @@
11
11
  "bugs": {
12
12
  "url": "https://github.com/VibesDIY/vibes.diy/issues"
13
13
  },
14
+ "scripts": {
15
+ "build": "core-cli tsc"
16
+ },
14
17
  "keywords": [
15
18
  "ai",
16
19
  "llm",
@@ -37,8 +40,5 @@
37
40
  "@fireproof/core-types-protocols-cloud": "~0.24.13",
38
41
  "@fireproof/use-fireproof": "~0.24.13",
39
42
  "mime": "~4.1.0"
40
- },
41
- "scripts": {
42
- "build": "core-cli tsc"
43
43
  }
44
- }
44
+ }