@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.
@@ -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.7.tar.gz"
5
- sha256 "3bd73b2bde8ae719f84e0027b4e01588e6cdc786556a68c5db9aaaf9a8a9dfe1"
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" => "cursor"
15
+ bin.install "build/bin/cursor-agent"
16
16
 
17
- # Install configuration template
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
- Cursor is a terminal-based agent for macOS, Linux, and containerized environments.
3
+ [![CI](https://github.com/bniladridas/cursor/actions/workflows/ci.yml/badge.svg)](https://github.com/bniladridas/cursor/actions/workflows/ci.yml)
4
+ [![Release](https://github.com/bniladridas/cursor/actions/workflows/release.yml/badge.svg)](https://github.com/bniladridas/cursor/actions/workflows/release.yml)
5
+ [![npm](https://img.shields.io/npm/v/@bniladridas/cursor)](https://www.npmjs.com/package/@bniladridas/cursor)
6
+ [![License](https://img.shields.io/badge/license-Apache%202.0-blue)](LICENSE)
4
7
 
5
- It works with codebases, files, commands, and repositories through a CLI interface.
8
+ Cursor is a cross-platform AI coding agent that works with codebases, files, commands, and repositories through a CLI interface.
6
9
 
7
- Homebrew:
10
+ ## Install
8
11
 
12
+ **npm** (binary: `cursor`):
9
13
  ```bash
10
- brew install cursor
14
+ npm i -g @bniladridas/cursor
11
15
  ```
12
16
 
13
- npm:
14
-
17
+ **Homebrew** (binary: `cursor-agent`):
15
18
  ```bash
16
- npm i -g @bniladridas/cursor
19
+ brew tap bniladridas/cursor https://github.com/bniladridas/cursor
20
+ brew install cursor
17
21
  ```
18
22
 
19
- Build from source:
20
-
23
+ **From source** (binary: `cursor`):
21
24
  ```bash
22
- cmake -S . -B build
23
- cmake --build build
24
- ./build/cursor-tests
25
+ cmake -S . -B build && cmake --build build
26
+ ./build/cursor-tests # run tests
25
27
  ```
26
28
 
27
- The project is written in C++20 and uses CMake for building and testing.
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
- License: Apache 2.0
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
- ![Cursor](.github/packaging/brand-cursor.png)
33
+ [![Cursor](.github/packaging/brand-cursor.png)](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: 'cursor-macos.tar.gz',
12
- linux: 'cursor-linux.tar.gz',
13
- win32: 'cursor-windows.zip',
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bniladridas/cursor",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Cross-platform AI coding agent",
5
5
  "bin": {
6
6
  "cursor": "cli.js"
@@ -1,3 +1,3 @@
1
- cfc6263cc63d3a900e0dd1df6c5a10e73e0b1efa151ac709d6411c8174e1b81b release/cursor-macos/cursor_v0.1.7_darwin_arm64.tar.gz
2
- ad1b59a23a845cc9b95352176caa10601a667dc823d16571d8eceb69bbde236b release/cursor-linux/cursor_v0.1.7_linux_amd64.tar.gz
3
- 2dd5225fd8fa6fd53314af61239a88902dcc337040784f30995758c2b931c369 release/cursor-windows/cursor__windows_amd64.zip
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