pulumi / pulumi-ai

226 stars 16 forks source link

When asked for automation API example, it imports `pulumi/pulumi/x/automation` #23

Closed MitchellGerdisch closed 1 year ago

MitchellGerdisch commented 1 year ago

What happened?

I asked Pulumi AI for I want automation api code that gets a stack's state file in typescript

And it produced good looking code but the import used the old import path with the x in the package name: import { LocalWorkspace, AutomationStack } from "@pulumi/pulumi/x/automation";

Expected Behavior

Should use the correct import: import { LocalWorkspace, AutomationStack } from "@pulumi/pulumi/automation";

Steps to reproduce

Ask it to generate some automation api code.

Output of pulumi about

N/A

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).