@mudraforge/statutory 2.6.0 → 2.7.0
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/CHANGELOG.md +11 -0
- package/bin/cli.js +9 -2
- package/package.json +1 -1
- package/src/index.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
+
## [2.7.0] - 2026-10-25
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- **Edge Sync Merkle Pinning & Trust Anchor Alignment**:
|
|
14
|
+
- Added v2.7.0 edge Merkle root digest (`sha256-6953ce79b63bb2a5809dc928178b4631f08448aa2dcde107dde10f84890bf5cb`) to authoritative `PINNED_RELEASE_ROOTS`.
|
|
15
|
+
- Unified local package, Edge Worker, and public manifest at OKF v2.7.0.
|
|
16
|
+
- Added CLI flag parsing for `--dest <path>`, `-d <path>`, and `--dest=<path>` in `bin/cli.js sync` command.
|
|
17
|
+
- Verified atomic remote sync downloads and unpacks all 24 statutory provisions cleanly into custom destination directories.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
10
21
|
## [2.6.0] - 2026-10-25
|
|
11
22
|
|
|
12
23
|
### Added
|
package/bin/cli.js
CHANGED
|
@@ -43,9 +43,16 @@ async function main() {
|
|
|
43
43
|
|
|
44
44
|
case 'sync':
|
|
45
45
|
case 'pull':
|
|
46
|
-
case 'update':
|
|
47
|
-
|
|
46
|
+
case 'update': {
|
|
47
|
+
let target = args[1];
|
|
48
|
+
if (target === '--dest' || target === '-d') {
|
|
49
|
+
target = args[2];
|
|
50
|
+
} else if (target && target.startsWith('--dest=')) {
|
|
51
|
+
target = target.slice(7);
|
|
52
|
+
}
|
|
53
|
+
await handleSync(target);
|
|
48
54
|
break;
|
|
55
|
+
}
|
|
49
56
|
|
|
50
57
|
case 'browse':
|
|
51
58
|
case 'nav':
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mudraforge/statutory",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"description": "Open Knowledge Format (OKF) client & AI Agent Skill for Indian and cross-border statutory tax provisions. Zero dependencies.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
package/src/index.js
CHANGED
|
@@ -18,13 +18,14 @@ const __filename = fileURLToPath(import.meta.url);
|
|
|
18
18
|
const __dirname = path.dirname(__filename);
|
|
19
19
|
export const DEFAULT_LOCAL_OKF_DIR = path.resolve(__dirname, '..', 'okf');
|
|
20
20
|
export const DEFAULT_BASE_URL = 'https://api.mudraforge.in';
|
|
21
|
-
export const STATUTORY_CLIENT_VERSION = '2.
|
|
21
|
+
export const STATUTORY_CLIENT_VERSION = '2.7.0';
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* Pinned official release Merkle root digests.
|
|
25
25
|
* Prevents unauthorized bundle substitution attacks even if an attacker controls the remote endpoint.
|
|
26
26
|
*/
|
|
27
27
|
export const PINNED_RELEASE_ROOTS = new Set([
|
|
28
|
+
'sha256-6953ce79b63bb2a5809dc928178b4631f08448aa2dcde107dde10f84890bf5cb', // v2.7.0 Edge Sync Bundle Root (24 Sections across 5 Domains)
|
|
28
29
|
'sha256-ce88c2255df1c30c15bfe184c8117336ebc302c2ac5ef25e96a6957402ae11ae', // v2.6.0 Verified Citation Merkle Root (24 Sections across 5 Domains - 100% Complete AP)
|
|
29
30
|
'sha256-3f25fc3941d29de5b8befc0ddb24d1bb2632067f00b200680cf784961616424c', // v2.5.0 Verified Citation Merkle Root (18 Sections across 5 Domains)
|
|
30
31
|
'sha256-c32be389bfb82a52ffc40670b74103216c45f3b284c66d2b0020097eb36a25f9', // v2.5.0 Merkle Manifest Root (18 Sections across 5 Domains)
|