seaworthycode 1.2.7 → 1.2.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/index.js +10 -10
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1330,7 +1330,7 @@ var copy = {
|
|
|
1330
1330
|
"debug.cache_write_failed": (key) => `Cache write failed for key ${key}, skipping.`,
|
|
1331
1331
|
// CLI
|
|
1332
1332
|
"cli.help.description": "Seaworthy \u2014 static analysis for vibe coders",
|
|
1333
|
-
"cli.help.usage": "Usage:
|
|
1333
|
+
"cli.help.usage": "Usage: seaworthycode [path] [options]",
|
|
1334
1334
|
"cli.help.options": "Options",
|
|
1335
1335
|
"cli.scanning": "Scanning...",
|
|
1336
1336
|
"cli.reportWritten": (path) => `Report written to ${path}`,
|
|
@@ -15914,7 +15914,7 @@ import { dirname as dirname5, resolve as resolve2, relative as relative7, isAbso
|
|
|
15914
15914
|
// src/copy/index.ts
|
|
15915
15915
|
var copy3 = {
|
|
15916
15916
|
"cli.help.description": "Seaworthy \u2014 static analysis for vibe coders",
|
|
15917
|
-
"cli.help.usage": "Usage:
|
|
15917
|
+
"cli.help.usage": "Usage: seaworthycode [path] [options]",
|
|
15918
15918
|
"cli.help.options": "Options",
|
|
15919
15919
|
"cli.help.learnMore": `Documentation: ${SITE_URL}/docs`,
|
|
15920
15920
|
"cli.setup.intro": "Welcome to Seaworthy! Let's get you set up.",
|
|
@@ -15943,14 +15943,14 @@ var copy3 = {
|
|
|
15943
15943
|
"cli.help.flag.sarifStdout": "Write SARIF report to stdout",
|
|
15944
15944
|
"cli.sarif.mutually_exclusive": "Flags --sarif and --sarif-stdout cannot be used together.",
|
|
15945
15945
|
"cli.sarif.stdout_conflict": "Flags --sarif-stdout and --json cannot be used together. Use --output to send JSON to a file.",
|
|
15946
|
-
"cli.error.llmRequired": "LLM API key required for Pro checks. Set it with
|
|
15947
|
-
"cli.warn.llmSkipped": "Pro checks skipped: no LLM API key configured. Set it with
|
|
15946
|
+
"cli.error.llmRequired": "LLM API key required for Pro checks. Set it with seaworthycode config or the SEAWORTHY_LLM_API_KEY environment variable.",
|
|
15947
|
+
"cli.warn.llmSkipped": "Pro checks skipped: no LLM API key configured. Set it with seaworthycode config or the SEAWORTHY_LLM_API_KEY environment variable to enable semantic analysis.",
|
|
15948
15948
|
"cli.warn.licenseInvalid": "Your license key is invalid or has been revoked. Running in free tier.\nTo re-enter your key, run: npx seaworthycode setup",
|
|
15949
|
-
"cli.error.config.missingKey": "Missing config key. Usage:
|
|
15950
|
-
"cli.error.config.missingValue": "Missing config value. Usage:
|
|
15949
|
+
"cli.error.config.missingKey": "Missing config key. Usage: seaworthycode config <set|get> <key>",
|
|
15950
|
+
"cli.error.config.missingValue": "Missing config value. Usage: seaworthycode config set <key> <value>",
|
|
15951
15951
|
"cli.error.config.unknownKey": "Unknown config key. Valid keys: licenseKey, llmProvider, llmApiKey, llmModel, llmApiUrl",
|
|
15952
15952
|
"cli.error.config.invalidProvider": "Invalid provider. Valid providers: anthropic, openai, kimi, moonshot, deepseek, gemini, ollama, openrouter",
|
|
15953
|
-
"cli.error.config.invalidAction": "Invalid config action. Usage:
|
|
15953
|
+
"cli.error.config.invalidAction": "Invalid config action. Usage: seaworthycode config <set|get|list>",
|
|
15954
15954
|
"cli.config.setSuccess": (key) => `${key} updated.`,
|
|
15955
15955
|
"cli.licenseNotice": (licensedTo) => `Licensed to ${licensedTo}`,
|
|
15956
15956
|
"cli.error.debugHint": (logPath) => `Re-run with --debug to write a diagnostic log: ${logPath}
|
|
@@ -16267,7 +16267,7 @@ var FsCredentialProvider = class {
|
|
|
16267
16267
|
import { readFile } from "fs/promises";
|
|
16268
16268
|
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
16269
16269
|
import { dirname as dirname6, join as join14 } from "path";
|
|
16270
|
-
var NPM_REGISTRY_URL = "https://registry.npmjs.org/
|
|
16270
|
+
var NPM_REGISTRY_URL = "https://registry.npmjs.org/seaworthycode";
|
|
16271
16271
|
var UPDATE_TIMEOUT_MS = 3e3;
|
|
16272
16272
|
function isLowerVersion(current, latest) {
|
|
16273
16273
|
const parse2 = (v) => v.split(".").map((n) => Number(n));
|
|
@@ -16300,7 +16300,7 @@ async function checkUpdate() {
|
|
|
16300
16300
|
}
|
|
16301
16301
|
const installed = await getInstalledVersion();
|
|
16302
16302
|
if (isLowerVersion(installed, latest)) {
|
|
16303
|
-
return `Update available: ${installed} \u2192 ${latest}. Run npm i -g
|
|
16303
|
+
return `Update available: ${installed} \u2192 ${latest}. Run npm i -g seaworthycode to update.`;
|
|
16304
16304
|
}
|
|
16305
16305
|
return void 0;
|
|
16306
16306
|
} catch {
|
|
@@ -16605,7 +16605,7 @@ if (existsSync6(repoRootEnv)) {
|
|
|
16605
16605
|
}
|
|
16606
16606
|
var require5 = createRequire4(import.meta.url);
|
|
16607
16607
|
var { version } = require5("../package.json");
|
|
16608
|
-
var cli = cac("
|
|
16608
|
+
var cli = cac("seaworthycode");
|
|
16609
16609
|
cli.version(version);
|
|
16610
16610
|
cli.command("[path]", "Scan a directory for issues").option("--json", "Output JSON to stdout").option("--output <path>", "Write HTML report to file").option("--sarif <path>", "Write SARIF report to file").option("--sarif-stdout", "Write SARIF report to stdout").option("--fail-on-findings", "Exit with code 5 when findings are found").option("--tier <tier>", "Select tier (free, pro)").option("--provider <provider>", "LLM provider (anthropic, openai, kimi, moonshot, deepseek, gemini, minimax, ollama, openrouter)").option("--max-file-size <bytes>", "Skip files larger than this (default: 1 MB)").option("--show-ids", "Show check IDs alongside names in terminal output").option("--debug", "Enable debug logging").option("--baseline [ref]", "Compare against a baseline file or save current findings as baseline (--baseline save)").option("--min-confidence <level>", "Hide findings below this confidence (high, medium, low)").option("--all", "List every finding; do not collapse low-severity findings").action(async (targetDir, options) => {
|
|
16611
16611
|
const maxFileSize = options.maxFileSize ? Number(options.maxFileSize) : void 0;
|