@gitpagedocs/cli 1.1.62 → 1.1.63

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 (59) hide show
  1. package/README.md +193 -193
  2. package/ai/application/ai-command.ts +24 -24
  3. package/ai/application/ai-provider-factory.ts +22 -22
  4. package/ai/application/docs-pattern.ts +68 -68
  5. package/ai/application/run-ai-cli-command.ts +167 -167
  6. package/ai/config.ts +50 -50
  7. package/ai/core/models/ai-cli-config.ts +33 -33
  8. package/ai/core/models/parse-ai-cli-config.ts +78 -78
  9. package/ai/core/ports/illm-provider.ts +32 -32
  10. package/ai/infrastructure/ai-config-file.ts +101 -101
  11. package/ai/infrastructure/file-system-adapter.ts +85 -85
  12. package/ai/infrastructure/llm/tools-llm-provider.ts +54 -54
  13. package/ai/infrastructure/version-docs-writer.ts +143 -143
  14. package/ai/presentation/ai-prompts.ts +239 -239
  15. package/application/ports/cli-runtime-ports.ts +91 -91
  16. package/application/report/config-only-reporter.mjs +64 -64
  17. package/application/use-cases/dispatch-mode.ts +18 -18
  18. package/builders/config-orchestrator.mjs +34 -34
  19. package/builders/project-links.mjs +50 -50
  20. package/builders/root-config-builder.mjs +61 -61
  21. package/builders/route-builders.mjs +136 -136
  22. package/builders/theme-template.mjs +76 -76
  23. package/builders/version-config-builder.mjs +186 -186
  24. package/content/docs-en.mjs +549 -549
  25. package/content/docs-es.mjs +462 -462
  26. package/content/docs-pt.mjs +462 -462
  27. package/contracts/doc-versions.mjs +3 -3
  28. package/data/default-site-config.mjs +321 -321
  29. package/data/i18n-langmenu.mjs +347 -347
  30. package/data/layouts.mjs +436 -436
  31. package/data/path-mappings.mjs +26 -26
  32. package/data/route-metas.mjs +93 -93
  33. package/data/theme-colors.mjs +443 -443
  34. package/data/urls.mjs +12 -12
  35. package/domain/models/cli-options.ts +33 -33
  36. package/home/constants.mjs +4 -4
  37. package/index.mjs +37 -37
  38. package/infrastructure/gitpagedocs-config-file.ts +47 -47
  39. package/infrastructure/home/runtime.mjs +37 -37
  40. package/package.json +3 -3
  41. package/presentation/commands/ai-info.ts +57 -57
  42. package/presentation/commands/config-clear.ts +23 -23
  43. package/presentation/commands/config-info.ts +24 -24
  44. package/presentation/commands/diagnostics.ts +164 -164
  45. package/presentation/commands/docs.ts +37 -37
  46. package/presentation/commands/mcp.ts +20 -20
  47. package/presentation/commands/pages.ts +101 -101
  48. package/presentation/commands/password.ts +62 -62
  49. package/presentation/commands/run-command.ts +70 -70
  50. package/presentation/index.ts +124 -124
  51. package/presentation/options/parser.ts +119 -119
  52. package/presentation/options/resolver.ts +46 -46
  53. package/presentation/ui/clack.ts +91 -91
  54. package/presentation/ui/prompts.ts +146 -146
  55. package/runtime/git-ops.mjs +110 -110
  56. package/runtime/output.mjs +159 -159
  57. package/runtime/workflow.mjs +129 -129
  58. package/start.mjs +12 -12
  59. package/ui/logger.mjs +9 -9
