@langgraph-js/sdk 4.6.5 → 4.6.6

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.
@@ -527,7 +527,7 @@ export class LangGraphClient extends EventEmitter {
527
527
  this.tools.doneWaiting(tool_id, result);
528
528
  if (this.humanInTheLoop) {
529
529
  this.humanInTheLoop.result[action_request_id] = result;
530
- if (Object.keys(this.humanInTheLoop.result).length === this.humanInTheLoop.interruptData.length) {
530
+ if (Object.keys(this.humanInTheLoop.result).length === this.humanInTheLoop.interruptData?.[0]?.value?.actionRequests?.length) {
531
531
  setTimeout(() => {
532
532
  if (this.forceSkipToolLock) {
533
533
  console.warn("force kill tool lock");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langgraph-js/sdk",
3
- "version": "4.6.5",
3
+ "version": "4.6.6",
4
4
  "description": "The UI SDK for LangGraph - seamlessly integrate your AI agents with frontend interfaces",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -649,7 +649,7 @@ export class LangGraphClient<TStateType = unknown> extends EventEmitter<LangGrap
649
649
  this.tools.doneWaiting(tool_id, result);
650
650
  if (this.humanInTheLoop) {
651
651
  this.humanInTheLoop.result[action_request_id] = result;
652
- if (Object.keys(this.humanInTheLoop.result).length === this.humanInTheLoop.interruptData.length) {
652
+ if (Object.keys(this.humanInTheLoop.result).length === this.humanInTheLoop.interruptData?.[0]?.value?.actionRequests?.length) {
653
653
  setTimeout(() => {
654
654
  if (this.forceSkipToolLock) {
655
655
  console.warn("force kill tool lock");