@chaoschain/sdk 0.2.4 → 0.3.0

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.
@@ -1,4 +1,4 @@
1
- import { o as ComputeProvider } from '../../types-DZze-Z8B.cjs';
1
+ import { o as ComputeProvider } from '../../types-BBVtx_jV.cjs';
2
2
  import 'ethers';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { o as ComputeProvider } from '../../types-DZze-Z8B.js';
1
+ import { o as ComputeProvider } from '../../types-BBVtx_jV.js';
2
2
  import 'ethers';
3
3
 
4
4
  /**
@@ -1,5 +1,5 @@
1
- export { I as IPFSLocalStorage } from '../../IPFSLocal-azjjaiGR.cjs';
2
- import { n as StorageProvider, U as UploadOptions, i as UploadResult } from '../../types-DZze-Z8B.cjs';
1
+ export { I as IPFSLocalStorage } from '../../IPFSLocal-zRj6kG8e.cjs';
2
+ import { n as StorageProvider, U as UploadOptions, i as UploadResult } from '../../types-BBVtx_jV.cjs';
3
3
  import 'ethers';
4
4
 
5
5
  /**
@@ -1,5 +1,5 @@
1
- export { I as IPFSLocalStorage } from '../../IPFSLocal-BqyHRp_l.js';
2
- import { n as StorageProvider, U as UploadOptions, i as UploadResult } from '../../types-DZze-Z8B.js';
1
+ export { I as IPFSLocalStorage } from '../../IPFSLocal-B4hnMEfS.js';
2
+ import { n as StorageProvider, U as UploadOptions, i as UploadResult } from '../../types-BBVtx_jV.js';
3
3
  import 'ethers';
4
4
 
5
5
  /**
@@ -214,11 +214,13 @@ declare function composeScoreVector(signals: AgencySignals, assessment: Verifier
214
214
  */
215
215
  declare function composeScoreVectorWithDefaults(signals: AgencySignals, assessment?: DemoAssessment): [number, number, number, number, number];
216
216
  /**
217
- * Convenience wrapper: extract signals + compose score vector in one call.
217
+ * @deprecated
218
+ * Demo helper for quick scoring without verifier judgment.
219
+ * Verifier agents should use verifyWorkEvidence() + composeScoreVector().
218
220
  *
221
+ * Convenience wrapper: extract signals + compose score vector in one call.
219
222
  * Returns [Initiative, Collaboration, Reasoning, Compliance, Efficiency]
220
223
  * as integers 0..100 for on-chain submission.
221
- *
222
224
  * Uses composeScoreVectorWithDefaults internally — compliance and efficiency
223
225
  * fall back to signals or 0 when not provided.
224
226
  */
@@ -718,11 +720,17 @@ interface GatewayClientConfig {
718
720
  }
719
721
  interface PendingWorkItem {
720
722
  work_id: string;
723
+ data_hash: string;
721
724
  agent_id: number;
725
+ worker_address: string;
726
+ studio_address: string;
722
727
  epoch: number | null;
723
728
  submitted_at: string;
724
729
  evidence_anchor: string | null;
725
730
  derivation_root: string | null;
731
+ studio_policy_version: string;
732
+ work_mandate_id: string;
733
+ task_type: string;
726
734
  }
727
735
  interface PendingWorkResponse {
728
736
  version: string;
@@ -214,11 +214,13 @@ declare function composeScoreVector(signals: AgencySignals, assessment: Verifier
214
214
  */
215
215
  declare function composeScoreVectorWithDefaults(signals: AgencySignals, assessment?: DemoAssessment): [number, number, number, number, number];
216
216
  /**
217
- * Convenience wrapper: extract signals + compose score vector in one call.
217
+ * @deprecated
218
+ * Demo helper for quick scoring without verifier judgment.
219
+ * Verifier agents should use verifyWorkEvidence() + composeScoreVector().
218
220
  *
221
+ * Convenience wrapper: extract signals + compose score vector in one call.
219
222
  * Returns [Initiative, Collaboration, Reasoning, Compliance, Efficiency]
220
223
  * as integers 0..100 for on-chain submission.
221
- *
222
224
  * Uses composeScoreVectorWithDefaults internally — compliance and efficiency
223
225
  * fall back to signals or 0 when not provided.
224
226
  */
@@ -718,11 +720,17 @@ interface GatewayClientConfig {
718
720
  }
719
721
  interface PendingWorkItem {
720
722
  work_id: string;
723
+ data_hash: string;
721
724
  agent_id: number;
725
+ worker_address: string;
726
+ studio_address: string;
722
727
  epoch: number | null;
723
728
  submitted_at: string;
724
729
  evidence_anchor: string | null;
725
730
  derivation_root: string | null;
731
+ studio_policy_version: string;
732
+ work_mandate_id: string;
733
+ task_type: string;
726
734
  }
727
735
  interface PendingWorkResponse {
728
736
  version: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chaoschain/sdk",
3
- "version": "0.2.4",
3
+ "version": "0.3.0",
4
4
  "type": "module",
5
5
  "description": "TypeScript SDK for building verifiable AI agents on ChaosChain",
6
6
  "main": "./dist/index.cjs",