import type { Profile } from "./types.js"; /** * AR: جذر التثبيت الافتراضي كما نصّت المعمارية v3 §09 — ‎C:\Fantastic‎ على ويندوز، * و‎/opt/fantastic‎ على لينكس حيث ينصّ FHS على أن ‎/opt‎ موضع البرامج المستقلّة بذاتها. * * **ويُحسب مرّةً عند التحميل، وذلك ما كان.** الثابت يظهر في نصّ المساعدة وفي الرسائل، ودالّةٌ * مكانه كانت ستُغيّر شكل عشرة مواضع مقابل لا شيء: المنصّة لا تتغيّر أثناء تشغيل أمر. * EN: The default install root from architecture v3 §09 — `C:\Fantastic` on Windows, and * `/opt/fantastic` on Linux, where the FHS puts self-contained programs. * * **Computed once at load, as it always was.** The constant appears in help text and in * messages, and a function in its place would have reshaped ten call sites in exchange for * nothing: the platform does not change while a command runs. * * **ولذلك تُسأل المنصّة قبل أن يُقرأ الجدول.** ‎currentPlatform()‎ يرمي على منصّةٍ غير مدعومة، * ورميةٌ عند تحميل الوحدة تقع قبل أن يبدأ أيّ أمر: oclif يبتلعها ويحوّلها إلى تحذيرٍ **لكل * أمرٍ في الفهرس** — ‎٧٤١‎ تحذيرًا متطابقًا قبل أن يطبع ‎fantastic --version‎ جوابه على macOS، * وهو جوابٌ لا يحتاج منصّةً أصلًا. والنسخة ‎1.2.0‎ كانت تُحمَّل هناك صامتة. * * فالغياب هنا يعني «لا جذر معتاد على هذه الآلة» لا «توقّف»: ‎looksInstalled('')‎ كاذبة دائمًا، * فيسقط الاستنتاج كما يسقط على آلةٍ فارغة. **والرفض الحقيقيّ يبقى في موضعه** — أوّل عمليةٍ * تحتاج المنصّة فعلًا (تثبيت، تحديث، تحزيم) تنادي ‎currentPlatform()‎ فترى الرسالة نفسها مرّةً * واحدة، في وقتها، وباسم الآلة فيها. * * **Which is why the platform is asked before the table is read.** `currentPlatform()` throws on * an unsupported platform, and a throw at module load happens before any command begins: oclif * swallows it and turns it into a warning **for every command in the manifest** — 741 identical * warnings before `fantastic --version` prints its answer on macOS, an answer that needs no * platform at all. Version 1.2.0 loaded there silently. * * So absence here means "no customary root on this machine" rather than "stop": * `looksInstalled('')` is always false, and resolution fails exactly as it does on an empty * machine. **The real refusal stays where it belongs** — the first operation that genuinely * needs the platform (install, update, bundle) calls `currentPlatform()` and sees the same * message once, at its proper moment, with the machine named in it. */ export declare const APPLIANCE_ROOT: string; export interface ApplianceProfileOptions { root: string; corePort: number; livePort: number; logLevel: string; /** عنوان البوّابة المركزية. غيابه يترك افتراض النواة كما هو. */ centralApiUrl?: string; /** المفتاح العام الذي يُتحقَّق به من الرخص. ليس سرًّا: يتحقّق ولا يوقّع. */ licensePublicKey?: string; } export declare const APPLIANCE_DEFAULTS: { readonly corePort: 80; readonly livePort: 8081; readonly logLevel: "info"; }; export declare function createApplianceProfile(options: ApplianceProfileOptions): Profile; //# sourceMappingURL=appliance.profile.d.ts.map