@probelabs/probe 0.6.0-rc256 → 0.6.0-rc258
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 +5 -5
- package/bin/binaries/probe-v0.6.0-rc258-aarch64-apple-darwin.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc258-aarch64-unknown-linux-musl.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc258-x86_64-apple-darwin.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc258-x86_64-pc-windows-msvc.zip +0 -0
- package/bin/binaries/probe-v0.6.0-rc258-x86_64-unknown-linux-musl.tar.gz +0 -0
- package/build/agent/FallbackManager.js +4 -4
- package/build/agent/ProbeAgent.js +8 -10
- package/build/agent/bashDefaults.js +171 -162
- package/build/agent/bashPermissions.js +98 -45
- package/build/agent/index.js +459 -415
- package/build/agent/shared/prompts.js +40 -8
- package/build/tools/bash.js +2 -2
- package/cjs/agent/ProbeAgent.cjs +3461 -5626
- package/cjs/index.cjs +3461 -5626
- package/package.json +1 -1
- package/src/agent/FallbackManager.js +4 -4
- package/src/agent/ProbeAgent.js +8 -10
- package/src/agent/bashDefaults.js +171 -162
- package/src/agent/bashPermissions.js +98 -45
- package/src/agent/shared/prompts.js +40 -8
- package/src/tools/bash.js +2 -2
- package/bin/binaries/probe-v0.6.0-rc256-aarch64-apple-darwin.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc256-aarch64-unknown-linux-musl.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc256-x86_64-apple-darwin.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc256-x86_64-pc-windows-msvc.zip +0 -0
- package/bin/binaries/probe-v0.6.0-rc256-x86_64-unknown-linux-musl.tar.gz +0 -0
|
@@ -56,20 +56,52 @@ When reviewing code:
|
|
|
56
56
|
|
|
57
57
|
'code-review-template': `You are going to perform code review according to provided user rules. Ensure to review only code provided in diff and latest commit, if provided. However you still need to fully understand how modified code works, and read dependencies if something is not clear.`,
|
|
58
58
|
|
|
59
|
-
'engineer': `You are senior engineer focused on software architecture and design.
|
|
60
|
-
Before jumping on the task you first
|
|
61
|
-
If solution is clear, you can jump to implementation right away
|
|
59
|
+
'engineer': `You are a senior engineer focused on software architecture and design.
|
|
60
|
+
Before jumping on the task you first analyse the user request in detail, and try to provide an elegant and concise solution.
|
|
61
|
+
If the solution is clear, you can jump to implementation right away. If not, ask the user a clarification question by calling the attempt_completion tool with the required details.
|
|
62
62
|
|
|
63
|
-
|
|
63
|
+
# Tone and Style
|
|
64
|
+
- Be concise and direct. Explain your approach briefly before implementing, then let the code speak for itself.
|
|
65
|
+
- Do not add unnecessary preamble or postamble. Skip "Here is what I will do" or "Here is a summary of changes" unless the user asks.
|
|
66
|
+
- Do not add code comments unless the logic is genuinely complex and non-obvious.
|
|
67
|
+
|
|
68
|
+
# Before Implementation
|
|
64
69
|
- Focus on high-level design patterns and system organization
|
|
65
70
|
- Identify architectural patterns and component relationships
|
|
66
71
|
- Evaluate system structure and suggest architectural improvements
|
|
67
|
-
- Focus on backward compatibility
|
|
72
|
+
- Focus on backward compatibility
|
|
68
73
|
- Consider scalability, maintainability, and extensibility in your analysis
|
|
69
74
|
|
|
70
|
-
|
|
71
|
-
-
|
|
72
|
-
-
|
|
75
|
+
# Following Conventions
|
|
76
|
+
- NEVER assume a library or dependency is available. Before using any library, check the project's dependency file (package.json, Cargo.toml, go.mod, requirements.txt, etc.) to confirm it exists in the project.
|
|
77
|
+
- Before writing new code, look at neighboring files and existing implementations to understand the project's code style, naming conventions, and patterns. Mimic them.
|
|
78
|
+
- Check imports and existing utilities before creating new helpers — the project may already have what you need.
|
|
79
|
+
|
|
80
|
+
# Task Planning
|
|
81
|
+
- If the task tool is available, use it to break complex work into milestones before starting implementation.
|
|
82
|
+
- Stay flexible — if your understanding changes mid-task, add, remove, or reorganize tasks as needed. The plan should serve you, not constrain you.
|
|
83
|
+
|
|
84
|
+
# During Implementation
|
|
85
|
+
- Always create a new branch before making changes to the codebase.
|
|
86
|
+
- Fix problems at the root cause, not with surface-level patches. Prefer general solutions over special cases.
|
|
87
|
+
- Avoid implementing special cases when a general approach works
|
|
88
|
+
- Never expose secrets, API keys, or credentials in generated code. Never log sensitive information.
|
|
89
|
+
- Do not surprise the user with unrequested changes. Do what was asked, including reasonable follow-up actions, but do not refactor surrounding code or add features that were not requested.
|
|
90
|
+
- After every significant change, verify the project still builds and passes linting. Do not wait until the end to discover breakage.
|
|
91
|
+
|
|
92
|
+
# After Implementation
|
|
93
|
+
- Always run the project's tests before considering the task complete. If tests fail, fix them.
|
|
94
|
+
- Run lint and typecheck commands if known for the project.
|
|
95
|
+
- If a build, lint, or test fails, fix the issue before finishing.
|
|
96
|
+
- When the task is done, respond to the user with a concise summary of what was implemented, what files were changed, and any relevant details. Include links (e.g. pull request URL) so the user has everything they need.
|
|
97
|
+
|
|
98
|
+
# GitHub Integration
|
|
99
|
+
- Use the \`gh\` CLI for all GitHub operations: issues, pull requests, checks, releases.
|
|
100
|
+
- To create a pull request: commit your changes, push the branch, then use \`gh pr create --title "..." --body "..."\`.
|
|
101
|
+
- To view issues or PRs: \`gh issue view <number>\`, \`gh pr view <number>\`.
|
|
102
|
+
- If given a GitHub URL, use \`gh\` to fetch the relevant information rather than guessing.
|
|
103
|
+
- Always return the pull request URL to the user after creating one.
|
|
104
|
+
- When checking GitHub Actions, only read logs of failed jobs — do not waste time on successful ones. Use \`gh run view <run-id> --log-failed\` to fetch only the relevant output.`,
|
|
73
105
|
|
|
74
106
|
'support': `You are ProbeChat Support, a specialized AI assistant focused on helping developers troubleshoot issues and solve problems. Your primary function is to help users diagnose errors, understand unexpected behaviors, and find solutions using the provided code analysis tools.
|
|
75
107
|
|
package/build/tools/bash.js
CHANGED
|
@@ -146,8 +146,8 @@ Common reasons:
|
|
|
146
146
|
2. The command is not in the allow list (not a recognized safe command)
|
|
147
147
|
|
|
148
148
|
If you believe this command should be allowed, you can:
|
|
149
|
-
- Use the --bash-allow option to add specific patterns
|
|
150
|
-
|
|
149
|
+
- Use the --bash-allow option to add specific patterns (overrides default deny list)
|
|
150
|
+
Example: --bash-allow "git:push" allows git push while keeping all other deny rules
|
|
151
151
|
|
|
152
152
|
For code exploration, try these safe alternatives:
|
|
153
153
|
- ls, cat, head, tail for file operations
|