agentlife 1.2.0 → 1.2.1

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/dist/index.js +13 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1839,6 +1839,19 @@ async function provisionAgents(state, cfg, runtime, log) {
1839
1839
  log(`[agentlife] backfilled subagents for ${agent.id}`);
1840
1840
  }
1841
1841
  }
1842
+ const rawCfgForVisibility = JSON.parse(readFileSync(path3.join(os.homedir(), ".openclaw", "openclaw.json"), "utf-8"));
1843
+ const currentVisibility = rawCfgForVisibility?.tools?.sessions?.visibility;
1844
+ if (currentVisibility !== "all") {
1845
+ if (!rawCfgForVisibility.tools)
1846
+ rawCfgForVisibility.tools = {};
1847
+ if (!rawCfgForVisibility.tools.sessions)
1848
+ rawCfgForVisibility.tools.sessions = {};
1849
+ rawCfgForVisibility.tools.sessions.visibility = "all";
1850
+ writeFileSync(path3.join(os.homedir(), ".openclaw", "openclaw.json"), JSON.stringify(rawCfgForVisibility, null, 2) + `
1851
+ `, "utf-8");
1852
+ configChanged = true;
1853
+ log("[agentlife] set tools.sessions.visibility=all (cross-agent delegation)");
1854
+ }
1842
1855
  if (configChanged) {
1843
1856
  const configPath = path3.join(os.homedir(), ".openclaw", "openclaw.json");
1844
1857
  const rawCfg = JSON.parse(readFileSync(configPath, "utf-8"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentlife",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "bun build index.ts --outfile dist/index.js --target node --external openclaw/plugin-sdk",