@aparte/core 1.12.1 → 1.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6389,405 +6389,6 @@
6389
6389
  }
6390
6390
  ]
6391
6391
  },
6392
- {
6393
- "kind": "javascript-module",
6394
- "path": "src/components/index.ts",
6395
- "declarations": [],
6396
- "exports": [
6397
- {
6398
- "kind": "js",
6399
- "name": "AparteChat",
6400
- "declaration": {
6401
- "name": "AparteChat",
6402
- "module": "./chat/index.js"
6403
- }
6404
- },
6405
- {
6406
- "kind": "js",
6407
- "name": "AparteChatBubble",
6408
- "declaration": {
6409
- "name": "AparteChatBubble",
6410
- "module": "./bubble/index.js"
6411
- }
6412
- },
6413
- {
6414
- "kind": "js",
6415
- "name": "populateBubbleFromMessage",
6416
- "declaration": {
6417
- "name": "populateBubbleFromMessage",
6418
- "module": "./bubble/index.js"
6419
- }
6420
- },
6421
- {
6422
- "kind": "js",
6423
- "name": "SyncableBubble",
6424
- "declaration": {
6425
- "name": "SyncableBubble",
6426
- "module": "./bubble/index.js"
6427
- }
6428
- },
6429
- {
6430
- "kind": "js",
6431
- "name": "AparteChatStatus",
6432
- "declaration": {
6433
- "name": "AparteChatStatus",
6434
- "module": "./status/index.js"
6435
- }
6436
- },
6437
- {
6438
- "kind": "js",
6439
- "name": "AparteChatViewport",
6440
- "declaration": {
6441
- "name": "AparteChatViewport",
6442
- "module": "./viewport/index.js"
6443
- }
6444
- },
6445
- {
6446
- "kind": "js",
6447
- "name": "AparteComposer",
6448
- "declaration": {
6449
- "name": "AparteComposer",
6450
- "module": "./composer/index.js"
6451
- }
6452
- },
6453
- {
6454
- "kind": "js",
6455
- "name": "AparteComposerInput",
6456
- "declaration": {
6457
- "name": "AparteComposerInput",
6458
- "module": "./composer/index.js"
6459
- }
6460
- },
6461
- {
6462
- "kind": "js",
6463
- "name": "AparteComposerSend",
6464
- "declaration": {
6465
- "name": "AparteComposerSend",
6466
- "module": "./composer/index.js"
6467
- }
6468
- },
6469
- {
6470
- "kind": "js",
6471
- "name": "AparteComposerCancel",
6472
- "declaration": {
6473
- "name": "AparteComposerCancel",
6474
- "module": "./composer/index.js"
6475
- }
6476
- },
6477
- {
6478
- "kind": "js",
6479
- "name": "AparteComposerAttachments",
6480
- "declaration": {
6481
- "name": "AparteComposerAttachments",
6482
- "module": "./composer/index.js"
6483
- }
6484
- },
6485
- {
6486
- "kind": "js",
6487
- "name": "AparteComposerAddAttachment",
6488
- "declaration": {
6489
- "name": "AparteComposerAddAttachment",
6490
- "module": "./composer/index.js"
6491
- }
6492
- },
6493
- {
6494
- "kind": "js",
6495
- "name": "AparteComposerAction",
6496
- "declaration": {
6497
- "name": "AparteComposerAction",
6498
- "module": "./composer/index.js"
6499
- }
6500
- },
6501
- {
6502
- "kind": "js",
6503
- "name": "AparteComposerToolbar",
6504
- "declaration": {
6505
- "name": "AparteComposerToolbar",
6506
- "module": "./composer/index.js"
6507
- }
6508
- },
6509
- {
6510
- "kind": "js",
6511
- "name": "AparteComposerEventMap",
6512
- "declaration": {
6513
- "name": "AparteComposerEventMap",
6514
- "module": "./composer/index.js"
6515
- }
6516
- },
6517
- {
6518
- "kind": "js",
6519
- "name": "AparteComposerEventType",
6520
- "declaration": {
6521
- "name": "AparteComposerEventType",
6522
- "module": "./composer/index.js"
6523
- }
6524
- },
6525
- {
6526
- "kind": "js",
6527
- "name": "AparteComposerState",
6528
- "declaration": {
6529
- "name": "AparteComposerState",
6530
- "module": "./composer/index.js"
6531
- }
6532
- },
6533
- {
6534
- "kind": "js",
6535
- "name": "AparteComposerChangeEventDetail",
6536
- "declaration": {
6537
- "name": "AparteComposerChangeEventDetail",
6538
- "module": "./composer/index.js"
6539
- }
6540
- },
6541
- {
6542
- "kind": "js",
6543
- "name": "AparteComposerPanelMode",
6544
- "declaration": {
6545
- "name": "AparteComposerPanelMode",
6546
- "module": "./composer/index.js"
6547
- }
6548
- },
6549
- {
6550
- "kind": "js",
6551
- "name": "AparteQueuedMessage",
6552
- "declaration": {
6553
- "name": "AparteQueuedMessage",
6554
- "module": "./composer/index.js"
6555
- }
6556
- },
6557
- {
6558
- "kind": "js",
6559
- "name": "AparteTypeToFocus",
6560
- "declaration": {
6561
- "name": "AparteTypeToFocus",
6562
- "module": "./composer/index.js"
6563
- }
6564
- },
6565
- {
6566
- "kind": "js",
6567
- "name": "AparteActionClickEventDetail",
6568
- "declaration": {
6569
- "name": "AparteActionClickEventDetail",
6570
- "module": "./composer/index.js"
6571
- }
6572
- },
6573
- {
6574
- "kind": "js",
6575
- "name": "AparteConversationList",
6576
- "declaration": {
6577
- "name": "AparteConversationList",
6578
- "module": "./conversation-list/index.js"
6579
- }
6580
- },
6581
- {
6582
- "kind": "js",
6583
- "name": "AparteConversationListItem",
6584
- "declaration": {
6585
- "name": "AparteConversationListItem",
6586
- "module": "./conversation-list/index.js"
6587
- }
6588
- },
6589
- {
6590
- "kind": "js",
6591
- "name": "AparteConversationMetaRenderer",
6592
- "declaration": {
6593
- "name": "AparteConversationMetaRenderer",
6594
- "module": "./conversation-list/index.js"
6595
- }
6596
- },
6597
- {
6598
- "kind": "js",
6599
- "name": "AparteConversationSelectDetail",
6600
- "declaration": {
6601
- "name": "AparteConversationSelectDetail",
6602
- "module": "./conversation-list/index.js"
6603
- }
6604
- },
6605
- {
6606
- "kind": "js",
6607
- "name": "AparteConversationDeleteDetail",
6608
- "declaration": {
6609
- "name": "AparteConversationDeleteDetail",
6610
- "module": "./conversation-list/index.js"
6611
- }
6612
- },
6613
- {
6614
- "kind": "js",
6615
- "name": "AparteConversationArchiveDetail",
6616
- "declaration": {
6617
- "name": "AparteConversationArchiveDetail",
6618
- "module": "./conversation-list/index.js"
6619
- }
6620
- },
6621
- {
6622
- "kind": "js",
6623
- "name": "AparteConversationPinDetail",
6624
- "declaration": {
6625
- "name": "AparteConversationPinDetail",
6626
- "module": "./conversation-list/index.js"
6627
- }
6628
- },
6629
- {
6630
- "kind": "js",
6631
- "name": "AparteConversationRenameDetail",
6632
- "declaration": {
6633
- "name": "AparteConversationRenameDetail",
6634
- "module": "./conversation-list/index.js"
6635
- }
6636
- },
6637
- {
6638
- "kind": "js",
6639
- "name": "AparteConversationStatus",
6640
- "declaration": {
6641
- "name": "AparteConversationStatus",
6642
- "module": "./conversation-list/index.js"
6643
- }
6644
- },
6645
- {
6646
- "kind": "js",
6647
- "name": "AparteConversationStatusDetail",
6648
- "declaration": {
6649
- "name": "AparteConversationStatusDetail",
6650
- "module": "./conversation-list/index.js"
6651
- }
6652
- },
6653
- {
6654
- "kind": "js",
6655
- "name": "AparteSuggestions",
6656
- "declaration": {
6657
- "name": "AparteSuggestions",
6658
- "module": "./suggestions/index.js"
6659
- }
6660
- },
6661
- {
6662
- "kind": "js",
6663
- "name": "setupSuggestionBlocks",
6664
- "declaration": {
6665
- "name": "setupSuggestionBlocks",
6666
- "module": "./suggestions/index.js"
6667
- }
6668
- },
6669
- {
6670
- "kind": "js",
6671
- "name": "SUGGESTIONS_BLOCK_LANGUAGE",
6672
- "declaration": {
6673
- "name": "SUGGESTIONS_BLOCK_LANGUAGE",
6674
- "module": "./suggestions/index.js"
6675
- }
6676
- },
6677
- {
6678
- "kind": "js",
6679
- "name": "AparteSuggestion",
6680
- "declaration": {
6681
- "name": "AparteSuggestion",
6682
- "module": "./suggestions/index.js"
6683
- }
6684
- },
6685
- {
6686
- "kind": "js",
6687
- "name": "AparteSuggestionEventDetail",
6688
- "declaration": {
6689
- "name": "AparteSuggestionEventDetail",
6690
- "module": "./suggestions/index.js"
6691
- }
6692
- },
6693
- {
6694
- "kind": "js",
6695
- "name": "AparteContext",
6696
- "declaration": {
6697
- "name": "AparteContext",
6698
- "module": "./context/index.js"
6699
- }
6700
- },
6701
- {
6702
- "kind": "js",
6703
- "name": "AparteContextLevel",
6704
- "declaration": {
6705
- "name": "AparteContextLevel",
6706
- "module": "./context/index.js"
6707
- }
6708
- },
6709
- {
6710
- "kind": "js",
6711
- "name": "AparteContextThresholdEventDetail",
6712
- "declaration": {
6713
- "name": "AparteContextThresholdEventDetail",
6714
- "module": "./context/index.js"
6715
- }
6716
- },
6717
- {
6718
- "kind": "js",
6719
- "name": "AparteScrollRail",
6720
- "declaration": {
6721
- "name": "AparteScrollRail",
6722
- "module": "./scroll-rail/index.js"
6723
- }
6724
- },
6725
- {
6726
- "kind": "js",
6727
- "name": "AparteScrollRailJumpDetail",
6728
- "declaration": {
6729
- "name": "AparteScrollRailJumpDetail",
6730
- "module": "./scroll-rail/index.js"
6731
- }
6732
- },
6733
- {
6734
- "kind": "js",
6735
- "name": "AparteScrollRailEvery",
6736
- "declaration": {
6737
- "name": "AparteScrollRailEvery",
6738
- "module": "./scroll-rail/index.js"
6739
- }
6740
- },
6741
- {
6742
- "kind": "js",
6743
- "name": "AparteSidebar",
6744
- "declaration": {
6745
- "name": "AparteSidebar",
6746
- "module": "./sidebar/index.js"
6747
- }
6748
- },
6749
- {
6750
- "kind": "js",
6751
- "name": "AparteSidebarToggleDetail",
6752
- "declaration": {
6753
- "name": "AparteSidebarToggleDetail",
6754
- "module": "./sidebar/index.js"
6755
- }
6756
- },
6757
- {
6758
- "kind": "js",
6759
- "name": "AparteSplit",
6760
- "declaration": {
6761
- "name": "AparteSplit",
6762
- "module": "./split/index.js"
6763
- }
6764
- },
6765
- {
6766
- "kind": "js",
6767
- "name": "AparteSplitResizeDetail",
6768
- "declaration": {
6769
- "name": "AparteSplitResizeDetail",
6770
- "module": "./split/index.js"
6771
- }
6772
- },
6773
- {
6774
- "kind": "js",
6775
- "name": "AparteLauncher",
6776
- "declaration": {
6777
- "name": "AparteLauncher",
6778
- "module": "./launcher/index.js"
6779
- }
6780
- },
6781
- {
6782
- "kind": "js",
6783
- "name": "AparteLauncherToggleDetail",
6784
- "declaration": {
6785
- "name": "AparteLauncherToggleDetail",
6786
- "module": "./launcher/index.js"
6787
- }
6788
- }
6789
- ]
6790
- },
6791
6392
  {
6792
6393
  "kind": "javascript-module",
6793
6394
  "path": "src/client/agent-runner.ts",
@@ -11777,111 +11378,496 @@
11777
11378
  }
11778
11379
  ]
11779
11380
  }
11780
- ]
11781
- },
11782
- {
11783
- "kind": "variable",
11784
- "name": "settled"
11381
+ ]
11382
+ },
11383
+ {
11384
+ "kind": "variable",
11385
+ "name": "settled"
11386
+ },
11387
+ {
11388
+ "kind": "variable",
11389
+ "name": "aparteGlobalConfig",
11390
+ "description": "The page-wide configuration: every chat reads it unless an ancestor carries an instance of\nits own (attachConfig). There is one per window, kept on `window`, so two copies of\nthe package on one page share it; off the browser (a server render, a test) each import\ncreates its own."
11391
+ }
11392
+ ],
11393
+ "exports": [
11394
+ {
11395
+ "kind": "js",
11396
+ "name": "APARTE_DEFAULT_BUBBLE_ACTIONS",
11397
+ "declaration": {
11398
+ "name": "APARTE_DEFAULT_BUBBLE_ACTIONS",
11399
+ "module": "src/config/aparte-config.ts"
11400
+ }
11401
+ },
11402
+ {
11403
+ "kind": "js",
11404
+ "name": "APARTE_DEFAULT_HOST_HANDLERS",
11405
+ "declaration": {
11406
+ "name": "APARTE_DEFAULT_HOST_HANDLERS",
11407
+ "module": "src/config/aparte-config.ts"
11408
+ }
11409
+ },
11410
+ {
11411
+ "kind": "js",
11412
+ "name": "renderingVersionOf",
11413
+ "declaration": {
11414
+ "name": "renderingVersionOf",
11415
+ "module": "src/config/aparte-config.ts"
11416
+ }
11417
+ },
11418
+ {
11419
+ "kind": "js",
11420
+ "name": "onRenderersChange",
11421
+ "declaration": {
11422
+ "name": "onRenderersChange",
11423
+ "module": "src/config/aparte-config.ts"
11424
+ }
11425
+ },
11426
+ {
11427
+ "kind": "js",
11428
+ "name": "notifyRenderersChanged",
11429
+ "declaration": {
11430
+ "name": "notifyRenderersChanged",
11431
+ "module": "src/config/aparte-config.ts"
11432
+ }
11433
+ },
11434
+ {
11435
+ "kind": "js",
11436
+ "name": "AparteConfig",
11437
+ "declaration": {
11438
+ "name": "AparteConfig",
11439
+ "module": "src/config/aparte-config.ts"
11440
+ }
11441
+ },
11442
+ {
11443
+ "kind": "js",
11444
+ "name": "aparteGlobalConfig",
11445
+ "declaration": {
11446
+ "name": "aparteGlobalConfig",
11447
+ "module": "src/config/aparte-config.ts"
11448
+ }
11449
+ }
11450
+ ]
11451
+ },
11452
+ {
11453
+ "kind": "javascript-module",
11454
+ "path": "src/config/attachment-renderer.ts",
11455
+ "declarations": [],
11456
+ "exports": []
11457
+ },
11458
+ {
11459
+ "kind": "javascript-module",
11460
+ "path": "src/config/avatar-provider.ts",
11461
+ "declarations": [],
11462
+ "exports": []
11463
+ },
11464
+ {
11465
+ "kind": "javascript-module",
11466
+ "path": "src/config/bubble-shell-renderer.ts",
11467
+ "declarations": [],
11468
+ "exports": []
11469
+ },
11470
+ {
11471
+ "kind": "javascript-module",
11472
+ "path": "src/config/config-context.ts",
11473
+ "declarations": [
11474
+ {
11475
+ "kind": "variable",
11476
+ "name": "APARTE_HOST_ATTR",
11477
+ "type": {
11478
+ "text": "string"
11479
+ },
11480
+ "default": "'data-aparte-host'",
11481
+ "description": "Marks an element as an instance-config boundary (used by `closest()`)."
11482
+ },
11483
+ {
11484
+ "kind": "function",
11485
+ "name": "attachConfig",
11486
+ "return": {
11487
+ "type": {
11488
+ "text": "void"
11489
+ }
11490
+ },
11491
+ "parameters": [
11492
+ {
11493
+ "name": "el",
11494
+ "type": {
11495
+ "text": "HTMLElement"
11496
+ }
11497
+ },
11498
+ {
11499
+ "name": "config",
11500
+ "type": {
11501
+ "text": "AparteConfig"
11502
+ }
11503
+ }
11504
+ ],
11505
+ "description": "Attach an instance config to `el`, making it a resolution boundary: every\ncomponent inside `el` resolves to `config` instead of the global singleton.\nIdempotent; pass the same element to replace its config.\n\nAnything already mounted inside `el` that implements AparteConfigAware\nis told, because attaching a boundary silently rewrites what those children\nresolve to and a registration they already made is now on the wrong object."
11506
+ },
11507
+ {
11508
+ "kind": "function",
11509
+ "name": "detachConfig",
11510
+ "return": {
11511
+ "type": {
11512
+ "text": "void"
11513
+ }
11514
+ },
11515
+ "parameters": [
11516
+ {
11517
+ "name": "el",
11518
+ "type": {
11519
+ "text": "HTMLElement"
11520
+ }
11521
+ }
11522
+ ],
11523
+ "description": "Remove the instance-config boundary from `el` (e.g. in `disconnectedCallback`).\nComponents under `el` fall back to the next boundary up, or the global.\n\nRegistrants are told BEFORE they would silently re-resolve elsewhere, which is\nthe half that leaked: a wrapper's `unbind()` detaches the boundary before the\nframework removes the DOM, so by the time `disconnectedCallback` ran, the\nelement's own `resolveConfig(this)` already returned the global — its\n\"am I still the registered one?\" guard compared against the wrong config, found\nno match, and left the instance config holding a removed element for good."
11524
+ },
11525
+ {
11526
+ "kind": "function",
11527
+ "name": "resolveConfig",
11528
+ "return": {
11529
+ "type": {
11530
+ "text": "AparteConfig"
11531
+ }
11532
+ },
11533
+ "parameters": [
11534
+ {
11535
+ "name": "el",
11536
+ "type": {
11537
+ "text": "Element | null | undefined"
11538
+ }
11539
+ }
11540
+ ],
11541
+ "description": "Resolve the config governing `el`: the nearest ancestor boundary's instance\nconfig (including `el` itself), or aparteGlobalConfig when none is\npresent. Cheap — a single `closest()`.\n\nDO NOT cache this at `connectedCallback`. An earlier version of this comment\nadvised exactly that, and two elements followed it into a real bug: a framework\nwrapper calls `AparteChatHost.bind()` — which is what runs `attachConfig` — from\nits POST-mount hook (React `useEffect`, Vue `onMounted`, Svelte `onMount`,\nAngular `ngAfterViewInit`), so children mounted in the same commit connect\nBEFORE the boundary exists. A connect-time cache therefore freezes the global\nconfig forever, and the `config` prop every wrapper advertises silently does\nnothing for that element.\n\nResolve it live, in a getter. `closest()` on a shallow tree is not a cost worth\na correctness bug — `aparte-chat-bubble` has done it that way from the start, and\nit is the one element that was never affected.\n\nThat advice covers READERS, and it is not enough on its own. An element that\nWRITES to its config — registering a presenter, a renderer, a keyed listener —\ncannot fix the ordering by resolving live, because the write already happened.\nThose implement AparteConfigAware and re-register when told. The\nreader/writer distinction is the one this file missed the first time round: the\nsweep that applied the advice above fixed every reader and left both writers\nbroken."
11542
+ },
11543
+ {
11544
+ "kind": "function",
11545
+ "name": "runWithConfig",
11546
+ "return": {
11547
+ "type": {
11548
+ "text": "T"
11549
+ }
11550
+ },
11551
+ "parameters": [
11552
+ {
11553
+ "name": "config",
11554
+ "type": {
11555
+ "text": "AparteConfig"
11556
+ }
11557
+ },
11558
+ {
11559
+ "name": "fn",
11560
+ "type": {
11561
+ "text": "() => T"
11562
+ }
11563
+ }
11564
+ ],
11565
+ "description": "Run `fn` with `config` as the ambient render config (restored after)."
11785
11566
  },
11786
11567
  {
11787
- "kind": "variable",
11788
- "name": "aparteGlobalConfig",
11789
- "description": "The page-wide configuration: every chat reads it unless an ancestor carries an instance of\nits own (attachConfig). There is one per window, kept on `window`, so two copies of\nthe package on one page share it; off the browser (a server render, a test) each import\ncreates its own."
11568
+ "kind": "function",
11569
+ "name": "contextConfig",
11570
+ "return": {
11571
+ "type": {
11572
+ "text": "AparteConfig"
11573
+ }
11574
+ },
11575
+ "parameters": [
11576
+ {
11577
+ "name": "el",
11578
+ "optional": true,
11579
+ "type": {
11580
+ "text": "Element | null"
11581
+ }
11582
+ }
11583
+ ],
11584
+ "description": "The ambient render config set by runWithConfig, else the config\nresolved from `el` (when provided), else the global singleton. Capture it\nsynchronously at the top of a renderer — never after an `await`."
11790
11585
  }
11791
11586
  ],
11792
11587
  "exports": [
11793
11588
  {
11794
11589
  "kind": "js",
11795
- "name": "APARTE_DEFAULT_BUBBLE_ACTIONS",
11590
+ "name": "APARTE_HOST_ATTR",
11796
11591
  "declaration": {
11797
- "name": "APARTE_DEFAULT_BUBBLE_ACTIONS",
11798
- "module": "src/config/aparte-config.ts"
11592
+ "name": "APARTE_HOST_ATTR",
11593
+ "module": "src/config/config-context.ts"
11799
11594
  }
11800
11595
  },
11801
11596
  {
11802
11597
  "kind": "js",
11803
- "name": "APARTE_DEFAULT_HOST_HANDLERS",
11598
+ "name": "attachConfig",
11804
11599
  "declaration": {
11805
- "name": "APARTE_DEFAULT_HOST_HANDLERS",
11806
- "module": "src/config/aparte-config.ts"
11600
+ "name": "attachConfig",
11601
+ "module": "src/config/config-context.ts"
11807
11602
  }
11808
11603
  },
11809
11604
  {
11810
11605
  "kind": "js",
11811
- "name": "renderingVersionOf",
11606
+ "name": "detachConfig",
11812
11607
  "declaration": {
11813
- "name": "renderingVersionOf",
11814
- "module": "src/config/aparte-config.ts"
11608
+ "name": "detachConfig",
11609
+ "module": "src/config/config-context.ts"
11815
11610
  }
11816
11611
  },
11817
11612
  {
11818
11613
  "kind": "js",
11819
- "name": "onRenderersChange",
11614
+ "name": "resolveConfig",
11820
11615
  "declaration": {
11821
- "name": "onRenderersChange",
11822
- "module": "src/config/aparte-config.ts"
11616
+ "name": "resolveConfig",
11617
+ "module": "src/config/config-context.ts"
11823
11618
  }
11824
11619
  },
11825
11620
  {
11826
11621
  "kind": "js",
11827
- "name": "notifyRenderersChanged",
11622
+ "name": "runWithConfig",
11828
11623
  "declaration": {
11829
- "name": "notifyRenderersChanged",
11830
- "module": "src/config/aparte-config.ts"
11624
+ "name": "runWithConfig",
11625
+ "module": "src/config/config-context.ts"
11831
11626
  }
11832
11627
  },
11833
11628
  {
11834
11629
  "kind": "js",
11835
- "name": "AparteConfig",
11630
+ "name": "contextConfig",
11836
11631
  "declaration": {
11837
- "name": "AparteConfig",
11838
- "module": "src/config/aparte-config.ts"
11632
+ "name": "contextConfig",
11633
+ "module": "src/config/config-context.ts"
11634
+ }
11635
+ }
11636
+ ]
11637
+ },
11638
+ {
11639
+ "kind": "javascript-module",
11640
+ "path": "src/config/config-subscribe.ts",
11641
+ "declarations": [
11642
+ {
11643
+ "kind": "variable",
11644
+ "name": "APARTE_CONFIG_CHANGE",
11645
+ "type": {
11646
+ "text": "string"
11647
+ },
11648
+ "default": "'aparte-config-change'",
11649
+ "description": "The event `AparteConfig._notify()` dispatches on `window`."
11650
+ },
11651
+ {
11652
+ "kind": "function",
11653
+ "name": "subscribeConfigChange",
11654
+ "return": {
11655
+ "type": {
11656
+ "text": "() => void"
11657
+ }
11658
+ },
11659
+ "parameters": [
11660
+ {
11661
+ "name": "el",
11662
+ "type": {
11663
+ "text": "Element"
11664
+ }
11665
+ },
11666
+ {
11667
+ "name": "handler",
11668
+ "type": {
11669
+ "text": "() => void"
11670
+ }
11671
+ }
11672
+ ]
11673
+ }
11674
+ ],
11675
+ "exports": [
11676
+ {
11677
+ "kind": "js",
11678
+ "name": "APARTE_CONFIG_CHANGE",
11679
+ "declaration": {
11680
+ "name": "APARTE_CONFIG_CHANGE",
11681
+ "module": "src/config/config-subscribe.ts"
11839
11682
  }
11840
11683
  },
11841
11684
  {
11842
11685
  "kind": "js",
11843
- "name": "aparteGlobalConfig",
11686
+ "name": "subscribeConfigChange",
11844
11687
  "declaration": {
11845
- "name": "aparteGlobalConfig",
11846
- "module": "src/config/aparte-config.ts"
11688
+ "name": "subscribeConfigChange",
11689
+ "module": "src/config/config-subscribe.ts"
11847
11690
  }
11848
11691
  }
11849
11692
  ]
11850
11693
  },
11851
11694
  {
11852
11695
  "kind": "javascript-module",
11853
- "path": "src/config/attachment-renderer.ts",
11696
+ "path": "src/config/elicitation-field-renderer.ts",
11854
11697
  "declarations": [],
11855
11698
  "exports": []
11856
11699
  },
11857
11700
  {
11858
11701
  "kind": "javascript-module",
11859
- "path": "src/config/avatar-provider.ts",
11702
+ "path": "src/config/error-renderer.ts",
11860
11703
  "declarations": [],
11861
11704
  "exports": []
11862
11705
  },
11863
11706
  {
11864
11707
  "kind": "javascript-module",
11865
- "path": "src/config/bubble-shell-renderer.ts",
11866
- "declarations": [],
11867
- "exports": []
11708
+ "path": "src/config/icon-provider.ts",
11709
+ "declarations": [
11710
+ {
11711
+ "kind": "variable",
11712
+ "name": "APARTE_DEFAULT_ICON_FALLBACKS",
11713
+ "type": {
11714
+ "text": "Record<AparteCoreIconName, string>"
11715
+ },
11716
+ "default": "APARTE_ICON_GLYPHS",
11717
+ "description": "The default drawing for every name, assembled from `icons/glyphs.ts`.\n\n`getIcon()` reads this by a COMPUTED key, so a bundler cannot tell which entries a\nbuild reaches and keeps the object whole. That is the constraint that shapes the icon\nset: what belongs here is what core itself draws, and nothing else — an icon nobody\nrenders would still ship to everybody. Extra glyphs are individual exports a consumer\nimports by name, never members of this record."
11718
+ }
11719
+ ],
11720
+ "exports": [
11721
+ {
11722
+ "kind": "js",
11723
+ "name": "APARTE_DEFAULT_ICON_FALLBACKS",
11724
+ "declaration": {
11725
+ "name": "APARTE_DEFAULT_ICON_FALLBACKS",
11726
+ "module": "src/config/icon-provider.ts"
11727
+ }
11728
+ }
11729
+ ]
11868
11730
  },
