Skip to content

fix(#298): add go install instructions to bundled notion-cli plugin - #370

Open
javimosch wants to merge 1 commit into
masterfrom
am/am-f17c27-dkfyrq5qrxmx-e42eaa25
Open

fix(#298): add go install instructions to bundled notion-cli plugin#370
javimosch wants to merge 1 commit into
masterfrom
am/am-f17c27-dkfyrq5qrxmx-e42eaa25

Conversation

@javimosch

@javimosch javimosch commented Aug 4, 2026

Copy link
Copy Markdown
Owner

Automated maintenance run by automaintainer.

Focus: == ASSIGNED OBJECTIVE ==
Fix GitHub issue #298 ONLY: Add 4ier/notion-cli as a bundled plugin in SuperCLI. PR title MUST reference #298.


OPEN PR AWARENESS (secondary — do not replace the ASSIGNED OBJECTIVE):
These open pull requests are already open and awaiting review. Do NOT start UNRELATED work on the files they touch. If your ASSIGNED OBJECTIVE requires editing one of those files, complete the objective anyway. Never abandon the objective to pick a different GitHub issue just to avoid overlap.

Branch: am/am-f17c27-dkfyrq5qrxmx-e42eaa25

Diff:

plugins/notion-cli/install-guidance.json      |  4 ++--
 plugins/notion-cli/plugin.json                |  6 +++---
 plugins/notion-cli/skills/quickstart/SKILL.md | 14 +++++++++++++-
 3 files changed, 18 insertions(+), 6 deletions(-)

Summary by CodeRabbit

  • Documentation
    • Updated Notion CLI installation guidance with Go as the primary method.
    • Added npm and GitHub Releases options while retaining Homebrew instructions.
    • Updated installation messages across setup, version checks, and command usage.

Add the primary `go install github.com/4ier/notion-cli@latest` method
to plugin.json, install-guidance.json, and the quickstart skill.
Homebrew and npm remain documented as alternatives.

Fixes #298

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@coderabbitai

coderabbitai Bot commented Aug 4, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The PR updates Notion CLI installation guidance. Go installation is now primary. Homebrew remains available, and npm and GitHub Releases are documented as alternatives. Dependency messages include the Go installation command.

Changes

Notion CLI installation guidance

Layer / File(s) Summary
Installation methods and quickstart guidance
plugins/notion-cli/install-guidance.json, plugins/notion-cli/plugin.json, plugins/notion-cli/skills/quickstart/SKILL.md
Go installation is now the primary method. npm, Homebrew, and GitHub Releases remain documented alternatives.
Dependency installation messages
plugins/notion-cli/plugin.json
Version and passthrough command messages now include Go installation guidance alongside Homebrew.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: adding Go installation instructions to the bundled notion-cli plugin.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch am/am-f17c27-dkfyrq5qrxmx-e42eaa25

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@plugins/notion-cli/install-guidance.json`:
- Around line 6-7: Document the Go-installed notion binary location by adding
platform-specific PATH setup or an explicit GOBIN/gopath/bin destination before
verification at plugins/notion-cli/install-guidance.json:6-7,
plugins/notion-cli/plugin.json:14-14, plugins/notion-cli/plugin.json:33-33,
plugins/notion-cli/plugin.json:233-233, and
plugins/notion-cli/skills/quickstart/SKILL.md:61-63. Ensure each installation
flow makes notion available to the subsequent notion --version command.

In `@plugins/notion-cli/plugin.json`:
- Line 14: Update the notion installation guidance and dependency-help messages
around the Go install command to document that the binary is placed in GOBIN,
otherwise GOPATH/bin or the default $HOME/go/bin, and may require adding that
directory to PATH. Apply the same clarification consistently at the install
guidance and the references near the dependency-help logic.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: aeab1683-bb17-486c-adde-cc23abe545bd

📥 Commits

Reviewing files that changed from the base of the PR and between 6df5369 and 0bb907e.

📒 Files selected for processing (3)
  • plugins/notion-cli/install-guidance.json
  • plugins/notion-cli/plugin.json
  • plugins/notion-cli/skills/quickstart/SKILL.md

Comment on lines +6 to 7
"go install github.com/4ier/notion-cli@latest",
"Verify: notion --version",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== candidate files =="
git ls-files | rg '^plugins/notion-cli/(install-guidance\.json|plugin\.json|skills/quickstart/SKILL\.md)$' || true

echo
echo "== file excerpts =="
for f in plugins/notion-cli/install-guidance.json plugins/notion-cli/plugin.json plugins/notion-cli/skills/quickstart/SKILL.md; do
  echo "--- $f"
  wc -l "$f"
  sed -n '1,80p' "$f" | cat -n
  if [ "$f" = plugins/notion-cli/plugin.json ]; then
    sed -n '220,240p' "$f" | cat -n
  fi
done

echo
echo "== go install path-related terms in notion plugin =="
rg -n "go install|GOBIN|PATH|GOPATH|bin" plugins/notion-cli -S || true

echo
echo "== public docs for installed path semantics if reachable =="
python3 - <<'PY'
from urllib.request import urlopen
urls = [
    "https://github.com/4ier/notion-cli",
    "https://go.dev/ref/mod#go-build-cache",
]
for url in urls:
    try:
        data = urlopen(url, timeout=10).read().decode("utf-8", "replace")[:2000]
        print(f"--- {url}")
        print(data)
    except Exception as e:
        print(f"--- {url} ERROR: {e}")
PY

Repository: javimosch/supercli

Length of output: 11220


🌐 Web query:

Go go install module command installs binary GOBIN GOPATH PATH documentation

💡 Result:

The go install command is used to compile and install Go packages [1][2]. When you run go install, it compiles the specified packages and, if the package is a main package, installs the resulting binary executable [1][3]. Where binaries are installed: The destination directory for the installed binary is determined by the following priority [3]: 1. GOBIN: If the GOBIN environment variable is set, the binary is installed to the directory it specifies [1][3]. 2. GOPATH: If GOBIN is not set but GOPATH is defined, the binary is installed in the bin subdirectory of the first directory listed in GOPATH [3]. 3. Default: If neither GOBIN nor GOPATH is set, the binary is installed to the default GOPATH bin directory, which is $HOME/go/bin (or %USERPROFILE%\go\bin on Windows) [1][3]. System PATH: To run the installed binaries by name without specifying their full file path, you must add the installation directory (the one containing the binary) to your system's PATH environment variable [4][3]. You can identify the exact installation directory for a package by running the command go list -f '{{.Target}}' [4][3]. Behavioral Notes: - Module-aware mode: When running go install with a version suffix (e.g., @latest or @v1.0.0), it operates in module-aware mode, installing the binary without affecting the dependencies of the current module [1][2][5]. - Non-main packages: In modern module-aware mode, non-main packages are built and cached but not installed [1][2][6]. - Legacy Go: In older GOPATH mode, non-main packages were installed to $GOPATH/pkg/$GOOS_$GOARCH [1][2].

Citations:


Document the installed notion binary location.

go install places the binary in GOBIN, gopath/bin, or the default Go home bin directory, so notion --version can fail even after installation. Add the platform-specific PATH setup, or specify an install destination such as GOBIN/gopath/bin, at each of these locations.

  • plugins/notion-cli/install-guidance.json#L6-L7
  • plugins/notion-cli/plugin.json#L14-L14
  • plugins/notion-cli/plugin.json#L33-L33
  • plugins/notion-cli/plugin.json#L233-L233
  • plugins/notion-cli/skills/quickstart/SKILL.md#L61-L63
📍 Affects 3 files
  • plugins/notion-cli/install-guidance.json#L6-L7 (this comment)
  • plugins/notion-cli/plugin.json#L14-L14
  • plugins/notion-cli/plugin.json#L33-L33
  • plugins/notion-cli/plugin.json#L233-L233
  • plugins/notion-cli/skills/quickstart/SKILL.md#L61-L63
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@plugins/notion-cli/install-guidance.json` around lines 6 - 7, Document the
Go-installed notion binary location by adding platform-specific PATH setup or an
explicit GOBIN/gopath/bin destination before verification at
plugins/notion-cli/install-guidance.json:6-7,
plugins/notion-cli/plugin.json:14-14, plugins/notion-cli/plugin.json:33-33,
plugins/notion-cli/plugin.json:233-233, and
plugins/notion-cli/skills/quickstart/SKILL.md:61-63. Ensure each installation
flow makes notion available to the subsequent notion --version command.

"check": "which notion",
"install_steps": [
"brew install 4ier/tap/notion-cli",
"go install github.com/4ier/notion-cli@latest",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== file exists and line count =="
wc -l plugins/notion-cli/plugin.json || true

echo "== relevant context =="
sed -n '1,60p' plugins/notion-cli/plugin.json
printf '\n--- around line 233 ---\n'
sed -n '220,240p' plugins/notion-cli/plugin.json

echo "== go install paths in plugin.json =="
python3 - <<'PY'
import json
p='plugins/notion-cli/plugin.json'
with open(p) as f:
    data=json.load(f)
print(json.dumps(data, indent=2))
PY

echo "== search notion binary usage/messages =="
rg -n '"notion"|notion\.go|go install|GOBIN|PATH|GOPATH|GOPATH' plugins/notion-cli plugin.json 2>/dev/null || true

Repository: javimosch/supercli

Length of output: 15932


🌐 Web query:

SuperCLI plugin install_guidance install_steps command PATH binary missing dependency help schema

💡 Result:

SuperCLI is a plugin-based, config-driven CLI tool designed for developers and AI agents [1]. It organizes CLI tools into a plugin system where each plugin includes specific metadata for discovery, installation, and execution [2][3][1]. Plugin Structure and Metadata Each plugin directory contains essential files for integration [4][1]: - plugin.json: The core manifest containing metadata, command definitions, input validation schemas, and dependency requirements [2][1]. - meta.json: Contains descriptions and tags for discoverability [4]. - install-guidance.json: Provides specific installation instructions (install_steps) for the underlying CLI tool [4][5]. - skills/: Contains documentation (e.g., SKILL.md) for agent quickstarts [4][6]. Handling PATH and Dependencies SuperCLI does not strictly manage system-level PATH for underlying tools automatically. Instead, it relies on the install guidance provided within the plugin configuration [4][1]. - If a binary is missing or a dependency is not met, the install_steps defined in install-guidance.json (or via the registry) provide the necessary commands to install the required dependencies (e.g., using brew or npm) [4][7]. - Users can verify installations using commands specified in the guidance, such as checking tool versions (e.g., actionlint --version) [4][7]. - Once the underlying CLI tool is installed on the host system, SuperCLI can execute it as an adapter using the configuration defined in plugin.json [1]. Plugin Management Commands - Explore available plugins: supercli plugins explore [2][3]. - Install a plugin: supercli plugins install [2][1]. - Inspect plugin schema: supercli inspect --json (useful for verifying argument schemas) [3][8]. - Manage conflicts: Use the --on-conflict replace flag when installing if a plugin version or configuration is already present [1][7]. SuperCLI supports multiple runtimes—Node.js (sc) and Zig (sc-zig)—that share the same plugin storage (~/.supercli/plugins/plugins.lock.json), allowing them to co-exist and maintain state regardless of the runtime used [2][3][8]. If a command reports "command not found," it typically indicates the plugin is not installed or the underlying binary required by the plugin is missing from the system PATH [3]. You can resolve this by exploring the registry and following the installation guidance provided for that specific plugin [3].

Citations:


🌐 Web query:

Go module commands go install binary installation directory default GOBIN PATH

💡 Result:

When you run the go install command, Go compiles and installs the resulting executable binary into a specific directory [1][2]. The location of this directory is determined by the following priority rules [3]: 1. GOBIN Environment Variable: If the GOBIN environment variable is explicitly set, Go will install binaries into the directory specified by that path [1][3][4]. GOBIN must be an absolute path [4][5]. 2. Default Location: If GOBIN is not set, Go uses a default location [1][5]. This defaults to $GOPATH/bin [1][3][6]. If the GOPATH environment variable is not set, Go defaults to $HOME/go/bin (or %USERPROFILE%\go\bin on Windows) [1][3][6]. To check the current installation directory, you can run the command go env GOBIN [5]. If it returns nothing, the system is using the default $GOPATH/bin or $HOME/go/bin path [1][5]. You can change the default installation target permanently using the go env -w command [7][3]: go env -w GOBIN=/path/to/your/bin To run your installed binaries easily, it is common practice to add the installation directory to your system's PATH environment variable [7][3]. Note: Executables located in $GOROOT (the directory where Go itself is installed) are handled separately and are installed into $GOROOT/bin or $GOTOOLDIR instead of the GOBIN location [1][2].

Citations:


Document the notion binary location after go install.

go install github.com/4ier/notion-cli@latest does not guarantee notion is on PATH; Go installs it to GOBIN if set, otherwise $GOPATH/bin, or $HOME/go/bin on default setups. Add the expected Go binary path/setup to the install guidance and dependency-help messages at lines 14, 33, and 233.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@plugins/notion-cli/plugin.json` at line 14, Update the notion installation
guidance and dependency-help messages around the Go install command to document
that the binary is placed in GOBIN, otherwise GOPATH/bin or the default
$HOME/go/bin, and may require adding that directory to PATH. Apply the same
clarification consistently at the install guidance and the references near the
dependency-help logic.

@javimosch

Copy link
Copy Markdown
Owner Author

🤖 Escalated to CEO: https://github.com/javimosch/am-fleet/issues/47

The rebaser could not resolve conflicts automatically. Reply on the issue above to unblock this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant