@pellux/goodvibes-sdk 0.33.7 → 0.33.9

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 (36) hide show
  1. package/dist/browser-knowledge.d.ts +41 -1
  2. package/dist/browser-knowledge.d.ts.map +1 -1
  3. package/dist/browser-knowledge.js +26 -4
  4. package/dist/browser-scoped.d.ts +10 -1
  5. package/dist/browser-scoped.d.ts.map +1 -1
  6. package/dist/browser-scoped.js +18 -2
  7. package/dist/contracts/artifacts/operator-contract.json +387 -207
  8. package/dist/index.d.ts +1 -1
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/platform/companion/companion-chat-manager.d.ts +11 -0
  11. package/dist/platform/companion/companion-chat-manager.d.ts.map +1 -1
  12. package/dist/platform/companion/companion-chat-manager.js +20 -0
  13. package/dist/platform/companion/companion-chat-routes.d.ts.map +1 -1
  14. package/dist/platform/companion/companion-chat-routes.js +28 -1
  15. package/dist/platform/companion/companion-chat-types.d.ts +13 -0
  16. package/dist/platform/companion/companion-chat-types.d.ts.map +1 -1
  17. package/dist/platform/companion/index.d.ts +1 -1
  18. package/dist/platform/companion/index.d.ts.map +1 -1
  19. package/dist/platform/control-plane/method-catalog-control-core.d.ts.map +1 -1
  20. package/dist/platform/control-plane/method-catalog-control-core.js +22 -11
  21. package/dist/platform/control-plane/operator-contract-schemas-runtime.d.ts +5 -0
  22. package/dist/platform/control-plane/operator-contract-schemas-runtime.d.ts.map +1 -1
  23. package/dist/platform/control-plane/operator-contract-schemas-runtime.js +38 -0
  24. package/dist/platform/control-plane/session-broker.d.ts +1 -0
  25. package/dist/platform/control-plane/session-broker.d.ts.map +1 -1
  26. package/dist/platform/control-plane/session-broker.js +1 -0
  27. package/dist/platform/daemon/http/runtime-route-types.d.ts +9 -0
  28. package/dist/platform/daemon/http/runtime-route-types.d.ts.map +1 -1
  29. package/dist/platform/providers/builtin-registry.d.ts.map +1 -1
  30. package/dist/platform/providers/builtin-registry.js +1 -0
  31. package/dist/platform/types/generated/foundation-client-types.d.ts +1 -1
  32. package/dist/platform/types/generated/foundation-client-types.d.ts.map +1 -1
  33. package/dist/platform/types/index.d.ts +1 -1
  34. package/dist/platform/types/index.d.ts.map +1 -1
  35. package/dist/platform/version.js +1 -1
  36. package/package.json +9 -9
@@ -3,7 +3,7 @@
3
3
  "product": {
4
4
  "id": "goodvibes",
5
5
  "surface": "operator",
6
- "version": "0.33.7"
6
+ "version": "0.33.9"
7
7
  },
8
8
  "auth": {
9
9
  "modes": [
@@ -20121,8 +20121,7 @@
20121
20121
  "source": "builtin",
20122
20122
  "access": "authenticated",
20123
20123
  "transport": [
20124
- "http",
20125
- "ws"
20124
+ "http"
20126
20125
  ],
20127
20126
  "scopes": [
20128
20127
  "read:sessions"
@@ -20148,7 +20147,12 @@
20148
20147
  "properties": {},
20149
20148
  "additionalProperties": false
20150
20149
  },
20151
- "invokable": true
20150
+ "invokable": false,
20151
+ "metadata": {
20152
+ "responseKind": "sse",
20153
+ "stream": true,
20154
+ "wireEventPrefix": "companion-chat."
20155
+ }
20152
20156
  },
20153
20157
  {
20154
20158
  "id": "companion.chat.messages.create",
@@ -20239,7 +20243,34 @@
20239
20243
  "type": "array",
20240
20244
  "items": {
20241
20245
  "type": "object",
20242
- "properties": {},
20246
+ "properties": {
20247
+ "id": {
20248
+ "type": "string"
20249
+ },
20250
+ "sessionId": {
20251
+ "type": "string"
20252
+ },
20253
+ "role": {
20254
+ "type": "string",
20255
+ "enum": [
20256
+ "user",
20257
+ "assistant"
20258
+ ]
20259
+ },
20260
+ "content": {
20261
+ "type": "string"
20262
+ },
20263
+ "createdAt": {
20264
+ "type": "number"
20265
+ }
20266
+ },
20267
+ "required": [
20268
+ "id",
20269
+ "sessionId",
20270
+ "role",
20271
+ "content",
20272
+ "createdAt"
20273
+ ],
20243
20274
  "additionalProperties": false
20244
20275
  }
20245
20276
  }
@@ -20296,11 +20327,99 @@
20296
20327
  },
