@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artflo-ai/artflo-openclaw-plugin",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "type": "module",
5
5
  "description": "OpenClaw plugin that connects directly to Artflo canvas WebSocket runtime.",
6
6
  "keywords": [
@@ -24,10 +24,10 @@ metadata:
24
24
 
25
25
  ## API Key 配置检查(首要步骤)
26
26
 
27
- 在执行任何操作之前,先调用 `artflo_canvas_connection_status` `artflo_canvas_connect` 检查连接。如果返回结果中 `hasApiKey: false`,说明用户还没有配置 API Key。此时你必须:
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
  >