import type { DiagnosticCheck } from "../check.types.js"; /** * AR: أي ‎node.exe‎ يشغّل هذه العملية الآن، وأين هو. حين يشتكي فنّي يومًا يُقطع السؤال بسطر بدل * تخمين: زمن تشغيل الحزمة أم زمن تشغيل الجهاز؟ والسؤال ليس نظريًّا — أربعة أعطال ميدانية سببها * كان بالضبط أن الواجهة تعمل بـNode الجهاز. * EN: Which `node.exe` is running this process right now, and where it lives. When a technician one * day reports trouble, this settles in a line what would otherwise be guesswork: the bundle's * runtime or the machine's? The question is not theoretical — four field failures came down to * exactly this, the CLI running on the machine's Node. */ export declare const runtimeCheck: DiagnosticCheck; /** * AR: **يمسك خرق القاعدة I آليًّا.** ‎bin\‎ على PATH هو ما يجعل الأمر ‎fantastic‎ متاحًا؛ و‎runtime\‎ * على PATH هو ما يُبطل الميزة كلّها، لأن ‎node‎ المجرّدة تصير نسختَنا فتُكسَر مشاريع العميل. * الأول غيابه إزعاج، والثاني وجوده عطبٌ جسيم — فيُصنَّفان تبعًا لذلك: تحذير وفشل. * EN: **Catches a breach of rule I automatically.** `bin\` on PATH is what makes the `fantastic` * command available; `runtime\` on PATH is what defeats the entire feature, because a bare `node` * then resolves to our copy and the customer's projects break. Missing the first is an * inconvenience; the presence of the second is serious damage — and they are graded accordingly: * a warning and a failure. */ export declare const pathIsolationCheck: DiagnosticCheck; /** * AR: **أيّ ‎fantastic‎ يعمل حين تُكتب الكلمة مجرّدة؟** * * التثبيت يُلحق ‎bin\‎ في **آخر** PATH عمدًا (القاعدة I: لا نحجب شيئًا على جهاز لا نملكه). ونتيجته * أن تثبيتًا قديمًا بـ‎npm install -g‎ — إن بقي على الجهاز — يسبقنا فيفوز، فيكتب الفنّي * ‎fantastic‎ ويصل إلى الواجهة القديمة تعمل بـNode الجهاز. وهذا يُعيد بالضبط العطب الذي وُجدت * هذه الميزة لإسقاطه: على Node 16 تنهار عند التحليل بـ‎Invalid regular expression flags‎ قبل أن * تنفّذ سطرًا. * * رُصد على جهاز عميل حقيقي: النظام مثبَّت وسليم ويعمل، والفنّي يرى شاشة أخطاء لأنه يخاطب نسخة * أخرى تمامًا. ولا شيء في النظام يشتكي، لأن لا شيء فيه معطوب. * EN: **Which `fantastic` runs when the bare word is typed?** * * The installer appends `bin\` to the **end** of PATH deliberately (rule I: we shadow nothing on a * machine we do not own). The consequence is that an older `npm install -g` — if it is still on * the machine — comes first and wins, so the technician types `fantastic` and reaches the old CLI * running on the machine's Node. That reinstates precisely the defect this feature exists to * remove: on Node 16 it dies at parse time with `Invalid regular expression flags` before running * a line. * * Observed on a real customer machine: the system installed, sound and running, while the * technician read a screen of errors because they were addressing an entirely different copy. And * nothing in the system complains, because nothing in it is broken. */ export declare const commandShadowCheck: DiagnosticCheck; export declare const isolationChecks: DiagnosticCheck[]; //# sourceMappingURL=isolation.check.d.ts.map