NPM install for cline (#6861)

* WIP npm publish setup

* verbose startup + error if cline core not found

* working npm release

* modifications for linux npm package to work

* remove publish npm workflow for now

* readme & package.json tweaks

* fix old reference to compile-standalone-cli in test workflow

---------

Co-authored-by: Andrei Edell <andrei@nugbase.com>
This commit is contained in:
Andrei EternalandAndrei Edell authored and GitHub committed 2025-10-14 20:54:50 -07:00
1 parent e76d9527c8
commit 9be3fa5acf
15 files changed
+659 -498

No files matched your search

+3 -3
View File
@@ -11,7 +11,7 @@ import (
"time"
"github.com/cline/cli/pkg/common"
_ "github.com/mattn/go-sqlite3"
_ "github.com/glebarez/go-sqlite"
"google.golang.org/grpc/health/grpc_health_v1"
)
@@ -60,7 +60,7 @@ func NewLockManager(clineDir string) (*LockManager, error) {
}
// Database exists - open it normally (no schema creation)
db, err := sql.Open("sqlite3", dbPath)
db, err := sql.Open("sqlite", dbPath)
if err != nil {
// If we can't open existing database, return nil db manager
return &LockManager{dbPath: dbPath, db: nil}, nil
@@ -92,7 +92,7 @@ func (lm *LockManager) ensureConnection() error {
}
// Database exists, try to connect
db, err := sql.Open("sqlite3", lm.dbPath)
db, err := sql.Open("sqlite", lm.dbPath)
if err != nil {
return fmt.Errorf("failed to connect to database: %w", err)
}