Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
3c0d63b
feat: SAP v2 SDK complete — modular arch, plugin adapter, postgres mi…
CryptoFamilyNFT Mar 10, 2026
8c5ef0b
chore: rename to @oobe-protocol-labs/synapse-sap-sdk, bump v0.2.0, ad…
CryptoFamilyNFT Mar 10, 2026
a997879
docs: add SKILL.md, update CHANGELOG & CONTRIBUTING, bump v0.2.1
CryptoFamilyNFT Mar 10, 2026
6045420
chore: update program ID to SAPpUhsWLJG1FfkGRcXagEDMrMsWGjbky7AyhGpFETZ
CryptoFamilyNFT Mar 11, 2026
14377a8
Update 00-overview.md
CryptoFamilyNFT Mar 12, 2026
a9cb6df
Update 02-architecture.md
CryptoFamilyNFT Mar 12, 2026
24ced1c
feat: add mainnet addresses constants, BUFFER/DIGEST seeds, and missi…
CryptoFamilyNFT Mar 12, 2026
e0b17b8
feat: rename to Synapse Agent Protocol + bump v0.4.0
CryptoFamilyNFT Mar 12, 2026
e9e889a
fix: replace Anchor Wallet with local SapWallet/KeypairWallet for ESM…
CryptoFamilyNFT Mar 14, 2026
ffa8ace
feat(parser): transaction decode module + v0.4.2
CryptoFamilyNFT Mar 26, 2026
1590b8c
feat: SapNetwork enum, x402 network override, skills/ guides (v0.5.0)
CryptoFamilyNFT Mar 27, 2026
1f378c4
feat: SDK hardening + CLI power edition (v0.6.0)
CryptoFamilyNFT Mar 28, 2026
1bfd7bf
docs: add CLI install/usage to README, use OOBE RPC examples
CryptoFamilyNFT Mar 28, 2026
c4bf4fc
docs: add skills.md (Synapse Client SDK ref), integrate all 3 skill g…
CryptoFamilyNFT Mar 28, 2026
93b2fad
v0.6.2: priority fees, CLI overhaul, complete protocol documentation
CryptoFamilyNFT Mar 31, 2026
4889a94
feat: v0.6.3 — Yellowstone gRPC (Geyser) event streaming
CryptoFamilyNFT Apr 1, 2026
a5197f3
feat: v0.6.4 — escrow validation, merchant middleware, x402 direct pa…
CryptoFamilyNFT Apr 2, 2026
20fb0d1
v0.7.0: V2.1 escrow, staking, subscriptions — SDK release
CryptoFamilyNFT Apr 7, 2026
9f98643
v0.8.0: trustless receipt-based dispute resolution — ReceiptModule, m…
CryptoFamilyNFT Apr 18, 2026
aee2d1c
docs: v0.8.0 — fix version headers, receipt-based dispute labels, Esc…
CryptoFamilyNFT Apr 18, 2026
7239af8
docs: skills.md v0.8.0 — add ReceiptModule to module tree, fix versio…
CryptoFamilyNFT Apr 18, 2026
dcfa259
v0.9.0: Metaplex Core bridge — AgentIdentity + EIP-8004
CryptoFamilyNFT Apr 22, 2026
510901a
Update registrationBaseUrl in metaplex-bridge.md
CryptoFamilyNFT Apr 22, 2026
4caedd3
Revise future on-chain link section title
CryptoFamilyNFT Apr 22, 2026
c151a59
Update API URLs in metaplex-bridge.md
CryptoFamilyNFT Apr 22, 2026
01b0cd8
chore(sdk): release 0.9.1 - type-safe metaplex-bridge
CryptoFamilyNFT Apr 23, 2026
e70ac6b
release(sdk): 0.9.2 add agent identifier resolver
CryptoFamilyNFT Apr 23, 2026
055e067
release(sdk): 0.9.3 — Metaplex bridge triple-check + atomic register …
CryptoFamilyNFT Apr 24, 2026
59781b2
docs(changelog): merge 0.9.0 entry into 0.9.3 — 0.9.3 is the canonica…
CryptoFamilyNFT Apr 24, 2026
966a4d8
v0.10.1: re-export hardening symbols + skills update for SAP v0.2.0
CryptoFamilyNFT Apr 30, 2026
e63ef73
skills: convert to npx skills CLI format (subfolder + SKILL.md + YAML…
CryptoFamilyNFT Apr 30, 2026
d6783c8
skills: expand sap-overview (+807 lines) & sap-merchant (+147 lines) …
CryptoFamilyNFT Apr 30, 2026
2a7ea0a
release: v0.11.0 — FairScale Reputation Bridge
CryptoFamilyNFT May 1, 2026
c7ee852
Fix formatting in CHANGELOG.md
CryptoFamilyNFT May 1, 2026
5ff8233
fix(settle-batch): use accountsPartial + auto CU sizing (v0.12.5)
CryptoFamilyNFT May 5, 2026
8d242e0
fix(escrow-v2): wire co-signer into settle (v0.12.6)
CryptoFamilyNFT May 5, 2026
68afdf1
docs: document v0.12.5 settleBatch auto-CU + v0.12.6 co-signer requir…
CryptoFamilyNFT May 5, 2026
175953f
feat(escrow-v2): preflight settlement-security guards (v0.12.7)
CryptoFamilyNFT May 5, 2026
3a7aaa1
fix(escrow-v2): preflight pending-settlement PDA collision (v0.12.8)
CryptoFamilyNFT May 5, 2026
e323d18
docs(skills): add v0.12.5→v0.12.8 production lessons
CryptoFamilyNFT May 5, 2026
628d35d
fix(escrow-v2): preflight orphan PendingSettlement at finalize (v0.12.9)
CryptoFamilyNFT May 5, 2026
dca4b9d
feat(sdk): v0.13.0 — defensive pipelines, full error table, module-wi…
CryptoFamilyNFT May 5, 2026
729e1e7
docs(skills): v0.13.0 — defensive pipelines callout in merchant/overv…
CryptoFamilyNFT May 5, 2026
1a029b4
feat(escrow-v2): v0.13.0 — auto-bundle settleCallsV2 + createPendingS…
CryptoFamilyNFT May 5, 2026
c3889ba
v0.13.0: initial synapse-sap-sdk — modular TypeScript SDK for SAP pro…
CryptoFamilyNFT May 6, 2026
f7d218f
release: synapse-sap-sdk stable release
CryptoFamilyNFT May 7, 2026
49108c5
0.13.1
CryptoFamilyNFT May 7, 2026
9f77b06
0.14.0
CryptoFamilyNFT May 7, 2026
0ee8b6c
Update changelog for version 0.14.0
CryptoFamilyNFT May 7, 2026
9d6f914
chore(skills): align all skill files to SDK v0.14.0
CryptoFamilyNFT May 8, 2026
99e9fea
feat(cli): rewrite CLI for SDK v0.14.0 compatibility
CryptoFamilyNFT May 8, 2026
bb4b37d
docs(cli): rewrite README for v0.14.0
CryptoFamilyNFT May 8, 2026
7b49041
feat(cli): add skills install command + fix CVE-2025-3194
CryptoFamilyNFT May 8, 2026
a88e843
release: v0.15.0 — TypeScript config hardening + Capability import fixes
CryptoFamilyNFT May 8, 2026
2f3c581
fix: correct IDL require path from ./idl.json to ./idl/synapse_agent_…
CryptoFamilyNFT May 9, 2026
7e11ecc
feat: upgraded SDK to fit completely with IDL
CryptoFamilyNFT May 15, 2026
34a9ee8
0.16.1
CryptoFamilyNFT May 15, 2026
ba7df97
v0.17.0: Fixed IDL - removed pricing_menu from register_agent (matche…
May 16, 2026
740bc6c
docs: update changelog for v0.18.0
CryptoFamilyNFT May 23, 2026
5ecf006
feat: implemented 6+ skills for SAP handle
CryptoFamilyNFT May 23, 2026
b9c59ae
chore: release v0.18.1 — critical bugfixes (PDA derivation, sendTrans…
CryptoFamilyNFT May 26, 2026
1ff21ee
release: v0.18.1 — critical bugfixes for PDA derivation, sendTransact…
CryptoFamilyNFT May 26, 2026
ef630b0
fix: sync IDL to v0.18.0 mainnet (5 accounts for register_agent)
CryptoFamilyNFT May 26, 2026
48b20be
release: v0.19.0 — ALL CRITICAL FIXES ✅
CryptoFamilyNFT May 26, 2026
4854db1
release: v0.19.1 — CRITICAL HOTFIX (IDL + ESM imports)
CryptoFamilyNFT May 27, 2026
866941a
release: v0.19.1 — Next.js ESM compatibility hotfix
CryptoFamilyNFT May 27, 2026
4701387
release: v0.19.2 — constants export hotfix
CryptoFamilyNFT May 27, 2026
eef0e29
release: v0.19.3 — complete all exports hotfix
CryptoFamilyNFT May 27, 2026
64eba39
release: v0.19.4 — export ALL legacy constants
CryptoFamilyNFT May 27, 2026
5fe84b8
release: v0.19.5 — Next.js + Node.js dual-format
CryptoFamilyNFT May 27, 2026
302ba77
release: v0.19.5 — FIXED ESM/CJS imports
CryptoFamilyNFT May 27, 2026
9de9698
release: v0.19.6 — Next.js + Node.js dual-format (FINAL FIX)
CryptoFamilyNFT May 27, 2026
63c0d14
release: v0.19.7 — Next.js static export IDL fix
CryptoFamilyNFT May 27, 2026
6f0c687
release: v0.19.8 — ESM JSON import (FINAL FIX)
CryptoFamilyNFT May 27, 2026
1ce25a2
fix(client): fetchAccount error discrimination, buildTransaction bloc…
Jun 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
898 changes: 894 additions & 4 deletions CHANGELOG.md

Large diffs are not rendered by default.

96 changes: 77 additions & 19 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Contributing to @synapse-sap/sdk
# Contributing to @oobe-protocol-labs/synapse-sap-sdk

Thank you for your interest in contributing! This guide will help you get started.

Expand Down Expand Up @@ -27,15 +27,15 @@ Be respectful, constructive, and inclusive.
|------|---------|
| Node.js | ≥ 18 |
| Yarn | ≥ 1.22 |
| TypeScript | ≥ 5.5 |
| TypeScript | ≥ 5.7 |
| Solana CLI | ≥ 1.18 |
| Anchor | ≥ 0.32 |

### Setup

```bash
# Clone the repository
git clone https://github.com/synapse-labs/synapse-sap-sdk.git
git clone https://github.com/OOBE-PROTOCOL/synapse-sap-sdk.git
cd synapse-sap-sdk

# Install dependencies
Expand All @@ -53,16 +53,64 @@ yarn build
```
synapse-sap-sdk/
├── src/
│ ├── client.ts # SapClient entry point
│ ├── constants.ts # Program ID, seeds, limits
│ ├── events.ts # Event parser + typed events
│ ├── index.ts # Barrel exports
│ ├── pda.ts # PDA derivation functions
│ ├── types.ts # All interfaces, enums, DTOs
│ ├── utils.ts # sha256, hashToArray, assert
│ └── modules/
│ ├── base.ts # Abstract BaseModule
│ ├── agent.ts # Agent lifecycle
│ ├── index.ts # Barrel exports (everything)
│ ├── core/
│ │ ├── client.ts # SapClient — main entry point
│ │ ├── connection.ts # SapConnection — RPC factory
│ │ └── index.ts
│ ├── modules/
│ │ ├── base.ts # Abstract BaseModule
│ │ ├── agent.ts # Agent lifecycle
│ │ ├── attestation.ts # Web-of-trust attestations
│ │ ├── escrow.ts # x402 micropayments
│ │ ├── feedback.ts # Reputation feedback
│ │ ├── indexing.ts # Discovery indexes
│ │ ├── ledger.ts # MemoryLedger (ring buffer)
│ │ ├── tools.ts # Tool registry + checkpoints
│ │ ├── vault.ts # Encrypted memory vault
│ │ └── index.ts
│ ├── registries/
│ │ ├── discovery.ts # Agent/tool discovery
│ │ ├── x402.ts # x402 payment lifecycle
│ │ ├── session.ts # Unified session manager
│ │ ├── builder.ts # Fluent AgentBuilder
│ │ └── index.ts
│ ├── plugin/
│ │ ├── index.ts # SAPPlugin (52 tools)
│ │ ├── protocols.ts # Protocol method definitions
│ │ └── schemas.ts # Zod validation schemas
│ ├── postgres/
│ │ ├── adapter.ts # SapPostgres database adapter
│ │ ├── sync.ts # SapSyncEngine (periodic + WS)
│ │ ├── schema.sql # 22-table DDL
│ │ ├── serializers.ts # On-chain → SQL serializers
│ │ ├── types.ts # Row types, config
│ │ └── index.ts
│ ├── constants/
│ │ ├── programs.ts # Program IDs per cluster
│ │ ├── seeds.ts # PDA seed prefixes (20)
│ │ ├── limits.ts # Size limits, enum values
│ │ └── index.ts
│ ├── pda/
│ │ └── index.ts # 17 derive*() functions
│ ├── events/
│ │ └── index.ts # EventParser + 45 event types
│ ├── errors/
│ │ └── index.ts # 6 error classes
│ ├── types/
│ │ ├── accounts.ts # 22 account interfaces
│ │ ├── common.ts # Shared structs
│ │ ├── enums.ts # 5 enum types
│ │ ├── instructions.ts # 11 instruction arg DTOs
│ │ └── index.ts
│ ├── utils/
│ │ ├── hash.ts # sha256, hashToArray
│ │ ├── validation.ts # assert helper
│ │ ├── serialization.ts # Account serialization
│ │ └── index.ts
│ └── idl/
│ ├── index.ts # IDL re-exports
│ └── synapse_agent_sap.json
│ ├── attestation.ts # Web-of-trust attestations
│ ├── escrow.ts # x402 micropayments
│ ├── feedback.ts # Reputation feedback
Expand All @@ -71,8 +119,10 @@ synapse-sap-sdk/
│ ├── tools.ts # Tool registry + checkpoints
│ └── vault.ts # Encrypted memory vault
├── dist/ # Build output (CJS + ESM + d.ts)
├── docs/ # SDK documentation (11 guides)
├── CHANGELOG.md
├── CONTRIBUTING.md
├── SKILL.md # Complete technical reference
├── LICENSE
└── README.md
```
Expand All @@ -98,21 +148,29 @@ yarn clean # Remove dist/

1. Create `src/modules/<name>.ts` extending `BaseModule`.
2. Export from `src/modules/index.ts`.
3. Add lazy accessor in `src/client.ts`.
3. Add lazy accessor in `src/core/client.ts`.
4. Export types from `src/index.ts`.
5. Add subpath export in `package.json` `"exports"` field.
6. Update `CHANGELOG.md`.

### Adding a New PDA

1. Add the seed constant to `SEEDS` in `src/constants.ts`.
2. Add the `derive*()` function in `src/pda.ts`.
1. Add the seed constant to `SEEDS` in `src/constants/seeds.ts`.
2. Add the `derive*()` function in `src/pda/index.ts`.
3. Export from `src/index.ts`.

### Adding a New Account Type

1. Add the interface to `src/types.ts`.
2. Export from `src/index.ts`.
1. Add the interface to `src/types/accounts.ts`.
2. Export from `src/types/index.ts` and `src/index.ts`.

### Adding a New Registry

1. Create `src/registries/<name>.ts`.
2. Export from `src/registries/index.ts`.
3. Add lazy accessor in `src/core/client.ts`.
4. Add subpath export in `package.json`.
5. Update `SKILL.md` and `CHANGELOG.md`.

## Pull Request Process

Expand Down Expand Up @@ -241,4 +299,4 @@ BREAKING CHANGE: initVault() is now createVault() for clarity.

## Questions?

Open an issue or reach out on [Discord](https://discord.gg/synapse-labs).
Open an issue or reach out on [Discord](https://discord.gg/oobe-protocol).
Loading