@egdesk/next-api-plugin 1.5.54 → 1.5.56
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/generate-helpers.js +133 -113
- package/dist/generate-proxy.js +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/generate-helpers.js
CHANGED
|
@@ -1647,19 +1647,6 @@ export async function callCompanyResearchTool(
|
|
|
1647
1647
|
return parseEgdeskMcpToolResponse(response);
|
|
1648
1648
|
}
|
|
1649
1649
|
|
|
1650
|
-
/** Run full company research workflow for a domain (several minutes) */
|
|
1651
|
-
export async function runCompanyResearch(
|
|
1652
|
-
domain: string,
|
|
1653
|
-
options: {
|
|
1654
|
-
bypassCache?: boolean;
|
|
1655
|
-
inquiryData?: Record<string, any>;
|
|
1656
|
-
companyName?: string;
|
|
1657
|
-
clientBusinessNumber?: string;
|
|
1658
|
-
} = {}
|
|
1659
|
-
) {
|
|
1660
|
-
return callCompanyResearchTool('companyresearch_run', { domain, ...options });
|
|
1661
|
-
}
|
|
1662
|
-
|
|
1663
1650
|
/** List company research records */
|
|
1664
1651
|
export async function listCompanyResearch(
|
|
1665
1652
|
status?: 'completed' | 'failed' | 'in_progress'
|
|
@@ -1679,11 +1666,6 @@ export async function getCompanyResearchByDomain(domain: string) {
|
|
|
1679
1666
|
return callCompanyResearchTool('companyresearch_get_by_domain', { domain });
|
|
1680
1667
|
}
|
|
1681
1668
|
|
|
1682
|
-
/** Most recent completed research for a domain */
|
|
1683
|
-
export async function getLatestCompletedCompanyResearch(domain: string) {
|
|
1684
|
-
return callCompanyResearchTool('companyresearch_get_latest_completed', { domain });
|
|
1685
|
-
}
|
|
1686
|
-
|
|
1687
1669
|
/** Search company research by company name or domain */
|
|
1688
1670
|
export async function searchCompanyResearch(searchText: string) {
|
|
1689
1671
|
return callCompanyResearchTool('companyresearch_search', { searchText });
|
|
@@ -1890,11 +1872,24 @@ export async function openBrowserRecordingAccount(
|
|
|
1890
1872
|
});
|
|
1891
1873
|
}
|
|
1892
1874
|
|
|
1893
|
-
/** Numbered live-page elements, including left-nav / header menus */
|
|
1875
|
+
/** Numbered live-page elements on the active tab, including tabs[] and left-nav / header menus */
|
|
1894
1876
|
export async function inspectBrowserRecordingPage(sessionId: string) {
|
|
1895
1877
|
return callBrowserRecordingTool('browser_recording_inspect_page', { sessionId });
|
|
1896
1878
|
}
|
|
1897
1879
|
|
|
1880
|
+
/** Switch the live session to a Chrome tab from inspect tabs[].index */
|
|
1881
|
+
export async function focusBrowserRecordingTab(sessionId: string, tabIndex: number) {
|
|
1882
|
+
return callBrowserRecordingTool('browser_recording_focus_tab', { sessionId, tabIndex });
|
|
1883
|
+
}
|
|
1884
|
+
|
|
1885
|
+
/** Close one Chrome tab. Omit tabIndex to close the active tab. Refuses the last tab. */
|
|
1886
|
+
export async function closeBrowserRecordingTab(sessionId: string, tabIndex?: number) {
|
|
1887
|
+
return callBrowserRecordingTool('browser_recording_close_tab', {
|
|
1888
|
+
sessionId,
|
|
1889
|
+
...(tabIndex !== undefined ? { tabIndex } : {}),
|
|
1890
|
+
});
|
|
1891
|
+
}
|
|
1892
|
+
|
|
1898
1893
|
/** Search live-page labels (exact/substring first). Returns indexes for click. */
|
|
1899
1894
|
export async function searchBrowserRecordingElements(sessionId: string, query: string) {
|
|
1900
1895
|
return callBrowserRecordingTool('browser_recording_search_elements', { sessionId, query });
|
|
@@ -1959,7 +1954,7 @@ export async function listBrowserRecordingSessions() {
|
|
|
1959
1954
|
return callBrowserRecordingTool('browser_recording_list_sessions', {});
|
|
1960
1955
|
}
|
|
1961
1956
|
|
|
1962
|
-
/** Close a
|
|
1957
|
+
/** Close Chrome. Does not save a recording or page HTML — only when fully done. */}
|
|
1963
1958
|
export async function closeBrowserRecordingSession(sessionId: string) {
|
|
1964
1959
|
return callBrowserRecordingTool('browser_recording_close_session', { sessionId });
|
|
1965
1960
|
}
|
|
@@ -2002,11 +1997,34 @@ export async function uploadBrowserRecordingFile(
|
|
|
2002
1997
|
});
|
|
2003
1998
|
}
|
|
2004
1999
|
|
|
2005
|
-
/**
|
|
2000
|
+
/** Write a replayable recording (click tape). Chrome stays open — not close_session, not save_page_html. */
|
|
2006
2001
|
export async function saveBrowserRecordingSession(sessionId: string, name: string) {
|
|
2007
2002
|
return callBrowserRecordingTool('browser_recording_save_session', { sessionId, name });
|
|
2008
2003
|
}
|
|
2009
2004
|
|
|
2005
|
+
/** Dump the active tab as HTML. Chrome stays open — not a replayable recording, not close_session. */
|
|
2006
|
+
export async function saveBrowserRecordingPageHtml(sessionId: string, name?: string) {
|
|
2007
|
+
return callBrowserRecordingTool('browser_recording_save_page_html', {
|
|
2008
|
+
sessionId,
|
|
2009
|
+
...(name ? { name } : {}),
|
|
2010
|
+
});
|
|
2011
|
+
}
|
|
2012
|
+
|
|
2013
|
+
/** After walking one row cycle, bind that recipe to every remaining matching list key. */
|
|
2014
|
+
export async function forEachBrowserRecordingRow(
|
|
2015
|
+
sessionId: string,
|
|
2016
|
+
query: string,
|
|
2017
|
+
opts?: { namePrefix?: string; skipExisting?: boolean; maxRows?: number }
|
|
2018
|
+
) {
|
|
2019
|
+
return callBrowserRecordingTool('browser_recording_for_each_row', {
|
|
2020
|
+
sessionId,
|
|
2021
|
+
query,
|
|
2022
|
+
...(opts?.namePrefix ? { namePrefix: opts.namePrefix } : {}),
|
|
2023
|
+
...(opts?.skipExisting === false ? { skipExisting: false } : {}),
|
|
2024
|
+
...(opts?.maxRows !== undefined ? { maxRows: opts.maxRows } : {}),
|
|
2025
|
+
});
|
|
2026
|
+
}
|
|
2027
|
+
|
|
2010
2028
|
// ==========================================
|
|
2011
2029
|
// AI CENTER (workflows, entities, relations, tags)
|
|
2012
2030
|
// ==========================================
|
|
@@ -2354,37 +2372,13 @@ export async function getKoreanLawDecision(id: string) {
|
|
|
2354
2372
|
/**
|
|
2355
2373
|
* Call EGDesk Bizinfo MCP tool (기업마당 지원사업 공고 — grants, not company verify).
|
|
2356
2374
|
*
|
|
2357
|
-
* -
|
|
2358
|
-
* - Client: \`POST /__bizinfo_proxy\` (see proxy.ts / middleware)
|
|
2359
|
-
* - Tunnel: \`POST https://tunneling-service.onrender.com/t/{id}/bizinfo/tools/call\`
|
|
2375
|
+
* Routed through company-research MCP (\`POST {apiUrl}/company-research/tools/call\`).
|
|
2360
2376
|
*/
|
|
2361
2377
|
export async function callBizinfoTool(
|
|
2362
2378
|
toolName: string,
|
|
2363
2379
|
args: Record<string, any> = {}
|
|
2364
2380
|
): Promise<any> {
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
const isServer = typeof window === 'undefined';
|
|
2368
|
-
|
|
2369
|
-
let response: Response;
|
|
2370
|
-
if (isServer) {
|
|
2371
|
-
const apiUrl =
|
|
2372
|
-
(typeof process !== 'undefined' && process.env?.NEXT_PUBLIC_EGDESK_API_URL) ||
|
|
2373
|
-
EGDESK_CONFIG.apiUrl;
|
|
2374
|
-
response = await fetch(\`\${apiUrl}/bizinfo/tools/call\`, {
|
|
2375
|
-
method: 'POST',
|
|
2376
|
-
headers: buildServerEgdeskHeaders(),
|
|
2377
|
-
body
|
|
2378
|
-
});
|
|
2379
|
-
} else {
|
|
2380
|
-
response = await apiFetch('/__bizinfo_proxy', {
|
|
2381
|
-
method: 'POST',
|
|
2382
|
-
headers: { 'Content-Type': 'application/json' },
|
|
2383
|
-
body
|
|
2384
|
-
});
|
|
2385
|
-
}
|
|
2386
|
-
|
|
2387
|
-
return parseEgdeskMcpToolResponse(response);
|
|
2381
|
+
return callCompanyResearchTool(toolName, args);
|
|
2388
2382
|
}
|
|
2389
2383
|
|
|
2390
2384
|
/** Search government grants / 지원사업 (category, region, optional client-side query). Not a company registry. */
|
|
@@ -2427,37 +2421,13 @@ export async function getBizinfoAnnouncement(id: string) {
|
|
|
2427
2421
|
/**
|
|
2428
2422
|
* Call EGDesk NPS MCP tool (국민연금 가입 사업장 내역 / 가입자 추이).
|
|
2429
2423
|
*
|
|
2430
|
-
*
|
|
2431
|
-
* - Client: \`POST /__nps_proxy\` (see proxy.ts / middleware)
|
|
2432
|
-
* - Tunnel: \`POST https://tunneling-service.onrender.com/t/{id}/nps/tools/call\`
|
|
2424
|
+
* Routed through company-research MCP.
|
|
2433
2425
|
*/
|
|
2434
2426
|
export async function callNpsTool(
|
|
2435
2427
|
toolName: string,
|
|
2436
2428
|
args: Record<string, any> = {}
|
|
2437
2429
|
): Promise<any> {
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
const isServer = typeof window === 'undefined';
|
|
2441
|
-
|
|
2442
|
-
let response: Response;
|
|
2443
|
-
if (isServer) {
|
|
2444
|
-
const apiUrl =
|
|
2445
|
-
(typeof process !== 'undefined' && process.env?.NEXT_PUBLIC_EGDESK_API_URL) ||
|
|
2446
|
-
EGDESK_CONFIG.apiUrl;
|
|
2447
|
-
response = await fetch(\`\${apiUrl}/nps/tools/call\`, {
|
|
2448
|
-
method: 'POST',
|
|
2449
|
-
headers: buildServerEgdeskHeaders(),
|
|
2450
|
-
body
|
|
2451
|
-
});
|
|
2452
|
-
} else {
|
|
2453
|
-
response = await apiFetch('/__nps_proxy', {
|
|
2454
|
-
method: 'POST',
|
|
2455
|
-
headers: { 'Content-Type': 'application/json' },
|
|
2456
|
-
body
|
|
2457
|
-
});
|
|
2458
|
-
}
|
|
2459
|
-
|
|
2460
|
-
return parseEgdeskMcpToolResponse(response);
|
|
2430
|
+
return callCompanyResearchTool(toolName, args);
|
|
2461
2431
|
}
|
|
2462
2432
|
|
|
2463
2433
|
/** Search NPS workplaces by name and/or 사업자번호 앞 6자리 */
|
|
@@ -2503,26 +2473,7 @@ export async function callKonepsTool(
|
|
|
2503
2473
|
toolName: string,
|
|
2504
2474
|
args: Record<string, any> = {}
|
|
2505
2475
|
): Promise<any> {
|
|
2506
|
-
|
|
2507
|
-
const isServer = typeof window === 'undefined';
|
|
2508
|
-
let response: Response;
|
|
2509
|
-
if (isServer) {
|
|
2510
|
-
const apiUrl =
|
|
2511
|
-
(typeof process !== 'undefined' && process.env?.NEXT_PUBLIC_EGDESK_API_URL) ||
|
|
2512
|
-
EGDESK_CONFIG.apiUrl;
|
|
2513
|
-
response = await fetch(\`\${apiUrl}/koneps/tools/call\`, {
|
|
2514
|
-
method: 'POST',
|
|
2515
|
-
headers: buildServerEgdeskHeaders(),
|
|
2516
|
-
body
|
|
2517
|
-
});
|
|
2518
|
-
} else {
|
|
2519
|
-
response = await apiFetch('/__koneps_proxy', {
|
|
2520
|
-
method: 'POST',
|
|
2521
|
-
headers: { 'Content-Type': 'application/json' },
|
|
2522
|
-
body
|
|
2523
|
-
});
|
|
2524
|
-
}
|
|
2525
|
-
return parseEgdeskMcpToolResponse(response);
|
|
2476
|
+
return callCompanyResearchTool(toolName, args);
|
|
2526
2477
|
}
|
|
2527
2478
|
|
|
2528
2479
|
export async function searchKonepsContracts(options: Record<string, any> = {}) {
|
|
@@ -2552,26 +2503,7 @@ export async function callBidnoticeTool(
|
|
|
2552
2503
|
toolName: string,
|
|
2553
2504
|
args: Record<string, any> = {}
|
|
2554
2505
|
): Promise<any> {
|
|
2555
|
-
|
|
2556
|
-
const isServer = typeof window === 'undefined';
|
|
2557
|
-
let response: Response;
|
|
2558
|
-
if (isServer) {
|
|
2559
|
-
const apiUrl =
|
|
2560
|
-
(typeof process !== 'undefined' && process.env?.NEXT_PUBLIC_EGDESK_API_URL) ||
|
|
2561
|
-
EGDESK_CONFIG.apiUrl;
|
|
2562
|
-
response = await fetch(\`\${apiUrl}/bidnotice/tools/call\`, {
|
|
2563
|
-
method: 'POST',
|
|
2564
|
-
headers: buildServerEgdeskHeaders(),
|
|
2565
|
-
body
|
|
2566
|
-
});
|
|
2567
|
-
} else {
|
|
2568
|
-
response = await apiFetch('/__bidnotice_proxy', {
|
|
2569
|
-
method: 'POST',
|
|
2570
|
-
headers: { 'Content-Type': 'application/json' },
|
|
2571
|
-
body
|
|
2572
|
-
});
|
|
2573
|
-
}
|
|
2574
|
-
return parseEgdeskMcpToolResponse(response);
|
|
2506
|
+
return callCompanyResearchTool(toolName, args);
|
|
2575
2507
|
}
|
|
2576
2508
|
|
|
2577
2509
|
export async function searchBidNotices(options: Record<string, any> = {}) {
|
|
@@ -2910,6 +2842,10 @@ export type AiCallerCallOptions = {
|
|
|
2910
2842
|
keyName?: ${(options.apiKeyNames ?? []).length > 0
|
|
2911
2843
|
? (options.apiKeyNames.map(n => `'${n}'`).join(' | ') + ' | (string & {})')
|
|
2912
2844
|
: 'string'};
|
|
2845
|
+
/** standard = default. flex = 50% cheaper, slower/sheddable. priority = more expensive. */
|
|
2846
|
+
serviceTier?: 'standard' | 'flex' | 'priority';
|
|
2847
|
+
/** Explicit cache name from createAiCallerCache (cachedContents/...). */
|
|
2848
|
+
cachedContent?: string;
|
|
2913
2849
|
};
|
|
2914
2850
|
|
|
2915
2851
|
export type AiCallerModelDetails = {
|
|
@@ -2956,6 +2892,8 @@ export type AiCallerCallResult = {
|
|
|
2956
2892
|
apiKey: { name: string; id: string | null } | null;
|
|
2957
2893
|
attachments: AiCallerAttachmentsSummary;
|
|
2958
2894
|
logId: string;
|
|
2895
|
+
serviceTier: 'standard' | 'flex' | 'priority';
|
|
2896
|
+
cachedContent: string | null;
|
|
2959
2897
|
};
|
|
2960
2898
|
|
|
2961
2899
|
/**
|
|
@@ -2992,6 +2930,8 @@ export type AiCallerGenerateImageOptions = {
|
|
|
2992
2930
|
keyName?: ${(options.apiKeyNames ?? []).length > 0
|
|
2993
2931
|
? (options.apiKeyNames.map(n => `'${n}'`).join(' | ') + ' | (string & {})')
|
|
2994
2932
|
: 'string'};
|
|
2933
|
+
/** standard = default. flex = 50% cheaper, slower/sheddable. */
|
|
2934
|
+
serviceTier?: 'standard' | 'flex' | 'priority';
|
|
2995
2935
|
};
|
|
2996
2936
|
|
|
2997
2937
|
export type AiCallerGeneratedImage = {
|
|
@@ -3069,6 +3009,86 @@ export async function listAiCallerModels(): Promise<AiCallerModelsResult> {
|
|
|
3069
3009
|
return callAiCallerTool('ai_caller_list_models', {});
|
|
3070
3010
|
}
|
|
3071
3011
|
|
|
3012
|
+
export type AiCallerBatchRequest = {
|
|
3013
|
+
key?: string;
|
|
3014
|
+
prompt?: string;
|
|
3015
|
+
systemPrompt?: string;
|
|
3016
|
+
temperature?: number;
|
|
3017
|
+
maxOutputTokens?: number;
|
|
3018
|
+
responseSchema?: Record<string, any>;
|
|
3019
|
+
tools?: Array<Record<string, any>>;
|
|
3020
|
+
toolConfig?: AiCallerCallOptions['toolConfig'];
|
|
3021
|
+
cachedContent?: string;
|
|
3022
|
+
images?: string[];
|
|
3023
|
+
filePaths?: string[];
|
|
3024
|
+
files?: AiCallerCallOptions['files'];
|
|
3025
|
+
};
|
|
3026
|
+
|
|
3027
|
+
export type AiCallerBatchSubmitOptions = {
|
|
3028
|
+
model?: string;
|
|
3029
|
+
displayName?: string;
|
|
3030
|
+
caller?: string;
|
|
3031
|
+
keyName?: ${(options.apiKeyNames ?? []).length > 0
|
|
3032
|
+
? (options.apiKeyNames.map(n => `'${n}'`).join(' | ') + ' | (string & {})')
|
|
3033
|
+
: 'string'};
|
|
3034
|
+
};
|
|
3035
|
+
|
|
3036
|
+
/** Submit an async Gemini Batch job (50% of standard price). Poll with getAiCallerBatch. */
|
|
3037
|
+
export async function submitAiCallerBatch(
|
|
3038
|
+
requests: AiCallerBatchRequest[],
|
|
3039
|
+
options: AiCallerBatchSubmitOptions = {}
|
|
3040
|
+
) {
|
|
3041
|
+
return callAiCallerTool('ai_caller_batch_submit', { requests, ...options });
|
|
3042
|
+
}
|
|
3043
|
+
|
|
3044
|
+
/** Get a Gemini Batch job. Set waitMs to poll up to 120s per call. */
|
|
3045
|
+
export async function getAiCallerBatch(
|
|
3046
|
+
name: string,
|
|
3047
|
+
options: { includeResults?: boolean; waitMs?: number; pollIntervalMs?: number; keyName?: string } = {}
|
|
3048
|
+
) {
|
|
3049
|
+
return callAiCallerTool('ai_caller_batch_get', { name, ...options });
|
|
3050
|
+
}
|
|
3051
|
+
|
|
3052
|
+
export async function listAiCallerBatches(options: { pageSize?: number; pageToken?: string; keyName?: string } = {}) {
|
|
3053
|
+
return callAiCallerTool('ai_caller_batch_list', options);
|
|
3054
|
+
}
|
|
3055
|
+
|
|
3056
|
+
export async function cancelAiCallerBatch(name: string, options: { keyName?: string } = {}) {
|
|
3057
|
+
return callAiCallerTool('ai_caller_batch_cancel', { name, ...options });
|
|
3058
|
+
}
|
|
3059
|
+
|
|
3060
|
+
export type AiCallerCacheCreateOptions = {
|
|
3061
|
+
prompt?: string;
|
|
3062
|
+
systemPrompt?: string;
|
|
3063
|
+
model?: string;
|
|
3064
|
+
displayName?: string;
|
|
3065
|
+
ttl?: string | number;
|
|
3066
|
+
images?: string[];
|
|
3067
|
+
filePaths?: string[];
|
|
3068
|
+
files?: AiCallerCallOptions['files'];
|
|
3069
|
+
caller?: string;
|
|
3070
|
+
keyName?: ${(options.apiKeyNames ?? []).length > 0
|
|
3071
|
+
? (options.apiKeyNames.map(n => `'${n}'`).join(' | ') + ' | (string & {})')
|
|
3072
|
+
: 'string'};
|
|
3073
|
+
};
|
|
3074
|
+
|
|
3075
|
+
/** Create an explicit Gemini context cache. Pass the returned name as cachedContent on later calls. */
|
|
3076
|
+
export async function createAiCallerCache(options: AiCallerCacheCreateOptions = {}) {
|
|
3077
|
+
return callAiCallerTool('ai_caller_cache_create', options);
|
|
3078
|
+
}
|
|
3079
|
+
|
|
3080
|
+
export async function listAiCallerCaches(options: { pageSize?: number; pageToken?: string; keyName?: string } = {}) {
|
|
3081
|
+
return callAiCallerTool('ai_caller_cache_list', options);
|
|
3082
|
+
}
|
|
3083
|
+
|
|
3084
|
+
export async function getAiCallerCache(name: string, options: { keyName?: string } = {}) {
|
|
3085
|
+
return callAiCallerTool('ai_caller_cache_get', { name, ...options });
|
|
3086
|
+
}
|
|
3087
|
+
|
|
3088
|
+
export async function deleteAiCallerCache(name: string, options: { keyName?: string } = {}) {
|
|
3089
|
+
return callAiCallerTool('ai_caller_cache_delete', { name, ...options });
|
|
3090
|
+
}
|
|
3091
|
+
|
|
3072
3092
|
// ==========================================
|
|
3073
3093
|
// PageIndex (MCP) — PDF RAG
|
|
3074
3094
|
// ==========================================
|
package/dist/generate-proxy.js
CHANGED
|
@@ -222,7 +222,7 @@ export async function proxy(request: NextRequest) {
|
|
|
222
222
|
const body = await request.text();
|
|
223
223
|
const apiUrl = process.env.NEXT_PUBLIC_EGDESK_API_URL || 'http://localhost:8080';
|
|
224
224
|
|
|
225
|
-
const response = await fetch(\`\${apiUrl}/
|
|
225
|
+
const response = await fetch(\`\${apiUrl}/company-research/tools/call\`, {
|
|
226
226
|
method: 'POST',
|
|
227
227
|
headers: buildEgdeskHeaders(),
|
|
228
228
|
body,
|
|
@@ -244,7 +244,7 @@ export async function proxy(request: NextRequest) {
|
|
|
244
244
|
const body = await request.text();
|
|
245
245
|
const apiUrl = process.env.NEXT_PUBLIC_EGDESK_API_URL || 'http://localhost:8080';
|
|
246
246
|
|
|
247
|
-
const response = await fetch(\`\${apiUrl}/
|
|
247
|
+
const response = await fetch(\`\${apiUrl}/company-research/tools/call\`, {
|
|
248
248
|
method: 'POST',
|
|
249
249
|
headers: buildEgdeskHeaders(),
|
|
250
250
|
body,
|
|
@@ -266,7 +266,7 @@ export async function proxy(request: NextRequest) {
|
|
|
266
266
|
const body = await request.text();
|
|
267
267
|
const apiUrl = process.env.NEXT_PUBLIC_EGDESK_API_URL || 'http://localhost:8080';
|
|
268
268
|
|
|
269
|
-
const response = await fetch(\`\${apiUrl}/
|
|
269
|
+
const response = await fetch(\`\${apiUrl}/company-research/tools/call\`, {
|
|
270
270
|
method: 'POST',
|
|
271
271
|
headers: buildEgdeskHeaders(),
|
|
272
272
|
body,
|
|
@@ -288,7 +288,7 @@ export async function proxy(request: NextRequest) {
|
|
|
288
288
|
const body = await request.text();
|
|
289
289
|
const apiUrl = process.env.NEXT_PUBLIC_EGDESK_API_URL || 'http://localhost:8080';
|
|
290
290
|
|
|
291
|
-
const response = await fetch(\`\${apiUrl}/
|
|
291
|
+
const response = await fetch(\`\${apiUrl}/company-research/tools/call\`, {
|
|
292
292
|
method: 'POST',
|
|
293
293
|
headers: buildEgdeskHeaders(),
|
|
294
294
|
body,
|
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* The minimum EGDesk app version this plugin version is compatible with.
|
|
9
9
|
* The app checks this at setup time and warns on mismatch.
|
|
10
10
|
*/
|
|
11
|
-
export declare const COMPATIBLE_APP_VERSION = "1.4.
|
|
11
|
+
export declare const COMPATIBLE_APP_VERSION = "1.4.64";
|
|
12
12
|
export interface SetupOptions {
|
|
13
13
|
egdeskUrl?: string;
|
|
14
14
|
/** Production EGDesk server URL — written to .env.production.local. Falls back to egdeskUrl. */
|
package/dist/index.js
CHANGED
|
@@ -46,7 +46,7 @@ exports.setupNextApiPlugin = setupNextApiPlugin;
|
|
|
46
46
|
* The minimum EGDesk app version this plugin version is compatible with.
|
|
47
47
|
* The app checks this at setup time and warns on mismatch.
|
|
48
48
|
*/
|
|
49
|
-
exports.COMPATIBLE_APP_VERSION = '1.4.
|
|
49
|
+
exports.COMPATIBLE_APP_VERSION = '1.4.64';
|
|
50
50
|
const fs = __importStar(require("fs"));
|
|
51
51
|
const path = __importStar(require("path"));
|
|
52
52
|
const setup_userdata_1 = require("./setup-userdata");
|