@ancha-labs/cli 0.4.34 → 0.4.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,6 +20,7 @@ const calls = [
20
20
  ['OKTA_ORG_URL', 'api/v1/users?limit=1', { Authorization: `SSWS ${env.OKTA_API_TOKEN}` }],
21
21
  ['STRIPE_API_URL', 'v1/customers?limit=1', bearer(env.STRIPE_SECRET_KEY)],
22
22
  ['CLERK_API_URL', 'v1/users?limit=1', bearer(env.CLERK_SECRET_KEY)],
23
+ ['SUPABASE_URL', 'rest/v1/', { apikey: env.SUPABASE_ANON_KEY, ...bearer(env.SUPABASE_ANON_KEY) }],
23
24
  ['NOTION_API_URL', 'v1/search', { ...bearer(env.NOTION_TOKEN), 'Notion-Version': '2025-09-03', ...json }, { page_size: 1 }],
24
25
  ['DROPBOX_API_URL', '2/users/get_current_account', { ...bearer(env.DROPBOX_ACCESS_TOKEN), ...json }, null],
25
26
  ['RESEND_BASE_URL', 'emails', bearer(env.RESEND_API_KEY)],
@@ -180,7 +180,7 @@ function connectDefaults(detected) {
180
180
  const started = Array.isArray(detected?.evidence) && detected.evidence.includes("package.json") && /^(?:npm|pnpm) start$/.test(String(detected?.suggestions?.command ?? ""));
181
181
  return started ? { taskInputKind: "command", state: "stateless" } : {};
182
182
  }
183
- var toolNames = { slack: "Slack", "open-meteo": "Open-Meteo", datadog: "Datadog", pagerduty: "PagerDuty", github: "GitHub", "linkedin-ads": "LinkedIn Ads", salesforce: "Salesforce", gong: "Gong", "google-ads": "Google Ads", "chatgpt-ads": "ChatGPT Ads", hubspot: "HubSpot", ga4: "Google Analytics", gmail: "Gmail", "google-drive": "Google Drive", "amazon-s3": "Amazon S3", linear: "Linear", okta: "Okta", stripe: "Stripe", clerk: "Clerk", "better-stack": "Better Stack", notion: "Notion", attio: "Attio", dropbox: "Dropbox", resend: "Resend", "microsoft-word": "Microsoft Word", outlook: "Outlook", shopify: "Shopify", lob: "Lob", paypal: "PayPal", jira: "Jira", kalshi: "Kalshi", intercom: "Intercom", zendesk: "Zendesk", "google-calendar": "Google Calendar", twilio: "Twilio", asana: "Asana", discord: "Discord", sentry: "Sentry", airtable: "Airtable", netsuite: "NetSuite", quickbooks: "QuickBooks Online", "carrier-portal": "Carrier portal" };
183
+ var toolNames = { slack: "Slack", "open-meteo": "Open-Meteo", datadog: "Datadog", pagerduty: "PagerDuty", github: "GitHub", "linkedin-ads": "LinkedIn Ads", salesforce: "Salesforce", gong: "Gong", "google-ads": "Google Ads", "chatgpt-ads": "ChatGPT Ads", hubspot: "HubSpot", ga4: "Google Analytics", gmail: "Gmail", "google-drive": "Google Drive", "amazon-s3": "Amazon S3", linear: "Linear", okta: "Okta", stripe: "Stripe", clerk: "Clerk", supabase: "Supabase", "better-stack": "Better Stack", notion: "Notion", attio: "Attio", dropbox: "Dropbox", resend: "Resend", "microsoft-word": "Microsoft Word", outlook: "Outlook", shopify: "Shopify", lob: "Lob", paypal: "PayPal", jira: "Jira", kalshi: "Kalshi", intercom: "Intercom", zendesk: "Zendesk", "google-calendar": "Google Calendar", twilio: "Twilio", asana: "Asana", discord: "Discord", sentry: "Sentry", airtable: "Airtable", netsuite: "NetSuite", quickbooks: "QuickBooks Online", "carrier-portal": "Carrier portal" };
184
184
  var toolName = (name) => toolNames[name] ?? name;
185
185
  var toolLinks = (names) => names.map((name) => `<a class="tool-chip" href="/tools/${encodeURIComponent(name)}" data-nav>${h(toolName(name))}</a>`).join("");
186
186
  var toolDescription = (name) => ({ slack: "Channels, messages and threads", datadog: "Monitors, metrics and logs", pagerduty: "Incidents, on-call and escalation", github: "Repositories, pull requests and deployments" })[name] ?? "API capabilities";
@@ -200,6 +200,7 @@ function sandboxActivity(o) {
200
200
 
201
201
  // frontend/src/tool-logos.ts
202
202
  var logos = {
203
+ "supabase": '<svg width="109" height="113" viewBox="0 0 109 113" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M63.7076 110.284C60.8481 113.885 55.0502 111.912 54.9813 107.314L53.9738 40.0627L99.1935 40.0627C107.384 40.0627 111.952 49.5228 106.859 55.9374L63.7076 110.284Z" fill="url(#SVGsupabase0)"/><path d="M63.7076 110.284C60.8481 113.885 55.0502 111.912 54.9813 107.314L53.9738 40.0627L99.1935 40.0627C107.384 40.0627 111.952 49.5228 106.859 55.9374L63.7076 110.284Z" fill="url(#SVGsupabase1)" fill-opacity="0.2"/><path d="M45.317 2.07103C48.1765 -1.53037 53.9745 0.442937 54.0434 5.041L54.4849 72.2922H9.83113C1.64038 72.2922 -2.92775 62.8321 2.1655 56.4175L45.317 2.07103Z" fill="#3ECF8E"/><defs><linearGradient id="SVGsupabase0" x1="53.9738" y1="54.974" x2="94.1635" y2="71.8295" gradientUnits="userSpaceOnUse"><stop stop-color="#249361"/><stop offset="1" stop-color="#3ECF8E"/></linearGradient><linearGradient id="SVGsupabase1" x1="36.1558" y1="30.578" x2="54.4844" y2="65.0806" gradientUnits="userSpaceOnUse"><stop/><stop offset="1" stop-opacity="0"/></linearGradient></defs></svg>',
203
204
  // Original neutral ledger glyph.
204
205
  "quickbooks": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" fill="none" stroke="#4b5563" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="6" y="3" width="21" height="26" rx="2"/><path d="M11 3v26M3 9h6M3 16h6M3 23h6M15 10h8M15 16h8M15 22h8"/></svg>',
205
206
  "slack": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="#e01e5a" d="M53.841 161.32c0 14.832-11.987 26.82-26.819 26.82S.203 176.152.203 161.32c0-14.831 11.987-26.818 26.82-26.818H53.84zm13.41 0c0-14.831 11.987-26.818 26.819-26.818s26.819 11.987 26.819 26.819v67.047c0 14.832-11.987 26.82-26.82 26.82c-14.83 0-26.818-11.988-26.818-26.82z"/><path fill="#36c5f0" d="M94.07 53.638c-14.832 0-26.82-11.987-26.82-26.819S79.239 0 94.07 0s26.819 11.987 26.819 26.819v26.82zm0 13.613c14.832 0 26.819 11.987 26.819 26.819s-11.987 26.819-26.82 26.819H26.82C11.987 120.889 0 108.902 0 94.069c0-14.83 11.987-26.818 26.819-26.818z"/><path fill="#2eb67d" d="M201.55 94.07c0-14.832 11.987-26.82 26.818-26.82s26.82 11.988 26.82 26.82s-11.988 26.819-26.82 26.819H201.55zm-13.41 0c0 14.832-11.988 26.819-26.82 26.819c-14.831 0-26.818-11.987-26.818-26.82V26.82C134.502 11.987 146.489 0 161.32 0s26.819 11.987 26.819 26.819z"/><path fill="#ecb22e" d="M161.32 201.55c14.832 0 26.82 11.987 26.82 26.818s-11.988 26.82-26.82 26.82c-14.831 0-26.818-11.988-26.818-26.82V201.55zm0-13.41c-14.831 0-26.818-11.988-26.818-26.82c0-14.831 11.987-26.818 26.819-26.818h67.25c14.832 0 26.82 11.987 26.82 26.819s-11.988 26.819-26.82 26.819z"/></svg>',
@@ -22060,6 +22061,7 @@ var TOOL_CATALOG = [
22060
22061
  { "name": "notion", "title": "Notion", "category": "Docs", "description": "Pages, databases, blocks and comments", "version": "Notion-Version 2025-09-03", "env": ["NOTION_API_URL", "NOTION_TOKEN"], "endpoints": [["GET", "/v1/blocks/:block_id"], ["PATCH", "/v1/blocks/:block_id"], ["DELETE", "/v1/blocks/:block_id"], ["GET", "/v1/blocks/:block_id/children"], ["PATCH", "/v1/blocks/:block_id/children"], ["GET", "/v1/comments"], ["POST", "/v1/comments"], ["GET", "/v1/comments/:comment_id"], ["GET", "/v1/data_sources/:data_source_id"], ["POST", "/v1/data_sources/:data_source_id/query"], ["GET", "/v1/databases/:database_id"], ["POST", "/v1/pages"], ["GET", "/v1/pages/:page_id"], ["PATCH", "/v1/pages/:page_id"], ["GET", "/v1/pages/:page_id/properties/:property_id"], ["POST", "/v1/search"], ["GET", "/v1/users"], ["GET", "/v1/users/:user_id"], ["GET", "/v1/users/me"]] },
22061
22062
  { "name": "microsoft-word", "title": "Microsoft Word", "category": "Docs", "description": "Word documents in OneDrive through Microsoft Graph", "version": "Graph v1.0 drive items", "env": ["MICROSOFT_GRAPH_API_URL", "MICROSOFT_GRAPH_ACCESS_TOKEN"], "endpoints": [["GET", "/download/{token}"], ["GET", "/monitor/{token}"], ["GET", "/v1.0/me"], ["GET", "/v1.0/me/drive"], ["GET", "/v1.0/me/drive/items/{item-id}"], ["PATCH", "/v1.0/me/drive/items/{item-id}"], ["DELETE", "/v1.0/me/drive/items/{item-id}"], ["GET", "/v1.0/me/drive/items/{item-id}/children"], ["POST", "/v1.0/me/drive/items/{item-id}/children"], ["GET", "/v1.0/me/drive/items/{item-id}/content"], ["POST", "/v1.0/me/drive/items/{item-id}/copy"], ["POST", "/v1.0/me/drive/items/{item-id}/createLink"], ["POST", "/v1.0/me/drive/items/{item-id}/invite"], ["GET", "/v1.0/me/drive/items/{item-id}/permissions"], ["DELETE", "/v1.0/me/drive/items/{item-id}/permissions/{perm-id}"], ["GET", "/v1.0/me/drive/items/{item-id}/versions"], ["GET", "/v1.0/me/drive/items/{item-id}/versions/{version-id}/content"], ["POST", "/v1.0/me/drive/items/{item-id}/versions/{version-id}/restoreVersion"], ["PUT", "/v1.0/me/drive/items/{parent-id}:/{filename}:/content"], ["GET", "/v1.0/me/drive/recent"], ["GET", "/v1.0/me/drive/root/search(q='{text}')"]] },
22062
22063
  { "name": "airtable", "title": "Airtable", "category": "Databases", "description": "Bases of linked tables: records, views, formulas and comments", "version": "Web API v0", "env": ["AIRTABLE_API_URL", "AIRTABLE_ENDPOINT_URL", "AIRTABLE_API_KEY"], "endpoints": [["GET", "/v0/{baseId}/{tableIdOrName}"], ["POST", "/v0/{baseId}/{tableIdOrName}"], ["PUT", "/v0/{baseId}/{tableIdOrName}"], ["PATCH", "/v0/{baseId}/{tableIdOrName}"], ["DELETE", "/v0/{baseId}/{tableIdOrName}"], ["GET", "/v0/{baseId}/{tableIdOrName}/{recordId}"], ["PUT", "/v0/{baseId}/{tableIdOrName}/{recordId}"], ["PATCH", "/v0/{baseId}/{tableIdOrName}/{recordId}"], ["DELETE", "/v0/{baseId}/{tableIdOrName}/{recordId}"], ["GET", "/v0/{baseId}/{tableIdOrName}/{recordId}/comments"], ["POST", "/v0/{baseId}/{tableIdOrName}/{recordId}/comments"], ["PATCH", "/v0/{baseId}/{tableIdOrName}/{recordId}/comments/{rowCommentId}"], ["DELETE", "/v0/{baseId}/{tableIdOrName}/{recordId}/comments/{rowCommentId}"], ["POST", "/v0/{baseId}/{tableIdOrName}/listRecords"], ["GET", "/v0/meta/bases"], ["GET", "/v0/meta/bases/{baseId}/tables"], ["POST", "/v0/meta/bases/{baseId}/tables"], ["POST", "/v0/meta/bases/{baseId}/tables/{tableId}/fields"], ["PATCH", "/v0/meta/bases/{baseId}/tables/{tableId}/fields/{columnId}"], ["PATCH", "/v0/meta/bases/{baseId}/tables/{tableIdOrName}"], ["GET", "/v0/meta/whoami"]] },
22064
+ { "name": "supabase", "title": "Supabase", "category": "Databases", "description": "Tenant data in Postgres with row-level security, Auth sessions and private files, built from the app's migrations", "version": "Data API, Auth and Storage v1", "env": ["SUPABASE_URL", "SUPABASE_ANON_KEY", "SUPABASE_SERVICE_ROLE_KEY"], "endpoints": [["GET", "/auth/v1/.well-known/jwks.json"], ["POST", "/auth/v1/admin/generate_link"], ["GET", "/auth/v1/admin/users"], ["POST", "/auth/v1/admin/users"], ["GET", "/auth/v1/admin/users/{id}"], ["PUT", "/auth/v1/admin/users/{id}"], ["DELETE", "/auth/v1/admin/users/{id}"], ["GET", "/auth/v1/authorize"], ["POST", "/auth/v1/invite"], ["POST", "/auth/v1/logout"], ["POST", "/auth/v1/otp"], ["POST", "/auth/v1/recover"], ["POST", "/auth/v1/resend"], ["GET", "/auth/v1/settings"], ["POST", "/auth/v1/signup"], ["POST", "/auth/v1/token"], ["GET", "/auth/v1/user"], ["PUT", "/auth/v1/user"], ["GET", "/auth/v1/verify"], ["POST", "/auth/v1/verify"], ["GET", "/storage/v1/bucket"], ["POST", "/storage/v1/bucket"], ["GET", "/storage/v1/bucket/{id}"], ["PUT", "/storage/v1/bucket/{id}"], ["DELETE", "/storage/v1/bucket/{id}"], ["POST", "/storage/v1/bucket/{id}/empty"], ["DELETE", "/storage/v1/object/{bucket}"], ["GET", "/storage/v1/object/{bucket}/{path*}"], ["POST", "/storage/v1/object/{bucket}/{path*}"], ["PUT", "/storage/v1/object/{bucket}/{path*}"], ["DELETE", "/storage/v1/object/{bucket}/{path*}"], ["GET", "/storage/v1/object/authenticated/{bucket}/{path*}"], ["POST", "/storage/v1/object/copy"], ["HEAD", "/storage/v1/object/info/{bucket}/{path*}"], ["GET", "/storage/v1/object/info/{bucket}/{path*}"], ["POST", "/storage/v1/object/list/{bucket}"], ["POST", "/storage/v1/object/move"], ["GET", "/storage/v1/object/public/{bucket}/{path*}"], ["POST", "/storage/v1/object/sign/{bucket}"], ["GET", "/storage/v1/object/sign/{bucket}/{path*}"], ["POST", "/storage/v1/object/sign/{bucket}/{path*}"], ["POST", "/storage/v1/object/upload/sign/{bucket}/{path*}"], ["PUT", "/storage/v1/object/upload/sign/{bucket}/{path*}"], ["GET", "/rest/v1/"], ["HEAD", "/rest/v1/{table}"], ["GET", "/rest/v1/{table}"], ["POST", "/rest/v1/{table}"], ["PUT", "/rest/v1/{table}"], ["PATCH", "/rest/v1/{table}"], ["DELETE", "/rest/v1/{table}"], ["HEAD", "/rest/v1/rpc/{function}"], ["GET", "/rest/v1/rpc/{function}"], ["POST", "/rest/v1/rpc/{function}"]] },
22063
22065
  { "name": "netsuite", "title": "NetSuite", "category": "Finance", "description": "Order to cash and procure to pay: customers, vendors, invoices, payments, bills and SuiteQL", "version": "SuiteTalk REST record v1 and SuiteQL", "env": ["NETSUITE_API_URL", "NETSUITE_RECORD_URL", "NETSUITE_SUITEQL_URL", "NETSUITE_ACCOUNT_ID", "NETSUITE_CONSUMER_KEY", "NETSUITE_CONSUMER_SECRET", "NETSUITE_TOKEN_ID", "NETSUITE_TOKEN_SECRET", "NETSUITE_ACCESS_TOKEN", "NETSUITE_TOKEN_URL", "NETSUITE_CLIENT_ID", "NETSUITE_CLIENT_SECRET", "NETSUITE_CERTIFICATE_ID", "NETSUITE_PRIVATE_KEY"], "endpoints": [["GET", "/app/login/oauth2/authorize.nl"], ["POST", "/services/mcp/v1/all"], ["POST", "/services/mcp/v1/suiteapp/com.netsuite.mcpstandardtools"], ["GET", "/services/rest/async/v1/job/:id"], ["GET", "/services/rest/async/v1/job/:id/task"], ["GET", "/services/rest/async/v1/job/:id/task/:task"], ["GET", "/services/rest/async/v1/job/:id/task/:task/request"], ["GET", "/services/rest/async/v1/job/:id/task/:task/result"], ["GET", "/services/rest/auth/oauth2/v1/keys"], ["POST", "/services/rest/auth/oauth2/v1/revoke"], ["POST", "/services/rest/auth/oauth2/v1/token"], ["POST", "/services/rest/query/v1/suiteql"], ["GET", "/services/rest/record/v1/:type"], ["POST", "/services/rest/record/v1/:type"], ["POST", "/services/rest/record/v1/:type (Prefer: respond-async)"], ["PUT", "/services/rest/record/v1/:type/:externalId"], ["GET", "/services/rest/record/v1/:type/:id"], ["PATCH", "/services/rest/record/v1/:type/:id"], ["DELETE", "/services/rest/record/v1/:type/:id"], ["GET", "/services/rest/record/v1/:type/:id/:sublist"], ["GET", "/services/rest/record/v1/:type/:id/:sublist/:line"], ["POST", "/services/rest/record/v1/:type/:id/!transform/:target"], ["GET", "/services/rest/record/v1/metadata-catalog"]] },
22064
22066
  { "name": "quickbooks", "title": "QuickBooks Online", "category": "Finance", "description": "Small-business books: customers, vendors, items, invoices, payments, bills, expenses, journal entries and reports", "version": "Accounting API v3, minor version 75", "env": ["QUICKBOOKS_API_URL", "QUICKBOOKS_REALM_ID", "QUICKBOOKS_ACCESS_TOKEN", "QUICKBOOKS_REFRESH_TOKEN", "QUICKBOOKS_CLIENT_ID", "QUICKBOOKS_CLIENT_SECRET", "QUICKBOOKS_TOKEN_URL"], "endpoints": [["POST", "/v3/company/{realmId}/{entity}"], ["GET", "/v3/company/{realmId}/{entity}/{id}"], ["POST", "/v3/company/{realmId}/{entity}/{id}/send"], ["POST", "/v3/company/{realmId}/batch"], ["GET", "/v3/company/{realmId}/cdc"], ["GET", "/v3/company/{realmId}/query"], ["POST", "/v3/company/{realmId}/query"], ["GET", "/v3/company/{realmId}/reports/{report}"], ["POST", "/oauth2/v1/tokens/bearer"], ["POST", "/oauth2/v1/tokens/revoke"], ["POST", "/v2/oauth2/tokens/revoke"]] },
22065
22067
  { "name": "carrier-portal", "title": "Carrier portal", "category": "Insurance", "description": "Larchmont Mutual agency website: policy search, documents and underwriting requests", "version": "Agency portal v1", "env": ["CARRIER_PORTAL_URL", "CARRIER_PORTAL_USERNAME", "CARRIER_PORTAL_PASSWORD", "CARRIER_PORTAL_AGENCY_CODE"], "endpoints": [["GET", "/documents/:id/download"], ["GET", "/messages"], ["POST", "/messages"], ["GET", "/policies"], ["GET", "/policies/:number"], ["GET", "/policies/:number/requests/add-vehicle"], ["POST", "/policies/:number/requests/add-vehicle"], ["GET", "/policies/:number/requests/additional-insured"], ["POST", "/policies/:number/requests/additional-insured"], ["GET", "/policies/:number/requests/certificate"], ["POST", "/policies/:number/requests/certificate"], ["GET", "/policies/:number/requests/loss-runs"], ["POST", "/policies/:number/requests/loss-runs"], ["GET", "/policies/:number/requests/mailing-address"], ["POST", "/policies/:number/requests/mailing-address"], ["GET", "/policies/:number/requests/remove-vehicle"], ["POST", "/policies/:number/requests/remove-vehicle"], ["GET", "/requests"], ["GET", "/requests/:reference"], ["GET", "/sign-in"], ["POST", "/sign-in"], ["POST", "/sign-out"], ["GET", "/"]] },
@@ -22074,7 +22076,7 @@ var TOOL_CATALOG = [
22074
22076
  { "name": "amazon-s3", "title": "Amazon S3", "category": "Files", "description": "Buckets, objects and multipart uploads", "version": "REST (SigV4)", "env": ["AWS_ENDPOINT_URL_S3", "AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_REGION"], "endpoints": [["HEAD", "/{Bucket}"], ["GET", "/{Bucket}"], ["PUT", "/{Bucket}"], ["DELETE", "/{Bucket}"], ["HEAD", "/{Bucket}/{Key+}"], ["GET", "/{Bucket}/{Key+}"], ["PUT", "/{Bucket}/{Key+}"], ["DELETE", "/{Bucket}/{Key+}"], ["PUT", "/{Bucket}/{Key+} (x-amz-copy-source)"], ["PUT", "/{Bucket}/{Key+}?partNumber&uploadId"], ["GET", "/{Bucket}/{Key+}?tagging"], ["PUT", "/{Bucket}/{Key+}?tagging"], ["DELETE", "/{Bucket}/{Key+}?tagging"], ["GET", "/{Bucket}/{Key+}?uploadId"], ["POST", "/{Bucket}/{Key+}?uploadId"], ["DELETE", "/{Bucket}/{Key+}?uploadId"], ["POST", "/{Bucket}/{Key+}?uploads"], ["POST", "/{Bucket}?delete"], ["GET", "/{Bucket}?list-type=2"], ["GET", "/{Bucket}?location"], ["GET", "/{Bucket}?tagging"], ["PUT", "/{Bucket}?tagging"], ["DELETE", "/{Bucket}?tagging"], ["GET", "/{Bucket}?uploads"], ["GET", "/"]] },
22075
22077
  { "name": "okta", "title": "Okta", "category": "Identity", "description": "People, groups, app assignments and the System Log", "version": "Management API v1", "env": ["OKTA_ORG_URL", "OKTA_API_TOKEN"], "endpoints": [["GET", "/api/v1/apps"], ["GET", "/api/v1/apps/{appId}"], ["GET", "/api/v1/apps/{appId}/groups"], ["PUT", "/api/v1/apps/{appId}/groups/{groupId}"], ["DELETE", "/api/v1/apps/{appId}/groups/{groupId}"], ["GET", "/api/v1/apps/{appId}/users"], ["POST", "/api/v1/apps/{appId}/users"], ["DELETE", "/api/v1/apps/{appId}/users/{userId}"], ["GET", "/api/v1/groups"], ["POST", "/api/v1/groups"], ["GET", "/api/v1/groups/{groupId}"], ["PUT", "/api/v1/groups/{groupId}"], ["DELETE", "/api/v1/groups/{groupId}"], ["GET", "/api/v1/groups/{groupId}/users"], ["PUT", "/api/v1/groups/{groupId}/users/{userId}"], ["DELETE", "/api/v1/groups/{groupId}/users/{userId}"], ["GET", "/api/v1/logs"], ["GET", "/api/v1/users"], ["POST", "/api/v1/users"], ["GET", "/api/v1/users/{id}"], ["POST", "/api/v1/users/{id}"], ["DELETE", "/api/v1/users/{id}"], ["GET", "/api/v1/users/{id}/appLinks"], ["GET", "/api/v1/users/{id}/groups"], ["POST", "/api/v1/users/{id}/lifecycle/activate"], ["POST", "/api/v1/users/{id}/lifecycle/deactivate"], ["POST", "/api/v1/users/{id}/lifecycle/reset_password"], ["POST", "/api/v1/users/{id}/lifecycle/suspend"], ["POST", "/api/v1/users/{id}/lifecycle/unlock"], ["POST", "/api/v1/users/{id}/lifecycle/unsuspend"], ["DELETE", "/api/v1/users/{id}/sessions"]] },
22076
22078
  { "name": "clerk", "title": "Clerk", "category": "Identity", "description": "Users, organizations, sign-in and sessions", "version": "Backend and Frontend APIs v1", "env": ["CLERK_API_URL", "CLERK_SECRET_KEY"], "endpoints": [["GET", "/fapi/.well-known/jwks.json"], ["GET", "/fapi/v1/client"], ["POST", "/fapi/v1/client"], ["DELETE", "/fapi/v1/client"], ["POST", "/fapi/v1/client/sessions/{session_id}/end"], ["POST", "/fapi/v1/client/sessions/{session_id}/remove"], ["POST", "/fapi/v1/client/sessions/{session_id}/tokens"], ["POST", "/fapi/v1/client/sessions/{session_id}/touch"], ["POST", "/fapi/v1/client/sign_ins"], ["POST", "/fapi/v1/client/sign_ins/{sign_in_id}/attempt_first_factor"], ["POST", "/fapi/v1/client/sign_ins/{sign_in_id}/prepare_first_factor"], ["POST", "/fapi/v1/client/sign_ups"], ["POST", "/fapi/v1/client/sign_ups/{sign_up_id}/attempt_verification"], ["POST", "/fapi/v1/client/sign_ups/{sign_up_id}/prepare_verification"], ["GET", "/fapi/v1/environment"], ["GET", "/v1/invitations"], ["POST", "/v1/invitations"], ["POST", "/v1/invitations/{invitation_id}/revoke"], ["GET", "/v1/jwks"], ["GET", "/v1/organizations"], ["POST", "/v1/organizations"], ["GET", "/v1/organizations/{organization_id}"], ["PATCH", "/v1/organizations/{organization_id}"], ["DELETE", "/v1/organizations/{organization_id}"], ["GET", "/v1/organizations/{organization_id}/invitations"], ["POST", "/v1/organizations/{organization_id}/invitations"], ["GET", "/v1/organizations/{organization_id}/invitations/{invitation_id}"], ["POST", "/v1/organizations/{organization_id}/invitations/{invitation_id}/revoke"], ["GET", "/v1/organizations/{organization_id}/memberships"], ["POST", "/v1/organizations/{organization_id}/memberships"], ["PATCH", "/v1/organizations/{organization_id}/memberships/{user_id}"], ["DELETE", "/v1/organizations/{organization_id}/memberships/{user_id}"], ["PATCH", "/v1/organizations/{organization_id}/metadata"], ["GET", "/v1/sessions"], ["POST", "/v1/sessions"], ["GET", "/v1/sessions/{session_id}"], ["POST", "/v1/sessions/{session_id}/revoke"], ["POST", "/v1/sessions/{session_id}/tokens"], ["POST", "/v1/sessions/{session_id}/tokens/{template_name}"], ["POST", "/v1/testing_tokens"], ["GET", "/v1/users"], ["POST", "/v1/users"], ["GET", "/v1/users/{user_id}"], ["PATCH", "/v1/users/{user_id}"], ["DELETE", "/v1/users/{user_id}"], ["POST", "/v1/users/{user_id}/ban"], ["POST", "/v1/users/{user_id}/lock"], ["PATCH", "/v1/users/{user_id}/metadata"], ["GET", "/v1/users/{user_id}/organization_memberships"], ["POST", "/v1/users/{user_id}/unban"], ["POST", "/v1/users/{user_id}/unlock"], ["GET", "/v1/users/count"]] },
22077
- { "name": "stripe", "title": "Stripe", "category": "Payments", "description": "Customers, subscriptions, invoices and payments", "version": "API 2026-10-28.endive", "env": ["STRIPE_API_URL", "STRIPE_SECRET_KEY"], "endpoints": [["GET", "/v1/balance"], ["GET", "/v1/balance_transactions"], ["GET", "/v1/charges"], ["GET", "/v1/charges/:id"], ["GET", "/v1/charges/:id/refunds"], ["GET", "/v1/charges/search"], ["GET", "/v1/checkout/sessions"], ["POST", "/v1/checkout/sessions"], ["GET", "/v1/checkout/sessions/:id"], ["POST", "/v1/checkout/sessions/:id/expire"], ["GET", "/v1/checkout/sessions/:id/line_items"], ["GET", "/v1/credit_notes"], ["GET", "/v1/customers"], ["POST", "/v1/customers"], ["GET", "/v1/customers/:id"], ["POST", "/v1/customers/:id"], ["DELETE", "/v1/customers/:id"], ["GET", "/v1/customers/:id/balance_transactions"], ["GET", "/v1/customers/:id/cash_balance"], ["GET", "/v1/customers/:id/payment_methods"], ["GET", "/v1/customers/search"], ["GET", "/v1/disputes"], ["GET", "/v1/events"], ["GET", "/v1/invoiceitems"], ["POST", "/v1/invoiceitems"], ["GET", "/v1/invoices"], ["POST", "/v1/invoices"], ["GET", "/v1/invoices/:id"], ["POST", "/v1/invoices/:id"], ["POST", "/v1/invoices/:id/finalize"], ["POST", "/v1/invoices/:id/pay"], ["POST", "/v1/invoices/:id/void"], ["GET", "/v1/payment_intents"], ["POST", "/v1/payment_intents"], ["GET", "/v1/payment_intents/:id"], ["POST", "/v1/payment_intents/:id/cancel"], ["POST", "/v1/payment_intents/:id/confirm"], ["GET", "/v1/payment_intents/search"], ["GET", "/v1/payment_methods/:id"], ["GET", "/v1/prices"], ["GET", "/v1/prices/:id"], ["GET", "/v1/products"], ["GET", "/v1/products/:id"], ["GET", "/v1/refunds"], ["POST", "/v1/refunds"], ["GET", "/v1/refunds/:id"], ["GET", "/v1/subscriptions"], ["POST", "/v1/subscriptions"], ["GET", "/v1/subscriptions/:id"], ["POST", "/v1/subscriptions/:id"], ["DELETE", "/v1/subscriptions/:id"], ["GET", "/v1/webhook_endpoints"], ["POST", "/v1/webhook_endpoints"], ["GET", "/v1/webhook_endpoints/:id"], ["POST", "/v1/webhook_endpoints/:id"], ["DELETE", "/v1/webhook_endpoints/:id"]] },
22079
+ { "name": "stripe", "title": "Stripe", "category": "Payments", "description": "Customers, subscriptions, invoices, payments and Connect accounts, onboarding, transfers, application fees and payouts", "version": "API 2026-10-28.endive", "env": ["STRIPE_API_URL", "STRIPE_SECRET_KEY"], "endpoints": [["GET", "/v1/account"], ["POST", "/v1/account_links"], ["GET", "/v1/accounts"], ["POST", "/v1/accounts"], ["GET", "/v1/accounts/:id"], ["POST", "/v1/accounts/:id"], ["DELETE", "/v1/accounts/:id"], ["GET", "/v1/accounts/:id/capabilities"], ["GET", "/v1/accounts/:id/capabilities/:id"], ["POST", "/v1/accounts/:id/capabilities/:id"], ["GET", "/v1/accounts/:id/external_accounts"], ["POST", "/v1/accounts/:id/external_accounts"], ["GET", "/v1/accounts/:id/external_accounts/:id"], ["POST", "/v1/accounts/:id/external_accounts/:id"], ["DELETE", "/v1/accounts/:id/external_accounts/:id"], ["GET", "/v1/application_fees"], ["GET", "/v1/application_fees/:id"], ["GET", "/v1/application_fees/:id/refunds"], ["POST", "/v1/application_fees/:id/refunds"], ["GET", "/v1/application_fees/:id/refunds/:refund"], ["POST", "/v1/application_fees/:id/refunds/:refund"], ["GET", "/v1/balance"], ["GET", "/v1/balance_transactions"], ["GET", "/v1/balance_transactions/:id"], ["GET", "/v1/charges"], ["GET", "/v1/charges/:id"], ["GET", "/v1/charges/:id/refunds"], ["GET", "/v1/charges/search"], ["GET", "/v1/checkout/sessions"], ["POST", "/v1/checkout/sessions"], ["GET", "/v1/checkout/sessions/:id"], ["POST", "/v1/checkout/sessions/:id/expire"], ["GET", "/v1/checkout/sessions/:id/line_items"], ["GET", "/v1/credit_notes"], ["GET", "/v1/customers"], ["POST", "/v1/customers"], ["GET", "/v1/customers/:id"], ["POST", "/v1/customers/:id"], ["DELETE", "/v1/customers/:id"], ["GET", "/v1/customers/:id/balance_transactions"], ["GET", "/v1/customers/:id/cash_balance"], ["GET", "/v1/customers/:id/payment_methods"], ["GET", "/v1/customers/search"], ["GET", "/v1/disputes"], ["GET", "/v1/disputes/:id"], ["POST", "/v1/disputes/:id"], ["POST", "/v1/disputes/:id/close"], ["GET", "/v1/events"], ["GET", "/v1/events/:id"], ["GET", "/v1/invoiceitems"], ["POST", "/v1/invoiceitems"], ["GET", "/v1/invoices"], ["POST", "/v1/invoices"], ["GET", "/v1/invoices/:id"], ["POST", "/v1/invoices/:id"], ["POST", "/v1/invoices/:id/finalize"], ["POST", "/v1/invoices/:id/pay"], ["POST", "/v1/invoices/:id/void"], ["GET", "/v1/payment_intents"], ["POST", "/v1/payment_intents"], ["GET", "/v1/payment_intents/:id"], ["POST", "/v1/payment_intents/:id"], ["POST", "/v1/payment_intents/:id/cancel"], ["POST", "/v1/payment_intents/:id/confirm"], ["GET", "/v1/payment_intents/search"], ["GET", "/v1/payment_methods/:id"], ["GET", "/v1/payouts"], ["POST", "/v1/payouts"], ["GET", "/v1/payouts/:id"], ["POST", "/v1/payouts/:id"], ["POST", "/v1/payouts/:id/cancel"], ["GET", "/v1/prices"], ["GET", "/v1/prices/:id"], ["GET", "/v1/products"], ["GET", "/v1/products/:id"], ["GET", "/v1/refunds"], ["POST", "/v1/refunds"], ["GET", "/v1/refunds/:id"], ["GET", "/v1/subscriptions"], ["POST", "/v1/subscriptions"], ["GET", "/v1/subscriptions/:id"], ["POST", "/v1/subscriptions/:id"], ["DELETE", "/v1/subscriptions/:id"], ["GET", "/v1/transfers"], ["POST", "/v1/transfers"], ["GET", "/v1/transfers/:id"], ["POST", "/v1/transfers/:id"], ["GET", "/v1/transfers/:id/reversals"], ["POST", "/v1/transfers/:id/reversals"], ["GET", "/v1/transfers/:id/reversals/:reversal"], ["POST", "/v1/transfers/:id/reversals/:reversal"], ["GET", "/v1/webhook_endpoints"], ["POST", "/v1/webhook_endpoints"], ["GET", "/v1/webhook_endpoints/:id"], ["POST", "/v1/webhook_endpoints/:id"], ["DELETE", "/v1/webhook_endpoints/:id"]] },
22078
22080
  { "name": "paypal", "title": "PayPal", "category": "Payments", "description": "Invoices, checkout orders, payments, refunds, subscriptions and transaction reports", "version": "REST", "env": ["PAYPAL_API_URL", "PAYPAL_CLIENT_ID", "PAYPAL_CLIENT_SECRET"], "endpoints": [["GET", "/v1/billing/plans"], ["POST", "/v1/billing/plans"], ["GET", "/v1/billing/plans/:id"], ["POST", "/v1/billing/plans/:id/activate"], ["POST", "/v1/billing/plans/:id/deactivate"], ["GET", "/v1/billing/subscriptions"], ["POST", "/v1/billing/subscriptions"], ["GET", "/v1/billing/subscriptions/:id"], ["PATCH", "/v1/billing/subscriptions/:id"], ["POST", "/v1/billing/subscriptions/:id/activate"], ["POST", "/v1/billing/subscriptions/:id/cancel"], ["POST", "/v1/billing/subscriptions/:id/capture"], ["POST", "/v1/billing/subscriptions/:id/revise"], ["POST", "/v1/billing/subscriptions/:id/suspend"], ["GET", "/v1/billing/subscriptions/:id/transactions"], ["GET", "/v1/catalogs/products"], ["GET", "/v1/catalogs/products/:id"], ["POST", "/v2/checkout/orders"], ["GET", "/v2/checkout/orders/:id"], ["PATCH", "/v2/checkout/orders/:id"], ["POST", "/v2/checkout/orders/:id/authorize"], ["POST", "/v2/checkout/orders/:id/capture"], ["POST", "/v2/checkout/orders/:id/confirm-payment-source"], ["POST", "/v2/checkout/orders/:id/track"], ["PATCH", "/v2/checkout/orders/:id/trackers/:tracker"], ["GET", "/v2/invoicing/invoices"], ["POST", "/v2/invoicing/invoices"], ["GET", "/v2/invoicing/invoices/:id"], ["POST", "/v2/invoicing/invoices/:id/send"], ["POST", "/v1/oauth2/token"], ["GET", "/v2/payments/authorizations/:id"], ["POST", "/v2/payments/authorizations/:id/capture"], ["POST", "/v2/payments/authorizations/:id/reauthorize"], ["POST", "/v2/payments/authorizations/:id/void"], ["GET", "/v2/payments/captures/:id"], ["POST", "/v2/payments/captures/:id/refund"], ["GET", "/v2/payments/refunds/:id"], ["GET", "/v1/reporting/balances"], ["GET", "/v1/reporting/transactions"]] },
22079
22081
  { "name": "shopify", "title": "Shopify", "category": "Commerce", "description": "Storefront carts, checkout, orders, products, inventory, customers, fulfillments and refunds", "version": "Admin and Storefront GraphQL 2026-10", "env": ["SHOPIFY_API_URL", "SHOPIFY_ACCESS_TOKEN", "SHOPIFY_API_VERSION"], "endpoints": [["STOREFRONT QUERY", "cart"], ["STOREFRONT MUTATION", "cartAttributesUpdate"], ["STOREFRONT MUTATION", "cartBuyerIdentityUpdate"], ["STOREFRONT MUTATION", "cartCreate"], ["STOREFRONT MUTATION", "cartLinesAdd"], ["STOREFRONT MUTATION", "cartLinesRemove"], ["STOREFRONT MUTATION", "cartLinesUpdate"], ["STOREFRONT MUTATION", "cartNoteUpdate"], ["STOREFRONT QUERY", "collection"], ["STOREFRONT QUERY", "collections"], ["QUERY", "customer"], ["MUTATION", "customerCreate"], ["QUERY", "customers"], ["MUTATION", "customerUpdate"], ["MUTATION", "fulfillmentCreate"], ["QUERY", "fulfillmentOrder"], ["MUTATION", "fulfillmentTrackingInfoUpdate"], ["MUTATION", "inventoryAdjustQuantities"], ["QUERY", "inventoryItem"], ["MUTATION", "inventorySetQuantities"], ["QUERY", "job"], ["QUERY", "location"], ["QUERY", "locations"], ["QUERY", "node"], ["STOREFRONT QUERY", "node"], ["QUERY", "nodes"], ["STOREFRONT QUERY", "nodes"], ["QUERY", "order"], ["MUTATION", "orderCancel"], ["MUTATION", "orderClose"], ["MUTATION", "orderMarkAsPaid"], ["MUTATION", "orderOpen"], ["QUERY", "orders"], ["MUTATION", "orderUpdate"], ["QUERY", "product"], ["STOREFRONT QUERY", "product"], ["QUERY", "products"], ["STOREFRONT QUERY", "products"], ["MUTATION", "productUpdate"], ["QUERY", "productVariant"], ["QUERY", "productVariants"], ["MUTATION", "productVariantsBulkUpdate"], ["MUTATION", "refundCreate"], ["QUERY", "shop"], ["STOREFRONT QUERY", "shop"], ["MUTATION", "tagsAdd"], ["MUTATION", "tagsRemove"]] },
22080
22082
  { "name": "kalshi", "title": "Kalshi", "category": "Markets", "description": "Event contracts: markets, order books, orders, positions and settlements", "version": "Trade API v2", "env": ["KALSHI_API_URL", "KALSHI_API_KEY_ID", "KALSHI_PRIVATE_KEY"], "endpoints": [["GET", "/trade-api/v2/events"], ["GET", "/trade-api/v2/events/{event_ticker}"], ["GET", "/trade-api/v2/exchange/schedule"], ["GET", "/trade-api/v2/exchange/status"], ["GET", "/trade-api/v2/markets"], ["GET", "/trade-api/v2/markets/{ticker}"], ["GET", "/trade-api/v2/markets/{ticker}/orderbook"], ["GET", "/trade-api/v2/markets/trades"], ["GET", "/trade-api/v2/portfolio/balance"], ["POST", "/trade-api/v2/portfolio/events/orders"], ["DELETE", "/trade-api/v2/portfolio/events/orders"], ["DELETE", "/trade-api/v2/portfolio/events/orders/{order_id}"], ["POST", "/trade-api/v2/portfolio/events/orders/{order_id}/amend"], ["POST", "/trade-api/v2/portfolio/events/orders/{order_id}/decrease"], ["POST", "/trade-api/v2/portfolio/events/orders/batched"], ["DELETE", "/trade-api/v2/portfolio/events/orders/batched"], ["GET", "/trade-api/v2/portfolio/fills"], ["GET", "/trade-api/v2/portfolio/orders"], ["POST", "/trade-api/v2/portfolio/orders"], ["GET", "/trade-api/v2/portfolio/orders/{order_id}"], ["DELETE", "/trade-api/v2/portfolio/orders/{order_id}"], ["GET", "/trade-api/v2/portfolio/positions"], ["GET", "/trade-api/v2/portfolio/settlements"], ["GET", "/trade-api/v2/series"], ["GET", "/trade-api/v2/series/{series_ticker}"]] },
@@ -22114,8 +22116,8 @@ function startHeartbeat(ping, options = {}) {
22114
22116
  }
22115
22117
 
22116
22118
  // frontend/src/tool-meta.ts
22117
- var toolOrder = ["slack", "discord", "github", "linear", "jira", "asana", "notion", "microsoft-word", "airtable", "netsuite", "quickbooks", "carrier-portal", "gmail", "outlook", "resend", "lob", "twilio", "google-calendar", "google-drive", "dropbox", "amazon-s3", "okta", "clerk", "stripe", "paypal", "shopify", "kalshi", "datadog", "sentry", "better-stack", "pagerduty", "hubspot", "salesforce", "attio", "intercom", "zendesk", "gong", "ga4", "google-ads", "linkedin-ads", "chatgpt-ads", "open-meteo"];
22118
- var toolCategory = { slack: "Team chat", discord: "Community chat", asana: "Projects", airtable: "Databases", netsuite: "Finance", quickbooks: "Finance", "carrier-portal": "Insurance", sentry: "Errors", github: "Code", gmail: "Email", outlook: "Email", resend: "Email", "google-drive": "Files", dropbox: "Files", "amazon-s3": "Files", linear: "Issues", okta: "Identity", clerk: "Identity", stripe: "Payments", paypal: "Payments", shopify: "Commerce", lob: "Mail", jira: "Issues", kalshi: "Markets", intercom: "Support", zendesk: "Support", "google-calendar": "Calendar", twilio: "SMS & voice", notion: "Docs", "microsoft-word": "Docs", datadog: "Monitoring", "better-stack": "Uptime", pagerduty: "Incidents", hubspot: "CRM", salesforce: "CRM", attio: "CRM", gong: "Sales calls", ga4: "Analytics", "google-ads": "Ads", "linkedin-ads": "Ads", "chatgpt-ads": "Ads", "open-meteo": "Weather" };
22119
+ var toolOrder = ["slack", "discord", "github", "linear", "jira", "asana", "notion", "microsoft-word", "airtable", "supabase", "netsuite", "quickbooks", "carrier-portal", "gmail", "outlook", "resend", "lob", "twilio", "google-calendar", "google-drive", "dropbox", "amazon-s3", "okta", "clerk", "stripe", "paypal", "shopify", "kalshi", "datadog", "sentry", "better-stack", "pagerduty", "hubspot", "salesforce", "attio", "intercom", "zendesk", "gong", "ga4", "google-ads", "linkedin-ads", "chatgpt-ads", "open-meteo"];
22120
+ var toolCategory = { slack: "Team chat", discord: "Community chat", asana: "Projects", airtable: "Databases", supabase: "Databases", netsuite: "Finance", quickbooks: "Finance", "carrier-portal": "Insurance", sentry: "Errors", github: "Code", gmail: "Email", outlook: "Email", resend: "Email", "google-drive": "Files", dropbox: "Files", "amazon-s3": "Files", linear: "Issues", okta: "Identity", clerk: "Identity", stripe: "Payments", paypal: "Payments", shopify: "Commerce", lob: "Mail", jira: "Issues", kalshi: "Markets", intercom: "Support", zendesk: "Support", "google-calendar": "Calendar", twilio: "SMS & voice", notion: "Docs", "microsoft-word": "Docs", datadog: "Monitoring", "better-stack": "Uptime", pagerduty: "Incidents", hubspot: "CRM", salesforce: "CRM", attio: "CRM", gong: "Sales calls", ga4: "Analytics", "google-ads": "Ads", "linkedin-ads": "Ads", "chatgpt-ads": "Ads", "open-meteo": "Weather" };
22119
22121
  var starterCounts = {
22120
22122
  slack: [["users", "Members"], ["channels", "Channels"], ["messages", "Messages"]],
22121
22123
  github: [["repos", "Repositories"], ["pulls", "Pull requests"], ["issues", "Issues"], ["commits", "Commits"]],
@@ -22135,6 +22137,7 @@ var starterCounts = {
22135
22137
  linear: [["teams", "Teams"], ["projects", "Projects"], ["issues", "Issues"], ["users", "People"]],
22136
22138
  okta: [["users", "People"], ["groups", "Groups"], ["apps", "Applications"], ["logs", "Log events"]],
22137
22139
  stripe: [["customers", "Customers"], ["subscriptions", "Subscriptions"], ["invoices", "Invoices"], ["payment_intents", "Payments"]],
22140
+ supabase: [["users", "Users"], ["tables", "Tables"], ["buckets", "Buckets"], ["objects", "Objects"]],
22138
22141
  clerk: [["users", "Users"], ["organizations", "Organizations"], ["invitations", "Invitations"], ["sessions", "Sessions"]],
22139
22142
  "better-stack": [["monitors", "Monitors"], ["heartbeats", "Heartbeats"], ["incidents", "Incidents"], ["statusPages", "Status pages"]],
22140
22143
  notion: [["pages", "Pages"], ["databases", "Databases"], ["blocks", "Blocks"], ["comments", "Comments"]],
@@ -22163,6 +22166,7 @@ var starterCounts = {
22163
22166
  var list3 = (value) => Array.isArray(value) ? value : [];
22164
22167
  var sum = (values) => values.reduce((total, n) => total + n, 0);
22165
22168
  function starterCount(tool, key, state) {
22169
+ if (tool === "supabase" && key === "tables" && state.tables && typeof state.tables === "object") return Object.keys(state.tables).length;
22166
22170
  const isFolder = (f) => f.mimeType === "application/vnd.google-apps.folder";
22167
22171
  if (key === "issues" && Array.isArray(state.pulls)) return list3(state.issues).length - state.pulls.length;
22168
22172
  if (tool === "google-drive" && Array.isArray(state.files) && (key === "files" || key === "folders")) return state.files.filter((f) => isFolder(f) === (key === "folders")).length;
@@ -22677,6 +22681,7 @@ function mountGroupFlow(node2, options) {
22677
22681
 
22678
22682
  // frontend/src/connections.ts
22679
22683
  var connectionFields = {
22684
+ supabase: ["SUPABASE_URL", "SUPABASE_ANON_KEY", "SUPABASE_SERVICE_ROLE_KEY"],
22680
22685
  slack: ["SLACK_API_URL", "SLACK_BOT_TOKEN"],
22681
22686
  github: ["GITHUB_API_URL", "GITHUB_TOKEN"],
22682
22687
  datadog: ["DATADOG_API_URL", "DD_API_KEY", "DD_APP_KEY"],
@@ -22723,6 +22728,7 @@ var connectionFields = {
22723
22728
  var connectionNote = {
22724
22729
  "amazon-s3": "The AWS SDKs read all four variables themselves. Set forcePathStyle: true when the endpoint is a host name.",
22725
22730
  stripe: "The Stripe SDK has no base path: inside a container, give it Stripe.createFetchHttpClient() with a fetch that sends each request to STRIPE_API_URL plus the request path.",
22731
+ supabase: "createClient(SUPABASE_URL, SUPABASE_ANON_KEY) from @supabase/supabase-js.",
22726
22732
  clerk: "createClerkClient({ secretKey: CLERK_SECRET_KEY, apiUrl: CLERK_API_URL }).",
22727
22733
  notion: "new Client({ auth: NOTION_TOKEN, baseUrl: NOTION_API_URL }) from @notionhq/client; the SDK adds /v1 itself.",
22728
22734
  attio: "Send each request to ATTIO_API_URL plus its /v2 path, with Authorization: Bearer ATTIO_API_KEY.",
@@ -22748,7 +22754,7 @@ var connectionNote = {
22748
22754
  dropbox: "new Dropbox({ accessToken: DROPBOX_ACCESS_TOKEN, fetch }), where fetch replaces https://api.dropboxapi.com and https://content.dropboxapi.com with DROPBOX_API_URL before sending.",
22749
22755
  "better-stack": "There is no official Uptime SDK: send each request to BETTER_STACK_API_URL plus its /api/v2 or /api/v3 path, with Authorization: Bearer BETTER_STACK_API_TOKEN."
22750
22756
  };
22751
- var awsLabels = { QUICKBOOKS_REALM_ID: "Realm ID", QUICKBOOKS_REFRESH_TOKEN: "Refresh token", QUICKBOOKS_CLIENT_ID: "Client ID", QUICKBOOKS_CLIENT_SECRET: "Client secret", QUICKBOOKS_TOKEN_URL: "Token URL", CARRIER_PORTAL_URL: "Portal URL", CARRIER_PORTAL_USERNAME: "Username", CARRIER_PORTAL_PASSWORD: "Password", CARRIER_PORTAL_AGENCY_CODE: "Agency code", AWS_ENDPOINT_URL_S3: "Endpoint URL", AWS_ACCESS_KEY_ID: "Access key ID", AWS_SECRET_ACCESS_KEY: "Secret access key", AWS_REGION: "Region", OKTA_ORG_URL: "Org URL", OKTA_API_TOKEN: "API token", STRIPE_SECRET_KEY: "Secret key", CLERK_SECRET_KEY: "Secret key", BETTER_STACK_API_TOKEN: "API token", NOTION_TOKEN: "Integration token", SHOPIFY_API_VERSION: "API version", LOB_ASSETS_URL: "Assets URL", PAYPAL_CLIENT_ID: "Client ID", PAYPAL_CLIENT_SECRET: "Client secret", JIRA_BASE_URL: "Site URL", JIRA_EMAIL: "Email", JIRA_API_TOKEN: "API token", KALSHI_API_KEY_ID: "API key ID", KALSHI_PRIVATE_KEY: "Private key", ZENDESK_EMAIL: "Email", ZENDESK_API_TOKEN: "API token", TWILIO_ACCOUNT_SID: "Account SID", TWILIO_AUTH_TOKEN: "Auth token", DISCORD_BOT_TOKEN: "Bot token", SENTRY_AUTH_TOKEN: "Auth token", AIRTABLE_ENDPOINT_URL: "Endpoint URL", NETSUITE_RECORD_URL: "Record URL", NETSUITE_SUITEQL_URL: "SuiteQL URL", NETSUITE_ACCOUNT_ID: "Account ID", NETSUITE_CONSUMER_KEY: "Consumer key", NETSUITE_CONSUMER_SECRET: "Consumer secret", NETSUITE_TOKEN_ID: "Token ID", NETSUITE_TOKEN_SECRET: "Token secret" };
22757
+ var awsLabels = { SUPABASE_ANON_KEY: "Anon key", SUPABASE_SERVICE_ROLE_KEY: "Service role key", QUICKBOOKS_REALM_ID: "Realm ID", QUICKBOOKS_REFRESH_TOKEN: "Refresh token", QUICKBOOKS_CLIENT_ID: "Client ID", QUICKBOOKS_CLIENT_SECRET: "Client secret", QUICKBOOKS_TOKEN_URL: "Token URL", CARRIER_PORTAL_URL: "Portal URL", CARRIER_PORTAL_USERNAME: "Username", CARRIER_PORTAL_PASSWORD: "Password", CARRIER_PORTAL_AGENCY_CODE: "Agency code", AWS_ENDPOINT_URL_S3: "Endpoint URL", AWS_ACCESS_KEY_ID: "Access key ID", AWS_SECRET_ACCESS_KEY: "Secret access key", AWS_REGION: "Region", OKTA_ORG_URL: "Org URL", OKTA_API_TOKEN: "API token", STRIPE_SECRET_KEY: "Secret key", CLERK_SECRET_KEY: "Secret key", BETTER_STACK_API_TOKEN: "API token", NOTION_TOKEN: "Integration token", SHOPIFY_API_VERSION: "API version", LOB_ASSETS_URL: "Assets URL", PAYPAL_CLIENT_ID: "Client ID", PAYPAL_CLIENT_SECRET: "Client secret", JIRA_BASE_URL: "Site URL", JIRA_EMAIL: "Email", JIRA_API_TOKEN: "API token", KALSHI_API_KEY_ID: "API key ID", KALSHI_PRIVATE_KEY: "Private key", ZENDESK_EMAIL: "Email", ZENDESK_API_TOKEN: "API token", TWILIO_ACCOUNT_SID: "Account SID", TWILIO_AUTH_TOKEN: "Auth token", DISCORD_BOT_TOKEN: "Bot token", SENTRY_AUTH_TOKEN: "Auth token", AIRTABLE_ENDPOINT_URL: "Endpoint URL", NETSUITE_RECORD_URL: "Record URL", NETSUITE_SUITEQL_URL: "SuiteQL URL", NETSUITE_ACCOUNT_ID: "Account ID", NETSUITE_CONSUMER_KEY: "Consumer key", NETSUITE_CONSUMER_SECRET: "Consumer secret", NETSUITE_TOKEN_ID: "Token ID", NETSUITE_TOKEN_SECRET: "Token secret" };
22752
22758
  var fields = connectionFields;
22753
22759
  var connectionLabel = (key) => awsLabels[key] ?? (key.endsWith("URL") ? "API URL" : key.endsWith("ENDPOINT") ? "gRPC endpoint" : key.endsWith("FROM_EMAIL") ? "Caller email" : key === "DD_APP_KEY" ? "Application key" : key === "GONG_ACCESS_KEY" ? "Access key" : key.endsWith("SECRET") ? "Access key secret" : key.endsWith("API_KEY") ? "API key" : "Access token");
22754
22760
  function connectionsView(info, mode, tool) {
@@ -0,0 +1,70 @@
1
+ // The Supabase twin's Postgres: PGlite instances live in this worker thread and answer engine.ts synchronously
2
+ // (a SharedArrayBuffer flag plus a MessagePort the blocked main thread reads). Plain JavaScript so the package build
3
+ // ships it as its own file next to the bundles, like clock-preload.mjs.
4
+ import { parentPort, workerData } from 'node:worker_threads';
5
+ import nodeCrypto from 'node:crypto';
6
+ import { readFileSync } from 'node:fs';
7
+ import { createRequire } from 'node:module';
8
+ import { dirname, join } from 'node:path';
9
+ import { PGlite } from '@electric-sql/pglite';
10
+ import { citext } from '@electric-sql/pglite/contrib/citext';
11
+ import { pg_trgm } from '@electric-sql/pglite/contrib/pg_trgm';
12
+ import { pgcrypto } from '@electric-sql/pglite/contrib/pgcrypto';
13
+ import { uuid_ossp } from '@electric-sql/pglite/contrib/uuid_ossp';
14
+
15
+ const flag = new Int32Array(workerData.flag), reply = workerData.port;
16
+ const dist = dirname(createRequire(import.meta.url).resolve('@electric-sql/pglite'));
17
+ // One compiled module and file-system bundle for every instance: most of an instance's memory is compiled code.
18
+ const pgliteWasmModule = await WebAssembly.compile(readFileSync(join(dist, 'pglite.wasm')));
19
+ const bundle = readFileSync(join(dist, 'pglite.data'));
20
+ const instances = new Map();
21
+ let next = 1;
22
+ const realNow = Date.now, realFill = nodeCrypto.randomFillSync;
23
+
24
+ /** xorshift32 bytes: an instance's randomness (gen_random_uuid, OpenSSL's seed) follows its world seed. */
25
+ function stream(seed) {
26
+ let s = seed >>> 0 || 0x9e3779b9;
27
+ return (target) => {
28
+ const bytes = new Uint8Array(target.buffer, target.byteOffset, target.byteLength);
29
+ for (let i = 0; i < bytes.length; i++) { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; bytes[i] = s & 255; }
30
+ return target;
31
+ };
32
+ }
33
+
34
+ /** Postgres reads the clock and the random source only through these two, so a call sees the world's time and seed. */
35
+ async function inWorld(instance, nowMs, run) {
36
+ Date.now = () => nowMs; nodeCrypto.randomFillSync = instance.random;
37
+ try { return await run(); } finally { Date.now = realNow; nodeCrypto.randomFillSync = realFill; }
38
+ }
39
+
40
+ async function answer(request) {
41
+ const { op } = request;
42
+ if (op === 'create') {
43
+ const instance = { random: stream(request.seed), db: undefined };
44
+ instance.db = await inWorld(instance, request.nowMs, () => PGlite.create({
45
+ pgliteWasmModule, fsBundle: new Blob([bundle]),
46
+ // A world's database is small; Postgres's default 128MB of shared buffers would be most of the instance.
47
+ postgresqlconf: ['shared_buffers=16MB'],
48
+ // The extensions a Supabase project has (uuid-ossp, pgcrypto) or creates most often in its migrations.
49
+ extensions: { uuid_ossp, pgcrypto, citext, pg_trgm },
50
+ ...(request.image && { loadDataDir: new Blob([request.image]) }),
51
+ }));
52
+ instances.set(next, instance);
53
+ return next++;
54
+ }
55
+ const instance = instances.get(request.id);
56
+ if (!instance) throw new Error(`no Postgres instance ${request.id}`);
57
+ if (op === 'exec') return inWorld(instance, request.nowMs, () => instance.db.execProtocolRawSync(request.bytes));
58
+ if (op === 'dump') return new Uint8Array(await (await instance.db.dumpDataDir('gzip')).arrayBuffer());
59
+ if (op === 'close') { instances.delete(request.id); await instance.db.close(); return true; }
60
+ throw new Error(`unknown engine operation ${op}`);
61
+ }
62
+
63
+ parentPort.on('message', async (request) => {
64
+ let message;
65
+ try { message = { result: await answer(request) }; }
66
+ catch (error) { message = { error: error instanceof Error ? error.message : String(error) }; }
67
+ reply.postMessage(message);
68
+ Atomics.store(flag, 0, 1);
69
+ Atomics.notify(flag, 0);
70
+ });