20297
20328
  "createdAt": {
20298
20329
  "type": "number"
20330
+ },
20331
+ "session": {
20332
+ "type": "object",
20333
+ "properties": {
20334
+ "id": {
20335
+ "type": "string"
20336
+ },
20337
+ "kind": {
20338
+ "type": "string",
20339
+ "enum": [
20340
+ "companion-chat"
20341
+ ]
20342
+ },
20343
+ "title": {
20344
+ "type": "string"
20345
+ },
20346
+ "model": {
20347
+ "anyOf": [
20348
+ {
20349
+ "type": "string"
20350
+ },
20351
+ {
20352
+ "type": "null"
20353
+ }
20354
+ ]
20355
+ },
20356
+ "provider": {
20357
+ "anyOf": [
20358
+ {
20359
+ "type": "string"
20360
+ },
20361
+ {
20362
+ "type": "null"
20363
+ }
20364
+ ]
20365
+ },
20366
+ "systemPrompt": {
20367
+ "anyOf": [
20368
+ {
20369
+ "type": "string"
20370
+ },
20371
+ {
20372
+ "type": "null"
20373
+ }
20374
+ ]
20375
+ },
20376
+ "status": {
20377
+ "type": "string",
20378
+ "enum": [
20379
+ "active",
20380
+ "closed"
20381
+ ]
20382
+ },
20383
+ "createdAt": {
20384
+ "type": "number"
20385
+ },
20386
+ "updatedAt": {
20387
+ "type": "number"
20388
+ },
20389
+ "closedAt": {
20390
+ "anyOf": [
20391
+ {
20392
+ "type": "number"
20393
+ },
20394
+ {
20395
+ "type": "null"
20396
+ }
20397
+ ]
20398
+ },
20399
+ "messageCount": {
20400
+ "type": "number"
20401
+ }
20402
+ },
20403
+ "required": [
20404
+ "id",
20405
+ "kind",
20406
+ "title",
20407
+ "model",
20408
+ "provider",
20409
+ "systemPrompt",
20410
+ "status",
20411
+ "createdAt",
20412
+ "updatedAt",
20413
+ "closedAt",
20414
+ "messageCount"
20415
+ ],
20416
+ "additionalProperties": false
20299
20417
  }
20300
20418
  },
20301
20419
  "required": [
20302
20420
  "sessionId",
20303
- "createdAt"
20421
+ "createdAt",
20422
+ "session"
20304
20423
  ],
20305
20424
  "additionalProperties": false
20306
20425
  },
@@ -20396,14 +20515,42 @@
20396
20515
  "kind": {
20397
20516
  "type": "string",
20398
20517
  "enum": [
20399
- "tui",
20400
- "companion-task",
20401
20518
  "companion-chat"
20402
20519
  ]
20403
20520
  },
20404
20521
  "title": {
20405
20522
  "type": "string"
20406
20523
  },
