@onequery/cli 0.1.8 → 0.1.9-darwin-arm64

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.
Files changed (138) hide show
  1. package/README.md +2 -15
  2. package/package.json +15 -22
  3. package/vendor/aarch64-apple-darwin/onequery/onequery +0 -0
  4. package/{runtime/web/assets/DialogTitle-C7PXSwnD.js → vendor/aarch64-apple-darwin/runtime/web/assets/DialogTitle-DTJOl3oJ.js} +1 -1
  5. package/{runtime/web/assets/_authenticated-C7eiQrV5.js → vendor/aarch64-apple-darwin/runtime/web/assets/_authenticated-zME7-RcX.js} +1 -1
  6. package/{runtime/web/assets/_org_slug-DT6zshaD.js → vendor/aarch64-apple-darwin/runtime/web/assets/_org_slug-f0BSTvX3.js} +1 -1
  7. package/{runtime/web/assets/audit-CSF_7w58.js → vendor/aarch64-apple-darwin/runtime/web/assets/audit-rBNVPM_g.js} +1 -1
  8. package/{runtime/web/assets/auth-bootstrap-query-BhAn1APx.js → vendor/aarch64-apple-darwin/runtime/web/assets/auth-bootstrap-query-CCHARugg.js} +1 -1
  9. package/{runtime/web/assets/budget-dN8FWe8O.js → vendor/aarch64-apple-darwin/runtime/web/assets/budget-BHtM7puh.js} +1 -1
  10. package/{runtime/web/assets/callback-eWb0yPe8.js → vendor/aarch64-apple-darwin/runtime/web/assets/callback-sH9W4lM3.js} +1 -1
  11. package/{runtime/web/assets/connect-database-DVVQZbr3.js → vendor/aarch64-apple-darwin/runtime/web/assets/connect-database-CKVqo8hp.js} +1 -1
  12. package/vendor/aarch64-apple-darwin/runtime/web/assets/create-org-BOdESlwa.js +1 -0
  13. package/vendor/aarch64-apple-darwin/runtime/web/assets/data-source-connection-form-Cl2Nfr_6.js +173 -0
  14. package/{runtime/web/assets/device-EXs4sIzB.js → vendor/aarch64-apple-darwin/runtime/web/assets/device-DWePU4g7.js} +1 -1
  15. package/{runtime/web/assets/dropdown-menu-DhqM2Avc.js → vendor/aarch64-apple-darwin/runtime/web/assets/dropdown-menu-Bu_d15-f.js} +1 -1
  16. package/{runtime/web/assets/home-CAuh5Wfd.js → vendor/aarch64-apple-darwin/runtime/web/assets/home-zbIbP7lZ.js} +1 -1
  17. package/vendor/aarch64-apple-darwin/runtime/web/assets/index-N87voRaJ.js +10 -0
  18. package/{runtime/web/assets/integrations-DlDL0Jcf.js → vendor/aarch64-apple-darwin/runtime/web/assets/integrations-CrH5Zwrx.js} +1 -1
  19. package/{runtime/web/assets/invite._invitationId-cHFSskYH.js → vendor/aarch64-apple-darwin/runtime/web/assets/invite._invitationId-BNVlt_r5.js} +1 -1
  20. package/vendor/aarch64-apple-darwin/runtime/web/assets/organization-query-keys-Nzs4DYGL.js +1 -0
  21. package/{runtime/web/assets/routes-dmjAKWFd.js → vendor/aarch64-apple-darwin/runtime/web/assets/routes-L_FQFmb8.js} +1 -1
  22. package/{runtime/web/assets/schemas-BdEYnr23.js → vendor/aarch64-apple-darwin/runtime/web/assets/schemas-B9l2tHsR.js} +1 -1
  23. package/vendor/aarch64-apple-darwin/runtime/web/assets/signin-BQk9Tep_.js +1 -0
  24. package/vendor/aarch64-apple-darwin/runtime/web/assets/team-BZihiu0p.js +1 -0
  25. package/{runtime/web/assets/theme-toggle-BFpWdKle.js → vendor/aarch64-apple-darwin/runtime/web/assets/theme-toggle-Dbkaf9rd.js} +1 -1
  26. package/{runtime/web/assets/use-optimistic-mutation-CAKmieqi.js → vendor/aarch64-apple-darwin/runtime/web/assets/use-optimistic-mutation-uprQGmuH.js} +1 -1
  27. package/{runtime/web/assets/useBaseQuery-C2vAU945.js → vendor/aarch64-apple-darwin/runtime/web/assets/useBaseQuery-Db103_yu.js} +1 -1
  28. package/vendor/aarch64-apple-darwin/runtime/web/assets/useQuery-Bt98u4eJ.js +1 -0
  29. package/vendor/aarch64-apple-darwin/runtime/web/assets/useSuspenseQuery-CiRy35gQ.js +1 -0
  30. package/{runtime/web/assets/zod-D2loGbpH.js → vendor/aarch64-apple-darwin/runtime/web/assets/zod-D1Kv9xc5.js} +1 -1
  31. package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/index.html +3 -3
  32. package/vendor/aarch64-apple-darwin/server/onequery-server +0 -0
  33. package/bin/onequery.js +0 -215
  34. package/bin/package-constants.d.ts +0 -81
  35. package/bin/package-constants.js +0 -222
  36. package/runtime/web/assets/create-org-E2jCJQ7c.js +0 -1
  37. package/runtime/web/assets/data-source-connection-form-OTZ5EOdh.js +0 -173
  38. package/runtime/web/assets/index-pgFcI0zh.js +0 -10
  39. package/runtime/web/assets/organization-query-keys-uOvv8Ob1.js +0 -1
  40. package/runtime/web/assets/signin-nept9z5Z.js +0 -1
  41. package/runtime/web/assets/team-CVJIax_Z.js +0 -1
  42. package/runtime/web/assets/useQuery-B0_ATM04.js +0 -1
  43. package/runtime/web/assets/useSuspenseQuery-5enBOgd7.js +0 -1
  44. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/migrations/20260327065242_curious_nightmare.sql +0 -0
  45. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/migrations/meta/20260327065242_snapshot.json +0 -0
  46. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/migrations/meta/_journal.json +0 -0
  47. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/pglite/initdb.wasm +0 -0
  48. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/pglite/pglite.data +0 -0
  49. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/pglite/pglite.wasm +0 -0
  50. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/CompositeItem-BV7KhPQk.js +0 -0
  51. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/CompositeList-CX7HHxYw.js +0 -0
  52. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/IconArrowRight-DsOD7mDl.js +0 -0
  53. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/IconCheck-Gc24xPT2.js +0 -0
  54. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/IconChevronDown-B-39MA7-.js +0 -0
  55. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/IconCoins-C7Nn0L6R.js +0 -0
  56. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/IconHistory-BqAd-xl2.js +0 -0
  57. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/IconLoader2-B3B6M8nQ.js +0 -0
  58. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/IconPlus-C3-kRhGX.js +0 -0
  59. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/IconX-BQkA009b.js +0 -0
  60. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/Separator-vw4jPN_6.js +0 -0
  61. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/api-base-url-DIb6qukm.js +0 -0
  62. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/api-client-w1GRwBWy.js +0 -0
  63. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/api-error-KjK7uFAE.js +0 -0
  64. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/api-paths-ClEWWGwS.js +0 -0
  65. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/app-routes-DdRvA1bK.js +0 -0
  66. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/auth-client-BlMeXgb4.js +0 -0
  67. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/avatar-DzUYMSvr.js +0 -0
  68. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/badge-DHOXVqXh.js +0 -0
  69. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/card-Bsy6azfK.js +0 -0
  70. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/checkbox-L6MjK5Df.js +0 -0
  71. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/compiler-runtime-DCc3R3Xn.js +0 -0
  72. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/createReactComponent-_L2mp4Ui.js +0 -0
  73. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/empty-COnWCwda.js +0 -0
  74. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/getDisabledMountTransitionStyles-BYKRz4ha.js +0 -0
  75. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/getPseudoElementBounds-InhM-dWf.js +0 -0
  76. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/index-FAyK3-UK.css +0 -0
  77. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/input-DZ9QHu2b.js +0 -0
  78. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
  79. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
  80. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
  81. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
  82. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
  83. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
  84. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
  85. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/jsx-runtime-DG_AJzB_.js +0 -0
  86. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/label-CWOhoN_L.js +0 -0
  87. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/link-Cgvqhh5w.js +0 -0
  88. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/matchContext-CDajBC0L.js +0 -0
  89. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/organization-permissions-BQQ5PJbI.js +0 -0
  90. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/query-timing-LGzitMXx.js +0 -0
  91. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/queryOptions-BHw87wTZ.js +0 -0
  92. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/removable-BfDesq3B.js +0 -0
  93. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/select-CxmfKkmB.js +0 -0
  94. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/separator-BQc-hryc.js +0 -0
  95. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/settings-5_Ep5M2N.js +0 -0
  96. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/src-DCIPwIx0.js +0 -0
  97. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/table-DCvfJyLS.js +0 -0
  98. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/textarea-DiU04l_U.js +0 -0
  99. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/useBaseUiId-BLFGpnYJ.js +0 -0
  100. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/useCompositeItem-DkdkBgiU.js +0 -0
  101. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/useControlled-C1S7R-1A.js +0 -0
  102. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/useRender-DFMo54_d.js +0 -0
  103. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/useRouterState-DpT8luFk.js +0 -0
  104. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/useValueChanged-CqxkrqWn.js +0 -0
  105. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/utils-C8DGLIgm.js +0 -0
  106. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/assets/xstate-react.esm-BlF76DuP.js +0 -0
  107. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/images/amplitude/step1_settings_sidebar.png +0 -0
  108. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/images/amplitude/step2_projects.png +0 -0
  109. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/images/amplitude/step3_project_keys.png +0 -0
  110. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/images/amplitude/step4_api_keys.png +0 -0
  111. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/images/bigquery/step1_service_accounts.png +0 -0
  112. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/images/bigquery/step2_bigquery_roles.png +0 -0
  113. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/images/bigquery/step3_add_key_menu.png +0 -0
  114. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/images/bigquery/step4_create_json_key.png +0 -0
  115. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/images/ga4/step1_service_accounts.png +0 -0
  116. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/images/ga4/step2_create_json_key.png +0 -0
  117. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/images/ga4/step3_add_user_viewer.png +0 -0
  118. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/images/ga4/step4_property_details.png +0 -0
  119. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/images/github-token-guide/step1_signin.png +0 -0
  120. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/images/github-token-guide/step2_new_fine_grained_token_sanitized.png +0 -0
  121. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/images/github-token-guide/step3_permissions_configured_sanitized.png +0 -0
  122. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/images/github-token-guide/step4_token_created_sanitized.png +0 -0
  123. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/images/mixpanel/step1_service_accounts.png +0 -0
  124. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/images/mixpanel/step2_create_service_account.png +0 -0
  125. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/images/mixpanel/step3_credentials.png +0 -0
  126. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/images/mixpanel/step4_project_settings.png +0 -0
  127. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/images/postgresql/step1_create_user.png +0 -0
  128. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/images/postgresql/step2_connection.png +0 -0
  129. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/images/rds/step1_connect.png +0 -0
  130. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/images/rds/step2_create_user.png +0 -0
  131. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/images/rds/step3_grant.png +0 -0
  132. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/images/rds/step4_info.png +0 -0
  133. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/images/sentry/step1_personal_tokens.png +0 -0
  134. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/images/sentry/step2_create_token_permissions.png +0 -0
  135. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/images/sentry/step3_organization_slug.png +0 -0
  136. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/images/sentry/step4_project_slug.png +0 -0
  137. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/linear.svg +0 -0
  138. /package/{runtime → vendor/aarch64-apple-darwin/runtime}/web/onequery.svg +0 -0
