GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Merge main into fix/11558-file-tooltip-hover · pingdotgg/t3code@a429aa3

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .macroscope
    • ignore.md
  • apps
    • mobile
      • .swiftlint.yml
      • README.md
      • app.config.ts
      • metro.config.js
      • modules/t3-highlights
        • T3HighlightsNative.podspec
        • Vendor
          • highlights
            • highlights.c
            • highlights.h
          • simde
            • LICENSE
            • wasm
              • simd128.h
          • wasm2c
            • LICENSE
            • wasm-rt-impl-tableops.inc
            • wasm-rt-impl.c
            • wasm-rt-impl.h
            • wasm-rt-mem-impl-helper.inc
            • wasm-rt-mem-impl.c
            • wasm-rt.h
        • android
          • .gitignore
          • build.gradle
          • src/main
            • AndroidManifest.xml
            • cpp
              • CMakeLists.txt
              • t3_highlights_jni.c
            • java/expo/modules/t3highlights
              • T3HighlightsModule.kt
        • cpp
          • generated
            • id_ranges.inc
          • t3_highlights.c
          • t3_highlights.h
        • expo-module.config.json
        • ios
          • T3HighlightsModule.swift
        • package.json
      • package.json
      • plugins
        • withAndroidFbjniVersion.cjs
        • withAndroidFbjniVersion.test.mjs
      • scripts
        • generate-highlights.mts
        • generate-highlights.test.ts
      • src
        • features
          • diffs
            • nativeReviewDiffHighlighter.test.ts
            • nativeReviewDiffHighlighter.ts
            • nativeReviewDiffTypes.ts
          • files
            • SourceFileSurface.tsx
            • nativeSourceFileAdapter.ts
            • preload-workspace-file.ts
            • source-file-document.ts
            • sourceHighlightingState.ts
          • review
            • ReviewCommentComposerSheet.tsx
            • highlightReviewSelectedLines.ts
            • incrementalSnippet.test.ts
            • incrementalSnippet.ts
            • nativeReviewDiffAdapter.ts
            • reviewDiffBridgeKeys.ts
            • reviewHighlighterEngine.ts
            • shikiReviewHighlighter.test.ts
            • shikiReviewHighlighter.ts
            • useNativeReviewDiffHighlighting.ts
          • threads
            • ThreadFeed.tsx
            • markdownCodeHighlightState.ts
        • lib
          • highlightLanguage.ts
          • highlights.generated.ts
          • highlights.test.ts
          • highlights.testing.ts
          • highlights.ts
    • server/src
      • auth
        • EnvironmentAuth.test.ts
        • EnvironmentAuth.ts
        • SessionStore.ts
        • dpop.ts
        • http.ts
      • mcp
        • McpHttpServer.test.ts
        • toolkits/orchestrator
          • tools.ts
      • provider
        • CodexDeveloperInstructions.test.ts
      • ws.ts
    • web/test
      • environmentHttpTest.ts
  • docs
    • internals
      • environment-auth.md
    • orchestration-v2
      • orchestrator-mcp-server.md
  • knip.jsonc
  • packages
    • client-runtime/src
      • authorization
        • layer.test.ts
        • remote.test.ts
        • remote.ts
        • service.ts
      • connection
        • supervisor.test.ts
      • state
        • deviceHubAccess.ts
    • contracts/src
      • auth.ts
      • environmentHttp.ts
    • provider-core/src/server
      • orchestrationInstructions.ts
  • pnpm-lock.yaml
  • pnpm-workspace.yaml
  • scripts
    • release-smoke.ts
  • third-party-licenses.config.json
  • vite.config.ts

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.macroscope/ignore.md‎

