@agenticcli/shipguard 0.10.0 → 0.11.0
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/README.md +10 -4
- package/dist/checksum-manifest.json +5 -5
- package/dist/{chunk-E4Z2MZ5J.js → chunk-7NXELBFO.js} +1 -1
- package/dist/{chunk-6XMYOF3N.js → chunk-FQY6IANN.js} +2 -2
- package/dist/{chunk-KGIK7XNK.js → chunk-RVDTQ2FR.js} +3 -3
- package/dist/cli-facts.json +3 -3
- package/dist/cli.js +37 -20
- package/dist/{config-generator-S5KFHKGQ.js → config-generator-L7VDUKDY.js} +2 -2
- package/dist/{dist-YSE6YNXH.js → dist-5SSCBJRC.js} +1 -1
- package/dist/{pro-scanner-TPNDJ6L6.js → pro-scanner-43JOEAJM.js} +2 -2
- package/docs/llms.txt +16 -4
- package/package.json +19 -5
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# @agenticcli/shipguard
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**The security scanner your coding agent runs before every commit. On your machine. Flat price, no seats.**
|
|
4
|
+
|
|
5
|
+
Same code, same answer: same diff, same verdict, a real exit code your agent can read.
|
|
4
6
|
|
|
5
7
|
Checks for leaked secrets, auth gaps, payment webhook risks, destructive migrations, and deployment misconfigurations — before your code ships.
|
|
6
8
|
|
|
@@ -20,6 +22,8 @@ shipguard scan
|
|
|
20
22
|
> **PATH gotcha:** `npm install` (without `-g`) does NOT put `shipguard` on your PATH.
|
|
21
23
|
> Use `npx @agenticcli/shipguard scan` or install with `npm install -g @agenticcli/shipguard`.
|
|
22
24
|
|
|
25
|
+
ShipGuard is the deterministic check that runs inside your agent loop (it also works as a release gate in CI), not a code reviewer and not a general security scanner. It runs on your machine, uses plain pattern rules (no AI model), and your code never leaves your computer. Source: [github.com/agenticcli/shipguard](https://github.com/agenticcli/shipguard).
|
|
26
|
+
|
|
23
27
|
## Usage
|
|
24
28
|
|
|
25
29
|
```bash
|
|
@@ -76,10 +80,12 @@ Every `--json` result (schemaVersion 6) has a `coverage` object: files discovere
|
|
|
76
80
|
and skipped, with the reason for each skip (real binary, too large, symlink, unknown binary,
|
|
77
81
|
invalid text, unreadable, special file), plus text read as UTF-16 or with stray NUL bytes
|
|
78
82
|
turned into spaces. Real binaries (images, fonts, archives) are counted and are not a
|
|
79
|
-
problem. A scan that read **nothing** (`NO_FILES_SCANNED`, for example an empty folder or
|
|
80
|
-
`--changed`
|
|
83
|
+
problem. A scan that read **nothing** (`NO_FILES_SCANNED`, for example an empty folder or a
|
|
84
|
+
`--changed` scan where every changed file was ignored), an unknown binary blob (`UNSCANNED_UNKNOWN_BINARY`), and a
|
|
81
85
|
truncated scan are `degraded` and so `DO_NOT_SHIP`. To clear a blob you trust, add its path to
|
|
82
|
-
`ignore.paths`.
|
|
86
|
+
`ignore.paths`. `--changed` when nothing changed at all is different: there is nothing to
|
|
87
|
+
check, so it is not degraded and `coverage.changed.nothingToCheck` is `true` (`filesScanned` is
|
|
88
|
+
`0`). Do not use that as proof a project is safe: run a full `shipguard scan` for that. Some formats are counted but their contents are not scanned: SQLite files
|
|
83
89
|
outside the ASCII reading, compressed archives, and string tables inside ELF, PE, class and WASM files.
|
|
84
90
|
|
|
85
91
|
## Telemetry
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"secrets": "
|
|
3
|
-
"auth": "
|
|
4
|
-
"database": "
|
|
5
|
-
"deployment": "
|
|
6
|
-
"payments": "
|
|
2
|
+
"secrets": "cab8ba95cd53c7a453270d50e009defa7065babd4c06939fcd641fd117eab5b3",
|
|
3
|
+
"auth": "cab8ba95cd53c7a453270d50e009defa7065babd4c06939fcd641fd117eab5b3",
|
|
4
|
+
"database": "cab8ba95cd53c7a453270d50e009defa7065babd4c06939fcd641fd117eab5b3",
|
|
5
|
+
"deployment": "cab8ba95cd53c7a453270d50e009defa7065babd4c06939fcd641fd117eab5b3",
|
|
6
|
+
"payments": "cab8ba95cd53c7a453270d50e009defa7065babd4c06939fcd641fd117eab5b3"
|
|
7
7
|
}
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
re2jsV1Executor,
|
|
12
12
|
selectExpected,
|
|
13
13
|
verifyExactSet
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-RVDTQ2FR.js";
|
|
15
15
|
|
|
16
16
|
// src/core/pro-scanner.ts
|
|
17
17
|
import * as path2 from "path";
|
|
@@ -3497,7 +3497,7 @@ async function fetchProRules(frameworks, categories, apiUrl, scanId, floorPath)
|
|
|
3497
3497
|
const rawText = await res.text();
|
|
3498
3498
|
let responseJson;
|
|
3499
3499
|
try {
|
|
3500
|
-
const { parseStrictNoDup: parseStrict } = await import("./dist-
|
|
3500
|
+
const { parseStrictNoDup: parseStrict } = await import("./dist-5SSCBJRC.js");
|
|
3501
3501
|
responseJson = parseStrict(rawText);
|
|
3502
3502
|
} catch (parseErr) {
|
|
3503
3503
|
const msg = parseErr instanceof Error ? parseErr.message : String(parseErr);
|
|
@@ -446,7 +446,7 @@ function resolveExitCode(outcome, strict) {
|
|
|
446
446
|
}
|
|
447
447
|
|
|
448
448
|
// ../matcher-contract/dist/engine-meta.js
|
|
449
|
-
var RE2JS_VERSION = "2.8.
|
|
449
|
+
var RE2JS_VERSION = "2.8.7";
|
|
450
450
|
var SUPPORTED_NODE_VERSIONS = ["20", "22"];
|
|
451
451
|
function makeNativeEngineMeta(nodeVersion) {
|
|
452
452
|
return {
|
|
@@ -1935,8 +1935,8 @@ function re2jsTestPattern(pattern, input) {
|
|
|
1935
1935
|
const compiled = RE2JS.compile(pattern);
|
|
1936
1936
|
return compiled.matcher(input).find();
|
|
1937
1937
|
}
|
|
1938
|
-
var RE2JS_V1_ADAPTER_IMPL_HASH = "
|
|
1939
|
-
var RE2JS_V1_RUNTIME_ID = "
|
|
1938
|
+
var RE2JS_V1_ADAPTER_IMPL_HASH = "02e0f86920548addd8135a4391b29d34870263ec9ba61941a9fb964be8189006";
|
|
1939
|
+
var RE2JS_V1_RUNTIME_ID = "a780cc8e55ccc838940b9d8de644463fd41faca4ed51a7d68839e100a6800cd2";
|
|
1940
1940
|
|
|
1941
1941
|
// ../matcher-contract/dist/executable-hash.js
|
|
1942
1942
|
import { createHash as createHash3 } from "crypto";
|
package/dist/cli-facts.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
2
|
+
"version": "0.11.0",
|
|
3
3
|
"packageName": "@agenticcli/shipguard",
|
|
4
4
|
"license": "Elastic-2.0",
|
|
5
5
|
"licenseDisplay": "ELv2",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"scanIdReused",
|
|
113
113
|
"coverage"
|
|
114
114
|
],
|
|
115
|
-
"schemaVersion": "0.
|
|
115
|
+
"schemaVersion": "0.11",
|
|
116
116
|
"degradeCodes": [
|
|
117
117
|
"FILE_TOO_LARGE",
|
|
118
118
|
"OUTPUT_TRUNCATED",
|
|
@@ -145,5 +145,5 @@
|
|
|
145
145
|
],
|
|
146
146
|
"installSnippet": "npx @agenticcli/shipguard scan --changed --strict --json",
|
|
147
147
|
"re2Engine": true,
|
|
148
|
-
"generatedAt": "2026-11-
|
|
148
|
+
"generatedAt": "2026-11-09T17:12:08.477Z"
|
|
149
149
|
}
|
package/dist/cli.js
CHANGED
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
secretsCheck,
|
|
24
24
|
validateBundleCompile,
|
|
25
25
|
writeSecureFileSync
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-FQY6IANN.js";
|
|
27
27
|
import {
|
|
28
28
|
DEFAULT_HISTORY_PATH,
|
|
29
29
|
DEFAULT_MAX_FILES,
|
|
@@ -51,13 +51,13 @@ import {
|
|
|
51
51
|
isShipguardArtifactPath,
|
|
52
52
|
readCandidate,
|
|
53
53
|
readFiles
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-7NXELBFO.js";
|
|
55
55
|
import {
|
|
56
56
|
logger
|
|
57
57
|
} from "./chunk-NC5RELTG.js";
|
|
58
58
|
import {
|
|
59
59
|
decodeUtf8Strict
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-RVDTQ2FR.js";
|
|
61
61
|
|
|
62
62
|
// src/cli.ts
|
|
63
63
|
import { Command as Command11, CommanderError } from "commander";
|
|
@@ -2080,6 +2080,7 @@ async function scan(options, proRules, onProgress) {
|
|
|
2080
2080
|
};
|
|
2081
2081
|
let state;
|
|
2082
2082
|
let mode = "full";
|
|
2083
|
+
let nothingToCheck = false;
|
|
2083
2084
|
let changedInfo;
|
|
2084
2085
|
if (options.changedOnly && isGitRepo(cwd)) {
|
|
2085
2086
|
mode = "changed";
|
|
@@ -2089,7 +2090,9 @@ async function scan(options, proRules, onProgress) {
|
|
|
2089
2090
|
changedInfo = { listed, outsideScope: changed.outsideScope };
|
|
2090
2091
|
const defaultCounts = /* @__PURE__ */ new Map();
|
|
2091
2092
|
const candidates = [];
|
|
2093
|
+
let ownFilesOnly = true;
|
|
2092
2094
|
for (const rp of changed.paths) {
|
|
2095
|
+
if (!isShipguardArtifactPath(rp)) ownFilesOnly = false;
|
|
2093
2096
|
const rule = classifyIgnored(rp, ignoreRules);
|
|
2094
2097
|
if (!rule && isShipguardArtifactPath(rp)) {
|
|
2095
2098
|
state.selfArtifacts++;
|
|
@@ -2110,12 +2113,12 @@ async function scan(options, proRules, onProgress) {
|
|
|
2110
2113
|
state.unreadableFiles.push(display);
|
|
2111
2114
|
}
|
|
2112
2115
|
state.discovered = candidates.length + changed.unaddressable.length + (changed.unreadable ?? []).length;
|
|
2113
|
-
if (
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
if (candidates.length === 0 && !options.json) {
|
|
2116
|
+
if (ownFilesOnly && changed.outsideScope === 0 && changed.unaddressable.length === 0 && (changed.unreadable ?? []).length === 0) {
|
|
2117
|
+
nothingToCheck = true;
|
|
2118
|
+
changedInfo.nothingToCheck = true;
|
|
2119
|
+
} else if (candidates.length === 0 && !options.json) {
|
|
2117
2120
|
logger.warn(
|
|
2118
|
-
"`--changed` scans only files that differ from git;
|
|
2121
|
+
"`--changed` scans only files that differ from git; every changed file was ignored or could not be read. Run `shipguard scan` for the whole tree."
|
|
2119
2122
|
);
|
|
2120
2123
|
}
|
|
2121
2124
|
const canonicalCwd = await realpath(cwd).catch(() => cwd);
|
|
@@ -2294,7 +2297,7 @@ async function scan(options, proRules, onProgress) {
|
|
|
2294
2297
|
detail: `${state.skippedUnknownBinary} file(s) contain NUL or control data that no text reading explains and show no sign of a known binary format, so they were not scanned: ${named}${extra}. If they are safe, add their paths to ignore.paths in shipguard.policy.yml.`
|
|
2295
2298
|
});
|
|
2296
2299
|
}
|
|
2297
|
-
if (state.acceptedPaths === 0) {
|
|
2300
|
+
if (state.acceptedPaths === 0 && !nothingToCheck) {
|
|
2298
2301
|
const parts = [];
|
|
2299
2302
|
const add = (n, label) => {
|
|
2300
2303
|
if (n > 0) parts.push(`${n} ${label}`);
|
|
@@ -2548,6 +2551,9 @@ var SEVERITY_COLORS = {
|
|
|
2548
2551
|
low: chalk.blue,
|
|
2549
2552
|
info: chalk.gray
|
|
2550
2553
|
};
|
|
2554
|
+
function renderNothingToCheck() {
|
|
2555
|
+
return chalk.green(" \u2713 Nothing to check: no files changed, so nothing was scanned.");
|
|
2556
|
+
}
|
|
2551
2557
|
function renderFindingsSummary(findings) {
|
|
2552
2558
|
if (findings.length === 0) {
|
|
2553
2559
|
return chalk.green(" \u2713 No findings detected \u2014 clean scan.");
|
|
@@ -4111,7 +4117,7 @@ function postBounded(endpoint, body) {
|
|
|
4111
4117
|
});
|
|
4112
4118
|
});
|
|
4113
4119
|
}
|
|
4114
|
-
var CLI_VERSION = true ? "0.
|
|
4120
|
+
var CLI_VERSION = true ? "0.11.0" : process.env.npm_package_version ?? "0.0.0-dev";
|
|
4115
4121
|
var LIFECYCLE_KEYS = ["schema", "event", "eventId", "installId", "cliVersion", "provenance", "ci"];
|
|
4116
4122
|
function validateLifecyclePayload(payload) {
|
|
4117
4123
|
if (typeof payload !== "object" || payload === null || Array.isArray(payload)) return false;
|
|
@@ -4232,7 +4238,7 @@ function exitWhenDrained() {
|
|
|
4232
4238
|
|
|
4233
4239
|
// src/commands/scan.ts
|
|
4234
4240
|
var LEARN_MORE = `Docs ${goLink("docs")} \xB7 Site ${goLink("site")} \xB7 Pricing ${goLink("pricing")} \xB7 Issues https://github.com/agenticcli/shipguard/issues`;
|
|
4235
|
-
var CLI_VERSION2 = true ? "0.
|
|
4241
|
+
var CLI_VERSION2 = true ? "0.11.0" : process.env.npm_package_version ?? "0.0.0-dev";
|
|
4236
4242
|
function resolveExitCode(opts) {
|
|
4237
4243
|
if (opts.strict && (opts.blockingCount > 0 || opts.degraded === true || opts.recommendation === "DO_NOT_SHIP")) {
|
|
4238
4244
|
return EXIT_CODES.BLOCKED;
|
|
@@ -4443,8 +4449,8 @@ async function runScan(ctx) {
|
|
|
4443
4449
|
logger.info("Detecting stack...");
|
|
4444
4450
|
}
|
|
4445
4451
|
try {
|
|
4446
|
-
const { fetchProRules } = await import("./pro-scanner-
|
|
4447
|
-
const { hasConfig, generateConfig } = await import("./config-generator-
|
|
4452
|
+
const { fetchProRules } = await import("./pro-scanner-43JOEAJM.js");
|
|
4453
|
+
const { hasConfig, generateConfig } = await import("./config-generator-L7VDUKDY.js");
|
|
4448
4454
|
const frameworks = detectedFrameworks;
|
|
4449
4455
|
if (!hasConfig(cwd)) {
|
|
4450
4456
|
const configPath = generateConfig(cwd, frameworks);
|
|
@@ -4639,7 +4645,11 @@ async function runScan(ctx) {
|
|
|
4639
4645
|
const banner = welcomeBanner();
|
|
4640
4646
|
if (banner) console.log(banner);
|
|
4641
4647
|
}
|
|
4642
|
-
|
|
4648
|
+
if (result.coverage?.changed?.nothingToCheck) {
|
|
4649
|
+
console.log(renderNothingToCheck());
|
|
4650
|
+
} else {
|
|
4651
|
+
console.log(renderFindingsSummary(result.findings));
|
|
4652
|
+
}
|
|
4643
4653
|
if (result.findings.length > 0) {
|
|
4644
4654
|
console.log(findingsByCategoryTable(result.findings));
|
|
4645
4655
|
console.log("");
|
|
@@ -4674,7 +4684,9 @@ async function runScan(ctx) {
|
|
|
4674
4684
|
`If these files are safe, add their paths to \`ignore.paths\` in shipguard.policy.yml. Verdict is degraded \u2014 see \`degradedReasons\` in --json output.`
|
|
4675
4685
|
);
|
|
4676
4686
|
}
|
|
4677
|
-
if (coverage
|
|
4687
|
+
if (coverage?.changed?.nothingToCheck) {
|
|
4688
|
+
logger.info("Nothing to check: git reports no changed files. Run `shipguard scan` to check the whole tree.");
|
|
4689
|
+
} else if (coverage && coverage.scanned === 0) {
|
|
4678
4690
|
logger.warn(
|
|
4679
4691
|
`Nothing was scanned (0 of ${coverage.discovered} candidate file(s) could be read). A scan that read nothing is DO_NOT_SHIP, never safe.`
|
|
4680
4692
|
);
|
|
@@ -4821,6 +4833,7 @@ function openUrl(raw2, apiUrl, onError = () => {
|
|
|
4821
4833
|
|
|
4822
4834
|
// src/commands/login.ts
|
|
4823
4835
|
var DEFAULT_API_URL = "https://agenticcli.dev";
|
|
4836
|
+
var SIGN_IN_TIMED_OUT = "Sign-in timed out. Run `shipguard login` again.";
|
|
4824
4837
|
function loginCommand() {
|
|
4825
4838
|
return new Command3("login").description("Authenticate with ShipGuard for pro features").option("--api-url <url>", "API server URL", DEFAULT_API_URL).action(async (opts) => {
|
|
4826
4839
|
const apiUrl = opts.apiUrl;
|
|
@@ -4872,10 +4885,14 @@ Visit: ${safeUrl.href}`);
|
|
|
4872
4885
|
await new Promise((r) => setTimeout(r, 5e3));
|
|
4873
4886
|
continue;
|
|
4874
4887
|
}
|
|
4888
|
+
if (error === "expired_token") {
|
|
4889
|
+
logger.error(SIGN_IN_TIMED_OUT);
|
|
4890
|
+
process.exit(2);
|
|
4891
|
+
}
|
|
4875
4892
|
logger.error(`Auth failed: ${error}`);
|
|
4876
4893
|
process.exit(2);
|
|
4877
4894
|
}
|
|
4878
|
-
logger.error(
|
|
4895
|
+
logger.error(SIGN_IN_TIMED_OUT);
|
|
4879
4896
|
process.exit(2);
|
|
4880
4897
|
});
|
|
4881
4898
|
}
|
|
@@ -4927,7 +4944,7 @@ function statusCommand() {
|
|
|
4927
4944
|
// src/commands/history.ts
|
|
4928
4945
|
import { Command as Command6 } from "commander";
|
|
4929
4946
|
import { resolve as resolve5 } from "path";
|
|
4930
|
-
var CLI_VERSION3 = true ? "0.
|
|
4947
|
+
var CLI_VERSION3 = true ? "0.11.0" : process.env.npm_package_version ?? "0.0.0-dev";
|
|
4931
4948
|
function historyCommand() {
|
|
4932
4949
|
return new Command6("history").description("Show recent local scan history for this repo (read-only; --json for machine output)").argument("[path]", "Path to project root (defaults to current directory)").option("--json", "Output as JSON").option("--limit <n>", "Number of recent scans to show", (v) => Number.parseInt(v, 10) || 10, 10).action(async (scanPath, opts) => {
|
|
4933
4950
|
const cwd = scanPath ? resolve5(scanPath) : process.cwd();
|
|
@@ -5249,7 +5266,7 @@ Exit codes:
|
|
|
5249
5266
|
|
|
5250
5267
|
// src/commands/schema.ts
|
|
5251
5268
|
import { Command as Command8 } from "commander";
|
|
5252
|
-
var CLI_VERSION4 = true ? "0.
|
|
5269
|
+
var CLI_VERSION4 = true ? "0.11.0" : process.env.npm_package_version ?? "0.0.0-dev";
|
|
5253
5270
|
var CURRENT_SCHEMA_VERSION2 = "6";
|
|
5254
5271
|
function buildSchemaContract(limits) {
|
|
5255
5272
|
const src = (value, fallback) => value === fallback ? "default" : "policy";
|
|
@@ -5297,7 +5314,7 @@ function buildSchemaContract(limits) {
|
|
|
5297
5314
|
{ code: "COMPILE_FAILURE", meaning: "A Pro rule bundle failed to compile; the whole bundle was refused rather than partly run." },
|
|
5298
5315
|
{ code: "SYMLINK_SKIPPED", meaning: "One or more symlinks were not followed (privacy) and were not scanned." },
|
|
5299
5316
|
{ code: "UNSCANNED_UNKNOWN_BINARY", meaning: "One or more files hold NUL or control data that no text reading explains and show no sign of a known binary format; they were not scanned. Add their paths to ignore.paths if they are safe." },
|
|
5300
|
-
{ code: "NO_FILES_SCANNED", meaning: "Zero files were scanned (empty tree, everything ignored or binary, or --changed
|
|
5317
|
+
{ code: "NO_FILES_SCANNED", meaning: "Zero files were scanned (empty tree, everything ignored or binary, or --changed where every changed file was ignored or unreadable). A scan that read nothing is never SAFE_TO_SHIP. Exception: --changed when git reports no changed files is not degraded; it sets coverage.changed.nothingToCheck: true." }
|
|
5301
5318
|
],
|
|
5302
5319
|
limits: {
|
|
5303
5320
|
maxFiles: {
|
|
@@ -5630,7 +5647,7 @@ if (rawArgs[0] === "?") {
|
|
|
5630
5647
|
process.argv = [process.argv[0], process.argv[1], "help"];
|
|
5631
5648
|
}
|
|
5632
5649
|
program.name("shipguard").description("CLI-first release gate for AI-built apps").version(
|
|
5633
|
-
true ? "0.
|
|
5650
|
+
true ? "0.11.0" : process.env.npm_package_version ?? "0.0.0-dev"
|
|
5634
5651
|
).helpCommand(false).addHelpText("after", `
|
|
5635
5652
|
Learn more:
|
|
5636
5653
|
Docs ${goLink("docs")}
|
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
DEFAULT_MAX_FILES,
|
|
3
3
|
DEFAULT_MAX_FILE_SIZE_BYTES,
|
|
4
4
|
DEFAULT_MAX_TOTAL_BYTES
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7NXELBFO.js";
|
|
6
6
|
import "./chunk-NC5RELTG.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-RVDTQ2FR.js";
|
|
8
8
|
|
|
9
9
|
// src/core/config-generator.ts
|
|
10
10
|
import { writeFileSync, existsSync } from "fs";
|
|
@@ -7,9 +7,9 @@ import {
|
|
|
7
7
|
runProRules,
|
|
8
8
|
runProRulesWithDispatch,
|
|
9
9
|
validateBundleCompile
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FQY6IANN.js";
|
|
11
11
|
import "./chunk-NC5RELTG.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-RVDTQ2FR.js";
|
|
13
13
|
export {
|
|
14
14
|
NoRulesAppliedError,
|
|
15
15
|
ProFetchError,
|
package/docs/llms.txt
CHANGED
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
# ShipGuard CLI
|
|
2
|
-
>
|
|
2
|
+
> The deterministic, local security and config check that runs inside your agent loop: same diff, same verdict, a real exit code your agent can read. One command checks a project for leaked secrets, unprotected routes, destructive database migrations, unverified payment webhooks and risky deploy settings. It runs locally, gives the same answer every time, and your code never leaves your machine.
|
|
3
3
|
|
|
4
|
-
ShipGuard
|
|
4
|
+
ShipGuard is not a code reviewer and not a general security scanner. It uses plain pattern rules (no AI model). It informs: the verdict is in the JSON `recommendation` field (SAFE_TO_SHIP, REVIEW_BEFORE_SHIP, DO_NOT_SHIP). The exit code is 0 whenever the scan completes; add --strict to make it exit 1 on a blocking result.
|
|
5
5
|
|
|
6
6
|
## Install
|
|
7
|
+
npx @agenticcli/shipguard scan
|
|
7
8
|
npm install -g @agenticcli/shipguard
|
|
8
9
|
|
|
9
10
|
## Commands
|
|
10
11
|
shipguard init — initialize policy file
|
|
11
12
|
shipguard scan — scan project for risks
|
|
12
|
-
shipguard scan --changed — scan only changed files
|
|
13
|
-
shipguard scan --strict — exit code 1 on
|
|
13
|
+
shipguard scan --changed — scan only changed files (not for CI: a clean checkout has nothing to compare)
|
|
14
|
+
shipguard scan --strict — exit code 1 on a blocking result or an unfinished scan (opt-in hard gate, free on every plan)
|
|
14
15
|
shipguard scan --report — generate Markdown report
|
|
15
16
|
shipguard scan --json — machine-readable output (schemaVersion 6; the `coverage` object says how many files were discovered, scanned and skipped, and why)
|
|
16
17
|
shipguard scan --check-regressions — exit code 1 if a previously-passing rule now fails
|
|
18
|
+
shipguard hook — install the gate as a git hook (--target claude or --target ci for Claude Code or GitHub Actions)
|
|
17
19
|
shipguard history — show recent local scan history for this repo (read-only)
|
|
20
|
+
shipguard schema --json — the machine-readable contract: verdicts, exit codes, limits
|
|
18
21
|
|
|
19
22
|
## Risk Categories
|
|
20
23
|
- Secrets: hardcoded API keys, committed .env files, frontend exposure
|
|
@@ -26,6 +29,15 @@ shipguard history — show recent local scan history for this repo (read-only)
|
|
|
26
29
|
## Target Users
|
|
27
30
|
Solo SaaS builders, indie hackers, small dev teams using Claude Code, Codex, Cursor, or Lovable
|
|
28
31
|
|
|
32
|
+
## License
|
|
33
|
+
Elastic License 2.0 (source-available, free to use commercially, may not be offered as a hosted service).
|
|
34
|
+
|
|
35
|
+
## Docs
|
|
36
|
+
- Getting started: https://github.com/agenticcli/shipguard/blob/main/docs/getting-started.md
|
|
37
|
+
- FAQ: https://github.com/agenticcli/shipguard/blob/main/docs/faq.md
|
|
38
|
+
- Product page: https://agenticcli.dev/shipguard
|
|
39
|
+
- Docs: https://agenticcli.dev/shipguard/docs
|
|
40
|
+
|
|
29
41
|
## GitHub
|
|
30
42
|
https://github.com/agenticcli/shipguard
|
|
31
43
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agenticcli/shipguard",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.11.0",
|
|
4
|
+
"description": "The security scanner your coding agent runs before every commit. Runs locally, same code same answer: checks for leaked secrets, unprotected routes, risky migrations, unverified payment webhooks and unsafe deploy settings.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/cli.js",
|
|
7
7
|
"bin": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"fast-glob": "^3.3.0",
|
|
22
22
|
"jose": "^6.2.13",
|
|
23
23
|
"minimatch": "^11.0.1",
|
|
24
|
-
"re2js": "2.8.
|
|
24
|
+
"re2js": "2.8.7",
|
|
25
25
|
"yaml": "^2.9.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"shipguard",
|
|
40
40
|
"agenticcli",
|
|
41
41
|
"release-gate",
|
|
42
|
+
"security-scanner",
|
|
42
43
|
"ai-code",
|
|
43
44
|
"cli",
|
|
44
45
|
"ai-agents",
|
|
@@ -47,10 +48,23 @@
|
|
|
47
48
|
"codex",
|
|
48
49
|
"agentic",
|
|
49
50
|
"pre-deploy-check",
|
|
50
|
-
"llm-generated-code"
|
|
51
|
+
"llm-generated-code",
|
|
52
|
+
"vibe-coding",
|
|
53
|
+
"ai-generated-code",
|
|
54
|
+
"pre-commit",
|
|
55
|
+
"github-actions",
|
|
56
|
+
"ci",
|
|
57
|
+
"pre-deploy",
|
|
58
|
+
"stripe-webhook",
|
|
59
|
+
"env-files",
|
|
60
|
+
"nextjs",
|
|
61
|
+
"release-checklist"
|
|
51
62
|
],
|
|
52
63
|
"license": "Elastic-2.0",
|
|
53
|
-
"author":
|
|
64
|
+
"author": {
|
|
65
|
+
"name": "AgenticCLI",
|
|
66
|
+
"url": "https://agenticcli.dev"
|
|
67
|
+
},
|
|
54
68
|
"repository": {
|
|
55
69
|
"type": "git",
|
|
56
70
|
"url": "git+https://github.com/agenticcli/shipguard.git"
|