Skip to content

Commit

Permalink
CLI: Fix npm release (#4749)
Browse files Browse the repository at this point in the history
  • Loading branch information
olafurpg authored Jul 2, 2024
1 parent 68d1b40 commit e3beb6f
Show file tree
Hide file tree
Showing 6 changed files with 108 additions and 129 deletions.
6 changes: 6 additions & 0 deletions agent/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ This is a log of all notable changes to the Cody command-line tool. [Unreleased]

### Changed

## 0.1.1

### Fixed

- Running `npm install -g @sourcegraph/cody-agent` should work now. It was previously crashing about a missing keytar dependency.

## 0.1.0

### Added
Expand Down
16 changes: 10 additions & 6 deletions agent/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sourcegraph/cody-agent",
"version": "0.1.0",
"version": "0.1.1",
"description": "Cody JSON-RPC agent for consistent cross-editor support",
"license": "Apache-2.0",
"repository": {
Expand All @@ -24,8 +24,14 @@
"prepublishOnly": "pnpm run build"
},
"bin": "dist/index.js",
"files": ["dist/index.js", "dist/index.js.map", "dist/*.wasm", "dist/win-ca-roots.exe"],
"dependencies": {
"files": [
"dist/index.js",
"dist/index.js.map",
"dist/*.wasm",
"dist/win-ca-roots.exe",
"dist/keytar-*.node"
],
"peerDependencies": {
"@inquirer/prompts": "^5.0.7",
"@pollyjs/core": "^6.0.6",
"@pollyjs/persister": "^6.0.6",
Expand All @@ -52,9 +58,7 @@
"uuid": "^9.0.0",
"vscode-uri": "^3.0.7",
"win-ca": "^3.5.1",
"ws": "^8.16.0"
},
"devDependencies": {
"ws": "^8.16.0",
"@types/dedent": "^0.7.0",
"@types/diff": "^5.0.9",
"@types/fast-json-stable-stringify": "^2.1.0",
Expand Down
48 changes: 24 additions & 24 deletions agent/recordings/cody-chat_103640681/recording.har.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions agent/src/cli/__snapshots__/chat.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ exports[`--context-repo (squirrel test) 1`] = `
exitCode: 0
stdout: >+
Squirrel is a high-performance, open-source object-relational database (ORD)
that uses an SQL dialect and is embedded within applications. It is designed
to be lightweight, fast, and easy to use, making it suitable for applications
that require a database but do not need the complexity and overhead of a
traditional client-server database management system (DBMS).
that provides a SQL interface for storing and querying JSON data. It is
designed to be embedded in applications, making it suitable for use cases such
as caching, analytics, and data storage in edge computing environments.
stderr: ""
"
Expand Down
2 changes: 1 addition & 1 deletion agent/src/cli/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export async function chatAction(options: ChatOptions): Promise<number> {
const workspaceRootUri = vscode.Uri.file(path.resolve(options.dir))
const clientInfo: ClientInfo = {
name: 'cody-cli',
version: packageJson.version,
version: options.isTesting ? '0.1.0-SNAPSHOT' : packageJson.version,
workspaceRootUri: workspaceRootUri.toString(),
extensionConfiguration: {
serverEndpoint: options.endpoint,
Expand Down
Loading

0 comments on commit e3beb6f

Please sign in to comment.