Skip to content

Commit 24a1bc3

Browse files
committed
feat: v1.0.6 — version display, partial-fill fix, project-root centralization
## config.ts & paths.ts: dist-detection centralization - Problem: commit 5ab8cce duplicated the dist/modules/ detection logic already present in paths.ts, creating maintenance drift risk. - Solution: both files now use `isDistRuntime()` from `modules/utils/build_dir.ts` — single source of truth for dist layout detection. ## claw/modules/skill_utils.ts: package.json require path - Problem: hardcoded `require('../../package.json')` fragile relative path that bypasses centralized PATHS.PROJECT_ROOT. - Solution: uses `require(path.join(PATHS.PROJECT_ROOT, 'package.json'))`. ## Other changes (from recent commits) - feat: show DEXBot2 version in `node unlock status` (9b3f4f1) - fix: stop misclassifying partial fills as full when rawOnChain cache is stale (7405a29) - fix: rerun hint points at `node unlock` and preserves --dryrun mode (cb7ff3c) ## Version sync - Bumped to 1.0.6 across all manifests (10 files via sync-version.ts) - CHANGELOG.md and EVOLUTION.md updated
1 parent 7405a29 commit 24a1bc3

15 files changed

Lines changed: 41 additions & 30 deletions

File tree

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [1.0.6] - 2026-07-03 - Version Display & Project-Root Centralization
6+
7+
### 2026-07-03
8+
9+
- **Feat**: show DEXBot2 version in `node unlock status` command output — operators can now verify the running version without checking `package.json` (`9b3f4f18`).
10+
- **Fix**: stop misclassifying partial fills as full when `rawOnChain` cache is stale — fill processor now re-queries on-chain state when cached order data is outdated, preventing incorrect order state transitions (`7405a29b`).
11+
- **Fix**: rerun hint in `node dexbot test` now points at `node unlock` and preserves `--dryrun` mode — previous hint referenced the wrong entry point and dropped the dry-run flag (`cb7ff3cf`).
12+
- **Refactor**: centralize project-root dist-detection via `isDistRuntime()``modules/config.ts` and `modules/paths.ts` now use the shared `isDistRuntime()` helper from `modules/utils/build_dir.ts` instead of duplicating inline `path.basename(__dirname) === 'modules' && path.basename(...) === 'dist'` checks (`5ab8cce`, follow-up fix).
13+
- **Fix**: replace hardcoded `require('../../package.json')` in `claw/modules/skill_utils.ts` with `require(path.join(PATHS.PROJECT_ROOT, 'package.json'))` — uses the centralized project root instead of fragile relative path arithmetic (follow-up fix).
14+
- **Chore**: version bumped to 1.0.6 across all manifests.
15+
516
## [1.0.5] - 2026-07-01 - Grid Invariant Enforcement
617

718
### 2026-07-01

