pi-quiver 6.15.0 → 6.15.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/CHANGELOG.md +8 -0
- package/package.json +1 -1
- package/prompts/elevator.md +14 -11
- package/scripts/doc_to_md.py +17 -3
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,14 @@ Published to npm as `pi-quiver` (`pi install npm:pi-quiver`). Pushing a
|
|
|
8
8
|
via OIDC trusted publishing. The release helper at
|
|
9
9
|
`.agents/skills/release/scripts/release.sh` cuts the tag; CI publishes.
|
|
10
10
|
|
|
11
|
+
## v6.15.2 - 2026-11-03
|
|
12
|
+
|
|
13
|
+
- `/elevator` and `/quiver:elevator` ask for a PM elevator talk in prose instead of five numbered answers, with a short-answer release valve. The checkout-only `eval/elevator/` target replays the body through pi-gauntlet at commit `d0a2cadacf20cd4b530ae651fcd2b536cbea07ad` (`--root` support and runner-owned judge).
|
|
14
|
+
|
|
15
|
+
## v6.15.1 - 2026-11-03
|
|
16
|
+
|
|
17
|
+
- `doc_to_md`: keep the pages that carry pictures when the bundle and the child's temp directory sit on different volumes. `os.replace()` cannot cross volumes (Windows `WinError 17`), which failed the whole page and reported it as both failed and empty; the move now falls back to copy-and-unlink. The image-link rewrite also registers the cwd-relative form pymupdf4llm emits, so a temp dir under the cwd no longer fails the call with "unexpected image reference in output". (#34)
|
|
18
|
+
|
|
11
19
|
## v6.15.0 - 2026-10-30
|
|
12
20
|
|
|
13
21
|
- Add the pi `/elevator` prompt and user-invoked Claude Code `/quiver:elevator` skill for outcome-first explanations and frank judgment, with optional free-text input that defaults to the prior discussion when omitted. (#32)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-quiver",
|
|
3
|
-
"version": "6.15.
|
|
3
|
+
"version": "6.15.2",
|
|
4
4
|
"description": "Personal pack of Pi coding-agent extensions: context-safe fetch, doc_to_md PDF/DOCX/PPTX-to-Markdown conversion, session naming, a themed ASCII startup header, Opus 4.8 fast mode, and a provider-stall watchdog.",
|
|
5
5
|
"author": "Jacek Juraszek",
|
|
6
6
|
"license": "MIT",
|
package/prompts/elevator.md
CHANGED
|
@@ -4,15 +4,18 @@ argument-hint: "[ticket|PR|path|topic|free text]"
|
|
|
4
4
|
---
|
|
5
5
|
Explain ${@:-the thing we were just discussing} like for a PM during an elevator talk.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
Talk in one paragraph of whole sentences, within 180 words: lead with the outcome,
|
|
8
|
+
use everyday words a PM follows without the code open, and explain any necessary
|
|
9
|
+
code term on first use. Include only claims you can back with a concrete example
|
|
10
|
+
from the supplied facts, including your judgments about cost or risk. Spend words
|
|
11
|
+
only on what the reader needs to act - a path, SHA, or commit ref earns its place
|
|
12
|
+
only when the reader has to open it, and the mandatory baseline like passing tests
|
|
13
|
+
stays unsaid.
|
|
10
14
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
5. What is left for me to decide, with your pick and one reason.
|
|
15
|
+
Judge from those facts. Say what it is about and why it surfaced now (root cause, not
|
|
16
|
+
symptom), whether it fits how this project works, and whether the gain is worth how
|
|
17
|
+
much it changes. When an assumption in the ticket, spec, or code is wrong or stale, say so with
|
|
18
|
+
facts, plainly. For a decision explicitly left for me, end by naming it and giving your
|
|
19
|
+
pick with a single because-clause. Answer a narrow question in two or three sentences:
|
|
20
|
+
the answer and its supporting example, then stop. Leave out whatever does not apply;
|
|
21
|
+
a question with a short answer gets a short answer.
|
package/scripts/doc_to_md.py
CHANGED
|
@@ -31,8 +31,20 @@ HTML_IMAGE_RE = re.compile(
|
|
|
31
31
|
|
|
32
32
|
def image_source_map(source, target, filename):
|
|
33
33
|
real = os.path.realpath(source)
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
m = {source: target, source.replace("\\", "/"): target,
|
|
35
|
+
real: target, real.replace("\\", "/"): target, filename: target}
|
|
36
|
+
# pymupdf4llm's md_path() resolves image_path and emits it relative to the
|
|
37
|
+
# cwd whenever the resolved directory sits under the cwd; otherwise it emits
|
|
38
|
+
# the absolute POSIX path, which the "real" key above already covers. Key the
|
|
39
|
+
# relative form on the resolved path as well, so a temp dir reached through a
|
|
40
|
+
# symlink (macOS /var -> /private/var, Windows 8.3 RUNNER~1) still matches.
|
|
41
|
+
try:
|
|
42
|
+
rel = os.path.relpath(real, os.getcwd())
|
|
43
|
+
except ValueError: # different drive on Windows
|
|
44
|
+
return m
|
|
45
|
+
m[rel] = target
|
|
46
|
+
m[rel.replace("\\", "/")] = target
|
|
47
|
+
return m
|
|
36
48
|
|
|
37
49
|
|
|
38
50
|
def rewrite_image_destinations(md, sources):
|
|
@@ -506,7 +518,9 @@ def primary_page_markdown(doc, n, d, o, kw, write_images):
|
|
|
506
518
|
dest = f"img{i}{os.path.splitext(f)[1].lower()}"
|
|
507
519
|
source = os.path.join(tmp, f)
|
|
508
520
|
sources.update(image_source_map(source, f"p{n}/{dest}", f))
|
|
509
|
-
|
|
521
|
+
# shutil.move: rename, falling back to copy+unlink across volumes
|
|
522
|
+
# (os.replace alone raises WinError 17 there and costs the whole page).
|
|
523
|
+
shutil.move(source, os.path.join(d, dest))
|
|
510
524
|
return rewrite_image_destinations(md, sources)
|
|
511
525
|
|
|
512
526
|
|