@getpaseo/server 0.11.0-beta.4 → 0.11.0-beta.5

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 (43) hide show
  1. package/dist/scripts/supervisor.js +10 -0
  2. package/dist/server/builtin-plugins/antigravity-provider/server/internal/process.ts +4 -3
  3. package/dist/server/builtin-plugins/antigravity-provider/server/internal/signals.ts +2 -5
  4. package/dist/server/builtin-plugins/claude-usage-source/server/usage.ts +5 -2
  5. package/dist/server/builtin-plugins/codex-usage-source/server/usage.ts +7 -1
  6. package/dist/server/builtin-plugins/muse-provider/server/catalog.ts +1 -4
  7. package/dist/server/builtin-plugins/muse-provider/server/connection.ts +41 -14
  8. package/dist/server/builtin-plugins/muse-provider/server/provider.ts +12 -13
  9. package/dist/server/builtin-plugins/muse-provider/server/session.ts +20 -19
  10. package/dist/server/builtin-plugins/muse-provider/server/sessions.ts +4 -1
  11. package/dist/server/builtin-plugins/muse-provider/server/usage.ts +20 -7
  12. package/dist/server/builtin-plugins/muse-provider/server/wire.ts +15 -8
  13. package/dist/server/builtin-plugins/package.json +1 -1
  14. package/dist/server/executable-resolution/executable-resolution.d.ts +0 -1
  15. package/dist/server/executable-resolution/executable-resolution.js +0 -3
  16. package/dist/server/server/agent/providers/claude/agent.js +30 -12
  17. package/dist/server/server/agent/providers/jsonl-rpc-process.d.ts +2 -2
  18. package/dist/server/server/agent/providers/jsonl-rpc-process.js +9 -11
  19. package/dist/server/server/agent/providers/omp/agent.d.ts +1 -0
  20. package/dist/server/server/agent/providers/omp/agent.js +24 -4
  21. package/dist/server/server/agent/providers/omp/cli-runtime.js +4 -4
  22. package/dist/server/server/agent/providers/omp/rpc-types.d.ts +365 -0
  23. package/dist/server/server/agent/providers/omp/rpc-types.js +54 -0
  24. package/dist/server/server/plugins/bundle-evaluator.js +2 -1
  25. package/dist/server/server/plugins/index.d.ts +21 -0
  26. package/dist/server/server/plugins/usage-sources/index.js +54 -22
  27. package/dist/server/server/session/daemon/npm-global-cli.js +4 -2
  28. package/dist/server/utils/spawn.d.ts +1 -1
  29. package/dist/server/utils/spawn.js +5 -33
  30. package/dist/server/web-ui/_expo/static/js/web/{index-244720b41ed4a2ce25809182e2510d6d.js → index-88d552b322a98d03fa394582d599904b.js} +24 -24
  31. package/dist/server/web-ui/_expo/static/js/web/index-88d552b322a98d03fa394582d599904b.js.br +0 -0
  32. package/dist/server/web-ui/_expo/static/js/web/index-88d552b322a98d03fa394582d599904b.js.gz +0 -0
  33. package/dist/server/web-ui/index.html +10 -1
  34. package/dist/server/web-ui/index.html.br +0 -0
  35. package/dist/server/web-ui/index.html.gz +0 -0
  36. package/dist/src/executable-resolution/executable-resolution.js +0 -3
  37. package/dist/src/utils/spawn.js +5 -33
  38. package/package.json +6 -6
  39. package/dist/server/utils/windows-command.d.ts +0 -15
  40. package/dist/server/utils/windows-command.js +0 -41
  41. package/dist/server/web-ui/_expo/static/js/web/index-244720b41ed4a2ce25809182e2510d6d.js.br +0 -0
  42. package/dist/server/web-ui/_expo/static/js/web/index-244720b41ed4a2ce25809182e2510d6d.js.gz +0 -0
  43. package/dist/src/utils/windows-command.js +0 -41
@@ -70,6 +70,15 @@
70
70
  -webkit-app-region: no-drag !important;
71
71
  }
72
72
 
