@mcptoolshop/pathway 0.2.0
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/README.md +35 -0
- package/bin/pathway.js +26 -0
- package/package.json +33 -0
- package/postinstall.js +11 -0
package/README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# @mikeyfrilot/pathway
|
|
2
|
+
|
|
3
|
+
npm wrapper for [pathway](https://pypi.org/project/pathway/) - Workflow automation tool.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g @mikeyfrilot/pathway
|
|
9
|
+
# or
|
|
10
|
+
npx @mikeyfrilot/pathway --help
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Prerequisites
|
|
14
|
+
|
|
15
|
+
Requires the Python `pathway` package:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
pip install pathway
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Usage
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
pathway --help
|
|
25
|
+
pathway run workflow.yml
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Links
|
|
29
|
+
|
|
30
|
+
- **PyPI**: https://pypi.org/project/pathway/
|
|
31
|
+
- **GitHub**: https://github.com/mcp-tool-shop/pathway
|
|
32
|
+
|
|
33
|
+
## License
|
|
34
|
+
|
|
35
|
+
MIT
|
package/bin/pathway.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
const { spawn } = require('child_process');
|
|
3
|
+
|
|
4
|
+
async function main() {
|
|
5
|
+
const args = process.argv.slice(2);
|
|
6
|
+
const pathway = spawn('pathway', args, {
|
|
7
|
+
stdio: 'inherit',
|
|
8
|
+
shell: true
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
pathway.on('close', (code) => {
|
|
12
|
+
process.exit(code || 0);
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
pathway.on('error', (err) => {
|
|
16
|
+
console.error('❌ pathway is not installed.');
|
|
17
|
+
console.error('');
|
|
18
|
+
console.error('Please install pathway using pip:');
|
|
19
|
+
console.error(' pip install pathway');
|
|
20
|
+
console.error('');
|
|
21
|
+
console.error('PyPI: https://pypi.org/project/pathway/');
|
|
22
|
+
process.exit(1);
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
main();
|
package/package.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mcptoolshop/pathway",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "npm wrapper for pathway - Workflow automation tool",
|
|
5
|
+
"bin": {
|
|
6
|
+
"pathway": "./bin/pathway.js"
|
|
7
|
+
},
|
|
8
|
+
"scripts": {
|
|
9
|
+
"postinstall": "node postinstall.js"
|
|
10
|
+
},
|
|
11
|
+
"keywords": [
|
|
12
|
+
"workflow",
|
|
13
|
+
"automation",
|
|
14
|
+
"cli",
|
|
15
|
+
"python",
|
|
16
|
+
"wrapper"
|
|
17
|
+
],
|
|
18
|
+
"author": "mcp-tool-shop <64996768+mcp-tool-shop@users.noreply.github.com>",
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "https://github.com/mcp-tool-shop/pathway.git",
|
|
23
|
+
"directory": "npm"
|
|
24
|
+
},
|
|
25
|
+
"homepage": "https://github.com/mcp-tool-shop/pathway#readme",
|
|
26
|
+
"engines": {
|
|
27
|
+
"node": ">=18.0.0"
|
|
28
|
+
},
|
|
29
|
+
"publishConfig": {
|
|
30
|
+
"access": "public",
|
|
31
|
+
"registry": "https://registry.npmjs.org"
|
|
32
|
+
}
|
|
33
|
+
}
|
package/postinstall.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
console.log('');
|
|
3
|
+
console.log('📦 @mikeyfrilot/pathway installed!');
|
|
4
|
+
console.log('');
|
|
5
|
+
console.log('⚠️ This is an npm wrapper for the Python package "pathway".');
|
|
6
|
+
console.log('');
|
|
7
|
+
console.log('To use pathway, install the Python package:');
|
|
8
|
+
console.log(' pip install pathway');
|
|
9
|
+
console.log('');
|
|
10
|
+
console.log('PyPI: https://pypi.org/project/pathway/');
|
|
11
|
+
console.log('');
|