@ai-dev-tools/test-copilot-core 1.0.19
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.
- package/README.md +6 -0
- package/azure-pipelines.yml +51 -0
- package/out/cli/commands/appInsightTelemetry.d.ts +7 -0
- package/out/cli/commands/appInsightTelemetry.d.ts.map +1 -0
- package/out/cli/commands/appInsightTelemetry.js +76 -0
- package/out/cli/commands/appInsightTelemetry.js.map +1 -0
- package/out/cli/commands/cliConfig.d.ts +4 -0
- package/out/cli/commands/cliConfig.d.ts.map +1 -0
- package/out/cli/commands/cliConfig.js +68 -0
- package/out/cli/commands/cliConfig.js.map +1 -0
- package/out/cli/commands/prompt.d.ts +6 -0
- package/out/cli/commands/prompt.d.ts.map +1 -0
- package/out/cli/commands/prompt.js +29 -0
- package/out/cli/commands/prompt.js.map +1 -0
- package/out/cli/commands/ut.d.ts +14 -0
- package/out/cli/commands/ut.d.ts.map +1 -0
- package/out/cli/commands/ut.js +72 -0
- package/out/cli/commands/ut.js.map +1 -0
- package/out/cli/commands/utPipeCmdWrapper.d.ts +18 -0
- package/out/cli/commands/utPipeCmdWrapper.d.ts.map +1 -0
- package/out/cli/commands/utPipeCmdWrapper.js +37 -0
- package/out/cli/commands/utPipeCmdWrapper.js.map +1 -0
- package/out/cli/config/index.d.ts +15 -0
- package/out/cli/config/index.d.ts.map +1 -0
- package/out/cli/config/index.js +10 -0
- package/out/cli/config/index.js.map +1 -0
- package/out/cli/index.d.ts +3 -0
- package/out/cli/index.d.ts.map +1 -0
- package/out/cli/index.js +169 -0
- package/out/cli/index.js.map +1 -0
- package/out/cli/type.d.ts +11 -0
- package/out/cli/type.d.ts.map +1 -0
- package/out/cli/type.js +3 -0
- package/out/cli/type.js.map +1 -0
- package/out/cli/utils/ds.d.ts +3 -0
- package/out/cli/utils/ds.d.ts.map +1 -0
- package/out/cli/utils/ds.js +50 -0
- package/out/cli/utils/ds.js.map +1 -0
- package/out/cli/utils/gpt.d.ts +3 -0
- package/out/cli/utils/gpt.d.ts.map +1 -0
- package/out/cli/utils/gpt.js +63 -0
- package/out/cli/utils/gpt.js.map +1 -0
- package/out/core/analyze/cjs.d.ts +61 -0
- package/out/core/analyze/cjs.d.ts.map +1 -0
- package/out/core/analyze/cjs.js +358 -0
- package/out/core/analyze/cjs.js.map +1 -0
- package/out/core/analyze/class.d.ts +4 -0
- package/out/core/analyze/class.d.ts.map +1 -0
- package/out/core/analyze/class.js +32 -0
- package/out/core/analyze/class.js.map +1 -0
- package/out/core/analyze/declares.d.ts +7 -0
- package/out/core/analyze/declares.d.ts.map +1 -0
- package/out/core/analyze/declares.js +316 -0
- package/out/core/analyze/declares.js.map +1 -0
- package/out/core/analyze/deps.d.ts +8 -0
- package/out/core/analyze/deps.d.ts.map +1 -0
- package/out/core/analyze/deps.js +210 -0
- package/out/core/analyze/deps.js.map +1 -0
- package/out/core/analyze/functionComponent.d.ts +4 -0
- package/out/core/analyze/functionComponent.d.ts.map +1 -0
- package/out/core/analyze/functionComponent.js +77 -0
- package/out/core/analyze/functionComponent.js.map +1 -0
- package/out/core/analyze/functions.d.ts +4 -0
- package/out/core/analyze/functions.d.ts.map +1 -0
- package/out/core/analyze/functions.js +46 -0
- package/out/core/analyze/functions.js.map +1 -0
- package/out/core/analyze/index.d.ts +16 -0
- package/out/core/analyze/index.d.ts.map +1 -0
- package/out/core/analyze/index.js +149 -0
- package/out/core/analyze/index.js.map +1 -0
- package/out/core/analyze/index.type.d.ts +69 -0
- package/out/core/analyze/index.type.d.ts.map +1 -0
- package/out/core/analyze/index.type.js +14 -0
- package/out/core/analyze/index.type.js.map +1 -0
- package/out/core/analyze/utils/global.d.ts +2 -0
- package/out/core/analyze/utils/global.d.ts.map +1 -0
- package/out/core/analyze/utils/global.js +84 -0
- package/out/core/analyze/utils/global.js.map +1 -0
- package/out/core/analyzev2/declare/class.d.ts +4 -0
- package/out/core/analyzev2/declare/class.d.ts.map +1 -0
- package/out/core/analyzev2/declare/class.js +24 -0
- package/out/core/analyzev2/declare/class.js.map +1 -0
- package/out/core/analyzev2/declare/funcLike.d.ts +8 -0
- package/out/core/analyzev2/declare/funcLike.d.ts.map +1 -0
- package/out/core/analyzev2/declare/funcLike.js +71 -0
- package/out/core/analyzev2/declare/funcLike.js.map +1 -0
- package/out/core/analyzev2/declare/variable.d.ts +3 -0
- package/out/core/analyzev2/declare/variable.d.ts.map +1 -0
- package/out/core/analyzev2/declare/variable.js +15 -0
- package/out/core/analyzev2/declare/variable.js.map +1 -0
- package/out/core/analyzev2/file.d.ts +19 -0
- package/out/core/analyzev2/file.d.ts.map +1 -0
- package/out/core/analyzev2/file.js +449 -0
- package/out/core/analyzev2/file.js.map +1 -0
- package/out/core/analyzev2/index.d.ts +5 -0
- package/out/core/analyzev2/index.d.ts.map +1 -0
- package/out/core/analyzev2/index.js +30 -0
- package/out/core/analyzev2/index.js.map +1 -0
- package/out/core/analyzev2/type.d.ts +35 -0
- package/out/core/analyzev2/type.d.ts.map +1 -0
- package/out/core/analyzev2/type.js +3 -0
- package/out/core/analyzev2/type.js.map +1 -0
- package/out/core/config/index.d.ts +25 -0
- package/out/core/config/index.d.ts.map +1 -0
- package/out/core/config/index.js +14 -0
- package/out/core/config/index.js.map +1 -0
- package/out/core/constants.d.ts +9 -0
- package/out/core/constants.d.ts.map +1 -0
- package/out/core/constants.js +12 -0
- package/out/core/constants.js.map +1 -0
- package/out/core/features/common/base.d.ts +20 -0
- package/out/core/features/common/base.d.ts.map +1 -0
- package/out/core/features/common/base.js +77 -0
- package/out/core/features/common/base.js.map +1 -0
- package/out/core/features/common/types.d.ts +16 -0
- package/out/core/features/common/types.d.ts.map +1 -0
- package/out/core/features/common/types.js +12 -0
- package/out/core/features/common/types.js.map +1 -0
- package/out/core/features/generateFile.d.ts +31 -0
- package/out/core/features/generateFile.d.ts.map +1 -0
- package/out/core/features/generateFile.js +148 -0
- package/out/core/features/generateFile.js.map +1 -0
- package/out/core/features/generateSingle.d.ts +28 -0
- package/out/core/features/generateSingle.d.ts.map +1 -0
- package/out/core/features/generateSingle.js +149 -0
- package/out/core/features/generateSingle.js.map +1 -0
- package/out/core/features/index.d.ts +9 -0
- package/out/core/features/index.d.ts.map +1 -0
- package/out/core/features/index.js +16 -0
- package/out/core/features/index.js.map +1 -0
- package/out/core/features/lintFix.d.ts +2 -0
- package/out/core/features/lintFix.d.ts.map +1 -0
- package/out/core/features/lintFix.js +33 -0
- package/out/core/features/lintFix.js.map +1 -0
- package/out/core/features/mergeUTFile.d.ts +19 -0
- package/out/core/features/mergeUTFile.d.ts.map +1 -0
- package/out/core/features/mergeUTFile.js +63 -0
- package/out/core/features/mergeUTFile.js.map +1 -0
- package/out/core/features/removeFailedCases.d.ts +23 -0
- package/out/core/features/removeFailedCases.d.ts.map +1 -0
- package/out/core/features/removeFailedCases.js +81 -0
- package/out/core/features/removeFailedCases.js.map +1 -0
- package/out/core/features/updateSpec.d.ts +20 -0
- package/out/core/features/updateSpec.d.ts.map +1 -0
- package/out/core/features/updateSpec.js +98 -0
- package/out/core/features/updateSpec.js.map +1 -0
- package/out/core/features/validFix.d.ts +29 -0
- package/out/core/features/validFix.d.ts.map +1 -0
- package/out/core/features/validFix.js +219 -0
- package/out/core/features/validFix.js.map +1 -0
- package/out/core/generate/UTGen.d.ts +79 -0
- package/out/core/generate/UTGen.d.ts.map +1 -0
- package/out/core/generate/UTGen.js +795 -0
- package/out/core/generate/UTGen.js.map +1 -0
- package/out/core/llm/index.d.ts +9 -0
- package/out/core/llm/index.d.ts.map +1 -0
- package/out/core/llm/index.js +39 -0
- package/out/core/llm/index.js.map +1 -0
- package/out/core/llm/prompts/config.d.ts +6 -0
- package/out/core/llm/prompts/config.d.ts.map +1 -0
- package/out/core/llm/prompts/config.js +239 -0
- package/out/core/llm/prompts/config.js.map +1 -0
- package/out/core/llm/prompts/templates/common.d.ts +3 -0
- package/out/core/llm/prompts/templates/common.d.ts.map +1 -0
- package/out/core/llm/prompts/templates/common.js +27 -0
- package/out/core/llm/prompts/templates/common.js.map +1 -0
- package/out/core/llm/prompts/templates/fixCase.d.ts +4 -0
- package/out/core/llm/prompts/templates/fixCase.d.ts.map +1 -0
- package/out/core/llm/prompts/templates/fixCase.js +46 -0
- package/out/core/llm/prompts/templates/fixCase.js.map +1 -0
- package/out/core/llm/prompts/templates/fixLint.d.ts +3 -0
- package/out/core/llm/prompts/templates/fixLint.d.ts.map +1 -0
- package/out/core/llm/prompts/templates/fixLint.js +22 -0
- package/out/core/llm/prompts/templates/fixLint.js.map +1 -0
- package/out/core/llm/prompts/templates/genClassMemberUT.d.ts +5 -0
- package/out/core/llm/prompts/templates/genClassMemberUT.d.ts.map +1 -0
- package/out/core/llm/prompts/templates/genClassMemberUT.js +115 -0
- package/out/core/llm/prompts/templates/genClassMemberUT.js.map +1 -0
- package/out/core/llm/prompts/templates/genFuncUT.d.ts +4 -0
- package/out/core/llm/prompts/templates/genFuncUT.d.ts.map +1 -0
- package/out/core/llm/prompts/templates/genFuncUT.js +64 -0
- package/out/core/llm/prompts/templates/genFuncUT.js.map +1 -0
- package/out/core/llm/prompts/templates/mergeUT.d.ts +4 -0
- package/out/core/llm/prompts/templates/mergeUT.d.ts.map +1 -0
- package/out/core/llm/prompts/templates/mergeUT.js +106 -0
- package/out/core/llm/prompts/templates/mergeUT.js.map +1 -0
- package/out/core/llm/prompts/templates/msnStudio.d.ts +3 -0
- package/out/core/llm/prompts/templates/msnStudio.d.ts.map +1 -0
- package/out/core/llm/prompts/templates/msnStudio.js +36 -0
- package/out/core/llm/prompts/templates/msnStudio.js.map +1 -0
- package/out/core/llm/prompts/templates/snapshotUT.d.ts +4 -0
- package/out/core/llm/prompts/templates/snapshotUT.d.ts.map +1 -0
- package/out/core/llm/prompts/templates/snapshotUT.js +68 -0
- package/out/core/llm/prompts/templates/snapshotUT.js.map +1 -0
- package/out/core/llm/prompts/templates/updateSpecBlock.d.ts +3 -0
- package/out/core/llm/prompts/templates/updateSpecBlock.d.ts.map +1 -0
- package/out/core/llm/prompts/templates/updateSpecBlock.js +38 -0
- package/out/core/llm/prompts/templates/updateSpecBlock.js.map +1 -0
- package/out/core/llm/prompts/templates/updateSpecFile.d.ts +3 -0
- package/out/core/llm/prompts/templates/updateSpecFile.d.ts.map +1 -0
- package/out/core/llm/prompts/templates/updateSpecFile.js +30 -0
- package/out/core/llm/prompts/templates/updateSpecFile.js.map +1 -0
- package/out/core/llm/types.d.ts +80 -0
- package/out/core/llm/types.d.ts.map +1 -0
- package/out/core/llm/types.js +5 -0
- package/out/core/llm/types.js.map +1 -0
- package/out/core/quality/validateMockedTest.d.ts +3 -0
- package/out/core/quality/validateMockedTest.d.ts.map +1 -0
- package/out/core/quality/validateMockedTest.js +211 -0
- package/out/core/quality/validateMockedTest.js.map +1 -0
- package/out/core/utils/checkTestIgnore.d.ts +4 -0
- package/out/core/utils/checkTestIgnore.d.ts.map +1 -0
- package/out/core/utils/checkTestIgnore.js +52 -0
- package/out/core/utils/checkTestIgnore.js.map +1 -0
- package/out/core/utils/common.d.ts +4 -0
- package/out/core/utils/common.d.ts.map +1 -0
- package/out/core/utils/common.js +34 -0
- package/out/core/utils/common.js.map +1 -0
- package/out/core/utils/console.d.ts +8 -0
- package/out/core/utils/console.d.ts.map +1 -0
- package/out/core/utils/console.js +24 -0
- package/out/core/utils/console.js.map +1 -0
- package/out/core/utils/deps.d.ts +3 -0
- package/out/core/utils/deps.d.ts.map +1 -0
- package/out/core/utils/deps.js +58 -0
- package/out/core/utils/deps.js.map +1 -0
- package/out/core/utils/eslintRuleHandler.d.ts +3 -0
- package/out/core/utils/eslintRuleHandler.d.ts.map +1 -0
- package/out/core/utils/eslintRuleHandler.js +98 -0
- package/out/core/utils/eslintRuleHandler.js.map +1 -0
- package/out/core/utils/file.d.ts +18 -0
- package/out/core/utils/file.d.ts.map +1 -0
- package/out/core/utils/file.js +142 -0
- package/out/core/utils/file.js.map +1 -0
- package/out/core/utils/lint.d.ts +9 -0
- package/out/core/utils/lint.d.ts.map +1 -0
- package/out/core/utils/lint.js +95 -0
- package/out/core/utils/lint.js.map +1 -0
- package/out/core/utils/lru.d.ts +12 -0
- package/out/core/utils/lru.d.ts.map +1 -0
- package/out/core/utils/lru.js +47 -0
- package/out/core/utils/lru.js.map +1 -0
- package/out/core/utils/move.d.ts +12 -0
- package/out/core/utils/move.d.ts.map +1 -0
- package/out/core/utils/move.js +93 -0
- package/out/core/utils/move.js.map +1 -0
- package/out/core/utils/msnStudio.d.ts +13 -0
- package/out/core/utils/msnStudio.d.ts.map +1 -0
- package/out/core/utils/msnStudio.js +150 -0
- package/out/core/utils/msnStudio.js.map +1 -0
- package/out/core/utils/parseCustomizedCmd.d.ts +2 -0
- package/out/core/utils/parseCustomizedCmd.d.ts.map +1 -0
- package/out/core/utils/parseCustomizedCmd.js +32 -0
- package/out/core/utils/parseCustomizedCmd.js.map +1 -0
- package/out/core/utils/specBlock.d.ts +20 -0
- package/out/core/utils/specBlock.d.ts.map +1 -0
- package/out/core/utils/specBlock.js +231 -0
- package/out/core/utils/specBlock.js.map +1 -0
- package/out/core/utils/system.d.ts +13 -0
- package/out/core/utils/system.d.ts.map +1 -0
- package/out/core/utils/system.js +86 -0
- package/out/core/utils/system.js.map +1 -0
- package/out/core/utils/telemetry.d.ts +9 -0
- package/out/core/utils/telemetry.d.ts.map +1 -0
- package/out/core/utils/telemetry.js +32 -0
- package/out/core/utils/telemetry.js.map +1 -0
- package/out/core/utils/tsMorph.d.ts +13 -0
- package/out/core/utils/tsMorph.d.ts.map +1 -0
- package/out/core/utils/tsMorph.js +76 -0
- package/out/core/utils/tsMorph.js.map +1 -0
- package/out/core/valid/customizedLint.d.ts +2 -0
- package/out/core/valid/customizedLint.d.ts.map +1 -0
- package/out/core/valid/customizedLint.js +64 -0
- package/out/core/valid/customizedLint.js.map +1 -0
- package/out/core/valid/customizedTest.d.ts +3 -0
- package/out/core/valid/customizedTest.d.ts.map +1 -0
- package/out/core/valid/customizedTest.js +58 -0
- package/out/core/valid/customizedTest.js.map +1 -0
- package/out/core/valid/extractVitestConfig.d.ts +5 -0
- package/out/core/valid/extractVitestConfig.d.ts.map +1 -0
- package/out/core/valid/extractVitestConfig.js +97 -0
- package/out/core/valid/extractVitestConfig.js.map +1 -0
- package/out/core/valid/getViteConfig.d.ts +2 -0
- package/out/core/valid/getViteConfig.d.ts.map +1 -0
- package/out/core/valid/getViteConfig.js +65 -0
- package/out/core/valid/getViteConfig.js.map +1 -0
- package/out/core/valid/index.d.ts +15 -0
- package/out/core/valid/index.d.ts.map +1 -0
- package/out/core/valid/index.js +99 -0
- package/out/core/valid/index.js.map +1 -0
- package/out/core/valid/jest.d.ts +4 -0
- package/out/core/valid/jest.d.ts.map +1 -0
- package/out/core/valid/jest.js +121 -0
- package/out/core/valid/jest.js.map +1 -0
- package/out/core/valid/mock.d.ts +2 -0
- package/out/core/valid/mock.d.ts.map +1 -0
- package/out/core/valid/mock.js +149 -0
- package/out/core/valid/mock.js.map +1 -0
- package/out/core/valid/remove.d.ts +5 -0
- package/out/core/valid/remove.d.ts.map +1 -0
- package/out/core/valid/remove.js +109 -0
- package/out/core/valid/remove.js.map +1 -0
- package/out/core/valid/tag.d.ts +3 -0
- package/out/core/valid/tag.d.ts.map +1 -0
- package/out/core/valid/tag.js +91 -0
- package/out/core/valid/tag.js.map +1 -0
- package/out/core/valid/type.d.ts +83 -0
- package/out/core/valid/type.d.ts.map +1 -0
- package/out/core/valid/type.js +3 -0
- package/out/core/valid/type.js.map +1 -0
- package/out/core/valid/vitest.d.ts +3 -0
- package/out/core/valid/vitest.d.ts.map +1 -0
- package/out/core/valid/vitest.js +82 -0
- package/out/core/valid/vitest.js.map +1 -0
- package/out/index.d.ts +20 -0
- package/out/index.d.ts.map +1 -0
- package/out/index.js +60 -0
- package/out/index.js.map +1 -0
- package/out/setup.d.ts +11 -0
- package/out/setup.d.ts.map +1 -0
- package/out/setup.js +14 -0
- package/out/setup.js.map +1 -0
- package/out/types.d.ts +23 -0
- package/out/types.d.ts.map +1 -0
- package/out/types.js +3 -0
- package/out/types.js.map +1 -0
- package/package.json +39 -0
- package/package_devops.json +42 -0
package/out/index.js
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.getFailedCase = exports.runTest = exports.getPackageDocInitParams = exports.initializeDoc = exports.formatEventProps = exports.getSpecBlocks = exports.runLint = exports.getProject = exports.getMachineId = exports.sleep = exports.removeFile = exports.execAsync = exports.getConsole = exports.getFilesInDir = exports.getPackagesFrom = exports.toUnixStyle = exports.findProjectRoot = exports.extractCodeFromResponse = exports.CodeType = exports.readPromptConfigFile = exports.promptsToFiles = exports.getCustomizePrompt = exports.getPrompt = exports.UTGen = exports.setup = void 0;
|
|
18
|
+
var setup_1 = require("./setup");
|
|
19
|
+
Object.defineProperty(exports, "setup", { enumerable: true, get: function () { return setup_1.setup; } });
|
|
20
|
+
__exportStar(require("./types"), exports);
|
|
21
|
+
var UTGen_1 = require("./core/generate/UTGen");
|
|
22
|
+
Object.defineProperty(exports, "UTGen", { enumerable: true, get: function () { return UTGen_1.UTGen; } });
|
|
23
|
+
var llm_1 = require("./core/llm");
|
|
24
|
+
Object.defineProperty(exports, "getPrompt", { enumerable: true, get: function () { return llm_1.getPrompt; } });
|
|
25
|
+
Object.defineProperty(exports, "getCustomizePrompt", { enumerable: true, get: function () { return llm_1.getCustomizePrompt; } });
|
|
26
|
+
Object.defineProperty(exports, "promptsToFiles", { enumerable: true, get: function () { return llm_1.promptsToFiles; } });
|
|
27
|
+
Object.defineProperty(exports, "readPromptConfigFile", { enumerable: true, get: function () { return llm_1.readPromptConfigFile; } });
|
|
28
|
+
var index_type_1 = require("./core/analyze/index.type");
|
|
29
|
+
Object.defineProperty(exports, "CodeType", { enumerable: true, get: function () { return index_type_1.CodeType; } });
|
|
30
|
+
var common_1 = require("./core/utils/common");
|
|
31
|
+
Object.defineProperty(exports, "extractCodeFromResponse", { enumerable: true, get: function () { return common_1.extractCodeFromResponse; } });
|
|
32
|
+
var file_1 = require("./core/utils/file");
|
|
33
|
+
Object.defineProperty(exports, "findProjectRoot", { enumerable: true, get: function () { return file_1.findProjectRoot; } });
|
|
34
|
+
Object.defineProperty(exports, "toUnixStyle", { enumerable: true, get: function () { return file_1.toUnixStyle; } });
|
|
35
|
+
Object.defineProperty(exports, "getPackagesFrom", { enumerable: true, get: function () { return file_1.getPackagesFrom; } });
|
|
36
|
+
Object.defineProperty(exports, "getFilesInDir", { enumerable: true, get: function () { return file_1.getFilesInDir; } });
|
|
37
|
+
var console_1 = require("./core/utils/console");
|
|
38
|
+
Object.defineProperty(exports, "getConsole", { enumerable: true, get: function () { return console_1.getConsole; } });
|
|
39
|
+
var system_1 = require("./core/utils/system");
|
|
40
|
+
Object.defineProperty(exports, "execAsync", { enumerable: true, get: function () { return system_1.execAsync; } });
|
|
41
|
+
Object.defineProperty(exports, "removeFile", { enumerable: true, get: function () { return system_1.removeFile; } });
|
|
42
|
+
Object.defineProperty(exports, "sleep", { enumerable: true, get: function () { return system_1.sleep; } });
|
|
43
|
+
Object.defineProperty(exports, "getMachineId", { enumerable: true, get: function () { return system_1.getMachineId; } });
|
|
44
|
+
var tsMorph_1 = require("./core/utils/tsMorph");
|
|
45
|
+
Object.defineProperty(exports, "getProject", { enumerable: true, get: function () { return tsMorph_1.getProject; } });
|
|
46
|
+
var lint_1 = require("./core/utils/lint");
|
|
47
|
+
Object.defineProperty(exports, "runLint", { enumerable: true, get: function () { return lint_1.runLint; } });
|
|
48
|
+
var specBlock_1 = require("./core/utils/specBlock");
|
|
49
|
+
Object.defineProperty(exports, "getSpecBlocks", { enumerable: true, get: function () { return specBlock_1.getSpecBlocks; } });
|
|
50
|
+
var telemetry_1 = require("./core/utils/telemetry");
|
|
51
|
+
Object.defineProperty(exports, "formatEventProps", { enumerable: true, get: function () { return telemetry_1.formatEventProps; } });
|
|
52
|
+
var msnStudio_1 = require("./core/utils/msnStudio");
|
|
53
|
+
Object.defineProperty(exports, "initializeDoc", { enumerable: true, get: function () { return msnStudio_1.initializeDoc; } });
|
|
54
|
+
Object.defineProperty(exports, "getPackageDocInitParams", { enumerable: true, get: function () { return msnStudio_1.getPackageDocInitParams; } });
|
|
55
|
+
var valid_1 = require("./core/valid");
|
|
56
|
+
Object.defineProperty(exports, "runTest", { enumerable: true, get: function () { return valid_1.runTest; } });
|
|
57
|
+
Object.defineProperty(exports, "getFailedCase", { enumerable: true, get: function () { return valid_1.getFailedCase; } });
|
|
58
|
+
__exportStar(require("./core/constants"), exports);
|
|
59
|
+
__exportStar(require("./core/features"), exports);
|
|
60
|
+
//# sourceMappingURL=index.js.map
|
package/out/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,iCAAgC;AAAvB,8FAAA,KAAK,OAAA;AACd,0CAAwB;AAGxB,+CAA4E;AAAnE,8FAAA,KAAK,OAAA;AAEd,kCAWoB;AAJhB,gGAAA,SAAS,OAAA;AACT,yGAAA,kBAAkB,OAAA;AAClB,qGAAA,cAAc,OAAA;AACd,2GAAA,oBAAoB,OAAA;AAGxB,wDAAqD;AAA5C,sGAAA,QAAQ,OAAA;AACjB,8CAA8D;AAArD,iHAAA,uBAAuB,OAAA;AAChC,0CAAiG;AAAxF,uGAAA,eAAe,OAAA;AAAE,mGAAA,WAAW,OAAA;AAAE,uGAAA,eAAe,OAAA;AAAE,qGAAA,aAAa,OAAA;AACrE,gDAAkD;AAAzC,qGAAA,UAAU,OAAA;AACnB,8CAAiF;AAAxE,mGAAA,SAAS,OAAA;AAAE,oGAAA,UAAU,OAAA;AAAE,+FAAA,KAAK,OAAA;AAAE,sGAAA,YAAY,OAAA;AACnD,gDAAkD;AAAzC,qGAAA,UAAU,OAAA;AACnB,0CAA4C;AAAnC,+FAAA,OAAO,OAAA;AAChB,oDAAuD;AAA9C,0GAAA,aAAa,OAAA;AACtB,oDAA0D;AAAjD,6GAAA,gBAAgB,OAAA;AACzB,oDAAgF;AAAvE,0GAAA,aAAa,OAAA;AAAE,oHAAA,uBAAuB,OAAA;AAE/C,sCAAsD;AAA7C,gGAAA,OAAO,OAAA;AAAE,sGAAA,aAAa,OAAA;AAG/B,mDAAiC;AAEjC,kDAAgC"}
|
package/out/setup.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ConfigGetter } from "./core/config";
|
|
2
|
+
import { IGetResponse } from "./core/llm";
|
|
3
|
+
import { IConsole } from "./core/utils/console";
|
|
4
|
+
export interface SetupConfig {
|
|
5
|
+
getConfig: ConfigGetter;
|
|
6
|
+
getLLMResponse: IGetResponse;
|
|
7
|
+
getConsole?: IConsole;
|
|
8
|
+
sendTelemetry?: (...args: any[]) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function setup(config: SetupConfig): void;
|
|
11
|
+
//# sourceMappingURL=setup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../src/setup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAmB,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAkB,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAc,MAAM,sBAAsB,CAAC;AAG5D,MAAM,WAAW,WAAW;IACxB,SAAS,EAAE,YAAY,CAAC;IACxB,cAAc,EAAE,YAAY,CAAC;IAC7B,UAAU,CAAC,EAAE,QAAQ,CAAC;IACtB,aAAa,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;CAC5C;AAED,wBAAgB,KAAK,CAAC,MAAM,EAAE,WAAW,QAKxC"}
|
package/out/setup.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setup = setup;
|
|
4
|
+
const config_1 = require("./core/config");
|
|
5
|
+
const llm_1 = require("./core/llm");
|
|
6
|
+
const console_1 = require("./core/utils/console");
|
|
7
|
+
const telemetry_1 = require("./core/utils/telemetry");
|
|
8
|
+
function setup(config) {
|
|
9
|
+
(0, config_1.setConfigGetter)(config.getConfig);
|
|
10
|
+
(0, llm_1.setLLMFunction)(config.getLLMResponse);
|
|
11
|
+
config.getConsole && (0, console_1.setConsole)(config.getConsole);
|
|
12
|
+
config.sendTelemetry && (0, telemetry_1.setTelemetry)(config.sendTelemetry);
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=setup.js.map
|
package/out/setup.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup.js","sourceRoot":"","sources":["../src/setup.ts"],"names":[],"mappings":";;AAYA,sBAKC;AAjBD,0CAA8D;AAC9D,oCAA0D;AAC1D,kDAA4D;AAC5D,sDAAsD;AAStD,SAAgB,KAAK,CAAC,MAAmB;IACrC,IAAA,wBAAe,EAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAClC,IAAA,oBAAc,EAAC,MAAM,CAAC,cAAc,CAAC,CAAC;IACtC,MAAM,CAAC,UAAU,IAAI,IAAA,oBAAU,EAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IACnD,MAAM,CAAC,aAAa,IAAI,IAAA,wBAAY,EAAC,MAAM,CAAC,aAAa,CAAC,CAAC;AAC/D,CAAC"}
|
package/out/types.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface OnProgressEvent {
|
|
2
|
+
message?: string;
|
|
3
|
+
description?: string;
|
|
4
|
+
markdown?: string;
|
|
5
|
+
finish?: 1 | 2;
|
|
6
|
+
lastFailed?: boolean;
|
|
7
|
+
extra?: {
|
|
8
|
+
title?: string;
|
|
9
|
+
content?: string;
|
|
10
|
+
};
|
|
11
|
+
failed?: boolean;
|
|
12
|
+
indent?: number;
|
|
13
|
+
link?: {
|
|
14
|
+
title: string;
|
|
15
|
+
url: string;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export type OnProgress = (e: OnProgressEvent) => void;
|
|
19
|
+
export declare const enum ModuleType {
|
|
20
|
+
ESM = "esm",
|
|
21
|
+
CJS = "cjs"
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE;QACJ,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,OAAO,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE;QACH,KAAK,EAAE,MAAM,CAAC;QACd,GAAG,EAAE,MAAM,CAAC;KACf,CAAC;CACL;AAED,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,EAAE,eAAe,KAAK,IAAI,CAAC;AAEtD,0BAAkB,UAAU;IACxB,GAAG,QAAQ;IACX,GAAG,QAAQ;CACd"}
|
package/out/types.js
ADDED
package/out/types.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
|
package/package.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ai-dev-tools/test-copilot-core",
|
|
3
|
+
"version": "1.0.19",
|
|
4
|
+
"description": "Core library for test-copilot",
|
|
5
|
+
"main": "out/index.js",
|
|
6
|
+
"typings": "out/index.d.ts",
|
|
7
|
+
"bin": {
|
|
8
|
+
"test-copilot": "out/cli/index.js"
|
|
9
|
+
},
|
|
10
|
+
"scripts": {
|
|
11
|
+
"setup-npm-auth": "npm install -g @microsoft/artifacts-npm-credprovider --registry https://pkgs.dev.azure.com/mseng/226da8e7-b1c0-4167-9678-53f461e07706/_packaging/AzureArtifacts/npm/registry/ && set NUGET_CREDENTIALPROVIDER_VSTS_TOKENTYPE=SelfDescribing && artifacts-npm-credprovider",
|
|
12
|
+
"build": "tsc -p ./tsconfig.json",
|
|
13
|
+
"watch": "tsc -watch -p ./",
|
|
14
|
+
"pretest": "npm run build && npm run lint",
|
|
15
|
+
"lint": "eslint src --ext ts",
|
|
16
|
+
"knip": "knip -c ./knip.config.json",
|
|
17
|
+
"cli": "ts-node src/cli/index.ts",
|
|
18
|
+
"prepublishOnly": "npm run build"
|
|
19
|
+
},
|
|
20
|
+
"keywords": [],
|
|
21
|
+
"author": "",
|
|
22
|
+
"license": "ISC",
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@types/fs-extra": "^11.0.4",
|
|
25
|
+
"@types/jest": "29.5.14",
|
|
26
|
+
"@types/node": "18.19.101",
|
|
27
|
+
"eslint": "9.25.1",
|
|
28
|
+
"jest": "29.0.0",
|
|
29
|
+
"ts-node": "10.0.0",
|
|
30
|
+
"typescript": "5.8.3"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@azure/identity": "^4.11.1",
|
|
34
|
+
"applicationinsights": "1.8.10",
|
|
35
|
+
"fs-extra": "^11.3.0",
|
|
36
|
+
"ts-morph": "25.0.1",
|
|
37
|
+
"yargs": "17.7.2"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@aidevtools/test-copilot-core",
|
|
3
|
+
"version": "1.0.19",
|
|
4
|
+
"description": "Core library for test-copilot",
|
|
5
|
+
"main": "out/index.js",
|
|
6
|
+
"typings": "out/index.d.ts",
|
|
7
|
+
"bin": {
|
|
8
|
+
"test-copilot": "out/cli/index.js"
|
|
9
|
+
},
|
|
10
|
+
"publishConfig": {
|
|
11
|
+
"registry": "https://pkgs.dev.azure.com/msasg/ContentServices/_packaging/MSNews/npm/registry/"
|
|
12
|
+
},
|
|
13
|
+
"scripts": {
|
|
14
|
+
"setup-npm-auth": "npm install -g @microsoft/artifacts-npm-credprovider --registry https://pkgs.dev.azure.com/mseng/226da8e7-b1c0-4167-9678-53f461e07706/_packaging/AzureArtifacts/npm/registry/ && set NUGET_CREDENTIALPROVIDER_VSTS_TOKENTYPE=SelfDescribing && artifacts-npm-credprovider",
|
|
15
|
+
"build": "tsc -p ./tsconfig.json",
|
|
16
|
+
"watch": "tsc -watch -p ./",
|
|
17
|
+
"pretest": "npm run build && npm run lint",
|
|
18
|
+
"lint": "eslint src --ext ts",
|
|
19
|
+
"knip": "knip -c ./knip.config.json",
|
|
20
|
+
"cli": "ts-node src/cli/index.ts",
|
|
21
|
+
"prepublishOnly": "npm run build"
|
|
22
|
+
},
|
|
23
|
+
"keywords": [],
|
|
24
|
+
"author": "",
|
|
25
|
+
"license": "ISC",
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@types/fs-extra": "^11.0.4",
|
|
28
|
+
"@types/jest": "29.5.14",
|
|
29
|
+
"@types/node": "18.19.101",
|
|
30
|
+
"eslint": "9.25.1",
|
|
31
|
+
"jest": "29.0.0",
|
|
32
|
+
"ts-node": "10.0.0",
|
|
33
|
+
"typescript": "5.8.3"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@azure/identity": "^4.11.1",
|
|
37
|
+
"applicationinsights": "1.8.10",
|
|
38
|
+
"fs-extra": "^11.3.0",
|
|
39
|
+
"ts-morph": "25.0.1",
|
|
40
|
+
"yargs": "17.7.2"
|
|
41
|
+
}
|
|
42
|
+
}
|