Repository navigation
fix(corsair): write the upload commands in the skills instead of running the server's (0.1.9) - #16
Merged
Merged
Conversation
…ing the server's; 0.1.9 The Claude directory refused 0.1.8 (DP_TAG_BAN): a skill told Claude to run shell or script text the connector returns. The rule allows an upload command written out in the plugin's own text when the server fills in only an address, token or file name in single quotes. - corsair-files: the curl command is in the skill; upload_file's reply gives only the url - corsair-skills: the tar | curl command is in the skill; the reply gives only the upload link - corsair-data: search's read_data example and a job's read/cancel are hints to write your own call from, not code to run as given
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The Claude plugin directory refused 0.1.8 (91e3bc4) with one blocking finding,
DP_TAG_BAN"Runs script text returned by a server":The finding doesn't name a file, so this changes every place that matches. The same text was in 0.1.7; the check is newer than that scan.
Changes
curlcommand is now written out in the skill.upload_filewithpathalready returnsurlon its own. The skill takes only that from the reply, says not to run any command the reply contains, and shows how to keep the attachment's name (;filename=inside the same quotes).tar | curlfolder upload is written out in the skill. From the reply it takes only the upload link: thehttps://address at the end of the reply's command.read_dataexample for an app it can't search, and a job'sread/cancel, are now hints to write your own call from, not snippets to run as given.Evidence
node scripts/check.mjs:ok: 2 plugins, 9 skillsclaude plugin validate --profile directory --strict plugins/corsair: passedupload_filewith apathand took onlyurlfrom the reply, then ran:curl -sS --fail-with-body -F 'file=@<path>;filename=plugin-upload-check-0.1.9.txt' '<url>'It printed
Saved plugin-upload-check-0.1.9.txt as fil_EHS_Ehd8JFA (47 bytes), exit 0, so the renamed upload worked. The file stays in Pranay's Files undertests/.apps/cloud-runtime/src/tools/skill-sentences.mjson hub main) character for character, apart from how the folder path is quoted.After merge
The directory scans the new commit (or press "Submit latest version"). Then request publishing.