Skip to content

Commit b33d4da

Browse files
committed
chore: release 1.0.14
1 parent c098c20 commit b33d4da

13 files changed

Lines changed: 33 additions & 33 deletions

File tree

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "aitoearn-openclaw-workspace",
33
"private": true,
4-
"version": "1.0.13",
4+
"version": "1.0.14",
55
"type": "module",
66
"workspaces": [
77
"packages/shared",

packages/installer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@aitoearn/openclaw-plugin-cli",
3-
"version": "1.0.13",
3+
"version": "1.0.14",
44
"type": "module",
55
"main": "./dist/installer/src/index.js",
66
"types": "./dist/installer/src/index.d.ts",

packages/installer/src/openclaw-install.test.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ describe("installPluginWithOpenClaw", () => {
9090
rootDir: "/tmp/installer",
9191
manifest: {
9292
name: "@aitoearn/openclaw-plugin-cli",
93-
version: "1.0.13",
93+
version: "1.0.14",
9494
},
95-
runtimeInstallSpec: "@aitoearn/openclaw-plugin@1.0.13",
95+
runtimeInstallSpec: "@aitoearn/openclaw-plugin@1.0.14",
9696
runtimeTrackSpec: "@aitoearn/openclaw-plugin",
9797
};
9898

@@ -103,8 +103,8 @@ describe("installPluginWithOpenClaw", () => {
103103
installs: {
104104
aitoearn: {
105105
source: "npm",
106-
spec: "@aitoearn/openclaw-plugin@1.0.13",
107-
resolvedSpec: "@aitoearn/openclaw-plugin@1.0.13",
106+
spec: "@aitoearn/openclaw-plugin@1.0.14",
107+
resolvedSpec: "@aitoearn/openclaw-plugin@1.0.14",
108108
},
109109
},
110110
},
@@ -130,7 +130,7 @@ describe("installPluginWithOpenClaw", () => {
130130

131131
expect(result).toEqual({ action: "install" });
132132
expect(runOpenClaw).toHaveBeenCalledWith(
133-
["plugins", "install", "@aitoearn/openclaw-plugin@1.0.13"],
133+
["plugins", "install", "@aitoearn/openclaw-plugin@1.0.14"],
134134
{
135135
env: expect.objectContaining({
136136
OPENCLAW_STATE_DIR: "/tmp/.openclaw",
@@ -146,7 +146,7 @@ describe("installPluginWithOpenClaw", () => {
146146
aitoearn: {
147147
source: "npm",
148148
spec: "@aitoearn/openclaw-plugin",
149-
resolvedSpec: "@aitoearn/openclaw-plugin@1.0.13",
149+
resolvedSpec: "@aitoearn/openclaw-plugin@1.0.14",
150150
},
151151
},
152152
},
@@ -207,8 +207,8 @@ describe("installPluginWithOpenClaw", () => {
207207
installs: {
208208
aitoearn: {
209209
source: "npm",
210-
spec: "@aitoearn/openclaw-plugin@1.0.13",
211-
resolvedSpec: "@aitoearn/openclaw-plugin@1.0.13",
210+
spec: "@aitoearn/openclaw-plugin@1.0.14",
211+
resolvedSpec: "@aitoearn/openclaw-plugin@1.0.14",
212212
},
213213
},
214214
},
@@ -245,7 +245,7 @@ describe("installPluginWithOpenClaw", () => {
245245
"/tmp/.openclaw/extensions/aitoearn.legacy-backup-4321-12345"
246246
);
247247
expect(runOpenClaw).toHaveBeenCalledWith(
248-
["plugins", "install", "@aitoearn/openclaw-plugin@1.0.13"],
248+
["plugins", "install", "@aitoearn/openclaw-plugin@1.0.14"],
249249
{
250250
env: expect.objectContaining({
251251
OPENCLAW_STATE_DIR: "/tmp/.openclaw",
@@ -265,7 +265,7 @@ describe("installPluginWithOpenClaw", () => {
265265
aitoearn: {
266266
source: "npm",
267267
spec: "@aitoearn/openclaw-plugin",
268-
resolvedSpec: "@aitoearn/openclaw-plugin@1.0.13",
268+
resolvedSpec: "@aitoearn/openclaw-plugin@1.0.14",
269269
},
270270
},
271271
},
@@ -343,8 +343,8 @@ describe("installPluginWithOpenClaw", () => {
343343
installs: {
344344
aitoearn: {
345345
source: "npm",
346-
spec: "@aitoearn/openclaw-plugin@1.0.13",
347-
resolvedSpec: "@aitoearn/openclaw-plugin@1.0.13",
346+
spec: "@aitoearn/openclaw-plugin@1.0.14",
347+
resolvedSpec: "@aitoearn/openclaw-plugin@1.0.14",
348348
},
349349
},
350350
},
@@ -356,7 +356,7 @@ describe("installPluginWithOpenClaw", () => {
356356
expect(result).toEqual({ action: "install" });
357357
expect(runOpenClaw).toHaveBeenNthCalledWith(
358358
1,
359-
["plugins", "install", "@aitoearn/openclaw-plugin@1.0.13"],
359+
["plugins", "install", "@aitoearn/openclaw-plugin@1.0.14"],
360360
{
361361
env: expect.objectContaining({
362362
npm_config_registry: "https://registry.npmjs.org/",
@@ -366,7 +366,7 @@ describe("installPluginWithOpenClaw", () => {
366366
);
367367
expect(runOpenClaw).toHaveBeenNthCalledWith(
368368
2,
369-
["plugins", "install", "@aitoearn/openclaw-plugin@1.0.13"],
369+
["plugins", "install", "@aitoearn/openclaw-plugin@1.0.14"],
370370
{
371371
env: expect.objectContaining({
372372
npm_config_registry: "http://mirrors.cloud.tencent.com/npm/",

packages/runtime/index.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,10 @@ describe("AiToEarn OpenClaw Plugin", () => {
201201
await pluginEntry.register(mockApi as any);
202202

203203
expect(getRegisteredTool("listTaskMarket").description).toBe(
204-
"Tool listTaskMarket\n\nMoney amounts are returned in minor units (such as cents). Use the response currency field when interpreting them. Points and other non-money counters stay in raw values."
204+
"Tool listTaskMarket\n\nExcept for points, money-related values such as balances, commissions, settlements, and rewards are returned in cents/fen-style minor units. Use the response currency field when interpreting them."
205205
);
206206
expect(getRegisteredTool("getAffiliateSettlement").description).toBe(
207-
"Tool getAffiliateSettlement\n\nMoney amounts are returned in minor units (such as cents). Use the response currency field when interpreting them. Points and other non-money counters stay in raw values."
207+
"Tool getAffiliateSettlement\n\nExcept for points, money-related values such as balances, commissions, settlements, and rewards are returned in cents/fen-style minor units. Use the response currency field when interpreting them."
208208
);
209209
expect(getRegisteredTool("test_tool").description).toBe("Tool test_tool");
210210
});

packages/runtime/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const MONEY_RELATED_TOOL_NAMES = new Set([
3535
]);
3636

3737
const MONEY_UNITS_NOTE =
38-
"Money amounts are returned in minor units (such as cents). Use the response currency field when interpreting them. Points and other non-money counters stay in raw values.";
38+
"Except for points, money-related values such as balances, commissions, settlements, and rewards are returned in cents/fen-style minor units. Use the response currency field when interpreting them.";
3939

4040
export default definePluginEntry({
4141
id: PLUGIN_ID,

packages/runtime/openclaw.plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "aitoearn",
33
"name": "AiToEarn",
44
"description": "AiToEarn social media management tools",
5-
"version": "1.0.13",
5+
"version": "1.0.14",
66
"skills": [
77
"./skills"
88
],

packages/runtime/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@aitoearn/openclaw-plugin",
3-
"version": "1.0.13",
3+
"version": "1.0.14",
44
"type": "module",
55
"main": "./dist/runtime/index.js",
66
"types": "./dist/runtime/index.d.ts",

packages/runtime/skills/aitoearn-earn/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ description: Use this skill when the user wants a lobster that actively looks fo
118118
- `workLink`
119119
- `applicationId`
120120
- `inviteCode`
121-
- 金额字段按服务端返回的原始最小货币单位理解,并结合返回里的 `currency` 解释;积分和其他非金额计数保持原始值,不做按分换算
121+
- 除积分外,其余金额、收益、钱包、佣金、结算相关字段都按分为单位理解(即最小货币单位,如 cents / fen),并结合返回里的 `currency` 解释;不要擅自把它们当成主货币单位
122122

123123
## 降级规则
124124

@@ -141,4 +141,4 @@ description: Use this skill when the user wants a lobster that actively looks fo
141141
- 每次副作用调用后,明确告诉用户:
142142
- 刚刚执行了什么
143143
- 下一步应该查哪个主键
144-
- 解释金额时,明确提醒“金额看最小货币单位和 `currency`,积分保持原始值
144+
- 解释金额时,明确提醒“除积分外,其余金额相关值都以分为单位(即最小货币单位),并结合 `currency` 理解

packages/runtime/skills/aitoearn-earn/references/current-mcp-capability.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,5 @@
5252

5353
- 发布链路开始前先调 `getAiToEarnEnvironment`
5454
- 当前环境缺少某个 tool 时,要明确说“当前环境未提供该 MCP tool”
55-
- 金额字段按服务端返回的原始最小货币单位理解,并结合返回里的 `currency` 解释;积分和其他非金额计数保持原始值,不做按分换算
55+
- 除积分外,其余金额、收益、钱包、佣金、结算相关字段都按分为单位理解(即最小货币单位,如 cents / fen),并结合返回里的 `currency` 解释;不要擅自把它们当成主货币单位
5656
- 具体执行时以当前已注册 tool 的 `description``inputSchema` 和环境结果为准

0 commit comments

Comments
 (0)