@acedatacloud/piece-nano-banana 0.1.0 → 0.1.2
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 +5 -5
- 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
|
@@ -2,11 +2,11 @@
|
|
|
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
|
|
|
5
|
-
**Release state (2026-10-
|
|
5
|
+
**Release state (2026-10-19):** [`@acedatacloud/piece-nano-banana@0.1.0`](https://www.npmjs.com/package/@acedatacloud/piece-nano-banana/v/0.1.0) is published with provenance. Its public registry artifact and clean npm installation were verified. All seven Ace Pieces, including Nano Banana, also passed registry installation and credential-free quickstart import in official CE 0.92.3 ([validation receipt](https://github.com/AceDataCloud/SunoActivepieces/actions/runs/39173846837)), using server APIs without keys or action execution. Shared-catalog acceptance is still pending: this package is not automatically searchable in every Activepieces instance.
|
|
6
6
|
|
|
7
|
-
## 1. Install
|
|
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
|
|
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.2`. Once installed, search **Nano Banana** in a flow, confirm **Nano Banana by Ace Data Cloud** and the Ace logo, then choose **Create Nano Banana task** or **Get Nano Banana task**.
|
|
10
10
|
|
|
11
11
|

|
|
12
12
|
|
|
@@ -14,8 +14,8 @@ 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. Open General application or an application with **Nano Banana** access. General keys access entitled services; service-specific keys are limited to that service. Check [current price and balance](https://platform.acedata.cloud/models?utm_source=opensource&utm_medium=referral&utm_campaign=evergreen
|
|
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). If no General application exists, choose **Initialize General Application**.
|
|
18
|
+
2. Open General application or an application with **Nano Banana** access. General keys access entitled services; service-specific keys are limited to that service. Check [current price and balance](https://platform.acedata.cloud/models?utm_source=opensource&utm_medium=referral&utm_campaign=evergreen) before creating anything.
|
|
19
19
|
3. Click the application copy button marked **1**, or **Manage Keys** marked **2** to create a dedicated key.
|
|
20
20
|
|
|
21
21
|

|
|
@@ -31,7 +31,7 @@ These redacted Ace console screenshots are reused from the fixed source listed i
|
|
|
31
31
|
1. Import [the credential-free quickstart](examples/quickstart.json). It has Manual Trigger → Create Nano Banana task → Get Nano Banana task. The target instance also needs official `@activepieces/piece-manual-trigger@0.0.8`.
|
|
32
32
|
2. Select your own connection in both actions. Start with model `nano-banana-2-lite` and one image, 1K, 1:1. Review current price; these are sample inputs, not a price guarantee.
|
|
33
33
|
3. Run creation **once**, save `task_id`. Lookup maps that output automatically. If `pending`, wait and repeat only **Get Nano Banana task** using the same ID. Keep creation outside repeated polling.
|
|
34
|
-
4. Use `media_urls` only after `status=succeeded` and `success=true`; a pending preview is not final. Confirm one creation request and Credits deduction in [request history](https://platform.acedata.cloud/console/usages?utm_source=opensource&utm_medium=referral&utm_campaign=evergreen
|
|
34
|
+
4. Use `media_urls` only after `status=succeeded` and `success=true`; a pending preview is not final. Confirm one creation request and Credits deduction in [request history](https://platform.acedata.cloud/console/usages?utm_source=opensource&utm_medium=referral&utm_campaign=evergreen). Task lookup does not create another item.
|
|
35
35
|
|
|
36
36
|
The first version exposes text-to-image only; image editing is not exposed yet. HTTP creation retries and template step retries are disabled. On creation timeout or 5xx inspect history before another submission; the task might already exist. No paid request was made during source validation.
|
|
37
37
|
|
package/README.zh-CN.md
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
通过 Ace Data Cloud 创建 Nano Banana 图片,并按**同一任务 ID**查询。这是 Ace 提供的独立集成,不冒充 Nano Banana 官方产品。[English](README.md)
|
|
4
4
|
|
|
5
|
-
**2026-10-
|
|
5
|
+
**2026-10-19 状态:**[`@acedatacloud/piece-nano-banana@0.1.0`](https://www.npmjs.com/package/@acedatacloud/piece-nano-banana/v/0.1.0) 已正式发布并带 provenance,公开 registry 包和普通 npm 安装已核验。包括 Nano Banana 在内的七个 Ace Piece 均通过官方 CE 0.92.3 的 registry 安装与无密钥 quickstart 导入([验证回执](https://github.com/AceDataCloud/SunoActivepieces/actions/runs/39173846837));使用服务端 API,没有填 Key 或执行动作。官方共享目录仍待接受,不会因 npm 发布自动出现在所有实例的搜索结果中。
|
|
6
6
|
|
|
7
7
|
## 1. 官方安装入口与实例安装
|
|
8
8
|
|
|
9
|
-
参照 [Activepieces 官方社区发布文档](https://www.activepieces.com/docs/build-pieces/sharing-pieces/community)
|
|
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.2`。安装后在流程搜索 **Nano Banana**,核对 **Nano Banana by Ace Data Cloud**、Ace Logo 和创建/查询两个动作。
|
|
10
10
|
|
|
11
11
|

|
|
12
12
|
|
|
@@ -14,8 +14,8 @@
|
|
|
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. 打开通用应用或具有 **Nano Banana** 权限的专用应用。通用 Key 可访问账号有权使用的服务,专用 Key 只限对应服务。创建前查看[当前价格与余额](https://platform.acedata.cloud/models?utm_source=opensource&utm_medium=referral&utm_campaign=evergreen
|
|
17
|
+
1. 进入 [Ace Applications](https://platform.acedata.cloud/console/applications?utm_source=opensource&utm_medium=referral&utm_campaign=evergreen) 注册或登录;没有通用应用时点击 **Initialize General Application**。
|
|
18
|
+
2. 打开通用应用或具有 **Nano Banana** 权限的专用应用。通用 Key 可访问账号有权使用的服务,专用 Key 只限对应服务。创建前查看[当前价格与余额](https://platform.acedata.cloud/models?utm_source=opensource&utm_medium=referral&utm_campaign=evergreen)。
|
|
19
19
|
3. 用图中 **1** 的复制按钮复制 Key,或 **2** 的 **Manage Keys** 管理独立密钥。
|
|
20
20
|
|
|
21
21
|

|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
1. 导入[无密钥流程](examples/quickstart.json):手动触发→创建→查询;实例另需官方 manual-trigger 0.0.8。
|
|
32
32
|
2. 两个动作分别选择自己的连接,模型 `nano-banana-2-lite`,样例参数 1 张、1K、1:1;先查实时价格,样例不保证价格。
|
|
33
33
|
3. 创建只执行一次,保存 task_id;查询已映射同一 ID。pending 时只重复查询,不把创建放进轮询。
|
|
34
|
-
4. 仅终态 succeeded/success=true 使用 media_urls;到[请求记录](https://platform.acedata.cloud/console/usages?utm_source=opensource&utm_medium=referral&utm_campaign=evergreen
|
|
34
|
+
4. 仅终态 succeeded/success=true 使用 media_urls;到[请求记录](https://platform.acedata.cloud/console/usages?utm_source=opensource&utm_medium=referral&utm_campaign=evergreen)核对一次创建与 Credits 扣费。查询不会再次创建内容。
|
|
35
35
|
|
|
36
36
|
首版仅支持文生图,尚不暴露编辑动作。源码测试未发付费请求。401/403 核 Key/权限,400 核模型参数,429 降并发;创建超时/5xx 先查记录,避免重复计费。HTTP 与样例创建均不自动重试。
|
|
37
37
|
|
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 by Ace Data Cloud', description: 'Create Nano Banana images through Ace Data Cloud and retrieve the same task. Independent Ace integration.', logoUrl: 'https://cdn.acedata.cloud/
|
|
7
|
+
exports.piece = (0, pieces_framework_1.createPiece)({ displayName: 'Nano Banana by Ace Data Cloud', 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=
|
|
7
|
+
description: 'Register or sign in at [Applications](https://platform.acedata.cloud/console/applications?utm_source=activepieces&utm_medium=referral&utm_campaign=evergreen). Initialize General Application if needed, then copy the key or choose Manage Keys → Create. Check service access, balance and Allowed APIs. 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.2",
|
|
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.2",
|
|
85
85
|
"propertySettings": {
|
|
86
86
|
"task_id": {
|
|
87
87
|
"type": "MANUAL"
|
package/package.json
CHANGED