@pluno/product-agent-web 0.1.210 → 0.1.211
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 +1 -0
- package/dist/product-agent-sdk.js +1253 -1049
- package/dist/product-agent-widget.js +1897 -1693
- package/dist/runtime/composition.d.ts +27 -0
- package/package.json +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { PAEngine } from "./engine";
|
|
2
|
+
export type PASliceOwner = "legacy" | "core";
|
|
3
|
+
export declare const PA_SLICE_OWNERSHIP: Readonly<{
|
|
4
|
+
readonly modelSelection: "legacy";
|
|
5
|
+
readonly directory: "legacy";
|
|
6
|
+
readonly conversation: "legacy";
|
|
7
|
+
readonly account: "legacy";
|
|
8
|
+
readonly interactions: "legacy";
|
|
9
|
+
readonly browserExecution: "legacy";
|
|
10
|
+
}>;
|
|
11
|
+
export type PAProductSlice = keyof typeof PA_SLICE_OWNERSHIP;
|
|
12
|
+
export type PAOwnerSources<T> = Readonly<{
|
|
13
|
+
legacy: () => T;
|
|
14
|
+
core?: () => T;
|
|
15
|
+
}>;
|
|
16
|
+
export declare function selectPAOwner<T>(slice: PAProductSlice, sources: PAOwnerSources<T>): T;
|
|
17
|
+
export declare class PAClientRuntime {
|
|
18
|
+
readonly engine: PAEngine<Readonly<{
|
|
19
|
+
revision: number;
|
|
20
|
+
slices: Readonly<object>;
|
|
21
|
+
}>, never, never, {}, object>;
|
|
22
|
+
private disposed;
|
|
23
|
+
get isDisposed(): boolean;
|
|
24
|
+
route<T>(slice: PAProductSlice, sources: PAOwnerSources<T>): T;
|
|
25
|
+
project<T>(slice: PAProductSlice, sources: PAOwnerSources<T>): T;
|
|
26
|
+
dispose(): void;
|
|
27
|
+
}
|
package/package.json
CHANGED