From c0a625405d4be87aaae405a2624ee7c383f98c2b Mon Sep 17 00:00:00 2001 From: coffeeorgreentea <90069434+coffeeorgreentea@users.noreply.github.com> Date: Fri, 2 Aug 2024 05:02:36 -0400 Subject: [PATCH] feat: Add CGA (create-grimoire-app) module to build configuration and package.json --- grimoire/build.config.ts | 2 ++ grimoire/package.json | 12 +++++++++++- grimoire/pnpm-lock.yaml | 17 ++++++++++------- 3 files changed, 23 insertions(+), 8 deletions(-) diff --git a/grimoire/build.config.ts b/grimoire/build.config.ts index 78495b8ca..1b924ce03 100644 --- a/grimoire/build.config.ts +++ b/grimoire/build.config.ts @@ -30,6 +30,8 @@ export default defineBuildConfig({ { input: 'src/config/index.ts' }, // Core { input: 'src/core/index.ts' }, + // CGA + { input: 'src/cga/index.ts' }, // // Runtime // { input: 'src/runtime/', outDir: 'dist/runtime', format: 'esm' }, // // Kit diff --git a/grimoire/package.json b/grimoire/package.json index dd9c258a0..64e7cb427 100644 --- a/grimoire/package.json +++ b/grimoire/package.json @@ -10,6 +10,10 @@ "types": "./dist/cli/index.d.ts", "import": "./dist/cli/index.mjs" }, + "./cga": { + "types": "./dist/cga/index.d.ts", + "import": "./dist/cga/index.mjs" + }, ".": { "types": "./dist/core/index.d.ts", "import": "./dist/core/index.mjs" @@ -28,7 +32,8 @@ "types": "./dist/core/index.d.ts", "bin": { "grimoire": "./dist/cli/index.mjs", - "magick": "./dist/cli/index.mjs" + "magick": "./dist/cli/index.mjs", + "create-grimoire-app": "./dist/cga/index.mjs" }, "files": [ "dist", @@ -43,6 +48,8 @@ "lint": "eslint --cache . && biome check .", "lint:fix": "eslint --cache --fix . && biome check . --write", "grimoire": "jiti ./src/cli/index.ts", + "create-grimoire-app": "jiti ./src/cga/index.ts", + "cga": "pnpm create-grimoire-app", "prepack": "pnpm build", "gen-mirror": "pnpm jiti scripts/gen-mirror.ts", "gen-presets": "pnpm jiti scripts/gen-presets.ts", @@ -59,6 +66,7 @@ }, "dependencies": { "@cloudflare/kv-asset-handler": "^0.3.3", + "@magickml/agent-plugin": "^0.0.1", "@magickml/agent-service": "0.0.1", "@magickml/core-plugin": "^0.0.1", "@magickml/discord-plugin": "^0.0.1", @@ -69,6 +77,7 @@ "@magickml/slack-plugin": "^0.0.1", "@magickml/storage": "^0.0.1", "@magickml/utils": "^0.0.1", + "@magickml/vercel-sdk-core": "^0.0.1", "@netlify/functions": "^2.7.0", "@rollup/plugin-alias": "^5.1.0", "@rollup/plugin-commonjs": "^26.0.1", @@ -99,6 +108,7 @@ "escape-string-regexp": "^5.0.0", "etag": "^1.8.1", "fs-extra": "^11.2.0", + "giget": "^1.2.3", "globby": "^14.0.1", "gzip-size": "^7.0.0", "h3": "^1.11.1", diff --git a/grimoire/pnpm-lock.yaml b/grimoire/pnpm-lock.yaml index 34ec0bc2d..21431134d 100644 --- a/grimoire/pnpm-lock.yaml +++ b/grimoire/pnpm-lock.yaml @@ -15,6 +15,9 @@ importers: '@cloudflare/kv-asset-handler': specifier: ^0.3.3 version: 0.3.4 + '@magickml/agent-plugin': + specifier: ^0.0.1 + version: 0.0.1(@babel/traverse@7.25.3)(@faker-js/faker@8.4.1)(@types/node@22.0.2)(axios@1.6.8)(encoding@0.1.13)(nx@19.2.1)(rollup@4.19.2)(terser@5.31.3)(typescript@5.5.4)(vitest@1.6.0(@edge-runtime/vm@3.2.0)(@types/node@22.0.2)(terser@5.31.3)) '@magickml/agent-service': specifier: 0.0.1 version: 0.0.1(@babel/traverse@7.25.3)(@faker-js/faker@8.4.1)(@types/node@22.0.2)(axios@1.6.8)(encoding@0.1.13)(nx@19.2.1)(rollup@4.19.2)(terser@5.31.3)(typescript@5.5.4)(vitest@1.6.0(@edge-runtime/vm@3.2.0)(@types/node@22.0.2)(terser@5.31.3)) @@ -45,6 +48,9 @@ importers: '@magickml/utils': specifier: ^0.0.1 version: 0.0.1 + '@magickml/vercel-sdk-core': + specifier: ^0.0.1 + version: 0.0.1 '@netlify/functions': specifier: ^2.7.0 version: 2.8.1 @@ -135,6 +141,9 @@ importers: fs-extra: specifier: ^11.2.0 version: 11.2.0 + giget: + specifier: ^1.2.3 + version: 1.2.3 globby: specifier: ^14.0.1 version: 14.0.2 @@ -14554,12 +14563,6 @@ snapshots: '@nodelib/fs.scandir': 2.1.5 fastq: 1.17.1 - '@nrwl/devkit@19.2.1(nx@19.2.1(debug@4.3.5))': - dependencies: - '@nx/devkit': 19.2.1(nx@19.2.1(debug@4.3.5)) - transitivePeerDependencies: - - nx - '@nrwl/devkit@19.2.1(nx@19.2.1)': dependencies: '@nx/devkit': 19.2.1(nx@19.2.1) @@ -14666,7 +14669,7 @@ snapshots: '@nx/devkit@19.2.1(nx@19.2.1(debug@4.3.5))': dependencies: - '@nrwl/devkit': 19.2.1(nx@19.2.1(debug@4.3.5)) + '@nrwl/devkit': 19.2.1(nx@19.2.1) ejs: 3.1.10 enquirer: 2.3.6 ignore: 5.3.1