pando-ai 0.1.4 → 0.1.9

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.
Files changed (150) hide show
  1. package/dist/cli.js +124 -124
  2. package/dist/watcher-process.js +421 -421
  3. package/dist/workers/chunk-Z7LW7C4Z.mjs +518 -0
  4. package/dist/workers/indexer-worker.mjs +1 -1
  5. package/dist/workers/snapshot-worker.mjs +8 -4
  6. package/package.json +5 -4
  7. package/resources/tools/{pando-tools.json → generated_pando-tools.json} +98 -4
  8. package/resources/tools/generated_tools.md +93 -0
  9. package/tools/clojure-editor/lib/pando-clojure-editor-standalone.jar +0 -0
  10. package/tools/clojure-indexer/lib/pando-clojure-indexer-standalone.jar +0 -0
  11. package/tools/csharp-indexer/CSharpIndexer.csproj +1 -1
  12. package/tools/csharp-indexer/bin/pando-csharp-indexer +81 -23
  13. package/tools/csharp-indexer/bin/pando-csharp-indexer.cmd +82 -14
  14. package/tools/csharp-indexer/src/Program.cs +1860 -0
  15. package/dist/workers/chunk-BD3AO7O3.mjs +0 -522
  16. package/tools/csharp-indexer/bin/Release/net10.0/CSharpIndexer +0 -0
  17. package/tools/csharp-indexer/bin/Release/net10.0/CSharpIndexer.deps.json +0 -383
  18. package/tools/csharp-indexer/bin/Release/net10.0/CSharpIndexer.dll +0 -0
  19. package/tools/csharp-indexer/bin/Release/net10.0/CSharpIndexer.pdb +0 -0
  20. package/tools/csharp-indexer/bin/Release/net10.0/CSharpIndexer.runtimeconfig.json +0 -13
  21. package/tools/csharp-indexer/bin/Release/net10.0/Humanizer.dll +0 -0
  22. package/tools/csharp-indexer/bin/Release/net10.0/Microsoft.CodeAnalysis.CSharp.Workspaces.dll +0 -0
  23. package/tools/csharp-indexer/bin/Release/net10.0/Microsoft.CodeAnalysis.CSharp.dll +0 -0
  24. package/tools/csharp-indexer/bin/Release/net10.0/Microsoft.CodeAnalysis.Workspaces.dll +0 -0
  25. package/tools/csharp-indexer/bin/Release/net10.0/Microsoft.CodeAnalysis.dll +0 -0
  26. package/tools/csharp-indexer/bin/Release/net10.0/System.Composition.AttributedModel.dll +0 -0
  27. package/tools/csharp-indexer/bin/Release/net10.0/System.Composition.Convention.dll +0 -0
  28. package/tools/csharp-indexer/bin/Release/net10.0/System.Composition.Hosting.dll +0 -0
  29. package/tools/csharp-indexer/bin/Release/net10.0/System.Composition.Runtime.dll +0 -0
  30. package/tools/csharp-indexer/bin/Release/net10.0/System.Composition.TypedParts.dll +0 -0
  31. package/tools/csharp-indexer/bin/Release/net10.0/cs/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  32. package/tools/csharp-indexer/bin/Release/net10.0/cs/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  33. package/tools/csharp-indexer/bin/Release/net10.0/cs/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  34. package/tools/csharp-indexer/bin/Release/net10.0/cs/Microsoft.CodeAnalysis.resources.dll +0 -0
  35. package/tools/csharp-indexer/bin/Release/net10.0/de/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  36. package/tools/csharp-indexer/bin/Release/net10.0/de/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  37. package/tools/csharp-indexer/bin/Release/net10.0/de/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  38. package/tools/csharp-indexer/bin/Release/net10.0/de/Microsoft.CodeAnalysis.resources.dll +0 -0
  39. package/tools/csharp-indexer/bin/Release/net10.0/es/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  40. package/tools/csharp-indexer/bin/Release/net10.0/es/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  41. package/tools/csharp-indexer/bin/Release/net10.0/es/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  42. package/tools/csharp-indexer/bin/Release/net10.0/es/Microsoft.CodeAnalysis.resources.dll +0 -0
  43. package/tools/csharp-indexer/bin/Release/net10.0/fr/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  44. package/tools/csharp-indexer/bin/Release/net10.0/fr/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  45. package/tools/csharp-indexer/bin/Release/net10.0/fr/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  46. package/tools/csharp-indexer/bin/Release/net10.0/fr/Microsoft.CodeAnalysis.resources.dll +0 -0
  47. package/tools/csharp-indexer/bin/Release/net10.0/it/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  48. package/tools/csharp-indexer/bin/Release/net10.0/it/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  49. package/tools/csharp-indexer/bin/Release/net10.0/it/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  50. package/tools/csharp-indexer/bin/Release/net10.0/it/Microsoft.CodeAnalysis.resources.dll +0 -0
  51. package/tools/csharp-indexer/bin/Release/net10.0/ja/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  52. package/tools/csharp-indexer/bin/Release/net10.0/ja/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  53. package/tools/csharp-indexer/bin/Release/net10.0/ja/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  54. package/tools/csharp-indexer/bin/Release/net10.0/ja/Microsoft.CodeAnalysis.resources.dll +0 -0
  55. package/tools/csharp-indexer/bin/Release/net10.0/ko/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  56. package/tools/csharp-indexer/bin/Release/net10.0/ko/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  57. package/tools/csharp-indexer/bin/Release/net10.0/ko/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  58. package/tools/csharp-indexer/bin/Release/net10.0/ko/Microsoft.CodeAnalysis.resources.dll +0 -0
  59. package/tools/csharp-indexer/bin/Release/net10.0/pl/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  60. package/tools/csharp-indexer/bin/Release/net10.0/pl/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  61. package/tools/csharp-indexer/bin/Release/net10.0/pl/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  62. package/tools/csharp-indexer/bin/Release/net10.0/pl/Microsoft.CodeAnalysis.resources.dll +0 -0
  63. package/tools/csharp-indexer/bin/Release/net10.0/pt-BR/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  64. package/tools/csharp-indexer/bin/Release/net10.0/pt-BR/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  65. package/tools/csharp-indexer/bin/Release/net10.0/pt-BR/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  66. package/tools/csharp-indexer/bin/Release/net10.0/pt-BR/Microsoft.CodeAnalysis.resources.dll +0 -0
  67. package/tools/csharp-indexer/bin/Release/net10.0/ru/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  68. package/tools/csharp-indexer/bin/Release/net10.0/ru/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  69. package/tools/csharp-indexer/bin/Release/net10.0/ru/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  70. package/tools/csharp-indexer/bin/Release/net10.0/ru/Microsoft.CodeAnalysis.resources.dll +0 -0
  71. package/tools/csharp-indexer/bin/Release/net10.0/tr/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  72. package/tools/csharp-indexer/bin/Release/net10.0/tr/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  73. package/tools/csharp-indexer/bin/Release/net10.0/tr/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  74. package/tools/csharp-indexer/bin/Release/net10.0/tr/Microsoft.CodeAnalysis.resources.dll +0 -0
  75. package/tools/csharp-indexer/bin/Release/net10.0/zh-Hans/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  76. package/tools/csharp-indexer/bin/Release/net10.0/zh-Hans/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  77. package/tools/csharp-indexer/bin/Release/net10.0/zh-Hans/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  78. package/tools/csharp-indexer/bin/Release/net10.0/zh-Hans/Microsoft.CodeAnalysis.resources.dll +0 -0
  79. package/tools/csharp-indexer/bin/Release/net10.0/zh-Hant/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  80. package/tools/csharp-indexer/bin/Release/net10.0/zh-Hant/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  81. package/tools/csharp-indexer/bin/Release/net10.0/zh-Hant/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  82. package/tools/csharp-indexer/bin/Release/net10.0/zh-Hant/Microsoft.CodeAnalysis.resources.dll +0 -0
  83. package/tools/csharp-indexer/bin/Release/net8.0/CSharpIndexer +0 -0
  84. package/tools/csharp-indexer/bin/Release/net8.0/CSharpIndexer.deps.json +0 -400
  85. package/tools/csharp-indexer/bin/Release/net8.0/CSharpIndexer.dll +0 -0
  86. package/tools/csharp-indexer/bin/Release/net8.0/CSharpIndexer.pdb +0 -0
  87. package/tools/csharp-indexer/bin/Release/net8.0/CSharpIndexer.runtimeconfig.json +0 -13
  88. package/tools/csharp-indexer/bin/Release/net8.0/Humanizer.dll +0 -0
  89. package/tools/csharp-indexer/bin/Release/net8.0/Microsoft.CodeAnalysis.CSharp.Workspaces.dll +0 -0
  90. package/tools/csharp-indexer/bin/Release/net8.0/Microsoft.CodeAnalysis.CSharp.dll +0 -0
  91. package/tools/csharp-indexer/bin/Release/net8.0/Microsoft.CodeAnalysis.Workspaces.dll +0 -0
  92. package/tools/csharp-indexer/bin/Release/net8.0/Microsoft.CodeAnalysis.dll +0 -0
  93. package/tools/csharp-indexer/bin/Release/net8.0/System.Composition.AttributedModel.dll +0 -0
  94. package/tools/csharp-indexer/bin/Release/net8.0/System.Composition.Convention.dll +0 -0
  95. package/tools/csharp-indexer/bin/Release/net8.0/System.Composition.Hosting.dll +0 -0
  96. package/tools/csharp-indexer/bin/Release/net8.0/System.Composition.Runtime.dll +0 -0
  97. package/tools/csharp-indexer/bin/Release/net8.0/System.Composition.TypedParts.dll +0 -0
  98. package/tools/csharp-indexer/bin/Release/net8.0/System.IO.Pipelines.dll +0 -0
  99. package/tools/csharp-indexer/bin/Release/net8.0/cs/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  100. package/tools/csharp-indexer/bin/Release/net8.0/cs/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  101. package/tools/csharp-indexer/bin/Release/net8.0/cs/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  102. package/tools/csharp-indexer/bin/Release/net8.0/cs/Microsoft.CodeAnalysis.resources.dll +0 -0
  103. package/tools/csharp-indexer/bin/Release/net8.0/de/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  104. package/tools/csharp-indexer/bin/Release/net8.0/de/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  105. package/tools/csharp-indexer/bin/Release/net8.0/de/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  106. package/tools/csharp-indexer/bin/Release/net8.0/de/Microsoft.CodeAnalysis.resources.dll +0 -0
  107. package/tools/csharp-indexer/bin/Release/net8.0/es/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  108. package/tools/csharp-indexer/bin/Release/net8.0/es/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  109. package/tools/csharp-indexer/bin/Release/net8.0/es/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  110. package/tools/csharp-indexer/bin/Release/net8.0/es/Microsoft.CodeAnalysis.resources.dll +0 -0
  111. package/tools/csharp-indexer/bin/Release/net8.0/fr/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  112. package/tools/csharp-indexer/bin/Release/net8.0/fr/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  113. package/tools/csharp-indexer/bin/Release/net8.0/fr/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  114. package/tools/csharp-indexer/bin/Release/net8.0/fr/Microsoft.CodeAnalysis.resources.dll +0 -0
  115. package/tools/csharp-indexer/bin/Release/net8.0/it/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  116. package/tools/csharp-indexer/bin/Release/net8.0/it/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  117. package/tools/csharp-indexer/bin/Release/net8.0/it/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  118. package/tools/csharp-indexer/bin/Release/net8.0/it/Microsoft.CodeAnalysis.resources.dll +0 -0
  119. package/tools/csharp-indexer/bin/Release/net8.0/ja/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  120. package/tools/csharp-indexer/bin/Release/net8.0/ja/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  121. package/tools/csharp-indexer/bin/Release/net8.0/ja/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  122. package/tools/csharp-indexer/bin/Release/net8.0/ja/Microsoft.CodeAnalysis.resources.dll +0 -0
  123. package/tools/csharp-indexer/bin/Release/net8.0/ko/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  124. package/tools/csharp-indexer/bin/Release/net8.0/ko/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  125. package/tools/csharp-indexer/bin/Release/net8.0/ko/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  126. package/tools/csharp-indexer/bin/Release/net8.0/ko/Microsoft.CodeAnalysis.resources.dll +0 -0
  127. package/tools/csharp-indexer/bin/Release/net8.0/pl/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  128. package/tools/csharp-indexer/bin/Release/net8.0/pl/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  129. package/tools/csharp-indexer/bin/Release/net8.0/pl/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  130. package/tools/csharp-indexer/bin/Release/net8.0/pl/Microsoft.CodeAnalysis.resources.dll +0 -0
  131. package/tools/csharp-indexer/bin/Release/net8.0/pt-BR/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  132. package/tools/csharp-indexer/bin/Release/net8.0/pt-BR/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  133. package/tools/csharp-indexer/bin/Release/net8.0/pt-BR/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  134. package/tools/csharp-indexer/bin/Release/net8.0/pt-BR/Microsoft.CodeAnalysis.resources.dll +0 -0
  135. package/tools/csharp-indexer/bin/Release/net8.0/ru/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  136. package/tools/csharp-indexer/bin/Release/net8.0/ru/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  137. package/tools/csharp-indexer/bin/Release/net8.0/ru/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  138. package/tools/csharp-indexer/bin/Release/net8.0/ru/Microsoft.CodeAnalysis.resources.dll +0 -0
  139. package/tools/csharp-indexer/bin/Release/net8.0/tr/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  140. package/tools/csharp-indexer/bin/Release/net8.0/tr/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  141. package/tools/csharp-indexer/bin/Release/net8.0/tr/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  142. package/tools/csharp-indexer/bin/Release/net8.0/tr/Microsoft.CodeAnalysis.resources.dll +0 -0
  143. package/tools/csharp-indexer/bin/Release/net8.0/zh-Hans/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  144. package/tools/csharp-indexer/bin/Release/net8.0/zh-Hans/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  145. package/tools/csharp-indexer/bin/Release/net8.0/zh-Hans/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  146. package/tools/csharp-indexer/bin/Release/net8.0/zh-Hans/Microsoft.CodeAnalysis.resources.dll +0 -0
  147. package/tools/csharp-indexer/bin/Release/net8.0/zh-Hant/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  148. package/tools/csharp-indexer/bin/Release/net8.0/zh-Hant/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  149. package/tools/csharp-indexer/bin/Release/net8.0/zh-Hant/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  150. package/tools/csharp-indexer/bin/Release/net8.0/zh-Hant/Microsoft.CodeAnalysis.resources.dll +0 -0
