@crewx/sdk 0.9.0-rc.65 → 0.9.0-rc.67
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/dist/config/global-settings.d.ts +14 -0
- package/dist/esm/index.js +99 -92
- package/dist/esm/plugins/index.js +118 -111
- package/dist/esm/repository/index.js +141 -119
- package/dist/facade/Crewx.d.ts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +100 -93
- package/dist/local-server/base-url.d.ts +18 -0
- package/dist/local-server/index.d.ts +8 -0
- package/dist/local-server/opencode.d.ts +8 -0
- package/dist/local-server/probe.d.ts +3 -0
- package/dist/local-server/runtime.d.ts +26 -0
- package/dist/local-server/types.d.ts +43 -0
- package/dist/migrations/0016_fuzzy_hemingway.sql +14 -0
- package/dist/migrations/meta/0016_snapshot.json +2419 -0
- package/dist/migrations/meta/_journal.json +7 -0
- package/dist/plugins/index.js +118 -111
- package/dist/repository/db.d.ts +8 -0
- package/dist/repository/index.d.ts +7 -2
- package/dist/repository/index.js +141 -119
- package/dist/repository/task-log-migration.d.ts +74 -0
- package/dist/repository/task-log.repository.d.ts +44 -0
- package/dist/repository/task.repository.d.ts +6 -0
- package/dist/schema/index.d.ts +1 -0
- package/dist/schema/task-log-events.d.ts +119 -0
- package/dist/schema/tasks.d.ts +53 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import { mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from 'fs';
|
|
2
|
+
import type { LocalServerSettings } from '../local-server/types';
|
|
1
3
|
export interface GlobalSettings {
|
|
2
4
|
cron?: {
|
|
3
5
|
auto_start?: boolean;
|
|
4
6
|
[key: string]: unknown;
|
|
5
7
|
};
|
|
8
|
+
ai_server?: LocalServerSettings;
|
|
6
9
|
[key: string]: unknown;
|
|
7
10
|
}
|
|
8
11
|
export type DeepPartial<T> = T extends object ? {
|
|
@@ -11,9 +14,20 @@ export type DeepPartial<T> = T extends object ? {
|
|
|
11
14
|
export interface GlobalSettingsStore {
|
|
12
15
|
read(): GlobalSettings;
|
|
13
16
|
update(patch: DeepPartial<GlobalSettings>): GlobalSettings;
|
|
17
|
+
set(key: string, value: unknown): GlobalSettings;
|
|
18
|
+
remove(key: string): GlobalSettings;
|
|
14
19
|
readonly path: string;
|
|
15
20
|
}
|
|
21
|
+
interface GlobalSettingsFileSystem {
|
|
22
|
+
mkdirSync: typeof mkdirSync;
|
|
23
|
+
readFileSync: typeof readFileSync;
|
|
24
|
+
renameSync: typeof renameSync;
|
|
25
|
+
statSync: typeof statSync;
|
|
26
|
+
writeFileSync: typeof writeFileSync;
|
|
27
|
+
}
|
|
16
28
|
export interface CreateGlobalSettingsStoreOptions {
|
|
17
29
|
filePath?: string;
|
|
30
|
+
fileSystem?: Partial<GlobalSettingsFileSystem>;
|
|
18
31
|
}
|
|
19
32
|
export declare function createGlobalSettingsStore(opts?: CreateGlobalSettingsStoreOptions): GlobalSettingsStore;
|
|
33
|
+
export {};
|