free-pi-cli 0.4.2 → 0.4.4
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/dist/index-xkn61g24.js +17974 -0
- package/dist/index.js +1 -1
- package/dist/{main-37kszx0y.js → main-4wwh354d.js} +470 -93
- package/package.json +4 -2
- package/skills/long-jobs/SKILL.md +14 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "free-pi-cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"description": "Free, ad-supported distribution of the pi coding agent. Inference paid for by ads.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
11
|
"dist",
|
|
12
|
+
"skills",
|
|
12
13
|
"README.md"
|
|
13
14
|
],
|
|
14
15
|
"engines": {
|
|
@@ -19,7 +20,8 @@
|
|
|
19
20
|
"prepublishOnly": "bun run build"
|
|
20
21
|
},
|
|
21
22
|
"dependencies": {
|
|
22
|
-
"@earendil-works/pi-coding-agent": "1.2.0"
|
|
23
|
+
"@earendil-works/pi-coding-agent": "1.2.0",
|
|
24
|
+
"@gravity-ai/api": "1.2.1"
|
|
23
25
|
},
|
|
24
26
|
"devDependencies": {
|
|
25
27
|
"@freepi/pi-ads": "workspace:*",
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: long-jobs
|
|
3
|
+
description: Use when running builds, test suites, dev servers, downloads, decompilers, or any command expected to take longer than about a minute. Covers checking tools first, running jobs in the background with a log, waiting once, and not hiding errors.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Long-running jobs
|
|
7
|
+
|
|
8
|
+
- Before relying on a tool, check it exists once (`command -v gh cmake timeout`) and note what is missing. Do not assume `sudo`.
|
|
9
|
+
- Run the specific test or target first. Run a full suite once, at the end.
|
|
10
|
+
- Before rerunning a long job, check whether its earlier output or log already exists.
|
|
11
|
+
- Start long processes in the background with output to a log file and the PID saved: `nohup cmd > job.log 2>&1 & echo $! > job.pid`. Stop them with `kill $(cat job.pid)`. Never use `pkill -f` with a pattern that also matches your own command line.
|
|
12
|
+
- Wait once, with a time limit, for a marker in the log: `timeout 600 sh -c 'until grep -q "done" job.log; do sleep 5; done'`. To wait for the process instead: `timeout 600 sh -c 'while kill -0 $(cat job.pid) 2>/dev/null; do sleep 5; done'`. Do not poll with repeated short sleep-and-tail calls, and do not use `tail -f | grep` (it keeps waiting after the match).
|
|
13
|
+
- Check a port is free before starting a server, and stop the servers you started.
|
|
14
|
+
- Do not hide errors: no `2>/dev/null` and no `| tail` on a command whose failure you need to diagnose. Test a new parser or script on a small sample first.
|