@adea-ai/sdk 1.3.2 → 1.4.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 +1 @@
1
- {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../src/operations.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4FtB,CAAA;AAEX,MAAM,MAAM,uBAAuB,GAAG,MAAM,OAAO,oBAAoB,CAAA"}
@@ -1,4 +1,4 @@
1
- import { ContextPackageResolutionRequestSchema, ContextPackageResolutionResponseSchema, ExecutionAcceptanceRequestSchema, ExecutionAcceptanceResponseSchema, ExecutionRequestValidationRequestSchema, ExecutionRequestValidationResponseSchema, ProfileResolutionRequestSchema, ProfileResolutionResponseSchema, ProjectStateResolutionRequestSchema, ProjectStateResolutionResponseSchema, RuntimeListRequestSchema, RuntimeListResponseSchema, ServiceAuthenticationRequestSchema, ServiceAuthenticationResponseSchema, ExternalSessionGetRequestSchema, ExternalSessionGetResponseSchema, ExternalSessionListRequestSchema, ExternalSessionListResponseSchema, RuntimeConnectionGetRequestSchema, RuntimeConnectionGetResponseSchema, RuntimeConnectionListRequestSchema, RuntimeConnectionListResponseSchema, MarketplaceCatalogRequestSchema, MarketplaceCatalogResponseSchema, MarketplaceInstallRequestSchema, MarketplaceInstallResponseSchema, } from '@control-plane/contracts';
1
+ import { ContextPackageResolutionRequestSchema, ContextPackageResolutionResponseSchema, ExecutionAcceptanceRequestSchema, ExecutionAcceptanceResponseSchema, ExecutionRequestValidationRequestSchema, ExecutionRequestValidationResponseSchema, ProfileResolutionRequestSchema, ProfileResolutionResponseSchema, ProjectStateResolutionRequestSchema, ProjectStateResolutionResponseSchema, RuntimeListRequestSchema, RuntimeListResponseSchema, ServiceAuthenticationRequestSchema, ServiceAuthenticationResponseSchema, ExternalSessionGetRequestSchema, ExternalSessionGetResponseSchema, ExternalSessionListRequestSchema, ExternalSessionListResponseSchema, RuntimeConnectionGetRequestSchema, RuntimeConnectionGetResponseSchema, RuntimeConnectionListRequestSchema, RuntimeConnectionListResponseSchema, MarketplaceCatalogRequestSchema, MarketplaceCatalogResponseSchema, MarketplaceInstallRequestSchema, MarketplaceInstallResponseSchema, } from '@adea-ai/contracts';
2
2
  export const ControlApiOperations = Object.freeze({
3
3
  verifyAuthentication: {
4
4
  operation: 'authentication.verify',
package/dist/testing.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createServer } from 'node:http';
2
- import { ContractVersionSchema, ControlApiFixtures, IdentifierSchemas, } from '@control-plane/contracts';
2
+ import { ContractVersionSchema, ControlApiFixtures, IdentifierSchemas, } from '@adea-ai/contracts';
3
3
  import { ControlApiOperations } from './operations.js';
4
4
  const defaultCredential = 'stub-agent-hq-token';
5
5
  const fixtureByPath = new Map([
@@ -868,100 +868,288 @@
868
868
  },
869
869
  "operation": { "const": "execution.validate", "type": "string" },
870
870
  "payload": {
871
- "properties": {
872
- "agentId": { "pattern": "^agt_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
873
- "contextPackage": {
871
+ "anyOf": [
872
+ {
874
873
  "properties": {
875
- "compilerVersion": { "maxLength": 64, "minLength": 1, "type": "string" },
876
- "contentDigest": { "pattern": "^sha256:[a-f0-9]{64}$", "type": "string" },
877
- "contextPackageId": {
878
- "pattern": "^ctx_[0-9A-HJKMNP-TV-Z]{26}$",
874
+ "agentId": {
875
+ "pattern": "^agt_[0-9A-HJKMNP-TV-Z]{26}$",
879
876
  "type": "string"
880
877
  },
881
- "schemaVersion": {
882
- "exclusiveMinimum": 0,
883
- "maximum": 9007199254740991,
884
- "type": "integer"
885
- }
878
+ "contextInputs": { "not": {} },
879
+ "contextPackage": {
880
+ "properties": {
881
+ "compilerVersion": {
882
+ "maxLength": 64,
883
+ "minLength": 1,
884
+ "type": "string"
885
+ },
886
+ "contentDigest": {
887
+ "pattern": "^sha256:[a-f0-9]{64}$",
888
+ "type": "string"
889
+ },
890
+ "contextPackageId": {
891
+ "pattern": "^ctx_[0-9A-HJKMNP-TV-Z]{26}$",
892
+ "type": "string"
893
+ },
894
+ "schemaVersion": {
895
+ "exclusiveMinimum": 0,
896
+ "maximum": 9007199254740991,
897
+ "type": "integer"
898
+ }
899
+ },
900
+ "required": [
901
+ "contextPackageId",
902
+ "contentDigest",
903
+ "schemaVersion",
904
+ "compilerVersion"
905
+ ],
906
+ "type": "object"
907
+ },
908
+ "outputContractRef": {
909
+ "maxLength": 512,
910
+ "minLength": 1,
911
+ "type": "string"
912
+ },
913
+ "policySnapshot": {
914
+ "properties": {
915
+ "contentDigest": {
916
+ "pattern": "^sha256:[a-f0-9]{64}$",
917
+ "type": "string"
918
+ },
919
+ "policySnapshotId": {
920
+ "maxLength": 256,
921
+ "minLength": 1,
922
+ "type": "string"
923
+ },
924
+ "revision": {
925
+ "exclusiveMinimum": 0,
926
+ "maximum": 9007199254740991,
927
+ "type": "integer"
928
+ }
929
+ },
930
+ "required": ["policySnapshotId", "revision", "contentDigest"],
931
+ "type": "object"
932
+ },
933
+ "profileVersionId": {
934
+ "pattern": "^pfv_[0-9A-HJKMNP-TV-Z]{26}$",
935
+ "type": "string"
936
+ },
937
+ "projectState": {
938
+ "properties": {
939
+ "projectId": {
940
+ "pattern": "^prj_[0-9A-HJKMNP-TV-Z]{26}$",
941
+ "type": "string"
942
+ },
943
+ "revision": {
944
+ "maximum": 9007199254740991,
945
+ "minimum": 0,
946
+ "type": "integer"
947
+ },
948
+ "workspaceId": {
949
+ "pattern": "^wsp_[0-9A-HJKMNP-TV-Z]{26}$",
950
+ "type": "string"
951
+ }
952
+ },
953
+ "required": ["workspaceId", "projectId", "revision"],
954
+ "type": "object"
955
+ },
956
+ "runtimeRequirements": {
957
+ "items": {
958
+ "maxLength": 128,
959
+ "minLength": 1,
960
+ "pattern": "^[a-z][a-z0-9.-]*$",
961
+ "type": "string"
962
+ },
963
+ "maxItems": 128,
964
+ "type": "array"
965
+ },
966
+ "skillVersionIds": {
967
+ "items": {
968
+ "pattern": "^skv_[0-9A-HJKMNP-TV-Z]{26}$",
969
+ "type": "string"
970
+ },
971
+ "maxItems": 128,
972
+ "type": "array"
973
+ },
974
+ "taskId": { "pattern": "^tsk_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
886
975
  },
887
976
  "required": [
888
- "contextPackageId",
889
- "contentDigest",
890
- "schemaVersion",
891
- "compilerVersion"
977
+ "taskId",
978
+ "agentId",
979
+ "profileVersionId",
980
+ "skillVersionIds",
981
+ "projectState",
982
+ "policySnapshot",
983
+ "runtimeRequirements",
984
+ "outputContractRef",
985
+ "contextPackage"
892
986
  ],
893
987
  "type": "object"
894
988
  },
895
- "outputContractRef": { "maxLength": 512, "minLength": 1, "type": "string" },
896
- "policySnapshot": {
989
+ {
897
990
  "properties": {
898
- "contentDigest": { "pattern": "^sha256:[a-f0-9]{64}$", "type": "string" },
899
- "policySnapshotId": {
900
- "maxLength": 256,
901
- "minLength": 1,
991
+ "agentId": {
992
+ "pattern": "^agt_[0-9A-HJKMNP-TV-Z]{26}$",
902
993
  "type": "string"
903
994
  },
904
- "revision": {
905
- "exclusiveMinimum": 0,
906
- "maximum": 9007199254740991,
907
- "type": "integer"
908
- }
909
- },
910
- "required": ["policySnapshotId", "revision", "contentDigest"],
911
- "type": "object"
912
- },
913
- "profileVersionId": {
914
- "pattern": "^pfv_[0-9A-HJKMNP-TV-Z]{26}$",
915
- "type": "string"
916
- },
917
- "projectState": {
918
- "properties": {
919
- "projectId": {
920
- "pattern": "^prj_[0-9A-HJKMNP-TV-Z]{26}$",
995
+ "contextInputs": {
996
+ "additionalProperties": false,
997
+ "properties": {
998
+ "budgets": {
999
+ "additionalProperties": false,
1000
+ "properties": {
1001
+ "maximumBytes": {
1002
+ "exclusiveMinimum": 0,
1003
+ "maximum": 9007199254740991,
1004
+ "type": "integer"
1005
+ },
1006
+ "maximumTokens": {
1007
+ "exclusiveMinimum": 0,
1008
+ "maximum": 9007199254740991,
1009
+ "type": "integer"
1010
+ }
1011
+ },
1012
+ "required": ["maximumBytes", "maximumTokens"],
1013
+ "type": "object"
1014
+ },
1015
+ "candidates": {
1016
+ "items": {
1017
+ "additionalProperties": false,
1018
+ "properties": {
1019
+ "itemId": {
1020
+ "pattern": "^psi_[0-9A-HJKMNP-TV-Z]{26}$",
1021
+ "type": "string"
1022
+ },
1023
+ "itemRevision": {
1024
+ "exclusiveMinimum": 0,
1025
+ "maximum": 9007199254740991,
1026
+ "type": "integer"
1027
+ },
1028
+ "priority": {
1029
+ "maximum": 9007199254740991,
1030
+ "minimum": -9007199254740991,
1031
+ "type": "integer"
1032
+ },
1033
+ "required": { "type": "boolean" }
1034
+ },
1035
+ "required": ["itemId", "itemRevision", "required", "priority"],
1036
+ "type": "object"
1037
+ },
1038
+ "maxItems": 10000,
1039
+ "type": "array"
1040
+ },
1041
+ "objective": { "maxLength": 16384, "minLength": 1, "type": "string" },
1042
+ "returnContract": {
1043
+ "additionalProperties": false,
1044
+ "properties": {
1045
+ "contractRef": {
1046
+ "maxLength": 512,
1047
+ "minLength": 1,
1048
+ "type": "string"
1049
+ }
1050
+ },
1051
+ "required": ["contractRef"],
1052
+ "type": "object"
1053
+ },
1054
+ "successCriteria": {
1055
+ "items": { "maxLength": 4096, "minLength": 1, "type": "string" },
1056
+ "maxItems": 128,
1057
+ "minItems": 1,
1058
+ "type": "array"
1059
+ }
1060
+ },
1061
+ "required": [
1062
+ "objective",
1063
+ "candidates",
1064
+ "successCriteria",
1065
+ "returnContract",
1066
+ "budgets"
1067
+ ],
1068
+ "type": "object"
1069
+ },
1070
+ "contextPackage": { "not": {} },
1071
+ "outputContractRef": {
1072
+ "maxLength": 512,
1073
+ "minLength": 1,
921
1074
  "type": "string"
922
1075
  },
923
- "revision": {
924
- "maximum": 9007199254740991,
925
- "minimum": 0,
926
- "type": "integer"
1076
+ "policySnapshot": {
1077
+ "properties": {
1078
+ "contentDigest": {
1079
+ "pattern": "^sha256:[a-f0-9]{64}$",
1080
+ "type": "string"
1081
+ },
1082
+ "policySnapshotId": {
1083
+ "maxLength": 256,
1084
+ "minLength": 1,
1085
+ "type": "string"
1086
+ },
1087
+ "revision": {
1088
+ "exclusiveMinimum": 0,
1089
+ "maximum": 9007199254740991,
1090
+ "type": "integer"
1091
+ }
1092
+ },
1093
+ "required": ["policySnapshotId", "revision", "contentDigest"],
1094
+ "type": "object"
927
1095
  },
928
- "workspaceId": {
929
- "pattern": "^wsp_[0-9A-HJKMNP-TV-Z]{26}$",
1096
+ "profileVersionId": {
1097
+ "pattern": "^pfv_[0-9A-HJKMNP-TV-Z]{26}$",
930
1098
  "type": "string"
931
- }
1099
+ },
1100
+ "projectState": {
1101
+ "properties": {
1102
+ "projectId": {
1103
+ "pattern": "^prj_[0-9A-HJKMNP-TV-Z]{26}$",
1104
+ "type": "string"
1105
+ },
1106
+ "revision": {
1107
+ "maximum": 9007199254740991,
1108
+ "minimum": 0,
1109
+ "type": "integer"
1110
+ },
1111
+ "workspaceId": {
1112
+ "pattern": "^wsp_[0-9A-HJKMNP-TV-Z]{26}$",
1113
+ "type": "string"
1114
+ }
1115
+ },
1116
+ "required": ["workspaceId", "projectId", "revision"],
1117
+ "type": "object"
1118
+ },
1119
+ "runtimeRequirements": {
1120
+ "items": {
1121
+ "maxLength": 128,
1122
+ "minLength": 1,
1123
+ "pattern": "^[a-z][a-z0-9.-]*$",
1124
+ "type": "string"
1125
+ },
1126
+ "maxItems": 128,
1127
+ "type": "array"
1128
+ },
1129
+ "skillVersionIds": {
1130
+ "items": {
1131
+ "pattern": "^skv_[0-9A-HJKMNP-TV-Z]{26}$",
1132
+ "type": "string"
1133
+ },
1134
+ "maxItems": 128,
1135
+ "type": "array"
1136
+ },
1137
+ "taskId": { "pattern": "^tsk_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
932
1138
  },
933
- "required": ["workspaceId", "projectId", "revision"],
1139
+ "required": [
1140
+ "taskId",
1141
+ "agentId",
1142
+ "profileVersionId",
1143
+ "skillVersionIds",
1144
+ "projectState",
1145
+ "policySnapshot",
1146
+ "runtimeRequirements",
1147
+ "outputContractRef",
1148
+ "contextInputs"
1149
+ ],
934
1150
  "type": "object"
935
- },
936
- "runtimeRequirements": {
937
- "items": {
938
- "maxLength": 128,
939
- "minLength": 1,
940
- "pattern": "^[a-z][a-z0-9.-]*$",
941
- "type": "string"
942
- },
943
- "maxItems": 128,
944
- "type": "array"
945
- },
946
- "skillVersionIds": {
947
- "items": { "pattern": "^skv_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
948
- "maxItems": 128,
949
- "type": "array"
950
- },
951
- "taskId": { "pattern": "^tsk_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" }
952
- },
953
- "required": [
954
- "taskId",
955
- "agentId",
956
- "profileVersionId",
957
- "skillVersionIds",
958
- "projectState",
959
- "contextPackage",
960
- "policySnapshot",
961
- "runtimeRequirements",
962
- "outputContractRef"
963
- ],
964
- "type": "object"
1151
+ }
1152
+ ]
965
1153
  },
966
1154
  "payloadHash": { "pattern": "^[a-f0-9]{64}$", "type": "string" },
967
1155
  "projectId": { "pattern": "^prj_[0-9A-HJKMNP-TV-Z]{26}$", "type": "string" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adea-ai/sdk",
3
- "version": "1.3.2",
3
+ "version": "1.4.0",
4
4
  "description": "Typed client for the Control Plane API with transport, response mapping, OpenAPI baseline, and testing helpers.",
5
5
  "keywords": [
6
6
  "agents",
@@ -49,7 +49,7 @@
49
49
  "test": "bun test src/*.test.mjs"
50
50
  },
51
51
  "dependencies": {
52
- "@adea-ai/contracts": "^1.5.2"
52
+ "@adea-ai/contracts": "^1.6.0"
53
53
  },
54
54
  "devDependencies": {
55
55
  "zod": "4.5.4"