@expert-council/pi-package 0.5.0 → 0.5.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.
Files changed (2) hide show
  1. package/README.md +71 -6
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -17,7 +17,7 @@ In practice, the theoretically strongest model is not automatically the best exe
17
17
 
18
18
  ## Current status
19
19
 
20
- The current release (0.5.0) includes:
20
+ The current release (0.5.1) includes:
21
21
 
22
22
  - A host-independent Core: configuration validation, model normalization, billing policy, profile layering, role scoring, task classification, dynamic team sizing, retry/escalation, and telemetry aggregation.
23
23
  - An execution runtime built on Pi's current `ModelRuntime` and `createAgentSession` APIs.
@@ -482,13 +482,69 @@ packages/codex-integration/plugin/expert-council/
482
482
 
483
483
  ### Installation
484
484
 
485
- 1. Build from a repository checkout: `npm install && npm run build`.
486
- 2. Expose the plugin directory through a personal or repository plugin marketplace as documented by the current [OpenAI plugin packaging guide](https://developers.openai.com/plugins/build/plugins). This repository does not write marketplace files automatically, because that would change user or team Codex configuration.
487
- 3. Install the plugin from your marketplace in Codex. After every install or reinstall, fully quit Codex Desktop, wait for its backend process to exit, and reopen the app — merely opening a new task is not a reliable MCP reload boundary in every Desktop build.
488
- 4. When upgrading, bump the marketplace cachebuster and remove obsolete test installations first; installing multiple copies that all declare the `expert_council` MCP server makes host diagnostics ambiguous.
485
+ Release `v0.5.1` includes the prebuilt MCP server, so Codex can install the plugin directly from the repository as a pinned Git marketplace. Node.js 22.19 or newer and a working Pi installation are required at runtime; cloning and building this repository is not required.
486
+
487
+ ```bash
488
+ codex plugin marketplace add Labiey/expert-council-router --ref v0.5.1 --json
489
+ codex plugin marketplace list --json
490
+ codex plugin list --marketplace expert-council-router --available --json
491
+ codex plugin add expert-council@expert-council-router --json
492
+ codex plugin list --json
493
+ ```
494
+
495
+ `marketplace add` is needed only once for this release. If the marketplace name is already registered from an older or local source, remove that source first or follow the upgrade procedure below. `plugin list --json` should show `expert-council` as installed from `expert-council-router`.
496
+
497
+ Codex Desktop on Windows includes the CLI, but it may not be on `PATH`. In PowerShell, resolve the running Desktop binary and use it for the same remote installation:
498
+
499
+ ```powershell
500
+ $ecCodex = (Get-Command codex.exe -ErrorAction SilentlyContinue).Source
501
+ if (-not $ecCodex) {
502
+ $ecCodex = Get-Process codex -ErrorAction SilentlyContinue |
503
+ Where-Object Path |
504
+ Select-Object -First 1 -ExpandProperty Path
505
+ }
506
+ if (-not $ecCodex) {
507
+ $ecCodex = Get-ChildItem (Join-Path $env:LOCALAPPDATA "OpenAI/Codex/bin") `
508
+ -Filter codex.exe -File -Recurse -ErrorAction SilentlyContinue |
509
+ Sort-Object LastWriteTime -Descending |
510
+ Select-Object -First 1 -ExpandProperty FullName
511
+ }
512
+ if (-not $ecCodex) { throw "Codex Desktop CLI was not found." }
513
+
514
+ & $ecCodex plugin marketplace add Labiey/expert-council-router --ref v0.5.1 --json
515
+ & $ecCodex plugin marketplace list --json
516
+ & $ecCodex plugin list --marketplace expert-council-router --available --json
517
+ & $ecCodex plugin add "expert-council@expert-council-router" --json
518
+ & $ecCodex plugin list --json
519
+ ```
520
+
521
+ Fully quit Codex Desktop, wait for its backend process to exit, reopen it, and start a new task. Merely opening another task is not a reliable MCP reload boundary in every Desktop build.
522
+
523
+ For local plugin development, clone the repository, run `npm ci && npm run build`, and pass its absolute root to `codex plugin marketplace add` instead of the GitHub repository name. The pinned remote release is recommended for normal use.
489
524
 
490
525
  A correct load exposes the `expert-council` Skill and all nine `expert_*` MCP tools. If the Skill is present but the tools are absent, treat the installation as failed: restart or reinstall the plugin instead of launching `dist/server.mjs` manually or sending hand-written JSON-RPC.
491
526
 
527
+ To verify the installed workflow, use a new Codex task and ask:
528
+
529
+ ```text
530
+ Use Expert Council to inspect the currently available Pi models, providers, billing classification, and model-assessment status. Return only a compact summary; do not build a council or delegate experts.
531
+ ```
532
+
533
+ The task should invoke `expert_inspect`. It should not ask for hook trust, manually launch the MCP server, or treat the plugin cache as the project workspace.
534
+
535
+ ### Upgrade
536
+
537
+ A marketplace pinned with `--ref` intentionally stays on that release. To upgrade, remove the installed plugin and old marketplace registration, then add the new tag and reinstall:
538
+
539
+ ```bash
540
+ codex plugin remove expert-council@expert-council-router --json
541
+ codex plugin marketplace remove expert-council-router --json
542
+ codex plugin marketplace add Labiey/expert-council-router --ref vX.Y.Z --json
543
+ codex plugin add expert-council@expert-council-router --json
544
+ ```
545
+
546
+ Replace `vX.Y.Z` with the intended release. Users who deliberately track the default branch can omit `--ref` and later run `codex plugin marketplace upgrade expert-council-router --json`, but pinned tags are safer for normal use. After reinstalling, fully restart Codex Desktop and test in a new task. Avoid installing multiple copies that all declare the `expert_council` MCP server.
547
+
492
548
  ### Behavior highlights
493
549
 
494
550
  - The bundled `.mcp.json` raises the host tool-call ceiling to 3660 seconds so a single bounded `expert_wait` can block until completion; the Skill still requires explicit per-operation deadlines rather than treating that ceiling as a default budget.
@@ -497,7 +553,16 @@ A correct load exposes the `expert-council` Skill and all nine `expert_*` MCP to
497
553
 
498
554
  ### Removal
499
555
 
500
- Remove the plugin from Codex's plugin settings, then fully quit Codex Desktop before starting new tasks.
556
+ Remove the plugin and its marketplace registration:
557
+
558
+ ```bash
559
+ codex plugin remove expert-council@expert-council-router --json
560
+ codex plugin marketplace remove expert-council-router --json
561
+ codex plugin list --json
562
+ codex plugin marketplace list --json
563
+ ```
564
+
565
+ On Windows, replace `codex` with `& $ecCodex` when using the PowerShell variable above. Fully quit Codex Desktop before starting new tasks.
501
566
 
502
567
  ## Testing
503
568
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expert-council/pi-package",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Native Pi package exposing Expert Council tools and host guidance",
5
5
  "type": "module",
6
6
  "main": "./dist/extension.js",
@@ -17,8 +17,8 @@
17
17
  "skills": ["./skills"]
18
18
  },
19
19
  "dependencies": {
20
- "@expert-council/core": "0.5.0",
21
- "@expert-council/pi-runtime": "0.5.0"
20
+ "@expert-council/core": "0.5.1",
21
+ "@expert-council/pi-runtime": "0.5.1"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "@earendil-works/pi-coding-agent": ">=0.84.0 <1",