@agentmc/api 0.2.4 → 0.2.7

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.
@@ -198,84 +198,6 @@ declare const operations: readonly [{
198
198
  };
199
199
  };
200
200
  }];
201
- }, {
202
- readonly operationId: "agentInstructions";
203
- readonly method: "get";
204
- readonly path: "/agents/{agent}/agent-instructions";
205
- readonly summary: "Return agent instructions for a connected agent using bearer auth.";
206
- readonly description: "";
207
- readonly tags: ["Agents"];
208
- readonly security: [["AgentBearerAuth"]];
209
- readonly parameters: [{
210
- readonly name: "agent";
211
- readonly in: "path";
212
- readonly required: true;
213
- readonly description: "Agent identifier.";
214
- readonly example: 1;
215
- }];
216
- readonly requestBodyRequired: false;
217
- readonly requestExamples: [];
218
- readonly responses: [{
219
- readonly status: "200";
220
- readonly mediaType: "application/json";
221
- readonly description: "Agent instructions returned.";
222
- readonly hasContent: true;
223
- readonly example: {
224
- readonly agent_instructions: "# Agent Instructions";
225
- readonly agent_instructions_version: "32fe7fd14fca2d57c545f5f78f4a1c094f9ac1b3a1e8f6f9f8323b67a0ef9cc3";
226
- readonly docs: readonly [];
227
- readonly schedules: readonly [];
228
- readonly config: {};
229
- };
230
- }, {
231
- readonly status: "401";
232
- readonly mediaType: "application/json";
233
- readonly description: "Missing or invalid credentials.";
234
- readonly hasContent: true;
235
- readonly example: {
236
- readonly error: {
237
- readonly code: "validation.failed";
238
- readonly message: "Validation failed.";
239
- readonly details: {
240
- readonly fields: {
241
- readonly title: readonly ["The title field is required."];
242
- };
243
- };
244
- };
245
- };
246
- }, {
247
- readonly status: "403";
248
- readonly mediaType: "application/json";
249
- readonly description: "Forbidden.";
250
- readonly hasContent: true;
251
- readonly example: {
252
- readonly error: {
253
- readonly code: "validation.failed";
254
- readonly message: "Validation failed.";
255
- readonly details: {
256
- readonly fields: {
257
- readonly title: readonly ["The title field is required."];
258
- };
259
- };
260
- };
261
- };
262
- }, {
263
- readonly status: "404";
264
- readonly mediaType: "application/json";
265
- readonly description: "Resource not found.";
266
- readonly hasContent: true;
267
- readonly example: {
268
- readonly error: {
269
- readonly code: "validation.failed";
270
- readonly message: "Validation failed.";
271
- readonly details: {
272
- readonly fields: {
273
- readonly title: readonly ["The title field is required."];
274
- };
275
- };
276
- };
277
- };
278
- }];
279
201
  }, {
280
202
  readonly operationId: "authenticateAgentRealtimeSocket";
281
203
  readonly method: "post";
@@ -752,132 +674,6 @@ declare const operations: readonly [{
752
674
  };
753
675
  };
754
676
  }];
