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.
- package/README.md +23 -9
- package/lib/api/copilot-adapter.d.ts +14 -5
- package/lib/api/copilot-adapter.d.ts.map +1 -1
- package/lib/api/copilot-adapter.js +15 -21
- package/lib/api/copilot-adapter.js.map +1 -1
- package/lib/api/copilot-sdk.d.ts +3 -16
- package/lib/api/copilot-sdk.d.ts.map +1 -1
- package/lib/api/copilot-sdk.js +166 -456
- package/lib/api/copilot-sdk.js.map +1 -1
- package/lib/api/copilot.d.ts +3 -4
- package/lib/api/copilot.d.ts.map +1 -1
- package/lib/api/copilot.js +28 -28
- package/lib/api/copilot.js.map +1 -1
- package/lib/api/gemini-sdk.d.ts.map +1 -1
- package/lib/api/gemini-sdk.js +11 -77
- package/lib/api/gemini-sdk.js.map +1 -1
- package/lib/api/gemini.d.ts +2 -2
- package/lib/api/gemini.d.ts.map +1 -1
- package/lib/api/gemini.js +24 -19
- package/lib/api/gemini.js.map +1 -1
- package/lib/api/gitlab.d.ts +80 -0
- package/lib/api/gitlab.d.ts.map +1 -0
- package/lib/api/gitlab.js +192 -0
- package/lib/api/gitlab.js.map +1 -0
- package/lib/api/openrouter-sdk.d.ts.map +1 -1
- package/lib/api/openrouter-sdk.js +11 -76
- package/lib/api/openrouter-sdk.js.map +1 -1
- package/lib/api/openrouter.d.ts.map +1 -1
- package/lib/api/openrouter.js +2 -16
- package/lib/api/openrouter.js.map +1 -1
- package/lib/api/platform.d.ts +78 -0
- package/lib/api/platform.d.ts.map +1 -0
- package/lib/api/platform.js +218 -0
- package/lib/api/platform.js.map +1 -0
- package/lib/cli/input.d.ts +2 -2
- package/lib/cli/input.d.ts.map +1 -1
- package/lib/cli/input.js +23 -27
- package/lib/cli/input.js.map +1 -1
- package/lib/cli/menu.d.ts +1 -1
- package/lib/cli/menu.d.ts.map +1 -1
- package/lib/cli/menu.js +123 -100
- package/lib/cli/menu.js.map +1 -1
- package/lib/core/copilot-setup.d.ts +8 -7
- package/lib/core/copilot-setup.d.ts.map +1 -1
- package/lib/core/copilot-setup.js +59 -230
- package/lib/core/copilot-setup.js.map +1 -1
- package/lib/core/gemini-setup.js +7 -7
- package/lib/core/gemini-setup.js.map +1 -1
- package/lib/core/gitlab-setup.d.ts +5 -0
- package/lib/core/gitlab-setup.d.ts.map +1 -0
- package/lib/core/gitlab-setup.js +85 -0
- package/lib/core/gitlab-setup.js.map +1 -0
- package/lib/core/openrouter-setup.d.ts.map +1 -1
- package/lib/core/openrouter-setup.js +17 -0
- package/lib/core/openrouter-setup.js.map +1 -1
- package/lib/index.js +501 -704
- package/lib/index.js.map +1 -1
- package/lib/types/index.d.ts +10 -6
- package/lib/types/index.d.ts.map +1 -1
- package/lib/utils/ai-provider-helpers.d.ts +5 -0
- package/lib/utils/ai-provider-helpers.d.ts.map +1 -0
- package/lib/utils/ai-provider-helpers.js +23 -0
- package/lib/utils/ai-provider-helpers.js.map +1 -0
- package/lib/utils/ai-text.d.ts +23 -0
- package/lib/utils/ai-text.d.ts.map +1 -0
- package/lib/utils/ai-text.js +57 -0
- package/lib/utils/ai-text.js.map +1 -0
- package/lib/utils/ai-workflow.d.ts +18 -0
- package/lib/utils/ai-workflow.d.ts.map +1 -0
- package/lib/utils/ai-workflow.js +66 -0
- package/lib/utils/ai-workflow.js.map +1 -0
- package/lib/utils/branch-naming.d.ts.map +1 -1
- package/lib/utils/branch-naming.js +1 -3
- package/lib/utils/branch-naming.js.map +1 -1
- package/lib/utils/config.d.ts +13 -1
- package/lib/utils/config.d.ts.map +1 -1
- package/lib/utils/config.js +38 -1
- package/lib/utils/config.js.map +1 -1
- package/lib/utils/display.d.ts.map +1 -1
- package/lib/utils/display.js +4 -3
- package/lib/utils/display.js.map +1 -1
- package/lib/utils/git-ai.js +13 -13
- package/lib/utils/git-ai.js.map +1 -1
- package/lib/utils/git-errors.d.ts.map +1 -1
- package/lib/utils/git-errors.js +2 -6
- package/lib/utils/git-errors.js.map +1 -1
- package/lib/utils/git.d.ts.map +1 -1
- package/lib/utils/git.js +5 -0
- package/lib/utils/git.js.map +1 -1
- package/lib/utils/github-helpers.d.ts +33 -0
- package/lib/utils/github-helpers.d.ts.map +1 -0
- package/lib/utils/github-helpers.js +101 -0
- package/lib/utils/github-helpers.js.map +1 -0
- package/lib/utils/prompt-loader.d.ts +9 -0
- package/lib/utils/prompt-loader.d.ts.map +1 -0
- package/lib/utils/prompt-loader.js +42 -0
- package/lib/utils/prompt-loader.js.map +1 -0
- package/lib/utils/prompts-embedded.d.ts +2 -0
- package/lib/utils/prompts-embedded.d.ts.map +1 -0
- package/lib/utils/prompts-embedded.js +255 -0
- package/lib/utils/prompts-embedded.js.map +1 -0
- package/lib/utils/scramble.d.ts +9 -86
- package/lib/utils/scramble.d.ts.map +1 -1
- package/lib/utils/scramble.js +27 -279
- package/lib/utils/scramble.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/workflows/alias.d.ts.map +1 -1
- package/lib/workflows/alias.js +1 -0
- package/lib/workflows/alias.js.map +1 -1
- package/lib/workflows/amend.d.ts.map +1 -1
- package/lib/workflows/amend.js +1 -5
- package/lib/workflows/amend.js.map +1 -1
- package/lib/workflows/branch-helpers.d.ts.map +1 -1
- package/lib/workflows/branch-helpers.js +0 -1
- package/lib/workflows/branch-helpers.js.map +1 -1
- package/lib/workflows/commit.d.ts.map +1 -1
- package/lib/workflows/commit.js +160 -187
- package/lib/workflows/commit.js.map +1 -1
- package/lib/workflows/doctor.d.ts +7 -0
- package/lib/workflows/doctor.d.ts.map +1 -0
- package/lib/workflows/doctor.js +284 -0
- package/lib/workflows/doctor.js.map +1 -0
- package/lib/workflows/issue.d.ts +1 -1
- package/lib/workflows/issue.d.ts.map +1 -1
- package/lib/workflows/issue.js +28 -115
- package/lib/workflows/issue.js.map +1 -1
- package/lib/workflows/main-helpers.d.ts +34 -0
- package/lib/workflows/main-helpers.d.ts.map +1 -0
- package/lib/workflows/main-helpers.js +346 -0
- package/lib/workflows/main-helpers.js.map +1 -0
- package/lib/workflows/main-steps.d.ts.map +1 -1
- package/lib/workflows/main-steps.js +9 -134
- package/lib/workflows/main-steps.js.map +1 -1
- package/lib/workflows/main.d.ts +2 -6
- package/lib/workflows/main.d.ts.map +1 -1
- package/lib/workflows/main.js +44 -381
- package/lib/workflows/main.js.map +1 -1
- package/lib/workflows/pr.d.ts +2 -2
- package/lib/workflows/pr.d.ts.map +1 -1
- package/lib/workflows/pr.js +49 -137
- package/lib/workflows/pr.js.map +1 -1
- package/lib/workflows/prune.d.ts.map +1 -1
- package/lib/workflows/prune.js +2 -10
- package/lib/workflows/prune.js.map +1 -1
- package/lib/workflows/pull.d.ts.map +1 -1
- package/lib/workflows/pull.js +2 -24
- package/lib/workflows/pull.js.map +1 -1
- package/lib/workflows/release-merge.d.ts +12 -0
- package/lib/workflows/release-merge.d.ts.map +1 -0
- package/lib/workflows/release-merge.js +569 -0
- package/lib/workflows/release-merge.js.map +1 -0
- package/lib/workflows/release-notes.d.ts +13 -0
- package/lib/workflows/release-notes.d.ts.map +1 -0
- package/lib/workflows/release-notes.js +141 -0
- package/lib/workflows/release-notes.js.map +1 -0
- package/lib/workflows/release-recover.d.ts +5 -0
- package/lib/workflows/release-recover.d.ts.map +1 -0
- package/lib/workflows/release-recover.js +137 -0
- package/lib/workflows/release-recover.js.map +1 -0
- package/lib/workflows/release-sync.d.ts +7 -0
- package/lib/workflows/release-sync.d.ts.map +1 -0
- package/lib/workflows/release-sync.js +321 -0
- package/lib/workflows/release-sync.js.map +1 -0
- package/lib/workflows/release-utils.d.ts +36 -0
- package/lib/workflows/release-utils.d.ts.map +1 -0
- package/lib/workflows/release-utils.js +150 -0
- package/lib/workflows/release-utils.js.map +1 -0
- package/lib/workflows/release.d.ts.map +1 -1
- package/lib/workflows/release.js +92 -719
- package/lib/workflows/release.js.map +1 -1
- package/lib/workflows/repo-settings.d.ts +2 -2
- package/lib/workflows/repo-settings.d.ts.map +1 -1
- package/lib/workflows/repo-settings.js +33 -24
- package/lib/workflows/repo-settings.js.map +1 -1
- package/lib/workflows/reword.d.ts.map +1 -1
- package/lib/workflows/reword.js +154 -151
- package/lib/workflows/reword.js.map +1 -1
- package/lib/workflows/security-gate.d.ts.map +1 -1
- package/lib/workflows/security-gate.js +15 -75
- package/lib/workflows/security-gate.js.map +1 -1
- package/lib/workflows/settings.d.ts +2 -1
- package/lib/workflows/settings.d.ts.map +1 -1
- package/lib/workflows/settings.js +289 -19
- package/lib/workflows/settings.js.map +1 -1
- package/lib/workflows/trello-menu.d.ts +2 -5
- package/lib/workflows/trello-menu.d.ts.map +1 -1
- package/lib/workflows/trello-menu.js +67 -228
- package/lib/workflows/trello-menu.js.map +1 -1
- package/package.json +3 -6
- package/prompts/branch-name-prompt.md +4 -0
- package/prompts/commit-message-prompt.md +12 -0
- package/prompts/issue-prompt.md +19 -0
- package/prompts/issue-review.with-context.prompt.yml +77 -0
- package/prompts/pr-prompt.md +14 -0
- package/prompts/release-notes-prompt.md +35 -0
- package/prompts/repo-description-prompt.md +1 -0
- 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]
|