@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 CHANGED
@@ -1,35 +1,50 @@
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
1
+ # @mcptoolshop/pathway
2
+
3
+ [![npm](https://img.shields.io/npm/v/@mcptoolshop/pathway)](https://www.npmjs.com/package/@mcptoolshop/pathway)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](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.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
- }
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('');