🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

botrun-mcli

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

botrun-mcli - npm Package Compare versions

Comparing version
0.1.0
to
0.2.0
+1
-1
package.json
{
"name": "botrun-mcli",
"version": "0.1.0",
"version": "0.2.0",
"description": "Git-backed memory CLI for AI agents",

@@ -5,0 +5,0 @@ "type": "module",

export function buildCloneUrl(repo, token) {
return `https://x-access-token:${token}@${repo}.git`;
// Normalize: strip https://, trailing .git
const cleaned = repo
.replace(/^https?:\/\//, '')
.replace(/\.git$/, '');
return `https://x-access-token:${token}@${cleaned}.git`;
}

@@ -7,4 +7,4 @@ import * as github from './github.mjs';

export function detectProvider(repoUrl) {
if (repoUrl.startsWith('github.com')) return 'github';
if (repoUrl.startsWith('gitlab.com')) return 'gitlab';
if (repoUrl.includes('github.com')) return 'github';
if (repoUrl.includes('gitlab.com')) return 'gitlab';
throw new Error(`Unknown git provider for URL: ${repoUrl}`);

@@ -11,0 +11,0 @@ }