@@ -1,26 +1,26 @@
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
- export const AUDIO_IDS = ["0w80F8FffQ4"];
14
-
15
- export const PAGE2_AUDIO = {
16
- enabled: true,
17
- autoPlayOnLoad: true,
18
- loopEnabled: false,
19
- tracks: [
20
- {
21
- url: "https://www.youtube.com/watch?v=0w80F8FffQ4",
22
- type: "youtube",
23
- title: { pt: "Musica pagina 2", en: "Page 2 music", es: "Musica pagina 2" },
24
- },
25
- ],
26
- };
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
+ export const AUDIO_IDS = ["0w80F8FffQ4"];
14
+
15
+ export const PAGE2_AUDIO = {
16
+ enabled: true,
17
+ autoPlayOnLoad: true,
18
+ loopEnabled: false,
19
+ tracks: [
20
+ {
21
+ url: "https://www.youtube.com/watch?v=0w80F8FffQ4",
22
+ type: "youtube",
23
+ title: { pt: "Musica pagina 2", en: "Page 2 music", es: "Musica pagina 2" },
24
+ },
25
+ ],
26
+ };
@@ -1,93 +1,93 @@
1
- /** Route and video metadata for doc versions */
2
-
3
- export const DEFAULT_HIERARCHY = { md: 0, "source-viewer": 1, html: 2, video: 3, audio: 4 };
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 SOURCE_VIEWER_META = {
40
- id: 7,
41
- titles: { pt: "Codigo fonte", en: "Source code", es: "Codigo fuente" },
42
- descriptions: {
43
- pt: "Explore a arvore do repositorio, navegue por pastas e visualize arquivos diretamente na documentacao.",
44
- en: "Explore the repository tree, browse folders, and preview files directly inside the documentation.",
45
- es: "Explora el arbol del repositorio, navega por carpetas y previsualiza archivos directamente en la documentacion.",
46
- },
47
- };
48
-
49
- export const AUDIO_META_ID12 = {
50
- id: 12,
51
- title: { pt: "Trilha de audio", en: "Audio track", es: "Pista de audio" },
52
- description: {
53
- pt: "Ouça uma faixa de exemplo diretamente na documentacao.",
54
- en: "Listen to a sample track directly inside the documentation.",
55
- es: "Escucha una pista de ejemplo directamente en la documentacion.",
56
- },
57
- };
58
-
59
- export const VIDEO_META_ID1 = {
60
- 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" },
61
- description: {
62
- 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.",
63
- 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.",
64
- 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.",
65
- },
66
- };
67
-
68
- export const VIDEO_META_ID2 = {
69
- 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" },
70
- description: {
71
- pt: "Aprenda a usar GitHub Issues e Projects para gerenciar seu trabalho.",
72
- en: "Learn how to use GitHub Issues and Projects to manage your work effectively.",
73
- es: "Aprende a usar GitHub Issues y Projects para gestionar tu trabajo.",
74
- },
75
- };
76
-
77
- export const VIDEO_META_ID3 = {
78
- 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" },
79
- description: {
80
- pt: "Construindo um tutor de Python com IA usando o GitHub Copilot SDK.",
81
- en: "Building an AI Python tutor using the GitHub Copilot SDK.",
82
- es: "Construyendo un tutor de Python con IA usando el GitHub Copilot SDK.",
83
- },
84
- };
85
-
86
- export const VIDEO_META_ID4 = {
87
- 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" },
88
- description: {
89
- pt: "Introdução ao Git para iniciantes.",
90
- en: "A brief introduction to Git for beginners.",
91
- es: "Una breve introducción a Git para principiantes.",
92
- },
93
- };
1
+ /** Route and video metadata for doc versions */
2
+
3
+ export const DEFAULT_HIERARCHY = { md: 0, "source-viewer": 1, html: 2, video: 3, audio: 4 };
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 SOURCE_VIEWER_META = {
40
+ id: 7,
41
+ titles: { pt: "Codigo fonte", en: "Source code", es: "Codigo fuente" },
42
+ descriptions: {
43
+ pt: "Explore a arvore do repositorio, navegue por pastas e visualize arquivos diretamente na documentacao.",
44
+ en: "Explore the repository tree, browse folders, and preview files directly inside the documentation.",
45
+ es: "Explora el arbol del repositorio, navega por carpetas y previsualiza archivos directamente en la documentacion.",
46
+ },
47
+ };
48
+
49
+ export const AUDIO_META_ID12 = {
50
+ id: 12,
51
+ title: { pt: "Trilha de audio", en: "Audio track", es: "Pista de audio" },
52
+ description: {
53
+ pt: "Ouça uma faixa de exemplo diretamente na documentacao.",
54
+ en: "Listen to a sample track directly inside the documentation.",
55
+ es: "Escucha una pista de ejemplo directamente en la documentacion.",
56
+ },
57
+ };
58
+
59
+ export const VIDEO_META_ID1 = {
60
+ 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" },
61
+ description: {
62
+ 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.",
63
+ 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.",
64
+ 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.",
65
+ },
66
+ };
67
+
68
+ export const VIDEO_META_ID2 = {
69
+ 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" },
70
+ description: {
71
+ pt: "Aprenda a usar GitHub Issues e Projects para gerenciar seu trabalho.",
72
+ en: "Learn how to use GitHub Issues and Projects to manage your work effectively.",
73
+ es: "Aprende a usar GitHub Issues y Projects para gestionar tu trabajo.",
74
+ },
75
+ };
76
+
77
+ export const VIDEO_META_ID3 = {
78
+ 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" },
79
+ description: {
80
+ pt: "Construindo um tutor de Python com IA usando o GitHub Copilot SDK.",
81
+ en: "Building an AI Python tutor using the GitHub Copilot SDK.",
82
+ es: "Construyendo un tutor de Python con IA usando el GitHub Copilot SDK.",
83
+ },
84
+ };
85
+
86
+ export const VIDEO_META_ID4 = {
87
+ 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" },
88
+ description: {
89
+ pt: "Introdução ao Git para iniciantes.",
90
+ en: "A brief introduction to Git for beginners.",
91
+ es: "Una breve introducción a Git para principiantes.",
92
+ },
93
+ };