claude-auto-continue 1.0.1 → 1.0.2
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 +4 -2
- package/scripts/postinstall.js +35 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-auto-continue",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Automatically resumes Claude Code sessions after usage limits reset",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -9,12 +9,14 @@
|
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
11
|
"dist/",
|
|
12
|
-
"bin/"
|
|
12
|
+
"bin/",
|
|
13
|
+
"scripts/"
|
|
13
14
|
],
|
|
14
15
|
"scripts": {
|
|
15
16
|
"test": "vitest run",
|
|
16
17
|
"test:watch": "vitest",
|
|
17
18
|
"build": "tsc",
|
|
19
|
+
"postinstall": "node scripts/postinstall.js",
|
|
18
20
|
"prepublishOnly": "npm run build"
|
|
19
21
|
},
|
|
20
22
|
"engines": {
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Fix node-pty spawn-helper permissions.
|
|
4
|
+
*
|
|
5
|
+
* npm tarballs strip the execute bit from the prebuilt spawn-helper binary,
|
|
6
|
+
* causing "posix_spawnp failed" errors on macOS and Linux.
|
|
7
|
+
* See: https://github.com/microsoft/node-pty/issues/789
|
|
8
|
+
*/
|
|
9
|
+
'use strict';
|
|
10
|
+
|
|
11
|
+
const path = require('path');
|
|
12
|
+
const fs = require('fs');
|
|
13
|
+
const os = require('os');
|
|
14
|
+
|
|
15
|
+
if (os.platform() === 'win32') {
|
|
16
|
+
process.exit(0);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const prebuildsDir = path.join(
|
|
20
|
+
__dirname, '..', 'node_modules', 'node-pty', 'prebuilds'
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
try {
|
|
24
|
+
const platforms = fs.readdirSync(prebuildsDir);
|
|
25
|
+
for (const platform of platforms) {
|
|
26
|
+
const helperPath = path.join(prebuildsDir, platform, 'spawn-helper');
|
|
27
|
+
try {
|
|
28
|
+
fs.chmodSync(helperPath, 0o755);
|
|
29
|
+
} catch (_) {
|
|
30
|
+
// spawn-helper doesn't exist for this platform (e.g. win32) — skip
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
} catch (_) {
|
|
34
|
+
// prebuilds dir doesn't exist (node-pty not yet installed) — skip
|
|
35
|
+
}
|