@taico/taico 0.2.14 → 0.2.15

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 (84) hide show
  1. package/dist/app.module.js +2 -0
  2. package/dist/app.module.js.map +1 -1
  3. package/dist/executions/active/active-task-execution.controller.d.ts +5 -2
  4. package/dist/executions/active/active-task-execution.controller.js +54 -6
  5. package/dist/executions/active/active-task-execution.controller.js.map +1 -1
  6. package/dist/executions/active/active-task-execution.entity.d.ts +2 -0
  7. package/dist/executions/active/active-task-execution.entity.js +10 -0
  8. package/dist/executions/active/active-task-execution.entity.js.map +1 -1
  9. package/dist/executions/active/active-task-execution.service.d.ts +20 -1
  10. package/dist/executions/active/active-task-execution.service.js +62 -5
  11. package/dist/executions/active/active-task-execution.service.js.map +1 -1
  12. package/dist/executions/active/dto/http/active-task-execution-list-response.dto.d.ts +8 -0
  13. package/dist/executions/active/dto/http/active-task-execution-list-response.dto.js +62 -0
  14. package/dist/executions/active/dto/http/active-task-execution-list-response.dto.js.map +1 -0
  15. package/dist/executions/active/dto/http/active-task-execution-response.dto.d.ts +2 -0
  16. package/dist/executions/active/dto/http/active-task-execution-response.dto.js +11 -0
  17. package/dist/executions/active/dto/http/active-task-execution-response.dto.js.map +1 -1
  18. package/dist/executions/active/dto/http/list-active-executions-query.dto.d.ts +5 -0
  19. package/dist/executions/active/dto/http/list-active-executions-query.dto.js +55 -0
  20. package/dist/executions/active/dto/http/list-active-executions-query.dto.js.map +1 -0
  21. package/dist/executions/active/dto/http/update-execution-stats.dto.d.ts +8 -0
  22. package/dist/executions/active/dto/http/update-execution-stats.dto.js +108 -0
  23. package/dist/executions/active/dto/http/update-execution-stats.dto.js.map +1 -0
  24. package/dist/executions/dto/http/execution-stats-response.dto.d.ts +10 -0
  25. package/dist/executions/dto/http/execution-stats-response.dto.js +87 -0
  26. package/dist/executions/dto/http/execution-stats-response.dto.js.map +1 -0
  27. package/dist/executions/errors/executions.errors.d.ts +3 -0
  28. package/dist/executions/errors/executions.errors.js +7 -1
  29. package/dist/executions/errors/executions.errors.js.map +1 -1
  30. package/dist/executions/executions.module.js +2 -0
  31. package/dist/executions/executions.module.js.map +1 -1
  32. package/dist/executions/history/dto/http/list-history-query.dto.d.ts +5 -0
  33. package/dist/executions/history/dto/http/list-history-query.dto.js +55 -0
  34. package/dist/executions/history/dto/http/list-history-query.dto.js.map +1 -0
  35. package/dist/executions/history/dto/http/task-execution-history-list-response.dto.d.ts +8 -0
  36. package/dist/executions/history/dto/http/task-execution-history-list-response.dto.js +62 -0
  37. package/dist/executions/history/dto/http/task-execution-history-list-response.dto.js.map +1 -0
  38. package/dist/executions/history/dto/http/task-execution-history-response.dto.d.ts +2 -0
  39. package/dist/executions/history/dto/http/task-execution-history-response.dto.js +11 -0
  40. package/dist/executions/history/dto/http/task-execution-history-response.dto.js.map +1 -1
  41. package/dist/executions/history/task-execution-history.controller.d.ts +3 -2
  42. package/dist/executions/history/task-execution-history.controller.js +22 -6
  43. package/dist/executions/history/task-execution-history.controller.js.map +1 -1
  44. package/dist/executions/history/task-execution-history.entity.d.ts +2 -0
  45. package/dist/executions/history/task-execution-history.entity.js +10 -0
  46. package/dist/executions/history/task-execution-history.entity.js.map +1 -1
  47. package/dist/executions/history/task-execution-history.service.d.ts +12 -1
  48. package/dist/executions/history/task-execution-history.service.js +36 -4
  49. package/dist/executions/history/task-execution-history.service.js.map +1 -1
  50. package/dist/executions/history/task-execution-history.service.spec.d.ts +1 -0
  51. package/dist/executions/history/task-execution-history.service.spec.js +132 -0
  52. package/dist/executions/history/task-execution-history.service.spec.js.map +1 -0
  53. package/dist/executions/queue/dto/http/list-queue-query.dto.d.ts +4 -0
  54. package/dist/executions/queue/dto/http/list-queue-query.dto.js +45 -0
  55. package/dist/executions/queue/dto/http/list-queue-query.dto.js.map +1 -0
  56. package/dist/executions/queue/dto/http/task-execution-queue-list-response.dto.d.ts +8 -0
  57. package/dist/executions/queue/dto/http/task-execution-queue-list-response.dto.js +62 -0
  58. package/dist/executions/queue/dto/http/task-execution-queue-list-response.dto.js.map +1 -0
  59. package/dist/executions/queue/task-execution-queue.controller.d.ts +3 -2
  60. package/dist/executions/queue/task-execution-queue.controller.js +18 -6
  61. package/dist/executions/queue/task-execution-queue.controller.js.map +1 -1
  62. package/dist/executions/queue/task-execution-queue.service.d.ts +9 -1
  63. package/dist/executions/queue/task-execution-queue.service.js +8 -2
  64. package/dist/executions/queue/task-execution-queue.service.js.map +1 -1
  65. package/dist/executions/readiness/task-execution-queue-populator.service.d.ts +4 -1
  66. package/dist/executions/readiness/task-execution-queue-populator.service.js +42 -2
  67. package/dist/executions/readiness/task-execution-queue-populator.service.js.map +1 -1
  68. package/dist/executions/readiness/task-execution-queue-populator.service.spec.js +196 -0
  69. package/dist/executions/readiness/task-execution-queue-populator.service.spec.js.map +1 -1
  70. package/dist/executions/stats/execution-stats.entity.d.ts +12 -0
  71. package/dist/executions/stats/execution-stats.entity.js +70 -0
  72. package/dist/executions/stats/execution-stats.entity.js.map +1 -0
  73. package/dist/migrations/1742600000000-AddExecutionStatsTable.d.ts +5 -0
  74. package/dist/migrations/1742600000000-AddExecutionStatsTable.js +36 -0
  75. package/dist/migrations/1742600000000-AddExecutionStatsTable.js.map +1 -0
  76. package/dist/public/assets/index-BDd_IOss.css +1 -0
  77. package/dist/public/assets/index-BwirgFmY.js +73 -0
  78. package/dist/public/index.html +2 -2
  79. package/dist/threads/backends/chat-backend.utils.js +16 -3
  80. package/dist/threads/backends/chat-backend.utils.js.map +1 -1
  81. package/dist/tsconfig.tsbuildinfo +1 -1
  82. package/package.json +6 -5
  83. package/dist/public/assets/index-BFiHpO7T.js +0 -73
  84. package/dist/public/assets/index-N2Ursvu5.css +0 -1
