@codacy/verity-cli 0.21.0 → 0.22.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/bin/verity.js +7 -6
- package/package.json +1 -1
package/bin/verity.js
CHANGED
|
@@ -14107,7 +14107,7 @@ async function runSeed(opts) {
|
|
|
14107
14107
|
var MAX_ASSISTANT_RESPONSE_CHARS_PLAN = 32768;
|
|
14108
14108
|
var MAX_ASSISTANT_RESPONSE_CHARS_DEFAULT = 8e3;
|
|
14109
14109
|
async function readStopHookStdin() {
|
|
14110
|
-
const empty = { assistantMessage: null, stopReason: null, transcriptPath: null };
|
|
14110
|
+
const empty = { assistantMessage: null, stopReason: null, transcriptPath: null, sessionId: null };
|
|
14111
14111
|
try {
|
|
14112
14112
|
if (process.stdin.isTTY) return empty;
|
|
14113
14113
|
const chunks = [];
|
|
@@ -14125,7 +14125,8 @@ async function readStopHookStdin() {
|
|
|
14125
14125
|
resolve({
|
|
14126
14126
|
assistantMessage: typeof data.last_assistant_message === "string" ? data.last_assistant_message : null,
|
|
14127
14127
|
stopReason: typeof data.stop_reason === "string" ? data.stop_reason : null,
|
|
14128
|
-
transcriptPath: typeof data.transcript_path === "string" ? data.transcript_path : null
|
|
14128
|
+
transcriptPath: typeof data.transcript_path === "string" ? data.transcript_path : null,
|
|
14129
|
+
sessionId: typeof data.session_id === "string" ? data.session_id : null
|
|
14129
14130
|
});
|
|
14130
14131
|
} catch {
|
|
14131
14132
|
resolve(empty);
|
|
@@ -14158,7 +14159,7 @@ async function runAnalyze(opts, globals) {
|
|
|
14158
14159
|
process.chdir(repoRoot());
|
|
14159
14160
|
} catch {
|
|
14160
14161
|
}
|
|
14161
|
-
const { assistantMessage: assistantResponse, stopReason, transcriptPath } = await readStopHookStdin();
|
|
14162
|
+
const { assistantMessage: assistantResponse, stopReason, transcriptPath, sessionId } = await readStopHookStdin();
|
|
14162
14163
|
const actionSummary = transcriptPath ? await extractActionSummary(transcriptPath) : null;
|
|
14163
14164
|
const { files: allChanged, hasRecentCommitFiles } = getChangedFiles();
|
|
14164
14165
|
const analyzable = filterAnalyzable(allChanged);
|
|
@@ -14191,7 +14192,7 @@ async function runAnalyze(opts, globals) {
|
|
|
14191
14192
|
if (!urlResult.ok) {
|
|
14192
14193
|
passAndExit("Not configured yet \u2014 run /verity-setup in Claude Code to enable quality gates.");
|
|
14193
14194
|
}
|
|
14194
|
-
const sessionIdForMemory = process.env.CLAUDE_SESSION_ID
|
|
14195
|
+
const sessionIdForMemory = sessionId || process.env.CLAUDE_SESSION_ID || "";
|
|
14195
14196
|
let contextFilePaths = [];
|
|
14196
14197
|
let predictedMode;
|
|
14197
14198
|
try {
|
|
@@ -14389,7 +14390,7 @@ async function runAnalyze(opts, globals) {
|
|
|
14389
14390
|
context: {
|
|
14390
14391
|
agent_model: process.env.CLAUDE_MODEL ?? "unknown",
|
|
14391
14392
|
agent_harness: "claude-code",
|
|
14392
|
-
session_id: process.env.CLAUDE_SESSION_ID
|
|
14393
|
+
session_id: sessionId || process.env.CLAUDE_SESSION_ID || "unknown",
|
|
14393
14394
|
iteration
|
|
14394
14395
|
},
|
|
14395
14396
|
...memoryManifest && { memory_manifest: memoryManifest },
|
|
@@ -15936,7 +15937,7 @@ function registerTelemetryCommands(program2) {
|
|
|
15936
15937
|
}
|
|
15937
15938
|
|
|
15938
15939
|
// src/cli.ts
|
|
15939
|
-
program.name("verity").description("CLI for Verity quality gate service").version("0.
|
|
15940
|
+
program.name("verity").description("CLI for Verity quality gate service").version("0.22.0").option("--token <token>", "Override authentication token").option("--service-url <url>", "Override service URL").option("--verbose", "Log HTTP requests/responses to stderr");
|
|
15940
15941
|
registerAuthCommands(program);
|
|
15941
15942
|
registerHooksCommands(program);
|
|
15942
15943
|
registerIntentCommands(program);
|