Skip to content

AI Unit Tests & Type Check #91

AI Unit Tests & Type Check

AI Unit Tests & Type Check #91

Triggered via schedule February 2, 2026 00:51
Status Failure
Total duration 29s
Artifacts

ai-tests.yml

on: schedule
Fit to window
Zoom out
Zoom in

Annotations

10 errors
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': '9c75b368ab578f4f-ORD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 02 Feb 2026 00:51:33 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=9OwrqqtnYiRJPsPZkrXVgyh2xIlOfuChrupEZiwSMn4-1769993493-1.0.1.1-kPx5Wf58Ikhfxdhs5nIpzOyq42YJDZ.NPUFDNpExnops1AUrGbGnVN_rQeV3jpoDXDszX98bLO3PQXek3gLJ.zmdbQgWH8bUfyszwYwoLqw; path=/; expires=Mon, 02-Feb-26 01:21:33 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=MtkUF7uwOfNSmdQi2Ls_PI.HYO7klsY40CeAy3Ejffc-1769993493946-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None', '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_c814ad40049d448190d65c38cb09892f' }, request_id: 'req_c814ad40049d448190d65c38cb09892f', 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': '9c75b368ac08ca09-ORD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 02 Feb 2026 00:51:33 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=I14XeX_ZVMW5iqUQ2bSX9y3wGzQKMLljzxxWTXiL664-1769993493-1.0.1.1-b5ipijRTuybqqet9rsVUzYXNbOoBYtATQ4AP1KHJVShBvEHvz4mQ8eXzu9H_Hom9O0uLwYFoPVpP60ALYifO5s0yI52hIlRU1UquO6LSHXA; path=/; expires=Mon, 02-Feb-26 01:21:33 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=O.NGCo.AWRMbm0Ds2UdeUtpqnPiUabw.YZ0h9uCUwK4-1769993493932-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None', '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_6874c84ed8f745df96edb4f0dea5b230' }, request_id: 'req_6874c84ed8f745df96edb4f0dea5b230', 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': '9c75b3683f003445-ORD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 02 Feb 2026 00:51:33 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=690UZXIQZWR.cxvGVldInQkJURQ2bs2NfgMh1B0EwJM-1769993493-1.0.1.1-XzNsV_wZBi_.pQiAe_ftpXmQ6f70karFhTL0WTG9So8wQoEkSBIdFGsOuQPYbGNwHJpfmG5jSzB7J85izF1_tMLfBfndbPPv2aHy6_hPqnc; path=/; expires=Mon, 02-Feb-26 01:21:33 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=M9i3My_D28XG5KhK2.7BvnulmYV9.o6ee9LWhFwZ2.U-1769993493878-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None', '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_6ff03a4fbe134f7596bc2f9b31d263b0' }, request_id: 'req_6ff03a4fbe134f7596bc2f9b31d263b0', 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': '9c75b3683aaaca09-ORD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 02 Feb 2026 00:51:33 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=Yt6AIYLXT.m9K4o3ixrno3GzfRAp3IbUdfHkxw1cmhc-1769993493-1.0.1.1-XJljhXjM_Hrfm7626YJ.UQ6Lsl0i828xtev1In.mgyVpCahR4et0V36KtSEAbYuRc3og.i6ZCwYpT3TqRMzNiMvgHdAK2pZJ5cKSD4OorPg; path=/; expires=Mon, 02-Feb-26 01:21:33 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=fBVKYSDQneUldILS9tSy3ZHs3gZoJhtc77ueiyGARFI-1769993493846-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None', '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_2aacf0b17b81467b88e777415abd254e' }, request_id: 'req_2aacf0b17b81467b88e777415abd254e', 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': '9c75b3683a55eae3-ORD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 02 Feb 2026 00:51:33 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=QZlgsjm3FPDlHaMy6hxLefZ3gLwsTTcjfw280arlY8c-1769993493-1.0.1.1-ZdjQamyZh05.9kZ4XAkYpWm.KaqFREq9L6lL2P0ZUVeN8On.qX_1Wq3RzRMLGQV4rvqgd_OHkIt6hpbhmDWYOS.RID7037ZlO4NxbISKqbU; path=/; expires=Mon, 02-Feb-26 01:21:33 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=R3Zt5LvxZjNMlzEIZrHbI8TWY3Dec62hmQeDoh9et5s-1769993493850-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None', '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_3a2136b1d46044eab30d879ae74273f9' }, request_id: 'req_3a2136b1d46044eab30d879ae74273f9', 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': '9c75b3683b118f4f-ORD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 02 Feb 2026 00:51:33 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=Az4pEMZDGgnqVQeWPO3z0MF.urJ3mFTWhqohB._68wQ-1769993493-1.0.1.1-KuJct_jkPNYcRN1Me8CsV1sVOw.XI9Pyt_ePBCPMhnnKN63pBMx2.afbtWMEEYorEnNfPd4CHLmVjpoOcxSkqEd3WXWUh5QWaWsU0I5e72I; path=/; expires=Mon, 02-Feb-26 01:21:33 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=XrArIW6KV3YWL.HfM5BYksiyDVJ7uZNvnPOR6w.2804-1769993493847-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None', '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_4a4810869a5747119e02815b4523edfd' }, request_id: 'req_4a4810869a5747119e02815b4523edfd', 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': '9c75b3684b8a7b1b-ORD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 02 Feb 2026 00:51:33 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=fF9q_eOaCg2v9UWtdQG6faoUoSx3WjGDJrA8oBojc2s-1769993493-1.0.1.1-AQ60VG.8ySJc2efmiMrV0FzkMvWpKxESMDNXKwtCOD6mXtbQrKgGQjOWCPJNzG9WzI14fbwaemOOlCfQ7Nr7N5fKzi63m7T.vEyHh6lyjg0; path=/; expires=Mon, 02-Feb-26 01:21:33 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=K3MvNJIhCo0U_1OS52uImg1foAa2saPTogq3NJhVGAc-1769993493884-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None', '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_d7af86218d2e462ba08cbd823b99618d' }, request_id: 'req_d7af86218d2e462ba08cbd823b99618d', 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': '9c75b368a8745624-ORD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 02 Feb 2026 00:51:33 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=Y1bs4WcG41NmNC1skF5r0PSwsOSOW9DbWRDcwTDfKU0-1769993493-1.0.1.1-28G0jZLZTnkAZB95cVWBRna6DUH5R8fDaEfRsj4w.tbf3nwZ3XBfvnMIec7W5YHIWk3QADhmsEAwhRt2EJqDojPUOqWK.XcyfWlRBeDXzr8; path=/; expires=Mon, 02-Feb-26 01:21:33 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=smBp6Pz7vgVEHcyYMo.q5aDpQ8UAPFfv_7cApBVIfd8-1769993493913-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None', '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_b68d2102139b4490a6c0c959d6be3eb1' }, request_id: 'req_b68d2102139b4490a6c0c959d6be3eb1', 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': '9c75b3681ae3eb5e-ORD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 02 Feb 2026 00:51:33 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=Ilo.OPUc7Q_eVfAQTsLX8ogCC4m3L1L0acvNWptWyTE-1769993493-1.0.1.1-.Qf1Bv03O.3rjj56w83oB87NgbQeoWkiuoDj3tFVhiVIr59MhP0Uos8QREZ8hR0mKiLHwcb5pGW2rHhQys3GlAr7vMTBl508CdbGslmC1go; path=/; expires=Mon, 02-Feb-26 01:21:33 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=wgwUYMAvmrYjW9nae6Dsm.hi7PFB46CdmUVLdCRvajs-1769993493808-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None', '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_1d86052472fa435db47cdd9dc90a4716' }, request_id: 'req_1d86052472fa435db47cdd9dc90a4716', 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': '9c75b3681f095624-ORD', connection: 'keep-alive', 'content-length': '496', 'content-type': 'application/json; charset=utf-8', date: 'Mon, 02 Feb 2026 00:51:33 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=xZAhLpD3mO0AHXXHlR.zH8TZe0fAQrKdVxBaLRW65BY-1769993493-1.0.1.1-_p3Wd93vFPGKPGVBRorB3P.S8.dspE0xdPjgVvyHlAtZEj.IYm2pQCGur10GtysPeW5f6lMzuo3sFL0TZYlKTUZXYUbDvrnuqrciqW7J.dQ; path=/; expires=Mon, 02-Feb-26 01:21:33 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=96cxiOgZmF5St2VjryeJv2tU7xRhDzBHkO_umtU_00s-1769993493854-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None', '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_76a10148dad549ae85946b50ab89d5cf' }, request_id: 'req_76a10148dad549ae85946b50ab89d5cf', 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 }