@proteinjs/conversation 2.2.1 → 2.2.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.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.2.2](https://github.com/proteinjs/conversation/compare/@proteinjs/conversation@2.2.1...@proteinjs/conversation@2.2.2) (2025-11-02)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* `KeyworkfToFilesIndexFunctions` should be clear that searchFiles keywords are file name matches. ([35468e6](https://github.com/proteinjs/conversation/commit/35468e61c969fea71368bb3d133758ba846ff25d))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [2.2.1](https://github.com/proteinjs/conversation/compare/@proteinjs/conversation@2.2.0...@proteinjs/conversation@2.2.1) (2025-11-02)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -42,13 +42,13 @@ var searchFilesFunction = function (module) {
|
|
|
42
42
|
return {
|
|
43
43
|
definition: {
|
|
44
44
|
name: exports.searchFilesFunctionName,
|
|
45
|
-
description: 'Get file paths to files
|
|
45
|
+
description: 'Get file paths to files whose name contains the keyword',
|
|
46
46
|
parameters: {
|
|
47
47
|
type: 'object',
|
|
48
48
|
properties: {
|
|
49
49
|
keyword: {
|
|
50
50
|
type: 'string',
|
|
51
|
-
description: 'Search files for this keyword',
|
|
51
|
+
description: 'Search files by name for this keyword',
|
|
52
52
|
},
|
|
53
53
|
},
|
|
54
54
|
required: ['keyword'],
|
|
@@ -58,7 +58,7 @@ var searchFilesFunction = function (module) {
|
|
|
58
58
|
return [2 /*return*/, module.searchFiles(params)];
|
|
59
59
|
}); }); },
|
|
60
60
|
instructions: [
|
|
61
|
-
"If the user is trying to interact with a file, but does not provide a path, you can find
|
|
61
|
+
"If the user is trying to interact with a file, but does not provide a path, you can find files whose name matches a keyword using the ".concat(exports.searchFilesFunctionName, " function"),
|
|
62
62
|
"Only call functions that take in filePaths with valid file paths, if you don't know the valid file path try and search for it by keyword with the ".concat(exports.searchFilesFunctionName, " function"),
|
|
63
63
|
"If the user references a file in a package without providing a path, use the ".concat(exports.searchFilesFunctionName, " function on the keyword to find potentially relevant files, and choose the one that references the package name in its path"),
|
|
64
64
|
],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeywordToFilesIndexFunctions.js","sourceRoot":"","sources":["../../../../src/fs/keyword_to_files_index/KeywordToFilesIndexFunctions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEa,QAAA,uBAAuB,GAAG,aAAa,CAAC;AAC9C,IAAM,mBAAmB,GAAG,UAAC,MAAiC;IACnE,OAAO;QACL,UAAU,EAAE;YACV,IAAI,EAAE,+BAAuB;YAC7B,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"KeywordToFilesIndexFunctions.js","sourceRoot":"","sources":["../../../../src/fs/keyword_to_files_index/KeywordToFilesIndexFunctions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEa,QAAA,uBAAuB,GAAG,aAAa,CAAC;AAC9C,IAAM,mBAAmB,GAAG,UAAC,MAAiC;IACnE,OAAO;QACL,UAAU,EAAE;YACV,IAAI,EAAE,+BAAuB;YAC7B,WAAW,EAAE,yDAAyD;YACtE,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,OAAO,EAAE;wBACP,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,uCAAuC;qBACrD;iBACF;gBACD,QAAQ,EAAE,CAAC,SAAS,CAAC;aACtB;SACF;QACD,IAAI,EAAE,UAAO,MAA2B;YAAK,sBAAA,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,EAAA;iBAAA;QACvE,YAAY,EAAE;YACZ,gJAAyI,+BAAuB,cAAW;YAC3K,4JAAqJ,+BAAuB,cAAW;YACvL,uFAAgF,+BAAuB,iIAA8H;SACtO;KACF,CAAC;AACJ,CAAC,CAAC;AAvBW,QAAA,mBAAmB,uBAuB9B;AAEF,IAAI;AACJ,kBAAkB;AAClB,+BAA+B;AAC/B,+DAA+D;AAC/D,oBAAoB;AACpB,wBAAwB;AACxB,sBAAsB;AACtB,yBAAyB;AACzB,2BAA2B;AAC3B,+CAA+C;AAC/C,qBAAqB;AACrB,8BAA8B;AAC9B,eAAe;AACf,aAAa;AACb,2CAA2C;AAC3C,6BAA6B;AAC7B,wHAAwH;AACxH,aAAa;AACb,WAAW;AACX,kCAAkC;AAClC,SAAS;AACT,OAAO;AACP,0FAA0F;AAC1F,oBAAoB;AACpB,yFAAyF;AACzF,OAAO;AACP,KAAK"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@proteinjs/conversation",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.2",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"publishConfig": {
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"tiktoken": "1.0.15",
|
|
39
39
|
"typescript": "5.2.2"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "7014ef6fe8e5853de0ac51f8e4be7b475786d5ab"
|
|
42
42
|
}
|
|
@@ -5,13 +5,13 @@ export const searchFilesFunction = (module: KeywordToFilesIndexModule) => {
|
|
|
5
5
|
return {
|
|
6
6
|
definition: {
|
|
7
7
|
name: searchFilesFunctionName,
|
|
8
|
-
description: 'Get file paths to files
|
|
8
|
+
description: 'Get file paths to files whose name contains the keyword',
|
|
9
9
|
parameters: {
|
|
10
10
|
type: 'object',
|
|
11
11
|
properties: {
|
|
12
12
|
keyword: {
|
|
13
13
|
type: 'string',
|
|
14
|
-
description: 'Search files for this keyword',
|
|
14
|
+
description: 'Search files by name for this keyword',
|
|
15
15
|
},
|
|
16
16
|
},
|
|
17
17
|
required: ['keyword'],
|
|
@@ -19,7 +19,7 @@ export const searchFilesFunction = (module: KeywordToFilesIndexModule) => {
|
|
|
19
19
|
},
|
|
20
20
|
call: async (params: { keyword: string }) => module.searchFiles(params),
|
|
21
21
|
instructions: [
|
|
22
|
-
`If the user is trying to interact with a file, but does not provide a path, you can find
|
|
22
|
+
`If the user is trying to interact with a file, but does not provide a path, you can find files whose name matches a keyword using the ${searchFilesFunctionName} function`,
|
|
23
23
|
`Only call functions that take in filePaths with valid file paths, if you don't know the valid file path try and search for it by keyword with the ${searchFilesFunctionName} function`,
|
|
24
24
|
`If the user references a file in a package without providing a path, use the ${searchFilesFunctionName} function on the keyword to find potentially relevant files, and choose the one that references the package name in its path`,
|
|
25
25
|
],
|