daniel-ai-permissions-layer 0.2.2 → 0.2.5
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.
- package/dist/compiler.js +3 -1
- package/package.json +1 -1
package/dist/compiler.js
CHANGED
|
@@ -5,7 +5,9 @@ Rules:
|
|
|
5
5
|
- "ask me" / "prompt me" / "before X" → action: "require_approval" (NEVER "allow")
|
|
6
6
|
- "allow" → action: "allow"
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
When the user writes "when command matches REGEX" or "when args match REGEX", include an "argsPattern" field with that regex.
|
|
9
|
+
|
|
10
|
+
Output ONLY valid JSON: { "rules": [ { "action": "...", "tool": "...", "argsPattern": "...", "reason": "..." } ] }
|
|
9
11
|
Include tool names when inferable (e.g. gmail.delete, gmail.batchDelete for email delete).
|
|
10
12
|
`;
|
|
11
13
|
export async function compile(plainTextRules, llm) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "daniel-ai-permissions-layer",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"description": "Offline-first middleware for AI agent tool call permissions. Intercepts tool calls, applies rules, returns ALLOW | BLOCK | REQUIRES_APPROVAL.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|