@shaik_munawar/doc-verify 1.0.2

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 (43) hide show
  1. package/.github/workflows/test-action.yml +20 -0
  2. package/.github/workflows/verify.yml +43 -0
  3. package/README.md +265 -0
  4. package/action.yml +42 -0
  5. package/dist/ai/cache.js +42 -0
  6. package/dist/ai/prompt.js +483 -0
  7. package/dist/ai/repair.js +131 -0
  8. package/dist/auth.proto +54 -0
  9. package/dist/engine/mocks/network-shim.js +29 -0
  10. package/dist/engine/runner.js +15 -0
  11. package/dist/index.js +110198 -0
  12. package/dist/licenses.txt +4049 -0
  13. package/dist/pagent.exe +0 -0
  14. package/dist/parser/extracts.js +39 -0
  15. package/dist/proto/channelz.proto +564 -0
  16. package/dist/proto/protoc-gen-validate/LICENSE +202 -0
  17. package/dist/proto/protoc-gen-validate/validate/validate.proto +797 -0
  18. package/dist/proto/xds/LICENSE +201 -0
  19. package/dist/proto/xds/xds/data/orca/v3/orca_load_report.proto +58 -0
  20. package/dist/proto/xds/xds/service/orca/v3/orca.proto +36 -0
  21. package/dist/protoc-gen-validate/LICENSE +202 -0
  22. package/dist/protoc-gen-validate/validate/validate.proto +797 -0
  23. package/dist/runners/base-runner.js +96 -0
  24. package/dist/runners/bash-runner.js +12 -0
  25. package/dist/runners/c-runner.js +12 -0
  26. package/dist/runners/cpp-runner.js +12 -0
  27. package/dist/runners/go-runner.js +12 -0
  28. package/dist/runners/index.js +96 -0
  29. package/dist/runners/java-runner.js +12 -0
  30. package/dist/runners/javascript-runner.js +16 -0
  31. package/dist/runners/lua-runner.js +12 -0
  32. package/dist/runners/perl-runner.js +12 -0
  33. package/dist/runners/php-runner.js +12 -0
  34. package/dist/runners/python-runner.js +12 -0
  35. package/dist/runners/ruby-runner.js +12 -0
  36. package/dist/runners/rust-runner.js +12 -0
  37. package/dist/runners/typescript-runner.js +16 -0
  38. package/dist/utils/badge.js +27 -0
  39. package/dist/utils/patcher.js +23 -0
  40. package/dist/xds/LICENSE +201 -0
  41. package/dist/xds/xds/data/orca/v3/orca_load_report.proto +58 -0
  42. package/dist/xds/xds/service/orca/v3/orca.proto +36 -0
  43. package/package.json +42 -0
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.runner = runner;
4
+ const index_js_1 = require("@/runners/index.js");
5
+ /**
6
+ * Runs a code snippet inside a secure Docker container.
7
+ * Supports multiple languages through the modular runner architecture.
8
+ */
9
+ async function runner(code, language) {
10
+ const languageRunner = (0, index_js_1.getRunner)(language);
11
+ if (!languageRunner) {
12
+ return { success: false, output: '', error: `Unsupported language: ${language}` };
13
+ }
14
+ return await languageRunner.run(code);
15
+ }