@lucent-lang/lucent 0.1.0 → 0.1.2

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.
@@ -1,4 +1,4 @@
1
- import { E as identityScript, N as projectFiles, O as coreJsPath, f as runtimeDir, j as moduleNameOf, n as compile } from "./src-DlICbK91.js";
1
+ import { E as identityScript, N as projectFiles, O as coreJsPath, f as runtimeDir, j as moduleNameOf, n as compile } from "./src-Bzpv4-ox.js";
2
2
  import { i as table } from "./format-D9fnIMEx.js";
3
3
  import { t as renderDiagnostic } from "./diagnostic-BvwLZQS1.js";
4
4
  import fs from "node:fs";
@@ -1,4 +1,4 @@
1
- import { t as buildOrCheck } from "./build-check-Dmf8_yiw.js";
1
+ import { t as buildOrCheck } from "./build-check-DYWM9LHo.js";
2
2
  //#region src/cli/commands/build.ts
3
3
  function run(invocation) {
4
4
  return buildOrCheck("build", invocation);
@@ -1,7 +1,7 @@
1
1
  import { n as version } from "./version-bqpIO5sP.js";
2
2
  import { i as table, n as duration } from "./format-D9fnIMEx.js";
3
3
  import { t as renderDiagnostic } from "./diagnostic-BvwLZQS1.js";
4
- import { a as filesText, i as ACTION_TEXT, n as nextText, r as plural, t as buildProject } from "./pipeline-BBY0df_2.js";
4
+ import { a as filesText, i as ACTION_TEXT, n as nextText, r as plural, t as buildProject } from "./pipeline-rDlFUUa1.js";
5
5
  import { t as plainSteps } from "./steps--_h-FFS7.js";
6
6
  import fs from "node:fs";
7
7
  import path from "node:path";
@@ -1,4 +1,4 @@
1
- import { t as buildOrCheck } from "./build-check-Dmf8_yiw.js";
1
+ import { t as buildOrCheck } from "./build-check-DYWM9LHo.js";
2
2
  //#region src/cli/commands/check.ts
3
3
  function run(invocation) {
4
4
  return buildOrCheck("check", invocation);
package/dist/cli.js CHANGED
@@ -115,7 +115,7 @@ const commands = [
115
115
  description: "Fail unless the SDKs and SDK symbols are the ones lucent-sdk.lock.json records, with every target it lists (CI, releases)"
116
116
  }
117
117
  ],
118
- load: () => import("./build-UZ5Zm5m6.js")
118
+ load: () => import("./build-B2E9SkG_.js")
119
119
  },
120
120
  {
121
121
  name: "check",
@@ -124,7 +124,7 @@ const commands = [
124
124
  name: "frozen",
125
125
  description: "Fail unless the SDKs and SDK symbols are the ones lucent-sdk.lock.json records, with every target it lists (CI, releases)"
126
126
  }],
127
- load: () => import("./check-D-H9WLG4.js")
127
+ load: () => import("./check-DzsBZmBa.js")
128
128
  },
129
129
  {
130
130
  name: "dev",
@@ -133,7 +133,7 @@ const commands = [
133
133
  name: "compact",
134
134
  description: "One line per build instead of the dashboard (Metro runs it so)"
135
135
  }],
136
- load: () => import("./dev-B3lSx5CF.js")
136
+ load: () => import("./dev-ClJalHD4.js")
137
137
  },
