@bitspark/archon-cli 0.6.2 → 0.8.1
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/dist/src/cmd/version.js
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
// archon version — one line `archon <semver> (<commit>)`. The commit is ARCHON_GIT_COMMIT
|
|
2
|
-
// when the environment stamps it, else "unknown" — pinned only by SHAPE
|
|
2
|
+
// when the environment stamps it, else "unknown" — pinned only by SHAPE. The semver is
|
|
3
|
+
// pinned exactly: cli/smoke.mjs holds all three lanes to this package's version.
|
|
4
|
+
import { readFileSync } from "node:fs";
|
|
3
5
|
import { wantsHelp } from "../io.js";
|
|
4
|
-
|
|
6
|
+
// The package's own version, read from its package.json — which npm always publishes, and
|
|
7
|
+
// which sits three levels above this file once compiled (dist/src/cmd/version.js). The
|
|
8
|
+
// Rust lane does the same with CARGO_PKG_VERSION. A literal here said "0.5.0" from 0.5.0
|
|
9
|
+
// to 0.8.0, because a release bump updates the manifest and nothing held the copy.
|
|
10
|
+
const VERSION = JSON.parse(readFileSync(new URL("../../../package.json", import.meta.url), "utf8")).version;
|
|
5
11
|
const USAGE = "usage: archon version (prints version + build info)";
|
|
6
12
|
export function versionLine() {
|
|
7
13
|
return `archon ${VERSION} (${process.env["ARCHON_GIT_COMMIT"] ?? "unknown"})`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../../src/cmd/version.ts"],"names":[],"mappings":"AAAA,0FAA0F;AAC1F,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../../src/cmd/version.ts"],"names":[],"mappings":"AAAA,0FAA0F;AAC1F,uFAAuF;AACvF,iFAAiF;AACjF,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,0FAA0F;AAC1F,uFAAuF;AACvF,yFAAyF;AACzF,mFAAmF;AACnF,MAAM,OAAO,GACX,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,GAAG,CAAC,uBAAuB,EAAE,OAAO,IAAI,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,CACnF,CAAC,OAAO,CAAC;AACV,MAAM,KAAK,GAAG,sDAAsD,CAAC;AAErE,MAAM,UAAU,WAAW;IACzB,OAAO,UAAU,OAAO,KAAK,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,IAAI,SAAS,GAAG,CAAC;AAChF,CAAC;AAED,MAAM,UAAU,GAAG,CAAC,IAAc;IAChC,IAAI,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;QACpB,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,IAAI,CAAC,CAAC;QACnC,OAAO;IACT,CAAC;IACD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,WAAW,EAAE,IAAI,CAAC,CAAC;AAC7C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitspark/archon-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "archon CLI: key / keygen / sign / verify over the identity floor.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"test": "tsc -p tsconfig.json && node --test dist/test/*.test.js"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@bitspark/archon": "^0.
|
|
26
|
-
"@bitspark/archon-sdk": "^0.
|
|
25
|
+
"@bitspark/archon": "^0.8.1",
|
|
26
|
+
"@bitspark/archon-sdk": "^0.8.1",
|
|
27
27
|
"@noble/ciphers": "^2.4.0",
|
|
28
28
|
"@noble/hashes": "^2.4.0"
|
|
29
29
|
},
|