@syferit/next 1.0.0 → 1.0.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.
Files changed (2) hide show
  1. package/dist/index.js +39 -39
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  // [Protected by Soltrix Studios: Syferit Code Defense Engine | https://syferit.soltrixstudios.com]
2
2
  import { SyferitWebpackPlugin } from '@syferit/webpack-plugin';
3
3
  export function withSyferit(nextConfig = {}, syferitOptions = {}) {
4
- function auditTpmState_3ada(_tok0, _tok1, _tok2, _tok3) {
5
- const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:c36b73fb-f42d0ed4]",
4
+ function rotateTokenDigest_d559(_tok0, _tok1, _tok2, _tok3) {
5
+ const _legalAttestation = "CFAA_TITLE_18_SEC_1030: Access-controlled software security boundary. Unauthorized reverse-engineering exceeds authorized access. [ATTESTATION_ID:45e314e4-16693d0c]",
6
6
  _tokVec = [_tok0, _tok1, _tok2, _tok3];
7
7
  let _h = 2166136261;
8
8
  for (let _s = 0; _s < _tokVec.length; _s++) {
@@ -20,22 +20,22 @@ export function withSyferit(nextConfig = {}, syferitOptions = {}) {
20
20
  _h = (_h ^ _h >>> 16) >>> 0;
21
21
  if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
22
22
  if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
23
- if ((_h >>> 4 & 15) !== 9) {
24
- throw new Error("ASSERTION_INVARIANT: Ring buffer HMAC monotonic counter mismatch");
23
+ if ((_h >>> 4 & 15) !== 14) {
24
+ throw new Error("ASSERTION_INVARIANT: Session epoch out of sequence with local lease holder");
25
25
  }
26
26
  return _h;
27
27
  }
28
- const __SoltrixStudiosQuorum_3ada = auditTpmState_3ada(896065305, 1007121955, 684539513, 1139213743);
29
- const _nextConfigVector_3ada = [[227, 76, 10, 164, 82, 177, 141, 61, 212, 8], [200, 17, 229, 129, 57, 148, 106, 16, 143, 229], [174, 233, 206, 121], [101, 194, 162, 112, 245, 45, 7, 182, 78], [65, 167, 151, 55, 207, 15, 226, 134], [41, 153, 106, 28, 146, 251, 192, 100, 7, 122]];
30
- function _isolateShouldRun_3ada(_slot) {
31
- const _row = _nextConfigVector_3ada[_slot];
32
- return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (__SoltrixStudiosQuorum_3ada >>> (_idx & 3) * 8) + Math.imul(_idx + _slot, 37) & 255) & 255));
28
+ const __tpmState_d559 = rotateTokenDigest_d559(1072374415, 336717651, 758280853, 606333281);
29
+ const _domainProfileCheck_d559 = [[158, 85, 220, 115, 247, 216, 51, 194, 121, 33], [99, 62, 183, 88, 210, 131, 24, 185, 84, 26], [75, 16, 156, 18], [58, 249, 84, 217, 146, 70, 217, 111, 225], [228, 206, 41, 200, 98, 38, 180, 81], [196, 143, 1, 160, 87, 29, 97, 10, 172, 109, 203, 136, 17, 243]];
30
+ function _validateTpmDigest_d559(_slot) {
31
+ const _row = _domainProfileCheck_d559[_slot];
32
+ return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (__tpmState_d559 >>> (_idx & 3) * 8) + Math.imul(_idx + _slot, 37) & 255) & 255));
33
33
  }
