
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
@gitsense/gscb-cli
Advanced tools
The GitSense Chat Bridge (GSCB) Command Line Interface is a tool designed to import various data sources, primarily Git repositories, into a GitSense Chat SQLite database. This allows the GitSense Chat application to leverage your code repositories for enhanced conversational AI capabilities.
To install the GSCB CLI, ensure you have Node.js and npm (or yarn/pnpm) installed.
Install via npm (Recommended for users):
To install the CLI globally, run:
npm install -g @gitsense/gscb-cli
This will make the gscb
command available directly in your terminal.
Install from source (For contributors/developers):
If you intend to contribute or develop the CLI, you can clone the repository and build it:
# Clone the repository
git clone https://github.com/gitsense/gscb-cli.git
cd gscb-cli
# Install dependencies
npm install
# Build the project
npm run build
After building, the gscb
executable will be available in dist/bin/gscb.js
.
The GSCB CLI's primary function is to import data.
The import git
command allows you to import a Git repository into your GitSense Chat database. The command now uses positional arguments for a more streamlined experience, with the database path specified as an option.
Current Version: 0.5.0
Syntax:
gscb import git <repo directory> <repo owner> <repo name> <branch> [options]
Arguments:
<repo directory>
: The local path to the Git repository (e.g., ./my-repo
, .
for current directory).<repo owner>
: The owner or organization name of the repository (e.g., gitsense
).<repo name>
: The name of the repository (e.g., gscb-cli
).<branch>
: The Git branch to import (e.g., main
, develop
). The ref-type
is automatically set to branch
.Options:
--db-path <path>
: The path to the GitSense Chat SQLite database file (e.g., ./test.db
). Defaults to ./data/chats.sqlite3
relative to the CLI executable.-s, --max-size <size>
: Maximum file size in KB to include in the import (default: 256
).-i, --include <pattern>
: Regular expression pattern to include specific files.-x, --exclude <pattern>
: Regular expression pattern to exclude specific files.-p, --prompt <name>
: Name of the system prompt to use for processing.--include-binary
: Include binary files in the import (by default, binary files are skipped).-v, --verbose
: Enable verbose logging for detailed output.Examples:
gscb import git . gitsense gscb-cli main --db-path ./test.db
gscb import git /path/to/your/repo my-company my-project develop --db-path ./data/chat.db -s 512 -v
gscb import git ./another-repo your-org awesome-app main --db-path ./db/app.sqlite --include-binary -x "node_modules|dist"
The list
command allows you to view imported data, specifically Git repositories.
Syntax:
gscb list [type] [owner] [repoName] [options]
Arguments:
[type]
: (Optional) The type of data to list. Currently, only git
is supported. If omitted, available types will be listed.[owner]
: (Optional) Filter by repository owner. Only applicable when type
is git
.[repoName]
: (Optional) Filter by repository name. Only applicable when type
is git
.Options:
--db-path <path>
: Path to the GitSense Chat SQLite database. Defaults to ./data/chats.sqlite3
relative to the CLI executable.Examples:
gscb list
gscb list git
gscb list git --db-path ./my-custom-db.sqlite
FAQs
GitSense Chat Bridge (GSCB) Command Line Tool
The npm package @gitsense/gscb-cli receives a total of 0 weekly downloads. As such, @gitsense/gscb-cli popularity was classified as not popular.
We found that @gitsense/gscb-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.