755
- }, {
756
- readonly operationId: "connectAgent";
757
- readonly method: "post";
758
- readonly path: "/agents/connect";
759
- readonly summary: "Connect and register one agent using a short-lived connect token.";
760
- readonly description: "";
761
- readonly tags: ["Agents"];
762
- readonly security: [["ConnectTokenAuth"]];
763
- readonly parameters: [];
764
- readonly requestBodyRequired: true;
765
- readonly requestExamples: [{
766
- readonly mediaType: "application/json";
767
- readonly example: {
768
- readonly host: "ip-10-0-3-42";
769
- readonly runtime_version: "2026.02.1";
770
- readonly capabilities: readonly ["tasks", "calendar", "realtime"];
771
- readonly agents_md: "# Existing AGENTS.md\n\n## Runtime\n- Keep heartbeat alive.\n";
772
- readonly models: readonly [{
773
- readonly model_id: "openai/gpt-5-codex";
774
- readonly provider: "openai";
775
- }, {
776
- readonly model_id: "anthropic/claude-sonnet-4-20250514";
777
- readonly provider: "anthropic";
778
- }];
779
- readonly identity: {
780
- readonly name: "Jarvis";
781
- readonly creature: "robot";
782
- readonly vibe: "calm";
783
- };
784
- readonly metadata: {
785
- readonly hostname: "worker-01";
786
- readonly ip: "10.0.2.15";
787
- readonly network: {
788
- readonly private_ip: "10.0.2.15";
789
- readonly public_ip: "34.201.22.9";
790
- };
791
- readonly os: "Ubuntu";
792
- readonly os_version: "22.04";
793
- readonly arch: "x86_64";
794
- readonly cpu: "Intel Xeon";
795
- readonly cpu_cores: 8;
796
- readonly ram_gb: 32;
797
- readonly disk: {
798
- readonly total_bytes: 512110190592;
799
- readonly free_bytes: 321102110720;
800
- };
801
- readonly uptime_seconds: 86400;
802
- readonly runtime: {
803
- readonly name: "codex";
804
- readonly version: "2026.02.1";
805
- };
806
- readonly identity: {
807
- readonly name: "Jarvis";
808
- };
809
- };
810
- };
811
- }];
812
- readonly responses: [{
813
- readonly status: "201";
814
- readonly mediaType: "application/json";
815
- readonly description: "Agent connected and bearer token issued.";
816
- readonly hasContent: true;
817
- readonly example: {
818
- readonly agent_id: 42;
819
- readonly agent_token: "mca_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
820
- readonly agent_instructions_endpoint: "https://agentmc.example.com/api/v1/agents/42/agent-instructions";
821
- readonly agent_authenticated_instructions_endpoint: "https://agentmc.example.com/api/v1/agents/42/agent-instructions";
822
- readonly agent_instructions_version: "32fe7fd14fca2d57c545f5f78f4a1c094f9ac1b3a1e8f6f9f8323b67a0ef9cc3";
823
- readonly openapi_url: "https://agentmc.example.com/api/openapi.json";
824
- readonly workspace: {
825
- readonly id: 7;
826
- readonly name: "AgentMC Demo Workspace";
827
- };
828
- readonly heartbeat_interval_seconds: 300;
829
- readonly server_time: "2026-02-22T17:20:53Z";
830
- readonly first_sync_required: true;
831
- };
832
- }, {
833
- readonly status: "401";
834
- readonly mediaType: "application/json";
835
- readonly description: "Missing or invalid credentials.";
836
- readonly hasContent: true;
837
- readonly example: {
838
- readonly error: {
839
- readonly code: "validation.failed";
840
- readonly message: "Validation failed.";
841
- readonly details: {
842
- readonly fields: {
843
- readonly title: readonly ["The title field is required."];
844
- };
845
- };
846
- };
847
- };
848
- }, {
849
- readonly status: "403";
850
- readonly mediaType: "application/json";
851
- readonly description: "Forbidden.";
852
- readonly hasContent: true;
853
- readonly example: {
854
- readonly error: {
855
- readonly code: "validation.failed";
856
- readonly message: "Validation failed.";
857
- readonly details: {
858
- readonly fields: {
859
- readonly title: readonly ["The title field is required."];
860
- };
861
- };
862
- };
863
- };
864
- }, {
865
- readonly status: "422";
866
- readonly mediaType: "application/json";
867
- readonly description: "Validation failed.";
868
- readonly hasContent: true;
869
- readonly example: {
870
- readonly error: {
871
- readonly code: "validation.failed";
872
- readonly message: "Validation failed.";
873
- readonly details: {
874
- readonly fields: {
875
- readonly title: readonly ["The title field is required."];
876
- };
877
- };
878
- };
879
- };
880
- }];
881
677
  }, {
882
678
  readonly operationId: "createAgentBrief";
883
679
  readonly method: "post";
@@ -2736,7 +2532,6 @@ declare const operations: readonly [{
2736
2532
  }];
2737
2533
  };
2738
2534
  readonly last_seen_at: "2026-02-24T02:11:00Z";
