pulumi/pkg
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
..
authhelpers Add tests for gcpauth pkg (#13926) 2023-09-13 11:27:03 +00:00
backend Fix data rate in backend/display/tree_test.go (#15006) 2023-12-27 20:16:51 +00:00
cmd/pulumi Fix AI prompt repetition on Windows (#15010) 2024-01-03 23:03:11 +00:00
codegen Temporarily revert validation of urn/id output properties (#15025) 2024-01-03 03:21:23 +00:00
display Move sdk/go/common/display to /pkg/display (#13954) 2023-09-18 11:01:28 +00:00
engine Validate journal close in test_plan (#15027) 2024-01-03 17:32:13 +00:00
graph Use slice.Prealloc instead of make([]T, 0, ...) 2023-06-29 11:27:50 +01:00
importer Enable perfsprint linter (#14813) 2023-12-12 12:19:42 +00:00
operations Allow anything in resource names (#14107) 2023-11-20 08:59:00 +00:00
resource [ci] `pkg/resource/deploy/(step(_generator|_executor)?|import).go` coverage (#14997) 2023-12-22 21:14:04 +00:00
secrets Add test for azure secrets (#14649) 2024-01-03 14:47:09 +00:00
testing/integration Clean up uses of .Error() (#14965) 2023-12-20 15:54:06 +00:00
util Clean up uses of .Error() (#14965) 2023-12-20 15:54:06 +00:00
version duplicate version to ensure linking is properly handled 2020-03-19 12:49:34 -07:00
workspace Clean up uses of .Error() (#14965) 2023-12-20 15:54:06 +00:00
README.md export codegen tests for internal use (#8928) 2022-02-07 12:10:04 +01:00
go.mod Add test for azure secrets (#14649) 2024-01-03 14:47:09 +00:00
go.sum Add test for azure secrets (#14649) 2024-01-03 14:47:09 +00:00

README.md

pulumi/pkg

While pulumi/sdk maintains strict backwards compatibility guarantees, code under pkg/ is handled more informally: while breaking changes are still discouraged they may happen when they make sense.