138
138
  {
139
139
  name: "doctor",
@@ -179,7 +179,7 @@ const commands = [
179
179
  name: "bench",
180
180
  summary: "Time the cases of your *.bench.ts files natively and as JavaScript, and show the speedup (needs a desktop Hermes)",
181
181
  flags: [],
182
- load: () => import("./bench-B555m0wU.js")
182
+ load: () => import("./bench-Ec_oPBhN.js")
183
183
  },
184
184
  {
185
185
  name: "trace",
@@ -208,13 +208,13 @@ const commands = [
208
208
  name: "sdk search",
209
209
  summary: "Find SDK classes and members by name, with the import to copy (your imports and the SDK cache)",
210
210
  flags: [],
211
- load: () => import("./sdk-search-BShBL1LL.js")
211
+ load: () => import("./sdk-search-BDercg36.js")
212
212
  },
213
213
  {
214
214
  name: "sdk show",
215
215
  summary: "Print the declaration Lucent code sees for an SDK type or member: android.os.Vibrator, UIKit.UIDevice.current",
216
216
  flags: [],
217
- load: () => import("./sdk-show-B3bI-0M7.js")
217
+ load: () => import("./sdk-show-DEdKobD7.js")
218
218
  },
219
219
  {
220
220
  name: "sdk prefetch",
@@ -237,7 +237,7 @@ const commands = [
237
237
  description: "Every module of every installed SDK"
238
238
  }
239
239
  ],
240
- load: () => import("./sdk-prefetch-DX6ztlPN.js")
240
+ load: () => import("./sdk-prefetch-D-MAqtZs.js")
241
241
  },
242
242
  {
243
243
  name: "sdk lock",
@@ -247,7 +247,7 @@ const commands = [
247
247
  value: "list",
248
248
  description: "Targets to record: ios, android (default: every platform the project has code for, each needing its SDK)"
249
249
  }],
250
- load: () => import("./sdk-lock-QOxEFD1o.js")
250
+ load: () => import("./sdk-lock-BWHZdSu-.js")
251
251
  },
252
252
  {
253
253
  name: "sdk diff",
@@ -256,7 +256,7 @@ const commands = [
256
256
  name: "all",
257
257
  description: "Also the other members of the modules the project uses (the locked schemas must be in this machine's SDK cache)"
258
258
  }],
259
- load: () => import("./sdk-diff-DpPYWzrl.js")
259
+ load: () => import("./sdk-diff-DbPQmOSD.js")
260
260
  },
261
261
  {
262
262
  name: "sdk coverage",
@@ -287,7 +287,7 @@ const commands = [
287
287
  description: "List every member with its stage, key and reason"
288
288
  }
289
289
  ],
290
- load: () => import("./sdk-coverage-DFGiDOzR.js")
290
+ load: () => import("./sdk-coverage-DL81IAi9.js")
291
291
  }
292
292
  ];
293
293
  //#endregion
package/dist/compiler.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import { n as Explanations, r as docsUrl, t as Codes } from "./codes-D-6LxUqD.js";
2
- import { A as findLucentFiles, C as bindExtensions, D as LUCENT_EXTENSION, E as identityScript, F as moduleNamespace, G as cachedModules, I as extensionDts, J as forgetLoadedSdks, L as sdkDts, M as platformOf, N as projectFiles, O as coreJsPath, P as usesPlatforms, Q as sdkNames, R as coverage, S as inNativePackage, T as RUNTIME_ABI, W as podsSearchPaths, X as sdkAvailable, Y as prefetch, _ as VIEW_CONTRACT_VERSION, a as report, b as PACKAGE_FIELDS, c as sdkModules, d as isUpToDate, f as runtimeDir, g as libraryBuildGradle, h as toolkitsFrom, i as projectExtensions, j as moduleNameOf, k as coreTypesPath, l as deferredLibraryGradle, m as jsxToolkits, n as compile, o as sdkDeclarations, p as writeNativePackage, q as extractionCount, r as compileDirectory, s as sdkModule, t as checkSources, tt as formatDiagnostic, u as inputsKey, v as resolveNative, w as forgetExtensionHeaders, x as fileHashes, y as EXTENSION_FIELDS } from "./src-DlICbK91.js";
2
+ import { A as findLucentFiles, C as bindExtensions, D as LUCENT_EXTENSION, E as identityScript, F as moduleNamespace, G as cachedModules, I as extensionDts, J as forgetLoadedSdks, L as sdkDts, M as platformOf, N as projectFiles, O as coreJsPath, P as usesPlatforms, Q as sdkNames, R as coverage, S as inNativePackage, T as RUNTIME_ABI, W as podsSearchPaths, X as sdkAvailable, Y as prefetch, _ as VIEW_CONTRACT_VERSION, a as report, b as PACKAGE_FIELDS, c as sdkModules, d as isUpToDate, f as runtimeDir, g as libraryBuildGradle, h as toolkitsFrom, i as projectExtensions, j as moduleNameOf, k as coreTypesPath, l as deferredLibraryGradle, m as jsxToolkits, n as compile, o as sdkDeclarations, p as writeNativePackage, q as extractionCount, r as compileDirectory, s as sdkModule, t as checkSources, tt as formatDiagnostic, u as inputsKey, v as resolveNative, w as forgetExtensionHeaders, x as fileHashes, y as EXTENSION_FIELDS } from "./src-Bzpv4-ox.js";
3
3
  import { i as satisfies, n as lucentPackages, r as lucentVersion } from "./packages-CSmKeaAh.js";
