condition
Add or update a reusable named condition from a declarative expression (all/any/not, facts, history, membership, comparisons); validates every reference.
story.condition
Add or update a reusable named condition from a declarative expression (all/any/not, facts, history, membership, comparisons); validates every reference.
Signature: condition(manifest: string, id: string, expression: any, expectedRevision: number).
Returns {exitCode: 0, data: ...} on success or a nonzero exit code and message on failure. Use describe_tool for the live argument schema. See the package authoring guide for the content format and workflow.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2nocheck
condition(manifest: string, id: string, expression: any, expectedRevision: number) → any
Add or update a reusable named condition from a declarative expression (all/any/not, facts, history, membership, comparisons); validates every reference.
| arg | type | description |
|---|---|---|
| manifest | string | Absolute path to the project's caller-chosen JSON manifest. |
| id | string | Stable authored record or game ID. |
| expression | any | Declarative condition expression; supports named references, facts, membership, history and composed operators. |
| expectedRevision | number | Revision last read by the caller; 0 creates a new save slot. Content and save revisions are separate. |
contentSub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Showing up to 3 levels deep. Open a part to see what it holds further down.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
agent_score is exposed.+ quality × 0.35
+ performance × 0.25
± compat factor
Usability ratings
Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".
Scoped to this part · feeds back into the world's score.