@topce/pizx 0.1.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/LICENSE +21 -0
- package/README.md +105 -0
- package/dist/cli.d.ts +12 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +3146 -0
- package/dist/cli.js.map +7 -0
- package/dist/globals.d.ts +15 -0
- package/dist/globals.d.ts.map +1 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2963 -0
- package/dist/index.js.map +7 -0
- package/dist/pi-agent.d.ts +58 -0
- package/dist/pi-agent.d.ts.map +1 -0
- package/dist/pi-output.d.ts +37 -0
- package/dist/pi-output.d.ts.map +1 -0
- package/dist/pi.d.ts +33 -0
- package/dist/pi.d.ts.map +1 -0
- package/package.json +96 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Slobodan Filipovic
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# pizx
|
|
2
|
+
|
|
3
|
+
**zx fork with native Pi AI integration** — 15 template tags for shell scripting, AI text generation, coding agents, agentic patterns, communication, and orchestration topologies.
|
|
4
|
+
|
|
5
|
+
```js
|
|
6
|
+
#!/usr/bin/env pizx
|
|
7
|
+
const files = (await $`ls src/`).stdout.trim()
|
|
8
|
+
const summary = await π`summarize these files: ${files}`
|
|
9
|
+
await Π`fix TypeScript errors flagged in: ${summary}`
|
|
10
|
+
await Ρ`iteratively improve error handling across src/`
|
|
11
|
+
const plan = await Ω`design a comprehensive testing strategy for this project`
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Tags Reference
|
|
15
|
+
|
|
16
|
+
Each tag has its own detailed documentation in [`docs/`](docs/):
|
|
17
|
+
|
|
18
|
+
### Core
|
|
19
|
+
|
|
20
|
+
| Tag | Name | Description | Docs |
|
|
21
|
+
|---|---|---|---|
|
|
22
|
+
| `$` | Shell | Shell commands (unchanged from zx) | — |
|
|
23
|
+
| `π` | Pi | AI text generation via pi-ai | [docs/pi.md](docs/pi.md) |
|
|
24
|
+
| `Π` | Capital Pi | Pi coding agent with tools (read, bash, edit, write) | [docs/capital-pi.md](docs/capital-pi.md) |
|
|
25
|
+
|
|
26
|
+
### Agent Patterns (Ρ Φ Σ Δ Λ Ψ Ω Ν)
|
|
27
|
+
|
|
28
|
+
| Tag | Name | Flow | Docs |
|
|
29
|
+
|---|---|---|---|
|
|
30
|
+
| `Ρ` | Ralph Loop | analyze → plan → execute → review ↺ | [docs/ralph.md](docs/ralph.md) |
|
|
31
|
+
| `Φ` | Fleet | A, B, C in parallel → aggregate | [docs/fleet.md](docs/fleet.md) |
|
|
32
|
+
| `Σ` | Subagents | decompose → sub-agents → synthesize | [docs/subagent.md](docs/subagent.md) |
|
|
33
|
+
| `Δ` | Debate | perspectives → converge | [docs/debate.md](docs/debate.md) |
|
|
34
|
+
| `Λ` | Pipeline | stage₁ → stage₂ → stage₃ | [docs/pipeline.md](docs/pipeline.md) |
|
|
35
|
+
| `Ψ` | Critique | generate → critique → improve | [docs/critique.md](docs/critique.md) |
|
|
36
|
+
| `Ω` | Orchestrator | plan → dispatch → synthesize | [docs/orchestrator.md](docs/orchestrator.md) |
|
|
37
|
+
| `Ν` | Nu | analyze → negotiate roles → execute → synthesize | [docs/nu.md](docs/nu.md) |
|
|
38
|
+
|
|
39
|
+
### Communication Patterns (Θ Μ Β)
|
|
40
|
+
|
|
41
|
+
| Tag | Name | Pattern | Docs |
|
|
42
|
+
|---|---|---|---|
|
|
43
|
+
| `Θ` | Thread | Multi-agent conversation | [docs/thread.md](docs/thread.md) |
|
|
44
|
+
| `Μ` | Memory | Shared blackboard | [docs/memory.md](docs/memory.md) |
|
|
45
|
+
| `Β` | Broadcast | One-to-many messaging | [docs/broadcast.md](docs/broadcast.md) |
|
|
46
|
+
|
|
47
|
+
### Orchestration Topologies (Α Γ Χ Τ)
|
|
48
|
+
|
|
49
|
+
| Tag | Name | Pattern | Docs |
|
|
50
|
+
|---|---|---|---|
|
|
51
|
+
| `Α` | Adaptive | Self-adjusting workflow | [docs/adaptive.md](docs/adaptive.md) |
|
|
52
|
+
| `Γ` | Graph | DAG-based execution | [docs/graph.md](docs/graph.md) |
|
|
53
|
+
| `Χ` | Chi | Analyze traces → extract patterns | [docs/chi.md](docs/chi.md) |
|
|
54
|
+
| `Τ` | Tau | Define schema → write → refine → consolidate | [docs/tau.md](docs/tau.md) |
|
|
55
|
+
|
|
56
|
+
## Per-Phase Model Selection
|
|
57
|
+
|
|
58
|
+
All patterns support `plannerModel` and `workerModel` for routing high-level reasoning vs execution to different models:
|
|
59
|
+
|
|
60
|
+
```js
|
|
61
|
+
await Ω({
|
|
62
|
+
plannerModel: 'deepseek/deepseek-v4-pro', // planning + synthesis
|
|
63
|
+
workerModel: 'deepseek/deepseek-v4-flash', // worker execution
|
|
64
|
+
})`design a notification system`
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Without per-phase models, patterns fall back to `model` → Pi default.
|
|
68
|
+
|
|
69
|
+
## Option Chaining
|
|
70
|
+
|
|
71
|
+
All patterns support option chaining and `.quiet` mode:
|
|
72
|
+
|
|
73
|
+
```js
|
|
74
|
+
await Φ({ concurrency: 5 })`review all .ts files`
|
|
75
|
+
await Σ.quiet`analyze security across the codebase`
|
|
76
|
+
await Θ({ agents: 4, turns: 3 })`debate the architecture`
|
|
77
|
+
await Γ({ graph: { nodes: [...], edges: [...] } })`execute workflow`
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
## Install
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
npm install @topce/pizx
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
Requires Pi AI configured: `pi auth login`
|
|
87
|
+
|
|
88
|
+
## CLI
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
pizx script.mjs # Run a pizx script
|
|
92
|
+
pizx -p "prompt" # Quick pi-ai query
|
|
93
|
+
pizx --version # Print version
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## Commands
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
npm run build # Build (JS + DTS)
|
|
100
|
+
npm test # 95 unit tests
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## License
|
|
104
|
+
|
|
105
|
+
MIT
|
package/dist/cli.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* pizx CLI — a zx-compatible script runner with π (pi-ai) and Π (pi-coding-agent)
|
|
4
|
+
* template tags available globally.
|
|
5
|
+
*
|
|
6
|
+
* Usage:
|
|
7
|
+
* pizx script.mjs # Run a pizx script
|
|
8
|
+
* pizx -p "prompt" # Quick pi-ai query (print mode)
|
|
9
|
+
* pizx --version # Print version
|
|
10
|
+
*/
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=cli.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA;;;;;;;;GAQG"}
|