4
4
  export { Codes, EXTENSION_FIELDS, Explanations, LUCENT_EXTENSION, PACKAGE_FIELDS, RUNTIME_ABI, VIEW_CONTRACT_VERSION, bindExtensions, cachedModules, checkSources, compile, compileDirectory, coreJsPath, coreTypesPath, deferredLibraryGradle, docsUrl, extensionDts, extractionCount, fileHashes, findLucentFiles, forgetExtensionHeaders, forgetLoadedSdks, formatDiagnostic, identityScript, inNativePackage, inputsKey, isUpToDate, jsxToolkits, libraryBuildGradle, lucentPackages, lucentVersion, moduleNameOf, moduleNamespace, platformOf, podsSearchPaths, prefetch as prefetchSdk, projectExtensions, projectFiles, report, resolveNative, runtimeDir, satisfies, sdkAvailable, coverage as sdkCoverage, sdkDeclarations, sdkDts, sdkModule, sdkModules, sdkNames, toolkitsFrom, usesPlatforms, writeNativePackage };
@@ -1,5 +1,5 @@
1
1
  import { i as table, n as duration, t as codeFrame } from "./format-D9fnIMEx.js";
2
- import { i as ACTION_TEXT, n as nextText } from "./pipeline-BBY0df_2.js";
2
+ import { i as ACTION_TEXT, n as nextText } from "./pipeline-rDlFUUa1.js";
3
3
  import { Box, Text, render, useApp, useInput } from "ink";
4
4
  import { useState, useSyncExternalStore } from "react";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,8 +1,8 @@
1
1
  import { t as createTheme } from "./theme-uv5bc0aK.js";
2
2
  import { n as version } from "./version-bqpIO5sP.js";
3
- import { D as LUCENT_EXTENSION, M as platformOf, j as moduleNameOf } from "./src-DlICbK91.js";
3
+ import { D as LUCENT_EXTENSION, M as platformOf, j as moduleNameOf } from "./src-Bzpv4-ox.js";
4
4
  import { n as lucentPackages } from "./packages-CSmKeaAh.js";
5
- import { i as ACTION_TEXT, n as nextText, r as plural, t as buildProject } from "./pipeline-BBY0df_2.js";
5
+ import { i as ACTION_TEXT, n as nextText, r as plural, t as buildProject } from "./pipeline-rDlFUUa1.js";
6
6
  import { t as plainSteps } from "./steps--_h-FFS7.js";
7
7
  import { n as systemProbe, t as diagnose } from "./doctor-CTAX3euc.js";
8
8
  import fs from "node:fs";
@@ -226,7 +226,7 @@ async function run({ root, flags, out }) {
226
226
  session.stop();
227
227
  return 0;
228
228
  }
