openclaw-openviking-setup-helper 0.2.16-dev.1 → 0.2.16-dev.3

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.
Files changed (2) hide show
  1. package/install.js +9 -10
  2. package/package.json +1 -1
package/install.js CHANGED
@@ -57,7 +57,7 @@ const FALLBACK_CURRENT = {
57
57
  id: "openviking",
58
58
  kind: "context-engine",
59
59
  slot: "contextEngine",
60
- required: ["index.ts", "config.ts", "package.json"],
60
+ required: ["index.ts", "config.ts", "package.json", "openclaw.plugin.json"],
61
61
  optional: [
62
62
  "context-engine.ts",
63
63
  "client.ts",
@@ -66,7 +66,6 @@ const FALLBACK_CURRENT = {
66
66
  "text-utils.ts",
67
67
  "tool-call-id.ts",
68
68
  "session-transcript-repair.ts",
69
- "openclaw.plugin.json",
70
69
  "tsconfig.json",
71
70
  "package-lock.json",
72
71
  ".gitignore",
@@ -100,7 +99,7 @@ let showCurrentVersion = false;
100
99
  const selectedMode = "remote";
101
100
  let remoteBaseUrl = "http://127.0.0.1:1933";
102
101
  let remoteApiKey = "";
103
- let remoteAgentId = "";
102
+ let remoteAgentPrefix = "";
104
103
  let upgradeRuntimeConfig = null;
105
104
  let installedUpgradeState = null;
106
105
  let upgradeAudit = null;
@@ -373,7 +372,7 @@ async function collectRemoteConfig() {
373
372
  if (installYes) return;
374
373
  remoteBaseUrl = await question(tr("OpenViking server URL", "OpenViking 服务器地址"), remoteBaseUrl);
375
374
  remoteApiKey = await question(tr("API Key (optional)", "API Key(可选)"), remoteApiKey);
376
- remoteAgentId = await question(tr("Agent ID (optional)", "Agent ID(可选)"), remoteAgentId);
375
+ remoteAgentPrefix = await question(tr("Agent Prefix (optional)", "Agent Prefix(可选)"), remoteAgentPrefix);
377
376
  }
378
377
 
379
378
  async function checkOpenClaw() {
@@ -875,8 +874,8 @@ function extractRuntimeConfigFromPluginEntry(entryConfig) {
875
874
  if (typeof entryConfig.apiKey === "string" && entryConfig.apiKey.trim()) {
876
875
  runtime.apiKey = entryConfig.apiKey;
877
876
  }
878
- if (typeof entryConfig.agentId === "string" && entryConfig.agentId.trim()) {
879
- runtime.agentId = entryConfig.agentId.trim();
877
+ if (typeof entryConfig.agent_prefix === "string" && entryConfig.agent_prefix.trim()) {
878
+ runtime.agent_prefix = entryConfig.agent_prefix.trim();
880
879
  }
881
880
  return runtime;
882
881
  }
@@ -1171,7 +1170,7 @@ async function prepareStrongPluginUpgrade() {
1171
1170
  );
1172
1171
  remoteBaseUrl = upgradeRuntimeConfig.baseUrl || remoteBaseUrl;
1173
1172
  remoteApiKey = upgradeRuntimeConfig.apiKey || "";
1174
- remoteAgentId = upgradeRuntimeConfig.agentId || "";
1173
+ remoteAgentPrefix = upgradeRuntimeConfig.agent_prefix || "";
1175
1174
  info(tr(`Upgrade runtime mode: ${selectedMode} (remote OpenViking server)`, `升级运行模式: ${selectedMode}(远程 OpenViking 服务)`));
1176
1175
 
1177
1176
  info(tr(`Upgrade path: ${fromVersion} -> ${toVersion}`, `升级路径: ${fromVersion} -> ${toVersion}`));
@@ -1450,15 +1449,15 @@ async function configureOpenClawPlugin({
1450
1449
  const effectiveRuntimeConfig = runtimeConfig || {
1451
1450
  baseUrl: remoteBaseUrl,
1452
1451
  apiKey: remoteApiKey,
1453
- agentId: remoteAgentId,
1452
+ agent_prefix: remoteAgentPrefix,
1454
1453
  };
1455
1454
 
1456
1455
  await oc(["config", "set", `plugins.entries.${pluginId}.config.baseUrl`, effectiveRuntimeConfig.baseUrl || remoteBaseUrl]);
1457
1456
  if (effectiveRuntimeConfig.apiKey) {
1458
1457
  await oc(["config", "set", `plugins.entries.${pluginId}.config.apiKey`, effectiveRuntimeConfig.apiKey]);
1459
1458
  }
1460
- if (effectiveRuntimeConfig.agentId) {
1461
- await oc(["config", "set", `plugins.entries.${pluginId}.config.agentId`, effectiveRuntimeConfig.agentId]);
1459
+ if (effectiveRuntimeConfig.agent_prefix) {
1460
+ await oc(["config", "set", `plugins.entries.${pluginId}.config.agent_prefix`, effectiveRuntimeConfig.agent_prefix]);
1462
1461
  }
1463
1462
 
1464
1463
  // Legacy (memory) plugins need explicit targetUri/autoRecall/autoCapture (new version has defaults in config.ts)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openclaw-openviking-setup-helper",
3
- "version": "0.2.16-dev.1",
3
+ "version": "0.2.16-dev.3",
4
4
  "description": "Setup helper for installing OpenViking memory plugin into OpenClaw",
5
5
  "type": "module",
6
6
  "bin": {