@codua/codeoutline-win32-x64 0.1.8 → 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.
- package/bin/xnet.exe +0 -0
- package/build-info.json +1 -1
- package/package.json +1 -1
- package/scripts/codeoutline/daemon.lua +4 -2
- package/scripts/codeoutline/update_sequence.lua +1 -1
- package/scripts/codeoutline/updater.lua +1 -1
- package/scripts/codeoutline/version.lua +1 -1
- package/scripts/xupgate/client.lua +8 -0
package/bin/xnet.exe
CHANGED
|
Binary file
|
package/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"sha256":{"scripts/codeoutline/
|
|
1
|
+
{"updateSequence":9,"runtimeCommit":"2d8803f860e88ec337cb85922a713b50bc55ee59","lua":"LuaJIT 2.1.1774896198","sourceCommit":"d12e53c9beddd71d85e7969a423ff7a22ae36079","sourceDirty":false,"releaseReady":true,"note":"Release build from a clean checkout","version":"0.1.9","target":"win32-x64","sha256":{"scripts/codeoutline/update_worker.lua":"7e2ec28e4b911d7b90fd97d0a4c0e2f5b295d1a9200c5c7250e47a99139ca550","scripts/codeoutline/mcp.lua":"f14a2d0b9625544ad32309358121a5ff304839780f52d5c1c8ec548d56c5e901","scripts/codeoutline/command.lua":"61629057894c21791bc2119769a79064453417005023a6b567d6119bfa8a0f3e","licenses/mbedtls.txt":"9b405ef4c89342f5eae1dd828882f931747f71001cfba7d114801039b52ad09b","scripts/codeoutline/lang/c.lua":"1251352bcfac6b6d3704460e00b06cf4f41232144748b41b89db04a5ab594073","codeoutline.cmd":"607b60c6d107becdb6793df8f41aaf2cff944baf69f5ece59dba990d0f24c13b","scripts/codeoutline/version.lua":"e3074121b7b7ce60c40dabef3a59944c61117f17eccc5628866a01736a51290c","keys/update-ca.crt":"d9b5ec3d4628de9c5559871f39841a5f84d47c53ded4d58d6e3bba2b4c669a02","scripts/codeoutline/common.lua":"2fb29df01ccd5e7b54233d829cabdcb6d7c28d4f7a7b100292c6da0c9f63815a","lib/xhttp_codec.lua":"a5b0f127105ba6dbd4a518a214ca55e22c7510e6b2fc8c25c325898d8346ef8c","scripts/codeoutline/lang/cpp.lua":"96aebcd8972d5272c11446257f37fe90c10f4130c3c1b5bb71c793d7c25456f4","scripts/codeoutline/xscan.lua":"bd95a1b0b7022d029a41aab615897502478b5834612505e8d299343cb5ca8ef9","licenses/libdeflate.txt":"41b60f2caab6bffdd5ba360687bd23ca653c0a1235c00380ecffc939b4cd8d75","scripts/codeoutline/control.lua":"1dfbea9f1397d9fb3c321c48a8d8ee7fc7928e864588226e55247bd548255bb4","LICENSE":"1b63179362acd482b4a9a07ca526b3fce6d9103dcded361de2159ade174568b6","scripts/codeoutline/lang/csharp.lua":"36ac648b8691c85b8c75d5bcb146fcdfc87992a278e4798f3eb194124e3df2bb","scripts/codeoutline/daemon.lua":"06863991135cc9a85f07bca8310296f0df9e415b3e2de97ae006393e777b009b","scripts/codeoutline/lang/go.lua":"f5717cbeabe6d30dad72c473fa445480d7fb6b5546bb262e5f4c46185f0959da","scripts/xupgate/client.lua":"967c29c1eeebd8596458025ab3237816a91591cca64236ea0e7ba1762814e6ba","scripts/codeoutline/explore.lua":"94f8d1e467a2220932cc2f6db8b90672111b05d42ba7cd2e30fb174da7b35e4a","scripts/codeoutline/parse.lua":"ccda7a087dc90109fce7a1e64ebe1de0d7c7036990b81b3423ff14b4299bf38f","bin/xnet.exe":"eaa0acd999ccc18857f6843cc7838656170cf671edf9333d1b838659f16d734b","codeoutline":"3d3970e488e077e8acd67d174b506a361d43578b3360c7b29f2ec3f0103ba899","scripts/codeoutline/graph.lua":"b2a99a18cfc5563f6bd4747b2c6fe280a32434e5722ad3cb1de32a01c0fc5a78","THIRD_PARTY.md":"a70238f26ec05b7be4b813fa49c337cfb4d3cd64c36fcd27401d121e0e6e38df","scripts/codeoutline/path.lua":"407bd960c1ad04e5006b321ce33263393bb40eee5dee5c123be9b36d3ad10937","scripts/codeoutline/lang/js.lua":"7a25a195356deeef7da3fdaf6e8a483b2a3a230cae3064e5dde2a3556fdcbda9","DISTRIBUTION.md":"da4a1048fc9b44670fd6fcef97e7d92ac3f50d3523da1773930c49f7e2c38dc3","README.zh-CN.md":"21677989f9e8a87910a5e56e528479066e7a5a4fbef2ce1928e3d598f6dea316","scripts/codeoutline/http.lua":"3d957628ecc9592d57cc68a61e5d4229a71da501eb8fb3aa0bbb5e1cd772adf0","README.md":"7dfce8ebe8fac01ae271a4e50264c6156be04ebe16869c6d2e2d4f1b6049a3a1","scripts/codeoutline/service.lua":"186c6b22b5616cb0ff73bca0d5538df38aff790115a040f651ea483839188a6a","scripts/codeoutline/lang/lua.lua":"33b038192425e4db29251674e30c73b7a1af849789c49ff6430ee409c062f812","scripts/codeoutline/cli.lua":"ba996c3c3def65aab08ba60141a7a98a19dfcc1bbe004ab5d8ea14a7f9f9a08b","scripts/xupgate/http_codec.lua":"a5b0f127105ba6dbd4a518a214ca55e22c7510e6b2fc8c25c325898d8346ef8c","scripts/codeoutline/index.lua":"92b55f73f41fecebdfe6bdb8cfba57288706d655fbdb359b5493d2732c176941","licenses/luajit.txt":"1b10a02c9474cb908da2d87bc908edd8798f9ad28d9a8c53fbd05c13227f7394","scripts/codeoutline/text.lua":"75f9af87ff5ce62def74f69d8972a6b11ff660723fc5cf515369ee3012ff0675","scripts/codeoutline/lang/python.lua":"f7219c04914673ee6bae387c222b09acd433596c746237bdd6650a4f4087b17c","licenses/xnet2lua.txt":"1aa8af3df70f60f1ebf2d23e14c27af1606057ad9c32a9a0d15fd76cff257532","keys/update-public.pem":"7ff853339e19631b20ed3fa2cf221daa31c581e2e84d161b344b8f06de6562a8","scripts/codeoutline/index_worker.lua":"46b83e51f0e3d49315e7b209f2daaf6345e2dcd43f5f275431058369d91937e3","scripts/xupgate/http_client.lua":"a189506c3d0fcc454f5e001fdeecdd6349a1019ea0970d11ce2fbfdf035166d6","scripts/codeoutline/updater.lua":"267c4b6e9704fce710f44d1bfceac69c1857e34e064d8444d7890f0e10d921c7","scripts/codeoutline/lang/rust.lua":"f7c21751b1ab08512a406f45bd53546dddfa98ff680b1374d29a4152ae110023","scripts/xupgate/proxy.lua":"5bf532e7005f44555d6a5277336e5ad395af060585c13a1cdc2441de50e0dcff","licenses/lua-cmsgpack.txt":"8edfdc5282278a1268d8a6ee52f9245f1a5fe3d1c8065be00330196b1de49873","scripts/xupgate/signature.lua":"f07de8a4093d08cc69d3c1d8296d23318c5d81344ece788d4453a9b3b700f000","scripts/xupgate/common.lua":"86267648c0dbbd3a05f90de4d6e1dbee53ba57bf4801783c2ae636224b1f228c","scripts/codeoutline/update_sequence.lua":"a873a682e02165db65f196724dd55face6ccf05a703912a4d0786eef17a34386","scripts/codeoutline/main.lua":"91f928171c98a51a89b3276863164acf462bdc20a2cfed7befab4ff6a1aeac24","scripts/codeoutline/lang/java.lua":"435b6ddcd231679db9e705a604344a3fb6c00b84cc20b2ecd210423ee0b376a6","licenses/rpmalloc.txt":"f6c10eb9ec349900767c3dcb8bc71fe4fba2aefea329f05e2608827188016c0f"}}
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"files":["bin/","lib/","keys/","scripts/","licenses/","LICENSE","codeoutline","codeoutline.cmd","build-info.json","*.md"],"publishConfig":{"access":"public"},"description":"CodeOutline native runtime and Lua implementation for win32-x64","
|
|
1
|
+
{"cpu":["x64","arm64"],"license":"BSD-2-Clause","repository":{"url":"git+https://github.com/1dao/codeoutline.git","type":"git"},"os":["win32"],"files":["bin/","lib/","keys/","scripts/","licenses/","LICENSE","codeoutline","codeoutline.cmd","build-info.json","*.md"],"name":"@codua/codeoutline-win32-x64","publishConfig":{"access":"public"},"description":"CodeOutline native runtime and Lua implementation for win32-x64","version":"0.1.9"}
|
|
@@ -37,10 +37,12 @@ end
|
|
|
37
37
|
function M.current_root(install)
|
|
38
38
|
local own = sequence(install)
|
|
39
39
|
if not own then return install end
|
|
40
|
+
-- active() applies the same rule as launcher selection: this install's
|
|
41
|
+
-- sequence is the updater's minimum, so an older update is skipped.
|
|
40
42
|
local ok, current = pcall(function()
|
|
41
|
-
return require('xupgate.client').open(require('codeoutline.updater').config()).
|
|
43
|
+
return require('xupgate.client').open(require('codeoutline.updater').config()).active()
|
|
42
44
|
end)
|
|
43
|
-
if ok and current
|
|
45
|
+
if ok and current then return current.root end
|
|
44
46
|
return install
|
|
45
47
|
end
|
|
46
48
|
function M.is_current(install) return same_path(M.current_root(install), install) end
|
|
@@ -1 +1 @@
|
|
|
1
|
-
return
|
|
1
|
+
return 9
|
|
@@ -50,7 +50,7 @@ end
|
|
|
50
50
|
function M.run(action,options)
|
|
51
51
|
local api=require('xupgate.client').open(M.config(options))
|
|
52
52
|
local function selected()
|
|
53
|
-
local ok,current=pcall(api.
|
|
53
|
+
local ok,current=pcall(api.active)
|
|
54
54
|
if not ok then io.stderr:write('codeoutline: installed update invalid; using initial version\n')end
|
|
55
55
|
return ok and current and current.root or install
|
|
56
56
|
end
|
|
@@ -1 +1 @@
|
|
|
1
|
-
return '0.1.
|
|
1
|
+
return '0.1.9'
|
|
@@ -154,6 +154,14 @@ function M.open(config)
|
|
|
154
154
|
end
|
|
155
155
|
return {version=m.version,sequence=m.sequence,root=dir .. '/files',entry=m.entry,runtime=m.runtime,sha256=m.sha256,kind=m.kind or 'full'}
|
|
156
156
|
end
|
|
157
|
+
-- The installed update to run, or nil when the initial installation is
|
|
158
|
+
-- at least as new: reinstalling a newer initial version (an npm upgrade)
|
|
159
|
+
-- raises minimumSequence, and check() will not fetch anything below it.
|
|
160
|
+
function api.active()
|
|
161
|
+
local current=api.current()
|
|
162
|
+
if current and current.sequence<(config.minimumSequence or 0) then return nil end
|
|
163
|
+
return current
|
|
164
|
+
end
|
|
157
165
|
function api.install(envelope,data)
|
|
158
166
|
local m=verified(envelope);local files=c.bundle(data,m)
|
|
159
167
|
local identity=u.sha256_hex(envelope.payload)
|