@dudko.dev/agent 0.0.59 → 0.0.61
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/README.md +3 -3
- package/dist/cli.js +138 -135
- package/dist/index.cjs +61 -61
- package/dist/index.d.cts +7 -3
- package/dist/index.d.ts +7 -3
- package/dist/index.js +61 -61
- package/dist/subagent-worker.js +55 -55
- package/package.json +6 -1
package/dist/index.d.cts
CHANGED
|
@@ -649,9 +649,11 @@ interface IToolDecision {
|
|
|
649
649
|
rule?: string;
|
|
650
650
|
}
|
|
651
651
|
/**
|
|
652
|
-
* Decide one call. Pure. Order: built-in ->
|
|
653
|
-
*
|
|
654
|
-
*
|
|
652
|
+
* Decide one call. Pure. Order: built-in -> the most specific RULE ('deny' refuses, 'ask' asks
|
|
653
|
+
* EVERY time - no remembered "always allow" answers a rule -, 'allow' runs) -> the mode refusing
|
|
654
|
+
* the call (read-only, a tool that may write: no grant outranks it) -> a remembered "always
|
|
655
|
+
* allow" -> the mode's default (autopilot: allow; read-only: allow if readOnly else deny;
|
|
656
|
+
* ask-writes: allow if readOnly else ask; ask-all: ask). The browser sibling's order.
|
|
655
657
|
* Then one rule that only ever tightens: a call that runs code while the run acts on an MCP
|
|
656
658
|
* server's skill is asked when it would have been allowed - by the mode, a rule or an "always
|
|
657
659
|
* allow" alike (the Skills extension: no code runs here on a server's skill without a person's
|
|
@@ -1395,6 +1397,7 @@ interface IToolApprovalRequest {
|
|
|
1395
1397
|
};
|
|
1396
1398
|
mcpSkills?: string[];
|
|
1397
1399
|
skill?: McpSkillConsentView;
|
|
1400
|
+
rule?: string;
|
|
1398
1401
|
}
|
|
1399
1402
|
interface IToolApprovalContext {
|
|
1400
1403
|
signal: AbortSignal;
|
|
@@ -1686,6 +1689,7 @@ type AgentEventBody = {
|
|
|
1686
1689
|
};
|
|
1687
1690
|
mcpSkills?: string[];
|
|
1688
1691
|
skill?: McpSkillConsentView;
|
|
1692
|
+
rule?: string;
|
|
1689
1693
|
} | {
|
|
1690
1694
|
type: 'tool.approval-resolved';
|
|
1691
1695
|
id: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -649,9 +649,11 @@ interface IToolDecision {
|
|
|
649
649
|
rule?: string;
|
|
650
650
|
}
|
|
651
651
|
/**
|
|
652
|
-
* Decide one call. Pure. Order: built-in ->
|
|
653
|
-
*
|
|
654
|
-
*
|
|
652
|
+
* Decide one call. Pure. Order: built-in -> the most specific RULE ('deny' refuses, 'ask' asks
|
|
653
|
+
* EVERY time - no remembered "always allow" answers a rule -, 'allow' runs) -> the mode refusing
|
|
654
|
+
* the call (read-only, a tool that may write: no grant outranks it) -> a remembered "always
|
|
655
|
+
* allow" -> the mode's default (autopilot: allow; read-only: allow if readOnly else deny;
|
|
656
|
+
* ask-writes: allow if readOnly else ask; ask-all: ask). The browser sibling's order.
|
|
655
657
|
* Then one rule that only ever tightens: a call that runs code while the run acts on an MCP
|
|
656
658
|
* server's skill is asked when it would have been allowed - by the mode, a rule or an "always
|
|
657
659
|
* allow" alike (the Skills extension: no code runs here on a server's skill without a person's
|
|
@@ -1395,6 +1397,7 @@ interface IToolApprovalRequest {
|
|
|
1395
1397
|
};
|
|
1396
1398
|
mcpSkills?: string[];
|
|
1397
1399
|
skill?: McpSkillConsentView;
|
|
1400
|
+
rule?: string;
|
|
1398
1401
|
}
|
|
1399
1402
|
interface IToolApprovalContext {
|
|
1400
1403
|
signal: AbortSignal;
|
|
@@ -1686,6 +1689,7 @@ type AgentEventBody = {
|
|
|
1686
1689
|
};
|
|
1687
1690
|
mcpSkills?: string[];
|
|
1688
1691
|
skill?: McpSkillConsentView;
|
|
1692
|
+
rule?: string;
|
|
1689
1693
|
} | {
|
|
1690
1694
|
type: 'tool.approval-resolved';
|
|
1691
1695
|
id: string;
|