@opentuah/core 0.1.85 → 0.1.86
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,22 @@ 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
|
+
throw new Error(`opentui is not supported on the current platform: ${process.platform}-${process.arch}`);
|
|
8114
|
+
}
|
|
8115
|
+
const module = await import(`@opentuah/core-linux-musl-${process.arch}/index.ts`);
|
|
8116
|
+
targetLibPath = module.default;
|
|
8117
|
+
}
|
|
8111
8118
|
if (isBunfsPath(targetLibPath)) {
|
|
8112
8119
|
targetLibPath = targetLibPath.replace("../", "");
|
|
8113
8120
|
}
|
|
8114
8121
|
if (!existsSync2(targetLibPath)) {
|
|
8115
|
-
throw new Error(`opentui is not supported on the current platform: ${
|
|
8122
|
+
throw new Error(`opentui is not supported on the current platform: ${process.platform}-${process.arch}`);
|
|
8116
8123
|
}
|
|
8117
8124
|
registerEnvVar({
|
|
8118
8125
|
name: "OTUI_DEBUG_FFI",
|
|
@@ -15070,5 +15077,5 @@ Captured output:
|
|
|
15070
15077
|
|
|
15071
15078
|
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
15079
|
|
|
15073
|
-
//# debugId=
|
|
15074
|
-
//# sourceMappingURL=index-
|
|
15080
|
+
//# debugId=7E0C146AD00552B664756E2164756E21
|
|
15081
|
+
//# sourceMappingURL=index-k7jgng5f.js.map
|