Commit graph naco-api/AGENTS.md
Author SHA1 Message Date
c96447e3e0
fix(activitypub): harden client, add outbox fallback and throttled GTS warming
Extract ActivityPub outbox walk into internal/activitypub/outbox.go with
webfinger/actor resolution, Create/Note filtering and IRI dereferencing.
Fix searchStatus returning wrong post, nil-account panic in SearchActors,
@local handle resolution, empty Author via noteToInternalPost, protocol-
relative URL handling, pagination loops, limit clamping (200) and cacheErr
masking. Add per-host token-bucket throttle (1/s, cross-host concurrency)
in throttle.go and background GTS warming via search?resolve for outbox-
fetched posts without following remotes. Align AGENTS.md.

Co-Authored-By: internal-model
2026-09-10 09:59:44 +00:00
84fbad705d
fix: harden Twitter API client timeout, retries, and authors
- replace http.DefaultClient with a 60s-timeout client and send a
  User-Agent header
- retry 5xx and transport errors with the same ctx-aware backoff used
  for 429s; drop the unreachable trailing return and defer-in-loop body
- resolveUser returns the username; posts carry the handle (was numeric
  ID), error on 200-with-empty-data, and skip empty-ID tweets
- remove the lower limit floor so small limits pass through
- AGENTS.md: refresh the stale twitter clamp/backoff gotcha
2026-09-09 23:18:34 +00:00
2c8f09fdbf
Split test clients into REST and MCP, add MCP endpoint tests
Some checks failed
Test Every Endpoint on Base Sepolia / test_endpoints (push) Failing after 1m32s
CI/CD Go Verification / build_and_test (push) Successful in 1m14s
Rename testClient/main.go into testClient/rest/test-rest-endpoints.go and add
testClient/mcp/test-mcp-endpoints.go which tests the /mcp Streamable HTTP
endpoint via an x402-aware MCP client. Update the test-endpoints workflow to
run the MCP tests first, and decode/print the 402 challenge when a paid REST
retry is rejected.
2026-09-06 18:27:09 +00:00
a59cee1d2a
chore: cleanup manual funding scripts and docs
Some checks failed
Test Every Endpoint on Base Sepolia / test_endpoints (push) Failing after 1s
CI/CD Go Verification / build_and_test (push) Successful in 1m8s
- cdpScripts/listServices.py: fix filter to only api.naco.li resources
  (remove stray type != http check)
- cdpScripts/rescueFunds.py: add CDP export script for api-naco-li
- testClient/main.go: remove faucet/balance/funding logic (manual funding),
  drop go-ethereum abi/ethclient, big, json, context imports; keep
  x402 payment flow only
- AGENTS.md: document quick commands, architecture, codegen, migrations,
  testing patterns and gotchas
2026-09-03 23:59:22 +00:00