229
- const { dashboard } = await import("./dashboard-C8iF5-6T.js");
229
+ const { dashboard } = await import("./dashboard--hlNXMUi.js");
230
230
  await dashboard({
231
231
  session,
232
232
  theme: out.theme,
@@ -1,7 +1,7 @@
1
- import { C as bindExtensions, F as moduleNamespace, M as platformOf, N as projectFiles, P as usesPlatforms, S as inNativePackage, Z as sdkModuleArtifacts, d as isUpToDate, j as moduleNameOf, l as deferredLibraryGradle, n as compile, p as writeNativePackage, q as extractionCount, s as sdkModule, u as inputsKey, v as resolveNative } from "./src-DlICbK91.js";
1
+ import { C as bindExtensions, F as moduleNamespace, M as platformOf, N as projectFiles, P as usesPlatforms, S as inNativePackage, Z as sdkModuleArtifacts, d as isUpToDate, j as moduleNameOf, l as deferredLibraryGradle, n as compile, p as writeNativePackage, q as extractionCount, s as sdkModule, u as inputsKey, v as resolveNative } from "./src-Bzpv4-ox.js";
2
2
  import { n as lucentPackages } from "./packages-CSmKeaAh.js";
3
- import { a as projectHashes, c as sdkImports, i as pendingAndroidModules, l as staleAutolinking, n as mapLucentPaths, o as projectSdk, r as missingAppEntries, s as resolveAndroidDependencies, t as backgroundPrefetch, u as writeLinkedPackage } from "./project-BLhWwnns.js";
4
- import { a as lockProblems, c as sdkUsage, d as writeUsage, i as frozenFailure, l as usageReadable, n as USAGE_FILE, o as readUsage, s as sdkUnavailable, t as LOCK_FILE, u as usedModules } from "./sdk-usage-ljX5bTuZ.js";
3
+ import { a as projectHashes, c as sdkImports, i as pendingAndroidModules, l as staleAutolinking, n as mapLucentPaths, o as projectSdk, r as missingAppEntries, s as resolveAndroidDependencies, t as backgroundPrefetch, u as writeLinkedPackage } from "./project-MN6cwMwO.js";
4
+ import { a as lockProblems, c as sdkUsage, d as writeUsage, i as frozenFailure, l as usageReadable, n as USAGE_FILE, o as readUsage, s as sdkUnavailable, t as LOCK_FILE, u as usedModules } from "./sdk-usage-D_ly-uLw.js";
5
5
  import fs from "node:fs";
6
6
  import path from "node:path";
7
7
  import { createHash } from "node:crypto";
@@ -1,5 +1,5 @@
1
1
  import { t as packageFile } from "./version-bqpIO5sP.js";
2
- import { J as forgetLoadedSdks, W as podsSearchPaths, c as sdkModules, f as runtimeDir, g as libraryBuildGradle, v as resolveNative, x as fileHashes } from "./src-DlICbK91.js";
2
+ import { J as forgetLoadedSdks, W as podsSearchPaths, c as sdkModules, f as runtimeDir, g as libraryBuildGradle, v as resolveNative, x as fileHashes } from "./src-Bzpv4-ox.js";
3
3
  import { n as lucentPackages } from "./packages-CSmKeaAh.js";
4
4
  import { t as withLucentPaths } from "./tsconfig-S4uyLNzf.js";
5
5
  import fs from "node:fs";
@@ -1,7 +1,7 @@
1
- import { N as projectFiles, R as coverage, U as symbolKey, c as sdkModules, et as sdkSourceModule, h as toolkitsFrom, s as sdkModule } from "./src-DlICbK91.js";
2
- import { c as sdkImports, o as projectSdk } from "./project-BLhWwnns.js";
1
+ import { N as projectFiles, R as coverage, U as symbolKey, c as sdkModules, et as sdkSourceModule, h as toolkitsFrom, s as sdkModule } from "./src-Bzpv4-ox.js";
2
+ import { c as sdkImports, o as projectSdk } from "./project-MN6cwMwO.js";
3
3
  import { i as table } from "./format-D9fnIMEx.js";
4
- import { n as USAGE_FILE, o as readUsage } from "./sdk-usage-ljX5bTuZ.js";
4
+ import { n as USAGE_FILE, o as readUsage } from "./sdk-usage-D_ly-uLw.js";
5
5
  import fs from "node:fs";
6
6
  import path from "node:path";
7
7
  //#region src/cli/commands/sdk-coverage.ts
@@ -1,7 +1,7 @@
1
- import { B as diffModule, H as displayName, K as cachedSchema, U as symbolKey, V as diffSymbols, s as sdkModule, z as compareArtifacts } from "./src-DlICbK91.js";
2
- import { o as projectSdk } from "./project-BLhWwnns.js";
1
+ import { B as diffModule, H as displayName, K as cachedSchema, U as symbolKey, V as diffSymbols, s as sdkModule, z as compareArtifacts } from "./src-Bzpv4-ox.js";
2
+ import { o as projectSdk } from "./project-MN6cwMwO.js";
3
3
  import { i as table } from "./format-D9fnIMEx.js";
4
- import { o as readUsage, r as artifactText, s as sdkUnavailable, t as LOCK_FILE, u as usedModules } from "./sdk-usage-ljX5bTuZ.js";
4
+ import { o as readUsage, r as artifactText, s as sdkUnavailable, t as LOCK_FILE, u as usedModules } from "./sdk-usage-D_ly-uLw.js";
5
5
  import path from "node:path";
6
6
  //#region src/cli/commands/sdk-diff.ts
7
7
  const entry = (c) => {
@@ -1,5 +1,5 @@
1
- import { r as plural, t as buildProject } from "./pipeline-BBY0df_2.js";
2
- import { d as writeUsage, t as LOCK_FILE } from "./sdk-usage-ljX5bTuZ.js";
1
+ import { r as plural, t as buildProject } from "./pipeline-rDlFUUa1.js";
2
+ import { d as writeUsage, t as LOCK_FILE } from "./sdk-usage-D_ly-uLw.js";
3
3
  import { t as plainSteps } from "./steps--_h-FFS7.js";
4
4
  import path from "node:path";
5
5
  //#region src/cli/commands/sdk-lock.ts
@@ -1,5 +1,5 @@
1
- import { N as projectFiles, c as sdkModules, q as extractionCount, s as sdkModule } from "./src-DlICbK91.js";
2
- import { c as sdkImports, o as projectSdk } from "./project-BLhWwnns.js";
1
+ import { N as projectFiles, c as sdkModules, q as extractionCount, s as sdkModule } from "./src-Bzpv4-ox.js";
2
+ import { c as sdkImports, o as projectSdk } from "./project-MN6cwMwO.js";
3
3
  import { t as plainSteps } from "./steps--_h-FFS7.js";
4
4
  //#region src/cli/commands/sdk-prefetch.ts
5
5
  async function run({ root, flags, out }) {
@@ -1,5 +1,5 @@
1
- import { G as cachedModules, N as projectFiles, Q as sdkNames, X as sdkAvailable, s as sdkModule } from "./src-DlICbK91.js";
2
- import { c as sdkImports, o as projectSdk } from "./project-BLhWwnns.js";
1
+ import { G as cachedModules, N as projectFiles, Q as sdkNames, X as sdkAvailable, s as sdkModule } from "./src-Bzpv4-ox.js";
2
+ import { c as sdkImports, o as projectSdk } from "./project-MN6cwMwO.js";
3
3
  import { i as table } from "./format-D9fnIMEx.js";
4
4
  //#region src/cli/commands/sdk-search.ts
5
5
  function run({ root, positionals, out }) {
@@ -1,5 +1,5 @@
1
- import { X as sdkAvailable, c as sdkModules, o as sdkDeclarations, s as sdkModule } from "./src-DlICbK91.js";
2
- import { o as projectSdk } from "./project-BLhWwnns.js";
1
+ import { X as sdkAvailable, c as sdkModules, o as sdkDeclarations, s as sdkModule } from "./src-Bzpv4-ox.js";
2
+ import { o as projectSdk } from "./project-MN6cwMwO.js";
3
3
  //#region src/cli/commands/sdk-show.ts
4
4
  function run({ root, positionals, out }) {
5
5
  const t = out.theme;
@@ -1,4 +1,4 @@
1
- import { $ as sdkSchemaEntry, H as displayName, U as symbolKey, X as sdkAvailable, Z as sdkModuleArtifacts, s as sdkModule, z as compareArtifacts } from "./src-DlICbK91.js";
1
+ import { $ as sdkSchemaEntry, H as displayName, U as symbolKey, X as sdkAvailable, Z as sdkModuleArtifacts, s as sdkModule, z as compareArtifacts } from "./src-Bzpv4-ox.js";
2
2
  import fs from "node:fs";
3
3
  import path from "node:path";
4
4
  //#region src/cli/sdk-usage.ts