multi-agent-protocol 0.1.0 → 0.1.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "multi-agent-protocol",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Multi-Agent Protocol (MAP) - A protocol for observing, coordinating, and routing messages within multi-agent AI systems",
5
5
  "type": "module",
6
6
  "main": "./schema/schema.json",
package/schema/meta.json CHANGED
@@ -471,6 +471,42 @@
471
471
  "description": "Request full checkpoint content (may stream large transcripts)",
472
472
  "requestType": "TrajectoryContentRequest",
473
473
  "responseType": "TrajectoryContentResponse"
474
+ },
475
+ "map/tasks/create": {
476
+ "tier": "extension",
477
+ "implementedBy": "system",
478
+ "callableBy": ["client", "agent"],
479
+ "capabilities": ["tasks.canCreate"],
480
+ "description": "Create a new task with optional assignee, status, and provider metadata",
481
+ "requestType": "TasksCreateRequest",
482
+ "responseType": "TasksCreateResponse"
483
+ },
484
+ "map/tasks/assign": {
485
+ "tier": "extension",
486
+ "implementedBy": "system",
487
+ "callableBy": ["client", "agent"],
488
+ "capabilities": ["tasks.canAssign"],
489
+ "description": "Assign a task to an agent",
490
+ "requestType": "TasksAssignRequest",
491
+ "responseType": "TasksAssignResponse"
492
+ },
493
+ "map/tasks/update": {
494
+ "tier": "extension",
495
+ "implementedBy": "system",
496
+ "callableBy": ["client", "agent"],
497
+ "capabilities": ["tasks.canUpdate"],
498
+ "description": "Update task status, fields, or provider metadata",
499
+ "requestType": "TasksUpdateRequest",
500
+ "responseType": "TasksUpdateResponse"
501
+ },
502
+ "map/tasks/list": {
503
+ "tier": "extension",
504
+ "implementedBy": "system",
505
+ "callableBy": ["client", "agent"],
506
+ "capabilities": ["tasks.canList"],
507
+ "description": "List tasks with optional filters by assignee and status",
508
+ "requestType": "TasksListRequest",
509
+ "responseType": "TasksListResponse"
474
510
  }
475
511
  },
476
512
  "notifications": {
@@ -565,6 +601,12 @@
565
601
  "13002": "Content unavailable",
566
602
  "13003": "Stream failed",
567
603
  "13004": "Permission denied"
604
+ },
605
+ "tasks": {
606
+ "14000": "Tasks not enabled",
607
+ "14001": "Task not found",
608
+ "14002": "Task assignment failed",
609
+ "14003": "Task permission denied"
568
610
  }
569
611
  },
570
612
  "tiers": {
@@ -80,7 +80,11 @@
80
80
  { "$ref": "#/$defs/CredStatusRequest" },
81
81
  { "$ref": "#/$defs/WorkspaceSearchRequest" },
82
82
  { "$ref": "#/$defs/WorkspaceListRequest" },
83
- { "$ref": "#/$defs/WorkspaceReadRequest" }
83
+ { "$ref": "#/$defs/WorkspaceReadRequest" },
84
+ { "$ref": "#/$defs/TasksCreateRequest" },
85
+ { "$ref": "#/$defs/TasksAssignRequest" },
86
+ { "$ref": "#/$defs/TasksUpdateRequest" },
87
+ { "$ref": "#/$defs/TasksListRequest" }
84
88
  ]
85
89
  },
86
90
  "MAPResponse": {
@@ -3062,6 +3066,207 @@
3062
3066
  }
3063
3067
  },
3064
3068
  "required": ["method", "metadata"]
