aiblueprint-cli 1.4.25 → 1.4.27
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/dist/cli.js +43 -29
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -12963,7 +12963,7 @@ var require_signal_exit = __commonJS((exports, module) => {
|
|
|
12963
12963
|
emitter.on(ev, cb);
|
|
12964
12964
|
return remove;
|
|
12965
12965
|
};
|
|
12966
|
-
unload = function
|
|
12966
|
+
unload = function unload2() {
|
|
12967
12967
|
if (!loaded || !processOk(global.process)) {
|
|
12968
12968
|
return;
|
|
12969
12969
|
}
|
|
@@ -12978,7 +12978,7 @@ var require_signal_exit = __commonJS((exports, module) => {
|
|
|
12978
12978
|
emitter.count -= 1;
|
|
12979
12979
|
};
|
|
12980
12980
|
module.exports.unload = unload;
|
|
12981
|
-
emit = function
|
|
12981
|
+
emit = function emit2(event, code, signal) {
|
|
12982
12982
|
if (emitter.emitted[event]) {
|
|
12983
12983
|
return;
|
|
12984
12984
|
}
|
|
@@ -13007,7 +13007,7 @@ var require_signal_exit = __commonJS((exports, module) => {
|
|
|
13007
13007
|
return signals;
|
|
13008
13008
|
};
|
|
13009
13009
|
loaded = false;
|
|
13010
|
-
load = function
|
|
13010
|
+
load = function load2() {
|
|
13011
13011
|
if (loaded || !processOk(global.process)) {
|
|
13012
13012
|
return;
|
|
13013
13013
|
}
|
|
@@ -13026,7 +13026,7 @@ var require_signal_exit = __commonJS((exports, module) => {
|
|
|
13026
13026
|
};
|
|
13027
13027
|
module.exports.load = load;
|
|
13028
13028
|
originalProcessReallyExit = process3.reallyExit;
|
|
13029
|
-
processReallyExit = function
|
|
13029
|
+
processReallyExit = function processReallyExit2(code) {
|
|
13030
13030
|
if (!processOk(global.process)) {
|
|
13031
13031
|
return;
|
|
13032
13032
|
}
|
|
@@ -13036,7 +13036,7 @@ var require_signal_exit = __commonJS((exports, module) => {
|
|
|
13036
13036
|
originalProcessReallyExit.call(process3, process3.exitCode);
|
|
13037
13037
|
};
|
|
13038
13038
|
originalProcessEmit = process3.emit;
|
|
13039
|
-
processEmit = function
|
|
13039
|
+
processEmit = function processEmit2(ev, arg) {
|
|
13040
13040
|
if (ev === "exit" && processOk(global.process)) {
|
|
13041
13041
|
if (arg !== undefined) {
|
|
13042
13042
|
process3.exitCode = arg;
|
|
@@ -15063,12 +15063,12 @@ var require_wcwidth = __commonJS((exports, module) => {
|
|
|
15063
15063
|
nul: 0,
|
|
15064
15064
|
control: 0
|
|
15065
15065
|
};
|
|
15066
|
-
module.exports = function
|
|
15066
|
+
module.exports = function wcwidth2(str) {
|
|
15067
15067
|
return wcswidth(str, DEFAULTS);
|
|
15068
15068
|
};
|
|
15069
15069
|
module.exports.config = function(opts) {
|
|
15070
15070
|
opts = defaults(opts || {}, DEFAULTS);
|
|
15071
|
-
return function
|
|
15071
|
+
return function wcwidth2(str) {
|
|
15072
15072
|
return wcswidth(str, opts);
|
|
15073
15073
|
};
|
|
15074
15074
|
};
|
|
@@ -15738,7 +15738,7 @@ var require__stream_writable = __commonJS((exports, module) => {
|
|
|
15738
15738
|
}
|
|
15739
15739
|
});
|
|
15740
15740
|
} else {
|
|
15741
|
-
realHasInstance = function
|
|
15741
|
+
realHasInstance = function realHasInstance2(object) {
|
|
15742
15742
|
return object instanceof this;
|
|
15743
15743
|
};
|
|
15744
15744
|
}
|
|
@@ -16536,28 +16536,28 @@ var require_end_of_stream = __commonJS((exports, module) => {
|
|
|
16536
16536
|
callback = once(callback || noop);
|
|
16537
16537
|
var readable = opts.readable || opts.readable !== false && stream.readable;
|
|
16538
16538
|
var writable = opts.writable || opts.writable !== false && stream.writable;
|
|
16539
|
-
var onlegacyfinish = function
|
|
16539
|
+
var onlegacyfinish = function onlegacyfinish2() {
|
|
16540
16540
|
if (!stream.writable)
|
|
16541
16541
|
onfinish();
|
|
16542
16542
|
};
|
|
16543
16543
|
var writableEnded = stream._writableState && stream._writableState.finished;
|
|
16544
|
-
var onfinish = function
|
|
16544
|
+
var onfinish = function onfinish2() {
|
|
16545
16545
|
writable = false;
|
|
16546
16546
|
writableEnded = true;
|
|
16547
16547
|
if (!readable)
|
|
16548
16548
|
callback.call(stream);
|
|
16549
16549
|
};
|
|
16550
16550
|
var readableEnded = stream._readableState && stream._readableState.endEmitted;
|
|
16551
|
-
var onend = function
|
|
16551
|
+
var onend = function onend2() {
|
|
16552
16552
|
readable = false;
|
|
16553
16553
|
readableEnded = true;
|
|
16554
16554
|
if (!writable)
|
|
16555
16555
|
callback.call(stream);
|
|
16556
16556
|
};
|
|
16557
|
-
var onerror = function
|
|
16557
|
+
var onerror = function onerror2(err) {
|
|
16558
16558
|
callback.call(stream, err);
|
|
16559
16559
|
};
|
|
16560
|
-
var onclose = function
|
|
16560
|
+
var onclose = function onclose2() {
|
|
16561
16561
|
var err;
|
|
16562
16562
|
if (readable && !readableEnded) {
|
|
16563
16563
|
if (!stream._readableState || !stream._readableState.ended)
|
|
@@ -16570,7 +16570,7 @@ var require_end_of_stream = __commonJS((exports, module) => {
|
|
|
16570
16570
|
return callback.call(stream, err);
|
|
16571
16571
|
}
|
|
16572
16572
|
};
|
|
16573
|
-
var onrequest = function
|
|
16573
|
+
var onrequest = function onrequest2() {
|
|
16574
16574
|
stream.req.on("finish", onfinish);
|
|
16575
16575
|
};
|
|
16576
16576
|
if (isRequest(stream)) {
|
|
@@ -16727,7 +16727,7 @@ var require_async_iterator = __commonJS((exports, module) => {
|
|
|
16727
16727
|
});
|
|
16728
16728
|
});
|
|
16729
16729
|
}), _Object$setPrototypeO), AsyncIteratorPrototype);
|
|
16730
|
-
var createReadableStreamAsyncIterator = function
|
|
16730
|
+
var createReadableStreamAsyncIterator = function createReadableStreamAsyncIterator2(stream) {
|
|
16731
16731
|
var _Object$create;
|
|
16732
16732
|
var iterator = Object.create(ReadableStreamAsyncIteratorPrototype, (_Object$create = {}, _defineProperty(_Object$create, kStream, {
|
|
16733
16733
|
value: stream,
|
|
@@ -16916,7 +16916,7 @@ var require__stream_readable = __commonJS((exports, module) => {
|
|
|
16916
16916
|
var Duplex;
|
|
16917
16917
|
Readable.ReadableState = ReadableState;
|
|
16918
16918
|
var EE = __require("events").EventEmitter;
|
|
16919
|
-
var EElistenerCount = function
|
|
16919
|
+
var EElistenerCount = function EElistenerCount2(emitter, type) {
|
|
16920
16920
|
return emitter.listeners(type).length;
|
|
16921
16921
|
};
|
|
16922
16922
|
var Stream = __require("stream");
|
|
@@ -16933,7 +16933,7 @@ var require__stream_readable = __commonJS((exports, module) => {
|
|
|
16933
16933
|
if (debugUtil && debugUtil.debuglog) {
|
|
16934
16934
|
debug = debugUtil.debuglog("stream");
|
|
16935
16935
|
} else {
|
|
16936
|
-
debug = function
|
|
16936
|
+
debug = function debug2() {};
|
|
16937
16937
|
}
|
|
16938
16938
|
var BufferList = require_buffer_list();
|
|
16939
16939
|
var destroyImpl = require_destroy();
|
|
@@ -17993,14 +17993,14 @@ var require_BufferList = __commonJS((exports, module) => {
|
|
|
17993
17993
|
if (srcEnd <= 0) {
|
|
17994
17994
|
return dst || Buffer2.alloc(0);
|
|
17995
17995
|
}
|
|
17996
|
-
const
|
|
17996
|
+
const copy2 = !!dst;
|
|
17997
17997
|
const off = this._offset(srcStart);
|
|
17998
17998
|
const len = srcEnd - srcStart;
|
|
17999
17999
|
let bytes = len;
|
|
18000
|
-
let bufoff =
|
|
18000
|
+
let bufoff = copy2 && dstStart || 0;
|
|
18001
18001
|
let start = off[1];
|
|
18002
18002
|
if (srcStart === 0 && srcEnd === this.length) {
|
|
18003
|
-
if (!
|
|
18003
|
+
if (!copy2) {
|
|
18004
18004
|
return this._bufs.length === 1 ? this._bufs[0] : Buffer2.concat(this._bufs, this.length);
|
|
18005
18005
|
}
|
|
18006
18006
|
for (let i = 0;i < this._bufs.length; i++) {
|
|
@@ -18010,9 +18010,9 @@ var require_BufferList = __commonJS((exports, module) => {
|
|
|
18010
18010
|
return dst;
|
|
18011
18011
|
}
|
|
18012
18012
|
if (bytes <= this._bufs[off[0]].length - start) {
|
|
18013
|
-
return
|
|
18013
|
+
return copy2 ? this._bufs[off[0]].copy(dst, dstStart, start, start + bytes) : this._bufs[off[0]].slice(start, start + bytes);
|
|
18014
18014
|
}
|
|
18015
|
-
if (!
|
|
18015
|
+
if (!copy2) {
|
|
18016
18016
|
dst = Buffer2.allocUnsafe(len);
|
|
18017
18017
|
}
|
|
18018
18018
|
for (let i = off[0];i < this._bufs.length; i++) {
|
|
@@ -18234,7 +18234,7 @@ var require_bl = __commonJS((exports, module) => {
|
|
|
18234
18234
|
}
|
|
18235
18235
|
if (typeof callback === "function") {
|
|
18236
18236
|
this._callback = callback;
|
|
18237
|
-
const piper = function
|
|
18237
|
+
const piper = function piper2(err) {
|
|
18238
18238
|
if (this._callback) {
|
|
18239
18239
|
this._callback(err);
|
|
18240
18240
|
this._callback = null;
|
|
@@ -28633,9 +28633,9 @@ GFS4: `);
|
|
|
28633
28633
|
function readdir(path2, options, cb) {
|
|
28634
28634
|
if (typeof options === "function")
|
|
28635
28635
|
cb = options, options = null;
|
|
28636
|
-
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$
|
|
28636
|
+
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path3, options2, cb2, startTime) {
|
|
28637
28637
|
return fs$readdir(path3, fs$readdirCallback(path3, options2, cb2, startTime));
|
|
28638
|
-
} : function go$
|
|
28638
|
+
} : function go$readdir2(path3, options2, cb2, startTime) {
|
|
28639
28639
|
return fs$readdir(path3, options2, fs$readdirCallback(path3, options2, cb2, startTime));
|
|
28640
28640
|
};
|
|
28641
28641
|
return go$readdir(path2, options, cb);
|
|
@@ -29482,7 +29482,7 @@ var require_empty2 = __commonJS((exports, module) => {
|
|
|
29482
29482
|
var path2 = __require("path");
|
|
29483
29483
|
var mkdir = require_mkdirs();
|
|
29484
29484
|
var remove = require_remove();
|
|
29485
|
-
var emptyDir = u(async function
|
|
29485
|
+
var emptyDir = u(async function emptyDir2(dir) {
|
|
29486
29486
|
let items;
|
|
29487
29487
|
try {
|
|
29488
29488
|
items = await fs.readdir(dir);
|
|
@@ -33497,8 +33497,13 @@ async function setupCommand(params = {}) {
|
|
|
33497
33497
|
}
|
|
33498
33498
|
if (options.aiblueprintCommands) {
|
|
33499
33499
|
s.start("Setting up AIBlueprint commands");
|
|
33500
|
-
|
|
33501
|
-
|
|
33500
|
+
const commandsSourcePath = path8.join(sourceDir, "commands");
|
|
33501
|
+
if (await import_fs_extra6.default.pathExists(commandsSourcePath)) {
|
|
33502
|
+
await import_fs_extra6.default.copy(commandsSourcePath, path8.join(claudeDir, "commands"), { overwrite: true });
|
|
33503
|
+
s.stop("Commands installed");
|
|
33504
|
+
} else {
|
|
33505
|
+
s.stop("Commands not available in repository");
|
|
33506
|
+
}
|
|
33502
33507
|
}
|
|
33503
33508
|
if (options.codexSymlink && options.aiblueprintCommands) {
|
|
33504
33509
|
s.start("Setting up Codex symlink");
|
|
@@ -34952,7 +34957,16 @@ function getTokenFilePath() {
|
|
|
34952
34957
|
}
|
|
34953
34958
|
async function saveToken(githubToken) {
|
|
34954
34959
|
const tokenFile = getTokenFilePath();
|
|
34955
|
-
|
|
34960
|
+
const configDir = path11.dirname(tokenFile);
|
|
34961
|
+
try {
|
|
34962
|
+
await import_fs_extra9.default.ensureDir(configDir);
|
|
34963
|
+
} catch (error) {
|
|
34964
|
+
if (error.code === "EACCES") {
|
|
34965
|
+
throw new Error(`Permission denied creating config directory: ${configDir}
|
|
34966
|
+
` + `Please create the directory manually: mkdir -p ${configDir}`);
|
|
34967
|
+
}
|
|
34968
|
+
throw error;
|
|
34969
|
+
}
|
|
34956
34970
|
await import_fs_extra9.default.writeFile(tokenFile, githubToken, { mode: 384 });
|
|
34957
34971
|
}
|
|
34958
34972
|
async function getToken() {
|