thinkwork-cli 0.12.1 → 0.12.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/dist/cli.js +1062 -45
  2. package/dist/commands/enterprise/templates/deploy-repo/.github/workflows/deploy.yml +232 -0
  3. package/dist/commands/enterprise/templates/deploy-repo/README.md +31 -0
  4. package/dist/commands/enterprise/templates/deploy-repo/customer/branding/README.md +7 -0
  5. package/dist/commands/enterprise/templates/deploy-repo/customer/deployment.json +6 -0
  6. package/dist/commands/enterprise/templates/deploy-repo/customer/evals/README.md +10 -0
  7. package/dist/commands/enterprise/templates/deploy-repo/customer/seeds/README.md +7 -0
  8. package/dist/commands/enterprise/templates/deploy-repo/customer/skills/README.md +7 -0
  9. package/dist/commands/enterprise/templates/deploy-repo/customer/workspace-defaults/README.md +7 -0
  10. package/dist/commands/enterprise/templates/deploy-repo/scripts/apply-release.mjs +606 -0
  11. package/dist/commands/enterprise/templates/deploy-repo/scripts/smoke.mjs +99 -0
  12. package/dist/commands/enterprise/templates/deploy-repo/terraform/backend-dev.hcl +6 -0
  13. package/dist/commands/enterprise/templates/deploy-repo/terraform/main.tf +101 -0
  14. package/dist/commands/enterprise/templates/deploy-repo/terraform/stages/dev.tfvars +9 -0
  15. package/dist/commands/enterprise/templates/deploy-repo/terraform/stages/prod.tfvars +9 -0
  16. package/dist/commands/enterprise/templates/deploy-repo/thinkwork.lock +17 -0
  17. package/dist/terraform/examples/greenfield/main.tf +26 -0
  18. package/dist/terraform/examples/greenfield/terraform.tfvars.example +12 -0
  19. package/dist/terraform/modules/app/lambda-api/eval-fanout.tf +7 -7
  20. package/dist/terraform/modules/app/lambda-api/handlers.tf +78 -68
  21. package/dist/terraform/modules/app/lambda-api/outputs.tf +9 -4
  22. package/dist/terraform/modules/app/lambda-api/remote-artifacts.tf +36 -0
  23. package/dist/terraform/modules/app/lambda-api/variables.tf +7 -0
  24. package/dist/terraform/modules/app/lambda-api/workspace-events.tf +1 -1
  25. package/dist/terraform/modules/thinkwork/main.tf +3 -2
  26. package/dist/terraform/modules/thinkwork/outputs.tf +5 -0
  27. package/dist/terraform/modules/thinkwork/variables.tf +6 -0
  28. package/dist/terraform/schema.graphql +10 -40
  29. package/package.json +1 -1
@@ -217,6 +217,12 @@ variable "lambda_artifact_prefix" {
217
217
  default = "latest/lambdas"
218
218
  }
219
219
 
220
+ variable "require_lambda_artifacts" {
221
+ description = "Fail planning unless either lambda_zips_dir or lambda_artifact_bucket/lambda_artifact_prefix is configured. Enterprise deployment repos should set this to true."
222
+ type = bool
223
+ default = false
224
+ }
225
+
220
226
  variable "lambda_zips_dir" {
221
227
  description = "Local directory containing Lambda zip artifacts (from scripts/build-lambdas.sh). Enables real handlers when set."
222
228
  type = string
@@ -212,63 +212,33 @@ type Mutation {
212
212
 
213
213
  type Subscription {
214
214
  _empty: String
215
- onAgentStatusChanged(tenantId: ID!): AgentStatusEvent
216
- @aws_api_key
217
- @aws_cognito_user_pools
218
- @aws_iam
215
+ onAgentStatusChanged(tenantId: ID!): AgentStatusEvent @aws_api_key @aws_cognito_user_pools @aws_iam
219
216
  @aws_subscribe(mutations: ["notifyAgentStatus"])
220
217
 
221
- onNewMessage(threadId: ID!): NewMessageEvent
222
- @aws_api_key
223
- @aws_cognito_user_pools
224
- @aws_iam
218
+ onNewMessage(threadId: ID!): NewMessageEvent @aws_api_key @aws_cognito_user_pools @aws_iam
225
219
  @aws_subscribe(mutations: ["notifyNewMessage"])
226
220
 
227
- onHeartbeatActivity(tenantId: ID!): HeartbeatActivityEvent
228
- @aws_api_key
229
- @aws_cognito_user_pools
230
- @aws_iam
221
+ onHeartbeatActivity(tenantId: ID!): HeartbeatActivityEvent @aws_api_key @aws_cognito_user_pools @aws_iam
231
222
  @aws_subscribe(mutations: ["notifyHeartbeatActivity"])
232
223
 
233
- onThreadUpdated(tenantId: ID!): ThreadUpdateEvent
234
- @aws_api_key
235
- @aws_cognito_user_pools
236
- @aws_iam
224
+ onThreadUpdated(tenantId: ID!): ThreadUpdateEvent @aws_api_key @aws_cognito_user_pools @aws_iam
237
225
  @aws_subscribe(mutations: ["notifyThreadUpdate"])
238
226
 
239
- onInboxItemStatusChanged(tenantId: ID!): InboxItemStatusEvent
240
- @aws_api_key
241
- @aws_cognito_user_pools
242
- @aws_iam
227
+ onInboxItemStatusChanged(tenantId: ID!): InboxItemStatusEvent @aws_api_key @aws_cognito_user_pools @aws_iam
243
228
  @aws_subscribe(mutations: ["notifyInboxItemUpdate"])
244
229
 
245
- onThreadTurnUpdated(tenantId: ID!): ThreadTurnUpdateEvent
246
- @aws_api_key
247
- @aws_cognito_user_pools
248
- @aws_iam
230
+ onThreadTurnUpdated(tenantId: ID!): ThreadTurnUpdateEvent @aws_api_key @aws_cognito_user_pools @aws_iam
249
231
  @aws_subscribe(mutations: ["notifyThreadTurnUpdate"])
250
232
 
251
- onComputerThreadChunk(threadId: ID!): ComputerThreadChunkEvent
252
- @aws_api_key
253
- @aws_cognito_user_pools
254
- @aws_iam
233
+ onComputerThreadChunk(threadId: ID!): ComputerThreadChunkEvent @aws_api_key @aws_cognito_user_pools @aws_iam
255
234
  @aws_subscribe(mutations: ["publishComputerThreadChunk"])
256
235
 
257
- onOrgUpdated(tenantId: ID!): OrgUpdateEvent
258
- @aws_api_key
259
- @aws_cognito_user_pools
260
- @aws_iam
236
+ onOrgUpdated(tenantId: ID!): OrgUpdateEvent @aws_api_key @aws_cognito_user_pools @aws_iam
261
237
  @aws_subscribe(mutations: ["notifyOrgUpdate"])
262
238
 
263
- onCostRecorded(tenantId: ID!): CostRecordedEvent
264
- @aws_api_key
265
- @aws_cognito_user_pools
266
- @aws_iam
239
+ onCostRecorded(tenantId: ID!): CostRecordedEvent @aws_api_key @aws_cognito_user_pools @aws_iam
267
240
  @aws_subscribe(mutations: ["notifyCostRecorded"])
268
241
 
269
- onEvalRunUpdated(tenantId: ID!): EvalRunUpdateEvent
270
- @aws_api_key
271
- @aws_cognito_user_pools
272
- @aws_iam
242
+ onEvalRunUpdated(tenantId: ID!): EvalRunUpdateEvent @aws_api_key @aws_cognito_user_pools @aws_iam
273
243
  @aws_subscribe(mutations: ["notifyEvalRunUpdate"])
274
244
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thinkwork-cli",
3
- "version": "0.12.1",
3
+ "version": "0.12.3",
4
4
  "description": "Thinkwork CLI — deploy, manage, and interact with your Thinkwork stack",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",