pi-usereq 0.4.0 → 0.6.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/.gitignore +3 -0
- package/CHANGELOG.md +41 -0
- package/README.md +1 -1
- package/package.json +1 -1
- package/{req → pi-usereq}/docs/REFERENCES.md +499 -491
- package/{req → pi-usereq}/docs/REQUIREMENTS.md +84 -62
- package/{req → pi-usereq}/docs/WORKFLOW.md +87 -102
- package/src/core/agent-tool-json.ts +42 -193
- package/src/core/compress-payload.ts +7 -15
- package/src/core/config.ts +39 -12
- package/src/core/extension-status.ts +94 -58
- package/src/core/find-payload.ts +21 -44
- package/src/core/pi-notify.ts +198 -11
- package/src/core/reference-payload.ts +6 -14
- package/src/core/runtime-project-paths.ts +3 -32
- package/src/core/settings-menu.ts +9 -4
- package/src/core/static-check.ts +35 -171
- package/src/core/token-counter.ts +3 -121
- package/src/index.ts +339 -180
- package/tests/attended-results-scenarios.ts +3 -13
- package/tests/cli-command-option-parity.test.ts +21 -12
- package/tests/debug-extension-harness.test.ts +20 -22
- package/tests/extension-registration.test.ts +394 -157
- package/tests/oracle-project.test.ts +8 -3
- package/tests/oracle-standalone.test.ts +7 -13
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_c.c.json +0 -5
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_cpp.cpp.json +0 -5
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_csharp.cs.json +0 -5
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_elixir.ex.json +0 -5
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_go.go.json +0 -5
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_haskell.hs.json +0 -5
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_java.java.json +0 -5
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_javascript.js.json +0 -5
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_kotlin.kt.json +0 -5
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_lua.lua.json +0 -5
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_perl.pl.json +0 -5
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_php.php.json +0 -5
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_python.py.json +0 -5
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_ruby.rb.json +0 -5
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_rust.rs.json +0 -5
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_scala.scala.json +0 -5
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_shell.sh.json +0 -5
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_swift.swift.json +0 -5
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_typescript.ts.json +0 -5
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_zig.zig.json +0 -5
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_c.c.json +0 -5
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_cpp.cpp.json +0 -5
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_csharp.cs.json +0 -5
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_elixir.ex.json +0 -5
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_go.go.json +0 -5
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_haskell.hs.json +0 -5
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_java.java.json +0 -5
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_javascript.js.json +0 -5
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_kotlin.kt.json +0 -5
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_lua.lua.json +0 -5
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_perl.pl.json +0 -5
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_php.php.json +0 -5
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_python.py.json +0 -5
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_ruby.rb.json +0 -5
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_rust.rs.json +0 -5
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_scala.scala.json +0 -5
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_shell.sh.json +0 -5
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_swift.swift.json +0 -5
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_typescript.ts.json +0 -5
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_zig.zig.json +0 -5
|
@@ -207,23 +207,13 @@
|
|
|
207
207
|
- `formatResult(...)`: render compressed output [`src/core/compress.ts`]
|
|
208
208
|
- `formatAvailableTags(...)`: render supported tag index for failure paths [`src/core/find-constructs.ts`]
|
|
209
209
|
- `runStaticCheck(...)`: branch `--test-static-check`; invoke static-check test driver [`src/core/static-check.ts`]
|
|
210
|
-
- `StaticCheckBase.run(...)`: iterate resolved files for dummy driver [`src/core/static-check.ts`]
|
|
210
|
+
- `StaticCheckBase.run(...)`: iterate resolved files for debug dummy driver [`src/core/static-check.ts`]
|
|
211
211
|
- `StaticCheckBase.checkFile(...)`: emit success without external checker [`src/core/static-check.ts`]
|
|
212
212
|
- `StaticCheckBase.headerLine(...)`: format checker header [`src/core/static-check.ts`]
|
|
213
213
|
- `StaticCheckBase.emitLine(...)`: write checker output [`src/core/static-check.ts`]
|
|
214
|
-
- `
|
|
215
|
-
- `
|
|
216
|
-
- `
|
|
217
|
-
- `findExecutable(...)`: resolve executable on `PATH` [`src/core/static-check.ts`]
|
|
218
|
-
- `StaticCheckBase.headerLine(...)`: format checker header [`src/core/static-check.ts`]
|
|
219
|
-
- `StaticCheckBase.emitLine(...)`: write checker output [`src/core/static-check.ts`]
|
|
220
|
-
- `StaticCheckRuff.run(...)`: iterate resolved files for ruff path [`src/core/static-check.ts`]
|
|
221
|
-
- `StaticCheckRuff.checkFile(...)`: run ruff-based validation [`src/core/static-check.ts`]
|
|
222
|
-
- `detectPythonExecutable(...)`: resolve Python interpreter [`src/core/static-check.ts`]
|
|
223
|
-
- `findExecutable(...)`: resolve executable on `PATH` [`src/core/static-check.ts`]
|
|
224
|
-
- `StaticCheckBase.headerLine(...)`: format checker header [`src/core/static-check.ts`]
|
|
225
|
-
- `StaticCheckBase.emitLine(...)`: write checker output [`src/core/static-check.ts`]
|
|
226
|
-
- `StaticCheckCommand.run(...)`: iterate resolved files for generic command path [`src/core/static-check.ts`]
|
|
214
|
+
- `StaticCheckCommand.run(...)`: iterate resolved files for external command path [`src/core/static-check.ts`]
|
|
215
|
+
- `findExecutable(...)`: resolve executable on `PATH` or explicit path [`src/core/static-check.ts`]
|
|
216
|
+
- `isExecutableFile(...)`: verify executable access bits [`src/core/static-check.ts`]
|
|
227
217
|
- `StaticCheckCommand.checkFile(...)`: run external executable against one file [`src/core/static-check.ts`]
|
|
228
218
|
- `StaticCheckBase.headerLine(...)`: format checker header [`src/core/static-check.ts`]
|
|
229
219
|
- `StaticCheckBase.emitLine(...)`: write checker output [`src/core/static-check.ts`]
|
|
@@ -234,24 +224,14 @@
|
|
|
234
224
|
- `getDefaultConfig(...)`: build default config [`src/core/config.ts`]
|
|
235
225
|
- `normalizeEnabledPiUsereqTools(...)`: canonicalize startup tools [`src/core/pi-usereq-tools.ts`]
|
|
236
226
|
- `dispatchStaticCheckForFile(...)`: instantiate checker by configured module [`src/core/static-check.ts`]
|
|
237
|
-
- `
|
|
238
|
-
- `StaticCheckBase.run(...)`: execute dummy checker [`src/core/static-check.ts`]
|
|
227
|
+
- `formatDispatchStaticCheckModules(...)`: render valid persisted modules for unknown-module failures [`src/core/static-check.ts`]
|
|
228
|
+
- `StaticCheckBase.run(...)`: execute debug dummy checker [`src/core/static-check.ts`]
|
|
239
229
|
- `StaticCheckBase.checkFile(...)`: emit success without external checker [`src/core/static-check.ts`]
|
|
240
230
|
- `StaticCheckBase.headerLine(...)`: format checker header [`src/core/static-check.ts`]
|
|
241
231
|
- `StaticCheckBase.emitLine(...)`: write checker output [`src/core/static-check.ts`]
|
|
242
|
-
- `
|
|
243
|
-
- `
|
|
244
|
-
- `
|
|
245
|
-
- `findExecutable(...)`: resolve executable on `PATH` [`src/core/static-check.ts`]
|
|
246
|
-
- `StaticCheckBase.headerLine(...)`: format checker header [`src/core/static-check.ts`]
|
|
247
|
-
- `StaticCheckBase.emitLine(...)`: write checker output [`src/core/static-check.ts`]
|
|
248
|
-
- `StaticCheckRuff.run(...)`: execute ruff checker [`src/core/static-check.ts`]
|
|
249
|
-
- `StaticCheckRuff.checkFile(...)`: run ruff-based validation [`src/core/static-check.ts`]
|
|
250
|
-
- `detectPythonExecutable(...)`: resolve Python interpreter [`src/core/static-check.ts`]
|
|
251
|
-
- `findExecutable(...)`: resolve executable on `PATH` [`src/core/static-check.ts`]
|
|
252
|
-
- `StaticCheckBase.headerLine(...)`: format checker header [`src/core/static-check.ts`]
|
|
253
|
-
- `StaticCheckBase.emitLine(...)`: write checker output [`src/core/static-check.ts`]
|
|
254
|
-
- `StaticCheckCommand.run(...)`: execute generic command checker [`src/core/static-check.ts`]
|
|
232
|
+
- `StaticCheckCommand.run(...)`: execute external command checker [`src/core/static-check.ts`]
|
|
233
|
+
- `findExecutable(...)`: resolve executable on `PATH` or explicit path [`src/core/static-check.ts`]
|
|
234
|
+
- `isExecutableFile(...)`: verify executable access bits [`src/core/static-check.ts`]
|
|
255
235
|
- `StaticCheckCommand.checkFile(...)`: run external executable against one file [`src/core/static-check.ts`]
|
|
256
236
|
- `StaticCheckBase.headerLine(...)`: format checker header [`src/core/static-check.ts`]
|
|
257
237
|
- `StaticCheckBase.emitLine(...)`: write checker output [`src/core/static-check.ts`]
|
|
@@ -388,24 +368,14 @@
|
|
|
388
368
|
- `getDefaultConfig(...)`: build default config [`src/core/config.ts`]
|
|
389
369
|
- `normalizeEnabledPiUsereqTools(...)`: canonicalize startup tools [`src/core/pi-usereq-tools.ts`]
|
|
390
370
|
- `dispatchStaticCheckForFile(...)`: instantiate checker by configured module [`src/core/static-check.ts`]
|
|
391
|
-
- `
|
|
392
|
-
- `StaticCheckBase.run(...)`: execute dummy checker [`src/core/static-check.ts`]
|
|
371
|
+
- `formatDispatchStaticCheckModules(...)`: render valid persisted modules for unknown-module failures [`src/core/static-check.ts`]
|
|
372
|
+
- `StaticCheckBase.run(...)`: execute debug dummy checker [`src/core/static-check.ts`]
|
|
393
373
|
- `StaticCheckBase.checkFile(...)`: emit success without external checker [`src/core/static-check.ts`]
|
|
394
374
|
- `StaticCheckBase.headerLine(...)`: format checker header [`src/core/static-check.ts`]
|
|
395
375
|
- `StaticCheckBase.emitLine(...)`: write checker output [`src/core/static-check.ts`]
|
|
396
|
-
- `
|
|
397
|
-
- `
|
|
398
|
-
- `
|
|
399
|
-
- `findExecutable(...)`: resolve executable on `PATH` [`src/core/static-check.ts`]
|
|
400
|
-
- `StaticCheckBase.headerLine(...)`: format checker header [`src/core/static-check.ts`]
|
|
401
|
-
- `StaticCheckBase.emitLine(...)`: write checker output [`src/core/static-check.ts`]
|
|
402
|
-
- `StaticCheckRuff.run(...)`: execute ruff checker [`src/core/static-check.ts`]
|
|
403
|
-
- `StaticCheckRuff.checkFile(...)`: run ruff-based validation [`src/core/static-check.ts`]
|
|
404
|
-
- `detectPythonExecutable(...)`: resolve Python interpreter [`src/core/static-check.ts`]
|
|
405
|
-
- `findExecutable(...)`: resolve executable on `PATH` [`src/core/static-check.ts`]
|
|
406
|
-
- `StaticCheckBase.headerLine(...)`: format checker header [`src/core/static-check.ts`]
|
|
407
|
-
- `StaticCheckBase.emitLine(...)`: write checker output [`src/core/static-check.ts`]
|
|
408
|
-
- `StaticCheckCommand.run(...)`: execute generic command checker [`src/core/static-check.ts`]
|
|
376
|
+
- `StaticCheckCommand.run(...)`: execute external command checker [`src/core/static-check.ts`]
|
|
377
|
+
- `findExecutable(...)`: resolve executable on `PATH` or explicit path [`src/core/static-check.ts`]
|
|
378
|
+
- `isExecutableFile(...)`: verify executable access bits [`src/core/static-check.ts`]
|
|
409
379
|
- `StaticCheckCommand.checkFile(...)`: run external executable against one file [`src/core/static-check.ts`]
|
|
410
380
|
- `StaticCheckBase.headerLine(...)`: format checker header [`src/core/static-check.ts`]
|
|
411
381
|
- `StaticCheckBase.emitLine(...)`: write checker output [`src/core/static-check.ts`]
|
|
@@ -477,7 +447,7 @@
|
|
|
477
447
|
- External Boundaries:
|
|
478
448
|
- Node process APIs for argv, cwd, environment, stdout, stderr, and exit code.
|
|
479
449
|
- Filesystem access for config, docs discovery, source reads, and bundled resources.
|
|
480
|
-
- Git, bash,
|
|
450
|
+
- Git, bash, and arbitrary configured checker subprocesses via child-process execution.
|
|
481
451
|
|
|
482
452
|
### `PROC:req-debug`
|
|
483
453
|
- Entrypoints:
|
|
@@ -587,19 +557,21 @@
|
|
|
587
557
|
- `RecordingExtensionAPI.setActiveTools(...)`: replace active-tool set with runtime-visible names [`scripts/lib/recording-extension-api.ts`]
|
|
588
558
|
- `RecordingExtensionAPI.getAllTools(...)`: expose supported builtin plus extension tool inventory [`scripts/lib/recording-extension-api.ts`]
|
|
589
559
|
- `setPiUsereqStatusConfig(...)`: cache docs/tests/src and pi-notify values for later status renders [`src/core/extension-status.ts`]
|
|
590
|
-
- `updateExtensionStatus(...)`: refresh stored context usage, timers, and rendered status text [`src/core/extension-status.ts`]
|
|
560
|
+
- `updateExtensionStatus(...)`: refresh stored context usage, elapsed timers, cumulative runtime, and rendered status text [`src/core/extension-status.ts`]
|
|
591
561
|
- `refreshContextUsage(...)`: sync the latest context-usage snapshot [`src/core/extension-status.ts`]
|
|
592
562
|
- `RecordingCommandContext.getContextUsage(...)`: return the offline context-usage placeholder [`scripts/lib/recording-extension-api.ts`]
|
|
593
|
-
- `syncPiUsereqStatusTicker(...)`: start or stop the live elapsed
|
|
594
|
-
- `renderPiUsereqStatus(...)`: render the
|
|
563
|
+
- `syncPiUsereqStatusTicker(...)`: start or stop the live elapsed ticker [`src/core/extension-status.ts`]
|
|
564
|
+
- `renderPiUsereqStatus(...)`: render the base/context/elapsed/beep/sound footer with CLI-theme token overlays [`src/core/extension-status.ts`]
|
|
595
565
|
- `createStatusThemeAdapter(...)`: constrain status rendering to CLI-supported `accent`, `warning`, `dim`, and `error` theme tokens [`src/core/extension-status.ts`]
|
|
596
|
-
- `buildPiUsereqStatusText(...)`: compose the single-line footer payload with
|
|
566
|
+
- `buildPiUsereqStatusText(...)`: compose the single-line footer payload with consolidated elapsed semantics [`src/core/extension-status.ts`]
|
|
597
567
|
- `formatStatusField(...)`: render one colored text field [`src/core/extension-status.ts`]
|
|
598
568
|
- `formatRenderedStatusField(...)`: render one pre-styled field [`src/core/extension-status.ts`]
|
|
599
|
-
- `formatContextUsageBar(...)`: render the
|
|
600
|
-
- `resolveContextUsageOverlay(...)`: choose
|
|
569
|
+
- `formatContextUsageBar(...)`: render the 10-cell context bar or threshold-specific overlay [`src/core/extension-status.ts`]
|
|
570
|
+
- `resolveContextUsageOverlay(...)`: choose `◀ CLEAR ▶ ` or ` ◀ FULL ▶ ` overlay states with CLI-supported theme tokens [`src/core/extension-status.ts`]
|
|
601
571
|
- `formatContextUsageOverlay(...)`: paint the fixed-width overlay with preserved bar background [`src/core/extension-status.ts`]
|
|
602
|
-
- `
|
|
572
|
+
- `formatElapsedStatusValue(...)`: compose `⏱︎`, `⚑`, and `⌛︎` timer segments [`src/core/extension-status.ts`]
|
|
573
|
+
- `formatCompletedStatusDuration(...)`: render completed timers or the unset placeholder [`src/core/extension-status.ts`]
|
|
574
|
+
- `formatStatusDuration(...)`: render `M:SS` durations [`src/core/extension-status.ts`]
|
|
603
575
|
- `formatPiNotifyBeepStatus(...)`: serialize enabled beep flags for the footer [`src/core/pi-notify.ts`]
|
|
604
576
|
- `runPiNotifyEffects(...)`: dispatch configured terminal beeps and successful-run sound hooks on `agent_end` [`src/core/pi-notify.ts`]
|
|
605
577
|
- `classifyPiNotifyOutcome(...)`: map assistant stop reasons to `end`, `esc`, or `err` [`src/core/pi-notify.ts`]
|
|
@@ -627,19 +599,24 @@
|
|
|
627
599
|
- `deliverPromptCommand(...)`: dispatch prompt replay into the current recorded session [`src/index.ts`]
|
|
628
600
|
- External boundaries: `RecordingExtensionAPI.sendUserMessage(...)` records the delivered prompt payload.
|
|
629
601
|
- `configurePiUsereq(...)`: execute the interactive configuration menu [`src/index.ts`]
|
|
602
|
+
- `buildPiUsereqMenuChoices(...)`: serialize top-level settings actions plus the display-only config-path row [`src/index.ts`]
|
|
603
|
+
- `formatProjectConfigPathForMenu(...)`: format the current config path relative to the user home when possible [`src/index.ts`]
|
|
630
604
|
- `showPiUsereqSettingsMenu(...)`: render the shared settings-menu UI for top-level and submenu actions [`src/core/settings-menu.ts`]
|
|
631
605
|
- `formatPiUsereqSettingsMenuTitle(...)`: rebuild the menu title with active-theme semantics [`src/core/settings-menu.ts`]
|
|
632
606
|
- `buildPiUsereqSettingsListTheme(...)`: prefer shared CLI settings-list theming and fall back during offline replay [`src/core/settings-menu.ts`]
|
|
633
607
|
- `buildFallbackPiUsereqSettingsListTheme(...)`: mirror CLI settings-list token roles from the callback-local theme [`src/core/settings-menu.ts`]
|
|
608
|
+
- `buildSettingItems(...)`: map menu choices into settings-list rows and apply optional dim value tones [`src/core/settings-menu.ts`]
|
|
634
609
|
- `saveProjectConfig(...)`: persist menu updates on save-and-close [`src/index.ts`]
|
|
635
610
|
- `setPiUsereqStatusConfig(...)`: cache the saved config for footer rendering [`src/core/extension-status.ts`]
|
|
636
|
-
- `renderPiUsereqStatus(...)`: render the
|
|
611
|
+
- `renderPiUsereqStatus(...)`: render the base/context/elapsed/beep/sound footer after save-and-close with CLI-theme token overlays [`src/core/extension-status.ts`]
|
|
637
612
|
- `createStatusThemeAdapter(...)`: constrain status rendering to CLI-supported `accent`, `warning`, `dim`, and `error` theme tokens [`src/core/extension-status.ts`]
|
|
638
|
-
- `buildPiUsereqStatusText(...)`: compose the single-line footer payload with
|
|
613
|
+
- `buildPiUsereqStatusText(...)`: compose the single-line footer payload with consolidated elapsed semantics [`src/core/extension-status.ts`]
|
|
639
614
|
- `formatStatusField(...)`: render one colored text field [`src/core/extension-status.ts`]
|
|
640
615
|
- `formatRenderedStatusField(...)`: render one pre-styled field [`src/core/extension-status.ts`]
|
|
641
|
-
- `formatContextUsageBar(...)`: render the
|
|
642
|
-
- `
|
|
616
|
+
- `formatContextUsageBar(...)`: render the 10-cell context bar or threshold-specific overlay [`src/core/extension-status.ts`]
|
|
617
|
+
- `formatElapsedStatusValue(...)`: compose `⏱︎`, `⚑`, and `⌛︎` timer segments [`src/core/extension-status.ts`]
|
|
618
|
+
- `formatCompletedStatusDuration(...)`: render completed timers or the unset placeholder [`src/core/extension-status.ts`]
|
|
619
|
+
- `formatStatusDuration(...)`: render `M:SS` durations [`src/core/extension-status.ts`]
|
|
643
620
|
- `formatPiNotifyBeepStatus(...)`: serialize enabled beep flags for the footer [`src/core/pi-notify.ts`]
|
|
644
621
|
- `configureStaticCheckMenu(...)`: interactive static-check editor [`src/index.ts`]
|
|
645
622
|
- `configurePiUsereqToolsMenu(...)`: interactive active-tool editor [`src/index.ts`]
|
|
@@ -664,17 +641,16 @@
|
|
|
664
641
|
- `extractPrimaryHeadingText(...)`: extract the first markdown heading when present [`src/core/token-counter.ts`]
|
|
665
642
|
- `extractLeadingDoxygenFields(...)`: extract file-level Doxygen fields when present [`src/core/token-counter.ts`]
|
|
666
643
|
- `parseDoxygenComment(...)`: parse normalized Doxygen fields [`src/core/doxygen-parser.ts`]
|
|
667
|
-
- `orderPathsByMetric(...)`: derive stable counted-path orderings for guidance [`src/core/token-counter.ts`]
|
|
668
644
|
- `buildTokenToolExecuteResult(...)`: wrap token payloads into tool content and structured details [`src/index.ts`]
|
|
669
645
|
- `buildTokenToolExecutionStderr(...)`: serialize skipped and error observations into stderr text [`src/index.ts`]
|
|
670
646
|
- `buildStructuredToolExecuteResult(...)`: mirror the final JSON object into tool content and details [`src/core/agent-tool-json.ts`]
|
|
671
|
-
- `buildReferenceToolPayload(...)`: construct
|
|
647
|
+
- `buildReferenceToolPayload(...)`: construct token-optimized references JSON with repository structure, symbols, and Doxygen fields [`src/core/reference-payload.ts`]
|
|
672
648
|
- `canonicalizeReferencePath(...)`: normalize request and file paths against the project base [`src/core/reference-payload.ts`]
|
|
673
649
|
- `analyzeReferenceFile(...)`: analyze one processable file into structured imports, symbols, and comments [`src/core/reference-payload.ts`]
|
|
674
650
|
- `buildRepositoryTree(...)`: materialize the repository directory tree as structured JSON [`src/core/reference-payload.ts`]
|
|
675
651
|
- `buildReferenceToolExecuteResult(...)`: wrap references payloads into tool content and structured details [`src/index.ts`]
|
|
676
652
|
- `buildStructuredToolExecuteResult(...)`: mirror the final JSON object into tool content and details [`src/core/agent-tool-json.ts`]
|
|
677
|
-
- `buildCompressToolPayload(...)`: construct
|
|
653
|
+
- `buildCompressToolPayload(...)`: construct token-optimized compression JSON with structured line facts, symbols, and Doxygen fields [`src/core/compress-payload.ts`]
|
|
678
654
|
- `analyzeCompressFile(...)`: compress one requested file and attach symbol metadata when available [`src/core/compress-payload.ts`]
|
|
679
655
|
- `compressFileDetailed(...)`: compress one file into structured lines and rendered text [`src/core/compress.ts`]
|
|
680
656
|
- `analyzeCompressedFileSymbols(...)`: extract symbol and Doxygen records for compressed files [`src/core/compress-payload.ts`]
|
|
@@ -684,7 +660,7 @@
|
|
|
684
660
|
- `buildFindToolSchemaDescription(...)`: synthesize find parameter-schema descriptions [`src/index.ts`]
|
|
685
661
|
- `buildFindToolPromptGuidelines(...)`: synthesize agent-oriented find guidance strings [`src/index.ts`]
|
|
686
662
|
- `buildFindToolSupportedTagGuidelines(...)`: emit per-language supported-tag guidance lines [`src/index.ts`]
|
|
687
|
-
- `buildFindToolPayload(...)`: construct
|
|
663
|
+
- `buildFindToolPayload(...)`: construct token-optimized construct-search JSON with structured file statuses, matches, line facts, and Doxygen fields [`src/core/find-payload.ts`]
|
|
688
664
|
- `validateTagFilter(...)`: normalize requested construct tags [`src/core/find-payload.ts`]
|
|
689
665
|
- `validateRegexPattern(...)`: compile the construct-name regex [`src/core/find-payload.ts`]
|
|
690
666
|
- `analyzeFindFile(...)`: analyze one requested file into structured search status and match records [`src/core/find-payload.ts`]
|
|
@@ -695,20 +671,20 @@
|
|
|
695
671
|
- `buildStructuredToolExecuteResult(...)`: mirror the final JSON object into tool content and details [`src/core/agent-tool-json.ts`]
|
|
696
672
|
- `runGitPath(...)`: query the resolved git-path value [`src/core/tool-runner.ts`]
|
|
697
673
|
- `runGetBasePath(...)`: query the resolved base-path value [`src/core/tool-runner.ts`]
|
|
698
|
-
- `buildPathQueryToolPayload(...)`: structure path-query payloads for `git-path` and `get-base-path` [`src/core/agent-tool-json.ts`]
|
|
674
|
+
- `buildPathQueryToolPayload(...)`: structure token-optimized path-query payloads for `git-path` and `get-base-path` [`src/core/agent-tool-json.ts`]
|
|
699
675
|
- `runFilesStaticCheck(...)`: execute configured checkers for explicit-file requests [`src/core/tool-runner.ts`]
|
|
700
676
|
- `collectProjectStaticCheckSelection(...)`: derive project static-check file selections and fixture exclusions [`src/index.ts`]
|
|
701
677
|
- `runProjectStaticCheck(...)`: execute configured checkers for project source and test selections [`src/core/tool-runner.ts`]
|
|
702
|
-
- `buildStaticCheckToolPayload(...)`: structure static-check
|
|
678
|
+
- `buildStaticCheckToolPayload(...)`: structure token-optimized static-check summary, file-selection, and execution facts [`src/core/agent-tool-json.ts`]
|
|
703
679
|
- `runGitCheck(...)`: validate runtime repository cleanliness [`src/core/tool-runner.ts`]
|
|
704
|
-
- `buildGitCheckToolPayload(...)`: structure git-validation status and execution facts [`src/core/agent-tool-json.ts`]
|
|
705
|
-
- `buildDocsCheckToolPayload(...)`: structure canonical-doc presence and remediation facts [`src/core/agent-tool-json.ts`]
|
|
680
|
+
- `buildGitCheckToolPayload(...)`: structure token-optimized git-validation status and execution facts [`src/core/agent-tool-json.ts`]
|
|
681
|
+
- `buildDocsCheckToolPayload(...)`: structure token-optimized canonical-doc presence and remediation facts [`src/core/agent-tool-json.ts`]
|
|
706
682
|
- `runGitWtName(...)`: generate the standardized worktree name [`src/core/tool-runner.ts`]
|
|
707
|
-
- `buildWorktreeNameToolPayload(...)`: structure worktree-name generation facts [`src/core/agent-tool-json.ts`]
|
|
683
|
+
- `buildWorktreeNameToolPayload(...)`: structure token-optimized worktree-name generation facts [`src/core/agent-tool-json.ts`]
|
|
708
684
|
- `runGitWtCreate(...)`: create a dedicated worktree and branch [`src/core/tool-runner.ts`]
|
|
709
685
|
- `runGitWtDelete(...)`: delete a dedicated worktree and branch [`src/core/tool-runner.ts`]
|
|
710
|
-
- `buildWorktreeMutationToolPayload(...)`: structure worktree create
|
|
711
|
-
- `buildToolExecutionSection(...)`: normalize stdout, stderr, and exit-code metadata [`src/core/agent-tool-json.ts`]
|
|
686
|
+
- `buildWorktreeMutationToolPayload(...)`: structure token-optimized worktree create-delete facts [`src/core/agent-tool-json.ts`]
|
|
687
|
+
- `buildToolExecutionSection(...)`: normalize residual stdout, stderr, and exit-code metadata [`src/core/agent-tool-json.ts`]
|
|
712
688
|
- `normalizeToolFailure(...)`: convert `ReqError` failures into structured execution records [`src/core/agent-tool-json.ts`]
|
|
713
689
|
- `runSdkSmoke(...)`: replay offline `session_start`, probe the official SDK runtime, and compare inventories [`scripts/lib/sdk-smoke.ts`]
|
|
714
690
|
- `replaySessionStart(...)`: capture the offline `session_start` contract [`scripts/lib/extension-debug-harness.ts`]
|
|
@@ -754,7 +730,7 @@
|
|
|
754
730
|
- `ensureBundledResourcesAccessible(...)`: validate installation-owned bundled resources [`src/core/resources.ts`]
|
|
755
731
|
- `getBundledResourceRoot(...)`: resolve installation-owned resource root [`src/core/resources.ts`]
|
|
756
732
|
- `getInstallationPath(...)`: resolve the installed extension root from the executing module [`src/core/path-context.ts`]
|
|
757
|
-
- `registerPromptCommands(...)`: register one command per prompt name [`src/index.ts`]
|
|
733
|
+
- `registerPromptCommands(...)`: register one command per prompt name and cache prompt metadata for later successful-completion notifications [`src/index.ts`]
|
|
758
734
|
- `ensureBundledResourcesAccessible(...)`: validate installation-owned bundled resources before prompt render [`src/core/resources.ts`]
|
|
759
735
|
- `getBundledResourceRoot(...)`: resolve installation-owned resource root [`src/core/resources.ts`]
|
|
760
736
|
- `getInstallationPath(...)`: resolve the installed extension root from the executing module [`src/core/path-context.ts`]
|
|
@@ -786,6 +762,7 @@
|
|
|
786
762
|
- `buildPiDevConformanceBlock(...)`: resolve manifest-gated pi.dev review and API-compliance rules [`src/core/prompts.ts`]
|
|
787
763
|
- `adaptPromptForInternalTools(...)`: rewrite tool names for internal wrappers [`src/core/prompts.ts`]
|
|
788
764
|
- `deliverPromptCommand(...)`: dispatch the rendered prompt into the current active session [`src/index.ts`]
|
|
765
|
+
- `statusController.state.pendingPromptRequest`: cache the prompt command name and raw `%%ARGS%%` payload for the next successful completion [`src/core/extension-status.ts`]
|
|
789
766
|
- External boundaries: `pi.sendUserMessage(...)` delivers the rendered prompt payload.
|
|
790
767
|
- `registerAgentTools(...)`: register structured pi tools whose execute callbacks reuse internal runner families and agent-oriented payload builders [`src/index.ts`]
|
|
791
768
|
- `ensureBundledResourcesAccessible(...)`: validate installation-owned bundled resources for tool executes that need bundled assets [`src/core/resources.ts`]
|
|
@@ -802,16 +779,10 @@
|
|
|
802
779
|
- `runCapture(...)`: run git subprocess [`src/core/tool-runner.ts`]
|
|
803
780
|
- `resolveGitRoot(...)`: resolve repository root [`src/core/tool-runner.ts`]
|
|
804
781
|
- `runCapture(...)`: run git subprocess [`src/core/tool-runner.ts`]
|
|
805
|
-
- `buildSharedRuntimePathFacts(...)`: derive shared runtime path facts for path, git, docs, worktree, and static-check payloads [`src/index.ts`]
|
|
806
|
-
- `buildRuntimePathContext(...)`: derive installation, execution, base, config, docs, tests, source, and git paths [`src/core/path-context.ts`]
|
|
807
|
-
- `getInstallationPath(...)`: resolve the installed extension root from the executing module [`src/core/path-context.ts`]
|
|
808
|
-
- `getConfigPath(...)`: derive the `.pi-usereq/config.json` path [`src/core/path-context.ts`]
|
|
809
|
-
- `buildRuntimePathFacts(...)`: convert runtime paths into payload-facing path strings [`src/core/path-context.ts`]
|
|
810
|
-
- `formatRuntimePathForDisplay(...)`: serialize user-home-relative paths with environment variables [`src/core/path-context.ts`]
|
|
811
782
|
- `runGitPath(...)`: query the resolved git-path value [`src/core/tool-runner.ts`]
|
|
812
783
|
- `runGetBasePath(...)`: query the resolved base-path value [`src/core/tool-runner.ts`]
|
|
813
|
-
- `buildPathQueryToolPayload(...)`: structure path-query payloads for `git-path` and `get-base-path` [`src/core/agent-tool-json.ts`]
|
|
814
|
-
- `buildTokenToolPayload(...)`: construct
|
|
784
|
+
- `buildPathQueryToolPayload(...)`: structure token-optimized path-query payloads for `git-path` and `get-base-path` [`src/core/agent-tool-json.ts`]
|
|
785
|
+
- `buildTokenToolPayload(...)`: construct token-optimized token JSON with direct-access source facts and metrics [`src/core/token-counter.ts`]
|
|
815
786
|
- `probeRequestedPath(...)`: classify requested paths as readable files, missing inputs, or non-file inputs [`src/core/token-counter.ts`]
|
|
816
787
|
- `countFilesMetrics(...)`: read readable files and extract token, character, byte, line, heading, and optional Doxygen facts [`src/core/token-counter.ts`]
|
|
817
788
|
- `buildCountFileMetricsResult(...)`: assemble direct-access per-file metrics and metadata [`src/core/token-counter.ts`]
|
|
@@ -822,17 +793,16 @@
|
|
|
822
793
|
- `extractPrimaryHeadingText(...)`: extract the first markdown heading when present [`src/core/token-counter.ts`]
|
|
823
794
|
- `extractLeadingDoxygenFields(...)`: extract file-level Doxygen fields when present [`src/core/token-counter.ts`]
|
|
824
795
|
- `parseDoxygenComment(...)`: parse normalized Doxygen fields [`src/core/doxygen-parser.ts`]
|
|
825
|
-
- `orderPathsByMetric(...)`: derive stable counted-path orderings for guidance [`src/core/token-counter.ts`]
|
|
826
796
|
- `buildTokenToolExecuteResult(...)`: wrap token payloads into tool content and structured details [`src/index.ts`]
|
|
827
797
|
- `buildTokenToolExecutionStderr(...)`: serialize skipped and error observations into stderr text [`src/index.ts`]
|
|
828
798
|
- `buildStructuredToolExecuteResult(...)`: mirror the final JSON object into tool content and details [`src/core/agent-tool-json.ts`]
|
|
829
|
-
- `buildReferenceToolPayload(...)`: construct
|
|
799
|
+
- `buildReferenceToolPayload(...)`: construct token-optimized references JSON with repository structure, symbols, and Doxygen fields [`src/core/reference-payload.ts`]
|
|
830
800
|
- `canonicalizeReferencePath(...)`: normalize request and file paths against the project base [`src/core/reference-payload.ts`]
|
|
831
801
|
- `analyzeReferenceFile(...)`: analyze one processable file into structured imports, symbols, and comments [`src/core/reference-payload.ts`]
|
|
832
802
|
- `buildRepositoryTree(...)`: materialize the repository directory tree as structured JSON [`src/core/reference-payload.ts`]
|
|
833
803
|
- `buildReferenceToolExecuteResult(...)`: wrap references payloads into tool content and structured details [`src/index.ts`]
|
|
834
804
|
- `buildStructuredToolExecuteResult(...)`: mirror the final JSON object into tool content and details [`src/core/agent-tool-json.ts`]
|
|
835
|
-
- `buildCompressToolPayload(...)`: construct
|
|
805
|
+
- `buildCompressToolPayload(...)`: construct token-optimized compression JSON with structured line facts, symbols, and Doxygen fields [`src/core/compress-payload.ts`]
|
|
836
806
|
- `analyzeCompressFile(...)`: compress one requested file and attach symbol metadata when available [`src/core/compress-payload.ts`]
|
|
837
807
|
- `compressFileDetailed(...)`: compress one file into structured lines and rendered text [`src/core/compress.ts`]
|
|
838
808
|
- `analyzeCompressedFileSymbols(...)`: extract symbol and Doxygen records for compressed files [`src/core/compress-payload.ts`]
|
|
@@ -842,7 +812,7 @@
|
|
|
842
812
|
- `buildFindToolSchemaDescription(...)`: synthesize find parameter-schema descriptions [`src/index.ts`]
|
|
843
813
|
- `buildFindToolPromptGuidelines(...)`: synthesize agent-oriented find guidance strings [`src/index.ts`]
|
|
844
814
|
- `buildFindToolSupportedTagGuidelines(...)`: emit per-language supported-tag guidance lines [`src/index.ts`]
|
|
845
|
-
- `buildFindToolPayload(...)`: construct
|
|
815
|
+
- `buildFindToolPayload(...)`: construct token-optimized construct-search JSON with structured file statuses, matches, line facts, and Doxygen fields [`src/core/find-payload.ts`]
|
|
846
816
|
- `validateTagFilter(...)`: normalize requested construct tags [`src/core/find-payload.ts`]
|
|
847
817
|
- `validateRegexPattern(...)`: compile the construct-name regex [`src/core/find-payload.ts`]
|
|
848
818
|
- `analyzeFindFile(...)`: analyze one requested file into structured search status and match records [`src/core/find-payload.ts`]
|
|
@@ -854,16 +824,16 @@
|
|
|
854
824
|
- `runFilesStaticCheck(...)`: execute configured checkers for explicit-file requests [`src/core/tool-runner.ts`]
|
|
855
825
|
- `collectProjectStaticCheckSelection(...)`: derive project static-check file selections and fixture exclusions [`src/index.ts`]
|
|
856
826
|
- `runProjectStaticCheck(...)`: execute configured checkers for project source and test selections [`src/core/tool-runner.ts`]
|
|
857
|
-
- `buildStaticCheckToolPayload(...)`: structure static-check
|
|
827
|
+
- `buildStaticCheckToolPayload(...)`: structure token-optimized static-check summary, file-selection, and execution facts [`src/core/agent-tool-json.ts`]
|
|
858
828
|
- `runGitCheck(...)`: validate runtime repository cleanliness [`src/core/tool-runner.ts`]
|
|
859
|
-
- `buildGitCheckToolPayload(...)`: structure git-validation status and execution facts [`src/core/agent-tool-json.ts`]
|
|
860
|
-
- `buildDocsCheckToolPayload(...)`: structure canonical-doc presence and remediation facts [`src/core/agent-tool-json.ts`]
|
|
829
|
+
- `buildGitCheckToolPayload(...)`: structure token-optimized git-validation status and execution facts [`src/core/agent-tool-json.ts`]
|
|
830
|
+
- `buildDocsCheckToolPayload(...)`: structure token-optimized canonical-doc presence and remediation facts [`src/core/agent-tool-json.ts`]
|
|
861
831
|
- `runGitWtName(...)`: generate the standardized worktree name [`src/core/tool-runner.ts`]
|
|
862
|
-
- `buildWorktreeNameToolPayload(...)`: structure worktree-name generation facts [`src/core/agent-tool-json.ts`]
|
|
832
|
+
- `buildWorktreeNameToolPayload(...)`: structure token-optimized worktree-name generation facts [`src/core/agent-tool-json.ts`]
|
|
863
833
|
- `runGitWtCreate(...)`: create a dedicated worktree and branch [`src/core/tool-runner.ts`]
|
|
864
834
|
- `runGitWtDelete(...)`: delete a dedicated worktree and branch [`src/core/tool-runner.ts`]
|
|
865
|
-
- `buildWorktreeMutationToolPayload(...)`: structure worktree create
|
|
866
|
-
- `buildToolExecutionSection(...)`: normalize stdout, stderr, and exit-code metadata [`src/core/agent-tool-json.ts`]
|
|
835
|
+
- `buildWorktreeMutationToolPayload(...)`: structure token-optimized worktree create-delete facts [`src/core/agent-tool-json.ts`]
|
|
836
|
+
- `buildToolExecutionSection(...)`: normalize residual stdout, stderr, and exit-code metadata [`src/core/agent-tool-json.ts`]
|
|
867
837
|
- `normalizeToolFailure(...)`: convert `ReqError` failures into structured execution records [`src/core/agent-tool-json.ts`]
|
|
868
838
|
- `registerConfigCommands(...)`: register interactive configuration commands [`src/index.ts`]
|
|
869
839
|
- `configurePiUsereq(...)`: interactive configuration menu root [`src/index.ts`]
|
|
@@ -911,20 +881,23 @@
|
|
|
911
881
|
- `normalizeEnabledPiUsereqTools(...)`: canonicalize configurable active tools [`src/core/pi-usereq-tools.ts`]
|
|
912
882
|
- `getPiUsereqStartupTools(...)`: enumerate configurable tools from runtime inventory [`src/index.ts`]
|
|
913
883
|
- `setPiUsereqStatusConfig(...)`: cache docs/tests/src and pi-notify values for later status renders [`src/core/extension-status.ts`]
|
|
914
|
-
- `updateExtensionStatus(...)`: refresh stored context usage, timers, and rendered status text [`src/core/extension-status.ts`]
|
|
884
|
+
- `updateExtensionStatus(...)`: refresh stored context usage, elapsed timers, prompt-request state, cumulative runtime, and rendered status text [`src/core/extension-status.ts`]
|
|
915
885
|
- `refreshContextUsage(...)`: sync the latest context-usage snapshot [`src/core/extension-status.ts`]
|
|
916
|
-
- `syncPiUsereqStatusTicker(...)`: start or stop the live elapsed
|
|
917
|
-
- `renderPiUsereqStatus(...)`: render the
|
|
886
|
+
- `syncPiUsereqStatusTicker(...)`: start or stop the live elapsed ticker [`src/core/extension-status.ts`]
|
|
887
|
+
- `renderPiUsereqStatus(...)`: render the base/context/elapsed/beep/sound/pushover footer with CLI-theme token overlays [`src/core/extension-status.ts`]
|
|
918
888
|
- `createStatusThemeAdapter(...)`: constrain status rendering to CLI-supported `accent`, `warning`, `dim`, and `error` theme tokens [`src/core/extension-status.ts`]
|
|
919
|
-
- `buildPiUsereqStatusText(...)`: compose the single-line footer payload with
|
|
889
|
+
- `buildPiUsereqStatusText(...)`: compose the single-line footer payload with consolidated elapsed semantics plus the Pushover enable field [`src/core/extension-status.ts`]
|
|
920
890
|
- `formatStatusField(...)`: render one colored text field [`src/core/extension-status.ts`]
|
|
921
891
|
- `formatRenderedStatusField(...)`: render one pre-styled field [`src/core/extension-status.ts`]
|
|
922
|
-
- `formatContextUsageBar(...)`: render the
|
|
923
|
-
- `resolveContextUsageOverlay(...)`: choose
|
|
892
|
+
- `formatContextUsageBar(...)`: render the 10-cell context bar or threshold-specific overlay [`src/core/extension-status.ts`]
|
|
893
|
+
- `resolveContextUsageOverlay(...)`: choose `◀ CLEAR ▶ ` or ` ◀ FULL ▶ ` overlay states with CLI-supported theme tokens [`src/core/extension-status.ts`]
|
|
924
894
|
- `formatContextUsageOverlay(...)`: paint the fixed-width overlay with preserved bar background [`src/core/extension-status.ts`]
|
|
925
|
-
- `
|
|
895
|
+
- `formatElapsedStatusValue(...)`: compose `⏱︎`, `⚑`, and `⌛︎` timer segments [`src/core/extension-status.ts`]
|
|
896
|
+
- `formatCompletedStatusDuration(...)`: render completed timers or the unset placeholder [`src/core/extension-status.ts`]
|
|
897
|
+
- `formatStatusDuration(...)`: render `M:SS` durations [`src/core/extension-status.ts`]
|
|
926
898
|
- `formatPiNotifyBeepStatus(...)`: serialize enabled beep flags for the footer [`src/core/pi-notify.ts`]
|
|
927
|
-
|
|
899
|
+
- `formatPiNotifyPushoverStatus(...)`: serialize the dedicated Pushover enable flag for the footer [`src/core/pi-notify.ts`]
|
|
900
|
+
- `runPiNotifyEffects(...)`: dispatch configured terminal beeps, successful-run sound hooks, and optional Pushover API requests on `agent_end` [`src/core/pi-notify.ts`]
|
|
928
901
|
- `classifyPiNotifyOutcome(...)`: map assistant stop reasons to `end`, `esc`, or `err` [`src/core/pi-notify.ts`]
|
|
929
902
|
- `hasAgentEndStopReason(...)`: scan assistant stop reasons inside the `agent_end` payload [`src/core/pi-notify.ts`]
|
|
930
903
|
- `buildPiNotifyTitle(...)`: build the stable pi-notify title [`src/core/pi-notify.ts`]
|
|
@@ -939,6 +912,10 @@
|
|
|
939
912
|
- `substitutePiNotifyInstallPath(...)`: replace `%%INSTALLATION_PATH%%` before shell execution [`src/core/pi-notify.ts`]
|
|
940
913
|
- `quotePiNotifyInstallPath(...)`: quote the installation path for shell reuse [`src/core/pi-notify.ts`]
|
|
941
914
|
- `getInstallationPath(...)`: resolve the installed extension root [`src/core/path-context.ts`]
|
|
915
|
+
- `runPiNotifyPushoverRequest(...)`: POST the successful prompt payload to the Pushover Message API when credentials and flags permit delivery [`src/core/pi-notify.ts`]
|
|
916
|
+
- `buildPiNotifyPushoverPayload(...)`: serialize token, user, title, priority, and message fields [`src/core/pi-notify.ts`]
|
|
917
|
+
- `buildPiNotifyPushoverTitle(...)`: compose `<prompt> @ <base-path> [<time>]` for successful completion [`src/core/pi-notify.ts`]
|
|
918
|
+
- `buildPiNotifyPushoverBody(...)`: reuse the raw prompt argument payload [`src/core/pi-notify.ts`]
|
|
942
919
|
- `configurePiUsereq(...)`: interactive configuration menu runtime root [`src/index.ts`]
|
|
943
920
|
- `loadProjectConfig(...)`: load config and normalize persisted directory paths for command context [`src/index.ts`]
|
|
944
921
|
- `getProjectBase(...)`: resolve project base from command context cwd [`src/index.ts`]
|
|
@@ -951,24 +928,29 @@
|
|
|
951
928
|
- `resolveGitRoot(...)`: resolve repository root [`src/core/tool-runner.ts`]
|
|
952
929
|
- `runCapture(...)`: run git subprocess [`src/core/tool-runner.ts`]
|
|
953
930
|
- `getProjectBase(...)`: resolve project base from command context cwd [`src/index.ts`]
|
|
931
|
+
- `buildPiUsereqMenuChoices(...)`: serialize top-level settings actions plus the display-only config-path row [`src/index.ts`]
|
|
932
|
+
- `formatProjectConfigPathForMenu(...)`: format the current config path relative to the user home when possible [`src/index.ts`]
|
|
954
933
|
- `showPiUsereqSettingsMenu(...)`: render the shared settings-menu UI for top-level and submenu actions [`src/core/settings-menu.ts`]
|
|
955
934
|
- `formatPiUsereqSettingsMenuTitle(...)`: rebuild the menu title with active-theme semantics [`src/core/settings-menu.ts`]
|
|
956
935
|
- `buildPiUsereqSettingsListTheme(...)`: prefer shared CLI settings-list theming and fall back during offline replay [`src/core/settings-menu.ts`]
|
|
957
936
|
- `buildFallbackPiUsereqSettingsListTheme(...)`: mirror CLI settings-list token roles from the callback-local theme [`src/core/settings-menu.ts`]
|
|
937
|
+
- `buildSettingItems(...)`: map menu choices into settings-list rows and apply optional dim value tones [`src/core/settings-menu.ts`]
|
|
958
938
|
- `saveProjectConfig(...)`: persist config on save-and-close [`src/index.ts`]
|
|
959
939
|
- `getProjectBase(...)`: resolve project base from command context cwd [`src/index.ts`]
|
|
960
940
|
- `saveConfig(...)`: persist config JSON [`src/core/config.ts`]
|
|
961
941
|
- `getProjectConfigPath(...)`: resolve config file path [`src/core/config.ts`]
|
|
962
942
|
- `setPiUsereqStatusConfig(...)`: cache the just-saved docs/tests/src and pi-notify values for status rendering [`src/core/extension-status.ts`]
|
|
963
|
-
- `renderPiUsereqStatus(...)`: render the
|
|
943
|
+
- `renderPiUsereqStatus(...)`: render the base/context/elapsed/beep/sound/pushover footer after save-and-close with CLI-theme token overlays [`src/core/extension-status.ts`]
|
|
964
944
|
- `createStatusThemeAdapter(...)`: constrain status rendering to CLI-supported `accent`, `warning`, `dim`, and `error` theme tokens [`src/core/extension-status.ts`]
|
|
965
|
-
- `buildPiUsereqStatusText(...)`: compose the single-line footer payload with
|
|
945
|
+
- `buildPiUsereqStatusText(...)`: compose the single-line footer payload with consolidated elapsed semantics plus the Pushover enable field [`src/core/extension-status.ts`]
|
|
966
946
|
- `formatStatusField(...)`: render one colored text field [`src/core/extension-status.ts`]
|
|
967
947
|
- `formatRenderedStatusField(...)`: render one pre-styled field [`src/core/extension-status.ts`]
|
|
968
|
-
- `formatContextUsageBar(...)`: render the
|
|
969
|
-
- `resolveContextUsageOverlay(...)`: choose
|
|
948
|
+
- `formatContextUsageBar(...)`: render the 10-cell context bar or threshold-specific overlay [`src/core/extension-status.ts`]
|
|
949
|
+
- `resolveContextUsageOverlay(...)`: choose `◀ CLEAR ▶ ` or ` ◀ FULL ▶ ` overlay states with CLI-supported theme tokens [`src/core/extension-status.ts`]
|
|
970
950
|
- `formatContextUsageOverlay(...)`: paint the fixed-width overlay with preserved bar background [`src/core/extension-status.ts`]
|
|
971
|
-
- `
|
|
951
|
+
- `formatElapsedStatusValue(...)`: compose `⏱︎`, `⚑`, and `⌛︎` timer segments [`src/core/extension-status.ts`]
|
|
952
|
+
- `formatCompletedStatusDuration(...)`: render completed timers or the unset placeholder [`src/core/extension-status.ts`]
|
|
953
|
+
- `formatStatusDuration(...)`: render `M:SS` durations [`src/core/extension-status.ts`]
|
|
972
954
|
- `formatPiNotifyBeepStatus(...)`: serialize enabled beep flags for the footer [`src/core/pi-notify.ts`]
|
|
973
955
|
- `configureStaticCheckMenu(...)`: interactive static-check editor [`src/index.ts`]
|
|
974
956
|
- `formatStaticCheckLanguagesSummary(...)`: summarize configured checker languages [`src/index.ts`]
|
|
@@ -979,9 +961,9 @@
|
|
|
979
961
|
- `getSupportedStaticCheckLanguages(...)`: enumerate canonical supported languages [`src/core/static-check.ts`]
|
|
980
962
|
- `buildSupportedStaticCheckLanguageChoices(...)`: serialize supported languages with configured counts [`src/index.ts`]
|
|
981
963
|
- `shellSplit(...)`: parse optional parameter input [`src/core/utils.ts`]
|
|
982
|
-
- `parseEnableStaticCheck(...)`: parse `LANG=
|
|
964
|
+
- `parseEnableStaticCheck(...)`: parse `LANG=Command,CMD[,PARAM...]` specification [`src/core/static-check.ts`]
|
|
983
965
|
- `splitCsvLikeTokens(...)`: split comma-like spec payload with quoting support [`src/core/static-check.ts`]
|
|
984
|
-
- `formatStaticCheckModules(...)`: render valid
|
|
966
|
+
- `formatStaticCheckModules(...)`: render valid user modules for error paths [`src/core/static-check.ts`]
|
|
985
967
|
- `configurePiUsereqToolsMenu(...)`: interactive active-tool editor [`src/index.ts`]
|
|
986
968
|
- `applyConfiguredPiUsereqTools(...)`: enforce configured active-tool set [`src/index.ts`]
|
|
987
969
|
- `getConfiguredEnabledPiUsereqTools(...)`: canonicalize configured enabled tools [`src/index.ts`]
|
|
@@ -1001,8 +983,11 @@
|
|
|
1001
983
|
- `buildPiUsereqToolToggleChoices(...)`: serialize per-tool startup-toggle rows [`src/index.ts`]
|
|
1002
984
|
- `getPiUsereqToolKind(...)`: classify builtin versus extension tools for UI rendering [`src/index.ts`]
|
|
1003
985
|
- `configurePiNotifyMenu(...)`: interactive pi-notify editor [`src/index.ts`]
|
|
1004
|
-
- `buildPiNotifyMenuChoices(...)`: serialize notification actions for the shared settings menu [`src/index.ts`]
|
|
986
|
+
- `buildPiNotifyMenuChoices(...)`: serialize notification actions plus the nested Pushover submenu entry for the shared settings menu [`src/index.ts`]
|
|
1005
987
|
- `togglePiNotifyBeepFlag(...)`: toggle one prompt-end beep flag [`src/index.ts`]
|
|
988
|
+
- `configurePiNotifyPushoverMenu(...)`: interactive Pushover editor nested under the notifications menu [`src/index.ts`]
|
|
989
|
+
- `buildPiNotifyPushoverMenuChoices(...)`: serialize Pushover global-disable, enable, credential, and priority actions [`src/index.ts`]
|
|
990
|
+
- `selectPiNotifyPushoverPriority(...)`: present the `0=Normal` and `1=High Priority` selector [`src/index.ts`]
|
|
1006
991
|
- `getDefaultConfig(...)`: restore default config on reset [`src/core/config.ts`]
|
|
1007
992
|
- `normalizeEnabledPiUsereqTools(...)`: canonicalize configurable active tools [`src/core/pi-usereq-tools.ts`]
|
|
1008
993
|
- `applyConfiguredPiUsereqTools(...)`: re-apply active tools after reset [`src/index.ts`]
|