-
-
Notifications
You must be signed in to change notification settings - Fork 0
Package Raycast command suggestions #139
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
tonythethompson
wants to merge
8
commits into
master
Choose a base branch
from
codex/raycast-suggestion-integration
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.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
b05d749
Package Raycast command suggestions
tonythethompson 59bb57f
Show suggestions in manual workspace creation
tonythethompson d6545c7
Fix Raycast Suggest packaging and command dropdown UX
tonythethompson 44b71a6
Fix Raycast Suggest publish path and CLI failure handling
tonythethompson 2c459a5
Fix Suggest generation overflow and add Raycast ensure script
tonythethompson 2a3c5c4
Fix Prettier formatting in suggest-commands.ts
tonythethompson 7ae3653
Merge branch 'master' into codex/raycast-suggestion-integration
tonythethompson 92bfb64
Harden Suggest payload parsing and Raycast ensure script
tonythethompson 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
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
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 |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| const { spawnSync } = require("node:child_process"); | ||
| const fs = require("node:fs"); | ||
| const path = require("node:path"); | ||
|
|
||
| const raycastRoot = path.resolve(__dirname, ".."); | ||
| const repoRoot = path.resolve(raycastRoot, ".."); | ||
| const assetPath = path.join(raycastRoot, "assets", "QuickShell.Suggest.exe"); | ||
| const buildScript = path.join(repoRoot, "scripts", "build-raycast-suggest.ps1"); | ||
|
|
||
| const ifMissing = process.argv.includes("--if-missing"); | ||
|
|
||
| function fail(message) { | ||
| console.error(message); | ||
| process.exit(1); | ||
| } | ||
|
|
||
| if (process.platform !== "win32") { | ||
| process.exit(0); | ||
| } | ||
|
|
||
| if (ifMissing && fs.existsSync(assetPath)) { | ||
| process.exit(0); | ||
| } | ||
|
|
||
| if (!fs.existsSync(buildScript)) { | ||
| fail(`QuickShell.Suggest build script not found at ${buildScript}`); | ||
| } | ||
|
|
||
| const result = spawnSync( | ||
| "powershell.exe", | ||
| ["-NoProfile", "-ExecutionPolicy", "Bypass", "-File", buildScript, "-ProjectRoot", repoRoot], | ||
| { | ||
| cwd: repoRoot, | ||
| encoding: "utf8", | ||
| stdio: "inherit", | ||
| }, | ||
| ); | ||
|
|
||
| if (result.error) { | ||
| fail(`Failed to publish QuickShell.Suggest.exe: ${result.error.message}`); | ||
| } | ||
|
|
||
| if (result.status !== 0) { | ||
| fail(`QuickShell.Suggest publish failed with exit code ${result.status ?? 1}`); | ||
| } | ||
|
|
||
| if (!fs.existsSync(assetPath)) { | ||
| fail(`QuickShell.Suggest.exe was not published to ${assetPath}`); | ||
| } |
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
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.
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.
Uh oh!
There was an error while loading. Please reload this page.