11869
11731
  {
11870
11732
  "kind": "javascript-module",
11871
- "path": "src/config/config-context.ts",
11733
+ "path": "src/config/image-policy.ts",
11872
11734
  "declarations": [
11873
11735
  {
11874
- "kind": "variable",
11875
- "name": "APARTE_HOST_ATTR",
11876
- "type": {
11877
- "text": "string"
11736
+ "kind": "function",
11737
+ "name": "resolveImageAddress",
11738
+ "return": {
11739
+ "type": {
11740
+ "text": "URL | null"
11741
+ }
11742
+ },
11743
+ "parameters": [
11744
+ {
11745
+ "name": "address",
11746
+ "type": {
11747
+ "text": "string"
11748
+ }
11749
+ }
11750
+ ],
11751
+ "description": "An address resolved the way the browser will resolve it, or `null` when it cannot be: a\nrelative one where there is no page to resolve it against (a server render), or no address."
11752
+ },
11753
+ {
11754
+ "kind": "function",
11755
+ "name": "sameImagePolicy",
11756
+ "return": {
11757
+ "type": {
11758
+ "text": "boolean"
11759
+ }
11760
+ },
11761
+ "parameters": [
11762
+ {
11763
+ "name": "a",
11764
+ "type": {
11765
+ "text": "AparteImagePolicy"
11766
+ }
11767
+ },
11768
+ {
11769
+ "name": "b",
11770
+ "type": {
11771
+ "text": "AparteImagePolicy"
11772
+ }
11773
+ }
11774
+ ],
11775
+ "description": "Whether two policies say the same thing: the same function, or lists with the same entries."
11776
+ },
11777
+ {
11778
+ "kind": "function",
11779
+ "name": "compileImagePolicy",
11780
+ "return": {
11781
+ "type": {
11782
+ "text": "ImageDecider"
11783
+ }
11784
+ },
11785
+ "parameters": [
11786
+ {
11787
+ "name": "policy",
11788
+ "type": {
11789
+ "text": "AparteImagePolicy"
11790
+ }
11791
+ }
11792
+ ],
11793
+ "description": "Turn a policy into the function every decision runs through."
11794
+ },
11795
+ {
11796
+ "kind": "function",
11797
+ "name": "decideImageAddress",
11798
+ "return": {
11799
+ "type": {
11800
+ "text": "AparteImageDecision"
11801
+ }
11802
+ },
11803
+ "parameters": [
11804
+ {
11805
+ "name": "decide",
11806
+ "type": {
11807
+ "text": "ImageDecider"
11808
+ }
11809
+ },
11810
+ {
11811
+ "name": "address",
11812
+ "type": {
11813
+ "text": "string"
11814
+ }
11815
+ },
11816
+ {
11817
+ "name": "shown",
11818
+ "optional": true,
11819
+ "type": {
11820
+ "text": "ReadonlySet<string>"
11821
+ }
11822
+ }
11823
+ ],
11824
+ "description": "What the picture at `address` does. `data:` and `blob:` load, an address that is no web\naddress (`ftp:`, `mailto:`) goes, and the policy decides the rest — except that a picture the\nreader already chose to see (`shown`) loads when the policy would only have held it."
11825
+ },
11826
+ {
11827
+ "kind": "function",
11828
+ "name": "rememberShownImage",
11829
+ "return": {
11830
+ "type": {
11831
+ "text": "void"
11832
+ }
11833
+ },
11834
+ "parameters": [
11835
+ {
11836
+ "name": "owner",
11837
+ "type": {
11838
+ "text": "object"
11839
+ }
11840
+ },
11841
+ {
11842
+ "name": "address",
11843
+ "type": {
11844
+ "text": "string"
11845
+ }
11846
+ }
11847
+ ],
11848
+ "description": "Remember that the reader chose to see the picture at `address`, under `owner` (a config)."
11849
+ },
11850
+ {
11851
+ "kind": "function",
11852
+ "name": "shownImagesOf",
11853
+ "return": {
11854
+ "type": {
11855
+ "text": "ReadonlySet<string> | undefined"
11856
+ }
11878
11857
  },
11879
- "default": "'data-aparte-host'",
11880
- "description": "Marks an element as an instance-config boundary (used by `closest()`)."
11858
+ "parameters": [
11859
+ {
11860
+ "name": "owner",
11861
+ "type": {
11862
+ "text": "object"
11863
+ }
11864
+ }
11865
+ ],
11866
+ "description": "The pictures the reader chose to see under `owner`."
11881
11867
  },
11882
11868
  {
11883
11869
  "kind": "function",
11884
- "name": "attachConfig",
11870
+ "name": "forgetShownImages",
11885
11871
  "return": {
11886
11872
  "type": {
11887
11873
  "text": "void"
@@ -11889,123 +11875,313 @@
11889
11875
  },
11890
11876
  "parameters": [
11891
11877
  {
11892
- "name": "el",
11878
+ "name": "owner",
11893
11879
  "type": {
11894
- "text": "HTMLElement"
11880
+ "text": "object"
11895
11881
  }
11896
- },
11882
+ }
11883
+ ],
11884
+ "description": "Forget them: a reset config starts from what its policy says."
11885
+ },
11886
+ {
11887
+ "kind": "function",
11888
+ "name": "parseSrcset",
11889
+ "return": {
11890
+ "type": {
11891
+ "text": "SrcsetCandidate[]"
11892
+ }
11893
+ },
11894
+ "parameters": [
11897
11895
  {
11898
- "name": "config",
11896
+ "name": "value",
11899
11897
  "type": {
11900
- "text": "AparteConfig"
11898
+ "text": "string"
11901
11899
  }
11902
11900
  }
11903
11901
  ],
11904
- "description": "Attach an instance config to `el`, making it a resolution boundary: every\ncomponent inside `el` resolves to `config` instead of the global singleton.\nIdempotent; pass the same element to replace its config.\n\nAnything already mounted inside `el` that implements AparteConfigAware\nis told, because attaching a boundary silently rewrites what those children\nresolve to and a registration they already made is now on the wrong object."
11902
+ "description": "A `srcset`, read as the HTML Standard's \"parse a srcset attribute\" reads it — in the details a\ndifference would turn into a request. Only ASCII whitespace separates: a JavaScript `\\s` also\nsplits on U+00A0 and U+FEFF, which a browser keeps inside an address (`&nbsp;data:…/../api/logout`\nis a path on the page's own site to it). An address runs to the next such space, so a `data:`\nURL keeps its commas; trailing commas end a candidate; a descriptor's parentheses do not nest\n(`1x ((), https://…` is two candidates to a browser, not one).\n\nA candidate with descriptors this does not know is left out. That is safe in one direction\nonly, and it is the direction the pass relies on: what reaches the page is never the model's\n`srcset` but one written again from these candidates (`writeSrcset`), so a browser can only\npick an address that was judged."
11905
11903
  },
11906
11904
  {
11907
11905
  "kind": "function",
11908
- "name": "detachConfig",
11906
+ "name": "srcsetUrls",
11909
11907
  "return": {
11910
11908
  "type": {
11911
- "text": "void"
11909
+ "text": "string[]"
11912
11910
  }
11913
11911
  },
11914
11912
  "parameters": [
11915
11913
  {
11916
- "name": "el",
11914
+ "name": "value",
11917
11915
  "type": {
11918
- "text": "HTMLElement"
11916
+ "text": "string"
11919
11917
  }
11920
11918
  }
11921
11919
  ],
11922
- "description": "Remove the instance-config boundary from `el` (e.g. in `disconnectedCallback`).\nComponents under `el` fall back to the next boundary up, or the global.\n\nRegistrants are told BEFORE they would silently re-resolve elsewhere, which is\nthe half that leaked: a wrapper's `unbind()` detaches the boundary before the\nframework removes the DOM, so by the time `disconnectedCallback` ran, the\nelement's own `resolveConfig(this)` already returned the global — its\n\"am I still the registered one?\" guard compared against the wrong config, found\nno match, and left the instance config holding a removed element for good."
11920
+ "description": "The addresses a `srcset` lists, as `parseSrcset` reads them."
11923
11921
  },
11924
11922
  {
11925
11923
  "kind": "function",
11926
- "name": "resolveConfig",
11924
+ "name": "imageHost",
11927
11925
  "return": {
11928
11926
  "type": {
11929
- "text": "AparteConfig"
11927
+ "text": "string"
11930
11928
  }
11931
11929
  },
11932
11930
  "parameters": [
11933
11931
  {
11934
- "name": "el",
11932
+ "name": "address",
11935
11933
  "type": {
11936
- "text": "Element | null | undefined"
11934
+ "text": "string"
11937
11935
  }
11938
11936
  }
11939
11937
  ],
11940
- "description": "Resolve the config governing `el`: the nearest ancestor boundary's instance\nconfig (including `el` itself), or aparteGlobalConfig when none is\npresent. Cheap — a single `closest()`.\n\nDO NOT cache this at `connectedCallback`. An earlier version of this comment\nadvised exactly that, and two elements followed it into a real bug: a framework\nwrapper calls `AparteChatHost.bind()` — which is what runs `attachConfig` — from\nits POST-mount hook (React `useEffect`, Vue `onMounted`, Svelte `onMount`,\nAngular `ngAfterViewInit`), so children mounted in the same commit connect\nBEFORE the boundary exists. A connect-time cache therefore freezes the global\nconfig forever, and the `config` prop every wrapper advertises silently does\nnothing for that element.\n\nResolve it live, in a getter. `closest()` on a shallow tree is not a cost worth\na correctness bug — `aparte-chat-bubble` has done it that way from the start, and\nit is the one element that was never affected.\n\nThat advice covers READERS, and it is not enough on its own. An element that\nWRITES to its config — registering a presenter, a renderer, a keyed listener —\ncannot fix the ordering by resolving live, because the write already happened.\nThose implement AparteConfigAware and re-register when told. The\nreader/writer distinction is the one this file missed the first time round: the\nsweep that applied the advice above fixed every reader and left both writers\nbroken."
11938
+ "description": "Where a held picture would load from, as the reader is shown it: the host, exactly — a\nlook-alike name is the reason to show it, which is also why its end, the part a reader\njudges by, is never cut (the chip wraps it) — and, for an address that resolves to no host\n(a relative one on a server), the address itself, cut short."
11941
11939
  },
11942
11940
  {
11943
11941
  "kind": "function",
11944
- "name": "runWithConfig",
11942
+ "name": "heldImageHtml",
11945
11943
  "return": {
11946
11944
  "type": {
11947
- "text": "T"
11945
+ "text": "string"
11948
11946
  }
11949
11947
  },
11950
11948
  "parameters": [
11951
11949
  {
11952
- "name": "config",
11950
+ "name": "address",
11953
11951
  "type": {
11954
- "text": "AparteConfig"
11952
+ "text": "string"
11955
11953
  }
11956
11954
  },
11957
11955
  {
11958
- "name": "fn",
11956
+ "name": "alt",
11959
11957
  "type": {
11960
- "text": "() => T"
11958
+ "text": "string"
11959
+ }
11960
+ },
11961
+ {
11962
+ "name": "words",
11963
+ "type": {
11964
+ "text": "HeldImageWords"
11961
11965
  }
11966
+ },
11967
+ {
11968
+ "name": "inLink",
11969
+ "default": "false"
11962
11970
  }
11963
11971
  ],
11964
- "description": "Run `fn` with `config` as the ambient render config (restored after)."
11972
+ "description": "A held picture: a link to it that wears the tag recipe, names where it would load from, and\ncarries what it holds in two attributes, so a later pass can draw it again from them alone.\nWithout script it opens the picture in a new tab; with core's listener it loads in place.\n\nInside a link (`[![build](badge.svg)](https://ci…)`) it is a `<span role=\"button\">` instead: a\nlink inside a link is taken apart by the HTML parser, which would leave the reply's own link\nempty and the picture outside it."
11965
11973
  },
11966
11974
  {
11967
11975
  "kind": "function",
11968
- "name": "contextConfig",
11976
+ "name": "applyImagePolicy",
11969
11977
  "return": {
11970
11978
  "type": {
11971
- "text": "AparteConfig"
11979
+ "text": "string"
11972
11980
  }
11973
11981
  },
11974
11982
  "parameters": [
11975
11983
  {
11976
- "name": "el",
11977
- "optional": true,
11984
+ "name": "html",
11978
11985
  "type": {
11979
- "text": "Element | null"
11986
+ "text": "string"
11987
+ }
11988
+ },
11989
+ {
11990
+ "name": "decide",
11991
+ "type": {
11992
+ "text": "(address: string) => AparteImageDecision"
11993
+ }
11994
+ },
11995
+ {
11996
+ "name": "words",
11997
+ "type": {
11998
+ "text": "() => HeldImageWords"
11980
11999
  }
11981
12000
  }
11982
12001
  ],
11983
- "description": "The ambient render config set by runWithConfig, else the config\nresolved from `el` (when provided), else the global singleton. Capture it\nsynchronously at the top of a renderer — never after an `await`."
12002
+ "description": "Apply the policy to sanitized HTML. A picture's own address — its `src`, else its first\n`srcset` one — decides what it does: it loads, it is held (drawn as `heldImageHtml`), or it\ngoes. One that loads gains `referrerpolicy=\"no-referrer\"` and keeps, of its `srcset`, only the\ncandidates that load, written again (`writeSrcset`) so the browser picks among exactly what was\njudged; a `<source>` keeps its loading candidates the same way, or goes. A held picture already\nin the HTML is drawn again from what it carries, so running the pass twice gives what running\nit once gave, and a picture the reader chose to see stays shown however it was written.\n\nIn a browser it walks an inert `<template>`, where nothing it touches is fetched; without a\nDOM it reads the tags the way the sanitizer's own DOM-free path does."
12003
+ },
12004
+ {
12005
+ "kind": "function",
12006
+ "name": "applyImagePolicyWithoutDom",
12007
+ "return": {
12008
+ "type": {
12009
+ "text": "string"
12010
+ }
12011
+ },
12012
+ "parameters": [
12013
+ {
12014
+ "name": "html",
12015
+ "type": {
12016
+ "text": "string"
12017
+ }
12018
+ },
12019
+ {
12020
+ "name": "decide",
12021
+ "type": {
12022
+ "text": "(address: string) => AparteImageDecision"
12023
+ }
12024
+ },
12025
+ {
12026
+ "name": "words",
12027
+ "type": {
12028
+ "text": "() => HeldImageWords"
12029
+ }
12030
+ }
12031
+ ],
12032
+ "description": "The same pass for a runtime with no DOM (a server render, a Worker). Like the sanitizer's\nDOM-free path it is a safety net, not a parser: it reads tags with the sanitizer's own\nreader, leaves comments and raw-text elements alone, and writes back only what it changed.\nExported for the parity suite; not from the package barrel."
12033
+ }
12034
+ ],
12035
+ "exports": [
12036
+ {
12037
+ "kind": "js",
12038
+ "name": "resolveImageAddress",
12039
+ "declaration": {
12040
+ "name": "resolveImageAddress",
12041
+ "module": "src/config/image-policy.ts"
12042
+ }
12043
+ },
12044
+ {
12045
+ "kind": "js",
12046
+ "name": "sameImagePolicy",
12047
+ "declaration": {
12048
+ "name": "sameImagePolicy",
12049
+ "module": "src/config/image-policy.ts"
12050
+ }
12051
+ },
12052
+ {
12053
+ "kind": "js",
12054
+ "name": "compileImagePolicy",
12055
+ "declaration": {
12056
+ "name": "compileImagePolicy",
12057
+ "module": "src/config/image-policy.ts"
12058
+ }
12059
+ },
12060
+ {
12061
+ "kind": "js",
12062
+ "name": "decideImageAddress",
12063
+ "declaration": {
12064
+ "name": "decideImageAddress",
12065
+ "module": "src/config/image-policy.ts"
12066
+ }
12067
+ },
12068
+ {
12069
+ "kind": "js",
12070
+ "name": "rememberShownImage",
12071
+ "declaration": {
12072
+ "name": "rememberShownImage",
12073
+ "module": "src/config/image-policy.ts"
12074
+ }
12075
+ },
12076
+ {
12077
+ "kind": "js",
12078
+ "name": "shownImagesOf",
12079
+ "declaration": {
12080
+ "name": "shownImagesOf",
12081
+ "module": "src/config/image-policy.ts"
12082
+ }
12083
+ },
12084
+ {
12085
+ "kind": "js",
12086
+ "name": "forgetShownImages",
12087
+ "declaration": {
12088
+ "name": "forgetShownImages",
12089
+ "module": "src/config/image-policy.ts"
12090
+ }
12091
+ },
12092
+ {
12093
+ "kind": "js",
12094
+ "name": "parseSrcset",
12095
+ "declaration": {
12096
+ "name": "parseSrcset",
12097
+ "module": "src/config/image-policy.ts"
12098
+ }
12099
+ },
12100
+ {
12101
+ "kind": "js",
12102
+ "name": "srcsetUrls",
12103
+ "declaration": {
12104
+ "name": "srcsetUrls",
12105
+ "module": "src/config/image-policy.ts"
12106
+ }
12107
+ },
12108
+ {
12109
+ "kind": "js",
12110
+ "name": "imageHost",
12111
+ "declaration": {
12112
+ "name": "imageHost",
12113
+ "module": "src/config/image-policy.ts"
12114
+ }
12115
+ },
12116
+ {
12117
+ "kind": "js",
12118
+ "name": "heldImageHtml",
12119
+ "declaration": {
12120
+ "name": "heldImageHtml",
12121
+ "module": "src/config/image-policy.ts"
12122
+ }
12123
+ },
12124
+ {
12125
+ "kind": "js",
12126
+ "name": "applyImagePolicy",
12127
+ "declaration": {
12128
+ "name": "applyImagePolicy",
12129
+ "module": "src/config/image-policy.ts"
12130
+ }
12131
+ },
12132
+ {
12133
+ "kind": "js",
12134
+ "name": "applyImagePolicyWithoutDom",
12135
+ "declaration": {
12136
+ "name": "applyImagePolicyWithoutDom",
12137
+ "module": "src/config/image-policy.ts"
12138
+ }
11984
12139
  }
11985
- ],
12140
+ ]
12141
+ },
12142
+ {
12143
+ "kind": "javascript-module",
12144
+ "path": "src/config/index.ts",
12145
+ "declarations": [],
11986
12146
  "exports": [
11987
12147
  {
11988
12148
  "kind": "js",
11989
- "name": "APARTE_HOST_ATTR",
12149
+ "name": "aparteGlobalConfig",
11990
12150
  "declaration": {
11991
- "name": "APARTE_HOST_ATTR",
11992
- "module": "src/config/config-context.ts"
12151
+ "name": "aparteGlobalConfig",
12152
+ "module": "./aparte-config.js"
11993
12153
  }
11994
12154
  },
11995
12155
  {
11996
12156
  "kind": "js",
11997
- "name": "attachConfig",
12157
+ "name": "AparteConfig",
11998
12158
  "declaration": {
11999
- "name": "attachConfig",
12000
- "module": "src/config/config-context.ts"
12159
+ "name": "AparteConfig",
12160
+ "module": "./aparte-config.js"
12001
12161
  }
12002
12162
  },
12003
12163
  {
12004
12164
  "kind": "js",
12005
- "name": "detachConfig",
12165
+ "name": "APARTE_DEFAULT_BUBBLE_ACTIONS",
12006
12166
  "declaration": {
12007
- "name": "detachConfig",
12008
- "module": "src/config/config-context.ts"
12167
+ "name": "APARTE_DEFAULT_BUBBLE_ACTIONS",
12168
+ "module": "./aparte-config.js"
12169
+ }
12170
+ },
12171
+ {
12172
+ "kind": "js",
12173
+ "name": "APARTE_DEFAULT_HOST_HANDLERS",
12174
+ "declaration": {
12175
+ "name": "APARTE_DEFAULT_HOST_HANDLERS",
12176
+ "module": "./aparte-config.js"
12177
+ }
12178
+ },
12179
+ {
12180
+ "kind": "js",
12181
+ "name": "onRenderersChange",
12182
+ "declaration": {
12183
+ "name": "onRenderersChange",
12184
+ "module": "./aparte-config.js"
12009
12185
  }
12010
12186
  },
12011
12187
  {
@@ -12013,7 +12189,23 @@
12013
12189
  "name": "resolveConfig",
12014
12190
  "declaration": {
12015
12191
  "name": "resolveConfig",
12016
- "module": "src/config/config-context.ts"
12192
+ "module": "./config-context.js"
12193
+ }
12194
+ },
12195
+ {
12196
+ "kind": "js",
12197
+ "name": "attachConfig",
12198
+ "declaration": {
12199
+ "name": "attachConfig",
12200
+ "module": "./config-context.js"
12201
+ }
12202
+ },
12203
+ {
12204
+ "kind": "js",
12205
+ "name": "detachConfig",
12206
+ "declaration": {
12207
+ "name": "detachConfig",
12208
+ "module": "./config-context.js"
12017
12209
  }
12018
12210
  },
12019
12211
  {
@@ -12021,7 +12213,7 @@
12021
12213
  "name": "runWithConfig",
12022
12214
  "declaration": {
12023
12215
  "name": "runWithConfig",
12024
- "module": "src/config/config-context.ts"
12216
+ "module": "./config-context.js"
12025
12217
  }
12026
12218
  },
12027
12219
  {
@@ -12029,766 +12221,758 @@
12029
12221
  "name": "contextConfig",
12030
12222
  "declaration": {
12031
12223
  "name": "contextConfig",
12032
- "module": "src/config/config-context.ts"
12224
+ "module": "./config-context.js"
12033
12225
  }
12034
- }
12035
- ]
12036
- },
12037
- {
12038
- "kind": "javascript-module",
12039
- "path": "src/config/config-subscribe.ts",
12040
- "declarations": [
12226
+ },
12041
12227
  {
12042
- "kind": "variable",
12043
- "name": "APARTE_CONFIG_CHANGE",
12044
- "type": {
12045
- "text": "string"
12046
- },
12047
- "default": "'aparte-config-change'",
12048
- "description": "The event `AparteConfig._notify()` dispatches on `window`."
12228
+ "kind": "js",
12229
+ "name": "APARTE_HOST_ATTR",
12230
+ "declaration": {
12231
+ "name": "APARTE_HOST_ATTR",
12232
+ "module": "./config-context.js"
12233
+ }
12049
12234
  },
12050
12235
  {
12051
- "kind": "function",
12236
+ "kind": "js",
12052
12237
  "name": "subscribeConfigChange",
12053
- "return": {
12054
- "type": {
12055
- "text": "() => void"
12056
- }
12057
- },
12058
- "parameters": [
12059
- {
12060
- "name": "el",
12061
- "type": {
12062
- "text": "Element"
12063
- }
12064
- },
12065
- {
12066
- "name": "handler",
12067
- "type": {
12068
- "text": "() => void"
12069
- }
12070
- }
12071
- ]
12072
- }
12073
- ],
12074
- "exports": [
12238
+ "declaration": {
12239
+ "name": "subscribeConfigChange",
12240
+ "module": "./config-subscribe.js"
12241
+ }
12242
+ },
12075
12243
  {
12076
12244
  "kind": "js",
12077
12245
  "name": "APARTE_CONFIG_CHANGE",
12078
12246
  "declaration": {
12079
12247
  "name": "APARTE_CONFIG_CHANGE",
12080
- "module": "src/config/config-subscribe.ts"
12248
+ "module": "./config-subscribe.js"
12081
12249
  }
12082
12250
  },
