Skip to content

poe-code/agent: AgentRunOptions.env missing from published 3.0.393 types #520

Description

@kamilio

Summary

poe-code@3.0.393 runtime still forwards composable AgentRunOptions.env, but the published poe-code/agent TypeScript declaration omits the env property. This regresses the public contract released for #404 in 3.0.256.

Evidence

Runtime (dist/agent.js) forwards:

env: options.env

Published declaration (dist/agent.d.ts) currently defines AgentRunOptions without env.

Impact

Consumers cannot use the released per-run composable-agent environment API without a cast, module augmentation, or other local workaround. In quora/bug-analyzer, this blocks removal of serialized temporary global process.env mutation tracked by issue #24.

Requested fix

  • Restore env?: Record<string, string | undefined> to the public AgentRunOptions declaration/source type.
  • Add a packaging/type-surface regression test proving the published poe-code/agent declaration accepts per-run environment overrides, including undefined unsets.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions