@oro-ai/sdk 1.0.107 → 1.0.109

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/dist/index.d.mts CHANGED
@@ -975,11 +975,7 @@ type ClaimWorkResponse = {
975
975
  */
976
976
  code_download_url: string;
977
977
  /**
978
- * ExecutionContract this work item is frozen to (ORO-1928). Stamped at work-item creation, immutable after — contract rotations/retirements after creation do NOT change what pack this claim is bound to. Null for legacy pre-1928 work items that fall back to the static-suite path.
979
- */
980
- execution_contract_id?: (string | null);
981
- /**
982
- * Content-hash of the sealed environment pack this work item is bound to (ORO-1928). Derived from the frozen execution_contract_id — validators load and run against this sha regardless of any contract activity after the work item was created. Null for legacy work items with no binding.
978
+ * Content-hash of the sealed environment pack this work item is frozen to (ORO-2062). Stamped at work-item creation, immutable after — validators load and run against this sha regardless of any suite/race pack rotation after the work item was created. Null for legacy work items with no binding (static-suite path).
983
979
  */
984
980
  env_pack_sha256?: (string | null);
985
981
  /**
@@ -1245,7 +1241,7 @@ type EvaluationExecutionRead = {
1245
1241
  completed_at: (string | null);
1246
1242
  score: (number | null);
1247
1243
  execution_kind: 'legacy_shoppingbench' | 'envpack';
1248
- execution_contract_id?: (string | null);
1244
+ env_pack_sha256?: (string | null);
1249
1245
  environment?: (SafeEnvironmentMetadata | null);
1250
1246
  detail_released?: boolean;
1251
1247
  };
@@ -1344,7 +1340,7 @@ type EvaluationRunDetail = {
1344
1340
  [key: string]: unknown;
1345
1341
  } | null);
1346
1342
  execution_kind?: 'legacy_shoppingbench' | 'envpack';
1347
- execution_contract_id?: (string | null);
1343
+ env_pack_sha256?: (string | null);
1348
1344
  environment?: (SafeEnvironmentMetadata | null);
1349
1345
  items?: (EvaluationItemsRead | null);
1350
1346
  };
@@ -2929,7 +2925,7 @@ type SuitePublic = {
2929
2925
  is_active: boolean;
2930
2926
  execution_kind?: 'legacy_shoppingbench' | 'envpack';
2931
2927
  environment?: (SafeEnvironmentMetadata | null);
2932
- execution_contract_id?: (string | null);
2928
+ env_pack_sha256?: (string | null);
2933
2929
  /**
2934
2930
  * Envpack benchmark display name (from server config).
2935
2931
  */
@@ -4089,7 +4085,7 @@ type ActivateSuiteData = {
4089
4085
  };
4090
4086
  };
4091
4087
  type ActivateSuiteResponse2 = (ActivateSuiteResponse);
4092
- type ActivateSuiteError = (SuiteNotFoundError | HTTPValidationError);
4088
+ type ActivateSuiteError = (SuiteNotFoundError | unknown | HTTPValidationError);
4093
4089
  type GetAuditEventsData = {
4094
4090
  query?: {
4095
4091
  /**
@@ -4845,12 +4841,12 @@ declare const cancelAgentVersion: <ThrowOnError extends boolean = false>(options
4845
4841
  declare const createSuite: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateSuiteData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateSuiteResponse, HTTPValidationError, ThrowOnError>;
4846
4842
  /**
4847
4843
  * Activate a problem suite
4848
- * Activate a suite, making it the current active suite (deactivates others).
4844
+ * Activate a suite after evaluation work has drained.
4849
4845
  *
4850
- * Automatically requeues the top N agent versions from the previous suite
4851
- * so validators have work immediately and the leaderboard populates quickly.
4846
+ * The orchestrator lock makes the suite swap atomic with cancellation of stale
4847
+ * inactive-suite race shells. Historical work and results are never rewritten.
4852
4848
  */
4853
- declare const activateSuite: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ActivateSuiteData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ActivateSuiteResponse, ActivateSuiteError, ThrowOnError>;
4849
+ declare const activateSuite: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ActivateSuiteData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ActivateSuiteResponse, unknown, ThrowOnError>;
4854
4850
  /**
4855
4851
  * Get audit events
4856
4852
  * Retrieve audit events with optional filtering and pagination.
package/dist/index.d.ts CHANGED
@@ -975,11 +975,7 @@ type ClaimWorkResponse = {
975
975
  */
976
976
  code_download_url: string;
977
977
  /**
978
- * ExecutionContract this work item is frozen to (ORO-1928). Stamped at work-item creation, immutable after — contract rotations/retirements after creation do NOT change what pack this claim is bound to. Null for legacy pre-1928 work items that fall back to the static-suite path.
979
- */
980
- execution_contract_id?: (string | null);
981
- /**
982
- * Content-hash of the sealed environment pack this work item is bound to (ORO-1928). Derived from the frozen execution_contract_id — validators load and run against this sha regardless of any contract activity after the work item was created. Null for legacy work items with no binding.
978
+ * Content-hash of the sealed environment pack this work item is frozen to (ORO-2062). Stamped at work-item creation, immutable after — validators load and run against this sha regardless of any suite/race pack rotation after the work item was created. Null for legacy work items with no binding (static-suite path).
983
979
  */
984
980
  env_pack_sha256?: (string | null);
985
981
  /**
@@ -1245,7 +1241,7 @@ type EvaluationExecutionRead = {
1245
1241
  completed_at: (string | null);
1246
1242
  score: (number | null);
1247
1243
  execution_kind: 'legacy_shoppingbench' | 'envpack';
1248
- execution_contract_id?: (string | null);
1244
+ env_pack_sha256?: (string | null);
1249
1245
  environment?: (SafeEnvironmentMetadata | null);
1250
1246
  detail_released?: boolean;
1251
1247
  };
@@ -1344,7 +1340,7 @@ type EvaluationRunDetail = {
1344
1340
  [key: string]: unknown;
1345
1341
  } | null);
1346
1342
  execution_kind?: 'legacy_shoppingbench' | 'envpack';
1347
- execution_contract_id?: (string | null);
1343
+ env_pack_sha256?: (string | null);
1348
1344
  environment?: (SafeEnvironmentMetadata | null);
1349
1345
  items?: (EvaluationItemsRead | null);
1350
1346
  };
@@ -2929,7 +2925,7 @@ type SuitePublic = {
2929
2925
  is_active: boolean;
2930
2926
  execution_kind?: 'legacy_shoppingbench' | 'envpack';
2931
2927
  environment?: (SafeEnvironmentMetadata | null);
2932
- execution_contract_id?: (string | null);
2928
+ env_pack_sha256?: (string | null);
2933
2929
  /**
2934
2930
  * Envpack benchmark display name (from server config).
2935
2931
  */
@@ -4089,7 +4085,7 @@ type ActivateSuiteData = {
4089
4085
  };
4090
4086
  };
4091
4087
  type ActivateSuiteResponse2 = (ActivateSuiteResponse);
4092
- type ActivateSuiteError = (SuiteNotFoundError | HTTPValidationError);
4088
+ type ActivateSuiteError = (SuiteNotFoundError | unknown | HTTPValidationError);
4093
4089
  type GetAuditEventsData = {
4094
4090
  query?: {
4095
4091
  /**
@@ -4845,12 +4841,12 @@ declare const cancelAgentVersion: <ThrowOnError extends boolean = false>(options
4845
4841
  declare const createSuite: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateSuiteData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateSuiteResponse, HTTPValidationError, ThrowOnError>;
4846
4842
  /**
4847
4843
  * Activate a problem suite
4848
- * Activate a suite, making it the current active suite (deactivates others).
4844
+ * Activate a suite after evaluation work has drained.
4849
4845
  *
4850
- * Automatically requeues the top N agent versions from the previous suite
4851
- * so validators have work immediately and the leaderboard populates quickly.
4846
+ * The orchestrator lock makes the suite swap atomic with cancellation of stale
4847
+ * inactive-suite race shells. Historical work and results are never rewritten.
4852
4848
  */
4853
- declare const activateSuite: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ActivateSuiteData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ActivateSuiteResponse, ActivateSuiteError, ThrowOnError>;
4849
+ declare const activateSuite: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ActivateSuiteData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ActivateSuiteResponse, unknown, ThrowOnError>;
4854
4850
  /**
4855
4851
  * Get audit events
4856
4852
  * Retrieve audit events with optional filtering and pagination.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oro-ai/sdk",
3
- "version": "1.0.107",
3
+ "version": "1.0.109",
4
4
  "description": "Official TypeScript SDK for the ORO Bittensor Subnet API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -802,10 +802,10 @@ export const createSuite = <ThrowOnError extends boolean = false>(options: Optio
802
802
 
803
803
  /**
804
804
  * Activate a problem suite
805
- * Activate a suite, making it the current active suite (deactivates others).
805
+ * Activate a suite after evaluation work has drained.
806
806
  *
807
- * Automatically requeues the top N agent versions from the previous suite
808
- * so validators have work immediately and the leaderboard populates quickly.
807
+ * The orchestrator lock makes the suite swap atomic with cancellation of stale
808
+ * inactive-suite race shells. Historical work and results are never rewritten.
809
809
  */
810
810
  export const activateSuite = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ActivateSuiteData, ThrowOnError>) => {
811
811
  return (options?.client ?? client).post<ActivateSuiteResponse2, ActivateSuiteError, ThrowOnError>({
@@ -1017,11 +1017,7 @@ export type ClaimWorkResponse = {
1017
1017
  */
1018
1018
  code_download_url: string;
1019
1019
  /**
1020
- * ExecutionContract this work item is frozen to (ORO-1928). Stamped at work-item creation, immutable after — contract rotations/retirements after creation do NOT change what pack this claim is bound to. Null for legacy pre-1928 work items that fall back to the static-suite path.
1021
- */
1022
- execution_contract_id?: (string | null);
1023
- /**
1024
- * Content-hash of the sealed environment pack this work item is bound to (ORO-1928). Derived from the frozen execution_contract_id — validators load and run against this sha regardless of any contract activity after the work item was created. Null for legacy work items with no binding.
1020
+ * Content-hash of the sealed environment pack this work item is frozen to (ORO-2062). Stamped at work-item creation, immutable after — validators load and run against this sha regardless of any suite/race pack rotation after the work item was created. Null for legacy work items with no binding (static-suite path).
1025
1021
  */
1026
1022
  env_pack_sha256?: (string | null);
1027
1023
  /**
@@ -1303,7 +1299,7 @@ export type EvaluationExecutionRead = {
1303
1299
  completed_at: (string | null);
1304
1300
  score: (number | null);
1305
1301
  execution_kind: 'legacy_shoppingbench' | 'envpack';
1306
- execution_contract_id?: (string | null);
1302
+ env_pack_sha256?: (string | null);
1307
1303
  environment?: (SafeEnvironmentMetadata | null);
1308
1304
  detail_released?: boolean;
1309
1305
  };
@@ -1408,7 +1404,7 @@ export type EvaluationRunDetail = {
1408
1404
  [key: string]: unknown;
1409
1405
  } | null);
1410
1406
  execution_kind?: 'legacy_shoppingbench' | 'envpack';
1411
- execution_contract_id?: (string | null);
1407
+ env_pack_sha256?: (string | null);
1412
1408
  environment?: (SafeEnvironmentMetadata | null);
1413
1409
  items?: (EvaluationItemsRead | null);
1414
1410
  };
@@ -3084,7 +3080,7 @@ export type SuitePublic = {
3084
3080
  is_active: boolean;
3085
3081
  execution_kind?: 'legacy_shoppingbench' | 'envpack';
3086
3082
  environment?: (SafeEnvironmentMetadata | null);
3087
- execution_contract_id?: (string | null);
3083
+ env_pack_sha256?: (string | null);
3088
3084
  /**
3089
3085
  * Envpack benchmark display name (from server config).
3090
3086
  */
@@ -4451,7 +4447,7 @@ export type ActivateSuiteData = {
4451
4447
 
4452
4448
  export type ActivateSuiteResponse2 = (ActivateSuiteResponse);
4453
4449
 
4454
- export type ActivateSuiteError = (SuiteNotFoundError | HTTPValidationError);
4450
+ export type ActivateSuiteError = (SuiteNotFoundError | unknown | HTTPValidationError);
4455
4451
 
4456
4452
  export type GetAuditEventsData = {
4457
4453
  query?: {