@optimuslabs/harness-map-staging 1.5.22 → 1.5.23

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.
@@ -64,8 +64,14 @@ const getMetadata = () => ({
64
64
  hook_manifest: { ...parseHookManifest(), ...collectInstalledHookHashes() },
65
65
  });
66
66
  function buildRequestBody(hardwareUuid, timestamp) {
67
- const payloadSummary = { timestamp, directory: process.cwd(), hardware_uuid: hardwareUuid };
68
- const requestBody = { hardware_uuid: hardwareUuid, payload: payloadSummary, metadata: getMetadata(), scan_timestamp: timestamp };
67
+ const metadata = getMetadata();
68
+ const payloadSummary = {
69
+ timestamp,
70
+ directory: process.cwd(),
71
+ hardware_uuid: hardwareUuid,
72
+ hook_manifest: metadata.hook_manifest,
73
+ };
74
+ const requestBody = { hardware_uuid: hardwareUuid, payload: payloadSummary, metadata, scan_timestamp: timestamp };
69
75
  const storedKey = readStoredAuthKey();
70
76
  if (storedKey?.key && storedKey.hardware_uuid === hardwareUuid) {
71
77
  requestBody.signature = createSignature(payloadSummary, storedKey.key);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optimuslabs/harness-map-staging",
3
- "version": "1.5.22",
3
+ "version": "1.5.23",
4
4
  "description": "CLI helpers for logging hardware UUIDs and posting startup payloads to Optimus Security.",
5
5
  "type": "module",
6
6
  "bin": {