pi-quiver 6.14.3 → 6.15.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/CHANGELOG.md +8 -0
- package/README.md +3 -2
- package/package.json +3 -2
- package/prompts/elevator.md +18 -0
- 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.1 - 2026-11-03
|
|
12
|
+
|
|
13
|
+
- `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)
|
|
14
|
+
|
|
15
|
+
## v6.15.0 - 2026-10-30
|
|
16
|
+
|
|
17
|
+
- 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)
|
|
18
|
+
|
|
11
19
|
## v6.14.3 - 2026-10-29
|
|
12
20
|
|
|
13
21
|
- `slack`: exclude deactivated users from cache refreshes and live name lookups so matching names resolve only to active users.
|
package/README.md
CHANGED
|
@@ -72,6 +72,7 @@ A 300 KB changelog page never touches your context window - you get a preview an
|
|
|
72
72
|
| `extensions/provider-stall-watchdog.ts` | - | Opt-in provider-stall recovery, in two tiers: a pre-first-event deadline (`firstEventMs`, 20s) on every provider request in every mode, and the mid-stream pair (warn at 2 min, recover at 4 min) in TUI runs only. Each stall is aborted; while pi's `retry.enabled` is true and the stall retry budget (`maxStallRetries`, default = `retry.maxRetries`) remains, its aborted attempt is hidden from the model and re-driven by the watchdog after pi's backoff; behavior guide: [doc/provider-stall-watchdog.md](doc/provider-stall-watchdog.md). OFF by default. |
|
|
73
73
|
| `extensions/slack.ts` | `slack_search`, `slack_thread`, `slack_post`, `slack_update`, `slack_delete`, `slack_pin`, `slack_upload`, `slack_cache_refresh` | Context-safe Slack search/threads/posting with dual `user`/`bot` token identities, Block Kit flattening and optional raw JSON output for threads, a workspace-keyed channel/user name->ID cache, DM targets by `@name` / user ID, fetch-style output size gating, and a transactional headline+detail-thread announce protocol with a documented recovery path. Pi registration is OFF by default. Behavior lives in `lib/slack-core.ts` and `lib/slack-cache.ts`; the [Slack CLI](doc/slack.md#cli) exposes `post`, `reply`, `dm`, and `canvas` without enabling pi registration. |
|
|
74
74
|
| `prompts/rebase-worktree.md` | `/rebase-worktree [base]` | Prompt template, pi only. Rebases the current worktree onto `origin/<base>` (default `main`), resolves conflicts inline with the authorization stated in the prompt, runs only the tests that cover the resolved files, and reports the resolutions and fix commits. Never pushes; it syncs the branch so a later CI run or `/skill:gatekeep-pr` sees current `main`. |
|
|
75
|
+
| `prompts/elevator.md` | `/elevator [ticket\|PR\|path\|topic\|free text]` | Outcome-first PM explanations and frank judgment. Takes a free-text subject or question; omitting it uses the prior discussion. Claude Code counterpart: `/quiver:elevator`, user-invoked only. |
|
|
75
76
|
|
|
76
77
|
Full routing rules, size-gate mechanics, and config: [doc/fetch.md](doc/fetch.md), [doc/doc-to-md.md](doc/doc-to-md.md), [doc/slack.md](doc/slack.md).
|
|
77
78
|
|
|
@@ -349,9 +350,9 @@ to, and a flat `slack` block is ignored without a warning.
|
|
|
349
350
|
|
|
350
351
|
`fetch`, `doc_to_md`, and Slack cores are also published through the CLI, so Claude Code and CI can use the same behavior as pi's native tools - without pi ever seeing Claude-only files. Slack is CLI-only in this lane: pi uses native `slack_*` tools, while Claude Code/CI command files inline `npx -y pi-quiver@latest slack post ...` (or a pinned version). The CLI supports multi-line bot posts, `--no-unfurl`, DM `--blocks-file`, env-only credentials via `--token-from-env`, network-free `--dry-run`, and structured exit-4 `error=` output. No Slack plugin skill ships by design; see the [Slack CLI contract and migration](doc/slack.md#cli).
|
|
351
352
|
|
|
352
|
-
**Exposed:** the `quiver` plugin, served from this repo's `.claude-plugin/marketplace.json`, with
|
|
353
|
+
**Exposed:** the `quiver` plugin, served from this repo's `.claude-plugin/marketplace.json`, with three skills: `fetch` (invoked as `quiver:fetch` / `/quiver:fetch`), `doc-to-md` (invoked as `quiver:doc-to-md` / `/quiver:doc-to-md`), and `elevator` (invoked as `/quiver:elevator`, user-invoked only). The `fetch` skill runs `npx -y pi-quiver@latest fetch <url> [flags]` via Bash - full parameter parity with the pi tool (`--method`, `--header`, `--body`, `--raw`, `--timeout-ms`), same GitHub `gh` routing (including failed-step logs on failed runs/jobs), same size gate, same binary-to-temp-file handling. See [doc/fetch.md](doc/fetch.md#claude-code-cli-pi-quiver-fetch) for exit codes and flags. The `doc-to-md` skill is generated at release from its hand-written intro and option schema; it runs `npx -y pi-quiver@<release version> doc-to-md [flags] <path>` with full flag parity and the same handle output. See [doc/doc-to-md.md](doc/doc-to-md.md#cli-pi-quiver-doc-to-md) for exit codes and flags, and [install channels](doc/doc-to-md.md#install-channels) for npm versus marketplace updates.
|
|
353
354
|
|
|
354
|
-
**Not exposed as plugin skills:** the other pi extensions in this package (`session-name`, `sword-header`, `fast-mode`, `provider-stall-watchdog`, `slack`); Slack is available through the CLI instead. The marketplace allowlists only `./skills/fetch
|
|
355
|
+
**Not exposed as plugin skills:** the other pi extensions in this package (`session-name`, `sword-header`, `fast-mode`, `provider-stall-watchdog`, `slack`); Slack is available through the CLI instead. The marketplace allowlists only `./skills/fetch`, `./skills/doc-to-md`, and `./skills/elevator`, and the npm tarball never ships `skills/` or `.claude-plugin/` (pi's own `files` allowlist excludes them, and pi's explicit `pi.extensions` manifest makes them invisible to pi's convention-directory auto-discovery either way).
|
|
355
356
|
|
|
356
357
|
Add the marketplace and enable the plugin in `.claude/settings.json`:
|
|
357
358
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-quiver",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.15.1",
|
|
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",
|
|
@@ -56,7 +56,8 @@
|
|
|
56
56
|
"./extensions"
|
|
57
57
|
],
|
|
58
58
|
"prompts": [
|
|
59
|
-
"./prompts/rebase-worktree.md"
|
|
59
|
+
"./prompts/rebase-worktree.md",
|
|
60
|
+
"./prompts/elevator.md"
|
|
60
61
|
],
|
|
61
62
|
"image": "https://raw.githubusercontent.com/jjuraszek/pi-quiver/main/pi-quiver.png"
|
|
62
63
|
},
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Explain and judge something like for a PM during an elevator talk
|
|
3
|
+
argument-hint: "[ticket|PR|path|topic|free text]"
|
|
4
|
+
---
|
|
5
|
+
Explain ${@:-the thing we were just discussing} like for a PM during an elevator talk.
|
|
6
|
+
|
|
7
|
+
Format: outcome first, plain words, one concrete example per claim, max ~8 lines.
|
|
8
|
+
No code, SHAs, file paths, or commit refs unless the reader needs them to act.
|
|
9
|
+
Skip "tests pass" and other mandatory baseline.
|
|
10
|
+
|
|
11
|
+
Answer, in order, only what applies:
|
|
12
|
+
1. What it is about and why it surfaced now (the root cause, not the symptom).
|
|
13
|
+
2. Is it the right change - idiomatic for this repo, follows existing conventions
|
|
14
|
+
and machinery, no new abstraction without a second caller?
|
|
15
|
+
3. Is it worth it - gain vs blast radius, is it material?
|
|
16
|
+
4. Which assumption is wrong or stale, in the ticket, the spec, or the code?
|
|
17
|
+
Roast it: facts only, no diplomacy, no performed agreement.
|
|
18
|
+
5. What is left for me to decide, with your pick and one reason.
|
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
|
|