@egdesk/next-api-plugin 1.5.163 → 1.5.199
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.
|
@@ -33,5 +33,5 @@ export interface GenerateHelpersOptions {
|
|
|
33
33
|
apiKeyNames?: string[];
|
|
34
34
|
}
|
|
35
35
|
/** Bump when generated helper/middleware behavior changes; EGDesk regenerates stale projects. */
|
|
36
|
-
export declare const EGDESK_HELPERS_GENERATION_VERSION = "
|
|
36
|
+
export declare const EGDESK_HELPERS_GENERATION_VERSION = "6";
|
|
37
37
|
export declare function generateHelpers(projectPath: string, options?: GenerateHelpersOptions): void;
|
package/dist/generate-helpers.js
CHANGED
|
@@ -134,7 +134,7 @@ function ensureSchemaFile(projectPath, tables) {
|
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
136
|
/** Bump when generated helper/middleware behavior changes; EGDesk regenerates stale projects. */
|
|
137
|
-
exports.EGDESK_HELPERS_GENERATION_VERSION = '
|
|
137
|
+
exports.EGDESK_HELPERS_GENERATION_VERSION = '6';
|
|
138
138
|
function generateHelpers(projectPath, options = {}) {
|
|
139
139
|
const helperPath = path.join(projectPath, 'egdesk-helpers.ts');
|
|
140
140
|
const helperContent = `/**
|
|
@@ -154,11 +154,13 @@ function generateHelpers(projectPath, options = {}) {
|
|
|
154
154
|
* - egdesk.config.ts — auto-generated runtime snapshot (gitignored; do not edit)
|
|
155
155
|
*
|
|
156
156
|
* AI / external agents:
|
|
157
|
-
* -
|
|
158
|
-
*
|
|
159
|
-
* -
|
|
160
|
-
* -
|
|
161
|
-
* - If
|
|
157
|
+
* - Install MCP from EGDesk (MCP Server → Claude Desktop / Antigravity / Cursor). One server key \`egdesk\`
|
|
158
|
+
* runs \`mcp-stdio-proxy.js combined\` against \`http://localhost:8080\` (full tool catalog when services are enabled).
|
|
159
|
+
* - Do not rely on \`egdesk-recorder\` alone (Recorder on :8081) for My DB — that catalog is Playwright / phone / scheduler only.
|
|
160
|
+
* - Prefer MCP tools when present: user_data_list_projects → user_data_select_project → user_data_list_tables / query.
|
|
161
|
+
* - If tools are only browser_recording_* / phone_* / scheduler_*, fix MCP config (main \`egdesk\` on :8080, EGDesk running), then restart the agent.
|
|
162
|
+
* - For app code in this repo, keep using these helpers — MCP is optional for external agents.
|
|
163
|
+
* - If MCP tools are missing/empty, fall back to helpers + EGDESK-README.md and ask the user to reinstall MCP from EGDesk.
|
|
162
164
|
* - Tunnel: getEgdeskTunnel() (live prod/dev URLs + X-Api-Key). Embed into Apps Script with setupAppsScriptEgdeskTunnel().
|
|
163
165
|
*/
|
|
164
166
|
|
|
@@ -72,10 +72,10 @@ function loadGeneratedHelpersModule() {
|
|
|
72
72
|
node_fs_1.default.rmSync(tmpDir, { recursive: true, force: true });
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
(0, node_test_1.default)('EGDESK_HELPERS_GENERATION_VERSION is
|
|
75
|
+
(0, node_test_1.default)('EGDESK_HELPERS_GENERATION_VERSION is 6', () => {
|
|
76
76
|
const { helpers } = loadGeneratedHelpersModule();
|
|
77
|
-
strict_1.default.equal(generate_helpers_1.EGDESK_HELPERS_GENERATION_VERSION, '
|
|
78
|
-
strict_1.default.equal(helpers.EGDESK_HELPERS_GENERATION_VERSION, '
|
|
77
|
+
strict_1.default.equal(generate_helpers_1.EGDESK_HELPERS_GENERATION_VERSION, '6');
|
|
78
|
+
strict_1.default.equal(helpers.EGDESK_HELPERS_GENERATION_VERSION, '6');
|
|
79
79
|
});
|
|
80
80
|
(0, node_test_1.default)('queryTable normalizes where fallback and coerces primitive values to strings', async () => {
|
|
81
81
|
const { helpers, calls } = loadGeneratedHelpersModule();
|
|
@@ -779,6 +779,10 @@ export function VisitorGcpByoPanel() {
|
|
|
779
779
|
<p style={{ fontSize: '0.9rem', color: '#444' }}>
|
|
780
780
|
Upload a Web application OAuth client JSON. Secrets stay on the operator's EGDesk PC, not this site's server.
|
|
781
781
|
</p>
|
|
782
|
+
<p style={{ fontSize: '0.85rem', color: '#555', marginTop: 8 }}>
|
|
783
|
+
In Google Cloud Console → APIs & Services → Library, enable: Google Drive API, Google Sheets API,
|
|
784
|
+
Google Apps Script API, and Maps JavaScript API on the same project as your OAuth client.
|
|
785
|
+
</p>
|
|
782
786
|
<label style={{ display: 'block', marginBottom: 8 }}>
|
|
783
787
|
Handle (optional)
|
|
784
788
|
<input
|
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.220";
|
|
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.220';
|
|
50
50
|
const fs = __importStar(require("fs"));
|
|
51
51
|
const path = __importStar(require("path"));
|
|
52
52
|
const setup_userdata_1 = require("./setup-userdata");
|