pi-mono/packages/coding-agent/test
Aliou Diallo 2d3ed0cfa7
fix(coding-agent): use npm view for update checks on non-default registries (#3164)
Previously, getLatestNpmVersion() hardcoded a fetch to
registry.npmjs.org, which 404s for packages on alternate
registries (private, Verdaccio, GitHub Packages, etc.).
The error was silently swallowed, so users never saw update
notifications for these packages.

Replace the direct fetch with
via the existing runCommandCapture helper. This uses the same
registry resolution as npm install (reads .npmrc config chain),
respects the npmCommand setting, and runs with this.cwd for
correct .npmrc lookup.
2026-04-14 20:20:14 +02:00
..
fixtures fix(coding-agent): stop skill recursion at root closes #2075 2026-03-14 04:18:28 +01:00
session-manager feat(coding-agent): add label timestamps to the session tree (#2691) 2026-03-30 15:56:37 +02:00
suite fix(coding-agent): resource collision precedence, user/project skills override package skills 2026-04-04 21:28:38 +02:00
agent-session-auto-compaction-queue.test.ts fix(agent): simplify state API and update consumers fixes #2633 2026-03-30 12:43:34 +02:00
agent-session-branching.test.ts refactor(coding-agent): replace AgentSessionRuntimeHost with closure-based AgentSessionRuntime 2026-04-03 20:14:12 +02:00
agent-session-compaction.test.ts feat(ai,coding-agent): add faux provider and ModelRegistry factories 2026-03-29 21:08:50 +02:00
agent-session-concurrent.test.ts feat(ai,coding-agent): add faux provider and ModelRegistry factories 2026-03-29 21:08:50 +02:00
agent-session-dynamic-provider.test.ts fix(coding-agent): refresh active model after provider updates closes #2291 2026-03-18 01:12:11 +01:00
agent-session-dynamic-tools.test.ts fix(coding-agent): unify source provenance, closes #1734 2026-03-23 02:02:42 +01:00
agent-session-model-switch-thinking.test.ts feat(ai,coding-agent): add faux provider and ModelRegistry factories 2026-03-29 21:08:50 +02:00
agent-session-retry.test.ts feat(ai,coding-agent): add faux provider and ModelRegistry factories 2026-03-29 21:08:50 +02:00
agent-session-runtime-events.test.ts refactor(coding-agent): replace AgentSessionRuntimeHost with closure-based AgentSessionRuntime 2026-04-03 20:14:12 +02:00
agent-session-stats.test.ts fix(agent): simplify state API and update consumers fixes #2633 2026-03-30 12:43:34 +02:00
agent-session-tree-navigation.test.ts fix(coding-agent): queue messages during branch summarization (#1803) 2026-03-04 08:55:30 +01:00
args.test.ts feat(coding-agent): support multiple --append-system-prompt flags (#3171) 2026-04-14 20:19:11 +02:00
auth-storage.test.ts fix(coding-agent,tui): stabilize windows shell/path handling 2026-03-14 05:36:21 +01:00
bash-close-hang-windows.test.ts fix(coding-agent): fix windows hanging when descendants inherit stdout/stderr handles (#2389) 2026-03-19 08:34:52 +01:00
bash-execution-width.test.ts fix(coding-agent): recompute interactive bash preview width closes #2569 2026-03-24 20:09:43 +01:00
block-images.test.ts Add blockImages setting to prevent images from being sent to LLM providers 2026-01-06 11:59:09 +01:00
clipboard-image-bmp-conversion.test.ts fix(coding-agent): convert clipboard BMP images to PNG on paste 2026-01-31 23:24:10 +01:00
clipboard-image.test.ts fix(coding-agent): guard clipboard native load 2026-02-02 00:23:12 +01:00
compaction-extensions-example.test.ts fix(coding-agent): resolve models.json auth per request closes #1835 2026-03-27 00:47:40 +01:00
compaction-extensions.test.ts feat(ai,coding-agent): add faux provider and ModelRegistry factories 2026-03-29 21:08:50 +02:00
compaction-serialization.test.ts fix(coding-agent): truncate tool results in compaction summarization to prevent overflow, fixes #1796 2026-03-06 16:57:14 +01:00
compaction-summary-reasoning.test.ts fix(coding-agent): avoid compaction reasoning for non-reasoning models (#1793) 2026-03-04 08:53:33 +01:00
compaction-thinking-model.test.ts feat(ai,coding-agent): add faux provider and ModelRegistry factories 2026-03-29 21:08:50 +02:00
compaction.test.ts fix(coding-agent): preserve kept messages across repeated compaction closes #2608 2026-03-27 03:36:57 +01:00
edit-tool-legacy-input.test.ts feat(agent,coding-agent): add prepareArguments hook for pre-validation argument preparation 2026-03-29 21:06:22 +02:00
edit-tool-no-full-redraw.test.ts fix(coding-agent): avoid full redraw on large edit results closes #2664 2026-03-29 13:00:46 +02:00
extensions-discovery.test.ts test(coding-agent): update settings and extension tests 2026-01-24 01:43:34 +01:00
extensions-input-event.test.ts feat(ai,coding-agent): add faux provider and ModelRegistry factories 2026-03-29 21:08:50 +02:00
extensions-runner.test.ts feat(ai,coding-agent): add faux provider and ModelRegistry factories 2026-03-29 21:08:50 +02:00
file-mutation-queue.test.ts fix(coding-agent): simplify edit tool input closes #2639 2026-03-28 22:10:34 +01:00
footer-data-provider.test.ts fix(coding-agent): avoid blocking footer branch refresh and isolate invalid extension provider registrations closes #2418 closes #2431 2026-03-19 21:40:55 +01:00
footer-width.test.ts refactor(coding-agent): add runtime host for session switching closes #2024 2026-03-31 13:49:57 +02:00
frontmatter.test.ts Centralize frontmatter parsing + parse frontmatter with yaml library (#728) 2026-01-16 00:31:53 +01:00
git-ssh-url.test.ts fix(coding-agent): tighten git source parsing and local path normalization (fixes #1426) 2026-02-12 21:28:06 +01:00
git-update.test.ts test(coding-agent): stabilize git update branch setup 2026-03-25 22:15:19 +01:00
image-processing.test.ts fix(coding-agent): enforce safe auto-resized image limits closes #2055 2026-03-22 21:48:34 +01:00
image-resize-callers.test.ts fix(coding-agent): enforce safe auto-resized image limits closes #2055 2026-03-22 21:48:34 +01:00
initial-message.test.ts refactor(coding-agent): replace AgentSessionRuntimeHost with closure-based AgentSessionRuntime 2026-04-03 20:14:12 +02:00
interactive-mode-anthropic-warning.test.ts fix(coding-agent): warn on Anthropic subscription auth 2026-04-08 18:46:40 +02:00
interactive-mode-compaction.test.ts fix(coding-agent): restore compaction summary and dedupe edit errors 2026-03-27 04:00:21 +01:00
interactive-mode-status.test.ts test(coding-agent): fix showLoadedResources mocks 2026-03-25 22:18:58 +01:00
interactive-mode-suspend.test.ts fix(coding-agent): keep suspend resume alive on fg closes #2454 2026-03-20 11:56:15 +01:00
keybindings-migration.test.ts refactor(coding-agent): replace AgentSessionRuntimeHost with closure-based AgentSessionRuntime 2026-04-03 20:14:12 +02:00
model-registry.test.ts feat(ai,coding-agent): add faux provider and ModelRegistry factories 2026-03-29 21:08:50 +02:00
model-resolver.test.ts fix(models): align minimax and zai defaults (#2445) 2026-03-20 10:00:57 +01:00
package-command-paths.test.ts fix(coding-agent): update project npm packages 2026-03-20 19:36:06 +01:00
package-manager-ssh.test.ts fix(coding-agent): tighten git source parsing and local path normalization (fixes #1426) 2026-02-12 21:28:06 +01:00
package-manager.test.ts fix(coding-agent): use npm view for update checks on non-default registries (#3164) 2026-04-14 20:20:14 +02:00
path-utils.test.ts fix(coding-agent,tui): stabilize windows shell/path handling 2026-03-14 05:36:21 +01:00
plan-mode-utils.test.ts feat(plan-mode): enhanced plan mode with explicit step tracking (#694) 2026-01-13 17:53:11 +01:00
print-mode.test.ts refactor(coding-agent): add runtime host for session switching closes #2024 2026-03-31 13:49:57 +02:00
prompt-templates.test.ts docs: document prompt template slicing 2026-01-16 12:08:57 +01:00
resource-loader.test.ts feat(ai,coding-agent): add faux provider and ModelRegistry factories 2026-03-29 21:08:50 +02:00
rpc-example.ts Update RPC example to use RpcClient 2025-12-09 14:44:13 +01:00
rpc-jsonl.test.ts fix(coding-agent): use strict JSONL framing fixes #1911 2026-03-07 14:34:27 +01:00
rpc.test.ts fix(coding-agent): rpc test needs prompt before checking session file 2026-02-04 13:27:54 +01:00
sdk-codex-cache-probe-tool-loop.ts feat(ai,coding-agent): add faux provider and ModelRegistry factories 2026-03-29 21:08:50 +02:00
sdk-session-manager.test.ts fix(coding-agent): respect agentDir for sdk session paths closes #2457 2026-03-20 12:12:18 +01:00
sdk-skills.test.ts fix(coding-agent): unify source provenance, closes #1734 2026-03-23 02:02:42 +01:00
session-cwd.test.ts fix(coding-agent): handle missing session cwd 2026-04-05 21:24:32 +02:00
session-info-modified-timestamp.test.ts fix(coding-agent,tui): stabilize windows shell/path handling 2026-03-14 05:36:21 +01:00
session-selector-path-delete.test.ts fix(keybindings): migrate to namespaced ids closes #2391 2026-03-20 01:55:30 +01:00
session-selector-rename.test.ts fix(keybindings): migrate to namespaced ids closes #2391 2026-03-20 01:55:30 +01:00
session-selector-search.test.ts feat(coding-agent): add named-only filter toggle to /resume picker (#1128) 2026-02-01 19:03:38 +01:00
settings-manager-bug.test.ts refactor(coding-agent): improve settings storage semantics and error handling 2026-02-17 00:08:32 +01:00
settings-manager.test.ts refactor(coding-agent): replace AgentSessionRuntimeHost with closure-based AgentSessionRuntime 2026-04-03 20:14:12 +02:00
skills.test.ts fix(coding-agent): unify source provenance, closes #1734 2026-03-23 02:02:42 +01:00
stdout-cleanliness.test.ts fix(coding-agent): reserve stdout in print and json mode closes #2482 2026-03-22 21:21:29 +01:00
streaming-render-debug.ts Fix syntax highlighting stderr spam with malformed markdown, fixes #274 2025-12-22 00:23:01 +01:00
system-prompt.test.ts fix(coding-agent): built-in tools work like extension tools 2026-03-22 04:20:38 +01:00
test-harness.test.ts fix(coding-agent): disambiguate duplicate slash commands, fixes #1061 2026-03-23 02:33:52 +01:00
test-harness.ts feat(ai,coding-agent): add faux provider and ModelRegistry factories 2026-03-29 21:08:50 +02:00
test-theme-colors.ts Improve light theme color contrast for WCAG compliance (#682) 2026-01-13 13:03:04 +01:00
theme-export.test.ts fix(coding-agent): resolve theme export variables closes #2707 2026-03-31 14:41:50 +02:00
tool-execution-component.test.ts fix(coding-agent): honor custom renderers for built-in tool overrides closes #2595 2026-03-27 03:10:13 +01:00
tools.test.ts fix(coding-agent): persist bash output on line truncation closes #2852 2026-04-05 23:28:49 +02:00
tree-selector.test.ts feat(coding-agent): add label timestamps to the session tree (#2691) 2026-03-30 15:56:37 +02:00
trigger-compact-extension.test.ts fix: expose abort signal to extensions closes #2660 2026-03-28 22:25:06 +01:00
truncate-to-width.test.ts fix: TUI crash with Unicode characters in branch selector 2025-12-05 11:59:39 +01:00
utilities.ts feat(ai,coding-agent): add faux provider and ModelRegistry factories 2026-03-29 21:08:50 +02:00