@mcptoolshop/pathway 0.2.0 → 0.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/README.md +50 -35
- package/package.json +33 -33
- package/bin/pathway.js +0 -26
- package/postinstall.js +0 -11
package/README.md
CHANGED
|
@@ -1,35 +1,50 @@
|
|
|
1
|
-
# @
|
|
2
|
-
|
|
3
|
-
npm
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
1
|
+
# @mcptoolshop/pathway
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@mcptoolshop/pathway)
|
|
4
|
+
[](https://github.com/mcp-tool-shop-org/pathway/blob/main/LICENSE)
|
|
5
|
+
|
|
6
|
+
**npm wrapper for [Pathway Core](https://github.com/mcp-tool-shop-org/pathway) — an append-only journey engine where undo never erases learning.**
|
|
7
|
+
|
|
8
|
+
## Install
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
npm install @mcptoolshop/pathway
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
This package provides a CLI wrapper that installs and delegates to the Python `pathway-core` package.
|
|
15
|
+
|
|
16
|
+
## Usage
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
npx @mcptoolshop/pathway init
|
|
20
|
+
npx @mcptoolshop/pathway import sample_session.jsonl
|
|
21
|
+
npx @mcptoolshop/pathway state sess_001
|
|
22
|
+
npx @mcptoolshop/pathway serve
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## What is Pathway?
|
|
26
|
+
|
|
27
|
+
Traditional undo rewrites history. Pathway doesn't.
|
|
28
|
+
|
|
29
|
+
When you backtrack in Pathway, you create a new event pointing backward — the original path remains. When you learn something on a failed path, that knowledge persists. Your mistakes teach you; they don't disappear.
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
|
|
33
|
+
- **Append-only event log**: Events are never edited or deleted
|
|
34
|
+
- **Undo = pointer move**: Backtracking creates a new event and moves head
|
|
35
|
+
- **Learning persists**: Knowledge survives across backtracking and branches
|
|
36
|
+
- **Branching is first-class**: Git-like implicit divergence on new work after backtrack
|
|
37
|
+
|
|
38
|
+
## Requirements
|
|
39
|
+
|
|
40
|
+
- Node.js >= 18
|
|
41
|
+
- Python 3.10+ (installed automatically via postinstall if needed)
|
|
42
|
+
|
|
43
|
+
## Links
|
|
44
|
+
|
|
45
|
+
- [GitHub Repository](https://github.com/mcp-tool-shop-org/pathway)
|
|
46
|
+
- [PyPI Package](https://pypi.org/project/pathway-core/)
|
|
47
|
+
|
|
48
|
+
## License
|
|
49
|
+
|
|
50
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@mcptoolshop/pathway",
|
|
3
|
-
"version": "0.2.
|
|
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
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@mcptoolshop/pathway",
|
|
3
|
+
"version": "0.2.2",
|
|
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": "git+https://github.com/mcp-tool-shop-org/pathway.git",
|
|
23
|
+
"directory": "npm"
|
|
24
|
+
},
|
|
25
|
+
"homepage": "https://github.com/mcp-tool-shop-org/pathway#readme",
|
|
26
|
+
"engines": {
|
|
27
|
+
"node": ">=18.0.0"
|
|
28
|
+
},
|
|
29
|
+
"publishConfig": {
|
|
30
|
+
"access": "public",
|
|
31
|
+
"registry": "https://registry.npmjs.org"
|
|
32
|
+
}
|
|
33
|
+
}
|
package/bin/pathway.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
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/postinstall.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
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('');
|