@versini/sassysaint-common 4.1.0 → 4.2.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.
package/dist/index.d.ts CHANGED
@@ -20,7 +20,7 @@ declare const ALL_PROVIDERS: readonly ["OpenAI", "Anthropic", "Google"];
20
20
  /**
21
21
  * List of available models TODAY.
22
22
  */
23
- declare const MODEL_GPT4 = "gpt-4.1";
23
+ declare const MODEL_GPT = "gpt-5";
24
24
  declare const MODEL_GPT4_MINI = "gpt-4.1-nano";
25
25
  declare const MODEL_O4_MINI = "o4-mini";
26
26
  declare const MODEL_CLAUDE_HAIKU = "claude-3-5-haiku-20241022";
@@ -32,13 +32,13 @@ declare const MODEL_SONAR_PRO = "sonar-pro";
32
32
  /**
33
33
  * List of all models available TODAY.
34
34
  */
35
- declare const ALL_MODELS: readonly ["gpt-4.1", "gpt-4.1-nano", "o4-mini", "claude-3-5-haiku-20241022", "claude-sonnet-4-20250514", "gemini-2.5-flash", "gemini-2.5-pro", "sonar", "sonar-pro"];
35
+ declare const ALL_MODELS: readonly ["gpt-5", "gpt-4.1-nano", "o4-mini", "claude-3-5-haiku-20241022", "claude-sonnet-4-20250514", "gemini-2.5-flash", "gemini-2.5-pro", "sonar", "sonar-pro"];
36
36
  declare const ALL_REASONING_MODELS: string[];
37
37
  /**
38
38
  * List of models available according to the providers.
39
39
  */
