@lacneu/wix-openclaw 0.2.1 → 0.2.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.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,85 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.2.2] - 2026-05-03
11
+
12
+ ### Fixed — OpenClaw 2026.5.x compatibility
13
+
14
+ OpenClaw 2026.5.2 introduced a manifest contract for plugin tool
15
+ ownership: tools registered via `api.registerTool(...)` are
16
+ **rejected at runtime** with the error
17
+ `plugin must declare contracts.tools before registering agent tools`
18
+ when the plugin manifest does not declare them.
19
+
20
+ Without this release, `@lacneu/wix-openclaw` loads on 2026.5.x but
21
+ all 50 of its `wix_*` tools are silently rejected at registration —
22
+ the plugin runs hooks but exposes 0 tools to the agent.
23
+
24
+ ### Added — `contracts.tools` (50 entries)
25
+
26
+ `openclaw.plugin.json` now declares every tool the plugin owns
27
+ under `contracts.tools` as a flat array of strings. Mirrors the 50
28
+ tools registered by `registerWixPlugin(api)`:
29
+
30
+ - 11 blog tools (drafts CRUD, publish/unpublish, posts, categories, tags)
31
+ - 6 bookings (services list, query, create, get, cancel, reschedule)
32
+ - 1 business info
33
+ - 6 contacts CRUD + label + query
34
+ - 6 wix data CRUD (collections, items)
35
+ - 1 design brief
36
+ - 3 events (list, get, list_guests)
37
+ - 5 FAQ (list categories/questions, create/update/delete question)
38
+ - 2 forms (list submissions, get submission)
39
+ - 2 media (list, upload)
40
+ - 2 multilingual (list languages, list schemas)
41
+ - 3 reviews (list, get, moderate)
42
+ - 2 sites (list, url get)
43
+
44
+ ### Added — `activation.onStartup: true`
45
+
46
+ Per the OpenClaw 2026.5.x manifest spec, external plugins should
47
+ declare an explicit activation policy. `onStartup: true` ensures
48
+ the plugin is loaded at gateway startup so its tools are
49
+ discoverable when the agent resolves its tool inventory.
50
+
51
+ ### Added — `toolMetadata._default.configSignals`
52
+
53
+ Tells OpenClaw's tool descriptor planner that every tool in this
54
+ plugin requires both `apiKey` and `accountId` to be configured at
55
+ `plugins.entries.wix-openclaw.config`. The platform skips loading
56
+ the plugin runtime when these are missing — cheap availability
57
+ check at reply startup.
58
+
59
+ ### Changed — compat aligned to 2026.5.0
60
+
61
+ - `package.json#openclaw.compat`:
62
+ `pluginApi: ">=2026.4.0"` → `">=2026.5.0"`,
63
+ `minGatewayVersion: "2026.4.0"` → `"2026.5.0"`.
64
+ - `peerDependencies.openclaw` and `devDependencies.openclaw`:
65
+ `">=2026.4.0"` → `">=2026.5.0"`.
66
+
67
+ ### Migration
68
+
69
+ For instance owners on `@lacneu/wix-openclaw@0.2.1` running
70
+ OpenClaw 2026.5.x:
71
+
72
+ 1. `openclaw plugins install @lacneu/wix-openclaw@0.2.2 --force`
73
+ 2. Restart the gateway container.
74
+ 3. Verify in the boot log:
75
+ `wix-openclaw: ready — 50 tool(s) registered`.
76
+ 4. Verify with `openclaw plugins inspect wix-openclaw --runtime --json`:
77
+ `"toolNames"` should list the 50 `wix_*` tools.
78
+
79
+ ### Note on agent tool inventory bug
80
+
81
+ OpenClaw 2026.5.2 has a separate regression (issue #76598) that
82
+ prevents plugin tools from appearing in the per-agent tool
83
+ inventory even when the plugin is correctly installed and registered.
84
+ Fixed in commit `a3b94f39109d` on 2026-05-03 — pending in 2026.5.3.
85
+ Symptom: `tools.alsoAllow` listing the wix tools logs as
86
+ `unknown entries` despite the plugin being loaded. No client-side
87
+ workaround; await the upstream release.
88
+
10
89
  ## [0.2.1] - 2026-04-29
11
90
 
12
91
  ### Added
@@ -2,7 +2,74 @@
2
2
  "id": "wix-openclaw",
3
3
  "name": "Wix",
4
4
  "description": "Wix REST API plugin for OpenClaw — manage blog, CMS data, forms, bookings, contacts, events, FAQ on a single Wix site with site_id whitelist and approval gating on destructive ops",
5
- "version": "0.2.1",
5
+ "version": "0.2.2",
6
+ "activation": {
7
+ "onStartup": true
8
+ },
9
+ "contracts": {
10
+ "tools": [
11
+ "wix_blog_create_draft",
12
+ "wix_blog_delete_draft",
13
+ "wix_blog_get_draft",
14
+ "wix_blog_get_post",
15
+ "wix_blog_list_categories",
16
+ "wix_blog_list_drafts",
17
+ "wix_blog_list_published",
18
+ "wix_blog_list_tags",
19
+ "wix_blog_publish_draft",
20
+ "wix_blog_unpublish",
21
+ "wix_blog_update_draft",
22
+ "wix_bookings_cancel",
23
+ "wix_bookings_create",
24
+ "wix_bookings_get_booking",
25
+ "wix_bookings_query_bookings",
26
+ "wix_bookings_reschedule",
27
+ "wix_bookings_services_list",
28
+ "wix_business_info_get",
29
+ "wix_contacts_create",
30
+ "wix_contacts_delete",
31
+ "wix_contacts_get",
32
+ "wix_contacts_label_add",
33
+ "wix_contacts_query",
34
+ "wix_contacts_update",
35
+ "wix_data_get_item",
36
+ "wix_data_insert_item",
37
+ "wix_data_list_collections",
38
+ "wix_data_query_items",
39
+ "wix_data_remove_item",
40
+ "wix_data_update_item",
41
+ "wix_design_brief",
42
+ "wix_events_get",
43
+ "wix_events_list",
44
+ "wix_events_list_guests",
45
+ "wix_faq_create_question",
46
+ "wix_faq_delete_question",
47
+ "wix_faq_list_categories",
48
+ "wix_faq_list_questions",
49
+ "wix_faq_update_question",
50
+ "wix_forms_get_submission",
51
+ "wix_forms_list_submissions",
52
+ "wix_media_list",
53
+ "wix_media_upload",
54
+ "wix_multilingual_list_languages",
55
+ "wix_multilingual_list_schemas",
56
+ "wix_reviews_get",
57
+ "wix_reviews_list",
58
+ "wix_reviews_moderate",
59
+ "wix_site_url_get",
60
+ "wix_sites_list"
61
+ ]
62
+ },
63
+ "toolMetadata": {
64
+ "_default": {
65
+ "configSignals": [
66
+ {
67
+ "rootPath": "plugins.entries.wix-openclaw.config",
68
+ "required": ["apiKey", "accountId"]
69
+ }
70
+ ]
71
+ }
72
+ },
6
73
  "configSchema": {
7
74
  "type": "object",
8
75
  "additionalProperties": false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lacneu/wix-openclaw",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "type": "module",
5
5
  "description": "Wix REST API plugin for OpenClaw — manage blog, CMS data, forms, bookings, contacts, events, FAQ on a single Wix site with site_id whitelist and approval gating on destructive ops",
6
6
  "license": "MIT",
@@ -52,8 +52,8 @@
52
52
  "./dist/index.js"
53
53
  ],
54
54
  "compat": {
55
- "pluginApi": ">=2026.4.0",
56
- "minGatewayVersion": "2026.4.0"
55
+ "pluginApi": ">=2026.5.0",
56
+ "minGatewayVersion": "2026.5.0"
57
57
  }
58
58
  },
59
59
  "dependencies": {
@@ -61,11 +61,11 @@
61
61
  },
62
62
  "devDependencies": {
63
63
  "@types/node": "^22.0.0",
64
- "openclaw": ">=2026.4.0",
64
+ "openclaw": ">=2026.5.0",
65
65
  "typescript": "^5.6.0"
66
66
  },
67
67
  "peerDependencies": {
68
- "openclaw": ">=2026.4.0"
68
+ "openclaw": ">=2026.5.0"
69
69
  },
70
70
  "peerDependenciesMeta": {
71
71
  "openclaw": {