sitepaige-mcp-server 0.7.13 → 0.7.14
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/defaultapp/db-mysql.ts
CHANGED
|
@@ -59,10 +59,7 @@ export async function db_query(
|
|
|
59
59
|
query: string,
|
|
60
60
|
params?: any[]
|
|
61
61
|
): Promise<any[]> {
|
|
62
|
-
|
|
63
|
-
if (typeof window === 'undefined' && !process.env.HOSTNAME && process.env.NODE_ENV === 'production') {
|
|
64
|
-
return [];
|
|
65
|
-
}
|
|
62
|
+
|
|
66
63
|
|
|
67
64
|
try {
|
|
68
65
|
// MySQL uses ? placeholders like SQLite, so no conversion needed
|
|
@@ -62,11 +62,7 @@ export async function db_query(
|
|
|
62
62
|
query: string,
|
|
63
63
|
params?: any[]
|
|
64
64
|
): Promise<any[]> {
|
|
65
|
-
|
|
66
|
-
if (typeof window === 'undefined' && !process.env.HOSTNAME && process.env.NODE_ENV === 'production') {
|
|
67
|
-
return [];
|
|
68
|
-
}
|
|
69
|
-
|
|
65
|
+
|
|
70
66
|
try {
|
|
71
67
|
// Convert SQLite ? placeholders to PostgreSQL $1, $2, etc.
|
|
72
68
|
let pgQuery = query;
|
package/defaultapp/db-sqlite.ts
CHANGED
|
@@ -97,10 +97,7 @@ export async function db_query(
|
|
|
97
97
|
query: string,
|
|
98
98
|
params?: any[]
|
|
99
99
|
): Promise<any[]> {
|
|
100
|
-
|
|
101
|
-
if (typeof window === 'undefined' && !process.env.HOSTNAME && process.env.NODE_ENV === 'production') {
|
|
102
|
-
return [];
|
|
103
|
-
}
|
|
100
|
+
|
|
104
101
|
|
|
105
102
|
try {
|
|
106
103
|
// Convert booleans to integers for SQLite3 compatibility
|
|
@@ -59,10 +59,7 @@ export async function db_query(
|
|
|
59
59
|
query: string,
|
|
60
60
|
params?: any[]
|
|
61
61
|
): Promise<any[]> {
|
|
62
|
-
|
|
63
|
-
if (typeof window === 'undefined' && !process.env.HOSTNAME && process.env.NODE_ENV === 'production') {
|
|
64
|
-
return [];
|
|
65
|
-
}
|
|
62
|
+
|
|
66
63
|
|
|
67
64
|
try {
|
|
68
65
|
// MySQL uses ? placeholders like SQLite, so no conversion needed
|
|
@@ -62,11 +62,7 @@ export async function db_query(
|
|
|
62
62
|
query: string,
|
|
63
63
|
params?: any[]
|
|
64
64
|
): Promise<any[]> {
|
|
65
|
-
|
|
66
|
-
if (typeof window === 'undefined' && !process.env.HOSTNAME && process.env.NODE_ENV === 'production') {
|
|
67
|
-
return [];
|
|
68
|
-
}
|
|
69
|
-
|
|
65
|
+
|
|
70
66
|
try {
|
|
71
67
|
// Convert SQLite ? placeholders to PostgreSQL $1, $2, etc.
|
|
72
68
|
let pgQuery = query;
|
|
@@ -97,10 +97,7 @@ export async function db_query(
|
|
|
97
97
|
query: string,
|
|
98
98
|
params?: any[]
|
|
99
99
|
): Promise<any[]> {
|
|
100
|
-
|
|
101
|
-
if (typeof window === 'undefined' && !process.env.HOSTNAME && process.env.NODE_ENV === 'production') {
|
|
102
|
-
return [];
|
|
103
|
-
}
|
|
100
|
+
|
|
104
101
|
|
|
105
102
|
try {
|
|
106
103
|
// Convert booleans to integers for SQLite3 compatibility
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sitepaige-mcp-server",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "MCP server for generating web applications using SitePaige AI. Generate frontend (FREE/12 credits) then optionally add backend (50 credits)",
|
|
6
6
|
"keywords": [
|