agentlife 1.2.6 → 1.3.0

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 +5 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1486,7 +1486,7 @@ var PROVISIONED_AGENTS = [
1486
1486
  id: "agentlife-builder",
1487
1487
  name: "AgentLife Builder",
1488
1488
  agentsMd: BUILDER_AGENTS_MD,
1489
- tools: { allow: ["agentlife_push"] }
1489
+ tools: { profile: "full", alsoAllow: ["agentlife_push"] }
1490
1490
  },
1491
1491
  {
1492
1492
  id: "supervisor",
@@ -1850,13 +1850,12 @@ async function provisionAgents(state, cfg, runtime, log) {
1850
1850
  const existing = currentList.find((a) => a.id === agent.id);
1851
1851
  if (existing) {
1852
1852
  if (agent.tools) {
1853
- const currentAllow = existing.tools?.allow;
1854
- const wantAllow = agent.tools.allow;
1855
- const needsUpdate = !currentAllow || currentAllow.length !== wantAllow?.length || !wantAllow?.every((t) => currentAllow.includes(t));
1856
- if (needsUpdate) {
1853
+ const cur = JSON.stringify(existing.tools ?? {});
1854
+ const want = JSON.stringify(agent.tools);
1855
+ if (cur !== want) {
1857
1856
  existing.tools = agent.tools;
1858
1857
  configChanged = true;
1859
- log(`[agentlife] updated tool restrictions for ${agent.id}`);
1858
+ log(`[agentlife] updated tool config for ${agent.id}`);
1860
1859
  }
1861
1860
  }
1862
1861
  if (agent.subagents && !existing.subagents) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentlife",
3
- "version": "1.2.6",
3
+ "version": "1.3.0",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "bun build index.ts --outfile dist/index.js --target node --external openclaw/plugin-sdk",