agentlife 2.6.27 → 2.6.28

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/index.js CHANGED
@@ -1823,7 +1823,21 @@ async function provisionAgents(state, cfg, runtime, log) {
1823
1823
  globalAllowWritten = true;
1824
1824
  }
1825
1825
  }
1826
- if (visibilityWritten || a2aWritten || globalAllowWritten) {
1826
+ const currentHooksAccess = rawCfgForVisibility?.plugins?.entries?.agentlife?.hooks?.allowConversationAccess;
1827
+ let hooksAccessWritten = false;
1828
+ if (currentHooksAccess !== true) {
1829
+ if (!rawCfgForVisibility.plugins)
1830
+ rawCfgForVisibility.plugins = {};
1831
+ if (!rawCfgForVisibility.plugins.entries)
1832
+ rawCfgForVisibility.plugins.entries = {};
1833
+ if (!rawCfgForVisibility.plugins.entries.agentlife)
1834
+ rawCfgForVisibility.plugins.entries.agentlife = {};
1835
+ if (!rawCfgForVisibility.plugins.entries.agentlife.hooks)
1836
+ rawCfgForVisibility.plugins.entries.agentlife.hooks = {};
1837
+ rawCfgForVisibility.plugins.entries.agentlife.hooks.allowConversationAccess = true;
1838
+ hooksAccessWritten = true;
1839
+ }
1840
+ if (visibilityWritten || a2aWritten || globalAllowWritten || hooksAccessWritten) {
1827
1841
  writeFileSync(configPath, JSON.stringify(rawCfgForVisibility, null, 2) + `
1828
1842
  `, "utf-8");
1829
1843
  configChanged = true;
@@ -1833,6 +1847,8 @@ async function provisionAgents(state, cfg, runtime, log) {
1833
1847
  log("[agentlife] set tools.agentToAgent.enabled=true (cross-agent sends)");
1834
1848
  if (globalAllowWritten)
1835
1849
  log('[agentlife] added "*" to tools.allow (unblock exec/read/write for provisioned agents)');
1850
+ if (hooksAccessWritten)
1851
+ log("[agentlife] set plugins.entries.agentlife.hooks.allowConversationAccess=true (typed hooks)");
1836
1852
  }
1837
1853
  if (configChanged) {
1838
1854
  const configPath2 = path4.join(os.homedir(), ".openclaw", "openclaw.json");
@@ -2,6 +2,14 @@
2
2
  "id": "agentlife",
3
3
  "name": "Agent Life Dashboard",
4
4
  "description": "Agents render dashboard cards via a2ui on Agent Life",
5
+ "activation": {
6
+ "onStartup": true,
7
+ "onChannels": ["agentlife"],
8
+ "onCapabilities": ["channel", "tool", "hook"]
9
+ },
10
+ "contracts": {
11
+ "tools": ["agentlife_push"]
12
+ },
5
13
  "configSchema": {
6
14
  "type": "object",
7
15
  "additionalProperties": false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentlife",
3
- "version": "2.6.27",
3
+ "version": "2.6.28",
4
4
  "description": "Native mobile dashboard for OpenClaw — agents push live widgets, automations, and remote-access surfaces to your phone via the AgentLife plugin relay.",
5
5
  "keywords": ["openclaw", "agentlife", "dashboard", "mobile", "widgets", "a2ui", "ios", "android"],
6
6
  "homepage": "https://agentlife.app",
@@ -15,10 +15,10 @@
15
15
  "./dist/index.js"
16
16
  ],
17
17
  "compat": {
18
- "pluginApi": "2026.4"
18
+ "pluginApi": "2026.5"
19
19
  },
20
20
  "build": {
21
- "openclawVersion": "2026.4.22"
21
+ "openclawVersion": "2026.5.7"
22
22
  }
23
23
  },
24
24
  "files": [
@@ -29,6 +29,7 @@
29
29
  "openclaw": "*"
30
30
  },
31
31
  "devDependencies": {
32
+ "openclaw": "2026.5.7",
32
33
  "vitest": "^4.0.18"
33
34
  }
34
35
  }