@clampd/sdk 0.13.2 → 0.14.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/dist/index.cjs +0 -21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clampd/sdk",
3
- "version": "0.13.2",
3
+ "version": "0.14.0",
4
4
  "description": "Runtime security SDK for AI agents — guard tool calls in 1 line",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/dist/index.cjs DELETED
@@ -1,21 +0,0 @@
1
- // CJS compatibility wrapper for @clampd/sdk
2
- // This allows `const clampd = require("@clampd/sdk")` to work
3
-
4
- let _mod = null;
5
- const _ready = import("./index.js").then((mod) => {
6
- _mod = mod;
7
- // Copy all named exports
8
- for (const [key, val] of Object.entries(mod)) {
9
- if (key !== "default") module.exports[key] = val;
10
- }
11
- // Copy default export methods (init, openai, anthropic, guard, tools)
12
- if (mod.default) {
13
- for (const [key, val] of Object.entries(mod.default)) {
14
- module.exports[key] = val;
15
- }
16
- }
17
- module.exports.default = mod.default;
18
- });
19
-
20
- // Expose a ready promise for users who need to await
21
- module.exports._ready = _ready;