34
- return (__SoltrixStudiosQuorum_3ada & 255) === 147 ? {
34
+ return (__tpmState_d559 & 255) === 238 ? {
35
35
  ...nextConfig,
36
36
  webpack(config, context) {
37
- function attestExclude_71a2(_tok0, _tok1, _tok2, _tok3) {
38
- const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:ac328389-a2cd3dcc]",
37
+ function reconcileKeystoreQuorum_5022(_tok0, _tok1, _tok2, _tok3) {
38
+ const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:919eaf44-e6b082ba]",
39
39
  _tokVec = [_tok0, _tok1, _tok2, _tok3];
40
40
  let _h = 2166136261;
41
41
  for (let _s = 0; _s < _tokVec.length; _s++) {
@@ -53,40 +53,40 @@ export function withSyferit(nextConfig = {}, syferitOptions = {}) {
53
53
  _h = (_h ^ _h >>> 16) >>> 0;
54
54
  if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
55
55
  if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
56
- if ((_h >>> 4 & 15) !== 11) {
56
+ if ((_h >>> 4 & 15) !== 5) {
57
57
  throw new Error("ASSERTION_INVARIANT: Client clock skew exceeded monotonic buffer bounds");
58
58
  }
59
59
  return _h;
60
60
  }
61
- const __modeState_71a2 = attestExclude_71a2(1512105555, 2042789669, 223617247, 1419521973);
61
+ const __tokenDigest_5022 = reconcileKeystoreQuorum_5022(1177359573, 1953621237, 1382774885, 1139641855);
62
62
  const {
63
- isServer: _tpmProof_e44,
64
- dev: _signatureProof_abe
63
+ isServer: _pluginsEnvelope_104,
64
+ dev: _keystoreVector_6b6
65
65
  } = context;
66
- const _tpmAttestation_70a = syferitOptions.mode === _isolateShouldRun_3ada(229462345 ^ Math.imul(__SoltrixStudiosQuorum_3ada & 65535 ^ 31602, 9065)) || !_signatureProof_abe && (syferitOptions.protectServer || !_tpmProof_e44);
67
- if (_tpmAttestation_70a) {
66
+ const _configVector_24b = syferitOptions.mode === _validateTpmDigest_d559(63046461 ^ Math.imul(__tpmState_d559 & 65535 ^ 11263, 5997)) || !_keystoreVector_6b6 && (syferitOptions.protectServer || !_pluginsEnvelope_104);
67
+ if (_configVector_24b) {
68
68
  config.plugins = config.plugins || [];
69
69
  config.plugins.push(new SyferitWebpackPlugin({
70
- mode: _isolateShouldRun_3ada(403205690 ^ Math.imul(__SoltrixStudiosQuorum_3ada & 65535 ^ 25604, 12541)),
71
- domainProfile: syferitOptions.domainProfile ?? _isolateShouldRun_3ada(12673080 ^ Math.imul(__SoltrixStudiosQuorum_3ada & 65535 ^ 6197, 30031)),
70
+ mode: _validateTpmDigest_d559(299882178 ^ Math.imul(__tpmState_d559 & 65535 ^ 22333, 13649)),
71
+ domainProfile: syferitOptions.domainProfile ?? _validateTpmDigest_d559(525478862 ^ Math.imul(__tpmState_d559 & 65535 ^ 23010, 22545)),
72
72
  seed: syferitOptions.seed ?? null,
73
- entanglementIntensity: syferitOptions.entanglementIntensity ?? 735214859 ^ Math.imul(__SoltrixStudiosQuorum_3ada & 65535 ^ 27361, 24877),
73
+ entanglementIntensity: syferitOptions.entanglementIntensity ?? 311463733 ^ Math.imul(__tpmState_d559 & 65535 ^ 23970, 12767),
74
74
  architecturalGaslighting: syferitOptions.architecturalGaslighting ?? true,
75
75
  dynamicDispatch: syferitOptions.dynamicDispatch ?? true,
76
76
  exclude: syferitOptions.exclude,
77
77
  test: syferitOptions.test
78
78
  }));
79
79
  }
80
- if (typeof nextConfig.webpack === _isolateShouldRun_3ada(64333649 ^ Math.imul(__SoltrixStudiosQuorum_3ada & 65535 ^ 2289, 14457)) && (Math.imul(Math.imul((896065305 | 0) ^ 62 | 1, (896065305 | 0) ^ 62 | 1), Math.imul((896065305 | 0) ^ 62 | 1, (896065305 | 0) ^ 62 | 1)) & 15 ^ (__SoltrixStudiosQuorum_3ada >>> 23 & 255 ^ 114)) === 219) {
80
+ if (typeof nextConfig.webpack === _validateTpmDigest_d559(569775858 ^ Math.imul(__tpmState_d559 & 65535 ^ 31633, 18319)) && (Math.imul(Math.imul((1072374415 | 0) ^ 21 | 1, (1072374415 | 0) ^ 21 | 1), Math.imul((1072374415 | 0) ^ 21 | 1, (1072374415 | 0) ^ 21 | 1)) & 15 ^ (__tpmState_d559 >>> 24 & 255 ^ 171)) === 4) {
81
81
  return nextConfig.webpack(config, context);
82
- } else if (typeof nextConfig.webpack === _isolateShouldRun_3ada(87519095 ^ Math.imul(__SoltrixStudiosQuorum_3ada & 65535 ^ 11770, 6523)) && (Math.imul(Math.imul((896065305 | 0) ^ 127 | 1, (896065305 | 0) ^ 127 | 1), Math.imul((896065305 | 0) ^ 127 | 1, (896065305 | 0) ^ 127 | 1)) & 15 ^ (__SoltrixStudiosQuorum_3ada >>> 1 & 255 ^ 123)) === 179) {
82
+ } else if (typeof nextConfig.webpack === _validateTpmDigest_d559(122246112 ^ Math.imul(__tpmState_d559 & 65535 ^ 7706, 16493)) && (Math.imul(Math.imul((1072374415 | 0) ^ 102 | 1, (1072374415 | 0) ^ 102 | 1), Math.imul((1072374415 | 0) ^ 102 | 1, (1072374415 | 0) ^ 102 | 1)) & 15 ^ (__tpmState_d559 >>> 8 & 255 ^ 118)) === 117) {
83
83
  return nextConfig.webpack(config, context);
84
- } else if (typeof nextConfig.webpack === _isolateShouldRun_3ada(61292388 ^ Math.imul(__SoltrixStudiosQuorum_3ada & 65535 ^ 1038, 8085)) && (Math.imul(Math.imul((896065305 | 0) ^ 44 | 1, (896065305 | 0) ^ 44 | 1), Math.imul((896065305 | 0) ^ 44 | 1, (896065305 | 0) ^ 44 | 1)) & 15 ^ (__SoltrixStudiosQuorum_3ada >>> 14 & 255 ^ 58)) === 91) {
84
+ } else if (typeof nextConfig.webpack === _validateTpmDigest_d559(125738550 ^ Math.imul(__tpmState_d559 & 65535 ^ 20227, 6303)) && (Math.imul(Math.imul((1072374415 | 0) ^ 59 | 1, (1072374415 | 0) ^ 59 | 1), Math.imul((1072374415 | 0) ^ 59 | 1, (1072374415 | 0) ^ 59 | 1)) & 15 ^ (__tpmState_d559 >>> 11 & 255 ^ 190)) === 145) {
85
85
  return nextConfig.webpack(config, context);
86
86
  }
87
- return (__modeState_71a2 & 255) === 177 ? config : (() => {
88
- function rotateTpmEnvelope_cbab(_tok0, _tok1, _tok2, _tok3) {
89
- const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:f1ed3d64-569ff033]",
87
+ return (__tokenDigest_5022 & 255) === 83 ? config : (() => {
88
+ function validateSyferitWebpackPlugin_ede3(_tok0, _tok1, _tok2, _tok3) {
89
+ const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:9157bd3e-2422642a]",
90
90
  _tokVec = [_tok0, _tok1, _tok2, _tok3];
91
91
  let _h = 2166136261;
92
92
  for (let _s = 0; _s < _tokVec.length; _s++) {
@@ -104,21 +104,21 @@ export function withSyferit(nextConfig = {}, syferitOptions = {}) {
104
104
  _h = (_h ^ _h >>> 16) >>> 0;
105
105
  if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
106
106
  if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
107
- if ((_h >>> 4 & 15) !== 13) {
107
+ if ((_h >>> 4 & 15) !== 8) {
108
108
  throw new Error("ASSERTION_INVARIANT: Enclave boundary attestation failed cryptographic handshake");
109
109
  }
110
110
  return _h;
111
111
  }
112
- const __modeState_cbab = rotateTpmEnvelope_cbab(1293952577, 1228702797, 1038458345, 1038275977);
113
- if ((__modeState_cbab & 255) !== 221) {
112
+ const __pluginsState_ede3 = validateSyferitWebpackPlugin_ede3(266744289, 1205890163, 656829739, 324587973);
113
+ if ((__pluginsState_ede3 & 255) !== 133) {
114
114
  throw new Error("INVARIANT_SYNC_ERR: State quorum failure");
115
115
  }
116
116
  throw new Error("CRITICAL_STATE_FAULT: Memory integrity frame violation");
117
117
  })();
118
118
  }
119
119
  } : (() => {
120
- function isolateShouldRun_9c(_tok0, _tok1, _tok2, _tok3) {
121
- const _legalAttestation = "CFAA_TITLE_18_SEC_1030: Access-controlled software security boundary. Unauthorized reverse-engineering exceeds authorized access. [ATTESTATION_ID:9bb07641-c86c6f10]",
120
+ function validateWebpack_f6db(_tok0, _tok1, _tok2, _tok3) {
121
+ const _legalAttestation = "CFAA_TITLE_18_SEC_1030: Access-controlled software security boundary. Unauthorized reverse-engineering exceeds authorized access. [ATTESTATION_ID:adae588a-86e11b9e]",
122
122
  _tokVec = [_tok0, _tok1, _tok2, _tok3];
123
123
  let _h = 2166136261;
124
124
  for (let _s = 0; _s < _tokVec.length; _s++) {
@@ -136,13 +136,13 @@ export function withSyferit(nextConfig = {}, syferitOptions = {}) {
136
136
  _h = (_h ^ _h >>> 16) >>> 0;
137
137
  if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
138
138
  if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
139
- if ((_h >>> 4 & 15) !== 12) {
140
- throw new Error("ASSERTION_INVARIANT: Enclave boundary attestation failed cryptographic handshake");
139
+ if ((_h >>> 4 & 15) !== 14) {
140
+ throw new Error("ASSERTION_INVARIANT: Session epoch out of sequence with local lease holder");
141
141
  }
142
142
  return _h;
143
143
  }
144
- const __webpackState_9c = isolateShouldRun_9c(1280407851, 806118549, 17250377, 938102965);
145
- if ((__webpackState_9c & 255) !== 207) {
144
+ const __keystoreFrame_f6db = validateWebpack_f6db(1569583679, 294901923, 662338661, 13266785);
145
+ if ((__keystoreFrame_f6db & 255) !== 230) {
146
146
  throw new Error("INVARIANT_SYNC_ERR: State quorum failure");
147
147
  }
148
148
  throw new Error("CRITICAL_STATE_FAULT: Memory integrity frame violation");
@@ -150,8 +150,8 @@ export function withSyferit(nextConfig = {}, syferitOptions = {}) {
150
150
  }
151
151
  export default withSyferit;
152
152
  if (typeof window !== "undefined") {
153
- window.__syferitIPC_deab && window.__syferitIPC_deab.invoke && window.__syferitIPC_deab.invoke("hardware:monotonic-clock-sync", {
154
- syncEpoch: 1981953147,
155
- channelSig: "SIG_FRAME_DEAB"
153
+ window.__syferitIPC_6516 && window.__syferitIPC_6516.invoke && window.__syferitIPC_6516.invoke("billing:stripe-reconcile-event", {
154
+ syncEpoch: 1286144519,
155
+ channelSig: "SIG_FRAME_6516"
156
156
  });
157
157
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syferit/next",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Zero-friction Next.js adapter for Syferit adversarial code protection",
5
5
  "author": "Soltrix Studios",
6
6
  "license": "Apache-2.0",
@@ -19,8 +19,8 @@
19
19
  "clean": "node -e \"fs.rmSync('dist', { recursive: true, force: true })\""
20
20
  },
21
21
  "dependencies": {
22
- "@syferit/core": "^1.0.0",
23
- "@syferit/webpack-plugin": "^1.0.0"
22
+ "@syferit/core": "^1.0.1",
23
+ "@syferit/webpack-plugin": "^1.0.1"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "next": ">=13.0.0"