@versini/sassysaint-common 4.71.0 → 4.71.2
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/constants/index.js +1 -1
- package/dist/index.d.ts +27 -19
- package/package.json +1 -1
package/dist/constants/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export*from"./memory.js";export*from"./theme-types.js";let E="system",e="user",O="assistant",_="OpenAI",T="Anthropic",R="Google",S="Summary",t="Memory",a="Perplexity",A=_,
|
|
1
|
+
export*from"./memory.js";export*from"./theme-types.js";let E="system",e="user",O="assistant",_="OpenAI",T="Anthropic",R="Google",S="Summary",t="Memory",a="Perplexity",A=_,L=[_,T,R],I="gpt-6.1-sol",i="gpt-6-luna",s="claude-opus-5-5",N="claude-sonnet-5-5",P="claude-haiku-5-5",n="gemini-3.8-flash",o="gemini-3.5-flash-lite",D="sonar",r="sonar-pro",M="perplexity-search",g="openai/gpt-oss-20b:free",C="perplexity-search",l="openai-web-search",u="google-tts-chirp3-hd",c="google-tts-neural2",h="google-tts-wavenet",U="serpapi",d="iproyal-residential",p="claude-haiku-5-5",G="gpt-6-luna",m="gemini-3.5-flash-lite",H="gemini-3.8-flash",B="gpt-6.1-sol",y="gpt-6-luna",V="gpt-5.6-luna",Y="gemini-3.6-flash",F="text-embedding-3-small",W="gpt-image-2.5-sunburst",f=5,b=1e4,w=3e3,X={[I]:"GPT-6.1 Sol",[i]:"GPT-6 Luna",[s]:"Claude Opus 5.5",[N]:"Claude Sonnet 5.5",[P]:"Claude Haiku 5.5",[n]:"Gemini 3.8 Flash",[o]:"Gemini 3.5 Flash-Lite",[D]:"Sonar",[r]:"Sonar Pro",[M]:"Perplexity Search",[W]:"GPT Image 2.5 Sunburst"},k=[I,i,s,N,P,o,n,W],x=[I,i,s,N,P,n,o],K="fast",Z="balanced",v="thorough",z=[K,Z,v],Q={[K]:"low",[Z]:"medium",[v]:"high"},j={[_]:K,[T]:Z,[R]:K},q="none",J=["settings","shortcuts","memories","history","usage","about"],$={[_]:[I,i],[T]:[s,P,N],[R]:[o,n],[a]:[D,r,M]},EE={[_]:[E,e,O],[T]:[e,O],[S]:[e,O],[t]:[e,O],[R]:[e,O],[a]:[e,O]},Ee={[T]:["claude-opus-5","claude-opus-4","claude-sonnet-5","claude-sonnet-4","claude-haiku-5","claude-haiku-4","claude-3"],[_]:["gpt-","o3","o4"],[R]:["gemini"],[a]:["sonar"]},EO="x-diggidy-chat-id",E_="x-diggidy-chat-timestamp",ET="complete",ER="timestamp",ES="tokenUsage",Et="Diggidy",Ea="sassy:basic",EA="sassy:plus",EL={TOOL:{BARCODE:"getProductByBarcode",BUNDLESIZE:"getBundleSize",DATETIME:"getDateTime",GENERATE_IMAGE:"generateImage",IMAGES:"getImages",NUTRITION_FACTS:"getNutritionFacts",POLLUTION:"getAirPollution",WEATHER:"getWeather",URLCONTENTPARSER:"getUrlContent",MEMORIES:"getUserMemories",HUMANIZE:"humanize",WEBSEARCH:"getWebSearch",GITREPOSITORY:"getGitRepoDetails",HOTELS:"getHotelDetails",LOCAL_BUSINESSES:"getLocalBusinesses",NEWS_BRIEF:"getNewsBrief",PRODUCTS:"getProducts",REVIEW_TRUST:"getReviewTrust",STREAMING_PICKS:"getStreamingPicks",PRONUNCIATION:"getPronunciation",FRENCH_TEACHINGS:"getFrenchTeachings",PAST_CHATS:"searchPastChats"},ADDON:{ATTACHMENTS:"addon:attachments",CODEINTERPRETER:"addon:codeinterpreter",SHARE_CHAT:"addon:share-chat"}},EI={code_interpreter:"Running code...",web_search:"Searching the web...",[EL.TOOL.WEATHER]:"Checking the weather...",[EL.TOOL.POLLUTION]:"Fetching air pollution data...",[EL.TOOL.BUNDLESIZE]:"Analyzing bundle size...",[EL.TOOL.URLCONTENTPARSER]:"Reading a webpage...",[EL.TOOL.WEBSEARCH]:"Searching the web...",[EL.TOOL.GITREPOSITORY]:"Looking up repository...",[EL.TOOL.HOTELS]:"Searching for hotels...",[EL.TOOL.LOCAL_BUSINESSES]:"Searching for local businesses...",[EL.TOOL.NEWS_BRIEF]:"Reading today's news...",[EL.TOOL.PRODUCTS]:"Searching for products...",[EL.TOOL.REVIEW_TRUST]:"Checking reviews...",[EL.TOOL.STREAMING_PICKS]:"Finding movies to stream...",[EL.TOOL.NUTRITION_FACTS]:"Fetching nutrition facts...",[EL.TOOL.GENERATE_IMAGE]:"Generating image...",[EL.TOOL.BARCODE]:"Looking up product...",[EL.TOOL.PRONUNCIATION]:"Generating pronunciation...",[EL.TOOL.HUMANIZE]:"Rewriting text...",[EL.TOOL.IMAGES]:"Searching for images...",[EL.TOOL.PAST_CHATS]:"Searching your past chats..."},Ei="Using tools...",Es=8e5,EN=16384,EP=4,En=3,Eo=8388608,ED="context-compression-summary",Er="data-urlRead",EM="[Note from the system: you read",Eg="data-newsLinks";export{k as ALL_MODELS,L as ALL_PROVIDERS,x as ALL_REASONING_MODELS,Et as APPLICATION_NAME,Ee as APPROXIMATE_MODELS_PER_PROVIDER,EL as CAPABILITIES,ET as CHAT_COMPLETION_MARKER_KEY,Es as CONTEXT_COMPRESSION_EMERGENCY_THRESHOLD,En as CONTEXT_COMPRESSION_KEEP_IMAGES,EP as CONTEXT_COMPRESSION_KEEP_RECENT,Eo as CONTEXT_COMPRESSION_MAX_DOCUMENT_BYTES,ED as CONTEXT_COMPRESSION_SUMMARY_ID,A as DEFAULT_PROVIDER,j as DEFAULT_RESPONSE_SPEED,Ei as DEFAULT_TOOL_LOADING_LABEL,EO as DIGGIDY_CHAT_ID_HEADER,E_ as DIGGIDY_CHAT_TIMESTAMP_HEADER,EN as MAX_OUTPUT_TOKENS,f as MAX_SEARCH_QUERIES,$ as MODELS_PER_PROVIDER,P as MODEL_ANTHROPIC_LOW,N as MODEL_ANTHROPIC_MEDIUM,s as MODEL_ANTHROPIC_TOP,G as MODEL_CHAT_SUMMARY,g as MODEL_DEV,X as MODEL_DISPLAY_NAMES,F as MODEL_EMBEDDING_TEXT,W as MODEL_GENERATE_IMAGE,o as MODEL_GOOGLE_MEDIUM,n as MODEL_GOOGLE_TOP,B as MODEL_HUMANIZE_AUDIT,H as MODEL_HUMANIZE_REWRITE,p as MODEL_MEMORY_INFERENCE,y as MODEL_NUTRITION_SEARCH,i as MODEL_OPENAI_MEDIUM,I as MODEL_OPENAI_TOP,M as MODEL_PERPLEXITY_SEARCH,V as MODEL_REVIEW_TRUST_PANEL,Y as MODEL_REVIEW_TRUST_PANEL_GOOGLE,m as MODEL_SEARCH_DECOMPOSER,D as MODEL_SONAR,r as MODEL_SONAR_PRO,Eg as NEWS_LINKS_PART_TYPE,Ea as PLAN_BASIC,EA as PLAN_PLUS,T as PROVIDER_ANTHROPIC,R as PROVIDER_GOOGLE,t as PROVIDER_MEMORY,_ as PROVIDER_OPENAI,a as PROVIDER_PERPLEXITY,EE as PROVIDER_ROLE_MAP,S as PROVIDER_SUMMARY,q as QUICK_ACCESS_NONE,J as QUICK_ACCESS_PANELS,z as RESPONSE_SPEEDS,Z as RESPONSE_SPEED_BALANCED,K as RESPONSE_SPEED_FAST,v as RESPONSE_SPEED_THOROUGH,Q as RESPONSE_SPEED_TO_EFFORT,O as ROLE_ASSISTANT,E as ROLE_SYSTEM,e as ROLE_USER,w as SEARCH_DECOMPOSE_TIMEOUT_MS,b as SEARCH_QUERY_TIMEOUT_MS,ER as SORT_BY_TIMESTAMP,ES as SORT_BY_TOKEN_USAGE,EI as TOOL_LOADING_LABELS,EM as URL_READ_NOTE_PREFIX,Er as URL_READ_PART_TYPE,u as VENDOR_GOOGLE_TTS_CHIRP3_HD,c as VENDOR_GOOGLE_TTS_NEURAL2,h as VENDOR_GOOGLE_TTS_WAVENET,d as VENDOR_IPROYAL_RESIDENTIAL,l as VENDOR_OPENAI_WEB_SEARCH,C as VENDOR_PERPLEXITY_SEARCH,U as VENDOR_SERPAPI};
|
package/dist/index.d.ts
CHANGED
|
@@ -148,20 +148,18 @@ export declare type ColorMap = Partial<Record<ActionColor, string>>;
|
|
|
148
148
|
* compression call site in vercelEngine.ts for why none of those three
|
|
149
149
|
* qualifiers may be dropped when quoting that number.
|
|
150
150
|
*
|
|
151
|
-
* BEWARE THE UNIT.
|
|
151
|
+
* BEWARE THE UNIT. The floor is compared against the client's accumulated
|
|
152
152
|
* `contextTokenUsage`, which sums each turn's full prompt plus output, so it
|
|
153
|
-
* grows quadratically in turns while real context grows linearly.
|
|
154
|
-
* context-window
|
|
155
|
-
*
|
|
156
|
-
* the unit is #3180; until then these numbers are calibration, not capacity.
|
|
153
|
+
* grows quadratically in turns while real context grows linearly. It is not a
|
|
154
|
+
* context-window percentage and must not be read as one. Fixing the unit is
|
|
155
|
+
* #3180; until then this number is calibration, not capacity.
|
|
157
156
|
*
|
|
158
|
-
*
|
|
159
|
-
*
|
|
157
|
+
* One floor for every plan, since both plans unlock the same models. It is the
|
|
158
|
+
* value Premium used across that same lineup before the plans merged; the lower
|
|
159
|
+
* 100_000 floor for the other plans went with them.
|
|
160
160
|
*
|
|
161
161
|
*/
|
|
162
|
-
export declare const CONTEXT_COMPRESSION_EMERGENCY_THRESHOLD =
|
|
163
|
-
|
|
164
|
-
export declare const CONTEXT_COMPRESSION_EMERGENCY_THRESHOLD_PREMIUM = 800000;
|
|
162
|
+
export declare const CONTEXT_COMPRESSION_EMERGENCY_THRESHOLD = 800000;
|
|
165
163
|
|
|
166
164
|
/**
|
|
167
165
|
* Maximum number of the most recent images carried forward when older messages
|
|
@@ -279,13 +277,6 @@ export declare function findNewsBrief(text: string): NewsBrief | null;
|
|
|
279
277
|
*/
|
|
280
278
|
export declare const findProvider: (modelName: string) => null | typeof PROVIDER_ANTHROPIC | typeof PROVIDER_OPENAI | typeof PROVIDER_GOOGLE;
|
|
281
279
|
|
|
282
|
-
/**
|
|
283
|
-
* Resolve the emergency compression floor for a plan. Premium gets the high
|
|
284
|
-
* ceiling (its models carry ~1M token windows); every other plan falls back to
|
|
285
|
-
* the conservative default that protects smaller windows.
|
|
286
|
-
*/
|
|
287
|
-
export declare function getCompressionEmergencyThreshold(plan?: string): number;
|
|
288
|
-
|
|
289
280
|
/**
|
|
290
281
|
* Groups allowed models by their respective providers. This function is used to
|
|
291
282
|
* create nested menu structures in the UI where users can select specific
|
|
@@ -917,8 +908,6 @@ export declare const PLAN_BASIC = "sassy:basic";
|
|
|
917
908
|
|
|
918
909
|
export declare const PLAN_PLUS = "sassy:plus";
|
|
919
910
|
|
|
920
|
-
export declare const PLAN_PREMIUM = "sassy:advanced";
|
|
921
|
-
|
|
922
911
|
export declare const PROVIDER_ANTHROPIC = "Anthropic";
|
|
923
912
|
|
|
924
913
|
export declare const PROVIDER_GOOGLE = "Google";
|
|
@@ -1169,6 +1158,25 @@ export declare interface UrlReadRecord {
|
|
|
1169
1158
|
partial: boolean;
|
|
1170
1159
|
}
|
|
1171
1160
|
|
|
1161
|
+
export declare const VENDOR_GOOGLE_TTS_CHIRP3_HD = "google-tts-chirp3-hd";
|
|
1162
|
+
|
|
1163
|
+
export declare const VENDOR_GOOGLE_TTS_NEURAL2 = "google-tts-neural2";
|
|
1164
|
+
|
|
1165
|
+
export declare const VENDOR_GOOGLE_TTS_WAVENET = "google-tts-wavenet";
|
|
1166
|
+
|
|
1167
|
+
export declare const VENDOR_IPROYAL_RESIDENTIAL = "iproyal-residential";
|
|
1168
|
+
|
|
1169
|
+
export declare const VENDOR_OPENAI_WEB_SEARCH = "openai-web-search";
|
|
1170
|
+
|
|
1171
|
+
/**
|
|
1172
|
+
* Vendors billed per request or per unit rather than per token. A tool reports
|
|
1173
|
+
* the units it was billed under one of these keys, and the server prices them
|
|
1174
|
+
* from its vendor fee table as the user's vendor fee.
|
|
1175
|
+
*/
|
|
1176
|
+
export declare const VENDOR_PERPLEXITY_SEARCH = "perplexity-search";
|
|
1177
|
+
|
|
1178
|
+
export declare const VENDOR_SERPAPI = "serpapi";
|
|
1179
|
+
|
|
1172
1180
|
/**
|
|
1173
1181
|
* A user message's text with a card follow-up's title removed, so only the
|
|
1174
1182
|
* words the user chose keep their authority. Any other text is returned
|