Repository navigation
feat(corsair): a Files skill, and search guidance for one-call answers - #11
Merged
Merged
Conversation
- corsair-files: getting a file in with upload_file (an attachment, a URL, a path with a shell, or the upload card), passing its fil_ id to an app in a script, and the files.* actions for reading, editing, saving and sharing. - corsair-data: search takes the whole question in the user's words and sets no filters itself, reads an app live when its copy is behind, says when nothing matched (near_misses are not answers), and reports coverage. - corsair 0.1.7; READMEs list seven skills.
6 tasks done
…mes connected apps - corsair-workspace now covers pg (dbs.list, query.sql in a rolled-back transaction, query.exec, dbs.create's setup_url, dbs.remove) and Mate chats (assistant.db.chats.search, chats.get), checked live on a link. - The plugin description says "query your Postgres databases" and "hand files to your connected apps" again, so search covers the apps by name.
…bsites So the user can let the sandbox send attachments straight to Files instead of picking each one in the upload card. Host checked on a live upload link.
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 Corsair MCP server has had a 15th tool,
upload_file, since corsairdev/hub#600 (11-16), and Corsair's Files on every link. No skill mentioned either.searchalso changed under the skills: corsairdev/hub#672 to #681 made it answer the whole question in one call, and corsair-data still taught the old way (put people inabout, dates inafter/before, run the named live calls yourself).What changed
New
corsair-filesskill. How a file gets into Files withupload_file(filefor a ChatGPT attachment,url,pathplus the returned curl command for a shell or claude.ai's sandbox, or the upload card), why scripts take afil_id and never bytes or base64, handing the id to an app where it takes a file URL, and thefiles.*actions: list, get, url, read_text (40,000 characters a page), write_text, edit_text, save_from_url (withfile_idfor a new version), update (rename, move, share, search text) and delete. The example parses an attachment with Reducto and keeps the result, covering both of Reducto's reply shapes (fullchunks or aurlfor long documents).corsair-data's search section now matches the tool on hub main: the whole question in the user's words plus
timeZone, no filters, no negations inquery, live reads folded into the hits,coverage, and "nothing matched" withnear_missesthat aren't the answer.pg and Mate chats. corsair-workspace now covers Corsair's other two apps an agent can reach: pg (the user's own Postgres databases, queried by name;
query.sqlruns in a rolled-back transaction,query.execcommits,dbs.createreturns asetup_urlso the connection URL never passes through the agent) and Mate chats (assistant.db.chats.search,assistant.api.chats.get).dbs.list, chat search andchats.getchecked live on a link.Small edits. corsair-workspace and corsair-data point to the Files skill. READMEs list seven skills. The plugin description now reads: "Work in Corsair from your agent: track issues in its PM, keep contacts and deals in its CRM, query your Postgres databases, hand files to your connected apps, search across all of it, and set up routines." corsair 0.1.7 in every manifest, the marketplaces, server.json and gemini-extension.json.
Evidence
apps/cloud-runtime/src/tools/upload-file.mjs,tools/search.mjs,src/file-links.mjs,packages/oss/src/plugins/files/index.ts(the ops and limits),packages/api/src/cloud/door-reply.ts(near misses).upload_filewith a public PDF, then one script withsave_from_url(the same file again returned the same id),read_text(the PDF's text,next_offset: null),url(an https link, 15 minutes),list,write_text(private,mine: true) andedit_text(replaced: 1). Both test files deleted afterwards.searchmisses a just-added file when asked in plain words, but finds it, text included, with its name andapps: ["files"]. The skill says to search that way.node scripts/check.mjs:ok: 2 plugins, 8 skills. Agent Plugins schemas valid.claude plugin validatepasses for., both plugins, and--profile directory --strict.skills/corsair(1a04bbd7).Docs get the same update in corsairdev/corsair (separate PR). After merge, Claude's directory picks up 0.1.7 on its 6-hour check; then press Publish on it so the pending review covers the current version.