analysis/ama_fitting/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ama_fitting",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "Tools for fitting AMA parameters to market data",
55
"main": "../../dist/analysis/ama_fitting/optimizer_high_resolution.js",
66
"scripts": {

claw/modules/skill_utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const { getStorage } = require('../../modules/storage');
22
const storage = getStorage();
33
const { path } = require('../../modules/path_api');
44
const { PATHS } = require('../../modules/paths');
5-
const { version: DEXBOT_VERSION } = require('../../package.json');
5+
const { version: DEXBOT_VERSION } = require(path.join(PATHS.PROJECT_ROOT, 'package.json'));
66

77
export function normalizeRepoRoot(variableName: string, repoRoot?: string) {
88
return path.resolve(repoRoot || PATHS.CLAW.DIR);

claw/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dexbot2-claw",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"private": true,
55
"description": "Claw bridge and runtime integration layer for BitShares and DEXBot2.",
66
"type": "commonjs",

claw/runtimes/openclaw-plugin/openclaw.plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "bitshares-claw",
33
"name": "BitShares Claw",
44
"description": "Native BitShares and DEXBot2 tools from the DEXBot2 claw integration",
5-
"version": "1.0.5",
5+
"version": "1.0.6",
66
"skills": [
77
"skills"
88
],
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "bitshares-claw-openclaw-plugin",
33
"private": true,
4-
"version": "1.0.5",
4+
"version": "1.0.6",
55
"type": "commonjs",
66
"main": "index.js"
77
}

claw/tests/test_claw_mcp_transport.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ async function testParserAcceptsJsonlAcrossChunksAndSingleBuffer() {
3030
capabilities: {},
3131
clientInfo: {
3232
name: 'claw-mcp-transport-test',
33-
version: '1.0.5'
33+
version: '1.0.6'
3434
},
3535
protocolVersion: '2024-11-05'
3636
}
@@ -181,7 +181,7 @@ async function testMainEntrypointHandlesRealProcessInitialize() {
181181
capabilities: {},
182182
clientInfo: {
183183
name: 'claw-mcp-transport-test',
184-
version: '1.0.5'
184+
version: '1.0.6'
185185
},
186186
protocolVersion: '2024-11-05'
187187
}

docs/DEXBOT_COMPARISON.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# DEXBot vs DEXBot2 — Detailed Comparison Report
22

33
> **Date:** 2026-06-16 *(metrics refreshed against local source trees)*
4-
> **Scope:** Full architectural, functional, and operational comparison between the original [DEXBot](https://github.com/Codaone/DEXBot) (Python, v1.0.0) and DEXBot2 (TypeScript, v1.0.5).
4+
> **Scope:** Full architectural, functional, and operational comparison between the original [DEXBot](https://github.com/Codaone/DEXBot) (Python, v1.0.0) and DEXBot2 (TypeScript, v1.0.6).
55
> **Audience:** Developers, contributors, and operators evaluating or migrating between the two projects.
66
77
---
@@ -36,7 +36,7 @@
3636

3737
| Attribute | DEXBot (original) | DEXBot2 |
3838
|---|---|---|
39-
| **Release Track** | 1.0.0 | v1.0.5 |
39+
| **Release Track** | 1.0.0 | v1.0.6 |
4040
| **Language** | Python 3.6+ | TypeScript 5.x |
4141
| **Status** | Released 1.0.0, unmaintained | Active development |
4242
| **Last Repo Activity** | May 23, 2020 | 2026-06-25 |
@@ -774,7 +774,7 @@ Where:
774774

775775
| Metric | DEXBot | DEXBot2 |
776776
|---|---|---|
777-
| **Release Track** | 1.0.0 | v1.0.5 |
777+
| **Release Track** | 1.0.0 | v1.0.6 |
778778
| **Active Since** | ~2018 | December 2025 |
779779
| **Last Commit** | May 23, 2020 | 2026-06-25 |
780780
| **Total Commits** | 2281 | 1659 at current HEAD |

docs/EVOLUTION.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
## Executive Summary
44

5-
DEXBot2 is a sophisticated decentralized exchange trading bot for the BitShares blockchain. This report documents the complete evolution of the project from its inception in December 2025 through the current 1.0.5 stable release.
5+
DEXBot2 is a sophisticated decentralized exchange trading bot for the BitShares blockchain. This report documents the complete evolution of the project from its inception in December 2025 through the current 1.0.6 stable release.
66

77
### Key Milestones
88
- **Project Inception**: December 2, 2025
9-
- **Growth Phase**: 1,600+ commits over ~6 active months
9+
- **Growth Phase**: 1,670+ commits over ~7 active months
1010
- **Code Maturity**: Evolution from basic utilities to a ~58,000+ LoC intelligent TypeScript system
1111
- **Stability**: Progression from manual testing to a suite of 200+ automated test files
12-
- **Releases**: 40 release entries (v0.1.0 to v1.0.5)
12+
- **Releases**: 41 release entries (v0.1.0 to v1.0.6)
1313

1414
---
1515

@@ -173,13 +173,16 @@ Update script hardening: daemon-downtime-after-update fix (pre-update state snap
173173
### v1.0.4 → v1.0.5 (1 commit)
174174
Grid invariant enforcement: prevent stale dust duplicates at the same price level. Sync engine rejects orphan adoption when an active order already occupies that price (uses `Math.max(size)` for tight tolerance). Reconcile unconditionally cancels duplicate chain orders on chain. Dust detection expanded to interior partials sharing a price level with an active sibling. Three coordinated layers enforce "one order per grid price level" invariant.
175175

176+
### v1.0.5 → v1.0.6 (6 commits)
177+
Version display in unlock status, partial-fill stale-cache fix, rerun-hint correction, project-root dist-detection centralization via `isDistRuntime()`, and claw `package.json` require path fix.
178+
176179
---
177180

178181

179182

180183
## Development Statistics
181184

182-
200+ automated test files (all TypeScript), 38 release entries. See **Version History** for commit breakdown by release.
185+
200+ automated test files (all TypeScript), 39 release entries. See **Version History** for commit breakdown by release.
183186

184187
---
185188

@@ -221,7 +224,7 @@ DEXBot2 has matured from a basic grid bot into a signal-intelligent, production-
221224
---
222225

223226
**Report Originally Generated**: February 19, 2026
224-
**Last Updated**: July 1, 2026 (v1.0.5)
225-
**Total Commits**: 1661
226-
**Date Range**: December 2, 2025 - July 1, 2026 (ongoing)
227+
**Last Updated**: July 3, 2026 (v1.0.6)
228+
**Total Commits**: 1670
229+
**Date Range**: December 2, 2025 - July 3, 2026 (ongoing)
227230
**Repository**: DEXBot2 (BitShares DEX Trading Bot)

docs/FUND_MOVEMENT_AND_ACCOUNTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,4 +825,4 @@ To prevent "Time-of-Check to Time-of-Use" errors:
825825
3. **Bootstrapping:** Fills arriving during startup (`isBootstrapping=true`) are queued until the grid is fully reconciled.
826826

827827
---
828-
*Technical Reference for DEXBot2 v1.0.5 release*
828+
*Technical Reference for DEXBot2 v1.0.6 release*

0 commit comments

Comments
 (0)