@groovysec/whiteout-ai 0.3.0 → 0.3.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.
@@ -25,7 +25,7 @@ export type AppGuardOptions = {
25
25
  /** Gateway keys: which app calls are for (default WHITEOUT_APP_REF), unless a call says otherwise. */
26
26
  appRef?: string;
27
27
  };
28
- export declare const SDK_VERSION = "0.3.0";
28
+ export declare const SDK_VERSION = "0.3.1";
29
29
  /** What a quarantined system / tool turn is replaced with before the model sees it (ids kept, so tool calls stay paired). */
30
30
  export declare const QUARANTINE_NOTICE = "[Removed by Whiteout: this content contained instructions aimed at the AI assistant and was not passed to the model.]";
31
31
  export type GuardMessage = {
package/dist/appGuard.js CHANGED
@@ -32,7 +32,7 @@ const CONFIG_TTL_MS = 300_000;
32
32
  const CONFIG_RETRY_MS = 60_000;
33
33
  const ROLE_ALIASES = { developer: "system", function: "tool", human: "user", ai: "assistant" };
34
34
  const ROLES = new Set(["system", "user", "assistant", "tool"]);
35
- export const SDK_VERSION = "0.3.0";
35
+ export const SDK_VERSION = "0.3.1";
36
36
  /** What a quarantined system / tool turn is replaced with before the model sees it (ids kept, so tool calls stay paired). */
37
37
  export const QUARANTINE_NOTICE = "[Removed by Whiteout: this content contained instructions aimed at the AI assistant and was not passed to the model.]";
38
38
  /** `docs` minus the ones Whiteout quarantined — pass the same list you sent as `context`. */
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@groovysec/whiteout-ai",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Whiteout AI governance SDK for Node.js. Add policy enforcement to any AI workload in three lines.",
5
5
  "license": "Apache-2.0",
6
+ "homepage": "https://groovysec.com/docs/admin-guides/developers/node-sdk/",
6
7
  "type": "module",
7
8
  "main": "./dist/index.js",
8
9
  "types": "./dist/index.d.ts",