Repository navigation
fix(cli): fix various issues found during bugbash #112
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
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
fb6683e
fix(cli): include required value field in flag variant payload
bespoyasov a679e4a
fix(cli): comply with schema for flag enablement
bespoyasov ebd3fbc
fix(core): compute MCP preference location at runtime
bespoyasov 592119f
fix(cli): make --client required for flags resolve command
bespoyasov 020a087
Merge branch 'main' of github.com:spotify/confidence-cli into fix/man…
bespoyasov 59f48de
fix(cli): allow events create with --from-file without --field
bespoyasov 9e5f640
chore: update defaults for usage
bespoyasov 746edc8
fix: look up git root when detecting MCP status
bespoyasov 45314b1
fix: resolve .cmd shims on Windows and consolidate isWindows
bespoyasov f32984e
fix: resolve full plugin ID before calling claude plugin update
bespoyasov a42eaf4
refactor: download skills to `~/.config/confidence` and reference by …
bespoyasov b8fb243
perf: parallelize CLI call and skills download
bespoyasov 5431394
chore: mention plugin skills when launching chat session
bespoyasov c0b979c
test: update e2e
bespoyasov dc9304b
refactor: reduce duplication for mock integration
bespoyasov 7a17396
chore: add missing skills
bespoyasov e304e56
test: stub config dir
bespoyasov 7da0332
fix: replace shell: true with cross-spawn for safe Windows .cmd resol…
bespoyasov 41bfcfd
test: fix spawn mocks
bespoyasov c6cf25d
fix: skill download error handling, uninstall scoping, and force on u…
bespoyasov db59177
chore: update clean script
bespoyasov 553eeab
refactor: minor fixes in MCP detect and plugin resolution
bespoyasov 1ae504b
docs: update guidance about shared kernel
bespoyasov 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,3 @@ | ||
| dist/ | ||
| node_modules/ | ||
| .claude/ |
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
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 |
|---|---|---|
| @@ -1,22 +1,17 @@ | ||
| import { toggleFlag } from '@network/index.js'; | ||
| import { fail, message } from '@output/index.js'; | ||
| import { message, printMcpResult } from '@output/index.js'; | ||
| import { withAuth } from '@utils/index.js'; | ||
|
|
||
| export const toggleFlagCmd = withAuth(async function toggleFlagCmd(argv, token) { | ||
| const flagKey = argv['flag-key'] as string; | ||
| const enabled = argv.on === true; | ||
| const client = argv.client as string; | ||
|
|
||
| if (argv['dry-run']) { | ||
| message(JSON.stringify({ flagKey, enabled }, null, 2)); | ||
| message(JSON.stringify({ flagKey, enabled, client }, null, 2)); | ||
| return; | ||
| } | ||
|
|
||
| const result = await toggleFlag(token, flagKey, enabled); | ||
|
|
||
| if (!result.ok) { | ||
| fail(result.error.message); | ||
| return; | ||
| } | ||
|
|
||
| message(`Flag "${flagKey}" ${enabled ? 'enabled' : 'disabled'}.`); | ||
| const result = await toggleFlag(token, flagKey, { enabled, client }); | ||
| printMcpResult(result, argv); | ||
| }); |
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.