koishi-plugin-my-pig-group-friends 1.0.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.
@@ -0,0 +1,21 @@
1
+ import { Schema } from 'koishi';
2
+ export interface Config {
3
+ sunriseApi: string;
4
+ defaultLat: number;
5
+ defaultLng: number;
6
+ abnormalThreshold: number;
7
+ outputMode: 'text' | 'image';
8
+ useStorageService: boolean;
9
+ storageCacheHours: number;
10
+ travelMessageTemplate: string;
11
+ aigcEnabled: boolean;
12
+ aigcChannel: string;
13
+ aigcPrompt: string;
14
+ logPath: string;
15
+ llmLocationEnabled: boolean;
16
+ llmLocationModel: string;
17
+ unsplashAccessKey: string;
18
+ logRetentionDays: number;
19
+ debug: boolean;
20
+ }
21
+ export declare const Config: Schema<Config>;
@@ -0,0 +1,10 @@
1
+ export interface Location {
2
+ country: string;
3
+ countryZh: string;
4
+ city: string;
5
+ landmark: string;
6
+ landmarkZh: string;
7
+ timezone: string;
8
+ landscapeUrl: string;
9
+ }
10
+ export declare const LOCATIONS: Location[];
@@ -0,0 +1,27 @@
1
+ import { Context } from 'koishi';
2
+ declare module 'koishi' {
3
+ interface Tables {
4
+ pig_user_state: PigUserState;
5
+ pig_travel_log: PigTravelLog;
6
+ }
7
+ }
8
+ export interface PigUserState {
9
+ id: number;
10
+ userId: string;
11
+ platform: string;
12
+ lastWakeUp: Date;
13
+ lastSunrise: Date;
14
+ latitude?: number;
15
+ longitude?: number;
16
+ }
17
+ export interface PigTravelLog {
18
+ id: number;
19
+ userId: string;
20
+ platform: string;
21
+ timestamp: Date;
22
+ country: string;
23
+ location: string;
24
+ imagePath: string;
25
+ isAIGC: boolean;
26
+ }
27
+ export declare function applyDatabase(ctx: Context): void;
package/lib/index.d.ts ADDED
@@ -0,0 +1,10 @@
1
+ import { Context } from 'koishi';
2
+ import './types';
3
+ import { Config } from './config';
4
+ export declare const name = "my-pig-group-friends";
5
+ export declare const inject: {
6
+ required: string[];
7
+ optional: string[];
8
+ };
9
+ export * from './config';
10
+ export declare function apply(ctx: Context, config: Config): void;