12083
12251
  {
12084
12252
  "kind": "js",
12085
- "name": "subscribeConfigChange",
12253
+ "name": "createModelCatalogue",
12086
12254
  "declaration": {
12087
- "name": "subscribeConfigChange",
12088
- "module": "src/config/config-subscribe.ts"
12255
+ "name": "createModelCatalogue",
12256
+ "module": "./model-catalogue.js"
12089
12257
  }
12090
- }
12091
- ]
12092
- },
12093
- {
12094
- "kind": "javascript-module",
12095
- "path": "src/config/elicitation-field-renderer.ts",
12096
- "declarations": [],
12097
- "exports": []
12098
- },
12099
- {
12100
- "kind": "javascript-module",
12101
- "path": "src/config/error-renderer.ts",
12102
- "declarations": [],
12103
- "exports": []
12104
- },
12105
- {
12106
- "kind": "javascript-module",
12107
- "path": "src/config/icon-provider.ts",
12108
- "declarations": [
12258
+ },
12109
12259
  {
12110
- "kind": "variable",
12111
- "name": "APARTE_DEFAULT_ICON_FALLBACKS",
12112
- "type": {
12113
- "text": "Record<AparteCoreIconName, string>"
12114
- },
12115
- "default": "APARTE_ICON_GLYPHS",
12116
- "description": "The default drawing for every name, assembled from `icons/glyphs.ts`.\n\n`getIcon()` reads this by a COMPUTED key, so a bundler cannot tell which entries a\nbuild reaches and keeps the object whole. That is the constraint that shapes the icon\nset: what belongs here is what core itself draws, and nothing else — an icon nobody\nrenders would still ship to everybody. Extra glyphs are individual exports a consumer\nimports by name, never members of this record."
12117
- }
12118
- ],
12119
- "exports": [
12260
+ "kind": "js",
12261
+ "name": "AparteModelCatalogueOptions",
12262
+ "declaration": {
12263
+ "name": "AparteModelCatalogueOptions",
12264
+ "module": "./model-catalogue.js"
12265
+ }
12266
+ },
12120
12267
  {
12121
12268
  "kind": "js",
12122
- "name": "APARTE_DEFAULT_ICON_FALLBACKS",
12269
+ "name": "AparteConfigAware",
12123
12270
  "declaration": {
12124
- "name": "APARTE_DEFAULT_ICON_FALLBACKS",
12125
- "module": "src/config/icon-provider.ts"
12271
+ "name": "AparteConfigAware",
12272
+ "module": "./config-context.js"
12126
12273
  }
12127
- }
12128
- ]
12129
- },
12130
- {
12131
- "kind": "javascript-module",
12132
- "path": "src/config/image-policy.ts",
12133
- "declarations": [
12274
+ },
12134
12275
  {
12135
- "kind": "function",
12136
- "name": "resolveImageAddress",
12137
- "return": {
12138
- "type": {
12139
- "text": "URL | null"
12140
- }
12141
- },
12142
- "parameters": [
12143
- {
12144
- "name": "address",
12145
- "type": {
12146
- "text": "string"
12147
- }
12148
- }
12149
- ],
12150
- "description": "An address resolved the way the browser will resolve it, or `null` when it cannot be: a\nrelative one where there is no page to resolve it against (a server render), or no address."
12276
+ "kind": "js",
12277
+ "name": "AparteConfigChangeEventDetail",
12278
+ "declaration": {
12279
+ "name": "AparteConfigChangeEventDetail",
12280
+ "module": "./aparte-config.js"
12281
+ }
12151
12282
  },
12152
12283
  {
12153
- "kind": "function",
12154
- "name": "sameImagePolicy",
12155
- "return": {
12156
- "type": {
12157
- "text": "boolean"
12158
- }
12159
- },
12160
- "parameters": [
12161
- {
12162
- "name": "a",
12163
- "type": {
12164
- "text": "AparteImagePolicy"
12165
- }
12166
- },
12167
- {
12168
- "name": "b",
12169
- "type": {
12170
- "text": "AparteImagePolicy"
12171
- }
12172
- }
12173
- ],
12174
- "description": "Whether two policies say the same thing: the same function, or lists with the same entries."
12284
+ "kind": "js",
12285
+ "name": "AparteMarkdownProvider",
12286
+ "declaration": {
12287
+ "name": "AparteMarkdownProvider",
12288
+ "module": "./aparte-config.js"
12289
+ }
12290
+ },
12291
+ {
12292
+ "kind": "js",
12293
+ "name": "AparteStreamingMarkdownProvider",
12294
+ "declaration": {
12295
+ "name": "AparteStreamingMarkdownProvider",
12296
+ "module": "./aparte-config.js"
12297
+ }
12298
+ },
12299
+ {
12300
+ "kind": "js",
12301
+ "name": "AparteStreamingMarkdownRenderer",
12302
+ "declaration": {
12303
+ "name": "AparteStreamingMarkdownRenderer",
12304
+ "module": "./aparte-config.js"
12305
+ }
12306
+ },
12307
+ {
12308
+ "kind": "js",
12309
+ "name": "AparteCodeLanguageRenderer",
12310
+ "declaration": {
12311
+ "name": "AparteCodeLanguageRenderer",
12312
+ "module": "./aparte-config.js"
12313
+ }
12314
+ },
12315
+ {
12316
+ "kind": "js",
12317
+ "name": "AparteCodeLanguageContext",
12318
+ "declaration": {
12319
+ "name": "AparteCodeLanguageContext",
12320
+ "module": "./aparte-config.js"
12321
+ }
12175
12322
  },
12176
12323
  {
12177
- "kind": "function",
12178
- "name": "compileImagePolicy",
12179
- "return": {
12180
- "type": {
12181
- "text": "ImageDecider"
12182
- }
12183
- },
12184
- "parameters": [
12185
- {
12186
- "name": "policy",
12187
- "type": {
12188
- "text": "AparteImagePolicy"
12189
- }
12190
- }
12191
- ],
12192
- "description": "Turn a policy into the function every decision runs through."
12324
+ "kind": "js",
12325
+ "name": "AparteHighlightProvider",
12326
+ "declaration": {
12327
+ "name": "AparteHighlightProvider",
12328
+ "module": "./aparte-config.js"
12329
+ }
12193
12330
  },
12194
12331
  {
12195
- "kind": "function",
12196
- "name": "decideImageAddress",
12197
- "return": {
12198
- "type": {
12199
- "text": "AparteImageDecision"
12200
- }
12201
- },
12202
- "parameters": [
12203
- {
12204
- "name": "decide",
12205
- "type": {
12206
- "text": "ImageDecider"
12207
- }
12208
- },
12209
- {
12210
- "name": "address",
12211
- "type": {
12212
- "text": "string"
12213
- }
12214
- },
12215
- {
12216
- "name": "shown",
12217
- "optional": true,
12218
- "type": {
12219
- "text": "ReadonlySet<string>"
12220
- }
12221
- }
12222
- ],
12223
- "description": "What the picture at `address` does. `data:` and `blob:` load, an address that is no web\naddress (`ftp:`, `mailto:`) goes, and the policy decides the rest — except that a picture the\nreader already chose to see (`shown`) loads when the policy would only have held it."
12332
+ "kind": "js",
12333
+ "name": "AparteSystemPromptVarsProvider",
12334
+ "declaration": {
12335
+ "name": "AparteSystemPromptVarsProvider",
12336
+ "module": "./aparte-config.js"
12337
+ }
12224
12338
  },
12225
12339
  {
12226
- "kind": "function",
12227
- "name": "rememberShownImage",
12228
- "return": {
12229
- "type": {
12230
- "text": "void"
12231
- }
12232
- },
12233
- "parameters": [
12234
- {
12235
- "name": "owner",
12236
- "type": {
12237
- "text": "object"
12238
- }
12239
- },
12240
- {
12241
- "name": "address",
12242
- "type": {
12243
- "text": "string"
12244
- }
12245
- }
12246
- ],
12247
- "description": "Remember that the reader chose to see the picture at `address`, under `owner` (a config)."
12340
+ "kind": "js",
12341
+ "name": "AparteModelPreference",
12342
+ "declaration": {
12343
+ "name": "AparteModelPreference",
12344
+ "module": "./aparte-config.js"
12345
+ }
12248
12346
  },
12249
12347
  {
12250
- "kind": "function",
12251
- "name": "shownImagesOf",
12252
- "return": {
12253
- "type": {
12254
- "text": "ReadonlySet<string> | undefined"
12255
- }
12256
- },
12257
- "parameters": [
12258
- {
12259
- "name": "owner",
12260
- "type": {
12261
- "text": "object"
12262
- }
12263
- }
12264
- ],
12265
- "description": "The pictures the reader chose to see under `owner`."
12348
+ "kind": "js",
12349
+ "name": "AparteModelPreferenceProvider",
12350
+ "declaration": {
12351
+ "name": "AparteModelPreferenceProvider",
12352
+ "module": "./aparte-config.js"
12353
+ }
12266
12354
  },
12267
12355
  {
12268
- "kind": "function",
12269
- "name": "forgetShownImages",
12270
- "return": {
12271
- "type": {
12272
- "text": "void"
12273
- }
12274
- },
12275
- "parameters": [
12276
- {
12277
- "name": "owner",
12278
- "type": {
12279
- "text": "object"
12280
- }
12281
- }
12282
- ],
12283
- "description": "Forget them: a reset config starts from what its policy says."
12356
+ "kind": "js",
12357
+ "name": "AparteSanitizer",
12358
+ "declaration": {
12359
+ "name": "AparteSanitizer",
12360
+ "module": "./sanitize.js"
12361
+ }
12284
12362
  },
12285
12363
  {
12286
- "kind": "function",
12287
- "name": "parseSrcset",
12288
- "return": {
12289
- "type": {
12290
- "text": "SrcsetCandidate[]"
12291
- }
12292
- },
12293
- "parameters": [
12294
- {
12295
- "name": "value",
12296
- "type": {
12297
- "text": "string"
12298
- }
12299
- }
12300
- ],
12301
- "description": "A `srcset`, read as the HTML Standard's \"parse a srcset attribute\" reads it — in the details a\ndifference would turn into a request. Only ASCII whitespace separates: a JavaScript `\\s` also\nsplits on U+00A0 and U+FEFF, which a browser keeps inside an address (`&nbsp;data:…/../api/logout`\nis a path on the page's own site to it). An address runs to the next such space, so a `data:`\nURL keeps its commas; trailing commas end a candidate; a descriptor's parentheses do not nest\n(`1x ((), https://…` is two candidates to a browser, not one).\n\nA candidate with descriptors this does not know is left out. That is safe in one direction\nonly, and it is the direction the pass relies on: what reaches the page is never the model's\n`srcset` but one written again from these candidates (`writeSrcset`), so a browser can only\npick an address that was judged."
12364
+ "kind": "js",
12365
+ "name": "AparteImageDecision",
12366
+ "declaration": {
12367
+ "name": "AparteImageDecision",
12368
+ "module": "./image-policy.js"
12369
+ }
12302
12370
  },
12303
12371
  {
12304
- "kind": "function",
12305
- "name": "srcsetUrls",
12306
- "return": {
12307
- "type": {
12308
- "text": "string[]"
12309
- }
12310
- },
12311
- "parameters": [
12312
- {
12313
- "name": "value",
12314
- "type": {
12315
- "text": "string"
12316
- }
12317
- }
12318
- ],
12319
- "description": "The addresses a `srcset` lists, as `parseSrcset` reads them."
12372
+ "kind": "js",
12373
+ "name": "AparteImagePolicy",
12374
+ "declaration": {
12375
+ "name": "AparteImagePolicy",
12376
+ "module": "./image-policy.js"
12377
+ }
12320
12378
  },
12321
12379
  {
12322
- "kind": "function",
12323
- "name": "imageHost",
12324
- "return": {
12325
- "type": {
12326
- "text": "string"
12327
- }
12328
- },
12329
- "parameters": [
12330
- {
12331
- "name": "address",
12332
- "type": {
12333
- "text": "string"
12334
- }
12335
- }
12336
- ],
12337
- "description": "Where a held picture would load from, as the reader is shown it: the host, exactly — a\nlook-alike name is the reason to show it, which is also why its end, the part a reader\njudges by, is never cut (the chip wraps it) — and, for an address that resolves to no host\n(a relative one on a server), the address itself, cut short."
12380
+ "kind": "js",
12381
+ "name": "AparteLinkDecision",
12382
+ "declaration": {
12383
+ "name": "AparteLinkDecision",
12384
+ "module": "./link-target.js"
12385
+ }
12338
12386
  },
12339
12387
  {
12340
- "kind": "function",
12341
- "name": "heldImageHtml",
12342
- "return": {
12343
- "type": {
12344
- "text": "string"
12345
- }
12346
- },
12347
- "parameters": [
12348
- {
12349
- "name": "address",
12350
- "type": {
12351
- "text": "string"
12352
- }
12353
- },
12354
- {
12355
- "name": "alt",
12356
- "type": {
12357
- "text": "string"
12358
- }
12359
- },
12360
- {
12361
- "name": "words",
12362
- "type": {
12363
- "text": "HeldImageWords"
12364
- }
12365
- },
12366
- {
12367
- "name": "inLink",
12368
- "default": "false"
12369
- }
12370
- ],
12371
- "description": "A held picture: a link to it that wears the tag recipe, names where it would load from, and\ncarries what it holds in two attributes, so a later pass can draw it again from them alone.\nWithout script it opens the picture in a new tab; with core's listener it loads in place.\n\nInside a link (`[![build](badge.svg)](https://ci…)`) it is a `<span role=\"button\">` instead: a\nlink inside a link is taken apart by the HTML parser, which would leave the reply's own link\nempty and the picture outside it."
12388
+ "kind": "js",
12389
+ "name": "AparteLinkTarget",
12390
+ "declaration": {
12391
+ "name": "AparteLinkTarget",
12392
+ "module": "./link-target.js"
12393
+ }
12394
+ },
12395
+ {
12396
+ "kind": "js",
12397
+ "name": "defaultSanitizer",
12398
+ "declaration": {
12399
+ "name": "defaultSanitizer",
12400
+ "module": "./sanitize.js"
12401
+ }
12402
+ },
12403
+ {
12404
+ "kind": "js",
12405
+ "name": "isSafeUrl",
12406
+ "declaration": {
12407
+ "name": "isSafeUrl",
12408
+ "module": "./sanitize.js"
12409
+ }
12410
+ },
12411
+ {
12412
+ "kind": "js",
12413
+ "name": "AparteIconProvider",
12414
+ "declaration": {
12415
+ "name": "AparteIconProvider",
12416
+ "module": "./icon-provider.js"
12417
+ }
12372
12418
  },
12373
12419
  {
12374
- "kind": "function",
12375
- "name": "applyImagePolicy",
12376
- "return": {
12377
- "type": {
12378
- "text": "string"
12379
- }
12380
- },
12381
- "parameters": [
12382
- {
12383
- "name": "html",
12384
- "type": {
12385
- "text": "string"
12386
- }
12387
- },
12388
- {
12389
- "name": "decide",
12390
- "type": {
12391
- "text": "(address: string) => AparteImageDecision"
12392
- }
12393
- },
12394
- {
12395
- "name": "words",
12396
- "type": {
12397
- "text": "() => HeldImageWords"
12398
- }
12399
- }
12400
- ],
12401
- "description": "Apply the policy to sanitized HTML. A picture's own address — its `src`, else its first\n`srcset` one — decides what it does: it loads, it is held (drawn as `heldImageHtml`), or it\ngoes. One that loads gains `referrerpolicy=\"no-referrer\"` and keeps, of its `srcset`, only the\ncandidates that load, written again (`writeSrcset`) so the browser picks among exactly what was\njudged; a `<source>` keeps its loading candidates the same way, or goes. A held picture already\nin the HTML is drawn again from what it carries, so running the pass twice gives what running\nit once gave, and a picture the reader chose to see stays shown however it was written.\n\nIn a browser it walks an inert `<template>`, where nothing it touches is fetched; without a\nDOM it reads the tags the way the sanitizer's own DOM-free path does."
12420
+ "kind": "js",
12421
+ "name": "AparteIconName",
12422
+ "declaration": {
12423
+ "name": "AparteIconName",
12424
+ "module": "./icon-provider.js"
12425
+ }
12402
12426
  },
12403
- {
12404
- "kind": "function",
12405
- "name": "applyImagePolicyWithoutDom",
12406
- "return": {
12407
- "type": {
12408
- "text": "string"
12409
- }
12410
- },
12411
- "parameters": [
12412
- {
12413
- "name": "html",
12414
- "type": {
12415
- "text": "string"
12416
- }
12417
- },
12418
- {
12419
- "name": "decide",
12420
- "type": {
12421
- "text": "(address: string) => AparteImageDecision"
12422
- }
12423
- },
12424
- {
12425
- "name": "words",
12426
- "type": {
12427
- "text": "() => HeldImageWords"
12428
- }
12429
- }
12430
- ],
12431
- "description": "The same pass for a runtime with no DOM (a server render, a Worker). Like the sanitizer's\nDOM-free path it is a safety net, not a parser: it reads tags with the sanitizer's own\nreader, leaves comments and raw-text elements alone, and writes back only what it changed.\nExported for the parity suite; not from the package barrel."
12432
- }
12433
- ],
12434
- "exports": [
12435
12427
  {
12436
12428
  "kind": "js",
12437
- "name": "resolveImageAddress",
12429
+ "name": "AparteCoreIconName",
12438
12430
  "declaration": {
12439
- "name": "resolveImageAddress",
12440
- "module": "src/config/image-policy.ts"
12431
+ "name": "AparteCoreIconName",
12432
+ "module": "./icon-provider.js"
12441
12433
  }
12442
12434
  },
12443
12435
  {
12444
12436
  "kind": "js",
12445
- "name": "sameImagePolicy",
12437
+ "name": "APARTE_DEFAULT_ICON_FALLBACKS",
12446
12438
  "declaration": {
12447
- "name": "sameImagePolicy",
12448
- "module": "src/config/image-policy.ts"
12439
+ "name": "APARTE_DEFAULT_ICON_FALLBACKS",
12440
+ "module": "./icon-provider.js"
12449
12441
  }
12450
12442
  },
12451
12443
  {
12452
12444
  "kind": "js",
12453
- "name": "compileImagePolicy",
12445
+ "name": "AparteAvatarProvider",
12454
12446
  "declaration": {
12455
- "name": "compileImagePolicy",
12456
- "module": "src/config/image-policy.ts"
12447
+ "name": "AparteAvatarProvider",
12448
+ "module": "./avatar-provider.js"
12457
12449
  }
12458
12450
  },
12459
12451
  {
12460
12452
  "kind": "js",
12461
- "name": "decideImageAddress",
12453
+ "name": "AparteStatusRenderer",
12462
12454
  "declaration": {
12463
- "name": "decideImageAddress",
12464
- "module": "src/config/image-policy.ts"
12455
+ "name": "AparteStatusRenderer",
12456
+ "module": "./status-renderer.js"
12465
12457
  }
12466
12458
  },
12467
12459
  {
12468
12460
  "kind": "js",
12469
- "name": "rememberShownImage",
12461
+ "name": "AparteErrorRenderer",
12470
12462
  "declaration": {
12471
- "name": "rememberShownImage",
12472
- "module": "src/config/image-policy.ts"
12463
+ "name": "AparteErrorRenderer",
12464
+ "module": "./error-renderer.js"
12473
12465
  }
12474
12466
  },
12475
12467
  {
12476
12468
  "kind": "js",
12477
- "name": "shownImagesOf",
12469
+ "name": "AparteAttachmentRenderer",
12478
12470
  "declaration": {
12479
- "name": "shownImagesOf",
12480
- "module": "src/config/image-policy.ts"
12471
+ "name": "AparteAttachmentRenderer",
12472
+ "module": "./attachment-renderer.js"
12481
12473
  }
12482
12474
  },
12483
12475
  {
12484
12476
  "kind": "js",
12485
- "name": "forgetShownImages",
12477
+ "name": "AparteElicitationFieldRenderer",
12486
12478
  "declaration": {
12487
- "name": "forgetShownImages",
12488
- "module": "src/config/image-policy.ts"
12479
+ "name": "AparteElicitationFieldRenderer",
12480
+ "module": "./elicitation-field-renderer.js"
12489
12481
  }
12490
12482
  },
12491
12483
  {
12492
12484
  "kind": "js",
12493
- "name": "parseSrcset",
12485
+ "name": "AparteElicitationFieldContext",
12494
12486
  "declaration": {
12495
- "name": "parseSrcset",
12496
- "module": "src/config/image-policy.ts"
12487
+ "name": "AparteElicitationFieldContext",
12488
+ "module": "./elicitation-field-renderer.js"
12497
12489
  }
12498
12490
  },
12499
12491
  {
12500
12492
  "kind": "js",
12501
- "name": "srcsetUrls",
12493
+ "name": "AparteElicitationFieldControl",
12502
12494
  "declaration": {
12503
- "name": "srcsetUrls",
12504
- "module": "src/config/image-policy.ts"
12495
+ "name": "AparteElicitationFieldControl",
12496
+ "module": "./elicitation-field-renderer.js"
12505
12497
  }
12506
12498
  },
12507
12499
  {
12508
12500
  "kind": "js",
12509
- "name": "imageHost",
12501
+ "name": "AparteSiblingNavRenderer",
12510
12502
  "declaration": {
12511
- "name": "imageHost",
12512
- "module": "src/config/image-policy.ts"
12503
+ "name": "AparteSiblingNavRenderer",
12504
+ "module": "./sibling-nav-renderer.js"
12513
12505
  }
12514
12506
  },
12515
12507
  {
12516
12508
  "kind": "js",
12517
- "name": "heldImageHtml",
12509
+ "name": "AparteBubbleShellRenderer",
12518
12510
  "declaration": {
12519
- "name": "heldImageHtml",
12520
- "module": "src/config/image-policy.ts"
12511
+ "name": "AparteBubbleShellRenderer",
12512
+ "module": "./bubble-shell-renderer.js"
12521
12513
  }
12522
12514
  },
12523
12515
  {
12524
12516
  "kind": "js",
12525
- "name": "applyImagePolicy",
12517
+ "name": "AparteStepLabel",
12526
12518
  "declaration": {
12527
- "name": "applyImagePolicy",
12528
- "module": "src/config/image-policy.ts"
12519
+ "name": "AparteStepLabel",
12520
+ "module": "./step-label.js"
12529
12521
  }
12530
12522
  },
12531
12523
  {
12532
12524
  "kind": "js",
12533
- "name": "applyImagePolicyWithoutDom",
12525
+ "name": "AparteStepLabelContext",
12534
12526
  "declaration": {
12535
- "name": "applyImagePolicyWithoutDom",
12536
- "module": "src/config/image-policy.ts"
12527
+ "name": "AparteStepLabelContext",
12528
+ "module": "./step-label.js"
12537
12529
  }
12538
- }
12539
- ]
12540
- },
12541
- {
12542
- "kind": "javascript-module",
12543
- "path": "src/config/index.ts",
12544
- "declarations": [],
12545
- "exports": [
12530
+ },
12546
12531
  {
12547
12532
  "kind": "js",
12548
- "name": "aparteGlobalConfig",
12533
+ "name": "AparteLocale",
12549
12534
  "declaration": {
12550
- "name": "aparteGlobalConfig",
12551
- "module": "./aparte-config.js"
12535
+ "name": "AparteLocale",
12536
+ "module": "./locale.js"
12552
12537
  }
12553
12538
  },
12554
12539
  {
12555
12540
  "kind": "js",
12556
- "name": "AparteConfig",
12541
+ "name": "AparteLocaleExtensions",
12557
12542
  "declaration": {
12558
- "name": "AparteConfig",
12559
- "module": "./aparte-config.js"
12543
+ "name": "AparteLocaleExtensions",
12544
+ "module": "./locale.js"
12560
12545
  }
12561
12546
  },
12562
12547
  {
12563
12548
  "kind": "js",
12564
- "name": "APARTE_DEFAULT_BUBBLE_ACTIONS",
12549
+ "name": "APARTE_DEFAULT_LOCALE",
12565
12550
  "declaration": {
12566
- "name": "APARTE_DEFAULT_BUBBLE_ACTIONS",
12567
- "module": "./aparte-config.js"
12551
+ "name": "APARTE_DEFAULT_LOCALE",
12552
+ "module": "./locale.js"
12568
12553
  }
12569
12554
  },
12570
12555
  {
12571
12556
  "kind": "js",
12572
- "name": "APARTE_DEFAULT_HOST_HANDLERS",
12557
+ "name": "AparteAction",
12573
12558
  "declaration": {
12574
- "name": "APARTE_DEFAULT_HOST_HANDLERS",
12575
- "module": "./aparte-config.js"
12559
+ "name": "AparteAction",
12560
+ "module": "./action-provider.js"
12576
12561
  }
12577
12562
  },
12578
12563
  {
12579
12564
  "kind": "js",
12580
- "name": "onRenderersChange",
12565
+ "name": "AparteActionZone",
12581
12566
  "declaration": {
12582
- "name": "onRenderersChange",
12583
- "module": "./aparte-config.js"
12567
+ "name": "AparteActionZone",
12568
+ "module": "./action-provider.js"
12584
12569
  }
12570
+ }
12571
+ ]
12572
+ },
12573
+ {
12574
+ "kind": "javascript-module",
12575
+ "path": "src/config/link-target.ts",
12576
+ "declarations": [
12577
+ {
12578
+ "kind": "function",
12579
+ "name": "linkTargetAttributes",
12580
+ "return": {
12581
+ "type": {
12582
+ "text": "ReadonlyArray<[string, string]>"
12583
+ }
12584
+ },
12585
+ "parameters": [
12586
+ {
12587
+ "name": "mode",
12588
+ "type": {
12589
+ "text": "AparteLinkTarget"
12590
+ }
12591
+ },
12592
+ {
12593
+ "name": "href",
12594
+ "type": {
12595
+ "text": "string"
12596
+ }
12597
+ },
12598
+ {
12599
+ "name": "wish",
12600
+ "type": {
12601
+ "text": "string"
12602
+ }
12603
+ }
12604
+ ],
12605
+ "description": "The `target` and `rel` a link to `href` gets under `mode`, `wish` being the `target` its markup\nasked for: a new tab, unless the mode is `'external-only'` or the link stays in the page or\nhands over to another app, which get the sanitizer's clamp."
12606
+ },
12607
+ {
12608
+ "kind": "function",
12609
+ "name": "linkDecision",
12610
+ "return": {
12611
+ "type": {
12612
+ "text": "AparteLinkDecision"
12613
+ }
12614
+ },
12615
+ "parameters": [
12616
+ {
12617
+ "name": "mode",
12618
+ "type": {
12619
+ "text": "AparteLinkTarget"
12620
+ }
12621
+ },
12622
+ {
12623
+ "name": "href",
12624
+ "type": {
12625
+ "text": "string"
12626
+ }
12627
+ }
12628
+ ],
12629
+ "description": "What a link to `href` sets under `mode`, asked for no target of its own: what `decideLink` answers."
12630
+ },
12631
+ {
12632
+ "kind": "function",
12633
+ "name": "applyLinkTarget",
12634
+ "return": {
12635
+ "type": {
12636
+ "text": "string"
12637
+ }
12638
+ },
12639
+ "parameters": [
12640
+ {
12641
+ "name": "html",
12642
+ "type": {
12643
+ "text": "string"
12644
+ }
12645
+ },
12646
+ {
12647
+ "name": "mode",
12648
+ "type": {
12649
+ "text": "AparteLinkTarget"
12650
+ }
12651
+ }
12652
+ ],
12653
+ "description": "Apply the link target to sanitized HTML. Every `<a href>` gets the `target`\n`linkTargetAttributes` decides from its address and the target it carries; one that opens a\nnew tab also gets `rel` holding what it had plus `noopener noreferrer` (never `opener`), and\none that stays in the page keeps its `rel` as written. Both are written after its other\nattributes so both paths build the same tree. HTML with nothing to\nchange comes back as it came: serialized again, it would be rewritten where the pass changed\nnothing, and `'external-only'` over the built-in sanitizer changes nothing at all.\n\nIn a browser it walks an inert `<template>`; without a DOM it reads the tags the way the\nsanitizer's own DOM-free path does."
12585
12654
  },
12586
12655
  {
12587
- "kind": "js",
12588
- "name": "resolveConfig",
12589
- "declaration": {
12590
- "name": "resolveConfig",
12591
- "module": "./config-context.js"
12592
- }
12593
- },
12656
+ "kind": "function",
12657
+ "name": "applyLinkTargetWithoutDom",
12658
+ "return": {
12659
+ "type": {
12660
+ "text": "string"
12661
+ }
12662
+ },
12663
+ "parameters": [
12664
+ {
12665
+ "name": "html",
12666
+ "type": {
12667
+ "text": "string"
12668
+ }
12669
+ },
12670
+ {
12671
+ "name": "mode",
12672
+ "type": {
12673
+ "text": "AparteLinkTarget"
12674
+ }
12675
+ }
12676
+ ],
12677
+ "description": "The same pass for a runtime with no DOM (a server render, a Worker). Like the sanitizer's\nDOM-free path it is a safety net, not a parser: it reads tags with the sanitizer's own reader,\nleaves comments and raw-text elements alone, and writes back only the tags it changed.\nExported for the parity suite; not from the package barrel."
12678
+ }
12679
+ ],
12680
+ "exports": [
12594
12681
  {
12595
12682
  "kind": "js",
12596
- "name": "attachConfig",
12683
+ "name": "linkTargetAttributes",
12597
12684
  "declaration": {
12598
- "name": "attachConfig",
12599
- "module": "./config-context.js"
12685
+ "name": "linkTargetAttributes",
12686
+ "module": "src/config/link-target.ts"
12600
12687
  }
12601
12688
  },
12602
12689
  {
12603
12690
  "kind": "js",
12604
- "name": "detachConfig",
12691
+ "name": "linkDecision",
12605
12692
  "declaration": {
12606
- "name": "detachConfig",
12607
- "module": "./config-context.js"
12693
+ "name": "linkDecision",
12694
+ "module": "src/config/link-target.ts"
12608
12695
  }
12609
12696
  },
12610
12697
  {
12611
12698
  "kind": "js",
12612
- "name": "runWithConfig",
12699
+ "name": "applyLinkTarget",
12613
12700
  "declaration": {
12614
- "name": "runWithConfig",
12615
- "module": "./config-context.js"
12701
+ "name": "applyLinkTarget",
12702
+ "module": "src/config/link-target.ts"
12616
12703
  }
12617
12704
  },
12618
12705
  {
12619
12706
  "kind": "js",
12620
- "name": "contextConfig",
12707
+ "name": "applyLinkTargetWithoutDom",
12621
12708
  "declaration": {
12622
- "name": "contextConfig",
12623
- "module": "./config-context.js"
12709
+ "name": "applyLinkTargetWithoutDom",
12710
+ "module": "src/config/link-target.ts"
12624
12711
  }
12625
- },
12712
+ }
12713
+ ]
12714
+ },
12715
+ {
12716
+ "kind": "javascript-module",
12717
+ "path": "src/config/locale.ts",
12718
+ "declarations": [
12626
12719
  {
12627
- "kind": "js",
12628
- "name": "APARTE_HOST_ATTR",
12629
- "declaration": {
12630
- "name": "APARTE_HOST_ATTR",
12631
- "module": "./config-context.js"
12632
- }
12633
- },
12720
+ "kind": "variable",
12721
+ "name": "APARTE_DEFAULT_LOCALE",
12722
+ "type": {
12723
+ "text": "AparteLocale"
12724
+ },
12725
+ "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\", queueLabel: \"Sent when the reply ends\", queueEdit: \"Edit\", queueRemove: \"Remove\", 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}?\", approvalAskBy: \"Allow {tool} for {agent}?\", 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\", toolQueued: \"Queued\", 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\" }",
12726
+ "description": "Default English Locale (Zero-dependency)\nHardcoded to ensure the core works out-of-the-box."
12727
+ }
12728
+ ],
12729
+ "exports": [
12634
12730
  {
12635
12731
  "kind": "js",
12636
- "name": "subscribeConfigChange",
12732
+ "name": "APARTE_DEFAULT_LOCALE",
12637
12733
  "declaration": {
12638
- "name": "subscribeConfigChange",
12639
- "module": "./config-subscribe.js"
12734
+ "name": "APARTE_DEFAULT_LOCALE",
12735
+ "module": "src/config/locale.ts"
12640
12736
  }
12641
- },
12737
+ }
12738
+ ]
12739
+ },
12740
+ {
12741
+ "kind": "javascript-module",
12742
+ "path": "src/config/model-catalogue.ts",
12743
+ "declarations": [
12642
12744
  {
12643
- "kind": "js",
12644
- "name": "APARTE_CONFIG_CHANGE",
12645
- "declaration": {
12646
- "name": "APARTE_CONFIG_CHANGE",
12647
- "module": "./config-subscribe.js"
12648
- }
12649
- },
12745
+ "kind": "function",
12746
+ "name": "createModelCatalogue",
12747
+ "return": {
12748
+ "type": {
12749
+ "text": "AparteAIProvider"
12750
+ }
12751
+ },
12752
+ "parameters": [
12753
+ {
12754
+ "name": "options",
12755
+ "type": {
12756
+ "text": "AparteModelCatalogueOptions"
12757
+ }
12758
+ }
12759
+ ],
12760
+ "description": "A provider that lists models and runs none, for a chat whose turns run elsewhere: a server\nloop (`createAgentStreamRunner`) or an agent with its own loop. Register it and the rest of\nthe page treats its models like any provider's: `<aparte-model-selector>` lists them, the\none selected goes out on every request (`setModelConfig`, or the selector with `persist`),\nand a model's capabilities gate what a model without them cannot do (tools, images).\n\nNothing in it ever answers a turn: with no runner of the turns to call instead, a send ends\nin an error that says so (`PROVIDER_MISCONFIGURED`), never in silence."
12761
+ }
12762
+ ],
12763
+ "exports": [
12650
12764
  {
12651
12765
  "kind": "js",
12652
12766
  "name": "createModelCatalogue",
12653
12767
  "declaration": {
12654
12768
  "name": "createModelCatalogue",
12655
- "module": "./model-catalogue.js"
12769
+ "module": "src/config/model-catalogue.ts"
12656
12770
  }
12657
- },
12771
+ }
12772
+ ]
12773
+ },
12774
+ {
12775
+ "kind": "javascript-module",
12776
+ "path": "src/config/sanitize.ts",
12777
+ "declarations": [
12658
12778
  {
12659
- "kind": "js",
12660
- "name": "AparteModelCatalogueOptions",
12661
- "declaration": {
12662
- "name": "AparteModelCatalogueOptions",
12663
- "module": "./model-catalogue.js"
12664
- }
12779
+ "kind": "variable",
12780
+ "name": "DANGEROUS_TAGS",
12781
+ "default": "new Set([ 'script', 'style', 'iframe', 'frame', 'frameset', 'object', 'embed', 'applet', 'form', 'button', 'textarea', 'select', 'option', 'optgroup', 'link', 'meta', 'base', 'title', 'head', 'html', 'body', 'template', 'noscript', 'svg', 'math', 'portal', ])",
12782
+ "description": "Tags dropped wholesale — content and all (never unwrapped to text).\n\nExported for the DOM-free path's own suite: both of `fallbackScrub`'s regexes\nare built from this Set, and the test that proves it loops over the Set rather\nthan a copy. Not re-exported from the package barrel — it is core's list, not\na contract."
12665
12783
  },
12666
12784
  {
12667
- "kind": "js",
12668
- "name": "AparteConfigAware",
12669
- "declaration": {
12670
- "name": "AparteConfigAware",
12671
- "module": "./config-context.js"
12672
- }
12785
+ "kind": "variable",
12786
+ "name": "CONTROL_WS",
12787
+ "default": "/[\\u0000-\\u0020]+/g",
12788
+ "description": "Whitespace + C0 control chars, used to obfuscate a scheme (e.g. \" javascript:\" or \"java\\tscript:\").\nExported for the link target's pass (`link-target.ts`), which reads an address the same way; not\nfrom the package barrel."
12673
12789
  },
12674
12790
  {
12675
- "kind": "js",
12676
- "name": "AparteConfigChangeEventDetail",
12677
- "declaration": {
12678
- "name": "AparteConfigChangeEventDetail",
12679
- "module": "./aparte-config.js"
12680
- }
12791
+ "kind": "variable",
12792
+ "name": "RESERVED_ATTRIBUTES",
12793
+ "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', ])",
12794
+ "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."
12681
12795
  },
12682
12796
  {
12683
- "kind": "js",
12684
- "name": "AparteMarkdownProvider",
12685
- "declaration": {
12686
- "name": "AparteMarkdownProvider",
12687
- "module": "./aparte-config.js"
12688
- }
12797
+ "kind": "variable",
12798
+ "name": "RESERVED_ATTRIBUTE_PREFIXES",
12799
+ "type": {
12800
+ "text": "array"
12801
+ },
12802
+ "default": "['data-aparte-dialog-', 'data-aparte-sidebar-', 'data-checkpoint-']",
12803
+ "description": "Families of reserved attributes: `-open`/`-close`/`-static`, `-toggle`/`-search`, `-action`/`-reason`."
12689
12804
  },
12690
12805
  {
12691
- "kind": "js",
12692
- "name": "AparteStreamingMarkdownProvider",
12693
- "declaration": {
12694
- "name": "AparteStreamingMarkdownProvider",
12695
- "module": "./aparte-config.js"
12696
- }
12806
+ "kind": "function",
12807
+ "name": "isReservedAttribute",
12808
+ "return": {
12809
+ "type": {
12810
+ "text": "boolean"
12811
+ }
12812
+ },
12813
+ "parameters": [
12814
+ {
12815
+ "name": "name",
12816
+ "type": {
12817
+ "text": "string"
12818
+ }
12819
+ }
12820
+ ],
12821
+ "description": "True when `name` (lower case) is an attribute core reads, so model markup may not carry it."
12697
12822
  },
12698
12823
  {
12699
- "kind": "js",
12700
- "name": "AparteStreamingMarkdownRenderer",
12701
- "declaration": {
12702
- "name": "AparteStreamingMarkdownRenderer",
12703
- "module": "./aparte-config.js"
12704
- }
12824
+ "kind": "function",
12825
+ "name": "isSafeUrl",
12826
+ "return": {
12827
+ "type": {
12828
+ "text": "boolean"
12829
+ }
12830
+ },
12831
+ "parameters": [
12832
+ {
12833
+ "name": "value",
12834
+ "type": {
12835
+ "text": "string"
12836
+ }
12837
+ },
12838
+ {
12839
+ "name": "tag",
12840
+ "type": {
12841
+ "text": "string"
12842
+ }
12843
+ }
12844
+ ]
12705
12845
  },
12706
12846
  {
12707
- "kind": "js",
12708
- "name": "AparteCodeLanguageRenderer",
12709
- "declaration": {
12710
- "name": "AparteCodeLanguageRenderer",
12711
- "module": "./aparte-config.js"
12712
- }
12847
+ "kind": "function",
12848
+ "name": "linkAttributes",
12849
+ "return": {
12850
+ "type": {
12851
+ "text": "Array<[string, string]>"
12852
+ }
12853
+ },
12854
+ "parameters": [
12855
+ {
12856
+ "name": "href",
12857
+ "type": {
12858
+ "text": "string"
12859
+ }
12860
+ },
12861
+ {
12862
+ "name": "targetWish",
12863
+ "type": {
12864
+ "text": "string"
12865
+ }
12866
+ }
12867
+ ],
12868
+ "description": "The `target` and `rel` an `<a>` gets. The model's `target` is read as a WISH and clamped;\n`rel` is never copied. `href` is the one that was kept ('' when it was dropped).\n\nThis is the floor, and the whole of `setLinkTarget('external-only')`: the config's link pass\n(`link-target.ts`) applies it again after whichever sanitizer is set, and under the default,\n`'new-tab'`, opens a same-site link in a new tab on top of it. Exported for that pass; not\nfrom the package barrel."
12713
12869
  },
12714
12870
  {
12715
- "kind": "js",
12716
- "name": "AparteCodeLanguageContext",
12717
- "declaration": {
12718
- "name": "AparteCodeLanguageContext",
12719
- "module": "./aparte-config.js"
12720
- }
12871
+ "kind": "function",
12872
+ "name": "readTag",
12873
+ "return": {
12874
+ "type": {
12875
+ "text": "{ tag: string; attrs: Array<[string, string]>; end: number }"
12876
+ }
12877
+ },
12878
+ "parameters": [
12879
+ {
12880
+ "name": "html",
12881
+ "type": {
12882
+ "text": "string"
12883
+ }
12884
+ },
12885
+ {
12886
+ "name": "nameAt",
12887
+ "type": {
12888
+ "text": "number"
12889
+ }
12890
+ }
12891
+ ],
12892
+ "description": "One tag read from `nameAt` (the first letter of its name) the way a browser's tokenizer reads\nit: a quote ends where its match is, an unquoted value at a space or `>`, `/` and a closing\nquote separate attributes, the first of two equal names wins, and a value is read with the\nentities that can spell a checked character decoded. `end` is the index past its `>`, or `-1`\nwhen the text ends inside the tag.\n\nExported for the DOM-free passes of the image policy (`image-policy.ts`) and the link target\n(`link-target.ts`), which have to find the same tags in the same text this scrub wrote; not\nfrom the package barrel."
12721
12893
  },
12722
12894
  {
12723
- "kind": "js",
12724
- "name": "AparteHighlightProvider",
12725
- "declaration": {
12726
- "name": "AparteHighlightProvider",
12727
- "module": "./aparte-config.js"
12728
- }
12729
- },
12895
+ "kind": "function",
12896
+ "name": "defaultSanitizer",
12897
+ "return": {
12898
+ "type": {
12899
+ "text": "string"
12900
+ }
12901
+ },
12902
+ "parameters": [
12903
+ {
12904
+ "name": "html",
12905
+ "type": {
12906
+ "text": "string"
12907
+ }
12908
+ }
12909
+ ],
12910
+ "description": "The built-in sanitizer. Parses `html` with the platform DOMParser, rebuilds an\nallowlisted tree, and re-serializes it. Falls back to a regex scrub only when\nno DOMParser exists (non-browser runtime)."
12911
+ }
12912
+ ],
12913
+ "exports": [
12730
12914
  {
12731
12915
  "kind": "js",
12732
- "name": "AparteSystemPromptVarsProvider",
12916
+ "name": "DANGEROUS_TAGS",
12733
12917
  "declaration": {
12734
- "name": "AparteSystemPromptVarsProvider",
12735
- "module": "./aparte-config.js"
12918
+ "name": "DANGEROUS_TAGS",
12919
+ "module": "src/config/sanitize.ts"
12736
12920
  }
12737
12921
  },
12738
12922
  {
12739
12923
  "kind": "js",
12740
- "name": "AparteModelPreference",
12924
+ "name": "CONTROL_WS",
12741
12925
  "declaration": {
12742
- "name": "AparteModelPreference",
12743
- "module": "./aparte-config.js"
12926
+ "name": "CONTROL_WS",
12927
+ "module": "src/config/sanitize.ts"
12744
12928
  }
12745
12929
  },
12746
12930
  {
12747
12931
  "kind": "js",
12748
- "name": "AparteModelPreferenceProvider",
12932
+ "name": "RESERVED_ATTRIBUTES",
12749
12933
  "declaration": {
12750
- "name": "AparteModelPreferenceProvider",
12751
- "module": "./aparte-config.js"
12934
+ "name": "RESERVED_ATTRIBUTES",
12935
+ "module": "src/config/sanitize.ts"
12752
12936
  }
12753
12937
  },
12754
12938
  {
12755
12939
  "kind": "js",
12756
- "name": "AparteSanitizer",
12940
+ "name": "RESERVED_ATTRIBUTE_PREFIXES",
12757
12941
  "declaration": {
12758
- "name": "AparteSanitizer",
12759
- "module": "./sanitize.js"
12942
+ "name": "RESERVED_ATTRIBUTE_PREFIXES",
12943
+ "module": "src/config/sanitize.ts"
12760
12944
  }
12761
12945
  },
12762
12946
  {
12763
12947
  "kind": "js",
12764
- "name": "AparteImageDecision",
12948
+ "name": "isReservedAttribute",
12765
12949
  "declaration": {
12766
- "name": "AparteImageDecision",
12767
- "module": "./image-policy.js"
12950
+ "name": "isReservedAttribute",
12951
+ "module": "src/config/sanitize.ts"
12768
12952
  }
12769
12953
  },
12770
12954
  {
12771
12955
  "kind": "js",
12772
- "name": "AparteImagePolicy",
12956
+ "name": "isSafeUrl",
12773
12957
  "declaration": {
12774
- "name": "AparteImagePolicy",
12775
- "module": "./image-policy.js"
12958
+ "name": "isSafeUrl",
12959
+ "module": "src/config/sanitize.ts"
12776
12960
  }
12777
12961
  },
12778
12962
  {
12779
12963
  "kind": "js",
12780
- "name": "AparteLinkDecision",
12964
+ "name": "linkAttributes",
12781
12965
  "declaration": {
12782
- "name": "AparteLinkDecision",
12783
- "module": "./link-target.js"
12966
+ "name": "linkAttributes",
12967
+ "module": "src/config/sanitize.ts"
12784
12968
  }
12785
12969
  },
12786
12970
  {
12787
12971
  "kind": "js",
12788
- "name": "AparteLinkTarget",
12972
+ "name": "readTag",
12789
12973
  "declaration": {
12790
- "name": "AparteLinkTarget",
12791
- "module": "./link-target.js"
12974
+ "name": "readTag",
12975
+ "module": "src/config/sanitize.ts"
12792
12976
  }
12793
12977
  },
12794
12978
  {
@@ -12796,748 +12980,564 @@
12796
12980
  "name": "defaultSanitizer",
12797
12981
  "declaration": {
12798
12982
  "name": "defaultSanitizer",
12799
- "module": "./sanitize.js"
12983
+ "module": "src/config/sanitize.ts"
12800
12984
  }
12801
- },
12985
+ }
12986
+ ]
12987
+ },
12988
+ {
12989
+ "kind": "javascript-module",
12990
+ "path": "src/config/sibling-nav-renderer.ts",
12991
+ "declarations": [],
12992
+ "exports": []
12993
+ },
12994
+ {
12995
+ "kind": "javascript-module",
12996
+ "path": "src/config/status-renderer.ts",
12997
+ "declarations": [],
12998
+ "exports": []
12999
+ },
13000
+ {
13001
+ "kind": "javascript-module",
13002
+ "path": "src/config/step-label.ts",
13003
+ "declarations": [],
13004
+ "exports": []
13005
+ },
13006
+ {
13007
+ "kind": "javascript-module",
13008
+ "path": "src/config/tool-table.ts",
13009
+ "declarations": [
12802
13010
  {
12803
- "kind": "js",
12804
- "name": "isSafeUrl",
12805
- "declaration": {
12806
- "name": "isSafeUrl",
12807
- "module": "./sanitize.js"
12808
- }
12809
- },
13011
+ "kind": "class",
13012
+ "description": "",
13013
+ "name": "ToolTable",
13014
+ "members": [
13015
+ {
13016
+ "kind": "field",
13017
+ "name": "exact",
13018
+ "privacy": "private",
13019
+ "readonly": true,
13020
+ "default": "new Map<string, T>()"
13021
+ },
13022
+ {
13023
+ "kind": "field",
13024
+ "name": "patterns",
13025
+ "privacy": "private",
13026
+ "readonly": true,
13027
+ "default": "new Map<string, { re: RegExp; value: T }>()"
13028
+ },
13029
+ {
13030
+ "kind": "field",
13031
+ "name": "any",
13032
+ "type": {
13033
+ "text": "T | undefined"
13034
+ },
13035
+ "privacy": "private"
13036
+ },
13037
+ {
13038
+ "kind": "method",
13039
+ "name": "get",
13040
+ "return": {
13041
+ "type": {
13042
+ "text": "T | undefined"
13043
+ }
13044
+ },
13045
+ "parameters": [
13046
+ {
13047
+ "name": "match",
13048
+ "type": {
13049
+ "text": "AparteToolMatcher"
13050
+ }
13051
+ }
13052
+ ],
13053
+ "description": "The value registered under exactly this matcher — not a resolution."
13054
+ },
13055
+ {
13056
+ "kind": "method",
13057
+ "name": "set",
13058
+ "return": {
13059
+ "type": {
13060
+ "text": "void"
13061
+ }
13062
+ },
13063
+ "parameters": [
13064
+ {
13065
+ "name": "match",
13066
+ "type": {
13067
+ "text": "AparteToolMatcher"
13068
+ }
13069
+ },
13070
+ {
13071
+ "name": "value",
13072
+ "type": {
13073
+ "text": "T"
13074
+ }
13075
+ }
13076
+ ]
13077
+ },
13078
+ {
13079
+ "kind": "method",
13080
+ "name": "delete",
13081
+ "return": {
13082
+ "type": {
13083
+ "text": "void"
13084
+ }
13085
+ },
13086
+ "parameters": [
13087
+ {
13088
+ "name": "match",
13089
+ "type": {
13090
+ "text": "AparteToolMatcher"
13091
+ }
13092
+ }
13093
+ ]
13094
+ },
13095
+ {
13096
+ "kind": "method",
13097
+ "name": "resolve",
13098
+ "return": {
13099
+ "type": {
13100
+ "text": "{ value: T; level: ToolMatchLevel } | undefined"
13101
+ }
13102
+ },
13103
+ "parameters": [
13104
+ {
13105
+ "name": "name",
13106
+ "type": {
13107
+ "text": "string"
13108
+ }
13109
+ }
13110
+ ],
13111
+ "description": "The value that applies to a tool named `name`, and how specifically it names it."
13112
+ },
13113
+ {
13114
+ "kind": "method",
13115
+ "name": "values",
13116
+ "return": {
13117
+ "type": {
13118
+ "text": "T[]"
13119
+ }
13120
+ },
13121
+ "description": "Every value registered, whatever its matcher."
13122
+ },
13123
+ {
13124
+ "kind": "method",
13125
+ "name": "clear",
13126
+ "return": {
13127
+ "type": {
13128
+ "text": "void"
13129
+ }
13130
+ }
13131
+ }
13132
+ ]
13133
+ }
13134
+ ],
13135
+ "exports": [
12810
13136
  {
12811
13137
  "kind": "js",
12812
- "name": "AparteIconProvider",
13138
+ "name": "ToolTable",
12813
13139
  "declaration": {
12814
- "name": "AparteIconProvider",
12815
- "module": "./icon-provider.js"
13140
+ "name": "ToolTable",
13141
+ "module": "src/config/tool-table.ts"
12816
13142
  }
12817
- },
13143
+ }
13144
+ ]
13145
+ },
13146
+ {
13147
+ "kind": "javascript-module",
13148
+ "path": "src/components/index.ts",
13149
+ "declarations": [],
13150
+ "exports": [
12818
13151
  {
12819
13152
  "kind": "js",
12820
- "name": "AparteIconName",
13153
+ "name": "AparteChat",
12821
13154
  "declaration": {
12822
- "name": "AparteIconName",
12823
- "module": "./icon-provider.js"
13155
+ "name": "AparteChat",
13156
+ "module": "./chat/index.js"
12824
13157
  }
12825
13158
  },
12826
13159
  {
12827
13160
  "kind": "js",
12828
- "name": "AparteCoreIconName",
13161
+ "name": "AparteChatBubble",
12829
13162
  "declaration": {
12830
- "name": "AparteCoreIconName",
12831
- "module": "./icon-provider.js"
13163
+ "name": "AparteChatBubble",
13164
+ "module": "./bubble/index.js"
12832
13165
  }
12833
13166
  },
12834
13167
  {
12835
13168
  "kind": "js",
12836
- "name": "APARTE_DEFAULT_ICON_FALLBACKS",
13169
+ "name": "populateBubbleFromMessage",
12837
13170
  "declaration": {
12838
- "name": "APARTE_DEFAULT_ICON_FALLBACKS",
12839
- "module": "./icon-provider.js"
13171
+ "name": "populateBubbleFromMessage",
13172
+ "module": "./bubble/index.js"
12840
13173
  }
12841
13174
  },
12842
13175
  {
12843
13176
  "kind": "js",
12844
- "name": "AparteAvatarProvider",
13177
+ "name": "SyncableBubble",
12845
13178
  "declaration": {
12846
- "name": "AparteAvatarProvider",
12847
- "module": "./avatar-provider.js"
13179
+ "name": "SyncableBubble",
13180
+ "module": "./bubble/index.js"
12848
13181
  }
12849
13182
  },
12850
13183
  {
12851
13184
  "kind": "js",
12852
- "name": "AparteStatusRenderer",
13185
+ "name": "AparteChatStatus",
12853
13186
  "declaration": {
12854
- "name": "AparteStatusRenderer",
12855
- "module": "./status-renderer.js"
13187
+ "name": "AparteChatStatus",
13188
+ "module": "./status/index.js"
12856
13189
  }
12857
13190
  },
12858
13191
  {
12859
13192
  "kind": "js",
12860
- "name": "AparteErrorRenderer",
13193
+ "name": "AparteChatViewport",
12861
13194
  "declaration": {
12862
- "name": "AparteErrorRenderer",
12863
- "module": "./error-renderer.js"
13195
+ "name": "AparteChatViewport",
13196
+ "module": "./viewport/index.js"
12864
13197
  }
12865
13198
  },
12866
13199
  {
12867
13200
  "kind": "js",
12868
- "name": "AparteAttachmentRenderer",
13201
+ "name": "AparteComposer",
12869
13202
  "declaration": {
12870
- "name": "AparteAttachmentRenderer",
12871
- "module": "./attachment-renderer.js"
13203
+ "name": "AparteComposer",
13204
+ "module": "./composer/index.js"
12872
13205
  }
12873
13206
  },
12874
13207
  {
12875
13208
  "kind": "js",
12876
- "name": "AparteElicitationFieldRenderer",
13209
+ "name": "AparteComposerInput",
12877
13210
  "declaration": {
12878
- "name": "AparteElicitationFieldRenderer",
12879
- "module": "./elicitation-field-renderer.js"
13211
+ "name": "AparteComposerInput",
13212
+ "module": "./composer/index.js"
12880
13213
  }
12881
13214
  },
12882
13215
  {
12883
13216
  "kind": "js",
12884
- "name": "AparteElicitationFieldContext",
13217
+ "name": "AparteComposerSend",
12885
13218
  "declaration": {
12886
- "name": "AparteElicitationFieldContext",
12887
- "module": "./elicitation-field-renderer.js"
13219
+ "name": "AparteComposerSend",
13220
+ "module": "./composer/index.js"
12888
13221
  }
12889
13222
  },
12890
13223
  {
12891
13224
  "kind": "js",
12892
- "name": "AparteElicitationFieldControl",
13225
+ "name": "AparteComposerCancel",
12893
13226
  "declaration": {
12894
- "name": "AparteElicitationFieldControl",
12895
- "module": "./elicitation-field-renderer.js"
13227
+ "name": "AparteComposerCancel",
13228
+ "module": "./composer/index.js"
12896
13229
  }
12897
13230
  },
12898
13231
  {
12899
13232
  "kind": "js",
12900
- "name": "AparteSiblingNavRenderer",
13233
+ "name": "AparteComposerAttachments",
12901
13234
  "declaration": {
12902
- "name": "AparteSiblingNavRenderer",
12903
- "module": "./sibling-nav-renderer.js"
13235
+ "name": "AparteComposerAttachments",
13236
+ "module": "./composer/index.js"
12904
13237
  }
12905
13238
  },
12906
13239
  {
12907
13240
  "kind": "js",
12908
- "name": "AparteBubbleShellRenderer",
13241
+ "name": "AparteComposerAddAttachment",
12909
13242
  "declaration": {
12910
- "name": "AparteBubbleShellRenderer",
12911
- "module": "./bubble-shell-renderer.js"
13243
+ "name": "AparteComposerAddAttachment",
13244
+ "module": "./composer/index.js"
12912
13245
  }
12913
13246
  },
12914
13247
  {
12915
13248
  "kind": "js",
12916
- "name": "AparteStepLabel",
13249
+ "name": "AparteComposerAction",
12917
13250
  "declaration": {
12918
- "name": "AparteStepLabel",
12919
- "module": "./step-label.js"
13251
+ "name": "AparteComposerAction",
13252
+ "module": "./composer/index.js"
12920
13253
  }
12921
13254
  },
12922
13255
  {
12923
13256
  "kind": "js",
12924
- "name": "AparteStepLabelContext",
13257
+ "name": "AparteComposerToolbar",
12925
13258
  "declaration": {
12926
- "name": "AparteStepLabelContext",
12927
- "module": "./step-label.js"
13259
+ "name": "AparteComposerToolbar",
13260
+ "module": "./composer/index.js"
12928
13261
  }
12929
13262
  },
12930
13263
  {
12931
13264
  "kind": "js",
12932
- "name": "AparteLocale",
13265
+ "name": "AparteComposerEventMap",
12933
13266
  "declaration": {
12934
- "name": "AparteLocale",
12935
- "module": "./locale.js"
13267
+ "name": "AparteComposerEventMap",
13268
+ "module": "./composer/index.js"
12936
13269
  }
12937
13270
  },
12938
13271
  {
12939
13272
  "kind": "js",
12940
- "name": "AparteLocaleExtensions",
13273
+ "name": "AparteComposerEventType",
12941
13274
  "declaration": {
12942
- "name": "AparteLocaleExtensions",
12943
- "module": "./locale.js"
13275
+ "name": "AparteComposerEventType",
13276
+ "module": "./composer/index.js"
12944
13277
  }
12945
13278
  },
12946
13279
  {
12947
13280
  "kind": "js",
12948
- "name": "APARTE_DEFAULT_LOCALE",
13281
+ "name": "AparteComposerState",
12949
13282
  "declaration": {
12950
- "name": "APARTE_DEFAULT_LOCALE",
12951
- "module": "./locale.js"
13283
+ "name": "AparteComposerState",
13284
+ "module": "./composer/index.js"
12952
13285
  }
12953
13286
  },
12954
13287
  {
12955
13288
  "kind": "js",
12956
- "name": "AparteAction",
13289
+ "name": "AparteComposerChangeEventDetail",
12957
13290
  "declaration": {
12958
- "name": "AparteAction",
12959
- "module": "./action-provider.js"
13291
+ "name": "AparteComposerChangeEventDetail",
13292
+ "module": "./composer/index.js"
12960
13293
  }
12961
13294
  },
12962
13295
  {
12963
13296
  "kind": "js",
12964
- "name": "AparteActionZone",
13297
+ "name": "AparteComposerPanelMode",
12965
13298
  "declaration": {
12966
- "name": "AparteActionZone",
12967
- "module": "./action-provider.js"
13299
+ "name": "AparteComposerPanelMode",
13300
+ "module": "./composer/index.js"
12968
13301
  }
12969
- }
12970
- ]
12971
- },
12972
- {
12973
- "kind": "javascript-module",
12974
- "path": "src/config/link-target.ts",
12975
- "declarations": [
12976
- {
12977
- "kind": "function",
12978
- "name": "linkTargetAttributes",
12979
- "return": {
12980
- "type": {
12981
- "text": "ReadonlyArray<[string, string]>"
12982
- }
12983
- },
12984
- "parameters": [
12985
- {
12986
- "name": "mode",
12987
- "type": {
12988
- "text": "AparteLinkTarget"
12989
- }
12990
- },
12991
- {
12992
- "name": "href",
12993
- "type": {
12994
- "text": "string"
12995
- }
12996
- },
12997
- {
12998
- "name": "wish",
12999
- "type": {
13000
- "text": "string"
13001
- }
13002
- }
13003
- ],
13004
- "description": "The `target` and `rel` a link to `href` gets under `mode`, `wish` being the `target` its markup\nasked for: a new tab, unless the mode is `'external-only'` or the link stays in the page or\nhands over to another app, which get the sanitizer's clamp."
13005
- },
13006
- {
13007
- "kind": "function",
13008
- "name": "linkDecision",
13009
- "return": {
13010
- "type": {
13011
- "text": "AparteLinkDecision"
13012
- }
13013
- },
13014
- "parameters": [
13015
- {
13016
- "name": "mode",
13017
- "type": {
13018
- "text": "AparteLinkTarget"
13019
- }
13020
- },
13021
- {
13022
- "name": "href",
13023
- "type": {
13024
- "text": "string"
13025
- }
13026
- }
13027
- ],
13028
- "description": "What a link to `href` sets under `mode`, asked for no target of its own: what `decideLink` answers."
13029
- },
13030
- {
13031
- "kind": "function",
13032
- "name": "applyLinkTarget",
13033
- "return": {
13034
- "type": {
13035
- "text": "string"
13036
- }
13037
- },
13038
- "parameters": [
13039
- {
13040
- "name": "html",
13041
- "type": {
13042
- "text": "string"
13043
- }
13044
- },
13045
- {
13046
- "name": "mode",
13047
- "type": {
13048
- "text": "AparteLinkTarget"
13049
- }
13050
- }
13051
- ],
13052
- "description": "Apply the link target to sanitized HTML. Every `<a href>` gets the `target`\n`linkTargetAttributes` decides from its address and the target it carries; one that opens a\nnew tab also gets `rel` holding what it had plus `noopener noreferrer` (never `opener`), and\none that stays in the page keeps its `rel` as written. Both are written after its other\nattributes so both paths build the same tree. HTML with nothing to\nchange comes back as it came: serialized again, it would be rewritten where the pass changed\nnothing, and `'external-only'` over the built-in sanitizer changes nothing at all.\n\nIn a browser it walks an inert `<template>`; without a DOM it reads the tags the way the\nsanitizer's own DOM-free path does."
13053
- },
13054
- {
13055
- "kind": "function",
13056
- "name": "applyLinkTargetWithoutDom",
13057
- "return": {
13058
- "type": {
13059
- "text": "string"
13060
- }
13061
- },
13062
- "parameters": [
13063
- {
13064
- "name": "html",
13065
- "type": {
13066
- "text": "string"
13067
- }
13068
- },
13069
- {
13070
- "name": "mode",
13071
- "type": {
13072
- "text": "AparteLinkTarget"
13073
- }
13074
- }
13075
- ],
13076
- "description": "The same pass for a runtime with no DOM (a server render, a Worker). Like the sanitizer's\nDOM-free path it is a safety net, not a parser: it reads tags with the sanitizer's own reader,\nleaves comments and raw-text elements alone, and writes back only the tags it changed.\nExported for the parity suite; not from the package barrel."
13077
- }
13078
- ],
13079
- "exports": [
13302
+ },
13080
13303
  {
13081
13304
  "kind": "js",
13082
- "name": "linkTargetAttributes",
13305
+ "name": "AparteQueuedMessage",
13083
13306
  "declaration": {
13084
- "name": "linkTargetAttributes",
13085
- "module": "src/config/link-target.ts"
13307
+ "name": "AparteQueuedMessage",
13308
+ "module": "./composer/index.js"
13086
13309
  }
13087
13310
  },
13088
13311
  {
13089
13312
  "kind": "js",
13090
- "name": "linkDecision",
13313
+ "name": "AparteTypeToFocus",
13091
13314
  "declaration": {
13092
- "name": "linkDecision",
13093
- "module": "src/config/link-target.ts"
13315
+ "name": "AparteTypeToFocus",
13316
+ "module": "./composer/index.js"
13094
13317
  }
13095
13318
  },
13096
13319
  {
13097
13320
  "kind": "js",
13098
- "name": "applyLinkTarget",
13321
+ "name": "AparteActionClickEventDetail",
13099
13322
  "declaration": {
13100
- "name": "applyLinkTarget",
13101
- "module": "src/config/link-target.ts"
13323
+ "name": "AparteActionClickEventDetail",
13324
+ "module": "./composer/index.js"
13102
13325
  }
13103
13326
  },
13104
13327
  {
13105
13328
  "kind": "js",
13106
- "name": "applyLinkTargetWithoutDom",
13329
+ "name": "AparteConversationList",
13107
13330
  "declaration": {
13108
- "name": "applyLinkTargetWithoutDom",
13109
- "module": "src/config/link-target.ts"
13331
+ "name": "AparteConversationList",
13332
+ "module": "./conversation-list/index.js"
13110
13333
  }
13111
- }
13112
- ]
13113
- },
13114
- {
13115
- "kind": "javascript-module",
13116
- "path": "src/config/locale.ts",
13117
- "declarations": [
13334
+ },
13118
13335
  {
13119
- "kind": "variable",
13120
- "name": "APARTE_DEFAULT_LOCALE",
13121
- "type": {
13122
- "text": "AparteLocale"
13123
- },
13124
- "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\", queueLabel: \"Sent when the reply ends\", queueEdit: \"Edit\", queueRemove: \"Remove\", 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}?\", approvalAskBy: \"Allow {tool} for {agent}?\", 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\", toolQueued: \"Queued\", 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\" }",
13125
- "description": "Default English Locale (Zero-dependency)\nHardcoded to ensure the core works out-of-the-box."
13126
- }
13127
- ],
13128
- "exports": [
13336
+ "kind": "js",
13337
+ "name": "AparteConversationListItem",
13338
+ "declaration": {
13339
+ "name": "AparteConversationListItem",
13340
+ "module": "./conversation-list/index.js"
13341
+ }
13342
+ },
13129
13343
  {
13130
13344
  "kind": "js",
13131
- "name": "APARTE_DEFAULT_LOCALE",
13345
+ "name": "AparteConversationMetaRenderer",
13132
13346
  "declaration": {
13133
- "name": "APARTE_DEFAULT_LOCALE",
13134
- "module": "src/config/locale.ts"
13347
+ "name": "AparteConversationMetaRenderer",
13348
+ "module": "./conversation-list/index.js"
13135
13349
  }
13136
- }
13137
- ]
13138
- },
13139
- {
13140
- "kind": "javascript-module",
13141
- "path": "src/config/model-catalogue.ts",
13142
- "declarations": [
13350
+ },
13143
13351
  {
13144
- "kind": "function",
13145
- "name": "createModelCatalogue",
13146
- "return": {
13147
- "type": {
13148
- "text": "AparteAIProvider"
13149
- }
13150
- },
13151
- "parameters": [
13152
- {
13153
- "name": "options",
13154
- "type": {
13155
- "text": "AparteModelCatalogueOptions"
13156
- }
13157
- }
13158
- ],
13159
- "description": "A provider that lists models and runs none, for a chat whose turns run elsewhere: a server\nloop (`createAgentStreamRunner`) or an agent with its own loop. Register it and the rest of\nthe page treats its models like any provider's: `<aparte-model-selector>` lists them, the\none selected goes out on every request (`setModelConfig`, or the selector with `persist`),\nand a model's capabilities gate what a model without them cannot do (tools, images).\n\nNothing in it ever answers a turn: with no runner of the turns to call instead, a send ends\nin an error that says so (`PROVIDER_MISCONFIGURED`), never in silence."
13160
- }
13161
- ],
13162
- "exports": [
13352
+ "kind": "js",
13353
+ "name": "AparteConversationSelectDetail",
13354
+ "declaration": {
13355
+ "name": "AparteConversationSelectDetail",
13356
+ "module": "./conversation-list/index.js"
13357
+ }
13358
+ },
13163
13359
  {
13164
13360
  "kind": "js",
13165
- "name": "createModelCatalogue",
13361
+ "name": "AparteConversationDeleteDetail",
13166
13362
  "declaration": {
13167
- "name": "createModelCatalogue",
13168
- "module": "src/config/model-catalogue.ts"
13363
+ "name": "AparteConversationDeleteDetail",
13364
+ "module": "./conversation-list/index.js"
13169
13365
  }
13170
- }
13171
- ]
13172
- },
13173
- {
13174
- "kind": "javascript-module",
13175
- "path": "src/config/sanitize.ts",
13176
- "declarations": [
13366
+ },
13177
13367
  {
13178
- "kind": "variable",
13179
- "name": "DANGEROUS_TAGS",
13180
- "default": "new Set([ 'script', 'style', 'iframe', 'frame', 'frameset', 'object', 'embed', 'applet', 'form', 'button', 'textarea', 'select', 'option', 'optgroup', 'link', 'meta', 'base', 'title', 'head', 'html', 'body', 'template', 'noscript', 'svg', 'math', 'portal', ])",
13181
- "description": "Tags dropped wholesale — content and all (never unwrapped to text).\n\nExported for the DOM-free path's own suite: both of `fallbackScrub`'s regexes\nare built from this Set, and the test that proves it loops over the Set rather\nthan a copy. Not re-exported from the package barrel — it is core's list, not\na contract."
13368
+ "kind": "js",
13369
+ "name": "AparteConversationArchiveDetail",
13370
+ "declaration": {
13371
+ "name": "AparteConversationArchiveDetail",
13372
+ "module": "./conversation-list/index.js"
13373
+ }
13182
13374
  },
13183
13375
  {
13184
- "kind": "variable",
13185
- "name": "CONTROL_WS",
13186
- "default": "/[\\u0000-\\u0020]+/g",
13187
- "description": "Whitespace + C0 control chars, used to obfuscate a scheme (e.g. \" javascript:\" or \"java\\tscript:\").\nExported for the link target's pass (`link-target.ts`), which reads an address the same way; not\nfrom the package barrel."
13376
+ "kind": "js",
13377
+ "name": "AparteConversationPinDetail",
13378
+ "declaration": {
13379
+ "name": "AparteConversationPinDetail",
13380
+ "module": "./conversation-list/index.js"
13381
+ }
13188
13382
  },
13189
13383
  {
13190
- "kind": "variable",
13191
- "name": "RESERVED_ATTRIBUTES",
13192
- "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', ])",
13193
- "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."
13384
+ "kind": "js",
13385
+ "name": "AparteConversationRenameDetail",
13386
+ "declaration": {
13387
+ "name": "AparteConversationRenameDetail",
13388
+ "module": "./conversation-list/index.js"
13389
+ }
13194
13390
  },
13195
13391
  {
13196
- "kind": "variable",
13197
- "name": "RESERVED_ATTRIBUTE_PREFIXES",
13198
- "type": {
13199
- "text": "array"
13200
- },
13201
- "default": "['data-aparte-dialog-', 'data-aparte-sidebar-', 'data-checkpoint-']",
13202
- "description": "Families of reserved attributes: `-open`/`-close`/`-static`, `-toggle`/`-search`, `-action`/`-reason`."
13392
+ "kind": "js",
13393
+ "name": "AparteConversationStatus",
13394
+ "declaration": {
13395
+ "name": "AparteConversationStatus",
13396
+ "module": "./conversation-list/index.js"
13397
+ }
13203
13398
  },
13204
13399
  {
13205
- "kind": "function",
13206
- "name": "isReservedAttribute",
13207
- "return": {
13208
- "type": {
13209
- "text": "boolean"
13210
- }
13211
- },
13212
- "parameters": [
13213
- {
13214
- "name": "name",
13215
- "type": {
13216
- "text": "string"
13217
- }
13218
- }
13219
- ],
13220
- "description": "True when `name` (lower case) is an attribute core reads, so model markup may not carry it."
13400
+ "kind": "js",
13401
+ "name": "AparteConversationStatusDetail",
13402
+ "declaration": {
13403
+ "name": "AparteConversationStatusDetail",
13404
+ "module": "./conversation-list/index.js"
13405
+ }
13221
13406
  },
13222
13407
  {
13223
- "kind": "function",
13224
- "name": "isSafeUrl",
13225
- "return": {
13226
- "type": {
13227
- "text": "boolean"
13228
- }
13229
- },
13230
- "parameters": [
13231
- {
13232
- "name": "value",
13233
- "type": {
13234
- "text": "string"
13235
- }
13236
- },
13237
- {
13238
- "name": "tag",
13239
- "type": {
13240
- "text": "string"
13241
- }
13242
- }
13243
- ]
13408
+ "kind": "js",
13409
+ "name": "AparteSuggestions",
13410
+ "declaration": {
13411
+ "name": "AparteSuggestions",
13412
+ "module": "./suggestions/index.js"
13413
+ }
13244
13414
  },
13245
13415
  {
13246
- "kind": "function",
13247
- "name": "linkAttributes",
13248
- "return": {
13249
- "type": {
13250
- "text": "Array<[string, string]>"
13251
- }
13252
- },
13253
- "parameters": [
13254
- {
13255
- "name": "href",
13256
- "type": {
13257
- "text": "string"
13258
- }
13259
- },
13260
- {
13261
- "name": "targetWish",
13262
- "type": {
13263
- "text": "string"
13264
- }
13265
- }
13266
- ],
13267
- "description": "The `target` and `rel` an `<a>` gets. The model's `target` is read as a WISH and clamped;\n`rel` is never copied. `href` is the one that was kept ('' when it was dropped).\n\nThis is the floor, and the whole of `setLinkTarget('external-only')`: the config's link pass\n(`link-target.ts`) applies it again after whichever sanitizer is set, and under the default,\n`'new-tab'`, opens a same-site link in a new tab on top of it. Exported for that pass; not\nfrom the package barrel."
13416
+ "kind": "js",
13417
+ "name": "setupSuggestionBlocks",
13418
+ "declaration": {
13419
+ "name": "setupSuggestionBlocks",
13420
+ "module": "./suggestions/index.js"
13421
+ }
13268
13422
  },
13269
13423
  {
13270
- "kind": "function",
13271
- "name": "readTag",
13272
- "return": {
13273
- "type": {
13274
- "text": "{ tag: string; attrs: Array<[string, string]>; end: number }"
13275
- }
13276
- },
13277
- "parameters": [
13278
- {
13279
- "name": "html",
13280
- "type": {
13281
- "text": "string"
13282
- }
13283
- },
13284
- {
13285
- "name": "nameAt",
13286
- "type": {
13287
- "text": "number"
13288
- }
13289
- }
13290
- ],
13291
- "description": "One tag read from `nameAt` (the first letter of its name) the way a browser's tokenizer reads\nit: a quote ends where its match is, an unquoted value at a space or `>`, `/` and a closing\nquote separate attributes, the first of two equal names wins, and a value is read with the\nentities that can spell a checked character decoded. `end` is the index past its `>`, or `-1`\nwhen the text ends inside the tag.\n\nExported for the DOM-free passes of the image policy (`image-policy.ts`) and the link target\n(`link-target.ts`), which have to find the same tags in the same text this scrub wrote; not\nfrom the package barrel."
13424
+ "kind": "js",
13425
+ "name": "SUGGESTIONS_BLOCK_LANGUAGE",
13426
+ "declaration": {
13427
+ "name": "SUGGESTIONS_BLOCK_LANGUAGE",
13428
+ "module": "./suggestions/index.js"
13429
+ }
13430
+ },
13431
+ {
13432
+ "kind": "js",
13433
+ "name": "AparteSuggestion",
13434
+ "declaration": {
13435
+ "name": "AparteSuggestion",
13436
+ "module": "./suggestions/index.js"
13437
+ }
13292
13438
  },
13293
13439
  {
13294
- "kind": "function",
13295
- "name": "defaultSanitizer",
13296
- "return": {
13297
- "type": {
13298
- "text": "string"
13299
- }
13300
- },
13301
- "parameters": [
13302
- {
13303
- "name": "html",
13304
- "type": {
13305
- "text": "string"
13306
- }
13307
- }
13308
- ],
13309
- "description": "The built-in sanitizer. Parses `html` with the platform DOMParser, rebuilds an\nallowlisted tree, and re-serializes it. Falls back to a regex scrub only when\nno DOMParser exists (non-browser runtime)."
13310
- }
13311
- ],
13312
- "exports": [
13440
+ "kind": "js",
13441
+ "name": "AparteSuggestionEventDetail",
13442
+ "declaration": {
13443
+ "name": "AparteSuggestionEventDetail",
13444
+ "module": "./suggestions/index.js"
13445
+ }
13446
+ },
13313
13447
  {
13314
13448
  "kind": "js",
13315
- "name": "DANGEROUS_TAGS",
13449
+ "name": "AparteContext",
13316
13450
  "declaration": {
13317
- "name": "DANGEROUS_TAGS",
13318
- "module": "src/config/sanitize.ts"
13451
+ "name": "AparteContext",
13452
+ "module": "./context/index.js"
13319
13453
  }
13320
13454
  },
