Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/llmz/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "llmz",
"type": "module",
"description": "LLMz - An LLM-native Typescript VM built on top of Zui",
"version": "0.0.80",
"version": "0.0.81",
"types": "./dist/index.d.ts",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/llmz/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export const init = async () => {
await import('./tool.js')
await import('./exit.js')
await import('./jsx.js')
await import('./vm.js')
await import('./vm/index.js')
await import('./utils.js')
await import('./truncator.js')
await import('./typings.js')
Expand Down
2 changes: 1 addition & 1 deletion packages/llmz/src/llmz.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import { truncateWrappedContent } from './truncator.js'
import { Trace } from './types.js'

import { init, stripInvalidIdentifiers } from './utils.js'
import { runAsyncFunction } from './vm.js'
import { runAsyncFunction } from './vm/index.js'

const getErrorMessage = (err: unknown) => (err instanceof Error ? err.message : JSON.stringify(err))

Expand Down
9 changes: 8 additions & 1 deletion packages/llmz/src/quickjs-variant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@ const getVariant = async (): Promise<QuickJSSyncVariant> => {
return module.default as unknown as QuickJSSyncVariant
}

export const BundledReleaseSyncVariant: QuickJSSyncVariant = {
export type QuickJSSyncVariantEx = QuickJSSyncVariant & {
_wasmSource?: any
_wasmLoadedSuccessfully?: any
_wasmSize?: any
_wasmLoadError?: any
}

export const BundledReleaseSyncVariant: QuickJSSyncVariantEx = {
type: 'sync',
importFFI: async () => {
const variant = await getVariant()
Expand Down
Loading
Loading