@onequery/cli 0.1.65-win32-arm64 → 0.1.65
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/bin/onequery.js +266 -0
- package/bin/package-constants.d.ts +75 -0
- package/bin/package-constants.js +160 -0
- package/package.json +24 -17
- package/runtime-bundle.json +55 -0
- package/vendor/aarch64-pc-windows-msvc/onequery/onequery.exe +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/CompositeItem-BB408Cyb.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/CompositeList-DbbDW_rT.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/DialogTitle-ChNkcIa6.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/IconArrowRight-DsOD7mDl.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/IconCheck-Gc24xPT2.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/IconChevronDown-B-39MA7-.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/IconChevronRight-DD16tNHZ.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/IconCoins-C7Nn0L6R.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/IconHistory-DuLS8PKF.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/IconLoader2-BpZcTuHV.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/IconPlus-CZiRiEUF.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/IconTerminal2-PxNqcz3d.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/IconX-rRpRFwc5.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/Separator-M05FshHx.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/_authenticated-CcSc_Pt7.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/_org_slug-BvJDit6U.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/alert-BIGxI3XN.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/api-base-url-DIb6qukm.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/api-client-tp8XTpAa.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/api-paths-DcYkf-C_.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/app-routes-CMyon6Em.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/audit-CdPU9Jf2.js +0 -2
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/auth-bootstrap-query-B1MHd_NV.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/auth-client-D-YHMy0G.js +0 -3
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/avatar-SaFoLofF.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/badge-BFPkSrVD.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/budget-CX5MplAP.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/callback-BWQ3ETBy.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/card-Dllm2lhp.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/checkbox-Bii9Pcrx.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/compiler-runtime-DCc3R3Xn.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/connect-database-C1Jb2l53.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/copy-button-BO1KBdf9.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/create-org-BSzKv5ue.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/createReactComponent-_L2mp4Ui.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/data-source-connection-form-CbDL0cgG.js +0 -273
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/device-Bbz7apAX.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/dist-BNi06Dzx.js +0 -3
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/dropdown-menu-Cw2MW0pD.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/empty-DjRo5ytz.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/format-date-Rg05aHXh.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/getDisabledMountTransitionStyles-C0uz3iMh.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/getPseudoElementBounds-CRlxTrfr.js +0 -12
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/home-BNjpNKdt.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/index-B4OsjuJp.css +0 -2
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/index-CXR0dKJj.js +0 -10
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/input-BRu0b1Tq.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/integrations-BWC7iPQ5.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/invite._invitationId-DmJnR4R5.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/jsx-runtime-DG_AJzB_.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/label-f2wVZcni.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/link-Cgvqhh5w.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/matchContext-CDajBC0L.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/organization-permissions-BXV_ess0.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/organization-query-keys-ieaSNxMR.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/query-CY--GYXb.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/query-timing-YBkSOxxF.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/queryOptions-bXtOUR_h.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/routes-CxJ2aoMf.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/schemas-EcBBwCo1.js +0 -64
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/select-yNaL0SXM.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/separator-BH7Gsum-.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/settings-C8us2bWX.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/signin-BgfqB9QB.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/src-C5F1uEDb.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/team-CYPsHFTt.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/textarea-CnA77PLS.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/theme-toggle-CRaDbyxE.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/use-optimistic-mutation-3PPnMc-O.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/useBaseQuery-CO5Q8xm4.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/useBaseUiId-CtNp109T.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/useCompositeItem-D243hyne.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/useControlled-C-85HRFr.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/useQuery-DyOxsY45.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/useRender-CzpKCg11.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/useRouterState-DpT8luFk.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/useSuspenseQuery-CBFRU4At.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/useValueChanged-BNrgSVVM.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/utils-C8DGLIgm.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/xstate-react.esm-Bo3CCIRt.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/zod-D0PWrP9q.js +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/favicon.ico +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/amplitude/step1_settings_sidebar.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/amplitude/step2_projects.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/amplitude/step3_project_keys.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/amplitude/step4_api_keys.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/bigquery/step1_service_accounts.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/bigquery/step2_bigquery_roles.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/bigquery/step3_add_key_menu.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/bigquery/step4_create_json_key.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/cloudflare-workers-observability/step2_enable_workers_logs.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/cloudflare-workers-observability/step3_user_api_tokens.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/cloudflare-workers-observability/step4_create_api_token.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/cloudflare-workers-observability/step5_workers_pages_account_id.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/cloudflare-workers-observability/step6_workers_observability_permission.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/ga4/step1_service_accounts.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/ga4/step2_create_json_key.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/ga4/step3_add_user_viewer.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/ga4/step4_property_details.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/github-token-guide/step1_signin.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/github-token-guide/step2_new_fine_grained_token_sanitized.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/github-token-guide/step3_permissions_configured_sanitized.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/github-token-guide/step4_token_created_sanitized.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/google-search-console/step1_confirm_property.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/google-search-console/step2_scope_selected.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/google-search-console/step3_copy_access_token.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/mixpanel/step1_service_accounts.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/mixpanel/step2_create_service_account.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/mixpanel/step3_credentials.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/mixpanel/step4_project_settings.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/postgresql/step1_create_user.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/postgresql/step2_connection.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/posthog/step1_project_settings.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/posthog/step2_personal_api_keys.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/posthog/step3_create_key_modal.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/rds/step1_connect.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/rds/step2_create_user.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/rds/step3_grant.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/rds/step4_info.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/sentry/step1_personal_tokens.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/sentry/step2_create_token_permissions.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/sentry/step3_organization_slug.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/sentry/step4_project_slug.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/vercel/step1_tokens_page.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/vercel/step2_configure_token.png +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/index.html +0 -47
- package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/onequery.svg +0 -44
- package/vendor/aarch64-pc-windows-msvc/runtime/migrations/20260327065242_curious_nightmare.sql +0 -403
- package/vendor/aarch64-pc-windows-msvc/runtime/migrations/20260403103652_slippery_hellfire_club.sql +0 -8
- package/vendor/aarch64-pc-windows-msvc/runtime/migrations/20260403112219_gigantic_namora.sql +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/migrations/20260420071232_previous_justin_hammer.sql +0 -141
- package/vendor/aarch64-pc-windows-msvc/runtime/migrations/20260420093157_spooky_cassandra_nova.sql +0 -29
- package/vendor/aarch64-pc-windows-msvc/runtime/migrations/20260420101631_even_ogun.sql +0 -5
- package/vendor/aarch64-pc-windows-msvc/runtime/migrations/20260425110519_smart_amazoness.sql +0 -8
- package/vendor/aarch64-pc-windows-msvc/runtime/migrations/20260428033542_rename_source_query_interface_missing.sql +0 -36
- package/vendor/aarch64-pc-windows-msvc/runtime/migrations/20260430114113_jittery_scorpion.sql +0 -28
- package/vendor/aarch64-pc-windows-msvc/runtime/migrations/20260430135906_flippant_timeslip.sql +0 -4
- package/vendor/aarch64-pc-windows-msvc/runtime/migrations/20260502000100_drop_old_workflow_audit_tables.sql +0 -15
- package/vendor/aarch64-pc-windows-msvc/runtime/migrations/20260503011110_moaning_jack_flag.sql +0 -22
- package/vendor/aarch64-pc-windows-msvc/runtime/migrations/20260514143216_reset_workflow_audit_history.sql +0 -20
- package/vendor/aarch64-pc-windows-msvc/runtime/migrations/20260524081943_colorful_firelord.sql +0 -1
- package/vendor/aarch64-pc-windows-msvc/runtime/migrations/meta/20260327065242_snapshot.json +0 -2817
- package/vendor/aarch64-pc-windows-msvc/runtime/migrations/meta/20260403103652_snapshot.json +0 -2864
- package/vendor/aarch64-pc-windows-msvc/runtime/migrations/meta/20260403112219_snapshot.json +0 -2870
- package/vendor/aarch64-pc-windows-msvc/runtime/migrations/meta/20260420071232_snapshot.json +0 -3879
- package/vendor/aarch64-pc-windows-msvc/runtime/migrations/meta/20260420093157_snapshot.json +0 -4088
- package/vendor/aarch64-pc-windows-msvc/runtime/migrations/meta/20260420101631_snapshot.json +0 -3250
- package/vendor/aarch64-pc-windows-msvc/runtime/migrations/meta/20260425110519_snapshot.json +0 -3250
- package/vendor/aarch64-pc-windows-msvc/runtime/migrations/meta/20260428033542_snapshot.json +0 -3250
- package/vendor/aarch64-pc-windows-msvc/runtime/migrations/meta/20260430114113_snapshot.json +0 -3507
- package/vendor/aarch64-pc-windows-msvc/runtime/migrations/meta/20260430135906_snapshot.json +0 -3531
- package/vendor/aarch64-pc-windows-msvc/runtime/migrations/meta/20260503011110_snapshot.json +0 -3089
- package/vendor/aarch64-pc-windows-msvc/runtime/migrations/meta/20260524081943_snapshot.json +0 -3082
- package/vendor/aarch64-pc-windows-msvc/runtime/migrations/meta/_journal.json +0 -104
- package/vendor/aarch64-pc-windows-msvc/runtime/pglite/initdb.wasm +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/pglite/pglite.data +0 -0
- package/vendor/aarch64-pc-windows-msvc/runtime/pglite/pglite.wasm +0 -0
- package/vendor/aarch64-pc-windows-msvc/server/onequery-server.mjs +0 -447972
- package/vendor/aarch64-pc-windows-msvc/server/polyglot_sql_wasm_bg.wasm +0 -0
package/bin/onequery.js
ADDED
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { spawn } from "node:child_process";
|
|
4
|
+
import { chmodSync, existsSync, readFileSync, statSync } from "node:fs";
|
|
5
|
+
import { createRequire } from "node:module";
|
|
6
|
+
import path from "node:path";
|
|
7
|
+
import { fileURLToPath } from "node:url";
|
|
8
|
+
|
|
9
|
+
import {
|
|
10
|
+
CLI_BINARY_NAME,
|
|
11
|
+
CLI_PACKAGE_NAME,
|
|
12
|
+
PLATFORM_PACKAGE_BY_TARGET,
|
|
13
|
+
binaryNameForPlatform,
|
|
14
|
+
resolveTargetTriple,
|
|
15
|
+
resolveTargetTripleCandidates,
|
|
16
|
+
} from "./package-constants.js";
|
|
17
|
+
|
|
18
|
+
const launcherFilePath = fileURLToPath(import.meta.url);
|
|
19
|
+
const launcherDir = path.dirname(launcherFilePath);
|
|
20
|
+
const require = createRequire(import.meta.url);
|
|
21
|
+
const runtimeBundleSpec = readRuntimeBundleSpec(resolveRuntimeBundleSpecPath());
|
|
22
|
+
|
|
23
|
+
const { platform, arch } = process;
|
|
24
|
+
const targetTriple = resolveTargetTriple(platform, arch);
|
|
25
|
+
const targetTripleCandidates = resolveTargetTripleCandidates(platform, arch);
|
|
26
|
+
const binaryName = binaryNameForPlatform(platform, CLI_BINARY_NAME);
|
|
27
|
+
|
|
28
|
+
// CONTEXT: platform packages are installed through npm alias names so the
|
|
29
|
+
// launcher resolves the alias folder, not the underlying published package id.
|
|
30
|
+
const localVendorRoot = path.join(launcherDir, "..", "vendor");
|
|
31
|
+
const resolvedVendor = resolveVendorPayload({
|
|
32
|
+
binaryName,
|
|
33
|
+
localVendorRoot,
|
|
34
|
+
runtimeBundleSpec,
|
|
35
|
+
targetTripleCandidates,
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
if (!resolvedVendor) {
|
|
39
|
+
const preferredPackage = PLATFORM_PACKAGE_BY_TARGET[targetTriple];
|
|
40
|
+
const packageManager = detectPackageManager();
|
|
41
|
+
const reinstallCommand =
|
|
42
|
+
packageManager === "bun"
|
|
43
|
+
? `bun install -g ${CLI_PACKAGE_NAME}@latest`
|
|
44
|
+
: `npm install -g ${CLI_PACKAGE_NAME}@latest`;
|
|
45
|
+
|
|
46
|
+
if (preferredPackage) {
|
|
47
|
+
throw new Error(
|
|
48
|
+
`Missing optional dependency ${preferredPackage}. Reinstall OneQuery CLI: ${reinstallCommand}`
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
throw new Error(`Unsupported target triple: ${targetTriple}`);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
const { binaryPath, bundleRoot } = resolvedVendor;
|
|
56
|
+
const packageManagerEnvVar =
|
|
57
|
+
detectPackageManager() === "bun"
|
|
58
|
+
? "ONEQUERY_MANAGED_BY_BUN"
|
|
59
|
+
: "ONEQUERY_MANAGED_BY_NPM";
|
|
60
|
+
|
|
61
|
+
if (platform !== "win32") {
|
|
62
|
+
ensureExecutable(binaryPath);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
const child = spawn(binaryPath, process.argv.slice(2), {
|
|
66
|
+
env: {
|
|
67
|
+
...process.env,
|
|
68
|
+
[packageManagerEnvVar]: "1",
|
|
69
|
+
[runtimeBundleSpec.runtimeRootEnvVar]:
|
|
70
|
+
process.env[runtimeBundleSpec.runtimeRootEnvVar] ?? bundleRoot,
|
|
71
|
+
},
|
|
72
|
+
stdio: "inherit",
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
child.on("error", (error) => {
|
|
76
|
+
console.error(error);
|
|
77
|
+
process.exit(1);
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
const forwardSignal = (signal) => {
|
|
81
|
+
if (child.killed) {
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
try {
|
|
86
|
+
child.kill(signal);
|
|
87
|
+
} catch {
|
|
88
|
+
// Ignore forwarding failures if the child already exited.
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
["SIGINT", "SIGTERM", "SIGHUP"].forEach((signal) => {
|
|
93
|
+
process.on(signal, () => forwardSignal(signal));
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
const childResult = await new Promise((resolve) => {
|
|
97
|
+
child.on("exit", (code, signal) => {
|
|
98
|
+
if (signal) {
|
|
99
|
+
resolve({ signal, type: "signal" });
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
resolve({ exitCode: code ?? 1, type: "code" });
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
if (childResult.type === "signal") {
|
|
108
|
+
process.kill(process.pid, childResult.signal);
|
|
109
|
+
} else {
|
|
110
|
+
process.exit(childResult.exitCode);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
function detectPackageManager() {
|
|
114
|
+
const userAgent = process.env.npm_config_user_agent ?? "";
|
|
115
|
+
if (/\bbun\//u.test(userAgent)) {
|
|
116
|
+
return "bun";
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
const execPath = process.env.npm_execpath ?? "";
|
|
120
|
+
if (execPath.includes("bun")) {
|
|
121
|
+
return "bun";
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
if (
|
|
125
|
+
launcherDir.includes(".bun/install/global") ||
|
|
126
|
+
launcherDir.includes(".bun\\install\\global")
|
|
127
|
+
) {
|
|
128
|
+
return "bun";
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
return userAgent ? "npm" : null;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
function resolveVendorPayload({
|
|
135
|
+
binaryName,
|
|
136
|
+
localVendorRoot,
|
|
137
|
+
runtimeBundleSpec,
|
|
138
|
+
targetTripleCandidates,
|
|
139
|
+
}) {
|
|
140
|
+
for (const candidateTargetTriple of targetTripleCandidates) {
|
|
141
|
+
const localBundle = resolveBundlePaths({
|
|
142
|
+
binaryName,
|
|
143
|
+
bundleRoot: path.join(localVendorRoot, candidateTargetTriple),
|
|
144
|
+
runtimeBundleSpec,
|
|
145
|
+
});
|
|
146
|
+
|
|
147
|
+
const platformPackage = PLATFORM_PACKAGE_BY_TARGET[candidateTargetTriple];
|
|
148
|
+
if (platformPackage) {
|
|
149
|
+
try {
|
|
150
|
+
const packageJsonPath = require.resolve(
|
|
151
|
+
`${platformPackage}/package.json`
|
|
152
|
+
);
|
|
153
|
+
const resolvedVendorRoot = path.join(
|
|
154
|
+
path.dirname(packageJsonPath),
|
|
155
|
+
"vendor"
|
|
156
|
+
);
|
|
157
|
+
const packagedBundle = resolveBundlePaths({
|
|
158
|
+
binaryName,
|
|
159
|
+
bundleRoot: path.join(resolvedVendorRoot, candidateTargetTriple),
|
|
160
|
+
runtimeBundleSpec,
|
|
161
|
+
});
|
|
162
|
+
if (packagedBundle) {
|
|
163
|
+
return {
|
|
164
|
+
...packagedBundle,
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
} catch {
|
|
168
|
+
// Keep checking fallback targets and local vendor payloads.
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
if (localBundle) {
|
|
173
|
+
return {
|
|
174
|
+
...localBundle,
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
return null;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
function resolveBundlePaths({ binaryName, bundleRoot, runtimeBundleSpec }) {
|
|
183
|
+
const binaryPath = path.join(
|
|
184
|
+
bundleRoot,
|
|
185
|
+
runtimeBundleSpec.directories.cli.relativePath,
|
|
186
|
+
binaryName
|
|
187
|
+
);
|
|
188
|
+
if (!existsSync(binaryPath)) {
|
|
189
|
+
return null;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
return {
|
|
193
|
+
binaryPath,
|
|
194
|
+
bundleRoot,
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
function resolveRuntimeBundleSpecPath() {
|
|
199
|
+
const packagedSpecPath = path.join(launcherDir, "..", "runtime-bundle.json");
|
|
200
|
+
if (existsSync(packagedSpecPath)) {
|
|
201
|
+
return packagedSpecPath;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
// Comment: local workspace execution reads the canonical bundle spec from the
|
|
205
|
+
// repo; published npm packages ship the same file at the package root.
|
|
206
|
+
return path.join(
|
|
207
|
+
launcherDir,
|
|
208
|
+
"..",
|
|
209
|
+
"..",
|
|
210
|
+
"..",
|
|
211
|
+
"packages",
|
|
212
|
+
"base",
|
|
213
|
+
"src",
|
|
214
|
+
"runtime-bundle.json"
|
|
215
|
+
);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
function readRuntimeBundleSpec(specPath) {
|
|
219
|
+
let parsed;
|
|
220
|
+
try {
|
|
221
|
+
parsed = JSON.parse(readFileSync(specPath, "utf8"));
|
|
222
|
+
} catch (error) {
|
|
223
|
+
throw new Error(
|
|
224
|
+
`Failed to read runtime bundle spec at ${specPath}: ${error instanceof Error ? error.message : String(error)}`,
|
|
225
|
+
{ cause: error }
|
|
226
|
+
);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
const runtimeRootEnvVar = readNonEmptyString(parsed?.runtimeRootEnvVar);
|
|
230
|
+
const cliRelativePath = readNonEmptyString(
|
|
231
|
+
parsed?.directories?.cli?.relativePath
|
|
232
|
+
);
|
|
233
|
+
const serverRelativePath = readNonEmptyString(
|
|
234
|
+
parsed?.directories?.server?.relativePath
|
|
235
|
+
);
|
|
236
|
+
if (!runtimeRootEnvVar || !cliRelativePath || !serverRelativePath) {
|
|
237
|
+
throw new Error(`Invalid runtime bundle spec at ${specPath}.`);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
return {
|
|
241
|
+
directories: {
|
|
242
|
+
cli: {
|
|
243
|
+
relativePath: cliRelativePath,
|
|
244
|
+
},
|
|
245
|
+
server: {
|
|
246
|
+
relativePath: serverRelativePath,
|
|
247
|
+
},
|
|
248
|
+
},
|
|
249
|
+
runtimeRootEnvVar,
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
function readNonEmptyString(value) {
|
|
254
|
+
return typeof value === "string" && value.length > 0 ? value : null;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
function ensureExecutable(filePath) {
|
|
258
|
+
const currentMode = statSync(filePath).mode & 0o777;
|
|
259
|
+
if ((currentMode & 0o111) !== 0) {
|
|
260
|
+
return;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
// CONTEXT: npm tarballs store vendored native binaries without execute bits,
|
|
264
|
+
// so restore the expected mode before spawning the packaged CLI binary.
|
|
265
|
+
chmodSync(filePath, currentMode | 0o755);
|
|
266
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
export type TargetTriple =
|
|
2
|
+
| "x86_64-unknown-linux-musl"
|
|
3
|
+
| "aarch64-unknown-linux-musl"
|
|
4
|
+
| "x86_64-apple-darwin"
|
|
5
|
+
| "aarch64-apple-darwin"
|
|
6
|
+
| "x86_64-pc-windows-msvc"
|
|
7
|
+
| "aarch64-pc-windows-msvc"
|
|
8
|
+
| "x86_64-unknown-linux-gnu"
|
|
9
|
+
| "aarch64-unknown-linux-gnu";
|
|
10
|
+
|
|
11
|
+
export type NpmTargetTriple = Exclude<
|
|
12
|
+
TargetTriple,
|
|
13
|
+
"x86_64-unknown-linux-gnu" | "aarch64-unknown-linux-gnu"
|
|
14
|
+
>;
|
|
15
|
+
|
|
16
|
+
export type RuntimePlatform = "linux" | "android" | "darwin" | "win32";
|
|
17
|
+
export type RuntimeArch = "x64" | "arm64";
|
|
18
|
+
|
|
19
|
+
export type PlatformPackage = {
|
|
20
|
+
optionalDependencyName: string;
|
|
21
|
+
npmTag: string;
|
|
22
|
+
targetTriple: NpmTargetTriple;
|
|
23
|
+
os: "linux" | "darwin" | "win32";
|
|
24
|
+
cpu: RuntimeArch;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export type ReleasePlatformPackage = {
|
|
28
|
+
optionalDependencyName: string | null;
|
|
29
|
+
npmTag: string;
|
|
30
|
+
targetTriple: TargetTriple;
|
|
31
|
+
os: "linux" | "darwin" | "win32";
|
|
32
|
+
cpu: RuntimeArch;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export const CLI_PACKAGE_NAME: "@onequery/cli";
|
|
36
|
+
export const CLI_BINARY_NAME: "onequery";
|
|
37
|
+
export const CLI_SERVER_BUNDLE_FILENAME: "onequery-server.mjs";
|
|
38
|
+
export const CLI_NPM_TARBALL_PREFIX: "onequery-npm";
|
|
39
|
+
export const CLI_NPM_STAGE_DIR_PREFIX: `${typeof CLI_NPM_TARBALL_PREFIX}-stage-`;
|
|
40
|
+
export const CLI_NPM_PACK_DIR_PREFIX: `${typeof CLI_NPM_TARBALL_PREFIX}-pack-`;
|
|
41
|
+
export const CLI_STAGE_PACKAGE_DIR_PREFIX: "onequery-cli-";
|
|
42
|
+
|
|
43
|
+
export const PLATFORM_PACKAGES: Record<string, PlatformPackage>;
|
|
44
|
+
export const EXTRA_RELEASE_PLATFORM_PACKAGES: Record<
|
|
45
|
+
string,
|
|
46
|
+
ReleasePlatformPackage
|
|
47
|
+
>;
|
|
48
|
+
export const RELEASE_PLATFORM_PACKAGES: Record<string, ReleasePlatformPackage>;
|
|
49
|
+
export const PLATFORM_PACKAGE_BY_TARGET: Record<NpmTargetTriple, string>;
|
|
50
|
+
|
|
51
|
+
export function serverBundleFilenameForTargetTriple(
|
|
52
|
+
targetTriple: TargetTriple
|
|
53
|
+
): string;
|
|
54
|
+
|
|
55
|
+
export function packageStagingDirPrefix(packageName: string): string;
|
|
56
|
+
|
|
57
|
+
export function binaryNameForPlatform(
|
|
58
|
+
platform: RuntimePlatform | string,
|
|
59
|
+
baseName: string
|
|
60
|
+
): string;
|
|
61
|
+
|
|
62
|
+
export function binaryNameForTargetTriple(
|
|
63
|
+
targetTriple: TargetTriple | string,
|
|
64
|
+
baseName: string
|
|
65
|
+
): string;
|
|
66
|
+
|
|
67
|
+
export function resolveTargetTripleCandidates(
|
|
68
|
+
platform: RuntimePlatform | string,
|
|
69
|
+
arch: RuntimeArch | string
|
|
70
|
+
): TargetTriple[];
|
|
71
|
+
|
|
72
|
+
export function resolveTargetTriple(
|
|
73
|
+
platform: RuntimePlatform | string,
|
|
74
|
+
arch: RuntimeArch | string
|
|
75
|
+
): TargetTriple;
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
export const CLI_PACKAGE_NAME = "@onequery/cli";
|
|
2
|
+
export const CLI_BINARY_NAME = "onequery";
|
|
3
|
+
export const CLI_SERVER_BUNDLE_FILENAME = "onequery-server.mjs";
|
|
4
|
+
export const CLI_NPM_TARBALL_PREFIX = "onequery-npm";
|
|
5
|
+
export const CLI_NPM_STAGE_DIR_PREFIX = `${CLI_NPM_TARBALL_PREFIX}-stage-`;
|
|
6
|
+
export const CLI_NPM_PACK_DIR_PREFIX = `${CLI_NPM_TARBALL_PREFIX}-pack-`;
|
|
7
|
+
export const CLI_STAGE_PACKAGE_DIR_PREFIX = "onequery-cli-";
|
|
8
|
+
|
|
9
|
+
export const PLATFORM_PACKAGES = {
|
|
10
|
+
"cli-darwin-arm64": {
|
|
11
|
+
optionalDependencyName: "onequery-darwin-arm64",
|
|
12
|
+
npmTag: "darwin-arm64",
|
|
13
|
+
targetTriple: "aarch64-apple-darwin",
|
|
14
|
+
os: "darwin",
|
|
15
|
+
cpu: "arm64",
|
|
16
|
+
},
|
|
17
|
+
"cli-darwin-x64": {
|
|
18
|
+
optionalDependencyName: "onequery-darwin-x64",
|
|
19
|
+
npmTag: "darwin-x64",
|
|
20
|
+
targetTriple: "x86_64-apple-darwin",
|
|
21
|
+
os: "darwin",
|
|
22
|
+
cpu: "x64",
|
|
23
|
+
},
|
|
24
|
+
"cli-linux-arm64": {
|
|
25
|
+
optionalDependencyName: "onequery-linux-arm64",
|
|
26
|
+
npmTag: "linux-arm64",
|
|
27
|
+
targetTriple: "aarch64-unknown-linux-musl",
|
|
28
|
+
os: "linux",
|
|
29
|
+
cpu: "arm64",
|
|
30
|
+
},
|
|
31
|
+
"cli-linux-x64": {
|
|
32
|
+
optionalDependencyName: "onequery-linux-x64",
|
|
33
|
+
npmTag: "linux-x64",
|
|
34
|
+
targetTriple: "x86_64-unknown-linux-musl",
|
|
35
|
+
os: "linux",
|
|
36
|
+
cpu: "x64",
|
|
37
|
+
},
|
|
38
|
+
"cli-win32-arm64": {
|
|
39
|
+
optionalDependencyName: "onequery-win32-arm64",
|
|
40
|
+
npmTag: "win32-arm64",
|
|
41
|
+
targetTriple: "aarch64-pc-windows-msvc",
|
|
42
|
+
os: "win32",
|
|
43
|
+
cpu: "arm64",
|
|
44
|
+
},
|
|
45
|
+
"cli-win32-x64": {
|
|
46
|
+
optionalDependencyName: "onequery-win32-x64",
|
|
47
|
+
npmTag: "win32-x64",
|
|
48
|
+
targetTriple: "x86_64-pc-windows-msvc",
|
|
49
|
+
os: "win32",
|
|
50
|
+
cpu: "x64",
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export const EXTRA_RELEASE_PLATFORM_PACKAGES = {
|
|
55
|
+
// COMMENT: Keep GNU Linux release tarballs available on GitHub Releases
|
|
56
|
+
// without adding glibc-specific optional dependencies to the npm install
|
|
57
|
+
// path. The launcher falls back to these local vendor payloads when present.
|
|
58
|
+
"cli-linux-arm64-gnu": {
|
|
59
|
+
optionalDependencyName: null,
|
|
60
|
+
npmTag: "linux-arm64-gnu",
|
|
61
|
+
targetTriple: "aarch64-unknown-linux-gnu",
|
|
62
|
+
os: "linux",
|
|
63
|
+
cpu: "arm64",
|
|
64
|
+
},
|
|
65
|
+
"cli-linux-x64-gnu": {
|
|
66
|
+
optionalDependencyName: null,
|
|
67
|
+
npmTag: "linux-x64-gnu",
|
|
68
|
+
targetTriple: "x86_64-unknown-linux-gnu",
|
|
69
|
+
os: "linux",
|
|
70
|
+
cpu: "x64",
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
export const RELEASE_PLATFORM_PACKAGES = {
|
|
75
|
+
...PLATFORM_PACKAGES,
|
|
76
|
+
...EXTRA_RELEASE_PLATFORM_PACKAGES,
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
export const PLATFORM_PACKAGE_BY_TARGET = Object.fromEntries(
|
|
80
|
+
Object.values(PLATFORM_PACKAGES).map((platformPackage) => [
|
|
81
|
+
platformPackage.targetTriple,
|
|
82
|
+
platformPackage.optionalDependencyName,
|
|
83
|
+
])
|
|
84
|
+
);
|
|
85
|
+
|
|
86
|
+
export function serverBundleFilenameForTargetTriple(targetTriple) {
|
|
87
|
+
switch (targetTriple) {
|
|
88
|
+
case "aarch64-apple-darwin":
|
|
89
|
+
case "aarch64-unknown-linux-musl":
|
|
90
|
+
case "aarch64-unknown-linux-gnu":
|
|
91
|
+
case "aarch64-pc-windows-msvc":
|
|
92
|
+
case "x86_64-apple-darwin":
|
|
93
|
+
case "x86_64-unknown-linux-musl":
|
|
94
|
+
case "x86_64-unknown-linux-gnu":
|
|
95
|
+
case "x86_64-pc-windows-msvc":
|
|
96
|
+
return CLI_SERVER_BUNDLE_FILENAME;
|
|
97
|
+
default:
|
|
98
|
+
throw new Error(`Unsupported server target triple '${targetTriple}'.`);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function packageStagingDirPrefix(packageName) {
|
|
103
|
+
return `${CLI_STAGE_PACKAGE_DIR_PREFIX}${packageName}-`;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function binaryNameForPlatform(platform, baseName) {
|
|
107
|
+
return platform === "win32" ? `${baseName}.exe` : baseName;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function binaryNameForTargetTriple(targetTriple, baseName) {
|
|
111
|
+
return targetTriple.includes("-windows-") ? `${baseName}.exe` : baseName;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export function resolveTargetTripleCandidates(platform, arch) {
|
|
115
|
+
switch (platform) {
|
|
116
|
+
case "linux":
|
|
117
|
+
case "android": {
|
|
118
|
+
switch (arch) {
|
|
119
|
+
case "x64":
|
|
120
|
+
return ["x86_64-unknown-linux-musl", "x86_64-unknown-linux-gnu"];
|
|
121
|
+
case "arm64":
|
|
122
|
+
return ["aarch64-unknown-linux-musl", "aarch64-unknown-linux-gnu"];
|
|
123
|
+
default:
|
|
124
|
+
break;
|
|
125
|
+
}
|
|
126
|
+
break;
|
|
127
|
+
}
|
|
128
|
+
case "darwin": {
|
|
129
|
+
switch (arch) {
|
|
130
|
+
case "x64":
|
|
131
|
+
return ["x86_64-apple-darwin"];
|
|
132
|
+
case "arm64":
|
|
133
|
+
return ["aarch64-apple-darwin"];
|
|
134
|
+
default:
|
|
135
|
+
break;
|
|
136
|
+
}
|
|
137
|
+
break;
|
|
138
|
+
}
|
|
139
|
+
case "win32": {
|
|
140
|
+
switch (arch) {
|
|
141
|
+
case "x64":
|
|
142
|
+
return ["x86_64-pc-windows-msvc"];
|
|
143
|
+
case "arm64":
|
|
144
|
+
return ["aarch64-pc-windows-msvc"];
|
|
145
|
+
default:
|
|
146
|
+
break;
|
|
147
|
+
}
|
|
148
|
+
break;
|
|
149
|
+
}
|
|
150
|
+
default: {
|
|
151
|
+
break;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
throw new Error(`Unsupported platform: ${platform} (${arch})`);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export function resolveTargetTriple(platform, arch) {
|
|
159
|
+
return resolveTargetTripleCandidates(platform, arch)[0];
|
|
160
|
+
}
|
package/package.json
CHANGED
|
@@ -1,28 +1,35 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
"name": "@onequery/cli",
|
|
3
|
+
"version": "0.1.65",
|
|
4
|
+
"description": "OneQuery CLI",
|
|
5
|
+
"homepage": "https://onequery.dev",
|
|
5
6
|
"bugs": {
|
|
6
7
|
"url": "https://github.com/wordbricks/onequery/issues"
|
|
7
8
|
},
|
|
8
|
-
"description": "OneQuery CLI",
|
|
9
|
-
"files": [
|
|
10
|
-
"vendor",
|
|
11
|
-
"README.md"
|
|
12
|
-
],
|
|
13
|
-
"homepage": "https://onequery.dev",
|
|
14
9
|
"license": "Apache-2.0",
|
|
15
|
-
"name": "@onequery/cli",
|
|
16
|
-
"os": [
|
|
17
|
-
"win32"
|
|
18
|
-
],
|
|
19
|
-
"publishConfig": {
|
|
20
|
-
"access": "public"
|
|
21
|
-
},
|
|
22
10
|
"repository": {
|
|
23
11
|
"type": "git",
|
|
24
12
|
"url": "git+https://github.com/wordbricks/onequery.git",
|
|
25
13
|
"directory": "apps/cli"
|
|
26
14
|
},
|
|
27
|
-
"
|
|
15
|
+
"bin": {
|
|
16
|
+
"onequery": "bin/onequery.js"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"bin",
|
|
20
|
+
"runtime-bundle.json",
|
|
21
|
+
"README.md"
|
|
22
|
+
],
|
|
23
|
+
"type": "module",
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public"
|
|
26
|
+
},
|
|
27
|
+
"optionalDependencies": {
|
|
28
|
+
"onequery-darwin-arm64": "npm:@onequery/cli@0.1.65-darwin-arm64",
|
|
29
|
+
"onequery-darwin-x64": "npm:@onequery/cli@0.1.65-darwin-x64",
|
|
30
|
+
"onequery-linux-arm64": "npm:@onequery/cli@0.1.65-linux-arm64",
|
|
31
|
+
"onequery-linux-x64": "npm:@onequery/cli@0.1.65-linux-x64",
|
|
32
|
+
"onequery-win32-arm64": "npm:@onequery/cli@0.1.65-win32-arm64",
|
|
33
|
+
"onequery-win32-x64": "npm:@onequery/cli@0.1.65-win32-x64"
|
|
34
|
+
}
|
|
28
35
|
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"manifestVersion": 1,
|
|
3
|
+
"runtimeRootEnvVar": "ONEQUERY_RUNTIME_ROOT",
|
|
4
|
+
"directories": {
|
|
5
|
+
"cli": {
|
|
6
|
+
"relativePath": "onequery"
|
|
7
|
+
},
|
|
8
|
+
"server": {
|
|
9
|
+
"relativePath": "server"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"runtimeEntries": {
|
|
13
|
+
"migrations": {
|
|
14
|
+
"relativePath": "runtime/migrations"
|
|
15
|
+
},
|
|
16
|
+
"webDist": {
|
|
17
|
+
"relativePath": "runtime/dashboard",
|
|
18
|
+
"requiredFile": "index.html"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"runtimeAssetFamilies": {
|
|
22
|
+
"pglite": {
|
|
23
|
+
"buildOwnerPackage": "@onequery/db",
|
|
24
|
+
"buildSource": {
|
|
25
|
+
"kind": "package-entrypoint-directory",
|
|
26
|
+
"packageSpecifier": "@electric-sql/pglite"
|
|
27
|
+
},
|
|
28
|
+
"files": {
|
|
29
|
+
"pgliteWasm": {
|
|
30
|
+
"filename": "pglite.wasm"
|
|
31
|
+
},
|
|
32
|
+
"initdbWasm": {
|
|
33
|
+
"filename": "initdb.wasm"
|
|
34
|
+
},
|
|
35
|
+
"fsBundle": {
|
|
36
|
+
"filename": "pglite.data"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"packagedPath": "runtime/pglite"
|
|
40
|
+
},
|
|
41
|
+
"polyglotSql": {
|
|
42
|
+
"buildOwnerPackage": "@onequery/server",
|
|
43
|
+
"buildSource": {
|
|
44
|
+
"kind": "package-entrypoint-directory",
|
|
45
|
+
"packageSpecifier": "@polyglot-sql/sdk"
|
|
46
|
+
},
|
|
47
|
+
"files": {
|
|
48
|
+
"wasm": {
|
|
49
|
+
"filename": "polyglot_sql_wasm_bg.wasm"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"packagedPath": "server"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,d as t,f as n}from"./createReactComponent-_L2mp4Ui.js";import{t as r}from"./useCompositeItem-D243hyne.js";function i(i){let{render:a,className:o,state:s=n,props:c=t,refs:l=t,metadata:u,stateAttributesMapping:d,tag:f=`div`,...p}=i,{compositeProps:m,compositeRef:h}=r({metadata:u});return e(f,i,{state:s,ref:[...l,h],props:[m,...c,p],stateAttributesMapping:d})}export{i as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,n as t,t as n}from"./jsx-runtime-DG_AJzB_.js";import{C as r,F as i,S as a,x as o,y as s}from"./createReactComponent-_L2mp4Ui.js";import{$ as c,it as l}from"./getDisabledMountTransitionStyles-C0uz3iMh.js";function u(e,t,n){return Math.floor(e/t)!==n}function d(e,t){return t<0||t>=e.current.length}function f(e,t){return m(e,{disabledIndices:t})}function p(e,t){return m(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function m(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.current.length-1&&y(e,a,r));return a}function h(e,{event:t,orientation:n,loopFocus:r,rtl:i,cols:a,disabledIndices:o,minIndex:s,maxIndex:f,prevIndex:p,stopEvent:h=!1}){let g=p,_=[],v={},b=!1;{let t=null,n=-1;e.current.forEach((e,r)=>{if(e==null)return;let i=e.closest(`[role="row"]`);i&&(b=!0),(i!==t||n===-1)&&(t=i,n+=1,_[n]=[]),_[n].push(r),v[r]=n})}let x=b&&_.length>0&&_.some(e=>e.length!==a);function S(t){if(!x||p===-1)return;let n=v[p];if(n==null)return;let i=_[n].indexOf(p),a=t===`up`?n-1:n+1;r&&(a<0?a=_.length-1:a>=_.length&&(a=0));let s=new Set;for(;a>=0&&a<_.length&&!s.has(a);){s.add(a);let n=_[a];if(n.length===0){a=t===`up`?a-1:a+1;continue}let c=Math.min(i,n.length-1);for(let t=c;t>=0;--t){let r=n[t];if(!y(e,r,o))return r}a=t===`up`?a-1:a+1,r&&(a<0?a=_.length-1:a>=_.length&&(a=0))}}if(t.key===`ArrowUp`){let n=S(`up`);if(n!==void 0)h&&l(t),g=n;else{if(h&&l(t),p===-1)g=f;else if(g=m(e,{startingIndex:g,amount:a,decrement:!0,disabledIndices:o}),r&&(p-a<s||g<0)){let e=p%a,t=f%a,n=f-(t-e);g=t===e?f:t>e?n:n-a}d(e,g)&&(g=p)}}if(t.key===`ArrowDown`){let n=S(`down`);n===void 0?(h&&l(t),p===-1?g=s:(g=m(e,{startingIndex:p,amount:a,disabledIndices:o}),r&&p+a>f&&(g=m(e,{startingIndex:p%a-a,amount:a,disabledIndices:o}))),d(e,g)&&(g=p)):(h&&l(t),g=n)}if(n===`both`){let n=c(p/a);t.key===(i?`ArrowLeft`:`ArrowRight`)&&(h&&l(t),p%a===a-1?r&&(g=m(e,{startingIndex:p-p%a-1,disabledIndices:o})):(g=m(e,{startingIndex:p,disabledIndices:o}),r&&u(g,a,n)&&(g=m(e,{startingIndex:p-p%a-1,disabledIndices:o}))),u(g,a,n)&&(g=p)),t.key===(i?`ArrowRight`:`ArrowLeft`)&&(h&&l(t),p%a===0?r&&(g=m(e,{startingIndex:p+(a-p%a),decrement:!0,disabledIndices:o})):(g=m(e,{startingIndex:p,decrement:!0,disabledIndices:o}),r&&u(g,a,n)&&(g=m(e,{startingIndex:p+(a-p%a),decrement:!0,disabledIndices:o}))),u(g,a,n)&&(g=p));let s=c(f/a)===n;d(e,g)&&(g=r&&s?t.key===(i?`ArrowRight`:`ArrowLeft`)?f:m(e,{startingIndex:p-p%a-1,disabledIndices:o}):p)}return g}function g(e,t,n){let r=[],i=0;return e.forEach(({width:e,height:a},o)=>{let s=!1;for(n&&(i=0);!s;){let n=[];for(let r=0;r<e;r+=1)for(let e=0;e<a;e+=1)n.push(i+r+e*t);i%t+e<=t&&n.every(e=>r[e]==null)?(n.forEach(e=>{r[e]=o}),s=!0):i+=1}}),[...r]}function _(e,t,n,r,i){if(e===-1)return-1;let a=n.indexOf(e),o=t[e];switch(i){case`tl`:return a;case`tr`:return o?a+o.width-1:a;case`bl`:return o?a+(o.height-1)*r:a;case`br`:return n.lastIndexOf(e);default:return-1}}function v(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])}function y(e,t,n){if(typeof n==`function`)return n(t);if(n)return n.includes(t);let r=e.current[t];return r?r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`:!1}var b=`ArrowUp`,x=`ArrowDown`,S=`ArrowLeft`,C=`ArrowRight`,w=`Home`,T=new Set([S,C]),E=new Set([S,C,w,`End`]),D=new Set([b,x]),O=new Set([b,x,w,`End`]),k=new Set([...T,...D]),A=new Set([...k,w,`End`]),j=new Set([b,x,S,C,w,`End`]),M=new Set([`Shift`,`Control`,`Alt`,`Meta`]);function N(e){return i(e)&&e.tagName===`INPUT`}function P(e){return!!(N(e)&&e.selectionStart!=null||i(e)&&e.tagName===`TEXTAREA`)}function F(e,t,n,r){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,a=e.scrollTop,o=e.clientWidth<e.scrollWidth,s=e.clientHeight<e.scrollHeight;if(o&&r!==`vertical`){let r=I(e,t,`left`),a=L(e),o=L(t);n===`ltr`&&(r+t.offsetWidth+o.scrollMarginRight>e.scrollLeft+e.clientWidth-a.scrollPaddingRight?i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight:r-o.scrollMarginLeft<e.scrollLeft+a.scrollPaddingLeft&&(i=r-o.scrollMarginLeft-a.scrollPaddingLeft)),n===`rtl`&&(r-o.scrollMarginRight<e.scrollLeft+a.scrollPaddingLeft?i=r-o.scrollMarginLeft-a.scrollPaddingLeft:r+t.offsetWidth+o.scrollMarginRight>e.scrollLeft+e.clientWidth-a.scrollPaddingRight&&(i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight))}if(s&&r!==`horizontal`){let n=I(e,t,`top`),r=L(e),i=L(t);n-i.scrollMarginTop<e.scrollTop+r.scrollPaddingTop?a=n-i.scrollMarginTop-r.scrollPaddingTop:n+t.offsetHeight+i.scrollMarginBottom>e.scrollTop+e.clientHeight-r.scrollPaddingBottom&&(a=n+t.offsetHeight+i.scrollMarginBottom-e.clientHeight+r.scrollPaddingBottom)}e.scrollTo({left:i,top:a,behavior:`auto`})}function I(e,t,n){let r=n===`left`?`offsetLeft`:`offsetTop`,i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);)t=t.offsetParent;return i}function L(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}var R=e(t()),z=R.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function B(){return R.useContext(z)}var V=function(e){return e[e.None=0]=`None`,e[e.GuessFromOrder=1]=`GuessFromOrder`,e}({});function H(e={}){let{label:t,metadata:n,textRef:r,indexGuessBehavior:i,index:a}=e,{register:s,unregister:c,subscribeMapChange:l,elementsRef:u,labelsRef:d,nextIndexRef:f}=B(),p=R.useRef(-1),[m,h]=R.useState(a??(i===V.GuessFromOrder?()=>{if(p.current===-1){let e=f.current;f.current+=1,p.current=e}return p.current}:-1)),g=R.useRef(null),_=R.useCallback(e=>{if(g.current=e,m!==-1&&e!==null&&(u.current[m]=e,d)){let n=t!==void 0;d.current[m]=n?t:r?.current?.textContent??e.textContent}},[m,u,d,t,r]);return o(()=>{if(a!=null)return;let e=g.current;if(e)return s(e,n),()=>{c(e)}},[a,s,c,n]),o(()=>{if(a==null)return l(e=>{let t=g.current?e.get(g.current)?.index:null;t!=null&&h(t)})},[a,l,h]),R.useMemo(()=>({ref:_,index:m}),[m,_])}var U=R.createContext(void 0);function W(e){let t=R.useContext(U);if(t===void 0&&!e)throw Error(s(69));return t}var G=n();function K(e){let{children:t,elementsRef:n,labelsRef:i,onMapChange:s}=e,c=a(s),l=R.useRef(0),u=r(J).current,d=r(q).current,[f,p]=R.useState(0),m=R.useRef(f),h=a((e,t)=>{d.set(e,t??null),m.current+=1,p(m.current)}),g=a(e=>{d.delete(e),m.current+=1,p(m.current)}),_=R.useMemo(()=>{let e=new Map;return Array.from(d.keys()).filter(e=>e.isConnected).sort(Y).forEach((t,n)=>{let r=d.get(t)??{};e.set(t,{...r,index:n})}),e},[d,f]);o(()=>{if(typeof MutationObserver!=`function`||_.size===0)return;let e=new MutationObserver(e=>{let t=new Set,n=e=>t.has(e)?t.delete(e):t.add(e);e.forEach(e=>{e.removedNodes.forEach(n),e.addedNodes.forEach(n)}),t.size===0&&(m.current+=1,p(m.current))});return _.forEach((t,n)=>{n.parentElement&&e.observe(n.parentElement,{childList:!0})}),()=>{e.disconnect()}},[_]),o(()=>{m.current===f&&(n.current.length!==_.size&&(n.current.length=_.size),i&&i.current.length!==_.size&&(i.current.length=_.size),l.current=_.size),c(_)},[c,_,n,i,f]),o(()=>()=>{n.current=[]},[n]),o(()=>()=>{i&&(i.current=[])},[i]);let v=a(e=>(u.add(e),()=>{u.delete(e)}));o(()=>{u.forEach(e=>e(_))},[u,_]);let y=R.useMemo(()=>({register:h,unregister:g,subscribeMapChange:v,elementsRef:n,labelsRef:i,nextIndexRef:l}),[h,g,v,n,i,l]);return(0,G.jsx)(z.Provider,{value:y,children:t})}function q(){return new Map}function J(){return new Set}function Y(e,t){let n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}export{v as C,d as D,f as E,y as O,_ as S,p as T,O as _,A as a,g as b,S as c,j as d,w as f,D as g,M as h,H as i,C as l,E as m,W as n,x as o,T as p,V as r,k as s,K as t,b as u,P as v,h as w,m as x,F as y};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,n as t,t as n}from"./jsx-runtime-DG_AJzB_.js";import{C as r,S as i,a,g as o,y as s}from"./createReactComponent-_L2mp4Ui.js";import{E as c,O as l,S as u,T as d,a as f,b as p,ct as m,dt as h,f as g,g as _,h as v,l as y,m as b,o as x,p as S,u as C,y as w}from"./getDisabledMountTransitionStyles-C0uz3iMh.js";import{d as T}from"./CompositeList-DbbDW_rT.js";import{c as E,i as D,n as O,t as k}from"./useBaseUiId-CtNp109T.js";import{a as A,i as j,l as M,n as N,r as P}from"./getPseudoElementBounds-CRlxTrfr.js";import{n as F}from"./Separator-M05FshHx.js";var I=e(t()),L=I.createContext(void 0);function R(e){let t=I.useContext(L);if(e===!1&&t===void 0)throw Error(s(27));return t}var z={...x,...p},B=I.forwardRef(function(e,t){let{render:n,className:r,forceRender:i=!1,...o}=e,{store:s}=R(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`),d=s.useState(`transitionStatus`);return a(`div`,e,{state:I.useMemo(()=>({open:c,transitionStatus:d}),[c,d]),ref:[s.context.backdropRef,t],stateAttributesMapping:z,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:i||!l})}),V=I.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,nativeButton:s=!0,...c}=e,{store:l}=R(),u=l.useState(`open`);function d(e){u&&l.setOpen(!1,O(D,e.nativeEvent))}let{getButtonProps:f,buttonRef:p}=o({disabled:i,native:s});return a(`button`,e,{state:I.useMemo(()=>({disabled:i}),[i]),ref:[t,p],props:[{onClick:d},c,f]})}),H=I.forwardRef(function(e,t){let{render:n,className:r,id:i,...o}=e,{store:s}=R(),c=k(i);return s.useSyncedValueWithCleanup(`descriptionElementId`,c),a(`p`,e,{ref:t,props:[{id:c},o]})}),U=function(e){return e.nestedDialogs=`--nested-dialogs`,e}({}),W=function(e){return e[e.open=f.open]=`open`,e[e.closed=f.closed]=`closed`,e[e.startingStyle=f.startingStyle]=`startingStyle`,e[e.endingStyle=f.endingStyle]=`endingStyle`,e.nested=`data-nested`,e.nestedDialogOpen=`data-nested-dialog-open`,e}({}),G=I.createContext(void 0);function K(){let e=I.useContext(G);if(e===void 0)throw Error(s(26));return e}var q=n(),J={...x,...p,nestedDialogOpen(e){return e?{[W.nestedDialogOpen]:``}:null}},Y=I.forwardRef(function(e,t){let{className:n,finalFocus:r,initialFocus:i,render:o,...s}=e,{store:c}=R(),l=c.useState(`descriptionElementId`),u=c.useState(`disablePointerDismissal`),d=c.useState(`floatingRootContext`),f=c.useState(`popupProps`),p=c.useState(`modal`),m=c.useState(`mounted`),h=c.useState(`nested`),g=c.useState(`nestedOpenDialogCount`),_=c.useState(`open`),v=c.useState(`openMethod`),y=c.useState(`titleElementId`),b=c.useState(`transitionStatus`),x=c.useState(`role`);K(),w({open:_,ref:c.context.popupRef,onComplete(){_&&c.context.onOpenChangeComplete?.(!0)}});function S(e){return e===`touch`?c.context.popupRef.current:!0}let C=i===void 0?S:i,E=g>0,D=a(`div`,e,{state:I.useMemo(()=>({open:_,nested:h,transitionStatus:b,nestedDialogOpen:E}),[_,h,b,E]),props:[f,{"aria-labelledby":y??void 0,"aria-describedby":l??void 0,role:x,tabIndex:-1,hidden:!m,onKeyDown(e){T.has(e.key)&&e.stopPropagation()},style:{[U.nestedDialogs]:g}},s],ref:[t,c.context.popupRef,c.useStateSetter(`popupElement`)],stateAttributesMapping:J});return(0,q.jsx)(M,{context:d,openInteractionType:v,disabled:!m,closeOnFocusOut:!u,initialFocus:C,returnFocus:r,modal:p!==!1,restoreFocus:`popup`,children:D})}),X=I.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i}=R(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,q.jsx)(G.Provider,{value:n,children:(0,q.jsxs)(l,{ref:t,...r,children:[a&&o===!0&&(0,q.jsx)(j,{ref:i.context.internalBackdropRef,inert:A(!s)}),e.children]})}):null});function Z(e){let{store:t,parentContext:n,actionsRef:r}=e,a=t.useState(`open`),o=t.useState(`disablePointerDismissal`),s=t.useState(`modal`),l=t.useState(`popupElement`),{openMethod:u,triggerProps:d,reset:f}=N(a);v(t);let{forceUnmount:p}=_(a,t,()=>{f()}),g=i(e=>{let n=O(e);return n.preventUnmountOnClose=()=>{t.set(`preventUnmountingOnClose`,!0)},n}),b=I.useCallback(()=>{t.setOpen(!1,g(E))},[t,g]);I.useImperativeHandle(r,()=>({unmount:p,close:b}),[p,b]);let x=C({popupStore:t,onOpenChange:t.setOpen,treatPopupAsFloatingElement:!0,noEmit:!0}),[S,w]=I.useState(0),T=S===0,D=F(x),k=c(x,{outsidePressEvent(){return t.context.internalBackdropRef.current||t.context.backdropRef.current?`intentional`:{mouse:s===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(e){if(`button`in e&&e.button!==0||`touches`in e&&e.touches.length!==1)return!1;let n=h(e);if(T&&!o){let e=n;return s&&(t.context.internalBackdropRef.current||t.context.backdropRef.current)?t.context.internalBackdropRef.current===e||t.context.backdropRef.current===e||m(e,l)&&!e?.hasAttribute(`data-base-ui-portal`):!0}return!1},escapeKey:T});P(a&&s===!0,l);let{getReferenceProps:A,getFloatingProps:j,getTriggerProps:M}=y([D,k]);t.useContextCallback(`onNestedDialogOpen`,e=>{w(e+1)}),t.useContextCallback(`onNestedDialogClose`,()=>{w(0)}),I.useEffect(()=>(n?.onNestedDialogOpen&&a&&n.onNestedDialogOpen(S),n?.onNestedDialogClose&&!a&&n.onNestedDialogClose(),()=>{n?.onNestedDialogClose&&a&&n.onNestedDialogClose()}),[a,n,S]);let L=I.useMemo(()=>A(d),[A,d]),R=I.useMemo(()=>M(d),[M,d]),z=I.useMemo(()=>j(),[j]);t.useSyncedValues({openMethod:u,activeTriggerProps:L,inactiveTriggerProps:R,popupProps:z,floatingRootContext:x,nestedOpenDialogCount:S})}var Q={...S,modal:d(e=>e.modal),nested:d(e=>e.nested),nestedOpenDialogCount:d(e=>e.nestedOpenDialogCount),disablePointerDismissal:d(e=>e.disablePointerDismissal),openMethod:d(e=>e.openMethod),descriptionElementId:d(e=>e.descriptionElementId),titleElementId:d(e=>e.titleElementId),viewportElement:d(e=>e.viewportElement),role:d(e=>e.role)},$=class extends u{constructor(e){super(ee(e),{popupRef:I.createRef(),backdropRef:I.createRef(),internalBackdropRef:I.createRef(),triggerElements:new b,onOpenChange:void 0,onOpenChangeComplete:void 0},Q)}setOpen=(e,t)=>{if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;let n={open:e,nativeEvent:t.event,reason:t.reason,nested:this.state.nested};this.state.floatingRootContext.context.events?.emit(`openchange`,n);let r={open:e},i=t.trigger?.id??null;(i||e)&&(r.activeTriggerId=i,r.activeTriggerElement=t.trigger??null),this.update(r)}};function ee(e={}){return{...g(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,role:`dialog`,...e}}function te(e){let{children:t,open:n,defaultOpen:i=!1,onOpenChange:a,onOpenChangeComplete:o,disablePointerDismissal:s=!1,modal:c=!0,actionsRef:l,handle:u,triggerId:d,defaultTriggerId:f=null}=e,p=R(!0),m=!!p,h=r(()=>u?.store??new $({open:n??i,activeTriggerId:d===void 0?f:d,modal:c,disablePointerDismissal:s,nested:m})).current;h.useControlledProp(`open`,n,i),h.useControlledProp(`activeTriggerId`,d,f),h.useSyncedValues({disablePointerDismissal:s,nested:m,modal:c}),h.useContextCallback(`onOpenChange`,a),h.useContextCallback(`onOpenChangeComplete`,o);let g=h.useState(`payload`);Z({store:h,actionsRef:l,parentContext:p?.store.context,onOpenChange:a,triggerIdProp:d});let _=I.useMemo(()=>({store:h}),[h]);return(0,q.jsx)(L.Provider,{value:_,children:typeof t==`function`?t({payload:g}):t})}var ne=I.forwardRef(function(e,t){let{render:n,className:r,id:i,...o}=e,{store:s}=R(),c=k(i);return s.useSyncedValueWithCleanup(`titleElementId`,c),a(`h2`,e,{ref:t,props:[{id:c},o]})});export{H as a,R as c,Y as i,te as n,V as o,X as r,B as s,ne as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./createReactComponent-_L2mp4Ui.js";var t=e(`outline`,`arrow-right`,`ArrowRight`,[[`path`,{d:`M5 12l14 0`,key:`svg-0`}],[`path`,{d:`M13 18l6 -6`,key:`svg-1`}],[`path`,{d:`M13 6l6 6`,key:`svg-2`}]]);export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./createReactComponent-_L2mp4Ui.js";var t=e(`outline`,`check`,`Check`,[[`path`,{d:`M5 12l5 5l10 -10`,key:`svg-0`}]]);export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./createReactComponent-_L2mp4Ui.js";var t=e(`outline`,`chevron-down`,`ChevronDown`,[[`path`,{d:`M6 9l6 6l6 -6`,key:`svg-0`}]]);export{t};
|
package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/IconChevronRight-DD16tNHZ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./createReactComponent-_L2mp4Ui.js";var t=e(`outline`,`chevron-right`,`ChevronRight`,[[`path`,{d:`M9 6l6 6l-6 6`,key:`svg-0`}]]);export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./createReactComponent-_L2mp4Ui.js";var t=e(`outline`,`coins`,`Coins`,[[`path`,{d:`M9 14c0 1.657 2.686 3 6 3s6 -1.343 6 -3s-2.686 -3 -6 -3s-6 1.343 -6 3`,key:`svg-0`}],[`path`,{d:`M9 14v4c0 1.656 2.686 3 6 3s6 -1.344 6 -3v-4`,key:`svg-1`}],[`path`,{d:`M3 6c0 1.072 1.144 2.062 3 2.598s4.144 .536 6 0c1.856 -.536 3 -1.526 3 -2.598c0 -1.072 -1.144 -2.062 -3 -2.598s-4.144 -.536 -6 0c-1.856 .536 -3 1.526 -3 2.598`,key:`svg-2`}],[`path`,{d:`M3 6v10c0 .888 .772 1.45 2 2`,key:`svg-3`}],[`path`,{d:`M3 11c0 .888 .772 1.45 2 2`,key:`svg-4`}]]);export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./createReactComponent-_L2mp4Ui.js";var t=e(`outline`,`history`,`History`,[[`path`,{d:`M12 8l0 4l2 2`,key:`svg-0`}],[`path`,{d:`M3.05 11a9 9 0 1 1 .5 4m-.5 5v-5h5`,key:`svg-1`}]]);export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./createReactComponent-_L2mp4Ui.js";var t=e(`outline`,`loader-2`,`Loader2`,[[`path`,{d:`M12 3a9 9 0 1 0 9 9`,key:`svg-0`}]]);export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./createReactComponent-_L2mp4Ui.js";var t=e(`outline`,`plus`,`Plus`,[[`path`,{d:`M12 5l0 14`,key:`svg-0`}],[`path`,{d:`M5 12l14 0`,key:`svg-1`}]]);export{t};
|