@@ -1,17 +1,85 @@
1
1
  @echo off
2
2
  setlocal
3
3
  set ROOT_DIR=%~dp0\..
4
- set DLL10=%ROOT_DIR%\bin\Release\net10.0\CSharpIndexer.dll
5
- set DLL8=%ROOT_DIR%\bin\Release\net8.0\CSharpIndexer.dll
6
- if exist "%DLL10%" (
7
- dotnet "%DLL10%" %*
8
- exit /b %ERRORLEVEL%
9
- )
10
- if exist "%DLL8%" (
11
- dotnet "%DLL8%" %*
12
- exit /b %ERRORLEVEL%
13
- )
14
- echo CSharpIndexer Release DLL not found. 1>&2
15
- echo Build it with: 1>&2
16
- echo dotnet build "%ROOT_DIR%\CSharpIndexer.csproj" -c Release -f net10.0 1>&2
17
- exit /b 1
4
+ where dotnet >nul 2>nul
5
+ if errorlevel 1 (
6
+ echo CSharpIndexer requires the .NET SDK on PATH so it can build against the host SDK on first run. 1>&2
7
+ echo Install .NET SDK from https://dotnet.microsoft.com/download 1>&2
8
+ exit /b 1
9
+ )
10
+ if not exist "%ROOT_DIR%\CSharpIndexer.csproj" (
11
+ echo CSharpIndexer source is missing from %ROOT_DIR%. 1>&2
12
+ exit /b 1
13
+ )
14
+ if not exist "%ROOT_DIR%\src\Program.cs" (
15
+ echo CSharpIndexer source is missing from %ROOT_DIR%. 1>&2
16
+ exit /b 1
17
+ )
18
+
19
+ set SDK_MAJOR=
20
+ for %%m in (10 9 8) do (
21
+ dotnet --list-sdks | findstr /R /C:"^%%m\\." >nul
22
+ if not errorlevel 1 (
23
+ set SDK_MAJOR=%%m
24
+ goto sdk_major_found
25
+ )
26
+ )
27
+ for /f "tokens=1 delims=." %%v in ('dotnet --version') do set SDK_MAJOR=%%v
28
+ :sdk_major_found
29
+ if "%SDK_MAJOR%"=="" set SDK_MAJOR=8
30
+ if %SDK_MAJOR% LSS 8 (
31
+ echo CSharpIndexer requires .NET SDK 8.0 or newer. 1>&2
32
+ exit /b 1
33
+ )
34
+
35
+ set TFM=net%SDK_MAJOR%.0
36
+ if "%PANDO_CSHARP_INDEXER_CACHE_DIR%"=="" (
37
+ if "%LOCALAPPDATA%"=="" (
38
+ set CACHE_BASE=%USERPROFILE%\.cache\pando\csharp-indexer
39
+ ) else (
40
+ set CACHE_BASE=%LOCALAPPDATA%\pando\csharp-indexer
41
+ )
42
+ ) else (
43
+ set CACHE_BASE=%PANDO_CSHARP_INDEXER_CACHE_DIR%
44
+ )
45
+
46
+ for /f %%h in ('powershell -NoProfile -ExecutionPolicy Bypass -Command "$root=$env:ROOT_DIR; $files=@(Get-ChildItem -Path (Join-Path $root 'src') -Recurse -Filter '*.cs' | Sort-Object FullName) + @(Get-Item (Join-Path $root 'CSharpIndexer.csproj')); $h=[System.Security.Cryptography.SHA256]::Create(); $text='v2'; foreach ($file in $files) { $text += $file.FullName.Substring($root.Length) + (Get-Content -Raw $file.FullName) }; $bytes=[System.Text.Encoding]::UTF8.GetBytes($text); ([BitConverter]::ToString($h.ComputeHash($bytes))).Replace('-', '').ToLowerInvariant()"') do set SOURCE_HASH=%%h
47
+
48
+ set BUILD_DIR=%CACHE_BASE%\%SOURCE_HASH%\%TFM%
49
+ set DLL=%BUILD_DIR%\CSharpIndexer.dll
50
+ set INTERMEDIATE_DIR=%BUILD_DIR%\obj\
51
+ set BASE_OUTPUT_DIR=%BUILD_DIR%\bin\
52
+ if exist "%DLL%" goto run_indexer
53
+
54
+ mkdir "%BUILD_DIR%" >nul 2>nul
55
+ set LOCK_DIR=%BUILD_DIR%.lock
56
+
57
+ :wait_for_lock
58
+ mkdir "%LOCK_DIR%" >nul 2>nul
59
+ if errorlevel 1 (
60
+ if exist "%DLL%" goto run_indexer
61
+ timeout /t 1 /nobreak >nul
62
+ goto wait_for_lock
63
+ )
64
+
65
+ if not exist "%DLL%" (
66
+ echo Building CSharpIndexer for %TFM% in %BUILD_DIR% 1>&2
67
+ dotnet publish "%ROOT_DIR%\CSharpIndexer.csproj" ^
68
+ -c Release ^
69
+ -f "%TFM%" ^
70
+ -o "%BUILD_DIR%" ^
71
+ "/p:TargetFrameworks=%TFM%" ^
72
+ "/p:BaseIntermediateOutputPath=%INTERMEDIATE_DIR%" ^
73
+ "/p:MSBuildProjectExtensionsPath=%INTERMEDIATE_DIR%" ^
74
+ "/p:BaseOutputPath=%BASE_OUTPUT_DIR%" ^
75
+ --nologo 1>&2
76
+ set PUBLISH_CODE=%ERRORLEVEL%
77
+ rmdir "%LOCK_DIR%" >nul 2>nul
78
+ if not "%PUBLISH_CODE%"=="0" exit /b %PUBLISH_CODE%
79
+ ) else (
80
+ rmdir "%LOCK_DIR%" >nul 2>nul
81
+ )
82
+
83
+ :run_indexer
84
+ dotnet "%DLL%" %*
85
+ exit /b %ERRORLEVEL%