ai-warden 0.8.2 → 0.8.3

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/client.js +5 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-warden",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "description": "AI security scanner - Detect prompt injection attacks and PII with user settings",
5
5
  "main": "src/index.js",
6
6
  "bin": {
package/src/client.js CHANGED
@@ -130,15 +130,15 @@ class AIWardenClient {
130
130
  * Validate content against Prompt Shield API
131
131
  */
132
132
  async validate(content, options = {}) {
133
- // Ensure settings are loaded
134
- if (!this.initialized || this._isSettingsExpired()) {
135
- await this.init();
136
- }
133
+ // Skip settings for now - API will use defaults
134
+ // if (!this.initialized || this._isSettingsExpired()) {
135
+ // await this.init();
136
+ // }
137
137
 
138
138
  const url = `${this.apiUrl}/api/validate`;
139
139
  const payload = {
140
140
  text: content, // API expects 'text', not 'content'
141
- settings: this.settings,
141
+ // settings: this.settings, // Skip settings for now
142
142
  ...options
143
143
  };
144
144