2739
- readonly first_sync_at: "2026-02-24T02:01:00Z";
2740
2535
  readonly tasks_count: 3;
2741
2536
  readonly created_at: "2026-02-24T01:56:00Z";
2742
2537
  readonly updated_at: "2026-02-24T02:11:00Z";
@@ -206,104 +206,6 @@ var operations = [
206
206
  }
207
207
  ]
208
208
  },
209
- {
210
- "operationId": "agentInstructions",
211
- "method": "get",
212
- "path": "/agents/{agent}/agent-instructions",
213
- "summary": "Return agent instructions for a connected agent using bearer auth.",
214
- "description": "",
215
- "tags": [
216
- "Agents"
217
- ],
218
- "security": [
219
- [
220
- "AgentBearerAuth"
221
- ]
222
- ],
223
- "parameters": [
224
- {
225
- "name": "agent",
226
- "in": "path",
227
- "required": true,
228
- "description": "Agent identifier.",
229
- "example": 1
230
- }
231
- ],
232
- "requestBodyRequired": false,
233
- "requestExamples": [],
234
- "responses": [
235
- {
236
- "status": "200",
237
- "mediaType": "application/json",
238
- "description": "Agent instructions returned.",
239
- "hasContent": true,
240
- "example": {
241
- "agent_instructions": "# Agent Instructions",
242
- "agent_instructions_version": "32fe7fd14fca2d57c545f5f78f4a1c094f9ac1b3a1e8f6f9f8323b67a0ef9cc3",
243
- "docs": [],
244
- "schedules": [],
245
- "config": {}
246
- }
247
- },
248
- {
249
- "status": "401",
250
- "mediaType": "application/json",
251
- "description": "Missing or invalid credentials.",
252
- "hasContent": true,
253
- "example": {
254
- "error": {
255
- "code": "validation.failed",
256
- "message": "Validation failed.",
257
- "details": {
258
- "fields": {
259
- "title": [
260
- "The title field is required."
261
- ]
262
- }
263
- }
264
- }
265
- }
266
- },
267
- {
268
- "status": "403",
269
- "mediaType": "application/json",
270
- "description": "Forbidden.",
271
- "hasContent": true,
272
- "example": {
273
- "error": {
274
- "code": "validation.failed",
275
- "message": "Validation failed.",
276
- "details": {
277
- "fields": {
278
- "title": [
279
- "The title field is required."
280
- ]
281
- }
282
- }
283
- }
284
- }
285
- },
286
- {
287
- "status": "404",
288
- "mediaType": "application/json",
289
- "description": "Resource not found.",
290
- "hasContent": true,
291
- "example": {
292
- "error": {
293
- "code": "validation.failed",
294
- "message": "Validation failed.",
295
- "details": {
296
- "fields": {
297
- "title": [
298
- "The title field is required."
299
- ]
300
- }
301
- }
302
- }
303
- }
304
- }
305
- ]
306
- },
307
209
  {
308
210
  "operationId": "authenticateAgentRealtimeSocket",
309
211
  "method": "post",
@@ -913,159 +815,6 @@ var operations = [
913
815
  }
914
816
  ]
915
817
  },
