superise-market-sustain

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Market Sustain CLI

Market Sustain CLI

Use
superise market-sustain
as an observe -> decide -> act toolset. Keep planning in the agent, not in the CLI.
使用
superise market-sustain
作为观察->决策->执行的工具集。规划逻辑由Agent负责,而非CLI工具。

CLI Preflight

CLI 预检查

Before using any sustain command:
  1. Check whether
    superise market-sustain
    is already available.
  2. If the command is missing or unusable, install the published CLI globally:
bash
npm install -g @superise/market-sustain-cli
superise market-sustain --help
  1. If the install fails, report the exact npm error and stop instead of pretending the CLI is available.
Do not assume a local workspace checkout is already wired into
PATH
. The supported fallback is the published npm package.
在使用任何监控命令之前:
  1. 检查
    superise market-sustain
    命令是否已可用。
  2. 如果命令缺失或无法使用,全局安装已发布的CLI包:
bash
npm install -g @superise/market-sustain-cli
superise market-sustain --help
  1. 如果安装失败,报告具体的npm错误并停止操作,不要假装CLI已可用。
不要假设本地工作区的检出版本已添加到
PATH
中。推荐的备用方案是使用已发布的npm包。

Boundary

使用边界

  • Use only the sustain commands this package actually implements.
  • Do not assume legacy commands such as
    set-model
    or
    mcp-server
    exist.
  • The only setup flow restored here is
    superise market-sustain setup openclaw
    .
  • Prefer explicit sustain commands over ad hoc wallet transfers for market recharge.
  • Report wallet-side auth dependencies clearly instead of inventing local workarounds.
  • 仅使用该包实际实现的监控命令。
  • 不要假设
    set-model
    mcp-server
    等旧命令仍然存在。
  • 此处仅恢复
    superise market-sustain setup openclaw
    这一个设置流程。
  • 优先使用明确的监控命令,而非临时钱包转账来为市场账户充值。
  • 清晰报告钱包端的认证依赖,不要自行发明本地变通方案。

Autonomous Delegation

自主委托

If the user says anything like:
  • "keep yourself alive"
  • "self-supervise"
  • "manage your own balance"
  • "watch your market account"
  • "你自己维持余额"
  • "你自己监控并充值"
treat that as delegation of ongoing sustain responsibility.
When that happens, do not stop at explaining commands. Start acting:
  1. Run the CLI preflight first.
  2. Gather the current state with
    health-check
    ,
    forecast
    , and
    config show
    .
  3. Make an immediate decision based on balance, runway, and the user's risk tolerance.
  4. If ongoing supervision is wanted, register recurring checks with
    superise market-sustain setup openclaw
    unless the user explicitly prefers app automation.
  5. Report what you decided and why.
The CLI does not do the planning for you. The agent remains responsible for observe -> decide -> act behavior.
如果用户说出以下类似内容:
  • "keep yourself alive"
  • "self-supervise"
  • "manage your own balance"
  • "watch your market account"
  • "你自己维持余额"
  • "你自己监控并充值"
将其视为用户委托了持续监控的职责。
此时,不要仅停留在解释命令层面,应立即开始行动:
  1. 首先执行CLI预检查。
  2. 使用
    health-check
    forecast
    config show
    命令收集当前状态。
  3. 根据余额、运行时长和用户的风险承受能力立即做出决策。
  4. 如果需要持续监控,除非用户明确偏好应用自动化,否则使用
    superise market-sustain setup openclaw
    注册定期检查任务。
  5. 报告你的决策及原因。
CLI工具不会为你完成规划,Agent仍需负责观察->决策->执行的行为逻辑。

Natural Language Triggers

自然语言触发映射

Map intent to commands like this:
  • "Check your market balance" ->
    superise market-sustain health-check --json
  • "How long can you keep running?" ->
    superise market-sustain forecast --json
  • "Show market models" ->
    superise market-sustain list-models --json
  • "Show sustain settings" ->
    superise market-sustain config show
  • "Top up 3000 CKB" ->
    superise market-sustain top-up 3000
  • "Dry-run a recharge" ->
    superise market-sustain top-up <amount> --dry-run --json
  • "Retry failed top-up orders" ->
    superise market-sustain retry-orders --json
  • "Set up recurring sustain checks" ->
    superise market-sustain setup openclaw
  • "Install sustain cron jobs" ->
    superise market-sustain setup openclaw
  • "Clear your market login" ->
    superise market-sustain logout
将用户意图映射到对应命令,示例如下:
  • "Check your market balance" ->
    superise market-sustain health-check --json
  • "How long can you keep running?" ->
    superise market-sustain forecast --json
  • "Show market models" ->
    superise market-sustain list-models --json
  • "Show sustain settings" ->
    superise market-sustain config show
  • "Top up 3000 CKB" ->
    superise market-sustain top-up 3000
  • "Dry-run a recharge" ->
    superise market-sustain top-up <amount> --dry-run --json
  • "Retry failed top-up orders" ->
    superise market-sustain retry-orders --json
  • "Set up recurring sustain checks" ->
    superise market-sustain setup openclaw
  • "Install sustain cron jobs" ->
    superise market-sustain setup openclaw
  • "Clear your market login" ->
    superise market-sustain logout