13321
13455
  {
13322
13456
  "kind": "js",
13323
- "name": "CONTROL_WS",
13457
+ "name": "AparteContextLevel",
13324
13458
  "declaration": {
13325
- "name": "CONTROL_WS",
13326
- "module": "src/config/sanitize.ts"
13459
+ "name": "AparteContextLevel",
13460
+ "module": "./context/index.js"
13327
13461
  }
13328
13462
  },
13329
13463
  {
13330
13464
  "kind": "js",
13331
- "name": "RESERVED_ATTRIBUTES",
13465
+ "name": "AparteContextThresholdEventDetail",
13332
13466
  "declaration": {
13333
- "name": "RESERVED_ATTRIBUTES",
13334
- "module": "src/config/sanitize.ts"
13467
+ "name": "AparteContextThresholdEventDetail",
13468
+ "module": "./context/index.js"
13335
13469
  }
13336
13470
  },
13337
13471
  {
13338
13472
  "kind": "js",
13339
- "name": "RESERVED_ATTRIBUTE_PREFIXES",
13473
+ "name": "AparteScrollRail",
13340
13474
  "declaration": {
13341
- "name": "RESERVED_ATTRIBUTE_PREFIXES",
13342
- "module": "src/config/sanitize.ts"
13475
+ "name": "AparteScrollRail",
13476
+ "module": "./scroll-rail/index.js"
13343
13477
  }
13344
13478
  },
