Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .changeset/first-release.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/script-free-install.md

This file was deleted.

2 changes: 1 addition & 1 deletion apps/docs/content/docs/skill.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ Full inputs/outputs are discoverable with `schema`; amounts/prices are strings.
| `revoke --cancel-orders` | `{"ok":true,"data":{"locallyRevoked":true,"exchangeRevoked":false,"requiresSignature":true,"approval":{}}}` |
| `revoke --signature 0x...` | `{"ok":true,"data":{"locallyRevoked":true,"exchangeRevoked":true}}` |
| `audit --intent ID` | `{"ok":true,"data":[{"intentId":"ID","stage":"decision","data":{"allowed":true},"previousHash":"...","hash":"..."}]}` |
| `skill install --target codex` | `{"ok":true,"data":{"target":"codex","path":".../agent-cli/SKILL.md","version":"0.1.0"}}` |
| `skill install --target codex` | `{"ok":true,"data":{"target":"codex","path":".../agent-cli/SKILL.md","version":"0.2.0"}}` |

Before an order, query `market --coin BTC` for `mid`, `szDecimals`, asset and
market leverage ceiling. Compute size/notional with decimal strings/bigints,
Expand Down
4 changes: 4 additions & 0 deletions docs/PROGRESS.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,7 @@ configured. GitHub also rejected the repository's Actions PR setting with an
organization-policy 409; version dispatch therefore defaults to an uploaded
reviewable patch. No production user credentials, package publication or live
account trading were used for this review.

The validated version-patch workflow prepared 0.2.0, consuming the pending
changesets and synchronizing package/lock/skill versions and generated docs.
This is release preparation; public npm installation/provenance is still pending.
5 changes: 2 additions & 3 deletions docs/releases.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ and synchronize the packaged skill version. By default it regenerates the docs,
validates build, lint, typecheck, tests and docs checks, then uploads a reviewable
`version.patch` artifact. Apply that
patch on a fresh branch at the run's revision and open the version PR yourself;
alternatively run `npm run version:packages` locally and create the PR. With the
current pending first-release changeset, the next stable version is **0.2.0**,
not 0.1.0.
alternatively run `npm run version:packages` locally and create the PR. Read the
resulting CLI package version and changelog to select the matching release tag.

The optional `create_pr=true` input uses Changesets to create the version PR after
the same validation. This needs GitHub Actions' permission to create pull requests.
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions packages/agent-cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @bloxwap/agent-cli

## 0.2.0

### Minor Changes

- a04a6c7: Add managed Hyperliquid agents, Relay funding, JSON commands, a persistent runner,
risk checks, durable events/audit journals, and the packaged trading skill.

### Patch Changes

- db928e2: Ship license, changelog and repository metadata with the CLI. Verify script-free
global npm installs and installed bunx execution on macOS/Linux and Node 22.12/24.

## 0.1.0

Initial implementation of managed-agent trading, funding and persistent runner.
Expand Down
4 changes: 2 additions & 2 deletions packages/agent-cli/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: agent-cli
description: Operate the agent-cli Hyperliquid trading CLI, including managed-agent onboarding, funding, orders, event monitoring, rotation, and normalized error recovery.
metadata:
version: "0.1.0"
version: "0.2.0"
---

Use `agent-cli` for the user's authorized Hyperliquid account operations. Obtain
Expand Down Expand Up @@ -102,7 +102,7 @@ Full inputs/outputs are discoverable with `schema`; amounts/prices are strings.
| `revoke --cancel-orders` | `{"ok":true,"data":{"locallyRevoked":true,"exchangeRevoked":false,"requiresSignature":true,"approval":{}}}` |
| `revoke --signature 0x...` | `{"ok":true,"data":{"locallyRevoked":true,"exchangeRevoked":true}}` |
| `audit --intent ID` | `{"ok":true,"data":[{"intentId":"ID","stage":"decision","data":{"allowed":true},"previousHash":"...","hash":"..."}]}` |
| `skill install --target codex` | `{"ok":true,"data":{"target":"codex","path":".../agent-cli/SKILL.md","version":"0.1.0"}}` |
| `skill install --target codex` | `{"ok":true,"data":{"target":"codex","path":".../agent-cli/SKILL.md","version":"0.2.0"}}` |

Before an order, query `market --coin BTC` for `mid`, `szDecimals`, asset and
market leverage ceiling. Compute size/notional with decimal strings/bigints,
Expand Down
2 changes: 1 addition & 1 deletion packages/agent-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bloxwap/agent-cli",
"version": "0.1.0",
"version": "0.2.0",
"type": "module",
"bin": {
"agent-cli": "dist/cli.js"
Expand Down
4 changes: 3 additions & 1 deletion packages/agent-cli/scripts/sync-skill-version.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ const { version } = JSON.parse(readFileSync('package.json', 'utf8'));
const skill = readFileSync('SKILL.md', 'utf8');
writeFileSync(
'SKILL.md',
skill.replace(/(metadata:\n version: )"[^"]+"/, `$1"${version}"`),
skill
.replace(/(metadata:\n version: )"[^"]+"/, `$1"${version}"`)
.replace(/("version":")\d+\.\d+\.\d+(")/g, `$1${version}$2`),
);
4 changes: 2 additions & 2 deletions packages/agent-cli/src/core/skill-content.ts

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions packages/agent-cli/test/skill.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ test('skill frontmatter and embedded source match the published skill', async ()
expect(frontmatter![1]).toMatch(/^name: agent-cli$/m);
expect(frontmatter![1]).toMatch(/^description: [^\n:]+$/m);
expect(frontmatter![1]).toContain(` version: "${packageInfo.version}"`);
expect(source).toContain(`"version":"${packageInfo.version}"`);
for (const code of Object.keys(errorDefaults)) expect(source).toContain(code);
for (const required of [
'8 decimals', '6', 'two distinct signatures', '180 days',
Expand Down
Loading