@aparte/core 1.1.1 → 1.2.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/dist/client/aparte-client.d.ts.map +1 -1
- package/dist/client/wire-history.d.ts +3 -1
- package/dist/client/wire-history.d.ts.map +1 -1
- package/dist/components/launcher/aparte-launcher.d.ts.map +1 -1
- package/dist/components/split/aparte-split.d.ts +26 -0
- package/dist/components/split/aparte-split.d.ts.map +1 -1
- package/dist/config/aparte-config.d.ts +6 -1
- package/dist/config/aparte-config.d.ts.map +1 -1
- package/dist/config/locale.d.ts +8 -0
- package/dist/config/locale.d.ts.map +1 -1
- package/dist/context/measure.d.ts.map +1 -1
- package/dist/custom-elements.json +1217 -1170
- package/dist/{defer-hydration-BBdqAZej.js → defer-hydration-Oh04ScDm.js} +28 -9
- package/dist/defer-hydration-Oh04ScDm.js.map +1 -0
- package/dist/generated/element-attributes.d.ts +2 -0
- package/dist/generated/element-attributes.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +94 -9
- package/dist/index.js.map +1 -1
- package/dist/index.node.js +1 -1
- package/dist/types/segments.d.ts +12 -0
- package/dist/types/segments.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/defer-hydration-BBdqAZej.js.map +0 -1
|
@@ -5655,262 +5655,637 @@
|
|
|
5655
5655
|
},
|
|
5656
5656
|
{
|
|
5657
5657
|
"kind": "javascript-module",
|
|
5658
|
-
"path": "src/
|
|
5659
|
-
"declarations": [
|
|
5660
|
-
{
|
|
5661
|
-
"kind": "function",
|
|
5662
|
-
"name": "createAgentStreamRunner",
|
|
5663
|
-
"return": {
|
|
5664
|
-
"type": {
|
|
5665
|
-
"text": "AparteStreamRunner"
|
|
5666
|
-
}
|
|
5667
|
-
},
|
|
5668
|
-
"parameters": [
|
|
5669
|
-
{
|
|
5670
|
-
"name": "options",
|
|
5671
|
-
"type": {
|
|
5672
|
-
"text": "AgentStreamRunnerOptions"
|
|
5673
|
-
}
|
|
5674
|
-
}
|
|
5675
|
-
],
|
|
5676
|
-
"description": "An `AparteStreamRunner` that runs `AparteClient`'s loop on YOUR server — the one\n`createAparteAgentHandler` serves — and replays its events here, where the client's\nadapter draws them exactly as it draws a loop run in the page.\n\n```ts\nconst client = new AparteClient({ streamRunner: createAgentStreamRunner({ endpoint: '/api/agent' }) });\n```\n\nThe page needs no provider of its own: the server runs the model. A provider and model\nthe page selects anyway travel with the turn, and the server uses them.\n\nA pipe, nothing more. It sees no message and no segment, so it opens no panel and runs\nno tool: when the server suspends a run, the CLIENT asks the person or runs the browser\ntool, then calls this runner again with the answers in `deferral` — the same path it\ntakes when a conversation with a paused call is reloaded days later."
|
|
5677
|
-
}
|
|
5678
|
-
],
|
|
5658
|
+
"path": "src/components/index.ts",
|
|
5659
|
+
"declarations": [],
|
|
5679
5660
|
"exports": [
|
|
5680
5661
|
{
|
|
5681
5662
|
"kind": "js",
|
|
5682
|
-
"name": "
|
|
5663
|
+
"name": "AparteChat",
|
|
5683
5664
|
"declaration": {
|
|
5684
|
-
"name": "
|
|
5685
|
-
"module": "
|
|
5665
|
+
"name": "AparteChat",
|
|
5666
|
+
"module": "./chat/index.js"
|
|
5686
5667
|
}
|
|
5687
|
-
}
|
|
5688
|
-
]
|
|
5689
|
-
},
|
|
5690
|
-
{
|
|
5691
|
-
"kind": "javascript-module",
|
|
5692
|
-
"path": "src/client/aparte-client.ts",
|
|
5693
|
-
"declarations": [
|
|
5668
|
+
},
|
|
5694
5669
|
{
|
|
5695
|
-
"kind": "
|
|
5696
|
-
"
|
|
5697
|
-
"
|
|
5698
|
-
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5711
|
-
|
|
5712
|
-
|
|
5713
|
-
|
|
5714
|
-
|
|
5715
|
-
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
|
|
5736
|
-
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
-
|
|
5740
|
-
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
|
|
5744
|
-
|
|
5745
|
-
|
|
5746
|
-
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
|
|
5754
|
-
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
|
|
5758
|
-
|
|
5759
|
-
|
|
5760
|
-
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
|
|
5773
|
-
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
|
|
5778
|
-
|
|
5779
|
-
|
|
5780
|
-
|
|
5781
|
-
|
|
5782
|
-
|
|
5783
|
-
|
|
5784
|
-
|
|
5785
|
-
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
-
|
|
5789
|
-
|
|
5790
|
-
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
|
|
5810
|
-
|
|
5811
|
-
|
|
5812
|
-
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
|
|
5818
|
-
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
|
|
5823
|
-
|
|
5824
|
-
|
|
5825
|
-
|
|
5826
|
-
|
|
5827
|
-
|
|
5828
|
-
|
|
5829
|
-
|
|
5830
|
-
|
|
5831
|
-
|
|
5832
|
-
|
|
5833
|
-
|
|
5834
|
-
|
|
5835
|
-
|
|
5836
|
-
|
|
5837
|
-
|
|
5838
|
-
|
|
5839
|
-
|
|
5840
|
-
|
|
5841
|
-
|
|
5842
|
-
|
|
5843
|
-
|
|
5844
|
-
|
|
5845
|
-
|
|
5846
|
-
|
|
5847
|
-
|
|
5848
|
-
|
|
5849
|
-
|
|
5850
|
-
|
|
5851
|
-
|
|
5852
|
-
|
|
5853
|
-
|
|
5854
|
-
|
|
5855
|
-
|
|
5856
|
-
|
|
5857
|
-
|
|
5858
|
-
|
|
5859
|
-
|
|
5860
|
-
|
|
5861
|
-
|
|
5862
|
-
|
|
5863
|
-
|
|
5864
|
-
|
|
5865
|
-
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
|
|
5869
|
-
|
|
5870
|
-
|
|
5871
|
-
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
|
|
5875
|
-
|
|
5876
|
-
|
|
5877
|
-
|
|
5878
|
-
|
|
5879
|
-
|
|
5880
|
-
|
|
5881
|
-
|
|
5882
|
-
|
|
5883
|
-
|
|
5884
|
-
|
|
5885
|
-
|
|
5886
|
-
|
|
5887
|
-
|
|
5888
|
-
|
|
5889
|
-
|
|
5890
|
-
|
|
5891
|
-
|
|
5892
|
-
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
|
|
5896
|
-
|
|
5897
|
-
|
|
5898
|
-
|
|
5899
|
-
|
|
5900
|
-
|
|
5901
|
-
|
|
5902
|
-
|
|
5903
|
-
|
|
5904
|
-
|
|
5905
|
-
|
|
5906
|
-
|
|
5907
|
-
|
|
5908
|
-
|
|
5909
|
-
|
|
5910
|
-
|
|
5911
|
-
|
|
5912
|
-
|
|
5913
|
-
|
|
5670
|
+
"kind": "js",
|
|
5671
|
+
"name": "AparteChatBubble",
|
|
5672
|
+
"declaration": {
|
|
5673
|
+
"name": "AparteChatBubble",
|
|
5674
|
+
"module": "./bubble/index.js"
|
|
5675
|
+
}
|
|
5676
|
+
},
|
|
5677
|
+
{
|
|
5678
|
+
"kind": "js",
|
|
5679
|
+
"name": "populateBubbleFromMessage",
|
|
5680
|
+
"declaration": {
|
|
5681
|
+
"name": "populateBubbleFromMessage",
|
|
5682
|
+
"module": "./bubble/index.js"
|
|
5683
|
+
}
|
|
5684
|
+
},
|
|
5685
|
+
{
|
|
5686
|
+
"kind": "js",
|
|
5687
|
+
"name": "SyncableBubble",
|
|
5688
|
+
"declaration": {
|
|
5689
|
+
"name": "SyncableBubble",
|
|
5690
|
+
"module": "./bubble/index.js"
|
|
5691
|
+
}
|
|
5692
|
+
},
|
|
5693
|
+
{
|
|
5694
|
+
"kind": "js",
|
|
5695
|
+
"name": "AparteChatStatus",
|
|
5696
|
+
"declaration": {
|
|
5697
|
+
"name": "AparteChatStatus",
|
|
5698
|
+
"module": "./status/index.js"
|
|
5699
|
+
}
|
|
5700
|
+
},
|
|
5701
|
+
{
|
|
5702
|
+
"kind": "js",
|
|
5703
|
+
"name": "AparteChatViewport",
|
|
5704
|
+
"declaration": {
|
|
5705
|
+
"name": "AparteChatViewport",
|
|
5706
|
+
"module": "./viewport/index.js"
|
|
5707
|
+
}
|
|
5708
|
+
},
|
|
5709
|
+
{
|
|
5710
|
+
"kind": "js",
|
|
5711
|
+
"name": "AparteComposer",
|
|
5712
|
+
"declaration": {
|
|
5713
|
+
"name": "AparteComposer",
|
|
5714
|
+
"module": "./composer/index.js"
|
|
5715
|
+
}
|
|
5716
|
+
},
|
|
5717
|
+
{
|
|
5718
|
+
"kind": "js",
|
|
5719
|
+
"name": "AparteComposerInput",
|
|
5720
|
+
"declaration": {
|
|
5721
|
+
"name": "AparteComposerInput",
|
|
5722
|
+
"module": "./composer/index.js"
|
|
5723
|
+
}
|
|
5724
|
+
},
|
|
5725
|
+
{
|
|
5726
|
+
"kind": "js",
|
|
5727
|
+
"name": "AparteComposerSend",
|
|
5728
|
+
"declaration": {
|
|
5729
|
+
"name": "AparteComposerSend",
|
|
5730
|
+
"module": "./composer/index.js"
|
|
5731
|
+
}
|
|
5732
|
+
},
|
|
5733
|
+
{
|
|
5734
|
+
"kind": "js",
|
|
5735
|
+
"name": "AparteComposerCancel",
|
|
5736
|
+
"declaration": {
|
|
5737
|
+
"name": "AparteComposerCancel",
|
|
5738
|
+
"module": "./composer/index.js"
|
|
5739
|
+
}
|
|
5740
|
+
},
|
|
5741
|
+
{
|
|
5742
|
+
"kind": "js",
|
|
5743
|
+
"name": "AparteComposerAttachments",
|
|
5744
|
+
"declaration": {
|
|
5745
|
+
"name": "AparteComposerAttachments",
|
|
5746
|
+
"module": "./composer/index.js"
|
|
5747
|
+
}
|
|
5748
|
+
},
|
|
5749
|
+
{
|
|
5750
|
+
"kind": "js",
|
|
5751
|
+
"name": "AparteComposerAddAttachment",
|
|
5752
|
+
"declaration": {
|
|
5753
|
+
"name": "AparteComposerAddAttachment",
|
|
5754
|
+
"module": "./composer/index.js"
|
|
5755
|
+
}
|
|
5756
|
+
},
|
|
5757
|
+
{
|
|
5758
|
+
"kind": "js",
|
|
5759
|
+
"name": "AparteComposerAction",
|
|
5760
|
+
"declaration": {
|
|
5761
|
+
"name": "AparteComposerAction",
|
|
5762
|
+
"module": "./composer/index.js"
|
|
5763
|
+
}
|
|
5764
|
+
},
|
|
5765
|
+
{
|
|
5766
|
+
"kind": "js",
|
|
5767
|
+
"name": "AparteComposerToolbar",
|
|
5768
|
+
"declaration": {
|
|
5769
|
+
"name": "AparteComposerToolbar",
|
|
5770
|
+
"module": "./composer/index.js"
|
|
5771
|
+
}
|
|
5772
|
+
},
|
|
5773
|
+
{
|
|
5774
|
+
"kind": "js",
|
|
5775
|
+
"name": "AparteComposerEventMap",
|
|
5776
|
+
"declaration": {
|
|
5777
|
+
"name": "AparteComposerEventMap",
|
|
5778
|
+
"module": "./composer/index.js"
|
|
5779
|
+
}
|
|
5780
|
+
},
|
|
5781
|
+
{
|
|
5782
|
+
"kind": "js",
|
|
5783
|
+
"name": "AparteComposerEventType",
|
|
5784
|
+
"declaration": {
|
|
5785
|
+
"name": "AparteComposerEventType",
|
|
5786
|
+
"module": "./composer/index.js"
|
|
5787
|
+
}
|
|
5788
|
+
},
|
|
5789
|
+
{
|
|
5790
|
+
"kind": "js",
|
|
5791
|
+
"name": "AparteComposerState",
|
|
5792
|
+
"declaration": {
|
|
5793
|
+
"name": "AparteComposerState",
|
|
5794
|
+
"module": "./composer/index.js"
|
|
5795
|
+
}
|
|
5796
|
+
},
|
|
5797
|
+
{
|
|
5798
|
+
"kind": "js",
|
|
5799
|
+
"name": "AparteComposerChangeEventDetail",
|
|
5800
|
+
"declaration": {
|
|
5801
|
+
"name": "AparteComposerChangeEventDetail",
|
|
5802
|
+
"module": "./composer/index.js"
|
|
5803
|
+
}
|
|
5804
|
+
},
|
|
5805
|
+
{
|
|
5806
|
+
"kind": "js",
|
|
5807
|
+
"name": "AparteComposerPanelMode",
|
|
5808
|
+
"declaration": {
|
|
5809
|
+
"name": "AparteComposerPanelMode",
|
|
5810
|
+
"module": "./composer/index.js"
|
|
5811
|
+
}
|
|
5812
|
+
},
|
|
5813
|
+
{
|
|
5814
|
+
"kind": "js",
|
|
5815
|
+
"name": "AparteActionClickEventDetail",
|
|
5816
|
+
"declaration": {
|
|
5817
|
+
"name": "AparteActionClickEventDetail",
|
|
5818
|
+
"module": "./composer/index.js"
|
|
5819
|
+
}
|
|
5820
|
+
},
|
|
5821
|
+
{
|
|
5822
|
+
"kind": "js",
|
|
5823
|
+
"name": "AparteConversationList",
|
|
5824
|
+
"declaration": {
|
|
5825
|
+
"name": "AparteConversationList",
|
|
5826
|
+
"module": "./conversation-list/index.js"
|
|
5827
|
+
}
|
|
5828
|
+
},
|
|
5829
|
+
{
|
|
5830
|
+
"kind": "js",
|
|
5831
|
+
"name": "AparteConversationListItem",
|
|
5832
|
+
"declaration": {
|
|
5833
|
+
"name": "AparteConversationListItem",
|
|
5834
|
+
"module": "./conversation-list/index.js"
|
|
5835
|
+
}
|
|
5836
|
+
},
|
|
5837
|
+
{
|
|
5838
|
+
"kind": "js",
|
|
5839
|
+
"name": "AparteConversationSelectDetail",
|
|
5840
|
+
"declaration": {
|
|
5841
|
+
"name": "AparteConversationSelectDetail",
|
|
5842
|
+
"module": "./conversation-list/index.js"
|
|
5843
|
+
}
|
|
5844
|
+
},
|
|
5845
|
+
{
|
|
5846
|
+
"kind": "js",
|
|
5847
|
+
"name": "AparteConversationDeleteDetail",
|
|
5848
|
+
"declaration": {
|
|
5849
|
+
"name": "AparteConversationDeleteDetail",
|
|
5850
|
+
"module": "./conversation-list/index.js"
|
|
5851
|
+
}
|
|
5852
|
+
},
|
|
5853
|
+
{
|
|
5854
|
+
"kind": "js",
|
|
5855
|
+
"name": "AparteConversationArchiveDetail",
|
|
5856
|
+
"declaration": {
|
|
5857
|
+
"name": "AparteConversationArchiveDetail",
|
|
5858
|
+
"module": "./conversation-list/index.js"
|
|
5859
|
+
}
|
|
5860
|
+
},
|
|
5861
|
+
{
|
|
5862
|
+
"kind": "js",
|
|
5863
|
+
"name": "AparteConversationPinDetail",
|
|
5864
|
+
"declaration": {
|
|
5865
|
+
"name": "AparteConversationPinDetail",
|
|
5866
|
+
"module": "./conversation-list/index.js"
|
|
5867
|
+
}
|
|
5868
|
+
},
|
|
5869
|
+
{
|
|
5870
|
+
"kind": "js",
|
|
5871
|
+
"name": "AparteConversationRenameDetail",
|
|
5872
|
+
"declaration": {
|
|
5873
|
+
"name": "AparteConversationRenameDetail",
|
|
5874
|
+
"module": "./conversation-list/index.js"
|
|
5875
|
+
}
|
|
5876
|
+
},
|
|
5877
|
+
{
|
|
5878
|
+
"kind": "js",
|
|
5879
|
+
"name": "AparteConversationStatus",
|
|
5880
|
+
"declaration": {
|
|
5881
|
+
"name": "AparteConversationStatus",
|
|
5882
|
+
"module": "./conversation-list/index.js"
|
|
5883
|
+
}
|
|
5884
|
+
},
|
|
5885
|
+
{
|
|
5886
|
+
"kind": "js",
|
|
5887
|
+
"name": "AparteConversationStatusDetail",
|
|
5888
|
+
"declaration": {
|
|
5889
|
+
"name": "AparteConversationStatusDetail",
|
|
5890
|
+
"module": "./conversation-list/index.js"
|
|
5891
|
+
}
|
|
5892
|
+
},
|
|
5893
|
+
{
|
|
5894
|
+
"kind": "js",
|
|
5895
|
+
"name": "AparteSuggestions",
|
|
5896
|
+
"declaration": {
|
|
5897
|
+
"name": "AparteSuggestions",
|
|
5898
|
+
"module": "./suggestions/index.js"
|
|
5899
|
+
}
|
|
5900
|
+
},
|
|
5901
|
+
{
|
|
5902
|
+
"kind": "js",
|
|
5903
|
+
"name": "setupSuggestionBlocks",
|
|
5904
|
+
"declaration": {
|
|
5905
|
+
"name": "setupSuggestionBlocks",
|
|
5906
|
+
"module": "./suggestions/index.js"
|
|
5907
|
+
}
|
|
5908
|
+
},
|
|
5909
|
+
{
|
|
5910
|
+
"kind": "js",
|
|
5911
|
+
"name": "SUGGESTIONS_BLOCK_LANGUAGE",
|
|
5912
|
+
"declaration": {
|
|
5913
|
+
"name": "SUGGESTIONS_BLOCK_LANGUAGE",
|
|
5914
|
+
"module": "./suggestions/index.js"
|
|
5915
|
+
}
|
|
5916
|
+
},
|
|
5917
|
+
{
|
|
5918
|
+
"kind": "js",
|
|
5919
|
+
"name": "AparteSuggestion",
|
|
5920
|
+
"declaration": {
|
|
5921
|
+
"name": "AparteSuggestion",
|
|
5922
|
+
"module": "./suggestions/index.js"
|
|
5923
|
+
}
|
|
5924
|
+
},
|
|
5925
|
+
{
|
|
5926
|
+
"kind": "js",
|
|
5927
|
+
"name": "AparteSuggestionEventDetail",
|
|
5928
|
+
"declaration": {
|
|
5929
|
+
"name": "AparteSuggestionEventDetail",
|
|
5930
|
+
"module": "./suggestions/index.js"
|
|
5931
|
+
}
|
|
5932
|
+
},
|
|
5933
|
+
{
|
|
5934
|
+
"kind": "js",
|
|
5935
|
+
"name": "AparteContext",
|
|
5936
|
+
"declaration": {
|
|
5937
|
+
"name": "AparteContext",
|
|
5938
|
+
"module": "./context/index.js"
|
|
5939
|
+
}
|
|
5940
|
+
},
|
|
5941
|
+
{
|
|
5942
|
+
"kind": "js",
|
|
5943
|
+
"name": "AparteContextLevel",
|
|
5944
|
+
"declaration": {
|
|
5945
|
+
"name": "AparteContextLevel",
|
|
5946
|
+
"module": "./context/index.js"
|
|
5947
|
+
}
|
|
5948
|
+
},
|
|
5949
|
+
{
|
|
5950
|
+
"kind": "js",
|
|
5951
|
+
"name": "AparteContextThresholdEventDetail",
|
|
5952
|
+
"declaration": {
|
|
5953
|
+
"name": "AparteContextThresholdEventDetail",
|
|
5954
|
+
"module": "./context/index.js"
|
|
5955
|
+
}
|
|
5956
|
+
},
|
|
5957
|
+
{
|
|
5958
|
+
"kind": "js",
|
|
5959
|
+
"name": "AparteScrollRail",
|
|
5960
|
+
"declaration": {
|
|
5961
|
+
"name": "AparteScrollRail",
|
|
5962
|
+
"module": "./scroll-rail/index.js"
|
|
5963
|
+
}
|
|
5964
|
+
},
|
|
5965
|
+
{
|
|
5966
|
+
"kind": "js",
|
|
5967
|
+
"name": "AparteScrollRailJumpDetail",
|
|
5968
|
+
"declaration": {
|
|
5969
|
+
"name": "AparteScrollRailJumpDetail",
|
|
5970
|
+
"module": "./scroll-rail/index.js"
|
|
5971
|
+
}
|
|
5972
|
+
},
|
|
5973
|
+
{
|
|
5974
|
+
"kind": "js",
|
|
5975
|
+
"name": "AparteScrollRailEvery",
|
|
5976
|
+
"declaration": {
|
|
5977
|
+
"name": "AparteScrollRailEvery",
|
|
5978
|
+
"module": "./scroll-rail/index.js"
|
|
5979
|
+
}
|
|
5980
|
+
},
|
|
5981
|
+
{
|
|
5982
|
+
"kind": "js",
|
|
5983
|
+
"name": "AparteSidebar",
|
|
5984
|
+
"declaration": {
|
|
5985
|
+
"name": "AparteSidebar",
|
|
5986
|
+
"module": "./sidebar/index.js"
|
|
5987
|
+
}
|
|
5988
|
+
},
|
|
5989
|
+
{
|
|
5990
|
+
"kind": "js",
|
|
5991
|
+
"name": "AparteSidebarToggleDetail",
|
|
5992
|
+
"declaration": {
|
|
5993
|
+
"name": "AparteSidebarToggleDetail",
|
|
5994
|
+
"module": "./sidebar/index.js"
|
|
5995
|
+
}
|
|
5996
|
+
},
|
|
5997
|
+
{
|
|
5998
|
+
"kind": "js",
|
|
5999
|
+
"name": "AparteSplit",
|
|
6000
|
+
"declaration": {
|
|
6001
|
+
"name": "AparteSplit",
|
|
6002
|
+
"module": "./split/index.js"
|
|
6003
|
+
}
|
|
6004
|
+
},
|
|
6005
|
+
{
|
|
6006
|
+
"kind": "js",
|
|
6007
|
+
"name": "AparteSplitResizeDetail",
|
|
6008
|
+
"declaration": {
|
|
6009
|
+
"name": "AparteSplitResizeDetail",
|
|
6010
|
+
"module": "./split/index.js"
|
|
6011
|
+
}
|
|
6012
|
+
},
|
|
6013
|
+
{
|
|
6014
|
+
"kind": "js",
|
|
6015
|
+
"name": "AparteLauncher",
|
|
6016
|
+
"declaration": {
|
|
6017
|
+
"name": "AparteLauncher",
|
|
6018
|
+
"module": "./launcher/index.js"
|
|
6019
|
+
}
|
|
6020
|
+
},
|
|
6021
|
+
{
|
|
6022
|
+
"kind": "js",
|
|
6023
|
+
"name": "AparteLauncherToggleDetail",
|
|
6024
|
+
"declaration": {
|
|
6025
|
+
"name": "AparteLauncherToggleDetail",
|
|
6026
|
+
"module": "./launcher/index.js"
|
|
6027
|
+
}
|
|
6028
|
+
}
|
|
6029
|
+
]
|
|
6030
|
+
},
|
|
6031
|
+
{
|
|
6032
|
+
"kind": "javascript-module",
|
|
6033
|
+
"path": "src/client/agent-runner.ts",
|
|
6034
|
+
"declarations": [
|
|
6035
|
+
{
|
|
6036
|
+
"kind": "function",
|
|
6037
|
+
"name": "createAgentStreamRunner",
|
|
6038
|
+
"return": {
|
|
6039
|
+
"type": {
|
|
6040
|
+
"text": "AparteStreamRunner"
|
|
6041
|
+
}
|
|
6042
|
+
},
|
|
6043
|
+
"parameters": [
|
|
6044
|
+
{
|
|
6045
|
+
"name": "options",
|
|
6046
|
+
"type": {
|
|
6047
|
+
"text": "AgentStreamRunnerOptions"
|
|
6048
|
+
}
|
|
6049
|
+
}
|
|
6050
|
+
],
|
|
6051
|
+
"description": "An `AparteStreamRunner` that runs `AparteClient`'s loop on YOUR server — the one\n`createAparteAgentHandler` serves — and replays its events here, where the client's\nadapter draws them exactly as it draws a loop run in the page.\n\n```ts\nconst client = new AparteClient({ streamRunner: createAgentStreamRunner({ endpoint: '/api/agent' }) });\n```\n\nThe page needs no provider of its own: the server runs the model. A provider and model\nthe page selects anyway travel with the turn, and the server uses them.\n\nA pipe, nothing more. It sees no message and no segment, so it opens no panel and runs\nno tool: when the server suspends a run, the CLIENT asks the person or runs the browser\ntool, then calls this runner again with the answers in `deferral` — the same path it\ntakes when a conversation with a paused call is reloaded days later."
|
|
6052
|
+
}
|
|
6053
|
+
],
|
|
6054
|
+
"exports": [
|
|
6055
|
+
{
|
|
6056
|
+
"kind": "js",
|
|
6057
|
+
"name": "createAgentStreamRunner",
|
|
6058
|
+
"declaration": {
|
|
6059
|
+
"name": "createAgentStreamRunner",
|
|
6060
|
+
"module": "src/client/agent-runner.ts"
|
|
6061
|
+
}
|
|
6062
|
+
}
|
|
6063
|
+
]
|
|
6064
|
+
},
|
|
6065
|
+
{
|
|
6066
|
+
"kind": "javascript-module",
|
|
6067
|
+
"path": "src/client/aparte-client.ts",
|
|
6068
|
+
"declarations": [
|
|
6069
|
+
{
|
|
6070
|
+
"kind": "class",
|
|
6071
|
+
"description": "AparteClient\n\nThe \"Automatic Transmission\" for Aparte.\nConnects the UI events (aparte-send) to the AI Providers (chat).\nHandles:\n- Listening to send events\n- Resolving API keys\n- Calling the appropriate Provider\n- Streaming the response back to the UI\n- Tool use: awaiting handlers and re-calling the provider",
|
|
6072
|
+
"name": "AparteClient",
|
|
6073
|
+
"members": [
|
|
6074
|
+
{
|
|
6075
|
+
"kind": "field",
|
|
6076
|
+
"name": "_boundHandler",
|
|
6077
|
+
"type": {
|
|
6078
|
+
"text": "((e: Event) => void) | null"
|
|
6079
|
+
},
|
|
6080
|
+
"privacy": "private",
|
|
6081
|
+
"default": "null"
|
|
6082
|
+
},
|
|
6083
|
+
{
|
|
6084
|
+
"kind": "field",
|
|
6085
|
+
"name": "_listening",
|
|
6086
|
+
"type": {
|
|
6087
|
+
"text": "boolean"
|
|
6088
|
+
},
|
|
6089
|
+
"privacy": "private",
|
|
6090
|
+
"default": "false",
|
|
6091
|
+
"description": "Between `start()` and `stop()`: the listeners are on `window`. The send handler alone is\nnot the sign — the constructor prepares it without listening."
|
|
6092
|
+
},
|
|
6093
|
+
{
|
|
6094
|
+
"kind": "field",
|
|
6095
|
+
"name": "_boundAbortHandler",
|
|
6096
|
+
"type": {
|
|
6097
|
+
"text": "(() => void) | null"
|
|
6098
|
+
},
|
|
6099
|
+
"privacy": "private",
|
|
6100
|
+
"default": "null"
|
|
6101
|
+
},
|
|
6102
|
+
{
|
|
6103
|
+
"kind": "field",
|
|
6104
|
+
"name": "_boundLoadedHandler",
|
|
6105
|
+
"type": {
|
|
6106
|
+
"text": "((e: Event) => void) | null"
|
|
6107
|
+
},
|
|
6108
|
+
"privacy": "private",
|
|
6109
|
+
"default": "null"
|
|
6110
|
+
},
|
|
6111
|
+
{
|
|
6112
|
+
"kind": "field",
|
|
6113
|
+
"name": "_boundRetryHandler",
|
|
6114
|
+
"type": {
|
|
6115
|
+
"text": "((e: Event) => void) | null"
|
|
6116
|
+
},
|
|
6117
|
+
"privacy": "private",
|
|
6118
|
+
"default": "null"
|
|
6119
|
+
},
|
|
6120
|
+
{
|
|
6121
|
+
"kind": "field",
|
|
6122
|
+
"name": "_boundEditHandler",
|
|
6123
|
+
"type": {
|
|
6124
|
+
"text": "((e: Event) => void) | null"
|
|
6125
|
+
},
|
|
6126
|
+
"privacy": "private",
|
|
6127
|
+
"default": "null"
|
|
6128
|
+
},
|
|
6129
|
+
{
|
|
6130
|
+
"kind": "field",
|
|
6131
|
+
"name": "_releaseKeyResolver",
|
|
6132
|
+
"type": {
|
|
6133
|
+
"text": "(() => void) | null"
|
|
6134
|
+
},
|
|
6135
|
+
"privacy": "private",
|
|
6136
|
+
"default": "null"
|
|
6137
|
+
},
|
|
6138
|
+
{
|
|
6139
|
+
"kind": "field",
|
|
6140
|
+
"name": "_isAborted",
|
|
6141
|
+
"type": {
|
|
6142
|
+
"text": "boolean"
|
|
6143
|
+
},
|
|
6144
|
+
"privacy": "private",
|
|
6145
|
+
"default": "false"
|
|
6146
|
+
},
|
|
6147
|
+
{
|
|
6148
|
+
"kind": "field",
|
|
6149
|
+
"name": "_windowReadFor",
|
|
6150
|
+
"privacy": "private",
|
|
6151
|
+
"readonly": true,
|
|
6152
|
+
"default": "new Set<string>()",
|
|
6153
|
+
"description": "Provider and model pairs whose window was already read again after a turn (see `_readWindowAfterTurn`)."
|
|
6154
|
+
},
|
|
6155
|
+
{
|
|
6156
|
+
"kind": "method",
|
|
6157
|
+
"name": "_readWindowAfterTurn",
|
|
6158
|
+
"privacy": "private",
|
|
6159
|
+
"return": {
|
|
6160
|
+
"type": {
|
|
6161
|
+
"text": "Promise<void>"
|
|
6162
|
+
}
|
|
6163
|
+
},
|
|
6164
|
+
"description": "The current model's window, read again once after a turn when it had none.\n\nA local server that loads a model on its first request — LM Studio's just-in-time\nloading, Ollama — has no loaded window to report when the model list is fetched at\nstart-up, so the model comes without one, and the gauge and the compaction have\nnothing to measure against. After a reply the model is loaded, and the provider's\nown probe finds it. Once per provider and model: a server that never says costs one\nrequest, not one per turn. The config announces the window when it appears."
|
|
6165
|
+
},
|
|
6166
|
+
{
|
|
6167
|
+
"kind": "method",
|
|
6168
|
+
"name": "_isForThisInstance",
|
|
6169
|
+
"privacy": "private",
|
|
6170
|
+
"return": {
|
|
6171
|
+
"type": {
|
|
6172
|
+
"text": "boolean"
|
|
6173
|
+
}
|
|
6174
|
+
},
|
|
6175
|
+
"parameters": [
|
|
6176
|
+
{
|
|
6177
|
+
"name": "e",
|
|
6178
|
+
"optional": true,
|
|
6179
|
+
"type": {
|
|
6180
|
+
"text": "Event"
|
|
6181
|
+
}
|
|
6182
|
+
}
|
|
6183
|
+
],
|
|
6184
|
+
"description": "Does this window event belong to this client?\n\nOne rule for all the window-event handlers, so none of them can lack the guard:\nin a two-client layout an unguarded event would make BOTH clients run — two paid\ncalls against whichever chat the DOM scan found first.\n\nA scoped client also answers only events ADDRESSED to it; an untargeted event is\nnot let through to every scoped client, or one broadcast would act on every chat\non the page."
|
|
6185
|
+
},
|
|
6186
|
+
{
|
|
6187
|
+
"kind": "field",
|
|
6188
|
+
"name": "_streamController",
|
|
6189
|
+
"type": {
|
|
6190
|
+
"text": "AbortController | null"
|
|
6191
|
+
},
|
|
6192
|
+
"privacy": "private",
|
|
6193
|
+
"default": "null",
|
|
6194
|
+
"description": "Aborts the in-flight vendor/transport fetch when the user stops a stream."
|
|
6195
|
+
},
|
|
6196
|
+
{
|
|
6197
|
+
"kind": "field",
|
|
6198
|
+
"name": "options",
|
|
6199
|
+
"type": {
|
|
6200
|
+
"text": "AparteClientOptions"
|
|
6201
|
+
},
|
|
6202
|
+
"privacy": "private",
|
|
6203
|
+
"default": "{ autoRegister: true, ...options }"
|
|
6204
|
+
},
|
|
6205
|
+
{
|
|
6206
|
+
"kind": "field",
|
|
6207
|
+
"name": "_config",
|
|
6208
|
+
"type": {
|
|
6209
|
+
"text": "AparteConfig"
|
|
6210
|
+
},
|
|
6211
|
+
"privacy": "private",
|
|
6212
|
+
"readonly": true,
|
|
6213
|
+
"description": "Config read by this client — an instance config, or the global default."
|
|
6214
|
+
},
|
|
6215
|
+
{
|
|
6216
|
+
"kind": "field",
|
|
6217
|
+
"name": "_claims",
|
|
6218
|
+
"type": {
|
|
6219
|
+
"text": "boolean"
|
|
6220
|
+
},
|
|
6221
|
+
"privacy": "private",
|
|
6222
|
+
"default": "false",
|
|
6223
|
+
"description": "Whether this client, started on an instance config, counts in `claimedConfigs`."
|
|
6224
|
+
},
|
|
6225
|
+
{
|
|
6226
|
+
"kind": "method",
|
|
6227
|
+
"name": "_beginUserTurn",
|
|
6228
|
+
"privacy": "private",
|
|
6229
|
+
"return": {
|
|
6230
|
+
"type": {
|
|
6231
|
+
"text": "void"
|
|
6232
|
+
}
|
|
6233
|
+
},
|
|
6234
|
+
"description": "What every fresh user action does before it starts a turn.\n\nClearing the abort flag happens at the START of the action rather than inside\n`_streamTurn`, which runs after the auth and file-reading awaits — a reset there\nwould erase an abort that arrived while the user was still waiting for a large\nattachment to be read.\n\nThe superseded turn's TOOL handlers are not cancelled here, and do not need a\nregistry of their own: `_streamTurn` aborts the previous `_streamController`, and\nthe engine links every tool handler's controller to that run signal\n(`invokeToolHandler`), so cutting the stream cuts its tools."
|
|
6235
|
+
},
|
|
6236
|
+
{
|
|
6237
|
+
"kind": "method",
|
|
6238
|
+
"name": "_registerKeyResolver",
|
|
6239
|
+
"privacy": "private",
|
|
6240
|
+
"return": {
|
|
6241
|
+
"type": {
|
|
6242
|
+
"text": "void"
|
|
6243
|
+
}
|
|
6244
|
+
},
|
|
6245
|
+
"description": "Put this client's `keyResolver` on its config, and hold the teardown so\n`stop()` can take it back off.\n\nThe teardown means a stopped client stops signing model-list requests, and a\nremount — the way the wrappers document swapping options — replaces the source\ninstead of adding one behind it. Idempotent, so the usual\n`new AparteClient({…}).start()` registers once."
|
|
6246
|
+
},
|
|
6247
|
+
{
|
|
6248
|
+
"kind": "method",
|
|
6249
|
+
"name": "_setupListeners",
|
|
6250
|
+
"privacy": "private",
|
|
6251
|
+
"return": {
|
|
6252
|
+
"type": {
|
|
6253
|
+
"text": "void"
|
|
6254
|
+
}
|
|
6255
|
+
},
|
|
6256
|
+
"description": "Sets up the event listeners.\nThis is called once in the constructor."
|
|
6257
|
+
},
|
|
6258
|
+
{
|
|
6259
|
+
"kind": "method",
|
|
6260
|
+
"name": "start",
|
|
6261
|
+
"return": {
|
|
6262
|
+
"type": {
|
|
6263
|
+
"text": "void"
|
|
6264
|
+
}
|
|
6265
|
+
},
|
|
6266
|
+
"description": "Answer the chats: listen on `window` for `aparte-send`, `aparte-retry`, `aparte-edit`,\n`aparte-abort` and `aparte-conversation-loaded`. Nothing streams before this is\ncalled. Starting a stopped client puts its `keyResolver` back on the config."
|
|
6267
|
+
},
|
|
6268
|
+
{
|
|
6269
|
+
"kind": "method",
|
|
6270
|
+
"name": "stop",
|
|
6271
|
+
"return": {
|
|
6272
|
+
"type": {
|
|
6273
|
+
"text": "void"
|
|
6274
|
+
}
|
|
6275
|
+
},
|
|
6276
|
+
"description": "Stop answering: abort the reply in flight, take this client's `keyResolver` off the\nconfig, and remove the listeners."
|
|
6277
|
+
},
|
|
6278
|
+
{
|
|
6279
|
+
"kind": "method",
|
|
6280
|
+
"name": "abort",
|
|
6281
|
+
"return": {
|
|
6282
|
+
"type": {
|
|
6283
|
+
"text": "void"
|
|
6284
|
+
}
|
|
6285
|
+
},
|
|
6286
|
+
"description": "Abort the current streaming response and all active tool calls.\nDispatches `aparte-message-aborted` on the target element."
|
|
6287
|
+
},
|
|
6288
|
+
{
|
|
5914
6289
|
"kind": "method",
|
|
5915
6290
|
"name": "_askForApproval",
|
|
5916
6291
|
"privacy": "private",
|
|
@@ -6674,1052 +7049,677 @@
|
|
|
6674
7049
|
"name": "_gateBrowserTool",
|
|
6675
7050
|
"privacy": "private",
|
|
6676
7051
|
"return": {
|
|
6677
|
-
"type": {
|
|
6678
|
-
"text": "Promise<Awaited<ReturnType<StreamApprovalResolver>> | null | undefined>"
|
|
6679
|
-
}
|
|
6680
|
-
},
|
|
6681
|
-
"parameters": [
|
|
6682
|
-
{
|
|
6683
|
-
"name": "call",
|
|
6684
|
-
"type": {
|
|
6685
|
-
"text": "AparteToolCall"
|
|
6686
|
-
}
|
|
6687
|
-
},
|
|
6688
|
-
{
|
|
6689
|
-
"name": "signal",
|
|
6690
|
-
"type": {
|
|
6691
|
-
"text": "AbortSignal"
|
|
6692
|
-
}
|
|
6693
|
-
},
|
|
6694
|
-
{
|
|
6695
|
-
"name": "targetElement",
|
|
6696
|
-
"type": {
|
|
6697
|
-
"text": "AparteChatTargetElement"
|
|
6698
|
-
}
|
|
6699
|
-
},
|
|
6700
|
-
{
|
|
6701
|
-
"name": "rowEvents",
|
|
6702
|
-
"optional": true,
|
|
6703
|
-
"type": {
|
|
6704
|
-
"text": "AparteStreamRunEmitter"
|
|
6705
|
-
}
|
|
6706
|
-
}
|
|
6707
|
-
],
|
|
6708
|
-
"description": "Whether a browser tool a paused run asked for may run, decided as a run in the page\ndecides it. With a host `approvalResolver`, the tool's own `needsApproval` says whether\nto ask and the resolver answers; without one, the approval policy and `needsApproval`\nrule (`ruleOnToolCall`) and the default channel asks. `null` when nothing gates the\ncall, the decision when something did, `undefined` when nobody answered."
|
|
6709
|
-
},
|
|
6710
|
-
{
|
|
6711
|
-
"kind": "method",
|
|
6712
|
-
"name": "_spendPause",
|
|
6713
|
-
"privacy": "private",
|
|
6714
|
-
"return": {
|
|
6715
|
-
"type": {
|
|
6716
|
-
"text": "void"
|
|
6717
|
-
}
|
|
6718
|
-
},
|
|
6719
|
-
"parameters": [
|
|
6720
|
-
{
|
|
6721
|
-
"name": "targetElement",
|
|
6722
|
-
"type": {
|
|
6723
|
-
"text": "AparteChatTargetElement"
|
|
6724
|
-
}
|
|
6725
|
-
},
|
|
6726
|
-
{
|
|
6727
|
-
"name": "messageId",
|
|
6728
|
-
"type": {
|
|
6729
|
-
"text": "string"
|
|
6730
|
-
}
|
|
6731
|
-
}
|
|
6732
|
-
],
|
|
6733
|
-
"description": "The ticket is spent the moment the resume leaves: the server answers these calls\nnow, so a pause saved from here on — the conversation manager saves before it cuts a\nswitch — would be resumed a second time, against a server that has moved on. The\nhistory that resumes them is built first; a new pause marks what still waits."
|
|
6734
|
-
},
|
|
6735
|
-
{
|
|
6736
|
-
"kind": "method",
|
|
6737
|
-
"name": "_closeOpenCalls",
|
|
6738
|
-
"privacy": "private",
|
|
6739
|
-
"return": {
|
|
6740
|
-
"type": {
|
|
6741
|
-
"text": "void"
|
|
6742
|
-
}
|
|
6743
|
-
},
|
|
6744
|
-
"parameters": [
|
|
6745
|
-
{
|
|
6746
|
-
"name": "targetElement",
|
|
6747
|
-
"type": {
|
|
6748
|
-
"text": "AparteChatTargetElement"
|
|
6749
|
-
}
|
|
6750
|
-
},
|
|
6751
|
-
{
|
|
6752
|
-
"name": "messageId",
|
|
6753
|
-
"type": {
|
|
6754
|
-
"text": "string"
|
|
6755
|
-
}
|
|
6756
|
-
}
|
|
6757
|
-
],
|
|
6758
|
-
"description": "Close the reply's calls that can no longer finish — paused, queued, or running on a\nserver the page stopped listening to: each says it stopped, and forgets the pause.\nA cut connection carries none of their last events, so nothing else would: the rows\nwould spin, and a queued call would keep its ticket, which a reload would then\nresume against a server that had moved on. By the reply's id, not the chat's head — a retry during\nthe wait moves the head. A run in the page ends every call itself: nothing to do."
|
|
6759
|
-
},
|
|
6760
|
-
{
|
|
6761
|
-
"kind": "method",
|
|
6762
|
-
"name": "_resumeMessages",
|
|
6763
|
-
"privacy": "private",
|
|
6764
|
-
"return": {
|
|
6765
|
-
"type": {
|
|
6766
|
-
"text": "AparteChatMessage[]"
|
|
6767
|
-
}
|
|
6768
|
-
},
|
|
6769
|
-
"parameters": [
|
|
6770
|
-
{
|
|
6771
|
-
"name": "targetElement",
|
|
6772
|
-
"type": {
|
|
6773
|
-
"text": "AparteChatTargetElement"
|
|
6774
|
-
}
|
|
6775
|
-
},
|
|
6776
|
-
{
|
|
6777
|
-
"name": "messageId",
|
|
6778
|
-
"type": {
|
|
6779
|
-
"text": "string"
|
|
6780
|
-
}
|
|
6781
|
-
},
|
|
6782
|
-
{
|
|
6783
|
-
"name": "sent",
|
|
6784
|
-
"type": {
|
|
6785
|
-
"text": "AparteChatMessage[]"
|
|
6786
|
-
}
|
|
6787
|
-
}
|
|
6788
|
-
],
|
|
6789
|
-
"description": "The history a resume sends: the request the turn was sent with — interceptor and\n`history` option included, not rebuilt from the transcript — then the reply so\nfar, its paused calls left open for the server to answer."
|
|
6790
|
-
},
|
|
6791
|
-
{
|
|
6792
|
-
"kind": "method",
|
|
6793
|
-
"name": "_resumeBase",
|
|
6794
|
-
"privacy": "private",
|
|
6795
|
-
"return": {
|
|
6796
|
-
"type": {
|
|
6797
|
-
"text": "AparteChatMessage[]"
|
|
6798
|
-
}
|
|
6799
|
-
},
|
|
6800
|
-
"parameters": [
|
|
6801
|
-
{
|
|
6802
|
-
"name": "all",
|
|
6803
|
-
"type": {
|
|
6804
|
-
"text": "AparteMessage[]"
|
|
6805
|
-
}
|
|
6806
|
-
},
|
|
6807
|
-
{
|
|
6808
|
-
"name": "replyIndex",
|
|
6809
|
-
"type": {
|
|
6810
|
-
"text": "number"
|
|
6811
|
-
}
|
|
6812
|
-
}
|
|
6813
|
-
],
|
|
6814
|
-
"description": "What the send of a reloaded turn put before its reply, rebuilt the way\n`_buildMessages` builds it: the system prompts, the history `options.history`\nasks for — given the transcript before the reply, where the send also saw the\nreply's empty shell; handing over the paused reply would send it twice — and the\nmessage that asked.\nThat message goes as its text: the files a send read are not in a transcript."
|
|
6815
|
-
},
|
|
6816
|
-
{
|
|
6817
|
-
"kind": "method",
|
|
6818
|
-
"name": "_closeDeferred",
|
|
6819
|
-
"privacy": "private",
|
|
6820
|
-
"return": {
|
|
6821
|
-
"type": {
|
|
6822
|
-
"text": "void"
|
|
6823
|
-
}
|
|
6824
|
-
},
|
|
6825
|
-
"parameters": [
|
|
6826
|
-
{
|
|
6827
|
-
"name": "targetElement",
|
|
6828
|
-
"type": {
|
|
6829
|
-
"text": "AparteChatTargetElement"
|
|
6830
|
-
}
|
|
6831
|
-
}
|
|
6832
|
-
],
|
|
6833
|
-
"description": "A new message closes a wait nobody answered. The paused calls of the last reply are\nmarked stopped, so the history the new turn sends answers them (\"stopped before it\nran\") — a provider rejects a request that declares a call with no answer."
|
|
6834
|
-
},
|
|
6835
|
-
{
|
|
6836
|
-
"kind": "method",
|
|
6837
|
-
"name": "resumeDeferred",
|
|
6838
|
-
"return": {
|
|
6839
|
-
"type": {
|
|
6840
|
-
"text": "Promise<boolean>"
|
|
6841
|
-
}
|
|
6842
|
-
},
|
|
6843
|
-
"parameters": [
|
|
6844
|
-
{
|
|
6845
|
-
"name": "target",
|
|
6846
|
-
"optional": true,
|
|
6847
|
-
"type": {
|
|
6848
|
-
"text": "HTMLElement | string"
|
|
6849
|
-
},
|
|
6850
|
-
"description": "The chat — an element, or its id. Defaults to the one `targetResolver` names, else the first on the page."
|
|
6851
|
-
}
|
|
6852
|
-
],
|
|
6853
|
-
"description": "Answer a turn a server loop paused, when the conversation comes back — a reload, a\nconversation reopened days later. The last reply's paused calls (they carry the\nserver's ticket) are put to the person again, or run in the page, and the loop\nresumes on the server, into the same bubble.\n\nCalled on its own when a conversation manager loads a conversation\n(`aparte-conversation-loaded`); call it yourself after `setMessages` if you load\nconversations another way. Resolves `true` when a resume ran, `false` when there\nwas nothing to resume."
|
|
6854
|
-
},
|
|
6855
|
-
{
|
|
6856
|
-
"kind": "field",
|
|
6857
|
-
"name": "_resuming",
|
|
6858
|
-
"privacy": "private",
|
|
6859
|
-
"readonly": true,
|
|
6860
|
-
"default": "new Set<string>()",
|
|
6861
|
-
"description": "Replies being resumed, so a second load of the same conversation does not ask twice."
|
|
6862
|
-
},
|
|
6863
|
-
{
|
|
6864
|
-
"kind": "method",
|
|
6865
|
-
"name": "_updateMessage",
|
|
6866
|
-
"privacy": "private",
|
|
6867
|
-
"parameters": [
|
|
6868
|
-
{
|
|
6869
|
-
"name": "target",
|
|
6870
|
-
"type": {
|
|
6871
|
-
"text": "AparteChatTargetElement"
|
|
6872
|
-
}
|
|
6873
|
-
},
|
|
6874
|
-
{
|
|
6875
|
-
"name": "messageId",
|
|
6876
|
-
"type": {
|
|
6877
|
-
"text": "string"
|
|
6878
|
-
}
|
|
6879
|
-
},
|
|
6880
|
-
{
|
|
6881
|
-
"name": "updates",
|
|
6882
|
-
"type": {
|
|
6883
|
-
"text": "Partial<AparteMessage>"
|
|
6884
|
-
}
|
|
6885
|
-
}
|
|
6886
|
-
],
|
|
6887
|
-
"description": "Updates an existing message or appends a new error if ID lookup fails"
|
|
6888
|
-
},
|
|
6889
|
-
{
|
|
6890
|
-
"kind": "method",
|
|
6891
|
-
"name": "_handleLifecycleError",
|
|
6892
|
-
"privacy": "private",
|
|
7052
|
+
"type": {
|
|
7053
|
+
"text": "Promise<Awaited<ReturnType<StreamApprovalResolver>> | null | undefined>"
|
|
7054
|
+
}
|
|
7055
|
+
},
|
|
6893
7056
|
"parameters": [
|
|
6894
7057
|
{
|
|
6895
|
-
"name": "
|
|
7058
|
+
"name": "call",
|
|
6896
7059
|
"type": {
|
|
6897
|
-
"text": "
|
|
7060
|
+
"text": "AparteToolCall"
|
|
6898
7061
|
}
|
|
6899
7062
|
},
|
|
6900
7063
|
{
|
|
6901
|
-
"name": "
|
|
7064
|
+
"name": "signal",
|
|
6902
7065
|
"type": {
|
|
6903
|
-
"text": "
|
|
7066
|
+
"text": "AbortSignal"
|
|
6904
7067
|
}
|
|
6905
7068
|
},
|
|
6906
7069
|
{
|
|
6907
|
-
"name": "
|
|
7070
|
+
"name": "targetElement",
|
|
6908
7071
|
"type": {
|
|
6909
|
-
"text": "
|
|
7072
|
+
"text": "AparteChatTargetElement"
|
|
6910
7073
|
}
|
|
6911
|
-
}
|
|
6912
|
-
|
|
6913
|
-
|
|
6914
|
-
|
|
6915
|
-
|
|
6916
|
-
|
|
6917
|
-
|
|
6918
|
-
|
|
6919
|
-
|
|
6920
|
-
|
|
6921
|
-
|
|
6922
|
-
"name": "outcomes"
|
|
6923
|
-
}
|
|
6924
|
-
],
|
|
6925
|
-
"exports": [
|
|
6926
|
-
{
|
|
6927
|
-
"kind": "js",
|
|
6928
|
-
"name": "AparteClient",
|
|
6929
|
-
"declaration": {
|
|
6930
|
-
"name": "AparteClient",
|
|
6931
|
-
"module": "src/client/aparte-client.ts"
|
|
6932
|
-
}
|
|
6933
|
-
}
|
|
6934
|
-
]
|
|
6935
|
-
},
|
|
6936
|
-
{
|
|
6937
|
-
"kind": "javascript-module",
|
|
6938
|
-
"path": "src/client/lifecycle-events.ts",
|
|
6939
|
-
"declarations": [
|
|
6940
|
-
{
|
|
6941
|
-
"kind": "function",
|
|
6942
|
-
"name": "dispatchLifecycleEvent",
|
|
6943
|
-
"return": {
|
|
6944
|
-
"type": {
|
|
6945
|
-
"text": "void"
|
|
6946
|
-
}
|
|
6947
|
-
},
|
|
6948
|
-
"parameters": [
|
|
6949
|
-
{
|
|
6950
|
-
"name": "target",
|
|
6951
|
-
"type": {
|
|
6952
|
-
"text": "AparteLifecycleTarget"
|
|
6953
|
-
}
|
|
6954
|
-
},
|
|
6955
|
-
{
|
|
6956
|
-
"name": "name",
|
|
6957
|
-
"type": {
|
|
6958
|
-
"text": "string"
|
|
6959
|
-
}
|
|
6960
|
-
},
|
|
6961
|
-
{
|
|
6962
|
-
"name": "detail",
|
|
6963
|
-
"type": {
|
|
6964
|
-
"text": "unknown"
|
|
6965
|
-
}
|
|
6966
|
-
},
|
|
6967
|
-
{
|
|
6968
|
-
"name": "targetId",
|
|
6969
|
-
"optional": true,
|
|
6970
|
-
"type": {
|
|
6971
|
-
"text": "string"
|
|
6972
|
-
}
|
|
6973
|
-
}
|
|
6974
|
-
],
|
|
6975
|
-
"description": "Dispatch one bubbling, composed lifecycle event, stamped with the target's id so\nseveral chats on one page stay isolated — a composer reacts only to its own host's\nturn, while an id-less single-instance page still broadcasts.\n\nThe `typeof detail === 'object'` guard comes from the adapter copy and is kept\ndeliberately: it is a superset of the client copy's unconditional spread, so\nunifying on it cannot change any existing call, and it is the only difference\nbetween the two versions that was ever load-bearing.\n\n`targetId` is the id of the chat the target BELONGS to, and the caller has to say\nit, because `target.id` is not it. The target is whatever RENDERS — an\n`<aparte-chat>` shell delegates to its `.viewport`, which carries no id — so the\nstamp read empty for every shell-shaped chat, and a missing id means \"for every\nchat on the page\" on the receive side. `target.id` stays the fallback: it is right\nwhenever the render target IS the chat host, which is the viewport-only shape."
|
|
6976
|
-
}
|
|
6977
|
-
],
|
|
6978
|
-
"exports": [
|
|
6979
|
-
{
|
|
6980
|
-
"kind": "js",
|
|
6981
|
-
"name": "dispatchLifecycleEvent",
|
|
6982
|
-
"declaration": {
|
|
6983
|
-
"name": "dispatchLifecycleEvent",
|
|
6984
|
-
"module": "src/client/lifecycle-events.ts"
|
|
6985
|
-
}
|
|
6986
|
-
}
|
|
6987
|
-
]
|
|
6988
|
-
},
|
|
6989
|
-
{
|
|
6990
|
-
"kind": "javascript-module",
|
|
6991
|
-
"path": "src/client/stream-adapter.ts",
|
|
6992
|
-
"declarations": [
|
|
6993
|
-
{
|
|
6994
|
-
"kind": "variable",
|
|
6995
|
-
"name": "toolRefusal",
|
|
6996
|
-
"type": {
|
|
6997
|
-
"text": "typeof engineToolRefusal"
|
|
6998
|
-
},
|
|
6999
|
-
"default": "engineToolRefusal",
|
|
7000
|
-
"description": "What a refused tool call tells the model, and who refused it — engine's `toolRefusal`,\nunder core's roof. `reason` is the sentence the model reads (the refuser's own, else\nthe person's words quoted, else \"Tool execution was rejected by the user.\"); `by` and\n`instruction` are what a row shows the person.\n\nFor a runner that answers an agent the loop does not run (an AG-UI agent, a server):\nit writes the sentence the loop writes, so the model reads one refusal however it ran."
|
|
7001
|
-
},
|
|
7002
|
-
{
|
|
7003
|
-
"kind": "function",
|
|
7004
|
-
"name": "createStreamAdapter",
|
|
7005
|
-
"return": {
|
|
7006
|
-
"type": {
|
|
7007
|
-
"text": "AparteStreamRunEmitter"
|
|
7008
|
-
}
|
|
7009
|
-
},
|
|
7010
|
-
"parameters": [
|
|
7011
|
-
{
|
|
7012
|
-
"name": "opts",
|
|
7013
|
-
"type": {
|
|
7014
|
-
"text": "CreateStreamAdapterOptions"
|
|
7015
|
-
}
|
|
7016
|
-
}
|
|
7017
|
-
],
|
|
7018
|
-
"description": "Build the event → DOM adapter for one streamed message. Returns a synchronous\nAparteStreamRunEmitter to hand to `runStreamAgent` as its `emitter`.\nReproduces the inline loop's `targetElement.*` call sequence exactly (validated\nby the engine parity test against the real loop)."
|
|
7019
|
-
},
|
|
7020
|
-
{
|
|
7021
|
-
"kind": "function",
|
|
7022
|
-
"name": "readableToAsyncIterable",
|
|
7023
|
-
"return": {
|
|
7024
|
-
"type": {
|
|
7025
|
-
"text": "AsyncIterable<AparteStreamEvent>"
|
|
7026
|
-
}
|
|
7027
|
-
},
|
|
7028
|
-
"parameters": [
|
|
7029
|
-
{
|
|
7030
|
-
"name": "stream",
|
|
7031
|
-
"type": {
|
|
7032
|
-
"text": "ReadableStream<AparteStreamEvent>"
|
|
7033
|
-
}
|
|
7034
|
-
},
|
|
7035
|
-
{
|
|
7036
|
-
"name": "signal",
|
|
7037
|
-
"type": {
|
|
7038
|
-
"text": "AbortSignal"
|
|
7039
|
-
}
|
|
7040
|
-
}
|
|
7041
|
-
],
|
|
7042
|
-
"description": "Bridge a `ReadableStream` (what the transport returns) to the\n`AsyncIterable<AparteStreamEvent>` `runStreamAgent` consumes, cancelling the\nreader **synchronously** on abort so a user \"stop\" cuts the in-flight read.\nUsed by `AparteClient` when building `transportCall` for the\nrunner. Mirrors the inline loop's `reader.read()` loop + `reader.cancel()`."
|
|
7043
|
-
}
|
|
7044
|
-
],
|
|
7045
|
-
"exports": [
|
|
7046
|
-
{
|
|
7047
|
-
"kind": "js",
|
|
7048
|
-
"name": "toolRefusal",
|
|
7049
|
-
"declaration": {
|
|
7050
|
-
"name": "toolRefusal",
|
|
7051
|
-
"module": "src/client/stream-adapter.ts"
|
|
7052
|
-
}
|
|
7053
|
-
},
|
|
7054
|
-
{
|
|
7055
|
-
"kind": "js",
|
|
7056
|
-
"name": "createStreamAdapter",
|
|
7057
|
-
"declaration": {
|
|
7058
|
-
"name": "createStreamAdapter",
|
|
7059
|
-
"module": "src/client/stream-adapter.ts"
|
|
7060
|
-
}
|
|
7061
|
-
},
|
|
7062
|
-
{
|
|
7063
|
-
"kind": "js",
|
|
7064
|
-
"name": "readableToAsyncIterable",
|
|
7065
|
-
"declaration": {
|
|
7066
|
-
"name": "readableToAsyncIterable",
|
|
7067
|
-
"module": "src/client/stream-adapter.ts"
|
|
7068
|
-
}
|
|
7069
|
-
}
|
|
7070
|
-
]
|
|
7071
|
-
},
|
|
7072
|
-
{
|
|
7073
|
-
"kind": "javascript-module",
|
|
7074
|
-
"path": "src/client/wire-history.ts",
|
|
7075
|
-
"declarations": [
|
|
7076
|
-
{
|
|
7077
|
-
"kind": "variable",
|
|
7078
|
-
"name": "COMPACTION_PREAMBLE",
|
|
7079
|
-
"type": {
|
|
7080
|
-
"text": "string"
|
|
7081
|
-
},
|
|
7082
|
-
"default": "'The earlier part of this conversation was compacted. This is a summary of what came before; continue from it.'",
|
|
7083
|
-
"description": "What a compaction summary goes out under, so the model reads it as context and not as the user's words."
|
|
7084
|
-
},
|
|
7085
|
-
{
|
|
7086
|
-
"kind": "function",
|
|
7087
|
-
"name": "underPreamble",
|
|
7088
|
-
"return": {
|
|
7089
|
-
"type": {
|
|
7090
|
-
"text": "string"
|
|
7091
|
-
}
|
|
7092
|
-
},
|
|
7093
|
-
"parameters": [
|
|
7094
|
-
{
|
|
7095
|
-
"name": "text",
|
|
7096
|
-
"type": {
|
|
7097
|
-
"text": "string"
|
|
7098
|
-
}
|
|
7099
|
-
}
|
|
7100
|
-
],
|
|
7101
|
-
"description": "A summary as the model reads it: the preamble, then the text."
|
|
7102
|
-
},
|
|
7103
|
-
{
|
|
7104
|
-
"kind": "function",
|
|
7105
|
-
"name": "mergeAdjacentUserMessages",
|
|
7106
|
-
"return": {
|
|
7107
|
-
"type": {
|
|
7108
|
-
"text": "AparteChatMessage[]"
|
|
7109
|
-
}
|
|
7110
|
-
},
|
|
7111
|
-
"parameters": [
|
|
7112
|
-
{
|
|
7113
|
-
"name": "messages",
|
|
7114
|
-
"type": {
|
|
7115
|
-
"text": "AparteChatMessage[]"
|
|
7116
|
-
}
|
|
7117
|
-
}
|
|
7118
|
-
],
|
|
7119
|
-
"description": "Merge ADJACENT `user` messages into one, so the roles a model receives alternate.\n\nStrict chat templates (Gemma 2/3, Mistral, llama.cpp with `--jinja`, vLLM) reject two\n`user` turns in a row, and once one is in the history every following turn fails the\nsame way. Two ordinary situations produce it: a compaction (the summary is a `user`\nmessage and the turns kept after it usually start with one), and a failed turn (its\nuser message stays in the transcript, its error reply is not sent, and the user writes\nagain).\n\nOnly `user` is merged. A `system`, `assistant` or `tool` message carries structure\n(tool calls and the ids that answer them) that concatenating would destroy. Text joins\nwith a blank line; parts concatenate with a text separator between them; a string\nbeside parts becomes a text part, so an image keeps its place. A history that already\nalternates comes back as the same messages."
|
|
7120
|
-
},
|
|
7121
|
-
{
|
|
7122
|
-
"kind": "variable",
|
|
7123
|
-
"name": "STOPPED_TOOL_TEXT",
|
|
7124
|
-
"type": {
|
|
7125
|
-
"text": "string"
|
|
7126
|
-
},
|
|
7127
|
-
"default": "'The tool call was stopped before it ran.'",
|
|
7128
|
-
"description": "The answer a call that never finished gives the model."
|
|
7129
|
-
},
|
|
7130
|
-
{
|
|
7131
|
-
"kind": "variable",
|
|
7132
|
-
"name": "EMPTY_TOOL_TEXT",
|
|
7133
|
-
"type": {
|
|
7134
|
-
"text": "string"
|
|
7135
|
-
},
|
|
7136
|
-
"default": "'The tool returned no output.'",
|
|
7137
|
-
"description": "The answer a call that ran and returned nothing gives the model — not \"stopped\", or it tries again."
|
|
7138
|
-
},
|
|
7139
|
-
{
|
|
7140
|
-
"kind": "function",
|
|
7141
|
-
"name": "isOpenDeferred",
|
|
7142
|
-
"return": {
|
|
7143
|
-
"type": {
|
|
7144
|
-
"text": "segment is AparteToolCallSegment"
|
|
7145
|
-
}
|
|
7146
|
-
},
|
|
7147
|
-
"parameters": [
|
|
7074
|
+
},
|
|
7075
|
+
{
|
|
7076
|
+
"name": "rowEvents",
|
|
7077
|
+
"optional": true,
|
|
7078
|
+
"type": {
|
|
7079
|
+
"text": "AparteStreamRunEmitter"
|
|
7080
|
+
}
|
|
7081
|
+
}
|
|
7082
|
+
],
|
|
7083
|
+
"description": "Whether a browser tool a paused run asked for may run, decided as a run in the page\ndecides it. With a host `approvalResolver`, the tool's own `needsApproval` says whether\nto ask and the resolver answers; without one, the approval policy and `needsApproval`\nrule (`ruleOnToolCall`) and the default channel asks. `null` when nothing gates the\ncall, the decision when something did, `undefined` when nobody answered."
|
|
7084
|
+
},
|
|
7148
7085
|
{
|
|
7149
|
-
"
|
|
7150
|
-
"
|
|
7151
|
-
|
|
7152
|
-
|
|
7153
|
-
|
|
7154
|
-
|
|
7155
|
-
|
|
7156
|
-
|
|
7157
|
-
|
|
7158
|
-
|
|
7159
|
-
|
|
7160
|
-
|
|
7161
|
-
|
|
7162
|
-
|
|
7163
|
-
|
|
7164
|
-
|
|
7165
|
-
|
|
7086
|
+
"kind": "method",
|
|
7087
|
+
"name": "_spendPause",
|
|
7088
|
+
"privacy": "private",
|
|
7089
|
+
"return": {
|
|
7090
|
+
"type": {
|
|
7091
|
+
"text": "void"
|
|
7092
|
+
}
|
|
7093
|
+
},
|
|
7094
|
+
"parameters": [
|
|
7095
|
+
{
|
|
7096
|
+
"name": "targetElement",
|
|
7097
|
+
"type": {
|
|
7098
|
+
"text": "AparteChatTargetElement"
|
|
7099
|
+
}
|
|
7100
|
+
},
|
|
7101
|
+
{
|
|
7102
|
+
"name": "messageId",
|
|
7103
|
+
"type": {
|
|
7104
|
+
"text": "string"
|
|
7105
|
+
}
|
|
7106
|
+
}
|
|
7107
|
+
],
|
|
7108
|
+
"description": "The ticket is spent the moment the resume leaves: the server answers these calls\nnow, so a pause saved from here on — the conversation manager saves before it cuts a\nswitch — would be resumed a second time, against a server that has moved on. The\nhistory that resumes them is built first; a new pause marks what still waits."
|
|
7109
|
+
},
|
|
7166
7110
|
{
|
|
7167
|
-
"
|
|
7168
|
-
"
|
|
7169
|
-
|
|
7170
|
-
|
|
7111
|
+
"kind": "method",
|
|
7112
|
+
"name": "_closeOpenCalls",
|
|
7113
|
+
"privacy": "private",
|
|
7114
|
+
"return": {
|
|
7115
|
+
"type": {
|
|
7116
|
+
"text": "void"
|
|
7117
|
+
}
|
|
7118
|
+
},
|
|
7119
|
+
"parameters": [
|
|
7120
|
+
{
|
|
7121
|
+
"name": "targetElement",
|
|
7122
|
+
"type": {
|
|
7123
|
+
"text": "AparteChatTargetElement"
|
|
7124
|
+
}
|
|
7125
|
+
},
|
|
7126
|
+
{
|
|
7127
|
+
"name": "messageId",
|
|
7128
|
+
"type": {
|
|
7129
|
+
"text": "string"
|
|
7130
|
+
}
|
|
7131
|
+
}
|
|
7132
|
+
],
|
|
7133
|
+
"description": "Close the reply's calls that can no longer finish — paused, queued, or running on a\nserver the page stopped listening to: each says it stopped, and forgets the pause.\nA cut connection carries none of their last events, so nothing else would: the rows\nwould spin, and a queued call would keep its ticket, which a reload would then\nresume against a server that had moved on. By the reply's id, not the chat's head — a retry during\nthe wait moves the head. A run in the page ends every call itself: nothing to do."
|
|
7171
7134
|
},
|
|
7172
7135
|
{
|
|
7173
|
-
"
|
|
7174
|
-
"
|
|
7175
|
-
|
|
7176
|
-
|
|
7136
|
+
"kind": "method",
|
|
7137
|
+
"name": "_resumeMessages",
|
|
7138
|
+
"privacy": "private",
|
|
7139
|
+
"return": {
|
|
7140
|
+
"type": {
|
|
7141
|
+
"text": "AparteChatMessage[]"
|
|
7142
|
+
}
|
|
7143
|
+
},
|
|
7144
|
+
"parameters": [
|
|
7145
|
+
{
|
|
7146
|
+
"name": "targetElement",
|
|
7147
|
+
"type": {
|
|
7148
|
+
"text": "AparteChatTargetElement"
|
|
7149
|
+
}
|
|
7150
|
+
},
|
|
7151
|
+
{
|
|
7152
|
+
"name": "messageId",
|
|
7153
|
+
"type": {
|
|
7154
|
+
"text": "string"
|
|
7155
|
+
}
|
|
7156
|
+
},
|
|
7157
|
+
{
|
|
7158
|
+
"name": "sent",
|
|
7159
|
+
"type": {
|
|
7160
|
+
"text": "AparteChatMessage[]"
|
|
7161
|
+
}
|
|
7162
|
+
}
|
|
7163
|
+
],
|
|
7164
|
+
"description": "The history a resume sends: the request the turn was sent with — interceptor and\n`history` option included, not rebuilt from the transcript — then the reply so\nfar, its paused calls left open for the server to answer."
|
|
7177
7165
|
},
|
|
7178
7166
|
{
|
|
7179
|
-
"
|
|
7180
|
-
"
|
|
7181
|
-
"
|
|
7182
|
-
|
|
7183
|
-
|
|
7184
|
-
|
|
7185
|
-
|
|
7186
|
-
|
|
7187
|
-
|
|
7188
|
-
|
|
7189
|
-
|
|
7190
|
-
|
|
7191
|
-
|
|
7192
|
-
|
|
7193
|
-
|
|
7194
|
-
|
|
7195
|
-
|
|
7196
|
-
|
|
7167
|
+
"kind": "method",
|
|
7168
|
+
"name": "_resumeBase",
|
|
7169
|
+
"privacy": "private",
|
|
7170
|
+
"return": {
|
|
7171
|
+
"type": {
|
|
7172
|
+
"text": "AparteChatMessage[]"
|
|
7173
|
+
}
|
|
7174
|
+
},
|
|
7175
|
+
"parameters": [
|
|
7176
|
+
{
|
|
7177
|
+
"name": "all",
|
|
7178
|
+
"type": {
|
|
7179
|
+
"text": "AparteMessage[]"
|
|
7180
|
+
}
|
|
7181
|
+
},
|
|
7182
|
+
{
|
|
7183
|
+
"name": "replyIndex",
|
|
7184
|
+
"type": {
|
|
7185
|
+
"text": "number"
|
|
7186
|
+
}
|
|
7187
|
+
}
|
|
7188
|
+
],
|
|
7189
|
+
"description": "What the send of a reloaded turn put before its reply, rebuilt the way\n`_buildMessages` builds it: the system prompts, the history `options.history`\nasks for — given the transcript before the reply, where the send also saw the\nreply's empty shell; handing over the paused reply would send it twice — and the\nmessage that asked.\nThat message goes as its text: the files a send read are not in a transcript."
|
|
7190
|
+
},
|
|
7197
7191
|
{
|
|
7198
|
-
"
|
|
7199
|
-
"
|
|
7200
|
-
|
|
7201
|
-
|
|
7202
|
-
|
|
7203
|
-
|
|
7204
|
-
|
|
7205
|
-
|
|
7206
|
-
|
|
7207
|
-
|
|
7208
|
-
|
|
7209
|
-
|
|
7210
|
-
|
|
7211
|
-
|
|
7212
|
-
|
|
7213
|
-
|
|
7214
|
-
|
|
7192
|
+
"kind": "method",
|
|
7193
|
+
"name": "_closeDeferred",
|
|
7194
|
+
"privacy": "private",
|
|
7195
|
+
"return": {
|
|
7196
|
+
"type": {
|
|
7197
|
+
"text": "void"
|
|
7198
|
+
}
|
|
7199
|
+
},
|
|
7200
|
+
"parameters": [
|
|
7201
|
+
{
|
|
7202
|
+
"name": "targetElement",
|
|
7203
|
+
"type": {
|
|
7204
|
+
"text": "AparteChatTargetElement"
|
|
7205
|
+
}
|
|
7206
|
+
}
|
|
7207
|
+
],
|
|
7208
|
+
"description": "A new message closes a wait nobody answered. The paused calls of the last reply are\nmarked stopped, so the history the new turn sends answers them (\"stopped before it\nran\") — a provider rejects a request that declares a call with no answer."
|
|
7209
|
+
},
|
|
7215
7210
|
{
|
|
7216
|
-
"
|
|
7217
|
-
"
|
|
7218
|
-
|
|
7219
|
-
|
|
7220
|
-
|
|
7221
|
-
|
|
7222
|
-
|
|
7223
|
-
|
|
7224
|
-
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
|
|
7229
|
-
|
|
7230
|
-
|
|
7231
|
-
|
|
7232
|
-
|
|
7211
|
+
"kind": "method",
|
|
7212
|
+
"name": "resumeDeferred",
|
|
7213
|
+
"return": {
|
|
7214
|
+
"type": {
|
|
7215
|
+
"text": "Promise<boolean>"
|
|
7216
|
+
}
|
|
7217
|
+
},
|
|
7218
|
+
"parameters": [
|
|
7219
|
+
{
|
|
7220
|
+
"name": "target",
|
|
7221
|
+
"optional": true,
|
|
7222
|
+
"type": {
|
|
7223
|
+
"text": "HTMLElement | string"
|
|
7224
|
+
},
|
|
7225
|
+
"description": "The chat — an element, or its id. Defaults to the one `targetResolver` names, else the first on the page."
|
|
7226
|
+
}
|
|
7227
|
+
],
|
|
7228
|
+
"description": "Answer a turn a server loop paused, when the conversation comes back — a reload, a\nconversation reopened days later. The last reply's paused calls (they carry the\nserver's ticket) are put to the person again, or run in the page, and the loop\nresumes on the server, into the same bubble.\n\nCalled on its own when a conversation manager loads a conversation\n(`aparte-conversation-loaded`); call it yourself after `setMessages` if you load\nconversations another way. Resolves `true` when a resume ran, `false` when there\nwas nothing to resume."
|
|
7229
|
+
},
|
|
7233
7230
|
{
|
|
7234
|
-
"
|
|
7235
|
-
"
|
|
7236
|
-
|
|
7237
|
-
|
|
7238
|
-
|
|
7239
|
-
|
|
7240
|
-
|
|
7241
|
-
|
|
7242
|
-
|
|
7243
|
-
|
|
7244
|
-
|
|
7245
|
-
|
|
7246
|
-
|
|
7247
|
-
|
|
7248
|
-
|
|
7249
|
-
|
|
7250
|
-
|
|
7231
|
+
"kind": "field",
|
|
7232
|
+
"name": "_resuming",
|
|
7233
|
+
"privacy": "private",
|
|
7234
|
+
"readonly": true,
|
|
7235
|
+
"default": "new Set<string>()",
|
|
7236
|
+
"description": "Replies being resumed, so a second load of the same conversation does not ask twice."
|
|
7237
|
+
},
|
|
7238
|
+
{
|
|
7239
|
+
"kind": "method",
|
|
7240
|
+
"name": "_updateMessage",
|
|
7241
|
+
"privacy": "private",
|
|
7242
|
+
"parameters": [
|
|
7243
|
+
{
|
|
7244
|
+
"name": "target",
|
|
7245
|
+
"type": {
|
|
7246
|
+
"text": "AparteChatTargetElement"
|
|
7247
|
+
}
|
|
7248
|
+
},
|
|
7249
|
+
{
|
|
7250
|
+
"name": "messageId",
|
|
7251
|
+
"type": {
|
|
7252
|
+
"text": "string"
|
|
7253
|
+
}
|
|
7254
|
+
},
|
|
7255
|
+
{
|
|
7256
|
+
"name": "updates",
|
|
7257
|
+
"type": {
|
|
7258
|
+
"text": "Partial<AparteMessage>"
|
|
7259
|
+
}
|
|
7260
|
+
}
|
|
7261
|
+
],
|
|
7262
|
+
"description": "Updates an existing message or appends a new error if ID lookup fails"
|
|
7263
|
+
},
|
|
7251
7264
|
{
|
|
7252
|
-
"
|
|
7253
|
-
"
|
|
7254
|
-
|
|
7255
|
-
|
|
7265
|
+
"kind": "method",
|
|
7266
|
+
"name": "_handleLifecycleError",
|
|
7267
|
+
"privacy": "private",
|
|
7268
|
+
"parameters": [
|
|
7269
|
+
{
|
|
7270
|
+
"name": "target",
|
|
7271
|
+
"type": {
|
|
7272
|
+
"text": "AparteChatTargetElement"
|
|
7273
|
+
}
|
|
7274
|
+
},
|
|
7275
|
+
{
|
|
7276
|
+
"name": "messageId",
|
|
7277
|
+
"type": {
|
|
7278
|
+
"text": "string"
|
|
7279
|
+
}
|
|
7280
|
+
},
|
|
7281
|
+
{
|
|
7282
|
+
"name": "error",
|
|
7283
|
+
"type": {
|
|
7284
|
+
"text": "AparteError"
|
|
7285
|
+
}
|
|
7286
|
+
}
|
|
7287
|
+
],
|
|
7288
|
+
"description": "Gracefully handles errors by updating the current message instead of duplicating it"
|
|
7256
7289
|
}
|
|
7257
7290
|
],
|
|
7258
|
-
"
|
|
7259
|
-
|
|
7260
|
-
|
|
7261
|
-
"exports": [
|
|
7262
|
-
{
|
|
7263
|
-
"kind": "js",
|
|
7264
|
-
"name": "COMPACTION_PREAMBLE",
|
|
7265
|
-
"declaration": {
|
|
7266
|
-
"name": "COMPACTION_PREAMBLE",
|
|
7267
|
-
"module": "src/client/wire-history.ts"
|
|
7268
|
-
}
|
|
7269
|
-
},
|
|
7270
|
-
{
|
|
7271
|
-
"kind": "js",
|
|
7272
|
-
"name": "underPreamble",
|
|
7273
|
-
"declaration": {
|
|
7274
|
-
"name": "underPreamble",
|
|
7275
|
-
"module": "src/client/wire-history.ts"
|
|
7276
|
-
}
|
|
7277
|
-
},
|
|
7278
|
-
{
|
|
7279
|
-
"kind": "js",
|
|
7280
|
-
"name": "mergeAdjacentUserMessages",
|
|
7281
|
-
"declaration": {
|
|
7282
|
-
"name": "mergeAdjacentUserMessages",
|
|
7283
|
-
"module": "src/client/wire-history.ts"
|
|
7284
|
-
}
|
|
7285
|
-
},
|
|
7286
|
-
{
|
|
7287
|
-
"kind": "js",
|
|
7288
|
-
"name": "STOPPED_TOOL_TEXT",
|
|
7289
|
-
"declaration": {
|
|
7290
|
-
"name": "STOPPED_TOOL_TEXT",
|
|
7291
|
-
"module": "src/client/wire-history.ts"
|
|
7292
|
-
}
|
|
7293
|
-
},
|
|
7294
|
-
{
|
|
7295
|
-
"kind": "js",
|
|
7296
|
-
"name": "EMPTY_TOOL_TEXT",
|
|
7297
|
-
"declaration": {
|
|
7298
|
-
"name": "EMPTY_TOOL_TEXT",
|
|
7299
|
-
"module": "src/client/wire-history.ts"
|
|
7300
|
-
}
|
|
7301
|
-
},
|
|
7302
|
-
{
|
|
7303
|
-
"kind": "js",
|
|
7304
|
-
"name": "isOpenDeferred",
|
|
7305
|
-
"declaration": {
|
|
7306
|
-
"name": "isOpenDeferred",
|
|
7307
|
-
"module": "src/client/wire-history.ts"
|
|
7308
|
-
}
|
|
7309
|
-
},
|
|
7310
|
-
{
|
|
7311
|
-
"kind": "js",
|
|
7312
|
-
"name": "wireTurns",
|
|
7313
|
-
"declaration": {
|
|
7314
|
-
"name": "wireTurns",
|
|
7315
|
-
"module": "src/client/wire-history.ts"
|
|
7316
|
-
}
|
|
7317
|
-
},
|
|
7318
|
-
{
|
|
7319
|
-
"kind": "js",
|
|
7320
|
-
"name": "isInFlight",
|
|
7321
|
-
"declaration": {
|
|
7322
|
-
"name": "isInFlight",
|
|
7323
|
-
"module": "src/client/wire-history.ts"
|
|
7324
|
-
}
|
|
7325
|
-
},
|
|
7326
|
-
{
|
|
7327
|
-
"kind": "js",
|
|
7328
|
-
"name": "segmentsToWireText",
|
|
7329
|
-
"declaration": {
|
|
7330
|
-
"name": "segmentsToWireText",
|
|
7331
|
-
"module": "src/client/wire-history.ts"
|
|
7332
|
-
}
|
|
7333
|
-
},
|
|
7334
|
-
{
|
|
7335
|
-
"kind": "js",
|
|
7336
|
-
"name": "messageWireText",
|
|
7337
|
-
"declaration": {
|
|
7338
|
-
"name": "messageWireText",
|
|
7339
|
-
"module": "src/client/wire-history.ts"
|
|
7340
|
-
}
|
|
7341
|
-
},
|
|
7342
|
-
{
|
|
7343
|
-
"kind": "js",
|
|
7344
|
-
"name": "wireMessages",
|
|
7345
|
-
"declaration": {
|
|
7346
|
-
"name": "wireMessages",
|
|
7347
|
-
"module": "src/client/wire-history.ts"
|
|
7348
|
-
}
|
|
7349
|
-
}
|
|
7350
|
-
]
|
|
7351
|
-
},
|
|
7352
|
-
{
|
|
7353
|
-
"kind": "javascript-module",
|
|
7354
|
-
"path": "src/components/index.ts",
|
|
7355
|
-
"declarations": [],
|
|
7356
|
-
"exports": [
|
|
7357
|
-
{
|
|
7358
|
-
"kind": "js",
|
|
7359
|
-
"name": "AparteChat",
|
|
7360
|
-
"declaration": {
|
|
7361
|
-
"name": "AparteChat",
|
|
7362
|
-
"module": "./chat/index.js"
|
|
7363
|
-
}
|
|
7364
|
-
},
|
|
7365
|
-
{
|
|
7366
|
-
"kind": "js",
|
|
7367
|
-
"name": "AparteChatBubble",
|
|
7368
|
-
"declaration": {
|
|
7369
|
-
"name": "AparteChatBubble",
|
|
7370
|
-
"module": "./bubble/index.js"
|
|
7371
|
-
}
|
|
7372
|
-
},
|
|
7373
|
-
{
|
|
7374
|
-
"kind": "js",
|
|
7375
|
-
"name": "populateBubbleFromMessage",
|
|
7376
|
-
"declaration": {
|
|
7377
|
-
"name": "populateBubbleFromMessage",
|
|
7378
|
-
"module": "./bubble/index.js"
|
|
7379
|
-
}
|
|
7380
|
-
},
|
|
7381
|
-
{
|
|
7382
|
-
"kind": "js",
|
|
7383
|
-
"name": "SyncableBubble",
|
|
7384
|
-
"declaration": {
|
|
7385
|
-
"name": "SyncableBubble",
|
|
7386
|
-
"module": "./bubble/index.js"
|
|
7387
|
-
}
|
|
7388
|
-
},
|
|
7389
|
-
{
|
|
7390
|
-
"kind": "js",
|
|
7391
|
-
"name": "AparteChatStatus",
|
|
7392
|
-
"declaration": {
|
|
7393
|
-
"name": "AparteChatStatus",
|
|
7394
|
-
"module": "./status/index.js"
|
|
7395
|
-
}
|
|
7396
|
-
},
|
|
7397
|
-
{
|
|
7398
|
-
"kind": "js",
|
|
7399
|
-
"name": "AparteChatViewport",
|
|
7400
|
-
"declaration": {
|
|
7401
|
-
"name": "AparteChatViewport",
|
|
7402
|
-
"module": "./viewport/index.js"
|
|
7403
|
-
}
|
|
7404
|
-
},
|
|
7405
|
-
{
|
|
7406
|
-
"kind": "js",
|
|
7407
|
-
"name": "AparteComposer",
|
|
7408
|
-
"declaration": {
|
|
7409
|
-
"name": "AparteComposer",
|
|
7410
|
-
"module": "./composer/index.js"
|
|
7411
|
-
}
|
|
7412
|
-
},
|
|
7413
|
-
{
|
|
7414
|
-
"kind": "js",
|
|
7415
|
-
"name": "AparteComposerInput",
|
|
7416
|
-
"declaration": {
|
|
7417
|
-
"name": "AparteComposerInput",
|
|
7418
|
-
"module": "./composer/index.js"
|
|
7419
|
-
}
|
|
7420
|
-
},
|
|
7421
|
-
{
|
|
7422
|
-
"kind": "js",
|
|
7423
|
-
"name": "AparteComposerSend",
|
|
7424
|
-
"declaration": {
|
|
7425
|
-
"name": "AparteComposerSend",
|
|
7426
|
-
"module": "./composer/index.js"
|
|
7427
|
-
}
|
|
7428
|
-
},
|
|
7429
|
-
{
|
|
7430
|
-
"kind": "js",
|
|
7431
|
-
"name": "AparteComposerCancel",
|
|
7432
|
-
"declaration": {
|
|
7433
|
-
"name": "AparteComposerCancel",
|
|
7434
|
-
"module": "./composer/index.js"
|
|
7435
|
-
}
|
|
7436
|
-
},
|
|
7437
|
-
{
|
|
7438
|
-
"kind": "js",
|
|
7439
|
-
"name": "AparteComposerAttachments",
|
|
7440
|
-
"declaration": {
|
|
7441
|
-
"name": "AparteComposerAttachments",
|
|
7442
|
-
"module": "./composer/index.js"
|
|
7443
|
-
}
|
|
7444
|
-
},
|
|
7445
|
-
{
|
|
7446
|
-
"kind": "js",
|
|
7447
|
-
"name": "AparteComposerAddAttachment",
|
|
7448
|
-
"declaration": {
|
|
7449
|
-
"name": "AparteComposerAddAttachment",
|
|
7450
|
-
"module": "./composer/index.js"
|
|
7451
|
-
}
|
|
7452
|
-
},
|
|
7453
|
-
{
|
|
7454
|
-
"kind": "js",
|
|
7455
|
-
"name": "AparteComposerAction",
|
|
7456
|
-
"declaration": {
|
|
7457
|
-
"name": "AparteComposerAction",
|
|
7458
|
-
"module": "./composer/index.js"
|
|
7459
|
-
}
|
|
7460
|
-
},
|
|
7461
|
-
{
|
|
7462
|
-
"kind": "js",
|
|
7463
|
-
"name": "AparteComposerToolbar",
|
|
7464
|
-
"declaration": {
|
|
7465
|
-
"name": "AparteComposerToolbar",
|
|
7466
|
-
"module": "./composer/index.js"
|
|
7467
|
-
}
|
|
7291
|
+
"examples": [
|
|
7292
|
+
"```typescript\nconst client = new AparteClient({\n keyResolver: (providerId) => process.env[providerId.toUpperCase() + '_KEY']\n});\nclient.start();\n```"
|
|
7293
|
+
]
|
|
7468
7294
|
},
|
|
7469
7295
|
{
|
|
7470
|
-
"kind": "
|
|
7471
|
-
"name": "
|
|
7472
|
-
|
|
7473
|
-
|
|
7474
|
-
|
|
7475
|
-
}
|
|
7476
|
-
},
|
|
7296
|
+
"kind": "variable",
|
|
7297
|
+
"name": "outcomes"
|
|
7298
|
+
}
|
|
7299
|
+
],
|
|
7300
|
+
"exports": [
|
|
7477
7301
|
{
|
|
7478
7302
|
"kind": "js",
|
|
7479
|
-
"name": "
|
|
7303
|
+
"name": "AparteClient",
|
|
7480
7304
|
"declaration": {
|
|
7481
|
-
"name": "
|
|
7482
|
-
"module": "
|
|
7305
|
+
"name": "AparteClient",
|
|
7306
|
+
"module": "src/client/aparte-client.ts"
|
|
7483
7307
|
}
|
|
7484
|
-
}
|
|
7308
|
+
}
|
|
7309
|
+
]
|
|
7310
|
+
},
|
|
7311
|
+
{
|
|
7312
|
+
"kind": "javascript-module",
|
|
7313
|
+
"path": "src/client/lifecycle-events.ts",
|
|
7314
|
+
"declarations": [
|
|
7485
7315
|
{
|
|
7486
|
-
"kind": "
|
|
7487
|
-
"name": "
|
|
7488
|
-
"
|
|
7489
|
-
"
|
|
7490
|
-
|
|
7491
|
-
|
|
7492
|
-
|
|
7316
|
+
"kind": "function",
|
|
7317
|
+
"name": "dispatchLifecycleEvent",
|
|
7318
|
+
"return": {
|
|
7319
|
+
"type": {
|
|
7320
|
+
"text": "void"
|
|
7321
|
+
}
|
|
7322
|
+
},
|
|
7323
|
+
"parameters": [
|
|
7324
|
+
{
|
|
7325
|
+
"name": "target",
|
|
7326
|
+
"type": {
|
|
7327
|
+
"text": "AparteLifecycleTarget"
|
|
7328
|
+
}
|
|
7329
|
+
},
|
|
7330
|
+
{
|
|
7331
|
+
"name": "name",
|
|
7332
|
+
"type": {
|
|
7333
|
+
"text": "string"
|
|
7334
|
+
}
|
|
7335
|
+
},
|
|
7336
|
+
{
|
|
7337
|
+
"name": "detail",
|
|
7338
|
+
"type": {
|
|
7339
|
+
"text": "unknown"
|
|
7340
|
+
}
|
|
7341
|
+
},
|
|
7342
|
+
{
|
|
7343
|
+
"name": "targetId",
|
|
7344
|
+
"optional": true,
|
|
7345
|
+
"type": {
|
|
7346
|
+
"text": "string"
|
|
7347
|
+
}
|
|
7348
|
+
}
|
|
7349
|
+
],
|
|
7350
|
+
"description": "Dispatch one bubbling, composed lifecycle event, stamped with the target's id so\nseveral chats on one page stay isolated — a composer reacts only to its own host's\nturn, while an id-less single-instance page still broadcasts.\n\nThe `typeof detail === 'object'` guard comes from the adapter copy and is kept\ndeliberately: it is a superset of the client copy's unconditional spread, so\nunifying on it cannot change any existing call, and it is the only difference\nbetween the two versions that was ever load-bearing.\n\n`targetId` is the id of the chat the target BELONGS to, and the caller has to say\nit, because `target.id` is not it. The target is whatever RENDERS — an\n`<aparte-chat>` shell delegates to its `.viewport`, which carries no id — so the\nstamp read empty for every shell-shaped chat, and a missing id means \"for every\nchat on the page\" on the receive side. `target.id` stays the fallback: it is right\nwhenever the render target IS the chat host, which is the viewport-only shape."
|
|
7351
|
+
}
|
|
7352
|
+
],
|
|
7353
|
+
"exports": [
|
|
7493
7354
|
{
|
|
7494
7355
|
"kind": "js",
|
|
7495
|
-
"name": "
|
|
7356
|
+
"name": "dispatchLifecycleEvent",
|
|
7496
7357
|
"declaration": {
|
|
7497
|
-
"name": "
|
|
7498
|
-
"module": "
|
|
7358
|
+
"name": "dispatchLifecycleEvent",
|
|
7359
|
+
"module": "src/client/lifecycle-events.ts"
|
|
7499
7360
|
}
|
|
7500
|
-
}
|
|
7361
|
+
}
|
|
7362
|
+
]
|
|
7363
|
+
},
|
|
7364
|
+
{
|
|
7365
|
+
"kind": "javascript-module",
|
|
7366
|
+
"path": "src/client/stream-adapter.ts",
|
|
7367
|
+
"declarations": [
|
|
7501
7368
|
{
|
|
7502
|
-
"kind": "
|
|
7503
|
-
"name": "
|
|
7504
|
-
"
|
|
7505
|
-
"
|
|
7506
|
-
|
|
7507
|
-
|
|
7369
|
+
"kind": "variable",
|
|
7370
|
+
"name": "toolRefusal",
|
|
7371
|
+
"type": {
|
|
7372
|
+
"text": "typeof engineToolRefusal"
|
|
7373
|
+
},
|
|
7374
|
+
"default": "engineToolRefusal",
|
|
7375
|
+
"description": "What a refused tool call tells the model, and who refused it — engine's `toolRefusal`,\nunder core's roof. `reason` is the sentence the model reads (the refuser's own, else\nthe person's words quoted, else \"Tool execution was rejected by the user.\"); `by` and\n`instruction` are what a row shows the person.\n\nFor a runner that answers an agent the loop does not run (an AG-UI agent, a server):\nit writes the sentence the loop writes, so the model reads one refusal however it ran."
|
|
7508
7376
|
},
|
|
7509
7377
|
{
|
|
7510
|
-
"kind": "
|
|
7511
|
-
"name": "
|
|
7512
|
-
"
|
|
7513
|
-
"
|
|
7514
|
-
|
|
7515
|
-
|
|
7378
|
+
"kind": "function",
|
|
7379
|
+
"name": "createStreamAdapter",
|
|
7380
|
+
"return": {
|
|
7381
|
+
"type": {
|
|
7382
|
+
"text": "AparteStreamRunEmitter"
|
|
7383
|
+
}
|
|
7384
|
+
},
|
|
7385
|
+
"parameters": [
|
|
7386
|
+
{
|
|
7387
|
+
"name": "opts",
|
|
7388
|
+
"type": {
|
|
7389
|
+
"text": "CreateStreamAdapterOptions"
|
|
7390
|
+
}
|
|
7391
|
+
}
|
|
7392
|
+
],
|
|
7393
|
+
"description": "Build the event → DOM adapter for one streamed message. Returns a synchronous\nAparteStreamRunEmitter to hand to `runStreamAgent` as its `emitter`.\nReproduces the inline loop's `targetElement.*` call sequence exactly (validated\nby the engine parity test against the real loop)."
|
|
7516
7394
|
},
|
|
7517
7395
|
{
|
|
7518
|
-
"kind": "
|
|
7519
|
-
"name": "
|
|
7520
|
-
"
|
|
7521
|
-
"
|
|
7522
|
-
|
|
7523
|
-
|
|
7524
|
-
|
|
7396
|
+
"kind": "function",
|
|
7397
|
+
"name": "readableToAsyncIterable",
|
|
7398
|
+
"return": {
|
|
7399
|
+
"type": {
|
|
7400
|
+
"text": "AsyncIterable<AparteStreamEvent>"
|
|
7401
|
+
}
|
|
7402
|
+
},
|
|
7403
|
+
"parameters": [
|
|
7404
|
+
{
|
|
7405
|
+
"name": "stream",
|
|
7406
|
+
"type": {
|
|
7407
|
+
"text": "ReadableStream<AparteStreamEvent>"
|
|
7408
|
+
}
|
|
7409
|
+
},
|
|
7410
|
+
{
|
|
7411
|
+
"name": "signal",
|
|
7412
|
+
"type": {
|
|
7413
|
+
"text": "AbortSignal"
|
|
7414
|
+
}
|
|
7415
|
+
}
|
|
7416
|
+
],
|
|
7417
|
+
"description": "Bridge a `ReadableStream` (what the transport returns) to the\n`AsyncIterable<AparteStreamEvent>` `runStreamAgent` consumes, cancelling the\nreader **synchronously** on abort so a user \"stop\" cuts the in-flight read.\nUsed by `AparteClient` when building `transportCall` for the\nrunner. Mirrors the inline loop's `reader.read()` loop + `reader.cancel()`."
|
|
7418
|
+
}
|
|
7419
|
+
],
|
|
7420
|
+
"exports": [
|
|
7525
7421
|
{
|
|
7526
7422
|
"kind": "js",
|
|
7527
|
-
"name": "
|
|
7423
|
+
"name": "toolRefusal",
|
|
7528
7424
|
"declaration": {
|
|
7529
|
-
"name": "
|
|
7530
|
-
"module": "
|
|
7425
|
+
"name": "toolRefusal",
|
|
7426
|
+
"module": "src/client/stream-adapter.ts"
|
|
7531
7427
|
}
|
|
7532
7428
|
},
|
|
7533
7429
|
{
|
|
7534
7430
|
"kind": "js",
|
|
7535
|
-
"name": "
|
|
7431
|
+
"name": "createStreamAdapter",
|
|
7536
7432
|
"declaration": {
|
|
7537
|
-
"name": "
|
|
7538
|
-
"module": "
|
|
7433
|
+
"name": "createStreamAdapter",
|
|
7434
|
+
"module": "src/client/stream-adapter.ts"
|
|
7539
7435
|
}
|
|
7540
7436
|
},
|
|
7541
7437
|
{
|
|
7542
7438
|
"kind": "js",
|
|
7543
|
-
"name": "
|
|
7439
|
+
"name": "readableToAsyncIterable",
|
|
7544
7440
|
"declaration": {
|
|
7545
|
-
"name": "
|
|
7546
|
-
"module": "
|
|
7441
|
+
"name": "readableToAsyncIterable",
|
|
7442
|
+
"module": "src/client/stream-adapter.ts"
|
|
7547
7443
|
}
|
|
7548
|
-
}
|
|
7444
|
+
}
|
|
7445
|
+
]
|
|
7446
|
+
},
|
|
7447
|
+
{
|
|
7448
|
+
"kind": "javascript-module",
|
|
7449
|
+
"path": "src/client/wire-history.ts",
|
|
7450
|
+
"declarations": [
|
|
7549
7451
|
{
|
|
7550
|
-
"kind": "
|
|
7551
|
-
"name": "
|
|
7552
|
-
"
|
|
7553
|
-
"
|
|
7554
|
-
|
|
7555
|
-
|
|
7452
|
+
"kind": "variable",
|
|
7453
|
+
"name": "COMPACTION_PREAMBLE",
|
|
7454
|
+
"type": {
|
|
7455
|
+
"text": "string"
|
|
7456
|
+
},
|
|
7457
|
+
"default": "'The earlier part of this conversation was compacted. This is a summary of what came before; continue from it.'",
|
|
7458
|
+
"description": "What a compaction summary goes out under, so the model reads it as context and not as the user's words."
|
|
7556
7459
|
},
|
|
7557
7460
|
{
|
|
7558
|
-
"kind": "
|
|
7559
|
-
"name": "
|
|
7560
|
-
"
|
|
7561
|
-
"
|
|
7562
|
-
|
|
7563
|
-
|
|
7461
|
+
"kind": "function",
|
|
7462
|
+
"name": "underPreamble",
|
|
7463
|
+
"return": {
|
|
7464
|
+
"type": {
|
|
7465
|
+
"text": "string"
|
|
7466
|
+
}
|
|
7467
|
+
},
|
|
7468
|
+
"parameters": [
|
|
7469
|
+
{
|
|
7470
|
+
"name": "text",
|
|
7471
|
+
"type": {
|
|
7472
|
+
"text": "string"
|
|
7473
|
+
}
|
|
7474
|
+
}
|
|
7475
|
+
],
|
|
7476
|
+
"description": "A summary as the model reads it: the preamble, then the text."
|
|
7564
7477
|
},
|
|
7565
7478
|
{
|
|
7566
|
-
"kind": "
|
|
7567
|
-
"name": "
|
|
7568
|
-
"
|
|
7569
|
-
"
|
|
7570
|
-
|
|
7571
|
-
|
|
7479
|
+
"kind": "function",
|
|
7480
|
+
"name": "mergeAdjacentUserMessages",
|
|
7481
|
+
"return": {
|
|
7482
|
+
"type": {
|
|
7483
|
+
"text": "AparteChatMessage[]"
|
|
7484
|
+
}
|
|
7485
|
+
},
|
|
7486
|
+
"parameters": [
|
|
7487
|
+
{
|
|
7488
|
+
"name": "messages",
|
|
7489
|
+
"type": {
|
|
7490
|
+
"text": "AparteChatMessage[]"
|
|
7491
|
+
}
|
|
7492
|
+
}
|
|
7493
|
+
],
|
|
7494
|
+
"description": "Merge ADJACENT `user` messages into one, so the roles a model receives alternate.\n\nStrict chat templates (Gemma 2/3, Mistral, llama.cpp with `--jinja`, vLLM) reject two\n`user` turns in a row, and once one is in the history every following turn fails the\nsame way. Two ordinary situations produce it: a compaction (the summary is a `user`\nmessage and the turns kept after it usually start with one), and a failed turn (its\nuser message stays in the transcript, its error reply is not sent, and the user writes\nagain).\n\nOnly `user` is merged. A `system`, `assistant` or `tool` message carries structure\n(tool calls and the ids that answer them) that concatenating would destroy. Text joins\nwith a blank line; parts concatenate with a text separator between them; a string\nbeside parts becomes a text part, so an image keeps its place. A history that already\nalternates comes back as the same messages."
|
|
7572
7495
|
},
|
|
7573
7496
|
{
|
|
7574
|
-
"kind": "
|
|
7575
|
-
"name": "
|
|
7576
|
-
"
|
|
7577
|
-
"
|
|
7578
|
-
|
|
7579
|
-
|
|
7497
|
+
"kind": "variable",
|
|
7498
|
+
"name": "STOPPED_TOOL_TEXT",
|
|
7499
|
+
"type": {
|
|
7500
|
+
"text": "string"
|
|
7501
|
+
},
|
|
7502
|
+
"default": "'The tool call was stopped before it ran.'",
|
|
7503
|
+
"description": "The answer a call that never finished gives the model."
|
|
7580
7504
|
},
|
|
7581
7505
|
{
|
|
7582
|
-
"kind": "
|
|
7583
|
-
"name": "
|
|
7584
|
-
"
|
|
7585
|
-
"
|
|
7586
|
-
|
|
7587
|
-
|
|
7506
|
+
"kind": "variable",
|
|
7507
|
+
"name": "EMPTY_TOOL_TEXT",
|
|
7508
|
+
"type": {
|
|
7509
|
+
"text": "string"
|
|
7510
|
+
},
|
|
7511
|
+
"default": "'The tool returned no output.'",
|
|
7512
|
+
"description": "The answer a call that ran and returned nothing gives the model — not \"stopped\", or it tries again."
|
|
7588
7513
|
},
|
|
7589
7514
|
{
|
|
7590
|
-
"kind": "
|
|
7591
|
-
"name": "
|
|
7592
|
-
"
|
|
7593
|
-
"
|
|
7594
|
-
|
|
7595
|
-
|
|
7515
|
+
"kind": "function",
|
|
7516
|
+
"name": "isOpenDeferred",
|
|
7517
|
+
"return": {
|
|
7518
|
+
"type": {
|
|
7519
|
+
"text": "segment is AparteToolCallSegment"
|
|
7520
|
+
}
|
|
7521
|
+
},
|
|
7522
|
+
"parameters": [
|
|
7523
|
+
{
|
|
7524
|
+
"name": "segment",
|
|
7525
|
+
"type": {
|
|
7526
|
+
"text": "AparteSegment"
|
|
7527
|
+
}
|
|
7528
|
+
}
|
|
7529
|
+
],
|
|
7530
|
+
"description": "A paused call still waiting for its answer — the one a resume leaves open for the server."
|
|
7596
7531
|
},
|
|
7597
7532
|
{
|
|
7598
|
-
"kind": "
|
|
7599
|
-
"name": "
|
|
7600
|
-
"
|
|
7601
|
-
"
|
|
7602
|
-
|
|
7603
|
-
|
|
7533
|
+
"kind": "function",
|
|
7534
|
+
"name": "wireTurns",
|
|
7535
|
+
"return": {
|
|
7536
|
+
"type": {
|
|
7537
|
+
"text": "AparteChatMessage[]"
|
|
7538
|
+
}
|
|
7539
|
+
},
|
|
7540
|
+
"parameters": [
|
|
7541
|
+
{
|
|
7542
|
+
"name": "message",
|
|
7543
|
+
"type": {
|
|
7544
|
+
"text": "AparteMessage"
|
|
7545
|
+
}
|
|
7546
|
+
},
|
|
7547
|
+
{
|
|
7548
|
+
"name": "textOf",
|
|
7549
|
+
"type": {
|
|
7550
|
+
"text": "(segments: AparteSegment[]) => string"
|
|
7551
|
+
}
|
|
7552
|
+
},
|
|
7553
|
+
{
|
|
7554
|
+
"name": "options",
|
|
7555
|
+
"default": "{}",
|
|
7556
|
+
"type": {
|
|
7557
|
+
"text": "{\n /**\n * Leave this message's paused calls unanswered: the request that RESUMES them\n * sends the envelope with those calls open, for the server to answer them.\n */\n openDeferred?: boolean;\n }"
|
|
7558
|
+
}
|
|
7559
|
+
}
|
|
7560
|
+
],
|
|
7561
|
+
"description": "`textOf` turns a run of non-call segments into the text a model reads back — the\nclient's own reconstruction, so a fence or an artifact reads the same whether a call\nsits beside it or not."
|
|
7604
7562
|
},
|
|
7605
7563
|
{
|
|
7606
|
-
"kind": "
|
|
7607
|
-
"name": "
|
|
7608
|
-
"
|
|
7609
|
-
"
|
|
7610
|
-
|
|
7611
|
-
|
|
7564
|
+
"kind": "function",
|
|
7565
|
+
"name": "isInFlight",
|
|
7566
|
+
"return": {
|
|
7567
|
+
"type": {
|
|
7568
|
+
"text": "boolean"
|
|
7569
|
+
}
|
|
7570
|
+
},
|
|
7571
|
+
"parameters": [
|
|
7572
|
+
{
|
|
7573
|
+
"name": "m",
|
|
7574
|
+
"type": {
|
|
7575
|
+
"text": "AparteMessage"
|
|
7576
|
+
}
|
|
7577
|
+
}
|
|
7578
|
+
],
|
|
7579
|
+
"description": "A turn that has not finished yet. `status` is OPTIONAL on `AparteMessage`, so\nthe question the history gates can ask is \"is this still in flight?\", never\n\"is this completed?\".\n\nThe gates ask the first, because a host that SEEDS a transcript\n— restoring a saved conversation, hydrating a server-rendered one — has no\nreason to invent a status for turns that are already over. Asking \"is this\ncompleted?\" would leave the cutoff at 0 and slice away the whole transcript: the\nmodel would get the new question with no context, and nothing in the UI would say\nso, because the viewport still shows every message."
|
|
7612
7580
|
},
|
|
7613
7581
|
{
|
|
7614
|
-
"kind": "
|
|
7615
|
-
"name": "
|
|
7616
|
-
"
|
|
7617
|
-
"
|
|
7618
|
-
|
|
7619
|
-
|
|
7582
|
+
"kind": "function",
|
|
7583
|
+
"name": "segmentsToWireText",
|
|
7584
|
+
"return": {
|
|
7585
|
+
"type": {
|
|
7586
|
+
"text": "string"
|
|
7587
|
+
}
|
|
7588
|
+
},
|
|
7589
|
+
"parameters": [
|
|
7590
|
+
{
|
|
7591
|
+
"name": "segments",
|
|
7592
|
+
"type": {
|
|
7593
|
+
"text": "AparteMessage['segments']"
|
|
7594
|
+
}
|
|
7595
|
+
}
|
|
7596
|
+
],
|
|
7597
|
+
"description": "Segments → the text a model can read back.\n\nFences and the language tag are kept. Without them the model re-reads its own\ncode as prose — which is how it starts explaining a snippet it believes it\nwrote in English.\n\nA type core does not know — a registered block grammar's (an artifact, a\ncitation, a file), a consumer's custom segment — follows one rule: its\n`content` if it has one, else its `fallback`, else nothing. Dropping such a\nsegment would make a document the model had just produced invisible on the very\nnext turn, so it could not be asked to change the thing it had built. An artifact\nis a plugin's type like any other and follows this rule. Such a segment may also say\nwhat goes around its content (`wire`): the tag a grammar read it from, with the id the\nmodel needs to name it again.\n\n`thinking` and `tool_call` stay out on purpose — the first is the model's own\nscratchpad, and most APIs neither want it back nor bill for it kindly; the\nsecond is not text: `wireMessages` sends a reply's calls as the assistant's\n`toolCalls` and the `tool` messages answering them (`wireTurns`)."
|
|
7620
7598
|
},
|
|
7621
7599
|
{
|
|
7622
|
-
"kind": "
|
|
7623
|
-
"name": "
|
|
7624
|
-
"
|
|
7625
|
-
"
|
|
7626
|
-
|
|
7627
|
-
|
|
7600
|
+
"kind": "function",
|
|
7601
|
+
"name": "messageWireText",
|
|
7602
|
+
"return": {
|
|
7603
|
+
"type": {
|
|
7604
|
+
"text": "string"
|
|
7605
|
+
}
|
|
7606
|
+
},
|
|
7607
|
+
"parameters": [
|
|
7608
|
+
{
|
|
7609
|
+
"name": "message",
|
|
7610
|
+
"type": {
|
|
7611
|
+
"text": "AparteMessage"
|
|
7612
|
+
}
|
|
7613
|
+
}
|
|
7614
|
+
],
|
|
7615
|
+
"description": "A message's text as the MODEL should read it — the one mapper both history\npaths use, so the compaction preamble cannot be applied on retry and edit and\nforgotten on the ordinary send, which is what the first review of this feature\ncaught: the summary went out on every normal turn as something the user said."
|
|
7628
7616
|
},
|
|
7629
7617
|
{
|
|
7630
|
-
"kind": "
|
|
7631
|
-
"name": "
|
|
7632
|
-
"
|
|
7633
|
-
"
|
|
7634
|
-
|
|
7635
|
-
|
|
7636
|
-
|
|
7618
|
+
"kind": "function",
|
|
7619
|
+
"name": "wireMessages",
|
|
7620
|
+
"return": {
|
|
7621
|
+
"type": {
|
|
7622
|
+
"text": "AparteChatMessage[]"
|
|
7623
|
+
}
|
|
7624
|
+
},
|
|
7625
|
+
"parameters": [
|
|
7626
|
+
{
|
|
7627
|
+
"name": "messages",
|
|
7628
|
+
"type": {
|
|
7629
|
+
"text": "AparteMessage[]"
|
|
7630
|
+
}
|
|
7631
|
+
}
|
|
7632
|
+
],
|
|
7633
|
+
"description": "The one rule for what a list of messages contributes to the wire.\n\nNot the slice — the contribution: a role the wire has (`user`/`assistant`), a\nturn that neither failed nor is still in flight, and text that is not empty. A reply\nthat called tools goes out as the calls and their answers, in the order it showed\nthem (`wireTurns`); every other message keeps its one text, compaction preamble\nincluded.\n\n`messageWireText` (not `m.content`): assistant replies stream their text into\n`segments`, leaving `content` as '', so without flattening every reply would be\nempty here and the drop below would swallow the whole transcript.\n\nPure, so the client that SENDS this history and the measure that ESTIMATES it\n(`estimateWireTokens`) read the same serialisation and cannot drift."
|
|
7634
|
+
}
|
|
7635
|
+
],
|
|
7636
|
+
"exports": [
|
|
7637
7637
|
{
|
|
7638
7638
|
"kind": "js",
|
|
7639
|
-
"name": "
|
|
7639
|
+
"name": "COMPACTION_PREAMBLE",
|
|
7640
7640
|
"declaration": {
|
|
7641
|
-
"name": "
|
|
7642
|
-
"module": "
|
|
7641
|
+
"name": "COMPACTION_PREAMBLE",
|
|
7642
|
+
"module": "src/client/wire-history.ts"
|
|
7643
7643
|
}
|
|
7644
7644
|
},
|
|
7645
7645
|
{
|
|
7646
7646
|
"kind": "js",
|
|
7647
|
-
"name": "
|
|
7647
|
+
"name": "underPreamble",
|
|
7648
7648
|
"declaration": {
|
|
7649
|
-
"name": "
|
|
7650
|
-
"module": "
|
|
7649
|
+
"name": "underPreamble",
|
|
7650
|
+
"module": "src/client/wire-history.ts"
|
|
7651
7651
|
}
|
|
7652
7652
|
},
|
|
7653
7653
|
{
|
|
7654
7654
|
"kind": "js",
|
|
7655
|
-
"name": "
|
|
7655
|
+
"name": "mergeAdjacentUserMessages",
|
|
7656
7656
|
"declaration": {
|
|
7657
|
-
"name": "
|
|
7658
|
-
"module": "
|
|
7657
|
+
"name": "mergeAdjacentUserMessages",
|
|
7658
|
+
"module": "src/client/wire-history.ts"
|
|
7659
7659
|
}
|
|
7660
7660
|
},
|
|
7661
7661
|
{
|
|
7662
7662
|
"kind": "js",
|
|
7663
|
-
"name": "
|
|
7663
|
+
"name": "STOPPED_TOOL_TEXT",
|
|
7664
7664
|
"declaration": {
|
|
7665
|
-
"name": "
|
|
7666
|
-
"module": "
|
|
7665
|
+
"name": "STOPPED_TOOL_TEXT",
|
|
7666
|
+
"module": "src/client/wire-history.ts"
|
|
7667
7667
|
}
|
|
7668
7668
|
},
|
|
7669
7669
|
{
|
|
7670
7670
|
"kind": "js",
|
|
7671
|
-
"name": "
|
|
7671
|
+
"name": "EMPTY_TOOL_TEXT",
|
|
7672
7672
|
"declaration": {
|
|
7673
|
-
"name": "
|
|
7674
|
-
"module": "
|
|
7673
|
+
"name": "EMPTY_TOOL_TEXT",
|
|
7674
|
+
"module": "src/client/wire-history.ts"
|
|
7675
7675
|
}
|
|
7676
7676
|
},
|
|
7677
7677
|
{
|
|
7678
7678
|
"kind": "js",
|
|
7679
|
-
"name": "
|
|
7679
|
+
"name": "isOpenDeferred",
|
|
7680
7680
|
"declaration": {
|
|
7681
|
-
"name": "
|
|
7682
|
-
"module": "
|
|
7681
|
+
"name": "isOpenDeferred",
|
|
7682
|
+
"module": "src/client/wire-history.ts"
|
|
7683
7683
|
}
|
|
7684
7684
|
},
|
|
7685
7685
|
{
|
|
7686
7686
|
"kind": "js",
|
|
7687
|
-
"name": "
|
|
7687
|
+
"name": "wireTurns",
|
|
7688
7688
|
"declaration": {
|
|
7689
|
-
"name": "
|
|
7690
|
-
"module": "
|
|
7689
|
+
"name": "wireTurns",
|
|
7690
|
+
"module": "src/client/wire-history.ts"
|
|
7691
7691
|
}
|
|
7692
7692
|
},
|
|
7693
7693
|
{
|
|
7694
7694
|
"kind": "js",
|
|
7695
|
-
"name": "
|
|
7695
|
+
"name": "isInFlight",
|
|
7696
7696
|
"declaration": {
|
|
7697
|
-
"name": "
|
|
7698
|
-
"module": "
|
|
7697
|
+
"name": "isInFlight",
|
|
7698
|
+
"module": "src/client/wire-history.ts"
|
|
7699
7699
|
}
|
|
7700
7700
|
},
|
|
7701
7701
|
{
|
|
7702
7702
|
"kind": "js",
|
|
7703
|
-
"name": "
|
|
7703
|
+
"name": "segmentsToWireText",
|
|
7704
7704
|
"declaration": {
|
|
7705
|
-
"name": "
|
|
7706
|
-
"module": "
|
|
7705
|
+
"name": "segmentsToWireText",
|
|
7706
|
+
"module": "src/client/wire-history.ts"
|
|
7707
7707
|
}
|
|
7708
7708
|
},
|
|
7709
7709
|
{
|
|
7710
7710
|
"kind": "js",
|
|
7711
|
-
"name": "
|
|
7711
|
+
"name": "messageWireText",
|
|
7712
7712
|
"declaration": {
|
|
7713
|
-
"name": "
|
|
7714
|
-
"module": "
|
|
7713
|
+
"name": "messageWireText",
|
|
7714
|
+
"module": "src/client/wire-history.ts"
|
|
7715
7715
|
}
|
|
7716
7716
|
},
|
|
7717
7717
|
{
|
|
7718
7718
|
"kind": "js",
|
|
7719
|
-
"name": "
|
|
7719
|
+
"name": "wireMessages",
|
|
7720
7720
|
"declaration": {
|
|
7721
|
-
"name": "
|
|
7722
|
-
"module": "
|
|
7721
|
+
"name": "wireMessages",
|
|
7722
|
+
"module": "src/client/wire-history.ts"
|
|
7723
7723
|
}
|
|
7724
7724
|
}
|
|
7725
7725
|
]
|
|
@@ -9647,7 +9647,16 @@
|
|
|
9647
9647
|
"text": "string | null"
|
|
9648
9648
|
}
|
|
9649
9649
|
},
|
|
9650
|
-
"
|
|
9650
|
+
"parameters": [
|
|
9651
|
+
{
|
|
9652
|
+
"name": "tools",
|
|
9653
|
+
"optional": true,
|
|
9654
|
+
"type": {
|
|
9655
|
+
"text": "readonly AparteTool[]"
|
|
9656
|
+
}
|
|
9657
|
+
}
|
|
9658
|
+
],
|
|
9659
|
+
"description": "The registered tools' own `systemPrompt`s, in registration order with a blank line\nbetween, or `null` if none sets one. `AparteClient` sends them with every request, as a\nsystem message after the app's own (AparteConfig.resolveSystemPrompt| resolveSystemPrompt());\na request you assemble yourself should send them the same way, or the model loses the\ntools' instructions.\n\nPass the tools the request actually carries, and only theirs come back: an instruction\nto use a tool the model was not given (a model without `function_calling`, a turn sent\nwith `toolChoice: 'none'`) has it describe a call it cannot make. Without the argument,\nevery registered tool's."
|
|
9651
9660
|
},
|
|
9652
9661
|
{
|
|
9653
9662
|
"kind": "method",
|
|
@@ -11470,7 +11479,7 @@
|
|
|
11470
11479
|
"type": {
|
|
11471
11480
|
"text": "AparteLocale"
|
|
11472
11481
|
},
|
|
11473
|
-
"default": "{ inputPlaceholder: \"Type a message...\", sendButton: \"Send\", copy: \"Copy\", copied: \"Copied!\", retry: \"Retry\", thinking: \"Thinking\", elicitationOther: \"Other…\", elicitationOtherPlaceholder: \"Type your answer…\", elicitationOtherLabel: \"Custom answer\", submitButton: \"Submit\", stopButton: \"Stop\", elicitationRecommended: \"Recommended\", elicitationSkip: \"Skip\", elicitationHide: \"Hide for now\", elicitationWaiting: \"Waiting for your answer\", elicitationYes: \"Yes\", elicitationNo: \"No\", elicitationAnswerLabel: \"Your answer\", approvalInstructionPlaceholder: \"Or tell it what to do instead…\", approvalAsk: \"Allow {tool}?\", approvalWaiting: \"Waiting\", scrollToBottom: \"Scroll to bottom\", suggestionsLabel: \"Suggested prompts\", contextLabel: \"Context window\", contextSystem: \"System prompt\", contextTools: \"Tools\", contextSummary: \"Summary\", contextMessages: \"Messages\", contextOther: \"Other\", contextFree: \"Free\", contextTotal: \"Total\", contextReclaim: \"Compacting now would free ~{n} tokens\", contextCompactNow: \"Compact now\", checkpointCount: \"{n} messages summarised for the model\", checkpointCountOne: \"1 message summarised for the model\", checkpointLegacy: \"Earlier messages were summarised\", checkpointGroup: \"Context summary\", checkpointShow: \"Show summary\", checkpointHide: \"Hide summary\", checkpointRestore: \"Restore\", checkpointRestoreConfirm: \"Send the original messages to the model again?\", checkpointPending: \"Summarising the context…\", checkpointFailed: \"Couldn't summarise the context\", toolRunning: \"Running\", toolCompleted: \"Done\", toolRejected: \"Rejected\", toolStopped: \"Stopped\", toolFailed: \"Failed\", toolInput: \"Input\", toolOutput: \"Output\", toolRejectedSaid: \"You said: “{instruction}”\", toolRefusedByPolicy: \"Refused by policy\", toolNotRunAfterRefusal: \"Not run: an earlier call was refused\", toolTimedOut: \"Timed out\", toolUnavailable: \"Not available here\", toolNoApprover: \"No one could approve it\", toolTurnLimit: \"Turn limit reached\", maxTurnsReached: \"Stopped after {n} turns to avoid an endless loop.\", sourcesCount: \"{n} sources\", sourcesOne: \"1 source\", sourcesCard: \"Sources\", sourcePrevious: \"Previous source\", sourceNext: \"Next source\", sourcePosition: \"Source {i} of {n}\", opensInNewTab: \"(opens in a new tab)\", imageLoad: \"Load the image from {host}\", imageLoadNamed: \"Load the image “{alt}” from {host}\", questionDeclined: \"You declined to answer.\", artifactNotCreated: \"Not created\", thoughtFor: \"Thought for {duration}\", thought: \"Thought\", turnWorking: \"Working…\", turnWorked: \"Worked {duration}\", turnUsed: \"Used {tools}\", turnTools: \"one:{n} tool|other:{n} tools\", feedbackReasonTitle: 'What went wrong?', feedbackReasonDismiss: 'Not now', triggersLoading: 'Loading…', triggersEmpty: 'No results', triggersError: 'This list could not be loaded', triggersRetry: 'Try again', triggersBack: 'Back', triggersCommandNew: 'Start a new conversation', triggersCommandStop: 'Stop the reply', triggersCommandRetry: 'Answer again', triggersCommandCopy: 'Copy the last reply', triggersCommandCompact: 'Summarise the earlier messages', triggersCompactNothing: 'There is nothing to compact yet', triggersCompactBusy: 'Wait for the reply to finish', triggersCompactNoWindow: 'This model does not say how much it can read', triggersCompactFailed: 'The summary could not be written', triggersCommandModel: 'Change the model', triggersCommandApproval: 'Change the approval mode', approvalOptionsLabel: \"Your decision\", approvalArgsLabel: \"Arguments\", actionUpload: \"Attach file\", removeAttachment: \"Remove {name}\", messageFrom: \"Message from {name}\", selectSearchPlaceholder: \"Search…\", selectSearchLabel: \"Search options\", loading: \"Loading…\", download: \"Download\", openArtifact: \"Open\", modelContextWindow: \"{n} context\", previewPending: \"Press Preview to run this artifact.\", sandboxError: \"The sandbox failed during generation.\", sandboxErrorHint: \"Common cause: the model produced invalid code (undefined variable, wrong argument type). Retry the request — the model may produce different code.\", preview: \"Preview\", code: \"Code\", generating: \"Generating…\", rebuildingPreview: \"Rebuilding preview…\", typing: \"Typing\", responseCutOff: \"Cut off at the model's length limit.\", error: \"Error\", errorUnreachable: \"The assistant can’t be reached right now. Try again in a moment.\", errorTimeout: \"The answer took too long. Try again in a moment.\", errorRefused: \"The assistant isn’t allowed to answer right now.\", errorRateLimited: \"Too many requests right now. Try again in a moment.\", errorTooLong: \"This conversation is too long for the model. Start a new one.\", errorFailed: \"The assistant couldn’t answer. Try again in a moment.\", errorNoAnswer: \"The assistant couldn’t answer this request.\", running: \"Running...\", run: \"Run\", file: \"File\", modelSelectorPlaceholder: \"Select a model...\", approvalModeLabel: \"Approval mode\", roleNameUser: \"You\", roleNameAssistant: \"Assistant\", yourMessage: \"Your message\", assistantResponse: \"Assistant response\", messageActions: \"Message actions\", edit: \"Edit message\", editConfirm: \"Send\", editCancel: \"Cancel\", feedbackPositive: \"Good response\", feedbackNegative: \"Bad response\", previousResponse: \"Previous response\", nextResponse: \"Next response\", approveTool: \"Approve\", rejectTool: \"Reject\", messageInfo: \"Details\", newChat: \"New Chat\", loadingConversations: \"Loading conversations\", conversationSearchEmpty: \"No conversation matches\", conversationList: \"Conversations\", loadingConversation: \"Loading the conversation\", deleteConversation: \"Delete\", archiveConversation: \"Archive\", unarchiveConversation: \"Unarchive\", conversationActions: \"Conversation actions\", conversationRunning: \"Answering\", conversationWaiting: \"Waiting for you\", renameConversation: \"Rename\", conversationTitle: \"Conversation title\", pinConversation: \"Pin\", unpinConversation: \"Unpin\", deleteConversationConfirm: \"Delete “{title}”?\", cancel: \"Cancel\", conversationGroupPinned: \"Pinned\", conversationGroupToday: \"Today\", conversationGroupYesterday: \"Yesterday\", conversationGroupWeek: \"Previous 7 days\", conversationGroupMonth: \"Previous 30 days\", scrollRailLabel: \"Conversation outline\", sidebarLabel: \"Conversations\", splitHandleLabel: \"Resize the panes\", launcherOpen: \"Open the chat\", launcherClose: \"Close the chat\", transcript: \"Transcript\" }",
|
|
11482
|
+
"default": "{ inputPlaceholder: \"Type a message...\", sendButton: \"Send\", copy: \"Copy\", copied: \"Copied!\", retry: \"Retry\", thinking: \"Thinking\", elicitationOther: \"Other…\", elicitationOtherPlaceholder: \"Type your answer…\", elicitationOtherLabel: \"Custom answer\", submitButton: \"Submit\", stopButton: \"Stop\", elicitationRecommended: \"Recommended\", elicitationSkip: \"Skip\", elicitationHide: \"Hide for now\", elicitationWaiting: \"Waiting for your answer\", elicitationYes: \"Yes\", elicitationNo: \"No\", elicitationAnswerLabel: \"Your answer\", approvalInstructionPlaceholder: \"Or tell it what to do instead…\", approvalAsk: \"Allow {tool}?\", approvalWaiting: \"Waiting\", scrollToBottom: \"Scroll to bottom\", suggestionsLabel: \"Suggested prompts\", contextLabel: \"Context window\", contextSystem: \"System prompt\", contextTools: \"Tools\", contextSummary: \"Summary\", contextMessages: \"Messages\", contextOther: \"Other\", contextFree: \"Free\", contextTotal: \"Total\", contextReclaim: \"Compacting now would free ~{n} tokens\", contextCompactNow: \"Compact now\", checkpointCount: \"{n} messages summarised for the model\", checkpointCountOne: \"1 message summarised for the model\", checkpointLegacy: \"Earlier messages were summarised\", checkpointGroup: \"Context summary\", checkpointShow: \"Show summary\", checkpointHide: \"Hide summary\", checkpointRestore: \"Restore\", checkpointRestoreConfirm: \"Send the original messages to the model again?\", checkpointPending: \"Summarising the context…\", checkpointFailed: \"Couldn't summarise the context\", toolRunning: \"Running\", toolCompleted: \"Done\", toolRejected: \"Rejected\", toolStopped: \"Stopped\", toolFailed: \"Failed\", toolInput: \"Input\", toolOutput: \"Output\", toolRejectedSaid: \"You said: “{instruction}”\", toolRefusedByPolicy: \"Refused by policy\", toolNotRunAfterRefusal: \"Not run: an earlier call was refused\", toolTimedOut: \"Timed out\", toolUnavailable: \"Not available here\", toolNoApprover: \"No one could approve it\", toolTurnLimit: \"Turn limit reached\", maxTurnsReached: \"Stopped after {n} turns to avoid an endless loop.\", sourcesCount: \"{n} sources\", sourcesOne: \"1 source\", sourcesCard: \"Sources\", sourcePrevious: \"Previous source\", sourceNext: \"Next source\", sourcePosition: \"Source {i} of {n}\", opensInNewTab: \"(opens in a new tab)\", imageLoad: \"Load the image from {host}\", imageLoadNamed: \"Load the image “{alt}” from {host}\", questionDeclined: \"You declined to answer.\", artifactNotCreated: \"Not created\", thoughtFor: \"Thought for {duration}\", thought: \"Thought\", turnWorking: \"Working…\", turnWorked: \"Worked {duration}\", turnUsed: \"Used {tools}\", turnTools: \"one:{n} tool|other:{n} tools\", feedbackReasonTitle: 'What went wrong?', feedbackReasonDismiss: 'Not now', triggersLoading: 'Loading…', triggersEmpty: 'No results', triggersError: 'This list could not be loaded', triggersRetry: 'Try again', triggersBack: 'Back', triggersCommandNew: 'Start a new conversation', triggersCommandStop: 'Stop the reply', triggersCommandRetry: 'Answer again', triggersCommandCopy: 'Copy the last reply', triggersCommandCompact: 'Summarise the earlier messages', triggersCompactNothing: 'There is nothing to compact yet', triggersCompactBusy: 'Wait for the reply to finish', triggersCompactNoWindow: 'This model does not say how much it can read', triggersCompactFailed: 'The summary could not be written', triggersCommandModel: 'Change the model', triggersCommandApproval: 'Change the approval mode', approvalOptionsLabel: \"Your decision\", approvalArgsLabel: \"Arguments\", actionUpload: \"Attach file\", removeAttachment: \"Remove {name}\", messageFrom: \"Message from {name}\", selectSearchPlaceholder: \"Search…\", selectSearchLabel: \"Search options\", loading: \"Loading…\", download: \"Download\", openArtifact: \"Open\", closeArtifact: \"Close\", artifactVersion: \"Version {n} of {total}\", previousVersion: \"Previous version\", nextVersion: \"Next version\", modelContextWindow: \"{n} context\", previewPending: \"Press Preview to run this artifact.\", sandboxError: \"The sandbox failed during generation.\", sandboxErrorHint: \"Common cause: the model produced invalid code (undefined variable, wrong argument type). Retry the request — the model may produce different code.\", preview: \"Preview\", code: \"Code\", generating: \"Generating…\", rebuildingPreview: \"Rebuilding preview…\", typing: \"Typing\", responseCutOff: \"Cut off at the model's length limit.\", error: \"Error\", errorUnreachable: \"The assistant can’t be reached right now. Try again in a moment.\", errorTimeout: \"The answer took too long. Try again in a moment.\", errorRefused: \"The assistant isn’t allowed to answer right now.\", errorRateLimited: \"Too many requests right now. Try again in a moment.\", errorTooLong: \"This conversation is too long for the model. Start a new one.\", errorFailed: \"The assistant couldn’t answer. Try again in a moment.\", errorNoAnswer: \"The assistant couldn’t answer this request.\", running: \"Running...\", run: \"Run\", file: \"File\", modelSelectorPlaceholder: \"Select a model...\", approvalModeLabel: \"Approval mode\", roleNameUser: \"You\", roleNameAssistant: \"Assistant\", yourMessage: \"Your message\", assistantResponse: \"Assistant response\", messageActions: \"Message actions\", edit: \"Edit message\", editConfirm: \"Send\", editCancel: \"Cancel\", feedbackPositive: \"Good response\", feedbackNegative: \"Bad response\", previousResponse: \"Previous response\", nextResponse: \"Next response\", approveTool: \"Approve\", rejectTool: \"Reject\", messageInfo: \"Details\", newChat: \"New Chat\", loadingConversations: \"Loading conversations\", conversationSearchEmpty: \"No conversation matches\", conversationList: \"Conversations\", loadingConversation: \"Loading the conversation\", deleteConversation: \"Delete\", archiveConversation: \"Archive\", unarchiveConversation: \"Unarchive\", conversationActions: \"Conversation actions\", conversationRunning: \"Answering\", conversationWaiting: \"Waiting for you\", renameConversation: \"Rename\", conversationTitle: \"Conversation title\", pinConversation: \"Pin\", unpinConversation: \"Unpin\", deleteConversationConfirm: \"Delete “{title}”?\", cancel: \"Cancel\", conversationGroupPinned: \"Pinned\", conversationGroupToday: \"Today\", conversationGroupYesterday: \"Yesterday\", conversationGroupWeek: \"Previous 7 days\", conversationGroupMonth: \"Previous 30 days\", scrollRailLabel: \"Conversation outline\", sidebarLabel: \"Conversations\", splitHandleLabel: \"Resize the panes\", launcherOpen: \"Open the chat\", launcherClose: \"Close the chat\", transcript: \"Transcript\" }",
|
|
11474
11483
|
"description": "Default English Locale (Zero-dependency)\nHardcoded to ensure the core works out-of-the-box."
|
|
11475
11484
|
}
|
|
11476
11485
|
],
|
|
@@ -31614,6 +31623,37 @@
|
|
|
31614
31623
|
},
|
|
31615
31624
|
"description": "Back to the position the split was FIRST connected with — a re-parent restores\nthat, it does not redefine it. What a double-click on the seam does."
|
|
31616
31625
|
},
|
|
31626
|
+
{
|
|
31627
|
+
"kind": "field",
|
|
31628
|
+
"name": "_unmeasurable",
|
|
31629
|
+
"type": {
|
|
31630
|
+
"text": "boolean"
|
|
31631
|
+
},
|
|
31632
|
+
"privacy": "private",
|
|
31633
|
+
"description": "No layout worth reading: one pane is shown, or the tracks are in motion between one\nand two. Whatever measures the panes or moves the seam asks this, not `stacked`\nalone: a `pane` named while the split moves commits a position, and read from tracks\nthat are halfway it wrote the full width into `position`, so the split came back at\nits maximum instead of the size it had.",
|
|
31634
|
+
"readonly": true
|
|
31635
|
+
},
|
|
31636
|
+
{
|
|
31637
|
+
"kind": "field",
|
|
31638
|
+
"name": "_endMove",
|
|
31639
|
+
"type": {
|
|
31640
|
+
"text": "(() => void) | null"
|
|
31641
|
+
},
|
|
31642
|
+
"privacy": "private",
|
|
31643
|
+
"default": "null",
|
|
31644
|
+
"description": "Ends the move in flight: the inline tracks and the marker go, the sheet's state stays."
|
|
31645
|
+
},
|
|
31646
|
+
{
|
|
31647
|
+
"kind": "method",
|
|
31648
|
+
"name": "_moveBetweenOneAndTwo",
|
|
31649
|
+
"privacy": "private",
|
|
31650
|
+
"return": {
|
|
31651
|
+
"type": {
|
|
31652
|
+
"text": "void"
|
|
31653
|
+
}
|
|
31654
|
+
},
|
|
31655
|
+
"description": "`single` just changed: move between one pane and two instead of jumping.\n\nThe sheet's one-pane state takes the other pane out with `display: none`, which\ncannot be animated. So for the length of the move the element keeps its three tracks\n(`data-moving` holds the one-pane rules off) and drives them itself, in pixels it\nmeasured: from what is on screen to what the sheet will show. When the move ends the\ninline tracks and the marker are removed and the sheet's state is all that is left,\nexactly as if nothing had been animated.\n\nIt does nothing, and the change is immediate as before, when the reader asked for\nless motion, when the split is stacked by its breakpoint (one pane either way), and\nwhere there is no layout to measure."
|
|
31656
|
+
},
|
|
31617
31657
|
{
|
|
31618
31658
|
"kind": "method",
|
|
31619
31659
|
"name": "_ensureHandle",
|
|
@@ -32029,6 +32069,13 @@
|
|
|
32029
32069
|
},
|
|
32030
32070
|
"description": "Written BY the element while one pane is shown. Read-only; style against it.",
|
|
32031
32071
|
"name": "data-stacked"
|
|
32072
|
+
},
|
|
32073
|
+
{
|
|
32074
|
+
"type": {
|
|
32075
|
+
"text": "string"
|
|
32076
|
+
},
|
|
32077
|
+
"description": "Written BY the element while it moves between one pane and two after `single` changed (both panes are laid out for that time). Read-only. The move takes `--aparte-duration-slower`; `aparte-split[data-moving] { transition: none }` makes it immediate, and it is skipped under `prefers-reduced-motion`.",
|
|
32078
|
+
"name": "data-moving"
|
|
32032
32079
|
}
|
|
32033
32080
|
],
|
|
32034
32081
|
"superclass": {
|