3069
+ },
3070
+
3071
+ "TaskId": {
3072
+ "type": "string",
3073
+ "description": "Unique identifier for a task"
3074
+ },
3075
+ "MAPTaskStatus": {
3076
+ "type": "string",
3077
+ "enum": ["open", "in_progress", "blocked", "completed", "failed"],
3078
+ "description": "Standard task status values. Implementations may use meta for richer states."
3079
+ },
3080
+ "MAPTask": {
3081
+ "type": "object",
3082
+ "description": "A task in the MAP system. Intentionally minimal — providers use the meta field for implementation-specific data.",
3083
+ "properties": {
3084
+ "id": { "$ref": "#/$defs/TaskId" },
3085
+ "assignee": {
3086
+ "oneOf": [
3087
+ { "$ref": "#/$defs/AgentId" },
3088
+ { "type": "null" }
3089
+ ],
3090
+ "description": "Agent this task is assigned to (null = unassigned)"
3091
+ },
3092
+ "title": {
3093
+ "type": "string",
3094
+ "description": "Human-readable task title"
3095
+ },
3096
+ "status": { "$ref": "#/$defs/MAPTaskStatus" },
3097
+ "description": {
3098
+ "type": "string",
3099
+ "description": "Task description or instructions"
3100
+ },
3101
+ "meta": {
3102
+ "$ref": "#/$defs/Meta",
3103
+ "description": "Provider/implementation-specific metadata"
3104
+ }
3105
+ },
3106
+ "required": ["id"]
3107
+ },
3108
+
3109
+ "TasksCreateRequest": {
3110
+ "type": "object",
3111
+ "x-method": "map/tasks/create",
3112
+ "x-tier": "extension",
3113
+ "description": "Create a new task",
3114
+ "properties": {
3115
+ "jsonrpc": { "$ref": "#/$defs/JsonRpcVersion" },
3116
+ "id": { "$ref": "#/$defs/RequestId" },
3117
+ "method": { "const": "map/tasks/create" },
3118
+ "params": {
3119
+ "type": "object",
3120
+ "properties": {
3121
+ "task": {
3122
+ "type": "object",
3123
+ "description": "Task data. If id is omitted, the server generates one.",
3124
+ "properties": {
3125
+ "id": { "$ref": "#/$defs/TaskId" },
3126
+ "assignee": {
3127
+ "oneOf": [
3128
+ { "$ref": "#/$defs/AgentId" },
3129
+ { "type": "null" }
3130
+ ]
3131
+ },
3132
+ "title": { "type": "string" },
3133
+ "status": { "$ref": "#/$defs/MAPTaskStatus" },
3134
+ "description": { "type": "string" },
3135
+ "meta": { "$ref": "#/$defs/Meta" }
3136
+ }
3137
+ },
3138
+ "_meta": { "$ref": "#/$defs/Meta" }
3139
+ },
3140
+ "required": ["task"]
3141
+ }
3142
+ },
3143
+ "required": ["jsonrpc", "id", "method", "params"]
3144
+ },
3145
+ "TasksCreateResponse": {
3146
+ "type": "object",
3147
+ "properties": {
3148
+ "task": { "$ref": "#/$defs/MAPTask" },
3149
+ "_meta": { "$ref": "#/$defs/Meta" }
3150
+ },
3151
+ "required": ["task"]
3152
+ },
3153
+
3154
+ "TasksAssignRequest": {
3155
+ "type": "object",
3156
+ "x-method": "map/tasks/assign",
3157
+ "x-tier": "extension",
3158
+ "description": "Assign a task to an agent",
3159
+ "properties": {
3160
+ "jsonrpc": { "$ref": "#/$defs/JsonRpcVersion" },
3161
+ "id": { "$ref": "#/$defs/RequestId" },
3162
+ "method": { "const": "map/tasks/assign" },
3163
+ "params": {
3164
+ "type": "object",
3165
+ "properties": {
3166
+ "taskId": { "$ref": "#/$defs/TaskId" },
3167
+ "agentId": { "$ref": "#/$defs/AgentId" },
3168
+ "_meta": { "$ref": "#/$defs/Meta" }
3169
+ },
3170
+ "required": ["taskId", "agentId"]
3171
+ }
3172
+ },
3173
+ "required": ["jsonrpc", "id", "method", "params"]
3174
+ },
3175
+ "TasksAssignResponse": {
3176
+ "type": "object",
3177
+ "properties": {
3178
+ "task": { "$ref": "#/$defs/MAPTask" },
3179
+ "_meta": { "$ref": "#/$defs/Meta" }
3180
+ },
3181
+ "required": ["task"]
3182
+ },
3183
+
3184
+ "TasksUpdateRequest": {
3185
+ "type": "object",
3186
+ "x-method": "map/tasks/update",
3187
+ "x-tier": "extension",
3188
+ "description": "Update task status or fields",
3189
+ "properties": {
3190
+ "jsonrpc": { "$ref": "#/$defs/JsonRpcVersion" },
3191
+ "id": { "$ref": "#/$defs/RequestId" },
3192
+ "method": { "const": "map/tasks/update" },
3193
+ "params": {
3194
+ "type": "object",
3195
+ "properties": {
3196
+ "taskId": { "$ref": "#/$defs/TaskId" },
3197
+ "status": { "$ref": "#/$defs/MAPTaskStatus" },
3198
+ "title": { "type": "string" },
3199
+ "description": { "type": "string" },
3200
+ "assignee": {
3201
+ "oneOf": [
3202
+ { "$ref": "#/$defs/AgentId" },
3203
+ { "type": "null" }
3204
+ ]
3205
+ },
3206
+ "meta": { "$ref": "#/$defs/Meta" },
3207
+ "_meta": { "$ref": "#/$defs/Meta" }
3208
+ },
3209
+ "required": ["taskId"]
3210
+ }
3211
+ },
3212
+ "required": ["jsonrpc", "id", "method", "params"]
3213
+ },
3214
+ "TasksUpdateResponse": {
3215
+ "type": "object",
3216
+ "properties": {
3217
+ "task": { "$ref": "#/$defs/MAPTask" },
3218
+ "_meta": { "$ref": "#/$defs/Meta" }
3219
+ },
3220
+ "required": ["task"]
3221
+ },
3222
+
3223
+ "TasksListRequest": {
3224
+ "type": "object",
3225
+ "x-method": "map/tasks/list",
3226
+ "x-tier": "extension",
3227
+ "description": "List tasks with optional filters",
3228
+ "properties": {
3229
+ "jsonrpc": { "$ref": "#/$defs/JsonRpcVersion" },
3230
+ "id": { "$ref": "#/$defs/RequestId" },
3231
+ "method": { "const": "map/tasks/list" },
3232
+ "params": {
3233
+ "type": "object",
3234
+ "properties": {
3235
+ "filter": {
3236
+ "type": "object",
3237
+ "properties": {
3238
+ "assignee": { "$ref": "#/$defs/AgentId" },
3239
+ "status": {
3240
+ "oneOf": [
3241
+ { "$ref": "#/$defs/MAPTaskStatus" },
3242
+ {
3243
+ "type": "array",
3244
+ "items": { "$ref": "#/$defs/MAPTaskStatus" }
3245
+ }
3246
+ ]
3247
+ }
3248
+ }
3249
+ },
3250
+ "limit": { "type": "integer", "minimum": 1 },
3251
+ "cursor": { "type": "string" },
3252
+ "_meta": { "$ref": "#/$defs/Meta" }
3253
+ }
3254
+ }
3255
+ },
3256
+ "required": ["jsonrpc", "id", "method"]
3257
+ },
3258
+ "TasksListResponse": {
3259
+ "type": "object",
3260
+ "properties": {
3261
+ "tasks": {
3262
+ "type": "array",
3263
+ "items": { "$ref": "#/$defs/MAPTask" }
3264
+ },
3265
+ "hasMore": { "type": "boolean" },
3266
+ "nextCursor": { "type": "string" },
3267
+ "_meta": { "$ref": "#/$defs/Meta" }
3268
+ },
3269
+ "required": ["tasks", "hasMore"]
3065
3270
  }
3066
3271
  }
3067
3272
  }