Compare commits
5
Commits
b7bedc5476
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
46f84e7f98 | ||
|
|
235447e706
|
||
|
|
7ff2da6025 | ||
|
|
9213022e79 | ||
|
|
883b3cd389 |
Generated
+29
-35
@@ -16,10 +16,9 @@
|
||||
"@xo-cash/crypto": "^0.0.2",
|
||||
"@xo-cash/engine": "^0.0.2-cli.20260907103534754",
|
||||
"@xo-cash/state": "^0.0.3",
|
||||
"@xo-cash/templates": "^0.0.3",
|
||||
"@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",
|
||||
@@ -1166,9 +1154,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@xo-cash/engine": {
|
||||
"version": "0.0.2-cli.20260907103534754",
|
||||
"resolved": "https://verdaccio.harvmaster.com/@xo-cash/engine/-/engine-0.0.2-cli.20260907103534754.tgz",
|
||||
"integrity": "sha512-HcR5uECJ1SRLZaCfzCsSGTUMmeU4v7dMVgiLhxdbBLUFEUYKEax5bX1BuKrfaqp7+FlN772skK/rAt6TzuKFfQ==",
|
||||
"version": "0.0.2-test.20260907033538062",
|
||||
"resolved": "https://verdaccio.harvmaster.com/@xo-cash/engine/-/engine-0.0.2-test.20260907033538062.tgz",
|
||||
"integrity": "sha512-DbvwuPuHVdcyZQ004hsvry6plR4GozLI9wHesctqwthQqQaF7H6XS2yCbx8559emr8Rzgtzsio2AK5gR5xSMdw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@bitauth/libauth": "^3.1.0-next.8",
|
||||
@@ -1181,7 +1169,7 @@
|
||||
"@xo-cash/state": "0.0.3",
|
||||
"@xo-cash/templates": "0.0.3",
|
||||
"@xo-cash/types": "0.0.5",
|
||||
"@xo-cash/utils": "^0.0.6-cli.20260907035204932",
|
||||
"@xo-cash/utils": "0.0.4",
|
||||
"eventemitter3": "^5.0.1"
|
||||
}
|
||||
},
|
||||
@@ -1197,6 +1185,24 @@
|
||||
"@xo-cash/utils": "0.0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/@xo-cash/engine/node_modules/@xo-cash/templates": {
|
||||
"version": "0.0.3",
|
||||
"resolved": "https://verdaccio.harvmaster.com/@xo-cash/templates/-/templates-0.0.3.tgz",
|
||||
"integrity": "sha512-c+qEwkMzXFS2BSsNW37nGxiR536H3JNGd8wNbNaLAcItLf9EKxpsNDzN0/XG2C961zpA6cXCgmqgvvS038RTtw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@xo-cash/types": "0.0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/@xo-cash/engine/node_modules/@xo-cash/templates/node_modules/@xo-cash/types": {
|
||||
"version": "0.0.4",
|
||||
"resolved": "https://verdaccio.harvmaster.com/@xo-cash/types/-/types-0.0.4.tgz",
|
||||
"integrity": "sha512-XBB/jNC1orDcMUi5Q0g+fnPXdKdb+n7OyqmJ8pxFrfM0y9OAdLjfddMih/JWfOWQtBkvY0CtdaZapgBSrvLeSw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@bitauth/libauth": "^3.1.0-next.8"
|
||||
}
|
||||
},
|
||||
"node_modules/@xo-cash/engine/node_modules/@xo-cash/utils": {
|
||||
"version": "0.0.4",
|
||||
"resolved": "https://verdaccio.harvmaster.com/@xo-cash/utils/-/utils-0.0.4.tgz",
|
||||
@@ -1273,22 +1279,10 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@xo-cash/templates": {
|
||||
"version": "0.0.3",
|
||||
"resolved": "https://verdaccio.harvmaster.com/@xo-cash/templates/-/templates-0.0.3.tgz",
|
||||
"integrity": "sha512-c+qEwkMzXFS2BSsNW37nGxiR536H3JNGd8wNbNaLAcItLf9EKxpsNDzN0/XG2C961zpA6cXCgmqgvvS038RTtw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@xo-cash/types": "0.0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/@xo-cash/templates/node_modules/@xo-cash/types": {
|
||||
"version": "0.0.4",
|
||||
"resolved": "https://verdaccio.harvmaster.com/@xo-cash/types/-/types-0.0.4.tgz",
|
||||
"integrity": "sha512-XBB/jNC1orDcMUi5Q0g+fnPXdKdb+n7OyqmJ8pxFrfM0y9OAdLjfddMih/JWfOWQtBkvY0CtdaZapgBSrvLeSw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@bitauth/libauth": "^3.1.0-next.8"
|
||||
}
|
||||
"resolved": "https://verdaccio.harvmaster.com/@xo-cash/templates/-/templates-0.0.4.tgz",
|
||||
"integrity": "sha512-+JXG4UK5cEswwp+McuEnSO7Vw2/t61+2eS56UMHp8ikkix/bRA4W41vU6kMi+A+5HzOd1fHNd855LpwMvYZWYQ==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@xo-cash/types": {
|
||||
"version": "0.0.5",
|
||||
@@ -1300,9 +1294,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@xo-cash/utils": {
|
||||
"version": "0.0.6-clio.20260907035202101",
|
||||
"resolved": "https://verdaccio.harvmaster.com/@xo-cash/utils/-/utils-0.0.6-clio.20260907035202101.tgz",
|
||||
"integrity": "sha512-DBou0RivCxg4PvyC6eWpFWXsxh2gTSD7BPeYIToqkdjweVzszvsWIUJ8tb27MxL56fW6CbGhDXyElciXEqbQmg==",
|
||||
"version": "0.0.6-cli.20260907041319224",
|
||||
"resolved": "https://verdaccio.harvmaster.com/@xo-cash/utils/-/utils-0.0.6-cli.20260907041319224.tgz",
|
||||
"integrity": "sha512-wqayttoDo+ALE3UFAS/gPgncMxndjC3EW4E/IFLct9jnC1kAbs6ZAfbZvje3XSHxwLjizD2PjtSBP2Io3i/pzQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@bitauth/libauth": "^3.1.0-next.8",
|
||||
|
||||
+1
-3
@@ -42,10 +42,9 @@
|
||||
"@xo-cash/crypto": "^0.0.2",
|
||||
"@xo-cash/engine": "^0.0.2-cli.20260907103534754",
|
||||
"@xo-cash/state": "^0.0.3",
|
||||
"@xo-cash/templates": "^0.0.3",
|
||||
"@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();
|
||||
|
||||
@@ -33,7 +33,7 @@ import {
|
||||
import type { ResolvedInvitationVariable } from '../../../utils/resolve-invitation-data.js'
|
||||
|
||||
import { InvitationImportFlow } from './invitation-import/InvitationImportFlow.js';
|
||||
import { compileCashAssemblyString } from '@xo-cash/engine';
|
||||
import { compileCashAssemblyString } from '@xo-cash/utils';
|
||||
|
||||
/**
|
||||
* Map state color name to theme color.
|
||||
|
||||
Reference in New Issue
Block a user