vg-coder-cli 2.0.3 → 2.0.4

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 (83) hide show
  1. package/README.md +318 -92
  2. package/{vg/apps/api/src/assets/.gitkeep → change.sh} +0 -0
  3. package/package.json +4 -11
  4. package/src/index.js +0 -60
  5. package/src/server/views/dashboard.html +391 -613
  6. package/vg-coder-cli-1.0.17.tgz +0 -0
  7. package/vg-coder-cli-2.0.4.tgz +0 -0
  8. package/CHANGELOG.md +0 -59
  9. package/PUBLISHING.md +0 -86
  10. package/SYSTEM_PROMPT.md +0 -157
  11. package/init-nx-monorepo.sh +0 -107
  12. package/vg/.vscode/extensions.json +0 -8
  13. package/vg/.vscode/launch.json +0 -23
  14. package/vg/README-WORKSPACE.md +0 -82
  15. package/vg/README.md +0 -85
  16. package/vg/apps/api/project.json +0 -83
  17. package/vg/apps/api/src/app/analyze.controller.ts +0 -17
  18. package/vg/apps/api/src/app/analyze.service.ts +0 -57
  19. package/vg/apps/api/src/app/app.controller.ts +0 -12
  20. package/vg/apps/api/src/app/app.module.ts +0 -29
  21. package/vg/apps/api/src/app/app.service.ts +0 -8
  22. package/vg/apps/api/src/app/clean.controller.ts +0 -40
  23. package/vg/apps/api/src/app/execute.controller.ts +0 -19
  24. package/vg/apps/api/src/app/execute.service.ts +0 -46
  25. package/vg/apps/api/src/app/info.controller.ts +0 -12
  26. package/vg/apps/api/src/app/info.service.ts +0 -65
  27. package/vg/apps/api/src/main.ts +0 -28
  28. package/vg/apps/api/webpack.config.js +0 -25
  29. package/vg/apps/api-e2e/jest.config.cts +0 -18
  30. package/vg/apps/api-e2e/project.json +0 -17
  31. package/vg/apps/api-e2e/src/support/global-setup.ts +0 -16
  32. package/vg/apps/api-e2e/src/support/global-teardown.ts +0 -10
  33. package/vg/apps/api-e2e/src/support/test-setup.ts +0 -9
  34. package/vg/apps/ng-app/jest.config.ts +0 -21
  35. package/vg/apps/ng-app/project.json +0 -110
  36. package/vg/apps/ng-app/proxy.conf.json +0 -8
  37. package/vg/apps/ng-app/public/favicon.ico +0 -0
  38. package/vg/apps/ng-app/src/app/app.config.ts +0 -17
  39. package/vg/apps/ng-app/src/app/app.html +0 -1
  40. package/vg/apps/ng-app/src/app/app.routes.ts +0 -7
  41. package/vg/apps/ng-app/src/app/app.scss +0 -0
  42. package/vg/apps/ng-app/src/app/app.ts +0 -12
  43. package/vg/apps/ng-app/src/app/dashboard/dashboard.component.html +0 -87
  44. package/vg/apps/ng-app/src/app/dashboard/dashboard.component.scss +0 -290
  45. package/vg/apps/ng-app/src/app/dashboard/dashboard.component.ts +0 -236
  46. package/vg/apps/ng-app/src/app/nx-welcome.ts +0 -872
  47. package/vg/apps/ng-app/src/app/services/api.service.ts +0 -28
  48. package/vg/apps/ng-app/src/index.html +0 -13
  49. package/vg/apps/ng-app/src/main.ts +0 -5
  50. package/vg/apps/ng-app/src/styles.scss +0 -1
  51. package/vg/apps/ng-app/src/test-setup.ts +0 -6
  52. package/vg/bin/vg-workspace.js +0 -43
  53. package/vg/jest.config.ts +0 -6
  54. package/vg/nx.json +0 -85
  55. package/vg/package-lock.json +0 -30707
  56. package/vg/package-workspace.json +0 -38
  57. package/vg/package.json +0 -38
  58. package/vg/packages/client/data-access/README.md +0 -7
  59. package/vg/packages/client/data-access/jest.config.ts +0 -21
  60. package/vg/packages/client/data-access/project.json +0 -21
  61. package/vg/packages/client/data-access/src/index.ts +0 -1
  62. package/vg/packages/client/data-access/src/lib/data-access/data-access.html +0 -1
  63. package/vg/packages/client/data-access/src/lib/data-access/data-access.scss +0 -0
  64. package/vg/packages/client/data-access/src/lib/data-access/data-access.ts +0 -9
  65. package/vg/packages/client/data-access/src/test-setup.ts +0 -6
  66. package/vg/packages/core/README.md +0 -11
  67. package/vg/packages/core/jest.config.ts +0 -10
  68. package/vg/packages/core/package.json +0 -11
  69. package/vg/packages/core/project.json +0 -26
  70. package/vg/packages/core/src/index.ts +0 -6
  71. package/vg/packages/core/src/lib/core.ts +0 -3
  72. package/vg/packages/core/src/lib/detectors/project-detector.ts +0 -343
  73. package/vg/packages/core/src/lib/ignore/ignore-manager.ts +0 -315
  74. package/vg/packages/core/src/lib/scanner/file-scanner.ts +0 -675
  75. package/vg/packages/core/src/lib/tokenizer/token-manager.ts +0 -435
  76. package/vg/packages/core/src/lib/utils/bash-executor.ts +0 -146
  77. package/vg/packages/shared/data-types/README.md +0 -11
  78. package/vg/packages/shared/data-types/jest.config.ts +0 -10
  79. package/vg/packages/shared/data-types/package.json +0 -11
  80. package/vg/packages/shared/data-types/project.json +0 -26
  81. package/vg/packages/shared/data-types/src/index.ts +0 -1
  82. package/vg/packages/shared/data-types/src/lib/data-types.ts +0 -3
  83. package/vg/start-dev.sh +0 -22
