log-llm-config 1.3.35 → 1.3.37

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,11 +1,24 @@
1
- import { getEndpointSource as getSharedEndpointSource, loadEndpointBase, } from "optimus-tofu";
2
- /** Where endpoint came from (for logging). */
3
- function getEndpointSource() {
4
- const source = getSharedEndpointSource();
1
+ import { getEndpointSource as getSharedEndpointSource, loadEndpointBase as loadSharedEndpointBase, } from "optimus-tofu";
2
+ /**
3
+ * log-llm-config historically only honored OPTIMUS_ENDPOINT (plus file / default).
4
+ * OPTIMUS_API_URL is reserved for optimus-tool-call; omit it here for backward compatibility.
5
+ */
6
+ function envWithoutOptimusApiUrl(env) {
7
+ const copy = { ...env };
8
+ delete copy.OPTIMUS_API_URL;
9
+ return copy;
10
+ }
11
+ export function loadEndpointBase(options) {
12
+ const env = envWithoutOptimusApiUrl(options?.env ?? process.env);
13
+ return loadSharedEndpointBase({ cwd: options?.cwd, env });
14
+ }
15
+ /** Where endpoint came from (for logging). Matches legacy semantics (never driven by OPTIMUS_API_URL alone). */
16
+ export function getEndpointSource(options) {
17
+ const env = envWithoutOptimusApiUrl(options?.env ?? process.env);
18
+ const source = getSharedEndpointSource({ cwd: options?.cwd, env });
5
19
  if (source === "file")
6
20
  return "file";
7
21
  if (source === "default")
8
22
  return "default";
9
23
  return "env";
10
24
  }
11
- export { loadEndpointBase, getEndpointSource };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "log-llm-config",
3
- "version": "1.3.35",
3
+ "version": "1.3.37",
4
4
  "description": "CLI helpers for logging hardware UUIDs and posting startup payloads to Optimus Security.",
5
5
  "type": "module",
6
6
  "bin": {