[{"data":1,"prerenderedAt":717},["ShallowReactive",2],{"navigation_docs":3,"-docs-definitions-processes":150,"-docs-definitions-processes-surround":712},[4,23,41,99,128],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":22},"Getting started","i-lucide-rocket","\u002Fdocs\u002Fgetting-started","docs\u002F1.getting-started",[10,14,18],{"title":11,"path":12,"stem":13},"Introduction","\u002Fdocs\u002Fgetting-started\u002Fintroduction","docs\u002F1.getting-started\u002F1.introduction",{"title":15,"path":16,"stem":17},"Quickstart","\u002Fdocs\u002Fgetting-started\u002Fquickstart","docs\u002F1.getting-started\u002F2.quickstart",{"title":19,"path":20,"stem":21},"How it works","\u002Fdocs\u002Fgetting-started\u002Fhow-it-works","docs\u002F1.getting-started\u002F3.how-it-works",false,{"title":24,"icon":25,"path":26,"stem":27,"children":28,"page":22},"Connect an app","i-lucide-plug","\u002Fdocs\u002Fconnect","docs\u002F2.connect",[29,33,37],{"title":30,"path":31,"stem":32},"Adonis","\u002Fdocs\u002Fconnect\u002Fadonis","docs\u002F2.connect\u002F1.adonis",{"title":34,"path":35,"stem":36},"NestJS","\u002Fdocs\u002Fconnect\u002Fnestjs","docs\u002F2.connect\u002F2.nestjs",{"title":38,"path":39,"stem":40},"Any stack, no SDK","\u002Fdocs\u002Fconnect\u002Fany-stack","docs\u002F2.connect\u002F3.any-stack",{"title":42,"icon":43,"path":44,"stem":45,"children":46,"page":22},"Definitions","i-lucide-code","\u002Fdocs\u002Fdefinitions","docs\u002F3.definitions",[47,51,55,59,63,67,71,75,79,83,87,91,95],{"title":48,"path":49,"stem":50},"Overview","\u002Fdocs\u002Fdefinitions\u002Foverview","docs\u002F3.definitions\u002F01.overview",{"title":52,"path":53,"stem":54},"Log renderers","\u002Fdocs\u002Fdefinitions\u002Flog-renderers","docs\u002F3.definitions\u002F02.log-renderers",{"title":56,"path":57,"stem":58},"Error renderers","\u002Fdocs\u002Fdefinitions\u002Ferror-renderers","docs\u002F3.definitions\u002F03.error-renderers",{"title":60,"path":61,"stem":62},"Processes","\u002Fdocs\u002Fdefinitions\u002Fprocesses","docs\u002F3.definitions\u002F04.processes",{"title":64,"path":65,"stem":66},"Pages","\u002Fdocs\u002Fdefinitions\u002Fpages","docs\u002F3.definitions\u002F05.pages",{"title":68,"path":69,"stem":70},"Dashboards","\u002Fdocs\u002Fdefinitions\u002Fdashboards","docs\u002F3.definitions\u002F06.dashboards",{"title":72,"path":73,"stem":74},"Alerts","\u002Fdocs\u002Fdefinitions\u002Falerts","docs\u002F3.definitions\u002F07.alerts",{"title":76,"path":77,"stem":78},"Monitors","\u002Fdocs\u002Fdefinitions\u002Fmonitors","docs\u002F3.definitions\u002F08.monitors",{"title":80,"path":81,"stem":82},"Status page","\u002Fdocs\u002Fdefinitions\u002Fstatus-page","docs\u002F3.definitions\u002F09.status-page",{"title":84,"path":85,"stem":86},"Tools","\u002Fdocs\u002Fdefinitions\u002Ftools","docs\u002F3.definitions\u002F10.tools",{"title":88,"path":89,"stem":90},"Redactors","\u002Fdocs\u002Fdefinitions\u002Fredactors","docs\u002F3.definitions\u002F11.redactors",{"title":92,"path":93,"stem":94},"Catalog","\u002Fdocs\u002Fdefinitions\u002Fcatalog","docs\u002F3.definitions\u002F12.catalog",{"title":96,"path":97,"stem":98},"More definitions","\u002Fdocs\u002Fdefinitions\u002Fmore","docs\u002F3.definitions\u002F13.more",{"title":100,"icon":101,"path":102,"stem":103,"children":104,"page":22},"Features","i-lucide-layers","\u002Fdocs\u002Ffeatures","docs\u002F4.features",[105,109,112,116,120,124],{"title":106,"path":107,"stem":108},"Tasks","\u002Fdocs\u002Ffeatures\u002Ftasks","docs\u002F4.features\u002F1.tasks",{"title":80,"path":110,"stem":111},"\u002Fdocs\u002Ffeatures\u002Fstatus-page","docs\u002F4.features\u002F2.status-page",{"title":113,"path":114,"stem":115},"Alerts and notifications","\u002Fdocs\u002Ffeatures\u002Falerts","docs\u002F4.features\u002F3.alerts",{"title":117,"path":118,"stem":119},"MCP","\u002Fdocs\u002Ffeatures\u002Fmcp","docs\u002F4.features\u002F4.mcp",{"title":121,"path":122,"stem":123},"Releases","\u002Fdocs\u002Ffeatures\u002Freleases","docs\u002F4.features\u002F5.releases",{"title":125,"path":126,"stem":127},"Ask Vigie","\u002Fdocs\u002Ffeatures\u002Fask-vigie","docs\u002F4.features\u002F6.ask-vigie",{"title":129,"icon":130,"path":131,"stem":132,"children":133,"page":22},"Self-hosting","i-lucide-server","\u002Fdocs\u002Fself-hosting","docs\u002F5.self-hosting",[134,138,142,146],{"title":135,"path":136,"stem":137},"Deploy","\u002Fdocs\u002Fself-hosting\u002Fdeploy","docs\u002F5.self-hosting\u002F1.deploy",{"title":139,"path":140,"stem":141},"Configuration","\u002Fdocs\u002Fself-hosting\u002Fconfiguration","docs\u002F5.self-hosting\u002F2.configuration",{"title":143,"path":144,"stem":145},"Security","\u002Fdocs\u002Fself-hosting\u002Fsecurity","docs\u002F5.self-hosting\u002F3.security",{"title":147,"path":148,"stem":149},"Backups and retention","\u002Fdocs\u002Fself-hosting\u002Fbackups","docs\u002F5.self-hosting\u002F4.backups",{"id":151,"title":60,"body":152,"description":706,"extension":707,"links":708,"meta":709,"navigation":214,"path":61,"seo":710,"stem":62,"__hash__":711},"docs\u002Fdocs\u002F3.definitions\u002F04.processes.md",{"type":153,"value":154,"toc":704},"minimark",[155,159,584,599,686,700],[156,157,158],"p",{},"A process is a flow that crosses several background tasks, such as an order going from payment to parcel. Vigie groups task attempts by the object they work on and shows where each one is.",[160,161,167],"pre",{"className":162,"code":163,"filename":164,"language":165,"meta":166,"style":166},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { defineProcess, step } from 'vigie\u002Fsdk'\n\nexport const fulfilment = defineProcess({\n  id: 'order-fulfilment',\n  title: 'Order fulfilment',\n  subject: 'order',\n  keyPrefix: 'order:',\n  description: 'From a Paynest payment to a parcel on its way.',\n  sla: '4h',\n  steps: [\n    step.task('paynest.payment.ingest', { label: 'Payment confirmed by Paynest', expectWithin: '30m' }),\n    step.parallel([\n      step.task('receipts.email', { label: 'Customer emailed', expectWithin: '1h', optional: true }),\n      step.task('parcelo.ship', { label: 'Shipment created at Parcelo', expectWithin: '15m', provider: 'parcelo' }),\n    ]),\n  ],\n})\n","definitions\u002Fprocesses\u002Facme.ts","ts","",[168,169,170,209,216,241,262,279,296,313,330,347,358,416,429,493,559,567,575],"code",{"__ignoreMap":166},[171,172,175,179,183,187,190,193,196,199,202,206],"span",{"class":173,"line":174},"line",1,[171,176,178],{"class":177},"s7zQu","import",[171,180,182],{"class":181},"sMK4o"," {",[171,184,186],{"class":185},"sTEyZ"," defineProcess",[171,188,189],{"class":181},",",[171,191,192],{"class":185}," step",[171,194,195],{"class":181}," }",[171,197,198],{"class":177}," from",[171,200,201],{"class":181}," '",[171,203,205],{"class":204},"sfazB","vigie\u002Fsdk",[171,207,208],{"class":181},"'\n",[171,210,212],{"class":173,"line":211},2,[171,213,215],{"emptyLinePlaceholder":214},true,"\n",[171,217,219,222,226,229,232,235,238],{"class":173,"line":218},3,[171,220,221],{"class":177},"export",[171,223,225],{"class":224},"spNyl"," const",[171,227,228],{"class":185}," fulfilment ",[171,230,231],{"class":181},"=",[171,233,186],{"class":234},"s2Zo4",[171,236,237],{"class":185},"(",[171,239,240],{"class":181},"{\n",[171,242,244,248,251,253,256,259],{"class":173,"line":243},4,[171,245,247],{"class":246},"swJcz","  id",[171,249,250],{"class":181},":",[171,252,201],{"class":181},[171,254,255],{"class":204},"order-fulfilment",[171,257,258],{"class":181},"'",[171,260,261],{"class":181},",\n",[171,263,265,268,270,272,275,277],{"class":173,"line":264},5,[171,266,267],{"class":246},"  title",[171,269,250],{"class":181},[171,271,201],{"class":181},[171,273,274],{"class":204},"Order fulfilment",[171,276,258],{"class":181},[171,278,261],{"class":181},[171,280,282,285,287,289,292,294],{"class":173,"line":281},6,[171,283,284],{"class":246},"  subject",[171,286,250],{"class":181},[171,288,201],{"class":181},[171,290,291],{"class":204},"order",[171,293,258],{"class":181},[171,295,261],{"class":181},[171,297,299,302,304,306,309,311],{"class":173,"line":298},7,[171,300,301],{"class":246},"  keyPrefix",[171,303,250],{"class":181},[171,305,201],{"class":181},[171,307,308],{"class":204},"order:",[171,310,258],{"class":181},[171,312,261],{"class":181},[171,314,316,319,321,323,326,328],{"class":173,"line":315},8,[171,317,318],{"class":246},"  description",[171,320,250],{"class":181},[171,322,201],{"class":181},[171,324,325],{"class":204},"From a Paynest payment to a parcel on its way.",[171,327,258],{"class":181},[171,329,261],{"class":181},[171,331,333,336,338,340,343,345],{"class":173,"line":332},9,[171,334,335],{"class":246},"  sla",[171,337,250],{"class":181},[171,339,201],{"class":181},[171,341,342],{"class":204},"4h",[171,344,258],{"class":181},[171,346,261],{"class":181},[171,348,350,353,355],{"class":173,"line":349},10,[171,351,352],{"class":246},"  steps",[171,354,250],{"class":181},[171,356,357],{"class":185}," [\n",[171,359,361,364,367,370,372,374,377,379,381,383,386,388,390,393,395,397,400,402,404,407,409,411,414],{"class":173,"line":360},11,[171,362,363],{"class":185},"    step",[171,365,366],{"class":181},".",[171,368,369],{"class":234},"task",[171,371,237],{"class":185},[171,373,258],{"class":181},[171,375,376],{"class":204},"paynest.payment.ingest",[171,378,258],{"class":181},[171,380,189],{"class":181},[171,382,182],{"class":181},[171,384,385],{"class":246}," label",[171,387,250],{"class":181},[171,389,201],{"class":181},[171,391,392],{"class":204},"Payment confirmed by Paynest",[171,394,258],{"class":181},[171,396,189],{"class":181},[171,398,399],{"class":246}," expectWithin",[171,401,250],{"class":181},[171,403,201],{"class":181},[171,405,406],{"class":204},"30m",[171,408,258],{"class":181},[171,410,195],{"class":181},[171,412,413],{"class":185},")",[171,415,261],{"class":181},[171,417,419,421,423,426],{"class":173,"line":418},12,[171,420,363],{"class":185},[171,422,366],{"class":181},[171,424,425],{"class":234},"parallel",[171,427,428],{"class":185},"([\n",[171,430,432,435,437,439,441,443,446,448,450,452,454,456,458,461,463,465,467,469,471,474,476,478,481,483,487,489,491],{"class":173,"line":431},13,[171,433,434],{"class":185},"      step",[171,436,366],{"class":181},[171,438,369],{"class":234},[171,440,237],{"class":185},[171,442,258],{"class":181},[171,444,445],{"class":204},"receipts.email",[171,447,258],{"class":181},[171,449,189],{"class":181},[171,451,182],{"class":181},[171,453,385],{"class":246},[171,455,250],{"class":181},[171,457,201],{"class":181},[171,459,460],{"class":204},"Customer emailed",[171,462,258],{"class":181},[171,464,189],{"class":181},[171,466,399],{"class":246},[171,468,250],{"class":181},[171,470,201],{"class":181},[171,472,473],{"class":204},"1h",[171,475,258],{"class":181},[171,477,189],{"class":181},[171,479,480],{"class":246}," optional",[171,482,250],{"class":181},[171,484,486],{"class":485},"sfNiH"," true",[171,488,195],{"class":181},[171,490,413],{"class":185},[171,492,261],{"class":181},[171,494,496,498,500,502,504,506,509,511,513,515,517,519,521,524,526,528,530,532,534,537,539,541,544,546,548,551,553,555,557],{"class":173,"line":495},14,[171,497,434],{"class":185},[171,499,366],{"class":181},[171,501,369],{"class":234},[171,503,237],{"class":185},[171,505,258],{"class":181},[171,507,508],{"class":204},"parcelo.ship",[171,510,258],{"class":181},[171,512,189],{"class":181},[171,514,182],{"class":181},[171,516,385],{"class":246},[171,518,250],{"class":181},[171,520,201],{"class":181},[171,522,523],{"class":204},"Shipment created at Parcelo",[171,525,258],{"class":181},[171,527,189],{"class":181},[171,529,399],{"class":246},[171,531,250],{"class":181},[171,533,201],{"class":181},[171,535,536],{"class":204},"15m",[171,538,258],{"class":181},[171,540,189],{"class":181},[171,542,543],{"class":246}," provider",[171,545,250],{"class":181},[171,547,201],{"class":181},[171,549,550],{"class":204},"parcelo",[171,552,258],{"class":181},[171,554,195],{"class":181},[171,556,413],{"class":185},[171,558,261],{"class":181},[171,560,562,565],{"class":173,"line":561},15,[171,563,564],{"class":185},"    ])",[171,566,261],{"class":181},[171,568,570,573],{"class":173,"line":569},16,[171,571,572],{"class":185},"  ]",[171,574,261],{"class":181},[171,576,578,581],{"class":173,"line":577},17,[171,579,580],{"class":181},"}",[171,582,583],{"class":185},")\n",[156,585,586,587,590,591,594,595,598],{},"Instances are grouped by ",[168,588,589],{},"task.key"," on each attempt (",[168,592,593],{},"order:o_81","). Only keys starting with ",[168,596,597],{},"keyPrefix"," belong to the process.",[600,601,602,615],"table",{},[603,604,605],"thead",{},[606,607,608,612],"tr",{},[609,610,611],"th",{},"Field",[609,613,614],{},"What it does",[616,617,618,629,646,656,666,676],"tbody",{},[606,619,620,626],{},[621,622,623],"td",{},[168,624,625],{},"subject",[621,627,628],{},"What one instance follows, in your words.",[606,630,631,636],{},[621,632,633],{},[168,634,635],{},"steps",[621,637,638,641,642,645],{},[168,639,640],{},"step.task(kind, { label, expectWithin?, optional?, provider? })",", and ",[168,643,644],{},"step.parallel([...])"," for steps that run side by side.",[606,647,648,653],{},[621,649,650],{},[168,651,652],{},"expectWithin",[621,654,655],{},"After this long without the step, the instance counts as stuck.",[606,657,658,663],{},[621,659,660],{},[168,661,662],{},"sla",[621,664,665],{},"The time the whole flow should take.",[606,667,668,673],{},[621,669,670],{},[168,671,672],{},"standing",[621,674,675],{},"For flows on a clock, with runs instead of instances.",[606,677,678,683],{},[621,679,680],{},[168,681,682],{},"aliases",[621,684,685],{},"When some tasks name the object by another id, such as the provider's, read the mapping from your app's database.",[156,687,688,689,692,693,696,697,366],{},"The ",[690,691,60],"strong",{}," screen shows the funnel, the stuck instances with the reason from their last attempt, and each instance's timeline. Agents read it with ",[168,694,695],{},"list_processes"," and ",[168,698,699],{},"list_stuck_instances",[701,702,703],"style",{},"html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}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);}",{"title":166,"searchDepth":211,"depth":211,"links":705},[],"defineProcess follows one object across several tasks, with a funnel, an SLA and the instances stuck at each step.","md",null,{},{"title":60,"description":706},"ejjIFRDBzUrrjtWcTjhcLT6qQ6VQjMbYVA4f5dzMC-Q",[713,715],{"title":56,"path":57,"stem":58,"description":714,"children":-1},"defineErrorRenderer writes the why, the fix and the alert headline for errors your app does not explain itself.",{"title":64,"path":65,"stem":66,"description":716,"children":-1},"definePage adds a screen of your own to the nav, built from SQL blocks, and an MCP tool that reads it.",1795043962290]