@sparkleideas/claims 3.5.2-patch.1
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 +261 -0
- package/package.json +84 -0
- package/src/api/cli-commands.ts +1459 -0
- package/src/api/cli-types.ts +154 -0
- package/src/api/index.ts +24 -0
- package/src/api/mcp-tools.ts +1977 -0
- package/src/application/claim-service.ts +753 -0
- package/src/application/index.ts +46 -0
- package/src/application/load-balancer.ts +840 -0
- package/src/application/work-stealing-service.ts +807 -0
- package/src/domain/events.ts +779 -0
- package/src/domain/index.ts +214 -0
- package/src/domain/repositories.ts +239 -0
- package/src/domain/rules.ts +526 -0
- package/src/domain/types.ts +826 -0
- package/src/index.ts +79 -0
- package/src/infrastructure/claim-repository.ts +358 -0
- package/src/infrastructure/event-store.ts +297 -0
- package/src/infrastructure/index.ts +21 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Claims Application Layer
|
|
3
|
+
*
|
|
4
|
+
* Exports application services for the claims module:
|
|
5
|
+
* - ClaimService: Core claiming, releasing, and handoff operations
|
|
6
|
+
* - LoadBalancer: Work distribution and rebalancing across the swarm
|
|
7
|
+
* - WorkStealingService: Idle agent work acquisition
|
|
8
|
+
*
|
|
9
|
+
* @module v3/claims/application
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
// Core claim service
|
|
13
|
+
export { ClaimService, IClaimService } from './claim-service.js';
|
|
14
|
+
|
|
15
|
+
// Load Balancing Service
|
|
16
|
+
export {
|
|
17
|
+
LoadBalancer,
|
|
18
|
+
createLoadBalancer,
|
|
19
|
+
type ILoadBalancer,
|
|
20
|
+
type ILoadBalancerClaimRepository,
|
|
21
|
+
type IAgentRegistry,
|
|
22
|
+
type IHandoffService,
|
|
23
|
+
type AgentMetadata,
|
|
24
|
+
type SwarmLoadInfo,
|
|
25
|
+
type RebalanceOptions,
|
|
26
|
+
type RebalanceResult,
|
|
27
|
+
type ImbalanceReport,
|
|
28
|
+
type ClaimSummary,
|
|
29
|
+
type LoadBalancerEventType,
|
|
30
|
+
type SwarmRebalancedEvent,
|
|
31
|
+
type AgentOverloadedEvent,
|
|
32
|
+
type AgentUnderloadedEvent,
|
|
33
|
+
type LoadBalancerClaimant,
|
|
34
|
+
type LoadBalancerClaimStatus,
|
|
35
|
+
} from './load-balancer.js';
|
|
36
|
+
|
|
37
|
+
// Re-export AgentLoadInfo from load-balancer with a unique name to avoid conflict
|
|
38
|
+
export { type AgentLoadInfo as LoadBalancerAgentLoadInfo } from './load-balancer.js';
|
|
39
|
+
|
|
40
|
+
// Work Stealing Service
|
|
41
|
+
export {
|
|
42
|
+
WorkStealingService,
|
|
43
|
+
InMemoryWorkStealingEventBus,
|
|
44
|
+
createWorkStealingService,
|
|
45
|
+
type IWorkStealingService,
|
|
46
|
+
} from './work-stealing-service.js';
|