@fugood/buttress-server 2.25.0 → 2.25.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -16
- package/config/function-samples/README.md +37 -0
- package/config/function-samples/_auth.ts +48 -0
- package/config/function-samples/host-info.ts +25 -0
- package/config/function-samples/summarize-text.ts +55 -0
- package/config/function-samples/text-to-speech.ts +51 -0
- package/config/function-samples/transcribe-media.ts +65 -0
- package/config/sample.toml +16 -0
- package/lib/functions/auth.d.ts +28 -0
- package/lib/functions/config.d.ts +20 -0
- package/lib/functions/constants.d.ts +17 -0
- package/lib/functions/executor.d.ts +27 -0
- package/lib/functions/files.d.ts +29 -0
- package/lib/functions/index.d.ts +50 -0
- package/lib/functions/libs.d.ts +10 -0
- package/lib/functions/loader.d.ts +48 -0
- package/lib/functions/mcp.d.ts +35 -0
- package/lib/functions/registry.d.ts +34 -0
- package/lib/functions/scaffold.d.ts +18 -0
- package/lib/functions/status.d.ts +119 -0
- package/lib/functions/templates.d.ts +14 -0
- package/lib/functions/transpile.d.ts +23 -0
- package/lib/functions/types.d.ts +196 -0
- package/lib/functions/uploads.d.ts +42 -0
- package/lib/functions/watcher.d.ts +34 -0
- package/lib/index.d.ts +9 -2
- package/lib/index.mjs +317 -61
- package/lib/routes/functions.check.d.ts +13 -0
- package/lib/routes/functions.d.ts +16 -0
- package/lib/routes/generator-cache.d.ts +42 -0
- package/lib/routes/index.d.ts +1 -0
- package/lib/routes/llm-shared.d.ts +22 -19
- package/lib/routes/stt-shared.d.ts +36 -0
- package/lib/routes/tts-shared.d.ts +36 -0
- package/lib/services/create-onnx-init-context.d.ts +10 -0
- package/lib/services/onnx-stt.d.ts +1 -1
- package/lib/services/onnx-tts.d.ts +1 -1
- package/lib/types.d.ts +23 -0
- package/lib/utils/functionsAuthGuard.d.ts +12 -0
- package/package.json +13 -2
- package/public/status.html +116 -0
package/lib/index.d.ts
CHANGED
|
@@ -2,8 +2,11 @@ import type { AnyElysia } from 'elysia';
|
|
|
2
2
|
import * as backendCore from '@fugood/buttress-backend-core';
|
|
3
3
|
import { AutodiscoverService } from './autodiscover';
|
|
4
4
|
import type { Config } from './types';
|
|
5
|
+
import type { FunctionsConfig, FunctionsService } from './functions';
|
|
5
6
|
export { startModelDownload } from '@fugood/buttress-backend-core';
|
|
6
7
|
export { processConfig } from './utils/config';
|
|
8
|
+
export { resolveFunctionsConfig } from './functions';
|
|
9
|
+
export type { FunctionsConfig, FunctionsService } from './functions';
|
|
7
10
|
export declare const checkForUpdates: () => Promise<string | null>;
|
|
8
11
|
export declare const compareVersions: (current: string, latest: string) => boolean;
|
|
9
12
|
export declare const logUpdateMessage: (latestVersion: string) => void;
|
|
@@ -15,15 +18,19 @@ export interface StartServerOptions {
|
|
|
15
18
|
config: Config;
|
|
16
19
|
enableOpenAICompat?: boolean;
|
|
17
20
|
enableAnthropicMessages?: boolean;
|
|
21
|
+
/** Resolved `[functions]` config; null/omitted leaves the feature off. */
|
|
22
|
+
functions?: FunctionsConfig | null;
|
|
18
23
|
}
|
|
19
|
-
export declare const createServer: ({ backend, router, config, enableOpenAICompat, enableAnthropicMessages, }: StartServerOptions) => Promise<{
|
|
24
|
+
export declare const createServer: ({ backend, router, config, enableOpenAICompat, enableAnthropicMessages, functions: functionsConfig, }: StartServerOptions) => Promise<{
|
|
20
25
|
app: AnyElysia;
|
|
21
26
|
config: Config;
|
|
27
|
+
functions: FunctionsService | null;
|
|
22
28
|
}>;
|
|
23
|
-
export declare const startServer: ({ backend, router, config, enableOpenAICompat, enableAnthropicMessages, }: StartServerOptions) => Promise<{
|
|
29
|
+
export declare const startServer: ({ backend, router, config, enableOpenAICompat, enableAnthropicMessages, functions: functionsConfig, }: StartServerOptions) => Promise<{
|
|
24
30
|
app: AnyElysia;
|
|
25
31
|
port: number;
|
|
26
32
|
openaiEnabled: boolean;
|
|
27
33
|
anthropicMessagesEnabled: boolean;
|
|
34
|
+
functions: FunctionsService | null;
|
|
28
35
|
autoDiscover: AutodiscoverService | null;
|
|
29
36
|
}>;
|