73
+ /* Electron does not clip app-region rectangles to scroll viewports.
74
+ Content-only viewports emit no window regions, including from their
75
+ controls. Visible controls here use normal DOM hit testing.
76
+ Use initial: Blink parses the explicit value none as no-drag. */
77
+ [data-window-content],
78
+ [data-window-content] * {
79
+ -webkit-app-region: initial !important;
80
+ }
81
+
73
82
  /* Suppress the browser's default focus outline — it appears on mouse
74
83
  clicks and looks out of place against our themed surfaces. Keep a
75
84
  themed ring for keyboard users via :focus-visible. */
@@ -85,6 +94,6 @@
85
94
  <body>
86
95
  <noscript>You need to enable JavaScript to run this app.</noscript>
87
96
  <div id="root"></div>
88
- <script src="/_expo/static/js/web/index-244720b41ed4a2ce25809182e2510d6d.js" defer></script>
97
+ <script src="/_expo/static/js/web/index-88d552b322a98d03fa394582d599904b.js" defer></script>
89
98
  </body>
90
99
  </html>
Binary file
Binary file
@@ -1,9 +1,7 @@
1
1
  import { createRequire } from "node:module";
2
2
  import { existsSync } from "node:fs";
3
3
  import { execCommand } from "../utils/spawn.js";
4
- import { isWindowsCommandScript } from "../utils/windows-command.js";
5
4
  import { windowsExecutableResolution } from "./windows.js";
6
- export { quoteWindowsArgument, quoteWindowsCommand } from "../utils/windows-command.js";
7
5
  const require = createRequire(import.meta.url);
8
6
  const which = require("which");
9
7
  const PROBE_TIMEOUT_MS = 2000;
@@ -61,7 +59,6 @@ export async function probeExecutable(executablePath, options = PROBE_TIMEOUT_MS
61
59
  timeout: timeoutMs,
62
60
  killSignal: "SIGKILL",
63
61
  maxBuffer: 64 * 1024,
64
- shell: isWindowsCommandScript(executablePath),
65
62
  });
66
63
  return true;
67
64
  }
@@ -1,60 +1,32 @@
1
- import { execFile, spawn } from "node:child_process";
2
- import { extname } from "node:path";
3
- import { promisify } from "node:util";
1
+ import { spawnProcess as spawnCli, execCommand as execCli } from "@getpaseo/plugin/server";
4
2
  import { createExternalCommandProcessEnv } from "../server/paseo-env.js";
