gitoriaLog in with ident

ident

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitff78726cff78726cident: Hybriel master 190aa11d (fc838894 GC correctness, #127, #126 closure scopes); gates all greenmreff78726c/tools/dump-store.hl

1.3 KB

  1. // tools/dump-store.hl — every row of every ident table as ONE JSON object on stdout
  2. // ({ accounts: [...], identities: [...], ... }). hl:mpackdb rewrites a table's files when
  3. // it opens them (hybriel #40): ONLY EVER RUN IT ON A COPY —
  4. // cp -a storage/mpackdb /tmp/x && IDENT_STORAGE=/tmp/x bin/hybriel tools/dump-store.hl
  5. // The output holds apps' secret HASHES and API keys: keep it in .scratch, don't paste it.
  6. import { env } from 'hl:proc'
  7. import { dir, accountsTable, identitiesTable, otpTable, sendsTable, ipSendsTable, countOf } from '../store.hl'
  8. import { appsTable, connectionsTable, requestsTable, grantsTable } from '../apps.hl'
  9. import { kindsTable, settingsTable, notificationsTable } from '../notify.hl'
  10. if (env('IDENT_STORAGE') == null || !env('IDENT_STORAGE').startsWith('/')) { hlError('set IDENT_STORAGE to an ABSOLUTE copy of storage/mpackdb') }
  11. static rows = (t) => {
  12. let out = []
  13. let f = t.find(null, null)
  14. if (countOf(f) > 0) { for (r of f) { out.push(r) } }
  15. return out
  16. }
  17. console.log(JSON.stringify({ accounts = rows(accountsTable) identities = rows(identitiesTable) otp = rows(otpTable) sends = rows(sendsTable) ipsends = rows(ipSendsTable) apps = rows(appsTable) connections = rows(connectionsTable) requests = rows(requestsTable) grants = rows(grantsTable) kinds = rows(kindsTable) settings = rows(settingsTable) notifications = rows(notificationsTable) }))

Branches

Latest commits

  • ff78726cident: Hybriel master 190aa11d (fc838894 GC correctness, #127, #126 closure scopes); gates all greenmre
  • a3a7d21aident: Hybriel master 8efba065 (#126 GC by bytes, #48 lambda params copy); session-writing lambdas take &sessionmre
  • 98226b41antcolony#40: mission references point to the moved missionsmre
  • ff805b9aantcolony#40: history (LOG.md), worker briefs (missions/) and reports moved here from antcolony, numbered per project; old numbers in antcolony docs/mission-map.mdmre
  • 51a7bcdfident: Hybriel master 73267707 (#122); /code uses the new page() signature; pending address passed as parameter; once-checksmre
  • 836f644fident#24: installable app (manifest, service worker, data-free offline /start), own iconmre
  • 8bebbbf2deploy.sh: back up live storage/.sessions/.env before every deploy (newest 5 kept)mre
  • cc063ea2deploy.sh: never send .git or .gitignore to Byrodinmre
  • 81b15b7bState of 2026-09-27, before the move to gitoriamre