@codua/codeoutline-win32-x64 0.3.8 → 0.5.0

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 (32) hide show
  1. package/README.md +49 -0
  2. package/README.zh-CN.md +37 -0
  3. package/bin/xnet.exe +0 -0
  4. package/build-info.json +1 -1
  5. package/editors/codeoutline.vsix +0 -0
  6. package/editors/zed/extension.wasm +0 -0
  7. package/keys/update-ca.crt +18 -18
  8. package/package.json +1 -1
  9. package/scripts/codeoutline/analysis/graph.lua +7 -16
  10. package/scripts/codeoutline/analysis/indirect.lua +18 -12
  11. package/scripts/codeoutline/analysis/lua/lua_bindings.lua +28 -0
  12. package/scripts/codeoutline/bm25/automatic.lua +100 -0
  13. package/scripts/codeoutline/bm25/collect.lua +148 -0
  14. package/scripts/codeoutline/bm25/index.lua +548 -0
  15. package/scripts/codeoutline/bm25/snapshot.lua +45 -0
  16. package/scripts/codeoutline/command.lua +3 -3
  17. package/scripts/codeoutline/indexing/parse_pool.lua +12 -6
  18. package/scripts/codeoutline/main.lua +5 -1
  19. package/scripts/codeoutline/protocol/lsp.lua +3 -1
  20. package/scripts/codeoutline/protocol/mcp.lua +5 -2
  21. package/scripts/codeoutline/query/coverage.lua +2 -0
  22. package/scripts/codeoutline/query/definition_candidates.lua +36 -12
  23. package/scripts/codeoutline/query/explore.lua +110 -18
  24. package/scripts/codeoutline/query/navigation.lua +213 -26
  25. package/scripts/codeoutline/query/query_filters.lua +5 -1
  26. package/scripts/codeoutline/runtime/bm25_worker.lua +86 -0
  27. package/scripts/codeoutline/runtime/index_worker.lua +18 -5
  28. package/scripts/codeoutline/runtime/parse_worker.lua +10 -3
  29. package/scripts/codeoutline/service.lua +6 -0
  30. package/scripts/codeoutline/shared/rules.lua +9 -1
  31. package/scripts/codeoutline/update_sequence.lua +1 -1
  32. package/scripts/codeoutline/version.lua +1 -1
package/README.md CHANGED
@@ -23,6 +23,11 @@ codeoutline --version
23
23
  codeoutline --help
24
24
  ```
25
25
 
26
+ To fully uninstall a global npm installation, run `codeoutline remove`. It stops
27
+ the shared service, removes integrations and default user data, and then
28
+ uninstalls the npm package. npm hides the install script's output by default.
29
+ Use `--foreground-scripts` to see the uninstall reminder during setup.
30
+
26
31
  To choose each detected AI tool and Zed, VS Code or Cursor editor during global
27
32
  installation, use npm's foreground mode. Each prompt defaults to installation.
28
33
  The shared service then starts automatically, without another install command:
@@ -538,6 +543,50 @@ local text, info = service.explore('C:/src/project', 'Session.save', { budget =
538
543
 
539
544
  `get`, `explore`, and `status` refresh automatically; `forget` clears only the in-memory index, and `rebuild` reindexes without the disk cache. `service.configure` adjusts the resident project count and idle timeout. When embedding on Android, the host must call `xutils_android_init(JavaVM*)` once before starting worker threads; otherwise GBK conversion reports an error.
540
545
 
546
+ ### Disk BM25 search
547
+
548
+ MCP `codeoutline_explore` automatically queues a BM25 snapshot for the
549
+ refreshed project when the snapshot is missing or stale. When the usual
550
+ symbol and file lookup finds nothing, Explore uses BM25 candidates with the
551
+ same filters and returns its usual source and relationship context. While
552
+ a snapshot is being built, a miss reports `bm25.state = "building"`
553
+ in the structured MCP result.
554
+
555
+ The BM25 fallback matches any query term by default. Pass `bm25Match: "all"`
556
+ to require all tokenized terms in the same function. This option applies
557
+ only to the fallback. The equivalent Lua search option is `match = 'all'`.
558
+ Before taking the top results, the search prioritizes complete literal
559
+ matches and boosts terms separated by fewer words within the same indexed
560
+ field. Queries can still match terms spread across fields.
561
+ Terms from names such as `cache_finish` can also match the file path or
562
+ filename. Pass `prefix = 'cache'` to the Lua search API to boost matching
563
+ qualifiers, filenames, and directory components before the result limit.
564
+ F12 supplies the receiver of a member lookup as this optional hint.
565
+
566
+ The editor's F12 uses the regular LSP definition lookup first. On a miss,
567
+ it searches the entire project's BM25 snapshot for the identifier or string
568
+ at the cursor, with all terms required. CodeOutline verifies declaration
569
+ candidates and exact string matches against the source or editor draft.
570
+ For strings, F12 skips the occurrence at the cursor and other direct string
571
+ arguments to the same named call. It lists equality comparisons before other
572
+ exact matches.
573
+ If the snapshot is missing or stale, the miss starts a background build.
574
+ Retry F12 after the build finishes.
575
+
576
+ ```lua
577
+ local bm25 = require('codeoutline.bm25.index')
578
+ local idx = service.refresh(project_path)
579
+ bm25.build(idx, bm25_path)
580
+ local hits = bm25.search(idx, bm25_path, 'load cache', { path = 'src', limit = 20 })
581
+ ```
582
+
583
+ Build the snapshot once and reuse it for searches. Pass the refreshed base
584
+ index to both functions. After the base records change, searches report a
585
+ stale snapshot until it is rebuilt. Results contain `symbol`, `path`,
586
+ `start_line`, `end_line`, and `score`. The optional `path` filters by file or
587
+ directory and `limit` defaults to 20. Builds reuse a configured and bound
588
+ index worker pool, with a serial fallback for standalone Lua callers.
589
+
541
590
  ## Origin and license
542
591
 
543
592
  The code was extracted from Codua and uses the `codeoutline.*` namespace. CodeOutline is licensed under [BSD-2-Clause](LICENSE); third-party notices are in [THIRD_PARTY.md](docs/THIRD_PARTY.md).
package/README.zh-CN.md CHANGED
@@ -19,6 +19,10 @@ codeoutline --version
19
19
  codeoutline --help
20
20
  ```
21
21
 
22
+ 全局安装后,如需完整卸载,请运行 `codeoutline remove`。它会停止共享服务、
23
+ 清理集成和默认用户数据,再卸载 npm 包。npm 默认隐藏安装脚本的输出,
24
+ 加上 `--foreground-scripts` 即可在安装时看到卸载提示。
25
+
22
26
  如需在全局安装时对检测到的每个 AI 工具和 Zed、VS Code、Cursor 逐项确认,
23
27
  请使用 npm 的前台模式。每项默认安装,随后自动启动共享服务,无需再次执行安装命令:
24
28
 
