coderaft 0.0.12 → 0.0.13

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/code.mjs CHANGED
@@ -4,7 +4,7 @@ import { tmpdir } from "node:os";
4
4
  import { fileURLToPath } from "node:url";
5
5
 
6
6
  // Auto-updated by scripts/pack.ts
7
- const codeArchiveHash = "932c7f505a988efd";
7
+ const codeArchiveHash = "d28f51becc566aa4";
8
8
 
9
9
  const archivePath = fileURLToPath(new URL("./code.tar.zst", import.meta.url));
10
10
 
package/code.tar.zst CHANGED
Binary file
@@ -48,6 +48,11 @@ async function serveStatic(res, root, relPath) {
48
48
  return false;
49
49
  }
50
50
  }
51
+ if (process.platform === "android") {
52
+ Object.defineProperty(process, "platform", { value: "linux" });
53
+ const preload = `--import "data:text/javascript,Object.defineProperty(process,'platform',{value:'linux'})"`;
54
+ process.env.NODE_OPTIONS = process.env.NODE_OPTIONS ? `${process.env.NODE_OPTIONS} ${preload}` : preload;
55
+ }
51
56
  const MANIFEST_BODY = JSON.stringify({
52
57
  name: "coderaft",
53
58
  short_name: "coderaft",
package/dist/cli.mjs CHANGED
@@ -29,7 +29,10 @@ const { values, positionals } = parseArgs({
29
29
  "extensions-download-dir": { type: "string" },
30
30
  "builtin-extensions-dir": { type: "string" },
31
31
  "agent-plugins-dir": { type: "string" },
32
- log: { type: "string" },
32
+ log: {
33
+ type: "string",
34
+ multiple: true
35
+ },
33
36
  "logs-path": { type: "string" },
34
37
  "disable-websocket-compression": { type: "boolean" },
35
38
  "use-host-proxy": { type: "boolean" },
@@ -41,6 +44,11 @@ const { values, positionals } = parseArgs({
41
44
  "disable-update-check": { type: "boolean" },
42
45
  "disable-experiments": { type: "boolean" },
43
46
  "enable-sync": { type: "boolean" },
47
+ "disable-extensions": { type: "boolean" },
48
+ "disable-extension": {
49
+ type: "string",
50
+ multiple: true
51
+ },
44
52
  "enable-proposed-api": {
45
53
  type: "string",
46
54
  multiple: true
@@ -125,6 +133,8 @@ if (values.help) {
125
133
 
126
134
  Features:
127
135
  --enable-sync Enable settings sync
136
+ --disable-extensions Disable all installed extensions
137
+ --disable-extension <ext-id> Disable specific extension (repeatable)
128
138
  --enable-proposed-api <ext-id> Enable proposed API for extension (repeatable)
129
139
  --disable-workspace-trust Disable workspace trust
130
140
  --disable-getting-started-override Disable getting started override
@@ -185,6 +195,8 @@ for (const key of [
185
195
  "disable-update-check",
186
196
  "disable-experiments",
187
197
  "enable-sync",
198
+ "disable-extensions",
199
+ "disable-extension",
188
200
  "enable-proposed-api",
189
201
  "disable-workspace-trust",
190
202
  "disable-getting-started-override",
package/dist/index.d.mts CHANGED
@@ -42,7 +42,7 @@ interface VSCodeServerOptions {
42
42
  /** The workspace to open when no input is specified in the browser URL. A relative or absolute path resolved against the current working directory. */
43
43
  "default-workspace"?: string;
44
44
  locale?: string;
45
- log?: string;
45
+ log?: string[];
46
46
  logsPath?: string;
47
47
  "disable-websocket-compression"?: boolean;
48
48
  "use-host-proxy"?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coderaft",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "repository": "pithings/coderaft",
5
5
  "bin": {
6
6
  "coderaft": "./dist/cli.mjs"