@opentuah/core 0.1.85 → 0.1.87
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/3d.js
CHANGED
|
@@ -8104,15 +8104,23 @@ var CursorStateStruct = defineStruct([
|
|
|
8104
8104
|
]);
|
|
8105
8105
|
|
|
8106
8106
|
// src/zig.ts
|
|
8107
|
-
var
|
|
8108
|
-
|
|
8109
|
-
|
|
8110
|
-
|
|
8107
|
+
var targetLibPath;
|
|
8108
|
+
try {
|
|
8109
|
+
const module = await import(`@opentuah/core-${process.platform}-${process.arch}/index.ts`);
|
|
8110
|
+
targetLibPath = module.default;
|
|
8111
|
+
} catch {
|
|
8112
|
+
if (process.platform === "linux") {
|
|
8113
|
+
const module = await import(`@opentuah/core-linux-musl-${process.arch}/index.ts`);
|
|
8114
|
+
targetLibPath = module.default;
|
|
8115
|
+
} else {
|
|
8116
|
+
throw new Error(`opentui is not supported on the current platform: ${process.platform}-${process.arch}`);
|
|
8117
|
+
}
|
|
8118
|
+
}
|
|
8111
8119
|
if (isBunfsPath(targetLibPath)) {
|
|
8112
8120
|
targetLibPath = targetLibPath.replace("../", "");
|
|
8113
8121
|
}
|
|
8114
8122
|
if (!existsSync2(targetLibPath)) {
|
|
8115
|
-
throw new Error(`opentui is not supported on the current platform: ${
|
|
8123
|
+
throw new Error(`opentui is not supported on the current platform: ${process.platform}-${process.arch}`);
|
|
8116
8124
|
}
|
|
8117
8125
|
registerEnvVar({
|
|
8118
8126
|
name: "OTUI_DEBUG_FFI",
|
|
@@ -15070,5 +15078,5 @@ Captured output:
|
|
|
15070
15078
|
|
|
15071
15079
|
export { isValidBorderStyle, parseBorderStyle, BorderChars, getBorderFromSides, getBorderSides, borderCharsToArray, BorderCharArrays, nonAlphanumericKeys, parseKeypress, KeyEvent, PasteEvent, KeyHandler, InternalKeyHandler, RGBA, hexToRgb, rgbToHex, hsvToRgb, parseColor, fonts, measureText, getCharacterPositions, coordinateToCharacterIndex, renderFontToFrameBuffer, TextAttributes, ATTRIBUTE_BASE_BITS, ATTRIBUTE_BASE_MASK, getBaseAttributes, DebugOverlayCorner, createTextAttributes, attributesWithLink, getLinkId, visualizeRenderableTree, isStyledText, StyledText, stringToStyledText, black, red, green, yellow, blue, magenta, cyan, white, brightBlack, brightRed, brightGreen, brightYellow, brightBlue, brightMagenta, brightCyan, brightWhite, bgBlack, bgRed, bgGreen, bgYellow, bgBlue, bgMagenta, bgCyan, bgWhite, bold, italic, underline, strikethrough, dim, reverse, blink, fg, bg, link, t, hastToStyledText, LinearScrollAccel, MacOSScrollAccel, StdinBuffer, parseAlign, parseAlignItems, parseBoxSizing, parseDimension, parseDirection, parseDisplay, parseEdge, parseFlexDirection, parseGutter, parseJustify, parseLogLevel, parseMeasureMode, parseOverflow, parsePositionType, parseUnit, parseWrap, MouseParser, Selection, convertGlobalToLocalSelection, ASCIIFontSelectionHelper, envRegistry, registerEnvVar, clearEnvCache, generateEnvMarkdown, generateEnvColored, env, treeSitterToTextChunks, treeSitterToStyledText, addDefaultParsers, TreeSitterClient, DataPathsManager, getDataPaths, extToFiletype, pathToFiletype, main, getTreeSitterClient, ExtmarksController, createExtmarksController, TerminalPalette, createTerminalPalette, VTermStyleFlags, vtermDataToStyledText, TextBuffer, LogLevel2 as LogLevel, setRenderLibPath, resolveRenderLib, OptimizedBuffer, h, isVNode, maybeMakeRenderable, wrapWithDelegates, instantiate, delegate, isValidPercentage, LayoutEvents, RenderableEvents, isRenderable, BaseRenderable, Renderable, RootRenderable, ANSI, defaultKeyAliases, mergeKeyAliases, mergeKeyBindings, getKeyBindingKey, buildKeyBindingsMap, capture, ConsolePosition, TerminalConsole, getObjectsInViewport, buildKittyKeyboardFlags, MouseEvent, MouseButton, createCliRenderer, CliRenderEvents, RendererControlState, CliRenderer };
|
|
15072
15080
|
|
|
15073
|
-
//# debugId=
|
|
15074
|
-
//# sourceMappingURL=index-
|
|
15081
|
+
//# debugId=C15A319C5711EB2964756E2164756E21
|
|
15082
|
+
//# sourceMappingURL=index-1n3xjscm.js.map
|