Copy file name to clipboardExpand all lines: .macroscope/ignore.md
+5Lines changed: 5 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -274,3 +274,8 @@ infra/relay/migrations/**/snapshot.json
274274
# Ghostty build output vendored from upstream.
275275
apps/mobile/modules/t3-terminal/Vendor/**
276276
native/libghostty-vt/include/**
277+
278+
# @pierre/highlights compiled to C by wasm2c, plus the wasm2c runtime and simde
279+
# it needs. Regenerated by apps/mobile/scripts/generate-highlights.mts; review
280+
# that script and cpp/t3_highlights.c instead.
281+
apps/mobile/modules/t3-highlights/Vendor/**
Collapse file

‎apps/mobile/.swiftlint.yml‎

Copy file name to clipboardExpand all lines: apps/mobile/.swiftlint.yml
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
included:
22
- ios/T3Code
33
- modules/t3-composer-editor/ios
4+
- modules/t3-highlights/ios
45
- modules/t3-native-controls/ios
56
- modules/t3-terminal/ios
67
- modules/t3-review-diff/ios
Collapse file

‎apps/mobile/README.md‎

Copy file name to clipboardExpand all lines: apps/mobile/README.md
-8Lines changed: 0 additions & 8 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,6 @@ Build and run the local iOS preview app:
9696
vp run ios:preview
9797
```
9898

99-
Force the review diff highlighter engine:
100-
101-
```bash
102-
EXPO_PUBLIC_REVIEW_HIGHLIGHTER_ENGINE=javascript vp run ios:dev
103-
```
104-
105-
`javascript` is the default and recommended setting for the review diff screen. Set `EXPO_PUBLIC_REVIEW_HIGHLIGHTER_ENGINE=native` only when you explicitly want to test the native Shiki engine.
106-
10799
Inspect the resolved Expo config for a variant:
108100

109101
```bash
Collapse file

‎apps/mobile/app.config.ts‎

Copy file name to clipboardExpand all lines: apps/mobile/app.config.ts
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,6 @@ const config: ExpoConfig = {
454454
...(!isIosPersonalTeamBuild ? ["./plugins/withWidgetLogoAsset.cjs", widgetsPlugin] : []),
455455
"./plugins/withAndroidCleartextTraffic.cjs",
456456
"./plugins/withAndroidGradleHeap.cjs",
457-
"./plugins/withAndroidFbjniVersion.cjs",
458457
"./plugins/withAndroidInputBackground.cjs",
459458
"./plugins/withAndroidModernPopupMenu.cjs",
460459
"./plugins/withAndroidModernAlertDialog.cjs",
Collapse file

‎apps/mobile/metro.config.js‎

Copy file name to clipboardExpand all lines: apps/mobile/metro.config.js
-23Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,8 @@ const licenseGeneratorSource = path.join(
1616
"third-party-licenses.ts",
1717
);
1818
const escapedWorkspaceRoot = workspaceRoot.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
19-
const mobileShikiRoot = path.dirname(require.resolve("shiki/package.json", { paths: [__dirname] }));
2019
const generatedDeviceStreamRoot = path.join(__dirname, ".generated", "device-stream");
2120
const generatedPreviewStreamRoot = path.join(__dirname, ".generated", "preview-stream");
22-
const resolveShikiDependencyRoot = (packageName) => {
23-
const entryPath = require.resolve(packageName, { paths: [mobileShikiRoot] });
24-
let currentDir = path.dirname(entryPath);
25-
26-
while (!fs.existsSync(path.join(currentDir, "package.json"))) {
27-
const parentDir = path.dirname(currentDir);
28-
if (parentDir === currentDir) {
29-
throw new Error(`Could not resolve package root for ${packageName}`);
30-
}
31-
currentDir = parentDir;
32-
}
33-
34-
return currentDir;
35-
};
3621

3722
config.watchFolders = [...new Set([...(config.watchFolders ?? []), workspaceRoot])];
3823
config.resolver = {
@@ -50,14 +35,6 @@ config.resolver = {
5035
"@t3tools/mobile-third-party-licenses": generatedLicenseModuleRoot,
5136
"@t3tools/mobile-device-stream": generatedDeviceStreamRoot,
5237
"@t3tools/mobile-preview-stream": generatedPreviewStreamRoot,
53-
shiki: mobileShikiRoot,
54-
"@shikijs/core": resolveShikiDependencyRoot("@shikijs/core"),
55-
"@shikijs/engine-javascript": resolveShikiDependencyRoot("@shikijs/engine-javascript"),
56-
"@shikijs/engine-oniguruma": resolveShikiDependencyRoot("@shikijs/engine-oniguruma"),
57-
"@shikijs/langs": resolveShikiDependencyRoot("@shikijs/langs"),
58-
"@shikijs/themes": resolveShikiDependencyRoot("@shikijs/themes"),
59-
"@shikijs/types": resolveShikiDependencyRoot("@shikijs/types"),
60-
"@shikijs/vscode-textmate": resolveShikiDependencyRoot("@shikijs/vscode-textmate"),
6138
},
6239
};
6340

Collapse file

‎apps/mobile/modules/t3-highlights/T3HighlightsNative.podspec‎

Copy file name to clipboard
+30Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
require 'json'
2+
3+
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
4+
5+
Pod::Spec.new do |s|
6+
s.name = 'T3HighlightsNative'
7+
s.version = package['version']
8+
s.summary = 'Native @pierre/highlights syntax highlighter for T3 Code mobile.'
9+
s.description = 'Runs the @pierre/highlights lexers, compiled from WebAssembly to C with wasm2c.'
10+
s.homepage = 'https://t3tools.com'
11+
s.license = { :type => 'UNLICENSED' }
12+
s.author = { 'T3 Tools' => '[email protected]' }
13+
s.platforms = { :ios => '16.1' }
14+
s.source = { :path => '.' }
15+
s.source_files = 'ios/**/*.swift', 'cpp/**/*.{c,h,inc}', 'Vendor/**/*.{c,h,inc}'
16+
# Swift sees only the wrapper; the generated and runtime headers stay private.
17+
s.public_header_files = 'cpp/t3_highlights.h'
18+
# Debug builds compile at -O0 by default, which makes the lexers several times
19+
# slower. They are generated code, so optimize them in every configuration.
20+
s.compiler_flags = '-O2'
21+
s.pod_target_xcconfig = {
22+
'DEFINES_MODULE' => 'YES',
23+
# Plain malloc memory with explicit bounds checks: no guard-page signal
24+
# handlers competing with the app's crash reporting.
25+
'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) WASM_RT_USE_MMAP=0 WASM_RT_MEMCHECK_BOUNDS_CHECK=1 WASM_RT_SKIP_SIGNAL_RECOVERY=1',
26+
'HEADER_SEARCH_PATHS' => '$(inherited) "${PODS_TARGET_SRCROOT}/Vendor" "${PODS_TARGET_SRCROOT}/Vendor/highlights" "${PODS_TARGET_SRCROOT}/Vendor/wasm2c"',
27+
}
28+
s.swift_version = '5.9'
29+
s.dependency 'ExpoModulesCore'
30+
end

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.