Skip to content

fix(skill,refund): drop the --raw-key pass-through to selat-pay - #187

Merged
SELAT-DEV merged 1 commit into
mainfrom
fix/remove-raw-key-passthrough
Sep 17, 2026
Merged

SELAT-DEV merged 1 commit into
mainfrom
fix/remove-raw-key-passthrough

Conversation

@SELAT-DEV

Copy link
Copy Markdown
Contributor

What

Remove the --raw-key pass-through from selat skill run and selat refund, plus its help/usage text and the argv.push("--raw-key") in lib/skill-registry.mjs.

Why

selat-pay drops local-key signing in SELAT-AI/selat-pay#92 — every signature goes through the Circle Agent Wallet. Once that releases, forwarding --raw-key would make selat-pay fail with "unknown option".

Tests

  • test/skill-registry.test.mjs: the three --raw-key override tests collapse into one guard — compileStep never emits --raw-key, even when a stale caller passes { rawKey: true }.
  • test/delegating-commands.test.mjs / test/refund.test.mjs: bare-flag passthrough cases re-pointed at --json / --insecure-router.
  • npm test: 584/584.

Sequencing

Merge after selat-pay #92 releases, and bump @selat-ai/selat-pay in the same release. Merging earlier is harmless (the flag just stops being forwarded).

Not in this PR: the raw-key Arc deposit path in lib/commands/fund.mjs (resolveArcDepositEnv → selat-discovery gateway-rawkey.mjs). Circle CLI 1.1.1 now supports gateway deposit --chain ARC --method direct, so that path can be replaced by the standard CLI route — separate PR pair (discovery first).

🤖 Generated with Claude Code

selat-pay no longer has a local-key signing path (SELAT-AI/selat-pay#92),
so 'selat skill run --raw-key' and 'selat refund --raw-key' would forward
an option it rejects. Remove the override, its help/usage text, and the
argv push in skill-registry. One test now guards that compileStep never
emits --raw-key even if a stale caller passes the old override.

Tests: 584/584.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@SELAT-DEV
SELAT-DEV merged commit 3599f30 into main Sep 17, 2026
1 check passed
@SELAT-DEV
SELAT-DEV deleted the fix/remove-raw-key-passthrough branch September 17, 2026 09:02
SELAT-DEV added a commit that referenced this pull request Sep 17, 2026
@selat-ai/selat-pay floor ^0.11.2 -> ^0.12.0 (drops --raw-key; pulls
@circle-fin/x402-batching 3.5.0). Pairs with #187.

Co-authored-by: Karen Sheng <ksherlocked@gmail.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
SELAT-DEV added a commit to SELAT-AI/selat-plugins that referenced this pull request Sep 18, 2026
…s --raw-key, covers Arc (#112)

* docs(selat): SKILL.md no longer describes a --raw-key mode

selat-pay drops local-key signing (SELAT-AI/selat-pay#92) and selat-cli
drops the pass-through (SELAT-AI/selat-cli#187). The skill now says
there is no local-key path and lists two reserved overrides, not three.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* chore: runtime 0.17.5 / 0.26.1 / 0.12.0; plugin 0.1.12; SKILL.md restamped

Runtime closure regenerated for the coordinated release that removed
local-key signing and put Arc deposits on the Circle CLI:
selat-cli 0.17.5, selat-discovery 0.26.1, selat-pay 0.12.0 (both the
plugin's hooks-handlers copy and the Hermes copy; documented pins in
README / guides / install.md resynced by the script).

plugin.json (claude / codex / cursor) and plugins/selat/package.json
0.1.11 -> 0.1.12 so `claude plugin update` actually picks the refresh up.

SKILL.md: verify-against stamps -> 0.17.5 / 0.26.1; the no-local-key
bullet now covers Arc mainnet (agent-wallet deposit, direct only, needs
Circle CLI >= 1.1.1 which `selat init` installs/upgrades automatically).

regenerate-selat-runtime-lock.sh: realpath the temp dir. On macOS $TMPDIR
is a symlink (/var/folders -> /private/var/folders); npm keyed the lock
relative to the unresolved --prefix, so no "node_modules/…" entries
existed and the integrity check always failed locally. CI (Linux /tmp)
never hit it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

---------

Co-authored-by: Karen Sheng <ksherlocked@gmail.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants