thinkwork-cli 0.11.0 → 0.12.1

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.
@@ -253,12 +253,13 @@ locals {
253
253
  # the routine-approval-callback function name in the SFN execution
254
254
  # input so the inbox_approval recipe can fanout to it on .waitForTaskToken.
255
255
  "job-trigger" = {
256
- AWS_ACCOUNT_ID = var.account_id
257
- ROUTINE_APPROVAL_CALLBACK_FUNCTION_NAME = "thinkwork-${var.stage}-api-routine-approval-callback"
258
- EMAIL_SEND_FUNCTION_NAME = "thinkwork-${var.stage}-api-email-send"
259
- ROUTINE_TASK_PYTHON_FUNCTION_NAME = "thinkwork-${var.stage}-api-routine-task-python"
260
- ADMIN_OPS_MCP_FUNCTION_NAME = "thinkwork-${var.stage}-api-admin-ops-mcp"
261
- SLACK_SEND_FUNCTION_NAME = "thinkwork-${var.stage}-api-slack-send"
256
+ AWS_ACCOUNT_ID = var.account_id
257
+ ROUTINE_APPROVAL_CALLBACK_FUNCTION_NAME = "thinkwork-${var.stage}-api-routine-approval-callback"
258
+ EMAIL_SEND_FUNCTION_NAME = "thinkwork-${var.stage}-api-email-send"
259
+ ROUTINE_TASK_PYTHON_FUNCTION_NAME = "thinkwork-${var.stage}-api-routine-task-python"
260
+ ADMIN_OPS_MCP_FUNCTION_NAME = "thinkwork-${var.stage}-api-admin-ops-mcp"
261
+ SLACK_SEND_FUNCTION_NAME = "thinkwork-${var.stage}-api-slack-send"
262
+ THREAD_IDLE_MEMORY_LEARNING_FUNCTION_NAME = "thinkwork-${var.stage}-api-thread-idle-memory-learning"
262
263
  }
263
264
  # Phase 3 U4 Compliance outbox drainer.
264
265
  # Connects to Aurora as the compliance_drainer role (provisioned in
@@ -307,6 +308,7 @@ resource "aws_lambda_function" "handler" {
307
308
  "budgets",
308
309
  "guardrails",
309
310
  "scheduled-jobs",
311
+ "thread-idle-memory-learning",
310
312
  "job-schedule-manager",
311
313
  "job-trigger",
312
314
  "routine-task-weather-email",
@@ -535,6 +535,10 @@ resource "aws_iam_role_policy" "lambda_api_cross_invoke" {
535
535
  # decision. Calls SendTaskSuccess/SendTaskFailure on the SFN
536
536
  # task token; idempotent on already-consumed tokens.
537
537
  "arn:aws:lambda:${var.region}:${var.account_id}:function:thinkwork-${var.stage}-api-routine-resume",
538
+ # thread-idle-memory-learning: job-trigger invokes this
539
+ # RequestResponse after a 15-minute requester-thread idle timer
540
+ # passes its stale guard.
541
+ "arn:aws:lambda:${var.region}:${var.account_id}:function:thinkwork-${var.stage}-api-thread-idle-memory-learning",
538
542
  # workspace-files-efs: workspace-files invokes this (RequestResponse)
539
543
  # for Computer-target list/get to bypass the computer_tasks queue
540
544
  # and read EFS directly. Standalone resource below.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thinkwork-cli",
3
- "version": "0.11.0",
3
+ "version": "0.12.1",
4
4
  "description": "Thinkwork CLI — deploy, manage, and interact with your Thinkwork stack",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",