clippy-test 2.0.1 → 2.0.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/dist/postinstall.js
CHANGED
|
@@ -1,20 +1,7 @@
|
|
|
1
|
-
import { execSync } from 'child_process';
|
|
2
|
-
import { existsSync } from 'fs';
|
|
3
|
-
import { join } from 'path';
|
|
4
|
-
|
|
5
|
-
try {
|
|
6
|
-
const patchPackagePath = join(process.cwd(), 'node_modules', '.bin', 'patch-package');
|
|
7
|
-
const patchesDir = join(process.cwd(), 'patches');
|
|
8
|
-
|
|
9
|
-
if (existsSync(patchPackagePath) && existsSync(patchesDir)) {
|
|
10
|
-
execSync('patch-package', { stdio: 'ignore', timeout: 5000 });
|
|
11
|
-
}
|
|
12
|
-
} catch (error) {
|
|
13
|
-
}
|
|
14
|
-
|
|
15
1
|
console.log(`
|
|
16
|
-
OnCall installed
|
|
17
|
-
|
|
18
|
-
Run:
|
|
19
|
-
|
|
20
|
-
to get started
|
|
2
|
+
✨ OnCall CLI installed successfully!
|
|
3
|
+
|
|
4
|
+
Run:
|
|
5
|
+
oncall --help
|
|
6
|
+
to get started.
|
|
7
|
+
`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clippy-test",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"oncall": "bin/oncall.js"
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"files": [
|
|
9
9
|
"bin/",
|
|
10
10
|
"dist/",
|
|
11
|
+
"patches/",
|
|
11
12
|
"README.md",
|
|
12
13
|
"LICENSE"
|
|
13
14
|
],
|
|
@@ -15,11 +16,11 @@
|
|
|
15
16
|
"start": "tsx index.tsx",
|
|
16
17
|
"dev": "tsx index.tsx",
|
|
17
18
|
"code-hierarchy": "tsx code_hierarchy.ts",
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"copy-js": "mkdir -p dist/helpers && cp helpers/config-helpers.js dist/helpers/config-helpers.js && cp postinstall.js dist/postinstall.js",
|
|
19
|
+
"build": "tsc && npm run copy-js && npm run clean-maps",
|
|
20
|
+
"copy-js": "mkdir -p dist/helpers && cp helpers/config-helpers.js dist/helpers/config-helpers.js",
|
|
21
21
|
"clean-maps": "find dist -name '*.map' -type f -delete 2>/dev/null || true",
|
|
22
|
-
"prepublishOnly": "npm run build"
|
|
22
|
+
"prepublishOnly": "patch-package && npm run build",
|
|
23
|
+
"postinstall": "patch-package"
|
|
23
24
|
},
|
|
24
25
|
"dependencies": {
|
|
25
26
|
"@langchain/anthropic": "^1.3.3",
|
|
@@ -40,12 +41,12 @@
|
|
|
40
41
|
"react": "^19.2.0",
|
|
41
42
|
"ripgrep-node": "^1.0.0",
|
|
42
43
|
"ws": "^8.18.3",
|
|
43
|
-
"yaml": "^2.8.2"
|
|
44
|
+
"yaml": "^2.8.2",
|
|
45
|
+
"patch-package": "^8.0.1"
|
|
44
46
|
},
|
|
45
47
|
"devDependencies": {
|
|
46
48
|
"@types/node": "^24.9.1",
|
|
47
49
|
"@types/react": "^19.1.13",
|
|
48
|
-
"patch-package": "^8.0.1",
|
|
49
50
|
"tsx": "^4.19.2",
|
|
50
51
|
"typescript": "^5.9.3"
|
|
51
52
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
diff --git a/node_modules/@langchain/core/dist/messages/ai.js b/node_modules/@langchain/core/dist/messages/ai.js
|
|
2
|
+
index d881876..908fed8 100644
|
|
3
|
+
--- a/node_modules/@langchain/core/dist/messages/ai.js
|
|
4
|
+
+++ b/node_modules/@langchain/core/dist/messages/ai.js
|
|
5
|
+
@@ -29,12 +29,6 @@ var AIMessage = class extends BaseMessage {
|
|
6
|
+
initParams = fields;
|
|
7
|
+
const rawToolCalls = initParams.additional_kwargs?.tool_calls;
|
|
8
|
+
const toolCalls = initParams.tool_calls;
|
|
9
|
+
- if (!(rawToolCalls == null) && rawToolCalls.length > 0 && (toolCalls === void 0 || toolCalls.length === 0)) console.warn([
|
|
10
|
+
- "New LangChain packages are available that more efficiently handle",
|
|
11
|
+
- "tool calling.\n\nPlease upgrade your packages to versions that set",
|
|
12
|
+
- "message tool calls. e.g., `pnpm install @langchain/anthropic`,",
|
|
13
|
+
- "pnpm install @langchain/openai`, etc."
|
|
14
|
+
- ].join(" "));
|
|
15
|
+
try {
|
|
16
|
+
if (!(rawToolCalls == null) && toolCalls === void 0) {
|
|
17
|
+
const [toolCalls$1, invalidToolCalls] = defaultToolCallParser(rawToolCalls);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
diff --git a/node_modules/ripgrep-node/dist/index.js b/node_modules/ripgrep-node/dist/index.js
|
|
2
|
+
index 215d5e7..6c96596 100644
|
|
3
|
+
--- a/node_modules/ripgrep-node/dist/index.js
|
|
4
|
+
+++ b/node_modules/ripgrep-node/dist/index.js
|
|
5
|
+
@@ -71,7 +71,7 @@ class RipGrep {
|
|
6
|
+
this.output = child_process_1.execSync(rgCommand).toString();
|
|
7
|
+
}
|
|
8
|
+
catch (error) {
|
|
9
|
+
- console.log(error.stdout);
|
|
10
|
+
+ // console.log(error.stdout);
|
|
11
|
+
}
|
|
12
|
+
return this;
|
|
13
|
+
};
|