@@ -338,6 +342,39 @@ local text, info = service.explore('C:/src/project', 'Session.save', { budget =
338
342
 
339
343
  `get`、`explore`、`status` 自动刷新;`forget` 只清除内存索引,`rebuild` 绕过磁盘缓存完整重建;`service.configure` 可调整驻留项目数与空闲时间。嵌入 Android 时,宿主须在启动工作线程前调用一次 `xutils_android_init(JavaVM*)`,否则 GBK 转换会明确报错。
340
344
 
345
+ ### 磁盘 BM25 搜索
346
+
347
+ MCP 的 `codeoutline_explore` 在刷新项目基础索引后,会在后台生成缺失或过期的 BM25
348
+ 快照。原来的符号和文件查找均无命中时,Explore 用 BM25 补充候选,沿用查询过滤条件,
349
+ 并照常返回源码和调用关系。构建期间遇到零命中,结构化结果会报告
350
+ `bm25.state = "building"`,可以稍后重试。
351
+
352
+ BM25 回退默认允许命中任意查询词。传入 `bm25Match: "all"` 时,只保留同一函数里
353
+ 命中全部分词的候选。这个选项只作用于 BM25 回退,对应 Lua 查询选项 `match = 'all'`。
354
+ 截取前几名之前,优先排序完整字面匹配,并按同一索引字段内的词距加分。
355
+ 分词也可以分散命中多个字段,保留原有 BM25 分数。
356
+ 例如 `cache_finish` 拆出的词也能命中文件名或路径。Lua 查询接口可传入
357
+ `prefix = 'cache'`,在截取结果之前为匹配的符号前缀、文件名和目录段加分。
358
+ F12 回退查找成员时会自动把接收者名称作为这项提示。
359
+
360
+ 编辑器 F12 优先使用原有的 LSP 定义查找。零命中时,将光标下的标识符或字符串交给
361
+ 整个项目的 BM25 快照做分词交集,再用当前源码或编辑器草稿验证声明候选和字符串位置。
362
+ 查找字符串时,F12 跳过光标所在位置,以及同一个调用名下作为直接参数出现的匹配,
363
+ 并把等值比较排在其他完整匹配之前。
364
+ 快照缺失或过期时,零命中会触发后台构建,构建完成后可再次按 F12。
365
+
366
+ ```lua
367
+ local bm25 = require('codeoutline.bm25.index')
368
+ local idx = service.refresh(project_path)
369
+ bm25.build(idx, bm25_path)
370
+ local hits = bm25.search(idx, bm25_path, 'load cache', { path = 'src', limit = 20 })
371
+ ```
372
+
373
+ 索引生成后可重复查询。两个接口都接收刷新过的基础索引。基础记录变化后,查询会提示
374
+ 快照过期,直到重新生成。结果返回 `symbol`、`path`、`start_line`、`end_line` 和
375
+ `score`。可用 `path` 按目录或文件过滤,`limit` 默认是 20。生成时复用已配置并
376
+ 绑定的索引线程池,独立 Lua 调用可以串行生成。
377
+
341
378
  ## 来源与许可
342
379
 
343
380
  代码提取自 Codua,命名空间为 `codeoutline.*`。项目采用 [BSD-2-Clause](LICENSE),第三方依赖声明见 [第三方说明](docs/THIRD_PARTY.md)。
package/bin/xnet.exe CHANGED
Binary file
package/build-info.json CHANGED
@@ -1 +1 @@
1
- {"runtimeCommit":"be18042e9091379bf45624771a4e8819d2709f84","runtimeBuild":"4f732f99896571583bf36c62f9e00127fdffe245f43bacd27ee38e08d9cd1298","lua":"LuaJIT 2.1.1774896198","sourceCommit":"480dc6748fa8800982b96b35a1a3f4ce8d41173b","sourceDirty":false,"releaseReady":true,"note":"Release build from a clean checkout","sha256":{"bin/xnet.exe":"5184cdcd5f125c68b17f42297f9c288738433ff2013703da2872628a5be3636c","scripts/codeoutline/analysis/csharp/csharp_bindings.lua":"722c8fb2b133bbe09179293b068967fe70e7a2e8942380068a04a97b1283a43d","scripts/codeoutline/analysis/python/python_bindings.lua":"ec4217f77345282a5522696c1b53e3886fb0e9a45736c10613fcb0fd4f016160","scripts/codeoutline/query/explore.lua":"04c670153afe4a2052a06ff9f21bec197ac82faaba53a7bd3335c93d31469544","scripts/codeoutline/install/daemon.lua":"06863991135cc9a85f07bca8310296f0df9e415b3e2de97ae006393e777b009b","scripts/codeoutline/analysis/dispatch_aliases.lua":"05f3b06d7d890089b8e18a2e849df9a5ec433bce5312a22d80b7be417e614373","scripts/codeoutline/analysis/receivers.lua":"3b2d09cab61dac5549e96fb007d0538661391c1d4f25573d1872221d8c7b2d3c","editors/zed/extension.wasm":"22655024875868084fc43c92abdccfeb03773d40bf03d5ce18068384c3122fd9","scripts/codeoutline/install/editor_install.lua":"a69f5e123f7fbdb58fe2da691c744c0668a11ccd88f17a98167038c80a5d4cff","scripts/codeoutline/query/navigation.lua":"48175a1fd5cb6739693b9594370ccdf6ff01d54f2db521b6950e055cd855147f","scripts/codeoutline/analysis/foreign.lua":"4c8fdbe398f2b43be861ce0e4915916956c1fb2af6c10c5c04a9654e8aac2bf2","scripts/codeoutline/analysis/resolution.lua":"ec137a38abfdcb7f366861a123480a3b3125a76acf7399a784f8fb207e833d0b","scripts/codeoutline/install/install_prompt.lua":"588c90cd2955756b13a96e1f0d17145a51eda239c9cf179d5eac195532ee9f49","scripts/codeoutline/query/on_demand.lua":"7faf5e4d5f21ca73903903703178d9d983c98d1ddb30d9ca5656bbae676e1f1a","scripts/xupgate/common.lua":"e449f64c92e4ef46d0c9f4c815aacb38866392cbc3502544d3a1985f9dc4f978","scripts/codeoutline/analysis/function_values.lua":"d10bc4a2a82a90a611daf3c2bb26c41da43543f7831711bd4b0c311ad5569d80","scripts/codeoutline/lang/cpp.lua":"e13eaf1882cddb20a7a651d13136e06ca42c482cf7ac53de38bf82fdda786727","scripts/codeoutline/query/query_filters.lua":"dfaac210f8ebf53d0e4515866b0128a77ff77cb0c8d7d558b71a4eaf9f2b32ef","scripts/xupgate/http_client.lua":"e910132b82779969926f959fc876da4aa4807559f91d1d01d32b263f1784e01d","scripts/codeoutline/lang/csharp.lua":"93762ccefd326fb04fcc5c5dd73821241216e9374de2abbe9e4f53fe5af1c160","scripts/codeoutline/analysis/rust/cargo_toml.lua":"78f4f8bcf14f8db80bdac9fc2568988372d3cca222f82b34708f5330c00c8771","scripts/codeoutline/query/query_report.lua":"f53c24c48f3f94dd17c7f0be5501865aff0af73d926f27e03d9849c168996462","scripts/xupgate/http_codec.lua":"a5b0f127105ba6dbd4a518a214ca55e22c7510e6b2fc8c25c325898d8346ef8c","scripts/codeoutline/lang/go.lua":"027afb44a9c3a92aa74b9af230d8571963183697529fd41fe915ffa831f3e8da","scripts/codeoutline/analysis/go/go_frameworks.lua":"2f2a692a6dbda384abf32af0750bb40e99f1bc3e83f039215f0eaf750cf77f65","scripts/codeoutline/query/search_ranking.lua":"153987a2915c48516b8dca10121b8efa2b116af8cf82200243e45f1fd5feffb4","scripts/codeoutline/analysis/rust/rust_packages.lua":"c6886a77017bf039499d93027b28bd354599875a5d3705f622ea3366512432e8","scripts/codeoutline/lang/java.lua":"3c6b2d844202cbe988644e94090be76e7f8a2a906f4412aefcbd06e9fb56a01b","scripts/codeoutline/query/type_hierarchy.lua":"e5ccfa85ac63c636f50d33310274559624c08954e1f77a197ff941d799669b37","scripts/codeoutline/analysis/go/go_methods.lua":"71832a6b8941a6b6f9155c59cec2da7c33108a132608cdaa2cd85076c4e241cf","scripts/codeoutline/analysis/rust/rust_resolution.lua":"2b9ec789243cda63107a721e8d907faa3d3d5c18f21a69b634db4deac9e586ee","scripts/codeoutline/lang/js.lua":"ff326c9ef41deb5ec7f961a556350b69c4b601a176d696114a2096d5118c2379","codeoutline":"1909247ba17be9d0fe14d689ea7c1c955013b5b79f05336e2161b6f161c4c394","scripts/codeoutline/query/type_references.lua":"9119a2c55b2ae825190ac50d97d6a4cacacd33a707cd1e98b532c4a7d02e4a0c","codeoutline.cmd":"52ee46a6010ff1161369e50df76e96beed2d6152f8c8e5095f73bc0b60a7629b","scripts/codeoutline/analysis/go/go_modules.lua":"432dc66435fe93fbc2a7d1aa4212ae03ad5454effd18ffb3e06c2eca6a169aab","scripts/codeoutline/lang/kotlin.lua":"8b5dabbbede62bf0a1376414f7424e6dd3a248739cc015c2364d143901230d86","editors/zed/extension.toml":"2c5e28806d71e03b0c421d35b8a9aa9e1d428038417aebd7bdf3c871b22d93f4","scripts/codeoutline/analysis/graph.lua":"41f80f733f289f3ebea57e3442a97c55cdcb1384db11f1901853a13af75db0e5","THIRD_PARTY.md":"a0d596a8600c5244b27c1426a81b4ec7046d213d733ec6b4287a4b1e8db501b5","DISTRIBUTION.md":"7f1b6d02bd3fa71a7d02cbd57bebd82fbd930d96c1cb32a5f15764466c88ef12","scripts/codeoutline/lang/lua.lua":"813efafda42e27d0bc9b4bdbf1e9e481ec8b834a6127db54e1ed56e61f7d5626","scripts/codeoutline/analysis/static_dispatch.lua":"9940f4c4317e8f5345a9f39178fac639278bc186265a72369f1be808bdeebd29","README.zh-CN.md":"d65838da7d26d7f35df6d60c3c24b2142219131197b23e237128c83e2602250c","README.md":"291594269b54eb0690bad6c05b06585cd28989e9ddde9b3cc5422a6a2a944fb3","scripts/codeoutline/runtime/idle_gc.lua":"2025b037b593b5e19714b6e283c8a0490146e591de795988a543a161277714f1","scripts/codeoutline/lang/python.lua":"a0b2b64fe42e585ec922304d3b8ecd6c679a97fecfe1bc56014f1556558c9387","scripts/codeoutline/analysis/implementations.lua":"ffcd7288eae967c5628c85b8e55d93c826b30524956212dccca7d150ac7ac3be","scripts/codeoutline/analysis/type_bases.lua":"470fdcfffc3ded8bd3c9608db6128539757c91692bc714173dbb1bcdf8344e36","licenses/mbedtls.txt":"9b405ef4c89342f5eae1dd828882f931747f71001cfba7d114801039b52ad09b","licenses/lua-cmsgpack.txt":"8edfdc5282278a1268d8a6ee52f9245f1a5fe3d1c8065be00330196b1de49873","scripts/codeoutline/lang/rust.lua":"45d0a9c535d674b31990ba1052f97b2da2a98565a68294937429f443ac1c8da5","licenses/luajit.txt":"1b10a02c9474cb908da2d87bc908edd8798f9ad28d9a8c53fbd05c13227f7394","scripts/codeoutline/analysis/indirect.lua":"38e15056251400f840604af29fb3ddacac7915d2cf1c2bf7870d481497cc8831","scripts/codeoutline/analysis/type_uses.lua":"eb1ee73f0a3cb67ef3b92ed1a8b7222fbc26137f743e466338e180b416ea12cb","scripts/codeoutline/shared/text.lua":"56ee63c7b4cc63fe12d8ecd5b99410281463cdba8ca112f484e402ca6dfc5b90","scripts/codeoutline/main.lua":"9f884e383721888af68fd41f3dfdd816e65e4d569346664e390ee086a4b55fa3","licenses/libdeflate.txt":"41b60f2caab6bffdd5ba360687bd23ca653c0a1235c00380ecffc939b4cd8d75","licenses/xnet2lua.txt":"1aa8af3df70f60f1ebf2d23e14c27af1606057ad9c32a9a0d15fd76cff257532","scripts/codeoutline/version.lua":"6b55517492d5db9d9a114093ea1e1e0587736fc99d91aa775dc210f6b4a57c30","scripts/codeoutline/analysis/js/js_resolution.lua":"427a4656216878487e9c11a02faa4f6c4240fb00b126ec298479a45c12f3ecce","scripts/codeoutline/runtime/update_worker.lua":"9557e5207e440fccf15e8255b3fb1c8933ad33d1f352c19987fb825f7db45706","keys/update-ca.crt":"d9b5ec3d4628de9c5559871f39841a5f84d47c53ded4d58d6e3bba2b4c669a02","keys/update-public.pem":"7ff853339e19631b20ed3fa2cf221daa31c581e2e84d161b344b8f06de6562a8","scripts/xupgate/signature.lua":"f07de8a4093d08cc69d3c1d8296d23318c5d81344ece788d4453a9b3b700f000","scripts/xupgate/proxy.lua":"5bf532e7005f44555d6a5277336e5ad395af060585c13a1cdc2441de50e0dcff","scripts/codeoutline/analysis/js/js_workspace.lua":"230df95605e0ce47a940f425611d426eaa3d4de262736e3dfe3bd1f15db956b4","scripts/codeoutline/command.lua":"0b16dc8b960569bc7fc3d6c363f41d0672da8271de05ca0728ae5c1deb471fc6","scripts/codeoutline/parsing/common.lua":"6c883bb69827fd9e88e35f7ecc380f43e3a839fbea127e46ad6923c44beeb590","scripts/xupgate/client.lua":"88d8ccdd54282257d233af714fad22abc7af4b9ad65882f58330cc8814461985","lib/xhttp_codec.lua":"a5b0f127105ba6dbd4a518a214ca55e22c7510e6b2fc8c25c325898d8346ef8c","scripts/codeoutline/update_sequence.lua":"b6b484a109a9ea291a9f1c48136147c8b7c8f31ea86e74d336ea8c65a8a1e78f","scripts/codeoutline/analysis/js/ts_implementations.lua":"2e92afd3b76a3dab73b99d7900dd357d37b9749a11c5bc11946e0d62d39e7be8","scripts/codeoutline/analysis/automatic_events.lua":"2d81c3e943964680e13b6005b823f05637c31891f3759fec7074e14d20b7f150","scripts/codeoutline/parsing/language_detect.lua":"4c9fd0fcd270cfd123e9e9d0bcc2f3635cd19a8784098a03cee6bce5ac593e8c","scripts/codeoutline/query/callers.lua":"b1870f2d08c2274ce743d513560ce9329e16236399e065027685dbf8694c82ab","LICENSE":"1b63179362acd482b4a9a07ca526b3fce6d9103dcded361de2159ade174568b6","scripts/codeoutline/lang/c.lua":"f341d250a09a937d8548657991bdeac0aec8de26b7d056292709126ee999c6f1","scripts/codeoutline/shared/control.lua":"b67a2e382e021f0793ef313aa4e71faab76f6cb77ca127f499d01ae96f36a8db","scripts/codeoutline/parsing/parse.lua":"81dacf0f07440f1a7516732c39251d0d7f07cef77f7d8f9f25bdacd96c7919a0","scripts/codeoutline/indexing/cache_repairs.lua":"7e31a6118c3e991382ae2751a8b1d4913bcbf4e24d35f56253f46e156e8420a5","scripts/codeoutline/shared/path.lua":"407bd960c1ad04e5006b321ce33263393bb40eee5dee5c123be9b36d3ad10937","scripts/codeoutline/service.lua":"795797bf7d3b329e67fff5b3d8bd9ab2681dfb2472f7d9a8236756bea67c0c56","scripts/codeoutline/runtime/parse_worker.lua":"4cb620924fbe43d0f9a411c689060575220c0b2947d09fba266fe552ad003cfe","scripts/codeoutline/parsing/xscan.lua":"bd95a1b0b7022d029a41aab615897502478b5834612505e8d299343cb5ca8ef9","scripts/codeoutline/analysis/lua/foreign_lua.lua":"c217da78314febeff5d20c9d7e9f68e25089d1e76f4350405d83af494deac3dc","scripts/codeoutline/runtime/index_worker.lua":"0bfbf38fe9cb6e8a92b958028c6df9970575f881330dd4568a621463d20497b8","scripts/codeoutline/indexing/cpp_fragments.lua":"6be4c3f89c234b6982235981d9f128875790acd5d22f80fe11290bb99af903a3","scripts/codeoutline/query/external_headers.lua":"9b8d8a87a67839d4da1d5eced619d7c54431dbff32b07d505ea54350bdc2de3b","scripts/codeoutline/shared/rules.lua":"b01402863062435a6d31a4a5a90208319876fdb444a76c75fd0c45ea8ee6fee5","scripts/codeoutline/analysis/cpp/cpp_bindings.lua":"06adeb3b4a56d97555b6e4bd775de8dd1c9d2331474b670d53188d4fbe4b3b0c","scripts/codeoutline/analysis/shared_events.lua":"88fb64d66e6d41da3beeaeff86f6357b5a8ceae16003ba194aaa01171e4874f1","scripts/codeoutline/analysis/lua/lua_bindings.lua":"8fa65c14a7da95ec2d3ded2484807481123216af05c9ba8c70c929d4d4b0490d","scripts/codeoutline/analysis/js/js_evidence.lua":"523913dcadb37ec433b31103c12218c383001851b7cf965cf4505065917d8afe","scripts/codeoutline/indexing/index.lua":"459a02dd0c436df968703b74b9fb4624b6fdb4adfffc2383c7abbdb683ef6160","scripts/codeoutline/query/affected.lua":"7fe6ae466b314957f39ceb8fcc1f0a5339d523c86f99ce5735599a2477865b72","scripts/codeoutline/protocol/http.lua":"bd558939df95e4a908551f43ca5bf0eb68d7a16b8eb20b1b4076a5ece20956b7","scripts/codeoutline/analysis/cpp/cpp_implementations.lua":"87d637812626672f44226e245f94d675e209a83e4cd2d6b2a320ed9d60a6a3d0","scripts/codeoutline/analysis/lua/lua_callback_loops.lua":"2b28f338ebc23c8a6543fad61e932ceaee409512b69a71711d385fcc0bdafd4c","scripts/codeoutline/updater.lua":"267c4b6e9704fce710f44d1bfceac69c1857e34e064d8444d7890f0e10d921c7","scripts/codeoutline/indexing/parse_pool.lua":"5a35dad6a6a44a2dccd793a694e65e5a2bdb621911d56bdb32375ce8295889d8","scripts/codeoutline/query/completion.lua":"ff2c4102b9a73042f84e823e13ce685aa1d164ee84765db513da2b8ae515e763","scripts/codeoutline/protocol/lsp.lua":"f236c0407dc8b479c883cd526a19dca61efd999926e70d564d299c3972074224","scripts/codeoutline/analysis/cpp/cpp_includes.lua":"7a2de73f528a608eb89aea0f5fe8d18b3ef51d6e9966106af0ecd41f03304d07","scripts/codeoutline/analysis/lua/lua_literal.lua":"5fdd90a872988622337410c7e516d41b789ce4326c4aa6dddcd61998fe5aef90","scripts/codeoutline/protocol/mcp.lua":"1e65df410d6cede3cc0fb227ea406a5e7e178d425b5ed861f73d8b748fbdbae7","scripts/codeoutline/query/coverage.lua":"3a4a0e5f5ea8b7ea4a0be62c7c1a202153cf0c5c3423f78b100aecbb39513d5e","scripts/codeoutline/protocol/lsp_trace.lua":"41e6e67866eb6c862cf11337a637a94505f62a29533a9dbd6226d3b801444597","scripts/codeoutline/analysis/cpp/cpp_macros.lua":"fa79cd9ea652be2a921f930d0ec21dcfc1d61b15e0ea2cd22ad4141eeb4e9552","scripts/codeoutline/analysis/cpp/cpp_types.lua":"18e68635a30f86a8975cc556839ed2be961685353dec290749fd169d3049cf16","scripts/codeoutline/analysis/ordinary_bindings.lua":"ec9f3609650f2ec05dd429e178118a4dded9b6c40cfecdd5efcdeb5e0bb2ad94","scripts/codeoutline/query/definition_candidates.lua":"4ae55444daacc2ea2f52635781ef4127811849fb6f04a62c62411853c75eced0","scripts/codeoutline/cli.lua":"28b058bbb3c86d9e6a7603c52ef62eacc8978af6c2201e61bfb8100bc79be4b2","scripts/codeoutline/install/agent_config.lua":"041e1736f7be060b9eac9f3ced0b20f50854d94af2cddfa22c5d3868f3fc1681","editors/codeoutline.vsix":"2b295d0e76565c3cf5935282c3f59c65bf7323060eb3ba76622cd5cf0633364c","scripts/codeoutline/analysis/cpp/cpp_receivers.lua":"4f9bea5325d0ccd3ddfe5117bf8891408d41988bdc94d6a388363624b64df0f3","scripts/codeoutline/query/documents.lua":"1ed27cb6f805c1ff9acbc070f16e582b71c4a330c5539fb3d7b8ed4150c82bdf","scripts/codeoutline/install/agent_install.lua":"32409b49dd1e8436169f334587b4994c9d6868ed3ff5c4eaed09b4b3b8ca12c4"},"target":"win32-x64","version":"0.3.8","updateSequence":27}
1
+ {"runtimeCommit":"0a54bdf10c492cf109faf4f8d031e328b01e517a","runtimeBuild":"4f732f99896571583bf36c62f9e00127fdffe245f43bacd27ee38e08d9cd1298","lua":"LuaJIT 2.1.1774896198","sourceCommit":"7ec34831609eac6fe8cc888fac5cf584d6f1ac4f","sourceDirty":false,"releaseReady":true,"note":"Release build from a clean checkout","version":"0.5.0","target":"win32-x64","updateSequence":29,"sha256":{"scripts/codeoutline/analysis/cpp/cpp_implementations.lua":"87d637812626672f44226e245f94d675e209a83e4cd2d6b2a320ed9d60a6a3d0","scripts/codeoutline/query/type_hierarchy.lua":"e5ccfa85ac63c636f50d33310274559624c08954e1f77a197ff941d799669b37","codeoutline.cmd":"52ee46a6010ff1161369e50df76e96beed2d6152f8c8e5095f73bc0b60a7629b","scripts/codeoutline/install/daemon.lua":"06863991135cc9a85f07bca8310296f0df9e415b3e2de97ae006393e777b009b","scripts/codeoutline/analysis/receivers.lua":"3b2d09cab61dac5549e96fb007d0538661391c1d4f25573d1872221d8c7b2d3c","scripts/codeoutline/analysis/cpp/cpp_includes.lua":"7a2de73f528a608eb89aea0f5fe8d18b3ef51d6e9966106af0ecd41f03304d07","scripts/codeoutline/install/editor_install.lua":"a69f5e123f7fbdb58fe2da691c744c0668a11ccd88f17a98167038c80a5d4cff","keys/update-public.pem":"7ff853339e19631b20ed3fa2cf221daa31c581e2e84d161b344b8f06de6562a8","scripts/codeoutline/analysis/rust/rust_resolution.lua":"2b9ec789243cda63107a721e8d907faa3d3d5c18f21a69b634db4deac9e586ee","scripts/codeoutline/analysis/resolution.lua":"ec137a38abfdcb7f366861a123480a3b3125a76acf7399a784f8fb207e833d0b","scripts/codeoutline/analysis/cpp/cpp_macros.lua":"fa79cd9ea652be2a921f930d0ec21dcfc1d61b15e0ea2cd22ad4141eeb4e9552","scripts/codeoutline/install/install_prompt.lua":"588c90cd2955756b13a96e1f0d17145a51eda239c9cf179d5eac195532ee9f49","licenses/xnet2lua.txt":"1aa8af3df70f60f1ebf2d23e14c27af1606057ad9c32a9a0d15fd76cff257532","scripts/codeoutline/analysis/shared_events.lua":"88fb64d66e6d41da3beeaeff86f6357b5a8ceae16003ba194aaa01171e4874f1","licenses/libdeflate.txt":"41b60f2caab6bffdd5ba360687bd23ca653c0a1235c00380ecffc939b4cd8d75","scripts/codeoutline/analysis/cpp/cpp_receivers.lua":"4f9bea5325d0ccd3ddfe5117bf8891408d41988bdc94d6a388363624b64df0f3","scripts/codeoutline/runtime/bm25_worker.lua":"9d1d67b4e4f238e5a142ceb0c6164eab9828447ff93a7643398b0ab26a2dc1d3","licenses/luajit.txt":"1b10a02c9474cb908da2d87bc908edd8798f9ad28d9a8c53fbd05c13227f7394","scripts/codeoutline/analysis/static_dispatch.lua":"9940f4c4317e8f5345a9f39178fac639278bc186265a72369f1be808bdeebd29","scripts/codeoutline/analysis/rust/cargo_toml.lua":"78f4f8bcf14f8db80bdac9fc2568988372d3cca222f82b34708f5330c00c8771","scripts/codeoutline/analysis/cpp/cpp_types.lua":"18e68635a30f86a8975cc556839ed2be961685353dec290749fd169d3049cf16","scripts/codeoutline/runtime/idle_gc.lua":"2025b037b593b5e19714b6e283c8a0490146e591de795988a543a161277714f1","scripts/codeoutline/query/affected.lua":"7fe6ae466b314957f39ceb8fcc1f0a5339d523c86f99ce5735599a2477865b72","codeoutline":"1909247ba17be9d0fe14d689ea7c1c955013b5b79f05336e2161b6f161c4c394","scripts/codeoutline/analysis/type_bases.lua":"470fdcfffc3ded8bd3c9608db6128539757c91692bc714173dbb1bcdf8344e36","editors/zed/extension.wasm":"7393ede118d7e4cff6a0eed8dbf270e17842a6eb816780624d56c53bc3f5775a","scripts/codeoutline/analysis/rust/rust_packages.lua":"c6886a77017bf039499d93027b28bd354599875a5d3705f622ea3366512432e8","editors/zed/extension.toml":"2c5e28806d71e03b0c421d35b8a9aa9e1d428038417aebd7bdf3c871b22d93f4","scripts/codeoutline/query/callers.lua":"b1870f2d08c2274ce743d513560ce9329e16236399e065027685dbf8694c82ab","licenses/lua-cmsgpack.txt":"8edfdc5282278a1268d8a6ee52f9245f1a5fe3d1c8065be00330196b1de49873","scripts/codeoutline/analysis/type_uses.lua":"eb1ee73f0a3cb67ef3b92ed1a8b7222fbc26137f743e466338e180b416ea12cb","scripts/codeoutline/lang/c.lua":"f341d250a09a937d8548657991bdeac0aec8de26b7d056292709126ee999c6f1","THIRD_PARTY.md":"a0d596a8600c5244b27c1426a81b4ec7046d213d733ec6b4287a4b1e8db501b5","scripts/codeoutline/query/completion.lua":"ff2c4102b9a73042f84e823e13ce685aa1d164ee84765db513da2b8ae515e763","README.zh-CN.md":"d7fc04e2bfd091003da1e6656c2f8ca4f789afd62b15650163261e2279cf0f9c","DISTRIBUTION.md":"7f1b6d02bd3fa71a7d02cbd57bebd82fbd930d96c1cb32a5f15764466c88ef12","scripts/codeoutline/lang/go.lua":"027afb44a9c3a92aa74b9af230d8571963183697529fd41fe915ffa831f3e8da","scripts/codeoutline/lang/cpp.lua":"e13eaf1882cddb20a7a651d13136e06ca42c482cf7ac53de38bf82fdda786727","scripts/codeoutline/query/coverage.lua":"9934631a8e1a4c3f43b9c380891092dffa4a8b3460d1ab4765febd5d9534e002","README.md":"8e7a61baf63b4f331183989c617fcda8ffe936f89acb03af3394e809d05f3440","licenses/mbedtls.txt":"9b405ef4c89342f5eae1dd828882f931747f71001cfba7d114801039b52ad09b","scripts/codeoutline/lang/java.lua":"3c6b2d844202cbe988644e94090be76e7f8a2a906f4412aefcbd06e9fb56a01b","scripts/codeoutline/lang/csharp.lua":"93762ccefd326fb04fcc5c5dd73821241216e9374de2abbe9e4f53fe5af1c160","scripts/codeoutline/analysis/foreign.lua":"4c8fdbe398f2b43be861ce0e4915916956c1fb2af6c10c5c04a9654e8aac2bf2","editors/codeoutline.vsix":"fb920d4d9e509ac4b3d5acc07ba717f7dc582385ce2f56e1ecf31932c04a4e5e","LICENSE":"1b63179362acd482b4a9a07ca526b3fce6d9103dcded361de2159ade174568b6","scripts/codeoutline/lang/js.lua":"ff326c9ef41deb5ec7f961a556350b69c4b601a176d696114a2096d5118c2379","lib/xhttp_codec.lua":"a5b0f127105ba6dbd4a518a214ca55e22c7510e6b2fc8c25c325898d8346ef8c","scripts/codeoutline/query/documents.lua":"1ed27cb6f805c1ff9acbc070f16e582b71c4a330c5539fb3d7b8ed4150c82bdf","scripts/codeoutline/analysis/function_values.lua":"d10bc4a2a82a90a611daf3c2bb26c41da43543f7831711bd4b0c311ad5569d80","scripts/codeoutline/bm25/collect.lua":"eafbc9b62fa2a1acb3d82bc07242c85d7cb07ddc1fd6e20467c2333b56db463e","scripts/codeoutline/lang/kotlin.lua":"8b5dabbbede62bf0a1376414f7424e6dd3a248739cc015c2364d143901230d86","keys/update-ca.crt":"45b509a584e187fdedb666f2d8df9039f36e6bde86170b2426e583721ff42b42","scripts/codeoutline/query/explore.lua":"08368a8261826e78a0be3d5c2a9de1122c137be5621d0d64a0073fe9f788de75","scripts/xupgate/signature.lua":"f07de8a4093d08cc69d3c1d8296d23318c5d81344ece788d4453a9b3b700f000","scripts/codeoutline/runtime/parse_worker.lua":"5e8bf3d7d7598e5cab96ec3de3bc679935a16e1f26c310e2801db4f18ce6dc49","scripts/codeoutline/lang/lua.lua":"813efafda42e27d0bc9b4bdbf1e9e481ec8b834a6127db54e1ed56e61f7d5626","scripts/xupgate/http_codec.lua":"a5b0f127105ba6dbd4a518a214ca55e22c7510e6b2fc8c25c325898d8346ef8c","scripts/codeoutline/query/external_headers.lua":"9b8d8a87a67839d4da1d5eced619d7c54431dbff32b07d505ea54350bdc2de3b","scripts/codeoutline/shared/path.lua":"407bd960c1ad04e5006b321ce33263393bb40eee5dee5c123be9b36d3ad10937","scripts/codeoutline/analysis/python/python_bindings.lua":"ec4217f77345282a5522696c1b53e3886fb0e9a45736c10613fcb0fd4f016160","scripts/codeoutline/analysis/go/go_frameworks.lua":"2f2a692a6dbda384abf32af0750bb40e99f1bc3e83f039215f0eaf750cf77f65","scripts/codeoutline/bm25/snapshot.lua":"3961aef3d338997fa1d2730b0194b77adc79441e39434b9a7fbb59e6b13ef9c6","scripts/codeoutline/query/navigation.lua":"7bdefe9b4b015019dc13c37d462f9dfcf61cd81448562ff2e555ba531c52eea9","scripts/codeoutline/shared/rules.lua":"d2a6ead429ead37d491c7eacdbcc9fa6579fcd1a7749af1345050938f0c1b5a8","scripts/codeoutline/analysis/js/ts_implementations.lua":"2e92afd3b76a3dab73b99d7900dd357d37b9749a11c5bc11946e0d62d39e7be8","scripts/codeoutline/lang/rust.lua":"45d0a9c535d674b31990ba1052f97b2da2a98565a68294937429f443ac1c8da5","scripts/codeoutline/protocol/mcp.lua":"d838de7d18a9de2ec2643ffb18733268c072afbe5250c1c16ee43cdf63d2c9f7","scripts/codeoutline/analysis/go/go_methods.lua":"71832a6b8941a6b6f9155c59cec2da7c33108a132608cdaa2cd85076c4e241cf","scripts/codeoutline/cli.lua":"28b058bbb3c86d9e6a7603c52ef62eacc8978af6c2201e61bfb8100bc79be4b2","scripts/codeoutline/runtime/index_worker.lua":"d48dc89d87a767b3412b81c65db6c24a7419acbb29ee2517965132048963af36","scripts/codeoutline/main.lua":"2ff4131d73c19aa525e476f9fd1ebe61d9346accf467adc9f5e374196d06e31b","scripts/codeoutline/service.lua":"48352bbf214c5044f01595332bed959f3a6b27b3731b0a664a1edcad3b31e60b","scripts/codeoutline/query/query_filters.lua":"fd2a3bfccccf1892af737f7a785d8920765fb2986aea07f8b27a4aa45f9f83a0","scripts/codeoutline/analysis/go/go_modules.lua":"432dc66435fe93fbc2a7d1aa4212ae03ad5454effd18ffb3e06c2eca6a169aab","scripts/codeoutline/updater.lua":"267c4b6e9704fce710f44d1bfceac69c1857e34e064d8444d7890f0e10d921c7","scripts/codeoutline/command.lua":"3e85c469d3f4eabeb9bae662c6fa6daf46eccb47886f40feb7406a7f486bc553","scripts/codeoutline/shared/text.lua":"56ee63c7b4cc63fe12d8ecd5b99410281463cdba8ca112f484e402ca6dfc5b90","scripts/codeoutline/shared/control.lua":"b67a2e382e021f0793ef313aa4e71faab76f6cb77ca127f499d01ae96f36a8db","scripts/codeoutline/update_sequence.lua":"13e67c411d38afbe786d04ccee575e70be5e1eeb50484c1e711d53fcbb62de0c","scripts/codeoutline/analysis/graph.lua":"70eed1852ca77615de7530947b1278a83ae38e04d1a26930251bc506de357541","scripts/codeoutline/runtime/update_worker.lua":"9557e5207e440fccf15e8255b3fb1c8933ad33d1f352c19987fb825f7db45706","scripts/xupgate/proxy.lua":"5bf532e7005f44555d6a5277336e5ad395af060585c13a1cdc2441de50e0dcff","scripts/codeoutline/parsing/common.lua":"6c883bb69827fd9e88e35f7ecc380f43e3a839fbea127e46ad6923c44beeb590","scripts/codeoutline/version.lua":"79509300798f95d9deceb6790d707d8fd968dff0cac0fb6db13b409dbae7cc87","scripts/codeoutline/query/type_references.lua":"9119a2c55b2ae825190ac50d97d6a4cacacd33a707cd1e98b532c4a7d02e4a0c","scripts/codeoutline/analysis/implementations.lua":"ffcd7288eae967c5628c85b8e55d93c826b30524956212dccca7d150ac7ac3be","scripts/codeoutline/analysis/lua/foreign_lua.lua":"c217da78314febeff5d20c9d7e9f68e25089d1e76f4350405d83af494deac3dc","scripts/codeoutline/lang/python.lua":"a0b2b64fe42e585ec922304d3b8ecd6c679a97fecfe1bc56014f1556558c9387","scripts/codeoutline/parsing/language_detect.lua":"4c9fd0fcd270cfd123e9e9d0bcc2f3635cd19a8784098a03cee6bce5ac593e8c","scripts/codeoutline/bm25/automatic.lua":"00b2350d252f31f25436b336ea4148fda7f2a6f98d7530d5194dae9e1bf30a0e","scripts/codeoutline/query/on_demand.lua":"7faf5e4d5f21ca73903903703178d9d983c98d1ddb30d9ca5656bbae676e1f1a","scripts/codeoutline/analysis/indirect.lua":"8b0082ed3bce139fa88654a7c1a1cacd8b3fe4909e8125f3ed6bae87876c8508","scripts/codeoutline/indexing/cpp_fragments.lua":"6be4c3f89c234b6982235981d9f128875790acd5d22f80fe11290bb99af903a3","scripts/codeoutline/analysis/lua/lua_bindings.lua":"71e4ce84fa8a1aea4173054f646e9a6509226e6b5d30b1a43014808283af417a","scripts/codeoutline/query/definition_candidates.lua":"015a04dcb69f99c4b944e21612847c681d695a5e55484d3a5ec1bdede12af9a1","scripts/xupgate/client.lua":"88d8ccdd54282257d233af714fad22abc7af4b9ad65882f58330cc8814461985","scripts/codeoutline/protocol/lsp_trace.lua":"41e6e67866eb6c862cf11337a637a94505f62a29533a9dbd6226d3b801444597","scripts/codeoutline/indexing/index.lua":"459a02dd0c436df968703b74b9fb4624b6fdb4adfffc2383c7abbdb683ef6160","scripts/codeoutline/parsing/xscan.lua":"bd95a1b0b7022d029a41aab615897502478b5834612505e8d299343cb5ca8ef9","scripts/codeoutline/analysis/automatic_events.lua":"2d81c3e943964680e13b6005b823f05637c31891f3759fec7074e14d20b7f150","scripts/codeoutline/protocol/lsp.lua":"71cdd08ece3ed32e9bce6d27472ce436f44e80eafea859063fbf842ac6c12912","scripts/xupgate/common.lua":"e449f64c92e4ef46d0c9f4c815aacb38866392cbc3502544d3a1985f9dc4f978","bin/xnet.exe":"03956591bd2545fee0f23ee2c65fa4c5435116a4cf26511811d8538364eacc26","scripts/codeoutline/parsing/parse.lua":"81dacf0f07440f1a7516732c39251d0d7f07cef77f7d8f9f25bdacd96c7919a0","scripts/codeoutline/analysis/js/js_evidence.lua":"523913dcadb37ec433b31103c12218c383001851b7cf965cf4505065917d8afe","scripts/codeoutline/analysis/lua/lua_literal.lua":"5fdd90a872988622337410c7e516d41b789ce4326c4aa6dddcd61998fe5aef90","scripts/xupgate/http_client.lua":"e910132b82779969926f959fc876da4aa4807559f91d1d01d32b263f1784e01d","scripts/codeoutline/analysis/lua/lua_callback_loops.lua":"2b28f338ebc23c8a6543fad61e932ceaee409512b69a71711d385fcc0bdafd4c","scripts/codeoutline/bm25/index.lua":"8d9053f2317dadac99f056d3d7b24366ca5f2cb51c66f4a380a3e042d51c56f6","scripts/codeoutline/analysis/js/js_resolution.lua":"427a4656216878487e9c11a02faa4f6c4240fb00b126ec298479a45c12f3ecce","scripts/codeoutline/protocol/http.lua":"bd558939df95e4a908551f43ca5bf0eb68d7a16b8eb20b1b4076a5ece20956b7","scripts/codeoutline/analysis/ordinary_bindings.lua":"ec9f3609650f2ec05dd429e178118a4dded9b6c40cfecdd5efcdeb5e0bb2ad94","scripts/codeoutline/indexing/parse_pool.lua":"eb12c135a02691091bb950bdfd189e008b58b01a52e0d2dab6bf63d2bd26191d","scripts/codeoutline/indexing/cache_repairs.lua":"7e31a6118c3e991382ae2751a8b1d4913bcbf4e24d35f56253f46e156e8420a5","scripts/codeoutline/query/query_report.lua":"f53c24c48f3f94dd17c7f0be5501865aff0af73d926f27e03d9849c168996462","scripts/codeoutline/install/agent_config.lua":"041e1736f7be060b9eac9f3ced0b20f50854d94af2cddfa22c5d3868f3fc1681","scripts/codeoutline/analysis/cpp/cpp_bindings.lua":"06adeb3b4a56d97555b6e4bd775de8dd1c9d2331474b670d53188d4fbe4b3b0c","scripts/codeoutline/analysis/js/js_workspace.lua":"230df95605e0ce47a940f425611d426eaa3d4de262736e3dfe3bd1f15db956b4","scripts/codeoutline/analysis/dispatch_aliases.lua":"05f3b06d7d890089b8e18a2e849df9a5ec433bce5312a22d80b7be417e614373","scripts/codeoutline/query/search_ranking.lua":"153987a2915c48516b8dca10121b8efa2b116af8cf82200243e45f1fd5feffb4","scripts/codeoutline/analysis/csharp/csharp_bindings.lua":"722c8fb2b133bbe09179293b068967fe70e7a2e8942380068a04a97b1283a43d","scripts/codeoutline/install/agent_install.lua":"32409b49dd1e8436169f334587b4994c9d6868ed3ff5c4eaed09b4b3b8ca12c4"}}
Binary file
Binary file
@@ -1,20 +1,20 @@
1
1
  -----BEGIN CERTIFICATE-----
2
- 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
- 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
- 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
- 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
- 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
- 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
- 1LkiTOjjKno7Q6lPixigcIlkWf714sV0M9wYBYD7zYISiiYOSav3Dp2YjPROluZh
9
- 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
- 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
- izCBiDAdBgNVHQ4EFgQUOzjvn3TnsLqiYNy97yCk+FFC9OQwHwYDVR0jBBgwFoAU
12
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
20
20
  -----END CERTIFICATE-----
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@codua/codeoutline-win32-x64","os":["win32"],"publishConfig":{"access":"public"},"description":"CodeOutline native runtime and Lua implementation for win32-x64","files":["bin/","lib/","keys/","scripts/","editors/","licenses/","LICENSE","codeoutline","codeoutline.cmd","build-info.json","*.md"],"cpu":["x64","arm64"],"license":"BSD-2-Clause","version":"0.3.8","repository":{"url":"git+https://github.com/1dao/codeoutline.git","type":"git"}}
1
+ {"os":["win32"],"license":"BSD-2-Clause","name":"@codua/codeoutline-win32-x64","version":"0.5.0","files":["bin/","lib/","keys/","scripts/","editors/","licenses/","LICENSE","codeoutline","codeoutline.cmd","build-info.json","*.md"],"cpu":["x64","arm64"],"repository":{"type":"git","url":"git+https://github.com/1dao/codeoutline.git"},"publishConfig":{"access":"public"},"description":"CodeOutline native runtime and Lua implementation for win32-x64"}
@@ -294,7 +294,7 @@ end
294
294
 
295
295
  -- owner: the innermost class of src_id, passed in by resolve_ref when the
296
296
  -- ref kind needs it (computed once per ref, not per candidate).
297
- local function score(G, f, src_id, ref_kind, recv, cid, deps, paired, owner)
297
+ local function score(G, f, ref_kind, cid, deps, paired, owner)
298
298
  local c = G.nodes[cid]
299
299
  local cf = G.node_file[cid]
300
300
  if family(G.files[cf].language) ~= family(G.files[f].language) then return nil end
@@ -302,14 +302,9 @@ local function score(G, f, src_id, ref_kind, recv, cid, deps, paired, owner)
302
302
  if not s then return nil end
303
303
  local kind = c.kind
304
304
  if kind == 'prototype' then s = s - 3 end
305
- if ref_kind == 'member_call' and s <= 0 then
306
- -- obj.name() on an unknown receiver: binding it to any same-named
307
- -- method project-wide (str.format -> some format()) is mostly wrong,
308
- -- so only local candidates qualify.
309
- return nil
310
- elseif ref_kind == 'call' and (G.files[f].language == 'java' or G.files[f].language == 'kotlin') and src_id then
305
+ if ref_kind == 'call' and owner then
311
306
  -- unqualified call inside a class: implicit this
312
- if owner and c.parent and G.id_of[cf][c.parent] == owner then s = s + 30 end
307
+ if c.parent and G.id_of[cf][c.parent] == owner then s = s + 30 end
313
308
  end
314
309
  return s
315
310
  end
@@ -385,8 +380,8 @@ local function resolve_ref(G, f, src_id, name, kind, recv, deps, paired, accept,
385
380
  for _, id in ipairs(exact) do if accept[G.nodes[id].kind] then result[#result + 1] = id end end
386
381
  return result, #result == 0 and (binding_reason or 'binding target unresolved') or strategy, macro_state
387
382
  end
388
- if function_value and recv then
389
- return {}, 'unresolved function-value receiver'
383
+ if kind == 'member_call' then
384
+ return {}, 'receiver binding unresolved', macro_state
390
385
  end
391
386
  local cands = G.by_name[name]
392
387
  if G.files[f].language == 'kotlin' and not recv then
@@ -410,18 +405,14 @@ local function resolve_ref(G, f, src_id, name, kind, recv, deps, paired, accept,
410
405
  -- `work`, after which the Python def was filtered out too.)
411
406
  local owner = (kind == 'call' and src_id and (G.files[f].language == 'java' or G.files[f].language == 'kotlin'))
412
407
  and owner_class(G, src_id) or nil
413
- -- score() rejects an unknown-receiver member call to an unrelated file;
414
- -- checking placement first skips most candidates of common method names.
415
- local local_only = kind == 'member_call'
416
408
  local n, has_def, has_name = 0, false, false
417
409
  for i = 1, math.min(#cands, M.MAX_CANDIDATES) do
418
410
  local cid = cands[i]
419
411
  local node = G.nodes[cid]
420
412
  if cid ~= src_id and accept[node.kind]
421
413
  and (G.files[f].language ~= 'lua' or not node['local'] or G.node_file[cid] == f
422
- or lua_bindings.exported(node, name, G.lua_global_export_tables))
423
- and (not local_only or (locality(G, f, G.node_file[cid], node, deps, paired) or 0) > 0) then
424
- local s = score(G, f, src_id, kind, recv, cid, deps, paired, owner)
414
+ or lua_bindings.exported(node, name, G.lua_global_export_tables)) then
415
+ local s = score(G, f, kind, cid, deps, paired, owner)
425
416
  if s then
426
417
  n = n + 1
427
418
  scored_ids[n], scored_vals[n] = cid, s
@@ -100,6 +100,22 @@ function M.candidate(rec, call)
100
100
  return false
101
101
  end
102
102
 
103
+ -- A resolved Lua literal, including one assigned to a local alias, must
104
+ -- occur in the file. Scan tokens only if escapes can hide its spelling.
105
+ function M.has_lua_literal(source, literals)
106
+ for name in pairs(literals) do
107
+ if source:find(name, 1, true) then return true end
108
+ end
109
+ if not source:find('\\', 1, true) then return false end
110
+ local T = require('codeoutline.lang.lua').lang:tokenize(source)
111
+ local decode = require('codeoutline.analysis.lua.lua_literal').decode
112
+ for i = 1, T.n do
113
+ if i % 4096 == 0 then control.check() end
114
+ if T.k[i] == 'str' and literals[decode(T:text(i))] then return true end
115
+ end
116
+ return false
117
+ end
118
+
103
119
  function M.query(G, rules, report)
104
120
  rules = rules_for(G, rules)
105
121
  if #rules == 0 then return { outgoing = function() return {} end, incoming = function() return {} end } end
@@ -124,20 +140,10 @@ function M.query(G, rules, report)
124
140
  -- Target rules can only obtain a literal command from this file. Reject
125
141
  -- broad module hints before scope/registry analysis, but decode escaped
126
142
  -- Lua literals so aliases and alternate spellings remain candidates.
127
- if literals and rec.language == 'lua' then
128
- local relevant = false
129
- for name in pairs(literals) do if source:find(name, 1, true) then relevant = true; break end end
130
- if not relevant and source:find('\\', 1, true) then
131
- local T = require('codeoutline.lang.lua').lang:tokenize(source)
132
- local decode = require('codeoutline.analysis.lua.lua_literal').decode
133
- for i = 1, T.n do
134
- if i % 4096 == 0 then control.check() end
135
- if T.k[i] == 'str' and literals[decode(T:text(i))] then relevant = true; break end
136
- end
137
- end
143
+ if literals and rec.language == 'lua' and not M.has_lua_literal(source, literals) then
138
144
  -- Do not cache negatives: later incoming calls can request other
139
145
  -- targets within this same query, and outgoing needs all sites.
140
- if not relevant then return {} end
146
+ return {}
141
147
  end
142
148
  local parsed = assert(require('codeoutline.parsing.parse').parse(rec.path, source,
143
149
  { ranges = false, dispatch = names, dispatch_only = true, language = rec.language }))
@@ -42,6 +42,29 @@ local function binding_at(bindings, name, token)
42
42
  return best
43
43
  end
44
44
 
45
+ -- If this receiver can be used as a table, a named guard followed by
46
+ -- "and require(...)" can only have produced the module on the right.
47
+ local function guarded_require(T, bindings, first)
48
+ local last = first
49
+ if T.k[first] == 'id' then
50
+ while (T:text(last + 1) == '.' or T:text(last + 1) == ':') and T.k[last + 2] == 'id' do
51
+ last = last + 2
52
+ end
53
+ if T:text(last + 1) == '(' then last = T.m[last + 1] end
54
+ elseif T:text(first) == '(' then
55
+ last = T.m[first]
56
+ else return nil end
57
+ if not last or T:text(last + 1) ~= 'and' then return nil end
58
+ local loader = last + 2
59
+ if T:text(loader) ~= 'require' or binding_at(bindings, 'require', loader - 1) then return nil end
60
+ local open = loader + 1
61
+ local parenthesized = T:text(open) == '('
62
+ local arg = parenthesized and open + 1 or open
63
+ local close = parenthesized and T.m[open] or arg
64
+ if parenthesized and close ~= arg + 1 or not value_end(T, close + 1) then return nil end
65
+ return literal(T, arg)
66
+ end
67
+
45
68
  -- A nil-initialized local can receive a module in a sibling if block. Keep
46
69
  -- possible imports at later uses, and stop on a write we cannot model. Only the
47
70
  -- last write of each branch survives; sibling branches keep their source order.
@@ -211,6 +234,9 @@ function M.collect(r, T, bm)
211
234
  end
212
235
  end
213
236
  end
237
+ elseif details and next == '=' then
238
+ local path = guarded_require(T, bindings, i + 2)
239
+ if path then hint, imported = 'lua-guard:' .. path, true end
214
240
  end
215
241
  -- Keep ordinary local function/table lookup; block unknown imported receivers.
216
242
  add(T:text(i), i, scopes[i], hint, imported, finish)
@@ -658,6 +684,8 @@ local function module_target(G, imp, ctx)
658
684
  end
659
685
 
660
686
  local function imported_target(G, rec, hint, ctx)
687
+ local guarded = hint:match('^lua%-guard:(.+)$')
688
+ if guarded then return module_target(G, { kind = 'require', path = guarded }, ctx) end
661
689
  local index = tonumber(hint:match('^lua:(%d+)$'))
662
690
  if index then
663
691
  local imp = (rec.lua_imports or EMPTY)[index]
@@ -0,0 +1,100 @@
1
+ -- Foreground coordinator. The lexical index is built in a separate Lua state
2
+ -- from the saved base snapshot, never in the foreground request coroutine.
3
+ local snapshot = require('codeoutline.bm25.snapshot')
4
+ local control = require('codeoutline.shared.control')
5
+ local M = {worker_id = 6}
6
+ local queue, active, failure = {}, nil, nil
7
+ local lookup, next_lookup = nil, 0
8
+
9
+ local function enqueue(index, file, stamp, repair)
10
+ if index:needs_save() then return 'unavailable' end
11
+ if active and active.file == file and active.stamp == stamp then return 'building' end
12
+ if failure and failure.file == file and failure.stamp == stamp and xtimer.now_ms() < failure.retry then
13
+ return 'unavailable'
14
+ end
15
+ local item = {root = index.root, cache = index.cache_path, file = file, stamp = stamp, repair = repair}
16
+ for i, pending in ipairs(queue) do
17
+ if pending.file == file then
18
+ if pending.stamp ~= stamp or repair then queue[i] = item end
19
+ return 'building'
20
+ end
21
+ end
22
+ -- A wide burst of projects should not reserve a full build for each one.
23
+ if #queue >= 8 then return 'unavailable' end
24
+ queue[#queue + 1] = item
25
+ return 'building'
26
+ end
27
+
28
+ function M.prepare(index)
29
+ local file = index.cache_path .. '.bm25'
30
+ local stamp = snapshot.stamp(index)
31
+ if not snapshot.current(file, stamp) then enqueue(index, file, stamp) end
32
+ return function(query, accept, match)
33
+ local current = snapshot.stamp(index)
34
+ if not snapshot.current(file, current) then return nil, enqueue(index, file, current) end
35
+ local ok, result = pcall(require('codeoutline.bm25.index').search, index, file, query,
36
+ {limit = 20, accept = accept, match = match})
37
+ if ok then return result, 'searched' end
38
+ if control.is_interrupted(result) then error(result, 0) end
39
+ -- The header may have changed after the quick check, or a block may
40
+ -- be corrupt. Regenerate and preserve the original zero-match result.
41
+ return nil, enqueue(index, file, current, true)
42
+ end
43
+ end
44
+
45
+ function M.definition(index, query, deadline, prefix)
46
+ local file = index.cache_path .. '.bm25'
47
+ local stamp = snapshot.stamp(index)
48
+ if not snapshot.current(file, stamp) then
49
+ return nil, enqueue(index, file, stamp) == 'building' and 'bm25_building' or true
50
+ end
51
+ local now = xtimer.now_ms()
52
+ if active or lookup or now >= deadline then return nil, true end
53
+ next_lookup = next_lookup + 1
54
+ -- Let a cold header warm in the background after F12 returns.
55
+ local work_until = now + 2000
56
+ local posted = xthread.post(M.worker_id, 'bm25_lookup', xthread.current_id(), next_lookup,
57
+ {root = index.root, stamp = stamp, file = file, query = query, deadline = work_until, prefix = prefix})
58
+ if not posted then return nil, true end
59
+ lookup = {token = next_lookup, wait_until = math.min(now + 180, deadline), work_until = work_until}
60
+ local ok, result = coroutine.yield()
61
+ control.check()
62
+ if ok then return result, false end
63
+ if type(result) == 'string' and (result:find('corrupt BM25', 1, true)
64
+ or result:find('invalid BM25', 1, true)) then
65
+ return nil, enqueue(index, file, stamp, true) == 'building' and 'bm25_building' or true
66
+ end
67
+ return nil, true
68
+ end
69
+
70
+ function M.receive_lookup(token)
71
+ if not lookup or lookup.token ~= token then return false end
72
+ local waiting = lookup.wait_until ~= nil
73
+ lookup = nil
74
+ return waiting
75
+ end
76
+
77
+ function M.expire_lookup()
78
+ if not lookup then return false end
79
+ local now = xtimer.now_ms()
80
+ local expired = lookup.wait_until and now >= lookup.wait_until
81
+ if expired then lookup.wait_until = nil end
82
+ if now >= lookup.work_until then lookup = nil end
83
+ return expired
84
+ end
85
+
86
+ function M.pump()
87
+ if active or lookup or #queue == 0 then return end
88
+ local item = table.remove(queue, 1)
89
+ local posted = xthread.post(M.worker_id, 'bm25_build', xthread.current_id(), item)
90
+ if posted then active = item
91
+ else failure = {file = item.file, stamp = item.stamp, retry = xtimer.now_ms() + 1000} end
92
+ end
93
+
94
+ function M.finish(file, stamp, ok)
95
+ if not active or active.file ~= file or active.stamp ~= stamp then return end
96
+ if not ok then failure = {file = file, stamp = stamp, retry = xtimer.now_ms() + 1000} end
97
+ active = nil
98
+ end
99
+
100
+ return M