@@ -18,8 +18,8 @@
18
18
  <meta name="apple-mobile-web-app-capable" content="yes" />
19
19
  <meta name="apple-mobile-web-app-status-bar-style" content="default" />
20
20
  <title>taico</title>
21
- <script type="module" crossorigin src="/assets/index-BFiHpO7T.js"></script>
22
- <link rel="stylesheet" crossorigin href="/assets/index-N2Ursvu5.css">
21
+ <script type="module" crossorigin src="/assets/index-BwirgFmY.js"></script>
22
+ <link rel="stylesheet" crossorigin href="/assets/index-BDd_IOss.css">
23
23
  </head>
24
24
 
25
25
  <body>
@@ -10,18 +10,31 @@ function buildThreadScopedInstructions(baseInstructions, threadId, options) {
10
10
  const contextPrefix = options?.useNamespacedToolNames ? 'mcp__context__' : 'context__';
11
11
  return `${baseInstructions}
12
12
 
13
- Thread context:
13
+ # Thread context:
14
14
  - You are working inside thread ${threadId}.
15
15
  - This thread coordinates multiple tasks working toward a shared goal.
16
16
  - Keep your guidance and execution aligned with thread-level context, not just one task.
17
17
 
18
- Operational guidance:
18
+ # Operational guidance:
19
19
  - Use ${tasksPrefix}list_tasks_by_thread with this threadId to understand current subtasks and status.
20
20
  - Use ${contextPrefix}get_thread_state_memory with this threadId to read current shared state memory.
21
21
  - When a task or context block becomes relevant to the thread, attach it using ${tasksPrefix}attach_task_to_thread or ${contextPrefix}attach_block_to_thread.
22
22
  - If a task/block was attached by mistake or is no longer relevant, remove it using ${tasksPrefix}detach_task_from_thread or ${contextPrefix}detach_block_from_thread.
23
23
  - During conversation, when you discover durable cross-task decisions/constraints/risks, update memory via ${contextPrefix}update_block.
24
24
  - If the user asks for updates on a given task, read the task and the memory block to update the user.
25
- - Only write durable shared memory (not ephemeral chat details).`;
25
+ - Only write durable shared memory (not ephemeral chat details).
26
+
27
+ # Creating tasks:
28
+ - Task descriptions should be clear, specific, and actionable.
29
+ - User might not specify a project. If so, list tags that start with \`project:\` and use your judgement to detect relevant tasks. Ask the user to confirm if they want a project tag added to the task or not.
30
+ - Tasks created generally need to be attached to the thread unless you have a reason not to.
31
+ **Pre-Assignment Checklist:**
32
+ 1. **IF** a task is about to be assigned:
33
+ a. Check if it has a \`project:projectName\` tag.
34
+ b. **IF NOT**, list existing \`project:\` tags.
35
+ c. Ask the user: 'Do you want to add a project tag to this task? If so, which one, or should I create a new one?'
36
+ d. Wait for user confirmation/input and add the tag if specified.
37
+ 2. **THEN** proceed with task assignment.
38
+ `;
26
39
  }
