@mavenagi/apps 0.0.0-alpha.0 → 0.0.0-alpha.1

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4,6 +4,7 @@ import fs from 'fs';
4
4
  // @ts-ignore
5
5
  import { compiledUserWorkerEntrypointScript } from './next.js';
6
6
  const p = (f) => `${fs.existsSync('./src') ? 'src/' : ''}${f}`;
7
+ fs.rmSync(p('app/mavenagi-cgi'), { recursive: true, force: true });
7
8
  fs.mkdirSync(p('app/mavenagi-cgi'), { recursive: true });
8
9
  fs.writeFileSync(p('app/mavenagi-cgi/next.ts'), `// @ts-nocheck\n${compiledUserWorkerEntrypointScript}`);
9
10
  Object.entries({
@@ -20,7 +21,7 @@ import userWorker from '../../../..'
20
21
 
21
22
  export const POST = ${name}
22
23
  export const runtime = userWorker.runtime ?? 'edge'
23
- export const maxDuration = 900
24
+ export const maxDuration = userWorker.maxDuration ?? 900
24
25
  `);
25
26
  });
26
27
  try {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mavenagi/apps",
3
3
  "type": "module",
4
- "version": "0.0.0-alpha.0",
4
+ "version": "0.0.0-alpha.1",
5
5
  "description": "CLI for developing apps for Maven AGI",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",