@artflo-ai/artflo-openclaw-plugin 0.0.6 → 0.0.7
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.
|
@@ -590,6 +590,13 @@ export function registerArtfloTools(api, context) {
|
|
|
590
590
|
parameters: Type.Object({}),
|
|
591
591
|
async execute(_id, params) {
|
|
592
592
|
return runWithToolTrace(ARTFLO_TOOL_NAMES.getUserStatus, params, async () => {
|
|
593
|
+
if (!context.config.apiKey) {
|
|
594
|
+
return jsonResult({
|
|
595
|
+
ok: false,
|
|
596
|
+
label: ARTFLO_TOOL_NAMES.getUserStatus,
|
|
597
|
+
error: 'API Key not configured. Use artflo_set_api_key to set it first.',
|
|
598
|
+
});
|
|
599
|
+
}
|
|
593
600
|
const status = await fetchUserStatus(context.config);
|
|
594
601
|
return jsonResult({
|
|
595
602
|
ok: true,
|
package/package.json
CHANGED
|
@@ -24,10 +24,10 @@ metadata:
|
|
|
24
24
|
|
|
25
25
|
## API Key 配置检查(首要步骤)
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
**如果 before_prompt_build 注入的上下文显示 `apiKey=未配置`,则:**
|
|
28
28
|
|
|
29
|
-
1.
|
|
30
|
-
2. 引导用户提供 API Key
|
|
29
|
+
1. **禁止调用除 `artflo_set_api_key` 以外的任何 Artflo 工具。** 没有 API Key,所有接口都会返回 401。
|
|
30
|
+
2. 引导用户提供 API Key:
|
|
31
31
|
|
|
32
32
|
> 你还没有配置 Artflo API Key,需要先设置才能使用画布功能。
|
|
33
33
|
>
|