@appland/appmap 3.34.0 → 3.36.0
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/CHANGELOG.md +19 -0
- package/built/appmap.html +1 -1
- package/built/cli.js +2 -2
- package/built/cli.js.map +1 -1
- package/built/cmds/agentInstaller/install-agent.js +2 -2
- package/built/cmds/agentInstaller/install-agent.js.map +1 -1
- package/built/cmds/record/action/cancelRecording.js +2 -3
- package/built/cmds/record/action/cancelRecording.js.map +1 -1
- package/built/cmds/record/action/configureHostAndPort.js +6 -6
- package/built/cmds/record/action/configureHostAndPort.js.map +1 -1
- package/built/cmds/record/action/configureRemainingRequestOptions.js +7 -7
- package/built/cmds/record/action/configureRemainingRequestOptions.js.map +1 -1
- package/built/cmds/record/action/detectProcessCharacteristics.js +2 -3
- package/built/cmds/record/action/detectProcessCharacteristics.js.map +1 -1
- package/built/cmds/record/action/saveAppMap.js +2 -3
- package/built/cmds/record/action/saveAppMap.js.map +1 -1
- package/built/cmds/record/action/saveRecording.js +2 -3
- package/built/cmds/record/action/saveRecording.js.map +1 -1
- package/built/cmds/record/action/startRecording.js +2 -3
- package/built/cmds/record/action/startRecording.js.map +1 -1
- package/built/cmds/record/action/startTestCases.js +6 -5
- package/built/cmds/record/action/startTestCases.js.map +1 -1
- package/built/cmds/record/configuration.js +66 -84
- package/built/cmds/record/configuration.js.map +1 -1
- package/built/cmds/record/makeRequest.js +50 -0
- package/built/cmds/record/makeRequest.js.map +1 -0
- package/built/cmds/record/prompt/continueWithRequestOptionConfiguration.js +2 -3
- package/built/cmds/record/prompt/continueWithRequestOptionConfiguration.js.map +1 -1
- package/built/cmds/record/prompt/obtainTestCommands.js +7 -3
- package/built/cmds/record/prompt/obtainTestCommands.js.map +1 -1
- package/built/cmds/record/record.js +110 -83
- package/built/cmds/record/record.js.map +1 -1
- package/built/cmds/record/recordContext.js +11 -7
- package/built/cmds/record/recordContext.js.map +1 -1
- package/built/cmds/record/remoteRecording.js +7 -35
- package/built/cmds/record/remoteRecording.js.map +1 -1
- package/built/cmds/record/state/agentAvailableAndReady.js +2 -2
- package/built/cmds/record/state/agentAvailableAndReady.js.map +1 -1
- package/built/cmds/record/state/agentIsRecording.js +1 -1
- package/built/cmds/record/state/agentIsRecording.js.map +1 -1
- package/built/cmds/record/state/agentNotAvailable.js +37 -10
- package/built/cmds/record/state/agentNotAvailable.js.map +1 -1
- package/built/cmds/record/state/agentProcessNotRunning.js +2 -2
- package/built/cmds/record/state/agentProcessNotRunning.js.map +1 -1
- package/built/cmds/record/state/initial.js +6 -1
- package/built/cmds/record/state/initial.js.map +1 -1
- package/built/cmds/record/state/record_remote.js +3 -3
- package/built/cmds/record/state/record_remote.js.map +1 -1
- package/built/cmds/record/state/record_test.js +2 -2
- package/built/cmds/record/state/record_test.js.map +1 -1
- package/built/cmds/record/state/testCasesComplete.js +9 -6
- package/built/cmds/record/state/testCasesComplete.js.map +1 -1
- package/built/cmds/record/state/testCommandsAvailable.js +1 -1
- package/built/cmds/record/state/testCommandsAvailable.js.map +1 -1
- package/built/cmds/record/state/testCommandsNeeded.js +2 -2
- package/built/cmds/record/state/testCommandsNeeded.js.map +1 -1
- package/built/cmds/record/test/areTestCommandsConfigured.js +4 -4
- package/built/cmds/record/test/areTestCommandsConfigured.js.map +1 -1
- package/built/cmds/record/test/isAgentAvailable.js +12 -5
- package/built/cmds/record/test/isAgentAvailable.js.map +1 -1
- package/built/cmds/record/test/isRecordingInProgress.js +2 -3
- package/built/cmds/record/test/isRecordingInProgress.js.map +1 -1
- package/built/cmds/record/testCaseRecording.js +15 -14
- package/built/cmds/record/testCaseRecording.js.map +1 -1
- package/built/cmds/runCommand.js +3 -1
- package/built/cmds/runCommand.js.map +1 -1
- package/built/fingerprint/fingerprintWatchCommand.js +12 -10
- package/built/fingerprint/fingerprintWatchCommand.js.map +1 -1
- package/built/lib/ticket/openTicket.js +30 -36
- package/built/lib/ticket/openTicket.js.map +1 -1
- package/built/lib/ticket/zendesk.js +3 -2
- package/built/lib/ticket/zendesk.js.map +1 -1
- package/built/main.js.map +1 -1
- package/package.json +4 -4
|
@@ -3,29 +3,29 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.openTicket = void 0;
|
|
7
6
|
const chalk_1 = __importDefault(require("chalk"));
|
|
8
7
|
const userInteraction_1 = __importDefault(require("../../cmds/userInteraction"));
|
|
9
8
|
const telemetry_1 = __importDefault(require("../../telemetry"));
|
|
10
|
-
const zendesk_1 = require("./zendesk");
|
|
11
|
-
async function openTicket(errors) {
|
|
9
|
+
const zendesk_1 = __importDefault(require("./zendesk"));
|
|
10
|
+
async function openTicket(errors, helpMsg = ' ', prompt = true) {
|
|
12
11
|
var _a;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
12
|
+
errors = !Array.isArray(errors) ? [errors] : errors;
|
|
13
|
+
userInteraction_1.default.progress(`
|
|
14
|
+
Help is available from the AppMap support team!${helpMsg}
|
|
15
|
+
`);
|
|
16
|
+
if (await userInteraction_1.default.confirm(`Details of the error will be provided to the support team.
|
|
17
|
+
Would you like to see them?`)) {
|
|
18
|
+
userInteraction_1.default.error(errors.join('\n'));
|
|
19
|
+
}
|
|
20
|
+
if (prompt) {
|
|
21
|
+
const message = `Would you like to open a support request?`;
|
|
22
|
+
const { openTicket } = await userInteraction_1.default.prompt({
|
|
23
|
+
type: 'confirm',
|
|
24
|
+
name: 'openTicket',
|
|
25
|
+
default: true,
|
|
26
|
+
message,
|
|
27
|
+
});
|
|
28
|
+
if (!openTicket) {
|
|
29
29
|
userInteraction_1.default.progress([
|
|
30
30
|
`
|
|
31
31
|
You've elected not to open a support request for this problem.
|
|
@@ -36,25 +36,19 @@ If you change your mind, you can always reach us by email: support@appmap.io
|
|
|
36
36
|
telemetry_1.default.sendEvent({
|
|
37
37
|
name: 'open-ticket:declined',
|
|
38
38
|
});
|
|
39
|
-
return
|
|
39
|
+
return;
|
|
40
40
|
}
|
|
41
|
-
const { email } = await userInteraction_1.default.prompt([
|
|
42
|
-
{
|
|
43
|
-
name: 'email',
|
|
44
|
-
message: 'Please provide your email address, so that we can contact you with a response:',
|
|
45
|
-
validate: (v) => v.trim().length > 0 || 'Please enter your email address',
|
|
46
|
-
},
|
|
47
|
-
]);
|
|
48
|
-
return {
|
|
49
|
-
email,
|
|
50
|
-
openTicket: true,
|
|
51
|
-
};
|
|
52
|
-
});
|
|
53
|
-
if (!openTicket) {
|
|
54
|
-
return;
|
|
55
41
|
}
|
|
42
|
+
const { email } = await userInteraction_1.default.prompt([
|
|
43
|
+
{
|
|
44
|
+
name: 'email',
|
|
45
|
+
message: `The AppMap team will respond to you by email.
|
|
46
|
+
Please provide your email address to open the support request:`,
|
|
47
|
+
validate: (v) => v.trim().length > 0 || 'Please enter your email address',
|
|
48
|
+
},
|
|
49
|
+
]);
|
|
56
50
|
try {
|
|
57
|
-
const id = await (0, zendesk_1.
|
|
51
|
+
const id = await (0, zendesk_1.default)(errors, email);
|
|
58
52
|
telemetry_1.default.sendEvent({
|
|
59
53
|
name: 'open-ticket:success',
|
|
60
54
|
});
|
|
@@ -87,5 +81,5 @@ Please monitor your email for updates. Thank you for using AppMap!`, 'left');
|
|
|
87
81
|
${chalk_1.default.red('!')} This problem has been reported to the AppMap team.`);
|
|
88
82
|
}
|
|
89
83
|
}
|
|
90
|
-
exports.
|
|
84
|
+
exports.default = openTicket;
|
|
91
85
|
//# sourceMappingURL=openTicket.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openTicket.js","sourceRoot":"","sources":["../../../src/lib/ticket/openTicket.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"openTicket.js","sourceRoot":"","sources":["../../../src/lib/ticket/openTicket.ts"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAE1B,iFAA4C;AAC5C,gEAAwC;AACxC,wDAA6C;AAE9B,KAAK,UAAU,UAAU,CACtC,MAAyB,EACzB,UAAkB,GAAG,EACrB,SAAkB,IAAI;;IAEtB,MAAM,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;IAEpD,yBAAE,CAAC,QAAQ,CAAC;iDACmC,OAAO;CACvD,CAAC,CAAC;IAED,IACE,MAAM,yBAAE,CAAC,OAAO,CAAC;8BACS,CAAC,EAC3B;QACA,yBAAE,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;KAC7B;IAED,IAAI,MAAM,EAAE;QACV,MAAM,OAAO,GAAG,2CAA2C,CAAC;QAC5D,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,yBAAE,CAAC,MAAM,CAAC;YACrC,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,YAAY;YAClB,OAAO,EAAE,IAAI;YACb,OAAO;SACR,CAAC,CAAC;QAEH,IAAI,CAAC,UAAU,EAAE;YACf,yBAAE,CAAC,QAAQ,CACT;gBACE;;;;CAIT;aACQ,CAAC,IAAI,CAAC,IAAI,CAAC,CACb,CAAC;YAEF,mBAAS,CAAC,SAAS,CAAC;gBAClB,IAAI,EAAE,sBAAsB;aAC7B,CAAC,CAAC;YAEH,OAAO;SACR;KACF;IAED,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,yBAAE,CAAC,MAAM,CAAC;QAChC;YACE,IAAI,EAAE,OAAO;YACb,OAAO,EAAE;+DACgD;YACzD,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,IAAI,iCAAiC;SAC1E;KACF,CAAC,CAAC;IAEH,IAAI;QACF,MAAM,EAAE,GAAG,MAAM,IAAA,iBAAoB,EAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QACrD,mBAAS,CAAC,SAAS,CAAC;YAClB,IAAI,EAAE,qBAAqB;SAC5B,CAAC,CAAC;QACH,yBAAE,CAAC,OAAO,CACR;;SAEG,EAAE;;mEAEwD,EAC7D,MAAM,CACP,CAAC;KACH;IAAC,OAAO,CAAC,EAAE;QACV,MAAM,EAAE,GAAG,CAAc,CAAC;QAC1B,MAAM,QAAQ,GAAG,EAAE,CAAC,QAAQ,CAAC;QAC7B,IAAI,SAAiB,CAAC;QACtB,IAAI,KAAK,GAAuB,SAAS,CAAC;QAC1C,IAAI,QAAQ,EAAE;YACZ,SAAS,GAAG,eACV,CAAA,MAAA,EAAE,CAAC,QAAQ,0CAAE,MAAM,MAAK,GAAG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,OAC/C,EAAE,CAAC;YACH,KAAK,GAAG,QAAQ,CAAC,QAAQ,EAAE,CAAC;SAC7B;aAAM;YACL,SAAS,GAAG,yBAAyB,CAAC;SACvC;QACD,mBAAS,CAAC,SAAS,CAAC;YAClB,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACV,KAAK;aACN;SACF,CAAC,CAAC;QACH,yBAAE,CAAC,KAAK,CACN,GAAG,eAAK,CAAC,GAAG,CAAC,GAAG,CAAC;;EAErB,eAAK,CAAC,GAAG,CAAC,GAAG,CAAC,qDAAqD,CAChE,CAAC;KACH;AACH,CAAC;AA7FD,6BA6FC"}
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.APPMAP_SUPPORT_URL = void 0;
|
|
7
7
|
// There is a Zendesk API client: https://github.com/blakmatrix/node-zendesk . It appears to have
|
|
8
8
|
// some issues, notably incomplete typing (https://github.com/blakmatrix/node-zendesk/issues/251).
|
|
9
9
|
// We're only making a single API call here, so just use Axios instead.
|
|
@@ -31,6 +31,7 @@ const debugAdapter = async (config) => {
|
|
|
31
31
|
});
|
|
32
32
|
};
|
|
33
33
|
async function createRequest(errors, email) {
|
|
34
|
+
errors = !Array.isArray(errors) ? [errors] : errors;
|
|
34
35
|
const body = JSON.stringify({
|
|
35
36
|
request: {
|
|
36
37
|
comment: {
|
|
@@ -81,5 +82,5 @@ ${errors.map((e) => `===\n${(0, strip_ansi_1.default)(e)}\n===`).join('\n')}`,
|
|
|
81
82
|
});
|
|
82
83
|
}
|
|
83
84
|
}
|
|
84
|
-
exports.
|
|
85
|
+
exports.default = createRequest;
|
|
85
86
|
//# sourceMappingURL=zendesk.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zendesk.js","sourceRoot":"","sources":["../../../src/lib/ticket/zendesk.ts"],"names":[],"mappings":";;;;;;AAAA,iGAAiG;AACjG,kGAAkG;AAClG,uEAAuE;AACvE,kDAA8D;AAE9D,4DAAmC;AACnC,8CAA8C;AAEjC,QAAA,kBAAkB,GAC7B,OAAO,CAAC,GAAG,CAAC,kBAAkB,IAAI,6BAA6B,CAAC;AAElE,iGAAiG;AACjG,iEAAiE;AACjE,MAAM,YAAY,GAAG,KAAK,EAAE,MAA0B,EAAgB,EAAE;IACtE,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAC5B,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAC3B,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACxB,OAAO,CAAC,GAAG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