@@ -1,28 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
- import { HttpClient } from '@angular/common/http';
3
- import { Observable } from 'rxjs';
4
-
5
- @Injectable({
6
- providedIn: 'root'
7
- })
8
- export class ApiService {
9
- private apiUrl = '/api'; // Proxy should handle this or absolute URL
10
-
11
- constructor(private http: HttpClient) { }
12
-
13
- analyze(path: string, options: any = {}): Observable<string> {
14
- return this.http.post(`${this.apiUrl}/analyze`, { path, options }, { responseType: 'text' });
15
- }
16
-
17
- execute(bash: string): Observable<any> {
18
- return this.http.post(`${this.apiUrl}/execute`, { bash });
19
- }
20
-
21
- getInfo(path: string): Observable<any> {
22
- return this.http.get(`${this.apiUrl}/info`, { params: { path } });
23
- }
24
-
25
- clean(output: string): Observable<any> {
26
- return this.http.delete(`${this.apiUrl}/clean`, { body: { output } });
27
- }
28
- }
@@ -1,13 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8" />
5
- <title>ng-app</title>
6
- <base href="/" />
7
- <meta name="viewport" content="width=device-width, initial-scale=1" />
8
- <link rel="icon" type="image/x-icon" href="favicon.ico" />
9
- </head>
10
- <body>
11
- <app-root></app-root>
12
- </body>
13
- </html>
@@ -1,5 +0,0 @@
1
- import { bootstrapApplication } from '@angular/platform-browser';
2
- import { appConfig } from './app/app.config';
3
- import { App } from './app/app';
4
-
5
- bootstrapApplication(App, appConfig).catch((err) => console.error(err));
@@ -1 +0,0 @@
1
- /* You can add global styles to this file, and also import other style files */
@@ -1,6 +0,0 @@
1
- import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';
2
-
3
- setupZoneTestEnv({
4
- errorOnUnknownElements: true,
5
- errorOnUnknownProperties: true,
6
- });
@@ -1,43 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- const { spawn } = require('child_process');
4
- const path = require('path');
5
- const chalk = require('chalk');
6
-
7
- console.log(chalk.blue('🚀 VG Coder Workspace'));
8
- console.log(chalk.yellow('Starting NestJS API and Angular Dashboard...'));
9
- console.log('');
10
-
11
- // Get the directory where this package is installed
12
- const workspaceDir = path.join(__dirname, '..');
13
-
14
- // Start both services
15
- const child = spawn('npx', ['nx', 'run-many', '--target=serve', '--projects=api,ng-app', '--parallel=2'], {
16
- cwd: workspaceDir,
17
- stdio: 'inherit',
18
- shell: true
19
- });
20
-
21
- child.on('error', (error) => {
22
- console.error(chalk.red('Failed to start:'), error.message);
23
- process.exit(1);
24
- });
25
-
26
- child.on('exit', (code) => {
27
- if (code !== 0 && code !== null) {
28
- console.error(chalk.red(`Process exited with code ${code}`));
29
- process.exit(code);
30
- }
31
- });
32
-
33
- // Handle graceful shutdown
34
- const shutdown = () => {
35
- console.log(chalk.yellow('\n\nShutting down...'));
36
- child.kill('SIGTERM');
37
- setTimeout(() => {
38
- process.exit(0);
39
- }, 1000);
40
- };
41
-
42
- process.on('SIGINT', shutdown);
43
- process.on('SIGTERM', shutdown);
package/vg/jest.config.ts DELETED
@@ -1,6 +0,0 @@
1
- import type { Config } from 'jest';
2
- import { getJestProjectsAsync } from '@nx/jest';
3
-
4
- export default async (): Promise<Config> => ({
5
- projects: await getJestProjectsAsync(),
6
- });
package/vg/nx.json DELETED
@@ -1,85 +0,0 @@
1
- {
2
- "$schema": "./node_modules/nx/schemas/nx-schema.json",
3
- "namedInputs": {
4
- "default": ["{projectRoot}/**/*", "sharedGlobals"],
5
- "production": [
6
- "default",
7
- "!{projectRoot}/.eslintrc.json",
8
- "!{projectRoot}/eslint.config.mjs",
9
- "!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
10
- "!{projectRoot}/tsconfig.spec.json",
11
- "!{projectRoot}/jest.config.[jt]s",
12
- "!{projectRoot}/src/test-setup.[jt]s",
13
- "!{projectRoot}/test-setup.[jt]s"
14
- ],
15
- "sharedGlobals": []
16
- },
17
- "plugins": [
18
- {
19
- "plugin": "@nx/webpack/plugin",
20
- "options": {
21
- "buildTargetName": "build",
22
- "serveTargetName": "serve",
23
- "previewTargetName": "preview",
24
- "buildDepsTargetName": "build-deps",
25
- "watchDepsTargetName": "watch-deps",
26
- "serveStaticTargetName": "serve-static"
27
- }
28
- },
29
- {
30
- "plugin": "@nx/eslint/plugin",
31
- "options": {
32
- "targetName": "eslint:lint"
33
- }
34
- }
35
- ],
36
- "targetDefaults": {
37
- "@angular/build:application": {
38
- "cache": true,
39
- "dependsOn": ["^build"],
40
- "inputs": ["production", "^production"]
41
- },
42
- "@nx/eslint:lint": {
43
- "cache": true,
44
- "inputs": [
45
- "default",
46
- "{workspaceRoot}/.eslintrc.json",
47
- "{workspaceRoot}/.eslintignore",
48
- "{workspaceRoot}/eslint.config.mjs"
49
- ]
50
- },
51
- "@nx/jest:jest": {
52
- "cache": true,
53
- "inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"],
54
- "options": {
55
- "passWithNoTests": true
56
- },
57
- "configurations": {
58
- "ci": {
59
- "ci": true,
60
- "codeCoverage": true
61
- }
62
- }
63
- },
64
- "@nx/js:tsc": {
65
- "cache": true,
66
- "dependsOn": ["^build"],
67
- "inputs": ["production", "^production"]
68
- }
69
- },
70
- "generators": {
71
- "@nx/angular:application": {
72
- "e2eTestRunner": "none",
73
- "linter": "eslint",
74
- "style": "scss",
75
- "unitTestRunner": "jest"
76
- },
77
- "@nx/angular:library": {
78
- "linter": "eslint",
79
- "unitTestRunner": "jest"
80
- },
81
- "@nx/angular:component": {
82
- "style": "scss"
83
- }
84
- }
85
- }