geeto 0.6.6 → 0.9.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 (198) hide show
  1. package/README.md +23 -9
  2. package/lib/api/copilot-adapter.d.ts +14 -5
  3. package/lib/api/copilot-adapter.d.ts.map +1 -1
  4. package/lib/api/copilot-adapter.js +15 -21
  5. package/lib/api/copilot-adapter.js.map +1 -1
  6. package/lib/api/copilot-sdk.d.ts +3 -16
  7. package/lib/api/copilot-sdk.d.ts.map +1 -1
  8. package/lib/api/copilot-sdk.js +166 -456
  9. package/lib/api/copilot-sdk.js.map +1 -1
  10. package/lib/api/copilot.d.ts +3 -4
  11. package/lib/api/copilot.d.ts.map +1 -1
  12. package/lib/api/copilot.js +28 -28
  13. package/lib/api/copilot.js.map +1 -1
  14. package/lib/api/gemini-sdk.d.ts.map +1 -1
  15. package/lib/api/gemini-sdk.js +11 -77
  16. package/lib/api/gemini-sdk.js.map +1 -1
  17. package/lib/api/gemini.d.ts +2 -2
  18. package/lib/api/gemini.d.ts.map +1 -1
  19. package/lib/api/gemini.js +24 -19
  20. package/lib/api/gemini.js.map +1 -1
  21. package/lib/api/gitlab.d.ts +80 -0
  22. package/lib/api/gitlab.d.ts.map +1 -0
  23. package/lib/api/gitlab.js +192 -0
  24. package/lib/api/gitlab.js.map +1 -0
  25. package/lib/api/openrouter-sdk.d.ts.map +1 -1
  26. package/lib/api/openrouter-sdk.js +11 -76
  27. package/lib/api/openrouter-sdk.js.map +1 -1
  28. package/lib/api/openrouter.d.ts.map +1 -1
  29. package/lib/api/openrouter.js +2 -16
  30. package/lib/api/openrouter.js.map +1 -1
  31. package/lib/api/platform.d.ts +78 -0
  32. package/lib/api/platform.d.ts.map +1 -0
  33. package/lib/api/platform.js +218 -0
  34. package/lib/api/platform.js.map +1 -0
  35. package/lib/cli/input.d.ts +2 -2
  36. package/lib/cli/input.d.ts.map +1 -1
  37. package/lib/cli/input.js +23 -27
  38. package/lib/cli/input.js.map +1 -1
  39. package/lib/cli/menu.d.ts +1 -1
  40. package/lib/cli/menu.d.ts.map +1 -1
  41. package/lib/cli/menu.js +123 -100
  42. package/lib/cli/menu.js.map +1 -1
  43. package/lib/core/copilot-setup.d.ts +8 -7
  44. package/lib/core/copilot-setup.d.ts.map +1 -1
  45. package/lib/core/copilot-setup.js +59 -230
  46. package/lib/core/copilot-setup.js.map +1 -1
  47. package/lib/core/gemini-setup.js +7 -7
  48. package/lib/core/gemini-setup.js.map +1 -1
  49. package/lib/core/gitlab-setup.d.ts +5 -0
  50. package/lib/core/gitlab-setup.d.ts.map +1 -0
  51. package/lib/core/gitlab-setup.js +85 -0
  52. package/lib/core/gitlab-setup.js.map +1 -0
  53. package/lib/core/openrouter-setup.d.ts.map +1 -1
  54. package/lib/core/openrouter-setup.js +17 -0
  55. package/lib/core/openrouter-setup.js.map +1 -1
  56. package/lib/index.js +501 -704
  57. package/lib/index.js.map +1 -1
  58. package/lib/types/index.d.ts +10 -6
  59. package/lib/types/index.d.ts.map +1 -1
  60. package/lib/utils/ai-provider-helpers.d.ts +5 -0
  61. package/lib/utils/ai-provider-helpers.d.ts.map +1 -0
  62. package/lib/utils/ai-provider-helpers.js +23 -0
  63. package/lib/utils/ai-provider-helpers.js.map +1 -0
  64. package/lib/utils/ai-text.d.ts +23 -0
  65. package/lib/utils/ai-text.d.ts.map +1 -0
  66. package/lib/utils/ai-text.js +57 -0
  67. package/lib/utils/ai-text.js.map +1 -0
  68. package/lib/utils/ai-workflow.d.ts +18 -0
  69. package/lib/utils/ai-workflow.d.ts.map +1 -0
  70. package/lib/utils/ai-workflow.js +66 -0
  71. package/lib/utils/ai-workflow.js.map +1 -0
  72. package/lib/utils/branch-naming.d.ts.map +1 -1
  73. package/lib/utils/branch-naming.js +1 -3
  74. package/lib/utils/branch-naming.js.map +1 -1
  75. package/lib/utils/config.d.ts +13 -1
  76. package/lib/utils/config.d.ts.map +1 -1
  77. package/lib/utils/config.js +38 -1
  78. package/lib/utils/config.js.map +1 -1
  79. package/lib/utils/display.d.ts.map +1 -1
  80. package/lib/utils/display.js +4 -3
  81. package/lib/utils/display.js.map +1 -1
  82. package/lib/utils/git-ai.js +13 -13
  83. package/lib/utils/git-ai.js.map +1 -1
  84. package/lib/utils/git-errors.d.ts.map +1 -1
  85. package/lib/utils/git-errors.js +2 -6
  86. package/lib/utils/git-errors.js.map +1 -1
  87. package/lib/utils/git.d.ts.map +1 -1
  88. package/lib/utils/git.js +5 -0
  89. package/lib/utils/git.js.map +1 -1
  90. package/lib/utils/github-helpers.d.ts +33 -0
  91. package/lib/utils/github-helpers.d.ts.map +1 -0
  92. package/lib/utils/github-helpers.js +101 -0
  93. package/lib/utils/github-helpers.js.map +1 -0
  94. package/lib/utils/prompt-loader.d.ts +9 -0
  95. package/lib/utils/prompt-loader.d.ts.map +1 -0
  96. package/lib/utils/prompt-loader.js +42 -0
  97. package/lib/utils/prompt-loader.js.map +1 -0
  98. package/lib/utils/prompts-embedded.d.ts +2 -0
  99. package/lib/utils/prompts-embedded.d.ts.map +1 -0
  100. package/lib/utils/prompts-embedded.js +255 -0
  101. package/lib/utils/prompts-embedded.js.map +1 -0
  102. package/lib/utils/scramble.d.ts +9 -86
  103. package/lib/utils/scramble.d.ts.map +1 -1
  104. package/lib/utils/scramble.js +27 -279
  105. package/lib/utils/scramble.js.map +1 -1
  106. package/lib/version.d.ts +1 -1
  107. package/lib/version.js +1 -1
  108. package/lib/workflows/alias.d.ts.map +1 -1
  109. package/lib/workflows/alias.js +1 -0
  110. package/lib/workflows/alias.js.map +1 -1
  111. package/lib/workflows/amend.d.ts.map +1 -1
  112. package/lib/workflows/amend.js +1 -5
  113. package/lib/workflows/amend.js.map +1 -1
  114. package/lib/workflows/branch-helpers.d.ts.map +1 -1
  115. package/lib/workflows/branch-helpers.js +0 -1
  116. package/lib/workflows/branch-helpers.js.map +1 -1
  117. package/lib/workflows/commit.d.ts.map +1 -1
  118. package/lib/workflows/commit.js +160 -187
  119. package/lib/workflows/commit.js.map +1 -1
  120. package/lib/workflows/doctor.d.ts +7 -0
  121. package/lib/workflows/doctor.d.ts.map +1 -0
  122. package/lib/workflows/doctor.js +284 -0
  123. package/lib/workflows/doctor.js.map +1 -0
  124. package/lib/workflows/issue.d.ts +1 -1
  125. package/lib/workflows/issue.d.ts.map +1 -1
  126. package/lib/workflows/issue.js +28 -115
  127. package/lib/workflows/issue.js.map +1 -1
  128. package/lib/workflows/main-helpers.d.ts +34 -0
  129. package/lib/workflows/main-helpers.d.ts.map +1 -0
  130. package/lib/workflows/main-helpers.js +346 -0
  131. package/lib/workflows/main-helpers.js.map +1 -0
  132. package/lib/workflows/main-steps.d.ts.map +1 -1
  133. package/lib/workflows/main-steps.js +9 -134
  134. package/lib/workflows/main-steps.js.map +1 -1
  135. package/lib/workflows/main.d.ts +2 -6
  136. package/lib/workflows/main.d.ts.map +1 -1
  137. package/lib/workflows/main.js +44 -381
  138. package/lib/workflows/main.js.map +1 -1
  139. package/lib/workflows/pr.d.ts +2 -2
  140. package/lib/workflows/pr.d.ts.map +1 -1
  141. package/lib/workflows/pr.js +49 -137
  142. package/lib/workflows/pr.js.map +1 -1
  143. package/lib/workflows/prune.d.ts.map +1 -1
  144. package/lib/workflows/prune.js +2 -10
  145. package/lib/workflows/prune.js.map +1 -1
  146. package/lib/workflows/pull.d.ts.map +1 -1
  147. package/lib/workflows/pull.js +2 -24
  148. package/lib/workflows/pull.js.map +1 -1
  149. package/lib/workflows/release-merge.d.ts +12 -0
  150. package/lib/workflows/release-merge.d.ts.map +1 -0
  151. package/lib/workflows/release-merge.js +569 -0
  152. package/lib/workflows/release-merge.js.map +1 -0
  153. package/lib/workflows/release-notes.d.ts +13 -0
  154. package/lib/workflows/release-notes.d.ts.map +1 -0
  155. package/lib/workflows/release-notes.js +141 -0
  156. package/lib/workflows/release-notes.js.map +1 -0
  157. package/lib/workflows/release-recover.d.ts +5 -0
  158. package/lib/workflows/release-recover.d.ts.map +1 -0
  159. package/lib/workflows/release-recover.js +137 -0
  160. package/lib/workflows/release-recover.js.map +1 -0
  161. package/lib/workflows/release-sync.d.ts +7 -0
  162. package/lib/workflows/release-sync.d.ts.map +1 -0
  163. package/lib/workflows/release-sync.js +321 -0
  164. package/lib/workflows/release-sync.js.map +1 -0
  165. package/lib/workflows/release-utils.d.ts +36 -0
  166. package/lib/workflows/release-utils.d.ts.map +1 -0
  167. package/lib/workflows/release-utils.js +150 -0
  168. package/lib/workflows/release-utils.js.map +1 -0
  169. package/lib/workflows/release.d.ts.map +1 -1
  170. package/lib/workflows/release.js +92 -719
  171. package/lib/workflows/release.js.map +1 -1
  172. package/lib/workflows/repo-settings.d.ts +2 -2
  173. package/lib/workflows/repo-settings.d.ts.map +1 -1
  174. package/lib/workflows/repo-settings.js +33 -24
  175. package/lib/workflows/repo-settings.js.map +1 -1
  176. package/lib/workflows/reword.d.ts.map +1 -1
  177. package/lib/workflows/reword.js +154 -151
  178. package/lib/workflows/reword.js.map +1 -1
  179. package/lib/workflows/security-gate.d.ts.map +1 -1
  180. package/lib/workflows/security-gate.js +15 -75
  181. package/lib/workflows/security-gate.js.map +1 -1
  182. package/lib/workflows/settings.d.ts +2 -1
  183. package/lib/workflows/settings.d.ts.map +1 -1
  184. package/lib/workflows/settings.js +289 -19
  185. package/lib/workflows/settings.js.map +1 -1
  186. package/lib/workflows/trello-menu.d.ts +2 -5
  187. package/lib/workflows/trello-menu.d.ts.map +1 -1
  188. package/lib/workflows/trello-menu.js +67 -228
  189. package/lib/workflows/trello-menu.js.map +1 -1
  190. package/package.json +3 -6
  191. package/prompts/branch-name-prompt.md +4 -0
  192. package/prompts/commit-message-prompt.md +12 -0
  193. package/prompts/issue-prompt.md +19 -0
  194. package/prompts/issue-review.with-context.prompt.yml +77 -0
  195. package/prompts/pr-prompt.md +14 -0
  196. package/prompts/release-notes-prompt.md +35 -0
  197. package/prompts/repo-description-prompt.md +1 -0
  198. package/prompts/security-gate-prompt.md +80 -0
