Skip to content

Commit ebc19aa

Browse files
committed
Release agent kit 0.2.6
1 parent 3d0356d commit ebc19aa

6 files changed

Lines changed: 17 additions & 8 deletions

File tree

.claude-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "taisly-agent-kit",
33
"description": "Free AI-first short-form video publishing for TikTok, Instagram Reels, YouTube Shorts, X, and Facebook from Claude Code through Taisly.",
4-
"version": "0.2.5",
4+
"version": "0.2.6",
55
"author": {
66
"name": "Taisly"
77
},

SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Use this skill when a user asks an AI agent to publish, schedule, or repost shor
2020
- For MCP publishing, call `taisly_posts_create` only with `confirmed: true` after explicit user approval.
2121
- Never invent platform IDs.
2222
- Never expose or print `TAISLY_API_KEY`.
23-
- If Taisly returns a current-plan or limit error, explain the limit clearly and provide the returned upgrade or pricing link when available. Do not attempt payment without explicit user confirmation.
23+
- If Taisly returns a current-plan or limit error, explain `agent.message` when present and provide the returned `agent.paymentLinks` when available. Do not attempt payment without explicit user confirmation.
2424
- Prefer scheduled posts when the user gives a future time.
2525
- Save the returned `historyId` so status can be checked later.
2626
- Supported local video extensions are `.mp4`, `.mov`, `.avi`, `.mkv`, `.webm`, `.flv`, `.mpeg`, and `.mpg`.
@@ -105,7 +105,7 @@ For MCP, follow the same sequence with `taisly_auth_status`, `taisly_platforms_l
105105
- `SETUP_SESSION_MISSING`: run `taisly setup --agent <agent-slug>`, ask the user to open the returned login URL, then run `taisly checkin --agent <agent-slug>`.
106106
- `PLATFORMS_REQUIRED`: ask which connected accounts should receive the post.
107107
- `VIDEO_REQUIRED`: ask for a local video path.
108-
- `LIMIT`: tell the user the current plan limit has been reached. Ask them to upgrade in Taisly before creating more posts, and include the returned upgrade or pricing link when available.
108+
- `LIMIT`: tell the user the current plan limit has been reached. Use `agent.message` and `agent.paymentLinks` when present, ask them to upgrade in Taisly before retrying, and do not open or use payment links without explicit confirmation.
109109
- `POST_NOT_FOUND_IN_RECENT_HISTORY`: tell the user the post was created but a dedicated status endpoint is not available yet; check Taisly History.
110110

111111
## What Not To Do

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@taisly/agent",
3-
"version": "0.2.5",
3+
"version": "0.2.6",
44
"description": "Free AI-first agent kit for publishing short-form videos to TikTok, Instagram Reels, YouTube Shorts, X, and Facebook through Taisly.",
55
"type": "module",
66
"main": "src/index.js",

server.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
"url": "https://github.com/taisly/agent",
77
"source": "github"
88
},
9-
"version": "0.2.5",
9+
"version": "0.2.6",
1010
"packages": [
1111
{
1212
"registryType": "npm",
1313
"identifier": "@taisly/agent",
14-
"version": "0.2.5",
14+
"version": "0.2.6",
1515
"transport": {
1616
"type": "stdio"
1717
},

src/index.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export class Taisly {
5151
if (!response.ok || data?.success === false) {
5252
throw new TaislyError(
5353
data?.message || `HTTP_${response.status}`,
54-
data?.error || response.statusText || "Taisly request failed",
54+
getRequestErrorMessage(data, response),
5555
data,
5656
);
5757
}
@@ -258,11 +258,20 @@ export class TaislyError extends Error {
258258
success: false,
259259
code: this.code,
260260
message: this.message,
261+
...(this.details?.agent ? { agent: this.details.agent } : {}),
261262
...(this.details ? { details: this.details } : {}),
262263
};
263264
}
264265
}
265266

267+
function getRequestErrorMessage(data, response) {
268+
if (data?.agent?.message) return data.agent.message;
269+
if (data?.error) return data.error;
270+
if (data?.detailMessage) return data.detailMessage;
271+
if (data?.message) return data.message;
272+
return response.statusText || "Taisly request failed";
273+
}
274+
266275
export function getPlatformSchema(platform) {
267276
const normalized = String(platform || "").toLowerCase();
268277
const base = {

src/mcp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const SUPPORTED_PROTOCOL_VERSIONS = new Set([
1010
]);
1111
const SERVER_NAME = "taisly-agent-kit";
1212
const SERVER_TITLE = "Taisly Agent Kit";
13-
const SERVER_VERSION = "0.2.5";
13+
const SERVER_VERSION = "0.2.6";
1414

1515
const JSON_OBJECT_SCHEMA = {
1616
type: "object",

0 commit comments

Comments
 (0)