@atbash/atbash-langgraph 0.0.3 → 0.0.4

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/dist/index.js +4 -6
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -82,7 +82,7 @@ function createGuardNode(opts) {
82
82
  }
83
83
 
84
84
  // src/nodes/auditNode.ts
85
- import { logToolCall } from "@atbash/sdk";
85
+ import { judgeAction } from "@atbash/sdk";
86
86
 
87
87
  // src/utils.ts
88
88
  function truncateText(value, max = 500) {
@@ -95,12 +95,10 @@ function createAuditNode(opts) {
95
95
  const lastMessage = state.messages[state.messages.length - 1];
96
96
  const content = typeof lastMessage?.content === "string" ? lastMessage.content : JSON.stringify(lastMessage?.content ?? "");
97
97
  try {
98
- await logToolCall(
98
+ await judgeAction(
99
99
  truncateText(content, 500),
100
100
  "LangGraph tool execution completed",
101
101
  opts.agent,
102
- void 0,
103
- void 0,
104
102
  opts.clientOpts
105
103
  );
106
104
  } catch {
@@ -142,13 +140,13 @@ function addAtbashSafety(builder, opts) {
142
140
  }
143
141
 
144
142
  // src/tools/judgeTool.ts
145
- import { judgeAction } from "@atbash/sdk";
143
+ import { judgeAction as judgeAction2 } from "@atbash/sdk";
146
144
  import { tool } from "@langchain/core/tools";
147
145
  import { z } from "zod";
148
146
  function createJudgeTool(agent, endpoint) {
149
147
  return tool(
150
148
  async ({ action, context }) => {
151
- const result = await judgeAction(
149
+ const result = await judgeAction2(
152
150
  action,
153
151
  context,
154
152
  agent,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atbash/atbash-langgraph",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "Atbash safety guard and audit nodes for LangGraph workflows",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -37,7 +37,7 @@
37
37
  "prepublishOnly": "npm run build"
38
38
  },
39
39
  "dependencies": {
40
- "@atbash/sdk": "^0.3.23",
40
+ "@atbash/sdk": "^0.3.24",
41
41
  "zod": "^3.25.76"
42
42
  },
43
43
  "peerDependencies": {