@teith/openclaw-runware-provider 0.2.9 → 0.2.10

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAkB,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAKrE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,QAAA,MAAM,KAAK,EAAE,WAyCZ,CAAC;AAEF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAkB,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAQrE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,QAAA,MAAM,KAAK,EAAE,WA+CZ,CAAC;AAEF,eAAe,KAAK,CAAC"}
package/dist/index.js CHANGED
@@ -1,6 +1,9 @@
1
1
  import { setHostLogger } from "./logger.js";
2
2
  import { API_KEY_ENV_VAR, BASE_URL_ENV_VAR, PROVIDER_ID, PROVIDER_LABEL, buildCatalogRows, buildProvider, resolveApiKey, resolveBaseUrl, } from "./models.js";
3
- import { buildRunwareStreamWrapper } from "./stream-wrap.js";
3
+ // Imported but intentionally not passed to registerProvider in 0.2.10 —
4
+ // see note inside register() below.
5
+ import { buildRunwareStreamWrapper as _buildRunwareStreamWrapper } from "./stream-wrap.js";
6
+ void _buildRunwareStreamWrapper;
4
7
  const PLUGIN_ID = "runware-openclaw-provider";
5
8
  /**
6
9
  * Plugin entry that openclaw's plugin loader invokes after `npm install`-ing
@@ -46,12 +49,18 @@ const entry = {
46
49
  return { provider };
47
50
  },
48
51
  },
49
- // Strip `temperature` from outbound Runware requests (their text
50
- // inference endpoint rejects it with HTTP 400) and prefix raw
51
- // upstream errors with "Runware:" so end users see the actual cause
52
- // in webchat instead of openclaw's generic "provider rejected the
53
- // request schema or tool payload" classifier text.
54
- wrapStreamFn: buildRunwareStreamWrapper,
52
+ // NOTE: `wrapStreamFn: buildRunwareStreamWrapper` was removed in
53
+ // 0.2.10 its presence on a catalog-style registerProvider call
54
+ // triggers a TypeError in openclaw 2026.5.18's prompt-assembly
55
+ // path ("Cannot read properties of undefined (reading
56
+ // 'systemPrompt')") before any HTTP request is made. The hook is
57
+ // documented in the provider SDK but is apparently not wired up for
58
+ // providers that expose models via `catalog.run` returning a custom
59
+ // openai-completions provider config. Until we find the correct
60
+ // surface (likely `prepareExtraParams`) or openclaw fixes the
61
+ // lookup, the temperature-strip workaround is parked. Imports of
62
+ // buildRunwareStreamWrapper remain in the build so the helper ships
63
+ // unchanged; just not registered with the host.
55
64
  });
56
65
  api.registerModelCatalogProvider({
57
66
  provider: PROVIDER_ID,
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,cAAc,GACf,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAE7D,MAAM,SAAS,GAAG,2BAA2B,CAAC;AAE9C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,KAAK,GAAgB;IACzB,EAAE,EAAE,SAAS;IACb,IAAI,EAAE,cAAc;IACpB,WAAW,EACT,yGAAyG;IAE3G,QAAQ,CAAC,GAAG;QACV,IAAI,GAAG,CAAC,MAAM;YAAE,aAAa,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAC1C,GAAG,CAAC,gBAAgB,CAAC;YACnB,EAAE,EAAE,WAAW;YACf,KAAK,EAAE,cAAc;YACrB,QAAQ,EAAE,yBAAyB;YACnC,OAAO,EAAE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AE;gBACzC,MAAM,MAAM,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC;gBAClC,IAAI,CAAC,MAAM;oBAAE,OAAO,IAAI,CAAC;gBACzB,OAAO,gBAAgB,CAAC,MAAM,EAAE,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;YAC3D,CAAC;SACF,CAAC,CAAC;IACL,CAAC;CACF,CAAC;AAEF,eAAe,KAAK,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teith/openclaw-runware-provider",
3
- "version": "0.2.9",
3
+ "version": "0.2.10",
4
4
  "description": "OpenClaw provider plugin for Runware — unified OpenAI-compatible access to Claude, GPT, Gemini, Qwen, GLM, MiniMax, Kimi, and Gemma.",
5
5
  "license": "MIT",
6
6
  "type": "module",