@pellux/goodvibes-sdk 0.26.0 → 0.26.2

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.
Files changed (72) hide show
  1. package/dist/_internal/contracts/artifacts/operator-contract.json +434 -380
  2. package/dist/_internal/contracts/generated/foundation-client-types.d.ts +7 -1
  3. package/dist/_internal/contracts/generated/foundation-client-types.d.ts.map +1 -1
  4. package/dist/_internal/contracts/generated/foundation-metadata.d.ts +1 -1
  5. package/dist/_internal/contracts/generated/foundation-metadata.js +1 -1
  6. package/dist/_internal/contracts/generated/operator-contract.d.ts.map +1 -1
  7. package/dist/_internal/contracts/generated/operator-contract.js +434 -380
  8. package/dist/_internal/daemon/artifact-upload.d.ts +26 -0
  9. package/dist/_internal/daemon/artifact-upload.d.ts.map +1 -0
  10. package/dist/_internal/daemon/artifact-upload.js +504 -0
  11. package/dist/_internal/daemon/index.d.ts +2 -0
  12. package/dist/_internal/daemon/index.d.ts.map +1 -1
  13. package/dist/_internal/daemon/index.js +1 -0
  14. package/dist/_internal/daemon/knowledge-route-types.d.ts +2 -0
  15. package/dist/_internal/daemon/knowledge-route-types.d.ts.map +1 -1
  16. package/dist/_internal/daemon/knowledge-routes.d.ts.map +1 -1
  17. package/dist/_internal/daemon/knowledge-routes.js +15 -0
  18. package/dist/_internal/daemon/media-routes.d.ts.map +1 -1
  19. package/dist/_internal/daemon/media-routes.js +7 -0
  20. package/dist/_internal/daemon/runtime-session-routes.d.ts.map +1 -1
  21. package/dist/_internal/daemon/runtime-session-routes.js +3 -2
  22. package/dist/_internal/platform/agents/orchestrator-runner.d.ts.map +1 -1
  23. package/dist/_internal/platform/agents/orchestrator-runner.js +2 -1
  24. package/dist/_internal/platform/agents/orchestrator.d.ts +1 -0
  25. package/dist/_internal/platform/agents/orchestrator.d.ts.map +1 -1
  26. package/dist/_internal/platform/artifacts/store.d.ts +5 -1
  27. package/dist/_internal/platform/artifacts/store.d.ts.map +1 -1
  28. package/dist/_internal/platform/artifacts/store.js +168 -31
  29. package/dist/_internal/platform/artifacts/types.d.ts +12 -0
  30. package/dist/_internal/platform/artifacts/types.d.ts.map +1 -1
  31. package/dist/_internal/platform/channels/builtin/homeassistant.d.ts.map +1 -1
  32. package/dist/_internal/platform/channels/builtin/homeassistant.js +11 -0
  33. package/dist/_internal/platform/companion/companion-chat-manager.d.ts.map +1 -1
  34. package/dist/_internal/platform/companion/companion-chat-manager.js +2 -1
  35. package/dist/_internal/platform/config/schema-domain-core.d.ts +3 -0
  36. package/dist/_internal/platform/config/schema-domain-core.d.ts.map +1 -1
  37. package/dist/_internal/platform/config/schema-domain-core.js +10 -0
  38. package/dist/_internal/platform/config/schema-types.d.ts +5 -2
  39. package/dist/_internal/platform/config/schema-types.d.ts.map +1 -1
  40. package/dist/_internal/platform/control-plane/method-catalog-control-core.d.ts.map +1 -1
  41. package/dist/_internal/platform/control-plane/method-catalog-control-core.js +4 -3
  42. package/dist/_internal/platform/control-plane/method-catalog-homegraph.d.ts.map +1 -1
  43. package/dist/_internal/platform/control-plane/method-catalog-homegraph.js +6 -1
  44. package/dist/_internal/platform/control-plane/method-catalog-knowledge.d.ts.map +1 -1
  45. package/dist/_internal/platform/control-plane/method-catalog-knowledge.js +5 -1
  46. package/dist/_internal/platform/control-plane/method-catalog-media.d.ts.map +1 -1
  47. package/dist/_internal/platform/control-plane/method-catalog-media.js +5 -1
  48. package/dist/_internal/platform/control-plane/operator-contract-schemas-runtime.d.ts +4 -0
  49. package/dist/_internal/platform/control-plane/operator-contract-schemas-runtime.d.ts.map +1 -1
  50. package/dist/_internal/platform/control-plane/operator-contract-schemas-runtime.js +11 -0
  51. package/dist/_internal/platform/core/orchestrator-turn-loop.d.ts.map +1 -1
  52. package/dist/_internal/platform/core/orchestrator-turn-loop.js +2 -1
  53. package/dist/_internal/platform/daemon/http/home-graph-routes.d.ts +2 -0
  54. package/dist/_internal/platform/daemon/http/home-graph-routes.d.ts.map +1 -1
  55. package/dist/_internal/platform/daemon/http/home-graph-routes.js +13 -1
  56. package/dist/_internal/platform/daemon/http/router-route-contexts.d.ts +1 -0
  57. package/dist/_internal/platform/daemon/http/router-route-contexts.d.ts.map +1 -1
  58. package/dist/_internal/platform/daemon/http/router-route-contexts.js +1 -0
  59. package/dist/_internal/platform/daemon/http/router.d.ts.map +1 -1
  60. package/dist/_internal/platform/daemon/http/router.js +2 -0
  61. package/dist/_internal/platform/permissions/manager.d.ts.map +1 -1
  62. package/dist/_internal/platform/permissions/manager.js +4 -0
  63. package/dist/_internal/platform/runtime/services.d.ts.map +1 -1
  64. package/dist/_internal/platform/runtime/services.js +1 -0
  65. package/dist/_internal/platform/tools/goodvibes-runtime/index.d.ts +23 -0
  66. package/dist/_internal/platform/tools/goodvibes-runtime/index.d.ts.map +1 -0
  67. package/dist/_internal/platform/tools/goodvibes-runtime/index.js +400 -0
  68. package/dist/_internal/platform/tools/index.d.ts +3 -1
  69. package/dist/_internal/platform/tools/index.d.ts.map +1 -1
  70. package/dist/_internal/platform/tools/index.js +15 -0
  71. package/dist/_internal/platform/version.js +1 -1
  72. package/package.json +1 -1
