getcursor / old Goto Github PK
View Code? Open in Web Editor NEWA Codemirror-based editor with many modern need-to-haves (e.g. LSP, Copilot, Vim, Remote SSH)
License: MIT License
A Codemirror-based editor with many modern need-to-haves (e.g. LSP, Copilot, Vim, Remote SSH)
License: MIT License
Greetings!
Much appreciation for this open source drop! Wow, what a treasure trove of reference implementations for various editor features on top of CodeMirror! Many many thanks for releasing this.
I got it running locally, and most features appear to work. However the AI generative features don't. I suspect I'm missing the access token part.
I noticed this part here:
export interface ToolState {
openLeftTab: 'search' | 'filetree'
leftTabActive: boolean
fileSearchTriggered: boolean
commandPaletteTriggered: boolean
aiCommandPaletteTriggered: boolean
leftSideExpanded: boolean
cursorLogin: {
accessToken?: string // Can I use this? Does it depend on Cursor's servers? Can I use an OpenAI API key?
profile?: string
stripeId?: string
}
}
I was just wondering if it might be possible to execute the AI completions against OpenAI directly, rather than going through Cursor's server as seen in API_ROOT
defaulting to 'https://aicursor.com'
in chatThunks
:
// Hit the diffs endpoint
const server = `${API_ROOT}/continue/`
const response = await fetch(server, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
...getBearerTokenHeader(getState),
// Cookie: `repo_path=${state.global.rootPath}`,
},
//credentials: 'include',
body: JSON.stringify(data),
}).then(async (resp) => {
Thanks a ton!
hihi i would love to test this out
./setup.sh # Mac/Linux
./setup.ps1 # Windows
but got 404
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.