Skip to content

Commit 3cbdab1

Browse files
committed
add JS target configuration and update API dump
1 parent aa04628 commit 3cbdab1

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

.github/workflows/validate-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
validate-pr:
10-
runs-on: ubuntu-latest
10+
runs-on: macos-latest
1111
name: Validate PR
1212
steps:
1313
- uses: actions/checkout@v4

api/kotlin-sdk.api

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ public synthetic class io/modelcontextprotocol/kotlin/sdk/AudioContent$$serializ
2222
public final fun getDescriptor ()Lkotlinx/serialization/descriptors/SerialDescriptor;
2323
public final fun serialize (Lkotlinx/serialization/encoding/Encoder;Lio/modelcontextprotocol/kotlin/sdk/AudioContent;)V
2424
public synthetic fun serialize (Lkotlinx/serialization/encoding/Encoder;Ljava/lang/Object;)V
25-
public fun typeParametersSerializers ()[Lkotlinx/serialization/KSerializer;
2625
}
2726

2827
public final class io/modelcontextprotocol/kotlin/sdk/AudioContent$Companion {

build.gradle.kts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,16 @@ kotlin {
223223
iosX64()
224224
iosSimulatorArm64()
225225

226+
js(IR) {
227+
nodejs {
228+
testTask {
229+
useMocha {
230+
timeout = "30s"
231+
}
232+
}
233+
}
234+
}
235+
226236
wasmJs {
227237
nodejs()
228238
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package io.modelcontextprotocol.kotlin.sdk.internal
2+
3+
import kotlinx.coroutines.CoroutineDispatcher
4+
import kotlinx.coroutines.Dispatchers
5+
6+
internal actual val IODispatcher: CoroutineDispatcher
7+
get() = Dispatchers.Default

0 commit comments

Comments
 (0)