@acedatacloud/skills 2026.706.3 → 2026.712.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acedatacloud/skills",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.712.0",
|
|
4
4
|
"description": "Agent Skills for AceDataCloud AI services — music, image, video generation, LLM chat, web search. Compatible with Claude Code, GitHub Copilot, Gemini CLI, OpenAI Codex, and 30+ AI coding agents.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent-skills",
|
|
@@ -58,6 +58,7 @@ POST /serp/google
|
|
|
58
58
|
| `range` | string | Time filter (see below) |
|
|
59
59
|
| `number` | int | Number of results per page |
|
|
60
60
|
| `page` | int | Page number for pagination |
|
|
61
|
+
| `image_size` | string | **Images only.** Filter by size for high-res sources: `large` / `medium` / `icon`, or a megapixel minimum `2mp`…`70mp` (e.g. `4mp` = larger than 4 megapixels). Use `large` (or a `*mp` value) whenever the image will be shown large / full-screen / zoomed. |
|
|
61
62
|
|
|
62
63
|
## Time Range Options
|
|
63
64
|
|
|
@@ -82,7 +83,7 @@ Web search returns structured data including:
|
|
|
82
83
|
- Country and language codes affect result localization significantly
|
|
83
84
|
- `number` controls results per page, not total results — use `page` for pagination
|
|
84
85
|
- Time range (`range`) only applies to web search and news, not images or places
|
|
85
|
-
- Image
|
|
86
|
+
- **Image resolution (important for video / full-screen use):** results include `image_url` (full-size), `thumbnail_url`, and `image_width`/`image_height`. Pass **`image_size: "large"`** (or a megapixel minimum like `"4mp"`) to get sharp sources, and pick the result with the largest `image_width`×`image_height`. Always download `image_url` — **never** use `thumbnail_url` as a final asset (it is tiny and blurry).
|
|
86
87
|
- Places search works best with location-specific queries (e.g., "restaurants near Times Square")
|
|
87
88
|
|
|
88
89
|
> **MCP:** `pip install mcp-serp` | Hosted: `https://serp.mcp.acedata.cloud/mcp` | See [all MCP servers](../_shared/mcp-servers.md)
|
package/skills/x/scripts/x.py
CHANGED
|
@@ -98,6 +98,7 @@ def current_user_id_from_cookies() -> str | None:
|
|
|
98
98
|
|
|
99
99
|
|
|
100
100
|
def make_client():
|
|
101
|
+
import httpx
|
|
101
102
|
from twikit import Client
|
|
102
103
|
patch_twikit_transaction_resolver()
|
|
103
104
|
patch_twikit_model_defaults()
|
|
@@ -107,7 +108,12 @@ def make_client():
|
|
|
107
108
|
or os.environ.get("ALL_PROXY") or os.environ.get("all_proxy")
|
|
108
109
|
or None
|
|
109
110
|
)
|
|
110
|
-
|
|
111
|
+
# twikit builds its httpx.AsyncClient with httpx's 5s default timeout, which
|
|
112
|
+
# trips a ReadTimeout on media uploads (INIT/APPEND/FINALIZE + status poll)
|
|
113
|
+
# from datacenter egress — a text-only tweet is one fast call and squeaks
|
|
114
|
+
# under 5s, but --media does not. Give network ops generous headroom.
|
|
115
|
+
timeout = httpx.Timeout(60.0, connect=15.0)
|
|
116
|
+
client = Client("en-US", proxy=proxy, user_agent=UA, timeout=timeout)
|
|
111
117
|
client.set_cookies(load_cookie_dict())
|
|
112
118
|
return client
|
|
113
119
|
|
|
@@ -494,6 +500,14 @@ def main() -> None:
|
|
|
494
500
|
# twikit scrapes X's non-public API; a bare error here usually means an
|
|
495
501
|
# expired cookie OR that X changed its internal endpoints and twikit
|
|
496
502
|
# needs a compatibility fix.
|
|
503
|
+
import httpx
|
|
504
|
+
if isinstance(e, httpx.TimeoutException):
|
|
505
|
+
die(
|
|
506
|
+
"X request timed out talking to X (network was slow, not an "
|
|
507
|
+
"auth problem) — this is transient, retry the same command. "
|
|
508
|
+
"Timeouts are most common on --media because the image upload "
|
|
509
|
+
"is the slow leg; if it recurs, try a smaller image."
|
|
510
|
+
)
|
|
497
511
|
if "Couldn't get KEY_BYTE indices" in str(e):
|
|
498
512
|
die(
|
|
499
513
|
"X request failed because twikit cannot derive X's current "
|