agent-yes 1.44.2 → 1.44.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/cli.js +4 -1
- package/package.json +4 -1
- package/scripts/patch-mcp-sdk.js +50 -0
package/dist/cli.js
CHANGED
|
@@ -28482,8 +28482,10 @@ var package_default = {
|
|
|
28482
28482
|
registry: "https://registry.npmjs.org/"
|
|
28483
28483
|
},
|
|
28484
28484
|
scripts: {
|
|
28485
|
+
prebuild: "node ./scripts/patch-mcp-sdk.js",
|
|
28485
28486
|
build: "bun build ./ts/cli.ts ./ts/index.ts --outdir=dist --target=node --sourcemap --external=@snomiao/bun-pty --external=bun-pty --external=node-pty --external=from-node-stream --external=bun --external=@modelcontextprotocol/sdk",
|
|
28486
28487
|
postbuild: "bun ./ts/postbuild.ts",
|
|
28488
|
+
postinstall: "node ./scripts/patch-mcp-sdk.js",
|
|
28487
28489
|
demo: "bun run build && bun link && claude-yes -- demo",
|
|
28488
28490
|
dev: "bun ts/index.ts",
|
|
28489
28491
|
typecheck: "tsgo --noEmit --skipLibCheck",
|
|
@@ -28516,6 +28518,7 @@ var package_default = {
|
|
|
28516
28518
|
"node-pty": "^1.1.0",
|
|
28517
28519
|
oxfmt: "^0.26.0",
|
|
28518
28520
|
oxlint: "^1.41.0",
|
|
28521
|
+
"patch-package": "^8.0.1",
|
|
28519
28522
|
phpdie: "^1.7.0",
|
|
28520
28523
|
rambda: "^11.0.1",
|
|
28521
28524
|
"semantic-release": "^25.0.2",
|
|
@@ -28944,5 +28947,5 @@ var { exitCode } = await cliYes(config3);
|
|
|
28944
28947
|
console.log("exiting process");
|
|
28945
28948
|
process.exit(exitCode ?? 1);
|
|
28946
28949
|
|
|
28947
|
-
//# debugId=
|
|
28950
|
+
//# debugId=2B36C295F63F614164756E2164756E21
|
|
28948
28951
|
//# sourceMappingURL=cli.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-yes",
|
|
3
|
-
"version": "1.44.
|
|
3
|
+
"version": "1.44.4",
|
|
4
4
|
"description": "A wrapper tool that automates interactions with various AI CLI tools by automatically handling common prompts and responses.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -63,8 +63,10 @@
|
|
|
63
63
|
"registry": "https://registry.npmjs.org/"
|
|
64
64
|
},
|
|
65
65
|
"scripts": {
|
|
66
|
+
"prebuild": "node ./scripts/patch-mcp-sdk.js",
|
|
66
67
|
"build": "bun build ./ts/cli.ts ./ts/index.ts --outdir=dist --target=node --sourcemap --external=@snomiao/bun-pty --external=bun-pty --external=node-pty --external=from-node-stream --external=bun --external=@modelcontextprotocol/sdk",
|
|
67
68
|
"postbuild": "bun ./ts/postbuild.ts",
|
|
69
|
+
"postinstall": "node ./scripts/patch-mcp-sdk.js",
|
|
68
70
|
"demo": "bun run build && bun link && claude-yes -- demo",
|
|
69
71
|
"dev": "bun ts/index.ts",
|
|
70
72
|
"typecheck": "tsgo --noEmit --skipLibCheck",
|
|
@@ -97,6 +99,7 @@
|
|
|
97
99
|
"node-pty": "^1.1.0",
|
|
98
100
|
"oxfmt": "^0.26.0",
|
|
99
101
|
"oxlint": "^1.41.0",
|
|
102
|
+
"patch-package": "^8.0.1",
|
|
100
103
|
"phpdie": "^1.7.0",
|
|
101
104
|
"rambda": "^11.0.1",
|
|
102
105
|
"semantic-release": "^25.0.2",
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { readFileSync, writeFileSync, existsSync } from 'fs';
|
|
3
|
+
import { join } from 'path';
|
|
4
|
+
import { fileURLToPath } from 'url';
|
|
5
|
+
import { dirname } from 'path';
|
|
6
|
+
|
|
7
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
8
|
+
const __dirname = dirname(__filename);
|
|
9
|
+
|
|
10
|
+
// Patch @modelcontextprotocol/sdk to add missing exports
|
|
11
|
+
const sdkPath = join(__dirname, '..', 'node_modules/@modelcontextprotocol/sdk/package.json');
|
|
12
|
+
|
|
13
|
+
try {
|
|
14
|
+
// Check if SDK is installed
|
|
15
|
+
if (!existsSync(sdkPath)) {
|
|
16
|
+
console.log('⚠ @modelcontextprotocol/sdk not found, skipping patch');
|
|
17
|
+
process.exit(0);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const pkg = JSON.parse(readFileSync(sdkPath, 'utf-8'));
|
|
21
|
+
|
|
22
|
+
// Add missing exports
|
|
23
|
+
let modified = false;
|
|
24
|
+
|
|
25
|
+
if (!pkg.exports['./server/stdio']) {
|
|
26
|
+
pkg.exports['./server/stdio'] = {
|
|
27
|
+
import: './dist/esm/server/stdio.js',
|
|
28
|
+
require: './dist/cjs/server/stdio.js'
|
|
29
|
+
};
|
|
30
|
+
modified = true;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
if (!pkg.exports['./types']) {
|
|
34
|
+
pkg.exports['./types'] = {
|
|
35
|
+
import: './dist/esm/types.js',
|
|
36
|
+
require: './dist/cjs/types.js'
|
|
37
|
+
};
|
|
38
|
+
modified = true;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
if (modified) {
|
|
42
|
+
writeFileSync(sdkPath, JSON.stringify(pkg, null, 2) + '\n');
|
|
43
|
+
console.log('✓ Patched @modelcontextprotocol/sdk package.json');
|
|
44
|
+
} else {
|
|
45
|
+
console.log('✓ @modelcontextprotocol/sdk already patched');
|
|
46
|
+
}
|
|
47
|
+
} catch (error) {
|
|
48
|
+
console.error('Failed to patch @modelcontextprotocol/sdk:', error);
|
|
49
|
+
process.exit(1);
|
|
50
|
+
}
|