27
40
  //# sourceMappingURL=chat-backend.utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"chat-backend.utils.js","sourceRoot":"","sources":["../../../src/threads/backends/chat-backend.utils.ts"],"names":[],"mappings":";;AAEA,sCAEC;AAED,sEAuBC;AA3BD,SAAgB,aAAa,CAAC,OAAe,EAAE,KAAkB;IAC/D,OAAO,IAAI,KAAK,CAAC,WAAW,KAAK,KAAK,CAAC,IAAI,YAAY,OAAO,EAAE,CAAC;AACnE,CAAC;AAED,SAAgB,6BAA6B,CAC3C,gBAAwB,EACxB,QAAgB,EAChB,OAA8C;IAE9C,MAAM,WAAW,GAAG,OAAO,EAAE,sBAAsB,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;IACjF,MAAM,aAAa,GAAG,OAAO,EAAE,sBAAsB,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,WAAW,CAAC;IAEvF,OAAO,GAAG,gBAAgB;;;kCAGM,QAAQ;;;;;QAKlC,WAAW;QACX,aAAa;iFAC4D,WAAW,4BAA4B,aAAa;sFAC/C,WAAW,8BAA8B,aAAa;6GAC/B,aAAa;;iEAEzD,CAAC;AAClE,CAAC"}
1
+ {"version":3,"file":"chat-backend.utils.js","sourceRoot":"","sources":["../../../src/threads/backends/chat-backend.utils.ts"],"names":[],"mappings":";;AAEA,sCAEC;AAED,sEAuCC;AA3CD,SAAgB,aAAa,CAAC,OAAe,EAAE,KAAkB;IAC/D,OAAO,IAAI,KAAK,CAAC,WAAW,KAAK,KAAK,CAAC,IAAI,YAAY,OAAO,EAAE,CAAC;AACnE,CAAC;AAED,SAAgB,6BAA6B,CAC3C,gBAAwB,EACxB,QAAgB,EAChB,OAA8C;IAE9C,MAAM,WAAW,GAAG,OAAO,EAAE,sBAAsB,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;IACjF,MAAM,aAAa,GAAG,OAAO,EAAE,sBAAsB,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,WAAW,CAAC;IAEvF,OAAO,GAAG,gBAAgB;;;kCAGM,QAAQ;;;;;QAKlC,WAAW;QACX,aAAa;iFAC4D,WAAW,4BAA4B,aAAa;sFAC/C,WAAW,8BAA8B,aAAa;6GAC/B,aAAa;;;;;;;;;;;;;;;CAezH,CAAC;AAIF,CAAC"}