instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
antgroup__vsag__892
antgroup/vsag
892
defect
2d9e8feb5a09ef4923729f0066d1e0c606f126e6
e7c9626c37dbd47e627d1a6a16de6f4fc3bce495
support ip and cosine
``` +------------+--------+------------+-----+----------+------------+----------------------------------------+---------------+-----------+-------------+------------------------------+----------------+------------+----------------+-----------+ | Name | Index | NumVectors | Dim | DataType | MetricType | IndexPa...
diff --git a/src/data_cell/flatten_datacell_test.cpp b/src/data_cell/flatten_datacell_test.cpp index 3c8813777d..a449b9002e 100644 --- a/src/data_cell/flatten_datacell_test.cpp +++ b/src/data_cell/flatten_datacell_test.cpp @@ -44,7 +44,8 @@ TEST_CASE("FlattenDataCell Basic Test", "[ut][FlattenDataCell] ") { auto a...
1
1
0
[{"id": "G0", "claim": "Remove the unused <iostream> include from src/quantization/rabitq_quantization/rabitq_quantizer.h.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
antgroup__vsag__923
antgroup/vsag
923
defect
fbb5d6b5f23b6947d22cb25087a8fcaad6421948
0df5c5d6924895df18b3a39d4b276220e9031c29
add remove for brute force
1. add remove for brute force 2. fix(concurrency): Removing separate lock sections that could cause data-label de-synchronization; closed: #922
diff --git a/src/algorithm/brute_force.cpp b/src/algorithm/brute_force.cpp index 669edb23b0..297ab8311e 100644 --- a/src/algorithm/brute_force.cpp +++ b/src/algorithm/brute_force.cpp @@ -15,6 +15,8 @@ #include "brute_force.h" +#include <optional> + #include "data_cell/flatten_datacell.h" #include "impl/heap/stan...
1
1
1
[{"id": "G0", "claim": "The remove-swap path must decode the last vector (via GetVectorByInnerId) before reinserting it at the removed position, instead of copying raw compressed codes as the added code does.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
antgroup__vsag__988
antgroup/vsag
988
defect
052a947d2fadee78221f1512d0dad9fc4c36d585
ded37aea7b2cfda106f4d9072a93a22622b9fccd
support filter search when supporting duplicate data
## Summary by Sourcery Add comprehensive support for duplicate data handling and filter search in HGraph and its underlying LabelTable, including serialization, compression, and extended test coverage for duplicate-aware scenarios. New Features: - Introduce duplicate data tracking in LabelTable with optional compress...
diff --git a/src/algorithm/hgraph.cpp b/src/algorithm/hgraph.cpp index dc39c778d5..bc70ab7867 100644 --- a/src/algorithm/hgraph.cpp +++ b/src/algorithm/hgraph.cpp @@ -615,6 +615,7 @@ HGraph::RangeSearch(const DatasetPtr& query, search_param.is_inner_id_allowed = ft; search_param.radius = radius; search_p...
4
3
1
[{"id": "G0", "claim": "The redundant second RangeSearch call inside the if block in TestFilterSearch doesn't impact the test and can be removed for clarity.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The bare assert on even-sized input in Duplicate...
null
anthdm__hollywood__177
anthdm/hollywood
177
defect
02bbf305ba7a802637a11e427dd73d02fed5159b
0d87bc34e00a8e03c4381ee881b22f51f25f7493
Bugfix // Fix race condition in `Pop` & `PopN` operation of ring buffer
The current implementation of the ring buffer has a thread-safety issue in the `Pop` & `PopN` operation. Attempting to remove an element may lead to a race condition, resulting in the ring buffer being left in an invalid state after calling `Pop`. Similarly, in the case of `PopN`, the method might incorrectly indica...
diff --git a/ringbuffer/ringbuffer.go b/ringbuffer/ringbuffer.go index 7ad0ba24..faba8d4f 100644 --- a/ringbuffer/ringbuffer.go +++ b/ringbuffer/ringbuffer.go @@ -61,6 +61,11 @@ func (rb *RingBuffer[T]) Pop() (T, bool) { return t, false } rb.mu.Lock() + if rb.len == 0 { + rb.mu.Unlock() + var t T + return t, ...
2
1
0
[{"id": "G0", "claim": "In Pop and PopN the ring buffer length is checked twice (once via rb.Len() outside the lock, once via rb.len inside it), and tprifti would prefer the lock taken immediately with a single in-lock check for readability.", "category": "maintainability", "verdict": "supported", "priority": "P2", "sc...
null
anthonynsimon__bild__30
anthonynsimon/bild
30
defect
635c80d2852ce1867445fbaaef99761d75f9a473
945c93e0939159d4c4badebd5d8bbaf47f3d117b
FloodFill (#25)
Flood Fill - Added Stack struct in the util package - Added paint package and a FloodFill implementation - Added PhpStorm project folder to .gitignore
diff --git a/.gitignore b/.gitignore index b2a3bbd..aeaef0a 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,9 @@ !.vscode/tasks.json !.vscode/launch.json +#Jetbrains project files +.idea/ + # Compiled Object files, Static and Dynamic libs (Shared Objects) *.o *.a diff --git a/README.md b/README.md index 9948...
11
11
4
[{"id": "G0", "claim": "Add doc comments following Go's godoc convention to the newly added exported identifiers such as FloodFill and Stack.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Unexport MaxDistance if users do not need to interact with...
null
anthropic-experimental__sandbox-runtime__126
anthropic-experimental/sandbox-runtime
126
defect
4fad8fa35db3f09958db1df401b30bd00402b611
d34c93c5f40f975a249bb93af052d3bd3e7b9cea
Re-introduce non-existent deny path protection with mount point cleanup
## Summary Re-introduces the non-existent deny path protection from PR #80 (reverted in PR #91) with proper cleanup of bwrap mount point artifacts. ## Problem When a deny path doesn't exist yet on the filesystem, a sandboxed process can `mkdir -p` + write to it, bypassing the deny rule. PR #80 fixed this by mounting...
diff --git a/package-lock.json b/package-lock.json index b3ac4f3b1..2ab8c7475 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@anthropic-ai/sandbox-runtime", - "version": "0.0.35", + "version": "0.0.37", "lockfileVersion": 3, "requires": true, "packages": { "": { ...
2
1
0
[{"id": "G0", "claim": "The fs.existsSync check before fs.statSync in cleanupBwrapMountPoints is redundant; the code can rely on the surrounding try/catch to catch the exception from fs.statSync.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Th...
null
anthropic-experimental__sandbox-runtime__138
anthropic-experimental/sandbox-runtime
138
defect
96800ee98b66ac4029c22b04cb19950dc85afb11
7a32eaf8db2c596b033c58f1b7367c040692ddf8
security: warn and skip symlink write paths pointing outside boundaries
## Problem bwrap follows symlinks when doing bind mounts. If a user configures an `allowWrite` path that is a symlink pointing to an unexpected location, that target location becomes writable. **Example attack:** 1. Attacker creates symlink: `./src -> /etc` 2. User configures `allowWrite: ['./src']` 3. bwrap does `--...
diff --git a/package-lock.json b/package-lock.json index 2ab8c747..302614ab 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@anthropic-ai/sandbox-runtime", - "version": "0.0.37", + "version": "0.0.38", "lockfileVersion": 3, "requires": true, "packages": { "": { ...
1
1
1
[{"id": "G0", "claim": "The symlink check compares realpathSync's result (which never carries a trailing slash) against normalizedPath, which can have one, so the comparison would spuriously fail for paths with trailing slashes and trailing slashes need to be trimmed before comparing.", "category": "correctness", "verd...
null
anthropic-experimental__sandbox-runtime__190
anthropic-experimental/sandbox-runtime
190
defect
fd74a3f012821a7b7a32828d0ece418148f75873
49eb1ff1a3721e45fa2e2f3bd4a44c6ce13061a6
fix: allow filesystem root traversal when denyRead includes '/'
## Summary Two fixes for Linux/macOS sandbox filesystem rules. **Root-level denyRead carve-outs** (follow-up to #166, fixes #10). `denyRead: ['/']` with `allowRead: [<project>]` denied everything on both platforms. On macOS, `(subpath "/")` denies the root inode itself and no re-allow subpath covers it, so dyld SIGAB...
diff --git a/src/sandbox/linux-sandbox-utils.ts b/src/sandbox/linux-sandbox-utils.ts index d3336cd4..d4173ffd 100644 --- a/src/sandbox/linux-sandbox-utils.ts +++ b/src/sandbox/linux-sandbox-utils.ts @@ -644,14 +644,18 @@ async function generateFilesystemArgs( const args: string[] = [] // fs already imported + ...
1
1
1
[{"id": "G0", "claim": "The allowRead re-bind skip check tests allowPath against all allowedWritePaths instead of only writes actually re-bound under the current denyRead tmpfs, so when an allowWrite path is an ancestor of the denyRead directory the allowPath is wrongly skipped and left unreadable in the empty tmpfs — ...
null
anthropic-experimental__sandbox-runtime__22
anthropic-experimental/sandbox-runtime
22
defect
ae3431bbe6813a9ed90ab462b1d75587c66b0546
49468b06ce31cece8bf9c0e66b86d6a2520947ef
Add configurable httpProxyPort and socksProxyPort to network schema
## Summary - Added optional `httpProxyPort` and `socksProxyPort` fields to `NetworkConfigSchema` - When specified, the library uses the external proxy port instead of starting its own proxy - Each proxy (HTTP and SOCKS) can independently be external or local - External proxies are responsible for handling domain filter...
diff --git a/src/sandbox/sandbox-config.ts b/src/sandbox/sandbox-config.ts index 470b58a1..abcb8bb0 100644 --- a/src/sandbox/sandbox-config.ts +++ b/src/sandbox/sandbox-config.ts @@ -59,6 +59,8 @@ export const NetworkConfigSchema = z.object({ allowUnixSockets: z.array(z.string()).optional().describe('Unix socket pat...
1
1
0
[{"id": "G0", "claim": "The httpProxyIsLocal flag is confusing because the proxy is always local (only a port is configured), so it should be renamed to something like isManagedByCC or the value dropped in favor of checking whether the proxy server is undefined.", "category": "design", "verdict": "supported", "priority...
null
anthropic-experimental__sandbox-runtime__9
anthropic-experimental/sandbox-runtime
9
defect
52b6d6e954a16a806c37d0c62cfcd994f8400190
1d1c72bda89da3af2197c405d100495976e32cb0
Fix macOS Seatbelt read bypass via file movement
## Summary Fixes a security vulnerability where files protected by read deny rules could be exfiltrated by moving them to readable locations using the `mv` command. ## Vulnerability Details The `denyOnly` read restriction configuration only generated `(deny file-read*)` rules in Seatbelt profiles, which did not bloc...
diff --git a/src/sandbox/macos-sandbox-utils.ts b/src/sandbox/macos-sandbox-utils.ts index 6fc0dbb0..bef02be0 100644 --- a/src/sandbox/macos-sandbox-utils.ts +++ b/src/sandbox/macos-sandbox-utils.ts @@ -1,5 +1,6 @@ import shellquote from 'shell-quote' import { spawn } from 'child_process' +import * as path from 'path...
3
3
3
[{"id": "G0", "claim": "The glob-character regex used to extract the static prefix is missing the closing bracket, so it should be /[*?\\[\\]]/.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The move-blocking deny rules should also apply to write r...
null
anthropics__anthropic-sdk-python__16
anthropics/anthropic-sdk-python
16
defect
04e0ab000b33a9680f5f536a060a99db05a862fe
09d6be046384818faf2f6277336b18cd5a7ecac3
Fail open when the tokenizer fails to load
(ie, due to some AWS bucket issue). Fixes https://github.com/anthropics/anthropic-sdk-python/issues/13 and https://github.com/anthropics/anthropic-sdk-python/issues/14 in a better way
diff --git a/anthropic/api.py b/anthropic/api.py index 056ad047d..75e3c86dc 100644 --- a/anthropic/api.py +++ b/anthropic/api.py @@ -273,10 +273,13 @@ def _validate_request(params: dict) -> None: def _validate_prompt_length(params: dict) -> None: prompt: str = params["prompt"] - prompt_tokens = tokenizer.cou...
2
1
1
[{"id": "G0", "claim": "Log a warning (or similar) in the fail-open `except tokenizer.TokenizerException: pass` path of _validate_prompt_length so downstream users are aware something has gone wrong and a signal is emitted.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"...
null
anthropics__anthropic-sdk-python__969
anthropics/anthropic-sdk-python
969
defect
a1f61dd577cc78b2a4c26bc4eb80a875eca4aee6
bb48f5551a21a26ef892cfe6dae14000b48bd846
fix(httpx): resolve conflict between default transport and proxy settings
closes #878
diff --git a/src/anthropic/_base_client.py b/src/anthropic/_base_client.py index d2928486e..291ae7c50 100644 --- a/src/anthropic/_base_client.py +++ b/src/anthropic/_base_client.py @@ -38,9 +38,11 @@ import httpx import distro import pydantic -from httpx import URL +from httpx import URL, Proxy, HTTPTransport from ...
6
5
2
[{"id": "G0", "claim": "The async client's proxy-mount construction still uses HTTPTransport instead of AsyncHTTPTransport, so the async transport was not updated.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new import from anthropic._utils._...
null
anthropics__claude-agent-sdk-python__226
anthropics/claude-agent-sdk-python
226
defect
6793e40264b076f5592b623ec9a3b5692fea8dff
3cf6b5681aacdd308fcdb5fafced59d08f7cc0ce
Add missing hook output fields to match TypeScript SDK
Closes the gap between Python and TypeScript SDK hook output types by adding: - `reason` field for explaining decisions - `continue_` field for controlling execution flow - `suppressOutput` field for hiding stdout - `stopReason` field for stop explanations - `decision` now supports both "approve" and "block" (not ...
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 14933d267..097d2adc1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -125,6 +125,8 @@ jobs: run: | python examples/quick_start.py timeout 120 python examples/streaming_mode.py all + ...
5
5
0
[{"id": "G0", "claim": "The added `decision` field ('approve'/'block') may not be applicable to every hook-specific output; the reviewer finds it intuitive only for pre-tool-use and asks to confirm how it is used beyond that.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id...
null
anthropics__claude-agent-sdk-python__591
anthropics/claude-agent-sdk-python
591
defect
a7fd631911c9f5269a01e7a5eea5c67d6aa7bce6
01c6730f924b0dba10b71ff828374ed8d203418a
Add SystemPromptFile support for --system-prompt-file CLI flag
I'm trying to pass a really big system prompt to Claude and it fails on an ARGMAX error. This change exposes --system-prompt-file to the SDK. ## Summary - Add `SystemPromptFile` TypedDict with `type: "file"` and `path` fields to `types.py` - Add `SystemPromptFile` to the `system_prompt` union type on `ClaudeAgentO...
diff --git a/src/claude_agent_sdk/_internal/transport/subprocess_cli.py b/src/claude_agent_sdk/_internal/transport/subprocess_cli.py index a6a17f3e0..c6fe9b916 100644 --- a/src/claude_agent_sdk/_internal/transport/subprocess_cli.py +++ b/src/claude_agent_sdk/_internal/transport/subprocess_cli.py @@ -179,6 +179,8 @@ def...
2
2
2
[{"id": "G0", "claim": "ruff format flags line 183 in subprocess_cli.py; the added cmd.extend call needs wrapping (running ruff format src/ would fix it).", "category": "style", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "mypy errors on subprocess_cli.py:180 and :183: .get(\...
null
anthropics__claude-agent-sdk-python__667
anthropics/claude-agent-sdk-python
667
defect
fc8242075fb03e32a60b4710ee790c782c3021d2
9826391295d021016223aaff6ed1b445968e9734
feat: add tag/created_at to SDKSessionInfo + get_session_info
Mirrors the equivalent TypeScript SDK change. ## Changes - `SDKSessionInfo` dataclass += `tag: str | None`, `created_at: float | None` - `list_sessions()` now extracts `tag` from session tail (last occurrence wins; empty string → cleared) - NEW: `get_session_info(session_id, directory=None) -> SDKSessionInfo | None` ...
diff --git a/src/claude_agent_sdk/__init__.py b/src/claude_agent_sdk/__init__.py index 57c51718c..85052364a 100644 --- a/src/claude_agent_sdk/__init__.py +++ b/src/claude_agent_sdk/__init__.py @@ -14,7 +14,7 @@ ProcessError, ) from ._internal.session_mutations import rename_session, tag_session -from ._internal....
3
3
1
[{"id": "G0", "claim": "The no-directory path of get_session_info should filter projects_dir entries with is_dir() like _list_all_sessions and _list_sessions_for_project do, to avoid unnecessary failed I/O on non-directory entries.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "int...
null
anthropics__claude-agent-sdk-python__717
anthropics/claude-agent-sdk-python
717
defect
85275d4fb18d6fd103d1f93b208b032e255ec704
2f2fc00173edffe03aaf4ebcc85a7635720ef502
fix: propagate is_error flag from SDK MCP tool results
## Summary The `call_tool` handler in `create_sdk_mcp_server()` was discarding the `is_error` field from tool result dicts. It returned content as a bare list, which the MCP framework then wrapped in a `CallToolResult(isError=False)` regardless of what the tool returned. This meant tools that returned `{"content": [....
diff --git a/src/claude_agent_sdk/__init__.py b/src/claude_agent_sdk/__init__.py index 85052364a..09232ec8d 100644 --- a/src/claude_agent_sdk/__init__.py +++ b/src/claude_agent_sdk/__init__.py @@ -248,7 +248,7 @@ def create_sdk_mcp_server( - ClaudeAgentOptions: Configuration for using servers with query() ...
2
1
0
[{"id": "G0", "claim": "The JSONRPC bridge in query.py lines 503-504 checks and sets snake_case `is_error` while the Pydantic field is camelCase `isError`, so `hasattr(result.root, \"is_error\")` is always False and tool errors flowing through `_handle_sdk_mcp_request()` are silently dropped; both lines should use `isE...
null
anthropics__claude-agent-sdk-python__722
anthropics/claude-agent-sdk-python
722
defect
85275d4fb18d6fd103d1f93b208b032e255ec704
ed99f2fa8b9dc895640f71c54264f7154d0965fb
fix: defer CLI discovery to connect() to avoid blocking async event loops
## Summary `SubprocessCLITransport.__init__()` called `shutil.which("claude")` synchronously, which blocks the async event loop. This causes `BlockingError` in async frameworks that monitor for blocking calls (e.g., LangGraph with the `blockbuster` library). ## Fix Defer CLI resolution from `__init__` to the async `...
diff --git a/src/claude_agent_sdk/_internal/transport/subprocess_cli.py b/src/claude_agent_sdk/_internal/transport/subprocess_cli.py index a6a17f3e0..1fd2b1796 100644 --- a/src/claude_agent_sdk/_internal/transport/subprocess_cli.py +++ b/src/claude_agent_sdk/_internal/transport/subprocess_cli.py @@ -43,8 +43,8 @@ def _...
2
1
0
[{"id": "G0", "claim": "The new test test_find_cli_not_found should use the project's established convention (sync def with anyio.run(_test)) instead of @pytest.mark.anyio with async def, which no other test in the suite uses.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"...
null
anthropics__claude-agent-sdk-python__736
anthropics/claude-agent-sdk-python
736
defect
6384c69fe6f0fab544a4b3a0bf6fd74b0a2426aa
085c03d855917045b9fac0e1c3560cbdc1fea6b6
fix: convert TypedDict input_schema to proper JSON Schema in SDK MCP tools
## Problem When a `TypedDict` class is passed as `input_schema` to the `@tool` decorator, `create_sdk_mcp_server` produces an empty JSON Schema (`{"type": "object", "properties": {}}`), making all parameters invisible to the model. **Before:** ```python class SearchParams(TypedDict): query: str max_results: i...
diff --git a/src/claude_agent_sdk/__init__.py b/src/claude_agent_sdk/__init__.py index fae2292db..0ec949f09 100644 --- a/src/claude_agent_sdk/__init__.py +++ b/src/claude_agent_sdk/__init__.py @@ -1,9 +1,15 @@ """Claude SDK for Python.""" import logging +import types as builtin_types from collections.abc import Aw...
2
2
1
[{"id": "G0", "claim": "The new recursive type-mapping helpers _python_type_to_json_schema and _typeddict_to_json_schema have no unit test coverage despite handling non-trivial edge cases (unions, nested TypedDict, parameterized generics), and a human should decide whether tests should be added before merging.", "categ...
null
anthropics__claude-agent-sdk-python__744
anthropics/claude-agent-sdk-python
744
defect
b642400c96b73c37fb0c55c4c9bbc9263c7acbeb
2b8db4122718b68886331f469e4fca97e88b8710
feat: add fork_session, delete_session, and offset pagination
## Summary Adds session management APIs for forking, deleting, and paginated listing. ### New APIs **`fork_session(session_id, directory=None, up_to_message_id=None, title=None) -> ForkSessionResult`** Creates a new session branching from the source with: - UUID remapping for all transcript entries (no collision if ...
diff --git a/src/claude_agent_sdk/__init__.py b/src/claude_agent_sdk/__init__.py index fae2292db..ce33d55cc 100644 --- a/src/claude_agent_sdk/__init__.py +++ b/src/claude_agent_sdk/__init__.py @@ -14,7 +14,13 @@ CLINotFoundError, ProcessError, ) -from ._internal.session_mutations import rename_session, tag_s...
6
3
1
[{"id": "G0", "claim": "The worktree-aware scanning path in _list_sessions_for_project calls _apply_sort_limit_offset(deduped, limit) without the offset argument, so pagination silently returns the first page for projects with multiple git worktrees; fix by passing offset.", "category": "correctness", "verdict": "suppo...
null
anthropics__claude-agent-sdk-python__756
anthropics/claude-agent-sdk-python
756
defect
f9fc8e0b81026d92a696e0c8fa7e69db45933e82
ce3ccd6aef287bb1c49c229575363b8d6cd2e840
fix(mcp): forward maxResultSizeChars via _meta to bypass Zod annotation stripping
## Summary - Populates `_meta["anthropic/maxResultSizeChars"]` from `ToolAnnotations(maxResultSizeChars=N)` in `create_sdk_mcp_server` - Includes `_meta` in the JSONRPC `tools/list` response so the CLI subprocess receives it - Adds test coverage documenting the two-layer spill regression and confirming the `_meta` pip...
diff --git a/src/claude_agent_sdk/__init__.py b/src/claude_agent_sdk/__init__.py index 4ae051360..cf707d2da 100644 --- a/src/claude_agent_sdk/__init__.py +++ b/src/claude_agent_sdk/__init__.py @@ -360,12 +360,27 @@ def _build_schema(tool_def: SdkMcpTool[Any]) -> dict[str, Any]: return _typeddict_to_jso...
1
1
1
[{"id": "G0", "claim": "In test_persisted_output_is_not_full_content the large_content variable is dead code and the assertion blocks[0].content != large_content is trivially true because it compares two unrelated hardcoded strings, so the test does not verify what its docstring claims; the variable should be removed o...
null
anthropics__claude-agent-sdk-python__769
anthropics/claude-agent-sdk-python
769
defect
278570d81efcf1a37709a24e07d04b5ae04d1b27
f6f6e9634065028dfbddef79c58015a339c76ecf
fix: send string prompt in connect() instead of silently dropping it
## Summary `ClaudeSDKClient.connect(prompt="...")` followed by `receive_messages()` hangs indefinitely. The string prompt is stored on the transport but never written to stdin, so the CLI (which runs in `stream-json` mode waiting for stdin input) never receives a message and `receive_messages()` yields nothing. Fixes...
diff --git a/src/claude_agent_sdk/client.py b/src/claude_agent_sdk/client.py index 1b2af70ce..44c66d4b5 100644 --- a/src/claude_agent_sdk/client.py +++ b/src/claude_agent_sdk/client.py @@ -179,8 +179,16 @@ async def _empty_stream() -> AsyncIterator[dict[str, Any]]: await self._query.start() await self...
1
1
0
[{"id": "G0", "claim": "When connect() receives a string prompt, actual_prompt still holds the raw string and passes it to SubprocessCLITransport, where it is stored as self._prompt but never read; the reviewer suggests setting actual_prompt = _empty_stream() for string prompts (same as the None case) to avoid storing ...
null
anthropics__claude-agent-sdk-python__785
anthropics/claude-agent-sdk-python
785
defect
13f65c81e2bec2a5d1f1e1efdd45aa061c4ec43f
30c72e283fdf2d5bbc32b6318cb733dda892990b
feat(pysdk): Add 'auto' to PermissionMode type
## Summary Adds `"auto"` to the `PermissionMode` Literal type, bringing the Python SDK to parity with the TypeScript SDK (v0.2.91) and the CLI's `EXTERNAL_PERMISSION_MODES`. ## Problem The CLI binary (v2.1.90+) and the TypeScript SDK (v0.2.91) both support `"auto"` as a valid permission mode, but the Python SDK's `P...
diff --git a/src/claude_agent_sdk/types.py b/src/claude_agent_sdk/types.py index c69f1b1b0..fca39dcde 100644 --- a/src/claude_agent_sdk/types.py +++ b/src/claude_agent_sdk/types.py @@ -22,7 +22,7 @@ # Permission modes PermissionMode = Literal[ - "default", "acceptEdits", "plan", "bypassPermissions", "dontAsk" + ...
1
1
1
[{"id": "G0", "claim": "The docstrings in query.py (lines 55-60) and client.py set_permission_mode() (lines 249-254) enumerate the valid permission modes but omit the 'auto' value the PR adds to the PermissionMode type, so users consulting them will not learn that 'auto' is valid; add an '- \"auto\": Automatically dete...
null
anthropics__claude-agent-sdk-python__836
anthropics/claude-agent-sdk-python
836
defect
b70e7e19a73afca688149cf1b925ff7dbe70dc01
9be9e5ec1548217c0ba303d39d0872f422780656
fix: parse server_tool_use and advisor_tool_result content blocks
## Summary `server_tool_use` and `advisor_tool_result` blocks were silently dropped by `parse_message`, so messages that only carried a server-side tool call arrived as `AssistantMessage(content=[])`. This made it impossible to detect that the advisor (or any other server-side tool) had run from the assistant stream a...
diff --git a/src/claude_agent_sdk/__init__.py b/src/claude_agent_sdk/__init__.py index 6403415b0..f259984f7 100644 --- a/src/claude_agent_sdk/__init__.py +++ b/src/claude_agent_sdk/__init__.py @@ -44,6 +44,7 @@ from .client import ClaudeSDKClient from .query import query from .types import ( + AdvisorToolResultBl...
2
2
1
[{"id": "G0", "claim": "The new blocks' fields should be explicit types instead of raw dicts — specifically AdvisorToolResultBlock.content (content: dict[str, Any]) should be typed.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Instead of advisor-specif...
null
anthropics__claude-agent-sdk-python__857
anthropics/claude-agent-sdk-python
857
defect
6ab97b4bb20994cad11f7caa6ee29ad136399ae1
30d1e022bcf1f936f7bdedf37df7fd665eac871b
sdk(session_store): bounded retry on mirror append + uuid idempotency docs
## Summary Adds bounded retry (3 attempts, (0.2s, 0.8s) backoff) to `TranscriptMirrorBatcher._do_flush` so transient `SessionStore.append()` failures don't immediately drop the batch. Only after retries are exhausted is the batch dropped and `MirrorErrorMessage` emitted. Also documents that adapters should treat each e...
diff --git a/src/claude_agent_sdk/_internal/transcript_mirror_batcher.py b/src/claude_agent_sdk/_internal/transcript_mirror_batcher.py index 65261bbde..5bd344f95 100644 --- a/src/claude_agent_sdk/_internal/transcript_mirror_batcher.py +++ b/src/claude_agent_sdk/_internal/transcript_mirror_batcher.py @@ -27,6 +27,11 @@ ...
1
1
1
[{"id": "G0", "claim": "The retry loop catches asyncio.TimeoutError (a subclass of Exception), so a hung adapter blocks _do_flush and therefore ResultMessage delivery for up to ~181s (3x60s + backoff) instead of the previous ~60s ceiling and can launch a concurrent duplicate append; the reviewer asks to exclude Timeout...
null
anthropics__claude-agent-sdk-python__858
anthropics/claude-agent-sdk-python
858
defect
6ab97b4bb20994cad11f7caa6ee29ad136399ae1
4cd8dd647a8c8023270568dc0073d228b386baec
feat(session_store): add import_session_to_store() for local→store replay
## Summary Ports the TypeScript SDK's `importSessionToStore()` (`@alpha`, `agentSdk.ts`) to Python as `import_session_to_store()`. Streams a local `~/.claude/projects/<dir>/<sessionId>.jsonl` line-by-line into `SessionStore.append()` in batches (default 500 entries / 1 MiB), optionally including subagent transcripts ...
diff --git a/src/claude_agent_sdk/__init__.py b/src/claude_agent_sdk/__init__.py index e88971d01..3e60d5bdb 100644 --- a/src/claude_agent_sdk/__init__.py +++ b/src/claude_agent_sdk/__init__.py @@ -25,6 +25,7 @@ CLINotFoundError, ProcessError, ) +from ._internal.session_import import import_session_to_store ...
1
1
1
[{"id": "G0", "claim": "The store `project_key` is derived from the `directory` argument instead of the resolved on-disk session file path, so when `_resolve_session_file_path()` finds the file elsewhere (the `directory=None` search over all project dirs, or the git-worktree fallback) the import lands under the wrong `...
null
anthropics__claude-agent-sdk-python__870
anthropics/claude-agent-sdk-python
870
defect
c1eb34edccab5cd5e1a4f13f04ee56e7c7b34346
1faa93c3eb54bd8ec5cc45c2f99e7f4c7c115598
fix(query): restore trio compatibility via sniffio dispatch
## Problem PR #746 (v0.1.51+) replaced `anyio.TaskGroup` with `asyncio.create_task()` in `Query` to fix #378 (100% CPU spin in `_deliver_cancellation`) and #454 (cross-task cancel-scope `RuntimeError`). However, `asyncio.get_running_loop()` raises `RuntimeError: no running event loop` under trio, breaking `ClaudeSDKCl...
diff --git a/pyproject.toml b/pyproject.toml index 8b9589a0c..016b19845 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,6 +26,7 @@ classifiers = [ keywords = ["claude", "ai", "sdk", "anthropic"] dependencies = [ "anyio>=4.0.0", + "sniffio>=1.0.0", "typing_extensions>=4.0.0; python_version<'3.11'"...
5
5
3
[{"id": "G0", "claim": "Because _runner wraps the coroutine in the trio handle's level-triggered CancelScope, the awaited `send({\"type\": \"end\"})` in _read_messages' finally raises Cancelled instead of delivering the sentinel after close() under trio, so a consumer blocked in receive_messages() hangs forever; use se...
null
anthropics__claude-agent-sdk-python__917
anthropics/claude-agent-sdk-python
917
defect
99479bcaf46487abedb19e1d32732b857b3ead24
e37e059f563125a6ef9be882d79eeaac2ab258ba
feat: add include_hook_events option
Add `include_hook_events` to `ClaudeAgentOptions`. When set, hook events (PreToolUse, PostToolUse, Stop, etc.) are emitted by the CLI and yielded from the message stream as `HookEventMessage`. Matches the TypeScript SDK's `includeHookEvents`.
diff --git a/src/claude_agent_sdk/__init__.py b/src/claude_agent_sdk/__init__.py index 22658d5e2..5df9387c0 100644 --- a/src/claude_agent_sdk/__init__.py +++ b/src/claude_agent_sdk/__init__.py @@ -66,6 +66,7 @@ ContextUsageResponse, HookCallback, HookContext, + HookEventMessage, HookInput, H...
2
2
2
[{"id": "G0", "claim": "The parser's hook-event branch keys on a top-level `hook_event_name` field the CLI never emits, so hook events arrive as `system`/`hook_started`|`hook_response` messages and are never surfaced as `HookEventMessage`; the parser should instead key on `type == \"system\"` plus `subtype in (\"hook_s...
null
anthropics__claude-agent-sdk-python__918
anthropics/claude-agent-sdk-python
918
defect
99479bcaf46487abedb19e1d32732b857b3ead24
a2c9516de2c584209555e13507e6e97678c19158
fix(query): surface result error text in trailing ProcessError instead of generic exit code
Relates to #913. ## Problem When the CLI emits a result message with `is_error: True` (e.g. `subtype=error_max_turns`, `error_during_execution`, `error_max_budget_usd`) it then exits with a non-zero code on purpose, for shell-script consumers. The transport's `_read_messages_impl` raises `ProcessError` on that exit c...
diff --git a/src/claude_agent_sdk/_internal/query.py b/src/claude_agent_sdk/_internal/query.py index 0843453ef..1f2502d11 100644 --- a/src/claude_agent_sdk/_internal/query.py +++ b/src/claude_agent_sdk/_internal/query.py @@ -15,6 +15,7 @@ ListToolsRequest, ) +from .._errors import ProcessError from ..types imp...
2
2
2
[{"id": "G0", "claim": "The suppressed-ProcessError branch skips the fail-fast loop over pending_control_responses, so a control request (e.g. client.interrupt()) in flight when the CLI exits hangs for the full 60s timeout instead of failing immediately; hoist the pending_control_responses loop above the if/else so it ...
null
anthropics__claude-code-action__1048
anthropics/claude-code-action
1,048
defect
567be3da98ac1cacd803477c9a738bec79484dc0
8b7fe18f7e4d7d3ce373b52a971a3e41ddb9fdb1
feat(inline-comment): add confirmed param + probe-pattern safety net
## Problem Subagents that inherit `mcp__github_inline_comment__create_inline_comment` post test/probe comments on customer PRs — e.g. "Test comment to see if I can create inline comments" — when they probe the tool after hitting unrelated GraphQL errors. Recurring issue since Dec 2025. CLI-level root cause: MCP tools...
diff --git a/action.yml b/action.yml index d1b9ad0fb..402f3e4a0 100644 --- a/action.yml +++ b/action.yml @@ -282,6 +282,19 @@ runs: run: | bun run ${GITHUB_ACTION_PATH}/src/entrypoints/cleanup-ssh-signing.ts + - name: Report buffered inline comments + if: always() + shell: bash + run...
7
2
2
[{"id": "G0", "claim": "The buffered response coaches subagents on how to bypass the guard (\"Set confirmed=true to post\") and the default-allow posture leaves the fragile probe regex as the primary safety gate, so the default should be inverted so that confirmed: true is required to post (and the coaching removed).",...
null
anthropics__claude-code-action__1174
anthropics/claude-code-action
1,174
defect
6685b26dfb584fe21672d006c23a6f004960da77
3976f9cdf199537b46606bd023fed7f6bb7046be
fix: pin bun runtime config and improve log hygiene
- Pin `--config`, `--tsconfig-override`, and `--no-env-file` on the three `bun run` entrypoints so bun resolves runtime config from the action directory instead of the workspace - Register the OIDC-exchanged app token with `core.setSecret` - Omit `extraArgs` from the SDK options debug log alongside `env` - Add `CLAUDE....
diff --git a/action.yml b/action.yml index 0bbe537e8..28eca07de 100644 --- a/action.yml +++ b/action.yml @@ -227,7 +227,10 @@ runs: id: run shell: bash run: | - bun run ${GITHUB_ACTION_PATH}/src/entrypoints/run.ts + bun --no-env-file \ + --config="${GITHUB_ACTION_PATH}/bunfig...
4
1
1
[{"id": "G0", "claim": "The snapshot phase only copies .claude/ to .claude-pr/, so the three newly added SENSITIVE_PATHS (CLAUDE.md, CLAUDE.local.md, .husky) are deleted without ever being snapshotted, contradicting the code comment's stated intent; fix by copying each of the three new paths into .claude-pr/ before the...
null
anthropics__claude-code-action__506
anthropics/claude-code-action
506
defect
0c127307fa529d701bc1f0f8f9c0bea881c49a9b
07a69eeb9cc4f37b132f262090a62329eda36a3f
feat: enhance mode routing with track_progress and context preservation
This PR implements enhanced mode routing to address two critical v1 migration issues identified in discussions #490 and #491: ## Problems Addressed 1. **Lost GitHub Context (Discussion #490)**: Users migrating from `direct_prompt` to `prompt` lost automatic GitHub context injection, causing Claude to review wrong rep...
diff --git a/action.yml b/action.yml index 31e3fca8e..fa852dc59 100644 --- a/action.yml +++ b/action.yml @@ -73,6 +73,10 @@ inputs: description: "Enable commit signing using GitHub's commit signature verification. When false, Claude uses standard git commands" required: false default: "false" + track_pr...
2
1
0
[{"id": "G0", "claim": "The track_progress input description in action.yml should say it only applies to pull_request and issue events in general.", "category": "documentation", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The GitHubContext type used in PreparedContext should b...
null
anthropics__claude-code-action__534
anthropics/claude-code-action
534
defect
9365bbe4af06e4d23be5f69ba82b3853135d1131
532c5e257d001183648427f10f511d40e0e9885e
feat: add bot_id input to handle GitHub App authentication errors
## Summary - Adds a new `bot_id` input parameter to resolve GitHub App authentication issues - Prevents "403 Resource not accessible by integration" errors when using GitHub App tokens - Fixes test issue where agent mode tests were modifying actual git config - Includes comprehensive documentation updates ## Problem 1...
diff --git a/action.yml b/action.yml index 278526939..d9cdf7c6e 100644 --- a/action.yml +++ b/action.yml @@ -73,6 +73,10 @@ inputs: description: "Enable commit signing using GitHub's commit signature verification. When false, Claude uses standard git commands" required: false default: "false" + bot_id: ...
1
1
0
[{"id": "G0", "claim": "The magic string \"41898282\" in src/modes/agent/index.ts should probably have a comment explaining its meaning.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
anthropics__claude-code-action__638
anthropics/claude-code-action
638
defect
96524b7ffef3f2822bddfa24f4509d342783df13
8c3abb76060f7714bb7ed60054e42e4ea804fa24
feat: add plugins input to install Claude Code plugins
## Summary This PR adds support for installing Claude Code plugins via a new `plugins` input that accepts a comma-separated list of plugin names. ## Changes - **Added `plugins` input** to both `action.yml` files (main action and base-action) - **Created plugin installation module** (`base-action/src/install-p...
diff --git a/action.yml b/action.yml index 50e001388..3502c8e7f 100644 --- a/action.yml +++ b/action.yml @@ -101,6 +101,10 @@ inputs: description: "Optional path to a custom Bun executable. If provided, skips automatic Bun installation and uses this executable instead. WARNING: Using an incompatible version may ca...
15
6
3
[{"id": "G0", "claim": "Building the install command with exec and string interpolation allows command injection through plugin names and the executable path; replace exec with spawn/execFile passing arguments as an array.", "category": "security", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id"...
null
anthropics__claude-code-action__684
anthropics/claude-code-action
684
defect
e45f28fae731868d4ce03c6e0daa5867af6eff61
3cb6c02016d2492d981c7fb5f5cbca5837bdaa18
feat: add Microsoft Foundry provider support
Add support for Azure AI Foundry as a fourth cloud provider option alongside Anthropic API, AWS Bedrock, and Google Vertex AI. Changes: - Add use_foundry input to enable Azure AI Foundry authentication - Add Azure environment variables (ANTHROPIC_FOUNDRY_RESOURCE, ANTHROPIC_FOUNDRY_API_KEY, ANTHROPIC_FOUNDRY_BASE_...
diff --git a/README.md b/README.md index d93366fd86..35be21f261 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ # Claude Code Action -A general-purpose [Claude Code](https://claude.ai/code) action for GitHub PRs and issues that can answer questions and implement code changes. This action intelligently detec...
8
5
4
[{"id": "G0", "claim": "The resource name is interpolated directly into the base URL without validation, so an attacker who controls ANTHROPIC_FOUNDRY_RESOURCE could inject characters to redirect API calls; add validation (allowed-characters regex, length cap, HTTPS URL check) in validate-env.ts.", "category": "securit...
null
anthropics__claude-code-action__687
anthropics/claude-code-action
687
defect
08f88abe2b007cc11b8e87577863e9bdc3e88c32
2ed55d8e3a61dcd73d7bea2a7fa80349d73f973a
feat: add structured output support via --json-schema argument
Add support for Agent SDK structured outputs. **Usage**: Pass `--json-schema` flag in `claude_args` input **Output**: `structured_output` - JSON string with all fields **Access**: `fromJSON(steps.id.outputs.structured_output).field_name` ## Example ```yaml - id: analyze uses: anthropics/claude-code-action@v1 ...
diff --git a/.github/workflows/test-structured-output.yml b/.github/workflows/test-structured-output.yml new file mode 100644 index 000000000..918217033 --- /dev/null +++ b/.github/workflows/test-structured-output.yml @@ -0,0 +1,349 @@ +name: Test Structured Outputs + +on: + push: + branches: + - main + pull_...
16
3
1
[{"id": "G0", "claim": "The JSON schema is interpolated into a shell command string without escaping single quotes, so single quotes in JSON_SCHEMA can break out of the quoted argument and inject commands.", "category": "security", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ...
null
anthropics__claude-code-action__698
anthropics/claude-code-action
698
defect
798cf0988d672fc8049482ce79e55d909193e150
42b1935ec1fbc3eee049e103e7b3d33273427709
feat: add Agent SDK support with USE_AGENT_SDK feature flag
Add a feature-flagged code path that uses the Agent SDK instead of spawning the CLI as a subprocess. When USE_AGENT_SDK=true is set, the new SDK path is used; otherwise, existing CLI behavior is unchanged. Changes: - Add parse-sdk-options.ts for parsing ClaudeOptions into SDK format - Add run-claude-sdk.ts for SDK...
diff --git a/base-action/bun.lock b/base-action/bun.lock index 16ee3228a3..81b0993c9d 100644 --- a/base-action/bun.lock +++ b/base-action/bun.lock @@ -5,6 +5,7 @@ "name": "@anthropic-ai/claude-code-base-action", "dependencies": { "@actions/core": "^1.10.1", + "@anthropic-ai/claude-agent-sd...
9
3
2
[{"id": "G0", "claim": "Hardcoding permissionMode \"bypassPermissions\" and allowDangerouslySkipPermissions: true gives Claude unrestricted access, and this should be documented, protected by strict input validation and logged for audit trails.", "category": "security", "verdict": "supported", "priority": "P1", "scope"...
null
anthropics__claude-code-action__773
anthropics/claude-code-action
773
defect
3ba9f7c8c2d3f122d3465c267a87b26a1f4783a6
b057ef469ce74140509c41efd3c2b71c1f8c65f5
feat: add instant "Fix this" links to PR code reviews
When Claude reviews PRs and identifies fixable issues, it now includes one click links to fix the issues in Claude Code web, with the context and repo filled in. I reverse-engineered the Claude Code web site and found hidden query parameters you can use to pass in starting parameters. Format: [Fix this →](https:...
diff --git a/src/create-prompt/index.ts b/src/create-prompt/index.ts index 7a62e6ea5..777dfd0c5 100644 --- a/src/create-prompt/index.ts +++ b/src/create-prompt/index.ts @@ -734,7 +734,9 @@ ${eventData.eventName === "issue_comment" || eventData.eventName === "pull_reque - Reference specific code sections with f...
1
1
1
[{"id": "G0", "claim": "Users should be able to opt out of the new Fix-this links via an input such as `include_fix_links` (defaulting it to true is fine).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
anthropics__claude-code-action__784
anthropics/claude-code-action
784
defect
154d0de144ff82240e1c3deedff56280381fd122
0e9b9a4de94dbd738d571a94cfeebf965e3725a7
feat: add ssh_signing_key input for SSH commit signing
## Summary Add a new `ssh_signing_key` input that allows passing an SSH signing key for commit signing, as an alternative to the existing `use_commit_signing` (which uses GitHub API-based commits). ## Why The existing `use_commit_signing` option uses the GitHub API to create commits, which means it cannot perform co...
diff --git a/action.yml b/action.yml index e0ce364cb..f4f8fed8a 100644 --- a/action.yml +++ b/action.yml @@ -81,6 +81,10 @@ inputs: description: "Enable commit signing using GitHub's commit signature verification. When false, Claude uses standard git commands" required: false default: "false" + ssh_sign...
8
3
2
[{"id": "G0", "claim": "The SSH private key is written with default permissions and chmod'ed in a separate operation, leaving a window where the key file may have insecure permissions; write it atomically in a single call with { mode: 0o600 }.", "category": "security", "verdict": "supported", "priority": "P1", "scope":...
null
anthropics__claude-code-action__785
anthropics/claude-code-action
785
defect
7e4bf87b1c28d519b842e6b1b02c031f99983d09
6a4314b9ced5f18d9dbd6d340fc1be931f1fa4e8
feat: send user request as separate content block for slash command support
When in tag mode with the SDK path, extracts the user's request from the trigger comment (text after @claude) and sends it as a separate content block. This enables the CLI to process slash commands like "/review-pr". ## Changes - Add extract-user-request utility to parse trigger comments - Write user request to separ...
diff --git a/base-action/src/run-claude-sdk.ts b/base-action/src/run-claude-sdk.ts index 2bf0b2478..61154b746 100644 --- a/base-action/src/run-claude-sdk.ts +++ b/base-action/src/run-claude-sdk.ts @@ -1,14 +1,73 @@ import * as core from "@actions/core"; -import { readFile, writeFile } from "fs/promises"; +import { rea...
8
5
2
[{"id": "G0", "claim": "The greedy (.*) quantifier with the s flag in extractUserRequest could cause catastrophic backtracking (ReDoS) on very large comment bodies; add input length validation or use string operations instead of the regex.", "category": "security", "verdict": "supported", "priority": "P1", "scope": "in...
null
anthropics__claude-code-action__793
anthropics/claude-code-action
793
defect
c9ec2b02b40ac0444c6716e51d5e19ef2e0b8d00
d4acdf0a63801e4fa480e6f709017866d77fe5ad
fix: use original title from webhook payload instead of fetched title
## Summary Use the original PR/issue title from the webhook payload instead of the title fetched via GraphQL. This ensures the title used in prompts is the one that existed when the trigger event occurred. ## Changes - Add `extractOriginalTitle()` helper to extract title from webhook payload for all entity event typ...
diff --git a/src/github/data/fetcher.ts b/src/github/data/fetcher.ts index c756e00dd..b59964da0 100644 --- a/src/github/data/fetcher.ts +++ b/src/github/data/fetcher.ts @@ -3,6 +3,8 @@ import type { Octokits } from "../api/client"; import { ISSUE_QUERY, PR_QUERY, USER_QUERY } from "../api/queries/github"; import { ...
4
2
1
[{"id": "G0", "claim": "Titles should be sanitized with sanitizeContent() in formatContext() like other user-controlled content, since the original title is assigned into contextData without sanitization.", "category": "security", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "...
null
anthropics__claude-code-action__904
anthropics/claude-code-action
904
defect
9a3c761f5420a7b776288d0700d261730771c1b3
8378c9d6ee21c74ec638ba6683763c85cd0569bf
fix: use original body from webhook payload for TOCTOU hardening
Use the original issue/PR body from the webhook payload instead of fetching it via GraphQL, matching the existing approach used for titles (`extractOriginalTitle`). This hardens against the case where the body is edited between event time and when the action reads it. Changes: - Add `extractOriginalBody()` to extract ...
diff --git a/src/github/data/fetcher.ts b/src/github/data/fetcher.ts index fb344ac3a..8d0e6ebbe 100644 --- a/src/github/data/fetcher.ts +++ b/src/github/data/fetcher.ts @@ -71,6 +71,33 @@ export function extractOriginalTitle( return undefined; } +/** + * Extracts the original body from the GitHub webhook payload....
5
1
1
[{"id": "G0", "claim": "The body validation logic is inconsistent with title validation - the body falls back to isBodySafeToUse() when originalBody is undefined while the title only checks originalTitle !== undefined - and since titles share the same TOCTOU edit vector, the PR should either add similar timestamp valid...
null
anthropics__connect-rust__37
anthropics/connect-rust
37
defect
30132af34938ad784faffe9d895914a43a3758db
95f363dc33ef6cd6e7c8e32f6d88bf2005225244
Update outdated dependencies
## Summary Bumps direct dependencies that were several majors behind (per [deps.rs](https://deps.rs/repo/github/anthropics/connect-rust)) and pins direct deps to security-advisory floors while preserving each crate's major caret. `cargo update` refreshes the rest of the transitives. ## Direct deps bumped (major) | D...
diff --git a/Cargo.toml b/Cargo.toml index 5d08cf7e..50f9d77d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -79,7 +79,7 @@ prettyplease = "0.2" # Dev dependencies tempfile = "3" -rcgen = "0.13" +rcgen = "0.14" [workspace.lints.rust] dead_code = "warn" diff --git a/benches/rpc/Cargo.toml b/benches/rpc/Cargo.toml i...
2
2
0
[{"id": "G0", "claim": "The rcgen dependency in tests/streaming/Cargo.toml should be specified as `workspace = true` rather than a locally pinned version.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The tracing-subscriber dependency in exampl...
null
antlr__intellij-plugin-v4__359
antlr/intellij-plugin-v4
359
defect
e12d8b8d2dcb059037bd62aba008a880be4e115a
692ae5b25aed522ad40aa09b190d6f8f6189e8f3
Implicit token def quick fix
Provide quick fix for missing token definition from fragments.
diff --git a/build.gradle b/build.gradle index 41453a7a..0d8d6c61 100644 --- a/build.gradle +++ b/build.gradle @@ -42,6 +42,8 @@ dependencies { } compile "org.antlr:antlr4-intellij-adaptor:0.1" testCompile group: 'junit', name: 'junit', version: '4.11' + testCompile group: 'org.mockito', name: 'mockit...
3
2
0
[{"id": "G0", "claim": "The quick fix should default to `MYTOKEN: 'MYTOKEN'` instead of `MYTOKEN : M Y T O K E N;`, which the reviewer is not convinced is a sensible default.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The inserted token definition's va...
null
antlr__intellij-plugin-v4__394
antlr/intellij-plugin-v4
394
defect
257e91094dc395236bb75e3a5cdb0ddf6ae70f6a
437223d54549b38fb4a36dab8c8b3a798d1f7487
Match configuration files wildcard
Fixes #390
diff --git a/src/main/java/org/antlr/intellij/plugin/configdialogs/ANTLRv4GrammarPropertiesStore.java b/src/main/java/org/antlr/intellij/plugin/configdialogs/ANTLRv4GrammarPropertiesStore.java index 2632f5ee..dd34972c 100644 --- a/src/main/java/org/antlr/intellij/plugin/configdialogs/ANTLRv4GrammarPropertiesStore.java ...
1
1
1
[{"id": "G0", "claim": "Creating the WildcardFileNameMatcher from an arbitrary stored pattern may throw on invalid patterns (e.g. \"_gdsgjdwwf/\\ dfs\", \"[\", \"*\"), which is unhandled in findSettingsForFile.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
antongolub__yarn-audit-fix__346
antongolub/yarn-audit-fix
346
defect
35d4c9a45bd9af342ac54cf18d390c011f0ba758
7f9eb2e78a09e909516a3c2cf656a19069062f85
chore: small linter fixes/improvements
## Description This PR purpose a few linter fixes: - Suggest different `lint:fix` command, as the current command throws _command "lint" not found._ error. - Fix `sonarjs/no-duplicate-string` linter error introduced by #345 without disabling the error for the line. - Fix couple of `@typescript-eslint/no-unused-vars...
diff --git a/package.json b/package.json index 7da34878..daa5b5bb 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ }, "scripts": { "clean": "rimraf target buildcache docs coverage", - "lint:fix": "yarn lint --fix", + "lint:fix": "eslint -c src/test/lint/.eslintrc.json src --fix", "fo...
1
1
0
[{"id": "G0", "claim": "Instead of the inline eslint-disable-line for sonarjs/no-duplicate-string on the '@scope/package' string in src/test/ts/util.ts, add src/test/ts/util.ts to the rule's file exclusions in src/test/lint/.eslintrc.json (the string itself is fine).", "category": "maintainability", "verdict": "support...
null
antoniomika__sish__247
antoniomika/sish
247
defect
7aecd2d71877cd52e66a9d1f269a02cce538552e
446f655ef0b6a9974877be6e3b10e4a629230d46
Add authentication-key-request-url option
Allows validating ssh public keys via an HTTP request to a separate service (if a key in the auth keys directory didn't already succeed). The `authentication-key-request-url` flag allows specifying a URL which will receive an HTTP POST request whose body contains an OpenSSH 'authorized key' formatted public-key for ...
diff --git a/README.md b/README.md index bccd60b4..310ea695 100644 --- a/README.md +++ b/README.md @@ -320,6 +320,7 @@ Flags: sish will watch this directory and automatically load new keys and remove keys ...
3
3
0
[{"id": "G0", "claim": "The new authentication-key-request-timeout flag should also be documented in README.md, as is done for other flags.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The authentication request should also send information like...
null
antonioru__beautiful-react-hooks__151
antonioru/beautiful-react-hooks
151
defect
7838f6198f2f00801407bf47994582e454b3afd9
e86f096c5d448418e2b810cb48417919ef4e1815
Add useObservable
Add `useObservable` hook ## Description A hook for using `rxjs` observables in react components ## Motivation and Context Was inspired by how the code looks structured with `rxjs` ## How Has This Been Tested? - Subscribe and checked single value - Subscribe and checked multiple values - Checked the render...
diff --git a/docs/useObservable.md b/docs/useObservable.md new file mode 100644 index 00000000..4fc03182 --- /dev/null +++ b/docs/useObservable.md @@ -0,0 +1,107 @@ +# useObservable + +Make your components reactive with `rxjs` + +### Why? 💡 + +- you can change your data in pipes with default rxjs operators +- combine...
2
1
1
[{"id": "G0", "claim": "The rxjs dependency is declared in the wrong section of package.json — it should be a devDependency rather than a peerDependency.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The effect cleanup could be shortened to `return subs...
null
antonioru__beautiful-react-hooks__370
antonioru/beautiful-react-hooks
370
defect
ddc2bc7a3efb94815cd60fa59bead586740b07f9
b7bd67f92053dfadf05830913ae5ff8e0e732ad5
feat(hook): create useCookie hook
<!--- Provide a general summary of your changes in the Title above --> I made a hook that allows dealing with CookieStore API. Users can change cookie value via deleteCookie and updateCookie functions. And can get direct access to cookie value via cookieValue parameter. Also custom error handling is possible via onErr...
diff --git a/.gitignore b/.gitignore index e316d70a..f06121fd 100644 --- a/.gitignore +++ b/.gitignore @@ -234,4 +234,5 @@ dist-ghpages/ coverage.lcov ## as it is intended for projects not libraries +yarn.lock package-lock.json diff --git a/docs/useCookie.md b/docs/useCookie.md new file mode 100644 index 00000000....
5
4
0
[{"id": "G0", "claim": "The frozen not-supported response object should be stored in a constant outside the hook's scope instead of being re-defined on every render.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The hook should not cast window to a...
null
antonioru__beautiful-react-hooks__381
antonioru/beautiful-react-hooks
381
defect
0c68f42b779583b9a0ed80c800da0c0a13ade89f
945dcfb2bb474034c4a7d68fbcc3d12b633564d4
feat(hook): create useDarkMode hook
<!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> Basically looking at issues I've found one need for useDarkMode so I made it. To achieve this I've created 2 additional hooks `useIsFirstRender` and `useUpdateEffect`. The important thing...
diff --git a/README.md b/README.md index 30325515..d9be7761 100644 --- a/README.md +++ b/README.md @@ -116,6 +116,9 @@ $ yarn add beautiful-react-hooks * [useSwipeEvents](docs/useSwipeEvents.md) * [useConditionalTimeout](docs/useConditionalTimeout.md) * [useCookie](docs/useCookie.md) +* [useDarkMode](docs/useDarkMod...
1
1
1
[{"id": "G0", "claim": "Get rid of the useIsFirstRender and useUpdateEffect hooks, since they force a class-components-lifecycle mental model that does not fit how React manages hooks and side effects, useIsFirstRender returns a false positive under React StrictMode, and useUpdateEffect amounts to a hack; use standard ...
null
antonioru__beautiful-react-hooks__400
antonioru/beautiful-react-hooks
400
defect
e8b3433c93a6abaccf43df5e80cb53bc90b937ff
73f7e297b20b883c2eae20ce6f831be3ca120b31
🐛 useLocalStorage no longer returns a new setValue function every time setValue is called
<!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> Instead of using `storedValue` as a dependency within the `setValue` callback in `createStorageHook.ts` we are getting the current stored value from `setStoredValue` directly. This stops ...
diff --git a/.github/workflows/branch-tests.yml b/.github/workflows/branch-tests.yml index 25219cb9..ff89fe1c 100644 --- a/.github/workflows/branch-tests.yml +++ b/.github/workflows/branch-tests.yml @@ -15,7 +15,8 @@ jobs: strategy: matrix: - node-version: 18 + node-version: [ 18 ] + ...
1
1
0
[{"id": "G0", "claim": "The unrelated change to the GitHub Actions workflow (node-version matrix syntax and os: [ubuntu-latest]) does not belong in this pull request and should be removed or moved to a separate issue and PR.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
antoyo__relm__165
antoyo/relm
165
defect
921ce0e146ccc56cfd36a190e606b3872b6a8218
73dbaf96bb435323f86f0799729017c95c383b7e
Update to gtk-rs 0.6
I give this issue a try. Please take a look :) Fixes #164
diff --git a/Cargo.toml b/Cargo.toml index c0890d35..c500799f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ license = "MIT" name = "relm" readme = "README.adoc" repository = "https://github.com/antoyo/relm" -version = "0.15.2" +version = "0.16.0" [badges.appveyor] branch = "master" repository = "antoyo...
4
3
3
[{"id": "G0", "claim": "Update .travis.yml — change dist: trusty to dist: xenial and add the libmount-dev package — so the tests can run on Travis with the new gtk version.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Update the crate versions in the ...
null
antoyo__relm__253
antoyo/relm
253
defect
1bbbbd20456dc37bc8d000f8e437bf85860096a7
8e231a7b5bcea657c4f0bd916e865fcd64d86ae3
Filters doc attrs in Msg::display_variant gen
Fixes #247
diff --git a/relm-derive/src/lib.rs b/relm-derive/src/lib.rs index 8047b844..2d236aab 100644 --- a/relm-derive/src/lib.rs +++ b/relm-derive/src/lib.rs @@ -81,7 +81,7 @@ fn derive_display_variant(ast: &Item, krate: &Ident) -> TokenStream { }; let variant_patterns = enum_item.variants.iter().map(|vari...
1
1
0
[{"id": "G0", "claim": "The doc-attribute filter should use `is_ident()` instead of comparing only the first path segment, since that also checks the path has a single segment (e.g. `.filter(|attr| !attr.path.is_ident(&dummy_ident(\"doc\")))`), and maybe an additional function should be created to avoid calling `dummy_...
null
antoyo__relm__286
antoyo/relm
286
defect
6b97cd493d27aa94dc0cfe04b552aba7ea27a1cb
a43cc2836d27d3371718f4b9aa70f2805860c346
improve error message on empty view macro
Fixes #268. This commit improves the error message emitted when an empty `view!` macro is provided. It also adds UI testing infrastructure to relm_derive, to make it easier to test future improvements to the macro. A new step for `relm_derive` tests is added to CI. The existing unit tests in relm_derive do not co...
diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 590931b5..b5218f88 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -49,6 +49,10 @@ jobs: openbox & cargo test --manifest-path relm-examples/Cargo.toml -- --nocapture + - name: "relm-derive: te...
2
2
0
[{"id": "G0", "claim": "Format the reworked `use syn::{...}` import block in relm-derive/src/gen/mod.rs with one import per line, as it was before, to avoid useless git conflicts.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Remove the trailin...
null
antoyo__relm__80
antoyo/relm
80
defect
399d647d0fb57f403895f7e5d99509d54d7bd65b
3ecb6404eb4bdca09c9c455078ec15f0d12b2f2d
Fix/example webkit test
Reenable webkit example. Sorry for that many commits. I don't get the `git squash`
diff --git a/.travis.yml b/.travis.yml index 8fb3dfb4..e3365c58 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,7 +10,6 @@ addons: - binutils-dev - libgtk-3-dev - libsoup2.4-dev - #- libwebkit2gtk-4.0-dev env: - RUST_BACKTRACE=1 @@ -20,6 +19,11 @@ rust: #- beta #- stable +befor...
1
1
0
[{"id": "G0", "claim": "Revert the license header comment in examples/webkit-test/src/main.rs to the old /* ... */ block form, which this PR had rewritten as // lines, so the reviewer's editor plugin keeps a single consistent format.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "i...
null
antoyo__relm__89
antoyo/relm
89
defect
34b2516f298a1d1db71ed33831e41ee5fa09472f
127258060e6c0e995ee0d6e24da559d466864028
Fix the relm-core example
I discovered the problem by making `relm` a workspace and running `cargo test -all` which runs all tests in all crates, and builds all examples in all crates. I fixed the problem and made `relm` a workspace so that future bugs can be more easily caught. I also added comments to the example to make it easier to follow f...
diff --git a/relm-core/Cargo.toml b/relm-core/Cargo.toml index 3b2c2fe3..98e0d5eb 100644 --- a/relm-core/Cargo.toml +++ b/relm-core/Cargo.toml @@ -11,6 +11,7 @@ version = "0.12.0" [dependencies] futures = "^0.1.14" futures-glib = "^0.3.0" +gtk = "^0.3.0" [dev-dependencies] chrono = "^0.3.0" diff --git a/relm-cor...
15
14
1
[{"id": "G0", "claim": "Making relm a workspace breaks the build of examples/buttons-derive (\"current package believes it's in a workspace when it's not\") and introduces a bunch of other issues, so the workspace commit should be removed from this pull request.", "category": "correctness", "verdict": "supported", "pri...
null
antvis__F2__670
antvis/F2
670
defect
19a3cc6c9f8061675a8a8acbca6cdb60fd2bd390
bfe5042207c916e17a1143329fd8cd123a077053
fix: 图例只支持分类数据
<!-- Thank you for your pull request. Please review below requirements. Bug fixes and new features should include tests and possibly benchmarks. Contributors guide: https://github.com/antvis/F2/blob/master/CONTRIBUTING.zh-CN.md 感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试,必要时请附上性能测试。 Contributors guide: http...
diff --git a/src/chart/chart.js b/src/chart/chart.js index 6e098a76a..eb141fcfa 100644 --- a/src/chart/chart.js +++ b/src/chart/chart.js @@ -749,7 +749,8 @@ class Chart extends Base { const colorAttr = geom.getAttr('color'); if (colorAttr) { const scale = colorAttr.getScale('color'); - if ...
1
1
0
[{"id": "G0", "claim": "Tests should be added to make sure the change (legend scales collected only for category scales) works as expected.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
antvis__F2__725
antvis/F2
725
defect
0e64ccc07bb6391b6ddd547171dd2868c08339e4
2b9c4dc243801c1db16e97db4c54ce02b1fbc8b2
fix: 修复Shape.Text 在设置 rotate 之后 Box 宽高不正确的问题
<!-- Thank you for your pull request. Please review below requirements. Bug fixes and new features should include tests and possibly benchmarks. Contributors guide: https://github.com/antvis/F2/blob/master/CONTRIBUTING.zh-CN.md 感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试,必要时请附上性能测试。 Contributors guide: http...
diff --git a/src/graphic/shape/text.js b/src/graphic/shape/text.js index 0e1200ac2..2fc1efb42 100644 --- a/src/graphic/shape/text.js +++ b/src/graphic/shape/text.js @@ -147,7 +147,7 @@ class Text extends Shape { const self = this; const attrs = self._attrs.attrs; const { x, y, textAlign, textBaseline } =...
2
2
1
[{"id": "G0", "claim": "Please add tests to make sure this rotate-bBox change works as expected.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Move the calcRotatedBox helper out of the global src/util/common.js into the src/graphic/util directory, sinc...
null
antvis__F2__727
antvis/F2
727
defect
27e3eecc3c33b646eef5f5f73ad54587410a254f
e2cfbdd9eb4e77c01ba15657755db36144f98b54
fix: 修复数据经过分组之后,没有任何数据的分组也参与绘图计算,尤其是在柱状图中,会占用宽度.
<!-- Thank you for your pull request. Please review below requirements. Bug fixes and new features should include tests and possibly benchmarks. Contributors guide: https://github.com/antvis/F2/blob/master/CONTRIBUTING.zh-CN.md 感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试,必要时请附上性能测试。 Contributors guide: http...
diff --git a/src/geom/base.js b/src/geom/base.js index 035b592c2..0bca2b26d 100644 --- a/src/geom/base.js +++ b/src/geom/base.js @@ -196,7 +196,10 @@ class Geom extends Base { const self = this; const data = this.get('data'); const dataArray = []; - const groupedArray = this._groupData(data); + con...
1
1
0
[{"id": "G0", "claim": "Add tests to make sure the grouping change in src/geom/base.js works as expected.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
antvis__F2__729
antvis/F2
729
defect
27e3eecc3c33b646eef5f5f73ad54587410a254f
4af579ad7a45f263a5f383bf445766ad5fa2b8dd
fix: 滑动x轴时,cat的ticks会被置成null
<!-- Thank you for your pull request. Please review below requirements. Bug fixes and new features should include tests and possibly benchmarks. Contributors guide: https://github.com/antvis/F2/blob/master/CONTRIBUTING.zh-CN.md 感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试,必要时请附上性能测试。 Contributors guide: http...
diff --git a/src/interaction/mixin/move.js b/src/interaction/mixin/move.js index 8ecff969d..6b710898b 100644 --- a/src/interaction/mixin/move.js +++ b/src/interaction/mixin/move.js @@ -145,7 +145,9 @@ module.exports = { ticks.push(i); } } - + newTicks = ticks; + } else { + // 保留之...
1
1
0
[{"id": "G0", "claim": "Tests should be added to make sure the change works as expected (categorical x-axis ticks must not be set to null when panning).", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
antvis__G2__2604
antvis/G2
2,604
defect
a776ddd15d8b4f7456710d38c80f6a53c37cd24e
571d938f54b36232324733b8c514e4670d48f0ee
fix: tooltip controller isVisible not update
fixed #2603
diff --git a/src/chart/controller/tooltip.ts b/src/chart/controller/tooltip.ts index 2cec4c7bb6..509fe73d98 100644 --- a/src/chart/controller/tooltip.ts +++ b/src/chart/controller/tooltip.ts @@ -37,7 +37,6 @@ export default class Tooltip extends Controller<TooltipOption> { private guideGroup: IGroup; private is...
1
1
1
[{"id": "G0", "claim": "Add tests to make sure the reworked tooltip isVisible behaviour (state field turned into a method read from the tooltip option) works as expected, e.g. a new tests/bugs/2603-spec.ts case.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
antvis__G2__3062
antvis/G2
3,062
defect
44e88a4faf03fe474adf3b89261d40dab3a43719
3e72d88c619985ff17643fb90df718360eee74c5
feat(label): add limitInPlot label layout
<!-- Thank you for your pull request. Please review below requirements. Bug fixes and new features should include tests and possibly benchmarks. Contributors guide: https://github.com/antvis/g2/blob/master/CONTRIBUTING.md 感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试,必要时请附上性能测试。 Contributors guide: https://gi...
diff --git a/src/geometry/label/layout/limit-in-plot.ts b/src/geometry/label/layout/limit-in-plot.ts new file mode 100644 index 0000000000..9eccc67a09 --- /dev/null +++ b/src/geometry/label/layout/limit-in-plot.ts @@ -0,0 +1,87 @@ +import { each } from '@antv/util'; +import { BBox, IGroup, IShape } from '../../../depen...
1
1
0
[{"id": "G0", "claim": "The empty-labels check should be moved to the first line of limitInPlot so the logic starts only when labels exist.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
antvis__G2__3248
antvis/G2
3,248
defect
f2ae5984f4c9b1a1e6ebf0e6e813ec4de16fe270
6191301550539d61455e61365b48bf6539900bcc
fix(pie): 饼图数据 NaN 导致页面崩溃数据边界处理(#2930)
<!-- Thank you for your pull request. Please review below requirements. Bug fixes and new features should include tests and possibly benchmarks. Contributors guide: https://github.com/antvis/g2/blob/master/CONTRIBUTING.md 感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试,必要时请附上性能测试。 Contributors guide: https://gi...
diff --git a/src/geometry/interval.ts b/src/geometry/interval.ts index 313cec1301..841bd71d24 100644 --- a/src/geometry/interval.ts +++ b/src/geometry/interval.ts @@ -72,7 +72,7 @@ export default class Interval extends Geometry { nice: false, min: 0, // 发生过 stack 调整,yScale 的 max 被调整过,this.upd...
4
4
2
[{"id": "G0", "claim": "The new private getMaxScale helper in interval.ts should be extracted into a shared utils method under util/scale, with a unit test added at tests/unit/util/scale-spec.ts.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "ge...
null
antvis__G2__5000
antvis/G2
5,000
defect
248c6c63fb8dee8045ce433af3bd2afcce116116
7d4846855c46d6334a40c76e936ce8573a488d1e
fix: svg renderer not works in website demo
fixed #4990 因为 PR #4721 将用户传入的 renderer omit 了,所以使用了默认的 canvas 渲染。@lxfu1 ```ts options(options?: G2ViewTree): Chart | G2ViewTree { if (arguments.length === 0) { return this._options || optionsOf(this); } this._options = deepMix( this._options || optionsOf(this), omit(options, SPEC_EXTERNA...
diff --git a/src/api/chart.ts b/src/api/chart.ts index 4456e40508..f3204fd7f6 100644 --- a/src/api/chart.ts +++ b/src/api/chart.ts @@ -25,7 +25,7 @@ import { mark, Mark } from './mark'; import { composition, Composition, View } from './composition'; import { library } from './library'; -export const SPEC_EXTERNAL_K...
2
2
2
[{"id": "G0", "claim": "renderer and plugins should not live in options (the chart spec); they should be destructured out and stored as separate members so that chart.options does not contain them and the spec tab does not end up including renderer and plugins.", "category": "design", "verdict": "supported", "priority"...
null
antvis__G2__5025
antvis/G2
5,025
defect
c502d7234a108659f16f6cae970b3faeb716a2c9
47b0c7525f5edd6763814da2109c689353736a97
feat: tooltip render to mount dom
fixed #5024 - [x] add `mount` config to tooltip interaction - [x] refactor tooltip component - [x] tests - [x] documents ```ts { width: 600, height: 400, type: 'view', data: { type: 'fetch', value: 'data/aapl.csv', }, children: [ { type: 'area', encode: { ...
diff --git a/__tests__/integration/snapshots/tooltip/aapl-line-area-basic-sample-mount/step0.html b/__tests__/integration/snapshots/tooltip/aapl-line-area-basic-sample-mount/step0.html new file mode 100644 index 0000000000..ec747fa47d --- /dev/null +++ b/__tests__/integration/snapshots/tooltip/aapl-line-area-basic-samp...
2
1
1
[{"id": "G0", "claim": "The tooltip's classname is currently `.tooltip`, which is not distinctive, and should be changed to `.g2-tooltip`, consistent with 4.x.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The new integration snapshot step0.h...
null
antvis__G2__5995
antvis/G2
5,995
defect
ae4ab583f25d356a0339612da7da8e8222021faf
3beede09178e76900772208a6954b86274b01128
fix(composition): fix composition lost chart value options
<!-- Thank you for your pull request. Please review below requirements. Bug fixes and new features should include tests and possibly benchmarks. Contributors guide: https://github.com/antvis/g2/blob/master/CONTRIBUTING.md 感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试,必要时请附上性能测试。 Contributors guide: https://gi...
diff --git a/__tests__/unit/api/options.spec.ts b/__tests__/unit/api/options.spec.ts index 6d6869f34f..aa2f7c0f1f 100644 --- a/__tests__/unit/api/options.spec.ts +++ b/__tests__/unit/api/options.spec.ts @@ -152,6 +152,27 @@ describe('chart api and options', () => { }); }); + it('chart.options({...}) should u...
1
1
0
[{"id": "G0", "claim": "The `else if` in normalizeRootOptions is unnecessary because the preceding branch already returns, and removing it would make the code flatter and more readable.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
antvis__G2__6735
antvis/G2
6,735
defect
e97f99626d83997f86922bffc98d4fcbdf000dc7
d19d924b2bc08eccaa00d4ad405c639b59600075
docs: add documentation for expr function expression support
<!-- Thank you for your pull request. Please review below requirements. Bug fixes and new features should include tests and possibly benchmarks. Contributors guide: https://github.com/antvis/g2/blob/master/CONTRIBUTING.md 感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试,必要时请附上性能测试。 Contributors guide: https://gi...
diff --git a/site/docs/manual/extra-topics/expr.en.md b/site/docs/manual/extra-topics/expr.en.md new file mode 100644 index 0000000000..286f0984b5 --- /dev/null +++ b/site/docs/manual/extra-topics/expr.en.md @@ -0,0 +1,102 @@ +--- +title: Spec Function Expression Support (5.3.0 supported) +order: 13 +--- + +## Backgrou...
5
4
1
[{"id": "G0", "claim": "The complete example in the expr docs should be turned into an interactive case using the js | ob code-fence format available in markdown.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The docs should add an example showin...
null
antvis__G2__6889
antvis/G2
6,889
defect
c9ff1aae2ad32dc3a702877a98897d5ea5e2a356
b8cb13fa563f0f116d04b8031c262aed063bdb08
test: migrate to vitest
<!-- Thank you for your pull request. Please review below requirements. Bug fixes and new features should include tests and possibly benchmarks. Contributors guide: https://github.com/antvis/g2/blob/master/CONTRIBUTING.md 感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试,必要时请附上性能测试。 Contributors guide: https://gi...
diff --git a/__tests__/integration/api-chart-render-brush-end.spec.ts b/__tests__/integration/api-chart-render-brush-end.spec.ts index 9633f3bb77..5d9fa35f7d 100644 --- a/__tests__/integration/api-chart-render-brush-end.spec.ts +++ b/__tests__/integration/api-chart-render-brush-end.spec.ts @@ -1,3 +1,4 @@ +import { vi ...
2
2
2
[{"id": "G0", "claim": "The most important integration tests (the SVG snapshot comparison ones) are excluded from vitest and left to a parallel jest run, and the reviewer asks for the migration to be completed in this PR instead of keeping the two test tools coexisting.", "category": "testing", "verdict": "supported", ...
null
antvis__G2__6897
antvis/G2
6,897
defect
7d0f07b9abdf8c5056f004e5a2814d2eea802558
83b9f6c34ab362cda7506dbcf75b8607d86f5189
fix: chart.clear block trailing render
<!-- Thank you for your pull request. Please review below requirements. Bug fixes and new features should include tests and possibly benchmarks. Contributors guide: https://github.com/antvis/g2/blob/master/CONTRIBUTING.md 感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试,必要时请附上性能测试。 Contributors guide: https://gi...
diff --git a/package.json b/package.json index 3a75529cf0..a3cface93f 100644 --- a/package.json +++ b/package.json @@ -45,6 +45,7 @@ "test:unit": "cross-env TZ=Asia/Shanghai jest __tests__/unit/", "test:integration": "cross-env TZ=Asia/Shanghai jest __tests__/integration/", "preview": "vite preview", + ...
4
3
0
[{"id": "G0", "claim": "The new playground script appears to duplicate the existing dev command, and its difference from `npm run dev` is not clear.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new playground build output `dist-playground`...
null
antvis__G2__7047
antvis/G2
7,047
defect
ffa4bce01e06775cd703d149d3b2ad4ebe19df6a
3eb82866ba582ceb34530a80aef61a1cf13a21b6
fix: the exceedAdjust is not working when using the slider
<!-- Thank you for your pull request. Please review below requirements. Bug fixes and new features should include tests and possibly benchmarks. Contributors guide: https://github.com/antvis/g2/blob/master/CONTRIBUTING.md 感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试,必要时请附上性能测试。 Contributors guide: https://gi...
diff --git a/__tests__/integration/issue-7045.spec.ts b/__tests__/integration/issue-7045.spec.ts new file mode 100644 index 0000000000..f2f5e2fa32 --- /dev/null +++ b/__tests__/integration/issue-7045.spec.ts @@ -0,0 +1,24 @@ +import { issue7045 as render } from '../plots/bugfix/issue-7045'; +import { createNodeGCanvas ...
2
2
0
[{"id": "G0", "claim": "The new integration test's description was copied from another test — it says `issue6863` and 'line chart with log scale' instead of `issue7045` and the interval chart with exceedAdjust — and should be corrected for clarity.", "category": "documentation", "verdict": "supported", "priority": "P2"...
null
antvis__G2__7071
antvis/G2
7,071
defect
253898c7b70324d4d845712d0b5e7f0cae11c513
4ef78deeb663412c78520fd82d2b3320e171009e
feat: add a null tooltip for Mark interval
<!-- Thank you for your pull request. Please review below requirements. Bug fixes and new features should include tests and possibly benchmarks. Contributors guide: https://github.com/antvis/g2/blob/master/CONTRIBUTING.md 感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试,必要时请附上性能测试。 Contributors guide: https://gi...
diff --git a/__tests__/integration/api-chart-emit-tooltip-with-null.spec.ts b/__tests__/integration/api-chart-emit-tooltip-with-null.spec.ts new file mode 100644 index 0000000000..1ea4e1381c --- /dev/null +++ b/__tests__/integration/api-chart-emit-tooltip-with-null.spec.ts @@ -0,0 +1,43 @@ +import { chartEmitShowToolti...
4
1
0
[{"id": "G0", "claim": "Mapping undefined y-values to 1 instead of 0 can render a misleading bar of height 1 for missing data; the code should default undefined y-values to 0.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The comment \"// chart.emit(...
null
antvis__G2__7074
antvis/G2
7,074
defect
253898c7b70324d4d845712d0b5e7f0cae11c513
ecd5ffa69d5618d9641ac1ad8fbfeac17ff046c0
fix: tooltip fails caused by resize
<!-- Thank you for your pull request. Please review below requirements. Bug fixes and new features should include tests and possibly benchmarks. Contributors guide: https://github.com/antvis/g2/blob/master/CONTRIBUTING.md 感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试,必要时请附上性能测试。 Contributors guide: https://gi...
diff --git a/__tests__/integration/api-chart-emit-tooltip-with-resize.spec.ts b/__tests__/integration/api-chart-emit-tooltip-with-resize.spec.ts new file mode 100644 index 0000000000..0e6fe76e11 --- /dev/null +++ b/__tests__/integration/api-chart-emit-tooltip-with-resize.spec.ts @@ -0,0 +1,35 @@ +import { chartEmitShow...
2
1
1
[{"id": "G0", "claim": "The pointerleave listener is registered and unregistered through different function instances (an anonymous arrow at the remove site), so removeEventListener never matches the added listener, leaving it attached (memory leak) with possible unexpected behavior.", "category": "correctness", "verdi...
null
antvis__G2__7075
antvis/G2
7,075
defect
253898c7b70324d4d845712d0b5e7f0cae11c513
68f11a309ac9cd0401866263552059aaca08a092
fix: tooltip picking error when band width are not equal
<!-- Thank you for your pull request. Please review below requirements. Bug fixes and new features should include tests and possibly benchmarks. Contributors guide: https://github.com/antvis/g2/blob/master/CONTRIBUTING.md 感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试,必要时请附上性能测试。 Contributors guide: https://gi...
diff --git a/__tests__/integration/api-chart-emit-item-tooltip-with-flex.spec.ts b/__tests__/integration/api-chart-emit-item-tooltip-with-flex.spec.ts new file mode 100644 index 0000000000..735aa01f4b --- /dev/null +++ b/__tests__/integration/api-chart-emit-item-tooltip-with-flex.spec.ts @@ -0,0 +1,27 @@ +import { char...
1
1
0
[{"id": "G0", "claim": "The new helper functions annotate their `scale` parameters with `G2ScaleOptions`, which is the wrong type there (equalBandWidth receives a scale-options object holding multiple scale instances, findNearestElementIndex receives a single scale instance), so a more appropriate type should be used i...
null
antvis__G2__7086
antvis/G2
7,086
defect
707a768fc10b2a6e72e6eb53f0d6cb10c3e97a8f
5424eabfb0a82d0246e28e7447deafbbf1a0d399
fix: sankey change data
<!-- Thank you for your pull request. Please review below requirements. Bug fixes and new features should include tests and possibly benchmarks. Contributors guide: https://github.com/antvis/g2/blob/master/CONTRIBUTING.md 感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试,必要时请附上性能测试。 Contributors guide: https://gi...
diff --git a/__tests__/integration/api-sankey-change-data.spec.ts b/__tests__/integration/api-sankey-change-data.spec.ts new file mode 100644 index 0000000000..5bfce8c7ae --- /dev/null +++ b/__tests__/integration/api-sankey-change-data.spec.ts @@ -0,0 +1,30 @@ +import { sankeyChangeData as render } from '../plots/api/s...
4
3
1
[{"id": "G0", "claim": "The integration tests are incomplete: the empty-data scenario is not covered — `button3` is destructured but never clicked or asserted — and a test should be added that clicks it and verifies the chart becomes blank.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "in...
null
antvis__G2__7099
antvis/G2
7,099
defect
c0fa7d8d2e340e334b61a346df0e1b79db9b62f3
307ad09893be75a13814565341487b3f26f1f2f5
feat: add channel to tooltip item
<!-- Thank you for your pull request. Please review below requirements. Bug fixes and new features should include tests and possibly benchmarks. Contributors guide: https://github.com/antvis/g2/blob/master/CONTRIBUTING.md 感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试,必要时请附上性能测试。 Contributors guide: https://gi...
diff --git a/src/interaction/tooltip.ts b/src/interaction/tooltip.ts index 2d87ee4bda..aef4c7a00f 100644 --- a/src/interaction/tooltip.ts +++ b/src/interaction/tooltip.ts @@ -308,6 +308,7 @@ function groupItems( ...item, color, name: name1 || title, + channel: name, ...
1
1
0
[{"id": "G0", "claim": "The new tooltip item property `channel` should be renamed to `field`, because in G2 `channel` denotes a visual channel such as x, y or color while the stored value is the dataset field mapped to a channel, so `field` would be less ambiguous for users customising tooltips.", "category": "maintain...
null
antvis__G2__7173
antvis/G2
7,173
defect
d110286fc9d26e8b70dec2472e9d518e31452f7f
c1689d42b24cf8b4d54caccdd0308ba377e606c7
feat: add disableAutoHide option to prevent the default tooltip auto-hide behavior
This pull request introduces a new `disableAutoHide` option to the chart tooltip interaction, allowing users to prevent tooltips from automatically hiding in response to pointer events. The update includes changes to the tooltip interaction logic, documentation, type definitions, and adds integration tests and example ...
diff --git a/__tests__/integration/api-chart-disable-native-hide-tooltip.spec.ts b/__tests__/integration/api-chart-disable-native-hide-tooltip.spec.ts new file mode 100644 index 0000000000..544439980b --- /dev/null +++ b/__tests__/integration/api-chart-disable-native-hide-tooltip.spec.ts @@ -0,0 +1,318 @@ +import { Cha...
3
2
0
[{"id": "G0", "claim": "The new test file's per-test chart/canvas/counter setup and teardown should be refactored into describe-scope beforeEach/afterEach hooks to remove boilerplate.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Fix the misspe...
null
antvis__G2__7274
antvis/G2
7,274
defect
e58f72b19aa47834423d55cb16c8d9df634424ba
d8eaa0c0bf8d3ae2cce4f3f6f5fc23188e0ae001
feat: add support for column-major data format and related functionality
##### Checklist - [x] `npm test` passes - [ ] benchmarks are included - [x] commit message follows commit guidelines - [ ] documents are updated ##### Description of change Introduce support for column-major data format and enhance related functionality. This change aims to improve data handling capabilitie...
diff --git a/__tests__/plots/column-data-format.ts b/__tests__/plots/column-data-format.ts new file mode 100644 index 0000000000..c161e22757 --- /dev/null +++ b/__tests__/plots/column-data-format.ts @@ -0,0 +1,77 @@ +/** + * Example: Column-major data format support + * + * G2 now supports passing data in column-major ...
3
3
2
[{"id": "G0", "claim": "The Column transform should validate that every column of the value object is an array of the same length instead of only checking the first column, so that explicit `type: 'column'` with malformed data (e.g. `{ a: [1, 2], b: 'not-an-array' }`) does not crash when accessing `value['b'][i]`.", "c...
null
antvis__G6__5417
antvis/G6
5,417
defect
e6f462331481329b69ae0a46f54a479d2a12c387
e00584f421b735719c1e9195e7b26d022be4ba49
feat: add image node
- fixed #5398 ![Image Node](https://github.com/antvis/G6/assets/13675865/02db7d96-0a6a-426e-9e82-3782677cafe5) 2024年2月21日更新后: ![image](https://github.com/antvis/G6/assets/13675865/3c7bb5a4-2e0b-41a5-a859-9dbeb079436e)
diff --git a/packages/g6/__tests__/demo/static/index.ts b/packages/g6/__tests__/demo/static/index.ts index a19f3112bc8..b161259bb8f 100644 --- a/packages/g6/__tests__/demo/static/index.ts +++ b/packages/g6/__tests__/demo/static/index.ts @@ -7,6 +7,7 @@ export * from './edge-polyline'; export * from './edge-quadratic';...
5
4
3
[{"id": "G0", "claim": "Size the halo's x/y/width/height from the halo lineWidth the way Circle does, so the halo does not overlap the keyShape.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Provide a default width/height (suggested 32), ideally se...
null
antvis__G6__5421
antvis/G6
5,421
defect
fafec34990bed86456b491d8d7146ca498c78a61
85eff757420d50de76a3513bc5fee06e6d54f26f
feat: add triangle node
增加 triangle node close #5401 <img width="674" alt="image" src="https://github.com/antvis/G6/assets/35752509/10a22a12-f69e-4ac4-998d-d5931589c7a4">
diff --git a/packages/g6/__tests__/demo/static/index.ts b/packages/g6/__tests__/demo/static/index.ts index 7a23ecffd88..894176cc708 100644 --- a/packages/g6/__tests__/demo/static/index.ts +++ b/packages/g6/__tests__/demo/static/index.ts @@ -10,6 +10,7 @@ export * from './edge-quadratic'; export * from './layered-canva...
5
4
2
[{"id": "G0", "claim": "The triangle direction values should be named `top`/`bottom` instead of `up`/`down`.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The triangle key shape should be drawn with Polygon instead of Path, so that getPolygonIn...
null
antvis__G6__6266
antvis/G6
6,266
defect
b7bf98794ad57ba0b9facab1f71118d1a20f04ae
c0fb740637c6f209316bf5018780672f95552c19
feat(behavior): scroll-canvas/drag-canvas support range
For the scroll-canvas behavior, specifying a range of 0.5 results in the effect demonstrated in the GIF. Similarly, the same applies to the drag-canvas behavior. ![Sep-03-2024 11-45-01](https://github.com/user-attachments/assets/763106ab-0dd4-4dc6-877e-34184921cdc4)
diff --git a/packages/g6/__tests__/unit/behaviors/drag-canvas.spec.ts b/packages/g6/__tests__/unit/behaviors/drag-canvas.spec.ts index 63436e04bbb..77a6446144d 100644 --- a/packages/g6/__tests__/unit/behaviors/drag-canvas.spec.ts +++ b/packages/g6/__tests__/unit/behaviors/drag-canvas.spec.ts @@ -184,4 +184,24 @@ descri...
1
1
0
[{"id": "G0", "claim": "The `range` option in DragCanvasOptions should not use the `Padding` type, as it is not very appropriate in terms of expressiveness.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
antvis__G6__6782
antvis/G6
6,782
defect
63f15c53be6607a73a4afb3e02b1d527ca220724
59106c4f09abc3310f753bc6f3b206f3315632c5
Fix the issue of mouse coordinates being misaligned when hovering ove…
When using a custom node (in HTML/React format) with the CreateEdge interaction, if the mouse hovers over the custom node, event bubbling and event capturing will be triggered because it is an HTML component. The obtained mouse positioning data will have issues, causing the edge pointer to drift erratically. ![image](...
diff --git a/packages/g6/src/behaviors/create-edge.ts b/packages/g6/src/behaviors/create-edge.ts index f2338373814..8d0850dd821 100644 --- a/packages/g6/src/behaviors/create-edge.ts +++ b/packages/g6/src/behaviors/create-edge.ts @@ -161,8 +161,10 @@ export class CreateEdge extends BaseBehavior<CreateEdgeOptions> { ...
4
4
1
[{"id": "G0", "claim": "Ensure the `event.eventPhase === 2` check correctly identifies the target phase, since non-standard event phase values could make the condition misbehave and cause functional issues.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "clai...
null
antvis__G6__7319
antvis/G6
7,319
defect
04920fa7d4afba57aa5eeb9d5cafe59be3a2c620
46f9165d7e515dec52df1acdfb986efad534166d
feat: Add graph method
#7318 expose methods to determine whether there are nodes, edges, and combo to graph. In addition, I want to modify the document synchronously, but the local running project has been suspended for no reason. Can anyone guide me? <img width="1251" height="325" alt="image" src="https://github.com/user-attachments/asse...
diff --git a/packages/g6/src/runtime/graph.ts b/packages/g6/src/runtime/graph.ts index 4038a804538..509655b25c5 100644 --- a/packages/g6/src/runtime/graph.ts +++ b/packages/g6/src/runtime/graph.ts @@ -504,6 +504,40 @@ export class Graph extends EventEmitter { public getData(): Required<GraphData> { return this....
3
2
1
[{"id": "G0", "claim": "The new hasNode, hasEdge and hasCombo methods lack unit tests; tests should be added to packages/g6/__tests__/unit/runtime/graph/graph.spec.ts covering cases where nodes, edges and combos exist and do not exist.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introdu...
null
antvis__G6__7581
antvis/G6
7,581
defect
91c0ac85e4e636a05bd1a3c5e56a4928d1242a9b
4ffbf07ccb0c2bb2449509faef36347d55d7140f
refactor: enhance vector operations robustness
总结: - 添加padVectors函数用于填充两个向量至相同维度 - 在对两个向量执行add substract multiply divide dot distance manhattanDistance angle运算前应用padVectors - 添加对二维向量与三维向量之间进行运算的测试用例 close #7580
diff --git a/packages/g6/__tests__/unit/utils/vector.spec.ts b/packages/g6/__tests__/unit/utils/vector.spec.ts index 94157fcbf34..7fa1cecd568 100644 --- a/packages/g6/__tests__/unit/utils/vector.spec.ts +++ b/packages/g6/__tests__/unit/utils/vector.spec.ts @@ -23,16 +23,19 @@ describe('Vector Functions', () => { it(...
7
3
1
[{"id": "G0", "claim": "In divide, when b[i] is 0, v / b[i] yields Infinity or NaN — e.g. divide([0, 1], [2, 3, 0]) computes 0/0 = NaN while the new test expects 0 — so the divisor should be checked for zero before dividing.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, ...
null
antvis__Infographic__102
antvis/Infographic
102
defect
45d16368b8c067221986a1ca7498ca8483720bde
8771de1fc1a47208bd0bf8d715c315e4ae9c3827
fix(fonts): support multi font, fix font measurement
- [x] https://github.com/antvis/Infographic/issues/98 - [x] https://github.com/antvis/Infographic/issues/97 Test Case: ```js setDefaultFont("'SimSun', 'Times New Roman', Times, serif"); ``` **Get**: <img height="300" alt="image" src="https://github.com/user-attachments/assets/b8ea85be-b150-49bf-b46c-bf00de...
diff --git a/__tests__/unit/utils/font.test.ts b/__tests__/unit/utils/font.test.ts index 21416bf67..ded821303 100644 --- a/__tests__/unit/utils/font.test.ts +++ b/__tests__/unit/utils/font.test.ts @@ -9,6 +9,9 @@ describe('font utils', () => { it('decodes font family by trimming and removing quotes', () => { ex...
3
2
0
[{"id": "G0", "claim": "The duplicated logic in collectUsedFonts for parsing a font-family string and adding its decoded families to the usedFonts set should be extracted into a local helper function to improve readability and avoid repetition.", "category": "maintainability", "verdict": "supported", "priority": "P2", ...
null
antvis__Infographic__13
antvis/Infographic
13
defect
a611b615d9c09dcf265d197537f60c3f76d1fff9
d7a88766326cf6bbfc291995a9ba4055635cf4d5
feat: add sequence mountain
<img width="1669" height="641" alt="image" src="https://github.com/user-attachments/assets/0365c93d-7a94-41bc-b173-441d9105ff5b" />
diff --git a/packages/infographic/src/designs/structures/index.ts b/packages/infographic/src/designs/structures/index.ts index a8597089f..de39ca6e6 100644 --- a/packages/infographic/src/designs/structures/index.ts +++ b/packages/infographic/src/designs/structures/index.ts @@ -22,6 +22,7 @@ export * from './sequence-col...
6
2
0
[{"id": "G0", "claim": "When `items` is empty (n=0), `mountainXPositions[0]` is undefined and the calculations that follow crash, so the logic depending on `items` should be wrapped in `if (n > 0)`.", "category": "correctness", "verdict": "uncertain", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The...
null
antvis__Infographic__146
antvis/Infographic
146
defect
b2febdcc746943a20b0dbe5e6840bc786573db00
00ffe4fa56ef7583445c3a141bd81887027595b5
fix: Fix Issue with loading some remote svg resources
Fix SVG Parsing Logic for Files with XML Declaration Problem Statement: When loading remote SVG resources, standalone SVG files that include an XML declaration fail to load properly. The issue can be reproduced with the following sample SVG: ``` <?xml version="1.0" encoding="UTF-8"?> <svg width="100" height="100" ...
diff --git a/src/resource/loaders/svg.ts b/src/resource/loaders/svg.ts index 53ad233b9..344b4b59b 100644 --- a/src/resource/loaders/svg.ts +++ b/src/resource/loaders/svg.ts @@ -1,13 +1,13 @@ import { parseSVG } from '../../utils'; function isSVGResource(resource: string): boolean { - return resource.startsWith('<s...
2
2
2
[{"id": "G0", "claim": "The isSVGResource regex is too broad: it matches strings that start with `<svg` but are not actual `<svg>` tags, e.g. `<svg-icon>`, which could lead to incorrect parsing attempts on non-SVG data; the regex should require `<svg` to be followed by a whitespace character or `>`.", "category": "corr...
null
antvis__Infographic__183
antvis/Infographic
183
defect
44fda757c7af23c1c5e437a8290575c58aa511b6
75e1425e32e661792197d646d1e733c9e0b7203a
feature: item preview color picker
Now: <img width="1674" height="762" alt="image" src="https://github.com/user-attachments/assets/0360a3fd-4517-4096-b6dd-96292f4dd1d9" /> After: <img width="1676" height="673" alt="image" src="https://github.com/user-attachments/assets/e80b466f-8155-4329-826f-04d10acd4990" />
diff --git a/__tests__/unit/dev/ItemPreview.test.tsx b/__tests__/unit/dev/ItemPreview.test.tsx new file mode 100644 index 000000000..f40aad21a --- /dev/null +++ b/__tests__/unit/dev/ItemPreview.test.tsx @@ -0,0 +1,323 @@ +import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; +import { getItem, getIt...
3
2
0
[{"id": "G0", "claim": "The new unit tests (starting with the one at line 56) assert constants against themselves instead of rendering ItemPreview, so they don't verify the component actually uses the default color and should be refactored to test real behavior.", "category": "testing", "verdict": "uncertain", "priorit...
null
antvis__Infographic__202
antvis/Infographic
202
defect
11bfa9a541a19e9aa322c77a38f7bb9ed121aa30
5df85b022cf087b859cb6a4de21a1c12c4cc934b
fix(editor): increase max viewbox size limit for large diagrams
## 背景 (Background) 当渲染内容较多(例如复杂的时序交互图)时,SVG 的 viewBox 宽度往往会超过原有的硬编码限制 (2000)。这导致 zoom-wheel 交互逻辑误判当前视图已达到最大缩放边界,从而阻止用户的滚轮缩放操作,使得在大图模式下无法正常缩放查看细节。 ## 改动详情 (Changes) - src/editor/interactions/zoom-wheel.ts: - 将 MAX_VIEWBOX_SIZE 常量从 2000 增大至 20000。 - 这一修改极大地扩展了允许的视图尺寸范围,确保在渲染大量元素时,ViewBox 尺寸检查不会错误拦截合法的缩放请求。
diff --git a/src/editor/interactions/zoom-wheel.ts b/src/editor/interactions/zoom-wheel.ts index 6d25f1e9d..1687d5031 100644 --- a/src/editor/interactions/zoom-wheel.ts +++ b/src/editor/interactions/zoom-wheel.ts @@ -10,7 +10,7 @@ import { clientToViewport } from '../utils'; import { Interaction } from './base'; co...
2
2
1
[{"id": "G0", "claim": "Instead of just increasing the hardcoded value, the max viewbox size limit should be made configurable (e.g. an option in init to override the default MAX_VIEWBOX_SIZE), which would be more flexible for future use cases.", "category": "design", "verdict": "supported", "priority": "P2", "scope": ...
null
antvis__Infographic__205
antvis/Infographic
205
defect
d03fde16be597947445993b017e1987507dc630d
9b4665714e9dbce65af34d1e7381081fa479592e
feat(editor): add dot-notation path intellisense for sync registry
## 📝 背景与目的 (Background) 之前的 `SyncRegistry` 在注册同步路径时仅使用普通的 `string` 类型,这导致开发者在编写代码时容易拼写错误,且无法获得 IDE 的智能提示。 本 PR 旨在引入类型安全的路径生成工具,为 `SyncRegistry` 提供基于 `InfographicOptions` 的点语法路径自动补全功能,同时保持对任意字符串路径的兼容性。 ## 🛠️ 主要改动 (Changes) 1. **新增类型工具**: * 在 `src/types/utils.ts` 中新增了 `Path<T>`、`Join`、`Prev` 等泛型工具,用于递归...
diff --git a/__tests__/unit/utils/types.test.ts b/__tests__/unit/utils/types.test.ts new file mode 100644 index 000000000..28dc3ee26 --- /dev/null +++ b/__tests__/unit/utils/types.test.ts @@ -0,0 +1,104 @@ +import { describe, expectTypeOf, it } from 'vitest'; +import type { Path } from '../../../src/utils/types'; + +de...
3
1
1
[{"id": "G0", "claim": "The Prev tuple `[never, 0, 1, 2, 3, 4, 5, ...0[]]` resolves to 0 for recursion depths beyond 5 (e.g. Prev[7] yields 0 instead of 6), so Path would terminate recursion early and generate incomplete paths for deeply nested objects; the tuple should be extended to a larger fixed length and the misl...
null
antvis__Infographic__227
antvis/Infographic
227
defect
ea238f5caebbeaf96d29bedfccdc3754cca996b0
b1ea86a6898f550d58aebf768acfb15d3d349771
fix(exporter): ensure PNG/SVG export covers all foreignObject text
fix #226
diff --git a/src/exporter/svg.ts b/src/exporter/svg.ts index 8592e8500..4e33b98e7 100644 --- a/src/exporter/svg.ts +++ b/src/exporter/svg.ts @@ -19,6 +19,82 @@ export async function exportToSVGString( return 'data:image/svg+xml;charset=utf-8,' + encodeURIComponent(str); } +function measureSpanContentHeight(span: ...
6
6
4
[{"id": "G0", "claim": "measureSpanContentHeight temporarily mutates the span's inline styles, so the original styles should be restored via a try...finally block even if measurement throws.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The har...
null
antvis__mcp-server-chart__242
antvis/mcp-server-chart
242
defect
69ce5d66d5861c065dc41f6fdffe117eb26a4476
68373c380ed2e12214e91836f9053758f45693ad
feat: add waterfall
- fixed https://github.com/antvis/mcp-server-chart/issues/234 - 增加 waterfall 图表
diff --git a/__tests__/api.spec.ts b/__tests__/api.spec.ts index a28aeb1..a2b263e 100644 --- a/__tests__/api.spec.ts +++ b/__tests__/api.spec.ts @@ -33,6 +33,7 @@ describe("sdk API", () => { "treemap", "venn", "violin", + "waterfall", "word-cloud", ]); }); diff --git a/__tests__...
6
5
1
[{"id": "G0", "claim": "The data schema is too lax: a data item that is neither an intermediate total nor a final total may omit `value`, which is meaningless for a waterfall chart and may cause rendering errors; add a superRefine/refine rule requiring `value` on non-total items.", "category": "correctness", "verdict":...
null
anuraghazra__github-readme-stats__1186
anuraghazra/github-readme-stats
1,186
defect
112efb4b920d34e3b959c341c0ba3d6d8b9cebe4
9c01a95a2324f54f7b51d1cdac1d3213561f28fd
Ranking System v2
Hello @anuraghazra :wave: As #883, #455 and #1029, I've noticed that the function `calculateRank` doesn't work as expected. The first problem is the use of a normal distribution instead of an [exponential distribution](https://en.wikipedia.org/wiki/Exponential_distribution), as pointed out by #960 . The second is...
diff --git a/src/calculateRank.js b/src/calculateRank.js index 76909d09547cd..df6fdcd3d81c2 100644 --- a/src/calculateRank.js +++ b/src/calculateRank.js @@ -1,93 +1,57 @@ -// https://stackoverflow.com/a/5263759/10629172 -function normalcdf(mean, sigma, to) { - var z = (to - mean) / Math.sqrt(2 * sigma * sigma); - var...
19
12
6
[{"id": "G0", "claim": "The pull request's changes seem to stretch the ranking stats a little bit too far, so the resulting rank distribution is off.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "With STARS_WEIGHT at 1.0 a user who is decent on all...
null
anuraghazra__github-readme-stats__1212
anuraghazra/github-readme-stats
1,212
defect
fede678fa250e17682f66340fb2166d30add5fba
b1f6d413502ce6ec5b611369aaaad26256ce5c8e
feat: Hide Wakatime languages
# Description I've added a new query-parameter hide to hide specific languages you don't want to display. This was also requested in #1138. Because some values will be hidden I've recalculated the percentages to correctly display the percentage of each language (they add up back to ~100%, values are rounded). ### ...
diff --git a/api/wakatime.js b/api/wakatime.js index 4bb8fca5d16c0..ebfea81fd79bf 100644 --- a/api/wakatime.js +++ b/api/wakatime.js @@ -3,6 +3,7 @@ const { renderError, parseBoolean, clampValue, + parseArray, CONSTANTS, isLocaleAvailable, } = require("../src/common/utils"); @@ -26,6 +27,7 @@ module.ex...
1
1
0
[{"id": "G0", "claim": "The hide logic should be rewritten to build a Set of hidden languages and reassign `languages` with `let` via filter, instead of splicing the array through a `const` binding.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
anuraghazra__github-readme-stats__1334
anuraghazra/github-readme-stats
1,334
defect
97690e173d6c68c7f294b5890d7b95424ff0326b
dc78bad925e57ac875e9da435c546c1c4a63ab97
Fix #1170: Allow customizable width for GitHub Stats Card
Fixes #1170 by allowing customizable width for Github Stats Card. To avoid things overlaping each other, Stats Card has minimum widths which are applied when provided `custom_width` is less than certain values.
diff --git a/api/index.js b/api/index.js index 0cda587ea02fe..8c4c6714d4307 100644 --- a/api/index.js +++ b/api/index.js @@ -17,6 +17,7 @@ module.exports = async (req, res) => { hide, hide_title, hide_border, + card_width, hide_rank, show_icons, count_private, @@ -67,6 +68,7 @@ module.e...
4
3
2
[{"id": "G0", "claim": "The card's minimum-width calculation does not take the show_icons argument into account, so the 16 px icon width is missing from the minimum card width.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The explanatory comment a...
null
anuraghazra__github-readme-stats__1732
anuraghazra/github-readme-stats
1,732
defect
bde609f246ab94e1c1a780c2cb46fd86e21fff17
1fef47bd412c74a5b4af7acd8100e69de5dae12f
New top language algorithm implementation
Old Card ======== [![Old card](https://github-readme-stats-180fg36oy-kitswas.vercel.app/api/top-langs/?username=kitswas&count_private=true&langs_count=10&layout=compact)](https://github.com/kitswas) New Card ======== [![New card](https://github-readme-stats-l34h9pi63-kitswas.vercel.app/api/top-langs/?username=ki...
diff --git a/src/fetchers/top-languages-fetcher.js b/src/fetchers/top-languages-fetcher.js index 9dd109e22ee2b3..1d4625d935a0a2 100644 --- a/src/fetchers/top-languages-fetcher.js +++ b/src/fetchers/top-languages-fetcher.js @@ -72,6 +72,8 @@ async function fetchTopLanguages(username, exclude_repo = []) { return !...
2
2
1
[{"id": "G0", "claim": "The implementation calculates k = sqrt(x*y) instead of the general formula k = x^p * y^q announced in issue #1600, and the h-index-based sqrt is unnecessary since the GraphQL byte counts are always positive.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introdu...
null
anuraghazra__github-readme-stats__2029
anuraghazra/github-readme-stats
2,029
defect
c1324b31bfc6da38c0f3c529b1562c80ec6ecd76
98a93634e3aedfa050fd29de94f0755c91f26857
fix: improve boolean parse behaviour
This commit ensures that incorrectly typed properties like `hide_border=trsdfaf` use their default values.
diff --git a/src/common/utils.js b/src/common/utils.js index 2ad18dddbc62a..48ac113662b96 100644 --- a/src/common/utils.js +++ b/src/common/utils.js @@ -60,17 +60,23 @@ function isValidHexColor(hexColor) { } /** - * @param {string} value - * @returns {boolean | string} + * @param {string | boolean} value + * @retur...
1
1
0
[{"id": "G0", "claim": "The newly added `typeof value === \"boolean\"` branch in parseBoolean is unclear — what is this line meant to do?", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
anuraghazra__github-readme-stats__2100
anuraghazra/github-readme-stats
2,100
defect
3a07cb02db0a69238cb75d802b6485537d73c27e
d61893ee53177c81cafb9a4df132c7709e8afcd0
fix: fetch all repos for for the stats card
This fixed https://github.com/anuraghazra/github-readme-stats/issues/1177 only for the stats card part
diff --git a/src/fetchers/stats-fetcher.js b/src/fetchers/stats-fetcher.js index b9493adfdbb43..04dfc3bcb54b5 100644 --- a/src/fetchers/stats-fetcher.js +++ b/src/fetchers/stats-fetcher.js @@ -44,14 +44,41 @@ const fetcher = (variables, token) => { followers { totalCount } - ...
4
3
0
[{"id": "G0", "claim": "Maybe the fetcher could stop calling the GraphQL API once the last repository of a batch has 0 stars, since pages are ordered by STARGAZERS DESC.", "category": "performance", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The repositoriesContributedTo and ...
null
anuraghazra__github-readme-stats__2155
anuraghazra/github-readme-stats
2,155
defect
bd9865d5a2c9effda41bd5a66b7e01c02af7e2be
5e7805f615d37a60fd0358bbe8dedae8a176926e
Add format stats option
Implements #2128 The ability for users to add a `format_stats` option removing the annoying `k` formating. This defaults to `true`
diff --git a/api/index.js b/api/index.js index 10dd48478ec6b..b01cb889be9aa 100644 --- a/api/index.js +++ b/api/index.js @@ -37,6 +37,7 @@ export default async (req, res) => { locale, disable_animations, border_radius, + format_stats, border_color, } = req.query; res.setHeader("Content-Type...
5
4
2
[{"id": "G0", "claim": "The leftover `console.log(kValue, format_stats)` debug statement in createTextNode should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The option should be named `short_values` instead of `format_stats`, in ...
null
anuraghazra__github-readme-stats__2159
anuraghazra/github-readme-stats
2,159
defect
4df8094e5266f28f7367552980f4e00b0c9421a9
0b0f63e0dce08d6e7c3ad17b95b3066fb75ec0c7
feat: enable multi page star fetching for private vercel instances
This PR enables multi-page stars' support from fetching on private Vercel instances. This feature can be disabled on the public Vercel instance but can be enabled by adding the `FETCH_MULTI_PAGE_STARS=true` as an env variable.
diff --git a/readme.md b/readme.md index 9c35b708fb43f..249f828ce0c34 100644 --- a/readme.md +++ b/readme.md @@ -80,6 +80,7 @@ Visit <https://indiafightscorona.giveindia.org> and make a small donation to hel # Features +- [Important Notice](#important-notice) - [GitHub Stats Card](#github-stats-card) - [Gi...
2
1
0
[{"id": "G0", "claim": "Multi-page star fetching may hit the maxDuration serverless-function execution limit of a private Vercel instance on the free plan, so this should be made sure of before merge and the timeout risk documented (e.g. by documenting the FETCH_MULTI_PAGE_STARS option).", "category": "performance", "v...
null
anuraghazra__github-readme-stats__2178
anuraghazra/github-readme-stats
2,178
defect
166972d7e4f12ab17ee7aa2b2000d784444bd9fd
a505538412f965ac51cdf136226002fcf88b4480
feat: add PAT monitoring functions
This commit adds two monitoring functions that can be used to check whether the PATs are functioning correctly: - status/up: Returns whether the PATs are rate limited. - status/pat-info: Returns information about the PATs. @anuraghazra I created this PR for you to review the two PAT monitoring functions I added...
diff --git a/api/status/pat-info.js b/api/status/pat-info.js new file mode 100644 index 0000000000000..a6db3c462302b --- /dev/null +++ b/api/status/pat-info.js @@ -0,0 +1,101 @@ +/** + * @file Contains a simple cloud function that can be used to check which PATs are no + * longer working. It returns a list of valid PAT...
3
3
1
[{"id": "G0", "claim": "The PAT-info rate limit of 60*60*24 seconds can be changed to a more suitable value than 1 request per day.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G3", "claim": "The PAT-info catch block should probably also handle the new isAccountSuspe...
null
anuraghazra__github-readme-stats__2708
anuraghazra/github-readme-stats
2,708
defect
15436e2aa19de52177409735f67da56f243e4431
6b43583e9ccbc3fcfcc93c508121fa4f613ee65f
fix: fix stats contributed to translations
Fixes #2297.
diff --git a/src/cards/stats-card.js b/src/cards/stats-card.js index 4761d023e4ab1..bf0c2c8c50785 100644 --- a/src/cards/stats-card.js +++ b/src/cards/stats-card.js @@ -165,7 +165,7 @@ const renderStatsCard = (stats = {}, options = { hide: [] }) => { }, contribs: { icon: icons.contribs, - label: i...
1
1
0
[{"id": "G0", "claim": "The Russian and Ukrainian translations of the contribs label introduced by this pull request should be improved, as done in companion pull request #2715 on this branch.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null