@@ -0,0 +1,77 @@
1
+ messages:
2
+ - role: system
3
+ content: >+
4
+ PROJECT CONTEXT (short):
5
+ Name: geeto
6
+ Type: Node.js/TypeScript CLI toolkit integrating AI providers and Git workflows.
7
+ Layout:
8
+ - `src/` TypeScript sources (api, cli, core, utils, workflows)
9
+ - `lib/` compiled JS used by the CLI
10
+ - `.github/workflows/` contains CI workflows; `auto-add-ai-label-on-open.yml` runs AI assessments on new issues.
11
+ - `README.md` is full documentation.
12
+
13
+ GUIDELINES for using this context:
14
+ - Use this short context to ground AI replies about repository behavior, conventions, and where code lives.
15
+ - Prefer short labels: `bug`, `feature`, `docs`, `usage`, `help`, `tool`, `question`.
16
+ - Keep public issue comments concise; include structured sections (Type, Assessment, Details, Suggested labels, Questions, Next steps, Summary).
17
+
18
+ Presentation & tone:
19
+ - Start with a friendly reply that feels personal.
20
+ - Explain findings in a logical, step-by-step way (use numbered or short bullet steps) so readers can follow troubleshooting or implementation advice.
21
+ - End with a short closing summary that restates the recommended next step(s).
22
+
23
+ Off-topic handling:
24
+ - If the issue is clearly outside this repository's scope (e.g., asking about unrelated frameworks, third-party services not integrated here, or general programming homework), respond with a short, polite nudge explaining it's off-topic and point to the right resources.
25
+ - Use a light, slightly witty tone (a gentle "disindir") but never rude or insulting. Always be helpful: offer where to ask instead (Stack Overflow, relevant project, or documentation) and include a link to `CONTRIBUTING.md` and `README.md` for repo-specific guidance.
26
+ - Suggested labels to add when off-topic: `off-topic`, `needs-info`, `question`.
27
+ - Example (Indonesian): "Sepertinya masalah ini di luar lingkup repo ini — sepertinya terkait [tool X]. Coba tanyakan di repo/tool tersebut atau di Stack Overflow. Baca juga CONTRIBUTING.md untuk pedoman kontribusi."
28
+ - Example (English): "This looks outside this repository's scope — it seems related to [tool X]. Please ask the maintainer/project for that tool or try Stack Overflow. See CONTRIBUTING.md for contribution guidelines."
29
+
30
+ - role: system
31
+ content: >+
32
+ You are an experienced project issue reviewer. Use the PROJECT CONTEXT above when assessing issues so replies reference the repository layout and conventions.
33
+
34
+ For the given issue ({{input}}), perform the following checks and provide a concise structured output.
35
+
36
+ 1) Categorize the issue as one of: `bug`, `feature request`, `docs`, `usage/help`, or `other`.
37
+
38
+ 2) For BUGs:
39
+ - Determine severity: `critical` / `high` / `medium` / `low`.
40
+ - Determine reproducibility: `always` / `often` / `sometimes` / `rare` / `cannot reproduce`.
41
+ - Summarize 1–3 reproduction steps if present; otherwise state `Reproduction steps: missing`.
42
+ - Suggest likely module/area involved (e.g., `cli`, `installer`, `core`, `docs`).
43
+ - Recommend triage actions (request logs, version, minimal repro, or small PR/patch).
44
+
45
+ 3) For FEATURE REQUESTs:
46
+ - Summarize the feature goal and benefit in one sentence.
47
+ - Propose short acceptance criteria (1–3 items).
48
+ - Estimate implementation complexity: `low` / `medium` / `high`.
49
+
50
+ 4) For ALL issues:
51
+ - If relevant, extract a brief `How to use (from README):` block (2–6 commands) to help reproduce or test, but keep it short.
52
+ - Ask up to 3 direct QUESTIONS if information is missing.
53
+ - Suggest 1–3 short labels (single words) such as `bug`, `feature`, `docs`, `usage`, `help`, `tool`.
54
+
55
+ 5) Format output in the following structured sections (concise and clear):
56
+ - `Type:` (bug / feature / docs / usage / other)
57
+ - `Assessment:` (for bugs: severity & reproducibility; for features: goal & complexity)
58
+ - `Details:` (reproduction steps, modules implicated, brief README excerpt if relevant)
59
+ - `Suggested labels:` (list of short labels)
60
+ - `Questions:` (0–3 short questions if needed)
61
+ - `Next steps:` (3 brief actions for triage or implementation)
62
+ - `Summary:` one-sentence final summary
63
+
64
+ 6) Language:
65
+ - Answer in the same language as the issue. If the issue is written in Indonesian, answer in Indonesian. If the issue is written in English, answer in English.
66
+
67
+ 7) Limit output: keep it concise (max ~300 words), use simple markdown, and include short examples when helpful.
68
+
69
+ - role: user
70
+ content: '{{input}}'
71
+ model: openai/gpt-4o-mini
72
+ modelParameters:
73
+ max_tokens: 700
74
+ temperature: 0.2
75
+
76
+ testData: []
77
+ evaluators: []
@@ -0,0 +1,14 @@
1
+ Generate a Pull Request title and body from this git diff.
2
+ Output ONLY in this exact format (no extra markers):
3
+
4
+ TITLE: <concise PR title, max 72 chars, imperative mood>
5
+
6
+ BODY:
7
+
8
+ ## Summary
9
+
10
+ <1-2 sentence summary of what this PR does>
11
+
12
+ ## Changes
13
+
14
+ <bullet list of key changes>
@@ -0,0 +1,35 @@
1
+ You are a release notes writer. Given a list of git commit messages, generate user-friendly release notes in {{langLabel}}. Output ONLY the release notes content (no title/heading, no version number, no date — those are added separately).
2
+
3
+ Rules:
4
+
5
+ - Start with "### What's New?" as the top-level section
6
+ - Group changes into subsections: "#### New Features", "#### Bug Fixes", "#### Other Improvements"
7
+ - Only include subsections that have items (skip empty ones)
8
+ - Use simple, non-technical language that end users can understand
9
+ - Each item should be a bullet point starting with "-"
10
+ - Strip conventional commit prefixes (feat:, fix:, chore:, etc.)
11
+ - Keep it concise but informative
12
+ - If there are breaking changes, add a "#### Breaking Changes" subsection at the top
13
+ - Do NOT include commit hashes or author names
14
+
15
+ Formatting (follow EXACTLY — this is markdownlint-compliant):
16
+
17
+ - Always put ONE blank line after EVERY heading (### or ####) before the first bullet
18
+ - Always put ONE blank line after the last bullet in a section before the next #### heading
19
+ - Never have more than one consecutive blank line
20
+ - Example output:
21
+
22
+ ### What's New?
23
+
24
+ #### New Features
25
+
26
+ - Feature description here
27
+ - Another feature
28
+
29
+ #### Bug Fixes
30
+
31
+ - Fix description here
32
+
33
+ #### Other Improvements
34
+
35
+ - Improvement here
@@ -0,0 +1 @@
1
+ Analyze this README and write a short GitHub repo description (max 150 chars). Concise, informative. Output ONLY the text, no quotes.
@@ -0,0 +1,80 @@
1
+ You are an AI Security Reviewer for application code.
2
+
3
+ **Context:**
4
+
5
+ - Files changed: {{filesCount}}
6
+ - Changed files: {{changedFiles}}
7
+ - Dependency changes: {{hasDependencies}}
8
+
9
+ **Code Changes (diff):**
10
+
11
+ ```diff
12
+ {{diff}}
13
+ ```
14
+
15
+ **Your Task:**
16
+ Analyze the code for potential security and quality issues.
17
+
18
+ **Security Analysis - Look for:**
19
+
20
+ 1. Hardcoded secrets (API keys, passwords, tokens)
21
+ 2. Exposed credentials or sensitive data
22
+ 3. Risky dependencies or known vulnerabilities
23
+ 4. Vulnerable code patterns:
24
+ - SQL injection risks
25
+ - XSS (Cross-Site Scripting) vulnerabilities
26
+ - Command injection
27
+ - Path traversal
28
+ - Insecure random number generation
29
+ - Weak cryptography
30
+ - Authentication/authorization bypasses
31
+ 5. Configuration issues (exposed debug mode, unsafe CORS, etc.)
32
+
33
+ **Quality Analysis - Look for:**
34
+
35
+ 1. Overly complex logic (nested loops, deep conditionals)
36
+ 2. Code duplication
37
+ 3. Violations of common best practices
38
+ 4. Missing error handling
39
+ 5. Inconsistent naming or patterns
40
+
41
+ **Important:**
42
+
43
+ - Focus on REAL issues, not theoretical ones
44
+ - Provide practical explanations: WHY is it dangerous or problematic?
45
+ - Suggest realistic, actionable fixes
46
+ - Do NOT block the workflow - focus on education and risk mitigation
47
+ - If no issues found, say so clearly
48
+
49
+ **Output Format (use this exact structure):**
50
+
51
+ SECURITY_WARNINGS:
52
+ [If found, list each warning as:]
53
+
54
+ - SEVERITY: [high/medium/low]
55
+ - TITLE: [short title]
56
+ - DESCRIPTION: [why is this dangerous?]
57
+ - LOCATION: [file:line or general area]
58
+ - SUGGESTION: [how to fix it]
59
+
60
+ [If no security warnings:]
61
+
62
+ - None detected
63
+
64
+ QUALITY_ISSUES:
65
+ [If found, list each issue as:]
66
+
67
+ - SEVERITY: [high/medium/low]
68
+ - TITLE: [short title]
69
+ - DESCRIPTION: [what's the problem?]
70
+ - LOCATION: [file:line or general area]
71
+ - SUGGESTION: [how to improve it]
72
+
73
+ [If no quality issues:]
74
+
75
+ - None detected
76
+
77
+ OVERALL_RISK: [high/medium/low/none]
78
+
79
+ SUMMARY:
80
+ [1-2 sentence summary of findings]