Skip to content

[JET] Add Alibaba Coding Plan quota monitoring for Qwen Code - #555

Merged
jaywedgeworth22 merged 1 commit into
mainfrom
jet/alibaba-coding-plan-quota
Nov 25, 2026
Merged

jaywedgeworth22 merged 1 commit into
mainfrom
jet/alibaba-coding-plan-quota

Conversation

@jaywedgeworth22

@jaywedgeworth22 jaywedgeworth22 commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Summary

Adds quota monitoring for Alibaba Coding Plan used by Qwen Code as a separate meter from Alibaba Token Plan. Users can enable the opt-in Alibaba Coding Plan (Qwen Code) source in Settings → Sources & Fleet after installing the official Bailian CLI and signing in on the matching Bailian console site.

Changes

  • Adds optional alibaba-coding-plan local reader wired to bl usage coding-plan --output json via a generalized BailianPlanQuotaReader. Existing Token Plan reading is preserved as token-plan.
  • Parses reported five-hour, weekly, and monthly request windows with used/total request counts, remaining percent, and reset times. Missing, malformed, or expired windows are ignored rather than shown as quota.
  • Registers the new reader as opt-in disabled by default, adds display labels, and documents Qwen Code plan selection including Token Plan vs Coding Plan vs Qwen Account subscription statistics vs QwenCloud.
  • Automated code review found no issues.

Tests

  • Added parser tests for distinct 5-hour/monthly request windows, exhaustion, reset-time handling, and rejection of missing/malformed/expired data. Updated coverage for optional labels, fleet fallback, and opt-in defaults.
  • Runtime behavior against live Bailian accounts and console sites remains unverified in this change.

@kody-ai

kody-ai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Kody Review Complete

Great news! 🎉
No issues were found that match your current review configurations.

Keep up the excellent work! 🚀

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the @kody start-review command at the root of your PR.

  • Validate Business Logic: Ask Kody to validate your code against business rules by adding a comment with the @kody -v business-logic command.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ✅

Access your configuration settings here.

​

@kody-ai

kody-ai Bot commented Nov 25, 2026

Copy link
Copy Markdown

Automatic approval held

Kody's assessment:

Risk was identified in this PR.

@jaywedgeworth22
jaywedgeworth22 enabled auto-merge (squash) November 25, 2026 07:20
@jaywedgeworth22
jaywedgeworth22 merged commit c6124db into main Nov 25, 2026
6 checks passed
jaywedgeworth22 added a commit that referenced this pull request Nov 26, 2026
…efs OPS-1122) (#556)

* Add OpenCode Go reader, declarative endpoint plugins, and UI/perf review fixes (Refs OPS-1122)

- OpenCode Go: documented usage endpoint via the CLI's local auth file
- Endpoint plugins: validated JSON descriptors in the Plugins folder,
  generic bounded reader, SSRF gate, Settings toggles without recompiling
- Alibaba/MiMo/Qwen verified against #554/#555 (already on main), docs updated
- UI: sentenceGap, accent-ink shortcut, logo fallback from reader list,
  PiP keyboard/VoiceOver access, larger tertiary labels, keyboard splitter,
  popup no longer auto-expires for VoiceOver/Reduce Motion, right-click hint
- Perf: snapshot-write chain predecessor deadline surfaces a stuck write
  instead of stalling silently; v2 publisher retries transient 502/503/504

* Avoid reloading plugin descriptors per logo-style row (Refs OPS-1122)

* Declare OpenCode Go reader conformance (Refs OPS-1122)

* Fix banner string syntax (Refs OPS-1122)

* Address Kody findings on endpoint plugins (Refs OPS-1122)

- Restrict bearerEnv to CODECAPS_PLUGIN_-prefixed variables and name the
  missing variable in the plugin issue
- Refuse non-canonical IP literals (hex/octal/bare-integer/leading-zero)
  and scope the loopback port exception to loopback hosts only
- Reject descriptors with both percent paths; dedicated badDisplayName error
- Reject out-of-range percentages instead of clamping them
- Cache plugin loads for Settings rows and reader toggles

* Fix trailing-dot, cache-stamp and absolute-fallback findings (Refs OPS-1122)

* Scan plugins off the cache lock (Refs OPS-1122)

* Single-flight the plugin cache scan (Refs OPS-1122)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant