视觉画布设计
canvas-design
基于设计原则创作静态视觉作品,用于海报与品牌图形。
flexport-rate-limits【文档与办公】Analyze and control Flexport request volume without inventing undocumented global limits or headers. Use when handling throttling, OAuth token budgets, endpoint-specific quotas, pagination pressure, or retry policy. Trigger with: "Flexport rate limit", "throttle Flexport calls", "budget Flexport tokens".
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
name: flexport-rate-limits description: >- Analyze and control Flexport request volume without inventing undocumented global limits or headers. Use when handling throttling, OAuth token budgets, endpoint-specific quotas, pagination pressure, or retry policy. Trigger with: "Flexport rate limit", "throttle Flexport calls", "budget Flexport tokens". allowed-tools: Read, Grep, Write, Edit version: 2.0.0 argument-hint: '[surface-endpoint-and-observed-evidence]' model: inherit effort: high license: MIT author: Jeremy Longshore jeremy@intentsolutions.io tags:
Build controls from documented endpoint constraints and observed responses, not a fictional universal requests-per-minute number. The clearest fixed budget is OAuth token issuance: at most 10 token requests per day per documented credential flow.
Track token acquisition, read traffic, mutations, webhook processing, and MCP tool calls independently.
Reuse each 24-hour OAuth JWT through a shared cache and single-flight refresh so business concurrency does not consume the 10/day token-request budget.
Apply endpoint-specific documented limits and provider retry signals when present. Do not assume rate-limit headers or Retry-After exist universally.
Use documented page sizes/cursors or links, avoid expensive expansions on index calls, and stop pagination when the business window is satisfied.
Queue bookings and record creation by business key, cap attempts, and reconcile ambiguous outcomes before retry.
Change concurrency only from measured latency/error evidence and preserve the before/after decision.
REST calls authenticate with a cached OAuth 2.0 client-credentials Bearer token using audience https://api.flexport.com, or an explicitly accepted broad API key. Use distinct credentials per workload and never log credentials or tokens. MCP calls use the authenticated connection to https://mcp.flexport.com/mcp and remain subject to each tool's documented account permissions.
Use Read and Grep for discovery and evidence. Use Write or Edit only for the approved artifact, code, configuration, test, or receipt described by this workflow; do not make an unapproved Flexport-side change.
Return a machine-reviewable receipt in this shape; adapt the operation values, but never place credentials or provider payloads in it:
surface: rest-v3
operation: shipment-read
decision: approved
outcome: verified
evidence:
release_sha: recorded-out-of-band
provider_reference: redacted
rollback_owner: logistics-platform
An importer reads freight invoices from /invoices in pages of 10 as recommended for performance, caches its OAuth token, limits concurrent reads based on observed behavior, and never claims a global Flexport quota that the docs do not publish.
| Failure | Response |
|---|---|
| 429 without retry metadata | Pause the affected surface, use bounded backoff with jitter, and seek provider guidance. |
| Token requests approach 10/day | Stop acquisition and repair cache sharing before tokens expire. |
| Queue grows after concurrency increase | Roll back the increase and inspect endpoint latency/error evidence. |
| Mutation throttled | Reconcile existing business references before resubmitting. |