@jixo/cli 0.23.3 → 0.23.4
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/assets/bundle/google-aistudio.browser.js +206 -0
- package/assets/bundle/google-aistudio.node.js +1192 -0
- package/bundle/index.js +35 -35
- package/package.json +1 -1
package/bundle/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import url2, { URL as URL$2, fileURLToPath as fileURLToPath$1, pathToFileURL as
|
|
|
13
13
|
import { AsyncLocalStorage, AsyncResource } from "node:async_hooks";
|
|
14
14
|
import process$1 from "node:process";
|
|
15
15
|
import { execFile, spawn } from "node:child_process";
|
|
16
|
-
import * as fs$
|
|
16
|
+
import * as fs$2 from "fs/promises";
|
|
17
17
|
import fs2 from "fs/promises";
|
|
18
18
|
import process2 from "process";
|
|
19
19
|
import { spawn as spawn$1 } from "child_process";
|
|
@@ -23,7 +23,7 @@ import * as readline from "node:readline";
|
|
|
23
23
|
import { promisify, stripVTControlCharacters } from "node:util";
|
|
24
24
|
import { EventEmitter, on, once } from "node:events";
|
|
25
25
|
import { finished } from "node:stream/promises";
|
|
26
|
-
import
|
|
26
|
+
import fs$1, { copyFile, mkdir, rm, writeFile as writeFile$1 } from "node:fs/promises";
|
|
27
27
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
28
28
|
import { builtinModules, createRequire as createRequire$1 } from "module";
|
|
29
29
|
import v8 from "v8";
|
|
@@ -8759,7 +8759,7 @@ var require_parse$3 = __commonJS$2({ "../../node_modules/.pnpm/gray-matter@4.0.3
|
|
|
8759
8759
|
//#endregion
|
|
8760
8760
|
//#region ../../node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/index.js
|
|
8761
8761
|
var require_gray_matter = __commonJS$2({ "../../node_modules/.pnpm/gray-matter@4.0.3/node_modules/gray-matter/index.js"(exports, module) {
|
|
8762
|
-
const fs$
|
|
8762
|
+
const fs$10 = __require$1("fs");
|
|
8763
8763
|
const sections = require_section_matter();
|
|
8764
8764
|
const defaults = require_defaults();
|
|
8765
8765
|
const stringify$4 = require_stringify$2();
|
|
@@ -8884,7 +8884,7 @@ var require_gray_matter = __commonJS$2({ "../../node_modules/.pnpm/gray-matter@4
|
|
|
8884
8884
|
* @api public
|
|
8885
8885
|
*/
|
|
8886
8886
|
matter$2.read = function(filepath, options$1) {
|
|
8887
|
-
const str = fs$
|
|
8887
|
+
const str = fs$10.readFileSync(filepath, "utf8");
|
|
8888
8888
|
const file$1 = matter$2(str, options$1);
|
|
8889
8889
|
file$1.path = filepath;
|
|
8890
8890
|
return file$1;
|
|
@@ -16616,8 +16616,8 @@ var require_utils$2 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3/n
|
|
|
16616
16616
|
exports.array = array$3;
|
|
16617
16617
|
const errno = require_errno$1();
|
|
16618
16618
|
exports.errno = errno;
|
|
16619
|
-
const fs$
|
|
16620
|
-
exports.fs = fs$
|
|
16619
|
+
const fs$9 = require_fs$4();
|
|
16620
|
+
exports.fs = fs$9;
|
|
16621
16621
|
const path$6 = require_path$1();
|
|
16622
16622
|
exports.path = path$6;
|
|
16623
16623
|
const pattern = require_pattern$1();
|
|
@@ -16789,12 +16789,12 @@ var require_sync$6 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.stat@2
|
|
|
16789
16789
|
var require_fs$3 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/adapters/fs.js"(exports) {
|
|
16790
16790
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16791
16791
|
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
|
|
16792
|
-
const fs$
|
|
16792
|
+
const fs$8 = __require$1("fs");
|
|
16793
16793
|
exports.FILE_SYSTEM_ADAPTER = {
|
|
16794
|
-
lstat: fs$
|
|
16795
|
-
stat: fs$
|
|
16796
|
-
lstatSync: fs$
|
|
16797
|
-
statSync: fs$
|
|
16794
|
+
lstat: fs$8.lstat,
|
|
16795
|
+
stat: fs$8.stat,
|
|
16796
|
+
lstatSync: fs$8.lstatSync,
|
|
16797
|
+
statSync: fs$8.statSync
|
|
16798
16798
|
};
|
|
16799
16799
|
function createFileSystemAdapter$1(fsMethods) {
|
|
16800
16800
|
if (fsMethods === void 0) return exports.FILE_SYSTEM_ADAPTER;
|
|
@@ -16807,12 +16807,12 @@ var require_fs$3 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.stat@2.0
|
|
|
16807
16807
|
//#region ../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.js
|
|
16808
16808
|
var require_settings$4 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.js"(exports) {
|
|
16809
16809
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16810
|
-
const fs$
|
|
16810
|
+
const fs$7 = require_fs$3();
|
|
16811
16811
|
var Settings$3 = class {
|
|
16812
16812
|
constructor(_options = {}) {
|
|
16813
16813
|
this._options = _options;
|
|
16814
16814
|
this.followSymbolicLink = this._getValue(this._options.followSymbolicLink, true);
|
|
16815
|
-
this.fs = fs$
|
|
16815
|
+
this.fs = fs$7.createFileSystemAdapter(this._options.fs);
|
|
16816
16816
|
this.markSymbolicLink = this._getValue(this._options.markSymbolicLink, false);
|
|
16817
16817
|
this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
|
|
16818
16818
|
}
|
|
@@ -16952,8 +16952,8 @@ var require_fs$2 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.scandir@
|
|
|
16952
16952
|
var require_utils$1 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.js"(exports) {
|
|
16953
16953
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16954
16954
|
exports.fs = void 0;
|
|
16955
|
-
const fs$
|
|
16956
|
-
exports.fs = fs$
|
|
16955
|
+
const fs$6 = require_fs$2();
|
|
16956
|
+
exports.fs = fs$6;
|
|
16957
16957
|
} });
|
|
16958
16958
|
|
|
16959
16959
|
//#endregion
|
|
@@ -17131,14 +17131,14 @@ var require_sync$5 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.scandi
|
|
|
17131
17131
|
var require_fs$1 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/adapters/fs.js"(exports) {
|
|
17132
17132
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17133
17133
|
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
|
|
17134
|
-
const fs$
|
|
17134
|
+
const fs$5 = __require$1("fs");
|
|
17135
17135
|
exports.FILE_SYSTEM_ADAPTER = {
|
|
17136
|
-
lstat: fs$
|
|
17137
|
-
stat: fs$
|
|
17138
|
-
lstatSync: fs$
|
|
17139
|
-
statSync: fs$
|
|
17140
|
-
readdir: fs$
|
|
17141
|
-
readdirSync: fs$
|
|
17136
|
+
lstat: fs$5.lstat,
|
|
17137
|
+
stat: fs$5.stat,
|
|
17138
|
+
lstatSync: fs$5.lstatSync,
|
|
17139
|
+
statSync: fs$5.statSync,
|
|
17140
|
+
readdir: fs$5.readdir,
|
|
17141
|
+
readdirSync: fs$5.readdirSync
|
|
17142
17142
|
};
|
|
17143
17143
|
function createFileSystemAdapter(fsMethods) {
|
|
17144
17144
|
if (fsMethods === void 0) return exports.FILE_SYSTEM_ADAPTER;
|
|
@@ -17153,12 +17153,12 @@ var require_settings$3 = __commonJS$2({ "../../node_modules/.pnpm/@nodelib+fs.sc
|
|
|
17153
17153
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17154
17154
|
const path$5 = __require$1("path");
|
|
17155
17155
|
const fsStat$3 = require_out$4();
|
|
17156
|
-
const fs$
|
|
17156
|
+
const fs$4 = require_fs$1();
|
|
17157
17157
|
var Settings$2 = class {
|
|
17158
17158
|
constructor(_options = {}) {
|
|
17159
17159
|
this._options = _options;
|
|
17160
17160
|
this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
|
|
17161
|
-
this.fs = fs$
|
|
17161
|
+
this.fs = fs$4.createFileSystemAdapter(this._options.fs);
|
|
17162
17162
|
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$5.sep);
|
|
17163
17163
|
this.stats = this._getValue(this._options.stats, false);
|
|
17164
17164
|
this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
|
|
@@ -18351,7 +18351,7 @@ var require_sync$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3/no
|
|
|
18351
18351
|
var require_settings$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/settings.js"(exports) {
|
|
18352
18352
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18353
18353
|
exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
|
|
18354
|
-
const fs$
|
|
18354
|
+
const fs$3 = __require$1("fs");
|
|
18355
18355
|
const os$1 = __require$1("os");
|
|
18356
18356
|
/**
|
|
18357
18357
|
* The `os.cpus` method can return zero. We expect the number of cores to be greater than zero.
|
|
@@ -18359,12 +18359,12 @@ var require_settings$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
|
18359
18359
|
*/
|
|
18360
18360
|
const CPU_COUNT = Math.max(os$1.cpus().length, 1);
|
|
18361
18361
|
exports.DEFAULT_FILE_SYSTEM_ADAPTER = {
|
|
18362
|
-
lstat: fs$
|
|
18363
|
-
lstatSync: fs$
|
|
18364
|
-
stat: fs$
|
|
18365
|
-
statSync: fs$
|
|
18366
|
-
readdir: fs$
|
|
18367
|
-
readdirSync: fs$
|
|
18362
|
+
lstat: fs$3.lstat,
|
|
18363
|
+
lstatSync: fs$3.lstatSync,
|
|
18364
|
+
stat: fs$3.stat,
|
|
18365
|
+
statSync: fs$3.statSync,
|
|
18366
|
+
readdir: fs$3.readdir,
|
|
18367
|
+
readdirSync: fs$3.readdirSync
|
|
18368
18368
|
};
|
|
18369
18369
|
var Settings = class {
|
|
18370
18370
|
constructor(_options = {}) {
|
|
@@ -18511,7 +18511,7 @@ var require_out$1 = __commonJS$2({ "../../node_modules/.pnpm/fast-glob@3.3.3/nod
|
|
|
18511
18511
|
async function isType(fsStatType, statsMethodName, filePath) {
|
|
18512
18512
|
if (typeof filePath !== "string") throw new TypeError(`Expected a string, got ${typeof filePath}`);
|
|
18513
18513
|
try {
|
|
18514
|
-
const stats = await
|
|
18514
|
+
const stats = await fs$1[fsStatType](filePath);
|
|
18515
18515
|
return stats[statsMethodName]();
|
|
18516
18516
|
} catch (error$41) {
|
|
18517
18517
|
if (error$41.code === "ENOENT") return false;
|
|
@@ -18608,7 +18608,7 @@ const isIgnoredByIgnoreFiles = async (patterns, options$1) => {
|
|
|
18608
18608
|
});
|
|
18609
18609
|
const files$1 = await Promise.all(paths.map(async (filePath) => ({
|
|
18610
18610
|
filePath,
|
|
18611
|
-
content: await
|
|
18611
|
+
content: await fs$1.readFile(filePath, "utf8")
|
|
18612
18612
|
})));
|
|
18613
18613
|
return getIsIgnoredPredicate(files$1, cwd);
|
|
18614
18614
|
};
|
|
@@ -33746,7 +33746,7 @@ async function findInDirectory(nameOrNames, { typeCheck, cwd, allowSymlinks = tr
|
|
|
33746
33746
|
}
|
|
33747
33747
|
async function safeStat(path14, allowSymlinks = true) {
|
|
33748
33748
|
try {
|
|
33749
|
-
return await (allowSymlinks ? fs$
|
|
33749
|
+
return await (allowSymlinks ? fs$2.stat : fs$2.lstat)(path14);
|
|
33750
33750
|
} catch {}
|
|
33751
33751
|
}
|
|
33752
33752
|
function findFile(nameOrNames, options8) {
|
|
@@ -42074,7 +42074,7 @@ async function gitWorkingContents(repoPath, options$1) {
|
|
|
42074
42074
|
return async () => {
|
|
42075
42075
|
results.set(filepath, {
|
|
42076
42076
|
path: filepath,
|
|
42077
|
-
content: status === "D" ? void 0 : await
|
|
42077
|
+
content: status === "D" ? void 0 : await fs$1.readFile(path.join(repoPath, filepath), "utf-8"),
|
|
42078
42078
|
status
|
|
42079
42079
|
});
|
|
42080
42080
|
};
|