moneyos 0.6.1 → 0.6.2

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,35 @@
2
2
 
3
3
  All notable changes to the repo's current `main` branch are documented here.
4
4
 
5
+ ## 0.6.2 - 2026-04-16
6
+
7
+ Fixes the broken `npm install -g moneyos` path reported in #114.
8
+
9
+ ### Fixed
10
+
11
+ - `npm install -g moneyos` no longer ships with an empty `node_modules/viem/`
12
+ and no longer crashes with `ERR_MODULE_NOT_FOUND` before the CLI can print
13
+ `--help`. Root cause was `@moneyos/gasless` being bundled inside the moneyos
14
+ tarball while declaring `viem` as a peerDependency, which npm mishandles on
15
+ global install. The smart-account package is now published standalone as
16
+ `@moneyos/smart-account` and no longer bundled, so `viem` resolves normally
17
+ as a top-level sibling. See #114 and #118.
18
+
19
+ ### Changed
20
+
21
+ - `@moneyos/gasless` has been renamed to
22
+ [`@moneyos/smart-account`](https://www.npmjs.com/package/@moneyos/smart-account)
23
+ and is now a standalone npm package. The new name reflects the package's
24
+ actual surface: smart-account contracts, EIP-712 intent signing, nonce lanes,
25
+ and the gasless relay client are all included — gasless execution is one
26
+ capability built on those primitives. The `moneyos gasless` CLI command,
27
+ `config.gasless` key, and `MONEYOS_GASLESS_*` env vars all keep their names;
28
+ only the underlying package was renamed.
29
+ - Root `moneyos` tarball shrinks from 180KB to 143KB now that the smart-account
30
+ code lives in its own package alongside `viem` and other deps.
31
+ - `scripts/release-verify.mjs` now includes a `npm install -g` smoke test that
32
+ would have caught the 0.6.0 and 0.6.1 regressions before they shipped.
33
+
5
34
  ## 0.6.1 - 2026-04-16
6
35
 
7
36
  Patch release rolling up the gasless swap UX fixes from #101, #102, #108, and #110.
@@ -19,7 +48,7 @@ Patch release rolling up the gasless swap UX fixes from #101, #102, #108, and #1
19
48
  message (e.g. `Gasless swap failed: ERC20: transfer amount exceeds balance
20
49
  [simulation_failed]`) instead of the generic
21
50
  `Relay accepted intent without txHash` (#105, #110).
22
- - `@moneyos/gasless` exports a typed `GaslessRelayError` class that carries
51
+ - `@moneyos/smart-account` exports a typed `GaslessRelayError` class that carries
23
52
  `revertReason`, `policyCode`, `reason`, and `submissionId` for callers that
24
53
  want to react programmatically to relay rejections (#110).
25
54
  - Local session executor submits the `approve` + `swap` pair as a single atomic
@@ -33,7 +62,7 @@ Gasless execution, local contacts, and a wave of wallet UX cleanup.
33
62
  ### Added
34
63
 
35
64
  - Gasless execution mode, opt-in and default-off. `moneyos gasless status|enable|disable` routes write commands through a smart-account executor instead of the owner EOA. The relay sponsors gas; the smart account still has to hold the asset being sent or swapped. Arbitrum One is the v1 target, with baked defaults for the relay URL, sponsor, factory, and derived smart-account address so `moneyos gasless enable` works out of the box.
36
- - Smart-account primitives shipped inside the new `@moneyos/gasless` workspace package: `MoneyOSAccountV1`, `MoneyOSAccountFactoryV1` with deterministic CREATE2 deployment, EIP-712 `IntentV1`, ERC-1271 owner-only validation, and replay-safe signer-scoped nonce lanes. The package is bundled inside the published root `moneyos` tarball and is not published to npm on its own.
65
+ - Smart-account primitives shipped inside the new `@moneyos/smart-account` workspace package: `MoneyOSAccountV1`, `MoneyOSAccountFactoryV1` with deterministic CREATE2 deployment, EIP-712 `IntentV1`, ERC-1271 owner-only validation, and replay-safe signer-scoped nonce lanes. The package is bundled inside the published root `moneyos` tarball and is not published to npm on its own.
37
66
  - Hosted gasless relay at `services/relay/` — Fastify HTTP app with `POST /v1/execute`, `GET /v1/capabilities`, `GET /v1/tx/:id`; SQLite persistence for nonce reservations, submissions, and usage counters; nonce/simulation/treasury/wallet/health gates; submission adapter with `deployAndExecute` for undeployed smart accounts; kill switch; deploy artifacts for macOS launchd, Linux systemd, and Docker.
38
67
  - Local contacts address book. `moneyos contact set|list|remove` stores `name → address` pairs in `~/.moneyos/contacts.json` with 0600 permissions. `moneyos send <amount> <token> <name>` now accepts either a 0x address or a saved contact name, and prints the resolved address before execution so the recipient is always visible.
39
68
  - `moneyos update [tool] [--check]` for updating installed MoneyOS CLI tools from the user tool home.
package/README.md CHANGED
@@ -12,7 +12,7 @@ but the repo is structured so each major surface can evolve independently.
12
12
 
13
13
  - `moneyos`: the root SDK + CLI package for runtime, wallet, balance, and send
14
14
  - `@moneyos/core`: runtime interfaces, shared types, chain/token registries
15
- - `@moneyos/gasless`: smart-account contracts, intent helpers, gasless executor, relay client, and baked Arbitrum defaults
15
+ - `@moneyos/smart-account`: smart-account contracts, intent helpers, gasless executor, relay client, and baked Arbitrum defaults
16
16
  - `@moneyos/swap`: canonical swap package and Odos provider, published on npm
17
17
  - `services/relay`: the hosted relay service that sponsors gas for the gasless path
18
18
 
@@ -268,7 +268,7 @@ Published packages:
268
268
  - `@moneyos/core`
269
269
  - `@moneyos/swap`
270
270
 
271
- `@moneyos/gasless` exists in this repo but is not published to npm yet.
271
+ `@moneyos/smart-account` exists in this repo but is not published to npm yet.
272
272
 
273
273
  Current `moneyos` releases no longer bundle swap into the root SDK or CLI. If
274
274
  you want swap from the root CLI, install `moneyos` and then run
package/dist/cli/index.js CHANGED
@@ -653,7 +653,7 @@ import {
653
653
  GaslessExecutor,
654
654
  RelayClient,
655
655
  moneyOSAccountV1Abi
656
- } from "@moneyos/gasless";
656
+ } from "@moneyos/smart-account";
657
657
  import { createPublicClient, http } from "viem";
658
658
 
659
659
  // packages/core/dist/index.js
@@ -1953,7 +1953,7 @@ async function connectLocalSession(options = {}) {
1953
1953
  import {
1954
1954
  deriveDefaultGaslessAccount,
1955
1955
  getGaslessNetworkDefaults
1956
- } from "@moneyos/gasless";
1956
+ } from "@moneyos/smart-account";
1957
1957
  var GASLESS_ENABLED_ENV = "MONEYOS_GASLESS_ENABLED";
1958
1958
  var GASLESS_RELAY_URL_ENV = "MONEYOS_GASLESS_RELAY_URL";
1959
1959
  var GASLESS_ACCOUNT_ENV = "MONEYOS_GASLESS_ACCOUNT";
@@ -2823,7 +2823,7 @@ contactCommand.command("remove").description("Remove a saved contact").argument(
2823
2823
 
2824
2824
  // src/cli/commands/gasless.ts
2825
2825
  import { Command as Command8 } from "commander";
2826
- import { getGaslessNetworkDefaults as getGaslessNetworkDefaults2 } from "@moneyos/gasless";
2826
+ import { getGaslessNetworkDefaults as getGaslessNetworkDefaults2 } from "@moneyos/smart-account";
2827
2827
  function formatEnabled(enabled) {
2828
2828
  return enabled ? "enabled" : "disabled";
2829
2829
  }