@arnilo/prism-provider-kimi 0.2.0 → 0.2.2

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/CHANGELOG.md CHANGED
@@ -1,4 +1,10 @@
1
1
  # Changelog
2
+ ## [0.2.1] - 2026-08-13
3
+
4
+ ### Changed
5
+ - 0.2.1 (plan 021): model-discovery success read migrated to the bounded readBoundedResponseJson reader; strict completion opt-in retained.
6
+
7
+
2
8
 
3
9
  ## [0.1.0] - 2026-08-09
4
10
 
package/dist/models.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { redactSecrets, resolveCredentialValue } from "@arnilo/prism";
2
- import { readBoundedResponseText } from "@arnilo/prism/providers/transport";
2
+ import { readBoundedResponseJson, readBoundedResponseText } from "@arnilo/prism/providers/transport";
3
3
  export function defineKimiModel(config) {
4
4
  return {
5
5
  ...config,
@@ -35,7 +35,7 @@ export async function listKimiModels(options = {}) {
35
35
  const body = await readBoundedResponseText(response, { secrets: [token] });
36
36
  throw new Error(`Kimi model discovery failed: ${response.status} ${redactSecrets(body, [token])}`);
37
37
  }
38
- const payload = (await response.json());
38
+ const payload = await readBoundedResponseJson(response);
39
39
  if (!Array.isArray(payload.data))
40
40
  throw new Error("Kimi model discovery response missing data array");
41
41
  return payload.data.map((entry) => mapKimiModel(entry, { provider }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arnilo/prism-provider-kimi",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Kimi provider package for Prism.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -25,7 +25,7 @@
25
25
  "pack:dry-run": "npm pack --dry-run"
26
26
  },
27
27
  "peerDependencies": {
28
- "@arnilo/prism": "0.2.0"
28
+ "@arnilo/prism": "0.2.2"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@arnilo/prism": "file:../.."