@henryqw/pi-pr 6.2.12 → 6.2.13

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/README.md CHANGED
@@ -42,6 +42,8 @@ Run `/pr` in a GitHub checkout. It reads fresh local and GitHub state, takes the
42
42
 
43
43
  `/pr` accepts no flags, prose, or base argument. Start with the command, not a helper skill or tool: direct calls cannot establish route authority. The helper run is bound to the current session and worktree. Its agent tools use plain-object parameter schemas so providers that omit root-union tools can expose them; action-specific arguments are still checked before the workflow runs.
44
44
 
45
+ The `pi_pr_*` tools are model-only and run one action at a time. Codemode scripts and other tools cannot call them, so a script cannot batch guarded actions or filter the result the model needs for its next safety decision. With `codemode.mode` set to `only`, Pi hides other tools behind `codemode` but keeps these declared, so `/pr` workflows still work.
46
+
45
47
  ## Flow
46
48
 
47
49
  ![Flowchart showing /pr reading fresh GitHub and local state and choosing the next safe route](./docs/pr-routing.svg)
package/extensions/pr.ts CHANGED
@@ -465,6 +465,7 @@ export default function pullRequestExtension(
465
465
  description: "Run one guarded action for the /pr branch-update route.",
466
466
  parameters: flatRoot(UpdateBranchActions),
467
467
  executionMode: "sequential",
468
+ exposure: "model-only",
468
469
  async execute(_toolCallId, raw, signal, _onUpdate, ctx) {
469
470
  const params = checkedAction(UpdateBranchActions, raw);
470
471
  return executeWorkflowAction(params.runId, "update-branch", ctx, signal, async (selected) => {
@@ -487,6 +488,7 @@ export default function pullRequestExtension(
487
488
  description: "Run one guarded action for the /pr creation route.",
488
489
  parameters: flatRoot(CreateActions),
489
490
  executionMode: "sequential",
491
+ exposure: "model-only",
490
492
  async execute(_toolCallId, raw, signal, _onUpdate, ctx) {
491
493
  const params = checkedAction(CreateActions, raw);
492
494
  return executeWorkflowAction(params.runId, "create", ctx, signal, async (selected) => {
@@ -512,6 +514,7 @@ export default function pullRequestExtension(
512
514
  description: "Inspect, commit, validate, and publish only reviewed local work for the /pr route.",
513
515
  parameters: flatRoot(WorkActions),
514
516
  executionMode: "sequential",
517
+ exposure: "model-only",
515
518
  async execute(_toolCallId, raw, signal, _onUpdate, ctx) {
516
519
  const params = checkedAction(WorkActions, raw);
517
520
  return executeWorkflowAction(params.runId, "publish-work", ctx, signal, async (selected) => {
@@ -535,6 +538,7 @@ export default function pullRequestExtension(
535
538
  description: "Run one guarded action for the /pr feedback route.",
536
539
  parameters: flatRoot(SweepActions),
537
540
  executionMode: "sequential",
541
+ exposure: "model-only",
538
542
  async execute(_toolCallId, raw, signal, _onUpdate, ctx) {
539
543
  const params = checkedAction(SweepActions, raw);
540
544
  return executeWorkflowAction(params.runId, "sweep", ctx, signal, async (selected) => {
@@ -563,6 +567,7 @@ export default function pullRequestExtension(
563
567
  description: "Run one guarded action for the /pr failed-CI route.",
564
568
  parameters: flatRoot(FixCiActions),
565
569
  executionMode: "sequential",
570
+ exposure: "model-only",
566
571
  async execute(_toolCallId, raw, signal, _onUpdate, ctx) {
567
572
  const params = checkedAction(FixCiActions, raw);
568
573
  return executeWorkflowAction(params.runId, "fix-ci", ctx, signal, async (selected) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@henryqw/pi-pr",
3
- "version": "6.2.12",
3
+ "version": "6.2.13",
4
4
  "description": "Run /pr to safely discover or link the current pull request, then create, update, address feedback, fix CI, or merge when ready.",
5
5
  "keywords": [
6
6
  "pi-package",