Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 Expand Up @@ -33,7 +33,7 @@
);
const plainText = markdownToTxt(mdFileContent);
const result = await handler.run(context, plainText);
console.log(result);

Check warning on line 36 in backend/src/build-system/__tests__/test-database-schemas.spec.ts

View workflow job for this annotation

GitHub Actions / autofix

Unexpected console statement
}, 30000);
},
);
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
12 changes: 11 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading