[{"data":1,"prerenderedAt":9151},["ShallowReactive",2],{"docs-navigation:en":3,"content-page:docs:NQvJFaW9274r41LmIYfIkQeB0qQ6uUzoJDVhByUfyZo":842,"content-page-surround:docs:NQvJFaW9274r41LmIYfIkQeB0qQ6uUzoJDVhByUfyZo":9137,"i-lucide:terminal":9142,"i-logos:typescript-icon":9146,"i-lucide:clipboard":9149},[4,41,110,540,643,708,772,837],{"title":5,"page":6,"canonicalKey":7,"locale":8,"id":9,"draft":6,"icon":10,"sidebar":11,"children":12},"Learn",false,"1","en","content:docs:1.overview:.navigation.yml","i-lucide-book-open","section",[13,20,27,34],{"title":14,"id":15,"canonicalKey":16,"locale":8,"draft":6,"navigation":17,"icon":18,"path":19},"Better Convex Nuxt","content:docs:1.overview:1.introduction.md","1\u002F1",{"icon":18},"i-lucide-orbit","\u002Fdocs\u002Foverview\u002Fintroduction",{"title":21,"id":22,"canonicalKey":23,"locale":8,"draft":6,"navigation":24,"icon":25,"path":26},"Who it is for","content:docs:1.overview:2.who-it-is-for.md","1\u002F2",{"icon":25},"i-lucide-users","\u002Fdocs\u002Foverview\u002Fwho-it-is-for",{"title":28,"id":29,"canonicalKey":30,"locale":8,"draft":6,"navigation":31,"icon":32,"path":33},"Limitations and trade-offs","content:docs:1.overview:3.limitations.md","1\u002F3",{"icon":32},"i-lucide-triangle-alert","\u002Fdocs\u002Foverview\u002Flimitations",{"title":35,"id":36,"canonicalKey":37,"locale":8,"draft":6,"navigation":38,"icon":39,"path":40},"Compare Nuxt integrations","content:docs:1.overview:4.comparison.md","1\u002F4",{"icon":39},"i-lucide-scale","\u002Fdocs\u002Foverview\u002Fcomparison",{"title":42,"page":6,"canonicalKey":43,"locale":8,"id":44,"draft":6,"icon":45,"children":46},"Get started","2","content:docs:2.get-started:.navigation.yml","i-lucide-rocket",[47,54,61,68,75,82,89,96,103],{"title":48,"id":49,"canonicalKey":50,"locale":8,"draft":6,"navigation":51,"icon":52,"path":53},"Choose your path","content:docs:2.get-started:1.choose-your-path.md","2\u002F1",{"icon":52},"i-lucide-signpost","\u002Fdocs\u002Fget-started\u002Fchoose-your-path",{"title":55,"id":56,"canonicalKey":57,"locale":8,"draft":6,"navigation":58,"icon":59,"path":60},"Installation","content:docs:2.get-started:2.installation.md","2\u002F2",{"icon":59},"i-lucide-download","\u002Fdocs\u002Fget-started\u002Finstallation",{"title":62,"id":63,"canonicalKey":64,"locale":8,"draft":6,"navigation":65,"icon":66,"path":67},"First real-time page","content:docs:2.get-started:3.first-realtime-page.md","2\u002F3",{"icon":66},"i-lucide-radio","\u002Fdocs\u002Fget-started\u002Ffirst-realtime-page",{"title":69,"id":70,"canonicalKey":71,"locale":8,"draft":6,"navigation":72,"icon":73,"path":74},"Complete and delete","content:docs:2.get-started:4.complete-and-delete.md","2\u002F4",{"icon":73},"i-lucide-square-check","\u002Fdocs\u002Fget-started\u002Fcomplete-and-delete",{"title":76,"id":77,"canonicalKey":78,"locale":8,"draft":6,"navigation":79,"icon":80,"path":81},"Add authentication","content:docs:2.get-started:5.add-authentication.md","2\u002F5",{"icon":80},"i-lucide-log-in","\u002Fdocs\u002Fget-started\u002Fadd-authentication",{"title":83,"id":84,"canonicalKey":85,"locale":8,"draft":6,"navigation":86,"icon":87,"path":88},"Protect data","content:docs:2.get-started:6.protect-data.md","2\u002F6",{"icon":87},"i-lucide-shield-check","\u002Fdocs\u002Fget-started\u002Fprotect-data",{"title":90,"id":91,"canonicalKey":92,"locale":8,"draft":6,"navigation":93,"icon":94,"path":95},"Project structure","content:docs:2.get-started:7.project-structure.md","2\u002F7",{"icon":94},"i-lucide-folder-tree","\u002Fdocs\u002Fget-started\u002Fproject-structure",{"title":97,"id":98,"canonicalKey":99,"locale":8,"draft":6,"navigation":100,"icon":101,"path":102},"Next steps","content:docs:2.get-started:8.next-steps.md","2\u002F8",{"icon":101},"i-lucide-arrow-right","\u002Fdocs\u002Fget-started\u002Fnext-steps",{"title":104,"id":105,"canonicalKey":106,"locale":8,"draft":6,"navigation":107,"icon":108,"path":109},"Plain Vue and Vite","content:docs:2.get-started:9.plain-vue.md","2\u002F9",{"icon":108},"i-lucide-panels-top-left","\u002Fdocs\u002Fget-started\u002Fplain-vue",{"title":111,"page":6,"canonicalKey":112,"locale":8,"id":113,"draft":6,"icon":114,"sidebar":11,"children":115},"Build","3","content:docs:3.build:.navigation.yml","i-lucide-blocks",[116,154,200,321,353,385,431,481],{"title":117,"page":6,"canonicalKey":118,"locale":8,"children":119},"Queries","3\u002F1",[120,126,133,140,147],{"title":117,"id":121,"canonicalKey":122,"locale":8,"draft":6,"navigation":123,"icon":124,"path":125},"content:docs:3.build:1.queries:1.queries.md","3\u002F1\u002F1",{"icon":124},"i-lucide-database","\u002Fdocs\u002Fbuild\u002Fqueries\u002Fqueries",{"title":127,"id":128,"canonicalKey":129,"locale":8,"draft":6,"navigation":130,"icon":131,"path":132},"Reactive arguments","content:docs:3.build:1.queries:2.reactive-arguments.md","3\u002F1\u002F2",{"icon":131},"i-lucide-sliders-horizontal","\u002Fdocs\u002Fbuild\u002Fqueries\u002Freactive-arguments",{"title":134,"id":135,"canonicalKey":136,"locale":8,"draft":6,"navigation":137,"icon":138,"path":139},"Loading and stale data","content:docs:3.build:1.queries:3.loading-and-stale-data.md","3\u002F1\u002F3",{"icon":138},"i-lucide-loader-circle","\u002Fdocs\u002Fbuild\u002Fqueries\u002Floading-and-stale-data",{"title":141,"id":142,"canonicalKey":143,"locale":8,"draft":6,"navigation":144,"icon":145,"path":146},"Query execution options","content:docs:3.build:1.queries:4.ssr-options.md","3\u002F1\u002F4",{"icon":145},"i-lucide-server-cog","\u002Fdocs\u002Fbuild\u002Fqueries\u002Fssr-options",{"title":148,"id":149,"canonicalKey":150,"locale":8,"draft":6,"navigation":151,"icon":152,"path":153},"Pagination","content:docs:3.build:1.queries:6.pagination.md","3\u002F1\u002F6",{"icon":152},"i-lucide-list-plus","\u002Fdocs\u002Fbuild\u002Fqueries\u002Fpagination",{"title":155,"page":6,"canonicalKey":156,"locale":8,"children":157},"Write Data","3\u002F2",[158,165,172,179,186,193],{"title":159,"id":160,"canonicalKey":161,"locale":8,"draft":6,"navigation":162,"icon":163,"path":164},"Mutations","content:docs:3.build:2.write-data:1.mutations.md","3\u002F2\u002F1",{"icon":163},"i-lucide-square-pen","\u002Fdocs\u002Fbuild\u002Fwrite-data\u002Fmutations",{"title":166,"id":167,"canonicalKey":168,"locale":8,"draft":6,"navigation":169,"icon":170,"path":171},"Actions","content:docs:3.build:2.write-data:2.actions.md","3\u002F2\u002F2",{"icon":170},"i-lucide-zap","\u002Fdocs\u002Fbuild\u002Fwrite-data\u002Factions",{"title":173,"id":174,"canonicalKey":175,"locale":8,"draft":6,"navigation":176,"icon":177,"path":178},"Optimistic updates","content:docs:3.build:2.write-data:3.optimistic-updates.md","3\u002F2\u002F3",{"icon":177},"i-lucide-gauge","\u002Fdocs\u002Fbuild\u002Fwrite-data\u002Foptimistic-updates",{"title":180,"id":181,"canonicalKey":182,"locale":8,"draft":6,"navigation":183,"icon":184,"path":185},"Concurrent operations","content:docs:3.build:2.write-data:4.concurrent-operations.md","3\u002F2\u002F4",{"icon":184},"i-lucide-git-fork","\u002Fdocs\u002Fbuild\u002Fwrite-data\u002Fconcurrent-operations",{"title":187,"id":188,"canonicalKey":189,"locale":8,"draft":6,"navigation":190,"icon":191,"path":192},"Form submissions","content:docs:3.build:2.write-data:5.forms.md","3\u002F2\u002F5",{"icon":191},"i-lucide-list-checks","\u002Fdocs\u002Fbuild\u002Fwrite-data\u002Fforms",{"title":194,"id":195,"canonicalKey":196,"locale":8,"draft":6,"navigation":197,"icon":198,"path":199},"Multi-step operations","content:docs:3.build:2.write-data:6.multi-step-operations.md","3\u002F2\u002F6",{"icon":198},"i-lucide-list-ordered","\u002Fdocs\u002Fbuild\u002Fwrite-data\u002Fmulti-step-operations",{"title":201,"page":6,"canonicalKey":202,"locale":8,"children":203},"Authentication","3\u002F3",[204,210,217,224,230,237,244,251,258,265,272,279,286,293,300,307,314],{"title":201,"id":205,"canonicalKey":206,"locale":8,"draft":6,"navigation":207,"icon":208,"path":209},"content:docs:3.build:3.authentication:1.overview.md","3\u002F3\u002F1",{"icon":208},"i-lucide-shield","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Foverview",{"title":211,"id":212,"canonicalKey":213,"locale":8,"draft":6,"navigation":214,"icon":215,"path":216},"Better Auth setup","content:docs:3.build:3.authentication:2.better-auth-setup.md","3\u002F3\u002F2",{"icon":215},"i-lucide-settings-2","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fbetter-auth-setup",{"title":218,"id":219,"canonicalKey":220,"locale":8,"draft":6,"navigation":221,"icon":222,"path":223},"Auth state and user data","content:docs:3.build:3.authentication:3.auth-state-and-user.md","3\u002F3\u002F3",{"icon":222},"i-lucide-user-round","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fauth-state-and-user",{"title":225,"id":226,"canonicalKey":227,"locale":8,"draft":6,"navigation":228,"icon":80,"path":229},"Sign in and sign out","content:docs:3.build:3.authentication:4.sign-in-and-sign-out.md","3\u002F3\u002F4",{"icon":80},"\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fsign-in-and-sign-out",{"title":231,"id":232,"canonicalKey":233,"locale":8,"draft":6,"navigation":234,"icon":235,"path":236},"Route protection","content:docs:3.build:3.authentication:5.route-protection.md","3\u002F3\u002F5",{"icon":235},"i-lucide-route","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Froute-protection",{"title":238,"id":239,"canonicalKey":240,"locale":8,"draft":6,"navigation":241,"icon":242,"path":243},"Backend authorization","content:docs:3.build:3.authentication:6.backend-authorization.md","3\u002F3\u002F6",{"icon":242},"i-lucide-lock-keyhole","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fbackend-authorization",{"title":245,"id":246,"canonicalKey":247,"locale":8,"draft":6,"navigation":248,"icon":249,"path":250},"Better Auth plugins","content:docs:3.build:3.authentication:7.better-auth-plugins.md","3\u002F3\u002F7",{"icon":249},"i-lucide-plug","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fbetter-auth-plugins",{"title":252,"id":253,"canonicalKey":254,"locale":8,"draft":6,"navigation":255,"icon":256,"path":257},"Custom user fields","content:docs:3.build:3.authentication:8.custom-user-fields.md","3\u002F3\u002F8",{"icon":256},"i-lucide-user-cog","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fcustom-user-fields",{"title":259,"id":260,"canonicalKey":261,"locale":8,"draft":6,"navigation":262,"icon":263,"path":264},"User synchronization","content:docs:3.build:3.authentication:9.user-synchronization.md","3\u002F3\u002F9",{"icon":263},"i-lucide-refresh-ccw","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fuser-synchronization",{"title":266,"id":267,"canonicalKey":268,"locale":8,"draft":6,"navigation":269,"icon":270,"path":271},"Delegated OAuth and MCP","content:docs:3.build:3.authentication:10.delegated-oauth-and-mcp.md","3\u002F3\u002F10",{"icon":270},"i-lucide-bot","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fdelegated-oauth-and-mcp",{"title":273,"id":274,"canonicalKey":275,"locale":8,"draft":6,"navigation":276,"icon":277,"path":278},"Transactional auth email","content:docs:3.build:3.authentication:11.transactional-email.md","3\u002F3\u002F11",{"icon":277},"i-lucide-mail","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Ftransactional-email",{"title":280,"id":281,"canonicalKey":282,"locale":8,"draft":6,"navigation":283,"icon":284,"path":285},"Social sign-in","content:docs:3.build:3.authentication:12.social-sign-in.md","3\u002F3\u002F12",{"icon":284},"i-lucide-github","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fsocial-sign-in",{"title":287,"id":288,"canonicalKey":289,"locale":8,"draft":6,"navigation":290,"icon":291,"path":292},"Better Auth plugin support","content:docs:3.build:3.authentication:13.better-auth-plugin-support.md","3\u002F3\u002F13",{"icon":291},"i-lucide-puzzle","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fbetter-auth-plugin-support",{"title":294,"id":295,"canonicalKey":296,"locale":8,"draft":6,"navigation":297,"icon":298,"path":299},"Cacheable public pages","content:docs:3.build:3.authentication:14.cacheable-public-pages.md","3\u002F3\u002F14",{"icon":298},"i-lucide-globe","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fcacheable-public-pages",{"title":301,"id":302,"canonicalKey":303,"locale":8,"draft":6,"navigation":304,"icon":305,"path":306},"Several sites on one deployment","content:docs:3.build:3.authentication:15.multiple-site-origins.md","3\u002F3\u002F15",{"icon":305},"i-lucide-network","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fmultiple-site-origins",{"title":308,"id":309,"canonicalKey":310,"locale":8,"draft":6,"navigation":311,"icon":312,"path":313},"Account deletion","content:docs:3.build:3.authentication:16.account-deletion.md","3\u002F3\u002F16",{"icon":312},"i-lucide-user-x","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Faccount-deletion",{"title":315,"id":316,"canonicalKey":317,"locale":8,"draft":6,"navigation":318,"icon":319,"path":320},"Company sign-in (OIDC)","content:docs:3.build:3.authentication:17.company-sign-in.md","3\u002F3\u002F17",{"icon":319},"i-lucide-building-2","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fcompany-sign-in",{"title":322,"page":6,"canonicalKey":323,"locale":8,"children":324},"Server","3\u002F4",[325,332,339,346],{"title":326,"id":327,"canonicalKey":328,"locale":8,"draft":6,"navigation":329,"icon":330,"path":331},"serverConvex","content:docs:3.build:4.server:1.server-convex.md","3\u002F4\u002F1",{"icon":330},"i-lucide-server","\u002Fdocs\u002Fbuild\u002Fserver\u002Fserver-convex",{"title":333,"id":334,"canonicalKey":335,"locale":8,"draft":6,"navigation":336,"icon":337,"path":338},"Server routes","content:docs:3.build:4.server:2.server-routes.md","3\u002F4\u002F2",{"icon":337},"i-lucide-waypoints","\u002Fdocs\u002Fbuild\u002Fserver\u002Fserver-routes",{"title":340,"id":341,"canonicalKey":342,"locale":8,"draft":6,"navigation":343,"icon":344,"path":345},"Webhooks and jobs","content:docs:3.build:4.server:3.webhooks-and-jobs.md","3\u002F4\u002F3",{"icon":344},"i-lucide-webhook","\u002Fdocs\u002Fbuild\u002Fserver\u002Fwebhooks-and-jobs",{"title":347,"id":348,"canonicalKey":349,"locale":8,"draft":6,"navigation":350,"icon":351,"path":352},"Credentials and server security","content:docs:3.build:4.server:4.credentials-and-security.md","3\u002F4\u002F4",{"icon":351},"i-lucide-key-round","\u002Fdocs\u002Fbuild\u002Fserver\u002Fcredentials-and-security",{"title":354,"page":6,"canonicalKey":355,"locale":8,"children":356},"Files","3\u002F5",[357,364,371,378],{"title":358,"id":359,"canonicalKey":360,"locale":8,"draft":6,"navigation":361,"icon":362,"path":363},"Upload files","content:docs:3.build:5.files:1.upload-files.md","3\u002F5\u002F1",{"icon":362},"i-lucide-upload","\u002Fdocs\u002Fbuild\u002Ffiles\u002Fupload-files",{"title":365,"id":366,"canonicalKey":367,"locale":8,"draft":6,"navigation":368,"icon":369,"path":370},"Storage URLs","content:docs:3.build:5.files:3.storage-urls.md","3\u002F5\u002F3",{"icon":369},"i-lucide-link","\u002Fdocs\u002Fbuild\u002Ffiles\u002Fstorage-urls",{"title":372,"id":373,"canonicalKey":374,"locale":8,"draft":6,"navigation":375,"icon":376,"path":377},"File validation and deletion","content:docs:3.build:5.files:4.validation-and-deletion.md","3\u002F5\u002F4",{"icon":376},"i-lucide-file-x","\u002Fdocs\u002Fbuild\u002Ffiles\u002Fvalidation-and-deletion",{"title":379,"id":380,"canonicalKey":381,"locale":8,"draft":6,"navigation":382,"icon":383,"path":384},"Private downloads","content:docs:3.build:5.files:5.private-downloads.md","3\u002F5\u002F5",{"icon":383},"i-lucide-file-lock","\u002Fdocs\u002Fbuild\u002Ffiles\u002Fprivate-downloads",{"title":386,"page":6,"canonicalKey":387,"locale":8,"children":388},"Application Behavior","3\u002F6",[389,396,403,410,417,424],{"title":390,"id":391,"canonicalKey":392,"locale":8,"draft":6,"navigation":393,"icon":394,"path":395},"Connection state","content:docs:3.build:6.application-behavior:1.connection-state.md","3\u002F6\u002F1",{"icon":394},"i-lucide-wifi","\u002Fdocs\u002Fbuild\u002Fapplication-behavior\u002Fconnection-state",{"title":397,"id":398,"canonicalKey":399,"locale":8,"draft":6,"navigation":400,"icon":401,"path":402},"Error handling","content:docs:3.build:6.application-behavior:2.error-handling.md","3\u002F6\u002F2",{"icon":401},"i-lucide-circle-alert","\u002Fdocs\u002Fbuild\u002Fapplication-behavior\u002Ferror-handling",{"title":404,"id":405,"canonicalKey":406,"locale":8,"draft":6,"navigation":407,"icon":408,"path":409},"Logging","content:docs:3.build:6.application-behavior:3.logging.md","3\u002F6\u002F3",{"icon":408},"i-lucide-scroll-text","\u002Fdocs\u002Fbuild\u002Fapplication-behavior\u002Flogging",{"title":411,"id":412,"canonicalKey":413,"locale":8,"draft":6,"navigation":414,"icon":415,"path":416},"DevTools","content:docs:3.build:6.application-behavior:4.devtools.md","3\u002F6\u002F4",{"icon":415},"i-lucide-wrench","\u002Fdocs\u002Fbuild\u002Fapplication-behavior\u002Fdevtools",{"title":418,"id":419,"canonicalKey":420,"locale":8,"draft":6,"navigation":421,"icon":422,"path":423},"Performance","content:docs:3.build:6.application-behavior:5.performance.md","3\u002F6\u002F5",{"icon":422},"i-lucide-chart-no-axes-combined","\u002Fdocs\u002Fbuild\u002Fapplication-behavior\u002Fperformance",{"title":425,"id":426,"canonicalKey":427,"locale":8,"draft":6,"navigation":428,"icon":429,"path":430},"Start the client on demand","content:docs:3.build:6.application-behavior:6.on-demand-client.md","3\u002F6\u002F6",{"icon":429},"i-lucide-power","\u002Fdocs\u002Fbuild\u002Fapplication-behavior\u002Fon-demand-client",{"title":432,"page":6,"canonicalKey":433,"locale":8,"id":434,"draft":6,"icon":270,"children":435},"Agents and MCP","3\u002F7","content:docs:3.build:7.agents:.navigation.yml",[436,442,449,456,463,469,475],{"title":437,"id":438,"canonicalKey":439,"locale":8,"draft":6,"navigation":440,"icon":415,"path":441},"Tools and approvals","content:docs:3.build:7.agents:1.tools-and-approvals.md","3\u002F7\u002F1",{"icon":415},"\u002Fdocs\u002Fbuild\u002Fagents\u002Ftools-and-approvals",{"title":443,"id":444,"canonicalKey":445,"locale":8,"draft":6,"navigation":446,"icon":447,"path":448},"The MCP door","content:docs:3.build:7.agents:2.mcp-door.md","3\u002F7\u002F2",{"icon":447},"i-lucide-door-open","\u002Fdocs\u002Fbuild\u002Fagents\u002Fmcp-door",{"title":450,"id":451,"canonicalKey":452,"locale":8,"draft":6,"navigation":453,"icon":454,"path":455},"Limits","content:docs:3.build:7.agents:3.limits.md","3\u002F7\u002F3",{"icon":454},"i-lucide-traffic-cone","\u002Fdocs\u002Fbuild\u002Fagents\u002Flimits",{"title":457,"id":458,"canonicalKey":459,"locale":8,"draft":6,"navigation":460,"icon":461,"path":462},"MCP on Convex","content:docs:3.build:7.agents:4.mcp.md","3\u002F7\u002F4",{"icon":461},"i-lucide-plug-zap","\u002Fdocs\u002Fbuild\u002Fagents\u002Fmcp",{"title":464,"id":465,"canonicalKey":466,"locale":8,"draft":6,"navigation":467,"icon":249,"path":468},"Add MCP to your application","content:docs:3.build:7.agents:5.mcp-application.md","3\u002F7\u002F5",{"icon":249},"\u002Fdocs\u002Fbuild\u002Fagents\u002Fmcp-application",{"title":470,"id":471,"canonicalKey":472,"locale":8,"draft":6,"navigation":473,"icon":369,"path":474},"Connect ChatGPT and Claude","content:docs:3.build:7.agents:6.connect-chatgpt-and-claude.md","3\u002F7\u002F6",{"icon":369},"\u002Fdocs\u002Fbuild\u002Fagents\u002Fconnect-chatgpt-and-claude",{"title":476,"id":477,"canonicalKey":478,"locale":8,"draft":6,"navigation":479,"icon":108,"path":480},"MCP Apps","content:docs:3.build:7.agents:7.mcp-apps.md","3\u002F7\u002F7",{"icon":108},"\u002Fdocs\u002Fbuild\u002Fagents\u002Fmcp-apps",{"title":482,"page":6,"canonicalKey":483,"locale":8,"id":484,"draft":6,"icon":485,"children":486},"Operations and policy","3\u002F8","content:docs:3.build:8.functions:.navigation.yml","i-lucide-shield-half",[487,494,500,507,514,521,527,534],{"title":488,"id":489,"canonicalKey":490,"locale":8,"draft":6,"navigation":491,"icon":492,"path":493},"Start here","content:docs:3.build:8.functions:1.start-here.md","3\u002F8\u002F1",{"icon":492},"i-lucide-flag","\u002Fdocs\u002Fbuild\u002Ffunctions\u002Fstart-here",{"title":495,"id":496,"canonicalKey":497,"locale":8,"draft":6,"navigation":498,"icon":39,"path":499},"Policy and roles","content:docs:3.build:8.functions:2.policy-and-roles.md","3\u002F8\u002F2",{"icon":39},"\u002Fdocs\u002Fbuild\u002Ffunctions\u002Fpolicy-and-roles",{"title":501,"id":502,"canonicalKey":503,"locale":8,"draft":6,"navigation":504,"icon":505,"path":506},"Row rules","content:docs:3.build:8.functions:3.row-rules.md","3\u002F8\u002F3",{"icon":505},"i-lucide-rows-3","\u002Fdocs\u002Fbuild\u002Ffunctions\u002Frow-rules",{"title":508,"id":509,"canonicalKey":510,"locale":8,"draft":6,"navigation":511,"icon":512,"path":513},"Internal operations","content:docs:3.build:8.functions:4.internal-operations.md","3\u002F8\u002F4",{"icon":512},"i-lucide-workflow","\u002Fdocs\u002Fbuild\u002Ffunctions\u002Finternal-operations",{"title":515,"id":516,"canonicalKey":517,"locale":8,"draft":6,"navigation":518,"icon":519,"path":520},"Test your app","content:docs:3.build:8.functions:5.testing.md","3\u002F8\u002F5",{"icon":519},"i-lucide-flask-conical","\u002Fdocs\u002Fbuild\u002Ffunctions\u002Ftesting",{"title":522,"id":523,"canonicalKey":524,"locale":8,"draft":6,"navigation":525,"icon":177,"path":526},"Cost","content:docs:3.build:8.functions:6.cost.md","3\u002F8\u002F6",{"icon":177},"\u002Fdocs\u002Fbuild\u002Ffunctions\u002Fcost",{"title":528,"id":529,"canonicalKey":530,"locale":8,"draft":6,"navigation":531,"icon":532,"path":533},"Threat model","content:docs:3.build:8.functions:7.threat-model.md","3\u002F8\u002F7",{"icon":532},"i-lucide-shield-alert","\u002Fdocs\u002Fbuild\u002Ffunctions\u002Fthreat-model",{"title":535,"id":536,"canonicalKey":537,"locale":8,"draft":6,"navigation":538,"icon":408,"path":539},"Rate limits, audit log and call events","content:docs:3.build:8.functions:8.limits-and-audit.md","3\u002F8\u002F8",{"icon":408},"\u002Fdocs\u002Fbuild\u002Ffunctions\u002Flimits-and-audit",{"title":541,"page":6,"canonicalKey":542,"locale":8,"id":543,"draft":6,"icon":544,"children":545},"Recipes","4","content:docs:4.recipes:.navigation.yml","i-lucide-cooking-pot",[546,553,560,567,574,581,587,593,599,605,612,619,626,633,638],{"title":547,"id":548,"canonicalKey":549,"locale":8,"draft":6,"navigation":550,"icon":551,"path":552},"Protected dashboard","content:docs:4.recipes:1.protected-dashboard.md","4\u002F1",{"icon":551},"i-lucide-layout-dashboard","\u002Fdocs\u002Frecipes\u002Fprotected-dashboard",{"title":554,"id":555,"canonicalKey":556,"locale":8,"draft":6,"navigation":557,"icon":558,"path":559},"Real-time feed","content:docs:4.recipes:2.realtime-feed.md","4\u002F2",{"icon":558},"i-lucide-messages-square","\u002Fdocs\u002Frecipes\u002Frealtime-feed",{"title":561,"id":562,"canonicalKey":563,"locale":8,"draft":6,"navigation":564,"icon":565,"path":566},"Optimistic todo list","content:docs:4.recipes:3.optimistic-todo-list.md","4\u002F3",{"icon":565},"i-lucide-list-todo","\u002Fdocs\u002Frecipes\u002Foptimistic-todo-list",{"title":568,"id":569,"canonicalKey":570,"locale":8,"draft":6,"navigation":571,"icon":572,"path":573},"Infinite scroll","content:docs:4.recipes:4.infinite-scroll.md","4\u002F4",{"icon":572},"i-lucide-mouse","\u002Fdocs\u002Frecipes\u002Finfinite-scroll",{"title":575,"id":576,"canonicalKey":577,"locale":8,"draft":6,"navigation":578,"icon":579,"path":580},"File upload form","content:docs:4.recipes:5.file-upload-form.md","4\u002F5",{"icon":579},"i-lucide-file-up","\u002Fdocs\u002Frecipes\u002Ffile-upload-form",{"title":582,"id":583,"canonicalKey":584,"locale":8,"draft":6,"navigation":585,"icon":319,"path":586},"Organization permissions","content:docs:4.recipes:6.organization-permissions.md","4\u002F6",{"icon":319},"\u002Fdocs\u002Frecipes\u002Forganization-permissions",{"title":588,"id":589,"canonicalKey":590,"locale":8,"draft":6,"navigation":591,"icon":330,"path":592},"Authenticated server route","content:docs:4.recipes:7.authenticated-server-route.md","4\u002F7",{"icon":330},"\u002Fdocs\u002Frecipes\u002Fauthenticated-server-route",{"title":594,"id":595,"canonicalKey":596,"locale":8,"draft":6,"navigation":597,"icon":108,"path":598},"Public and private data","content:docs:4.recipes:8.public-and-private-data.md","4\u002F8",{"icon":108},"\u002Fdocs\u002Frecipes\u002Fpublic-and-private-data",{"title":600,"id":601,"canonicalKey":602,"locale":8,"draft":6,"navigation":603,"icon":519,"path":604},"Test signed-in screens","content:docs:4.recipes:9.component-testing.md","4\u002F9",{"icon":519},"\u002Fdocs\u002Frecipes\u002Fcomponent-testing",{"title":606,"id":607,"canonicalKey":608,"locale":8,"draft":6,"navigation":609,"icon":610,"path":611},"Time-based data","content:docs:4.recipes:10.time-based-data.md","4\u002F10",{"icon":610},"i-lucide-clock","\u002Fdocs\u002Frecipes\u002Ftime-based-data",{"title":613,"id":614,"canonicalKey":615,"locale":8,"draft":6,"navigation":616,"icon":617,"path":618},"A list of queries","content:docs:4.recipes:11.dynamic-query-list.md","4\u002F11",{"icon":617},"i-lucide-list-tree","\u002Fdocs\u002Frecipes\u002Fdynamic-query-list",{"title":620,"id":621,"canonicalKey":622,"locale":8,"draft":6,"navigation":623,"icon":624,"path":625},"Error messages","content:docs:4.recipes:12.error-messages.md","4\u002F12",{"icon":624},"i-lucide-message-circle-warning","\u002Fdocs\u002Frecipes\u002Ferror-messages",{"title":627,"id":628,"canonicalKey":629,"locale":8,"draft":6,"navigation":630,"icon":631,"path":632},"Several file uploads","content:docs:4.recipes:13.multiple-file-uploads.md","4\u002F13",{"icon":631},"i-lucide-files","\u002Fdocs\u002Frecipes\u002Fmultiple-file-uploads",{"title":634,"id":635,"canonicalKey":636,"locale":8,"draft":6,"path":637},"Guest users","content:docs:4.recipes:15.guest-users.md","4\u002F15","\u002Fdocs\u002Frecipes\u002Fguest-users",{"title":639,"id":640,"canonicalKey":641,"locale":8,"draft":6,"path":642},"Sign-in link","content:docs:4.recipes:16.sign-in-link.md","4\u002F16","\u002Fdocs\u002Frecipes\u002Fsign-in-link",{"title":644,"page":6,"canonicalKey":645,"locale":8,"id":646,"draft":6,"icon":647,"children":648},"Concepts","5","content:docs:5.concepts:.navigation.yml","i-lucide-brain",[649,655,661,668,674,681,687,694,701],{"title":650,"id":651,"canonicalKey":652,"locale":8,"draft":6,"navigation":653,"icon":647,"path":654},"Mental model","content:docs:5.concepts:1.mental-model.md","5\u002F1",{"icon":647},"\u002Fdocs\u002Fconcepts\u002Fmental-model",{"title":656,"id":657,"canonicalKey":658,"locale":8,"draft":6,"navigation":659,"icon":235,"path":660},"Request lifecycle","content:docs:5.concepts:2.request-lifecycle.md","5\u002F2",{"icon":235},"\u002Fdocs\u002Fconcepts\u002Frequest-lifecycle",{"title":662,"id":663,"canonicalKey":664,"locale":8,"draft":6,"navigation":665,"icon":666,"path":667},"SSR, hydration, and real-time","content:docs:5.concepts:3.ssr-hydration-realtime.md","5\u002F3",{"icon":666},"i-lucide-refresh-cw","\u002Fdocs\u002Fconcepts\u002Fssr-hydration-realtime",{"title":669,"id":670,"canonicalKey":671,"locale":8,"draft":6,"navigation":672,"icon":124,"path":673},"Query state and caching","content:docs:5.concepts:4.query-ownership-and-caching.md","5\u002F4",{"icon":124},"\u002Fdocs\u002Fconcepts\u002Fquery-ownership-and-caching",{"title":675,"id":676,"canonicalKey":677,"locale":8,"draft":6,"navigation":678,"icon":679,"path":680},"Authentication and identity","content:docs:5.concepts:5.authentication-and-identity.md","5\u002F5",{"icon":679},"i-lucide-fingerprint","\u002Fdocs\u002Fconcepts\u002Fauthentication-and-identity",{"title":682,"id":683,"canonicalKey":684,"locale":8,"draft":6,"navigation":685,"icon":108,"path":686},"Server and client boundaries","content:docs:5.concepts:6.server-and-client-boundaries.md","5\u002F6",{"icon":108},"\u002Fdocs\u002Fconcepts\u002Fserver-and-client-boundaries",{"title":688,"id":689,"canonicalKey":690,"locale":8,"draft":6,"navigation":691,"icon":692,"path":693},"Errors and failures","content:docs:5.concepts:7.errors-and-failures.md","5\u002F7",{"icon":692},"i-lucide-circle-x","\u002Fdocs\u002Fconcepts\u002Ferrors-and-failures",{"title":695,"id":696,"canonicalKey":697,"locale":8,"draft":6,"navigation":698,"icon":699,"path":700},"Design decisions","content:docs:5.concepts:8.design-decisions.md","5\u002F8",{"icon":699},"i-lucide-git-branch","\u002Fdocs\u002Fconcepts\u002Fdesign-decisions",{"title":702,"id":703,"canonicalKey":704,"locale":8,"draft":6,"navigation":705,"icon":706,"path":707},"Glossary","content:docs:5.concepts:9.glossary.md","5\u002F9",{"icon":706},"i-lucide-book-a","\u002Fdocs\u002Fconcepts\u002Fglossary",{"title":709,"page":6,"canonicalKey":710,"locale":8,"id":711,"draft":6,"icon":215,"children":712},"Operations","6","content:docs:6.operations:.navigation.yml",[713,719,726,733,739,746,752,759,765],{"title":714,"id":715,"canonicalKey":716,"locale":8,"draft":6,"navigation":717,"icon":45,"path":718},"Deployment","content:docs:6.operations:1.deployment.md","6\u002F1",{"icon":45},"\u002Fdocs\u002Foperations\u002Fdeployment",{"title":720,"id":721,"canonicalKey":722,"locale":8,"draft":6,"navigation":723,"icon":724,"path":725},"Environment variables","content:docs:6.operations:2.environment-variables.md","6\u002F2",{"icon":724},"i-lucide-variable","\u002Fdocs\u002Foperations\u002Fenvironment-variables",{"title":727,"id":728,"canonicalKey":729,"locale":8,"draft":6,"navigation":730,"icon":731,"path":732},"Deploy to Vercel","content:docs:6.operations:3.deploy-to-vercel.md","6\u002F3",{"icon":731},"i-lucide-triangle","\u002Fdocs\u002Foperations\u002Fdeploy-to-vercel",{"title":734,"id":735,"canonicalKey":736,"locale":8,"draft":6,"navigation":737,"icon":415,"path":738},"Troubleshooting","content:docs:6.operations:4.troubleshooting.md","6\u002F4",{"icon":415},"\u002Fdocs\u002Foperations\u002Ftroubleshooting",{"title":740,"id":741,"canonicalKey":742,"locale":8,"draft":6,"navigation":743,"icon":744,"path":745},"Release compatibility","content:docs:6.operations:5.release-compatibility.md","6\u002F5",{"icon":744},"i-lucide-badge-check","\u002Fdocs\u002Foperations\u002Frelease-compatibility",{"title":747,"id":748,"canonicalKey":749,"locale":8,"draft":6,"navigation":750,"icon":87,"path":751},"Security model","content:docs:6.operations:6.security-model.md","6\u002F6",{"icon":87},"\u002Fdocs\u002Foperations\u002Fsecurity-model",{"title":753,"id":754,"canonicalKey":755,"locale":8,"draft":6,"navigation":756,"icon":757,"path":758},"Upgrade to 1.0","content:docs:6.operations:7.upgrade-to-1-0.md","6\u002F7",{"icon":757},"i-lucide-arrow-up-circle","\u002Fdocs\u002Foperations\u002Fupgrade-to-1-0",{"title":760,"id":761,"canonicalKey":762,"locale":8,"draft":6,"navigation":763,"icon":45,"path":764},"Before your app goes live","content:docs:6.operations:8.before-launch.md","6\u002F8",{"icon":45},"\u002Fdocs\u002Foperations\u002Fbefore-launch",{"title":766,"id":767,"canonicalKey":768,"locale":8,"draft":6,"navigation":769,"icon":770,"path":771},"Log streams and PostHog","content:docs:6.operations:9.log-streams.md","6\u002F9",{"icon":770},"i-lucide-activity","\u002Fdocs\u002Foperations\u002Flog-streams",{"title":773,"page":6,"canonicalKey":774,"locale":8,"id":775,"draft":6,"icon":776,"children":777},"Reference","7","content:docs:7.reference:.navigation.yml","i-lucide-braces",[778,784,790,796,803,810,817,823,830],{"title":779,"id":780,"canonicalKey":781,"locale":8,"draft":6,"navigation":782,"icon":776,"path":783},"Composables","content:docs:7.reference:1.composables.md","7\u002F1",{"icon":776},"\u002Fdocs\u002Freference\u002Fcomposables",{"title":785,"id":786,"canonicalKey":787,"locale":8,"draft":6,"navigation":788,"icon":330,"path":789},"Server API","content:docs:7.reference:3.server-api.md","7\u002F3",{"icon":330},"\u002Fdocs\u002Freference\u002Fserver-api",{"title":791,"id":792,"canonicalKey":793,"locale":8,"draft":6,"navigation":794,"icon":692,"path":795},"Error types","content:docs:7.reference:4.error-types.md","7\u002F4",{"icon":692},"\u002Fdocs\u002Freference\u002Ferror-types",{"title":797,"id":798,"canonicalKey":799,"locale":8,"draft":6,"navigation":800,"icon":801,"path":802},"Module configuration","content:docs:7.reference:5.module-configuration.md","7\u002F5",{"icon":801},"i-lucide-settings","\u002Fdocs\u002Freference\u002Fmodule-configuration",{"title":804,"id":805,"canonicalKey":806,"locale":8,"draft":6,"navigation":807,"icon":808,"path":809},"Package exports","content:docs:7.reference:6.package-exports.md","7\u002F6",{"icon":808},"i-lucide-package-open","\u002Fdocs\u002Freference\u002Fpackage-exports",{"title":811,"id":812,"canonicalKey":813,"locale":8,"draft":6,"navigation":814,"icon":815,"path":816},"API reference","content:docs:7.reference:7.api-surface.md","7\u002F7",{"icon":815},"i-lucide-list","\u002Fdocs\u002Freference\u002Fapi-surface",{"title":818,"id":819,"canonicalKey":820,"locale":8,"draft":6,"navigation":821,"icon":519,"path":822},"Experimental APIs","content:docs:7.reference:8.experimental.md","7\u002F8",{"icon":519},"\u002Fdocs\u002Freference\u002Fexperimental",{"title":824,"id":825,"canonicalKey":826,"locale":8,"draft":6,"navigation":827,"icon":828,"path":829},"Command line","content:docs:7.reference:9.cli.md","7\u002F9",{"icon":828},"i-lucide-terminal","\u002Fdocs\u002Freference\u002Fcli",{"title":831,"id":832,"canonicalKey":833,"locale":8,"draft":6,"navigation":834,"icon":835,"path":836},"Operation error codes","content:docs:7.reference:10.operation-error-codes.md","7\u002F10",{"icon":835},"i-lucide-octagon-alert","\u002Fdocs\u002Freference\u002Foperation-error-codes",{"title":838,"id":839,"canonicalKey":840,"locale":8,"draft":6,"path":841},"Better Convex documentation","content:docs:index.md","\u002F","\u002Fdocs",{"title":515,"description":843,"navigation":844,"body":845,"type":9124,"id":516,"canonicalKey":517,"draft":6,"partial":6,"locale":8,"collection":9125,"navigationFile":6,"file":9126,"route":9132,"resolution":9134},"Tests that keep the guarantees of the policy and the row rules - no raw functions, no leaks between tenants, a budget for each call - and tests of scheduled work and agents.",{"icon":519},{"type":846,"children":847,"toc":9108},"root",[848,871,900,911,955,1086,1549,1567,1593,1610,1703,1729,1765,2050,2068,2075,2113,2119,2150,2429,2464,2489,2518,2528,2534,2544,2901,2906,3072,3091,3103,3109,3114,3230,3247,3277,3956,3961,4435,4476,4481,4504,4553,4558,4564,4591,4919,4930,4952,4957,4963,5002,6415,6425,6437,6670,6675,6710,6783,6788,6803,6813,8470,8498,9078],{"type":849,"tag":850,"props":851,"children":852},"element","p",{},[853,856,862,864,869],{"type":854,"value":855},"text","The policy and the row rules protect every function that goes through\n",{"type":849,"tag":857,"props":858,"children":859},"code",{},[860],{"type":854,"value":861},"defineFunctions",{"type":854,"value":863},". Three tests keep it that way while the application grows:\nno raw functions, no leaks between tenants, and a budget for each call. The\nlast two sections test scheduled work and agents. All tests run in\n",{"type":849,"tag":857,"props":865,"children":866},{},[867],{"type":854,"value":868},"convex-test",{"type":854,"value":870}," with the real Better Auth component, so nothing is mocked except\nthe deployment and outside services.",{"type":849,"tag":850,"props":872,"children":873},{},[874,876,886,888,892,894,898],{"type":854,"value":875},"The first sections show the tests of\n",{"type":849,"tag":877,"props":878,"children":880},"a",{"href":879},"https:\u002F\u002Fgithub.com\u002Flupinum-dev\u002Fbetter-convex\u002Ftree\u002Fmain\u002Fstarters\u002Fmcp-oauth-agent\u002Fconvex",[881],{"type":849,"tag":857,"props":882,"children":883},{},[884],{"type":854,"value":885},"starters\u002Fmcp-oauth-agent",{"type":854,"value":887},":\nthe short files in full, and the shape of the long ones with a link to the\nfile. The tests of the last two sections use the app of\n",{"type":849,"tag":877,"props":889,"children":890},{"href":493},[891],{"type":854,"value":488},{"type":854,"value":893}," and\n",{"type":849,"tag":877,"props":895,"children":896},{"href":513},[897],{"type":854,"value":508},{"type":854,"value":899},".",{"type":849,"tag":901,"props":902,"children":904},"h2",{"id":903},"set-up-convex-test",[905,907],{"type":854,"value":906},"Set up ",{"type":849,"tag":857,"props":908,"children":909},{},[910],{"type":854,"value":868},{"type":849,"tag":912,"props":913,"children":916},"pre",{"language":914,"class":915},"bash","shiki shiki-themes light-plus dark-plus dark:dark-plus",[917],{"type":849,"tag":857,"props":918,"children":920},{"class":919},"language-bash",[921],{"type":849,"tag":922,"props":923,"children":926},"span",{"class":924,"style":925},"line","display: inline",[927,933,939,945,950],{"type":849,"tag":922,"props":928,"children":930},{"style":929},"color:#795E26;--shiki-dark:#DCDCAA",[931],{"type":854,"value":932},"pnpm",{"type":849,"tag":922,"props":934,"children":936},{"style":935},"color:#A31515;--shiki-dark:#CE9178",[937],{"type":854,"value":938}," add",{"type":849,"tag":922,"props":940,"children":942},{"style":941},"color:#0000FF;--shiki-dark:#569CD6",[943],{"type":854,"value":944}," -D",{"type":849,"tag":922,"props":946,"children":947},{"style":935},[948],{"type":854,"value":949}," convex-test",{"type":849,"tag":922,"props":951,"children":952},{"style":935},[953],{"type":854,"value":954}," vitest",{"type":849,"tag":912,"props":956,"children":959},{"language":957,"filename":958,"class":915},"ts","vitest.config.ts",[960],{"type":849,"tag":857,"props":961,"children":963},{"class":962},"language-ts",[964,1000,1002,1005,1006,1029,1030,1077,1078],{"type":849,"tag":922,"props":965,"children":966},{"class":924,"style":925},[967,973,979,985,990,995],{"type":849,"tag":922,"props":968,"children":970},{"style":969},"color:#AF00DB;--shiki-dark:#C586C0",[971],{"type":854,"value":972},"import",{"type":849,"tag":922,"props":974,"children":976},{"style":975},"color:#000000;--shiki-dark:#D4D4D4",[977],{"type":854,"value":978}," { ",{"type":849,"tag":922,"props":980,"children":982},{"style":981},"color:#001080;--shiki-dark:#9CDCFE",[983],{"type":854,"value":984},"defineConfig",{"type":849,"tag":922,"props":986,"children":987},{"style":975},[988],{"type":854,"value":989}," } ",{"type":849,"tag":922,"props":991,"children":992},{"style":969},[993],{"type":854,"value":994},"from",{"type":849,"tag":922,"props":996,"children":997},{"style":935},[998],{"type":854,"value":999}," 'vitest\u002Fconfig'",{"type":854,"value":1001},"\n",{"type":849,"tag":922,"props":1003,"children":1004},{"class":924,"style":925},[],{"type":854,"value":1001},{"type":849,"tag":922,"props":1007,"children":1008},{"class":924,"style":925},[1009,1014,1019,1024],{"type":849,"tag":922,"props":1010,"children":1011},{"style":969},[1012],{"type":854,"value":1013},"export",{"type":849,"tag":922,"props":1015,"children":1016},{"style":969},[1017],{"type":854,"value":1018}," default",{"type":849,"tag":922,"props":1020,"children":1021},{"style":929},[1022],{"type":854,"value":1023}," defineConfig",{"type":849,"tag":922,"props":1025,"children":1026},{"style":975},[1027],{"type":854,"value":1028},"({",{"type":854,"value":1001},{"type":849,"tag":922,"props":1031,"children":1032},{"class":924,"style":925},[1033,1038,1042,1047,1052,1057,1062,1067,1072],{"type":849,"tag":922,"props":1034,"children":1035},{"style":981},[1036],{"type":854,"value":1037},"  test:",{"type":849,"tag":922,"props":1039,"children":1040},{"style":975},[1041],{"type":854,"value":978},{"type":849,"tag":922,"props":1043,"children":1044},{"style":981},[1045],{"type":854,"value":1046},"environment:",{"type":849,"tag":922,"props":1048,"children":1049},{"style":935},[1050],{"type":854,"value":1051}," 'node'",{"type":849,"tag":922,"props":1053,"children":1054},{"style":975},[1055],{"type":854,"value":1056},", ",{"type":849,"tag":922,"props":1058,"children":1059},{"style":981},[1060],{"type":854,"value":1061},"include:",{"type":849,"tag":922,"props":1063,"children":1064},{"style":975},[1065],{"type":854,"value":1066}," [",{"type":849,"tag":922,"props":1068,"children":1069},{"style":935},[1070],{"type":854,"value":1071},"'convex\u002F**\u002F*.test.ts'",{"type":849,"tag":922,"props":1073,"children":1074},{"style":975},[1075],{"type":854,"value":1076},"] },",{"type":854,"value":1001},{"type":849,"tag":922,"props":1079,"children":1080},{"class":924,"style":925},[1081],{"type":849,"tag":922,"props":1082,"children":1083},{"style":975},[1084],{"type":854,"value":1085},"})",{"type":849,"tag":912,"props":1087,"children":1089},{"language":957,"filename":1088,"class":915},"convex\u002Ftest.setup.ts",[1090],{"type":849,"tag":857,"props":1091,"children":1092},{"class":962},[1093,1135,1136,1139,1140,1162,1163,1192,1193,1222,1223,1226,1227,1248,1249,1252,1253,1328,1329,1332,1333,1341,1342,1364,1365,1373,1374,1414,1415,1452,1453,1496,1497,1527,1528,1540,1541],{"type":849,"tag":922,"props":1094,"children":1095},{"class":924,"style":925},[1096,1102,1108,1114,1120,1125,1130],{"type":849,"tag":922,"props":1097,"children":1099},{"style":1098},"color:#008000;--shiki-dark:#6A9955",[1100],{"type":854,"value":1101},"\u002F\u002F\u002F ",{"type":849,"tag":922,"props":1103,"children":1105},{"style":1104},"color:#800000;--shiki-dark:#808080",[1106],{"type":854,"value":1107},"\u003C",{"type":849,"tag":922,"props":1109,"children":1111},{"style":1110},"color:#800000;--shiki-dark:#569CD6",[1112],{"type":854,"value":1113},"reference",{"type":849,"tag":922,"props":1115,"children":1117},{"style":1116},"color:#E50000;--shiki-dark:#9CDCFE",[1118],{"type":854,"value":1119}," types",{"type":849,"tag":922,"props":1121,"children":1122},{"style":975},[1123],{"type":854,"value":1124},"=",{"type":849,"tag":922,"props":1126,"children":1127},{"style":935},[1128],{"type":854,"value":1129},"\"vite\u002Fclient\"",{"type":849,"tag":922,"props":1131,"children":1132},{"style":1104},[1133],{"type":854,"value":1134}," \u002F>",{"type":854,"value":1001},{"type":849,"tag":922,"props":1137,"children":1138},{"class":924,"style":925},[],{"type":854,"value":1001},{"type":849,"tag":922,"props":1141,"children":1142},{"class":924,"style":925},[1143,1147,1152,1157],{"type":849,"tag":922,"props":1144,"children":1145},{"style":969},[1146],{"type":854,"value":972},{"type":849,"tag":922,"props":1148,"children":1149},{"style":981},[1150],{"type":854,"value":1151}," betterAuth",{"type":849,"tag":922,"props":1153,"children":1154},{"style":969},[1155],{"type":854,"value":1156}," from",{"type":849,"tag":922,"props":1158,"children":1159},{"style":935},[1160],{"type":854,"value":1161}," '@lupinum\u002Fbetter-convex-nuxt\u002Fbetter-auth\u002Ftest'",{"type":854,"value":1001},{"type":849,"tag":922,"props":1164,"children":1165},{"class":924,"style":925},[1166,1170,1174,1179,1183,1187],{"type":849,"tag":922,"props":1167,"children":1168},{"style":969},[1169],{"type":854,"value":972},{"type":849,"tag":922,"props":1171,"children":1172},{"style":975},[1173],{"type":854,"value":978},{"type":849,"tag":922,"props":1175,"children":1176},{"style":981},[1177],{"type":854,"value":1178},"convexTest",{"type":849,"tag":922,"props":1180,"children":1181},{"style":975},[1182],{"type":854,"value":989},{"type":849,"tag":922,"props":1184,"children":1185},{"style":969},[1186],{"type":854,"value":994},{"type":849,"tag":922,"props":1188,"children":1189},{"style":935},[1190],{"type":854,"value":1191}," 'convex-test'",{"type":854,"value":1001},{"type":849,"tag":922,"props":1194,"children":1195},{"class":924,"style":925},[1196,1200,1204,1209,1213,1217],{"type":849,"tag":922,"props":1197,"children":1198},{"style":969},[1199],{"type":854,"value":972},{"type":849,"tag":922,"props":1201,"children":1202},{"style":975},[1203],{"type":854,"value":978},{"type":849,"tag":922,"props":1205,"children":1206},{"style":981},[1207],{"type":854,"value":1208},"vi",{"type":849,"tag":922,"props":1210,"children":1211},{"style":975},[1212],{"type":854,"value":989},{"type":849,"tag":922,"props":1214,"children":1215},{"style":969},[1216],{"type":854,"value":994},{"type":849,"tag":922,"props":1218,"children":1219},{"style":935},[1220],{"type":854,"value":1221}," 'vitest'",{"type":854,"value":1001},{"type":849,"tag":922,"props":1224,"children":1225},{"class":924,"style":925},[],{"type":854,"value":1001},{"type":849,"tag":922,"props":1228,"children":1229},{"class":924,"style":925},[1230,1234,1239,1243],{"type":849,"tag":922,"props":1231,"children":1232},{"style":969},[1233],{"type":854,"value":972},{"type":849,"tag":922,"props":1235,"children":1236},{"style":981},[1237],{"type":854,"value":1238}," schema",{"type":849,"tag":922,"props":1240,"children":1241},{"style":969},[1242],{"type":854,"value":1156},{"type":849,"tag":922,"props":1244,"children":1245},{"style":935},[1246],{"type":854,"value":1247}," '.\u002Fschema'",{"type":854,"value":1001},{"type":849,"tag":922,"props":1250,"children":1251},{"class":924,"style":925},[],{"type":854,"value":1001},{"type":849,"tag":922,"props":1254,"children":1255},{"class":924,"style":925},[1256,1260,1265,1271,1276,1280,1284,1289,1293,1298,1303,1308,1313,1318,1323],{"type":849,"tag":922,"props":1257,"children":1258},{"style":969},[1259],{"type":854,"value":1013},{"type":849,"tag":922,"props":1261,"children":1262},{"style":941},[1263],{"type":854,"value":1264}," const",{"type":849,"tag":922,"props":1266,"children":1268},{"style":1267},"color:#0070C1;--shiki-dark:#4FC1FF",[1269],{"type":854,"value":1270}," modules",{"type":849,"tag":922,"props":1272,"children":1273},{"style":975},[1274],{"type":854,"value":1275}," = ",{"type":849,"tag":922,"props":1277,"children":1278},{"style":969},[1279],{"type":854,"value":972},{"type":849,"tag":922,"props":1281,"children":1282},{"style":975},[1283],{"type":854,"value":899},{"type":849,"tag":922,"props":1285,"children":1286},{"style":981},[1287],{"type":854,"value":1288},"meta",{"type":849,"tag":922,"props":1290,"children":1291},{"style":975},[1292],{"type":854,"value":899},{"type":849,"tag":922,"props":1294,"children":1295},{"style":929},[1296],{"type":854,"value":1297},"glob",{"type":849,"tag":922,"props":1299,"children":1300},{"style":975},[1301],{"type":854,"value":1302},"(",{"type":849,"tag":922,"props":1304,"children":1305},{"style":935},[1306],{"type":854,"value":1307},"'.\u002F**\u002F*.ts'",{"type":849,"tag":922,"props":1309,"children":1310},{"style":975},[1311],{"type":854,"value":1312},", { ",{"type":849,"tag":922,"props":1314,"children":1315},{"style":981},[1316],{"type":854,"value":1317},"eager:",{"type":849,"tag":922,"props":1319,"children":1320},{"style":941},[1321],{"type":854,"value":1322}," false",{"type":849,"tag":922,"props":1324,"children":1325},{"style":975},[1326],{"type":854,"value":1327}," })",{"type":854,"value":1001},{"type":849,"tag":922,"props":1330,"children":1331},{"class":924,"style":925},[],{"type":854,"value":1001},{"type":849,"tag":922,"props":1334,"children":1335},{"class":924,"style":925},[1336],{"type":849,"tag":922,"props":1337,"children":1338},{"style":1098},[1339],{"type":854,"value":1340},"\u002F** convex-test with the real Better Auth component. *\u002F",{"type":854,"value":1001},{"type":849,"tag":922,"props":1343,"children":1344},{"class":924,"style":925},[1345,1349,1354,1359],{"type":849,"tag":922,"props":1346,"children":1347},{"style":969},[1348],{"type":854,"value":1013},{"type":849,"tag":922,"props":1350,"children":1351},{"style":941},[1352],{"type":854,"value":1353}," function",{"type":849,"tag":922,"props":1355,"children":1356},{"style":929},[1357],{"type":854,"value":1358}," initConvexTest",{"type":849,"tag":922,"props":1360,"children":1361},{"style":975},[1362],{"type":854,"value":1363},"() {",{"type":854,"value":1001},{"type":849,"tag":922,"props":1366,"children":1367},{"class":924,"style":925},[1368],{"type":849,"tag":922,"props":1369,"children":1370},{"style":1098},[1371],{"type":854,"value":1372},"  \u002F\u002F The issuer and the resource of an MCP grant (`grantMcp`) come from these.",{"type":854,"value":1001},{"type":849,"tag":922,"props":1375,"children":1376},{"class":924,"style":925},[1377,1382,1386,1391,1395,1400,1404,1409],{"type":849,"tag":922,"props":1378,"children":1379},{"style":981},[1380],{"type":854,"value":1381},"  vi",{"type":849,"tag":922,"props":1383,"children":1384},{"style":975},[1385],{"type":854,"value":899},{"type":849,"tag":922,"props":1387,"children":1388},{"style":929},[1389],{"type":854,"value":1390},"stubEnv",{"type":849,"tag":922,"props":1392,"children":1393},{"style":975},[1394],{"type":854,"value":1302},{"type":849,"tag":922,"props":1396,"children":1397},{"style":935},[1398],{"type":854,"value":1399},"'SITE_URL'",{"type":849,"tag":922,"props":1401,"children":1402},{"style":975},[1403],{"type":854,"value":1056},{"type":849,"tag":922,"props":1405,"children":1406},{"style":935},[1407],{"type":854,"value":1408},"'https:\u002F\u002Fapp.example.test'",{"type":849,"tag":922,"props":1410,"children":1411},{"style":975},[1412],{"type":854,"value":1413},")",{"type":854,"value":1001},{"type":849,"tag":922,"props":1416,"children":1417},{"class":924,"style":925},[1418,1422,1426,1430,1434,1439,1443,1448],{"type":849,"tag":922,"props":1419,"children":1420},{"style":981},[1421],{"type":854,"value":1381},{"type":849,"tag":922,"props":1423,"children":1424},{"style":975},[1425],{"type":854,"value":899},{"type":849,"tag":922,"props":1427,"children":1428},{"style":929},[1429],{"type":854,"value":1390},{"type":849,"tag":922,"props":1431,"children":1432},{"style":975},[1433],{"type":854,"value":1302},{"type":849,"tag":922,"props":1435,"children":1436},{"style":935},[1437],{"type":854,"value":1438},"'CONVEX_SITE_URL'",{"type":849,"tag":922,"props":1440,"children":1441},{"style":975},[1442],{"type":854,"value":1056},{"type":849,"tag":922,"props":1444,"children":1445},{"style":935},[1446],{"type":854,"value":1447},"'https:\u002F\u002Fdeployment.example.test'",{"type":849,"tag":922,"props":1449,"children":1450},{"style":975},[1451],{"type":854,"value":1413},{"type":854,"value":1001},{"type":849,"tag":922,"props":1454,"children":1455},{"class":924,"style":925},[1456,1461,1466,1470,1474,1478,1483,1487,1492],{"type":849,"tag":922,"props":1457,"children":1458},{"style":941},[1459],{"type":854,"value":1460},"  const",{"type":849,"tag":922,"props":1462,"children":1463},{"style":1267},[1464],{"type":854,"value":1465}," t",{"type":849,"tag":922,"props":1467,"children":1468},{"style":975},[1469],{"type":854,"value":1275},{"type":849,"tag":922,"props":1471,"children":1472},{"style":929},[1473],{"type":854,"value":1178},{"type":849,"tag":922,"props":1475,"children":1476},{"style":975},[1477],{"type":854,"value":1302},{"type":849,"tag":922,"props":1479,"children":1480},{"style":981},[1481],{"type":854,"value":1482},"schema",{"type":849,"tag":922,"props":1484,"children":1485},{"style":975},[1486],{"type":854,"value":1056},{"type":849,"tag":922,"props":1488,"children":1489},{"style":981},[1490],{"type":854,"value":1491},"modules",{"type":849,"tag":922,"props":1493,"children":1494},{"style":975},[1495],{"type":854,"value":1413},{"type":854,"value":1001},{"type":849,"tag":922,"props":1498,"children":1499},{"class":924,"style":925},[1500,1505,1509,1514,1518,1523],{"type":849,"tag":922,"props":1501,"children":1502},{"style":981},[1503],{"type":854,"value":1504},"  betterAuth",{"type":849,"tag":922,"props":1506,"children":1507},{"style":975},[1508],{"type":854,"value":899},{"type":849,"tag":922,"props":1510,"children":1511},{"style":929},[1512],{"type":854,"value":1513},"register",{"type":849,"tag":922,"props":1515,"children":1516},{"style":975},[1517],{"type":854,"value":1302},{"type":849,"tag":922,"props":1519,"children":1520},{"style":981},[1521],{"type":854,"value":1522},"t",{"type":849,"tag":922,"props":1524,"children":1525},{"style":975},[1526],{"type":854,"value":1413},{"type":854,"value":1001},{"type":849,"tag":922,"props":1529,"children":1530},{"class":924,"style":925},[1531,1536],{"type":849,"tag":922,"props":1532,"children":1533},{"style":969},[1534],{"type":854,"value":1535},"  return",{"type":849,"tag":922,"props":1537,"children":1538},{"style":981},[1539],{"type":854,"value":1465},{"type":854,"value":1001},{"type":849,"tag":922,"props":1542,"children":1543},{"class":924,"style":925},[1544],{"type":849,"tag":922,"props":1545,"children":1546},{"style":975},[1547],{"type":854,"value":1548},"}",{"type":849,"tag":850,"props":1550,"children":1551},{},[1552,1554,1559,1561,1566],{"type":854,"value":1553},"Convex does not deploy files with two dots in the name, such as\n",{"type":849,"tag":857,"props":1555,"children":1556},{},[1557],{"type":854,"value":1558},"test.setup.ts",{"type":854,"value":1560}," and ",{"type":849,"tag":857,"props":1562,"children":1563},{},[1564],{"type":854,"value":1565},"leaks.test.ts",{"type":854,"value":899},{"type":849,"tag":850,"props":1568,"children":1569},{},[1570,1572,1577,1579,1584,1586,1592],{"type":854,"value":1571},"The tests import ",{"type":849,"tag":857,"props":1573,"children":1574},{},[1575],{"type":854,"value":1576},".\u002F_generated\u002Fapi",{"type":854,"value":1578},". After you add a module or an export, run\n",{"type":849,"tag":857,"props":1580,"children":1581},{},[1582],{"type":854,"value":1583},"pnpm exec better-convex-nuxt convex codegen",{"type":854,"value":1585},". It needs a deployment; a local one\nworks without an account or network. See\n",{"type":849,"tag":877,"props":1587,"children":1589},{"href":1588},"\u002Fdocs\u002Freference\u002Fcli#convex-code-generation-without-a-cloud-deployment",[1590],{"type":854,"value":1591},"Code generation without a cloud deployment",{"type":854,"value":899},{"type":849,"tag":850,"props":1594,"children":1595},{},[1596,1601,1603,1608],{"type":849,"tag":857,"props":1597,"children":1598},{},[1599],{"type":854,"value":1600},"signInAs(t, 'ann')",{"type":854,"value":1602}," from ",{"type":849,"tag":857,"props":1604,"children":1605},{},[1606],{"type":854,"value":1607},"@lupinum\u002Fbetter-convex-nuxt\u002Fbetter-auth\u002Ftest",{"type":854,"value":1609},"\nreturns a client that calls functions as that person. It creates two rows in\nthe Better Auth component, or reuses them when they exist:",{"type":849,"tag":1611,"props":1612,"children":1613},"table",{},[1614,1638],{"type":849,"tag":1615,"props":1616,"children":1617},"thead",{},[1618],{"type":849,"tag":1619,"props":1620,"children":1621},"tr",{},[1622,1628,1633],{"type":849,"tag":1623,"props":1624,"children":1625},"th",{},[1626],{"type":854,"value":1627},"Row",{"type":849,"tag":1623,"props":1629,"children":1630},{},[1631],{"type":854,"value":1632},"ID",{"type":849,"tag":1623,"props":1634,"children":1635},{},[1636],{"type":854,"value":1637},"Other fields",{"type":849,"tag":1639,"props":1640,"children":1641},"tbody",{},[1642,1675],{"type":849,"tag":1619,"props":1643,"children":1644},{},[1645,1651,1659],{"type":849,"tag":1646,"props":1647,"children":1648},"td",{},[1649],{"type":854,"value":1650},"user",{"type":849,"tag":1646,"props":1652,"children":1653},{},[1654],{"type":849,"tag":857,"props":1655,"children":1656},{},[1657],{"type":854,"value":1658},"ann",{"type":849,"tag":1646,"props":1660,"children":1661},{},[1662,1664,1668,1670],{"type":854,"value":1663},"name ",{"type":849,"tag":857,"props":1665,"children":1666},{},[1667],{"type":854,"value":1658},{"type":854,"value":1669},", email ",{"type":849,"tag":857,"props":1671,"children":1672},{},[1673],{"type":854,"value":1674},"ann@example.com",{"type":849,"tag":1619,"props":1676,"children":1677},{},[1678,1683,1691],{"type":849,"tag":1646,"props":1679,"children":1680},{},[1681],{"type":854,"value":1682},"session",{"type":849,"tag":1646,"props":1684,"children":1685},{},[1686],{"type":849,"tag":857,"props":1687,"children":1688},{},[1689],{"type":854,"value":1690},"ann-session",{"type":849,"tag":1646,"props":1692,"children":1693},{},[1694,1696,1701],{"type":854,"value":1695},"expires in one hour (",{"type":849,"tag":857,"props":1697,"children":1698},{},[1699],{"type":854,"value":1700},"expiresInMs",{"type":854,"value":1702}," option)",{"type":849,"tag":850,"props":1704,"children":1705},{},[1706,1708,1713,1715,1720,1722,1727],{"type":854,"value":1707},"Insert your app's own ",{"type":849,"tag":857,"props":1709,"children":1710},{},[1711],{"type":854,"value":1712},"users",{"type":854,"value":1714}," row yourself, with ",{"type":849,"tag":857,"props":1716,"children":1717},{},[1718],{"type":854,"value":1719},"authId: 'ann'",{"type":854,"value":1721},". When the\nsession was deleted, for example to test a sign-out, the next ",{"type":849,"tag":857,"props":1723,"children":1724},{},[1725],{"type":854,"value":1726},"signInAs",{"type":854,"value":1728},"\ncreates a session with a new ID.",{"type":849,"tag":850,"props":1730,"children":1731},{},[1732,1734,1738,1740,1745,1746,1751,1753,1757,1759,1763],{"type":854,"value":1733},"The session expires one hour after ",{"type":849,"tag":857,"props":1735,"children":1736},{},[1737],{"type":854,"value":1726},{"type":854,"value":1739},", also in fake time. With\n",{"type":849,"tag":857,"props":1741,"children":1742},{},[1743],{"type":854,"value":1744},"vi.useFakeTimers()",{"type":854,"value":1056},{"type":849,"tag":857,"props":1747,"children":1748},{},[1749],{"type":854,"value":1750},"t.finishAllScheduledFunctions(vi.runAllTimers)",{"type":854,"value":1752}," runs\nevery timer, so it also moves the clock past the session's end, and the next\ncall is signed out. Move the clock in small steps instead, or give the session\na longer life. Pass ",{"type":849,"tag":857,"props":1754,"children":1755},{},[1756],{"type":854,"value":1700},{"type":854,"value":1758}," on the first ",{"type":849,"tag":857,"props":1760,"children":1761},{},[1762],{"type":854,"value":1726},{"type":854,"value":1764}," for that person in the\ntest: a later call reuses the live session and keeps its expiry.",{"type":849,"tag":912,"props":1766,"children":1767},{"language":957,"class":915},[1768],{"type":849,"tag":857,"props":1769,"children":1770},{"class":962},[1771,1779,1780,1788,1789,1797,1798,1873,1874,1903,1904,1930,1931,1938,1939,1942,1943,1951,1952],{"type":849,"tag":922,"props":1772,"children":1773},{"class":924,"style":925},[1774],{"type":849,"tag":922,"props":1775,"children":1776},{"style":1098},[1777],{"type":854,"value":1778},"\u002F\u002F Run the scheduled work of the next 10 seconds, one second at a time. Work",{"type":854,"value":1001},{"type":849,"tag":922,"props":1781,"children":1782},{"class":924,"style":925},[1783],{"type":849,"tag":922,"props":1784,"children":1785},{"style":1098},[1786],{"type":854,"value":1787},"\u002F\u002F that a step schedules starts in a later step, so take a few steps more than",{"type":854,"value":1001},{"type":849,"tag":922,"props":1790,"children":1791},{"class":924,"style":925},[1792],{"type":849,"tag":922,"props":1793,"children":1794},{"style":1098},[1795],{"type":854,"value":1796},"\u002F\u002F the time of the last job.",{"type":854,"value":1001},{"type":849,"tag":922,"props":1799,"children":1800},{"class":924,"style":925},[1801,1806,1811,1816,1821,1825,1831,1836,1841,1846,1851,1855,1859,1864,1868],{"type":849,"tag":922,"props":1802,"children":1803},{"style":969},[1804],{"type":854,"value":1805},"for",{"type":849,"tag":922,"props":1807,"children":1808},{"style":975},[1809],{"type":854,"value":1810}," (",{"type":849,"tag":922,"props":1812,"children":1813},{"style":941},[1814],{"type":854,"value":1815},"let",{"type":849,"tag":922,"props":1817,"children":1818},{"style":981},[1819],{"type":854,"value":1820}," step",{"type":849,"tag":922,"props":1822,"children":1823},{"style":975},[1824],{"type":854,"value":1275},{"type":849,"tag":922,"props":1826,"children":1828},{"style":1827},"color:#098658;--shiki-dark:#B5CEA8",[1829],{"type":854,"value":1830},"0",{"type":849,"tag":922,"props":1832,"children":1833},{"style":975},[1834],{"type":854,"value":1835},"; ",{"type":849,"tag":922,"props":1837,"children":1838},{"style":981},[1839],{"type":854,"value":1840},"step",{"type":849,"tag":922,"props":1842,"children":1843},{"style":975},[1844],{"type":854,"value":1845}," \u003C ",{"type":849,"tag":922,"props":1847,"children":1848},{"style":1827},[1849],{"type":854,"value":1850},"12",{"type":849,"tag":922,"props":1852,"children":1853},{"style":975},[1854],{"type":854,"value":1835},{"type":849,"tag":922,"props":1856,"children":1857},{"style":981},[1858],{"type":854,"value":1840},{"type":849,"tag":922,"props":1860,"children":1861},{"style":975},[1862],{"type":854,"value":1863}," += ",{"type":849,"tag":922,"props":1865,"children":1866},{"style":1827},[1867],{"type":854,"value":7},{"type":849,"tag":922,"props":1869,"children":1870},{"style":975},[1871],{"type":854,"value":1872},") {",{"type":854,"value":1001},{"type":849,"tag":922,"props":1875,"children":1876},{"class":924,"style":925},[1877,1881,1885,1890,1894,1899],{"type":849,"tag":922,"props":1878,"children":1879},{"style":981},[1880],{"type":854,"value":1381},{"type":849,"tag":922,"props":1882,"children":1883},{"style":975},[1884],{"type":854,"value":899},{"type":849,"tag":922,"props":1886,"children":1887},{"style":929},[1888],{"type":854,"value":1889},"advanceTimersByTime",{"type":849,"tag":922,"props":1891,"children":1892},{"style":975},[1893],{"type":854,"value":1302},{"type":849,"tag":922,"props":1895,"children":1896},{"style":1827},[1897],{"type":854,"value":1898},"1_000",{"type":849,"tag":922,"props":1900,"children":1901},{"style":975},[1902],{"type":854,"value":1413},{"type":854,"value":1001},{"type":849,"tag":922,"props":1905,"children":1906},{"class":924,"style":925},[1907,1912,1916,1920,1925],{"type":849,"tag":922,"props":1908,"children":1909},{"style":969},[1910],{"type":854,"value":1911},"  await",{"type":849,"tag":922,"props":1913,"children":1914},{"style":981},[1915],{"type":854,"value":1465},{"type":849,"tag":922,"props":1917,"children":1918},{"style":975},[1919],{"type":854,"value":899},{"type":849,"tag":922,"props":1921,"children":1922},{"style":929},[1923],{"type":854,"value":1924},"finishInProgressScheduledFunctions",{"type":849,"tag":922,"props":1926,"children":1927},{"style":975},[1928],{"type":854,"value":1929},"()",{"type":854,"value":1001},{"type":849,"tag":922,"props":1932,"children":1933},{"class":924,"style":925},[1934],{"type":849,"tag":922,"props":1935,"children":1936},{"style":975},[1937],{"type":854,"value":1548},{"type":854,"value":1001},{"type":849,"tag":922,"props":1940,"children":1941},{"class":924,"style":925},[],{"type":854,"value":1001},{"type":849,"tag":922,"props":1944,"children":1945},{"class":924,"style":925},[1946],{"type":849,"tag":922,"props":1947,"children":1948},{"style":1098},[1949],{"type":854,"value":1950},"\u002F\u002F Or: a session that outlives a job scheduled 24 hours later.",{"type":854,"value":1001},{"type":849,"tag":922,"props":1953,"children":1954},{"class":924,"style":925},[1955,1960,1965,1969,1974,1979,1983,1987,1991,1996,2000,2005,2010,2015,2020,2024,2029,2033,2037,2041,2046],{"type":849,"tag":922,"props":1956,"children":1957},{"style":941},[1958],{"type":854,"value":1959},"const",{"type":849,"tag":922,"props":1961,"children":1962},{"style":1267},[1963],{"type":854,"value":1964}," ann",{"type":849,"tag":922,"props":1966,"children":1967},{"style":975},[1968],{"type":854,"value":1275},{"type":849,"tag":922,"props":1970,"children":1971},{"style":969},[1972],{"type":854,"value":1973},"await",{"type":849,"tag":922,"props":1975,"children":1976},{"style":929},[1977],{"type":854,"value":1978}," signInAs",{"type":849,"tag":922,"props":1980,"children":1981},{"style":975},[1982],{"type":854,"value":1302},{"type":849,"tag":922,"props":1984,"children":1985},{"style":981},[1986],{"type":854,"value":1522},{"type":849,"tag":922,"props":1988,"children":1989},{"style":975},[1990],{"type":854,"value":1056},{"type":849,"tag":922,"props":1992,"children":1993},{"style":935},[1994],{"type":854,"value":1995},"'ann'",{"type":849,"tag":922,"props":1997,"children":1998},{"style":975},[1999],{"type":854,"value":1312},{"type":849,"tag":922,"props":2001,"children":2002},{"style":981},[2003],{"type":854,"value":2004},"expiresInMs:",{"type":849,"tag":922,"props":2006,"children":2007},{"style":1827},[2008],{"type":854,"value":2009}," 7",{"type":849,"tag":922,"props":2011,"children":2012},{"style":975},[2013],{"type":854,"value":2014}," * ",{"type":849,"tag":922,"props":2016,"children":2017},{"style":1827},[2018],{"type":854,"value":2019},"24",{"type":849,"tag":922,"props":2021,"children":2022},{"style":975},[2023],{"type":854,"value":2014},{"type":849,"tag":922,"props":2025,"children":2026},{"style":1827},[2027],{"type":854,"value":2028},"60",{"type":849,"tag":922,"props":2030,"children":2031},{"style":975},[2032],{"type":854,"value":2014},{"type":849,"tag":922,"props":2034,"children":2035},{"style":1827},[2036],{"type":854,"value":2028},{"type":849,"tag":922,"props":2038,"children":2039},{"style":975},[2040],{"type":854,"value":2014},{"type":849,"tag":922,"props":2042,"children":2043},{"style":1827},[2044],{"type":854,"value":2045},"1000",{"type":849,"tag":922,"props":2047,"children":2048},{"style":975},[2049],{"type":854,"value":1327},{"type":849,"tag":850,"props":2051,"children":2052},{},[2053,2055,2060,2062,2066],{"type":854,"value":2054},"The loop does not work for a scheduled action that awaits a timer itself, such\nas ",{"type":849,"tag":857,"props":2056,"children":2057},{},[2058],{"type":854,"value":2059},"setTimeout",{"type":854,"value":2061},": the test waits for the action while the clock stands still. Use\n",{"type":849,"tag":857,"props":2063,"children":2064},{},[2065],{"type":854,"value":1750},{"type":854,"value":2067}," with a longer session there.",{"type":849,"tag":2069,"props":2070,"children":2072},"h3",{"id":2071},"set-up-convex-test-assert-codes-not-messages",[2073],{"type":854,"value":2074},"Assert codes, not messages",{"type":849,"tag":850,"props":2076,"children":2077},{},[2078,2080,2085,2087,2092,2094,2099,2100,2105,2106,2111],{"type":854,"value":2079},"A refused call rejects with a ",{"type":849,"tag":857,"props":2081,"children":2082},{},[2083],{"type":854,"value":2084},"ConvexError",{"type":854,"value":2086}," whose ",{"type":849,"tag":857,"props":2088,"children":2089},{},[2090],{"type":854,"value":2091},"data.code",{"type":854,"value":2093}," says why:\n",{"type":849,"tag":857,"props":2095,"children":2096},{},[2097],{"type":854,"value":2098},"NOT_FOUND",{"type":854,"value":1056},{"type":849,"tag":857,"props":2101,"children":2102},{},[2103],{"type":854,"value":2104},"FORBIDDEN",{"type":854,"value":1056},{"type":849,"tag":857,"props":2107,"children":2108},{},[2109],{"type":854,"value":2110},"APPROVAL_NOT_FOUND",{"type":854,"value":2112},". Compare the code with one\nliteral value. The codes are part of the public API. The message texts are\nnot, and a release can change them.",{"type":849,"tag":901,"props":2114,"children":2116},{"id":2115},"no-raw-functions",[2117],{"type":854,"value":2118},"No raw functions",{"type":849,"tag":850,"props":2120,"children":2121},{},[2122,2124,2129,2130,2135,2136,2141,2143,2148],{"type":854,"value":2123},"A function built with Convex's own ",{"type":849,"tag":857,"props":2125,"children":2126},{},[2127],{"type":854,"value":2128},"query",{"type":854,"value":1056},{"type":849,"tag":857,"props":2131,"children":2132},{},[2133],{"type":854,"value":2134},"mutation",{"type":854,"value":1056},{"type":849,"tag":857,"props":2137,"children":2138},{},[2139],{"type":854,"value":2140},"internalMutation",{"type":854,"value":2142}," or\n",{"type":849,"tag":857,"props":2144,"children":2145},{},[2146],{"type":854,"value":2147},"httpAction",{"type":854,"value":2149}," gets no actor, no policy and no row rules. An operation that\ncalls a raw internal function fails, but a raw public function is open to\nevery caller. This test finds each one.",{"type":849,"tag":912,"props":2151,"children":2153},{"language":957,"filename":2152,"class":915},"convex\u002Fno-bypass.test.ts",[2154],{"type":849,"tag":857,"props":2155,"children":2156},{"class":962},[2157,2186,2187,2224,2225,2228,2229,2257,2258,2261,2262,2270,2271,2279,2280,2288,2289,2329,2330,2367,2368,2421,2422],{"type":849,"tag":922,"props":2158,"children":2159},{"class":924,"style":925},[2160,2164,2168,2173,2177,2181],{"type":849,"tag":922,"props":2161,"children":2162},{"style":969},[2163],{"type":854,"value":972},{"type":849,"tag":922,"props":2165,"children":2166},{"style":975},[2167],{"type":854,"value":978},{"type":849,"tag":922,"props":2169,"children":2170},{"style":981},[2171],{"type":854,"value":2172},"unguardedFunctions",{"type":849,"tag":922,"props":2174,"children":2175},{"style":975},[2176],{"type":854,"value":989},{"type":849,"tag":922,"props":2178,"children":2179},{"style":969},[2180],{"type":854,"value":994},{"type":849,"tag":922,"props":2182,"children":2183},{"style":935},[2184],{"type":854,"value":2185}," '@lupinum\u002Fbetter-convex-functions\u002Ftest'",{"type":854,"value":1001},{"type":849,"tag":922,"props":2188,"children":2189},{"class":924,"style":925},[2190,2194,2198,2203,2207,2212,2216,2220],{"type":849,"tag":922,"props":2191,"children":2192},{"style":969},[2193],{"type":854,"value":972},{"type":849,"tag":922,"props":2195,"children":2196},{"style":975},[2197],{"type":854,"value":978},{"type":849,"tag":922,"props":2199,"children":2200},{"style":981},[2201],{"type":854,"value":2202},"expect",{"type":849,"tag":922,"props":2204,"children":2205},{"style":975},[2206],{"type":854,"value":1056},{"type":849,"tag":922,"props":2208,"children":2209},{"style":981},[2210],{"type":854,"value":2211},"test",{"type":849,"tag":922,"props":2213,"children":2214},{"style":975},[2215],{"type":854,"value":989},{"type":849,"tag":922,"props":2217,"children":2218},{"style":969},[2219],{"type":854,"value":994},{"type":849,"tag":922,"props":2221,"children":2222},{"style":935},[2223],{"type":854,"value":1221},{"type":854,"value":1001},{"type":849,"tag":922,"props":2226,"children":2227},{"class":924,"style":925},[],{"type":854,"value":1001},{"type":849,"tag":922,"props":2230,"children":2231},{"class":924,"style":925},[2232,2236,2240,2244,2248,2252],{"type":849,"tag":922,"props":2233,"children":2234},{"style":969},[2235],{"type":854,"value":972},{"type":849,"tag":922,"props":2237,"children":2238},{"style":975},[2239],{"type":854,"value":978},{"type":849,"tag":922,"props":2241,"children":2242},{"style":981},[2243],{"type":854,"value":1491},{"type":849,"tag":922,"props":2245,"children":2246},{"style":975},[2247],{"type":854,"value":989},{"type":849,"tag":922,"props":2249,"children":2250},{"style":969},[2251],{"type":854,"value":994},{"type":849,"tag":922,"props":2253,"children":2254},{"style":935},[2255],{"type":854,"value":2256}," '.\u002Ftest.setup'",{"type":854,"value":1001},{"type":849,"tag":922,"props":2259,"children":2260},{"class":924,"style":925},[],{"type":854,"value":1001},{"type":849,"tag":922,"props":2263,"children":2264},{"class":924,"style":925},[2265],{"type":849,"tag":922,"props":2266,"children":2267},{"style":1098},[2268],{"type":854,"value":2269},"\u002F\u002F Catches a function built with Convex's own builders instead of the ones from .\u002Ffunctions:",{"type":854,"value":1001},{"type":849,"tag":922,"props":2272,"children":2273},{"class":924,"style":925},[2274],{"type":849,"tag":922,"props":2275,"children":2276},{"style":1098},[2277],{"type":854,"value":2278},"\u002F\u002F it would skip the caller check, the policy and the row rules. Mark a deliberate one with",{"type":854,"value":1001},{"type":849,"tag":922,"props":2281,"children":2282},{"class":924,"style":925},[2283],{"type":849,"tag":922,"props":2284,"children":2285},{"style":1098},[2286],{"type":854,"value":2287},"\u002F\u002F `trusted(reason, fn)`.",{"type":854,"value":1001},{"type":849,"tag":922,"props":2290,"children":2291},{"class":924,"style":925},[2292,2296,2300,2305,2309,2314,2319,2324],{"type":849,"tag":922,"props":2293,"children":2294},{"style":929},[2295],{"type":854,"value":2211},{"type":849,"tag":922,"props":2297,"children":2298},{"style":975},[2299],{"type":854,"value":1302},{"type":849,"tag":922,"props":2301,"children":2302},{"style":935},[2303],{"type":854,"value":2304},"'every function goes through the policy and the row rules'",{"type":849,"tag":922,"props":2306,"children":2307},{"style":975},[2308],{"type":854,"value":1056},{"type":849,"tag":922,"props":2310,"children":2311},{"style":941},[2312],{"type":854,"value":2313},"async",{"type":849,"tag":922,"props":2315,"children":2316},{"style":975},[2317],{"type":854,"value":2318}," () ",{"type":849,"tag":922,"props":2320,"children":2321},{"style":941},[2322],{"type":854,"value":2323},"=>",{"type":849,"tag":922,"props":2325,"children":2326},{"style":975},[2327],{"type":854,"value":2328}," {",{"type":854,"value":1001},{"type":849,"tag":922,"props":2331,"children":2332},{"class":924,"style":925},[2333,2337,2342,2347,2352,2357,2362],{"type":849,"tag":922,"props":2334,"children":2335},{"style":941},[2336],{"type":854,"value":1460},{"type":849,"tag":922,"props":2338,"children":2339},{"style":1267},[2340],{"type":854,"value":2341}," trustedRoutes",{"type":849,"tag":922,"props":2343,"children":2344},{"style":975},[2345],{"type":854,"value":2346}," = { ",{"type":849,"tag":922,"props":2348,"children":2349},{"style":935},[2350],{"type":854,"value":2351},"'\u002Fapi\u002Fauth\u002F'",{"type":849,"tag":922,"props":2353,"children":2354},{"style":981},[2355],{"type":854,"value":2356},":",{"type":849,"tag":922,"props":2358,"children":2359},{"style":935},[2360],{"type":854,"value":2361}," 'Better Auth endpoints; the auth library checks each one.'",{"type":849,"tag":922,"props":2363,"children":2364},{"style":975},[2365],{"type":854,"value":2366}," }",{"type":854,"value":1001},{"type":849,"tag":922,"props":2369,"children":2370},{"class":924,"style":925},[2371,2376,2380,2384,2389,2393,2397,2401,2406,2411,2416],{"type":849,"tag":922,"props":2372,"children":2373},{"style":929},[2374],{"type":854,"value":2375},"  expect",{"type":849,"tag":922,"props":2377,"children":2378},{"style":975},[2379],{"type":854,"value":1302},{"type":849,"tag":922,"props":2381,"children":2382},{"style":969},[2383],{"type":854,"value":1973},{"type":849,"tag":922,"props":2385,"children":2386},{"style":929},[2387],{"type":854,"value":2388}," unguardedFunctions",{"type":849,"tag":922,"props":2390,"children":2391},{"style":975},[2392],{"type":854,"value":1302},{"type":849,"tag":922,"props":2394,"children":2395},{"style":981},[2396],{"type":854,"value":1491},{"type":849,"tag":922,"props":2398,"children":2399},{"style":975},[2400],{"type":854,"value":1312},{"type":849,"tag":922,"props":2402,"children":2403},{"style":981},[2404],{"type":854,"value":2405},"trustedRoutes",{"type":849,"tag":922,"props":2407,"children":2408},{"style":975},[2409],{"type":854,"value":2410}," })).",{"type":849,"tag":922,"props":2412,"children":2413},{"style":929},[2414],{"type":854,"value":2415},"toEqual",{"type":849,"tag":922,"props":2417,"children":2418},{"style":975},[2419],{"type":854,"value":2420},"([])",{"type":854,"value":1001},{"type":849,"tag":922,"props":2423,"children":2424},{"class":924,"style":925},[2425],{"type":849,"tag":922,"props":2426,"children":2427},{"style":975},[2428],{"type":854,"value":1085},{"type":849,"tag":850,"props":2430,"children":2431},{},[2432,2436,2438,2442,2444,2449,2451,2456,2458,2462],{"type":849,"tag":857,"props":2433,"children":2434},{},[2435],{"type":854,"value":2172},{"type":854,"value":2437}," takes the module map that ",{"type":849,"tag":857,"props":2439,"children":2440},{},[2441],{"type":854,"value":1178},{"type":854,"value":2443}," receives, so it\nchecks the modules that Convex deploys. Like Convex, it skips files with two\ndots in the name, ",{"type":849,"tag":857,"props":2445,"children":2446},{},[2447],{"type":854,"value":2448},"_generated\u002F",{"type":854,"value":2450}," at the root, and a local component (a folder\nwith its own ",{"type":849,"tag":857,"props":2452,"children":2453},{},[2454],{"type":854,"value":2455},"convex.config.ts",{"type":854,"value":2457},"). It throws when the map is empty or has no\n",{"type":849,"tag":857,"props":2459,"children":2460},{},[2461],{"type":854,"value":861},{"type":854,"value":2463}," operation, because then the test would check nothing.",{"type":849,"tag":850,"props":2465,"children":2466},{},[2467,2469,2474,2476,2481,2482,2487],{"type":854,"value":2468},"When a function must skip the library, for example an operator function or\na trigger of the auth component, wrap it and say why:\n",{"type":849,"tag":857,"props":2470,"children":2471},{},[2472],{"type":854,"value":2473},"trusted('Operator function: run it from the dashboard.', internalMutation({ … }))",{"type":854,"value":2475},".\nThe reason shows up when someone reviews the list of trusted functions.\n",{"type":849,"tag":857,"props":2477,"children":2478},{},[2479],{"type":854,"value":2480},"convex\u002Fconnections.ts",{"type":854,"value":1560},{"type":849,"tag":857,"props":2483,"children":2484},{},[2485],{"type":854,"value":2486},"convex\u002Fauth.ts",{"type":854,"value":2488}," in the starter show both kinds.",{"type":849,"tag":850,"props":2490,"children":2491},{},[2492,2496,2498,2503,2505,2510,2512,2517],{"type":849,"tag":857,"props":2493,"children":2494},{},[2495],{"type":854,"value":2405},{"type":854,"value":2497}," does the same for HTTP routes under a path prefix that\nanother library checks, such as the Better Auth endpoints. A prefix covers\nwhole path segments: ",{"type":849,"tag":857,"props":2499,"children":2500},{},[2501],{"type":854,"value":2502},"\u002Fapi\u002Fauth",{"type":854,"value":2504}," covers ",{"type":849,"tag":857,"props":2506,"children":2507},{},[2508],{"type":854,"value":2509},"\u002Fapi\u002Fauth\u002Fsession",{"type":854,"value":2511},", not\n",{"type":849,"tag":857,"props":2513,"children":2514},{},[2515],{"type":854,"value":2516},"\u002Fapi\u002Fauthz\u002Fusers",{"type":854,"value":899},{"type":849,"tag":850,"props":2519,"children":2520},{},[2521,2523,2527],{"type":854,"value":2522},"Run this test in CI. It is the guarantee: the runtime checks are the second\nline. See ",{"type":849,"tag":877,"props":2524,"children":2525},{"href":533},[2526],{"type":854,"value":528},{"type":854,"value":899},{"type":849,"tag":901,"props":2529,"children":2531},{"id":2530},"launch-check",[2532],{"type":854,"value":2533},"Launch check",{"type":849,"tag":850,"props":2535,"children":2536},{},[2537,2542],{"type":849,"tag":857,"props":2538,"children":2539},{},[2540],{"type":854,"value":2541},"launchProblems",{"type":854,"value":2543}," runs the checks that matter most before an app goes live. It\nreturns one plain sentence for each problem, and an empty list when all is well.",{"type":849,"tag":912,"props":2545,"children":2547},{"language":957,"filename":2546,"class":915},"convex\u002Flaunch.test.ts",[2548],{"type":849,"tag":857,"props":2549,"children":2550},{"class":962},[2551,2578,2579,2614,2615,2618,2619,2640,2641,2670,2671,2690,2691,2718,2719,2722,2723,2731,2732,2740,2741,2749,2750,2786,2787,2818,2819,2893,2894],{"type":849,"tag":922,"props":2552,"children":2553},{"class":924,"style":925},[2554,2558,2562,2566,2570,2574],{"type":849,"tag":922,"props":2555,"children":2556},{"style":969},[2557],{"type":854,"value":972},{"type":849,"tag":922,"props":2559,"children":2560},{"style":975},[2561],{"type":854,"value":978},{"type":849,"tag":922,"props":2563,"children":2564},{"style":981},[2565],{"type":854,"value":2541},{"type":849,"tag":922,"props":2567,"children":2568},{"style":975},[2569],{"type":854,"value":989},{"type":849,"tag":922,"props":2571,"children":2572},{"style":969},[2573],{"type":854,"value":994},{"type":849,"tag":922,"props":2575,"children":2576},{"style":935},[2577],{"type":854,"value":2185},{"type":854,"value":1001},{"type":849,"tag":922,"props":2580,"children":2581},{"class":924,"style":925},[2582,2586,2590,2594,2598,2602,2606,2610],{"type":849,"tag":922,"props":2583,"children":2584},{"style":969},[2585],{"type":854,"value":972},{"type":849,"tag":922,"props":2587,"children":2588},{"style":975},[2589],{"type":854,"value":978},{"type":849,"tag":922,"props":2591,"children":2592},{"style":981},[2593],{"type":854,"value":2202},{"type":849,"tag":922,"props":2595,"children":2596},{"style":975},[2597],{"type":854,"value":1056},{"type":849,"tag":922,"props":2599,"children":2600},{"style":981},[2601],{"type":854,"value":2211},{"type":849,"tag":922,"props":2603,"children":2604},{"style":975},[2605],{"type":854,"value":989},{"type":849,"tag":922,"props":2607,"children":2608},{"style":969},[2609],{"type":854,"value":994},{"type":849,"tag":922,"props":2611,"children":2612},{"style":935},[2613],{"type":854,"value":1221},{"type":854,"value":1001},{"type":849,"tag":922,"props":2616,"children":2617},{"class":924,"style":925},[],{"type":854,"value":1001},{"type":849,"tag":922,"props":2620,"children":2621},{"class":924,"style":925},[2622,2626,2631,2635],{"type":849,"tag":922,"props":2623,"children":2624},{"style":969},[2625],{"type":854,"value":972},{"type":849,"tag":922,"props":2627,"children":2628},{"style":981},[2629],{"type":854,"value":2630}," crons",{"type":849,"tag":922,"props":2632,"children":2633},{"style":969},[2634],{"type":854,"value":1156},{"type":849,"tag":922,"props":2636,"children":2637},{"style":935},[2638],{"type":854,"value":2639}," '.\u002Fcrons'",{"type":854,"value":1001},{"type":849,"tag":922,"props":2642,"children":2643},{"class":924,"style":925},[2644,2648,2652,2657,2661,2665],{"type":849,"tag":922,"props":2645,"children":2646},{"style":969},[2647],{"type":854,"value":972},{"type":849,"tag":922,"props":2649,"children":2650},{"style":975},[2651],{"type":854,"value":978},{"type":849,"tag":922,"props":2653,"children":2654},{"style":981},[2655],{"type":854,"value":2656},"fns",{"type":849,"tag":922,"props":2658,"children":2659},{"style":975},[2660],{"type":854,"value":989},{"type":849,"tag":922,"props":2662,"children":2663},{"style":969},[2664],{"type":854,"value":994},{"type":849,"tag":922,"props":2666,"children":2667},{"style":935},[2668],{"type":854,"value":2669}," '.\u002Ffunctions'",{"type":854,"value":1001},{"type":849,"tag":922,"props":2672,"children":2673},{"class":924,"style":925},[2674,2678,2682,2686],{"type":849,"tag":922,"props":2675,"children":2676},{"style":969},[2677],{"type":854,"value":972},{"type":849,"tag":922,"props":2679,"children":2680},{"style":981},[2681],{"type":854,"value":1238},{"type":849,"tag":922,"props":2683,"children":2684},{"style":969},[2685],{"type":854,"value":1156},{"type":849,"tag":922,"props":2687,"children":2688},{"style":935},[2689],{"type":854,"value":1247},{"type":854,"value":1001},{"type":849,"tag":922,"props":2692,"children":2693},{"class":924,"style":925},[2694,2698,2702,2706,2710,2714],{"type":849,"tag":922,"props":2695,"children":2696},{"style":969},[2697],{"type":854,"value":972},{"type":849,"tag":922,"props":2699,"children":2700},{"style":975},[2701],{"type":854,"value":978},{"type":849,"tag":922,"props":2703,"children":2704},{"style":981},[2705],{"type":854,"value":1491},{"type":849,"tag":922,"props":2707,"children":2708},{"style":975},[2709],{"type":854,"value":989},{"type":849,"tag":922,"props":2711,"children":2712},{"style":969},[2713],{"type":854,"value":994},{"type":849,"tag":922,"props":2715,"children":2716},{"style":935},[2717],{"type":854,"value":2256},{"type":854,"value":1001},{"type":849,"tag":922,"props":2720,"children":2721},{"class":924,"style":925},[],{"type":854,"value":1001},{"type":849,"tag":922,"props":2724,"children":2725},{"class":924,"style":925},[2726],{"type":849,"tag":922,"props":2727,"children":2728},{"style":1098},[2729],{"type":854,"value":2730},"\u002F\u002F Catches the mistakes that hurt after launch: a raw Convex function, a table that keeps a",{"type":854,"value":1001},{"type":849,"tag":922,"props":2733,"children":2734},{"class":924,"style":925},[2735],{"type":849,"tag":922,"props":2736,"children":2737},{"style":1098},[2738],{"type":854,"value":2739},"\u002F\u002F person's data after they delete their account, housekeeping nobody schedules, a public write",{"type":854,"value":1001},{"type":849,"tag":922,"props":2742,"children":2743},{"class":924,"style":925},[2744],{"type":849,"tag":922,"props":2745,"children":2746},{"style":1098},[2747],{"type":854,"value":2748},"\u002F\u002F without a limit, and a tool that no agent sees. Each problem names the fix.",{"type":854,"value":1001},{"type":849,"tag":922,"props":2751,"children":2752},{"class":924,"style":925},[2753,2757,2761,2766,2770,2774,2778,2782],{"type":849,"tag":922,"props":2754,"children":2755},{"style":929},[2756],{"type":854,"value":2211},{"type":849,"tag":922,"props":2758,"children":2759},{"style":975},[2760],{"type":854,"value":1302},{"type":849,"tag":922,"props":2762,"children":2763},{"style":935},[2764],{"type":854,"value":2765},"'the app has no launch problems'",{"type":849,"tag":922,"props":2767,"children":2768},{"style":975},[2769],{"type":854,"value":1056},{"type":849,"tag":922,"props":2771,"children":2772},{"style":941},[2773],{"type":854,"value":2313},{"type":849,"tag":922,"props":2775,"children":2776},{"style":975},[2777],{"type":854,"value":2318},{"type":849,"tag":922,"props":2779,"children":2780},{"style":941},[2781],{"type":854,"value":2323},{"type":849,"tag":922,"props":2783,"children":2784},{"style":975},[2785],{"type":854,"value":2328},{"type":854,"value":1001},{"type":849,"tag":922,"props":2788,"children":2789},{"class":924,"style":925},[2790,2794,2798,2802,2806,2810,2814],{"type":849,"tag":922,"props":2791,"children":2792},{"style":941},[2793],{"type":854,"value":1460},{"type":849,"tag":922,"props":2795,"children":2796},{"style":1267},[2797],{"type":854,"value":2341},{"type":849,"tag":922,"props":2799,"children":2800},{"style":975},[2801],{"type":854,"value":2346},{"type":849,"tag":922,"props":2803,"children":2804},{"style":935},[2805],{"type":854,"value":2351},{"type":849,"tag":922,"props":2807,"children":2808},{"style":981},[2809],{"type":854,"value":2356},{"type":849,"tag":922,"props":2811,"children":2812},{"style":935},[2813],{"type":854,"value":2361},{"type":849,"tag":922,"props":2815,"children":2816},{"style":975},[2817],{"type":854,"value":2366},{"type":854,"value":1001},{"type":849,"tag":922,"props":2820,"children":2821},{"class":924,"style":925},[2822,2826,2830,2834,2839,2844,2848,2852,2856,2860,2865,2869,2873,2877,2881,2885,2889],{"type":849,"tag":922,"props":2823,"children":2824},{"style":929},[2825],{"type":854,"value":2375},{"type":849,"tag":922,"props":2827,"children":2828},{"style":975},[2829],{"type":854,"value":1302},{"type":849,"tag":922,"props":2831,"children":2832},{"style":969},[2833],{"type":854,"value":1973},{"type":849,"tag":922,"props":2835,"children":2836},{"style":929},[2837],{"type":854,"value":2838}," launchProblems",{"type":849,"tag":922,"props":2840,"children":2841},{"style":975},[2842],{"type":854,"value":2843},"({ ",{"type":849,"tag":922,"props":2845,"children":2846},{"style":981},[2847],{"type":854,"value":1491},{"type":849,"tag":922,"props":2849,"children":2850},{"style":975},[2851],{"type":854,"value":1056},{"type":849,"tag":922,"props":2853,"children":2854},{"style":981},[2855],{"type":854,"value":1482},{"type":849,"tag":922,"props":2857,"children":2858},{"style":975},[2859],{"type":854,"value":1056},{"type":849,"tag":922,"props":2861,"children":2862},{"style":981},[2863],{"type":854,"value":2864},"crons",{"type":849,"tag":922,"props":2866,"children":2867},{"style":975},[2868],{"type":854,"value":1056},{"type":849,"tag":922,"props":2870,"children":2871},{"style":981},[2872],{"type":854,"value":2656},{"type":849,"tag":922,"props":2874,"children":2875},{"style":975},[2876],{"type":854,"value":1056},{"type":849,"tag":922,"props":2878,"children":2879},{"style":981},[2880],{"type":854,"value":2405},{"type":849,"tag":922,"props":2882,"children":2883},{"style":975},[2884],{"type":854,"value":2410},{"type":849,"tag":922,"props":2886,"children":2887},{"style":929},[2888],{"type":854,"value":2415},{"type":849,"tag":922,"props":2890,"children":2891},{"style":975},[2892],{"type":854,"value":2420},{"type":854,"value":1001},{"type":849,"tag":922,"props":2895,"children":2896},{"class":924,"style":925},[2897],{"type":849,"tag":922,"props":2898,"children":2899},{"style":975},[2900],{"type":854,"value":1085},{"type":849,"tag":850,"props":2902,"children":2903},{},[2904],{"type":854,"value":2905},"It checks five things, and nothing else:",{"type":849,"tag":2907,"props":2908,"children":2909},"ol",{},[2910,2934,3002,3018,3035],{"type":849,"tag":2911,"props":2912,"children":2913},"li",{},[2914,2920,2922,2926,2928,2932],{"type":849,"tag":2915,"props":2916,"children":2917},"strong",{},[2918],{"type":854,"value":2919},"Raw functions.",{"type":854,"value":2921}," The same check as ",{"type":849,"tag":857,"props":2923,"children":2924},{},[2925],{"type":854,"value":2172},{"type":854,"value":2927},". ",{"type":849,"tag":857,"props":2929,"children":2930},{},[2931],{"type":854,"value":2405},{"type":854,"value":2933}," is passed on.",{"type":849,"tag":2911,"props":2935,"children":2936},{},[2937,2942,2944,2949,2951,2956,2958,2962,2964,2969,2971,2976,2978,2982,2984,2988,2990,2994,2996,3000],{"type":849,"tag":2915,"props":2938,"children":2939},{},[2940],{"type":854,"value":2941},"Account deletion.",{"type":854,"value":2943}," Every field that holds ",{"type":849,"tag":857,"props":2945,"children":2946},{},[2947],{"type":854,"value":2948},"v.id('users')",{"type":854,"value":2950}," is covered by an entry in the ",{"type":849,"tag":857,"props":2952,"children":2953},{},[2954],{"type":854,"value":2955},"erasure",{"type":854,"value":2957}," map of ",{"type":849,"tag":857,"props":2959,"children":2960},{},[2961],{"type":854,"value":861},{"type":854,"value":2963}," (or the table has ",{"type":849,"tag":857,"props":2965,"children":2966},{},[2967],{"type":854,"value":2968},"keep",{"type":854,"value":2970},"), and a module exports ",{"type":849,"tag":857,"props":2972,"children":2973},{},[2974],{"type":854,"value":2975},"fns.erasure.eraseStep",{"type":854,"value":2977},". The check also finds an ID inside an object, an array or a record (as key or value). Erasure cannot reach such an ID, so only ",{"type":849,"tag":857,"props":2979,"children":2980},{},[2981],{"type":854,"value":2968},{"type":854,"value":2983}," covers it, or you store the ID in its own indexed field. The check looks for ",{"type":849,"tag":857,"props":2985,"children":2986},{},[2987],{"type":854,"value":2948},{"type":854,"value":2989},", so the table of your users must be called ",{"type":849,"tag":857,"props":2991,"children":2992},{},[2993],{"type":854,"value":1712},{"type":854,"value":2995},". That table and the library tables need no entry. Without ",{"type":849,"tag":857,"props":2997,"children":2998},{},[2999],{"type":854,"value":2955},{"type":854,"value":3001},", the sentence says that account deletion is not set up.",{"type":849,"tag":2911,"props":3003,"children":3004},{},[3005,3010,3012,3016],{"type":849,"tag":2915,"props":3006,"children":3007},{},[3008],{"type":854,"value":3009},"Housekeeping.",{"type":854,"value":3011}," If the agents package built a housekeeping function in your modules, a cron in ",{"type":849,"tag":857,"props":3013,"children":3014},{},[3015],{"type":854,"value":2864},{"type":854,"value":3017}," calls it.",{"type":849,"tag":2911,"props":3019,"children":3020},{},[3021,3026,3028,3033],{"type":849,"tag":2915,"props":3022,"children":3023},{},[3024],{"type":854,"value":3025},"Limits on public writes.",{"type":854,"value":3027}," Every public action that a public mutation uses has a ",{"type":849,"tag":857,"props":3029,"children":3030},{},[3031],{"type":854,"value":3032},"limits",{"type":854,"value":3034}," entry in the policy.",{"type":849,"tag":2911,"props":3036,"children":3037},{},[3038,3043,3045,3050,3052,3057,3059,3063,3065,3070],{"type":849,"tag":2915,"props":3039,"children":3040},{},[3041],{"type":854,"value":3042},"Tools in a catalog.",{"type":854,"value":3044}," Every operation with a ",{"type":849,"tag":857,"props":3046,"children":3047},{},[3048],{"type":854,"value":3049},"tool",{"type":854,"value":3051}," is in a module that you pass to ",{"type":849,"tag":857,"props":3053,"children":3054},{},[3055],{"type":854,"value":3056},"defineTools",{"type":854,"value":3058},", and the module that calls ",{"type":849,"tag":857,"props":3060,"children":3061},{},[3062],{"type":854,"value":3056},{"type":854,"value":3064}," exports its result as ",{"type":849,"tag":857,"props":3066,"children":3067},{},[3068],{"type":854,"value":3069},"tools",{"type":854,"value":3071},". Otherwise no agent sees the tool.",{"type":849,"tag":850,"props":3073,"children":3074},{},[3075,3077,3082,3084,3089],{"type":854,"value":3076},"Each sentence names the file, table or action and the fix. To accept a finding\non purpose, use the way that exists already: ",{"type":849,"tag":857,"props":3078,"children":3079},{},[3080],{"type":854,"value":3081},"trusted(reason, fn)",{"type":854,"value":3083},",\n",{"type":849,"tag":857,"props":3085,"children":3086},{},[3087],{"type":854,"value":3088},"erasure: { table: { keep: reason } }",{"type":854,"value":3090},", or a limit.",{"type":849,"tag":850,"props":3092,"children":3093},{},[3094,3096,3101],{"type":854,"value":3095},"It does not check that your rules, roles or limits are the right ones, that\n",{"type":849,"tag":857,"props":3097,"children":3098},{},[3099],{"type":854,"value":3100},"beforeDelete",{"type":854,"value":3102}," refuses what it should, or anything outside Convex, such as\nfiles in storage or other services.",{"type":849,"tag":901,"props":3104,"children":3106},{"id":3105},"no-leaks-between-tenants",[3107],{"type":854,"value":3108},"No leaks between tenants",{"type":849,"tag":850,"props":3110,"children":3111},{},[3112],{"type":854,"value":3113},"Put one row of another tenant in the database: the canary. Then let people\nwho must not reach it aim every call at it. Each row of the table names an\nactor, a call and the one code the call must fail with:",{"type":849,"tag":1611,"props":3115,"children":3116},{},[3117,3138],{"type":849,"tag":1615,"props":3118,"children":3119},{},[3120],{"type":849,"tag":1619,"props":3121,"children":3122},{},[3123,3128,3133],{"type":849,"tag":1623,"props":3124,"children":3125},{},[3126],{"type":854,"value":3127},"Actor",{"type":849,"tag":1623,"props":3129,"children":3130},{},[3131],{"type":854,"value":3132},"Calls",{"type":849,"tag":1623,"props":3134,"children":3135},{},[3136],{"type":854,"value":3137},"Code",{"type":849,"tag":1639,"props":3139,"children":3140},{},[3141,3161,3185,3205],{"type":849,"tag":1619,"props":3142,"children":3143},{},[3144,3149,3154],{"type":849,"tag":1646,"props":3145,"children":3146},{},[3147],{"type":854,"value":3148},"A stranger: no membership in the tenant",{"type":849,"tag":1646,"props":3150,"children":3151},{},[3152],{"type":854,"value":3153},"every call",{"type":849,"tag":1646,"props":3155,"children":3156},{},[3157],{"type":849,"tag":857,"props":3158,"children":3159},{},[3160],{"type":854,"value":2098},{"type":849,"tag":1619,"props":3162,"children":3163},{},[3164,3174,3178],{"type":849,"tag":1646,"props":3165,"children":3166},{},[3167,3169],{"type":854,"value":3168},"A former member: membership status ",{"type":849,"tag":857,"props":3170,"children":3171},{},[3172],{"type":854,"value":3173},"removed",{"type":849,"tag":1646,"props":3175,"children":3176},{},[3177],{"type":854,"value":3153},{"type":849,"tag":1646,"props":3179,"children":3180},{},[3181],{"type":849,"tag":857,"props":3182,"children":3183},{},[3184],{"type":854,"value":2098},{"type":849,"tag":1619,"props":3186,"children":3187},{},[3188,3193,3198],{"type":849,"tag":1646,"props":3189,"children":3190},{},[3191],{"type":854,"value":3192},"A lower role: a viewer in the tenant",{"type":849,"tag":1646,"props":3194,"children":3195},{},[3196],{"type":854,"value":3197},"every write",{"type":849,"tag":1646,"props":3199,"children":3200},{},[3201],{"type":849,"tag":857,"props":3202,"children":3203},{},[3204],{"type":854,"value":2104},{"type":849,"tag":1619,"props":3206,"children":3207},{},[3208,3213,3223],{"type":849,"tag":1646,"props":3209,"children":3210},{},[3211],{"type":854,"value":3212},"Each of them, through their own agent",{"type":849,"tag":1646,"props":3214,"children":3215},{},[3216,3221],{"type":849,"tag":857,"props":3217,"children":3218},{},[3219],{"type":854,"value":3220},"check_approval",{"type":854,"value":3222}," with the ID of another agent's request",{"type":849,"tag":1646,"props":3224,"children":3225},{},[3226],{"type":849,"tag":857,"props":3227,"children":3228},{},[3229],{"type":854,"value":2110},{"type":849,"tag":850,"props":3231,"children":3232},{},[3233,3235,3239,3241,3245],{"type":854,"value":3234},"A stranger and a former member get ",{"type":849,"tag":857,"props":3236,"children":3237},{},[3238],{"type":854,"value":2098},{"type":854,"value":3240},", not ",{"type":849,"tag":857,"props":3242,"children":3243},{},[3244],{"type":854,"value":2104},{"type":854,"value":3246},": the answer\nmust not tell them that the row exists.",{"type":849,"tag":850,"props":3248,"children":3249},{},[3250,3252,3261,3263,3268,3270,3275],{"type":854,"value":3251},"The starter's\n",{"type":849,"tag":877,"props":3253,"children":3255},{"href":3254},"https:\u002F\u002Fgithub.com\u002Flupinum-dev\u002Fbetter-convex\u002Fblob\u002Fmain\u002Fstarters\u002Fmcp-oauth-agent\u002Fconvex\u002Fleaks.test.ts",[3256],{"type":849,"tag":857,"props":3257,"children":3258},{},[3259],{"type":854,"value":3260},"convex\u002Fleaks.test.ts",{"type":854,"value":3262},"\nhas one call for each operation, through the web client, and one for each\ntool, through ",{"type":849,"tag":857,"props":3264,"children":3265},{},[3266],{"type":854,"value":3267},"callTool",{"type":854,"value":3269}," (see ",{"type":849,"tag":877,"props":3271,"children":3273},{"href":3272},"#tools-and-approvals",[3274],{"type":854,"value":437},{"type":854,"value":3276},").\nEach call takes the IDs it aims at:",{"type":849,"tag":912,"props":3278,"children":3279},{"language":957,"class":915},[3280],{"type":849,"tag":857,"props":3281,"children":3282},{"class":962},[3283,3358,3359,3407,3408,3482,3483,3528,3529,3603,3604,3612,3613,3620,3621,3662,3663,3707,3708,3770,3771,3779,3780,3787,3788,3791,3792,3834,3835,3871,3872,3904,3905,3938,3939,3947,3948],{"type":849,"tag":922,"props":3284,"children":3285},{"class":924,"style":925},[3286,3290,3295,3300,3306,3310,3315,3319,3324,3329,3334,3338,3343,3348,3353],{"type":849,"tag":922,"props":3287,"children":3288},{"style":941},[3289],{"type":854,"value":1959},{"type":849,"tag":922,"props":3291,"children":3292},{"style":1267},[3293],{"type":854,"value":3294}," operations",{"type":849,"tag":922,"props":3296,"children":3297},{"style":975},[3298],{"type":854,"value":3299},": ",{"type":849,"tag":922,"props":3301,"children":3303},{"style":3302},"color:#267F99;--shiki-dark:#4EC9B0",[3304],{"type":854,"value":3305},"Record",{"type":849,"tag":922,"props":3307,"children":3308},{"style":975},[3309],{"type":854,"value":1107},{"type":849,"tag":922,"props":3311,"children":3312},{"style":3302},[3313],{"type":854,"value":3314},"Exclude",{"type":849,"tag":922,"props":3316,"children":3317},{"style":975},[3318],{"type":854,"value":1107},{"type":849,"tag":922,"props":3320,"children":3321},{"style":941},[3322],{"type":854,"value":3323},"keyof",{"type":849,"tag":922,"props":3325,"children":3326},{"style":941},[3327],{"type":854,"value":3328}," typeof",{"type":849,"tag":922,"props":3330,"children":3331},{"style":981},[3332],{"type":854,"value":3333}," projects",{"type":849,"tag":922,"props":3335,"children":3336},{"style":975},[3337],{"type":854,"value":1056},{"type":849,"tag":922,"props":3339,"children":3340},{"style":935},[3341],{"type":854,"value":3342},"'organizations'",{"type":849,"tag":922,"props":3344,"children":3345},{"style":975},[3346],{"type":854,"value":3347},">, ",{"type":849,"tag":922,"props":3349,"children":3350},{"style":3302},[3351],{"type":854,"value":3352},"Call",{"type":849,"tag":922,"props":3354,"children":3355},{"style":975},[3356],{"type":854,"value":3357},"> = {",{"type":854,"value":1001},{"type":849,"tag":922,"props":3360,"children":3361},{"class":924,"style":925},[3362,3367,3371,3375,3380,3384,3389,3393,3398,3403],{"type":849,"tag":922,"props":3363,"children":3364},{"style":929},[3365],{"type":854,"value":3366},"  search",{"type":849,"tag":922,"props":3368,"children":3369},{"style":981},[3370],{"type":854,"value":2356},{"type":849,"tag":922,"props":3372,"children":3373},{"style":975},[3374],{"type":854,"value":1810},{"type":849,"tag":922,"props":3376,"children":3377},{"style":981},[3378],{"type":854,"value":3379},"_t",{"type":849,"tag":922,"props":3381,"children":3382},{"style":975},[3383],{"type":854,"value":1056},{"type":849,"tag":922,"props":3385,"children":3386},{"style":981},[3387],{"type":854,"value":3388},"eve",{"type":849,"tag":922,"props":3390,"children":3391},{"style":975},[3392],{"type":854,"value":1312},{"type":849,"tag":922,"props":3394,"children":3395},{"style":981},[3396],{"type":854,"value":3397},"organizationId",{"type":849,"tag":922,"props":3399,"children":3400},{"style":975},[3401],{"type":854,"value":3402}," }) ",{"type":849,"tag":922,"props":3404,"children":3405},{"style":941},[3406],{"type":854,"value":2323},{"type":854,"value":1001},{"type":849,"tag":922,"props":3409,"children":3410},{"class":924,"style":925},[3411,3416,3420,3425,3429,3433,3437,3442,3446,3451,3455,3460,3464,3468,3472,3477],{"type":849,"tag":922,"props":3412,"children":3413},{"style":981},[3414],{"type":854,"value":3415},"    eve",{"type":849,"tag":922,"props":3417,"children":3418},{"style":975},[3419],{"type":854,"value":899},{"type":849,"tag":922,"props":3421,"children":3422},{"style":981},[3423],{"type":854,"value":3424},"web",{"type":849,"tag":922,"props":3426,"children":3427},{"style":975},[3428],{"type":854,"value":899},{"type":849,"tag":922,"props":3430,"children":3431},{"style":929},[3432],{"type":854,"value":2128},{"type":849,"tag":922,"props":3434,"children":3435},{"style":975},[3436],{"type":854,"value":1302},{"type":849,"tag":922,"props":3438,"children":3439},{"style":981},[3440],{"type":854,"value":3441},"api",{"type":849,"tag":922,"props":3443,"children":3444},{"style":975},[3445],{"type":854,"value":899},{"type":849,"tag":922,"props":3447,"children":3448},{"style":981},[3449],{"type":854,"value":3450},"projects",{"type":849,"tag":922,"props":3452,"children":3453},{"style":975},[3454],{"type":854,"value":899},{"type":849,"tag":922,"props":3456,"children":3457},{"style":981},[3458],{"type":854,"value":3459},"search",{"type":849,"tag":922,"props":3461,"children":3462},{"style":975},[3463],{"type":854,"value":1312},{"type":849,"tag":922,"props":3465,"children":3466},{"style":981},[3467],{"type":854,"value":3397},{"type":849,"tag":922,"props":3469,"children":3470},{"style":975},[3471],{"type":854,"value":1056},{"type":849,"tag":922,"props":3473,"children":3474},{"style":981},[3475],{"type":854,"value":3476},"paginationOpts",{"type":849,"tag":922,"props":3478,"children":3479},{"style":975},[3480],{"type":854,"value":3481}," }),",{"type":854,"value":1001},{"type":849,"tag":922,"props":3484,"children":3485},{"class":924,"style":925},[3486,3491,3495,3499,3503,3507,3511,3515,3520,3524],{"type":849,"tag":922,"props":3487,"children":3488},{"style":929},[3489],{"type":854,"value":3490},"  rename",{"type":849,"tag":922,"props":3492,"children":3493},{"style":981},[3494],{"type":854,"value":2356},{"type":849,"tag":922,"props":3496,"children":3497},{"style":975},[3498],{"type":854,"value":1810},{"type":849,"tag":922,"props":3500,"children":3501},{"style":981},[3502],{"type":854,"value":3379},{"type":849,"tag":922,"props":3504,"children":3505},{"style":975},[3506],{"type":854,"value":1056},{"type":849,"tag":922,"props":3508,"children":3509},{"style":981},[3510],{"type":854,"value":3388},{"type":849,"tag":922,"props":3512,"children":3513},{"style":975},[3514],{"type":854,"value":1312},{"type":849,"tag":922,"props":3516,"children":3517},{"style":981},[3518],{"type":854,"value":3519},"projectId",{"type":849,"tag":922,"props":3521,"children":3522},{"style":975},[3523],{"type":854,"value":3402},{"type":849,"tag":922,"props":3525,"children":3526},{"style":941},[3527],{"type":854,"value":2323},{"type":854,"value":1001},{"type":849,"tag":922,"props":3530,"children":3531},{"class":924,"style":925},[3532,3536,3540,3544,3548,3552,3556,3560,3564,3568,3572,3577,3581,3585,3589,3594,3599],{"type":849,"tag":922,"props":3533,"children":3534},{"style":981},[3535],{"type":854,"value":3415},{"type":849,"tag":922,"props":3537,"children":3538},{"style":975},[3539],{"type":854,"value":899},{"type":849,"tag":922,"props":3541,"children":3542},{"style":981},[3543],{"type":854,"value":3424},{"type":849,"tag":922,"props":3545,"children":3546},{"style":975},[3547],{"type":854,"value":899},{"type":849,"tag":922,"props":3549,"children":3550},{"style":929},[3551],{"type":854,"value":2134},{"type":849,"tag":922,"props":3553,"children":3554},{"style":975},[3555],{"type":854,"value":1302},{"type":849,"tag":922,"props":3557,"children":3558},{"style":981},[3559],{"type":854,"value":3441},{"type":849,"tag":922,"props":3561,"children":3562},{"style":975},[3563],{"type":854,"value":899},{"type":849,"tag":922,"props":3565,"children":3566},{"style":981},[3567],{"type":854,"value":3450},{"type":849,"tag":922,"props":3569,"children":3570},{"style":975},[3571],{"type":854,"value":899},{"type":849,"tag":922,"props":3573,"children":3574},{"style":981},[3575],{"type":854,"value":3576},"rename",{"type":849,"tag":922,"props":3578,"children":3579},{"style":975},[3580],{"type":854,"value":1312},{"type":849,"tag":922,"props":3582,"children":3583},{"style":981},[3584],{"type":854,"value":3519},{"type":849,"tag":922,"props":3586,"children":3587},{"style":975},[3588],{"type":854,"value":1056},{"type":849,"tag":922,"props":3590,"children":3591},{"style":981},[3592],{"type":854,"value":3593},"name:",{"type":849,"tag":922,"props":3595,"children":3596},{"style":935},[3597],{"type":854,"value":3598}," 'Mine'",{"type":849,"tag":922,"props":3600,"children":3601},{"style":975},[3602],{"type":854,"value":3481},{"type":854,"value":1001},{"type":849,"tag":922,"props":3605,"children":3606},{"class":924,"style":925},[3607],{"type":849,"tag":922,"props":3608,"children":3609},{"style":1098},[3610],{"type":854,"value":3611},"  \u002F\u002F … one entry for each operation",{"type":854,"value":1001},{"type":849,"tag":922,"props":3614,"children":3615},{"class":924,"style":925},[3616],{"type":849,"tag":922,"props":3617,"children":3618},{"style":975},[3619],{"type":854,"value":1548},{"type":854,"value":1001},{"type":849,"tag":922,"props":3622,"children":3623},{"class":924,"style":925},[3624,3628,3633,3637,3641,3645,3650,3654,3658],{"type":849,"tag":922,"props":3625,"children":3626},{"style":941},[3627],{"type":854,"value":1959},{"type":849,"tag":922,"props":3629,"children":3630},{"style":1267},[3631],{"type":854,"value":3632}," toolCalls",{"type":849,"tag":922,"props":3634,"children":3635},{"style":975},[3636],{"type":854,"value":3299},{"type":849,"tag":922,"props":3638,"children":3639},{"style":3302},[3640],{"type":854,"value":3305},{"type":849,"tag":922,"props":3642,"children":3643},{"style":975},[3644],{"type":854,"value":1107},{"type":849,"tag":922,"props":3646,"children":3647},{"style":3302},[3648],{"type":854,"value":3649},"string",{"type":849,"tag":922,"props":3651,"children":3652},{"style":975},[3653],{"type":854,"value":1056},{"type":849,"tag":922,"props":3655,"children":3656},{"style":3302},[3657],{"type":854,"value":3352},{"type":849,"tag":922,"props":3659,"children":3660},{"style":975},[3661],{"type":854,"value":3357},{"type":854,"value":1001},{"type":849,"tag":922,"props":3664,"children":3665},{"class":924,"style":925},[3666,3671,3675,3679,3683,3687,3691,3695,3699,3703],{"type":849,"tag":922,"props":3667,"children":3668},{"style":929},[3669],{"type":854,"value":3670},"  archive_project",{"type":849,"tag":922,"props":3672,"children":3673},{"style":981},[3674],{"type":854,"value":2356},{"type":849,"tag":922,"props":3676,"children":3677},{"style":975},[3678],{"type":854,"value":1810},{"type":849,"tag":922,"props":3680,"children":3681},{"style":981},[3682],{"type":854,"value":1522},{"type":849,"tag":922,"props":3684,"children":3685},{"style":975},[3686],{"type":854,"value":1056},{"type":849,"tag":922,"props":3688,"children":3689},{"style":981},[3690],{"type":854,"value":3388},{"type":849,"tag":922,"props":3692,"children":3693},{"style":975},[3694],{"type":854,"value":1312},{"type":849,"tag":922,"props":3696,"children":3697},{"style":981},[3698],{"type":854,"value":3519},{"type":849,"tag":922,"props":3700,"children":3701},{"style":975},[3702],{"type":854,"value":3402},{"type":849,"tag":922,"props":3704,"children":3705},{"style":941},[3706],{"type":854,"value":2323},{"type":854,"value":1001},{"type":849,"tag":922,"props":3709,"children":3710},{"class":924,"style":925},[3711,3716,3720,3724,3728,3732,3736,3740,3744,3749,3753,3758,3762,3766],{"type":849,"tag":922,"props":3712,"children":3713},{"style":929},[3714],{"type":854,"value":3715},"    callTool",{"type":849,"tag":922,"props":3717,"children":3718},{"style":975},[3719],{"type":854,"value":1302},{"type":849,"tag":922,"props":3721,"children":3722},{"style":981},[3723],{"type":854,"value":1522},{"type":849,"tag":922,"props":3725,"children":3726},{"style":975},[3727],{"type":854,"value":1056},{"type":849,"tag":922,"props":3729,"children":3730},{"style":981},[3731],{"type":854,"value":3069},{"type":849,"tag":922,"props":3733,"children":3734},{"style":975},[3735],{"type":854,"value":1056},{"type":849,"tag":922,"props":3737,"children":3738},{"style":981},[3739],{"type":854,"value":3388},{"type":849,"tag":922,"props":3741,"children":3742},{"style":975},[3743],{"type":854,"value":899},{"type":849,"tag":922,"props":3745,"children":3746},{"style":981},[3747],{"type":854,"value":3748},"principal",{"type":849,"tag":922,"props":3750,"children":3751},{"style":975},[3752],{"type":854,"value":1056},{"type":849,"tag":922,"props":3754,"children":3755},{"style":935},[3756],{"type":854,"value":3757},"'archive_project'",{"type":849,"tag":922,"props":3759,"children":3760},{"style":975},[3761],{"type":854,"value":1312},{"type":849,"tag":922,"props":3763,"children":3764},{"style":981},[3765],{"type":854,"value":3519},{"type":849,"tag":922,"props":3767,"children":3768},{"style":975},[3769],{"type":854,"value":3481},{"type":854,"value":1001},{"type":849,"tag":922,"props":3772,"children":3773},{"class":924,"style":925},[3774],{"type":849,"tag":922,"props":3775,"children":3776},{"style":1098},[3777],{"type":854,"value":3778},"  \u002F\u002F … one entry for each tool that takes an ID",{"type":854,"value":1001},{"type":849,"tag":922,"props":3781,"children":3782},{"class":924,"style":925},[3783],{"type":849,"tag":922,"props":3784,"children":3785},{"style":975},[3786],{"type":854,"value":1548},{"type":854,"value":1001},{"type":849,"tag":922,"props":3789,"children":3790},{"class":924,"style":925},[],{"type":854,"value":1001},{"type":849,"tag":922,"props":3793,"children":3794},{"class":924,"style":925},[3795,3799,3804,3809,3813,3817,3821,3825,3829],{"type":849,"tag":922,"props":3796,"children":3797},{"style":941},[3798],{"type":854,"value":1959},{"type":849,"tag":922,"props":3800,"children":3801},{"style":1267},[3802],{"type":854,"value":3803}," rows",{"type":849,"tag":922,"props":3805,"children":3806},{"style":975},[3807],{"type":854,"value":3808},": [",{"type":849,"tag":922,"props":3810,"children":3811},{"style":3302},[3812],{"type":854,"value":3127},{"type":849,"tag":922,"props":3814,"children":3815},{"style":975},[3816],{"type":854,"value":1056},{"type":849,"tag":922,"props":3818,"children":3819},{"style":3302},[3820],{"type":854,"value":3649},{"type":849,"tag":922,"props":3822,"children":3823},{"style":975},[3824],{"type":854,"value":1056},{"type":849,"tag":922,"props":3826,"children":3827},{"style":3302},[3828],{"type":854,"value":3649},{"type":849,"tag":922,"props":3830,"children":3831},{"style":975},[3832],{"type":854,"value":3833},"][] = [",{"type":854,"value":1001},{"type":849,"tag":922,"props":3836,"children":3837},{"class":924,"style":925},[3838,3843,3848,3852,3857,3861,3866],{"type":849,"tag":922,"props":3839,"children":3840},{"style":975},[3841],{"type":854,"value":3842},"  [",{"type":849,"tag":922,"props":3844,"children":3845},{"style":935},[3846],{"type":854,"value":3847},"'stranger'",{"type":849,"tag":922,"props":3849,"children":3850},{"style":975},[3851],{"type":854,"value":1056},{"type":849,"tag":922,"props":3853,"children":3854},{"style":935},[3855],{"type":854,"value":3856},"'rename'",{"type":849,"tag":922,"props":3858,"children":3859},{"style":975},[3860],{"type":854,"value":1056},{"type":849,"tag":922,"props":3862,"children":3863},{"style":935},[3864],{"type":854,"value":3865},"'NOT_FOUND'",{"type":849,"tag":922,"props":3867,"children":3868},{"style":975},[3869],{"type":854,"value":3870},"],",{"type":854,"value":1001},{"type":849,"tag":922,"props":3873,"children":3874},{"class":924,"style":925},[3875,3879,3884,3888,3892,3896,3900],{"type":849,"tag":922,"props":3876,"children":3877},{"style":975},[3878],{"type":854,"value":3842},{"type":849,"tag":922,"props":3880,"children":3881},{"style":935},[3882],{"type":854,"value":3883},"'former member'",{"type":849,"tag":922,"props":3885,"children":3886},{"style":975},[3887],{"type":854,"value":1056},{"type":849,"tag":922,"props":3889,"children":3890},{"style":935},[3891],{"type":854,"value":3757},{"type":849,"tag":922,"props":3893,"children":3894},{"style":975},[3895],{"type":854,"value":1056},{"type":849,"tag":922,"props":3897,"children":3898},{"style":935},[3899],{"type":854,"value":3865},{"type":849,"tag":922,"props":3901,"children":3902},{"style":975},[3903],{"type":854,"value":3870},{"type":854,"value":1001},{"type":849,"tag":922,"props":3906,"children":3907},{"class":924,"style":925},[3908,3912,3917,3921,3925,3929,3934],{"type":849,"tag":922,"props":3909,"children":3910},{"style":975},[3911],{"type":854,"value":3842},{"type":849,"tag":922,"props":3913,"children":3914},{"style":935},[3915],{"type":854,"value":3916},"'viewer'",{"type":849,"tag":922,"props":3918,"children":3919},{"style":975},[3920],{"type":854,"value":1056},{"type":849,"tag":922,"props":3922,"children":3923},{"style":935},[3924],{"type":854,"value":3856},{"type":849,"tag":922,"props":3926,"children":3927},{"style":975},[3928],{"type":854,"value":1056},{"type":849,"tag":922,"props":3930,"children":3931},{"style":935},[3932],{"type":854,"value":3933},"'FORBIDDEN'",{"type":849,"tag":922,"props":3935,"children":3936},{"style":975},[3937],{"type":854,"value":3870},{"type":854,"value":1001},{"type":849,"tag":922,"props":3940,"children":3941},{"class":924,"style":925},[3942],{"type":849,"tag":922,"props":3943,"children":3944},{"style":1098},[3945],{"type":854,"value":3946},"  \u002F\u002F … one row for each actor and call",{"type":854,"value":1001},{"type":849,"tag":922,"props":3949,"children":3950},{"class":924,"style":925},[3951],{"type":849,"tag":922,"props":3952,"children":3953},{"style":975},[3954],{"type":854,"value":3955},"]",{"type":849,"tag":850,"props":3957,"children":3958},{},[3959],{"type":854,"value":3960},"Each row runs three checks:",{"type":849,"tag":912,"props":3962,"children":3963},{"language":957,"class":915},[3964],{"type":849,"tag":857,"props":3965,"children":3966},{"class":962},[3967,4051,4052,4110,4111,4146,4147,4176,4177,4180,4181,4289,4290,4298,4299,4349,4350,4353,4354,4362,4363,4427,4428],{"type":849,"tag":922,"props":3968,"children":3969},{"class":924,"style":925},[3970,3975,3979,3984,3988,3993,3998,4003,4007,4011,4015,4020,4024,4029,4033,4038,4043,4047],{"type":849,"tag":922,"props":3971,"children":3972},{"style":981},[3973],{"type":854,"value":3974},"it",{"type":849,"tag":922,"props":3976,"children":3977},{"style":975},[3978],{"type":854,"value":899},{"type":849,"tag":922,"props":3980,"children":3981},{"style":929},[3982],{"type":854,"value":3983},"each",{"type":849,"tag":922,"props":3985,"children":3986},{"style":975},[3987],{"type":854,"value":1302},{"type":849,"tag":922,"props":3989,"children":3990},{"style":981},[3991],{"type":854,"value":3992},"rows",{"type":849,"tag":922,"props":3994,"children":3995},{"style":975},[3996],{"type":854,"value":3997},")(",{"type":849,"tag":922,"props":3999,"children":4000},{"style":935},[4001],{"type":854,"value":4002},"'a %s: %s fails with %s'",{"type":849,"tag":922,"props":4004,"children":4005},{"style":975},[4006],{"type":854,"value":1056},{"type":849,"tag":922,"props":4008,"children":4009},{"style":941},[4010],{"type":854,"value":2313},{"type":849,"tag":922,"props":4012,"children":4013},{"style":975},[4014],{"type":854,"value":1810},{"type":849,"tag":922,"props":4016,"children":4017},{"style":981},[4018],{"type":854,"value":4019},"actor",{"type":849,"tag":922,"props":4021,"children":4022},{"style":975},[4023],{"type":854,"value":1056},{"type":849,"tag":922,"props":4025,"children":4026},{"style":981},[4027],{"type":854,"value":4028},"name",{"type":849,"tag":922,"props":4030,"children":4031},{"style":975},[4032],{"type":854,"value":1056},{"type":849,"tag":922,"props":4034,"children":4035},{"style":981},[4036],{"type":854,"value":4037},"expected",{"type":849,"tag":922,"props":4039,"children":4040},{"style":975},[4041],{"type":854,"value":4042},") ",{"type":849,"tag":922,"props":4044,"children":4045},{"style":941},[4046],{"type":854,"value":2323},{"type":849,"tag":922,"props":4048,"children":4049},{"style":975},[4050],{"type":854,"value":2328},{"type":854,"value":1001},{"type":849,"tag":922,"props":4053,"children":4054},{"class":924,"style":925},[4055,4059,4063,4067,4071,4076,4080,4084,4089,4093,4098,4102,4106],{"type":849,"tag":922,"props":4056,"children":4057},{"style":941},[4058],{"type":854,"value":1460},{"type":849,"tag":922,"props":4060,"children":4061},{"style":975},[4062],{"type":854,"value":978},{"type":849,"tag":922,"props":4064,"children":4065},{"style":1267},[4066],{"type":854,"value":1522},{"type":849,"tag":922,"props":4068,"children":4069},{"style":975},[4070],{"type":854,"value":1056},{"type":849,"tag":922,"props":4072,"children":4073},{"style":1267},[4074],{"type":854,"value":4075},"bob",{"type":849,"tag":922,"props":4077,"children":4078},{"style":975},[4079],{"type":854,"value":1056},{"type":849,"tag":922,"props":4081,"children":4082},{"style":1267},[4083],{"type":854,"value":3388},{"type":849,"tag":922,"props":4085,"children":4086},{"style":975},[4087],{"type":854,"value":4088}," } = ",{"type":849,"tag":922,"props":4090,"children":4091},{"style":969},[4092],{"type":854,"value":1973},{"type":849,"tag":922,"props":4094,"children":4095},{"style":929},[4096],{"type":854,"value":4097}," setup",{"type":849,"tag":922,"props":4099,"children":4100},{"style":975},[4101],{"type":854,"value":1302},{"type":849,"tag":922,"props":4103,"children":4104},{"style":981},[4105],{"type":854,"value":4019},{"type":849,"tag":922,"props":4107,"children":4108},{"style":975},[4109],{"type":854,"value":1413},{"type":854,"value":1001},{"type":849,"tag":922,"props":4112,"children":4113},{"class":924,"style":925},[4114,4118,4123,4127,4132,4137,4141],{"type":849,"tag":922,"props":4115,"children":4116},{"style":941},[4117],{"type":854,"value":1460},{"type":849,"tag":922,"props":4119,"children":4120},{"style":1267},[4121],{"type":854,"value":4122}," call",{"type":849,"tag":922,"props":4124,"children":4125},{"style":975},[4126],{"type":854,"value":1275},{"type":849,"tag":922,"props":4128,"children":4129},{"style":981},[4130],{"type":854,"value":4131},"calls",{"type":849,"tag":922,"props":4133,"children":4134},{"style":975},[4135],{"type":854,"value":4136},"[",{"type":849,"tag":922,"props":4138,"children":4139},{"style":981},[4140],{"type":854,"value":4028},{"type":849,"tag":922,"props":4142,"children":4143},{"style":975},[4144],{"type":854,"value":4145},"]!",{"type":854,"value":1001},{"type":849,"tag":922,"props":4148,"children":4149},{"class":924,"style":925},[4150,4154,4159,4163,4167,4172],{"type":849,"tag":922,"props":4151,"children":4152},{"style":941},[4153],{"type":854,"value":1460},{"type":849,"tag":922,"props":4155,"children":4156},{"style":1267},[4157],{"type":854,"value":4158}," before",{"type":849,"tag":922,"props":4160,"children":4161},{"style":975},[4162],{"type":854,"value":1275},{"type":849,"tag":922,"props":4164,"children":4165},{"style":969},[4166],{"type":854,"value":1973},{"type":849,"tag":922,"props":4168,"children":4169},{"style":929},[4170],{"type":854,"value":4171}," state",{"type":849,"tag":922,"props":4173,"children":4174},{"style":975},[4175],{"type":854,"value":1929},{"type":854,"value":1001},{"type":849,"tag":922,"props":4178,"children":4179},{"class":924,"style":925},[],{"type":854,"value":1001},{"type":849,"tag":922,"props":4182,"children":4183},{"class":924,"style":925},[4184,4188,4193,4197,4202,4206,4210,4214,4218,4222,4226,4231,4236,4241,4245,4250,4254,4258,4263,4268,4272,4277,4281,4285],{"type":849,"tag":922,"props":4185,"children":4186},{"style":969},[4187],{"type":854,"value":1911},{"type":849,"tag":922,"props":4189,"children":4190},{"style":929},[4191],{"type":854,"value":4192}," expect",{"type":849,"tag":922,"props":4194,"children":4195},{"style":975},[4196],{"type":854,"value":1302},{"type":849,"tag":922,"props":4198,"children":4199},{"style":929},[4200],{"type":854,"value":4201},"call",{"type":849,"tag":922,"props":4203,"children":4204},{"style":975},[4205],{"type":854,"value":1302},{"type":849,"tag":922,"props":4207,"children":4208},{"style":981},[4209],{"type":854,"value":1522},{"type":849,"tag":922,"props":4211,"children":4212},{"style":975},[4213],{"type":854,"value":1056},{"type":849,"tag":922,"props":4215,"children":4216},{"style":981},[4217],{"type":854,"value":3388},{"type":849,"tag":922,"props":4219,"children":4220},{"style":975},[4221],{"type":854,"value":1056},{"type":849,"tag":922,"props":4223,"children":4224},{"style":981},[4225],{"type":854,"value":4075},{"type":849,"tag":922,"props":4227,"children":4228},{"style":975},[4229],{"type":854,"value":4230},").",{"type":849,"tag":922,"props":4232,"children":4233},{"style":929},[4234],{"type":854,"value":4235},"then",{"type":849,"tag":922,"props":4237,"children":4238},{"style":975},[4239],{"type":854,"value":4240},"(() ",{"type":849,"tag":922,"props":4242,"children":4243},{"style":941},[4244],{"type":854,"value":2323},{"type":849,"tag":922,"props":4246,"children":4247},{"style":935},[4248],{"type":854,"value":4249}," 'no error'",{"type":849,"tag":922,"props":4251,"children":4252},{"style":975},[4253],{"type":854,"value":1056},{"type":849,"tag":922,"props":4255,"children":4256},{"style":981},[4257],{"type":854,"value":857},{"type":849,"tag":922,"props":4259,"children":4260},{"style":975},[4261],{"type":854,"value":4262},")).",{"type":849,"tag":922,"props":4264,"children":4265},{"style":981},[4266],{"type":854,"value":4267},"resolves",{"type":849,"tag":922,"props":4269,"children":4270},{"style":975},[4271],{"type":854,"value":899},{"type":849,"tag":922,"props":4273,"children":4274},{"style":929},[4275],{"type":854,"value":4276},"toBe",{"type":849,"tag":922,"props":4278,"children":4279},{"style":975},[4280],{"type":854,"value":1302},{"type":849,"tag":922,"props":4282,"children":4283},{"style":981},[4284],{"type":854,"value":4037},{"type":849,"tag":922,"props":4286,"children":4287},{"style":975},[4288],{"type":854,"value":1413},{"type":854,"value":1001},{"type":849,"tag":922,"props":4291,"children":4292},{"class":924,"style":925},[4293],{"type":849,"tag":922,"props":4294,"children":4295},{"style":1098},[4296],{"type":854,"value":4297},"  \u002F\u002F Nothing changed: no project renamed, archived or added, and no new request for a person.",{"type":854,"value":1001},{"type":849,"tag":922,"props":4300,"children":4301},{"class":924,"style":925},[4302,4306,4310,4314,4319,4324,4328,4332,4336,4340,4345],{"type":849,"tag":922,"props":4303,"children":4304},{"style":969},[4305],{"type":854,"value":1911},{"type":849,"tag":922,"props":4307,"children":4308},{"style":929},[4309],{"type":854,"value":4192},{"type":849,"tag":922,"props":4311,"children":4312},{"style":975},[4313],{"type":854,"value":1302},{"type":849,"tag":922,"props":4315,"children":4316},{"style":929},[4317],{"type":854,"value":4318},"state",{"type":849,"tag":922,"props":4320,"children":4321},{"style":975},[4322],{"type":854,"value":4323},"()).",{"type":849,"tag":922,"props":4325,"children":4326},{"style":981},[4327],{"type":854,"value":4267},{"type":849,"tag":922,"props":4329,"children":4330},{"style":975},[4331],{"type":854,"value":899},{"type":849,"tag":922,"props":4333,"children":4334},{"style":929},[4335],{"type":854,"value":2415},{"type":849,"tag":922,"props":4337,"children":4338},{"style":975},[4339],{"type":854,"value":1302},{"type":849,"tag":922,"props":4341,"children":4342},{"style":981},[4343],{"type":854,"value":4344},"before",{"type":849,"tag":922,"props":4346,"children":4347},{"style":975},[4348],{"type":854,"value":1413},{"type":854,"value":1001},{"type":849,"tag":922,"props":4351,"children":4352},{"class":924,"style":925},[],{"type":854,"value":1001},{"type":849,"tag":922,"props":4355,"children":4356},{"class":924,"style":925},[4357],{"type":849,"tag":922,"props":4358,"children":4359},{"style":1098},[4360],{"type":854,"value":4361},"  \u002F\u002F The positive control: the same call through the same path succeeds with Eve's own IDs.",{"type":854,"value":1001},{"type":849,"tag":922,"props":4364,"children":4365},{"class":924,"style":925},[4366,4370,4374,4378,4382,4386,4390,4394,4398,4402,4406,4410,4414,4418,4423],{"type":849,"tag":922,"props":4367,"children":4368},{"style":969},[4369],{"type":854,"value":1911},{"type":849,"tag":922,"props":4371,"children":4372},{"style":929},[4373],{"type":854,"value":4192},{"type":849,"tag":922,"props":4375,"children":4376},{"style":975},[4377],{"type":854,"value":1302},{"type":849,"tag":922,"props":4379,"children":4380},{"style":929},[4381],{"type":854,"value":4201},{"type":849,"tag":922,"props":4383,"children":4384},{"style":975},[4385],{"type":854,"value":1302},{"type":849,"tag":922,"props":4387,"children":4388},{"style":981},[4389],{"type":854,"value":1522},{"type":849,"tag":922,"props":4391,"children":4392},{"style":975},[4393],{"type":854,"value":1056},{"type":849,"tag":922,"props":4395,"children":4396},{"style":981},[4397],{"type":854,"value":3388},{"type":849,"tag":922,"props":4399,"children":4400},{"style":975},[4401],{"type":854,"value":1056},{"type":849,"tag":922,"props":4403,"children":4404},{"style":981},[4405],{"type":854,"value":3388},{"type":849,"tag":922,"props":4407,"children":4408},{"style":975},[4409],{"type":854,"value":4262},{"type":849,"tag":922,"props":4411,"children":4412},{"style":981},[4413],{"type":854,"value":4267},{"type":849,"tag":922,"props":4415,"children":4416},{"style":975},[4417],{"type":854,"value":899},{"type":849,"tag":922,"props":4419,"children":4420},{"style":929},[4421],{"type":854,"value":4422},"toBeDefined",{"type":849,"tag":922,"props":4424,"children":4425},{"style":975},[4426],{"type":854,"value":1929},{"type":854,"value":1001},{"type":849,"tag":922,"props":4429,"children":4430},{"class":924,"style":925},[4431],{"type":849,"tag":922,"props":4432,"children":4433},{"style":975},[4434],{"type":854,"value":1085},{"type":849,"tag":4436,"props":4437,"children":4438},"ul",{},[4439,4456,4466],{"type":849,"tag":2911,"props":4440,"children":4441},{},[4442,4447,4449,4454],{"type":849,"tag":2915,"props":4443,"children":4444},{},[4445],{"type":854,"value":4446},"One literal code.",{"type":854,"value":4448}," A check such as \"the result does not name the\ncanary\" passes for any refusal, also for ",{"type":849,"tag":857,"props":4450,"children":4451},{},[4452],{"type":854,"value":4453},"INVALID_INPUT",{"type":854,"value":4455}," from a wrong\nargument name. Then the call never reached the tenant check.",{"type":849,"tag":2911,"props":4457,"children":4458},{},[4459,4464],{"type":849,"tag":2915,"props":4460,"children":4461},{},[4462],{"type":854,"value":4463},"The positive control.",{"type":854,"value":4465}," The same call with the actor's own IDs must\nsucceed. It proves that the call is correct and that only the foreign ID\nmakes it fail.",{"type":849,"tag":2911,"props":4467,"children":4468},{},[4469,4474],{"type":849,"tag":2915,"props":4470,"children":4471},{},[4472],{"type":854,"value":4473},"Nothing changed.",{"type":854,"value":4475}," The canary is unchanged, no row was added to the other\ntenant, and no approval request waits there.",{"type":849,"tag":850,"props":4477,"children":4478},{},[4479],{"type":854,"value":4480},"Test the tools separately. A tool runs the same operation, but an agent's call\ntakes another path: a write that needs approval becomes a request for a\nperson, and a request for another tenant's row must fail before it reaches\nthat tenant's approval queue.",{"type":849,"tag":850,"props":4482,"children":4483},{},[4484,4489,4491,4496,4498,4503],{"type":849,"tag":857,"props":4485,"children":4486},{},[4487],{"type":854,"value":4488},"Record\u003CExclude\u003Ckeyof typeof projects, 'organizations'>, …>",{"type":854,"value":4490}," makes the test\nfail to compile when a new operation has no call. ",{"type":849,"tag":857,"props":4492,"children":4493},{},[4494],{"type":854,"value":4495},"organizations",{"type":854,"value":4497}," takes no ID;\nthe same file checks that it lists only the organizations of active\nmemberships. For the tools, one test compares the call names with\n",{"type":849,"tag":857,"props":4499,"children":4500},{},[4501],{"type":854,"value":4502},"tools.catalog",{"type":854,"value":899},{"type":849,"tag":850,"props":4505,"children":4506},{},[4507,4512,4514,4519,4521,4525,4527,4532,4534,4539,4540,4545,4547,4552],{"type":849,"tag":857,"props":4508,"children":4509},{},[4510],{"type":854,"value":4511},"keyof typeof",{"type":854,"value":4513}," names every export of the module, also internal operations,\nwhich a person cannot call. Keep internal operations in a module of their own,\nas ",{"type":849,"tag":857,"props":4515,"children":4516},{},[4517],{"type":854,"value":4518},"convex\u002FsummaryWork.ts",{"type":854,"value":4520}," in\n",{"type":849,"tag":877,"props":4522,"children":4523},{"href":513},[4524],{"type":854,"value":508},{"type":854,"value":4526},". When a module\nmust hold both, leave the internal ones out by name. For a ",{"type":849,"tag":857,"props":4528,"children":4529},{},[4530],{"type":854,"value":4531},"sites",{"type":854,"value":4533}," module with\nthe internal operations ",{"type":849,"tag":857,"props":4535,"children":4536},{},[4537],{"type":854,"value":4538},"runCheck",{"type":854,"value":1560},{"type":849,"tag":857,"props":4541,"children":4542},{},[4543],{"type":854,"value":4544},"saveResult",{"type":854,"value":4546},":\n",{"type":849,"tag":857,"props":4548,"children":4549},{},[4550],{"type":854,"value":4551},"Record\u003CExclude\u003Ckeyof typeof sites, 'runCheck' | 'saveResult'>, …>",{"type":854,"value":899},{"type":849,"tag":850,"props":4554,"children":4555},{},[4556],{"type":854,"value":4557},"When an operation takes two IDs, add a row that mixes them: one of the actor's\nown tenant and one of the canary's.",{"type":849,"tag":901,"props":4559,"children":4561},{"id":4560},"a-budget-for-each-call",[4562],{"type":854,"value":4563},"A budget for each call",{"type":849,"tag":850,"props":4565,"children":4566},{},[4567,4572,4573,4578,4580,4589],{"type":849,"tag":857,"props":4568,"children":4569},{},[4570],{"type":854,"value":4571},"countDocuments",{"type":854,"value":1602},{"type":849,"tag":857,"props":4574,"children":4575},{},[4576],{"type":854,"value":4577},"@lupinum\u002Fbetter-convex-functions\u002Ftest",{"type":854,"value":4579}," counts the\ndocuments one call reads and writes, with everything the library does around\nthe handler: the session, the user, the role and the tenant rows. The\nstarter's\n",{"type":849,"tag":877,"props":4581,"children":4583},{"href":4582},"https:\u002F\u002Fgithub.com\u002Flupinum-dev\u002Fbetter-convex\u002Fblob\u002Fmain\u002Fstarters\u002Fmcp-oauth-agent\u002Fconvex\u002Fcost.test.ts",[4584],{"type":849,"tag":857,"props":4585,"children":4586},{},[4587],{"type":854,"value":4588},"convex\u002Fcost.test.ts",{"type":854,"value":4590},"\nsets up one organization with three projects and counts two calls:",{"type":849,"tag":912,"props":4592,"children":4593},{"language":957,"class":915},[4594],{"type":849,"tag":857,"props":4595,"children":4596},{"class":962},[4597,4605,4606,4614,4615,4651,4652,4691,4692,4725,4726,4771,4772,4785,4786,4827,4828,4836,4837,4845,4846,4854,4855,4911,4912],{"type":849,"tag":922,"props":4598,"children":4599},{"class":924,"style":925},[4600],{"type":849,"tag":922,"props":4601,"children":4602},{"style":1098},[4603],{"type":854,"value":4604},"\u002F\u002F Catches a change that makes a call read or write more than it did: an extra lookup per row,",{"type":854,"value":1001},{"type":849,"tag":922,"props":4607,"children":4608},{"class":924,"style":925},[4609],{"type":849,"tag":922,"props":4610,"children":4611},{"style":1098},[4612],{"type":854,"value":4613},"\u002F\u002F a missing index, a write in a read path. Each number is the budget; raise it on purpose.",{"type":854,"value":1001},{"type":849,"tag":922,"props":4616,"children":4617},{"class":924,"style":925},[4618,4622,4626,4631,4635,4639,4643,4647],{"type":849,"tag":922,"props":4619,"children":4620},{"style":929},[4621],{"type":854,"value":2211},{"type":849,"tag":922,"props":4623,"children":4624},{"style":975},[4625],{"type":854,"value":1302},{"type":849,"tag":922,"props":4627,"children":4628},{"style":935},[4629],{"type":854,"value":4630},"'a page of three projects'",{"type":849,"tag":922,"props":4632,"children":4633},{"style":975},[4634],{"type":854,"value":1056},{"type":849,"tag":922,"props":4636,"children":4637},{"style":941},[4638],{"type":854,"value":2313},{"type":849,"tag":922,"props":4640,"children":4641},{"style":975},[4642],{"type":854,"value":2318},{"type":849,"tag":922,"props":4644,"children":4645},{"style":941},[4646],{"type":854,"value":2323},{"type":849,"tag":922,"props":4648,"children":4649},{"style":975},[4650],{"type":854,"value":2328},{"type":854,"value":1001},{"type":849,"tag":922,"props":4653,"children":4654},{"class":924,"style":925},[4655,4659,4663,4667,4671,4675,4679,4683,4687],{"type":849,"tag":922,"props":4656,"children":4657},{"style":941},[4658],{"type":854,"value":1460},{"type":849,"tag":922,"props":4660,"children":4661},{"style":975},[4662],{"type":854,"value":978},{"type":849,"tag":922,"props":4664,"children":4665},{"style":1267},[4666],{"type":854,"value":1658},{"type":849,"tag":922,"props":4668,"children":4669},{"style":975},[4670],{"type":854,"value":1056},{"type":849,"tag":922,"props":4672,"children":4673},{"style":1267},[4674],{"type":854,"value":3397},{"type":849,"tag":922,"props":4676,"children":4677},{"style":975},[4678],{"type":854,"value":4088},{"type":849,"tag":922,"props":4680,"children":4681},{"style":969},[4682],{"type":854,"value":1973},{"type":849,"tag":922,"props":4684,"children":4685},{"style":929},[4686],{"type":854,"value":4097},{"type":849,"tag":922,"props":4688,"children":4689},{"style":975},[4690],{"type":854,"value":1929},{"type":854,"value":1001},{"type":849,"tag":922,"props":4693,"children":4694},{"class":924,"style":925},[4695,4699,4704,4708,4712,4717,4721],{"type":849,"tag":922,"props":4696,"children":4697},{"style":941},[4698],{"type":854,"value":1460},{"type":849,"tag":922,"props":4700,"children":4701},{"style":1267},[4702],{"type":854,"value":4703}," cost",{"type":849,"tag":922,"props":4705,"children":4706},{"style":975},[4707],{"type":854,"value":1275},{"type":849,"tag":922,"props":4709,"children":4710},{"style":969},[4711],{"type":854,"value":1973},{"type":849,"tag":922,"props":4713,"children":4714},{"style":929},[4715],{"type":854,"value":4716}," countDocuments",{"type":849,"tag":922,"props":4718,"children":4719},{"style":975},[4720],{"type":854,"value":4240},{"type":849,"tag":922,"props":4722,"children":4723},{"style":941},[4724],{"type":854,"value":2323},{"type":854,"value":1001},{"type":849,"tag":922,"props":4727,"children":4728},{"class":924,"style":925},[4729,4734,4738,4742,4746,4750,4754,4758,4762,4766],{"type":849,"tag":922,"props":4730,"children":4731},{"style":981},[4732],{"type":854,"value":4733},"    ann",{"type":849,"tag":922,"props":4735,"children":4736},{"style":975},[4737],{"type":854,"value":899},{"type":849,"tag":922,"props":4739,"children":4740},{"style":929},[4741],{"type":854,"value":2128},{"type":849,"tag":922,"props":4743,"children":4744},{"style":975},[4745],{"type":854,"value":1302},{"type":849,"tag":922,"props":4747,"children":4748},{"style":981},[4749],{"type":854,"value":3441},{"type":849,"tag":922,"props":4751,"children":4752},{"style":975},[4753],{"type":854,"value":899},{"type":849,"tag":922,"props":4755,"children":4756},{"style":981},[4757],{"type":854,"value":3450},{"type":849,"tag":922,"props":4759,"children":4760},{"style":975},[4761],{"type":854,"value":899},{"type":849,"tag":922,"props":4763,"children":4764},{"style":981},[4765],{"type":854,"value":3459},{"type":849,"tag":922,"props":4767,"children":4768},{"style":975},[4769],{"type":854,"value":4770},", {",{"type":854,"value":1001},{"type":849,"tag":922,"props":4773,"children":4774},{"class":924,"style":925},[4775,4780],{"type":849,"tag":922,"props":4776,"children":4777},{"style":981},[4778],{"type":854,"value":4779},"      organizationId",{"type":849,"tag":922,"props":4781,"children":4782},{"style":975},[4783],{"type":854,"value":4784},",",{"type":854,"value":1001},{"type":849,"tag":922,"props":4787,"children":4788},{"class":924,"style":925},[4789,4794,4798,4803,4808,4812,4817,4822],{"type":849,"tag":922,"props":4790,"children":4791},{"style":981},[4792],{"type":854,"value":4793},"      paginationOpts:",{"type":849,"tag":922,"props":4795,"children":4796},{"style":975},[4797],{"type":854,"value":978},{"type":849,"tag":922,"props":4799,"children":4800},{"style":981},[4801],{"type":854,"value":4802},"numItems:",{"type":849,"tag":922,"props":4804,"children":4805},{"style":1827},[4806],{"type":854,"value":4807}," 10",{"type":849,"tag":922,"props":4809,"children":4810},{"style":975},[4811],{"type":854,"value":1056},{"type":849,"tag":922,"props":4813,"children":4814},{"style":981},[4815],{"type":854,"value":4816},"cursor:",{"type":849,"tag":922,"props":4818,"children":4819},{"style":941},[4820],{"type":854,"value":4821}," null",{"type":849,"tag":922,"props":4823,"children":4824},{"style":975},[4825],{"type":854,"value":4826}," },",{"type":854,"value":1001},{"type":849,"tag":922,"props":4829,"children":4830},{"class":924,"style":925},[4831],{"type":849,"tag":922,"props":4832,"children":4833},{"style":975},[4834],{"type":854,"value":4835},"    }),",{"type":854,"value":1001},{"type":849,"tag":922,"props":4838,"children":4839},{"class":924,"style":925},[4840],{"type":849,"tag":922,"props":4841,"children":4842},{"style":975},[4843],{"type":854,"value":4844},"  )",{"type":854,"value":1001},{"type":849,"tag":922,"props":4847,"children":4848},{"class":924,"style":925},[4849],{"type":849,"tag":922,"props":4850,"children":4851},{"style":1098},[4852],{"type":854,"value":4853},"  \u002F\u002F The session check (2), user, organization, membership, then the three rows of the page.",{"type":854,"value":1001},{"type":849,"tag":922,"props":4856,"children":4857},{"class":924,"style":925},[4858,4862,4866,4871,4875,4879,4883,4888,4893,4897,4902,4907],{"type":849,"tag":922,"props":4859,"children":4860},{"style":929},[4861],{"type":854,"value":2375},{"type":849,"tag":922,"props":4863,"children":4864},{"style":975},[4865],{"type":854,"value":1302},{"type":849,"tag":922,"props":4867,"children":4868},{"style":981},[4869],{"type":854,"value":4870},"cost",{"type":849,"tag":922,"props":4872,"children":4873},{"style":975},[4874],{"type":854,"value":4230},{"type":849,"tag":922,"props":4876,"children":4877},{"style":929},[4878],{"type":854,"value":2415},{"type":849,"tag":922,"props":4880,"children":4881},{"style":975},[4882],{"type":854,"value":2843},{"type":849,"tag":922,"props":4884,"children":4885},{"style":981},[4886],{"type":854,"value":4887},"reads:",{"type":849,"tag":922,"props":4889,"children":4890},{"style":1827},[4891],{"type":854,"value":4892}," 8",{"type":849,"tag":922,"props":4894,"children":4895},{"style":975},[4896],{"type":854,"value":1056},{"type":849,"tag":922,"props":4898,"children":4899},{"style":981},[4900],{"type":854,"value":4901},"writes:",{"type":849,"tag":922,"props":4903,"children":4904},{"style":1827},[4905],{"type":854,"value":4906}," 0",{"type":849,"tag":922,"props":4908,"children":4909},{"style":975},[4910],{"type":854,"value":1327},{"type":854,"value":1001},{"type":849,"tag":922,"props":4913,"children":4914},{"class":924,"style":925},[4915],{"type":849,"tag":922,"props":4916,"children":4917},{"style":975},[4918],{"type":854,"value":1085},{"type":849,"tag":850,"props":4920,"children":4921},{},[4922,4924,4928],{"type":854,"value":4923},"Each number is a budget. A change that reads more, for example a lookup per\nrow instead of one per call, fails the test and must raise the number on\npurpose. ",{"type":849,"tag":877,"props":4925,"children":4926},{"href":526},[4927],{"type":854,"value":522},{"type":854,"value":4929}," lists what each kind of call costs.",{"type":849,"tag":850,"props":4931,"children":4932},{},[4933,4937,4939,4943,4945,4950],{"type":849,"tag":857,"props":4934,"children":4935},{},[4936],{"type":854,"value":4571},{"type":854,"value":4938}," follows ",{"type":849,"tag":857,"props":4940,"children":4941},{},[4942],{"type":854,"value":868},{"type":854,"value":4944},": a query counts the rows it returns, not\nthe rows that a ",{"type":849,"tag":857,"props":4946,"children":4947},{},[4948],{"type":854,"value":4949},".filter()",{"type":854,"value":4951}," skipped. A deployment counts those too. Do not run\ncalls in parallel while you count.",{"type":849,"tag":850,"props":4953,"children":4954},{},[4955],{"type":854,"value":4956},"The counts include the library's own reads, so they can change when you\nupgrade Better Convex. The changelog says so under \"Tests\". Check the new\nnumbers and update the literals.",{"type":849,"tag":901,"props":4958,"children":4960},{"id":4959},"scheduled-functions",[4961],{"type":854,"value":4962},"Scheduled functions",{"type":849,"tag":850,"props":4964,"children":4965},{},[4966,4970,4972,4976,4978,4982,4983,4988,4990,4995,4996,5001],{"type":849,"tag":857,"props":4967,"children":4968},{},[4969],{"type":854,"value":868},{"type":854,"value":4971}," runs scheduled functions with ",{"type":849,"tag":857,"props":4973,"children":4974},{},[4975],{"type":854,"value":2059},{"type":854,"value":4977},". Fake only\n",{"type":849,"tag":857,"props":4979,"children":4980},{},[4981],{"type":854,"value":2059},{"type":854,"value":1560},{"type":849,"tag":857,"props":4984,"children":4985},{},[4986],{"type":854,"value":4987},"clearTimeout",{"type":854,"value":4989},", and keep the real clock: with a fake clock,\nrunning the timers moves the time past the expiry of the session and of an\nagent's grant, and the scheduled call fails with ",{"type":849,"tag":857,"props":4991,"children":4992},{},[4993],{"type":854,"value":4994},"NOT_SIGNED_IN",{"type":854,"value":2142},{"type":849,"tag":857,"props":4997,"children":4998},{},[4999],{"type":854,"value":5000},"AGENT_DISABLED",{"type":854,"value":899},{"type":849,"tag":912,"props":5003,"children":5005},{"language":957,"filename":5004,"class":915},"convex\u002Fsummaries.test.ts",[5006],{"type":849,"tag":857,"props":5007,"children":5008},{"class":962},[5009,5036,5037,5098,5099,5102,5103,5131,5132,5160,5161,5164,5165,5184,5185,5233,5234,5242,5243,5263,5264,5276,5277,5343,5344,5351,5352,5359,5360,5379,5380,5400,5401,5421,5422,5429,5430,5433,5434,5442,5443,5494,5495,5553,5554,5597,5598,5618,5619,5643,5644,5652,5653,5684,5685,5692,5693,5696,5697,5705,5706,5714,5715,5751,5752,5775,5776,5838,5839,5923,5924,5989,5990,6061,6062,6143,6144,6152,6153,6196,6197,6254,6255,6258,6259,6282,6283,6286,6287,6382,6383,6399,6400,6407,6408],{"type":849,"tag":922,"props":5010,"children":5011},{"class":924,"style":925},[5012,5016,5020,5024,5028,5032],{"type":849,"tag":922,"props":5013,"children":5014},{"style":969},[5015],{"type":854,"value":972},{"type":849,"tag":922,"props":5017,"children":5018},{"style":975},[5019],{"type":854,"value":978},{"type":849,"tag":922,"props":5021,"children":5022},{"style":981},[5023],{"type":854,"value":1726},{"type":849,"tag":922,"props":5025,"children":5026},{"style":975},[5027],{"type":854,"value":989},{"type":849,"tag":922,"props":5029,"children":5030},{"style":969},[5031],{"type":854,"value":994},{"type":849,"tag":922,"props":5033,"children":5034},{"style":935},[5035],{"type":854,"value":1161},{"type":854,"value":1001},{"type":849,"tag":922,"props":5038,"children":5039},{"class":924,"style":925},[5040,5044,5048,5053,5057,5062,5066,5070,5074,5078,5082,5086,5090,5094],{"type":849,"tag":922,"props":5041,"children":5042},{"style":969},[5043],{"type":854,"value":972},{"type":849,"tag":922,"props":5045,"children":5046},{"style":975},[5047],{"type":854,"value":978},{"type":849,"tag":922,"props":5049,"children":5050},{"style":981},[5051],{"type":854,"value":5052},"afterEach",{"type":849,"tag":922,"props":5054,"children":5055},{"style":975},[5056],{"type":854,"value":1056},{"type":849,"tag":922,"props":5058,"children":5059},{"style":981},[5060],{"type":854,"value":5061},"beforeEach",{"type":849,"tag":922,"props":5063,"children":5064},{"style":975},[5065],{"type":854,"value":1056},{"type":849,"tag":922,"props":5067,"children":5068},{"style":981},[5069],{"type":854,"value":2202},{"type":849,"tag":922,"props":5071,"children":5072},{"style":975},[5073],{"type":854,"value":1056},{"type":849,"tag":922,"props":5075,"children":5076},{"style":981},[5077],{"type":854,"value":2211},{"type":849,"tag":922,"props":5079,"children":5080},{"style":975},[5081],{"type":854,"value":1056},{"type":849,"tag":922,"props":5083,"children":5084},{"style":981},[5085],{"type":854,"value":1208},{"type":849,"tag":922,"props":5087,"children":5088},{"style":975},[5089],{"type":854,"value":989},{"type":849,"tag":922,"props":5091,"children":5092},{"style":969},[5093],{"type":854,"value":994},{"type":849,"tag":922,"props":5095,"children":5096},{"style":935},[5097],{"type":854,"value":1221},{"type":854,"value":1001},{"type":849,"tag":922,"props":5100,"children":5101},{"class":924,"style":925},[],{"type":854,"value":1001},{"type":849,"tag":922,"props":5104,"children":5105},{"class":924,"style":925},[5106,5110,5114,5118,5122,5126],{"type":849,"tag":922,"props":5107,"children":5108},{"style":969},[5109],{"type":854,"value":972},{"type":849,"tag":922,"props":5111,"children":5112},{"style":975},[5113],{"type":854,"value":978},{"type":849,"tag":922,"props":5115,"children":5116},{"style":981},[5117],{"type":854,"value":3441},{"type":849,"tag":922,"props":5119,"children":5120},{"style":975},[5121],{"type":854,"value":989},{"type":849,"tag":922,"props":5123,"children":5124},{"style":969},[5125],{"type":854,"value":994},{"type":849,"tag":922,"props":5127,"children":5128},{"style":935},[5129],{"type":854,"value":5130}," '.\u002F_generated\u002Fapi'",{"type":854,"value":1001},{"type":849,"tag":922,"props":5133,"children":5134},{"class":924,"style":925},[5135,5139,5143,5148,5152,5156],{"type":849,"tag":922,"props":5136,"children":5137},{"style":969},[5138],{"type":854,"value":972},{"type":849,"tag":922,"props":5140,"children":5141},{"style":975},[5142],{"type":854,"value":978},{"type":849,"tag":922,"props":5144,"children":5145},{"style":981},[5146],{"type":854,"value":5147},"initConvexTest",{"type":849,"tag":922,"props":5149,"children":5150},{"style":975},[5151],{"type":854,"value":989},{"type":849,"tag":922,"props":5153,"children":5154},{"style":969},[5155],{"type":854,"value":994},{"type":849,"tag":922,"props":5157,"children":5158},{"style":935},[5159],{"type":854,"value":2256},{"type":854,"value":1001},{"type":849,"tag":922,"props":5162,"children":5163},{"class":924,"style":925},[],{"type":854,"value":1001},{"type":849,"tag":922,"props":5166,"children":5167},{"class":924,"style":925},[5168,5172,5176,5180],{"type":849,"tag":922,"props":5169,"children":5170},{"style":929},[5171],{"type":854,"value":5061},{"type":849,"tag":922,"props":5173,"children":5174},{"style":975},[5175],{"type":854,"value":4240},{"type":849,"tag":922,"props":5177,"children":5178},{"style":941},[5179],{"type":854,"value":2323},{"type":849,"tag":922,"props":5181,"children":5182},{"style":975},[5183],{"type":854,"value":2328},{"type":854,"value":1001},{"type":849,"tag":922,"props":5186,"children":5187},{"class":924,"style":925},[5188,5192,5196,5201,5205,5210,5214,5219,5223,5228],{"type":849,"tag":922,"props":5189,"children":5190},{"style":981},[5191],{"type":854,"value":1381},{"type":849,"tag":922,"props":5193,"children":5194},{"style":975},[5195],{"type":854,"value":899},{"type":849,"tag":922,"props":5197,"children":5198},{"style":929},[5199],{"type":854,"value":5200},"useFakeTimers",{"type":849,"tag":922,"props":5202,"children":5203},{"style":975},[5204],{"type":854,"value":2843},{"type":849,"tag":922,"props":5206,"children":5207},{"style":981},[5208],{"type":854,"value":5209},"toFake:",{"type":849,"tag":922,"props":5211,"children":5212},{"style":975},[5213],{"type":854,"value":1066},{"type":849,"tag":922,"props":5215,"children":5216},{"style":935},[5217],{"type":854,"value":5218},"'setTimeout'",{"type":849,"tag":922,"props":5220,"children":5221},{"style":975},[5222],{"type":854,"value":1056},{"type":849,"tag":922,"props":5224,"children":5225},{"style":935},[5226],{"type":854,"value":5227},"'clearTimeout'",{"type":849,"tag":922,"props":5229,"children":5230},{"style":975},[5231],{"type":854,"value":5232},"] })",{"type":854,"value":1001},{"type":849,"tag":922,"props":5235,"children":5236},{"class":924,"style":925},[5237],{"type":849,"tag":922,"props":5238,"children":5239},{"style":1098},[5240],{"type":854,"value":5241},"  \u002F\u002F The summary service is outside the app: answer for it.",{"type":854,"value":1001},{"type":849,"tag":922,"props":5244,"children":5245},{"class":924,"style":925},[5246,5250,5254,5259],{"type":849,"tag":922,"props":5247,"children":5248},{"style":981},[5249],{"type":854,"value":1381},{"type":849,"tag":922,"props":5251,"children":5252},{"style":975},[5253],{"type":854,"value":899},{"type":849,"tag":922,"props":5255,"children":5256},{"style":929},[5257],{"type":854,"value":5258},"stubGlobal",{"type":849,"tag":922,"props":5260,"children":5261},{"style":975},[5262],{"type":854,"value":1302},{"type":854,"value":1001},{"type":849,"tag":922,"props":5265,"children":5266},{"class":924,"style":925},[5267,5272],{"type":849,"tag":922,"props":5268,"children":5269},{"style":935},[5270],{"type":854,"value":5271},"    'fetch'",{"type":849,"tag":922,"props":5273,"children":5274},{"style":975},[5275],{"type":854,"value":4784},{"type":854,"value":1001},{"type":849,"tag":922,"props":5278,"children":5279},{"class":924,"style":925},[5280,5285,5289,5294,5298,5302,5306,5310,5315,5319,5324,5328,5333,5338],{"type":849,"tag":922,"props":5281,"children":5282},{"style":981},[5283],{"type":854,"value":5284},"    vi",{"type":849,"tag":922,"props":5286,"children":5287},{"style":975},[5288],{"type":854,"value":899},{"type":849,"tag":922,"props":5290,"children":5291},{"style":929},[5292],{"type":854,"value":5293},"fn",{"type":849,"tag":922,"props":5295,"children":5296},{"style":975},[5297],{"type":854,"value":1302},{"type":849,"tag":922,"props":5299,"children":5300},{"style":941},[5301],{"type":854,"value":2313},{"type":849,"tag":922,"props":5303,"children":5304},{"style":975},[5305],{"type":854,"value":2318},{"type":849,"tag":922,"props":5307,"children":5308},{"style":941},[5309],{"type":854,"value":2323},{"type":849,"tag":922,"props":5311,"children":5312},{"style":981},[5313],{"type":854,"value":5314}," Response",{"type":849,"tag":922,"props":5316,"children":5317},{"style":975},[5318],{"type":854,"value":899},{"type":849,"tag":922,"props":5320,"children":5321},{"style":929},[5322],{"type":854,"value":5323},"json",{"type":849,"tag":922,"props":5325,"children":5326},{"style":975},[5327],{"type":854,"value":2843},{"type":849,"tag":922,"props":5329,"children":5330},{"style":981},[5331],{"type":854,"value":5332},"summary:",{"type":849,"tag":922,"props":5334,"children":5335},{"style":935},[5336],{"type":854,"value":5337}," 'Plans for the next year.'",{"type":849,"tag":922,"props":5339,"children":5340},{"style":975},[5341],{"type":854,"value":5342}," })),",{"type":854,"value":1001},{"type":849,"tag":922,"props":5345,"children":5346},{"class":924,"style":925},[5347],{"type":849,"tag":922,"props":5348,"children":5349},{"style":975},[5350],{"type":854,"value":4844},{"type":854,"value":1001},{"type":849,"tag":922,"props":5353,"children":5354},{"class":924,"style":925},[5355],{"type":849,"tag":922,"props":5356,"children":5357},{"style":975},[5358],{"type":854,"value":1085},{"type":854,"value":1001},{"type":849,"tag":922,"props":5361,"children":5362},{"class":924,"style":925},[5363,5367,5371,5375],{"type":849,"tag":922,"props":5364,"children":5365},{"style":929},[5366],{"type":854,"value":5052},{"type":849,"tag":922,"props":5368,"children":5369},{"style":975},[5370],{"type":854,"value":4240},{"type":849,"tag":922,"props":5372,"children":5373},{"style":941},[5374],{"type":854,"value":2323},{"type":849,"tag":922,"props":5376,"children":5377},{"style":975},[5378],{"type":854,"value":2328},{"type":854,"value":1001},{"type":849,"tag":922,"props":5381,"children":5382},{"class":924,"style":925},[5383,5387,5391,5396],{"type":849,"tag":922,"props":5384,"children":5385},{"style":981},[5386],{"type":854,"value":1381},{"type":849,"tag":922,"props":5388,"children":5389},{"style":975},[5390],{"type":854,"value":899},{"type":849,"tag":922,"props":5392,"children":5393},{"style":929},[5394],{"type":854,"value":5395},"useRealTimers",{"type":849,"tag":922,"props":5397,"children":5398},{"style":975},[5399],{"type":854,"value":1929},{"type":854,"value":1001},{"type":849,"tag":922,"props":5402,"children":5403},{"class":924,"style":925},[5404,5408,5412,5417],{"type":849,"tag":922,"props":5405,"children":5406},{"style":981},[5407],{"type":854,"value":1381},{"type":849,"tag":922,"props":5409,"children":5410},{"style":975},[5411],{"type":854,"value":899},{"type":849,"tag":922,"props":5413,"children":5414},{"style":929},[5415],{"type":854,"value":5416},"unstubAllGlobals",{"type":849,"tag":922,"props":5418,"children":5419},{"style":975},[5420],{"type":854,"value":1929},{"type":854,"value":1001},{"type":849,"tag":922,"props":5423,"children":5424},{"class":924,"style":925},[5425],{"type":849,"tag":922,"props":5426,"children":5427},{"style":975},[5428],{"type":854,"value":1085},{"type":854,"value":1001},{"type":849,"tag":922,"props":5431,"children":5432},{"class":924,"style":925},[],{"type":854,"value":1001},{"type":849,"tag":922,"props":5435,"children":5436},{"class":924,"style":925},[5437],{"type":849,"tag":922,"props":5438,"children":5439},{"style":1098},[5440],{"type":854,"value":5441},"\u002F** Runs scheduled work, and the work it schedules, until none is left. *\u002F",{"type":854,"value":1001},{"type":849,"tag":922,"props":5444,"children":5445},{"class":924,"style":925},[5446,5450,5454,5459,5463,5467,5471,5476,5480,5485,5489],{"type":849,"tag":922,"props":5447,"children":5448},{"style":941},[5449],{"type":854,"value":2313},{"type":849,"tag":922,"props":5451,"children":5452},{"style":941},[5453],{"type":854,"value":1353},{"type":849,"tag":922,"props":5455,"children":5456},{"style":929},[5457],{"type":854,"value":5458}," runScheduled",{"type":849,"tag":922,"props":5460,"children":5461},{"style":975},[5462],{"type":854,"value":1302},{"type":849,"tag":922,"props":5464,"children":5465},{"style":981},[5466],{"type":854,"value":1522},{"type":849,"tag":922,"props":5468,"children":5469},{"style":975},[5470],{"type":854,"value":3299},{"type":849,"tag":922,"props":5472,"children":5473},{"style":3302},[5474],{"type":854,"value":5475},"ReturnType",{"type":849,"tag":922,"props":5477,"children":5478},{"style":975},[5479],{"type":854,"value":1107},{"type":849,"tag":922,"props":5481,"children":5482},{"style":941},[5483],{"type":854,"value":5484},"typeof",{"type":849,"tag":922,"props":5486,"children":5487},{"style":981},[5488],{"type":854,"value":1358},{"type":849,"tag":922,"props":5490,"children":5491},{"style":975},[5492],{"type":854,"value":5493},">) {",{"type":854,"value":1001},{"type":849,"tag":922,"props":5496,"children":5497},{"class":924,"style":925},[5498,5503,5507,5511,5515,5519,5523,5527,5531,5535,5540,5544,5548],{"type":849,"tag":922,"props":5499,"children":5500},{"style":969},[5501],{"type":854,"value":5502},"  for",{"type":849,"tag":922,"props":5504,"children":5505},{"style":975},[5506],{"type":854,"value":1810},{"type":849,"tag":922,"props":5508,"children":5509},{"style":941},[5510],{"type":854,"value":1815},{"type":849,"tag":922,"props":5512,"children":5513},{"style":981},[5514],{"type":854,"value":1820},{"type":849,"tag":922,"props":5516,"children":5517},{"style":975},[5518],{"type":854,"value":1275},{"type":849,"tag":922,"props":5520,"children":5521},{"style":1827},[5522],{"type":854,"value":1830},{"type":849,"tag":922,"props":5524,"children":5525},{"style":975},[5526],{"type":854,"value":1835},{"type":849,"tag":922,"props":5528,"children":5529},{"style":981},[5530],{"type":854,"value":1840},{"type":849,"tag":922,"props":5532,"children":5533},{"style":975},[5534],{"type":854,"value":1845},{"type":849,"tag":922,"props":5536,"children":5537},{"style":1827},[5538],{"type":854,"value":5539},"10",{"type":849,"tag":922,"props":5541,"children":5542},{"style":975},[5543],{"type":854,"value":1835},{"type":849,"tag":922,"props":5545,"children":5546},{"style":981},[5547],{"type":854,"value":1840},{"type":849,"tag":922,"props":5549,"children":5550},{"style":975},[5551],{"type":854,"value":5552},"++) {",{"type":854,"value":1001},{"type":849,"tag":922,"props":5555,"children":5556},{"class":924,"style":925},[5557,5562,5566,5570,5574,5579,5584,5588,5592],{"type":849,"tag":922,"props":5558,"children":5559},{"style":969},[5560],{"type":854,"value":5561},"    if",{"type":849,"tag":922,"props":5563,"children":5564},{"style":975},[5565],{"type":854,"value":1810},{"type":849,"tag":922,"props":5567,"children":5568},{"style":981},[5569],{"type":854,"value":1208},{"type":849,"tag":922,"props":5571,"children":5572},{"style":975},[5573],{"type":854,"value":899},{"type":849,"tag":922,"props":5575,"children":5576},{"style":929},[5577],{"type":854,"value":5578},"getTimerCount",{"type":849,"tag":922,"props":5580,"children":5581},{"style":975},[5582],{"type":854,"value":5583},"() === ",{"type":849,"tag":922,"props":5585,"children":5586},{"style":1827},[5587],{"type":854,"value":1830},{"type":849,"tag":922,"props":5589,"children":5590},{"style":975},[5591],{"type":854,"value":4042},{"type":849,"tag":922,"props":5593,"children":5594},{"style":969},[5595],{"type":854,"value":5596},"return",{"type":854,"value":1001},{"type":849,"tag":922,"props":5599,"children":5600},{"class":924,"style":925},[5601,5605,5609,5614],{"type":849,"tag":922,"props":5602,"children":5603},{"style":981},[5604],{"type":854,"value":5284},{"type":849,"tag":922,"props":5606,"children":5607},{"style":975},[5608],{"type":854,"value":899},{"type":849,"tag":922,"props":5610,"children":5611},{"style":929},[5612],{"type":854,"value":5613},"runOnlyPendingTimers",{"type":849,"tag":922,"props":5615,"children":5616},{"style":975},[5617],{"type":854,"value":1929},{"type":854,"value":1001},{"type":849,"tag":922,"props":5620,"children":5621},{"class":924,"style":925},[5622,5627,5631,5635,5639],{"type":849,"tag":922,"props":5623,"children":5624},{"style":969},[5625],{"type":854,"value":5626},"    await",{"type":849,"tag":922,"props":5628,"children":5629},{"style":981},[5630],{"type":854,"value":1465},{"type":849,"tag":922,"props":5632,"children":5633},{"style":975},[5634],{"type":854,"value":899},{"type":849,"tag":922,"props":5636,"children":5637},{"style":929},[5638],{"type":854,"value":1924},{"type":849,"tag":922,"props":5640,"children":5641},{"style":975},[5642],{"type":854,"value":1929},{"type":854,"value":1001},{"type":849,"tag":922,"props":5645,"children":5646},{"class":924,"style":925},[5647],{"type":849,"tag":922,"props":5648,"children":5649},{"style":975},[5650],{"type":854,"value":5651},"  }",{"type":854,"value":1001},{"type":849,"tag":922,"props":5654,"children":5655},{"class":924,"style":925},[5656,5661,5666,5671,5675,5680],{"type":849,"tag":922,"props":5657,"children":5658},{"style":969},[5659],{"type":854,"value":5660},"  throw",{"type":849,"tag":922,"props":5662,"children":5663},{"style":941},[5664],{"type":854,"value":5665}," new",{"type":849,"tag":922,"props":5667,"children":5668},{"style":929},[5669],{"type":854,"value":5670}," Error",{"type":849,"tag":922,"props":5672,"children":5673},{"style":975},[5674],{"type":854,"value":1302},{"type":849,"tag":922,"props":5676,"children":5677},{"style":935},[5678],{"type":854,"value":5679},"'Scheduled work still runs after 10 steps.'",{"type":849,"tag":922,"props":5681,"children":5682},{"style":975},[5683],{"type":854,"value":1413},{"type":854,"value":1001},{"type":849,"tag":922,"props":5686,"children":5687},{"class":924,"style":925},[5688],{"type":849,"tag":922,"props":5689,"children":5690},{"style":975},[5691],{"type":854,"value":1548},{"type":854,"value":1001},{"type":849,"tag":922,"props":5694,"children":5695},{"class":924,"style":925},[],{"type":854,"value":1001},{"type":849,"tag":922,"props":5698,"children":5699},{"class":924,"style":925},[5700],{"type":849,"tag":922,"props":5701,"children":5702},{"style":1098},[5703],{"type":854,"value":5704},"\u002F\u002F Catches a broken chain from the request to the saved summary: the scheduled action, its read",{"type":854,"value":1001},{"type":849,"tag":922,"props":5707,"children":5708},{"class":924,"style":925},[5709],{"type":849,"tag":922,"props":5710,"children":5711},{"style":1098},[5712],{"type":854,"value":5713},"\u002F\u002F and its write, each as the person who asked.",{"type":854,"value":1001},{"type":849,"tag":922,"props":5716,"children":5717},{"class":924,"style":925},[5718,5722,5726,5731,5735,5739,5743,5747],{"type":849,"tag":922,"props":5719,"children":5720},{"style":929},[5721],{"type":854,"value":2211},{"type":849,"tag":922,"props":5723,"children":5724},{"style":975},[5725],{"type":854,"value":1302},{"type":849,"tag":922,"props":5727,"children":5728},{"style":935},[5729],{"type":854,"value":5730},"'a requested summary is saved on the project'",{"type":849,"tag":922,"props":5732,"children":5733},{"style":975},[5734],{"type":854,"value":1056},{"type":849,"tag":922,"props":5736,"children":5737},{"style":941},[5738],{"type":854,"value":2313},{"type":849,"tag":922,"props":5740,"children":5741},{"style":975},[5742],{"type":854,"value":2318},{"type":849,"tag":922,"props":5744,"children":5745},{"style":941},[5746],{"type":854,"value":2323},{"type":849,"tag":922,"props":5748,"children":5749},{"style":975},[5750],{"type":854,"value":2328},{"type":854,"value":1001},{"type":849,"tag":922,"props":5753,"children":5754},{"class":924,"style":925},[5755,5759,5763,5767,5771],{"type":849,"tag":922,"props":5756,"children":5757},{"style":941},[5758],{"type":854,"value":1460},{"type":849,"tag":922,"props":5760,"children":5761},{"style":1267},[5762],{"type":854,"value":1465},{"type":849,"tag":922,"props":5764,"children":5765},{"style":975},[5766],{"type":854,"value":1275},{"type":849,"tag":922,"props":5768,"children":5769},{"style":929},[5770],{"type":854,"value":5147},{"type":849,"tag":922,"props":5772,"children":5773},{"style":975},[5774],{"type":854,"value":1929},{"type":854,"value":1001},{"type":849,"tag":922,"props":5777,"children":5778},{"class":924,"style":925},[5779,5783,5788,5792,5796,5800,5804,5809,5813,5817,5821,5826,5830,5834],{"type":849,"tag":922,"props":5780,"children":5781},{"style":941},[5782],{"type":854,"value":1460},{"type":849,"tag":922,"props":5784,"children":5785},{"style":1267},[5786],{"type":854,"value":5787}," projectId",{"type":849,"tag":922,"props":5789,"children":5790},{"style":975},[5791],{"type":854,"value":1275},{"type":849,"tag":922,"props":5793,"children":5794},{"style":969},[5795],{"type":854,"value":1973},{"type":849,"tag":922,"props":5797,"children":5798},{"style":981},[5799],{"type":854,"value":1465},{"type":849,"tag":922,"props":5801,"children":5802},{"style":975},[5803],{"type":854,"value":899},{"type":849,"tag":922,"props":5805,"children":5806},{"style":929},[5807],{"type":854,"value":5808},"run",{"type":849,"tag":922,"props":5810,"children":5811},{"style":975},[5812],{"type":854,"value":1302},{"type":849,"tag":922,"props":5814,"children":5815},{"style":941},[5816],{"type":854,"value":2313},{"type":849,"tag":922,"props":5818,"children":5819},{"style":975},[5820],{"type":854,"value":1810},{"type":849,"tag":922,"props":5822,"children":5823},{"style":981},[5824],{"type":854,"value":5825},"ctx",{"type":849,"tag":922,"props":5827,"children":5828},{"style":975},[5829],{"type":854,"value":4042},{"type":849,"tag":922,"props":5831,"children":5832},{"style":941},[5833],{"type":854,"value":2323},{"type":849,"tag":922,"props":5835,"children":5836},{"style":975},[5837],{"type":854,"value":2328},{"type":854,"value":1001},{"type":849,"tag":922,"props":5840,"children":5841},{"class":924,"style":925},[5842,5847,5852,5856,5860,5865,5869,5874,5878,5883,5887,5892,5896,5901,5906,5910,5914,5919],{"type":849,"tag":922,"props":5843,"children":5844},{"style":941},[5845],{"type":854,"value":5846},"    const",{"type":849,"tag":922,"props":5848,"children":5849},{"style":1267},[5850],{"type":854,"value":5851}," userId",{"type":849,"tag":922,"props":5853,"children":5854},{"style":975},[5855],{"type":854,"value":1275},{"type":849,"tag":922,"props":5857,"children":5858},{"style":969},[5859],{"type":854,"value":1973},{"type":849,"tag":922,"props":5861,"children":5862},{"style":981},[5863],{"type":854,"value":5864}," ctx",{"type":849,"tag":922,"props":5866,"children":5867},{"style":975},[5868],{"type":854,"value":899},{"type":849,"tag":922,"props":5870,"children":5871},{"style":981},[5872],{"type":854,"value":5873},"db",{"type":849,"tag":922,"props":5875,"children":5876},{"style":975},[5877],{"type":854,"value":899},{"type":849,"tag":922,"props":5879,"children":5880},{"style":929},[5881],{"type":854,"value":5882},"insert",{"type":849,"tag":922,"props":5884,"children":5885},{"style":975},[5886],{"type":854,"value":1302},{"type":849,"tag":922,"props":5888,"children":5889},{"style":935},[5890],{"type":854,"value":5891},"'users'",{"type":849,"tag":922,"props":5893,"children":5894},{"style":975},[5895],{"type":854,"value":1312},{"type":849,"tag":922,"props":5897,"children":5898},{"style":981},[5899],{"type":854,"value":5900},"authId:",{"type":849,"tag":922,"props":5902,"children":5903},{"style":935},[5904],{"type":854,"value":5905}," 'ann'",{"type":849,"tag":922,"props":5907,"children":5908},{"style":975},[5909],{"type":854,"value":1056},{"type":849,"tag":922,"props":5911,"children":5912},{"style":981},[5913],{"type":854,"value":3593},{"type":849,"tag":922,"props":5915,"children":5916},{"style":935},[5917],{"type":854,"value":5918}," 'Ann'",{"type":849,"tag":922,"props":5920,"children":5921},{"style":975},[5922],{"type":854,"value":1327},{"type":854,"value":1001},{"type":849,"tag":922,"props":5925,"children":5926},{"class":924,"style":925},[5927,5931,5936,5940,5944,5948,5952,5956,5960,5964,5968,5972,5976,5980,5985],{"type":849,"tag":922,"props":5928,"children":5929},{"style":941},[5930],{"type":854,"value":5846},{"type":849,"tag":922,"props":5932,"children":5933},{"style":1267},[5934],{"type":854,"value":5935}," organizationId",{"type":849,"tag":922,"props":5937,"children":5938},{"style":975},[5939],{"type":854,"value":1275},{"type":849,"tag":922,"props":5941,"children":5942},{"style":969},[5943],{"type":854,"value":1973},{"type":849,"tag":922,"props":5945,"children":5946},{"style":981},[5947],{"type":854,"value":5864},{"type":849,"tag":922,"props":5949,"children":5950},{"style":975},[5951],{"type":854,"value":899},{"type":849,"tag":922,"props":5953,"children":5954},{"style":981},[5955],{"type":854,"value":5873},{"type":849,"tag":922,"props":5957,"children":5958},{"style":975},[5959],{"type":854,"value":899},{"type":849,"tag":922,"props":5961,"children":5962},{"style":929},[5963],{"type":854,"value":5882},{"type":849,"tag":922,"props":5965,"children":5966},{"style":975},[5967],{"type":854,"value":1302},{"type":849,"tag":922,"props":5969,"children":5970},{"style":935},[5971],{"type":854,"value":3342},{"type":849,"tag":922,"props":5973,"children":5974},{"style":975},[5975],{"type":854,"value":1312},{"type":849,"tag":922,"props":5977,"children":5978},{"style":981},[5979],{"type":854,"value":3593},{"type":849,"tag":922,"props":5981,"children":5982},{"style":935},[5983],{"type":854,"value":5984}," 'Acme'",{"type":849,"tag":922,"props":5986,"children":5987},{"style":975},[5988],{"type":854,"value":1327},{"type":854,"value":1001},{"type":849,"tag":922,"props":5991,"children":5992},{"class":924,"style":925},[5993,5997,6001,6005,6009,6013,6017,6021,6026,6030,6034,6038,6043,6047,6052,6057],{"type":849,"tag":922,"props":5994,"children":5995},{"style":969},[5996],{"type":854,"value":5626},{"type":849,"tag":922,"props":5998,"children":5999},{"style":981},[6000],{"type":854,"value":5864},{"type":849,"tag":922,"props":6002,"children":6003},{"style":975},[6004],{"type":854,"value":899},{"type":849,"tag":922,"props":6006,"children":6007},{"style":981},[6008],{"type":854,"value":5873},{"type":849,"tag":922,"props":6010,"children":6011},{"style":975},[6012],{"type":854,"value":899},{"type":849,"tag":922,"props":6014,"children":6015},{"style":929},[6016],{"type":854,"value":5882},{"type":849,"tag":922,"props":6018,"children":6019},{"style":975},[6020],{"type":854,"value":1302},{"type":849,"tag":922,"props":6022,"children":6023},{"style":935},[6024],{"type":854,"value":6025},"'memberships'",{"type":849,"tag":922,"props":6027,"children":6028},{"style":975},[6029],{"type":854,"value":1312},{"type":849,"tag":922,"props":6031,"children":6032},{"style":981},[6033],{"type":854,"value":3397},{"type":849,"tag":922,"props":6035,"children":6036},{"style":975},[6037],{"type":854,"value":1056},{"type":849,"tag":922,"props":6039,"children":6040},{"style":981},[6041],{"type":854,"value":6042},"userId",{"type":849,"tag":922,"props":6044,"children":6045},{"style":975},[6046],{"type":854,"value":1056},{"type":849,"tag":922,"props":6048,"children":6049},{"style":981},[6050],{"type":854,"value":6051},"role:",{"type":849,"tag":922,"props":6053,"children":6054},{"style":935},[6055],{"type":854,"value":6056}," 'owner'",{"type":849,"tag":922,"props":6058,"children":6059},{"style":975},[6060],{"type":854,"value":1327},{"type":854,"value":1001},{"type":849,"tag":922,"props":6063,"children":6064},{"class":924,"style":925},[6065,6070,6075,6079,6083,6087,6091,6095,6099,6104,6108,6112,6116,6120,6125,6129,6134,6139],{"type":849,"tag":922,"props":6066,"children":6067},{"style":969},[6068],{"type":854,"value":6069},"    return",{"type":849,"tag":922,"props":6071,"children":6072},{"style":969},[6073],{"type":854,"value":6074}," await",{"type":849,"tag":922,"props":6076,"children":6077},{"style":981},[6078],{"type":854,"value":5864},{"type":849,"tag":922,"props":6080,"children":6081},{"style":975},[6082],{"type":854,"value":899},{"type":849,"tag":922,"props":6084,"children":6085},{"style":981},[6086],{"type":854,"value":5873},{"type":849,"tag":922,"props":6088,"children":6089},{"style":975},[6090],{"type":854,"value":899},{"type":849,"tag":922,"props":6092,"children":6093},{"style":929},[6094],{"type":854,"value":5882},{"type":849,"tag":922,"props":6096,"children":6097},{"style":975},[6098],{"type":854,"value":1302},{"type":849,"tag":922,"props":6100,"children":6101},{"style":935},[6102],{"type":854,"value":6103},"'projects'",{"type":849,"tag":922,"props":6105,"children":6106},{"style":975},[6107],{"type":854,"value":1312},{"type":849,"tag":922,"props":6109,"children":6110},{"style":981},[6111],{"type":854,"value":3397},{"type":849,"tag":922,"props":6113,"children":6114},{"style":975},[6115],{"type":854,"value":1056},{"type":849,"tag":922,"props":6117,"children":6118},{"style":981},[6119],{"type":854,"value":3593},{"type":849,"tag":922,"props":6121,"children":6122},{"style":935},[6123],{"type":854,"value":6124}," 'Roadmap'",{"type":849,"tag":922,"props":6126,"children":6127},{"style":975},[6128],{"type":854,"value":1056},{"type":849,"tag":922,"props":6130,"children":6131},{"style":981},[6132],{"type":854,"value":6133},"status:",{"type":849,"tag":922,"props":6135,"children":6136},{"style":935},[6137],{"type":854,"value":6138}," 'active'",{"type":849,"tag":922,"props":6140,"children":6141},{"style":975},[6142],{"type":854,"value":1327},{"type":854,"value":1001},{"type":849,"tag":922,"props":6145,"children":6146},{"class":924,"style":925},[6147],{"type":849,"tag":922,"props":6148,"children":6149},{"style":975},[6150],{"type":854,"value":6151},"  })",{"type":854,"value":1001},{"type":849,"tag":922,"props":6154,"children":6155},{"class":924,"style":925},[6156,6160,6164,6168,6172,6176,6180,6184,6188,6192],{"type":849,"tag":922,"props":6157,"children":6158},{"style":941},[6159],{"type":854,"value":1460},{"type":849,"tag":922,"props":6161,"children":6162},{"style":1267},[6163],{"type":854,"value":1964},{"type":849,"tag":922,"props":6165,"children":6166},{"style":975},[6167],{"type":854,"value":1275},{"type":849,"tag":922,"props":6169,"children":6170},{"style":969},[6171],{"type":854,"value":1973},{"type":849,"tag":922,"props":6173,"children":6174},{"style":929},[6175],{"type":854,"value":1978},{"type":849,"tag":922,"props":6177,"children":6178},{"style":975},[6179],{"type":854,"value":1302},{"type":849,"tag":922,"props":6181,"children":6182},{"style":981},[6183],{"type":854,"value":1522},{"type":849,"tag":922,"props":6185,"children":6186},{"style":975},[6187],{"type":854,"value":1056},{"type":849,"tag":922,"props":6189,"children":6190},{"style":935},[6191],{"type":854,"value":1995},{"type":849,"tag":922,"props":6193,"children":6194},{"style":975},[6195],{"type":854,"value":1413},{"type":854,"value":1001},{"type":849,"tag":922,"props":6198,"children":6199},{"class":924,"style":925},[6200,6204,6208,6212,6216,6220,6224,6228,6233,6237,6242,6246,6250],{"type":849,"tag":922,"props":6201,"children":6202},{"style":969},[6203],{"type":854,"value":1911},{"type":849,"tag":922,"props":6205,"children":6206},{"style":981},[6207],{"type":854,"value":1964},{"type":849,"tag":922,"props":6209,"children":6210},{"style":975},[6211],{"type":854,"value":899},{"type":849,"tag":922,"props":6213,"children":6214},{"style":929},[6215],{"type":854,"value":2134},{"type":849,"tag":922,"props":6217,"children":6218},{"style":975},[6219],{"type":854,"value":1302},{"type":849,"tag":922,"props":6221,"children":6222},{"style":981},[6223],{"type":854,"value":3441},{"type":849,"tag":922,"props":6225,"children":6226},{"style":975},[6227],{"type":854,"value":899},{"type":849,"tag":922,"props":6229,"children":6230},{"style":981},[6231],{"type":854,"value":6232},"summaries",{"type":849,"tag":922,"props":6234,"children":6235},{"style":975},[6236],{"type":854,"value":899},{"type":849,"tag":922,"props":6238,"children":6239},{"style":981},[6240],{"type":854,"value":6241},"request",{"type":849,"tag":922,"props":6243,"children":6244},{"style":975},[6245],{"type":854,"value":1312},{"type":849,"tag":922,"props":6247,"children":6248},{"style":981},[6249],{"type":854,"value":3519},{"type":849,"tag":922,"props":6251,"children":6252},{"style":975},[6253],{"type":854,"value":1327},{"type":854,"value":1001},{"type":849,"tag":922,"props":6256,"children":6257},{"class":924,"style":925},[],{"type":854,"value":1001},{"type":849,"tag":922,"props":6260,"children":6261},{"class":924,"style":925},[6262,6266,6270,6274,6278],{"type":849,"tag":922,"props":6263,"children":6264},{"style":969},[6265],{"type":854,"value":1911},{"type":849,"tag":922,"props":6267,"children":6268},{"style":929},[6269],{"type":854,"value":5458},{"type":849,"tag":922,"props":6271,"children":6272},{"style":975},[6273],{"type":854,"value":1302},{"type":849,"tag":922,"props":6275,"children":6276},{"style":981},[6277],{"type":854,"value":1522},{"type":849,"tag":922,"props":6279,"children":6280},{"style":975},[6281],{"type":854,"value":1413},{"type":854,"value":1001},{"type":849,"tag":922,"props":6284,"children":6285},{"class":924,"style":925},[],{"type":854,"value":1001},{"type":849,"tag":922,"props":6288,"children":6289},{"class":924,"style":925},[6290,6294,6298,6302,6306,6310,6314,6319,6323,6327,6331,6335,6339,6343,6347,6352,6356,6360,6365,6369,6373,6378],{"type":849,"tag":922,"props":6291,"children":6292},{"style":969},[6293],{"type":854,"value":1911},{"type":849,"tag":922,"props":6295,"children":6296},{"style":929},[6297],{"type":854,"value":4192},{"type":849,"tag":922,"props":6299,"children":6300},{"style":975},[6301],{"type":854,"value":1302},{"type":849,"tag":922,"props":6303,"children":6304},{"style":981},[6305],{"type":854,"value":1522},{"type":849,"tag":922,"props":6307,"children":6308},{"style":975},[6309],{"type":854,"value":899},{"type":849,"tag":922,"props":6311,"children":6312},{"style":929},[6313],{"type":854,"value":5808},{"type":849,"tag":922,"props":6315,"children":6316},{"style":975},[6317],{"type":854,"value":6318},"((",{"type":849,"tag":922,"props":6320,"children":6321},{"style":981},[6322],{"type":854,"value":5825},{"type":849,"tag":922,"props":6324,"children":6325},{"style":975},[6326],{"type":854,"value":4042},{"type":849,"tag":922,"props":6328,"children":6329},{"style":941},[6330],{"type":854,"value":2323},{"type":849,"tag":922,"props":6332,"children":6333},{"style":981},[6334],{"type":854,"value":5864},{"type":849,"tag":922,"props":6336,"children":6337},{"style":975},[6338],{"type":854,"value":899},{"type":849,"tag":922,"props":6340,"children":6341},{"style":981},[6342],{"type":854,"value":5873},{"type":849,"tag":922,"props":6344,"children":6345},{"style":975},[6346],{"type":854,"value":899},{"type":849,"tag":922,"props":6348,"children":6349},{"style":929},[6350],{"type":854,"value":6351},"get",{"type":849,"tag":922,"props":6353,"children":6354},{"style":975},[6355],{"type":854,"value":1302},{"type":849,"tag":922,"props":6357,"children":6358},{"style":981},[6359],{"type":854,"value":3519},{"type":849,"tag":922,"props":6361,"children":6362},{"style":975},[6363],{"type":854,"value":6364},"))).",{"type":849,"tag":922,"props":6366,"children":6367},{"style":981},[6368],{"type":854,"value":4267},{"type":849,"tag":922,"props":6370,"children":6371},{"style":975},[6372],{"type":854,"value":899},{"type":849,"tag":922,"props":6374,"children":6375},{"style":929},[6376],{"type":854,"value":6377},"toMatchObject",{"type":849,"tag":922,"props":6379,"children":6380},{"style":975},[6381],{"type":854,"value":1028},{"type":854,"value":1001},{"type":849,"tag":922,"props":6384,"children":6385},{"class":924,"style":925},[6386,6391,6395],{"type":849,"tag":922,"props":6387,"children":6388},{"style":981},[6389],{"type":854,"value":6390},"    summary:",{"type":849,"tag":922,"props":6392,"children":6393},{"style":935},[6394],{"type":854,"value":5337},{"type":849,"tag":922,"props":6396,"children":6397},{"style":975},[6398],{"type":854,"value":4784},{"type":854,"value":1001},{"type":849,"tag":922,"props":6401,"children":6402},{"class":924,"style":925},[6403],{"type":849,"tag":922,"props":6404,"children":6405},{"style":975},[6406],{"type":854,"value":6151},{"type":854,"value":1001},{"type":849,"tag":922,"props":6409,"children":6410},{"class":924,"style":925},[6411],{"type":849,"tag":922,"props":6412,"children":6413},{"style":975},[6414],{"type":854,"value":1085},{"type":849,"tag":850,"props":6416,"children":6417},{},[6418,6423],{"type":849,"tag":857,"props":6419,"children":6420},{},[6421],{"type":854,"value":6422},"runScheduled",{"type":854,"value":6424}," starts what is scheduled, waits until it is done, and repeats\nfor the work that schedules more work. The step limit stops a chain that never\nends.",{"type":849,"tag":850,"props":6426,"children":6427},{},[6428,6430,6435],{"type":854,"value":6429},"An agent's grant from ",{"type":849,"tag":857,"props":6431,"children":6432},{},[6433],{"type":854,"value":6434},"grantMcp",{"type":854,"value":6436}," lasts 10 minutes, like an access token. For\nscheduled work that runs longer, give the session and the grant a longer life:",{"type":849,"tag":912,"props":6438,"children":6439},{"language":957,"class":915},[6440],{"type":849,"tag":857,"props":6441,"children":6442},{"class":962},[6443,6516,6517,6534,6535,6583,6584,6662,6663],{"type":849,"tag":922,"props":6444,"children":6445},{"class":924,"style":925},[6446,6450,6454,6458,6462,6466,6470,6474,6478,6483,6487,6491,6495,6499,6503,6507,6511],{"type":849,"tag":922,"props":6447,"children":6448},{"style":969},[6449],{"type":854,"value":1973},{"type":849,"tag":922,"props":6451,"children":6452},{"style":929},[6453],{"type":854,"value":1978},{"type":849,"tag":922,"props":6455,"children":6456},{"style":975},[6457],{"type":854,"value":1302},{"type":849,"tag":922,"props":6459,"children":6460},{"style":981},[6461],{"type":854,"value":1522},{"type":849,"tag":922,"props":6463,"children":6464},{"style":975},[6465],{"type":854,"value":1056},{"type":849,"tag":922,"props":6467,"children":6468},{"style":935},[6469],{"type":854,"value":1995},{"type":849,"tag":922,"props":6471,"children":6472},{"style":975},[6473],{"type":854,"value":1312},{"type":849,"tag":922,"props":6475,"children":6476},{"style":981},[6477],{"type":854,"value":2004},{"type":849,"tag":922,"props":6479,"children":6480},{"style":1827},[6481],{"type":854,"value":6482}," 4",{"type":849,"tag":922,"props":6484,"children":6485},{"style":975},[6486],{"type":854,"value":2014},{"type":849,"tag":922,"props":6488,"children":6489},{"style":1827},[6490],{"type":854,"value":2028},{"type":849,"tag":922,"props":6492,"children":6493},{"style":975},[6494],{"type":854,"value":2014},{"type":849,"tag":922,"props":6496,"children":6497},{"style":1827},[6498],{"type":854,"value":2028},{"type":849,"tag":922,"props":6500,"children":6501},{"style":975},[6502],{"type":854,"value":2014},{"type":849,"tag":922,"props":6504,"children":6505},{"style":1827},[6506],{"type":854,"value":2045},{"type":849,"tag":922,"props":6508,"children":6509},{"style":975},[6510],{"type":854,"value":3402},{"type":849,"tag":922,"props":6512,"children":6513},{"style":1098},[6514],{"type":854,"value":6515},"\u002F\u002F the session grantMcp reuses",{"type":854,"value":1001},{"type":849,"tag":922,"props":6518,"children":6519},{"class":924,"style":925},[6520,6524,6529],{"type":849,"tag":922,"props":6521,"children":6522},{"style":941},[6523],{"type":854,"value":1959},{"type":849,"tag":922,"props":6525,"children":6526},{"style":1267},[6527],{"type":854,"value":6528}," principal",{"type":849,"tag":922,"props":6530,"children":6531},{"style":975},[6532],{"type":854,"value":6533}," = {",{"type":854,"value":1001},{"type":849,"tag":922,"props":6536,"children":6537},{"class":924,"style":925},[6538,6543,6547,6552,6556,6560,6564,6568,6573,6578],{"type":849,"tag":922,"props":6539,"children":6540},{"style":975},[6541],{"type":854,"value":6542},"  ...(",{"type":849,"tag":922,"props":6544,"children":6545},{"style":969},[6546],{"type":854,"value":1973},{"type":849,"tag":922,"props":6548,"children":6549},{"style":929},[6550],{"type":854,"value":6551}," grantMcp",{"type":849,"tag":922,"props":6553,"children":6554},{"style":975},[6555],{"type":854,"value":1302},{"type":849,"tag":922,"props":6557,"children":6558},{"style":981},[6559],{"type":854,"value":1522},{"type":849,"tag":922,"props":6561,"children":6562},{"style":975},[6563],{"type":854,"value":1056},{"type":849,"tag":922,"props":6565,"children":6566},{"style":935},[6567],{"type":854,"value":1995},{"type":849,"tag":922,"props":6569,"children":6570},{"style":975},[6571],{"type":854,"value":6572},", [",{"type":849,"tag":922,"props":6574,"children":6575},{"style":935},[6576],{"type":854,"value":6577},"'projects:read'",{"type":849,"tag":922,"props":6579,"children":6580},{"style":975},[6581],{"type":854,"value":6582},"])),",{"type":854,"value":1001},{"type":849,"tag":922,"props":6585,"children":6586},{"class":924,"style":925},[6587,6592,6597,6601,6606,6610,6615,6619,6624,6629,6633,6638,6642,6646,6650,6654,6658],{"type":849,"tag":922,"props":6588,"children":6589},{"style":981},[6590],{"type":854,"value":6591},"  expiresAt:",{"type":849,"tag":922,"props":6593,"children":6594},{"style":981},[6595],{"type":854,"value":6596}," Math",{"type":849,"tag":922,"props":6598,"children":6599},{"style":975},[6600],{"type":854,"value":899},{"type":849,"tag":922,"props":6602,"children":6603},{"style":929},[6604],{"type":854,"value":6605},"floor",{"type":849,"tag":922,"props":6607,"children":6608},{"style":975},[6609],{"type":854,"value":1302},{"type":849,"tag":922,"props":6611,"children":6612},{"style":981},[6613],{"type":854,"value":6614},"Date",{"type":849,"tag":922,"props":6616,"children":6617},{"style":975},[6618],{"type":854,"value":899},{"type":849,"tag":922,"props":6620,"children":6621},{"style":929},[6622],{"type":854,"value":6623},"now",{"type":849,"tag":922,"props":6625,"children":6626},{"style":975},[6627],{"type":854,"value":6628},"() \u002F ",{"type":849,"tag":922,"props":6630,"children":6631},{"style":1827},[6632],{"type":854,"value":2045},{"type":849,"tag":922,"props":6634,"children":6635},{"style":975},[6636],{"type":854,"value":6637},") + ",{"type":849,"tag":922,"props":6639,"children":6640},{"style":1827},[6641],{"type":854,"value":542},{"type":849,"tag":922,"props":6643,"children":6644},{"style":975},[6645],{"type":854,"value":2014},{"type":849,"tag":922,"props":6647,"children":6648},{"style":1827},[6649],{"type":854,"value":2028},{"type":849,"tag":922,"props":6651,"children":6652},{"style":975},[6653],{"type":854,"value":2014},{"type":849,"tag":922,"props":6655,"children":6656},{"style":1827},[6657],{"type":854,"value":2028},{"type":849,"tag":922,"props":6659,"children":6660},{"style":975},[6661],{"type":854,"value":4784},{"type":854,"value":1001},{"type":849,"tag":922,"props":6664,"children":6665},{"class":924,"style":925},[6666],{"type":849,"tag":922,"props":6667,"children":6668},{"style":975},[6669],{"type":854,"value":1548},{"type":849,"tag":901,"props":6671,"children":6673},{"id":6672},"tools-and-approvals",[6674],{"type":854,"value":437},{"type":849,"tag":850,"props":6676,"children":6677},{},[6678,6683,6684,6688,6690,6695,6697,6702,6704,6708],{"type":849,"tag":857,"props":6679,"children":6680},{},[6681],{"type":854,"value":6682},"grantMcp(t, 'ann', scopes)",{"type":854,"value":1602},{"type":849,"tag":857,"props":6685,"children":6686},{},[6687],{"type":854,"value":1607},{"type":854,"value":6689},"\ngives Ann a live MCP grant: a host client ",{"type":849,"tag":857,"props":6691,"children":6692},{},[6693],{"type":854,"value":6694},"test-host",{"type":854,"value":6696},", the resource\n",{"type":849,"tag":857,"props":6698,"children":6699},{},[6700],{"type":854,"value":6701},"${CONVEX_SITE_URL}\u002Fmcp",{"type":854,"value":6703},", and her consent to the scopes. It returns the\nprincipal that the door passes to a tool after it checks an access token. The\ngrant uses the same user and session as ",{"type":849,"tag":857,"props":6705,"children":6706},{},[6707],{"type":854,"value":1726},{"type":854,"value":6709},", in either order, so\ndeleting the session ends both, as a sign-out does.",{"type":849,"tag":850,"props":6711,"children":6712},{},[6713,6718,6720,6725,6727,6732,6734,6739,6741,6746,6748,6753,6755,6760,6762,6767,6769,6774,6776,6781],{"type":849,"tag":857,"props":6714,"children":6715},{},[6716],{"type":854,"value":6717},"callTool(t, tools, principal, name, input)",{"type":854,"value":6719}," from\n",{"type":849,"tag":857,"props":6721,"children":6722},{},[6723],{"type":854,"value":6724},"@lupinum\u002Fbetter-convex-agents\u002Ftest",{"type":854,"value":6726}," calls a tool as the MCP door does: only a\ntool that the principal's scopes unlock, with ",{"type":849,"tag":857,"props":6728,"children":6729},{},[6730],{"type":854,"value":6731},"request_id",{"type":854,"value":6733}," taken from ",{"type":849,"tag":857,"props":6735,"children":6736},{},[6737],{"type":854,"value":6738},"input",{"type":854,"value":6740},".\nThe input goes through JSON, as a host's does: ",{"type":849,"tag":857,"props":6742,"children":6743},{},[6744],{"type":854,"value":6745},"NaN",{"type":854,"value":6747}," arrives as ",{"type":849,"tag":857,"props":6749,"children":6750},{},[6751],{"type":854,"value":6752},"null",{"type":854,"value":6754},". It\nresolves with the tool's output: ",{"type":849,"tag":857,"props":6756,"children":6757},{},[6758],{"type":854,"value":6759},"{ status: 'done', result }",{"type":854,"value":6761},", or\n",{"type":849,"tag":857,"props":6763,"children":6764},{},[6765],{"type":854,"value":6766},"{ status: 'needs_approval', approvalId, summary, url }",{"type":854,"value":6768},". It rejects with the\ntool's own error, as ",{"type":849,"tag":857,"props":6770,"children":6771},{},[6772],{"type":854,"value":6773},"t.mutation",{"type":854,"value":6775}," does. A tool that the scopes do not unlock\nthrows an ",{"type":849,"tag":857,"props":6777,"children":6778},{},[6779],{"type":854,"value":6780},"Error",{"type":854,"value":6782}," that lists the tools they unlock.",{"type":849,"tag":850,"props":6784,"children":6785},{},[6786],{"type":854,"value":6787},"Three tests cover what only agents have.",{"type":849,"tag":850,"props":6789,"children":6790},{},[6791,6796,6798,6802],{"type":849,"tag":2915,"props":6792,"children":6793},{},[6794],{"type":854,"value":6795},"The agent surface.",{"type":854,"value":6797}," One literal of every tool, its scopes and its approval\nrule. A scope that unlocks a write tool by accident, or an approval rule that\nwas dropped, changes the literal. Review a change to it like a change to the\npolicy. The test below is for the app of ",{"type":849,"tag":877,"props":6799,"children":6800},{"href":493},[6801],{"type":854,"value":488},{"type":854,"value":899},{"type":849,"tag":850,"props":6804,"children":6805},{},[6806,6811],{"type":849,"tag":2915,"props":6807,"children":6808},{},[6809],{"type":854,"value":6810},"An agent's request.",{"type":854,"value":6812}," It waits for a person, and the approval runs it.",{"type":849,"tag":912,"props":6814,"children":6816},{"language":957,"filename":6815,"class":915},"convex\u002Ftools.test.ts",[6817],{"type":849,"tag":857,"props":6818,"children":6819},{"class":962},[6820,6848,6849,6884,6885,6920,6921,6924,6925,6952,6953,6981,6982,7009,7010,7013,7014,7022,7023,7052,7053,7064,7065,7172,7173,7190,7191,7258,7259,7322,7323,7376,7377,7385,7386,7393,7394,7397,7398,7406,7407,7443,7444,7467,7468,7527,7528,7603,7604,7667,7668,7735,7736,7811,7812,7819,7820,7880,7881,7924,7925,7928,7929,7998,7999,8065,8066,8111,8112,8215,8216,8219,8220,8315,8316,8336,8337,8344,8345,8436,8437,8454,8455,8462,8463],{"type":849,"tag":922,"props":6821,"children":6822},{"class":924,"style":925},[6823,6827,6831,6835,6839,6843],{"type":849,"tag":922,"props":6824,"children":6825},{"style":969},[6826],{"type":854,"value":972},{"type":849,"tag":922,"props":6828,"children":6829},{"style":975},[6830],{"type":854,"value":978},{"type":849,"tag":922,"props":6832,"children":6833},{"style":981},[6834],{"type":854,"value":3267},{"type":849,"tag":922,"props":6836,"children":6837},{"style":975},[6838],{"type":854,"value":989},{"type":849,"tag":922,"props":6840,"children":6841},{"style":969},[6842],{"type":854,"value":994},{"type":849,"tag":922,"props":6844,"children":6845},{"style":935},[6846],{"type":854,"value":6847}," '@lupinum\u002Fbetter-convex-agents\u002Ftest'",{"type":854,"value":1001},{"type":849,"tag":922,"props":6850,"children":6851},{"class":924,"style":925},[6852,6856,6860,6864,6868,6872,6876,6880],{"type":849,"tag":922,"props":6853,"children":6854},{"style":969},[6855],{"type":854,"value":972},{"type":849,"tag":922,"props":6857,"children":6858},{"style":975},[6859],{"type":854,"value":978},{"type":849,"tag":922,"props":6861,"children":6862},{"style":981},[6863],{"type":854,"value":6434},{"type":849,"tag":922,"props":6865,"children":6866},{"style":975},[6867],{"type":854,"value":1056},{"type":849,"tag":922,"props":6869,"children":6870},{"style":981},[6871],{"type":854,"value":1726},{"type":849,"tag":922,"props":6873,"children":6874},{"style":975},[6875],{"type":854,"value":989},{"type":849,"tag":922,"props":6877,"children":6878},{"style":969},[6879],{"type":854,"value":994},{"type":849,"tag":922,"props":6881,"children":6882},{"style":935},[6883],{"type":854,"value":1161},{"type":854,"value":1001},{"type":849,"tag":922,"props":6886,"children":6887},{"class":924,"style":925},[6888,6892,6896,6900,6904,6908,6912,6916],{"type":849,"tag":922,"props":6889,"children":6890},{"style":969},[6891],{"type":854,"value":972},{"type":849,"tag":922,"props":6893,"children":6894},{"style":975},[6895],{"type":854,"value":978},{"type":849,"tag":922,"props":6897,"children":6898},{"style":981},[6899],{"type":854,"value":2202},{"type":849,"tag":922,"props":6901,"children":6902},{"style":975},[6903],{"type":854,"value":1056},{"type":849,"tag":922,"props":6905,"children":6906},{"style":981},[6907],{"type":854,"value":2211},{"type":849,"tag":922,"props":6909,"children":6910},{"style":975},[6911],{"type":854,"value":989},{"type":849,"tag":922,"props":6913,"children":6914},{"style":969},[6915],{"type":854,"value":994},{"type":849,"tag":922,"props":6917,"children":6918},{"style":935},[6919],{"type":854,"value":1221},{"type":854,"value":1001},{"type":849,"tag":922,"props":6922,"children":6923},{"class":924,"style":925},[],{"type":854,"value":1001},{"type":849,"tag":922,"props":6926,"children":6927},{"class":924,"style":925},[6928,6932,6936,6940,6944,6948],{"type":849,"tag":922,"props":6929,"children":6930},{"style":969},[6931],{"type":854,"value":972},{"type":849,"tag":922,"props":6933,"children":6934},{"style":975},[6935],{"type":854,"value":978},{"type":849,"tag":922,"props":6937,"children":6938},{"style":981},[6939],{"type":854,"value":3441},{"type":849,"tag":922,"props":6941,"children":6942},{"style":975},[6943],{"type":854,"value":989},{"type":849,"tag":922,"props":6945,"children":6946},{"style":969},[6947],{"type":854,"value":994},{"type":849,"tag":922,"props":6949,"children":6950},{"style":935},[6951],{"type":854,"value":5130},{"type":854,"value":1001},{"type":849,"tag":922,"props":6954,"children":6955},{"class":924,"style":925},[6956,6960,6964,6968,6972,6976],{"type":849,"tag":922,"props":6957,"children":6958},{"style":969},[6959],{"type":854,"value":972},{"type":849,"tag":922,"props":6961,"children":6962},{"style":975},[6963],{"type":854,"value":978},{"type":849,"tag":922,"props":6965,"children":6966},{"style":981},[6967],{"type":854,"value":3069},{"type":849,"tag":922,"props":6969,"children":6970},{"style":975},[6971],{"type":854,"value":989},{"type":849,"tag":922,"props":6973,"children":6974},{"style":969},[6975],{"type":854,"value":994},{"type":849,"tag":922,"props":6977,"children":6978},{"style":935},[6979],{"type":854,"value":6980}," '.\u002Fagents'",{"type":854,"value":1001},{"type":849,"tag":922,"props":6983,"children":6984},{"class":924,"style":925},[6985,6989,6993,6997,7001,7005],{"type":849,"tag":922,"props":6986,"children":6987},{"style":969},[6988],{"type":854,"value":972},{"type":849,"tag":922,"props":6990,"children":6991},{"style":975},[6992],{"type":854,"value":978},{"type":849,"tag":922,"props":6994,"children":6995},{"style":981},[6996],{"type":854,"value":5147},{"type":849,"tag":922,"props":6998,"children":6999},{"style":975},[7000],{"type":854,"value":989},{"type":849,"tag":922,"props":7002,"children":7003},{"style":969},[7004],{"type":854,"value":994},{"type":849,"tag":922,"props":7006,"children":7007},{"style":935},[7008],{"type":854,"value":2256},{"type":854,"value":1001},{"type":849,"tag":922,"props":7011,"children":7012},{"class":924,"style":925},[],{"type":854,"value":1001},{"type":849,"tag":922,"props":7015,"children":7016},{"class":924,"style":925},[7017],{"type":849,"tag":922,"props":7018,"children":7019},{"style":1098},[7020],{"type":854,"value":7021},"\u002F\u002F Catches a scope that unlocks a write tool by accident, and an approval rule that was dropped.",{"type":854,"value":1001},{"type":849,"tag":922,"props":7024,"children":7025},{"class":924,"style":925},[7026,7030,7034,7039,7044,7048],{"type":849,"tag":922,"props":7027,"children":7028},{"style":929},[7029],{"type":854,"value":2211},{"type":849,"tag":922,"props":7031,"children":7032},{"style":975},[7033],{"type":854,"value":1302},{"type":849,"tag":922,"props":7035,"children":7036},{"style":935},[7037],{"type":854,"value":7038},"'gives agents these tools, with these scopes and approvals'",{"type":849,"tag":922,"props":7040,"children":7041},{"style":975},[7042],{"type":854,"value":7043},", () ",{"type":849,"tag":922,"props":7045,"children":7046},{"style":941},[7047],{"type":854,"value":2323},{"type":849,"tag":922,"props":7049,"children":7050},{"style":975},[7051],{"type":854,"value":2328},{"type":854,"value":1001},{"type":849,"tag":922,"props":7054,"children":7055},{"class":924,"style":925},[7056,7060],{"type":849,"tag":922,"props":7057,"children":7058},{"style":929},[7059],{"type":854,"value":2375},{"type":849,"tag":922,"props":7061,"children":7062},{"style":975},[7063],{"type":854,"value":1302},{"type":854,"value":1001},{"type":849,"tag":922,"props":7066,"children":7067},{"class":924,"style":925},[7068,7073,7077,7082,7086,7091,7096,7100,7104,7109,7113,7118,7122,7127,7131,7135,7140,7144,7148,7152,7156,7160,7164,7168],{"type":849,"tag":922,"props":7069,"children":7070},{"style":981},[7071],{"type":854,"value":7072},"    tools",{"type":849,"tag":922,"props":7074,"children":7075},{"style":975},[7076],{"type":854,"value":899},{"type":849,"tag":922,"props":7078,"children":7079},{"style":981},[7080],{"type":854,"value":7081},"catalog",{"type":849,"tag":922,"props":7083,"children":7084},{"style":975},[7085],{"type":854,"value":899},{"type":849,"tag":922,"props":7087,"children":7088},{"style":929},[7089],{"type":854,"value":7090},"map",{"type":849,"tag":922,"props":7092,"children":7093},{"style":975},[7094],{"type":854,"value":7095},"(({ ",{"type":849,"tag":922,"props":7097,"children":7098},{"style":981},[7099],{"type":854,"value":4028},{"type":849,"tag":922,"props":7101,"children":7102},{"style":975},[7103],{"type":854,"value":1056},{"type":849,"tag":922,"props":7105,"children":7106},{"style":981},[7107],{"type":854,"value":7108},"kind",{"type":849,"tag":922,"props":7110,"children":7111},{"style":975},[7112],{"type":854,"value":1056},{"type":849,"tag":922,"props":7114,"children":7115},{"style":981},[7116],{"type":854,"value":7117},"scopes",{"type":849,"tag":922,"props":7119,"children":7120},{"style":975},[7121],{"type":854,"value":1056},{"type":849,"tag":922,"props":7123,"children":7124},{"style":981},[7125],{"type":854,"value":7126},"approval",{"type":849,"tag":922,"props":7128,"children":7129},{"style":975},[7130],{"type":854,"value":3402},{"type":849,"tag":922,"props":7132,"children":7133},{"style":941},[7134],{"type":854,"value":2323},{"type":849,"tag":922,"props":7136,"children":7137},{"style":975},[7138],{"type":854,"value":7139}," ({ ",{"type":849,"tag":922,"props":7141,"children":7142},{"style":981},[7143],{"type":854,"value":4028},{"type":849,"tag":922,"props":7145,"children":7146},{"style":975},[7147],{"type":854,"value":1056},{"type":849,"tag":922,"props":7149,"children":7150},{"style":981},[7151],{"type":854,"value":7108},{"type":849,"tag":922,"props":7153,"children":7154},{"style":975},[7155],{"type":854,"value":1056},{"type":849,"tag":922,"props":7157,"children":7158},{"style":981},[7159],{"type":854,"value":7117},{"type":849,"tag":922,"props":7161,"children":7162},{"style":975},[7163],{"type":854,"value":1056},{"type":849,"tag":922,"props":7165,"children":7166},{"style":981},[7167],{"type":854,"value":7126},{"type":849,"tag":922,"props":7169,"children":7170},{"style":975},[7171],{"type":854,"value":5342},{"type":854,"value":1001},{"type":849,"tag":922,"props":7174,"children":7175},{"class":924,"style":925},[7176,7181,7185],{"type":849,"tag":922,"props":7177,"children":7178},{"style":975},[7179],{"type":854,"value":7180},"  ).",{"type":849,"tag":922,"props":7182,"children":7183},{"style":929},[7184],{"type":854,"value":2415},{"type":849,"tag":922,"props":7186,"children":7187},{"style":975},[7188],{"type":854,"value":7189},"([",{"type":854,"value":1001},{"type":849,"tag":922,"props":7192,"children":7193},{"class":924,"style":925},[7194,7199,7203,7208,7212,7217,7222,7226,7231,7235,7239,7244,7249,7254],{"type":849,"tag":922,"props":7195,"children":7196},{"style":975},[7197],{"type":854,"value":7198},"    { ",{"type":849,"tag":922,"props":7200,"children":7201},{"style":981},[7202],{"type":854,"value":3593},{"type":849,"tag":922,"props":7204,"children":7205},{"style":935},[7206],{"type":854,"value":7207}," 'list_projects'",{"type":849,"tag":922,"props":7209,"children":7210},{"style":975},[7211],{"type":854,"value":1056},{"type":849,"tag":922,"props":7213,"children":7214},{"style":981},[7215],{"type":854,"value":7216},"kind:",{"type":849,"tag":922,"props":7218,"children":7219},{"style":935},[7220],{"type":854,"value":7221}," 'query'",{"type":849,"tag":922,"props":7223,"children":7224},{"style":975},[7225],{"type":854,"value":1056},{"type":849,"tag":922,"props":7227,"children":7228},{"style":981},[7229],{"type":854,"value":7230},"scopes:",{"type":849,"tag":922,"props":7232,"children":7233},{"style":975},[7234],{"type":854,"value":1066},{"type":849,"tag":922,"props":7236,"children":7237},{"style":935},[7238],{"type":854,"value":6577},{"type":849,"tag":922,"props":7240,"children":7241},{"style":975},[7242],{"type":854,"value":7243},"], ",{"type":849,"tag":922,"props":7245,"children":7246},{"style":981},[7247],{"type":854,"value":7248},"approval:",{"type":849,"tag":922,"props":7250,"children":7251},{"style":935},[7252],{"type":854,"value":7253}," 'never'",{"type":849,"tag":922,"props":7255,"children":7256},{"style":975},[7257],{"type":854,"value":4826},{"type":854,"value":1001},{"type":849,"tag":922,"props":7260,"children":7261},{"class":924,"style":925},[7262,7266,7270,7275,7279,7283,7288,7292,7296,7300,7305,7309,7313,7318],{"type":849,"tag":922,"props":7263,"children":7264},{"style":975},[7265],{"type":854,"value":7198},{"type":849,"tag":922,"props":7267,"children":7268},{"style":981},[7269],{"type":854,"value":3593},{"type":849,"tag":922,"props":7271,"children":7272},{"style":935},[7273],{"type":854,"value":7274}," 'archive_project'",{"type":849,"tag":922,"props":7276,"children":7277},{"style":975},[7278],{"type":854,"value":1056},{"type":849,"tag":922,"props":7280,"children":7281},{"style":981},[7282],{"type":854,"value":7216},{"type":849,"tag":922,"props":7284,"children":7285},{"style":935},[7286],{"type":854,"value":7287}," 'mutation'",{"type":849,"tag":922,"props":7289,"children":7290},{"style":975},[7291],{"type":854,"value":1056},{"type":849,"tag":922,"props":7293,"children":7294},{"style":981},[7295],{"type":854,"value":7230},{"type":849,"tag":922,"props":7297,"children":7298},{"style":975},[7299],{"type":854,"value":1066},{"type":849,"tag":922,"props":7301,"children":7302},{"style":935},[7303],{"type":854,"value":7304},"'projects:write'",{"type":849,"tag":922,"props":7306,"children":7307},{"style":975},[7308],{"type":854,"value":7243},{"type":849,"tag":922,"props":7310,"children":7311},{"style":981},[7312],{"type":854,"value":7248},{"type":849,"tag":922,"props":7314,"children":7315},{"style":935},[7316],{"type":854,"value":7317}," 'always'",{"type":849,"tag":922,"props":7319,"children":7320},{"style":975},[7321],{"type":854,"value":4826},{"type":854,"value":1001},{"type":849,"tag":922,"props":7324,"children":7325},{"class":924,"style":925},[7326,7330,7334,7339,7343,7347,7351,7355,7359,7364,7368,7372],{"type":849,"tag":922,"props":7327,"children":7328},{"style":975},[7329],{"type":854,"value":7198},{"type":849,"tag":922,"props":7331,"children":7332},{"style":981},[7333],{"type":854,"value":3593},{"type":849,"tag":922,"props":7335,"children":7336},{"style":935},[7337],{"type":854,"value":7338}," 'check_approval'",{"type":849,"tag":922,"props":7340,"children":7341},{"style":975},[7342],{"type":854,"value":1056},{"type":849,"tag":922,"props":7344,"children":7345},{"style":981},[7346],{"type":854,"value":7216},{"type":849,"tag":922,"props":7348,"children":7349},{"style":935},[7350],{"type":854,"value":7221},{"type":849,"tag":922,"props":7352,"children":7353},{"style":975},[7354],{"type":854,"value":1056},{"type":849,"tag":922,"props":7356,"children":7357},{"style":981},[7358],{"type":854,"value":7230},{"type":849,"tag":922,"props":7360,"children":7361},{"style":975},[7362],{"type":854,"value":7363}," [], ",{"type":849,"tag":922,"props":7365,"children":7366},{"style":981},[7367],{"type":854,"value":7248},{"type":849,"tag":922,"props":7369,"children":7370},{"style":935},[7371],{"type":854,"value":7253},{"type":849,"tag":922,"props":7373,"children":7374},{"style":975},[7375],{"type":854,"value":4826},{"type":854,"value":1001},{"type":849,"tag":922,"props":7378,"children":7379},{"class":924,"style":925},[7380],{"type":849,"tag":922,"props":7381,"children":7382},{"style":975},[7383],{"type":854,"value":7384},"  ])",{"type":854,"value":1001},{"type":849,"tag":922,"props":7387,"children":7388},{"class":924,"style":925},[7389],{"type":849,"tag":922,"props":7390,"children":7391},{"style":975},[7392],{"type":854,"value":1085},{"type":854,"value":1001},{"type":849,"tag":922,"props":7395,"children":7396},{"class":924,"style":925},[],{"type":854,"value":1001},{"type":849,"tag":922,"props":7399,"children":7400},{"class":924,"style":925},[7401],{"type":849,"tag":922,"props":7402,"children":7403},{"style":1098},[7404],{"type":854,"value":7405},"\u002F\u002F Catches an agent that archives without a person, and an approval that does not run the archive.",{"type":854,"value":1001},{"type":849,"tag":922,"props":7408,"children":7409},{"class":924,"style":925},[7410,7414,7418,7423,7427,7431,7435,7439],{"type":849,"tag":922,"props":7411,"children":7412},{"style":929},[7413],{"type":854,"value":2211},{"type":849,"tag":922,"props":7415,"children":7416},{"style":975},[7417],{"type":854,"value":1302},{"type":849,"tag":922,"props":7419,"children":7420},{"style":935},[7421],{"type":854,"value":7422},"'an agent’s archive waits for a person, then runs as the agent'",{"type":849,"tag":922,"props":7424,"children":7425},{"style":975},[7426],{"type":854,"value":1056},{"type":849,"tag":922,"props":7428,"children":7429},{"style":941},[7430],{"type":854,"value":2313},{"type":849,"tag":922,"props":7432,"children":7433},{"style":975},[7434],{"type":854,"value":2318},{"type":849,"tag":922,"props":7436,"children":7437},{"style":941},[7438],{"type":854,"value":2323},{"type":849,"tag":922,"props":7440,"children":7441},{"style":975},[7442],{"type":854,"value":2328},{"type":854,"value":1001},{"type":849,"tag":922,"props":7445,"children":7446},{"class":924,"style":925},[7447,7451,7455,7459,7463],{"type":849,"tag":922,"props":7448,"children":7449},{"style":941},[7450],{"type":854,"value":1460},{"type":849,"tag":922,"props":7452,"children":7453},{"style":1267},[7454],{"type":854,"value":1465},{"type":849,"tag":922,"props":7456,"children":7457},{"style":975},[7458],{"type":854,"value":1275},{"type":849,"tag":922,"props":7460,"children":7461},{"style":929},[7462],{"type":854,"value":5147},{"type":849,"tag":922,"props":7464,"children":7465},{"style":975},[7466],{"type":854,"value":1929},{"type":854,"value":1001},{"type":849,"tag":922,"props":7469,"children":7470},{"class":924,"style":925},[7471,7475,7479,7483,7487,7491,7495,7499,7503,7507,7511,7515,7519,7523],{"type":849,"tag":922,"props":7472,"children":7473},{"style":941},[7474],{"type":854,"value":1460},{"type":849,"tag":922,"props":7476,"children":7477},{"style":1267},[7478],{"type":854,"value":5787},{"type":849,"tag":922,"props":7480,"children":7481},{"style":975},[7482],{"type":854,"value":1275},{"type":849,"tag":922,"props":7484,"children":7485},{"style":969},[7486],{"type":854,"value":1973},{"type":849,"tag":922,"props":7488,"children":7489},{"style":981},[7490],{"type":854,"value":1465},{"type":849,"tag":922,"props":7492,"children":7493},{"style":975},[7494],{"type":854,"value":899},{"type":849,"tag":922,"props":7496,"children":7497},{"style":929},[7498],{"type":854,"value":5808},{"type":849,"tag":922,"props":7500,"children":7501},{"style":975},[7502],{"type":854,"value":1302},{"type":849,"tag":922,"props":7504,"children":7505},{"style":941},[7506],{"type":854,"value":2313},{"type":849,"tag":922,"props":7508,"children":7509},{"style":975},[7510],{"type":854,"value":1810},{"type":849,"tag":922,"props":7512,"children":7513},{"style":981},[7514],{"type":854,"value":5825},{"type":849,"tag":922,"props":7516,"children":7517},{"style":975},[7518],{"type":854,"value":4042},{"type":849,"tag":922,"props":7520,"children":7521},{"style":941},[7522],{"type":854,"value":2323},{"type":849,"tag":922,"props":7524,"children":7525},{"style":975},[7526],{"type":854,"value":2328},{"type":854,"value":1001},{"type":849,"tag":922,"props":7529,"children":7530},{"class":924,"style":925},[7531,7535,7539,7543,7547,7551,7555,7559,7563,7567,7571,7575,7579,7583,7587,7591,7595,7599],{"type":849,"tag":922,"props":7532,"children":7533},{"style":941},[7534],{"type":854,"value":5846},{"type":849,"tag":922,"props":7536,"children":7537},{"style":1267},[7538],{"type":854,"value":5851},{"type":849,"tag":922,"props":7540,"children":7541},{"style":975},[7542],{"type":854,"value":1275},{"type":849,"tag":922,"props":7544,"children":7545},{"style":969},[7546],{"type":854,"value":1973},{"type":849,"tag":922,"props":7548,"children":7549},{"style":981},[7550],{"type":854,"value":5864},{"type":849,"tag":922,"props":7552,"children":7553},{"style":975},[7554],{"type":854,"value":899},{"type":849,"tag":922,"props":7556,"children":7557},{"style":981},[7558],{"type":854,"value":5873},{"type":849,"tag":922,"props":7560,"children":7561},{"style":975},[7562],{"type":854,"value":899},{"type":849,"tag":922,"props":7564,"children":7565},{"style":929},[7566],{"type":854,"value":5882},{"type":849,"tag":922,"props":7568,"children":7569},{"style":975},[7570],{"type":854,"value":1302},{"type":849,"tag":922,"props":7572,"children":7573},{"style":935},[7574],{"type":854,"value":5891},{"type":849,"tag":922,"props":7576,"children":7577},{"style":975},[7578],{"type":854,"value":1312},{"type":849,"tag":922,"props":7580,"children":7581},{"style":981},[7582],{"type":854,"value":5900},{"type":849,"tag":922,"props":7584,"children":7585},{"style":935},[7586],{"type":854,"value":5905},{"type":849,"tag":922,"props":7588,"children":7589},{"style":975},[7590],{"type":854,"value":1056},{"type":849,"tag":922,"props":7592,"children":7593},{"style":981},[7594],{"type":854,"value":3593},{"type":849,"tag":922,"props":7596,"children":7597},{"style":935},[7598],{"type":854,"value":5918},{"type":849,"tag":922,"props":7600,"children":7601},{"style":975},[7602],{"type":854,"value":1327},{"type":854,"value":1001},{"type":849,"tag":922,"props":7605,"children":7606},{"class":924,"style":925},[7607,7611,7615,7619,7623,7627,7631,7635,7639,7643,7647,7651,7655,7659,7663],{"type":849,"tag":922,"props":7608,"children":7609},{"style":941},[7610],{"type":854,"value":5846},{"type":849,"tag":922,"props":7612,"children":7613},{"style":1267},[7614],{"type":854,"value":5935},{"type":849,"tag":922,"props":7616,"children":7617},{"style":975},[7618],{"type":854,"value":1275},{"type":849,"tag":922,"props":7620,"children":7621},{"style":969},[7622],{"type":854,"value":1973},{"type":849,"tag":922,"props":7624,"children":7625},{"style":981},[7626],{"type":854,"value":5864},{"type":849,"tag":922,"props":7628,"children":7629},{"style":975},[7630],{"type":854,"value":899},{"type":849,"tag":922,"props":7632,"children":7633},{"style":981},[7634],{"type":854,"value":5873},{"type":849,"tag":922,"props":7636,"children":7637},{"style":975},[7638],{"type":854,"value":899},{"type":849,"tag":922,"props":7640,"children":7641},{"style":929},[7642],{"type":854,"value":5882},{"type":849,"tag":922,"props":7644,"children":7645},{"style":975},[7646],{"type":854,"value":1302},{"type":849,"tag":922,"props":7648,"children":7649},{"style":935},[7650],{"type":854,"value":3342},{"type":849,"tag":922,"props":7652,"children":7653},{"style":975},[7654],{"type":854,"value":1312},{"type":849,"tag":922,"props":7656,"children":7657},{"style":981},[7658],{"type":854,"value":3593},{"type":849,"tag":922,"props":7660,"children":7661},{"style":935},[7662],{"type":854,"value":5984},{"type":849,"tag":922,"props":7664,"children":7665},{"style":975},[7666],{"type":854,"value":1327},{"type":854,"value":1001},{"type":849,"tag":922,"props":7669,"children":7670},{"class":924,"style":925},[7671,7675,7679,7683,7687,7691,7695,7699,7703,7707,7711,7715,7719,7723,7727,7731],{"type":849,"tag":922,"props":7672,"children":7673},{"style":969},[7674],{"type":854,"value":5626},{"type":849,"tag":922,"props":7676,"children":7677},{"style":981},[7678],{"type":854,"value":5864},{"type":849,"tag":922,"props":7680,"children":7681},{"style":975},[7682],{"type":854,"value":899},{"type":849,"tag":922,"props":7684,"children":7685},{"style":981},[7686],{"type":854,"value":5873},{"type":849,"tag":922,"props":7688,"children":7689},{"style":975},[7690],{"type":854,"value":899},{"type":849,"tag":922,"props":7692,"children":7693},{"style":929},[7694],{"type":854,"value":5882},{"type":849,"tag":922,"props":7696,"children":7697},{"style":975},[7698],{"type":854,"value":1302},{"type":849,"tag":922,"props":7700,"children":7701},{"style":935},[7702],{"type":854,"value":6025},{"type":849,"tag":922,"props":7704,"children":7705},{"style":975},[7706],{"type":854,"value":1312},{"type":849,"tag":922,"props":7708,"children":7709},{"style":981},[7710],{"type":854,"value":3397},{"type":849,"tag":922,"props":7712,"children":7713},{"style":975},[7714],{"type":854,"value":1056},{"type":849,"tag":922,"props":7716,"children":7717},{"style":981},[7718],{"type":854,"value":6042},{"type":849,"tag":922,"props":7720,"children":7721},{"style":975},[7722],{"type":854,"value":1056},{"type":849,"tag":922,"props":7724,"children":7725},{"style":981},[7726],{"type":854,"value":6051},{"type":849,"tag":922,"props":7728,"children":7729},{"style":935},[7730],{"type":854,"value":6056},{"type":849,"tag":922,"props":7732,"children":7733},{"style":975},[7734],{"type":854,"value":1327},{"type":854,"value":1001},{"type":849,"tag":922,"props":7737,"children":7738},{"class":924,"style":925},[7739,7743,7747,7751,7755,7759,7763,7767,7771,7775,7779,7783,7787,7791,7795,7799,7803,7807],{"type":849,"tag":922,"props":7740,"children":7741},{"style":969},[7742],{"type":854,"value":6069},{"type":849,"tag":922,"props":7744,"children":7745},{"style":969},[7746],{"type":854,"value":6074},{"type":849,"tag":922,"props":7748,"children":7749},{"style":981},[7750],{"type":854,"value":5864},{"type":849,"tag":922,"props":7752,"children":7753},{"style":975},[7754],{"type":854,"value":899},{"type":849,"tag":922,"props":7756,"children":7757},{"style":981},[7758],{"type":854,"value":5873},{"type":849,"tag":922,"props":7760,"children":7761},{"style":975},[7762],{"type":854,"value":899},{"type":849,"tag":922,"props":7764,"children":7765},{"style":929},[7766],{"type":854,"value":5882},{"type":849,"tag":922,"props":7768,"children":7769},{"style":975},[7770],{"type":854,"value":1302},{"type":849,"tag":922,"props":7772,"children":7773},{"style":935},[7774],{"type":854,"value":6103},{"type":849,"tag":922,"props":7776,"children":7777},{"style":975},[7778],{"type":854,"value":1312},{"type":849,"tag":922,"props":7780,"children":7781},{"style":981},[7782],{"type":854,"value":3397},{"type":849,"tag":922,"props":7784,"children":7785},{"style":975},[7786],{"type":854,"value":1056},{"type":849,"tag":922,"props":7788,"children":7789},{"style":981},[7790],{"type":854,"value":3593},{"type":849,"tag":922,"props":7792,"children":7793},{"style":935},[7794],{"type":854,"value":6124},{"type":849,"tag":922,"props":7796,"children":7797},{"style":975},[7798],{"type":854,"value":1056},{"type":849,"tag":922,"props":7800,"children":7801},{"style":981},[7802],{"type":854,"value":6133},{"type":849,"tag":922,"props":7804,"children":7805},{"style":935},[7806],{"type":854,"value":6138},{"type":849,"tag":922,"props":7808,"children":7809},{"style":975},[7810],{"type":854,"value":1327},{"type":854,"value":1001},{"type":849,"tag":922,"props":7813,"children":7814},{"class":924,"style":925},[7815],{"type":849,"tag":922,"props":7816,"children":7817},{"style":975},[7818],{"type":854,"value":6151},{"type":854,"value":1001},{"type":849,"tag":922,"props":7821,"children":7822},{"class":924,"style":925},[7823,7827,7831,7835,7839,7843,7847,7851,7855,7859,7863,7867,7871,7875],{"type":849,"tag":922,"props":7824,"children":7825},{"style":941},[7826],{"type":854,"value":1460},{"type":849,"tag":922,"props":7828,"children":7829},{"style":1267},[7830],{"type":854,"value":6528},{"type":849,"tag":922,"props":7832,"children":7833},{"style":975},[7834],{"type":854,"value":1275},{"type":849,"tag":922,"props":7836,"children":7837},{"style":969},[7838],{"type":854,"value":1973},{"type":849,"tag":922,"props":7840,"children":7841},{"style":929},[7842],{"type":854,"value":6551},{"type":849,"tag":922,"props":7844,"children":7845},{"style":975},[7846],{"type":854,"value":1302},{"type":849,"tag":922,"props":7848,"children":7849},{"style":981},[7850],{"type":854,"value":1522},{"type":849,"tag":922,"props":7852,"children":7853},{"style":975},[7854],{"type":854,"value":1056},{"type":849,"tag":922,"props":7856,"children":7857},{"style":935},[7858],{"type":854,"value":1995},{"type":849,"tag":922,"props":7860,"children":7861},{"style":975},[7862],{"type":854,"value":6572},{"type":849,"tag":922,"props":7864,"children":7865},{"style":935},[7866],{"type":854,"value":6577},{"type":849,"tag":922,"props":7868,"children":7869},{"style":975},[7870],{"type":854,"value":1056},{"type":849,"tag":922,"props":7872,"children":7873},{"style":935},[7874],{"type":854,"value":7304},{"type":849,"tag":922,"props":7876,"children":7877},{"style":975},[7878],{"type":854,"value":7879},"])",{"type":854,"value":1001},{"type":849,"tag":922,"props":7882,"children":7883},{"class":924,"style":925},[7884,7888,7892,7896,7900,7904,7908,7912,7916,7920],{"type":849,"tag":922,"props":7885,"children":7886},{"style":941},[7887],{"type":854,"value":1460},{"type":849,"tag":922,"props":7889,"children":7890},{"style":1267},[7891],{"type":854,"value":1964},{"type":849,"tag":922,"props":7893,"children":7894},{"style":975},[7895],{"type":854,"value":1275},{"type":849,"tag":922,"props":7897,"children":7898},{"style":969},[7899],{"type":854,"value":1973},{"type":849,"tag":922,"props":7901,"children":7902},{"style":929},[7903],{"type":854,"value":1978},{"type":849,"tag":922,"props":7905,"children":7906},{"style":975},[7907],{"type":854,"value":1302},{"type":849,"tag":922,"props":7909,"children":7910},{"style":981},[7911],{"type":854,"value":1522},{"type":849,"tag":922,"props":7913,"children":7914},{"style":975},[7915],{"type":854,"value":1056},{"type":849,"tag":922,"props":7917,"children":7918},{"style":935},[7919],{"type":854,"value":1995},{"type":849,"tag":922,"props":7921,"children":7922},{"style":975},[7923],{"type":854,"value":1413},{"type":854,"value":1001},{"type":849,"tag":922,"props":7926,"children":7927},{"class":924,"style":925},[],{"type":854,"value":1001},{"type":849,"tag":922,"props":7930,"children":7931},{"class":924,"style":925},[7932,7936,7941,7945,7949,7954,7958,7962,7966,7970,7974,7978,7982,7986,7990,7994],{"type":849,"tag":922,"props":7933,"children":7934},{"style":941},[7935],{"type":854,"value":1460},{"type":849,"tag":922,"props":7937,"children":7938},{"style":1267},[7939],{"type":854,"value":7940}," asked",{"type":849,"tag":922,"props":7942,"children":7943},{"style":975},[7944],{"type":854,"value":1275},{"type":849,"tag":922,"props":7946,"children":7947},{"style":969},[7948],{"type":854,"value":1973},{"type":849,"tag":922,"props":7950,"children":7951},{"style":929},[7952],{"type":854,"value":7953}," callTool",{"type":849,"tag":922,"props":7955,"children":7956},{"style":975},[7957],{"type":854,"value":1302},{"type":849,"tag":922,"props":7959,"children":7960},{"style":981},[7961],{"type":854,"value":1522},{"type":849,"tag":922,"props":7963,"children":7964},{"style":975},[7965],{"type":854,"value":1056},{"type":849,"tag":922,"props":7967,"children":7968},{"style":981},[7969],{"type":854,"value":3069},{"type":849,"tag":922,"props":7971,"children":7972},{"style":975},[7973],{"type":854,"value":1056},{"type":849,"tag":922,"props":7975,"children":7976},{"style":981},[7977],{"type":854,"value":3748},{"type":849,"tag":922,"props":7979,"children":7980},{"style":975},[7981],{"type":854,"value":1056},{"type":849,"tag":922,"props":7983,"children":7984},{"style":935},[7985],{"type":854,"value":3757},{"type":849,"tag":922,"props":7987,"children":7988},{"style":975},[7989],{"type":854,"value":1312},{"type":849,"tag":922,"props":7991,"children":7992},{"style":981},[7993],{"type":854,"value":3519},{"type":849,"tag":922,"props":7995,"children":7996},{"style":975},[7997],{"type":854,"value":1327},{"type":854,"value":1001},{"type":849,"tag":922,"props":8000,"children":8001},{"class":924,"style":925},[8002,8007,8011,8016,8020,8025,8030,8035,8039,8044,8048,8052,8056,8061],{"type":849,"tag":922,"props":8003,"children":8004},{"style":969},[8005],{"type":854,"value":8006},"  if",{"type":849,"tag":922,"props":8008,"children":8009},{"style":975},[8010],{"type":854,"value":1810},{"type":849,"tag":922,"props":8012,"children":8013},{"style":981},[8014],{"type":854,"value":8015},"asked",{"type":849,"tag":922,"props":8017,"children":8018},{"style":975},[8019],{"type":854,"value":899},{"type":849,"tag":922,"props":8021,"children":8022},{"style":981},[8023],{"type":854,"value":8024},"status",{"type":849,"tag":922,"props":8026,"children":8027},{"style":975},[8028],{"type":854,"value":8029}," !== ",{"type":849,"tag":922,"props":8031,"children":8032},{"style":935},[8033],{"type":854,"value":8034},"'needs_approval'",{"type":849,"tag":922,"props":8036,"children":8037},{"style":975},[8038],{"type":854,"value":4042},{"type":849,"tag":922,"props":8040,"children":8041},{"style":969},[8042],{"type":854,"value":8043},"throw",{"type":849,"tag":922,"props":8045,"children":8046},{"style":941},[8047],{"type":854,"value":5665},{"type":849,"tag":922,"props":8049,"children":8050},{"style":929},[8051],{"type":854,"value":5670},{"type":849,"tag":922,"props":8053,"children":8054},{"style":975},[8055],{"type":854,"value":1302},{"type":849,"tag":922,"props":8057,"children":8058},{"style":935},[8059],{"type":854,"value":8060},"'The archive did not wait for a person.'",{"type":849,"tag":922,"props":8062,"children":8063},{"style":975},[8064],{"type":854,"value":1413},{"type":854,"value":1001},{"type":849,"tag":922,"props":8067,"children":8068},{"class":924,"style":925},[8069,8073,8077,8081,8085,8090,8094,8098,8102,8107],{"type":849,"tag":922,"props":8070,"children":8071},{"style":929},[8072],{"type":854,"value":2375},{"type":849,"tag":922,"props":8074,"children":8075},{"style":975},[8076],{"type":854,"value":1302},{"type":849,"tag":922,"props":8078,"children":8079},{"style":981},[8080],{"type":854,"value":8015},{"type":849,"tag":922,"props":8082,"children":8083},{"style":975},[8084],{"type":854,"value":899},{"type":849,"tag":922,"props":8086,"children":8087},{"style":981},[8088],{"type":854,"value":8089},"summary",{"type":849,"tag":922,"props":8091,"children":8092},{"style":975},[8093],{"type":854,"value":4230},{"type":849,"tag":922,"props":8095,"children":8096},{"style":929},[8097],{"type":854,"value":4276},{"type":849,"tag":922,"props":8099,"children":8100},{"style":975},[8101],{"type":854,"value":1302},{"type":849,"tag":922,"props":8103,"children":8104},{"style":935},[8105],{"type":854,"value":8106},"'Archive the project \"Roadmap\".'",{"type":849,"tag":922,"props":8108,"children":8109},{"style":975},[8110],{"type":854,"value":1413},{"type":854,"value":1001},{"type":849,"tag":922,"props":8113,"children":8114},{"class":924,"style":925},[8115,8119,8123,8127,8131,8135,8139,8143,8147,8151,8155,8159,8163,8167,8171,8175,8179,8183,8187,8191,8195,8199,8203,8207,8211],{"type":849,"tag":922,"props":8116,"children":8117},{"style":969},[8118],{"type":854,"value":1911},{"type":849,"tag":922,"props":8120,"children":8121},{"style":929},[8122],{"type":854,"value":4192},{"type":849,"tag":922,"props":8124,"children":8125},{"style":975},[8126],{"type":854,"value":1302},{"type":849,"tag":922,"props":8128,"children":8129},{"style":981},[8130],{"type":854,"value":1522},{"type":849,"tag":922,"props":8132,"children":8133},{"style":975},[8134],{"type":854,"value":899},{"type":849,"tag":922,"props":8136,"children":8137},{"style":929},[8138],{"type":854,"value":5808},{"type":849,"tag":922,"props":8140,"children":8141},{"style":975},[8142],{"type":854,"value":6318},{"type":849,"tag":922,"props":8144,"children":8145},{"style":981},[8146],{"type":854,"value":5825},{"type":849,"tag":922,"props":8148,"children":8149},{"style":975},[8150],{"type":854,"value":4042},{"type":849,"tag":922,"props":8152,"children":8153},{"style":941},[8154],{"type":854,"value":2323},{"type":849,"tag":922,"props":8156,"children":8157},{"style":981},[8158],{"type":854,"value":5864},{"type":849,"tag":922,"props":8160,"children":8161},{"style":975},[8162],{"type":854,"value":899},{"type":849,"tag":922,"props":8164,"children":8165},{"style":981},[8166],{"type":854,"value":5873},{"type":849,"tag":922,"props":8168,"children":8169},{"style":975},[8170],{"type":854,"value":899},{"type":849,"tag":922,"props":8172,"children":8173},{"style":929},[8174],{"type":854,"value":6351},{"type":849,"tag":922,"props":8176,"children":8177},{"style":975},[8178],{"type":854,"value":1302},{"type":849,"tag":922,"props":8180,"children":8181},{"style":981},[8182],{"type":854,"value":3519},{"type":849,"tag":922,"props":8184,"children":8185},{"style":975},[8186],{"type":854,"value":6364},{"type":849,"tag":922,"props":8188,"children":8189},{"style":981},[8190],{"type":854,"value":4267},{"type":849,"tag":922,"props":8192,"children":8193},{"style":975},[8194],{"type":854,"value":899},{"type":849,"tag":922,"props":8196,"children":8197},{"style":929},[8198],{"type":854,"value":6377},{"type":849,"tag":922,"props":8200,"children":8201},{"style":975},[8202],{"type":854,"value":2843},{"type":849,"tag":922,"props":8204,"children":8205},{"style":981},[8206],{"type":854,"value":6133},{"type":849,"tag":922,"props":8208,"children":8209},{"style":935},[8210],{"type":854,"value":6138},{"type":849,"tag":922,"props":8212,"children":8213},{"style":975},[8214],{"type":854,"value":1327},{"type":854,"value":1001},{"type":849,"tag":922,"props":8217,"children":8218},{"class":924,"style":925},[],{"type":854,"value":1001},{"type":849,"tag":922,"props":8221,"children":8222},{"class":924,"style":925},[8223,8227,8231,8235,8239,8243,8247,8251,8255,8259,8264,8268,8273,8277,8282,8286,8290,8295,8299,8303,8307,8311],{"type":849,"tag":922,"props":8224,"children":8225},{"style":969},[8226],{"type":854,"value":1911},{"type":849,"tag":922,"props":8228,"children":8229},{"style":929},[8230],{"type":854,"value":4192},{"type":849,"tag":922,"props":8232,"children":8233},{"style":975},[8234],{"type":854,"value":1302},{"type":849,"tag":922,"props":8236,"children":8237},{"style":981},[8238],{"type":854,"value":1658},{"type":849,"tag":922,"props":8240,"children":8241},{"style":975},[8242],{"type":854,"value":899},{"type":849,"tag":922,"props":8244,"children":8245},{"style":929},[8246],{"type":854,"value":2134},{"type":849,"tag":922,"props":8248,"children":8249},{"style":975},[8250],{"type":854,"value":1302},{"type":849,"tag":922,"props":8252,"children":8253},{"style":981},[8254],{"type":854,"value":3441},{"type":849,"tag":922,"props":8256,"children":8257},{"style":975},[8258],{"type":854,"value":899},{"type":849,"tag":922,"props":8260,"children":8261},{"style":981},[8262],{"type":854,"value":8263},"agents",{"type":849,"tag":922,"props":8265,"children":8266},{"style":975},[8267],{"type":854,"value":899},{"type":849,"tag":922,"props":8269,"children":8270},{"style":981},[8271],{"type":854,"value":8272},"approve",{"type":849,"tag":922,"props":8274,"children":8275},{"style":975},[8276],{"type":854,"value":1312},{"type":849,"tag":922,"props":8278,"children":8279},{"style":981},[8280],{"type":854,"value":8281},"approvalId:",{"type":849,"tag":922,"props":8283,"children":8284},{"style":981},[8285],{"type":854,"value":7940},{"type":849,"tag":922,"props":8287,"children":8288},{"style":975},[8289],{"type":854,"value":899},{"type":849,"tag":922,"props":8291,"children":8292},{"style":981},[8293],{"type":854,"value":8294},"approvalId",{"type":849,"tag":922,"props":8296,"children":8297},{"style":975},[8298],{"type":854,"value":2410},{"type":849,"tag":922,"props":8300,"children":8301},{"style":981},[8302],{"type":854,"value":4267},{"type":849,"tag":922,"props":8304,"children":8305},{"style":975},[8306],{"type":854,"value":899},{"type":849,"tag":922,"props":8308,"children":8309},{"style":929},[8310],{"type":854,"value":2415},{"type":849,"tag":922,"props":8312,"children":8313},{"style":975},[8314],{"type":854,"value":1302},{"type":854,"value":1001},{"type":849,"tag":922,"props":8317,"children":8318},{"class":924,"style":925},[8319,8323,8327,8332],{"type":849,"tag":922,"props":8320,"children":8321},{"style":975},[8322],{"type":854,"value":7198},{"type":849,"tag":922,"props":8324,"children":8325},{"style":981},[8326],{"type":854,"value":6133},{"type":849,"tag":922,"props":8328,"children":8329},{"style":935},[8330],{"type":854,"value":8331}," 'approved'",{"type":849,"tag":922,"props":8333,"children":8334},{"style":975},[8335],{"type":854,"value":4826},{"type":854,"value":1001},{"type":849,"tag":922,"props":8338,"children":8339},{"class":924,"style":925},[8340],{"type":849,"tag":922,"props":8341,"children":8342},{"style":975},[8343],{"type":854,"value":4844},{"type":854,"value":1001},{"type":849,"tag":922,"props":8346,"children":8347},{"class":924,"style":925},[8348,8352,8356,8360,8364,8368,8372,8376,8380,8384,8388,8392,8396,8400,8404,8408,8412,8416,8420,8424,8428,8432],{"type":849,"tag":922,"props":8349,"children":8350},{"style":969},[8351],{"type":854,"value":1911},{"type":849,"tag":922,"props":8353,"children":8354},{"style":929},[8355],{"type":854,"value":4192},{"type":849,"tag":922,"props":8357,"children":8358},{"style":975},[8359],{"type":854,"value":1302},{"type":849,"tag":922,"props":8361,"children":8362},{"style":981},[8363],{"type":854,"value":1522},{"type":849,"tag":922,"props":8365,"children":8366},{"style":975},[8367],{"type":854,"value":899},{"type":849,"tag":922,"props":8369,"children":8370},{"style":929},[8371],{"type":854,"value":5808},{"type":849,"tag":922,"props":8373,"children":8374},{"style":975},[8375],{"type":854,"value":6318},{"type":849,"tag":922,"props":8377,"children":8378},{"style":981},[8379],{"type":854,"value":5825},{"type":849,"tag":922,"props":8381,"children":8382},{"style":975},[8383],{"type":854,"value":4042},{"type":849,"tag":922,"props":8385,"children":8386},{"style":941},[8387],{"type":854,"value":2323},{"type":849,"tag":922,"props":8389,"children":8390},{"style":981},[8391],{"type":854,"value":5864},{"type":849,"tag":922,"props":8393,"children":8394},{"style":975},[8395],{"type":854,"value":899},{"type":849,"tag":922,"props":8397,"children":8398},{"style":981},[8399],{"type":854,"value":5873},{"type":849,"tag":922,"props":8401,"children":8402},{"style":975},[8403],{"type":854,"value":899},{"type":849,"tag":922,"props":8405,"children":8406},{"style":929},[8407],{"type":854,"value":6351},{"type":849,"tag":922,"props":8409,"children":8410},{"style":975},[8411],{"type":854,"value":1302},{"type":849,"tag":922,"props":8413,"children":8414},{"style":981},[8415],{"type":854,"value":3519},{"type":849,"tag":922,"props":8417,"children":8418},{"style":975},[8419],{"type":854,"value":6364},{"type":849,"tag":922,"props":8421,"children":8422},{"style":981},[8423],{"type":854,"value":4267},{"type":849,"tag":922,"props":8425,"children":8426},{"style":975},[8427],{"type":854,"value":899},{"type":849,"tag":922,"props":8429,"children":8430},{"style":929},[8431],{"type":854,"value":6377},{"type":849,"tag":922,"props":8433,"children":8434},{"style":975},[8435],{"type":854,"value":1028},{"type":854,"value":1001},{"type":849,"tag":922,"props":8438,"children":8439},{"class":924,"style":925},[8440,8445,8450],{"type":849,"tag":922,"props":8441,"children":8442},{"style":981},[8443],{"type":854,"value":8444},"    status:",{"type":849,"tag":922,"props":8446,"children":8447},{"style":935},[8448],{"type":854,"value":8449}," 'archived'",{"type":849,"tag":922,"props":8451,"children":8452},{"style":975},[8453],{"type":854,"value":4784},{"type":854,"value":1001},{"type":849,"tag":922,"props":8456,"children":8457},{"class":924,"style":925},[8458],{"type":849,"tag":922,"props":8459,"children":8460},{"style":975},[8461],{"type":854,"value":6151},{"type":854,"value":1001},{"type":849,"tag":922,"props":8464,"children":8465},{"class":924,"style":925},[8466],{"type":849,"tag":922,"props":8467,"children":8468},{"style":975},[8469],{"type":854,"value":1085},{"type":849,"tag":850,"props":8471,"children":8472},{},[8473,8478,8480,8489,8491,8496],{"type":849,"tag":2915,"props":8474,"children":8475},{},[8476],{"type":854,"value":8477},"Who may approve.",{"type":854,"value":8479}," A table of people who try to approve another person's\nagent request, with the result for each. The starter's\n",{"type":849,"tag":877,"props":8481,"children":8483},{"href":8482},"https:\u002F\u002Fgithub.com\u002Flupinum-dev\u002Fbetter-convex\u002Fblob\u002Fmain\u002Fstarters\u002Fmcp-oauth-agent\u002Fconvex\u002Fagents.test.ts",[8484],{"type":849,"tag":857,"props":8485,"children":8486},{},[8487],{"type":854,"value":8488},"convex\u002Fagents.test.ts",{"type":854,"value":8490},"\nlets owners and admins decide (",{"type":849,"tag":857,"props":8492,"children":8493},{},[8494],{"type":854,"value":8495},"approvers: { 'projects.archive': ['owner', 'admin'] }",{"type":854,"value":8497},"):",{"type":849,"tag":912,"props":8499,"children":8500},{"language":957,"class":915},[8501],{"type":849,"tag":857,"props":8502,"children":8503},{"class":962},[8504,8523,8524,8567,8568,8609,8610,8652,8653,8693,8694,8735,8736,8776,8777,8857,8858,8866,8867,8903,8904,8912,8913,9004,9005,9017,9018,9062,9063,9070,9071],{"type":849,"tag":922,"props":8505,"children":8506},{"class":924,"style":925},[8507,8511,8515,8519],{"type":849,"tag":922,"props":8508,"children":8509},{"style":981},[8510],{"type":854,"value":3974},{"type":849,"tag":922,"props":8512,"children":8513},{"style":975},[8514],{"type":854,"value":899},{"type":849,"tag":922,"props":8516,"children":8517},{"style":929},[8518],{"type":854,"value":3983},{"type":849,"tag":922,"props":8520,"children":8521},{"style":975},[8522],{"type":854,"value":7189},{"type":854,"value":1001},{"type":849,"tag":922,"props":8525,"children":8526},{"class":924,"style":925},[8527,8531,8536,8540,8545,8549,8554,8558,8563],{"type":849,"tag":922,"props":8528,"children":8529},{"style":975},[8530],{"type":854,"value":3842},{"type":849,"tag":922,"props":8532,"children":8533},{"style":935},[8534],{"type":854,"value":8535},"'an owner'",{"type":849,"tag":922,"props":8537,"children":8538},{"style":975},[8539],{"type":854,"value":1056},{"type":849,"tag":922,"props":8541,"children":8542},{"style":935},[8543],{"type":854,"value":8544},"'approved'",{"type":849,"tag":922,"props":8546,"children":8547},{"style":975},[8548],{"type":854,"value":1056},{"type":849,"tag":922,"props":8550,"children":8551},{"style":935},[8552],{"type":854,"value":8553},"'owner'",{"type":849,"tag":922,"props":8555,"children":8556},{"style":975},[8557],{"type":854,"value":1056},{"type":849,"tag":922,"props":8559,"children":8560},{"style":935},[8561],{"type":854,"value":8562},"'active'",{"type":849,"tag":922,"props":8564,"children":8565},{"style":975},[8566],{"type":854,"value":3870},{"type":854,"value":1001},{"type":849,"tag":922,"props":8569,"children":8570},{"class":924,"style":925},[8571,8575,8580,8584,8588,8592,8597,8601,8605],{"type":849,"tag":922,"props":8572,"children":8573},{"style":975},[8574],{"type":854,"value":3842},{"type":849,"tag":922,"props":8576,"children":8577},{"style":935},[8578],{"type":854,"value":8579},"'an admin'",{"type":849,"tag":922,"props":8581,"children":8582},{"style":975},[8583],{"type":854,"value":1056},{"type":849,"tag":922,"props":8585,"children":8586},{"style":935},[8587],{"type":854,"value":8544},{"type":849,"tag":922,"props":8589,"children":8590},{"style":975},[8591],{"type":854,"value":1056},{"type":849,"tag":922,"props":8593,"children":8594},{"style":935},[8595],{"type":854,"value":8596},"'admin'",{"type":849,"tag":922,"props":8598,"children":8599},{"style":975},[8600],{"type":854,"value":1056},{"type":849,"tag":922,"props":8602,"children":8603},{"style":935},[8604],{"type":854,"value":8562},{"type":849,"tag":922,"props":8606,"children":8607},{"style":975},[8608],{"type":854,"value":3870},{"type":854,"value":1001},{"type":849,"tag":922,"props":8611,"children":8612},{"class":924,"style":925},[8613,8617,8622,8626,8631,8635,8640,8644,8648],{"type":849,"tag":922,"props":8614,"children":8615},{"style":975},[8616],{"type":854,"value":3842},{"type":849,"tag":922,"props":8618,"children":8619},{"style":935},[8620],{"type":854,"value":8621},"'a member'",{"type":849,"tag":922,"props":8623,"children":8624},{"style":975},[8625],{"type":854,"value":1056},{"type":849,"tag":922,"props":8627,"children":8628},{"style":935},[8629],{"type":854,"value":8630},"'APPROVAL_NOT_FOUND'",{"type":849,"tag":922,"props":8632,"children":8633},{"style":975},[8634],{"type":854,"value":1056},{"type":849,"tag":922,"props":8636,"children":8637},{"style":935},[8638],{"type":854,"value":8639},"'member'",{"type":849,"tag":922,"props":8641,"children":8642},{"style":975},[8643],{"type":854,"value":1056},{"type":849,"tag":922,"props":8645,"children":8646},{"style":935},[8647],{"type":854,"value":8562},{"type":849,"tag":922,"props":8649,"children":8650},{"style":975},[8651],{"type":854,"value":3870},{"type":854,"value":1001},{"type":849,"tag":922,"props":8654,"children":8655},{"class":924,"style":925},[8656,8660,8665,8669,8673,8677,8681,8685,8689],{"type":849,"tag":922,"props":8657,"children":8658},{"style":975},[8659],{"type":854,"value":3842},{"type":849,"tag":922,"props":8661,"children":8662},{"style":935},[8663],{"type":854,"value":8664},"'a viewer'",{"type":849,"tag":922,"props":8666,"children":8667},{"style":975},[8668],{"type":854,"value":1056},{"type":849,"tag":922,"props":8670,"children":8671},{"style":935},[8672],{"type":854,"value":8630},{"type":849,"tag":922,"props":8674,"children":8675},{"style":975},[8676],{"type":854,"value":1056},{"type":849,"tag":922,"props":8678,"children":8679},{"style":935},[8680],{"type":854,"value":3916},{"type":849,"tag":922,"props":8682,"children":8683},{"style":975},[8684],{"type":854,"value":1056},{"type":849,"tag":922,"props":8686,"children":8687},{"style":935},[8688],{"type":854,"value":8562},{"type":849,"tag":922,"props":8690,"children":8691},{"style":975},[8692],{"type":854,"value":3870},{"type":854,"value":1001},{"type":849,"tag":922,"props":8695,"children":8696},{"class":924,"style":925},[8697,8701,8706,8710,8714,8718,8722,8726,8731],{"type":849,"tag":922,"props":8698,"children":8699},{"style":975},[8700],{"type":854,"value":3842},{"type":849,"tag":922,"props":8702,"children":8703},{"style":935},[8704],{"type":854,"value":8705},"'a former admin'",{"type":849,"tag":922,"props":8707,"children":8708},{"style":975},[8709],{"type":854,"value":1056},{"type":849,"tag":922,"props":8711,"children":8712},{"style":935},[8713],{"type":854,"value":8630},{"type":849,"tag":922,"props":8715,"children":8716},{"style":975},[8717],{"type":854,"value":1056},{"type":849,"tag":922,"props":8719,"children":8720},{"style":935},[8721],{"type":854,"value":8596},{"type":849,"tag":922,"props":8723,"children":8724},{"style":975},[8725],{"type":854,"value":1056},{"type":849,"tag":922,"props":8727,"children":8728},{"style":935},[8729],{"type":854,"value":8730},"'removed'",{"type":849,"tag":922,"props":8732,"children":8733},{"style":975},[8734],{"type":854,"value":3870},{"type":854,"value":1001},{"type":849,"tag":922,"props":8737,"children":8738},{"class":924,"style":925},[8739,8743,8748,8752,8756,8760,8764,8768,8772],{"type":849,"tag":922,"props":8740,"children":8741},{"style":975},[8742],{"type":854,"value":3842},{"type":849,"tag":922,"props":8744,"children":8745},{"style":935},[8746],{"type":854,"value":8747},"'a stranger'",{"type":849,"tag":922,"props":8749,"children":8750},{"style":975},[8751],{"type":854,"value":1056},{"type":849,"tag":922,"props":8753,"children":8754},{"style":935},[8755],{"type":854,"value":8630},{"type":849,"tag":922,"props":8757,"children":8758},{"style":975},[8759],{"type":854,"value":1056},{"type":849,"tag":922,"props":8761,"children":8762},{"style":941},[8763],{"type":854,"value":6752},{"type":849,"tag":922,"props":8765,"children":8766},{"style":975},[8767],{"type":854,"value":1056},{"type":849,"tag":922,"props":8769,"children":8770},{"style":941},[8771],{"type":854,"value":6752},{"type":849,"tag":922,"props":8773,"children":8774},{"style":975},[8775],{"type":854,"value":3870},{"type":854,"value":1001},{"type":849,"tag":922,"props":8778,"children":8779},{"class":924,"style":925},[8780,8785,8790,8794,8798,8803,8807,8811,8815,8820,8824,8828,8832,8837,8841,8845,8849,8853],{"type":849,"tag":922,"props":8781,"children":8782},{"style":975},[8783],{"type":854,"value":8784},"] ",{"type":849,"tag":922,"props":8786,"children":8787},{"style":969},[8788],{"type":854,"value":8789},"as",{"type":849,"tag":922,"props":8791,"children":8792},{"style":941},[8793],{"type":854,"value":1264},{"type":849,"tag":922,"props":8795,"children":8796},{"style":975},[8797],{"type":854,"value":3997},{"type":849,"tag":922,"props":8799,"children":8800},{"style":935},[8801],{"type":854,"value":8802},"'%s who approves gets %s'",{"type":849,"tag":922,"props":8804,"children":8805},{"style":975},[8806],{"type":854,"value":1056},{"type":849,"tag":922,"props":8808,"children":8809},{"style":941},[8810],{"type":854,"value":2313},{"type":849,"tag":922,"props":8812,"children":8813},{"style":975},[8814],{"type":854,"value":1810},{"type":849,"tag":922,"props":8816,"children":8817},{"style":981},[8818],{"type":854,"value":8819},"_name",{"type":849,"tag":922,"props":8821,"children":8822},{"style":975},[8823],{"type":854,"value":1056},{"type":849,"tag":922,"props":8825,"children":8826},{"style":981},[8827],{"type":854,"value":4037},{"type":849,"tag":922,"props":8829,"children":8830},{"style":975},[8831],{"type":854,"value":1056},{"type":849,"tag":922,"props":8833,"children":8834},{"style":981},[8835],{"type":854,"value":8836},"role",{"type":849,"tag":922,"props":8838,"children":8839},{"style":975},[8840],{"type":854,"value":1056},{"type":849,"tag":922,"props":8842,"children":8843},{"style":981},[8844],{"type":854,"value":8024},{"type":849,"tag":922,"props":8846,"children":8847},{"style":975},[8848],{"type":854,"value":4042},{"type":849,"tag":922,"props":8850,"children":8851},{"style":941},[8852],{"type":854,"value":2323},{"type":849,"tag":922,"props":8854,"children":8855},{"style":975},[8856],{"type":854,"value":2328},{"type":854,"value":1001},{"type":849,"tag":922,"props":8859,"children":8860},{"class":924,"style":925},[8861],{"type":849,"tag":922,"props":8862,"children":8863},{"style":1098},[8864],{"type":854,"value":8865},"  \u002F\u002F … Ann's agent asks to archive; Pat, with this role, tries to approve it.",{"type":854,"value":1001},{"type":849,"tag":922,"props":8868,"children":8869},{"class":924,"style":925},[8870,8874,8878,8883,8887,8891,8895,8899],{"type":849,"tag":922,"props":8871,"children":8872},{"style":929},[8873],{"type":854,"value":2375},{"type":849,"tag":922,"props":8875,"children":8876},{"style":975},[8877],{"type":854,"value":1302},{"type":849,"tag":922,"props":8879,"children":8880},{"style":981},[8881],{"type":854,"value":8882},"outcome",{"type":849,"tag":922,"props":8884,"children":8885},{"style":975},[8886],{"type":854,"value":4230},{"type":849,"tag":922,"props":8888,"children":8889},{"style":929},[8890],{"type":854,"value":4276},{"type":849,"tag":922,"props":8892,"children":8893},{"style":975},[8894],{"type":854,"value":1302},{"type":849,"tag":922,"props":8896,"children":8897},{"style":981},[8898],{"type":854,"value":4037},{"type":849,"tag":922,"props":8900,"children":8901},{"style":975},[8902],{"type":854,"value":1413},{"type":854,"value":1001},{"type":849,"tag":922,"props":8905,"children":8906},{"class":924,"style":925},[8907],{"type":849,"tag":922,"props":8908,"children":8909},{"style":1098},[8910],{"type":854,"value":8911},"  \u002F\u002F A refused approval leaves the project as it was.",{"type":854,"value":1001},{"type":849,"tag":922,"props":8914,"children":8915},{"class":924,"style":925},[8916,8920,8924,8928,8932,8936,8940,8944,8948,8952,8956,8960,8964,8968,8972,8976,8980,8984,8988,8992,8996,9000],{"type":849,"tag":922,"props":8917,"children":8918},{"style":969},[8919],{"type":854,"value":1911},{"type":849,"tag":922,"props":8921,"children":8922},{"style":929},[8923],{"type":854,"value":4192},{"type":849,"tag":922,"props":8925,"children":8926},{"style":975},[8927],{"type":854,"value":1302},{"type":849,"tag":922,"props":8929,"children":8930},{"style":981},[8931],{"type":854,"value":1522},{"type":849,"tag":922,"props":8933,"children":8934},{"style":975},[8935],{"type":854,"value":899},{"type":849,"tag":922,"props":8937,"children":8938},{"style":929},[8939],{"type":854,"value":5808},{"type":849,"tag":922,"props":8941,"children":8942},{"style":975},[8943],{"type":854,"value":6318},{"type":849,"tag":922,"props":8945,"children":8946},{"style":981},[8947],{"type":854,"value":5825},{"type":849,"tag":922,"props":8949,"children":8950},{"style":975},[8951],{"type":854,"value":4042},{"type":849,"tag":922,"props":8953,"children":8954},{"style":941},[8955],{"type":854,"value":2323},{"type":849,"tag":922,"props":8957,"children":8958},{"style":981},[8959],{"type":854,"value":5864},{"type":849,"tag":922,"props":8961,"children":8962},{"style":975},[8963],{"type":854,"value":899},{"type":849,"tag":922,"props":8965,"children":8966},{"style":981},[8967],{"type":854,"value":5873},{"type":849,"tag":922,"props":8969,"children":8970},{"style":975},[8971],{"type":854,"value":899},{"type":849,"tag":922,"props":8973,"children":8974},{"style":929},[8975],{"type":854,"value":6351},{"type":849,"tag":922,"props":8977,"children":8978},{"style":975},[8979],{"type":854,"value":1302},{"type":849,"tag":922,"props":8981,"children":8982},{"style":981},[8983],{"type":854,"value":3519},{"type":849,"tag":922,"props":8985,"children":8986},{"style":975},[8987],{"type":854,"value":6364},{"type":849,"tag":922,"props":8989,"children":8990},{"style":981},[8991],{"type":854,"value":4267},{"type":849,"tag":922,"props":8993,"children":8994},{"style":975},[8995],{"type":854,"value":899},{"type":849,"tag":922,"props":8997,"children":8998},{"style":929},[8999],{"type":854,"value":6377},{"type":849,"tag":922,"props":9001,"children":9002},{"style":975},[9003],{"type":854,"value":1028},{"type":854,"value":1001},{"type":849,"tag":922,"props":9006,"children":9007},{"class":924,"style":925},[9008,9013],{"type":849,"tag":922,"props":9009,"children":9010},{"style":981},[9011],{"type":854,"value":9012},"    organizationId",{"type":849,"tag":922,"props":9014,"children":9015},{"style":975},[9016],{"type":854,"value":4784},{"type":854,"value":1001},{"type":849,"tag":922,"props":9019,"children":9020},{"class":924,"style":925},[9021,9025,9030,9035,9039,9044,9049,9054,9058],{"type":849,"tag":922,"props":9022,"children":9023},{"style":981},[9024],{"type":854,"value":8444},{"type":849,"tag":922,"props":9026,"children":9027},{"style":981},[9028],{"type":854,"value":9029}," expected",{"type":849,"tag":922,"props":9031,"children":9032},{"style":975},[9033],{"type":854,"value":9034}," === ",{"type":849,"tag":922,"props":9036,"children":9037},{"style":935},[9038],{"type":854,"value":8544},{"type":849,"tag":922,"props":9040,"children":9041},{"style":975},[9042],{"type":854,"value":9043}," ? ",{"type":849,"tag":922,"props":9045,"children":9046},{"style":935},[9047],{"type":854,"value":9048},"'archived'",{"type":849,"tag":922,"props":9050,"children":9051},{"style":975},[9052],{"type":854,"value":9053}," : ",{"type":849,"tag":922,"props":9055,"children":9056},{"style":935},[9057],{"type":854,"value":8562},{"type":849,"tag":922,"props":9059,"children":9060},{"style":975},[9061],{"type":854,"value":4784},{"type":854,"value":1001},{"type":849,"tag":922,"props":9064,"children":9065},{"class":924,"style":925},[9066],{"type":849,"tag":922,"props":9067,"children":9068},{"style":975},[9069],{"type":854,"value":6151},{"type":854,"value":1001},{"type":849,"tag":922,"props":9072,"children":9073},{"class":924,"style":925},[9074],{"type":849,"tag":922,"props":9075,"children":9076},{"style":975},[9077],{"type":854,"value":1085},{"type":849,"tag":850,"props":9079,"children":9080},{},[9081,9083,9088,9090,9095,9097,9101,9102,9106],{"type":854,"value":9082},"A principal with fewer scopes stands for an access token with fewer scopes:\n",{"type":849,"tag":857,"props":9084,"children":9085},{},[9086],{"type":854,"value":9087},"grantMcp(t, 'ann', ['projects:read'])",{"type":854,"value":9089},". The starter's\n",{"type":849,"tag":857,"props":9091,"children":9092},{},[9093],{"type":854,"value":9094},"convex\u002Fauthorization.test.ts",{"type":854,"value":9096}," uses ",{"type":849,"tag":857,"props":9098,"children":9099},{},[9100],{"type":854,"value":6434},{"type":854,"value":1560},{"type":849,"tag":857,"props":9103,"children":9104},{},[9105],{"type":854,"value":3267},{"type":854,"value":9107}," to check that\neach tool call stops after the app suspends the person or removes the\nmembership.",{"title":9109,"searchDepth":9110,"depth":9110,"links":9111},"",4,[9112,9118,9119,9120,9121,9122,9123],{"id":903,"depth":9113,"text":9114,"children":9115},2,"Set up convex-test",[9116],{"id":2071,"depth":9117,"text":2074},3,{"id":2115,"depth":9113,"text":2118},{"id":2530,"depth":9113,"text":2533},{"id":3105,"depth":9113,"text":3108},{"id":4560,"depth":9113,"text":4563},{"id":4959,"depth":9113,"text":4962},{"id":6672,"depth":9113,"text":437},"markdown","docs",{"source":9127,"path":9128,"stem":9129,"dir":9130,"extension":9131},"content","docs\u002F3.build\u002F8.functions\u002F5.testing.md","docs\u002F3.build\u002F8.functions\u002F5.testing","functions","md",{"requestedPath":520,"resolvedPath":520,"alternates":9133},[],{"requested":9135,"resolved":9136,"usedFallback":6},{},{"locale":8},{"previous":9138,"next":9140},{"title":508,"id":509,"canonicalKey":510,"locale":8,"draft":6,"navigation":9139,"icon":512,"path":513},{"icon":512},{"title":522,"id":523,"canonicalKey":524,"locale":8,"draft":6,"navigation":9141,"icon":177,"path":526},{"icon":177},{"left":9143,"top":9143,"width":9144,"height":9144,"rotate":9143,"vFlip":6,"hFlip":6,"body":9145},0,24,"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M12 19h8M4 17l6-6l-6-6\"\u002F>",{"left":9143,"top":9143,"width":9147,"height":9147,"rotate":9143,"vFlip":6,"hFlip":6,"body":9148},256,"\u003Cpath fill=\"#3178c6\" d=\"M20 0h216c11.046 0 20 8.954 20 20v216c0 11.046-8.954 20-20 20H20c-11.046 0-20-8.954-20-20V20C0 8.954 8.954 0 20 0\"\u002F>\u003Cpath fill=\"#fff\" d=\"M150.518 200.475v27.62q6.738 3.453 15.938 5.179T185.849 235q9.934 0 18.874-1.899t15.678-6.257q6.738-4.359 10.669-11.394q3.93-7.033 3.93-17.391q0-7.51-2.246-13.163a30.8 30.8 0 0 0-6.479-10.055q-4.232-4.402-10.149-7.898t-13.347-6.602q-5.442-2.245-9.761-4.359t-7.342-4.316q-3.024-2.2-4.665-4.661t-1.641-5.567q0-2.848 1.468-5.135q1.469-2.288 4.147-3.927t6.565-2.547q3.887-.906 8.638-.906q3.456 0 7.299.518q3.844.517 7.732 1.597a54 54 0 0 1 7.558 2.719a41.7 41.7 0 0 1 6.781 3.797v-25.807q-6.306-2.417-13.778-3.582T198.633 107q-9.847 0-18.658 2.115q-8.811 2.114-15.506 6.602q-6.694 4.49-10.582 11.437Q150 134.102 150 143.769q0 12.342 7.127 21.06t21.638 14.759a292 292 0 0 1 10.625 4.575q4.924 2.244 8.509 4.66t5.658 5.265t2.073 6.474a9.9 9.9 0 0 1-1.296 4.963q-1.295 2.287-3.93 3.97t-6.565 2.632t-9.2.95q-8.983 0-17.794-3.151t-16.327-9.451m-46.036-68.733H140V109H41v22.742h35.345V233h28.137z\"\u002F>",{"left":9143,"top":9143,"width":9144,"height":9144,"rotate":9143,"vFlip":6,"hFlip":6,"body":9150},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Crect width=\"8\" height=\"4\" x=\"8\" y=\"2\" rx=\"1\" ry=\"1\"\u002F>\u003Cpath d=\"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2\"\u002F>\u003C\u002Fg>",1794905509524]