aboutsummaryrefslogtreecommitdiffstats
path: root/package.json
Commit message (Collapse)AuthorAgeFilesLines
* names: /migrate-grant needs a fresh v3 hand-off stamp from coinos.io.Adam Soltys3 days1-1/+1
| | | | | | | "Fix the gap" (Adam, 2026-12-02). The reverted check keyed on `migrated`, which coinos.io has set on every new account since 2023, so it stopped nothing (c851718). coinos-server 796999cb now records `v3migrated`, a timestamp set only when an account's own session posts the hand-off, and shows it on /api/users/<name>. The grant follows within seconds, so it goes ahead only when that stamp is under 5 minutes old. That is the same proof as carrying the old account's session to /api/me, without sending coinos.io JWTs (no expiry, no revocation) to this host. A name handed over earlier can't be re-granted to a different key unless its owner hands it over again. Refused: stale, future-dated or missing stamp (409); no such account (404); coinos.io unreachable (502, the caller retries). migrate-check.test.js runs in `bun run test` (18 pass). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VMan6SSfVopM1ZzXKZmLYU
* names restarts itself when the Lightning node's socket goes stale. "tried to ↵Adam Soltys2026-11-201-1/+1
| | | | | | | zap pnk but it said names.coinos.io could not create an invoice" (Adam, 2026-11-20). bcln was recreated at 04:26Z; names has the node's socket file mounted, the mount kept pointing at the old file, and every @coinos.io LNURL invoice failed with ECONNREFUSED for four and a half hours until names was restarted by hand. The same thing cost 13 hours on 2026-11-11. The socket client now counts refused connections: after a minute of nothing but refusals (ten minutes if this process never reached the node, so a node that is down doesn't restart names in a loop) names logs it and exits, and docker's restart mounts the new socket. Only the mainnet node does this; the mutinynet one is left alone. New bridge/ln.test.js passes (4 checks), with the store and forget tests. Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_01VMan6Upic5L6MMJzkTn8zg
* names: delete my account. "someone's asking for a way to delete their v3 ↵Adam Soltys2026-11-101-1/+1
| | | | | | | account. we allowed that in v2. i guess we'd want to free up the name once the deletion is done and remove any records we have on them on the server" (Adam, 2026-11-10). POST /account/delete, NIP-98 signed: the signer's account is its key, the names it owns or manages, and those names' other key (a login identity's name is kept by its wallet's key). Everything filed under them goes: the names (DNS record, node offer), custom offers, POS tokens and sales, hats and hat invoices, the welcome mark, Lightning receipts, migration grants (which would otherwise keep the name reserved for the key that left), queued webhooks, closed and never-funded withdraw links. Then the notifier is told (POST /forget with the shared notify token): the devices registered to be told about those keys lose their registrations, NWC wakes included, and the keys' scheduled posts are dropped. Money is never deleted: while sats are queued, parked or in flight to them, or an open withdraw link of theirs still holds some, the answer is 409 "funds" with the amounts; { check: true } asks without doing. Kept: what stops a payment being made twice (delivered, withdrawPaid, inflight) and the unpaid-invoice map, which ages out in a week. names/forget.js + forget.test.js; run against both real services on throwaway state Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_01VMan6V74NSFWZtNtgCfokN
* README, example config and the deploy hookAdam Soltys2026-10-161-1/+5
| | | | Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Make this the coinosv3-server repo: the services, with coinosv3 pinnedAdam Soltys2026-10-161-0/+20
Carved out of coinosv3 (names, feed, nwcpush, blossom, vmedia, bridge and their tests, with history). The shared wallet code they import (src/ark, noffer, bolt12, popular-feed) now comes from a coinosv3 submodule pinned at 082fc2e, the commit the services have actually run on, so moving here changes no behaviour; bumping it is its own commit. The two text helpers translation uses arrived on the server later than that commit and are vendored under names/vendor at the versions deployed, until the pin moves past them. Root package.json pins the npm versions installed on the server. compose.yml runs names, nwcpush and blossom from this checkout (read-only) with configs and state under $STATE, outside the repo, and pins the Bun image. Co-Authored-By: Claude Opus 5.5 <[email protected]>