@oisincoveney/pipeline 1.0.1 → 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 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
- Slash commands call it with a host-native in-process agent adapter; the CLI
10
- calls it with the subprocess adapter.
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
- Slash-command adapters can import the primitive and adapter types from package
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` | `/use work-next "Implement PIPE-123"` |
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,16 +89,19 @@ 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 the host interface to execute the phase agents with its native
92
- subagent/session mechanism. The slash command supplies the task text, target
93
- path, in-process agent adapter, and phase reporter to the primitive.
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.
97
100
 
98
101
  The slash-command adapter contract for Claude Code, Codex, OpenCode, and Pi is
99
- documented in `docs/slash-command-adapter-contract.md`. This repository also
100
- ships a Claude Code template at `.claude/commands/work-next.md`.
102
+ documented in `docs/slash-command-adapter-contract.md`. The command files are
103
+ generated into each target repository by the installer rather than shipped as
104
+ static package templates.
101
105
 
102
106
  ## Running The CLI
103
107
 
@@ -121,10 +125,10 @@ The direct entrypoint is also available:
121
125
  bun src/index.ts work-next "Implement PIPE-123 user-facing behavior"
122
126
  ```
123
127
 
124
- The CLI path uses the same primitive as slash commands, but passes the
125
- subprocess adapter from `src/mastra/runner.ts`. Environment variables are only
126
- needed for the CLI adapter; slash commands should supply those values through
127
- their host adapter contract.
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.
128
132
 
129
133
  ## Pipeline Lifecycle
130
134