agentcert 0.2.4 → 0.2.5

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/cli.js CHANGED
@@ -20,10 +20,17 @@ import { serveAgentCertMonitor } from "./local-server.js";
20
20
  import { parseSchemaId, validateAgentCertSchema } from "./schema-validator.js";
21
21
  import { applyRunOverrides, loadRunProfile, profileFromArtifactFlags, renderRunSummary, runAgentCertProfile, } from "./runner.js";
22
22
  import { buildRobustnessLabSnapshot, readRobustnessLabConfig, renderRobustnessLabSummary, writeRobustnessLabSnapshot } from "./lab.js";
23
+ import { renderCommandHelp } from "./command-help.js";
23
24
  process.on("uncaughtException", reportFatalError);
24
25
  process.on("unhandledRejection", reportFatalError);
25
26
  const command = process.argv[2] ?? "help";
26
- if (command === "init") {
27
+ const commandHelp = process.argv.some((argument) => argument === "--help" || argument === "-h")
28
+ ? renderCommandHelp(command)
29
+ : undefined;
30
+ if (commandHelp) {
31
+ process.stdout.write(commandHelp);
32
+ }
33
+ else if (command === "init") {
27
34
  const outPath = resolve(readFlag("--out") ?? "agentcert.config.json");
28
35
  const tripwireConfigPath = resolve(readFlag("--tripwire-config") ?? "tripwire.yml");
29
36
  const githubWorkflowPath = resolve(readFlag("--github-action-out") ?? ".github/workflows/agentcert-tripwire.yml");
@@ -0,0 +1,19 @@
1
+ export function renderCommandHelp(command) {
2
+ if (command !== "push")
3
+ return undefined;
4
+ return `Usage:
5
+ agentcert push --evidence .agentcert/latest/agentcert-evidence.json
6
+ agentcert push --evidence <path> --server <url> --project <project-id> [--api-key <key>]
7
+
8
+ Options:
9
+ --evidence <path> Evidence bundle (default: .agentcert/latest/agentcert-evidence.json)
10
+ --connection <name> Saved hosted connection
11
+ --server <url> Hosted AgentCert base URL
12
+ --project <id> Hosted project ID
13
+ --api-key <key> Project API key (prefer AGENTCERT_API_KEY in CI)
14
+ --external-id <id> Idempotent hosted run ID
15
+ --artifact-root <dir> Allowed root for companion artifacts (default: current directory)
16
+ --no-artifacts Upload only the evidence bundle
17
+ --help, -h Show this help
18
+ `;
19
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentcert",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "Assurance release gates, runtime evidence, and regression CI for AI agents.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",