patchrelay 0.74.7 → 0.74.8
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/build-info.json +3 -3
- package/dist/codex-status.js +2 -1
- package/dist/index.js +12 -0
- package/dist/preflight.js +3 -0
- package/package.json +1 -1
package/dist/build-info.json
CHANGED
package/dist/codex-status.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { spawnSync } from "node:child_process";
|
|
2
2
|
const CODEX_STATUS_TIMEOUT_MS = 15_000;
|
|
3
3
|
function stripAnsiCodes(value) {
|
|
4
|
-
|
|
4
|
+
const escape = String.fromCharCode(27);
|
|
5
|
+
return value.replace(new RegExp(`${escape}\\[[0-9;]*m`, "g"), "");
|
|
5
6
|
}
|
|
6
7
|
function parseAccountLine(output) {
|
|
7
8
|
const lines = output.split(/\r?\n/);
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { dirname } from "node:path";
|
|
3
3
|
import { runCli } from "./cli/index.js";
|
|
4
|
+
function suppressNodeSqliteExperimentalWarning() {
|
|
5
|
+
const originalEmitWarning = process.emitWarning;
|
|
6
|
+
process.emitWarning = function emitWarningWithoutNodeSqliteNoise(warning, optionsOrType, codeOrCtor, ctor) {
|
|
7
|
+
const message = warning instanceof Error ? warning.message : warning;
|
|
8
|
+
const type = typeof optionsOrType === "string" ? optionsOrType : optionsOrType?.type;
|
|
9
|
+
if (type === "ExperimentalWarning" && message.includes("SQLite is an experimental feature")) {
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
return originalEmitWarning.call(process, warning, optionsOrType, codeOrCtor, ctor);
|
|
13
|
+
};
|
|
14
|
+
}
|
|
4
15
|
async function main() {
|
|
16
|
+
suppressNodeSqliteExperimentalWarning();
|
|
5
17
|
const cliExitCode = await runCli(process.argv.slice(2));
|
|
6
18
|
if (cliExitCode !== -1) {
|
|
7
19
|
process.exitCode = cliExitCode;
|
package/dist/preflight.js
CHANGED
|
@@ -117,6 +117,9 @@ async function checkLinearApi(graphqlUrl) {
|
|
|
117
117
|
if (response.ok) {
|
|
118
118
|
return pass("linear_api", `Linear GraphQL API is reachable at ${graphqlUrl}`);
|
|
119
119
|
}
|
|
120
|
+
if (response.status === 401 || response.status === 403) {
|
|
121
|
+
return pass("linear_api", `Linear GraphQL API is reachable at ${graphqlUrl} (authentication required)`);
|
|
122
|
+
}
|
|
120
123
|
return warn("linear_api", `Linear GraphQL API returned ${response.status} — may be unreachable or rate-limited`);
|
|
121
124
|
}
|
|
122
125
|
catch (error) {
|