20524
+ "model": {
20525
+ "anyOf": [
20526
+ {
20527
+ "type": "string"
20528
+ },
20529
+ {
20530
+ "type": "null"
20531
+ }
20532
+ ]
20533
+ },
20534
+ "provider": {
20535
+ "anyOf": [
20536
+ {
20537
+ "type": "string"
20538
+ },
20539
+ {
20540
+ "type": "null"
20541
+ }
20542
+ ]
20543
+ },
20544
+ "systemPrompt": {
20545
+ "anyOf": [
20546
+ {
20547
+ "type": "string"
20548
+ },
20549
+ {
20550
+ "type": "null"
20551
+ }
20552
+ ]
20553
+ },
20407
20554
  "status": {
20408
20555
  "type": "string",
20409
20556
  "enum": [
@@ -20417,134 +20564,226 @@
20417
20564
  "updatedAt": {
20418
20565
  "type": "number"
20419
20566
  },
20420
- "lastMessageAt": {
20421
- "type": "number"
20422
- },
20423
20567
  "closedAt": {
20424
- "type": "number"
20425
- },
20426
- "lastActivityAt": {
20427
- "type": "number"
20568
+ "anyOf": [
20569
+ {
20570
+ "type": "number"
20571
+ },
20572
+ {
20573
+ "type": "null"
20574
+ }
20575
+ ]
20428
20576
  },
20429
20577
  "messageCount": {
20430
20578
  "type": "number"
20431
- },
20432
- "pendingInputCount": {
20433
- "type": "number"
20434
- },
20435
- "routeIds": {
20436
- "type": "array",
20437
- "items": {
20579
+ }
20580
+ },
20581
+ "required": [
20582
+ "id",
20583
+ "kind",
20584
+ "title",
20585
+ "model",
20586
+ "provider",
20587
+ "systemPrompt",
20588
+ "status",
20589
+ "createdAt",
20590
+ "updatedAt",
20591
+ "closedAt",
20592
+ "messageCount"
20593
+ ],
20594
+ "additionalProperties": false
20595
+ },
20596
+ "messages": {
20597
+ "type": "array",
20598
+ "items": {
20599
+ "type": "object",
20600
+ "properties": {
20601
+ "id": {
20438
20602
  "type": "string"
20439
- }
20440
- },
20441
- "surfaceKinds": {
20442
- "type": "array",
20443
- "items": {
20603
+ },
20604
+ "sessionId": {
20444
20605
  "type": "string"
20606
+ },
20607
+ "role": {
20608
+ "type": "string",
20609
+ "enum": [
20610
+ "user",
20611
+ "assistant"
20612
+ ]
20613
+ },
20614
+ "content": {
20615
+ "type": "string"
20616
+ },
20617
+ "createdAt": {
20618
+ "type": "number"
20445
20619
  }
20446
20620
  },
20447
- "participants": {
20448
- "type": "array",
20449
- "items": {
20450
- "type": "object",
20451
- "properties": {
20452
- "surfaceKind": {
20453
- "type": "string"
20454
- },
20455
- "surfaceId": {
20456
- "type": "string"
20457
- },
20458
- "externalId": {
20459
- "type": "string"
20460
- },
20461
- "userId": {
20462
- "type": "string"
20463
- },
20464
- "displayName": {
20465
- "type": "string"
20466
- },
20467
- "routeId": {
20621
+ "required": [
20622
+ "id",
20623
+ "sessionId",
20624
+ "role",
20625
+ "content",
20626
+ "createdAt"
20627
+ ],
20628
+ "additionalProperties": false
20629
+ }
20630
+ }
20631
+ },
20632
+ "required": [
20633
+ "session",
20634
+ "messages"
20635
+ ],
20636
+ "additionalProperties": false
20637
+ },
20638
+ "invokable": true
20639
+ },
20640
+ {
20641
+ "id": "companion.chat.sessions.list",
20642
+ "title": "List Companion Chat Sessions",
20643
+ "description": "List active companion-chat sessions. Pass `includeClosed` to include recently closed sessions.",
20644
+ "category": "companion",
20645
+ "source": "builtin",
20646
+ "access": "authenticated",
20647
+ "transport": [
20648
+ "http",
20649
+ "ws"
20650
+ ],
20651
+ "scopes": [
20652
+ "read:sessions"
20653
+ ],
20654
+ "http": {
20655
+ "method": "GET",
20656
+ "path": "/api/companion/chat/sessions"
20657
+ },
20658
+ "inputSchema": {
20659
+ "type": "object",
20660
+ "properties": {
20661
+ "includeClosed": {
20662
+ "type": "boolean"
20663
+ },
20664
+ "limit": {
20665
+ "type": "number"
20666
+ }
20667
+ },
20668
+ "additionalProperties": false
20669
+ },
20670
+ "outputSchema": {
20671
+ "type": "object",
20672
+ "properties": {
20673
+ "sessions": {
20674
+ "type": "array",
20675
+ "items": {
20676
+ "type": "object",
20677
+ "properties": {
20678
+ "id": {
20679
+ "type": "string"
20680
+ },
20681
+ "kind": {
20682
+ "type": "string",
20683
+ "enum": [
20684
+ "companion-chat"
20685
+ ]
20686
+ },
20687
+ "title": {
20688
+ "type": "string"
20689
+ },
20690
+ "model": {
20691
+ "anyOf": [
20692
+ {
20468
20693
  "type": "string"
20469
20694
  },
20470
- "lastSeenAt": {
20471
- "type": "number"
20695
+ {
20696
+ "type": "null"
20472
20697
  }
20473
- },
20474
- "required": [
20475
- "surfaceKind",
20476
- "surfaceId",
20477
- "lastSeenAt"
20478
- ],
20479
- "additionalProperties": false
20480
- }
20481
- },
20482
- "activeAgentId": {
20483
- "type": "string"
20484
- },
20485
- "lastAgentId": {
20486
- "type": "string"
20487
- },
20488
- "lastError": {
20489
- "type": "string"
20490
- },
20491
- "metadata": {
20492
- "type": "object",
20493
- "additionalProperties": {
20698
+ ]
20699
+ },
20700
+ "provider": {
20494
20701
  "anyOf": [
20495
20702
  {
20496
20703
  "type": "string"
20497
20704
  },
20498
20705
  {
20499
- "type": "number"
20500
- },
20706
+ "type": "null"
20707
+ }
20708
+ ]
20709
+ },
20710
+ "systemPrompt": {
20711
+ "anyOf": [
20501
20712
  {
20502
- "type": "boolean"
20713
+ "type": "string"
20503
20714
  },
20504
20715
  {
20505
20716
  "type": "null"
20506
- },
20717
+ }
20718
+ ]
20719
+ },
20720
+ "status": {
20721
+ "type": "string",
20722
+ "enum": [
20723
+ "active",
20724
+ "closed"
20725
+ ]
20726
+ },
20727
+ "createdAt": {
20728
+ "type": "number"
20729
+ },
20730
+ "updatedAt": {
20731
+ "type": "number"
20732
+ },
20733
+ "closedAt": {
20734
+ "anyOf": [
20507
20735
  {
20508
- "type": "object",
20509
- "additionalProperties": {}
20736
+ "type": "number"
20510
20737
  },
20511
20738
  {
20512
- "type": "array",
20513
- "items": {}
20739
+ "type": "null"
20514
20740
  }
20515
20741
  ]
20742
+ },
20743
+ "messageCount": {
20744
+ "type": "number"
20516
20745
  }
20746
+ },
20747
+ "required": [
20748
+ "id",
20749
+ "kind",
20750
+ "title",
20751
+ "model",
20752
+ "provider",
20753
+ "systemPrompt",
20754
+ "status",
20755
+ "createdAt",
20756
+ "updatedAt",
20757
+ "closedAt",
20758
+ "messageCount"
20759
+ ],
20760
+ "additionalProperties": false
20761
+ }
20762
+ },
20763
+ "totals": {
20764
+ "type": "object",
20765
+ "properties": {
20766
+ "sessions": {
20767
+ "type": "number"
20768
+ },
20769
+ "active": {
20770
+ "type": "number"
20771
+ },
20772
+ "closed": {
20773
+ "type": "number"
20517
20774
  }
20518
20775
  },
20519
20776
  "required": [
20520
- "id",
20521
- "kind",
20522
- "title",
20523
- "status",
20524
- "createdAt",
20525
- "updatedAt",
20526
- "lastActivityAt",
20527
- "messageCount",
20528
- "pendingInputCount",
20529
- "routeIds",
20530
- "surfaceKinds",
20531
- "participants",
20532
- "metadata"
20777
+ "sessions",
20778
+ "active",
20779
+ "closed"
20533
20780
  ],
20534
20781
  "additionalProperties": false
20535
- },
20536
- "messages": {
20537
- "type": "array",
20538
- "items": {
20539
- "type": "object",
20540
- "properties": {},
20541
- "additionalProperties": false
20542
- }
20543
20782
  }
20544
20783
  },
20545
20784
  "required": [
20546
- "session",
20547
- "messages"
20785
+ "sessions",
20786
+ "totals"
20548
20787
  ],
20549
20788
  "additionalProperties": false
20550
20789
  },
@@ -20598,14 +20837,42 @@
20598
20837
  "kind": {
20599
20838
  "type": "string",
20600
20839
  "enum": [
20601
- "tui",
20602
- "companion-task",
20603
20840
  "companion-chat"
20604
20841
  ]
20605
20842
  },
20606
20843
  "title": {
20607
20844
  "type": "string"
20608
20845
  },
20846
+ "model": {
20847
+ "anyOf": [
20848
+ {
20849
+ "type": "string"
20850
+ },
20851
+ {
20852
+ "type": "null"
20853
+ }
20854
+ ]
20855
+ },
20856
+ "provider": {
20857
+ "anyOf": [
20858
+ {
20859
+ "type": "string"
20860
+ },
20861
+ {
20862
+ "type": "null"
20863
+ }
20864
+ ]
20865
+ },
20866
+ "systemPrompt": {
20867
+ "anyOf": [
20868
+ {
20869
+ "type": "string"
20870
+ },
20871
+ {
20872
+ "type": "null"
20873
+ }
20874
+ ]
20875
+ },
20609
20876
  "status": {
20610
20877
  "type": "string",
20611
20878
  "enum": [
@@ -20619,119 +20886,32 @@
20619
20886
  "updatedAt": {
20620
20887
  "type": "number"
20621
20888
  },
20622
- "lastMessageAt": {
20623
- "type": "number"
20624
- },
20625
20889
  "closedAt": {
20626
- "type": "number"
20627
- },
20628
- "lastActivityAt": {
20629
- "type": "number"
20890
+ "anyOf": [
20891
+ {
20892
+ "type": "number"
20893
+ },
20894
+ {
20895
+ "type": "null"
20896
+ }
20897
+ ]
20630
20898
  },
20631
20899
  "messageCount": {
20632
20900
  "type": "number"
20633
- },
20634
- "pendingInputCount": {
20635
- "type": "number"
20636
- },
20637
- "routeIds": {
20638
- "type": "array",
20639
- "items": {
20640
- "type": "string"
20641
- }
20642
- },
20643
- "surfaceKinds": {
20644
- "type": "array",
20645
- "items": {
20646
- "type": "string"
20647
- }
20648
- },
20649
- "participants": {
20650
- "type": "array",
20651
- "items": {
20652
- "type": "object",
20653
- "properties": {
20654
- "surfaceKind": {
20655
- "type": "string"
20656
- },
20657
- "surfaceId": {
20658
- "type": "string"
20659
- },
20660
- "externalId": {
20661
- "type": "string"
20662
- },
20663
- "userId": {
20664
- "type": "string"
20665
- },
20666
- "displayName": {
20667
- "type": "string"
20668
- },
20669
- "routeId": {
20670
- "type": "string"
20671
- },
20672
- "lastSeenAt": {
20673
- "type": "number"
20674
- }
20675
- },
20676
- "required": [
20677
- "surfaceKind",
20678
- "surfaceId",
20679
- "lastSeenAt"
20680
- ],
20681
- "additionalProperties": false
20682
- }
20683
- },
20684
- "activeAgentId": {
20685
- "type": "string"
20686
- },
20687
- "lastAgentId": {
20688
- "type": "string"
20689
- },
20690
- "lastError": {
20691
- "type": "string"
20692
- },
20693
- "metadata": {
20694
- "type": "object",
20695
- "additionalProperties": {
20696
- "anyOf": [
20697
- {
20698
- "type": "string"
20699
- },
20700
- {
20701
- "type": "number"
20702
- },
20703
- {
20704
- "type": "boolean"
20705
- },
20706
- {
20707
- "type": "null"
20708
- },
20709
- {
20710
- "type": "object",
20711
- "additionalProperties": {}
20712
- },
20713
- {
20714
- "type": "array",
20715
- "items": {}
20716
- }
20717
- ]
20718
- }
20719
20901
  }
20720
20902
  },
20721
20903
  "required": [
20722
20904
  "id",
20723
20905
  "kind",
20724
20906
  "title",
20907
+ "model",
20908
+ "provider",
20909
+ "systemPrompt",
20725
20910
  "status",
20726
20911
  "createdAt",
20727
20912
  "updatedAt",
20728
- "lastActivityAt",
20729
- "messageCount",
20730
- "pendingInputCount",
20731
- "routeIds",
20732
- "surfaceKinds",
20733
- "participants",
20734
- "metadata"
20913
+ "closedAt",
20914
+ "messageCount"
20735
20915
  ],
20736
20916
  "additionalProperties": false
20737
20917
  }
@@ -68813,10 +68993,10 @@
68813
68993
  }
68814
68994
  ],
68815
68995
  "schemaCoverage": {
68816
- "methods": 263,
68817
- "typedInputs": 263,
68996
+ "methods": 264,
68997
+ "typedInputs": 264,
68818
68998
  "genericInputs": 0,
68819
- "typedOutputs": 263,
68999
+ "typedOutputs": 264,
68820
69000
  "genericOutputs": 0
68821
69001
  },
68822
69002
  "eventCoverage": {