skalpel 3.1.3 → 3.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skalpel",
3
- "version": "3.1.3",
3
+ "version": "3.1.5",
4
4
  "description": "Skalpel — local proxy and TUI for coding agents (skalpel + skalpeld bundle).",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://skalpel.ai",
@@ -55,10 +55,10 @@
55
55
  "x64"
56
56
  ],
57
57
  "optionalDependencies": {
58
- "@skalpelai/skalpel-darwin-arm64": "3.1.3",
59
- "@skalpelai/skalpel-darwin-x64": "3.1.3",
60
- "@skalpelai/skalpel-linux-arm64": "3.1.3",
61
- "@skalpelai/skalpel-linux-x64": "3.1.3",
62
- "@skalpelai/skalpel-win32-x64": "3.1.3"
58
+ "@skalpelai/skalpel-darwin-arm64": "3.1.5",
59
+ "@skalpelai/skalpel-darwin-x64": "3.1.5",
60
+ "@skalpelai/skalpel-linux-arm64": "3.1.5",
61
+ "@skalpelai/skalpel-linux-x64": "3.1.5",
62
+ "@skalpelai/skalpel-win32-x64": "3.1.5"
63
63
  }
64
64
  }
@@ -196,7 +196,17 @@ function run({ dryRun }) {
196
196
 
197
197
  const renderValues = process.platform === 'win32' ? xmlEscapedValues(values) : values;
198
198
  const rendered = template.render(tmpl, renderValues);
199
- fs.writeFileSync(dest, rendered, { mode: 0o644 });
199
+ if (process.platform === 'win32') {
200
+ // BUG-0034: `schtasks /Create /XML` requires the task definition to be
201
+ // UTF-16LE (with BOM) and the <?xml encoding?> to match; Node's default
202
+ // writeFileSync emits UTF-8 → schtasks fails "unable to switch the
203
+ // encoding" and the daemon's logon task never registers. The template
204
+ // declares encoding="UTF-16"; write the matching UTF-16LE+BOM bytes.
205
+ const bom = Buffer.from([0xff, 0xfe]);
206
+ fs.writeFileSync(dest, Buffer.concat([bom, Buffer.from(rendered, 'utf16le')]), { mode: 0o644 });
207
+ } else {
208
+ fs.writeFileSync(dest, rendered, { mode: 0o644 });
209
+ }
200
210
  log.info(`service-register: wrote ${dest}`);
201
211
 
202
212
  if (process.platform === 'win32') {
@@ -1,4 +1,4 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
1
+ <?xml version="1.0" encoding="UTF-16"?>
2
2
  <Task version="1.4" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
3
3
  <RegistrationInfo>
4
4
  <Date>2026-05-03T10:00:00</Date>
@@ -25,7 +25,7 @@
25
25
  <StopIfGoingOnBatteries>false</StopIfGoingOnBatteries>
26
26
  <AllowHardTerminate>false</AllowHardTerminate>
27
27
  <RestartOnFailure>
28
- <Interval>PT10S</Interval>
28
+ <Interval>PT1M</Interval>
29
29
  <Count>9999</Count>
30
30
  </RestartOnFailure>
31
31
  <Hidden>true</Hidden>