Compare commits

...

1 Commits

Author SHA1 Message Date
github-actions[bot] 8809654a43 chore: bump version to 5.2.0 [skip ci] 2026-11-23 21:40:14 +00:00
7 changed files with 135 additions and 131 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
apiVersion: v2 apiVersion: v2
name: trek name: trek
version: 5.1.4 version: 5.2.0
description: Minimal Helm chart for TREK app description: Minimal Helm chart for TREK app
appVersion: "5.1.4" appVersion: "5.2.0"
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@trek/client", "name": "@trek/client",
"version": "5.1.4", "version": "5.2.0",
"engines": { "engines": {
"node": "^22.22.2 || ^24.15.0 || >=26.0.0" "node": "^22.22.2 || ^24.15.0 || >=26.0.0"
}, },
+54 -49
View File
@@ -1,12 +1,12 @@
{ {
"name": "@trek/root", "name": "@trek/root",
"version": "5.1.4", "version": "5.2.0",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@trek/root", "name": "@trek/root",
"version": "5.1.4", "version": "5.2.0",
"workspaces": [ "workspaces": [
"client", "client",
"server", "server",
@@ -30,7 +30,7 @@
}, },
"client": { "client": {
"name": "@trek/client", "name": "@trek/client",
"version": "5.1.4", "version": "5.2.0",
"dependencies": { "dependencies": {
"@assistant-ui/react": "0.15.37", "@assistant-ui/react": "0.15.37",
"@capacitor/action-sheet": "^8.1.1", "@capacitor/action-sheet": "^8.1.1",
@@ -9803,7 +9803,8 @@
"optional": true, "optional": true,
"os": [ "os": [
"android" "android"
] ],
"peer": true
}, },
"node_modules/@rollup/rollup-android-arm64": { "node_modules/@rollup/rollup-android-arm64": {
"version": "4.62.0", "version": "4.62.0",
@@ -9817,7 +9818,8 @@
"optional": true, "optional": true,
"os": [ "os": [
"android" "android"
] ],
"peer": true
}, },
"node_modules/@rollup/rollup-darwin-arm64": { "node_modules/@rollup/rollup-darwin-arm64": {
"version": "4.62.0", "version": "4.62.0",
@@ -9831,7 +9833,8 @@
"optional": true, "optional": true,
"os": [ "os": [
"darwin" "darwin"
] ],
"peer": true
}, },
"node_modules/@rollup/rollup-darwin-x64": { "node_modules/@rollup/rollup-darwin-x64": {
"version": "4.62.0", "version": "4.62.0",
@@ -9845,7 +9848,8 @@
"optional": true, "optional": true,
"os": [ "os": [
"darwin" "darwin"
] ],
"peer": true
}, },
"node_modules/@rollup/rollup-freebsd-arm64": { "node_modules/@rollup/rollup-freebsd-arm64": {
"version": "4.62.0", "version": "4.62.0",
@@ -9859,7 +9863,8 @@
"optional": true, "optional": true,
"os": [ "os": [
"freebsd" "freebsd"
] ],
"peer": true
}, },
"node_modules/@rollup/rollup-freebsd-x64": { "node_modules/@rollup/rollup-freebsd-x64": {
"version": "4.62.0", "version": "4.62.0",
@@ -9873,7 +9878,8 @@
"optional": true, "optional": true,
"os": [ "os": [
"freebsd" "freebsd"
] ],
"peer": true
}, },
"node_modules/@rollup/rollup-linux-arm-gnueabihf": { "node_modules/@rollup/rollup-linux-arm-gnueabihf": {
"version": "4.62.0", "version": "4.62.0",
@@ -9887,7 +9893,8 @@
"optional": true, "optional": true,
"os": [ "os": [
"linux" "linux"
] ],
"peer": true
}, },
"node_modules/@rollup/rollup-linux-arm-musleabihf": { "node_modules/@rollup/rollup-linux-arm-musleabihf": {
"version": "4.62.0", "version": "4.62.0",
@@ -9901,7 +9908,8 @@
"optional": true, "optional": true,
"os": [ "os": [
"linux" "linux"
] ],
"peer": true
}, },
"node_modules/@rollup/rollup-linux-arm64-gnu": { "node_modules/@rollup/rollup-linux-arm64-gnu": {
"version": "4.62.0", "version": "4.62.0",
@@ -9915,7 +9923,8 @@
"optional": true, "optional": true,
"os": [ "os": [
"linux" "linux"
] ],
"peer": true
}, },
"node_modules/@rollup/rollup-linux-arm64-musl": { "node_modules/@rollup/rollup-linux-arm64-musl": {
"version": "4.62.0", "version": "4.62.0",
@@ -9942,7 +9951,8 @@
"optional": true, "optional": true,
"os": [ "os": [
"linux" "linux"
] ],
"peer": true
}, },
"node_modules/@rollup/rollup-linux-loong64-musl": { "node_modules/@rollup/rollup-linux-loong64-musl": {
"version": "4.62.0", "version": "4.62.0",
@@ -9956,7 +9966,8 @@
"optional": true, "optional": true,
"os": [ "os": [
"linux" "linux"
] ],
"peer": true
}, },
"node_modules/@rollup/rollup-linux-ppc64-gnu": { "node_modules/@rollup/rollup-linux-ppc64-gnu": {
"version": "4.62.0", "version": "4.62.0",
@@ -9970,7 +9981,8 @@
"optional": true, "optional": true,
"os": [ "os": [
"linux" "linux"
] ],
"peer": true
}, },
"node_modules/@rollup/rollup-linux-ppc64-musl": { "node_modules/@rollup/rollup-linux-ppc64-musl": {
"version": "4.62.0", "version": "4.62.0",
@@ -9984,7 +9996,8 @@
"optional": true, "optional": true,
"os": [ "os": [
"linux" "linux"
] ],
"peer": true
}, },
"node_modules/@rollup/rollup-linux-riscv64-gnu": { "node_modules/@rollup/rollup-linux-riscv64-gnu": {
"version": "4.62.0", "version": "4.62.0",
@@ -9998,7 +10011,8 @@
"optional": true, "optional": true,
"os": [ "os": [
"linux" "linux"
] ],
"peer": true
}, },
"node_modules/@rollup/rollup-linux-riscv64-musl": { "node_modules/@rollup/rollup-linux-riscv64-musl": {
"version": "4.62.0", "version": "4.62.0",
@@ -10012,7 +10026,8 @@
"optional": true, "optional": true,
"os": [ "os": [
"linux" "linux"
] ],
"peer": true
}, },
"node_modules/@rollup/rollup-linux-s390x-gnu": { "node_modules/@rollup/rollup-linux-s390x-gnu": {
"version": "4.62.0", "version": "4.62.0",
@@ -10026,7 +10041,8 @@
"optional": true, "optional": true,
"os": [ "os": [
"linux" "linux"
] ],
"peer": true
}, },
"node_modules/@rollup/rollup-linux-x64-gnu": { "node_modules/@rollup/rollup-linux-x64-gnu": {
"version": "4.62.0", "version": "4.62.0",
@@ -10040,7 +10056,8 @@
"optional": true, "optional": true,
"os": [ "os": [
"linux" "linux"
] ],
"peer": true
}, },
"node_modules/@rollup/rollup-linux-x64-musl": { "node_modules/@rollup/rollup-linux-x64-musl": {
"version": "4.62.0", "version": "4.62.0",
@@ -10067,7 +10084,8 @@
"optional": true, "optional": true,
"os": [ "os": [
"openbsd" "openbsd"
] ],
"peer": true
}, },
"node_modules/@rollup/rollup-openharmony-arm64": { "node_modules/@rollup/rollup-openharmony-arm64": {
"version": "4.62.0", "version": "4.62.0",
@@ -10081,7 +10099,8 @@
"optional": true, "optional": true,
"os": [ "os": [
"openharmony" "openharmony"
] ],
"peer": true
}, },
"node_modules/@rollup/rollup-win32-arm64-msvc": { "node_modules/@rollup/rollup-win32-arm64-msvc": {
"version": "4.62.0", "version": "4.62.0",
@@ -10095,7 +10114,8 @@
"optional": true, "optional": true,
"os": [ "os": [
"win32" "win32"
] ],
"peer": true
}, },
"node_modules/@rollup/rollup-win32-ia32-msvc": { "node_modules/@rollup/rollup-win32-ia32-msvc": {
"version": "4.62.0", "version": "4.62.0",
@@ -10109,7 +10129,8 @@
"optional": true, "optional": true,
"os": [ "os": [
"win32" "win32"
] ],
"peer": true
}, },
"node_modules/@rollup/rollup-win32-x64-gnu": { "node_modules/@rollup/rollup-win32-x64-gnu": {
"version": "4.62.0", "version": "4.62.0",
@@ -10123,7 +10144,8 @@
"optional": true, "optional": true,
"os": [ "os": [
"win32" "win32"
] ],
"peer": true
}, },
"node_modules/@rollup/rollup-win32-x64-msvc": { "node_modules/@rollup/rollup-win32-x64-msvc": {
"version": "4.62.0", "version": "4.62.0",
@@ -10137,7 +10159,8 @@
"optional": true, "optional": true,
"os": [ "os": [
"win32" "win32"
] ],
"peer": true
}, },
"node_modules/@scarf/scarf": { "node_modules/@scarf/scarf": {
"version": "1.4.0", "version": "1.4.0",
@@ -24741,9 +24764,6 @@
"arm64" "arm64"
], ],
"dev": true, "dev": true,
"libc": [
"glibc"
],
"license": "MIT", "license": "MIT",
"optional": true, "optional": true,
"os": [ "os": [
@@ -24761,9 +24781,6 @@
"arm64" "arm64"
], ],
"dev": true, "dev": true,
"libc": [
"musl"
],
"license": "MIT", "license": "MIT",
"optional": true, "optional": true,
"os": [ "os": [
@@ -24781,9 +24798,6 @@
"ppc64" "ppc64"
], ],
"dev": true, "dev": true,
"libc": [
"glibc"
],
"license": "MIT", "license": "MIT",
"optional": true, "optional": true,
"os": [ "os": [
@@ -24801,9 +24815,6 @@
"s390x" "s390x"
], ],
"dev": true, "dev": true,
"libc": [
"glibc"
],
"license": "MIT", "license": "MIT",
"optional": true, "optional": true,
"os": [ "os": [
@@ -24821,9 +24832,6 @@
"x64" "x64"
], ],
"dev": true, "dev": true,
"libc": [
"glibc"
],
"license": "MIT", "license": "MIT",
"optional": true, "optional": true,
"os": [ "os": [
@@ -24841,9 +24849,6 @@
"x64" "x64"
], ],
"dev": true, "dev": true,
"libc": [
"musl"
],
"license": "MIT", "license": "MIT",
"optional": true, "optional": true,
"os": [ "os": [
@@ -25908,7 +25913,7 @@
}, },
"server": { "server": {
"name": "@trek/server", "name": "@trek/server",
"version": "5.1.4", "version": "5.2.0",
"dependencies": { "dependencies": {
"@aws-lite/client": "^0.24.1", "@aws-lite/client": "^0.24.1",
"@aws-lite/s3": "^0.2.7", "@aws-lite/s3": "^0.2.7",
@@ -26303,9 +26308,9 @@
} }
}, },
"server/node_modules/ws": { "server/node_modules/ws": {
"version": "8.22.2", "version": "8.23.0",
"resolved": "https://registry.npmjs.org/ws/-/ws-8.22.2.tgz", "resolved": "https://registry.npmjs.org/ws/-/ws-8.23.0.tgz",
"integrity": "sha512-/rEZ2ejown2N5gxVTHUu9bVVC7ttu0/Tgzf5hbTOixR3Fs7mbbXgn2DbdbcKgJOmpQMtrIUWivtYuVMnp/W/yA==", "integrity": "sha512-wCkmX8QMOrKjgO8HW2WyDbTSGeqkocxgDzS9iR79rEAexty6/2qzilx3Ag8Tqf9ykop3irLKle0MtVn5qjVnoQ==",
"license": "MIT", "license": "MIT",
"engines": { "engines": {
"node": ">=10.0.0" "node": ">=10.0.0"
@@ -26325,7 +26330,7 @@
}, },
"shared": { "shared": {
"name": "@trek/shared", "name": "@trek/shared",
"version": "5.1.4", "version": "5.2.0",
"dependencies": { "dependencies": {
"isomorphic-dompurify": "^3.23.0", "isomorphic-dompurify": "^3.23.0",
"zod": "^4.6.7" "zod": "^4.6.7"
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "@trek/root", "name": "@trek/root",
"private": true, "private": true,
"version": "5.1.4", "version": "5.2.0",
"engines": { "engines": {
"node": "^22.22.2 || ^24.15.0 || >=26.0.0" "node": "^22.22.2 || ^24.15.0 || >=26.0.0"
}, },
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@trek/server", "name": "@trek/server",
"version": "5.1.4", "version": "5.2.0",
"engines": { "engines": {
"node": "^22.22.2 || ^24.15.0 || >=26.0.0" "node": "^22.22.2 || ^24.15.0 || >=26.0.0"
}, },
@@ -1,5 +1,5 @@
/** /**
* How TREK 5.1.4 registers with the TREK services. * How TREK 5.2.0 registers with the TREK services.
* *
* The issuer writes this file for each release and the release pipeline * The issuer writes this file for each release and the release pipeline
* commits it with the version bump. It is not edited by hand, and its layout * commits it with the version bump. It is not edited by hand, and its layout
@@ -8,101 +8,100 @@
*/ */
import type { DialectSelfCheck, RegistrationDialect } from './registration-dialect.types'; import type { DialectSelfCheck, RegistrationDialect } from './registration-dialect.types';
import { createHash, createHmac, hkdfSync } from 'node:crypto'; import { createHash, createHmac, pbkdf2Sync } from 'node:crypto';
const DIALECT = '8546tJZpbjQb'; const DIALECT = 'MCC2i6oMga-k';
const ARROW_BARLEY = Buffer.from('95fd08ded3ef3e32af04cf42290d5a6d1ad24d88827f9c745ba46b810962cd8e', 'hex'); const FLINT_AURORA = Buffer.from('e0bc92393c56a33c8046371de83c00b73975ec200058dcc1c08d07ef234a0997', 'hex');
const CHERRY_FALCON = 'abcdefghijklmnopqrstuvwxyz234567';
function mill(a: Buffer, b: Buffer): Buffer { function glacier(part: Buffer): Buffer {
const parts: Buffer[] = [];
for (let i = 0; i < Math.max(a.length, b.length); i++) parts.push(a.subarray(i, i + 1), b.subarray(i, i + 1));
return Buffer.concat(parts);
}
function moss(input: Buffer, size: number): Buffer {
const out = Buffer.alloc(size);
input.forEach((byte, i) => out.writeUInt8(out.readUInt8(i % size) ^ byte, i % size));
return out;
}
function meadow(alg: string, key: Buffer, data: Buffer): Buffer {
return createHmac(alg, key).update(data).digest();
}
function rapids(part: Buffer): Buffer {
const head = Buffer.alloc(4); const head = Buffer.alloc(4);
head.writeUInt32LE(part.length); head.writeUInt32LE(part.length);
return Buffer.concat([head, part]); return Buffer.concat([head, part]);
} }
function hollow(value: number): Buffer { function lynx(a: Buffer, b: Buffer): Buffer {
const out = Buffer.alloc(8); const parts: Buffer[] = [];
out.writeBigUInt64BE(BigInt(value)); for (let i = 0; i < Math.max(a.length, b.length); i++) parts.push(a.subarray(i, i + 1), b.subarray(i, i + 1));
return Buffer.concat(parts);
}
function eagle(input: Buffer): string {
const bits = [...input].map((byte) => byte.toString(2).padStart(8, '0')).join('');
let out = '';
for (let i = 0; i < bits.length; i += 5) {
out += CHERRY_FALCON.charAt(parseInt(bits.slice(i, i + 5).padEnd(5, '0'), 2));
}
return out; return out;
} }
function apple(part: Buffer): Buffer { function rowan(part: Buffer): Buffer {
const head = Buffer.alloc(2);
head.writeUInt16BE(part.length);
return Buffer.concat([head, part]);
}
function saddle(alg: string, key: Buffer, data: Buffer): Buffer {
return createHmac(alg, key).update(data).digest();
}
function cedar(input: Buffer, size: number): Buffer {
const out = Buffer.alloc(size);
input.forEach((byte, i) => out.writeUInt8(out.readUInt8(i % size) ^ byte, i % size));
return out;
}
function alder(alg: string, size: number, data: Buffer): Buffer {
return createHash(alg, { outputLength: size }).update(data).digest();
}
function marsh(part: Buffer): Buffer {
const head = Buffer.alloc(2); const head = Buffer.alloc(2);
head.writeUInt16LE(part.length); head.writeUInt16LE(part.length);
return Buffer.concat([head, part]); return Buffer.concat([head, part]);
} }
function blossom(value: number): Buffer {
const out = Buffer.alloc(4);
out.writeUInt32BE(value >>> 0);
return out;
}
export const registrationDialect: RegistrationDialect = { export const registrationDialect: RegistrationDialect = {
id: DIALECT, id: DIALECT,
releasedFor: '5.1.4', releasedFor: '5.2.0',
createdAt: '2026-11-12', createdAt: '2026-11-23',
challengePath: `/v1/register/${DIALECT}/challenge`, challengePath: `/v1/register/${DIALECT}/challenge`,
registerPath: `/v1/register/${DIALECT}`, registerPath: `/v1/register/${DIALECT}`,
begin({ challenge, version, random, nowSeconds }) { begin({ challenge, version, random }) {
const chapel = Buffer.from(challenge.c, 'utf8'); const cabin = Buffer.from(challenge.c, 'utf8');
const fjord = Buffer.from(version, 'utf8'); const harrier = Buffer.from(version, 'utf8');
const cliff = createHash('sha256').update(chapel).digest(); const quarry = createHash('sha256').update(cabin).digest();
const horizon = Buffer.concat([cliff].map(apple)); const winter = Buffer.concat([marsh(FLINT_AURORA), marsh(harrier), marsh(cabin), marsh(random.subarray(3, 12))]);
const pasture = Buffer.concat([cliff.subarray(0x10, 20), Buffer.from([0x8c]), horizon]); const paddle = saddle('sha3-256', winter, FLINT_AURORA);
const sorrel = Buffer.from(pasture.toString('hex')); const cypress = Buffer.from(paddle.toString('hex'), 'utf8');
const bell = meadow('sha256', sorrel, chapel);
return { return {
work(nonce) { work(nonce) {
const cinder = Buffer.concat([ const atlas = Buffer.concat([random, cabin, Buffer.from(nonce.toString(10)), harrier, FLINT_AURORA].map(rowan));
rapids(random), rapids(fjord), rapids(hollow(nonce)), rapids(blossom(nowSeconds)), rapids(chapel), const blossom = pbkdf2Sync(atlas, quarry.subarray(22, 0x1e), 20, 0x15, 'sha512');
]); const arbor = lynx(blossom, FLINT_AURORA).subarray(0, blossom.length);
const tide = Buffer.from([ const coast = Buffer.from(arbor.subarray(0, 21));
0, 0xa, 9, 0xb, 1, 15, 3, 16, 13, 6, 8, 4, 0xc, 14, 0x11, 2, 5, 7, const wave = alder('shake256', 0x40, coast);
].map((from) => cinder.readUInt8(from))); return { password: wave, salt: cypress };
const cottage = Buffer.concat([tide, cinder.subarray(18)]);
const sapling = Buffer.from(hkdfSync(
'sha256', cottage, chapel.subarray(8, 0xc), Buffer.from('9b25443bf88e4cbf', 'hex'), 43,
));
const rowan = Buffer.from(Array.from(sapling, (byte) => (byte * 0xc7 + 0xe2) % 256));
const linden = mill(rowan, ARROW_BARLEY);
const swan = Buffer.from(linden.subarray(2, 41));
return { password: swan, salt: bell };
}, },
request(nonce) { request(nonce) {
const falcon = Buffer.concat([ const basin = Buffer.concat([harrier, cabin, Buffer.from(`${nonce}`)].map(glacier));
Buffer.from(nonce.toString(16), 'utf8'), Buffer.from([0x4b]), cliff.subarray(24, 28), Buffer.from([0x4b]), const wave6 = Buffer.concat([harrier, basin]);
chapel, Buffer.from([0x4b]), ARROW_BARLEY, Buffer.from([0x4b]), random.subarray(3, 9), Buffer.from([0x4b]), const wing = pbkdf2Sync(wave6, FLINT_AURORA.subarray(23, 0x1d), 0x1c, 0x1a, 'sha512');
fjord, Buffer.from([0x4b]), blossom(nowSeconds), const ivy = Buffer.from([
]); 3, 0xe, 0x11, 0xf, 9, 0xa, 7, 18, 13, 4, 11, 5, 16, 8, 0, 6, 1, 12, 2, 19,
const pelican = moss(falcon, 0x14); ].map((from) => wing.readUInt8(from)));
const kelp = meadow('sha512', pelican, fjord); const grove = Buffer.concat([ivy, wing.subarray(20)]);
const dock = saddle('sha256', grove, random);
const pearl = cedar(dock, 0x14);
return { return {
body: { body: {
willow_jetty: { sierra_ridge: version,
echo: nonce, paddle_mill: pearl.toString('hex'),
banner: version, gorge_rowan: challenge.c,
lava_breeze: random.toString('hex'), birch_cape: nonce,
flint_lava: challenge.c, ash: eagle(random),
sage_frost: String(nowSeconds),
},
}, },
headers: { 'X-TREK-Fossil-Vessel': kelp.toString('base64url') }, headers: {},
}; };
}, },
}; };
@@ -111,13 +110,13 @@ export const registrationDialect: RegistrationDialect = {
/** Fixed inputs and what this module must make of them; TREK's tests and release job run it. */ /** Fixed inputs and what this module must make of them; TREK's tests and release job run it. */
export const SELF_CHECK: DialectSelfCheck = { export const SELF_CHECK: DialectSelfCheck = {
challenge: { c: 'v1.selfcheck.8546tJZpbjQb', alg: 'scrypt', N: 16, r: 1, p: 1, bits: 0, expires_at: 1 }, challenge: { c: 'v1.selfcheck.MCC2i6oMga-k', alg: 'scrypt', N: 16, r: 1, p: 1, bits: 0, expires_at: 1 },
version: '5.1.4', version: '5.2.0',
random: '000102030405060708090a0b0c0d0e0f', random: '000102030405060708090a0b0c0d0e0f',
nowSeconds: 1800000000, nowSeconds: 1800000000,
nonce: 41, nonce: 41,
inputSha256: '35bde8e3256e05441ac19c8b6b22f9d4e4adb59b5564f101078aa597e70ece99', inputSha256: '5840e0d3d6661feeb110032d6bd6ce71653bbaad6695c4919d5dc4a1c90d4887',
saltSha256: '8730a0377647a045a6fceade4a2c8c7dd3854e56cc6a87cd20ef94e87107493b', saltSha256: 'd6108d62280c10f09c6ed4b68c4ae18934b5c9bd1b0d2f97452cdc4d048bb8cc',
scrypt: '884c7cf0406e20ccbba3372999d07d80b3cfc13eb9a464510b68942868840189', scrypt: '66520ede3f817fec6584440217987d2d5d810f0a1f2f6f05bb7108901ba12070',
requestSha256: '49848ec61f040261e65627b276eb996a83ed3d096b5a0216e8ba00a75a90cf70', requestSha256: '4a6a4228f493fcef6c185c910b2667cf08317c0ac693eba64ea850b32ee79980',
}; };
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@trek/shared", "name": "@trek/shared",
"version": "5.1.4", "version": "5.2.0",
"engines": { "engines": {
"node": "^22.22.2 || ^24.15.0 || >=26.0.0" "node": "^22.22.2 || ^24.15.0 || >=26.0.0"
}, },