Type alias ForgeLogEvent

ForgeLogEvent: {
    kind: "start";
    scope?: string;
    toolName: string;
    mode: string;
} | {
    kind: "approved";
    scope?: string;
    toolName: string;
    confidence: number;
} | {
    kind: "rejected";
    scope?: string;
    toolName: string;
    reason: string;
} | {
    kind: "error";
    scope?: string;
    toolName: string;
    error: string;
}

Structured log event emitted at each forge lifecycle step. Consumers who care about stdout visibility can pass a log callback that renders this into console.log / pm2 / whatever. AgentOS emits nothing by default so the wrapper is safe to use in quiet contexts.

Type declaration

  • kind: "start"
  • Optional scope?: string
  • toolName: string
  • mode: string

Type declaration

  • kind: "approved"
  • Optional scope?: string
  • toolName: string
  • confidence: number

Type declaration

  • kind: "rejected"
  • Optional scope?: string
  • toolName: string
  • reason: string

Type declaration

  • kind: "error"
  • Optional scope?: string
  • toolName: string
  • error: string