pi-usereq 0.4.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/.g.conf +20 -0
- package/.github/workflows/release-npm.yml +131 -0
- package/.gitignore +270 -0
- package/CHANGELOG.md +221 -0
- package/LICENSE +674 -0
- package/README.md +260 -0
- package/TODO.md +20 -0
- package/docs/pi.dev/agent-document-manifest.json +6399 -0
- package/docs/pi.dev/coding-agent-docs/compaction.md +394 -0
- package/docs/pi.dev/coding-agent-docs/custom-provider.md +596 -0
- package/docs/pi.dev/coding-agent-docs/development.md +71 -0
- package/docs/pi.dev/coding-agent-docs/extensions.md +2262 -0
- package/docs/pi.dev/coding-agent-docs/images/doom-extension.png +0 -0
- package/docs/pi.dev/coding-agent-docs/images/exy.png +0 -0
- package/docs/pi.dev/coding-agent-docs/images/interactive-mode.png +0 -0
- package/docs/pi.dev/coding-agent-docs/images/tree-view.png +0 -0
- package/docs/pi.dev/coding-agent-docs/json.md +82 -0
- package/docs/pi.dev/coding-agent-docs/keybindings.md +175 -0
- package/docs/pi.dev/coding-agent-docs/models.md +392 -0
- package/docs/pi.dev/coding-agent-docs/packages.md +218 -0
- package/docs/pi.dev/coding-agent-docs/prompt-templates.md +67 -0
- package/docs/pi.dev/coding-agent-docs/providers.md +195 -0
- package/docs/pi.dev/coding-agent-docs/rpc.md +1377 -0
- package/docs/pi.dev/coding-agent-docs/sdk.md +1124 -0
- package/docs/pi.dev/coding-agent-docs/session.md +412 -0
- package/docs/pi.dev/coding-agent-docs/settings.md +247 -0
- package/docs/pi.dev/coding-agent-docs/shell-aliases.md +13 -0
- package/docs/pi.dev/coding-agent-docs/skills.md +232 -0
- package/docs/pi.dev/coding-agent-docs/terminal-setup.md +106 -0
- package/docs/pi.dev/coding-agent-docs/termux.md +127 -0
- package/docs/pi.dev/coding-agent-docs/themes.md +295 -0
- package/docs/pi.dev/coding-agent-docs/tmux.md +61 -0
- package/docs/pi.dev/coding-agent-docs/tree.md +231 -0
- package/docs/pi.dev/coding-agent-docs/tui.md +887 -0
- package/docs/pi.dev/coding-agent-docs/windows.md +17 -0
- package/docs/pi.dev/mom-docs/artifacts-server.md +475 -0
- package/docs/pi.dev/mom-docs/events.md +307 -0
- package/docs/pi.dev/mom-docs/new.md +970 -0
- package/docs/pi.dev/mom-docs/sandbox.md +153 -0
- package/docs/pi.dev/mom-docs/slack-bot-minimal-guide.md +399 -0
- package/docs/pi.dev/mom-docs/v86.md +319 -0
- package/docs/pi.dev/pods-docs/gml-4.5.md +189 -0
- package/docs/pi.dev/pods-docs/gpt-oss.md +233 -0
- package/docs/pi.dev/pods-docs/implementation-plan.md +183 -0
- package/docs/pi.dev/pods-docs/kimi-k2.md +197 -0
- package/docs/pi.dev/pods-docs/models.md +116 -0
- package/docs/pi.dev/pods-docs/plan.md +166 -0
- package/docs/pi.dev/pods-docs/qwen3-coder.md +132 -0
- package/images/flowchart-bw.png +0 -0
- package/images/flowchart-bw.svg +102 -0
- package/images/flowchart.md +100 -0
- package/images/flowchart.png +0 -0
- package/images/flowchart.svg +3 -0
- package/package.json +46 -0
- package/req/docs/REFERENCES.md +4554 -0
- package/req/docs/REQUIREMENTS.md +475 -0
- package/req/docs/WORKFLOW.md +1059 -0
- package/scripts/debug-extension.ts +497 -0
- package/scripts/lib/extension-debug-harness.ts +450 -0
- package/scripts/lib/recording-extension-api.ts +786 -0
- package/scripts/lib/sdk-smoke.ts +503 -0
- package/scripts/pi-usereq-debug.sh +330 -0
- package/scripts/tool-args-to-params.ts +208 -0
- package/src/cli.ts +349 -0
- package/src/core/agent-tool-json.ts +621 -0
- package/src/core/compress-files.ts +72 -0
- package/src/core/compress-payload.ts +648 -0
- package/src/core/compress.ts +464 -0
- package/src/core/config.ts +272 -0
- package/src/core/doxygen-parser.ts +318 -0
- package/src/core/errors.ts +31 -0
- package/src/core/extension-status.ts +660 -0
- package/src/core/find-constructs.ts +319 -0
- package/src/core/find-payload.ts +915 -0
- package/src/core/generate-markdown.ts +120 -0
- package/src/core/path-context.ts +196 -0
- package/src/core/pi-notify.ts +430 -0
- package/src/core/pi-usereq-tools.ts +140 -0
- package/src/core/prompts.ts +184 -0
- package/src/core/reference-payload.ts +818 -0
- package/src/core/resources.ts +63 -0
- package/src/core/runtime-project-paths.ts +99 -0
- package/src/core/settings-menu.ts +233 -0
- package/src/core/source-analyzer.ts +1721 -0
- package/src/core/static-check.ts +674 -0
- package/src/core/token-counter.ts +729 -0
- package/src/core/tool-runner.ts +717 -0
- package/src/core/utils.ts +185 -0
- package/src/index.ts +2209 -0
- package/src/resources/guidelines/Google_C++_Style_Guide.md +3711 -0
- package/src/resources/guidelines/Google_Python_Style_Guide.md +3709 -0
- package/src/resources/prompts/analyze.md +130 -0
- package/src/resources/prompts/change.md +227 -0
- package/src/resources/prompts/check.md +139 -0
- package/src/resources/prompts/cover.md +219 -0
- package/src/resources/prompts/create.md +104 -0
- package/src/resources/prompts/fix.md +221 -0
- package/src/resources/prompts/flowchart.md +220 -0
- package/src/resources/prompts/implement.md +163 -0
- package/src/resources/prompts/new.md +226 -0
- package/src/resources/prompts/readme.md +182 -0
- package/src/resources/prompts/recreate.md +213 -0
- package/src/resources/prompts/refactor.md +213 -0
- package/src/resources/prompts/references.md +100 -0
- package/src/resources/prompts/renumber.md +119 -0
- package/src/resources/prompts/workflow.md +202 -0
- package/src/resources/prompts/write.md +99 -0
- package/src/resources/sounds/Machine-alert-beep-sound-effect.mp3 +0 -0
- package/src/resources/sounds/Soft-high-tech-notification-sound-effect.mp3 +0 -0
- package/src/resources/templates/Document_Source_Code_in_Doxygen_Style.md +130 -0
- package/src/resources/templates/HDT_Test_Authoring_Guide.md +318 -0
- package/src/resources/templates/Requirements_Template.md +78 -0
- package/tests/attended-results-scenarios.ts +758 -0
- package/tests/attended-results.test.ts +39 -0
- package/tests/cli-command-option-parity.test.ts +815 -0
- package/tests/debug-extension-harness.test.ts +463 -0
- package/tests/extension-registration.test.ts +2006 -0
- package/tests/fixtures/fixture_c.c +361 -0
- package/tests/fixtures/fixture_cpp.cpp +407 -0
- package/tests/fixtures/fixture_csharp.cs +411 -0
- package/tests/fixtures/fixture_elixir.ex +409 -0
- package/tests/fixtures/fixture_go.go +341 -0
- package/tests/fixtures/fixture_haskell.hs +250 -0
- package/tests/fixtures/fixture_java.java +430 -0
- package/tests/fixtures/fixture_javascript.js +383 -0
- package/tests/fixtures/fixture_kotlin.kt +451 -0
- package/tests/fixtures/fixture_lua.lua +276 -0
- package/tests/fixtures/fixture_perl.pl +310 -0
- package/tests/fixtures/fixture_php.php +433 -0
- package/tests/fixtures/fixture_python.py +502 -0
- package/tests/fixtures/fixture_ruby.rb +345 -0
- package/tests/fixtures/fixture_rust.rs +380 -0
- package/tests/fixtures/fixture_scala.scala +398 -0
- package/tests/fixtures/fixture_shell.sh +276 -0
- package/tests/fixtures/fixture_swift.swift +397 -0
- package/tests/fixtures/fixture_typescript.ts +434 -0
- package/tests/fixtures/fixture_zig.zig +295 -0
- package/tests/fixtures_attended_results/project/compress-line-numbers.json +5 -0
- package/tests/fixtures_attended_results/project/compress.json +5 -0
- package/tests/fixtures_attended_results/project/enable-static-check-invalid-command.json +5 -0
- package/tests/fixtures_attended_results/project/enable-static-check-valid.json +5 -0
- package/tests/fixtures_attended_results/project/files-static-check.json +5 -0
- package/tests/fixtures_attended_results/project/find-line-numbers.json +5 -0
- package/tests/fixtures_attended_results/project/find.json +5 -0
- package/tests/fixtures_attended_results/project/get-base-path.json +5 -0
- package/tests/fixtures_attended_results/project/git-check-clean.json +5 -0
- package/tests/fixtures_attended_results/project/git-check-dirty.json +5 -0
- package/tests/fixtures_attended_results/project/git-path.json +5 -0
- package/tests/fixtures_attended_results/project/git-wt-create-invalid.json +5 -0
- package/tests/fixtures_attended_results/project/git-wt-create-valid.json +5 -0
- package/tests/fixtures_attended_results/project/git-wt-delete-nonexistent.json +5 -0
- package/tests/fixtures_attended_results/project/git-wt-delete-valid.json +5 -0
- package/tests/fixtures_attended_results/project/git-wt-name.json +5 -0
- package/tests/fixtures_attended_results/project/references.json +5 -0
- package/tests/fixtures_attended_results/project/static-check.json +5 -0
- package/tests/fixtures_attended_results/project/tokens.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_c.c.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_cpp.cpp.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_csharp.cs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_elixir.ex.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_go.go.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_haskell.hs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_java.java.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_javascript.js.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_kotlin.kt.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_lua.lua.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_perl.pl.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_php.php.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_python.py.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_ruby.rb.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_rust.rs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_scala.scala.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_shell.sh.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_swift.swift.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_typescript.ts.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress/fixture_zig.zig.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_c.c.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_cpp.cpp.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_csharp.cs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_elixir.ex.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_go.go.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_haskell.hs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_java.java.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_javascript.js.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_kotlin.kt.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_lua.lua.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_perl.pl.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_php.php.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_python.py.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_ruby.rb.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_rust.rs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_scala.scala.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_shell.sh.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_swift.swift.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_typescript.ts.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-compress-line-numbers/fixture_zig.zig.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_c.c.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_cpp.cpp.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_csharp.cs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_elixir.ex.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_go.go.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_haskell.hs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_java.java.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_javascript.js.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_kotlin.kt.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_lua.lua.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_perl.pl.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_php.php.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_python.py.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_ruby.rb.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_rust.rs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_scala.scala.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_shell.sh.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_swift.swift.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_typescript.ts.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find/fixture_zig.zig.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_c.c.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_cpp.cpp.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_csharp.cs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_elixir.ex.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_go.go.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_haskell.hs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_java.java.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_javascript.js.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_kotlin.kt.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_lua.lua.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_perl.pl.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_php.php.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_python.py.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_ruby.rb.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_rust.rs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_scala.scala.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_shell.sh.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_swift.swift.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_typescript.ts.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-find-line-numbers/fixture_zig.zig.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_c.c.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_cpp.cpp.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_csharp.cs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_elixir.ex.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_go.go.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_haskell.hs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_java.java.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_javascript.js.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_kotlin.kt.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_lua.lua.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_perl.pl.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_php.php.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_python.py.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_ruby.rb.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_rust.rs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_scala.scala.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_shell.sh.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_swift.swift.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_typescript.ts.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-references/fixture_zig.zig.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_c.c.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_cpp.cpp.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_csharp.cs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_elixir.ex.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_go.go.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_haskell.hs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_java.java.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_javascript.js.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_kotlin.kt.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_lua.lua.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_perl.pl.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_php.php.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_python.py.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_ruby.rb.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_rust.rs.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_scala.scala.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_shell.sh.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_swift.swift.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_typescript.ts.json +5 -0
- package/tests/fixtures_attended_results/standalone/files-tokens/fixture_zig.zig.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_c.c.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_cpp.cpp.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_csharp.cs.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_elixir.ex.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_go.go.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_haskell.hs.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_java.java.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_javascript.js.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_kotlin.kt.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_lua.lua.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_perl.pl.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_php.php.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_python.py.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_ruby.rb.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_rust.rs.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_scala.scala.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_shell.sh.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_swift.swift.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_typescript.ts.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-command/fixture_zig.zig.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_c.c.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_cpp.cpp.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_csharp.cs.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_elixir.ex.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_go.go.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_haskell.hs.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_java.java.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_javascript.js.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_kotlin.kt.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_lua.lua.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_perl.pl.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_php.php.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_python.py.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_ruby.rb.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_rust.rs.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_scala.scala.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_shell.sh.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_swift.swift.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_typescript.ts.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-dummy/fixture_zig.zig.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_c.c.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_cpp.cpp.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_csharp.cs.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_elixir.ex.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_go.go.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_haskell.hs.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_java.java.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_javascript.js.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_kotlin.kt.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_lua.lua.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_perl.pl.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_php.php.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_python.py.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_ruby.rb.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_rust.rs.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_scala.scala.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_shell.sh.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_swift.swift.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_typescript.ts.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-pylance/fixture_zig.zig.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_c.c.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_cpp.cpp.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_csharp.cs.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_elixir.ex.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_go.go.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_haskell.hs.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_java.java.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_javascript.js.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_kotlin.kt.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_lua.lua.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_perl.pl.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_php.php.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_python.py.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_ruby.rb.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_rust.rs.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_scala.scala.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_shell.sh.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_swift.swift.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_typescript.ts.json +5 -0
- package/tests/fixtures_attended_results/standalone/test-static-check-ruff/fixture_zig.zig.json +5 -0
- package/tests/helpers.ts +204 -0
- package/tests/oracle-project.test.ts +63 -0
- package/tests/oracle-standalone.test.ts +48 -0
- package/tests/prompt-rendering.test.ts +66 -0
- package/tests/release-workflow.test.ts +133 -0
|
@@ -0,0 +1,1059 @@
|
|
|
1
|
+
## Execution Units Index
|
|
2
|
+
- ID: `PROC:main`
|
|
3
|
+
- Type: Process
|
|
4
|
+
- Role: Standalone `req` CLI dispatcher.
|
|
5
|
+
- Entrypoints:
|
|
6
|
+
- `main(...)` [`src/cli.ts`]
|
|
7
|
+
- Parent Process: none
|
|
8
|
+
- Threads: no explicit threads detected
|
|
9
|
+
- ID: `PROC:req-debug`
|
|
10
|
+
- Type: Process
|
|
11
|
+
- Role: Bash wrapper dispatcher for standalone extension-debug inspection, session replay, prompt replay, tool replay, and raw harness passthrough.
|
|
12
|
+
- Entrypoints:
|
|
13
|
+
- `main(...)` [`scripts/pi-usereq-debug.sh`]
|
|
14
|
+
- Parent Process: none
|
|
15
|
+
- Threads: no explicit threads detected
|
|
16
|
+
- ID: `PROC:tool-args-to-params`
|
|
17
|
+
- Type: Process
|
|
18
|
+
- Role: Tool-argument normalization helper that converts wrapper `--args` text into debug-harness `--params` JSON.
|
|
19
|
+
- Entrypoints:
|
|
20
|
+
- `main(...)` [`scripts/tool-args-to-params.ts`]
|
|
21
|
+
- Parent Process: `PROC:req-debug`
|
|
22
|
+
- Threads: no explicit threads detected
|
|
23
|
+
- ID: `PROC:debug-ext`
|
|
24
|
+
- Type: Process
|
|
25
|
+
- Role: Standalone extension debug-harness dispatcher for offline registration inspection, handler replay, and SDK parity smoke execution.
|
|
26
|
+
- Entrypoints:
|
|
27
|
+
- `main(...)` [`scripts/debug-extension.ts`]
|
|
28
|
+
- Parent Process: none
|
|
29
|
+
- Threads: no explicit threads detected
|
|
30
|
+
- ID: `PROC:pi-host`
|
|
31
|
+
- Type: Process
|
|
32
|
+
- Role: pi extension host callback surface for commands, tools, shortcuts, session initialization, and interactive configuration.
|
|
33
|
+
- Entrypoints:
|
|
34
|
+
- `piUsereqExtension(...)` [`src/index.ts`]
|
|
35
|
+
- `configurePiUsereq(...)` [`src/index.ts`]
|
|
36
|
+
- Parent Process: none
|
|
37
|
+
- Threads: no explicit threads detected
|
|
38
|
+
- ID: `PROC:gh-release-check`
|
|
39
|
+
- Type: Process
|
|
40
|
+
- Role: GitHub Actions release-gate runner that validates the workflow tag trigger ancestry against `origin/master` before downstream release work.
|
|
41
|
+
- Entrypoints:
|
|
42
|
+
- `check-branch(...)` [`.github/workflows/release-npm.yml`]
|
|
43
|
+
- Parent Process: none
|
|
44
|
+
- Threads: no explicit threads detected
|
|
45
|
+
- ID: `PROC:gh-release-build`
|
|
46
|
+
- Type: Process
|
|
47
|
+
- Role: GitHub Actions release runner that publishes the npm package, builds changelog text, and creates the GitHub Release after branch gating succeeds.
|
|
48
|
+
- Entrypoints:
|
|
49
|
+
- `build-release(...)` [`.github/workflows/release-npm.yml`]
|
|
50
|
+
- Parent Process: none
|
|
51
|
+
- Threads: no explicit threads detected
|
|
52
|
+
|
|
53
|
+
## Execution Units
|
|
54
|
+
### `PROC:main`
|
|
55
|
+
- Entrypoints:
|
|
56
|
+
- `main(...)`: CLI runtime root [`src/cli.ts`]
|
|
57
|
+
- Lifecycle/trigger:
|
|
58
|
+
- Start trigger: Node executes `src/cli.ts` as a one-shot command.
|
|
59
|
+
- Stop trigger: returns numeric exit code after one dispatch path or caught `ReqError`.
|
|
60
|
+
- Looping model: single-pass argument parse followed by single branch dispatch.
|
|
61
|
+
- Threads: no explicit threads detected.
|
|
62
|
+
- Internal Call-Trace Tree:
|
|
63
|
+
- `main(...)`: parse argv, normalize config, dispatch selected runner, serialize result [`src/cli.ts`]
|
|
64
|
+
- `parseArgs(...)`: map argv tokens into a structured command selection [`src/cli.ts`]
|
|
65
|
+
- `takeUntilOption(...)`: collect positional operands until next option token [`src/cli.ts`]
|
|
66
|
+
- `applyEnableStaticCheckSpecs(...)`: merge repeatable CLI static-check enable specs before command dispatch [`src/cli.ts`]
|
|
67
|
+
- `loadMutableProjectConfig(...)`: load project config without intermediate persistence [`src/cli.ts`]
|
|
68
|
+
- `resolveProjectBase(...)`: validate project base path [`src/core/tool-runner.ts`]
|
|
69
|
+
- `loadConfig(...)`: load config or defaults [`src/core/config.ts`]
|
|
70
|
+
- `getProjectConfigPath(...)`: resolve config file path [`src/core/config.ts`]
|
|
71
|
+
- `getDefaultConfig(...)`: build default config [`src/core/config.ts`]
|
|
72
|
+
- `normalizeEnabledPiUsereqTools(...)`: canonicalize startup tools [`src/core/pi-usereq-tools.ts`]
|
|
73
|
+
- `isInsideGitRepo(...)`: probe git repository membership [`src/core/tool-runner.ts`]
|
|
74
|
+
- `runCapture(...)`: run git subprocess [`src/core/tool-runner.ts`]
|
|
75
|
+
- `resolveGitRoot(...)`: resolve repository root [`src/core/tool-runner.ts`]
|
|
76
|
+
- `runCapture(...)`: run git subprocess [`src/core/tool-runner.ts`]
|
|
77
|
+
- `buildStaticCheckEntryIdentity(...)`: normalize entry duplicate identity [`src/core/static-check.ts`]
|
|
78
|
+
- `parseEnableStaticCheck(...)`: parse one static-check enable specification [`src/core/static-check.ts`]
|
|
79
|
+
- `validateStaticCheckEntry(...)`: validate command-backed entry before config write [`src/core/static-check.ts`]
|
|
80
|
+
- `findExecutable(...)`: resolve executable on PATH or explicit path [`src/core/static-check.ts`]
|
|
81
|
+
- `isExecutableFile(...)`: verify executable access bits [`src/core/static-check.ts`]
|
|
82
|
+
- `saveConfig(...)`: persist merged config JSON [`src/core/config.ts`]
|
|
83
|
+
- `getProjectConfigPath(...)`: resolve config file path [`src/core/config.ts`]
|
|
84
|
+
- `loadAndRepairConfig(...)`: persist normalized config when `--here` or `--base` is active and no CLI static-check mutation is requested [`src/core/tool-runner.ts`]
|
|
85
|
+
- `resolveProjectBase(...)`: validate project base path [`src/core/tool-runner.ts`]
|
|
86
|
+
- `loadConfig(...)`: load config or defaults [`src/core/config.ts`]
|
|
87
|
+
- `getProjectConfigPath(...)`: resolve config file path [`src/core/config.ts`]
|
|
88
|
+
- `getDefaultConfig(...)`: build default config [`src/core/config.ts`]
|
|
89
|
+
- `normalizeEnabledPiUsereqTools(...)`: canonicalize startup tools [`src/core/pi-usereq-tools.ts`]
|
|
90
|
+
- `isInsideGitRepo(...)`: probe git repository membership [`src/core/tool-runner.ts`]
|
|
91
|
+
- `runCapture(...)`: run git subprocess [`src/core/tool-runner.ts`]
|
|
92
|
+
- `resolveGitRoot(...)`: resolve repository root [`src/core/tool-runner.ts`]
|
|
93
|
+
- `runCapture(...)`: run git subprocess [`src/core/tool-runner.ts`]
|
|
94
|
+
- `saveConfig(...)`: persist normalized config JSON [`src/core/config.ts`]
|
|
95
|
+
- `getProjectConfigPath(...)`: resolve config file path [`src/core/config.ts`]
|
|
96
|
+
- `loadConfig(...)`: load effective config for dispatch when no CLI static-check mutation is requested [`src/core/config.ts`]
|
|
97
|
+
- `getProjectConfigPath(...)`: resolve config file path [`src/core/config.ts`]
|
|
98
|
+
- `getDefaultConfig(...)`: build default config [`src/core/config.ts`]
|
|
99
|
+
- `normalizeEnabledPiUsereqTools(...)`: canonicalize startup tools [`src/core/pi-usereq-tools.ts`]
|
|
100
|
+
- `runFilesTokens(...)`: branch `--files-tokens`; count explicit-file token, size, and structure metrics [`src/core/tool-runner.ts`]
|
|
101
|
+
- `countFilesMetrics(...)`: read files and extract token, character, byte, line, heading, and optional Doxygen facts [`src/core/token-counter.ts`]
|
|
102
|
+
- `buildCountFileMetricsResult(...)`: assemble direct-access per-file metrics and metadata [`src/core/token-counter.ts`]
|
|
103
|
+
- `TokenCounter.countTokens(...)`: encode content and count tokens [`src/core/token-counter.ts`]
|
|
104
|
+
- `TokenCounter.countChars(...)`: count characters [`src/core/token-counter.ts`]
|
|
105
|
+
- `countLines(...)`: count logical lines [`src/core/token-counter.ts`]
|
|
106
|
+
- `inferLanguageName(...)`: infer agent-oriented language labels [`src/core/token-counter.ts`]
|
|
107
|
+
- `extractPrimaryHeadingText(...)`: extract the first markdown heading when present [`src/core/token-counter.ts`]
|
|
108
|
+
- `extractLeadingDoxygenFields(...)`: extract file-level Doxygen fields when present [`src/core/token-counter.ts`]
|
|
109
|
+
- `parseDoxygenComment(...)`: parse normalized Doxygen fields [`src/core/doxygen-parser.ts`]
|
|
110
|
+
- `formatPackSummary(...)`: render aggregate summary [`src/core/token-counter.ts`]
|
|
111
|
+
- `runFilesReferences(...)`: branch `--files-references`; emit structured explicit-file references JSON [`src/core/tool-runner.ts`]
|
|
112
|
+
- `buildReferenceToolPayload(...)`: analyze requested files into the agent-oriented references payload [`src/core/reference-payload.ts`]
|
|
113
|
+
- `canonicalizeReferencePath(...)`: normalize request and file paths against the caller base directory [`src/core/reference-payload.ts`]
|
|
114
|
+
- `analyzeReferenceFile(...)`: analyze one processable file into structured imports, symbols, and comments [`src/core/reference-payload.ts`]
|
|
115
|
+
- `detectLanguage(...)`: map extension to language key [`src/core/compress.ts`]
|
|
116
|
+
- `SourceAnalyzer.analyze(...)`: parse source elements [`src/core/source-analyzer.ts`]
|
|
117
|
+
- `inStringContext(...)`: suppress comment parsing inside strings [`src/core/source-analyzer.ts`]
|
|
118
|
+
- `findComment(...)`: detect valid single-line comment boundary [`src/core/source-analyzer.ts`]
|
|
119
|
+
- `findBlockEnd(...)`: compute construct end line [`src/core/source-analyzer.ts`]
|
|
120
|
+
- `SourceAnalyzer.enrich(...)`: derive signatures, hierarchy, visibility, inheritance, body annotations, and Doxygen bindings [`src/core/source-analyzer.ts`]
|
|
121
|
+
- `cleanNames(...)`: normalize matched symbol names [`src/core/source-analyzer.ts`]
|
|
122
|
+
- `extractSignatures(...)`: derive single-line signatures [`src/core/source-analyzer.ts`]
|
|
123
|
+
- `detectHierarchy(...)`: assign parent-child relationships [`src/core/source-analyzer.ts`]
|
|
124
|
+
- `extractVisibility(...)`: annotate visibility [`src/core/source-analyzer.ts`]
|
|
125
|
+
- `parseVisibility(...)`: language-specific visibility classifier [`src/core/source-analyzer.ts`]
|
|
126
|
+
- `extractInheritance(...)`: annotate inheritance [`src/core/source-analyzer.ts`]
|
|
127
|
+
- `parseInheritance(...)`: language-specific inheritance parser [`src/core/source-analyzer.ts`]
|
|
128
|
+
- `extractBodyAnnotations(...)`: capture body comments and exit points [`src/core/source-analyzer.ts`]
|
|
129
|
+
- `inStringContext(...)`: suppress comment parsing inside strings [`src/core/source-analyzer.ts`]
|
|
130
|
+
- `findComment(...)`: detect valid single-line comment boundary [`src/core/source-analyzer.ts`]
|
|
131
|
+
- `cleanCommentLine(...)`: normalize comment payload [`src/core/source-analyzer.ts`]
|
|
132
|
+
- `extractDoxygenFields(...)`: bind documentation comments to definitions [`src/core/source-analyzer.ts`]
|
|
133
|
+
- `isPostfixDoxygenComment(...)`: detect postfix documentation markers [`src/core/source-analyzer.ts`]
|
|
134
|
+
- `parseDoxygenComment(...)`: parse Doxygen tag/value map [`src/core/doxygen-parser.ts`]
|
|
135
|
+
- `stripCommentDelimiters(...)`: remove language comment wrappers [`src/core/doxygen-parser.ts`]
|
|
136
|
+
- `normalizeWhitespace(...)`: canonicalize tag body whitespace [`src/core/doxygen-parser.ts`]
|
|
137
|
+
- `buildCommentMaps(...)`: associate comments with definitions and file descriptions [`src/core/reference-payload.ts`]
|
|
138
|
+
- `collectFileLevelDoxygenFields(...)`: extract file-level Doxygen fields [`src/core/source-analyzer.ts`]
|
|
139
|
+
- `parseDoxygenComment(...)`: parse Doxygen tag/value map [`src/core/doxygen-parser.ts`]
|
|
140
|
+
- `collectElementDoxygenFields(...)`: merge direct and near-body Doxygen fields [`src/core/source-analyzer.ts`]
|
|
141
|
+
- `parseDoxygenComment(...)`: parse Doxygen tag/value map [`src/core/doxygen-parser.ts`]
|
|
142
|
+
- `structureDoxygenFields(...)`: normalize Doxygen fields into tag-specific JSON arrays and objects [`src/core/doxygen-parser.ts`]
|
|
143
|
+
- `countDoxygenFieldValues(...)`: derive aggregate Doxygen counts [`src/core/doxygen-parser.ts`]
|
|
144
|
+
- `resolveParentElement(...)`: link nested symbols to enclosing definitions [`src/core/reference-payload.ts`]
|
|
145
|
+
- `buildCommentEntry(...)`: serialize normalized comment text and line ranges [`src/core/reference-payload.ts`]
|
|
146
|
+
- `buildRepositoryTree(...)`: materialize the repository directory tree as structured JSON [`src/core/reference-payload.ts`]
|
|
147
|
+
- `buildReferenceToolExecutionStderr(...)`: serialize skipped and analysis-error entries into stderr text [`src/core/reference-payload.ts`]
|
|
148
|
+
- `runFilesCompress(...)`: branch `--files-compress`; compress explicit files [`src/core/tool-runner.ts`]
|
|
149
|
+
- `compressFiles(...)`: compress each file into markdown blocks [`src/core/compress-files.ts`]
|
|
150
|
+
- `detectLanguage(...)`: map extension to language key [`src/core/compress.ts`]
|
|
151
|
+
- `compressFileDetailed(...)`: compress one file into structured lines and rendered text [`src/core/compress.ts`]
|
|
152
|
+
- `detectLanguage(...)`: map extension to language key [`src/core/compress.ts`]
|
|
153
|
+
- `compressSourceDetailed(...)`: strip comments and blank lines into structured line records [`src/core/compress.ts`]
|
|
154
|
+
- `getSpecs(...)`: memoize parser specs [`src/core/compress.ts`]
|
|
155
|
+
- `buildLanguageSpecs(...)`: build multi-language parser specs [`src/core/source-analyzer.ts`]
|
|
156
|
+
- `re(...)`: compile regex fragments [`src/core/source-analyzer.ts`]
|
|
157
|
+
- `countLogicalLines(...)`: count original source lines [`src/core/compress.ts`]
|
|
158
|
+
- `isInString(...)`: suppress inline comment stripping inside strings [`src/core/compress.ts`]
|
|
159
|
+
- `removeInlineComment(...)`: remove single-line comment suffixes [`src/core/compress.ts`]
|
|
160
|
+
- `buildCompressedLineEntry(...)`: normalize one retained line into structured output [`src/core/compress.ts`]
|
|
161
|
+
- `formatCompressedSourceText(...)`: render compressed output text [`src/core/compress.ts`]
|
|
162
|
+
- `formatOutputPath(...)`: normalize emitted file path [`src/core/compress-files.ts`]
|
|
163
|
+
- `runFilesFind(...)`: branch `--files-find`; extract named constructs from explicit files [`src/core/tool-runner.ts`]
|
|
164
|
+
- `findConstructsInFiles(...)`: select constructs by tag and regex [`src/core/find-constructs.ts`]
|
|
165
|
+
- `parseTagFilter(...)`: parse tag filter set [`src/core/find-constructs.ts`]
|
|
166
|
+
- `detectLanguage(...)`: map extension to language key [`src/core/compress.ts`]
|
|
167
|
+
- `languageSupportsTags(...)`: reject unsupported tag/language combinations [`src/core/find-constructs.ts`]
|
|
168
|
+
- `SourceAnalyzer.analyze(...)`: parse source elements [`src/core/source-analyzer.ts`]
|
|
169
|
+
- `inStringContext(...)`: suppress comment parsing inside strings [`src/core/source-analyzer.ts`]
|
|
170
|
+
- `findComment(...)`: detect valid single-line comment boundary [`src/core/source-analyzer.ts`]
|
|
171
|
+
- `findBlockEnd(...)`: compute construct end line [`src/core/source-analyzer.ts`]
|
|
172
|
+
- `SourceAnalyzer.enrich(...)`: derive signatures, hierarchy, visibility, inheritance, body annotations, and Doxygen bindings [`src/core/source-analyzer.ts`]
|
|
173
|
+
- `cleanNames(...)`: normalize matched symbol names [`src/core/source-analyzer.ts`]
|
|
174
|
+
- `extractSignatures(...)`: derive single-line signatures [`src/core/source-analyzer.ts`]
|
|
175
|
+
- `detectHierarchy(...)`: assign parent-child relationships [`src/core/source-analyzer.ts`]
|
|
176
|
+
- `extractVisibility(...)`: annotate visibility [`src/core/source-analyzer.ts`]
|
|
177
|
+
- `parseVisibility(...)`: language-specific visibility classifier [`src/core/source-analyzer.ts`]
|
|
178
|
+
- `extractInheritance(...)`: annotate inheritance [`src/core/source-analyzer.ts`]
|
|
179
|
+
- `parseInheritance(...)`: language-specific inheritance parser [`src/core/source-analyzer.ts`]
|
|
180
|
+
- `extractBodyAnnotations(...)`: capture body comments and exit points [`src/core/source-analyzer.ts`]
|
|
181
|
+
- `inStringContext(...)`: suppress comment parsing inside strings [`src/core/source-analyzer.ts`]
|
|
182
|
+
- `findComment(...)`: detect valid single-line comment boundary [`src/core/source-analyzer.ts`]
|
|
183
|
+
- `cleanCommentLine(...)`: normalize comment payload [`src/core/source-analyzer.ts`]
|
|
184
|
+
- `extractDoxygenFields(...)`: bind documentation comments to definitions [`src/core/source-analyzer.ts`]
|
|
185
|
+
- `isPostfixDoxygenComment(...)`: detect postfix documentation markers [`src/core/source-analyzer.ts`]
|
|
186
|
+
- `parseDoxygenComment(...)`: parse Doxygen tag/value map [`src/core/doxygen-parser.ts`]
|
|
187
|
+
- `stripCommentDelimiters(...)`: remove language comment wrappers [`src/core/doxygen-parser.ts`]
|
|
188
|
+
- `normalizeWhitespace(...)`: canonicalize tag body whitespace [`src/core/doxygen-parser.ts`]
|
|
189
|
+
- `constructMatches(...)`: apply tag and regex filter [`src/core/find-constructs.ts`]
|
|
190
|
+
- `extractFileLevelDoxygenFields(...)`: extract file-level Doxygen fields [`src/core/find-constructs.ts`]
|
|
191
|
+
- `parseDoxygenComment(...)`: parse Doxygen tag/value map [`src/core/doxygen-parser.ts`]
|
|
192
|
+
- `stripCommentDelimiters(...)`: remove language comment wrappers [`src/core/doxygen-parser.ts`]
|
|
193
|
+
- `normalizeWhitespace(...)`: canonicalize tag body whitespace [`src/core/doxygen-parser.ts`]
|
|
194
|
+
- `formatConstruct(...)`: render one construct extract [`src/core/find-constructs.ts`]
|
|
195
|
+
- `extractConstructDoxygenFields(...)`: merge direct and near-body Doxygen fields [`src/core/find-constructs.ts`]
|
|
196
|
+
- `parseDoxygenComment(...)`: parse Doxygen tag/value map [`src/core/doxygen-parser.ts`]
|
|
197
|
+
- `stripCommentDelimiters(...)`: remove language comment wrappers [`src/core/doxygen-parser.ts`]
|
|
198
|
+
- `normalizeWhitespace(...)`: canonicalize tag body whitespace [`src/core/doxygen-parser.ts`]
|
|
199
|
+
- `formatDoxygenFieldsAsMarkdown(...)`: render Doxygen fields as markdown bullets [`src/core/doxygen-parser.ts`]
|
|
200
|
+
- `stripConstructComments(...)`: compress construct code while preserving strings [`src/core/find-constructs.ts`]
|
|
201
|
+
- `compressSource(...)`: strip comments and blank lines [`src/core/compress.ts`]
|
|
202
|
+
- `getSpecs(...)`: memoize parser specs [`src/core/compress.ts`]
|
|
203
|
+
- `buildLanguageSpecs(...)`: build multi-language parser specs [`src/core/source-analyzer.ts`]
|
|
204
|
+
- `re(...)`: compile regex fragments [`src/core/source-analyzer.ts`]
|
|
205
|
+
- `isInString(...)`: suppress inline comment stripping inside strings [`src/core/compress.ts`]
|
|
206
|
+
- `removeInlineComment(...)`: remove single-line comment suffixes [`src/core/compress.ts`]
|
|
207
|
+
- `formatResult(...)`: render compressed output [`src/core/compress.ts`]
|
|
208
|
+
- `formatAvailableTags(...)`: render supported tag index for failure paths [`src/core/find-constructs.ts`]
|
|
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`]
|
|
211
|
+
- `StaticCheckBase.checkFile(...)`: emit success without external checker [`src/core/static-check.ts`]
|
|
212
|
+
- `StaticCheckBase.headerLine(...)`: format checker header [`src/core/static-check.ts`]
|
|
213
|
+
- `StaticCheckBase.emitLine(...)`: write checker output [`src/core/static-check.ts`]
|
|
214
|
+
- `StaticCheckPylance.run(...)`: iterate resolved files for pyright path [`src/core/static-check.ts`]
|
|
215
|
+
- `StaticCheckPylance.checkFile(...)`: run pyright-based validation [`src/core/static-check.ts`]
|
|
216
|
+
- `detectPythonExecutable(...)`: resolve Python interpreter [`src/core/static-check.ts`]
|
|
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`]
|
|
227
|
+
- `StaticCheckCommand.checkFile(...)`: run external executable against one file [`src/core/static-check.ts`]
|
|
228
|
+
- `StaticCheckBase.headerLine(...)`: format checker header [`src/core/static-check.ts`]
|
|
229
|
+
- `StaticCheckBase.emitLine(...)`: write checker output [`src/core/static-check.ts`]
|
|
230
|
+
- `runFilesStaticCheck(...)`: branch `--files-static-check`; run configured checkers for explicit files [`src/core/tool-runner.ts`]
|
|
231
|
+
- `resolveProjectBase(...)`: validate project base path [`src/core/tool-runner.ts`]
|
|
232
|
+
- `loadConfig(...)`: load config or defaults [`src/core/config.ts`]
|
|
233
|
+
- `getProjectConfigPath(...)`: resolve config file path [`src/core/config.ts`]
|
|
234
|
+
- `getDefaultConfig(...)`: build default config [`src/core/config.ts`]
|
|
235
|
+
- `normalizeEnabledPiUsereqTools(...)`: canonicalize startup tools [`src/core/pi-usereq-tools.ts`]
|
|
236
|
+
- `dispatchStaticCheckForFile(...)`: instantiate checker by configured module [`src/core/static-check.ts`]
|
|
237
|
+
- `formatStaticCheckModules(...)`: render valid module names for error paths [`src/core/static-check.ts`]
|
|
238
|
+
- `StaticCheckBase.run(...)`: execute dummy checker [`src/core/static-check.ts`]
|
|
239
|
+
- `StaticCheckBase.checkFile(...)`: emit success without external checker [`src/core/static-check.ts`]
|
|
240
|
+
- `StaticCheckBase.headerLine(...)`: format checker header [`src/core/static-check.ts`]
|
|
241
|
+
- `StaticCheckBase.emitLine(...)`: write checker output [`src/core/static-check.ts`]
|
|
242
|
+
- `StaticCheckPylance.run(...)`: execute pyright checker [`src/core/static-check.ts`]
|
|
243
|
+
- `StaticCheckPylance.checkFile(...)`: run pyright-based validation [`src/core/static-check.ts`]
|
|
244
|
+
- `detectPythonExecutable(...)`: resolve Python interpreter [`src/core/static-check.ts`]
|
|
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`]
|
|
255
|
+
- `StaticCheckCommand.checkFile(...)`: run external executable against one file [`src/core/static-check.ts`]
|
|
256
|
+
- `StaticCheckBase.headerLine(...)`: format checker header [`src/core/static-check.ts`]
|
|
257
|
+
- `StaticCheckBase.emitLine(...)`: write checker output [`src/core/static-check.ts`]
|
|
258
|
+
- `runReferences(...)`: branch `--references`; emit structured project references JSON [`src/core/tool-runner.ts`]
|
|
259
|
+
- `resolveProjectSrcDirs(...)`: load configured source directories [`src/core/tool-runner.ts`]
|
|
260
|
+
- `resolveProjectBase(...)`: validate project base path [`src/core/tool-runner.ts`]
|
|
261
|
+
- `loadConfig(...)`: load config or defaults [`src/core/config.ts`]
|
|
262
|
+
- `getProjectConfigPath(...)`: resolve config file path [`src/core/config.ts`]
|
|
263
|
+
- `getDefaultConfig(...)`: build default config [`src/core/config.ts`]
|
|
264
|
+
- `normalizeEnabledPiUsereqTools(...)`: canonicalize startup tools [`src/core/pi-usereq-tools.ts`]
|
|
265
|
+
- `collectSourceFiles(...)`: gather tracked and untracked source files under configured roots [`src/core/tool-runner.ts`]
|
|
266
|
+
- `makeRelativeIfContainsProject(...)`: normalize configured root tokens [`src/core/utils.ts`]
|
|
267
|
+
- `buildReferenceToolPayload(...)`: analyze configured source files into the agent-oriented references payload [`src/core/reference-payload.ts`]
|
|
268
|
+
- `canonicalizeReferencePath(...)`: normalize request and file paths against the project base [`src/core/reference-payload.ts`]
|
|
269
|
+
- `analyzeReferenceFile(...)`: analyze one processable file into structured imports, symbols, and comments [`src/core/reference-payload.ts`]
|
|
270
|
+
- `detectLanguage(...)`: map extension to language key [`src/core/compress.ts`]
|
|
271
|
+
- `SourceAnalyzer.analyze(...)`: parse source elements [`src/core/source-analyzer.ts`]
|
|
272
|
+
- `SourceAnalyzer.enrich(...)`: derive signatures, hierarchy, visibility, inheritance, body annotations, and Doxygen bindings [`src/core/source-analyzer.ts`]
|
|
273
|
+
- `buildCommentMaps(...)`: associate comments with definitions and file descriptions [`src/core/reference-payload.ts`]
|
|
274
|
+
- `collectFileLevelDoxygenFields(...)`: extract file-level Doxygen fields [`src/core/source-analyzer.ts`]
|
|
275
|
+
- `collectElementDoxygenFields(...)`: merge direct and near-body Doxygen fields [`src/core/source-analyzer.ts`]
|
|
276
|
+
- `structureDoxygenFields(...)`: normalize Doxygen fields into tag-specific JSON arrays and objects [`src/core/doxygen-parser.ts`]
|
|
277
|
+
- `countDoxygenFieldValues(...)`: derive aggregate Doxygen counts [`src/core/doxygen-parser.ts`]
|
|
278
|
+
- `resolveParentElement(...)`: link nested symbols to enclosing definitions [`src/core/reference-payload.ts`]
|
|
279
|
+
- `buildCommentEntry(...)`: serialize normalized comment text and line ranges [`src/core/reference-payload.ts`]
|
|
280
|
+
- `buildRepositoryTree(...)`: materialize the repository directory tree as structured JSON [`src/core/reference-payload.ts`]
|
|
281
|
+
- `buildReferenceToolExecutionStderr(...)`: serialize skipped and analysis-error entries into stderr text [`src/core/reference-payload.ts`]
|
|
282
|
+
- `runCompress(...)`: branch `--compress`; compress configured source files [`src/core/tool-runner.ts`]
|
|
283
|
+
- `resolveProjectSrcDirs(...)`: load configured source directories [`src/core/tool-runner.ts`]
|
|
284
|
+
- `resolveProjectBase(...)`: validate project base path [`src/core/tool-runner.ts`]
|
|
285
|
+
- `loadConfig(...)`: load config or defaults [`src/core/config.ts`]
|
|
286
|
+
- `getProjectConfigPath(...)`: resolve config file path [`src/core/config.ts`]
|
|
287
|
+
- `getDefaultConfig(...)`: build default config [`src/core/config.ts`]
|
|
288
|
+
- `normalizeEnabledPiUsereqTools(...)`: canonicalize startup tools [`src/core/pi-usereq-tools.ts`]
|
|
289
|
+
- `collectSourceFiles(...)`: gather tracked and untracked source files under configured roots [`src/core/tool-runner.ts`]
|
|
290
|
+
- `makeRelativeIfContainsProject(...)`: normalize configured root tokens [`src/core/utils.ts`]
|
|
291
|
+
- `compressFiles(...)`: compress each file into markdown blocks [`src/core/compress-files.ts`]
|
|
292
|
+
- `detectLanguage(...)`: map extension to language key [`src/core/compress.ts`]
|
|
293
|
+
- `compressFileDetailed(...)`: compress one file into structured lines and rendered text [`src/core/compress.ts`]
|
|
294
|
+
- `detectLanguage(...)`: map extension to language key [`src/core/compress.ts`]
|
|
295
|
+
- `compressSourceDetailed(...)`: strip comments and blank lines into structured line records [`src/core/compress.ts`]
|
|
296
|
+
- `getSpecs(...)`: memoize parser specs [`src/core/compress.ts`]
|
|
297
|
+
- `buildLanguageSpecs(...)`: build multi-language parser specs [`src/core/source-analyzer.ts`]
|
|
298
|
+
- `re(...)`: compile regex fragments [`src/core/source-analyzer.ts`]
|
|
299
|
+
- `countLogicalLines(...)`: count original source lines [`src/core/compress.ts`]
|
|
300
|
+
- `isInString(...)`: suppress inline comment stripping inside strings [`src/core/compress.ts`]
|
|
301
|
+
- `removeInlineComment(...)`: remove single-line comment suffixes [`src/core/compress.ts`]
|
|
302
|
+
- `buildCompressedLineEntry(...)`: normalize one retained line into structured output [`src/core/compress.ts`]
|
|
303
|
+
- `formatCompressedSourceText(...)`: render compressed output text [`src/core/compress.ts`]
|
|
304
|
+
- `formatOutputPath(...)`: normalize emitted file path [`src/core/compress-files.ts`]
|
|
305
|
+
- `runFind(...)`: branch `--find`; extract project-wide named constructs [`src/core/tool-runner.ts`]
|
|
306
|
+
- `resolveProjectSrcDirs(...)`: load configured source directories [`src/core/tool-runner.ts`]
|
|
307
|
+
- `resolveProjectBase(...)`: validate project base path [`src/core/tool-runner.ts`]
|
|
308
|
+
- `loadConfig(...)`: load config or defaults [`src/core/config.ts`]
|
|
309
|
+
- `getProjectConfigPath(...)`: resolve config file path [`src/core/config.ts`]
|
|
310
|
+
- `getDefaultConfig(...)`: build default config [`src/core/config.ts`]
|
|
311
|
+
- `normalizeEnabledPiUsereqTools(...)`: canonicalize startup tools [`src/core/pi-usereq-tools.ts`]
|
|
312
|
+
- `collectSourceFiles(...)`: gather tracked and untracked source files under configured roots [`src/core/tool-runner.ts`]
|
|
313
|
+
- `makeRelativeIfContainsProject(...)`: normalize configured root tokens [`src/core/utils.ts`]
|
|
314
|
+
- `findConstructsInFiles(...)`: select constructs by tag and regex [`src/core/find-constructs.ts`]
|
|
315
|
+
- `parseTagFilter(...)`: parse tag filter set [`src/core/find-constructs.ts`]
|
|
316
|
+
- `detectLanguage(...)`: map extension to language key [`src/core/compress.ts`]
|
|
317
|
+
- `languageSupportsTags(...)`: reject unsupported tag/language combinations [`src/core/find-constructs.ts`]
|
|
318
|
+
- `SourceAnalyzer.analyze(...)`: parse source elements [`src/core/source-analyzer.ts`]
|
|
319
|
+
- `inStringContext(...)`: suppress comment parsing inside strings [`src/core/source-analyzer.ts`]
|
|
320
|
+
- `findComment(...)`: detect valid single-line comment boundary [`src/core/source-analyzer.ts`]
|
|
321
|
+
- `findBlockEnd(...)`: compute construct end line [`src/core/source-analyzer.ts`]
|
|
322
|
+
- `SourceAnalyzer.enrich(...)`: derive signatures, hierarchy, visibility, inheritance, body annotations, and Doxygen bindings [`src/core/source-analyzer.ts`]
|
|
323
|
+
- `cleanNames(...)`: normalize matched symbol names [`src/core/source-analyzer.ts`]
|
|
324
|
+
- `extractSignatures(...)`: derive single-line signatures [`src/core/source-analyzer.ts`]
|
|
325
|
+
- `detectHierarchy(...)`: assign parent-child relationships [`src/core/source-analyzer.ts`]
|
|
326
|
+
- `extractVisibility(...)`: annotate visibility [`src/core/source-analyzer.ts`]
|
|
327
|
+
- `parseVisibility(...)`: language-specific visibility classifier [`src/core/source-analyzer.ts`]
|
|
328
|
+
- `extractInheritance(...)`: annotate inheritance [`src/core/source-analyzer.ts`]
|
|
329
|
+
- `parseInheritance(...)`: language-specific inheritance parser [`src/core/source-analyzer.ts`]
|
|
330
|
+
- `extractBodyAnnotations(...)`: capture body comments and exit points [`src/core/source-analyzer.ts`]
|
|
331
|
+
- `inStringContext(...)`: suppress comment parsing inside strings [`src/core/source-analyzer.ts`]
|
|
332
|
+
- `findComment(...)`: detect valid single-line comment boundary [`src/core/source-analyzer.ts`]
|
|
333
|
+
- `cleanCommentLine(...)`: normalize comment payload [`src/core/source-analyzer.ts`]
|
|
334
|
+
- `extractDoxygenFields(...)`: bind documentation comments to definitions [`src/core/source-analyzer.ts`]
|
|
335
|
+
- `isPostfixDoxygenComment(...)`: detect postfix documentation markers [`src/core/source-analyzer.ts`]
|
|
336
|
+
- `parseDoxygenComment(...)`: parse Doxygen tag/value map [`src/core/doxygen-parser.ts`]
|
|
337
|
+
- `stripCommentDelimiters(...)`: remove language comment wrappers [`src/core/doxygen-parser.ts`]
|
|
338
|
+
- `normalizeWhitespace(...)`: canonicalize tag body whitespace [`src/core/doxygen-parser.ts`]
|
|
339
|
+
- `constructMatches(...)`: apply tag and regex filter [`src/core/find-constructs.ts`]
|
|
340
|
+
- `extractFileLevelDoxygenFields(...)`: extract file-level Doxygen fields [`src/core/find-constructs.ts`]
|
|
341
|
+
- `parseDoxygenComment(...)`: parse Doxygen tag/value map [`src/core/doxygen-parser.ts`]
|
|
342
|
+
- `stripCommentDelimiters(...)`: remove language comment wrappers [`src/core/doxygen-parser.ts`]
|
|
343
|
+
- `normalizeWhitespace(...)`: canonicalize tag body whitespace [`src/core/doxygen-parser.ts`]
|
|
344
|
+
- `formatConstruct(...)`: render one construct extract [`src/core/find-constructs.ts`]
|
|
345
|
+
- `extractConstructDoxygenFields(...)`: merge direct and near-body Doxygen fields [`src/core/find-constructs.ts`]
|
|
346
|
+
- `parseDoxygenComment(...)`: parse Doxygen tag/value map [`src/core/doxygen-parser.ts`]
|
|
347
|
+
- `stripCommentDelimiters(...)`: remove language comment wrappers [`src/core/doxygen-parser.ts`]
|
|
348
|
+
- `normalizeWhitespace(...)`: canonicalize tag body whitespace [`src/core/doxygen-parser.ts`]
|
|
349
|
+
- `formatDoxygenFieldsAsMarkdown(...)`: render Doxygen fields as markdown bullets [`src/core/doxygen-parser.ts`]
|
|
350
|
+
- `stripConstructComments(...)`: compress construct code while preserving strings [`src/core/find-constructs.ts`]
|
|
351
|
+
- `compressSource(...)`: strip comments and blank lines [`src/core/compress.ts`]
|
|
352
|
+
- `getSpecs(...)`: memoize parser specs [`src/core/compress.ts`]
|
|
353
|
+
- `buildLanguageSpecs(...)`: build multi-language parser specs [`src/core/source-analyzer.ts`]
|
|
354
|
+
- `re(...)`: compile regex fragments [`src/core/source-analyzer.ts`]
|
|
355
|
+
- `isInString(...)`: suppress inline comment stripping inside strings [`src/core/compress.ts`]
|
|
356
|
+
- `removeInlineComment(...)`: remove single-line comment suffixes [`src/core/compress.ts`]
|
|
357
|
+
- `formatResult(...)`: render compressed output [`src/core/compress.ts`]
|
|
358
|
+
- `formatAvailableTags(...)`: render supported tag index for failure paths [`src/core/find-constructs.ts`]
|
|
359
|
+
- `runTokens(...)`: branch `--tokens`; count canonical docs token usage [`src/core/tool-runner.ts`]
|
|
360
|
+
- `resolveProjectBase(...)`: validate project base path [`src/core/tool-runner.ts`]
|
|
361
|
+
- `loadConfig(...)`: load config or defaults [`src/core/config.ts`]
|
|
362
|
+
- `getProjectConfigPath(...)`: resolve config file path [`src/core/config.ts`]
|
|
363
|
+
- `getDefaultConfig(...)`: build default config [`src/core/config.ts`]
|
|
364
|
+
- `normalizeEnabledPiUsereqTools(...)`: canonicalize startup tools [`src/core/pi-usereq-tools.ts`]
|
|
365
|
+
- `runFilesTokens(...)`: count explicit-file token, size, and structure metrics [`src/core/tool-runner.ts`]
|
|
366
|
+
- `countFilesMetrics(...)`: read files and extract token, character, byte, line, heading, and optional Doxygen facts [`src/core/token-counter.ts`]
|
|
367
|
+
- `buildCountFileMetricsResult(...)`: assemble direct-access per-file metrics and metadata [`src/core/token-counter.ts`]
|
|
368
|
+
- `TokenCounter.countTokens(...)`: encode content and count tokens [`src/core/token-counter.ts`]
|
|
369
|
+
- `TokenCounter.countChars(...)`: count characters [`src/core/token-counter.ts`]
|
|
370
|
+
- `countLines(...)`: count logical lines [`src/core/token-counter.ts`]
|
|
371
|
+
- `inferLanguageName(...)`: infer agent-oriented language labels [`src/core/token-counter.ts`]
|
|
372
|
+
- `extractPrimaryHeadingText(...)`: extract the first markdown heading when present [`src/core/token-counter.ts`]
|
|
373
|
+
- `extractLeadingDoxygenFields(...)`: extract file-level Doxygen fields when present [`src/core/token-counter.ts`]
|
|
374
|
+
- `parseDoxygenComment(...)`: parse normalized Doxygen fields [`src/core/doxygen-parser.ts`]
|
|
375
|
+
- `formatPackSummary(...)`: render aggregate summary [`src/core/token-counter.ts`]
|
|
376
|
+
- `runProjectStaticCheck(...)`: branch `--static-check`; run configured checkers for source and test roots [`src/core/tool-runner.ts`]
|
|
377
|
+
- `resolveProjectBase(...)`: validate project base path [`src/core/tool-runner.ts`]
|
|
378
|
+
- `loadConfig(...)`: load config or defaults [`src/core/config.ts`]
|
|
379
|
+
- `getProjectConfigPath(...)`: resolve config file path [`src/core/config.ts`]
|
|
380
|
+
- `getDefaultConfig(...)`: build default config [`src/core/config.ts`]
|
|
381
|
+
- `normalizeEnabledPiUsereqTools(...)`: canonicalize startup tools [`src/core/pi-usereq-tools.ts`]
|
|
382
|
+
- `collectSourceFiles(...)`: gather tracked and untracked source and test files [`src/core/tool-runner.ts`]
|
|
383
|
+
- `makeRelativeIfContainsProject(...)`: normalize configured root tokens [`src/core/utils.ts`]
|
|
384
|
+
- `runFilesStaticCheck(...)`: run configured checkers for explicit files [`src/core/tool-runner.ts`]
|
|
385
|
+
- `resolveProjectBase(...)`: validate project base path [`src/core/tool-runner.ts`]
|
|
386
|
+
- `loadConfig(...)`: load config or defaults [`src/core/config.ts`]
|
|
387
|
+
- `getProjectConfigPath(...)`: resolve config file path [`src/core/config.ts`]
|
|
388
|
+
- `getDefaultConfig(...)`: build default config [`src/core/config.ts`]
|
|
389
|
+
- `normalizeEnabledPiUsereqTools(...)`: canonicalize startup tools [`src/core/pi-usereq-tools.ts`]
|
|
390
|
+
- `dispatchStaticCheckForFile(...)`: instantiate checker by configured module [`src/core/static-check.ts`]
|
|
391
|
+
- `formatStaticCheckModules(...)`: render valid module names for error paths [`src/core/static-check.ts`]
|
|
392
|
+
- `StaticCheckBase.run(...)`: execute dummy checker [`src/core/static-check.ts`]
|
|
393
|
+
- `StaticCheckBase.checkFile(...)`: emit success without external checker [`src/core/static-check.ts`]
|
|
394
|
+
- `StaticCheckBase.headerLine(...)`: format checker header [`src/core/static-check.ts`]
|
|
395
|
+
- `StaticCheckBase.emitLine(...)`: write checker output [`src/core/static-check.ts`]
|
|
396
|
+
- `StaticCheckPylance.run(...)`: execute pyright checker [`src/core/static-check.ts`]
|
|
397
|
+
- `StaticCheckPylance.checkFile(...)`: run pyright-based validation [`src/core/static-check.ts`]
|
|
398
|
+
- `detectPythonExecutable(...)`: resolve Python interpreter [`src/core/static-check.ts`]
|
|
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`]
|
|
409
|
+
- `StaticCheckCommand.checkFile(...)`: run external executable against one file [`src/core/static-check.ts`]
|
|
410
|
+
- `StaticCheckBase.headerLine(...)`: format checker header [`src/core/static-check.ts`]
|
|
411
|
+
- `StaticCheckBase.emitLine(...)`: write checker output [`src/core/static-check.ts`]
|
|
412
|
+
- `runGitCheck(...)`: branch `--git-check`; validate clean git state [`src/core/tool-runner.ts`]
|
|
413
|
+
- `resolveProjectBase(...)`: validate project base path [`src/core/tool-runner.ts`]
|
|
414
|
+
- `loadConfig(...)`: load config or defaults [`src/core/config.ts`]
|
|
415
|
+
- `getProjectConfigPath(...)`: resolve config file path [`src/core/config.ts`]
|
|
416
|
+
- `getDefaultConfig(...)`: build default config [`src/core/config.ts`]
|
|
417
|
+
- `normalizeEnabledPiUsereqTools(...)`: canonicalize startup tools [`src/core/pi-usereq-tools.ts`]
|
|
418
|
+
- `resolveEffectiveGitPath(...)`: derive the effective repository root constrained by `base-path` ancestry [`src/core/tool-runner.ts`]
|
|
419
|
+
- `isSameOrAncestorPath(...)`: validate git-root ancestry against the base path [`src/core/path-context.ts`]
|
|
420
|
+
- `isInsideGitRepo(...)`: probe git repository membership [`src/core/tool-runner.ts`]
|
|
421
|
+
- `runCapture(...)`: run git subprocess [`src/core/tool-runner.ts`]
|
|
422
|
+
- `resolveGitRoot(...)`: resolve repository root [`src/core/tool-runner.ts`]
|
|
423
|
+
- `runCapture(...)`: run git subprocess [`src/core/tool-runner.ts`]
|
|
424
|
+
- `runCapture(...)`: verify worktree membership [`src/core/tool-runner.ts`]
|
|
425
|
+
- `runCapture(...)`: inspect porcelain changes [`src/core/tool-runner.ts`]
|
|
426
|
+
- `runCapture(...)`: resolve symbolic HEAD [`src/core/tool-runner.ts`]
|
|
427
|
+
- `runCapture(...)`: resolve detached HEAD fallback [`src/core/tool-runner.ts`]
|
|
428
|
+
- `runDocsCheck(...)`: branch `--docs-check`; validate canonical docs presence [`src/core/tool-runner.ts`]
|
|
429
|
+
- `resolveProjectBase(...)`: validate project base path [`src/core/tool-runner.ts`]
|
|
430
|
+
- `loadConfig(...)`: load config or defaults [`src/core/config.ts`]
|
|
431
|
+
- `getProjectConfigPath(...)`: resolve config file path [`src/core/config.ts`]
|
|
432
|
+
- `getDefaultConfig(...)`: build default config [`src/core/config.ts`]
|
|
433
|
+
- `normalizeEnabledPiUsereqTools(...)`: canonicalize startup tools [`src/core/pi-usereq-tools.ts`]
|
|
434
|
+
- `runGitWtName(...)`: branch `--git-wt-name`; generate standardized worktree name [`src/core/tool-runner.ts`]
|
|
435
|
+
- `resolveProjectBase(...)`: validate project base path [`src/core/tool-runner.ts`]
|
|
436
|
+
- `loadConfig(...)`: load config or defaults [`src/core/config.ts`]
|
|
437
|
+
- `getProjectConfigPath(...)`: resolve config file path [`src/core/config.ts`]
|
|
438
|
+
- `getDefaultConfig(...)`: build default config [`src/core/config.ts`]
|
|
439
|
+
- `normalizeEnabledPiUsereqTools(...)`: canonicalize startup tools [`src/core/pi-usereq-tools.ts`]
|
|
440
|
+
- `resolveEffectiveGitPath(...)`: derive the effective repository root constrained by `base-path` ancestry [`src/core/tool-runner.ts`]
|
|
441
|
+
- `sanitizeBranchName(...)`: canonicalize current branch token [`src/core/tool-runner.ts`]
|
|
442
|
+
- `runGitWtCreate(...)`: branch `--git-wt-create`; create worktree and copy config [`src/core/tool-runner.ts`]
|
|
443
|
+
- `validateWtName(...)`: validate requested worktree name [`src/core/tool-runner.ts`]
|
|
444
|
+
- `resolveProjectBase(...)`: validate project base path [`src/core/tool-runner.ts`]
|
|
445
|
+
- `loadConfig(...)`: load config or defaults [`src/core/config.ts`]
|
|
446
|
+
- `getProjectConfigPath(...)`: resolve config file path [`src/core/config.ts`]
|
|
447
|
+
- `getDefaultConfig(...)`: build default config [`src/core/config.ts`]
|
|
448
|
+
- `normalizeEnabledPiUsereqTools(...)`: canonicalize startup tools [`src/core/pi-usereq-tools.ts`]
|
|
449
|
+
- `resolveEffectiveGitPath(...)`: derive the effective repository root constrained by `base-path` ancestry [`src/core/tool-runner.ts`]
|
|
450
|
+
- `rollbackWorktreeCreate(...)`: remove partial worktree and branch on copy failure [`src/core/tool-runner.ts`]
|
|
451
|
+
- `runGitWtDelete(...)`: branch `--git-wt-delete`; remove worktree and branch [`src/core/tool-runner.ts`]
|
|
452
|
+
- `resolveProjectBase(...)`: validate project base path [`src/core/tool-runner.ts`]
|
|
453
|
+
- `loadConfig(...)`: load config or defaults [`src/core/config.ts`]
|
|
454
|
+
- `getProjectConfigPath(...)`: resolve config file path [`src/core/config.ts`]
|
|
455
|
+
- `getDefaultConfig(...)`: build default config [`src/core/config.ts`]
|
|
456
|
+
- `normalizeEnabledPiUsereqTools(...)`: canonicalize startup tools [`src/core/pi-usereq-tools.ts`]
|
|
457
|
+
- `resolveEffectiveGitPath(...)`: derive the effective repository root constrained by `base-path` ancestry [`src/core/tool-runner.ts`]
|
|
458
|
+
- `worktreePathExistsExact(...)`: verify exact registered worktree path [`src/core/tool-runner.ts`]
|
|
459
|
+
- `runCapture(...)`: run git worktree list subprocess [`src/core/tool-runner.ts`]
|
|
460
|
+
- `runGitPath(...)`: branch `--git-path`; print configured git root [`src/core/tool-runner.ts`]
|
|
461
|
+
- `resolveProjectBase(...)`: validate project base path [`src/core/tool-runner.ts`]
|
|
462
|
+
- `loadConfig(...)`: load config or defaults [`src/core/config.ts`]
|
|
463
|
+
- `getProjectConfigPath(...)`: resolve config file path [`src/core/config.ts`]
|
|
464
|
+
- `getDefaultConfig(...)`: build default config [`src/core/config.ts`]
|
|
465
|
+
- `normalizeEnabledPiUsereqTools(...)`: canonicalize startup tools [`src/core/pi-usereq-tools.ts`]
|
|
466
|
+
- `resolveEffectiveGitPath(...)`: derive the effective repository root constrained by `base-path` ancestry [`src/core/tool-runner.ts`]
|
|
467
|
+
- `formatRuntimePathForDisplay(...)`: serialize the git path for CLI output [`src/core/path-context.ts`]
|
|
468
|
+
- `runGetBasePath(...)`: branch `--get-base-path`; print configured base path [`src/core/tool-runner.ts`]
|
|
469
|
+
- `resolveProjectBase(...)`: validate project base path [`src/core/tool-runner.ts`]
|
|
470
|
+
- `formatRuntimePathForDisplay(...)`: serialize the base path for CLI output [`src/core/path-context.ts`]
|
|
471
|
+
- `getProjectConfigPath(...)`: resolve config file path [`src/core/config.ts`]
|
|
472
|
+
- `getDefaultConfig(...)`: build default config [`src/core/config.ts`]
|
|
473
|
+
- `normalizeEnabledPiUsereqTools(...)`: canonicalize startup tools [`src/core/pi-usereq-tools.ts`]
|
|
474
|
+
- `writeResult(...)`: emit selected runner result [`src/cli.ts`]
|
|
475
|
+
- `writeStdout(...)`: write stdout payload [`src/cli.ts`]
|
|
476
|
+
- `writeStderr(...)`: write stderr payload [`src/cli.ts`]
|
|
477
|
+
- External Boundaries:
|
|
478
|
+
- Node process APIs for argv, cwd, environment, stdout, stderr, and exit code.
|
|
479
|
+
- Filesystem access for config, docs discovery, source reads, and bundled resources.
|
|
480
|
+
- Git, bash, pyright, ruff, and arbitrary configured checker subprocesses via child-process execution.
|
|
481
|
+
|
|
482
|
+
### `PROC:req-debug`
|
|
483
|
+
- Entrypoints:
|
|
484
|
+
- `main(...)`: bash wrapper runtime root [`scripts/pi-usereq-debug.sh`]
|
|
485
|
+
- Lifecycle/trigger:
|
|
486
|
+
- Start trigger: Bash executes `scripts/pi-usereq-debug.sh` as a one-shot wrapper.
|
|
487
|
+
- Stop trigger: returns delegated harness exit status or local validation failure.
|
|
488
|
+
- Looping model: single-pass subcommand dispatch with no persistent loop.
|
|
489
|
+
- Threads: no explicit threads detected.
|
|
490
|
+
- Startup invariant: script body resolves `TSX_BIN` through `resolve_tsx_binary(...)` before invoking `main(...)`.
|
|
491
|
+
- Internal Call-Trace Tree:
|
|
492
|
+
- `main(...)`: parse wrapper subcommand, normalize prompt and tool convenience aliases, rewrite tool `--args` when requested, and delegate to the TypeScript harness [`scripts/pi-usereq-debug.sh`]
|
|
493
|
+
- `print_usage(...)`: render wrapper usage text for help and empty invocation [`scripts/pi-usereq-debug.sh`]
|
|
494
|
+
- `require_value(...)`: validate required command, prompt, tool, or raw operands [`scripts/pi-usereq-debug.sh`]
|
|
495
|
+
- `contains_exact_option(...)`: detect forwarded `--args` or `--params` tokens for command and prompt replay [`scripts/pi-usereq-debug.sh`]
|
|
496
|
+
- `contains_long_option(...)`: detect explicit long options before inferring positional payloads [`scripts/pi-usereq-debug.sh`]
|
|
497
|
+
- `normalize_prompt_name(...)`: map bare prompt aliases to registered `req-*` command names [`scripts/pi-usereq-debug.sh`]
|
|
498
|
+
- `forward_tool_subcommand(...)`: normalize wrapper tool forwarding and rewrite `--args` into `--params` JSON when present [`scripts/pi-usereq-debug.sh`]
|
|
499
|
+
- `build_tool_params_json(...)`: spawn the tool-argument converter and capture serialized JSON params [`scripts/pi-usereq-debug.sh`]
|
|
500
|
+
- `run_debug_extension(...)`: enter repository root, apply default `--cwd` and `--extension`, and spawn the TypeScript harness [`scripts/pi-usereq-debug.sh`]
|
|
501
|
+
- External Boundaries:
|
|
502
|
+
- Bash shell argument expansion, stdout, and stderr handling.
|
|
503
|
+
- `git rev-parse`, `ln -s`, and resolved `tsx` executable lookup triggered by `resolve_tsx_binary(...)` during startup.
|
|
504
|
+
- Child-process execution of `scripts/tool-args-to-params.ts` and `scripts/debug-extension.ts`.
|
|
505
|
+
|
|
506
|
+
### `PROC:tool-args-to-params`
|
|
507
|
+
- Entrypoints:
|
|
508
|
+
- `main(...)`: tool-argument conversion runtime root [`scripts/tool-args-to-params.ts`]
|
|
509
|
+
- Lifecycle/trigger:
|
|
510
|
+
- Start trigger: `PROC:req-debug` executes `scripts/tool-args-to-params.ts` for tool subcommands that pass wrapper `--args`.
|
|
511
|
+
- Stop trigger: returns numeric exit code after one conversion path or caught `ReqError`.
|
|
512
|
+
- Looping model: single-pass argument parse followed by one conversion decision.
|
|
513
|
+
- Threads: no explicit threads detected.
|
|
514
|
+
- Internal Call-Trace Tree:
|
|
515
|
+
- `main(...)`: parse argv, convert wrapper tool args text into JSON params, and serialize the result [`scripts/tool-args-to-params.ts`]
|
|
516
|
+
- `parseCliArgs(...)`: map converter CLI options into one normalized request [`scripts/tool-args-to-params.ts`]
|
|
517
|
+
- `buildToolParamsFromArgsText(...)`: tokenize wrapper args text and map it to one tool-parameter object [`scripts/tool-args-to-params.ts`]
|
|
518
|
+
- `shellSplit(...)`: split shell-style text into ordered tokens [`src/core/utils.ts`]
|
|
519
|
+
- `takeBooleanFlag(...)`: remove supported boolean flags while preserving positional order [`scripts/tool-args-to-params.ts`]
|
|
520
|
+
- `writeStdout(...)`: emit serialized JSON params or usage text [`scripts/tool-args-to-params.ts`]
|
|
521
|
+
- `writeStderr(...)`: emit conversion diagnostics on error paths [`scripts/tool-args-to-params.ts`]
|
|
522
|
+
- External Boundaries:
|
|
523
|
+
- Node process APIs for argv, stdout, stderr, and exit code.
|
|
524
|
+
|
|
525
|
+
### `PROC:debug-ext`
|
|
526
|
+
- Entrypoints:
|
|
527
|
+
- `main(...)`: debug-harness runtime root [`scripts/debug-extension.ts`]
|
|
528
|
+
- Lifecycle/trigger:
|
|
529
|
+
- Start trigger: Node executes `scripts/debug-extension.ts` as a one-shot command.
|
|
530
|
+
- Stop trigger: returns numeric exit code after one harness subcommand or caught `ReqError`.
|
|
531
|
+
- Looping model: single-pass argument parse followed by single branch dispatch.
|
|
532
|
+
- Threads: no explicit threads detected.
|
|
533
|
+
- Internal Call-Trace Tree:
|
|
534
|
+
- `main(...)`: parse argv, dispatch inspect/session-start/command/tool/sdk-smoke, and serialize the selected report [`scripts/debug-extension.ts`]
|
|
535
|
+
- `parseArgs(...)`: map argv tokens into harness subcommand options [`scripts/debug-extension.ts`]
|
|
536
|
+
- `parseJsonObject(...)`: parse JSON object options for tool and session replay [`scripts/debug-extension.ts`]
|
|
537
|
+
- `inspectExtension(...)`: load the extension as a black box, capture registrations, and render the manual [`scripts/lib/extension-debug-harness.ts`]
|
|
538
|
+
- `registerExtensionOffline(...)`: resolve paths, load the extension default export, and invoke registration under the requested cwd [`scripts/lib/extension-debug-harness.ts`]
|
|
539
|
+
- `resolveHarnessPaths(...)`: validate working-directory and extension-entry paths [`scripts/lib/extension-debug-harness.ts`]
|
|
540
|
+
- `loadExtensionFactory(...)`: dynamically import the extension default export [`scripts/lib/extension-debug-harness.ts`]
|
|
541
|
+
- `withProcessCwd(...)`: execute registration under the requested cwd [`scripts/lib/extension-debug-harness.ts`]
|
|
542
|
+
- `piUsereqExtension(...)`: register extension commands, tools, shortcuts, and lifecycle hooks [`src/index.ts`]
|
|
543
|
+
- `ensureBundledResourcesAccessible(...)`: validate installation-owned bundled resources before registration [`src/core/resources.ts`]
|
|
544
|
+
- `registerPromptCommands(...)`: register bundled `req-*` prompt commands [`src/index.ts`]
|
|
545
|
+
- `registerAgentTools(...)`: register structured agent tools [`src/index.ts`]
|
|
546
|
+
- `registerConfigCommands(...)`: register configuration commands [`src/index.ts`]
|
|
547
|
+
- `registerPiNotifyShortcut(...)`: register the configured successful-run sound shortcut when the runtime supports shortcuts [`src/index.ts`]
|
|
548
|
+
- `loadProjectConfig(...)`: load the current project config for shortcut registration [`src/index.ts`]
|
|
549
|
+
- `getProjectBase(...)`: resolve project base from command context cwd [`src/index.ts`]
|
|
550
|
+
- `loadConfig(...)`: load config or defaults [`src/core/config.ts`]
|
|
551
|
+
- `getProjectConfigPath(...)`: resolve config file path [`src/core/config.ts`]
|
|
552
|
+
- `getDefaultConfig(...)`: build default config [`src/core/config.ts`]
|
|
553
|
+
- `normalizeEnabledPiUsereqTools(...)`: canonicalize startup tools [`src/core/pi-usereq-tools.ts`]
|
|
554
|
+
- `normalizePiNotifySoundLevel(...)`: normalize persisted sound level [`src/core/pi-notify.ts`]
|
|
555
|
+
- `normalizePiNotifyShortcut(...)`: normalize persisted shortcut [`src/core/pi-notify.ts`]
|
|
556
|
+
- `normalizePiNotifyCommand(...)`: normalize persisted sound commands [`src/core/pi-notify.ts`]
|
|
557
|
+
- `isInsideGitRepo(...)`: probe git repository membership [`src/core/tool-runner.ts`]
|
|
558
|
+
- `resolveGitRoot(...)`: resolve repository root [`src/core/tool-runner.ts`]
|
|
559
|
+
- `buildDebugManual(...)`: render mode and per-command/per-tool examples, including JSON-oriented token-tool examples [`scripts/lib/extension-debug-harness.ts`]
|
|
560
|
+
- `replaySessionStart(...)`: replay recorded `session_start` handlers and capture resulting UI state [`scripts/lib/extension-debug-harness.ts`]
|
|
561
|
+
- `registerExtensionOffline(...)`: rebuild the recorded extension registration surface [`scripts/lib/extension-debug-harness.ts`]
|
|
562
|
+
- `RecordingCommandContext(...)`: initialize the recorded command-context UI adapter and deterministic theme-color encoding [`scripts/lib/recording-extension-api.ts`]
|
|
563
|
+
- `withProcessCwd(...)`: execute `session_start` under the requested cwd [`scripts/lib/extension-debug-harness.ts`]
|
|
564
|
+
- `loadProjectConfig(...)`: session-start configuration load [`src/index.ts`]
|
|
565
|
+
- `getProjectBase(...)`: resolve project base from command context cwd [`src/index.ts`]
|
|
566
|
+
- `loadConfig(...)`: load config or defaults [`src/core/config.ts`]
|
|
567
|
+
- `isInsideGitRepo(...)`: probe git repository membership [`src/core/tool-runner.ts`]
|
|
568
|
+
- `resolveGitRoot(...)`: resolve repository root [`src/core/tool-runner.ts`]
|
|
569
|
+
- `handleExtensionStatusEvent(...)`: process the replayed `session_start` payload through shared status telemetry helpers [`src/index.ts`]
|
|
570
|
+
- `loadProjectConfig(...)`: session-start configuration load [`src/index.ts`]
|
|
571
|
+
- `getProjectBase(...)`: resolve project base from command context cwd [`src/index.ts`]
|
|
572
|
+
- `loadConfig(...)`: load config or defaults [`src/core/config.ts`]
|
|
573
|
+
- `getProjectConfigPath(...)`: resolve config file path [`src/core/config.ts`]
|
|
574
|
+
- `getDefaultConfig(...)`: build default config [`src/core/config.ts`]
|
|
575
|
+
- `normalizeEnabledPiUsereqTools(...)`: canonicalize startup tools [`src/core/pi-usereq-tools.ts`]
|
|
576
|
+
- `isInsideGitRepo(...)`: probe git repository membership [`src/core/tool-runner.ts`]
|
|
577
|
+
- `resolveGitRoot(...)`: resolve repository root [`src/core/tool-runner.ts`]
|
|
578
|
+
- `applyConfiguredPiUsereqTools(...)`: enforce configured active tools against the offline runtime inventory [`src/index.ts`]
|
|
579
|
+
- `getConfiguredEnabledPiUsereqTools(...)`: canonicalize configured enabled tools [`src/index.ts`]
|
|
580
|
+
- `normalizeEnabledPiUsereqTools(...)`: canonicalize configurable active tools [`src/core/pi-usereq-tools.ts`]
|
|
581
|
+
- `RecordingExtensionAPI.getAllTools(...)`: expose supported builtin plus extension tool inventory [`scripts/lib/recording-extension-api.ts`]
|
|
582
|
+
- `RecordingExtensionAPI.getBuiltinTools(...)`: synthesize supported builtin tool descriptors [`scripts/lib/recording-extension-api.ts`]
|
|
583
|
+
- `buildBuiltinToolDefinition(...)`: build one builtin tool descriptor [`scripts/lib/recording-extension-api.ts`]
|
|
584
|
+
- `buildBuiltinSourceInfo(...)`: synthesize builtin provenance metadata [`scripts/lib/recording-extension-api.ts`]
|
|
585
|
+
- `getPiUsereqStartupTools(...)`: enumerate configurable tools from runtime inventory [`src/index.ts`]
|
|
586
|
+
- `RecordingExtensionAPI.getActiveTools(...)`: expose current active-tool set [`scripts/lib/recording-extension-api.ts`]
|
|
587
|
+
- `RecordingExtensionAPI.setActiveTools(...)`: replace active-tool set with runtime-visible names [`scripts/lib/recording-extension-api.ts`]
|
|
588
|
+
- `RecordingExtensionAPI.getAllTools(...)`: expose supported builtin plus extension tool inventory [`scripts/lib/recording-extension-api.ts`]
|
|
589
|
+
- `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`]
|
|
591
|
+
- `refreshContextUsage(...)`: sync the latest context-usage snapshot [`src/core/extension-status.ts`]
|
|
592
|
+
- `RecordingCommandContext.getContextUsage(...)`: return the offline context-usage placeholder [`scripts/lib/recording-extension-api.ts`]
|
|
593
|
+
- `syncPiUsereqStatusTicker(...)`: start or stop the live elapsed-time ticker [`src/core/extension-status.ts`]
|
|
594
|
+
- `renderPiUsereqStatus(...)`: render the git/base/docs/tests/src/tools/context/elapsed/last/beep/sound footer with CLI-theme token overlays [`src/core/extension-status.ts`]
|
|
595
|
+
- `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 active-theme field and overlay semantics [`src/core/extension-status.ts`]
|
|
597
|
+
- `formatStatusField(...)`: render one colored text field [`src/core/extension-status.ts`]
|
|
598
|
+
- `formatRenderedStatusField(...)`: render one pre-styled field [`src/core/extension-status.ts`]
|
|
599
|
+
- `formatContextUsageBar(...)`: render the 5-cell context bar or threshold-specific overlay [`src/core/extension-status.ts`]
|
|
600
|
+
- `resolveContextUsageOverlay(...)`: choose `CLEAR` or `FULL!` overlay states with CLI-supported theme tokens [`src/core/extension-status.ts`]
|
|
601
|
+
- `formatContextUsageOverlay(...)`: paint the fixed-width overlay with preserved bar background [`src/core/extension-status.ts`]
|
|
602
|
+
- `formatStatusDuration(...)`: render `M:SS` durations [`src/core/extension-status.ts`]
|
|
603
|
+
- `formatPiNotifyBeepStatus(...)`: serialize enabled beep flags for the footer [`src/core/pi-notify.ts`]
|
|
604
|
+
- `runPiNotifyEffects(...)`: dispatch configured terminal beeps and successful-run sound hooks on `agent_end` [`src/core/pi-notify.ts`]
|
|
605
|
+
- `classifyPiNotifyOutcome(...)`: map assistant stop reasons to `end`, `esc`, or `err` [`src/core/pi-notify.ts`]
|
|
606
|
+
- `hasAgentEndStopReason(...)`: scan assistant stop reasons inside the `agent_end` payload [`src/core/pi-notify.ts`]
|
|
607
|
+
- `buildPiNotifyTitle(...)`: build the stable pi-notify title [`src/core/pi-notify.ts`]
|
|
608
|
+
- `buildPiNotifyBody(...)`: build the stable pi-notify body from the classified outcome [`src/core/pi-notify.ts`]
|
|
609
|
+
- `notifyPiTerminal(...)`: route terminal notifications by runtime environment when the matching beep flag is enabled [`src/core/pi-notify.ts`]
|
|
610
|
+
- `notifyWindows(...)`: emit Windows toast notifications [`src/core/pi-notify.ts`]
|
|
611
|
+
- `notifyOSC99(...)`: emit Kitty OSC 99 notifications [`src/core/pi-notify.ts`]
|
|
612
|
+
- `notifyOSC9(...)`: emit OSC 9 notifications [`src/core/pi-notify.ts`]
|
|
613
|
+
- `notifyOSC777(...)`: emit OSC 777 notifications [`src/core/pi-notify.ts`]
|
|
614
|
+
- `runPiNotifySoundCommand(...)`: execute the configured successful-run sound command when sound is enabled [`src/core/pi-notify.ts`]
|
|
615
|
+
- `resolvePiNotifySoundCommand(...)`: select the configured command for `low`, `mid`, or `high` [`src/core/pi-notify.ts`]
|
|
616
|
+
- `substitutePiNotifyInstallPath(...)`: replace `%%INSTALLATION_PATH%%` before shell execution [`src/core/pi-notify.ts`]
|
|
617
|
+
- `quotePiNotifyInstallPath(...)`: quote the installation path for shell reuse [`src/core/pi-notify.ts`]
|
|
618
|
+
- `getInstallationPath(...)`: resolve the installed extension root [`src/core/path-context.ts`]
|
|
619
|
+
- `replayCommand(...)`: replay a recorded command handler and capture prompt/UI side effects [`scripts/lib/extension-debug-harness.ts`]
|
|
620
|
+
- `registerExtensionOffline(...)`: rebuild the recorded extension registration surface [`scripts/lib/extension-debug-harness.ts`]
|
|
621
|
+
- `RecordingCommandContext(...)`: initialize the recorded command-context UI adapter and deterministic theme-color encoding [`scripts/lib/recording-extension-api.ts`]
|
|
622
|
+
- `withProcessCwd(...)`: execute the named command under the requested cwd [`scripts/lib/extension-debug-harness.ts`]
|
|
623
|
+
- `ensureBundledResourcesAccessible(...)`: validate installation-owned bundled resources when invoking `req-*` handlers [`src/core/resources.ts`]
|
|
624
|
+
- `getProjectBase(...)`: resolve command project base [`src/index.ts`]
|
|
625
|
+
- `loadProjectConfig(...)`: load command runtime config [`src/index.ts`]
|
|
626
|
+
- `renderPrompt(...)`: render prompt-command payloads with conditional pi.dev API-contract guidance [`src/core/prompts.ts`]
|
|
627
|
+
- `deliverPromptCommand(...)`: dispatch prompt replay into the current recorded session [`src/index.ts`]
|
|
628
|
+
- External boundaries: `RecordingExtensionAPI.sendUserMessage(...)` records the delivered prompt payload.
|
|
629
|
+
- `configurePiUsereq(...)`: execute the interactive configuration menu [`src/index.ts`]
|
|
630
|
+
- `showPiUsereqSettingsMenu(...)`: render the shared settings-menu UI for top-level and submenu actions [`src/core/settings-menu.ts`]
|
|
631
|
+
- `formatPiUsereqSettingsMenuTitle(...)`: rebuild the menu title with active-theme semantics [`src/core/settings-menu.ts`]
|
|
632
|
+
- `buildPiUsereqSettingsListTheme(...)`: prefer shared CLI settings-list theming and fall back during offline replay [`src/core/settings-menu.ts`]
|
|
633
|
+
- `buildFallbackPiUsereqSettingsListTheme(...)`: mirror CLI settings-list token roles from the callback-local theme [`src/core/settings-menu.ts`]
|
|
634
|
+
- `saveProjectConfig(...)`: persist menu updates on save-and-close [`src/index.ts`]
|
|
635
|
+
- `setPiUsereqStatusConfig(...)`: cache the saved config for footer rendering [`src/core/extension-status.ts`]
|
|
636
|
+
- `renderPiUsereqStatus(...)`: render the docs/tests/src/tools/context/elapsed/last/beep/sound footer after save-and-close with CLI-theme token overlays [`src/core/extension-status.ts`]
|
|
637
|
+
- `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 active-theme field and overlay semantics [`src/core/extension-status.ts`]
|
|
639
|
+
- `formatStatusField(...)`: render one colored text field [`src/core/extension-status.ts`]
|
|
640
|
+
- `formatRenderedStatusField(...)`: render one pre-styled field [`src/core/extension-status.ts`]
|
|
641
|
+
- `formatContextUsageBar(...)`: render the 5-cell context bar or threshold-specific overlay [`src/core/extension-status.ts`]
|
|
642
|
+
- `formatStatusDuration(...)`: render `M:SS` durations [`src/core/extension-status.ts`]
|
|
643
|
+
- `formatPiNotifyBeepStatus(...)`: serialize enabled beep flags for the footer [`src/core/pi-notify.ts`]
|
|
644
|
+
- `configureStaticCheckMenu(...)`: interactive static-check editor [`src/index.ts`]
|
|
645
|
+
- `configurePiUsereqToolsMenu(...)`: interactive active-tool editor [`src/index.ts`]
|
|
646
|
+
- `configurePiNotifyMenu(...)`: interactive pi-notify editor [`src/index.ts`]
|
|
647
|
+
- `buildPiNotifyMenuChoices(...)`: serialize notification actions for the shared settings menu [`src/index.ts`]
|
|
648
|
+
- `togglePiNotifyBeepFlag(...)`: toggle one prompt-end beep flag [`src/index.ts`]
|
|
649
|
+
- `replayTool(...)`: replay a recorded tool execute handler and capture content/details [`scripts/lib/extension-debug-harness.ts`]
|
|
650
|
+
- `registerExtensionOffline(...)`: rebuild the recorded extension registration surface [`scripts/lib/extension-debug-harness.ts`]
|
|
651
|
+
- `RecordingCommandContext(...)`: initialize the recorded command-context UI adapter and deterministic theme-color encoding [`scripts/lib/recording-extension-api.ts`]
|
|
652
|
+
- `withProcessCwd(...)`: execute the named tool under the requested cwd [`scripts/lib/extension-debug-harness.ts`]
|
|
653
|
+
- `ensureBundledResourcesAccessible(...)`: validate installation-owned bundled resources for tool executes that need them [`src/core/resources.ts`]
|
|
654
|
+
- `getProjectBase(...)`: resolve tool project base [`src/index.ts`]
|
|
655
|
+
- `loadProjectConfig(...)`: load tool runtime config [`src/index.ts`]
|
|
656
|
+
- `buildTokenToolPayload(...)`: construct agent-oriented token JSON with separated source facts, metrics, and guidance [`src/core/token-counter.ts`]
|
|
657
|
+
- `probeRequestedPath(...)`: classify requested paths as readable files, missing inputs, or non-file inputs [`src/core/token-counter.ts`]
|
|
658
|
+
- `countFilesMetrics(...)`: read readable files and extract token, character, byte, line, heading, and optional Doxygen facts [`src/core/token-counter.ts`]
|
|
659
|
+
- `buildCountFileMetricsResult(...)`: assemble direct-access per-file metrics and metadata [`src/core/token-counter.ts`]
|
|
660
|
+
- `TokenCounter.countTokens(...)`: encode content and count tokens [`src/core/token-counter.ts`]
|
|
661
|
+
- `TokenCounter.countChars(...)`: count characters [`src/core/token-counter.ts`]
|
|
662
|
+
- `countLines(...)`: count logical lines [`src/core/token-counter.ts`]
|
|
663
|
+
- `inferLanguageName(...)`: infer agent-oriented language labels [`src/core/token-counter.ts`]
|
|
664
|
+
- `extractPrimaryHeadingText(...)`: extract the first markdown heading when present [`src/core/token-counter.ts`]
|
|
665
|
+
- `extractLeadingDoxygenFields(...)`: extract file-level Doxygen fields when present [`src/core/token-counter.ts`]
|
|
666
|
+
- `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
|
+
- `buildTokenToolExecuteResult(...)`: wrap token payloads into tool content and structured details [`src/index.ts`]
|
|
669
|
+
- `buildTokenToolExecutionStderr(...)`: serialize skipped and error observations into stderr text [`src/index.ts`]
|
|
670
|
+
- `buildStructuredToolExecuteResult(...)`: mirror the final JSON object into tool content and details [`src/core/agent-tool-json.ts`]
|
|
671
|
+
- `buildReferenceToolPayload(...)`: construct agent-oriented references JSON with repository structure, symbols, and Doxygen fields [`src/core/reference-payload.ts`]
|
|
672
|
+
- `canonicalizeReferencePath(...)`: normalize request and file paths against the project base [`src/core/reference-payload.ts`]
|
|
673
|
+
- `analyzeReferenceFile(...)`: analyze one processable file into structured imports, symbols, and comments [`src/core/reference-payload.ts`]
|
|
674
|
+
- `buildRepositoryTree(...)`: materialize the repository directory tree as structured JSON [`src/core/reference-payload.ts`]
|
|
675
|
+
- `buildReferenceToolExecuteResult(...)`: wrap references payloads into tool content and structured details [`src/index.ts`]
|
|
676
|
+
- `buildStructuredToolExecuteResult(...)`: mirror the final JSON object into tool content and details [`src/core/agent-tool-json.ts`]
|
|
677
|
+
- `buildCompressToolPayload(...)`: construct agent-oriented compression JSON with structured line facts, symbols, and Doxygen fields [`src/core/compress-payload.ts`]
|
|
678
|
+
- `analyzeCompressFile(...)`: compress one requested file and attach symbol metadata when available [`src/core/compress-payload.ts`]
|
|
679
|
+
- `compressFileDetailed(...)`: compress one file into structured lines and rendered text [`src/core/compress.ts`]
|
|
680
|
+
- `analyzeCompressedFileSymbols(...)`: extract symbol and Doxygen records for compressed files [`src/core/compress-payload.ts`]
|
|
681
|
+
- `buildCompressionToolExecuteResult(...)`: wrap compression payloads into tool content and structured details [`src/index.ts`]
|
|
682
|
+
- `buildCompressToolExecutionStderr(...)`: serialize skipped, error, and symbol-analysis warning entries [`src/core/compress-payload.ts`]
|
|
683
|
+
- `buildStructuredToolExecuteResult(...)`: mirror the final JSON object into tool content and details [`src/core/agent-tool-json.ts`]
|
|
684
|
+
- `buildFindToolSchemaDescription(...)`: synthesize find parameter-schema descriptions [`src/index.ts`]
|
|
685
|
+
- `buildFindToolPromptGuidelines(...)`: synthesize agent-oriented find guidance strings [`src/index.ts`]
|
|
686
|
+
- `buildFindToolSupportedTagGuidelines(...)`: emit per-language supported-tag guidance lines [`src/index.ts`]
|
|
687
|
+
- `buildFindToolPayload(...)`: construct agent-oriented construct-search JSON with structured file statuses, matches, line facts, and Doxygen fields [`src/core/find-payload.ts`]
|
|
688
|
+
- `validateTagFilter(...)`: normalize requested construct tags [`src/core/find-payload.ts`]
|
|
689
|
+
- `validateRegexPattern(...)`: compile the construct-name regex [`src/core/find-payload.ts`]
|
|
690
|
+
- `analyzeFindFile(...)`: analyze one requested file into structured search status and match records [`src/core/find-payload.ts`]
|
|
691
|
+
- `buildMatchEntry(...)`: structure one matched construct with typed lines and Doxygen fields [`src/core/find-payload.ts`]
|
|
692
|
+
- `buildStrippedConstructLineEntries(...)`: strip comments into structured code lines [`src/core/find-constructs.ts`]
|
|
693
|
+
- `buildFindToolExecuteResult(...)`: wrap construct-search payloads into tool content and structured details [`src/index.ts`]
|
|
694
|
+
- `buildFindToolExecutionStderr(...)`: serialize invalid-request, skipped, no-match, and analysis-error diagnostics [`src/core/find-payload.ts`]
|
|
695
|
+
- `buildStructuredToolExecuteResult(...)`: mirror the final JSON object into tool content and details [`src/core/agent-tool-json.ts`]
|
|
696
|
+
- `runGitPath(...)`: query the resolved git-path value [`src/core/tool-runner.ts`]
|
|
697
|
+
- `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`]
|
|
699
|
+
- `runFilesStaticCheck(...)`: execute configured checkers for explicit-file requests [`src/core/tool-runner.ts`]
|
|
700
|
+
- `collectProjectStaticCheckSelection(...)`: derive project static-check file selections and fixture exclusions [`src/index.ts`]
|
|
701
|
+
- `runProjectStaticCheck(...)`: execute configured checkers for project source and test selections [`src/core/tool-runner.ts`]
|
|
702
|
+
- `buildStaticCheckToolPayload(...)`: structure static-check request, file-selection, and execution facts [`src/core/agent-tool-json.ts`]
|
|
703
|
+
- `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`]
|
|
706
|
+
- `runGitWtName(...)`: generate the standardized worktree name [`src/core/tool-runner.ts`]
|
|
707
|
+
- `buildWorktreeNameToolPayload(...)`: structure worktree-name generation facts [`src/core/agent-tool-json.ts`]
|
|
708
|
+
- `runGitWtCreate(...)`: create a dedicated worktree and branch [`src/core/tool-runner.ts`]
|
|
709
|
+
- `runGitWtDelete(...)`: delete a dedicated worktree and branch [`src/core/tool-runner.ts`]
|
|
710
|
+
- `buildWorktreeMutationToolPayload(...)`: structure worktree create/delete facts [`src/core/agent-tool-json.ts`]
|
|
711
|
+
- `buildToolExecutionSection(...)`: normalize stdout, stderr, and exit-code metadata [`src/core/agent-tool-json.ts`]
|
|
712
|
+
- `normalizeToolFailure(...)`: convert `ReqError` failures into structured execution records [`src/core/agent-tool-json.ts`]
|
|
713
|
+
- `runSdkSmoke(...)`: replay offline `session_start`, probe the official SDK runtime, and compare inventories [`scripts/lib/sdk-smoke.ts`]
|
|
714
|
+
- `replaySessionStart(...)`: capture the offline `session_start` contract [`scripts/lib/extension-debug-harness.ts`]
|
|
715
|
+
- `probeSdkRuntime(...)`: load the official SDK runtime and extract extension-owned inventory [`scripts/lib/sdk-smoke.ts`]
|
|
716
|
+
- `resolveHarnessPaths(...)`: validate working-directory and extension-entry paths [`scripts/lib/extension-debug-harness.ts`]
|
|
717
|
+
- `extractSdkApi(...)`: locate the runtime inventory surface [`scripts/lib/sdk-smoke.ts`]
|
|
718
|
+
- `normalizeCommandRecord(...)`: normalize SDK command metadata [`scripts/lib/sdk-smoke.ts`]
|
|
719
|
+
- `normalizeSourceInfo(...)`: normalize command provenance fields [`scripts/lib/sdk-smoke.ts`]
|
|
720
|
+
- `normalizePathValue(...)`: normalize source paths relative to project root [`scripts/lib/sdk-smoke.ts`]
|
|
721
|
+
- `normalizeToolRecord(...)`: normalize SDK tool metadata [`scripts/lib/sdk-smoke.ts`]
|
|
722
|
+
- `normalizeSourceInfo(...)`: normalize tool provenance fields [`scripts/lib/sdk-smoke.ts`]
|
|
723
|
+
- `normalizePathValue(...)`: normalize source paths relative to project root [`scripts/lib/sdk-smoke.ts`]
|
|
724
|
+
- `buildParityReport(...)`: compare offline and SDK inventories [`scripts/lib/sdk-smoke.ts`]
|
|
725
|
+
- `compareCommandInventories(...)`: detect command-name, description, and provenance mismatches [`scripts/lib/sdk-smoke.ts`]
|
|
726
|
+
- `compareToolInventories(...)`: detect tool-name, description, schema-presence, and provenance mismatches [`scripts/lib/sdk-smoke.ts`]
|
|
727
|
+
- `compareActiveTools(...)`: detect active-tool mismatches after `session_start` [`scripts/lib/sdk-smoke.ts`]
|
|
728
|
+
- `formatReport(...)`: serialize the selected report as JSON or markdown [`scripts/debug-extension.ts`]
|
|
729
|
+
- `formatJson(...)`: serialize a machine-readable payload [`scripts/debug-extension.ts`]
|
|
730
|
+
- `formatInspectReport(...)`: render offline inspection markdown [`scripts/debug-extension.ts`]
|
|
731
|
+
- `formatSessionStartReport(...)`: render `session_start` replay markdown [`scripts/debug-extension.ts`]
|
|
732
|
+
- `formatCommandReplayReport(...)`: render command replay markdown [`scripts/debug-extension.ts`]
|
|
733
|
+
- `formatToolReplayReport(...)`: render tool replay markdown [`scripts/debug-extension.ts`]
|
|
734
|
+
- `formatSdkSmokeReport(...)`: render parity markdown [`scripts/debug-extension.ts`]
|
|
735
|
+
- `writeStdout(...)`: emit the final report payload [`scripts/debug-extension.ts`]
|
|
736
|
+
- `writeStderr(...)`: emit CLI failure diagnostics on error paths [`scripts/debug-extension.ts`]
|
|
737
|
+
- External Boundaries:
|
|
738
|
+
- Dynamic module loading for the target extension entry and optional `@mariozechner/pi-coding-agent` SDK package.
|
|
739
|
+
- Filesystem validation for requested cwd and extension paths.
|
|
740
|
+
- Any filesystem, git, or subprocess side effects triggered indirectly by the registered extension handlers during replay.
|
|
741
|
+
|
|
742
|
+
### `PROC:pi-host`
|
|
743
|
+
- Entrypoints:
|
|
744
|
+
- `piUsereqExtension(...)`: extension activation root [`src/index.ts`]
|
|
745
|
+
- `configurePiUsereq(...)`: named callback body for interactive configuration [`src/index.ts`]
|
|
746
|
+
- Lifecycle/trigger:
|
|
747
|
+
- Start trigger: pi extension host imports the default export from `src/index.ts` and invokes `piUsereqExtension(...)`.
|
|
748
|
+
- Runtime trigger: registered commands, registered tools, and lifecycle-hook callbacks are invoked by external pi runtime.
|
|
749
|
+
- Stop trigger: host lifecycle is external; each callback returns control after completion.
|
|
750
|
+
- Looping model: event-driven callbacks; menu handlers loop until user selects exit or back.
|
|
751
|
+
- Threads: no explicit threads detected.
|
|
752
|
+
- Internal Call-Trace Tree:
|
|
753
|
+
- `piUsereqExtension(...)`: initialize resources, register commands, tools, shortcuts, and lifecycle-hook telemetry wrappers [`src/index.ts`]
|
|
754
|
+
- `ensureBundledResourcesAccessible(...)`: validate installation-owned bundled resources [`src/core/resources.ts`]
|
|
755
|
+
- `getBundledResourceRoot(...)`: resolve installation-owned resource root [`src/core/resources.ts`]
|
|
756
|
+
- `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`]
|
|
758
|
+
- `ensureBundledResourcesAccessible(...)`: validate installation-owned bundled resources before prompt render [`src/core/resources.ts`]
|
|
759
|
+
- `getBundledResourceRoot(...)`: resolve installation-owned resource root [`src/core/resources.ts`]
|
|
760
|
+
- `getInstallationPath(...)`: resolve the installed extension root from the executing module [`src/core/path-context.ts`]
|
|
761
|
+
- `getProjectBase(...)`: resolve project base from command context cwd [`src/index.ts`]
|
|
762
|
+
- `loadProjectConfig(...)`: load config and normalize persisted directory paths for command context [`src/index.ts`]
|
|
763
|
+
- `getProjectBase(...)`: resolve project base from command context cwd [`src/index.ts`]
|
|
764
|
+
- `loadConfig(...)`: load config or defaults [`src/core/config.ts`]
|
|
765
|
+
- `getProjectConfigPath(...)`: resolve config file path [`src/core/config.ts`]
|
|
766
|
+
- `getDefaultConfig(...)`: build default config [`src/core/config.ts`]
|
|
767
|
+
- `normalizeEnabledPiUsereqTools(...)`: canonicalize startup tools [`src/core/pi-usereq-tools.ts`]
|
|
768
|
+
- `isInsideGitRepo(...)`: probe git repository membership [`src/core/tool-runner.ts`]
|
|
769
|
+
- `runCapture(...)`: run git subprocess [`src/core/tool-runner.ts`]
|
|
770
|
+
- `resolveGitRoot(...)`: resolve repository root [`src/core/tool-runner.ts`]
|
|
771
|
+
- `runCapture(...)`: run git subprocess [`src/core/tool-runner.ts`]
|
|
772
|
+
- `renderPrompt(...)`: render prompt template with project substitutions and conditional pi.dev API-contract guidance [`src/core/prompts.ts`]
|
|
773
|
+
- `readBundledPrompt(...)`: read bundled prompt template [`src/core/resources.ts`]
|
|
774
|
+
- `ensureBundledResourcesAccessible(...)`: validate installation-owned bundled resources [`src/core/resources.ts`]
|
|
775
|
+
- `getBundledResourceRoot(...)`: resolve installation-owned resource root [`src/core/resources.ts`]
|
|
776
|
+
- `getInstallationPath(...)`: resolve the installed extension root from the executing module [`src/core/path-context.ts`]
|
|
777
|
+
- `buildPromptReplacementPaths(...)`: build replacement token map including installation-owned template and guideline paths [`src/core/config.ts`]
|
|
778
|
+
- `buildRuntimePathContext(...)`: derive installation, execution, base, config, docs, tests, source, and git paths [`src/core/path-context.ts`]
|
|
779
|
+
- `getInstallationPath(...)`: resolve the installed extension root from the executing module [`src/core/path-context.ts`]
|
|
780
|
+
- `getConfigPath(...)`: derive the `.pi-usereq/config.json` path [`src/core/path-context.ts`]
|
|
781
|
+
- `buildRuntimePathFacts(...)`: convert runtime paths into prompt-visible path strings [`src/core/path-context.ts`]
|
|
782
|
+
- `formatRuntimePathForDisplay(...)`: serialize user-home-relative paths with environment variables [`src/core/path-context.ts`]
|
|
783
|
+
- `formatRuntimePathForDisplay(...)`: serialize guideline file paths for prompt substitution [`src/core/path-context.ts`]
|
|
784
|
+
- `applyReplacements(...)`: substitute token values [`src/core/prompts.ts`]
|
|
785
|
+
- `injectPiDevConformanceBlock(...)`: add conditional pi.dev manifest review and API-contract guidance for prompt workflows [`src/core/prompts.ts`]
|
|
786
|
+
- `buildPiDevConformanceBlock(...)`: resolve manifest-gated pi.dev review and API-compliance rules [`src/core/prompts.ts`]
|
|
787
|
+
- `adaptPromptForInternalTools(...)`: rewrite tool names for internal wrappers [`src/core/prompts.ts`]
|
|
788
|
+
- `deliverPromptCommand(...)`: dispatch the rendered prompt into the current active session [`src/index.ts`]
|
|
789
|
+
- External boundaries: `pi.sendUserMessage(...)` delivers the rendered prompt payload.
|
|
790
|
+
- `registerAgentTools(...)`: register structured pi tools whose execute callbacks reuse internal runner families and agent-oriented payload builders [`src/index.ts`]
|
|
791
|
+
- `ensureBundledResourcesAccessible(...)`: validate installation-owned bundled resources for tool executes that need bundled assets [`src/core/resources.ts`]
|
|
792
|
+
- `getBundledResourceRoot(...)`: resolve installation-owned resource root [`src/core/resources.ts`]
|
|
793
|
+
- `getInstallationPath(...)`: resolve the installed extension root from the executing module [`src/core/path-context.ts`]
|
|
794
|
+
- `getProjectBase(...)`: resolve project base from process cwd [`src/index.ts`]
|
|
795
|
+
- `loadProjectConfig(...)`: load config and normalize persisted directory paths for project-scoped tool executes [`src/index.ts`]
|
|
796
|
+
- `getProjectBase(...)`: resolve project base from process cwd [`src/index.ts`]
|
|
797
|
+
- `loadConfig(...)`: load config or defaults [`src/core/config.ts`]
|
|
798
|
+
- `getProjectConfigPath(...)`: resolve config file path [`src/core/config.ts`]
|
|
799
|
+
- `getDefaultConfig(...)`: build default config [`src/core/config.ts`]
|
|
800
|
+
- `normalizeEnabledPiUsereqTools(...)`: canonicalize startup tools [`src/core/pi-usereq-tools.ts`]
|
|
801
|
+
- `isInsideGitRepo(...)`: probe git repository membership [`src/core/tool-runner.ts`]
|
|
802
|
+
- `runCapture(...)`: run git subprocess [`src/core/tool-runner.ts`]
|
|
803
|
+
- `resolveGitRoot(...)`: resolve repository root [`src/core/tool-runner.ts`]
|
|
804
|
+
- `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
|
+
- `runGitPath(...)`: query the resolved git-path value [`src/core/tool-runner.ts`]
|
|
812
|
+
- `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 agent-oriented token JSON with separated source facts, metrics, and guidance [`src/core/token-counter.ts`]
|
|
815
|
+
- `probeRequestedPath(...)`: classify requested paths as readable files, missing inputs, or non-file inputs [`src/core/token-counter.ts`]
|
|
816
|
+
- `countFilesMetrics(...)`: read readable files and extract token, character, byte, line, heading, and optional Doxygen facts [`src/core/token-counter.ts`]
|
|
817
|
+
- `buildCountFileMetricsResult(...)`: assemble direct-access per-file metrics and metadata [`src/core/token-counter.ts`]
|
|
818
|
+
- `TokenCounter.countTokens(...)`: encode content and count tokens [`src/core/token-counter.ts`]
|
|
819
|
+
- `TokenCounter.countChars(...)`: count characters [`src/core/token-counter.ts`]
|
|
820
|
+
- `countLines(...)`: count logical lines [`src/core/token-counter.ts`]
|
|
821
|
+
- `inferLanguageName(...)`: infer agent-oriented language labels [`src/core/token-counter.ts`]
|
|
822
|
+
- `extractPrimaryHeadingText(...)`: extract the first markdown heading when present [`src/core/token-counter.ts`]
|
|
823
|
+
- `extractLeadingDoxygenFields(...)`: extract file-level Doxygen fields when present [`src/core/token-counter.ts`]
|
|
824
|
+
- `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
|
+
- `buildTokenToolExecuteResult(...)`: wrap token payloads into tool content and structured details [`src/index.ts`]
|
|
827
|
+
- `buildTokenToolExecutionStderr(...)`: serialize skipped and error observations into stderr text [`src/index.ts`]
|
|
828
|
+
- `buildStructuredToolExecuteResult(...)`: mirror the final JSON object into tool content and details [`src/core/agent-tool-json.ts`]
|
|
829
|
+
- `buildReferenceToolPayload(...)`: construct agent-oriented references JSON with repository structure, symbols, and Doxygen fields [`src/core/reference-payload.ts`]
|
|
830
|
+
- `canonicalizeReferencePath(...)`: normalize request and file paths against the project base [`src/core/reference-payload.ts`]
|
|
831
|
+
- `analyzeReferenceFile(...)`: analyze one processable file into structured imports, symbols, and comments [`src/core/reference-payload.ts`]
|
|
832
|
+
- `buildRepositoryTree(...)`: materialize the repository directory tree as structured JSON [`src/core/reference-payload.ts`]
|
|
833
|
+
- `buildReferenceToolExecuteResult(...)`: wrap references payloads into tool content and structured details [`src/index.ts`]
|
|
834
|
+
- `buildStructuredToolExecuteResult(...)`: mirror the final JSON object into tool content and details [`src/core/agent-tool-json.ts`]
|
|
835
|
+
- `buildCompressToolPayload(...)`: construct agent-oriented compression JSON with structured line facts, symbols, and Doxygen fields [`src/core/compress-payload.ts`]
|
|
836
|
+
- `analyzeCompressFile(...)`: compress one requested file and attach symbol metadata when available [`src/core/compress-payload.ts`]
|
|
837
|
+
- `compressFileDetailed(...)`: compress one file into structured lines and rendered text [`src/core/compress.ts`]
|
|
838
|
+
- `analyzeCompressedFileSymbols(...)`: extract symbol and Doxygen records for compressed files [`src/core/compress-payload.ts`]
|
|
839
|
+
- `buildCompressionToolExecuteResult(...)`: wrap compression payloads into tool content and structured details [`src/index.ts`]
|
|
840
|
+
- `buildCompressToolExecutionStderr(...)`: serialize skipped, error, and symbol-analysis warning entries [`src/core/compress-payload.ts`]
|
|
841
|
+
- `buildStructuredToolExecuteResult(...)`: mirror the final JSON object into tool content and details [`src/core/agent-tool-json.ts`]
|
|
842
|
+
- `buildFindToolSchemaDescription(...)`: synthesize find parameter-schema descriptions [`src/index.ts`]
|
|
843
|
+
- `buildFindToolPromptGuidelines(...)`: synthesize agent-oriented find guidance strings [`src/index.ts`]
|
|
844
|
+
- `buildFindToolSupportedTagGuidelines(...)`: emit per-language supported-tag guidance lines [`src/index.ts`]
|
|
845
|
+
- `buildFindToolPayload(...)`: construct agent-oriented construct-search JSON with structured file statuses, matches, line facts, and Doxygen fields [`src/core/find-payload.ts`]
|
|
846
|
+
- `validateTagFilter(...)`: normalize requested construct tags [`src/core/find-payload.ts`]
|
|
847
|
+
- `validateRegexPattern(...)`: compile the construct-name regex [`src/core/find-payload.ts`]
|
|
848
|
+
- `analyzeFindFile(...)`: analyze one requested file into structured search status and match records [`src/core/find-payload.ts`]
|
|
849
|
+
- `buildMatchEntry(...)`: structure one matched construct with typed lines and Doxygen fields [`src/core/find-payload.ts`]
|
|
850
|
+
- `buildStrippedConstructLineEntries(...)`: strip comments into structured code lines [`src/core/find-constructs.ts`]
|
|
851
|
+
- `buildFindToolExecuteResult(...)`: wrap construct-search payloads into tool content and structured details [`src/index.ts`]
|
|
852
|
+
- `buildFindToolExecutionStderr(...)`: serialize invalid-request, skipped, no-match, and analysis-error diagnostics [`src/core/find-payload.ts`]
|
|
853
|
+
- `buildStructuredToolExecuteResult(...)`: mirror the final JSON object into tool content and details [`src/core/agent-tool-json.ts`]
|
|
854
|
+
- `runFilesStaticCheck(...)`: execute configured checkers for explicit-file requests [`src/core/tool-runner.ts`]
|
|
855
|
+
- `collectProjectStaticCheckSelection(...)`: derive project static-check file selections and fixture exclusions [`src/index.ts`]
|
|
856
|
+
- `runProjectStaticCheck(...)`: execute configured checkers for project source and test selections [`src/core/tool-runner.ts`]
|
|
857
|
+
- `buildStaticCheckToolPayload(...)`: structure static-check request, file-selection, and execution facts [`src/core/agent-tool-json.ts`]
|
|
858
|
+
- `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`]
|
|
861
|
+
- `runGitWtName(...)`: generate the standardized worktree name [`src/core/tool-runner.ts`]
|
|
862
|
+
- `buildWorktreeNameToolPayload(...)`: structure worktree-name generation facts [`src/core/agent-tool-json.ts`]
|
|
863
|
+
- `runGitWtCreate(...)`: create a dedicated worktree and branch [`src/core/tool-runner.ts`]
|
|
864
|
+
- `runGitWtDelete(...)`: delete a dedicated worktree and branch [`src/core/tool-runner.ts`]
|
|
865
|
+
- `buildWorktreeMutationToolPayload(...)`: structure worktree create/delete facts [`src/core/agent-tool-json.ts`]
|
|
866
|
+
- `buildToolExecutionSection(...)`: normalize stdout, stderr, and exit-code metadata [`src/core/agent-tool-json.ts`]
|
|
867
|
+
- `normalizeToolFailure(...)`: convert `ReqError` failures into structured execution records [`src/core/agent-tool-json.ts`]
|
|
868
|
+
- `registerConfigCommands(...)`: register interactive configuration commands [`src/index.ts`]
|
|
869
|
+
- `configurePiUsereq(...)`: interactive configuration menu root [`src/index.ts`]
|
|
870
|
+
- `configurePiUsereq(...)`: serve the inline `show-config` action inside the shared settings-menu flow [`src/index.ts`]
|
|
871
|
+
- `getProjectBase(...)`: resolve project base from command context cwd [`src/index.ts`]
|
|
872
|
+
- `loadConfig(...)`: load config or defaults [`src/core/config.ts`]
|
|
873
|
+
- `getProjectConfigPath(...)`: resolve config file path [`src/core/config.ts`]
|
|
874
|
+
- `getDefaultConfig(...)`: build default config [`src/core/config.ts`]
|
|
875
|
+
- `normalizeEnabledPiUsereqTools(...)`: canonicalize startup tools [`src/core/pi-usereq-tools.ts`]
|
|
876
|
+
- `normalizePiNotifySoundLevel(...)`: normalize persisted sound level [`src/core/pi-notify.ts`]
|
|
877
|
+
- `normalizePiNotifyShortcut(...)`: normalize persisted shortcut [`src/core/pi-notify.ts`]
|
|
878
|
+
- `normalizePiNotifyCommand(...)`: normalize persisted sound commands [`src/core/pi-notify.ts`]
|
|
879
|
+
- `isInsideGitRepo(...)`: probe git repository membership [`src/core/tool-runner.ts`]
|
|
880
|
+
- `runCapture(...)`: run git subprocess [`src/core/tool-runner.ts`]
|
|
881
|
+
- `resolveGitRoot(...)`: resolve repository root [`src/core/tool-runner.ts`]
|
|
882
|
+
- `runCapture(...)`: run git subprocess [`src/core/tool-runner.ts`]
|
|
883
|
+
- `registerPiNotifyShortcut(...)`: register the configured successful-run sound shortcut when the runtime supports shortcuts [`src/index.ts`]
|
|
884
|
+
- `loadProjectConfig(...)`: load config for shortcut registration [`src/index.ts`]
|
|
885
|
+
- `getProjectBase(...)`: resolve project base from command context cwd [`src/index.ts`]
|
|
886
|
+
- `loadConfig(...)`: load config or defaults [`src/core/config.ts`]
|
|
887
|
+
- `getProjectConfigPath(...)`: resolve config file path [`src/core/config.ts`]
|
|
888
|
+
- `getDefaultConfig(...)`: build default config [`src/core/config.ts`]
|
|
889
|
+
- `normalizeEnabledPiUsereqTools(...)`: canonicalize startup tools [`src/core/pi-usereq-tools.ts`]
|
|
890
|
+
- `normalizePiNotifySoundLevel(...)`: normalize persisted sound level [`src/core/pi-notify.ts`]
|
|
891
|
+
- `normalizePiNotifyShortcut(...)`: normalize persisted shortcut [`src/core/pi-notify.ts`]
|
|
892
|
+
- `normalizePiNotifyCommand(...)`: normalize persisted sound commands [`src/core/pi-notify.ts`]
|
|
893
|
+
- `isInsideGitRepo(...)`: probe git repository membership [`src/core/tool-runner.ts`]
|
|
894
|
+
- `runCapture(...)`: run git subprocess [`src/core/tool-runner.ts`]
|
|
895
|
+
- `resolveGitRoot(...)`: resolve repository root [`src/core/tool-runner.ts`]
|
|
896
|
+
- `runCapture(...)`: run git subprocess [`src/core/tool-runner.ts`]
|
|
897
|
+
- `registerExtensionStatusHooks(...)`: register shared wrappers for lifecycle telemetry hooks [`src/index.ts`]
|
|
898
|
+
- `handleExtensionStatusEvent(...)`: process intercepted hook payloads through shared status helpers [`src/index.ts`]
|
|
899
|
+
- `loadProjectConfig(...)`: session-start configuration load [`src/index.ts`]
|
|
900
|
+
- `getProjectBase(...)`: resolve project base from command context cwd [`src/index.ts`]
|
|
901
|
+
- `loadConfig(...)`: load config or defaults [`src/core/config.ts`]
|
|
902
|
+
- `getProjectConfigPath(...)`: resolve config file path [`src/core/config.ts`]
|
|
903
|
+
- `getDefaultConfig(...)`: build default config [`src/core/config.ts`]
|
|
904
|
+
- `normalizeEnabledPiUsereqTools(...)`: canonicalize startup tools [`src/core/pi-usereq-tools.ts`]
|
|
905
|
+
- `isInsideGitRepo(...)`: probe git repository membership [`src/core/tool-runner.ts`]
|
|
906
|
+
- `runCapture(...)`: run git subprocess [`src/core/tool-runner.ts`]
|
|
907
|
+
- `resolveGitRoot(...)`: resolve repository root [`src/core/tool-runner.ts`]
|
|
908
|
+
- `runCapture(...)`: run git subprocess [`src/core/tool-runner.ts`]
|
|
909
|
+
- `applyConfiguredPiUsereqTools(...)`: enable configured active tools on `session_start` [`src/index.ts`]
|
|
910
|
+
- `getConfiguredEnabledPiUsereqTools(...)`: canonicalize configured enabled tools [`src/index.ts`]
|
|
911
|
+
- `normalizeEnabledPiUsereqTools(...)`: canonicalize configurable active tools [`src/core/pi-usereq-tools.ts`]
|
|
912
|
+
- `getPiUsereqStartupTools(...)`: enumerate configurable tools from runtime inventory [`src/index.ts`]
|
|
913
|
+
- `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`]
|
|
915
|
+
- `refreshContextUsage(...)`: sync the latest context-usage snapshot [`src/core/extension-status.ts`]
|
|
916
|
+
- `syncPiUsereqStatusTicker(...)`: start or stop the live elapsed-time ticker [`src/core/extension-status.ts`]
|
|
917
|
+
- `renderPiUsereqStatus(...)`: render the docs/tests/src/tools/context/elapsed/last/beep/sound footer with CLI-theme token overlays [`src/core/extension-status.ts`]
|
|
918
|
+
- `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 active-theme field and overlay semantics [`src/core/extension-status.ts`]
|
|
920
|
+
- `formatStatusField(...)`: render one colored text field [`src/core/extension-status.ts`]
|
|
921
|
+
- `formatRenderedStatusField(...)`: render one pre-styled field [`src/core/extension-status.ts`]
|
|
922
|
+
- `formatContextUsageBar(...)`: render the 5-cell context bar or threshold-specific overlay [`src/core/extension-status.ts`]
|
|
923
|
+
- `resolveContextUsageOverlay(...)`: choose `CLEAR` or `FULL!` overlay states with CLI-supported theme tokens [`src/core/extension-status.ts`]
|
|
924
|
+
- `formatContextUsageOverlay(...)`: paint the fixed-width overlay with preserved bar background [`src/core/extension-status.ts`]
|
|
925
|
+
- `formatStatusDuration(...)`: render `M:SS` durations [`src/core/extension-status.ts`]
|
|
926
|
+
- `formatPiNotifyBeepStatus(...)`: serialize enabled beep flags for the footer [`src/core/pi-notify.ts`]
|
|
927
|
+
- `runPiNotifyEffects(...)`: dispatch configured terminal beeps and successful-run sound hooks on `agent_end` [`src/core/pi-notify.ts`]
|
|
928
|
+
- `classifyPiNotifyOutcome(...)`: map assistant stop reasons to `end`, `esc`, or `err` [`src/core/pi-notify.ts`]
|
|
929
|
+
- `hasAgentEndStopReason(...)`: scan assistant stop reasons inside the `agent_end` payload [`src/core/pi-notify.ts`]
|
|
930
|
+
- `buildPiNotifyTitle(...)`: build the stable pi-notify title [`src/core/pi-notify.ts`]
|
|
931
|
+
- `buildPiNotifyBody(...)`: build the stable pi-notify body from the classified outcome [`src/core/pi-notify.ts`]
|
|
932
|
+
- `notifyPiTerminal(...)`: route terminal notifications by runtime environment when the matching beep flag is enabled [`src/core/pi-notify.ts`]
|
|
933
|
+
- `notifyWindows(...)`: emit Windows toast notifications [`src/core/pi-notify.ts`]
|
|
934
|
+
- `notifyOSC99(...)`: emit Kitty OSC 99 notifications [`src/core/pi-notify.ts`]
|
|
935
|
+
- `notifyOSC9(...)`: emit OSC 9 notifications [`src/core/pi-notify.ts`]
|
|
936
|
+
- `notifyOSC777(...)`: emit OSC 777 notifications [`src/core/pi-notify.ts`]
|
|
937
|
+
- `runPiNotifySoundCommand(...)`: execute the configured successful-run sound command when sound is enabled [`src/core/pi-notify.ts`]
|
|
938
|
+
- `resolvePiNotifySoundCommand(...)`: select the configured command for `low`, `mid`, or `high` [`src/core/pi-notify.ts`]
|
|
939
|
+
- `substitutePiNotifyInstallPath(...)`: replace `%%INSTALLATION_PATH%%` before shell execution [`src/core/pi-notify.ts`]
|
|
940
|
+
- `quotePiNotifyInstallPath(...)`: quote the installation path for shell reuse [`src/core/pi-notify.ts`]
|
|
941
|
+
- `getInstallationPath(...)`: resolve the installed extension root [`src/core/path-context.ts`]
|
|
942
|
+
- `configurePiUsereq(...)`: interactive configuration menu runtime root [`src/index.ts`]
|
|
943
|
+
- `loadProjectConfig(...)`: load config and normalize persisted directory paths for command context [`src/index.ts`]
|
|
944
|
+
- `getProjectBase(...)`: resolve project base from command context cwd [`src/index.ts`]
|
|
945
|
+
- `loadConfig(...)`: load config or defaults [`src/core/config.ts`]
|
|
946
|
+
- `getProjectConfigPath(...)`: resolve config file path [`src/core/config.ts`]
|
|
947
|
+
- `getDefaultConfig(...)`: build default config [`src/core/config.ts`]
|
|
948
|
+
- `normalizeEnabledPiUsereqTools(...)`: canonicalize startup tools [`src/core/pi-usereq-tools.ts`]
|
|
949
|
+
- `isInsideGitRepo(...)`: probe git repository membership [`src/core/tool-runner.ts`]
|
|
950
|
+
- `runCapture(...)`: run git subprocess [`src/core/tool-runner.ts`]
|
|
951
|
+
- `resolveGitRoot(...)`: resolve repository root [`src/core/tool-runner.ts`]
|
|
952
|
+
- `runCapture(...)`: run git subprocess [`src/core/tool-runner.ts`]
|
|
953
|
+
- `getProjectBase(...)`: resolve project base from command context cwd [`src/index.ts`]
|
|
954
|
+
- `showPiUsereqSettingsMenu(...)`: render the shared settings-menu UI for top-level and submenu actions [`src/core/settings-menu.ts`]
|
|
955
|
+
- `formatPiUsereqSettingsMenuTitle(...)`: rebuild the menu title with active-theme semantics [`src/core/settings-menu.ts`]
|
|
956
|
+
- `buildPiUsereqSettingsListTheme(...)`: prefer shared CLI settings-list theming and fall back during offline replay [`src/core/settings-menu.ts`]
|
|
957
|
+
- `buildFallbackPiUsereqSettingsListTheme(...)`: mirror CLI settings-list token roles from the callback-local theme [`src/core/settings-menu.ts`]
|
|
958
|
+
- `saveProjectConfig(...)`: persist config on save-and-close [`src/index.ts`]
|
|
959
|
+
- `getProjectBase(...)`: resolve project base from command context cwd [`src/index.ts`]
|
|
960
|
+
- `saveConfig(...)`: persist config JSON [`src/core/config.ts`]
|
|
961
|
+
- `getProjectConfigPath(...)`: resolve config file path [`src/core/config.ts`]
|
|
962
|
+
- `setPiUsereqStatusConfig(...)`: cache the just-saved docs/tests/src and pi-notify values for status rendering [`src/core/extension-status.ts`]
|
|
963
|
+
- `renderPiUsereqStatus(...)`: render the git/base/docs/tests/src/tools/context/elapsed/last/beep/sound footer after save-and-close with CLI-theme token overlays [`src/core/extension-status.ts`]
|
|
964
|
+
- `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 active-theme field and overlay semantics [`src/core/extension-status.ts`]
|
|
966
|
+
- `formatStatusField(...)`: render one colored text field [`src/core/extension-status.ts`]
|
|
967
|
+
- `formatRenderedStatusField(...)`: render one pre-styled field [`src/core/extension-status.ts`]
|
|
968
|
+
- `formatContextUsageBar(...)`: render the 5-cell context bar or threshold-specific overlay [`src/core/extension-status.ts`]
|
|
969
|
+
- `resolveContextUsageOverlay(...)`: choose `CLEAR` or `FULL!` overlay states with CLI-supported theme tokens [`src/core/extension-status.ts`]
|
|
970
|
+
- `formatContextUsageOverlay(...)`: paint the fixed-width overlay with preserved bar background [`src/core/extension-status.ts`]
|
|
971
|
+
- `formatStatusDuration(...)`: render `M:SS` durations [`src/core/extension-status.ts`]
|
|
972
|
+
- `formatPiNotifyBeepStatus(...)`: serialize enabled beep flags for the footer [`src/core/pi-notify.ts`]
|
|
973
|
+
- `configureStaticCheckMenu(...)`: interactive static-check editor [`src/index.ts`]
|
|
974
|
+
- `formatStaticCheckLanguagesSummary(...)`: summarize configured checker languages [`src/index.ts`]
|
|
975
|
+
- `renderStaticCheckReference(...)`: render static-check reference text [`src/index.ts`]
|
|
976
|
+
- `formatStaticCheckLanguagesSummary(...)`: summarize configured checker languages [`src/index.ts`]
|
|
977
|
+
- `formatStaticCheckEntry(...)`: format one configured checker entry [`src/index.ts`]
|
|
978
|
+
- `getSupportedStaticCheckLanguageSupport(...)`: enumerate supported languages and extensions [`src/core/static-check.ts`]
|
|
979
|
+
- `getSupportedStaticCheckLanguages(...)`: enumerate canonical supported languages [`src/core/static-check.ts`]
|
|
980
|
+
- `buildSupportedStaticCheckLanguageChoices(...)`: serialize supported languages with configured counts [`src/index.ts`]
|
|
981
|
+
- `shellSplit(...)`: parse optional parameter input [`src/core/utils.ts`]
|
|
982
|
+
- `parseEnableStaticCheck(...)`: parse `LANG=MODULE[,CMD[,PARAM...]]` specification [`src/core/static-check.ts`]
|
|
983
|
+
- `splitCsvLikeTokens(...)`: split comma-like spec payload with quoting support [`src/core/static-check.ts`]
|
|
984
|
+
- `formatStaticCheckModules(...)`: render valid module names for error paths [`src/core/static-check.ts`]
|
|
985
|
+
- `configurePiUsereqToolsMenu(...)`: interactive active-tool editor [`src/index.ts`]
|
|
986
|
+
- `applyConfiguredPiUsereqTools(...)`: enforce configured active-tool set [`src/index.ts`]
|
|
987
|
+
- `getConfiguredEnabledPiUsereqTools(...)`: canonicalize configured enabled tools [`src/index.ts`]
|
|
988
|
+
- `normalizeEnabledPiUsereqTools(...)`: canonicalize configurable active tools [`src/core/pi-usereq-tools.ts`]
|
|
989
|
+
- `getPiUsereqStartupTools(...)`: enumerate configurable tools from runtime inventory [`src/index.ts`]
|
|
990
|
+
- `renderPiUsereqToolsReference(...)`: render configurable active-tool reference text [`src/index.ts`]
|
|
991
|
+
- `getPiUsereqStartupTools(...)`: enumerate configurable tools from runtime inventory [`src/index.ts`]
|
|
992
|
+
- `getConfiguredEnabledPiUsereqTools(...)`: canonicalize configured enabled tools [`src/index.ts`]
|
|
993
|
+
- `normalizeEnabledPiUsereqTools(...)`: canonicalize configurable active tools [`src/core/pi-usereq-tools.ts`]
|
|
994
|
+
- `getPiUsereqToolKind(...)`: classify builtin versus extension tools for UI rendering [`src/index.ts`]
|
|
995
|
+
- `setConfiguredPiUsereqTools(...)`: persist selected enabled tools in memory [`src/index.ts`]
|
|
996
|
+
- `normalizeEnabledPiUsereqTools(...)`: canonicalize configurable active tools [`src/core/pi-usereq-tools.ts`]
|
|
997
|
+
- `applyConfiguredPiUsereqTools(...)`: enforce configured active-tool set [`src/index.ts`]
|
|
998
|
+
- `getConfiguredEnabledPiUsereqTools(...)`: canonicalize configured enabled tools [`src/index.ts`]
|
|
999
|
+
- `normalizeEnabledPiUsereqTools(...)`: canonicalize configurable active tools [`src/core/pi-usereq-tools.ts`]
|
|
1000
|
+
- `getPiUsereqStartupTools(...)`: enumerate configurable tools from runtime inventory [`src/index.ts`]
|
|
1001
|
+
- `buildPiUsereqToolToggleChoices(...)`: serialize per-tool startup-toggle rows [`src/index.ts`]
|
|
1002
|
+
- `getPiUsereqToolKind(...)`: classify builtin versus extension tools for UI rendering [`src/index.ts`]
|
|
1003
|
+
- `configurePiNotifyMenu(...)`: interactive pi-notify editor [`src/index.ts`]
|
|
1004
|
+
- `buildPiNotifyMenuChoices(...)`: serialize notification actions for the shared settings menu [`src/index.ts`]
|
|
1005
|
+
- `togglePiNotifyBeepFlag(...)`: toggle one prompt-end beep flag [`src/index.ts`]
|
|
1006
|
+
- `getDefaultConfig(...)`: restore default config on reset [`src/core/config.ts`]
|
|
1007
|
+
- `normalizeEnabledPiUsereqTools(...)`: canonicalize configurable active tools [`src/core/pi-usereq-tools.ts`]
|
|
1008
|
+
- `applyConfiguredPiUsereqTools(...)`: re-apply active tools after reset [`src/index.ts`]
|
|
1009
|
+
- `getConfiguredEnabledPiUsereqTools(...)`: canonicalize configured enabled tools [`src/index.ts`]
|
|
1010
|
+
- `normalizeEnabledPiUsereqTools(...)`: canonicalize configurable active tools [`src/core/pi-usereq-tools.ts`]
|
|
1011
|
+
- `getPiUsereqStartupTools(...)`: enumerate configurable tools from runtime inventory [`src/index.ts`]
|
|
1012
|
+
- External Boundaries:
|
|
1013
|
+
- pi ExtensionAPI plus command-context APIs for command registration, tool registration, shortcut registration, user-message delivery, session events, active-tool mutation, editor updates, notifications, selections, and text input.
|
|
1014
|
+
- Filesystem access for home resource cache, bundled prompt reads, and project config persistence.
|
|
1015
|
+
- Git and static-check subprocesses reused through the same tool-runner and static-check functions documented under `PROC:main`.
|
|
1016
|
+
|
|
1017
|
+
### `PROC:gh-release-check`
|
|
1018
|
+
- Entrypoints:
|
|
1019
|
+
- `check-branch(...)`: GitHub Actions release-gate job root [`.github/workflows/release-npm.yml`]
|
|
1020
|
+
- Lifecycle/trigger:
|
|
1021
|
+
- Start trigger: GitHub Actions starts the job for pushed tags matched by the workflow tag filter.
|
|
1022
|
+
- Stop trigger: writes the `is_master` job output after `origin/master` containment evaluation.
|
|
1023
|
+
- Looping model: single-pass job with sequential step execution.
|
|
1024
|
+
- Threads: no explicit threads detected.
|
|
1025
|
+
- Internal Call-Trace Tree:
|
|
1026
|
+
- `check-branch(...)`: fetch `origin/master`, evaluate tagged-commit containment, and export the downstream gate flag [`.github/workflows/release-npm.yml`]
|
|
1027
|
+
- External boundaries: `actions/checkout@v4`, GitHub Actions runner shell, `git` CLI, `grep`, and `$GITHUB_OUTPUT`.
|
|
1028
|
+
- External Boundaries:
|
|
1029
|
+
- GitHub Actions event routing, hosted-runner lifecycle, checkout action, git subprocesses, and runner output channels.
|
|
1030
|
+
|
|
1031
|
+
### `PROC:gh-release-build`
|
|
1032
|
+
- Entrypoints:
|
|
1033
|
+
- `build-release(...)`: GitHub Actions npm-and-release job root [`.github/workflows/release-npm.yml`]
|
|
1034
|
+
- Lifecycle/trigger:
|
|
1035
|
+
- Start trigger: GitHub Actions starts the job only when `PROC:gh-release-check` exports `is_master=true`.
|
|
1036
|
+
- Stop trigger: returns runner success after npm publication, changelog generation, and GitHub Release creation or runner failure on action errors.
|
|
1037
|
+
- Looping model: single-pass job with sequential step execution.
|
|
1038
|
+
- Threads: no explicit threads detected.
|
|
1039
|
+
- Internal Call-Trace Tree:
|
|
1040
|
+
- `build-release(...)`: checkout repository content, configure Node.js for npm, install dependencies, remove manifest `private`, publish the package, build changelog text, and create the GitHub Release [`.github/workflows/release-npm.yml`]
|
|
1041
|
+
- External boundaries: `actions/checkout@v4`, `actions/setup-node@v4`, npm CLI, npm registry, OIDC token issuance, `mikepenz/release-changelog-builder-action@v6`, `softprops/action-gh-release@v2`, `secrets.NPM_TOKEN`, and `secrets.GITHUB_TOKEN`.
|
|
1042
|
+
- External Boundaries:
|
|
1043
|
+
- GitHub Actions event routing, hosted-runner lifecycle, checkout action, setup-node action, npm CLI, npm registry, changelog-builder action, GitHub Releases API, and repository secrets.
|
|
1044
|
+
|
|
1045
|
+
## Communication Edges
|
|
1046
|
+
- `PROC:req-debug` -> `PROC:tool-args-to-params`
|
|
1047
|
+
- Mechanism: child-process spawn through resolved `tsx` executable.
|
|
1048
|
+
- Endpoint/channel: CLI argv plus captured stdout/stderr.
|
|
1049
|
+
- Payload/data-shape: wrapper tool name plus raw `--args` text, returned as one serialized JSON params object [`scripts/pi-usereq-debug.sh`, `scripts/tool-args-to-params.ts`]
|
|
1050
|
+
- `PROC:req-debug` -> `PROC:debug-ext`
|
|
1051
|
+
- Mechanism: child-process spawn through resolved `tsx` executable.
|
|
1052
|
+
- Endpoint/channel: CLI argv plus inherited stdout/stderr.
|
|
1053
|
+
- Payload/data-shape: wrapper-normalized subcommand and forwarded debug-harness options with default `--cwd` and `--extension` values, including rewritten tool `--params` JSON when `--args` was supplied [`scripts/pi-usereq-debug.sh`, `scripts/debug-extension.ts`]
|
|
1054
|
+
- `PROC:gh-release-check` -> `PROC:gh-release-build`
|
|
1055
|
+
- Mechanism: GitHub Actions `needs` dependency plus job-output gating.
|
|
1056
|
+
- Endpoint/channel: `is_master` job output and shared tag-run context.
|
|
1057
|
+
- Payload/data-shape: boolean branch-gate flag derived from `origin/master` containment for the tagged commit [`.github/workflows/release-npm.yml`]
|
|
1058
|
+
- Internal thread communication edges: none.
|
|
1059
|
+
- Relationship note: `PROC:main`, `PROC:req-debug`, `PROC:tool-args-to-params`, `PROC:debug-ext`, `PROC:pi-host`, `PROC:gh-release-check`, and `PROC:gh-release-build` are distinct runtime entry modes; only `PROC:req-debug` directly spawns child processes, while the GitHub Actions units coordinate through workflow job dependencies.
|