Skip to content

AI Unit Tests & Type Check #102

AI Unit Tests & Type Check

AI Unit Tests & Type Check #102

Triggered via schedule April 20, 2026 01:03
Status Failure
Total duration 1m 8s
Artifacts

ai-tests.yml

on: schedule
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
src/sql/rls.test.ts > rls chat > delete policy has USING but not WITH CHECK: packages/ai-commands/src/sql/rls.ts#L315
Error: 401 You didn't provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys. ❯ Function.generate ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/error.ts:74:14 ❯ OpenAI.makeStatusError ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/core.ts:435:21 ❯ OpenAI.makeRequest ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/core.ts:499:24 ❯ Module.chatRlsPolicy src/sql/rls.ts:315:22 ❯ src/sql/rls.test.ts:242:28 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { status: 401, headers: { 'alt-svc': 'h3=":443"; ma=86400', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '9ef03c2079325187-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 20 Apr 2026 01:04:25 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=U6UHK0h0y.yf55j77GvgXrcknhhUiQGiEHx.E3QetZs-1776647065.676575-1.0.1.1-dwTvvzRefkk0jaTtG2eEwWeq96fN0jq1o62s6csgFCHLmf1K2nsvp38fQ3FV1yeP_r2q0cJXkYt_J8pUYRBxhcKY2a33cWsaekIw5fGd9QKNEVAXaHpnaYErLsAlpqay; HttpOnly; Secure; Path=/; Domain=api.openai.com; Expires=Mon, 20 Apr 2026 01:34:25 GMT, _cfuvid=mR1PkshVQpvkttcRd2D.4ICGYlKGNWSm8dj_Vu6Olyk-1776647065.676575-1.0.1.1-3mesH_3e9i05SzSQoZyht6M9eWl3gLkVlPiyC35OhBw; HttpOnly; SameSite=None; Secure; Path=/; Domain=api.openai.com', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', vary: 'Origin', 'x-content-type-options': 'nosniff', 'x-openai-proxy-wasm': 'v0.1', 'x-request-id': 'req_a5088c724d1241959cded947cb801a71' }, request_id: 'req_a5088c724d1241959cded947cb801a71', error: { message: 'You didn\'t provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you\'re accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys.', type: 'invalid_request_error', param: null, code: null }, code: null, param: null }
src/sql/rls.test.ts > rls chat > update policy has USING and WITH CHECK: packages/ai-commands/src/sql/rls.ts#L315
Error: 401 You didn't provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys. ❯ Function.generate ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/error.ts:74:14 ❯ OpenAI.makeStatusError ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/core.ts:435:21 ❯ OpenAI.makeRequest ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/core.ts:499:24 ❯ Module.chatRlsPolicy src/sql/rls.ts:315:22 ❯ src/sql/rls.test.ts:219:28 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { status: 401, headers: { 'alt-svc': 'h3=":443"; ma=86400', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '9ef03c207ffd1ff4-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 20 Apr 2026 01:04:25 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=BvGxnQREHfUZH_MWgeMKS6pQpYi5akUFyH_InIGPjy8-1776647065.674468-1.0.1.1-YZcCNkzCVoXBiHCFjeoo4NaPyoiJSZDda0ZcHx3Nx4XnL2iGaTRVdGsyAmfMjyb_Nia09EwhgBl3annFIMv5mgIxZnhCdjT7sXfEzqDkEPrvzxo.OO3miFP9.fYssDbj; HttpOnly; Secure; Path=/; Domain=api.openai.com; Expires=Mon, 20 Apr 2026 01:34:25 GMT, _cfuvid=O1WE96VYtXMZteBHgyEJAt92qA7LW1ViBJtL_gwwfNc-1776647065.674468-1.0.1.1-4.QAwZrpyRWIPHp.qKF4ljMTqlVTsKcYOyG2GePE1ro; HttpOnly; SameSite=None; Secure; Path=/; Domain=api.openai.com', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', vary: 'Origin', 'x-content-type-options': 'nosniff', 'x-openai-proxy-wasm': 'v0.1', 'x-request-id': 'req_87dbf550757140d29c745221369f8707' }, request_id: 'req_87dbf550757140d29c745221369f8707', error: { message: 'You didn\'t provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you\'re accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys.', type: 'invalid_request_error', param: null, code: null }, code: null, param: null }
src/sql/rls.test.ts > rls chat > insert policy has WITH CHECK but not USING: packages/ai-commands/src/sql/rls.ts#L315
Error: 401 You didn't provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys. ❯ Function.generate ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/error.ts:74:14 ❯ OpenAI.makeStatusError ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/core.ts:435:21 ❯ OpenAI.makeRequest ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/core.ts:499:24 ❯ Module.chatRlsPolicy src/sql/rls.ts:315:22 ❯ src/sql/rls.test.ts:196:28 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { status: 401, headers: { 'alt-svc': 'h3=":443"; ma=86400', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '9ef03c1fec0d9c8b-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 20 Apr 2026 01:04:25 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=NELQpNdZ4dA3UOwEEsj70gLWsmcvF04MJ2LBhFKsyyM-1776647065.5908084-1.0.1.1-4.mY0IKeop2PXTLLJ0ErsJTp5XSaQspoQCV_xrpNDep8mSBSMB_nr5ntBPzD2iD7_muLelha1NVRLkWAxcO6cUi.O0ppXS.rX1rhHvUyG5WkpP.lvGG3h6p1Q.8XERPF; HttpOnly; Secure; Path=/; Domain=api.openai.com; Expires=Mon, 20 Apr 2026 01:34:25 GMT, _cfuvid=0O1OHsStKMQwkw6Q9SzZyv2ZEGir720_1PgjxIrbCRw-1776647065.5908084-1.0.1.1-iqjtLL2O3MfZY2NHnbwqpu9TOWPHiMKq4DnPRksrIK8; HttpOnly; SameSite=None; Secure; Path=/; Domain=api.openai.com', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', vary: 'Origin', 'x-content-type-options': 'nosniff', 'x-openai-proxy-wasm': 'v0.1', 'x-request-id': 'req_78b037823c8d49d492aafe40899bcbb8' }, request_id: 'req_78b037823c8d49d492aafe40899bcbb8', error: { message: 'You didn\'t provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you\'re accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys.', type: 'invalid_request_error', param: null, code: null }, code: null, param: null }
src/sql/rls.test.ts > rls chat > select policy has USING but not WITH CHECK: packages/ai-commands/src/sql/rls.ts#L315
Error: 401 You didn't provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys. ❯ Function.generate ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/error.ts:74:14 ❯ OpenAI.makeStatusError ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/core.ts:435:21 ❯ OpenAI.makeRequest ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/core.ts:499:24 ❯ Module.chatRlsPolicy src/sql/rls.ts:315:22 ❯ src/sql/rls.test.ts:173:28 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { status: 401, headers: { 'alt-svc': 'h3=":443"; ma=86400', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '9ef03c1fde6f5187-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 20 Apr 2026 01:04:25 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=Gd2CGjkVDbl1gxMLxq_FcSGKoImc1khfB6PIj4t1PdM-1776647065.5772061-1.0.1.1-eHKuriCh3eLK5tE5A3qXK4y7_YWSuCo4HUNEKroK_7iDra08ZFnDJRPwWyAeuOu1fa4M40JiZ91K4PkhNeKyIxSJ.UTXxgSHQnrK451VS9J3UgmJZYxfQnJ8wXaCzdVU; HttpOnly; Secure; Path=/; Domain=api.openai.com; Expires=Mon, 20 Apr 2026 01:34:25 GMT, _cfuvid=bXFa4wBGFk9eH8m34qbqZlLtG9P8M2_HesiWCwn84oQ-1776647065.5772061-1.0.1.1-Lo_Prm6bdhqKYWxWyD2iCfwJpbTOmUT3A4_9wYc9fk8; HttpOnly; SameSite=None; Secure; Path=/; Domain=api.openai.com', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', vary: 'Origin', 'x-content-type-options': 'nosniff', 'x-openai-proxy-wasm': 'v0.1', 'x-request-id': 'req_4e6dd5b61a3643199466987f557050e1' }, request_id: 'req_4e6dd5b61a3643199466987f557050e1', error: { message: 'You didn\'t provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you\'re accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys.', type: 'invalid_request_error', param: null, code: null }, code: null, param: null }
src/sql/rls.test.ts > rls chat > wraps every function in select: packages/ai-commands/src/sql/rls.ts#L315
Error: 401 You didn't provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys. ❯ Function.generate ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/error.ts:74:14 ❯ OpenAI.makeStatusError ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/core.ts:435:21 ❯ OpenAI.makeRequest ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/core.ts:499:24 ❯ Module.chatRlsPolicy src/sql/rls.ts:315:22 ❯ src/sql/rls.test.ts:115:28 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { status: 401, headers: { 'alt-svc': 'h3=":443"; ma=86400', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '9ef03c1fdf541ff4-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 20 Apr 2026 01:04:25 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=jTT3Co0cqB0tVzcELgacgAKhDnSb2F926uRPkpnWVgo-1776647065.5801573-1.0.1.1-4OSTqQ03nFi1WW.yyu7HgSxLROPjPRtO9oGiAvTKA2eA4eVQmtCu9SPYUR8oVvdfuOAB51I3eyL7MgkFQfBQSr0UO6IIFE5CjFOpo8aSbk7wjmpzTpEJBMiNonLl5Q4f; HttpOnly; Secure; Path=/; Domain=api.openai.com; Expires=Mon, 20 Apr 2026 01:34:25 GMT, _cfuvid=PTug_ENJlT5V8tIdzxzIs6wKeOWwpSS36eCKIqz0AOA-1776647065.5801573-1.0.1.1-0ryjLLXbcvTnG.LHRKsjTWK4fQHKCyw_dfk19vh6YYc; HttpOnly; SameSite=None; Secure; Path=/; Domain=api.openai.com', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', vary: 'Origin', 'x-content-type-options': 'nosniff', 'x-openai-proxy-wasm': 'v0.1', 'x-request-id': 'req_d13ffb04285941129e35b03f9e5a4b62' }, request_id: 'req_d13ffb04285941129e35b03f9e5a4b62', error: { message: 'You didn\'t provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you\'re accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys.', type: 'invalid_request_error', param: null, code: null }, code: null, param: null }
src/sql/rls.test.ts > rls chat > uses anon + authenticated roles when table viewable by anyone: packages/ai-commands/src/sql/rls.ts#L315
Error: 401 You didn't provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys. ❯ Function.generate ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/error.ts:74:14 ❯ OpenAI.makeStatusError ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/core.ts:435:21 ❯ OpenAI.makeRequest ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/core.ts:499:24 ❯ Module.chatRlsPolicy src/sql/rls.ts:315:22 ❯ src/sql/rls.test.ts:94:28 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { status: 401, headers: { 'alt-svc': 'h3=":443"; ma=86400', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '9ef03c1fd8cde2ca-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 20 Apr 2026 01:04:25 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=avB35db6OpCU1MFkTIRpm1nEBSF7ZHBl2JQ3QTZSklk-1776647065.574219-1.0.1.1-ylGNCMsgsZn3kgxWMwKIpxuyccn2GRuoIWfzWs.cdP5IN_2yHXLx04i6NQ0WMapFv6ydK28j.He7IJVwwlLd0unqG3aVNiEBUafG.z3PpBN3a2r1d8_A3896Gpt6uTvL; HttpOnly; Secure; Path=/; Domain=api.openai.com; Expires=Mon, 20 Apr 2026 01:34:25 GMT, _cfuvid=maLuWPhn1VSLMN3OK_1YTWZhApZcPEbhHofaDoav2HE-1776647065.574219-1.0.1.1-BXG0sFZtvfxokmO_prwcGRRnmOM_l4Q01W8GJDqJZSI; HttpOnly; SameSite=None; Secure; Path=/; Domain=api.openai.com', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', vary: 'Origin', 'x-content-type-options': 'nosniff', 'x-openai-proxy-wasm': 'v0.1', 'x-request-id': 'req_ae0cec1b898940eb8dc707a59d58078e' }, request_id: 'req_ae0cec1b898940eb8dc707a59d58078e', error: { message: 'You didn\'t provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you\'re accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys.', type: 'invalid_request_error', param: null, code: null }, code: null, param: null }
src/sql/rls.test.ts > rls chat > defaults to authenticated role: packages/ai-commands/src/sql/rls.ts#L315
Error: 401 You didn't provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys. ❯ Function.generate ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/error.ts:74:14 ❯ OpenAI.makeStatusError ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/core.ts:435:21 ❯ OpenAI.makeRequest ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/core.ts:499:24 ❯ Module.chatRlsPolicy src/sql/rls.ts:315:22 ❯ src/sql/rls.test.ts:73:28 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { status: 401, headers: { 'alt-svc': 'h3=":443"; ma=86400', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '9ef03c1feb52990a-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 20 Apr 2026 01:04:25 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=VIHQ61LIJ6xrnBJyT0bn7DTakVC41KjUEfTHDyc1DBY-1776647065.5824928-1.0.1.1-MyI2OT568rUmRJsXGvrmp3mSZOKdoDchc4ChKuCHmkLSEUEOeoxUggfYhDpeS7kQzW19Oo.tnmUCqRCkgfg_Ffw4XAU5DGG7HlVRHUWqOaU_3PYQV4y.9VruManyBRZS; HttpOnly; Secure; Path=/; Domain=api.openai.com; Expires=Mon, 20 Apr 2026 01:34:25 GMT, _cfuvid=N1ym0apZEi6Za6dJiQuFI56NqI8sPBUaH2MYHiO34zU-1776647065.5824928-1.0.1.1-kwDoLy3kK1ePg00a36LFmYoY930DvlesPo1L5XtQOiU; HttpOnly; SameSite=None; Secure; Path=/; Domain=api.openai.com', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', vary: 'Origin', 'x-content-type-options': 'nosniff', 'x-openai-proxy-wasm': 'v0.1', 'x-request-id': 'req_3c0250a7010b47ddb2f4771c0471f5bb' }, request_id: 'req_3c0250a7010b47ddb2f4771c0471f5bb', error: { message: 'You didn\'t provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you\'re accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys.', type: 'invalid_request_error', param: null, code: null }, code: null, param: null }
src/sql/functions.test.ts > title > title matches content: packages/ai-commands/src/sql/functions.ts#L166
Error: 401 You didn't provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys. ❯ Function.generate ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/error.ts:74:14 ❯ OpenAI.makeStatusError ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/core.ts:435:21 ❯ OpenAI.makeRequest ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/core.ts:499:24 ❯ Module.titleSql src/sql/functions.ts:166:32 ❯ src/sql/functions.test.ts:50:36 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { status: 401, headers: { 'alt-svc': 'h3=":443"; ma=86400', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '9ef03c20eec2e60f-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 20 Apr 2026 01:04:25 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=Q8jZKOwBQRZQMTqSvIZG9zXprAbh3fWs7fcOsq99OPI-1776647065.7493584-1.0.1.1-EVd8OJvoCqsTV2r2QmuLPFdYRbftDvOAX0Qf_OdLnvliB3VJUEWYyKO2rULfdb8uQyAc8jo0ftmiFxBEKfkBON58CMkE28Ov4KSFpss_ZNefE9ayP4.NH.1ci_xAntF2; HttpOnly; Secure; Path=/; Domain=api.openai.com; Expires=Mon, 20 Apr 2026 01:34:25 GMT, _cfuvid=hOihDkRLXFAvrjnVXIUs36OODg262g3dZMW9P0sAJP4-1776647065.7493584-1.0.1.1-_K2FbZ4hgKOUhbIFFj13XQwZr0NUIwOCYSTUyVN8ZSk; HttpOnly; SameSite=None; Secure; Path=/; Domain=api.openai.com', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', vary: 'Origin', 'x-content-type-options': 'nosniff', 'x-openai-proxy-wasm': 'v0.1', 'x-request-id': 'req_4765686d7c6643d8bc159df8c54fa05a' }, request_id: 'req_4765686d7c6643d8bc159df8c54fa05a', error: { message: 'You didn\'t provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you\'re accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys.', type: 'invalid_request_error', param: null, code: null }, code: null, param: null }
src/sql/functions.test.ts > debug > fix typos: packages/ai-commands/src/sql/functions.ts#L106
Error: 401 You didn't provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys. ❯ Function.generate ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/error.ts:74:14 ❯ OpenAI.makeStatusError ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/core.ts:435:21 ❯ OpenAI.makeRequest ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/core.ts:499:24 ❯ Module.debugSql src/sql/functions.ts:106:32 ❯ src/sql/functions.test.ts:35:31 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { status: 401, headers: { 'alt-svc': 'h3=":443"; ma=86400', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '9ef03c1ff813d6a4-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 20 Apr 2026 01:04:25 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=sWJdy6qBR91vur7FlWQ7DHm99HsA8QqaZQfxxYtJGJE-1776647065-1.0.1.1-..yTRumlSckvdP7F27X0mQ0wVL6HRt7mYXqigMDYmIZcqbeMYuEsaS5CwdhxJWIoeeu6_N8.Lvsu.X6q8Ci5TRiPKdWYCbj_OJVy7ouXciM; path=/; expires=Mon, 20-Apr-26 01:34:25 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=2pf2UET3xnXpdghE0Fv_MfjwhUO3yONK52Lr4rc3NRg-1776647065697-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', vary: 'Origin, Accept-Encoding', 'x-content-type-options': 'nosniff', 'x-openai-proxy-wasm': 'v0.1', 'x-request-id': 'req_0f77855ea2d34a22a1b88fffe073c98b' }, request_id: 'req_0f77855ea2d34a22a1b88fffe073c98b', error: { message: 'You didn\'t provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you\'re accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys.', type: 'invalid_request_error', param: null, code: null }, code: null, param: null }
src/sql/functions.test.ts > debug > fix order of operations: packages/ai-commands/src/sql/functions.ts#L106
Error: 401 You didn't provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys. ❯ Function.generate ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/error.ts:74:14 ❯ OpenAI.makeStatusError ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/core.ts:435:21 ❯ OpenAI.makeRequest ../../node_modules/.pnpm/openai@4.71.1_encoding@0.1.13_zod@3.23.8/node_modules/openai/src/core.ts:499:24 ❯ Module.debugSql src/sql/functions.ts:106:32 ❯ src/sql/functions.test.ts:13:21 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { status: 401, headers: { 'alt-svc': 'h3=":443"; ma=86400', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '9ef03c1fea8fe60f-IAD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 20 Apr 2026 01:04:25 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=cE5JCsyAoYdik9s6LADhYhlLw3gIDN9Z_Sjb1WoANuA-1776647065.5887163-1.0.1.1-u3SmeTvOYZv243E6AXcKBx6CggAgX6mESWRD9XPqphtly8ccwx48eL8Dj_tYjzV0tvz8RBW6GpL1O6hvJScLrTwQVgiA7m3CxcWpAL6x5HPwyzKrnCZFri1.vHkZsTsM; HttpOnly; Secure; Path=/; Domain=api.openai.com; Expires=Mon, 20 Apr 2026 01:34:25 GMT, _cfuvid=nzZohl_chPyilVUczHmLtxScpSI8Xn35xCQFRiILYd8-1776647065.5887163-1.0.1.1-BwvvIGDbFKpuidgXd9dDXAvAFrJIxuoA61HO2.f9YDg; HttpOnly; SameSite=None; Secure; Path=/; Domain=api.openai.com', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', vary: 'Origin', 'x-content-type-options': 'nosniff', 'x-openai-proxy-wasm': 'v0.1', 'x-request-id': 'req_85fff21bce024aee9c718c59c2277813' }, request_id: 'req_85fff21bce024aee9c718c59c2277813', error: { message: 'You didn\'t provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you\'re accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys.', type: 'invalid_request_error', param: null, code: null }, code: null, param: null }
test
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-node@v4, pnpm/action-setup@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
test
Failed to restore: