@epam/ai-dial-chat-shared 1.1.0-dev.182 → 1.1.0-dev.184

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.
@@ -0,0 +1,15 @@
1
+ import { CatalogEntityType } from '../types/entity-type';
2
+ /** Minimal entity identity fields rendered by `EntityHeader`. */
3
+ export interface EntityHeaderItem {
4
+ /** Entity category. */
5
+ type: CatalogEntityType;
6
+ /** Display name. */
7
+ name: string;
8
+ /** Version string shown next to the name. */
9
+ version: string;
10
+ /** URL of the icon displayed inside the logo mark. */
11
+ iconUrl?: string;
12
+ /** Whether the entity is marked as featured. */
13
+ isFeatured?: boolean;
14
+ }
15
+ //# sourceMappingURL=entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../src/models/entity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,iEAAiE;AACjE,MAAM,WAAW,gBAAgB;IAC/B,uBAAuB;IACvB,IAAI,EAAE,iBAAiB,CAAC;IACxB,oBAAoB;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,6CAA6C;IAC7C,OAAO,EAAE,MAAM,CAAC;IAChB,sDAAsD;IACtD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gDAAgD;IAChD,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-chat-shared",
3
3
  "description": "Shared domain models, utilities, and UI components for AI DIAL Chat libraries",
4
- "version": "1.1.0-dev.182",
4
+ "version": "1.1.0-dev.184",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -0,0 +1,10 @@
1
+ /** Entity type for a catalog item. Values are uppercase for direct color-map lookup. */
2
+ export declare enum CatalogEntityType {
3
+ Model = "MODEL",
4
+ Agent = "AGENT",
5
+ Toolset = "TOOLSET",
6
+ Skill = "SKILL",
7
+ /** Reusable text prompt. Carries a body instead of a runtime. */
8
+ Prompt = "PROMPT"
9
+ }
10
+ //# sourceMappingURL=entity-type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-type.d.ts","sourceRoot":"","sources":["../../src/types/entity-type.ts"],"names":[],"mappings":"AAAA,wFAAwF;AACxF,oBAAY,iBAAiB;IAC3B,KAAK,UAAU;IACf,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,iEAAiE;IACjE,MAAM,WAAW;CAClB"}
@@ -0,0 +1,5 @@
1
+ /** Formats an amount as USD, keeping up to six decimals for sub-dollar values (e.g. `$3`, `$0.3`). */
2
+ export declare const formatPrice: (value: number) => string;
3
+ /** Formats a per-unit price string for display, e.g. `$3/M tokens` or `$0.5/char without whitespace`. */
4
+ export declare const formatUnitPrice: (price: string | undefined, unit: string | undefined) => string | undefined;
5
+ //# sourceMappingURL=format-price.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-price.d.ts","sourceRoot":"","sources":["../../src/utils/format-price.ts"],"names":[],"mappings":"AAwBA,sGAAsG;AACtG,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,KAAG,MAK3C,CAAC;AASF,yGAAyG;AACzG,eAAO,MAAM,eAAe,GAC1B,OAAO,MAAM,GAAG,SAAS,EACzB,MAAM,MAAM,GAAG,SAAS,KACvB,MAAM,GAAG,SAWX,CAAC"}