@gengage/assistant-fe 0.6.33 → 0.6.35
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/chat-runtime.js +1 -1
- package/dist/chat.iife.js +1 -1
- package/dist/chat.js +1 -1
- package/dist/common/index.d.ts +2 -1
- package/dist/{common-Bhl-diYQ.js → common-C-lXfS-s.js} +1 -1
- package/dist/common.js +68 -67
- package/dist/{connection-warning-CuJ66qqt.js → connection-warning-DrXU9qN9.js} +1 -1
- package/dist/{fastIntent-CjgT7XpX.js → fastIntent-Diz6Vo0W.js} +1 -1
- package/dist/index.js +21 -21
- package/dist/native.iife.js +1 -1
- package/dist/qna-runtime.js +1 -1
- package/dist/qna.iife.js +1 -1
- package/dist/qna.js +1 -1
- package/dist/request-response-cache-DmnzO4Hu.js +1426 -0
- package/dist/{runtime-8WgpotSV.js → runtime-CiO-HX8B.js} +198 -199
- package/dist/{runtime-4QEfxNRC.js → runtime-D0v-KyzN.js} +36 -37
- package/dist/{runtime-bXec5UVj.js → runtime-hci1VRsa.js} +8 -9
- package/dist/{simbut-3z-Ed-TM.js → simbut-D-IPkTT8.js} +1 -1
- package/dist/simbut.iife.js +1 -1
- package/dist/simbut.js +1 -1
- package/dist/{simrel-Bz7xAdSc.js → simrel-BjMCvCdo.js} +1 -1
- package/dist/simrel-runtime.js +1 -1
- package/dist/simrel.iife.js +1 -1
- package/dist/simrel.js +2 -2
- package/dist/{widget-base-DhkuNWft.js → widget-base-_HBDf5VH.js} +1 -1
- package/package.json +3 -19
- package/dist/agent-ui-steps-DIWmTMuV.js +0 -3199
- package/dist/agentic/adaptor/create-adaptor.d.ts +0 -22
- package/dist/agentic/adaptor/fetch-bridge.d.ts +0 -31
- package/dist/agentic/adaptor/mount.d.ts +0 -45
- package/dist/agentic/algos/similarity.d.ts +0 -86
- package/dist/agentic/algos/similarity.js +0 -261
- package/dist/agentic/context/chat-context.d.ts +0 -17
- package/dist/agentic/context/context-store.d.ts +0 -57
- package/dist/agentic/context/persistence.d.ts +0 -14
- package/dist/agentic/contracts/agentic-contracts.d.ts +0 -133
- package/dist/agentic/debug/activity-collector.d.ts +0 -15
- package/dist/agentic/debug/activity-instrumentation.d.ts +0 -22
- package/dist/agentic/debug/activity-overlay.d.ts +0 -3
- package/dist/agentic/debug/activity-state.d.ts +0 -37
- package/dist/agentic/debug/local-dev.d.ts +0 -18
- package/dist/agentic/events/builders.d.ts +0 -10
- package/dist/agentic/events/comparison.d.ts +0 -6
- package/dist/agentic/events/context-products.d.ts +0 -6
- package/dist/agentic/events/error-taxonomy.d.ts +0 -27
- package/dist/agentic/events/product-normalize.d.ts +0 -50
- package/dist/agentic/events/ui-specs.d.ts +0 -41
- package/dist/agentic/flow/create-flow.d.ts +0 -2
- package/dist/agentic/flow/dispatch.d.ts +0 -3
- package/dist/agentic/index.d.ts +0 -65
- package/dist/agentic/index.js +0 -3493
- package/dist/agentic/types.d.ts +0 -360
- package/dist/agentic/util/account-config.d.ts +0 -8
- package/dist/agentic/util/assistant-host.d.ts +0 -11
- package/dist/agentic/util/be-url.d.ts +0 -4
- package/dist/agentic/util/browser-memory.d.ts +0 -13
- package/dist/agentic/util/browser-tools.d.ts +0 -31
- package/dist/agentic/util/cache-key.d.ts +0 -15
- package/dist/agentic/util/common/declarative-cache.d.ts +0 -21
- package/dist/agentic/util/common/fallback-status.d.ts +0 -10
- package/dist/agentic/util/common/flow-steps.d.ts +0 -8
- package/dist/agentic/util/common/gss-tool-aliases.d.ts +0 -66
- package/dist/agentic/util/common/iframe-scraper.d.ts +0 -22
- package/dist/agentic/util/common/llm-routing.d.ts +0 -50
- package/dist/agentic/util/common/object.d.ts +0 -1
- package/dist/agentic/util/common/open-product-page.d.ts +0 -30
- package/dist/agentic/util/common/panel-context.d.ts +0 -3
- package/dist/agentic/util/common/privacy.d.ts +0 -14
- package/dist/agentic/util/common/product-resolver.d.ts +0 -20
- package/dist/agentic/util/common/product-surface.d.ts +0 -24
- package/dist/agentic/util/common/ref-store.d.ts +0 -15
- package/dist/agentic/util/common/retail-privacy.d.ts +0 -4
- package/dist/agentic/util/common/route-params.d.ts +0 -3
- package/dist/agentic/util/common/similarity-ranking.d.ts +0 -2
- package/dist/agentic/util/common/site-awareness.d.ts +0 -130
- package/dist/agentic/util/lazy-runtime-loader.d.ts +0 -10
- package/dist/agentic/util/privacy.d.ts +0 -12
- package/dist/agentic/util/request-text.d.ts +0 -3
- package/dist/agentic/util/time.d.ts +0 -2
- package/dist/agentic/widgets/endpoints.d.ts +0 -12
- package/dist/agentic/worker/agent-ui-steps.d.ts +0 -43
- package/dist/agentic/worker/agent-ui.d.ts +0 -44
- package/dist/agentic/worker/be-client.d.ts +0 -32
- package/dist/agentic/worker/coalesce.d.ts +0 -25
- package/dist/agentic/worker/compaction.d.ts +0 -12
- package/dist/agentic/worker/entry.d.ts +0 -2
- package/dist/agentic/worker/flow-runner.d.ts +0 -24
- package/dist/agentic/worker/jwt-mint.d.ts +0 -21
- package/dist/agentic/worker/pdp-hydrate.d.ts +0 -30
- package/dist/agentic/worker/rpc.d.ts +0 -47
- package/dist/agentic/worker/tool-bridge.d.ts +0 -2
- package/dist/agentic/worker/tool-schema.d.ts +0 -19
- package/dist/agentic/worker.d.ts +0 -52
- package/dist/agentic/worker.js +0 -429
- package/dist/agentic.iife.js +0 -445
- package/dist/api-paths-BTHgM_Tz.js +0 -1274
- package/dist/request-response-cache-BxRsKGJ0.js +0 -154
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export declare function wrapActivityTools(tools: any, collector: any): any;
|
|
2
|
-
export declare function wrapActivityBeacon(beacon: any, collector: any): any;
|
|
3
|
-
export declare function wrapActivityTransport(accountId: any, collector: any): boolean;
|
|
4
|
-
export declare function installActivityFetchPatch({ accountId, collector, promptBaseUrl }?: {}): void;
|
|
5
|
-
export declare function recordBeDebugPayload(collector: any, payload: any): void;
|
|
6
|
-
export declare function fetchPromptSource({ accountId, opName, promptBaseUrl }: {
|
|
7
|
-
accountId: any;
|
|
8
|
-
opName: any;
|
|
9
|
-
promptBaseUrl: any;
|
|
10
|
-
}): Promise<{
|
|
11
|
-
url: string;
|
|
12
|
-
error: string;
|
|
13
|
-
yaml?: never;
|
|
14
|
-
} | {
|
|
15
|
-
url: string;
|
|
16
|
-
yaml: string;
|
|
17
|
-
error?: never;
|
|
18
|
-
} | {
|
|
19
|
-
error: any;
|
|
20
|
-
url?: never;
|
|
21
|
-
yaml?: never;
|
|
22
|
-
} | null>;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export declare function buildActivityVisualization(entries?: never[]): {
|
|
2
|
-
flow: {
|
|
3
|
-
status: string;
|
|
4
|
-
sessionId: string;
|
|
5
|
-
requestType: string;
|
|
6
|
-
actionType: string;
|
|
7
|
-
model: string;
|
|
8
|
-
current: string;
|
|
9
|
-
errors: number;
|
|
10
|
-
warnings: number;
|
|
11
|
-
startedAt: null;
|
|
12
|
-
lastAt: null;
|
|
13
|
-
tools: never[];
|
|
14
|
-
beOps: never[];
|
|
15
|
-
uiSurfaces: never[];
|
|
16
|
-
timeline: never[];
|
|
17
|
-
};
|
|
18
|
-
context: {
|
|
19
|
-
intent: null;
|
|
20
|
-
route: null;
|
|
21
|
-
panel: null;
|
|
22
|
-
threadExtensions: {};
|
|
23
|
-
pageProduct: null;
|
|
24
|
-
products: null;
|
|
25
|
-
ui: null;
|
|
26
|
-
lastText: string;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
export declare function summarizeDebugState(value: any, source?: string): {
|
|
30
|
-
[k: string]: unknown;
|
|
31
|
-
} | null;
|
|
32
|
-
export declare function summarizePanelState(panel: any): {
|
|
33
|
-
[k: string]: unknown;
|
|
34
|
-
} | null;
|
|
35
|
-
export declare function summarizeUiSpec(spec: any, widget?: string, panelHint?: string): {
|
|
36
|
-
[k: string]: unknown;
|
|
37
|
-
} | null;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export declare function installLocalAgenticActivityDebug({ accountId, config, tools, beacon }?: {
|
|
2
|
-
config?: {} | undefined;
|
|
3
|
-
}): {
|
|
4
|
-
enabled: boolean;
|
|
5
|
-
tools: any;
|
|
6
|
-
beacon: any;
|
|
7
|
-
record(): void;
|
|
8
|
-
wrapTransport(): void;
|
|
9
|
-
collector?: never;
|
|
10
|
-
} | {
|
|
11
|
-
enabled: boolean;
|
|
12
|
-
collector: any;
|
|
13
|
-
tools: any;
|
|
14
|
-
beacon: any;
|
|
15
|
-
record: (entry: any) => any;
|
|
16
|
-
wrapTransport: () => boolean;
|
|
17
|
-
};
|
|
18
|
-
export declare function shouldInstallActivityDebug(accountId: any, config?: {}): boolean;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { StreamEventAction, StreamEventDone, StreamEventError, StreamEventMetadata, StreamEventTextChunk, StreamEventUISpec } from '../../common/types.js';
|
|
2
|
-
import type { UiSpecEnvelope } from '../types.js';
|
|
3
|
-
export declare function metadata(args?: Record<string, unknown>): StreamEventMetadata;
|
|
4
|
-
type TextChunkExtras = Omit<StreamEventTextChunk, 'type' | 'content' | 'final'>;
|
|
5
|
-
export declare function textChunk(content: string, final?: boolean, extras?: TextChunkExtras): StreamEventTextChunk;
|
|
6
|
-
export declare function uiSpec(args: UiSpecEnvelope): StreamEventUISpec;
|
|
7
|
-
export declare function action(payload: StreamEventAction['action']): StreamEventAction;
|
|
8
|
-
export declare function error(code: string, message: string): StreamEventError;
|
|
9
|
-
export declare function done(): StreamEventDone;
|
|
10
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export interface ComparisonNormalizeOptions {
|
|
2
|
-
stockLabels?: readonly string[];
|
|
3
|
-
}
|
|
4
|
-
export declare function normalizeComparisonTable(table: unknown): Record<string, unknown>;
|
|
5
|
-
export declare function alignProductsToTable(products: unknown, table: unknown): Record<string, unknown>[];
|
|
6
|
-
export declare function comparisonResultForUi(comparison: Record<string, unknown> | null | undefined, products: unknown): Record<string, unknown>;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { StreamEventError } from '../../common/types.js';
|
|
2
|
-
interface AgentErrorOptions {
|
|
3
|
-
source?: string;
|
|
4
|
-
sourceCode?: string;
|
|
5
|
-
detail?: unknown;
|
|
6
|
-
}
|
|
7
|
-
export declare class AgentError extends Error {
|
|
8
|
-
readonly code: string;
|
|
9
|
-
readonly source: string;
|
|
10
|
-
readonly sourceCode?: string;
|
|
11
|
-
readonly detail?: unknown;
|
|
12
|
-
constructor(code: string, message: string, options?: AgentErrorOptions);
|
|
13
|
-
}
|
|
14
|
-
interface BeErrorLike {
|
|
15
|
-
code?: unknown;
|
|
16
|
-
detail?: unknown;
|
|
17
|
-
}
|
|
18
|
-
export declare function beErrorToAgentError(beError: BeErrorLike | null | undefined): AgentError;
|
|
19
|
-
interface HttpErrorBody {
|
|
20
|
-
error?: {
|
|
21
|
-
code?: unknown;
|
|
22
|
-
detail?: unknown;
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
export declare function httpErrorToAgentError(status: number, body: HttpErrorBody | null | undefined): AgentError;
|
|
26
|
-
export declare function caughtToStreamError(caught: unknown): StreamEventError;
|
|
27
|
-
export {};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Account-agnostic product normalization. Maps a wide variety of catalog
|
|
3
|
-
* shapes (Algolia hits, scraped JSON-LD, direct product feeds) into the
|
|
4
|
-
* minimal field set that FE's ProductCard / ProductDetailsPanel renderers
|
|
5
|
-
* consume. Used by the UI-spec builders.
|
|
6
|
-
*/
|
|
7
|
-
export interface NormalizedProduct {
|
|
8
|
-
sku: string;
|
|
9
|
-
name: string;
|
|
10
|
-
url: string;
|
|
11
|
-
imageUrl?: string;
|
|
12
|
-
images?: string[];
|
|
13
|
-
price?: string;
|
|
14
|
-
originalPrice?: string;
|
|
15
|
-
brand?: string;
|
|
16
|
-
rating?: number;
|
|
17
|
-
reviewCount?: number;
|
|
18
|
-
cartCode?: string;
|
|
19
|
-
inStock?: boolean;
|
|
20
|
-
categoryNames?: string[];
|
|
21
|
-
}
|
|
22
|
-
export interface TrimmedProductFacts {
|
|
23
|
-
sku: unknown;
|
|
24
|
-
name?: unknown;
|
|
25
|
-
url?: unknown;
|
|
26
|
-
price?: unknown;
|
|
27
|
-
currency?: unknown;
|
|
28
|
-
category?: unknown;
|
|
29
|
-
category_names?: unknown;
|
|
30
|
-
image?: unknown;
|
|
31
|
-
in_stock?: unknown;
|
|
32
|
-
rating?: unknown;
|
|
33
|
-
review_count?: unknown;
|
|
34
|
-
}
|
|
35
|
-
export interface ProductNormalizeOptions {
|
|
36
|
-
catalogMapper?: ((raw: Record<string, unknown>) => NormalizedProduct | null) | undefined;
|
|
37
|
-
}
|
|
38
|
-
export declare function normalizeProduct(product: unknown, options?: ProductNormalizeOptions): NormalizedProduct | null;
|
|
39
|
-
/**
|
|
40
|
-
* Compact product facts for BE LLM-op evidence. Account-agnostic core —
|
|
41
|
-
* keeps fields aligned with BE's shared productSchema (sharedSchemas.ts)
|
|
42
|
-
* and drops merchant-internal noise (cart codes, group ids, full image
|
|
43
|
-
* arrays, internal flags). Account-specific trimmers can wrap this and
|
|
44
|
-
* add domain-specific facet fields (e.g. occasion, color) on top.
|
|
45
|
-
*/
|
|
46
|
-
export declare function trimProductFactsCore(product: unknown): unknown;
|
|
47
|
-
export declare function trimProductFactsListCore(products: unknown): unknown[];
|
|
48
|
-
export declare function firstString(...values: unknown[]): string;
|
|
49
|
-
export declare function numberValue(value: unknown): number;
|
|
50
|
-
export declare function stringList(value: unknown): string[];
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Account-agnostic UI-spec builders for FE-facing StreamEvents.
|
|
3
|
-
*
|
|
4
|
-
* Account flows compose these to emit `ui_spec` events. They produce the
|
|
5
|
-
* generic `chat` widget envelope used across all merchants. Account-specific
|
|
6
|
-
* decoration (occasion-aware copy, brand-themed cards, etc.) belongs in
|
|
7
|
-
* the account folder, but the structural specs live here.
|
|
8
|
-
*/
|
|
9
|
-
import type { UiSpecEnvelope } from '../types.js';
|
|
10
|
-
import { firstString, numberValue, stringList, type ProductNormalizeOptions } from './product-normalize.js';
|
|
11
|
-
interface ActionRequest {
|
|
12
|
-
title?: string;
|
|
13
|
-
type?: string;
|
|
14
|
-
payload?: unknown;
|
|
15
|
-
}
|
|
16
|
-
interface ActionEntry {
|
|
17
|
-
label?: string;
|
|
18
|
-
title?: string;
|
|
19
|
-
shortName?: string;
|
|
20
|
-
action?: ActionRequest;
|
|
21
|
-
requestDetails?: ActionRequest;
|
|
22
|
-
request_details?: ActionRequest;
|
|
23
|
-
}
|
|
24
|
-
interface ComparisonInput {
|
|
25
|
-
multiple_product_details?: unknown[];
|
|
26
|
-
products?: unknown[];
|
|
27
|
-
recommended_choice_sku?: string;
|
|
28
|
-
recommended_choice?: string;
|
|
29
|
-
table?: Record<string, unknown>;
|
|
30
|
-
comparison_table?: Array<{
|
|
31
|
-
label?: unknown;
|
|
32
|
-
values?: unknown;
|
|
33
|
-
}>;
|
|
34
|
-
key_differences?: unknown;
|
|
35
|
-
special_considerations?: unknown;
|
|
36
|
-
}
|
|
37
|
-
export declare function productsUiSpec(products?: unknown[], options?: ProductNormalizeOptions): UiSpecEnvelope;
|
|
38
|
-
export declare function productDetailsUiSpec(product: unknown, options?: ProductNormalizeOptions): UiSpecEnvelope;
|
|
39
|
-
export declare function comparisonUiSpec(comparison?: ComparisonInput, options?: ProductNormalizeOptions): UiSpecEnvelope;
|
|
40
|
-
export declare function actionButtonsUiSpec(actions?: ActionEntry[]): UiSpecEnvelope;
|
|
41
|
-
export { firstString, numberValue, stringList };
|
package/dist/agentic/index.d.ts
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
export { createInjectorAdapter, createMainThreadInjectorAdapter } from './adaptor/create-adaptor.js';
|
|
2
|
-
export { installFetchTransportBridge } from './adaptor/fetch-bridge.js';
|
|
3
|
-
export { canUseModuleWorker, createModuleWorker, mountAccount } from './adaptor/mount.js';
|
|
4
|
-
export { ContextStore } from './context/context-store.js';
|
|
5
|
-
export { stickyContextKey } from './context/persistence.js';
|
|
6
|
-
export { action, done, error, metadata, textChunk, uiSpec } from './events/builders.js';
|
|
7
|
-
export { AgentError, beErrorToAgentError, caughtToStreamError, httpErrorToAgentError, } from './events/error-taxonomy.js';
|
|
8
|
-
export { normalizeProduct, trimProductFactsCore, trimProductFactsListCore } from './events/product-normalize.js';
|
|
9
|
-
export { compactContextProducts } from './events/context-products.js';
|
|
10
|
-
export { alignProductsToTable, comparisonResultForUi, normalizeComparisonTable } from './events/comparison.js';
|
|
11
|
-
export { actionButtonsUiSpec, comparisonUiSpec, productDetailsUiSpec, productsUiSpec } from './events/ui-specs.js';
|
|
12
|
-
export { createFlow } from './flow/create-flow.js';
|
|
13
|
-
export { resolveFlow } from './flow/dispatch.js';
|
|
14
|
-
export { createEndpointCachePolicies, createEndpointHandlers, endpointStableKey, jsonResponse, ndjsonResponse, } from './widgets/endpoints.js';
|
|
15
|
-
export { buildPhotoSimilarityProfile, buildProductSimilarityProfile, buildSimilarityQueries, normalizeSimilarityText, rankSimilarProducts, rankSimilarProductsAsync, scoreSimilarityCandidate, tokenizeSimilarityText, type PhotoSimilaritySignals, type ProductSimilarityProfile, type SimilarityProductLike, type SimilarityAsyncRankingOptions, type SimilarityRankedProduct, type SimilarityRankingOptions, type SimilarityScore, type SimilarityWeights, } from './algos/similarity.js';
|
|
16
|
-
export { setAssistantHostVisible } from './util/assistant-host.js';
|
|
17
|
-
export { resolveBeUrl } from './util/be-url.js';
|
|
18
|
-
export { createBrowserMemory, stableKey } from './util/browser-memory.js';
|
|
19
|
-
export { llmCacheKey, productFactsKey, productSkuKey, textKey } from './util/cache-key.js';
|
|
20
|
-
export type { LlmCacheKeyOptions, ProductFactsKeyOptions, ProductKeyOptions } from './util/cache-key.js';
|
|
21
|
-
export { anonymousRequestText, defaultPiiPatternPack, defaultPiiPatterns, redactPii } from './util/privacy.js';
|
|
22
|
-
export { compactAccountConfig, withAccountConfig } from './util/account-config.js';
|
|
23
|
-
export type { RedactionPattern, RedactionPatternPack } from './util/privacy.js';
|
|
24
|
-
export type { AccountConfigPayloadOptions } from './util/account-config.js';
|
|
25
|
-
export { createDiagnosticsTool, createReadPageTool, installBrowserTools } from './util/browser-tools.js';
|
|
26
|
-
export { startLazyRuntimeLoader } from './util/lazy-runtime-loader.js';
|
|
27
|
-
export { requestText } from './util/request-text.js';
|
|
28
|
-
export { elapsedMs, nowIso } from './util/time.js';
|
|
29
|
-
export { createActivityCollector, getOrCreateActivityCollector, groupForEntry, normalizeEntry, sectionForKind, severityForEntry, } from './debug/activity-collector.js';
|
|
30
|
-
export { installActivityFetchPatch, recordBeDebugPayload, wrapActivityBeacon, wrapActivityTools, wrapActivityTransport, } from './debug/activity-instrumentation.js';
|
|
31
|
-
export { filterActivityEntries, formatJsonHtml, mountActivityOverlay } from './debug/activity-overlay.js';
|
|
32
|
-
export { buildActivityVisualization, summarizeDebugState, summarizePanelState, summarizeUiSpec, } from './debug/activity-state.js';
|
|
33
|
-
export { installLocalAgenticActivityDebug, shouldInstallActivityDebug } from './debug/local-dev.js';
|
|
34
|
-
export { declarativeBeOpCache, inputHashCachePolicy, withDeclarativeBeOpCache, } from './util/common/declarative-cache.js';
|
|
35
|
-
export { FALLBACK_STATUS, fallbackStatus, isFallbackStatus } from './util/common/fallback-status.js';
|
|
36
|
-
export { createReadPageStep } from './util/common/flow-steps.js';
|
|
37
|
-
export { createGssToolAliases, gssSearchCapabilities } from './util/common/gss-tool-aliases.js';
|
|
38
|
-
export { createIframeScraper, installIframeScraperBypass } from './util/common/iframe-scraper.js';
|
|
39
|
-
export { compactObject } from './util/common/object.js';
|
|
40
|
-
export { createOpenProductPageTool, navigateSameTab, normalizeSameOriginUrl } from './util/common/open-product-page.js';
|
|
41
|
-
export { homePanelReset } from './util/common/panel-context.js';
|
|
42
|
-
export { createPrivacyHelpers, plainMessageContent } from './util/common/privacy.js';
|
|
43
|
-
export { createResolveProductsTool, resolveProductCandidates, uniqueProductsBySku, } from './util/common/product-resolver.js';
|
|
44
|
-
export { compactProductSurfaceForLlm, createProductSurfaceInspector, inspectProductSurface, mergeProductSurfaceEvidence, productSurfaceReviewText, } from './util/common/product-surface.js';
|
|
45
|
-
export { createLocalRefStore, isRef } from './util/common/ref-store.js';
|
|
46
|
-
export { anonymousRequestText as retailAnonymousRequestText, anonymizeMessages as retailAnonymizeMessages, redactPii as retailRedactPii, } from './util/common/retail-privacy.js';
|
|
47
|
-
export { firstArrayValue, routeFlowParams, routeSkuList } from './util/common/route-params.js';
|
|
48
|
-
export { createSiteAwarenessTools } from './util/common/site-awareness.js';
|
|
49
|
-
export { validateToolArgs } from './worker/tool-schema.js';
|
|
50
|
-
export type { ToolArgSchema, ToolArgValidationResult } from './worker/tool-schema.js';
|
|
51
|
-
export { __resetAllCartCoalescersForTesting, coalesceAddToCart, singleFlight } from './worker/coalesce.js';
|
|
52
|
-
export type { SingleFlightExecutor, SingleFlightKeyFn, SingleFlightOptions } from './worker/coalesce.js';
|
|
53
|
-
export { __resetAllPdpHydratorsForTesting, wrapResolveProductsWithPdpHydration } from './worker/pdp-hydrate.js';
|
|
54
|
-
export type { PdpHydrationOptions, WrappedResolveProducts } from './worker/pdp-hydrate.js';
|
|
55
|
-
export type { BeClientInterceptors, InvokeBeOpArgs } from './worker/be-client.js';
|
|
56
|
-
export type { PendingMessage, PendingMessageKind, QueueMode, SavePointEntry } from './context/context-store.js';
|
|
57
|
-
export { mergeRoundProducts, searchFollowUpPills, withSimilarsAppend } from './worker/agent-ui.js';
|
|
58
|
-
export type { RoundObservation, SearchFollowUpAccountConfig, SearchFollowUpContext, SearchFollowUpPill, SearchFollowUpProduct, } from './worker/agent-ui.js';
|
|
59
|
-
export { applyCompactionResult, buildCompactionRequest, shouldCompact } from './worker/compaction.js';
|
|
60
|
-
export type { CompactionOptions, CompactionRequest } from './worker/compaction.js';
|
|
61
|
-
export { buildPdpFollowupSteps, buildToolUiSteps } from './worker/agent-ui-steps.js';
|
|
62
|
-
export type { ToolObservationEnvelope, ToolUiStepsDeps } from './worker/agent-ui-steps.js';
|
|
63
|
-
export type { MainRpcMemory } from './worker/rpc.js';
|
|
64
|
-
export type { BeOpInputBase, CompareInput, CompareOutput, GssInstallmentOption, GssProductDetails, GssProductFeature, GssProductQuestionAnswer, GssProductReview, GssProductSeller, GssShippingOption, IntentOpInput, IntentOpOutput, LocaleCode, MoneyValue, ProductAnswerInput, ProductAnswerOutput, RefPayload, UiSpec, UiSpecElement, UiSpecElementType, UiSpecEvent, } from './contracts/agentic-contracts.js';
|
|
65
|
-
export type { AccountModule, AfterBeOpResult, AfterToolCallResult, AgentHooks, AgentLoopPatch, AgentLoopPredicate, AgentLoopStep, AgentConfirmationRequest, AgentConfirmationResult, AgentMemoryProvider, AgentTraceCallback, AgentTraceEvent, AdapterStep, AgentBeaconPayload, BeforeBeOpResult, BeforeToolCallResult, Awaitable, BeaconCallback, BeClient, BeOpStep, BranchStep, BrowserCachePolicy, ChatContext, ChatMessage, ChatMeta, ChatPanel, ChatThread, CommitStep, EmitStep, Flow, FlowAdapterFn, FlowAdapterMap, FlowConfirmationGate, FlowConfirmationRequest, FlowConfirmationValue, FlowPatch, FlowStep, FlowStepCtx, FlowValue, MemoryTier, ParallelStep, RefusalStep, ToolFn, ToolMap, ToolStep, UiSpecEnvelope, } from './types.js';
|