Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
"effect": patch
Schema: expand FilterOutput and add FilterIssue for richer filter failures.
The return type of a Schema.makeFilter predicate now supports two additional shapes:
{ path, issue }whereissueisstring | SchemaIssue.Issue(previously only{ path, message: string }was accepted). Theissuearm lets you attach a fully-formedIssueat a nested path without manually constructing aPointer.ReadonlyArray<Schema.FilterIssue>to report several failures at once. An empty array is success, a single-element array is equivalent to returning that element, and multi-entry arrays are grouped into anIssue.Composite. This removes the need to importSchemaIssueand hand-build aCompositefor multi-field validators.
The single-failure shapes (undefined, true, false, string, SchemaIssue.Issue) are unchanged.
Breaking: the object shape renamed from { path, message } to { path, issue }. Call sites that used the old shape must rename the field; the migration is mechanical.
// before
Schema.makeFilter((o) => ({ path: ["a"], message: "bad" }))
// after
Schema.makeFilter((o) => ({ path: ["a"], issue: "bad" }))
Also renamed { path, message } to { path, issue } in the accepted return type of SchemaGetter.checkEffect.