gencow 0.1.198 → 0.1.200
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/lib/add-memory.mjs +21 -0
- package/lib/deploy-package-runtime.mjs +4 -1
- package/lib/install-features.mjs +2 -0
- package/package.json +3 -3
- package/runtime/server.mjs +1411 -1216
- package/templateFeature/memory/manifest.json +1 -0
- package/templates/ai-chat/schema.ts +2 -0
- package/server/index.js.map +0 -7
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { dirname, relative, resolve } from "path";
|
|
2
|
+
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "fs";
|
|
3
|
+
|
|
4
|
+
import { patchSchemaEntrySource } from "./add-rag.mjs";
|
|
5
|
+
|
|
6
|
+
export async function patchMemoryProjectWiring(deps) {
|
|
7
|
+
const cwd = deps.cwdImpl();
|
|
8
|
+
const exists = deps.existsSyncImpl ?? existsSync;
|
|
9
|
+
const projectConfig = await deps.loadConfig();
|
|
10
|
+
const functionsDir = projectConfig?.rootDir || "gencow";
|
|
11
|
+
const schemaPath = resolve(cwd, functionsDir, "schema.ts");
|
|
12
|
+
|
|
13
|
+
if (!exists(dirname(schemaPath))) mkdirSync(dirname(schemaPath), { recursive: true });
|
|
14
|
+
|
|
15
|
+
const schemaSource = exists(schemaPath) ? readFileSync(schemaPath, "utf-8") : "";
|
|
16
|
+
const nextSchemaSource = patchSchemaEntrySource(schemaSource, "./schema-memory");
|
|
17
|
+
if (nextSchemaSource !== schemaSource) {
|
|
18
|
+
writeFileSync(schemaPath, nextSchemaSource);
|
|
19
|
+
deps.logImpl(` ${deps.GREEN}✓${deps.RESET} ${relative(cwd, schemaPath)} — exported schema-memory`);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -348,8 +348,11 @@ export function createDeployPackageRuntime({
|
|
|
348
348
|
return true;
|
|
349
349
|
}
|
|
350
350
|
errorImpl(
|
|
351
|
-
"
|
|
351
|
+
"Backend deploy stopped before upload because this project registers no query, mutation, or procedure.",
|
|
352
352
|
);
|
|
353
|
+
infoImpl("Code: BACKEND_CAPABILITY_EMPTY");
|
|
354
|
+
infoImpl("Stage: candidate");
|
|
355
|
+
infoImpl("Next action: EDIT_AND_CHECK");
|
|
353
356
|
infoImpl("Add a backend procedure, or use gencow static <build-directory> for a frontend-only app.");
|
|
354
357
|
exitImpl(1);
|
|
355
358
|
return false;
|
package/lib/install-features.mjs
CHANGED
|
@@ -8,10 +8,12 @@ import {
|
|
|
8
8
|
logEnvFileOperationWithType,
|
|
9
9
|
} from "./backend-env-resolver.mjs";
|
|
10
10
|
import { installGoogleSsoAuthConfig } from "./add-sso.mjs";
|
|
11
|
+
import { patchMemoryProjectWiring } from "./add-memory.mjs";
|
|
11
12
|
import { patchRagProjectWiring } from "./add-rag.mjs";
|
|
12
13
|
import { patchTossPaymentsProjectWiring } from "./add-tosspayments.mjs";
|
|
13
14
|
|
|
14
15
|
export const SETUP_HOOKS = {
|
|
16
|
+
"memory-wiring": patchMemoryProjectWiring,
|
|
15
17
|
"rag-wiring": patchRagProjectWiring,
|
|
16
18
|
"sso-auth-config": installGoogleSsoAuthConfig,
|
|
17
19
|
"tosspayments-wiring": patchTossPaymentsProjectWiring,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gencow",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.200",
|
|
4
4
|
"description": "Gencow — AI Backend Engine",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/node": "^25.9.5",
|
|
35
35
|
"better-auth": "^1.6.23",
|
|
36
|
+
"@gencow/core": "0.1.42",
|
|
36
37
|
"@gencow/client": "0.2.6",
|
|
37
|
-
"@gencow/react": "0.2.6"
|
|
38
|
-
"@gencow/core": "0.1.42"
|
|
38
|
+
"@gencow/react": "0.2.6"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"prebuild": "pnpm --filter @gencow/migration-contract run build && pnpm --filter @gencow/server run build",
|