@whittlelabs/sifter 0.28.0 → 0.28.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/bin.js +9 -9
- package/bin.js.map +2 -2
- package/package.json +1 -1
package/bin.js
CHANGED
|
@@ -11705,7 +11705,7 @@ var require_checks = __commonJS({
|
|
|
11705
11705
|
async run(probes, subject) {
|
|
11706
11706
|
const result = probes.readConfig();
|
|
11707
11707
|
if (!result.ok) {
|
|
11708
|
-
return fail("config-loadable",
|
|
11708
|
+
return fail("config-loadable", oneLine(result.error), `fix the config, or run \`${subject.brand.product.cliBinary} init\` to rewrite it from this pairing`);
|
|
11709
11709
|
}
|
|
11710
11710
|
const pools = result.value.pools.length;
|
|
11711
11711
|
const executors = configuredExecutors(result.value);
|
|
@@ -11722,7 +11722,7 @@ var require_checks = __commonJS({
|
|
|
11722
11722
|
}
|
|
11723
11723
|
const minted = await probes.mintAgentToken(stored.value);
|
|
11724
11724
|
if (!minted.ok) {
|
|
11725
|
-
return fail("pairing-live", `Keep did not issue a token: ${
|
|
11725
|
+
return fail("pairing-live", `Keep did not issue a token: ${oneLine(minted.error)}`, `check ${stored.value.keepApiUrl} is reachable, then run \`${subject.brand.product.cliBinary} init\` if the pairing was revoked`);
|
|
11726
11726
|
}
|
|
11727
11727
|
return pass("pairing-live", `Keep issued a token from ${stored.value.keepApiUrl}`);
|
|
11728
11728
|
}
|
|
@@ -11756,7 +11756,7 @@ var require_checks = __commonJS({
|
|
|
11756
11756
|
const keepUrl = subject.brand.keepRegistration.keepApiUrl.replace(/\/$/, "");
|
|
11757
11757
|
const result = await probes.reach(`${keepUrl}/.well-known/jwks.json`);
|
|
11758
11758
|
if (!result.ok) {
|
|
11759
|
-
return fail("keep-reachable", `${keepUrl} did not answer: ${
|
|
11759
|
+
return fail("keep-reachable", `${keepUrl} did not answer: ${oneLine(result.error)}`, "check your network, then confirm the URL with --keep-url");
|
|
11760
11760
|
}
|
|
11761
11761
|
if (result.value.status >= 500) {
|
|
11762
11762
|
return fail("keep-reachable", `${result.value.host} answered ${result.value.status}`, "Keep is not serving; wait for it to come back and try again");
|
|
@@ -11776,7 +11776,7 @@ var require_checks = __commonJS({
|
|
|
11776
11776
|
return withConfig("jobs-reachable", probes, async (config) => {
|
|
11777
11777
|
const result = await probes.reachJobs(config, pairing);
|
|
11778
11778
|
if (!result.ok) {
|
|
11779
|
-
return warn("jobs-reachable", `${config.auth.jobsApiUrl} did not answer: ${
|
|
11779
|
+
return warn("jobs-reachable", `${config.auth.jobsApiUrl} did not answer: ${oneLine(result.error)}`, "nothing to do if this is a deployment window; the run loop will keep trying");
|
|
11780
11780
|
}
|
|
11781
11781
|
return pass("jobs-reachable", `${config.auth.jobsApiUrl} answered`);
|
|
11782
11782
|
});
|
|
@@ -11864,7 +11864,7 @@ var require_checks = __commonJS({
|
|
|
11864
11864
|
if (subject.deep) {
|
|
11865
11865
|
const round = await probes.claudeRoundTrip();
|
|
11866
11866
|
if (!round.ok) {
|
|
11867
|
-
return fail("claude-auth", `the claude CLI refused a one-turn call: ${
|
|
11867
|
+
return fail("claude-auth", `the claude CLI refused a one-turn call: ${oneLine(round.error)}`, "run `claude` once and sign in, then re-run doctor --deep");
|
|
11868
11868
|
}
|
|
11869
11869
|
return pass("claude-auth", "one-turn call through the claude CLI succeeded");
|
|
11870
11870
|
}
|
|
@@ -11891,7 +11891,7 @@ var require_checks = __commonJS({
|
|
|
11891
11891
|
for (const [label, dir] of targets) {
|
|
11892
11892
|
const probe = await probes.mkdtemp(dir);
|
|
11893
11893
|
if (!probe.ok) {
|
|
11894
|
-
return fail("run-root-writable", `cannot create a directory in the ${label} ${dir}: ${
|
|
11894
|
+
return fail("run-root-writable", `cannot create a directory in the ${label} ${dir}: ${oneLine(probe.error)}`, `make ${dir} writable by the user running this (chown -R $(whoami) ${dir})`);
|
|
11895
11895
|
}
|
|
11896
11896
|
}
|
|
11897
11897
|
return pass("run-root-writable", targets.map(([, dir]) => dir).join(" and "));
|
|
@@ -11994,8 +11994,8 @@ var require_checks = __commonJS({
|
|
|
11994
11994
|
function osTmpDirOf(probes) {
|
|
11995
11995
|
return probes.osTmpDir();
|
|
11996
11996
|
}
|
|
11997
|
-
function
|
|
11998
|
-
return message.split("\n")
|
|
11997
|
+
function oneLine(message) {
|
|
11998
|
+
return message.split("\n").map((line) => line.trim()).filter((line) => line.length > 0).join(" ");
|
|
11999
11999
|
}
|
|
12000
12000
|
function normalizeUrl(url) {
|
|
12001
12001
|
return url.replace(/\/+$/, "").toLowerCase();
|
|
@@ -23480,7 +23480,7 @@ var import_path = require("path");
|
|
|
23480
23480
|
var import_promises = require("fs/promises");
|
|
23481
23481
|
var import_yaml = __toESM(require_dist4());
|
|
23482
23482
|
var import_shuttle = __toESM(require_dist5());
|
|
23483
|
-
var buildVersion = true ? "0.28.
|
|
23483
|
+
var buildVersion = true ? "0.28.1" : pkg.version;
|
|
23484
23484
|
var sifterBrand = {
|
|
23485
23485
|
product: {
|
|
23486
23486
|
id: "sifter",
|