@cogcoin/client 1.1.12 → 1.1.14

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/README.md CHANGED
@@ -1,16 +1,22 @@
1
1
  # `@cogcoin/client`
2
2
 
3
- `@cogcoin/client@1.1.12` is the reference Cogcoin client package for applications that want a local wallet, durable SQLite-backed state, and a managed Bitcoin Core integration around `@cogcoin/indexer`. It publishes the reusable client APIs, the SQLite adapter, the managed `bitcoind` integration, and the first-party `cogcoin` CLI in one package.
3
+ `@cogcoin/client@1.1.14` is the reference Cogcoin client package for applications that want a local wallet, durable SQLite-backed state, and a managed Bitcoin Core integration around `@cogcoin/indexer`. It publishes the reusable client APIs, the SQLite adapter, the managed `bitcoind` integration, and the first-party `cogcoin` CLI in one package.
4
4
 
5
5
  Use Node 22 or newer.
6
6
 
7
7
  ## Quick Start
8
8
 
9
- Install the package:
9
+ Install Cogcoin:
10
10
 
11
11
  ```bash
12
- npm install -g @cogcoin/client
13
- cogcoin init
12
+ curl -fsSL https://cogcoin.org/install.sh | bash
13
+ # or on Windows PowerShell:
14
+ powershell -NoProfile -ExecutionPolicy Bypass -Command "irm https://cogcoin.org/install.ps1 | iex"
15
+
16
+ # The installer provisions and uses a Cogcoin-managed Node.js runtime.
17
+ # On macOS, Homebrew is only used if it is already installed and bootstrap tools are missing.
18
+ # `cogcoin init` starts automatically in an interactive terminal and continues into sync.
19
+ # If macOS Command Line Tools are still installing, the installer prints an exact resume command.
14
20
  cogcoin address # Send 0.0015 BTC to address
15
21
  cogcoin register <domainname> # 6+ character domain for 0.001 BTC
16
22
  cogcoin anchor <domainname> # You can leave a founding message permanently on Bitcoin!
@@ -23,7 +23,9 @@ async function ensureMiningProviderSetup(options) {
23
23
  paths: options.runtimePaths,
24
24
  });
25
25
  if (!setupReady) {
26
- throw new Error("Built-in mining provider is not configured. Run `cogcoin mine setup`.");
26
+ throw new Error(options.prompter.isInteractive
27
+ ? "Built-in mining provider is not configured. Run `cogcoin mine setup`."
28
+ : "mine_setup_requires_tty");
27
29
  }
28
30
  }
29
31
  function sleep(ms, signal) {
@@ -160,7 +160,8 @@ export async function ensureBuiltInMiningSetupIfNeeded(options) {
160
160
  path: options.paths.clientConfigPath,
161
161
  provider: options.provider,
162
162
  }).catch(() => null);
163
- if (config?.mining.builtIn !== null) {
163
+ const builtInConfig = config?.mining?.builtIn ?? null;
164
+ if (builtInConfig !== null) {
164
165
  return true;
165
166
  }
166
167
  if (options.prompter.isInteractive === false) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cogcoin/client",
3
- "version": "1.1.12",
3
+ "version": "1.1.14",
4
4
  "description": "Store-backed Cogcoin client with wallet flows, SQLite persistence, and managed Bitcoin Core integration.",
5
5
  "license": "MIT",
6
6
  "type": "module",