@grepai/cli 0.6.9 → 0.7.1
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.
- package/index.js +17 -514
- package/index.js.map +4 -6
- package/package.json +3 -2
package/index.js
CHANGED
|
@@ -13603,7 +13603,7 @@ var require_process = __commonJS((exports, module2) => {
|
|
|
13603
13603
|
var require_filesystem = __commonJS((exports, module2) => {
|
|
13604
13604
|
var fs2 = __require("fs");
|
|
13605
13605
|
var LDD_PATH = "/usr/bin/ldd";
|
|
13606
|
-
var
|
|
13606
|
+
var readFileSync2 = (path4) => fs2.readFileSync(path4, "utf-8");
|
|
13607
13607
|
var readFile3 = (path4) => new Promise((resolve4, reject) => {
|
|
13608
13608
|
fs2.readFile(path4, "utf-8", (err2, data) => {
|
|
13609
13609
|
if (err2) {
|
|
@@ -13615,7 +13615,7 @@ var require_filesystem = __commonJS((exports, module2) => {
|
|
|
13615
13615
|
});
|
|
13616
13616
|
module2.exports = {
|
|
13617
13617
|
LDD_PATH,
|
|
13618
|
-
readFileSync:
|
|
13618
|
+
readFileSync: readFileSync2,
|
|
13619
13619
|
readFile: readFile3
|
|
13620
13620
|
};
|
|
13621
13621
|
});
|
|
@@ -13624,7 +13624,7 @@ var require_filesystem = __commonJS((exports, module2) => {
|
|
|
13624
13624
|
var require_detect_libc = __commonJS((exports, module2) => {
|
|
13625
13625
|
var childProcess = __require("child_process");
|
|
13626
13626
|
var { isLinux, getReport } = require_process();
|
|
13627
|
-
var { LDD_PATH, readFile: readFile3, readFileSync:
|
|
13627
|
+
var { LDD_PATH, readFile: readFile3, readFileSync: readFileSync2 } = require_filesystem();
|
|
13628
13628
|
var cachedFamilyFilesystem;
|
|
13629
13629
|
var cachedVersionFilesystem;
|
|
13630
13630
|
var command = "getconf GNU_LIBC_VERSION 2>&1 || true; ldd --version 2>&1 || true";
|
|
@@ -13655,14 +13655,14 @@ var require_detect_libc = __commonJS((exports, module2) => {
|
|
|
13655
13655
|
var MUSL = "musl";
|
|
13656
13656
|
var GLIBC_ON_LDD = GLIBC.toUpperCase();
|
|
13657
13657
|
var MUSL_ON_LDD = MUSL.toLowerCase();
|
|
13658
|
-
var
|
|
13658
|
+
var isFileMusl2 = (f) => f.includes("libc.musl-") || f.includes("ld-musl-");
|
|
13659
13659
|
var familyFromReport = () => {
|
|
13660
13660
|
const report = getReport();
|
|
13661
13661
|
if (report.header && report.header.glibcVersionRuntime) {
|
|
13662
13662
|
return GLIBC;
|
|
13663
13663
|
}
|
|
13664
13664
|
if (Array.isArray(report.sharedObjects)) {
|
|
13665
|
-
if (report.sharedObjects.some(
|
|
13665
|
+
if (report.sharedObjects.some(isFileMusl2)) {
|
|
13666
13666
|
return MUSL;
|
|
13667
13667
|
}
|
|
13668
13668
|
}
|
|
@@ -13704,7 +13704,7 @@ var require_detect_libc = __commonJS((exports, module2) => {
|
|
|
13704
13704
|
}
|
|
13705
13705
|
cachedFamilyFilesystem = null;
|
|
13706
13706
|
try {
|
|
13707
|
-
const lddContent =
|
|
13707
|
+
const lddContent = readFileSync2(LDD_PATH);
|
|
13708
13708
|
cachedFamilyFilesystem = getFamilyFromLddContent(lddContent);
|
|
13709
13709
|
} catch (e) {}
|
|
13710
13710
|
return cachedFamilyFilesystem;
|
|
@@ -13759,7 +13759,7 @@ var require_detect_libc = __commonJS((exports, module2) => {
|
|
|
13759
13759
|
}
|
|
13760
13760
|
cachedVersionFilesystem = null;
|
|
13761
13761
|
try {
|
|
13762
|
-
const lddContent =
|
|
13762
|
+
const lddContent = readFileSync2(LDD_PATH);
|
|
13763
13763
|
const versionMatch = lddContent.match(RE_GLIBC_VERSION);
|
|
13764
13764
|
if (versionMatch) {
|
|
13765
13765
|
cachedVersionFilesystem = versionMatch[1];
|
|
@@ -13852,7 +13852,7 @@ var require_sqlite_error = __commonJS((exports, module2) => {
|
|
|
13852
13852
|
var require_libsql = __commonJS((exports, module2) => {
|
|
13853
13853
|
var { currentTarget } = require_dist2();
|
|
13854
13854
|
var { familySync, GLIBC } = require_detect_libc();
|
|
13855
|
-
function
|
|
13855
|
+
function requireNative2() {
|
|
13856
13856
|
let target = currentTarget();
|
|
13857
13857
|
if (familySync() == GLIBC) {
|
|
13858
13858
|
switch (target) {
|
|
@@ -13886,7 +13886,7 @@ var require_libsql = __commonJS((exports, module2) => {
|
|
|
13886
13886
|
statementColumns,
|
|
13887
13887
|
statementSafeIntegers,
|
|
13888
13888
|
rowsNext
|
|
13889
|
-
} =
|
|
13889
|
+
} = requireNative2();
|
|
13890
13890
|
var SqliteError2 = require_sqlite_error();
|
|
13891
13891
|
function convertError2(err2) {
|
|
13892
13892
|
if (err2.libsqlError) {
|
|
@@ -13895,7 +13895,7 @@ var require_libsql = __commonJS((exports, module2) => {
|
|
|
13895
13895
|
return err2;
|
|
13896
13896
|
}
|
|
13897
13897
|
|
|
13898
|
-
class
|
|
13898
|
+
class Database6 {
|
|
13899
13899
|
constructor(path4, opts) {
|
|
13900
13900
|
const encryptionCipher = opts?.encryptionCipher ?? "aes256cbc";
|
|
13901
13901
|
if (opts && opts.syncUrl) {
|
|
@@ -13937,7 +13937,7 @@ var require_libsql = __commonJS((exports, module2) => {
|
|
|
13937
13937
|
prepare(sql) {
|
|
13938
13938
|
try {
|
|
13939
13939
|
const stmt = databasePrepareSync.call(this.db, sql);
|
|
13940
|
-
return new
|
|
13940
|
+
return new Statement4(stmt);
|
|
13941
13941
|
} catch (err2) {
|
|
13942
13942
|
throw convertError2(err2);
|
|
13943
13943
|
}
|
|
@@ -14048,7 +14048,7 @@ var require_libsql = __commonJS((exports, module2) => {
|
|
|
14048
14048
|
}
|
|
14049
14049
|
}
|
|
14050
14050
|
|
|
14051
|
-
class
|
|
14051
|
+
class Statement4 {
|
|
14052
14052
|
constructor(stmt) {
|
|
14053
14053
|
this.stmt = stmt;
|
|
14054
14054
|
}
|
|
@@ -14121,7 +14121,7 @@ var require_libsql = __commonJS((exports, module2) => {
|
|
|
14121
14121
|
return this;
|
|
14122
14122
|
}
|
|
14123
14123
|
}
|
|
14124
|
-
module2.exports =
|
|
14124
|
+
module2.exports = Database6;
|
|
14125
14125
|
module2.exports.SqliteError = SqliteError2;
|
|
14126
14126
|
});
|
|
14127
14127
|
|
|
@@ -103112,505 +103112,8 @@ async function connect2(opts) {
|
|
|
103112
103112
|
return db;
|
|
103113
103113
|
}
|
|
103114
103114
|
|
|
103115
|
-
// ../../node_modules/.bun/@tursodatabase+database@0.4.4/node_modules/@tursodatabase/database/index.js
|
|
103116
|
-
import { createRequire as createRequire2 } from "module";
|
|
103117
|
-
var require3 = createRequire2(import.meta.url);
|
|
103118
|
-
var __dirname3 = new URL(".", import.meta.url).pathname;
|
|
103119
|
-
var { readFileSync: readFileSync2 } = require3("node:fs");
|
|
103120
|
-
var nativeBinding2 = null;
|
|
103121
|
-
var loadErrors2 = [];
|
|
103122
|
-
var isMusl2 = () => {
|
|
103123
|
-
let musl = false;
|
|
103124
|
-
if (process.platform === "linux") {
|
|
103125
|
-
musl = isMuslFromFilesystem2();
|
|
103126
|
-
if (musl === null) {
|
|
103127
|
-
musl = isMuslFromReport2();
|
|
103128
|
-
}
|
|
103129
|
-
if (musl === null) {
|
|
103130
|
-
musl = isMuslFromChildProcess2();
|
|
103131
|
-
}
|
|
103132
|
-
}
|
|
103133
|
-
return musl;
|
|
103134
|
-
};
|
|
103135
|
-
var isFileMusl2 = (f) => f.includes("libc.musl-") || f.includes("ld-musl-");
|
|
103136
|
-
var isMuslFromFilesystem2 = () => {
|
|
103137
|
-
try {
|
|
103138
|
-
return readFileSync2("/usr/bin/ldd", "utf-8").includes("musl");
|
|
103139
|
-
} catch {
|
|
103140
|
-
return null;
|
|
103141
|
-
}
|
|
103142
|
-
};
|
|
103143
|
-
var isMuslFromReport2 = () => {
|
|
103144
|
-
let report = null;
|
|
103145
|
-
if (typeof process.report?.getReport === "function") {
|
|
103146
|
-
process.report.excludeNetwork = true;
|
|
103147
|
-
report = process.report.getReport();
|
|
103148
|
-
}
|
|
103149
|
-
if (!report) {
|
|
103150
|
-
return null;
|
|
103151
|
-
}
|
|
103152
|
-
if (report.header && report.header.glibcVersionRuntime) {
|
|
103153
|
-
return false;
|
|
103154
|
-
}
|
|
103155
|
-
if (Array.isArray(report.sharedObjects)) {
|
|
103156
|
-
if (report.sharedObjects.some(isFileMusl2)) {
|
|
103157
|
-
return true;
|
|
103158
|
-
}
|
|
103159
|
-
}
|
|
103160
|
-
return false;
|
|
103161
|
-
};
|
|
103162
|
-
var isMuslFromChildProcess2 = () => {
|
|
103163
|
-
try {
|
|
103164
|
-
return require3("child_process").execSync("ldd --version", { encoding: "utf8" }).includes("musl");
|
|
103165
|
-
} catch (e) {
|
|
103166
|
-
return false;
|
|
103167
|
-
}
|
|
103168
|
-
};
|
|
103169
|
-
function requireNative2() {
|
|
103170
|
-
if (process.env.NAPI_RS_NATIVE_LIBRARY_PATH) {
|
|
103171
|
-
try {
|
|
103172
|
-
nativeBinding2 = require3(process.env.NAPI_RS_NATIVE_LIBRARY_PATH);
|
|
103173
|
-
} catch (err2) {
|
|
103174
|
-
loadErrors2.push(err2);
|
|
103175
|
-
}
|
|
103176
|
-
} else if (process.platform === "android") {
|
|
103177
|
-
if (process.arch === "arm64") {
|
|
103178
|
-
try {
|
|
103179
|
-
return require3("./turso.android-arm64.node");
|
|
103180
|
-
} catch (e) {
|
|
103181
|
-
loadErrors2.push(e);
|
|
103182
|
-
}
|
|
103183
|
-
try {
|
|
103184
|
-
const binding = require3("@tursodatabase/database-android-arm64");
|
|
103185
|
-
const bindingPackageVersion = require3("@tursodatabase/database-android-arm64/package.json").version;
|
|
103186
|
-
if (bindingPackageVersion !== "0.3.0-pre.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
103187
|
-
throw new Error(`Native binding package version mismatch, expected 0.3.0-pre.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
103188
|
-
}
|
|
103189
|
-
return binding;
|
|
103190
|
-
} catch (e) {
|
|
103191
|
-
loadErrors2.push(e);
|
|
103192
|
-
}
|
|
103193
|
-
} else if (process.arch === "arm") {
|
|
103194
|
-
try {
|
|
103195
|
-
return require3("./turso.android-arm-eabi.node");
|
|
103196
|
-
} catch (e) {
|
|
103197
|
-
loadErrors2.push(e);
|
|
103198
|
-
}
|
|
103199
|
-
try {
|
|
103200
|
-
const binding = require3("@tursodatabase/database-android-arm-eabi");
|
|
103201
|
-
const bindingPackageVersion = require3("@tursodatabase/database-android-arm-eabi/package.json").version;
|
|
103202
|
-
if (bindingPackageVersion !== "0.3.0-pre.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
103203
|
-
throw new Error(`Native binding package version mismatch, expected 0.3.0-pre.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
103204
|
-
}
|
|
103205
|
-
return binding;
|
|
103206
|
-
} catch (e) {
|
|
103207
|
-
loadErrors2.push(e);
|
|
103208
|
-
}
|
|
103209
|
-
} else {
|
|
103210
|
-
loadErrors2.push(new Error(`Unsupported architecture on Android ${process.arch}`));
|
|
103211
|
-
}
|
|
103212
|
-
} else if (process.platform === "win32") {
|
|
103213
|
-
if (process.arch === "x64") {
|
|
103214
|
-
try {
|
|
103215
|
-
return require3("./turso.win32-x64-msvc.node");
|
|
103216
|
-
} catch (e) {
|
|
103217
|
-
loadErrors2.push(e);
|
|
103218
|
-
}
|
|
103219
|
-
try {
|
|
103220
|
-
const binding = require3("@tursodatabase/database-win32-x64-msvc");
|
|
103221
|
-
const bindingPackageVersion = require3("@tursodatabase/database-win32-x64-msvc/package.json").version;
|
|
103222
|
-
if (bindingPackageVersion !== "0.3.0-pre.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
103223
|
-
throw new Error(`Native binding package version mismatch, expected 0.3.0-pre.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
103224
|
-
}
|
|
103225
|
-
return binding;
|
|
103226
|
-
} catch (e) {
|
|
103227
|
-
loadErrors2.push(e);
|
|
103228
|
-
}
|
|
103229
|
-
} else if (process.arch === "ia32") {
|
|
103230
|
-
try {
|
|
103231
|
-
return require3("./turso.win32-ia32-msvc.node");
|
|
103232
|
-
} catch (e) {
|
|
103233
|
-
loadErrors2.push(e);
|
|
103234
|
-
}
|
|
103235
|
-
try {
|
|
103236
|
-
const binding = require3("@tursodatabase/database-win32-ia32-msvc");
|
|
103237
|
-
const bindingPackageVersion = require3("@tursodatabase/database-win32-ia32-msvc/package.json").version;
|
|
103238
|
-
if (bindingPackageVersion !== "0.3.0-pre.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
103239
|
-
throw new Error(`Native binding package version mismatch, expected 0.3.0-pre.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
103240
|
-
}
|
|
103241
|
-
return binding;
|
|
103242
|
-
} catch (e) {
|
|
103243
|
-
loadErrors2.push(e);
|
|
103244
|
-
}
|
|
103245
|
-
} else if (process.arch === "arm64") {
|
|
103246
|
-
try {
|
|
103247
|
-
return require3("./turso.win32-arm64-msvc.node");
|
|
103248
|
-
} catch (e) {
|
|
103249
|
-
loadErrors2.push(e);
|
|
103250
|
-
}
|
|
103251
|
-
try {
|
|
103252
|
-
const binding = require3("@tursodatabase/database-win32-arm64-msvc");
|
|
103253
|
-
const bindingPackageVersion = require3("@tursodatabase/database-win32-arm64-msvc/package.json").version;
|
|
103254
|
-
if (bindingPackageVersion !== "0.3.0-pre.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
103255
|
-
throw new Error(`Native binding package version mismatch, expected 0.3.0-pre.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
103256
|
-
}
|
|
103257
|
-
return binding;
|
|
103258
|
-
} catch (e) {
|
|
103259
|
-
loadErrors2.push(e);
|
|
103260
|
-
}
|
|
103261
|
-
} else {
|
|
103262
|
-
loadErrors2.push(new Error(`Unsupported architecture on Windows: ${process.arch}`));
|
|
103263
|
-
}
|
|
103264
|
-
} else if (process.platform === "darwin") {
|
|
103265
|
-
try {
|
|
103266
|
-
return require3("./turso.darwin-universal.node");
|
|
103267
|
-
} catch (e) {
|
|
103268
|
-
loadErrors2.push(e);
|
|
103269
|
-
}
|
|
103270
|
-
try {
|
|
103271
|
-
const binding = require3("@tursodatabase/database-darwin-universal");
|
|
103272
|
-
const bindingPackageVersion = require3("@tursodatabase/database-darwin-universal/package.json").version;
|
|
103273
|
-
if (bindingPackageVersion !== "0.3.0-pre.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
103274
|
-
throw new Error(`Native binding package version mismatch, expected 0.3.0-pre.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
103275
|
-
}
|
|
103276
|
-
return binding;
|
|
103277
|
-
} catch (e) {
|
|
103278
|
-
loadErrors2.push(e);
|
|
103279
|
-
}
|
|
103280
|
-
if (process.arch === "x64") {
|
|
103281
|
-
try {
|
|
103282
|
-
return require3("./turso.darwin-x64.node");
|
|
103283
|
-
} catch (e) {
|
|
103284
|
-
loadErrors2.push(e);
|
|
103285
|
-
}
|
|
103286
|
-
try {
|
|
103287
|
-
const binding = require3("@tursodatabase/database-darwin-x64");
|
|
103288
|
-
const bindingPackageVersion = require3("@tursodatabase/database-darwin-x64/package.json").version;
|
|
103289
|
-
if (bindingPackageVersion !== "0.3.0-pre.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
103290
|
-
throw new Error(`Native binding package version mismatch, expected 0.3.0-pre.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
103291
|
-
}
|
|
103292
|
-
return binding;
|
|
103293
|
-
} catch (e) {
|
|
103294
|
-
loadErrors2.push(e);
|
|
103295
|
-
}
|
|
103296
|
-
} else if (process.arch === "arm64") {
|
|
103297
|
-
try {
|
|
103298
|
-
return require3("./turso.darwin-arm64.node");
|
|
103299
|
-
} catch (e) {
|
|
103300
|
-
loadErrors2.push(e);
|
|
103301
|
-
}
|
|
103302
|
-
try {
|
|
103303
|
-
const binding = require3("@tursodatabase/database-darwin-arm64");
|
|
103304
|
-
const bindingPackageVersion = require3("@tursodatabase/database-darwin-arm64/package.json").version;
|
|
103305
|
-
if (bindingPackageVersion !== "0.3.0-pre.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
103306
|
-
throw new Error(`Native binding package version mismatch, expected 0.3.0-pre.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
103307
|
-
}
|
|
103308
|
-
return binding;
|
|
103309
|
-
} catch (e) {
|
|
103310
|
-
loadErrors2.push(e);
|
|
103311
|
-
}
|
|
103312
|
-
} else {
|
|
103313
|
-
loadErrors2.push(new Error(`Unsupported architecture on macOS: ${process.arch}`));
|
|
103314
|
-
}
|
|
103315
|
-
} else if (process.platform === "freebsd") {
|
|
103316
|
-
if (process.arch === "x64") {
|
|
103317
|
-
try {
|
|
103318
|
-
return require3("./turso.freebsd-x64.node");
|
|
103319
|
-
} catch (e) {
|
|
103320
|
-
loadErrors2.push(e);
|
|
103321
|
-
}
|
|
103322
|
-
try {
|
|
103323
|
-
const binding = require3("@tursodatabase/database-freebsd-x64");
|
|
103324
|
-
const bindingPackageVersion = require3("@tursodatabase/database-freebsd-x64/package.json").version;
|
|
103325
|
-
if (bindingPackageVersion !== "0.3.0-pre.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
103326
|
-
throw new Error(`Native binding package version mismatch, expected 0.3.0-pre.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
103327
|
-
}
|
|
103328
|
-
return binding;
|
|
103329
|
-
} catch (e) {
|
|
103330
|
-
loadErrors2.push(e);
|
|
103331
|
-
}
|
|
103332
|
-
} else if (process.arch === "arm64") {
|
|
103333
|
-
try {
|
|
103334
|
-
return require3("./turso.freebsd-arm64.node");
|
|
103335
|
-
} catch (e) {
|
|
103336
|
-
loadErrors2.push(e);
|
|
103337
|
-
}
|
|
103338
|
-
try {
|
|
103339
|
-
const binding = require3("@tursodatabase/database-freebsd-arm64");
|
|
103340
|
-
const bindingPackageVersion = require3("@tursodatabase/database-freebsd-arm64/package.json").version;
|
|
103341
|
-
if (bindingPackageVersion !== "0.3.0-pre.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
103342
|
-
throw new Error(`Native binding package version mismatch, expected 0.3.0-pre.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
103343
|
-
}
|
|
103344
|
-
return binding;
|
|
103345
|
-
} catch (e) {
|
|
103346
|
-
loadErrors2.push(e);
|
|
103347
|
-
}
|
|
103348
|
-
} else {
|
|
103349
|
-
loadErrors2.push(new Error(`Unsupported architecture on FreeBSD: ${process.arch}`));
|
|
103350
|
-
}
|
|
103351
|
-
} else if (process.platform === "linux") {
|
|
103352
|
-
if (process.arch === "x64") {
|
|
103353
|
-
if (isMusl2()) {
|
|
103354
|
-
try {
|
|
103355
|
-
return require3("./turso.linux-x64-musl.node");
|
|
103356
|
-
} catch (e) {
|
|
103357
|
-
loadErrors2.push(e);
|
|
103358
|
-
}
|
|
103359
|
-
try {
|
|
103360
|
-
const binding = require3("@tursodatabase/database-linux-x64-musl");
|
|
103361
|
-
const bindingPackageVersion = require3("@tursodatabase/database-linux-x64-musl/package.json").version;
|
|
103362
|
-
if (bindingPackageVersion !== "0.3.0-pre.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
103363
|
-
throw new Error(`Native binding package version mismatch, expected 0.3.0-pre.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
103364
|
-
}
|
|
103365
|
-
return binding;
|
|
103366
|
-
} catch (e) {
|
|
103367
|
-
loadErrors2.push(e);
|
|
103368
|
-
}
|
|
103369
|
-
} else {
|
|
103370
|
-
try {
|
|
103371
|
-
return require3("./turso.linux-x64-gnu.node");
|
|
103372
|
-
} catch (e) {
|
|
103373
|
-
loadErrors2.push(e);
|
|
103374
|
-
}
|
|
103375
|
-
try {
|
|
103376
|
-
const binding = require3("@tursodatabase/database-linux-x64-gnu");
|
|
103377
|
-
const bindingPackageVersion = require3("@tursodatabase/database-linux-x64-gnu/package.json").version;
|
|
103378
|
-
if (bindingPackageVersion !== "0.3.0-pre.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
103379
|
-
throw new Error(`Native binding package version mismatch, expected 0.3.0-pre.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
103380
|
-
}
|
|
103381
|
-
return binding;
|
|
103382
|
-
} catch (e) {
|
|
103383
|
-
loadErrors2.push(e);
|
|
103384
|
-
}
|
|
103385
|
-
}
|
|
103386
|
-
} else if (process.arch === "arm64") {
|
|
103387
|
-
if (isMusl2()) {
|
|
103388
|
-
try {
|
|
103389
|
-
return require3("./turso.linux-arm64-musl.node");
|
|
103390
|
-
} catch (e) {
|
|
103391
|
-
loadErrors2.push(e);
|
|
103392
|
-
}
|
|
103393
|
-
try {
|
|
103394
|
-
const binding = require3("@tursodatabase/database-linux-arm64-musl");
|
|
103395
|
-
const bindingPackageVersion = require3("@tursodatabase/database-linux-arm64-musl/package.json").version;
|
|
103396
|
-
if (bindingPackageVersion !== "0.3.0-pre.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
103397
|
-
throw new Error(`Native binding package version mismatch, expected 0.3.0-pre.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
103398
|
-
}
|
|
103399
|
-
return binding;
|
|
103400
|
-
} catch (e) {
|
|
103401
|
-
loadErrors2.push(e);
|
|
103402
|
-
}
|
|
103403
|
-
} else {
|
|
103404
|
-
try {
|
|
103405
|
-
return require3("./turso.linux-arm64-gnu.node");
|
|
103406
|
-
} catch (e) {
|
|
103407
|
-
loadErrors2.push(e);
|
|
103408
|
-
}
|
|
103409
|
-
try {
|
|
103410
|
-
const binding = require3("@tursodatabase/database-linux-arm64-gnu");
|
|
103411
|
-
const bindingPackageVersion = require3("@tursodatabase/database-linux-arm64-gnu/package.json").version;
|
|
103412
|
-
if (bindingPackageVersion !== "0.3.0-pre.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
103413
|
-
throw new Error(`Native binding package version mismatch, expected 0.3.0-pre.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
103414
|
-
}
|
|
103415
|
-
return binding;
|
|
103416
|
-
} catch (e) {
|
|
103417
|
-
loadErrors2.push(e);
|
|
103418
|
-
}
|
|
103419
|
-
}
|
|
103420
|
-
} else if (process.arch === "arm") {
|
|
103421
|
-
if (isMusl2()) {
|
|
103422
|
-
try {
|
|
103423
|
-
return require3("./turso.linux-arm-musleabihf.node");
|
|
103424
|
-
} catch (e) {
|
|
103425
|
-
loadErrors2.push(e);
|
|
103426
|
-
}
|
|
103427
|
-
try {
|
|
103428
|
-
const binding = require3("@tursodatabase/database-linux-arm-musleabihf");
|
|
103429
|
-
const bindingPackageVersion = require3("@tursodatabase/database-linux-arm-musleabihf/package.json").version;
|
|
103430
|
-
if (bindingPackageVersion !== "0.3.0-pre.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
103431
|
-
throw new Error(`Native binding package version mismatch, expected 0.3.0-pre.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
103432
|
-
}
|
|
103433
|
-
return binding;
|
|
103434
|
-
} catch (e) {
|
|
103435
|
-
loadErrors2.push(e);
|
|
103436
|
-
}
|
|
103437
|
-
} else {
|
|
103438
|
-
try {
|
|
103439
|
-
return require3("./turso.linux-arm-gnueabihf.node");
|
|
103440
|
-
} catch (e) {
|
|
103441
|
-
loadErrors2.push(e);
|
|
103442
|
-
}
|
|
103443
|
-
try {
|
|
103444
|
-
const binding = require3("@tursodatabase/database-linux-arm-gnueabihf");
|
|
103445
|
-
const bindingPackageVersion = require3("@tursodatabase/database-linux-arm-gnueabihf/package.json").version;
|
|
103446
|
-
if (bindingPackageVersion !== "0.3.0-pre.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
103447
|
-
throw new Error(`Native binding package version mismatch, expected 0.3.0-pre.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
103448
|
-
}
|
|
103449
|
-
return binding;
|
|
103450
|
-
} catch (e) {
|
|
103451
|
-
loadErrors2.push(e);
|
|
103452
|
-
}
|
|
103453
|
-
}
|
|
103454
|
-
} else if (process.arch === "riscv64") {
|
|
103455
|
-
if (isMusl2()) {
|
|
103456
|
-
try {
|
|
103457
|
-
return require3("./turso.linux-riscv64-musl.node");
|
|
103458
|
-
} catch (e) {
|
|
103459
|
-
loadErrors2.push(e);
|
|
103460
|
-
}
|
|
103461
|
-
try {
|
|
103462
|
-
const binding = require3("@tursodatabase/database-linux-riscv64-musl");
|
|
103463
|
-
const bindingPackageVersion = require3("@tursodatabase/database-linux-riscv64-musl/package.json").version;
|
|
103464
|
-
if (bindingPackageVersion !== "0.3.0-pre.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
103465
|
-
throw new Error(`Native binding package version mismatch, expected 0.3.0-pre.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
103466
|
-
}
|
|
103467
|
-
return binding;
|
|
103468
|
-
} catch (e) {
|
|
103469
|
-
loadErrors2.push(e);
|
|
103470
|
-
}
|
|
103471
|
-
} else {
|
|
103472
|
-
try {
|
|
103473
|
-
return require3("./turso.linux-riscv64-gnu.node");
|
|
103474
|
-
} catch (e) {
|
|
103475
|
-
loadErrors2.push(e);
|
|
103476
|
-
}
|
|
103477
|
-
try {
|
|
103478
|
-
const binding = require3("@tursodatabase/database-linux-riscv64-gnu");
|
|
103479
|
-
const bindingPackageVersion = require3("@tursodatabase/database-linux-riscv64-gnu/package.json").version;
|
|
103480
|
-
if (bindingPackageVersion !== "0.3.0-pre.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
103481
|
-
throw new Error(`Native binding package version mismatch, expected 0.3.0-pre.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
103482
|
-
}
|
|
103483
|
-
return binding;
|
|
103484
|
-
} catch (e) {
|
|
103485
|
-
loadErrors2.push(e);
|
|
103486
|
-
}
|
|
103487
|
-
}
|
|
103488
|
-
} else if (process.arch === "ppc64") {
|
|
103489
|
-
try {
|
|
103490
|
-
return require3("./turso.linux-ppc64-gnu.node");
|
|
103491
|
-
} catch (e) {
|
|
103492
|
-
loadErrors2.push(e);
|
|
103493
|
-
}
|
|
103494
|
-
try {
|
|
103495
|
-
const binding = require3("@tursodatabase/database-linux-ppc64-gnu");
|
|
103496
|
-
const bindingPackageVersion = require3("@tursodatabase/database-linux-ppc64-gnu/package.json").version;
|
|
103497
|
-
if (bindingPackageVersion !== "0.3.0-pre.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
103498
|
-
throw new Error(`Native binding package version mismatch, expected 0.3.0-pre.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
103499
|
-
}
|
|
103500
|
-
return binding;
|
|
103501
|
-
} catch (e) {
|
|
103502
|
-
loadErrors2.push(e);
|
|
103503
|
-
}
|
|
103504
|
-
} else if (process.arch === "s390x") {
|
|
103505
|
-
try {
|
|
103506
|
-
return require3("./turso.linux-s390x-gnu.node");
|
|
103507
|
-
} catch (e) {
|
|
103508
|
-
loadErrors2.push(e);
|
|
103509
|
-
}
|
|
103510
|
-
try {
|
|
103511
|
-
const binding = require3("@tursodatabase/database-linux-s390x-gnu");
|
|
103512
|
-
const bindingPackageVersion = require3("@tursodatabase/database-linux-s390x-gnu/package.json").version;
|
|
103513
|
-
if (bindingPackageVersion !== "0.3.0-pre.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
103514
|
-
throw new Error(`Native binding package version mismatch, expected 0.3.0-pre.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
103515
|
-
}
|
|
103516
|
-
return binding;
|
|
103517
|
-
} catch (e) {
|
|
103518
|
-
loadErrors2.push(e);
|
|
103519
|
-
}
|
|
103520
|
-
} else {
|
|
103521
|
-
loadErrors2.push(new Error(`Unsupported architecture on Linux: ${process.arch}`));
|
|
103522
|
-
}
|
|
103523
|
-
} else if (process.platform === "openharmony") {
|
|
103524
|
-
if (process.arch === "arm64") {
|
|
103525
|
-
try {
|
|
103526
|
-
return require3("./turso.openharmony-arm64.node");
|
|
103527
|
-
} catch (e) {
|
|
103528
|
-
loadErrors2.push(e);
|
|
103529
|
-
}
|
|
103530
|
-
try {
|
|
103531
|
-
const binding = require3("@tursodatabase/database-openharmony-arm64");
|
|
103532
|
-
const bindingPackageVersion = require3("@tursodatabase/database-openharmony-arm64/package.json").version;
|
|
103533
|
-
if (bindingPackageVersion !== "0.3.0-pre.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
103534
|
-
throw new Error(`Native binding package version mismatch, expected 0.3.0-pre.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
103535
|
-
}
|
|
103536
|
-
return binding;
|
|
103537
|
-
} catch (e) {
|
|
103538
|
-
loadErrors2.push(e);
|
|
103539
|
-
}
|
|
103540
|
-
} else if (process.arch === "x64") {
|
|
103541
|
-
try {
|
|
103542
|
-
return require3("./turso.openharmony-x64.node");
|
|
103543
|
-
} catch (e) {
|
|
103544
|
-
loadErrors2.push(e);
|
|
103545
|
-
}
|
|
103546
|
-
try {
|
|
103547
|
-
const binding = require3("@tursodatabase/database-openharmony-x64");
|
|
103548
|
-
const bindingPackageVersion = require3("@tursodatabase/database-openharmony-x64/package.json").version;
|
|
103549
|
-
if (bindingPackageVersion !== "0.3.0-pre.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
103550
|
-
throw new Error(`Native binding package version mismatch, expected 0.3.0-pre.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
103551
|
-
}
|
|
103552
|
-
return binding;
|
|
103553
|
-
} catch (e) {
|
|
103554
|
-
loadErrors2.push(e);
|
|
103555
|
-
}
|
|
103556
|
-
} else if (process.arch === "arm") {
|
|
103557
|
-
try {
|
|
103558
|
-
return require3("./turso.openharmony-arm.node");
|
|
103559
|
-
} catch (e) {
|
|
103560
|
-
loadErrors2.push(e);
|
|
103561
|
-
}
|
|
103562
|
-
try {
|
|
103563
|
-
const binding = require3("@tursodatabase/database-openharmony-arm");
|
|
103564
|
-
const bindingPackageVersion = require3("@tursodatabase/database-openharmony-arm/package.json").version;
|
|
103565
|
-
if (bindingPackageVersion !== "0.3.0-pre.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
103566
|
-
throw new Error(`Native binding package version mismatch, expected 0.3.0-pre.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
103567
|
-
}
|
|
103568
|
-
return binding;
|
|
103569
|
-
} catch (e) {
|
|
103570
|
-
loadErrors2.push(e);
|
|
103571
|
-
}
|
|
103572
|
-
} else {
|
|
103573
|
-
loadErrors2.push(new Error(`Unsupported architecture on OpenHarmony: ${process.arch}`));
|
|
103574
|
-
}
|
|
103575
|
-
} else {
|
|
103576
|
-
loadErrors2.push(new Error(`Unsupported OS: ${process.platform}, architecture: ${process.arch}`));
|
|
103577
|
-
}
|
|
103578
|
-
}
|
|
103579
|
-
nativeBinding2 = requireNative2();
|
|
103580
|
-
if (!nativeBinding2 || process.env.NAPI_RS_FORCE_WASI) {
|
|
103581
|
-
try {
|
|
103582
|
-
nativeBinding2 = require3("./turso.wasi.cjs");
|
|
103583
|
-
} catch (err2) {
|
|
103584
|
-
if (process.env.NAPI_RS_FORCE_WASI) {
|
|
103585
|
-
loadErrors2.push(err2);
|
|
103586
|
-
}
|
|
103587
|
-
}
|
|
103588
|
-
if (!nativeBinding2) {
|
|
103589
|
-
try {
|
|
103590
|
-
nativeBinding2 = require3("@tursodatabase/database-wasm32-wasi");
|
|
103591
|
-
} catch (err2) {
|
|
103592
|
-
if (process.env.NAPI_RS_FORCE_WASI) {
|
|
103593
|
-
loadErrors2.push(err2);
|
|
103594
|
-
}
|
|
103595
|
-
}
|
|
103596
|
-
}
|
|
103597
|
-
}
|
|
103598
|
-
if (!nativeBinding2) {
|
|
103599
|
-
if (loadErrors2.length > 0) {
|
|
103600
|
-
throw new Error(`Cannot find native binding. ` + `npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). ` + "Please try `npm i` again after removing both package-lock.json and node_modules directory.", { cause: loadErrors2 });
|
|
103601
|
-
}
|
|
103602
|
-
throw new Error(`Failed to load native binding`);
|
|
103603
|
-
}
|
|
103604
|
-
var { BatchExecutor: BatchExecutor2, Database: Database5, Statement: Statement4 } = nativeBinding2;
|
|
103605
|
-
|
|
103606
|
-
// ../../node_modules/.bun/@tursodatabase+database@0.4.4/node_modules/@tursodatabase/database/dist/promise.js
|
|
103607
|
-
class Database6 extends Database {
|
|
103608
|
-
constructor(path4, opts = {}) {
|
|
103609
|
-
super(new Database5(path4, opts));
|
|
103610
|
-
}
|
|
103611
|
-
}
|
|
103612
|
-
|
|
103613
103115
|
// ../../node_modules/.bun/agentfs-sdk@0.6.2/node_modules/agentfs-sdk/dist/index_node.js
|
|
103116
|
+
import { Database as Database5 } from "@tursodatabase/database";
|
|
103614
103117
|
import { existsSync, mkdirSync } from "fs";
|
|
103615
103118
|
|
|
103616
103119
|
// ../../node_modules/.bun/agentfs-sdk@0.6.2/node_modules/agentfs-sdk/dist/agentfs.js
|
|
@@ -104962,7 +104465,7 @@ class AgentFS2 extends AgentFSCore {
|
|
|
104962
104465
|
}
|
|
104963
104466
|
dbPath = `${dir2}/${id2}.db`;
|
|
104964
104467
|
}
|
|
104965
|
-
const db = new
|
|
104468
|
+
const db = new Database5(dbPath);
|
|
104966
104469
|
await db.connect();
|
|
104967
104470
|
return await this.openWith(db);
|
|
104968
104471
|
}
|
|
@@ -112973,11 +112476,11 @@ var program = gen2(function* () {
|
|
|
112973
112476
|
const command = exports_Command.make("grepai").pipe(exports_Command.withSubcommands([indexCommand, searchCommand]));
|
|
112974
112477
|
const cli = exports_Command.run(command, {
|
|
112975
112478
|
name: "GREP AI",
|
|
112976
|
-
version: "v0.
|
|
112479
|
+
version: "v0.7.1"
|
|
112977
112480
|
});
|
|
112978
112481
|
yield* cli(process.argv);
|
|
112979
112482
|
});
|
|
112980
112483
|
program.pipe(provide2(mergeAll5(GrepAi.Default).pipe(provideMerge2(Clack.Default), provideMerge2(exports_BunContext.layer))), exports_BunRuntime.runMain);
|
|
112981
112484
|
|
|
112982
|
-
//# debugId=
|
|
112485
|
+
//# debugId=6EF01B9427CC027564756E2164756E21
|
|
112983
112486
|
//# sourceMappingURL=index.js.map
|