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
simstudioai__sim__3550
simstudioai/sim
3,550
defect
e7b4da2689bc4f1e1631026e2e8f0eba891979cb
47dadaaa1f6cce3173092e94802161a47683cc9d
fix(execution): report cancellation durability truthfully
## Summary - make the cancel-execution response reflect whether the Redis-backed cancellation marker was durably recorded - return durability metadata (`durablyRecorded`, `reason`) and avoid misleading success logging when persistence fails - fix the targeted cancellation tests by hoisting Vitest mocks in `cancellation...
diff --git a/apps/sim/app/api/workflows/[id]/executions/[executionId]/cancel/route.test.ts b/apps/sim/app/api/workflows/[id]/executions/[executionId]/cancel/route.test.ts new file mode 100644 index 00000000000..5470a275390 --- /dev/null +++ b/apps/sim/app/api/workflows/[id]/executions/[executionId]/cancel/route.test.ts...
3
2
1
[{"id": "G0", "claim": "The cancel response's redisAvailable field is aliased to cancellation.durablyRecorded, so it falsely reports Redis as unavailable when Redis is reachable but the write fails (redis_write_failed); it should reflect whether a Redis client could be obtained (cancellation.reason !== 'redis_unavailab...
null
simstudioai__sim__3565
simstudioai/sim
3,565
defect
92290029f09b05638850dfaccfec14c825b43376
d02a78bd590e1a636ce2b1a0ef7972f101b638d3
fix(tools): support stringified HTTP request tables
## Summary - accept stringified HTTP request `params` and `headers` so serialized table data from the UI is handled correctly - expand the request typing and URL processing path without breaking the existing array-based inputs - add regression tests covering stringified arrays, stringified objects, and the current arra...
diff --git a/apps/sim/tools/http/request.stringified.test.ts b/apps/sim/tools/http/request.stringified.test.ts new file mode 100644 index 00000000000..4493af0b040 --- /dev/null +++ b/apps/sim/tools/http/request.stringified.test.ts @@ -0,0 +1,93 @@ +import { beforeAll, describe, expect, it } from 'vitest' +import { requ...
2
2
0
[{"id": "G0", "claim": "The Record<string, unknown> arm in processUrl's queryParams type is unreachable from RequestParams and should be Record<string, any> to stay consistent with transformTable's signature.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1",...
null
simstudioai__sim__3587
simstudioai/sim
3,587
defect
f347e3fca06b4fc54c2b8c8d90f33b898652e849
9d6a87b18c1025591c576637e4ea03daf467f766
fix(workflow) Fix embedded workflow logs
## Summary Embedded workflows only show logs on block completion. Extract workflow event handling into shared util function so behavior remains the same between full and embedded workflows. ## Type of Change - [x] Bug fix - [ ] New feature - [ ] Breaking change - [ ] Documentation - [ ] Other: ___________ ...
diff --git a/apps/sim/app/api/workflows/[id]/execute/route.async.test.ts b/apps/sim/app/api/workflows/[id]/execute/route.async.test.ts index dc94343ad1a..7d6c599dcfd 100644 --- a/apps/sim/app/api/workflows/[id]/execute/route.async.test.ts +++ b/apps/sim/app/api/workflows/[id]/execute/route.async.test.ts @@ -18,11 +18,6...
2
2
2
[{"id": "G0", "claim": "The refactored handler silently discards onBlockCompleteCallback errors with .catch(() => {}), removing the logger.error the original hook had, so callback failures (e.g. copilot tools) become invisible in logs; restore the logging (import createLogger here) or surface the error through a dedica...
null
simstudioai__sim__3656
simstudioai/sim
3,656
defect
5332614a19a5828a4d409d4a46ad0573fc922642
ebd570a99b8a73b64c1c7808a2a6945bc6681152
fix(subflows): subflow-child selection issues, subflow error logs
## Summary Couple of subflows issues: - Should not be able to multiselect a subflow and a child inside it. Leading to odd behaviours across the board. - Subflow error logs surfacing restored - Subflows with all disabled blocks should throw same runtime error as empty subflow. ## Type of Change - [x] Bug f...
diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/subflows/subflow-node.tsx b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/subflows/subflow-node.tsx index c2e2880769d..68f179ffd9b 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/subflows/subflow-nod...
4
3
1
[{"id": "G0", "claim": "Setting loopConfig.nodes / parallelConfig.nodes to [] mutates the caller's SerializedWorkflow config in place, so building the same workflow more than once (tests, retries) would see every child as disabled.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introdu...
null
simstudioai__sim__3676
simstudioai/sim
3,676
defect
cef321bda2577e697b1f648b9aa604c204e47ea1
6328c99f1da3ee8417f33b51dfe4d5585ac237e0
fix(tool): Fix custom tools spreading out string output
## Summary https://sim-ai.slack.com/archives/C09B82TTM7Y/p1773913304490249 We have a bug introduced with stripping double underscored fields. We incorrectly assumed these outputs would always be jsons, but custom tools can pass a string. This incorrectly spreads out the output into json character by character. F...
diff --git a/apps/sim/executor/utils/output-filter.ts b/apps/sim/executor/utils/output-filter.ts index be28f48a59a..5da00faba53 100644 --- a/apps/sim/executor/utils/output-filter.ts +++ b/apps/sim/executor/utils/output-filter.ts @@ -24,6 +24,9 @@ export function filterOutputForLog( additionalHiddenKeys?: string[] ...
2
1
1
[{"id": "G0", "claim": "The `||` fallback at both stripInternalFields call sites silently coerces falsy custom tool outputs (e.g. empty string, 0, false) to `{}`, and `??` should be used instead so the fallback applies only on null/undefined.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope...
null
simstudioai__sim__3680
simstudioai/sim
3,680
defect
27a41d4e33ad05e39ca1d92d6ad3cbb37d9e0dc3
ad8fb838b9389ef142cf6c43809412aaacdc1a5a
improvement(vfs): update custom glob impl to use micromatch, fix vfs filename regex
## Summary - Update custom glob implementation to use the micromatch lib - Regex fix to identify attachements with breaking names ## Type of Change - [x] Bug fix ## Testing Tested manually ## Checklist - [x] Code follows project style guidelines - [x] Self-reviewed my changes - [x] Tests added/upd...
diff --git a/apps/sim/lib/copilot/orchestrator/tool-executor/materialize-file.ts b/apps/sim/lib/copilot/orchestrator/tool-executor/materialize-file.ts index 9d40fb974bf..f7200b920c6 100644 --- a/apps/sim/lib/copilot/orchestrator/tool-executor/materialize-file.ts +++ b/apps/sim/lib/copilot/orchestrator/tool-executor/mat...
6
4
2
[{"id": "G0", "claim": "The `looksLikeGlob` detection in `pathWithinGrepScope` routes `{` and extglob markers to micromatch even though `nobrace: true`/`noext: true` disable those features, leaving dead detection branches that could mislead future maintainers; the suggested change is to detect only `*`, `?` and `[`.", ...
null
simstudioai__sim__3723
simstudioai/sim
3,723
defect
f02f85fded0dd052e4dc813011d03442cf9538e8
e0695ea0da9b026ce59b0c7221595ddaba70ace9
fix(copilot): allow loop-in-loop workflow edits
## Summary We now support loop in loop. Adjusted edit-workflow to handle this. * Added helpers for `processNestedNodeForParents`, `updateLoopOrParallelContainerData` * Removed throwing on nested loops ## Type of Change - [x] Bug fix - [ ] New feature - [ ] Breaking change - [ ] Documentation - [ ] Other...
diff --git a/apps/sim/lib/copilot/tools/server/workflow/edit-workflow/operations.test.ts b/apps/sim/lib/copilot/tools/server/workflow/edit-workflow/operations.test.ts index 2a9248ed6b5..1158bcf3b38 100644 --- a/apps/sim/lib/copilot/tools/server/workflow/edit-workflow/operations.test.ts +++ b/apps/sim/lib/copilot/tools/...
3
1
1
[{"id": "G0", "claim": "When an existing nested container child is not matched by any incoming node name and is removed during a nestedNodes merge, only the container block itself is deleted while its descendant blocks (and their edges) are left orphaned in the workflow state, so recursive descendant cleanup is needed ...
null
simstudioai__sim__3724
simstudioai/sim
3,724
defect
f02f85fded0dd052e4dc813011d03442cf9538e8
3dff6175b2b352cbed9fb6c58c3dcb638372e7aa
fix(autolayout): edits coalesced for same request diffs
## Summary Need to identify targetted autlayout targets more intelligently. ## Type of Change - [x] Bug fix ## Testing Tested manually ## Checklist - [x] Code follows project style guidelines - [x] Self-reviewed my changes - [x] Tests added/updated and passing - [x] No new warnings introduced - [x] ...
diff --git a/apps/sim/lib/copilot/tools/server/workflow/edit-workflow/index.ts b/apps/sim/lib/copilot/tools/server/workflow/edit-workflow/index.ts index 0f05376f527..eb0a0f23ed6 100644 --- a/apps/sim/lib/copilot/tools/server/workflow/edit-workflow/index.ts +++ b/apps/sim/lib/copilot/tools/server/workflow/edit-workflow/...
5
4
4
[{"id": "G0", "claim": "The `-`-delimited edge signature can collide across different source/handle splits when block IDs are UUIDs or handle names contain hyphens, which could silently skip a needed layout pass; use a separator that cannot appear in either UUIDs or handle names, such as `|`.", "category": "correctness...
null
simstudioai__sim__3730
simstudioai/sim
3,730
defect
775daed2eaea53d22df5e86e619fdf6931691595
2691a18cd7325bd4b9d4c809e0ac72cf63645dec
fix(quiver): build fail
## Summary Fix quiver build ## Type of Change - [x] Bug fix ## Testing Manual ## Checklist - [x] Code follows project style guidelines - [x] Self-reviewed my changes - [x] Tests added/updated and passing - [x] No new warnings introduced - [x] I confirm that I have read and agree to the terms outlined i...
diff --git a/apps/sim/blocks/blocks.test.ts b/apps/sim/blocks/blocks.test.ts index 9f668aab81e..86c3219a386 100644 --- a/apps/sim/blocks/blocks.test.ts +++ b/apps/sim/blocks/blocks.test.ts @@ -435,10 +435,13 @@ describe.concurrent('Blocks Module', () => { describe('Input/Output Validation', () => { it('should...
1
1
0
[{"id": "G0", "claim": "ParamType in apps/sim/blocks/types.ts should be updated to include 'file' so the type cast on Object.entries(block.inputs) in the 'should have valid input types' test becomes unnecessary, resolving the underlying pre-existing type mismatch at the source rather than working around it in the test....
null
simstudioai__sim__3731
simstudioai/sim
3,731
defect
5e53757ca9e376aa039a72b7c9a607cde1245bd8
8b5fc4d5e3a98c2cdf64bad883c68360a08f5356
fix(mothership): tool durability
## Summary Fix tool durability ## Type of Change - [x] Bug fix ## Testing Manual ## Checklist - [x] Code follows project style guidelines - [x] Self-reviewed my changes - [x] Tests added/updated and passing - [x] No new warnings introduced - [x] I confirm that I have read and agree to the terms outline...
diff --git a/apps/sim/lib/copilot/orchestrator/index.ts b/apps/sim/lib/copilot/orchestrator/index.ts index 28d3f268e29..23348cb7950 100644 --- a/apps/sim/lib/copilot/orchestrator/index.ts +++ b/apps/sim/lib/copilot/orchestrator/index.ts @@ -212,6 +212,17 @@ export async function orchestrateCopilotStream( }...
1
1
1
[{"id": "G0", "claim": "When the new Go-handled-tool branch is taken, both completion and durable are undefined, so success is determined solely by toolState.result.success; if the Go streaming layer never populates toolState.result, the resume payload will wrongly carry { error: 'Tool failed' } for a successfully exec...
null
simstudioai__sim__3734
simstudioai/sim
3,734
defect
8eb45e30579cdcdd220a95d2de345fc0a09cdaf1
e17576c6e438c7311bcd2dacfea637ced211b22d
fix(mothership): abort streamlining
## Summary Streamline aborts. ## Type of Change - [x] Bug fix ## Testing Tested manually ## Checklist - [x] Code follows project style guidelines - [x] Self-reviewed my changes - [x] Tests added/updated and passing - [x] No new warnings introduced - [x] I confirm that I have read and agree to the terms...
diff --git a/apps/sim/app/api/copilot/chat/abort/route.ts b/apps/sim/app/api/copilot/chat/abort/route.ts index b22280f3304..d35072e68f7 100644 --- a/apps/sim/app/api/copilot/chat/abort/route.ts +++ b/apps/sim/app/api/copilot/chat/abort/route.ts @@ -1,6 +1,8 @@ import { NextResponse } from 'next/server' import { abort...
4
3
3
[{"id": "G0", "claim": "appendInlineErrorTag(UNEXPECTED_PROVIDER_ERROR_TAG) injects the hardcoded message \"An unexpected provider error occurred\" into the chat stream for every error SSE event regardless of the actual error type, so users see misleading inline text; the tag should only be appended for genuinely unkno...
null
simstudioai__sim__3735
simstudioai/sim
3,735
defect
41a7d247ea6566fc1aeb420e13895bc73648cfeb
39bc691d6c9aed0237626194676e204650ed2b88
fix(mothership): async resume and tool result ordering
## Summary Async continuation resume now only trusts durable terminal rows for Sim-executed tools, fails explicitly when a continuation cannot be resumed, and closes the parallel tool race where tool_result could arrive before local execution startup and cause incorrect dedupe or double-processing. ## Type of Cha...
diff --git a/apps/sim/lib/copilot/orchestrator/index.test.ts b/apps/sim/lib/copilot/orchestrator/index.test.ts index 9a39b88220f..3e8f71287f2 100644 --- a/apps/sim/lib/copilot/orchestrator/index.test.ts +++ b/apps/sim/lib/copilot/orchestrator/index.test.ts @@ -7,6 +7,7 @@ import type { OrchestratorOptions } from './typ...
3
2
1
[{"id": "G0", "claim": "For a tool_call with status 'success' or 'skipped', terminalCompletionFromToolCall sources the AsyncToolCompletion message from toolCall.error, so a tool that ends up with a success status and a non-empty error field would carry the error string as its success message, which is misleading to dow...
null
simstudioai__sim__3767
simstudioai/sim
3,767
defect
8caaf013716b639da4334ae37759d19a53809c73
58dd7539686044755f334139362bb093ecb966c3
fix(billing): atomize usage_log and userStats writes via central recordUsage()
## Summary - Central `recordUsage()` wraps usage_log INSERT + userStats UPDATE in a single Postgres transaction, fixing drift between `currentPeriodCost` and `usage_log` - All cost mutation paths (workflow execution, copilot, wand) now go through `recordUsage()` - Removed duplicate tool hosting cost logging (`logFixedU...
diff --git a/apps/sim/app/api/billing/update-cost/route.ts b/apps/sim/app/api/billing/update-cost/route.ts index 0cbbd73a1d6..ca9cd49df8d 100644 --- a/apps/sim/app/api/billing/update-cost/route.ts +++ b/apps/sim/app/api/billing/update-cost/route.ts @@ -1,10 +1,8 @@ -import { db } from '@sim/db' -import { userStats } fr...
5
5
4
[{"id": "G0", "claim": "recordUsage() catches all errors internally and never re-throws, so the update-cost API route now always returns success even when the billing write completely fails (e.g. missing userStats row or DB error), leaving callers no way to detect billing failures.", "category": "correctness", "verdict...
null
simstudioai__sim__3776
simstudioai/sim
3,776
defect
5a5c33d326f6cb83e6f829f946dbd79059a6a29b
f818de7593c0d0e0447055dcdd4a184af6418a7b
fix(explicit-user-abort): separate explicit user abort semantics
## Summary Explicit user abort signal must be distinguished to not kill reconnection chance. ## Type of Change - [x] Bug fix ## Testing Tested manually ## Checklist - [x] Code follows project style guidelines - [x] Self-reviewed my changes - [x] Tests added/updated and passing - [x] No new warnings in...
diff --git a/apps/sim/app/workspace/[workspaceId]/home/hooks/use-chat.ts b/apps/sim/app/workspace/[workspaceId]/home/hooks/use-chat.ts index f2a41c89b96..85d2c408b9d 100644 --- a/apps/sim/app/workspace/[workspaceId]/home/hooks/use-chat.ts +++ b/apps/sim/app/workspace/[workspaceId]/home/hooks/use-chat.ts @@ -92,6 +92,9 ...
2
2
1
[{"id": "G0", "claim": "The isReconnecting state is never reset to false when the reconnect loop terminates (all 10 attempts exhausted, or finalize on a terminal status), so the UI stays stuck showing a reconnecting spinner after the stream has ended with an error.", "category": "correctness", "verdict": "supported", "...
null
simstudioai__sim__3815
simstudioai/sim
3,815
defect
dda012eae9f1ca55b388b6f703046528280a3033
7b5a296902a8ad969c538a8040ff16316c7d3a25
fix(security): SSRF, access control, and info disclosure
## Summary Remediates findings from our recent penetration test across multiple endpoints: - **SSRF via SMTP host** — Added `validateDatabaseHost()` to the SMTP send route to block connections to private/reserved IPs. Genericized network error messages to prevent port scanning via error code enumeration - **SSRF...
diff --git a/apps/sim/app/api/copilot/feedback/route.test.ts b/apps/sim/app/api/copilot/feedback/route.test.ts index de2a4d87576..f74aecf77a7 100644 --- a/apps/sim/app/api/copilot/feedback/route.test.ts +++ b/apps/sim/app/api/copilot/feedback/route.test.ts @@ -12,6 +12,7 @@ const { mockReturning, mockSelect, m...
6
6
4
[{"id": "G0", "claim": "Unless there is a deliberate reason to re-fetch from the DB, the organization invitation route should use session.user.email directly instead of querying the database for the caller's email, as the sibling workspace-invitation route does.", "category": "performance", "verdict": "supported", "pri...
null
simstudioai__sim__3820
simstudioai/sim
3,820
defect
33fdb11396965960d3424c432b47eabf3d2f7dc0
3c885790ed6e3b076ea7036693ab90d98adbb823
fix(security): pentest remediation — condition escaping, SSRF hardening, ReDoS protection
## Summary - **Condition expression escaping**: escape newline/CR/line-separator characters in resolved string values before embedding in JS condition expressions — unescaped newlines caused `SyntaxError` and workflow execution failure - **SSRF localhost hardening**: use `isHosted` feature flag instead of `allowHttp` t...
diff --git a/apps/sim/executor/variables/resolver.ts b/apps/sim/executor/variables/resolver.ts index 7da902e13be..88b23d72340 100644 --- a/apps/sim/executor/variables/resolver.ts +++ b/apps/sim/executor/variables/resolver.ts @@ -236,7 +236,13 @@ export class VariableResolver { } if (typeof resolved ...
4
2
1
[{"id": "G0", "claim": "The `isLocalhost && isHosted` localhost guard in validateExternalUrl is duplicated (once inside the allowHttp branch, once after the protocol checks), making the control flow harder to reason about and risking divergent future edits; consolidate it into a single early-return before the protocol ...
null
simstudioai__sim__3847
simstudioai/sim
3,847
defect
5c47ea58f8ddc86cf520a6fb49cd2a0beb928415
584d591143c010b6ec6793efe2a01f7d44e7c119
fix(concurrency): json serialization issues, ttls, feature flag redirection
## Summary Fixes multiple issues surfaced from prod deployment of worker based execution system. ## Type of Change - [x] Bug fix ## Testing To be tested in Dev Sandbox ## Checklist - [x] Code follows project style guidelines - [x] Self-reviewed my changes - [x] Tests added/updated and passing - [x] N...
diff --git a/apps/sim/app/api/schedules/execute/route.ts b/apps/sim/app/api/schedules/execute/route.ts index d739f3aa67b..6c13d91f121 100644 --- a/apps/sim/app/api/schedules/execute/route.ts +++ b/apps/sim/app/api/schedules/execute/route.ts @@ -4,7 +4,7 @@ import { and, eq, isNull, lt, lte, ne, not, or, sql } from 'dri...
6
4
2
[{"id": "G0", "claim": "Splitting the claim into the Lua ZREM plus later TypeScript GET/SET round-trips is non-atomic: if any step fails (e.g. the record is missing after TTL expiry), the job is irrecoverably removed from its lane and effectively dropped; the reviewer asks for a guard in the throw path or reconciliatio...
null
simstudioai__sim__3875
simstudioai/sim
3,875
defect
282ec8c58c01bbcafe3451fba817e8e311dcedbc
ed468d78282e753cb3df9fb022f51c9d9284fd14
fix(tools) Directly query db for custom tool id
## Summary Adjusted querying custom tool by id from a endpoint call to an internal db call. Previously, these custom tool calls would each hit our gateway, causing 502s when a large amount were requested and causing 5xx on workflow execution. We can avoid this by directly querying the db instead ## Type of Chan...
diff --git a/apps/sim/executor/handlers/agent/agent-handler.test.ts b/apps/sim/executor/handlers/agent/agent-handler.test.ts index 87fba03a417..d4987de9606 100644 --- a/apps/sim/executor/handlers/agent/agent-handler.test.ts +++ b/apps/sim/executor/handlers/agent/agent-handler.test.ts @@ -21,6 +21,7 @@ vi.mock('@/lib/co...
5
4
1
[{"id": "G0", "claim": "In utils.server.ts the operations module is imported dynamically inside the function body with `await import(...)` instead of as a static top-level import, contrary to codebase convention.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "...
null
simstudioai__sim__3877
simstudioai/sim
3,877
defect
282ec8c58c01bbcafe3451fba817e8e311dcedbc
003b32d7c324be360083d0b4467ef0d89b518cf1
fix(kb): chunking config persistence
## Summary Respect KB chunking configs set correctly. ## Type of Change - [x] Bug fix ## Testing Tested manually ## Checklist - [x] Code follows project style guidelines - [x] Self-reviewed my changes - [x] Tests added/updated and passing - [x] No new warnings introduced - [x] I confirm that I have re...
diff --git a/apps/sim/app/api/knowledge/[id]/documents/route.test.ts b/apps/sim/app/api/knowledge/[id]/documents/route.test.ts index 70eacdf46e8..2be0e79bc52 100644 --- a/apps/sim/app/api/knowledge/[id]/documents/route.test.ts +++ b/apps/sim/app/api/knowledge/[id]/documents/route.test.ts @@ -457,11 +457,8 @@ describe('...
3
2
1
[{"id": "G0", "claim": "The chunk fields (`chunkSize`, `chunkOverlap`, `minCharactersPerChunk`) still present in `processDocumentAsync`'s parameter type and accepted by the upsert API schema are silently ignored, and the type and schema should be trimmed or documented to avoid misleading API consumers.", "category": "m...
null
simstudioai__sim__3887
simstudioai/sim
3,887
defect
df6ceb61a444e61a267ad4241b725063437bad8d
c35b39651ef031535e6bbf529828cc0753dad653
improvement(credentials): consolidate OAuth modals and auto-fill credential name
## Summary - Consolidate `ConnectCredentialModal` and `OAuthRequiredModal` into a single `OAuthModal` with `mode: 'connect' | 'reauthorize'` discriminated union props - Auto-fill credential display name as "{Username}'s {Provider} {N}" (e.g. "Waleed's Google Drive 1"), falling back to "My {Provider} {N}" - Move `OAuthM...
diff --git a/apps/sim/app/workspace/[workspaceId]/components/oauth-modal.test.ts b/apps/sim/app/workspace/[workspaceId]/components/oauth-modal.test.ts new file mode 100644 index 00000000000..d0ca2abfe6f --- /dev/null +++ b/apps/sim/app/workspace/[workspaceId]/components/oauth-modal.test.ts @@ -0,0 +1,72 @@ +/** + * @vi...
2
1
1
[{"id": "G0", "claim": "The useState lazy initializer runs only at mount, so if session is still null while pending the displayName auto-fill is computed from the stale session and never updates when the session resolves, defeating the auto-fill feature; a useEffect synced to the session (until the user manually edits ...
null
simstudioai__sim__3890
simstudioai/sim
3,890
defect
076c835ba2ca98b26754a83357d792bf70310fce
7dd25d807a35227e31efa7275a1cb3ae983faa70
improvement(workflow): seed start block on server side
## Summary - Seed start block on server side like we do when we create new workspace or copilot creates new workflow. - Add creating state into workflow hydration state machine to prevent lag between navigation and workflow load - Fix new workspace creation state machine issue ## Type of Change - [x] Bug fix...
diff --git a/apps/sim/app/api/workflows/route.ts b/apps/sim/app/api/workflows/route.ts index 4dc1d85a9c0..15b632fe666 100644 --- a/apps/sim/app/api/workflows/route.ts +++ b/apps/sim/app/api/workflows/route.ts @@ -8,6 +8,8 @@ import { AuditAction, AuditResourceType, recordAudit } from '@/lib/audit/log' import { checkSe...
2
2
1
[{"id": "G0", "claim": "When saveWorkflowToNormalizedTables fails, the POST /api/workflows route only logs the error and still returns a 200 response containing startBlockId and subBlockValues, leaving the client primed with values for a start block that was never persisted.", "category": "correctness", "verdict": "sup...
null
simstudioai__sim__3893
simstudioai/sim
3,893
defect
2c174ca4f663930468f4a15d5f3014d62d1bef45
25875dd19c62844f935d52825079d7c5420e191d
improvement(providers): audit and update all provider model definitions
## Summary - Added missing models: gpt-5.2-pro, gpt-5-pro, o3-mini, o3-pro, claude-sonnet-4-6, gemini-3.1-flash-lite-preview, deepseek-reasoner, grok-4.20 models, mistral-small-2603, devstral-2512, devstral-latest - Fixed Anthropic context windows and max output tokens verified against live API - Fixed OpenAI gpt-4.1 f...
diff --git a/apps/sim/providers/anthropic/core.ts b/apps/sim/providers/anthropic/core.ts index 240e7458dd4..8fe7785c41c 100644 --- a/apps/sim/providers/anthropic/core.ts +++ b/apps/sim/providers/anthropic/core.ts @@ -77,17 +77,24 @@ const THINKING_BUDGET_TOKENS: Record<string, number> = { } /** - * Checks if a mode...
3
1
0
[{"id": "G0", "claim": "The new deepseek-reasoner entry is assigned the V3 chat model's pricing ($0.28/$0.028/$0.42) instead of the R1 reasoning model's pricing ($0.55/$0.14/$2.19), which may misrepresent costs for users calling that model ID.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scop...
null
simstudioai__sim__3898
simstudioai/sim
3,898
defect
a78f3f9c2e9348e9755b41f49b34d1cc5c20a486
5a59174e3507240da3948b61dc1c7a1be55d55f8
improvement(models): update default to claude-sonnet-4-6 and reorganize OpenAI models
## Summary - Update default model from claude-sonnet-4-5 to claude-sonnet-4-6 across agent, router, evaluator blocks and executor constants - Replace gpt-4o as the OpenAI default with gpt-4.1 (newer comparable model) - Reorganize OpenAI model list by generation: GPT-4.1 family → GPT-5.4 → GPT-5.2 → GPT-5.1 → GPT-5 → o-...
diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/combobox/combobox.tsx b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/combobox/combobox.tsx index a1933049b01..602f...
1
1
0
[{"id": "G0", "claim": "The local variable `claudeSonnet45` in combobox.tsx still references the old model version even though `DEFAULT_MODEL` was updated to `claude-sonnet-4-6`, and should be renamed so the identifier is not misleading.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope"...
null
simstudioai__sim__3918
simstudioai/sim
3,918
defect
b0c0ee29a8d7363d50ab8e5f66b3272ca989ea3b
bc41ea02b921c50951f73b4bad527a38be14ab94
improvement(execution): multiple response blocks
## Summary - Remove singleInstance limitation - Add to docs note on non-deterministic behaviour if response block in parallel with side-effect - First response block wins policy like code ## Type of Change - [x] Other: UX Improvement ## Testing Tested manually ## Checklist - [x] Code follows project s...
diff --git a/apps/docs/content/docs/en/blocks/response.mdx b/apps/docs/content/docs/en/blocks/response.mdx index 327bbaa6eb0..6ec1872fe14 100644 --- a/apps/docs/content/docs/en/blocks/response.mdx +++ b/apps/docs/content/docs/en/blocks/response.mdx @@ -20,7 +20,7 @@ The Response block formats and sends structured HTTP ...
3
3
1
[{"id": "G0", "claim": "When a Response block on a parallel branch locks the output via responseOutputLocked, a concurrent node on another branch that throws still makes the errorFlag rethrow at the end of run() fire, overriding the locked response so the caller gets a success:false error instead of the response block'...
null
simstudioai__sim__3941
simstudioai/sim
3,941
defect
b0cb95be2f8a55625f2ffcecaa88af45f3756ce7
0fa571eb7cb467bf6fabc048d4bb4a867d7971d7
fix(envvars): restore workflowUserId fallback for scheduled execution env var resolution
## Summary - Scheduled workflow executions resolve personal env vars for the wrong user (workspace billed account instead of workflow creator) - This was a regression from #3179 which simplified the `personalEnvUserId` logic and dropped the `workflowUserId` fallback - Restores the original logic from #2197: use `sessio...
diff --git a/apps/sim/lib/workflows/executor/execution-core.ts b/apps/sim/lib/workflows/executor/execution-core.ts index aa96e5668a5..143735dde56 100644 --- a/apps/sim/lib/workflows/executor/execution-core.ts +++ b/apps/sim/lib/workflows/executor/execution-core.ts @@ -325,7 +325,10 @@ export async function executeWorkf...
1
1
1
[{"id": "G0", "claim": "The PR's restored env-var resolution logic is untested on its two primary paths (client session using sessionUserId, server-side using workflowUserId), leaving them open to silent regression, so tests should be added covering those branches.", "category": "testing", "verdict": "supported", "prio...
null
simstudioai__sim__3942
simstudioai/sim
3,942
defect
6d00d6bf2c133b2486c7c6d8873dadfc21f1aac2
e935e29b01a915593bbf54ed7976bebe6143afbf
improvement(models): tighten model metadata and crawl discovery
## Summary - improve model metadata around published output limits and structured output support - add explicit crawl discovery coverage with sitemap updates and an `llms.txt` route ## Type of Change - [x] Improvement ## Testing Tested manually - `bun run lint` - `bun run test` - `bun run type-check` currently fails ...
diff --git a/apps/sim/app/(landing)/models/[provider]/[model]/page.tsx b/apps/sim/app/(landing)/models/[provider]/[model]/page.tsx index fd7557e37c7..6af1aae5dcf 100644 --- a/apps/sim/app/(landing)/models/[provider]/[model]/page.tsx +++ b/apps/sim/app/(landing)/models/[provider]/[model]/page.tsx @@ -18,6 +18,7 @@ impor...
4
1
1
[{"id": "G0", "claim": "GitGuardian detected a hardcoded 'Generic High Entropy Secret' in the pull request's changes to apps/sim/providers/utils.test.ts (commit 35c939e) and asks that it be investigated and remediated.", "category": "security", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G...
null
simstudioai__sim__3971
simstudioai/sim
3,971
defect
f9a7c4538ec8d3d0d408ea527c8a5d04a03a7557
edc103d485d4e6e23f6837891044b08dd7438de9
feat(files): expand file editor to support more formats, add docx/xlsx preview
## Summary - Add ~40 new text-editable file extensions (js, ts, py, go, rs, sql, xml, toml, dockerfile, etc.) - Add DOCX preview using mammoth.js (converts to HTML, renders in sandboxed iframe) - Add XLSX preview using SheetJS (lazy-parses active sheet, renders as table with sheet tabs, caps at 10k rows) - Extract shar...
diff --git a/apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/file-viewer.tsx b/apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/file-viewer.tsx index fe8660aa464..6339533dd06 100644 --- a/apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/file-viewer.tsx +++ b/apps/sim/...
5
3
1
[{"id": "G0", "claim": "buildDocxPreviewHtml uses a transparent background with the hardcoded dark text color #e4e4e7, which makes DOCX content unreadable in light mode because the sandboxed iframe cannot inherit CSS variables from the parent document.", "category": "correctness", "verdict": "uncertain", "priority": "P...
null
simstudioai__sim__3987
simstudioai/sim
3,987
defect
5ca66c381b7af00ac81adc0fe92a8848928ffa6f
4d553ca9a60c5f4f28db07484c732360e98ad574
fix(signup): show multiple signup errors at once
## Summary Previously password validation errors would show up one at a time, causing frustration since users would attempt to alter their passwords multiple times. Altered code to append all errors and to push signup buttons down to make room for additional validation errors. ## Type of Change - [x] Bug fix - [ ...
diff --git a/apps/sim/app/(auth)/reset-password/reset-password-form.tsx b/apps/sim/app/(auth)/reset-password/reset-password-form.tsx index 0ff43b0561a..1f71afcb6ec 100644 --- a/apps/sim/app/(auth)/reset-password/reset-password-form.tsx +++ b/apps/sim/app/(auth)/reset-password/reset-password-form.tsx @@ -104,38 +104,38 ...
4
2
0
[{"id": "G0", "claim": "errors.join(' ') concatenates all reset-password validation messages into a single unreadable wall of text rendered in one tag; the form should store errors in an array and render each in its own element like the signup form does.", "category": "design", "verdict": "supported", "priority": "P2",...
null
simstudioai__sim__4024
simstudioai/sim
4,024
defect
cd3cb871be65c8b4a9c3781eafa3921b1ad3cb0f
de69cc2c4cf6a3767c060dccfe07cbcb17508370
feat(security): add GTM and GA domains to CSP for hosted environments
## Summary - Add GTM and GA domains to CSP `script-src`, `img-src`, `connect-src`, and `frame-src` directives - Updates both `buildTimeCSPDirectives` and `generateRuntimeCSP()` - All additions gated behind `isHosted` Follows up on #3993 which added the GTM/GA scripts but missed the CSP allowlisting. ## Type of Change...
diff --git a/apps/sim/lib/core/security/csp.test.ts b/apps/sim/lib/core/security/csp.test.ts index b8661ea5e53..2a6fb3da95d 100644 --- a/apps/sim/lib/core/security/csp.test.ts +++ b/apps/sim/lib/core/security/csp.test.ts @@ -19,6 +19,7 @@ vi.mock('@/lib/core/config/env', () => vi.mock('@/lib/core/config/feature-flag...
3
1
0
[{"id": "G0", "claim": "The test file mocks isHosted: false and has no test cases covering the isHosted: true code path that exercises the new GTM/GA domain additions.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The img-src directive embeds the GTM/G...
null
simstudioai__sim__4062
simstudioai/sim
4,062
defect
91ce55e547668158dc2cff2ab144220ea37d5085
538445282e067648e1dfe617a96f1084526a2098
fix(subscription-state): remove dead code, change token route check
## Summary Cleanup dead helpers for subscription state. ## Type of Change - [x] Bug fix - [x] Other: Code quality improvement ## Testing Tested manually ## Checklist - [x] Code follows project style guidelines - [x] Self-reviewed my changes - [x] Tests added/updated and passing - [x] No new warni...
diff --git a/apps/sim/app/api/speech/token/route.ts b/apps/sim/app/api/speech/token/route.ts index 9e55c50084c..b4a5835b9eb 100644 --- a/apps/sim/app/api/speech/token/route.ts +++ b/apps/sim/app/api/speech/token/route.ts @@ -4,7 +4,7 @@ import { createLogger } from '@sim/logger' import { eq } from 'drizzle-orm' impor...
4
1
0
[{"id": "G0", "claim": "The test file re-mocks @sim/logger even though it is already globally mocked in vitest.setup.ts, against the project testing rule, and should have that mock block removed.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "When billi...
null
simstudioai__sim__4083
simstudioai/sim
4,083
defect
c393791f04b525dc5e8a247a681b92f7c57573e6
5e3aa189bb12c387f98afa4a1a4393000c377f74
improvement(ci): parallelize Docker builds and fix test timeouts
## Summary - Parallelize Docker builds with test-build by removing `test-build` from `needs` on `build-amd64` and `build-ghcr-arm64` jobs — code reaching main/staging has already been PR-tested - Remove duplicate `bun install -g turbo` in app.Dockerfile deps stage (only needed in builder stage) - Mock `secureFetchWithP...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3b67ff38f56..7413dc33272 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,7 +48,7 @@ jobs: # Build AMD64 images and push to ECR immediately (+ GHCR for main) build-amd64: name: Build AMD64 - needs: [test-buil...
2
1
1
[{"id": "G0", "claim": "With `test-build` removed from `needs`, `build-amd64` and `build-ghcr-arm64` race the test suite, so if tests fail while the Docker build succeeds the image is pushed to ECR/GHCR before the failure is seen (mostly for direct pushes to staging/dev that bypass the PR check gate); consider keeping ...
null
simstudioai__sim__4120
simstudioai/sim
4,120
defect
3efbd1d6128773b1c264964fc32cba38de96cf59
80c0b120366ac82d9631ac0dc91e76a23695536e
fix(export): preserve unicode characters in workflow filenames
## Summary Workflow names containing Non-ASCII characters (like Korean) were being sanitized into dashes because of a restrictive regex in `sanitizePathSegment`. This PR updates the regex to be Unicode-aware, allowing letters and numbers from any language while still stripping truly unsafe filesystem characters. ## C...
diff --git a/apps/sim/lib/workflows/operations/import-export.test.ts b/apps/sim/lib/workflows/operations/import-export.test.ts new file mode 100644 index 00000000000..67524e14840 --- /dev/null +++ b/apps/sim/lib/workflows/operations/import-export.test.ts @@ -0,0 +1,34 @@ +/** + * @vitest-environment node + */ +import {...
3
3
0
[{"id": "G0", "claim": "The new test file imports sanitizePathSegment via a relative path, violating the project's convention of absolute imports, and should use the @/ alias instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The inline com...
null
simstudioai__sim__4148
simstudioai/sim
4,148
defect
6ce299bb23bb8bedf65c0f859b765f290d645c35
4f9843803996bea5a97566d16ca14e99470f9785
improvement(ui): remove anti-patterns, fix follow-up auto-scroll, move CopyCodeButton to emcn
## Summary - Fixed suggested follow-ups not scrolling into view after stream ends — added a brief post-stream MutationObserver in `use-auto-scroll` to catch the DOM expansion - Moved `CopyCodeButton` from `components/ui` into `components/emcn/components/code`, exported from the emcn barrel, nudged slightly right in c...
diff --git a/apps/sim/app/chat/components/message/components/markdown-renderer.tsx b/apps/sim/app/chat/components/message/components/markdown-renderer.tsx index 48d4a144bdb..4ba10a9b6a5 100644 --- a/apps/sim/app/chat/components/message/components/markdown-renderer.tsx +++ b/apps/sim/app/chat/components/message/componen...
5
5
4
[{"id": "G0", "claim": "The settled observer's disconnect setTimeout is not captured in the effect cleanup, so it cannot be cancelled if the component unmounts or isStreaming flips back within the 300 ms window.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G...
null
simstudioai__sim__4160
simstudioai/sim
4,160
defect
367415f649f7f349c3dbe728307f580799eb28d0
fa25417e7ba49c81e0b7f6db73ceab7aefa59007
fix(triggers): env var resolution in provider configs
## Summary Env var resolution in provider configs ## Type of Change - [x] Bug fix ## Testing Test in staging environment ## Checklist - [x] Code follows project style guidelines - [x] Self-reviewed my changes - [x] Tests added/updated and passing - [x] No new warnings introduced - [x] I confirm th...
diff --git a/apps/sim/background/webhook-execution.ts b/apps/sim/background/webhook-execution.ts index d78a1401389..25d8ab8de09 100644 --- a/apps/sim/background/webhook-execution.ts +++ b/apps/sim/background/webhook-execution.ts @@ -11,6 +11,7 @@ import { preprocessExecution } from '@/lib/execution/preprocessing' impo...
2
1
1
[{"id": "G0", "claim": "When resolveWebhookRecordProviderConfig throws, execution silently falls back to the original webhook record whose provider config may still contain raw template literals like {{SLACK_BOT_TOKEN}}, so handler.formatInput gets an opaque authentication failure instead of a clear env-resolution erro...
null
simstudioai__sim__4202
simstudioai/sim
4,202
defect
147ac89672bc7ecb67d237b0651d940c2b612577
c0e6d8029558b519dbf57bc948df636899afb2f3
fix(executor): subflow edge keys mismatch
## Summary Test this workflow. Consecutive loops case with empty followed by populated breaks due to edge key mismatch. Manual trigger ↓ [Seed] (Function) return { empty: [], populated: [1, 2, 3] } ↓ [LoopEmpty] forEach <seed.result.empty> └─ body: Function return <loop.currentItem...
diff --git a/apps/sim/executor/execution/edge-manager.test.ts b/apps/sim/executor/execution/edge-manager.test.ts index a1319574959..44fb3b10944 100644 --- a/apps/sim/executor/execution/edge-manager.test.ts +++ b/apps/sim/executor/execution/edge-manager.test.ts @@ -600,6 +600,171 @@ describe('EdgeManager', () => { ...
1
1
0
[{"id": "G0", "claim": "emitSubflowSuccessEvents returns Promise<string> (the resolved blockName) but both call sites discard it, so the return is dead code that misleads readers; change the return type to Promise<void> and drop the return blockName line.", "category": "maintainability", "verdict": "supported", "priori...
null
simstudioai__sim__4208
simstudioai/sim
4,208
defect
c06361b14267336c3b8d8380ea9e74e473e35989
4d410adff757ad2980808f9dfd27ff4d6385f969
fix(resolver): turn off resolver for opaque schema nodes, unrun paths
## Summary Turn off InvalidFieldErrors for: - Opaque schema outputs: e.g. function can return conditional json - Path is not executed ## Type of Change - [x] Bug fix ## Testing Tested manually and added tests. ## Checklist - [x] Code follows project style guidelines - [x] Self-reviewed my changes -...
diff --git a/apps/sim/executor/utils/block-reference.test.ts b/apps/sim/executor/utils/block-reference.test.ts index 470522b772e..72ec514765f 100644 --- a/apps/sim/executor/utils/block-reference.test.ts +++ b/apps/sim/executor/utils/block-reference.test.ts @@ -162,7 +162,11 @@ describe('resolveBlockReference', () => { ...
3
2
0
[{"id": "G0", "claim": "The new subflow-utils.test.ts is missing the `@vitest-environment node` directive that the sibling block-reference.test.ts uses, so the suite runs under the slower default jsdom environment.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "...
null
simular-ai__Agent-S__163
simular-ai/Agent-S
163
defect
2cb57fb5b5cc4798394fab85691d45b7a12391ba
432a9f45d778a670423e3b814a8861f1bb112204
feat: add Ollama provider support
## Summary - Add `LMMEngineOllama` class to `engine.py` for local Ollama model support - Ollama uses OpenAI-compatible API with default endpoint `http://localhost:11434/v1` - Supports `OLLAMA_HOST` environment variable for custom endpoint ## Usage ```bash agent_s \ --provider ollama \ --model llama3.2-vision \...
diff --git a/gui_agents/s3/core/engine.py b/gui_agents/s3/core/engine.py index 7bf90f14..197e885d 100644 --- a/gui_agents/s3/core/engine.py +++ b/gui_agents/s3/core/engine.py @@ -443,3 +443,49 @@ def generate(self, messages, temperature=0.0, max_new_tokens=None, **kwargs): .choices[0] .message...
3
3
3
[{"id": "G0", "claim": "Forward the accepted **kwargs to chat.completions.create() in the Ollama engine's generate(), as the other engine implementations do, so extra API parameters are not silently dropped.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cla...
null
simulot__immich-go__1006
simulot/immich-go
1,006
defect
64221e90df743148a8795994af51552d9b40604f
ef2bd0c845c78c009b808eef6b27f20c47f59f22
make func (t *ImmichExifTime) UnmarshalJSON support hundreths and tenths of seconds too
fixes #1005
diff --git a/immich/immich.go b/immich/immich.go index 8f9475620..833fb30e8 100644 --- a/immich/immich.go +++ b/immich/immich.go @@ -176,6 +176,10 @@ func (t *ImmichExifTime) UnmarshalJSON(b []byte) error { switch len(b) { case 29: pattern = "2006-01-02T15:04:05.000+00:00" + case 28: + pattern = "2006-01-02T15:...
1
1
0
[{"id": "G0", "claim": "The test file's //go:build !windows constraint should not exclude windows from the tests.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
simulot__immich-go__796
simulot/immich-go
796
defect
c25529da5edbdf38c54c9b4732664a0349b307ea
e71deb01ca2dbd39cf6d5f10ae42fcaa270ad502
feat: Add `--include-type` flag to upload command
This is an implementation to add the feature proposed in issue #739. The feature enables the user the specify the type of media that should be uploaded (`VIDEO` or `IMAGE`) rather than specifying file extensions. If, for example, the flag is set to `IMAGE`, all the file extensions for image files will be included. ...
diff --git a/adapters/fromimmich/options.go b/adapters/fromimmich/options.go index 479687b2d..d142d99e3 100644 --- a/adapters/fromimmich/options.go +++ b/adapters/fromimmich/options.go @@ -9,16 +9,17 @@ import ( ) type FromImmichFlags struct { - DateRange cliflags.DateRange // get assets only within this date r...
3
3
1
[{"id": "G0", "claim": "The same --include-type feature should be added for the other upload options (from google photos and from immich), and why not for the archive command.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The readme file should be updat...
null
simulot__immich-go__897
simulot/immich-go
897
defect
20fb6882da9e6650b5385a76449254a8dcc3b382
2a658ed5c14acc898f8ea8e448b591b8d65cfa0f
Added overwrite flag for upload sub-command
Sometimes we need to overwrite files to a remote immich server, for example after adjust photos in the graphical editor. And we want the server to have a new version of our photo, even if it is has a smaller size. For this case I added the --overwrite flag for upload command.
diff --git a/app/cmd/upload/run.go b/app/cmd/upload/run.go index b1f3458c9..37dcec8ee 100644 --- a/app/cmd/upload/run.go +++ b/app/cmd/upload/run.go @@ -335,6 +335,26 @@ func (upCmd *UpCmd) handleAsset(ctx context.Context, a *assets.Asset) error { return err } + if upCmd.Overwrite { + if advice.ServerAsset != n...
1
1
0
[{"id": "G0", "claim": "The overwrite handling in handleAsset should be refactored into a ShouldUpload(a) function that returns a value like 'ForceUpload' with a detailed reason, to keep the code structure clean and help prevent issues with binary duplicates.", "category": "design", "verdict": "supported", "priority": ...
null
sinaptik-ai__pandas-ai__1121
sinaptik-ai/pandas-ai
1,121
defect
e5f1c8aa69e208049046f0ce8ec329c200897303
a5c2b7424ec25c7a0bb665b5db4745c517553b91
feat: add support for IBM watsonx.ai models
Adding using the ibm-watsonx-ai package as another LLM method. At this time, the watsonx.ai package does **not** support multi-turn conversations (I've included that in the updated docs). - [X] Tests added and passed if fixing a bug or adding a new feature. - [X] All [code checks passed](https://github.com/gventur...
diff --git a/docs/LLMs/llms.md b/docs/LLMs/llms.md index 3b4c73288..87c4cf973 100644 --- a/docs/LLMs/llms.md +++ b/docs/LLMs/llms.md @@ -1,12 +1,15 @@ # Large language models (LLMs) -PandasAI supports several large language models (LLMs). LLMs are used to generate code from natural language queries. The generated co...
7
3
2
[{"id": "G0", "claim": "CI tests fail on Python 3.9 because the watsonx code and its tests import ibm-watsonx-ai at module level, so the watsonx tests should be skipped with a pytest skipif marker on Python below 3.10 and the imports deferred, keeping support for Python 3.8/3.9.", "category": "correctness", "verdict": ...
null
sinaptik-ai__pandas-ai__1567
sinaptik-ai/pandas-ai
1,567
defect
2594c150113c5a42dbac6246901b70e28b2caeca
c7ad438b1d1b963bbeedf55e2bcad0d716044e53
fix: adding http client parameter in azure_openai.py
Adding http client parameter in azure_openai.py for extending httpx client proxy and ssl configurations for openai - [ ] Closes #xxxx (Replace xxxx with the GitHub issue number). - [ ] Tests added and passed if fixing a bug or adding a new feature. - [ ] All [code checks passed](https://github.com/gventuri/pandas-ai/b...
diff --git a/extensions/llms/openai/pandasai_openai/azure_openai.py b/extensions/llms/openai/pandasai_openai/azure_openai.py index fd1b50383..ad80dc275 100644 --- a/extensions/llms/openai/pandasai_openai/azure_openai.py +++ b/extensions/llms/openai/pandasai_openai/azure_openai.py @@ -44,6 +44,7 @@ def __init__( ...
1
1
1
[{"id": "G0", "claim": "Unit tests should be added to verify the functionality of the new `http_client` parameter.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
sinaptik-ai__pandas-ai__1568
sinaptik-ai/pandas-ai
1,568
defect
01bf53e95945a88dc0aa5223353c29e466c432fc
8d50ee3b89aefca0f139d11777adce0b857080b3
fix(sql_query): validate if the query is not malicious
<!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > Add SQL query validation in `SQLDatasetLoader` to prevent execution of potentially malicious queries using `is_sql_query_safe`. > > - **Security**: > - Add `is_sql_query_safe` function in `sql_sanitizer.py` to validate SQL queries against a list of unsafe keywords and...
diff --git a/pandasai/data_loader/loader.py b/pandasai/data_loader/loader.py index 9a7611fba..6740ec691 100644 --- a/pandasai/data_loader/loader.py +++ b/pandasai/data_loader/loader.py @@ -9,9 +9,9 @@ from pandasai.dataframe.base import DataFrame from pandasai.dataframe.virtual_dataframe import VirtualDataFrame -fr...
2
2
2
[{"id": "G0", "claim": "The condition `if parsed.key == \"SELECT\": return False` is inverted and marks safe SELECT queries as unsafe; it should treat SELECT queries as safe.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "A test should be added cove...
null
sinaptik-ai__pandas-ai__1576
sinaptik-ai/pandas-ai
1,576
defect
4ca228fe29f13a8ba55328dacdb1a2c7e49ffeb1
51dac82323e8b5fa716a09e18026977d3ef23539
fix(sql): allow paramerized query through sql sanitization
<!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > Enable parameterized queries and suppress SQLAlchemy warnings, with updated tests for query safety and import handling. > > - **Behavior**: > - Allow parameterized queries by replacing '%s' with a placeholder in `is_sql_query_safe()` in `sql_sanitizer.py`. > - Sup...
diff --git a/extensions/connectors/sql/pandasai_sql/__init__.py b/extensions/connectors/sql/pandasai_sql/__init__.py index 3cd517985..d01393dd5 100644 --- a/extensions/connectors/sql/pandasai_sql/__init__.py +++ b/extensions/connectors/sql/pandasai_sql/__init__.py @@ -1,3 +1,4 @@ +import warnings from typing import Op...
1
1
0
[{"id": "G0", "claim": "The ImportError message in the ModuleNotFoundError handler is not grammatically correct ('library.e.g.' with no trailing period) and should be rephrased for clarity as 'library, e.g. ... .'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sinaptik-ai__pandas-ai__1589
sinaptik-ai/pandas-ai
1,589
defect
18e4f85abbe4bf23d25f1e263d29411166a1061b
d6446b6c7658caa1b7723c1bf81134e71ffada24
fix(load): update error message in case of dataset not found locally and missing api keys
<!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > Update error message and add print statement in `load()` for missing local dataset and API key, with new test added. > > - **Behavior**: > - Update error message in `load()` in `pandasai/__init__.py` when dataset not found locally and no API key is provided. > - ...
diff --git a/pandasai/__init__.py b/pandasai/__init__.py index a65ce95e0..ca978a737 100644 --- a/pandasai/__init__.py +++ b/pandasai/__init__.py @@ -212,11 +212,17 @@ def load(dataset_path: str) -> DataFrame: raise ValueError("The path must be in the format 'organization/dataset'.") dataset_full_path = ...
2
1
0
[{"id": "G0", "claim": "The new PandaAIApiKeyError message, raised when either the API key or the API URL is missing, only mentions that no API key was provided and should be updated to cover both missing API key and API URL.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"},...
null
sinaptik-ai__pandas-ai__1595
sinaptik-ai/pandas-ai
1,595
defect
8a0123c7df163638481c57c7f79b999492d84dc9
818eaddb6d502d071f8b65b890fbaf4d2e86c3a0
feat(sandbox): add sandbox support in pai.chat and df.chat
<!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > Add sandbox support to `pai.chat` and `df.chat` for secure code execution, with updated documentation and tests. > > - **Behavior**: > - Add optional `sandbox` parameter to `chat()` in `pandasai/__init__.py` and `pandasai/dataframe/base.py` for secure code execution. ...
diff --git a/README.md b/README.md index e480ea15f..387955a9d 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ You can either decide to use PandaAI in your Jupyter notebooks, Streamlit apps, ## ☁️ Using the platform -The library can be used alongside our powerful data platform, making end-to-end conversati...
2
2
0
[{"id": "G0", "claim": "The chat() docstring in pandasai/__init__.py misspells 'securely' as 'securily' and should read 'securely'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test function name 'test_chat_sanbox_passed_to_agent' misspells ...
null
sinaptik-ai__pandas-ai__1596
sinaptik-ai/pandas-ai
1,596
defect
2455592a6db849fb7d7ce9ed0dec19ce6ede80b8
b98fb7244962a40dc04cf7d2ddfaeb861652a3c3
fix: transpiling sql to specific dialect
- [x] Tests added and passed if fixing a bug or adding a new feature. - [x] All [code checks passed](https://github.com/gventuri/pandas-ai/blob/main/CONTRIBUTING.md#-testing). <!-- ELLIPSIS_HIDDEN --> ---- > [!IMPORTANT] > Add SQL dialect transpilation to data loaders using `SQLParser.transpile_sql_dialect` and upda...
diff --git a/pandasai/data_loader/duck_db_connection_manager.py b/pandasai/data_loader/duck_db_connection_manager.py index 11b466a04..282de2b3a 100644 --- a/pandasai/data_loader/duck_db_connection_manager.py +++ b/pandasai/data_loader/duck_db_connection_manager.py @@ -2,6 +2,8 @@ import duckdb +from pandasai.query...
2
1
1
[{"id": "G0", "claim": "Hardcoding from_dialect=\"mysql\" in DuckDBConnectionManager.sql may be unintended; dialect conversion should be made configurable.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "transpile_sql_dialect should add error handling for...
null
sinaptik-ai__pandas-ai__1603
sinaptik-ai/pandas-ai
1,603
defect
d37a2ca16833628066a60e627fc87b3485f93c71
36c75059bf94ccd150815a9d1993919fbefe1630
feature(GroupBy): adding group by functionality
- [x] Tests added and passed if fixing a bug or adding a new feature. - [x] All [code checks passed](https://github.com/gventuri/pandas-ai/blob/main/CONTRIBUTING.md#-testing). <!-- ELLIPSIS_HIDDEN --> ---- > [!IMPORTANT] > Adds `group_by` functionality to SQL queries, updating schema validation, query builders, and ...
diff --git a/extensions/llms/openai/tests/test_azure_openai.py b/extensions/llms/openai/tests/test_azure_openai.py index 8f2239c8c..5e5c431ca 100644 --- a/extensions/llms/openai/tests/test_azure_openai.py +++ b/extensions/llms/openai/tests/test_azure_openai.py @@ -1,8 +1,8 @@ """Unit tests for the openai LLM class""" ...
1
1
0
[{"id": "G0", "claim": "The group_by field description should document that the validator requires every non-aggregated column to be included in group_by, to avoid confusing users.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sinaptik-ai__pandas-ai__1609
sinaptik-ai/pandas-ai
1,609
defect
b746056067f9e5fdcbfe0efa0ac526ecd16edc2f
e911abcfecd9afcad5fb993a42dc33ddddbdcd91
fix(dataset): slug format validation on load
<!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > Enhances dataset path validation in `load()` by enforcing 'organization/dataset-name' format and updates tests accordingly. > > - **Behavior**: > - `load()` in `pandasai/__init__.py` now uses `get_validated_dataset_path()` for dataset path validation. > - Validate...
diff --git a/pandasai/__init__.py b/pandasai/__init__.py index 58f95bcdb..7aea69953 100644 --- a/pandasai/__init__.py +++ b/pandasai/__init__.py @@ -244,9 +244,11 @@ def load(dataset_path: str) -> DataFrame: Returns: DataFrame: A new PandaAI DataFrame instance with loaded data. """ - path_parts = ...
2
1
0
[{"id": "G0", "claim": "The check for empty org_name/dataset_name after calling get_validated_dataset_path is redundant because that helper already raises on invalid format, so the subsequent if-check should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {...
null
sinaptik-ai__pandas-ai__1614
sinaptik-ai/pandas-ai
1,614
defect
a1b36f4cf47f97adc756a90f27b679a1c112855d
739ffc884449f4292de8c9438f8355969cda97c4
fix(View): fixing aliases in view
- [x] Tests added and passed if fixing a bug or adding a new feature. - [x] All [code checks passed](https://github.com/gventuri/pandas-ai/blob/main/CONTRIBUTING.md#-testing). <!-- ELLIPSIS_HIDDEN --> ---- > [!IMPORTANT] > Fixes alias handling in view query building and adds error handling for missing datasets, with...
diff --git a/pandasai/data_loader/view_loader.py b/pandasai/data_loader/view_loader.py index 4f56c52bf..e659e97ab 100644 --- a/pandasai/data_loader/view_loader.py +++ b/pandasai/data_loader/view_loader.py @@ -48,10 +48,16 @@ def _get_dependencies_datasets(self) -> set[str]: } or {self.schema.columns[0].name.sp...
1
1
0
[{"id": "G0", "claim": "The alias generation logic is duplicated between _get_aliases and _get_columns; consider refactoring to keep the code DRY.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sinaptik-ai__pandas-ai__1625
sinaptik-ai/pandas-ai
1,625
defect
0306d017fc19b47627c4ea577d6984241c84b137
b52c11efa0c6bc740d8dc4b89a3d10fbb89e325c
fix: passing correct dialect and error to llm
- [x] Tests added and passed if fixing a bug or adding a new feature. - [x] All [code checks passed](https://github.com/gventuri/pandas-ai/blob/main/CONTRIBUTING.md#-testing). <!-- ELLIPSIS_HIDDEN --> ---- > [!IMPORTANT] > Fixes SQL dialect determination and error inclusion in prompts for LLM in `pandasai`. > > -...
diff --git a/pandasai/core/prompts/templates/correct_execute_sql_query_usage_error_prompt.tmpl b/pandasai/core/prompts/templates/correct_execute_sql_query_usage_error_prompt.tmpl index 029cf26f2..b232938b1 100644 --- a/pandasai/core/prompts/templates/correct_execute_sql_query_usage_error_prompt.tmpl +++ b/pandasai/core...
1
1
0
[{"id": "G0", "claim": "The dialect-determining logic is redundant: the if-condition already ensures source.type is in LOCAL_SOURCE_TYPES, so the ternary always yields \"duckdb\" — simplify it to `dialect = \"duckdb\"` or adjust the condition to cover distinct dialects.", "category": "maintainability", "verdict": "supp...
null
sinaptik-ai__pandas-ai__1643
sinaptik-ai/pandas-ai
1,643
defect
ae431f816c42463bb76047325c0377e7191e33b9
dffad079b47a451fea7dcd46283666b29200f8ee
fix(chart): fixed path fow Windows
- [x] Closes #1593 and #1618 - [x] Tests added and passed if fixing a bug or adding a new feature. - [x] All [code checks passed](https://github.com/gventuri/pandas-ai/blob/main/CONTRIBUTING.md#-testing). <!-- ELLIPSIS_HIDDEN --> ---- > [!IMPORTANT] > Fixes path handling for chart exports on Windows by using `os.path...
diff --git a/pandasai/constants.py b/pandasai/constants.py index e65293dd0..0cba9c983 100644 --- a/pandasai/constants.py +++ b/pandasai/constants.py @@ -1,12 +1,13 @@ """ Constants used in the pandasai package. """ +import os.path # Default API url DEFAULT_API_URL = "https://api.pandabi.ai" # Default director...
1
1
0
[{"id": "G0", "claim": "The test should use self.assertRegex (or add an error message) instead of a bare `assert re.match` so that failures are clearer.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sinaptik-ai__pandas-ai__1644
sinaptik-ai/pandas-ai
1,644
defect
319747605187d033d569caf3c267c8f6d9428ca3
3862f7e7f99ae1ea26bac7e56044d59f69d09287
feature(paginator): adding paginator functionality
- [x] Tests added and passed if fixing a bug or adding a new feature. - [x] All [code checks passed](https://github.com/gventuri/pandas-ai/blob/main/CONTRIBUTING.md#-testing). <!-- ELLIPSIS_HIDDEN --> ---- > [!IMPORTANT] > Introduces `DatasetPaginator` for SQL query pagination with search, sort, and filter capabilit...
diff --git a/pandasai/helpers/sql_sanitizer.py b/pandasai/helpers/sql_sanitizer.py index 12e7a658d..1787921e9 100644 --- a/pandasai/helpers/sql_sanitizer.py +++ b/pandasai/helpers/sql_sanitizer.py @@ -97,3 +97,26 @@ def is_sql_query_safe(query: str, dialect: str = "postgres") -> bool: except sqlglot.errors.Parse...
4
3
0
[{"id": "G0", "claim": "Add type hints to the is_sql_query function (e.g., query: str -> bool) for improved clarity and consistency.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The UUID search branch casts using '::TEXT' while the corresponding...
null
sinaptik-ai__pandas-ai__1668
sinaptik-ai/pandas-ai
1,668
defect
556e978fe89deda479cb2597906ad2beec8b7773
70fda376fb9ecff0b18afdbd3eab8f90b7855078
fix(core): img path in windows
- [x] Tests added and passed if fixing a bug or adding a new feature. - [x] All [code checks passed](https://github.com/gventuri/pandas-ai/blob/main/CONTRIBUTING.md#-testing).
diff --git a/pandasai/core/code_generation/code_cleaning.py b/pandasai/core/code_generation/code_cleaning.py index 7765d667a..c315dfa51 100644 --- a/pandasai/core/code_generation/code_cleaning.py +++ b/pandasai/core/code_generation/code_cleaning.py @@ -221,6 +221,7 @@ def _replace_output_filenames_with_temp_chart(self,...
1
1
0
[{"id": "G0", "claim": "The new Windows-paths test sets config.save_charts_path to a custom path that the function under test ignores; align the test expectation with the function's behavior or update the function to use the configured path.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "i...
null
sinaptik-ai__pandas-ai__1687
sinaptik-ai/pandas-ai
1,687
defect
140098cf5b6de288102bce8f50096a63e3f8951b
c592c2f9bb8ac2089db34ac5363410012220e29d
fix(error_correction): error correction for code generation
<!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > Adds retry logic for code generation in `Agent` class with tests for error handling and retry attempts. > > - **Behavior**: > - Adds `generate_code_with_retries()` in `Agent` class in `base.py` to retry code generation on failure, up to `max_retries`. > - Modifies...
diff --git a/pandasai/agent/base.py b/pandasai/agent/base.py index d0974defc..3904cd346 100644 --- a/pandasai/agent/base.py +++ b/pandasai/agent/base.py @@ -2,7 +2,6 @@ import warnings from typing import Any, List, Optional, Union -import duckdb import pandas as pd from pandasai.core.code_execution.code_executo...
2
1
0
[{"id": "G0", "claim": "The log message 'Max retries reached. Error: {e}' could be improved for clarity, e.g. to 'Maximum retry attempts exceeded. Last error: {e}'.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "A test should be added in which gen...
null
sinaptik-ai__pandas-ai__1691
sinaptik-ai/pandas-ai
1,691
defect
890fbba9e9ea548828ee947e15553c56ff5246ba
ebd422e40769fa07551e48bdc613133495b0853d
fix(dataframe_serialize): truncate content of dataframe columns
<!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > `DataframeSerializer` now truncates DataFrame text values exceeding 200 characters during serialization, with new tests verifying this behavior. > > - **Behavior**: > - `DataframeSerializer.serialize()` now truncates text values exceeding 200 characters with an ellip...
diff --git a/pandasai/helpers/dataframe_serializer.py b/pandasai/helpers/dataframe_serializer.py index 168764ef3..9031578d1 100644 --- a/pandasai/helpers/dataframe_serializer.py +++ b/pandasai/helpers/dataframe_serializer.py @@ -1,3 +1,4 @@ +import json import typing if typing.TYPE_CHECKING: @@ -5,19 +6,22 @@ ...
2
1
0
[{"id": "G0", "claim": "The serialize docstring should state that only a subset of rows (using df.head()) is serialized.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Unit tests should be added for cells containing JSON-like objects (dicts/lists)...
null
sinaptik-ai__pandas-ai__1703
sinaptik-ai/pandas-ai
1,703
defect
dab41c2caa7f82ad0872c44e8d52068e470d7318
d8d90d1f7ecf684fdffe00e93cb223d7296ebbf2
fix(view_loader): avoid lower casing the column name
<!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > Avoid lowercasing column names in SQL queries by using `quote_identifiers` in `sanitize_view_column_name`. > > - **Behavior**: > - `sanitize_view_column_name` in `sql_sanitizer.py` now uses `quote_identifiers` to avoid lowercasing column names. > - `normalize_view...
diff --git a/pandasai/helpers/sql_sanitizer.py b/pandasai/helpers/sql_sanitizer.py index 83c05b1ef..fe41539ba 100644 --- a/pandasai/helpers/sql_sanitizer.py +++ b/pandasai/helpers/sql_sanitizer.py @@ -2,10 +2,18 @@ import re import sqlglot +from sqlglot import parse_one +from sqlglot.optimizer.qualify_columns impor...
1
1
0
[{"id": "G0", "claim": "Remove the debugging print statement from test_column_name_union_injection.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sinaptik-ai__pandas-ai__1733
sinaptik-ai/pandas-ai
1,733
defect
85b31665e2b6cb6adcf040a7a77f77201b8cfb86
f60b9b3a861c60d3b08dcf4f6db875dbec2107be
serialization of columns added into the definition of the table
- [X] Closes #1714. - [X] Tests added and passed if fixing a bug or adding a new feature. - [X] All [code checks passed](https://github.com/gventuri/pandas-ai/blob/main/CONTRIBUTING.md#-testing). <!-- ELLIPSIS_HIDDEN --> ---- > [!IMPORTANT] > Add column serialization to `DataframeSerializer` and update type annotati...
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 96380b689..dd35bd3f1 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -65,7 +65,25 @@ make spell_fix We use `pytest` to test our code. You can run the tests by running the following command: ```bash -make tests +make test_all +``` + +If you prefer, you can r...
1
1
1
[{"id": "G0", "claim": "Revert the PEP 604 `str | None` annotations back to `Optional[...]` because that syntax does not work on Python 3.9, which the library supports.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
sinaptik-ai__pandas-ai__1760
sinaptik-ai/pandas-ai
1,760
defect
6bf9240aea2fce1bdac86512ba173825ebcf3780
4cb403b76bd0415e4505c412ff4168e1b69a65fe
refactor(bamboollm): remove bamboollm and documentation
<!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > Removes BambooLLM, updates documentation and code to use OpenAI and LiteLLM, and adjusts tests accordingly. > > - **Behavior**: > - Removes BambooLLM as the default LLM, requiring explicit LLM configuration in `agent/base.py` and `agent/state.py`. > - Updates `RE...
diff --git a/README.md b/README.md index 01024769c..f71bfc70e 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,13 @@ poetry add "pandasai>=3.0.0b2" ```python import pandasai as pai +from pandasai_openai.openai import OpenAI + +llm = OpenAI("OPEN_AI_API_KEY") + +pai.config.set({ + "llm": llm +}) # Sample Da...
1
1
0
[{"id": "G0", "claim": "Change 'a LLM' to 'an LLM' in the ValueError message in pandasai/agent/base.py for better clarity.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
sinaptik-ai__pandas-ai__1784
sinaptik-ai/pandas-ai
1,784
defect
b1192130261657e1c8797f89779881ab0d62a9f7
3180cc632f604269815febfbf3d8d2c490cc37fb
fix: last_code_generated retrieval logic in multi-turn conversations
# Fix last_code_generated retrieval logic in multi-turn conversations ## Issue Description In multi-turn conversations, previously generated code was not being correctly passed to new code generation processes, causing a lack of continuity in code generation. This issue affected the user experience when conducting mu...
diff --git a/pandasai/core/code_generation/base.py b/pandasai/core/code_generation/base.py index 29cdac3a6..13489b0fd 100644 --- a/pandasai/core/code_generation/base.py +++ b/pandasai/core/code_generation/base.py @@ -35,7 +35,12 @@ def generate_code(self, prompt: BasePrompt) -> str: self._context.last_code...
1
1
0
[{"id": "G0", "claim": "The new test's comments mix Chinese and English; consider using a consistent language (the suggestion proposes English) to improve clarity and maintainability.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sinaptik-ai__pandas-ai__1812
sinaptik-ai/pandas-ai
1,812
defect
273cf1b85a2cc8cc58236b7cdf4e3fd73bf691f5
c4291e8e43be790adf4f59ee56075e17f72692f7
feat: add sqlserver support
add SQL Server support. - [x] Tests added and passed if fixing a bug or adding a new feature. - [x] All [code checks passed](https://github.com/gventuri/pandas-ai/blob/main/CONTRIBUTING.md#-testing). <!-- ELLIPSIS_HIDDEN --> ---- > [!IMPORTANT] > Adds Microsoft SQL Server support to PandasAI SQL extension...
diff --git a/docs/v3/data-ingestion.mdx b/docs/v3/data-ingestion.mdx index 59b05ba3e..7b2682955 100644 --- a/docs/v3/data-ingestion.mdx +++ b/docs/v3/data-ingestion.mdx @@ -49,7 +49,7 @@ response = df.chat("Which product has the highest sales?") ## How to work with SQL in PandasAI? -PandasAI provides a sql extensi...
1
1
0
[{"id": "G0", "claim": "The TODO comment \"TODO - Later can be removed when SqlAlchemy is to used\" contains a typo and should be revised to \"TODO - Later can be removed when SQLAlchemy is used\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
sinaptik-ai__pandas-ai__469
sinaptik-ai/pandas-ai
469
defect
01858abd871ffae4f6f4fbd01d7ea92d025c5d25
c3ebd67ef3e5e047bbd978b0edc754023e7fa866
fix: recursive error on df last_result property (#468)
- [x] closes #468 - [x] All [code checks passed](https://github.com/gventuri/pandas-ai/blob/main/CONTRIBUTING.md#-testing). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ### Summary by CodeRabbit **Release Notes** - **Bug Fix**: Corrected the condition for setting `last_result` in the ...
diff --git a/pandasai/smart_datalake/__init__.py b/pandasai/smart_datalake/__init__.py index 39d843cdd..a8a001055 100644 --- a/pandasai/smart_datalake/__init__.py +++ b/pandasai/smart_datalake/__init__.py @@ -92,6 +92,8 @@ def __init__( if self._config.enable_cache: self._cache = Cache() + ...
1
1
1
[{"id": "G0", "claim": "`last_result` should not be tracked as a list — the property is meant to hold only the last result, and if the goal were instead to keep all previous results it would have to be renamed.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
sinaptik-ai__pandas-ai__512
sinaptik-ai/pandas-ai
512
defect
5ba7e46f5cb77c4be56187ae3bfdc852ca9e39e2
e4885270e80909ef3879b86b8e758ec7e26b6764
fix: langchain models throw LLMNotFoundError as a consequence of pyda…
…ntic's validator - [x] closes #509 - [x] Tests added and passed if fixing a bug or adding a new feature - [x] All [code checks passed](https://github.com/gventuri/pandas-ai/blob/main/CONTRIBUTING.md#-testing). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ### Summary by CodeRabbit ...
diff --git a/pandasai/config.py b/pandasai/config.py index dd1234d6e..9b3db825f 100644 --- a/pandasai/config.py +++ b/pandasai/config.py @@ -2,6 +2,7 @@ from . import llm, middlewares, callbacks from .helpers.path import find_closest from .schemas.df_config import Config +from .llm import LangchainLLM def load_...
4
1
0
[{"id": "G0", "claim": "load_config should raise a ValueError instead of silently replacing a non-PandasAI llm object with LangchainLLM, as silent replacement could lead to unexpected behavior if the user passes an invalid object.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduc...
null
sinaptik-ai__pandas-ai__514
sinaptik-ai/pandas-ai
514
defect
05e7366326dc940d743ec1bd57a7aa56f53cb031
5af75490acdef5aa55ef3b97863caac3ecee7e45
fix: directory for saving charts issue (#513)
This PR is supposed to be fix for #513. ___ * (fix): update template (remove hardcode of directory) in `GeneratePythonCodePrompt` class * (fix): add passing "save_charts_path" from the config object to `get_prompt()` - [x] Closes #513 - [x] Tests added and passed if fixing a bug or adding a new feature - [x...
diff --git a/pandasai/prompts/generate_python_code.py b/pandasai/prompts/generate_python_code.py index e45e26389..eb165d756 100644 --- a/pandasai/prompts/generate_python_code.py +++ b/pandasai/prompts/generate_python_code.py @@ -51,7 +51,7 @@ class GeneratePythonCodePrompt(Prompt): # Analyze the data # 1. Prepare: Pr...
6
2
0
[{"id": "G0", "claim": "Charts are saved to the custom save_charts_path only when that directory already exists, and otherwise saving fails with FileNotFoundError, because add_save_chart() only processes plt.show() calls and so never injects the directory-creation instruction into the generated code.", "category": "cor...
null
sinaptik-ai__pandas-ai__522
sinaptik-ai/pandas-ai
522
defect
caf2fca6f752e72b7713403e78cc928a122ba2de
e4cf54d977983e740b39b3cf931146ebecf6ed5d
Feat: Validate dataframe with Pydantic schema
- [x] closes #517 (Replace 517 with the GitHub issue number) - [x] Tests added and passed if fixing a bug or adding a new feature - [x] All [code checks passed](https://github.com/gventuri/pandas-ai/blob/main/CONTRIBUTING.md#-testing). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ###...
diff --git a/pandasai/helpers/df_validator.py b/pandasai/helpers/df_validator.py new file mode 100644 index 000000000..ef0fb246b --- /dev/null +++ b/pandasai/helpers/df_validator.py @@ -0,0 +1,85 @@ +from typing import List, Dict +from pydantic import ValidationError +from pydantic import BaseModel +from pandasai.helpe...
8
5
4
[{"id": "G0", "claim": "The validate docstring documents an n_jobs argument that is not in the method signature; update the docstring to match the function signature.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The mutable default argument `err...
null
sinaptik-ai__pandas-ai__633
sinaptik-ai/pandas-ai
633
defect
3813663911872bf099dce4ab3776a350c91bbd51
3d666db05e57fb75ba1efc643c634c4bca77471b
feat: support more palm models
- [x] closes #632 - [x] Tests added and passed if fixing a bug or adding a new feature - [x] All [code checks passed](https://github.com/gventuri/pandas-ai/blob/main/CONTRIBUTING.md#-testing). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ### Summary by CodeRabbit **New Feature** - Ad...
diff --git a/pandasai/llm/google_vertexai.py b/pandasai/llm/google_vertexai.py index 42acc77b6..3f88c3c76 100644 --- a/pandasai/llm/google_vertexai.py +++ b/pandasai/llm/google_vertexai.py @@ -12,6 +12,7 @@ """ from typing import Optional from .base import BaseGoogle +from ..exceptions import UnsupportedOpenAIModelE...
2
2
0
[{"id": "G0", "claim": "The exception raised for an unsupported model should be generalized - e.g. renamed to UnsupportedModelError - or a plain ValueError would suffice.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The unsupported-model exception shou...
null
sinaptik-ai__pandas-ai__634
sinaptik-ai/pandas-ai
634
defect
3813663911872bf099dce4ab3776a350c91bbd51
1aacb7fd032606855633b7e85a8df50669cce9fc
chore: Improve unsupported model exceptions
- [x] closes #632 - [x] Tests added and passed if fixing a bug or adding a new feature - [x] All [code checks passed](https://github.com/gventuri/pandas-ai/blob/main/CONTRIBUTING.md#-testing). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ### Summary by CodeRabbit **Refactor:** - Re...
diff --git a/pandasai/exceptions.py b/pandasai/exceptions.py index c63fb94f0..aa2b33b62 100644 --- a/pandasai/exceptions.py +++ b/pandasai/exceptions.py @@ -42,14 +42,21 @@ class MethodNotImplementedError(Exception): """ -class UnsupportedOpenAIModelError(Exception): +class UnsupportedModelError(Exception): ...
3
1
1
[{"id": "G0", "claim": "The UnsupportedModelError raised for Google Vertex models should include a more informative message, e.g. the list of supported models (suggested f\"Unsupported model: {self.model}. Supported models are: {...}\").", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introd...
null
sinaptik-ai__pandas-ai__836
sinaptik-ai/pandas-ai
836
defect
5b2d0efe5f7d04fd3245d6d2644b8c09af4c9779
ee70d0ce60ce536745c49fa5bd8caba8f2dc1566
feat(skill): redesign skills and fix code exec env bug
Hi @gventuri, this PR aims at making `Skill` a proper, pythonic type while supporting a (proper) decorator. This new implementation requires (purposely) the function to have a docstring when decorated with `@skill`. In addition, one can create a skill as follows ```py skill = Skill.from_function(func=some_func, de...
diff --git a/pandasai/agent/__init__.py b/pandasai/agent/__init__.py index 7fb6e538e..035cd8bd7 100644 --- a/pandasai/agent/__init__.py +++ b/pandasai/agent/__init__.py @@ -1,7 +1,6 @@ import json from typing import Union, List, Optional -from pandasai.skills import skill from ..helpers.df_info import DataFrameTyp...
5
2
1
[{"id": "G0", "claim": "The `if not self.func` check in `Skill.__call__` is redundant because `func` is a required attribute and cannot be None, so it should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In `Skill.from_function`, as...
null
sindresorhus__electron-serve__13
sindresorhus/electron-serve
13
defect
2b970ec4b03aa1ac3b1072c600e98023634228ad
fd08607b8a17a93c5b6d8093c2caa7c68062799e
Respond with error if file/directory is not found
closes #3
diff --git a/index.js b/index.js index b0cc969..90c8f43 100644 --- a/index.js +++ b/index.js @@ -33,12 +33,15 @@ module.exports = options => { options.directory = path.resolve(electron.app.getAppPath(), options.directory); const handler = async (request, callback) => { - const indexPath = path.join(options.direc...
3
3
2
[{"id": "G0", "claim": "The -6 error code should be moved out of the callback call into a variable with a descriptive name.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request's behaviour of responding with an error for not-found fil...
null
sindresorhus__electron-serve__36
sindresorhus/electron-serve
36
defect
296843105fc7533e9fa9cbd73c9c34974da4e13c
7c295387ec23e232387716a989e3c867793c3b26
Support loading an HTML file with a custom name
As discussed in https://github.com/sindresorhus/electron-serve/issues/33, this makes it possible to load a file that isn't called `index.html`, which could be useful if you're serving more than one file. I put this together for my own use but figured it may be useful for others. Feel free to make any changes!
diff --git a/index.js b/index.js index bb5037c..fcea526 100644 --- a/index.js +++ b/index.js @@ -9,7 +9,7 @@ const stat = promisify(fs.stat); // See https://cs.chromium.org/chromium/src/net/base/net_error_list.h const FILE_NOT_FOUND = -6; -const getPath = async path_ => { +const getPath = async (path_, route) => { ...
4
2
1
[{"id": "G0", "claim": "The option name `route` is not the best choice, since `route` is more commonly used for a whole route rather than just the HTML file name part of it.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The type definitions in index.d.t...
null
sindresorhus__electron-serve__37
sindresorhus/electron-serve
37
defect
296843105fc7533e9fa9cbd73c9c34974da4e13c
b363d55dfe824b2822220dd522ea8c81e461c775
Support query params
In working on https://github.com/sindresorhus/electron-serve/pull/36, I also wanted the ability to pass in query parameters to different files. I added an example in the README since I didn't see any explicit documentation for the arguments for the returned function. Again, feel free to make any fixes or adjustment...
diff --git a/index.js b/index.js index bb5037c..caf1af5 100644 --- a/index.js +++ b/index.js @@ -72,7 +72,8 @@ module.exports = options => { session.protocol.registerFileProtocol(options.scheme, handler); }); - return async window_ => { - await window_.loadURL(`${options.scheme}://${options.hostname}`); + retur...
4
4
2
[{"id": "G0", "claim": "Passing the query as a raw string is not safe; the function should accept a searchParams object that is passed to new URLSearchParams, and the change is also missing docs, types, and a test.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1...
null
sindresorhus__eslint-plugin-unicorn__1011
sindresorhus/eslint-plugin-unicorn
1,011
defect
5a91b56167aaa939c8838c25f0dcc87e6a473195
6508690717a4f445bdb67dbd319149092d5232fc
100% code coverage
Fixes #1003, 100% code coverage
diff --git a/rules/prefer-query-selector.js b/rules/prefer-query-selector.js index 61cfb047bd..c6d05cf38e 100644 --- a/rules/prefer-query-selector.js +++ b/rules/prefer-query-selector.js @@ -106,9 +106,6 @@ const create = context => { [selector](node) { const method = node.callee.property.name; const prefere...
1
1
0
[{"id": "G0", "claim": "The variable `preferedSelector` is misspelled and should be renamed to `preferredSelector`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
sindresorhus__eslint-plugin-unicorn__1031
sindresorhus/eslint-plugin-unicorn
1,031
defect
2203ed26e23e8e8446ee71e17488481a34887232
8a38d080dea786cbe50f6077558d6143e7e2e655
`better-regexp`: bump `regexp-tree` dependency
Fixes #994
diff --git a/package.json b/package.json index 06aeb850d3..b7bc3e5cda 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "lodash": "^4.17.20", "pluralize": "^8.0.0", "read-pkg-up": "^7.0.1", - "regexp-tree": "^0.1.21", + "regexp-tree": "^0.1.22", "reserved-words": "^0.1.2", "safe-regex": "^...
2
2
1
[{"id": "G0", "claim": "Add the test from issue #994 covering the optimizer behaviour the regexp-tree bump is meant to fix, which the pull request leaves untested.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "Also add a test case for '/\\s{0,2}/'.", "...
null
sindresorhus__eslint-plugin-unicorn__1048
sindresorhus/eslint-plugin-unicorn
1,048
defect
a091842e689b169d1cc90641c73536b1a6fc827f
a5a35333fcf09fd3062ed9268e024cfcfc12a051
Refactor: remove `eslint-ast-utils` package
We only used a few lines from it, and the complicated `computeStaticExpression` on can be replaced by `getStaticValue` from `eslint-utils`.
diff --git a/package.json b/package.json index 5abd14a322..ed786e2729 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,6 @@ "dependencies": { "ci-info": "^2.0.0", "clean-regexp": "^1.0.0", - "eslint-ast-utils": "^1.1.0", "eslint-template-visitor": "^2.2.2", "eslint-utils": "^2.1.0", "import-m...
1
1
0
[{"id": "G0", "claim": "The inline `getPropertyName` helper in rules/prefer-reflect-apply.js should live in `utils` instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sindresorhus__eslint-plugin-unicorn__111
sindresorhus/eslint-plugin-unicorn
111
defect
9629b9184f4e421cae135f7a013d2df0f92d615f
643bbdba316334a9e0e7c1178ec9dc875ce7cec5
Add `new-for-builtins` rule - fixes #105
This PR introduces the `new-for-builtins` rule discussed in #105. I'm just wondering if the name covers the rule entirely, because it also disallows `new` for 4 builtins. Feedback welcome!
diff --git a/docs/rules/new-for-builtins.md b/docs/rules/new-for-builtins.md new file mode 100644 index 0000000000..cf426f4b10 --- /dev/null +++ b/docs/rules/new-for-builtins.md @@ -0,0 +1,70 @@ +# Enforce the use of `new` for all builtins + +They work the same, but `new` should be preferred for consistency with other ...
6
6
1
[{"id": "G0", "claim": "The `new-regexp` rule is covered by the new rule and should be removed, ideally in this PR.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Add a note to the docs explaining why `String`, `Number` and `Boolean` are an exception, ...
null
sindresorhus__eslint-plugin-unicorn__140
sindresorhus/eslint-plugin-unicorn
140
defect
6a9b550f08461b35c99a465dc7c42420c90eb089
5930287f41a729af7f2e3a57d917932c96b2e241
Add `error-message` rule
Fixes #128
diff --git a/docs/rules/error-message.md b/docs/rules/error-message.md new file mode 100644 index 0000000000..ddc489f4d5 --- /dev/null +++ b/docs/rules/error-message.md @@ -0,0 +1,43 @@ +# Enforce passing a `message` value when throwing an error + +This rule enforce a `message` value to be passed in when throwing an in...
11
10
1
[{"id": "G0", "claim": "Move the readme rule-list entry to the bottom of the list and end the sentence with a dot.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Move the customError regex out of rules/error-message.js into a shared utils.js file ...
null
sindresorhus__eslint-plugin-unicorn__1512
sindresorhus/eslint-plugin-unicorn
1,512
defect
b958745b01d720e487154d5094c480b04b169024
81eab3e78a6f2bfe6bd3fc7a2cef46da91185cf0
Add `all`config
Fixes #1510
diff --git a/configs/all.js b/configs/all.js new file mode 100644 index 0000000000..7be4c2065a --- /dev/null +++ b/configs/all.js @@ -0,0 +1,17 @@ +'use strict'; +const eslintRecommended = require('./eslint-recommended.js'); + +module.exports = { + ...require('./base.js'), + rules: { + ...Object.fromEntries( + Objec...
4
4
1
[{"id": "G0", "claim": "The variable holding the recommended config should be named `recommendedConfig` instead of `recommended`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `configs` directory must be added to the `files` list in package...
null
sindresorhus__eslint-plugin-unicorn__191
sindresorhus/eslint-plugin-unicorn
191
defect
f96dd97c873c803f0525ff0c279fc59ec565e409
a29111f55e9ecb1c6f65414307aa1f519f42f85f
Add `no-console-spaces` rule
A few questions: 1. I chose to use [`.trim()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/trim) to apply the fix. This removes _all_ whitespace -- including `\t` and `\n`. In theory we could expose a setting to chose what values to remove but then we'd probably want to up...
diff --git a/docs/rules/no-console-spaces.md b/docs/rules/no-console-spaces.md new file mode 100644 index 0000000000..93a83236e5 --- /dev/null +++ b/docs/rules/no-console-spaces.md @@ -0,0 +1,33 @@ +# Do not include spaces in `console.log` parameters. + +[`console.log`](https://developer.mozilla.org/en-US/docs/Web/API/...
8
7
4
[{"id": "G0", "claim": "The rule should remove only exactly one space before and/or after an argument, should not interfere when newlines are involved, and should only handle single-line template literals.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim...
null
sindresorhus__eslint-plugin-unicorn__199
sindresorhus/eslint-plugin-unicorn
199
defect
b44534b132b5ec32fff2e90dccddeca80b236bd8
77c729644227067762bdd5c0d88d2a2f4578f56f
Add `no-unreadable-array-destructuring` rule
At the moment the rule disallows more than one ignored value in series. However I can tune this, I can allow to ignore at most one value at the beginning if you find current behaviour too mild. Fixes #197
diff --git a/docs/rules/no-unreadable-array-destructuring.md b/docs/rules/no-unreadable-array-destructuring.md new file mode 100644 index 0000000000..df0f0f2ec8 --- /dev/null +++ b/docs/rules/no-unreadable-array-destructuring.md @@ -0,0 +1,20 @@ +# Disallow unreadable array destructuring + +Destructuring is very useful...
10
8
0
[{"id": "G0", "claim": "The helper name `isCommaFollwedWithComma` has a typo and should be `isCommaFollowedWithComma`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The condition should be written as `array[index + 1] === null` instead of `arra...
null
sindresorhus__eslint-plugin-unicorn__221
sindresorhus/eslint-plugin-unicorn
221
defect
f141a4c325c6947b404f531c2d005fa27a0b9239
d884e048590935685a86342a5ec4ab05129d6a4f
Add `no-for-loop` rule
fixes #49
diff --git a/docs/rules/no-for-loop.md b/docs/rules/no-for-loop.md new file mode 100644 index 0000000000..f6f2a8e9d5 --- /dev/null +++ b/docs/rules/no-for-loop.md @@ -0,0 +1,27 @@ +# Do not use for loop that can be replaced with a for-of loop + +There's no reason to use old school for loops anymore for the common case....
6
6
1
[{"id": "G0", "claim": "The rule throws an error on a for loop with an empty statement body (`for (let index = 0; index < array.length; index++);`) because `body` is not defined for an `EmptyStatement`; that case should be handled.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introdu...
null
sindresorhus__eslint-plugin-unicorn__223
sindresorhus/eslint-plugin-unicorn
223
defect
e403caf1d2687b19e2b7e6baf3d971498e9e4305
4ef5ec232e7a7fb13f8afe4aa4087c5658ea2984
Add `prefer-text-content` rule
Resolves #156.
diff --git a/docs/rules/prefer-textcontent.md b/docs/rules/prefer-textcontent.md new file mode 100644 index 0000000000..185db299d8 --- /dev/null +++ b/docs/rules/prefer-textcontent.md @@ -0,0 +1,22 @@ +# Prefer `textContent` over `innerText` + +Enforces the use of `node.textContent` over `node.innerText` for DOM nodes....
4
3
1
[{"id": "G0", "claim": "The rule could use astUtils.getPropertyName(node) instead of the hand-rolled property checks, while also fixing node[\"innerText\"] into node.textContent.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add the valid test ca...
null
sindresorhus__eslint-plugin-unicorn__225
sindresorhus/eslint-plugin-unicorn
225
defect
e403caf1d2687b19e2b7e6baf3d971498e9e4305
014d5f2628ceb18d69cc764a2955055e601d7aff
Add `prefer-dataset` rule
Fix #166
diff --git a/docs/rules/prefer-dataset.md b/docs/rules/prefer-dataset.md new file mode 100644 index 0000000000..771bf3da62 --- /dev/null +++ b/docs/rules/prefer-dataset.md @@ -0,0 +1,13 @@ +# Prefer the .dataset property on DOM elements over using setAttribute + +## Fail + +```js +element.setAttribute('data-unicorn', '...
4
3
2
[{"id": "G0", "claim": "Bracket-notation calls like element[setAttribute]('data-unicorn', '🦄') will break the check, so the rule must ignore bracket notation and tests should be added for that case.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Mo...
null
sindresorhus__eslint-plugin-unicorn__2532
sindresorhus/eslint-plugin-unicorn
2,532
defect
14fd808042b35e0b860058d013c5c362edf8a155
7a877dfeaf3950bc5b429a5cdf43e3162b55c8c9
Add `eslint-plugin-jsdoc` to validate jsdoc comment
From: https://github.com/sindresorhus/eslint-plugin-unicorn/pull/2527#discussion_r1920997616
diff --git a/eslint.dogfooding.config.js b/eslint.dogfooding.config.js index a9dad441a5..a0563e3582 100644 --- a/eslint.dogfooding.config.js +++ b/eslint.dogfooding.config.js @@ -2,7 +2,7 @@ /* ! If you're making a new rule, you can ignore this before review. */ - +import jsdoc from 'eslint-plugin-jsdoc'; import es...
1
1
1
[{"id": "G0", "claim": "The jsdoc plugin configuration should be added to eslint.config.js, not to eslint.dogfooding.config.js.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
sindresorhus__eslint-plugin-unicorn__2619
sindresorhus/eslint-plugin-unicorn
2,619
defect
48c54d963c43e0c0b3e2d166fc6db97f70a91b27
92fbb2f7093a4fc50ea561ba892a52ad47193990
Replace `read-package-up` with `find-up-simple`
Fixes #2151 ~~I decided to use [`lukeed/empathic`](https://github.com/lukeed/empathic) over `find-up` due to it being smaller, simpler, and dependency free.~~ Changed to `find-up-simple` as I missed the comment mentioning it. I also extracted the similar logic into a shared utility (I wasn't sure whether to put ...
diff --git a/package.json b/package.json index dad4678197..50961f293a 100644 --- a/package.json +++ b/package.json @@ -64,12 +64,12 @@ "clean-regexp": "^1.0.0", "core-js-compat": "^3.41.0", "esquery": "^1.6.0", + "find-up-simple": "^1.0.1", "globals": "^16.0.0", "indent-string": "^5.0.0", "is-builtin...
3
2
1
[{"id": "G0", "claim": "Accessing packageJsonResult.packageJson may throw a TypeError when no package.json is found, because readPackageJson returns undefined in that case.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "readPackageJson should cache ...
null
sindresorhus__eslint-plugin-unicorn__2701
sindresorhus/eslint-plugin-unicorn
2,701
defect
2dc27d90c79a3ad97345e547c08482fd06ca455b
ea09c9ec8cdda7bfca5919b06a0f872e602c0548
Add `isolated-functions` rule
Fixes https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2214 From docs: --- # Prevent usage of variables from outside the scope of isolated functions 💼 This rule is enabled in the ✅ `recommended` [config](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config). <!-- end auto...
diff --git a/docs/rules/isolated-functions.md b/docs/rules/isolated-functions.md new file mode 100644 index 0000000000..20d1d5af0a --- /dev/null +++ b/docs/rules/isolated-functions.md @@ -0,0 +1,232 @@ +# Prevent usage of variables from outside the scope of isolated functions + +💼 This rule is enabled in the ✅ `recomm...
13
10
3
[{"id": "G0", "claim": "The allowed-globals lookup should use a `Set` instead of an array with `.includes()`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The docs examples should follow the new style that groups fail and pass examples closer ...
null
sindresorhus__eslint-plugin-unicorn__2748
sindresorhus/eslint-plugin-unicorn
2,748
defect
e5a7f54746b40355993833599736ec97936f3ab9
0221d7bbfcbd85a6e16f5c683ba5461515a4f522
Fix inconsistent behavior in `consistent-function-scoping` rule
Resolves #931 ## Problem The `consistent-function-scoping` rule had inconsistent behavior where arrow functions assigned to variables were flagged, but arrow functions returned from function declarations were not. **Before:** ```js // Flagged ✓ export const someAction = () => (dispatch) => dispatch({ type: 'TYPE' })...
diff --git a/docs/rules/consistent-function-scoping.md b/docs/rules/consistent-function-scoping.md index 71f3837912..faadde6b1a 100644 --- a/docs/rules/consistent-function-scoping.md +++ b/docs/rules/consistent-function-scoping.md @@ -24,6 +24,11 @@ function doFoo(foo) { return bar === 'bar'; }; } + +function doF...
1
1
0
[{"id": "G0", "claim": "The handleNestedArrowFunctions function has complex nested logic with two similar while loops and multiple conditional checks, and should be broken into smaller helper functions or simplified to improve readability and maintainability.", "category": "maintainability", "verdict": "supported", "pr...
null
sindresorhus__eslint-plugin-unicorn__2822
sindresorhus/eslint-plugin-unicorn
2,822
defect
609d4870f3731d39bd5b5f184628e2cf06578dba
4b6340834f94ebb53a1aee5b91dd5c0e103249b3
fix: `isolated-functions`: allow typescript types
On trying it out I noticed I got errors for typescript types, which there's no value in.
diff --git a/rules/isolated-functions.js b/rules/isolated-functions.js index 4f38c53e8c..db8a41c258 100644 --- a/rules/isolated-functions.js +++ b/rules/isolated-functions.js @@ -53,6 +53,11 @@ const create = context => { // `through`: "The array of references which could not be resolved in this scope" https://eslin...
1
1
0
[{"id": "G0", "claim": "The optional chaining in identifier?.parent?.type is unnecessary since identifier can't be nullish and its parent should always exist, so the ?. operators should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sindresorhus__eslint-plugin-unicorn__2862
sindresorhus/eslint-plugin-unicorn
2,862
defect
9c58d1c2622b42312e6474754240d8bc991f3b43
7c28cf001a216440c2e2f4a7c5e0ddde755b3ea4
`no-array-sort`: Ignore `.sort()` calls with non-function arguments
Fixes #2744
diff --git a/rules/shared/no-array-mutate-rule.js b/rules/shared/no-array-mutate-rule.js index 2a34533d1b..116636f029 100644 --- a/rules/shared/no-array-mutate-rule.js +++ b/rules/shared/no-array-mutate-rule.js @@ -6,6 +6,21 @@ const MESSAGE_ID_SUGGESTION_APPLY_REPLACEMENT = 'suggestion-apply-replacement'; const MESSA...
1
1
0
[{"id": "G0", "claim": "Maybe the rule's new inline type-checking (`nonFunctionTypes`/`isNonFunctionNode`) can be replaced by reusing the existing `isNodeValueNotFunction` helper.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sindresorhus__eslint-plugin-unicorn__287
sindresorhus/eslint-plugin-unicorn
287
defect
6bccd4176f5552d5e2ec785a2dae0835b4a8cd4d
645a582f35f45d98ba30afd1b0c7b85df418977b
Fix `prefer-includes` fixer omitting parentheses
fixes #278 Since the `memberExpressionNode.object` does not includes the parens, I work around by accessing the text before "dot".
diff --git a/rules/prefer-includes.js b/rules/prefer-includes.js index 994cb6bbb8..e674a63f7a 100644 --- a/rules/prefer-includes.js +++ b/rules/prefer-includes.js @@ -12,13 +12,12 @@ const isIndexOf = node => { const isNegativeOne = (operator, value) => operator === '-' && value === 1; -const getSourceCode = (cont...
1
1
1
[{"id": "G0", "claim": "`start` is not compatible with the TypeScript parser, so the fixer should slice using `memberExpressionNode.range[0]` and `dotToken.range[0]` instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
sindresorhus__eslint-plugin-unicorn__2877
sindresorhus/eslint-plugin-unicorn
2,877
defect
2c4b3ddad929b14906cdab4dd86f0afa106639ed
fd63e371a22470c658924bed906f9cc5980739b1
`prefer-array-flat`: Don’t report on obvious non-array receivers
Fixes #2660
diff --git a/rules/prefer-array-flat.js b/rules/prefer-array-flat.js index 0a72742bff..59f3ef3ec8 100644 --- a/rules/prefer-array-flat.js +++ b/rules/prefer-array-flat.js @@ -1,3 +1,4 @@ +import {findVariable} from '@eslint-community/eslint-utils'; import { getParenthesizedText, isArrayPrototypeProperty, @@ -38,6 ...
2
2
1
[{"id": "G0", "claim": "The `shouldIgnoreCase` logic can be merged into `testFunction` instead of being a separate case key checked in the CallExpression loop.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A test should be added covering the `VariableDe...
null
sindresorhus__eslint-plugin-unicorn__2878
sindresorhus/eslint-plugin-unicorn
2,878
defect
04db394be88a3cda536de87f951bef13f8103f06
dfd108f7b3a2b30a74b14e9f5771c33a9aa89140
`prefer-object-from-entries`: Avoid auto-fixing generic reduce
Fixes #2519
diff --git a/rules/prefer-object-from-entries.js b/rules/prefer-object-from-entries.js index c41d5f0089..cad61789c6 100644 --- a/rules/prefer-object-from-entries.js +++ b/rules/prefer-object-from-entries.js @@ -186,15 +186,20 @@ function create(context) { continue; } - yield { + const problem = { no...
1
1
0
[{"id": "G0", "claim": "The guard should not treat `callExpression.typeParameters` as a generic marker, because current versions of typescript-eslint do not generate that property.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sindresorhus__eslint-plugin-unicorn__2893
sindresorhus/eslint-plugin-unicorn
2,893
defect
317e08493bf850327b84cb9cbf349dcca96d13c4
e7f3b22349768e3b86ebacddc1d9432970cb047d
`consistent-destructuring`: Fix false positive after reassignment
Fixes #1407
diff --git a/rules/consistent-destructuring.js b/rules/consistent-destructuring.js index 4d26036188..3a144a9e82 100644 --- a/rules/consistent-destructuring.js +++ b/rules/consistent-destructuring.js @@ -1,3 +1,4 @@ +import {findVariable} from '@eslint-community/eslint-utils'; import {getAvailableVariableName, isLeftHa...
1
1
1
[{"id": "G0", "claim": "The isRootVariableReassigned check is incorrect because the reassignment code can be anywhere that has access to the variable (e.g. inside a hoisted function called before the member read), so the rule can still report a read as safe and suggest an unsafe replacement.", "category": "correctness"...
null
sindresorhus__eslint-plugin-unicorn__294
sindresorhus/eslint-plugin-unicorn
294
defect
2a630e1f3242d4dc1bb654635f89fc06f1453d68
5e690eaed4954c30462d1bb36d658acbebf85092
Apply `escape-case` to regex literal and remove transformation of `\c` escape on string literal
This PR addresses issue and feature request in #273. I've made separate commit on this. Although the owner suggested using https://github.com/mysticatea/regexpp, I decide not to use it for performance considerations -- There would be many regular expression in a mature codebase and we can not afford the extra regula...
diff --git a/package.json b/package.json index 3fbef8225e..4e6db8f8d8 100644 --- a/package.json +++ b/package.json @@ -40,6 +40,7 @@ "lodash.snakecase": "^4.0.1", "lodash.topairs": "^4.3.0", "lodash.upperfirst": "^4.2.0", + "regexpp": "^2.0.1", "reserved-words": "^0.1.2", "safe-regex": "^2.0.1" }, dif...
4
3
0
[{"id": "G0", "claim": "The performance argument for not using regexpp is unconvincing, so the PR should parse regex literals with regexpp (or first confirm the approach is actually slow), since correctness and maintainability may outweigh speed for a linter.", "category": "design", "verdict": "supported", "priority": ...
null
sindresorhus__eslint-plugin-unicorn__296
sindresorhus/eslint-plugin-unicorn
296
defect
43a6e9ae8b38d0429e53e6b5b0d2be952b39cecb
c9f4592c06eaaf0cbddc210119d35e2e7c73f8fe
Add `no-nested-ternary` rule
Fixes #50 Extends the existing eslint rule but allows one-level nesting if it's wrapped in parens Notes: - Wasn't sure what the best name should be. - First time writing an eslint rule, so let me know if it needs edits - Tested it against most of the examples in the issue and it seemed to work Not sure abou...
diff --git a/docs/rules/no-nested-ternary.md b/docs/rules/no-nested-ternary.md new file mode 100644 index 0000000000..d2604d4d8d --- /dev/null +++ b/docs/rules/no-nested-ternary.md @@ -0,0 +1,20 @@ +# Disallow nested ternary expressions + +Nesting ternary expressions can make code more difficult to understand. + +One l...
7
7
0
[{"id": "G0", "claim": "Use `const` instead of `var` in the code examples in the rule's documentation.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The documentation needs to mention that this rule is an improved version of the built-in ESLint `...
null
sindresorhus__eslint-plugin-unicorn__362
sindresorhus/eslint-plugin-unicorn
362
defect
8ff4d9125a1d5c21ae8515cdf6190dc50d892678
8dc3de2833b669831f3df358a3a7c0543215f669
Add `prefer-modern-dom-apis` rule
Fixes #344. The rule can be tested in this gist here: https://astexplorer.net/#/gist/338d492213d95b40122046fb29abd1bc/bb5030be4689f651524402efad8d24d2b310d588 The links in the description for `prepend()` and `append()` from MDN are returning 404 by the way, they should be updated. <!-- Issuehunt content --> ...
diff --git a/docs/rules/prefer-modern-dom-apis.md b/docs/rules/prefer-modern-dom-apis.md new file mode 100644 index 0000000000..202f65ef4d --- /dev/null +++ b/docs/rules/prefer-modern-dom-apis.md @@ -0,0 +1,52 @@ +# Prefer modern DOM APIs + +Enforces the use of: + +- `childNode.replaceWith(newNode);` over `parentNode.r...
14
13
2
[{"id": "G0", "claim": "The pull request should not include unrelated auto-formatted styling changes to readme.md, such as the markdown heading reformatting, and they should be undone.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The getArgume...
null
sindresorhus__eslint-plugin-unicorn__411
sindresorhus/eslint-plugin-unicorn
411
defect
c3326d218ee11bd32e0cf167774641749fe70d6b
3512b168af2a1256bd1d7befdb765dcbf77fd4ab
Improve `prefer-includes` rule
1. Ignore `indexOf` more than 2 arguments 2. Ignore `_.indexOf`, fixes #410 3. keep `Array/String.indexOf` method second argument [`fromIndex`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf#Parameters) 4. strip `fromIndex` that is literal `0`
diff --git a/rules/prefer-includes.js b/rules/prefer-includes.js index c7c49b943a..9617fec276 100644 --- a/rules/prefer-includes.js +++ b/rules/prefer-includes.js @@ -4,19 +4,25 @@ const isMethodNamed = require('./utils/is-method-named'); const isNegativeOne = (operator, value) => operator === '-' && value === 1; ...
5
4
2
[{"id": "G0", "claim": "Also ignore `lodash.indexOf` and `underscore.indexOf` calls, not just `_.indexOf`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The ignore of `lodash`/`underscore` was committed without covering tests.", "category": "testin...
null
sindresorhus__eslint-plugin-unicorn__421
sindresorhus/eslint-plugin-unicorn
421
defect
dbf4b7996a1aba6deef51916a5435092c130b34e
a972f5b6ba6405519bb04185ab8ea0424a38a42b
Add `ignoreImports` option to `import-index` rule
closes https://github.com/sindresorhus/eslint-plugin-unicorn/issues/307 <!-- Issuehunt content --> --- <details> <summary> <b>IssueHunt Summary</b> </summary> ### Referenced issues This pull request has been submitted to: - [#307: import-index: Option to ignore import/export statements](https://issuehunt.io/repos...
diff --git a/docs/rules/import-index.md b/docs/rules/import-index.md index 66341e6896..8b1bb55a15 100644 --- a/docs/rules/import-index.md +++ b/docs/rules/import-index.md @@ -61,3 +61,16 @@ const m = require('@foo/bar'); ```js import m from '.'; ``` + + +### `ignoreImports` + +The default behavior is to check for im...
2
2
1
[{"id": "G0", "claim": "The `ignoreImports` schema property may need a default value.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The tests for the `ignoreImports` option may be meant to test `require('./index')`, i.e. that case should be covered.", "...
null
sindresorhus__eslint-plugin-unicorn__424
sindresorhus/eslint-plugin-unicorn
424
defect
dbf4b7996a1aba6deef51916a5435092c130b34e
d7651b47172be7ddcd190c1fb23867fd4af5d4fe
Extend fixers for `prefer-string-slice`
Currently barely any `substr()` or `substring()` calls can be automatically fixed. This PR makes pretty much all `substring()` calls fixable and makes many `substr()` fixable.
diff --git a/rules/prefer-string-slice.js b/rules/prefer-string-slice.js index 1157a6e75d..c173386afa 100644 --- a/rules/prefer-string-slice.js +++ b/rules/prefer-string-slice.js @@ -10,6 +10,22 @@ const argumentsVariable = templates.spreadVariable(); const substrCallTemplate = templates.template`${objectVariable}.sub...
12
5
2
[{"id": "G0", "claim": "The `slice` value can be built as an array and concatenated with `.slice(` and `)` instead of assembled as a string.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Some `NaN` tests should be added for the new auto-fixer."...
null
sindresorhus__eslint-plugin-unicorn__435
sindresorhus/eslint-plugin-unicorn
435
defect
4d5f5cb681250e7dbafa32c5c2e95737e80b7233
116040c5ce3a82255abf35d61e4d9311c5f93b08
Support pre-release versions in `expiring-todo-comments` rule
Fixes #432 Refactor tryToCoerceVersion Don't coerce valid semver tags on expiring-todo-comments. I'm not sure **where** to test this. Should I export (`exports.tryToCoerceVersion`) the function and test along with the rule itself (test/expiring-todo-comments.js)? @sindresorhus any idea?
diff --git a/package.json b/package.json index cb63973eb0..4901326b02 100644 --- a/package.json +++ b/package.json @@ -50,6 +50,7 @@ "semver": "^6.3.0" }, "devDependencies": { + "@lubien/fixture-beta-package": "^1.0.0-beta.1", "ava": "^2.4.0", "babel-eslint": "^10.0.3", "chalk": "^2.4.2", diff --git a/...
4
2
0
[{"id": "G0", "claim": "Update the docs to explicitly show that pre-release versions are supported.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Test pre-release support with a published fixture package (a pre-release version added as a dev depe...
null
sindresorhus__eslint-plugin-unicorn__444
sindresorhus/eslint-plugin-unicorn
444
defect
3554c179709292365b826e333ed240287b215131
b89c318725074d3ce1d778f6696246237f7eac86
Fix `prevent-abbreviations` fixer bug
fixes: #443 and fixes #330 I've located the problem, in `isShorthandPropertyIdentifier` check function, In `babel-eslint` parent.key is not reference of identifier, add a extra check to make it pass
diff --git a/rules/prevent-abbreviations.js b/rules/prevent-abbreviations.js index 8c4e43123b..d616f23c68 100644 --- a/rules/prevent-abbreviations.js +++ b/rules/prevent-abbreviations.js @@ -366,8 +366,17 @@ const shouldFix = variable => { const isShorthandPropertyIdentifier = identifier => { return identifier.par...
4
4
1
[{"id": "G0", "claim": "The other functions in this file that compare `parent.key === identifier` may also require the same modification to handle the babel-eslint case.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "An issue about this should be ...
null