agent-afk 5.223.2 → 5.223.3
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/agent/tools/delegation-budget.d.ts +3 -3
- package/dist/cli.mjs +238 -238
- package/dist/config/env.d.ts +1 -1
- package/dist/index.mjs +109 -109
- package/dist/telegram.mjs +127 -127
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export interface DelegationBudgetConfig {
|
|
2
|
-
|
|
2
|
+
maxConcurrentChildrenPerAgent?: number;
|
|
3
3
|
maxConcurrentAgents?: number;
|
|
4
4
|
maxTotalAgents?: number;
|
|
5
5
|
}
|
|
6
|
-
export type BudgetRefusalReason = '
|
|
6
|
+
export type BudgetRefusalReason = 'max_concurrent_children_per_agent' | 'max_concurrent_agents' | 'max_total_agents';
|
|
7
7
|
export interface BudgetCheckResult {
|
|
8
8
|
allowed: boolean;
|
|
9
9
|
reason?: BudgetRefusalReason;
|
|
@@ -23,7 +23,7 @@ export declare class DelegationBudget {
|
|
|
23
23
|
private readonly config;
|
|
24
24
|
private concurrent;
|
|
25
25
|
private total;
|
|
26
|
-
private readonly
|
|
26
|
+
private readonly concurrentChildrenByAgent;
|
|
27
27
|
constructor(config: DelegationBudgetConfig);
|
|
28
28
|
canSpawn(parentId: string): BudgetCheckResult;
|
|
29
29
|
recordSpawn(parentId: string): SpawnReceipt;
|