Skip to content

Commit 21501e2

Browse files
committed
chore: update
1 parent 02963f4 commit 21501e2

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ EXAMPLES
102102
│[info]:Start Script: ...
103103
```
104104

105-
_See code: [src/commands/run/index.ts](https://github.com/offline-ai/cli-plugin-core.js/blob/v0.9.4/src/commands/run/index.ts)_
105+
_See code: [src/commands/run/index.ts](https://github.com/offline-ai/cli-plugin-core.js/blob/v0.10.0/src/commands/run/index.ts)_
106106
<!-- commandsstop -->
107107

108108
# Credit

src/lib/run-script.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ import {
2323
toDateTime,
2424
wait,
2525
beforeShutdown, shutdown,
26+
EventEmitter,
2627
} from '@isdk/ai-tool'
2728
import { LocalProviderProgressEventName } from '@isdk/ai-tool-llm-local'
29+
// @ts-ignore
2830
import { AIScriptServer, LogLevel, LogLevelMap } from '@isdk/ai-tool-agent'
2931
import { detectTextLanguage as detectLang, detectTextLangEx, getLanguageFromIso6391 } from '@isdk/detect-text-language'
3032
import { prompt, setHistoryStore, HistoryStore } from './prompt.js'
@@ -45,6 +47,16 @@ const YouCharName = 'You:'
4547

4648
const consoleInput = enquier.prompt
4749

50+
51+
export declare namespace AIScriptEx {
52+
let searchPaths: string[]
53+
function loadFile(...args: any[]): any
54+
function getMatchedScriptInfos(...args: any[]): any
55+
}
56+
export interface AIScriptEx extends EventEmitter {
57+
[name: string]: any
58+
}
59+
4860
export class AIScriptEx extends AIScriptServer {
4961
$detectLang(text: string) {
5062
return detectLang(text)

src/oclif/commands/run/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import cj from 'color-json'
22
import {Args, Flags} from '@oclif/core'
33
import { expandPath, parseJsJson } from '@isdk/ai-tool'
4+
// @ts-ignore
45
import { LogLevelMap, logLevel } from '@isdk/ai-tool-agent'
56
import { AICommand, AICommonFlags, colors, showBanner } from '@offline-ai/cli-common'
67

0 commit comments

Comments
 (0)