@sleep2agi/agent-network 2.3.0-preview.38 → 2.3.0-preview.39

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,12 @@
1
+ export interface LocaleDiagnostic {
2
+ effectiveVariable: "LC_ALL" | "LC_CTYPE" | "LANG" | null;
3
+ effectiveValue: string | null;
4
+ shouldWarn: boolean;
5
+ }
6
+ /**
7
+ * Resolve the locale with the same precedence used by POSIX libc. Windows
8
+ * does not use these variables as its process Unicode boundary, so prescribing
9
+ * a POSIX locale there would be misleading.
10
+ */
11
+ export declare function diagnoseLocale(env: Readonly<Record<string, string | undefined>>, platform: string): LocaleDiagnostic;
12
+ export declare function formatLocaleSource(diagnostic: LocaleDiagnostic): string;
@@ -0,0 +1,12 @@
1
+ export declare const MOCK_LLM_FALLBACK = "(mock LLM: no rule matched)";
2
+ export type MockLlmRule = Readonly<{
3
+ in_substring: string;
4
+ out: string;
5
+ }>;
6
+ export type MockLlmResolution = Readonly<{
7
+ reply: string;
8
+ matched: boolean;
9
+ ruleIndex: number | null;
10
+ }>;
11
+ export declare function loadMockLlmRules(path: string): readonly MockLlmRule[];
12
+ export declare function resolveMockLlmReply(rules: readonly MockLlmRule[], prompt: string, warn?: (message: string) => void): MockLlmResolution;