@gitpagedocs/cli 1.1.44

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 (66) hide show
  1. package/README.md +169 -0
  2. package/ai/application/ai-command.ts +24 -0
  3. package/ai/application/ai-provider-factory.ts +22 -0
  4. package/ai/application/run-ai-cli-command.ts +136 -0
  5. package/ai/config.ts +22 -0
  6. package/ai/core/models/ai-cli-config.ts +31 -0
  7. package/ai/core/ports/illm-provider.ts +32 -0
  8. package/ai/infrastructure/ai-config-file.ts +32 -0
  9. package/ai/infrastructure/file-system-adapter.ts +83 -0
  10. package/ai/infrastructure/llm/tools-llm-provider.ts +54 -0
  11. package/ai/presentation/ai-prompts.ts +239 -0
  12. package/application/config-only/handler.mjs +55 -0
  13. package/application/home/handler.mjs +83 -0
  14. package/application/ports/cli-runtime-ports.ts +87 -0
  15. package/application/report/config-only-reporter.mjs +62 -0
  16. package/application/use-cases/dispatch-mode.ts +18 -0
  17. package/builders/config-orchestrator.mjs +40 -0
  18. package/builders/root-config-builder.mjs +54 -0
  19. package/builders/route-builders.mjs +111 -0
  20. package/builders/source-viewer.mjs +330 -0
  21. package/builders/theme-template.mjs +75 -0
  22. package/builders/version-config-builder.mjs +151 -0
  23. package/content/docs-en.mjs +542 -0
  24. package/content/docs-es.mjs +459 -0
  25. package/content/docs-pt.mjs +459 -0
  26. package/content/docs.mjs +9 -0
  27. package/contracts/doc-versions.mjs +1 -0
  28. package/contracts/index.mjs +1 -0
  29. package/data/default-site-config.mjs +312 -0
  30. package/data/i18n-langmenu.mjs +122 -0
  31. package/data/i18n-translations.mjs +20 -0
  32. package/data/layouts.mjs +353 -0
  33. package/data/path-mappings.mjs +34 -0
  34. package/data/route-metas.mjs +73 -0
  35. package/data/theme-colors.mjs +387 -0
  36. package/data/urls.mjs +7 -0
  37. package/data/version-constants.mjs +3 -0
  38. package/domain/models/cli-options.ts +18 -0
  39. package/domain/services/sanitize-segment.mjs +7 -0
  40. package/home/constants.mjs +4 -0
  41. package/home/home-file-writer.mjs +20 -0
  42. package/home/templates.mjs +48 -0
  43. package/index.mjs +26 -0
  44. package/infrastructure/config-only/runtime.mjs +17 -0
  45. package/infrastructure/home/runtime.mjs +37 -0
  46. package/package.json +60 -0
  47. package/presentation/commands/ai-info.ts +57 -0
  48. package/presentation/commands/config-info.ts +24 -0
  49. package/presentation/commands/diagnostics.ts +70 -0
  50. package/presentation/commands/docs.ts +37 -0
  51. package/presentation/commands/mcp.ts +20 -0
  52. package/presentation/commands/pages.ts +91 -0
  53. package/presentation/commands/run-command.ts +62 -0
  54. package/presentation/index.ts +108 -0
  55. package/presentation/options/parser.ts +104 -0
  56. package/presentation/options/resolver.ts +25 -0
  57. package/presentation/options/schema.ts +10 -0
  58. package/presentation/ui/banner.ts +13 -0
  59. package/presentation/ui/clack.ts +74 -0
  60. package/presentation/ui/prompts.ts +64 -0
  61. package/runtime/doc-path-resolver.mjs +57 -0
  62. package/runtime/git-ops.mjs +110 -0
  63. package/runtime/output.mjs +122 -0
  64. package/runtime/workflow.mjs +144 -0
  65. package/start.mjs +12 -0
  66. package/ui/logger.mjs +9 -0
