Repository navigation
v0.6 — Opt-in executor sub-package
v0.6 — Opt-in executor sub-package
The core stays zero-dependency, read-only, key-free. Order execution now lives in an isolated, opt-in sub-package: executor/ · docs/executor.md
Executor
- CLOB V2 limit orders (GTC/GTD) via
@polymarket/clob-client-v2, isolated deps — never imported by the core - Safety ladder: narrow façade (raw client not exposed) · dry-run by default (
EXECUTOR_LIVE=1to post) · full canonical-field re-validation + notional cap recomputed at the boundary (EXECUTOR_MAX_USD, default $10) · fail-closed credential validation with redacted errors · live-call console redaction (the underlying client logs auth headers on HTTP errors) - Builder attribution end-to-end: default / override / opt-out, resolved once per instance; dry-run preview matches live behavior. Disclosure: docs/builder-attribution.md
Core fix
src/builder.ts: a malformedPOLY_BUILDER_CODEoverride now disables attribution instead of silently falling back to the author's default
Verification
- 51 tests green (root 23 + executor 28), both typechecks clean
- 3-round adversarial code review before ship