-
Notifications
You must be signed in to change notification settings - Fork 7
fix(#298): add go install instructions to bundled notion-cli plugin #372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
javimosch
wants to merge
1
commit into
master
Choose a base branch
from
am/am-f17c27-dkg9sc8fjw7x-91e45236
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+23
−6
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,8 @@ | |
| "binary": "notion", | ||
| "check": "which notion", | ||
| "install_steps": [ | ||
| "brew install 4ier/tap/notion-cli", | ||
| "go install github.com/4ier/notion-cli@latest", | ||
| "GOBIN=$(go env GOBIN); GOPATH=$(go env GOPATH); ln -sf \"${GOBIN:-$GOPATH/bin}/notion-cli\" \"${GOBIN:-$GOPATH/bin}/notion\"", | ||
|
Comment on lines
+14
to
+15
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win Keep the installed binary on Line 15 creates the symlink in the Go binary directory, but the manifest only checks and executes 🤖 Prompt for AI Agents |
||
| "Verify: notion --version", | ||
| "Authenticate: echo 'ntn_xxxxx' | notion auth login --with-token", | ||
| "supercli plugins install ./plugins/notion-cli --on-conflict replace --json" | ||
|
|
@@ -30,7 +31,7 @@ | |
| "adapterConfig": { | ||
| "command": "notion", | ||
| "baseArgs": ["--version"], | ||
| "missingDependencyHelp": "Install notion-cli: brew install 4ier/tap/notion-cli" | ||
| "missingDependencyHelp": "Install notion-cli: go install github.com/4ier/notion-cli@latest (the binary will be named notion-cli; symlink or rename it to notion) or brew install 4ier/tap/notion-cli" | ||
| }, | ||
| "args": [] | ||
| }, | ||
|
|
@@ -230,7 +231,7 @@ | |
| "adapterConfig": { | ||
| "command": "notion", | ||
| "passthrough": true, | ||
| "missingDependencyHelp": "Install notion-cli: brew install 4ier/tap/notion-cli. Authenticate: echo 'ntn_xxxx' | notion auth login --with-token" | ||
| "missingDependencyHelp": "Install notion-cli: go install github.com/4ier/notion-cli@latest (the binary will be named notion-cli; symlink or rename it to notion) or brew install 4ier/tap/notion-cli. Authenticate: echo 'ntn_xxxx' | notion auth login --with-token" | ||
| }, | ||
| "args": [] | ||
| } | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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
Keep the installed
notionbinary onPATH.The installation steps place the binary in the Go binary directory, but the plugin checks and launches
notionthroughPATH.plugins/notion-cli/install-guidance.json#L6-L8: add persistentPATHsetup or link into an existingPATHdirectory.plugins/notion-cli/plugin.json#L14-L15: include the same setup in manifest guidance.plugins/notion-cli/skills/quickstart/SKILL.md#L61-L66: add the setup beforenotion --version.📍 Affects 3 files
plugins/notion-cli/install-guidance.json#L6-L8(this comment)plugins/notion-cli/plugin.json#L14-L15plugins/notion-cli/skills/quickstart/SKILL.md#L61-L66🤖 Prompt for AI Agents