Observe

观察阶段

Start any survival task by gathering state:
bash
superise market-sustain --help
superise market-sustain health-check --json
superise market-sustain forecast --json
superise market-sustain list-models --json
superise market-sustain config show
Use
--json
whenever the result will drive a follow-up decision.
开始任何生存任务前,先收集状态信息:
bash
superise market-sustain --help
superise market-sustain health-check --json
superise market-sustain forecast --json
superise market-sustain list-models --json
superise market-sustain config show
当结果将用于后续决策时,使用
--json
参数。

Act

执行阶段

Use these commands to change state:
bash
superise market-sustain top-up <amount>
superise market-sustain top-up <amount> --json
superise market-sustain retry-orders --json
superise market-sustain setup openclaw
superise market-sustain setup openclaw --json
superise market-sustain setup openclaw --tick-every 5m --retry-every 10m --session isolated
superise market-sustain config set <key> <value>
superise market-sustain config unset <key>
superise market-sustain config reset
superise market-sustain logout
Follow these rules:
  • Choose a top-up amount based on the user's intent and current balance posture.
  • Let wallet-side policy enforce transfer limits. If the wallet rejects the amount, report the wallet error directly.
  • Use
    top-up
    for market recharge because it creates the order, transfers CKB, and submits the tx hash as one flow.
  • Use
    retry-orders
    when transfer likely succeeded but market-side submission or finalization did not complete cleanly.
  • Use
    logout
    to clear stale local market auth state.
使用以下命令修改状态:
bash
superise market-sustain top-up <amount>
superise market-sustain top-up <amount> --json
superise market-sustain retry-orders --json
superise market-sustain setup openclaw
superise market-sustain setup openclaw --json
superise market-sustain setup openclaw --tick-every 5m --retry-every 10m --session isolated
superise market-sustain config set <key> <value>
superise market-sustain config unset <key>
superise market-sustain config reset
superise market-sustain logout
遵循以下规则:
  • 根据用户意图和当前余额状况选择充值金额。
  • 由钱包端策略执行转账限额。如果钱包拒绝该金额,直接报告钱包错误。
  • 使用
    top-up
    命令进行市场账户充值,因为它会将创建订单、转账CKB和提交交易哈希整合为一个流程。
  • 当转账可能已成功但市场端提交或确认未正常完成时,使用
    retry-orders
    命令。
  • 使用
    logout
    命令清除本地过期的市场认证状态。

Survival Loop

生存循环

When the user delegates self-supervision:
  1. Run the CLI preflight.
  2. Run
    superise market-sustain health-check --json
    .
  3. Run
    superise market-sustain forecast --json
    .
  4. If balance is low, run
    superise market-sustain list-models --json
    .
  5. If recurring supervision is expected, run
    superise market-sustain setup openclaw
    .
  6. If balance is critical or runway is too short, choose an amount and run
    superise market-sustain top-up <amount>
    .
  7. If the wallet rejects the amount, report the wallet-side limit or policy instead of inventing local rules.
  8. If a recharge looked partial, run
    superise market-sustain retry-orders --json
    .
  9. Report the decision and the reason.
当用户委托自我监控职责时:
  1. 执行CLI预检查。
  2. 运行
    superise market-sustain health-check --json
    命令。
  3. 运行
    superise market-sustain forecast --json
    命令。
  4. 如果余额较低,运行
    superise market-sustain list-models --json
    命令。
  5. 如果需要定期监控,运行
    superise market-sustain setup openclaw
    命令。
  6. 如果余额危急或运行时长过短,选择合适金额并运行
    superise market-sustain top-up <amount>
    命令。
  7. 如果钱包拒绝该金额,报告钱包端的限额或策略,不要自行制定本地规则。
  8. 如果充值看起来未完全完成,运行
    superise market-sustain retry-orders --json
    命令。
  9. 报告你的决策及原因。

Sustain Config For Decisions

用于决策的监控配置

The agent should not invent hidden sustain policy. Inspect the configured thresholds first:
bash
superise market-sustain config show
superise market-sustain config get criticalBalance
superise market-sustain config get lowBalance
superise market-sustain config get requestTimeoutMs
If the user gives an explicit policy like "treat anything below 20 as critical", update config:
bash
superise market-sustain config set criticalBalance 20
superise market-sustain config set lowBalance 100
Do not invent local recharge bounds. Wallet-side policy is authoritative for transfer limits.
Agent不应自行制定隐藏的监控策略。应先检查已配置的阈值:
bash
superise market-sustain config show
superise market-sustain config get criticalBalance
superise market-sustain config get lowBalance
superise market-sustain config get requestTimeoutMs
如果用户给出明确策略,比如“treat anything below 20 as critical”,则更新配置:
bash
superise market-sustain config set criticalBalance 20
superise market-sustain config set lowBalance 100
不要自行制定本地充值限额,钱包端策略是转账限额的权威依据。

How To Choose A Top-Up Amount

充值金额选择方法

The amount is still the agent's decision unless the user gave one explicitly.
Use:
  • current balance from
    superise market-sustain health-check --json
  • runway from
    superise market-sustain forecast --json
  • the user's current activity level and tolerance for interruption
  • any wallet-side limit or rejection message returned during recharge
Guidelines:
  • Do not always choose the smallest possible amount.
  • Prefer enough runway for the user's near-term usage.
  • If the user is actively relying on the agent, bias toward fewer future interruptions.
  • If the wallet rejects the amount, surface the exact rejection and adjust from there.
除非用户明确指定金额,否则充值金额由Agent决定。
参考以下信息:
  • superise market-sustain health-check --json
    获取当前余额
  • superise market-sustain forecast --json
    获取运行时长
  • 用户当前的活动水平和对中断的容忍度
  • 充值过程中钱包返回的任何限额或拒绝信息
指导原则:
  • 不要总是选择最小可能的金额。
  • 优先选择能覆盖用户近期使用需求的金额,确保足够的运行时长。
  • 如果用户正依赖Agent工作,应尽量减少未来的中断次数。
  • 如果钱包拒绝该金额,显示具体的拒绝信息并据此调整。

Scheduled Runs

定时任务

When the user asks for recurring monitoring, automatic keepalive, or a timed sustain loop:
  • Prefer
    superise market-sustain setup openclaw
    for one-click recurring sustain setup when OpenClaw is available.
  • The default setup installs two jobs: a keepalive review loop and a retry-orders loop.
  • Use
    --tick-every
    ,
    --retry-every
    , and
    --session
    if the user asks for a different cadence or OpenClaw target.
  • Keep the scheduled loop focused on observe -> decide -> act, not on ad hoc wallet transfers.
  • Only rely on automatic
    top-up
    inside the scheduled loop when the user explicitly delegated autonomous recharge.
  • If OpenClaw is unavailable or the user explicitly wants app-managed scheduling, fall back to app automation instead.
Default OpenClaw setup:
bash
superise market-sustain setup openclaw
Customized OpenClaw setup:
bash
superise market-sustain setup openclaw --tick-every 15m --retry-every 30m --session isolated
If the user explicitly asks for
--session main
, still use
setup openclaw
, but remember that current OpenClaw requires main-session jobs to be registered as system events instead of announced chat turns.
当用户要求定期监控、自动维持运行或定时监控循环时:
  • 若OpenClaw可用,优先使用
    superise market-sustain setup openclaw
    一键设置定期监控任务。
  • 默认设置会安装两个任务:一个是生存状态检查循环,另一个是订单重试循环。
  • 如果用户要求不同的执行频率或OpenClaw目标,使用
    --tick-every
    --retry-every
    --session
    参数。
  • 定时循环应专注于观察->决策->执行,而非临时钱包转账。
  • 只有当用户明确委托自主充值权限时,才在定时循环中使用自动
    top-up
    命令。
  • 如果OpenClaw不可用或用户明确希望应用托管调度,则 fallback 到应用自动化方案。
默认OpenClaw设置:
bash
superise market-sustain setup openclaw
自定义OpenClaw设置:
bash
superise market-sustain setup openclaw --tick-every 15m --retry-every 30m --session isolated
如果用户明确要求使用
--session main
参数,仍使用
setup openclaw
命令,但需注意当前OpenClaw要求主会话任务需注册为系统事件,而非公开的聊天交互。

Reporting Language

报告语言

When you describe sustain work to the user:
  • Call it a sustain check or survival review.
  • Report the decision, balance, and next action clearly.
  • Prefer concrete outcomes over internal deliberation.
当向用户描述监控工作时:
  • 将其称为“监控检查”或“生存状态评审”。
  • 清晰报告决策、余额和下一步行动。
  • 优先报告具体结果,而非内部 deliberation 过程。

Auth Assumption

认证假设

Market login assumes one of these is true:
  • marketPublicKey
    is configured explicitly, or
  • wallet MCP exposes Nervos public identity through
    nervos.identity
    , including
    address
    and
    publicKey
If wallet MCP does not provide that contract yet, stop and report the wallet-side dependency.
市场登录需满足以下条件之一:
  • 已明确配置
    marketPublicKey
    ,或
  • 钱包MCP通过
    nervos.identity
    暴露Nervos公身份信息,包括
    address
    publicKey
如果钱包MCP尚未提供该合约,停止操作并报告钱包端的依赖需求。