@appland/appmap 3.180.3 → 3.180.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.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [@appland/appmap-v3.180.4](https://github.com/getappmap/appmap-js/compare/@appland/appmap-v3.180.3...@appland/appmap-v3.180.4) (2025-01-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Include working changes during [@review](https://github.com/review) ([d2b8535](https://github.com/getappmap/appmap-js/commit/d2b85351d6f510409bd36025983a5cdd378845ef))
|
|
7
|
+
|
|
1
8
|
# [@appland/appmap-v3.180.3](https://github.com/getappmap/appmap-js/compare/@appland/appmap-v3.180.2...@appland/appmap-v3.180.3) (2025-01-02)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -62,6 +62,40 @@ To set the temperature to 0, you can use:
|
|
|
62
62
|
- It's important to ensure that the value provided for `/temperature` is a valid float.
|
|
63
63
|
- The effect of `/temperature` can directly impact the creativity and diversity of the generated text.
|
|
64
64
|
|
|
65
|
+
## /gather
|
|
66
|
+
|
|
67
|
+
The `/gather` option is used to enable or disable the context gathering feature. This option allows
|
|
68
|
+
you to control whether Navie should gather additional context from the repository to enhance its
|
|
69
|
+
responses. By default, context gathering is enabled in the following situations:
|
|
70
|
+
|
|
71
|
+
- When performing `@generate` and `@plan`.
|
|
72
|
+
- When the `overview` classifier is applied automatically by Navie to the question.
|
|
73
|
+
|
|
74
|
+
When enabled, gather will perform any or all of the following actions:
|
|
75
|
+
|
|
76
|
+
- List files in the repository.
|
|
77
|
+
- Fetch full the full content of a file in the repository.
|
|
78
|
+
- Search the repository for context by keyword.
|
|
79
|
+
|
|
80
|
+
Gatherer runs autonomously, there's no user control over what actions it will take. To explicitly
|
|
81
|
+
control the context that's available to Navie, you can other features such as pinned files,
|
|
82
|
+
`/include` and `/exclude` options.
|
|
83
|
+
|
|
84
|
+
**Syntax**
|
|
85
|
+
|
|
86
|
+
```shell
|
|
87
|
+
/gather=<true|false>
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
- `<true|false>`: A boolean value indicating whether to enable (`true`) or disable (`false`) the
|
|
91
|
+
context gathering feature.
|
|
92
|
+
|
|
93
|
+
**Example** To enable context gathering, you can use:
|
|
94
|
+
|
|
95
|
+
```shell
|
|
96
|
+
@generate /gather=true <question>
|
|
97
|
+
```
|
|
98
|
+
|
|
65
99
|
## /include and /exclude
|
|
66
100
|
|
|
67
101
|
The `/include` and `/exclude` options are used to include or exclude specific file patterns from the retrieved context.
|
|
@@ -183,6 +183,10 @@ options:
|
|
|
183
183
|
--enable-log, --no-enable-log
|
|
184
184
|
create a log file (default: False)
|
|
185
185
|
```
|
|
186
|
+
|
|
187
|
+
Note when executing a plain Python script with `appmap-python`, the `python` interpreter must
|
|
188
|
+
be explicitly invoked. For example: `appmap-python python my_script.py`
|
|
189
|
+
|
|
186
190
|
## Test recording
|
|
187
191
|
|
|
188
192
|
`appmap` supports recording [pytest](https://pytest.org) and
|
|
@@ -18,6 +18,7 @@ async function handleReview(question, userContext) {
|
|
|
18
18
|
const result = (0, navie_1.parseOptions)(question);
|
|
19
19
|
const base = result.options.stringValue('base');
|
|
20
20
|
const cwd = result.options.stringValue('project', (0, configuration_1.default)().projectDirectories[0]);
|
|
21
|
+
const diffContent = await Promise.all([(0, git_1.getWorkingDiff)(cwd), (0, git_1.getDiffLog)(undefined, base, cwd)]);
|
|
21
22
|
return {
|
|
22
23
|
applied: true,
|
|
23
24
|
userContext: [
|
|
@@ -27,7 +28,7 @@ async function handleReview(question, userContext) {
|
|
|
27
28
|
{
|
|
28
29
|
type: 'code-snippet',
|
|
29
30
|
location: navie_1.REVIEW_DIFF_LOCATION,
|
|
30
|
-
content:
|
|
31
|
+
content: diffContent.filter(Boolean).join('\n\n'),
|
|
31
32
|
},
|
|
32
33
|
],
|
|
33
34
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"review.js","sourceRoot":"","sources":["../../../src/rpc/explain/review.ts"],"names":[],"mappings":";;;;;AAAA,0CAAiF;AACjF,qEAA6C;AAC7C,
|
|
1
|
+
{"version":3,"file":"review.js","sourceRoot":"","sources":["../../../src/rpc/explain/review.ts"],"names":[],"mappings":";;;;;AAAA,0CAAiF;AACjF,qEAA6C;AAC7C,uCAA2D;AAE3D;;;;GAIG;AACY,KAAK,UAAU,YAAY,CACxC,QAAgB,EAChB,WAAiC;IAEjC,MAAM,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACtC,IAAI,IAAI,KAAK,SAAS;QAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAElD,MAAM,MAAM,GAAG,IAAA,oBAAY,EAAC,QAAQ,CAAC,CAAC;IACtC,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IAChD,MAAM,GAAG,GAAG,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,SAAS,EAAE,IAAA,uBAAa,GAAE,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC;IACzF,MAAM,WAAW,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,IAAA,oBAAc,EAAC,GAAG,CAAC,EAAE,IAAA,gBAAU,EAAC,SAAS,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IAC/F,OAAO;QACL,OAAO,EAAE,IAAI;QACb,WAAW,EAAE;YACX,GAAG,CAAC,OAAO,WAAW,KAAK,QAAQ;gBACjC,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,gBAAgB,EAAmC,CAAC;gBACrF,CAAC,CAAC,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,EAAE,CAAC;YACtB;gBACE,IAAI,EAAE,cAAc;gBACpB,QAAQ,EAAE,4BAAoB;gBAC9B,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;aAClD;SACF;KACF,CAAC;AACJ,CAAC;AAxBD,+BAwBC"}
|