@tera-system/core 0.4.0 → 0.4.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.
- package/MANIFEST.json +6 -6
- package/RELEASES.md +11 -0
- package/assets/architecture/security-team.dsl +64 -0
- package/core/tera-system/TERA_DISTRIBUTION_POLICY.md +20 -14
- package/core/tera-system/TeraArchitectureMap.md +1 -1
- package/core/tera-system/TeraPolicyMap.md +1 -1
- package/package.json +1 -1
- package/tools/tera-schedule.ps1 +1 -1
package/MANIFEST.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tera-system/core",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Build manifest for the Tera System OpenCode Plugin component.",
|
|
5
5
|
"compatibleEnvironments": [
|
|
6
6
|
"opencode"
|
|
@@ -12,15 +12,15 @@
|
|
|
12
12
|
"coreFiles": 123,
|
|
13
13
|
"tools": 8,
|
|
14
14
|
"projectControlTemplates": 1,
|
|
15
|
-
"assets":
|
|
15
|
+
"assets": 50
|
|
16
16
|
},
|
|
17
17
|
"sha256": {
|
|
18
18
|
"agents": "5d8ba0df7c8de48ff66e2d905fbef9b6fe25414af14faded3cbfd94bec611c26",
|
|
19
19
|
"commands": "f1c11dc4aa91ca6283e6dc890c017474b996f94baed314741386f3d0065a70ee",
|
|
20
|
-
"core/tera-system": "
|
|
21
|
-
"tools": "
|
|
20
|
+
"core/tera-system": "e036bfc2fabda54ce5822f44ea37879aec38f7cb5df9caf5291769e9fe96a833",
|
|
21
|
+
"tools": "60e9fb5fa05afa63053d8f6d80a371cdc288448e7c13831066b4d08f0573539e",
|
|
22
22
|
"core/project-control": "cb979181d50e54c9b9b9173ffc890ca021bfaefe9678b1cad4a2f67ceac3dfdd",
|
|
23
|
-
"assets": "
|
|
23
|
+
"assets": "aba6595329e1b56b29fd677f2075d841c930953cdfa67ec808a85923071c3471"
|
|
24
24
|
},
|
|
25
|
-
"builtAt": "2026-09-
|
|
25
|
+
"builtAt": "2026-09-23"
|
|
26
26
|
}
|
package/RELEASES.md
CHANGED
|
@@ -4,6 +4,17 @@
|
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
+
## 0.4.1 (2026-09-23)
|
|
8
|
+
|
|
9
|
+
### مصالحة التوزيع + مزامنة الأصول (SCP-2026-09-23-002/003)
|
|
10
|
+
|
|
11
|
+
- **RepositoryUrl** = `Teranoo-System-Core` (المصدر) — مستودع الحزم = بناء ونشر فقط.
|
|
12
|
+
- مزامنة أصول الـ bundle من المصدر (architecture + structurizr-mcp + client-templates + الحاسبة) مع استثناء المجلدات الثقيلة.
|
|
13
|
+
- بوّابة `npm run verify:sync` (محتوى + أصول) قبل النشر.
|
|
14
|
+
- تصحيح سياسة التوزيع + خرائط المنظومة + توحيد الإصدارات.
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
7
18
|
## 0.4.0 (2026-09-21)
|
|
8
19
|
|
|
9
20
|
### أوامر التوجيه الذاتي للوكلاء + معالجة الفجوات (SCP-2026-09-21-001/002)
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
workspace "Tera System" "Adversarial security validation team" {
|
|
2
|
+
model {
|
|
3
|
+
# ============================================================
|
|
4
|
+
# Team Security (فريق الحماية) — SCP-2026-09-02-001
|
|
5
|
+
# Context: the four security roles and their relationships
|
|
6
|
+
# ============================================================
|
|
7
|
+
|
|
8
|
+
# --- Roles ---
|
|
9
|
+
drc = person "الدرع (SecurityAgent)" "Defensive security review during development. Prepares defense handoff files, reviews fixes after Red Team findings. Never attacks (protocol §2 role separation)."
|
|
10
|
+
shb = person "الشبح (Red Team Agent)" "Offensive security operator. Authorized adversarial testing: Recon → Map → Attack → Escalate → Prove → Chain → Report. Black Box then Gray/White Box. Evidence-backed findings only."
|
|
11
|
+
ain = person "العين (Security Observer)" "Independent concurrent observer. Monitors logs, resources, canary data, and alerts during engagements. Reports detection gaps. Never attacks or fixes."
|
|
12
|
+
qad = person "القاضي (Security Auditor)" "Independent security auditor. Reviews evidence, matrices (ASVS/WSTG/API), findings, observer report, and retest records. Issues final gate decision: PASS / CONDITIONAL PASS / FAIL / INCOMPLETE."
|
|
13
|
+
tera = person "TeraAgent" "Orchestrator. Activates the team at Phase 7 security gate or on Majed request."
|
|
14
|
+
|
|
15
|
+
# --- Software systems ---
|
|
16
|
+
app = softwareSystem "Target Application" "Application under authorized test — isolated local/staging environment with fake data only."
|
|
17
|
+
reports = softwareSystem "security-reports/" "Adversarial validation outputs — authorization, attack surface, evidence, findings, observer/audit reports, gate decisions. Same repo, outside the application folder."
|
|
18
|
+
tools = softwareSystem "Offensive Toolkit" "Burp Suite Pro, OWASP ZAP, Nmap, ffuf, Nuclei, sqlmap, dalfox, Hydra, Metasploit, John the Ripper, Wireshark, k6. Windows-based (SCP-2026-09-02-001)."
|
|
19
|
+
|
|
20
|
+
# --- Relationships (activation flow) ---
|
|
21
|
+
tera -> shb "activates at Phase 7 / Majed request: SECURITY_TEST_TRIGGER"
|
|
22
|
+
tera -> ain "activates concurrently with Red Team"
|
|
23
|
+
tera -> qad "activates after Red Team + Observer + Fixes + Retest"
|
|
24
|
+
drc -> shb "prepares defense-handoff.md (architecture, roles, permissions matrix) via Tera"
|
|
25
|
+
shb -> app "executes authorized attacks (Black Box then Gray/White Box)"
|
|
26
|
+
ain -> app "observes logs, resources, canary, alerts concurrently"
|
|
27
|
+
ain -> shb "correlates observations with Test IDs"
|
|
28
|
+
shb -> reports "writes authorization, attack surface, evidence, findings"
|
|
29
|
+
ain -> reports "writes observer report"
|
|
30
|
+
qad -> reports "reads all evidence; writes audit report + gate decision"
|
|
31
|
+
qad -> tera "returns gate decision: PASS / CONDITIONAL PASS / FAIL / INCOMPLETE"
|
|
32
|
+
shb -> tools "uses offensive toolkit within written authorization"
|
|
33
|
+
drc -> reports "writes defense-handoff.md and fix-review.md"
|
|
34
|
+
drc -> app "reviews fixes after findings (fix-review.md)"
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
views {
|
|
38
|
+
systemcontext "SecurityTeamContext" {
|
|
39
|
+
include drc shb ain qad tera app reports tools
|
|
40
|
+
title "Team Security (فريق الحماية) — Context"
|
|
41
|
+
description "Four-role adversarial security validation team (SCP-2026-09-02-001). Role separation is mandatory (protocol §2): the attacker does not audit, the observer does not judge."
|
|
42
|
+
autolayout lr
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
styles {
|
|
46
|
+
element "Person" {
|
|
47
|
+
shape person
|
|
48
|
+
background #1168bd
|
|
49
|
+
color #ffffff
|
|
50
|
+
}
|
|
51
|
+
element "Software System" {
|
|
52
|
+
background #1168bd
|
|
53
|
+
color #ffffff
|
|
54
|
+
}
|
|
55
|
+
relationship {
|
|
56
|
+
color #707070
|
|
57
|
+
style solid
|
|
58
|
+
routing direct
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
theme default
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
## 2. نموذج التوزيع
|
|
19
19
|
|
|
20
20
|
```text
|
|
21
|
-
|
|
21
|
+
Teranoo-System-Core (المستودع الأصلي — RepositoryUrl)
|
|
22
22
|
│ إصدار رسمي عبر Tag (tera-vX.Y.Z)
|
|
23
23
|
▼
|
|
24
24
|
tera-fetch.ps1 ← جلب من المستودع الأصلي (HTTPS/SSH موثق) + بناء حزمة متحققة
|
|
@@ -42,7 +42,7 @@ Release Package (ملفات Tera-managed + SHA256SUMS + TERA_RELEASE_MANIFEST.js
|
|
|
42
42
|
|
|
43
43
|
### 2.0 الاستمداد من المستودع الأصلي (نموذج الأصالة — الخيار ب)
|
|
44
44
|
|
|
45
|
-
- **مرساة الثقة:** المستودع الأصلي
|
|
45
|
+
- **مرساة الثقة:** المستودع الأصلي `Teranoo-System-Core` (HTTPS/SSH موثق) هو المصدر الوحيد المعتمد للإصدارات.
|
|
46
46
|
- **القناة:** HTTPS موثوق أو SSH — مصادقة على مستوى git؛ لا تتبع تلقائي لأي فرع.
|
|
47
47
|
- **التثبيت:** الـ Lockfile يحفظ **Commit SHA كامل** للـ Tag — التحقق النهائي هو SHA، لا اسم الفرع.
|
|
48
48
|
- **tera-fetch.ps1** يجلب الـ Tag من `RepositoryUrl` ويبني حزمة متحققة (Manifest + SHA256SUMS) قبل أي تثبيت.
|
|
@@ -54,6 +54,7 @@ Release Package (ملفات Tera-managed + SHA256SUMS + TERA_RELEASE_MANIFEST.js
|
|
|
54
54
|
| القاعدة | الوصف |
|
|
55
55
|
|---|---|
|
|
56
56
|
| الترويس | كل إصدار رسمي = `git tag tera-vX.Y.Z` (مثلاً `tera-v2.5.0`) |
|
|
57
|
+
| تقليد الترقيم | `X.Y.Z` = **إصدار حزمة `@tera-system/core`** (النظام = core) — D2 / SCP-2026-09-23-002 |
|
|
57
58
|
| مرجع الإصدار | الـ Lockfile يحفظ **Commit SHA كامل** + Tag + Version — SHA هو الحقيقة، وليس الفرع |
|
|
58
59
|
| القنوات | `stable` (افتراضي) / `beta` (اختياري) — تُسجَّل في الـ Lockfile |
|
|
59
60
|
| التثبيت | كل عميل يُثبَّت على Tag محدد بوعي؛ عميل يبقى على `tera-v2.0.0` وآخر ينتقل لـ `tera-v2.5.0` |
|
|
@@ -63,10 +64,11 @@ Release Package (ملفات Tera-managed + SHA256SUMS + TERA_RELEASE_MANIFEST.js
|
|
|
63
64
|
|
|
64
65
|
| الحزمة | الاسم (npm) | الإصدار الحالي | الوصف | الملفات الموزعة ضمن الحزمة |
|
|
65
66
|
|---|---|---|---|---|
|
|
66
|
-
| core | `@tera-system/core` | 0.
|
|
67
|
-
| pro | `@tera-system/pro` | 0.2.
|
|
67
|
+
| core | `@tera-system/core` | 0.4.0 | OpenCode Plugin — core governance (23 agents, 35 commands, distribution tools, security team) | `agents/`, `commands/`, `core/`, `assets/`, `tools/`, `scripts/` |
|
|
68
|
+
| pro | `@tera-system/pro` | 0.2.26 | Commercial edition — signed bundle + license gate + heartbeat | `scripts/`, `core/project-control`, `MANIFEST.json`, `opencode.tera.example.json`, `WELCOME.md`, `README.md` |
|
|
68
69
|
|
|
69
|
-
|
|
70
|
+
**مستودع الحزم:** `https://github.com/Alabasi1980/Teranoo-System` — حزمتا npm + الـ bundle الموقّع (بناء ونشر فقط؛ لا محتوى يدوي).
|
|
71
|
+
**المستودع الرسمي (`RepositoryUrl`):** `https://github.com/Alabasi1980/Teranoo-System-Core` — المصدر الوحيد المعتمد لـ `tera-fetch.ps1` و `tera-schedule.ps1` و `tera-update.ps1` (D1 — SCP-2026-09-23-002)
|
|
70
72
|
**Tags:** `tera-vX.Y.Z` — الـ Lockfile يحفظ `Commit SHA` كحقيقة، والقنوات `stable`/`beta`
|
|
71
73
|
> **قاعدة الحزم:** أي تعديل على ملفات `Tera-managed` (`.opencode/`, `tera-system/`, `tera-workshop/tools`) يتطلب Tag جديد + bundle + `npm publish` (core/pro) — وإلا يبقى الزبائن على النسخة القديمة. تعديلات `Teranoo-Research/` أو `project-control/` أو `clients/` لا تتطلب bump.
|
|
72
74
|
|
|
@@ -143,13 +145,13 @@ Release Package (ملفات Tera-managed + SHA256SUMS + TERA_RELEASE_MANIFEST.js
|
|
|
143
145
|
|
|
144
146
|
```powershell
|
|
145
147
|
# عرض الإصدارات المتاحة في المستودع الأصلي
|
|
146
|
-
pwsh .\tools\tera-fetch.ps1 -RepositoryUrl "https://github.com/Alabasi1980/Teranoo-System" -List
|
|
148
|
+
pwsh .\tools\tera-fetch.ps1 -RepositoryUrl "https://github.com/Alabasi1980/Teranoo-System-Core" -List
|
|
147
149
|
|
|
148
150
|
# فحص: هل يوجد إصدار أحدث من المثبت حالياً؟ (قراءة فقط — لا يعدّل شيئاً)
|
|
149
|
-
pwsh .\tools\tera-fetch.ps1 -RepositoryUrl "https://github.com/Alabasi1980/Teranoo-System" -Check -RepoPath "D:\My Projects\TeraWebsite"
|
|
151
|
+
pwsh .\tools\tera-fetch.ps1 -RepositoryUrl "https://github.com/Alabasi1980/Teranoo-System-Core" -Check -RepoPath "D:\My Projects\TeraWebsite"
|
|
150
152
|
|
|
151
153
|
# بناء حزمة إصدار موثقة من المستودع الأصلي
|
|
152
|
-
pwsh .\tools\tera-fetch.ps1 -RepositoryUrl "https://github.com/Alabasi1980/Teranoo-System" -Version tera-v2.5.0 -Channel stable -OutPath "C:\TeraReleases\tera-v2.5.0"
|
|
154
|
+
pwsh .\tools\tera-fetch.ps1 -RepositoryUrl "https://github.com/Alabasi1980/Teranoo-System-Core" -Version tera-v2.5.0 -Channel stable -OutPath "C:\TeraReleases\tera-v2.5.0"
|
|
153
155
|
```
|
|
154
156
|
|
|
155
157
|
**وضع Check:** يقارن الإصدار المثبت في `lock.json` بأحدث إصدار في الأصل، ويخبرك بما يلي:
|
|
@@ -166,7 +168,7 @@ pwsh .\tools\tera-fetch.ps1 -RepositoryUrl "https://github.com/Alabasi1980/Teran
|
|
|
166
168
|
```powershell
|
|
167
169
|
# تسجيل مهمة Windows Task Scheduler (عند تسجيل الدخول + كل 6 ساعات)
|
|
168
170
|
pwsh .\tools\tera-schedule.ps1 `
|
|
169
|
-
-RepositoryUrl "https://github.com/Alabasi1980/Teranoo-System.git" `
|
|
171
|
+
-RepositoryUrl "https://github.com/Alabasi1980/Teranoo-System-Core.git" `
|
|
170
172
|
-RepoPath "D:\My Projects\TeraWebsite"
|
|
171
173
|
|
|
172
174
|
# إزالة المهمة
|
|
@@ -186,10 +188,10 @@ pwsh .\tools\tera-schedule.ps1 -Unregister
|
|
|
186
188
|
pwsh .\tools\tera-update.ps1 -Version tera-v2.5.0 -Channel stable -Mode Plan -SourcePath "C:\TeraReleases\tera-v2.5.0"
|
|
187
189
|
|
|
188
190
|
# فحص جاف مباشرة من المستودع الأصلي (استمداد حي)
|
|
189
|
-
pwsh .\tools\tera-update.ps1 -Version tera-v2.5.0 -Channel stable -Mode Plan -RepositoryUrl "https://github.com/Alabasi1980/
|
|
191
|
+
pwsh .\tools\tera-update.ps1 -Version tera-v2.5.0 -Channel stable -Mode Plan -RepositoryUrl "https://github.com/Alabasi1980/Teranoo-System-Core"
|
|
190
192
|
|
|
191
193
|
# التنفيذ الفعلي من المستودع الأصلي
|
|
192
|
-
pwsh .\tools\tera-update.ps1 -Version tera-v2.5.0 -Channel stable -Mode Apply -RepositoryUrl "https://github.com/Alabasi1980/
|
|
194
|
+
pwsh .\tools\tera-update.ps1 -Version tera-v2.5.0 -Channel stable -Mode Apply -RepositoryUrl "https://github.com/Alabasi1980/Teranoo-System-Core"
|
|
193
195
|
```
|
|
194
196
|
|
|
195
197
|
### 4.3 tera-release.ps1 — بناء الإصدار
|
|
@@ -231,7 +233,7 @@ pwsh .\tools\update-client-repositories.ps1 -Version tera-v2.5.0 -Channel stable
|
|
|
231
233
|
pwsh .\tools\update-client-repositories.ps1 -Version tera-v2.5.0 -Channel stable -Mode Apply -SourcePath "C:\TeraReleases\tera-v2.5.0" -ReposFile "C:\Tera\client-repositories.txt"
|
|
232
234
|
|
|
233
235
|
# دفعات مباشرة من المستودع الأصلي
|
|
234
|
-
pwsh .\tools\update-client-repositories.ps1 -Version tera-v2.5.0 -Channel stable -Mode Apply -RepositoryUrl "https://github.com/Alabasi1980/
|
|
236
|
+
pwsh .\tools\update-client-repositories.ps1 -Version tera-v2.5.0 -Channel stable -Mode Apply -RepositoryUrl "https://github.com/Alabasi1980/Teranoo-System-Core" -ReposFile "C:\Tera\client-repositories.txt"
|
|
235
237
|
```
|
|
236
238
|
|
|
237
239
|
- يقبل ملف قائمة مستودعات (سطر لكل مسار) أو JSON بالشكل `{ "repositories": ["..."] }`
|
|
@@ -266,8 +268,8 @@ pwsh .\tools\update-client-repositories.ps1 -Version tera-v2.5.0 -Channel stable
|
|
|
266
268
|
pwsh .\tools\tera-update.ps1 -Version tera-v2.5.0 -Channel stable -Mode Apply -SourcePath "C:\TeraReleases\tera-v2.5.0"
|
|
267
269
|
|
|
268
270
|
# مباشرة من المستودع الأصلي
|
|
269
|
-
pwsh .\tools\tera-update.ps1 -Version tera-v2.5.0 -Channel stable -Mode Plan -RepositoryUrl "https://github.com/Alabasi1980/
|
|
270
|
-
pwsh .\tools\tera-update.ps1 -Version tera-v2.5.0 -Channel stable -Mode Apply -RepositoryUrl "https://github.com/Alabasi1980/
|
|
271
|
+
pwsh .\tools\tera-update.ps1 -Version tera-v2.5.0 -Channel stable -Mode Plan -RepositoryUrl "https://github.com/Alabasi1980/Teranoo-System-Core"
|
|
272
|
+
pwsh .\tools\tera-update.ps1 -Version tera-v2.5.0 -Channel stable -Mode Apply -RepositoryUrl "https://github.com/Alabasi1980/Teranoo-System-Core"
|
|
271
273
|
```
|
|
272
274
|
|
|
273
275
|
### الاسترجاع (Rollback)
|
|
@@ -306,6 +308,10 @@ pwsh .\tools\update-client-repositories.ps1 -Version tera-v2.5.0 -Channel stable
|
|
|
306
308
|
| الإصدار | التاريخ | القناة | أبرز المحتوى |
|
|
307
309
|
|---|---|---|---|
|
|
308
310
|
| `tera-v1.0.0` | 2026-08-15 | stable | أول إصدار رسمي موثق: آلية توزيع كاملة (release/fetch/update/batch)، تنظيف شامل، وإصلاحات Pilot (gitattributes، commit detection) |
|
|
311
|
+
| `tera-v0.3.1` | 2026-09-18 | stable | Technology Profile `bun-ts-monorepo-sqlite` — Tag على مستودع المصدر `Teranoo-System-Core` (SCP-2026-09-18-001) [Verified] |
|
|
312
|
+
| *(npm)* core `0.4.0` / pro `0.2.26` | 2026-09-21 | stable | أوامر التهيئة الذاتية + معالجة الفجوات (SCP-2026-09-21-001/002) [Verified: packages RELEASES + npm view] |
|
|
313
|
+
|
|
314
|
+
> **الحالة الحالية (2026-09-23):** آخر إصدار منشور على npm = `@tera-system/core 0.4.0` + `@tera-system/pro 0.2.26` [Verified: `npm view`]. آخر Git Tag = `tera-v0.3.1` على `Teranoo-System-Core`. تقليد الترقيم (رقم core مقابل رقم pro) قيد الحسم — SCP-2026-09-23-001.
|
|
309
315
|
|
|
310
316
|
---
|
|
311
317
|
|
|
@@ -26,7 +26,7 @@ It is a map, not a policy source. Rules remain in the files listed in `TeraPolic
|
|
|
26
26
|
| Sub-agent lifecycle | Defines, generates, narrows, activates, and reviews specialized agents | `TeraSubAgents.md`, `AGENT_GENERATION_TEMPLATE.md`, `generated-agents/` |
|
|
27
27
|
| Delivery, handoff, and closure | Produces final delivery readiness, release notes, client handover material, acceptance records, and closure reports | `project-control/DELIVERY_READINESS_REPORT.md`, `project-control/PROJECT_CLOSURE_REPORT.md`, `clients/.../delivery/` |
|
|
28
28
|
| Project implementation knowledge | Maintains concise current-state operational knowledge per screen/module/service | `project-knowledge/` داخل كل تطبيق |
|
|
29
|
-
| Tera distribution and versioning | Builds releases and distributes Tera to client repositories in a versioned, verifiable way; clients derive updates from the origin repository (`https://github.com/Alabasi1980/Teranoo-System`) via fetch + verified release packages (Tag `tera-vX.Y.Z` + Manifest + SHA lockfile + updater tools); npm packages `@tera-system/core 0.
|
|
29
|
+
| Tera distribution and versioning | Builds releases and distributes Tera to client repositories in a versioned, verifiable way; clients derive updates from the origin repository (`https://github.com/Alabasi1980/Teranoo-System-Core`) via fetch + verified release packages (Tag `tera-vX.Y.Z` + Manifest + SHA lockfile + updater tools); npm packages `@tera-system/core 0.4.0` + `@tera-system/pro 0.2.26`; website `https://github.com/Alabasi1980/TeraWebsite` hosts bundle at `https://teranoo.com` and is deployed via `https://coolify.teranoo.com/`; ownership contract separates Tera-managed from client-owned files | `tera-system/TERA_DISTRIBUTION_POLICY.md` (§2.2 الحزم + §2.3 الموقع + §2.0 الأصالة), `tera-workshop/tools/tera-fetch.ps1`, `tera-workshop/tools/tera-release.ps1`, `tera-workshop/tools/tera-update.ps1`, `.tera/lock.json` داخل مستودعات العملاء |
|
|
30
30
|
| Security Team (فريق الحماية) | Adversarial security validation before delivery: الدرع (defensive review during dev) → الشبح (Red Team — authorized attacks, Black Box then Gray/White Box) → العين (concurrent observer) → القاضي (independent audit + gate decision). Activated only at Phase 7 security gate or by Majed request. Outputs under `security-reports/` (same repo, outside the application folder). SCP-2026-09-02-001 | `.opencode/agents/red-team-agent.md`, `.opencode/agents/security-observer.md`, `.opencode/agents/security-auditor.md`, `tera-system/TeraHelperAgents.md` §6.1, `security-reports/`, adversarial protocol v2.0 (outside repo) |
|
|
31
31
|
|
|
32
32
|
## 3. Folder Roles
|
|
@@ -110,7 +110,7 @@ Project files record project-specific decisions.
|
|
|
110
110
|
| Business Transformation Consultant (BTCA) | `.opencode/agents/tera-business-transformation-consultant.md` | `tera-system/consulting-helpers/BTCA_METHODOLOGY_FRAMEWORK.md`, `BTCA_REPORT_TEMPLATES.md` | عميل مستقل للاستشارات الإدارية والتنظيمية غير البرمجية — Track C. SCP-2026-07-29-002. |
|
|
111
111
|
| BTCA — Methodology Framework | `tera-system/consulting-helpers/BTCA_METHODOLOGY_FRAMEWORK.md` | `.opencode/agents/tera-business-transformation-consultant.md` | إطار المنهجية: تصنيف الأدلة الخماسي، مراحل العمل، دليل المقابلات، هيكل التقرير النهائي. |
|
|
112
112
|
| BTCA — Report Templates | `tera-system/consulting-helpers/BTCA_REPORT_TEMPLATES.md` | `.opencode/agents/tera-business-transformation-consultant.md` | قوالب التقارير العشرة الأساسية + التقرير التنفيذي. |
|
|
113
|
-
| Tera distribution (versioned) | `tera-system/TERA_DISTRIBUTION_POLICY.md` (§2.2 الحزم + §2.3 الموقع + §2.0 الأصالة) | `.tera/lock.json` في مستودعات العملاء | توزيع Tera المُروّس: **RepositoryUrl `https://github.com/Alabasi1980/Teranoo-System`** + الحزم `@tera-system/core 0.
|
|
113
|
+
| Tera distribution (versioned) | `tera-system/TERA_DISTRIBUTION_POLICY.md` (§2.2 الحزم + §2.3 الموقع + §2.0 الأصالة) | `.tera/lock.json` في مستودعات العملاء | توزيع Tera المُروّس: **RepositoryUrl `https://github.com/Alabasi1980/Teranoo-System-Core`** (المصدر؛ مستودع الحزم `Teranoo-System` = npm فقط) + الحزم `@tera-system/core 0.4.0` / `@tera-system/pro 0.2.26` (مقاس من npm المنشور 2026-09-23 — SCP-2026-09-23-001) + **الموقع `https://github.com/Alabasi1980/TeraWebsite` + `https://teranoo.com` + منصة النشر `https://coolify.teranoo.com/`** + إصدارات (Tag+SHA) + عقد ملكية + أدوات `tera-workshop/tools/`. أي تعديل على ملفات Tera-managed يتطلب Tag+bundle+npm publish. SCP-2026-08-15-009 + SCP-2026-08-31-002 + SCP-2026-08-31-003. |
|
|
114
114
|
| Source code ownership & pricing | `tera-system/TeraPricingPolicy.md` (§31) + `tera-system/TeraClientPolicy.md` (§9.5) | `tera-workshop/client-templates/contractual/SOURCE_CODE_PURCHASE_ADDENDUM_TEMPLATE.md`، `SOFTWARE_SERVICES_AGREEMENT` §12 | ملكية السورس افتراضياً لـ Tera (لا يُسلَّم للزبون) + خيارا L1 (40%) / L2 (max(3×، 1,000 JOD)) عبر ملحق تعاقدي + L3 (إعادة بيع) مرفوض افتراضياً. SCP-2026-08-29-004. |
|
|
115
115
|
| Prototype pricing mandate | `tera-system/TeraPricingPolicy.md` (§17.5) + `tera-system/TeraClientPolicy.md` (Gate 6) | `tera-workshop/client-templates/commercial/QUOTATION_TEMPLATE.md`, `project-control/TeraPricingCalculator.xlsx` | البروتوتايب التصميمي إلزامي لكل التطبيقات (SCP-2026-08-28-001) وهو **بند مسعّر مشمول**: 10% من السعر النهائي (B57) — يُحتسب تلقائياً في الحاسبة — يُعرض كبند منفصل في العرض — يُلغى إلى 0% فقط باتفاق الطرفين (WAIVED_BY_MAJED + موافقة الزبون). رفض البروتوتايب المعروض لا يُلغي تكلفته (Fix/CR). SCP-2026-09-01-001. |
|
|
116
116
|
| Client letter numbering | `tera-system/TeraClientPolicy.md` (§9.6) + `project-control/CLIENT_CODES.md` | `client-approval/LETTER_LOG.md` في مستودع العميل | ترميز موحد `{كود-العميل}-{النوع}-{السنة}-{التسلسل}` — كود العميل يخصّصه Majed فقط (سجل مركزي) — الأنواع LET/CON/ADD/PAL/DOC/TPL (قابلة للزيادة). SCP-2026-08-29-005. |
|
package/package.json
CHANGED
package/tools/tera-schedule.ps1
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
tera-watch.ps1 -Once at logon and every -IntervalHours hours.
|
|
5
5
|
|
|
6
6
|
Usage:
|
|
7
|
-
tera-schedule.ps1 -RepositoryUrl "https://github.com/Alabasi1980/
|
|
7
|
+
tera-schedule.ps1 -RepositoryUrl "https://github.com/Alabasi1980/Teranoo-System-Core.git" -RepoPath "D:\My Projects\TeraWebsite"
|
|
8
8
|
tera-schedule.ps1 -Unregister
|
|
9
9
|
|
|
10
10
|
Source of truth: tera-system/TERA_DISTRIBUTION_POLICY.md (SCP-2026-08-15-013)
|