@@ -0,0 +1,353 @@
1
+ export const LAYOUTS = [
2
+ {
3
+ id: "matrix-dark",
4
+ name: "Matrix Dark",
5
+ author: "Kauan Vidigal",
6
+ file: "templates/matrix-dark.json",
7
+ preview: "Dark theme with neon green accents inspired by The Matrix",
8
+ supportsLightAndDarkModes: true,
9
+ supportsLightAndDarkModesReference: "matrix-1",
10
+ mode: "dark",
11
+ },
12
+ {
13
+ id: "matrix-light",
14
+ name: "Matrix Light",
15
+ author: "Kauan Vidigal",
16
+ file: "templates/matrix-light.json",
17
+ preview: "Light theme with green accents inspired by The Matrix",
18
+ supportsLightAndDarkModes: true,
19
+ supportsLightAndDarkModesReference: "matrix-1",
20
+ mode: "light",
21
+ },
22
+ {
23
+ id: "default",
24
+ name: "Default Theme",
25
+ author: "Kauan Vidigal",
26
+ file: "templates/default.json",
27
+ preview: "Clean and minimal default theme",
28
+ supportsLightAndDarkModes: false,
29
+ mode: "light",
30
+ },
31
+ {
32
+ id: "github-dark",
33
+ name: "GitHub Dark",
34
+ author: "Kauan Vidigal",
35
+ file: "templates/github-dark.json",
36
+ preview: "GitHub-inspired dark theme",
37
+ supportsLightAndDarkModes: true,
38
+ supportsLightAndDarkModesReference: "github-1",
39
+ mode: "dark",
40
+ },
41
+ {
42
+ id: "github-light",
43
+ name: "GitHub Light",
44
+ author: "Kauan Vidigal",
45
+ file: "templates/github-light.json",
46
+ preview: "GitHub-inspired light theme",
47
+ supportsLightAndDarkModes: true,
48
+ supportsLightAndDarkModesReference: "github-1",
49
+ mode: "light",
50
+ },
51
+ {
52
+ id: "cyberpunk-dark",
53
+ name: "Cyberpunk Dark",
54
+ author: "Kauan Vidigal",
55
+ file: "templates/cyberpunk-dark.json",
56
+ preview: "Futuristic dark theme with neon pink and cyan accents",
57
+ supportsLightAndDarkModes: true,
58
+ supportsLightAndDarkModesReference: "cyberpunk-1",
59
+ mode: "dark",
60
+ },
61
+ {
62
+ id: "cyberpunk-light",
63
+ name: "Cyberpunk Light",
64
+ author: "Kauan Vidigal",
65
+ file: "templates/cyberpunk-light.json",
66
+ preview: "Futuristic light theme with bright pink and cyan accents",
67
+ supportsLightAndDarkModes: true,
68
+ supportsLightAndDarkModesReference: "cyberpunk-1",
69
+ mode: "light",
70
+ },
71
+ {
72
+ id: "aurora-dark",
73
+ name: "Aurora Dark",
74
+ author: "Kauan Vidigal",
75
+ file: "templates/aurora-dark.json",
76
+ preview: "Modern dark theme with purple + cyan accents and glassy cards",
77
+ supportsLightAndDarkModes: true,
78
+ supportsLightAndDarkModesReference: "aurora-1",
79
+ mode: "dark",
80
+ },
81
+ {
82
+ id: "aurora-light",
83
+ name: "Aurora Light",
84
+ author: "Kauan Vidigal",
85
+ file: "templates/aurora-light.json",
86
+ preview: "Modern light theme with purple + teal accents and soft shadows",
87
+ supportsLightAndDarkModes: true,
88
+ supportsLightAndDarkModesReference: "aurora-1",
89
+ mode: "light",
90
+ },
91
+ {
92
+ id: "nord-dark",
93
+ name: "Nord Dark",
94
+ author: "Kauan Vidigal",
95
+ file: "templates/nord-dark.json",
96
+ preview: "Calm Nord-inspired dark theme (icy blues, low contrast glare)",
97
+ supportsLightAndDarkModes: true,
98
+ supportsLightAndDarkModesReference: "nord-1",
99
+ mode: "dark",
100
+ },
101
+ {
102
+ id: "nord-light",
103
+ name: "Nord Light",
104
+ author: "Kauan Vidigal",
105
+ file: "templates/nord-light.json",
106
+ preview: "Calm Nord-inspired light theme (clean, readable, modern)",
107
+ supportsLightAndDarkModes: true,
108
+ supportsLightAndDarkModesReference: "nord-1",
109
+ mode: "light",
110
+ },
111
+ {
112
+ id: "sunset-dark",
113
+ name: "Sunset Dark",
114
+ author: "Kauan Vidigal",
115
+ file: "templates/sunset-dark.json",
116
+ preview: "Warm dark theme with orange + pink accents (sunset vibe)",
117
+ supportsLightAndDarkModes: true,
118
+ supportsLightAndDarkModesReference: "sunset-1",
119
+ mode: "dark",
120
+ },
121
+ {
122
+ id: "sunset-light",
123
+ name: "Sunset Light",
124
+ author: "Kauan Vidigal",
125
+ file: "templates/sunset-light.json",
126
+ preview: "Warm light theme with orange + rose accents (soft, modern UI)",
127
+ supportsLightAndDarkModes: true,
128
+ supportsLightAndDarkModesReference: "sunset-1",
129
+ mode: "light",
130
+ },
131
+ {
132
+ id: "mono-dark",
133
+ name: "Mono Pro Dark",
134
+ author: "Kauan Vidigal",
135
+ file: "templates/mono-dark.json",
136
+ preview: "Minimal dark theme with lime accent and high readability",
137
+ supportsLightAndDarkModes: true,
138
+ supportsLightAndDarkModesReference: "mono-1",
139
+ mode: "dark",
140
+ },
141
+ {
142
+ id: "mono-light",
143
+ name: "Mono Pro Light",
144
+ author: "Kauan Vidigal",
145
+ file: "templates/mono-light.json",
146
+ preview: "Minimal light theme with lime accent and clean surfaces",
147
+ supportsLightAndDarkModes: true,
148
+ supportsLightAndDarkModesReference: "mono-1",
149
+ mode: "light",
150
+ },
151
+ {
152
+ id: "oceanic-dark",
153
+ name: "Oceanic Dark",
154
+ author: "Kauan Vidigal",
155
+ file: "templates/oceanic-dark.json",
156
+ preview: "Deep ocean dark UI with cyan and blue accents",
157
+ supportsLightAndDarkModes: true,
158
+ supportsLightAndDarkModesReference: "oceanic-1",
159
+ mode: "dark",
160
+ },
161
+ {
162
+ id: "oceanic-light",
163
+ name: "Oceanic Light",
164
+ author: "Kauan Vidigal",
165
+ file: "templates/oceanic-light.json",
166
+ preview: "Clean ocean light UI with soft aqua accents",
167
+ supportsLightAndDarkModes: true,
168
+ supportsLightAndDarkModesReference: "oceanic-1",
169
+ mode: "light",
170
+ },
171
+ {
172
+ id: "rose-dark",
173
+ name: "Rose Dark",
174
+ author: "Kauan Vidigal",
175
+ file: "templates/rose-dark.json",
176
+ preview: "Elegant dark rose palette with pink highlights",
177
+ supportsLightAndDarkModes: true,
178
+ supportsLightAndDarkModesReference: "rose-1",
179
+ mode: "dark",
180
+ },
181
+ {
182
+ id: "rose-light",
183
+ name: "Rose Light",
184
+ author: "Kauan Vidigal",
185
+ file: "templates/rose-light.json",
186
+ preview: "Soft rose light theme for modern documentation",
187
+ supportsLightAndDarkModes: true,
188
+ supportsLightAndDarkModesReference: "rose-1",
189
+ mode: "light",
190
+ },
191
+ {
192
+ id: "forest-dark",
193
+ name: "Forest Dark",
194
+ author: "Kauan Vidigal",
195
+ file: "templates/forest-dark.json",
196
+ preview: "Moody forest dark theme with green accents",
197
+ supportsLightAndDarkModes: true,
198
+ supportsLightAndDarkModesReference: "forest-1",
199
+ mode: "dark",
200
+ },
201
+ {
202
+ id: "forest-light",
203
+ name: "Forest Light",
204
+ author: "Kauan Vidigal",
205
+ file: "templates/forest-light.json",
206
+ preview: "Fresh forest light theme with natural greens",
207
+ supportsLightAndDarkModes: true,
208
+ supportsLightAndDarkModesReference: "forest-1",
209
+ mode: "light",
210
+ },
211
+ {
212
+ id: "graphite-dark",
213
+ name: "Graphite Dark",
214
+ author: "Kauan Vidigal",
215
+ file: "templates/graphite-dark.json",
216
+ preview: "Premium graphite dark interface with blue glow",
217
+ supportsLightAndDarkModes: true,
218
+ supportsLightAndDarkModesReference: "graphite-1",
219
+ mode: "dark",
220
+ },
221
+ {
222
+ id: "graphite-light",
223
+ name: "Graphite Light",
224
+ author: "Kauan Vidigal",
225
+ file: "templates/graphite-light.json",
226
+ preview: "Minimal graphite light interface with calm contrast",
227
+ supportsLightAndDarkModes: true,
228
+ supportsLightAndDarkModesReference: "graphite-1",
229
+ mode: "light",
230
+ },
231
+ {
232
+ id: "lava-dark",
233
+ name: "Lava Dark",
234
+ author: "Kauan Vidigal",
235
+ file: "templates/lava-dark.json",
236
+ preview: "Bold dark magma palette with hot orange accents",
237
+ supportsLightAndDarkModes: true,
238
+ supportsLightAndDarkModesReference: "lava-1",
239
+ mode: "dark",
240
+ },
241
+ {
242
+ id: "lava-light",
243
+ name: "Lava Light",
244
+ author: "Kauan Vidigal",
245
+ file: "templates/lava-light.json",
246
+ preview: "Warm light lava palette with energetic contrast",
247
+ supportsLightAndDarkModes: true,
248
+ supportsLightAndDarkModesReference: "lava-1",
249
+ mode: "light",
250
+ },
251
+ {
252
+ id: "skyline-dark",
253
+ name: "Skyline Dark",
254
+ author: "Kauan Vidigal",
255
+ file: "templates/skyline-dark.json",
256
+ preview: "Night skyline dark blue palette with neon cyan",
257
+ supportsLightAndDarkModes: true,
258
+ supportsLightAndDarkModesReference: "skyline-1",
259
+ mode: "dark",
260
+ },
261
+ {
262
+ id: "skyline-light",
263
+ name: "Skyline Light",
264
+ author: "Kauan Vidigal",
265
+ file: "templates/skyline-light.json",
266
+ preview: "Airy skyline light palette with cool blue accents",
267
+ supportsLightAndDarkModes: true,
268
+ supportsLightAndDarkModesReference: "skyline-1",
269
+ mode: "light",
270
+ },
271
+ {
272
+ id: "emerald-dark",
273
+ name: "Emerald Dark",
274
+ author: "Kauan Vidigal",
275
+ file: "templates/emerald-dark.json",
276
+ preview: "Dark emerald style with refined green contrast",
277
+ supportsLightAndDarkModes: true,
278
+ supportsLightAndDarkModesReference: "emerald-1",
279
+ mode: "dark",
280
+ },
281
+ {
282
+ id: "emerald-light",
283
+ name: "Emerald Light",
284
+ author: "Kauan Vidigal",
285
+ file: "templates/emerald-light.json",
286
+ preview: "Elegant emerald light style for readable docs",
287
+ supportsLightAndDarkModes: true,
288
+ supportsLightAndDarkModesReference: "emerald-1",
289
+ mode: "light",
290
+ },
291
+ {
292
+ id: "violet-dark",
293
+ name: "Violet Dark",
294
+ author: "Kauan Vidigal",
295
+ file: "templates/violet-dark.json",
296
+ preview: "Modern violet dark gradient with vivid contrast",
297
+ supportsLightAndDarkModes: true,
298
+ supportsLightAndDarkModesReference: "violet-1",
299
+ mode: "dark",
300
+ },
301
+ {
302
+ id: "violet-light",
303
+ name: "Violet Light",
304
+ author: "Kauan Vidigal",
305
+ file: "templates/violet-light.json",
306
+ preview: "Violet light palette with smooth, modern highlights",
307
+ supportsLightAndDarkModes: true,
308
+ supportsLightAndDarkModesReference: "violet-1",
309
+ mode: "light",
310
+ },
311
+ {
312
+ id: "amber-dark",
313
+ name: "Amber Dark",
314
+ author: "Kauan Vidigal",
315
+ file: "templates/amber-dark.json",
316
+ preview: "Dark amber interface with rich golden accents",
317
+ supportsLightAndDarkModes: true,
318
+ supportsLightAndDarkModesReference: "amber-1",
319
+ mode: "dark",
320
+ },
321
+ {
322
+ id: "amber-light",
323
+ name: "Amber Light",
324
+ author: "Kauan Vidigal",
325
+ file: "templates/amber-light.json",
326
+ preview: "Warm amber light interface with soft gold tones",
327
+ supportsLightAndDarkModes: true,
328
+ supportsLightAndDarkModesReference: "amber-1",
329
+ mode: "light",
330
+ },
331
+ {
332
+ id: "slate-dark",
333
+ name: "Slate Dark",
334
+ author: "Kauan Vidigal",
335
+ file: "templates/slate-dark.json",
336
+ preview: "Professional slate dark theme for technical docs",
337
+ supportsLightAndDarkModes: true,
338
+ supportsLightAndDarkModesReference: "slate-1",
339
+ mode: "dark",
340
+ },
341
+ {
342
+ id: "slate-light",
343
+ name: "Slate Light",
344
+ author: "Kauan Vidigal",
345
+ file: "templates/slate-light.json",
346
+ preview: "Professional slate light theme with neutral tones",
347
+ supportsLightAndDarkModes: true,
348
+ supportsLightAndDarkModesReference: "slate-1",
349
+ mode: "light",
350
+ },
351
+ ];
352
+
353
+ export const FALLBACK_LAYOUTS = LAYOUTS.filter((layout) => layout.id === "aurora-dark" || layout.id === "aurora-light");
@@ -0,0 +1,34 @@
1
+ /** Path and media mappings for doc versions */
2
+
3
+ export const ROUTE_PATHS = {
4
+ 1: { pt: "getting-started.md", en: "getting-started.md", es: "getting-started.md" },
5
+ 2: { pt: "project-overview.md", en: "project-overview.md", es: "project-overview.md" },
6
+ 3: { pt: "functionalities.md", en: "functionalities.md", es: "functionalities.md" },
7
+ 4: { pt: "github-issues-projects.md", en: "github-issues-projects.md", es: "github-issues-projects.md" },
8
+ 5: { pt: "git-introduction.md", en: "git-introduction.md", es: "git-introduction.md" },
9
+ 6: { pt: "authorized-routes.md", en: "authorized-routes.md", es: "authorized-routes.md" },
10
+ };
11
+
12
+ export const VIDEO_IDS = ["bdIJkGr2NV0", "c67GaAkf1BE", "N3my6W_Rdwg", "r8jQ9hVA2qs"];
13
+
14
+ export const PAGE2_AUDIO = {
15
+ enabled: true,
16
+ autoPlayOnLoad: true,
17
+ loopEnabled: false,
18
+ tracks: [
19
+ {
20
+ url: "https://www.youtube.com/watch?v=0w80F8FffQ4",
21
+ type: "youtube",
22
+ title: { pt: "Música página 2", en: "Page 2 music", es: "Música página 2" },
23
+ },
24
+ ],
25
+ };
26
+
27
+ export const SOURCE_VIEWER_META = {
28
+ titles: { pt: "Código fonte", en: "Source code", es: "Código fuente" },
29
+ descriptions: {
30
+ pt: "Visualizar código-fonte do projeto",
31
+ en: "View project source code",
32
+ es: "Ver código fuente del proyecto",
33
+ },
34
+ };
@@ -0,0 +1,73 @@
1
+ /** Route and video metadata for doc versions */
2
+
3
+ export const DEFAULT_HIERARCHY = { md: 0, html: 1, video: 2, audio: 3 };
4
+
5
+ export const ROUTE_META_ID1 = {
6
+ titles: { pt: "Primeiros passos", en: "Getting Started", es: "Primeros pasos" },
7
+ descriptions: { pt: "Configure o repositório do zero", en: "Configure repository from zero", es: "Configura el repositorio desde cero" },
8
+ };
9
+
10
+ export const ROUTE_META_ID2 = {
11
+ titles: { pt: "Visão geral do projeto", en: "Project overview", es: "Visión general del proyecto" },
12
+ descriptions: { pt: "Stack, objetivo e estrutura do Git Page Docs", en: "Stack, goals and structure of Git Page Docs", es: "Stack, objetivos y estructura de Git Page Docs" },
13
+ };
14
+
15
+ export const ROUTE_META_ID3 = {
16
+ titles: { pt: "Funcionalidades", en: "Functionalities", es: "Funcionalidades" },
17
+ descriptions: { pt: "CLI, opções, configuração e recursos", en: "CLI, options, configuration and features", es: "CLI, opciones, configuración y funciones" },
18
+ };
19
+
20
+ export const ROUTE_META_ID4 = {
21
+ titles: { pt: "GitHub Issues e Projects", en: "GitHub issues and projects", es: "GitHub issues y projects" },
22
+ descriptions: { pt: "Como usar Issues e Projects no GitHub", en: "How to use GitHub Issues and Projects", es: "Cómo usar GitHub Issues y Projects" },
23
+ };
24
+
25
+ export const ROUTE_META_ID5 = {
26
+ titles: { pt: "Introdução ao Git", en: "Introduction to Git", es: "Introducción a Git" },
27
+ descriptions: { pt: "Conceitos básicos de Git para iniciantes", en: "Basic Git concepts for beginners", es: "Conceptos básicos de Git para principiantes" },
28
+ };
29
+
30
+ export const ROUTE_META_ID6 = {
31
+ titles: { pt: "Rotas autorizadas", en: "Authorized routes", es: "Rutas autorizadas" },
32
+ descriptions: {
33
+ pt: "Controle acesso por chave, roles e provedores externos",
34
+ en: "Control access by key, roles and external providers",
35
+ es: "Controla acceso por clave, roles y proveedores externos",
36
+ },
37
+ };
38
+
39
+ export const VIDEO_META_ID1 = {
40
+ title: { pt: "Interactive vs non-interactive modes | Copilot CLI for beginners", en: "Interactive vs non-interactive modes | Copilot CLI for beginners", es: "Interactive vs non-interactive modes | Copilot CLI for beginners" },
41
+ description: {
42
+ pt: "Quer saber a forma mais rápida de usar o GitHub Copilot no terminal? Neste tutorial, exploramos os dois modos principais do Copilot CLI.",
43
+ en: "Want to know the fastest way to prompt GitHub Copilot from your terminal? In this beginner tutorial, we explore the two main modes of the Copilot CLI. Discover how to use the interactive mode to have GitHub Copilot run your project locally or use the non-interactive mode with the -p flag for quick summaries without leaving your shell context.",
44
+ es: "¿Quieres conocer la forma más rápida de usar GitHub Copilot desde tu terminal? En este tutorial exploramos los dos modos principales del Copilot CLI.",
45
+ },
46
+ };
47
+
48
+ export const VIDEO_META_ID2 = {
49
+ title: { pt: "How to use GitHub issues and projects | GitHub for Beginners", en: "How to use GitHub issues and projects | GitHub for Beginners", es: "How to use GitHub issues and projects | GitHub for Beginners" },
50
+ description: {
51
+ pt: "Aprenda a usar GitHub Issues e Projects para gerenciar seu trabalho.",
52
+ en: "Learn how to use GitHub Issues and Projects to manage your work effectively.",
53
+ es: "Aprende a usar GitHub Issues y Projects para gestionar tu trabajo.",
54
+ },
55
+ };
56
+
57
+ export const VIDEO_META_ID3 = {
58
+ title: { pt: "How I built an AI Python tutor with the GitHub Copilot SDK", en: "How I built an AI Python tutor with the GitHub Copilot SDK", es: "How I built an AI Python tutor with the GitHub Copilot SDK" },
59
+ description: {
60
+ pt: "Construindo um tutor de Python com IA usando o GitHub Copilot SDK.",
61
+ en: "Building an AI Python tutor using the GitHub Copilot SDK.",
62
+ es: "Construyendo un tutor de Python con IA usando el GitHub Copilot SDK.",
63
+ },
64
+ };
65
+
66
+ export const VIDEO_META_ID4 = {
67
+ title: { pt: "A brief introduction to Git for beginners | GitHub", en: "A brief introduction to Git for beginners | GitHub", es: "A brief introduction to Git for beginners | GitHub" },
68
+ description: {
69
+ pt: "Introdução ao Git para iniciantes.",
70
+ en: "A brief introduction to Git for beginners.",
71
+ es: "Una breve introducción a Git para principiantes.",
72
+ },
73
+ };