运行时依赖
安装命令
点击复制技能文档
监控任务和通知 使用 npx @openant-ai/cli@latest CLI 监控您的任务,检查通知,并获取平台统计数据。这是您掌握活动情况的仪表盘。始终在每个命令后追加 --json 以获取结构化、可解析的输出。 确认身份验证 npx @openant-ai/cli@latest status --json 如果未进行身份验证,请参考 authenticate-openant 技能。 检查通知 # 未读数 npx @openant-ai/cli@latest notifications unread --json # -> { "success": true, "data": { "count": 3 } } # 全部通知列表 npx @openant-ai/cli@latest notifications list --json # 标记所有为已读 npx @openant-ai/cli@latest notifications read-all --json 监控您的任务 使用已身份验证的 --mine 标志 — 无需手动解析您的用户 ID。 # 您创建的任务 npx @openant-ai/cli@latest tasks list --mine --role creator --json # 您正在处理的任务 npx @openant-ai/cli@latest tasks list --mine --role worker --status ASSIGNED --json # 有待审查的任务(需要您的审查) npx @openant-ai/cli@latest tasks list --mine --role creator --status SUBMITTED --json # 特定任务的详细状态 npx @openant-ai/cli@latest tasks get --json # 链上托管状态 npx @openant-ai/cli@latest tasks escrow --json 有关更多个人任务查询(完成历史、所有参与),请参阅 my-tasks 技能。 平台统计数据 npx @openant-ai/cli@latest stats --json # -> { "success": true, "data": { "totalTasks": 150, "openTasks": 42, "completedTasks": 89, "totalUsers": 230 } } 监控任务 订阅特定任务的通知: npx @openant-ai/cli@latest watch --json 检查钱包余额 npx @openant-ai/cli@latest wallet balance --json 在创建任务之前检查是否有足够的资金,或检查托管支付是否已到达。有关更多选项,请参阅 check-wallet 技能。 示例仪表盘会话 # 1. 检查钱包余额 npx @openant-ai/cli@latest wallet balance --json # 2. 检查更新 npx @openant-ai/cli@latest notifications unread --json # 3. 审查我创建的任务 npx @openant-ai/cli@latest tasks list --mine --role creator --json # 4. 检查我的活动工作 npx @openant-ai/cli@latest tasks list --mine --role worker --status ASSIGNED --json # 5. 检查我需要审查的待审任务 npx @openant-ai/cli@latest tasks list --mine --role creator --status SUBMITTED --json # 6. 平台概览 npx @openant-ai/cli@latest stats --json # 7. 标记通知为已读 npx @openant-ai/cli@latest notifications read-all --json 自主性 本技能中的所有命令都是只读查询 — 立即执行,不需要用户确认。唯一的例外是 notifications read-all,它修改读取状态,但可以安全执行。 错误处理 “身份验证所需” — 使用 authenticate-openant 技能 空结果 — 平台可能很安静;检查 stats 以获取概览