ofiere-openclaw-plugin 3.5.1 → 3.5.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/tools.ts +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ofiere-openclaw-plugin",
3
- "version": "3.5.1",
3
+ "version": "3.5.2",
4
4
  "type": "module",
5
5
  "description": "OpenClaw plugin for Ofiere PM - 10 meta-tools covering tasks, agents, projects, scheduling, knowledge, workflows, notifications, memory, prompts, and constellation agent architecture",
6
6
  "keywords": ["openclaw", "ofiere", "project-management", "agents", "plugin"],
package/src/tools.ts CHANGED
@@ -1952,7 +1952,7 @@ function registerConstellationOps(
1952
1952
  function tryRegisterAgent(agentName: string): { success: boolean; message: string } {
1953
1953
  const wsPath = getWorkspacePath(agentName);
1954
1954
  try {
1955
- const cmd = `openclaw agents add "${agentName}" --workspace "${wsPath}" --non-interactive 2>&1`;
1955
+ const cmd = `openclaw agents add ${agentName} --workspace ${wsPath} --non-interactive 2>&1`;
1956
1956
  const output = execSync(cmd, { encoding: "utf8", timeout: 15000 });
1957
1957
  api.logger?.info?.(`[ofiere] Auto-registered agent "${agentName}": ${output.slice(0, 200)}`);
1958
1958
  return { success: true, message: `Agent "${agentName}" registered in OpenClaw` };
@@ -1963,7 +1963,7 @@ function registerConstellationOps(
1963
1963
  return { success: true, message: `Agent "${agentName}" was already registered` };
1964
1964
  }
1965
1965
  api.logger?.warn?.(`[ofiere] Auto-registration failed for "${agentName}": ${msg.slice(0, 300)}`);
1966
- return { success: false, message: `Auto-registration failed. Manual step: openclaw agents add "${agentName}" --workspace "${wsPath}"` };
1966
+ return { success: false, message: `Auto-registration failed. Manual step: openclaw agents add ${agentName} --workspace ${wsPath}` };
1967
1967
  }
1968
1968
  }
1969
1969
 
@@ -2282,11 +2282,11 @@ function registerConstellationOps(
2282
2282
  // Unregister from OpenClaw (best-effort)
2283
2283
  let unregResult = { success: false, message: "" };
2284
2284
  try {
2285
- const cmd = `openclaw agents remove "${agentName}" --non-interactive 2>&1`;
2285
+ const cmd = `openclaw agents delete ${agentName} --force 2>&1`;
2286
2286
  const output = execSync(cmd, { encoding: "utf8", timeout: 15000 });
2287
2287
  unregResult = { success: true, message: output.slice(0, 200) };
2288
2288
  } catch (e: any) {
2289
- unregResult = { success: false, message: `Manual step needed: openclaw agents remove "${agentName}"` };
2289
+ unregResult = { success: false, message: `Manual step needed: openclaw agents delete ${agentName} --force` };
2290
2290
  }
2291
2291
 
2292
2292
  api.logger?.info?.(`[ofiere] Deleted agent "${agentName}" — ${deletedFiles.length} files removed`);