@cascade-fyi/sati-agent0-sdk 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/index.cjs +102 -30
- package/dist/index.d.cts +31 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +31 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +102 -30
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,23 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.1.1] - 2026-02-11
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- Client-side reviewer and multi-agent filtering in `searchFeedback` - underlying RPC only filters by schema and agent mint, so reviewer/agents filters were silently ignored
|
|
13
|
+
- Safe JSON parsing for on-chain attestation content - malformed data no longer crashes entire queries
|
|
14
|
+
- Replace `as KeyPairSigner` with `as TransactionSigner` in browser wallet paths - semantically correct minimal interface
|
|
15
|
+
- For `getTransferInstruction` authority, pass `Address` directly instead of casting (accepts `Address | TransactionSigner`)
|
|
16
|
+
- Registration race condition in sender path - retry loop (3 attempts, 1.5s delay) handles concurrent PDA collisions
|
|
17
|
+
- Post-registration `memberNumber` bug - use value from successful attempt instead of re-fetching (which could race)
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
|
|
21
|
+
- `revokeFeedbackByAddress(compressedAddress)` - stable address-based revoke alternative to index-based `revokeFeedback`
|
|
22
|
+
- `SatiWarning` type and `onWarning` callback in `SatiSDKConfig` for non-fatal warning reporting (RPC failures, signature lookups)
|
|
23
|
+
- `_parseContentJson` internal helper for safe attestation content parsing
|
|
24
|
+
|
|
8
25
|
## [0.1.0] - 2026-02-11
|
|
9
26
|
|
|
10
27
|
### Added
|
|
@@ -24,4 +41,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
24
41
|
- Transaction sender support for browser wallet integration
|
|
25
42
|
- Re-exports of agent0-sdk types and SATI constants for consumer convenience
|
|
26
43
|
|
|
44
|
+
[0.1.1]: https://github.com/cascade-protocol/sati/compare/@cascade-fyi/sati-agent0-sdk@0.1.0...@cascade-fyi/sati-agent0-sdk@0.1.1
|
|
27
45
|
[0.1.0]: https://github.com/cascade-protocol/sati/releases/tag/@cascade-fyi/sati-agent0-sdk@0.1.0
|
package/dist/index.cjs
CHANGED
|
@@ -615,7 +615,7 @@ var SatiAgent = class SatiAgent {
|
|
|
615
615
|
const transferIx = (0, _solana_program_token_2022.getTransferInstruction)({
|
|
616
616
|
source: sourceAta,
|
|
617
617
|
destination: destAta,
|
|
618
|
-
authority:
|
|
618
|
+
authority: ownerAddr,
|
|
619
619
|
amount: 1n
|
|
620
620
|
});
|
|
621
621
|
return { signature: await access.sender.signAndSend([createAtaIx, transferIx]) };
|
|
@@ -652,30 +652,39 @@ var SatiAgent = class SatiAgent {
|
|
|
652
652
|
const agentMint = await (0, _solana_kit.generateKeyPairSigner)();
|
|
653
653
|
const rpc = this._sdk.sati.getRpc();
|
|
654
654
|
const [registryConfigAddress] = await (0, _cascade_fyi_sati_sdk.findRegistryConfigPda)();
|
|
655
|
-
const registryConfig = await (0, _cascade_fyi_sati_sdk.fetchRegistryConfig)(rpc, registryConfigAddress);
|
|
656
|
-
const groupMint = registryConfig.data.groupMint;
|
|
657
655
|
const ownerAddress = (0, _solana_kit.address)(access.sender.address);
|
|
658
656
|
const [agentTokenAccount] = await (0, _cascade_fyi_sati_sdk.findAssociatedTokenAddress)(agentMint.address, ownerAddress);
|
|
659
|
-
const
|
|
660
|
-
const
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
agentIndex,
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
657
|
+
const MAX_RETRIES = 3;
|
|
658
|
+
const RETRY_DELAY_MS = 1500;
|
|
659
|
+
let lastError;
|
|
660
|
+
for (let attempt = 0; attempt < MAX_RETRIES; attempt++) try {
|
|
661
|
+
const registryConfig = await (0, _cascade_fyi_sati_sdk.fetchRegistryConfig)(rpc, registryConfigAddress);
|
|
662
|
+
const groupMint = registryConfig.data.groupMint;
|
|
663
|
+
const memberNumber = registryConfig.data.totalAgents + 1n;
|
|
664
|
+
const [agentIndex] = await (0, _cascade_fyi_sati_sdk.findAgentIndexPda)(memberNumber);
|
|
665
|
+
const registerIx = await (0, _cascade_fyi_sati_sdk.getRegisterAgentInstructionAsync)({
|
|
666
|
+
payer: { address: ownerAddress },
|
|
667
|
+
owner: ownerAddress,
|
|
668
|
+
groupMint,
|
|
669
|
+
agentMint,
|
|
670
|
+
agentTokenAccount,
|
|
671
|
+
agentIndex,
|
|
672
|
+
name: this._registrationFile.name,
|
|
673
|
+
symbol: "",
|
|
674
|
+
uri,
|
|
675
|
+
additionalMetadata: null,
|
|
676
|
+
nonTransferable: false
|
|
677
|
+
});
|
|
678
|
+
return {
|
|
679
|
+
signature: await access.sender.signAndSend([registerIx], [agentMint]),
|
|
680
|
+
agentId: this._storeIdentity(agentMint.address, ownerAddress, uri, memberNumber)
|
|
681
|
+
};
|
|
682
|
+
} catch (error) {
|
|
683
|
+
lastError = error;
|
|
684
|
+
if (!isRegistrationCollisionError(error)) throw error;
|
|
685
|
+
if (attempt < MAX_RETRIES - 1) await new Promise((r) => setTimeout(r, RETRY_DELAY_MS));
|
|
686
|
+
}
|
|
687
|
+
throw new Error(`Registration failed after ${MAX_RETRIES} attempts`, { cause: lastError });
|
|
679
688
|
}
|
|
680
689
|
_storeIdentity(mint, owner, uri, memberNumber) {
|
|
681
690
|
this._identity = {
|
|
@@ -708,6 +717,11 @@ var SatiAgent = class SatiAgent {
|
|
|
708
717
|
return oasfEndpoint;
|
|
709
718
|
}
|
|
710
719
|
};
|
|
720
|
+
/** Detect PDA collision errors from concurrent registrations. */
|
|
721
|
+
function isRegistrationCollisionError(error) {
|
|
722
|
+
const msg = error instanceof Error ? error.message : String(error);
|
|
723
|
+
return msg.includes("already in use") || msg.includes("already been initialized") || msg.includes("0x0");
|
|
724
|
+
}
|
|
711
725
|
|
|
712
726
|
//#endregion
|
|
713
727
|
//#region src/sdk.ts
|
|
@@ -850,7 +864,7 @@ var SatiSDK = class {
|
|
|
850
864
|
sasSchema: schema,
|
|
851
865
|
agentMint: agent.mint
|
|
852
866
|
})).items.map((item) => {
|
|
853
|
-
|
|
867
|
+
return this._parseContentJson(item.data.content, item.data.contentType)?.score;
|
|
854
868
|
}).filter((s) => s !== void 0);
|
|
855
869
|
const count = scores.length;
|
|
856
870
|
const averageValue = count > 0 ? scores.reduce((a, b) => a + b, 0) / count : 0;
|
|
@@ -858,7 +872,14 @@ var SatiSDK = class {
|
|
|
858
872
|
count,
|
|
859
873
|
averageValue
|
|
860
874
|
});
|
|
861
|
-
} catch {
|
|
875
|
+
} catch (error) {
|
|
876
|
+
this._warn({
|
|
877
|
+
code: "RPC_ERROR",
|
|
878
|
+
message: "Failed to fetch feedback stats",
|
|
879
|
+
context: agent.mint,
|
|
880
|
+
cause: error
|
|
881
|
+
});
|
|
882
|
+
}
|
|
862
883
|
}));
|
|
863
884
|
}
|
|
864
885
|
const results = [];
|
|
@@ -975,7 +996,7 @@ var SatiSDK = class {
|
|
|
975
996
|
const transferIx = (0, _solana_program_token_2022.getTransferInstruction)({
|
|
976
997
|
source: sourceAta,
|
|
977
998
|
destination: destAta,
|
|
978
|
-
authority:
|
|
999
|
+
authority: ownerAddr,
|
|
979
1000
|
amount: 1n
|
|
980
1001
|
});
|
|
981
1002
|
return { signature: await access.sender.signAndSend([createAtaIx, transferIx]) };
|
|
@@ -1199,13 +1220,19 @@ var SatiSDK = class {
|
|
|
1199
1220
|
satiFilter.agentMint = knownIdentity.mint;
|
|
1200
1221
|
}
|
|
1201
1222
|
if (filters.reviewers?.length) satiFilter.counterparty = (0, _solana_kit.address)(filters.reviewers[0]);
|
|
1223
|
+
const reviewerSet = filters.reviewers?.length ? new Set(filters.reviewers) : null;
|
|
1224
|
+
const agentMintSet = filters.agents?.length && filters.agents.length > 1 ? new Set(await Promise.all(filters.agents.map(async (id) => {
|
|
1225
|
+
return (await this._resolveIdentity(id)).mint;
|
|
1226
|
+
}))) : null;
|
|
1202
1227
|
const result = await this._sati.listFeedbacks(satiFilter);
|
|
1203
1228
|
const currentSlot = await this._sati.getRpc().getSlot({ commitment: "confirmed" }).send();
|
|
1204
1229
|
const nowSec = Math.floor(Date.now() / 1e3);
|
|
1205
1230
|
const feedbacks = [];
|
|
1206
1231
|
for (let i = 0; i < result.items.length; i++) {
|
|
1207
1232
|
const item = result.items[i];
|
|
1208
|
-
|
|
1233
|
+
if (reviewerSet && !reviewerSet.has(item.data.counterparty)) continue;
|
|
1234
|
+
if (agentMintSet && !agentMintSet.has(item.data.agentMint)) continue;
|
|
1235
|
+
const rawContent = this._parseContentJson(item.data.content, item.data.contentType);
|
|
1209
1236
|
const score = rawContent?.score;
|
|
1210
1237
|
const tags = rawContent?.tags ?? [];
|
|
1211
1238
|
const text = rawContent?.m;
|
|
@@ -1263,7 +1290,14 @@ var SatiSDK = class {
|
|
|
1263
1290
|
if (!addr) return;
|
|
1264
1291
|
try {
|
|
1265
1292
|
fb.txHash = (await photon.getCompressionSignaturesForAddress((0, _solana_kit.address)(addr), { limit: 1 })).items[0]?.signature;
|
|
1266
|
-
} catch {
|
|
1293
|
+
} catch (error) {
|
|
1294
|
+
this._warn({
|
|
1295
|
+
code: "SIGNATURE_LOOKUP_FAILED",
|
|
1296
|
+
message: "Failed to fetch tx signature",
|
|
1297
|
+
context: addr,
|
|
1298
|
+
cause: error
|
|
1299
|
+
});
|
|
1300
|
+
}
|
|
1267
1301
|
}));
|
|
1268
1302
|
}
|
|
1269
1303
|
return feedbacks;
|
|
@@ -1296,7 +1330,7 @@ var SatiSDK = class {
|
|
|
1296
1330
|
let sum = 0;
|
|
1297
1331
|
let count = 0;
|
|
1298
1332
|
for (const item of result.items) {
|
|
1299
|
-
const rawContent =
|
|
1333
|
+
const rawContent = this._parseContentJson(item.data.content, item.data.contentType);
|
|
1300
1334
|
const score = rawContent?.score;
|
|
1301
1335
|
const tags = rawContent?.tags ?? [];
|
|
1302
1336
|
if (tag1 && !tags.includes(tag1)) continue;
|
|
@@ -1336,7 +1370,13 @@ var SatiSDK = class {
|
|
|
1336
1370
|
async getCreationSignature(compressedAddress) {
|
|
1337
1371
|
try {
|
|
1338
1372
|
return (await this._sati.getLightClient().getRpc().getCompressionSignaturesForAddress((0, _solana_kit.address)(compressedAddress), { limit: 1 })).items[0]?.signature ?? null;
|
|
1339
|
-
} catch {
|
|
1373
|
+
} catch (error) {
|
|
1374
|
+
this._warn({
|
|
1375
|
+
code: "RPC_ERROR",
|
|
1376
|
+
message: "Failed to fetch creation signature",
|
|
1377
|
+
context: compressedAddress,
|
|
1378
|
+
cause: error
|
|
1379
|
+
});
|
|
1340
1380
|
return null;
|
|
1341
1381
|
}
|
|
1342
1382
|
}
|
|
@@ -1370,6 +1410,25 @@ var SatiSDK = class {
|
|
|
1370
1410
|
});
|
|
1371
1411
|
}
|
|
1372
1412
|
/**
|
|
1413
|
+
* Revoke (close) a feedback by its compressed account address.
|
|
1414
|
+
*
|
|
1415
|
+
* Preferred over `revokeFeedback()` - uses a stable identifier instead of
|
|
1416
|
+
* a fragile array index. Get the address from `feedback.context.satiCompressedAddress`.
|
|
1417
|
+
*
|
|
1418
|
+
* @param compressedAddress - Base58 compressed account address
|
|
1419
|
+
*/
|
|
1420
|
+
async revokeFeedbackByAddress(compressedAddress) {
|
|
1421
|
+
const sasConfig = this._requireSASConfig();
|
|
1422
|
+
const signer = this._requireSigner();
|
|
1423
|
+
return this._sati.closeCompressedAttestation({
|
|
1424
|
+
payer: signer,
|
|
1425
|
+
counterparty: signer,
|
|
1426
|
+
sasSchema: sasConfig.schemas.feedbackPublic ?? sasConfig.schemas.feedback,
|
|
1427
|
+
attestationAddress: (0, _solana_kit.address)(compressedAddress),
|
|
1428
|
+
lookupTableAddress: sasConfig.lookupTable
|
|
1429
|
+
});
|
|
1430
|
+
}
|
|
1431
|
+
/**
|
|
1373
1432
|
* Search validation attestations for an agent.
|
|
1374
1433
|
*
|
|
1375
1434
|
* Validations are on-chain attestations from validators (TEE, zkML, re-execution, etc.)
|
|
@@ -1418,6 +1477,19 @@ var SatiSDK = class {
|
|
|
1418
1477
|
get config() {
|
|
1419
1478
|
return this._config;
|
|
1420
1479
|
}
|
|
1480
|
+
/** Safely parse JSON content from an attestation. Returns null on invalid JSON. */
|
|
1481
|
+
_parseContentJson(content, contentType) {
|
|
1482
|
+
if (contentType !== _cascade_fyi_sati_sdk.ContentType.JSON || content.length === 0) return null;
|
|
1483
|
+
try {
|
|
1484
|
+
return JSON.parse(new TextDecoder().decode(content));
|
|
1485
|
+
} catch {
|
|
1486
|
+
return null;
|
|
1487
|
+
}
|
|
1488
|
+
}
|
|
1489
|
+
/** Fire a non-fatal warning via the optional onWarning callback. */
|
|
1490
|
+
_warn(warning) {
|
|
1491
|
+
this._config.onWarning?.(warning);
|
|
1492
|
+
}
|
|
1421
1493
|
_requireSigner() {
|
|
1422
1494
|
if (!this._config.signer) throw new Error("This operation requires a KeyPairSigner. Initialize SatiSDK with a signer for server-side write operations.");
|
|
1423
1495
|
return this._config.signer;
|
package/dist/index.d.cts
CHANGED
|
@@ -72,6 +72,8 @@ interface SatiSDKConfig {
|
|
|
72
72
|
rpcUrl?: string;
|
|
73
73
|
/** Pinata JWT for IPFS uploads (required for registerIPFS) */
|
|
74
74
|
pinataJwt?: string;
|
|
75
|
+
/** Optional callback for non-fatal warnings (RPC failures, transient errors). */
|
|
76
|
+
onWarning?: (warning: SatiWarning) => void;
|
|
75
77
|
}
|
|
76
78
|
/**
|
|
77
79
|
* Extended search options with SATI-specific features.
|
|
@@ -158,6 +160,19 @@ interface SatiFeedbackOptions {
|
|
|
158
160
|
/** Deterministic 32-byte task reference. Default: cryptographically random */
|
|
159
161
|
taskRef?: Uint8Array;
|
|
160
162
|
}
|
|
163
|
+
/**
|
|
164
|
+
* Non-fatal warning from SDK operations.
|
|
165
|
+
*
|
|
166
|
+
* Reported via `SatiSDKConfig.onWarning` callback. Parse errors on untrusted
|
|
167
|
+
* on-chain data are silently skipped (noise). RPC/infrastructure errors are
|
|
168
|
+
* reported so consumers can wire into telemetry (Sentry, PostHog, etc.).
|
|
169
|
+
*/
|
|
170
|
+
interface SatiWarning {
|
|
171
|
+
code: "PARSE_ERROR" | "RPC_ERROR" | "SIGNATURE_LOOKUP_FAILED";
|
|
172
|
+
message: string;
|
|
173
|
+
context?: string;
|
|
174
|
+
cause?: unknown;
|
|
175
|
+
}
|
|
161
176
|
/**
|
|
162
177
|
* Validation attestation result from `searchValidations()`.
|
|
163
178
|
*/
|
|
@@ -513,6 +528,17 @@ declare class SatiSDK {
|
|
|
513
528
|
revokeFeedback(agentId: AgentId$1, feedbackIndex: number): Promise<{
|
|
514
529
|
signature: string;
|
|
515
530
|
}>;
|
|
531
|
+
/**
|
|
532
|
+
* Revoke (close) a feedback by its compressed account address.
|
|
533
|
+
*
|
|
534
|
+
* Preferred over `revokeFeedback()` - uses a stable identifier instead of
|
|
535
|
+
* a fragile array index. Get the address from `feedback.context.satiCompressedAddress`.
|
|
536
|
+
*
|
|
537
|
+
* @param compressedAddress - Base58 compressed account address
|
|
538
|
+
*/
|
|
539
|
+
revokeFeedbackByAddress(compressedAddress: string): Promise<{
|
|
540
|
+
signature: string;
|
|
541
|
+
}>;
|
|
516
542
|
/**
|
|
517
543
|
* Search validation attestations for an agent.
|
|
518
544
|
*
|
|
@@ -530,6 +556,10 @@ declare class SatiSDK {
|
|
|
530
556
|
get lookupTable(): string | undefined;
|
|
531
557
|
/** @internal */
|
|
532
558
|
get config(): SatiSDKConfig;
|
|
559
|
+
/** Safely parse JSON content from an attestation. Returns null on invalid JSON. */
|
|
560
|
+
private _parseContentJson;
|
|
561
|
+
/** Fire a non-fatal warning via the optional onWarning callback. */
|
|
562
|
+
private _warn;
|
|
533
563
|
private _requireSigner;
|
|
534
564
|
/** Returns either a KeyPairSigner or a TransactionSender, or throws if read-only. */
|
|
535
565
|
private _requireWriteAccess;
|
|
@@ -617,5 +647,5 @@ declare function toFeedback(opts: {
|
|
|
617
647
|
outcome?: number;
|
|
618
648
|
}): Feedback$1;
|
|
619
649
|
//#endregion
|
|
620
|
-
export { type Address, type AgentId, type AgentSummary, ContentType, type Endpoint, EndpointCrawler, EndpointType, type Feedback, type FeedbackContent, type FeedbackFileInput, type FeedbackIdTuple, type FeedbackSearchFilters, type FeedbackSearchOptions, MAX_SINGLE_SIGNATURE_CONTENT_SIZE, Outcome, type PreparedFeedback, type RegistrationFile, SATI_PROGRAM_ADDRESS, SOLANA_CAIP2_CHAINS, type Sati, SatiAgent, type SatiFeedbackOptions, type SatiFeedbackSearchOptions, type SatiRegistrationFile, SatiSDK, type SatiSDKConfig, type SatiSearchOptions, type SatiTransactionSender, type SearchFilters, type SearchOptions, type Timestamp, TrustModel, type URI, type ValidationResult, type WriteAccess, buildRegistrationFile, formatSatiAgentId, fromAgent0Endpoints, fromAgent0RegistrationFile, getImageUrl, handleTransactionError, parseFeedbackContent, parseSatiAgentId, stringifyRegistrationFile, toAgent0Endpoints, toAgent0RegistrationFile, toAgentSummary, toFeedback };
|
|
650
|
+
export { type Address, type AgentId, type AgentSummary, ContentType, type Endpoint, EndpointCrawler, EndpointType, type Feedback, type FeedbackContent, type FeedbackFileInput, type FeedbackIdTuple, type FeedbackSearchFilters, type FeedbackSearchOptions, MAX_SINGLE_SIGNATURE_CONTENT_SIZE, Outcome, type PreparedFeedback, type RegistrationFile, SATI_PROGRAM_ADDRESS, SOLANA_CAIP2_CHAINS, type Sati, SatiAgent, type SatiFeedbackOptions, type SatiFeedbackSearchOptions, type SatiRegistrationFile, SatiSDK, type SatiSDKConfig, type SatiSearchOptions, type SatiTransactionSender, type SatiWarning, type SearchFilters, type SearchOptions, type Timestamp, TrustModel, type URI, type ValidationResult, type WriteAccess, buildRegistrationFile, formatSatiAgentId, fromAgent0Endpoints, fromAgent0RegistrationFile, getImageUrl, handleTransactionError, parseFeedbackContent, parseSatiAgentId, stringifyRegistrationFile, toAgent0Endpoints, toAgent0RegistrationFile, toAgentSummary, toFeedback };
|
|
621
651
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/types.ts","../src/agent.ts","../src/sdk.ts","../src/adapters.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;AAuDA;AAWA;
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/types.ts","../src/agent.ts","../src/sdk.ts","../src/adapters.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;AAuDA;AAWA;;;;;AAkBA;AAYA;AAcA;;;;;;;;;;;AAoB0B,UAhGT,qBAAA,CAgGS;EAiCT;EAcA,SAAA,OAAW,EAAA,MAAA;EAUX;;;;ACvJjB;;EAO8C,WAAA,CAAA,YAAA,EDAlB,WCAkB,EAAA,EAAA,iBAAA,CAAA,EDAiB,aCAjB,EAAA,CAAA,EDAmC,OCAnC,CAAA,MAAA,CAAA;EAOjC;;;;;EA6BiC,WAAA,EAAA,OAAA,ED9BtB,UC8BsB,CAAA,ED9BT,OC8BS,CD9BD,UC8BC,CAAA;;;;;AA4B/B,KDpDH,WAAA,GCoDG;EAYQ,IAAA,EAAA,SAAA;EAKL,MAAA,EDpEa,aCoEb;CAiD0D,GAAA;EA6BL,IAAA,EAAA,QAAA;EAyCtC,MAAA,ED1LH,qBC0LG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AA,CAAA,EEkGf,kBFlGe;;;;AA8E0D,iBEiD5D,0BAAA,CFjD4D,UAAA,EEiDrB,kBFjDqB,CAAA,EEiDI,IFjDJ,CEkD1E,kBFlD0E,EAAA,MAAA,GAAA,YAAA,CAAA,GAAA;EA6BL,IAAA,EAAA,MAAA;EAyCtC,WAAA,EAAA,MAAA;EA4BlB,KAAA,EAAA,MAAA;CAQG;;;;;;;;;;AA2LY,iBE1Md,UAAA,CF0Mc,IAAA,EAAA;EAAM,SAAA,EAAA,MAAA;EAuCT,KAAA,EAAA,MAAA;EAAU,QAAA,EAAA,MAAA;EAAO,aAAA,EAAA,MAAA;;;;IC5a/B,IAAA,CAAA,EAAO,MAAA;IAME,QAAA,CAAA,EAAA,MAAA;IAWL,IAAA,CAAA,EAAA,MAAA;IA0BH,OAAA,CAAA,EC2JA,MD3JA,CAAA,MAAA,EAAA,OAAA,CAAA;EAKK,CAAA;EAYsC,WAAA,CAAA,EAAA,MAAA;EAAM,SAAA,CAAA,EAAA,MAAA;EAOpC;EAAkB,OAAA,CAAA,EAAA,MAAA;CAAR,CAAA,ECyIjC,UDzIiC"}
|
package/dist/index.d.mts
CHANGED
|
@@ -72,6 +72,8 @@ interface SatiSDKConfig {
|
|
|
72
72
|
rpcUrl?: string;
|
|
73
73
|
/** Pinata JWT for IPFS uploads (required for registerIPFS) */
|
|
74
74
|
pinataJwt?: string;
|
|
75
|
+
/** Optional callback for non-fatal warnings (RPC failures, transient errors). */
|
|
76
|
+
onWarning?: (warning: SatiWarning) => void;
|
|
75
77
|
}
|
|
76
78
|
/**
|
|
77
79
|
* Extended search options with SATI-specific features.
|
|
@@ -158,6 +160,19 @@ interface SatiFeedbackOptions {
|
|
|
158
160
|
/** Deterministic 32-byte task reference. Default: cryptographically random */
|
|
159
161
|
taskRef?: Uint8Array;
|
|
160
162
|
}
|
|
163
|
+
/**
|
|
164
|
+
* Non-fatal warning from SDK operations.
|
|
165
|
+
*
|
|
166
|
+
* Reported via `SatiSDKConfig.onWarning` callback. Parse errors on untrusted
|
|
167
|
+
* on-chain data are silently skipped (noise). RPC/infrastructure errors are
|
|
168
|
+
* reported so consumers can wire into telemetry (Sentry, PostHog, etc.).
|
|
169
|
+
*/
|
|
170
|
+
interface SatiWarning {
|
|
171
|
+
code: "PARSE_ERROR" | "RPC_ERROR" | "SIGNATURE_LOOKUP_FAILED";
|
|
172
|
+
message: string;
|
|
173
|
+
context?: string;
|
|
174
|
+
cause?: unknown;
|
|
175
|
+
}
|
|
161
176
|
/**
|
|
162
177
|
* Validation attestation result from `searchValidations()`.
|
|
163
178
|
*/
|
|
@@ -513,6 +528,17 @@ declare class SatiSDK {
|
|
|
513
528
|
revokeFeedback(agentId: AgentId$1, feedbackIndex: number): Promise<{
|
|
514
529
|
signature: string;
|
|
515
530
|
}>;
|
|
531
|
+
/**
|
|
532
|
+
* Revoke (close) a feedback by its compressed account address.
|
|
533
|
+
*
|
|
534
|
+
* Preferred over `revokeFeedback()` - uses a stable identifier instead of
|
|
535
|
+
* a fragile array index. Get the address from `feedback.context.satiCompressedAddress`.
|
|
536
|
+
*
|
|
537
|
+
* @param compressedAddress - Base58 compressed account address
|
|
538
|
+
*/
|
|
539
|
+
revokeFeedbackByAddress(compressedAddress: string): Promise<{
|
|
540
|
+
signature: string;
|
|
541
|
+
}>;
|
|
516
542
|
/**
|
|
517
543
|
* Search validation attestations for an agent.
|
|
518
544
|
*
|
|
@@ -530,6 +556,10 @@ declare class SatiSDK {
|
|
|
530
556
|
get lookupTable(): string | undefined;
|
|
531
557
|
/** @internal */
|
|
532
558
|
get config(): SatiSDKConfig;
|
|
559
|
+
/** Safely parse JSON content from an attestation. Returns null on invalid JSON. */
|
|
560
|
+
private _parseContentJson;
|
|
561
|
+
/** Fire a non-fatal warning via the optional onWarning callback. */
|
|
562
|
+
private _warn;
|
|
533
563
|
private _requireSigner;
|
|
534
564
|
/** Returns either a KeyPairSigner or a TransactionSender, or throws if read-only. */
|
|
535
565
|
private _requireWriteAccess;
|
|
@@ -617,5 +647,5 @@ declare function toFeedback(opts: {
|
|
|
617
647
|
outcome?: number;
|
|
618
648
|
}): Feedback$1;
|
|
619
649
|
//#endregion
|
|
620
|
-
export { type Address, type AgentId, type AgentSummary, ContentType, type Endpoint, EndpointCrawler, EndpointType, type Feedback, type FeedbackContent, type FeedbackFileInput, type FeedbackIdTuple, type FeedbackSearchFilters, type FeedbackSearchOptions, MAX_SINGLE_SIGNATURE_CONTENT_SIZE, Outcome, type PreparedFeedback, type RegistrationFile, SATI_PROGRAM_ADDRESS, SOLANA_CAIP2_CHAINS, type Sati, SatiAgent, type SatiFeedbackOptions, type SatiFeedbackSearchOptions, type SatiRegistrationFile, SatiSDK, type SatiSDKConfig, type SatiSearchOptions, type SatiTransactionSender, type SearchFilters, type SearchOptions, type Timestamp, TrustModel, type URI, type ValidationResult, type WriteAccess, buildRegistrationFile, formatSatiAgentId, fromAgent0Endpoints, fromAgent0RegistrationFile, getImageUrl, handleTransactionError, parseFeedbackContent, parseSatiAgentId, stringifyRegistrationFile, toAgent0Endpoints, toAgent0RegistrationFile, toAgentSummary, toFeedback };
|
|
650
|
+
export { type Address, type AgentId, type AgentSummary, ContentType, type Endpoint, EndpointCrawler, EndpointType, type Feedback, type FeedbackContent, type FeedbackFileInput, type FeedbackIdTuple, type FeedbackSearchFilters, type FeedbackSearchOptions, MAX_SINGLE_SIGNATURE_CONTENT_SIZE, Outcome, type PreparedFeedback, type RegistrationFile, SATI_PROGRAM_ADDRESS, SOLANA_CAIP2_CHAINS, type Sati, SatiAgent, type SatiFeedbackOptions, type SatiFeedbackSearchOptions, type SatiRegistrationFile, SatiSDK, type SatiSDKConfig, type SatiSearchOptions, type SatiTransactionSender, type SatiWarning, type SearchFilters, type SearchOptions, type Timestamp, TrustModel, type URI, type ValidationResult, type WriteAccess, buildRegistrationFile, formatSatiAgentId, fromAgent0Endpoints, fromAgent0RegistrationFile, getImageUrl, handleTransactionError, parseFeedbackContent, parseSatiAgentId, stringifyRegistrationFile, toAgent0Endpoints, toAgent0RegistrationFile, toAgentSummary, toFeedback };
|
|
621
651
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/types.ts","../src/agent.ts","../src/sdk.ts","../src/adapters.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;AAuDA;AAWA;
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/types.ts","../src/agent.ts","../src/sdk.ts","../src/adapters.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;AAuDA;AAWA;;;;;AAkBA;AAYA;AAcA;;;;;;;;;;;AAoB0B,UAhGT,qBAAA,CAgGS;EAiCT;EAcA,SAAA,OAAW,EAAA,MAAA;EAUX;;;;ACvJjB;;EAO8C,WAAA,CAAA,YAAA,EDAlB,WCAkB,EAAA,EAAA,iBAAA,CAAA,EDAiB,aCAjB,EAAA,CAAA,EDAmC,OCAnC,CAAA,MAAA,CAAA;EAOjC;;;;;EA6BiC,WAAA,EAAA,OAAA,ED9BtB,UC8BsB,CAAA,ED9BT,OC8BS,CD9BD,UC8BC,CAAA;;;;;AA4B/B,KDpDH,WAAA,GCoDG;EAYQ,IAAA,EAAA,SAAA;EAKL,MAAA,EDpEa,aCoEb;CAiD0D,GAAA;EA6BL,IAAA,EAAA,QAAA;EAyCtC,MAAA,ED1LH,qBC0LG;CA4BlB;;;;;;;;AAyLgB,UDtYd,aAAA,CCsYc;EAA4C;EAAtC,OAAA,EAAA,SAAA,GAAA,QAAA,GAAA,UAAA;EAUP;EAAM,MAAA,CAAA,ED5YzB,aC4YyB;EAuCT;EAAU,iBAAA,CAAA,EDjbf,qBCibe;EAAO;;;;EC5a/B;EAMS,SAAA,CAAA,EAAA,CAAA,OAAA,EFLE,WEKF,EAAA,GAAA,IAAA;;;;;AAsDyC,UFrD9C,iBAAA,SAA0B,eEqDoB,CAAA;EAOpC;;;;;EAiBS,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