summrise-agent 1.2.458 → 1.2.459

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 (2) hide show
  1. package/bin/summrise.js +5 -1
  2. package/package.json +1 -1
package/bin/summrise.js CHANGED
@@ -2027,7 +2027,11 @@ const commands = {
2027
2027
  // The register script is WRITTEN here (a machine that never ran setup still gets a working
2028
2028
  // task, from the same builder setup uses) but NOT run: desktop-start.ps1 runs it only when
2029
2029
  // the task is genuinely missing.
2030
- const r = (0, child_process_1.spawnSync)("powershell", ["-NoProfile", "-ExecutionPolicy", "Bypass", "-File", start], { encoding: "utf8", shell: true });
2030
+ // ONE STRING, NOT an args array. With `shell: true` Node concatenates the arguments and warns
2031
+ // about it (DEP0190: "the arguments are not escaped, only concatenated") — a warning the
2032
+ // operator saw on the device the first time this command worked. The path is double-quoted,
2033
+ // which is what -File accepts at the cmd layer; nothing here needs an argument list.
2034
+ const r = (0, child_process_1.spawnSync)(`powershell -NoProfile -ExecutionPolicy Bypass -File "${start}"`, { encoding: "utf8", shell: true });
2031
2035
  const out = String(r.stdout || "").trim();
2032
2036
  if (out.endsWith("already-running")) {
2033
2037
  console.log("desktop: the Summrise shell is ALREADY RUNNING (look for the window, or the tray icon)");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "summrise-agent",
3
- "version": "1.2.458",
3
+ "version": "1.2.459",
4
4
  "description": "Summrise Agent — Windows device MCP server (terminal/SSH/serial) + panel. Self-hosted npm distribution.",
5
5
  "//build": "唯一构建路径:在本目录执行 npm run build。它是自包含的:经 npm exec 按需拉取 typescript@5,无需预装任何 node_modules(干净检出可跑;旧脚本引用 ../summrise-desktop-electron/node_modules/.bin/tsc,干净检出必 ENOENT)。必须用 npm exec --package … -- tsc 的形式:npx 会吃掉传给 tsc 的 -p/--outDir 等参数(round-435:npx 写法从未真正跑通过)。先编 electron TS(--noCheck 纯 emit,与 release.yml 一致)同步两处 src/*.js,再编 src/summrise.ts 到 bin/summrise.js 并校验 round-298 标记(弱 oracle,只证某次构建发生,新鲜性由 publish-release.sh 的 tsc 重编 + cmp 门保证)。",
6
6
  "bin": {