916
- {
917
- "operationId": "connectAgent",
918
- "method": "post",
919
- "path": "/agents/connect",
920
- "summary": "Connect and register one agent using a short-lived connect token.",
921
- "description": "",
922
- "tags": [
923
- "Agents"
924
- ],
925
- "security": [
926
- [
927
- "ConnectTokenAuth"
928
- ]
929
- ],
930
- "parameters": [],
931
- "requestBodyRequired": true,
932
- "requestExamples": [
933
- {
934
- "mediaType": "application/json",
935
- "example": {
936
- "host": "ip-10-0-3-42",
937
- "runtime_version": "2026.02.1",
938
- "capabilities": [
939
- "tasks",
940
- "calendar",
941
- "realtime"
942
- ],
943
- "agents_md": "# Existing AGENTS.md\n\n## Runtime\n- Keep heartbeat alive.\n",
944
- "models": [
945
- {
946
- "model_id": "openai/gpt-5-codex",
947
- "provider": "openai"
948
- },
949
- {
950
- "model_id": "anthropic/claude-sonnet-4-20250514",
951
- "provider": "anthropic"
952
- }
953
- ],
954
- "identity": {
955
- "name": "Jarvis",
956
- "creature": "robot",
957
- "vibe": "calm"
958
- },
959
- "metadata": {
960
- "hostname": "worker-01",
961
- "ip": "10.0.2.15",
962
- "network": {
963
- "private_ip": "10.0.2.15",
964
- "public_ip": "34.201.22.9"
965
- },
966
- "os": "Ubuntu",
967
- "os_version": "22.04",
968
- "arch": "x86_64",
969
- "cpu": "Intel Xeon",
970
- "cpu_cores": 8,
971
- "ram_gb": 32,
972
- "disk": {
973
- "total_bytes": 512110190592,
974
- "free_bytes": 321102110720
975
- },
976
- "uptime_seconds": 86400,
977
- "runtime": {
978
- "name": "codex",
979
- "version": "2026.02.1"
980
- },
981
- "identity": {
982
- "name": "Jarvis"
983
- }
984
- }
985
- }
986
- }
987
- ],
988
- "responses": [
989
- {
990
- "status": "201",
991
- "mediaType": "application/json",
992
- "description": "Agent connected and bearer token issued.",
993
- "hasContent": true,
994
- "example": {
995
- "agent_id": 42,
996
- "agent_token": "mca_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
997
- "agent_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/agent-instructions",
998
- "agent_authenticated_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/agent-instructions",
999
- "agent_instructions_version": "32fe7fd14fca2d57c545f5f78f4a1c094f9ac1b3a1e8f6f9f8323b67a0ef9cc3",
1000
- "openapi_url": "https://agentmc.example.com/api/openapi.json",
1001
- "workspace": {
1002
- "id": 7,
1003
- "name": "AgentMC Demo Workspace"
1004
- },
1005
- "heartbeat_interval_seconds": 300,
1006
- "server_time": "2026-02-22T17:20:53Z",
1007
- "first_sync_required": true
1008
- }
1009
- },
1010
- {
1011
- "status": "401",
1012
- "mediaType": "application/json",
1013
- "description": "Missing or invalid credentials.",
1014
- "hasContent": true,
1015
- "example": {
1016
- "error": {
1017
- "code": "validation.failed",
1018
- "message": "Validation failed.",
1019
- "details": {
1020
- "fields": {
1021
- "title": [
1022
- "The title field is required."
1023
- ]
1024
- }
1025
- }
1026
- }
1027
- }
1028
- },
1029
- {
1030
- "status": "403",
1031
- "mediaType": "application/json",
1032
- "description": "Forbidden.",
1033
- "hasContent": true,
1034
- "example": {
1035
- "error": {
1036
- "code": "validation.failed",
1037
- "message": "Validation failed.",
1038
- "details": {
1039
- "fields": {
1040
- "title": [
1041
- "The title field is required."
1042
- ]
1043
- }
1044
- }
1045
- }
1046
- }
1047
- },
1048
- {
1049
- "status": "422",
1050
- "mediaType": "application/json",
1051
- "description": "Validation failed.",
1052
- "hasContent": true,
1053
- "example": {
1054
- "error": {
1055
- "code": "validation.failed",
1056
- "message": "Validation failed.",
1057
- "details": {
1058
- "fields": {
1059
- "title": [
1060
- "The title field is required."
1061
- ]
1062
- }
1063
- }
1064
- }
1065
- }
1066
- }
1067
- ]
1068
- },
1069
818
  {
1070
819
  "operationId": "createAgentBrief",
1071
820
  "method": "post",
@@ -3442,7 +3191,6 @@ var operations = [
3442
3191
  ]
3443
3192
  },
3444
3193
  "last_seen_at": "2026-02-24T02:11:00Z",
3445
- "first_sync_at": "2026-02-24T02:01:00Z",
3446
3194
  "tasks_count": 3,
3447
3195
  "created_at": "2026-02-24T01:56:00Z",
3448
3196
  "updated_at": "2026-02-24T02:11:00Z"