@versini/sassysaint-common 1.5.1 → 1.6.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.ts +6 -6
- package/dist/index.js +16 -16
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
@@ -22,9 +22,9 @@ declare const MODEL_GPT4 = "gpt-4.1";
|
|
22
22
|
declare const MODEL_GPT4_MINI = "gpt-4.1-nano";
|
23
23
|
declare const MODEL_O4_MINI = "o4-mini";
|
24
24
|
declare const MODEL_CLAUDE_HAIKU = "claude-3-5-haiku-latest";
|
25
|
-
declare const MODEL_CLAUDE_SONNET = "claude-sonnet-4
|
26
|
-
declare const MODEL_GEMINI_FLASH = "gemini-2.
|
27
|
-
declare const MODEL_GEMINI_PRO = "gemini-2.5-pro-preview-
|
25
|
+
declare const MODEL_CLAUDE_SONNET = "claude-sonnet-4";
|
26
|
+
declare const MODEL_GEMINI_FLASH = "gemini-2.5-flash-preview-05-20";
|
27
|
+
declare const MODEL_GEMINI_PRO = "gemini-2.5-pro-preview-06-05";
|
28
28
|
/**
|
29
29
|
* List of approximate models names - this is to ensure that older names still
|
30
30
|
* reflect the right provider. For example "claude-3-5-sonnet-20241022" is now
|
@@ -44,15 +44,15 @@ declare const APPROXIMATE_MODELS_PER_PROVIDER: {
|
|
44
44
|
/**
|
45
45
|
* List of all models available TODAY.
|
46
46
|
*/
|
47
|
-
declare const ALL_MODELS: readonly ["gpt-4.1", "gpt-4.1-nano", "o4-mini", "claude-3-5-haiku-latest", "claude-sonnet-4
|
47
|
+
declare const ALL_MODELS: readonly ["gpt-4.1", "gpt-4.1-nano", "o4-mini", "claude-3-5-haiku-latest", "claude-sonnet-4", "gemini-2.5-flash-preview-05-20", "gemini-2.5-pro-preview-06-05"];
|
48
48
|
declare const ALL_REASONING_MODELS: string[];
|
49
49
|
/**
|
50
50
|
* List of models available according to the providers.
|
51
51
|
*/
|
52
52
|
declare const MODELS_PER_PROVIDER: {
|
53
53
|
readonly OpenAI: readonly ["gpt-4.1-nano", "gpt-4.1", "o4-mini"];
|
54
|
-
readonly Anthropic: readonly ["claude-3-5-haiku-latest", "claude-sonnet-4
|
55
|
-
readonly Google: readonly ["gemini-2.
|
54
|
+
readonly Anthropic: readonly ["claude-3-5-haiku-latest", "claude-sonnet-4"];
|
55
|
+
readonly Google: readonly ["gemini-2.5-flash-preview-05-20", "gemini-2.5-pro-preview-06-05"];
|
56
56
|
};
|
57
57
|
/**
|
58
58
|
* List of roles available according to the provider.
|
package/dist/index.js
CHANGED
@@ -2,14 +2,14 @@ const a = "system", E = "user", n = "assistant", m = "hidden", V = "data", s = "
|
|
2
2
|
s,
|
3
3
|
t,
|
4
4
|
_
|
5
|
-
], L = "gpt-4.1", R = "gpt-4.1-nano", o = "o4-mini", A = "claude-3-5-haiku-latest", O = "claude-sonnet-4
|
5
|
+
], L = "gpt-4.1", R = "gpt-4.1-nano", o = "o4-mini", A = "claude-3-5-haiku-latest", O = "claude-sonnet-4", I = "gemini-2.5-flash-preview-05-20", c = "gemini-2.5-pro-preview-06-05", N = "claude-sonnet-4", r = "claude-3", S = "gpt-4", T = "o3", d = "o4", l = "gemini", G = {
|
6
6
|
[t]: [
|
7
7
|
N,
|
8
|
-
|
8
|
+
r
|
9
9
|
],
|
10
10
|
[s]: [
|
11
|
+
S,
|
11
12
|
T,
|
12
|
-
r,
|
13
13
|
d
|
14
14
|
],
|
15
15
|
[_]: [l]
|
@@ -29,17 +29,17 @@ const a = "system", E = "user", n = "assistant", m = "hidden", V = "data", s = "
|
|
29
29
|
[s]: [R, L, o],
|
30
30
|
[t]: [A, O],
|
31
31
|
[_]: [I, c]
|
32
|
-
},
|
32
|
+
}, v = {
|
33
33
|
[s]: [a, E, n],
|
34
34
|
[t]: [E, n],
|
35
35
|
[i]: [E, n],
|
36
36
|
[_]: [E, n]
|
37
|
-
},
|
38
|
-
PLAN_FREE:
|
39
|
-
PLAN_PLUS:
|
37
|
+
}, p = "sassy:free", u = "sassy:plus", U = "sassy:advanced", y = {
|
38
|
+
PLAN_FREE: p,
|
39
|
+
PLAN_PLUS: u,
|
40
40
|
PLAN_PREMIUM: U,
|
41
41
|
REASONING: "sassy:advanced:reasoning"
|
42
|
-
},
|
42
|
+
}, H = "x-callisto-chat-id", F = (P) => {
|
43
43
|
for (const [D, M] of Object.entries(
|
44
44
|
G
|
45
45
|
))
|
@@ -52,13 +52,13 @@ export {
|
|
52
52
|
C as ALL_PROVIDERS,
|
53
53
|
f as ALL_REASONING_MODELS,
|
54
54
|
G as APPROXIMATE_MODELS_PER_PROVIDER,
|
55
|
-
|
55
|
+
r as APPROXIMATE_MODEL_CLAUDE_3,
|
56
56
|
N as APPROXIMATE_MODEL_CLAUDE_4,
|
57
57
|
l as APPROXIMATE_MODEL_GEMINI,
|
58
|
-
|
59
|
-
|
58
|
+
S as APPROXIMATE_MODEL_GPT_4,
|
59
|
+
T as APPROXIMATE_MODEL_O3,
|
60
60
|
d as APPROXIMATE_MODEL_O4,
|
61
|
-
|
61
|
+
H as CALLISTO_CHAT_ID_HEADER,
|
62
62
|
g as DEFAULT_PROVIDER,
|
63
63
|
h as MODELS_PER_PROVIDER,
|
64
64
|
A as MODEL_CLAUDE_HAIKU,
|
@@ -68,14 +68,14 @@ export {
|
|
68
68
|
L as MODEL_GPT4,
|
69
69
|
R as MODEL_GPT4_MINI,
|
70
70
|
o as MODEL_O4_MINI,
|
71
|
-
|
72
|
-
|
71
|
+
p as PLAN_FREE,
|
72
|
+
u as PLAN_PLUS,
|
73
73
|
U as PLAN_PREMIUM,
|
74
|
-
|
74
|
+
y as POLICY_GRANTS,
|
75
75
|
t as PROVIDER_ANTHROPIC,
|
76
76
|
_ as PROVIDER_GOOGLE,
|
77
77
|
s as PROVIDER_OPENAI,
|
78
|
-
|
78
|
+
v as PROVIDER_ROLE_MAP,
|
79
79
|
i as PROVIDER_SUMMARY,
|
80
80
|
n as ROLE_ASSISTANT,
|
81
81
|
m as ROLE_HIDDEN,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@versini/sassysaint-common",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.6.0",
|
4
4
|
"license": "MIT",
|
5
5
|
"author": "Arno Versini",
|
6
6
|
"publishConfig": {
|
@@ -20,7 +20,7 @@
|
|
20
20
|
"clean": "rimraf dist tmp",
|
21
21
|
"dev:js": "vite build --watch --mode development",
|
22
22
|
"dev:types": "tsup --watch src",
|
23
|
-
"dev": "npm-run-all
|
23
|
+
"dev": "npm-run-all --parallel dev:js dev:types",
|
24
24
|
"lint": "biome lint src",
|
25
25
|
"test": "vitest run",
|
26
26
|
"test:coverage": "vitest run --coverage",
|
@@ -28,5 +28,5 @@
|
|
28
28
|
"test:watch": "vitest",
|
29
29
|
"watch": "npm-run-all dev"
|
30
30
|
},
|
31
|
-
"gitHead": "
|
31
|
+
"gitHead": "8f08fa874fed4abcc06431292552e81e30b12de5"
|
32
32
|
}
|