40
40
  declare const MODELS_PER_PROVIDER: {
41
- readonly OpenAI: readonly ["gpt-4.1-nano", "gpt-4.1", "o4-mini"];
41
+ readonly OpenAI: readonly ["gpt-4.1-nano", "gpt-5"];
42
42
  readonly Anthropic: readonly ["claude-3-5-haiku-20241022", "claude-sonnet-4-20250514"];
43
43
  readonly Google: readonly ["gemini-2.5-flash", "gemini-2.5-pro"];
44
44
  readonly Perplexity: readonly ["sonar", "sonar-pro"];
@@ -70,16 +70,17 @@ declare const POLICY_GRANTS: {
70
70
  REASONING: string;
71
71
  };
72
72
  /**
73
- * Header string for Callisto Chat Id. Used to identify the chat in the
74
- * server when there is a client abort.
73
+ * Header string for Callisto Chat Id. Used to identify the chat in the server
74
+ * when there is a client abort.
75
75
  */
76
76
  declare const CALLISTO_CHAT_ID_HEADER = "x-callisto-chat-id";
77
77
  /**
78
- * This function finds the provider associated with a given model name.
79
- * It checks the model name against a list of approximate models for each provider.
78
+ * This function finds the provider associated with a given model name. It
79
+ * checks the model name against a list of approximate models for each provider.
80
80
  *
81
81
  * @param modelName - The model name to check.
82
82
  * @returns The provider associated with the model name or null if not found.
83
+ *
83
84
  */
84
85
  declare const findProvider: (modelName: string) => null | typeof PROVIDER_ANTHROPIC | typeof PROVIDER_OPENAI | typeof PROVIDER_GOOGLE;
85
86
  /**
@@ -93,76 +94,110 @@ declare const SORT_BY_TOKEN_USAGE = "tokenUsage";
93
94
  declare const APPLICATION_NAME = "Callisto";
94
95
 
95
96
  /**
96
- * TypeScript interfaces for Server-Mediated Encryption
97
+ * TypeScript interfaces for Server-Mediated Encryption.
97
98
  */
98
99
  /**
99
- * RSA key pair stored in memory for the current session
100
+ * RSA key pair stored in memory for the current session.
100
101
  */
101
102
  interface ClientCryptoKeyPair {
102
103
  publicKey: CryptoKey;
103
104
  privateKey: CryptoKey;
104
105
  }
105
106
  /**
106
- * Serializable format for public key exchange with server
107
+ * Serializable format for public key exchange with server.
107
108
  */
108
109
  interface SerializablePublicKey {
109
- /** Public key in JSON Web Key format */
110
+ /**
111
+ * Public key in JSON Web Key format.
112
+ */
110
113
  jwk: JsonWebKey;
111
- /** Key type identifier */
114
+ /**
115
+ * Key type identifier.
116
+ */
112
117
  kty: "RSA";
113
- /** Algorithm identifier */
118
+ /**
119
+ * Algorithm identifier.
120
+ */
114
121
  alg: "RSA-OAEP-256";
115
122
  }
116
123
  /**
117
- * Response from server's key exchange mutation
124
+ * Response from server's key exchange mutation.
118
125
  */
119
126
  interface KeyExchangeResponse {
120
- /** Server's public key in JWK format */
127
+ /**
128
+ * Server's public key in JWK format.
129
+ */
121
130
  serverPublicKey: string;
122
- /** Server's key identifier for rotation tracking */
131
+ /**
132
+ * Server's key identifier for rotation tracking.
133
+ */
123
134
  keyId: string;
124
- /** List of supported encryption algorithms */
135
+ /**
136
+ * List of supported encryption algorithms.
137
+ */
125
138
  supportedAlgorithms: string[];
126
139
  }
127
140
  /**
128
- * Client crypto session state stored in memory
141
+ * Client crypto session state stored in memory.
129
142
  */
130
143
  interface CryptoSession {
131
- /** Client's RSA key pair */
144
+ /**
145
+ * Client's RSA key pair.
146
+ */
132
147
  clientKeyPair: ClientCryptoKeyPair;
133
- /** Server's public key for encryption */
148
+ /**
149
+ * Server's public key for encryption.
150
+ */
134
151
  serverPublicKey: CryptoKey;
135
- /** Unique device/session identifier */
152
+ /**
153
+ * Unique device/session identifier.
154
+ */
136
155
  deviceId: string;
137
- /** Server's key identifier */
156
+ /**
157
+ * Server's key identifier.
158
+ */
138
159
  serverKeyId: string;
139
- /** When this session was established */
160
+ /**
161
+ * When this session was established.
162
+ */
140
163
  establishedAt: Date;
141
164
  }
142
165
  /**
143
- * Encrypted message format for transport
166
+ * Encrypted message format for transport.
144
167
  */
145
168
  interface EncryptedMessage {
146
- /** Base64-encoded encrypted data */
169
+ /**
170
+ * Base64-encoded encrypted data.
171
+ */
147
172
  data: string;
148
- /** Algorithm used for encryption */
173
+ /**
174
+ * Algorithm used for encryption.
175
+ */
149
176
  algorithm: "RSA-OAEP";
150
- /** Key ID used for encryption */
177
+ /**
178
+ * Key ID used for encryption.
179
+ */
151
180
  keyId: string;
152
181
  }
153
182
  /**
154
- * Parameters for RSA key generation
183
+ * Parameters for RSA key generation.
155
184
  */
156
185
  interface RSAKeyGenParams {
157
- /** RSA modulus length in bits */
186
+ /**
187
+ * RSA modulus length in bits.
188
+ */
158
189
  modulusLength: 2048 | 4096;
159
- /** Public exponent */
190
+ /**
191
+ * Public exponent.
192
+ */
160
193
  publicExponent: Uint8Array;
161
- /** Hash algorithm for OAEP */
194
+ /**
195
+ * Hash algorithm for OAEP.
196
+ */
162
197
  hash: "SHA-256";
163
198
  }
164
199
  /**
165
- * Error types for crypto operations
200
+ * Error types for crypto operations.
166
201
  */
167
202
  declare class CryptoError extends Error {
168
203
  readonly code: "KEY_GENERATION_FAILED" | "ENCRYPTION_FAILED" | "DECRYPTION_FAILED" | "KEY_IMPORT_FAILED" | "INVALID_KEY_FORMAT";
@@ -170,85 +205,89 @@ declare class CryptoError extends Error {
170
205
  constructor(message: string, code: "KEY_GENERATION_FAILED" | "ENCRYPTION_FAILED" | "DECRYPTION_FAILED" | "KEY_IMPORT_FAILED" | "INVALID_KEY_FORMAT", originalError?: Error | undefined);
171
206
  }
172
207
  /**
173
- * Configuration options for crypto operations
208
+ * Configuration options for crypto operations.
174
209
  */
175
210
  interface CryptoConfig {
176
- /** RSA key size in bits */
211
+ /**
212
+ * RSA key size in bits.
213
+ */
177
214
  keySize: 2048 | 4096;
178
- /** Enable debug logging */
215
+ /**
216
+ * Enable debug logging.
217
+ */
179
218
  debug: boolean;
180
219
  }
181
220
  /**
182
- * Default crypto configuration
221
+ * Default crypto configuration.
183
222
  */
184
223
  declare const DEFAULT_CRYPTO_CONFIG: CryptoConfig;
185
224
 
186
225
  /**
187
- * Generate a new RSA key pair for the current session
226
+ * Generate a new RSA key pair for the current session.
188
227
  */
189
228
  declare function generateClientKeyPair(config?: Partial<CryptoConfig>): Promise<ClientCryptoKeyPair>;
190
229
  /**
191
- * Export public key to serializable format for server exchange
230
+ * Export public key to serializable format for server exchange.
192
231
  */
193
232
  declare function exportPublicKey(publicKey: CryptoKey): Promise<SerializablePublicKey>;
194
233
  /**
195
- * Import server's public key from JWK format
234
+ * Import server's public key from JWK format.
196
235
  */
197
236
  declare function importServerPublicKey(serverPublicKeyJWK: string): Promise<CryptoKey>;
198
237
  /**
199
- * Encrypt message for transmission to server
238
+ * Encrypt message for transmission to server.
200
239
  */
201
240
  declare function encryptForServer(message: string, serverPublicKey: CryptoKey, serverKeyId: string): Promise<EncryptedMessage>;
202
241
  /**
203
- * Decrypt message received from server
242
+ * Decrypt message received from server.
204
243
  */
205
244
  declare function decryptFromServer(encryptedMessage: EncryptedMessage, clientPrivateKey: CryptoKey): Promise<string>;
206
245
  /**
207
- * Create a complete crypto session with key exchange
246
+ * Create a complete crypto session with key exchange.
208
247
  */
209
248
  declare function establishCryptoSession(keyExchangeResponse: KeyExchangeResponse, clientKeyPair: ClientCryptoKeyPair, deviceId: string): Promise<CryptoSession>;
210
249
  /**
211
- * Validate that a crypto session is still valid
250
+ * Validate that a crypto session is still valid.
212
251
  */
213
252
  declare function isCryptoSessionValid(session: CryptoSession): boolean;
214
253
 
215
254
  /**
216
- * Utility functions for crypto operations
255
+ * Utility functions for crypto operations.
217
256
  */
218
257
  /**
219
- * Generate a unique device ID for this session
258
+ * Generate a unique device ID for this session.
220
259
  */
221
260
  declare function generateDeviceId(): string;
222
261
  /**
223
- * Check if the current environment supports Web Crypto API
262
+ * Check if the current environment supports Web Crypto API.
224
263
  */
225
264
  declare function isWebCryptoSupported(): boolean;
226
265
  /**
227
- * Validate that we're in a secure context (required for Web Crypto API)
266
+ * Validate that we're in a secure context (required for Web Crypto API).
228
267
  */
229
268
  declare function isSecureContext(): boolean;
230
269
  /**
231
- * Check if encryption is available in the current environment
270
+ * Check if encryption is available in the current environment.
232
271
  */
233
272
  declare function canUseEncryption(): boolean;
234
273
  /**
235
- * Convert ArrayBuffer to base64 string
274
+ * Convert ArrayBuffer to base64 string.
236
275
  */
237
276
  declare function arrayBufferToBase64(buffer: ArrayBuffer): string;
238
277
  /**
239
- * Convert base64 string to ArrayBuffer
278
+ * Convert base64 string to ArrayBuffer.
240
279
  */
241
280
  declare function base64ToArrayBuffer(base64: string): ArrayBuffer;
242
281
  /**
243
- * Safely stringify JSON with error handling
282
+ * Safely stringify JSON with error handling.
244
283
  */
245
284
  declare function safeStringify(obj: unknown): string;
246
285
  /**
247
- * Safely parse JSON with error handling
286
+ * Safely parse JSON with error handling.
248
287
  */
249
288
  declare function safeParse<T = unknown>(json: string): T | null;
250
289
  /**
251
- * Debug logger for crypto operations (only in development)
290
+ * Debug logger for crypto operations (only in development).
252
291
  *
253
292
  * ⚠️ SECURITY WARNING: Never log sensitive data such as:
254
293
  * - Private or public key objects
@@ -256,7 +295,9 @@ declare function safeParse<T = unknown>(json: string): T | null;
256
295
  * - Raw cryptographic material
257
296
  * - Device IDs or session identifiers
258
297
  *
259
- * Only log non-sensitive metadata like algorithms, key sizes, operation status, etc.
298
+ * Only log non-sensitive metadata like algorithms, key sizes, operation status,
299
+ * etc.
300
+ *
260
301
  */
261
302
  declare function debugLog(message: string, ...args: unknown[]): void;
262
303
 
@@ -290,4 +331,4 @@ declare namespace index {
290
331
  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 };
291
332
  }
292
333
 
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 };
334
+ 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_GPT, 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,22 +1,22 @@
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 = [
1
+ const w = "system", s = "user", c = "assistant", te = "hidden", re = "data", a = "OpenAI", i = "Anthropic", E = "Google", M = "Summary", g = "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", A = "claude-sonnet-4-20250514", R = "gemini-2.5-flash", p = "gemini-2.5-pro", P = "sonar", S = "sonar-pro", se = [
5
+ ], u = "gpt-5", _ = "gpt-4.1-nano", m = "o4-mini", l = "claude-3-5-haiku-20241022", A = "claude-sonnet-4-20250514", f = "gemini-2.5-flash", p = "gemini-2.5-pro", R = "sonar", P = "sonar-pro", se = [
6
+ u,
6
7
  _,
8
+ m,
7
9
  l,
8
- u,
9
- f,
10
10
  A,
11
- R,
11
+ f,
12
12
  p,
13
- P,
14
- S
13
+ R,
14
+ P
15
15
  ], ce = [
16
16
  u,
17
17
  A,
18
18
  p
19
- ], b = "claude-sonnet-4", h = "claude-3", T = "gpt-4", N = "o3", v = "o4", K = "gemini", C = "sonar", U = {
19
+ ], b = "claude-sonnet-4", h = "claude-3", T = "gpt-", N = "o3", v = "o4", K = "gemini", C = "sonar", U = {
20
20
  [i]: [
21
21
  b,
22
22
  h
@@ -29,15 +29,15 @@ const M = "system", s = "user", c = "assistant", te = "hidden", re = "data", a =
29
29
  [E]: [K],
30
30
  [d]: [C]
31
31
  }, ae = {
32
- [a]: [l, _, u],
33
- [i]: [f, A],
34
- [E]: [R, p],
35
- [d]: [P, S]
32
+ [a]: [_, u],
33
+ [i]: [l, A],
34
+ [E]: [f, p],
35
+ [d]: [R, P]
36
36
  }, ie = {
37
- [a]: [M, s, c],
37
+ [a]: [w, s, c],
38
38
  [i]: [s, c],
39
+ [M]: [s, c],
39
40
  [g]: [s, c],
40
- [m]: [s, c],
41
41
  [E]: [s, c],
42
42
  [d]: [s, c]
43
43
  }, k = "sassy:free", F = "sassy:plus", G = "sassy:advanced", V = "sassy:advanced:reasoning", Ee = {
@@ -58,12 +58,12 @@ class o extends Error {
58
58
  super(e), this.code = n, this.originalError = t, this.name = "CryptoError";
59
59
  }
60
60
  }
61
- const I = {
61
+ const S = {
62
62
  keySize: 4096,
63
63
  debug: !1
64
64
  };
65
65
  async function Y(r = {}) {
66
- const e = { ...I, ...r };
66
+ const e = { ...S, ...r };
67
67
  try {
68
68
  const n = {
69
69
  modulusLength: e.keySize,
@@ -114,7 +114,7 @@ async function x(r) {
114
114
  );
115
115
  }
116
116
  }
117
- async function L(r) {
117
+ async function I(r) {
118
118
  try {
119
119
  const e = JSON.parse(r);
120
120
  return await crypto.subtle.importKey(
@@ -183,7 +183,7 @@ async function H(r, e) {
183
183
  }
184
184
  async function $(r, e, n) {
185
185
  try {
186
- const t = await L(
186
+ const t = await I(
187
187
  r.serverPublicKey
188
188
  );
189
189
  return {
@@ -214,14 +214,14 @@ function B() {
214
214
  const n = Array.from(e).map((t) => t.toString(36)).join("");
215
215
  return `device_${r}_${n}`;
216
216
  }
217
- function D() {
217
+ function L() {
218
218
  return typeof window < "u" && typeof window.crypto < "u" && typeof window.crypto.subtle < "u";
219
219
  }
220
- function w() {
220
+ function D() {
221
221
  return typeof window < "u" && (window.isSecureContext || window.location.protocol === "https:");
222
222
  }
223
223
  function z() {
224
- return D() && w();
224
+ return L() && D();
225
225
  }
226
226
  function J(r) {
227
227
  const e = new Uint8Array(r);
@@ -253,7 +253,7 @@ 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 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" }));
256
+ const Oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, CryptoError: o, DEFAULT_CRYPTO_CONFIG: S, arrayBufferToBase64: J, base64ToArrayBuffer: W, canUseEncryption: z, debugLog: Z, decryptFromServer: H, encryptForServer: X, establishCryptoSession: $, exportPublicKey: x, generateClientKeyPair: Y, generateDeviceId: B, importServerPublicKey: I, isCryptoSessionValid: j, isSecureContext: D, isWebCryptoSupported: L, safeParse: Q, safeStringify: q }, Symbol.toStringTag, { value: "Module" }));
257
257
  export {
258
258
  se as ALL_MODELS,
259
259
  oe as ALL_PROVIDERS,
@@ -262,30 +262,30 @@ export {
262
262
  ye as CALLISTO_CHAT_ID_HEADER,
263
263
  ne as DEFAULT_PROVIDER,
264
264
  ae as MODELS_PER_PROVIDER,
265
- f as MODEL_CLAUDE_HAIKU,
265
+ l as MODEL_CLAUDE_HAIKU,
266
266
  A as MODEL_CLAUDE_SONNET,
267
- R as MODEL_GEMINI_FLASH,
267
+ f as MODEL_GEMINI_FLASH,
268
268
  p as MODEL_GEMINI_PRO,
269
- _ as MODEL_GPT4,
270
- l as MODEL_GPT4_MINI,
271
- u as MODEL_O4_MINI,
272
- P as MODEL_SONAR,
273
- S as MODEL_SONAR_PRO,
269
+ u as MODEL_GPT,
270
+ _ as MODEL_GPT4_MINI,
271
+ m as MODEL_O4_MINI,
272
+ R as MODEL_SONAR,
273
+ P as MODEL_SONAR_PRO,
274
274
  k as PLAN_FREE,
275
275
  F as PLAN_PLUS,
276
276
  G as PLAN_PREMIUM,
277
277
  Ee as POLICY_GRANTS,
278
278
  i as PROVIDER_ANTHROPIC,
279
279
  E as PROVIDER_GOOGLE,
280
- m as PROVIDER_MEMORY,
280
+ g as PROVIDER_MEMORY,
281
281
  a as PROVIDER_OPENAI,
282
282
  d as PROVIDER_PERPLEXITY,
283
283
  ie as PROVIDER_ROLE_MAP,
284
- g as PROVIDER_SUMMARY,
284
+ M as PROVIDER_SUMMARY,
285
285
  c as ROLE_ASSISTANT,
286
286
  te as ROLE_HIDDEN,
287
287
  re as ROLE_INTERNAL,
288
- M as ROLE_SYSTEM,
288
+ w as ROLE_SYSTEM,
289
289
  s as ROLE_USER,
290
290
  ue as SORT_BY_TIMESTAMP,
291
291
  Ae as SORT_BY_TOKEN_USAGE,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versini/sassysaint-common",
3
- "version": "4.1.0",
3
+ "version": "4.2.1",
4
4
  "license": "MIT",
5
5
  "author": "Arno Versini",
6
6
  "publishConfig": {
@@ -19,9 +19,11 @@
19
19
  "build:types": "tsup",
20
20
  "build": "npm-run-all --serial clean build:check build:js build:types",
21
21
  "clean": "rimraf dist tmp",
22
+ "comments:fix": "comments src/**/*.ts* --merge-line-comments",
22
23
  "dev:js": "vite build --watch --mode development",
23
24
  "dev:types": "tsup --watch src",
24
25
  "dev": "npm-run-all --parallel dev:js dev:types",
26
+ "fix": "npm-run-all lint:fix comments:fix",
25
27
  "lint": "biome lint src",
26
28
  "lint:fix": "biome check src --write --no-errors-on-unmatched",
27
29
  "test": "vitest run",
@@ -30,5 +32,5 @@
30
32
  "test:watch": "vitest",
31
33
  "watch": "npm-run-all dev"
32
34
  },
33
- "gitHead": "efc7567ecb058d8dd55180c28e1dc1a430d26965"
35
+ "gitHead": "e4097d73c3aac460481459f4b2c39d40b2f760f8"
34
36
  }