peky 0.0.1
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/LICENSE.md +21 -0
- package/README.md +49 -0
- package/bin/peky.js +49 -0
- package/package.json +42 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 regenrek
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# peky
|
|
2
|
+
|
|
3
|
+
alias for peakypanes
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+
[](https://github.com/regenrek/peky/stargazers)
|
|
7
|
+
[](https://www.npmjs.com/package/peky)
|
|
8
|
+
[](https://github.com/regenrek/homebrew-tap)
|
|
9
|
+
[](https://deepwiki.com/regenrek/peky)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## Features
|
|
13
|
+
|
|
14
|
+
- {EMOJI} - {FEATURE 1}
|
|
15
|
+
- {EMOJI} - {FEATURE 2}
|
|
16
|
+
- {EMOJI} - {FEATURE 3}
|
|
17
|
+
.
|
|
18
|
+
.
|
|
19
|
+
.
|
|
20
|
+
|
|
21
|
+
## Quick Start
|
|
22
|
+
|
|
23
|
+
### Install
|
|
24
|
+
|
|
25
|
+
TODO: Add installation instructions.
|
|
26
|
+
|
|
27
|
+
### Usage
|
|
28
|
+
|
|
29
|
+
TODO: Add usage examples.
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
NOTE FOR THE AGENT:
|
|
34
|
+
... add here more which is relevant for the repo ...
|
|
35
|
+
END NOTE
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
## Links
|
|
39
|
+
|
|
40
|
+
- X/Twitter: [@kregenrek](https://x.com/kregenrek)
|
|
41
|
+
|
|
42
|
+
## My Courses
|
|
43
|
+
|
|
44
|
+
- Learn to build software with AI: [instructa.ai](https://www.instructa.ai)
|
|
45
|
+
|
|
46
|
+
## See my other projects:
|
|
47
|
+
|
|
48
|
+
* [Personal GH](https://github.com/regenrek) - Building AI tools to driving my coding agent to the max.
|
|
49
|
+
* [Instructa GH](https://github.com/orgs/instructa/repositories) - Instructa Projects
|
package/bin/peky.js
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { spawn } from "node:child_process";
|
|
4
|
+
import { createRequire } from "node:module";
|
|
5
|
+
|
|
6
|
+
const require = createRequire(import.meta.url);
|
|
7
|
+
const forwardedSignals = ["SIGINT", "SIGTERM", "SIGHUP"];
|
|
8
|
+
|
|
9
|
+
let peakypanesBin;
|
|
10
|
+
try {
|
|
11
|
+
peakypanesBin = require.resolve("peakypanes/bin/peakypanes.js");
|
|
12
|
+
} catch (error) {
|
|
13
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
14
|
+
console.error(`peky: unable to resolve peakypanes binary.\n${message}`);
|
|
15
|
+
process.exit(1);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const child = spawn(process.execPath, [peakypanesBin, ...process.argv.slice(2)], {
|
|
19
|
+
stdio: "inherit",
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
child.on("error", (error) => {
|
|
23
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
24
|
+
console.error(`peky: failed to start peakypanes.\n${message}`);
|
|
25
|
+
process.exit(1);
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
for (const signal of forwardedSignals) {
|
|
29
|
+
process.on(signal, () => {
|
|
30
|
+
child.kill(signal);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
child.on("exit", (code, signal) => {
|
|
35
|
+
for (const sig of forwardedSignals) {
|
|
36
|
+
process.removeAllListeners(sig);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (signal) {
|
|
40
|
+
try {
|
|
41
|
+
process.kill(process.pid, signal);
|
|
42
|
+
} catch {
|
|
43
|
+
process.exit(1);
|
|
44
|
+
}
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
process.exit(code ?? 1);
|
|
49
|
+
});
|
package/package.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "peky",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Alias CLI for peakypanes.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"bin": {
|
|
8
|
+
"peky": "bin/peky.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"bin",
|
|
12
|
+
"README.md",
|
|
13
|
+
"LICENSE.md"
|
|
14
|
+
],
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/regenrek/peky.git"
|
|
18
|
+
},
|
|
19
|
+
"bugs": {
|
|
20
|
+
"url": "https://github.com/regenrek/peky/issues"
|
|
21
|
+
},
|
|
22
|
+
"homepage": "https://github.com/regenrek/peky#readme",
|
|
23
|
+
"keywords": [
|
|
24
|
+
"tmux",
|
|
25
|
+
"cli",
|
|
26
|
+
"peakypanes",
|
|
27
|
+
"alias"
|
|
28
|
+
],
|
|
29
|
+
"engines": {
|
|
30
|
+
"node": ">=20"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"peakypanes": "^0.0.10"
|
|
34
|
+
},
|
|
35
|
+
"publishConfig": {
|
|
36
|
+
"access": "public"
|
|
37
|
+
},
|
|
38
|
+
"scripts": {
|
|
39
|
+
"lint": "node --check bin/peky.js",
|
|
40
|
+
"prepack": "npm run lint"
|
|
41
|
+
}
|
|
42
|
+
}
|