@onequery/cli 0.1.8 → 0.1.9-darwin-x64
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.
- package/README.md +2 -15
- package/package.json +15 -22
- package/vendor/x86_64-apple-darwin/onequery/onequery +0 -0
- package/{runtime/web/assets/DialogTitle-C7PXSwnD.js → vendor/x86_64-apple-darwin/runtime/web/assets/DialogTitle-DTJOl3oJ.js} +1 -1
- package/{runtime/web/assets/_authenticated-C7eiQrV5.js → vendor/x86_64-apple-darwin/runtime/web/assets/_authenticated-zME7-RcX.js} +1 -1
- package/{runtime/web/assets/_org_slug-DT6zshaD.js → vendor/x86_64-apple-darwin/runtime/web/assets/_org_slug-f0BSTvX3.js} +1 -1
- package/{runtime/web/assets/audit-CSF_7w58.js → vendor/x86_64-apple-darwin/runtime/web/assets/audit-rBNVPM_g.js} +1 -1
- package/{runtime/web/assets/auth-bootstrap-query-BhAn1APx.js → vendor/x86_64-apple-darwin/runtime/web/assets/auth-bootstrap-query-CCHARugg.js} +1 -1
- package/{runtime/web/assets/budget-dN8FWe8O.js → vendor/x86_64-apple-darwin/runtime/web/assets/budget-BHtM7puh.js} +1 -1
- package/{runtime/web/assets/callback-eWb0yPe8.js → vendor/x86_64-apple-darwin/runtime/web/assets/callback-sH9W4lM3.js} +1 -1
- package/{runtime/web/assets/connect-database-DVVQZbr3.js → vendor/x86_64-apple-darwin/runtime/web/assets/connect-database-CKVqo8hp.js} +1 -1
- package/vendor/x86_64-apple-darwin/runtime/web/assets/create-org-BOdESlwa.js +1 -0
- package/vendor/x86_64-apple-darwin/runtime/web/assets/data-source-connection-form-Cl2Nfr_6.js +173 -0
- package/{runtime/web/assets/device-EXs4sIzB.js → vendor/x86_64-apple-darwin/runtime/web/assets/device-DWePU4g7.js} +1 -1
- package/{runtime/web/assets/dropdown-menu-DhqM2Avc.js → vendor/x86_64-apple-darwin/runtime/web/assets/dropdown-menu-Bu_d15-f.js} +1 -1
- package/{runtime/web/assets/home-CAuh5Wfd.js → vendor/x86_64-apple-darwin/runtime/web/assets/home-zbIbP7lZ.js} +1 -1
- package/vendor/x86_64-apple-darwin/runtime/web/assets/index-N87voRaJ.js +10 -0
- package/{runtime/web/assets/integrations-DlDL0Jcf.js → vendor/x86_64-apple-darwin/runtime/web/assets/integrations-CrH5Zwrx.js} +1 -1
- package/{runtime/web/assets/invite._invitationId-cHFSskYH.js → vendor/x86_64-apple-darwin/runtime/web/assets/invite._invitationId-BNVlt_r5.js} +1 -1
- package/vendor/x86_64-apple-darwin/runtime/web/assets/organization-query-keys-Nzs4DYGL.js +1 -0
- package/{runtime/web/assets/routes-dmjAKWFd.js → vendor/x86_64-apple-darwin/runtime/web/assets/routes-L_FQFmb8.js} +1 -1
- package/{runtime/web/assets/schemas-BdEYnr23.js → vendor/x86_64-apple-darwin/runtime/web/assets/schemas-B9l2tHsR.js} +1 -1
- package/vendor/x86_64-apple-darwin/runtime/web/assets/signin-BQk9Tep_.js +1 -0
- package/vendor/x86_64-apple-darwin/runtime/web/assets/team-BZihiu0p.js +1 -0
- package/{runtime/web/assets/theme-toggle-BFpWdKle.js → vendor/x86_64-apple-darwin/runtime/web/assets/theme-toggle-Dbkaf9rd.js} +1 -1
- package/{runtime/web/assets/use-optimistic-mutation-CAKmieqi.js → vendor/x86_64-apple-darwin/runtime/web/assets/use-optimistic-mutation-uprQGmuH.js} +1 -1
- package/{runtime/web/assets/useBaseQuery-C2vAU945.js → vendor/x86_64-apple-darwin/runtime/web/assets/useBaseQuery-Db103_yu.js} +1 -1
- package/vendor/x86_64-apple-darwin/runtime/web/assets/useQuery-Bt98u4eJ.js +1 -0
- package/vendor/x86_64-apple-darwin/runtime/web/assets/useSuspenseQuery-CiRy35gQ.js +1 -0
- package/{runtime/web/assets/zod-D2loGbpH.js → vendor/x86_64-apple-darwin/runtime/web/assets/zod-D1Kv9xc5.js} +1 -1
- package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/index.html +3 -3
- package/vendor/x86_64-apple-darwin/server/onequery-server +0 -0
- package/bin/onequery.js +0 -215
- package/bin/package-constants.d.ts +0 -81
- package/bin/package-constants.js +0 -222
- package/runtime/web/assets/create-org-E2jCJQ7c.js +0 -1
- package/runtime/web/assets/data-source-connection-form-OTZ5EOdh.js +0 -173
- package/runtime/web/assets/index-pgFcI0zh.js +0 -10
- package/runtime/web/assets/organization-query-keys-uOvv8Ob1.js +0 -1
- package/runtime/web/assets/signin-nept9z5Z.js +0 -1
- package/runtime/web/assets/team-CVJIax_Z.js +0 -1
- package/runtime/web/assets/useQuery-B0_ATM04.js +0 -1
- package/runtime/web/assets/useSuspenseQuery-5enBOgd7.js +0 -1
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/migrations/20260327065242_curious_nightmare.sql +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/migrations/meta/20260327065242_snapshot.json +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/migrations/meta/_journal.json +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/pglite/initdb.wasm +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/pglite/pglite.data +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/pglite/pglite.wasm +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/CompositeItem-BV7KhPQk.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/CompositeList-CX7HHxYw.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/IconArrowRight-DsOD7mDl.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/IconCheck-Gc24xPT2.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/IconChevronDown-B-39MA7-.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/IconCoins-C7Nn0L6R.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/IconHistory-BqAd-xl2.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/IconLoader2-B3B6M8nQ.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/IconPlus-C3-kRhGX.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/IconX-BQkA009b.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/Separator-vw4jPN_6.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/api-base-url-DIb6qukm.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/api-client-w1GRwBWy.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/api-error-KjK7uFAE.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/api-paths-ClEWWGwS.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/app-routes-DdRvA1bK.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/auth-client-BlMeXgb4.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/avatar-DzUYMSvr.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/badge-DHOXVqXh.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/card-Bsy6azfK.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/checkbox-L6MjK5Df.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/compiler-runtime-DCc3R3Xn.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/createReactComponent-_L2mp4Ui.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/empty-COnWCwda.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/getDisabledMountTransitionStyles-BYKRz4ha.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/getPseudoElementBounds-InhM-dWf.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/index-FAyK3-UK.css +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/input-DZ9QHu2b.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/jsx-runtime-DG_AJzB_.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/label-CWOhoN_L.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/link-Cgvqhh5w.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/matchContext-CDajBC0L.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/organization-permissions-BQQ5PJbI.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/query-timing-LGzitMXx.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/queryOptions-BHw87wTZ.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/removable-BfDesq3B.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/select-CxmfKkmB.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/separator-BQc-hryc.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/settings-5_Ep5M2N.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/src-DCIPwIx0.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/table-DCvfJyLS.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/textarea-DiU04l_U.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/useBaseUiId-BLFGpnYJ.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/useCompositeItem-DkdkBgiU.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/useControlled-C1S7R-1A.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/useRender-DFMo54_d.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/useRouterState-DpT8luFk.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/useValueChanged-CqxkrqWn.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/utils-C8DGLIgm.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/assets/xstate-react.esm-BlF76DuP.js +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/images/amplitude/step1_settings_sidebar.png +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/images/amplitude/step2_projects.png +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/images/amplitude/step3_project_keys.png +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/images/amplitude/step4_api_keys.png +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/images/bigquery/step1_service_accounts.png +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/images/bigquery/step2_bigquery_roles.png +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/images/bigquery/step3_add_key_menu.png +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/images/bigquery/step4_create_json_key.png +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/images/ga4/step1_service_accounts.png +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/images/ga4/step2_create_json_key.png +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/images/ga4/step3_add_user_viewer.png +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/images/ga4/step4_property_details.png +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/images/github-token-guide/step1_signin.png +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/images/github-token-guide/step2_new_fine_grained_token_sanitized.png +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/images/github-token-guide/step3_permissions_configured_sanitized.png +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/images/github-token-guide/step4_token_created_sanitized.png +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/images/mixpanel/step1_service_accounts.png +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/images/mixpanel/step2_create_service_account.png +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/images/mixpanel/step3_credentials.png +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/images/mixpanel/step4_project_settings.png +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/images/postgresql/step1_create_user.png +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/images/postgresql/step2_connection.png +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/images/rds/step1_connect.png +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/images/rds/step2_create_user.png +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/images/rds/step3_grant.png +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/images/rds/step4_info.png +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/images/sentry/step1_personal_tokens.png +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/images/sentry/step2_create_token_permissions.png +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/images/sentry/step3_organization_slug.png +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/images/sentry/step4_project_slug.png +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/linear.svg +0 -0
- /package/{runtime → vendor/x86_64-apple-darwin/runtime}/web/onequery.svg +0 -0
package/bin/package-constants.js
DELETED
|
@@ -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};
|