13345
13479
  {
13346
13480
  "kind": "js",
13347
- "name": "isReservedAttribute",
13481
+ "name": "AparteScrollRailJumpDetail",
13348
13482
  "declaration": {
13349
- "name": "isReservedAttribute",
13350
- "module": "src/config/sanitize.ts"
13483
+ "name": "AparteScrollRailJumpDetail",
13484
+ "module": "./scroll-rail/index.js"
13351
13485
  }
13352
13486
  },
13353
13487
  {
13354
13488
  "kind": "js",
13355
- "name": "isSafeUrl",
13489
+ "name": "AparteScrollRailEvery",
13356
13490
  "declaration": {
13357
- "name": "isSafeUrl",
13358
- "module": "src/config/sanitize.ts"
13491
+ "name": "AparteScrollRailEvery",
13492
+ "module": "./scroll-rail/index.js"
13359
13493
  }
13360
13494
  },
13361
13495
  {
13362
13496
  "kind": "js",
13363
- "name": "linkAttributes",
13497
+ "name": "AparteSidebar",
13364
13498
  "declaration": {
13365
- "name": "linkAttributes",
13366
- "module": "src/config/sanitize.ts"
13499
+ "name": "AparteSidebar",
13500
+ "module": "./sidebar/index.js"
13367
13501
  }
13368
13502
  },
