import {Service}from'moleculer';import {zodSchemasToMoleculer,Moleculer}from'@common-stack/codegen-zod';import {StateServiceSchemas,SERVER_TYPES}from'common/server';/**
 * State Moleculer service (auto-generated actions + events).
 * Pattern 1 from proxy-service-backend-llm.md
 */
class StateMoleculerService extends Service {
  constructor(broker, {
    container
  }) {
    super(broker);
    const {
      topic
    } = StateServiceSchemas; // minification-safe topic
    const service = container.get(SERVER_TYPES.StateService);
    const paramOverrides = zodSchemasToMoleculer(StateServiceSchemas); // optional validation
    const {
      actions,
      events
    } = Moleculer.generateActionsAndEvents(service, {
      paramOverrides
    });
    this.parseServiceSchema({
      name: topic,
      actions,
      events
    });
  }
}export{StateMoleculerService};//# sourceMappingURL=state-moleculer-service.js.map
