@workglow/ai 0.0.124 → 0.0.126

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/README.md CHANGED
@@ -266,7 +266,9 @@ setGlobalModelRepository(modelRepo);
266
266
 
267
267
  ```typescript
268
268
  import { SqliteModelRepository, setGlobalModelRepository } from "@workglow/ai";
269
+ import { Sqlite } from "@workglow/storage/sqlite";
269
270
 
271
+ await Sqlite.init();
270
272
  const modelRepo = new SqliteModelRepository("./models.db");
271
273
  setGlobalModelRepository(modelRepo);
272
274
  ```
@@ -667,7 +669,9 @@ const modelRepo = new IndexedDbModelRepository();
667
669
 
668
670
  ```typescript
669
671
  import { SqliteModelRepository } from "@workglow/ai";
672
+ import { Sqlite } from "@workglow/storage/sqlite";
670
673
 
674
+ await Sqlite.init();
671
675
  // Use SQLite for server-side storage
672
676
  const modelRepo = new SqliteModelRepository("./models.db");
673
677
  ```
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ export * from "./common";
7
+ //# sourceMappingURL=browser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,UAAU,CAAC"}
package/dist/browser.js CHANGED
@@ -4495,10 +4495,10 @@ var ModelSearchInputSchema = {
4495
4495
  query: {
4496
4496
  type: "string",
4497
4497
  title: "Query",
4498
- description: "Search query string"
4498
+ description: "Optional search string. When omitted or empty, returns all models (provider-specific listing)."
4499
4499
  }
4500
4500
  },
4501
- required: ["provider", "query"],
4501
+ required: ["provider"],
4502
4502
  additionalProperties: false
4503
4503
  };
4504
4504
  function buildModelSearchInputSchemaDynamic() {
@@ -4536,7 +4536,7 @@ var ModelSearchOutputSchema = {
4536
4536
  id: { type: "string" },
4537
4537
  label: { type: "string" },
4538
4538
  description: { type: "string" },
4539
- record: { type: "object", additionalProperties: true },
4539
+ record: TypeModel("model"),
4540
4540
  raw: {}
4541
4541
  },
4542
4542
  required: ["id", "label", "description", "record"],
@@ -7245,4 +7245,4 @@ export {
7245
7245
  AgentInputSchema
7246
7246
  };
7247
7247
 
7248
- //# debugId=C79DE948BC5F0DEE64756E2164756E21
7248
+ //# debugId=0DC42B0B3857377764756E2164756E21