You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -166,7 +166,7 @@ const step = defineStep({
166
166
167
167
### 5. Structured Failures
168
168
169
-
Pipelines return `Result<T>` — either success with a value, or a structured failure identifying exactly what went wrong.
169
+
Pipelines return `Result<T>`: either success with a value, or a structured failure identifying exactly what went wrong.
170
170
171
171
```typescript
172
172
const result =awaitmyPipeline.run(input)
@@ -218,10 +218,10 @@ When a step fails, the `Failure` object contains the raw `input`, `output`, and
218
218
const result =awaitmyPipeline.run(input)
219
219
220
220
if (!result.ok) {
221
-
// Internal logging — full context
221
+
// Internal logging: full context
222
222
logger.debug('Pipeline failure', result.failure)
223
223
224
-
// User-facing — redact raw data
224
+
// User-facing: redact raw data
225
225
const safeError = {
226
226
step: result.failure.step,
227
227
reason: result.failure.reason,
@@ -239,7 +239,7 @@ A pipeline-level `onFailure` redaction hook is planned for v0.2.
239
239
240
240
Cuechain verifies contracts between steps. [CueAPI](https://cueapi.ai) verifies outcomes against reality. Use one, use both.
241
241
242
-
**Standalone Cuechain:** run a contract-verified pipeline from any trigger — a button click, an HTTP handler, a test, a local script. No infrastructure required.
242
+
**Standalone Cuechain:** run a contract-verified pipeline from any trigger. A button click, an HTTP handler, a test, a local script. No infrastructure required.
243
243
244
244
**Standalone CueAPI:** schedule a cue that fires a webhook. The handler does whatever it wants internally. No Cuechain required.
245
245
@@ -279,7 +279,7 @@ Create a pipeline builder. Chain `.step()` to add steps.
279
279
280
280
### `Pipeline.run(input)`
281
281
282
-
Returns `Result<T>` —`{ ok: true, value }` or `{ ok: false, failure }`.
282
+
Returns `Result<T>`:`{ ok: true, value }` or `{ ok: false, failure }`.
0 commit comments