@trentapps/manager-protocol 1.3.0 → 1.3.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 +11 -29
- package/dist/cli.js +2 -2
- package/dist/engine/index.d.ts +0 -3
- package/dist/engine/index.d.ts.map +1 -1
- package/dist/engine/index.js +0 -4
- package/dist/engine/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +332 -429
- package/dist/server.js.map +1 -1
- package/dist/supervisor/AgentSupervisor.d.ts +22 -19
- package/dist/supervisor/AgentSupervisor.d.ts.map +1 -1
- package/dist/supervisor/AgentSupervisor.js +102 -80
- package/dist/supervisor/AgentSupervisor.js.map +1 -1
- package/dist/types/index.js +1 -1
- package/package.json +3 -4
package/README.md
CHANGED
|
@@ -454,8 +454,6 @@ Built-in support for:
|
|
|
454
454
|
|
|
455
455
|
| Variable | Description | Default |
|
|
456
456
|
|----------|-------------|---------|
|
|
457
|
-
| `GITHUB_TOKEN` | GitHub personal access token for task management and approvals | Required for GitHub features |
|
|
458
|
-
| `DASHBOARD_PORT` | HTTP dashboard port | `3100` |
|
|
459
457
|
| `AUDIT_DB_PATH` | Path to SQLite audit database | `./data/audit.db` |
|
|
460
458
|
| `NODE_ENV` | Environment (development/production) | `development` |
|
|
461
459
|
| `DEBUG` | Enable debug logging | `false` |
|
|
@@ -477,13 +475,6 @@ The Agent Supervisor MCP server is designed to run **locally** alongside your AI
|
|
|
477
475
|
- **No network exposure** - The server doesn't listen on any network ports by default
|
|
478
476
|
- **Process isolation** - Runs as a child process of the MCP client
|
|
479
477
|
|
|
480
|
-
### Dashboard (Optional)
|
|
481
|
-
|
|
482
|
-
The optional HTTP dashboard (for monitoring and approvals) runs on `localhost:3100` by default:
|
|
483
|
-
- Only accessible from the local machine
|
|
484
|
-
- Not exposed to the network
|
|
485
|
-
- For remote access, use SSH tunneling or a reverse proxy with authentication
|
|
486
|
-
|
|
487
478
|
### Production Considerations
|
|
488
479
|
|
|
489
480
|
If deploying in a production environment with network access:
|
|
@@ -511,13 +502,9 @@ The supervisor is only as good as its rules:
|
|
|
511
502
|
|
|
512
503
|
Test your rule configurations thoroughly before production use. Start with a preset (`standard` or `strict`) and customize from there.
|
|
513
504
|
|
|
514
|
-
###
|
|
505
|
+
### GitHub CLI Authentication
|
|
515
506
|
|
|
516
|
-
|
|
517
|
-
- The `GITHUB_TOKEN` requires repository access (`repo` scope)
|
|
518
|
-
- Protect this token as you would any credential
|
|
519
|
-
- Use fine-grained personal access tokens where possible
|
|
520
|
-
- Consider separate tokens for different environments
|
|
507
|
+
GitHub issue tools use the `gh` CLI which handles authentication via `gh auth login`. No environment variables needed.
|
|
521
508
|
|
|
522
509
|
### Audit Data Sensitivity
|
|
523
510
|
|
|
@@ -547,27 +534,22 @@ Use at your own discretion. The MIT License provides this software "as is" witho
|
|
|
547
534
|
│ Agent Supervisor │
|
|
548
535
|
├──────────────────────────────────────────────────────────────────┤
|
|
549
536
|
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────────────────┐ │
|
|
550
|
-
│ │ Rules │ │ Rate │ │
|
|
551
|
-
│ │ Engine │ │ Limiter │ │
|
|
552
|
-
│ └─────────────┘ └─────────────┘ └─────────────────────────┘ │
|
|
553
|
-
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────────────────┐ │
|
|
554
|
-
│ │ Task │ │ App │ │ CSS │ │
|
|
555
|
-
│ │ Manager │ │ Monitor │ │ Analyzer │ │
|
|
537
|
+
│ │ Rules │ │ Rate │ │ CSS │ │
|
|
538
|
+
│ │ Engine │ │ Limiter │ │ Analyzer │ │
|
|
556
539
|
│ └─────────────┘ └─────────────┘ └─────────────────────────┘ │
|
|
557
540
|
│ ┌───────────────────────────────────────────────────────────┐ │
|
|
558
541
|
│ │ Audit Logger (SQLite) │ │
|
|
559
542
|
│ └───────────────────────────────────────────────────────────┘ │
|
|
560
543
|
├──────────────────────────────────────────────────────────────────┤
|
|
561
544
|
│ MCP Server (stdio) │
|
|
562
|
-
│ evaluate_action |
|
|
563
|
-
│
|
|
545
|
+
│ evaluate_action | create_github_issue | css_eval | log_event │
|
|
546
|
+
│ list_rules | require_approval | register_session │
|
|
564
547
|
└──────────────────────────────────────────────────────────────────┘
|
|
565
|
-
│
|
|
566
|
-
▼
|
|
567
|
-
┌─────────────────────┐
|
|
568
|
-
│ GitHub Issues │
|
|
569
|
-
|
|
570
|
-
└─────────────────────┘ └─────────────────────┘
|
|
548
|
+
│
|
|
549
|
+
▼
|
|
550
|
+
┌─────────────────────┐
|
|
551
|
+
│ GitHub Issues │ (via gh CLI)
|
|
552
|
+
└─────────────────────┘
|
|
571
553
|
```
|
|
572
554
|
|
|
573
555
|
---
|
package/dist/cli.js
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { startServer } from './server.js';
|
|
8
8
|
// Package version - keep in sync with package.json
|
|
9
|
-
const VERSION = '1.
|
|
10
|
-
const PROGRAM_NAME = '
|
|
9
|
+
const VERSION = '1.3.1';
|
|
10
|
+
const PROGRAM_NAME = 'manager-protocol';
|
|
11
11
|
/**
|
|
12
12
|
* Parse command line arguments
|
|
13
13
|
*/
|
package/dist/engine/index.d.ts
CHANGED
|
@@ -4,8 +4,5 @@
|
|
|
4
4
|
export { RulesEngine, rulesEngine } from './RulesEngine.js';
|
|
5
5
|
export { RateLimiter, rateLimiter } from './RateLimiter.js';
|
|
6
6
|
export { AuditLogger, auditLogger, type AuditLoggerOptions } from './AuditLogger.js';
|
|
7
|
-
export { GitHubApprovalManager, type GitHubApprovalOptions } from './GitHubApprovalManager.js';
|
|
8
7
|
export { RuleDependencyAnalyzer, ruleDependencyAnalyzer, type DependencyAnalyzerOptions } from './RuleDependencyAnalyzer.js';
|
|
9
|
-
export { GitHubClient, gitHubClient, type GitHubIssue, type GitHubLabel, type GitHubClientError } from './GitHubClient.js';
|
|
10
|
-
export { TaskManager, taskManager, type TaskManagerOptions } from './TaskManager.js';
|
|
11
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/engine/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/engine/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAErF,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,KAAK,yBAAyB,EAAE,MAAM,6BAA6B,CAAC"}
|
package/dist/engine/index.js
CHANGED
|
@@ -4,10 +4,6 @@
|
|
|
4
4
|
export { RulesEngine, rulesEngine } from './RulesEngine.js';
|
|
5
5
|
export { RateLimiter, rateLimiter } from './RateLimiter.js';
|
|
6
6
|
export { AuditLogger, auditLogger } from './AuditLogger.js';
|
|
7
|
-
export { GitHubApprovalManager } from './GitHubApprovalManager.js';
|
|
8
7
|
// Task #37: Rule Dependency Analyzer
|
|
9
8
|
export { RuleDependencyAnalyzer, ruleDependencyAnalyzer } from './RuleDependencyAnalyzer.js';
|
|
10
|
-
// Task #99: GitHub API Client for TaskManager
|
|
11
|
-
export { GitHubClient, gitHubClient } from './GitHubClient.js';
|
|
12
|
-
export { TaskManager, taskManager } from './TaskManager.js';
|
|
13
9
|
//# sourceMappingURL=index.js.map
|
package/dist/engine/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/engine/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,WAAW,EAA2B,MAAM,kBAAkB,CAAC;AACrF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/engine/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,WAAW,EAA2B,MAAM,kBAAkB,CAAC;AACrF,qCAAqC;AACrC,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAkC,MAAM,6BAA6B,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
* - Comprehensive audit logging
|
|
9
9
|
* - Rate limiting and abuse prevention
|
|
10
10
|
*
|
|
11
|
-
* @module @
|
|
11
|
+
* @module @trentapps/manager-protocol
|
|
12
12
|
*/
|
|
13
13
|
export * from './types/index.js';
|
|
14
|
-
export { RulesEngine, rulesEngine, RateLimiter, rateLimiter, AuditLogger, auditLogger, type AuditLoggerOptions
|
|
14
|
+
export { RulesEngine, rulesEngine, RateLimiter, rateLimiter, AuditLogger, auditLogger, type AuditLoggerOptions } from './engine/index.js';
|
|
15
15
|
export { securityRules, complianceRules, uxRules, architectureRules, operationalRules, cssRules, flaskRules, mlAiRules, storageRules, stripeRules, testingRules, azureRules, websocketRules, allBuiltInRules, defaultRateLimits, rulePresets, projectProfiles, getRulesByType, getRulesByTags, getRulesForCompliance, getCSSRules, getFrontendRules, getRulesByProfile, getRulesByPriority, getRuleSummary, listProjectProfiles } from './rules/index.js';
|
|
16
16
|
export { CSSAnalyzer, cssAnalyzer, type CSSRule, type CSSAnalysisContext, type CSSSuggestion, type CSSAnalysisResult } from './analyzers/index.js';
|
|
17
17
|
export { type DesignToken, colorTokens, spacingTokens, fontSizeTokens, lineHeightTokens, radiusTokens, borderWidthTokens, shadowTokens, typographyTokens, zIndexTokens, transitionTokens, easingTokens, breakpointTokens, allTokens, valueToTokenMap, findMatchingToken, suggestToken, getRecommendedTokens, designSystem } from './design-system/index.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,cAAc,kBAAkB,CAAC;AAGjC,OAAO,EACL,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,EACX,KAAK,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,cAAc,kBAAkB,CAAC;AAGjC,OAAO,EACL,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,EACX,KAAK,kBAAkB,EACxB,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EACL,aAAa,EACb,eAAe,EACf,OAAO,EACP,iBAAiB,EACjB,gBAAgB,EAChB,QAAQ,EACR,UAAU,EACV,SAAS,EACT,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,UAAU,EACV,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,WAAW,EACX,eAAe,EACf,cAAc,EACd,cAAc,EACd,qBAAqB,EACrB,WAAW,EACX,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,mBAAmB,EACpB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EACL,WAAW,EACX,WAAW,EACX,KAAK,OAAO,EACZ,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACvB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EACL,KAAK,WAAW,EAChB,WAAW,EACX,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,gBAAgB,EAChB,SAAS,EACT,eAAe,EACf,iBAAiB,EACjB,YAAY,EACZ,oBAAoB,EACpB,YAAY,EACb,MAAM,0BAA0B,CAAC;AAGlC,OAAO,EACL,eAAe,EACf,UAAU,EACV,KAAK,sBAAsB,EAC5B,MAAM,iCAAiC,CAAC;AAGzC,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,sBAAsB,EACtB,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,SAAS,EACT,sBAAsB,EACtB,WAAW,EACX,aAAa,EACb,KAAK,YAAY,EAClB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
* - Comprehensive audit logging
|
|
9
9
|
* - Rate limiting and abuse prevention
|
|
10
10
|
*
|
|
11
|
-
* @module @
|
|
11
|
+
* @module @trentapps/manager-protocol
|
|
12
12
|
*/
|
|
13
13
|
// Core types
|
|
14
14
|
export * from './types/index.js';
|
|
15
15
|
// Engine components
|
|
16
|
-
export { RulesEngine, rulesEngine, RateLimiter, rateLimiter, AuditLogger, auditLogger
|
|
16
|
+
export { RulesEngine, rulesEngine, RateLimiter, rateLimiter, AuditLogger, auditLogger } from './engine/index.js';
|
|
17
17
|
// Built-in rules
|
|
18
18
|
export { securityRules, complianceRules, uxRules, architectureRules, operationalRules, cssRules, flaskRules, mlAiRules, storageRules, stripeRules, testingRules, azureRules, websocketRules, allBuiltInRules, defaultRateLimits, rulePresets, projectProfiles, getRulesByType, getRulesByTags, getRulesForCompliance, getCSSRules, getFrontendRules, getRulesByProfile, getRulesByPriority, getRuleSummary, listProjectProfiles } from './rules/index.js';
|
|
19
19
|
// Analyzers
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,aAAa;AACb,cAAc,kBAAkB,CAAC;AAEjC,oBAAoB;AACpB,OAAO,EACL,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,aAAa;AACb,cAAc,kBAAkB,CAAC;AAEjC,oBAAoB;AACpB,OAAO,EACL,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,EAEZ,MAAM,mBAAmB,CAAC;AAE3B,iBAAiB;AACjB,OAAO,EACL,aAAa,EACb,eAAe,EACf,OAAO,EACP,iBAAiB,EACjB,gBAAgB,EAChB,QAAQ,EACR,UAAU,EACV,SAAS,EACT,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,UAAU,EACV,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,WAAW,EACX,eAAe,EACf,cAAc,EACd,cAAc,EACd,qBAAqB,EACrB,WAAW,EACX,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,mBAAmB,EACpB,MAAM,kBAAkB,CAAC;AAE1B,YAAY;AACZ,OAAO,EACL,WAAW,EACX,WAAW,EAKZ,MAAM,sBAAsB,CAAC;AAE9B,gBAAgB;AAChB,OAAO,EAEL,WAAW,EACX,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,gBAAgB,EAChB,SAAS,EACT,eAAe,EACf,iBAAiB,EACjB,YAAY,EACZ,oBAAoB,EACpB,YAAY,EACb,MAAM,0BAA0B,CAAC;AAElC,kBAAkB;AAClB,OAAO,EACL,eAAe,EACf,UAAU,EAEX,MAAM,iCAAiC,CAAC;AAEzC,YAAY;AACZ,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,sBAAsB,EACtB,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,SAAS,EACT,sBAAsB,EACtB,WAAW,EACX,aAAa,EAEd,MAAM,kBAAkB,CAAC;AAE1B,aAAa;AACb,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AA+iCnE,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWX,CAAC;AAw5BF,OAAO,EAAE,MAAM,EAAE,CAAC;AAElB,wBAAsB,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC,CAIjD"}
|