@acedatacloud/skills 2026.703.13 → 2026.703.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acedatacloud/skills",
3
- "version": "2026.703.13",
3
+ "version": "2026.703.14",
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",
@@ -22,20 +22,33 @@ Privacy and Security → App Passwords**, NOT the account login password) and
22
22
  `$BLUESKY_SERVICE` (the PDS base URL, default `https://bsky.social`).
23
23
 
24
24
  Errors come back as JSON `{"error":"<name>","message":"<detail>"}` — show it
25
- verbatim. A `401 {"error":"AuthenticationRequired"}` on session creation means
26
- the handle or App Password is wrong/revoked the user must re-connect the
27
- Bluesky connector (or generate a fresh App Password).
25
+ verbatim. A `401 {"error":"AuthenticationRequired","message":"Invalid identifier
26
+ or password"}` on session creation means the identifier or App Password is
27
+ wrong/revoked. The **#1 cause is a bare handle**: the identifier must be the
28
+ FULL handle (`alice.bsky.social`), a DID, or the account email — a bare
29
+ `alice` will NOT resolve. Step 1 auto-appends `.bsky.social` to a bare handle
30
+ on the default PDS; if it still fails, the user must re-connect the Bluesky
31
+ connector with the full handle (or generate a fresh App Password).
28
32
 
29
33
  ## Step 1 — always create a session first
30
34
 
31
35
  Everything needs a short-lived `accessJwt` and your account `did`. Do this once
32
- per task and reuse the values:
36
+ per task and reuse the values. The identifier must be a full handle, DID or
37
+ email — normalize a bare username (no `.` / `@`) to `<name>.bsky.social` when
38
+ using the default PDS, otherwise `createSession` returns `AuthenticationRequired`:
33
39
 
34
40
  ```bash
35
41
  SVC="${BLUESKY_SERVICE:-https://bsky.social}"
42
+ ID="$BLUESKY_HANDLE"
43
+ # Bare username → full handle on the default bsky.social PDS. A dotted handle
44
+ # (custom domain), a DID (`did:...`) or an email are already valid — leave them.
45
+ case "$ID" in
46
+ *.* | *@* | did:*) : ;;
47
+ *) [ "$SVC" = "https://bsky.social" ] && ID="$ID.bsky.social" ;;
48
+ esac
36
49
  SESSION=$(curl -sS -X POST "$SVC/xrpc/com.atproto.server.createSession" \
37
50
  -H "Content-Type: application/json" \
38
- -d "$(jq -n --arg id "$BLUESKY_HANDLE" --arg pw "$BLUESKY_APP_PASSWORD" \
51
+ -d "$(jq -n --arg id "$ID" --arg pw "$BLUESKY_APP_PASSWORD" \
39
52
  '{identifier:$id, password:$pw}')")
40
53
  echo "$SESSION" | jq '{did, handle, active}'
41
54
  JWT=$(echo "$SESSION" | jq -r .accessJwt)
@@ -43,7 +56,9 @@ DID=$(echo "$SESSION" | jq -r .did)
43
56
  ```
44
57
 
45
58
  If `JWT` / `DID` are empty or `null`, print the raw `$SESSION` (it contains the
46
- error) and stop — do not continue to post.
59
+ error) and stop — do not continue to post. On `AuthenticationRequired`, tell the
60
+ user to reconnect the connector using their **full** handle (e.g.
61
+ `name.bsky.social`, not `name`) and a valid App Password.
47
62
 
48
63
  ## Post to Bluesky
49
64
 
@@ -64,8 +79,9 @@ curl -sS -X POST "$SVC/xrpc/com.atproto.repo.createRecord" \
64
79
  ```
65
80
 
66
81
  The returned `uri` looks like `at://did:plc:xxxx/app.bsky.feed.post/<rkey>`. The
67
- public web URL is `https://bsky.app/profile/$BLUESKY_HANDLE/post/<rkey>` where
68
- `<rkey>` is the last path segment of the `uri`.
82
+ public web URL is `https://bsky.app/profile/$ID/post/<rkey>` where `$ID` is the
83
+ normalized handle from Step 1 (or use the `did`) and `<rkey>` is the last path
84
+ segment of the `uri`.
69
85
 
70
86
  ### Clickable links, mentions and hashtags (facets)
71
87