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
{{ message }}
Repository navigation
Commit eb2e841
Browse filesBrowse the repository at this point in the historyBrowse files
docs(prompts): say which generated file exports which extract function
A cold agent imported extractLenient<Name>WithLoader from
<Name>.extractor.ts, which exports extract<Name> and extractLenient<Name>
instead; the WithLoader form lives only in <Name>.response.ts. The
TypeScript prompts reference now names the extractor generator's two
entry points and where each function is exported.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M1mRRB1K2WdYy82kntMQdx
Copy file name to clipboardExpand all lines: fixtures/agent-context-conformance/ts-react-tanstack/expected/.claude/skills/metaobjects-prompts/references/typescript.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,6 +103,12 @@ and `data` holds what was recovered (every field of the `<Vo>Extracted` mirror i
103
103
nullable). It throws only when `root` does not declare the response value object, which is
104
104
a setup error.
105
105
106
+
Wiring the `extractor` generator as well adds `<Name>.extractor.ts` with two more entry
107
+
points over the same call: `extract<Name>(root, text)` returns the strict response type and
108
+
throws when a `@required` field is lost or malformed, and `extractLenient<Name>(root, text)`
109
+
re-exports the tolerant call above. `extractLenient<Name>WithLoader` itself is exported
Copy file name to clipboardExpand all lines: fixtures/agent-context-conformance/ts-requirements/expected/.claude/skills/metaobjects-prompts/references/typescript.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,6 +103,12 @@ and `data` holds what was recovered (every field of the `<Vo>Extracted` mirror i
103
103
nullable). It throws only when `root` does not declare the response value object, which is
104
104
a setup error.
105
105
106
+
Wiring the `extractor` generator as well adds `<Name>.extractor.ts` with two more entry
107
+
points over the same call: `extract<Name>(root, text)` returns the strict response type and
108
+
throws when a `@required` field is lost or malformed, and `extractLenient<Name>(root, text)`
109
+
re-exports the tolerant call above. `extractLenient<Name>WithLoader` itself is exported
0 commit comments