mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-08-24 23:32:19 +10:00
feat(agent): adopt AI SDK v7 — crash safety, context pruning, HITL approvals (#3362)
* docs(adr): propose agent AI SDK v7 adoption plan * fix(ai): bind analyzeResume through aiService in service test The test destructured analyzeResume as a named export that does not exist; main was red. * test(agent): keep pure ai helpers real via spread-actual mock factory * feat(agent): add run guards, patch version guard, run wall-clock timeout * feat(agent): validate UI messages at the send boundary * feat(agent): crash-safe draft-row persistence and server-side cancellation * feat(agent): reap stale run claims at boot, on send, and on thread open * feat(agent): fresh-document patch output and tiered context pruning * feat(ai): shared agent tool contracts and message metadata schema * feat(agent): add per-thread review-patches setting with update endpoint * feat(agent): gate resume patches behind hmac-signed tool approval * feat(agent): merge question answers and approval decisions before run claim * feat(agent): approval ui with composed auto-send and fixture-driven tests * feat(agent): usage metadata, tool activity cards, smoother streaming * feat(agent): tool-call repair, input examples, structured step logging * chore(i18n): translate new agent workspace strings across all locales * fix(agent): gate stale-run draft cancellation on winning the claim clear Snapshot streaming drafts before the conditional clear and skip the flip entirely when another reaper or a replacement run already cleared the claim. Also address review nits in eleven locale catalogs. * fix(agent): flip reaped drafts only when their snapshotted state is unchanged * fix(agent): address review findings across run lifecycle, context budget, and approval flow - bind patches to the revision the model read via signed baseUpdatedAt - claim the run before consuming a continuation; recorded-but-unexecuted approvals retry as pending continuations - keep run ownership on stop() until cancellation persists; preserve the claim for the reaper when final persistence fails - estimate tokens without serializing binary attachments (tokenx) and enforce the budget by dropping oldest whole turns - mark crash-recovered patch results as snapshot boundaries; strip /data prefixes at execution time - retry failed continuations without regenerate; mount a single AgentChat; disable response controls on read-only threads; freeze review toggle during runs (client+server) - accumulate usage across continuations and match the SDK's nested usage shape; label-form token strings; reorderable source label; accessible note field; state-neutral web-search label * chore(i18n): translate revised agent strings across all locales * fix(agent): harden baseUpdatedAt validation and address review follow-ups - bundle tokenx in the server runtime dependencies (e2e boot failure) - strict ISO schema for baseUpdatedAt plus loud executor rejection of unparseable values - it-IT source label consistency (Fonte) - prove penultimate-turn retention in the context pruning test * chore(deps): exempt tokenx from knip for the externalized server bundle
This commit is contained in:
+103
-2
@@ -538,6 +538,14 @@ msgstr "Applied"
|
||||
msgid "Applied on"
|
||||
msgstr "Applied on"
|
||||
|
||||
#: src/routes/agent/-components/patch-approval-card.tsx
|
||||
msgid "Approve"
|
||||
msgstr "Approve"
|
||||
|
||||
#: src/routes/agent/-components/patch-approval-card.tsx
|
||||
msgid "Approved — waiting for the agent…"
|
||||
msgstr "Approved — waiting for the agent…"
|
||||
|
||||
#: src/libs/locale.ts
|
||||
msgid "Arabic"
|
||||
msgstr "Arabic"
|
||||
@@ -1457,6 +1465,14 @@ msgstr "Deleting your API key..."
|
||||
msgid "Deleting your resume..."
|
||||
msgstr "Deleting your resume..."
|
||||
|
||||
#: src/routes/agent/-components/patch-approval-card.tsx
|
||||
msgid "Denied — waiting for the agent…"
|
||||
msgstr "Denied — waiting for the agent…"
|
||||
|
||||
#: src/routes/agent/-components/patch-approval-card.tsx
|
||||
msgid "Deny"
|
||||
msgstr "Deny"
|
||||
|
||||
#: src/libs/resume/ats.ts
|
||||
msgid "Describe what you did so the entry contributes keywords for matching."
|
||||
msgstr "Describe what you did so the entry contributes keywords for matching."
|
||||
@@ -1525,6 +1541,10 @@ msgstr "Donate"
|
||||
msgid "Donate to Reactive Resume"
|
||||
msgstr "Donate to Reactive Resume"
|
||||
|
||||
#: src/routes/agent/-components/tool-part-card.tsx
|
||||
msgid "Done"
|
||||
msgstr "Done"
|
||||
|
||||
#. Action button to download two-factor backup codes as a text file
|
||||
#. Primary action in the builder header to open resume download options
|
||||
#: src/dialogs/auth/enable-two-factor.tsx
|
||||
@@ -1637,6 +1657,10 @@ msgstr "Edit content in fullscreen mode"
|
||||
msgid "Edit date"
|
||||
msgstr "Edit date"
|
||||
|
||||
#: src/routes/agent/-components/patch-approval-card.tsx
|
||||
msgid "Edit declined"
|
||||
msgstr "Edit declined"
|
||||
|
||||
#. Resume card context menu action to edit resume metadata
|
||||
#. Resume card dropdown action to edit resume metadata
|
||||
#: src/routes/builder/$resumeId/-components/header.tsx
|
||||
@@ -1832,6 +1856,10 @@ msgstr "Export your resume to PDF instantly, without any waiting or delays."
|
||||
msgid "Exported pipeline-flow.png"
|
||||
msgstr "Exported pipeline-flow.png"
|
||||
|
||||
#: src/routes/agent/-components/tool-part-card.tsx
|
||||
msgid "Failed"
|
||||
msgstr "Failed"
|
||||
|
||||
#: src/routes/builder/$resumeId/-sidebar/right/sections/resume-analysis.tsx
|
||||
msgid "Failed to analyze resume."
|
||||
msgstr "Failed to analyze resume."
|
||||
@@ -1962,6 +1990,10 @@ msgstr "Failed to unlink provider. Please try again."
|
||||
msgid "Failed to update provider."
|
||||
msgstr "Failed to update provider."
|
||||
|
||||
#: src/routes/agent/-components/agent-chat.tsx
|
||||
msgid "Failed to update thread settings."
|
||||
msgstr "Failed to update thread settings."
|
||||
|
||||
#. Fallback toast when changing account password fails
|
||||
#: src/dialogs/auth/change-password.tsx
|
||||
msgid "Failed to update your password. Please try again."
|
||||
@@ -3148,6 +3180,14 @@ msgstr "OpenRouter"
|
||||
msgid "opens in new tab"
|
||||
msgstr "opens in new tab"
|
||||
|
||||
#: src/routes/agent/-components/patch-approval-card.tsx
|
||||
msgid "Optional note for the agent"
|
||||
msgstr "Optional note for the agent"
|
||||
|
||||
#: src/routes/agent/-components/patch-approval-card.tsx
|
||||
msgid "Optional note for the agent…"
|
||||
msgstr "Optional note for the agent…"
|
||||
|
||||
#: src/routes/builder/$resumeId/-sidebar/right/sections/sharing.tsx
|
||||
msgid "Optionally, set a password so that only people with the password can view your resume through the link."
|
||||
msgstr "Optionally, set a password so that only people with the password can view your resume through the link."
|
||||
@@ -3494,6 +3534,10 @@ msgstr "Publications"
|
||||
msgid "Publisher"
|
||||
msgstr "Publisher"
|
||||
|
||||
#: src/routes/agent/-components/agent-chat.tsx
|
||||
msgid "Raw JSON"
|
||||
msgstr "Raw JSON"
|
||||
|
||||
#: src/features/applications/components/application-ai-copilot.tsx
|
||||
msgid "Re-score"
|
||||
msgstr "Re-score"
|
||||
@@ -3541,10 +3585,18 @@ msgstr "Reactive Resume v<0>{__APP_VERSION__}</0>"
|
||||
msgid "Reactive Resume v4 (JSON)"
|
||||
msgstr "Reactive Resume v4 (JSON)"
|
||||
|
||||
#: src/routes/agent/-components/tool-part-card.tsx
|
||||
msgid "Read an attachment"
|
||||
msgstr "Read an attachment"
|
||||
|
||||
#: src/features/resume/stylesheet/editor.tsx
|
||||
msgid "Read the Applying Custom Styles guide."
|
||||
msgstr "Read the Applying Custom Styles guide."
|
||||
|
||||
#: src/routes/agent/-components/tool-part-card.tsx
|
||||
msgid "Read the resume"
|
||||
msgstr "Read the resume"
|
||||
|
||||
#: src/features/applications/components/application-form-sheet.tsx
|
||||
msgid "Reading the posting…"
|
||||
msgstr "Reading the posting…"
|
||||
@@ -3695,8 +3747,8 @@ msgid "Restore"
|
||||
msgstr "Restore"
|
||||
|
||||
#: src/routes/agent/-components/agent-chat.tsx
|
||||
msgid "Restore the resume to before this patch? This will roll back this patch and any patches applied after it."
|
||||
msgstr "Restore the resume to before this patch? This will roll back this patch and any patches applied after it."
|
||||
msgid "Restore the resume to before this patch?"
|
||||
msgstr "Restore the resume to before this patch?"
|
||||
|
||||
#: src/routes/builder/$resumeId/-components/version-history.tsx
|
||||
msgid "Restore this version?"
|
||||
@@ -3721,6 +3773,10 @@ msgstr "Resume analysis complete."
|
||||
msgid "Resume content"
|
||||
msgstr "Resume content"
|
||||
|
||||
#: src/routes/agent/-components/patch-approval-card.tsx
|
||||
msgid "Resume edit"
|
||||
msgstr "Resume edit"
|
||||
|
||||
#: src/features/applications/components/application-detail-sheet.tsx
|
||||
msgid "Resume file"
|
||||
msgstr "Resume file"
|
||||
@@ -3749,10 +3805,18 @@ msgstr "Resumes"
|
||||
msgid "Retry"
|
||||
msgstr "Retry"
|
||||
|
||||
#: src/routes/agent/-components/agent-chat.tsx
|
||||
msgid "Review edits"
|
||||
msgstr "Review edits"
|
||||
|
||||
#: src/routes/agent/-components/agent-chat.tsx
|
||||
msgid "Review the resume against a job description and ask me questions before changing uncertain sections."
|
||||
msgstr "Review the resume against a job description and ask me questions before changing uncertain sections."
|
||||
|
||||
#: src/routes/agent/-components/patch-approval-card.tsx
|
||||
msgid "Review this edit"
|
||||
msgstr "Review this edit"
|
||||
|
||||
#: src/routes/agent/-components/agent-chat.tsx
|
||||
msgid "Rework the summary so it targets a senior engineering manager role without sounding generic."
|
||||
msgstr "Rework the summary so it targets a senior engineering manager role without sounding generic."
|
||||
@@ -3793,6 +3857,10 @@ msgstr "Rotation"
|
||||
msgid "Run your first analysis to get a scorecard, strengths, and prioritized suggestions."
|
||||
msgstr "Run your first analysis to get a scorecard, strengths, and prioritized suggestions."
|
||||
|
||||
#: src/routes/agent/-components/tool-part-card.tsx
|
||||
msgid "Running…"
|
||||
msgstr "Running…"
|
||||
|
||||
#: src/libs/locale.ts
|
||||
msgid "Russian"
|
||||
msgstr "Russian"
|
||||
@@ -4248,6 +4316,15 @@ msgstr "Source"
|
||||
msgid "Source Code"
|
||||
msgstr "Source Code"
|
||||
|
||||
#. placeholder {0}: operation.from
|
||||
#: src/routes/agent/-components/patch-approval-card.tsx
|
||||
msgid "Source: {0}"
|
||||
msgstr "Source: {0}"
|
||||
|
||||
#: src/routes/agent/-components/agent-chat.tsx
|
||||
msgid "Sources"
|
||||
msgstr "Sources"
|
||||
|
||||
#: src/routes/builder/$resumeId/-sidebar/right/sections/page.tsx
|
||||
msgid "Spacing (Horizontal)"
|
||||
msgstr "Spacing (Horizontal)"
|
||||
@@ -4599,6 +4676,10 @@ msgstr "This assistant could not be opened."
|
||||
msgid "This date will not be read correctly."
|
||||
msgstr "This date will not be read correctly."
|
||||
|
||||
#: src/routes/agent/-components/patch-approval-card.tsx
|
||||
msgid "This edit request can no longer be answered."
|
||||
msgstr "This edit request can no longer be answered."
|
||||
|
||||
#: src/libs/resume/ats.ts
|
||||
msgid "This email address will not be recognized."
|
||||
msgstr "This email address will not be recognized."
|
||||
@@ -4707,6 +4788,10 @@ msgstr "This will help you identify it later, if you plan to have multiple passk
|
||||
msgid "This will remove all items from this section."
|
||||
msgstr "This will remove all items from this section."
|
||||
|
||||
#: src/routes/agent/-components/agent-chat.tsx
|
||||
msgid "This will roll back this patch and any patches applied after it."
|
||||
msgstr "This will roll back this patch and any patches applied after it."
|
||||
|
||||
#: src/routes/agent/-components/agent-chat.tsx
|
||||
#: src/routes/agent/-components/thread-sidebar.tsx
|
||||
msgid "Thread actions"
|
||||
@@ -4789,6 +4874,18 @@ msgstr "Toggle right sidebar"
|
||||
msgid "Toggle threads"
|
||||
msgstr "Toggle threads"
|
||||
|
||||
#: src/routes/agent/-components/agent-chat.tsx
|
||||
msgid "Tokens: {threadTokenTotal}"
|
||||
msgstr "Tokens: {threadTokenTotal}"
|
||||
|
||||
#: src/routes/agent/-components/agent-chat.tsx
|
||||
msgid "Tokens: {total}"
|
||||
msgstr "Tokens: {total}"
|
||||
|
||||
#: src/routes/agent/-components/agent-chat.tsx
|
||||
msgid "Tokens: {total} ({cached} cached)"
|
||||
msgstr "Tokens: {total} ({cached} cached)"
|
||||
|
||||
#: src/features/applications/components/application-form-sheet.tsx
|
||||
msgid "Track a job you're applying to and link the resume you sent."
|
||||
msgstr "Track a job you're applying to and link the resume you sent."
|
||||
@@ -5208,6 +5305,10 @@ msgstr "We couldn't detect the format automatically — please choose it above."
|
||||
msgid "We couldn't find that page"
|
||||
msgstr "We couldn't find that page"
|
||||
|
||||
#: src/routes/agent/-components/tool-part-card.tsx
|
||||
msgid "Web search"
|
||||
msgstr "Web search"
|
||||
|
||||
#: src/dialogs/resume/sections/award.tsx
|
||||
#: src/dialogs/resume/sections/certification.tsx
|
||||
#: src/dialogs/resume/sections/education.tsx
|
||||
|
||||
Reference in New Issue
Block a user