@oisincoveney/pipeline 1.0.2 → 1.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/README.md +17 -14
- package/dist/index.js +37964 -37109
- package/dist/mastra/pipeline-primitive.js +30 -30
- package/dist/pipeline-spec.d.ts +19 -0
- package/docs/slash-command-adapter-contract.md +41 -53
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -6,8 +6,9 @@ fix, verify the result, and record learnings for future runs.
|
|
|
6
6
|
|
|
7
7
|
The reusable primitive is `runPipelinePrimitive()`. It is intended to run from
|
|
8
8
|
an isolated worktree for one Backlog.md ticket or task description at a time.
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
The CLI calls it with the subprocess adapter. Generated host resources run the
|
|
10
|
+
same lifecycle through each host's native command, skill, agent, subagent,
|
|
11
|
+
extension, or session mechanics.
|
|
11
12
|
|
|
12
13
|
## Requirements
|
|
13
14
|
|
|
@@ -49,7 +50,7 @@ The package-level binary is also available:
|
|
|
49
50
|
oisin-pipeline work-next "Implement PIPE-123 user-facing behavior"
|
|
50
51
|
```
|
|
51
52
|
|
|
52
|
-
|
|
53
|
+
Programmatic consumers can import the primitive and adapter types from package
|
|
53
54
|
subpaths:
|
|
54
55
|
|
|
55
56
|
```ts
|
|
@@ -67,10 +68,10 @@ This creates or updates the supported host files:
|
|
|
67
68
|
|
|
68
69
|
| Host | File | Invocation |
|
|
69
70
|
| --- | --- | --- |
|
|
70
|
-
| Claude Code | `.claude/commands/work-next.md` | `/work-next "Implement PIPE-123"` |
|
|
71
|
-
| OpenCode | `.opencode/commands/work-next.md` | `/work-next "Implement PIPE-123"` |
|
|
72
|
-
| Pi | `.pi/prompts/work-next.md` | `/work-next "Implement PIPE-123"` |
|
|
73
|
-
| Codex | `.agents/skills/work-next/SKILL.md` |
|
|
71
|
+
| Claude Code | `.claude/commands/work-next.md`, `.claude/agents/pipeline-*.md` | `/work-next "Implement PIPE-123"` |
|
|
72
|
+
| OpenCode | `.opencode/commands/work-next.md`, `.opencode/agents/pipeline-*.md` | `/work-next "Implement PIPE-123"` |
|
|
73
|
+
| Pi | `.pi/extensions/work-next.ts`, `.pi/prompts/work-next.md` | `/work-next "Implement PIPE-123"` |
|
|
74
|
+
| Codex | `.agents/skills/work-next/SKILL.md`, `.codex/agents/pipeline-*.toml` | `$work-next "Implement PIPE-123"` or `/skills` |
|
|
74
75
|
|
|
75
76
|
Re-run the installer after package updates. It updates generated files it owns,
|
|
76
77
|
refuses to overwrite manual edits, supports `--check`, `--dry-run`, and
|
|
@@ -88,9 +89,11 @@ work-next "Implement PIPE-123 user-facing behavior"
|
|
|
88
89
|
## Invocation Modes
|
|
89
90
|
|
|
90
91
|
Use a slash command when you are already inside Claude Code, Codex, OpenCode, or
|
|
91
|
-
Pi and want
|
|
92
|
-
subagent
|
|
93
|
-
|
|
92
|
+
Pi and want that host to execute the phase work with its native agent,
|
|
93
|
+
subagent, extension, or session mechanism. Claude Code and OpenCode expose
|
|
94
|
+
`/work-next`. Pi exposes `/work-next` through a project extension and requires
|
|
95
|
+
`pi-subagents` to be installed. Codex does not expose project-defined custom
|
|
96
|
+
slash commands, so use `$work-next` or select the skill from `/skills`.
|
|
94
97
|
|
|
95
98
|
Use the CLI when you are outside an agent host, when automation needs a shell
|
|
96
99
|
entrypoint, or when you explicitly want harness CLIs launched as subprocesses.
|
|
@@ -122,10 +125,10 @@ The direct entrypoint is also available:
|
|
|
122
125
|
bun src/index.ts work-next "Implement PIPE-123 user-facing behavior"
|
|
123
126
|
```
|
|
124
127
|
|
|
125
|
-
The CLI path uses
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
128
|
+
The CLI path uses `runPipelinePrimitive()` with the subprocess adapter from
|
|
129
|
+
`src/mastra/runner.ts`. Environment variables are only needed for the CLI
|
|
130
|
+
adapter; generated host resources use the current host session and repository
|
|
131
|
+
context.
|
|
129
132
|
|
|
130
133
|
## Pipeline Lifecycle
|
|
131
134
|
|