@tera-system/pro 0.2.1 → 0.2.2

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/MANIFEST.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tera-system/pro",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Build manifest for the Tera System Pro commercial plugin component (THIN mode — content served from teranoo.com signed bundle).",
5
5
  "compatibleEnvironments": [
6
6
  "opencode"
package/README.md CHANGED
@@ -5,13 +5,25 @@
5
5
  > âڑ ï¸ڈ **ظ‡ط°ظ‡ ط§ظ„ط­ط²ظ…ط© ط§ظ„طھط¬ط§ط±ظٹط© طھطھط·ظ„ط¨ ظ…ظپطھط§ط­ طھط±ط®ظٹطµ طµط§ظ„ط­.** ط¨ط¯ظˆظ† ظ…ظپطھط§ط­طŒ ظ„ط§ طھط¹ظ…ظ„ ط§ظ„ظˆظƒظ„ط§ط، ظˆظ„ط§ ط§ظ„ط£ظˆط§ظ…ط±.
6
6
  > ظ„ظ„ط­طµظˆظ„ ط¹ظ„ظ‰ ظ…ظپطھط§ط­: `https://teranoo.com/pricing`
7
7
 
8
- ## ط§ظ„طھط«ط¨ظٹطھ (ط£ظ…ط± ظˆط§ط­ط¯)
9
-
10
- ```bash
11
- npm install @tera-system/pro
12
- ```
13
-
14
- ط¹ظ†ط¯ ط§ظ„طھط«ط¨ظٹطھطŒ ظٹط¹ظ…ظ„ ط³ظƒط±ط¨طھ `postinstall` طھظ„ظ‚ط§ط¦ظٹط§ظ‹ ط¹ظ„ظ‰ ظ…ط³ط§ط­ط© ط§ظ„ط¹ظ…ظ„ (ط§ظ„ظ…ط¬ظ„ط¯ ط§ظ„ط°ظٹ ظ†ظڈظپظ‘ط° ظپظٹظ‡ `npm install`).
8
+ ## التثبيت (أمر واحد)
9
+
10
+ ```bash
11
+ npm install @tera-system/pro
12
+ ```
13
+
14
+ عند التثبيت، يعمل سكربت `postinstall` تلقائياً على مساحة العمل (المجلد الذي نُفّذ فيه `npm install`).
15
+
16
+ > **⚠️ npm 11+ — السماح للسكربت:** إذا ظهر تحذير `allow-scripts` ولم تُنشأ ملفات `.opencode/`، شغّل:
17
+ > ```bash
18
+ > npm approve-scripts @tera-system/pro
19
+ > npm install @tera-system/pro --force
20
+ > ```
21
+ > أو مباشرة بدون موافقة:
22
+ > ```bash
23
+ > npx tera-restore
24
+ > # أو
25
+ > node node_modules/@tera-system/pro/scripts/install.js
26
+ > ```
15
27
 
16
28
  ظٹظ…ظƒظ† ط¶ط¨ط· ط§ظ„ظˆط¬ظ‡ط© طµط±ط§ط­ط©ظ‹:
17
29
 
package/RELEASES.md CHANGED
@@ -4,6 +4,20 @@
4
4
 
5
5
  ---
6
6
 
7
+ ## 0.2.2 (2026-08-28)
8
+
9
+ ### حل الاستعادة عند الحذف بالخطأ + توافق npm 11
10
+
11
+ **ما تغيّر:**
12
+ - إضافة `bin` جديد: `tera-restore` و `tera-pro-restore` — نفس حل core لكن للحزمة التجارية
13
+ - توثيق `npm approve-scripts @tera-system/pro` كحل لأمان npm 11
14
+ - قسم "الاستعادة عند الحذف بالخطأ" في README
15
+
16
+ **لماذا هذا التحديث:**
17
+ - نفس مشكلة core — حذف `.opencode/agents` بالخطأ كان يحتاج أمراً صريحاً لا يعتمد على `postinstall`
18
+
19
+ ---
20
+
7
21
  ## 0.2.1 (2026-08-28)
8
22
 
9
23
  ### آلية البروتوتايب الإلزامي + مزامنة المنظومة (مع حماية تجارية)
package/WELCOME.md CHANGED
@@ -30,6 +30,13 @@
30
30
  ## ماذا لو توقفت أو حارت؟
31
31
  اكتب `/tera-status` (أين أنت) أو `/tera-diagnose` (فحص ذاتي) — أو سلّم النظام جملة بالعربية تصف مقصدك وسيقودك.
32
32
 
33
+ ## هل حذفت ملفات بالخطأ؟
34
+ إذا اختفت ملفات `.opencode/agents/` بعد `npm install` ولم تظهر، شغّل:
35
+ ```bash
36
+ npx tera-restore
37
+ ```
38
+ ثم أعد فتح OpenCode.
39
+
33
40
  ---
34
41
 
35
42
  **خلاصة:** أنت لست بحاجة لفهم بنية Tera. شغّل الأوامر الأربعة، وافق، وراجع. هذا كل شيء.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tera-system/pro",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Tera System Pro — commercial edition (thin): system files are fetched from teranoo.com as a signed bundle; enforced license gate + heartbeat",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "type": "module",
@@ -17,6 +17,10 @@
17
17
  "LICENSE.md",
18
18
  "RELEASES.md"
19
19
  ],
20
+ "bin": {
21
+ "tera-restore": "scripts/install.js",
22
+ "tera-pro-restore": "scripts/install.js"
23
+ },
20
24
  "scripts": {
21
25
  "postinstall": "node scripts/install.js",
22
26
  "tera-license": "node scripts/tera-license.mjs",