@versini/sassysaint-common 4.6.0 → 4.7.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
@@ -55,10 +55,10 @@ declare const PROVIDER_ROLE_MAP: {
55
55
  Perplexity: string[];
56
56
  };
57
57
  /**
58
- * Header string for Diggity Chat Id. Used to identify the chat in the server
58
+ * Header string for Diggidy Chat Id. Used to identify the chat in the server
59
59
  * when there is a client abort.
60
60
  */
61
- declare const DIGGITY_CHAT_ID_HEADER = "x-diggity-chat-id";
61
+ declare const DIGGITY_CHAT_ID_HEADER = "x-diggidy-chat-id";
62
62
  /**
63
63
  * This function finds the provider associated with a given model name. It
64
64
  * checks the model name against a list of approximate models for each provider.
@@ -76,7 +76,7 @@ declare const SORT_BY_TOKEN_USAGE = "tokenUsage";
76
76
  /**
77
77
  * Name of the application.
78
78
  */
79
- declare const APPLICATION_NAME = "Diggity";
79
+ declare const APPLICATION_NAME = "Diggidy";
80
80
 
81
81
  /**
82
82
  * TypeScript interfaces for Server-Mediated Encryption.
package/dist/index.js CHANGED
@@ -40,14 +40,14 @@ const L = "system", a = "user", c = "assistant", te = "hidden", ne = "data", i =
40
40
  [M]: [a, c],
41
41
  [y]: [a, c],
42
42
  [u]: [a, c]
43
- }, Ee = "x-diggity-chat-id", ye = (n) => {
43
+ }, Ee = "x-diggidy-chat-id", ye = (n) => {
44
44
  for (const [e, r] of Object.entries(
45
45
  K
46
46
  ))
47
47
  if (r.some((t) => n.startsWith(t)))
48
48
  return e;
49
49
  return null;
50
- }, Ae = "timestamp", ue = "tokenUsage", de = "Diggity";
50
+ }, Ae = "timestamp", ue = "tokenUsage", de = "Diggidy";
51
51
  class s extends Error {
52
52
  constructor(e, r, t) {
53
53
  super(e), this.code = r, this.originalError = t, this.name = "CryptoError";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versini/sassysaint-common",
3
- "version": "4.6.0",
3
+ "version": "4.7.0",
4
4
  "license": "MIT",
5
5
  "author": "Arno Versini",
6
6
  "publishConfig": {
@@ -32,5 +32,5 @@
32
32
  "test:watch": "vitest",
33
33
  "watch": "npm-run-all dev"
34
34
  },
35
- "gitHead": "fe1cb01957760bbd3d9601b6f09b6c386f40e67c"
35
+ "gitHead": "ab5a5dd7466eb60e2692450f2e21344d4000226f"
36
36
  }