@qvac/sdk 0.23.0 → 0.24.0
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/NOTICE +115 -58
- package/README.md +10 -13
- package/dist/examples/asr/parakeet-sortformer.js +24 -14
- package/dist/examples/asr/parakeet-transcribepsy-filesystem.js +40 -11
- package/dist/examples/asr/parakeet-unified-coreml.js +14 -9
- package/dist/examples/asr/whispercpp-prompt.js +9 -5
- package/dist/examples/assess-model-fit.d.ts +7 -9
- package/dist/examples/assess-model-fit.js +22 -43
- package/dist/examples/calc-tokens.d.ts +2 -0
- package/dist/examples/calc-tokens.js +21 -0
- package/dist/examples/classification/classify-image.js +11 -5
- package/dist/examples/completion-stop-reason.d.ts +3 -3
- package/dist/examples/completion-stop-reason.js +4 -4
- package/dist/examples/diffusion-flux3-klein.d.ts +2 -0
- package/dist/examples/diffusion-flux3-klein.js +102 -0
- package/dist/examples/diffusion-moss-image.d.ts +2 -0
- package/dist/examples/diffusion-moss-image.js +126 -0
- package/dist/examples/diffusion-qwen-image-21.js +15 -4
- package/dist/examples/embed-multimodal.d.ts +2 -0
- package/dist/examples/embed-multimodal.js +80 -0
- package/dist/examples/embed-p2p.js +2 -2
- package/dist/examples/image/megaloc.d.ts +2 -0
- package/dist/examples/image/megaloc.js +37 -0
- package/dist/examples/llamacpp-multimodal.js +18 -0
- package/dist/examples/rag/rag-hyperdb/pipeline.js +2 -2
- package/dist/examples/rag/rag-turbovec.js +2 -2
- package/dist/examples/sessions.d.ts +17 -0
- package/dist/examples/sessions.js +63 -0
- package/dist/examples/tools/llamacpp-deferred-tools.js +8 -4
- package/dist/scripts/check-resource-collectors-packaging.js +7 -6
- package/dist/scripts/contract/build-contract.d.ts +2 -1
- package/dist/scripts/contract/build-contract.js +13 -1
- package/dist/scripts/contract/constants-registry.d.ts +17 -0
- package/dist/scripts/contract/constants-registry.js +8 -2
- package/dist/scripts/contract/method-shapes.d.ts +4 -0
- package/dist/scripts/contract/method-shapes.js +4 -0
- package/dist/scripts/enforce-inference-versions.d.ts +1 -1
- package/dist/scripts/enforce-inference-versions.js +28 -18
- package/dist/scripts/generate-bare-kit-runtimes.js +101 -69
- package/dist/src/client/api/assess-model-fit.d.ts +17 -17
- package/dist/src/client/api/assess-model-fit.js +18 -31
- package/dist/src/client/api/audio-edit.d.ts +5 -3
- package/dist/src/client/api/audio-edit.js +5 -3
- package/dist/src/client/api/audio-gen-result.js +134 -45
- package/dist/src/client/api/audio-gen.d.ts +40 -3
- package/dist/src/client/api/audio-gen.js +40 -3
- package/dist/src/client/api/audio-understand.d.ts +2 -2
- package/dist/src/client/api/audio-understand.js +2 -2
- package/dist/src/client/api/batch-completion.js +2 -1
- package/dist/src/client/api/calc-tokens.d.ts +33 -0
- package/dist/src/client/api/calc-tokens.js +44 -0
- package/dist/src/client/api/cancel.d.ts +2 -2
- package/dist/src/client/api/cancel.js +2 -2
- package/dist/src/client/api/classify.d.ts +12 -5
- package/dist/src/client/api/classify.js +17 -5
- package/dist/src/client/api/client-request-id.d.ts +0 -15
- package/dist/src/client/api/client-request-id.js +15 -12
- package/dist/src/client/api/completion-stream.d.ts +8 -1
- package/dist/src/client/api/completion-stream.js +10 -1
- package/dist/src/client/api/delete-cache.d.ts +9 -2
- package/dist/src/client/api/delete-cache.js +13 -3
- package/dist/src/client/api/diffusion.d.ts +20 -4
- package/dist/src/client/api/diffusion.js +23 -5
- package/dist/src/client/api/embed.d.ts +82 -29
- package/dist/src/client/api/embed.js +64 -19
- package/dist/src/client/api/get-model-info.d.ts +2 -2
- package/dist/src/client/api/get-model-info.js +2 -2
- package/dist/src/client/api/get-system-resources.d.ts +2 -2
- package/dist/src/client/api/get-system-resources.js +2 -2
- package/dist/src/client/api/heartbeat.d.ts +3 -2
- package/dist/src/client/api/heartbeat.js +3 -2
- package/dist/src/client/api/index.d.ts +4 -3
- package/dist/src/client/api/index.js +2 -1
- package/dist/src/client/api/invoke-plugin.d.ts +8 -2
- package/dist/src/client/api/invoke-plugin.js +17 -2
- package/dist/src/client/api/load-model.js +5 -2
- package/dist/src/client/api/ocr.d.ts +5 -3
- package/dist/src/client/api/ocr.js +44 -21
- package/dist/src/client/api/rag.d.ts +1 -1
- package/dist/src/client/api/rag.js +1 -1
- package/dist/src/client/api/registry.d.ts +17 -7
- package/dist/src/client/api/registry.js +37 -12
- package/dist/src/client/api/resume.d.ts +2 -1
- package/dist/src/client/api/resume.js +2 -2
- package/dist/src/client/api/rpc-server.d.ts +4 -4
- package/dist/src/client/api/rpc-server.js +10 -10
- package/dist/src/client/api/state.d.ts +2 -2
- package/dist/src/client/api/state.js +2 -2
- package/dist/src/client/api/subscribe-logs.d.ts +2 -2
- package/dist/src/client/api/subscribe-logs.js +2 -2
- package/dist/src/client/api/suspend.d.ts +4 -2
- package/dist/src/client/api/suspend.js +4 -3
- package/dist/src/client/api/text-to-speech.d.ts +14 -5
- package/dist/src/client/api/text-to-speech.js +83 -29
- package/dist/src/client/api/transcribe.d.ts +6 -2
- package/dist/src/client/api/transcribe.js +7 -1
- package/dist/src/client/api/unload-model.d.ts +19 -7
- package/dist/src/client/api/unload-model.js +29 -11
- package/dist/src/client/api/upscale.d.ts +6 -3
- package/dist/src/client/api/upscale.js +9 -4
- package/dist/src/client/api/vector-index.d.ts +50 -16
- package/dist/src/client/api/vector-index.js +100 -48
- package/dist/src/client/api/video-request.d.ts +5 -5
- package/dist/src/client/api/video.d.ts +3 -2
- package/dist/src/client/api/video.js +3 -2
- package/dist/src/client/api/vla.d.ts +9 -5
- package/dist/src/client/api/vla.js +17 -8
- package/dist/src/client/api/world.d.ts +5 -5
- package/dist/src/client/api/world.js +4 -4
- package/dist/src/client/init-hooks.d.ts +6 -4
- package/dist/src/client/init-hooks.js +12 -15
- package/dist/src/client/logging-stream-registry.d.ts +6 -3
- package/dist/src/client/logging-stream-registry.js +31 -12
- package/dist/src/client/rpc/bundle-stamp.d.ts +29 -0
- package/dist/src/client/rpc/bundle-stamp.js +75 -0
- package/dist/src/client/rpc/expo-home-dir.d.ts +2 -0
- package/dist/src/client/rpc/expo-home-dir.js +4 -0
- package/dist/src/client/rpc/expo-rpc-client.js +189 -135
- package/dist/src/client/rpc/node-rpc-client.js +322 -413
- package/dist/src/client/rpc/pear-runtime.d.ts +12 -0
- package/dist/src/client/rpc/pear-runtime.js +12 -0
- package/dist/src/client/rpc/rpc-client.d.ts +5 -4
- package/dist/src/client/rpc/rpc-client.js +126 -23
- package/dist/src/client/rpc/rpc-error.js +21 -2
- package/dist/src/client/rpc/unbundled-harness.d.ts +16 -0
- package/dist/src/client/rpc/unbundled-harness.js +27 -0
- package/dist/src/client/rpc/worker-failure.d.ts +27 -0
- package/dist/src/client/rpc/worker-failure.js +61 -0
- package/dist/src/client/session-registry.d.ts +75 -0
- package/dist/src/client/session-registry.js +149 -0
- package/dist/src/client/session.d.ts +125 -0
- package/dist/src/client/session.js +148 -0
- package/dist/src/commands/bundle/addons.d.ts +14 -0
- package/dist/src/commands/bundle/addons.js +65 -0
- package/dist/src/commands/bundle/constants.js +1 -0
- package/dist/src/commands/bundle/entry-gen.d.ts +1 -5
- package/dist/src/commands/bundle/entry-gen.js +17 -50
- package/dist/src/commands/bundle/index.d.ts +59 -13
- package/dist/src/commands/bundle/index.js +345 -121
- package/dist/src/commands/bundle/link.d.ts +58 -0
- package/dist/src/commands/bundle/link.js +135 -0
- package/dist/src/commands/bundle/node-support.d.ts +13 -0
- package/dist/src/commands/bundle/node-support.js +23 -0
- package/dist/src/commands/bundle/read-bundle.d.ts +9 -0
- package/dist/src/commands/bundle/read-bundle.js +27 -0
- package/dist/src/commands/bundle/resolve-sdk-import.d.ts +6 -0
- package/dist/src/commands/bundle/resolve-sdk-import.js +24 -28
- package/dist/src/commands/bundle/scratch.d.ts +35 -0
- package/dist/src/commands/bundle/scratch.js +178 -0
- package/dist/src/commands/bundle/targets.d.ts +14 -0
- package/dist/src/commands/bundle/targets.js +37 -0
- package/dist/src/commands/host-prebuilds/index.d.ts +5 -4
- package/dist/src/commands/host-prebuilds/index.js +9 -7
- package/dist/src/commands/index.d.ts +4 -3
- package/dist/src/commands/verify/abi.d.ts +20 -14
- package/dist/src/commands/verify/abi.js +11 -79
- package/dist/src/commands/verify/bare-kit-runtime.d.ts +20 -22
- package/dist/src/commands/verify/bare-kit-runtime.js +102 -150
- package/dist/src/commands/verify/bare-kit-runtimes.d.ts +10 -9
- package/dist/src/commands/verify/bare-kit-runtimes.js +21 -21
- package/dist/src/commands/verify/bundle-source.js +25 -21
- package/dist/src/commands/verify/engines-advice.d.ts +2 -8
- package/dist/src/commands/verify/engines-advice.js +7 -54
- package/dist/src/commands/verify/index.d.ts +30 -29
- package/dist/src/commands/verify/index.js +92 -200
- package/dist/src/commands/verify/prebuilds.d.ts +3 -5
- package/dist/src/commands/verify/prebuilds.js +1 -2
- package/dist/src/commands/verify/resource-collectors.d.ts +0 -6
- package/dist/src/commands/verify/resource-collectors.js +1 -50
- package/dist/src/commands/verify/sidecar-runtime.d.ts +6 -0
- package/dist/src/commands/verify/sidecar-runtime.js +51 -0
- package/dist/src/expo/plugins/withBareKit.d.ts +59 -0
- package/dist/src/expo/plugins/withBareKit.js +204 -0
- package/dist/src/expo/plugins/withMobileBundle.d.ts +4 -11
- package/dist/src/expo/plugins/withMobileBundle.js +36 -57
- package/dist/src/expo/plugins/withQvacSDK.d.ts +1 -0
- package/dist/src/expo/plugins/withQvacSDK.js +3 -0
- package/dist/src/index.d.ts +6 -5
- package/dist/src/index.js +10 -14
- package/dist/src/logging/utils.js +10 -2
- package/dist/src/plugin-ids.d.ts +2 -1
- package/dist/src/plugin-ids.js +2 -0
- package/dist/src/schemas/public.d.ts +1 -1
- package/dist/src/schemas/public.js +1 -1
- package/dist/src/schemas/sdk-errors-client.d.ts +5 -6
- package/dist/src/schemas/sdk-errors-client.js +30 -36
- package/dist/src/schemas/sdk-errors-server.d.ts +11 -1
- package/dist/src/schemas/sdk-errors-server.js +60 -2
- package/dist/src/server/rpc/rpc-utils.d.ts +25 -4
- package/dist/src/server/rpc/rpc-utils.js +39 -5
- package/dist/src/utils/errors-client.d.ts +37 -29
- package/dist/src/utils/errors-client.js +50 -41
- package/dist/src/utils/errors-server.d.ts +59 -1
- package/dist/src/utils/errors-server.js +110 -1
- package/dist/src/utils/withTimeout.js +34 -17
- package/dist/src/worker/handle-request.js +25 -22
- package/dist/src/worker/handler-utils.d.ts +2 -6
- package/dist/src/worker/handler-utils.js +2 -20
- package/dist/src/worker/index.d.ts +2 -4
- package/dist/src/worker/index.js +23 -35
- package/dist/src/worker/plugins/ggml-image-embedding.d.ts +2 -0
- package/dist/src/worker/plugins/ggml-image-embedding.js +1 -0
- package/dist/src/worker/shim.d.ts +4 -0
- package/dist/src/worker/shim.js +7 -0
- package/dist/src/worker/start.d.ts +9 -0
- package/dist/src/worker/start.js +16 -0
- package/dist/src/worker/unbundled-shim.d.ts +2 -0
- package/dist/src/worker/unbundled-shim.js +4 -0
- package/docs/system-resources-support-matrix.md +27 -19
- package/package.json +62 -51
- package/src/electron-forge/index.cjs +65 -91
- package/dist/examples/model-fit-ui/server.d.ts +0 -24
- package/dist/examples/model-fit-ui/server.js +0 -221
- package/dist/src/client/rpc/ensure-worker-ready.d.ts +0 -9
- package/dist/src/client/rpc/ensure-worker-ready.js +0 -17
- package/dist/src/client/rpc/init-timeout.d.ts +0 -26
- package/dist/src/client/rpc/init-timeout.js +0 -25
- package/dist/src/client/rpc/ipc-socket-path.d.ts +0 -11
- package/dist/src/client/rpc/ipc-socket-path.js +0 -30
- package/dist/src/client/rpc/worker-startup-error.d.ts +0 -12
- package/dist/src/client/rpc/worker-startup-error.js +0 -13
- package/dist/src/commands/bundle/bare-pack.d.ts +0 -21
- package/dist/src/commands/bundle/bare-pack.js +0 -77
- package/dist/src/commands/bundle/manifest.d.ts +0 -25
- package/dist/src/commands/bundle/manifest.js +0 -192
- package/dist/src/expo/plugins/link-addons.d.ts +0 -18
- package/dist/src/expo/plugins/link-addons.js +0 -65
- package/dist/src/pear/pre.d.ts +0 -21
- package/dist/src/pear/pre.js +0 -450
- package/dist/src/server/env.d.ts +0 -22
- package/dist/src/server/env.js +0 -59
- package/dist/src/server/utils/qvac-paths.d.ts +0 -2
- package/dist/src/server/utils/qvac-paths.js +0 -5
- package/dist/src/server/utils/worker-lock.d.ts +0 -3
- package/dist/src/server/utils/worker-lock.js +0 -67
- package/dist/src/worker/create-server.d.ts +0 -8
- package/dist/src/worker/create-server.js +0 -51
- package/dist/src/worker/lifecycle.d.ts +0 -23
- package/dist/src/worker/lifecycle.js +0 -149
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import { type NativeAddon } from '../../commands/verify/addon-source.js';
|
|
2
|
+
/** Bare Kit binding a phone platform links: bare-kit-kotlin on Android, bare-kit-swift on iOS. */
|
|
3
|
+
export type BareKitBinding = 'bare-kit-kotlin' | 'bare-kit-swift';
|
|
4
|
+
/** The Bare build inside the Bare Kit that a phone platform runs. */
|
|
2
5
|
export interface BareRuntime {
|
|
3
6
|
version: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
/** The package the Bare comes with: a Bare Kit binding on phones, bare-sidecar on desktop. */
|
|
8
|
+
source: BareKitBinding | 'bare-sidecar';
|
|
9
|
+
/** Version of that package: the binding version bare-stow pins, or the installed bare-sidecar. */
|
|
10
|
+
packageVersion: string;
|
|
11
|
+
detail: string;
|
|
8
12
|
}
|
|
9
13
|
export interface UnresolvedBareRuntime {
|
|
10
14
|
reason: string;
|
|
11
15
|
triedPaths: string[];
|
|
12
16
|
}
|
|
13
|
-
export interface ResolveBareRuntimeOptions {
|
|
14
|
-
projectRoot: string;
|
|
15
|
-
explicitVersion?: string;
|
|
16
|
-
explicitSource?: 'flag' | 'config';
|
|
17
|
-
}
|
|
18
17
|
export type BareRuntimeResolution = {
|
|
19
18
|
resolved: true;
|
|
20
19
|
runtime: BareRuntime;
|
|
@@ -29,21 +28,29 @@ export interface AbiMismatchIssue {
|
|
|
29
28
|
message: string;
|
|
30
29
|
enginesBare: string;
|
|
31
30
|
runtimeVersion: string;
|
|
31
|
+
/** Hosts that run this runtime, when the check was given them. */
|
|
32
|
+
hosts?: string[];
|
|
32
33
|
}
|
|
33
|
-
/**
|
|
34
|
+
/**
|
|
35
|
+
* A bundled package that is not an addon but still declares engines.bare. It
|
|
36
|
+
* warns: the package's JavaScript may run on the older Bare, whereas an addon
|
|
37
|
+
* built for another ABI does not load.
|
|
38
|
+
*/
|
|
34
39
|
export interface EnginesMismatchIssue {
|
|
35
40
|
code: 'engines-mismatch';
|
|
36
|
-
level: '
|
|
41
|
+
level: 'warning';
|
|
37
42
|
package: string;
|
|
38
43
|
message: string;
|
|
39
44
|
enginesBare: string;
|
|
40
45
|
runtimeVersion: string;
|
|
46
|
+
hosts?: string[];
|
|
41
47
|
}
|
|
42
48
|
export interface UnknownRuntimeIssue {
|
|
43
49
|
code: 'unknown-runtime-version';
|
|
44
50
|
level: 'warning';
|
|
45
51
|
message: string;
|
|
46
52
|
triedPaths: string[];
|
|
53
|
+
hosts?: string[];
|
|
47
54
|
}
|
|
48
55
|
export interface MalformedEnginesBareIssue {
|
|
49
56
|
code: 'malformed-engines-bare';
|
|
@@ -58,15 +65,14 @@ export interface CheckAbiOptions {
|
|
|
58
65
|
runtime: BareRuntimeResolution;
|
|
59
66
|
/** Non-addon packages that declare engines.bare. */
|
|
60
67
|
packages?: EnginesPackage[] | undefined;
|
|
68
|
+
/** Hosts that run `runtime`, recorded on the issues. */
|
|
69
|
+
hosts?: string[] | undefined;
|
|
61
70
|
}
|
|
62
71
|
export interface EnginesPackage {
|
|
63
72
|
name: string;
|
|
64
73
|
version?: string;
|
|
65
74
|
enginesBare: string;
|
|
66
75
|
}
|
|
67
|
-
export declare function resolveBareRuntime(options: ResolveBareRuntimeOptions): Promise<BareRuntimeResolution>;
|
|
68
|
-
export declare function normalizeVersion(value: string): string | null;
|
|
69
|
-
export declare function formatConfigLabel(projectRoot: string, configPath?: string): string;
|
|
70
76
|
export declare function formatRuntimeSource(runtime: BareRuntime): string;
|
|
71
77
|
export declare function checkAbi(options: CheckAbiOptions): AbiIssue[];
|
|
72
78
|
//# sourceMappingURL=abi.d.ts.map
|
|
@@ -1,80 +1,11 @@
|
|
|
1
|
-
import { promises as fsp } from 'node:fs';
|
|
2
|
-
import path from 'node:path';
|
|
3
1
|
import semver from 'semver';
|
|
4
2
|
import { formatAddonId } from '../../commands/verify/addon-source.js';
|
|
5
|
-
const RUNTIME_PACKAGES = [
|
|
6
|
-
{ source: 'bare-runtime', packageName: 'bare-runtime' },
|
|
7
|
-
{ source: 'bare', packageName: 'bare' }
|
|
8
|
-
];
|
|
9
|
-
export async function resolveBareRuntime(options) {
|
|
10
|
-
if (options.explicitVersion) {
|
|
11
|
-
// Caller (verifyBundle) pre-validates explicitVersion via normalizeVersion.
|
|
12
|
-
return {
|
|
13
|
-
resolved: true,
|
|
14
|
-
runtime: {
|
|
15
|
-
version: normalizeVersion(options.explicitVersion),
|
|
16
|
-
source: options.explicitSource ?? 'flag'
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
const tried = [];
|
|
21
|
-
for (const candidate of RUNTIME_PACKAGES) {
|
|
22
|
-
const pkgJsonPath = path.join(options.projectRoot, 'node_modules', candidate.packageName, 'package.json');
|
|
23
|
-
tried.push(pkgJsonPath);
|
|
24
|
-
const version = await tryReadRuntimeVersion(pkgJsonPath);
|
|
25
|
-
if (version) {
|
|
26
|
-
return {
|
|
27
|
-
resolved: true,
|
|
28
|
-
runtime: { version, source: candidate.source }
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
return {
|
|
33
|
-
resolved: false,
|
|
34
|
-
error: {
|
|
35
|
-
reason: 'Unable to detect installed Bare runtime version',
|
|
36
|
-
triedPaths: tried
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
async function tryReadRuntimeVersion(pkgJsonPath) {
|
|
41
|
-
let raw;
|
|
42
|
-
try {
|
|
43
|
-
raw = await fsp.readFile(pkgJsonPath, 'utf8');
|
|
44
|
-
}
|
|
45
|
-
catch {
|
|
46
|
-
return null;
|
|
47
|
-
}
|
|
48
|
-
let parsed;
|
|
49
|
-
try {
|
|
50
|
-
parsed = JSON.parse(raw);
|
|
51
|
-
}
|
|
52
|
-
catch {
|
|
53
|
-
return null;
|
|
54
|
-
}
|
|
55
|
-
if (typeof parsed !== 'object' || parsed === null || Array.isArray(parsed)) {
|
|
56
|
-
return null;
|
|
57
|
-
}
|
|
58
|
-
const version = parsed['version'];
|
|
59
|
-
return typeof version === 'string' ? normalizeVersion(version) : null;
|
|
60
|
-
}
|
|
61
|
-
export function normalizeVersion(value) {
|
|
62
|
-
const coerced = semver.coerce(value, { includePrerelease: true });
|
|
63
|
-
return coerced ? coerced.version : null;
|
|
64
|
-
}
|
|
65
|
-
export function formatConfigLabel(projectRoot, configPath) {
|
|
66
|
-
if (!configPath)
|
|
67
|
-
return 'qvac.config';
|
|
68
|
-
const rel = path.relative(projectRoot, configPath);
|
|
69
|
-
if (!rel || rel.startsWith('..') || path.isAbsolute(rel))
|
|
70
|
-
return configPath;
|
|
71
|
-
return rel;
|
|
72
|
-
}
|
|
73
3
|
export function formatRuntimeSource(runtime) {
|
|
74
|
-
return
|
|
4
|
+
return `${runtime.source}: ${runtime.detail}`;
|
|
75
5
|
}
|
|
76
6
|
export function checkAbi(options) {
|
|
77
|
-
const { addons, runtime, packages = [] } = options;
|
|
7
|
+
const { addons, runtime, packages = [], hosts } = options;
|
|
8
|
+
const onHosts = hosts === undefined ? {} : { hosts };
|
|
78
9
|
const constrained = [
|
|
79
10
|
...addons.map((addon) => ({
|
|
80
11
|
id: formatAddonId(addon),
|
|
@@ -109,10 +40,9 @@ export function checkAbi(options) {
|
|
|
109
40
|
code: 'unknown-runtime-version',
|
|
110
41
|
level: 'warning',
|
|
111
42
|
message: `${runtime.error.reason}. ABI checks skipped for ${checkable.length} ` +
|
|
112
|
-
`package${checkable.length === 1 ? '' : 's'}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
triedPaths: runtime.error.triedPaths
|
|
43
|
+
`package${checkable.length === 1 ? '' : 's'}.`,
|
|
44
|
+
triedPaths: runtime.error.triedPaths,
|
|
45
|
+
...onHosts
|
|
116
46
|
});
|
|
117
47
|
return issues;
|
|
118
48
|
}
|
|
@@ -129,17 +59,19 @@ export function checkAbi(options) {
|
|
|
129
59
|
addon: entry.id,
|
|
130
60
|
enginesBare: entry.range,
|
|
131
61
|
runtimeVersion: version,
|
|
132
|
-
message
|
|
62
|
+
message,
|
|
63
|
+
...onHosts
|
|
133
64
|
});
|
|
134
65
|
}
|
|
135
66
|
else {
|
|
136
67
|
issues.push({
|
|
137
68
|
code: 'engines-mismatch',
|
|
138
|
-
level: '
|
|
69
|
+
level: 'warning',
|
|
139
70
|
package: entry.id,
|
|
140
71
|
enginesBare: entry.range,
|
|
141
72
|
runtimeVersion: version,
|
|
142
|
-
message
|
|
73
|
+
message,
|
|
74
|
+
...onHosts
|
|
143
75
|
});
|
|
144
76
|
}
|
|
145
77
|
}
|
|
@@ -1,38 +1,36 @@
|
|
|
1
|
-
import type { BareRuntimeResolution } from '../../commands/verify/abi.js';
|
|
1
|
+
import type { BareKitBinding, BareRuntimeResolution } from '../../commands/verify/abi.js';
|
|
2
2
|
export declare const REACT_NATIVE_BARE_KIT = "react-native-bare-kit";
|
|
3
3
|
export declare const NETWORK_TIMEOUT_MS = 5000;
|
|
4
|
+
export type BareKitPlatform = 'android' | 'ios';
|
|
5
|
+
export declare const BARE_KIT_PLATFORMS: BareKitPlatform[];
|
|
4
6
|
export type FetchText = (url: string) => Promise<string>;
|
|
5
7
|
export type ProgressFn = (message: string) => void;
|
|
6
|
-
export interface
|
|
7
|
-
|
|
8
|
+
export interface ResolveBareKitRuntimeOptions {
|
|
9
|
+
platform: BareKitPlatform;
|
|
10
|
+
/** The project whose `@qvac/sdk` decides which bare-stow's pins are read. */
|
|
11
|
+
projectRoot?: string | undefined;
|
|
12
|
+
/** Directory of the bare-stow package whose pins are read, instead of the project's. */
|
|
13
|
+
bareStowDir?: string | undefined;
|
|
8
14
|
network?: boolean | undefined;
|
|
9
15
|
onProgress?: ProgressFn | undefined;
|
|
10
16
|
fetchText?: FetchText | undefined;
|
|
11
17
|
}
|
|
12
18
|
export declare function isReactNativeBareKitInstalled(projectRoot: string): boolean;
|
|
19
|
+
export declare function bareKitPlatformOf(host: string): BareKitPlatform | null;
|
|
13
20
|
export declare function fetchText(url: string): Promise<string>;
|
|
14
|
-
export declare function parseBareKitReleaseVersion(cmakeLists: string): string | null;
|
|
15
21
|
export declare function parseBareVersion(cmakeLists: string): string | null;
|
|
16
|
-
export declare function
|
|
17
|
-
|
|
22
|
+
export declare function parseBareKitVersion(cmakeLists: string): string | null;
|
|
23
|
+
/** The binding version bare-stow pins for each platform, or null where none is found. */
|
|
24
|
+
export declare function parseBareKitPins(source: string): Record<BareKitPlatform, string | null>;
|
|
25
|
+
export declare function fetchBindingBareKitFromGitHub(binding: BareKitBinding, version: string, fetch?: FetchText): Promise<string | null>;
|
|
18
26
|
export declare function fetchBareVersionFromGitHub(bareKitVersion: string, fetch?: FetchText): Promise<string | null>;
|
|
19
|
-
export declare function bareVersionForBareKit(bareKitVersion: string): string | null;
|
|
20
27
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
version: string;
|
|
26
|
-
bareKit: string;
|
|
27
|
-
bare: string;
|
|
28
|
-
} | null;
|
|
29
|
-
/**
|
|
30
|
-
* Bare version the app runs on mobile: the one compiled into the bare-kit
|
|
31
|
-
* binaries that react-native-bare-kit ships, not any `bare-runtime` package
|
|
32
|
-
* in node_modules.
|
|
28
|
+
* Bare version a phone platform runs: the one in the bare-kit that the Bare
|
|
29
|
+
* Kit binding pinned by the SDK's bare-stow is built from. Android links
|
|
30
|
+
* bare-kit-kotlin at an exact version. bare-stow names a minimum
|
|
31
|
+
* bare-kit-swift, which the link step writes into the app as an exact version.
|
|
33
32
|
*
|
|
34
|
-
* Checks the built-in
|
|
35
|
-
* and only then GitHub.
|
|
33
|
+
* Checks the built-in tables, and only then GitHub.
|
|
36
34
|
*/
|
|
37
|
-
export declare function
|
|
35
|
+
export declare function resolveBareKitRuntime(options: ResolveBareKitRuntimeOptions): Promise<BareRuntimeResolution>;
|
|
38
36
|
//# sourceMappingURL=bare-kit-runtime.d.ts.map
|
|
@@ -1,201 +1,153 @@
|
|
|
1
1
|
import { promises as fsp } from 'node:fs';
|
|
2
|
+
import { createRequire } from 'node:module';
|
|
2
3
|
import path from 'node:path';
|
|
3
|
-
import
|
|
4
|
-
import { BARE_KIT_BARE_VERSIONS, REACT_NATIVE_BARE_KIT_RUNTIMES } from '../../commands/verify/bare-kit-runtimes.js';
|
|
4
|
+
import { BARE_KIT_BARE_VERSIONS, BARE_KIT_KOTLIN_BARE_KITS, BARE_KIT_KOTLIN_WITHOUT_BARE_KIT, BARE_KIT_SWIFT_BARE_KITS, BARE_KIT_SWIFT_WITHOUT_BARE_KIT, BARE_KIT_WITHOUT_BARE } from '../../commands/verify/bare-kit-runtimes.js';
|
|
5
5
|
import { findInAncestorNodeModules } from '../../expo/plugins/find-in-ancestor-node-modules.js';
|
|
6
6
|
export const REACT_NATIVE_BARE_KIT = 'react-native-bare-kit';
|
|
7
7
|
export const NETWORK_TIMEOUT_MS = 5000;
|
|
8
8
|
const RAW_GITHUB_BASE = 'https://raw.githubusercontent.com/holepunchto';
|
|
9
|
-
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
/** The bare-stow file that pins the Bare Kit bindings phone apps link. */
|
|
10
|
+
const BARE_KIT_TARGET = path.join('lib', 'target', 'bare-kit.js');
|
|
11
|
+
export const BARE_KIT_PLATFORMS = ['android', 'ios'];
|
|
12
|
+
const BINDINGS = {
|
|
13
|
+
android: {
|
|
14
|
+
name: 'bare-kit-kotlin',
|
|
15
|
+
bareKits: BARE_KIT_KOTLIN_BARE_KITS,
|
|
16
|
+
withoutBareKit: BARE_KIT_KOTLIN_WITHOUT_BARE_KIT,
|
|
17
|
+
pin: /['"]com\.github\.holepunchto\.bare-kit-kotlin:bare-kit-kotlin['"]\s*:\s*['"]v?(\d+\.\d+\.\d+[^'"\s]*)['"]/
|
|
18
|
+
},
|
|
19
|
+
ios: {
|
|
20
|
+
name: 'bare-kit-swift',
|
|
21
|
+
bareKits: BARE_KIT_SWIFT_BARE_KITS,
|
|
22
|
+
withoutBareKit: BARE_KIT_SWIFT_WITHOUT_BARE_KIT,
|
|
23
|
+
pin: /['"]https:\/\/github\.com\/holepunchto\/bare-kit-swift(?:\.git)?['"]\s*,\s*from\s*:\s*['"]v?(\d+\.\d+\.\d+[^'"\s]*)['"]/
|
|
24
|
+
}
|
|
25
|
+
};
|
|
15
26
|
export function isReactNativeBareKitInstalled(projectRoot) {
|
|
16
27
|
return findInAncestorNodeModules(projectRoot, REACT_NATIVE_BARE_KIT) !== null;
|
|
17
28
|
}
|
|
29
|
+
export function bareKitPlatformOf(host) {
|
|
30
|
+
if (host.startsWith('android-'))
|
|
31
|
+
return 'android';
|
|
32
|
+
if (host.startsWith('ios-'))
|
|
33
|
+
return 'ios';
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
18
36
|
export async function fetchText(url) {
|
|
19
37
|
const response = await fetch(url, { signal: AbortSignal.timeout(NETWORK_TIMEOUT_MS) });
|
|
20
38
|
if (!response.ok)
|
|
21
39
|
throw new Error(`GET ${url} returned HTTP ${response.status}`);
|
|
22
40
|
return response.text();
|
|
23
41
|
}
|
|
24
|
-
export function parseBareKitReleaseVersion(cmakeLists) {
|
|
25
|
-
const match = /holepunchto\/bare-kit\/releases\/download\/v(\d+\.\d+\.\d+[^/"\s]*)\//.exec(cmakeLists);
|
|
26
|
-
return match?.[1] ?? null;
|
|
27
|
-
}
|
|
28
42
|
export function parseBareVersion(cmakeLists) {
|
|
29
43
|
const match = /fetch_package\(\s*"github:holepunchto\/bare@(\d+\.\d+\.\d+[^"\s]*)"/.exec(cmakeLists);
|
|
30
44
|
return match?.[1] ?? null;
|
|
31
45
|
}
|
|
32
|
-
export function
|
|
33
|
-
const match =
|
|
46
|
+
export function parseBareKitVersion(cmakeLists) {
|
|
47
|
+
const match = /fetch_package\(\s*"github:holepunchto\/bare-kit@(\d+\.\d+\.\d+[^"\s]*)"/.exec(cmakeLists);
|
|
34
48
|
return match?.[1] ?? null;
|
|
35
49
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
return
|
|
50
|
+
/** The binding version bare-stow pins for each platform, or null where none is found. */
|
|
51
|
+
export function parseBareKitPins(source) {
|
|
52
|
+
return {
|
|
53
|
+
android: BINDINGS.android.pin.exec(source)?.[1] ?? null,
|
|
54
|
+
ios: BINDINGS.ios.pin.exec(source)?.[1] ?? null
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
export async function fetchBindingBareKitFromGitHub(binding, version, fetch = fetchText) {
|
|
58
|
+
const cmakeLists = await fetch(`${RAW_GITHUB_BASE}/${binding}/v${version}/CMakeLists.txt`);
|
|
59
|
+
return parseBareKitVersion(cmakeLists);
|
|
39
60
|
}
|
|
40
61
|
export async function fetchBareVersionFromGitHub(bareKitVersion, fetch = fetchText) {
|
|
41
62
|
const cmakeLists = await fetch(`${RAW_GITHUB_BASE}/bare-kit/v${bareKitVersion}/CMakeLists.txt`);
|
|
42
63
|
return parseBareVersion(cmakeLists);
|
|
43
64
|
}
|
|
44
|
-
|
|
45
|
-
|
|
65
|
+
/** The bare-stow of the project's `@qvac/sdk`, which bundles its app, else this SDK's. */
|
|
66
|
+
function resolveBareStowDir(projectRoot) {
|
|
67
|
+
const projectSdk = projectRoot === undefined ? null : findInAncestorNodeModules(projectRoot, '@qvac/sdk');
|
|
68
|
+
const from = projectSdk ? path.join(projectSdk, 'package.json') : import.meta.url;
|
|
69
|
+
return path.dirname(createRequire(from).resolve('bare-stow/package'));
|
|
46
70
|
}
|
|
47
|
-
function
|
|
48
|
-
|
|
49
|
-
return versions.length === 0 ? null : versions.sort(semver.rcompare)[0];
|
|
71
|
+
function unresolved(reason, triedPaths) {
|
|
72
|
+
return { resolved: false, error: { reason, triedPaths } };
|
|
50
73
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
* entry, so only newer releases can have data on GitHub that the table lacks.
|
|
54
|
-
*/
|
|
55
|
-
function isNewerThanTable(version, record) {
|
|
56
|
-
const newest = newestKey(record);
|
|
57
|
-
return newest === null || semver.valid(version) === null || semver.gt(version, newest);
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* The oldest react-native-bare-kit release newer than `currentVersion` whose
|
|
61
|
-
* embedded Bare satisfies every range, or null if the table has none.
|
|
62
|
-
*/
|
|
63
|
-
export function findReactNativeBareKitUpgrade(currentVersion, ranges) {
|
|
64
|
-
const candidates = Object.entries(REACT_NATIVE_BARE_KIT_RUNTIMES)
|
|
65
|
-
.filter(([version]) => semver.valid(version) !== null && semver.prerelease(version) === null)
|
|
66
|
-
.sort(([a], [b]) => semver.compare(a, b));
|
|
67
|
-
for (const [version, runtime] of candidates) {
|
|
68
|
-
if (semver.valid(currentVersion) !== null && !semver.gt(version, currentVersion))
|
|
69
|
-
continue;
|
|
70
|
-
if (ranges.every((range) => semver.satisfies(runtime.bare, range))) {
|
|
71
|
-
return { version, bareKit: runtime.bareKit, bare: runtime.bare };
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
return null;
|
|
75
|
-
}
|
|
76
|
-
async function readJsonVersion(packageJsonPath) {
|
|
77
|
-
try {
|
|
78
|
-
const parsed = JSON.parse(await fsp.readFile(packageJsonPath, 'utf8'));
|
|
79
|
-
return typeof parsed.version === 'string' ? parsed.version : null;
|
|
80
|
-
}
|
|
81
|
-
catch {
|
|
82
|
-
return null;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
async function readInfoPlistVersion(packageDir) {
|
|
86
|
-
try {
|
|
87
|
-
return parseInfoPlistVersion(await fsp.readFile(path.join(packageDir, BARE_KIT_INFO_PLIST), 'utf8'));
|
|
88
|
-
}
|
|
89
|
-
catch {
|
|
90
|
-
return null;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
function resolved(version, reactNativeBareKitVersion, bareKitVersion, via) {
|
|
74
|
+
function resolved(platform, bare, version, bareKit, viaGitHub) {
|
|
75
|
+
const binding = BINDINGS[platform].name;
|
|
94
76
|
return {
|
|
95
77
|
resolved: true,
|
|
96
78
|
runtime: {
|
|
97
|
-
version,
|
|
98
|
-
source:
|
|
99
|
-
packageVersion:
|
|
100
|
-
detail: `
|
|
101
|
-
(
|
|
79
|
+
version: bare,
|
|
80
|
+
source: binding,
|
|
81
|
+
packageVersion: version,
|
|
82
|
+
detail: `bare-stow pins ${binding} ${version}, built from bare-kit ${bareKit}` +
|
|
83
|
+
(viaGitHub ? ', looked up on GitHub' : '')
|
|
102
84
|
}
|
|
103
85
|
};
|
|
104
86
|
}
|
|
105
87
|
/**
|
|
106
|
-
* Bare version
|
|
107
|
-
*
|
|
108
|
-
*
|
|
88
|
+
* Bare version a phone platform runs: the one in the bare-kit that the Bare
|
|
89
|
+
* Kit binding pinned by the SDK's bare-stow is built from. Android links
|
|
90
|
+
* bare-kit-kotlin at an exact version. bare-stow names a minimum
|
|
91
|
+
* bare-kit-swift, which the link step writes into the app as an exact version.
|
|
109
92
|
*
|
|
110
|
-
* Checks the built-in
|
|
111
|
-
* and only then GitHub.
|
|
93
|
+
* Checks the built-in tables, and only then GitHub.
|
|
112
94
|
*/
|
|
113
|
-
export async function
|
|
114
|
-
const {
|
|
115
|
-
const
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
error: {
|
|
120
|
-
reason: `${REACT_NATIVE_BARE_KIT} is not installed, so the mobile Bare version is unknown`,
|
|
121
|
-
triedPaths: [path.join(projectRoot, 'node_modules', REACT_NATIVE_BARE_KIT)]
|
|
122
|
-
}
|
|
123
|
-
};
|
|
95
|
+
export async function resolveBareKitRuntime(options) {
|
|
96
|
+
const { platform, network = true, onProgress, fetchText: fetch = fetchText } = options;
|
|
97
|
+
const binding = BINDINGS[platform];
|
|
98
|
+
let bareStowDir;
|
|
99
|
+
try {
|
|
100
|
+
bareStowDir = options.bareStowDir ?? resolveBareStowDir(options.projectRoot);
|
|
124
101
|
}
|
|
125
|
-
|
|
126
|
-
|
|
102
|
+
catch (error) {
|
|
103
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
104
|
+
return unresolved(`bare-stow could not be resolved from the SDK, so the ${platform} Bare version is unknown: ${message}`, []);
|
|
105
|
+
}
|
|
106
|
+
const targetPath = path.join(bareStowDir, BARE_KIT_TARGET);
|
|
107
|
+
let source;
|
|
108
|
+
try {
|
|
109
|
+
source = await fsp.readFile(targetPath, 'utf8');
|
|
110
|
+
}
|
|
111
|
+
catch {
|
|
112
|
+
return unresolved(`Could not read ${targetPath}, so the ${platform} Bare version is unknown`, [
|
|
113
|
+
targetPath
|
|
114
|
+
]);
|
|
115
|
+
}
|
|
116
|
+
const version = parseBareKitPins(source)[platform];
|
|
127
117
|
if (version === null) {
|
|
128
|
-
return {
|
|
129
|
-
resolved: false,
|
|
130
|
-
error: {
|
|
131
|
-
reason: `Could not read the version of ${REACT_NATIVE_BARE_KIT}`,
|
|
132
|
-
triedPaths: [packageJsonPath]
|
|
133
|
-
}
|
|
134
|
-
};
|
|
118
|
+
return unresolved(`${targetPath} pins no ${binding.name} version, so the ${platform} Bare version is unknown`, [targetPath]);
|
|
135
119
|
}
|
|
136
|
-
const
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
if (bareKitVersion !== null) {
|
|
141
|
-
const bare = bareVersionForBareKit(bareKitVersion);
|
|
142
|
-
if (bare !== null)
|
|
143
|
-
return resolved(bare, version, bareKitVersion, 'info-plist');
|
|
120
|
+
const tableBareKit = binding.bareKits[version] ?? null;
|
|
121
|
+
const tableBare = tableBareKit === null ? null : (BARE_KIT_BARE_VERSIONS[tableBareKit] ?? null);
|
|
122
|
+
if (tableBareKit !== null && tableBare !== null) {
|
|
123
|
+
return resolved(platform, tableBare, version, tableBareKit, false);
|
|
144
124
|
}
|
|
145
|
-
const
|
|
146
|
-
?
|
|
147
|
-
:
|
|
148
|
-
if (
|
|
149
|
-
return {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
(bareKitVersion === null
|
|
154
|
-
? 'the release does not record its bare-kit version and its iOS framework Info.plist could not be read'
|
|
155
|
-
: `bare-kit ${bareKitVersion} does not name its Bare version in CMakeLists.txt`),
|
|
156
|
-
triedPaths: [packageJsonPath, path.join(packageDir, BARE_KIT_INFO_PLIST)]
|
|
157
|
-
}
|
|
158
|
-
};
|
|
125
|
+
const checkedWithoutVersion = tableBareKit === null
|
|
126
|
+
? binding.withoutBareKit.includes(version)
|
|
127
|
+
: BARE_KIT_WITHOUT_BARE.includes(tableBareKit);
|
|
128
|
+
if (checkedWithoutVersion) {
|
|
129
|
+
return unresolved(`The Bare version of ${binding.name}@${version} could not be determined: ` +
|
|
130
|
+
(tableBareKit === null
|
|
131
|
+
? 'its CMakeLists.txt names no bare-kit version'
|
|
132
|
+
: `bare-kit ${tableBareKit} does not name its Bare version in CMakeLists.txt`), [targetPath]);
|
|
159
133
|
}
|
|
160
134
|
if (!network) {
|
|
161
|
-
return {
|
|
162
|
-
|
|
163
|
-
error: {
|
|
164
|
-
reason: `${REACT_NATIVE_BARE_KIT}@${version} is not in the built-in runtime table ` +
|
|
165
|
-
'and network lookups are disabled',
|
|
166
|
-
triedPaths: [packageJsonPath]
|
|
167
|
-
}
|
|
168
|
-
};
|
|
135
|
+
return unresolved(`${tableBareKit === null ? `${binding.name}@${version}` : `bare-kit ${tableBareKit}`} ` +
|
|
136
|
+
'is not in the built-in runtime table and network lookups are disabled', [targetPath]);
|
|
169
137
|
}
|
|
170
|
-
onProgress?.(`Looking up the Bare version
|
|
171
|
-
`
|
|
138
|
+
onProgress?.(`Looking up the Bare version of ${binding.name}@${version} on raw.githubusercontent.com ` +
|
|
139
|
+
`(not in the built-in table, timeout ${NETWORK_TIMEOUT_MS / 1000}s per request)...`);
|
|
172
140
|
try {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
}
|
|
176
|
-
const bare = bareKitVersion === null
|
|
141
|
+
const bareKit = tableBareKit ?? (await fetchBindingBareKitFromGitHub(binding.name, version, fetch));
|
|
142
|
+
const bare = bareKit === null
|
|
177
143
|
? null
|
|
178
|
-
: (
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
}
|
|
183
|
-
return {
|
|
184
|
-
resolved: false,
|
|
185
|
-
error: {
|
|
186
|
-
reason: `Could not find the bare-kit or Bare version in the CMakeLists.txt of ${REACT_NATIVE_BARE_KIT}@${version}`,
|
|
187
|
-
triedPaths: [packageJsonPath]
|
|
188
|
-
}
|
|
189
|
-
};
|
|
144
|
+
: (BARE_KIT_BARE_VERSIONS[bareKit] ?? (await fetchBareVersionFromGitHub(bareKit, fetch)));
|
|
145
|
+
if (bareKit !== null && bare !== null)
|
|
146
|
+
return resolved(platform, bare, version, bareKit, true);
|
|
147
|
+
return unresolved(`Could not find the bare-kit or Bare version in the CMakeLists.txt of ${binding.name}@${version}`, [targetPath]);
|
|
190
148
|
}
|
|
191
149
|
catch (error) {
|
|
192
150
|
const message = error instanceof Error ? error.message : String(error);
|
|
193
|
-
return {
|
|
194
|
-
resolved: false,
|
|
195
|
-
error: {
|
|
196
|
-
reason: `Could not look up the Bare version of ${REACT_NATIVE_BARE_KIT}@${version}: ${message}`,
|
|
197
|
-
triedPaths: [packageJsonPath]
|
|
198
|
-
}
|
|
199
|
-
};
|
|
151
|
+
return unresolved(`Could not look up the Bare version of ${binding.name}@${version}: ${message}`, [targetPath]);
|
|
200
152
|
}
|
|
201
153
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export declare const REACT_NATIVE_BARE_KIT_RUNTIMES: Record<string, BareKitRuntime>;
|
|
1
|
+
/** bare-kit release each bare-kit-kotlin release is built from. */
|
|
2
|
+
export declare const BARE_KIT_KOTLIN_BARE_KITS: Record<string, string>;
|
|
3
|
+
/** bare-kit-kotlin releases whose CMakeLists.txt names no bare-kit version. */
|
|
4
|
+
export declare const BARE_KIT_KOTLIN_WITHOUT_BARE_KIT: string[];
|
|
5
|
+
/** bare-kit release each bare-kit-swift release is built from. */
|
|
6
|
+
export declare const BARE_KIT_SWIFT_BARE_KITS: Record<string, string>;
|
|
7
|
+
/** bare-kit-swift releases whose CMakeLists.txt names no bare-kit version. */
|
|
8
|
+
export declare const BARE_KIT_SWIFT_WITHOUT_BARE_KIT: string[];
|
|
10
9
|
/** Bare version each bare-kit release is built against. */
|
|
11
10
|
export declare const BARE_KIT_BARE_VERSIONS: Record<string, string>;
|
|
11
|
+
/** bare-kit releases whose CMakeLists.txt names no Bare version. */
|
|
12
|
+
export declare const BARE_KIT_WITHOUT_BARE: string[];
|
|
12
13
|
//# sourceMappingURL=bare-kit-runtimes.d.ts.map
|
|
@@ -1,25 +1,21 @@
|
|
|
1
1
|
// Generated by scripts/generate-bare-kit-runtimes.ts. Do not edit by hand.
|
|
2
|
-
/**
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
'0.
|
|
8
|
-
'0.14.0': { bareKit: '2.1.0', bare: '1.28.1' },
|
|
9
|
-
'0.14.1': { bareKit: '2.1.1', bare: '1.28.1' },
|
|
10
|
-
'0.14.2': { bareKit: '2.1.2', bare: '1.28.6' },
|
|
11
|
-
'0.14.3': { bareKit: '2.1.3', bare: '1.28.6' },
|
|
12
|
-
'0.14.4': { bareKit: '2.2.0', bare: '1.29.3' },
|
|
13
|
-
'0.14.5': { bareKit: '2.2.1', bare: '1.29.4' },
|
|
14
|
-
'0.15.0': { bareKit: '2.3.0', bare: '1.29.4' },
|
|
15
|
-
'0.15.1': { bareKit: '2.5.0', bare: '1.33.1' },
|
|
16
|
-
'0.15.2': { bareKit: '2.5.0', bare: '1.33.1' },
|
|
17
|
-
'0.15.3': { bareKit: '2.5.1', bare: '1.33.2' },
|
|
18
|
-
'0.15.4': { bareKit: '2.5.3', bare: '1.33.3' },
|
|
19
|
-
'0.15.5': { bareKit: '2.5.4', bare: '1.33.4' },
|
|
20
|
-
'0.15.6': { bareKit: '2.5.4', bare: '1.33.4' },
|
|
21
|
-
'0.16.0': { bareKit: '2.5.4', bare: '1.33.4' }
|
|
2
|
+
/** bare-kit release each bare-kit-kotlin release is built from. */
|
|
3
|
+
export const BARE_KIT_KOTLIN_BARE_KITS = {
|
|
4
|
+
'0.1.2': '3.0.1',
|
|
5
|
+
'0.2.0': '3.0.1',
|
|
6
|
+
'0.2.1': '3.0.1',
|
|
7
|
+
'0.2.2': '3.0.1'
|
|
22
8
|
};
|
|
9
|
+
/** bare-kit-kotlin releases whose CMakeLists.txt names no bare-kit version. */
|
|
10
|
+
export const BARE_KIT_KOTLIN_WITHOUT_BARE_KIT = [];
|
|
11
|
+
/** bare-kit release each bare-kit-swift release is built from. */
|
|
12
|
+
export const BARE_KIT_SWIFT_BARE_KITS = {
|
|
13
|
+
'2.0.0': '3.0.1',
|
|
14
|
+
'2.1.0': '3.0.1',
|
|
15
|
+
'2.2.0': '3.0.1'
|
|
16
|
+
};
|
|
17
|
+
/** bare-kit-swift releases whose CMakeLists.txt names no bare-kit version. */
|
|
18
|
+
export const BARE_KIT_SWIFT_WITHOUT_BARE_KIT = [];
|
|
23
19
|
/** Bare version each bare-kit release is built against. */
|
|
24
20
|
export const BARE_KIT_BARE_VERSIONS = {
|
|
25
21
|
'1.0.0': '1.12.2',
|
|
@@ -105,5 +101,9 @@ export const BARE_KIT_BARE_VERSIONS = {
|
|
|
105
101
|
'2.5.2': '1.33.3',
|
|
106
102
|
'2.5.3': '1.33.3',
|
|
107
103
|
'2.5.4': '1.33.4',
|
|
108
|
-
'2.5.5': '1.33.4'
|
|
104
|
+
'2.5.5': '1.33.4',
|
|
105
|
+
'3.0.0': '1.36.1',
|
|
106
|
+
'3.0.1': '1.36.2'
|
|
109
107
|
};
|
|
108
|
+
/** bare-kit releases whose CMakeLists.txt names no Bare version. */
|
|
109
|
+
export const BARE_KIT_WITHOUT_BARE = [];
|