twindex-openclaw-plugin 0.8.1 → 0.8.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.
@@ -2,7 +2,7 @@
2
2
  "id": "twindex",
3
3
  "name": "New Lore",
4
4
  "description": "Music intelligence for AI agents. Get notified about tours, merch drops, releases, and presales for your favorite artists.",
5
- "version": "0.8.1",
5
+ "version": "0.8.2",
6
6
  "skills": ["./skills"],
7
7
  "configSchema": {
8
8
  "type": "object",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "twindex-openclaw-plugin",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
4
4
  "description": "Music intelligence for AI agents. Tours, merch drops, releases, presales.",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/index.ts CHANGED
@@ -117,6 +117,16 @@ export default function register(api: any) {
117
117
  } finally {
118
118
  bootstrapping = false;
119
119
  }
120
+
121
+ // Sync city on every reload (city often arrives after bootstrap via config.patch)
122
+ const postConfig = cfg();
123
+ if (postConfig.apiKey && postConfig.city) {
124
+ twindex.setCity(postConfig.apiKey, postConfig.city).then(() => {
125
+ api.logger?.info?.(`NewLore: city synced to ${postConfig.city}`);
126
+ }).catch((err: any) => {
127
+ api.logger?.warn?.(`NewLore: failed to sync city: ${err.message}`);
128
+ });
129
+ }
120
130
  })();
121
131
 
122
132
  // ── Tools ──────────────────────────────────────────────────────────