guideai-app 0.3.4 → 0.3.5
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/GuideAI.js +1 -1
- package/dist/GuideAI.js.map +1 -1
- package/dist/utils/constants.d.ts +1 -1
- package/package.json +1 -1
- package/dist/utils/logger.d.ts +0 -41
- package/dist/utils/workflow.d.ts +0 -62
|
@@ -2,6 +2,6 @@ export declare const DEFAULT_PROMPT = "you are Guide AI.\n Your role is to
|
|
|
2
2
|
export declare const IGNORE_MESSAGE_TYPES: string[];
|
|
3
3
|
export declare const GUIDE_AI_API_BASE = "https://www.getguide.ai/api";
|
|
4
4
|
export declare const OPENAI_REALTIME_BASE = "https://api.openai.com/v1/realtime";
|
|
5
|
-
export declare const OPENAI_REALTIME_MODEL = "gpt-
|
|
5
|
+
export declare const OPENAI_REALTIME_MODEL = "gpt-realtime-2025-08-28";
|
|
6
6
|
export declare const GEMINI_API_KEY = "AIzaSyBiFyzjYVupLyk8BdmfWzBL1GbzX8OUdPc";
|
|
7
7
|
export declare const GEMINI_API_ENDPOINT = "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent";
|
package/package.json
CHANGED
package/dist/utils/logger.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Standardized logging utility for GuideAI package
|
|
3
|
-
* Provides consistent formatting and development gating across all components
|
|
4
|
-
*/
|
|
5
|
-
type Component = 'GuideAI' | 'EventTracker' | 'UserMetadata' | 'API' | 'TranscriptBox' | 'Onboarding';
|
|
6
|
-
declare class Logger {
|
|
7
|
-
private static formatMessage;
|
|
8
|
-
/**
|
|
9
|
-
* Standard info logging - only in development
|
|
10
|
-
*/
|
|
11
|
-
static log(component: Component, action: string, data?: any): void;
|
|
12
|
-
/**
|
|
13
|
-
* Warning logging - always shown
|
|
14
|
-
*/
|
|
15
|
-
static warn(component: Component, action: string, data?: any): void;
|
|
16
|
-
/**
|
|
17
|
-
* Error logging - always shown
|
|
18
|
-
*/
|
|
19
|
-
static error(component: Component, action: string, error?: any): void;
|
|
20
|
-
/**
|
|
21
|
-
* API call logging with method and endpoint
|
|
22
|
-
*/
|
|
23
|
-
static apiCall(method: string, endpoint: string, data?: any): void;
|
|
24
|
-
/**
|
|
25
|
-
* API response logging
|
|
26
|
-
*/
|
|
27
|
-
static apiResponse(method: string, endpoint: string, success: boolean, data?: any): void;
|
|
28
|
-
/**
|
|
29
|
-
* Conversation flow tracking
|
|
30
|
-
*/
|
|
31
|
-
static conversation(action: string, data?: any): void;
|
|
32
|
-
/**
|
|
33
|
-
* Event tracking logging
|
|
34
|
-
*/
|
|
35
|
-
static event(action: string, data?: any): void;
|
|
36
|
-
/**
|
|
37
|
-
* Metadata tracking logging
|
|
38
|
-
*/
|
|
39
|
-
static metadata(action: string, data?: any): void;
|
|
40
|
-
}
|
|
41
|
-
export default Logger;
|
package/dist/utils/workflow.d.ts
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { Workflow } from './api';
|
|
2
|
-
export interface WorkflowTrigger {
|
|
3
|
-
triggerWords: string[];
|
|
4
|
-
workflowKey: string;
|
|
5
|
-
description?: string;
|
|
6
|
-
}
|
|
7
|
-
export interface WorkflowLogEvent {
|
|
8
|
-
type: 'workflow_init' | 'trigger_detected' | 'workflow_activated';
|
|
9
|
-
timestamp: string;
|
|
10
|
-
data: any;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Format a workflow log message for console output
|
|
14
|
-
*/
|
|
15
|
-
export declare const formatWorkflowLog: (event: WorkflowLogEvent) => string;
|
|
16
|
-
/**
|
|
17
|
-
* Log workflow event to console with formatting
|
|
18
|
-
*/
|
|
19
|
-
export declare const logWorkflowEvent: (event: WorkflowLogEvent) => void;
|
|
20
|
-
/**
|
|
21
|
-
* Detect which workflows should be triggered based on a user message
|
|
22
|
-
* @param message The user's message
|
|
23
|
-
* @param workflows Array of available workflows
|
|
24
|
-
* @returns Array of workflows that should be triggered
|
|
25
|
-
*/
|
|
26
|
-
export declare const detectWorkflowTriggers: (message: string, workflows: Workflow[]) => Workflow[];
|
|
27
|
-
/**
|
|
28
|
-
* Get trigger words from a message that match a specific workflow
|
|
29
|
-
* @param message The user's message
|
|
30
|
-
* @param workflow The workflow to check against
|
|
31
|
-
* @returns Array of detected trigger words for this workflow
|
|
32
|
-
*/
|
|
33
|
-
export declare const getWorkflowTriggerWords: (message: string, workflow: Workflow) => string[];
|
|
34
|
-
/**
|
|
35
|
-
* Check if a message contains any trigger words for any workflow
|
|
36
|
-
* @param message The user's message
|
|
37
|
-
* @param workflows Array of available workflows
|
|
38
|
-
* @returns True if any workflow triggers are found
|
|
39
|
-
*/
|
|
40
|
-
export declare const hasWorkflowTriggers: (message: string, workflows: Workflow[]) => boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Get the most relevant workflow for a message
|
|
43
|
-
* @param message The user's message
|
|
44
|
-
* @param workflows Array of available workflows
|
|
45
|
-
* @returns The most relevant workflow or null if none found
|
|
46
|
-
*/
|
|
47
|
-
export declare const getMostRelevantWorkflow: (message: string, workflows: Workflow[]) => Workflow | null;
|
|
48
|
-
/**
|
|
49
|
-
* Legacy function for backward compatibility
|
|
50
|
-
* @deprecated Use detectWorkflowTriggers instead
|
|
51
|
-
*/
|
|
52
|
-
export declare const detectTriggerWords: (message: string, triggerWords: string[]) => string[];
|
|
53
|
-
/**
|
|
54
|
-
* Legacy function for backward compatibility
|
|
55
|
-
* @deprecated Use hasWorkflowTriggers instead
|
|
56
|
-
*/
|
|
57
|
-
export declare const hasTriggerWords: (message: string, triggerWords: string[]) => boolean;
|
|
58
|
-
/**
|
|
59
|
-
* Legacy function for backward compatibility
|
|
60
|
-
* @deprecated Use getMostRelevantWorkflow instead
|
|
61
|
-
*/
|
|
62
|
-
export declare const getMostRelevantTrigger: (message: string, triggerWords: string[]) => string | null;
|