@@ -1,222 +0,0 @@
1
- export const CLI_PACKAGE_NAME = "@onequery/cli";
2
- export const CLI_BINARY_NAME = "onequery";
3
- export const CLI_SERVER_BINARY_NAME = "onequery-server";
4
- export const CLI_SERVER_MUSL_BINARY_NAME = "onequery-server-musl";
5
- export const CLI_NPM_TARBALL_PREFIX = "onequery-npm";
6
- export const CLI_NPM_STAGE_DIR_PREFIX = `${CLI_NPM_TARBALL_PREFIX}-stage-`;
7
- export const CLI_NPM_PACK_DIR_PREFIX = `${CLI_NPM_TARBALL_PREFIX}-pack-`;
8
- export const CLI_STAGE_PACKAGE_DIR_PREFIX = "onequery-cli-";
9
-
10
- export const PLATFORM_PACKAGES = {
11
- "cli-darwin-arm64": {
12
- optionalDependencyName: "onequery-darwin-arm64",
13
- npmTag: "darwin-arm64",
14
- targetTriple: "aarch64-apple-darwin",
15
- os: "darwin",
16
- cpu: "arm64",
17
- },
18
- "cli-darwin-x64": {
19
- optionalDependencyName: "onequery-darwin-x64",
20
- npmTag: "darwin-x64",
21
- targetTriple: "x86_64-apple-darwin",
22
- os: "darwin",
23
- cpu: "x64",
24
- },
25
- "cli-linux-arm64": {
26
- optionalDependencyName: "onequery-linux-arm64",
27
- npmTag: "linux-arm64",
28
- targetTriple: "aarch64-unknown-linux-musl",
29
- os: "linux",
30
- cpu: "arm64",
31
- },
32
- "cli-linux-x64": {
33
- optionalDependencyName: "onequery-linux-x64",
34
- npmTag: "linux-x64",
35
- targetTriple: "x86_64-unknown-linux-musl",
36
- os: "linux",
37
- cpu: "x64",
38
- },
39
- "cli-win32-arm64": {
40
- optionalDependencyName: "onequery-win32-arm64",
41
- npmTag: "win32-arm64",
42
- targetTriple: "aarch64-pc-windows-msvc",
43
- os: "win32",
44
- cpu: "arm64",
45
- },
46
- "cli-win32-x64": {
47
- optionalDependencyName: "onequery-win32-x64",
48
- npmTag: "win32-x64",
49
- targetTriple: "x86_64-pc-windows-msvc",
50
- os: "win32",
51
- cpu: "x64",
52
- },
53
- };
54
-
55
- export const EXTRA_RELEASE_PLATFORM_PACKAGES = {
56
- // COMMENT: Keep GNU Linux release tarballs available on GitHub Releases
57
- // without adding glibc-specific optional dependencies to the npm install
58
- // path. The launcher falls back to these local vendor payloads when present.
59
- "cli-linux-arm64-gnu": {
60
- optionalDependencyName: null,
61
- npmTag: "linux-arm64-gnu",
62
- targetTriple: "aarch64-unknown-linux-gnu",
63
- os: "linux",
64
- cpu: "arm64",
65
- },
66
- "cli-linux-x64-gnu": {
67
- optionalDependencyName: null,
68
- npmTag: "linux-x64-gnu",
69
- targetTriple: "x86_64-unknown-linux-gnu",
70
- os: "linux",
71
- cpu: "x64",
72
- },
73
- };
74
-
75
- export const RELEASE_PLATFORM_PACKAGES = {
76
- ...PLATFORM_PACKAGES,
77
- ...EXTRA_RELEASE_PLATFORM_PACKAGES,
78
- };
79
-
80
- export const PLATFORM_PACKAGE_BY_TARGET = Object.fromEntries(
81
- Object.values(PLATFORM_PACKAGES).map((platformPackage) => [
82
- platformPackage.targetTriple,
83
- platformPackage.optionalDependencyName,
84
- ])
85
- );
86
-
87
- export function serverBuildsForTargetTriple(targetTriple) {
88
- switch (targetTriple) {
89
- case "aarch64-apple-darwin":
90
- return [
91
- {
92
- compileTarget: "bun-darwin-arm64",
93
- filename: CLI_SERVER_BINARY_NAME,
94
- },
95
- ];
96
- case "aarch64-unknown-linux-musl":
97
- return [
98
- {
99
- compileTarget: "bun-linux-arm64",
100
- filename: CLI_SERVER_BINARY_NAME,
101
- },
102
- {
103
- compileTarget: "bun-linux-arm64-musl",
104
- filename: CLI_SERVER_MUSL_BINARY_NAME,
105
- },
106
- ];
107
- case "aarch64-unknown-linux-gnu":
108
- return [
109
- {
110
- compileTarget: "bun-linux-arm64",
111
- filename: CLI_SERVER_BINARY_NAME,
112
- },
113
- ];
114
- case "aarch64-pc-windows-msvc":
115
- return [
116
- {
117
- compileTarget: "bun-windows-arm64",
118
- filename: binaryNameForTargetTriple(
119
- targetTriple,
120
- CLI_SERVER_BINARY_NAME
121
- ),
122
- },
123
- ];
124
- case "x86_64-apple-darwin":
125
- return [
126
- {
127
- compileTarget: "bun-darwin-x64",
128
- filename: CLI_SERVER_BINARY_NAME,
129
- },
130
- ];
131
- case "x86_64-unknown-linux-musl":
132
- return [
133
- {
134
- compileTarget: "bun-linux-x64",
135
- filename: CLI_SERVER_BINARY_NAME,
136
- },
137
- {
138
- compileTarget: "bun-linux-x64-musl",
139
- filename: CLI_SERVER_MUSL_BINARY_NAME,
140
- },
141
- ];
142
- case "x86_64-unknown-linux-gnu":
143
- return [
144
- {
145
- compileTarget: "bun-linux-x64",
146
- filename: CLI_SERVER_BINARY_NAME,
147
- },
148
- ];
149
- case "x86_64-pc-windows-msvc":
150
- return [
151
- {
152
- compileTarget: "bun-windows-x64",
153
- filename: binaryNameForTargetTriple(
154
- targetTriple,
155
- CLI_SERVER_BINARY_NAME
156
- ),
157
- },
158
- ];
159
- default:
160
- throw new Error(`Unsupported server target triple '${targetTriple}'.`);
161
- }
162
- }
163
-
164
- export function packageStagingDirPrefix(packageName) {
165
- return `${CLI_STAGE_PACKAGE_DIR_PREFIX}${packageName}-`;
166
- }
167
-
168
- export function binaryNameForPlatform(platform, baseName) {
169
- return platform === "win32" ? `${baseName}.exe` : baseName;
170
- }
171
-
172
- export function binaryNameForTargetTriple(targetTriple, baseName) {
173
- return targetTriple.includes("-windows-") ? `${baseName}.exe` : baseName;
174
- }
175
-
176
- export function resolveTargetTripleCandidates(platform, arch) {
177
- switch (platform) {
178
- case "linux":
179
- case "android": {
180
- switch (arch) {
181
- case "x64":
182
- return ["x86_64-unknown-linux-musl", "x86_64-unknown-linux-gnu"];
183
- case "arm64":
184
- return ["aarch64-unknown-linux-musl", "aarch64-unknown-linux-gnu"];
185
- default:
186
- break;
187
- }
188
- break;
189
- }
190
- case "darwin": {
191
- switch (arch) {
192
- case "x64":
193
- return ["x86_64-apple-darwin"];
194
- case "arm64":
195
- return ["aarch64-apple-darwin"];
196
- default:
197
- break;
198
- }
199
- break;
200
- }
201
- case "win32": {
202
- switch (arch) {
203
- case "x64":
204
- return ["x86_64-pc-windows-msvc"];
205
- case "arm64":
206
- return ["aarch64-pc-windows-msvc"];
207
- default:
208
- break;
209
- }
210
- break;
211
- }
212
- default: {
213
- break;
214
- }
215
- }
216
-
217
- throw new Error(`Unsupported platform: ${platform} (${arch})`);
218
- }
219
-
220
- export function resolveTargetTriple(platform, arch) {
221
- return resolveTargetTripleCandidates(platform, arch)[0];
222
- }
@@ -1 +0,0 @@
1
- import{i as e,n as t,t as n}from"./jsx-runtime-DG_AJzB_.js";import{a as r,o as i}from"./api-base-url-DIb6qukm.js";import{n as a,t as o}from"./createReactComponent-_L2mp4Ui.js";import{t as s}from"./IconArrowRight-DsOD7mDl.js";import{t as c}from"./auth-client-BlMeXgb4.js";import{d as l,l as u}from"./schemas-BdEYnr23.js";import{C as d,H as f}from"./index-pgFcI0zh.js";import{t as p}from"./input-DZ9QHu2b.js";import{t as m}from"./label-CWOhoN_L.js";import{a as h,n as g,o as _,r as v,t as y}from"./card-Bsy6azfK.js";import{n as b,t as x}from"./zod-D2loGbpH.js";var S=o(`outline`,`building`,`Building`,[[`path`,{d:`M3 21l18 0`,key:`svg-0`}],[`path`,{d:`M9 8l1 0`,key:`svg-1`}],[`path`,{d:`M9 12l1 0`,key:`svg-2`}],[`path`,{d:`M9 16l1 0`,key:`svg-3`}],[`path`,{d:`M14 8l1 0`,key:`svg-4`}],[`path`,{d:`M14 12l1 0`,key:`svg-5`}],[`path`,{d:`M14 16l1 0`,key:`svg-6`}],[`path`,{d:`M5 21v-16a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v16`,key:`svg-7`}]]),C=e(t(),1),w=n(),T=u({name:l().min(2,`Organization name must be at least 2 characters`),slug:l().min(2,`Slug must be at least 2 characters`).regex(/^[a-z0-9-]+$/,`Slug can only contain lowercase letters, numbers, and hyphens`)}),E=r(`/_authenticated/onboarding/create-org`);function D(e){return e.toLowerCase().replaceAll(/[^a-z0-9]+/g,`-`).replaceAll(/^-|-$/g,``)}function O(e){if(!(e instanceof Error))return`Failed to create organization`;let t=e.message.trim();return t.length>0?t:`Failed to create organization`}function k(){let e=i(),t=f(),{auth:n,refetchSession:r}=E.useRouteContext(),[o,l]=(0,C.useState)(!1),u=n.session?.user.id,k=typeof window>`u`?`your-host`:window.location.host,A=b({defaultValues:{name:``,slug:``},resolver:x(T)}),j=A.watch(`name`),M=A.watch(`slug`);async function N(n){l(!0);try{let i=await c.create({name:n.name,slug:n.slug});if(i.error){A.setError(`root`,{message:i.error.message??`Failed to create organization`}),l(!1);return}let a=i.data?.id;if(!a){A.setError(`root`,{message:`Failed to create organization`}),l(!1);return}await c.setActive({organizationId:a}),await r(),await t.invalidateQueries({queryKey:d(u).queryKey}),e({search:{orgId:a},to:`/onboarding/connect-database`})}catch(e){A.setError(`root`,{message:O(e)}),l(!1)}}return(0,w.jsx)(`div`,{className:`flex min-h-screen flex-col items-center justify-center p-6`,children:(0,w.jsxs)(y,{className:`w-full max-w-md`,children:[(0,w.jsxs)(h,{className:`text-center`,children:[(0,w.jsx)(`div`,{className:`mx-auto mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-muted`,children:(0,w.jsx)(S,{size:24,stroke:1.5})}),(0,w.jsx)(_,{className:`text-xl`,children:`Create your organization`}),(0,w.jsx)(v,{children:`Set up your workspace to get started with OneQuery`})]}),(0,w.jsx)(g,{children:(0,w.jsxs)(`form`,{onSubmit:A.handleSubmit(N),className:`space-y-4`,children:[(0,w.jsxs)(`div`,{className:`space-y-2`,children:[(0,w.jsx)(m,{htmlFor:`name`,children:`Organization name`}),(0,w.jsx)(p,{id:`name`,placeholder:`Acme Inc.`,...A.register(`name`,{onChange:e=>{let t=D(e.target.value);A.setValue(`slug`,t)}})}),A.formState.errors.name&&(0,w.jsx)(`p`,{className:`text-sm text-destructive`,children:A.formState.errors.name.message})]}),(0,w.jsxs)(`div`,{className:`space-y-2`,children:[(0,w.jsx)(m,{htmlFor:`slug`,children:`URL slug`}),(0,w.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,w.jsxs)(`span`,{className:`text-sm text-muted-foreground`,children:[k,`/`]}),(0,w.jsx)(p,{id:`slug`,placeholder:`acme`,...A.register(`slug`),className:`flex-1`})]}),A.formState.errors.slug&&(0,w.jsx)(`p`,{className:`text-sm text-destructive`,children:A.formState.errors.slug.message})]}),A.formState.errors.root&&(0,w.jsx)(`p`,{className:`text-sm text-destructive`,children:A.formState.errors.root.message}),(0,w.jsxs)(a,{type:`submit`,className:`w-full`,disabled:o||!j||!M,children:[o?`Setting up...`:`Continue`,(0,w.jsx)(s,{size:16,stroke:2})]})]})})]})})}var A=k;export{A as component};