codegen: a query reached from a mutation or action (runQuery, tracked or untracked, or createCaller) now has run* guarded as a query's, so runMutation/runAction from it throws RUN_KIND_FORBIDDEN, and an untracked sub-query from an action no longer carries action-only helpers. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
chore(examples): regenerate generated files for the composed-query view Re-run codegen in every example so the committed _generated/functions.ts and shard.ts match the emitter (lint:generated). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
refactor(codegen): split emit.ts into per-emitter modules The 7k-line emit.ts becomes src/emit/, one module per emitter plus shared helpers; src/emit/index.ts keeps every existing ./emit import working. emitShard's static and feature-gated sections move out of its 2.2k-line template into shard-context (buildCtx), shard-dispatch (dispatchRun, RPC and subscription methods), shard-admin, shard-shapes, shard-sources and shard-vectors. Every module is now under 1k lines. Emitted output is byte-identical: the golden fixtures are unchanged and the public API snapshot still matches. Comments elsewhere that pointed at emit.ts now name the module that owns the code. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Fixed
codegen: give a composed ctx.runQuery its own query context (#907) (3291182), closes #905
codegen: a query reached from a mutation or action (runQuery, tracked or untracked, or createCaller) now has run* guarded as a query's, so runMutation/runAction from it throws RUN_KIND_FORBIDDEN, and an untracked sub-query from an action no longer carries action-only helpers. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
chore(examples): regenerate generated files for the composed-query view Re-run codegen in every example so the committed _generated/functions.ts and shard.ts match the emitter (lint:generated). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
refactor(codegen): split emit.ts into per-emitter modules The 7k-line emit.ts becomes src/emit/, one module per emitter plus shared helpers; src/emit/index.ts keeps every existing ./emit import working. emitShard's static and feature-gated sections move out of its 2.2k-line template into shard-context (buildCtx), shard-dispatch (dispatchRun, RPC and subscription methods), shard-admin, shard-shapes, shard-sources and shard-vectors. Every module is now under 1k lines. Emitted output is byte-identical: the golden fixtures are unchanged and the public API snapshot still matches. Comments elsewhere that pointed at emit.ts now name the module that owns the code. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Fixed
codegen: give a composed ctx.runQuery its own query context (#907) (3291182), closes #905
codegen: a query reached from a mutation or action (runQuery, tracked or untracked, or createCaller) now has run* guarded as a query's, so runMutation/runAction from it throws RUN_KIND_FORBIDDEN, and an untracked sub-query from an action no longer carries action-only helpers. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
chore(examples): regenerate generated files for the composed-query view Re-run codegen in every example so the committed _generated/functions.ts and shard.ts match the emitter (lint:generated). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
refactor(codegen): split emit.ts into per-emitter modules The 7k-line emit.ts becomes src/emit/, one module per emitter plus shared helpers; src/emit/index.ts keeps every existing ./emit import working. emitShard's static and feature-gated sections move out of its 2.2k-line template into shard-context (buildCtx), shard-dispatch (dispatchRun, RPC and subscription methods), shard-admin, shard-shapes, shard-sources and shard-vectors. Every module is now under 1k lines. Emitted output is byte-identical: the golden fixtures are unchanged and the public API snapshot still matches. Comments elsewhere that pointed at emit.ts now name the module that owns the code. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Fixed
codegen: give a composed ctx.runQuery its own query context (#907) (3291182), closes #905
codegen: a query reached from a mutation or action (runQuery, tracked or untracked, or createCaller) now has run* guarded as a query's, so runMutation/runAction from it throws RUN_KIND_FORBIDDEN, and an untracked sub-query from an action no longer carries action-only helpers. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
chore(examples): regenerate generated files for the composed-query view Re-run codegen in every example so the committed _generated/functions.ts and shard.ts match the emitter (lint:generated). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
refactor(codegen): split emit.ts into per-emitter modules The 7k-line emit.ts becomes src/emit/, one module per emitter plus shared helpers; src/emit/index.ts keeps every existing ./emit import working. emitShard's static and feature-gated sections move out of its 2.2k-line template into shard-context (buildCtx), shard-dispatch (dispatchRun, RPC and subscription methods), shard-admin, shard-shapes, shard-sources and shard-vectors. Every module is now under 1k lines. Emitted output is byte-identical: the golden fixtures are unchanged and the public API snapshot still matches. Comments elsewhere that pointed at emit.ts now name the module that owns the code. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Fixed
codegen: give a composed ctx.runQuery its own query context (#907) (3291182), closes #905
Dependencies
@lunora/observability: upgraded to 1.0.0-alpha.107
codegen: a query reached from a mutation or action (runQuery, tracked or untracked, or createCaller) now has run* guarded as a query's, so runMutation/runAction from it throws RUN_KIND_FORBIDDEN, and an untracked sub-query from an action no longer carries action-only helpers. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
chore(examples): regenerate generated files for the composed-query view Re-run codegen in every example so the committed _generated/functions.ts and shard.ts match the emitter (lint:generated). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
refactor(codegen): split emit.ts into per-emitter modules The 7k-line emit.ts becomes src/emit/, one module per emitter plus shared helpers; src/emit/index.ts keeps every existing ./emit import working. emitShard's static and feature-gated sections move out of its 2.2k-line template into shard-context (buildCtx), shard-dispatch (dispatchRun, RPC and subscription methods), shard-admin, shard-shapes, shard-sources and shard-vectors. Every module is now under 1k lines. Emitted output is byte-identical: the golden fixtures are unchanged and the public API snapshot still matches. Comments elsewhere that pointed at emit.ts now name the module that owns the code. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Fixed
codegen: give a composed ctx.runQuery its own query context (#907) (3291182), closes #905
codegen: a query reached from a mutation or action (runQuery, tracked or untracked, or createCaller) now has run* guarded as a query's, so runMutation/runAction from it throws RUN_KIND_FORBIDDEN, and an untracked sub-query from an action no longer carries action-only helpers. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
chore(examples): regenerate generated files for the composed-query view Re-run codegen in every example so the committed _generated/functions.ts and shard.ts match the emitter (lint:generated). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
refactor(codegen): split emit.ts into per-emitter modules The 7k-line emit.ts becomes src/emit/, one module per emitter plus shared helpers; src/emit/index.ts keeps every existing ./emit import working. emitShard's static and feature-gated sections move out of its 2.2k-line template into shard-context (buildCtx), shard-dispatch (dispatchRun, RPC and subscription methods), shard-admin, shard-shapes, shard-sources and shard-vectors. Every module is now under 1k lines. Emitted output is byte-identical: the golden fixtures are unchanged and the public API snapshot still matches. Comments elsewhere that pointed at emit.ts now name the module that owns the code. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Fixed
codegen: give a composed ctx.runQuery its own query context (#907) (3291182), closes #905
Dependencies
@lunora/shard-engine: upgraded to 1.0.0-alpha.98
@lunora/observability: upgraded to 1.0.0-alpha.107
codegen: a query reached from a mutation or action (runQuery, tracked or untracked, or createCaller) now has run* guarded as a query's, so runMutation/runAction from it throws RUN_KIND_FORBIDDEN, and an untracked sub-query from an action no longer carries action-only helpers. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
chore(examples): regenerate generated files for the composed-query view Re-run codegen in every example so the committed _generated/functions.ts and shard.ts match the emitter (lint:generated). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
refactor(codegen): split emit.ts into per-emitter modules The 7k-line emit.ts becomes src/emit/, one module per emitter plus shared helpers; src/emit/index.ts keeps every existing ./emit import working. emitShard's static and feature-gated sections move out of its 2.2k-line template into shard-context (buildCtx), shard-dispatch (dispatchRun, RPC and subscription methods), shard-admin, shard-shapes, shard-sources and shard-vectors. Every module is now under 1k lines. Emitted output is byte-identical: the golden fixtures are unchanged and the public API snapshot still matches. Comments elsewhere that pointed at emit.ts now name the module that owns the code. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Fixed
codegen: give a composed ctx.runQuery its own query context (#907) (3291182), closes #905
mcp: tools registered on createPaidMcpServer (free and paid) now receive only arguments that satisfy their inputSchema; a non-conforming call returns an isError result without running the handler. Adds @cfworker/json-schema (the SDK's optional peer) as a dependency of @lunora/mcp. A valid call whose handler throws or returns isError is still charged; the module docs keep the out-of-band refund note for that case. Claude-Session: https://claude.ai/code/session_01SSVXdbku6XCtuRVMMEDqrE Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Fixed
mcp: validate paid tool arguments before charging (#900) (8f30062)