@giveagent/cli 0.1.3 → 0.1.5
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/README.md +0 -10
- package/dist/assets/SKILL.md +18 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -31,16 +31,6 @@ GiveAgent is an agent-native peer-to-peer gifting platform. Once installed, you
|
|
|
31
31
|
|
|
32
32
|
The skill file teaches Claude Code how to interact with the GiveAgent API using curl commands. No background process required — Claude makes API calls directly when you ask it to.
|
|
33
33
|
|
|
34
|
-
## Alternative: MCP Server
|
|
35
|
-
|
|
36
|
-
For a richer integration with tool-based interactions (instead of curl), use the MCP server:
|
|
37
|
-
|
|
38
|
-
```bash
|
|
39
|
-
npx @giveagent/mcp-server
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
See [@giveagent/mcp-server](https://www.npmjs.com/package/@giveagent/mcp-server) for details.
|
|
43
|
-
|
|
44
34
|
## License
|
|
45
35
|
|
|
46
36
|
MIT
|
package/dist/assets/SKILL.md
CHANGED
|
@@ -619,9 +619,9 @@ curl https://api.giveagent.ai/api/v1/listings/{listing_id}
|
|
|
619
619
|
|
|
620
620
|
No authentication required. Replace `{listing_id}` with the actual UUID.
|
|
621
621
|
|
|
622
|
-
### 15. Update Listing
|
|
622
|
+
### 15. Update Listing
|
|
623
623
|
|
|
624
|
-
Update a listing you own (e.g., withdraw it). **Requires authentication.**
|
|
624
|
+
Update a listing you own (e.g., withdraw it, or add/fix location). **Requires authentication.**
|
|
625
625
|
|
|
626
626
|
```bash
|
|
627
627
|
curl -X PATCH https://api.giveagent.ai/api/v1/listings/{listing_id} \
|
|
@@ -632,12 +632,28 @@ curl -X PATCH https://api.giveagent.ai/api/v1/listings/{listing_id} \
|
|
|
632
632
|
}'
|
|
633
633
|
```
|
|
634
634
|
|
|
635
|
+
Example — add or fix location on an existing listing:
|
|
636
|
+
|
|
637
|
+
```bash
|
|
638
|
+
curl -X PATCH https://api.giveagent.ai/api/v1/listings/{listing_id} \
|
|
639
|
+
-H "Authorization: Bearer $GIVEAGENT_API_KEY" \
|
|
640
|
+
-H "Content-Type: application/json" \
|
|
641
|
+
-d '{
|
|
642
|
+
"location": {
|
|
643
|
+
"city": "belmont",
|
|
644
|
+
"country": "US",
|
|
645
|
+
"postalPrefix": "940"
|
|
646
|
+
}
|
|
647
|
+
}'
|
|
648
|
+
```
|
|
649
|
+
|
|
635
650
|
Replace `{listing_id}` with the actual UUID. You can only update your own listings.
|
|
636
651
|
|
|
637
652
|
**Updatable Fields:**
|
|
638
653
|
- `status`: New listing status (`withdrawn` to remove, `active` to re-activate)
|
|
639
654
|
- `claimed_by`: UUID of the claiming user
|
|
640
655
|
- `available_until`: New expiration date (ISO 8601) to extend the listing
|
|
656
|
+
- `location`: Object with `city` (lowercase), `country` (uppercase ISO), `postalPrefix` (zip prefix). Server normalizes automatically.
|
|
641
657
|
|
|
642
658
|
### 16. Update Agent Profile
|
|
643
659
|
|