pi-usereq 0.48.0 → 0.49.0
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 +7 -0
- package/README.md +1 -1
- package/package.json +1 -1
- package/pi-usereq/docs/REFERENCES.md +2 -2
- package/pi-usereq/docs/REQUIREMENTS.md +3 -1
- package/src/core/prompts.ts +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.49.0](https://github.com/Ogekuri/PI-useReq/compare/v0.48.0..v0.49.0) - 2026-07-13
|
|
4
|
+
### 🚜 Changes
|
|
5
|
+
- Reorder command summary: Configuration before User's Request [useReq] *(prompts)*
|
|
6
|
+
- Move the User's Request line after the Configuration block in the bundled prompt-backed command invocation summary so sections render as Command, Configuration, then User's Request, each separated by one blank line. Add REQ-353 and TST-131, update renderPromptCommandSummary in src/core/prompts.ts, and regenerate REFERENCES.md.
|
|
7
|
+
|
|
3
8
|
## [0.48.0](https://github.com/Ogekuri/PI-useReq/compare/v0.47.0..v0.48.0) - 2026-07-13
|
|
4
9
|
### 🐛 Bug Fixes
|
|
5
10
|
- approve scripts at correct install root [useReq] *(install-static-checkers)*
|
|
@@ -650,6 +655,7 @@
|
|
|
650
655
|
- \[0.46.0\]: https://github.com/Ogekuri/PI-useReq/releases/tag/v0.46.0
|
|
651
656
|
- \[0.47.0\]: https://github.com/Ogekuri/PI-useReq/releases/tag/v0.47.0
|
|
652
657
|
- \[0.48.0\]: https://github.com/Ogekuri/PI-useReq/releases/tag/v0.48.0
|
|
658
|
+
- \[0.49.0\]: https://github.com/Ogekuri/PI-useReq/releases/tag/v0.49.0
|
|
653
659
|
|
|
654
660
|
[0.1.0]: https://github.com/Ogekuri/PI-useReq/releases/tag/v0.1.0
|
|
655
661
|
[0.2.0]: https://github.com/Ogekuri/PI-useReq/compare/v0.1.0..v0.2.0
|
|
@@ -697,3 +703,4 @@
|
|
|
697
703
|
[0.46.0]: https://github.com/Ogekuri/PI-useReq/compare/v0.45.0..v0.46.0
|
|
698
704
|
[0.47.0]: https://github.com/Ogekuri/PI-useReq/compare/v0.46.0..v0.47.0
|
|
699
705
|
[0.48.0]: https://github.com/Ogekuri/PI-useReq/compare/v0.47.0..v0.48.0
|
|
706
|
+
[0.49.0]: https://github.com/Ogekuri/PI-useReq/compare/v0.48.0..v0.49.0
|
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -3444,12 +3444,12 @@ import { readBundledInstruction, readBundledPrompt } from "./resources.js";
|
|
|
3444
3444
|
|
|
3445
3445
|
### fn `export function renderPromptCommandSummary(` (L385-425)
|
|
3446
3446
|
- @brief Builds the on-screen command invocation summary for one bundled prompt-backed `req-<prompt>` command.
|
|
3447
|
-
- @details Renders the command name without the `req-` prefix in uppercase, the user request arguments, and the active configuration fields (`docs-dir`, `src-dir`, `tests-dir`, enabled context files, `AUTO_GIT_COMMIT`, effective `GIT_WORKTREE_ENABLED`, `GIT_WORKTREE_PREFIX`, enabled static-check languages, and `enabled-tools`) so the TUI shows only a compact summary while the full rendered prompt is delivered hidden to the LLM agent. Static-check languages are emitted in canonical `DEFAULT_STATIC_CHECK_LANGUAGES` order; enabled tools are emitted in documented menu order via `comparePiUsereqStartupToolNames`. The `context files`, `static code checks`, and `enabled tools` fields render the literal `none` placeholder whenever their respective enabled-item list is empty so the summary never shows a blank value. Runtime is O(l + t log t) where l is language count and t is enabled-tool count. No external state is mutated.
|
|
3447
|
+
- @details Renders the command name without the `req-` prefix in uppercase, the user request arguments, and the active configuration fields (`docs-dir`, `src-dir`, `tests-dir`, enabled context files, `AUTO_GIT_COMMIT`, effective `GIT_WORKTREE_ENABLED`, `GIT_WORKTREE_PREFIX`, enabled static-check languages, and `enabled-tools`) so the TUI shows only a compact summary while the full rendered prompt is delivered hidden to the LLM agent. Static-check languages are emitted in canonical `DEFAULT_STATIC_CHECK_LANGUAGES` order; enabled tools are emitted in documented menu order via `comparePiUsereqStartupToolNames`. The `context files`, `static code checks`, and `enabled tools` fields render the literal `none` placeholder whenever their respective enabled-item list is empty so the summary never shows a blank value. Sections are emitted in the order `Command:`, `Configuration:` with its bullet list, then `User's Request:`, each separated by one blank line. Runtime is O(l + t log t) where l is language count and t is enabled-tool count. No external state is mutated.
|
|
3448
3448
|
- @param[in] promptName {string} Bundled prompt name without the `req-` prefix.
|
|
3449
3449
|
- @param[in] args {string} User request arguments passed to the slash command.
|
|
3450
3450
|
- @param[in] config {UseReqConfig} Effective project configuration supplying directory, git, static-check, and tool fields.
|
|
3451
3451
|
- @return {string} Multi-line command invocation summary text.
|
|
3452
|
-
- @satisfies REQ-335, REQ-336, REQ-337, REQ-338
|
|
3452
|
+
- @satisfies REQ-335, REQ-336, REQ-337, REQ-338, REQ-353
|
|
3453
3453
|
|
|
3454
3454
|
## Symbol Index
|
|
3455
3455
|
|Symbol|Kind|Vis|Lines|Sig|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: "PI-useReq Requirements"
|
|
3
3
|
description: Software requirements specification
|
|
4
|
-
version: "0.0.
|
|
4
|
+
version: "0.0.78"
|
|
5
5
|
date: "2026-07-13"
|
|
6
6
|
author: "OpenAI Codex"
|
|
7
7
|
scope:
|
|
@@ -168,6 +168,7 @@ PI-useReq is a TypeScript pi extension plus companion Node CLI and standalone ex
|
|
|
168
168
|
- **REQ-336**: MUST render the command invocation summary with the command name without the `req-` prefix in uppercase and the user request arguments.
|
|
169
169
|
- **REQ-337**: MUST include `docs-dir`, `src-dir`, `tests-dir`, enabled context files, `AUTO_GIT_COMMIT`, effective `GIT_WORKTREE_ENABLED`, `GIT_WORKTREE_PREFIX`, enabled static-check languages, and `enabled-tools` in the command invocation summary.
|
|
170
170
|
- **REQ-338**: MUST render `none` for the command invocation summary `context files`, `static code checks`, and `enabled tools` fields whenever their respective enabled-item list is empty.
|
|
171
|
+
- **REQ-353**: MUST render the command invocation summary sections in the order `Command:`, `Configuration:` with its bullet list, then `User's Request:`, separated by one blank line between consecutive sections.
|
|
171
172
|
- **REQ-008**: MUST provide a `Language static code checkers` submenu that adds, views, confirms-before-removes, and resets global Command checker entries, plus toggles local per-language enablement.
|
|
172
173
|
- **REQ-160**: MUST hardcode `Command` as the only user-configurable static-check module and omit module-selection UI from static-check configuration menus.
|
|
173
174
|
- **REQ-161**: MUST hide `Dummy` from user-configurable static-check menus while preserving existing-config parsing and debug-driver support for `Dummy` entries.
|
|
@@ -543,6 +544,7 @@ PI-useReq is a TypeScript pi extension plus companion Node CLI and standalone ex
|
|
|
543
544
|
- **TST-119**: MUST verify `%%CONTEXT_FILES%%` replacement emits one section per enabled existing file in the documented order and omits disabled or missing files.
|
|
544
545
|
- **TST-120**: MUST verify `%%CONTEXT_FILES%%` sections use the file-name heading, the pre-substituted HTML file reference, and four-backtick `markdown` fences around raw content.
|
|
545
546
|
- **TST-122**: MUST verify the command invocation summary renders `none` for `context files`, `static code checks`, and `enabled tools` when no items are enabled in each respective category.
|
|
547
|
+
- **TST-131**: MUST verify the command invocation summary renders sections in the order `Command:`, `Configuration:`, then `User's Request:`, with one blank line between consecutive sections.
|
|
546
548
|
- **TST-123**: MUST verify `resolveCheckerExecutable` probes bundled `node_modules/.bin` paths before `PATH` scan.
|
|
547
549
|
- **TST-124**: MUST verify `scripts/install-static-checkers.ts` always returns exit code `0` regardless of probe or install outcomes.
|
|
548
550
|
- **TST-125**: MUST verify `session_start` emits one warning notification for missing enabled checkers without aborting or transitioning workflow state.
|
package/src/core/prompts.ts
CHANGED
|
@@ -375,12 +375,12 @@ export const PROMPT_COMMAND_SUMMARY_CUSTOM_TYPE = "pi-usereq-prompt-command";
|
|
|
375
375
|
|
|
376
376
|
/**
|
|
377
377
|
* @brief Builds the on-screen command invocation summary for one bundled prompt-backed `req-<prompt>` command.
|
|
378
|
-
* @details Renders the command name without the `req-` prefix in uppercase, the user request arguments, and the active configuration fields (`docs-dir`, `src-dir`, `tests-dir`, enabled context files, `AUTO_GIT_COMMIT`, effective `GIT_WORKTREE_ENABLED`, `GIT_WORKTREE_PREFIX`, enabled static-check languages, and `enabled-tools`) so the TUI shows only a compact summary while the full rendered prompt is delivered hidden to the LLM agent. Static-check languages are emitted in canonical `DEFAULT_STATIC_CHECK_LANGUAGES` order; enabled tools are emitted in documented menu order via `comparePiUsereqStartupToolNames`. The `context files`, `static code checks`, and `enabled tools` fields render the literal `none` placeholder whenever their respective enabled-item list is empty so the summary never shows a blank value. Runtime is O(l + t log t) where l is language count and t is enabled-tool count. No external state is mutated.
|
|
378
|
+
* @details Renders the command name without the `req-` prefix in uppercase, the user request arguments, and the active configuration fields (`docs-dir`, `src-dir`, `tests-dir`, enabled context files, `AUTO_GIT_COMMIT`, effective `GIT_WORKTREE_ENABLED`, `GIT_WORKTREE_PREFIX`, enabled static-check languages, and `enabled-tools`) so the TUI shows only a compact summary while the full rendered prompt is delivered hidden to the LLM agent. Static-check languages are emitted in canonical `DEFAULT_STATIC_CHECK_LANGUAGES` order; enabled tools are emitted in documented menu order via `comparePiUsereqStartupToolNames`. The `context files`, `static code checks`, and `enabled tools` fields render the literal `none` placeholder whenever their respective enabled-item list is empty so the summary never shows a blank value. Sections are emitted in the order `Command:`, `Configuration:` with its bullet list, then `User's Request:`, each separated by one blank line. Runtime is O(l + t log t) where l is language count and t is enabled-tool count. No external state is mutated.
|
|
379
379
|
* @param[in] promptName {string} Bundled prompt name without the `req-` prefix.
|
|
380
380
|
* @param[in] args {string} User request arguments passed to the slash command.
|
|
381
381
|
* @param[in] config {UseReqConfig} Effective project configuration supplying directory, git, static-check, and tool fields.
|
|
382
382
|
* @return {string} Multi-line command invocation summary text.
|
|
383
|
-
* @satisfies REQ-335, REQ-336, REQ-337, REQ-338
|
|
383
|
+
* @satisfies REQ-335, REQ-336, REQ-337, REQ-338, REQ-353
|
|
384
384
|
*/
|
|
385
385
|
export function renderPromptCommandSummary(
|
|
386
386
|
promptName: string,
|
|
@@ -408,8 +408,6 @@ export function renderPromptCommandSummary(
|
|
|
408
408
|
const lines: string[] = [
|
|
409
409
|
`Command: ${promptName.toUpperCase()}`,
|
|
410
410
|
"",
|
|
411
|
-
`User's Request: ${args}`,
|
|
412
|
-
"",
|
|
413
411
|
"Configuration:",
|
|
414
412
|
`- document dir: ${config["docs-dir"]}`,
|
|
415
413
|
`- source-code dirs: ${config["src-dir"].join(", ")}`,
|
|
@@ -420,6 +418,8 @@ export function renderPromptCommandSummary(
|
|
|
420
418
|
`- worktree prefix: ${config.GIT_WORKTREE_PREFIX}`,
|
|
421
419
|
`- static code checks: ${enabledLanguages}`,
|
|
422
420
|
`- enabled tools: ${enabledTools}`,
|
|
421
|
+
"",
|
|
422
|
+
`User's Request: ${args}`,
|
|
423
423
|
];
|
|
424
424
|
return lines.join("\n");
|
|
425
425
|
}
|