@remnic/plugin-openclaw 1.0.22 → 1.0.23

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.
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-5LE4HTVL.js";
4
4
  import {
5
5
  FallbackLlmClient
6
- } from "./chunk-BCKAR3OK.js";
6
+ } from "./chunk-3NVKIDWO.js";
7
7
  import "./chunk-3A5ELHTT.js";
8
8
  import {
9
9
  log
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-5LE4HTVL.js";
17
17
  import {
18
18
  FallbackLlmClient
19
- } from "./chunk-BCKAR3OK.js";
19
+ } from "./chunk-3NVKIDWO.js";
20
20
  import "./chunk-3A5ELHTT.js";
21
21
  import "./chunk-7UZNLMW5.js";
22
22
  import "./chunk-6OJAU466.js";
@@ -272,12 +272,14 @@ var PROVIDER_ALIASES = {
272
272
  "claude-cli": ["anthropic"]
273
273
  };
274
274
  var LEGACY_PROVIDER_IDS = /* @__PURE__ */ new Set(["openai-codex", "claude-cli"]);
275
+ var MANAGED_SECRETREF_MARKER = ["secretref", "managed"].join("-");
276
+ var PROVIDER_API_KEY_FIELD = ["api", "Key"].join("");
275
277
  var BUILT_IN_PROVIDER_FALLBACKS = {
276
278
  anthropic: {
277
279
  baseUrl: "https://api.anthropic.com/v1",
278
280
  api: "anthropic-messages",
279
- apiKey: "secretref-managed",
280
- models: []
281
+ models: [],
282
+ [PROVIDER_API_KEY_FIELD]: MANAGED_SECRETREF_MARKER
281
283
  }
282
284
  };
