@tangle-network/agent-interface 3.0.0 → 3.1.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.
package/README.md CHANGED
@@ -5,6 +5,23 @@ agents, the sidecar, and provider adapters: capabilities, agent profiles,
5
5
  message parts, and harness descriptors. This is the canonical home for those
6
6
  shapes; higher-level packages import from here rather than redefining them.
7
7
 
8
+ ## Authored subscription seats
9
+
10
+ `AgentProfile.seats` is an optional ordered chain for continuing one logical agent
11
+ across subscriptions. Each stage pins a harness, provider, model, and account
12
+ selector. `all-eligible` lets the account manager choose each available seat in
13
+ its own order; `seat` names one account. The first stage must equal the profile's
14
+ top-level `harness`, `model.provider`, and `model.default`, so the initial run
15
+ cannot silently change its authored model. The profile's reasoning effort and
16
+ system prompt intent must be supported by every stage. The executor must check
17
+ the remaining profile capabilities and resolve seats before spend.
18
+
19
+ An omitted `seats` field preserves the legacy single-provider policy. For each
20
+ segment, the executor keeps the authored profile for identity and builds a
21
+ provider-facing projection without `seats`, setting its top-level harness and
22
+ model to the selected stage. A cross-provider continuation requires an explicit
23
+ stage in the authored chain.
24
+
8
25
  ## Profile measurements
9
26
 
10
27
  `measureAgentProfile(profile)` returns the canonical profile digest and JSON byte size,
@@ -684,11 +684,6 @@ export declare const agentCandidateProfileActivationSchema: z.ZodObject<{
684
684
  }[];
685
685
  };
686
686
  artifact: {
687
- encoding: "base64";
688
- content: string;
689
- sha256: `sha256:${string}`;
690
- byteLength: number;
691
- } | {
692
687
  locator: {
693
688
  kind: "s3";
694
689
  bucket: string;
@@ -705,6 +700,11 @@ export declare const agentCandidateProfileActivationSchema: z.ZodObject<{
705
700
  };
706
701
  sha256: `sha256:${string}`;
707
702
  byteLength: number;
703
+ } | {
704
+ encoding: "base64";
705
+ content: string;
706
+ sha256: `sha256:${string}`;
707
+ byteLength: number;
708
708
  };
709
709
  }, unknown, z.core.$ZodTypeInternals<{
710
710
  kind: "agent-profile-workspace-plan";
@@ -740,11 +740,6 @@ export declare const agentCandidateProfileActivationSchema: z.ZodObject<{
740
740
  }[];
741
741
  };
742
742
  artifact: {
743
- encoding: "base64";
744
- content: string;
745
- sha256: `sha256:${string}`;
746
- byteLength: number;
747
- } | {
748
743
  locator: {
749
744
  kind: "s3";
750
745
  bucket: string;
@@ -761,6 +756,11 @@ export declare const agentCandidateProfileActivationSchema: z.ZodObject<{
761
756
  };
762
757
  sha256: `sha256:${string}`;
763
758
  byteLength: number;
759
+ } | {
760
+ encoding: "base64";
761
+ content: string;
762
+ sha256: `sha256:${string}`;
763
+ byteLength: number;
764
764
  };
765
765
  }, unknown>>;
766
766
  files: z.ZodArray<z.ZodObject<{
@@ -808,11 +808,6 @@ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
808
808
  }[];
809
809
  };
810
810
  manifest: {
811
- encoding: "base64";
812
- content: string;
813
- sha256: `sha256:${string}`;
814
- byteLength: number;
815
- } | {
816
811
  locator: {
817
812
  kind: "s3";
818
813
  bucket: string;
@@ -829,13 +824,13 @@ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
829
824
  };
830
825
  sha256: `sha256:${string}`;
831
826
  byteLength: number;
832
- };
833
- archive: {
827
+ } | {
834
828
  encoding: "base64";
835
829
  content: string;
836
830
  sha256: `sha256:${string}`;
837
831
  byteLength: number;
838
- } | {
832
+ };
833
+ archive: {
839
834
  locator: {
840
835
  kind: "s3";
841
836
  bucket: string;
@@ -852,6 +847,11 @@ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
852
847
  };
853
848
  sha256: `sha256:${string}`;
854
849
  byteLength: number;
850
+ } | {
851
+ encoding: "base64";
852
+ content: string;
853
+ sha256: `sha256:${string}`;
854
+ byteLength: number;
855
855
  };
856
856
  } | undefined;
857
857
  profile: {
@@ -948,11 +948,6 @@ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
948
948
  reset: {
949
949
  kind: "fresh";
950
950
  evidence: {
951
- encoding: "base64";
952
- content: string;
953
- sha256: `sha256:${string}`;
954
- byteLength: number;
955
- } | {
956
951
  locator: {
957
952
  kind: "s3";
958
953
  bucket: string;
@@ -969,6 +964,11 @@ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
969
964
  };
970
965
  sha256: `sha256:${string}`;
971
966
  byteLength: number;
967
+ } | {
968
+ encoding: "base64";
969
+ content: string;
970
+ sha256: `sha256:${string}`;
971
+ byteLength: number;
972
972
  };
973
973
  emptyStateDigest: `sha256:${string}`;
974
974
  };
@@ -985,11 +985,6 @@ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
985
985
  }[];
