Skip to content

Commit

Permalink
1.0.39 (#43)
Browse files Browse the repository at this point in the history
* 1.0.39

* 1.0.39

* wip

* misc

* Update ActorOptTest.kt

* misc

* misc

* fixes

* AWSSDK2

* FailedToImplementException

* Update DataStorage.kt

* wip
  • Loading branch information
acharneski authored Nov 26, 2023
1 parent d68f0ff commit 21f5894
Show file tree
Hide file tree
Showing 58 changed files with 1,354 additions and 1,583 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,18 @@ Maven:
<dependency>
<groupId>com.simiacryptus</groupId>
<artifactId>skyenet-webui</artifactId>
<version>1.0.38</version>
<version>1.0.39</version>
</dependency>
```

Gradle:

```groovy
implementation group: 'com.simiacryptus', name: 'skyenet', version: '1.0.38'
implementation group: 'com.simiacryptus', name: 'skyenet', version: '1.0.39'
```

```kotlin
implementation("com.simiacryptus:skyenet:1.0.38")
implementation("com.simiacryptus:skyenet:1.0.39")
```

### 🌟 To Use
Expand Down
19 changes: 12 additions & 7 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,19 @@ kotlin {

val junit_version = "5.10.1"
val logback_version = "1.4.11"
val jackson_version = "2.15.3"

dependencies {

implementation(group = "com.simiacryptus", name = "jo-penai", version = "1.0.35")
implementation(group = "com.simiacryptus", name = "jo-penai", version = "1.0.36")

implementation(group = "org.slf4j", name = "slf4j-api", version = "2.0.9")
implementation(group = "commons-io", name = "commons-io", version = "2.15.0")

implementation(group = "com.fasterxml.jackson.core", name = "jackson-databind", version = jackson_version)
implementation(group = "com.fasterxml.jackson.core", name = "jackson-annotations", version = jackson_version)
implementation(group = "com.fasterxml.jackson.module", name = "jackson-module-kotlin", version = jackson_version)

compileOnlyApi(kotlin("stdlib"))
implementation(group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-core", version = "1.7.3")
testImplementation(kotlin("stdlib"))
Expand All @@ -46,16 +51,16 @@ dependencies {
compileOnlyApi(group = "org.junit.jupiter", name = "junit-jupiter-api", version = junit_version)
compileOnlyApi(group = "org.junit.jupiter", name = "junit-jupiter-engine", version = junit_version)

compileOnlyApi(group = "com.google.cloud", name = "google-cloud-texttospeech", version = "2.28.0")
compileOnlyApi(group = "com.amazonaws", name = "aws-java-sdk", version = "1.12.587")
compileOnlyApi(platform("software.amazon.awssdk:bom:2.21.29"))
compileOnlyApi(group = "software.amazon.awssdk", name = "aws-sdk-java", version = "2.21.9")
testImplementation(platform("software.amazon.awssdk:bom:2.21.29"))
testImplementation(group = "software.amazon.awssdk", name = "aws-sdk-java", version = "2.21.9")

compileOnlyApi(group = "ch.qos.logback", name = "logback-classic", version = logback_version)
compileOnlyApi(group = "ch.qos.logback", name = "logback-core", version = logback_version)

testImplementation(group = "com.google.cloud", name = "google-cloud-texttospeech", version = "2.28.0")
testImplementation(group = "com.amazonaws", name = "aws-java-sdk", version = "1.12.587")
testImplementation(group = "ch.qos.logback", name = "logback-classic", version = logback_version)
testImplementation(group = "ch.qos.logback", name = "logback-core", version = logback_version)
//mockito

testImplementation(group = "org.mockito", name = "mockito-core", version = "5.7.0")

}
Expand Down
216 changes: 0 additions & 216 deletions core/src/main/kotlin/com/simiacryptus/skyenet/core/Brain.kt

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package com.simiacryptus.skyenet.core

interface Heart {
interface Interpreter {

fun getLanguage(): String
fun symbols() : Map<String, Any>
fun run(code: String): Any?
fun validate(code: String): Throwable?

Expand All @@ -18,7 +19,7 @@ interface Heart {
fun square(x: Int): Int
}
@JvmStatic
fun test(factory: java.util.function.Function<Map<String, Any>, Heart>) {
fun test(factory: java.util.function.Function<Map<String, Any>, Interpreter>) {
val testImpl = object : TestInterface {
override fun square(x: Int): Int = x * x
}
Expand Down
69 changes: 0 additions & 69 deletions core/src/main/kotlin/com/simiacryptus/skyenet/core/Mouth.kt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ import com.simiacryptus.skyenet.core.util.JsonFunctionRecorder
import java.io.File

open class ActorSystem<T:Enum<*>>(
private val actors: Map<T, BaseActor<*>>,
private val actors: Map<T, BaseActor<*,*>>,
val dataStorage: DataStorage,
val user: User?,
val session: Session
) {
private val sessionDir = dataStorage.getSessionDir(user, session)
fun getActor(actor: T): BaseActor<*> {
fun getActor(actor: T): BaseActor<*,*> {
val wrapper = getWrapper(actor.name)
return when (val baseActor = actors[actor]) {
null -> throw RuntimeException("No actor for $actor")
Expand Down
Loading

0 comments on commit 21f5894

Please sign in to comment.