[PR #491] [CLOSED] feat(deepagents): implement filesystem permissions middleware with ToolPolicy integration #510

Closed
opened 2026-06-05 17:23:30 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/deepagentsjs/pull/491
Author: @colifran
Created: 4/27/2026
Status: Closed

Base: mainHead: colifran/permissions


📝 Commits (3)

  • 2eb95c2 implement fs permissions with tool policy integration
  • c88a564 thread eval config and fix subagent permissions override
  • 0f80475 remove fs permissions middleware

📊 Changes

15 files changed (+781 additions, -4 deletions)

View changed files

📝 libs/deepagents/src/agent.ts (+7 -0)
📝 libs/deepagents/src/index.ts (+6 -0)
📝 libs/deepagents/src/middleware/fs.ts (+42 -0)
📝 libs/deepagents/src/middleware/subagents.ts (+41 -1)
libs/deepagents/src/permissions/enforce.test.ts (+111 -0)
libs/deepagents/src/permissions/enforce.ts (+79 -0)
libs/deepagents/src/permissions/filesystem_policy.test.ts (+168 -0)
libs/deepagents/src/permissions/filesystem_policy.ts (+114 -0)
libs/deepagents/src/permissions/index.ts (+15 -0)
libs/deepagents/src/permissions/runtime.ts (+21 -0)
libs/deepagents/src/permissions/types.test.ts (+55 -0)
libs/deepagents/src/permissions/types.ts (+93 -0)
📝 libs/deepagents/src/types.ts (+19 -0)
📝 libs/providers/quickjs/src/middleware.ts (+1 -1)
📝 libs/providers/quickjs/src/session.ts (+9 -2)

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/deepagentsjs/pull/491 **Author:** [@colifran](https://github.com/colifran) **Created:** 4/27/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `colifran/permissions` --- ### 📝 Commits (3) - [`2eb95c2`](https://github.com/langchain-ai/deepagentsjs/commit/2eb95c286de8d1648a6dd88509b267455dd3eb92) implement fs permissions with tool policy integration - [`c88a564`](https://github.com/langchain-ai/deepagentsjs/commit/c88a56421e078dfebfe44a3978df3c6d6853c65d) thread eval config and fix subagent permissions override - [`0f80475`](https://github.com/langchain-ai/deepagentsjs/commit/0f80475225dd82b0cac31003c3a40da8b82dcdf7) remove fs permissions middleware ### 📊 Changes **15 files changed** (+781 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `libs/deepagents/src/agent.ts` (+7 -0) 📝 `libs/deepagents/src/index.ts` (+6 -0) 📝 `libs/deepagents/src/middleware/fs.ts` (+42 -0) 📝 `libs/deepagents/src/middleware/subagents.ts` (+41 -1) ➕ `libs/deepagents/src/permissions/enforce.test.ts` (+111 -0) ➕ `libs/deepagents/src/permissions/enforce.ts` (+79 -0) ➕ `libs/deepagents/src/permissions/filesystem_policy.test.ts` (+168 -0) ➕ `libs/deepagents/src/permissions/filesystem_policy.ts` (+114 -0) ➕ `libs/deepagents/src/permissions/index.ts` (+15 -0) ➕ `libs/deepagents/src/permissions/runtime.ts` (+21 -0) ➕ `libs/deepagents/src/permissions/types.test.ts` (+55 -0) ➕ `libs/deepagents/src/permissions/types.ts` (+93 -0) 📝 `libs/deepagents/src/types.ts` (+19 -0) 📝 `libs/providers/quickjs/src/middleware.ts` (+1 -1) 📝 `libs/providers/quickjs/src/session.ts` (+9 -2) </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-06-05 17:23:30 -04:00
yindo closed this issue 2026-06-05 17:23:30 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/deepagentsjs#510