@acedatacloud/piece-nano-banana 0.1.2 → 0.1.4
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 +6 -6
- package/README.zh-CN.md +6 -6
- package/dist/src/index.js +1 -1
- package/dist/src/lib/auth.js +1 -1
- package/examples/quickstart.json +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Nano Banana
|
|
1
|
+
# Nano Banana for Activepieces
|
|
2
2
|
|
|
3
3
|
Create Nano Banana images with Ace Data Cloud, then query the **same task ID**. This is an independent Ace integration, not an official Nano Banana product. [中文指南](README.zh-CN.md)
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@ Create Nano Banana images with Ace Data Cloud, then query the **same task ID**.
|
|
|
6
6
|
|
|
7
7
|
## 1. Install the released package
|
|
8
8
|
|
|
9
|
-
[Activepieces community publication guide](https://www.activepieces.com/docs/build-pieces/sharing-pieces/community). For Activepieces CE 0.92.2+, a platform administrator uses **Platform Admin → Catalogue → Pieces → Install Piece → NPM Registry** and enters `@acedatacloud/piece-nano-banana` with version `0.1.
|
|
9
|
+
[Activepieces community publication guide](https://www.activepieces.com/docs/build-pieces/sharing-pieces/community). For Activepieces CE 0.92.2+, a platform administrator uses **Platform Admin → Catalogue → Pieces → Install Piece → NPM Registry** and enters `@acedatacloud/piece-nano-banana` with the published version (this release targets `0.1.4`). Once installed, search **Nano Banana** in a flow, confirm the **Nano Banana** name and icon, then choose **Create Nano Banana task** or **Get Nano Banana task**.
|
|
10
10
|
|
|
11
11
|

|
|
12
12
|
|
|
@@ -14,13 +14,13 @@ The screenshot is an official Activepieces documentation reference retrieved on
|
|
|
14
14
|
|
|
15
15
|
## 2. Register and obtain the correct API key
|
|
16
16
|
|
|
17
|
-
1. Register or sign in at [Ace Data Cloud Applications](https://platform.acedata.cloud/console/applications?utm_source=opensource&utm_medium=referral&utm_campaign=evergreen).
|
|
18
|
-
2.
|
|
19
|
-
3. Click the
|
|
17
|
+
1. Register or sign in at [Ace Data Cloud Applications](https://platform.acedata.cloud/console/applications?utm_source=opensource&utm_medium=referral&utm_campaign=evergreen). The page prepares your **General Application** card automatically. If the card has no key, select **Create API Key** first.
|
|
18
|
+
2. Use the **General Application** card and confirm your account has **Nano Banana** access. General keys access entitled services; service-specific keys are limited to that service. Check [current pricing](https://platform.acedata.cloud/models?utm_source=opensource&utm_medium=referral&utm_campaign=evergreen) before running the action. If the General Application balance is low, click **Top Up** on that card.
|
|
19
|
+
3. Click the copy button beside **API KEY** (marked **1**), or **Manage Keys** marked **2** to create a dedicated key.
|
|
20
20
|
|
|
21
21
|

|
|
22
22
|
|
|
23
|
-
4.
|
|
23
|
+
4. For a dedicated key, choose **Manage Keys → Create**, name it `Activepieces Nano Banana`, set expiry and usage limits as needed. If **Allowed APIs** is enabled, include `/nano-banana/images` and `/nano-banana/tasks`. Copy the created key.
|
|
24
24
|
|
|
25
25
|

|
|
26
26
|
|
package/README.zh-CN.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Nano Banana
|
|
1
|
+
# Nano Banana:Activepieces 插件
|
|
2
2
|
|
|
3
3
|
通过 Ace Data Cloud 创建 Nano Banana 图片,并按**同一任务 ID**查询。这是 Ace 提供的独立集成,不冒充 Nano Banana 官方产品。[English](README.md)
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
## 1. 官方安装入口与实例安装
|
|
8
8
|
|
|
9
|
-
参照 [Activepieces 官方社区发布文档](https://www.activepieces.com/docs/build-pieces/sharing-pieces/community)。CE 0.92.2+ 管理员进入 **Platform Admin → Catalogue → Pieces → Install Piece → NPM Registry
|
|
9
|
+
参照 [Activepieces 官方社区发布文档](https://www.activepieces.com/docs/build-pieces/sharing-pieces/community)。CE 0.92.2+ 管理员进入 **Platform Admin → Catalogue → Pieces → Install Piece → NPM Registry**,输入包名与已发布版本(本次目标为 `0.1.4`)。安装后在流程搜索 **Nano Banana**,核对 **Nano Banana** 的名称、图标和创建/查询两个动作。
|
|
10
10
|
|
|
11
11
|

|
|
12
12
|
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
|
|
15
15
|
## 2. 注册、登录并获取 API Key
|
|
16
16
|
|
|
17
|
-
1. 进入 [Ace Applications](https://platform.acedata.cloud/console/applications?utm_source=opensource&utm_medium=referral&utm_campaign=evergreen)
|
|
18
|
-
2.
|
|
19
|
-
3.
|
|
17
|
+
1. 进入 [Ace Applications](https://platform.acedata.cloud/console/applications?utm_source=opensource&utm_medium=referral&utm_campaign=evergreen) 注册或登录。页面会自动准备好**通用应用**卡片。若卡片尚无 Key,请先选择**创建 API Key**。
|
|
18
|
+
2. 使用**通用应用**卡片,并确认账号具备 **Nano Banana** 权限。通用 Key 可访问账号有权使用的服务,专用 Key 只限对应服务。创建前查看[当前价格](https://platform.acedata.cloud/models?utm_source=opensource&utm_medium=referral&utm_campaign=evergreen)。通用应用余额不足时,点击该卡片上的**充值**。
|
|
19
|
+
3. 点击 **API KEY** 旁标为 **1** 的复制按钮,或 **2** 的 **Manage Keys** 管理独立密钥。
|
|
20
20
|
|
|
21
21
|

|
|
22
22
|
|
|
23
|
-
4. **Manage Keys → Create**,命名 `Activepieces Nano Banana`,按需设置有效期与用量限制;启用 Allowed APIs 时同时包含 `/nano-banana/images` 与 `/nano-banana/tasks`,创建后复制。
|
|
23
|
+
4. 如需独立密钥,选择 **Manage Keys → Create**,命名 `Activepieces Nano Banana`,按需设置有效期与用量限制;启用 Allowed APIs 时同时包含 `/nano-banana/images` 与 `/nano-banana/tasks`,创建后复制。
|
|
24
24
|
|
|
25
25
|

|
|
26
26
|
|
package/dist/src/index.js
CHANGED
|
@@ -4,4 +4,4 @@ exports.piece = void 0;
|
|
|
4
4
|
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
5
5
|
const actions_1 = require("./lib/actions");
|
|
6
6
|
const auth_1 = require("./lib/auth");
|
|
7
|
-
exports.piece = (0, pieces_framework_1.createPiece)({ displayName: 'Nano Banana
|
|
7
|
+
exports.piece = (0, pieces_framework_1.createPiece)({ displayName: 'Nano Banana', description: 'Create Nano Banana images through Ace Data Cloud and retrieve the same task. Independent Ace integration.', logoUrl: 'https://cdn.acedata.cloud/859plc.jpg', authors: ['Ace Data Cloud'], minimumSupportedRelease: '0.92.2', auth: auth_1.pieceAuth, actions: [actions_1.generate, actions_1.getTask], triggers: [] });
|
package/dist/src/lib/auth.js
CHANGED
|
@@ -4,6 +4,6 @@ exports.pieceAuth = void 0;
|
|
|
4
4
|
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
5
5
|
exports.pieceAuth = pieces_framework_1.PieceAuth.SecretText({
|
|
6
6
|
displayName: 'Ace Data Cloud API key',
|
|
7
|
-
description: 'Register or sign in at [Applications](https://platform.acedata.cloud/console/applications?utm_source=activepieces&utm_medium=referral&utm_campaign=evergreen).
|
|
7
|
+
description: 'Register or sign in at [Applications](https://platform.acedata.cloud/console/applications?utm_source=activepieces&utm_medium=referral&utm_campaign=evergreen). On the General Application card, select Create API Key first if no key appears. Then click the copy button beside API KEY. For a separate key, use Manage Keys → Create. Check service access and Allowed APIs. If the General Application balance is low, click Top Up on that card. Paste only the key, without Bearer.',
|
|
8
8
|
required: true,
|
|
9
9
|
});
|
package/examples/quickstart.json
CHANGED
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"pieceName": "@acedatacloud/piece-nano-banana",
|
|
39
39
|
"actionName": "nano_banana_generate_image",
|
|
40
40
|
"sampleData": {},
|
|
41
|
-
"pieceVersion": "0.1.
|
|
41
|
+
"pieceVersion": "0.1.4",
|
|
42
42
|
"propertySettings": {
|
|
43
43
|
"prompt": {
|
|
44
44
|
"type": "MANUAL"
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"pieceName": "@acedatacloud/piece-nano-banana",
|
|
82
82
|
"actionName": "nano_banana_task_retrieve",
|
|
83
83
|
"sampleData": {},
|
|
84
|
-
"pieceVersion": "0.1.
|
|
84
|
+
"pieceVersion": "0.1.4",
|
|
85
85
|
"propertySettings": {
|
|
86
86
|
"task_id": {
|
|
87
87
|
"type": "MANUAL"
|
package/package.json
CHANGED