[{"data":1,"prerenderedAt":6856},["ShallowReactive",2],{"docs-navigation:en":3,"docs-page:en:\u002Fbuild-with-ai\u002Fstudio-llm-guide":2044},[4,11,55,133,208,294,380,441,559,596,1209,1277,1309,1425,1494,1530,1553,1596,1636,1672,1715,1764,1916,1960,1998],{"title":5,"path":6,"stem":7,"icon":8,"status":9,"description":10},"Xuda documentation","\u002F","index","book-open","verified","The manual for everything in your Xuda dashboard: every module, the AI workspace, your settings and your deployments.",{"title":12,"icon":13,"status":14,"description":15,"path":16,"stem":17,"children":18,"page":54},"Get started","rocket","draft",null,"\u002Fget-started","1.get-started",[19,25,31,37,43,48],{"title":20,"path":21,"stem":22,"icon":23,"status":9,"description":24},"What is Xuda","\u002Fget-started\u002Fwhat-is-xuda","1.get-started\u002F1.what-is-xuda","sparkles","Xuda is one account that builds, deploys, and runs your apps, from a chat prompt to a live URL.",{"title":26,"path":27,"stem":28,"icon":29,"status":9,"description":30},"Create a free account","\u002Fget-started\u002Fcreate-a-free-account","1.get-started\u002F2.create-a-free-account","user-plus","Sign up for Xuda with an email and password, Google, or GitHub, and get one account that follows you everywhere.",{"title":32,"path":33,"stem":34,"icon":35,"status":9,"description":36},"Dashboard tour","\u002Fget-started\u002Fdashboard-tour","1.get-started\u002F3.dashboard-tour","layout-dashboard","A first look at the Xuda dashboard, your account's home for AI work, apps, files, billing, and support.",{"title":38,"path":39,"stem":40,"icon":41,"status":9,"description":42},"Your first app in Studio","\u002Fget-started\u002Ffirst-app-in-studio","1.get-started\u002F4.first-app-in-studio","blocks","Build the smallest useful app in Studio, one table and one screen, either from a prompt or by hand.",{"title":44,"path":45,"stem":46,"icon":13,"status":9,"description":47},"Your first deploy","\u002Fget-started\u002Ffirst-deploy","1.get-started\u002F5.first-deploy","Turn a Studio project into a shareable link with a Preview deployment.",{"title":49,"path":50,"stem":51,"icon":52,"status":9,"description":53},"Choose your path","\u002Fget-started\u002Fchoose-your-path","1.get-started\u002F6.choose-your-path","compass","Five ways to build with Xuda, from the visual editor to talking to the API directly.",false,{"title":56,"icon":57,"status":14,"description":15,"path":58,"stem":59,"children":60,"page":54},"API guides","plug","\u002Fapi","2.api",[61,67,73,79,85,91,97,103,109,115,121,127],{"title":62,"path":63,"stem":64,"icon":65,"status":9,"description":66},"Overview","\u002Fapi\u002Foverview","2.api\u002F1.overview","layout-panel-top","One endpoint, one response envelope, and the 337 methods an API key can reach.",{"title":68,"path":69,"stem":70,"icon":71,"status":9,"description":72},"Authentication","\u002Fapi\u002Fauthentication","2.api\u002F2.authentication","key-round","Account API keys, full versus custom access, and where to create one.",{"title":74,"path":75,"stem":76,"icon":77,"status":9,"description":78},"Calling a method","\u002Fapi\u002Fcalling-a-method","2.api\u002F3.calling-a-method","terminal","POST or GET, body versus query string, and what the field validator expects.",{"title":80,"path":81,"stem":82,"icon":83,"status":9,"description":84},"MCP","\u002Fapi\u002Fmcp","2.api\u002F4.mcp","bot","The same API key, exposed to an AI agent as one typed tool per allowed method.",{"title":86,"path":87,"stem":88,"icon":89,"status":9,"description":90},"Errors","\u002Fapi\u002Ferrors","2.api\u002F5.errors","octagon-alert","What a negative code means, and how it maps to the HTTP status you actually see.",{"title":92,"path":93,"stem":94,"icon":95,"status":9,"description":96},"AI Workspace","\u002Fapi\u002Fai-workspace","2.api\u002F8.ai-workspace","messages-square","Chats, AI agents, mini apps, contacts and sharing, over the API and over MCP.",{"title":98,"path":99,"stem":100,"icon":101,"status":9,"description":102},"Cloud Hosting","\u002Fapi\u002Fcloud-hosting","2.api\u002F12.cloud-hosting","server","Price a server, place it in a region, and read back what is running.",{"title":104,"path":105,"stem":106,"icon":107,"status":9,"description":108},"Development Platform","\u002Fapi\u002Fdevelopment-platform","2.api\u002F14.development-platform","code-xml","Create a project, author its Studio programs, read and write its tables, ship a release.",{"title":110,"path":111,"stem":112,"icon":113,"status":9,"description":114},"External VPS","\u002Fapi\u002Fexternal-vps","2.api\u002F16.external-vps","cable","Connect a Linux server you already own, and drive its files, SSH access and services.",{"title":116,"path":117,"stem":118,"icon":119,"status":14,"description":120},"Full Stack VPS","\u002Fapi\u002Ffull-stack-vps","2.api\u002F18.full-stack-vps","server-cog","A VPS that provisions with its own scoped API key, ready for your code, the CLI and AI agents.",{"title":122,"path":123,"stem":124,"icon":125,"status":9,"description":126},"JavaScript Framework","\u002Fapi\u002Fjavascript-framework","2.api\u002F19.javascript-framework","file-code","The runtime, the CLI, and the five app data methods they share with an API key.",{"title":128,"path":129,"stem":130,"icon":131,"status":9,"description":132},"On-Prem","\u002Fapi\u002Fon-prem","2.api\u002F21.on-prem","building-2","What is programmable around a sales-led on-prem engagement, and how it is delivered.",{"title":134,"icon":135,"status":14,"description":15,"path":136,"stem":137,"children":138,"page":54},"Studio","layout-panel-left","\u002Fstudio","3.studio",[139,144,150,155,161,167,173,179,185,191,197,203],{"title":140,"path":141,"stem":142,"icon":135,"status":9,"description":143},"Studio overview","\u002Fstudio\u002Foverview","3.studio\u002F1.overview","The project editor's five working areas and the tree of building blocks every Xuda app is made from.",{"title":145,"path":146,"stem":147,"icon":148,"status":9,"description":149},"Starting a project","\u002Fstudio\u002Fstarting-a-project","3.studio\u002F2.starting-a-project","folder-plus","How a new Xuda project begins today, describe it to the AI, or pick Empty project, Draft or Template.",{"title":151,"path":152,"stem":153,"icon":113,"status":9,"description":154},"Component datasource","\u002Fstudio\u002Fcomponent-datasource","3.studio\u002F3.component-datasource","Where a component, Get Data or Set Data program gets its records from, a table, a list, JSON, Csv, or none at all.",{"title":156,"path":157,"stem":158,"icon":159,"status":9,"description":160},"Component fields","\u002Fstudio\u002Fcomponent-fields","3.studio\u002F4.component-fields","form-input","The named pieces of information a component can show, edit, calculate, or pass to a workflow.",{"title":162,"path":163,"stem":164,"icon":165,"status":9,"description":166},"Component UI tab","\u002Fstudio\u002Fcomponent-ui","3.studio\u002F5.component-ui","layout-grid","Where a component's visible screen gets built, what a user sees, how it's arranged, and how it reacts.",{"title":168,"path":169,"stem":170,"icon":171,"status":9,"description":172},"Element properties","\u002Fstudio\u002Felement-properties","3.studio\u002F6.element-properties","sliders-horizontal","The panel that opens when you select one exact part of a screen, a button, input, card, or container.",{"title":174,"path":175,"stem":176,"icon":177,"status":9,"description":178},"Component events","\u002Fstudio\u002Fcomponent-events","3.studio\u002F7.component-events","zap","The event types a component can react to, and what each one is for.",{"title":180,"path":181,"stem":182,"icon":183,"status":9,"description":184},"Events, Workflow","\u002Fstudio\u002Fevents-workflow","3.studio\u002F8.events-workflow","workflow","The full Add Action catalog behind every event, grouped by purpose, and what the runtime actually supports.",{"title":186,"path":187,"stem":188,"icon":189,"status":9,"description":190},"Live preview and console","\u002Fstudio\u002Flive-preview-console","3.studio\u002F9.live-preview-console","monitor-play","Run a component as a real session and inspect it, instead of only editing it as a canvas.",{"title":192,"path":193,"stem":194,"icon":195,"status":9,"description":196},"Globals in Studio","\u002Fstudio\u002Fglobals","3.studio\u002F10.globals","globe","The Fields and Events tabs behind Globals, the one shared program every project has exactly one of.",{"title":198,"path":199,"stem":200,"icon":201,"status":9,"description":202},"Component tree options","\u002Fstudio\u002Fcomponent-tree-options","3.studio\u002F11.component-tree-options","folder-tree","Every option in the menu that opens when you right-click a component in the Studio project tree.",{"title":204,"path":205,"stem":206,"icon":83,"status":9,"description":207},"The AI App Builder","\u002Fstudio\u002Fai-app-builder","3.studio\u002F12.ai-app-builder","The chat panel underneath the inspector, describe what you want, scope it, and watch it apply changes.",{"title":209,"icon":41,"status":14,"description":15,"path":210,"stem":211,"children":212,"page":54},"Building blocks","\u002Fbuilding-blocks","4.building-blocks",[213,218,224,229,235,241,247,253,258,264,270,276,282,288],{"title":214,"path":215,"stem":216,"icon":195,"status":9,"description":217},"Globals","\u002Fbuilding-blocks\u002Fglobals","4.building-blocks\u002F1.globals","The one program every other program can read from, for state and logic that belongs to the whole app instead of one screen.",{"title":219,"path":220,"stem":221,"icon":222,"status":9,"description":223},"Table","\u002Fbuilding-blocks\u002Ftable","4.building-blocks\u002F2.table","table","The definition of one data entity, its columns and its indexes, stored through a pluggable database driver.",{"title":225,"path":226,"stem":227,"icon":113,"status":9,"description":228},"Datasource","\u002Fbuilding-blocks\u002Fdatasource","4.building-blocks\u002F3.datasource","The shared binding shape that tells a program or a component where its data comes from and how to filter it.",{"title":230,"path":231,"stem":232,"icon":233,"status":9,"description":234},"Get Data","\u002Fbuilding-blocks\u002Fget-data","4.building-blocks\u002F4.get-data","download","A saved, callable query that reads records through a datasource and hands them back to whoever called it.",{"title":236,"path":237,"stem":238,"icon":239,"status":9,"description":240},"Set Data","\u002Fbuilding-blocks\u002Fset-data","4.building-blocks\u002F5.set-data","upload","A saved write, create, update or delete, one record at a time, with events to validate and react around it.",{"title":242,"path":243,"stem":244,"icon":245,"status":9,"description":246},"Batch","\u002Fbuilding-blocks\u002Fbatch","4.building-blocks\u002F6.batch","layers","One callable program that orchestrates several steps, a multi-part procedure with one id to call it by.",{"title":248,"path":249,"stem":250,"icon":251,"status":9,"description":252},"Component","\u002Fbuilding-blocks\u002Fcomponent","4.building-blocks\u002F7.component","component","The unit of UI, an element tree bound to local state, data and the workflow logic that wires it together.",{"title":254,"path":255,"stem":256,"icon":183,"status":9,"description":257},"Workflow","\u002Fbuilding-blocks\u002Fworkflow","4.building-blocks\u002F8.workflow","The shared step language embedded in every program and every element, an ordered array of actions.",{"title":259,"path":260,"stem":261,"icon":262,"status":9,"description":263},"JavaScript","\u002Fbuilding-blocks\u002Fjavascript","4.building-blocks\u002F9.javascript","code-2","Real JS source, compiled on save, for logic that a declarative program cannot express.",{"title":265,"path":266,"stem":267,"icon":268,"status":9,"description":269},"API","\u002Fbuilding-blocks\u002Fapi","4.building-blocks\u002F10.api","webhook","A callable endpoint of the project, internal through call_project_api or external through the api\u002Fmcp endpoint.",{"title":271,"path":272,"stem":273,"icon":274,"status":9,"description":275},"Alert","\u002Fbuilding-blocks\u002Falert","4.building-blocks\u002F11.alert","triangle-alert","A reusable message, title, body, severity and display surface, called by id from anywhere in the project.",{"title":277,"path":278,"stem":279,"icon":280,"status":9,"description":281},"Route","\u002Fbuilding-blocks\u002Froute","4.building-blocks\u002F12.route","route","A navigable entry point, a menu of destinations, each pointing at the component that provides its content.",{"title":283,"path":284,"stem":285,"icon":286,"status":9,"description":287},"Folder","\u002Fbuilding-blocks\u002Ffolder","4.building-blocks\u002F13.folder","folder","A non-executable tree container that organizes programs and tables into a navigable namespace.",{"title":289,"path":290,"stem":291,"icon":292,"status":9,"description":293},"Commerce","\u002Fbuilding-blocks\u002Fcommerce","4.building-blocks\u002F14.commerce","shopping-cart","A catalog, a cart and a checkout that live on your own website, with every order priced and confirmed on the server.",{"title":295,"icon":35,"status":14,"description":15,"path":296,"stem":297,"children":298,"page":54},"Dashboard","\u002Fdashboard","5.dashboard",[299,304,309,315,321,327,333,339,345,351,357,363,368,374],{"title":300,"path":301,"stem":302,"icon":35,"status":9,"description":303},"Dashboard overview","\u002Fdashboard\u002Foverview","5.dashboard\u002F1.overview","The account workspace, the project page, and the two ways to start a new project.",{"title":305,"path":306,"stem":307,"icon":23,"status":9,"description":308},"The Overview tab","\u002Fdashboard\u002Fproject-overview","5.dashboard\u002F2.project-overview","The project's AI chat, opening over its status, traffic, and quick-action cards.",{"title":310,"path":311,"stem":312,"icon":313,"status":9,"description":314},"Analytics","\u002Fdashboard\u002Fanalytics","5.dashboard\u002F3.analytics","chart-no-axes-column","Traffic, visitors, and audience breakdowns for the project, over a date range you choose.",{"title":316,"path":317,"stem":318,"icon":319,"status":9,"description":320},"Drive","\u002Fdashboard\u002Fdrive","5.dashboard\u002F4.drive","hard-drive","The project's files, browse, upload, organize, and recover them from trash.",{"title":322,"path":323,"stem":324,"icon":325,"status":9,"description":326},"Plugins","\u002Fdashboard\u002Fplugins","5.dashboard\u002F5.plugins","puzzle","Add, build, and manage the capabilities installed into the project.",{"title":328,"path":329,"stem":330,"icon":331,"status":9,"description":332},"Dependencies","\u002Fdashboard\u002Fdependencies","5.dashboard\u002F6.dependencies","package","The npm packages a project uses, checked live against the npm registry.",{"title":334,"path":335,"stem":336,"icon":337,"status":9,"description":338},"Backups","\u002Fdashboard\u002Fbackups","5.dashboard\u002F7.backups","archive","Backup history, on-demand backups, and an automatic backup schedule.",{"title":340,"path":341,"stem":342,"icon":343,"status":9,"description":344},"Version control","\u002Fdashboard\u002Fversion-control","5.dashboard\u002F8.version-control","git-branch","Builds and releases, create one, review what changed, and see where each is deployed.",{"title":346,"path":347,"stem":348,"icon":349,"status":9,"description":350},"User Assist","\u002Fdashboard\u002Fuser-assist","5.dashboard\u002F9.user-assist","life-buoy","Live visitor activity on a map, and session tools to see or help what a user sees.",{"title":352,"path":353,"stem":354,"icon":355,"status":9,"description":356},"Data","\u002Fdashboard\u002Fdata","5.dashboard\u002F10.data","database","The tables defined in Studio, opened from the dashboard side.",{"title":358,"path":359,"stem":360,"icon":361,"status":9,"description":362},"Logs","\u002Fdashboard\u002Flogs","5.dashboard\u002F11.logs","scroll-text","Every action and request logged for the project, filterable and exportable.",{"title":265,"path":364,"stem":365,"icon":366,"status":9,"description":367},"\u002Fdashboard\u002Fapi","5.dashboard\u002F12.api","waypoints","This project's API activity, keys, and request log, in one suite.",{"title":369,"path":370,"stem":371,"icon":372,"status":9,"description":373},"Notifications","\u002Fdashboard\u002Fnotifications","5.dashboard\u002F13.notifications","bell","Every notification sent about the project, and a composer to send your own.",{"title":375,"path":376,"stem":377,"icon":378,"status":9,"description":379},"Advanced","\u002Fdashboard\u002Fadvanced","5.dashboard\u002F14.advanced","settings","Project identity, settings sections, and the danger zone, in one tree.",{"title":381,"icon":165,"status":14,"description":15,"path":382,"stem":383,"children":384,"page":54},"Workspace & account","\u002Fworkspace","6.workspace",[385,390,395,401,407,413,418,423,429,435],{"title":386,"path":387,"stem":388,"icon":23,"status":9,"description":389},"The workspace","\u002Fworkspace\u002Foverview","6.workspace\u002F1.overview","The six tabs, the composer, and the controls that are the same on every tab.",{"title":391,"path":392,"stem":393,"icon":171,"status":9,"description":394},"Account settings","\u002Fworkspace\u002Faccount-settings","6.workspace\u002F7.account-settings","The account-level controls that follow you everywhere, not a project's own settings.",{"title":396,"path":397,"stem":398,"icon":399,"status":9,"description":400},"Your account profile","\u002Fworkspace\u002Faccount-profile","6.workspace\u002F40.account-profile","circle-user-round","The identity, industry and contact details behind your account, on its own page.",{"title":402,"path":403,"stem":404,"icon":405,"status":9,"description":406},"Account memory","\u002Fworkspace\u002Faccount-memory","6.workspace\u002F41.account-memory","brain","What the AI has learned about your account, loaded into every conversation you have.",{"title":408,"path":409,"stem":410,"icon":411,"status":9,"description":412},"Usage report","\u002Fworkspace\u002Fusage-report","6.workspace\u002F43.usage-report","gauge","Your AI credit balance for this billing period, and where it went across profiles and members.",{"title":414,"path":415,"stem":416,"icon":165,"status":9,"description":417},"All items","\u002Fworkspace\u002Fall-items","6.workspace\u002F60.all-items","Every project, server, and app in your account, in one filterable grid.",{"title":419,"path":420,"stem":421,"icon":77,"status":9,"description":422},"Developers","\u002Fworkspace\u002Fdevelopers","6.workspace\u002F61.developers","The account's own API surface: traffic at a glance, the keys that unlock it, and every request it has answered.",{"title":424,"path":425,"stem":426,"icon":427,"status":14,"description":428},"The Create menu","\u002Fworkspace\u002Fcreate-menu","6.workspace\u002F63.create-menu","circle-plus","Every starting point the Create button offers, grouped by what you are making.",{"title":430,"path":431,"stem":432,"icon":433,"status":9,"description":434},"Notifications inbox","\u002Fworkspace\u002Fnotifications-inbox","6.workspace\u002F64.notifications-inbox","bell-ring","Every notification sent to your account, in one place, separate from a single project's own outgoing log.",{"title":436,"path":437,"stem":438,"icon":439,"status":9,"description":440},"What's new","\u002Fworkspace\u002Fwhats-new","6.workspace\u002F65.whats-new","gift","Every release, newest first, and which one you are currently running.",{"title":442,"icon":443,"status":14,"description":15,"path":444,"stem":445,"children":446,"page":54},"Deploy","cloud-upload","\u002Fdeploy","7.deploy",[447,452,491,524],{"title":448,"path":449,"stem":450,"icon":13,"status":9,"description":451},"Deploy overview","\u002Fdeploy\u002Foverview","7.deploy\u002F1.overview","Turn a project into a link, an embed, an API, a scheduled job or an installable app, all from one wizard.",{"title":453,"icon":195,"status":14,"description":15,"path":454,"stem":455,"children":456,"page":54},"Web","\u002Fdeploy\u002Fweb","7.deploy\u002F2.web",[457,463,468,474,480,485],{"title":458,"path":459,"stem":460,"icon":461,"status":9,"description":462},"Preview","\u002Fdeploy\u002Fweb\u002Fpreview","7.deploy\u002F2.web\u002F1.preview","eye","Deploy a shareable link that simulates the app in a device-like frame, for review before it goes live.",{"title":464,"path":465,"stem":466,"icon":65,"status":9,"description":467},"SPA","\u002Fdeploy\u002Fweb\u002Fspa","7.deploy\u002F2.web\u002F2.spa","Deploy a standalone URL for a single-page app, embeddable as a link or an iframe.",{"title":469,"path":470,"stem":471,"icon":472,"status":14,"description":473},"MPA","\u002Fdeploy\u002Fweb\u002Fmpa","7.deploy\u002F2.web\u002F3.mpa","layout-template","Deploy a standalone URL for a multi-page app, embeddable as a link or an iframe.",{"title":475,"path":476,"stem":477,"icon":478,"status":9,"description":479},"PWA","\u002Fdeploy\u002Fweb\u002Fpwa","7.deploy\u002F2.web\u002F4.pwa","smartphone-charging","Build an installable, app-like Progressive Web App with its own manifest.",{"title":481,"path":482,"stem":483,"icon":107,"status":9,"description":484},"Embed","\u002Fdeploy\u002Fweb\u002Fembed","7.deploy\u002F2.web\u002F5.embed","Generate embeddable code that places the app inline on another website.",{"title":486,"path":487,"stem":488,"icon":489,"status":9,"description":490},"User Group","\u002Fdeploy\u002Fweb\u002Fuser-group","7.deploy\u002F2.web\u002F6.user-group","users-round","Deploy a link with sign-in, where only invited, approved or self-registered users get in.",{"title":492,"icon":119,"status":14,"description":15,"path":493,"stem":494,"children":495,"page":54},"Backend","\u002Fdeploy\u002Fbackend","7.deploy\u002F3.backend",[496,501,507,513,518],{"title":265,"path":497,"stem":498,"icon":499,"status":9,"description":500},"\u002Fdeploy\u002Fbackend\u002Fapi","7.deploy\u002F3.backend\u002F1.api","braces","Deploy endpoints another system can call, built from the project's API-style programs.",{"title":502,"path":503,"stem":504,"icon":505,"status":14,"description":506},"Node","\u002Fdeploy\u002Fbackend\u002Fnode","7.deploy\u002F3.backend\u002F2.node","box","Deploy a managed Node.js environment that runs one of the project's JavaScript programs server-side.",{"title":508,"path":509,"stem":510,"icon":511,"status":9,"description":512},"Cron","\u002Fdeploy\u002Fbackend\u002Fcron","7.deploy\u002F3.backend\u002F3.cron","calendar-clock","Schedule server-side jobs, each running a program on its own cron expression.",{"title":514,"path":515,"stem":516,"icon":177,"status":14,"description":517},"Emitter","\u002Fdeploy\u002Fbackend\u002Femitter","7.deploy\u002F3.backend\u002F4.emitter","Deploy triggers that run a batch program when a chosen database table changes.",{"title":519,"path":520,"stem":521,"icon":522,"status":14,"description":523},"MCP Server","\u002Fdeploy\u002Fbackend\u002Fmcp-server","7.deploy\u002F3.backend\u002F5.mcp-server","plug-zap","Deploy a dedicated MCP endpoint built from the project's API-style programs, for AI tool integrations.",{"title":525,"icon":526,"status":14,"description":15,"path":527,"stem":528,"children":529,"page":54},"Native apps","monitor-smartphone","\u002Fdeploy\u002Fnative-apps","7.deploy\u002F4.native-apps",[530,536,542,548,554],{"title":531,"path":532,"stem":533,"icon":534,"status":9,"description":535},"iOS App","\u002Fdeploy\u002Fnative-apps\u002Fios","7.deploy\u002F4.native-apps\u002F1.ios","apple","Package an existing web deployment as a Simulator or App Store build for iPhone and iPad.",{"title":537,"path":538,"stem":539,"icon":540,"status":9,"description":541},"Android App","\u002Fdeploy\u002Fnative-apps\u002Fandroid","7.deploy\u002F4.native-apps\u002F2.android","smartphone","Build an existing web deployment into an Android app, as a file or for Google Play.",{"title":543,"path":544,"stem":545,"icon":546,"status":9,"description":547},"macOS App","\u002Fdeploy\u002Fnative-apps\u002Fmacos","7.deploy\u002F4.native-apps\u002F3.macos","laptop","Package an existing web deployment as a downloadable macOS desktop build.",{"title":549,"path":550,"stem":551,"icon":552,"status":14,"description":553},"Windows App","\u002Fdeploy\u002Fnative-apps\u002Fwindows","7.deploy\u002F4.native-apps\u002F4.windows","app-window","Package an existing web deployment as a Windows desktop build.",{"title":555,"path":556,"stem":557,"icon":77,"status":14,"description":558},"Linux App","\u002Fdeploy\u002Fnative-apps\u002Flinux","7.deploy\u002F4.native-apps\u002F5.linux","Package an existing web deployment as a Linux desktop build.",{"title":560,"icon":101,"status":14,"description":15,"path":561,"stem":562,"children":563,"page":54},"Hosting & infrastructure","\u002Fhosting","8.hosting",[564,569,574,578,582,586,591],{"title":565,"path":566,"stem":567,"icon":52,"status":9,"description":568},"Hosting overview","\u002Fhosting\u002Foverview","8.hosting\u002F1.overview","Compare the ways to run a server or a site on Xuda, and pick the right one before you create anything.",{"title":570,"path":571,"stem":572,"icon":101,"status":9,"description":573},"Create and run a VPS","\u002Fhosting\u002Fvps","8.hosting\u002F2.vps","Build a Linux server on Xuda's own hardware, then power, resize, back up and secure it from its project tabs.",{"title":116,"path":575,"stem":576,"icon":245,"status":14,"description":577},"\u002Fhosting\u002Ffull-stack-vps","8.hosting\u002F3.full-stack-vps","Create a VPS with its own database, a scoped API key and an MCP endpoint, so AI agents and your own code can drive it.",{"title":110,"path":579,"stem":580,"icon":57,"status":9,"description":581},"\u002Fhosting\u002Fexternal-vps","8.hosting\u002F4.external-vps","Connect a Linux server you already own to the Xuda dashboard over SSH, free, with nothing but a public key ever stored.",{"title":128,"path":583,"stem":584,"icon":131,"status":9,"description":585},"\u002Fhosting\u002Fon-prem","8.hosting\u002F5.on-prem","Run the Xuda platform stack on infrastructure you control, installed and updated by Xuda engineers under contract.",{"title":587,"path":588,"stem":589,"icon":195,"status":9,"description":590},"Domains","\u002Fhosting\u002Fdomains","8.hosting\u002F6.domains","Search, buy, transfer and manage a domain's DNS, SSL and analytics from the Xuda dashboard, without a separate registrar login.",{"title":592,"path":593,"stem":594,"icon":552,"status":9,"description":595},"Website","\u002Fhosting\u002Fwebsite","8.hosting\u002F7.website","Describe a site or upload one, and Xuda hosts it with versioned publishing, instant rollback and your own domain.",{"title":597,"path":598,"stem":599,"children":600,"icon":1208,"status":14,"description":15},"Business modules","\u002Fmodules","9.modules\u002F1.index",[601,603,621,639,657,675,693,711,729,747,765,783,801,819,837,854,872,890,908,924,940,958,976,994,1011,1029,1047,1064,1082,1100,1118,1136,1154,1172,1190],{"title":597,"path":598,"stem":599,"icon":165,"status":9,"description":602},"The products you can switch on in your Xuda account, from a store to a phone line.",{"title":289,"path":604,"stem":605,"children":606,"icon":608,"status":9,"description":609},"\u002Fmodules\u002Fcommerce","9.modules\u002F2.commerce\u002F1.index",[607,610,615],{"title":289,"path":604,"stem":605,"icon":608,"status":9,"description":609},"mark-commerce","Run a shop for a store: its catalog, stock, checkout, orders, customers and marketing, with the cart on a Xuda site or on a site of your own.",{"title":611,"path":612,"stem":613,"icon":499,"status":9,"description":614},"Commerce API","\u002Fmodules\u002Fcommerce\u002Fapi","9.modules\u002F2.commerce\u002F2.api","What can be done with Commerce from code today: the cart and checkout on a website of your own.",{"title":616,"path":617,"stem":618,"icon":619,"status":9,"description":620},"Commerce plans and billing","\u002Fmodules\u002Fcommerce\u002Fplans","9.modules\u002F2.commerce\u002F3.plans","credit-card","The plans by products, discount codes and what Xuda takes of a card payment, what counts toward each limit and how a change of plan is billed.",{"title":622,"path":623,"stem":624,"children":625,"icon":627,"status":9,"description":628},"Finance","\u002Fmodules\u002Ffinance","9.modules\u002F3.finance\u002F1.index",[626,629,634],{"title":622,"path":623,"stem":624,"icon":627,"status":9,"description":628},"mark-finance","Ask your customers for money and get paid into your own Stripe account or Cardcom terminal, with your money, customers, products and tax in one place.",{"title":630,"path":631,"stem":632,"icon":499,"status":9,"description":633},"Finance API","\u002Fmodules\u002Ffinance\u002Fapi","9.modules\u002F3.finance\u002F2.api","What can be done with Finance from code today.",{"title":635,"path":636,"stem":637,"icon":619,"status":9,"description":638},"Finance plans and billing","\u002Fmodules\u002Ffinance\u002Fplans","9.modules\u002F3.finance\u002F3.plans","The four Finance plans by accounts and what each unlocks, what counts toward the limit and how a change of plan is billed.",{"title":640,"path":641,"stem":642,"children":643,"icon":645,"status":9,"description":646},"Shipping","\u002Fmodules\u002Fshipping","9.modules\u002F4.shipping\u002F1.index",[644,647,652],{"title":640,"path":641,"stem":642,"icon":645,"status":9,"description":646},"mark-shipping","Compare live carrier prices, book a label and follow every delivery, paid from a prepaid wallet at what the carrier charges.",{"title":648,"path":649,"stem":650,"icon":499,"status":9,"description":651},"Shipping API","\u002Fmodules\u002Fshipping\u002Fapi","9.modules\u002F4.shipping\u002F2.api","What can be done with Shipping from code today.",{"title":653,"path":654,"stem":655,"icon":619,"status":9,"description":656},"Shipping plans and billing","\u002Fmodules\u002Fshipping\u002Fplans","9.modules\u002F4.shipping\u002F3.plans","The plans by deliveries a month and rate lookups, what counts toward each limit and how a change of plan is billed.",{"title":658,"path":659,"stem":660,"children":661,"icon":663,"status":9,"description":664},"Phone","\u002Fmodules\u002Fphone","9.modules\u002F5.phone\u002F1.index",[662,665,670],{"title":658,"path":659,"stem":660,"icon":663,"status":9,"description":664},"mark-profile_phone","Rent a business number, decide how it answers, and call or text from the browser.",{"title":666,"path":667,"stem":668,"icon":499,"status":9,"description":669},"Phone API","\u002Fmodules\u002Fphone\u002Fapi","9.modules\u002F5.phone\u002F2.api","Rent numbers, set how each one answers, place calls and texts, and read usage from your own code.",{"title":671,"path":672,"stem":673,"icon":619,"status":9,"description":674},"Phone plans and billing","\u002Fmodules\u002Fphone\u002Fplans","9.modules\u002F5.phone\u002F3.plans","The four Phone plans, what a number costs, what counts toward a limit and how a change of plan is billed.",{"title":676,"path":677,"stem":678,"children":679,"icon":681,"status":9,"description":682},"Trust Center","\u002Fmodules\u002Ftrust-center","9.modules\u002F7.trust-center\u002F1.index",[680,683,688],{"title":676,"path":677,"stem":678,"icon":681,"status":9,"description":682},"mark-trust_center","Verify the people who sign up to your own business: send a link, follow every result, and set the mode, webhook and domain once.",{"title":684,"path":685,"stem":686,"icon":499,"status":9,"description":687},"Trust Center API","\u002Fmodules\u002Ftrust-center\u002Fapi","9.modules\u002F7.trust-center\u002F2.api","Open a verification session for one of your users, read it back, and list your sessions, from your own code with your API key.",{"title":689,"path":690,"stem":691,"icon":619,"status":9,"description":692},"Trust Center plans and billing","\u002Fmodules\u002Ftrust-center\u002Fplans","9.modules\u002F7.trust-center\u002F3.plans","The plans by live verifications a month, the highest level and what each adds, and how a change of plan is billed.",{"title":694,"path":695,"stem":696,"children":697,"icon":699,"status":9,"description":700},"Marketplace","\u002Fmodules\u002Fmarketplace","9.modules\u002F8.marketplace\u002F1.index",[698,701,706],{"title":694,"path":695,"stem":696,"icon":699,"status":9,"description":700},"mark-marketplace","Sell an app you built to other people on Xuda, and manage what you sell: each buyer gets their own private copy and the money lands in your own account.",{"title":702,"path":703,"stem":704,"icon":499,"status":9,"description":705},"Marketplace API","\u002Fmodules\u002Fmarketplace\u002Fapi","9.modules\u002F8.marketplace\u002F2.api","Browse the plugin catalogue, install or remove a plugin, upload a plugin's own listing, and read the install consent, from code.",{"title":707,"path":708,"stem":709,"icon":619,"status":9,"description":710},"Marketplace plans and billing","\u002Fmodules\u002Fmarketplace\u002Fplans","9.modules\u002F8.marketplace\u002F3.plans","The four seller plans by listings on sale and the share Xuda keeps of each sale, what counts toward the limit, and how a change of plan is billed.",{"title":712,"path":713,"stem":714,"children":715,"icon":717,"status":9,"description":718},"Bot Protection","\u002Fmodules\u002Fbot-protection","9.modules\u002F20.bot-protection\u002F1.index",[716,719,724],{"title":712,"path":713,"stem":714,"icon":717,"status":9,"description":718},"mark-bot_protection","The check that keeps bots off your forms, your pages and anything you host with Xuda, set up once per site.",{"title":720,"path":721,"stem":722,"icon":499,"status":9,"description":723},"Bot Protection API","\u002Fmodules\u002Fbot-protection\u002Fapi","9.modules\u002F20.bot-protection\u002F2.api","The embed code by mode, the token it puts in your form, and the one request your server makes to confirm a pass.",{"title":725,"path":726,"stem":727,"icon":619,"status":9,"description":728},"Bot Protection plans and billing","\u002Fmodules\u002Fbot-protection\u002Fplans","9.modules\u002F20.bot-protection\u002F3.plans","The four plans by checks a month, what counts as a check, what happens at a limit, and how a change of plan is billed.",{"title":730,"path":731,"stem":732,"children":733,"icon":735,"status":9,"description":736},"Campaigns","\u002Fmodules\u002Fcampaigns","9.modules\u002F23.campaigns\u002F1.index",[734,737,742],{"title":730,"path":731,"stem":732,"icon":735,"status":9,"description":736},"mark-advertising","Brief an ad in plain terms and Xuda writes it, runs it on Google Ads and Meta Ads in its own accounts, and brings the results back to one page.",{"title":738,"path":739,"stem":740,"icon":499,"status":9,"description":741},"Campaigns API","\u002Fmodules\u002Fcampaigns\u002Fapi","9.modules\u002F23.campaigns\u002F2.api","Read the ad networks, generate ad copy, send a campaign to its networks, switch it on or off and pull its numbers, from your own code.",{"title":743,"path":744,"stem":745,"icon":619,"status":9,"description":746},"Campaigns plans and billing","\u002Fmodules\u002Fcampaigns\u002Fplans","9.modules\u002F23.campaigns\u002F3.plans","The four plans by automation fee, how a campaign is charged, what pauses it, and how a change of plan is billed.",{"title":748,"path":749,"stem":750,"children":751,"icon":753,"status":9,"description":754},"Calendar","\u002Fmodules\u002Fcalendar","9.modules\u002F40.calendar\u002F1.index",[752,755,760],{"title":748,"path":749,"stem":750,"icon":753,"status":9,"description":754},"mark-calendar","Publish a booking page, take appointments through it, and run your whole schedule from one calendar.",{"title":756,"path":757,"stem":758,"icon":499,"status":9,"description":759},"Calendar API","\u002Fmodules\u002Fcalendar\u002Fapi","9.modules\u002F40.calendar\u002F2.api","Read and set up your calendar, list bookings, hold and confirm a time, cancel, and the calls a booking page makes, from your own code.",{"title":761,"path":762,"stem":763,"icon":619,"status":9,"description":764},"Calendar plans and billing","\u002Fmodules\u002Fcalendar\u002Fplans","9.modules\u002F40.calendar\u002F3.plans","The plans on sale, what each adds, what counts toward a limit, what happens when you reach one, and how a change of plan is billed.",{"title":766,"path":767,"stem":768,"children":769,"icon":771,"status":9,"description":772},"Meet","\u002Fmodules\u002Fmeet","9.modules\u002F41.meet\u002F1.index",[770,773,778],{"title":766,"path":767,"stem":768,"icon":771,"status":9,"description":772},"mark-meet","Video meetings on links that stay yours, with recordings, a transcript and a recap, and an Assistant that can take your calls.",{"title":774,"path":775,"stem":776,"icon":499,"status":9,"description":777},"Meet API","\u002Fmodules\u002Fmeet\u002Fapi","9.modules\u002F41.meet\u002F2.api","What can be done with Meet from code today: look up the room behind a public meeting link, and make the room of a video booking.",{"title":779,"path":780,"stem":781,"icon":619,"status":9,"description":782},"Meet plans and billing","\u002Fmodules\u002Fmeet\u002Fplans","9.modules\u002F41.meet\u002F3.plans","The plans by group size, meeting time, recording and what the AI may do, what counts toward a limit, and how a change of plan is billed.",{"title":784,"path":785,"stem":786,"children":787,"icon":789,"status":9,"description":790},"Assist","\u002Fmodules\u002Fassist","9.modules\u002F42.assist\u002F1.index",[788,791,796],{"title":784,"path":785,"stem":786,"icon":789,"status":9,"description":790},"mouse-pointer-click","Help a person on their own screen once they say yes, let someone you trust reach yours, and reach your own computers when nobody is at them.",{"title":792,"path":793,"stem":794,"icon":499,"status":9,"description":795},"Assist API","\u002Fmodules\u002Fassist\u002Fapi","9.modules\u002F42.assist\u002F2.api","What can be done from code with Assist today.",{"title":797,"path":798,"stem":799,"icon":619,"status":9,"description":800},"Assist plans and billing","\u002Fmodules\u002Fassist\u002Fplans","9.modules\u002F42.assist\u002F3.plans","The three plans by how many people may give help, whether they can click and type inside Xuda and whether the AI helps, and how a change of plan is billed.",{"title":802,"path":803,"stem":804,"children":805,"icon":807,"status":9,"description":808},"Reminders","\u002Fmodules\u002Freminders","9.modules\u002F50.reminders\u002F1.index",[806,809,814],{"title":802,"path":803,"stem":804,"icon":807,"status":9,"description":808},"alarm-clock","Ask to be reminded about anything, at a time you choose, and get a notification with a link back to it.",{"title":810,"path":811,"stem":812,"icon":499,"status":9,"description":813},"Reminders API","\u002Fmodules\u002Freminders\u002Fapi","9.modules\u002F50.reminders\u002F2.api","Set, list, change and remove reminders from your own code with the account's API key.",{"title":815,"path":816,"stem":817,"icon":619,"status":9,"description":818},"Reminders plans and billing","\u002Fmodules\u002Freminders\u002Fplans","9.modules\u002F50.reminders\u002F3.plans","The three plans by how many reminders can wait for each person, and how a change of plan is billed.",{"title":820,"path":821,"stem":822,"children":823,"icon":825,"status":9,"description":826},"Activity","\u002Fmodules\u002Factivity","9.modules\u002F51.activity\u002F1.index",[824,827,832],{"title":820,"path":821,"stem":822,"icon":825,"status":9,"description":826},"mark-activity","One feed of everything that happened in your workspace, newest first, as a timeline or as charts.",{"title":828,"path":829,"stem":830,"icon":499,"status":9,"description":831},"Activity API","\u002Fmodules\u002Factivity\u002Fapi","9.modules\u002F51.activity\u002F2.api","What you can read from your own code today, since Activity is a view over other modules.",{"title":833,"path":834,"stem":835,"icon":619,"status":9,"description":836},"Activity plans and billing","\u002Fmodules\u002Factivity\u002Fplans","9.modules\u002F51.activity\u002F3.plans","Activity is free for every workspace, and nothing in it is metered.",{"title":838,"path":839,"stem":840,"children":841,"icon":195,"status":9,"description":843},"WebPilot","\u002Fmodules\u002Fwebpilot","9.modules\u002F52.webpilot\u002F1.index",[842,844,849],{"title":838,"path":839,"stem":840,"icon":195,"status":9,"description":843},"Real browsers your AI drives for you: set a pilot up for one job, give it a task in its chat, or hand it to an AI agent.",{"title":845,"path":846,"stem":847,"icon":499,"status":9,"description":848},"WebPilot API","\u002Fmodules\u002Fwebpilot\u002Fapi","9.modules\u002F52.webpilot\u002F2.api","What can be done with WebPilot from code today.",{"title":850,"path":851,"stem":852,"icon":619,"status":9,"description":853},"WebPilot plans and billing","\u002Fmodules\u002Fwebpilot\u002Fplans","9.modules\u002F52.webpilot\u002F3.plans","The four WebPilot plans, what counts toward a limit, what happens at one, and how a change of plan is billed.",{"title":855,"path":856,"stem":857,"children":858,"icon":860,"status":9,"description":861},"Knowledge","\u002Fmodules\u002Fknowledge","9.modules\u002F54.knowledge\u002F1.index",[859,862,867],{"title":855,"path":856,"stem":857,"icon":860,"status":9,"description":861},"library","Collect files, pages, videos and searches about one subject into a knowledge base, then ask it questions.",{"title":863,"path":864,"stem":865,"icon":499,"status":9,"description":866},"Knowledge API","\u002Fmodules\u002Fknowledge\u002Fapi","9.modules\u002F54.knowledge\u002F2.api","What can be done with Knowledge from code today.",{"title":868,"path":869,"stem":870,"icon":619,"status":9,"description":871},"Knowledge plans and billing","\u002Fmodules\u002Fknowledge\u002Fplans","9.modules\u002F54.knowledge\u002F3.plans","The four Knowledge plans, what counts toward a limit, what happens at one, and how a change of plan is billed.",{"title":873,"path":874,"stem":875,"children":876,"icon":878,"status":9,"description":879},"Portal","\u002Fmodules\u002Fportal","9.modules\u002F56.portal\u002F1.index",[877,880,885],{"title":873,"path":874,"stem":875,"icon":878,"status":9,"description":879},"door-open","Give your customers one link to sign into, with a page you build from widgets, in your own name and colours.",{"title":881,"path":882,"stem":883,"icon":499,"status":9,"description":884},"Portal API","\u002Fmodules\u002Fportal\u002Fapi","9.modules\u002F56.portal\u002F2.api","What can be done with portals from code today.",{"title":886,"path":887,"stem":888,"icon":619,"status":9,"description":889},"Portal plans and billing","\u002Fmodules\u002Fportal\u002Fplans","9.modules\u002F56.portal\u002F3.plans","The four plans by how many portals and widgets they hold, and how a change of plan is billed.",{"title":891,"path":892,"stem":893,"children":894,"icon":896,"status":9,"description":897},"CMS","\u002Fmodules\u002Fcms","9.modules\u002F57.cms\u002F1.index",[895,898,903],{"title":891,"path":892,"stem":893,"icon":896,"status":9,"description":897},"table-2","Define your own tables, fill them in like a sheet, and keep them in the workspace's own database.",{"title":899,"path":900,"stem":901,"icon":499,"status":9,"description":902},"CMS API","\u002Fmodules\u002Fcms\u002Fapi","9.modules\u002F57.cms\u002F2.api","Read and write a CMS table's records from code, and manage its tables.",{"title":904,"path":905,"stem":906,"icon":619,"status":9,"description":907},"CMS plans and billing","\u002Fmodules\u002Fcms\u002Fplans","9.modules\u002F57.cms\u002F3.plans","The three CMS plans, what counts toward a limit, what happens at one, and how a change of plan is billed.",{"title":316,"path":909,"stem":910,"children":911,"icon":319,"status":9,"description":913},"\u002Fmodules\u002Fdrive","9.modules\u002F58.drive\u002F1.index",[912,914,919],{"title":316,"path":909,"stem":910,"icon":319,"status":9,"description":913},"Keep your files and folders in one place, find them fast, preview and edit them, share them, and see how much space you use.",{"title":915,"path":916,"stem":917,"icon":499,"status":9,"description":918},"Drive API","\u002Fmodules\u002Fdrive\u002Fapi","9.modules\u002F58.drive\u002F2.api","List, create, move, star, share, trash and restore your Drive's files and folders from your own code with the account's API key.",{"title":920,"path":921,"stem":922,"icon":619,"status":9,"description":923},"Drive plans and billing","\u002Fmodules\u002Fdrive\u002Fplans","9.modules\u002F58.drive\u002F3.plans","The four Drive plans by the extra storage they add, what counts toward your space, what happens past it and how a change of plan is billed.",{"title":587,"path":925,"stem":926,"children":927,"icon":195,"status":9,"description":929},"\u002Fmodules\u002Fdomains","9.modules\u002F59.domains\u002F1.index",[928,930,935],{"title":587,"path":925,"stem":926,"icon":195,"status":9,"description":929},"Find and buy a domain, connect or move one you already own, and run its DNS, traffic, encryption and owner details from one place.",{"title":931,"path":932,"stem":933,"icon":499,"status":9,"description":934},"Domains API","\u002Fmodules\u002Fdomains\u002Fapi","9.modules\u002F59.domains\u002F2.api","List the domains an account owns and point one of them at a project from your own code, or from an AI agent.",{"title":936,"path":937,"stem":938,"icon":619,"status":9,"description":939},"Domains plans and billing","\u002Fmodules\u002Fdomains\u002Fplans","9.modules\u002F59.domains\u002F3.plans","What a domain costs, how the three Domains plans change Xuda's yearly fee, and how a change of plan is billed.",{"title":941,"path":942,"stem":943,"children":944,"icon":946,"status":9,"description":947},"Emails","\u002Fmodules\u002Femails","9.modules\u002F60.emails\u002F1.index",[945,948,953],{"title":941,"path":942,"stem":943,"icon":946,"status":9,"description":947},"mark-email","Your own mailboxes, a Xuda address or your Gmail or Outlook, read in one place while the AI reads, summarises and files what arrives.",{"title":949,"path":950,"stem":951,"icon":499,"status":9,"description":952},"Emails API","\u002Fmodules\u002Femails\u002Fapi","9.modules\u002F60.emails\u002F2.api","Read and tidy a mailbox's mail, fetch new mail, ask for the AI's notes and disconnect a mailbox from your own code.",{"title":954,"path":955,"stem":956,"icon":619,"status":9,"description":957},"Emails plans and billing","\u002Fmodules\u002Femails\u002Fplans","9.modules\u002F60.emails\u002F3.plans","The four plans by mailboxes and by how many mails the AI reads a minute, what counts toward a limit and how a change of plan is billed.",{"title":959,"path":960,"stem":961,"children":962,"icon":964,"status":9,"description":965},"Mini Apps","\u002Fmodules\u002Fmini-apps","9.modules\u002F61.mini-apps\u002F1.index",[963,966,971],{"title":959,"path":960,"stem":961,"icon":964,"status":9,"description":965},"mark-mini","Small apps you describe in words, which Xuda plans with you, builds on your workspace server and runs right in the dashboard.",{"title":967,"path":968,"stem":969,"icon":499,"status":9,"description":970},"Mini Apps API","\u002Fmodules\u002Fmini-apps\u002Fapi","9.modules\u002F61.mini-apps\u002F2.api","Rename, favorite, pin, archive, delete and share your mini apps from your own code with the account's API key.",{"title":972,"path":973,"stem":974,"icon":619,"status":9,"description":975},"Mini Apps plans and billing","\u002Fmodules\u002Fmini-apps\u002Fplans","9.modules\u002F61.mini-apps\u002F3.plans","The three plans by how many mini apps a workspace holds, what counts toward the limit, what happens at it, and how a change of plan is billed.",{"title":977,"path":978,"stem":979,"children":980,"icon":982,"status":9,"description":983},"Websites","\u002Fmodules\u002Fwebsites","9.modules\u002F62.websites\u002F1.index",[981,984,989],{"title":977,"path":978,"stem":979,"icon":982,"status":9,"description":983},"mark-websites","Every website you run, each with its own address, versions, traffic and hosting plan, made with AI or from your own files.",{"title":985,"path":986,"stem":987,"icon":499,"status":9,"description":988},"Websites API","\u002Fmodules\u002Fwebsites\u002Fapi","9.modules\u002F62.websites\u002F2.api","Read your websites and the image modes your account may use from your own code.",{"title":990,"path":991,"stem":992,"icon":619,"status":9,"description":993},"Websites plans and billing","\u002Fmodules\u002Fwebsites\u002Fplans","9.modules\u002F62.websites\u002F3.plans","The four hosting plans of a website, what counts toward a plan, what happens when a site is over it and how a change of plan is billed.",{"title":995,"path":996,"stem":997,"children":998,"icon":183,"status":9,"description":1000},"Workflows","\u002Fmodules\u002Fworkflows","9.modules\u002F63.workflows\u002F1.index",[999,1001,1006],{"title":995,"path":996,"stem":997,"icon":183,"status":9,"description":1000},"Make work run on its own, on a schedule, when something happens in a module, by hand over the records you pick, or from a webhook.",{"title":1002,"path":1003,"stem":1004,"icon":499,"status":9,"description":1005},"Workflows API","\u002Fmodules\u002Fworkflows\u002Fapi","9.modules\u002F63.workflows\u002F2.api","What can be done with Workflows from code today.",{"title":1007,"path":1008,"stem":1009,"icon":619,"status":9,"description":1010},"Workflows plans and billing","\u002Fmodules\u002Fworkflows\u002Fplans","9.modules\u002F63.workflows\u002F3.plans","The three plans by workflows, runs a month and steps in a workflow, what counts toward each limit and how a change of plan is billed.",{"title":1012,"path":1013,"stem":1014,"children":1015,"icon":1017,"status":9,"description":1018},"Branding","\u002Fmodules\u002Fbranding","9.modules\u002F64.branding\u002F1.index",[1016,1019,1024],{"title":1012,"path":1013,"stem":1014,"icon":1017,"status":9,"description":1018},"mark-branding","Put your logo, your name and your colour on the sign-in screen, the mail you send, your ticket forms and your assistant's page, and see each one as your customers will.",{"title":1020,"path":1021,"stem":1022,"icon":499,"status":9,"description":1023},"Branding API","\u002Fmodules\u002Fbranding\u002Fapi","9.modules\u002F64.branding\u002F2.api","What can be done with Branding from code today, which is reading the sign-in screen an account serves.",{"title":1025,"path":1026,"stem":1027,"icon":619,"status":9,"description":1028},"Branding plans and billing","\u002Fmodules\u002Fbranding\u002Fplans","9.modules\u002F64.branding\u002F3.plans","The four Branding plans, what each switches on, how the people you sponsor are billed by the hour, and how a change of plan is billed.",{"title":1030,"path":1031,"stem":1032,"children":1033,"icon":1035,"status":9,"description":1036},"AI Chats","\u002Fmodules\u002Fai-chats","9.modules\u002F65.ai-chats\u002F1.index",[1034,1037,1042],{"title":1030,"path":1031,"stem":1032,"icon":1035,"status":9,"description":1036},"mark-chats","Ask Xuda's AI for anything in your own words, watch what it does, keep what it makes, and come back to the conversation later.",{"title":1038,"path":1039,"stem":1040,"icon":499,"status":9,"description":1041},"AI Chats API","\u002Fmodules\u002Fai-chats\u002Fapi","9.modules\u002F65.ai-chats\u002F2.api","Rename, pin, favorite, archive and delete chats, and remove a message from a chat, from your own code.",{"title":1043,"path":1044,"stem":1045,"icon":619,"status":9,"description":1046},"AI Chats plans and billing","\u002Fmodules\u002Fai-chats\u002Fplans","9.modules\u002F65.ai-chats\u002F3.plans","What the four plans give your Assistant, what is paid for by AI credits instead, and how a change of plan is billed.",{"title":322,"path":1048,"stem":1049,"children":1050,"icon":1052,"status":9,"description":1053},"\u002Fmodules\u002Fplugins","9.modules\u002F66.plugins\u002F1.index",[1051,1054,1059],{"title":322,"path":1048,"stem":1049,"icon":1052,"status":9,"description":1053},"mark-plugins","Give a workspace new skills by adding plugins to its own server, building your own from a sentence, running them by hand and connecting outside services.",{"title":1055,"path":1056,"stem":1057,"icon":499,"status":9,"description":1058},"Plugins API","\u002Fmodules\u002Fplugins\u002Fapi","9.modules\u002F66.plugins\u002F2.api","List the marketplace, install and remove the plugins your projects use, and upload a private plugin, from your own code.",{"title":1060,"path":1061,"stem":1062,"icon":619,"status":9,"description":1063},"Plugins plans and billing","\u002Fmodules\u002Fplugins\u002Fplans","9.modules\u002F66.plugins\u002F3.plans","What the three plans give a workspace, what the workspace server costs on its own, and how a change of plan is billed.",{"title":1065,"path":1066,"stem":1067,"children":1068,"icon":1070,"status":9,"description":1071},"Tickets","\u002Fmodules\u002Ftickets","9.modules\u002F67.tickets\u002F1.index",[1069,1072,1077],{"title":1065,"path":1066,"stem":1067,"icon":1070,"status":9,"description":1071},"mark-tickets","One shared desk for every request that reaches your workspace, with topics, forms and automation behind it.",{"title":1073,"path":1074,"stem":1075,"icon":499,"status":9,"description":1076},"Tickets API","\u002Fmodules\u002Ftickets\u002Fapi","9.modules\u002F67.tickets\u002F2.api","Open, list, read, reply to, assign, move and close tickets on your desk from your own software, with an account API key.",{"title":1078,"path":1079,"stem":1080,"icon":619,"status":9,"description":1081},"Tickets plans and billing","\u002Fmodules\u002Ftickets\u002Fplans","9.modules\u002F67.tickets\u002F3.plans","The four Tickets plans by tickets a month, seats, forms and automation, what counts toward a limit, what happens at one, and how a change of plan is billed.",{"title":1083,"path":1084,"stem":1085,"children":1086,"icon":1088,"status":9,"description":1089},"AI Credits","\u002Fmodules\u002Fai-credits","9.modules\u002F68.ai-credits\u002F1.index",[1087,1090,1095],{"title":1083,"path":1084,"stem":1085,"icon":1088,"status":9,"description":1089},"coins","The balance every AI action draws on, how to read it and add to it, and on Team how to decide who may spend it.",{"title":1091,"path":1092,"stem":1093,"icon":499,"status":9,"description":1094},"AI Credits API","\u002Fmodules\u002Fai-credits\u002Fapi","9.modules\u002F68.ai-credits\u002F2.api","What can be done from code with your AI credits today.",{"title":1096,"path":1097,"stem":1098,"icon":619,"status":9,"description":1099},"AI Credits plans and billing","\u002Fmodules\u002Fai-credits\u002Fplans","9.modules\u002F68.ai-credits\u002F3.plans","Where your credits come from, what a pack costs you in practice, how auto recharge works, and what happens when credits run out.",{"title":1101,"path":1102,"stem":1103,"children":1104,"icon":1106,"status":9,"description":1107},"IPv4 Manager","\u002Fmodules\u002Fipv4","9.modules\u002F69.ipv4\u002F1.index",[1105,1108,1113],{"title":1101,"path":1102,"stem":1103,"icon":1106,"status":9,"description":1107},"mark-ipv4","Dedicated IPv4 addresses you keep, point at something you run on Xuda or at your own server, park, release and give a reverse DNS name.",{"title":1109,"path":1110,"stem":1111,"icon":499,"status":9,"description":1112},"IPv4 Manager API","\u002Fmodules\u002Fipv4\u002Fapi","9.modules\u002F69.ipv4\u002F2.api","List your IPv4 addresses, read the pool's price and caps, buy, attach, park, release and set reverse DNS from your own code.",{"title":1114,"path":1115,"stem":1116,"icon":619,"status":9,"description":1117},"IPv4 Manager plans and billing","\u002Fmodules\u002Fipv4\u002Fplans","9.modules\u002F69.ipv4\u002F3.plans","The three IPv4 plans by how many addresses each holds, what counts toward a cap, how an address is billed, and how a change of plan is billed.",{"title":1119,"path":1120,"stem":1121,"children":1122,"icon":1124,"status":9,"description":1125},"Skills","\u002Fmodules\u002Fskills","9.modules\u002F70.skills\u002F1.index",[1123,1126,1131],{"title":1119,"path":1120,"stem":1121,"icon":1124,"status":9,"description":1125},"mark-agents","A skill is one job the AI can do with the tools you give it. Describe one in your words, take one that is ready, and use it in your chats and with your assistants.",{"title":1127,"path":1128,"stem":1129,"icon":499,"status":9,"description":1130},"Skills API","\u002Fmodules\u002Fskills\u002Fapi","9.modules\u002F70.skills\u002F2.api","Pin, favorite and archive your skills, make a picture for one, and record whether an installed skill may use its publisher's tools, from your own code.",{"title":1132,"path":1133,"stem":1134,"icon":619,"status":9,"description":1135},"Skills plans and billing","\u002Fmodules\u002Fskills\u002Fplans","9.modules\u002F70.skills\u002F3.plans","The three plans by how many skills a workspace holds, what counts toward the limit, what happens at it, and how a change of plan is billed.",{"title":1137,"path":1138,"stem":1139,"children":1140,"icon":1142,"status":9,"description":1143},"AI Assistants","\u002Fmodules\u002Fai-assistants","9.modules\u002F71.ai-assistants\u002F1.index",[1141,1144,1149],{"title":1137,"path":1138,"stem":1139,"icon":1142,"status":9,"description":1143},"bot-message-square","Assistants that answer for you, in private or in public, by chat, by voice or on video.",{"title":1145,"path":1146,"stem":1147,"icon":499,"status":9,"description":1148},"AI Assistants API","\u002Fmodules\u002Fai-assistants\u002Fapi","9.modules\u002F71.ai-assistants\u002F2.api","Favorite, pin, archive and draw a picture for an assistant from your own code, and what is done in the dashboard only.",{"title":1150,"path":1151,"stem":1152,"icon":619,"status":9,"description":1153},"AI Assistants plans and billing","\u002Fmodules\u002Fai-assistants\u002Fplans","9.modules\u002F71.ai-assistants\u002F3.plans","The six plans, what a public assistant needs before it can go live, what the plans limit, and how a change of plan works.",{"title":1155,"path":1156,"stem":1157,"children":1158,"icon":1160,"status":9,"description":1161},"Profiles","\u002Fmodules\u002Fprofiles","9.modules\u002F72.profiles\u002F1.index",[1159,1162,1167],{"title":1155,"path":1156,"stem":1157,"icon":1160,"status":9,"description":1161},"user-round","The faces you and your business show: work identities you switch between, each with its own mailbox, number and assistant.",{"title":1163,"path":1164,"stem":1165,"icon":499,"status":9,"description":1166},"Profiles API","\u002Fmodules\u002Fprofiles\u002Fapi","9.modules\u002F72.profiles\u002F2.api","List, make, change, archive and delete profiles from your own code, and read or set a profile's phone answering rules.",{"title":1168,"path":1169,"stem":1170,"icon":619,"status":9,"description":1171},"Profiles plans and billing","\u002Fmodules\u002Fprofiles\u002Fplans","9.modules\u002F72.profiles\u002F3.plans","The three plans by how many profiles a workspace holds, what counts, what happens at the limit, and how a change of plan is billed.",{"title":1173,"path":1174,"stem":1175,"children":1176,"icon":1178,"status":9,"description":1179},"Contacts","\u002Fmodules\u002Fcontacts","9.modules\u002F73.contacts\u002F1.index",[1177,1180,1185],{"title":1173,"path":1174,"stem":1175,"icon":1178,"status":9,"description":1179},"mark-contacts","The people and companies you talk to, one card and one running timeline for each, kept in touch, grouped and filed the way you work.",{"title":1181,"path":1182,"stem":1183,"icon":499,"status":9,"description":1184},"Contacts API","\u002Fmodules\u002Fcontacts\u002Fapi","9.modules\u002F73.contacts\u002F2.api","Read, add, archive, favorite and organize contacts from your own code, and send a friend request.",{"title":1186,"path":1187,"stem":1188,"icon":619,"status":9,"description":1189},"Contacts plans and billing","\u002Fmodules\u002Fcontacts\u002Fplans","9.modules\u002F73.contacts\u002F3.plans","The four plans, what Starter adds, how a group's size is held, and how a change of plan is billed.",{"title":1191,"path":1192,"stem":1193,"children":1194,"icon":1196,"status":9,"description":1197},"Cast","\u002Fmodules\u002Fcast","9.modules\u002F74.cast\u002F1.index",[1195,1198,1203],{"title":1191,"path":1192,"stem":1193,"icon":1196,"status":9,"description":1197},"clapperboard","Videos and podcasts made from your own files, contacts, chats and knowledge: drop in your material, check the script, and get a finished file saved to your Drive.",{"title":1199,"path":1200,"stem":1201,"icon":499,"status":9,"description":1202},"Cast API","\u002Fmodules\u002Fcast\u002Fapi","9.modules\u002F74.cast\u002F2.api","Cast has no public API methods today. What its screens call, and what that means for your own code.",{"title":1204,"path":1205,"stem":1206,"icon":619,"status":9,"description":1207},"Cast plans and billing","\u002Fmodules\u002Fcast\u002Fplans","9.modules\u002F74.cast\u002F3.plans","The four Cast plans, what counts toward a limit, what happens at one, and how a change of plan is billed.","briefcase-business",{"title":1210,"icon":107,"status":14,"description":15,"path":1211,"stem":1212,"children":1213,"page":54},"Xu framework","\u002Fxu","10.xu",[1214,1219,1224,1229,1235,1240,1245,1250,1255,1261,1266,1271],{"title":1215,"path":1216,"stem":1217,"icon":52,"status":9,"description":1218},"Overview and choosing a path","\u002Fxu\u002Foverview","10.xu\u002F1.overview","One reactive runtime, two ways to author it, both compiling to the same document model.",{"title":1220,"path":1221,"stem":1222,"icon":233,"status":9,"description":1223},"Install and create a project","\u002Fxu\u002Finstall-and-create-a-project","10.xu\u002F2.install-and-create-a-project","Scaffold a Xuda CLI project with one command, then learn what every generated file is for.",{"title":1225,"path":1226,"stem":1227,"icon":125,"status":9,"description":1228},"The .xu language","\u002Fxu\u002Fthe-xu-language","10.xu\u002F3.the-xu-language","The block format every .xu source file is written in, and the eleven building blocks a project is made of.",{"title":1230,"path":1231,"stem":1232,"icon":1233,"status":9,"description":1234},"Xuda Slim","\u002Fxu\u002Fxuda-slim","10.xu\u002F4.xuda-slim","feather","The lightweight browser entry point into the Xuda runtime, no project loader required.",{"title":1236,"path":1237,"stem":1238,"icon":472,"status":9,"description":1239},"HTML authoring in Slim","\u002Fxu\u002Fslim-html-authoring","10.xu\u002F5.slim-html-authoring","Write regular HTML, add Xuda directives, and let Slim turn it into a program tree.",{"title":1241,"path":1242,"stem":1243,"icon":499,"status":9,"description":1244},"project_data authoring","\u002Fxu\u002Fslim-project-data","10.xu\u002F6.slim-project-data","Build the Xuda runtime tree explicitly as data, for a generator or deterministic output.",{"title":1246,"path":1247,"stem":1248,"icon":177,"status":9,"description":1249},"Runtime directives","\u002Fxu\u002Fslim-directives","10.xu\u002F7.slim-directives","The full xu-* directive vocabulary Slim and the platform runtime share.",{"title":1251,"path":1252,"stem":1253,"icon":251,"status":9,"description":1254},"Special tags","\u002Fxu\u002Fslim-special-tags","10.xu\u002F8.slim-special-tags","The structural, Xuda-specific tags Slim renders alongside plain HTML.",{"title":1256,"path":1257,"stem":1258,"icon":1259,"status":9,"description":1260},"Choosing between Slim and the CLI","\u002Fxu\u002Fslim-choosing-a-mode","10.xu\u002F9.slim-choosing-a-mode","split","The source of truth question that decides which authoring path to start in, and how to move between them.",{"title":1262,"path":1263,"stem":1264,"icon":77,"status":9,"description":1265},"The CLI reference","\u002Fxu\u002Fthe-cli-reference","10.xu\u002F10.the-cli-reference","Every xuda-cli command, every xuda.config.js field, and what cloud sync can do today.",{"title":1267,"path":1268,"stem":1269,"icon":245,"status":14,"description":1270},"vite-plugin-xu","\u002Fxu\u002Fvite-plugin-xu","10.xu\u002F11.vite-plugin-xu","A build-time Vite plugin that compiles a .xu single-file component into a real ES module.",{"title":1272,"path":1273,"stem":1274,"icon":1275,"status":9,"description":1276},"@xuda\u002Fcore","\u002Fxu\u002Fxuda-core","10.xu\u002F12.xuda-core","cpu","The dependency-free reactive engine the platform, the compiler and the demo apps all mount on.",{"title":1278,"icon":23,"status":14,"description":15,"path":1279,"stem":1280,"children":1281,"page":54},"Build with AI","\u002Fbuild-with-ai","11.build-with-ai",[1282,1286,1292,1297,1303],{"title":1278,"path":1283,"stem":1284,"icon":23,"status":9,"description":1285},"\u002Fbuild-with-ai\u002Foverview","11.build-with-ai\u002F1.overview","The three ways artificial intelligence touches a Xuda project, from the assistant inside Studio to an external agent over MCP.",{"title":1287,"path":1288,"stem":1289,"icon":1290,"status":9,"description":1291},"Prompting patterns","\u002Fbuild-with-ai\u002Fprompting-patterns","11.build-with-ai\u002F2.prompting-patterns","message-square-text","What to say to the AI App Builder, and how scope, mode and context change the answer.",{"title":1293,"path":1294,"stem":1295,"icon":522,"status":9,"description":1296},"Connecting an AI client over MCP","\u002Fbuild-with-ai\u002Fconnecting-an-ai-client-over-mcp","11.build-with-ai\u002F3.connecting-an-ai-client-over-mcp","Add Xuda as a remote MCP server to Claude, Cursor, or any other MCP-aware client.",{"title":1298,"path":1299,"stem":1300,"icon":1301,"status":9,"description":1302},"The Studio LLM guide","\u002Fbuild-with-ai\u002Fstudio-llm-guide","11.build-with-ai\u002F4.studio-llm-guide","book-open-text","The prog document model, the xu-* attribute reference, and the workflow rules an AI agent is taught before its first tool call.",{"title":1304,"path":1305,"stem":1306,"icon":1307,"status":9,"description":1308},"llms.txt and raw markdown","\u002Fbuild-with-ai\u002Fllms-txt-and-raw-markdown","11.build-with-ai\u002F5.llms-txt-and-raw-markdown","file-text","Machine-readable exports of this documentation, an index, a full dump, and any single page as plain markdown.",{"title":1310,"icon":8,"status":14,"description":15,"path":1311,"stem":1312,"children":1313,"page":54},"Reference","\u002Freference","12.reference",[1314,1410,1415,1420],{"title":1315,"icon":1301,"status":14,"description":15,"path":1316,"stem":1317,"children":1318,"page":54},"Glossary","\u002Freference\u002Fglossary","12.reference\u002F1.glossary",[1319,1324,1329,1334,1339,1344,1349,1354,1358,1362,1366,1370,1375,1380,1386,1391,1395,1400,1405],{"title":1320,"path":1321,"stem":1322,"icon":131,"status":9,"description":1323},"Workspace","\u002Freference\u002Fglossary\u002Fworkspace","12.reference\u002F1.glossary\u002F1.workspace","The top-level project everything else relates to, and the shared AI pool a team spends from.",{"title":1325,"path":1326,"stem":1327,"icon":286,"status":9,"description":1328},"Project","\u002Freference\u002Fglossary\u002Fproject","12.reference\u002F1.glossary\u002F2.project","The general word for anything you manage from a dashboard project page.",{"title":1330,"path":1331,"stem":1332,"icon":552,"status":9,"description":1333},"App","\u002Freference\u002Fglossary\u002Fapp","12.reference\u002F1.glossary\u002F3.app","A built project, the thing Studio builds and Deploy publishes.",{"title":1335,"path":1336,"stem":1337,"icon":13,"status":9,"description":1338},"Deployment","\u002Freference\u002Fglossary\u002Fdeployment","12.reference\u002F1.glossary\u002F4.deployment","A project published as one of Deploy's types, a live, reachable version of the app.",{"title":1340,"path":1341,"stem":1342,"icon":355,"status":9,"description":1343},"Datacenter","\u002Freference\u002Fglossary\u002Fdatacenter","12.reference\u002F1.glossary\u002F5.datacenter","A replicated CouchDB server that acts as the storage backbone for Xuda projects.",{"title":1345,"path":1346,"stem":1347,"icon":195,"status":9,"description":1348},"Region","\u002Freference\u002Fglossary\u002Fregion","12.reference\u002F1.glossary\u002F6.region","One of five world areas Xuda groups servers and datacenters by.",{"title":1350,"path":1351,"stem":1352,"icon":245,"status":9,"description":1353},"Prog type","\u002Freference\u002Fglossary\u002Fprog-type","12.reference\u002F1.glossary\u002F7.prog-type","What kind of Studio program a document is, fixed at creation and never changed after.",{"title":248,"path":1355,"stem":1356,"icon":251,"status":9,"description":1357},"\u002Freference\u002Fglossary\u002Fcomponent","12.reference\u002F1.glossary\u002F8.component","The unit of UI, an element tree bound to local state, data and workflow logic.",{"title":225,"path":1359,"stem":1360,"icon":113,"status":9,"description":1361},"\u002Freference\u002Fglossary\u002Fdatasource","12.reference\u002F1.glossary\u002F9.datasource","The shared shape that tells a program or component where its data comes from.",{"title":254,"path":1363,"stem":1364,"icon":183,"status":9,"description":1365},"\u002Freference\u002Fglossary\u002Fworkflow","12.reference\u002F1.glossary\u002F10.workflow","The shared step language embedded in every program and every element.",{"title":214,"path":1367,"stem":1368,"icon":195,"status":9,"description":1369},"\u002Freference\u002Fglossary\u002Fglobals","12.reference\u002F1.glossary\u002F11.globals","The one program every project has exactly one of, for state the whole app shares.",{"title":1371,"path":1372,"stem":1373,"icon":325,"status":9,"description":1374},"Plugin","\u002Freference\u002Fglossary\u002Fplugin","12.reference\u002F1.glossary\u002F12.plugin","A capability added to a project, widgets, libraries, frameworks, graphics, UI kits.",{"title":1376,"path":1377,"stem":1378,"icon":71,"status":9,"description":1379},"API key","\u002Freference\u002Fglossary\u002Fapi-key","12.reference\u002F1.glossary\u002F13.api-key","The one credential every call to CPI carries.",{"title":1381,"path":1382,"stem":1383,"icon":1384,"status":9,"description":1385},"Clearance","\u002Freference\u002Fglossary\u002Fclearance","12.reference\u002F1.glossary\u002F14.clearance","shield-check","The signed-in session level a cpi method requires, separate from the API key wall.",{"title":1387,"path":1388,"stem":1389,"icon":77,"status":9,"description":1390},"CPI method","\u002Freference\u002Fglossary\u002Fcpi-method","12.reference\u002F1.glossary\u002F15.cpi-method","One named action on Xuda's single API dispatcher, called at POST or GET \u002Fcpi\u002F\u003Cmethod>.",{"title":80,"path":1392,"stem":1393,"icon":83,"status":9,"description":1394},"\u002Freference\u002Fglossary\u002Fmcp","12.reference\u002F1.glossary\u002F16.mcp","Xuda's Model Context Protocol server, the same API key exposed as typed tools.",{"title":1396,"path":1397,"stem":1398,"icon":1088,"status":9,"description":1399},"Credits","\u002Freference\u002Fglossary\u002Fcredits","12.reference\u002F1.glossary\u002F17.credits","What pays for AI work, spent from one pool per AI Workspace.",{"title":592,"path":1401,"stem":1402,"icon":1403,"status":9,"description":1404},"\u002Freference\u002Fglossary\u002Fwebsite","12.reference\u002F1.glossary\u002F18.website","globe-lock","A generated site published as an immutable version, from a prompt or a folder of HTML.",{"title":1406,"path":1407,"stem":1408,"icon":101,"status":9,"description":1409},"VPS kinds","\u002Freference\u002Fglossary\u002Fvps-kinds","12.reference\u002F1.glossary\u002F19.vps-kinds","The five server-family project types, all built from the same Create wizard.",{"title":1411,"path":1412,"stem":1413,"icon":89,"status":9,"description":1414},"Error codes","\u002Freference\u002Ferror-codes","12.reference\u002F2.error-codes","Every negative code and HTTP status in the CPI error catalog, what it means, and what to do.",{"title":1416,"path":1417,"stem":1418,"icon":349,"status":9,"description":1419},"Troubleshooting","\u002Freference\u002Ftroubleshooting","12.reference\u002F3.troubleshooting","Real error strings from sign-in, sign-up, deploys and API keys, matched to what fixes them.",{"title":1421,"path":1422,"stem":1423,"icon":171,"status":9,"description":1424},"Limits and quotas","\u002Freference\u002Flimits-and-quotas","12.reference\u002F4.limits-and-quotas","The explicit, numeric rate limits Xuda enforces on sign-in, sign-up, and public endpoints.",{"title":1426,"icon":1427,"status":14,"description":15,"path":1428,"stem":1429,"children":1430,"page":54},"API recipes","cooking-pot","\u002Frecipes","13.recipes",[1431,1435,1440,1446,1451,1456,1461,1466,1472,1478,1483,1489],{"title":62,"path":1432,"stem":1433,"icon":1427,"status":9,"description":1434},"\u002Frecipes\u002Foverview","13.recipes\u002F1.overview","End-to-end walkthroughs over the public API, each one a real task in cURL, JavaScript and Python.",{"title":1436,"path":1437,"stem":1438,"icon":1160,"status":9,"description":1439},"Read the signed-in account","\u002Frecipes\u002Fread-the-signed-in-account","13.recipes\u002F2.read-the-signed-in-account","Pull the same account record a dashboard page load reads, with one call and no fields.",{"title":1441,"path":1442,"stem":1443,"icon":1444,"status":9,"description":1445},"List projects and deployments","\u002Frecipes\u002Flist-projects-and-deployments","13.recipes\u002F3.list-projects-and-deployments","folder-kanban","Every workspace an account owns, then every app actually running, as two CouchDB view reads.",{"title":1447,"path":1448,"stem":1449,"icon":29,"status":9,"description":1450},"Add a contact","\u002Frecipes\u002Fadd-a-contact","13.recipes\u002F4.add-a-contact","File a person into the contact book by hand, and handle the case where they are already in it.",{"title":1452,"path":1453,"stem":1454,"icon":239,"status":9,"description":1455},"Upload a file to Drive","\u002Frecipes\u002Fupload-a-file-to-drive","13.recipes\u002F5.upload-a-file-to-drive","The one call in this section that is not a JSON body, a multipart upload to the account's own Drive.",{"title":1457,"path":1458,"stem":1459,"icon":361,"status":9,"description":1460},"Read and summarize your logs","\u002Frecipes\u002Fread-and-summarize-logs","13.recipes\u002F6.read-and-summarize-logs","Pull a window of request logs, then the same window as grouped counts, for a status page or a support reply.",{"title":1462,"path":1463,"stem":1464,"icon":101,"status":9,"description":1465},"Check a deployment","\u002Frecipes\u002Fcheck-a-deployment","13.recipes\u002F7.check-a-deployment","Look up what is running at a project's access URL right now, from the id a project list gives you.",{"title":1467,"path":1468,"stem":1469,"icon":1470,"status":9,"description":1471},"Open a support ticket","\u002Frecipes\u002Fopen-a-support-ticket","13.recipes\u002F8.open-a-support-ticket","ticket","File a ticket on your plan's desk from outside code, and poll it until someone replies.",{"title":1473,"path":1474,"stem":1475,"icon":1476,"status":9,"description":1477},"List support tickets","\u002Frecipes\u002Flist-support-tickets","13.recipes\u002F9.list-support-tickets","list-checks","Pull the desk's queue into your own product, filtered, sorted and paged.",{"title":1479,"path":1480,"stem":1481,"icon":195,"status":9,"description":1482},"Connect a domain","\u002Frecipes\u002Fconnect-a-domain","13.recipes\u002F10.connect-a-domain","Point one of the account's own domains at this key's project over DNS, with an App-scoped key.",{"title":1484,"path":1485,"stem":1486,"icon":1487,"status":9,"description":1488},"Send an email","\u002Frecipes\u002Fsend-an-email","13.recipes\u002F11.send-an-email","mail","Confirm outbound mail is wired up with one call, before a real notification depends on it.",{"title":1490,"path":1491,"stem":1492,"icon":222,"status":9,"description":1493},"Query and write app data","\u002Frecipes\u002Fquery-and-write-app-data","13.recipes\u002F12.query-and-write-app-data","Read rows from a Studio table, and add one, from outside the runtime, with the same two methods a running app itself calls.",{"title":322,"icon":325,"status":14,"description":15,"path":1495,"stem":1496,"children":1497,"page":54},"\u002Fplugins","14.plugins",[1498,1503,1508,1513,1519,1524],{"title":1499,"path":1500,"stem":1501,"icon":331,"status":9,"description":1502},"What a plugin is","\u002Fplugins\u002Foverview","14.plugins\u002F1.overview","A plugin is an npm package that installs into one Xuda project and extends it with code that runs in the browser, in Studio, or on the server.",{"title":1504,"path":1505,"stem":1506,"icon":125,"status":9,"description":1507},"The plugin manifest","\u002Fplugins\u002Fmanifest","14.plugins\u002F2.manifest","Six files a plugin can ship, each one a different entry point, and the manifest that records which of them exist.",{"title":1509,"path":1510,"stem":1511,"icon":245,"status":9,"description":1512},"Plugin kinds","\u002Fplugins\u002Fkinds","14.plugins\u002F3.kinds","Six plugin_type values are in real use today: ui, widget, library, dbs, framework and graphics.",{"title":1514,"path":1515,"stem":1516,"icon":1517,"status":9,"description":1518},"Build and test locally","\u002Fplugins\u002Flocal-development","14.plugins\u002F4.local-development","flask-conical","A live preview sandbox for UI plugins, and an offline test pattern for library and dbs plugins, both run from the plugin's own folder.",{"title":1520,"path":1521,"stem":1522,"icon":443,"status":9,"description":1523},"Publishing to the marketplace","\u002Fplugins\u002Fpublishing","14.plugins\u002F5.publishing","Upload a plugin, install it into a project, then publish it, three separate steps behind three different methods and one review gate.",{"title":1525,"path":1526,"stem":1527,"icon":1528,"status":9,"description":1529},"Versioning","\u002Fplugins\u002Fversioning","14.plugins\u002F6.versioning","tag","A plugin's version is a plain string comparison between the catalog document and what a project has installed, there is no semver range matching.",{"title":1531,"icon":1532,"status":14,"description":15,"path":1533,"stem":1534,"children":1535,"page":54},"Tutorials","graduation-cap","\u002Ftutorials","15.tutorials",[1536,1542,1548],{"title":1537,"path":1538,"stem":1539,"icon":1540,"status":9,"description":1541},"Build a small CRM","\u002Ftutorials\u002Fsmall-crm","15.tutorials\u002F1.small-crm","users","Model contacts, list and edit them, and save changes through a workflow, all inside one Studio project.",{"title":1543,"path":1544,"stem":1545,"icon":1546,"status":9,"description":1547},"Build an order intake app","\u002Ftutorials\u002Forder-intake-app","15.tutorials\u002F2.order-intake-app","clipboard-list","Connect a filtered datasource, validate a form before it saves, and show the right alert either way.",{"title":1549,"path":1550,"stem":1551,"icon":443,"status":9,"description":1552},"Publish your app","\u002Ftutorials\u002Fpublish-your-app","15.tutorials\u002F3.publish-your-app","Build a release in Studio, then deploy it as a PWA or SPA with a free Xuda subdomain.",{"title":1554,"icon":619,"status":14,"description":15,"path":1555,"stem":1556,"children":1557,"page":54},"Billing & plans","\u002Fbilling","16.billing",[1558,1564,1569,1574,1578,1584,1590],{"title":1559,"path":1560,"stem":1561,"icon":1562,"status":9,"description":1563},"How billing works","\u002Fbilling\u002Fhow-billing-works","16.billing\u002F1.how-billing-works","wallet","The one subscription behind your account, and the usage lines that ride on it.",{"title":1565,"path":1566,"stem":1567,"icon":245,"status":9,"description":1568},"Plans and what each includes","\u002Fbilling\u002Fplans","16.billing\u002F2.plans","Every plan Xuda sells, straight from the pricing catalog, with what each tier adds.",{"title":1570,"path":1571,"stem":1572,"icon":101,"status":9,"description":1573},"Usage-based pricing","\u002Fbilling\u002Fusage-pricing","16.billing\u002F3.usage-pricing","The per-unit rates behind every metered line on your invoice, straight from config.",{"title":1396,"path":1575,"stem":1576,"icon":1088,"status":9,"description":1577},"\u002Fbilling\u002Fcredits","16.billing\u002F4.credits","Where your AI credit balance comes from, how it is spent, and the three ways to add more.",{"title":1579,"path":1580,"stem":1581,"icon":1582,"status":9,"description":1583},"Invoices and payment methods","\u002Fbilling\u002Finvoices-and-payment-methods","16.billing\u002F5.invoices-and-payment-methods","receipt","Reading your billing screen, managing saved cards, and how the billing currency is chosen.",{"title":1585,"path":1586,"stem":1587,"icon":1588,"status":9,"description":1589},"Proration, upgrades and downgrades","\u002Fbilling\u002Fproration-and-plan-changes","16.billing\u002F6.proration-and-plan-changes","repeat","What happens the moment you confirm a plan change, and what it means for your next bill.",{"title":1591,"path":1592,"stem":1593,"icon":1594,"status":9,"description":1595},"Cancellation","\u002Fbilling\u002Fcancellation","16.billing\u002F7.cancellation","circle-x","How to switch a plan or a module back to its free tier, and what carries over.",{"title":1597,"icon":1598,"status":14,"description":15,"path":1599,"stem":1600,"children":1601,"page":54},"Security","shield","\u002Fsecurity","17.security",[1602,1608,1614,1619,1625,1630],{"title":1603,"path":1604,"stem":1605,"icon":1606,"status":9,"description":1607},"Account security","\u002Fsecurity\u002Faccount-security","17.security\u002F1.account-security","lock","Sign-in methods, active sessions, confirmation codes on high-risk actions, and the security log, all from Settings.",{"title":1609,"path":1610,"stem":1611,"icon":1612,"status":9,"description":1613},"SSH developer access","\u002Fsecurity\u002Fssh-access","17.security\u002F2.ssh-access","square-terminal","Account SSH keys, which servers they can reach, and short-lived tokens for connecting to one.",{"title":1615,"path":1616,"stem":1617,"icon":71,"status":9,"description":1618},"API key hygiene","\u002Fsecurity\u002Fapi-keys","17.security\u002F3.api-keys","Full versus custom access, revoking and replacing a key, and spotting one nobody is using.",{"title":1620,"path":1621,"stem":1622,"icon":1623,"status":9,"description":1624},"Firewall and bot protection at a glance","\u002Fsecurity\u002Ffirewall-and-bots","17.security\u002F4.firewall-and-bots","shield-alert","Inbound network rules on a server, and Xuda's own bot check for anything you host.",{"title":1626,"path":1627,"stem":1628,"icon":337,"status":9,"description":1629},"Backups and restore at a glance","\u002Fsecurity\u002Fbackups","17.security\u002F5.backups","Where backups live, and the confirmation code that guards restoring one over live data.",{"title":1631,"path":1632,"stem":1633,"icon":1634,"status":9,"description":1635},"Verification and Trust Center at a glance","\u002Fsecurity\u002Fverification","17.security\u002F6.verification","badge-check","Raise your account's verification level; it is what unlocks creating an API key.",{"title":1637,"icon":1540,"status":14,"description":15,"path":1638,"stem":1639,"children":1640,"page":54},"Team & collaboration","\u002Fteam","18.team",[1641,1645,1650,1655,1661,1667],{"title":1637,"path":1642,"stem":1643,"icon":1540,"status":9,"description":1644},"\u002Fteam\u002Foverview","18.team\u002F1.overview","The four ways people work together in Xuda, and where each one lives.",{"title":1646,"path":1647,"stem":1648,"icon":29,"status":9,"description":1649},"Members and invitations","\u002Fteam\u002Fmembers-and-invitations","18.team\u002F2.members-and-invitations","Add people to a project's team, and manage an invitation from sent to joined.",{"title":1651,"path":1652,"stem":1653,"icon":1384,"status":9,"description":1654},"Roles and permissions","\u002Fteam\u002Froles-and-permissions","18.team\u002F3.roles-and-permissions","What Admin, Developer, and Team member actually unlock, and how that changes with what you are adding someone to.",{"title":1656,"path":1657,"stem":1658,"icon":1659,"status":9,"description":1660},"Sharing projects and items","\u002Fteam\u002Fsharing","18.team\u002F4.sharing","share-2","Hand a chat, a mini app, an AI agent, a contact, a drive file, or a profile to one other account.",{"title":1662,"path":1663,"stem":1664,"icon":1665,"status":9,"description":1666},"Transferring ownership","\u002Fteam\u002Ftransferring-ownership","18.team\u002F5.transferring-ownership","arrow-left-right","Move a project, server, website, or ad campaign to another account entirely.",{"title":1668,"path":1669,"stem":1670,"icon":131,"status":9,"description":1671},"Workspaces for teams","\u002Fteam\u002Fworkspaces-for-teams","18.team\u002F6.workspaces-for-teams","Give your own team, or your customers, a dedicated sign-in portal into an app you built.",{"title":352,"icon":355,"status":14,"description":15,"path":1673,"stem":1674,"children":1675,"page":54},"\u002Fdata","19.data",[1676,1681,1686,1691,1696,1702,1707,1711],{"title":1677,"path":1678,"stem":1679,"icon":355,"status":9,"description":1680},"How data is stored","\u002Fdata\u002Fhow-data-is-stored","19.data\u002F1.how-data-is-stored","Every project, and your own account workspace, keeps its records in a database that belongs to it alone.",{"title":1682,"path":1683,"stem":1684,"icon":896,"status":9,"description":1685},"Tables and fields","\u002Fdata\u002Ftables-and-fields","19.data\u002F2.tables-and-fields","A table's columns are a closed set of six types, each cast on the way in, plus the indexes that make one row findable.",{"title":1687,"path":1688,"stem":1689,"icon":239,"status":14,"description":1690},"Importing data","\u002Fdata\u002Fimporting-data","19.data\u002F3.importing-data","Bring rows into a table from a CSV file, matched to the table's own field ids.",{"title":1692,"path":1693,"stem":1694,"icon":233,"status":9,"description":1695},"Exporting data","\u002Fdata\u002Fexporting-data","19.data\u002F4.exporting-data","Download a table's rows as a CSV, either your current selection or everything the grid has loaded.",{"title":1697,"path":1698,"stem":1699,"icon":1700,"status":9,"description":1701},"Querying data from apps","\u002Fdata\u002Fquerying-from-apps","19.data\u002F5.querying-from-apps","table-properties","The three ways a Studio app reads its own tables, and what changes when a read is live.",{"title":1703,"path":1704,"stem":1705,"icon":499,"status":9,"description":1706},"Querying data over the API","\u002Fdata\u002Fquerying-the-api","19.data\u002F6.querying-the-api","The full data_module reference, dbs_read's filter and sort shapes, and what dbs_delete and dbs_restore actually flip.",{"title":316,"path":1708,"stem":1709,"icon":319,"status":9,"description":1710},"\u002Fdata\u002Fdrive","19.data\u002F7.drive","The file store behind every project, your account, and Studio's own build assets, and how to reach each one over the API.",{"title":334,"path":1712,"stem":1713,"icon":337,"status":9,"description":1714},"\u002Fdata\u002Fbackups","19.data\u002F8.backups","A backup is a full copy of a project's one database, tables and all.",{"title":1716,"icon":113,"status":14,"description":15,"path":1717,"stem":1718,"children":1719,"page":54},"Integrations","\u002Fintegrations","20.integrations",[1720,1724,1729,1735,1741,1747,1753,1758],{"title":62,"path":1721,"stem":1722,"icon":366,"status":9,"description":1723},"\u002Fintegrations\u002Foverview","20.integrations\u002F1.overview","What Xuda connects to outside itself, and the three different shapes that connection takes.",{"title":1725,"path":1726,"stem":1727,"icon":552,"status":9,"description":1728},"External apps and embeds","\u002Fintegrations\u002Fexternal-apps","20.integrations\u002F2.external-apps","Bring an app you already run into your dashboard by URL, and let Xuda read it and act on it.",{"title":1730,"path":1731,"stem":1732,"icon":1733,"status":9,"description":1734},"Finance providers","\u002Fintegrations\u002Ffinance-providers","20.integrations\u002F3.finance-providers","landmark","Two payment rails behind Xuda commerce, your own Stripe account or Xuda's own Cardcom terminal.",{"title":1736,"path":1737,"stem":1738,"icon":1739,"status":9,"description":1740},"Email sending and mailboxes","\u002Fintegrations\u002Femail-and-mailboxes","20.integrations\u002F4.email-and-mailboxes","mail-check","Connect a Gmail account or claim a hosted address on @xuda.app, and send through the same path either way.",{"title":1742,"path":1743,"stem":1744,"icon":1745,"status":9,"description":1746},"Phone and voice","\u002Fintegrations\u002Fphone-and-voice","20.integrations\u002F5.phone-and-voice","phone-outgoing","A rented number is a Twilio subaccount under Xuda's own account; the line it answers to can be OpenAI's realtime voice.",{"title":1748,"path":1749,"stem":1750,"icon":1751,"status":9,"description":1752},"Advertising","\u002Fintegrations\u002Fadvertising","20.integrations\u002F6.advertising","megaphone","Xuda runs Google Ads for you from its own manager account, against a budget you prepay.",{"title":1754,"path":1755,"stem":1756,"icon":1634,"status":9,"description":1757},"Sign-in providers","\u002Fintegrations\u002Fsign-in-providers","20.integrations\u002F7.sign-in-providers","Prove an account is really you by signing in to a service you already use elsewhere.",{"title":1759,"path":1760,"stem":1761,"icon":1762,"status":9,"description":1763},"Calling Xuda from your own backend","\u002Fintegrations\u002Fcalling-xuda-from-your-backend","20.integrations\u002F8.calling-xuda-from-your-backend","network","Every connection on this page is also a plain HTTP call, reachable from a server instead of the dashboard.",{"title":1765,"path":1766,"stem":1767,"children":1768,"icon":1770,"status":14,"description":15},"FAQ","\u002Ffaq","21.faq\u002F100.index",[1769,1772,1777,1782,1787,1792,1797,1803,1808,1813,1819,1824,1829,1834,1839,1844,1849,1854,1859,1864,1870,1875,1881,1886,1891,1896,1901,1906,1911],{"title":1765,"path":1766,"stem":1767,"icon":1770,"status":9,"description":1771},"circle-help","Short, direct answers grouped by topic, each one linking to the full guide that covers it.",{"title":1773,"path":1774,"stem":1775,"icon":35,"status":9,"description":1776},"The deployment control panel","\u002Ffaq\u002Fdeployment-control-panel","21.faq\u002F101.deployment-control-panel","Overview, Analytics, Domain, Firewall, Notifications, Resize, Settings, User Assist and Advanced, the tabs every running web deployment shares.",{"title":1778,"path":1779,"stem":1780,"icon":119,"status":9,"description":1781},"API and backend deployments FAQ","\u002Ffaq\u002Fapi-deployments","21.faq\u002F102.api-deployments","Answers about API, Node and Cron deployments, their Logs tab, and the Cron setup wizard.",{"title":1783,"path":1784,"stem":1785,"icon":355,"status":9,"description":1786},"Project and datacenter housekeeping FAQ","\u002Ffaq\u002Fproject-housekeeping","21.faq\u002F103.project-housekeeping","Answers about a project's own dashboard (Data, Instances, API, User Assist), plus where a datacenter's Backups, Logs and Power tabs are documented.",{"title":1788,"path":1789,"stem":1790,"icon":13,"status":9,"description":1791},"Creating and launching a deployment FAQ","\u002Ffaq\u002Fcreating-a-deployment","21.faq\u002F104.creating-a-deployment","Answers about the deploy wizard's Configuration and Finalize steps, and what a project, a datacenter and a deployment each are.",{"title":1793,"path":1794,"stem":1795,"icon":472,"status":9,"description":1796},"App Builder data and routing FAQ","\u002Ffaq\u002Fapp-builder-data-and-routing","21.faq\u002F105.app-builder-data-and-routing","Answers about the App Builder environment, and the Globals, Data Source, Route, Table and Events building blocks that connect a component to its data.",{"title":1798,"path":1799,"stem":1800,"icon":1801,"status":9,"description":1802},"Marketplace and plugins FAQ","\u002Ffaq\u002Fmarketplace-and-plugins","21.faq\u002F106.marketplace-and-plugins","store","Answers about building an AI Agent, listing a project for sale, managing published listings, and the Plugin system.",{"title":1804,"path":1805,"stem":1806,"icon":619,"status":9,"description":1807},"Plans and support FAQ","\u002Ffaq\u002Fplans-and-support","21.faq\u002F107.plans-and-support","Answers about membership plans, VPS hosting, support tiers, and how Xuda handles payments and refunds.",{"title":1809,"path":1810,"stem":1811,"icon":23,"status":9,"description":1812},"About Xuda FAQ","\u002Ffaq\u002Fabout-xuda","21.faq\u002F108.about-xuda","Answers about the AI Agentic Workspace, Xuda Slim, and modernizing an existing system on Xuda.",{"title":1814,"path":1815,"stem":1816,"icon":1817,"status":9,"description":1818},"Account settings, billing and support FAQ","\u002Ffaq\u002Faccount-settings","21.faq\u002F109.account-settings","user-cog","Answers about Appearance, Security, the account-level Developers area, Billing and the Support Center.",{"title":1820,"path":1821,"stem":1822,"icon":41,"status":9,"description":1823},"Studio, fields and logic units FAQ","\u002Ffaq\u002Fstudio-logic-units","21.faq\u002F201.studio-logic-units","Answers about Xuda Studio itself, component fields, and the Alert, Batch, Folder and Workflow building blocks.",{"title":1825,"path":1826,"stem":1827,"icon":52,"status":14,"description":1828},"Explore Xuda FAQ","\u002Ffaq\u002Fexplore-xuda","21.faq\u002F202.explore-xuda","What the Xuda API, the Marketplace, and the Dashboard are for, and where Xuda fits across industries and use cases.",{"title":1830,"path":1831,"stem":1832,"icon":366,"status":9,"description":1833},"API deployment tabs FAQ","\u002Ffaq\u002Fapi-deployment-tabs","21.faq\u002F203.api-deployment-tabs","Analytics, Domain, Power, and Usage on an API deployment's dashboard page.",{"title":1835,"path":1836,"stem":1837,"icon":472,"status":9,"description":1838},"Embed deployment tabs FAQ","\u002Ffaq\u002Fembed-deployment-tabs","21.faq\u002F204.embed-deployment-tabs","Overview, Analytics, Firewall, and Settings on an Embed deployment's dashboard page.",{"title":1840,"path":1841,"stem":1842,"icon":461,"status":9,"description":1843},"Preview deployment FAQ","\u002Ffaq\u002Fpreview-deployment","21.faq\u002F205.preview-deployment","What a Preview deployment is for, and its Backups, Logs, Power, and Usage tabs.",{"title":1845,"path":1846,"stem":1847,"icon":540,"status":9,"description":1848},"PWA deployment tabs FAQ","\u002Ffaq\u002Fpwa-deployment-tabs","21.faq\u002F206.pwa-deployment-tabs","Overview, Analytics, Firewall, and Settings on a progressive web app deployment's dashboard page.",{"title":1850,"path":1851,"stem":1852,"icon":135,"status":9,"description":1853},"SPA deployment FAQ","\u002Ffaq\u002Fspa-deployment","21.faq\u002F207.spa-deployment","What an SPA deployment is, and its Backups, Logs, Power, and Usage tabs.",{"title":1855,"path":1856,"stem":1857,"icon":1540,"status":9,"description":1858},"User Group deployment tabs FAQ","\u002Ffaq\u002Fuser-group-deployment-tabs","21.faq\u002F208.user-group-deployment-tabs","Backups, Logs, Power, and Team on a User Group deployment's dashboard page.",{"title":1860,"path":1861,"stem":1862,"icon":101,"status":9,"description":1863},"Datacenter tabs FAQ","\u002Ffaq\u002Fdatacenter-tabs","21.faq\u002F209.datacenter-tabs","Advanced, Drive, Notifications, Replication, and Usage on a datacenter's dashboard page.",{"title":1865,"path":1866,"stem":1867,"icon":1868,"status":9,"description":1869},"Project tabs FAQ","\u002Ffaq\u002Fproject-tabs","21.faq\u002F210.project-tabs","folder-cog","Advanced, Analytics, Backups, Branding, Dependencies, Drive, Logs, Notifications, Plugins, Team and Version control, the tabs a Xuda Studio project carries in the dashboard.",{"title":1871,"path":1872,"stem":1873,"icon":13,"status":9,"description":1874},"Deployment categories FAQ","\u002Ffaq\u002Fdeployment-categories","21.faq\u002F211.deployment-categories","What Xuda Deployments are, and the API, Emitter, Android, and desktop (PC) deployment types.",{"title":1876,"path":1877,"stem":1878,"icon":1879,"status":9,"description":1880},"Your account FAQ","\u002Ffaq\u002Fyour-account","21.faq\u002F214.your-account","circle-user","The personal Drive, notifications, billing, profile and sessions under your account, not a specific project.",{"title":1882,"path":1883,"stem":1884,"icon":119,"status":9,"description":1885},"Server power, backups and logs FAQ","\u002Ffaq\u002Fserver-power-backups-and-logs","21.faq\u002F301.server-power-backups-and-logs","Turning a VPS or datacenter server on and off, its backup history, and its Logs and Settings tabs.",{"title":1887,"path":1888,"stem":1889,"icon":366,"status":9,"description":1890},"API and cron deployment FAQ","\u002Ffaq\u002Fapi-and-cron-deployments","21.faq\u002F302.api-and-cron-deployments","Deploying endpoints and scheduled jobs, and their Advanced, Logs and Settings tabs.",{"title":1892,"path":1893,"stem":1894,"icon":165,"status":9,"description":1895},"Studio app building, data and UI FAQ","\u002Ffaq\u002Fstudio-data-and-ui-building","21.faq\u002F303.studio-data-and-ui-building","Answers about the App Builder assistant, a component's Datasource and UI tabs, and the Set Data program.",{"title":1897,"path":1898,"stem":1899,"icon":1817,"status":9,"description":1900},"Account, email and settings FAQ","\u002Ffaq\u002Faccount-and-user-dashboard","21.faq\u002F304.account-and-user-dashboard","The account-level dashboard menu, connecting email, and the Security and Billing tabs under Settings.",{"title":1902,"path":1903,"stem":1904,"icon":1801,"status":9,"description":1905},"Marketplace listings FAQ","\u002Ffaq\u002Fmarketplace-listings-and-components","21.faq\u002F305.marketplace-listings-and-components","Publishing a project listing, getting paid for it, forking or browsing shared components, and controlling your own project's Marketplace visibility.",{"title":1907,"path":1908,"stem":1909,"icon":1476,"status":9,"description":1910},"Deploy wizard steps FAQ","\u002Ffaq\u002Fdeploy-wizard-datacenter-and-launch","21.faq\u002F307.deploy-wizard-datacenter-and-launch","The Datacenter, Performance Tier, Launch Settings, VPS Image and Finalize Details steps every deploy type walks through.",{"title":1912,"path":1913,"stem":1914,"icon":245,"status":9,"description":1915},"Deployment types and platform FAQ","\u002Ffaq\u002Fdeployment-types-and-platform","21.faq\u002F308.deployment-types-and-platform","What Xuda's deployment system covers, project instances, Xuda Slim, and native desktop packaging.",{"title":1917,"path":1918,"stem":1919,"children":1920,"icon":23,"status":14,"description":15},"AI workspace","\u002Fai-workspace","30.ai-workspace\u002F1.index",[1921,1923,1928,1934,1939,1945,1950,1955],{"title":1917,"path":1918,"stem":1919,"icon":23,"status":9,"description":1922},"The screen you live in on Xuda: the Assets rail, the page and its canvas, the three panes around it, the corner, and the plus that adds anything.",{"title":1924,"path":1925,"stem":1926,"icon":35,"status":9,"description":1927},"Home and the canvas","\u002Fai-workspace\u002Fcanvas","30.ai-workspace\u002F2.canvas","The home page as a row of tabs you arrange yourself, with Profile overview first, and how to add a module, an empty tab, an item or a file as a tab.",{"title":1929,"path":1930,"stem":1931,"icon":1932,"status":9,"description":1933},"The Assets rail","\u002Fai-workspace\u002Frail","30.ai-workspace\u002F3.rail","panel-left","The column on the start edge that lists your apps, servers, sites and modules, with its menus, pinning, hiding and the plus that adds more.",{"title":1935,"path":1936,"stem":1937,"icon":65,"status":9,"description":1938},"The panes","\u002Fai-workspace\u002Fpanes","30.ai-workspace\u002F4.panes","Contacts, AI Assistants and AI Chats kept on the three other edges of the screen as rows of faces, what pressing or pointing at a face does, and how a pane opens, closes and widens.",{"title":1940,"path":1941,"stem":1942,"icon":1943,"status":9,"description":1944},"Adding anything","\u002Fai-workspace\u002Fadd","30.ai-workspace\u002F5.add","plus","The plus in the corner that adds a contact, a meeting, a file, a chat, a product or a workspace without leaving the page, how to drag it onto things, and the Create window behind the Assets rail's plus.",{"title":1946,"path":1947,"stem":1948,"icon":131,"status":9,"description":1949},"Workspaces","\u002Fai-workspace\u002Fworkspaces","30.ai-workspace\u002F6.workspaces","What a workspace is, how to switch between workspaces and profiles from the corner, the card that says where you are, and every row of the account menu.",{"title":1951,"path":1952,"stem":1953,"icon":372,"status":9,"description":1954},"Notifications and jobs","\u002Fai-workspace\u002Fcorner","30.ai-workspace\u002F7.corner","The notice row that opens at the top of the screen, the mark in the corner that shows the AI at work and the jobs waiting to run, and your list of notifications.",{"title":1956,"path":1957,"stem":1958,"icon":540,"status":9,"description":1959},"On a phone","\u002Fai-workspace\u002Fphone","30.ai-workspace\u002F8.phone","How the workspace is drawn below 1024 pixels wide: three tabs at the top for the panes, a main menu for the rail with the workspace picker in its header, and a Create sheet.",{"title":1961,"path":1962,"stem":1963,"children":1964,"icon":13,"status":14,"description":15},"Deployments","\u002Fdeployments","31.deployments\u002F1.index",[1965,1967,1972,1977,1982,1987,1994],{"title":1961,"path":1962,"stem":1963,"icon":13,"status":9,"description":1966},"Put an app, an API, a scheduled job or a server live on Xuda from one screen, then run it from its own page of tabs.",{"title":1968,"path":1969,"stem":1970,"icon":13,"status":9,"description":1971},"Creating one","\u002Fdeployments\u002Fcreating","31.deployments\u002F2.creating","The Deploy window step by step, from picking what to deploy to the address going live.",{"title":1973,"path":1974,"stem":1975,"icon":195,"status":9,"description":1976},"Apps","\u002Fdeployments\u002Fapps","31.deployments\u002F3.apps","Each kind of app, API and job you can deploy from a project, and the one thing each needs from you.",{"title":1978,"path":1979,"stem":1980,"icon":119,"status":9,"description":1981},"Servers","\u002Fdeployments\u002Fservers","31.deployments\u002F4.servers","Each kind of server you can create, VPS, Full Stack VPS, External VPS, Datacenter and Load balancer, and what each asks of you.",{"title":1983,"path":1984,"stem":1985,"icon":165,"status":9,"description":1986},"A deployment's tabs","\u002Fdeployments\u002Ftabs","31.deployments\u002F5.tabs","Every tab of a deployed thing's own page, what each is for and which kinds of deployment and server have it.",{"title":1988,"path":1989,"stem":1990,"children":1991,"icon":107,"status":14,"description":15},"XU Code","\u002Fdeployments\u002Fxu-code","31.deployments\u002F6.xu-code\u002F1.index",[1992],{"title":1988,"path":1989,"stem":1990,"icon":107,"status":9,"description":1993},"A cloud coding workspace where you connect a git repository and Xuda's coding agent builds against it, checked by your own build and tests.",{"title":104,"path":1995,"stem":1996,"icon":107,"status":9,"description":1997},"\u002Fdeployments\u002Fdevelopment-platform","31.deployments\u002F7.development-platform","Create a project, author it visually in Studio, check it, cut a numbered build and deploy it, the full path from an empty account to a running app.",{"title":1999,"icon":378,"status":14,"description":15,"path":2000,"stem":2001,"children":2002,"page":54},"Settings","\u002Fsettings","32.settings",[2003,2019,2036],{"title":391,"path":2004,"stem":2005,"children":2006,"icon":399,"status":14,"description":15},"\u002Fsettings\u002Faccount","32.settings\u002F1.account\u002F1.index",[2007,2009,2014],{"title":391,"path":2004,"stem":2005,"icon":399,"status":9,"description":2008},"Your details, how you sign in, what you are billed for and what reaches you: every page of the Account part of Settings and the jobs you do there.",{"title":2010,"path":2011,"stem":2012,"icon":1562,"status":9,"description":2013},"Billing","\u002Fsettings\u002Faccount\u002Fbilling","32.settings\u002F1.account\u002F2.billing","How your bill is made up, what a plan change does to it, and how to read Balance, Subscriptions, Marketplace purchases, Cards and Invoices.",{"title":2015,"path":2016,"stem":2017,"icon":1384,"status":9,"description":2018},"Sign-in and security","\u002Fsettings\u002Faccount\u002Fsecurity","32.settings\u002F1.account\u002F3.security","Passkeys, two-factor, password and linked accounts, then where you are signed in, your SSH keys, the log of sensitive actions, and verification.",{"title":2020,"path":2021,"stem":2022,"children":2023,"icon":131,"status":14,"description":15},"Workspace settings","\u002Fsettings\u002Fworkspace","32.settings\u002F2.workspace\u002F1.index",[2024,2026,2031],{"title":2020,"path":2021,"stem":2022,"icon":131,"status":9,"description":2025},"What the Workspace part of Settings holds for the workspace you are in, and the jobs you do there: rename it, hand it over, add admins, keep its memory, run its server, and set each module and project.",{"title":2027,"path":2028,"stem":2029,"icon":1540,"status":9,"description":2030},"People","\u002Fsettings\u002Fworkspace\u002Fpeople","32.settings\u002F2.workspace\u002F2.people","Add and remove the admins of a workspace, the roles on a project's team, and how to hand a workspace to another account.",{"title":2032,"path":2033,"stem":2034,"icon":619,"status":9,"description":2035},"Plan and modules","\u002Fsettings\u002Fworkspace\u002Fplan-and-modules","32.settings\u002F2.workspace\u002F3.plan-and-modules","The plan of a workspace, the plan and the switch of each module in it, how what a workspace costs is the sum of its parts, and what a change of plan does.",{"title":2037,"path":2038,"stem":2039,"children":2040,"icon":2042,"status":14,"description":15},"Signing in","\u002Fsettings\u002Fsign-in","32.settings\u002F3.sign-in\u002F1.index",[2041],{"title":2037,"path":2038,"stem":2039,"icon":2042,"status":9,"description":2043},"log-in","How you get into Xuda: the ways in, in a browser and in the iPhone app, a forgotten password and two-factor authentication.",{"id":2045,"title":1298,"anchors":2046,"body":2047,"description":1302,"extension":6829,"icon":1301,"meta":6830,"navigation":6831,"owner":6832,"path":1299,"rawbody":6833,"redirect_from":6834,"seo":6835,"sources":6836,"status":9,"stem":1300,"translated_from":2189,"updatedAt":6853,"verified_against":6854,"__hash__":6855,"fallback":54},"docs\u002F11.build-with-ai\u002F4.studio-llm-guide.md",[],{"type":2048,"value":2049,"toc":6780},"minimark",[2050,2064,2069,2085,2088,2152,2171,2175,2180,2183,2363,2472,2476,2619,2623,2653,2657,2764,2768,2772,2825,2847,2851,3127,3131,3142,3215,3403,3421,3425,3495,3499,3520,3596,3599,3620,3623,3748,3811,3815,4066,4109,4113,4119,4161,4178,4181,4302,4331,4334,4372,4376,4423,4426,4459,4463,4510,4514,4526,4664,4668,4778,4798,4802,4824,5171,5202,5235,5270,5301,5324,5328,5377,5380,5399,5563,5616,5633,5660,5664,5691,5695,5702,5782,5797,5801,6043,6260,6280,6284,6317,6321,6352,6356,6447,6451,6472,6476,6482,6486,6542,6546,6648,6652,6700,6704,6756,6760,6777],[2051,2052,2053,2054,2058,2059,2063],"p",{},"Every Studio project, every table, screen, script and route inside it, is one CouchDB JSON document\ncalled a ",[2055,2056,2057],"strong",{},"prog"," (",[2060,2061,2062],"code",{},"docType: \"studio\"","). This page is the same reference an AI agent receives when\nit builds one, rewritten as documentation: the shape of that document, the attributes that drive\nits UI, the actions a workflow can take, and the mistakes that show up in real builds.",[2065,2066,2068],"h2",{"id":2067},"how-an-ai-agent-gets-this-guide","How an AI agent gets this guide",[2051,2070,2071,2072,2075,2076,2079,2080,2084],{},"Connect an MCP client to Xuda and the first response, the ",[2060,2073,2074],{},"initialize"," call, carries this guide as\nthe session's ",[2060,2077,2078],{},"instructions",", merged fresh from the platform's own live rules so it can never\ndescribe something the deployed checker no longer enforces. See\n",[2081,2082,1293],"a",{"href":2083},"\u002Fdocs\u002Fbuild-with-ai\u002Fconnecting-an-ai-client-over-mcp",".",[2051,2086,2087],{},"From inside a session, two methods reach the same material directly, over MCP or plain REST, and\nrequire nothing beyond a normal API key:",[222,2089,2090,2103],{},[2091,2092,2093],"thead",{},[2094,2095,2096,2100],"tr",{},[2097,2098,2099],"th",{},"Method",[2097,2101,2102],{},"Does",[2104,2105,2106,2142],"tbody",{},[2094,2107,2108,2114],{},[2109,2110,2111],"td",{},[2060,2112,2113],{},"get_studio_guide",[2109,2115,2116,2117,2119,2120,2119,2123,2119,2126,2119,2129,2119,2132,2119,2135,2119,2138,2141],{},"Rereads a topic on demand: ",[2060,2118,2078],{},", ",[2060,2121,2122],{},"anatomy",[2060,2124,2125],{},"attributes",[2060,2127,2128],{},"components",[2060,2130,2131],{},"programs",[2060,2133,2134],{},"tables",[2060,2136,2137],{},"javascript",[2060,2139,2140],{},"gotchas",". Omit the topic for the primer and the required workflow below.",[2094,2143,2144,2149],{},[2109,2145,2146],{},[2060,2147,2148],{},"get_prog_examples",[2109,2150,2151],{},"Curated, working example progs from Xuda's own kitchen-sink project, filterable by a text pattern or a prog type, then fetched by id to pattern a build on.",[2051,2153,2154,2155,2158,2159,2162,2163,2166,2167,2170],{},"The prescribed order: read the topic that matches what you are building, fetch a matching example,\ncreate the prog through the factory (",[2060,2156,2157],{},"create_prog","), build inside its content sections, validate\n(",[2060,2160,2161],{},"validate_prog",") and fix everything it reports, save (",[2060,2164,2165],{},"save_prog","), then re-fetch to verify. A\nsave that returns ",[2060,2168,2169],{},"-409"," means the document changed since it was read: re-fetch, reapply, retry.",[2065,2172,2174],{"id":2173},"the-prog-document-model","The prog document model",[2176,2177,2179],"h3",{"id":2178},"the-envelope","The envelope",[2051,2181,2182],{},"Server and factory code own these fields; an authored build only ever edits the content sections\nbelow them.",[2184,2185,2190],"pre",{"className":2186,"code":2187,"language":2188,"meta":2189,"style":2189},"language-json shiki shiki-themes github-light github-dark","{\n  \"_id\": \"392_cmp_f15654997737\",\n  \"_rev\": \"3-...\",\n  \"docType\": \"studio\",\n  \"stat\": 3,\n  \"app_id\": \"prj...\",\n  \"properties\": { \"menuType\": \"component\", \"menuName\": \"Orders\", \"menuTitle\": \"Orders\" },\n  \"studio_meta\": { \"created\": 1750000000000, \"createdByUid\": \"...\", \"savedByUid\": \"...\", \"parentId\": \"programs\" }\n}\n","json","",[2060,2191,2192,2201,2218,2231,2244,2257,2270,2309,2357],{"__ignoreMap":2189},[2193,2194,2197],"span",{"class":2195,"line":2196},"line",1,[2193,2198,2200],{"class":2199},"sVt8B","{\n",[2193,2202,2204,2208,2211,2215],{"class":2195,"line":2203},2,[2193,2205,2207],{"class":2206},"sj4cs","  \"_id\"",[2193,2209,2210],{"class":2199},": ",[2193,2212,2214],{"class":2213},"sZZnC","\"392_cmp_f15654997737\"",[2193,2216,2217],{"class":2199},",\n",[2193,2219,2221,2224,2226,2229],{"class":2195,"line":2220},3,[2193,2222,2223],{"class":2206},"  \"_rev\"",[2193,2225,2210],{"class":2199},[2193,2227,2228],{"class":2213},"\"3-...\"",[2193,2230,2217],{"class":2199},[2193,2232,2234,2237,2239,2242],{"class":2195,"line":2233},4,[2193,2235,2236],{"class":2206},"  \"docType\"",[2193,2238,2210],{"class":2199},[2193,2240,2241],{"class":2213},"\"studio\"",[2193,2243,2217],{"class":2199},[2193,2245,2247,2250,2252,2255],{"class":2195,"line":2246},5,[2193,2248,2249],{"class":2206},"  \"stat\"",[2193,2251,2210],{"class":2199},[2193,2253,2254],{"class":2206},"3",[2193,2256,2217],{"class":2199},[2193,2258,2260,2263,2265,2268],{"class":2195,"line":2259},6,[2193,2261,2262],{"class":2206},"  \"app_id\"",[2193,2264,2210],{"class":2199},[2193,2266,2267],{"class":2213},"\"prj...\"",[2193,2269,2217],{"class":2199},[2193,2271,2273,2276,2279,2282,2284,2287,2289,2292,2294,2297,2299,2302,2304,2306],{"class":2195,"line":2272},7,[2193,2274,2275],{"class":2206},"  \"properties\"",[2193,2277,2278],{"class":2199},": { ",[2193,2280,2281],{"class":2206},"\"menuType\"",[2193,2283,2210],{"class":2199},[2193,2285,2286],{"class":2213},"\"component\"",[2193,2288,2119],{"class":2199},[2193,2290,2291],{"class":2206},"\"menuName\"",[2193,2293,2210],{"class":2199},[2193,2295,2296],{"class":2213},"\"Orders\"",[2193,2298,2119],{"class":2199},[2193,2300,2301],{"class":2206},"\"menuTitle\"",[2193,2303,2210],{"class":2199},[2193,2305,2296],{"class":2213},[2193,2307,2308],{"class":2199}," },\n",[2193,2310,2312,2315,2317,2320,2322,2325,2327,2330,2332,2335,2337,2340,2342,2344,2346,2349,2351,2354],{"class":2195,"line":2311},8,[2193,2313,2314],{"class":2206},"  \"studio_meta\"",[2193,2316,2278],{"class":2199},[2193,2318,2319],{"class":2206},"\"created\"",[2193,2321,2210],{"class":2199},[2193,2323,2324],{"class":2206},"1750000000000",[2193,2326,2119],{"class":2199},[2193,2328,2329],{"class":2206},"\"createdByUid\"",[2193,2331,2210],{"class":2199},[2193,2333,2334],{"class":2213},"\"...\"",[2193,2336,2119],{"class":2199},[2193,2338,2339],{"class":2206},"\"savedByUid\"",[2193,2341,2210],{"class":2199},[2193,2343,2334],{"class":2213},[2193,2345,2119],{"class":2199},[2193,2347,2348],{"class":2206},"\"parentId\"",[2193,2350,2210],{"class":2199},[2193,2352,2353],{"class":2213},"\"programs\"",[2193,2355,2356],{"class":2199}," }\n",[2193,2358,2360],{"class":2195,"line":2359},9,[2193,2361,2362],{"class":2199},"}\n",[2364,2365,2366,2401,2410,2447],"ul",{},[2367,2368,2369,2372,2373,2376,2377,2380,2381,2384,2385,2388,2389,2392,2393,2396,2397,2400],"li",{},[2060,2370,2371],{},"_id"," follows ",[2060,2374,2375],{},"\u003Clast 3 chars of app_id>_\u003C3-letter type abbreviation>_\u003C12 hex>",", for example\n",[2060,2378,2379],{},"392_cmp_..."," for a component, ",[2060,2382,2383],{},"392_tbl_..."," for a table, ",[2060,2386,2387],{},"392_jvs_..."," for a javascript prog,\n",[2060,2390,2391],{},"392_gtd_..."," \u002F ",[2060,2394,2395],{},"392_std_..."," for get_data \u002F set_data, ",[2060,2398,2399],{},"392_fld_..."," for a folder. The factory\ngenerates ids, a build never invents one.",[2367,2402,2403,2406,2407,2084],{},[2060,2404,2405],{},"stat"," is 3 for active, 4 for soft-deleted (what deleting a prog sets). Studio's tree only shows\n",[2060,2408,2409],{},"stat: 3",[2367,2411,2412,2415,2416,2119,2419,2119,2421,2119,2424,2119,2427,2119,2430,2217,2433,2119,2435,2119,2437,2119,2439,2119,2442,2119,2444,2084],{},[2060,2413,2414],{},"properties.menuType"," is one of ",[2060,2417,2418],{},"globals",[2060,2420,222],{},[2060,2422,2423],{},"get_data",[2060,2425,2426],{},"set_data",[2060,2428,2429],{},"batch",[2060,2431,2432],{},"alert",[2060,2434,2137],{},[2060,2436,286],{},[2060,2438,280],{},[2060,2440,2441],{},"api",[2060,2443,251],{},[2060,2445,2446],{},"ai_agent",[2367,2448,2449,2452,2453,2455,2456,2458,2459,2119,2462,2119,2464,2467,2468,2471],{},[2060,2450,2451],{},"studio_meta.parentId"," places the node in the Studio tree: either another prog's id (usually a\nfolder) or one of the type roots, ",[2060,2454,2131],{}," (logic and components), ",[2060,2457,355],{}," (tables),\n",[2060,2460,2461],{},"routes",[2060,2463,2418],{},[2060,2465,2466],{},"ai_agents",". An unrecognized ",[2060,2469,2470],{},"parentId"," leaves the node invisible in the\ntree and is a checker error.",[2176,2473,2475],{"id":2474},"content-sections-by-menutype","Content sections by menuType",[222,2477,2478,2488],{},[2091,2479,2480],{},[2094,2481,2482,2485],{},[2097,2483,2484],{},"menuType",[2097,2486,2487],{},"Sections a build edits",[2104,2489,2490,2513,2530,2551,2566,2577,2588,2599,2608],{},[2094,2491,2492,2496],{},[2109,2493,2494],{},[2060,2495,251],{},[2109,2497,2498,2119,2501,2119,2504,2119,2507,2119,2510],{},[2060,2499,2500],{},"properties",[2060,2502,2503],{},"progUi",[2060,2505,2506],{},"progFields",[2060,2508,2509],{},"progEvents",[2060,2511,2512],{},"progDataSource",[2094,2514,2515,2519],{},[2109,2516,2517],{},[2060,2518,222],{},[2109,2520,2521,2119,2524,2119,2527],{},[2060,2522,2523],{},"tableFields",[2060,2525,2526],{},"tableIndexes",[2060,2528,2529],{},"properties.databaseSocket",[2094,2531,2532,2540],{},[2109,2533,2534,2392,2536,2392,2538],{},[2060,2535,2423],{},[2060,2537,2426],{},[2060,2539,2429],{},[2109,2541,2542,2119,2544,2119,2546,2119,2548],{},[2060,2543,2512],{},[2060,2545,2506],{},[2060,2547,2509],{},[2060,2549,2550],{},"properties.progParams",[2094,2552,2553,2559],{},[2109,2554,2555,2392,2557],{},[2060,2556,2137],{},[2060,2558,2441],{},[2109,2560,2561,2119,2564],{},[2060,2562,2563],{},"scriptData",[2060,2565,2550],{},[2094,2567,2568,2572],{},[2109,2569,2570],{},[2060,2571,2432],{},[2109,2573,2574],{},[2060,2575,2576],{},"alertData",[2094,2578,2579,2583],{},[2109,2580,2581],{},[2060,2582,280],{},[2109,2584,2585],{},[2060,2586,2587],{},"routeMenu",[2094,2589,2590,2594],{},[2109,2591,2592],{},[2060,2593,2446],{},[2109,2595,2596],{},[2060,2597,2598],{},"agentConfig",[2094,2600,2601,2605],{},[2109,2602,2603],{},[2060,2604,286],{},[2109,2606,2607],{},"nothing, a pure tree container",[2094,2609,2610,2614],{},[2109,2611,2612],{},[2060,2613,2418],{},[2109,2615,2616,2618],{},[2060,2617,2506],{},", project-wide fields",[2176,2620,2622],{"id":2621},"the-globals-doc","The globals doc",[2051,2624,2625,2626,2629,2630,2633,2634,2636,2637,2640,2641,2644,2645,2648,2649,2652],{},"Each project has exactly one ",[2060,2627,2628],{},"global_\u003Capp_id>"," document (",[2060,2631,2632],{},"menuType: \"globals\"","). Its ",[2060,2635,2506],{},"\nare readable from every other prog as ",[2060,2638,2639],{},"@field_id",". Two system globals ship on every project:\n",[2060,2642,2643],{},"@SYS_GLOBAL_OBJ_LOGIN_USER_INFO"," for the signed-in user, and ",[2060,2646,2647],{},"@SYS_GLOBAL_OBJ_REFS"," for elements\nregistered with ",[2060,2650,2651],{},"xu-ref",". Neither the globals doc nor the tree root can be deleted.",[2176,2654,2656],{"id":2655},"structural-musts","Structural musts",[2364,2658,2659,2675,2724,2755],{},[2367,2660,2661,2119,2663,2119,2665,2119,2668,2671,2672,2674],{},[2060,2662,2500],{},[2060,2664,2414],{},[2060,2666,2667],{},"properties.menuName",[2060,2669,2670],{},"studio_meta",", and\n",[2060,2673,2451],{}," are mandatory on every doc.",[2367,2676,2677,2678,2680,2681,2119,2684,2687,2688,2691,2692,2119,2695,2217,2697,2700,2701,2704,2705,2691,2708,2119,2711,2119,2714,2119,2717,2720,2721,2084],{},"A ",[2060,2679,2506],{}," entry needs a unique ",[2060,2682,2683],{},"id",[2060,2685,2686],{},"data.field_id",", a ",[2060,2689,2690],{},"data.type"," of ",[2060,2693,2694],{},"virtual",[2060,2696,222],{},[2060,2698,2699],{},"expression"," or ",[2060,2702,2703],{},"datasource",", and a ",[2060,2706,2707],{},"props.fieldType",[2060,2709,2710],{},"string",[2060,2712,2713],{},"number",[2060,2715,2716],{},"boolean",[2060,2718,2719],{},"array","\nor ",[2060,2722,2723],{},"object",[2367,2725,2726,2727,2119,2730,2119,2733,2119,2736,2119,2739,2119,2742,2217,2745,2119,2748,2119,2751,2754],{},"Reserved runtime variable names, ",[2060,2728,2729],{},"_NULL",[2060,2731,2732],{},"_THIS",[2060,2734,2735],{},"_FOR_KEY",[2060,2737,2738],{},"_FOR_VAL",[2060,2740,2741],{},"_ROWNO",[2060,2743,2744],{},"_ROWID",[2060,2746,2747],{},"_ROWDOC",[2060,2749,2750],{},"_KEY",[2060,2752,2753],{},"_VAL",", are never redefined as field ids.",[2367,2756,2757,2758,2760,2761,2763],{},"Duplicate ids, unknown ",[2060,2759,2484],{},"s and malformed sections are all hard errors that\n",[2060,2762,2161],{}," reports directly.",[2065,2765,2767],{"id":2766},"expressions-and-xu-attributes","Expressions and xu-* attributes",[2176,2769,2771],{"id":2770},"expression-syntax","Expression syntax",[2051,2773,2774,2775,2210,2778,2119,2781,2119,2784,2786,2787,2790,2791,2794,2795,2798,2799,2802,2803,2806,2807,2392,2810,2813,2814,2817,2818,2392,2821,2824],{},"Expressions run against the prog's own dataset. Any field, local, table-bound, global or a\nparameter, is referenced with ",[2060,2776,2777],{},"@",[2060,2779,2780],{},"@search_v",[2060,2782,2783],{},"@ORD_Total",[2060,2785,2643],{},",\nplain JavaScript around it, ",[2060,2788,2789],{},"@count_v > 0 ? 'has rows' : 'empty'",". An object literal needs wrapping\nparens, ",[2060,2792,2793],{},"({ ORD_Status: @status_v })",". Inside an ",[2060,2796,2797],{},"xu-for"," loop, the current item is ",[2060,2800,2801],{},"@_FOR_VAL"," and\nits key or index ",[2060,2804,2805],{},"@_FOR_KEY"," (renameable with ",[2060,2808,2809],{},"xu-for-key",[2060,2811,2812],{},"xu-for-val","). ",[2060,2815,2816],{},"xu-render"," and other\nconditions return the truthy or falsy value directly, never a ",[2060,2819,2820],{},"\"Y\"",[2060,2822,2823],{},"\"N\""," string or an extra\ncomparison.",[2826,2827,2830],"callout",{"title":2828,"type":2829},"xu-bind is the one exception","warning",[2051,2831,2832,2833,2835,2836,2839,2840,2843,2844,2084],{},"Everywhere else a field is referenced with ",[2060,2834,2777],{},". ",[2060,2837,2838],{},"xu-bind"," takes the bare field id instead:\n",[2060,2841,2842],{},"xu-bind=\"search_v\"",", never ",[2060,2845,2846],{},"xu-bind=\"@search_v\"",[2176,2848,2850],{"id":2849},"the-xu-attributes","The xu attributes",[222,2852,2853,2863],{},[2091,2854,2855],{},[2094,2856,2857,2860],{},[2097,2858,2859],{},"Attribute",[2097,2861,2862],{},"What it does",[2104,2864,2865,2887,2899,2916,2933,2947,2960,2973,2986,2999,3012,3030,3046,3060,3076,3097,3107,3117],{},[2094,2866,2867,2871],{},[2109,2868,2869],{},[2060,2870,2838],{},[2109,2872,2873,2874,2876,2877,2880,2881,2883,2884,2084],{},"Two-way binding between an input element and a ",[2060,2875,2506],{}," field. Value is the bare ",[2060,2878,2879],{},"field_id",", no ",[2060,2882,2777],{},". Example: ",[2060,2885,2886],{},"xu-bind=\"user_email_v\"",[2094,2888,2889,2893],{},[2109,2890,2891],{},[2060,2892,2816],{},[2109,2894,2895,2896,2084],{},"Conditional render, the element is removed from the DOM when the expression is falsy. Return truthy or falsy directly. Example: ",[2060,2897,2898],{},"xu-render=\"@user_logged_in\"",[2094,2900,2901,2906],{},[2109,2902,2903],{},[2060,2904,2905],{},"xu-show",[2109,2907,2908,2909,2912,2913,2084],{},"Conditional visibility through CSS ",[2060,2910,2911],{},"display",", the element stays in the DOM. Example: ",[2060,2914,2915],{},"xu-show=\"@show_advanced\"",[2094,2917,2918,2922],{},[2109,2919,2920],{},[2060,2921,2797],{},[2109,2923,2924,2925,2927,2928,2883,2930,2084],{},"Repeats the element for each item of an array or object expression, the current item is ",[2060,2926,2801],{},", its key or index ",[2060,2929,2805],{},[2060,2931,2932],{},"xu-for=\"@students_list\"",[2094,2934,2935,2939],{},[2109,2936,2937],{},[2060,2938,2809],{},[2109,2940,2941,2942,2944,2945,2084],{},"Custom variable name for the ",[2060,2943,2797],{}," iterator key, default ",[2060,2946,2735],{},[2094,2948,2949,2953],{},[2109,2950,2951],{},[2060,2952,2812],{},[2109,2954,2941,2955,2957,2958,2084],{},[2060,2956,2797],{}," iterator value, default ",[2060,2959,2738],{},[2094,2961,2962,2967],{},[2109,2963,2964],{},[2060,2965,2966],{},"xu-class",[2109,2968,2969,2970,2084],{},"Toggles CSS classes from an object or JSON5 string, keys are class names, values are condition expressions. Example: ",[2060,2971,2972],{},"xu-class=\"{'active':'@is_selected'}\"",[2094,2974,2975,2980],{},[2109,2976,2977],{},[2060,2978,2979],{},"xu-store",[2109,2981,2982,2983,2084],{},"Parses a JSON5 object and stores its key and values as dynamic fields in the dataset. Example: ",[2060,2984,2985],{},"xu-store=\"{'status':'ready'}\"",[2094,2987,2988,2993],{},[2109,2989,2990],{},[2060,2991,2992],{},"xu-text",[2109,2994,2995,2996,2084],{},"Sets the element's inner text, usually driven through ",[2060,2997,2998],{},"xu-exp:xu-text",[2094,3000,3001,3006],{},[2109,3002,3003],{},[2060,3004,3005],{},"xu-html",[2109,3007,3008,3009,2084],{},"Sets raw inner HTML, usually driven through ",[2060,3010,3011],{},"xu-exp:xu-html",[2094,3013,3014,3019],{},[2109,3015,3016],{},[2060,3017,3018],{},"xu-content",[2109,3020,3021,3022,3025,3026,3029],{},"Sets the element's text content, usually driven through ",[2060,3023,3024],{},"xu-exp:xu-content",". Static text belongs in the node's ",[2060,3027,3028],{},"content"," property instead.",[2094,3031,3032,3036],{},[2109,3033,3034],{},[2060,3035,2651],{},[2109,3037,3038,3039,3042,3043,2084],{},"Registers the element under ",[2060,3040,3041],{},"SYS_GLOBAL_OBJ_REFS.\u003Cname>"," so expressions or scripts can target it, for loading and empty states or imperative access. Example: ",[2060,3044,3045],{},"xu-ref=\"orders_grid\"",[2094,3047,3048,3053],{},[2109,3049,3050],{},[2060,3051,3052],{},"xu-style",[2109,3054,3055,3056,3059],{},"Scoped CSS: plain CSS whose selectors are auto-prefixed with the node's ",[2060,3057,3058],{},"[xu-ui-id]"," (descendant and self forms), self-contained styling. The value must not contain any quote character.",[2094,3061,3062,3067],{},[2109,3063,3064],{},[2060,3065,3066],{},"xu-style-global",[2109,3068,3069,3070,3072,3073,3075],{},"Like ",[2060,3071,3052],{}," but injected globally, without the ",[2060,3074,3058],{}," scoping prefix. Same no-quotes rule.",[2094,3077,3078,3083],{},[2109,3079,3080],{},[2060,3081,3082],{},"xu-script",[2109,3084,3085,3086,3089,3090,3093,3094,2084],{},"Inline JS run when the node first becomes visible. The value must be a bare ",[2060,3087,3088],{},"function (el) { ... }"," expression, ",[2060,3091,3092],{},"eval","'d and called with the DOM element. Must not contain any quote character; scope all queries to ",[2060,3095,3096],{},"el",[2094,3098,3099,3104],{},[2109,3100,3101],{},[2060,3102,3103],{},"xu-cdn",[2109,3105,3106],{},"Loads an external CSS or JS resource by URL before the node renders.",[2094,3108,3109,3114],{},[2109,3110,3111],{},[2060,3112,3113],{},"xu-ui-plugin",[2109,3115,3116],{},"Attaches or configures an installed UI plugin on the element (sliders, charts).",[2094,3118,3119,3124],{},[2109,3120,3121],{},[2060,3122,3123],{},"xu-viewport",[2109,3125,3126],{},"Viewport-conditional rendering logic.",[2176,3128,3130],{"id":3129},"prefix-families","Prefix families",[2051,3132,3133,3134,3137,3138,3141],{},"Attribute families that take a suffix. ",[2060,3135,3136],{},"xu-on"," values are always arrays of handler objects;\n",[2060,3139,3140],{},"xu-exp"," values are always expression strings.",[222,3143,3144,3153],{},[2091,3145,3146],{},[2094,3147,3148,3151],{},[2097,3149,3150],{},"Family",[2097,3152,2862],{},[2104,3154,3155,3182],{},[2094,3156,3157,3162],{},[2109,3158,3159],{},[2060,3160,3161],{},"xu-on:\u003Cevent>",[2109,3163,3164,3165,2119,3168,2119,3171,3174,3175,3178,3179,3181],{},"Event listener (",[2060,3166,3167],{},"click",[2060,3169,3170],{},"input",[2060,3172,3173],{},"change",") whose value is an array of handler objects: ",[2060,3176,3177],{},"[{\"handler\":\"custom\",\"props\":{},\"workflow\":[...]}]",". The ",[2060,3180,183],{}," array holds action steps.",[2094,3183,3184,3189],{},[2109,3185,3186],{},[2060,3187,3188],{},"xu-exp:\u003Cattr>",[2109,3190,3191,3192,3195,3196,2119,3199,3202,3203,2119,3205,2813,3208,3210,3211,3214],{},"Evaluates the expression and applies the result to ",[2060,3193,3194],{},"\u003Cattr>",", works for HTML attributes (",[2060,3197,3198],{},"xu-exp:value",[2060,3200,3201],{},"xu-exp:src",") and xu attributes (",[2060,3204,3024],{},[2060,3206,3207],{},"xu-exp:class",[2060,3209,3207],{}," replaces the static ",[2060,3212,3213],{},"class"," attribute entirely, layout classes belong inside the expression.",[2184,3216,3218],{"className":2186,"code":3217,"language":2188,"meta":2189,"style":2189},"\"xu-on:click\": [{\n  \"handler\": \"custom\",\n  \"props\": {},\n  \"workflow\": [\n    { \"id\": \"1\", \"data\": { \"action\": \"update\", \"name\": { \"value\": \"@saving_v: true\" }, \"enabled\": true }, \"props\": {} },\n    { \"id\": \"2\", \"data\": { \"action\": \"set_data\", \"name\": { \"prog\": \"392_std_...\", \"properties\": {}, \"parameters\": {} }, \"enabled\": true }, \"props\": { \"condition\": \"@form_valid_v\" } }\n  ]\n}]\n",[2060,3219,3220,3228,3240,3248,3256,3318,3393,3398],{"__ignoreMap":2189},[2193,3221,3222,3225],{"class":2195,"line":2196},[2193,3223,3224],{"class":2213},"\"xu-on:click\"",[2193,3226,3227],{"class":2199},": [{\n",[2193,3229,3230,3233,3235,3238],{"class":2195,"line":2203},[2193,3231,3232],{"class":2206},"  \"handler\"",[2193,3234,2210],{"class":2199},[2193,3236,3237],{"class":2213},"\"custom\"",[2193,3239,2217],{"class":2199},[2193,3241,3242,3245],{"class":2195,"line":2220},[2193,3243,3244],{"class":2206},"  \"props\"",[2193,3246,3247],{"class":2199},": {},\n",[2193,3249,3250,3253],{"class":2195,"line":2233},[2193,3251,3252],{"class":2206},"  \"workflow\"",[2193,3254,3255],{"class":2199},": [\n",[2193,3257,3258,3261,3264,3266,3269,3271,3274,3276,3279,3281,3284,3286,3289,3291,3294,3296,3299,3302,3305,3307,3310,3312,3315],{"class":2195,"line":2246},[2193,3259,3260],{"class":2199},"    { ",[2193,3262,3263],{"class":2206},"\"id\"",[2193,3265,2210],{"class":2199},[2193,3267,3268],{"class":2213},"\"1\"",[2193,3270,2119],{"class":2199},[2193,3272,3273],{"class":2206},"\"data\"",[2193,3275,2278],{"class":2199},[2193,3277,3278],{"class":2206},"\"action\"",[2193,3280,2210],{"class":2199},[2193,3282,3283],{"class":2213},"\"update\"",[2193,3285,2119],{"class":2199},[2193,3287,3288],{"class":2206},"\"name\"",[2193,3290,2278],{"class":2199},[2193,3292,3293],{"class":2206},"\"value\"",[2193,3295,2210],{"class":2199},[2193,3297,3298],{"class":2213},"\"@saving_v: true\"",[2193,3300,3301],{"class":2199}," }, ",[2193,3303,3304],{"class":2206},"\"enabled\"",[2193,3306,2210],{"class":2199},[2193,3308,3309],{"class":2206},"true",[2193,3311,3301],{"class":2199},[2193,3313,3314],{"class":2206},"\"props\"",[2193,3316,3317],{"class":2199},": {} },\n",[2193,3319,3320,3322,3324,3326,3329,3331,3333,3335,3337,3339,3342,3344,3346,3348,3351,3353,3356,3358,3361,3364,3367,3370,3372,3374,3376,3378,3380,3382,3385,3387,3390],{"class":2195,"line":2259},[2193,3321,3260],{"class":2199},[2193,3323,3263],{"class":2206},[2193,3325,2210],{"class":2199},[2193,3327,3328],{"class":2213},"\"2\"",[2193,3330,2119],{"class":2199},[2193,3332,3273],{"class":2206},[2193,3334,2278],{"class":2199},[2193,3336,3278],{"class":2206},[2193,3338,2210],{"class":2199},[2193,3340,3341],{"class":2213},"\"set_data\"",[2193,3343,2119],{"class":2199},[2193,3345,3288],{"class":2206},[2193,3347,2278],{"class":2199},[2193,3349,3350],{"class":2206},"\"prog\"",[2193,3352,2210],{"class":2199},[2193,3354,3355],{"class":2213},"\"392_std_...\"",[2193,3357,2119],{"class":2199},[2193,3359,3360],{"class":2206},"\"properties\"",[2193,3362,3363],{"class":2199},": {}, ",[2193,3365,3366],{"class":2206},"\"parameters\"",[2193,3368,3369],{"class":2199},": {} }, ",[2193,3371,3304],{"class":2206},[2193,3373,2210],{"class":2199},[2193,3375,3309],{"class":2206},[2193,3377,3301],{"class":2199},[2193,3379,3314],{"class":2206},[2193,3381,2278],{"class":2199},[2193,3383,3384],{"class":2206},"\"condition\"",[2193,3386,2210],{"class":2199},[2193,3388,3389],{"class":2213},"\"@form_valid_v\"",[2193,3391,3392],{"class":2199}," } }\n",[2193,3394,3395],{"class":2195,"line":2272},[2193,3396,3397],{"class":2199},"  ]\n",[2193,3399,3400],{"class":2195,"line":2311},[2193,3401,3402],{"class":2199},"}]\n",[2051,3404,3405,3406,3409,3410,3412,3413,3416,3417,3420],{},"The value of an ",[2060,3407,3408],{},"xu-on:*"," attribute is always an array of handler objects, and each ",[2060,3411,183],{}," is\nan array of action steps (the full action reference is below, under Logic programs and\nworkflows). A step's ",[2060,3414,3415],{},"props.condition"," gates it; ",[2060,3418,3419],{},"props.async: true"," fires it without waiting.",[2176,3422,3424],{"id":3423},"critical-semantics","Critical semantics",[2364,3426,3427,3442,3462,3470,3486],{},[2367,3428,3429,3431,3432,3435,3436,3438,3439,2084],{},[2060,3430,3207],{}," ",[2055,3433,3434],{},"replaces"," the static ",[2060,3437,3213],{}," attribute rather than adding to it. An element\ncarrying both has the static one ignored, so the layout classes belong inside the expression too:\n",[2060,3440,3441],{},"xu-exp:class=\"'card p-4 ' + (@active_v ? 'ring' : '')\"",[2367,3443,3444,3446,3447,3089,3449,3451,3452,3455,3456,3458,3459,2084],{},[2060,3445,3082],{}," takes a bare ",[2060,3448,3088],{},[2060,3450,3092],{},"'d and called with the DOM\nelement once the node becomes visible. Guard against re-runs (",[2060,3453,3454],{},"if (el.__bound) return; el.__bound = true;",") and scope every query to ",[2060,3457,3096],{},", never to ",[2060,3460,3461],{},"document",[2367,3463,3464,3466,3467,3469],{},[2060,3465,3052],{}," is auto-scoped: every selector is prefixed with the node's ",[2060,3468,3058],{},", so plain\nelement and class selectors stay local and never leak.",[2367,3471,3472,3473,3475,3476,3478,3479,2700,3482,3485],{},"Neither ",[2060,3474,3082],{}," nor ",[2060,3477,3052],{}," values may contain a quote character (",[2060,3480,3481],{},"'",[2060,3483,3484],{},"\"","), the\ndesigner canvas serializes attributes unescaped and one quote corrupts the component. The\nJavaScript programs section below covers quote-free techniques.",[2367,3487,3488,3489,3491,3492,3494],{},"Static text belongs in an element's ",[2060,3490,3028],{}," property. ",[2060,3493,3024],{}," is for dynamic text\nonly.",[2176,3496,3498],{"id":3497},"tags","Tags",[2051,3500,3501,3502,2119,3505,2119,3508,2119,3511,2217,3514,2119,3517,2084],{},"Authoring tags besides plain HTML: ",[2060,3503,3504],{},"xu-template",[2060,3506,3507],{},"xu-single-view",[2060,3509,3510],{},"xu-multi-view",[2060,3512,3513],{},"xu-panel",[2060,3515,3516],{},"xu-teleport",[2060,3518,3519],{},"xu-slot",[2364,3521,3522,3527,3532,3571,3583],{},[2367,3523,3524,3526],{},[2060,3525,3507],{}," scopes a single record (a form root, also usable nested).",[2367,3528,3529,3531],{},[2060,3530,3510],{}," repeats its children once per row of the bound data.",[2367,3533,3534,3536,3537,3540,3541,3544,3545,2119,3547,2119,3549,2119,3552,2119,3555,2119,3558,2119,3561,2119,3564,2119,3567,3570],{},[2060,3535,3513],{}," embeds another prog (",[2060,3538,3539],{},"program"," attribute plus ",[2060,3542,3543],{},"xu-exp:\u003Cparam>"," inputs). Only standard\nHTML attributes (",[2060,3546,3213],{},[2060,3548,2683],{},[2060,3550,3551],{},"style",[2060,3553,3554],{},"title",[2060,3556,3557],{},"hidden",[2060,3559,3560],{},"slot",[2060,3562,3563],{},"name",[2060,3565,3566],{},"role",[2060,3568,3569],{},"tabindex",")\nbelong on it besides the param expressions.",[2367,3572,3573,3575,3576,2700,3579,3582],{},[2060,3574,3516],{}," renders its children at another DOM target (",[2060,3577,3578],{},"to",[2060,3580,3581],{},"xu-exp:to",").",[2367,3584,2677,3585,3588,3589,2119,3592,3595],{},[2055,3586,3587],{},"capitalized"," tag name (",[2060,3590,3591],{},"Button",[2060,3593,3594],{},"Card",") is a compiled component, not an HTML element, see\nEmbedding below.",[2065,3597,3598],{"id":2128},"Components",[2051,3600,3601,3602,3605,3606,3608,3609,3611,3612,3614,3615,3617,3618,3582],{},"A component (",[2060,3603,3604],{},"menuType: \"component\"",") is a UI unit: an element tree (",[2060,3607,2503],{},") bound to local\nstate (",[2060,3610,2506],{},"), optional data (",[2060,3613,2512],{},"), lifecycle logic (",[2060,3616,2509],{},") and an\ninput\u002Foutput interface (",[2060,3619,2550],{},[2176,3621,3622],{"id":2500},"Properties",[2184,3624,3626],{"className":2186,"code":3625,"language":2188,"meta":2189,"style":2189},"{\n  \"menuType\": \"component\", \"menuName\": \"OrderList\",\n  \"renderType\": \"form\",\n  \"uiFramework\": \"@xuda.io\u002Fxuda-framework-plugin-tailwind\",\n  \"rwMode\": \"R\",\n  \"progParams\": [{ \"id\": 1, \"data\": { \"dir\": \"in\", \"parameter\": \"order_id_in\", \"type\": \"string\" }, \"props\": {} }]\n}\n",[2060,3627,3628,3632,3652,3664,3676,3688,3744],{"__ignoreMap":2189},[2193,3629,3630],{"class":2195,"line":2196},[2193,3631,2200],{"class":2199},[2193,3633,3634,3637,3639,3641,3643,3645,3647,3650],{"class":2195,"line":2203},[2193,3635,3636],{"class":2206},"  \"menuType\"",[2193,3638,2210],{"class":2199},[2193,3640,2286],{"class":2213},[2193,3642,2119],{"class":2199},[2193,3644,2291],{"class":2206},[2193,3646,2210],{"class":2199},[2193,3648,3649],{"class":2213},"\"OrderList\"",[2193,3651,2217],{"class":2199},[2193,3653,3654,3657,3659,3662],{"class":2195,"line":2220},[2193,3655,3656],{"class":2206},"  \"renderType\"",[2193,3658,2210],{"class":2199},[2193,3660,3661],{"class":2213},"\"form\"",[2193,3663,2217],{"class":2199},[2193,3665,3666,3669,3671,3674],{"class":2195,"line":2233},[2193,3667,3668],{"class":2206},"  \"uiFramework\"",[2193,3670,2210],{"class":2199},[2193,3672,3673],{"class":2213},"\"@xuda.io\u002Fxuda-framework-plugin-tailwind\"",[2193,3675,2217],{"class":2199},[2193,3677,3678,3681,3683,3686],{"class":2195,"line":2246},[2193,3679,3680],{"class":2206},"  \"rwMode\"",[2193,3682,2210],{"class":2199},[2193,3684,3685],{"class":2213},"\"R\"",[2193,3687,2217],{"class":2199},[2193,3689,3690,3693,3696,3698,3700,3703,3705,3707,3709,3712,3714,3717,3719,3722,3724,3727,3729,3732,3734,3737,3739,3741],{"class":2195,"line":2259},[2193,3691,3692],{"class":2206},"  \"progParams\"",[2193,3694,3695],{"class":2199},": [{ ",[2193,3697,3263],{"class":2206},[2193,3699,2210],{"class":2199},[2193,3701,3702],{"class":2206},"1",[2193,3704,2119],{"class":2199},[2193,3706,3273],{"class":2206},[2193,3708,2278],{"class":2199},[2193,3710,3711],{"class":2206},"\"dir\"",[2193,3713,2210],{"class":2199},[2193,3715,3716],{"class":2213},"\"in\"",[2193,3718,2119],{"class":2199},[2193,3720,3721],{"class":2206},"\"parameter\"",[2193,3723,2210],{"class":2199},[2193,3725,3726],{"class":2213},"\"order_id_in\"",[2193,3728,2119],{"class":2199},[2193,3730,3731],{"class":2206},"\"type\"",[2193,3733,2210],{"class":2199},[2193,3735,3736],{"class":2213},"\"string\"",[2193,3738,3301],{"class":2199},[2193,3740,3314],{"class":2206},[2193,3742,3743],{"class":2199},": {} }]\n",[2193,3745,3746],{"class":2195,"line":2272},[2193,3747,2362],{"class":2199},[2364,3749,3750,3772,3789,3805],{},[2367,3751,3752,3755,3756,3759,3760,3762,3763,2392,3766,3769,3770,3582],{},[2060,3753,3754],{},"renderType"," is ",[2060,3757,3758],{},"form"," for a single record (root element ",[2060,3761,3507],{},") or ",[2060,3764,3765],{},"grid",[2060,3767,3768],{},"list"," for\none repeated per data row (root element ",[2060,3771,3510],{},[2367,3773,3774,3755,3777,3780,3781,3784,3785,3788],{},[2060,3775,3776],{},"rwMode",[2060,3778,3779],{},"R"," for read or ",[2060,3782,3783],{},"U"," for update; ",[2060,3786,3787],{},"allowCreate"," says whether a new row can be inserted\nwhen none matches.",[2367,3790,3791,3794,3795,2392,3798,3801,3802,2084],{},[2060,3792,3793],{},"progParams"," naming convention: parameters end ",[2060,3796,3797],{},"_in",[2060,3799,3800],{},"_out",", component-local virtual fields end\n",[2060,3803,3804],{},"_v",[2367,3806,3807,3810],{},[2060,3808,3809],{},"uiFramework"," mirrors whatever the project's existing components already use. An existing\nproject that omits it should keep omitting it, setting a framework plugin the project's drive\ndoes not actually serve stalls the live preview on a blank screen.",[2176,3812,3814],{"id":3813},"the-element-tree-progui","The element tree (progUi)",[2184,3816,3818],{"className":2186,"code":3817,"language":2188,"meta":2189,"style":2189},"{\n  \"id\": \"root\", \"type\": \"element\", \"tagName\": \"xu-single-view\", \"attributes\": {},\n  \"children\": [\n    { \"id\": \"ui-...\", \"type\": \"element\", \"tagName\": \"div\",\n      \"attributes\": { \"class\": \"card\", \"xu-style\": \".card { padding: 16px; border-radius: 12px; }\" },\n      \"children\": [\n        { \"id\": \"ui-...\", \"type\": \"element\", \"tagName\": \"h2\", \"content\": \"Orders\", \"attributes\": {}, \"children\": [] },\n        { \"id\": \"ui-...\", \"type\": \"element\", \"tagName\": \"input\", \"children\": [],\n          \"attributes\": { \"type\": \"text\", \"placeholder\": \"Search\", \"xu-bind\": \"search_v\" } }\n      ] }\n  ]\n}\n",[2060,3819,3820,3824,3860,3867,3897,3924,3931,3980,4014,4050,4056,4061],{"__ignoreMap":2189},[2193,3821,3822],{"class":2195,"line":2196},[2193,3823,2200],{"class":2199},[2193,3825,3826,3829,3831,3834,3836,3838,3840,3843,3845,3848,3850,3853,3855,3858],{"class":2195,"line":2203},[2193,3827,3828],{"class":2206},"  \"id\"",[2193,3830,2210],{"class":2199},[2193,3832,3833],{"class":2213},"\"root\"",[2193,3835,2119],{"class":2199},[2193,3837,3731],{"class":2206},[2193,3839,2210],{"class":2199},[2193,3841,3842],{"class":2213},"\"element\"",[2193,3844,2119],{"class":2199},[2193,3846,3847],{"class":2206},"\"tagName\"",[2193,3849,2210],{"class":2199},[2193,3851,3852],{"class":2213},"\"xu-single-view\"",[2193,3854,2119],{"class":2199},[2193,3856,3857],{"class":2206},"\"attributes\"",[2193,3859,3247],{"class":2199},[2193,3861,3862,3865],{"class":2195,"line":2220},[2193,3863,3864],{"class":2206},"  \"children\"",[2193,3866,3255],{"class":2199},[2193,3868,3869,3871,3873,3875,3878,3880,3882,3884,3886,3888,3890,3892,3895],{"class":2195,"line":2233},[2193,3870,3260],{"class":2199},[2193,3872,3263],{"class":2206},[2193,3874,2210],{"class":2199},[2193,3876,3877],{"class":2213},"\"ui-...\"",[2193,3879,2119],{"class":2199},[2193,3881,3731],{"class":2206},[2193,3883,2210],{"class":2199},[2193,3885,3842],{"class":2213},[2193,3887,2119],{"class":2199},[2193,3889,3847],{"class":2206},[2193,3891,2210],{"class":2199},[2193,3893,3894],{"class":2213},"\"div\"",[2193,3896,2217],{"class":2199},[2193,3898,3899,3902,3904,3907,3909,3912,3914,3917,3919,3922],{"class":2195,"line":2246},[2193,3900,3901],{"class":2206},"      \"attributes\"",[2193,3903,2278],{"class":2199},[2193,3905,3906],{"class":2206},"\"class\"",[2193,3908,2210],{"class":2199},[2193,3910,3911],{"class":2213},"\"card\"",[2193,3913,2119],{"class":2199},[2193,3915,3916],{"class":2206},"\"xu-style\"",[2193,3918,2210],{"class":2199},[2193,3920,3921],{"class":2213},"\".card { padding: 16px; border-radius: 12px; }\"",[2193,3923,2308],{"class":2199},[2193,3925,3926,3929],{"class":2195,"line":2259},[2193,3927,3928],{"class":2206},"      \"children\"",[2193,3930,3255],{"class":2199},[2193,3932,3933,3936,3938,3940,3942,3944,3946,3948,3950,3952,3954,3956,3959,3961,3964,3966,3968,3970,3972,3974,3977],{"class":2195,"line":2272},[2193,3934,3935],{"class":2199},"        { ",[2193,3937,3263],{"class":2206},[2193,3939,2210],{"class":2199},[2193,3941,3877],{"class":2213},[2193,3943,2119],{"class":2199},[2193,3945,3731],{"class":2206},[2193,3947,2210],{"class":2199},[2193,3949,3842],{"class":2213},[2193,3951,2119],{"class":2199},[2193,3953,3847],{"class":2206},[2193,3955,2210],{"class":2199},[2193,3957,3958],{"class":2213},"\"h2\"",[2193,3960,2119],{"class":2199},[2193,3962,3963],{"class":2206},"\"content\"",[2193,3965,2210],{"class":2199},[2193,3967,2296],{"class":2213},[2193,3969,2119],{"class":2199},[2193,3971,3857],{"class":2206},[2193,3973,3363],{"class":2199},[2193,3975,3976],{"class":2206},"\"children\"",[2193,3978,3979],{"class":2199},": [] },\n",[2193,3981,3982,3984,3986,3988,3990,3992,3994,3996,3998,4000,4002,4004,4007,4009,4011],{"class":2195,"line":2311},[2193,3983,3935],{"class":2199},[2193,3985,3263],{"class":2206},[2193,3987,2210],{"class":2199},[2193,3989,3877],{"class":2213},[2193,3991,2119],{"class":2199},[2193,3993,3731],{"class":2206},[2193,3995,2210],{"class":2199},[2193,3997,3842],{"class":2213},[2193,3999,2119],{"class":2199},[2193,4001,3847],{"class":2206},[2193,4003,2210],{"class":2199},[2193,4005,4006],{"class":2213},"\"input\"",[2193,4008,2119],{"class":2199},[2193,4010,3976],{"class":2206},[2193,4012,4013],{"class":2199},": [],\n",[2193,4015,4016,4019,4021,4023,4025,4028,4030,4033,4035,4038,4040,4043,4045,4048],{"class":2195,"line":2359},[2193,4017,4018],{"class":2206},"          \"attributes\"",[2193,4020,2278],{"class":2199},[2193,4022,3731],{"class":2206},[2193,4024,2210],{"class":2199},[2193,4026,4027],{"class":2213},"\"text\"",[2193,4029,2119],{"class":2199},[2193,4031,4032],{"class":2206},"\"placeholder\"",[2193,4034,2210],{"class":2199},[2193,4036,4037],{"class":2213},"\"Search\"",[2193,4039,2119],{"class":2199},[2193,4041,4042],{"class":2206},"\"xu-bind\"",[2193,4044,2210],{"class":2199},[2193,4046,4047],{"class":2213},"\"search_v\"",[2193,4049,3392],{"class":2199},[2193,4051,4053],{"class":2195,"line":4052},10,[2193,4054,4055],{"class":2199},"      ] }\n",[2193,4057,4059],{"class":2195,"line":4058},11,[2193,4060,3397],{"class":2199},[2193,4062,4064],{"class":2195,"line":4063},12,[2193,4065,2362],{"class":2199},[2051,4067,4068,4069,4072,4073,4076,4077,4080,4081,2704,4084,2880,4087,2700,4090,4093,4094,4096,4097,4108],{},"The factory ",[2060,4070,4071],{},"root"," node stays; a build works inside its ",[2060,4074,4075],{},"children",". Every node needs a unique id\n(new nodes use ",[2060,4078,4079],{},"ui-\u003Cuuid>","), ",[2060,4082,4083],{},"type: \"element\"",[2060,4085,4086],{},"tagName",[2060,4088,4089],{},"comment",[2060,4091,4092],{},"text"," node types,\nstatic text lives in ",[2060,4095,3028],{}," instead. ",[2055,4098,4099,4100,4103,4104,4107],{},"Every node needs ",[2060,4101,4102],{},"attributes: {}"," and ",[2060,4105,4106],{},"children: []","\neven when empty",", the designer canvas serializer dereferences both on every node and an omission\nbreaks the component's own preview.",[2176,4110,4112],{"id":4111},"embedding-xu-panel-or-a-compiled-component","Embedding: xu-panel or a compiled component",[2051,4114,4115,4116,4118],{},"Both mount transparently, no wrapper element, and both are decided by one signal: whether\n",[2060,4117,4086],{}," starts with a capital letter.",[2364,4120,4121,4146],{},[2367,4122,4123,4127,4128,4130,4131,4133,4134,4136,4137,4140,4141,4143,4144,2084],{},[2055,4124,4125],{},[2060,4126,3513],{},", lower-case ",[2060,4129,4086],{}," plus a ",[2060,4132,3539],{}," attribute, embeds another prog, a\ndatabase-bound or stateful child with its own fields and events. ",[2060,4135,3539],{}," is the child's id\n(or ",[2060,4138,4139],{},"xu-exp:prog"," for a dynamic one), values reach its ",[2060,4142,3797],{}," params through ",[2060,4145,3543],{},[2367,4147,4148,4130,4151,4153,4154,4157,4158,4160],{},[2055,4149,4150],{},"A capitalized tag",[2060,4152,860],{}," attribute mounts a compiled component, a design-system\nprimitive or a part the app itself compiled. Every plain attribute becomes a prop\n(",[2060,4155,4156],{},"props.\u003Cname>","), never a DOM attribute, since the component renders no element of its own. A\ncomponent node has no out-params, unlike ",[2060,4159,3513],{}," nothing writes a value back to your fields.",[2826,4162,4165],{"title":4163,"type":4164},"Capitalization alone decides","danger",[2051,4166,4167,4168,4171,4172,4174,4175,4177],{},"A typo'd ",[2060,4169,4170],{},"\u003CButon>"," is still claimed as a component tag, never falls back to an unknown HTML\nelement, and throws at mount naming the tag, the library, and every source tried. ",[2060,4173,2161],{},"\ndoes not check component tags or ",[2060,4176,860],{}," values today, the live preview is the only check.",[2176,4179,2506],{"id":4180},"progfields",[2184,4182,4184],{"className":2186,"code":4183,"language":2188,"meta":2189,"style":2189},"[\n  { \"id\": \"\u003Cuuid>\", \"data\": { \"type\": \"virtual\", \"field_id\": \"search_v\" }, \"props\": { \"fieldType\": \"string\" }, \"workflow\": [] },\n  { \"id\": \"\u003Cuuid>\", \"data\": { \"type\": \"table\", \"field_id\": \"ORD_Total\" }, \"props\": { \"fieldType\": \"number\" }, \"workflow\": [] }\n]\n",[2060,4185,4186,4191,4245,4297],{"__ignoreMap":2189},[2193,4187,4188],{"class":2195,"line":2196},[2193,4189,4190],{"class":2199},"[\n",[2193,4192,4193,4196,4198,4200,4203,4205,4207,4209,4211,4213,4216,4218,4221,4223,4225,4227,4229,4231,4234,4236,4238,4240,4243],{"class":2195,"line":2203},[2193,4194,4195],{"class":2199},"  { ",[2193,4197,3263],{"class":2206},[2193,4199,2210],{"class":2199},[2193,4201,4202],{"class":2213},"\"\u003Cuuid>\"",[2193,4204,2119],{"class":2199},[2193,4206,3273],{"class":2206},[2193,4208,2278],{"class":2199},[2193,4210,3731],{"class":2206},[2193,4212,2210],{"class":2199},[2193,4214,4215],{"class":2213},"\"virtual\"",[2193,4217,2119],{"class":2199},[2193,4219,4220],{"class":2206},"\"field_id\"",[2193,4222,2210],{"class":2199},[2193,4224,4047],{"class":2213},[2193,4226,3301],{"class":2199},[2193,4228,3314],{"class":2206},[2193,4230,2278],{"class":2199},[2193,4232,4233],{"class":2206},"\"fieldType\"",[2193,4235,2210],{"class":2199},[2193,4237,3736],{"class":2213},[2193,4239,3301],{"class":2199},[2193,4241,4242],{"class":2206},"\"workflow\"",[2193,4244,3979],{"class":2199},[2193,4246,4247,4249,4251,4253,4255,4257,4259,4261,4263,4265,4268,4270,4272,4274,4277,4279,4281,4283,4285,4287,4290,4292,4294],{"class":2195,"line":2220},[2193,4248,4195],{"class":2199},[2193,4250,3263],{"class":2206},[2193,4252,2210],{"class":2199},[2193,4254,4202],{"class":2213},[2193,4256,2119],{"class":2199},[2193,4258,3273],{"class":2206},[2193,4260,2278],{"class":2199},[2193,4262,3731],{"class":2206},[2193,4264,2210],{"class":2199},[2193,4266,4267],{"class":2213},"\"table\"",[2193,4269,2119],{"class":2199},[2193,4271,4220],{"class":2206},[2193,4273,2210],{"class":2199},[2193,4275,4276],{"class":2213},"\"ORD_Total\"",[2193,4278,3301],{"class":2199},[2193,4280,3314],{"class":2206},[2193,4282,2278],{"class":2199},[2193,4284,4233],{"class":2206},[2193,4286,2210],{"class":2199},[2193,4288,4289],{"class":2213},"\"number\"",[2193,4291,3301],{"class":2199},[2193,4293,4242],{"class":2206},[2193,4295,4296],{"class":2199},": [] }\n",[2193,4298,4299],{"class":2195,"line":2233},[2193,4300,4301],{"class":2199},"]\n",[2051,4303,4304,3755,4306,4308,4309,4311,4312,2392,4314,4316,4317,4319,4320,4323,4324,4327,4328,2084],{},[2060,4305,2690],{},[2060,4307,2694],{}," for local state, ",[2060,4310,222],{}," for a column of the bound datasource, or\n",[2060,4313,2699],{},[2060,4315,2703],{},". A field's ",[2060,4318,183],{}," runs on change. A default sets\n",[2060,4321,4322],{},"props.fieldValue","; a computed field sets ",[2060,4325,4326],{},"props.fieldComputed: true"," plus\n",[2060,4329,4330],{},"propExpressions.fieldValue",[2176,4332,2512],{"id":4333},"progdatasource",[2051,4335,4336,4337,4340,4341,4344,4345,4347,4348,4351,4352,4355,4356,3755,4359,2119,4361,2119,4363,2119,4365,2119,4368,4371],{},"A single record by key (form): ",[2060,4338,4339],{},"dataSourceFilterModelType: \"index\""," with a ",[2060,4342,4343],{},"dataSourceIndexId","\nthat exists on the table's own ",[2060,4346,2526],{},". A filtered list (grid or list):\n",[2060,4349,4350],{},"dataSourceFilterModelType: \"query\""," with ",[2060,4353,4354],{},"filterModelMongoFx",", a Mongo-style expression string.\n",[2060,4357,4358],{},"dataSourceType",[2060,4360,222],{},[2060,4362,2719],{},[2060,4364,2188],{},[2060,4366,4367],{},"csv",[2060,4369,4370],{},"none",", or empty for a purely presentational\ncomponent with no data source at all.",[2176,4373,4375],{"id":4374},"progevents-and-the-three-lifecycle-hooks","progEvents and the three lifecycle hooks",[2051,4377,4378,4379,2119,4382,2119,4385,2119,4388,2119,4391,2217,4394,2119,4397,2119,4400,2119,4403,2119,4406,2119,4409,4412,4413,4415,4416,4419,4420,4422],{},"Event types: ",[2060,4380,4381],{},"on_load",[2060,4383,4384],{},"on_exit",[2060,4386,4387],{},"before_record",[2060,4389,4390],{},"after_record",[2060,4392,4393],{},"record_not_found",[2060,4395,4396],{},"locate_not_found",[2060,4398,4399],{},"screen_ready",[2060,4401,4402],{},"on_refresh",[2060,4404,4405],{},"on_unload",[2060,4407,4408],{},"client_interval",[2060,4410,4411],{},"user_defined",".\n",[2060,4414,4411],{}," events fire from anywhere with the\n",[2060,4417,4418],{},"raise_event"," action; ",[2060,4421,4399],{}," is the usual mount hook.",[2051,4424,4425],{},"A component's three built-in hooks split the work, using the wrong one is a common source of bugs:",[4427,4428,4429,4431,4434,4436,4445,4447],"steps",{},[2176,4430,4399],{"id":4399},[2051,4432,4433],{},"Fires once per instance. Create DOM and widgets here.",[2176,4435,4402],{"id":4402},[2051,4437,4438,4439,4441,4442,4444],{},"Fires after every load, including the first, right after ",[2060,4440,4399],{},". Hand new data to widgets\nthat already exist. Putting refresh work in ",[2060,4443,4399],{}," instead re-runs create code against DOM\nthat still exists and stacks a second widget.",[2176,4446,4405],{"id":4405},[2051,4448,4449,4450,2392,4452,4455,4456,4458],{},"Fires when the instance is torn down. Destroy what the prog created, widgets, timers,\n",[2060,4451,3461],{},[2060,4453,4454],{},"window"," listeners, observers. The engine can only free what it created, a listener\nbound to ",[2060,4457,3461],{}," outlives the panel otherwise.",[2176,4460,4462],{"id":4461},"patterns","Patterns",[2364,4464,4465,4482,4492],{},[2367,4466,4467,4470,4471,4474,4475,4477,4478,4481],{},[2055,4468,4469],{},"Loading and empty states",": put ",[2060,4472,4473],{},"xu-ref=\"myref\""," on the data-bound element, then gate\nskeleton or empty elements with ",[2060,4476,2816],{}," over ",[2060,4479,4480],{},"(@SYS_GLOBAL_OBJ_REFS).myref",", its dataset\nattaches once data arrives.",[2367,4483,4484,4487,4488,4491],{},[2055,4485,4486],{},"Modals",": build the dialog as its own component, open it with the ",[2060,4489,4490],{},"call_modal"," action.",[2367,4493,4494,2210,4497,4351,4500,2392,4503,4506,4507,4509],{},[2055,4495,4496],{},"Save or delete a bound row",[2060,4498,4499],{},"invoke_action",[2060,4501,4502],{},"act_save",[2060,4504,4505],{},"act_delete",", or a dedicated\n",[2060,4508,2426],{}," prog for anything past the current row.",[2065,4511,4513],{"id":4512},"logic-programs-and-workflows","Logic programs and workflows",[2051,4515,4516,4517,2119,4519,2217,4521,2119,4523,4525],{},"Logic prog types share a component's data machinery (",[2060,4518,2512],{},[2060,4520,2506],{},[2060,4522,2509],{},[2060,4524,2550],{},") without any UI:",[222,4527,4528,4537],{},[2091,4529,4530],{},[2094,4531,4532,4534],{},[2097,4533,2484],{},[2097,4535,4536],{},"What it is",[2104,4538,4539,4556,4573,4582,4613,4650],{},[2094,4540,4541,4545],{},[2109,4542,4543],{},[2060,4544,2423],{},[2109,4546,4547,4548,2392,4550,4552,4553,2084],{},"A saved query, called with the ",[2060,4549,2423],{},[2060,4551,2429],{}," action, results land in the field named by ",[2060,4554,4555],{},"outputField",[2094,4557,4558,4562],{},[2109,4559,4560],{},[2060,4561,2426],{},[2109,4563,4564,4565,4567,4568,2392,4570,4572],{},"A write, update or delete unit, binds the target row through ",[2060,4566,2512],{},"; ",[2060,4569,4387],{},[2060,4571,4390],{}," events carry the follow-up logic.",[2094,4574,4575,4579],{},[2109,4576,4577],{},[2060,4578,2429],{},[2109,4580,4581],{},"Iterative record-by-record execution over a datasource or array; lifecycle events fire per record.",[2094,4583,4584,4588],{},[2109,4585,4586],{},[2060,4587,2441],{},[2109,4589,4590,4591,4594,4595,4597,4598,2119,4600,2119,4603,2119,4605,2119,4608,2119,4610,3582],{},"An HTTP endpoint of the project. ",[2060,4592,4593],{},"scriptData.value"," is the response template, ",[2060,4596,2500],{}," carries the output format (",[2060,4599,2188],{},[2060,4601,4602],{},"html",[2060,4604,4092],{},[2060,4606,4607],{},"xml",[2060,4609,4367],{},[2060,4611,4612],{},"pdf",[2094,4614,4615,4619],{},[2109,4616,4617],{},[2060,4618,2432],{},[2109,4620,4621,4622,2392,4625,2392,4628,2392,4630,4633,4634,2392,4637,2392,4640,2392,4643,4646,4647,2084],{},"A reusable message: type (",[2060,4623,4624],{},"info",[2060,4626,4627],{},"success",[2060,4629,2829],{},[2060,4631,4632],{},"error",") and display (",[2060,4635,4636],{},"toast",[2060,4638,4639],{},"modal",[2060,4641,4642],{},"browser",[2060,4644,4645],{},"console","), called with ",[2060,4648,4649],{},"call_alert",[2094,4651,4652,4656],{},[2109,4653,4654],{},[2060,4655,280],{},[2109,4657,4658,4659,4661,4662,2084],{},"A URL routing entry (",[2060,4660,2587],{},"), tree parent ",[2060,4663,2461],{},[2176,4665,4667],{"id":4666},"parameters","Parameters",[2184,4669,4671],{"className":2186,"code":4670,"language":2188,"meta":2189,"style":2189},"\"progParams\": [\n  { \"id\": 1, \"data\": { \"dir\": \"in\",  \"parameter\": \"order_id_in\", \"type\": \"string\" }, \"props\": {} },\n  { \"id\": 2, \"data\": { \"dir\": \"out\", \"parameter\": \"total_out\",   \"type\": \"number\" }, \"props\": {} }\n]\n",[2060,4672,4673,4680,4725,4774],{"__ignoreMap":2189},[2193,4674,4675,4678],{"class":2195,"line":2196},[2193,4676,4677],{"class":2213},"\"progParams\"",[2193,4679,3255],{"class":2199},[2193,4681,4682,4684,4686,4688,4690,4692,4694,4696,4698,4700,4702,4705,4707,4709,4711,4713,4715,4717,4719,4721,4723],{"class":2195,"line":2203},[2193,4683,4195],{"class":2199},[2193,4685,3263],{"class":2206},[2193,4687,2210],{"class":2199},[2193,4689,3702],{"class":2206},[2193,4691,2119],{"class":2199},[2193,4693,3273],{"class":2206},[2193,4695,2278],{"class":2199},[2193,4697,3711],{"class":2206},[2193,4699,2210],{"class":2199},[2193,4701,3716],{"class":2213},[2193,4703,4704],{"class":2199},",  ",[2193,4706,3721],{"class":2206},[2193,4708,2210],{"class":2199},[2193,4710,3726],{"class":2213},[2193,4712,2119],{"class":2199},[2193,4714,3731],{"class":2206},[2193,4716,2210],{"class":2199},[2193,4718,3736],{"class":2213},[2193,4720,3301],{"class":2199},[2193,4722,3314],{"class":2206},[2193,4724,3317],{"class":2199},[2193,4726,4727,4729,4731,4733,4736,4738,4740,4742,4744,4746,4749,4751,4753,4755,4758,4761,4763,4765,4767,4769,4771],{"class":2195,"line":2220},[2193,4728,4195],{"class":2199},[2193,4730,3263],{"class":2206},[2193,4732,2210],{"class":2199},[2193,4734,4735],{"class":2206},"2",[2193,4737,2119],{"class":2199},[2193,4739,3273],{"class":2206},[2193,4741,2278],{"class":2199},[2193,4743,3711],{"class":2206},[2193,4745,2210],{"class":2199},[2193,4747,4748],{"class":2213},"\"out\"",[2193,4750,2119],{"class":2199},[2193,4752,3721],{"class":2206},[2193,4754,2210],{"class":2199},[2193,4756,4757],{"class":2213},"\"total_out\"",[2193,4759,4760],{"class":2199},",   ",[2193,4762,3731],{"class":2206},[2193,4764,2210],{"class":2199},[2193,4766,4289],{"class":2213},[2193,4768,3301],{"class":2199},[2193,4770,3314],{"class":2206},[2193,4772,4773],{"class":2199},": {} }\n",[2193,4775,4776],{"class":2195,"line":2233},[2193,4777,4301],{"class":2199},[2051,4779,4780,4781,2217,4784,2119,4787,4790,4791,4794,4795,4797],{},"A caller passes values through the action's ",[2060,4782,4783],{},"name.parameters",[2060,4785,4786],{},"{ \"order_id_in\": { \"value\": \"\", \"fx\": \"@selected_id_v\" } }",[2060,4788,4789],{},"value"," for a static value, ",[2060,4792,4793],{},"fx"," for\nan expression. The checker verifies the target program exists and its ",[2060,4796,2484],{}," matches the\naction.",[2176,4799,4801],{"id":4800},"workflow-actions","Workflow actions",[2051,4803,4804,4805,4808,4809,4811,4812,4814,4815,4817,4818,4821,4822,2084],{},"A workflow is an array of steps, ",[2060,4806,4807],{},"{ \"id\": \"...\", \"data\": { \"action\": \"...\", \"name\": { ... }, \"enabled\": true }, \"props\": {} }",", run in order. ",[2060,4810,3415],{}," gates a step, ",[2060,4813,3419],{}," fires it without waiting. Workflows appear in ",[2060,4816,3408],{}," handlers, ",[2060,4819,4820],{},"progEvents[].workflow",",\nand a field's own ",[2060,4823,183],{},[222,4825,4826,4844],{},[2091,4827,4828],{},[2094,4829,4830,4837],{},[2097,4831,4832,4833,4836],{},"Action (",[2060,4834,4835],{},"data.action",")",[2097,4838,4839,4840,4843],{},"What ",[2060,4841,4842],{},"data.name"," needs",[2104,4845,4846,4864,4876,4897,4909,4923,4934,4946,4963,4979,4994,5006,5018,5030,5042,5057,5070,5086,5107,5118,5136,5149,5162],{},[2094,4847,4848,4853],{},[2109,4849,4850],{},[2060,4851,4852],{},"update",[2109,4854,4855,4856,4859,4860,4863],{},"Set field values. ",[2060,4857,4858],{},"name.value"," syntax: ",[2060,4861,4862],{},"\"@field: expression; @other: expression\""," (or a JSON5 object). Fields must exist in the project.",[2094,4865,4866,4870],{},[2109,4867,4868],{},[2060,4869,4499],{},[2109,4871,4872,4873,4875],{},"Run a built-in component action; ",[2060,4874,4858],{}," must be one of the invoke values below (components only).",[2094,4877,4878,4882],{},[2109,4879,4880],{},[2060,4881,4418],{},[2109,4883,4884,4885,4887,4888,4891,4892,2058,4894,3582],{},"Trigger a ",[2060,4886,4411],{}," event by name (",[2060,4889,4890],{},"name.event",") with optional ",[2060,4893,4783],{},[2060,4895,4896],{},"{param:{value,fx}}",[2094,4898,4899,4904],{},[2109,4900,4901],{},[2060,4902,4903],{},"emit_event",[2109,4905,4906,4907,3582],{},"Emit a plain JavaScript event (",[2060,4908,4858],{},[2094,4910,4911,4916],{},[2109,4912,4913],{},[2060,4914,4915],{},"call_page",[2109,4917,4918,4919,4922],{},"Open a component as a page. ",[2060,4920,4921],{},"name.prog"," is the target component's id.",[2094,4924,4925,4929],{},[2109,4926,4927],{},[2060,4928,4490],{},[2109,4930,4931,4932,4922],{},"Open a component as a modal dialog. ",[2060,4933,4921],{},[2094,4935,4936,4941],{},[2109,4937,4938],{},[2060,4939,4940],{},"call_popover",[2109,4942,4943,4944,4922],{},"Open a component as a popover. ",[2060,4945,4921],{},[2094,4947,4948,4952],{},[2109,4949,4950],{},[2060,4951,2423],{},[2109,4953,4954,4955,4957,4958,4960,4961,2084],{},"Run a ",[2060,4956,2423],{}," program (",[2060,4959,4921],{},"), parameters through ",[2060,4962,4783],{},[2094,4964,4965,4969],{},[2109,4966,4967],{},[2060,4968,2426],{},[2109,4970,4954,4971,4957,4973,4975,4976,2084],{},[2060,4972,2426],{},[2060,4974,4921],{},"), results can land in ",[2060,4977,4978],{},"name.outputField",[2094,4980,4981,4985],{},[2109,4982,4983],{},[2060,4984,2429],{},[2109,4986,4954,4987,4957,4989,4991,4992,2084],{},[2060,4988,2429],{},[2060,4990,4921],{},"), results land in the virtual field named by ",[2060,4993,4978],{},[2094,4995,4996,5001],{},[2109,4997,4998],{},[2060,4999,5000],{},"call_native_javascript",[2109,5002,5003,5004,3582],{},"Call a javascript program by id (",[2060,5005,4921],{},[2094,5007,5008,5013],{},[2109,5009,5010],{},[2060,5011,5012],{},"call_evaluate_javascript",[2109,5014,5015,5016,3582],{},"Call a javascript program with argument evaluation (",[2060,5017,4921],{},[2094,5019,5020,5025],{},[2109,5021,5022],{},[2060,5023,5024],{},"execute_native_javascript",[2109,5026,5027,5028,3582],{},"Execute inline JavaScript (",[2060,5029,4858],{},[2094,5031,5032,5037],{},[2109,5033,5034],{},[2060,5035,5036],{},"execute_evaluate_javascript",[2109,5038,5039,5040,3582],{},"Evaluate and run a dynamic JS expression (",[2060,5041,4858],{},[2094,5043,5044,5049],{},[2109,5045,5046],{},[2060,5047,5048],{},"call_project_api",[2109,5050,5051,5052,5054,5055,3582],{},"Call an ",[2060,5053,2441],{}," program of this project (",[2060,5056,4921],{},[2094,5058,5059,5064],{},[2109,5060,5061],{},[2060,5062,5063],{},"call_system_api",[2109,5065,5066,5067,3582],{},"Invoke a system-level API method (",[2060,5068,5069],{},"name.api_method",[2094,5071,5072,5077],{},[2109,5073,5074],{},[2060,5075,5076],{},"call_external_api",[2109,5078,5079,5080,2119,5083,3582],{},"HTTP request to an external URL (",[2060,5081,5082],{},"name.url",[2060,5084,5085],{},"name.method",[2094,5087,5088,5092],{},[2109,5089,5090],{},[2060,5091,2432],{},[2109,5093,5094,5095,2392,5098,2392,5101,2392,5104,3582],{},"Show an inline alert definition (",[2060,5096,5097],{},"name.alertDisplay",[2060,5099,5100],{},"alertType",[2060,5102,5103],{},"alertTitle",[2060,5105,5106],{},"alertBody",[2094,5108,5109,5113],{},[2109,5110,5111],{},[2060,5112,4649],{},[2109,5114,5115,5116,3582],{},"Call an alert program by id (",[2060,5117,4921],{},[2094,5119,5120,5125],{},[2109,5121,5122],{},[2060,5123,5124],{},"call_library",[2109,5126,5127,5128,5131,5132,5135],{},"Call an installed plugin library method (",[2060,5129,5130],{},"name.plugin_name"," plus ",[2060,5133,5134],{},"name.library_method","); the plugin must be purchased and installed on the app.",[2094,5137,5138,5146],{},[2109,5139,5140,2392,5143],{},[2060,5141,5142],{},"loader_on",[2060,5144,5145],{},"loader_off",[2109,5147,5148],{},"Show or hide the loading indicator.",[2094,5150,5151,5156],{},[2109,5152,5153],{},[2060,5154,5155],{},"delay",[2109,5157,5158,5159,5161],{},"Pause the workflow for ",[2060,5160,4858],{}," milliseconds.",[2094,5163,5164,5168],{},[2109,5165,5166],{},[2060,5167,4089],{},[2109,5169,5170],{},"Documentation-only step, never executes.",[2051,5172,5173,5175,5176,2119,5179,2119,5182,2119,5185,2119,5188,2217,5191,2119,5194,2119,5197,2119,5199,5201],{},[2060,5174,4499],{}," accepts ",[2060,5177,5178],{},"act_next",[2060,5180,5181],{},"act_prev",[2060,5183,5184],{},"act_first",[2060,5186,5187],{},"act_last",[2060,5189,5190],{},"act_reload",[2060,5192,5193],{},"act_refresh",[2060,5195,5196],{},"act_print",[2060,5198,4502],{},[2060,5200,4505],{}," (component context only).",[2826,5203,5205],{"title":5204,"type":4164},"Deprecated actions the checker rejects",[2051,5206,5207,2119,5210,2119,5213,2119,5216,2217,5219,2119,5222,2119,5225,5228,5229,5231,5232,5234],{},[2060,5208,5209],{},"alter_ui_element",[2060,5211,5212],{},"create_ui_element",[2060,5214,5215],{},"info_ui_element",[2060,5217,5218],{},"remove_ui_element",[2060,5220,5221],{},"empty_ui_element",[2060,5223,5224],{},"cache_ui_element",[2060,5226,5227],{},"load_ui_element",". Drive UI through fields and ",[2060,5230,3140],{}," \u002F\n",[2060,5233,2816],{}," instead of an imperative element action.",[2826,5236,5238],{"title":5237,"type":4164},"call_ai_agent and call_triage_agent are not real actions",[2051,5239,5240,5241,4103,5244,5247,5248,5250,5251,5254,5255,5258,5259,5262,5263,5266,5267,5269],{},"Studio's own action picker offers ",[2055,5242,5243],{},"Call AI Agent",[2055,5245,5246],{},"Call Triage Agent"," next to the actions\nabove. Neither is in this table because neither is one: ",[2060,5249,2161],{}," has no case for them and\nreports ",[2060,5252,5253],{},"invalid trigger type",", and the runtime workflow engine has no handler for them either, so\na saved step never runs even if the error is ignored. To have one prog reach a published agent, add\nan ",[2055,5256,5257],{},"AI Agent"," tool to another agent's own tool list instead (a ",[2060,5260,5261],{},"menuType: \"ai_agent\""," doc's\n",[2060,5264,5265],{},"agentConfig.agent_tools","), not a workflow step on a component, ",[2060,5268,2423],{},", or any other prog type.",[2051,5271,5272,5274,5275,5277,5278,5281,5282,5285,5286,5288,5289,5291,5292,5294,5295,5297,5298,5300],{},[2060,5273,4852],{},"'s ",[2060,5276,4858],{}," assigns fields with semicolon-separated ",[2060,5279,5280],{},"@field: expression"," pairs, or a\nJSON5 object, ",[2060,5283,5284],{},"\"@saving_v: true; @status_v: 'sent'\"",". Calling another program names it under\n",[2060,5287,4921],{},", matching the action to the program's own type\n(",[2060,5290,2423],{}," needs a ",[2060,5293,2423],{}," prog, ",[2060,5296,5000],{}," a ",[2060,5299,2137],{}," prog, and so on).",[2051,5302,5303,5305,5306,5308,5309,5311,5312,5315,5316,5319,5320,5323],{},[2060,5304,5124],{}," calls an installed plugin method: ",[2060,5307,5130],{}," must be purchased and\ninstalled on the app or the checker rejects the step, ",[2060,5310,5134],{}," one of the methods the\nplugin exports, ",[2060,5313,5314],{},"name.library_props"," its declared fields. Two prop names are a convention across\nplugins rather than specific to any one of them: ",[2060,5317,5318],{},"event_name_for_successful_callback"," raises that\nevent with the method's response, ",[2060,5321,5322],{},"field_id_to_return_result"," writes the response into that field\ndirectly, neither is required.",[2176,5325,5327],{"id":5326},"progevents-types","progEvents types",[2051,5329,5330,2119,5332,2119,5334,2119,5336,2119,5338,2119,5340,2217,5342,2119,5344,2119,5346,2119,5348,2119,5350,2835,5352,5354,5355,2392,5357,5231,5359,2392,5361,5363,5364,4103,5366,5368,5369,5371,5372,5374,5375,4491],{},[2060,5331,4381],{},[2060,5333,4384],{},[2060,5335,4387],{},[2060,5337,4390],{},[2060,5339,4393],{},[2060,5341,4396],{},[2060,5343,4399],{},[2060,5345,4402],{},[2060,5347,4405],{},[2060,5349,4408],{},[2060,5351,4411],{},[2060,5353,4399],{}," is\nthe usual init hook; ",[2060,5356,4387],{},[2060,5358,4390],{},[2060,5360,4393],{},[2060,5362,4396],{}," are data lifecycle, especially for ",[2060,5365,2426],{},[2060,5367,2429],{},";\n",[2060,5370,4408],{}," is a repeating timer; ",[2060,5373,4411],{}," fires from the ",[2060,5376,4418],{},[2065,5378,5379],{"id":2134},"Tables",[2051,5381,5382,5383,5386,5387,5389,5390,5392,5393,5395,5396,5398],{},"A table prog (",[2060,5384,5385],{},"menuType: \"table\"",") defines a database table: its columns (",[2060,5388,2523],{},"), its\nindexes (",[2060,5391,2526],{},"), and the database plugin storing it (",[2060,5394,2529],{},"). Tree\nparent: ",[2060,5397,355],{},", or a folder under it.",[2184,5400,5402],{"className":2186,"code":5401,"language":2188,"meta":2189,"style":2189},"{\n  \"properties\": { \"menuType\": \"table\", \"menuName\": \"ORD - Orders\", \"databaseSocket\": \"@xuda.io\u002Fxuda-dbs-plugin-xuda\" },\n  \"tableFields\": [\n    { \"id\": \"\u003Cuuid>\", \"data\": { \"field_id\": \"ORD_Id\" }, \"props\": { \"fieldType\": \"string\", \"mandatory\": true } }\n  ],\n  \"tableIndexes\": [\n    { \"id\": \"\u003Cuuid>\", \"data\": { \"name\": \"index_1\", \"unique\": true, \"keys\": [\"ORD_Id\"] }, \"props\": {} }\n  ]\n}\n",[2060,5403,5404,5408,5441,5448,5494,5499,5506,5555,5559],{"__ignoreMap":2189},[2193,5405,5406],{"class":2195,"line":2196},[2193,5407,2200],{"class":2199},[2193,5409,5410,5412,5414,5416,5418,5420,5422,5424,5426,5429,5431,5434,5436,5439],{"class":2195,"line":2203},[2193,5411,2275],{"class":2206},[2193,5413,2278],{"class":2199},[2193,5415,2281],{"class":2206},[2193,5417,2210],{"class":2199},[2193,5419,4267],{"class":2213},[2193,5421,2119],{"class":2199},[2193,5423,2291],{"class":2206},[2193,5425,2210],{"class":2199},[2193,5427,5428],{"class":2213},"\"ORD - Orders\"",[2193,5430,2119],{"class":2199},[2193,5432,5433],{"class":2206},"\"databaseSocket\"",[2193,5435,2210],{"class":2199},[2193,5437,5438],{"class":2213},"\"@xuda.io\u002Fxuda-dbs-plugin-xuda\"",[2193,5440,2308],{"class":2199},[2193,5442,5443,5446],{"class":2195,"line":2220},[2193,5444,5445],{"class":2206},"  \"tableFields\"",[2193,5447,3255],{"class":2199},[2193,5449,5450,5452,5454,5456,5458,5460,5462,5464,5466,5468,5471,5473,5475,5477,5479,5481,5483,5485,5488,5490,5492],{"class":2195,"line":2233},[2193,5451,3260],{"class":2199},[2193,5453,3263],{"class":2206},[2193,5455,2210],{"class":2199},[2193,5457,4202],{"class":2213},[2193,5459,2119],{"class":2199},[2193,5461,3273],{"class":2206},[2193,5463,2278],{"class":2199},[2193,5465,4220],{"class":2206},[2193,5467,2210],{"class":2199},[2193,5469,5470],{"class":2213},"\"ORD_Id\"",[2193,5472,3301],{"class":2199},[2193,5474,3314],{"class":2206},[2193,5476,2278],{"class":2199},[2193,5478,4233],{"class":2206},[2193,5480,2210],{"class":2199},[2193,5482,3736],{"class":2213},[2193,5484,2119],{"class":2199},[2193,5486,5487],{"class":2206},"\"mandatory\"",[2193,5489,2210],{"class":2199},[2193,5491,3309],{"class":2206},[2193,5493,3392],{"class":2199},[2193,5495,5496],{"class":2195,"line":2246},[2193,5497,5498],{"class":2199},"  ],\n",[2193,5500,5501,5504],{"class":2195,"line":2259},[2193,5502,5503],{"class":2206},"  \"tableIndexes\"",[2193,5505,3255],{"class":2199},[2193,5507,5508,5510,5512,5514,5516,5518,5520,5522,5524,5526,5529,5531,5534,5536,5538,5540,5543,5546,5548,5551,5553],{"class":2195,"line":2272},[2193,5509,3260],{"class":2199},[2193,5511,3263],{"class":2206},[2193,5513,2210],{"class":2199},[2193,5515,4202],{"class":2213},[2193,5517,2119],{"class":2199},[2193,5519,3273],{"class":2206},[2193,5521,2278],{"class":2199},[2193,5523,3288],{"class":2206},[2193,5525,2210],{"class":2199},[2193,5527,5528],{"class":2213},"\"index_1\"",[2193,5530,2119],{"class":2199},[2193,5532,5533],{"class":2206},"\"unique\"",[2193,5535,2210],{"class":2199},[2193,5537,3309],{"class":2206},[2193,5539,2119],{"class":2199},[2193,5541,5542],{"class":2206},"\"keys\"",[2193,5544,5545],{"class":2199},": [",[2193,5547,5470],{"class":2213},[2193,5549,5550],{"class":2199},"] }, ",[2193,5552,3314],{"class":2206},[2193,5554,4773],{"class":2199},[2193,5556,5557],{"class":2195,"line":2311},[2193,5558,3397],{"class":2199},[2193,5560,5561],{"class":2195,"line":2359},[2193,5562,2362],{"class":2199},[2364,5564,5565,5575,5578,5583,5605],{},[2367,5566,5567,5570,5571,5574],{},[2060,5568,5569],{},"databaseSocket"," must name a database plugin installed on the project,\n",[2060,5572,5573],{},"@xuda.io\u002Fxuda-dbs-plugin-xuda"," is the platform default; an existing table in the same project\nis the reference for which socket to reuse.",[2367,5576,5577],{},"At least one field and at least one index are required.",[2367,5579,5580,5582],{},[2060,5581,2879],{}," starts with a letter, then letters, digits, underscore, dash, colon or dot, and stays\nunique within the table.",[2367,5584,5585,3755,5588,2119,5590,2119,5592,2119,5594,2119,5596,2700,5598,4567,5601,5604],{},[2060,5586,5587],{},"fieldType",[2060,5589,2710],{},[2060,5591,2713],{},[2060,5593,2716],{},[2060,5595,2719],{},[2060,5597,2723],{},[2060,5599,5600],{},"date",[2060,5602,5603],{},"mandatory: true","\nmakes it required on save.",[2367,5606,5607,5608,4103,5610,5613,5614,2084],{},"Every index needs a non-empty ",[2060,5609,3563],{},[2060,5611,5612],{},"keys",", and every key must be an existing ",[2060,5615,2879],{},[2051,5617,5618,5619,2119,5622,2119,5625,5628,5629,5632],{},"Convention: prefix columns with a three-letter table code, a table named \"ORD - Orders\" gets\n",[2060,5620,5621],{},"ORD_Id",[2060,5623,5624],{},"ORD_Total",[2060,5626,5627],{},"ORD_Status",". Give every table a unique ",[2060,5630,5631],{},"\u003CTBL>_Id"," field with a unique index\non it, a single-record component binding needs it.",[2051,5634,5635,5636,5639,5640,2392,5642,2392,5644,5646,5647,5231,5650,2392,5653,2392,5656,5659],{},"A table is used three ways: a component or query's ",[2060,5637,5638],{},"progDataSource.dataSourceTableId",", a\n",[2060,5641,2423],{},[2060,5643,2426],{},[2060,5645,2429],{}," prog for row-level access from workflows, or ",[2060,5648,5649],{},"xu.dbs_create",[2060,5651,5652],{},"dbs_read",[2060,5654,5655],{},"dbs_update",[2060,5657,5658],{},"dbs_delete"," from a script, covered next.",[2065,5661,5663],{"id":5662},"javascript-programs","JavaScript programs",[2051,5665,5666,5667,5670,5671,5673,5674,5676,5677,2119,5680,2700,5683,5686,5687,5690],{},"A javascript prog (",[2060,5668,5669],{},"menuType: \"javascript\"",") holds real JS source in ",[2060,5672,4593],{},", compiled\non save. ",[2060,5675,2165],{}," triggers that build and returns the result as ",[2060,5678,5679],{},"data.compile",[2060,5681,5682],{},"{ ok: true, dependencies }",[2060,5684,5685],{},"{ ok: false, error }",". A failed compile still saves the doc, so a build reads\n",[2060,5688,5689],{},"compile.ok"," and fixes it before moving on.",[2176,5692,5694],{"id":5693},"the-execution-contract","The execution contract",[2051,5696,5697,5698,5701],{},"The source is written as a plain async body, no ",[2060,5699,5700],{},"export",", no wrapper. At run time it executes as:",[2184,5703,5707],{"className":5704,"code":5705,"language":5706,"meta":2189,"style":2189},"language-js shiki shiki-themes github-light github-dark","async function (params, xu, SESSION_ID, SESSION_OBJ, jobNoP, $container, func, glb, APP_OBJ, evt) {\n  \u002F* source *\u002F\n}\n","js",[2060,5708,5709,5772,5778],{"__ignoreMap":2189},[2193,5710,5711,5715,5718,5720,5724,5726,5729,5731,5734,5736,5739,5741,5744,5746,5749,5751,5754,5756,5759,5761,5764,5766,5769],{"class":2195,"line":2196},[2193,5712,5714],{"class":5713},"szBVR","async",[2193,5716,5717],{"class":5713}," function",[2193,5719,2058],{"class":2199},[2193,5721,5723],{"class":5722},"s4XuR","params",[2193,5725,2119],{"class":2199},[2193,5727,5728],{"class":5722},"xu",[2193,5730,2119],{"class":2199},[2193,5732,5733],{"class":5722},"SESSION_ID",[2193,5735,2119],{"class":2199},[2193,5737,5738],{"class":5722},"SESSION_OBJ",[2193,5740,2119],{"class":2199},[2193,5742,5743],{"class":5722},"jobNoP",[2193,5745,2119],{"class":2199},[2193,5747,5748],{"class":5722},"$container",[2193,5750,2119],{"class":2199},[2193,5752,5753],{"class":5722},"func",[2193,5755,2119],{"class":2199},[2193,5757,5758],{"class":5722},"glb",[2193,5760,2119],{"class":2199},[2193,5762,5763],{"class":5722},"APP_OBJ",[2193,5765,2119],{"class":2199},[2193,5767,5768],{"class":5722},"evt",[2193,5770,5771],{"class":2199},") {\n",[2193,5773,5774],{"class":2195,"line":2203},[2193,5775,5777],{"class":5776},"sJ8bj","  \u002F* source *\u002F\n",[2193,5779,5780],{"class":2195,"line":2220},[2193,5781,2362],{"class":2199},[2051,5783,5784,5786,5787,5789,5790,5793,5794,5796],{},[2060,5785,5723],{}," are the caller's already-evaluated inputs; ",[2060,5788,5728],{}," is the runtime API below; a return value\nis optional, the idiomatic way to hand results back is ",[2060,5791,5792],{},"xu.set_field_value"," on the calling\ncomponent's fields. Quotes are fine here, unlike an ",[2060,5795,3082],{}," attribute value.",[2176,5798,5800],{"id":5799},"the-xu-runtime-api","The xu runtime API",[222,5802,5803,5812],{},[2091,5804,5805],{},[2094,5806,5807,5810],{},[2097,5808,5809],{},"Call",[2097,5811,2102],{},[2104,5813,5814,5828,5838,5855,5874,5891,5901,5911,5921,5934,5951,5969,6002,6023,6033],{},[2094,5815,5816,5821],{},[2109,5817,5818],{},[2060,5819,5820],{},"xu.get_field_value(field_id)",[2109,5822,5823,5824,5827],{},"Read a field of the calling context (component or program dataset). Returns the value, or ",[2060,5825,5826],{},"false"," plus a logged error when the field does not exist.",[2094,5829,5830,5835],{},[2109,5831,5832],{},[2060,5833,5834],{},"xu.set_field_value(field_id, value, avoid_refresh?)",[2109,5836,5837],{},"Write a field; the datasource updates and bound UI refreshes. This is how a script hands results back to the component.",[2094,5839,5840,5845],{},[2109,5841,5842],{},[2060,5843,5844],{},"xu.invoke_event(event_name, options?)",[2109,5846,4884,5847,3431,5849,5851,5852,2084],{},[2060,5848,4411],{},[2060,5850,2509],{}," entry by its ",[2060,5853,5854],{},"event_name",[2094,5856,5857,5862],{},[2109,5858,5859],{},[2060,5860,5861],{},"xu.dbs_create(table_id, row_obj)",[2109,5863,5864,5865,2813,5867,5870,5871,2084],{},"Insert one row into a xuda table prog (",[2060,5866,5385],{},[2060,5868,5869],{},"row_obj"," keys are the table's field ids. Returns ",[2060,5872,5873],{},"{code, data}",[2094,5875,5876,5881],{},[2109,5877,5878],{},[2060,5879,5880],{},"xu.dbs_read(table_id, selector?, fields?, sort?, limit?, skip?)",[2109,5882,5883,5884,5887,5888,2084],{},"Query a xuda table with a Mongo-style selector object (",[2060,5885,5886],{},"{}"," for all). Returns the rows array, default limit 999, rows also expose ",[2060,5889,5890],{},".total_rows",[2094,5892,5893,5898],{},[2109,5894,5895],{},[2060,5896,5897],{},"xu.dbs_update(table_id, row_id, changes_obj)",[2109,5899,5900],{},"Update one row by its id.",[2094,5902,5903,5908],{},[2109,5904,5905],{},[2060,5906,5907],{},"xu.dbs_delete(table_id, row_id)",[2109,5909,5910],{},"Delete one row by its id.",[2094,5912,5913,5918],{},[2109,5914,5915],{},[2060,5916,5917],{},"xu.call_javascript(prog_id, params?, evaluate?)",[2109,5919,5920],{},"Run another javascript prog with parameters.",[2094,5922,5923,5928],{},[2109,5924,5925],{},[2060,5926,5927],{},"xu.call_project_api(prog_id, params?)",[2109,5929,5930,5931,5933],{},"Execute an ",[2060,5932,2441],{}," prog of this project and get its rendered output (parsed when the API outputs JSON).",[2094,5935,5936,5941],{},[2109,5937,5938],{},[2060,5939,5940],{},"xu.call_system_api(method, payload?)",[2109,5942,5943,5944,4103,5947,5950],{},"POST a platform CPI method, ",[2060,5945,5946],{},"app_id",[2060,5948,5949],{},"app_token"," are added automatically.",[2094,5952,5953,5958],{},[2109,5954,5955],{},[2060,5956,5957],{},"xu.call_external_api(method, url, payload?)",[2109,5959,5960,5961,5964,5965,5968],{},"HTTP request to an external host (",[2060,5962,5963],{},"url"," without the ",[2060,5966,5967],{},"https:\u002F\u002F"," prefix).",[2094,5970,5971,5976],{},[2109,5972,5973],{},[2060,5974,5975],{},"xu.alert(type, display, message, details?)",[2109,5977,5978,5979,3755,5982,2392,5984,2392,5987,2392,5989,2119,5992,3755,5994,2392,5996,2392,5998,2392,6000,2084],{},"Show an alert, ",[2060,5980,5981],{},"type",[2060,5983,4632],{},[2060,5985,5986],{},"warn",[2060,5988,4624],{},[2060,5990,5991],{},"log",[2060,5993,2911],{},[2060,5995,4645],{},[2060,5997,4639],{},[2060,5999,4636],{},[2060,6001,4642],{},[2094,6003,6004,6009],{},[2109,6005,6006],{},[2060,6007,6008],{},"xu.log(type, message, details?)",[2109,6010,6011,6012,3431,6014,2392,6017,2392,6020,3582],{},"Report to the runtime issue log (",[2060,6013,5981],{},[2060,6015,6016],{},"E",[2060,6018,6019],{},"W",[2060,6021,6022],{},"I",[2094,6024,6025,6030],{},[2109,6026,6027],{},[2060,6028,6029],{},"xu.read_drive(filename)",[2109,6031,6032],{},"Fetch a file from the app workspace drive (JSON-parsed).",[2094,6034,6035,6040],{},[2109,6036,6037],{},[2060,6038,6039],{},"xu.write_drive(stream, filename, make_public?)",[2109,6041,6042],{},"Upload a file to the app workspace drive.",[2184,6044,6046],{"className":5704,"code":6045,"language":5706,"meta":2189,"style":2189},"const raw = await xu.get_field_value(`rows_json_v`);\nconst rows = typeof raw === `string` ? JSON.parse(raw || `[]`) : raw || [];\nfor (const row of rows) {\n  await xu.dbs_create(`392_tbl_...`, { CNT_Name: row.name || ``, CNT_Email: row.email || `` });\n}\n\u002F\u002F dbs_read resolves to an ARRAY of { id, value } rows: the row id on .id, table fields under .value.\nconst all = await xu.dbs_read(`392_tbl_...`, {}, [], null, 999);\nawait xu.set_field_value(`status_v`, `Saved ` + rows.length + ` rows`);\n",[2060,6047,6048,6078,6132,6150,6183,6187,6192,6224],{"__ignoreMap":2189},[2193,6049,6050,6053,6056,6059,6062,6065,6069,6072,6075],{"class":2195,"line":2196},[2193,6051,6052],{"class":5713},"const",[2193,6054,6055],{"class":2206}," raw",[2193,6057,6058],{"class":5713}," =",[2193,6060,6061],{"class":5713}," await",[2193,6063,6064],{"class":2199}," xu.",[2193,6066,6068],{"class":6067},"sScJk","get_field_value",[2193,6070,6071],{"class":2199},"(",[2193,6073,6074],{"class":2213},"`rows_json_v`",[2193,6076,6077],{"class":2199},");\n",[2193,6079,6080,6082,6085,6087,6090,6093,6096,6099,6102,6105,6107,6110,6113,6116,6119,6122,6125,6127,6129],{"class":2195,"line":2203},[2193,6081,6052],{"class":5713},[2193,6083,6084],{"class":2206}," rows",[2193,6086,6058],{"class":5713},[2193,6088,6089],{"class":5713}," typeof",[2193,6091,6092],{"class":2199}," raw ",[2193,6094,6095],{"class":5713},"===",[2193,6097,6098],{"class":2213}," `string`",[2193,6100,6101],{"class":5713}," ?",[2193,6103,6104],{"class":2206}," JSON",[2193,6106,2084],{"class":2199},[2193,6108,6109],{"class":6067},"parse",[2193,6111,6112],{"class":2199},"(raw ",[2193,6114,6115],{"class":5713},"||",[2193,6117,6118],{"class":2213}," `[]`",[2193,6120,6121],{"class":2199},") ",[2193,6123,6124],{"class":5713},":",[2193,6126,6092],{"class":2199},[2193,6128,6115],{"class":5713},[2193,6130,6131],{"class":2199}," [];\n",[2193,6133,6134,6137,6139,6141,6144,6147],{"class":2195,"line":2220},[2193,6135,6136],{"class":5713},"for",[2193,6138,2058],{"class":2199},[2193,6140,6052],{"class":5713},[2193,6142,6143],{"class":2206}," row",[2193,6145,6146],{"class":5713}," of",[2193,6148,6149],{"class":2199}," rows) {\n",[2193,6151,6152,6155,6157,6160,6162,6165,6168,6170,6173,6176,6178,6180],{"class":2195,"line":2233},[2193,6153,6154],{"class":5713},"  await",[2193,6156,6064],{"class":2199},[2193,6158,6159],{"class":6067},"dbs_create",[2193,6161,6071],{"class":2199},[2193,6163,6164],{"class":2213},"`392_tbl_...`",[2193,6166,6167],{"class":2199},", { CNT_Name: row.name ",[2193,6169,6115],{"class":5713},[2193,6171,6172],{"class":2213}," ``",[2193,6174,6175],{"class":2199},", CNT_Email: row.email ",[2193,6177,6115],{"class":5713},[2193,6179,6172],{"class":2213},[2193,6181,6182],{"class":2199}," });\n",[2193,6184,6185],{"class":2195,"line":2246},[2193,6186,2362],{"class":2199},[2193,6188,6189],{"class":2195,"line":2259},[2193,6190,6191],{"class":5776},"\u002F\u002F dbs_read resolves to an ARRAY of { id, value } rows: the row id on .id, table fields under .value.\n",[2193,6193,6194,6196,6199,6201,6203,6205,6207,6209,6211,6214,6217,6219,6222],{"class":2195,"line":2272},[2193,6195,6052],{"class":5713},[2193,6197,6198],{"class":2206}," all",[2193,6200,6058],{"class":5713},[2193,6202,6061],{"class":5713},[2193,6204,6064],{"class":2199},[2193,6206,5652],{"class":6067},[2193,6208,6071],{"class":2199},[2193,6210,6164],{"class":2213},[2193,6212,6213],{"class":2199},", {}, [], ",[2193,6215,6216],{"class":2206},"null",[2193,6218,2119],{"class":2199},[2193,6220,6221],{"class":2206},"999",[2193,6223,6077],{"class":2199},[2193,6225,6226,6229,6231,6234,6236,6239,6241,6244,6247,6250,6253,6255,6258],{"class":2195,"line":2311},[2193,6227,6228],{"class":5713},"await",[2193,6230,6064],{"class":2199},[2193,6232,6233],{"class":6067},"set_field_value",[2193,6235,6071],{"class":2199},[2193,6237,6238],{"class":2213},"`status_v`",[2193,6240,2119],{"class":2199},[2193,6242,6243],{"class":2213},"`Saved `",[2193,6245,6246],{"class":5713}," +",[2193,6248,6249],{"class":2199}," rows.",[2193,6251,6252],{"class":2206},"length",[2193,6254,6246],{"class":5713},[2193,6256,6257],{"class":2213}," ` rows`",[2193,6259,6077],{"class":2199},[2051,6261,6262,6265,6266,6268,6269,6271,6272,6275,6276,6279],{},[2060,6263,6264],{},"dbs_*"," methods take the table prog's own ",[2060,6267,2371],{},", never a name. Selectors are Mongo-style objects on\nthe field ids, ",[2060,6270,5886],{}," returns everything (default limit 999). The ",[2060,6273,6274],{},"fields"," projection is optional,\n",[2060,6277,6278],{},"[]"," returns every field and a list of field ids returns only those.",[2176,6281,6283],{"id":6282},"passing-data-in-fields-not-parameters","Passing data in: fields, not parameters",[2051,6285,6286,6288,6289,6292,6293,6295,6296,6298,6299,6301,6302,6305,6306,6309,6310,6312,6313,6316],{},[2060,6287,5000],{}," does not evaluate ",[2060,6290,6291],{},"{value, fx}"," parameter wrappers, ",[2060,6294,4783],{},"\nreaches the script raw. The reliable contract: the component puts the payload in a field first (an\n",[2060,6297,4852],{}," step or an ",[2060,6300,2838],{}," input), the workflow calls the prog with empty ",[2060,6303,6304],{},"parameters: {}",", and\nthe script reads it with ",[2060,6307,6308],{},"xu.get_field_value"," and reports back with ",[2060,6311,5792],{},". Calling\nfrom another script instead, ",[2060,6314,6315],{},"xu.call_javascript(prog_id, {...})"," does pass params directly.",[2176,6318,6320],{"id":6319},"live-preview-quirks","Live-preview quirks",[2364,6322,6323,6330,6333],{},[2367,6324,6325,6326,6329],{},"Data writes reach the real database, but ",[2060,6327,6328],{},"xu.dbs_read"," reads a local draft store that may not\nhold fresh server rows, a read right after a write can come back empty in preview even though\nthe write landed (visible in the table's Data tab in Studio). Deployed apps read and write the\nsame store.",[2367,6331,6332],{},"Compiled scripts cache hard in dev previews, a running preview can keep executing the previous\nscript even across reloads after a save recompiles it. A hard browser refresh clears it.",[2367,6334,6335,4351,6338,2119,6340,2700,6342,6344,6345,6348,6349,6351],{},[2060,6336,6337],{},"xu.alert",[2060,6339,4639],{},[2060,6341,4636],{},[2060,6343,4642],{}," display can surface as a native, blocking\n",[2060,6346,6347],{},"alert()"," in preview. ",[2060,6350,5792],{}," into a status field is the safer way to report back.",[2176,6353,6355],{"id":6354},"javascript-prog-vs-xu-script-attribute","javascript prog vs xu-script attribute",[222,6357,6358,6372],{},[2091,6359,6360],{},[2094,6361,6362,6364,6367],{},[2097,6363],{},[2097,6365,6366],{},"javascript prog",[2097,6368,6369,6371],{},[2060,6370,3082],{}," attribute",[2104,6373,6374,6387,6398,6414,6431],{},[2094,6375,6376,6379,6384],{},[2109,6377,6378],{},"Lives in",[2109,6380,6381,6383],{},[2060,6382,4593],{},", its own doc",[2109,6385,6386],{},"an element's attributes",[2094,6388,6389,6392,6395],{},[2109,6390,6391],{},"Runs",[2109,6393,6394],{},"when a workflow calls it",[2109,6396,6397],{},"once, when the element first becomes visible",[2094,6399,6400,6403,6411],{},[2109,6401,6402],{},"Gets",[2109,6404,6405,6407,6408,6410],{},[2060,6406,5723],{},", the ",[2060,6409,5728],{}," API, session objects",[2109,6412,6413],{},"only the DOM element",[2094,6415,6416,6419,6428],{},[2109,6417,6418],{},"Data access",[2109,6420,6421,2119,6424,2392,6426],{},[2060,6422,6423],{},"xu.dbs_*",[2060,6425,6308],{},[2060,6427,6233],{},[2109,6429,6430],{},"none, DOM only",[2094,6432,6433,6436,6439],{},[2109,6434,6435],{},"Quotes",[2109,6437,6438],{},"allowed",[2109,6440,6441,6442,2700,6444,6446],{},"forbidden, no ",[2060,6443,3481],{},[2060,6445,3484],{}," anywhere",[2176,6448,6450],{"id":6449},"quote-free-techniques-for-xu-script-xu-style","Quote-free techniques for xu-script \u002F xu-style",[2051,6452,6453,6454,6457,6458,6460,6461,6464,6465,6468,6469,6471],{},"The designer canvas serializes attribute values unescaped, so a single quote corrupts the\ncomponent's markup. Template literals avoid string quotes entirely\n(",[2060,6455,6456],{},"el.textContent = `Ready`","); the literal ",[2060,6459,3484],{}," character, for example while building CSV, comes\nfrom ",[2060,6462,6463],{},"String.fromCharCode(34)","; CSS attribute selectors are valid unquoted\n(",[2060,6466,6467],{},"el.querySelector(`[data-role=import-btn]`)","); and a re-run guard,\n",[2060,6470,3454],{},", keeps a script from double-binding on re-render.",[2065,6473,6475],{"id":6474},"landmines","Landmines",[2051,6477,6478,6479,6481],{},"Every entry below broke a real build at some point. ",[2060,6480,2161],{}," catches most of them, run it\nbefore every save.",[2176,6483,6485],{"id":6484},"api-mechanics","API mechanics",[2364,6487,6488,6498,6512,6520,6530],{},[2367,6489,6490,6491,2119,6494,6497],{},"Every response is ",[2060,6492,6493],{},"{ code, data }",[2060,6495,6496],{},"code \u003C 0"," is an error.",[2367,6499,6500,6502,6503,6506,6507,6509,6510,2084],{},[2060,6501,2157],{}," returns the new doc under ",[2060,6504,6505],{},"data.prog",", saving the whole response instead persists\na malformed doc with ",[2060,6508,2500],{}," buried under ",[2060,6511,2057],{},[2367,6513,6514,6516,6517,6519],{},[2060,6515,2165],{}," replaces the whole document. Start from the current doc, never a hand-assembled\nskeleton; a ",[2060,6518,2169],{}," means it changed since the last read, re-fetch, reapply, retry.",[2367,6521,6522,6523,4103,6526,6529],{},"Over MCP, ",[2060,6524,6525],{},"prog_json",[2060,6527,6528],{},"properties_json"," are passed as strings, the tool schema layer strips\nunknown keys from an object parameter and can silently drop whole sections.",[2367,6531,6532,6535,6536,3178,6539,6541],{},[2060,6533,6534],{},"delete_prog"," is a soft delete, it sets ",[2060,6537,6538],{},"stat: 4",[2060,6540,2628],{}," node cannot be deleted.",[2176,6543,6545],{"id":6544},"doc-content","Doc content",[2364,6547,6548,6561,6589,6598,6606,6613,6623,6633],{},[2367,6549,6550,6551,2700,6553,6555,6556,2700,6558,6560],{},"No ",[2060,6552,3481],{},[2060,6554,3484],{}," inside ",[2060,6557,3082],{},[2060,6559,3052],{}," values.",[2367,6562,6563,6566,6567,2119,6570,2119,6573,6576,6577,2119,6580,2217,6582,6585,6586,6588],{},[2060,6564,6565],{},"$","-prefixed keys (",[2060,6568,6569],{},"$folded",[2060,6571,6572],{},"$childrenClass",[2060,6574,6575],{},"$nodeBackClass","), plus ",[2060,6578,6579],{},"path",[2060,6581,2060],{},[2060,6583,6584],{},"editCode",", are designer view-state and never belong in a saved ",[2060,6587,2503],{}," node.",[2367,6590,6550,6591,2700,6593,6595,6596,2084],{},[2060,6592,4089],{},[2060,6594,4092],{}," node types, elements only, static text in ",[2060,6597,3028],{},[2367,6599,6600,6601,4103,6603,6605],{},"Every element node needs ",[2060,6602,4102],{},[2060,6604,4106],{}," even when empty.",[2367,6607,6608,3210,6610,6612],{},[2060,6609,3207],{},[2060,6611,3213],{},", every needed class belongs inside the expression.",[2367,6614,6615,6617,6618,6620,6621,2084],{},[2060,6616,2838],{}," is a bare field id, no ",[2060,6619,2777],{},", everywhere else fields use ",[2060,6622,2777],{},[2367,6624,6625,6626,6629,6630,6632],{},"Only the documented ",[2060,6627,6628],{},"xu-*"," attributes do anything, an invented one is silently ignored and\n",[2060,6631,2161],{}," warns.",[2367,6634,6635,6636,6638,6639,6641,6642,6645,6646,2084],{},"An ",[2060,6637,2446],{}," prog's tree root is ",[2060,6640,2466],{},", save it with ",[2060,6643,6644],{},"studio_meta.parentId: \"ai_agents\"","\n(or a folder id under it) if the checker flags ",[2060,6647,2470],{},[2176,6649,6651],{"id":6650},"runtime-and-rendering","Runtime and rendering",[2364,6653,6654,6666,6674,6689],{},[2367,6655,6656,6657,6659,6660,6662,6663,6665],{},"A capitalized ",[2060,6658,4086],{}," is always claimed as a component, even a typo, and throws at mount\nnaming the tag, the ",[2060,6661,860],{},", and every source tried, there is no silent \"does not render\" the\nway an ",[2060,6664,3513],{}," with no program selected has.",[2367,6667,6668,6670,6671,6673],{},[2060,6669,2161],{}," does not check component tags or ",[2060,6672,860],{}," values, only the live preview\ncatches a misspelt one.",[2367,6675,6676,6677,6679,6680,6683,6684,6686,6687,2084],{},"No utility CSS (Tailwind or otherwise) at runtime unless the project's ",[2060,6678,3809],{}," plugin\nactually provides it, classes like ",[2060,6681,6682],{},"p-4"," silently no-op otherwise. Self-contained styling is\n",[2060,6685,3052],{},", auto-scoped by ",[2060,6688,3058],{},[2367,6690,6691,6693,6694,6697,6698,2084],{},[2060,6692,3082],{}," runs once per element visibility and may re-fire on re-render, guard with\n",[2060,6695,6696],{},"el.__bound"," and scope queries to ",[2060,6699,3096],{},[2176,6701,6703],{"id":6702},"data-and-scripts","Data and scripts",[2364,6705,6706,6711,6731,6745,6748],{},[2367,6707,6708,6710],{},[2060,6709,5000],{}," parameters are not evaluated, pass data through fields instead (see\nPassing data in, above).",[2367,6712,6713,6715,6716,6719,6720,6723,6724,6727,6728,6730],{},[2060,6714,5652],{}," rows are ",[2060,6717,6718],{},"{id, value}",", fields live under ",[2060,6721,6722],{},".value",", the row id on ",[2060,6725,6726],{},".id",". Do not pass\na ",[2060,6729,6274],{}," projection, it breaks the server-side read.",[2367,6732,6733,6734,6736,6737,6740,6741,6744],{},"Inside ",[2060,6735,2797],{},", wrap the iterator in parens, ",[2060,6738,6739],{},"(@_FOR_VAL).CNT_Name"," evaluates,\n",[2060,6742,6743],{},"@_FOR_VAL.CNT_Name"," fails silently and renders the substituted source text instead.",[2367,6746,6747],{},"Preview writes land in the real database; preview reads come from a local draft store that can\nlook empty right after a write.",[2367,6749,6750,6751,6753,6754,2084],{},"Prefer a status field over ",[2060,6752,6337],{},"'s modal or toast display in previews, it can render as a\nnative, blocking ",[2060,6755,6347],{},[2176,6757,6759],{"id":6758},"verifying-your-work","Verifying your work",[2051,6761,6762,6763,6766,6767,6770,6771,6773,6774,6776],{},"Re-fetch with ",[2060,6764,6765],{},"get_prog"," after saving and diff what was expected. For UI work, open the component\nin Studio and press the preview play button, or the project's live-preview URL when one is\navailable. For a javascript prog, check ",[2060,6768,6769],{},"data.compile.ok"," on every save. Fix every\n",[2060,6772,2161],{}," error; treat its warnings, quotes, ",[2060,6775,6565],{},"-keys, unknown attributes, as fix-now items\nrather than noise.",[3551,6778,6779],{},"html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .s4XuR, html code.shiki .s4XuR{--shiki-default:#E36209;--shiki-dark:#FFAB70}html pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}",{"title":2189,"searchDepth":2220,"depth":2220,"links":6781},[6782,6783,6789,6796,6808,6813,6814,6822],{"id":2067,"depth":2203,"text":2068},{"id":2173,"depth":2203,"text":2174,"children":6784},[6785,6786,6787,6788],{"id":2178,"depth":2220,"text":2179},{"id":2474,"depth":2220,"text":2475},{"id":2621,"depth":2220,"text":2622},{"id":2655,"depth":2220,"text":2656},{"id":2766,"depth":2203,"text":2767,"children":6790},[6791,6792,6793,6794,6795],{"id":2770,"depth":2220,"text":2771},{"id":2849,"depth":2220,"text":2850},{"id":3129,"depth":2220,"text":3130},{"id":3423,"depth":2220,"text":3424},{"id":3497,"depth":2220,"text":3498},{"id":2128,"depth":2203,"text":3598,"children":6797},[6798,6799,6800,6801,6802,6803,6804,6805,6806,6807],{"id":2500,"depth":2220,"text":3622},{"id":3813,"depth":2220,"text":3814},{"id":4111,"depth":2220,"text":4112},{"id":4180,"depth":2220,"text":2506},{"id":4333,"depth":2220,"text":2512},{"id":4374,"depth":2220,"text":4375},{"id":4399,"depth":2220,"text":4399},{"id":4402,"depth":2220,"text":4402},{"id":4405,"depth":2220,"text":4405},{"id":4461,"depth":2220,"text":4462},{"id":4512,"depth":2203,"text":4513,"children":6809},[6810,6811,6812],{"id":4666,"depth":2220,"text":4667},{"id":4800,"depth":2220,"text":4801},{"id":5326,"depth":2220,"text":5327},{"id":2134,"depth":2203,"text":5379},{"id":5662,"depth":2203,"text":5663,"children":6815},[6816,6817,6818,6819,6820,6821],{"id":5693,"depth":2220,"text":5694},{"id":5799,"depth":2220,"text":5800},{"id":6282,"depth":2220,"text":6283},{"id":6319,"depth":2220,"text":6320},{"id":6354,"depth":2220,"text":6355},{"id":6449,"depth":2220,"text":6450},{"id":6474,"depth":2203,"text":6475,"children":6823},[6824,6825,6826,6827,6828],{"id":6484,"depth":2220,"text":6485},{"id":6544,"depth":2220,"text":6545},{"id":6650,"depth":2220,"text":6651},{"id":6702,"depth":2220,"text":6703},{"id":6758,"depth":2220,"text":6759},"md",{},true,"UI-1388","---\ntitle: The Studio LLM guide\ndescription: The prog document model, the xu-* attribute reference, and the workflow rules an AI agent is taught before its first tool call.\nicon: book-open-text\nowner: UI-1388\nsources:\n  - runtime\u002Fdocs\u002Fllm\u002Fanatomy.md\n  - runtime\u002Fdocs\u002Fllm\u002Fattributes.md\n  - runtime\u002Fdocs\u002Fllm\u002Fcomponents.md\n  - runtime\u002Fdocs\u002Fllm\u002Fgotchas.md\n  - runtime\u002Fdocs\u002Fllm\u002Finstructions.md\n  - runtime\u002Fdocs\u002Fllm\u002Fjavascript.md\n  - runtime\u002Fdocs\u002Fllm\u002Fprograms.md\n  - runtime\u002Fdocs\u002Fllm\u002Ftables.md\n  - runtime\u002Fjs\u002Fmodules\u002Fxuda-studio-llm-guide.mjs\n  - runtime\u002Fjs\u002Fmodules\u002Fxuda-studio-checker.mjs\n  - runtime\u002Fjs\u002Fmodules\u002Fxuda-api-library.mjs\n  - runtime\u002Fjs\u002Fmodules\u002Fxuda-studio-doc-utils.mjs\n  - runtime\u002Fjs\u002Fxuda_events.js\n  - studio\u002Fsrc\u002Futils\u002FactionCatalog.js\n  - studio\u002Fsrc\u002Fcomponents\u002FPropertyActionsItem.vue\n  - config.json\nverified_against: \"2026-09-25 all 8 runtime\u002Fdocs\u002Fllm\u002F*.md topic files read end to end, every {{PLACEHOLDER}} resolved against the live REGISTRY in xuda-studio-llm-guide.mjs (XU_UI_ATTRIBUTES, XU_ATTRIBUTE_PREFIXES, WORKFLOW_ACTIONS, DEPRECATED_WORKFLOW_ACTIONS, INVOKE_ACTION_VALUES, PROG_EVENT_TYPES, PROTECTED_VARS, AUTHORING_XU_TAGS in xuda-studio-checker.mjs, XU_SCRIPT_API in xuda-api-library.mjs, valid_menuType in xuda-studio-doc-utils.mjs); config.json confirms get_studio_guide and get_prog_examples carry no private flag; cross-checked Studio's action picker (actionCatalog.js, PropertyActionsItem.vue) against the checker's check_prog_triggers switch and the runtime executor's action map in xuda_events.js and found call_ai_agent\u002Fcall_triage_agent offered in the UI but absent from both, added as a callout\"\nstatus: verified\nredirect_from: []\n---\n\nEvery Studio project, every table, screen, script and route inside it, is one CouchDB JSON document\ncalled a **prog** (`docType: \"studio\"`). This page is the same reference an AI agent receives when\nit builds one, rewritten as documentation: the shape of that document, the attributes that drive\nits UI, the actions a workflow can take, and the mistakes that show up in real builds.\n\n## How an AI agent gets this guide\n\nConnect an MCP client to Xuda and the first response, the `initialize` call, carries this guide as\nthe session's `instructions`, merged fresh from the platform's own live rules so it can never\ndescribe something the deployed checker no longer enforces. See\n[Connecting an AI client over MCP](\u002Fdocs\u002Fbuild-with-ai\u002Fconnecting-an-ai-client-over-mcp).\n\nFrom inside a session, two methods reach the same material directly, over MCP or plain REST, and\nrequire nothing beyond a normal API key:\n\n| Method | Does |\n| --- | --- |\n| `get_studio_guide` | Rereads a topic on demand: `instructions`, `anatomy`, `attributes`, `components`, `programs`, `tables`, `javascript`, `gotchas`. Omit the topic for the primer and the required workflow below. |\n| `get_prog_examples` | Curated, working example progs from Xuda's own kitchen-sink project, filterable by a text pattern or a prog type, then fetched by id to pattern a build on. |\n\nThe prescribed order: read the topic that matches what you are building, fetch a matching example,\ncreate the prog through the factory (`create_prog`), build inside its content sections, validate\n(`validate_prog`) and fix everything it reports, save (`save_prog`), then re-fetch to verify. A\nsave that returns `-409` means the document changed since it was read: re-fetch, reapply, retry.\n\n## The prog document model\n\n### The envelope\n\nServer and factory code own these fields; an authored build only ever edits the content sections\nbelow them.\n\n```json\n{\n  \"_id\": \"392_cmp_f15654997737\",\n  \"_rev\": \"3-...\",\n  \"docType\": \"studio\",\n  \"stat\": 3,\n  \"app_id\": \"prj...\",\n  \"properties\": { \"menuType\": \"component\", \"menuName\": \"Orders\", \"menuTitle\": \"Orders\" },\n  \"studio_meta\": { \"created\": 1750000000000, \"createdByUid\": \"...\", \"savedByUid\": \"...\", \"parentId\": \"programs\" }\n}\n```\n\n- `_id` follows `\u003Clast 3 chars of app_id>_\u003C3-letter type abbreviation>_\u003C12 hex>`, for example\n  `392_cmp_...` for a component, `392_tbl_...` for a table, `392_jvs_...` for a javascript prog,\n  `392_gtd_...` \u002F `392_std_...` for get_data \u002F set_data, `392_fld_...` for a folder. The factory\n  generates ids, a build never invents one.\n- `stat` is 3 for active, 4 for soft-deleted (what deleting a prog sets). Studio's tree only shows\n  `stat: 3`.\n- `properties.menuType` is one of `globals`, `table`, `get_data`, `set_data`, `batch`, `alert`,\n  `javascript`, `folder`, `route`, `api`, `component`, `ai_agent`.\n- `studio_meta.parentId` places the node in the Studio tree: either another prog's id (usually a\n  folder) or one of the type roots, `programs` (logic and components), `database` (tables),\n  `routes`, `globals`, `ai_agents`. An unrecognized `parentId` leaves the node invisible in the\n  tree and is a checker error.\n\n### Content sections by menuType\n\n| menuType | Sections a build edits |\n| --- | --- |\n| `component` | `properties`, `progUi`, `progFields`, `progEvents`, `progDataSource` |\n| `table` | `tableFields`, `tableIndexes`, `properties.databaseSocket` |\n| `get_data` \u002F `set_data` \u002F `batch` | `progDataSource`, `progFields`, `progEvents`, `properties.progParams` |\n| `javascript` \u002F `api` | `scriptData`, `properties.progParams` |\n| `alert` | `alertData` |\n| `route` | `routeMenu` |\n| `ai_agent` | `agentConfig` |\n| `folder` | nothing, a pure tree container |\n| `globals` | `progFields`, project-wide fields |\n\n### The globals doc\n\nEach project has exactly one `global_\u003Capp_id>` document (`menuType: \"globals\"`). Its `progFields`\nare readable from every other prog as `@field_id`. Two system globals ship on every project:\n`@SYS_GLOBAL_OBJ_LOGIN_USER_INFO` for the signed-in user, and `@SYS_GLOBAL_OBJ_REFS` for elements\nregistered with `xu-ref`. Neither the globals doc nor the tree root can be deleted.\n\n### Structural musts\n\n- `properties`, `properties.menuType`, `properties.menuName`, `studio_meta`, and\n  `studio_meta.parentId` are mandatory on every doc.\n- A `progFields` entry needs a unique `id`, `data.field_id`, a `data.type` of `virtual`, `table`,\n  `expression` or `datasource`, and a `props.fieldType` of `string`, `number`, `boolean`, `array`\n  or `object`.\n- Reserved runtime variable names, `_NULL`, `_THIS`, `_FOR_KEY`, `_FOR_VAL`, `_ROWNO`, `_ROWID`,\n  `_ROWDOC`, `_KEY`, `_VAL`, are never redefined as field ids.\n- Duplicate ids, unknown `menuType`s and malformed sections are all hard errors that\n  `validate_prog` reports directly.\n\n## Expressions and xu-* attributes\n\n### Expression syntax\n\nExpressions run against the prog's own dataset. Any field, local, table-bound, global or a\nparameter, is referenced with `@`: `@search_v`, `@ORD_Total`, `@SYS_GLOBAL_OBJ_LOGIN_USER_INFO`,\nplain JavaScript around it, `@count_v > 0 ? 'has rows' : 'empty'`. An object literal needs wrapping\nparens, `({ ORD_Status: @status_v })`. Inside an `xu-for` loop, the current item is `@_FOR_VAL` and\nits key or index `@_FOR_KEY` (renameable with `xu-for-key` \u002F `xu-for-val`). `xu-render` and other\nconditions return the truthy or falsy value directly, never a `\"Y\"` \u002F `\"N\"` string or an extra\ncomparison.\n\n::callout{type=\"warning\" title=\"xu-bind is the one exception\"}\nEverywhere else a field is referenced with `@`. `xu-bind` takes the bare field id instead:\n`xu-bind=\"search_v\"`, never `xu-bind=\"@search_v\"`.\n::\n\n### The xu attributes\n\n| Attribute | What it does |\n| --- | --- |\n| `xu-bind` | Two-way binding between an input element and a `progFields` field. Value is the bare `field_id`, no `@`. Example: `xu-bind=\"user_email_v\"`. |\n| `xu-render` | Conditional render, the element is removed from the DOM when the expression is falsy. Return truthy or falsy directly. Example: `xu-render=\"@user_logged_in\"`. |\n| `xu-show` | Conditional visibility through CSS `display`, the element stays in the DOM. Example: `xu-show=\"@show_advanced\"`. |\n| `xu-for` | Repeats the element for each item of an array or object expression, the current item is `@_FOR_VAL`, its key or index `@_FOR_KEY`. Example: `xu-for=\"@students_list\"`. |\n| `xu-for-key` | Custom variable name for the `xu-for` iterator key, default `_FOR_KEY`. |\n| `xu-for-val` | Custom variable name for the `xu-for` iterator value, default `_FOR_VAL`. |\n| `xu-class` | Toggles CSS classes from an object or JSON5 string, keys are class names, values are condition expressions. Example: `xu-class=\"{'active':'@is_selected'}\"`. |\n| `xu-store` | Parses a JSON5 object and stores its key and values as dynamic fields in the dataset. Example: `xu-store=\"{'status':'ready'}\"`. |\n| `xu-text` | Sets the element's inner text, usually driven through `xu-exp:xu-text`. |\n| `xu-html` | Sets raw inner HTML, usually driven through `xu-exp:xu-html`. |\n| `xu-content` | Sets the element's text content, usually driven through `xu-exp:xu-content`. Static text belongs in the node's `content` property instead. |\n| `xu-ref` | Registers the element under `SYS_GLOBAL_OBJ_REFS.\u003Cname>` so expressions or scripts can target it, for loading and empty states or imperative access. Example: `xu-ref=\"orders_grid\"`. |\n| `xu-style` | Scoped CSS: plain CSS whose selectors are auto-prefixed with the node's `[xu-ui-id]` (descendant and self forms), self-contained styling. The value must not contain any quote character. |\n| `xu-style-global` | Like `xu-style` but injected globally, without the `[xu-ui-id]` scoping prefix. Same no-quotes rule. |\n| `xu-script` | Inline JS run when the node first becomes visible. The value must be a bare `function (el) { ... }` expression, `eval`'d and called with the DOM element. Must not contain any quote character; scope all queries to `el`. |\n| `xu-cdn` | Loads an external CSS or JS resource by URL before the node renders. |\n| `xu-ui-plugin` | Attaches or configures an installed UI plugin on the element (sliders, charts). |\n| `xu-viewport` | Viewport-conditional rendering logic. |\n\n### Prefix families\n\nAttribute families that take a suffix. `xu-on` values are always arrays of handler objects;\n`xu-exp` values are always expression strings.\n\n| Family | What it does |\n| --- | --- |\n| `xu-on:\u003Cevent>` | Event listener (`click`, `input`, `change`) whose value is an array of handler objects: `[{\"handler\":\"custom\",\"props\":{},\"workflow\":[...]}]`. The `workflow` array holds action steps. |\n| `xu-exp:\u003Cattr>` | Evaluates the expression and applies the result to `\u003Cattr>`, works for HTML attributes (`xu-exp:value`, `xu-exp:src`) and xu attributes (`xu-exp:xu-content`, `xu-exp:class`). `xu-exp:class` replaces the static `class` attribute entirely, layout classes belong inside the expression. |\n\n```json\n\"xu-on:click\": [{\n  \"handler\": \"custom\",\n  \"props\": {},\n  \"workflow\": [\n    { \"id\": \"1\", \"data\": { \"action\": \"update\", \"name\": { \"value\": \"@saving_v: true\" }, \"enabled\": true }, \"props\": {} },\n    { \"id\": \"2\", \"data\": { \"action\": \"set_data\", \"name\": { \"prog\": \"392_std_...\", \"properties\": {}, \"parameters\": {} }, \"enabled\": true }, \"props\": { \"condition\": \"@form_valid_v\" } }\n  ]\n}]\n```\n\nThe value of an `xu-on:*` attribute is always an array of handler objects, and each `workflow` is\nan array of action steps (the full action reference is below, under Logic programs and\nworkflows). A step's `props.condition` gates it; `props.async: true` fires it without waiting.\n\n### Critical semantics\n\n- `xu-exp:class` **replaces** the static `class` attribute rather than adding to it. An element\n  carrying both has the static one ignored, so the layout classes belong inside the expression too:\n  `xu-exp:class=\"'card p-4 ' + (@active_v ? 'ring' : '')\"`.\n- `xu-script` takes a bare `function (el) { ... }` expression, `eval`'d and called with the DOM\n  element once the node becomes visible. Guard against re-runs (`if (el.__bound) return;\n  el.__bound = true;`) and scope every query to `el`, never to `document`.\n- `xu-style` is auto-scoped: every selector is prefixed with the node's `[xu-ui-id]`, so plain\n  element and class selectors stay local and never leak.\n- Neither `xu-script` nor `xu-style` values may contain a quote character (`'` or `\"`), the\n  designer canvas serializes attributes unescaped and one quote corrupts the component. The\n  JavaScript programs section below covers quote-free techniques.\n- Static text belongs in an element's `content` property. `xu-exp:xu-content` is for dynamic text\n  only.\n\n### Tags\n\nAuthoring tags besides plain HTML: `xu-template`, `xu-single-view`, `xu-multi-view`, `xu-panel`,\n`xu-teleport`, `xu-slot`.\n\n- `xu-single-view` scopes a single record (a form root, also usable nested).\n- `xu-multi-view` repeats its children once per row of the bound data.\n- `xu-panel` embeds another prog (`program` attribute plus `xu-exp:\u003Cparam>` inputs). Only standard\n  HTML attributes (`class`, `id`, `style`, `title`, `hidden`, `slot`, `name`, `role`, `tabindex`)\n  belong on it besides the param expressions.\n- `xu-teleport` renders its children at another DOM target (`to` or `xu-exp:to`).\n- A **capitalized** tag name (`Button`, `Card`) is a compiled component, not an HTML element, see\n  Embedding below.\n\n## Components\n\nA component (`menuType: \"component\"`) is a UI unit: an element tree (`progUi`) bound to local\nstate (`progFields`), optional data (`progDataSource`), lifecycle logic (`progEvents`) and an\ninput\u002Foutput interface (`properties.progParams`).\n\n### Properties\n\n```json\n{\n  \"menuType\": \"component\", \"menuName\": \"OrderList\",\n  \"renderType\": \"form\",\n  \"uiFramework\": \"@xuda.io\u002Fxuda-framework-plugin-tailwind\",\n  \"rwMode\": \"R\",\n  \"progParams\": [{ \"id\": 1, \"data\": { \"dir\": \"in\", \"parameter\": \"order_id_in\", \"type\": \"string\" }, \"props\": {} }]\n}\n```\n\n- `renderType` is `form` for a single record (root element `xu-single-view`) or `grid` \u002F `list` for\n  one repeated per data row (root element `xu-multi-view`).\n- `rwMode` is `R` for read or `U` for update; `allowCreate` says whether a new row can be inserted\n  when none matches.\n- `progParams` naming convention: parameters end `_in` \u002F `_out`, component-local virtual fields end\n  `_v`.\n- `uiFramework` mirrors whatever the project's existing components already use. An existing\n  project that omits it should keep omitting it, setting a framework plugin the project's drive\n  does not actually serve stalls the live preview on a blank screen.\n\n### The element tree (progUi)\n\n```json\n{\n  \"id\": \"root\", \"type\": \"element\", \"tagName\": \"xu-single-view\", \"attributes\": {},\n  \"children\": [\n    { \"id\": \"ui-...\", \"type\": \"element\", \"tagName\": \"div\",\n      \"attributes\": { \"class\": \"card\", \"xu-style\": \".card { padding: 16px; border-radius: 12px; }\" },\n      \"children\": [\n        { \"id\": \"ui-...\", \"type\": \"element\", \"tagName\": \"h2\", \"content\": \"Orders\", \"attributes\": {}, \"children\": [] },\n        { \"id\": \"ui-...\", \"type\": \"element\", \"tagName\": \"input\", \"children\": [],\n          \"attributes\": { \"type\": \"text\", \"placeholder\": \"Search\", \"xu-bind\": \"search_v\" } }\n      ] }\n  ]\n}\n```\n\nThe factory `root` node stays; a build works inside its `children`. Every node needs a unique id\n(new nodes use `ui-\u003Cuuid>`), `type: \"element\"`, and a `tagName`, no `comment` or `text` node types,\nstatic text lives in `content` instead. **Every node needs `attributes: {}` and `children: []`\neven when empty**, the designer canvas serializer dereferences both on every node and an omission\nbreaks the component's own preview.\n\n### Embedding: xu-panel or a compiled component\n\nBoth mount transparently, no wrapper element, and both are decided by one signal: whether\n`tagName` starts with a capital letter.\n\n- **`xu-panel`**, lower-case `tagName` plus a `program` attribute, embeds another prog, a\n  database-bound or stateful child with its own fields and events. `program` is the child's id\n  (or `xu-exp:prog` for a dynamic one), values reach its `_in` params through `xu-exp:\u003Cparam>`.\n- **A capitalized tag** plus a `library` attribute mounts a compiled component, a design-system\n  primitive or a part the app itself compiled. Every plain attribute becomes a prop\n  (`props.\u003Cname>`), never a DOM attribute, since the component renders no element of its own. A\n  component node has no out-params, unlike `xu-panel` nothing writes a value back to your fields.\n\n::callout{type=\"danger\" title=\"Capitalization alone decides\"}\nA typo'd `\u003CButon>` is still claimed as a component tag, never falls back to an unknown HTML\nelement, and throws at mount naming the tag, the library, and every source tried. `validate_prog`\ndoes not check component tags or `library` values today, the live preview is the only check.\n::\n\n### progFields\n\n```json\n[\n  { \"id\": \"\u003Cuuid>\", \"data\": { \"type\": \"virtual\", \"field_id\": \"search_v\" }, \"props\": { \"fieldType\": \"string\" }, \"workflow\": [] },\n  { \"id\": \"\u003Cuuid>\", \"data\": { \"type\": \"table\", \"field_id\": \"ORD_Total\" }, \"props\": { \"fieldType\": \"number\" }, \"workflow\": [] }\n]\n```\n\n`data.type` is `virtual` for local state, `table` for a column of the bound datasource, or\n`expression` \u002F `datasource`. A field's `workflow` runs on change. A default sets\n`props.fieldValue`; a computed field sets `props.fieldComputed: true` plus\n`propExpressions.fieldValue`.\n\n### progDataSource\n\nA single record by key (form): `dataSourceFilterModelType: \"index\"` with a `dataSourceIndexId`\nthat exists on the table's own `tableIndexes`. A filtered list (grid or list):\n`dataSourceFilterModelType: \"query\"` with `filterModelMongoFx`, a Mongo-style expression string.\n`dataSourceType` is `table`, `array`, `json`, `csv`, `none`, or empty for a purely presentational\ncomponent with no data source at all.\n\n### progEvents and the three lifecycle hooks\n\nEvent types: `on_load`, `on_exit`, `before_record`, `after_record`, `record_not_found`,\n`locate_not_found`, `screen_ready`, `on_refresh`, `on_unload`, `client_interval`, `user_defined`.\n`user_defined` events fire from anywhere with the\n`raise_event` action; `screen_ready` is the usual mount hook.\n\nA component's three built-in hooks split the work, using the wrong one is a common source of bugs:\n\n::steps\n### screen_ready\nFires once per instance. Create DOM and widgets here.\n\n### on_refresh\nFires after every load, including the first, right after `screen_ready`. Hand new data to widgets\nthat already exist. Putting refresh work in `screen_ready` instead re-runs create code against DOM\nthat still exists and stacks a second widget.\n\n### on_unload\nFires when the instance is torn down. Destroy what the prog created, widgets, timers,\n`document` \u002F `window` listeners, observers. The engine can only free what it created, a listener\nbound to `document` outlives the panel otherwise.\n::\n\n### Patterns\n\n- **Loading and empty states**: put `xu-ref=\"myref\"` on the data-bound element, then gate\n  skeleton or empty elements with `xu-render` over `(@SYS_GLOBAL_OBJ_REFS).myref`, its dataset\n  attaches once data arrives.\n- **Modals**: build the dialog as its own component, open it with the `call_modal` action.\n- **Save or delete a bound row**: `invoke_action` with `act_save` \u002F `act_delete`, or a dedicated\n  `set_data` prog for anything past the current row.\n\n## Logic programs and workflows\n\nLogic prog types share a component's data machinery (`progDataSource`, `progFields`,\n`progEvents`, `properties.progParams`) without any UI:\n\n| menuType | What it is |\n| --- | --- |\n| `get_data` | A saved query, called with the `get_data` \u002F `batch` action, results land in the field named by `outputField`. |\n| `set_data` | A write, update or delete unit, binds the target row through `progDataSource`; `before_record` \u002F `after_record` events carry the follow-up logic. |\n| `batch` | Iterative record-by-record execution over a datasource or array; lifecycle events fire per record. |\n| `api` | An HTTP endpoint of the project. `scriptData.value` is the response template, `properties` carries the output format (`json`, `html`, `text`, `xml`, `csv`, `pdf`). |\n| `alert` | A reusable message: type (`info` \u002F `success` \u002F `warning` \u002F `error`) and display (`toast` \u002F `modal` \u002F `browser` \u002F `console`), called with `call_alert`. |\n| `route` | A URL routing entry (`routeMenu`), tree parent `routes`. |\n\n### Parameters\n\n```json\n\"progParams\": [\n  { \"id\": 1, \"data\": { \"dir\": \"in\",  \"parameter\": \"order_id_in\", \"type\": \"string\" }, \"props\": {} },\n  { \"id\": 2, \"data\": { \"dir\": \"out\", \"parameter\": \"total_out\",   \"type\": \"number\" }, \"props\": {} }\n]\n```\n\nA caller passes values through the action's `name.parameters`,\n`{ \"order_id_in\": { \"value\": \"\", \"fx\": \"@selected_id_v\" } }`, `value` for a static value, `fx` for\nan expression. The checker verifies the target program exists and its `menuType` matches the\naction.\n\n### Workflow actions\n\nA workflow is an array of steps, `{ \"id\": \"...\", \"data\": { \"action\": \"...\", \"name\": { ... },\n\"enabled\": true }, \"props\": {} }`, run in order. `props.condition` gates a step, `props.async:\ntrue` fires it without waiting. Workflows appear in `xu-on:*` handlers, `progEvents[].workflow`,\nand a field's own `workflow`.\n\n| Action (`data.action`) | What `data.name` needs |\n| --- | --- |\n| `update` | Set field values. `name.value` syntax: `\"@field: expression; @other: expression\"` (or a JSON5 object). Fields must exist in the project. |\n| `invoke_action` | Run a built-in component action; `name.value` must be one of the invoke values below (components only). |\n| `raise_event` | Trigger a `user_defined` event by name (`name.event`) with optional `name.parameters` (`{param:{value,fx}}`). |\n| `emit_event` | Emit a plain JavaScript event (`name.value`). |\n| `call_page` | Open a component as a page. `name.prog` is the target component's id. |\n| `call_modal` | Open a component as a modal dialog. `name.prog` is the target component's id. |\n| `call_popover` | Open a component as a popover. `name.prog` is the target component's id. |\n| `get_data` | Run a `get_data` program (`name.prog`), parameters through `name.parameters`. |\n| `set_data` | Run a `set_data` program (`name.prog`), results can land in `name.outputField`. |\n| `batch` | Run a `batch` program (`name.prog`), results land in the virtual field named by `name.outputField`. |\n| `call_native_javascript` | Call a javascript program by id (`name.prog`). |\n| `call_evaluate_javascript` | Call a javascript program with argument evaluation (`name.prog`). |\n| `execute_native_javascript` | Execute inline JavaScript (`name.value`). |\n| `execute_evaluate_javascript` | Evaluate and run a dynamic JS expression (`name.value`). |\n| `call_project_api` | Call an `api` program of this project (`name.prog`). |\n| `call_system_api` | Invoke a system-level API method (`name.api_method`). |\n| `call_external_api` | HTTP request to an external URL (`name.url`, `name.method`). |\n| `alert` | Show an inline alert definition (`name.alertDisplay` \u002F `alertType` \u002F `alertTitle` \u002F `alertBody`). |\n| `call_alert` | Call an alert program by id (`name.prog`). |\n| `call_library` | Call an installed plugin library method (`name.plugin_name` plus `name.library_method`); the plugin must be purchased and installed on the app. |\n| `loader_on` \u002F `loader_off` | Show or hide the loading indicator. |\n| `delay` | Pause the workflow for `name.value` milliseconds. |\n| `comment` | Documentation-only step, never executes. |\n\n`invoke_action` accepts `act_next`, `act_prev`, `act_first`, `act_last`, `act_reload`,\n`act_refresh`, `act_print`, `act_save`, `act_delete` (component context only).\n\n::callout{type=\"danger\" title=\"Deprecated actions the checker rejects\"}\n`alter_ui_element`, `create_ui_element`, `info_ui_element`, `remove_ui_element`,\n`empty_ui_element`, `cache_ui_element`, `load_ui_element`. Drive UI through fields and `xu-exp` \u002F\n`xu-render` instead of an imperative element action.\n::\n\n::callout{type=\"danger\" title=\"call_ai_agent and call_triage_agent are not real actions\"}\nStudio's own action picker offers **Call AI Agent** and **Call Triage Agent** next to the actions\nabove. Neither is in this table because neither is one: `validate_prog` has no case for them and\nreports `invalid trigger type`, and the runtime workflow engine has no handler for them either, so\na saved step never runs even if the error is ignored. To have one prog reach a published agent, add\nan **AI Agent** tool to another agent's own tool list instead (a `menuType: \"ai_agent\"` doc's\n`agentConfig.agent_tools`), not a workflow step on a component, `get_data`, or any other prog type.\n::\n\n`update`'s `name.value` assigns fields with semicolon-separated `@field: expression` pairs, or a\nJSON5 object, `\"@saving_v: true; @status_v: 'sent'\"`. Calling another program names it under\n`name.prog`, matching the action to the program's own type\n(`get_data` needs a `get_data` prog, `call_native_javascript` a `javascript` prog, and so on).\n\n`call_library` calls an installed plugin method: `name.plugin_name` must be purchased and\ninstalled on the app or the checker rejects the step, `name.library_method` one of the methods the\nplugin exports, `name.library_props` its declared fields. Two prop names are a convention across\nplugins rather than specific to any one of them: `event_name_for_successful_callback` raises that\nevent with the method's response, `field_id_to_return_result` writes the response into that field\ndirectly, neither is required.\n\n### progEvents types\n\n`on_load`, `on_exit`, `before_record`, `after_record`, `record_not_found`, `locate_not_found`,\n`screen_ready`, `on_refresh`, `on_unload`, `client_interval`, `user_defined`. `screen_ready` is\nthe usual init hook; `before_record` \u002F `after_record` \u002F\n`record_not_found` \u002F `locate_not_found` are data lifecycle, especially for `set_data` and `batch`;\n`client_interval` is a repeating timer; `user_defined` fires from the `raise_event` action.\n\n## Tables\n\nA table prog (`menuType: \"table\"`) defines a database table: its columns (`tableFields`), its\nindexes (`tableIndexes`), and the database plugin storing it (`properties.databaseSocket`). Tree\nparent: `database`, or a folder under it.\n\n```json\n{\n  \"properties\": { \"menuType\": \"table\", \"menuName\": \"ORD - Orders\", \"databaseSocket\": \"@xuda.io\u002Fxuda-dbs-plugin-xuda\" },\n  \"tableFields\": [\n    { \"id\": \"\u003Cuuid>\", \"data\": { \"field_id\": \"ORD_Id\" }, \"props\": { \"fieldType\": \"string\", \"mandatory\": true } }\n  ],\n  \"tableIndexes\": [\n    { \"id\": \"\u003Cuuid>\", \"data\": { \"name\": \"index_1\", \"unique\": true, \"keys\": [\"ORD_Id\"] }, \"props\": {} }\n  ]\n}\n```\n\n- `databaseSocket` must name a database plugin installed on the project,\n  `@xuda.io\u002Fxuda-dbs-plugin-xuda` is the platform default; an existing table in the same project\n  is the reference for which socket to reuse.\n- At least one field and at least one index are required.\n- `field_id` starts with a letter, then letters, digits, underscore, dash, colon or dot, and stays\n  unique within the table.\n- `fieldType` is `string`, `number`, `boolean`, `array`, `object` or `date`; `mandatory: true`\n  makes it required on save.\n- Every index needs a non-empty `name` and `keys`, and every key must be an existing `field_id`.\n\nConvention: prefix columns with a three-letter table code, a table named \"ORD - Orders\" gets\n`ORD_Id`, `ORD_Total`, `ORD_Status`. Give every table a unique `\u003CTBL>_Id` field with a unique index\non it, a single-record component binding needs it.\n\nA table is used three ways: a component or query's `progDataSource.dataSourceTableId`, a\n`get_data` \u002F `set_data` \u002F `batch` prog for row-level access from workflows, or `xu.dbs_create` \u002F\n`dbs_read` \u002F `dbs_update` \u002F `dbs_delete` from a script, covered next.\n\n## JavaScript programs\n\nA javascript prog (`menuType: \"javascript\"`) holds real JS source in `scriptData.value`, compiled\non save. `save_prog` triggers that build and returns the result as `data.compile`, `{ ok: true,\ndependencies }` or `{ ok: false, error }`. A failed compile still saves the doc, so a build reads\n`compile.ok` and fixes it before moving on.\n\n### The execution contract\n\nThe source is written as a plain async body, no `export`, no wrapper. At run time it executes as:\n\n```js\nasync function (params, xu, SESSION_ID, SESSION_OBJ, jobNoP, $container, func, glb, APP_OBJ, evt) {\n  \u002F* source *\u002F\n}\n```\n\n`params` are the caller's already-evaluated inputs; `xu` is the runtime API below; a return value\nis optional, the idiomatic way to hand results back is `xu.set_field_value` on the calling\ncomponent's fields. Quotes are fine here, unlike an `xu-script` attribute value.\n\n### The xu runtime API\n\n| Call | Does |\n| --- | --- |\n| `xu.get_field_value(field_id)` | Read a field of the calling context (component or program dataset). Returns the value, or `false` plus a logged error when the field does not exist. |\n| `xu.set_field_value(field_id, value, avoid_refresh?)` | Write a field; the datasource updates and bound UI refreshes. This is how a script hands results back to the component. |\n| `xu.invoke_event(event_name, options?)` | Trigger a `user_defined` `progEvents` entry by its `event_name`. |\n| `xu.dbs_create(table_id, row_obj)` | Insert one row into a xuda table prog (`menuType: \"table\"`). `row_obj` keys are the table's field ids. Returns `{code, data}`. |\n| `xu.dbs_read(table_id, selector?, fields?, sort?, limit?, skip?)` | Query a xuda table with a Mongo-style selector object (`{}` for all). Returns the rows array, default limit 999, rows also expose `.total_rows`. |\n| `xu.dbs_update(table_id, row_id, changes_obj)` | Update one row by its id. |\n| `xu.dbs_delete(table_id, row_id)` | Delete one row by its id. |\n| `xu.call_javascript(prog_id, params?, evaluate?)` | Run another javascript prog with parameters. |\n| `xu.call_project_api(prog_id, params?)` | Execute an `api` prog of this project and get its rendered output (parsed when the API outputs JSON). |\n| `xu.call_system_api(method, payload?)` | POST a platform CPI method, `app_id` and `app_token` are added automatically. |\n| `xu.call_external_api(method, url, payload?)` | HTTP request to an external host (`url` without the `https:\u002F\u002F` prefix). |\n| `xu.alert(type, display, message, details?)` | Show an alert, `type` is `error` \u002F `warn` \u002F `info` \u002F `log`, `display` is `console` \u002F `modal` \u002F `toast` \u002F `browser`. |\n| `xu.log(type, message, details?)` | Report to the runtime issue log (`type` `E` \u002F `W` \u002F `I`). |\n| `xu.read_drive(filename)` | Fetch a file from the app workspace drive (JSON-parsed). |\n| `xu.write_drive(stream, filename, make_public?)` | Upload a file to the app workspace drive. |\n\n```js\nconst raw = await xu.get_field_value(`rows_json_v`);\nconst rows = typeof raw === `string` ? JSON.parse(raw || `[]`) : raw || [];\nfor (const row of rows) {\n  await xu.dbs_create(`392_tbl_...`, { CNT_Name: row.name || ``, CNT_Email: row.email || `` });\n}\n\u002F\u002F dbs_read resolves to an ARRAY of { id, value } rows: the row id on .id, table fields under .value.\nconst all = await xu.dbs_read(`392_tbl_...`, {}, [], null, 999);\nawait xu.set_field_value(`status_v`, `Saved ` + rows.length + ` rows`);\n```\n\n`dbs_*` methods take the table prog's own `_id`, never a name. Selectors are Mongo-style objects on\nthe field ids, `{}` returns everything (default limit 999). The `fields` projection is optional,\n`[]` returns every field and a list of field ids returns only those.\n\n### Passing data in: fields, not parameters\n\n`call_native_javascript` does not evaluate `{value, fx}` parameter wrappers, `name.parameters`\nreaches the script raw. The reliable contract: the component puts the payload in a field first (an\n`update` step or an `xu-bind` input), the workflow calls the prog with empty `parameters: {}`, and\nthe script reads it with `xu.get_field_value` and reports back with `xu.set_field_value`. Calling\nfrom another script instead, `xu.call_javascript(prog_id, {...})` does pass params directly.\n\n### Live-preview quirks\n\n- Data writes reach the real database, but `xu.dbs_read` reads a local draft store that may not\n  hold fresh server rows, a read right after a write can come back empty in preview even though\n  the write landed (visible in the table's Data tab in Studio). Deployed apps read and write the\n  same store.\n- Compiled scripts cache hard in dev previews, a running preview can keep executing the previous\n  script even across reloads after a save recompiles it. A hard browser refresh clears it.\n- `xu.alert` with `modal`, `toast` or `browser` display can surface as a native, blocking\n  `alert()` in preview. `xu.set_field_value` into a status field is the safer way to report back.\n\n### javascript prog vs xu-script attribute\n\n| | javascript prog | `xu-script` attribute |\n| --- | --- | --- |\n| Lives in | `scriptData.value`, its own doc | an element's attributes |\n| Runs | when a workflow calls it | once, when the element first becomes visible |\n| Gets | `params`, the `xu` API, session objects | only the DOM element |\n| Data access | `xu.dbs_*`, `xu.get_field_value` \u002F `set_field_value` | none, DOM only |\n| Quotes | allowed | forbidden, no `'` or `\"` anywhere |\n\n### Quote-free techniques for xu-script \u002F xu-style\n\nThe designer canvas serializes attribute values unescaped, so a single quote corrupts the\ncomponent's markup. Template literals avoid string quotes entirely\n(`` el.textContent = `Ready` ``); the literal `\"` character, for example while building CSV, comes\nfrom `String.fromCharCode(34)`; CSS attribute selectors are valid unquoted\n(`` el.querySelector(`[data-role=import-btn]`) ``); and a re-run guard,\n`if (el.__bound) return; el.__bound = true;`, keeps a script from double-binding on re-render.\n\n## Landmines\n\nEvery entry below broke a real build at some point. `validate_prog` catches most of them, run it\nbefore every save.\n\n### API mechanics\n\n- Every response is `{ code, data }`, `code \u003C 0` is an error.\n- `create_prog` returns the new doc under `data.prog`, saving the whole response instead persists\n  a malformed doc with `properties` buried under `prog`.\n- `save_prog` replaces the whole document. Start from the current doc, never a hand-assembled\n  skeleton; a `-409` means it changed since the last read, re-fetch, reapply, retry.\n- Over MCP, `prog_json` and `properties_json` are passed as strings, the tool schema layer strips\n  unknown keys from an object parameter and can silently drop whole sections.\n- `delete_prog` is a soft delete, it sets `stat: 4`. The `global_\u003Capp_id>` node cannot be deleted.\n\n### Doc content\n\n- No `'` or `\"` inside `xu-script` or `xu-style` values.\n- `$`-prefixed keys (`$folded`, `$childrenClass`, `$nodeBackClass`), plus `path`, `code`,\n  `editCode`, are designer view-state and never belong in a saved `progUi` node.\n- No `comment` or `text` node types, elements only, static text in `content`.\n- Every element node needs `attributes: {}` and `children: []` even when empty.\n- `xu-exp:class` replaces the static `class`, every needed class belongs inside the expression.\n- `xu-bind` is a bare field id, no `@`, everywhere else fields use `@`.\n- Only the documented `xu-*` attributes do anything, an invented one is silently ignored and\n  `validate_prog` warns.\n- An `ai_agent` prog's tree root is `ai_agents`, save it with `studio_meta.parentId: \"ai_agents\"`\n  (or a folder id under it) if the checker flags `parentId`.\n\n### Runtime and rendering\n\n- A capitalized `tagName` is always claimed as a component, even a typo, and throws at mount\n  naming the tag, the `library`, and every source tried, there is no silent \"does not render\" the\n  way an `xu-panel` with no program selected has.\n- `validate_prog` does not check component tags or `library` values, only the live preview\n  catches a misspelt one.\n- No utility CSS (Tailwind or otherwise) at runtime unless the project's `uiFramework` plugin\n  actually provides it, classes like `p-4` silently no-op otherwise. Self-contained styling is\n  `xu-style`, auto-scoped by `[xu-ui-id]`.\n- `xu-script` runs once per element visibility and may re-fire on re-render, guard with\n  `el.__bound` and scope queries to `el`.\n\n### Data and scripts\n\n- `call_native_javascript` parameters are not evaluated, pass data through fields instead (see\n  Passing data in, above).\n- `dbs_read` rows are `{id, value}`, fields live under `.value`, the row id on `.id`. Do not pass\n  a `fields` projection, it breaks the server-side read.\n- Inside `xu-for`, wrap the iterator in parens, `(@_FOR_VAL).CNT_Name` evaluates,\n  `@_FOR_VAL.CNT_Name` fails silently and renders the substituted source text instead.\n- Preview writes land in the real database; preview reads come from a local draft store that can\n  look empty right after a write.\n- Prefer a status field over `xu.alert`'s modal or toast display in previews, it can render as a\n  native, blocking `alert()`.\n\n### Verifying your work\n\nRe-fetch with `get_prog` after saving and diff what was expected. For UI work, open the component\nin Studio and press the preview play button, or the project's live-preview URL when one is\navailable. For a javascript prog, check `data.compile.ok` on every save. Fix every\n`validate_prog` error; treat its warnings, quotes, `$`-keys, unknown attributes, as fix-now items\nrather than noise.\n",[],{"title":1298,"description":1302},[6837,6838,6839,6840,6841,6842,6843,6844,6845,6846,6847,6848,6849,6850,6851,6852],"runtime\u002Fdocs\u002Fllm\u002Fanatomy.md","runtime\u002Fdocs\u002Fllm\u002Fattributes.md","runtime\u002Fdocs\u002Fllm\u002Fcomponents.md","runtime\u002Fdocs\u002Fllm\u002Fgotchas.md","runtime\u002Fdocs\u002Fllm\u002Finstructions.md","runtime\u002Fdocs\u002Fllm\u002Fjavascript.md","runtime\u002Fdocs\u002Fllm\u002Fprograms.md","runtime\u002Fdocs\u002Fllm\u002Ftables.md","runtime\u002Fjs\u002Fmodules\u002Fxuda-studio-llm-guide.mjs","runtime\u002Fjs\u002Fmodules\u002Fxuda-studio-checker.mjs","runtime\u002Fjs\u002Fmodules\u002Fxuda-api-library.mjs","runtime\u002Fjs\u002Fmodules\u002Fxuda-studio-doc-utils.mjs","runtime\u002Fjs\u002Fxuda_events.js","studio\u002Fsrc\u002Futils\u002FactionCatalog.js","studio\u002Fsrc\u002Fcomponents\u002FPropertyActionsItem.vue","config.json","2026-11-20T01:30:44+02:00","2026-09-25 all 8 runtime\u002Fdocs\u002Fllm\u002F*.md topic files read end to end, every {{PLACEHOLDER}} resolved against the live REGISTRY in xuda-studio-llm-guide.mjs (XU_UI_ATTRIBUTES, XU_ATTRIBUTE_PREFIXES, WORKFLOW_ACTIONS, DEPRECATED_WORKFLOW_ACTIONS, INVOKE_ACTION_VALUES, PROG_EVENT_TYPES, PROTECTED_VARS, AUTHORING_XU_TAGS in xuda-studio-checker.mjs, XU_SCRIPT_API in xuda-api-library.mjs, valid_menuType in xuda-studio-doc-utils.mjs); config.json confirms get_studio_guide and get_prog_examples carry no private flag; cross-checked Studio's action picker (actionCatalog.js, PropertyActionsItem.vue) against the checker's check_prog_triggers switch and the runtime executor's action map in xuda_events.js and found call_ai_agent\u002Fcall_triage_agent offered in the UI but absent from both, added as a callout","U5UmBrR2lPaNpP-jW59IRGiTLHHjPTzs36Lz-byu-fs",1795279635700]