gateia 0.1.0 → 0.1.1

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.
@@ -2,16 +2,16 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.predefinedPolicies = void 0;
4
4
  exports.predefinedPolicies = {
5
- 'finance-safe': {
6
- id: 'finance-safe',
5
+ 'support-safe': {
6
+ id: 'support-safe',
7
7
  mode: 'enforce',
8
8
  check: (output) => {
9
9
  const text = typeof output === 'string' ? output : JSON.stringify(output);
10
- if (text.toLowerCase().includes('guaranteed returns')) {
11
- // block "guaranteed returns"
10
+ if (text.toLowerCase().includes('guaranteed refund')) {
11
+ // block "guaranteed refund" promises
12
12
  return {
13
13
  outcome: 'block',
14
- violations: [{ policyId: 'finance-safe', message: 'Contains forbidden phrase: "guaranteed returns"', severity: 'critical' }]
14
+ violations: [{ policyId: 'support-safe', message: 'Contains forbidden phrase: "guaranteed refund"', severity: 'critical' }]
15
15
  };
16
16
  }
17
17
  return { outcome: 'pass' };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gateia",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "The trust layer for AI in production. Middleware for model routing, contract enforcement, and policy compliance.",
5
5
  "keywords": [
6
6
  "ai",
@@ -43,9 +43,7 @@
43
43
  "engines": {
44
44
  "node": ">=18"
45
45
  },
46
-
47
46
  "sideEffects": false,
48
-
49
47
  "bugs": {
50
48
  "email": "solomonmithra99@gmail.com"
51
49
  }