5
- import { isWindowsCommandScript, quoteWindowsArgument, quoteWindowsCommand, } from "./windows-command.js";
6
- const execFileAsync = promisify(execFile);
7
- function hasPathSeparator(value) {
8
- return value.includes("/") || value.includes("\\");
9
- }
10
- function shouldUseWindowsShell(command, requestedShell) {
11
- if (isWindowsCommandScript(command)) {
12
- return true;
13
- }
14
- if (requestedShell !== undefined) {
15
- return requestedShell;
16
- }
17
- return process.platform === "win32" && !hasPathSeparator(command) && !extname(command);
18
- }
19
3
  export function spawnProcess(command, args, options) {
20
4
  const { baseEnv, env, envOverlay, ...spawnOptions } = options ?? {};
21
5
  const resolvedBaseEnv = env ?? baseEnv ?? process.env;
22
- const isWindows = process.platform === "win32";
23
- const shell = shouldUseWindowsShell(command, spawnOptions.shell);
24
- const shouldQuoteForShell = isWindows && shell !== false;
25
- const resolvedCommand = shouldQuoteForShell ? quoteWindowsCommand(command) : command;
26
- const resolvedArgs = shouldQuoteForShell ? args.map(quoteWindowsArgument) : args;
27
6
  const childEnv = options?.envMode === "internal"
28
7
  ? { ...resolvedBaseEnv, ...envOverlay }
29
8
  : createExternalCommandProcessEnv(command, resolvedBaseEnv, ...(envOverlay ? [envOverlay] : []));
30
- return spawn(resolvedCommand, resolvedArgs, {
9
+ return spawnCli(command, args, {
31
10
  ...spawnOptions,
32
11
  env: childEnv,
33
- shell,
34
12
  signal: options?.signal,
35
- windowsHide: true,
36
13
  });
37
14
  }
38
15
  export async function execCommand(command, args, options) {
39
16
  const { baseEnv, env, envOverlay } = options ?? {};
40
17
  const resolvedBaseEnv = env ?? baseEnv ?? process.env;
41
- const isWindows = process.platform === "win32";
42
- const shell = shouldUseWindowsShell(command, options?.shell);
43
- const shouldQuoteForShell = isWindows && shell !== false;
44
- const resolvedCommand = shouldQuoteForShell ? quoteWindowsCommand(command) : command;
45
- const resolvedArgs = shouldQuoteForShell ? args.map(quoteWindowsArgument) : args;
46
18
  const childEnv = options?.envMode === "internal"
47
19
  ? { ...resolvedBaseEnv, ...envOverlay }
48
20
  : createExternalCommandProcessEnv(command, resolvedBaseEnv, ...(envOverlay ? [envOverlay] : []));
49
- return execFileAsync(resolvedCommand, resolvedArgs, {
21
+ return execCli(command, args, {
50
22
  cwd: options?.cwd,
51
23
  env: childEnv,
24
+ shell: options?.shell,
52
25
  encoding: options?.encoding ?? "utf8",
26
+ signal: options?.signal,
53
27
  killSignal: options?.killSignal,
54
28
  timeout: options?.timeout,
55
29
  maxBuffer: options?.maxBuffer,
56
- shell,
57
- windowsHide: true,
58
30
  });
59
31
  }
60
32
  //# sourceMappingURL=spawn.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpaseo/server",
3
- "version": "0.11.0-beta.4",
3
+ "version": "0.11.0-beta.5",
4
4
  "description": "Paseo backend server",
5
5
  "files": [
6
6
  "dist/server",
@@ -107,11 +107,11 @@
107
107
  "@agentclientprotocol/sdk": "^0.17.1",
108
108
  "@anthropic-ai/claude-agent-sdk": "0.3.246",
109
109
  "@anthropic-ai/sdk": "^0.104.2",
110
- "@getpaseo/client": "0.11.0-beta.4",
111
- "@getpaseo/highlight": "0.11.0-beta.4",
112
- "@getpaseo/plugin": "0.11.0-beta.4",
113
- "@getpaseo/protocol": "0.11.0-beta.4",
114
- "@getpaseo/relay": "0.11.0-beta.4",
110
+ "@getpaseo/client": "0.11.0-beta.5",
111
+ "@getpaseo/highlight": "0.11.0-beta.5",
112
+ "@getpaseo/plugin": "0.11.0-beta.5",
113
+ "@getpaseo/protocol": "0.11.0-beta.5",
114
+ "@getpaseo/relay": "0.11.0-beta.5",
115
115
  "@isaacs/ttlcache": "^2.1.4",
116
116
  "@modelcontextprotocol/sdk": "1.29.0",
117
117
  "@opencode-ai/sdk": "1.14.46",
@@ -1,15 +0,0 @@
1
- export declare function isWindowsCommandScript(executablePath: string): boolean;
2
- /**
3
- * When spawning with `shell: true` on Windows, the command is passed to
4
- * `cmd.exe /d /s /c "command args"`. The `/s` strips outer quotes, so a
5
- * command path with spaces (e.g. `C:\Program Files\...`) is split at the
6
- * space. Wrapping it in quotes produces the correct `"C:\Program Files\..." args`.
7
- */
8
- export declare function quoteWindowsCommand(command: string): string;
9
- /**
10
- * `spawn(..., { shell: true })` on Windows also passes argv through `cmd.exe`.
11
- * Any argument containing spaces must be quoted or it will be split before the
12
- * child process sees it.
13
- */
14
- export declare function quoteWindowsArgument(argument: string): string;
15
- //# sourceMappingURL=windows-command.d.ts.map
@@ -1,41 +0,0 @@
1
- import { extname } from "node:path";
2
- export function isWindowsCommandScript(executablePath) {
3
- const extension = extname(executablePath).toLowerCase();
4
- return process.platform === "win32" && (extension === ".cmd" || extension === ".bat");
5
- }
6
- function escapeWindowsCmdValue(value) {
7
- if (process.platform !== "win32")
8
- return value;
9
- const isQuoted = value.startsWith('"') && value.endsWith('"');
10
- const unquoted = isQuoted ? value.slice(1, -1) : value;
11
- // Do NOT double `%` here. cmd.exe only collapses `%%` → `%` inside batch
12
- // files; on the command line / `cmd /c "..."` `%%` stays literal, which
13
- // breaks args like git's `--format=%(refname)` (git treats `%%` as the
14
- // escape for a literal `%`, so the format atoms become literals).
15
- const escaped = unquoted.replace(/([&|^<>()!])/g, "^$1");
16
- if (isQuoted || /[\s"]/u.test(unquoted)) {
17
- const quoted = escaped
18
- .replace(/(\\*)"/g, (_match, slashes) => `${slashes}${slashes}\\"`)
19
- .replace(/\\+$/u, (slashes) => `${slashes}${slashes}`);
20
- return `"${quoted}"`;
21
- }
22
- return escaped;
23
- }
24
- /**
25
- * When spawning with `shell: true` on Windows, the command is passed to
26
- * `cmd.exe /d /s /c "command args"`. The `/s` strips outer quotes, so a
27
- * command path with spaces (e.g. `C:\Program Files\...`) is split at the
28
- * space. Wrapping it in quotes produces the correct `"C:\Program Files\..." args`.
29
- */
30
- export function quoteWindowsCommand(command) {
31
- return escapeWindowsCmdValue(command);
32
- }
33
- /**
34
- * `spawn(..., { shell: true })` on Windows also passes argv through `cmd.exe`.
35
- * Any argument containing spaces must be quoted or it will be split before the
36
- * child process sees it.
37
- */
38
- export function quoteWindowsArgument(argument) {
39
- return escapeWindowsCmdValue(argument);
40
- }
41
- //# sourceMappingURL=windows-command.js.map
@@ -1,41 +0,0 @@
1
- import { extname } from "node:path";
2
- export function isWindowsCommandScript(executablePath) {
3
- const extension = extname(executablePath).toLowerCase();
4
- return process.platform === "win32" && (extension === ".cmd" || extension === ".bat");
5
- }
6
- function escapeWindowsCmdValue(value) {
7
- if (process.platform !== "win32")
8
- return value;
9
- const isQuoted = value.startsWith('"') && value.endsWith('"');
10
- const unquoted = isQuoted ? value.slice(1, -1) : value;
11
- // Do NOT double `%` here. cmd.exe only collapses `%%` → `%` inside batch
12
- // files; on the command line / `cmd /c "..."` `%%` stays literal, which
13
- // breaks args like git's `--format=%(refname)` (git treats `%%` as the
14
- // escape for a literal `%`, so the format atoms become literals).
15
- const escaped = unquoted.replace(/([&|^<>()!])/g, "^$1");
16
- if (isQuoted || /[\s"]/u.test(unquoted)) {
17
- const quoted = escaped
18
- .replace(/(\\*)"/g, (_match, slashes) => `${slashes}${slashes}\\"`)
19
- .replace(/\\+$/u, (slashes) => `${slashes}${slashes}`);
20
- return `"${quoted}"`;
21
- }
22
- return escaped;
23
- }
24
- /**
25
- * When spawning with `shell: true` on Windows, the command is passed to
26
- * `cmd.exe /d /s /c "command args"`. The `/s` strips outer quotes, so a
27
- * command path with spaces (e.g. `C:\Program Files\...`) is split at the
28
- * space. Wrapping it in quotes produces the correct `"C:\Program Files\..." args`.
29
- */
30
- export function quoteWindowsCommand(command) {
31
- return escapeWindowsCmdValue(command);
32
- }
33
- /**
34
- * `spawn(..., { shell: true })` on Windows also passes argv through `cmd.exe`.
35
- * Any argument containing spaces must be quoted or it will be split before the
36
- * child process sees it.
37
- */
38
- export function quoteWindowsArgument(argument) {
39
- return escapeWindowsCmdValue(argument);
40
- }
41
- //# sourceMappingURL=windows-command.js.map