zidane 7.0.7 → 7.0.9
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/{approvals-BF15XIhM.js → approvals-FN9ybefu.js} +230 -79
- package/dist/approvals-FN9ybefu.js.map +1 -0
- package/dist/chat.d.ts +2 -2
- package/dist/chat.js +2 -2
- package/dist/daemon-cli.js +1 -1
- package/dist/{index-Dju2gu3w.d.ts → index-B8vD-pf1.d.ts} +41 -3
- package/dist/index-B8vD-pf1.d.ts.map +1 -0
- package/dist/{ipc-3Pb7G8JY.js → ipc-fJTazEZr.js} +2 -2
- package/dist/{ipc-3Pb7G8JY.js.map → ipc-fJTazEZr.js.map} +1 -1
- package/dist/ipc.d.ts +1 -1
- package/dist/ipc.js +3 -3
- package/dist/{server-CcqxlLf3.js → server-C4lBnTPZ.js} +2 -2
- package/dist/{server-CcqxlLf3.js.map → server-C4lBnTPZ.js.map} +1 -1
- package/dist/tui.js +2 -2
- package/package.json +1 -1
- package/dist/approvals-BF15XIhM.js.map +0 -1
- package/dist/index-Dju2gu3w.d.ts.map +0 -1
|
@@ -3110,6 +3110,49 @@ function detectPackageManager(opts = {}) {
|
|
|
3110
3110
|
};
|
|
3111
3111
|
}
|
|
3112
3112
|
/**
|
|
3113
|
+
* Whether `<packageName>@<version>` can actually be DOWNLOADED right now, not
|
|
3114
|
+
* merely resolved. Right after a publish the registry serves the new
|
|
3115
|
+
* manifest minutes before the tarball reaches the CDN; a package manager
|
|
3116
|
+
* that hits that window on an `optionalDependencies` platform binary
|
|
3117
|
+
* silently skips it and leaves a bin with nothing behind it. `upgrade` asks
|
|
3118
|
+
* this before spawning the PM so it can wait instead of breaking the install.
|
|
3119
|
+
*
|
|
3120
|
+
* - `'ok'` tarball responds 2xx
|
|
3121
|
+
* - `'missing'` manifest or tarball 404 (published, not propagated)
|
|
3122
|
+
* - `'unknown'` network / registry error; the caller decides
|
|
3123
|
+
*/
|
|
3124
|
+
async function checkTarballAvailable(opts) {
|
|
3125
|
+
const fetcher = opts.fetcher ?? globalThis.fetch;
|
|
3126
|
+
const registry = trimSlash(opts.registry ?? "https://registry.npmjs.org");
|
|
3127
|
+
const ac = new AbortController();
|
|
3128
|
+
const timer = setTimeout(() => ac.abort(), opts.timeoutMs ?? 8e3);
|
|
3129
|
+
try {
|
|
3130
|
+
const manifest = await fetcher(`${registry}/${encodeURIComponent(opts.packageName)}/${encodeURIComponent(opts.version)}`, {
|
|
3131
|
+
headers: {
|
|
3132
|
+
"accept": "application/json",
|
|
3133
|
+
"user-agent": "zidane-update-check/1"
|
|
3134
|
+
},
|
|
3135
|
+
signal: ac.signal,
|
|
3136
|
+
redirect: "follow"
|
|
3137
|
+
});
|
|
3138
|
+
if (manifest.status === 404) return "missing";
|
|
3139
|
+
if (!manifest.ok) return "unknown";
|
|
3140
|
+
const tarball = (await manifest.json()).dist?.tarball;
|
|
3141
|
+
if (!tarball) return "unknown";
|
|
3142
|
+
const head = await fetcher(tarball, {
|
|
3143
|
+
method: "HEAD",
|
|
3144
|
+
signal: ac.signal,
|
|
3145
|
+
redirect: "follow"
|
|
3146
|
+
});
|
|
3147
|
+
if (head.status === 404) return "missing";
|
|
3148
|
+
return head.ok ? "ok" : "unknown";
|
|
3149
|
+
} catch {
|
|
3150
|
+
return "unknown";
|
|
3151
|
+
} finally {
|
|
3152
|
+
clearTimeout(timer);
|
|
3153
|
+
}
|
|
3154
|
+
}
|
|
3155
|
+
/**
|
|
3113
3156
|
* Re-install the package globally via the host's package manager. Resolves
|
|
3114
3157
|
* with the spawned command's exit code, or rejects only when the caller's
|
|
3115
3158
|
* `signal` aborts. PM failures surface as a non-zero `exitCode` — the
|
|
@@ -3117,7 +3160,7 @@ function detectPackageManager(opts = {}) {
|
|
|
3117
3160
|
*/
|
|
3118
3161
|
async function performSelfUpdate(options) {
|
|
3119
3162
|
const detect = options.detect ?? detectPackageManager;
|
|
3120
|
-
const command = options.packageManager && options.packageManager !== "auto" ? overrideManager(options.packageManager, options.packageName, options.channel ?? "latest") : detect({
|
|
3163
|
+
const command = options.packageManager && options.packageManager !== "auto" ? overrideManager$1(options.packageManager, options.packageName, options.channel ?? "latest") : detect({
|
|
3121
3164
|
packageName: options.packageName,
|
|
3122
3165
|
channel: options.channel ?? "latest"
|
|
3123
3166
|
});
|
|
@@ -3161,7 +3204,7 @@ async function performSelfUpdate(options) {
|
|
|
3161
3204
|
}
|
|
3162
3205
|
});
|
|
3163
3206
|
}
|
|
3164
|
-
function overrideManager(id, packageName, channel) {
|
|
3207
|
+
function overrideManager$1(id, packageName, channel) {
|
|
3165
3208
|
const target = `${packageName}@${channel}`;
|
|
3166
3209
|
switch (id) {
|
|
3167
3210
|
case "pnpm": return {
|
|
@@ -3611,8 +3654,16 @@ Environment:
|
|
|
3611
3654
|
* - `0` — update succeeded, `--check` reported no update, or `--check`
|
|
3612
3655
|
* reported an update (informational only).
|
|
3613
3656
|
* - `1` — update failed (PM exit non-zero, in-place download failed,
|
|
3614
|
-
* registry returned non-2xx).
|
|
3657
|
+
* registry returned non-2xx, release not downloadable yet).
|
|
3615
3658
|
* - `2` — argv parse error (unknown flag).
|
|
3659
|
+
*
|
|
3660
|
+
* Output is a short ledger, one line per package, ASCII-only apart from the
|
|
3661
|
+
* arrow:
|
|
3662
|
+
* zidane-tui 7.0.7 → 7.0.8
|
|
3663
|
+
* $ volta install zidane-tui@latest
|
|
3664
|
+
* …
|
|
3665
|
+
* zidane-tui 7.0.8 ok
|
|
3666
|
+
* Diagnostics go to stderr and say what to do next.
|
|
3616
3667
|
*/
|
|
3617
3668
|
async function runUpdateCommand(options) {
|
|
3618
3669
|
const out = options.stdout ?? process.stdout;
|
|
@@ -3628,8 +3679,10 @@ async function runUpdateCommand(options) {
|
|
|
3628
3679
|
return { exitCode: 0 };
|
|
3629
3680
|
}
|
|
3630
3681
|
const flags = parsed;
|
|
3631
|
-
const channel =
|
|
3632
|
-
const registry =
|
|
3682
|
+
const channel = flags.channel ?? options.defaultChannel ?? "latest";
|
|
3683
|
+
const registry = flags.registry ?? options.registry;
|
|
3684
|
+
const tarballAvailable = options.checkTarballAvailable ?? checkTarballAvailable;
|
|
3685
|
+
const install = options.performSelfUpdate ?? performSelfUpdate;
|
|
3633
3686
|
const status = await checkForUpdate({
|
|
3634
3687
|
packageName: options.packageName,
|
|
3635
3688
|
currentVersion: options.currentVersion,
|
|
@@ -3639,41 +3692,64 @@ async function runUpdateCommand(options) {
|
|
|
3639
3692
|
force: true,
|
|
3640
3693
|
timeoutMs: 8e3
|
|
3641
3694
|
});
|
|
3642
|
-
const
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3695
|
+
const self = {
|
|
3696
|
+
name: options.packageName,
|
|
3697
|
+
current: options.currentVersion,
|
|
3698
|
+
status,
|
|
3699
|
+
outdated: status.latest !== null && compareSemver(status.latest, options.currentVersion) > 0
|
|
3700
|
+
};
|
|
3701
|
+
const companions = flags.tuiOnly ? [] : await resolveCompanions(options, channel, registry);
|
|
3702
|
+
const entries = [self, ...companions];
|
|
3703
|
+
const label = (name) => name.padEnd(Math.max(...entries.map((e) => e.name.length)));
|
|
3704
|
+
if (flags.check) {
|
|
3705
|
+
for (const e of entries) out.write(`${label(e.name)} ${statusText(e)}\n`);
|
|
3649
3706
|
return { exitCode: 0 };
|
|
3650
3707
|
}
|
|
3651
3708
|
if (status.source === "error") {
|
|
3652
|
-
err.write(
|
|
3653
|
-
if (!
|
|
3654
|
-
err.write("
|
|
3709
|
+
err.write(`${self.name}: registry check failed: ${status.error ?? "unknown error"}\n`);
|
|
3710
|
+
if (!flags.force) {
|
|
3711
|
+
err.write("Use --force to install anyway.\n");
|
|
3655
3712
|
return { exitCode: 1 };
|
|
3656
3713
|
}
|
|
3657
3714
|
}
|
|
3658
|
-
const
|
|
3659
|
-
|
|
3660
|
-
const
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3715
|
+
for (const c of companions.filter((c) => c.status.source === "error" && !flags.force)) err.write(`${c.name}: registry check failed: ${c.status.error ?? "unknown error"}\n`);
|
|
3716
|
+
const selfPending = flags.force || self.outdated;
|
|
3717
|
+
const pendingCompanions = companions.filter((c) => flags.force || c.outdated);
|
|
3718
|
+
for (const e of entries.filter((e) => !e.outdated && e.status.source !== "error")) out.write(`${label(e.name)} ${statusText(e)}\n`);
|
|
3719
|
+
if (!selfPending && pendingCompanions.length === 0) return { exitCode: 0 };
|
|
3720
|
+
let exitCode = 0;
|
|
3721
|
+
if (selfPending) exitCode = await upgradeSelf();
|
|
3722
|
+
for (const c of pendingCompanions) {
|
|
3723
|
+
const code = await upgradeCompanion(c);
|
|
3724
|
+
if (exitCode === 0) exitCode = code;
|
|
3725
|
+
}
|
|
3726
|
+
return { exitCode };
|
|
3727
|
+
/**
|
|
3728
|
+
* Refuse to spawn the PM while the release is not fetchable yet: npm treats
|
|
3729
|
+
* a 404 on an `optionalDependencies` platform binary as "skip" and leaves
|
|
3730
|
+
* an empty install behind the bin. `--force` overrides (mirrors, offline
|
|
3731
|
+
* registries).
|
|
3732
|
+
*/
|
|
3733
|
+
async function ready(packageName, version) {
|
|
3734
|
+
if (flags.force || flags.dryRun) return true;
|
|
3735
|
+
if (await tarballAvailable({
|
|
3736
|
+
packageName,
|
|
3737
|
+
version,
|
|
3738
|
+
registry
|
|
3739
|
+
}) !== "missing") return true;
|
|
3740
|
+
err.write(`${packageName} ${version} is published but not downloadable yet. Try again in a few minutes.\n`);
|
|
3741
|
+
return false;
|
|
3665
3742
|
}
|
|
3666
|
-
const tuiExit = tuiUpToDate ? 0 : await upgradeSelf();
|
|
3667
|
-
const companionExit = await upgradeCompanions(pendingCompanions, parsed, out, err, options);
|
|
3668
|
-
return { exitCode: tuiExit !== 0 ? tuiExit : companionExit };
|
|
3669
3743
|
async function upgradeSelf() {
|
|
3744
|
+
const target = status.latest ?? channel;
|
|
3745
|
+
out.write(`${label(self.name)} ${self.current} → ${target}\n`);
|
|
3670
3746
|
if (flags.inPlace) {
|
|
3671
3747
|
const platformPkg = resolvePlatformPackage({ prefix: options.platformPackagePrefix ?? `${options.packageName}-` });
|
|
3672
3748
|
if (!platformPkg) {
|
|
3673
|
-
err.write(
|
|
3749
|
+
err.write(`${self.name}: no prebuilt binary for ${process.platform}/${process.arch}. Use your package manager instead.\n`);
|
|
3674
3750
|
return 1;
|
|
3675
3751
|
}
|
|
3676
|
-
|
|
3752
|
+
if (status.latest && !await ready(platformPkg, status.latest)) return 1;
|
|
3677
3753
|
const result = await performInPlaceSelfUpdate({
|
|
3678
3754
|
packageName: platformPkg,
|
|
3679
3755
|
channel,
|
|
@@ -3681,38 +3757,147 @@ async function runUpdateCommand(options) {
|
|
|
3681
3757
|
dryRun: flags.dryRun
|
|
3682
3758
|
});
|
|
3683
3759
|
if (result.status === "success") {
|
|
3684
|
-
|
|
3685
|
-
out.write(`${verb} v${result.installedVersion} at ${result.binaryPath}.\n`);
|
|
3760
|
+
out.write(`${label(self.name)} ${result.installedVersion} ${flags.dryRun ? "would install" : "ok"}\n`);
|
|
3686
3761
|
return 0;
|
|
3687
3762
|
}
|
|
3688
|
-
err.write(
|
|
3689
|
-
if (result.status === "refused") err.write("
|
|
3763
|
+
err.write(`${self.name}: in-place update failed: ${result.reason ?? "unknown error"}\n`);
|
|
3764
|
+
if (result.status === "refused") err.write("Drop --in-place to go through the package manager.\n");
|
|
3690
3765
|
return 1;
|
|
3691
3766
|
}
|
|
3692
|
-
const
|
|
3767
|
+
const platformPkg = resolvePlatformPackage({ prefix: options.platformPackagePrefix ?? `${options.packageName}-` });
|
|
3768
|
+
if (status.latest && !await ready(platformPkg ?? options.packageName, status.latest)) return 1;
|
|
3769
|
+
const command = flags.packageManager ? overrideManager(flags.packageManager, options.packageName, channel) : detectPackageManager({
|
|
3693
3770
|
packageName: options.packageName,
|
|
3694
3771
|
channel
|
|
3695
3772
|
});
|
|
3696
|
-
|
|
3697
|
-
out.write(`Running: ${detected.argv.join(" ")}\n`);
|
|
3773
|
+
out.write(`$ ${command.argv.join(" ")}\n`);
|
|
3698
3774
|
if (flags.dryRun) return 0;
|
|
3699
|
-
const result = await (
|
|
3775
|
+
const result = await install({
|
|
3700
3776
|
packageName: options.packageName,
|
|
3701
3777
|
channel,
|
|
3702
3778
|
packageManager: flags.packageManager ?? "auto"
|
|
3703
3779
|
});
|
|
3704
3780
|
if (result.spawnError) {
|
|
3705
|
-
err.write(
|
|
3706
|
-
|
|
3781
|
+
err.write(`${self.name}: could not run ${result.command.argv[0]}: ${result.spawnError}\n`);
|
|
3782
|
+
return 1;
|
|
3783
|
+
}
|
|
3784
|
+
if (result.exitCode !== 0) {
|
|
3785
|
+
err.write(`${self.name}: ${result.command.argv[0]} exited with ${result.exitCode ?? "unknown"}\n`);
|
|
3786
|
+
return result.exitCode ?? 1;
|
|
3787
|
+
}
|
|
3788
|
+
return verify(self.name, status.latest, options.verifyInstalled?.(options.packageName), result.command);
|
|
3789
|
+
}
|
|
3790
|
+
async function upgradeCompanion(c) {
|
|
3791
|
+
const target = c.status.latest ?? channel;
|
|
3792
|
+
out.write(`${label(c.name)} ${c.current} → ${target}\n`);
|
|
3793
|
+
if (c.status.latest && !await ready(c.name, c.status.latest)) return 1;
|
|
3794
|
+
const command = flags.packageManager ? overrideManager(flags.packageManager, c.name, channel) : c.command;
|
|
3795
|
+
out.write(`$ ${command.argv.join(" ")}\n`);
|
|
3796
|
+
if (flags.dryRun) return 0;
|
|
3797
|
+
const result = await install({
|
|
3798
|
+
packageName: c.name,
|
|
3799
|
+
channel,
|
|
3800
|
+
packageManager: flags.packageManager ?? c.command.id
|
|
3801
|
+
});
|
|
3802
|
+
if (result.spawnError) {
|
|
3803
|
+
err.write(`${c.name}: could not run ${result.command.argv[0]}: ${result.spawnError}\n`);
|
|
3707
3804
|
return 1;
|
|
3708
3805
|
}
|
|
3709
|
-
|
|
3806
|
+
if (result.exitCode !== 0) {
|
|
3807
|
+
err.write(`${c.name}: ${result.command.argv[0]} exited with ${result.exitCode ?? "unknown"}\n`);
|
|
3808
|
+
return 1;
|
|
3809
|
+
}
|
|
3810
|
+
const find = options.findCompanion ?? findInstalledCompanion;
|
|
3811
|
+
return verify(c.name, c.status.latest, find(c.spec)?.version, result.command);
|
|
3812
|
+
}
|
|
3813
|
+
/**
|
|
3814
|
+
* The PM exiting 0 is not proof: a skipped optional platform binary or a
|
|
3815
|
+
* Volta no-op ("already installed") both exit 0 and leave the old version
|
|
3816
|
+
* behind. Compare what is actually on disk with what we asked for.
|
|
3817
|
+
*/
|
|
3818
|
+
function verify(name, expected, actual, command) {
|
|
3819
|
+
if (!expected || actual === void 0) {
|
|
3820
|
+
out.write(`${label(name)} ${expected ?? channel} ok\n`);
|
|
3821
|
+
return 0;
|
|
3822
|
+
}
|
|
3823
|
+
if (actual !== null && compareSemver(actual, expected) >= 0) {
|
|
3824
|
+
out.write(`${label(name)} ${actual} ok\n`);
|
|
3825
|
+
return 0;
|
|
3826
|
+
}
|
|
3827
|
+
err.write(`${name}: install finished but ${actual ?? "nothing"} is on disk, expected ${expected}.\n`);
|
|
3828
|
+
err.write(`Reinstall: ${reinstallHint(command, name, channel)}\n`);
|
|
3829
|
+
return 1;
|
|
3830
|
+
}
|
|
3831
|
+
}
|
|
3832
|
+
function statusText(e) {
|
|
3833
|
+
if (e.status.source === "error") return `${e.current} (check failed: ${e.status.error ?? "unknown error"})`;
|
|
3834
|
+
if (!e.status.latest) return `${e.current} (latest unknown)`;
|
|
3835
|
+
return e.outdated ? `${e.current} → ${e.status.latest} available` : `${e.current} up to date`;
|
|
3836
|
+
}
|
|
3837
|
+
/**
|
|
3838
|
+
* Volta treats `install` of an already-recorded version as a no-op, so the
|
|
3839
|
+
* only way to replace a broken install is to remove it first.
|
|
3840
|
+
*/
|
|
3841
|
+
function reinstallHint(command, packageName, channel) {
|
|
3842
|
+
const cmd = command.argv.join(" ");
|
|
3843
|
+
return command.id === "volta" ? `volta uninstall ${packageName} && volta install ${packageName}@${channel}` : cmd;
|
|
3844
|
+
}
|
|
3845
|
+
function overrideManager(id, packageName, channel) {
|
|
3846
|
+
const target = `${packageName}@${channel}`;
|
|
3847
|
+
switch (id) {
|
|
3848
|
+
case "pnpm": return {
|
|
3849
|
+
id,
|
|
3850
|
+
argv: [
|
|
3851
|
+
"pnpm",
|
|
3852
|
+
"add",
|
|
3853
|
+
"--global",
|
|
3854
|
+
target
|
|
3855
|
+
]
|
|
3856
|
+
};
|
|
3857
|
+
case "yarn": return {
|
|
3858
|
+
id,
|
|
3859
|
+
argv: [
|
|
3860
|
+
"yarn",
|
|
3861
|
+
"global",
|
|
3862
|
+
"add",
|
|
3863
|
+
target
|
|
3864
|
+
]
|
|
3865
|
+
};
|
|
3866
|
+
case "bun": return {
|
|
3867
|
+
id,
|
|
3868
|
+
argv: [
|
|
3869
|
+
"bun",
|
|
3870
|
+
"add",
|
|
3871
|
+
"--global",
|
|
3872
|
+
target
|
|
3873
|
+
]
|
|
3874
|
+
};
|
|
3875
|
+
case "volta": return {
|
|
3876
|
+
id,
|
|
3877
|
+
argv: [
|
|
3878
|
+
"volta",
|
|
3879
|
+
"install",
|
|
3880
|
+
target
|
|
3881
|
+
]
|
|
3882
|
+
};
|
|
3883
|
+
case "npm": return {
|
|
3884
|
+
id,
|
|
3885
|
+
argv: [
|
|
3886
|
+
"npm",
|
|
3887
|
+
"install",
|
|
3888
|
+
"--global",
|
|
3889
|
+
target
|
|
3890
|
+
]
|
|
3891
|
+
};
|
|
3710
3892
|
}
|
|
3711
3893
|
}
|
|
3712
3894
|
async function resolveCompanions(options, channel, registry) {
|
|
3713
3895
|
const find = options.findCompanion ?? findInstalledCompanion;
|
|
3714
|
-
const found = (options.companions ?? []).map((spec) =>
|
|
3715
|
-
|
|
3896
|
+
const found = (options.companions ?? []).map((spec) => ({
|
|
3897
|
+
spec,
|
|
3898
|
+
installed: find(spec)
|
|
3899
|
+
})).filter((c) => c.installed !== null);
|
|
3900
|
+
return await Promise.all(found.map(async ({ spec, installed }) => {
|
|
3716
3901
|
const status = await checkForUpdate({
|
|
3717
3902
|
packageName: installed.packageName,
|
|
3718
3903
|
currentVersion: installed.version,
|
|
@@ -3723,7 +3908,10 @@ async function resolveCompanions(options, channel, registry) {
|
|
|
3723
3908
|
timeoutMs: 8e3
|
|
3724
3909
|
});
|
|
3725
3910
|
return {
|
|
3911
|
+
spec,
|
|
3726
3912
|
installed,
|
|
3913
|
+
name: installed.packageName,
|
|
3914
|
+
current: installed.version,
|
|
3727
3915
|
status,
|
|
3728
3916
|
outdated: status.latest !== null && compareSemver(status.latest, installed.version) > 0,
|
|
3729
3917
|
command: detectPackageManager({
|
|
@@ -3734,43 +3922,6 @@ async function resolveCompanions(options, channel, registry) {
|
|
|
3734
3922
|
};
|
|
3735
3923
|
}));
|
|
3736
3924
|
}
|
|
3737
|
-
function companionStatusLine(c, channel) {
|
|
3738
|
-
const name = c.installed.packageName;
|
|
3739
|
-
if (c.status.source === "error") return `${name}: could not check \`${channel}\` (${c.status.error ?? "unknown error"}). Current: v${c.installed.version}.`;
|
|
3740
|
-
if (!c.status.latest) return `${name}: could not determine latest version on \`${channel}\`. Current: v${c.installed.version}.`;
|
|
3741
|
-
return c.outdated ? `${name}: v${c.status.latest} is available on \`${channel}\` (current: v${c.installed.version}).` : `${name}: already on v${c.installed.version}.`;
|
|
3742
|
-
}
|
|
3743
|
-
async function upgradeCompanions(pending, parsed, out, err, options) {
|
|
3744
|
-
let exitCode = 0;
|
|
3745
|
-
for (const c of pending) {
|
|
3746
|
-
const name = c.installed.packageName;
|
|
3747
|
-
if (c.status.source === "error" && !parsed.force) {
|
|
3748
|
-
err.write(`${name}: registry check failed (${c.status.error ?? "unknown error"}) — skipped. Pass --force to install anyway.\n`);
|
|
3749
|
-
exitCode = 1;
|
|
3750
|
-
continue;
|
|
3751
|
-
}
|
|
3752
|
-
if (c.status.latest) out.write(`${name}: v${c.installed.version} → v${c.status.latest}\n`);
|
|
3753
|
-
const pm = parsed.packageManager ?? c.command.id;
|
|
3754
|
-
if (c.command.note) out.write(`${c.command.note}\n`);
|
|
3755
|
-
out.write(`Running: ${c.command.argv.join(" ")}\n`);
|
|
3756
|
-
if (parsed.dryRun) continue;
|
|
3757
|
-
const result = await (options.performSelfUpdate ?? performSelfUpdate)({
|
|
3758
|
-
packageName: name,
|
|
3759
|
-
channel: parsed.channel ?? options.defaultChannel ?? "latest",
|
|
3760
|
-
packageManager: pm
|
|
3761
|
-
});
|
|
3762
|
-
if (result.spawnError) {
|
|
3763
|
-
err.write(`${name}: failed to launch \`${result.command.argv[0]}\`: ${result.spawnError}\n`);
|
|
3764
|
-
exitCode = 1;
|
|
3765
|
-
continue;
|
|
3766
|
-
}
|
|
3767
|
-
if (result.exitCode !== 0) {
|
|
3768
|
-
err.write(`${name}: install exited with ${result.exitCode ?? "unknown"}.\n`);
|
|
3769
|
-
exitCode = 1;
|
|
3770
|
-
}
|
|
3771
|
-
}
|
|
3772
|
-
return exitCode;
|
|
3773
|
-
}
|
|
3774
3925
|
function parseArgs(argv) {
|
|
3775
3926
|
let check = false;
|
|
3776
3927
|
let inPlace = false;
|
|
@@ -15987,6 +16138,6 @@ function createApprovalHub(options) {
|
|
|
15987
16138
|
};
|
|
15988
16139
|
}
|
|
15989
16140
|
//#endregion
|
|
15990
|
-
export { supportsOAuth as $, buildUpdateHint as $n,
|
|
16141
|
+
export { supportsOAuth as $, buildUpdateHint as $n, buildPlanSystem as $r, runCompaction as $t, useSafeModeQueue as A, createDiscoverySlot as An, applyTodosSnapshot as Ar, makeRequestInteraction as At, USAGE_CACHE_TTL_MS as B, hasClaudeCodeSetup as Bn, todoProgressLabel as Br, readFileSafe as Bt, resolveSessionExportTarget as C, GRUVBOX_LIGHT as Cn, singleAgentRegistry as Cr, InteractionsProvider as Ct, scopeCwd as D, CATPPUCCIN_MOCHA as Dn, TODOWRITE_TOOL as Dr, createInteractionTools as Dt, resolveSessionCwd as E, CATPPUCCIN_MACCHIATO as En, TODOS_METADATA_KEY as Er, createAutomaticInteractionResponse as Et, matchesSafelistEntry as F, useConfig as Fn, pickActiveRunId as Fr, STALE_RUN_MARKER_MS as Ft, usageChecksOptedOut as G, buildMcpServers as Gn, IDENTITY_PREFIX as Gr, modelChainMetadata as Gt, fetchAllProviderUsage as H, mcpsWritePath as Hn, ACTIONS_WITH_CARE_DOCTRINE as Hr, serializePreview as Ht, projectsFilePath as I, resolveConfig as In, pruneTodosByRun as Ir, createChatHost as It, fetchOAuthRedirect as J, discoverProjectMcps as Jn, PLAN_MODE_DOCTRINE as Jr, buildPluginContributions as Jt, usageSourceFor as K, dedupMcpServersByName as Kn, INTERACTION_GUIDANCE as Kr, sessionModelFallbacks as Kt, readProjects as L, resolveStoragePaths as Ln, sanitizeTodoItems as Lr, toTodosSnapshot as Lt, addToSafelist as M, useDiscovery as Mn, getArchivedTodosForRun as Mr, serializeInteractionResponse as Mt, getSafelist as N, useDiscoveryOptional as Nn, getTodosForRun as Nr, useInteractionsActions as Nt, SafeModeProvider as O, parseEditorCommand as On, TODO_STATUS_GLYPHS as Or, isInteractionTool as Ot, isOnSafelist as P, ConfigProvider as Pn, isTodoTool as Pr, useInteractionsQueue as Pt, runOAuthLogin as Q, bootTick as Qn, buildBuildSystem as Qr, EditOutcomeLedger as Qt, suggestSafelistEntries as R, useCompletion as Rn, selectActiveTodos as Rr, createInteractionHub as Rt, renderSession as S, usageByModel as Si, GRUVBOX_DARK as Sn, resolveAgentId as Sr, HOST_INTERACTION_ID_PREFIX as St, folderlessCwd as T, CATPPUCCIN_LATTE as Tn, TODOREAD_TOOL as Tr, buildResumedToolResultsTurn as Tt, fetchProviderUsage as U, removeMcpServer as Un, COMMUNICATION_DOCTRINE as Ur, createBuiltinCommands as Ut, clearProviderUsageCache as V, importFromClaudeCode as Vn, useActiveTodos as Vr, resolveCwdPath as Vt, providerUsageSupported as W, upsertMcpServer as Wn, DOING_TASKS_DOCTRINE as Wr, createMainSession as Wt, redirectUriFromAuthUrl as X, tryOpenBrowser as Xn, SUBAGENT_GUIDANCE as Xr, parsePluginScanPathEnv as Xt, normalizeRedirectPaste as Y, parseMcpsFile as Yn, PLAN_MODE_DOCTRINE_NO_PROMPTS as Yr, discoverProjectPlugins as Yt, oauthUsesManualCodePaste as Z, bootProfileEnabled as Zn, TOKEN_DISCIPLINE_DOCTRINE as Zr, attachMcpWarnLog as Zt, buildSpawnEndEvent as _, sumRunCosts as _i, BUILTIN_THEMES as _n, DEFAULT_AGENT_ID as _r, useMcpAuthState as _t, renderActiveTodoAnchor as a, createStateStore as ai, shortChord as an, compareSemver as ar, subscribeMcpToolsCache as at, defaultSkillScanPaths as b, toolResultText as bi, resolveTheme as bn, PLAN_AGENT as br, ASK_USER_TOOL as bt, useSelectStyle as c, getSessionMeta as ci, DEFAULT_SETTINGS as cn, parseSemver as cr, useMcpToolToggleSet as ct, useTheme as d, loadState as di, SETTINGS_INPUTS as dn, resolvePlatformPackage as dr, parentServerName as dt, envSection as ei, EMPTY_HINTS as en, useUpdateCheck as er, clearMcpToolsCache as et, discoverSystemMd as f, marginTopFor as fi, SETTINGS_TOGGLES as fn, chatAutoCompactBehavior as fr, createFileMcpCredentialStore as ft, useStreamBuffer as g, stripSpawnTokensLine as gi, useSettings as gn, BUILTIN_AGENTS as gr, useMcpAuthDispatch as gt, userSystemMdPath as h, serverToolResultSummary as hi, enforceSettingsInvariants as hn, BUILD_AGENT as hr, McpAuthProvider as ht, createActiveTodoAnchorHooks as i, compactSummaryEvent as ii, buildHints as in, checkTarballAvailable as ir, saveMcpToolsCache as it, IMPLICITLY_SAFE_TOOLS as j, DiscoveryProvider as jn, createTodoTools as jr, pendingInteractionsFromTurns as jt, useSafeModeActions as k, quoteForShell as kn, TODO_WRITE_COUNTS_METADATA_KEY as kr, isModelInteraction as kt, useSurfaces as l, lastContextSizeFromTurns as li, SETTINGS_CATEGORIES as ln, performInPlaceSelfUpdate as lr, buildVisibleMcpRows as lt, userScopeOverridesLoad as m, saveState as mi, clampFps as mn, renderAgentsMdBlock as mr, patchMcpCredential as mt, createMemoryApprovalsStore as n, createChatTurnsReadTool as ni, hintsLength as nn, findInstalledCompanion as nr, mcpToolsCachePath as nt, ThemeProvider as o, deriveSessionTitle as oi, listProjectFiles as on, detectLibc as or, buildToolToggle as ot, renderSystemMdSeed as p, noticeTurnContent as pi, SettingsProvider as pn, discoverAgentsMd as pr, mcpCredentialsPath as pt, formatPathForCwd as q, defaultMcpsConfigPaths as qn, INTERACTION_GUIDANCE_NO_PROMPTS as qr, runEndNotice as qt, computeTurnAnchors as r, DEFAULT_SESSION_TITLE as ri, truncateTrailing as rn, checkForUpdate as rr, refreshMcpToolsCatalog as rt, useColors as s, eventsFromTurns as si, useEnabledToggleSet as sn, detectPackageManager as sr, useMcpToolToggleMap as st, createApprovalHub as t, chatReferenceTokensForPrompt as ti, clipHintsToWidth as tn, runUpdateCommand as tr, loadMcpToolsCache as tt, useSyntaxStyles as u, listSessionMeta as ui, SETTINGS_CHOICES as un, performSelfUpdate as ur, indexOfServerRow as ut, buildSpawnStartEvent as v, titleFromTurns as vi, DEFAULT_THEME as vn, DEFAULT_BUDGET_EXCLUDE_TOOLS as vr, getMcpAuthStatus as vt, writeSessionExport as w, CATPPUCCIN_FRAPPE as wn, DEFAULT_MAX_TODO_ITEMS as wr, PRESENT_PLAN_TOOL as wt, discoverProjectSkills as x, updateToolEventOutcomes as xi, VAPORWAVE_THEME as xn, accentColor as xr, AUTOMATIC_INTERACTION_INSTRUCTION as xt, buildSkillsConfig as y, toolCallPreview as yi, resolveChipColor as yn, DEFAULT_PERSIST_EXCLUDE_TOOLS as yr, reduceMcpAuth as yt, writeProjects as z, countClaudeSessionFiles as zn, setTodosForRun as zr, extractEditPayloadForGate as zt };
|
|
15991
16142
|
|
|
15992
|
-
//# sourceMappingURL=approvals-
|
|
16143
|
+
//# sourceMappingURL=approvals-FN9ybefu.js.map
|