Commit Graph
2109 Commits
Author SHA1 Message Date
Rohit c1c234eccc Merge branch 'develop' into feat/1107-sdk-settings 2026-08-24 15:45:09 +05:30
Karishma Shukla b8f5c431ae Merge pull request #1176 from mbajji/feat/sdk-targeted-list-limits
Feat/sdk targeted list limits (list-limits part of issue #1107)
2026-08-24 15:02:29 +05:30
hmhngx f133ac4073 fix(workflowEnricher): resolve 2 new CodeRabbit findings on PR #1189
Reject non-positive/fractional limit values in getLLMDecisionWithVision's
Anthropic branch, matching the positive-safe-integer rule already enforced
in parseSearchIntent. Validate and sanitize generateFieldLabelsBatch's
Anthropic-branch label mapping before returning it: reject non-string,
blank, and __proto__/constructor/prototype values, since callers use each
value as an object key downstream (renamedFields[semanticLabel] = ...).
2026-08-19 23:13:03 +07:00
hmhngx 7dcf761fae fix(workflowEnricher): bump multi-site classification maxTokens 20 -> 80
Requested by maintainer review on PR #1189. The forced tool_choice call in
isMultiSitePrompt's Anthropic branch left too little headroom at 20 tokens,
risking truncation before the tool_use block completes.
2026-08-19 23:03:02 +07:00
hmhngx 8943fc8b9c fix(workflowEnricher): resolve 3 new CodeRabbit findings on PR #1189
Reject __proto__/constructor/prototype field names and use a null-prototype
target in filterFieldsByIntent's Anthropic branch to prevent prototype
pollution from untrusted tool output. Add explicit type validation for
first/second/reason/limit in getLLMDecisionWithVision's Anthropic branch,
since input_schema isn't runtime-enforced without strict mode. Reject
non-positive and non-safe-integer limit values in both parseSearchIntent
validation blocks (Anthropic branch and shared ollama/openai tail).
2026-08-19 23:03:02 +07:00
hmhngx c8db638344 fix(workflowEnricher): resolve 3 CodeRabbit findings on PR #1189
All 3 verified against current code and the actual failure modes before
fixing, not applied blindly from the bot's suggestion text.

1. getLLMDecisionWithVision: the Anthropic image block declared
   media_type: 'image/png' while the screenshot is captured as JPEG
   (page.screenshot({ type: 'jpeg' })). This is the exact mismatch already
   disclosed (by me) in the PR's "Note to Reviewers" before CodeRabbit
   caught it independently, confirmed against Anthropic's own docs that a
   media_type mismatch can 400 before the forced tool call ever runs.
   Fixed to 'image/jpeg'. The identical bug also exists in the untouched
   openai branch's `data:image/png;base64,...` URL - left as-is and
   flagged, not silently fixed, since that branch is explicitly out of
   this PR's scope.

2. parseSearchIntent: the validation `!intent.searchQuery ||
   !intent.extractionGoal` is a truthiness check, not a type check. Since
   callAnthropicWithTool returns raw tool_use.input with no strict-mode
   validation, a non-string value (e.g. an object) passes this guard, and
   downstream `encodeURIComponent(query)` (workflowEnricher.ts, both
   performDuckDuckGoSearch and performDuckDuckGoMultiSearch) silently
   turns it into the literal string "[object Object]" as a search query.
   Verified this exact call chain before fixing. Replaced with a guard
   that requires searchQuery/extractionGoal to be non-blank strings and
   limit (when present) to be an integer. Applied to both the anthropic
   branch's copy of this check AND the shared ollama/openai JSON-parsing
   branch's identical copy, per CodeRabbit's own comment text ("Apply the
   same validation to the JSON parsing branch") - not my own scope
   expansion, the finding explicitly asked for both.

3. selectMultipleUrlsFromResults: the per-index collection loop had no
   cap on `result.length`, so a tool response returning more valid,
   unique-domain indices than the caller's `maxSites`/`cap` would collect
   all of them instead of stopping at cap - e.g. 5 valid indices with
   cap=4 would produce 5 downstream workflows instead of 4. Added
   `if (result.length >= cap) break;` at the top of the loop, matching
   CodeRabbit's exact suggested diff. This identical bug also exists,
   unchanged, in the original shared-tail copy of this same loop (which
   predates this PR and serves ollama/openai) - CodeRabbit's finding did
   not ask for that copy to be fixed too, so it's flagged, not touched.

Verified: full project tsc --noEmit clean. A targeted test reproduced each
finding's exact described failure mode against the pre-fix code path
conceptually and confirmed the fix resolves it: searchQuery as an object,
as an array, as an empty/whitespace string, limit as a fraction, and limit
as a numeric string are all now correctly rejected (falling back to the
existing regex heuristic, not silently proceeding); valid inputs including
an omitted limit still succeed unchanged; 5 valid unique-domain indices
against cap=4 now correctly returns exactly 4, and a below-cap selection
is unaffected. Re-ran the full 9-site fallback regression afterward to
confirm the shared-code changes (finding #2) didn't affect any of the
other 8 sites.
2026-08-19 23:03:02 +07:00
hmhngx cc06f35e93 chore(workflowEnricher): remove dead Anthropic default import
All 9 anthropic branches now go through callAnthropicWithTool; the raw
`new Anthropic(...)` client construction that used to happen per-call-site
is gone as of the site #9 migration (372ded1d). The top-level
`import Anthropic from '@anthropic-ai/sdk'` had zero remaining references
- confirmed via `grep -n '\bAnthropic\b'` before removing it.
2026-08-19 23:03:01 +07:00
hmhngx 1b8845d6f5 refactor(workflowEnricher): force tool_choice for multi-URL selection
Migrates the anthropic branch of selectMultipleUrlsFromResults (site #9 of
9, issue #1178) off regex fence-stripping + JSON.parse onto
callAnthropicWithTool with a forced select_multiple_urls tool. This is the
last of the 9 call sites - the migration is now complete.

- Appends selectMultipleUrlsTool to server/src/sdk/anthropicTools.ts.
  required: ['selectedIndices'] matches the sibling Ollama jsonSchema
  exactly (reasoning stays optional, same precedent).
- Typed as callAnthropicWithTool<any>, same rationale as sites #3/#7/#8:
  `!Array.isArray(decision.selectedIndices)` is a structural/existence
  check that a precise array type would risk making look dead.
- This site has the most fallback-triggering paths of the 9: a local
  `fallback()` closure (declared outside the try block, using `searchResults`
  and `cap` from the enclosing scope) is called INLINE in three places, not
  via throw - (1) the pre-try `cap <= 1` short-circuit, untouched, (2) when
  selectedIndices is missing/empty, (3) when the per-index filtering loop
  (type/range check + domain dedup via `new Set<string>()`) leaves fewer
  than 2 results. Only the fourth path - an actual thrown error - routes
  through the existing outer catch. Ported the filtering loop and both
  inline fallback() calls verbatim, reusing the original `seen`/`result`
  variable names in the nested block scope (matching every prior site's
  convention - an earlier draft of this commit accidentally renamed them
  to seenAnthropic/resultAnthropic to "avoid a collision" that block
  scoping already prevents; reverted before this landed, for consistency
  with sites #2/#3/#5/#6/#7's identical reuse of decision/labelMapping/etc.
  in their own nested blocks).
- Preserves max_tokens 256 and temperature 0.1 exactly as before.

Verified: full project tsc --noEmit clean (including confirming the
reused seen/result names don't collide with the shared tail's own
same-named declarations, exactly as precedent predicted). Mocked runtime
check (ts-node) covered 8 scenarios: the cap<=1 short-circuit correctly
never invokes the helper at all (asserted zero calls); a valid 3-index
selection returns entries in the right order with the mocked reasoning;
a selection including a duplicate-domain index correctly dedupes (keeps
the first occurrence, drops the later one); a non-array selectedIndices
correctly triggers the inline fallback() (not a throw); an empty array
does the same; an array of entirely out-of-range/wrong-type indices
filters down to zero results and correctly falls back; a single
valid-but-lone result also falls back (the >= 2 threshold); and an
outright helper throw is caught by the pre-existing catch and falls back
identically.

This completes the tool_choice migration for all 9 Anthropic call sites in
workflowEnricher.ts. `new Anthropic(` now has zero remaining call sites in
this file - the top-level `import Anthropic from '@anthropic-ai/sdk'` is
consequently dead code. Deliberately NOT removed in this commit to keep it
scoped to site #9 only, matching every prior commit's scope discipline;
flagging as an explicit, obvious follow-up rather than silently leaving it
dangling or silently sneaking an unrelated cleanup into this diff.
2026-08-19 23:02:37 +07:00
hmhngx 627e0a11b3 refactor(workflowEnricher): force tool_choice for multi-site classification
Migrates the anthropic branch of isMultiSitePrompt (site #8 of 9, issue
with a forced classify_multi_site_prompt tool.

- Appends classifyMultiSitePromptTool to server/src/sdk/anthropicTools.ts.
  required: ['multiSite'] matches the sibling Ollama jsonSchema exactly.
- This site has a distinctive 3-way control flow with NO hard throw:
  1. Valid boolean multiSite -> logs `isMultiSitePrompt: <value>`, returns
     it directly.
  2. Response received but multiSite missing/wrong type -> SILENTLY
     returns false (no log at all - the original only logs on this path
     via nothing, since there's no explicit branch for it, it just falls
     through). Reproduced this exact silence rather than adding a log line
     that wasn't there before.
  3. Helper throws -> propagates to the function's EXISTING outer catch
     (unchanged), which logs the exact original warning message and falls
     through to the EXISTING final `return false` (unchanged).
- Did NOT simplify this to `return decision.multiSite` - a malformed,
  non-boolean multiSite (e.g. the string "true") would then be returned as
  a truthy-but-wrong value instead of correctly degrading to false. Kept
  the `typeof decision.multiSite === 'boolean'` guard verbatim.
- The anthropic branch now always returns from within its own block
  (either the boolean or the inline `return false`), so it never falls
  through to the shared regex/JSON.parse tail - verified this doesn't
  break TypeScript's definite-assignment analysis for the still-shared
  `llmResponse` variable used by ollama/openai.
- max_tokens 20 and temperature 0 preserved unchanged (this call already
  asked for JSON-shaped text, like site #8's sibling isMultiSitePrompt
  itself - no budget bump needed here, unlike site #4's free-text case).

Verified: full project tsc --noEmit clean. Mocked runtime check (ts-node)
covered 5 scenarios, with logger.info/logger.warn also monkey-patched to
assert directly on which log lines fire (not just the return value):
multiSite: true logs and returns true; multiSite: false ALSO logs (info
line fires for both booleans) and returns false; an empty decision object
returns false with ZERO log calls, matching the original's silence for
this specific case; multiSite as a non-boolean string ("true") is
correctly rejected by the typeof guard and also returns false silently -
confirming a truthy-coercion bug isn't hiding here; and a thrown helper
error is caught by the pre-existing catch, logs the exact original warning
text, and returns false via the pre-existing fallthrough.
2026-08-19 23:02:37 +07:00
hmhngx ea825d162a refactor(workflowEnricher): force tool_choice for best-URL selection
Migrates the anthropic branch of selectBestUrlFromResults (site #7 of 9,
issue #1178) off regex fence-stripping + JSON.parse onto callAnthropicWithTool
with a forced select_best_url tool.

- Appends selectBestUrlTool to server/src/sdk/anthropicTools.ts.
  required: ['selectedIndex', 'confidence', 'reasoning'] matches the
  sibling Ollama jsonSchema exactly - no precedent divergence here.
- Typed as callAnthropicWithTool<any>, not a precise type - unlike site
  #6's pure truthiness checks, this site's hard-throw explicitly compares
  `decision.selectedIndex === undefined`. An explicit undefined comparison
  is an existence/structural check (same category as site #3's
  Array.isArray), not a plain truthy check, so a `number` type annotation
  here would risk making the check read as dead code to a future
  maintainer even though it is not actually enforced at runtime.
- Anthropic branch returns directly; this function's shared tail does
  JSON.parse, so early-return is correct (matching sites #1/#3/#5/#6).
- The length===1 short-circuit before the try block, and the catch
  block's searchResults[0]-based fallback (confidence 0.6, fixed
  reasoning string), are both untouched.
- Preserves max_tokens 256 and temperature 0.1 exactly as before.

Verified: full project tsc --noEmit clean. Mocked runtime check (ts-node)
covered 8 scenarios, most importantly: confirmed the length===1
short-circuit never invokes the helper at all (asserted zero calls), and
confirmed selectedIndex: 0 - a value a careless truthy-check refactor could
easily misread as "missing" - is correctly honored as a valid index rather
than triggering the invalid-index fallback. Also covered undefined,
negative, and out-of-bounds selectedIndex all correctly throwing
internally and falling back to the first search result with the exact
fixed confidence/reasoning, a valid index with confidence/reasoning
omitted correctly using the `||` defaults (0.5 / 'No reasoning provided'),
and an outright helper throw falling back identically.
2026-08-19 23:02:37 +07:00
hmhngx 7b7e868f54 refactor(workflowEnricher): force tool_choice for search intent parsing
Migrates the anthropic branch of parseSearchIntent (site #6 of 9, issue
with a forced parse_search_intent tool.

- Appends parseSearchIntentTool to server/src/sdk/anthropicTools.ts.
  required: ['searchQuery', 'extractionGoal'] only, matching the sibling
  Ollama jsonSchema exactly - limit stays optional since the call site
  treats an absent key and an explicit null identically.
- Typed with a precise generic ({searchQuery: string; extractionGoal:
  string; limit: number | null}), not <any> - unlike sites #2/#3/#5, this
  site's hard-throw check (`!intent.searchQuery || !intent.extractionGoal`)
  is a value/truthiness check, not a structural one. A `string` type
  annotation doesn't make a truthy-check on a possibly-empty string look
  redundant the way it would for e.g. an Array.isArray check, so the
  precise type doesn't undermine anything here (same reasoning as site #1).
- Anthropic branch returns directly; this function's shared tail does
  JSON.parse, so early-return is correct here (matching sites #1/#3/#5).
- The catch block's REGEX-BASED heuristic fallback (extracting a search
  query via /from\s+([^,\.]+)/i and a limit via /(\d+)/ straight from the
  raw prompt) is untouched - this is the only one of the 9 sites whose
  fallback isn't a static constant or identity mapping.
- Preserves max_tokens 256 and temperature 0.1 exactly as before.

Verified: full project tsc --noEmit clean. Mocked runtime check (ts-node)
covered 6 scenarios: valid full response, a null limit passed through
correctly, an empty searchQuery correctly throwing internally and falling
back to the regex heuristic (confirmed it extracts the right search term
AND the right numeric limit from the raw prompt, and that the fallback's
extractionGoal is the full raw prompt - not the mock's rejected value), an
empty extractionGoal taking the same throw-and-fallback path, a prompt with
no "from X" clause correctly degrading the heuristic's searchQuery to the
first 50 characters, and an outright helper throw falling back identically.
2026-08-19 23:02:37 +07:00
hmhngx 68f496576f refactor(workflowEnricher): force tool_choice for extraction verification
Migrates the anthropic branch of verifyWorkflowOutput (site #5 of 9, issue
with a forced verify_extraction_match tool.

- Appends verifyExtractionMatchTool to server/src/sdk/anthropicTools.ts.
  required: ['matches'] only, matching the sibling Ollama jsonSchema
  exactly (this was corrected during blueprint review from an earlier
  draft that over-required confidence/reasoning too - reverted to match
  the only real precedent and the call site's own soft-default handling).
- Typed as callAnthropicWithTool<any>, same rationale as sites #2/#3: the
  call site treats matches/confidence/reasoning as optional-with-defaults
  via typeof guards (`typeof decision.matches === 'boolean' ? ... : true`,
  etc.), not hard requirements. A narrower type would make those guards
  look redundant when they are not actually enforced at runtime.
- Anthropic branch returns directly (this function's shared tail does
  JSON.parse, same as sites #1/#3, so early-return is correct here -
  unlike site #4's fall-through, which was correct there because that
  tail is pure string processing with no JSON.parse).
- Preserves the exact defensive extraction and its logger.info result line
  verbatim, just reading from `decision` instead of `parsed`.
- Preserves max_tokens 256 and temperature 0.1 exactly as before.

Verified: full project tsc --noEmit clean. Mocked runtime check (ts-node)
covered 6 scenarios, most importantly distinguishing the two different
failure modes this function has: a decision that resolves successfully but
is empty/malformed (`{}`) takes the SUCCESS path and produces
reasoning: '' via the field-level typeof defaults, while a thrown error
from the helper takes the CATCH path and produces the pre-declared
fallback constant's distinct reasoning: 'Verification skipped (LLM
unavailable)' - confirmed these remain genuinely different code paths
producing different values, not collapsed into one. Also verified matches
defaulting to true on wrong-type input, confidence defaulting to 0.5 on
wrong-type input, and that each default is independent (a bad `matches`
doesn't affect a valid `confidence` in the same response, and vice versa).
2026-08-19 23:02:37 +07:00
hmhngx bce8f736cc refactor(workflowEnricher): force tool_choice for list naming
Migrates the anthropic branch of generateListName (site #4 of 9, issue
set_list_name tool.

- Appends setListNameTool to server/src/sdk/anthropicTools.ts.
- This is the only one of the 9 sites converting a free-text completion
  (not a JSON-shaped one) into a structured tool call - the prompt
  previously asked for bare text like "Product Listings", not JSON.
- Unlike sites #1-3, this branch does NOT early-return: the shared tail
  here is pure string post-processing (quote-strip, first-line-only,
  length validation, Title-Case) with no JSON.parse, so it works
  identically whether it receives raw text (ollama/openai) or
  decision.listName (anthropic). Assigning `llmResponse = decision.listName`
  and falling through to the unchanged shared tail is the smaller, more
  faithful port than duplicating that logic inline would have been.
- max_tokens bumped 20 -> 80 for the anthropic branch only (ollama/openai
  untouched). The prior budget was sized for bare-text output with zero
  JSON overhead; a {"listName": "..."} tool call needs headroom on top of
  a name that can legally run up to 50 chars per the existing validation.
  Left uncorrected, this would risk stop_reason: max_tokens truncation on
  longer names, converting what worked before into a guaranteed "List 1"
  fallback for exactly the names most likely to need one.
- temperature 0.1 preserved as before.

Verified: full project tsc --noEmit clean. Mocked runtime check (ts-node)
covered 7 scenarios: clean valid name, quote-wrapped name correctly
stripped, multi-line response correctly truncated to its first line, an
empty name correctly throws internally and falls back to "List 1" via the
EXISTING (llmResponse || '').trim() guard - unchanged, no new guard code
needed - an undefined listName field degrades through that same existing
guard identically, an oversized (>50 char) name correctly throws and falls
back, and a thrown helper error (e.g. simulated truncation) falls back
identically. Also asserted opts.maxTokens === 80 specifically, to catch
any regression of the budget bump.
2026-08-19 23:02:37 +07:00
hmhngx cda5a21641 refactor(workflowEnricher): force tool_choice for field intent filtering
Migrates the anthropic branch of filterFieldsByIntent (site #3 of 9,
issue #1178) off regex fence-stripping + JSON.parse onto callAnthropicWithTool
with a forced filter_fields_by_intent tool.

- Appends filterFieldsByIntentTool to server/src/sdk/anthropicTools.ts.
  required: ['selectedFields','confidence','reasoning'] matches the sibling
  Ollama jsonSchema exactly - no precedent divergence here.
- Typed as callAnthropicWithTool<any>, same rationale as site #2: this
  function has HARD throws on invalid shape (`!Array.isArray(selectedFields)`,
  confidence type/range check) that are load-bearing for the fallback
  mechanism. A narrower generic type would let TypeScript claim those
  checks are unreachable when they are not actually guaranteed at runtime
  (non-strict tool, no server-side validation). Ported both throws and the
  unknown-field-name warn-and-skip loop verbatim, reading from `decision`
  instead of `filterResult`.
- Anthropic branch returns directly; shared regex/JSON.parse tail untouched,
  still serves ollama/openai.
- Preserves max_tokens 1024 and temperature 0.1 exactly as before.

Verified: full project tsc --noEmit clean. Mocked runtime check (ts-node)
covered 7 scenarios: valid high-confidence success, valid low-confidence
(needsUserConfirmation flips true), non-array selectedFields correctly
throws and falls back to the full labeledFields object, out-of-range
confidence correctly throws and falls back, wrong-type confidence correctly
throws and falls back, an unknown field name in selectedFields is warned
and silently dropped rather than crashing, and an outright helper throw
falls back identically. Also asserted the exact opts reaching the helper.
2026-08-19 23:02:37 +07:00
hmhngx 3d79daaf54 refactor(workflowEnricher): force tool_choice for field label assignment
Migrates the anthropic branch of generateFieldLabelsBatch (site #2 of 9,
issue #1178) off regex fence-stripping + JSON.parse onto callAnthropicWithTool
with a forced assign_field_labels tool.

- Appends assignFieldLabelsTool to server/src/sdk/anthropicTools.ts.
- Typed as callAnthropicWithTool<any>, deliberately - the original code's
  defensive `if (parsedResponse.fieldLabels) {...} else { labelMapping =
  parsedResponse }` fallback exists precisely because the response shape
  isn't guaranteed even under the tool's required schema (non-strict tool,
  no server-side validation). Typing this call more narrowly would let
  TypeScript claim decision.fieldLabels is always defined when it isn't,
  silently defeating the exact check it's supposed to preserve. Ported that
  defensive block and the missingLabels identity-fill logic verbatim, just
  reading from `decision` instead of `parsedResponse`.
- Anthropic branch now returns directly, same early-return pattern as site
  #1; the shared regex/JSON.parse tail is untouched and still serves
  ollama/openai unchanged.
- Preserves max_tokens 2048 and temperature 0.1 exactly as before.

Verified: full project tsc --noEmit clean. Mocked runtime check (ts-node,
monkey-patched callAnthropicWithTool) covered three scenarios: wrapped
{fieldLabels:{...}} success, a flat (unwrapped) success shape to prove the
defensive else-branch genuinely still fires and the missingLabels fill-in
still runs on top of it, and a thrown error correctly falling back to full
identity-mapping via generateFieldLabelsBatch's own catch. Also asserted
the exact opts reaching the helper (tool identity, model, maxTokens,
temperature, apiKey, plain-string userMessage, non-empty system prompt).
2026-08-19 23:02:37 +07:00
hmhngx 9f62359457 refactor(workflowEnricher): force tool_choice for group candidate selection
Migrates the anthropic branch of getLLMDecisionWithVision (site #1 of 9,
issue #1178) off regex fence-stripping + JSON.parse onto callAnthropicWithTool
with a forced select_group_candidates tool.

- Adds server/src/sdk/anthropicTools.ts with selectGroupCandidatesTool -
  first of the 9 tool definitions, will grow with each subsequent site.
- The anthropic branch now returns directly from inside the if/else chain
  once its decision is built, instead of falling through to the shared
  regex/JSON.parse tail that ollama and openai still use unchanged.
- Preserves the vision content shape exactly (image block + text block,
  still carrying the pre-existing jpeg-captured/media_type:'image/png'
  mismatch at screenshot capture - not touched, out of scope for this PR).
- Preserves the missing `temperature` param (this was the one call site of
  the 9 that never sent it) and the existing claude-3-5-sonnet-20241022
  default (stale/retired model ID - also out of scope, filed separately).
- fallbackHeuristicDecision is unchanged and still triggered by the same
  outer catch on any thrown error from the new call.

Verified: full project tsc --noEmit clean; a mocked runtime check (ts-node,
monkey-patched callAnthropicWithTool) confirmed the helper receives the
exact expected tool/model/maxTokens/apiKey/userMessage array and no
temperature field, that a successful decision flows correctly through
parseGroupCandidates/buildDecisionFromCandidates, and that a thrown error
still correctly falls back to the existing fallbackHeuristicDecision.
2026-08-19 23:02:36 +07:00
hmhngx df8ee8b465 feat(sdk): add callAnthropicWithTool helper for forced tool_choice
Introduces a typed helper for calling Anthropic with tool_choice forced to
a single named tool, returning tool_use.input directly instead of parsing
JSON out of a free-form text completion. Foundational piece for migrating
the 9 Anthropic call sites in workflowEnricher.ts off regex/JSON.parse
(#1178). Not wired into any call site yet - this commit only adds the
helper.

None of the tools this helper is designed for use strict: true, so
tool_use.input is never validated server-side against the schema; call
sites must keep their own field-level checks (throw / typeof guard /
inline fallback) on the returned value.

tool_choice sets disable_parallel_tool_use: true so the forced tool cannot
be invoked more than once per turn.
2026-08-19 23:02:03 +07:00
Karishma Shukla 7bb10cf083 Merge pull request #1191 from RohitR311/llm-url-fix
fix: llm api key url validation
2026-08-18 20:35:13 +05:30
Maheswari Bajji acb6a94274 fix null bug from code-rabbit 2026-08-17 14:40:03 -07:00
reemal786 0e94809503 refactor SDK to use shared robot update helpers 2026-08-17 16:02:52 -04:00
Maheswari Bajji 7f93001969 support targeted list-limit updates 2026-08-17 15:18:22 -04:00
reemal786 d58a3d7cbf refactor shared robot update helpers 2026-08-17 14:40:33 -04:00
Rohit Rajan 8fb1905154 fix: address coderabbit reviews 2026-08-18 00:00:16 +05:30
Rohit Rajan 5d8f972261 fix: add socket auth 2026-08-17 23:51:14 +05:30
Rohit Rajan b6e8da7296 fix: llm api key url validation 2026-08-17 23:22:48 +05:30
Maheswari Bajji 0c07a717ba support targeted list-limit updates 2026-08-15 11:29:14 -07:00
Rohit Rajan 502c54bb69 fix: address coderabbit reviews 2026-08-14 22:45:12 +05:30
Rohit Rajan 4d2b697b36 fix: validate all webhook urls 2026-08-14 22:31:30 +05:30
Karishma Shukla 6020552b49 Merge pull request #1186 from audreydng/fix/scheduled-run-state-transition
Fix schedule run state transition
2026-08-14 17:04:03 +05:30
Thao Dang 3f8c585d6f fix schedule run state transition 2026-08-13 13:19:11 -05:00
Karishma Shukla 11741658d3 Merge pull request #1177 from audreydng/fix/proxy-test
fix: Proxy Test endpoint reports success even when configured proxy is invalid
2026-08-13 02:56:20 +05:30
Patheit 5159c0baaf Merge remote-tracking branch 'upstream/develop' into sync-upstream-develop
# Conflicts:
#	server/src/api/sdk.ts
#	server/src/routes/storage.ts
#	server/src/utils/document/createDocumentParseRobotRecord.ts
2026-08-08 21:07:39 -07:00
Rohit Rajan afb841b28e fix: add summary format field doc 2026-08-07 23:44:43 +05:30
Patheit d00f6a4f48 Merge remote-tracking branch 'upstream/develop' into develop
# Conflicts:
#	server/src/routes/storage.ts
#	server/src/utils/document/createDocumentParseRobotRecord.ts
#	server/src/utils/document/executeDocumentParseRun.ts
#	server/src/workflow-management/classes/DocumentInterpreter.ts
2026-08-06 10:41:11 -07:00
Thao Dang 1221f4a026 fix: prevent proxy test success on HTTP error responses 2026-08-04 14:24:28 -05:00
Thao Dang 736c5eda96 fix: proxy test 2026-08-04 13:18:08 -05:00
Rohit Rajan 9262631d7b fix: null byte corruption 2026-08-03 17:29:45 +05:30
Rohit d91ecf0a54 Merge branch 'develop' into llm-fixes 2026-08-03 16:59:42 +05:30
Karishma Shukla fb4c6b5b0e Merge pull request #1149 from RRRG3/feat/doc-parse-summary
feat: add summary output format to document parsing (#1106)
2026-08-03 16:49:44 +05:30
Karishma Shukla c5e849eac2 Merge pull request #1157 from getmaxun/llm-process
fix: enhance document llm post processing
2026-08-03 16:34:59 +05:30
Karishma Shukla 650bcad7b4 Merge pull request #1162 from audreydng/fix/serialize-navigation-rrweb-race
Fix: Server and client crash when multiple recordings are discarded in rapid succession
2026-08-03 16:34:49 +05:30
Rohit 3555e74f34 Merge branch 'develop' into llm-process 2026-08-03 16:32:44 +05:30
Rohit Rajan 54606d38c0 fix: revert multi-auth routes 2026-08-03 13:59:59 +05:30
Rohit Rajan 53ac553ccf fix: follow file naming convention 2026-07-31 14:13:53 +05:30
Rohit Rajan 062dcfc9fc fix: validate llm config at robot creation, centralize model defaults 2026-07-31 14:05:19 +05:30
Karishma Shukla b8900dc5b3 Merge pull request #1150 from vinaypokharkar/feature/api-schedule-robot
Add API routes to schedule robot runs
2026-07-30 14:27:51 +05:30
Vinaywho 1be4861cb3 fix(schedule): correct weekly/monthly cron generation and enforce time window
- MONTHS: drop the appended day-of-week field that produced a 6-field cron
  (node-cron reads 6-field crons seconds-first, shifting the schedule)
- MONTHS: validate dayOfMonth (1-31) and emit the parsed integer
- MINUTES/HOURS: constrain the schedule to the atTimeStart/atTimeEnd window
  instead of ignoring atTimeEnd; require end after start, and an hour-spanning
  window for hourly intervals
- WEEKS: reject runEvery > 1 since cron cannot express multi-week intervals
2026-07-30 01:25:22 +05:30
Thao Dang 2814e0d1b0 Scope navigation coordination per page 2026-07-29 14:25:39 -05:00
Thao Dang 96915d1f8e Move duplicate detection inside the serialized task 2026-07-29 14:22:43 -05:00
Thao Dang 64819f2113 Treat rrweb already recording as idempotent 2026-07-29 13:27:25 -05:00