fullcourtdefense 1.7.28 → 1.8.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.
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "1.7.28"
2
+ "version": "1.8.0"
3
3
  }
package/dist/types.d.ts CHANGED
@@ -168,9 +168,26 @@ export interface McpScanResult {
168
168
  type: string;
169
169
  value: string;
170
170
  }>;
171
+ /**
172
+ * The tool output to hand back to the LLM. When `sanitized` is true this is the
173
+ * CLEANED text (injected spans removed); otherwise the original output (or null
174
+ * when blocked).
175
+ */
171
176
  safeResponse: string | null;
172
177
  toolName: string | null;
173
178
  _actionPolicy?: AgentSecurityActionPolicyResult;
179
+ /**
180
+ * True when the tool-output sanitizer removed injected instruction spans and
181
+ * `safeResponse` is the cleaned remainder (strip-and-continue) rather than the
182
+ * raw output. `blocked` is false in this case.
183
+ */
184
+ sanitized?: boolean;
185
+ /** Injected spans that were stripped from the tool output (present when sanitized). */
186
+ removedSpans?: Array<{
187
+ text: string;
188
+ reason: string;
189
+ offset: number;
190
+ }>;
174
191
  /** `'async'` — monitor mode fire-and-forget report (no inline verdict). */
175
192
  analysis?: 'sync' | 'async';
176
193
  /** True when fail-open returned an allowed result because the backend was unreachable. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fullcourtdefense",
3
- "version": "1.7.28",
3
+ "version": "1.8.0",
4
4
  "description": "Full Court Defense — real-time AI firewall and CLI scanner for chatbots, agents and RAG pipelines. Tool-call guards for MCP, LangChain, LlamaIndex, AutoGen, CrewAI and Semantic Kernel.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",