Skip to content

Commit 10433f1

Browse files
committed
video resources
1 parent 86e197f commit 10433f1

File tree

58 files changed

+5774
-383
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+5774
-383
lines changed

exercises/01.advanced-tools/01.problem.annotations/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@epic-web/config": "^1.21.0",
1919
"@epic-web/mcp-dev": "*",
2020
"@faker-js/faker": "^9.8.0",
21-
"@modelcontextprotocol/inspector": "^0.15.0",
21+
"@modelcontextprotocol/inspector": "^0.16.0",
2222
"@types/node": "^24.0.3",
2323
"tsx": "^4.20.3",
2424
"typescript": "^5.8.3",

exercises/01.advanced-tools/01.problem.annotations/src/tools.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,6 @@ async function createWrappedVideo({
521521
if (ffmpeg.stderr) {
522522
ffmpeg.stderr.on('data', (data) => {
523523
const str = data.toString()
524-
console.error(str)
525524
const timeMatch = str.match(/time=(\d{2}):(\d{2}):(\d{2})\.(\d{2})/)
526525
if (timeMatch) {
527526
const hours = Number(timeMatch[1])
@@ -531,14 +530,6 @@ async function createWrappedVideo({
531530
const currentSeconds =
532531
hours * 3600 + minutes * 60 + seconds + fraction / 100
533532
const progress = Math.min(currentSeconds / totalDurationSeconds, 1)
534-
console.error({
535-
hours,
536-
minutes,
537-
seconds,
538-
fraction,
539-
currentSeconds,
540-
progress,
541-
})
542533
onProgress(progress)
543534
}
544535
})

exercises/01.advanced-tools/01.solution.annotations/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@epic-web/config": "^1.21.0",
1919
"@epic-web/mcp-dev": "*",
2020
"@faker-js/faker": "^9.8.0",
21-
"@modelcontextprotocol/inspector": "^0.15.0",
21+
"@modelcontextprotocol/inspector": "^0.16.0",
2222
"@types/node": "^24.0.3",
2323
"tsx": "^4.20.3",
2424
"typescript": "^5.8.3",

exercises/01.advanced-tools/01.solution.annotations/src/tools.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,6 @@ async function createWrappedVideo({
548548
if (ffmpeg.stderr) {
549549
ffmpeg.stderr.on('data', (data) => {
550550
const str = data.toString()
551-
console.error(str)
552551
const timeMatch = str.match(/time=(\d{2}):(\d{2}):(\d{2})\.(\d{2})/)
553552
if (timeMatch) {
554553
const hours = Number(timeMatch[1])
@@ -558,14 +557,6 @@ async function createWrappedVideo({
558557
const currentSeconds =
559558
hours * 3600 + minutes * 60 + seconds + fraction / 100
560559
const progress = Math.min(currentSeconds / totalDurationSeconds, 1)
561-
console.error({
562-
hours,
563-
minutes,
564-
seconds,
565-
fraction,
566-
currentSeconds,
567-
progress,
568-
})
569560
onProgress(progress)
570561
}
571562
})

exercises/01.advanced-tools/02.problem.structured/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@epic-web/config": "^1.21.0",
1919
"@epic-web/mcp-dev": "*",
2020
"@faker-js/faker": "^9.8.0",
21-
"@modelcontextprotocol/inspector": "^0.15.0",
21+
"@modelcontextprotocol/inspector": "^0.16.0",
2222
"@types/node": "^24.0.3",
2323
"tsx": "^4.20.3",
2424
"typescript": "^5.8.3",

exercises/01.advanced-tools/02.problem.structured/src/tools.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,6 @@ async function createWrappedVideo({
565565
if (ffmpeg.stderr) {
566566
ffmpeg.stderr.on('data', (data) => {
567567
const str = data.toString()
568-
console.error(str)
569568
const timeMatch = str.match(/time=(\d{2}):(\d{2}):(\d{2})\.(\d{2})/)
570569
if (timeMatch) {
571570
const hours = Number(timeMatch[1])
@@ -575,14 +574,6 @@ async function createWrappedVideo({
575574
const currentSeconds =
576575
hours * 3600 + minutes * 60 + seconds + fraction / 100
577576
const progress = Math.min(currentSeconds / totalDurationSeconds, 1)
578-
console.error({
579-
hours,
580-
minutes,
581-
seconds,
582-
fraction,
583-
currentSeconds,
584-
progress,
585-
})
586577
onProgress(progress)
587578
}
588579
})

exercises/01.advanced-tools/02.solution.structured/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@epic-web/config": "^1.21.0",
1919
"@epic-web/mcp-dev": "*",
2020
"@faker-js/faker": "^9.8.0",
21-
"@modelcontextprotocol/inspector": "^0.15.0",
21+
"@modelcontextprotocol/inspector": "^0.16.0",
2222
"@types/node": "^24.0.3",
2323
"tsx": "^4.20.3",
2424
"typescript": "^5.8.3",

exercises/01.advanced-tools/02.solution.structured/src/tools.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,6 @@ async function createWrappedVideo({
574574
if (ffmpeg.stderr) {
575575
ffmpeg.stderr.on('data', (data) => {
576576
const str = data.toString()
577-
console.error(str)
578577
const timeMatch = str.match(/time=(\d{2}):(\d{2}):(\d{2})\.(\d{2})/)
579578
if (timeMatch) {
580579
const hours = Number(timeMatch[1])
@@ -584,14 +583,6 @@ async function createWrappedVideo({
584583
const currentSeconds =
585584
hours * 3600 + minutes * 60 + seconds + fraction / 100
586585
const progress = Math.min(currentSeconds / totalDurationSeconds, 1)
587-
console.error({
588-
hours,
589-
minutes,
590-
seconds,
591-
fraction,
592-
currentSeconds,
593-
progress,
594-
})
595586
onProgress(progress)
596587
}
597588
})

exercises/02.elicitation/01.problem/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@epic-web/config": "^1.21.0",
1919
"@epic-web/mcp-dev": "*",
2020
"@faker-js/faker": "^9.8.0",
21-
"@modelcontextprotocol/inspector": "^0.15.0",
21+
"@modelcontextprotocol/inspector": "^0.16.0",
2222
"@types/node": "^24.0.3",
2323
"tsx": "^4.20.3",
2424
"typescript": "^5.8.3",

exercises/02.elicitation/01.problem/src/tools.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,6 @@ async function createWrappedVideo({
603603
if (ffmpeg.stderr) {
604604
ffmpeg.stderr.on('data', (data) => {
605605
const str = data.toString()
606-
console.error(str)
607606
const timeMatch = str.match(/time=(\d{2}):(\d{2}):(\d{2})\.(\d{2})/)
608607
if (timeMatch) {
609608
const hours = Number(timeMatch[1])
@@ -613,14 +612,6 @@ async function createWrappedVideo({
613612
const currentSeconds =
614613
hours * 3600 + minutes * 60 + seconds + fraction / 100
615614
const progress = Math.min(currentSeconds / totalDurationSeconds, 1)
616-
console.error({
617-
hours,
618-
minutes,
619-
seconds,
620-
fraction,
621-
currentSeconds,
622-
progress,
623-
})
624615
onProgress(progress)
625616
}
626617
})

0 commit comments

Comments
 (0)