@tuturuuu/ai 0.15.0 → 0.16.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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tuturuuu/ai",
3
3
  "license": "MIT",
4
- "version": "0.15.0",
4
+ "version": "0.16.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/tutur3u/platform",
@@ -76,9 +76,9 @@
76
76
  "@streamdown/math": "^1.0.2",
77
77
  "@streamdown/mermaid": "^1.0.2",
78
78
  "@tuturuuu/google": "0.1.1",
79
- "@tuturuuu/internal-api": "0.41.0",
79
+ "@tuturuuu/internal-api": "0.43.0",
80
80
  "@tuturuuu/supabase": "0.5.2",
81
- "@tuturuuu/utils": "0.30.0",
81
+ "@tuturuuu/utils": "0.31.0",
82
82
  "@vercel/sandbox": "^3.3.0",
83
83
  "@zernio/chat-sdk-adapter": "^0.5.1",
84
84
  "ai": "^7.0.107",
@@ -105,7 +105,7 @@
105
105
  "zod": "^4.6.2"
106
106
  },
107
107
  "devDependencies": {
108
- "@tuturuuu/types": "0.32.0",
108
+ "@tuturuuu/types": "0.33.0",
109
109
  "@tuturuuu/typescript-config": "0.1.2",
110
110
  "@types/node": "^26.5.1",
111
111
  "@types/qrcode": "^1.5.6",
@@ -83,6 +83,12 @@ export function searchMiraTools(
83
83
  .some((word) => word === term || term === `${word}s`)
84
84
  )
85
85
  );
86
+ const creatingTasks =
87
+ /\b(?:add|create|make)\b.*\btasks?\b|\bnew tasks?\b/.test(query) &&
88
+ !/\b(?:label|assignee|project)\b|\btasks?\s+lists?\b/.test(query);
89
+ const taskCreationPrerequisiteScore: Record<string, number> = creatingTasks
90
+ ? { create_task: 30, list_boards: 28, list_task_lists: 26 }
91
+ : {};
86
92
  const matches = (
87
93
  Object.entries(MIRA_TOOL_DIRECTORY) as [MiraToolName, string][]
88
94
  )
@@ -99,6 +105,7 @@ export function searchMiraTools(
99
105
  const nameWords = normalize(name).split(' ');
100
106
  const score =
101
107
  (normalize(name) === query ? 100 : 0) +
108
+ (taskCreationPrerequisiteScore[name] ?? 0) +
102
109
  terms.reduce(
103
110
  (total, term) =>
104
111
  total +