feat(sheets): add --ai-only to +formula-verify for AI formula status#1959
feat(sheets): add --ai-only to +formula-verify for AI formula status#1959wenzhuozhen wants to merge 2 commits into
Conversation
…polling BE-2: +formula-verify gains --ai-only, mapping to verify_formula tool input ai_only=true. AI formulas (AI_WRITE / AI_CLASSIFY / …) compute asynchronously; --ai-only is a single-shot polling probe (no built-in wait/timeout) that skips the ordinary 7-Excel-error scan and returns current AI-formula compute status. Coexists with --sheet-id/--range and honors --exit-on-error. BE-4: mirror sheet-skill-spec SoT docs (AI formula list in lark-sheets-formula-translation, --ai-only + async polling section in lark-sheets-formula-verify) and regenerate flag_defs_gen.go. Spec source: active@6fe4ea7389c6d0631dc8279ee7506c357d0600325e28ffabdc97d9a66339e762
…rding Mirror from sheet-skill-spec SoT (ee/sheet-skill-spec MR!55): - formula-translation: full AI function param details (range rules, AI_TRANSLATE language keys, AI_EXTRACT type, AI_CLASSIFY modes, AI_INFER/AI_IMPORTDATA array semantics) - formula-verify: clarify --ai-only convergence expectation, drop implementation-leaking phrasing
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughThe ChangesAI formula verification
Estimated code review effort: 2 (Simple) | ~10 minutes Sequence Diagram(s)sequenceDiagram
participant FormulaVerifyCLI
participant formulaVerifyInput
participant verify_formula
FormulaVerifyCLI->>formulaVerifyInput: parse --ai-only and selectors
formulaVerifyInput->>verify_formula: send ai_only=true and optional ranges
verify_formula-->>FormulaVerifyCLI: return current AI formula status
Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🚀 PR Preview Install Guide🧰 CLI updatenpm i -g https://pkg.pr.new/larksuite/cli/@larksuite/cli@d5e46948126140e231d0dc8b12a61293bb2f33cd🧩 Skill updatenpx skills add larksuite/cli#feat/lark-sheets-develop-ai-formula -y -g |
Summary
Add a
--ai-onlymode tosheets +formula-verifyso agents can check the compute status of asynchronous AI formulas (AI_WRITE / AI_CLASSIFY / AI_SENTIMENT / AI_EXTRACT / AI_POLISH / AI_SUMMARY / AI_TRANSLATE), and enrich the lark-sheets skill docs with AI-formula parameter details and clearer verify guidance.Changes
sheets +formula-verify: add--ai-onlyflag, mapped to theverify_formulatool inputai_only=true. It skips the ordinary 7-Excel-error scan and returns the current AI-formula compute status; a single call is a status probe and coexists with--sheet-id/--sheet-name/--range, honoring--exit-on-error.flag_defs_gen.goand add dry-run cases for--ai-only.sheet-skill-speccanonical source):lark-sheets-formula-translation: full AI-function parameter details — range rules,AI_TRANSLATElanguage keys,AI_EXTRACTextract-type,AI_CLASSIFYthree modes,AI_INFER/AI_IMPORTDATAarray semantics.lark-sheets-formula-verify: clarify--ai-onlyconvergence expectation (small batches resolve quickly; pending on large batches is normal) and drop implementation-leaking phrasing.Test Plan
go test ./shortcuts/sheets/ -run 'TestFormulaVerify|FlagDef')lark-cli sheets +formula-verify --ai-onlyflow works end-to-end against a real spreadsheet (returnsai_formula_total/done/pending/failed+status)Related Issues
Summary by CodeRabbit
New Features
--ai-onlyoption to formula verification.Documentation