Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Commit

Permalink
Align differing types for updateCurrentGameState - and update yarn lock
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Gillespie committed Oct 13, 2021
1 parent 6a8e90e commit 8765b52
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 5 deletions.
2 changes: 1 addition & 1 deletion client/src/contexts/ReteProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const Context = createContext({
setGameState: () => {},
getModules: async () => {},
getCurrentGameState: () => ({} as Record<string, unknown>),
updateCurrentGameState: () => new Promise(() => {}) as Promise<void>,
updateCurrentGameState: () => {},
completion: _completion,
enkiCompletion: async (): Promise<{ outputs: string[] }> =>
await new Promise(resolve => {
Expand Down
6 changes: 3 additions & 3 deletions client/src/contexts/SpellProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export type SpellContext = {
currentGameState: {}
getCurrentGameState: () => Record<string, unknown>
rewriteCurrentGameState: () => Record<string, unknown>
updateCurrentGameState: () => void
updateCurrentGameState: () => Promise<Record<string, unknown>>
getThothVersion: () => void
}

Expand All @@ -31,8 +31,8 @@ const Context = createContext({
rewriteCurrentGameState: (): Record<string, unknown> => {
return {}
},
updateCurrentGameState: (): Record<string, unknown> => {
return {}
updateCurrentGameState: (): Promise<Record<string, unknown>> => {
return new Promise(resolve => resolve({}))
},
getThothVersion: () => {},
})
Expand Down
2 changes: 1 addition & 1 deletion core/src/engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export type EngineContext = {
body: ModelCompletionOpts
) => Promise<string | OpenAIResultChoice | undefined>
getCurrentGameState: () => Record<string, unknown>
updateCurrentGameState: () => void
updateCurrentGameState: () => Promise<Record<string, unknown>>
enkiCompletion: (
taskName: string,
inputs: string[]
Expand Down
19 changes: 19 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1476,6 +1476,25 @@
"@types/yargs" "^16.0.0"
chalk "^4.0.0"

"@latitudegames/thoth-core@^0.0.53":
version "0.0.53"
resolved "https://npm.pkg.github.com/download/@latitudegames/thoth-core/0.0.53/50d4cfde0a2f1880c2bf975ae0c7819fd990cbda1f2c95989c257773ffc550c4#b3bced27f7dc4dc8d571716541d2103ad8ec9061"
integrity sha512-KciA1pB6dXOD/MZMSa0t1UOzG2clCii6Ia2klKMYkW/LwVXjPD61Mii9BU2Z0moxeRz4F6Xo5kb5CGHYNzmXyQ==
dependencies:
deep-equal "^2.0.5"
handlebars "^4.7.7"
jsdom "^17.0.0"
path "^0.12.7"
react "^17.0.2"
regenerator-runtime "^0.13.9"
rete "https://github.com/latitudegames/rete.git#master"
rete-area-plugin "^0.2.1"
rete-connection-plugin "^0.9.0"
rete-context-menu-plugin "^0.6.0-rc.1"
rete-module-plugin "^0.4.1"
rete-react-render-plugin "^0.2.1"
uuid "^8.3.2"

"@lerna/[email protected]":
version "4.0.0"
resolved "https://registry.yarnpkg.com/@lerna/add/-/add-4.0.0.tgz#c36f57d132502a57b9e7058d1548b7a565ef183f"
Expand Down

0 comments on commit 8765b52

Please sign in to comment.