fix: restore build after deps update
This commit is contained in:
parent
54de5ad3fa
commit
557f8e5a04
3 changed files with 676 additions and 656 deletions
|
|
@ -9,6 +9,13 @@ export type ModelCatalogEntry = {
|
||||||
contextWindow?: number;
|
contextWindow?: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
type DiscoveredModel = {
|
||||||
|
id: string;
|
||||||
|
name?: string;
|
||||||
|
provider: string;
|
||||||
|
contextWindow?: number;
|
||||||
|
};
|
||||||
|
|
||||||
let modelCatalogPromise: Promise<ModelCatalogEntry[]> | null = null;
|
let modelCatalogPromise: Promise<ModelCatalogEntry[]> | null = null;
|
||||||
|
|
||||||
export function resetModelCatalogCacheForTest() {
|
export function resetModelCatalogCacheForTest() {
|
||||||
|
|
@ -35,13 +42,9 @@ export async function loadModelCatalog(params?: {
|
||||||
const authStorage = piSdk.discoverAuthStorage(agentDir);
|
const authStorage = piSdk.discoverAuthStorage(agentDir);
|
||||||
const registry = piSdk.discoverModels(authStorage, agentDir) as
|
const registry = piSdk.discoverModels(authStorage, agentDir) as
|
||||||
| {
|
| {
|
||||||
getAll: () => Array<{
|
getAll: () => Array<DiscoveredModel>;
|
||||||
id: string;
|
|
||||||
name?: string;
|
|
||||||
provider: string;
|
|
||||||
}>;
|
|
||||||
}
|
}
|
||||||
| Array<{ id: string; name?: string; provider: string }>;
|
| Array<DiscoveredModel>;
|
||||||
const entries = Array.isArray(registry) ? registry : registry.getAll();
|
const entries = Array.isArray(registry) ? registry : registry.getAll();
|
||||||
for (const entry of entries) {
|
for (const entry of entries) {
|
||||||
const id = String(entry?.id ?? "").trim();
|
const id = String(entry?.id ?? "").trim();
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
2
vendor/a2ui/renderers/lit/src/0.8/ui/root.ts
vendored
2
vendor/a2ui/renderers/lit/src/0.8/ui/root.ts
vendored
|
|
@ -42,7 +42,7 @@ type NodeOfType<T extends AnyComponentNode["type"]> = Extract<
|
||||||
|
|
||||||
// This is the base class all the components will inherit
|
// This is the base class all the components will inherit
|
||||||
@customElement("a2ui-root")
|
@customElement("a2ui-root")
|
||||||
export class Root extends SignalWatcher(LitElement) {
|
export class Root extends (SignalWatcher(LitElement) as typeof LitElement) {
|
||||||
@property()
|
@property()
|
||||||
accessor surfaceId: SurfaceID | null = null;
|
accessor surfaceId: SurfaceID | null = null;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue