@appland/appmap 3.18.3 → 3.21.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.
Files changed (105) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/built/appmap.html +1 -1
  3. package/built/main.js.LICENSE.txt +1 -1
  4. package/built/main.js.map +1 -1
  5. package/built/package.json +3 -1
  6. package/built/src/cmds/agentInstaller/gradleInstaller.js +24 -3
  7. package/built/src/cmds/agentInstaller/gradleInstaller.js.map +1 -1
  8. package/built/src/cmds/record/action/cancelRecording.js +14 -0
  9. package/built/src/cmds/record/action/cancelRecording.js.map +1 -0
  10. package/built/src/cmds/record/action/configureHostAndPort.js +35 -0
  11. package/built/src/cmds/record/action/configureHostAndPort.js.map +1 -0
  12. package/built/src/cmds/record/action/configureRemainingRequestOptions.js +36 -0
  13. package/built/src/cmds/record/action/configureRemainingRequestOptions.js.map +1 -0
  14. package/built/src/cmds/record/action/detectProcessCharacteristics.js +60 -0
  15. package/built/src/cmds/record/action/detectProcessCharacteristics.js.map +1 -0
  16. package/built/src/cmds/record/{createRecording.js → action/saveRecording.js} +9 -24
  17. package/built/src/cmds/record/action/saveRecording.js.map +1 -0
  18. package/built/src/cmds/record/action/startRecording.js +20 -0
  19. package/built/src/cmds/record/action/startRecording.js.map +1 -0
  20. package/built/src/cmds/record/action/stopRecording.js +11 -0
  21. package/built/src/cmds/record/action/stopRecording.js.map +1 -0
  22. package/built/src/cmds/record/configuration.js +126 -0
  23. package/built/src/cmds/record/configuration.js.map +1 -0
  24. package/built/src/cmds/record/prompt/recordingInProgress.js +29 -0
  25. package/built/src/cmds/record/prompt/recordingInProgress.js.map +1 -0
  26. package/built/src/cmds/record/record.js +16 -11
  27. package/built/src/cmds/record/record.js.map +1 -1
  28. package/built/src/cmds/record/state/abort.js +8 -0
  29. package/built/src/cmds/record/state/abort.js.map +1 -0
  30. package/built/src/cmds/record/state/agentAvailableAndReady.js +14 -0
  31. package/built/src/cmds/record/state/agentAvailableAndReady.js.map +1 -0
  32. package/built/src/cmds/record/state/agentIsRecording.js +45 -0
  33. package/built/src/cmds/record/state/agentIsRecording.js.map +1 -0
  34. package/built/src/cmds/record/state/agentNotAvailable.js +41 -0
  35. package/built/src/cmds/record/state/agentNotAvailable.js.map +1 -0
  36. package/built/src/cmds/record/state/agentProcessNotRunning.js +30 -0
  37. package/built/src/cmds/record/state/agentProcessNotRunning.js.map +1 -0
  38. package/built/src/cmds/record/state/initial.js +27 -0
  39. package/built/src/cmds/record/state/initial.js.map +1 -0
  40. package/built/src/cmds/record/state/recordingInProgress.js +14 -0
  41. package/built/src/cmds/record/state/recordingInProgress.js.map +1 -0
  42. package/built/src/cmds/record/state/recordingStopped.js +12 -0
  43. package/built/src/cmds/record/state/recordingStopped.js.map +1 -0
  44. package/built/src/cmds/record/test/isAgentAvailable.js +23 -0
  45. package/built/src/cmds/record/test/isAgentAvailable.js.map +1 -0
  46. package/built/src/cmds/record/test/isRecordingInProgress.js +13 -0
  47. package/built/src/cmds/record/test/isRecordingInProgress.js.map +1 -0
  48. package/built/src/cmds/record/types/exitCode.js +10 -0
  49. package/built/src/cmds/record/types/exitCode.js.map +1 -0
  50. package/built/src/cmds/record/types/fileName.js +3 -0
  51. package/built/src/cmds/record/types/fileName.js.map +1 -0
  52. package/built/src/cmds/record/types/remoteRecordingStatus.js +3 -0
  53. package/built/src/cmds/record/types/remoteRecordingStatus.js.map +1 -0
  54. package/built/src/cmds/record/types/state.js +3 -0
  55. package/built/src/cmds/record/types/state.js.map +1 -0
  56. package/built/src/cmds/userInteraction.js +11 -6
  57. package/built/src/cmds/userInteraction.js.map +1 -1
  58. package/built/src/openapi/command.js +33 -17
  59. package/built/src/openapi/command.js.map +1 -1
  60. package/built/src/openapi/index.js +28 -0
  61. package/built/src/openapi/index.js.map +1 -0
  62. package/built/src/openapi/method.js +54 -49
  63. package/built/src/openapi/method.js.map +1 -1
  64. package/built/src/openapi/model.js +19 -22
  65. package/built/src/openapi/model.js.map +1 -1
  66. package/built/src/openapi/objectSchema.js +47 -0
  67. package/built/src/openapi/objectSchema.js.map +1 -0
  68. package/built/src/openapi/parseHTTPServerRequests.js +11 -0
  69. package/built/src/openapi/parseHTTPServerRequests.js.map +1 -0
  70. package/built/src/openapi/path.js +13 -14
  71. package/built/src/openapi/path.js.map +1 -1
  72. package/built/src/openapi/provider.js +73 -0
  73. package/built/src/openapi/provider.js.map +1 -0
  74. package/built/src/openapi/response.js +37 -13
  75. package/built/src/openapi/response.js.map +1 -1
  76. package/built/src/openapi/rpcRequest.js +87 -0
  77. package/built/src/openapi/rpcRequest.js.map +1 -0
  78. package/built/src/openapi/schemaInferrer.js +59 -0
  79. package/built/src/openapi/schemaInferrer.js.map +1 -0
  80. package/built/src/openapi/securitySchemes.js +14 -39
  81. package/built/src/openapi/securitySchemes.js.map +1 -1
  82. package/built/src/openapi/statusCodes.js +68 -0
  83. package/built/src/openapi/statusCodes.js.map +1 -0
  84. package/built/src/openapi/util.js +67 -47
  85. package/built/src/openapi/util.js.map +1 -1
  86. package/package.json +5 -3
  87. package/built/src/cmds/record/configureConnection.js +0 -16
  88. package/built/src/cmds/record/configureConnection.js.map +0 -1
  89. package/built/src/cmds/record/configureHostAndPort.js +0 -38
  90. package/built/src/cmds/record/configureHostAndPort.js.map +0 -1
  91. package/built/src/cmds/record/configureRemainingRequestOptions.js +0 -28
  92. package/built/src/cmds/record/configureRemainingRequestOptions.js.map +0 -1
  93. package/built/src/cmds/record/confirmProcessCharacteristics.js +0 -75
  94. package/built/src/cmds/record/confirmProcessCharacteristics.js.map +0 -1
  95. package/built/src/cmds/record/createRecording.js.map +0 -1
  96. package/built/src/cmds/record/intro.js +0 -22
  97. package/built/src/cmds/record/intro.js.map +0 -1
  98. package/built/src/cmds/record/ready.js +0 -19
  99. package/built/src/cmds/record/ready.js.map +0 -1
  100. package/built/src/cmds/record/testConnection.js +0 -35
  101. package/built/src/cmds/record/testConnection.js.map +0 -1
  102. package/built/src/openapi/schema.js +0 -34
  103. package/built/src/openapi/schema.js.map +0 -1
  104. package/built/src/openapi/settings.js +0 -10
  105. package/built/src/openapi/settings.js.map +0 -1
@@ -1,22 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const userInteraction_1 = __importDefault(require("../userInteraction"));
7
- const ready_1 = __importDefault(require("./ready"));
8
- async function default_1() {
9
- userInteraction_1.default.progress(`To create a recording, the first thing you need to do is run your app using
10
- the instructions in the AppMap documentation. Choose the most suitable link here,
11
- then configure and launch your app process. Press enter wen you're ready to continue.`);
12
- userInteraction_1.default.progress(`
13
- Rails: https://appland.com/docs/reference/appmap-ruby.html#remote-recording
14
- Django: https://appland.com/docs/reference/appmap-python.html#django
15
- Flask: https://appland.com/docs/reference/appmap-python.html#flask
16
- Java: https://appland.com/docs/reference/appmap-java.html#remote-recording
17
- JavaScript: https://appland.com/docs/reference/appmap-agent-js.html#remote-recording
18
- `);
19
- return (0, ready_1.default)();
20
- }
21
- exports.default = default_1;
22
- //# sourceMappingURL=intro.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"intro.js","sourceRoot":"","sources":["../../../../src/cmds/record/intro.ts"],"names":[],"mappings":";;;;;AAAA,yEAAoC;AACpC,oDAA4B;AAEb,KAAK;IAClB,yBAAE,CAAC,QAAQ,CAAC;;wFAE0E,CAAC,CAAC;IACxF,yBAAE,CAAC,QAAQ,CAAC;;;;;;OAMP,CAAC,CAAC;IAEP,OAAO,IAAA,eAAK,GAAE,CAAC;AACjB,CAAC;AAbD,4BAaC"}
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const userInteraction_1 = __importDefault(require("../userInteraction"));
7
- async function ready() {
8
- const { ready } = await userInteraction_1.default.prompt({
9
- type: 'confirm',
10
- name: 'ready',
11
- message: 'Ready?',
12
- default: 'y',
13
- });
14
- if (!ready) {
15
- return ready();
16
- }
17
- }
18
- exports.default = ready;
19
- //# sourceMappingURL=ready.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ready.js","sourceRoot":"","sources":["../../../../src/cmds/record/ready.ts"],"names":[],"mappings":";;;;;AAAA,yEAAoC;AAErB,KAAK,UAAU,KAAK;IACjC,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,yBAAE,CAAC,MAAM,CAAC;QAChC,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,QAAQ;QACjB,OAAO,EAAE,GAAG;KACb,CAAC,CAAC;IACH,IAAI,CAAC,KAAK,EAAE;QACV,OAAO,KAAK,EAAE,CAAC;KAChB;AACH,CAAC;AAVD,wBAUC"}
@@ -1,35 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const userInteraction_1 = __importDefault(require("../userInteraction"));
7
- const configureConnection_1 = __importDefault(require("./configureConnection"));
8
- const remoteRecording_1 = __importDefault(require("./remoteRecording"));
9
- async function testConnection(requestOptions) {
10
- const retryConnection = async () => {
11
- const { reconfigure } = await userInteraction_1.default.prompt({
12
- type: 'confirm',
13
- name: 'reconfigure',
14
- message: 'Do you want to change any of the server connection parameters?',
15
- });
16
- if (reconfigure) {
17
- await (0, configureConnection_1.default)(requestOptions);
18
- }
19
- await testConnection(requestOptions);
20
- };
21
- userInteraction_1.default.status = `Performing a test connection to the app`;
22
- let status = null;
23
- while (!status) {
24
- try {
25
- status = await new remoteRecording_1.default(requestOptions).status();
26
- userInteraction_1.default.success(`Great! I am able to connect to the AppMap agent.`);
27
- }
28
- catch (e) {
29
- userInteraction_1.default.error(`Uh-oh. I can't connect to the AppMap agent there. The error I got is:\n\n${e}\n`);
30
- await retryConnection();
31
- }
32
- }
33
- }
34
- exports.default = testConnection;
35
- //# sourceMappingURL=testConnection.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"testConnection.js","sourceRoot":"","sources":["../../../../src/cmds/record/testConnection.ts"],"names":[],"mappings":";;;;;AACA,yEAAoC;AACpC,gFAAwD;AACxD,wEAAgD;AAGjC,KAAK,UAAU,cAAc,CAAC,cAA8B;IACzE,MAAM,eAAe,GAAG,KAAK,IAAI,EAAE;QACjC,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,yBAAE,CAAC,MAAM,CAAC;YACtC,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,aAAa;YACnB,OAAO,EAAE,gEAAgE;SAC1E,CAAC,CAAC;QACH,IAAI,WAAW,EAAE;YACf,MAAM,IAAA,6BAAmB,EAAC,cAAc,CAAC,CAAC;SAC3C;QACD,MAAM,cAAc,CAAC,cAAc,CAAC,CAAC;IACvC,CAAC,CAAC;IAEF,yBAAE,CAAC,MAAM,GAAG,yCAAyC,CAAC;IAEtD,IAAI,MAAM,GAAiC,IAAI,CAAC;IAChD,OAAO,CAAC,MAAM,EAAE;QACd,IAAI;YACF,MAAM,GAAG,MAAM,IAAI,yBAAe,CAAC,cAAc,CAAC,CAAC,MAAM,EAAE,CAAC;YAC5D,yBAAE,CAAC,OAAO,CAAC,kDAAkD,CAAC,CAAC;SAChE;QAAC,OAAO,CAAC,EAAE;YACV,yBAAE,CAAC,KAAK,CACN,4EAA4E,CAAC,IAAI,CAClF,CAAC;YACF,MAAM,eAAe,EAAE,CAAC;SACzB;KACF;AACH,CAAC;AA3BD,iCA2BC"}
@@ -1,34 +0,0 @@
1
- "use strict";
2
- const { messageToOpenAPISchema } = require('./util');
3
- class Schema {
4
- constructor() {
5
- this.examples = [];
6
- }
7
- addExample(message) {
8
- this.examples.push(message);
9
- }
10
- get empty() {
11
- return this.examples.length > 0;
12
- }
13
- schema() {
14
- const properties = {};
15
- this.examples
16
- .sort((a, b) => a.name.localeCompare(b.name))
17
- .forEach((message) => {
18
- if (properties[message.name]) {
19
- return;
20
- }
21
- // eslint-disable-next-line no-multi-assign
22
- properties[message.name] = messageToOpenAPISchema(message);
23
- });
24
- if (Object.keys(properties).length === 0) {
25
- return null;
26
- }
27
- return {
28
- type: 'object',
29
- properties,
30
- };
31
- }
32
- }
33
- module.exports = Schema;
34
- //# sourceMappingURL=schema.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/openapi/schema.js"],"names":[],"mappings":";AAAA,MAAM,EAAE,sBAAsB,EAAE,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;AAErD,MAAM,MAAM;IACV;QACE,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;IACrB,CAAC;IAED,UAAU,CAAC,OAAO;QAChB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC9B,CAAC;IAED,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC;IAClC,CAAC;IAED,MAAM;QACJ,MAAM,UAAU,GAAG,EAAE,CAAC;QACtB,IAAI,CAAC,QAAQ;aACV,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;aAC5C,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YACnB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;gBAC5B,OAAO;aACR;YACD,2CAA2C;YAC3C,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,sBAAsB,CAAC,OAAO,CAAC,CAAC;QAC7D,CAAC,CAAC,CAAC;QACL,IAAI,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE;YACxC,OAAO,IAAI,CAAC;SACb;QAED,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,UAAU;SACX,CAAC;IACJ,CAAC;CACF;AAED,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC"}
@@ -1,10 +0,0 @@
1
- "use strict";
2
- let isVerbose = false;
3
- function verbose(v = null) {
4
- if (v !== null) {
5
- isVerbose = v;
6
- }
7
- return isVerbose;
8
- }
9
- module.exports = { verbose };
10
- //# sourceMappingURL=settings.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../src/openapi/settings.js"],"names":[],"mappings":";AAAA,IAAI,SAAS,GAAG,KAAK,CAAC;AACtB,SAAS,OAAO,CAAC,CAAC,GAAG,IAAI;IACvB,IAAI,CAAC,KAAK,IAAI,EAAE;QACd,SAAS,GAAG,CAAC,CAAC;KACf;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,MAAM,CAAC,OAAO,GAAG,EAAE,OAAO,EAAE,CAAC"}