13369
13503
  {
13370
13504
  "kind": "js",
13371
- "name": "readTag",
13505
+ "name": "AparteSidebarToggleDetail",
13372
13506
  "declaration": {
13373
- "name": "readTag",
13374
- "module": "src/config/sanitize.ts"
13507
+ "name": "AparteSidebarToggleDetail",
13508
+ "module": "./sidebar/index.js"
13375
13509
  }
13376
13510
  },
13377
13511
  {
13378
13512
  "kind": "js",
13379
- "name": "defaultSanitizer",
13513
+ "name": "AparteSplit",
13380
13514
  "declaration": {
13381
- "name": "defaultSanitizer",
13382
- "module": "src/config/sanitize.ts"
13515
+ "name": "AparteSplit",
13516
+ "module": "./split/index.js"
13383
13517
  }
13384
- }
13385
- ]
13386
- },
13387
- {
13388
- "kind": "javascript-module",
13389
- "path": "src/config/sibling-nav-renderer.ts",
13390
- "declarations": [],
13391
- "exports": []
13392
- },
13393
- {
13394
- "kind": "javascript-module",
13395
- "path": "src/config/status-renderer.ts",
13396
- "declarations": [],
13397
- "exports": []
13398
- },
13399
- {
13400
- "kind": "javascript-module",
13401
- "path": "src/config/step-label.ts",
13402
- "declarations": [],
13403
- "exports": []
13404
- },
13405
- {
13406
- "kind": "javascript-module",
13407
- "path": "src/config/tool-table.ts",
13408
- "declarations": [
13518
+ },
13409
13519
  {
13410
- "kind": "class",
13411
- "description": "",
13412
- "name": "ToolTable",
13413
- "members": [
13414
- {
13415
- "kind": "field",
13416
- "name": "exact",
13417
- "privacy": "private",
13418
- "readonly": true,
13419
- "default": "new Map<string, T>()"
13420
- },
13421
- {
13422
- "kind": "field",
13423
- "name": "patterns",
13424
- "privacy": "private",
13425
- "readonly": true,
13426
- "default": "new Map<string, { re: RegExp; value: T }>()"
13427
- },
13428
- {
13429
- "kind": "field",
13430
- "name": "any",
13431
- "type": {
13432
- "text": "T | undefined"
13433
- },
13434
- "privacy": "private"
13435
- },
13436
- {
13437
- "kind": "method",
13438
- "name": "get",
13439
- "return": {
13440
- "type": {
13441
- "text": "T | undefined"
13442
- }
13443
- },
13444
- "parameters": [
13445
- {
13446
- "name": "match",
13447
- "type": {
13448
- "text": "AparteToolMatcher"
13449
- }
13450
- }
13451
- ],
13452
- "description": "The value registered under exactly this matcher — not a resolution."
13453
- },
13454
- {
13455
- "kind": "method",
13456
- "name": "set",
13457
- "return": {
13458
- "type": {
13459
- "text": "void"
13460
- }
13461
- },
13462
- "parameters": [
13463
- {
13464
- "name": "match",
13465
- "type": {
13466
- "text": "AparteToolMatcher"
13467
- }
13468
- },
13469
- {
13470
- "name": "value",
13471
- "type": {
13472
- "text": "T"
13473
- }
13474
- }
13475
- ]
13476
- },
13477
- {
13478
- "kind": "method",
13479
- "name": "delete",
13480
- "return": {
13481
- "type": {
13482
- "text": "void"
13483
- }
13484
- },
13485
- "parameters": [
13486
- {
13487
- "name": "match",
13488
- "type": {
13489
- "text": "AparteToolMatcher"
13490
- }
13491
- }
13492
- ]
13493
- },
13494
- {
13495
- "kind": "method",
13496
- "name": "resolve",
13497
- "return": {
13498
- "type": {
13499
- "text": "{ value: T; level: ToolMatchLevel } | undefined"
13500
- }
13501
- },
13502
- "parameters": [
13503
- {
13504
- "name": "name",
13505
- "type": {
13506
- "text": "string"
13507
- }
13508
- }
13509
- ],
13510
- "description": "The value that applies to a tool named `name`, and how specifically it names it."
13511
- },
13512
- {
13513
- "kind": "method",
13514
- "name": "values",
13515
- "return": {
13516
- "type": {
13517
- "text": "T[]"
13518
- }
13519
- },
13520
- "description": "Every value registered, whatever its matcher."
13521
- },
13522
- {
13523
- "kind": "method",
13524
- "name": "clear",
13525
- "return": {
13526
- "type": {
13527
- "text": "void"
13528
- }
13529
- }
13530
- }
13531
- ]
13532
- }
13533
- ],
13534
- "exports": [
13520
+ "kind": "js",
13521
+ "name": "AparteSplitResizeDetail",
13522
+ "declaration": {
13523
+ "name": "AparteSplitResizeDetail",
13524
+ "module": "./split/index.js"
13525
+ }
13526
+ },
13535
13527
  {
13536
13528
  "kind": "js",
13537
- "name": "ToolTable",
13529
+ "name": "AparteLauncher",
13538
13530
  "declaration": {
13539
- "name": "ToolTable",
13540
- "module": "src/config/tool-table.ts"
13531
+ "name": "AparteLauncher",
13532
+ "module": "./launcher/index.js"
13533
+ }
13534
+ },
13535
+ {
13536
+ "kind": "js",
13537
+ "name": "AparteLauncherToggleDetail",
13538
+ "declaration": {
13539
+ "name": "AparteLauncherToggleDetail",
13540
+ "module": "./launcher/index.js"
13541
13541
  }
13542
13542
  }
13543
13543
  ]