@wrongstack/runtime 0.316.2 → 0.317.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/dist/index.js CHANGED
@@ -880,7 +880,10 @@ async function probeLocalLlm(opts) {
880
880
  const { baseUrl, apiKey, noAuth, scrubber, fetchImpl, timeoutMs } = opts;
881
881
  const fetchFn = fetchImpl ?? fetch;
882
882
  const timeout = timeoutMs ?? PROBE_TIMEOUT_MS;
883
- const base = baseUrl.replace(/\/+$/, "");
883
+ if (typeof baseUrl !== "string" || baseUrl.trim().length === 0) {
884
+ return { ok: false, status: "no_base_url", detail: "baseUrl is empty" };
885
+ }
886
+ const base = baseUrl.trim().replace(/\/+$/, "");
884
887
  const url = /\/models$/.test(base) ? base : `${base}/models`;
885
888
  const headers = { accept: "application/json" };
886
889
  if (!noAuth && apiKey) {
package/dist/probe.js CHANGED
@@ -4,7 +4,10 @@ async function probeLocalLlm(opts) {
4
4
  const { baseUrl, apiKey, noAuth, scrubber, fetchImpl, timeoutMs } = opts;
5
5
  const fetchFn = fetchImpl ?? fetch;
6
6
  const timeout = timeoutMs ?? PROBE_TIMEOUT_MS;
7
- const base = baseUrl.replace(/\/+$/, "");
7
+ if (typeof baseUrl !== "string" || baseUrl.trim().length === 0) {
8
+ return { ok: false, status: "no_base_url", detail: "baseUrl is empty" };
9
+ }
10
+ const base = baseUrl.trim().replace(/\/+$/, "");
8
11
  const url = /\/models$/.test(base) ? base : `${base}/models`;
9
12
  const headers = { accept: "application/json" };
10
13
  if (!noAuth && apiKey) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrongstack/runtime",
3
- "version": "0.316.2",
3
+ "version": "0.317.2",
4
4
  "license": "MIT",
5
5
  "description": "WrongStack default runtime implementations and host-level composition helpers built on @wrongstack/core.",
6
6
  "repository": {
@@ -64,16 +64,16 @@
64
64
  "README.md"
65
65
  ],
66
66
  "dependencies": {
67
- "@wrongstack/core": "0.316.2",
68
- "@wrongstack/kanban": "0.316.2",
69
- "@wrongstack/governance": "0.316.2",
70
- "@wrongstack/sage": "0.316.2",
71
- "@wrongstack/tools": "0.316.2",
72
- "@wrongstack/vector-memory": "0.316.2"
67
+ "@wrongstack/core": "0.317.2",
68
+ "@wrongstack/kanban": "0.317.2",
69
+ "@wrongstack/governance": "0.317.2",
70
+ "@wrongstack/sage": "0.317.2",
71
+ "@wrongstack/tools": "0.317.2",
72
+ "@wrongstack/vector-memory": "0.317.2"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@types/node": "^26.2.0",
76
- "@wrongstack/wrongtrace": "0.316.2",
76
+ "@wrongstack/wrongtrace": "0.317.2",
77
77
  "typescript": "^7.0.2"
78
78
  },
79
79
  "publishConfig": {