@bniladridas/cursor 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/release.yml +8 -10
- package/Formula/cursor.rb +10 -11
- package/README.md +17 -30
- package/install.js +4 -3
- package/package.json +1 -1
- package/release/checksums.txt +3 -3
- package/release/cursor-linux/cursor_v0.1.8_linux_amd64.tar.gz +0 -0
- package/release/cursor-macos/cursor_v0.1.8_darwin_arm64.tar.gz +0 -0
- package/release/cursor-windows/cursor__windows_amd64.zip +0 -0
- package/release/cursor-linux/cursor_v0.1.7_linux_amd64.tar.gz +0 -0
- package/release/cursor-macos/cursor_v0.1.7_darwin_arm64.tar.gz +0 -0
|
@@ -105,15 +105,18 @@ jobs:
|
|
|
105
105
|
release:
|
|
106
106
|
needs: [linux, macos, windows]
|
|
107
107
|
runs-on: ubuntu-latest
|
|
108
|
-
env:
|
|
109
|
-
GH_TOKEN: ${{ github.token }}
|
|
110
|
-
|
|
111
108
|
steps:
|
|
112
109
|
- uses: actions/checkout@v6
|
|
113
110
|
with:
|
|
114
111
|
ref: main
|
|
115
112
|
fetch-depth: 0
|
|
116
113
|
|
|
114
|
+
- uses: actions/create-github-app-token@v3
|
|
115
|
+
id: app-token
|
|
116
|
+
with:
|
|
117
|
+
client-id: ${{ secrets.CURSOR_BOT_CLIENT_ID }}
|
|
118
|
+
private-key: ${{ secrets.CURSOR_BOT_PRIVATE_KEY }}
|
|
119
|
+
|
|
117
120
|
- name: Download artifacts
|
|
118
121
|
uses: actions/download-artifact@v6
|
|
119
122
|
with:
|
|
@@ -133,6 +136,8 @@ jobs:
|
|
|
133
136
|
echo "SOURCE_SHA=$(sha256sum /tmp/source.tar.gz | cut -d' ' -f1)" >> $GITHUB_ENV
|
|
134
137
|
|
|
135
138
|
- name: Publish release
|
|
139
|
+
env:
|
|
140
|
+
GH_TOKEN: ${{ steps.app-token.outputs.token }}
|
|
136
141
|
run: |
|
|
137
142
|
gh release create "$GITHUB_REF_NAME" \
|
|
138
143
|
$(find release -name '*.tar.gz' -o -name '*.zip' | sed 's|^| |') \
|
|
@@ -152,19 +157,12 @@ jobs:
|
|
|
152
157
|
npm version "$version" --no-git-tag-version --allow-same-version
|
|
153
158
|
|
|
154
159
|
- name: Publish npm
|
|
155
|
-
if: env.NPM_TOKEN != ''
|
|
156
160
|
env:
|
|
157
161
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
158
162
|
run: |
|
|
159
163
|
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
|
|
160
164
|
npm publish --access public --provenance 2>&1 || echo "already published"
|
|
161
165
|
|
|
162
|
-
- uses: actions/create-github-app-token@v3
|
|
163
|
-
id: app-token
|
|
164
|
-
with:
|
|
165
|
-
client-id: ${{ secrets.CURSOR_BOT_CLIENT_ID }}
|
|
166
|
-
private-key: ${{ secrets.CURSOR_BOT_PRIVATE_KEY }}
|
|
167
|
-
|
|
168
166
|
- name: Create version update PR
|
|
169
167
|
uses: peter-evans/create-pull-request@v8
|
|
170
168
|
with:
|
package/Formula/cursor.rb
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
class Cursor < Formula
|
|
2
2
|
desc "Professional AI agent with command execution and file operations"
|
|
3
3
|
homepage "https://github.com/bniladridas/cursor"
|
|
4
|
-
url "https://github.com/bniladridas/cursor/archive/refs/tags/v0.1.
|
|
5
|
-
sha256 "
|
|
4
|
+
url "https://github.com/bniladridas/cursor/archive/refs/tags/v0.1.8.tar.gz"
|
|
5
|
+
sha256 "8f5e29528edc6be08acfc81b0408330a4004da19453984dbc6176799277eecdb"
|
|
6
6
|
license "Apache-2.0"
|
|
7
7
|
|
|
8
8
|
depends_on "cmake" => :build
|
|
@@ -12,27 +12,26 @@ class Cursor < Formula
|
|
|
12
12
|
def install
|
|
13
13
|
system "cmake", "-S", ".", "-B", "build", *std_cmake_args
|
|
14
14
|
system "cmake", "--build", "build"
|
|
15
|
-
bin.install "build/bin/cursor-agent"
|
|
15
|
+
bin.install "build/bin/cursor-agent"
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
(etc/"cursor").install ".env.example" => "config.env"
|
|
17
|
+
(etc/"cursor-agent").install ".env.example" => "config.env"
|
|
19
18
|
end
|
|
20
19
|
|
|
21
20
|
def post_install
|
|
22
|
-
(var/"cursor").mkpath
|
|
23
|
-
unless (etc/"cursor/.env").exist?
|
|
24
|
-
cp etc/"cursor/config.env", etc/"cursor/.env"
|
|
21
|
+
(var/"cursor-agent").mkpath
|
|
22
|
+
unless (etc/"cursor-agent/.env").exist?
|
|
23
|
+
cp etc/"cursor-agent/config.env", etc/"cursor-agent/.env"
|
|
25
24
|
end
|
|
26
25
|
end
|
|
27
26
|
|
|
28
27
|
test do
|
|
29
|
-
system "#{bin}/cursor", "--version"
|
|
28
|
+
system "#{bin}/cursor-agent", "--version"
|
|
30
29
|
end
|
|
31
30
|
|
|
32
31
|
def caveats
|
|
33
32
|
<<~EOS
|
|
34
33
|
Configuration file is located at:
|
|
35
|
-
#{etc}/cursor/.env
|
|
34
|
+
#{etc}/cursor-agent/.env
|
|
36
35
|
|
|
37
36
|
Edit this file with your API keys:
|
|
38
37
|
- TOGETHER_API_KEY (for online mode)
|
|
@@ -40,7 +39,7 @@ class Cursor < Formula
|
|
|
40
39
|
- SERPAPI_KEY (for web search)
|
|
41
40
|
|
|
42
41
|
Data directory:
|
|
43
|
-
#{var}/cursor/
|
|
42
|
+
#{var}/cursor-agent/
|
|
44
43
|
EOS
|
|
45
44
|
end
|
|
46
45
|
end
|
package/README.md
CHANGED
|
@@ -1,46 +1,33 @@
|
|
|
1
1
|
# Cursor
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://github.com/bniladridas/cursor/actions/workflows/ci.yml)
|
|
4
|
+
[](https://github.com/bniladridas/cursor/actions/workflows/release.yml)
|
|
5
|
+
[](https://www.npmjs.com/package/@bniladridas/cursor)
|
|
6
|
+
[](LICENSE)
|
|
4
7
|
|
|
5
|
-
|
|
8
|
+
Cursor is a cross-platform AI coding agent that works with codebases, files, commands, and repositories through a CLI interface.
|
|
6
9
|
|
|
7
|
-
|
|
10
|
+
## Install
|
|
8
11
|
|
|
12
|
+
**npm** (binary: `cursor`):
|
|
9
13
|
```bash
|
|
10
|
-
|
|
14
|
+
npm i -g @bniladridas/cursor
|
|
11
15
|
```
|
|
12
16
|
|
|
13
|
-
|
|
14
|
-
|
|
17
|
+
**Homebrew** (binary: `cursor-agent`):
|
|
15
18
|
```bash
|
|
16
|
-
|
|
19
|
+
brew tap bniladridas/cursor https://github.com/bniladridas/cursor
|
|
20
|
+
brew install cursor
|
|
17
21
|
```
|
|
18
22
|
|
|
19
|
-
|
|
20
|
-
|
|
23
|
+
**From source** (binary: `cursor`):
|
|
21
24
|
```bash
|
|
22
|
-
cmake -S . -B build
|
|
23
|
-
|
|
24
|
-
./build/cursor-tests
|
|
25
|
+
cmake -S . -B build && cmake --build build
|
|
26
|
+
./build/cursor-tests # run tests
|
|
25
27
|
```
|
|
26
28
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
Source layout:
|
|
30
|
-
|
|
31
|
-
```text
|
|
32
|
-
src/
|
|
33
|
-
agent.cpp
|
|
34
|
-
memory_manager.cpp
|
|
35
|
-
services/
|
|
36
|
-
utils/
|
|
37
|
-
|
|
38
|
-
include/
|
|
39
|
-
agent.h
|
|
40
|
-
services/
|
|
41
|
-
utils/
|
|
42
|
-
```
|
|
29
|
+
## Platforms
|
|
43
30
|
|
|
44
|
-
|
|
31
|
+
Pre-built binaries for Linux (amd64), macOS (arm64), and Windows (amd64) are available on the [releases page](https://github.com/bniladridas/cursor/releases).
|
|
45
32
|
|
|
46
|
-

|
|
33
|
+
[](https://github.com/bniladridas/cursor/releases)
|
package/install.js
CHANGED
|
@@ -7,10 +7,11 @@ const pkg = require('./package.json');
|
|
|
7
7
|
const version = pkg.version;
|
|
8
8
|
const binaryDir = path.join(__dirname, 'binary');
|
|
9
9
|
|
|
10
|
+
const arch = process.arch === 'x64' ? 'amd64' : process.arch;
|
|
10
11
|
const platformMap = {
|
|
11
|
-
darwin:
|
|
12
|
-
linux:
|
|
13
|
-
win32:
|
|
12
|
+
darwin: `cursor_v${version}_darwin_arm64.tar.gz`,
|
|
13
|
+
linux: `cursor_v${version}_linux_amd64.tar.gz`,
|
|
14
|
+
win32: `cursor_v${version}_windows_amd64.zip`,
|
|
14
15
|
};
|
|
15
16
|
|
|
16
17
|
const archive = platformMap[process.platform];
|
package/package.json
CHANGED
package/release/checksums.txt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
fb8696e4173e851d399c4efcf3c141298d72538db225b3143f7c4ce62e42696b release/cursor-macos/cursor_v0.1.8_darwin_arm64.tar.gz
|
|
2
|
+
cc6dde0e8975a4c556c86f5b1c16d684e256ac0bc91900b475c3cfa3c8ad4803 release/cursor-linux/cursor_v0.1.8_linux_amd64.tar.gz
|
|
3
|
+
a058e7b012614a190060f029661bec9f52fb05246b4c0ac8bd56392630628d8e release/cursor-windows/cursor__windows_amd64.zip
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|