@nibgat/nmcp 0.0.0-stage → 2.0.0

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 (45) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +111 -2
  3. package/dist/auth/vault.d.ts +83 -0
  4. package/dist/auth/vault.js +256 -0
  5. package/dist/auth/vault.js.map +1 -0
  6. package/dist/bin/nmcp.d.ts +2 -0
  7. package/dist/bin/nmcp.js +198 -0
  8. package/dist/bin/nmcp.js.map +1 -0
  9. package/dist/cli/configSnippets.d.ts +11 -0
  10. package/dist/cli/configSnippets.js +57 -0
  11. package/dist/cli/configSnippets.js.map +1 -0
  12. package/dist/config/constants.d.ts +31 -0
  13. package/dist/config/constants.js +46 -0
  14. package/dist/config/constants.js.map +1 -0
  15. package/dist/data/ecosystem.d.ts +187 -0
  16. package/dist/data/ecosystem.js +955 -0
  17. package/dist/data/ecosystem.js.map +1 -0
  18. package/dist/http/client.d.ts +31 -0
  19. package/dist/http/client.js +178 -0
  20. package/dist/http/client.js.map +1 -0
  21. package/dist/http/server.d.ts +17 -0
  22. package/dist/http/server.js +210 -0
  23. package/dist/http/server.js.map +1 -0
  24. package/dist/index.d.ts +8 -0
  25. package/dist/index.js +9 -0
  26. package/dist/index.js.map +1 -0
  27. package/dist/prompts/index.d.ts +2 -0
  28. package/dist/prompts/index.js +132 -0
  29. package/dist/prompts/index.js.map +1 -0
  30. package/dist/resources/index.d.ts +2 -0
  31. package/dist/resources/index.js +108 -0
  32. package/dist/resources/index.js.map +1 -0
  33. package/dist/security/redact.d.ts +2 -0
  34. package/dist/security/redact.js +183 -0
  35. package/dist/security/redact.js.map +1 -0
  36. package/dist/security/validators.d.ts +205 -0
  37. package/dist/security/validators.js +394 -0
  38. package/dist/security/validators.js.map +1 -0
  39. package/dist/server.d.ts +13 -0
  40. package/dist/server.js +44 -0
  41. package/dist/server.js.map +1 -0
  42. package/dist/tools/index.d.ts +7 -0
  43. package/dist/tools/index.js +1323 -0
  44. package/dist/tools/index.js.map +1 -0
  45. package/package.json +67 -5
