@egdesk/next-api-plugin 1.5.33 → 1.5.35
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/README.md +1 -1
- package/dist/generate-helpers.js +106 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Next.js plugin for EGDesk database proxy integration. Provides middleware-based
|
|
|
6
6
|
|
|
7
7
|
- 🔒 CORS-free database access via Next.js middleware (or `proxy.ts` on Next.js 16+)
|
|
8
8
|
- 🌐 Works in both local and tunneled environments
|
|
9
|
-
- 📝 Type-safe table definitions and helper functions (user data, FinanceHub, internal knowledge / business identity / company research, browser recording)
|
|
9
|
+
- 📝 Type-safe table definitions and helper functions (user data, FinanceHub, internal knowledge / business identity / company research, browser recording replay + live browse)
|
|
10
10
|
- 🚀 Auto-discovery of database tables
|
|
11
11
|
- 🔧 Zero configuration after setup
|
|
12
12
|
|
package/dist/generate-helpers.js
CHANGED
|
@@ -139,7 +139,7 @@ function generateHelpers(projectPath, options = {}) {
|
|
|
139
139
|
*
|
|
140
140
|
* Type-safe helpers for EGDesk user data, Google Workspace (Sheets / Drive MCP + sync, Gmail, Apps Script),
|
|
141
141
|
* FinanceHub (banks, cards, Hometax, promissory notes),
|
|
142
|
-
* internal knowledge / business identity / company research (MCP), Korean law (MCP), and browser recorder replay.
|
|
142
|
+
* internal knowledge / business identity / company research (MCP), Korean law (MCP), and browser recorder replay / live browse.
|
|
143
143
|
* Works in both client and server components.
|
|
144
144
|
*
|
|
145
145
|
* Generated by @egdesk/next-api-plugin — do not edit by hand.
|
|
@@ -1654,7 +1654,7 @@ export async function searchCompanyResearch(searchText: string) {
|
|
|
1654
1654
|
// ==========================================
|
|
1655
1655
|
|
|
1656
1656
|
/**
|
|
1657
|
-
* Call EGDesk Browser Recording MCP tool (saved
|
|
1657
|
+
* Call EGDesk Browser Recording MCP tool (saved tests, replay, and live site+login sessions).
|
|
1658
1658
|
*
|
|
1659
1659
|
* - Server: \`POST {apiUrl}/browser-recording/tools/call\`
|
|
1660
1660
|
* - Client: \`POST /__browser_recording_proxy\` (see proxy.ts / middleware)
|
|
@@ -1818,6 +1818,84 @@ export async function removeBrowserRecordingSyncConfig(opts: {
|
|
|
1818
1818
|
return callBrowserRecordingTool('browser_recording_remove_sync_config', opts);
|
|
1819
1819
|
}
|
|
1820
1820
|
|
|
1821
|
+
/** Recorded sites → logins → scripts (passwords never included) */
|
|
1822
|
+
export async function listBrowserRecordingSites(site?: string) {
|
|
1823
|
+
return callBrowserRecordingTool('browser_recording_list_sites', site ? { site } : {});
|
|
1824
|
+
}
|
|
1825
|
+
|
|
1826
|
+
/** One recorded login: identity + login vs post-login actions (no passwords) */
|
|
1827
|
+
export async function getBrowserRecordingAccount(siteKey: string, accountKey: string) {
|
|
1828
|
+
return callBrowserRecordingTool('browser_recording_get_account', { siteKey, accountKey });
|
|
1829
|
+
}
|
|
1830
|
+
|
|
1831
|
+
/**
|
|
1832
|
+
* Open Chrome after the recorded login only. Leaves the session open.
|
|
1833
|
+
* Use inspect / search / click next — do not close after login.
|
|
1834
|
+
*/
|
|
1835
|
+
export async function openBrowserRecordingAccount(
|
|
1836
|
+
siteKey: string,
|
|
1837
|
+
accountKey: string,
|
|
1838
|
+
scriptPath?: string
|
|
1839
|
+
) {
|
|
1840
|
+
return callBrowserRecordingTool('browser_recording_open_account', {
|
|
1841
|
+
siteKey,
|
|
1842
|
+
accountKey,
|
|
1843
|
+
...(scriptPath ? { scriptPath } : {})
|
|
1844
|
+
});
|
|
1845
|
+
}
|
|
1846
|
+
|
|
1847
|
+
/** Numbered live-page elements, including left-nav / header menus */
|
|
1848
|
+
export async function inspectBrowserRecordingPage(sessionId: string) {
|
|
1849
|
+
return callBrowserRecordingTool('browser_recording_inspect_page', { sessionId });
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1852
|
+
/** Search live-page labels (exact/substring first). Returns indexes for click. */
|
|
1853
|
+
export async function searchBrowserRecordingElements(sessionId: string, query: string) {
|
|
1854
|
+
return callBrowserRecordingTool('browser_recording_search_elements', { sessionId, query });
|
|
1855
|
+
}
|
|
1856
|
+
|
|
1857
|
+
/** Visible form fields; password values redacted */
|
|
1858
|
+
export async function getBrowserRecordingForms(
|
|
1859
|
+
sessionId: string,
|
|
1860
|
+
scroll?: 'none' | 'up' | 'down'
|
|
1861
|
+
) {
|
|
1862
|
+
return callBrowserRecordingTool('browser_recording_get_forms', {
|
|
1863
|
+
sessionId,
|
|
1864
|
+
...(scroll && scroll !== 'none' ? { scroll } : {})
|
|
1865
|
+
});
|
|
1866
|
+
}
|
|
1867
|
+
|
|
1868
|
+
/** Click by last-inspect index (prefers the real link over a wrapping table cell) */
|
|
1869
|
+
export async function clickBrowserRecordingElement(sessionId: string, elementIndex: number) {
|
|
1870
|
+
return callBrowserRecordingTool('browser_recording_click_element', { sessionId, elementIndex });
|
|
1871
|
+
}
|
|
1872
|
+
|
|
1873
|
+
/** Fill by field_id from getBrowserRecordingForms. Password fields are rejected. */
|
|
1874
|
+
export async function fillBrowserRecordingForm(
|
|
1875
|
+
sessionId: string,
|
|
1876
|
+
fields: Array<{ field_id: string; value: string }>
|
|
1877
|
+
) {
|
|
1878
|
+
return callBrowserRecordingTool('browser_recording_fill_form', { sessionId, fields });
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
/** Press Enter / Escape / arrows in the open live session (e.g. after 메뉴검색) */
|
|
1882
|
+
export async function pressBrowserRecordingKey(
|
|
1883
|
+
sessionId: string,
|
|
1884
|
+
key: 'Enter' | 'Escape' | 'Tab' | 'ArrowDown' | 'ArrowUp' | 'ArrowLeft' | 'ArrowRight' | 'Backspace'
|
|
1885
|
+
) {
|
|
1886
|
+
return callBrowserRecordingTool('browser_recording_press_key', { sessionId, key });
|
|
1887
|
+
}
|
|
1888
|
+
|
|
1889
|
+
/** Open live browse sessions (site, login, url, sessionId) */
|
|
1890
|
+
export async function listBrowserRecordingSessions() {
|
|
1891
|
+
return callBrowserRecordingTool('browser_recording_list_sessions', {});
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1894
|
+
/** Close a live session only when fully done — not after login */
|
|
1895
|
+
export async function closeBrowserRecordingSession(sessionId: string) {
|
|
1896
|
+
return callBrowserRecordingTool('browser_recording_close_session', { sessionId });
|
|
1897
|
+
}
|
|
1898
|
+
|
|
1821
1899
|
// ==========================================
|
|
1822
1900
|
// AI CENTER (workflows, entities, relations, tags)
|
|
1823
1901
|
// ==========================================
|
|
@@ -3201,6 +3279,32 @@ export async function pullAppsScriptFromGoogle(projectId: string) {
|
|
|
3201
3279
|
return callAppsScriptTool('apps_script_pull_from_google', { projectId });
|
|
3202
3280
|
}
|
|
3203
3281
|
|
|
3282
|
+
/** Create a container-bound Apps Script on a Sheet, Doc, Slide, or Form and register it */
|
|
3283
|
+
export async function createAppsScriptBound(options: {
|
|
3284
|
+
fileId: string;
|
|
3285
|
+
title?: string;
|
|
3286
|
+
scriptCode?: string;
|
|
3287
|
+
force?: boolean;
|
|
3288
|
+
}) {
|
|
3289
|
+
return callAppsScriptTool('apps_script_create_bound', options);
|
|
3290
|
+
}
|
|
3291
|
+
|
|
3292
|
+
/** Alias of createAppsScriptBound */
|
|
3293
|
+
export async function createAppsScriptForSpreadsheet(options: {
|
|
3294
|
+
spreadsheetId?: string;
|
|
3295
|
+
fileId?: string;
|
|
3296
|
+
title?: string;
|
|
3297
|
+
scriptCode?: string;
|
|
3298
|
+
force?: boolean;
|
|
3299
|
+
}) {
|
|
3300
|
+
return callAppsScriptTool('apps_script_create_bound', {
|
|
3301
|
+
fileId: options.fileId || options.spreadsheetId,
|
|
3302
|
+
title: options.title,
|
|
3303
|
+
scriptCode: options.scriptCode,
|
|
3304
|
+
force: options.force,
|
|
3305
|
+
});
|
|
3306
|
+
}
|
|
3307
|
+
|
|
3204
3308
|
/**
|
|
3205
3309
|
* Apps Script HTTP sync (POST /apps-script/sync).
|
|
3206
3310
|
* direction toWorkspace = push; toLocal = pull. Does not accept \`both\`.
|
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.47";
|
|
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.47';
|
|
50
50
|
const fs = __importStar(require("fs"));
|
|
51
51
|
const path = __importStar(require("path"));
|
|
52
52
|
const setup_userdata_1 = require("./setup-userdata");
|