@adrouter/agent 0.1.0-beta.7 → 0.1.0-beta.8

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/lib/installer.mjs CHANGED
@@ -462,6 +462,14 @@ export async function inspectInstallation(manifest, options = {}) {
462
462
  signatureType: 'missing',
463
463
  gatekeeperAssessment: platform === 'darwin' ? 'unavailable' : 'not-applicable',
464
464
  sandbox: sandboxReport(platform, options.sandbox),
465
+ authenticationInspection: 'application-only',
466
+ authenticationState: 'unknown',
467
+ storageClassification: 'unknown',
468
+ signedRequestSupport: false,
469
+ refreshHealth: 'unknown',
470
+ pendingEnrollment: 'unknown',
471
+ originClass: 'unknown',
472
+ reconnectNeed: 'unknown',
465
473
  warning: platform === 'darwin' ? MAC_WARNING : PORTABLE_WARNING,
466
474
  };
467
475
  try {
@@ -487,6 +495,7 @@ export async function inspectInstallation(manifest, options = {}) {
487
495
  try {
488
496
  await verifyApp(paths.appPath, manifest, artifact, options.executeImpl);
489
497
  report.bundleIntegrity = true;
498
+ report.signedRequestSupport = true;
490
499
  report.signatureType = platform === 'darwin' ? 'adhoc' : 'unsigned-portable';
491
500
  } catch (error) {
492
501
  report.signatureType = 'invalid';
package/lib/manifest.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { readFile } from 'node:fs/promises';
2
2
 
3
3
  const SHA256_PATTERN = /^[a-f0-9]{64}$/;
4
- const VERSION_PATTERN = /^\d+\.\d+\.\d+-beta\.\d+$/;
4
+ const VERSION_PATTERN = /^\d+\.\d+\.\d+(?:-beta\.\d+)?$/;
5
5
  const ARTIFACTS = Object.freeze({
6
6
  'darwin-universal': {
7
7
  platform: 'darwin',
@@ -67,7 +67,7 @@ export function validateManifest(value) {
67
67
  throw new Error('The embedded release distribution mode is not supported.');
68
68
  }
69
69
  if (!VERSION_PATTERN.test(value.releaseVersion)) {
70
- throw new Error('The embedded release version is not a beta SemVer.');
70
+ throw new Error('The embedded release version is not a supported SemVer.');
71
71
  }
72
72
  if (value.releaseTag !== `v${value.releaseVersion}`) {
73
73
  throw new Error('The embedded release tag does not match the version.');
@@ -84,6 +84,14 @@ export function validateManifest(value) {
84
84
  if (!/^\d+(?:\.\d+){0,2}$/.test(value.bundleVersion)) {
85
85
  throw new Error('The embedded numeric bundle version is invalid.');
86
86
  }
87
+ if (
88
+ value.authentication?.fixture !== 'tests/fixtures/platform-auth-v1.json' ||
89
+ value.authentication?.fixtureSha256 !==
90
+ '93a8ec8d4eba38f9165179aa0cdfe3316f8134a882bd0426bd83339af55d17f8' ||
91
+ value.authentication?.acceptanceAsset !== 'authentication-acceptance.json'
92
+ ) {
93
+ throw new Error('The embedded platform authentication metadata is not canonical.');
94
+ }
87
95
  if (!Array.isArray(value.artifacts) || value.artifacts.length !== 3) {
88
96
  throw new Error('The embedded release manifest must contain exactly three artifacts.');
89
97
  }
@@ -134,6 +142,7 @@ export function validateManifest(value) {
134
142
  }
135
143
  return Object.freeze({
136
144
  ...value,
145
+ authentication: Object.freeze({ ...value.authentication }),
137
146
  artifacts: Object.freeze(value.artifacts.map((artifact) => Object.freeze({ ...artifact }))),
138
147
  });
139
148
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adrouter/agent",
3
- "version": "0.1.0-beta.7",
3
+ "version": "0.1.0-beta.8",
4
4
  "description": "Verified installer and launcher for the AdRouter Agent desktop application.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -1,12 +1,17 @@
1
1
  {
2
2
  "schema": 3,
3
3
  "distributionMode": "credential-free-portable",
4
- "releaseVersion": "0.1.0-beta.7",
5
- "releaseTag": "v0.1.0-beta.7",
4
+ "releaseVersion": "0.1.0-beta.8",
5
+ "releaseTag": "v0.1.0-beta.8",
6
6
  "repository": "adrouter/adrouterAgent",
7
7
  "bundleIdentifier": "com.adrouter.agent",
8
8
  "bundleShortVersion": "0.1.0",
9
- "bundleVersion": "10007",
9
+ "bundleVersion": "10008",
10
+ "authentication": {
11
+ "fixture": "tests/fixtures/platform-auth-v1.json",
12
+ "fixtureSha256": "93a8ec8d4eba38f9165179aa0cdfe3316f8134a882bd0426bd83339af55d17f8",
13
+ "acceptanceAsset": "authentication-acceptance.json"
14
+ },
10
15
  "artifacts": [
11
16
  {
12
17
  "key": "darwin-universal",
@@ -18,9 +23,9 @@
18
23
  "archiveRoot": "AdRouter Agent.app",
19
24
  "executablePath": "Contents/MacOS/AdRouter Agent",
20
25
  "verificationMode": "macos-adhoc",
21
- "assetName": "AdRouter-Agent-0.1.0-beta.7-darwin-universal.zip",
22
- "assetUrl": "https://github.com/adrouter/adrouterAgent/releases/download/v0.1.0-beta.7/AdRouter-Agent-0.1.0-beta.7-darwin-universal.zip",
23
- "sha256": "1c056838fdf9cee7d2970fd9392893ea2829a455923c68aa66537f945f85b3bf"
26
+ "assetName": "AdRouter-Agent-0.1.0-beta.8-darwin-universal.zip",
27
+ "assetUrl": "https://github.com/adrouter/adrouterAgent/releases/download/v0.1.0-beta.8/AdRouter-Agent-0.1.0-beta.8-darwin-universal.zip",
28
+ "sha256": "512c090fa39d6370ac2db231a01abec53299b8955a33dd1b7239588808e41b6a"
24
29
  },
25
30
  {
26
31
  "key": "linux-x64",
@@ -31,9 +36,9 @@
31
36
  "archiveRoot": "AdRouter Agent-linux-x64",
32
37
  "executablePath": "AdRouter Agent",
33
38
  "verificationMode": "portable-checksum",
34
- "assetName": "AdRouter-Agent-0.1.0-beta.7-linux-x64.zip",
35
- "assetUrl": "https://github.com/adrouter/adrouterAgent/releases/download/v0.1.0-beta.7/AdRouter-Agent-0.1.0-beta.7-linux-x64.zip",
36
- "sha256": "f303dbf2acc5d50753c95ff489a8d07d6928463881a0448c73bdf64dfab27fcc"
39
+ "assetName": "AdRouter-Agent-0.1.0-beta.8-linux-x64.zip",
40
+ "assetUrl": "https://github.com/adrouter/adrouterAgent/releases/download/v0.1.0-beta.8/AdRouter-Agent-0.1.0-beta.8-linux-x64.zip",
41
+ "sha256": "66d25187751389fd5ab1e0252900d02b851ad524495ae0b401ff7d974d7ad43f"
37
42
  },
38
43
  {
39
44
  "key": "win32-x64",
@@ -44,9 +49,9 @@
44
49
  "archiveRoot": ".",
45
50
  "executablePath": "AdRouter Agent.exe",
46
51
  "verificationMode": "portable-checksum",
47
- "assetName": "AdRouter-Agent-0.1.0-beta.7-win32-x64.zip",
48
- "assetUrl": "https://github.com/adrouter/adrouterAgent/releases/download/v0.1.0-beta.7/AdRouter-Agent-0.1.0-beta.7-win32-x64.zip",
49
- "sha256": "59638cec9cf9ecb0f4b1345da1da3d2d04ab548afed928f84d28bb40610f51f6"
52
+ "assetName": "AdRouter-Agent-0.1.0-beta.8-win32-x64.zip",
53
+ "assetUrl": "https://github.com/adrouter/adrouterAgent/releases/download/v0.1.0-beta.8/AdRouter-Agent-0.1.0-beta.8-win32-x64.zip",
54
+ "sha256": "c455e8bb3d53aa7999257da34eca639db7193408783f500e9dbfacca82907127"
50
55
  }
51
56
  ]
52
57
  }