@harness-reins/linux-x64 0.9.0 → 0.9.3
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/reins/_internal/harness_reins/_build.txt +1 -1
- package/dist/reins/_internal/harness_reins/assets/skills/claude/SKILL.md +5 -1
- package/dist/reins/_internal/harness_reins/harness/pi/extension/reins-callback.js +15 -2
- package/dist/reins/_internal/{harness_reins-0.9.0.dist-info → harness_reins-0.9.3.dist-info}/METADATA +6 -1
- package/dist/reins/_internal/{harness_reins-0.9.0.dist-info → harness_reins-0.9.3.dist-info}/RECORD +20 -20
- package/dist/reins/_internal/harness_reins-0.9.3.dist-info/direct_url.json +1 -0
- package/dist/reins/reins +0 -0
- package/package.json +1 -1
- package/dist/reins/_internal/harness_reins-0.9.0.dist-info/direct_url.json +0 -1
- /package/dist/reins/_internal/{harness_reins-0.9.0.dist-info → harness_reins-0.9.3.dist-info}/INSTALLER +0 -0
- /package/dist/reins/_internal/{harness_reins-0.9.0.dist-info → harness_reins-0.9.3.dist-info}/REQUESTED +0 -0
- /package/dist/reins/_internal/{harness_reins-0.9.0.dist-info → harness_reins-0.9.3.dist-info}/WHEEL +0 -0
- /package/dist/reins/_internal/{harness_reins-0.9.0.dist-info → harness_reins-0.9.3.dist-info}/entry_points.txt +0 -0
- /package/dist/reins/_internal/{harness_reins-0.9.0.dist-info → harness_reins-0.9.3.dist-info}/top_level.txt +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
9a7f7d5a09f5
|
|
@@ -39,7 +39,8 @@ differs from this page about callback delivery, this page applies to Claude Code
|
|
|
39
39
|
2. **Wait** — run exactly that `reins wait ... --task <id>` command with the Bash tool's
|
|
40
40
|
`run_in_background: true`. Do not run it in the foreground (it blocks until the job ends), and do
|
|
41
41
|
not poll its output. Then tell the user what is running and end your turn, or carry on with other
|
|
42
|
-
work.
|
|
42
|
+
work. Start it right after the submission: the daemon holds this session's callbacks for a waiter
|
|
43
|
+
for 120 s after `reins run` (`REINS_CLAUDE_WAIT_GRACE_SECONDS`), then resumes the session headless.
|
|
43
44
|
|
|
44
45
|
If the Bash tool has no `run_in_background` (background tasks are disabled; `reins run` then says
|
|
45
46
|
so instead of printing a wait command), skip the wait: tell the user what is running and end your
|
|
@@ -112,6 +113,9 @@ differs from this page about callback delivery, this page applies to Claude Code
|
|
|
112
113
|
a signed-in standalone CLI; otherwise the callback stays queued and the next `reins wait` from this
|
|
113
114
|
session (or `reins status`) picks it up. After a live delivery, the daemon waits 30 minutes for the
|
|
114
115
|
ACK before it falls back.
|
|
116
|
+
- **Wait exit code 4** means the callback went to such a headless resume of this session instead: a
|
|
117
|
+
second copy of the session is handling it. Do not redo its work; check `reins status` and the
|
|
118
|
+
task's files, and let that copy finish before starting more work on the task.
|
|
115
119
|
- `reins wait` exists only for Claude Code. It refuses to run without `CLAUDE_CODE_SESSION_ID` and
|
|
116
120
|
never touches callbacks bound to other agents.
|
|
117
121
|
- **Do not** call `claude -p --resume` yourself, add `--via-daemon`, or invent launch flags. Callback
|
|
@@ -11,7 +11,20 @@ const digest = (value) => crypto.createHash("sha256").update(value).digest("hex"
|
|
|
11
11
|
|
|
12
12
|
function canonical(value) {
|
|
13
13
|
if (typeof value !== "string" || !path.isAbsolute(value)) throw new Error("An absolute session file is required");
|
|
14
|
-
return
|
|
14
|
+
return resolved(value);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// Like Python's Path.resolve(): follow symlinks through the part that exists, so
|
|
18
|
+
// paths recorded here match the ones Reins compares them with (/var on macOS
|
|
19
|
+
// is a symlink to /private/var).
|
|
20
|
+
function resolved(value) {
|
|
21
|
+
let head = path.resolve(value);
|
|
22
|
+
const tail = [];
|
|
23
|
+
while (!fs.existsSync(head) && path.dirname(head) !== head) {
|
|
24
|
+
tail.unshift(path.basename(head));
|
|
25
|
+
head = path.dirname(head);
|
|
26
|
+
}
|
|
27
|
+
return norm(path.join(fs.existsSync(head) ? fs.realpathSync(head) : head, ...tail));
|
|
15
28
|
}
|
|
16
29
|
|
|
17
30
|
function privateDirectory(directory) {
|
|
@@ -163,7 +176,7 @@ export default function ltcCallback(pi) {
|
|
|
163
176
|
if (!file) return; // --no-session children have no callback owner.
|
|
164
177
|
const session = canonical(file);
|
|
165
178
|
const profile = canonical(path.resolve(process.env.PI_CODING_AGENT_DIR || path.join(os.homedir(), ".pi", "agent")));
|
|
166
|
-
const root =
|
|
179
|
+
const root = resolved(process.env.REINS_PI_CHANNEL_ROOT || path.join(profile, "harness-reins", "channels"));
|
|
167
180
|
if (process.platform === "win32" && !fs.existsSync(root)) {
|
|
168
181
|
throw new Error("Install the extension with Reins to initialize private Windows channel permissions");
|
|
169
182
|
}
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: harness-reins
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.3
|
|
4
4
|
Summary: Harness Reins: a harness for your harnesses. Dispatch work to Codex, Claude Code or Pi and route the result back to the session that asked.
|
|
5
5
|
Author: Local
|
|
6
6
|
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/lz59970062/harness-reins
|
|
8
|
+
Project-URL: Repository, https://github.com/lz59970062/harness-reins
|
|
9
|
+
Project-URL: Changelog, https://github.com/lz59970062/harness-reins/blob/main/CHANGELOG.md
|
|
10
|
+
Project-URL: Issues, https://github.com/lz59970062/harness-reins/issues
|
|
7
11
|
Keywords: agents,harness,codex,claude-code,pi,callback,long-running-tasks
|
|
8
12
|
Classifier: Operating System :: Microsoft :: Windows
|
|
9
13
|
Classifier: Operating System :: MacOS :: MacOS X
|
|
10
14
|
Classifier: Operating System :: POSIX :: Linux
|
|
11
15
|
Classifier: Programming Language :: Python :: 3
|
|
12
16
|
Requires-Python: >=3.9
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
13
18
|
Requires-Dist: PyYAML>=6.0
|
package/dist/reins/_internal/{harness_reins-0.9.0.dist-info → harness_reins-0.9.3.dist-info}/RECORD
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
../../../bin/reins,sha256=
|
|
2
|
-
../../../bin/reins-desktop-core,sha256=
|
|
3
|
-
harness_reins-0.9.
|
|
4
|
-
harness_reins-0.9.
|
|
5
|
-
harness_reins-0.9.
|
|
6
|
-
harness_reins-0.9.
|
|
7
|
-
harness_reins-0.9.
|
|
8
|
-
harness_reins-0.9.
|
|
9
|
-
harness_reins-0.9.
|
|
10
|
-
harness_reins-0.9.
|
|
11
|
-
harness_reins/__init__.py,sha256=
|
|
1
|
+
../../../bin/reins,sha256=O9diBfFRIh2juPxL06QBUYMITq3aQ3BxPU7XowAr8GY,235
|
|
2
|
+
../../../bin/reins-desktop-core,sha256=K33175qxQiHmQOM0SkLWJlwIATR0cla60iiBZQEOvN4,258
|
|
3
|
+
harness_reins-0.9.3.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
|
4
|
+
harness_reins-0.9.3.dist-info/METADATA,sha256=GlAXu0ocqfFoG20vrjQogNfJlIeJg_9gAjA42dbuedk,893
|
|
5
|
+
harness_reins-0.9.3.dist-info/RECORD,,
|
|
6
|
+
harness_reins-0.9.3.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
|
+
harness_reins-0.9.3.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
8
|
+
harness_reins-0.9.3.dist-info/direct_url.json,sha256=4WyNAQ46R_Wp-EvqtAI65ZgwHhifKM0DLtZXKwCAN-w,53
|
|
9
|
+
harness_reins-0.9.3.dist-info/entry_points.txt,sha256=yRT8Z1xHXt_GZusI-M7llIgUTmlh5LgrRKvgLDnlWX8,116
|
|
10
|
+
harness_reins-0.9.3.dist-info/top_level.txt,sha256=q3iLW66VIKiJGaBXHOqW7xFXeoEBtYr890lvWlM2LUU,14
|
|
11
|
+
harness_reins/__init__.py,sha256=h-GfB7F-TULcpxVJMa3k7BGml32mRcwDw9vtDhtwSXE,124
|
|
12
12
|
harness_reins/__main__.py,sha256=nbdP6zFlOqcCirgxoIQ6HiWVhdh7URm5GOWr5_EwmBk,116
|
|
13
13
|
harness_reins/__pycache__/__init__.cpython-312.pyc,,
|
|
14
14
|
harness_reins/__pycache__/__main__.cpython-312.pyc,,
|
|
@@ -18,10 +18,10 @@ harness_reins/__pycache__/cli.cpython-312.pyc,,
|
|
|
18
18
|
harness_reins/__pycache__/runtime.cpython-312.pyc,,
|
|
19
19
|
harness_reins/__pycache__/template_registration.cpython-312.pyc,,
|
|
20
20
|
harness_reins/__pycache__/templates.cpython-312.pyc,,
|
|
21
|
-
harness_reins/_build.txt,sha256=
|
|
21
|
+
harness_reins/_build.txt,sha256=pFgEgb_JvBTyv2eOLAGioyL6UlkRUv2pvSRjcL_MTV0,13
|
|
22
22
|
harness_reins/_desktop_entry.py,sha256=rQphQ-kOlDNQNyAOE-l4N7I3bpWHvtTreM-p_2nYIwU,302
|
|
23
23
|
harness_reins/_entry.py,sha256=8Cz0dYpcLIiKXM4FNjEUyO08qTLSO16NJD2g81zJNFo,272
|
|
24
|
-
harness_reins/assets/skills/claude/SKILL.md,sha256=
|
|
24
|
+
harness_reins/assets/skills/claude/SKILL.md,sha256=YlJJHLyLs8DnS4Uik8OTQOrRqB3T6pKZedg4rD68vqo,8362
|
|
25
25
|
harness_reins/assets/skills/codex/SKILL.md,sha256=1XF6uMpOMjb9ZEX7qemopJNo2JzCu9gy3fg-WkxIgoE,5183
|
|
26
26
|
harness_reins/assets/skills/pi/SKILL.md,sha256=0hQOG_gBgaM3_uqTVVR77fbtykxcmOskjNzxxUk-Shg,5789
|
|
27
27
|
harness_reins/assets/skills/reference/SKILL.md,sha256=PRutCXD97W6nKfnOGse_yVoBamKUr9x8f_NBS1V7J5k,44435
|
|
@@ -72,12 +72,12 @@ harness_reins/engine/__pycache__/routes.cpython-312.pyc,,
|
|
|
72
72
|
harness_reins/engine/__pycache__/tasks.cpython-312.pyc,,
|
|
73
73
|
harness_reins/engine/__pycache__/worker.cpython-312.pyc,,
|
|
74
74
|
harness_reins/engine/contexts.py,sha256=GgjSU-s4a_ygRLMU2yqq4dFbWjjweb0YH_ktG8OIbPM,6395
|
|
75
|
-
harness_reins/engine/delivery.py,sha256=
|
|
76
|
-
harness_reins/engine/dispatch.py,sha256=
|
|
75
|
+
harness_reins/engine/delivery.py,sha256=6yIXZii1leKhLEuRY1x53MzkGwVL6C630tHSJnRg9j8,50169
|
|
76
|
+
harness_reins/engine/dispatch.py,sha256=WUmsK4ANyY_ZZzCnQkni3GdfRVDIuANqGh8rEk6AoUI,27207
|
|
77
77
|
harness_reins/engine/goals.py,sha256=KJYAGFFYJTdQm9BFqEtwN1X4ca_Hb4hNBarMDyPLSBI,17203
|
|
78
78
|
harness_reins/engine/recovery.py,sha256=FOzhRJTGux8kSUvWru8En5f5clqT6Ilj74hqiu-mCBQ,9786
|
|
79
79
|
harness_reins/engine/reminders.py,sha256=pvdFdmNwVjnW1svkmP2uuJ_huCqOeU_xNr4-b4HmeB0,8799
|
|
80
|
-
harness_reins/engine/resume_environment.py,sha256=
|
|
80
|
+
harness_reins/engine/resume_environment.py,sha256=B_K5xPf-uQk0BLuUssUHqh_yTPiE3JGRbLlEYpVgyT4,4402
|
|
81
81
|
harness_reins/engine/routes.py,sha256=IXf0cIuw7W16TEN1E9c7_UOFW7hbZ2lnomQ0A9Kr4OI,6926
|
|
82
82
|
harness_reins/engine/tasks.py,sha256=BnY648HCgTNCFob9jQkbxQB_LQtW46QTI9draTAQMos,31893
|
|
83
83
|
harness_reins/engine/worker.py,sha256=p4kVKRL3Arfr93KCHPzhKlUNpUqFodO9DjaTMvqi4Ps,13158
|
|
@@ -92,13 +92,13 @@ harness_reins/harness/claude/__pycache__/adapter.cpython-312.pyc,,
|
|
|
92
92
|
harness_reins/harness/claude/__pycache__/channel.cpython-312.pyc,,
|
|
93
93
|
harness_reins/harness/claude/__pycache__/session.cpython-312.pyc,,
|
|
94
94
|
harness_reins/harness/claude/adapter.py,sha256=-OEh_bBmVoWK_Wxl4kRS-I8qvuMIDNae-taNPk-hg_M,2843
|
|
95
|
-
harness_reins/harness/claude/channel.py,sha256=
|
|
96
|
-
harness_reins/harness/claude/session.py,sha256=
|
|
95
|
+
harness_reins/harness/claude/channel.py,sha256=AKDgpSSj2hkDIlpXF8DTqcZa8NYL9kdR5SPnPuWQxio,13146
|
|
96
|
+
harness_reins/harness/claude/session.py,sha256=pnHpNnQDU5EFjhzExlNylzwqHI5FpxhWyqM_S6FeyK0,24068
|
|
97
97
|
harness_reins/harness/codex/__init__.py,sha256=LbSbTbPnkf4q6W4wRiaCTy5m9xusFWZ2tRmRE7B4eeA,78
|
|
98
98
|
harness_reins/harness/codex/__pycache__/__init__.cpython-312.pyc,,
|
|
99
99
|
harness_reins/harness/codex/__pycache__/adapter.cpython-312.pyc,,
|
|
100
100
|
harness_reins/harness/codex/__pycache__/app_server.cpython-312.pyc,,
|
|
101
|
-
harness_reins/harness/codex/adapter.py,sha256=
|
|
101
|
+
harness_reins/harness/codex/adapter.py,sha256=UkB2F3x8B267sLArWa7x_ujjM6v1Sbt9t6JjbyXbTic,3408
|
|
102
102
|
harness_reins/harness/codex/app_server.py,sha256=mCQSkP7usLV73f6p0Q_kEXdiMnbMa3SbN6o9UmSpLwo,18185
|
|
103
103
|
harness_reins/harness/codex/desktop/__init__.py,sha256=Btw2-Bi8WW0MHrYbqWGPP_aoGufynlI8R6sTPrT9snc,80
|
|
104
104
|
harness_reins/harness/codex/desktop/__pycache__/__init__.cpython-312.pyc,,
|
|
@@ -128,7 +128,7 @@ harness_reins/harness/pi/__pycache__/adapter.cpython-312.pyc,,
|
|
|
128
128
|
harness_reins/harness/pi/__pycache__/channel.cpython-312.pyc,,
|
|
129
129
|
harness_reins/harness/pi/adapter.py,sha256=qau_3MdEAcvTOZ4rhbuKltnDikrBnfZbOjFW5xm8nUY,3900
|
|
130
130
|
harness_reins/harness/pi/channel.py,sha256=_gH-Aoa5jCDB92Iqte7nN_ryRhKub6quLRnu5Q9V7Lk,37801
|
|
131
|
-
harness_reins/harness/pi/extension/reins-callback.js,sha256=
|
|
131
|
+
harness_reins/harness/pi/extension/reins-callback.js,sha256=cDI57djkGcn-xJtK3WJD5G8bQ2GkuqG3iCMJH3Ia4II,15057
|
|
132
132
|
harness_reins/harness/registry.py,sha256=vImqIxS1do5OVW3yBPdit34zsAnXVatEBm0dBX4tZYs,2422
|
|
133
133
|
harness_reins/install/__init__.py,sha256=nMJBG7XNAtPiSwWFMgGhrXq_aSwigYt11V0kN8140J8,87
|
|
134
134
|
harness_reins/install/__pycache__/__init__.cpython-312.pyc,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"dir_info": {}, "url": "file:///tmp/tmp.Fe5DGlTSYy"}
|
package/dist/reins/reins
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"dir_info": {}, "url": "file:///tmp/tmp.vaqcknpGjR"}
|
|
File without changes
|
|
File without changes
|
/package/dist/reins/_internal/{harness_reins-0.9.0.dist-info → harness_reins-0.9.3.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|