You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 22, 2025. It is now read-only.
fix(inspector): allow connection to inspector when using engine driver (#1269)
### TL;DR
Added granular control over inspector enablement for actors and managers, and improved inspector access token configuration.
### What changed?
- Enhanced the inspector configuration to allow enabling/disabling the inspector separately for actors and managers
- Added a `configureInspectorAccessToken` utility function to centralize token management
- Modified the `isInspectorEnabled` function to check if the inspector is enabled for a specific context (actor or manager)
- Updated the `ManagerDriver` interface to include a `getOrCreateInspectorAccessToken` method
- Implemented the new method in various driver implementations
- Added skeleton implementation for `configureInspectorAccessToken` in Cloudflare Workers
- Updated router implementations to use the new context-specific inspector enablement checks
- Set default inspector configurations for engine and Cloudflare Workers drivers
### How to test?
1. Configure a registry with different inspector settings for actors and managers:
```typescript
const registry = new Registry({
inspector: {
enabled: {
actor: true,
manager: false
}
}
});
```
2. Verify that the inspector endpoints are accessible for actors but not for managers
3. Test that inspector access tokens are properly generated and configured
### Why make this change?
This change provides more flexibility in how the inspector is configured, allowing users to enable inspection capabilities selectively for actors or managers based on their needs. It also centralizes and standardizes the inspector access token management, making the codebase more maintainable and consistent across different driver implementations.
0 commit comments