Input: {"body":{"messages":[{"content":"You are a code patching assistant. Your task is to generate precise line-based patches using the Micropatch protocol.\n\n## Micropatch Protocol\n\nThe Micropatch protocol uses line numbers to reference ORIGINAL lines (before any edits). All operations use these ORIGINAL line numbers, which remain valid throughout the patching process.\n\n### Operations\n\nEach operation starts with the marker `◼` at the beginning of a line:\n\n1. **Insert BEFORE line**: `◼<NNN|text`\n   - Inserts `text` as a new line BEFORE original line NNN\n   - Example: `◼<5|console.log('debug')` inserts before line 5\n\n2. **Insert AFTER line**: `◼>NNN|text`\n   - Inserts `text` as a new line AFTER original line NNN\n   - Example: `◼>10|}` inserts after line 10\n\n3. **Replace single line**: `◼=NNN|new text`\n   - Replaces original line NNN with `new text`\n   - Can use multiple lines (continue until next ◼ or end)\n   - Example:\n     ```\n     ◼=7|function newName() {\n       return 42\n     }\n     ```\n\n4. **Replace range**: `◼=NNN-MMM|replacement`\n   - Replaces lines NNN through MMM with replacement text\n   - Example: `◼=5-8|const combined = a + b + c + d` replaces lines 5-8\n\n5. **Delete single line**: `◼-NNN`\n   - Deletes original line NNN\n   - Example: `◼-12` deletes line 12\n\n6. **Delete range**: `◼-NNN-MMM`\n   - Deletes lines NNN through MMM inclusive\n   - Example: `◼-5-10` deletes lines 5 through 10\n\n### Escaping\n\n- To include a literal `◼` in your text, use `\\◼`\n- No other escape sequences are recognized\n\n### Important Rules\n\n1. **Use ORIGINAL line numbers**: Always reference the line numbers shown in the input, not adjusted numbers\n2. **One operation per line**: Each operation must start on a new line with `◼`\n3. **No explanations**: Output ONLY patch operations, no comments or explanations\n4. **Precise operations**: Use the minimal set of operations to achieve the goal\n5. **Verify line numbers**: Double-check that line numbers match the input\n\n\n### Examples\n\n**Example 1: Simple replacement**\nInput file (lines 001-005):\n```\n001|const x = 1\n002|const y = 2\n003|console.log(x + y)\n004|\n005|export { x, y }\n```\n\nTask: Change variable names from x,y to a,b\n\nOutput:\n```\n◼=1|const a = 1\n◼=2|const b = 2\n◼=3|console.log(a + b)\n◼=5|export { a, b }\n```\n\n**Example 2: Adding documentation**\nInput file (lines 001-003):\n```\n001|function add(a, b) {\n002|  return a + b\n003|}\n```\n\nTask: Add JSDoc comment\n\nOutput:\n```\n◼<1|/**\n * Adds two numbers together\n * @param a First number\n * @param b Second number\n * @returns Sum of a and b\n */\n```\n\n**Example 3: Refactoring**\nInput file (lines 001-010):\n```\n001|const user = getUser()\n002|const name = user.name\n003|const email = user.email\n004|const age = user.age\n005|\n006|console.log(name)\n007|console.log(email)\n008|console.log(age)\n009|\n010|return user\n```\n\nTask: Use destructuring\n\nOutput:\n```\n◼=1-4|const { name, email, age } = getUser()\n◼-10\n◼>8|return { name, email, age }\n```\n\n## Your Task\n\nGenerate ONLY the patch operations needed to fulfill the user's instructions. Output patch operations between ■PATCH_START■ and ■PATCH_END■ markers.\n\n**Critical**:\n- Output ONLY patch operations, no explanations\n- Use ORIGINAL line numbers from the input\n- Verify each line number is correct\n- Test your patches mentally to ensure they produce the desired result","role":"system"},{"content":"Instructions: add a comment at the top\n\nFile: large.ts\n2001|const var2000 = 2000\n2002|const var2001 = 2001\n2003|const var2002 = 2002\n2004|const var2003 = 2003\n2005|const var2004 = 2004\n2006|const var2005 = 2005\n2007|const var2006 = 2006\n2008|const var2007 = 2007\n2009|const var2008 = 2008\n2010|const var2009 = 2009\n2011|const var2010 = 2010\n2012|const var2011 = 2011\n2013|const var2012 = 2012\n2014|const var2013 = 2013\n2015|const var2014 = 2014\n2016|const var2015 = 2015\n2017|const var2016 = 2016\n2018|const var2017 = 2017\n2019|const var2018 = 2018\n2020|const var2019 = 2019\n2021|const var2020 = 2020\n2022|const var2021 = 2021\n2023|const var2022 = 2022\n2024|const var2023 = 2023\n2025|const var2024 = 2024\n2026|const var2025 = 2025\n2027|const var2026 = 2026\n2028|const var2027 = 2027\n2029|const var2028 = 2028\n2030|const var2029 = 2029\n2031|const var2030 = 2030\n2032|const var2031 = 2031\n2033|const var2032 = 2032\n2034|const var2033 = 2033\n2035|const var2034 = 2034\n2036|const var2035 = 2035\n2037|const var2036 = 2036\n2038|const var2037 = 2037\n2039|const var2038 = 2038\n2040|const var2039 = 2039\n2041|const var2040 = 2040\n2042|const var2041 = 2041\n2043|const var2042 = 2042\n2044|const var2043 = 2043\n2045|const var2044 = 2044\n2046|const var2045 = 2045\n2047|const var2046 = 2046\n2048|const var2047 = 2047\n2049|const var2048 = 2048\n2050|const var2049 = 2049\n2051|const var2050 = 2050\n2052|const var2051 = 2051\n2053|const var2052 = 2052\n2054|const var2053 = 2053\n2055|const var2054 = 2054\n2056|const var2055 = 2055\n2057|const var2056 = 2056\n2058|const var2057 = 2057\n2059|const var2058 = 2058\n2060|const var2059 = 2059\n2061|const var2060 = 2060\n2062|const var2061 = 2061\n2063|const var2062 = 2062\n2064|const var2063 = 2063\n2065|const var2064 = 2064\n2066|const var2065 = 2065\n2067|const var2066 = 2066\n2068|const var2067 = 2067\n2069|const var2068 = 2068\n2070|const var2069 = 2069\n2071|const var2070 = 2070\n2072|const var2071 = 2071\n2073|const var2072 = 2072\n2074|const var2073 = 2073\n2075|const var2074 = 2074\n2076|const var2075 = 2075\n2077|const var2076 = 2076\n2078|const var2077 = 2077\n2079|const var2078 = 2078\n2080|const var2079 = 2079\n2081|const var2080 = 2080\n2082|const var2081 = 2081\n2083|const var2082 = 2082\n2084|const var2083 = 2083\n2085|const var2084 = 2084\n2086|const var2085 = 2085\n2087|const var2086 = 2086\n2088|const var2087 = 2087\n2089|const var2088 = 2088\n2090|const var2089 = 2089\n2091|const var2090 = 2090\n2092|const var2091 = 2091\n2093|const var2092 = 2092\n2094|const var2093 = 2093\n2095|const var2094 = 2094\n2096|const var2095 = 2095\n2097|const var2096 = 2096\n2098|const var2097 = 2097\n2099|const var2098 = 2098\n2100|const var2099 = 2099\n2101|const var2100 = 2100\n2102|const var2101 = 2101\n2103|const var2102 = 2102\n2104|const var2103 = 2103\n2105|const var2104 = 2104\n2106|const var2105 = 2105\n2107|const var2106 = 2106\n2108|const var2107 = 2107\n2109|const var2108 = 2108\n2110|const var2109 = 2109\n2111|const var2110 = 2110\n2112|const var2111 = 2111\n2113|const var2112 = 2112\n2114|const var2113 = 2113\n2115|const var2114 = 2114\n2116|const var2115 = 2115\n2117|const var2116 = 2116\n2118|const var2117 = 2117\n2119|const var2118 = 2118\n2120|const var2119 = 2119\n2121|const var2120 = 2120\n2122|const var2121 = 2121\n2123|const var2122 = 2122\n2124|const var2123 = 2123\n2125|const var2124 = 2124\n2126|const var2125 = 2125\n2127|const var2126 = 2126\n2128|const var2127 = 2127\n2129|const var2128 = 2128\n2130|const var2129 = 2129\n2131|const var2130 = 2130\n2132|const var2131 = 2131\n2133|const var2132 = 2132\n2134|const var2133 = 2133\n2135|const var2134 = 2134\n2136|const var2135 = 2135\n2137|const var2136 = 2136\n2138|const var2137 = 2137\n2139|const var2138 = 2138\n2140|const var2139 = 2139\n2141|const var2140 = 2140\n2142|const var2141 = 2141\n2143|const var2142 = 2142\n2144|const var2143 = 2143\n2145|const var2144 = 2144\n2146|const var2145 = 2145\n2147|const var2146 = 2146\n2148|const var2147 = 2147\n2149|const var2148 = 2148\n2150|const var2149 = 2149\n2151|const var2150 = 2150\n2152|const var2151 = 2151\n2153|const var2152 = 2152\n2154|const var2153 = 2153\n2155|const var2154 = 2154\n2156|const var2155 = 2155\n2157|const var2156 = 2156\n2158|const var2157 = 2157\n2159|const var2158 = 2158\n2160|const var2159 = 2159\n2161|const var2160 = 2160\n2162|const var2161 = 2161\n2163|const var2162 = 2162\n2164|const var2163 = 2163\n2165|const var2164 = 2164\n2166|const var2165 = 2165\n2167|const var2166 = 2166\n2168|const var2167 = 2167\n2169|const var2168 = 2168\n2170|const var2169 = 2169\n2171|const var2170 = 2170\n2172|const var2171 = 2171\n2173|const var2172 = 2172\n2174|const var2173 = 2173\n2175|const var2174 = 2174\n2176|const var2175 = 2175\n2177|const var2176 = 2176\n2178|const var2177 = 2177\n2179|const var2178 = 2178\n2180|const var2179 = 2179\n2181|const var2180 = 2180\n2182|const var2181 = 2181\n2183|const var2182 = 2182\n2184|const var2183 = 2183\n2185|const var2184 = 2184\n2186|const var2185 = 2185\n2187|const var2186 = 2186\n2188|const var2187 = 2187\n2189|const var2188 = 2188\n2190|const var2189 = 2189\n2191|const var2190 = 2190\n2192|const var2191 = 2191\n2193|const var2192 = 2192\n2194|const var2193 = 2193\n2195|const var2194 = 2194\n2196|const var2195 = 2195\n2197|const var2196 = 2196\n2198|const var2197 = 2197\n2199|const var2198 = 2198\n2200|const var2199 = 2199\n2201|const var2200 = 2200\n2202|const var2201 = 2201\n2203|const var2202 = 2202\n2204|const var2203 = 2203\n2205|const var2204 = 2204\n2206|const var2205 = 2205\n2207|const var2206 = 2206\n2208|const var2207 = 2207\n2209|const var2208 = 2208\n2210|const var2209 = 2209\n2211|const var2210 = 2210\n2212|const var2211 = 2211\n2213|const var2212 = 2212\n2214|const var2213 = 2213\n2215|const var2214 = 2214\n2216|const var2215 = 2215\n2217|const var2216 = 2216\n2218|const var2217 = 2217\n2219|const var2218 = 2218\n2220|const var2219 = 2219\n2221|const var2220 = 2220\n2222|const var2221 = 2221\n2223|const var2222 = 2222\n2224|const var2223 = 2223\n2225|const var2224 = 2224\n2226|const var2225 = 2225\n2227|const var2226 = 2226\n2228|const var2227 = 2227\n2229|const var2228 = 2228\n2230|const var2229 = 2229\n2231|const var2230 = 2230\n2232|const var2231 = 2231\n2233|const var2232 = 2232\n2234|const var2233 = 2233\n2235|const var2234 = 2234\n2236|const var2235 = 2235\n2237|const var2236 = 2236\n2238|const var2237 = 2237\n2239|const var2238 = 2238\n2240|const var2239 = 2239\n2241|const var2240 = 2240\n2242|const var2241 = 2241\n2243|const var2242 = 2242\n2244|const var2243 = 2243\n2245|const var2244 = 2244\n2246|const var2245 = 2245\n2247|const var2246 = 2246\n2248|const var2247 = 2247\n2249|const var2248 = 2248\n2250|const var2249 = 2249\n2251|const var2250 = 2250\n2252|const var2251 = 2251\n2253|const var2252 = 2252\n2254|const var2253 = 2253\n2255|const var2254 = 2254\n2256|const var2255 = 2255\n2257|const var2256 = 2256\n2258|const var2257 = 2257\n2259|const var2258 = 2258\n2260|const var2259 = 2259\n2261|const var2260 = 2260\n2262|const var2261 = 2261\n2263|const var2262 = 2262\n2264|const var2263 = 2263\n2265|const var2264 = 2264\n2266|const var2265 = 2265\n2267|const var2266 = 2266\n2268|const var2267 = 2267\n2269|const var2268 = 2268\n2270|const var2269 = 2269\n2271|const var2270 = 2270\n2272|const var2271 = 2271\n2273|const var2272 = 2272\n2274|const var2273 = 2273\n2275|const var2274 = 2274\n2276|const var2275 = 2275\n2277|const var2276 = 2276\n2278|const var2277 = 2277\n2279|const var2278 = 2278\n2280|const var2279 = 2279\n2281|const var2280 = 2280\n2282|const var2281 = 2281\n2283|const var2282 = 2282\n2284|const var2283 = 2283\n2285|const var2284 = 2284\n2286|const var2285 = 2285\n2287|const var2286 = 2286\n2288|const var2287 = 2287\n2289|const var2288 = 2288\n2290|const var2289 = 2289\n2291|const var2290 = 2290\n2292|const var2291 = 2291\n2293|const var2292 = 2292\n2294|const var2293 = 2293\n2295|const var2294 = 2294\n2296|const var2295 = 2295\n2297|const var2296 = 2296\n2298|const var2297 = 2297\n2299|const var2298 = 2298\n2300|const var2299 = 2299\n2301|const var2300 = 2300\n2302|const var2301 = 2301\n2303|const var2302 = 2302\n2304|const var2303 = 2303\n2305|const var2304 = 2304\n2306|const var2305 = 2305\n2307|const var2306 = 2306\n2308|const var2307 = 2307\n2309|const var2308 = 2308\n2310|const var2309 = 2309\n2311|const var2310 = 2310\n2312|const var2311 = 2311\n2313|const var2312 = 2312\n2314|const var2313 = 2313\n2315|const var2314 = 2314\n2316|const var2315 = 2315\n2317|const var2316 = 2316\n2318|const var2317 = 2317\n2319|const var2318 = 2318\n2320|const var2319 = 2319\n2321|const var2320 = 2320\n2322|const var2321 = 2321\n2323|const var2322 = 2322\n2324|const var2323 = 2323\n2325|const var2324 = 2324\n2326|const var2325 = 2325\n2327|const var2326 = 2326\n2328|const var2327 = 2327\n2329|const var2328 = 2328\n2330|const var2329 = 2329\n2331|const var2330 = 2330\n2332|const var2331 = 2331\n2333|const var2332 = 2332\n2334|const var2333 = 2333\n2335|const var2334 = 2334\n2336|const var2335 = 2335\n2337|const var2336 = 2336\n2338|const var2337 = 2337\n2339|const var2338 = 2338\n2340|const var2339 = 2339\n2341|const var2340 = 2340\n2342|const var2341 = 2341\n2343|const var2342 = 2342\n2344|const var2343 = 2343\n2345|const var2344 = 2344\n2346|const var2345 = 2345\n2347|const var2346 = 2346\n2348|const var2347 = 2347\n2349|const var2348 = 2348\n2350|const var2349 = 2349\n2351|const var2350 = 2350\n2352|const var2351 = 2351\n2353|const var2352 = 2352\n2354|const var2353 = 2353\n2355|const var2354 = 2354\n2356|const var2355 = 2355\n2357|const var2356 = 2356\n2358|const var2357 = 2357\n2359|const var2358 = 2358\n2360|const var2359 = 2359\n2361|const var2360 = 2360\n2362|const var2361 = 2361\n2363|const var2362 = 2362\n2364|const var2363 = 2363\n2365|const var2364 = 2364\n2366|const var2365 = 2365\n2367|const var2366 = 2366\n2368|const var2367 = 2367\n2369|const var2368 = 2368\n2370|const var2369 = 2369\n2371|const var2370 = 2370\n2372|const var2371 = 2371\n2373|const var2372 = 2372\n2374|const var2373 = 2373\n2375|const var2374 = 2374\n2376|const var2375 = 2375\n2377|const var2376 = 2376\n2378|const var2377 = 2377\n2379|const var2378 = 2378\n2380|const var2379 = 2379\n2381|const var2380 = 2380\n2382|const var2381 = 2381\n2383|const var2382 = 2382\n2384|const var2383 = 2383\n2385|const var2384 = 2384\n2386|const var2385 = 2385\n2387|const var2386 = 2386\n2388|const var2387 = 2387\n2389|const var2388 = 2388\n2390|const var2389 = 2389\n2391|const var2390 = 2390\n2392|const var2391 = 2391\n2393|const var2392 = 2392\n2394|const var2393 = 2393\n2395|const var2394 = 2394\n2396|const var2395 = 2395\n2397|const var2396 = 2396\n2398|const var2397 = 2397\n2399|const var2398 = 2398\n2400|const var2399 = 2399\n2401|const var2400 = 2400\n2402|const var2401 = 2401\n2403|const var2402 = 2402\n2404|const var2403 = 2403\n2405|const var2404 = 2404\n2406|const var2405 = 2405\n2407|const var2406 = 2406\n2408|const var2407 = 2407\n2409|const var2408 = 2408\n2410|const var2409 = 2409\n2411|const var2410 = 2410\n2412|const var2411 = 2411\n2413|const var2412 = 2412\n2414|const var2413 = 2413\n2415|const var2414 = 2414\n2416|const var2415 = 2415\n2417|const var2416 = 2416\n2418|const var2417 = 2417\n2419|const var2418 = 2418\n2420|const var2419 = 2419\n2421|const var2420 = 2420\n2422|const var2421 = 2421\n2423|const var2422 = 2422\n2424|const var2423 = 2423\n2425|const var2424 = 2424\n2426|const var2425 = 2425\n2427|const var2426 = 2426\n2428|const var2427 = 2427\n2429|const var2428 = 2428\n2430|const var2429 = 2429\n2431|const var2430 = 2430\n2432|const var2431 = 2431\n2433|const var2432 = 2432\n2434|const var2433 = 2433\n2435|const var2434 = 2434\n2436|const var2435 = 2435\n2437|const var2436 = 2436\n2438|const var2437 = 2437\n2439|const var2438 = 2438\n2440|const var2439 = 2439\n2441|const var2440 = 2440\n2442|const var2441 = 2441\n2443|const var2442 = 2442\n2444|const var2443 = 2443\n2445|const var2444 = 2444\n2446|const var2445 = 2445\n2447|const var2446 = 2446\n2448|const var2447 = 2447\n2449|const var2448 = 2448\n2450|const var2449 = 2449\n2451|const var2450 = 2450\n2452|const var2451 = 2451\n2453|const var2452 = 2452\n2454|const var2453 = 2453\n2455|const var2454 = 2454\n2456|const var2455 = 2455\n2457|const var2456 = 2456\n2458|const var2457 = 2457\n2459|const var2458 = 2458\n2460|const var2459 = 2459\n2461|const var2460 = 2460\n2462|const var2461 = 2461\n2463|const var2462 = 2462\n2464|const var2463 = 2463\n2465|const var2464 = 2464\n2466|const var2465 = 2465\n2467|const var2466 = 2466\n2468|const var2467 = 2467\n2469|const var2468 = 2468\n2470|const var2469 = 2469\n2471|const var2470 = 2470\n2472|const var2471 = 2471\n2473|const var2472 = 2472\n2474|const var2473 = 2473\n2475|const var2474 = 2474\n2476|const var2475 = 2475\n2477|const var2476 = 2476\n2478|const var2477 = 2477\n2479|const var2478 = 2478\n2480|const var2479 = 2479\n2481|const var2480 = 2480\n2482|const var2481 = 2481\n2483|const var2482 = 2482\n2484|const var2483 = 2483\n2485|const var2484 = 2484\n2486|const var2485 = 2485\n2487|const var2486 = 2486\n2488|const var2487 = 2487\n2489|const var2488 = 2488\n2490|const var2489 = 2489\n2491|const var2490 = 2490\n2492|const var2491 = 2491\n2493|const var2492 = 2492\n2494|const var2493 = 2493\n2495|const var2494 = 2494\n2496|const var2495 = 2495\n2497|const var2496 = 2496\n2498|const var2497 = 2497\n2499|const var2498 = 2498\n2500|const var2499 = 2499\n\n■PATCH_START■","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.patch","promptSource":"zai:zai.patch:default"},"model":"fast","signal":{},"stopSequences":["■PATCH_END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■PATCH_START■
◼<2001|// Added comment
■PATCH_END


Input: {"body":{"messages":[{"content":"You are a code patching assistant. Your task is to generate precise line-based patches using the Micropatch protocol.\n\n## Micropatch Protocol\n\nThe Micropatch protocol uses line numbers to reference ORIGINAL lines (before any edits). All operations use these ORIGINAL line numbers, which remain valid throughout the patching process.\n\n### Operations\n\nEach operation starts with the marker `◼` at the beginning of a line:\n\n1. **Insert BEFORE line**: `◼<NNN|text`\n   - Inserts `text` as a new line BEFORE original line NNN\n   - Example: `◼<5|console.log('debug')` inserts before line 5\n\n2. **Insert AFTER line**: `◼>NNN|text`\n   - Inserts `text` as a new line AFTER original line NNN\n   - Example: `◼>10|}` inserts after line 10\n\n3. **Replace single line**: `◼=NNN|new text`\n   - Replaces original line NNN with `new text`\n   - Can use multiple lines (continue until next ◼ or end)\n   - Example:\n     ```\n     ◼=7|function newName() {\n       return 42\n     }\n     ```\n\n4. **Replace range**: `◼=NNN-MMM|replacement`\n   - Replaces lines NNN through MMM with replacement text\n   - Example: `◼=5-8|const combined = a + b + c + d` replaces lines 5-8\n\n5. **Delete single line**: `◼-NNN`\n   - Deletes original line NNN\n   - Example: `◼-12` deletes line 12\n\n6. **Delete range**: `◼-NNN-MMM`\n   - Deletes lines NNN through MMM inclusive\n   - Example: `◼-5-10` deletes lines 5 through 10\n\n### Escaping\n\n- To include a literal `◼` in your text, use `\\◼`\n- No other escape sequences are recognized\n\n### Important Rules\n\n1. **Use ORIGINAL line numbers**: Always reference the line numbers shown in the input, not adjusted numbers\n2. **One operation per line**: Each operation must start on a new line with `◼`\n3. **No explanations**: Output ONLY patch operations, no comments or explanations\n4. **Precise operations**: Use the minimal set of operations to achieve the goal\n5. **Verify line numbers**: Double-check that line numbers match the input\n\n\n### Examples\n\n**Example 1: Simple replacement**\nInput file (lines 001-005):\n```\n001|const x = 1\n002|const y = 2\n003|console.log(x + y)\n004|\n005|export { x, y }\n```\n\nTask: Change variable names from x,y to a,b\n\nOutput:\n```\n◼=1|const a = 1\n◼=2|const b = 2\n◼=3|console.log(a + b)\n◼=5|export { a, b }\n```\n\n**Example 2: Adding documentation**\nInput file (lines 001-003):\n```\n001|function add(a, b) {\n002|  return a + b\n003|}\n```\n\nTask: Add JSDoc comment\n\nOutput:\n```\n◼<1|/**\n * Adds two numbers together\n * @param a First number\n * @param b Second number\n * @returns Sum of a and b\n */\n```\n\n**Example 3: Refactoring**\nInput file (lines 001-010):\n```\n001|const user = getUser()\n002|const name = user.name\n003|const email = user.email\n004|const age = user.age\n005|\n006|console.log(name)\n007|console.log(email)\n008|console.log(age)\n009|\n010|return user\n```\n\nTask: Use destructuring\n\nOutput:\n```\n◼=1-4|const { name, email, age } = getUser()\n◼-10\n◼>8|return { name, email, age }\n```\n\n## Your Task\n\nGenerate ONLY the patch operations needed to fulfill the user's instructions. Output patch operations between ■PATCH_START■ and ■PATCH_END■ markers.\n\n**Critical**:\n- Output ONLY patch operations, no explanations\n- Use ORIGINAL line numbers from the input\n- Verify each line number is correct\n- Test your patches mentally to ensure they produce the desired result","role":"system"},{"content":"Instructions: add a comment at the top\n\nFile: large.ts\n2501|const var2500 = 2500\n2502|const var2501 = 2501\n2503|const var2502 = 2502\n2504|const var2503 = 2503\n2505|const var2504 = 2504\n2506|const var2505 = 2505\n2507|const var2506 = 2506\n2508|const var2507 = 2507\n2509|const var2508 = 2508\n2510|const var2509 = 2509\n2511|const var2510 = 2510\n2512|const var2511 = 2511\n2513|const var2512 = 2512\n2514|const var2513 = 2513\n2515|const var2514 = 2514\n2516|const var2515 = 2515\n2517|const var2516 = 2516\n2518|const var2517 = 2517\n2519|const var2518 = 2518\n2520|const var2519 = 2519\n2521|const var2520 = 2520\n2522|const var2521 = 2521\n2523|const var2522 = 2522\n2524|const var2523 = 2523\n2525|const var2524 = 2524\n2526|const var2525 = 2525\n2527|const var2526 = 2526\n2528|const var2527 = 2527\n2529|const var2528 = 2528\n2530|const var2529 = 2529\n2531|const var2530 = 2530\n2532|const var2531 = 2531\n2533|const var2532 = 2532\n2534|const var2533 = 2533\n2535|const var2534 = 2534\n2536|const var2535 = 2535\n2537|const var2536 = 2536\n2538|const var2537 = 2537\n2539|const var2538 = 2538\n2540|const var2539 = 2539\n2541|const var2540 = 2540\n2542|const var2541 = 2541\n2543|const var2542 = 2542\n2544|const var2543 = 2543\n2545|const var2544 = 2544\n2546|const var2545 = 2545\n2547|const var2546 = 2546\n2548|const var2547 = 2547\n2549|const var2548 = 2548\n2550|const var2549 = 2549\n2551|const var2550 = 2550\n2552|const var2551 = 2551\n2553|const var2552 = 2552\n2554|const var2553 = 2553\n2555|const var2554 = 2554\n2556|const var2555 = 2555\n2557|const var2556 = 2556\n2558|const var2557 = 2557\n2559|const var2558 = 2558\n2560|const var2559 = 2559\n2561|const var2560 = 2560\n2562|const var2561 = 2561\n2563|const var2562 = 2562\n2564|const var2563 = 2563\n2565|const var2564 = 2564\n2566|const var2565 = 2565\n2567|const var2566 = 2566\n2568|const var2567 = 2567\n2569|const var2568 = 2568\n2570|const var2569 = 2569\n2571|const var2570 = 2570\n2572|const var2571 = 2571\n2573|const var2572 = 2572\n2574|const var2573 = 2573\n2575|const var2574 = 2574\n2576|const var2575 = 2575\n2577|const var2576 = 2576\n2578|const var2577 = 2577\n2579|const var2578 = 2578\n2580|const var2579 = 2579\n2581|const var2580 = 2580\n2582|const var2581 = 2581\n2583|const var2582 = 2582\n2584|const var2583 = 2583\n2585|const var2584 = 2584\n2586|const var2585 = 2585\n2587|const var2586 = 2586\n2588|const var2587 = 2587\n2589|const var2588 = 2588\n2590|const var2589 = 2589\n2591|const var2590 = 2590\n2592|const var2591 = 2591\n2593|const var2592 = 2592\n2594|const var2593 = 2593\n2595|const var2594 = 2594\n2596|const var2595 = 2595\n2597|const var2596 = 2596\n2598|const var2597 = 2597\n2599|const var2598 = 2598\n2600|const var2599 = 2599\n2601|const var2600 = 2600\n2602|const var2601 = 2601\n2603|const var2602 = 2602\n2604|const var2603 = 2603\n2605|const var2604 = 2604\n2606|const var2605 = 2605\n2607|const var2606 = 2606\n2608|const var2607 = 2607\n2609|const var2608 = 2608\n2610|const var2609 = 2609\n2611|const var2610 = 2610\n2612|const var2611 = 2611\n2613|const var2612 = 2612\n2614|const var2613 = 2613\n2615|const var2614 = 2614\n2616|const var2615 = 2615\n2617|const var2616 = 2616\n2618|const var2617 = 2617\n2619|const var2618 = 2618\n2620|const var2619 = 2619\n2621|const var2620 = 2620\n2622|const var2621 = 2621\n2623|const var2622 = 2622\n2624|const var2623 = 2623\n2625|const var2624 = 2624\n2626|const var2625 = 2625\n2627|const var2626 = 2626\n2628|const var2627 = 2627\n2629|const var2628 = 2628\n2630|const var2629 = 2629\n2631|const var2630 = 2630\n2632|const var2631 = 2631\n2633|const var2632 = 2632\n2634|const var2633 = 2633\n2635|const var2634 = 2634\n2636|const var2635 = 2635\n2637|const var2636 = 2636\n2638|const var2637 = 2637\n2639|const var2638 = 2638\n2640|const var2639 = 2639\n2641|const var2640 = 2640\n2642|const var2641 = 2641\n2643|const var2642 = 2642\n2644|const var2643 = 2643\n2645|const var2644 = 2644\n2646|const var2645 = 2645\n2647|const var2646 = 2646\n2648|const var2647 = 2647\n2649|const var2648 = 2648\n2650|const var2649 = 2649\n2651|const var2650 = 2650\n2652|const var2651 = 2651\n2653|const var2652 = 2652\n2654|const var2653 = 2653\n2655|const var2654 = 2654\n2656|const var2655 = 2655\n2657|const var2656 = 2656\n2658|const var2657 = 2657\n2659|const var2658 = 2658\n2660|const var2659 = 2659\n2661|const var2660 = 2660\n2662|const var2661 = 2661\n2663|const var2662 = 2662\n2664|const var2663 = 2663\n2665|const var2664 = 2664\n2666|const var2665 = 2665\n2667|const var2666 = 2666\n2668|const var2667 = 2667\n2669|const var2668 = 2668\n2670|const var2669 = 2669\n2671|const var2670 = 2670\n2672|const var2671 = 2671\n2673|const var2672 = 2672\n2674|const var2673 = 2673\n2675|const var2674 = 2674\n2676|const var2675 = 2675\n2677|const var2676 = 2676\n2678|const var2677 = 2677\n2679|const var2678 = 2678\n2680|const var2679 = 2679\n2681|const var2680 = 2680\n2682|const var2681 = 2681\n2683|const var2682 = 2682\n2684|const var2683 = 2683\n2685|const var2684 = 2684\n2686|const var2685 = 2685\n2687|const var2686 = 2686\n2688|const var2687 = 2687\n2689|const var2688 = 2688\n2690|const var2689 = 2689\n2691|const var2690 = 2690\n2692|const var2691 = 2691\n2693|const var2692 = 2692\n2694|const var2693 = 2693\n2695|const var2694 = 2694\n2696|const var2695 = 2695\n2697|const var2696 = 2696\n2698|const var2697 = 2697\n2699|const var2698 = 2698\n2700|const var2699 = 2699\n2701|const var2700 = 2700\n2702|const var2701 = 2701\n2703|const var2702 = 2702\n2704|const var2703 = 2703\n2705|const var2704 = 2704\n2706|const var2705 = 2705\n2707|const var2706 = 2706\n2708|const var2707 = 2707\n2709|const var2708 = 2708\n2710|const var2709 = 2709\n2711|const var2710 = 2710\n2712|const var2711 = 2711\n2713|const var2712 = 2712\n2714|const var2713 = 2713\n2715|const var2714 = 2714\n2716|const var2715 = 2715\n2717|const var2716 = 2716\n2718|const var2717 = 2717\n2719|const var2718 = 2718\n2720|const var2719 = 2719\n2721|const var2720 = 2720\n2722|const var2721 = 2721\n2723|const var2722 = 2722\n2724|const var2723 = 2723\n2725|const var2724 = 2724\n2726|const var2725 = 2725\n2727|const var2726 = 2726\n2728|const var2727 = 2727\n2729|const var2728 = 2728\n2730|const var2729 = 2729\n2731|const var2730 = 2730\n2732|const var2731 = 2731\n2733|const var2732 = 2732\n2734|const var2733 = 2733\n2735|const var2734 = 2734\n2736|const var2735 = 2735\n2737|const var2736 = 2736\n2738|const var2737 = 2737\n2739|const var2738 = 2738\n2740|const var2739 = 2739\n2741|const var2740 = 2740\n2742|const var2741 = 2741\n2743|const var2742 = 2742\n2744|const var2743 = 2743\n2745|const var2744 = 2744\n2746|const var2745 = 2745\n2747|const var2746 = 2746\n2748|const var2747 = 2747\n2749|const var2748 = 2748\n2750|const var2749 = 2749\n2751|const var2750 = 2750\n2752|const var2751 = 2751\n2753|const var2752 = 2752\n2754|const var2753 = 2753\n2755|const var2754 = 2754\n2756|const var2755 = 2755\n2757|const var2756 = 2756\n2758|const var2757 = 2757\n2759|const var2758 = 2758\n2760|const var2759 = 2759\n2761|const var2760 = 2760\n2762|const var2761 = 2761\n2763|const var2762 = 2762\n2764|const var2763 = 2763\n2765|const var2764 = 2764\n2766|const var2765 = 2765\n2767|const var2766 = 2766\n2768|const var2767 = 2767\n2769|const var2768 = 2768\n2770|const var2769 = 2769\n2771|const var2770 = 2770\n2772|const var2771 = 2771\n2773|const var2772 = 2772\n2774|const var2773 = 2773\n2775|const var2774 = 2774\n2776|const var2775 = 2775\n2777|const var2776 = 2776\n2778|const var2777 = 2777\n2779|const var2778 = 2778\n2780|const var2779 = 2779\n2781|const var2780 = 2780\n2782|const var2781 = 2781\n2783|const var2782 = 2782\n2784|const var2783 = 2783\n2785|const var2784 = 2784\n2786|const var2785 = 2785\n2787|const var2786 = 2786\n2788|const var2787 = 2787\n2789|const var2788 = 2788\n2790|const var2789 = 2789\n2791|const var2790 = 2790\n2792|const var2791 = 2791\n2793|const var2792 = 2792\n2794|const var2793 = 2793\n2795|const var2794 = 2794\n2796|const var2795 = 2795\n2797|const var2796 = 2796\n2798|const var2797 = 2797\n2799|const var2798 = 2798\n2800|const var2799 = 2799\n2801|const var2800 = 2800\n2802|const var2801 = 2801\n2803|const var2802 = 2802\n2804|const var2803 = 2803\n2805|const var2804 = 2804\n2806|const var2805 = 2805\n2807|const var2806 = 2806\n2808|const var2807 = 2807\n2809|const var2808 = 2808\n2810|const var2809 = 2809\n2811|const var2810 = 2810\n2812|const var2811 = 2811\n2813|const var2812 = 2812\n2814|const var2813 = 2813\n2815|const var2814 = 2814\n2816|const var2815 = 2815\n2817|const var2816 = 2816\n2818|const var2817 = 2817\n2819|const var2818 = 2818\n2820|const var2819 = 2819\n2821|const var2820 = 2820\n2822|const var2821 = 2821\n2823|const var2822 = 2822\n2824|const var2823 = 2823\n2825|const var2824 = 2824\n2826|const var2825 = 2825\n2827|const var2826 = 2826\n2828|const var2827 = 2827\n2829|const var2828 = 2828\n2830|const var2829 = 2829\n2831|const var2830 = 2830\n2832|const var2831 = 2831\n2833|const var2832 = 2832\n2834|const var2833 = 2833\n2835|const var2834 = 2834\n2836|const var2835 = 2835\n2837|const var2836 = 2836\n2838|const var2837 = 2837\n2839|const var2838 = 2838\n2840|const var2839 = 2839\n2841|const var2840 = 2840\n2842|const var2841 = 2841\n2843|const var2842 = 2842\n2844|const var2843 = 2843\n2845|const var2844 = 2844\n2846|const var2845 = 2845\n2847|const var2846 = 2846\n2848|const var2847 = 2847\n2849|const var2848 = 2848\n2850|const var2849 = 2849\n2851|const var2850 = 2850\n2852|const var2851 = 2851\n2853|const var2852 = 2852\n2854|const var2853 = 2853\n2855|const var2854 = 2854\n2856|const var2855 = 2855\n2857|const var2856 = 2856\n2858|const var2857 = 2857\n2859|const var2858 = 2858\n2860|const var2859 = 2859\n2861|const var2860 = 2860\n2862|const var2861 = 2861\n2863|const var2862 = 2862\n2864|const var2863 = 2863\n2865|const var2864 = 2864\n2866|const var2865 = 2865\n2867|const var2866 = 2866\n2868|const var2867 = 2867\n2869|const var2868 = 2868\n2870|const var2869 = 2869\n2871|const var2870 = 2870\n2872|const var2871 = 2871\n2873|const var2872 = 2872\n2874|const var2873 = 2873\n2875|const var2874 = 2874\n2876|const var2875 = 2875\n2877|const var2876 = 2876\n2878|const var2877 = 2877\n2879|const var2878 = 2878\n2880|const var2879 = 2879\n2881|const var2880 = 2880\n2882|const var2881 = 2881\n2883|const var2882 = 2882\n2884|const var2883 = 2883\n2885|const var2884 = 2884\n2886|const var2885 = 2885\n2887|const var2886 = 2886\n2888|const var2887 = 2887\n2889|const var2888 = 2888\n2890|const var2889 = 2889\n2891|const var2890 = 2890\n2892|const var2891 = 2891\n2893|const var2892 = 2892\n2894|const var2893 = 2893\n2895|const var2894 = 2894\n2896|const var2895 = 2895\n2897|const var2896 = 2896\n2898|const var2897 = 2897\n2899|const var2898 = 2898\n2900|const var2899 = 2899\n2901|const var2900 = 2900\n2902|const var2901 = 2901\n2903|const var2902 = 2902\n2904|const var2903 = 2903\n2905|const var2904 = 2904\n2906|const var2905 = 2905\n2907|const var2906 = 2906\n2908|const var2907 = 2907\n2909|const var2908 = 2908\n2910|const var2909 = 2909\n2911|const var2910 = 2910\n2912|const var2911 = 2911\n2913|const var2912 = 2912\n2914|const var2913 = 2913\n2915|const var2914 = 2914\n2916|const var2915 = 2915\n2917|const var2916 = 2916\n2918|const var2917 = 2917\n2919|const var2918 = 2918\n2920|const var2919 = 2919\n2921|const var2920 = 2920\n2922|const var2921 = 2921\n2923|const var2922 = 2922\n2924|const var2923 = 2923\n2925|const var2924 = 2924\n2926|const var2925 = 2925\n2927|const var2926 = 2926\n2928|const var2927 = 2927\n2929|const var2928 = 2928\n2930|const var2929 = 2929\n2931|const var2930 = 2930\n2932|const var2931 = 2931\n2933|const var2932 = 2932\n2934|const var2933 = 2933\n2935|const var2934 = 2934\n2936|const var2935 = 2935\n2937|const var2936 = 2936\n2938|const var2937 = 2937\n2939|const var2938 = 2938\n2940|const var2939 = 2939\n2941|const var2940 = 2940\n2942|const var2941 = 2941\n2943|const var2942 = 2942\n2944|const var2943 = 2943\n2945|const var2944 = 2944\n2946|const var2945 = 2945\n2947|const var2946 = 2946\n2948|const var2947 = 2947\n2949|const var2948 = 2948\n2950|const var2949 = 2949\n2951|const var2950 = 2950\n2952|const var2951 = 2951\n2953|const var2952 = 2952\n2954|const var2953 = 2953\n2955|const var2954 = 2954\n2956|const var2955 = 2955\n2957|const var2956 = 2956\n2958|const var2957 = 2957\n2959|const var2958 = 2958\n2960|const var2959 = 2959\n2961|const var2960 = 2960\n2962|const var2961 = 2961\n2963|const var2962 = 2962\n2964|const var2963 = 2963\n2965|const var2964 = 2964\n2966|const var2965 = 2965\n2967|const var2966 = 2966\n2968|const var2967 = 2967\n2969|const var2968 = 2968\n2970|const var2969 = 2969\n2971|const var2970 = 2970\n2972|const var2971 = 2971\n2973|const var2972 = 2972\n2974|const var2973 = 2973\n2975|const var2974 = 2974\n2976|const var2975 = 2975\n2977|const var2976 = 2976\n2978|const var2977 = 2977\n2979|const var2978 = 2978\n2980|const var2979 = 2979\n2981|const var2980 = 2980\n2982|const var2981 = 2981\n2983|const var2982 = 2982\n2984|const var2983 = 2983\n2985|const var2984 = 2984\n2986|const var2985 = 2985\n2987|const var2986 = 2986\n2988|const var2987 = 2987\n2989|const var2988 = 2988\n2990|const var2989 = 2989\n2991|const var2990 = 2990\n2992|const var2991 = 2991\n2993|const var2992 = 2992\n2994|const var2993 = 2993\n2995|const var2994 = 2994\n2996|const var2995 = 2995\n2997|const var2996 = 2996\n2998|const var2997 = 2997\n2999|const var2998 = 2998\n3000|const var2999 = 2999\n\n■PATCH_START■","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.patch","promptSource":"zai:zai.patch:default"},"model":"fast","signal":{},"stopSequences":["■PATCH_END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■PATCH_START■
◼<2501|// Added comment
■PATCH_END


Input: {"body":{"messages":[{"content":"You are a code patching assistant. Your task is to generate precise line-based patches using the Micropatch protocol.\n\n## Micropatch Protocol\n\nThe Micropatch protocol uses line numbers to reference ORIGINAL lines (before any edits). All operations use these ORIGINAL line numbers, which remain valid throughout the patching process.\n\n### Operations\n\nEach operation starts with the marker `◼` at the beginning of a line:\n\n1. **Insert BEFORE line**: `◼<NNN|text`\n   - Inserts `text` as a new line BEFORE original line NNN\n   - Example: `◼<5|console.log('debug')` inserts before line 5\n\n2. **Insert AFTER line**: `◼>NNN|text`\n   - Inserts `text` as a new line AFTER original line NNN\n   - Example: `◼>10|}` inserts after line 10\n\n3. **Replace single line**: `◼=NNN|new text`\n   - Replaces original line NNN with `new text`\n   - Can use multiple lines (continue until next ◼ or end)\n   - Example:\n     ```\n     ◼=7|function newName() {\n       return 42\n     }\n     ```\n\n4. **Replace range**: `◼=NNN-MMM|replacement`\n   - Replaces lines NNN through MMM with replacement text\n   - Example: `◼=5-8|const combined = a + b + c + d` replaces lines 5-8\n\n5. **Delete single line**: `◼-NNN`\n   - Deletes original line NNN\n   - Example: `◼-12` deletes line 12\n\n6. **Delete range**: `◼-NNN-MMM`\n   - Deletes lines NNN through MMM inclusive\n   - Example: `◼-5-10` deletes lines 5 through 10\n\n### Escaping\n\n- To include a literal `◼` in your text, use `\\◼`\n- No other escape sequences are recognized\n\n### Important Rules\n\n1. **Use ORIGINAL line numbers**: Always reference the line numbers shown in the input, not adjusted numbers\n2. **One operation per line**: Each operation must start on a new line with `◼`\n3. **No explanations**: Output ONLY patch operations, no comments or explanations\n4. **Precise operations**: Use the minimal set of operations to achieve the goal\n5. **Verify line numbers**: Double-check that line numbers match the input\n\n\n### Examples\n\n**Example 1: Simple replacement**\nInput file (lines 001-005):\n```\n001|const x = 1\n002|const y = 2\n003|console.log(x + y)\n004|\n005|export { x, y }\n```\n\nTask: Change variable names from x,y to a,b\n\nOutput:\n```\n◼=1|const a = 1\n◼=2|const b = 2\n◼=3|console.log(a + b)\n◼=5|export { a, b }\n```\n\n**Example 2: Adding documentation**\nInput file (lines 001-003):\n```\n001|function add(a, b) {\n002|  return a + b\n003|}\n```\n\nTask: Add JSDoc comment\n\nOutput:\n```\n◼<1|/**\n * Adds two numbers together\n * @param a First number\n * @param b Second number\n * @returns Sum of a and b\n */\n```\n\n**Example 3: Refactoring**\nInput file (lines 001-010):\n```\n001|const user = getUser()\n002|const name = user.name\n003|const email = user.email\n004|const age = user.age\n005|\n006|console.log(name)\n007|console.log(email)\n008|console.log(age)\n009|\n010|return user\n```\n\nTask: Use destructuring\n\nOutput:\n```\n◼=1-4|const { name, email, age } = getUser()\n◼-10\n◼>8|return { name, email, age }\n```\n\n## Your Task\n\nGenerate ONLY the patch operations needed to fulfill the user's instructions. Output patch operations between ■PATCH_START■ and ■PATCH_END■ markers.\n\n**Critical**:\n- Output ONLY patch operations, no explanations\n- Use ORIGINAL line numbers from the input\n- Verify each line number is correct\n- Test your patches mentally to ensure they produce the desired result","role":"system"},{"content":"Instructions: add a comment at the top\n\nFile: large.ts\n3001|const var3000 = 3000\n3002|const var3001 = 3001\n3003|const var3002 = 3002\n3004|const var3003 = 3003\n3005|const var3004 = 3004\n3006|const var3005 = 3005\n3007|const var3006 = 3006\n3008|const var3007 = 3007\n3009|const var3008 = 3008\n3010|const var3009 = 3009\n3011|const var3010 = 3010\n3012|const var3011 = 3011\n3013|const var3012 = 3012\n3014|const var3013 = 3013\n3015|const var3014 = 3014\n3016|const var3015 = 3015\n3017|const var3016 = 3016\n3018|const var3017 = 3017\n3019|const var3018 = 3018\n3020|const var3019 = 3019\n3021|const var3020 = 3020\n3022|const var3021 = 3021\n3023|const var3022 = 3022\n3024|const var3023 = 3023\n3025|const var3024 = 3024\n3026|const var3025 = 3025\n3027|const var3026 = 3026\n3028|const var3027 = 3027\n3029|const var3028 = 3028\n3030|const var3029 = 3029\n3031|const var3030 = 3030\n3032|const var3031 = 3031\n3033|const var3032 = 3032\n3034|const var3033 = 3033\n3035|const var3034 = 3034\n3036|const var3035 = 3035\n3037|const var3036 = 3036\n3038|const var3037 = 3037\n3039|const var3038 = 3038\n3040|const var3039 = 3039\n3041|const var3040 = 3040\n3042|const var3041 = 3041\n3043|const var3042 = 3042\n3044|const var3043 = 3043\n3045|const var3044 = 3044\n3046|const var3045 = 3045\n3047|const var3046 = 3046\n3048|const var3047 = 3047\n3049|const var3048 = 3048\n3050|const var3049 = 3049\n3051|const var3050 = 3050\n3052|const var3051 = 3051\n3053|const var3052 = 3052\n3054|const var3053 = 3053\n3055|const var3054 = 3054\n3056|const var3055 = 3055\n3057|const var3056 = 3056\n3058|const var3057 = 3057\n3059|const var3058 = 3058\n3060|const var3059 = 3059\n3061|const var3060 = 3060\n3062|const var3061 = 3061\n3063|const var3062 = 3062\n3064|const var3063 = 3063\n3065|const var3064 = 3064\n3066|const var3065 = 3065\n3067|const var3066 = 3066\n3068|const var3067 = 3067\n3069|const var3068 = 3068\n3070|const var3069 = 3069\n3071|const var3070 = 3070\n3072|const var3071 = 3071\n3073|const var3072 = 3072\n3074|const var3073 = 3073\n3075|const var3074 = 3074\n3076|const var3075 = 3075\n3077|const var3076 = 3076\n3078|const var3077 = 3077\n3079|const var3078 = 3078\n3080|const var3079 = 3079\n3081|const var3080 = 3080\n3082|const var3081 = 3081\n3083|const var3082 = 3082\n3084|const var3083 = 3083\n3085|const var3084 = 3084\n3086|const var3085 = 3085\n3087|const var3086 = 3086\n3088|const var3087 = 3087\n3089|const var3088 = 3088\n3090|const var3089 = 3089\n3091|const var3090 = 3090\n3092|const var3091 = 3091\n3093|const var3092 = 3092\n3094|const var3093 = 3093\n3095|const var3094 = 3094\n3096|const var3095 = 3095\n3097|const var3096 = 3096\n3098|const var3097 = 3097\n3099|const var3098 = 3098\n3100|const var3099 = 3099\n3101|const var3100 = 3100\n3102|const var3101 = 3101\n3103|const var3102 = 3102\n3104|const var3103 = 3103\n3105|const var3104 = 3104\n3106|const var3105 = 3105\n3107|const var3106 = 3106\n3108|const var3107 = 3107\n3109|const var3108 = 3108\n3110|const var3109 = 3109\n3111|const var3110 = 3110\n3112|const var3111 = 3111\n3113|const var3112 = 3112\n3114|const var3113 = 3113\n3115|const var3114 = 3114\n3116|const var3115 = 3115\n3117|const var3116 = 3116\n3118|const var3117 = 3117\n3119|const var3118 = 3118\n3120|const var3119 = 3119\n3121|const var3120 = 3120\n3122|const var3121 = 3121\n3123|const var3122 = 3122\n3124|const var3123 = 3123\n3125|const var3124 = 3124\n3126|const var3125 = 3125\n3127|const var3126 = 3126\n3128|const var3127 = 3127\n3129|const var3128 = 3128\n3130|const var3129 = 3129\n3131|const var3130 = 3130\n3132|const var3131 = 3131\n3133|const var3132 = 3132\n3134|const var3133 = 3133\n3135|const var3134 = 3134\n3136|const var3135 = 3135\n3137|const var3136 = 3136\n3138|const var3137 = 3137\n3139|const var3138 = 3138\n3140|const var3139 = 3139\n3141|const var3140 = 3140\n3142|const var3141 = 3141\n3143|const var3142 = 3142\n3144|const var3143 = 3143\n3145|const var3144 = 3144\n3146|const var3145 = 3145\n3147|const var3146 = 3146\n3148|const var3147 = 3147\n3149|const var3148 = 3148\n3150|const var3149 = 3149\n3151|const var3150 = 3150\n3152|const var3151 = 3151\n3153|const var3152 = 3152\n3154|const var3153 = 3153\n3155|const var3154 = 3154\n3156|const var3155 = 3155\n3157|const var3156 = 3156\n3158|const var3157 = 3157\n3159|const var3158 = 3158\n3160|const var3159 = 3159\n3161|const var3160 = 3160\n3162|const var3161 = 3161\n3163|const var3162 = 3162\n3164|const var3163 = 3163\n3165|const var3164 = 3164\n3166|const var3165 = 3165\n3167|const var3166 = 3166\n3168|const var3167 = 3167\n3169|const var3168 = 3168\n3170|const var3169 = 3169\n3171|const var3170 = 3170\n3172|const var3171 = 3171\n3173|const var3172 = 3172\n3174|const var3173 = 3173\n3175|const var3174 = 3174\n3176|const var3175 = 3175\n3177|const var3176 = 3176\n3178|const var3177 = 3177\n3179|const var3178 = 3178\n3180|const var3179 = 3179\n3181|const var3180 = 3180\n3182|const var3181 = 3181\n3183|const var3182 = 3182\n3184|const var3183 = 3183\n3185|const var3184 = 3184\n3186|const var3185 = 3185\n3187|const var3186 = 3186\n3188|const var3187 = 3187\n3189|const var3188 = 3188\n3190|const var3189 = 3189\n3191|const var3190 = 3190\n3192|const var3191 = 3191\n3193|const var3192 = 3192\n3194|const var3193 = 3193\n3195|const var3194 = 3194\n3196|const var3195 = 3195\n3197|const var3196 = 3196\n3198|const var3197 = 3197\n3199|const var3198 = 3198\n3200|const var3199 = 3199\n3201|const var3200 = 3200\n3202|const var3201 = 3201\n3203|const var3202 = 3202\n3204|const var3203 = 3203\n3205|const var3204 = 3204\n3206|const var3205 = 3205\n3207|const var3206 = 3206\n3208|const var3207 = 3207\n3209|const var3208 = 3208\n3210|const var3209 = 3209\n3211|const var3210 = 3210\n3212|const var3211 = 3211\n3213|const var3212 = 3212\n3214|const var3213 = 3213\n3215|const var3214 = 3214\n3216|const var3215 = 3215\n3217|const var3216 = 3216\n3218|const var3217 = 3217\n3219|const var3218 = 3218\n3220|const var3219 = 3219\n3221|const var3220 = 3220\n3222|const var3221 = 3221\n3223|const var3222 = 3222\n3224|const var3223 = 3223\n3225|const var3224 = 3224\n3226|const var3225 = 3225\n3227|const var3226 = 3226\n3228|const var3227 = 3227\n3229|const var3228 = 3228\n3230|const var3229 = 3229\n3231|const var3230 = 3230\n3232|const var3231 = 3231\n3233|const var3232 = 3232\n3234|const var3233 = 3233\n3235|const var3234 = 3234\n3236|const var3235 = 3235\n3237|const var3236 = 3236\n3238|const var3237 = 3237\n3239|const var3238 = 3238\n3240|const var3239 = 3239\n3241|const var3240 = 3240\n3242|const var3241 = 3241\n3243|const var3242 = 3242\n3244|const var3243 = 3243\n3245|const var3244 = 3244\n3246|const var3245 = 3245\n3247|const var3246 = 3246\n3248|const var3247 = 3247\n3249|const var3248 = 3248\n3250|const var3249 = 3249\n3251|const var3250 = 3250\n3252|const var3251 = 3251\n3253|const var3252 = 3252\n3254|const var3253 = 3253\n3255|const var3254 = 3254\n3256|const var3255 = 3255\n3257|const var3256 = 3256\n3258|const var3257 = 3257\n3259|const var3258 = 3258\n3260|const var3259 = 3259\n3261|const var3260 = 3260\n3262|const var3261 = 3261\n3263|const var3262 = 3262\n3264|const var3263 = 3263\n3265|const var3264 = 3264\n3266|const var3265 = 3265\n3267|const var3266 = 3266\n3268|const var3267 = 3267\n3269|const var3268 = 3268\n3270|const var3269 = 3269\n3271|const var3270 = 3270\n3272|const var3271 = 3271\n3273|const var3272 = 3272\n3274|const var3273 = 3273\n3275|const var3274 = 3274\n3276|const var3275 = 3275\n3277|const var3276 = 3276\n3278|const var3277 = 3277\n3279|const var3278 = 3278\n3280|const var3279 = 3279\n3281|const var3280 = 3280\n3282|const var3281 = 3281\n3283|const var3282 = 3282\n3284|const var3283 = 3283\n3285|const var3284 = 3284\n3286|const var3285 = 3285\n3287|const var3286 = 3286\n3288|const var3287 = 3287\n3289|const var3288 = 3288\n3290|const var3289 = 3289\n3291|const var3290 = 3290\n3292|const var3291 = 3291\n3293|const var3292 = 3292\n3294|const var3293 = 3293\n3295|const var3294 = 3294\n3296|const var3295 = 3295\n3297|const var3296 = 3296\n3298|const var3297 = 3297\n3299|const var3298 = 3298\n3300|const var3299 = 3299\n3301|const var3300 = 3300\n3302|const var3301 = 3301\n3303|const var3302 = 3302\n3304|const var3303 = 3303\n3305|const var3304 = 3304\n3306|const var3305 = 3305\n3307|const var3306 = 3306\n3308|const var3307 = 3307\n3309|const var3308 = 3308\n3310|const var3309 = 3309\n3311|const var3310 = 3310\n3312|const var3311 = 3311\n3313|const var3312 = 3312\n3314|const var3313 = 3313\n3315|const var3314 = 3314\n3316|const var3315 = 3315\n3317|const var3316 = 3316\n3318|const var3317 = 3317\n3319|const var3318 = 3318\n3320|const var3319 = 3319\n3321|const var3320 = 3320\n3322|const var3321 = 3321\n3323|const var3322 = 3322\n3324|const var3323 = 3323\n3325|const var3324 = 3324\n3326|const var3325 = 3325\n3327|const var3326 = 3326\n3328|const var3327 = 3327\n3329|const var3328 = 3328\n3330|const var3329 = 3329\n3331|const var3330 = 3330\n3332|const var3331 = 3331\n3333|const var3332 = 3332\n3334|const var3333 = 3333\n3335|const var3334 = 3334\n3336|const var3335 = 3335\n3337|const var3336 = 3336\n3338|const var3337 = 3337\n3339|const var3338 = 3338\n3340|const var3339 = 3339\n3341|const var3340 = 3340\n3342|const var3341 = 3341\n3343|const var3342 = 3342\n3344|const var3343 = 3343\n3345|const var3344 = 3344\n3346|const var3345 = 3345\n3347|const var3346 = 3346\n3348|const var3347 = 3347\n3349|const var3348 = 3348\n3350|const var3349 = 3349\n3351|const var3350 = 3350\n3352|const var3351 = 3351\n3353|const var3352 = 3352\n3354|const var3353 = 3353\n3355|const var3354 = 3354\n3356|const var3355 = 3355\n3357|const var3356 = 3356\n3358|const var3357 = 3357\n3359|const var3358 = 3358\n3360|const var3359 = 3359\n3361|const var3360 = 3360\n3362|const var3361 = 3361\n3363|const var3362 = 3362\n3364|const var3363 = 3363\n3365|const var3364 = 3364\n3366|const var3365 = 3365\n3367|const var3366 = 3366\n3368|const var3367 = 3367\n3369|const var3368 = 3368\n3370|const var3369 = 3369\n3371|const var3370 = 3370\n3372|const var3371 = 3371\n3373|const var3372 = 3372\n3374|const var3373 = 3373\n3375|const var3374 = 3374\n3376|const var3375 = 3375\n3377|const var3376 = 3376\n3378|const var3377 = 3377\n3379|const var3378 = 3378\n3380|const var3379 = 3379\n3381|const var3380 = 3380\n3382|const var3381 = 3381\n3383|const var3382 = 3382\n3384|const var3383 = 3383\n3385|const var3384 = 3384\n3386|const var3385 = 3385\n3387|const var3386 = 3386\n3388|const var3387 = 3387\n3389|const var3388 = 3388\n3390|const var3389 = 3389\n3391|const var3390 = 3390\n3392|const var3391 = 3391\n3393|const var3392 = 3392\n3394|const var3393 = 3393\n3395|const var3394 = 3394\n3396|const var3395 = 3395\n3397|const var3396 = 3396\n3398|const var3397 = 3397\n3399|const var3398 = 3398\n3400|const var3399 = 3399\n3401|const var3400 = 3400\n3402|const var3401 = 3401\n3403|const var3402 = 3402\n3404|const var3403 = 3403\n3405|const var3404 = 3404\n3406|const var3405 = 3405\n3407|const var3406 = 3406\n3408|const var3407 = 3407\n3409|const var3408 = 3408\n3410|const var3409 = 3409\n3411|const var3410 = 3410\n3412|const var3411 = 3411\n3413|const var3412 = 3412\n3414|const var3413 = 3413\n3415|const var3414 = 3414\n3416|const var3415 = 3415\n3417|const var3416 = 3416\n3418|const var3417 = 3417\n3419|const var3418 = 3418\n3420|const var3419 = 3419\n3421|const var3420 = 3420\n3422|const var3421 = 3421\n3423|const var3422 = 3422\n3424|const var3423 = 3423\n3425|const var3424 = 3424\n3426|const var3425 = 3425\n3427|const var3426 = 3426\n3428|const var3427 = 3427\n3429|const var3428 = 3428\n3430|const var3429 = 3429\n3431|const var3430 = 3430\n3432|const var3431 = 3431\n3433|const var3432 = 3432\n3434|const var3433 = 3433\n3435|const var3434 = 3434\n3436|const var3435 = 3435\n3437|const var3436 = 3436\n3438|const var3437 = 3437\n3439|const var3438 = 3438\n3440|const var3439 = 3439\n3441|const var3440 = 3440\n3442|const var3441 = 3441\n3443|const var3442 = 3442\n3444|const var3443 = 3443\n3445|const var3444 = 3444\n3446|const var3445 = 3445\n3447|const var3446 = 3446\n3448|const var3447 = 3447\n3449|const var3448 = 3448\n3450|const var3449 = 3449\n3451|const var3450 = 3450\n3452|const var3451 = 3451\n3453|const var3452 = 3452\n3454|const var3453 = 3453\n3455|const var3454 = 3454\n3456|const var3455 = 3455\n3457|const var3456 = 3456\n3458|const var3457 = 3457\n3459|const var3458 = 3458\n3460|const var3459 = 3459\n3461|const var3460 = 3460\n3462|const var3461 = 3461\n3463|const var3462 = 3462\n3464|const var3463 = 3463\n3465|const var3464 = 3464\n3466|const var3465 = 3465\n3467|const var3466 = 3466\n3468|const var3467 = 3467\n3469|const var3468 = 3468\n3470|const var3469 = 3469\n3471|const var3470 = 3470\n3472|const var3471 = 3471\n3473|const var3472 = 3472\n3474|const var3473 = 3473\n3475|const var3474 = 3474\n3476|const var3475 = 3475\n3477|const var3476 = 3476\n3478|const var3477 = 3477\n3479|const var3478 = 3478\n3480|const var3479 = 3479\n3481|const var3480 = 3480\n3482|const var3481 = 3481\n3483|const var3482 = 3482\n3484|const var3483 = 3483\n3485|const var3484 = 3484\n3486|const var3485 = 3485\n3487|const var3486 = 3486\n3488|const var3487 = 3487\n3489|const var3488 = 3488\n3490|const var3489 = 3489\n3491|const var3490 = 3490\n3492|const var3491 = 3491\n3493|const var3492 = 3492\n3494|const var3493 = 3493\n3495|const var3494 = 3494\n3496|const var3495 = 3495\n3497|const var3496 = 3496\n3498|const var3497 = 3497\n3499|const var3498 = 3498\n3500|const var3499 = 3499\n\n■PATCH_START■","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.patch","promptSource":"zai:zai.patch:default"},"model":"fast","signal":{},"stopSequences":["■PATCH_END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■PATCH_START■
◼<3001|// Added comment at the top of the file
■PATCH_END


Input: {"body":{"messages":[{"content":"You are a code patching assistant. Your task is to generate precise line-based patches using the Micropatch protocol.\n\n## Micropatch Protocol\n\nThe Micropatch protocol uses line numbers to reference ORIGINAL lines (before any edits). All operations use these ORIGINAL line numbers, which remain valid throughout the patching process.\n\n### Operations\n\nEach operation starts with the marker `◼` at the beginning of a line:\n\n1. **Insert BEFORE line**: `◼<NNN|text`\n   - Inserts `text` as a new line BEFORE original line NNN\n   - Example: `◼<5|console.log('debug')` inserts before line 5\n\n2. **Insert AFTER line**: `◼>NNN|text`\n   - Inserts `text` as a new line AFTER original line NNN\n   - Example: `◼>10|}` inserts after line 10\n\n3. **Replace single line**: `◼=NNN|new text`\n   - Replaces original line NNN with `new text`\n   - Can use multiple lines (continue until next ◼ or end)\n   - Example:\n     ```\n     ◼=7|function newName() {\n       return 42\n     }\n     ```\n\n4. **Replace range**: `◼=NNN-MMM|replacement`\n   - Replaces lines NNN through MMM with replacement text\n   - Example: `◼=5-8|const combined = a + b + c + d` replaces lines 5-8\n\n5. **Delete single line**: `◼-NNN`\n   - Deletes original line NNN\n   - Example: `◼-12` deletes line 12\n\n6. **Delete range**: `◼-NNN-MMM`\n   - Deletes lines NNN through MMM inclusive\n   - Example: `◼-5-10` deletes lines 5 through 10\n\n### Escaping\n\n- To include a literal `◼` in your text, use `\\◼`\n- No other escape sequences are recognized\n\n### Important Rules\n\n1. **Use ORIGINAL line numbers**: Always reference the line numbers shown in the input, not adjusted numbers\n2. **One operation per line**: Each operation must start on a new line with `◼`\n3. **No explanations**: Output ONLY patch operations, no comments or explanations\n4. **Precise operations**: Use the minimal set of operations to achieve the goal\n5. **Verify line numbers**: Double-check that line numbers match the input\n\n\n### Examples\n\n**Example 1: Simple replacement**\nInput file (lines 001-005):\n```\n001|const x = 1\n002|const y = 2\n003|console.log(x + y)\n004|\n005|export { x, y }\n```\n\nTask: Change variable names from x,y to a,b\n\nOutput:\n```\n◼=1|const a = 1\n◼=2|const b = 2\n◼=3|console.log(a + b)\n◼=5|export { a, b }\n```\n\n**Example 2: Adding documentation**\nInput file (lines 001-003):\n```\n001|function add(a, b) {\n002|  return a + b\n003|}\n```\n\nTask: Add JSDoc comment\n\nOutput:\n```\n◼<1|/**\n * Adds two numbers together\n * @param a First number\n * @param b Second number\n * @returns Sum of a and b\n */\n```\n\n**Example 3: Refactoring**\nInput file (lines 001-010):\n```\n001|const user = getUser()\n002|const name = user.name\n003|const email = user.email\n004|const age = user.age\n005|\n006|console.log(name)\n007|console.log(email)\n008|console.log(age)\n009|\n010|return user\n```\n\nTask: Use destructuring\n\nOutput:\n```\n◼=1-4|const { name, email, age } = getUser()\n◼-10\n◼>8|return { name, email, age }\n```\n\n## Your Task\n\nGenerate ONLY the patch operations needed to fulfill the user's instructions. Output patch operations between ■PATCH_START■ and ■PATCH_END■ markers.\n\n**Critical**:\n- Output ONLY patch operations, no explanations\n- Use ORIGINAL line numbers from the input\n- Verify each line number is correct\n- Test your patches mentally to ensure they produce the desired result","role":"system"},{"content":"Instructions: add a comment at the top\n\nFile: large.ts\n3501|const var3500 = 3500\n3502|const var3501 = 3501\n3503|const var3502 = 3502\n3504|const var3503 = 3503\n3505|const var3504 = 3504\n3506|const var3505 = 3505\n3507|const var3506 = 3506\n3508|const var3507 = 3507\n3509|const var3508 = 3508\n3510|const var3509 = 3509\n3511|const var3510 = 3510\n3512|const var3511 = 3511\n3513|const var3512 = 3512\n3514|const var3513 = 3513\n3515|const var3514 = 3514\n3516|const var3515 = 3515\n3517|const var3516 = 3516\n3518|const var3517 = 3517\n3519|const var3518 = 3518\n3520|const var3519 = 3519\n3521|const var3520 = 3520\n3522|const var3521 = 3521\n3523|const var3522 = 3522\n3524|const var3523 = 3523\n3525|const var3524 = 3524\n3526|const var3525 = 3525\n3527|const var3526 = 3526\n3528|const var3527 = 3527\n3529|const var3528 = 3528\n3530|const var3529 = 3529\n3531|const var3530 = 3530\n3532|const var3531 = 3531\n3533|const var3532 = 3532\n3534|const var3533 = 3533\n3535|const var3534 = 3534\n3536|const var3535 = 3535\n3537|const var3536 = 3536\n3538|const var3537 = 3537\n3539|const var3538 = 3538\n3540|const var3539 = 3539\n3541|const var3540 = 3540\n3542|const var3541 = 3541\n3543|const var3542 = 3542\n3544|const var3543 = 3543\n3545|const var3544 = 3544\n3546|const var3545 = 3545\n3547|const var3546 = 3546\n3548|const var3547 = 3547\n3549|const var3548 = 3548\n3550|const var3549 = 3549\n3551|const var3550 = 3550\n3552|const var3551 = 3551\n3553|const var3552 = 3552\n3554|const var3553 = 3553\n3555|const var3554 = 3554\n3556|const var3555 = 3555\n3557|const var3556 = 3556\n3558|const var3557 = 3557\n3559|const var3558 = 3558\n3560|const var3559 = 3559\n3561|const var3560 = 3560\n3562|const var3561 = 3561\n3563|const var3562 = 3562\n3564|const var3563 = 3563\n3565|const var3564 = 3564\n3566|const var3565 = 3565\n3567|const var3566 = 3566\n3568|const var3567 = 3567\n3569|const var3568 = 3568\n3570|const var3569 = 3569\n3571|const var3570 = 3570\n3572|const var3571 = 3571\n3573|const var3572 = 3572\n3574|const var3573 = 3573\n3575|const var3574 = 3574\n3576|const var3575 = 3575\n3577|const var3576 = 3576\n3578|const var3577 = 3577\n3579|const var3578 = 3578\n3580|const var3579 = 3579\n3581|const var3580 = 3580\n3582|const var3581 = 3581\n3583|const var3582 = 3582\n3584|const var3583 = 3583\n3585|const var3584 = 3584\n3586|const var3585 = 3585\n3587|const var3586 = 3586\n3588|const var3587 = 3587\n3589|const var3588 = 3588\n3590|const var3589 = 3589\n3591|const var3590 = 3590\n3592|const var3591 = 3591\n3593|const var3592 = 3592\n3594|const var3593 = 3593\n3595|const var3594 = 3594\n3596|const var3595 = 3595\n3597|const var3596 = 3596\n3598|const var3597 = 3597\n3599|const var3598 = 3598\n3600|const var3599 = 3599\n3601|const var3600 = 3600\n3602|const var3601 = 3601\n3603|const var3602 = 3602\n3604|const var3603 = 3603\n3605|const var3604 = 3604\n3606|const var3605 = 3605\n3607|const var3606 = 3606\n3608|const var3607 = 3607\n3609|const var3608 = 3608\n3610|const var3609 = 3609\n3611|const var3610 = 3610\n3612|const var3611 = 3611\n3613|const var3612 = 3612\n3614|const var3613 = 3613\n3615|const var3614 = 3614\n3616|const var3615 = 3615\n3617|const var3616 = 3616\n3618|const var3617 = 3617\n3619|const var3618 = 3618\n3620|const var3619 = 3619\n3621|const var3620 = 3620\n3622|const var3621 = 3621\n3623|const var3622 = 3622\n3624|const var3623 = 3623\n3625|const var3624 = 3624\n3626|const var3625 = 3625\n3627|const var3626 = 3626\n3628|const var3627 = 3627\n3629|const var3628 = 3628\n3630|const var3629 = 3629\n3631|const var3630 = 3630\n3632|const var3631 = 3631\n3633|const var3632 = 3632\n3634|const var3633 = 3633\n3635|const var3634 = 3634\n3636|const var3635 = 3635\n3637|const var3636 = 3636\n3638|const var3637 = 3637\n3639|const var3638 = 3638\n3640|const var3639 = 3639\n3641|const var3640 = 3640\n3642|const var3641 = 3641\n3643|const var3642 = 3642\n3644|const var3643 = 3643\n3645|const var3644 = 3644\n3646|const var3645 = 3645\n3647|const var3646 = 3646\n3648|const var3647 = 3647\n3649|const var3648 = 3648\n3650|const var3649 = 3649\n3651|const var3650 = 3650\n3652|const var3651 = 3651\n3653|const var3652 = 3652\n3654|const var3653 = 3653\n3655|const var3654 = 3654\n3656|const var3655 = 3655\n3657|const var3656 = 3656\n3658|const var3657 = 3657\n3659|const var3658 = 3658\n3660|const var3659 = 3659\n3661|const var3660 = 3660\n3662|const var3661 = 3661\n3663|const var3662 = 3662\n3664|const var3663 = 3663\n3665|const var3664 = 3664\n3666|const var3665 = 3665\n3667|const var3666 = 3666\n3668|const var3667 = 3667\n3669|const var3668 = 3668\n3670|const var3669 = 3669\n3671|const var3670 = 3670\n3672|const var3671 = 3671\n3673|const var3672 = 3672\n3674|const var3673 = 3673\n3675|const var3674 = 3674\n3676|const var3675 = 3675\n3677|const var3676 = 3676\n3678|const var3677 = 3677\n3679|const var3678 = 3678\n3680|const var3679 = 3679\n3681|const var3680 = 3680\n3682|const var3681 = 3681\n3683|const var3682 = 3682\n3684|const var3683 = 3683\n3685|const var3684 = 3684\n3686|const var3685 = 3685\n3687|const var3686 = 3686\n3688|const var3687 = 3687\n3689|const var3688 = 3688\n3690|const var3689 = 3689\n3691|const var3690 = 3690\n3692|const var3691 = 3691\n3693|const var3692 = 3692\n3694|const var3693 = 3693\n3695|const var3694 = 3694\n3696|const var3695 = 3695\n3697|const var3696 = 3696\n3698|const var3697 = 3697\n3699|const var3698 = 3698\n3700|const var3699 = 3699\n3701|const var3700 = 3700\n3702|const var3701 = 3701\n3703|const var3702 = 3702\n3704|const var3703 = 3703\n3705|const var3704 = 3704\n3706|const var3705 = 3705\n3707|const var3706 = 3706\n3708|const var3707 = 3707\n3709|const var3708 = 3708\n3710|const var3709 = 3709\n3711|const var3710 = 3710\n3712|const var3711 = 3711\n3713|const var3712 = 3712\n3714|const var3713 = 3713\n3715|const var3714 = 3714\n3716|const var3715 = 3715\n3717|const var3716 = 3716\n3718|const var3717 = 3717\n3719|const var3718 = 3718\n3720|const var3719 = 3719\n3721|const var3720 = 3720\n3722|const var3721 = 3721\n3723|const var3722 = 3722\n3724|const var3723 = 3723\n3725|const var3724 = 3724\n3726|const var3725 = 3725\n3727|const var3726 = 3726\n3728|const var3727 = 3727\n3729|const var3728 = 3728\n3730|const var3729 = 3729\n3731|const var3730 = 3730\n3732|const var3731 = 3731\n3733|const var3732 = 3732\n3734|const var3733 = 3733\n3735|const var3734 = 3734\n3736|const var3735 = 3735\n3737|const var3736 = 3736\n3738|const var3737 = 3737\n3739|const var3738 = 3738\n3740|const var3739 = 3739\n3741|const var3740 = 3740\n3742|const var3741 = 3741\n3743|const var3742 = 3742\n3744|const var3743 = 3743\n3745|const var3744 = 3744\n3746|const var3745 = 3745\n3747|const var3746 = 3746\n3748|const var3747 = 3747\n3749|const var3748 = 3748\n3750|const var3749 = 3749\n3751|const var3750 = 3750\n3752|const var3751 = 3751\n3753|const var3752 = 3752\n3754|const var3753 = 3753\n3755|const var3754 = 3754\n3756|const var3755 = 3755\n3757|const var3756 = 3756\n3758|const var3757 = 3757\n3759|const var3758 = 3758\n3760|const var3759 = 3759\n3761|const var3760 = 3760\n3762|const var3761 = 3761\n3763|const var3762 = 3762\n3764|const var3763 = 3763\n3765|const var3764 = 3764\n3766|const var3765 = 3765\n3767|const var3766 = 3766\n3768|const var3767 = 3767\n3769|const var3768 = 3768\n3770|const var3769 = 3769\n3771|const var3770 = 3770\n3772|const var3771 = 3771\n3773|const var3772 = 3772\n3774|const var3773 = 3773\n3775|const var3774 = 3774\n3776|const var3775 = 3775\n3777|const var3776 = 3776\n3778|const var3777 = 3777\n3779|const var3778 = 3778\n3780|const var3779 = 3779\n3781|const var3780 = 3780\n3782|const var3781 = 3781\n3783|const var3782 = 3782\n3784|const var3783 = 3783\n3785|const var3784 = 3784\n3786|const var3785 = 3785\n3787|const var3786 = 3786\n3788|const var3787 = 3787\n3789|const var3788 = 3788\n3790|const var3789 = 3789\n3791|const var3790 = 3790\n3792|const var3791 = 3791\n3793|const var3792 = 3792\n3794|const var3793 = 3793\n3795|const var3794 = 3794\n3796|const var3795 = 3795\n3797|const var3796 = 3796\n3798|const var3797 = 3797\n3799|const var3798 = 3798\n3800|const var3799 = 3799\n3801|const var3800 = 3800\n3802|const var3801 = 3801\n3803|const var3802 = 3802\n3804|const var3803 = 3803\n3805|const var3804 = 3804\n3806|const var3805 = 3805\n3807|const var3806 = 3806\n3808|const var3807 = 3807\n3809|const var3808 = 3808\n3810|const var3809 = 3809\n3811|const var3810 = 3810\n3812|const var3811 = 3811\n3813|const var3812 = 3812\n3814|const var3813 = 3813\n3815|const var3814 = 3814\n3816|const var3815 = 3815\n3817|const var3816 = 3816\n3818|const var3817 = 3817\n3819|const var3818 = 3818\n3820|const var3819 = 3819\n3821|const var3820 = 3820\n3822|const var3821 = 3821\n3823|const var3822 = 3822\n3824|const var3823 = 3823\n3825|const var3824 = 3824\n3826|const var3825 = 3825\n3827|const var3826 = 3826\n3828|const var3827 = 3827\n3829|const var3828 = 3828\n3830|const var3829 = 3829\n3831|const var3830 = 3830\n3832|const var3831 = 3831\n3833|const var3832 = 3832\n3834|const var3833 = 3833\n3835|const var3834 = 3834\n3836|const var3835 = 3835\n3837|const var3836 = 3836\n3838|const var3837 = 3837\n3839|const var3838 = 3838\n3840|const var3839 = 3839\n3841|const var3840 = 3840\n3842|const var3841 = 3841\n3843|const var3842 = 3842\n3844|const var3843 = 3843\n3845|const var3844 = 3844\n3846|const var3845 = 3845\n3847|const var3846 = 3846\n3848|const var3847 = 3847\n3849|const var3848 = 3848\n3850|const var3849 = 3849\n3851|const var3850 = 3850\n3852|const var3851 = 3851\n3853|const var3852 = 3852\n3854|const var3853 = 3853\n3855|const var3854 = 3854\n3856|const var3855 = 3855\n3857|const var3856 = 3856\n3858|const var3857 = 3857\n3859|const var3858 = 3858\n3860|const var3859 = 3859\n3861|const var3860 = 3860\n3862|const var3861 = 3861\n3863|const var3862 = 3862\n3864|const var3863 = 3863\n3865|const var3864 = 3864\n3866|const var3865 = 3865\n3867|const var3866 = 3866\n3868|const var3867 = 3867\n3869|const var3868 = 3868\n3870|const var3869 = 3869\n3871|const var3870 = 3870\n3872|const var3871 = 3871\n3873|const var3872 = 3872\n3874|const var3873 = 3873\n3875|const var3874 = 3874\n3876|const var3875 = 3875\n3877|const var3876 = 3876\n3878|const var3877 = 3877\n3879|const var3878 = 3878\n3880|const var3879 = 3879\n3881|const var3880 = 3880\n3882|const var3881 = 3881\n3883|const var3882 = 3882\n3884|const var3883 = 3883\n3885|const var3884 = 3884\n3886|const var3885 = 3885\n3887|const var3886 = 3886\n3888|const var3887 = 3887\n3889|const var3888 = 3888\n3890|const var3889 = 3889\n3891|const var3890 = 3890\n3892|const var3891 = 3891\n3893|const var3892 = 3892\n3894|const var3893 = 3893\n3895|const var3894 = 3894\n3896|const var3895 = 3895\n3897|const var3896 = 3896\n3898|const var3897 = 3897\n3899|const var3898 = 3898\n3900|const var3899 = 3899\n3901|const var3900 = 3900\n3902|const var3901 = 3901\n3903|const var3902 = 3902\n3904|const var3903 = 3903\n3905|const var3904 = 3904\n3906|const var3905 = 3905\n3907|const var3906 = 3906\n3908|const var3907 = 3907\n3909|const var3908 = 3908\n3910|const var3909 = 3909\n3911|const var3910 = 3910\n3912|const var3911 = 3911\n3913|const var3912 = 3912\n3914|const var3913 = 3913\n3915|const var3914 = 3914\n3916|const var3915 = 3915\n3917|const var3916 = 3916\n3918|const var3917 = 3917\n3919|const var3918 = 3918\n3920|const var3919 = 3919\n3921|const var3920 = 3920\n3922|const var3921 = 3921\n3923|const var3922 = 3922\n3924|const var3923 = 3923\n3925|const var3924 = 3924\n3926|const var3925 = 3925\n3927|const var3926 = 3926\n3928|const var3927 = 3927\n3929|const var3928 = 3928\n3930|const var3929 = 3929\n3931|const var3930 = 3930\n3932|const var3931 = 3931\n3933|const var3932 = 3932\n3934|const var3933 = 3933\n3935|const var3934 = 3934\n3936|const var3935 = 3935\n3937|const var3936 = 3936\n3938|const var3937 = 3937\n3939|const var3938 = 3938\n3940|const var3939 = 3939\n3941|const var3940 = 3940\n3942|const var3941 = 3941\n3943|const var3942 = 3942\n3944|const var3943 = 3943\n3945|const var3944 = 3944\n3946|const var3945 = 3945\n3947|const var3946 = 3946\n3948|const var3947 = 3947\n3949|const var3948 = 3948\n3950|const var3949 = 3949\n3951|const var3950 = 3950\n3952|const var3951 = 3951\n3953|const var3952 = 3952\n3954|const var3953 = 3953\n3955|const var3954 = 3954\n3956|const var3955 = 3955\n3957|const var3956 = 3956\n3958|const var3957 = 3957\n3959|const var3958 = 3958\n3960|const var3959 = 3959\n3961|const var3960 = 3960\n3962|const var3961 = 3961\n3963|const var3962 = 3962\n3964|const var3963 = 3963\n3965|const var3964 = 3964\n3966|const var3965 = 3965\n3967|const var3966 = 3966\n3968|const var3967 = 3967\n3969|const var3968 = 3968\n3970|const var3969 = 3969\n3971|const var3970 = 3970\n3972|const var3971 = 3971\n3973|const var3972 = 3972\n3974|const var3973 = 3973\n3975|const var3974 = 3974\n3976|const var3975 = 3975\n3977|const var3976 = 3976\n3978|const var3977 = 3977\n3979|const var3978 = 3978\n3980|const var3979 = 3979\n3981|const var3980 = 3980\n3982|const var3981 = 3981\n3983|const var3982 = 3982\n3984|const var3983 = 3983\n3985|const var3984 = 3984\n3986|const var3985 = 3985\n3987|const var3986 = 3986\n3988|const var3987 = 3987\n3989|const var3988 = 3988\n3990|const var3989 = 3989\n3991|const var3990 = 3990\n3992|const var3991 = 3991\n3993|const var3992 = 3992\n3994|const var3993 = 3993\n3995|const var3994 = 3994\n3996|const var3995 = 3995\n3997|const var3996 = 3996\n3998|const var3997 = 3997\n3999|const var3998 = 3998\n4000|const var3999 = 3999\n\n■PATCH_START■","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.patch","promptSource":"zai:zai.patch:default"},"model":"fast","signal":{},"stopSequences":["■PATCH_END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■PATCH_START■
◼<3501|// Added comment at top of file
■PATCH_END


Input: {"body":{"messages":[{"content":"You are a code patching assistant. Your task is to generate precise line-based patches using the Micropatch protocol.\n\n## Micropatch Protocol\n\nThe Micropatch protocol uses line numbers to reference ORIGINAL lines (before any edits). All operations use these ORIGINAL line numbers, which remain valid throughout the patching process.\n\n### Operations\n\nEach operation starts with the marker `◼` at the beginning of a line:\n\n1. **Insert BEFORE line**: `◼<NNN|text`\n   - Inserts `text` as a new line BEFORE original line NNN\n   - Example: `◼<5|console.log('debug')` inserts before line 5\n\n2. **Insert AFTER line**: `◼>NNN|text`\n   - Inserts `text` as a new line AFTER original line NNN\n   - Example: `◼>10|}` inserts after line 10\n\n3. **Replace single line**: `◼=NNN|new text`\n   - Replaces original line NNN with `new text`\n   - Can use multiple lines (continue until next ◼ or end)\n   - Example:\n     ```\n     ◼=7|function newName() {\n       return 42\n     }\n     ```\n\n4. **Replace range**: `◼=NNN-MMM|replacement`\n   - Replaces lines NNN through MMM with replacement text\n   - Example: `◼=5-8|const combined = a + b + c + d` replaces lines 5-8\n\n5. **Delete single line**: `◼-NNN`\n   - Deletes original line NNN\n   - Example: `◼-12` deletes line 12\n\n6. **Delete range**: `◼-NNN-MMM`\n   - Deletes lines NNN through MMM inclusive\n   - Example: `◼-5-10` deletes lines 5 through 10\n\n### Escaping\n\n- To include a literal `◼` in your text, use `\\◼`\n- No other escape sequences are recognized\n\n### Important Rules\n\n1. **Use ORIGINAL line numbers**: Always reference the line numbers shown in the input, not adjusted numbers\n2. **One operation per line**: Each operation must start on a new line with `◼`\n3. **No explanations**: Output ONLY patch operations, no comments or explanations\n4. **Precise operations**: Use the minimal set of operations to achieve the goal\n5. **Verify line numbers**: Double-check that line numbers match the input\n\n\n### Examples\n\n**Example 1: Simple replacement**\nInput file (lines 001-005):\n```\n001|const x = 1\n002|const y = 2\n003|console.log(x + y)\n004|\n005|export { x, y }\n```\n\nTask: Change variable names from x,y to a,b\n\nOutput:\n```\n◼=1|const a = 1\n◼=2|const b = 2\n◼=3|console.log(a + b)\n◼=5|export { a, b }\n```\n\n**Example 2: Adding documentation**\nInput file (lines 001-003):\n```\n001|function add(a, b) {\n002|  return a + b\n003|}\n```\n\nTask: Add JSDoc comment\n\nOutput:\n```\n◼<1|/**\n * Adds two numbers together\n * @param a First number\n * @param b Second number\n * @returns Sum of a and b\n */\n```\n\n**Example 3: Refactoring**\nInput file (lines 001-010):\n```\n001|const user = getUser()\n002|const name = user.name\n003|const email = user.email\n004|const age = user.age\n005|\n006|console.log(name)\n007|console.log(email)\n008|console.log(age)\n009|\n010|return user\n```\n\nTask: Use destructuring\n\nOutput:\n```\n◼=1-4|const { name, email, age } = getUser()\n◼-10\n◼>8|return { name, email, age }\n```\n\n## Your Task\n\nGenerate ONLY the patch operations needed to fulfill the user's instructions. Output patch operations between ■PATCH_START■ and ■PATCH_END■ markers.\n\n**Critical**:\n- Output ONLY patch operations, no explanations\n- Use ORIGINAL line numbers from the input\n- Verify each line number is correct\n- Test your patches mentally to ensure they produce the desired result","role":"system"},{"content":"Instructions: add a comment at the top\n\nFile: large.ts\n4001|const var4000 = 4000\n4002|const var4001 = 4001\n4003|const var4002 = 4002\n4004|const var4003 = 4003\n4005|const var4004 = 4004\n4006|const var4005 = 4005\n4007|const var4006 = 4006\n4008|const var4007 = 4007\n4009|const var4008 = 4008\n4010|const var4009 = 4009\n4011|const var4010 = 4010\n4012|const var4011 = 4011\n4013|const var4012 = 4012\n4014|const var4013 = 4013\n4015|const var4014 = 4014\n4016|const var4015 = 4015\n4017|const var4016 = 4016\n4018|const var4017 = 4017\n4019|const var4018 = 4018\n4020|const var4019 = 4019\n4021|const var4020 = 4020\n4022|const var4021 = 4021\n4023|const var4022 = 4022\n4024|const var4023 = 4023\n4025|const var4024 = 4024\n4026|const var4025 = 4025\n4027|const var4026 = 4026\n4028|const var4027 = 4027\n4029|const var4028 = 4028\n4030|const var4029 = 4029\n4031|const var4030 = 4030\n4032|const var4031 = 4031\n4033|const var4032 = 4032\n4034|const var4033 = 4033\n4035|const var4034 = 4034\n4036|const var4035 = 4035\n4037|const var4036 = 4036\n4038|const var4037 = 4037\n4039|const var4038 = 4038\n4040|const var4039 = 4039\n4041|const var4040 = 4040\n4042|const var4041 = 4041\n4043|const var4042 = 4042\n4044|const var4043 = 4043\n4045|const var4044 = 4044\n4046|const var4045 = 4045\n4047|const var4046 = 4046\n4048|const var4047 = 4047\n4049|const var4048 = 4048\n4050|const var4049 = 4049\n4051|const var4050 = 4050\n4052|const var4051 = 4051\n4053|const var4052 = 4052\n4054|const var4053 = 4053\n4055|const var4054 = 4054\n4056|const var4055 = 4055\n4057|const var4056 = 4056\n4058|const var4057 = 4057\n4059|const var4058 = 4058\n4060|const var4059 = 4059\n4061|const var4060 = 4060\n4062|const var4061 = 4061\n4063|const var4062 = 4062\n4064|const var4063 = 4063\n4065|const var4064 = 4064\n4066|const var4065 = 4065\n4067|const var4066 = 4066\n4068|const var4067 = 4067\n4069|const var4068 = 4068\n4070|const var4069 = 4069\n4071|const var4070 = 4070\n4072|const var4071 = 4071\n4073|const var4072 = 4072\n4074|const var4073 = 4073\n4075|const var4074 = 4074\n4076|const var4075 = 4075\n4077|const var4076 = 4076\n4078|const var4077 = 4077\n4079|const var4078 = 4078\n4080|const var4079 = 4079\n4081|const var4080 = 4080\n4082|const var4081 = 4081\n4083|const var4082 = 4082\n4084|const var4083 = 4083\n4085|const var4084 = 4084\n4086|const var4085 = 4085\n4087|const var4086 = 4086\n4088|const var4087 = 4087\n4089|const var4088 = 4088\n4090|const var4089 = 4089\n4091|const var4090 = 4090\n4092|const var4091 = 4091\n4093|const var4092 = 4092\n4094|const var4093 = 4093\n4095|const var4094 = 4094\n4096|const var4095 = 4095\n4097|const var4096 = 4096\n4098|const var4097 = 4097\n4099|const var4098 = 4098\n4100|const var4099 = 4099\n4101|const var4100 = 4100\n4102|const var4101 = 4101\n4103|const var4102 = 4102\n4104|const var4103 = 4103\n4105|const var4104 = 4104\n4106|const var4105 = 4105\n4107|const var4106 = 4106\n4108|const var4107 = 4107\n4109|const var4108 = 4108\n4110|const var4109 = 4109\n4111|const var4110 = 4110\n4112|const var4111 = 4111\n4113|const var4112 = 4112\n4114|const var4113 = 4113\n4115|const var4114 = 4114\n4116|const var4115 = 4115\n4117|const var4116 = 4116\n4118|const var4117 = 4117\n4119|const var4118 = 4118\n4120|const var4119 = 4119\n4121|const var4120 = 4120\n4122|const var4121 = 4121\n4123|const var4122 = 4122\n4124|const var4123 = 4123\n4125|const var4124 = 4124\n4126|const var4125 = 4125\n4127|const var4126 = 4126\n4128|const var4127 = 4127\n4129|const var4128 = 4128\n4130|const var4129 = 4129\n4131|const var4130 = 4130\n4132|const var4131 = 4131\n4133|const var4132 = 4132\n4134|const var4133 = 4133\n4135|const var4134 = 4134\n4136|const var4135 = 4135\n4137|const var4136 = 4136\n4138|const var4137 = 4137\n4139|const var4138 = 4138\n4140|const var4139 = 4139\n4141|const var4140 = 4140\n4142|const var4141 = 4141\n4143|const var4142 = 4142\n4144|const var4143 = 4143\n4145|const var4144 = 4144\n4146|const var4145 = 4145\n4147|const var4146 = 4146\n4148|const var4147 = 4147\n4149|const var4148 = 4148\n4150|const var4149 = 4149\n4151|const var4150 = 4150\n4152|const var4151 = 4151\n4153|const var4152 = 4152\n4154|const var4153 = 4153\n4155|const var4154 = 4154\n4156|const var4155 = 4155\n4157|const var4156 = 4156\n4158|const var4157 = 4157\n4159|const var4158 = 4158\n4160|const var4159 = 4159\n4161|const var4160 = 4160\n4162|const var4161 = 4161\n4163|const var4162 = 4162\n4164|const var4163 = 4163\n4165|const var4164 = 4164\n4166|const var4165 = 4165\n4167|const var4166 = 4166\n4168|const var4167 = 4167\n4169|const var4168 = 4168\n4170|const var4169 = 4169\n4171|const var4170 = 4170\n4172|const var4171 = 4171\n4173|const var4172 = 4172\n4174|const var4173 = 4173\n4175|const var4174 = 4174\n4176|const var4175 = 4175\n4177|const var4176 = 4176\n4178|const var4177 = 4177\n4179|const var4178 = 4178\n4180|const var4179 = 4179\n4181|const var4180 = 4180\n4182|const var4181 = 4181\n4183|const var4182 = 4182\n4184|const var4183 = 4183\n4185|const var4184 = 4184\n4186|const var4185 = 4185\n4187|const var4186 = 4186\n4188|const var4187 = 4187\n4189|const var4188 = 4188\n4190|const var4189 = 4189\n4191|const var4190 = 4190\n4192|const var4191 = 4191\n4193|const var4192 = 4192\n4194|const var4193 = 4193\n4195|const var4194 = 4194\n4196|const var4195 = 4195\n4197|const var4196 = 4196\n4198|const var4197 = 4197\n4199|const var4198 = 4198\n4200|const var4199 = 4199\n4201|const var4200 = 4200\n4202|const var4201 = 4201\n4203|const var4202 = 4202\n4204|const var4203 = 4203\n4205|const var4204 = 4204\n4206|const var4205 = 4205\n4207|const var4206 = 4206\n4208|const var4207 = 4207\n4209|const var4208 = 4208\n4210|const var4209 = 4209\n4211|const var4210 = 4210\n4212|const var4211 = 4211\n4213|const var4212 = 4212\n4214|const var4213 = 4213\n4215|const var4214 = 4214\n4216|const var4215 = 4215\n4217|const var4216 = 4216\n4218|const var4217 = 4217\n4219|const var4218 = 4218\n4220|const var4219 = 4219\n4221|const var4220 = 4220\n4222|const var4221 = 4221\n4223|const var4222 = 4222\n4224|const var4223 = 4223\n4225|const var4224 = 4224\n4226|const var4225 = 4225\n4227|const var4226 = 4226\n4228|const var4227 = 4227\n4229|const var4228 = 4228\n4230|const var4229 = 4229\n4231|const var4230 = 4230\n4232|const var4231 = 4231\n4233|const var4232 = 4232\n4234|const var4233 = 4233\n4235|const var4234 = 4234\n4236|const var4235 = 4235\n4237|const var4236 = 4236\n4238|const var4237 = 4237\n4239|const var4238 = 4238\n4240|const var4239 = 4239\n4241|const var4240 = 4240\n4242|const var4241 = 4241\n4243|const var4242 = 4242\n4244|const var4243 = 4243\n4245|const var4244 = 4244\n4246|const var4245 = 4245\n4247|const var4246 = 4246\n4248|const var4247 = 4247\n4249|const var4248 = 4248\n4250|const var4249 = 4249\n4251|const var4250 = 4250\n4252|const var4251 = 4251\n4253|const var4252 = 4252\n4254|const var4253 = 4253\n4255|const var4254 = 4254\n4256|const var4255 = 4255\n4257|const var4256 = 4256\n4258|const var4257 = 4257\n4259|const var4258 = 4258\n4260|const var4259 = 4259\n4261|const var4260 = 4260\n4262|const var4261 = 4261\n4263|const var4262 = 4262\n4264|const var4263 = 4263\n4265|const var4264 = 4264\n4266|const var4265 = 4265\n4267|const var4266 = 4266\n4268|const var4267 = 4267\n4269|const var4268 = 4268\n4270|const var4269 = 4269\n4271|const var4270 = 4270\n4272|const var4271 = 4271\n4273|const var4272 = 4272\n4274|const var4273 = 4273\n4275|const var4274 = 4274\n4276|const var4275 = 4275\n4277|const var4276 = 4276\n4278|const var4277 = 4277\n4279|const var4278 = 4278\n4280|const var4279 = 4279\n4281|const var4280 = 4280\n4282|const var4281 = 4281\n4283|const var4282 = 4282\n4284|const var4283 = 4283\n4285|const var4284 = 4284\n4286|const var4285 = 4285\n4287|const var4286 = 4286\n4288|const var4287 = 4287\n4289|const var4288 = 4288\n4290|const var4289 = 4289\n4291|const var4290 = 4290\n4292|const var4291 = 4291\n4293|const var4292 = 4292\n4294|const var4293 = 4293\n4295|const var4294 = 4294\n4296|const var4295 = 4295\n4297|const var4296 = 4296\n4298|const var4297 = 4297\n4299|const var4298 = 4298\n4300|const var4299 = 4299\n4301|const var4300 = 4300\n4302|const var4301 = 4301\n4303|const var4302 = 4302\n4304|const var4303 = 4303\n4305|const var4304 = 4304\n4306|const var4305 = 4305\n4307|const var4306 = 4306\n4308|const var4307 = 4307\n4309|const var4308 = 4308\n4310|const var4309 = 4309\n4311|const var4310 = 4310\n4312|const var4311 = 4311\n4313|const var4312 = 4312\n4314|const var4313 = 4313\n4315|const var4314 = 4314\n4316|const var4315 = 4315\n4317|const var4316 = 4316\n4318|const var4317 = 4317\n4319|const var4318 = 4318\n4320|const var4319 = 4319\n4321|const var4320 = 4320\n4322|const var4321 = 4321\n4323|const var4322 = 4322\n4324|const var4323 = 4323\n4325|const var4324 = 4324\n4326|const var4325 = 4325\n4327|const var4326 = 4326\n4328|const var4327 = 4327\n4329|const var4328 = 4328\n4330|const var4329 = 4329\n4331|const var4330 = 4330\n4332|const var4331 = 4331\n4333|const var4332 = 4332\n4334|const var4333 = 4333\n4335|const var4334 = 4334\n4336|const var4335 = 4335\n4337|const var4336 = 4336\n4338|const var4337 = 4337\n4339|const var4338 = 4338\n4340|const var4339 = 4339\n4341|const var4340 = 4340\n4342|const var4341 = 4341\n4343|const var4342 = 4342\n4344|const var4343 = 4343\n4345|const var4344 = 4344\n4346|const var4345 = 4345\n4347|const var4346 = 4346\n4348|const var4347 = 4347\n4349|const var4348 = 4348\n4350|const var4349 = 4349\n4351|const var4350 = 4350\n4352|const var4351 = 4351\n4353|const var4352 = 4352\n4354|const var4353 = 4353\n4355|const var4354 = 4354\n4356|const var4355 = 4355\n4357|const var4356 = 4356\n4358|const var4357 = 4357\n4359|const var4358 = 4358\n4360|const var4359 = 4359\n4361|const var4360 = 4360\n4362|const var4361 = 4361\n4363|const var4362 = 4362\n4364|const var4363 = 4363\n4365|const var4364 = 4364\n4366|const var4365 = 4365\n4367|const var4366 = 4366\n4368|const var4367 = 4367\n4369|const var4368 = 4368\n4370|const var4369 = 4369\n4371|const var4370 = 4370\n4372|const var4371 = 4371\n4373|const var4372 = 4372\n4374|const var4373 = 4373\n4375|const var4374 = 4374\n4376|const var4375 = 4375\n4377|const var4376 = 4376\n4378|const var4377 = 4377\n4379|const var4378 = 4378\n4380|const var4379 = 4379\n4381|const var4380 = 4380\n4382|const var4381 = 4381\n4383|const var4382 = 4382\n4384|const var4383 = 4383\n4385|const var4384 = 4384\n4386|const var4385 = 4385\n4387|const var4386 = 4386\n4388|const var4387 = 4387\n4389|const var4388 = 4388\n4390|const var4389 = 4389\n4391|const var4390 = 4390\n4392|const var4391 = 4391\n4393|const var4392 = 4392\n4394|const var4393 = 4393\n4395|const var4394 = 4394\n4396|const var4395 = 4395\n4397|const var4396 = 4396\n4398|const var4397 = 4397\n4399|const var4398 = 4398\n4400|const var4399 = 4399\n4401|const var4400 = 4400\n4402|const var4401 = 4401\n4403|const var4402 = 4402\n4404|const var4403 = 4403\n4405|const var4404 = 4404\n4406|const var4405 = 4405\n4407|const var4406 = 4406\n4408|const var4407 = 4407\n4409|const var4408 = 4408\n4410|const var4409 = 4409\n4411|const var4410 = 4410\n4412|const var4411 = 4411\n4413|const var4412 = 4412\n4414|const var4413 = 4413\n4415|const var4414 = 4414\n4416|const var4415 = 4415\n4417|const var4416 = 4416\n4418|const var4417 = 4417\n4419|const var4418 = 4418\n4420|const var4419 = 4419\n4421|const var4420 = 4420\n4422|const var4421 = 4421\n4423|const var4422 = 4422\n4424|const var4423 = 4423\n4425|const var4424 = 4424\n4426|const var4425 = 4425\n4427|const var4426 = 4426\n4428|const var4427 = 4427\n4429|const var4428 = 4428\n4430|const var4429 = 4429\n4431|const var4430 = 4430\n4432|const var4431 = 4431\n4433|const var4432 = 4432\n4434|const var4433 = 4433\n4435|const var4434 = 4434\n4436|const var4435 = 4435\n4437|const var4436 = 4436\n4438|const var4437 = 4437\n4439|const var4438 = 4438\n4440|const var4439 = 4439\n4441|const var4440 = 4440\n4442|const var4441 = 4441\n4443|const var4442 = 4442\n4444|const var4443 = 4443\n4445|const var4444 = 4444\n4446|const var4445 = 4445\n4447|const var4446 = 4446\n4448|const var4447 = 4447\n4449|const var4448 = 4448\n4450|const var4449 = 4449\n4451|const var4450 = 4450\n4452|const var4451 = 4451\n4453|const var4452 = 4452\n4454|const var4453 = 4453\n4455|const var4454 = 4454\n4456|const var4455 = 4455\n4457|const var4456 = 4456\n4458|const var4457 = 4457\n4459|const var4458 = 4458\n4460|const var4459 = 4459\n4461|const var4460 = 4460\n4462|const var4461 = 4461\n4463|const var4462 = 4462\n4464|const var4463 = 4463\n4465|const var4464 = 4464\n4466|const var4465 = 4465\n4467|const var4466 = 4466\n4468|const var4467 = 4467\n4469|const var4468 = 4468\n4470|const var4469 = 4469\n4471|const var4470 = 4470\n4472|const var4471 = 4471\n4473|const var4472 = 4472\n4474|const var4473 = 4473\n4475|const var4474 = 4474\n4476|const var4475 = 4475\n4477|const var4476 = 4476\n4478|const var4477 = 4477\n4479|const var4478 = 4478\n4480|const var4479 = 4479\n4481|const var4480 = 4480\n4482|const var4481 = 4481\n4483|const var4482 = 4482\n4484|const var4483 = 4483\n4485|const var4484 = 4484\n4486|const var4485 = 4485\n4487|const var4486 = 4486\n4488|const var4487 = 4487\n4489|const var4488 = 4488\n4490|const var4489 = 4489\n4491|const var4490 = 4490\n4492|const var4491 = 4491\n4493|const var4492 = 4492\n4494|const var4493 = 4493\n4495|const var4494 = 4494\n4496|const var4495 = 4495\n4497|const var4496 = 4496\n4498|const var4497 = 4497\n4499|const var4498 = 4498\n4500|const var4499 = 4499\n\n■PATCH_START■","role":"user","type":"text"}],"meta":{"integrationName":"zai","promptCategory":"zai:zai.patch","promptSource":"zai:zai.patch:default"},"model":"fast","signal":{},"stopSequences":["■PATCH_END■"]},"method":"POST","url":"https://api.botpress.cloud/v2/cognitive/generate-text"}

Output:
■PATCH_START■
◼<4001|// This file defines a series of constant variables
■PATCH_END