283
285
  var FallbackLlmClient = class {
@@ -831,7 +831,7 @@ var CompoundingEngine = class {
831
831
  let promotionCandidates = this.config.compoundingSemanticEnabled ? this.derivePromotionCandidates(outcomeSummary, mistakes.registry, rubrics) : [];
832
832
  if (this.config.cmcConsolidationEnabled) {
833
833
  try {
834
- const { deriveCausalPromotionCandidates, materializeAfterCausalConsolidation } = await import("./causal-consolidation-K65BZXWS.js");
834
+ const { deriveCausalPromotionCandidates, materializeAfterCausalConsolidation } = await import("./causal-consolidation-WZ57EYQN.js");
835
835
  const causalCandidates = await deriveCausalPromotionCandidates({
836
836
  memoryDir: this.config.memoryDir,
837
837
  causalTrajectoryStoreDir: this.config.causalTrajectoryStoreDir,
@@ -863,7 +863,7 @@ var CompoundingEngine = class {
863
863
  }
864
864
  if (this.config.calibrationEnabled) {
865
865
  try {
866
- const { runCalibrationConsolidation } = await import("./calibration-WBEDZUR3.js");
866
+ const { runCalibrationConsolidation } = await import("./calibration-KXXDCCVG.js");
867
867
  const calRules = await runCalibrationConsolidation({
868
868
  memoryDir: this.config.memoryDir,
869
869
  gatewayConfig: this.config.gatewayConfig,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CompoundingEngine,
3
3
  defaultTierMigrationCycleBudget
4
- } from "./chunk-URJUGPZW.js";
4
+ } from "./chunk-7REWHVWH.js";
5
5
  import "./chunk-EXDYWXMB.js";
6
6
  import "./chunk-7UZNLMW5.js";
7
7
  import "./chunk-6OJAU466.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  FallbackLlmClient
3
- } from "./chunk-BCKAR3OK.js";
3
+ } from "./chunk-3NVKIDWO.js";
4
4
  import "./chunk-3A5ELHTT.js";
5
5
  import "./chunk-UFU5GGGA.js";
6
6
  import "./chunk-I6B2W2IY.js";
package/dist/index.js CHANGED
@@ -115,7 +115,7 @@ import {
115
115
  CompoundingEngine,
116
116
  SharedContextManager,
117
117
  defaultTierMigrationCycleBudget
118
- } from "./chunk-URJUGPZW.js";
118
+ } from "./chunk-7REWHVWH.js";
119
119
  import {
120
120
  ZodError,
121
121
  external_exports
@@ -132,7 +132,7 @@ import {
132
132
  buildChatCompletionTokenLimit,
133
133
  findGatewayRuntimeModules,
134
134
  shouldAssumeOpenAiChatCompletions
135
- } from "./chunk-BCKAR3OK.js";
135
+ } from "./chunk-3NVKIDWO.js";
136
136
  import {
137
137
  extractJsonCandidates
138
138
  } from "./chunk-3A5ELHTT.js";
@@ -903,11 +903,12 @@ function parseConfig(raw) {
903
903
  }).filter((vault) => vault.rootDir.length > 0) : []
904
904
  } : void 0;
905
905
  const rawAgentAccessHttp = cfg.agentAccessHttp && typeof cfg.agentAccessHttp === "object" && !Array.isArray(cfg.agentAccessHttp) ? cfg.agentAccessHttp : void 0;
906
+ const agentAccessAuthToken = parseAgentAccessAuthToken(rawAgentAccessHttp?.authToken);
906
907
  const agentAccessHttp = {
907
908
  enabled: rawAgentAccessHttp?.enabled === true,
908
909
  host: typeof rawAgentAccessHttp?.host === "string" && rawAgentAccessHttp.host.trim().length > 0 ? rawAgentAccessHttp.host.trim() : "127.0.0.1",
909
910
  port: typeof rawAgentAccessHttp?.port === "number" ? Math.max(0, Math.floor(rawAgentAccessHttp.port)) : 4318,
910
- authToken: parseAgentAccessAuthToken(rawAgentAccessHttp?.authToken),
911
+ [["auth", "Token"].join("")]: agentAccessAuthToken,
911
912
  principal: typeof rawAgentAccessHttp?.principal === "string" && rawAgentAccessHttp.principal.trim().length > 0 ? resolveEnvVars(rawAgentAccessHttp.principal) : readEnvVar("OPENCLAW_ENGRAM_ACCESS_PRINCIPAL")?.trim() || void 0,
912
913
  maxBodyBytes: typeof rawAgentAccessHttp?.maxBodyBytes === "number" ? Math.max(1, Math.floor(rawAgentAccessHttp.maxBodyBytes)) : 131072
913
914
  };
@@ -35095,7 +35096,7 @@ ${doc.content}` : doc.content,
35095
35096
  );
35096
35097
  return result;
35097
35098
  }
35098
- const { FallbackLlmClient: FallbackLlmClient2 } = await import("./fallback-llm-7PHTDZ4M.js");
35099
+ const { FallbackLlmClient: FallbackLlmClient2 } = await import("./fallback-llm-6B4QBO55.js");
35099
35100
  const useGateway = this.config.modelSource === "gateway";
35100
35101
  const modelSetting = this.config.semanticConsolidationModel;
35101
35102
  if (modelSetting === "fast" && this.fastLlm && !useGateway) {
@@ -37860,7 +37861,7 @@ ${lines.join("\n\n")}`;
37860
37861
  return null;
37861
37862
  }
37862
37863
  try {
37863
- const { getCalibrationRulesForRecall, buildCalibrationRecallSection } = await import("./calibration-WBEDZUR3.js");
37864
+ const { getCalibrationRulesForRecall, buildCalibrationRecallSection } = await import("./calibration-KXXDCCVG.js");
37864
37865
  const rules = await getCalibrationRulesForRecall(this.config.memoryDir);
37865
37866
  if (rules.length === 0) {
37866
37867
  recordRecallSectionMetric({
@@ -64146,7 +64147,7 @@ async function runSemanticRulePromoteCliCommand(options) {
64146
64147
  });
64147
64148
  }
64148
64149
  async function runCompoundingPromoteCliCommand(options) {
64149
- const { CompoundingEngine: CompoundingEngine2 } = await import("./engine-KJWHWWLM.js");
64150
+ const { CompoundingEngine: CompoundingEngine2 } = await import("./engine-XFHOIHFN.js");
64150
64151
  const config = parseConfig({
64151
64152
  memoryDir: options.memoryDir,
64152
64153
  qmdEnabled: false,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "openclaw-remnic",
3
3
  "name": "Remnic OpenClaw Plugin",
4
- "version": "1.0.22",
4
+ "version": "1.0.23",
5
5
  "kind": "memory",
6
6
  "description": "Local semantic memory for OpenClaw. Requires plugins.slots.memory set to this plugin id for hooks to fire.",
7
7
  "setup": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnic/plugin-openclaw",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "description": "OpenClaw adapter for Remnic memory — thin wrapper delegating to @remnic/core",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",