@@ -183829,12 +183829,13 @@ var SqliteStore = class _SqliteStore {
183829183829 truncated
183830183830 };
183831183831 } catch {
183832- const fallback = this.getCacheContentSubset(cacheKey2, { maxLines: options.maxResults ?? 100 });
183832+ const FALLBACK_MAX_LINES = 500;
183833+ const fallback = this.getCacheContentSubset(cacheKey2, { maxLines: FALLBACK_MAX_LINES });
183833183834 if (!fallback) return null;
183834183835 return {
183835183836 content: fallback.content,
183836- totalResults: fallback.totalLines ,
183837- returnedResults: fallback.returnedLines ,
183837+ totalResults: 0 ,
183838+ returnedResults: 0 ,
183838183839 truncated: fallback.truncated
183839183840 };
183840183841 }
@@ -193434,7 +193435,7 @@ function registerAnnotationGetTool(server) {
193434193435 "annotation_get",
193435193436 "Retrieve a single annotation by its numeric ID.",
193436193437 {
193437- id: external_exports.number().describe("The annotation ID.")
193438+ id: external_exports.number().int().positive(). describe("The annotation ID (positive integer primary key) .")
193438193439 },
193439193440 async ({ id }) => {
193440193441 const store = sessionDataManager.getStore();
@@ -193475,7 +193476,7 @@ function registerAnnotationUpdateTool(server) {
193475193476 "annotation_update",
193476193477 "Update the content, label, or metadata of an existing annotation.",
193477193478 {
193478- id: external_exports.number().describe("The annotation ID to update."),
193479+ id: external_exports.number().int().positive(). describe("The annotation ID to update (positive integer primary key) ."),
193479193480 content: external_exports.string().optional().describe("New content (replaces existing)."),
193480193481 label: external_exports.string().optional().describe("New label (replaces existing)."),
193481193482 metadata: external_exports.string().optional().describe("New JSON-encoded metadata (replaces existing).")
@@ -193560,7 +193561,7 @@ function registerAuditStoreFindingsTool(server) {
193560193561 repo: external_exports.string().describe("Repository name."),
193561193562 findings: external_exports.array(external_exports.object({
193562193563 sourceLocation: external_exports.string().describe("File path of the finding."),
193563- line: external_exports.number().describe("Line number of the finding."),
193564+ line: external_exports.number().int().min(1). describe("Line number of the finding (integer >= 1) ."),
193564193565 sourceType: external_exports.string().describe('Type of the source (e.g. "RemoteFlowSource").'),
193565193566 description: external_exports.string().optional().describe("Human-readable description.")
193566193567 })).describe("Array of findings to store.")
@@ -193640,7 +193641,7 @@ function registerAuditAddNotesTool(server) {
193640193641 owner: external_exports.string().describe("Repository owner."),
193641193642 repo: external_exports.string().describe("Repository name."),
193642193643 sourceLocation: external_exports.string().describe("File path of the finding."),
193643- line: external_exports.number().describe("Line number of the finding."),
193644+ line: external_exports.number().int().min(1). describe("Line number of the finding (integer >= 1) ."),
193644193645 notes: external_exports.string().describe("Notes to append.")
193645193646 },
193646193647 async ({ owner, repo, sourceLocation, line, notes }) => {
@@ -193781,7 +193782,7 @@ function registerQueryResultsCacheRetrieveTool(server) {
193781193782 totalResults: subset2.totalResults,
193782193783 returnedResults: subset2.returnedResults,
193783193784 truncated: subset2.truncated,
193784- results : parsedResults
193785+ sarifSubset : parsedResults
193785193786 }, null, 2)
193786193787 }]
193787193788 };
0 commit comments