Compare commits
3
Commits
9213022e79
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
46f84e7f98 | ||
|
|
235447e706
|
||
|
|
7ff2da6025 |
Generated
-12
@@ -19,7 +19,6 @@
|
||||
"@xo-cash/templates": "^0.0.4",
|
||||
"@xo-cash/types": "^0.0.5",
|
||||
"@xo-cash/utils": "^0.0.6-cli.20260907041319224",
|
||||
"better-sqlite3": "^12.6.2",
|
||||
"clipboardy": "^5.1.0",
|
||||
"ink": "^6.6.0",
|
||||
"prettier": "^3.8.1",
|
||||
@@ -34,7 +33,6 @@
|
||||
"xo-tui": "dist/index.js"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/better-sqlite3": "^7.6.13",
|
||||
"@types/node": "^25.0.10",
|
||||
"@types/qrcode": "^1.5.6",
|
||||
"@types/react": "^19.2.14",
|
||||
@@ -632,16 +630,6 @@
|
||||
"node": ">= 6"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/better-sqlite3": {
|
||||
"version": "7.6.13",
|
||||
"resolved": "https://registry.npmjs.org/@types/better-sqlite3/-/better-sqlite3-7.6.13.tgz",
|
||||
"integrity": "sha512-NMv9ASNARoKksWtsq/SHakpYAYnhBrQgGD8zkLYk/jaK8jUGn08CfEdTRgYhMypUQAfzSP8W6gNLe0q19/t4VA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@types/node": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/chai": {
|
||||
"version": "5.2.3",
|
||||
"resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz",
|
||||
|
||||
@@ -45,7 +45,6 @@
|
||||
"@xo-cash/templates": "^0.0.4",
|
||||
"@xo-cash/types": "^0.0.5",
|
||||
"@xo-cash/utils": "^0.0.6-cli.20260907041319224",
|
||||
"better-sqlite3": "^12.6.2",
|
||||
"clipboardy": "^5.1.0",
|
||||
"ink": "^6.6.0",
|
||||
"prettier": "^3.8.1",
|
||||
@@ -55,7 +54,6 @@
|
||||
"zod": "^4.3.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/better-sqlite3": "^7.6.13",
|
||||
"@types/node": "^25.0.10",
|
||||
"@types/qrcode": "^1.5.6",
|
||||
"@types/react": "^19.2.14",
|
||||
|
||||
@@ -2,114 +2,18 @@
|
||||
|
||||
## Installation
|
||||
|
||||
### Full Installation
|
||||
|
||||
```bash
|
||||
# Create a new directory since we are going to be pulling in engine too
|
||||
mkdir xo-terminal && cd xo-terminal
|
||||
|
||||
# ----- Start State Setup -----
|
||||
# Clone the State Repo
|
||||
git clone https://gitlab.com/Harvmaster/state.git
|
||||
|
||||
# Move into the state directory
|
||||
cd state
|
||||
|
||||
git checkout cli-test
|
||||
|
||||
# Install the dependencies
|
||||
npm ci
|
||||
|
||||
# Build the state
|
||||
npm run build
|
||||
# ----- End State Setup -----
|
||||
|
||||
# Move back to the top level directory
|
||||
cd ..
|
||||
|
||||
# ----- Start Primitive Setup -----
|
||||
git clone git@gitlab.com:GeneralProtocols/xo/primitives.git
|
||||
|
||||
cd primitives
|
||||
|
||||
git checkout update/syncup-ui-requirements
|
||||
|
||||
npm ci
|
||||
|
||||
npm run build
|
||||
|
||||
# ----- End Primitive Setup -----
|
||||
|
||||
# Move back to the top level directory
|
||||
cd ..
|
||||
|
||||
# ----- Start Utils Setup -----
|
||||
git clone git@gitlab.com:Harvmaster/xo-cash-utils.git utils
|
||||
|
||||
cd utils
|
||||
|
||||
git checkout sse-and-backoff
|
||||
|
||||
npm ci
|
||||
|
||||
npm run build
|
||||
# ----- End Utils Setup
|
||||
|
||||
# Move back to the top level directory
|
||||
cd ..
|
||||
|
||||
# ----- Start Template Setup ----
|
||||
# Clone the Template repo
|
||||
git clone https://gitlab.com/Harvmaster/templates.git
|
||||
|
||||
# Move into themplates directory
|
||||
cd templates
|
||||
|
||||
# Install deps
|
||||
npm ci
|
||||
|
||||
#build the templates
|
||||
npm run build
|
||||
# ----- End Templates Setup ----
|
||||
|
||||
# Move back to the top level directory
|
||||
cd ..
|
||||
|
||||
# ----- Start Engine Setup -----
|
||||
# Clone the Engine Repo (Note, this uses harvey's fork of the engine repo to access the cli-test branch)
|
||||
git clone https://gitlab.com/Harvmaster/engine.git
|
||||
|
||||
# Move into teh engine directory
|
||||
cd engine
|
||||
|
||||
# Checkout the cli-test branch
|
||||
git checkout cli-test-update
|
||||
|
||||
# Install the dependencies
|
||||
npm ci
|
||||
|
||||
# Build the engine
|
||||
npm run build
|
||||
# ----- End Engine Setup -----
|
||||
|
||||
# Move back to the top level directory
|
||||
cd ..
|
||||
|
||||
# ----- Start CLI Setup -----
|
||||
# Clone the CLI Repo
|
||||
git clone https://git.harvmaster.com/Harvmaster/xo-cli.git
|
||||
|
||||
# Move into the cli directory
|
||||
cd xo-cli
|
||||
|
||||
git checkout kiok-update
|
||||
|
||||
# Install the dependencies
|
||||
npm ci
|
||||
|
||||
# Build the cli
|
||||
npm run build
|
||||
# ----- End CLI Setup -----
|
||||
# Run the CLI
|
||||
npm run dev
|
||||
```
|
||||
|
||||
### Run TUI in dev mode
|
||||
@@ -118,6 +22,8 @@ npm run build
|
||||
npm run dev
|
||||
```
|
||||
|
||||
# Not fully tested past this point
|
||||
|
||||
### Install globally
|
||||
|
||||
```bash
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Database from "better-sqlite3";
|
||||
import { DatabaseSync } from 'node:sqlite'
|
||||
import { deserializeInvitation, serializeInvitation } from "@xo-cash/engine";
|
||||
import type { XOInvitation } from "@xo-cash/types";
|
||||
|
||||
@@ -22,7 +22,7 @@ export abstract class BaseStorage {
|
||||
export class Storage extends BaseStorage {
|
||||
static async create(dbPath: string): Promise<Storage> {
|
||||
// Create the database
|
||||
const database = new Database(dbPath);
|
||||
const database = new DatabaseSync(dbPath);
|
||||
|
||||
// Create the storage table if it doesn't exist
|
||||
database
|
||||
@@ -35,7 +35,7 @@ export class Storage extends BaseStorage {
|
||||
}
|
||||
|
||||
constructor(
|
||||
private readonly database: Database.Database,
|
||||
private readonly database: DatabaseSync,
|
||||
private readonly basePath: string,
|
||||
) {
|
||||
super();
|
||||
|
||||
Reference in New Issue
Block a user