@udondan/duolingo 2.2.0 → 2.3.0
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/dist/tools/account.d.ts.map +1 -1
- package/dist/tools/account.js +14 -40
- package/dist/tools/account.js.map +1 -1
- package/dist/tools/language.d.ts.map +1 -1
- package/dist/tools/language.js +14 -21
- package/dist/tools/language.js.map +1 -1
- package/dist/tools/shop.d.ts.map +1 -1
- package/dist/tools/shop.js +2 -4
- package/dist/tools/shop.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../src/tools/account.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AA0BzE,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../src/tools/account.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AA0BzE,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CA0O5D"}
|
package/dist/tools/account.js
CHANGED
|
@@ -14,8 +14,7 @@ import { READ_ONLY, reply, ResponseFormatSchema, UsernameFieldSchema, WRITE, } f
|
|
|
14
14
|
export function registerAccountTools(server) {
|
|
15
15
|
server.registerTool('duolingo_get_user_info', {
|
|
16
16
|
title: 'Get Duolingo User Info',
|
|
17
|
-
description:
|
|
18
|
-
'avatar URL, follower/following counts, learning language, UI language, cohort, admin status, and more.',
|
|
17
|
+
description: 'Reads the profile of a Duolingo user (default: the authenticated user): username, full name, bio, location, avatar URL, follower and following counts, learning and UI language, cohort, and more. Use it for who the user is; for the streak use duolingo_get_streak_info, for the courses duolingo_get_courses.',
|
|
19
18
|
inputSchema: {
|
|
20
19
|
username: UsernameFieldSchema,
|
|
21
20
|
response_format: ResponseFormatSchema,
|
|
@@ -24,9 +23,7 @@ export function registerAccountTools(server) {
|
|
|
24
23
|
}, ({ username, response_format }) => reply(() => userInfoView({ username }), response_format));
|
|
25
24
|
server.registerTool('duolingo_get_settings', {
|
|
26
25
|
title: 'Get Duolingo User Settings',
|
|
27
|
-
description: "
|
|
28
|
-
'Returns notification preferences and follow/follower relationship flags. ' +
|
|
29
|
-
'Only works for the authenticated user.',
|
|
26
|
+
description: "Reads the account settings of the authenticated user: notification preferences and follow flags. Changes nothing, and takes no username: other users' settings are not visible. For the profile use duolingo_get_user_info.",
|
|
30
27
|
inputSchema: {
|
|
31
28
|
response_format: ResponseFormatSchema,
|
|
32
29
|
},
|
|
@@ -34,8 +31,7 @@ export function registerAccountTools(server) {
|
|
|
34
31
|
}, ({ response_format }) => reply(settingsView, response_format));
|
|
35
32
|
server.registerTool('duolingo_get_streak_info', {
|
|
36
33
|
title: 'Get Duolingo Streak Info',
|
|
37
|
-
description: "
|
|
38
|
-
'Returns the site-wide streak count, daily XP goal, and whether the streak has been extended today.',
|
|
34
|
+
description: "Reads the streak of a user (default: the authenticated user): current streak in days, daily XP goal, and whether the streak was already extended today. Use it to tell whether a lesson is still needed today; for today's XP and lessons use duolingo_get_daily_xp_progress, for the streak goal and its milestones duolingo_get_streak_goal, for the days with activity duolingo_get_calendar.",
|
|
39
35
|
inputSchema: {
|
|
40
36
|
username: UsernameFieldSchema,
|
|
41
37
|
response_format: ResponseFormatSchema,
|
|
@@ -44,9 +40,7 @@ export function registerAccountTools(server) {
|
|
|
44
40
|
}, ({ username, response_format }) => reply(() => streakInfoView({ username }), response_format));
|
|
45
41
|
server.registerTool('duolingo_get_daily_xp_progress', {
|
|
46
42
|
title: 'Get Duolingo Daily XP Progress',
|
|
47
|
-
description: "
|
|
48
|
-
'Returns the daily XP goal, total XP earned today, and a list of lessons completed today. ' +
|
|
49
|
-
'Only works for the authenticated user.',
|
|
43
|
+
description: "Reads today's XP of the authenticated user: daily goal, XP earned today, and the lessons completed today. The result changes as the user learns. For the streak use duolingo_get_streak_info; for the last two weeks duolingo_get_calendar.",
|
|
50
44
|
inputSchema: {
|
|
51
45
|
response_format: ResponseFormatSchema,
|
|
52
46
|
},
|
|
@@ -54,7 +48,7 @@ export function registerAccountTools(server) {
|
|
|
54
48
|
}, ({ response_format }) => reply(dailyXpProgressView, response_format));
|
|
55
49
|
server.registerTool('duolingo_get_languages', {
|
|
56
50
|
title: 'Get Duolingo Learning Languages',
|
|
57
|
-
description:
|
|
51
|
+
description: "Lists the language courses a user (default: the authenticated user) learns, as full names like 'French' or, with `abbreviations`, as codes like 'fr', which most language tools take. Languages only: for all courses, Math, Chess and Music too, with XP use duolingo_get_courses.",
|
|
58
52
|
inputSchema: {
|
|
59
53
|
username: UsernameFieldSchema,
|
|
60
54
|
abbreviations: z
|
|
@@ -67,9 +61,7 @@ export function registerAccountTools(server) {
|
|
|
67
61
|
}, ({ username, abbreviations, response_format }) => reply(() => languagesView({ username, abbreviations }), response_format));
|
|
68
62
|
server.registerTool('duolingo_get_friends', {
|
|
69
63
|
title: 'Get Duolingo Friends',
|
|
70
|
-
description: '
|
|
71
|
-
"Returns each friend's username, display name, and total XP. " +
|
|
72
|
-
'Only works for the authenticated user.',
|
|
64
|
+
description: 'Lists the users the authenticated user follows, each with username, display name and total XP. Takes no username. To rank them by XP of this week or month use duolingo_get_leaderboard; for one of them in detail duolingo_get_user_info with their username.',
|
|
73
65
|
inputSchema: {
|
|
74
66
|
response_format: ResponseFormatSchema,
|
|
75
67
|
},
|
|
@@ -77,11 +69,7 @@ export function registerAccountTools(server) {
|
|
|
77
69
|
}, ({ response_format }) => reply(friendsView, response_format));
|
|
78
70
|
server.registerTool('duolingo_get_calendar', {
|
|
79
71
|
title: 'Get Duolingo Activity Calendar',
|
|
80
|
-
description:
|
|
81
|
-
'Returns all recent activity entries, sorted newest first. ' +
|
|
82
|
-
'The Duolingo API provides roughly the last 2 weeks of activity. ' +
|
|
83
|
-
'Note: the calendar reflects the currently selected course only ' +
|
|
84
|
-
'(e.g. Spanish, Math, Chess) — not all courses combined.',
|
|
72
|
+
description: 'Lists the recent activity of a user (default: the authenticated user), newest first: each entry with time, XP and, where reported, skill and event type, for about the last two weeks, as far as Duolingo keeps them. Covers only the active course (like Spanish, Math or Chess), not all courses. Use it to see on which days the user learned; for today alone use duolingo_get_daily_xp_progress.',
|
|
85
73
|
inputSchema: {
|
|
86
74
|
username: UsernameFieldSchema,
|
|
87
75
|
response_format: ResponseFormatSchema,
|
|
@@ -90,9 +78,7 @@ export function registerAccountTools(server) {
|
|
|
90
78
|
}, ({ username, response_format }) => reply(() => calendarView({ username }), response_format));
|
|
91
79
|
server.registerTool('duolingo_get_leaderboard', {
|
|
92
80
|
title: 'Get Duolingo Leaderboard',
|
|
93
|
-
description:
|
|
94
|
-
'Returns the users they follow, sorted by XP for the given time unit (week or month). ' +
|
|
95
|
-
'Only works for the authenticated user.',
|
|
81
|
+
description: 'Ranks the users the authenticated user follows by the XP they earned this `unit` (week or month), highest first. Takes no username; the ranking changes as they learn. For the list of friends with total XP use duolingo_get_friends.',
|
|
96
82
|
inputSchema: {
|
|
97
83
|
unit: z
|
|
98
84
|
.enum(['week', 'month'])
|
|
@@ -104,9 +90,7 @@ export function registerAccountTools(server) {
|
|
|
104
90
|
}, ({ unit, response_format }) => reply(() => leaderboardView({ unit }), response_format));
|
|
105
91
|
server.registerTool('duolingo_get_courses', {
|
|
106
92
|
title: 'Get Duolingo Courses',
|
|
107
|
-
description: '
|
|
108
|
-
"like Math, Chess, and Music. Returns each course's subject, title, XP earned, " +
|
|
109
|
-
'and course ID. Language courses also include the language code.',
|
|
93
|
+
description: 'Lists all courses a user (default: the authenticated user) is enrolled in, including Math, Chess and Music: subject, title, XP earned and course id, and for language courses the language code and the language it is taught in. Use it for an overview of all courses, or to find the course to pass to duolingo_switch_course; for language names only use duolingo_get_languages.',
|
|
110
94
|
inputSchema: {
|
|
111
95
|
username: UsernameFieldSchema,
|
|
112
96
|
response_format: ResponseFormatSchema,
|
|
@@ -115,10 +99,7 @@ export function registerAccountTools(server) {
|
|
|
115
99
|
}, ({ username, response_format }) => reply(() => coursesView({ username }), response_format));
|
|
116
100
|
server.registerTool('duolingo_switch_course', {
|
|
117
101
|
title: 'Switch Duolingo Course',
|
|
118
|
-
description: "
|
|
119
|
-
'Duolingo only returns topics, skills and words of the active course, so switch first to read another course. ' +
|
|
120
|
-
'This changes the account: the Duolingo apps and website continue with the new course. ' +
|
|
121
|
-
'Only call this when the user asks to switch courses or agrees to it.',
|
|
102
|
+
description: "Switches the authenticated user's active course to another language course they are enrolled in. Duolingo returns topics, skills and words only for the active course, so switch first to read another one with the topic tools. This changes the account: the Duolingo apps and website continue with the new course. Switching back undoes it. Find the courses with duolingo_get_courses. Call it only when the user asks to switch or agrees to it. Returns the new active course.",
|
|
122
103
|
inputSchema: {
|
|
123
104
|
language_abbr: z
|
|
124
105
|
.string()
|
|
@@ -137,9 +118,7 @@ export function registerAccountTools(server) {
|
|
|
137
118
|
}, ({ language_abbr, from_language, response_format }) => reply(() => switchCourseView({ language_abbr, from_language }), response_format));
|
|
138
119
|
server.registerTool('duolingo_get_shop_items', {
|
|
139
120
|
title: 'Get Duolingo Shop Items',
|
|
140
|
-
description: '
|
|
141
|
-
'their prices, currency type (gems/lingots), item type, and last-used dates. ' +
|
|
142
|
-
'This is read-only — it does not purchase anything.',
|
|
121
|
+
description: 'Lists the Duolingo shop catalogue: each item with name, type, price and currency (gems or lingots), and when the user last used it. Only reads, never buys. For the balance to pay with use duolingo_get_currencies.',
|
|
143
122
|
inputSchema: {
|
|
144
123
|
response_format: ResponseFormatSchema,
|
|
145
124
|
},
|
|
@@ -147,9 +126,7 @@ export function registerAccountTools(server) {
|
|
|
147
126
|
}, ({ response_format }) => reply(shopItemsView, response_format));
|
|
148
127
|
server.registerTool('duolingo_get_health', {
|
|
149
128
|
title: 'Get Duolingo Health (Hearts)',
|
|
150
|
-
description:
|
|
151
|
-
'Returns heart count, max hearts, refill eligibility, and time until next heart refill. ' +
|
|
152
|
-
'Only works for the authenticated user.',
|
|
129
|
+
description: 'Reads the hearts of the authenticated user: current and maximum hearts, whether a refill is possible, and the time until the next heart. Use it to tell whether the user can start a lesson now; for gems use duolingo_get_currencies.',
|
|
153
130
|
inputSchema: {
|
|
154
131
|
response_format: ResponseFormatSchema,
|
|
155
132
|
},
|
|
@@ -157,8 +134,7 @@ export function registerAccountTools(server) {
|
|
|
157
134
|
}, ({ response_format }) => reply(healthView, response_format));
|
|
158
135
|
server.registerTool('duolingo_get_currencies', {
|
|
159
136
|
title: 'Get Duolingo Currency Balances',
|
|
160
|
-
description:
|
|
161
|
-
'Only works for the authenticated user.',
|
|
137
|
+
description: 'Reads the gem and lingot balances of the authenticated user. Takes no username. For what they buy use duolingo_get_shop_items; for hearts duolingo_get_health.',
|
|
162
138
|
inputSchema: {
|
|
163
139
|
response_format: ResponseFormatSchema,
|
|
164
140
|
},
|
|
@@ -166,9 +142,7 @@ export function registerAccountTools(server) {
|
|
|
166
142
|
}, ({ response_format }) => reply(currenciesView, response_format));
|
|
167
143
|
server.registerTool('duolingo_get_streak_goal', {
|
|
168
144
|
title: 'Get Duolingo Streak Goal',
|
|
169
|
-
description:
|
|
170
|
-
'Shows the last completed goal, upcoming milestones, and the next selected goal. ' +
|
|
171
|
-
'Only works for the authenticated user.',
|
|
145
|
+
description: 'Reads the streak goal of the authenticated user: the last goal reached, the upcoming milestones (checkpoints in days), and the next goal selected. For the current streak use duolingo_get_streak_info.',
|
|
172
146
|
inputSchema: {
|
|
173
147
|
response_format: ResponseFormatSchema,
|
|
174
148
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../src/tools/account.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,WAAW,EACX,cAAc,EACd,UAAU,EACV,aAAa,EACb,aAAa,EACb,gBAAgB,GACjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,cAAc,EACd,cAAc,GACf,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,EACL,SAAS,EACT,KAAK,EACL,oBAAoB,EACpB,mBAAmB,EACnB,KAAK,GACN,MAAM,cAAc,CAAC;AAEtB,MAAM,UAAU,oBAAoB,CAAC,MAAiB;IACpD,MAAM,CAAC,YAAY,CACjB,wBAAwB,EACxB;QACE,KAAK,EAAE,wBAAwB;QAC/B,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../src/tools/account.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,WAAW,EACX,cAAc,EACd,UAAU,EACV,aAAa,EACb,aAAa,EACb,gBAAgB,GACjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,cAAc,EACd,cAAc,GACf,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,EACL,SAAS,EACT,KAAK,EACL,oBAAoB,EACpB,mBAAmB,EACnB,KAAK,GACN,MAAM,cAAc,CAAC;AAEtB,MAAM,UAAU,oBAAoB,CAAC,MAAiB;IACpD,MAAM,CAAC,YAAY,CACjB,wBAAwB,EACxB;QACE,KAAK,EAAE,wBAAwB;QAC/B,WAAW,EACT,mTAAmT;QACrT,WAAW,EA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AC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"language.d.ts","sourceRoot":"","sources":["../../src/tools/language.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"language.d.ts","sourceRoot":"","sources":["../../src/tools/language.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAoFzE,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CA0G7D"}
|
package/dist/tools/language.js
CHANGED
|
@@ -13,60 +13,56 @@ const LanguageAbbrSchema = z
|
|
|
13
13
|
.string()
|
|
14
14
|
.min(2)
|
|
15
15
|
.max(5)
|
|
16
|
-
.describe("
|
|
16
|
+
.describe("Abbreviation of a language the user learns, like 'fr' for French or 'es' for Spanish, as duolingo_get_languages lists them with `abbreviations`.");
|
|
17
17
|
const OptionalLanguageAbbrSchema = z
|
|
18
18
|
.string()
|
|
19
19
|
.min(2)
|
|
20
20
|
.max(5)
|
|
21
21
|
.optional()
|
|
22
|
-
.describe("
|
|
22
|
+
.describe("Abbreviation of the language, like 'fr'. Default: the first course of the authenticated user.");
|
|
23
23
|
/** Tools that take a language and an optional username. */
|
|
24
24
|
const LANGUAGE_QUERY_TOOLS = [
|
|
25
25
|
[
|
|
26
26
|
'duolingo_get_known_topics',
|
|
27
27
|
'Get Duolingo Known Topics',
|
|
28
|
-
|
|
28
|
+
"Lists the names of the topics (skills) the user has learned in one language, sorted alphabetically: names only. Use it for a quick list of what was covered; for the skills with strength and progress use duolingo_get_learned_skills, for the topics not started duolingo_get_unknown_topics, and to split the learned ones into mastered and in need of review duolingo_get_golden_topics and duolingo_get_reviewable_topics. Courses on the learning path report skills only for the authenticated user's active course: switch with duolingo_switch_course to read another.",
|
|
29
29
|
knownTopicsView,
|
|
30
30
|
],
|
|
31
31
|
[
|
|
32
32
|
'duolingo_get_unknown_topics',
|
|
33
33
|
'Get Duolingo Unknown Topics',
|
|
34
|
-
|
|
34
|
+
"Lists the names of the topics (skills) of one language that the user has not learned yet, sorted alphabetically. Use it to see what is still ahead in the course; the learned ones are in duolingo_get_known_topics. Courses on the learning path report skills only for the authenticated user's active course: switch with duolingo_switch_course to read another.",
|
|
35
35
|
unknownTopicsView,
|
|
36
36
|
],
|
|
37
37
|
[
|
|
38
38
|
'duolingo_get_golden_topics',
|
|
39
39
|
'Get Duolingo Golden (Mastered) Topics',
|
|
40
|
-
|
|
41
|
-
'A golden topic has a strength of 1.0 (fully reviewed).',
|
|
40
|
+
"Lists the names of the learned topics (skills) of one language that are fully mastered (golden, strength 1.0, nothing to review), sorted alphabetically. The learned topics that still need review are in duolingo_get_reviewable_topics; together they make up duolingo_get_known_topics. Courses on the learning path report skills only for the authenticated user's active course: switch with duolingo_switch_course to read another.",
|
|
42
41
|
goldenTopicsView,
|
|
43
42
|
],
|
|
44
43
|
[
|
|
45
44
|
'duolingo_get_reviewable_topics',
|
|
46
45
|
'Get Duolingo Reviewable Topics',
|
|
47
|
-
|
|
48
|
-
'These are topics that have been started but whose strength is below 1.0, meaning they need review.',
|
|
46
|
+
"Lists the names of the learned topics (skills) of one language whose strength is below 1.0, so practice would refresh them, sorted alphabetically. Use it to suggest what to review; for the strength of each skill use duolingo_get_learned_skills, for the mastered ones duolingo_get_golden_topics. Courses on the learning path report skills only for the authenticated user's active course: switch with duolingo_switch_course to read another.",
|
|
49
47
|
reviewableTopicsView,
|
|
50
48
|
],
|
|
51
49
|
[
|
|
52
50
|
'duolingo_get_known_words',
|
|
53
51
|
'Get Duolingo Known Words',
|
|
54
|
-
|
|
52
|
+
"Lists the words (lexemes) the user has learned in one language, without duplicates and sorted alphabetically; it can be several hundred words. Use it for vocabulary, for example to build practice sentences from known words; for topics use duolingo_get_known_topics. On learning-path courses the words come from the authenticated user's active course: switch with duolingo_switch_course to read another.",
|
|
55
53
|
knownWordsView,
|
|
56
54
|
],
|
|
57
55
|
[
|
|
58
56
|
'duolingo_get_learned_skills',
|
|
59
57
|
'Get Duolingo Learned Skills',
|
|
60
|
-
|
|
61
|
-
'Returns detailed skill data including title, strength, progress, words, and more.',
|
|
58
|
+
"Returns the learned skills of one language as full objects in the order they were learned: title, strength (0 to 1), progress in percent, words, and more. The most detailed and largest of the topic tools: for names only use duolingo_get_known_topics, for the weak ones duolingo_get_reviewable_topics. Courses on the learning path report skills only for the authenticated user's active course: switch with duolingo_switch_course to read another.",
|
|
62
59
|
learnedSkillsView,
|
|
63
60
|
],
|
|
64
61
|
];
|
|
65
62
|
export function registerLanguageTools(server) {
|
|
66
63
|
server.registerTool('duolingo_get_language_details', {
|
|
67
64
|
title: 'Get Duolingo Language Details',
|
|
68
|
-
description: "
|
|
69
|
-
'Returns level, points, streak, and learning status for the given language.',
|
|
65
|
+
description: "Reads the status of one language for a user, by its full name like 'French': level, points (XP), streak and whether it is the language being learned now. Fails while the active course is not a language course, like Math. Takes the full name; for the abbreviation use duolingo_get_abbreviation_of. For percent to the next level, fluency and skill counts use duolingo_get_language_progress; for all courses at once duolingo_get_courses.",
|
|
70
66
|
inputSchema: {
|
|
71
67
|
language_name: z
|
|
72
68
|
.string()
|
|
@@ -79,8 +75,7 @@ export function registerLanguageTools(server) {
|
|
|
79
75
|
}, ({ language_name, username, response_format }) => reply(() => languageDetailsView({ language_name, username }), response_format));
|
|
80
76
|
server.registerTool('duolingo_get_language_progress', {
|
|
81
77
|
title: 'Get Duolingo Language Progress',
|
|
82
|
-
description:
|
|
83
|
-
'Returns level, percent to next level, points rank, fluency score, skills learned, and more.',
|
|
78
|
+
description: "Reads detailed progress of the authenticated user in one language, by abbreviation like 'fr': level, percent and points to the next level, fluency score, number of skills learned out of all, and more. Use it to report how far a course is; for level and streak of another user use duolingo_get_language_details, for which topics are done duolingo_get_known_topics.",
|
|
84
79
|
inputSchema: {
|
|
85
80
|
language_abbr: LanguageAbbrSchema,
|
|
86
81
|
response_format: ResponseFormatSchema,
|
|
@@ -101,8 +96,7 @@ export function registerLanguageTools(server) {
|
|
|
101
96
|
}
|
|
102
97
|
server.registerTool('duolingo_get_language_voices', {
|
|
103
98
|
title: 'Get Duolingo Language TTS Voices',
|
|
104
|
-
description:
|
|
105
|
-
'Returns a list of voice names.',
|
|
99
|
+
description: "Lists the text-to-speech voice names Duolingo has for one language, like 'mathieu'. Reads them from a practice session it requests but never starts or completes, and caches them while the server runs. The language defaults to the first course of the authenticated user. Use the names as `voice` of duolingo_get_audio_url. Empty if Duolingo reports none.",
|
|
106
100
|
inputSchema: {
|
|
107
101
|
language_abbr: OptionalLanguageAbbrSchema,
|
|
108
102
|
response_format: ResponseFormatSchema,
|
|
@@ -111,8 +105,7 @@ export function registerLanguageTools(server) {
|
|
|
111
105
|
}, ({ language_abbr, response_format }) => reply(() => languageVoicesView({ language_abbr }), response_format));
|
|
112
106
|
server.registerTool('duolingo_get_audio_url', {
|
|
113
107
|
title: 'Get Duolingo Word Audio URL',
|
|
114
|
-
description:
|
|
115
|
-
'Returns a CloudFront CDN URL pointing to the TTS audio file.',
|
|
108
|
+
description: "Builds the URL of the Duolingo text-to-speech audio of a word or phrase, on Duolingo's CDN, which plays without a login. Does not download the audio or check that it exists. Without `voice` it picks a random voice of duolingo_get_language_voices, so the result varies; with `random` false and no voice, the URL has no voice. The language defaults to the first course of the authenticated user. Returns the URL as text.",
|
|
116
109
|
inputSchema: {
|
|
117
110
|
word: z
|
|
118
111
|
.string()
|
|
@@ -122,11 +115,11 @@ export function registerLanguageTools(server) {
|
|
|
122
115
|
voice: z
|
|
123
116
|
.string()
|
|
124
117
|
.optional()
|
|
125
|
-
.describe("
|
|
118
|
+
.describe("Voice name from duolingo_get_language_voices, like 'mathieu'. Default: see `random`."),
|
|
126
119
|
random: z
|
|
127
120
|
.boolean()
|
|
128
121
|
.default(true)
|
|
129
|
-
.describe(
|
|
122
|
+
.describe('Without `voice`: true picks a random voice of the language, false builds the URL without a voice. Ignored when `voice` is given.'),
|
|
130
123
|
},
|
|
131
124
|
annotations: { ...READ_ONLY, idempotentHint: false },
|
|
132
125
|
}, ({ word, language_abbr, voice, random }) => reply(() => audioUrlView({ word, language_abbr, voice, random })));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"language.js","sourceRoot":"","sources":["../../src/tools/language.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,GAElB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,SAAS,EACT,KAAK,EACL,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,cAAc,CAAC;AAEtB,MAAM,kBAAkB,GAAG,CAAC;KACzB,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,CAAC;KACN,GAAG,CAAC,CAAC,CAAC;KACN,QAAQ,
|
|
1
|
+
{"version":3,"file":"language.js","sourceRoot":"","sources":["../../src/tools/language.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,GAElB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,SAAS,EACT,KAAK,EACL,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,cAAc,CAAC;AAEtB,MAAM,kBAAkB,GAAG,CAAC;KACzB,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,CAAC;KACN,GAAG,CAAC,CAAC,CAAC;KACN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AAK,EAAE,6BAA6B;QACpC,WAAW,EACT,oaAAoa;QACta,WAAW,EAAE;YACX,IAAI,EAAE,CAAC;iBACJ,MAAM,EAAE;iBACR,GAAG,CAAC,CAAC,CAAC;iBACN,QAAQ,CACP,2DAA2D,CAC5D;YACH,aAAa,EAAE,0BAA0B;YACzC,KAAK,EAAE,CAAC;iBACL,MAAM,EAAE;iBACR,QAAQ,EAAE;iBACV,QAAQ,CACP,sFAAsF,CACvF;YACH,MAAM,EAAE,CAAC;iBACN,OAAO,EAAE;iBACT,OAAO,CAAC,IAAI,CAAC;iBACb,QAAQ,CACP,kIAAkI,CACnI;SACJ;QACD,WAAW,EAAE,EAAE,GAAG,SAAS,EAAE,cAAc,EAAE,KAAK,EAAE;KACrD,EACD,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,CACzC,KAAK,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC,CACpE,CAAC;AACJ,CAAC"}
|
package/dist/tools/shop.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shop.d.ts","sourceRoot":"","sources":["../../src/tools/shop.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAIzE,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"shop.d.ts","sourceRoot":"","sources":["../../src/tools/shop.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAIzE,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CA2CzD"}
|
package/dist/tools/shop.js
CHANGED
|
@@ -9,8 +9,7 @@ import { READ_ONLY, reply, UsernameFieldSchema } from './helpers.js';
|
|
|
9
9
|
export function registerShopTools(server) {
|
|
10
10
|
server.registerTool('duolingo_get_language_from_abbr', {
|
|
11
11
|
title: 'Get Duolingo Language Name from Abbreviation',
|
|
12
|
-
description:
|
|
13
|
-
'Only works for languages the given user is currently learning.',
|
|
12
|
+
description: "Converts a language abbreviation like 'fr' to the course name, like 'French'. Looks only at the courses of the given user (default: the authenticated user) and fails for languages the user does not learn. For the reverse use duolingo_get_abbreviation_of; for all languages of the user at once duolingo_get_languages. Returns the name as text.",
|
|
14
13
|
inputSchema: {
|
|
15
14
|
language_abbr: z
|
|
16
15
|
.string()
|
|
@@ -23,8 +22,7 @@ export function registerShopTools(server) {
|
|
|
23
22
|
}, ({ language_abbr, username }) => reply(() => languageFromAbbrView({ language_abbr, username })));
|
|
24
23
|
server.registerTool('duolingo_get_abbreviation_of', {
|
|
25
24
|
title: 'Get Duolingo Language Abbreviation',
|
|
26
|
-
description:
|
|
27
|
-
'Only works for languages the given user is currently learning.',
|
|
25
|
+
description: "Converts a language name like 'French' to its abbreviation, like 'fr', which most language tools take as `language_abbr`. Looks only at the courses of the given user (default: the authenticated user) and fails for languages the user does not learn. For the reverse use duolingo_get_language_from_abbr. Returns the abbreviation as text.",
|
|
28
26
|
inputSchema: {
|
|
29
27
|
language_name: z
|
|
30
28
|
.string()
|
package/dist/tools/shop.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shop.js","sourceRoot":"","sources":["../../src/tools/shop.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC7E,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAErE,MAAM,UAAU,iBAAiB,CAAC,MAAiB;IACjD,MAAM,CAAC,YAAY,CACjB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