@aparte/core 1.2.0 → 1.3.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/README.md +3 -2
- package/dist/components/launcher/aparte-launcher.d.ts +151 -13
- package/dist/components/launcher/aparte-launcher.d.ts.map +1 -1
- package/dist/config/icon-provider.d.ts +4 -0
- package/dist/config/icon-provider.d.ts.map +1 -1
- package/dist/config/locale.d.ts +7 -1
- package/dist/config/locale.d.ts.map +1 -1
- package/dist/config/sanitize.d.ts +1 -1
- package/dist/custom-elements.json +1333 -850
- package/dist/{defer-hydration-Oh04ScDm.js → defer-hydration-lK-7XQXf.js} +16 -2
- package/dist/defer-hydration-lK-7XQXf.js.map +1 -0
- package/dist/generated/element-attributes.d.ts +10 -0
- package/dist/generated/element-attributes.d.ts.map +1 -1
- package/dist/{glyphs-DFp-825O.js → glyphs-LolG04CC.js} +20 -14
- package/dist/glyphs-LolG04CC.js.map +1 -0
- package/dist/icons/glyphs.d.ts +6 -0
- package/dist/icons/glyphs.d.ts.map +1 -1
- package/dist/icons.js +17 -15
- package/dist/index.css +1 -1
- package/dist/index.js +286 -28
- package/dist/index.js.map +1 -1
- package/dist/index.node.js +1 -1
- package/dist/interop/default-on-attributes.d.ts +17 -0
- package/dist/interop/default-on-attributes.d.ts.map +1 -0
- package/dist/interop/element-props.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/defer-hydration-Oh04ScDm.js.map +0 -1
- package/dist/glyphs-DFp-825O.js.map +0 -1
|
@@ -5655,417 +5655,42 @@
|
|
|
5655
5655
|
},
|
|
5656
5656
|
{
|
|
5657
5657
|
"kind": "javascript-module",
|
|
5658
|
-
"path": "src/
|
|
5659
|
-
"declarations": [
|
|
5660
|
-
"exports": [
|
|
5661
|
-
{
|
|
5662
|
-
"kind": "js",
|
|
5663
|
-
"name": "AparteChat",
|
|
5664
|
-
"declaration": {
|
|
5665
|
-
"name": "AparteChat",
|
|
5666
|
-
"module": "./chat/index.js"
|
|
5667
|
-
}
|
|
5668
|
-
},
|
|
5669
|
-
{
|
|
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
|
-
},
|
|
5658
|
+
"path": "src/client/agent-runner.ts",
|
|
5659
|
+
"declarations": [
|
|
5869
5660
|
{
|
|
5870
|
-
"kind": "
|
|
5871
|
-
"name": "
|
|
5872
|
-
"
|
|
5873
|
-
"
|
|
5874
|
-
|
|
5875
|
-
|
|
5876
|
-
|
|
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
|
+
],
|
|
5679
|
+
"exports": [
|
|
5877
5680
|
{
|
|
5878
5681
|
"kind": "js",
|
|
5879
|
-
"name": "
|
|
5682
|
+
"name": "createAgentStreamRunner",
|
|
5880
5683
|
"declaration": {
|
|
5881
|
-
"name": "
|
|
5882
|
-
"module": "
|
|
5684
|
+
"name": "createAgentStreamRunner",
|
|
5685
|
+
"module": "src/client/agent-runner.ts"
|
|
5883
5686
|
}
|
|
5884
|
-
}
|
|
5885
|
-
|
|
5886
|
-
|
|
5887
|
-
|
|
5888
|
-
|
|
5889
|
-
|
|
5890
|
-
|
|
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": [
|
|
5687
|
+
}
|
|
5688
|
+
]
|
|
5689
|
+
},
|
|
5690
|
+
{
|
|
5691
|
+
"kind": "javascript-module",
|
|
5692
|
+
"path": "src/client/aparte-client.ts",
|
|
5693
|
+
"declarations": [
|
|
6069
5694
|
{
|
|
6070
5695
|
"kind": "class",
|
|
6071
5696
|
"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",
|
|
@@ -7189,537 +6814,912 @@
|
|
|
7189
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."
|
|
7190
6815
|
},
|
|
7191
6816
|
{
|
|
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."
|
|
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",
|
|
6893
|
+
"parameters": [
|
|
6894
|
+
{
|
|
6895
|
+
"name": "target",
|
|
6896
|
+
"type": {
|
|
6897
|
+
"text": "AparteChatTargetElement"
|
|
6898
|
+
}
|
|
6899
|
+
},
|
|
6900
|
+
{
|
|
6901
|
+
"name": "messageId",
|
|
6902
|
+
"type": {
|
|
6903
|
+
"text": "string"
|
|
6904
|
+
}
|
|
6905
|
+
},
|
|
6906
|
+
{
|
|
6907
|
+
"name": "error",
|
|
6908
|
+
"type": {
|
|
6909
|
+
"text": "AparteError"
|
|
6910
|
+
}
|
|
6911
|
+
}
|
|
6912
|
+
],
|
|
6913
|
+
"description": "Gracefully handles errors by updating the current message instead of duplicating it"
|
|
6914
|
+
}
|
|
6915
|
+
],
|
|
6916
|
+
"examples": [
|
|
6917
|
+
"```typescript\nconst client = new AparteClient({\n keyResolver: (providerId) => process.env[providerId.toUpperCase() + '_KEY']\n});\nclient.start();\n```"
|
|
6918
|
+
]
|
|
6919
|
+
},
|
|
6920
|
+
{
|
|
6921
|
+
"kind": "variable",
|
|
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": [
|
|
7148
|
+
{
|
|
7149
|
+
"name": "segment",
|
|
7150
|
+
"type": {
|
|
7151
|
+
"text": "AparteSegment"
|
|
7152
|
+
}
|
|
7153
|
+
}
|
|
7154
|
+
],
|
|
7155
|
+
"description": "A paused call still waiting for its answer — the one a resume leaves open for the server."
|
|
7156
|
+
},
|
|
7157
|
+
{
|
|
7158
|
+
"kind": "function",
|
|
7159
|
+
"name": "wireTurns",
|
|
7160
|
+
"return": {
|
|
7161
|
+
"type": {
|
|
7162
|
+
"text": "AparteChatMessage[]"
|
|
7163
|
+
}
|
|
7164
|
+
},
|
|
7165
|
+
"parameters": [
|
|
7166
|
+
{
|
|
7167
|
+
"name": "message",
|
|
7168
|
+
"type": {
|
|
7169
|
+
"text": "AparteMessage"
|
|
7170
|
+
}
|
|
7171
|
+
},
|
|
7172
|
+
{
|
|
7173
|
+
"name": "textOf",
|
|
7174
|
+
"type": {
|
|
7175
|
+
"text": "(segments: AparteSegment[]) => string"
|
|
7176
|
+
}
|
|
7209
7177
|
},
|
|
7210
7178
|
{
|
|
7211
|
-
"
|
|
7212
|
-
"
|
|
7213
|
-
"
|
|
7214
|
-
"
|
|
7215
|
-
|
|
7216
|
-
|
|
7217
|
-
|
|
7218
|
-
|
|
7219
|
-
|
|
7220
|
-
|
|
7221
|
-
|
|
7222
|
-
|
|
7223
|
-
|
|
7224
|
-
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
|
|
7229
|
-
},
|
|
7179
|
+
"name": "options",
|
|
7180
|
+
"default": "{}",
|
|
7181
|
+
"type": {
|
|
7182
|
+
"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 }"
|
|
7183
|
+
}
|
|
7184
|
+
}
|
|
7185
|
+
],
|
|
7186
|
+
"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."
|
|
7187
|
+
},
|
|
7188
|
+
{
|
|
7189
|
+
"kind": "function",
|
|
7190
|
+
"name": "isInFlight",
|
|
7191
|
+
"return": {
|
|
7192
|
+
"type": {
|
|
7193
|
+
"text": "boolean"
|
|
7194
|
+
}
|
|
7195
|
+
},
|
|
7196
|
+
"parameters": [
|
|
7230
7197
|
{
|
|
7231
|
-
"
|
|
7232
|
-
"
|
|
7233
|
-
|
|
7234
|
-
|
|
7235
|
-
|
|
7236
|
-
|
|
7237
|
-
|
|
7198
|
+
"name": "m",
|
|
7199
|
+
"type": {
|
|
7200
|
+
"text": "AparteMessage"
|
|
7201
|
+
}
|
|
7202
|
+
}
|
|
7203
|
+
],
|
|
7204
|
+
"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."
|
|
7205
|
+
},
|
|
7206
|
+
{
|
|
7207
|
+
"kind": "function",
|
|
7208
|
+
"name": "segmentsToWireText",
|
|
7209
|
+
"return": {
|
|
7210
|
+
"type": {
|
|
7211
|
+
"text": "string"
|
|
7212
|
+
}
|
|
7213
|
+
},
|
|
7214
|
+
"parameters": [
|
|
7238
7215
|
{
|
|
7239
|
-
"
|
|
7240
|
-
"
|
|
7241
|
-
|
|
7242
|
-
|
|
7243
|
-
|
|
7244
|
-
|
|
7245
|
-
|
|
7246
|
-
|
|
7247
|
-
|
|
7248
|
-
|
|
7249
|
-
|
|
7250
|
-
|
|
7251
|
-
|
|
7252
|
-
|
|
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
|
-
},
|
|
7216
|
+
"name": "segments",
|
|
7217
|
+
"type": {
|
|
7218
|
+
"text": "AparteMessage['segments']"
|
|
7219
|
+
}
|
|
7220
|
+
}
|
|
7221
|
+
],
|
|
7222
|
+
"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`)."
|
|
7223
|
+
},
|
|
7224
|
+
{
|
|
7225
|
+
"kind": "function",
|
|
7226
|
+
"name": "messageWireText",
|
|
7227
|
+
"return": {
|
|
7228
|
+
"type": {
|
|
7229
|
+
"text": "string"
|
|
7230
|
+
}
|
|
7231
|
+
},
|
|
7232
|
+
"parameters": [
|
|
7264
7233
|
{
|
|
7265
|
-
"
|
|
7266
|
-
"
|
|
7267
|
-
|
|
7268
|
-
|
|
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"
|
|
7234
|
+
"name": "message",
|
|
7235
|
+
"type": {
|
|
7236
|
+
"text": "AparteMessage"
|
|
7237
|
+
}
|
|
7289
7238
|
}
|
|
7290
7239
|
],
|
|
7291
|
-
"
|
|
7292
|
-
|
|
7293
|
-
|
|
7240
|
+
"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."
|
|
7241
|
+
},
|
|
7242
|
+
{
|
|
7243
|
+
"kind": "function",
|
|
7244
|
+
"name": "wireMessages",
|
|
7245
|
+
"return": {
|
|
7246
|
+
"type": {
|
|
7247
|
+
"text": "AparteChatMessage[]"
|
|
7248
|
+
}
|
|
7249
|
+
},
|
|
7250
|
+
"parameters": [
|
|
7251
|
+
{
|
|
7252
|
+
"name": "messages",
|
|
7253
|
+
"type": {
|
|
7254
|
+
"text": "AparteMessage[]"
|
|
7255
|
+
}
|
|
7256
|
+
}
|
|
7257
|
+
],
|
|
7258
|
+
"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."
|
|
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
|
+
}
|
|
7294
7341
|
},
|
|
7295
|
-
{
|
|
7296
|
-
"kind": "variable",
|
|
7297
|
-
"name": "outcomes"
|
|
7298
|
-
}
|
|
7299
|
-
],
|
|
7300
|
-
"exports": [
|
|
7301
7342
|
{
|
|
7302
7343
|
"kind": "js",
|
|
7303
|
-
"name": "
|
|
7344
|
+
"name": "wireMessages",
|
|
7304
7345
|
"declaration": {
|
|
7305
|
-
"name": "
|
|
7306
|
-
"module": "src/client/
|
|
7346
|
+
"name": "wireMessages",
|
|
7347
|
+
"module": "src/client/wire-history.ts"
|
|
7307
7348
|
}
|
|
7308
7349
|
}
|
|
7309
7350
|
]
|
|
7310
7351
|
},
|
|
7311
7352
|
{
|
|
7312
7353
|
"kind": "javascript-module",
|
|
7313
|
-
"path": "src/
|
|
7314
|
-
"declarations": [
|
|
7315
|
-
{
|
|
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
|
-
],
|
|
7354
|
+
"path": "src/components/index.ts",
|
|
7355
|
+
"declarations": [],
|
|
7353
7356
|
"exports": [
|
|
7354
7357
|
{
|
|
7355
7358
|
"kind": "js",
|
|
7356
|
-
"name": "
|
|
7359
|
+
"name": "AparteChat",
|
|
7357
7360
|
"declaration": {
|
|
7358
|
-
"name": "
|
|
7359
|
-
"module": "
|
|
7361
|
+
"name": "AparteChat",
|
|
7362
|
+
"module": "./chat/index.js"
|
|
7360
7363
|
}
|
|
7361
|
-
}
|
|
7362
|
-
]
|
|
7363
|
-
},
|
|
7364
|
-
{
|
|
7365
|
-
"kind": "javascript-module",
|
|
7366
|
-
"path": "src/client/stream-adapter.ts",
|
|
7367
|
-
"declarations": [
|
|
7364
|
+
},
|
|
7368
7365
|
{
|
|
7369
|
-
"kind": "
|
|
7370
|
-
"name": "
|
|
7371
|
-
"
|
|
7372
|
-
"
|
|
7373
|
-
|
|
7374
|
-
|
|
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."
|
|
7366
|
+
"kind": "js",
|
|
7367
|
+
"name": "AparteChatBubble",
|
|
7368
|
+
"declaration": {
|
|
7369
|
+
"name": "AparteChatBubble",
|
|
7370
|
+
"module": "./bubble/index.js"
|
|
7371
|
+
}
|
|
7376
7372
|
},
|
|
7377
7373
|
{
|
|
7378
|
-
"kind": "
|
|
7379
|
-
"name": "
|
|
7380
|
-
"
|
|
7381
|
-
"
|
|
7382
|
-
|
|
7383
|
-
|
|
7384
|
-
|
|
7385
|
-
|
|
7386
|
-
|
|
7387
|
-
|
|
7388
|
-
|
|
7389
|
-
|
|
7390
|
-
|
|
7391
|
-
|
|
7392
|
-
|
|
7393
|
-
|
|
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
|
+
}
|
|
7468
|
+
},
|
|
7469
|
+
{
|
|
7470
|
+
"kind": "js",
|
|
7471
|
+
"name": "AparteComposerEventMap",
|
|
7472
|
+
"declaration": {
|
|
7473
|
+
"name": "AparteComposerEventMap",
|
|
7474
|
+
"module": "./composer/index.js"
|
|
7475
|
+
}
|
|
7476
|
+
},
|
|
7477
|
+
{
|
|
7478
|
+
"kind": "js",
|
|
7479
|
+
"name": "AparteComposerEventType",
|
|
7480
|
+
"declaration": {
|
|
7481
|
+
"name": "AparteComposerEventType",
|
|
7482
|
+
"module": "./composer/index.js"
|
|
7483
|
+
}
|
|
7484
|
+
},
|
|
7485
|
+
{
|
|
7486
|
+
"kind": "js",
|
|
7487
|
+
"name": "AparteComposerState",
|
|
7488
|
+
"declaration": {
|
|
7489
|
+
"name": "AparteComposerState",
|
|
7490
|
+
"module": "./composer/index.js"
|
|
7491
|
+
}
|
|
7492
|
+
},
|
|
7493
|
+
{
|
|
7494
|
+
"kind": "js",
|
|
7495
|
+
"name": "AparteComposerChangeEventDetail",
|
|
7496
|
+
"declaration": {
|
|
7497
|
+
"name": "AparteComposerChangeEventDetail",
|
|
7498
|
+
"module": "./composer/index.js"
|
|
7499
|
+
}
|
|
7500
|
+
},
|
|
7501
|
+
{
|
|
7502
|
+
"kind": "js",
|
|
7503
|
+
"name": "AparteComposerPanelMode",
|
|
7504
|
+
"declaration": {
|
|
7505
|
+
"name": "AparteComposerPanelMode",
|
|
7506
|
+
"module": "./composer/index.js"
|
|
7507
|
+
}
|
|
7508
|
+
},
|
|
7509
|
+
{
|
|
7510
|
+
"kind": "js",
|
|
7511
|
+
"name": "AparteActionClickEventDetail",
|
|
7512
|
+
"declaration": {
|
|
7513
|
+
"name": "AparteActionClickEventDetail",
|
|
7514
|
+
"module": "./composer/index.js"
|
|
7515
|
+
}
|
|
7516
|
+
},
|
|
7517
|
+
{
|
|
7518
|
+
"kind": "js",
|
|
7519
|
+
"name": "AparteConversationList",
|
|
7520
|
+
"declaration": {
|
|
7521
|
+
"name": "AparteConversationList",
|
|
7522
|
+
"module": "./conversation-list/index.js"
|
|
7523
|
+
}
|
|
7524
|
+
},
|
|
7525
|
+
{
|
|
7526
|
+
"kind": "js",
|
|
7527
|
+
"name": "AparteConversationListItem",
|
|
7528
|
+
"declaration": {
|
|
7529
|
+
"name": "AparteConversationListItem",
|
|
7530
|
+
"module": "./conversation-list/index.js"
|
|
7531
|
+
}
|
|
7394
7532
|
},
|
|
7395
|
-
{
|
|
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": [
|
|
7421
7533
|
{
|
|
7422
7534
|
"kind": "js",
|
|
7423
|
-
"name": "
|
|
7535
|
+
"name": "AparteConversationSelectDetail",
|
|
7424
7536
|
"declaration": {
|
|
7425
|
-
"name": "
|
|
7426
|
-
"module": "
|
|
7537
|
+
"name": "AparteConversationSelectDetail",
|
|
7538
|
+
"module": "./conversation-list/index.js"
|
|
7427
7539
|
}
|
|
7428
7540
|
},
|
|
7429
7541
|
{
|
|
7430
7542
|
"kind": "js",
|
|
7431
|
-
"name": "
|
|
7543
|
+
"name": "AparteConversationDeleteDetail",
|
|
7432
7544
|
"declaration": {
|
|
7433
|
-
"name": "
|
|
7434
|
-
"module": "
|
|
7545
|
+
"name": "AparteConversationDeleteDetail",
|
|
7546
|
+
"module": "./conversation-list/index.js"
|
|
7435
7547
|
}
|
|
7436
7548
|
},
|
|
7437
7549
|
{
|
|
7438
7550
|
"kind": "js",
|
|
7439
|
-
"name": "
|
|
7551
|
+
"name": "AparteConversationArchiveDetail",
|
|
7440
7552
|
"declaration": {
|
|
7441
|
-
"name": "
|
|
7442
|
-
"module": "
|
|
7553
|
+
"name": "AparteConversationArchiveDetail",
|
|
7554
|
+
"module": "./conversation-list/index.js"
|
|
7443
7555
|
}
|
|
7444
|
-
}
|
|
7445
|
-
]
|
|
7446
|
-
},
|
|
7447
|
-
{
|
|
7448
|
-
"kind": "javascript-module",
|
|
7449
|
-
"path": "src/client/wire-history.ts",
|
|
7450
|
-
"declarations": [
|
|
7556
|
+
},
|
|
7451
7557
|
{
|
|
7452
|
-
"kind": "
|
|
7453
|
-
"name": "
|
|
7454
|
-
"
|
|
7455
|
-
"
|
|
7456
|
-
|
|
7457
|
-
|
|
7458
|
-
"description": "What a compaction summary goes out under, so the model reads it as context and not as the user's words."
|
|
7558
|
+
"kind": "js",
|
|
7559
|
+
"name": "AparteConversationPinDetail",
|
|
7560
|
+
"declaration": {
|
|
7561
|
+
"name": "AparteConversationPinDetail",
|
|
7562
|
+
"module": "./conversation-list/index.js"
|
|
7563
|
+
}
|
|
7459
7564
|
},
|
|
7460
7565
|
{
|
|
7461
|
-
"kind": "
|
|
7462
|
-
"name": "
|
|
7463
|
-
"
|
|
7464
|
-
"
|
|
7465
|
-
|
|
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."
|
|
7566
|
+
"kind": "js",
|
|
7567
|
+
"name": "AparteConversationRenameDetail",
|
|
7568
|
+
"declaration": {
|
|
7569
|
+
"name": "AparteConversationRenameDetail",
|
|
7570
|
+
"module": "./conversation-list/index.js"
|
|
7571
|
+
}
|
|
7477
7572
|
},
|
|
7478
7573
|
{
|
|
7479
|
-
"kind": "
|
|
7480
|
-
"name": "
|
|
7481
|
-
"
|
|
7482
|
-
"
|
|
7483
|
-
|
|
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."
|
|
7574
|
+
"kind": "js",
|
|
7575
|
+
"name": "AparteConversationStatus",
|
|
7576
|
+
"declaration": {
|
|
7577
|
+
"name": "AparteConversationStatus",
|
|
7578
|
+
"module": "./conversation-list/index.js"
|
|
7579
|
+
}
|
|
7495
7580
|
},
|
|
7496
7581
|
{
|
|
7497
|
-
"kind": "
|
|
7498
|
-
"name": "
|
|
7499
|
-
"
|
|
7500
|
-
"
|
|
7501
|
-
|
|
7502
|
-
|
|
7503
|
-
"description": "The answer a call that never finished gives the model."
|
|
7582
|
+
"kind": "js",
|
|
7583
|
+
"name": "AparteConversationStatusDetail",
|
|
7584
|
+
"declaration": {
|
|
7585
|
+
"name": "AparteConversationStatusDetail",
|
|
7586
|
+
"module": "./conversation-list/index.js"
|
|
7587
|
+
}
|
|
7504
7588
|
},
|
|
7505
7589
|
{
|
|
7506
|
-
"kind": "
|
|
7507
|
-
"name": "
|
|
7508
|
-
"
|
|
7509
|
-
"
|
|
7510
|
-
|
|
7511
|
-
|
|
7512
|
-
"description": "The answer a call that ran and returned nothing gives the model — not \"stopped\", or it tries again."
|
|
7590
|
+
"kind": "js",
|
|
7591
|
+
"name": "AparteSuggestions",
|
|
7592
|
+
"declaration": {
|
|
7593
|
+
"name": "AparteSuggestions",
|
|
7594
|
+
"module": "./suggestions/index.js"
|
|
7595
|
+
}
|
|
7513
7596
|
},
|
|
7514
7597
|
{
|
|
7515
|
-
"kind": "
|
|
7516
|
-
"name": "
|
|
7517
|
-
"
|
|
7518
|
-
"
|
|
7519
|
-
|
|
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."
|
|
7598
|
+
"kind": "js",
|
|
7599
|
+
"name": "setupSuggestionBlocks",
|
|
7600
|
+
"declaration": {
|
|
7601
|
+
"name": "setupSuggestionBlocks",
|
|
7602
|
+
"module": "./suggestions/index.js"
|
|
7603
|
+
}
|
|
7531
7604
|
},
|
|
7532
7605
|
{
|
|
7533
|
-
"kind": "
|
|
7534
|
-
"name": "
|
|
7535
|
-
"
|
|
7536
|
-
"
|
|
7537
|
-
|
|
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."
|
|
7606
|
+
"kind": "js",
|
|
7607
|
+
"name": "SUGGESTIONS_BLOCK_LANGUAGE",
|
|
7608
|
+
"declaration": {
|
|
7609
|
+
"name": "SUGGESTIONS_BLOCK_LANGUAGE",
|
|
7610
|
+
"module": "./suggestions/index.js"
|
|
7611
|
+
}
|
|
7562
7612
|
},
|
|
7563
7613
|
{
|
|
7564
|
-
"kind": "
|
|
7565
|
-
"name": "
|
|
7566
|
-
"
|
|
7567
|
-
"
|
|
7568
|
-
|
|
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."
|
|
7614
|
+
"kind": "js",
|
|
7615
|
+
"name": "AparteSuggestion",
|
|
7616
|
+
"declaration": {
|
|
7617
|
+
"name": "AparteSuggestion",
|
|
7618
|
+
"module": "./suggestions/index.js"
|
|
7619
|
+
}
|
|
7580
7620
|
},
|
|
7581
7621
|
{
|
|
7582
|
-
"kind": "
|
|
7583
|
-
"name": "
|
|
7584
|
-
"
|
|
7585
|
-
"
|
|
7586
|
-
|
|
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`)."
|
|
7622
|
+
"kind": "js",
|
|
7623
|
+
"name": "AparteSuggestionEventDetail",
|
|
7624
|
+
"declaration": {
|
|
7625
|
+
"name": "AparteSuggestionEventDetail",
|
|
7626
|
+
"module": "./suggestions/index.js"
|
|
7627
|
+
}
|
|
7598
7628
|
},
|
|
7599
7629
|
{
|
|
7600
|
-
"kind": "
|
|
7601
|
-
"name": "
|
|
7602
|
-
"
|
|
7603
|
-
"
|
|
7604
|
-
|
|
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."
|
|
7630
|
+
"kind": "js",
|
|
7631
|
+
"name": "AparteContext",
|
|
7632
|
+
"declaration": {
|
|
7633
|
+
"name": "AparteContext",
|
|
7634
|
+
"module": "./context/index.js"
|
|
7635
|
+
}
|
|
7616
7636
|
},
|
|
7617
|
-
{
|
|
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": "AparteContextLevel",
|
|
7640
7640
|
"declaration": {
|
|
7641
|
-
"name": "
|
|
7642
|
-
"module": "
|
|
7641
|
+
"name": "AparteContextLevel",
|
|
7642
|
+
"module": "./context/index.js"
|
|
7643
7643
|
}
|
|
7644
7644
|
},
|
|
7645
7645
|
{
|
|
7646
7646
|
"kind": "js",
|
|
7647
|
-
"name": "
|
|
7647
|
+
"name": "AparteContextThresholdEventDetail",
|
|
7648
7648
|
"declaration": {
|
|
7649
|
-
"name": "
|
|
7650
|
-
"module": "
|
|
7649
|
+
"name": "AparteContextThresholdEventDetail",
|
|
7650
|
+
"module": "./context/index.js"
|
|
7651
7651
|
}
|
|
7652
7652
|
},
|
|
7653
7653
|
{
|
|
7654
7654
|
"kind": "js",
|
|
7655
|
-
"name": "
|
|
7655
|
+
"name": "AparteScrollRail",
|
|
7656
7656
|
"declaration": {
|
|
7657
|
-
"name": "
|
|
7658
|
-
"module": "
|
|
7657
|
+
"name": "AparteScrollRail",
|
|
7658
|
+
"module": "./scroll-rail/index.js"
|
|
7659
7659
|
}
|
|
7660
7660
|
},
|
|
7661
7661
|
{
|
|
7662
7662
|
"kind": "js",
|
|
7663
|
-
"name": "
|
|
7663
|
+
"name": "AparteScrollRailJumpDetail",
|
|
7664
7664
|
"declaration": {
|
|
7665
|
-
"name": "
|
|
7666
|
-
"module": "
|
|
7665
|
+
"name": "AparteScrollRailJumpDetail",
|
|
7666
|
+
"module": "./scroll-rail/index.js"
|
|
7667
7667
|
}
|
|
7668
7668
|
},
|
|
7669
7669
|
{
|
|
7670
7670
|
"kind": "js",
|
|
7671
|
-
"name": "
|
|
7671
|
+
"name": "AparteScrollRailEvery",
|
|
7672
7672
|
"declaration": {
|
|
7673
|
-
"name": "
|
|
7674
|
-
"module": "
|
|
7673
|
+
"name": "AparteScrollRailEvery",
|
|
7674
|
+
"module": "./scroll-rail/index.js"
|
|
7675
7675
|
}
|
|
7676
7676
|
},
|
|
7677
7677
|
{
|
|
7678
7678
|
"kind": "js",
|
|
7679
|
-
"name": "
|
|
7679
|
+
"name": "AparteSidebar",
|
|
7680
7680
|
"declaration": {
|
|
7681
|
-
"name": "
|
|
7682
|
-
"module": "
|
|
7681
|
+
"name": "AparteSidebar",
|
|
7682
|
+
"module": "./sidebar/index.js"
|
|
7683
7683
|
}
|
|
7684
7684
|
},
|
|
7685
7685
|
{
|
|
7686
7686
|
"kind": "js",
|
|
7687
|
-
"name": "
|
|
7687
|
+
"name": "AparteSidebarToggleDetail",
|
|
7688
7688
|
"declaration": {
|
|
7689
|
-
"name": "
|
|
7690
|
-
"module": "
|
|
7689
|
+
"name": "AparteSidebarToggleDetail",
|
|
7690
|
+
"module": "./sidebar/index.js"
|
|
7691
7691
|
}
|
|
7692
7692
|
},
|
|
7693
7693
|
{
|
|
7694
7694
|
"kind": "js",
|
|
7695
|
-
"name": "
|
|
7695
|
+
"name": "AparteSplit",
|
|
7696
7696
|
"declaration": {
|
|
7697
|
-
"name": "
|
|
7698
|
-
"module": "
|
|
7697
|
+
"name": "AparteSplit",
|
|
7698
|
+
"module": "./split/index.js"
|
|
7699
7699
|
}
|
|
7700
7700
|
},
|
|
7701
7701
|
{
|
|
7702
7702
|
"kind": "js",
|
|
7703
|
-
"name": "
|
|
7703
|
+
"name": "AparteSplitResizeDetail",
|
|
7704
7704
|
"declaration": {
|
|
7705
|
-
"name": "
|
|
7706
|
-
"module": "
|
|
7705
|
+
"name": "AparteSplitResizeDetail",
|
|
7706
|
+
"module": "./split/index.js"
|
|
7707
7707
|
}
|
|
7708
7708
|
},
|
|
7709
7709
|
{
|
|
7710
7710
|
"kind": "js",
|
|
7711
|
-
"name": "
|
|
7711
|
+
"name": "AparteLauncher",
|
|
7712
7712
|
"declaration": {
|
|
7713
|
-
"name": "
|
|
7714
|
-
"module": "
|
|
7713
|
+
"name": "AparteLauncher",
|
|
7714
|
+
"module": "./launcher/index.js"
|
|
7715
7715
|
}
|
|
7716
7716
|
},
|
|
7717
7717
|
{
|
|
7718
7718
|
"kind": "js",
|
|
7719
|
-
"name": "
|
|
7719
|
+
"name": "AparteLauncherToggleDetail",
|
|
7720
7720
|
"declaration": {
|
|
7721
|
-
"name": "
|
|
7722
|
-
"module": "
|
|
7721
|
+
"name": "AparteLauncherToggleDetail",
|
|
7722
|
+
"module": "./launcher/index.js"
|
|
7723
7723
|
}
|
|
7724
7724
|
}
|
|
7725
7725
|
]
|
|
@@ -11479,7 +11479,7 @@
|
|
|
11479
11479
|
"type": {
|
|
11480
11480
|
"text": "AparteLocale"
|
|
11481
11481
|
},
|
|
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\" }",
|
|
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\", launcherHeading: \"Chat\", launcherMaximize: \"Expand the chat\", launcherRestore: \"Shrink the chat\", transcript: \"Transcript\" }",
|
|
11483
11483
|
"description": "Default English Locale (Zero-dependency)\nHardcoded to ensure the core works out-of-the-box."
|
|
11484
11484
|
}
|
|
11485
11485
|
],
|
|
@@ -11507,8 +11507,8 @@
|
|
|
11507
11507
|
{
|
|
11508
11508
|
"kind": "variable",
|
|
11509
11509
|
"name": "RESERVED_ATTRIBUTES",
|
|
11510
|
-
"default": "new Set([ 'data-aparte-chat', 'data-aparte-host', 'data-aparte-theme', 'data-aparte-split-pane', 'data-aparte-launcher-close', 'data-aparte-suggestions', 'data-aparte-bubble', 'data-aparte-empty', 'data-aparte-panel', 'data-aparte-panel-host', 'data-aparte-card-part', 'data-segment-id', 'data-action', ])",
|
|
11511
|
-
"description": "The attributes core READS, as a command or as a boundary, on an element it finds by\nwalking the DOM: a delegated click listener (`data-aparte-dialog-open`, the sidebar\nand split toggles, the launcher's close), the chat that owns a card's `send`\n(`data-aparte-chat`), the instance config a subtree resolves to (`data-aparte-host`),\nthe palette a subtree wears (`data-aparte-theme`), a checkpoint's Restore\n(`data-checkpoint-action`), the row a segment update targets (`data-segment-id`).\n\n`data-*` is otherwise kept (see `copyAttributes`), so these are the exceptions: model\nmarkup is text, and text cannot press a button or move a boundary core drew. The list\nis exact rather than the whole `data-aparte-` prefix on purpose — a Markdown provider\nwrites `data-aparte-open` before the sanitizer runs, and core marks its own state on\nDOM the sanitizer sees again (`data-aparte-highlighted`) — and\n`the-sanitizer-refuses-what-core-reads.test.ts` scans core's source so an attribute\nadded there cannot be forgotten here. Exported for that test; not from the barrel."
|
|
11510
|
+
"default": "new Set([ 'data-aparte-chat', 'data-aparte-host', 'data-aparte-theme', 'data-aparte-split-pane', 'data-aparte-launcher-close', 'data-aparte-launcher-maximize', 'data-aparte-suggestions', 'data-aparte-bubble', 'data-aparte-empty', 'data-aparte-panel', 'data-aparte-panel-host', 'data-aparte-card-part', 'data-segment-id', 'data-action', ])",
|
|
11511
|
+
"description": "The attributes core READS, as a command or as a boundary, on an element it finds by\nwalking the DOM: a delegated click listener (`data-aparte-dialog-open`, the sidebar\nand split toggles, the launcher's close and maximize), the chat that owns a card's `send`\n(`data-aparte-chat`), the instance config a subtree resolves to (`data-aparte-host`),\nthe palette a subtree wears (`data-aparte-theme`), a checkpoint's Restore\n(`data-checkpoint-action`), the row a segment update targets (`data-segment-id`).\n\n`data-*` is otherwise kept (see `copyAttributes`), so these are the exceptions: model\nmarkup is text, and text cannot press a button or move a boundary core drew. The list\nis exact rather than the whole `data-aparte-` prefix on purpose — a Markdown provider\nwrites `data-aparte-open` before the sanitizer runs, and core marks its own state on\nDOM the sanitizer sees again (`data-aparte-highlighted`) — and\n`the-sanitizer-refuses-what-core-reads.test.ts` scans core's source so an attribute\nadded there cannot be forgotten here. Exported for that test; not from the barrel."
|
|
11512
11512
|
},
|
|
11513
11513
|
{
|
|
11514
11514
|
"kind": "variable",
|
|
@@ -15668,6 +15668,18 @@
|
|
|
15668
15668
|
"default": "`<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M5.5 14.5 12 8l6.5 6.5\"/></svg>`",
|
|
15669
15669
|
"description": "Collapse/show less icon"
|
|
15670
15670
|
},
|
|
15671
|
+
{
|
|
15672
|
+
"kind": "variable",
|
|
15673
|
+
"name": "maximizeIcon",
|
|
15674
|
+
"default": "`<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M14 4.5h5.5V10\"/><path d=\"M10 19.5H4.5V14\"/><path d=\"m19.5 4.5-6 6\"/><path d=\"m4.5 19.5 6-6\"/></svg>`",
|
|
15675
|
+
"description": "Maximize — two corners pulled outward, along the diagonal."
|
|
15676
|
+
},
|
|
15677
|
+
{
|
|
15678
|
+
"kind": "variable",
|
|
15679
|
+
"name": "minimizeIcon",
|
|
15680
|
+
"default": "`<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M19.5 10H14V4.5\"/><path d=\"M4.5 14H10v5.5\"/><path d=\"m14 10 5.5-5.5\"/><path d=\"m10 14-5.5 5.5\"/></svg>`",
|
|
15681
|
+
"description": "Minimize — the same two corners pushed back in, the inverse of `maximize`."
|
|
15682
|
+
},
|
|
15671
15683
|
{
|
|
15672
15684
|
"kind": "variable",
|
|
15673
15685
|
"name": "terminalIcon",
|
|
@@ -15822,9 +15834,9 @@
|
|
|
15822
15834
|
"kind": "variable",
|
|
15823
15835
|
"name": "APARTE_ICON_GLYPHS",
|
|
15824
15836
|
"type": {
|
|
15825
|
-
"text": "{\n copy: copyIcon,\n check: checkIcon,\n send: sendIcon,\n loading: loadingIcon,\n error: errorIcon,\n expand: expandIcon,\n collapse: collapseIcon,\n terminal: terminalIcon,\n paperclip: paperclipIcon,\n image: imageIcon,\n file: fileIcon,\n scrollDown: scrollDownIcon,\n retry: retryIcon,\n edit: editIcon,\n thumbUp: thumbUpIcon,\n thumbDown: thumbDownIcon,\n prevBranch: prevBranchIcon,\n nextBranch: nextBranchIcon,\n tool: toolIcon,\n close: closeIcon,\n stop: stopIcon,\n pause: pauseIcon,\n info: infoIcon,\n archive: archiveIcon,\n unarchive: unarchiveIcon,\n download: downloadIcon,\n more: moreIcon,\n pin: pinIcon,\n trash: trashIcon,\n menu: menuIcon,\n alertTriangle: alertTriangleIcon,\n messageSquare: messageSquareIcon,\n}"
|
|
15837
|
+
"text": "{\n copy: copyIcon,\n check: checkIcon,\n send: sendIcon,\n loading: loadingIcon,\n error: errorIcon,\n expand: expandIcon,\n collapse: collapseIcon,\n maximize: maximizeIcon,\n minimize: minimizeIcon,\n terminal: terminalIcon,\n paperclip: paperclipIcon,\n image: imageIcon,\n file: fileIcon,\n scrollDown: scrollDownIcon,\n retry: retryIcon,\n edit: editIcon,\n thumbUp: thumbUpIcon,\n thumbDown: thumbDownIcon,\n prevBranch: prevBranchIcon,\n nextBranch: nextBranchIcon,\n tool: toolIcon,\n close: closeIcon,\n stop: stopIcon,\n pause: pauseIcon,\n info: infoIcon,\n archive: archiveIcon,\n unarchive: unarchiveIcon,\n download: downloadIcon,\n more: moreIcon,\n pin: pinIcon,\n trash: trashIcon,\n menu: menuIcon,\n alertTriangle: alertTriangleIcon,\n messageSquare: messageSquareIcon,\n}"
|
|
15826
15838
|
},
|
|
15827
|
-
"default": "{ copy: copyIcon, check: checkIcon, send: sendIcon, loading: loadingIcon, error: errorIcon, expand: expandIcon, collapse: collapseIcon, terminal: terminalIcon, paperclip: paperclipIcon, image: imageIcon, file: fileIcon, scrollDown: scrollDownIcon, retry: retryIcon, edit: editIcon, thumbUp: thumbUpIcon, thumbDown: thumbDownIcon, prevBranch: prevBranchIcon, nextBranch: nextBranchIcon, tool: toolIcon, close: closeIcon, stop: stopIcon, pause: pauseIcon, info: infoIcon, archive: archiveIcon, unarchive: unarchiveIcon, download: downloadIcon, more: moreIcon, pin: pinIcon, trash: trashIcon, menu: menuIcon, alertTriangle: alertTriangleIcon, messageSquare: messageSquareIcon, }"
|
|
15839
|
+
"default": "{ copy: copyIcon, check: checkIcon, send: sendIcon, loading: loadingIcon, error: errorIcon, expand: expandIcon, collapse: collapseIcon, maximize: maximizeIcon, minimize: minimizeIcon, terminal: terminalIcon, paperclip: paperclipIcon, image: imageIcon, file: fileIcon, scrollDown: scrollDownIcon, retry: retryIcon, edit: editIcon, thumbUp: thumbUpIcon, thumbDown: thumbDownIcon, prevBranch: prevBranchIcon, nextBranch: nextBranchIcon, tool: toolIcon, close: closeIcon, stop: stopIcon, pause: pauseIcon, info: infoIcon, archive: archiveIcon, unarchive: unarchiveIcon, download: downloadIcon, more: moreIcon, pin: pinIcon, trash: trashIcon, menu: menuIcon, alertTriangle: alertTriangleIcon, messageSquare: messageSquareIcon, }"
|
|
15828
15840
|
}
|
|
15829
15841
|
],
|
|
15830
15842
|
"exports": [
|
|
@@ -15884,6 +15896,22 @@
|
|
|
15884
15896
|
"module": "src/icons/glyphs.ts"
|
|
15885
15897
|
}
|
|
15886
15898
|
},
|
|
15899
|
+
{
|
|
15900
|
+
"kind": "js",
|
|
15901
|
+
"name": "maximizeIcon",
|
|
15902
|
+
"declaration": {
|
|
15903
|
+
"name": "maximizeIcon",
|
|
15904
|
+
"module": "src/icons/glyphs.ts"
|
|
15905
|
+
}
|
|
15906
|
+
},
|
|
15907
|
+
{
|
|
15908
|
+
"kind": "js",
|
|
15909
|
+
"name": "minimizeIcon",
|
|
15910
|
+
"declaration": {
|
|
15911
|
+
"name": "minimizeIcon",
|
|
15912
|
+
"module": "src/icons/glyphs.ts"
|
|
15913
|
+
}
|
|
15914
|
+
},
|
|
15887
15915
|
{
|
|
15888
15916
|
"kind": "js",
|
|
15889
15917
|
"name": "terminalIcon",
|
|
@@ -16117,6 +16145,63 @@
|
|
|
16117
16145
|
}
|
|
16118
16146
|
]
|
|
16119
16147
|
},
|
|
16148
|
+
{
|
|
16149
|
+
"kind": "javascript-module",
|
|
16150
|
+
"path": "src/interop/default-on-attributes.ts",
|
|
16151
|
+
"declarations": [
|
|
16152
|
+
{
|
|
16153
|
+
"kind": "variable",
|
|
16154
|
+
"name": "APARTE_DEFAULT_ON_ATTRIBUTES",
|
|
16155
|
+
"type": {
|
|
16156
|
+
"text": "Readonly<Record<string, readonly string[]>>"
|
|
16157
|
+
},
|
|
16158
|
+
"default": "{ 'aparte-composer-add-attachment': ['multiple'], 'aparte-composer': ['submit-on-enter'], 'aparte-launcher': ['header'], }",
|
|
16159
|
+
"description": "The boolean attributes whose default is ON, turned off only by the string `\"false\"`.\n\nThe element reads them as `getAttribute(name) !== 'false'`, so an ABSENT attribute is ON,\nand a prop bag's `false` that removes it — what a presence attribute wants — turns the\ncontrol on instead. `applyElementProps` reads this list to write `\"false\"` there, which is\nthe path every wrapper's `AparteUi` takes. The Angular directives are generated from the\nsame knowledge (`threeStateBooleans` in `element-bindings.config.mjs`), and\n`default-on-attributes.test.ts` keeps the two lists equal: a runtime list cannot be read from\nthe generated registry, which is built, not committed.\n\nInternal: not exported from the package barrel."
|
|
16160
|
+
},
|
|
16161
|
+
{
|
|
16162
|
+
"kind": "function",
|
|
16163
|
+
"name": "isDefaultOn",
|
|
16164
|
+
"return": {
|
|
16165
|
+
"type": {
|
|
16166
|
+
"text": "boolean"
|
|
16167
|
+
}
|
|
16168
|
+
},
|
|
16169
|
+
"parameters": [
|
|
16170
|
+
{
|
|
16171
|
+
"name": "el",
|
|
16172
|
+
"type": {
|
|
16173
|
+
"text": "Element"
|
|
16174
|
+
}
|
|
16175
|
+
},
|
|
16176
|
+
{
|
|
16177
|
+
"name": "name",
|
|
16178
|
+
"type": {
|
|
16179
|
+
"text": "string"
|
|
16180
|
+
}
|
|
16181
|
+
}
|
|
16182
|
+
],
|
|
16183
|
+
"description": "Whether `name` is ON by default on `el`, so its OFF is the string `\"false\"`."
|
|
16184
|
+
}
|
|
16185
|
+
],
|
|
16186
|
+
"exports": [
|
|
16187
|
+
{
|
|
16188
|
+
"kind": "js",
|
|
16189
|
+
"name": "APARTE_DEFAULT_ON_ATTRIBUTES",
|
|
16190
|
+
"declaration": {
|
|
16191
|
+
"name": "APARTE_DEFAULT_ON_ATTRIBUTES",
|
|
16192
|
+
"module": "src/interop/default-on-attributes.ts"
|
|
16193
|
+
}
|
|
16194
|
+
},
|
|
16195
|
+
{
|
|
16196
|
+
"kind": "js",
|
|
16197
|
+
"name": "isDefaultOn",
|
|
16198
|
+
"declaration": {
|
|
16199
|
+
"name": "isDefaultOn",
|
|
16200
|
+
"module": "src/interop/default-on-attributes.ts"
|
|
16201
|
+
}
|
|
16202
|
+
}
|
|
16203
|
+
]
|
|
16204
|
+
},
|
|
16120
16205
|
{
|
|
16121
16206
|
"kind": "javascript-module",
|
|
16122
16207
|
"path": "src/interop/defer-hydration.ts",
|
|
@@ -29479,7 +29564,7 @@
|
|
|
29479
29564
|
"declarations": [
|
|
29480
29565
|
{
|
|
29481
29566
|
"kind": "class",
|
|
29482
|
-
"description": "A chat that floats in a corner of the page — the support widget every product site has,\nas an element. A round button sits at the bottom of the window, on the inline-end side;\na click opens the chat above it as a card, and a second click, Escape or any control\nmarked `data-aparte-launcher-close` inside closes it again.\n\nChildren are yours: put the chat in it — an `<aparte-chat>`, or your own card with a\nheader above one. The element adds its button after them and shows them only while it is\nopen, so a closed launcher keeps the chat mounted (the conversation and the client stay)\nbut out of the tab order and the accessibility tree. Nothing is stored: listen to\n`aparte-launcher-toggle` to remember the state.\n\n**On a phone.** Under `breakpoint` (30rem of window, wide or high, unless you set a width) the open chat\nfills the window as a sheet, Tab stays inside it
|
|
29567
|
+
"description": "A chat that floats in a corner of the page — the support widget every product site has,\nas an element. A round button sits at the bottom of the window, on the inline-end side;\na click opens the chat above it as a card, and a second click, Escape or any control\nmarked `data-aparte-launcher-close` inside closes it again.\n\nChildren are yours: put the chat in it — an `<aparte-chat>`, or your own card with a\nheader above one. The element adds its button after them and shows them only while it is\nopen, so a closed launcher keeps the chat mounted (the conversation and the client stay)\nbut out of the tab order and the accessibility tree. Nothing is stored: listen to\n`aparte-launcher-toggle` to remember the state.\n\n**The header.** Over a card that has none, the element draws one: the assistant's avatar,\nas the config's avatar provider draws it in the messages (`setAvatarProvider`) and none\nwithout one, a title (`heading`, else the button's `label`, else the locale's\n`launcherHeading`), a line under it (`subheading`), and a ✕ that\ncloses the chat. A card that brings its own keeps it, and the element draws none: a\n`<header>` at the card's top level. `header=\"false\"` takes it away in any case. It is a `div` wearing the\n`aparte-app-header` recipe rather than a `<header>`, which outside a section is the\npage's banner landmark.\n\n**Maximize.** `maximizable` adds a button to that header which makes the open chat fill\nthe window — the sheet a phone gets, on any window — and brings the card back; so does\nEscape, before a second Escape closes the chat.\n`maximizable=\"panel\"` keeps the page in view instead: maximized, the chat is a panel the\nwindow's height along its inline-end edge, `--aparte-launcher-panel-width` wide. The\nbutton's name changes with the state, the way a window's Maximize turns into Restore: the\nlocale's `launcherMaximize`, then `launcherRestore`. In a header of your own, mark any\ncontrol `data-aparte-launcher-maximize`: it toggles the same state, and the element keeps\nits `aria-pressed`. The state is `maximized`, reflected and settable; `covers` says whether\nthe open chat covers the whole window, and `aparte-launcher-toggle` reports both. A sheet\nunder the breakpoint already fills the window, so it hides every maximize control.\n\n**On a phone.** Under `breakpoint` (30rem of window, wide or high, unless you set a width) the open chat\nfills the window as a sheet, under its header, and Tab stays inside it. The header's ✕\ncloses it; without a close control in the card (`header=\"false\"`), the button moves to\nthe top corner to close it. The element reflects `data-sheet` while the window is that\nnarrow.\n\n**The button** shows a speech bubble, or the bubble and your `label` (`label=\"Help\"`)\nas a pill; it is named by the locale's `launcherOpen`/`launcherClose` when it shows no\ntext. Its two icons are the `launcherOpen` and `launcherClose` icons when the config holds\nthem (`registerIcons`), else `messageSquare` and `close` — so a theme redraws this button\nwithout redrawing every close button in the chat. Opening with the button hands the focus to the composer, or to the first control of\nyour card; `show()` and `open` set from a script move no focus, so a page that restores the\nstate on load does not steal it. Closing gives the focus back to the button when it was\ninside.\n\n**Server rendering.** The button and the header are drawn when the element connects,\nwhich on a server-rendered page is before the framework hydrates, and hydration removes\nwhat it did not render. Put `defer-hydration` on the launcher in the server's HTML and call\n`releaseDeferredHydration` once your framework has hydrated, so the element draws itself\nthen; if something takes the button or the header out anyway, the element puts it back.",
|
|
29483
29568
|
"name": "AparteLauncher",
|
|
29484
29569
|
"cssProperties": [
|
|
29485
29570
|
{
|
|
@@ -29488,10 +29573,20 @@
|
|
|
29488
29573
|
"default": "23.75rem"
|
|
29489
29574
|
},
|
|
29490
29575
|
{
|
|
29491
|
-
"description": "Height of the open card, shortened to fit a short window.",
|
|
29576
|
+
"description": "Height of the open card, the element's header included, shortened to fit a short window.",
|
|
29492
29577
|
"name": "--aparte-launcher-height",
|
|
29493
29578
|
"default": "37.5rem"
|
|
29494
29579
|
},
|
|
29580
|
+
{
|
|
29581
|
+
"description": "Width of the maximized chat with `maximizable=\"panel\"`, never wider than the window.",
|
|
29582
|
+
"name": "--aparte-launcher-panel-width",
|
|
29583
|
+
"default": "36rem"
|
|
29584
|
+
},
|
|
29585
|
+
{
|
|
29586
|
+
"description": "Least height of the element's header, which grows with what a theme puts in it (a larger title, more padding); the card's height includes it.",
|
|
29587
|
+
"name": "--aparte-launcher-header-height",
|
|
29588
|
+
"default": "3.5rem"
|
|
29589
|
+
},
|
|
29495
29590
|
{
|
|
29496
29591
|
"description": "Distance from the window's edges to the button and the card.",
|
|
29497
29592
|
"name": "--aparte-launcher-offset",
|
|
@@ -29518,6 +29613,80 @@
|
|
|
29518
29613
|
"privacy": "private",
|
|
29519
29614
|
"default": "null"
|
|
29520
29615
|
},
|
|
29616
|
+
{
|
|
29617
|
+
"kind": "field",
|
|
29618
|
+
"name": "_header",
|
|
29619
|
+
"type": {
|
|
29620
|
+
"text": "HTMLElement | null"
|
|
29621
|
+
},
|
|
29622
|
+
"privacy": "private",
|
|
29623
|
+
"default": "null",
|
|
29624
|
+
"description": "The element's header and the parts of it a render updates. Built once and updated in\nplace, never redrawn: the maximize button is what the person just pressed, and a new\nnode would take the focus out from under them."
|
|
29625
|
+
},
|
|
29626
|
+
{
|
|
29627
|
+
"kind": "field",
|
|
29628
|
+
"name": "_avatar",
|
|
29629
|
+
"type": {
|
|
29630
|
+
"text": "HTMLElement | null"
|
|
29631
|
+
},
|
|
29632
|
+
"privacy": "private",
|
|
29633
|
+
"default": "null"
|
|
29634
|
+
},
|
|
29635
|
+
{
|
|
29636
|
+
"kind": "field",
|
|
29637
|
+
"name": "_avatarDrawnBy",
|
|
29638
|
+
"type": {
|
|
29639
|
+
"text": "AparteAvatarProvider | null"
|
|
29640
|
+
},
|
|
29641
|
+
"privacy": "private",
|
|
29642
|
+
"default": "null",
|
|
29643
|
+
"description": "The provider that drew the header's avatar, and what it returned to undo it."
|
|
29644
|
+
},
|
|
29645
|
+
{
|
|
29646
|
+
"kind": "field",
|
|
29647
|
+
"name": "_avatarCleanup",
|
|
29648
|
+
"type": {
|
|
29649
|
+
"text": "(() => void) | null"
|
|
29650
|
+
},
|
|
29651
|
+
"privacy": "private",
|
|
29652
|
+
"default": "null"
|
|
29653
|
+
},
|
|
29654
|
+
{
|
|
29655
|
+
"kind": "field",
|
|
29656
|
+
"name": "_title",
|
|
29657
|
+
"type": {
|
|
29658
|
+
"text": "HTMLElement | null"
|
|
29659
|
+
},
|
|
29660
|
+
"privacy": "private",
|
|
29661
|
+
"default": "null"
|
|
29662
|
+
},
|
|
29663
|
+
{
|
|
29664
|
+
"kind": "field",
|
|
29665
|
+
"name": "_subtitle",
|
|
29666
|
+
"type": {
|
|
29667
|
+
"text": "HTMLElement | null"
|
|
29668
|
+
},
|
|
29669
|
+
"privacy": "private",
|
|
29670
|
+
"default": "null"
|
|
29671
|
+
},
|
|
29672
|
+
{
|
|
29673
|
+
"kind": "field",
|
|
29674
|
+
"name": "_maximize",
|
|
29675
|
+
"type": {
|
|
29676
|
+
"text": "HTMLButtonElement | null"
|
|
29677
|
+
},
|
|
29678
|
+
"privacy": "private",
|
|
29679
|
+
"default": "null"
|
|
29680
|
+
},
|
|
29681
|
+
{
|
|
29682
|
+
"kind": "field",
|
|
29683
|
+
"name": "_closeControl",
|
|
29684
|
+
"type": {
|
|
29685
|
+
"text": "HTMLButtonElement | null"
|
|
29686
|
+
},
|
|
29687
|
+
"privacy": "private",
|
|
29688
|
+
"default": "null"
|
|
29689
|
+
},
|
|
29521
29690
|
{
|
|
29522
29691
|
"kind": "field",
|
|
29523
29692
|
"name": "_childWatch",
|
|
@@ -29544,44 +29713,79 @@
|
|
|
29544
29713
|
"type": {
|
|
29545
29714
|
"text": "MediaQueryList | null"
|
|
29546
29715
|
},
|
|
29547
|
-
"privacy": "private",
|
|
29548
|
-
"default": "null"
|
|
29716
|
+
"privacy": "private",
|
|
29717
|
+
"default": "null"
|
|
29718
|
+
},
|
|
29719
|
+
{
|
|
29720
|
+
"kind": "field",
|
|
29721
|
+
"name": "_lastOpen",
|
|
29722
|
+
"type": {
|
|
29723
|
+
"text": "boolean | null"
|
|
29724
|
+
},
|
|
29725
|
+
"privacy": "private",
|
|
29726
|
+
"default": "null"
|
|
29727
|
+
},
|
|
29728
|
+
{
|
|
29729
|
+
"kind": "field",
|
|
29730
|
+
"name": "_ready",
|
|
29731
|
+
"type": {
|
|
29732
|
+
"text": "boolean"
|
|
29733
|
+
},
|
|
29734
|
+
"privacy": "private",
|
|
29735
|
+
"default": "false",
|
|
29736
|
+
"description": "`connectedCallback` has run. During an UPGRADE `attributeChangedCallback` fires for\nevery authored attribute before it — `<aparte-launcher open>` server-rendered and\nupgraded when the module loads — and announcing a toggle there tells the host its\nchat just opened when all that happened is that the markup was read."
|
|
29737
|
+
},
|
|
29738
|
+
{
|
|
29739
|
+
"kind": "field",
|
|
29740
|
+
"name": "open",
|
|
29741
|
+
"type": {
|
|
29742
|
+
"text": "boolean"
|
|
29743
|
+
},
|
|
29744
|
+
"description": "The chat is open."
|
|
29745
|
+
},
|
|
29746
|
+
{
|
|
29747
|
+
"kind": "field",
|
|
29748
|
+
"name": "sheet",
|
|
29749
|
+
"type": {
|
|
29750
|
+
"text": "boolean"
|
|
29751
|
+
},
|
|
29752
|
+
"description": "True while the window is under the breakpoint, where the open chat fills it.",
|
|
29753
|
+
"readonly": true
|
|
29549
29754
|
},
|
|
29550
29755
|
{
|
|
29551
29756
|
"kind": "field",
|
|
29552
|
-
"name": "
|
|
29757
|
+
"name": "maximized",
|
|
29553
29758
|
"type": {
|
|
29554
|
-
"text": "boolean
|
|
29759
|
+
"text": "boolean"
|
|
29555
29760
|
},
|
|
29556
|
-
"
|
|
29557
|
-
"default": "null"
|
|
29761
|
+
"description": "The open chat is maximized: the whole window, or a panel along its edge with `maximizable=\"panel\"`."
|
|
29558
29762
|
},
|
|
29559
29763
|
{
|
|
29560
29764
|
"kind": "field",
|
|
29561
|
-
"name": "
|
|
29765
|
+
"name": "covers",
|
|
29562
29766
|
"type": {
|
|
29563
29767
|
"text": "boolean"
|
|
29564
29768
|
},
|
|
29565
|
-
"
|
|
29566
|
-
"
|
|
29567
|
-
"description": "`connectedCallback` has run. During an UPGRADE `attributeChangedCallback` fires for\nevery authored attribute before it — `<aparte-launcher open>` server-rendered and\nupgraded when the module loads — and announcing a toggle there tells the host its\nchat just opened when all that happened is that the markup was read."
|
|
29769
|
+
"description": "The open chat covers the whole window: a sheet under the breakpoint, or maximized\nwithout `maximizable=\"panel\"`. What a page reads to take itself out of reach — the\nlauncher keeps Tab inside it meanwhile, and does not own the page.",
|
|
29770
|
+
"readonly": true
|
|
29568
29771
|
},
|
|
29569
29772
|
{
|
|
29570
29773
|
"kind": "field",
|
|
29571
|
-
"name": "
|
|
29774
|
+
"name": "_panel",
|
|
29572
29775
|
"type": {
|
|
29573
29776
|
"text": "boolean"
|
|
29574
29777
|
},
|
|
29575
|
-
"
|
|
29778
|
+
"privacy": "private",
|
|
29779
|
+
"description": "Maximized, the chat is a panel along the window's edge rather than the whole window.",
|
|
29780
|
+
"readonly": true
|
|
29576
29781
|
},
|
|
29577
29782
|
{
|
|
29578
29783
|
"kind": "field",
|
|
29579
|
-
"name": "
|
|
29784
|
+
"name": "header",
|
|
29580
29785
|
"type": {
|
|
29581
29786
|
"text": "boolean"
|
|
29582
29787
|
},
|
|
29583
|
-
"description": "
|
|
29584
|
-
"readonly": true
|
|
29788
|
+
"description": "The element draws its header over a card that has none. A property as well as the\nattribute because the attribute's OFF is a value, `\"false\"`, and a framework handed\n`header={false}` removes a boolean attribute instead — which here means ON."
|
|
29585
29789
|
},
|
|
29586
29790
|
{
|
|
29587
29791
|
"kind": "method",
|
|
@@ -29623,6 +29827,26 @@
|
|
|
29623
29827
|
},
|
|
29624
29828
|
"description": "Open the chat when it is closed, close it when it is open."
|
|
29625
29829
|
},
|
|
29830
|
+
{
|
|
29831
|
+
"kind": "method",
|
|
29832
|
+
"name": "maximize",
|
|
29833
|
+
"return": {
|
|
29834
|
+
"type": {
|
|
29835
|
+
"text": "void"
|
|
29836
|
+
}
|
|
29837
|
+
},
|
|
29838
|
+
"description": "Maximize the chat: the whole window, or a panel along its edge with\n`maximizable=\"panel\"`. Kept while the chat is closed, so it opens maximized."
|
|
29839
|
+
},
|
|
29840
|
+
{
|
|
29841
|
+
"kind": "method",
|
|
29842
|
+
"name": "restore",
|
|
29843
|
+
"return": {
|
|
29844
|
+
"type": {
|
|
29845
|
+
"text": "void"
|
|
29846
|
+
}
|
|
29847
|
+
},
|
|
29848
|
+
"description": "Bring the chat back to its card."
|
|
29849
|
+
},
|
|
29626
29850
|
{
|
|
29627
29851
|
"kind": "field",
|
|
29628
29852
|
"name": "_onButtonClick",
|
|
@@ -29634,6 +29858,28 @@
|
|
|
29634
29858
|
"name": "_onConfigChange",
|
|
29635
29859
|
"privacy": "private"
|
|
29636
29860
|
},
|
|
29861
|
+
{
|
|
29862
|
+
"kind": "method",
|
|
29863
|
+
"name": "_render",
|
|
29864
|
+
"privacy": "private",
|
|
29865
|
+
"return": {
|
|
29866
|
+
"type": {
|
|
29867
|
+
"text": "void"
|
|
29868
|
+
}
|
|
29869
|
+
},
|
|
29870
|
+
"description": "Everything the element draws, for the state it is in and the config it answers to."
|
|
29871
|
+
},
|
|
29872
|
+
{
|
|
29873
|
+
"kind": "method",
|
|
29874
|
+
"name": "_onChildren",
|
|
29875
|
+
"privacy": "private",
|
|
29876
|
+
"return": {
|
|
29877
|
+
"type": {
|
|
29878
|
+
"text": "void"
|
|
29879
|
+
}
|
|
29880
|
+
},
|
|
29881
|
+
"description": "The children changed: a framework reconciled them, hydration took out what it did not\nrender, a card arrived late. The button and the header go back if they were taken out,\nand a card that now brings a header of its own is no longer given a second one."
|
|
29882
|
+
},
|
|
29637
29883
|
{
|
|
29638
29884
|
"kind": "method",
|
|
29639
29885
|
"name": "_config",
|
|
@@ -29665,8 +29911,199 @@
|
|
|
29665
29911
|
"text": "void"
|
|
29666
29912
|
}
|
|
29667
29913
|
},
|
|
29914
|
+
"parameters": [
|
|
29915
|
+
{
|
|
29916
|
+
"name": "config",
|
|
29917
|
+
"type": {
|
|
29918
|
+
"text": "AparteConfig"
|
|
29919
|
+
}
|
|
29920
|
+
}
|
|
29921
|
+
],
|
|
29668
29922
|
"description": "The button, for the state it is in: the bubble (and the label, as a pill) while\nclosed, a close glyph while open. Its name comes from the locale when it shows no\ntext, and from that text when it does — a visible label the name did not contain\nis what speech users cannot say to press it. `aria-expanded` is the disclosure's whole\ncontract: there is no `aria-controls`, since the one element it could name without\nwriting an id on the host's card is the launcher itself, the button's own ancestor."
|
|
29669
29923
|
},
|
|
29924
|
+
{
|
|
29925
|
+
"kind": "method",
|
|
29926
|
+
"name": "_glyph",
|
|
29927
|
+
"privacy": "private",
|
|
29928
|
+
"static": true,
|
|
29929
|
+
"return": {
|
|
29930
|
+
"type": {
|
|
29931
|
+
"text": "HTMLElement"
|
|
29932
|
+
}
|
|
29933
|
+
},
|
|
29934
|
+
"parameters": [
|
|
29935
|
+
{
|
|
29936
|
+
"name": "svg",
|
|
29937
|
+
"type": {
|
|
29938
|
+
"text": "string"
|
|
29939
|
+
}
|
|
29940
|
+
}
|
|
29941
|
+
],
|
|
29942
|
+
"description": "A glyph, out of the accessibility tree: what holds it is named by its label."
|
|
29943
|
+
},
|
|
29944
|
+
{
|
|
29945
|
+
"kind": "method",
|
|
29946
|
+
"name": "_cardHasHeader",
|
|
29947
|
+
"privacy": "private",
|
|
29948
|
+
"return": {
|
|
29949
|
+
"type": {
|
|
29950
|
+
"text": "boolean"
|
|
29951
|
+
}
|
|
29952
|
+
},
|
|
29953
|
+
"description": "A card that brings its own header: a `<header>` at its top level — how every card in\nthis repository with a header of its own is written, so they keep theirs and are not\ngiven a second. A close control alone is not one: an \"End chat\" in a card's footer is a\nclose control too, and took the header away when it counted."
|
|
29954
|
+
},
|
|
29955
|
+
{
|
|
29956
|
+
"kind": "method",
|
|
29957
|
+
"name": "_touchesParts",
|
|
29958
|
+
"privacy": "private",
|
|
29959
|
+
"static": true,
|
|
29960
|
+
"return": {
|
|
29961
|
+
"type": {
|
|
29962
|
+
"text": "boolean"
|
|
29963
|
+
}
|
|
29964
|
+
},
|
|
29965
|
+
"parameters": [
|
|
29966
|
+
{
|
|
29967
|
+
"name": "record",
|
|
29968
|
+
"type": {
|
|
29969
|
+
"text": "MutationRecord"
|
|
29970
|
+
}
|
|
29971
|
+
}
|
|
29972
|
+
],
|
|
29973
|
+
"description": "A change deeper in the card that the element answers: a header, or a maximize\ncontrol, arriving or leaving — a framework rendering a card's header after the card,\na conditional control. A streamed reply adds text and spans, so it calls for nothing."
|
|
29974
|
+
},
|
|
29975
|
+
{
|
|
29976
|
+
"kind": "method",
|
|
29977
|
+
"name": "_headerButton",
|
|
29978
|
+
"privacy": "private",
|
|
29979
|
+
"static": true,
|
|
29980
|
+
"return": {
|
|
29981
|
+
"type": {
|
|
29982
|
+
"text": "HTMLButtonElement"
|
|
29983
|
+
}
|
|
29984
|
+
},
|
|
29985
|
+
"parameters": [
|
|
29986
|
+
{
|
|
29987
|
+
"name": "part",
|
|
29988
|
+
"type": {
|
|
29989
|
+
"text": "string"
|
|
29990
|
+
}
|
|
29991
|
+
}
|
|
29992
|
+
],
|
|
29993
|
+
"description": "An icon-only control of the header: the recipe's ghost icon button."
|
|
29994
|
+
},
|
|
29995
|
+
{
|
|
29996
|
+
"kind": "method",
|
|
29997
|
+
"name": "_name",
|
|
29998
|
+
"privacy": "private",
|
|
29999
|
+
"static": true,
|
|
30000
|
+
"return": {
|
|
30001
|
+
"type": {
|
|
30002
|
+
"text": "void"
|
|
30003
|
+
}
|
|
30004
|
+
},
|
|
30005
|
+
"parameters": [
|
|
30006
|
+
{
|
|
30007
|
+
"name": "button",
|
|
30008
|
+
"type": {
|
|
30009
|
+
"text": "HTMLElement"
|
|
30010
|
+
}
|
|
30011
|
+
},
|
|
30012
|
+
{
|
|
30013
|
+
"name": "name",
|
|
30014
|
+
"type": {
|
|
30015
|
+
"text": "string"
|
|
30016
|
+
}
|
|
30017
|
+
},
|
|
30018
|
+
{
|
|
30019
|
+
"name": "svg",
|
|
30020
|
+
"type": {
|
|
30021
|
+
"text": "string"
|
|
30022
|
+
}
|
|
30023
|
+
}
|
|
30024
|
+
],
|
|
30025
|
+
"description": "A control's name, spoken and shown on hover: an icon alone says nothing to a pointer."
|
|
30026
|
+
},
|
|
30027
|
+
{
|
|
30028
|
+
"kind": "method",
|
|
30029
|
+
"name": "_buildHeader",
|
|
30030
|
+
"privacy": "private",
|
|
30031
|
+
"return": {
|
|
30032
|
+
"type": {
|
|
30033
|
+
"text": "HTMLElement"
|
|
30034
|
+
}
|
|
30035
|
+
}
|
|
30036
|
+
},
|
|
30037
|
+
{
|
|
30038
|
+
"kind": "method",
|
|
30039
|
+
"name": "_renderHeader",
|
|
30040
|
+
"privacy": "private",
|
|
30041
|
+
"return": {
|
|
30042
|
+
"type": {
|
|
30043
|
+
"text": "void"
|
|
30044
|
+
}
|
|
30045
|
+
},
|
|
30046
|
+
"parameters": [
|
|
30047
|
+
{
|
|
30048
|
+
"name": "config",
|
|
30049
|
+
"type": {
|
|
30050
|
+
"text": "AparteConfig"
|
|
30051
|
+
}
|
|
30052
|
+
}
|
|
30053
|
+
],
|
|
30054
|
+
"description": "The header, when the element draws one: the title, the line under it, the maximize\nbutton for its state, the ✕. It goes first among the children, and the stylesheet\njoins it to the card under it."
|
|
30055
|
+
},
|
|
30056
|
+
{
|
|
30057
|
+
"kind": "method",
|
|
30058
|
+
"name": "_drawAvatar",
|
|
30059
|
+
"privacy": "private",
|
|
30060
|
+
"return": {
|
|
30061
|
+
"type": {
|
|
30062
|
+
"text": "void"
|
|
30063
|
+
}
|
|
30064
|
+
},
|
|
30065
|
+
"parameters": [
|
|
30066
|
+
{
|
|
30067
|
+
"name": "config",
|
|
30068
|
+
"type": {
|
|
30069
|
+
"text": "AparteConfig"
|
|
30070
|
+
}
|
|
30071
|
+
}
|
|
30072
|
+
],
|
|
30073
|
+
"description": "The assistant's avatar, by the provider that draws it in the messages — the one place an\napp says what its assistant looks like, a framework component included. Drawn again only\nwhen the provider changes, since a render runs on every attribute and a provider may\nmount a component. Empty without one, and the stylesheet folds an empty slot away."
|
|
30074
|
+
},
|
|
30075
|
+
{
|
|
30076
|
+
"kind": "method",
|
|
30077
|
+
"name": "_markAvatarImage",
|
|
30078
|
+
"privacy": "private",
|
|
30079
|
+
"return": {
|
|
30080
|
+
"type": {
|
|
30081
|
+
"text": "void"
|
|
30082
|
+
}
|
|
30083
|
+
},
|
|
30084
|
+
"description": "A picture from the stylesheet alone (`--aparte-avatar-image-assistant`), as a message's\nslot shows it: an empty slot that has one is marked, which lifts the rule folding an empty\nslot away. Read after the header is in the document, where its style resolves."
|
|
30085
|
+
},
|
|
30086
|
+
{
|
|
30087
|
+
"kind": "method",
|
|
30088
|
+
"name": "_clearAvatar",
|
|
30089
|
+
"privacy": "private",
|
|
30090
|
+
"return": {
|
|
30091
|
+
"type": {
|
|
30092
|
+
"text": "void"
|
|
30093
|
+
}
|
|
30094
|
+
}
|
|
30095
|
+
},
|
|
30096
|
+
{
|
|
30097
|
+
"kind": "method",
|
|
30098
|
+
"name": "_syncMaximizeControls",
|
|
30099
|
+
"privacy": "private",
|
|
30100
|
+
"return": {
|
|
30101
|
+
"type": {
|
|
30102
|
+
"text": "void"
|
|
30103
|
+
}
|
|
30104
|
+
},
|
|
30105
|
+
"description": "A maximize control of the host's says what it does: `aria-pressed` follows the state.\nThe element's own button is the exception, because it changes its NAME with the state\ninstead, and a toggle whose name changes must not also say it is pressed."
|
|
30106
|
+
},
|
|
29670
30107
|
{
|
|
29671
30108
|
"kind": "field",
|
|
29672
30109
|
"name": "_onMediaChange",
|
|
@@ -29722,13 +30159,24 @@
|
|
|
29722
30159
|
"text": "void"
|
|
29723
30160
|
}
|
|
29724
30161
|
},
|
|
29725
|
-
"description": "The composer when there is one — the person opened the chat to write — else the\nfirst thing in the card that holds focus. The button itself never: it is what the\nperson just pressed."
|
|
30162
|
+
"description": "The composer when there is one — the person opened the chat to write — else the\nfirst thing in the card that holds focus. The button itself never: it is what the\nperson just pressed. Nor the element's header, which comes first in the DOM: its ✕\nis not what anyone opened the chat for, and focus landing there would read the way\nout before the way in."
|
|
30163
|
+
},
|
|
30164
|
+
{
|
|
30165
|
+
"kind": "method",
|
|
30166
|
+
"name": "_focusTarget",
|
|
30167
|
+
"privacy": "private",
|
|
30168
|
+
"return": {
|
|
30169
|
+
"type": {
|
|
30170
|
+
"text": "HTMLElement | undefined"
|
|
30171
|
+
}
|
|
30172
|
+
},
|
|
30173
|
+
"description": "Where the focus goes in the chat: the composer, else the card's first control, else —\nwhen the chat covers the window and its button is hidden — the header's ✕, the one way\nout left on screen."
|
|
29726
30174
|
},
|
|
29727
30175
|
{
|
|
29728
30176
|
"kind": "field",
|
|
29729
30177
|
"name": "_onClick",
|
|
29730
30178
|
"privacy": "private",
|
|
29731
|
-
"description": "A `[data-aparte-launcher-close]` inside closes the chat — no script in your card."
|
|
30179
|
+
"description": "A `[data-aparte-launcher-close]` inside closes the chat, and a\n`[data-aparte-launcher-maximize]` enlarges it or brings it back — no script in your card."
|
|
29732
30180
|
},
|
|
29733
30181
|
{
|
|
29734
30182
|
"kind": "method",
|
|
@@ -29761,7 +30209,7 @@
|
|
|
29761
30209
|
"type": {
|
|
29762
30210
|
"text": "CustomEvent<AparteLauncherToggleDetail>"
|
|
29763
30211
|
},
|
|
29764
|
-
"description": "The chat opened or closed, by the button, by Escape, by a close control or by `open` being set — or, while it is open, turned into a sheet or back as the window crossed the breakpoint. Bubbles."
|
|
30212
|
+
"description": "The chat opened or closed, by the button, by Escape, by a close control or by `open` being set — or, while it is open, turned into a sheet or back as the window crossed the breakpoint — or it was maximized or brought back, by a control or by `maximized` being set. Bubbles."
|
|
29765
30213
|
}
|
|
29766
30214
|
],
|
|
29767
30215
|
"attributes": [
|
|
@@ -29786,6 +30234,41 @@
|
|
|
29786
30234
|
},
|
|
29787
30235
|
"description": "The window width under which the open chat fills the window: a length, or `none` for a card at any size. Unset, a window under 30rem wide or 30rem high."
|
|
29788
30236
|
},
|
|
30237
|
+
{
|
|
30238
|
+
"name": "header",
|
|
30239
|
+
"type": {
|
|
30240
|
+
"text": "boolean"
|
|
30241
|
+
},
|
|
30242
|
+
"description": "The header the element draws over a card that has none. On unless set to the string `\"false\"`; a card with a header of its own keeps it, whatever this says."
|
|
30243
|
+
},
|
|
30244
|
+
{
|
|
30245
|
+
"name": "heading",
|
|
30246
|
+
"type": {
|
|
30247
|
+
"text": "string"
|
|
30248
|
+
},
|
|
30249
|
+
"description": "The header's title. Unset, the button's `label`, else the locale's `launcherHeading` (\"Chat\"); set but empty, no title."
|
|
30250
|
+
},
|
|
30251
|
+
{
|
|
30252
|
+
"name": "subheading",
|
|
30253
|
+
"type": {
|
|
30254
|
+
"text": "string"
|
|
30255
|
+
},
|
|
30256
|
+
"description": "A line under the title, smaller and quieter: who answers, how fast."
|
|
30257
|
+
},
|
|
30258
|
+
{
|
|
30259
|
+
"name": "maximizable",
|
|
30260
|
+
"type": {
|
|
30261
|
+
"text": "boolean | '' | 'panel'"
|
|
30262
|
+
},
|
|
30263
|
+
"description": "Adds the maximize button to the element's header, beside its ✕. Maximized, the chat fills the window; with `\"panel\"`, it is a panel the window's height along its inline-end edge, and the page stays in view."
|
|
30264
|
+
},
|
|
30265
|
+
{
|
|
30266
|
+
"name": "maximized",
|
|
30267
|
+
"type": {
|
|
30268
|
+
"text": "boolean"
|
|
30269
|
+
},
|
|
30270
|
+
"description": "The open chat is maximized: it fills the window, as the sheet does on a phone, or with `maximizable=\"panel\"` runs the window's height along its edge. Reflected; set it to start maximized."
|
|
30271
|
+
},
|
|
29789
30272
|
{
|
|
29790
30273
|
"type": {
|
|
29791
30274
|
"text": "boolean"
|
|
@@ -29800,7 +30283,7 @@
|
|
|
29800
30283
|
"tagName": "aparte-launcher",
|
|
29801
30284
|
"customElement": true,
|
|
29802
30285
|
"examples": [
|
|
29803
|
-
"<!-- In a page it floats over the window; here, over a 30rem frame. -->\n<div style=\"height: 30rem\"></div>\n<aparte-launcher label=\"Help\" open breakpoint=\"none\" style=\"--aparte-launcher-height: 24rem\">\n <aparte-chat></aparte-chat>\n</aparte-launcher>"
|
|
30286
|
+
"<!-- In a page it floats over the window; here, over a 30rem frame. -->\n<div style=\"height: 30rem\"></div>\n<aparte-launcher label=\"Help\" heading=\"Kilnhouse support\" subheading=\"Usually answers in a minute\"\n maximizable open breakpoint=\"none\" style=\"--aparte-launcher-height: 24rem\">\n <aparte-chat></aparte-chat>\n</aparte-launcher>"
|
|
29804
30287
|
]
|
|
29805
30288
|
}
|
|
29806
30289
|
],
|