986
986
  };
987
987
  manifest: {
988
- encoding: "base64";
989
- content: string;
990
- sha256: `sha256:${string}`;
991
- byteLength: number;
992
- } | {
993
988
  locator: {
994
989
  kind: "s3";
995
990
  bucket: string;
@@ -1006,13 +1001,13 @@ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
1006
1001
  };
1007
1002
  sha256: `sha256:${string}`;
1008
1003
  byteLength: number;
1009
- };
1010
- archive: {
1004
+ } | {
1011
1005
  encoding: "base64";
1012
1006
  content: string;
1013
1007
  sha256: `sha256:${string}`;
1014
1008
  byteLength: number;
1015
- } | {
1009
+ };
1010
+ archive: {
1016
1011
  locator: {
1017
1012
  kind: "s3";
1018
1013
  bucket: string;
@@ -1029,6 +1024,11 @@ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
1029
1024
  };
1030
1025
  sha256: `sha256:${string}`;
1031
1026
  byteLength: number;
1027
+ } | {
1028
+ encoding: "base64";
1029
+ content: string;
1030
+ sha256: `sha256:${string}`;
1031
+ byteLength: number;
1032
1032
  };
1033
1033
  };
1034
1034
  seedDigest?: `sha256:${string}` | undefined;
@@ -1072,11 +1072,6 @@ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
1072
1072
  }[];
1073
1073
  };
1074
1074
  manifest: {
1075
- encoding: "base64";
1076
- content: string;
1077
- sha256: `sha256:${string}`;
1078
- byteLength: number;
1079
- } | {
1080
1075
  locator: {
1081
1076
  kind: "s3";
1082
1077
  bucket: string;
@@ -1093,13 +1088,13 @@ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
1093
1088
  };
1094
1089
  sha256: `sha256:${string}`;
1095
1090
  byteLength: number;
1096
- };
1097
- archive: {
1091
+ } | {
1098
1092
  encoding: "base64";
1099
1093
  content: string;
1100
1094
  sha256: `sha256:${string}`;
1101
1095
  byteLength: number;
1102
- } | {
1096
+ };
1097
+ archive: {
1103
1098
  locator: {
1104
1099
  kind: "s3";
1105
1100
  bucket: string;
@@ -1116,6 +1111,11 @@ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
1116
1111
  };
1117
1112
  sha256: `sha256:${string}`;
1118
1113
  byteLength: number;
1114
+ } | {
1115
+ encoding: "base64";
1116
+ content: string;
1117
+ sha256: `sha256:${string}`;
1118
+ byteLength: number;
1119
1119
  };
1120
1120
  } | undefined;
1121
1121
  profile: {
@@ -1212,11 +1212,6 @@ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
1212
1212
  reset: {
1213
1213
  kind: "fresh";
1214
1214
  evidence: {
1215
- encoding: "base64";
1216
- content: string;
1217
- sha256: `sha256:${string}`;
1218
- byteLength: number;
1219
- } | {
1220
1215
  locator: {
1221
1216
  kind: "s3";
1222
1217
  bucket: string;
@@ -1233,6 +1228,11 @@ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
1233
1228
  };
1234
1229
  sha256: `sha256:${string}`;
1235
1230
  byteLength: number;
1231
+ } | {
1232
+ encoding: "base64";
1233
+ content: string;
1234
+ sha256: `sha256:${string}`;
1235
+ byteLength: number;
1236
1236
  };
1237
1237
  emptyStateDigest: `sha256:${string}`;
1238
1238
  };
@@ -1249,11 +1249,6 @@ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
1249
1249
  }[];
1250
1250
  };
1251
1251
  manifest: {
1252
- encoding: "base64";
1253
- content: string;
1254
- sha256: `sha256:${string}`;
1255
- byteLength: number;
1256
- } | {
1257
1252
  locator: {
1258
1253
  kind: "s3";
1259
1254
  bucket: string;
@@ -1270,13 +1265,13 @@ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
1270
1265
  };
1271
1266
  sha256: `sha256:${string}`;
1272
1267
  byteLength: number;
1273
- };
1274
- archive: {
1268
+ } | {
1275
1269
  encoding: "base64";
1276
1270
  content: string;
1277
1271
  sha256: `sha256:${string}`;
1278
1272
  byteLength: number;
1279
- } | {
1273
+ };
1274
+ archive: {
1280
1275
  locator: {
1281
1276
  kind: "s3";
1282
1277
  bucket: string;
@@ -1293,6 +1288,11 @@ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
1293
1288
  };
1294
1289
  sha256: `sha256:${string}`;
1295
1290
  byteLength: number;
1291
+ } | {
1292
+ encoding: "base64";
1293
+ content: string;
1294
+ sha256: `sha256:${string}`;
1295
+ byteLength: number;
1296
1296
  };
1297
1297
  };
1298
1298
  seedDigest?: `sha256:${string}` | undefined;