@@ -3,7 +3,7 @@ export const OPERATOR_CONTRACT = {
3
3
  "product": {
4
4
  "id": "goodvibes",
5
5
  "surface": "operator",
6
- "version": "0.26.0"
6
+ "version": "0.26.2"
7
7
  },
8
8
  "auth": {
9
9
  "modes": [
@@ -2279,7 +2279,7 @@ export const OPERATOR_CONTRACT = {
2279
2279
  {
2280
2280
  "id": "artifacts.create",
2281
2281
  "title": "Create Artifact",
2282
- "description": "Store a file or attachment artifact for later delivery or analysis.",
2282
+ "description": "Store a file or attachment artifact for later delivery, analysis, or knowledge ingest. JSON supports small inline bodies and daemon-local path/URI references; HTTP callers can also send multipart/form-data or a raw binary body for large uploads.",
2283
2283
  "category": "artifacts",
2284
2284
  "source": "builtin",
2285
2285
  "access": "authenticated",
@@ -2438,7 +2438,16 @@ export const OPERATOR_CONTRACT = {
2438
2438
  ],
2439
2439
  "additionalProperties": false
2440
2440
  },
2441
- "invokable": true
2441
+ "invokable": true,
2442
+ "metadata": {
2443
+ "uploadModes": [
2444
+ "json-inline",
2445
+ "json-path-or-uri",
2446
+ "multipart-file",
2447
+ "raw-body"
2448
+ ],
2449
+ "largeUploadConfigKey": "storage.artifacts.maxBytes"
2450
+ }
2442
2451
  },
2443
2452
  {
2444
2453
  "id": "artifacts.get",
@@ -25880,7 +25889,7 @@ export const OPERATOR_CONTRACT = {
25880
25889
  {
25881
25890
  "id": "homeassistant.homeGraph.ingestHomeGraphArtifact",
25882
25891
  "title": "Ingest Home Graph Artifact",
25883
- "description": "Index an artifact, document, receipt, warranty, manual, or photo into a Home Graph space.",
25892
+ "description": "Index an existing artifact reference, JSON path/URI reference, multipart file upload, or raw binary upload as a Home Graph document, receipt, warranty, manual, or photo.",
25884
25893
  "category": "knowledge",
25885
25894
  "source": "builtin",
25886
25895
  "access": "admin",
@@ -26304,7 +26313,16 @@ export const OPERATOR_CONTRACT = {
26304
26313
  ],
26305
26314
  "additionalProperties": true
26306
26315
  },
26307
- "invokable": true
26316
+ "invokable": true,
26317
+ "metadata": {
26318
+ "uploadModes": [
26319
+ "json-artifact-reference",
26320
+ "json-path-or-uri",
26321
+ "multipart-file",
26322
+ "raw-body"
26323
+ ],
26324
+ "largeUploadConfigKey": "storage.artifacts.maxBytes"
26325
+ }
26308
26326
  },
26309
26327
  {
26310
26328
  "id": "homeassistant.homeGraph.ingestHomeGraphNote",
@@ -30650,7 +30668,7 @@ export const OPERATOR_CONTRACT = {
30650
30668
  {
30651
30669
  "id": "knowledge.ingest.artifact",
30652
30670
  "title": "Ingest Artifact Into Knowledge",
30653
- "description": "Snapshot a local path, remote URI, or existing artifact into the structured knowledge store and run structured extraction.",
30671
+ "description": "Snapshot an existing artifact, daemon-local path, remote URI, multipart file upload, or raw binary upload into the structured knowledge store and run structured extraction.",
30654
30672
  "category": "knowledge",
30655
30673
  "source": "builtin",
30656
30674
  "access": "admin",
@@ -30941,7 +30959,16 @@ export const OPERATOR_CONTRACT = {
30941
30959
  ],
30942
30960
  "additionalProperties": true
30943
30961
  },
30944
- "invokable": true
30962
+ "invokable": true,
30963
+ "metadata": {
30964
+ "uploadModes": [
30965
+ "json-artifact-reference",
30966
+ "json-path-or-uri",
30967
+ "multipart-file",
30968
+ "raw-body"
30969
+ ],
30970
+ "largeUploadConfigKey": "storage.artifacts.maxBytes"
30971
+ }
30945
30972
  },
30946
30973
  {
30947
30974
  "id": "knowledge.ingest.bookmarks",
@@ -49813,7 +49840,7 @@ export const OPERATOR_CONTRACT = {
49813
49840
  {
49814
49841
  "id": "sessions.messages.create",
49815
49842
  "title": "Post Shared Session Message",
49816
- "description": "Append a user message to a shared session and queue assistant work.",
49843
+ "description": "Append a user message to a shared session. Omitted `kind` defaults to `message` conversation routing; send `kind: \"task\"` to request agent/WRFC task continuation.",
49817
49844
  "category": "sessions",
49818
49845
  "source": "builtin",
49819
49846
  "access": "authenticated",
@@ -49840,6 +49867,9 @@ export const OPERATOR_CONTRACT = {
49840
49867
  "surfaceId": {
49841
49868
  "type": "string"
49842
49869
  },
49870
+ "kind": {
49871
+ "type": "string"
49872
+ },
49843
49873
  "routing": {
49844
49874
  "type": "object",
49845
49875
  "properties": {
@@ -49953,98 +49983,315 @@ export const OPERATOR_CONTRACT = {
49953
49983
  "additionalProperties": true
49954
49984
  },
49955
49985
  "outputSchema": {
49956
- "type": "object",
49957
- "properties": {
49958
- "session": {
49959
- "anyOf": [
49960
- {
49986
+ "anyOf": [
49987
+ {
49988
+ "type": "object",
49989
+ "properties": {
49990
+ "messageId": {
49991
+ "type": "string"
49992
+ },
49993
+ "routedTo": {
49994
+ "type": "string"
49995
+ },
49996
+ "sessionId": {
49997
+ "type": "string"
49998
+ }
49999
+ },
50000
+ "required": [
50001
+ "messageId",
50002
+ "routedTo",
50003
+ "sessionId"
50004
+ ],
50005
+ "additionalProperties": false
50006
+ },
50007
+ {
50008
+ "type": "object",
50009
+ "properties": {
50010
+ "session": {
50011
+ "anyOf": [
50012
+ {
50013
+ "type": "object",
50014
+ "properties": {
50015
+ "id": {
50016
+ "type": "string"
50017
+ },
50018
+ "title": {
50019
+ "type": "string"
50020
+ },
50021
+ "status": {
50022
+ "type": "string",
50023
+ "enum": [
50024
+ "active",
50025
+ "closed"
50026
+ ]
50027
+ },
50028
+ "createdAt": {
50029
+ "type": "number"
50030
+ },
50031
+ "updatedAt": {
50032
+ "type": "number"
50033
+ },
50034
+ "lastMessageAt": {
50035
+ "type": "number"
50036
+ },
50037
+ "closedAt": {
50038
+ "type": "number"
50039
+ },
50040
+ "messageCount": {
50041
+ "type": "number"
50042
+ },
50043
+ "pendingInputCount": {
50044
+ "type": "number"
50045
+ },
50046
+ "routeIds": {
50047
+ "type": "array",
50048
+ "items": {
50049
+ "type": "string"
50050
+ }
50051
+ },
50052
+ "surfaceKinds": {
50053
+ "type": "array",
50054
+ "items": {
50055
+ "type": "string"
50056
+ }
50057
+ },
50058
+ "participants": {
50059
+ "type": "array",
50060
+ "items": {
50061
+ "type": "object",
50062
+ "properties": {
50063
+ "surfaceKind": {
50064
+ "type": "string"
50065
+ },
50066
+ "surfaceId": {
50067
+ "type": "string"
50068
+ },
50069
+ "externalId": {
50070
+ "type": "string"
50071
+ },
50072
+ "userId": {
50073
+ "type": "string"
50074
+ },
50075
+ "displayName": {
50076
+ "type": "string"
50077
+ },
50078
+ "routeId": {
50079
+ "type": "string"
50080
+ },
50081
+ "lastSeenAt": {
50082
+ "type": "number"
50083
+ }
50084
+ },
50085
+ "required": [
50086
+ "surfaceKind",
50087
+ "surfaceId",
50088
+ "lastSeenAt"
50089
+ ],
50090
+ "additionalProperties": false
50091
+ }
50092
+ },
50093
+ "activeAgentId": {
50094
+ "type": "string"
50095
+ },
50096
+ "lastAgentId": {
50097
+ "type": "string"
50098
+ },
50099
+ "lastError": {
50100
+ "type": "string"
50101
+ },
50102
+ "metadata": {
50103
+ "type": "object",
50104
+ "additionalProperties": {
50105
+ "anyOf": [
50106
+ {
50107
+ "type": "string"
50108
+ },
50109
+ {
50110
+ "type": "number"
50111
+ },
50112
+ {
50113
+ "type": "boolean"
50114
+ },
50115
+ {
50116
+ "type": "null"
50117
+ },
50118
+ {
50119
+ "type": "object",
50120
+ "additionalProperties": {}
50121
+ },
50122
+ {
50123
+ "type": "array",
50124
+ "items": {}
50125
+ }
50126
+ ]
50127
+ }
50128
+ }
50129
+ },
50130
+ "required": [
50131
+ "id",
50132
+ "title",
50133
+ "status",
50134
+ "createdAt",
50135
+ "updatedAt",
50136
+ "messageCount",
50137
+ "pendingInputCount",
50138
+ "routeIds",
50139
+ "surfaceKinds",
50140
+ "participants",
50141
+ "metadata"
50142
+ ],
50143
+ "additionalProperties": false
50144
+ },
50145
+ {
50146
+ "type": "null"
50147
+ }
50148
+ ]
50149
+ },
50150
+ "message": {
49961
50151
  "type": "object",
49962
50152
  "properties": {
49963
50153
  "id": {
49964
50154
  "type": "string"
49965
50155
  },
49966
- "title": {
50156
+ "sessionId": {
49967
50157
  "type": "string"
49968
50158
  },
49969
- "status": {
50159
+ "role": {
49970
50160
  "type": "string",
49971
50161
  "enum": [
49972
- "active",
49973
- "closed"
50162
+ "user",
50163
+ "assistant",
50164
+ "system"
49974
50165
  ]
49975
50166
  },
49976
- "createdAt": {
49977
- "type": "number"
50167
+ "body": {
50168
+ "type": "string"
49978
50169
  },
49979
- "updatedAt": {
50170
+ "createdAt": {
49980
50171
  "type": "number"
49981
50172
  },
49982
- "lastMessageAt": {
49983
- "type": "number"
50173
+ "surfaceKind": {
50174
+ "type": "string"
49984
50175
  },
49985
- "closedAt": {
49986
- "type": "number"
50176
+ "surfaceId": {
50177
+ "type": "string"
49987
50178
  },
49988
- "messageCount": {
49989
- "type": "number"
50179
+ "routeId": {
50180
+ "type": "string"
49990
50181
  },
49991
- "pendingInputCount": {
49992
- "type": "number"
50182
+ "agentId": {
50183
+ "type": "string"
49993
50184
  },
49994
- "routeIds": {
49995
- "type": "array",
49996
- "items": {
49997
- "type": "string"
49998
- }
50185
+ "userId": {
50186
+ "type": "string"
49999
50187
  },
50000
- "surfaceKinds": {
50001
- "type": "array",
50002
- "items": {
50003
- "type": "string"
50004
- }
50188
+ "displayName": {
50189
+ "type": "string"
50005
50190
  },
50006
- "participants": {
50007
- "type": "array",
50008
- "items": {
50009
- "type": "object",
50010
- "properties": {
50011
- "surfaceKind": {
50012
- "type": "string"
50013
- },
50014
- "surfaceId": {
50191
+ "metadata": {
50192
+ "type": "object",
50193
+ "additionalProperties": {
50194
+ "anyOf": [
50195
+ {
50015
50196
  "type": "string"
50016
50197
  },
50017
- "externalId": {
50018
- "type": "string"
50198
+ {
50199
+ "type": "number"
50019
50200
  },
50020
- "userId": {
50021
- "type": "string"
50201
+ {
50202
+ "type": "boolean"
50022
50203
  },
50023
- "displayName": {
50024
- "type": "string"
50204
+ {
50205
+ "type": "null"
50025
50206
  },
50026
- "routeId": {
50027
- "type": "string"
50207
+ {
50208
+ "type": "object",
50209
+ "additionalProperties": {}
50028
50210
  },
50029
- "lastSeenAt": {
50030
- "type": "number"
50211
+ {
50212
+ "type": "array",
50213
+ "items": {}
50031
50214
  }
50032
- },
50033
- "required": [
50034
- "surfaceKind",
50035
- "surfaceId",
50036
- "lastSeenAt"
50037
- ],
50038
- "additionalProperties": false
50215
+ ]
50039
50216
  }
50217
+ }
50218
+ },
50219
+ "required": [
50220
+ "id",
50221
+ "sessionId",
50222
+ "role",
50223
+ "body",
50224
+ "createdAt",
50225
+ "metadata"
50226
+ ],
50227
+ "additionalProperties": false
50228
+ },
50229
+ "input": {
50230
+ "type": "object",
50231
+ "properties": {
50232
+ "id": {
50233
+ "type": "string"
50040
50234
  },
50041
- "activeAgentId": {
50235
+ "sessionId": {
50042
50236
  "type": "string"
50043
50237
  },
50044
- "lastAgentId": {
50238
+ "intent": {
50239
+ "type": "string",
50240
+ "enum": [
50241
+ "submit",
50242
+ "steer",
50243
+ "follow-up"
50244
+ ]
50245
+ },
50246
+ "state": {
50247
+ "type": "string",
50248
+ "enum": [
50249
+ "queued",
50250
+ "delivered",
50251
+ "spawned",
50252
+ "completed",
50253
+ "cancelled",
50254
+ "failed",
50255
+ "rejected"
50256
+ ]
50257
+ },
50258
+ "correlationId": {
50045
50259
  "type": "string"
50046
50260
  },
50047
- "lastError": {
50261
+ "causationId": {
50262
+ "type": "string"
50263
+ },
50264
+ "body": {
50265
+ "type": "string"
50266
+ },
50267
+ "createdAt": {
50268
+ "type": "number"
50269
+ },
50270
+ "updatedAt": {
50271
+ "type": "number"
50272
+ },
50273
+ "routeId": {
50274
+ "type": "string"
50275
+ },
50276
+ "surfaceKind": {
50277
+ "type": "string"
50278
+ },
50279
+ "surfaceId": {
50280
+ "type": "string"
50281
+ },
50282
+ "externalId": {
50283
+ "type": "string"
50284
+ },
50285
+ "threadId": {
50286
+ "type": "string"
50287
+ },
50288
+ "userId": {
50289
+ "type": "string"
50290
+ },
50291
+ "displayName": {
50292
+ "type": "string"
50293
+ },
50294
+ "activeAgentId": {
50048
50295
  "type": "string"
50049
50296
  },
50050
50297
  "metadata": {
@@ -50073,240 +50320,8 @@ export const OPERATOR_CONTRACT = {
50073
50320
  }
50074
50321
  ]
50075
50322
  }
50076
- }
50077
- },
50078
- "required": [
50079
- "id",
50080
- "title",
50081
- "status",
50082
- "createdAt",
50083
- "updatedAt",
50084
- "messageCount",
50085
- "pendingInputCount",
50086
- "routeIds",
50087
- "surfaceKinds",
50088
- "participants",
50089
- "metadata"
50090
- ],
50091
- "additionalProperties": false
50092
- },
50093
- {
50094
- "type": "null"
50095
- }
50096
- ]
50097
- },
50098
- "message": {
50099
- "type": "object",
50100
- "properties": {
50101
- "id": {
50102
- "type": "string"
50103
- },
50104
- "sessionId": {
50105
- "type": "string"
50106
- },
50107
- "role": {
50108
- "type": "string",
50109
- "enum": [
50110
- "user",
50111
- "assistant",
50112
- "system"
50113
- ]
50114
- },
50115
- "body": {
50116
- "type": "string"
50117
- },
50118
- "createdAt": {
50119
- "type": "number"
50120
- },
50121
- "surfaceKind": {
50122
- "type": "string"
50123
- },
50124
- "surfaceId": {
50125
- "type": "string"
50126
- },
50127
- "routeId": {
50128
- "type": "string"
50129
- },
50130
- "agentId": {
50131
- "type": "string"
50132
- },
50133
- "userId": {
50134
- "type": "string"
50135
- },
50136
- "displayName": {
50137
- "type": "string"
50138
- },
50139
- "metadata": {
50140
- "type": "object",
50141
- "additionalProperties": {
50142
- "anyOf": [
50143
- {
50144
- "type": "string"
50145
- },
50146
- {
50147
- "type": "number"
50148
- },
50149
- {
50150
- "type": "boolean"
50151
- },
50152
- {
50153
- "type": "null"
50154
- },
50155
- {
50156
- "type": "object",
50157
- "additionalProperties": {}
50158
- },
50159
- {
50160
- "type": "array",
50161
- "items": {}
50162
- }
50163
- ]
50164
- }
50165
- }
50166
- },
50167
- "required": [
50168
- "id",
50169
- "sessionId",
50170
- "role",
50171
- "body",
50172
- "createdAt",
50173
- "metadata"
50174
- ],
50175
- "additionalProperties": false
50176
- },
50177
- "input": {
50178
- "type": "object",
50179
- "properties": {
50180
- "id": {
50181
- "type": "string"
50182
- },
50183
- "sessionId": {
50184
- "type": "string"
50185
- },
50186
- "intent": {
50187
- "type": "string",
50188
- "enum": [
50189
- "submit",
50190
- "steer",
50191
- "follow-up"
50192
- ]
50193
- },
50194
- "state": {
50195
- "type": "string",
50196
- "enum": [
50197
- "queued",
50198
- "delivered",
50199
- "spawned",
50200
- "completed",
50201
- "cancelled",
50202
- "failed",
50203
- "rejected"
50204
- ]
50205
- },
50206
- "correlationId": {
50207
- "type": "string"
50208
- },
50209
- "causationId": {
50210
- "type": "string"
50211
- },
50212
- "body": {
50213
- "type": "string"
50214
- },
50215
- "createdAt": {
50216
- "type": "number"
50217
- },
50218
- "updatedAt": {
50219
- "type": "number"
50220
- },
50221
- "routeId": {
50222
- "type": "string"
50223
- },
50224
- "surfaceKind": {
50225
- "type": "string"
50226
- },
50227
- "surfaceId": {
50228
- "type": "string"
50229
- },
50230
- "externalId": {
50231
- "type": "string"
50232
- },
50233
- "threadId": {
50234
- "type": "string"
50235
- },
50236
- "userId": {
50237
- "type": "string"
50238
- },
50239
- "displayName": {
50240
- "type": "string"
50241
- },
50242
- "activeAgentId": {
50243
- "type": "string"
50244
- },
50245
- "metadata": {
50246
- "type": "object",
50247
- "additionalProperties": {
50248
- "anyOf": [
50249
- {
50250
- "type": "string"
50251
- },
50252
- {
50253
- "type": "number"
50254
- },
50255
- {
50256
- "type": "boolean"
50257
- },
50258
- {
50259
- "type": "null"
50260
- },
50261
- {
50262
- "type": "object",
50263
- "additionalProperties": {}
50264
- },
50265
- {
50266
- "type": "array",
50267
- "items": {}
50268
- }
50269
- ]
50270
- }
50271
- },
50272
- "routing": {
50273
- "type": "object",
50274
- "properties": {
50275
- "providerId": {
50276
- "type": "string"
50277
- },
50278
- "modelId": {
50279
- "type": "string"
50280
- },
50281
- "providerSelection": {
50282
- "type": "string",
50283
- "enum": [
50284
- "inherit-current",
50285
- "concrete",
50286
- "synthetic"
50287
- ]
50288
- },
50289
- "unresolvedModelPolicy": {
50290
- "type": "string",
50291
- "enum": [
50292
- "fallback-to-current",
50293
- "fail"
50294
- ]
50295
- },
50296
- "providerFailurePolicy": {
50297
- "type": "string",
50298
- "enum": [
50299
- "ordered-fallbacks",
50300
- "fail"
50301
- ]
50302
- },
50303
- "fallbackModels": {
50304
- "type": "array",
50305
- "items": {
50306
- "type": "string"
50307
- }
50308
50323
  },
50309
- "helperModel": {
50324
+ "routing": {
50310
50325
  "type": "object",
50311
50326
  "properties": {
50312
50327
  "providerId": {
@@ -50314,112 +50329,151 @@ export const OPERATOR_CONTRACT = {
50314
50329
  },
50315
50330
  "modelId": {
50316
50331
  "type": "string"
50317
- }
50318
- },
50319
- "required": [
50320
- "providerId",
50321
- "modelId"
50322
- ],
50323
- "additionalProperties": false
50324
- },
50325
- "executionIntent": {
50326
- "type": "object",
50327
- "properties": {
50328
- "riskClass": {
50332
+ },
50333
+ "providerSelection": {
50329
50334
  "type": "string",
50330
50335
  "enum": [
50331
- "safe",
50332
- "elevated",
50333
- "dangerous"
50336
+ "inherit-current",
50337
+ "concrete",
50338
+ "synthetic"
50334
50339
  ]
50335
50340
  },
50336
- "requiresApproval": {
50337
- "type": "boolean"
50341
+ "unresolvedModelPolicy": {
50342
+ "type": "string",
50343
+ "enum": [
50344
+ "fallback-to-current",
50345
+ "fail"
50346
+ ]
50338
50347
  },
50339
- "networkPolicy": {
50348
+ "providerFailurePolicy": {
50340
50349
  "type": "string",
50341
50350
  "enum": [
50342
- "inherit",
50343
- "allow",
50344
- "deny",
50345
- "scoped"
50351
+ "ordered-fallbacks",
50352
+ "fail"
50346
50353
  ]
50347
50354
  },
50348
- "filesystemPolicy": {
50355
+ "fallbackModels": {
50356
+ "type": "array",
50357
+ "items": {
50358
+ "type": "string"
50359
+ }
50360
+ },
50361
+ "helperModel": {
50362
+ "type": "object",
50363
+ "properties": {
50364
+ "providerId": {
50365
+ "type": "string"
50366
+ },
50367
+ "modelId": {
50368
+ "type": "string"
50369
+ }
50370
+ },
50371
+ "required": [
50372
+ "providerId",
50373
+ "modelId"
50374
+ ],
50375
+ "additionalProperties": false
50376
+ },
50377
+ "executionIntent": {
50378
+ "type": "object",
50379
+ "properties": {
50380
+ "riskClass": {
50381
+ "type": "string",
50382
+ "enum": [
50383
+ "safe",
50384
+ "elevated",
50385
+ "dangerous"
50386
+ ]
50387
+ },
50388
+ "requiresApproval": {
50389
+ "type": "boolean"
50390
+ },
50391
+ "networkPolicy": {
50392
+ "type": "string",
50393
+ "enum": [
50394
+ "inherit",
50395
+ "allow",
50396
+ "deny",
50397
+ "scoped"
50398
+ ]
50399
+ },
50400
+ "filesystemPolicy": {
50401
+ "type": "string",
50402
+ "enum": [
50403
+ "inherit",
50404
+ "workspace-write",
50405
+ "read-only",
50406
+ "isolated"
50407
+ ]
50408
+ }
50409
+ },
50410
+ "additionalProperties": false
50411
+ },
50412
+ "tools": {
50413
+ "type": "array",
50414
+ "items": {
50415
+ "type": "string"
50416
+ }
50417
+ },
50418
+ "reasoningEffort": {
50349
50419
  "type": "string",
50350
50420
  "enum": [
50351
- "inherit",
50352
- "workspace-write",
50353
- "read-only",
50354
- "isolated"
50421
+ "instant",
50422
+ "low",
50423
+ "medium",
50424
+ "high"
50355
50425
  ]
50356
50426
  }
50357
50427
  },
50358
50428
  "additionalProperties": false
50359
50429
  },
50360
- "tools": {
50361
- "type": "array",
50362
- "items": {
50363
- "type": "string"
50364
- }
50365
- },
50366
- "reasoningEffort": {
50367
- "type": "string",
50368
- "enum": [
50369
- "instant",
50370
- "low",
50371
- "medium",
50372
- "high"
50373
- ]
50430
+ "error": {
50431
+ "type": "string"
50374
50432
  }
50375
50433
  },
50434
+ "required": [
50435
+ "id",
50436
+ "sessionId",
50437
+ "intent",
50438
+ "state",
50439
+ "correlationId",
50440
+ "body",
50441
+ "createdAt",
50442
+ "updatedAt",
50443
+ "metadata"
50444
+ ],
50376
50445
  "additionalProperties": false
50377
50446
  },
50378
- "error": {
50379
- "type": "string"
50447
+ "mode": {
50448
+ "type": "string",
50449
+ "enum": [
50450
+ "spawn",
50451
+ "continued-live",
50452
+ "queued-follow-up",
50453
+ "rejected"
50454
+ ]
50455
+ },
50456
+ "agentId": {
50457
+ "anyOf": [
50458
+ {
50459
+ "type": "string"
50460
+ },
50461
+ {
50462
+ "type": "null"
50463
+ }
50464
+ ]
50380
50465
  }
50381
50466
  },
50382
50467
  "required": [
50383
- "id",
50384
- "sessionId",
50385
- "intent",
50386
- "state",
50387
- "correlationId",
50388
- "body",
50389
- "createdAt",
50390
- "updatedAt",
50391
- "metadata"
50468
+ "session",
50469
+ "message",
50470
+ "input",
50471
+ "mode",
50472
+ "agentId"
50392
50473
  ],
50393
50474
  "additionalProperties": false
50394
- },
50395
- "mode": {
50396
- "type": "string",
50397
- "enum": [
50398
- "spawn",
50399
- "continued-live",
50400
- "queued-follow-up",
50401
- "rejected"
50402
- ]
50403
- },
50404
- "agentId": {
50405
- "anyOf": [
50406
- {
50407
- "type": "string"
50408
- },
50409
- {
50410
- "type": "null"
50411
- }
50412
- ]
50413
50475
  }
50414
- },
50415
- "required": [
50416
- "session",
50417
- "message",
50418
- "input",
50419
- "mode",
50420
- "agentId"
50421
- ],
50422
- "additionalProperties": false
50476
+ ]
50423
50477
  },
50424
50478
  "invokable": true
50425
50479
  },