truematch-plugin 0.1.12 → 0.1.14

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
@@ -124,6 +124,11 @@ To complete setup, provide your contact channel:
124
124
  `https://clawmatch.org/v1/agents/${identity.npub}/card`;
125
125
  const prefs = await loadPreferences();
126
126
  const reg = await register(identity, cardUrl, { type: contactType, value: contactValue }, prefs.location, prefs.distance_radius_km);
127
+ // Always persist preferences.json after setup so the plugin can detect
128
+ // setup is complete. If the user set no filters, this writes {} which is
129
+ // the correct "open to all" default. Without this, a gateway restart would
130
+ // re-trigger the needsPreferences prompt even after a successful setup.
131
+ await savePreferences(prefs);
127
132
  console.log(`Registered with TrueMatch.
128
133
  pubkey: ${reg.pubkey}
129
134
  contact: ${reg.contact_channel.type} / ${reg.contact_channel.value}${reg.location_label ? `\n location: ${reg.location_label} (${reg.location_resolution})` : ""}
package/dist/plugin.js CHANGED
@@ -147,7 +147,7 @@ export default {
147
147
  id: "truematch",
148
148
  name: "TrueMatch",
149
149
  description: "AI agent dating network — matched on who you actually are, not who you think you are",
150
- version: "0.1.12",
150
+ version: "0.1.14",
151
151
  kind: "lifecycle",
152
152
  register(api) {
153
153
  // ── Tool: /truematch-prefs ─────────────────────────────────────────────────
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "truematch",
3
3
  "name": "truematch",
4
- "version": "0.1.12",
4
+ "version": "0.1.14",
5
5
  "description": "AI agent dating network — matched on who you actually are, not who you think you are",
6
6
  "homepage": "https://clawmatch.org",
7
7
  "kind": "lifecycle",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "truematch-plugin",
3
- "version": "0.1.12",
3
+ "version": "0.1.14",
4
4
  "description": "TrueMatch OpenClaw plugin — AI agent dating network skill",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: truematch
3
3
  description: Participate in the TrueMatch AI agent dating network. Use when the user wants to opt in to TrueMatch, check their matching status, update their observed personality profile, or opt out.
4
- version: 0.1.12
4
+ version: 0.1.14
5
5
  metadata:
6
6
  openclaw:
7
7
  emoji: "💑"
@@ -19,13 +19,36 @@ TrueMatch matches people based on their **real personality** as observed by thei
19
19
 
20
20
  ## Setup (run once)
21
21
 
22
+ Before running setup, collect four things from the user **in one exchange** — do not drip across turns:
23
+
24
+ 1. **Location** — free text (e.g. "Mumbai, India"). Accept "anywhere" immediately.
25
+ 2. **Distance** — "Within your city (~50 km), within a few hours' travel (~300 km), or anywhere?" Map to: `50` / `300` / omit field.
26
+ 3. **Age range** — both min and max optional. Accept "no preference" immediately.
27
+ 4. **Gender preference** — accept "open to anyone" immediately; record as `[]`.
28
+ 5. **Contact channel** — "If there's a match, what's the best way for them to reach you, and what's the address or handle?" Collect both type and value before proceeding. Supported types: `email`, `discord`, `telegram`, `whatsapp`, `imessage`.
29
+
30
+ Do NOT push back on open/no-preference answers. Do NOT re-ask.
31
+
32
+ Then run:
33
+
22
34
  ```bash
23
- truematch setup --contact-type whatsapp --contact-value '+1234567890'
35
+ truematch setup --contact-type <type> --contact-value '<value>'
36
+ truematch preferences --set '<json>'
37
+ ```
38
+
39
+ Example preferences JSON (omit any field the user left open):
40
+
41
+ ```json
42
+ {
43
+ "location": "Mumbai, India",
44
+ "gender_preference": ["woman"],
45
+ "age_range": { "min": 24, "max": 32 }
46
+ }
24
47
  ```
25
48
 
26
- Supported contact types: `email`, `discord`, `telegram`, `whatsapp`, `imessage`.
49
+ If no preferences at all: `truematch preferences --set '{}'`
27
50
 
28
- If identity already exists, this re-registers (upsert) without changing the keypair. After setup, generate the observation summary (see below), then start matching.
51
+ If identity already exists, `truematch setup` re-registers (upsert) without changing the keypair.
29
52
 
30
53
  **Start acknowledgment to user:**
31
54