Skip to content

Commit

Permalink
Merge branch 'feat-adding-backend-code-generator-tuning' of https://g…
Browse files Browse the repository at this point in the history
…ithub.com/Sma1lboy/GeneratorAI into feat-adding-backend-code-generator-tuning
  • Loading branch information
ZHallen122 committed Dec 14, 2024
2 parents 799a093 + 10c4a3f commit 65b16f4
Show file tree
Hide file tree
Showing 30 changed files with 18 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { BuilderContext } from 'src/build-system/context';
import { DBSchemaHandler } from '../node/database-schemas/schemas';
import { DBSchemaHandler } from '../handlers/database/schemas/schemas';
import { readFileSync } from 'fs';
import markdownToTxt from 'markdown-to-txt';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as fs from 'fs-extra';
import * as path from 'path';
import { FileGeneratorHandler } from '../node/file-generate'; // Update with actual file path to the handler
import { FileGeneratorHandler } from '../handlers/file-generate'; // Update with actual file path to the handler

describe('FileGeneratorHandler', () => {
const projectSrcPath = 'src\\build-system\\__tests__\\test-project\\';
Expand Down
2 changes: 1 addition & 1 deletion backend/src/build-system/__tests__/test.file-arch.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { BuilderContext } from 'src/build-system/context';
import { FileArchGenerateHandler } from '../node/file-arch';
import { FileArchGenerateHandler } from '../handlers/file-arch';
import markdownToTxt from 'markdown-to-txt';
import { readFileSync } from 'fs-extra';

Expand Down
2 changes: 1 addition & 1 deletion backend/src/build-system/__tests__/test.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { BuilderContext } from '../context';
import { BuildSequenceExecutor } from '../executor';
import { BuildHandlerManager } from '../hanlder-manager';
import { ProjectInitHandler } from '../node/project-init';
import { ProjectInitHandler } from '../handlers/project-init';
import { BuildSequence } from '../types';
describe('Project Init Handler Test', () => {
let context: BuilderContext;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// src/build-system/prompts.ts

/**
* Collection of prompt functions used for various build system operations.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
getSupportedDatabaseTypes,
isSupportedDatabaseType,
parseGenerateTag,
} from '../../utils/database-utils';
} from '../../../utils/database-utils';
import { writeFile } from 'fs-extra';
import { prompts } from './prompt';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { BuildHandler, BuildResult } from 'src/build-system/types';
import { BuilderContext } from 'src/build-system/context';
import { generateFileArchPrompt } from './prompt';
import { Logger } from '@nestjs/common';
import { FileUtil } from 'src/build-system/util';
import { FileUtil } from 'src/build-system/utils/util';

export class FileArchGenerateHandler implements BuildHandler {
readonly id = 'op:FILE_ARCH::STATE:GENERATE';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import * as fs from 'fs/promises';
import * as path from 'path';
import { Logger } from '@nestjs/common';
import * as toposort from 'toposort';
import { VirtualDirectory } from '../../virtual-dir';
import { VirtualDirectory } from '../../../virtual-dir';
import { BuilderContext } from 'src/build-system/context';
import { BuildHandler, BuildResult } from 'src/build-system/types';
import { FileUtil } from 'src/build-system/util';
import { FileUtil } from 'src/build-system/utils/util';

export class FileGeneratorHandler {
private readonly logger = new Logger('FileGeneratorHandler');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { BuildHandler, BuildResult } from 'src/build-system/types';
import { BuilderContext } from 'src/build-system/context';
import { prompts } from './prompt/prompt';
import { prompts } from './prompt';
import { ModelProvider } from 'src/common/model-provider';
import { Logger } from '@nestjs/common';

Expand Down
18 changes: 9 additions & 9 deletions backend/src/build-system/hanlder-manager.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { ProjectInitHandler } from './node/project-init';
import { ProjectInitHandler } from './handlers/project-init';
import { BuildHandler } from './types';
import { PRDHandler } from './node/product-requirements-document/prd';
import { UXSitemapStructureHandler } from './node/ux-sitemap-structure';
import { UXDatamapHandler } from './node/ux-datamap';
import { UXSMDHandler } from './node/ux-sitemap-document/uxsmd';
import { FileStructureHandler } from './node/file-structure';
import { FileArchGenerateHandler } from './node/file-arch';
import { BackendCodeHandler } from './node/backend-code-generate';
import { DBSchemaHandler } from './node/database-schemas/schemas';
import { PRDHandler } from './handlers/product-manager/product-requirements-document/prd';
import { UXSitemapStructureHandler } from './handlers/ux/sitemap-structure';
import { UXDatamapHandler } from './handlers/ux/datamap';
import { UXSMDHandler } from './handlers/ux/sitemap-document/uxsmd';
import { FileStructureHandler } from './handlers/file-manager/file-structure';
import { FileArchGenerateHandler } from './handlers/file-manager/file-arch';
import { BackendCodeHandler } from './handlers/backend/code-generate';
import { DBSchemaHandler } from './handlers/database/schemas/schemas';

export class BuildHandlerManager {
private static instance: BuildHandlerManager;
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 65b16f4

Please sign in to comment.