@@ -0,0 +1,955 @@
1
+ export const PUBLIC_ECOSYSTEM_SERVICES = [
2
+ {
3
+ id: "nibgat-home",
4
+ name: "NİBGAT® Main Portal",
5
+ domain: "nibgat.space",
6
+ url: "https://nibgat.space",
7
+ category: "portal",
8
+ description: "Official NİBGAT® public home, announcements, products, and corporate presence.",
9
+ docsUrl: "https://docs.nibgat.space"
10
+ },
11
+ {
12
+ id: "core-api",
13
+ name: "Core Complex API Gateway (NGate)",
14
+ domain: "core.nibgat.space",
15
+ url: "https://core.nibgat.space",
16
+ category: "gateway",
17
+ description: "Central API gateway routing N - Auth, N - Char, N - Notifier, Organization, Static Data, and Front/Support endpoints.",
18
+ docsUrl: "https://docs.nibgat.space/core-complex"
19
+ },
20
+ {
21
+ id: "nauth",
22
+ name: "N - Auth Identity & SSO",
23
+ domain: "nauth.nibgat.space",
24
+ url: "https://nauth.nibgat.space",
25
+ category: "identity",
26
+ description: "Unified Single Sign-On, OAuth 2.0, MFA/2FA, and session management across the NİBGAT ecosystem.",
27
+ docsUrl: "https://docs.nibgat.space/nauth"
28
+ },
29
+ {
30
+ id: "nchar",
31
+ name: "N - Char Account & Profile Hub",
32
+ domain: "nchar.nibgat.space",
33
+ url: "https://nchar.nibgat.space",
34
+ category: "identity",
35
+ description: "User profile management, public developer identities, contact channels, and avatar media.",
36
+ docsUrl: "https://docs.nibgat.space/nchar"
37
+ },
38
+ {
39
+ id: "ngit",
40
+ name: "N - Git — Git Hosting, CI/CD & OCI Registry",
41
+ domain: "git.nibgat.space",
42
+ url: "https://git.nibgat.space",
43
+ category: "developer",
44
+ description: "Self-hosted Git Smart HTTP/SSH hosting, Issues, PRs, Releases, Release-to-Deploy pipelines, Self-Hosted Runners, and OCI v2 Container Registry.",
45
+ docsUrl: "https://docs.nibgat.space/ngit"
46
+ },
47
+ {
48
+ id: "nmail",
49
+ name: "N - Mail & N - Notifier",
50
+ domain: "mail.nibgat.space",
51
+ url: "https://mail.nibgat.space",
52
+ category: "communication",
53
+ description: "Domain mail hosting, DKIM/DNS verification, webmail, aliases, app passwords, and user notifications.",
54
+ docsUrl: "https://docs.nibgat.space/mail"
55
+ },
56
+ {
57
+ id: "nfont",
58
+ name: "N - Font Typography CDN",
59
+ domain: "fonts.nibgat.space",
60
+ url: "https://fonts.nibgat.space",
61
+ category: "assets",
62
+ description: "Self-hosted privacy-first webfont delivery and typography catalog.",
63
+ docsUrl: "https://docs.nibgat.space/fonts"
64
+ },
65
+ {
66
+ id: "cdn",
67
+ name: "NİBGAT Edge CDN",
68
+ domain: "cdn.nibgat.space",
69
+ url: "https://cdn.nibgat.space",
70
+ category: "assets",
71
+ description: "Public static media, user avatars, release assets, and brand asset delivery network.",
72
+ docsUrl: "https://docs.nibgat.space/cdn"
73
+ },
74
+ {
75
+ id: "nsupport",
76
+ name: "N - Support Ticket Center",
77
+ domain: "support.nibgat.space",
78
+ url: "https://support.nibgat.space",
79
+ category: "communication",
80
+ description: "Developer, organization, partner, and member support ticketing system.",
81
+ docsUrl: "https://docs.nibgat.space/support"
82
+ },
83
+ {
84
+ id: "dashboard",
85
+ name: "NİBGAT Developer & User Dashboard",
86
+ domain: "dashboard.nibgat.space",
87
+ url: "https://dashboard.nibgat.space",
88
+ category: "portal",
89
+ description: "Unified web workspace for managing organizations, apps, services, and account telemetry.",
90
+ docsUrl: "https://docs.nibgat.space/dashboard"
91
+ },
92
+ {
93
+ id: "ncore-ui-kit",
94
+ name: "NCore UI Kit 2.0",
95
+ domain: "ncore.nibgat.space",
96
+ url: "https://ncore.nibgat.space",
97
+ category: "developer",
98
+ description: "Cross-platform React Native & Web design system, theme tokens, localization, and component library.",
99
+ docsUrl: "https://ncore.nibgat.space"
100
+ },
101
+ {
102
+ id: "docs",
103
+ name: "NİBGAT Documentation Hub",
104
+ domain: "docs.nibgat.space",
105
+ url: "https://docs.nibgat.space",
106
+ category: "docs",
107
+ description: "Central technical documentation for Core Complex APIs, N - Git, ncli, nmcp, and deployment pipelines.",
108
+ docsUrl: "https://docs.nibgat.space"
109
+ },
110
+ {
111
+ id: "ncli",
112
+ name: "ncli — Official Core Complex CLI",
113
+ domain: "cli.nibgat.space",
114
+ url: "https://cli.nibgat.space",
115
+ category: "developer",
116
+ description: "Command-line tool for N - Auth login, AES-256-GCM encrypted vault management, N - Git workflows, releases, and self-hosted runners.",
117
+ docsUrl: "https://docs.nibgat.space/cli"
118
+ },
119
+ {
120
+ id: "nmcp",
121
+ name: "nmcp — Official Model Context Protocol Server",
122
+ domain: "mcp.nibgat.space",
123
+ url: "https://mcp.nibgat.space",
124
+ category: "developer",
125
+ description: "AI agent bridge exposing Core Complex APIs, N - Git repositories, CI/CD pipelines, and NCore standards via MCP.",
126
+ docsUrl: "https://docs.nibgat.space/mcp"
127
+ },
128
+ {
129
+ id: "nbuyment",
130
+ name: "N - Buyment — Unified Billing, Wallet & e-Invoicing",
131
+ domain: "buyment.nibgat.space",
132
+ url: "https://buyment.nibgat.space",
133
+ category: "commerce",
134
+ description: "Unified commerce, TRY prepaid wallet, subscriptions, PayTR & Bank Transfer checkout, and automated e-Invoice/e-Archive portal.",
135
+ docsUrl: "https://docs.nibgat.space/api/buyment"
136
+ },
137
+ {
138
+ id: "ncloud",
139
+ name: "N - Cloud — Cloud Infrastructure & Physical Hardware",
140
+ domain: "cloud.nibgat.space",
141
+ url: "https://cloud.nibgat.space",
142
+ category: "cloud",
143
+ description: "Turkey-first cloud platform (N - Compute, N - Run, N - Storage, N - Net, N - Vault) and physical hardware rental/sales (N - Metal & N - Hardware).",
144
+ docsUrl: "https://docs.nibgat.space/api/cloud"
145
+ }
146
+ ];
147
+ export const NCLI_COMMAND_GUIDES = {
148
+ auth: {
149
+ topic: "auth",
150
+ summary: "Authenticate with N - Auth SSO or N - Git Personal Access Tokens and store credentials in the local AES-256-GCM encrypted vault (~/.ncli/credentials.enc).",
151
+ docsUrl: "https://docs.nibgat.space/cli/auth",
152
+ prerequisites: [
153
+ "Node.js >= 22.0.0 installed",
154
+ "ncli installed globally (npm i -g @nibgat/ncli) or invoked via npx @nibgat/ncli",
155
+ "Active NİBGAT account at https://nauth.nibgat.space"
156
+ ],
157
+ recipes: [
158
+ {
159
+ command: "ncli auth login",
160
+ description: "Interactive login storing encrypted credentials in ~/.ncli/credentials.enc.",
161
+ flags: [
162
+ "--profile <name>",
163
+ "--token <ngit_pat_...>",
164
+ "--core-url <url>",
165
+ "--git-url <url>"
166
+ ]
167
+ },
168
+ {
169
+ command: "ncli auth status",
170
+ description: "Display active profile, endpoint URLs, and masked credential status without printing secrets.",
171
+ flags: [
172
+ "--profile <name>",
173
+ "--json"
174
+ ]
175
+ },
176
+ {
177
+ command: "ncli auth switch <profile>",
178
+ description: "Switch active named profile (e.g. default, staging, ci)."
179
+ },
180
+ {
181
+ command: "ncli auth logout",
182
+ description: "Revoke local encrypted credentials for the active profile.",
183
+ flags: [
184
+ "--profile <name>",
185
+ "--all"
186
+ ]
187
+ }
188
+ ],
189
+ securityNotes: [
190
+ "Never pass raw tokens directly into shell history on shared machines; prefer interactive stdin or NCLI_TOKEN / NGIT_TOKEN environment variables.",
191
+ "nmcp automatically reads ~/.ncli/credentials.enc and masks all secrets in outbound responses."
192
+ ]
193
+ },
194
+ pipeline: {
195
+ topic: "pipeline",
196
+ summary: "Initialize, validate, and inspect .ngit-deploy.json release-to-deploy CI/CD pipeline manifests for Docker or Static projects.",
197
+ docsUrl: "https://docs.nibgat.space/cli/pipeline",
198
+ prerequisites: [
199
+ "Git repository with remote hosted on https://git.nibgat.space",
200
+ "Dockerfile (for docker pipelines) or package.json build script (for static pipelines)"
201
+ ],
202
+ recipes: [
203
+ {
204
+ command: "ncli pipeline init --type docker --image <owner>/<image> --compose-service <service>",
205
+ description: "Generate a schema-valid .ngit-deploy.json manifest for containerized services.",
206
+ flags: [
207
+ "--type docker|static",
208
+ "--image <owner/name>",
209
+ "--dockerfile Dockerfile",
210
+ "--target production",
211
+ "--compose-service <name>",
212
+ "--on-push false"
213
+ ]
214
+ },
215
+ {
216
+ command: "ncli pipeline init --type static --build-script web:build --dist-dir dist --target-dir /var/www/<site>",
217
+ description: "Generate a schema-valid .ngit-deploy.json manifest for static web bundles.",
218
+ flags: [
219
+ "--build-script <script>",
220
+ "--dist-dir <dir>",
221
+ "--target-dir /var/www/<name>"
222
+ ]
223
+ },
224
+ {
225
+ command: "ncli pipeline validate",
226
+ description: "Validate .ngit-deploy.json schema and security rules locally before committing.",
227
+ flags: [
228
+ "--file .ngit-deploy.json",
229
+ "--json"
230
+ ]
231
+ },
232
+ {
233
+ command: "ncli pipeline status <owner>/<repo>",
234
+ description: "Inspect recent deployment runs, stage transitions, and build duration.",
235
+ flags: [
236
+ "--limit 10",
237
+ "--json"
238
+ ]
239
+ }
240
+ ],
241
+ securityNotes: [
242
+ "Keep onPush: false so production deployments happen strictly on reviewed releases.",
243
+ "Static targetDir must always reside under /var/www/<app-name> with zero path traversal."
244
+ ]
245
+ },
246
+ runner: {
247
+ topic: "runner",
248
+ summary: "Provision and manage self-hosted N - Git deployment runners that verify HMAC-SHA256 webhooks and execute Docker/Static builds.",
249
+ docsUrl: "https://docs.nibgat.space/cli/runner",
250
+ prerequisites: [
251
+ "Linux server with Docker Engine & Docker Compose v2 (or Node.js + rsync for static sites)",
252
+ "Repository admin access on https://git.nibgat.space",
253
+ "Runner token (ngit_run_*) generated for the repository"
254
+ ],
255
+ recipes: [
256
+ {
257
+ command: "ncli runner init --repo <owner>/<repo> --name <runner-name>",
258
+ description: "Bootstrap a self-hosted runner configuration and register webhook delivery.",
259
+ flags: [
260
+ "--repo <owner/repo>",
261
+ "--name <hostname>",
262
+ "--bind 127.0.0.1",
263
+ "--port 4290"
264
+ ]
265
+ },
266
+ {
267
+ command: "ncli runner list --repo <owner>/<repo>",
268
+ description: "List registered runners, last-seen timestamps, and health status."
269
+ },
270
+ {
271
+ command: "ncli runner start",
272
+ description: "Start the runner daemon in foreground or install as a systemd service.",
273
+ flags: [
274
+ "--systemd",
275
+ "--config /etc/nibgat-runner/config.json"
276
+ ]
277
+ },
278
+ {
279
+ command: "ncli runner rotate-secret --repo <owner>/<repo>",
280
+ description: "Rotate HMAC-SHA256 webhook signing secret and runner token."
281
+ }
282
+ ],
283
+ securityNotes: [
284
+ "Bind the runner listener strictly to loopback/internal Docker bridge or terminate TLS behind Nginx with strict IP/HMAC validation.",
285
+ "Never commit ngit_run_* tokens or webhook secrets to Git."
286
+ ]
287
+ },
288
+ git: {
289
+ topic: "git",
290
+ summary: "Interact with N - Git repositories, branches, issues, pull requests, and clone URLs.",
291
+ docsUrl: "https://docs.nibgat.space/ngit",
292
+ prerequisites: [
293
+ "Authenticated ncli session or NGIT_TOKEN (ngit_pat_*)"
294
+ ],
295
+ recipes: [
296
+ {
297
+ command: "ncli git repos list",
298
+ description: "List repositories accessible to your account or organization.",
299
+ flags: [
300
+ "--owner <slug>",
301
+ "--query <term>",
302
+ "--json"
303
+ ]
304
+ },
305
+ {
306
+ command: "ncli git repo info <owner>/<repo>",
307
+ description: "Show repository metadata, branches, tags, open issues, and release counts."
308
+ },
309
+ {
310
+ command: "ncli git issues list <owner>/<repo>",
311
+ description: "List issues and pull requests with optional kind/state filters.",
312
+ flags: [
313
+ "--kind issue|pr",
314
+ "--state open|closed|all"
315
+ ]
316
+ },
317
+ {
318
+ command: "ncli git issues create <owner>/<repo> --title \"...\" --body \"...\"",
319
+ description: "Create a new issue in a repository.",
320
+ flags: [
321
+ "--title <text>",
322
+ "--body <markdown>",
323
+ "--assignee <username>"
324
+ ]
325
+ }
326
+ ],
327
+ securityNotes: [
328
+ "Use scoped Personal Access Tokens (repo:read vs repo:write) matching the principle of least privilege."
329
+ ]
330
+ },
331
+ registry: {
332
+ topic: "registry",
333
+ summary: "Authenticate Docker with git.nibgat.space OCI Container Registry v2 and inspect/push tagged container images.",
334
+ docsUrl: "https://docs.nibgat.space/ngit/registry",
335
+ prerequisites: [
336
+ "Docker CLI installed",
337
+ "N - Git PAT with registry:read / registry:write scopes"
338
+ ],
339
+ recipes: [
340
+ {
341
+ command: "ncli registry login",
342
+ description: "Pipe encrypted vault credentials into 'docker login git.nibgat.space --password-stdin'."
343
+ },
344
+ {
345
+ command: "ncli registry list",
346
+ description: "List container image repositories, tags, digests, and pull commands.",
347
+ flags: [
348
+ "--owner <slug>",
349
+ "--json"
350
+ ]
351
+ },
352
+ {
353
+ command: "docker pull git.nibgat.space/<owner>/<image>:<tag>",
354
+ description: "Pull a published container image from N - Git OCI Registry."
355
+ }
356
+ ],
357
+ securityNotes: [
358
+ "Always pipe tokens via --password-stdin instead of passing -p on the command line."
359
+ ]
360
+ },
361
+ mail: {
362
+ topic: "mail",
363
+ summary: "Inspect N - Mail domains, DNS/DKIM status, mailboxes, and N - Notifier notifications.",
364
+ docsUrl: "https://docs.nibgat.space/mail",
365
+ prerequisites: [
366
+ "Authenticated N - Auth SSO session or Core Complex Bearer token"
367
+ ],
368
+ recipes: [
369
+ {
370
+ command: "ncli mail domains list",
371
+ description: "List mail domains linked to your account or organization.",
372
+ flags: [
373
+ "--org <organizationID>",
374
+ "--json"
375
+ ]
376
+ },
377
+ {
378
+ command: "ncli mail notifications list",
379
+ description: "Fetch recent account and service notifications from N - Notifier."
380
+ }
381
+ ],
382
+ securityNotes: [
383
+ "App passwords and mailbox credentials are never printed in CLI logs or MCP tool responses."
384
+ ]
385
+ },
386
+ support: {
387
+ topic: "support",
388
+ summary: "List and submit N - Support tickets across developer, organization, partner, and member tracks.",
389
+ docsUrl: "https://docs.nibgat.space/support",
390
+ prerequisites: [
391
+ "Authenticated N - Auth SSO session or Core Complex Bearer token"
392
+ ],
393
+ recipes: [
394
+ {
395
+ command: "ncli support list",
396
+ description: "List your open and historical support tickets.",
397
+ flags: [
398
+ "--status <status>",
399
+ "--page 1",
400
+ "--limit 20",
401
+ "--json"
402
+ ]
403
+ },
404
+ {
405
+ command: "ncli support create --subject \"...\" --description \"...\" --category technical --priority normal",
406
+ description: "Open a new support ticket routed to NİBGAT Support.",
407
+ flags: [
408
+ "--type developer|organization|partner|member",
409
+ "--category technical|bug_report|feature_request|security|account|billing|general",
410
+ "--priority low|normal|high|urgent"
411
+ ]
412
+ }
413
+ ],
414
+ securityNotes: [
415
+ "Redact tokens, passwords, and private keys before attaching logs to support tickets."
416
+ ]
417
+ },
418
+ profile: {
419
+ topic: "profile",
420
+ summary: "Inspect your active N - Auth identity and N - Char profile or resolve public developer profiles.",
421
+ docsUrl: "https://docs.nibgat.space/nchar",
422
+ prerequisites: [
423
+ "Public profile lookup requires no auth; personal profile requires N - Auth SSO or Bearer token"
424
+ ],
425
+ recipes: [
426
+ {
427
+ command: "ncli profile me",
428
+ description: "Fetch the authenticated user's N - Char profile summary."
429
+ },
430
+ {
431
+ command: "ncli profile show <username>",
432
+ description: "View public N - Char profile metadata for a username."
433
+ }
434
+ ],
435
+ securityNotes: [
436
+ "Only public or explicitly consented profile fields are returned."
437
+ ]
438
+ },
439
+ release: {
440
+ topic: "release",
441
+ summary: "Publish semantic version releases on N - Git that automatically tag commits and trigger Release-to-Deploy pipelines.",
442
+ docsUrl: "https://docs.nibgat.space/ngit/releases",
443
+ prerequisites: [
444
+ "Clean working tree with commits pushed to https://git.nibgat.space",
445
+ "Validated .ngit-deploy.json at repository root",
446
+ "N - Git write permission on the target repository"
447
+ ],
448
+ recipes: [
449
+ {
450
+ command: "ncli release list <owner>/<repo>",
451
+ description: "List existing releases, tag names, commit SHAs, and archive URLs."
452
+ },
453
+ {
454
+ command: "ncli release create <owner>/<repo> --tag v1.0.0 --title \"v1.0.0\" --notes \"Release summary\"",
455
+ description: "Create a Git tag and publish a release on N - Git, triggering the auto-deploy webhook.",
456
+ flags: [
457
+ "--tag <semver>",
458
+ "--target <branch>",
459
+ "--title <title>",
460
+ "--notes <markdown>",
461
+ "--draft",
462
+ "--prerelease"
463
+ ]
464
+ },
465
+ {
466
+ command: "ncli deploy trigger <owner>/<repo> --ref v1.0.0",
467
+ description: "Manually trigger a deployment for a specific branch or tag reference."
468
+ }
469
+ ],
470
+ securityNotes: [
471
+ "Use --draft to stage release notes before triggering production deployment webhooks.",
472
+ "Always run 'ncli pipeline validate' before publishing a release."
473
+ ]
474
+ },
475
+ buyment: {
476
+ topic: "buyment",
477
+ summary: "Inspect N - Buyment catalog, prepaid TRY wallet balance, top-ups, subscriptions, orders, and Trendyol e-Fatura/e-Arşiv invoices.",
478
+ docsUrl: "https://docs.nibgat.space/api/buyment",
479
+ prerequisites: [
480
+ "Authenticated N - Auth SSO session or Core Complex Bearer token for personal billing endpoints"
481
+ ],
482
+ recipes: [
483
+ {
484
+ command: "ncli buyment catalog",
485
+ description: "List all active N - Buyment products, plans, and VAT-inclusive TRY pricing."
486
+ },
487
+ {
488
+ command: "ncli buyment wallet",
489
+ description: "Inspect your prepaid TRY wallet balance and recent ledger activity."
490
+ },
491
+ {
492
+ command: "ncli buyment topup --amount-try 500 --method paytr_card",
493
+ description: "Initiate a PayTR card or bank_transfer wallet top-up."
494
+ },
495
+ {
496
+ command: "ncli buyment invoices",
497
+ description: "List issued e-Fatura / e-Arşiv invoices and ETTN references."
498
+ }
499
+ ],
500
+ securityNotes: [
501
+ "Payment credentials and card tokens are never printed or persisted in local CLI logs."
502
+ ]
503
+ },
504
+ cloud: {
505
+ topic: "cloud",
506
+ summary: "List global N - Cloud regions (Istanbul tr-ist-1 active; EU/US/AP coming soon), deploy N - Compute servers, manage S3/VPC/Container resources, and order physical hardware.",
507
+ docsUrl: "https://docs.nibgat.space/api/cloud",
508
+ prerequisites: [
509
+ "Authenticated N - Auth session",
510
+ "Sufficient N - Buyment TRY wallet balance for paid server deployments"
511
+ ],
512
+ recipes: [
513
+ {
514
+ command: "ncli cloud regions",
515
+ description: "Show all 7 N - Cloud regions with live vs coming_soon status."
516
+ },
517
+ {
518
+ command: "ncli cloud catalog --region tr-ist-1",
519
+ description: "List live N - Compute, N - Storage, N - Metal, and N - Hardware catalog items with TRY pricing."
520
+ },
521
+ {
522
+ command: "ncli cloud servers create --name ist-api-01 --plan ist-c2-m4 --region tr-ist-1",
523
+ description: "Provision a new N - Compute server in Istanbul."
524
+ },
525
+ {
526
+ command: "ncli cloud servers power <id> --action reboot",
527
+ description: "Execute start, stop, reboot, or poweroff power actions."
528
+ },
529
+ {
530
+ command: "ncli cloud hardware order --item nmtl-epyc12 --delivery colocation_ist1",
531
+ description: "Submit an N - Metal bare-metal rental or N - Hardware purchase order."
532
+ }
533
+ ],
534
+ securityNotes: [
535
+ "Regions marked coming_soon reject provisioning requests with HTTP 422 until activated."
536
+ ]
537
+ }
538
+ };
539
+ export const RESOURCE_ECOSYSTEM_ARCHITECTURE = `# NİBGAT® Core Complex — Public Architecture Overview
540
+
541
+ ## 1. Domain & Service Map
542
+ - **https://nibgat.space** — Corporate & public product showcase.
543
+ - **https://core.nibgat.space** — Central Core Complex API Gateway (NGate) serving:
544
+ - \`/healthcheck\` — Gateway liveness & readiness probe
545
+ - \`/nauth/*\` — Identity, SSO sessions, OAuth 2.0, MFA/2FA
546
+ - \`/nchar/*\` — User profile management & public developer profiles
547
+ - \`/nnotifier/*\` — N - Mail domains, mailboxes, webmail, and user notifications
548
+ - \`/front/*\` — Public announcements, products, legal documents, and N - Support tickets
549
+ - \`/organization/*\` & \`/static-data/*\` — Public organization metadata and reference data
550
+ - **https://nauth.nibgat.space** — N - Auth web login & SSO portal.
551
+ - **https://nchar.nibgat.space** — N - Char account & profile portal.
552
+ - **https://git.nibgat.space** — N - Git v2.0 platform:
553
+ - Git Smart HTTP & SSH repository hosting
554
+ - REST API at \`/api/v1/*\` (repos, issues, PRs, releases, deployments, runners, tokens, webhooks)
555
+ - OCI Container Registry v2 at \`/v2/*\`
556
+ - **https://mail.nibgat.space** — N - Mail webmail and mail domain workspace.
557
+ - **https://support.nibgat.space** — N - Support ticket management portal.
558
+ - **https://dashboard.nibgat.space** — Developer & user workspace dashboard.
559
+ - **https://fonts.nibgat.space** — N - Font self-hosted typography CDN.
560
+ - **https://cdn.nibgat.space** — Public edge CDN for media and static assets.
561
+ - **https://ncore.nibgat.space** — NCore UI Kit 2.0 documentation & design system showcase.
562
+ - **https://docs.nibgat.space** — Central developer documentation hub.
563
+ - **https://cli.nibgat.space** — Official \`ncli\` CLI portal.
564
+ - **https://mcp.nibgat.space** — Official \`nmcp\` MCP server portal.
565
+
566
+ ## 2. Authentication & Security Boundaries
567
+ 1. **N - Auth SSO Cookie (\`nauth_sso_sid\`)**: HttpOnly, SameSite=Lax, Secure cookie shared across trusted \`*.nibgat.space\` web origins.
568
+ 2. **Bearer Access Tokens**: Supported by Core Complex SSO/API endpoints (\`Authorization: Bearer <token>\`).
569
+ 3. **N - Git Personal Access Tokens (\`ngit_pat_*\`)**: SHA-256 hashed in RethinkDB, scoped (\`repo:read\`, \`repo:write\`, \`registry:read\`, \`registry:write\`).
570
+ 4. **N - Git Runner Tokens (\`ngit_run_*\`)**: Repository-scoped runner authentication for self-hosted CI/CD runners.
571
+ 5. **Local Encrypted Credential Vault**: \`ncli\` stores local credentials in \`~/.ncli/credentials.enc\` encrypted with AES-256-GCM; \`nmcp\` reuses this vault in read-only mode and redacts all secret material before returning tool outputs.
572
+
573
+ ## 3. Release-to-Deploy CI/CD Flow
574
+ 1. Developer commits a validated \`.ngit-deploy.json\` manifest at the repository root.
575
+ 2. Developer publishes a release via \`ncli release create\` or \`ngit_release_create\`.
576
+ 3. N - Git creates the annotated tag and dispatches an HMAC-SHA256 signed \`X-NGit-Signature-256\` webhook to the deployer / self-hosted runner.
577
+ 4. For \`docker\` pipelines: runner exports the exact Git archive, builds the container image, pushes \`git.nibgat.space/<owner>/<image>:<tag>\` and \`:latest\`, and performs a zero-downtime Docker Compose container recreate.
578
+ 5. For \`static\` pipelines: runner installs dependencies, runs the allowlisted \`buildScript\`, and atomically syncs \`distDir\` to \`/var/www/<site>\` via \`rsync -a --delete\`.
579
+ 6. Live stage transitions and logs stream to \`GET /api/v1/repos/:owner/:repo/deployments\`.
580
+ `;
581
+ export const RESOURCE_CLI_REFERENCE = `# ncli — Official NİBGAT Core Complex CLI Reference
582
+
583
+ Documentation: https://docs.nibgat.space/cli
584
+
585
+ ## Installation
586
+ \`\`\`bash
587
+ npm install -g @nibgat/ncli
588
+ # or run on demand:
589
+ npx @nibgat/ncli --help
590
+ \`\`\`
591
+
592
+ ## Global Flags & Environment Variables
593
+ - \`--profile <name>\` / \`NCLI_PROFILE\`: Select named credential profile (default: \`default\`).
594
+ - \`--core-url <url>\` / \`NCLI_CORE_URL\`: Override Core Complex API URL (default: \`https://core.nibgat.space\`).
595
+ - \`--git-url <url>\` / \`NCLI_GIT_URL\`: Override N - Git API URL (default: \`https://git.nibgat.space\`).
596
+ - \`NCLI_TOKEN\`: Bearer token for Core Complex APIs (takes precedence over vault).
597
+ - \`NGIT_TOKEN\`: N - Git Personal Access Token (\`ngit_pat_*\`) for git.nibgat.space APIs.
598
+ - \`NCLI_SESSION_COOKIE\`: Active N - Auth SSO session token/cookie for SSO endpoints.
599
+ - \`--json\`: Machine-readable JSON output.
600
+
601
+ ## Command Tree
602
+ ### Authentication & Profiles
603
+ - \`ncli auth login [--profile <name>] [--token <pat>]\`
604
+ - \`ncli auth status [--json]\`
605
+ - \`ncli auth switch <profile>\`
606
+ - \`ncli auth logout [--all]\`
607
+
608
+ ### Profile (N - Char)
609
+ - \`ncli profile me\`
610
+ - \`ncli profile show <username>\`
611
+
612
+ ### N - Git Repositories, Issues & Releases
613
+ - \`ncli git repos list [--owner <slug>] [--query <q>]\`
614
+ - \`ncli git repo info <owner>/<repo>\`
615
+ - \`ncli git issues list <owner>/<repo> [--kind issue|pr] [--state open|closed|all]\`
616
+ - \`ncli git issues create <owner>/<repo> --title <t> --body <b>\`
617
+ - \`ncli release list <owner>/<repo>\`
618
+ - \`ncli release create <owner>/<repo> --tag <vX.Y.Z> [--target main] [--title <t>] [--notes <md>]\`
619
+
620
+ ### Pipelines & Deployments
621
+ - \`ncli pipeline init --type docker|static [...]\`
622
+ - \`ncli pipeline validate [--file .ngit-deploy.json]\`
623
+ - \`ncli pipeline status <owner>/<repo>\`
624
+ - \`ncli deploy trigger <owner>/<repo> --ref <tag-or-branch>\`
625
+
626
+ ### Self-Hosted Runners
627
+ - \`ncli runner init --repo <owner>/<repo> --name <runner>\`
628
+ - \`ncli runner list --repo <owner>/<repo>\`
629
+ - \`ncli runner start [--systemd]\`
630
+ - \`ncli runner rotate-secret --repo <owner>/<repo>\`
631
+
632
+ ### Container Registry (OCI v2)
633
+ - \`ncli registry login\`
634
+ - \`ncli registry list [--owner <slug>]\`
635
+
636
+ ### Mail & Support
637
+ - \`ncli mail domains list\`
638
+ - \`ncli mail notifications list\`
639
+ - \`ncli support list\`
640
+ - \`ncli support create --subject <s> --description <d> [--category technical] [--priority normal]\`
641
+ `;
642
+ export const PIPELINE_JSON_SCHEMA = {
643
+ $schema: "https://json-schema.org/draft/2020-12/schema",
644
+ $id: "https://docs.nibgat.space/schemas/ngit-deploy.schema.json",
645
+ title: "N - Git Release-to-Deploy Pipeline Configuration (.ngit-deploy.json)",
646
+ description: "Strict schema for NİBGAT Core Complex Docker and Static deployment pipelines.",
647
+ oneOf: [
648
+ {
649
+ type: "object",
650
+ additionalProperties: false,
651
+ required: [
652
+ "type",
653
+ "image"
654
+ ],
655
+ properties: {
656
+ type: {
657
+ const: "docker"
658
+ },
659
+ image: {
660
+ type: "string",
661
+ pattern: "^[a-z0-9][a-z0-9._-]{0,63}/[a-z0-9][a-z0-9._-]{0,63}$",
662
+ description: "Target OCI image path without registry host (e.g. 'nibgat/my-api')."
663
+ },
664
+ dockerfile: {
665
+ type: "string",
666
+ default: "Dockerfile",
667
+ description: "Relative path to Dockerfile inside repository (no '..' or leading '/')."
668
+ },
669
+ context: {
670
+ type: "string",
671
+ default: ".",
672
+ description: "Relative Docker build context directory (no '..' or leading '/')."
673
+ },
674
+ target: {
675
+ type: "string",
676
+ pattern: "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,63}$",
677
+ description: "Optional multi-stage Dockerfile target (e.g. 'production')."
678
+ },
679
+ composeService: {
680
+ type: "string",
681
+ pattern: "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,63}$",
682
+ description: "Optional Docker Compose service name to recreate with zero downtime."
683
+ },
684
+ composeProject: {
685
+ type: "string",
686
+ pattern: "^[a-z0-9][a-z0-9._-]{0,63}$"
687
+ },
688
+ composeDir: {
689
+ type: "string",
690
+ pattern: "^/(opt|srv|var/www)/[a-zA-Z0-9][a-zA-Z0-9._/-]{0,160}$"
691
+ },
692
+ composeFiles: {
693
+ type: "array",
694
+ maxItems: 6,
695
+ items: {
696
+ type: "string",
697
+ pattern: "^[a-zA-Z0-9][a-zA-Z0-9._/-]{0,127}\\.ya?ml$"
698
+ }
699
+ },
700
+ onPush: {
701
+ type: "boolean",
702
+ default: false
703
+ },
704
+ branch: {
705
+ type: "string",
706
+ description: "Optional default branch reference."
707
+ },
708
+ healthcheckUrl: {
709
+ type: "string",
710
+ format: "uri"
711
+ },
712
+ timeoutSeconds: {
713
+ type: "integer",
714
+ minimum: 30,
715
+ maximum: 3600
716
+ }
717
+ }
718
+ },
719
+ {
720
+ type: "object",
721
+ additionalProperties: false,
722
+ required: [
723
+ "type",
724
+ "targetDir"
725
+ ],
726
+ properties: {
727
+ type: {
728
+ const: "static"
729
+ },
730
+ buildScript: {
731
+ type: "string",
732
+ default: "web:build",
733
+ pattern: "^[a-zA-Z0-9][a-zA-Z0-9:._-]{0,63}$",
734
+ description: "Single package.json script name (no shell operators or whitespace)."
735
+ },
736
+ packageManager: {
737
+ type: "string",
738
+ enum: [
739
+ "yarn",
740
+ "npm",
741
+ "pnpm"
742
+ ],
743
+ default: "yarn"
744
+ },
745
+ distDir: {
746
+ type: "string",
747
+ default: "dist",
748
+ description: "Relative build output subdirectory (no '..' or leading '/')."
749
+ },
750
+ targetDir: {
751
+ type: "string",
752
+ pattern: "^/var/www/[a-zA-Z0-9][a-zA-Z0-9._/-]{0,160}$",
753
+ description: "Absolute Nginx webroot directory strictly under /var/www/<app>."
754
+ },
755
+ onPush: {
756
+ type: "boolean",
757
+ default: false
758
+ },
759
+ branch: {
760
+ type: "string"
761
+ },
762
+ healthcheckUrl: {
763
+ type: "string",
764
+ format: "uri"
765
+ },
766
+ timeoutSeconds: {
767
+ type: "integer",
768
+ minimum: 30,
769
+ maximum: 3600
770
+ }
771
+ }
772
+ }
773
+ ],
774
+ securityRules: [
775
+ "No path traversal ('..' or backslashes) in dockerfile, context, distDir, targetDir, composeDir, or composeFiles.",
776
+ "No shell metacharacters (;, |, &, $, backticks, quotes, parentheses, redirections) in any field.",
777
+ "Static deployments must target a subdirectory strictly under /var/www/<app-name>.",
778
+ "Recommended default is onPush: false so releases control production rollouts."
779
+ ],
780
+ examples: {
781
+ docker: {
782
+ type: "docker",
783
+ image: "nibgat/my-service",
784
+ dockerfile: "Dockerfile",
785
+ context: ".",
786
+ target: "production",
787
+ composeService: "my-service",
788
+ onPush: false,
789
+ healthcheckUrl: "https://my-service.nibgat.space/healthcheck"
790
+ },
791
+ static: {
792
+ type: "static",
793
+ packageManager: "yarn",
794
+ buildScript: "web:build",
795
+ distDir: "dist",
796
+ targetDir: "/var/www/my-app",
797
+ onPush: false,
798
+ healthcheckUrl: "https://my-app.nibgat.space"
799
+ }
800
+ }
801
+ };
802
+ export const RESOURCE_API_CATALOG = `# NİBGAT® Core Complex — Public REST API Catalog
803
+
804
+ ## 1. Core Complex Gateway (\`https://core.nibgat.space\`)
805
+
806
+ ### Health
807
+ - \`GET /healthcheck\` — Gateway health & service status (public)
808
+
809
+ ### N - Auth (Identity & SSO)
810
+ - \`GET /nauth/sso/session\` — Inspect active SSO session
811
+ - \`GET /nauth/sso/sessions\` — List active sessions for authenticated user
812
+ - \`POST /nauth/sso/logout\` — End active SSO session
813
+ - \`GET /nauth/oauth/userinfo\` — OpenID / OAuth2 userinfo endpoint
814
+ - \`GET /nauth/presence/public\` — Public presence lookup
815
+
816
+ ### N - Char (Profiles)
817
+ - \`GET /nchar/sso/me\` — Authenticated user's full N - Char profile
818
+ - \`PUT /nchar/sso/profile\` — Update profile details
819
+ - \`GET /nchar/public/profile/:userName\` — Public developer profile lookup (no auth required)
820
+
821
+ ### N - Notifier & N - Mail
822
+ - \`GET /nnotifier/sso/domains\` — List mail domains (query: \`organizationID\`, \`appID\`)
823
+ - \`GET /nnotifier/sso/mailboxes\` — List mailboxes (query: \`domain\`, \`includeUsage\`)
824
+ - \`GET /nnotifier/sso/aliases\` — List mail aliases
825
+ - \`GET /nnotifier/sso/notifications\` — List user notifications
826
+ - \`POST /nnotifier/sso/notifications/read\` — Mark notification read
827
+
828
+ ### Front & N - Support
829
+ - \`GET /front/products\` & \`GET /front/services\` & \`GET /front/news\` & \`GET /front/announcements\` — Public content feeds
830
+ - \`GET /front/sso/tickets\` — List authenticated user's support tickets
831
+ - \`GET /front/sso/tickets/quota\` — Ticket quota status
832
+ - \`GET /front/sso/tickets/:id\` — Ticket details and replies
833
+ - \`POST /front/sso/tickets\` — Create a new support ticket
834
+ - \`POST /front/sso/tickets/:id/replies\` — Reply to a support ticket
835
+
836
+ ## 2. N - Git Platform (\`https://git.nibgat.space/api/v1\`)
837
+
838
+ ### Health & Identity
839
+ - \`GET /api/v1/health\` — N - Git service, RethinkDB, and storage health
840
+ - \`GET /api/v1/me\` — Active N - Git user, scopes, and auth method
841
+ - \`GET /api/v1/overview\` — User dashboard overview & accessible repositories
842
+ - \`GET /api/v1/quota\` — Repository quota status
843
+
844
+ ### Repositories, Branches & Code
845
+ - \`GET /api/v1/repos\` — List repositories (query: \`owner\`, \`q\`)
846
+ - \`POST /api/v1/repos\` — Create repository
847
+ - \`GET /api/v1/repos/:owner/:repo\` — Repository metadata, branches, tags, counts
848
+ - \`GET /api/v1/repos/:owner/:repo/readme\` — Rendered/raw README
849
+ - \`GET /api/v1/repos/:owner/:repo/branches\` — Detailed branch list
850
+ - \`GET /api/v1/repos/:owner/:repo/commits\` — Commit history
851
+
852
+ ### Releases, Deployments & Runners
853
+ - \`GET /api/v1/repos/:owner/:repo/releases\` — List releases
854
+ - \`POST /api/v1/repos/:owner/:repo/releases\` — Publish a release & trigger webhooks
855
+ - \`GET /api/v1/repos/:owner/:repo/deployments\` — List recent CI/CD deployment runs & logs
856
+ - \`POST /api/v1/repos/:owner/:repo/deployments/trigger\` — Manually trigger deployment for a ref
857
+ - \`GET /api/v1/repos/:owner/:repo/runners\` — List self-hosted runners for a repository
858
+
859
+ ### Issues & Pull Requests
860
+ - \`GET /api/v1/repos/:owner/:repo/issues\` — List issues & PRs (query: \`kind\`, \`state\`)
861
+ - \`POST /api/v1/repos/:owner/:repo/issues\` — Create an issue or pull request
862
+
863
+ ### OCI Container Registry
864
+ - \`GET /api/v1/registry/repositories\` — List OCI images, tags, digests, and pull commands
865
+ - \`DELETE /api/v1/registry/:owner/:image/tags/:tag\` — Delete an OCI image tag
866
+
867
+ ## 3. N - Buyment Commerce & Billing (\`https://core.nibgat.space/nbuyment\`)
868
+ - \`GET /nbuyment/catalog\` — Public product, plan, and VAT-inclusive TRY pricing catalog
869
+ - \`GET /nbuyment/sso/wallet\` — Prepaid TRY wallet balance & double-entry ledger
870
+ - \`POST /nbuyment/sso/wallet/topup\` — Initiate PayTR card or Bank Transfer wallet top-up
871
+ - \`GET /nbuyment/sso/orders\` & \`POST /nbuyment/sso/orders\` — Order history & checkout
872
+ - \`GET /nbuyment/sso/subscriptions\` — Active recurring subscriptions
873
+ - \`GET /nbuyment/sso/invoices\` — Automated e-Fatura & e-Arşiv invoices
874
+
875
+ ## 4. N - Cloud Infrastructure & Hardware (\`https://core.nibgat.space/ncloud\`)
876
+ - \`GET /ncloud/regions\` — Global 7-region status map (\`tr-ist-1\` active; EU/US/AP coming soon)
877
+ - \`GET /ncloud/catalog\` — Live cloud server, S3, container & physical hardware pricing
878
+ - \`GET /ncloud/sso/overview\` — Wallet balance, active resources & estimated monthly spend
879
+ - \`GET /ncloud/sso/resources\` & \`POST /ncloud/sso/resources\` — Manage N - Run, N - Storage, N - Net, N - Vault
880
+ - \`POST /ncloud/sso/servers\` & \`POST /ncloud/sso/servers/:id/power\` — Deploy & control N - Compute servers
881
+ - \`GET /ncloud/sso/hardware/orders\` & \`POST /ncloud/sso/hardware/orders\` — N - Metal rentals & N - Hardware purchases
882
+ `;
883
+ export const RESOURCE_BUYMENT_CATALOG = `# NİBGAT® N - Buyment — Billing, Wallet & e-Invoicing Reference
884
+
885
+ Portal: https://buyment.nibgat.space
886
+ API Base: https://core.nibgat.space/nbuyment
887
+
888
+ ## Supported Commerce Modes
889
+ - **Prepaid TRY Wallet**: Double-entry integer-kurus ledger used by N - Cloud hourly/monthly provisioning and instant add-ons.
890
+ - **Recurring Subscriptions**: Monthly, semiannual, annual, and biennial plans across N - Git, N - Mail, N - Char, N - Element, and N - Cloud.
891
+ - **One-Time Purchases**: Physical hardware orders (N - Hardware) and one-time add-ons.
892
+ - **Payment Methods**: PayTR Card (iFrame & tokenized recurring) and Bank Transfer / EFT.
893
+ - **Automated e-Invoicing**: Trendyol e-Faturam REST integration automatically issuing e-Fatura or e-Arşiv invoices with integer kurus precision.
894
+ `;
895
+ export const RESOURCE_CLOUD_REGIONS = `# NİBGAT® N - Cloud — Global Region Availability
896
+
897
+ | Region Code | Location | Status | Orderable |
898
+ | --- | --- | --- | --- |
899
+ | \`tr-ist-1\` | İstanbul, Türkiye | **active** | Yes (~4 ms TR) |
900
+ | \`eu-de-1\` | Falkenstein, Germany | coming_soon | Disabled (Çok Yakında) |
901
+ | \`eu-de-2\` | Nuremberg, Germany | coming_soon | Disabled (Çok Yakında) |
902
+ | \`eu-fi-1\` | Helsinki, Finland | coming_soon | Disabled (Çok Yakında) |
903
+ | \`us-east-1\` | Ashburn, United States | coming_soon | Disabled (Çok Yakında) |
904
+ | \`us-west-1\` | Hillsboro, United States | coming_soon | Disabled (Çok Yakında) |
905
+ | \`ap-sg-1\` | Singapore | coming_soon | Disabled (Çok Yakında) |
906
+ `;
907
+ export const RESOURCE_CLOUD_CATALOG = `# NİBGAT® N - Cloud — Cloud (70%) & Physical Hardware (30%) Portfolio
908
+
909
+ Portal: https://cloud.nibgat.space
910
+ API Base: https://core.nibgat.space/ncloud
911
+
912
+ ## Cloud Services (70%)
913
+ - **N - Compute**: NVMe KVM Cloud Servers & Dedicated-Resource VDS in \`tr-ist-1\`.
914
+ - **N - Run**: Managed container & serverless runtime environments.
915
+ - **N - Storage**: S3-compatible object storage with lifecycle & lock support.
916
+ - **N - Net**: Private VPC networks, port forwarding, and DNS zones.
917
+ - **N - Vault**: Encrypted SFTP/Borg backup storage.
918
+
919
+ ## Physical Hardware (30%)
920
+ - **N - Metal**: Dedicated bare-metal server rentals in Istanbul Tier-3 data center.
921
+ - **N - Hardware**: Turnkey enterprise rack servers, AI GPU nodes, and workstations delivered via insured shipping or Istanbul colocation.
922
+ `;
923
+ export const RESOURCE_NCORE_STANDARDS = `# NİBGAT® NCore UI Kit 2.0 & Frontend Engineering Standards
924
+
925
+ Documentation: https://ncore.nibgat.space
926
+
927
+ ## 1. Directory & Index Pattern
928
+ - Every page, view, or reusable component lives in its own folder.
929
+ - Main component entry MUST be \`index.tsx\` (never \`Component.tsx\`).
930
+ - Component styles MUST live in sibling \`stylesheet.ts\` using \`StyleSheet.create({...})\` (never inline style hooks like \`useStyles\`).
931
+ - Local type definitions MUST live in \`type.ts\` (singular, never \`types.ts\`).
932
+ - Complex pages organize sub-sections inside \`views/<section>/index.tsx\`.
933
+
934
+ ## 2. Theme-First & Spacious-Only Rule
935
+ - **Theme-First**: Always read tokens from \`NCoreUIKitTheme.useContext()\` (\`colors\`, \`spaces\`, \`radiuses\`, \`configs\`) before defining any custom values.
936
+ - **Spacious Only (Mandatory)**: \`initialSelectedGapPropagation\` MUST ALWAYS be \`"spacious"\`. Never use \`"compact"\` gapPropagation or shrink primary buttons/inputs unnecessarily.
937
+ - **Localization**: Always read user-facing text through \`NCoreUIKitLocalize.useContext()\` via \`localize("key")\`.
938
+ - **Web CSS**: Use NCore's \`webStyle\` utility for web-only CSS properties.
939
+ - **NCore Primitives**: Prefer \`PageContainer\`, \`MainHeader\`, \`Text\`, \`HighlightButton\`, \`Button\`, \`ThemeSwitcher\`, \`LocaleSwitcher\`, and \`NCoreUIKitMenu\` over raw React Native primitives.
940
+
941
+ ## 3. Code Style & Formatting
942
+ - 4-space indentation everywhere (including JSX props and \`switch\` cases), semicolons always, newline at EOF.
943
+ - **Strict Multiline**: Every imported/exported symbol, destructured object property, array element (including \`useState\` tuples), and JSX prop goes on its own line.
944
+ - **Longest-to-Shortest Ordering**: Sort imports, destructured members, object properties, and JSX props from longest line/identifier to shortest unless logic requires another order.
945
+ - **Fail Fast**: Use early returns and write \`if(!condition) {\` with no space between \`if\` and \`(\`.
946
+ - **Default Type Export**:
947
+ \`\`\`ts
948
+ export type {
949
+ MyProps as default
950
+ };
951
+ \`\`\`
952
+ - **Default Value Export**: Stick \`export default Component;\` directly after the closing brace with no blank line.
953
+ - **Post-Edit Validation**: Always run \`yarn lint\` and \`yarn type-check\` after frontend edits.
954
+ `;
955
+ //# sourceMappingURL=ecosystem.js.map