universal-agent-protocol 0.10.0 → 0.10.3
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/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "universal-agent-protocol",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.3",
|
|
4
4
|
"description": "Autonomous AI agent memory system with CLAUDE.md protocol enforcement",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"bin": {
|
|
9
|
-
"qwen-tool-call-test": "./tools/agents/scripts/
|
|
10
|
-
"qwen-tool-call-wrapper": "./tools/agents/scripts/
|
|
11
|
-
"fix-qwen-template": "./tools/agents/scripts/
|
|
9
|
+
"qwen-tool-call-test": "./tools/agents/scripts/qwen-tool-call-test.js",
|
|
10
|
+
"qwen-tool-call-wrapper": "./tools/agents/scripts/qwen-tool-call-wrapper.js",
|
|
11
|
+
"fix-qwen-template": "./tools/agents/scripts/fix-qwen-template.js"
|
|
12
12
|
},
|
|
13
13
|
"scripts": {
|
|
14
14
|
"build": "tsc",
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Fix Qwen Chat Template - Node.js Wrapper
|
|
4
|
+
*
|
|
5
|
+
* This wrapper script allows the Python CLI to be executed
|
|
6
|
+
* reliably across all platforms and installation methods.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
'use strict';
|
|
10
|
+
|
|
11
|
+
const { execFileSync } = await import('child_process');
|
|
12
|
+
const path = await import('path');
|
|
13
|
+
const os = await import('os');
|
|
14
|
+
|
|
15
|
+
// Determine Python executable based on platform
|
|
16
|
+
const getPythonExecutable = () => {
|
|
17
|
+
if (os.platform === 'win32') {
|
|
18
|
+
return 'python';
|
|
19
|
+
}
|
|
20
|
+
// Try python3 first, then fall back to python
|
|
21
|
+
try {
|
|
22
|
+
execFileSync('python3', ['--version'], { stdio: 'ignore' });
|
|
23
|
+
return 'python3';
|
|
24
|
+
} catch (e) {
|
|
25
|
+
return 'python';
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
// Get the directory where this script is located
|
|
30
|
+
const scriptDir = path.default.dirname(new URL(import.meta.url).pathname);
|
|
31
|
+
|
|
32
|
+
// Build the path to the Python script
|
|
33
|
+
const pythonScript = path.default.join(scriptDir, 'fix_qwen_chat_template.py');
|
|
34
|
+
|
|
35
|
+
// Get command line arguments (skip first two: node, script path)
|
|
36
|
+
const args = process.argv.slice(2);
|
|
37
|
+
|
|
38
|
+
try {
|
|
39
|
+
// Execute the Python script with all arguments passed through
|
|
40
|
+
execFileSync(getPythonExecutable(), [pythonScript, ...args], {
|
|
41
|
+
stdio: 'inherit',
|
|
42
|
+
cwd: process.cwd()
|
|
43
|
+
});
|
|
44
|
+
} catch (error) {
|
|
45
|
+
// Exit with the same code as the Python script
|
|
46
|
+
process.exit(error.status || 1);
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Qwen3.5 Tool Call Test - Node.js Wrapper
|
|
4
|
+
*
|
|
5
|
+
* This wrapper script allows the Python CLI to be executed
|
|
6
|
+
* reliably across all platforms and installation methods.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
'use strict';
|
|
10
|
+
|
|
11
|
+
const { execFileSync } = await import('child_process');
|
|
12
|
+
const path = await import('path');
|
|
13
|
+
const os = await import('os');
|
|
14
|
+
|
|
15
|
+
// Determine Python executable based on platform
|
|
16
|
+
const getPythonExecutable = () => {
|
|
17
|
+
if (os.platform === 'win32') {
|
|
18
|
+
return 'python';
|
|
19
|
+
}
|
|
20
|
+
// Try python3 first, then fall back to python
|
|
21
|
+
try {
|
|
22
|
+
execFileSync('python3', ['--version'], { stdio: 'ignore' });
|
|
23
|
+
return 'python3';
|
|
24
|
+
} catch (e) {
|
|
25
|
+
return 'python';
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
// Get the directory where this script is located
|
|
30
|
+
const scriptDir = path.default.dirname(new URL(import.meta.url).pathname);
|
|
31
|
+
|
|
32
|
+
// Build the path to the Python script
|
|
33
|
+
const pythonScript = path.default.join(scriptDir, 'qwen_tool_call_test.py');
|
|
34
|
+
|
|
35
|
+
// Get command line arguments (skip first two: node, script path)
|
|
36
|
+
const args = process.argv.slice(2);
|
|
37
|
+
|
|
38
|
+
try {
|
|
39
|
+
// Execute the Python script with all arguments passed through
|
|
40
|
+
execFileSync(getPythonExecutable(), [pythonScript, ...args], {
|
|
41
|
+
stdio: 'inherit',
|
|
42
|
+
cwd: process.cwd()
|
|
43
|
+
});
|
|
44
|
+
} catch (error) {
|
|
45
|
+
// Exit with the same code as the Python script
|
|
46
|
+
process.exit(error.status || 1);
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Qwen3.5 Tool Call Wrapper - Node.js Wrapper
|
|
4
|
+
*
|
|
5
|
+
* This wrapper script allows the Python CLI to be executed
|
|
6
|
+
* reliably across all platforms and installation methods.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
'use strict';
|
|
10
|
+
|
|
11
|
+
const { execFileSync } = await import('child_process');
|
|
12
|
+
const path = await import('path');
|
|
13
|
+
const os = await import('os');
|
|
14
|
+
|
|
15
|
+
// Determine Python executable based on platform
|
|
16
|
+
const getPythonExecutable = () => {
|
|
17
|
+
if (os.platform === 'win32') {
|
|
18
|
+
return 'python';
|
|
19
|
+
}
|
|
20
|
+
// Try python3 first, then fall back to python
|
|
21
|
+
try {
|
|
22
|
+
execFileSync('python3', ['--version'], { stdio: 'ignore' });
|
|
23
|
+
return 'python3';
|
|
24
|
+
} catch (e) {
|
|
25
|
+
return 'python';
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
// Get the directory where this script is located
|
|
30
|
+
const scriptDir = path.default.dirname(new URL(import.meta.url).pathname);
|
|
31
|
+
|
|
32
|
+
// Build the path to the Python script
|
|
33
|
+
const pythonScript = path.default.join(scriptDir, 'qwen_tool_call_wrapper.py');
|
|
34
|
+
|
|
35
|
+
// Get command line arguments (skip first two: node, script path)
|
|
36
|
+
const args = process.argv.slice(2);
|
|
37
|
+
|
|
38
|
+
try {
|
|
39
|
+
// Execute the Python script with all arguments passed through
|
|
40
|
+
execFileSync(getPythonExecutable(), [pythonScript, ...args], {
|
|
41
|
+
stdio: 'inherit',
|
|
42
|
+
cwd: process.cwd()
|
|
43
|
+
});
|
|
44
|
+
} catch (error) {
|
|
45
|
+
// Exit with the same code as the Python script
|
|
46
|
+
process.exit(error.status || 1);
|
|
47
|
+
}
|