opencode-tandem 0.6.4 → 0.6.5
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 +1 -1
- package/package.json +1 -1
- package/prompt.md +4 -1
- package/runtime/cli-tools.mjs +2 -2
package/README.md
CHANGED
|
@@ -48,7 +48,7 @@ The plugin notices which CLI tools are actually installed on your machine, and f
|
|
|
48
48
|
- `html2text` (Python, e.g. via `pipx install html2text`) - read web pages as markdown instead of raw markup
|
|
49
49
|
- `lynx` - plain-text fallback for web pages when the Python `html2text` is not installed
|
|
50
50
|
- `pdftotext` (poppler) - extract text from PDFs
|
|
51
|
-
-
|
|
51
|
+
- Chromium or Google Chrome - headless-render fallback for JS-heavy or bot-blocked pages
|
|
52
52
|
- `pandoc` - convert docx/odt/rtf to markdown
|
|
53
53
|
- `osascript` (macOS only) - drive the user's real browser sessions via AppleScript
|
|
54
54
|
- `jira`, `aws`, `saml2aws` - if your workflow includes them
|
package/package.json
CHANGED
package/prompt.md
CHANGED
|
@@ -40,6 +40,9 @@ Never write: "Great question!", "Let me know if...", "Let's dive in", "Here's wh
|
|
|
40
40
|
|
|
41
41
|
A number of CLI tools are installed on this laptop and fully authenticated, you're encouraged to use them when the situation calls for it.
|
|
42
42
|
|
|
43
|
+
<!--cli:rg-->
|
|
44
|
+
- Use `rg` instead of `grep`
|
|
45
|
+
<!--/cli-->
|
|
43
46
|
<!--cli:gh-->
|
|
44
47
|
- Use `gh` for anything GitHub: managing repos, issues, PRs, releases, workflows, API calls. For endpoints the CLI does not cover, use `gh api`
|
|
45
48
|
- Don't hammer GitHub with repeated gh calls for reading code - instead check whether repo is already cloned locally to a sibling folder, if not clone it, and grep locally
|
|
@@ -73,7 +76,7 @@ A number of CLI tools are installed on this laptop and fully authenticated, you'
|
|
|
73
76
|
- Unless your task requires seeing actual tags, always convert HTML fetched from the web to plain text instead of reading it raw, for example when using `curl`: `curl -s <url> | lynx -stdin -dump` (link URLs are kept in a References list).
|
|
74
77
|
<!--/cli-->
|
|
75
78
|
<!--cli:browser-->
|
|
76
|
-
- Use a real headless browser when you need to read a JS-rendered or bot-blocked page:
|
|
79
|
+
- Use a real headless browser when you need to read a JS-rendered or bot-blocked page: `d=$(mktemp -d); <browser-binary> --headless=new --disable-gpu --timeout=10000 --user-data-dir="$d" --dump-dom --virtual-time-budget=5000 <url> 2>/dev/null; rm -rf "$d"`. An empty or half-rendered body means the page outlasted the timeout: drop this URL and look for a faster source instead of retrying.
|
|
77
80
|
- When in doubt, always try `curl` first before resorting to a headless browser
|
|
78
81
|
<!--/cli-->
|
|
79
82
|
<!--cli:pandoc-->
|
package/runtime/cli-tools.mjs
CHANGED
|
@@ -27,11 +27,11 @@ export function isOnPath(binary) {
|
|
|
27
27
|
|
|
28
28
|
// Chromium-family binary for the headless-render fallback; PATH first, then app bundles
|
|
29
29
|
function findBrowserBinary() {
|
|
30
|
-
for (const name of ["
|
|
30
|
+
for (const name of ["chromium", "chromium-browser", "google-chrome", "google-chrome-stable"]) {
|
|
31
31
|
if (isOnPath(name)) return name;
|
|
32
32
|
}
|
|
33
33
|
if (process.platform === "darwin") {
|
|
34
|
-
for (const app of ["
|
|
34
|
+
for (const app of ["Chromium", "Google Chrome"]) {
|
|
35
35
|
const bin = `/Applications/${app}.app/Contents/MacOS/${app}`;
|
|
36
36
|
try {
|
|
37
37
|
if (statSync(bin).isFile()) return bin;
|