算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
salesforce-sdk-patterns【设计与创意】Build a version-negotiated Salesforce adapter around the customer-selected CLI or client library with typed boundaries and contract tests. Use when standardizing application access. Trigger with "design a Salesforce adapter".
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Contain library churn and org-specific schema behind a small adapter whose types, API version, permissions, retries, and evidence are explicit.
Use Read, Glob, and Grep to inspect approved repository and evidence files, WebFetch to re-check current first-party Salesforce documentation, and Write or Edit only for secretless plans, fixtures, configuration, and redacted receipts.
Salesforce publishes versioned API contracts, while third-party client libraries have independent release and support policies. Object and field shapes remain customer-specific, so generated or handwritten types must be tied to dated metadata evidence.
Accept an authenticated client or secret reference from the approved authorization layer. The adapter must not invent a password fallback, persist tokens, broaden scopes, or choose a production org implicitly.
Do not upgrade dependencies, change API versions, regenerate broad schemas, or perform live writes without code owner, platform owner, and data owner approval.
Return the adapter contract, dependency and API matrix, schema provenance, fixture coverage, migration plan, live probe receipt, and rollback boundary.
| Condition | Response |
|---|---|
| Library behavior differs from Salesforce documentation | Pin the discrepancy, reproduce at the raw API boundary, and escalate upstream before broad rollout. |
| Schema snapshot is stale | Block generated-type use until metadata is refreshed and reviewed. |
| Caller bypasses the adapter | Fail the policy check or document a time-bounded exception with an owner. |
A redacted completion receipt might look like this:
adapter=SalesforceGateway; api=discovered-supported; schema=dated; fixtures=8; sandbox-write=approved-pass; bypasses=0
Run the workflow first in the lowest-risk authorized org and preserve its redacted receipt. Schedule a review against the next Salesforce seasonal release and the customer change calendar.