@versini/sassysaint-common 4.0.4 → 4.1.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 CHANGED
@@ -87,6 +87,10 @@ declare const findProvider: (modelName: string) => null | typeof PROVIDER_ANTHRO
87
87
  */
88
88
  declare const SORT_BY_TIMESTAMP = "timestamp";
89
89
  declare const SORT_BY_TOKEN_USAGE = "tokenUsage";
90
+ /**
91
+ * Name of the application.
92
+ */
93
+ declare const APPLICATION_NAME = "Callisto";
90
94
 
91
95
  /**
92
96
  * TypeScript interfaces for Server-Mediated Encryption
@@ -286,4 +290,4 @@ declare namespace index {
286
290
  export { type index_ClientCryptoKeyPair as ClientCryptoKeyPair, type index_CryptoConfig as CryptoConfig, index_CryptoError as CryptoError, type index_CryptoSession as CryptoSession, index_DEFAULT_CRYPTO_CONFIG as DEFAULT_CRYPTO_CONFIG, type index_EncryptedMessage as EncryptedMessage, type index_KeyExchangeResponse as KeyExchangeResponse, type index_RSAKeyGenParams as RSAKeyGenParams, type index_SerializablePublicKey as SerializablePublicKey, index_arrayBufferToBase64 as arrayBufferToBase64, index_base64ToArrayBuffer as base64ToArrayBuffer, index_canUseEncryption as canUseEncryption, index_debugLog as debugLog, index_decryptFromServer as decryptFromServer, index_encryptForServer as encryptForServer, index_establishCryptoSession as establishCryptoSession, index_exportPublicKey as exportPublicKey, index_generateClientKeyPair as generateClientKeyPair, index_generateDeviceId as generateDeviceId, index_importServerPublicKey as importServerPublicKey, index_isCryptoSessionValid as isCryptoSessionValid, index_isSecureContext as isSecureContext, index_isWebCryptoSupported as isWebCryptoSupported, index_safeParse as safeParse, index_safeStringify as safeStringify };
287
291
  }
288
292
 
289
- export { ALL_MODELS, ALL_PROVIDERS, ALL_REASONING_MODELS, CALLISTO_CHAT_ID_HEADER, DEFAULT_PROVIDER, MODELS_PER_PROVIDER, MODEL_CLAUDE_HAIKU, MODEL_CLAUDE_SONNET, MODEL_GEMINI_FLASH, MODEL_GEMINI_PRO, MODEL_GPT4, MODEL_GPT4_MINI, MODEL_O4_MINI, MODEL_SONAR, MODEL_SONAR_PRO, PLAN_FREE, PLAN_PLUS, PLAN_PREMIUM, POLICY_GRANTS, PROVIDER_ANTHROPIC, PROVIDER_GOOGLE, PROVIDER_MEMORY, PROVIDER_OPENAI, PROVIDER_PERPLEXITY, PROVIDER_ROLE_MAP, PROVIDER_SUMMARY, ROLE_ASSISTANT, ROLE_HIDDEN, ROLE_INTERNAL, ROLE_SYSTEM, ROLE_USER, SORT_BY_TIMESTAMP, SORT_BY_TOKEN_USAGE, index as crypto, findProvider };
293
+ export { ALL_MODELS, ALL_PROVIDERS, ALL_REASONING_MODELS, APPLICATION_NAME, CALLISTO_CHAT_ID_HEADER, DEFAULT_PROVIDER, MODELS_PER_PROVIDER, MODEL_CLAUDE_HAIKU, MODEL_CLAUDE_SONNET, MODEL_GEMINI_FLASH, MODEL_GEMINI_PRO, MODEL_GPT4, MODEL_GPT4_MINI, MODEL_O4_MINI, MODEL_SONAR, MODEL_SONAR_PRO, PLAN_FREE, PLAN_PLUS, PLAN_PREMIUM, POLICY_GRANTS, PROVIDER_ANTHROPIC, PROVIDER_GOOGLE, PROVIDER_MEMORY, PROVIDER_OPENAI, PROVIDER_PERPLEXITY, PROVIDER_ROLE_MAP, PROVIDER_SUMMARY, ROLE_ASSISTANT, ROLE_HIDDEN, ROLE_INTERNAL, ROLE_SYSTEM, ROLE_USER, SORT_BY_TIMESTAMP, SORT_BY_TOKEN_USAGE, index as crypto, findProvider };
package/dist/index.js CHANGED
@@ -1,21 +1,21 @@
1
- const g = "system", s = "user", c = "assistant", te = "hidden", re = "data", a = "OpenAI", i = "Anthropic", E = "Google", M = "Summary", m = "Memory", d = "Perplexity", ne = a, oe = [
1
+ const M = "system", s = "user", c = "assistant", te = "hidden", re = "data", a = "OpenAI", i = "Anthropic", E = "Google", g = "Summary", m = "Memory", d = "Perplexity", ne = a, oe = [
2
2
  a,
3
3
  i,
4
4
  E
5
- ], _ = "gpt-4.1", l = "gpt-4.1-nano", u = "o4-mini", f = "claude-3-5-haiku-20241022", p = "claude-sonnet-4-20250514", R = "gemini-2.5-flash", A = "gemini-2.5-pro", P = "sonar", S = "sonar-pro", se = [
5
+ ], _ = "gpt-4.1", l = "gpt-4.1-nano", u = "o4-mini", f = "claude-3-5-haiku-20241022", A = "claude-sonnet-4-20250514", R = "gemini-2.5-flash", p = "gemini-2.5-pro", P = "sonar", S = "sonar-pro", se = [
6
6
  _,
7
7
  l,
8
8
  u,
9
9
  f,
10
- p,
11
- R,
12
10
  A,
11
+ R,
12
+ p,
13
13
  P,
14
14
  S
15
15
  ], ce = [
16
16
  u,
17
- p,
18
- A
17
+ A,
18
+ p
19
19
  ], b = "claude-sonnet-4", h = "claude-3", T = "gpt-4", N = "o3", v = "o4", K = "gemini", C = "sonar", U = {
20
20
  [i]: [
21
21
  b,
@@ -30,13 +30,13 @@ const g = "system", s = "user", c = "assistant", te = "hidden", re = "data", a =
30
30
  [d]: [C]
31
31
  }, ae = {
32
32
  [a]: [l, _, u],
33
- [i]: [f, p],
34
- [E]: [R, A],
33
+ [i]: [f, A],
34
+ [E]: [R, p],
35
35
  [d]: [P, S]
36
36
  }, ie = {
37
- [a]: [g, s, c],
37
+ [a]: [M, s, c],
38
38
  [i]: [s, c],
39
- [M]: [s, c],
39
+ [g]: [s, c],
40
40
  [m]: [s, c],
41
41
  [E]: [s, c],
42
42
  [d]: [s, c]
@@ -52,7 +52,7 @@ const g = "system", s = "user", c = "assistant", te = "hidden", re = "data", a =
52
52
  if (n.some((t) => r.startsWith(t)))
53
53
  return e;
54
54
  return null;
55
- }, ue = "timestamp", pe = "tokenUsage";
55
+ }, ue = "timestamp", Ae = "tokenUsage", pe = "Callisto";
56
56
  class o extends Error {
57
57
  constructor(e, n, t) {
58
58
  super(e), this.code = n, this.originalError = t, this.name = "CryptoError";
@@ -253,18 +253,19 @@ function Q(r) {
253
253
  function Z(r, ...e) {
254
254
  typeof process < "u" && process.env && process.env.NODE_ENV === "development" && console.info(`🔐 [Crypto] ${r}`, ...e);
255
255
  }
256
- const Ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, CryptoError: o, DEFAULT_CRYPTO_CONFIG: I, arrayBufferToBase64: J, base64ToArrayBuffer: W, canUseEncryption: z, debugLog: Z, decryptFromServer: H, encryptForServer: X, establishCryptoSession: $, exportPublicKey: x, generateClientKeyPair: Y, generateDeviceId: B, importServerPublicKey: L, isCryptoSessionValid: j, isSecureContext: w, isWebCryptoSupported: D, safeParse: Q, safeStringify: q }, Symbol.toStringTag, { value: "Module" }));
256
+ const Oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, CryptoError: o, DEFAULT_CRYPTO_CONFIG: I, arrayBufferToBase64: J, base64ToArrayBuffer: W, canUseEncryption: z, debugLog: Z, decryptFromServer: H, encryptForServer: X, establishCryptoSession: $, exportPublicKey: x, generateClientKeyPair: Y, generateDeviceId: B, importServerPublicKey: L, isCryptoSessionValid: j, isSecureContext: w, isWebCryptoSupported: D, safeParse: Q, safeStringify: q }, Symbol.toStringTag, { value: "Module" }));
257
257
  export {
258
258
  se as ALL_MODELS,
259
259
  oe as ALL_PROVIDERS,
260
260
  ce as ALL_REASONING_MODELS,
261
+ pe as APPLICATION_NAME,
261
262
  ye as CALLISTO_CHAT_ID_HEADER,
262
263
  ne as DEFAULT_PROVIDER,
263
264
  ae as MODELS_PER_PROVIDER,
264
265
  f as MODEL_CLAUDE_HAIKU,
265
- p as MODEL_CLAUDE_SONNET,
266
+ A as MODEL_CLAUDE_SONNET,
266
267
  R as MODEL_GEMINI_FLASH,
267
- A as MODEL_GEMINI_PRO,
268
+ p as MODEL_GEMINI_PRO,
268
269
  _ as MODEL_GPT4,
269
270
  l as MODEL_GPT4_MINI,
270
271
  u as MODEL_O4_MINI,
@@ -280,14 +281,14 @@ export {
280
281
  a as PROVIDER_OPENAI,
281
282
  d as PROVIDER_PERPLEXITY,
282
283
  ie as PROVIDER_ROLE_MAP,
283
- M as PROVIDER_SUMMARY,
284
+ g as PROVIDER_SUMMARY,
284
285
  c as ROLE_ASSISTANT,
285
286
  te as ROLE_HIDDEN,
286
287
  re as ROLE_INTERNAL,
287
- g as ROLE_SYSTEM,
288
+ M as ROLE_SYSTEM,
288
289
  s as ROLE_USER,
289
290
  ue as SORT_BY_TIMESTAMP,
290
- pe as SORT_BY_TOKEN_USAGE,
291
- Ae as crypto,
291
+ Ae as SORT_BY_TOKEN_USAGE,
292
+ Oe as crypto,
292
293
  de as findProvider
293
294
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versini/sassysaint-common",
3
- "version": "4.0.4",
3
+ "version": "4.1.0",
4
4
  "license": "MIT",
5
5
  "author": "Arno Versini",
6
6
  "publishConfig": {
@@ -30,5 +30,5 @@
30
30
  "test:watch": "vitest",
31
31
  "watch": "npm-run-all dev"
32
32
  },
33
- "gitHead": "6fbcb4192fea2a841710741760d6c3d6b91c63fa"
33
+ "gitHead": "efc7567ecb058d8dd55180c28e1dc1a430d26965"
34
34
  }