pulumi/changelog
Aaron Friel 956c3aa2a1
Fix AI prompt repetition on Windows (#15010)
# Description

Switches the prompt to use the `promptForValue` function, which now
accepts an empty type descriptor. This renders to the user as:

```console
$ pulumi new
 Would you like to create a project from a template or using a Pulumi AI prompt? ai
 Please select a language for your project: TypeScript
What cloud infrastructure would you like to build?
(try something like "a static website on AWS behind a CDN")
> an eks cluster
Sending prompt to Pulumi AI...
Pulumi AI response:
\`\`\`typescript
...
\`\`\`
View this conversation at:  https://www.pulumi.com/ai/conversations/13a802da-50b6-46e8-bc82-fd2f7ac6e364
 Use this program as a template? refine
Tell Pulumi AI how to refine the previous program:
> add an awsx vpc
...
```

We're still a little inconsistent between the survey asked questions and
those using `promptForValue`. An overhaul here would be a much larger
change that's currently out of scope.

Removes a test that only tested the mocks, was not working on Windows
due to OS-specific behavior in Survey.

Fixes #14973

## Checklist

- [x] I have run `make tidy` to update any new dependencies
- [x] I have run `make lint` to verify my code passes the lint check
  - [x] I have formatted my code using `gofumpt`
2024-01-03 23:03:11 +00:00
..
pending Fix AI prompt repetition on Windows (#15010) 2024-01-03 23:03:11 +00:00
config.yaml Reorder scopes to be alphabetically ordered. 2022-11-10 16:54:37 -05:00