@securecoms/agent-bridge 0.19.0 → 0.20.0

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/bin.js CHANGED
@@ -7562,11 +7562,12 @@ function readLocalReport(home, identityId) {
7562
7562
  }
7563
7563
  if (!doc || typeof doc !== "object" || Array.isArray(doc)) return null;
7564
7564
  const hasSearchKey = doc.has_search_key === true;
7565
+ const hasLlmKey = doc.has_llm_key === true;
7565
7566
  const raw = doc.persona;
7566
7567
  const persona = raw && typeof raw === "object" && !Array.isArray(raw) ? Object.fromEntries(
7567
7568
  Object.entries(raw).filter(([, v]) => typeof v === "string")
7568
7569
  ) : {};
7569
- return { persona, has_search_key: hasSearchKey };
7570
+ return { persona, has_search_key: hasSearchKey, has_llm_key: hasLlmKey };
7570
7571
  }
7571
7572
  function readManagedMemory(home, identityId) {
7572
7573
  const p = join8(runtimeConfigDir(home, identityId), MEMORY_FILE);
@@ -8228,7 +8229,10 @@ var BridgeAgent = class _BridgeAgent {
8228
8229
  // is an environment value on that process, invisible to the daemon and
8229
8230
  // to the backend. The backend needs it to generate a truthful tool
8230
8231
  // paragraph, so it rides along here.
8231
- has_search_key: local?.has_search_key ?? false
8232
+ has_search_key: local?.has_search_key ?? false,
8233
+ // Same idea, for the BYOK LLM key file: only the runtime can see
8234
+ // whether one is configured in its own environment.
8235
+ has_llm_key: local?.has_llm_key ?? false
8232
8236
  };
8233
8237
  const posted = await this.fetchImpl(`${base}/report`, {
8234
8238
  method: "POST",
package/dist/index.js CHANGED
@@ -7409,11 +7409,12 @@ function readLocalReport(home, identityId) {
7409
7409
  }
7410
7410
  if (!doc || typeof doc !== "object" || Array.isArray(doc)) return null;
7411
7411
  const hasSearchKey = doc.has_search_key === true;
7412
+ const hasLlmKey = doc.has_llm_key === true;
7412
7413
  const raw = doc.persona;
7413
7414
  const persona = raw && typeof raw === "object" && !Array.isArray(raw) ? Object.fromEntries(
7414
7415
  Object.entries(raw).filter(([, v]) => typeof v === "string")
7415
7416
  ) : {};
7416
- return { persona, has_search_key: hasSearchKey };
7417
+ return { persona, has_search_key: hasSearchKey, has_llm_key: hasLlmKey };
7417
7418
  }
7418
7419
  function readManagedMemory(home, identityId) {
7419
7420
  const p = join6(runtimeConfigDir(home, identityId), MEMORY_FILE);
@@ -8075,7 +8076,10 @@ var BridgeAgent = class _BridgeAgent {
8075
8076
  // is an environment value on that process, invisible to the daemon and
8076
8077
  // to the backend. The backend needs it to generate a truthful tool
8077
8078
  // paragraph, so it rides along here.
8078
- has_search_key: local?.has_search_key ?? false
8079
+ has_search_key: local?.has_search_key ?? false,
8080
+ // Same idea, for the BYOK LLM key file: only the runtime can see
8081
+ // whether one is configured in its own environment.
8082
+ has_llm_key: local?.has_llm_key ?? false
8079
8083
  };
8080
8084
  const posted = await this.fetchImpl(`${base}/report`, {
8081
8085
  method: "POST",
@@ -33,6 +33,7 @@ export declare const LOCAL_REPORT_FILE = "local-config.json";
33
33
  export interface LocalReport {
34
34
  persona: Record<string, string>;
35
35
  has_search_key: boolean;
36
+ has_llm_key: boolean;
36
37
  }
37
38
  export declare function readLocalReport(home: string, identityId: string): LocalReport | null;
38
39
  export declare function readManagedMemory(home: string, identityId: string): string | null;
@@ -0,0 +1 @@
1
+ export declare const BRIDGE_VERSION = "0.20.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@securecoms/agent-bridge",
3
- "version": "0.19.0",
3
+ "version": "0.20.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",