@stndrds/constants 1.0.0-alpha.237 → 1.0.0-alpha.239
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.mts +13 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.js +8 -0
- package/dist/index.mjs +6 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1546,6 +1546,18 @@ declare const bytesToGb: (bytes: number) => number;
|
|
|
1546
1546
|
*/
|
|
1547
1547
|
declare const isWithinSizeLimit: (bytes: number, maxBytes: number) => boolean;
|
|
1548
1548
|
|
|
1549
|
+
/**
|
|
1550
|
+
* Maximum length of a memory `name`. Memory names double as the identifier
|
|
1551
|
+
* passed to `get_memory({ name })`, so they stay short and slug-like.
|
|
1552
|
+
*/
|
|
1553
|
+
declare const MEMORY_NAME_MAX_LENGTH = 100;
|
|
1554
|
+
/**
|
|
1555
|
+
* Maximum length of a memory `description`. Descriptions are the always-in-
|
|
1556
|
+
* context index line advertised in the agent system prompt, so they are
|
|
1557
|
+
* bounded to keep the whole memories block within a fixed ceiling.
|
|
1558
|
+
*/
|
|
1559
|
+
declare const MEMORY_DESCRIPTION_MAX_LENGTH = 160;
|
|
1560
|
+
|
|
1549
1561
|
/**
|
|
1550
1562
|
* Common MIME types for file validation
|
|
1551
1563
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
|
|
@@ -1767,4 +1779,4 @@ type FormatPreset = {
|
|
|
1767
1779
|
};
|
|
1768
1780
|
declare const TEXT_FORMAT_PRESETS: readonly FormatPreset[];
|
|
1769
1781
|
|
|
1770
|
-
export { AI_CHAT_ACCEPTED_TYPES, AI_CHAT_MAX_FILES, AI_CHAT_MAX_FILE_SIZE, AI_CHAT_SUPPORTED_DOCUMENTS, AI_CHAT_SUPPORTED_IMAGES, AI_CHAT_SUPPORTED_MIME_TYPES, ALL_MIME_TYPES, ARCHIVES, ARCHIVE_MIME_TYPES, ARCHIVE_MIME_TYPES_ARRAY, AUDIO, AUDIO_MIME_TYPES, AUDIO_MIME_TYPES_ARRAY, type ArchiveMimeType, type AudioMimeType, BYTES, CODE, CODE_MIME_TYPES, CODE_MIME_TYPES_ARRAY, COLORS, COLOR_GROUPS, COUNTRIES, CURRENCIES, type CodeMimeType, type Color, type ColorBackground, type ColorBorder, type ColorGroup, type ColorGroupColors, type ColorIcon, type ColorId, type ColorText, type Country, type CountryIso2, type CountryIso3, type CountryName, type CountryNumericCode, type CountryPhoneCode, type Currency, type CurrencyCode, type CurrencyName, type CurrencySymbol, DEFAULT_ATTRIBUTE_ICONS, DEFAULT_TENANT_ID, DOCUMENTS, DOCUMENT_MIME_TYPES, DOCUMENT_MIME_TYPES_ARRAY, type DocumentMimeType, FILE_SIZE, FONTS, FONT_MIME_TYPES, FONT_MIME_TYPES_ARRAY, type FontMimeType, type FormatPreset, type FormatPresetGroup, GIGABYTES, ICONS, IMAGES, IMAGE_MIME_TYPES, IMAGE_MIME_TYPES_ARRAY, type IconName, type ImageMimeType, KILOBYTES, MEDIA, MEGABYTES, type MimeType, OFFICE_DOCUMENTS, RECOMMENDED_MAX_SIZES, SKILL_DESCRIPTION_MAX_LENGTH, SKILL_NAME_MAX_LENGTH, STATUS_COLORS, type StatusColorGroup, TEXT_FORMAT_PRESETS, VIDEO, VIDEO_MIME_TYPES, VIDEO_MIME_TYPES_ARRAY, type VideoMimeType, WEB_IMAGES, bytesToGb, bytesToMb, cn, formatBytes, gbToBytes, getAllColors, getAllCountries, getAllCurrencies, getColor, getColorIds, getColorsByGroup, getCountryByIso2, getCountryByIso3, getCountryDisplayName, getCountryDisplayNameByIso3, getCurrency, getCurrencySymbol, getDefaultAttributeIcon, getPhoneMaxDigits, getPhoneTrunkPrefix, getSortedCountries, isArchiveMimeType, isAudioMimeType, isCodeMimeType, isDocumentMimeType, isImageMimeType, isValidColorId, isValidCurrencyCode, isValidIso2, isValidIso3, isVideoMimeType, isWithinSizeLimit, mbToBytes, stripTrunkPrefix };
|
|
1782
|
+
export { AI_CHAT_ACCEPTED_TYPES, AI_CHAT_MAX_FILES, AI_CHAT_MAX_FILE_SIZE, AI_CHAT_SUPPORTED_DOCUMENTS, AI_CHAT_SUPPORTED_IMAGES, AI_CHAT_SUPPORTED_MIME_TYPES, ALL_MIME_TYPES, ARCHIVES, ARCHIVE_MIME_TYPES, ARCHIVE_MIME_TYPES_ARRAY, AUDIO, AUDIO_MIME_TYPES, AUDIO_MIME_TYPES_ARRAY, type ArchiveMimeType, type AudioMimeType, BYTES, CODE, CODE_MIME_TYPES, CODE_MIME_TYPES_ARRAY, COLORS, COLOR_GROUPS, COUNTRIES, CURRENCIES, type CodeMimeType, type Color, type ColorBackground, type ColorBorder, type ColorGroup, type ColorGroupColors, type ColorIcon, type ColorId, type ColorText, type Country, type CountryIso2, type CountryIso3, type CountryName, type CountryNumericCode, type CountryPhoneCode, type Currency, type CurrencyCode, type CurrencyName, type CurrencySymbol, DEFAULT_ATTRIBUTE_ICONS, DEFAULT_TENANT_ID, DOCUMENTS, DOCUMENT_MIME_TYPES, DOCUMENT_MIME_TYPES_ARRAY, type DocumentMimeType, FILE_SIZE, FONTS, FONT_MIME_TYPES, FONT_MIME_TYPES_ARRAY, type FontMimeType, type FormatPreset, type FormatPresetGroup, GIGABYTES, ICONS, IMAGES, IMAGE_MIME_TYPES, IMAGE_MIME_TYPES_ARRAY, type IconName, type ImageMimeType, KILOBYTES, MEDIA, MEGABYTES, MEMORY_DESCRIPTION_MAX_LENGTH, MEMORY_NAME_MAX_LENGTH, type MimeType, OFFICE_DOCUMENTS, RECOMMENDED_MAX_SIZES, SKILL_DESCRIPTION_MAX_LENGTH, SKILL_NAME_MAX_LENGTH, STATUS_COLORS, type StatusColorGroup, TEXT_FORMAT_PRESETS, VIDEO, VIDEO_MIME_TYPES, VIDEO_MIME_TYPES_ARRAY, type VideoMimeType, WEB_IMAGES, bytesToGb, bytesToMb, cn, formatBytes, gbToBytes, getAllColors, getAllCountries, getAllCurrencies, getColor, getColorIds, getColorsByGroup, getCountryByIso2, getCountryByIso3, getCountryDisplayName, getCountryDisplayNameByIso3, getCurrency, getCurrencySymbol, getDefaultAttributeIcon, getPhoneMaxDigits, getPhoneTrunkPrefix, getSortedCountries, isArchiveMimeType, isAudioMimeType, isCodeMimeType, isDocumentMimeType, isImageMimeType, isValidColorId, isValidCurrencyCode, isValidIso2, isValidIso3, isVideoMimeType, isWithinSizeLimit, mbToBytes, stripTrunkPrefix };
|
package/dist/index.d.ts
CHANGED
|
@@ -1546,6 +1546,18 @@ declare const bytesToGb: (bytes: number) => number;
|
|
|
1546
1546
|
*/
|
|
1547
1547
|
declare const isWithinSizeLimit: (bytes: number, maxBytes: number) => boolean;
|
|
1548
1548
|
|
|
1549
|
+
/**
|
|
1550
|
+
* Maximum length of a memory `name`. Memory names double as the identifier
|
|
1551
|
+
* passed to `get_memory({ name })`, so they stay short and slug-like.
|
|
1552
|
+
*/
|
|
1553
|
+
declare const MEMORY_NAME_MAX_LENGTH = 100;
|
|
1554
|
+
/**
|
|
1555
|
+
* Maximum length of a memory `description`. Descriptions are the always-in-
|
|
1556
|
+
* context index line advertised in the agent system prompt, so they are
|
|
1557
|
+
* bounded to keep the whole memories block within a fixed ceiling.
|
|
1558
|
+
*/
|
|
1559
|
+
declare const MEMORY_DESCRIPTION_MAX_LENGTH = 160;
|
|
1560
|
+
|
|
1549
1561
|
/**
|
|
1550
1562
|
* Common MIME types for file validation
|
|
1551
1563
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
|
|
@@ -1767,4 +1779,4 @@ type FormatPreset = {
|
|
|
1767
1779
|
};
|
|
1768
1780
|
declare const TEXT_FORMAT_PRESETS: readonly FormatPreset[];
|
|
1769
1781
|
|
|
1770
|
-
export { AI_CHAT_ACCEPTED_TYPES, AI_CHAT_MAX_FILES, AI_CHAT_MAX_FILE_SIZE, AI_CHAT_SUPPORTED_DOCUMENTS, AI_CHAT_SUPPORTED_IMAGES, AI_CHAT_SUPPORTED_MIME_TYPES, ALL_MIME_TYPES, ARCHIVES, ARCHIVE_MIME_TYPES, ARCHIVE_MIME_TYPES_ARRAY, AUDIO, AUDIO_MIME_TYPES, AUDIO_MIME_TYPES_ARRAY, type ArchiveMimeType, type AudioMimeType, BYTES, CODE, CODE_MIME_TYPES, CODE_MIME_TYPES_ARRAY, COLORS, COLOR_GROUPS, COUNTRIES, CURRENCIES, type CodeMimeType, type Color, type ColorBackground, type ColorBorder, type ColorGroup, type ColorGroupColors, type ColorIcon, type ColorId, type ColorText, type Country, type CountryIso2, type CountryIso3, type CountryName, type CountryNumericCode, type CountryPhoneCode, type Currency, type CurrencyCode, type CurrencyName, type CurrencySymbol, DEFAULT_ATTRIBUTE_ICONS, DEFAULT_TENANT_ID, DOCUMENTS, DOCUMENT_MIME_TYPES, DOCUMENT_MIME_TYPES_ARRAY, type DocumentMimeType, FILE_SIZE, FONTS, FONT_MIME_TYPES, FONT_MIME_TYPES_ARRAY, type FontMimeType, type FormatPreset, type FormatPresetGroup, GIGABYTES, ICONS, IMAGES, IMAGE_MIME_TYPES, IMAGE_MIME_TYPES_ARRAY, type IconName, type ImageMimeType, KILOBYTES, MEDIA, MEGABYTES, type MimeType, OFFICE_DOCUMENTS, RECOMMENDED_MAX_SIZES, SKILL_DESCRIPTION_MAX_LENGTH, SKILL_NAME_MAX_LENGTH, STATUS_COLORS, type StatusColorGroup, TEXT_FORMAT_PRESETS, VIDEO, VIDEO_MIME_TYPES, VIDEO_MIME_TYPES_ARRAY, type VideoMimeType, WEB_IMAGES, bytesToGb, bytesToMb, cn, formatBytes, gbToBytes, getAllColors, getAllCountries, getAllCurrencies, getColor, getColorIds, getColorsByGroup, getCountryByIso2, getCountryByIso3, getCountryDisplayName, getCountryDisplayNameByIso3, getCurrency, getCurrencySymbol, getDefaultAttributeIcon, getPhoneMaxDigits, getPhoneTrunkPrefix, getSortedCountries, isArchiveMimeType, isAudioMimeType, isCodeMimeType, isDocumentMimeType, isImageMimeType, isValidColorId, isValidCurrencyCode, isValidIso2, isValidIso3, isVideoMimeType, isWithinSizeLimit, mbToBytes, stripTrunkPrefix };
|
|
1782
|
+
export { AI_CHAT_ACCEPTED_TYPES, AI_CHAT_MAX_FILES, AI_CHAT_MAX_FILE_SIZE, AI_CHAT_SUPPORTED_DOCUMENTS, AI_CHAT_SUPPORTED_IMAGES, AI_CHAT_SUPPORTED_MIME_TYPES, ALL_MIME_TYPES, ARCHIVES, ARCHIVE_MIME_TYPES, ARCHIVE_MIME_TYPES_ARRAY, AUDIO, AUDIO_MIME_TYPES, AUDIO_MIME_TYPES_ARRAY, type ArchiveMimeType, type AudioMimeType, BYTES, CODE, CODE_MIME_TYPES, CODE_MIME_TYPES_ARRAY, COLORS, COLOR_GROUPS, COUNTRIES, CURRENCIES, type CodeMimeType, type Color, type ColorBackground, type ColorBorder, type ColorGroup, type ColorGroupColors, type ColorIcon, type ColorId, type ColorText, type Country, type CountryIso2, type CountryIso3, type CountryName, type CountryNumericCode, type CountryPhoneCode, type Currency, type CurrencyCode, type CurrencyName, type CurrencySymbol, DEFAULT_ATTRIBUTE_ICONS, DEFAULT_TENANT_ID, DOCUMENTS, DOCUMENT_MIME_TYPES, DOCUMENT_MIME_TYPES_ARRAY, type DocumentMimeType, FILE_SIZE, FONTS, FONT_MIME_TYPES, FONT_MIME_TYPES_ARRAY, type FontMimeType, type FormatPreset, type FormatPresetGroup, GIGABYTES, ICONS, IMAGES, IMAGE_MIME_TYPES, IMAGE_MIME_TYPES_ARRAY, type IconName, type ImageMimeType, KILOBYTES, MEDIA, MEGABYTES, MEMORY_DESCRIPTION_MAX_LENGTH, MEMORY_NAME_MAX_LENGTH, type MimeType, OFFICE_DOCUMENTS, RECOMMENDED_MAX_SIZES, SKILL_DESCRIPTION_MAX_LENGTH, SKILL_NAME_MAX_LENGTH, STATUS_COLORS, type StatusColorGroup, TEXT_FORMAT_PRESETS, VIDEO, VIDEO_MIME_TYPES, VIDEO_MIME_TYPES_ARRAY, type VideoMimeType, WEB_IMAGES, bytesToGb, bytesToMb, cn, formatBytes, gbToBytes, getAllColors, getAllCountries, getAllCurrencies, getColor, getColorIds, getColorsByGroup, getCountryByIso2, getCountryByIso3, getCountryDisplayName, getCountryDisplayNameByIso3, getCurrency, getCurrencySymbol, getDefaultAttributeIcon, getPhoneMaxDigits, getPhoneTrunkPrefix, getSortedCountries, isArchiveMimeType, isAudioMimeType, isCodeMimeType, isDocumentMimeType, isImageMimeType, isValidColorId, isValidCurrencyCode, isValidIso2, isValidIso3, isVideoMimeType, isWithinSizeLimit, mbToBytes, stripTrunkPrefix };
|
package/dist/index.js
CHANGED
|
@@ -58,6 +58,8 @@ __export(index_exports, {
|
|
|
58
58
|
KILOBYTES: () => KILOBYTES,
|
|
59
59
|
MEDIA: () => MEDIA,
|
|
60
60
|
MEGABYTES: () => MEGABYTES,
|
|
61
|
+
MEMORY_DESCRIPTION_MAX_LENGTH: () => MEMORY_DESCRIPTION_MAX_LENGTH,
|
|
62
|
+
MEMORY_NAME_MAX_LENGTH: () => MEMORY_NAME_MAX_LENGTH,
|
|
61
63
|
OFFICE_DOCUMENTS: () => OFFICE_DOCUMENTS,
|
|
62
64
|
RECOMMENDED_MAX_SIZES: () => RECOMMENDED_MAX_SIZES,
|
|
63
65
|
SKILL_DESCRIPTION_MAX_LENGTH: () => SKILL_DESCRIPTION_MAX_LENGTH,
|
|
@@ -2672,6 +2674,10 @@ var ICONS = [
|
|
|
2672
2674
|
"zero"
|
|
2673
2675
|
];
|
|
2674
2676
|
|
|
2677
|
+
// src/memories.ts
|
|
2678
|
+
var MEMORY_NAME_MAX_LENGTH = 100;
|
|
2679
|
+
var MEMORY_DESCRIPTION_MAX_LENGTH = 160;
|
|
2680
|
+
|
|
2675
2681
|
// src/skills.ts
|
|
2676
2682
|
var SKILL_NAME_MAX_LENGTH = 100;
|
|
2677
2683
|
var SKILL_DESCRIPTION_MAX_LENGTH = 160;
|
|
@@ -2803,6 +2809,8 @@ var TEXT_FORMAT_PRESETS = [
|
|
|
2803
2809
|
KILOBYTES,
|
|
2804
2810
|
MEDIA,
|
|
2805
2811
|
MEGABYTES,
|
|
2812
|
+
MEMORY_DESCRIPTION_MAX_LENGTH,
|
|
2813
|
+
MEMORY_NAME_MAX_LENGTH,
|
|
2806
2814
|
OFFICE_DOCUMENTS,
|
|
2807
2815
|
RECOMMENDED_MAX_SIZES,
|
|
2808
2816
|
SKILL_DESCRIPTION_MAX_LENGTH,
|
package/dist/index.mjs
CHANGED
|
@@ -2565,6 +2565,10 @@ var ICONS = [
|
|
|
2565
2565
|
"zero"
|
|
2566
2566
|
];
|
|
2567
2567
|
|
|
2568
|
+
// src/memories.ts
|
|
2569
|
+
var MEMORY_NAME_MAX_LENGTH = 100;
|
|
2570
|
+
var MEMORY_DESCRIPTION_MAX_LENGTH = 160;
|
|
2571
|
+
|
|
2568
2572
|
// src/skills.ts
|
|
2569
2573
|
var SKILL_NAME_MAX_LENGTH = 100;
|
|
2570
2574
|
var SKILL_DESCRIPTION_MAX_LENGTH = 160;
|
|
@@ -2695,6 +2699,8 @@ export {
|
|
|
2695
2699
|
KILOBYTES,
|
|
2696
2700
|
MEDIA,
|
|
2697
2701
|
MEGABYTES,
|
|
2702
|
+
MEMORY_DESCRIPTION_MAX_LENGTH,
|
|
2703
|
+
MEMORY_NAME_MAX_LENGTH,
|
|
2698
2704
|
OFFICE_DOCUMENTS,
|
|
2699
2705
|
RECOMMENDED_MAX_SIZES,
|
|
2700
2706
|
SKILL_DESCRIPTION_MAX_LENGTH,
|