@cardstack/boxel-cli 0.13.0-unstable.4 → 0.13.0-unstable.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundled-realms/pretui/components/doc-report.gts +2 -2
- package/bundled-realms/pretui/components/doc-report.usage.gts +3 -3
- package/bundled-realms/pretui/components/form-field.md +1 -1
- package/bundled-realms/pretui/components/icon-button.md +1 -1
- package/bundled-realms/pretui/components/popup.md +1 -1
- package/bundled-realms/pretui/components/switch.gts +13 -0
- package/bundled-realms/pretui/components/switch.md +5 -3
- package/bundled-realms/pretui/components/theme-frame.gts +49 -22
- package/bundled-realms/pretui/components/tooltip.gts +141 -42
- package/bundled-realms/pretui/components/tooltip.md +10 -12
- package/bundled-realms/pretui/components/tooltip.usage.gts +3 -5
- package/bundled-realms/pretui/docs/structure.md +1 -1
- package/bundled-realms/pretui/internal/overlay.gts +4 -2
- package/bundled-realms/pretui/pretui-css.gts +6 -2
- package/bundled-realms/pretui/theme-scoped-css.gts +262 -0
- package/bundled-test-harness/assets/account-switch-failed-test-DwAZq6Sc.js +45 -0
- package/bundled-test-harness/assets/adapter-C_6pnsx1.js +2 -0
- package/bundled-test-harness/assets/add-field-to-card-definition-tool-test-zMYtJWBv.js +112 -0
- package/bundled-test-harness/assets/ai-assistant-create-workspace-test-CwhAV-Ow.js +130 -0
- package/bundled-test-harness/assets/ai-assistant-panel-relogin-test-DNgclkGJ.js +46 -0
- package/bundled-test-harness/assets/ai-assistant-test-DGYFiRTb.js +2223 -0
- package/bundled-test-harness/assets/ai-function-generation-test-Dj6WzKkh.js +1176 -0
- package/bundled-test-harness/assets/ai-module-creation-test-EsOoJpQ1.js +151 -0
- package/bundled-test-harness/assets/aibot-message-uGaCPn5o.js +1312 -0
- package/bundled-test-harness/assets/app-pIzBYfiZ.js +14146 -0
- package/bundled-test-harness/assets/apply-markdown-edit-test-CPhfeg1i.js +230 -0
- package/bundled-test-harness/assets/ask-user-picker-NVRkhKwt.js +370 -0
- package/bundled-test-harness/assets/ask-user-picker-test-SsZqFm9W.js +39 -0
- package/bundled-test-harness/assets/assistant-transcript-test-DesuBCIB.js +57 -0
- package/bundled-test-harness/assets/audio-metadata-extractor-test-8JM6oZXG.js +1176 -0
- package/bundled-test-harness/assets/authed-fetch-test-yPTMe-9V.js +73 -0
- package/bundled-test-harness/assets/avif-image-def-test-Kyknj908.js +187 -0
- package/bundled-test-harness/assets/basic-test-D9OrrMaq.js +139 -0
- package/bundled-test-harness/assets/binary-upload-dedupe-test-Dnxlbbu6.js +308 -0
- package/bundled-test-harness/assets/bot-registration-test-Bk2lTaCW.js +97 -0
- package/bundled-test-harness/assets/box-test-BbV9sMyU.js +50 -0
- package/bundled-test-harness/assets/brand-guide-attachments-test-z4wTsKbI.js +84 -0
- package/bundled-test-harness/assets/brand-guide-custom-css-test-BlSJE8xo.js +196 -0
- package/bundled-test-harness/assets/brand-guide-edit-test-DJ1OQ6IB.js +140 -0
- package/bundled-test-harness/assets/brand-logo-mark-field-test-ux7eetkO.js +86 -0
- package/bundled-test-harness/assets/broken-link-template-test-CqB3MWyw.js +192 -0
- package/bundled-test-harness/assets/bundled-base-modules-test-B2oNLZSJ.js +54 -0
- package/bundled-test-harness/assets/bundled-base-oracle-test-DelPfFjn.js +37 -0
- package/bundled-test-harness/assets/buried-stack-item-scroll-test-Ixsl1tS0.js +236 -0
- package/bundled-test-harness/assets/button-BvYQm_A1.js +141 -0
- package/bundled-test-harness/assets/bxl-cyclic-graph-test-p23WCLRW.js +47 -0
- package/bundled-test-harness/assets/bxl-expression-test-CVTQYT_C.js +250 -0
- package/bundled-test-harness/assets/bxl-indexing-test-D_A7X2sr.js +212 -0
- package/bundled-test-harness/assets/bxl-platform-module-test-Cltfyybp.js +71 -0
- package/bundled-test-harness/assets/can-invoke-test-DJi7jMaU.js +455 -0
- package/bundled-test-harness/assets/can-read-realm-test-CIz6WX_K.js +56 -0
- package/bundled-test-harness/assets/cancel-indexing-job-test-0LlrOgYK.js +69 -0
- package/bundled-test-harness/assets/capture-test-diHIWmh0.js +360 -0
- package/bundled-test-harness/assets/card-api-test-Ci9b0ghP.js +198 -0
- package/bundled-test-harness/assets/card-basics-test-RKQoQWZD.js +5364 -0
- package/bundled-test-harness/assets/card-chooser-paging-test-BoUyFMEw.js +235 -0
- package/bundled-test-harness/assets/card-chooser-test-7ZwhxxkH.js +393 -0
- package/bundled-test-harness/assets/card-context-search-results-KmkXJbmC.js +30 -0
- package/bundled-test-harness/assets/card-context-search-results-test-CpMr8OlX.js +184 -0
- package/bundled-test-harness/assets/card-def-field-def-relationships-test-ByPl5n55.js +562 -0
- package/bundled-test-harness/assets/card-def-menu-items-test-ohuHc0b4.js +228 -0
- package/bundled-test-harness/assets/card-delete-test-Be971b-V.js +466 -0
- package/bundled-test-harness/assets/card-error-3q1o3i0e.js +72 -0
- package/bundled-test-harness/assets/card-error-awaiting-index-test-DPgYKfbF.js +53 -0
- package/bundled-test-harness/assets/card-info-thumbnail-picker-test-CVfeJyjt.js +219 -0
- package/bundled-test-harness/assets/card-playground-test-D-7bi4PQ.js +1491 -0
- package/bundled-test-harness/assets/card-prerender-DemTfK_a.js +12939 -0
- package/bundled-test-harness/assets/card-thunk-error-test-DCBh1vRT.js +48 -0
- package/bundled-test-harness/assets/card-type-service-test-DXPrfVYk.js +161 -0
- package/bundled-test-harness/assets/check-correctness-test-DjE7r1X2.js +1093 -0
- package/bundled-test-harness/assets/check-domain-availability-test-U10xSKbY.js +98 -0
- package/bundled-test-harness/assets/chip-0r_r9SC8.js +44 -0
- package/bundled-test-harness/assets/choreo-Ci5dG5fv.js +2 -0
- package/bundled-test-harness/assets/choreo-D1K9RyjM.js +1031 -0
- package/bundled-test-harness/assets/choreo-feature-reel-test-vzmW-SFd.js +155 -0
- package/bundled-test-harness/assets/choreo-gallery-build-order-test-J6n0_PKm.js +436 -0
- package/bundled-test-harness/assets/choreo-gallery-compositor-test-DSi1N9bi.js +399 -0
- package/bundled-test-harness/assets/choreo-gallery-cover-test-BT05gNKC.js +214 -0
- package/bundled-test-harness/assets/choreo-gallery-crossing-stage-test-BIuLOZH6.js +133 -0
- package/bundled-test-harness/assets/choreo-gallery-demos-alive-test-ClGjpnj6.js +42 -0
- package/bundled-test-harness/assets/choreo-gallery-drift-test-OjxMXV0Y.js +620 -0
- package/bundled-test-harness/assets/choreo-gallery-escort-test-D6VL4FfT.js +187 -0
- package/bundled-test-harness/assets/choreo-gallery-films-test-DBcDHGx8.js +140 -0
- package/bundled-test-harness/assets/choreo-gallery-filter-test-BUghtJZe.js +46 -0
- package/bundled-test-harness/assets/choreo-gallery-fold-test-0D9-_h_I.js +180 -0
- package/bundled-test-harness/assets/choreo-gallery-guide-pages-test-DS41eNNV.js +114 -0
- package/bundled-test-harness/assets/choreo-gallery-guides-test-CZnaxUNJ.js +321 -0
- package/bundled-test-harness/assets/choreo-gallery-hang-test-WFvsJ-MJ.js +426 -0
- package/bundled-test-harness/assets/choreo-gallery-highlight-test-Dn0hYPLC.js +60 -0
- package/bundled-test-harness/assets/choreo-gallery-inline-edit-test-C5WvS67s.js +370 -0
- package/bundled-test-harness/assets/choreo-gallery-interruption-test-CgT9RKTe.js +176 -0
- package/bundled-test-harness/assets/choreo-gallery-lone-stack-test-BZgqbTJd.js +104 -0
- package/bundled-test-harness/assets/choreo-gallery-navigation-test-CWzXkvbW.js +193 -0
- package/bundled-test-harness/assets/choreo-gallery-playhead-transport-test-Dt71t4CU.js +111 -0
- package/bundled-test-harness/assets/choreo-gallery-poplayout-subtree-test-B_rDq4em.js +127 -0
- package/bundled-test-harness/assets/choreo-gallery-presence-modes-test-j_cZ9cAM.js +100 -0
- package/bundled-test-harness/assets/choreo-gallery-presentation-test-CIFKR65J.js +157 -0
- package/bundled-test-harness/assets/choreo-gallery-reduced-motion-test-BvRCiCvB.js +145 -0
- package/bundled-test-harness/assets/choreo-gallery-sheet-standalone-test-DgO2MBzU.js +89 -0
- package/bundled-test-harness/assets/choreo-gallery-sheet-test-BntUKT_P.js +48 -0
- package/bundled-test-harness/assets/choreo-gallery-site-test-CvSE6Jyq.js +237 -0
- package/bundled-test-harness/assets/choreo-gallery-stage-Dj6tFzon.js +256 -0
- package/bundled-test-harness/assets/choreo-gallery-stage-keyboard-test-CkDrAPA8.js +102 -0
- package/bundled-test-harness/assets/choreo-gallery-stages-test-DHUmzoRW.js +35 -0
- package/bundled-test-harness/assets/choreo-gallery-subdivision-test-BZ9-cDFh.js +138 -0
- package/bundled-test-harness/assets/choreo-gallery-table-plan-test-7uP6mZpo.js +144 -0
- package/bundled-test-harness/assets/choreo-gallery-theater-test-DgEue9FD.js +252 -0
- package/bundled-test-harness/assets/choreo-gallery-tuning-test-CfPx5iCp.js +95 -0
- package/bundled-test-harness/assets/choreo-gallery-widget-room-test-o9T2EFKq.js +88 -0
- package/bundled-test-harness/assets/choreo-gallery-wires-test-73JLkxn6.js +148 -0
- package/bundled-test-harness/assets/client-telemetry-test-DFM4mML2.js +340 -0
- package/bundled-test-harness/assets/clip-CsRtHZiN.js +92 -0
- package/bundled-test-harness/assets/clip-CycGr0Lf.js +2 -0
- package/bundled-test-harness/assets/code-block-DRE8KQZQ.js +502 -0
- package/bundled-test-harness/assets/code-ref-test-CDcqE8_C.js +163 -0
- package/bundled-test-harness/assets/code-submode-availability-test-DPTqZYYm.js +198 -0
- package/bundled-test-harness/assets/code-submode-test-AHV4mzJ4.js +1839 -0
- package/bundled-test-harness/assets/codeblocks-test-D9pbJMK8.js +418 -0
- package/bundled-test-harness/assets/codemirror-editor-test-BeAMVivu.js +1512 -0
- package/bundled-test-harness/assets/codemirror-embed-toolbar-test-Bnb7_KUT.js +366 -0
- package/bundled-test-harness/assets/color-field-test-CR6gGEqE.js +212 -0
- package/bundled-test-harness/assets/compaction-test-BSqAGv4g.js +150 -0
- package/bundled-test-harness/assets/computed-test-DtyZGgdc.js +1320 -0
- package/bundled-test-harness/assets/container-CEslVSTe.js +10884 -0
- package/bundled-test-harness/assets/content-preview-components-test-BztI4fz-.js +462 -0
- package/bundled-test-harness/assets/copy-and-edit-test-Cqw7kcur.js +292 -0
- package/bundled-test-harness/assets/copy-card-test-D5m3eVEH.js +218 -0
- package/bundled-test-harness/assets/copy-file-to-realm-test-FPY-6Ddm.js +148 -0
- package/bundled-test-harness/assets/copy-source-test-9pJD-qey.js +56 -0
- package/bundled-test-harness/assets/create-file-test-DjMf88u_.js +1086 -0
- package/bundled-test-harness/assets/create-file-test-XbgOqg38.js +464 -0
- package/bundled-test-harness/assets/create-listing-modal-test-DyGlGMWu.js +273 -0
- package/bundled-test-harness/assets/create-listing-pr-request-test-CBtIV0Z8.js +117 -0
- package/bundled-test-harness/assets/create-spec-test-4xR0gM7E.js +256 -0
- package/bundled-test-harness/assets/create-submission-workflow-test-DQpWrpGT.js +132 -0
- package/bundled-test-harness/assets/create-workspace-test-BQAudgpS.js +104 -0
- package/bundled-test-harness/assets/credential-fields-test-DXKBdbZD.js +200 -0
- package/bundled-test-harness/assets/csv-file-def-test-Cnp4y834.js +102 -0
- package/bundled-test-harness/assets/dashboard-CmuOhIYC.js +3628 -0
- package/bundled-test-harness/assets/dashboard-CzN49x74.css +2400 -0
- package/bundled-test-harness/assets/dashboard-add-workspace-test-T32hWB-g.js +50 -0
- package/bundled-test-harness/assets/dashboard-agents-test-BN5maCgQ.js +334 -0
- package/bundled-test-harness/assets/dashboard-archive-test-BzwUte_Z.js +128 -0
- package/bundled-test-harness/assets/dashboard-delete-test-D2Gcp81V.js +163 -0
- package/bundled-test-harness/assets/dashboard-duplicate-offer-test-BgKNIr35.js +71 -0
- package/bundled-test-harness/assets/dashboard-duplicate-test-D7JEWylc.js +222 -0
- package/bundled-test-harness/assets/dashboard-get-started-test-DOGPzGoA.js +374 -0
- package/bundled-test-harness/assets/dashboard-ir2bakJS.js +142 -0
- package/bundled-test-harness/assets/dashboard-pinned-cards-test-Bn_P9xJU.js +220 -0
- package/bundled-test-harness/assets/dashboard-publish-test-64sGQ0nG.js +70 -0
- package/bundled-test-harness/assets/dashboard-reindex-test-DJjYq1ct.js +115 -0
- package/bundled-test-harness/assets/dashboard-section-rail-test-ZkAhWu5V.js +169 -0
- package/bundled-test-harness/assets/dashboard-state-test-BbkpPB5L.js +162 -0
- package/bundled-test-harness/assets/dashboard-test-CBLdPrSt.js +545 -0
- package/bundled-test-harness/assets/dashboard-unreachable-notice-test-DFT3R1Zx.js +62 -0
- package/bundled-test-harness/assets/dashboard-workspace-test-DqBdCFo2.js +537 -0
- package/bundled-test-harness/assets/dashboard-workspaces-section-test-CH1HDfxR.js +410 -0
- package/bundled-test-harness/assets/data-file-def-preview-test-CNsZwQEJ.js +155 -0
- package/bundled-test-harness/assets/date-time-fields-test-CEFaZTnF.js +359 -0
- package/bundled-test-harness/assets/debug-message-test-0hv0RwE_.js +117 -0
- package/bundled-test-harness/assets/declared-captures-test-C-0yPRU7.js +879 -0
- package/bundled-test-harness/assets/delete-workspace-test-CZOwGy78.js +102 -0
- package/bundled-test-harness/assets/diffing-test-BEKI905O.js +210 -0
- package/bundled-test-harness/assets/download-file-to-realm-test-C1kAGDll.js +119 -0
- package/bundled-test-harness/assets/editor-test-C9x5ZY6g.js +688 -0
- package/bundled-test-harness/assets/edits-D76-aanh.js +651 -0
- package/bundled-test-harness/assets/email-field-test-LGkrB_2B.js +75 -0
- package/bundled-test-harness/assets/enum-field-test-CPyV1J-m.js +935 -0
- package/bundled-test-harness/assets/error-display-test-bWuUtfIG.js +343 -0
- package/bundled-test-harness/assets/evaluate-module-test-CbS5h8t3.js +91 -0
- package/bundled-test-harness/assets/execute-atomic-operations-test-B4Kfco0k.js +113 -0
- package/bundled-test-harness/assets/externals-CDQm-Lm7.js +4393 -0
- package/bundled-test-harness/assets/fallback-banner-live-delete-test-DQSiTzvj.js +207 -0
- package/bundled-test-harness/assets/fallback-banner-test-CJFKLpOy.js +225 -0
- package/bundled-test-harness/assets/fallback-banner-test-DQkrFE4-.js +53 -0
- package/bundled-test-harness/assets/fallback-models-test-CiWfmxaB.js +161 -0
- package/bundled-test-harness/assets/fetch-card-json-test-DULUqUEu.js +61 -0
- package/bundled-test-harness/assets/field-configuration-test-BXZq28xa.js +551 -0
- package/bundled-test-harness/assets/field-markdown-domain-test-DdXCifs6.js +616 -0
- package/bundled-test-harness/assets/field-markdown-oversize-test-DouPPTHX.js +88 -0
- package/bundled-test-harness/assets/field-markdown-primitives-test-DSRGJeyl.js +365 -0
- package/bundled-test-harness/assets/field-markdown-specialized-test-DlTYLl_s.js +534 -0
- package/bundled-test-harness/assets/field-playground-test-NhS4VvoN.js +894 -0
- package/bundled-test-harness/assets/field-support-predicates-test-DWpyT1Qf.js +167 -0
- package/bundled-test-harness/assets/file-attachment-test-m72-VerW.js +796 -0
- package/bundled-test-harness/assets/file-chooser-panel-test-DuAqD9bn.js +153 -0
- package/bundled-test-harness/assets/file-chooser-test-CjaXXwpT.js +504 -0
- package/bundled-test-harness/assets/file-def-format-templates-test-BDs4OmHq.js +380 -0
- package/bundled-test-harness/assets/file-def-live-reload-test-BqTdnq-W.js +124 -0
- package/bundled-test-harness/assets/file-def-menu-items-test-DqdINXsD.js +138 -0
- package/bundled-test-harness/assets/file-def-navigation-test-BPGr0SQy.js +109 -0
- package/bundled-test-harness/assets/file-def-serialization-test-CvjW-FlC.js +89 -0
- package/bundled-test-harness/assets/file-def-test-C-Yv_NjS.js +216 -0
- package/bundled-test-harness/assets/file-preview-live-reload-test-MzwGwasU.js +310 -0
- package/bundled-test-harness/assets/file-resource-primitives-test-D3GmfqNs.js +255 -0
- package/bundled-test-harness/assets/file-tree-from-index-test-CfldnUgm.js +96 -0
- package/bundled-test-harness/assets/file-tree-test--0ZCPRe9.js +851 -0
- package/bundled-test-harness/assets/file-view-model-test-BDIAeBV8.js +346 -0
- package/bundled-test-harness/assets/filedef-export-shape-test-B2tgU404.js +61 -0
- package/bundled-test-harness/assets/film-D1E-odYG.js +13 -0
- package/bundled-test-harness/assets/film-D25Y0ED6.js +2 -0
- package/bundled-test-harness/assets/film-D97U-ydx.js +4074 -0
- package/bundled-test-harness/assets/flac-audio-def-test-ByoXMoQ1.js +143 -0
- package/bundled-test-harness/assets/font-metadata-extractor-test-hawLTDTG.js +415 -0
- package/bundled-test-harness/assets/formatted-aibot-message-test-Bdx_-Ktn.js +109 -0
- package/bundled-test-harness/assets/formatted-user-message-test-CodbrU3t.js +43 -0
- package/bundled-test-harness/assets/freestyle-test-faQhSciz.js +17 -0
- package/bundled-test-harness/assets/full-reindex-realm-test-CE5RJTIC.js +101 -0
- package/bundled-test-harness/assets/garbage-collection-test-v-3sev77.js +403 -0
- package/bundled-test-harness/assets/general-test-DQuxDvXK.js +923 -0
- package/bundled-test-harness/assets/generate-example-cards-one-shot-test-CucWyrkH.js +65 -0
- package/bundled-test-harness/assets/generic-file-def-preview-test-_EDRsebi.js +71 -0
- package/bundled-test-harness/assets/get-available-realm-identifiers-test-CV023yek.js +47 -0
- package/bundled-test-harness/assets/get-catalog-realm-identifiers-test--DOu3DyV.js +47 -0
- package/bundled-test-harness/assets/get-default-writable-realm-test-Bic8jl6R.js +54 -0
- package/bundled-test-harness/assets/get-published-realms-test-DrA5YcFN.js +71 -0
- package/bundled-test-harness/assets/get-realm-of-resource-identifier-test-jfU6SIWn.js +54 -0
- package/bundled-test-harness/assets/get-relationship-membership-state-test-Ccy2Z7MN.js +1308 -0
- package/bundled-test-harness/assets/get-user-system-card-test-Bmq2lmWv.js +67 -0
- package/bundled-test-harness/assets/gif-image-def-test-N1mMQC-X.js +188 -0
- package/bundled-test-harness/assets/glimmer-motion-and-choreo-in-cards-test-DzPKH76g.js +160 -0
- package/bundled-test-harness/assets/glimmer-motion-and-choreo-test-D9mlcQuN.js +74 -0
- package/bundled-test-harness/assets/gts-file-def-test-BL1jpQ9J.js +100 -0
- package/bundled-test-harness/assets/head-format-preview-test-BVCaPQqc.js +158 -0
- package/bundled-test-harness/assets/helpers-Ds68JxHe.js +5 -0
- package/bundled-test-harness/assets/host-mode-service-B4bisRdR.js +262 -0
- package/bundled-test-harness/assets/host-mode-test-BmkN2PCJ.js +831 -0
- package/bundled-test-harness/assets/host-submode-test-C6SxQ796.js +1392 -0
- package/bundled-test-harness/assets/html-component-test-CNQ9wF0Q.js +65 -0
- package/bundled-test-harness/assets/html-def-test-BcaCVVQq.js +160 -0
- package/bundled-test-harness/assets/html-meta-extractor-test-BU1hjkTp.js +60 -0
- package/bundled-test-harness/assets/hydratable-card-test-CX6MWiti.js +426 -0
- package/bundled-test-harness/assets/icon-button-C1zH38Nc.js +67 -0
- package/bundled-test-harness/assets/image-metadata-extractor-test-CakSBPZ_.js +1109 -0
- package/bundled-test-harness/assets/index-changes-test-D8RtgfyG.js +367 -0
- package/bundled-test-harness/assets/index-query-engine-test-BOvxkx07.js +2593 -0
- package/bundled-test-harness/assets/index-writer-test-B_bR2fjw.js +3040 -0
- package/bundled-test-harness/assets/inspector-test-BwPXJj1S.js +2058 -0
- package/bundled-test-harness/assets/instance-filter-matcher-test-COAlkUed.js +788 -0
- package/bundled-test-harness/assets/instantiate-card-test-BVQhZjpq.js +164 -0
- package/bundled-test-harness/assets/interact-submode-creation-and-permissions-test-DzQLG41H.js +475 -0
- package/bundled-test-harness/assets/interact-submode-setup-C5bKXq73.js +566 -0
- package/bundled-test-harness/assets/invalidate-realm-identifiers-test-Cd3dpjhB.js +99 -0
- package/bundled-test-harness/assets/invite-user-to-room-test-Brabz1tt.js +142 -0
- package/bundled-test-harness/assets/invoke-card-operation-test-C1Q1FUf4.js +333 -0
- package/bundled-test-harness/assets/isolated-render-test-BLJfS7BU.js +51 -0
- package/bundled-test-harness/assets/job-scoped-doc-cache-test-Bgv5woaB.js +181 -0
- package/bundled-test-harness/assets/job-scoped-instance-residency-test-C_bB6KpR.js +103 -0
- package/bundled-test-harness/assets/jpg-image-def-test-gdLIKocD.js +697 -0
- package/bundled-test-harness/assets/json-file-def-test-CPYMRBY-.js +95 -0
- package/bundled-test-harness/assets/key-notices-badge-test-DemslfLw.js +155 -0
- package/bundled-test-harness/assets/key-readiness-test-5tq5JycL.js +190 -0
- package/bundled-test-harness/assets/linksto-broken-link-placeholder-test-BbhDZ2PH.js +398 -0
- package/bundled-test-harness/assets/linksto-error-sentinel-test-C2t7fFPi.js +238 -0
- package/bundled-test-harness/assets/linksto-many-broken-link-placeholder-test--U_UvUty.js +354 -0
- package/bundled-test-harness/assets/linksto-many-per-slot-access-test-Dj3Xy0ZF.js +303 -0
- package/bundled-test-harness/assets/linksto-sentinel-reload-test-D0dK4Jjs.js +197 -0
- package/bundled-test-harness/assets/linksto-sentinel-roundtrip-test---IYiXok.js +260 -0
- package/bundled-test-harness/assets/linksto-singular-js-access-contract-test-CT04MhES.js +196 -0
- package/bundled-test-harness/assets/lint-and-fix-test-aadgx7rX.js +51 -0
- package/bundled-test-harness/assets/live-test-BGij_vuc.js +100 -0
- package/bundled-test-harness/assets/live-test-CppvValf.js +2 -0
- package/bundled-test-harness/assets/load-default-skills-test-Cp2m_ebp.js +74 -0
- package/bundled-test-harness/assets/loader-parallel-prefetch-test-vU_26Jqu.js +257 -0
- package/bundled-test-harness/assets/loader-test-CTaw8K_B.js +482 -0
- package/bundled-test-harness/assets/loading-test-DGGt4qZZ.js +63 -0
- package/bundled-test-harness/assets/m4a-audio-def-test-DAiReOXH.js +190 -0
- package/bundled-test-harness/assets/main-DUKPWRts.js +5 -0
- package/bundled-test-harness/assets/markdown-embed-chooser-modal-test-CIXq9FqR.js +470 -0
- package/bundled-test-harness/assets/markdown-embed-chooser-test-zFGh9WfP.js +334 -0
- package/bundled-test-harness/assets/markdown-embed-preview-pane-test-Byn_WFwY.js +447 -0
- package/bundled-test-harness/assets/markdown-embed-preview-test-Y3iFMttg.js +368 -0
- package/bundled-test-harness/assets/markdown-fallback-test-Br1TPkLZ.js +316 -0
- package/bundled-test-harness/assets/markdown-file-def-test-Crm2MAnq.js +380 -0
- package/bundled-test-harness/assets/markdown-helpers-test-CZ9Vvywc.js +188 -0
- package/bundled-test-harness/assets/markdown-highlighting-test-CFMkoVDl.js +244 -0
- package/bundled-test-harness/assets/markdown-preview-Df5fp1SY.js +72 -0
- package/bundled-test-harness/assets/markdown-preview-test-DDaPzsVs.js +238 -0
- package/bundled-test-harness/assets/markdown-skill-frontmatter-test-aH6HQly1.js +146 -0
- package/bundled-test-harness/assets/markdown-skill-search-test-CiNLQs-5.js +80 -0
- package/bundled-test-harness/assets/matrix-service-account-switch-sessions-test-DaA8w1Jj.js +63 -0
- package/bundled-test-harness/assets/matrix-service-boot-assembly-test-21GIlf55.js +300 -0
- package/bundled-test-harness/assets/matrix-service-personal-realm-test-jn9DUENm.js +125 -0
- package/bundled-test-harness/assets/matrix-service-realm-servers-test-eNZVJakl.js +55 -0
- package/bundled-test-harness/assets/matrix-service-realms-list-updated-test-Cabm8_dY.js +132 -0
- package/bundled-test-harness/assets/matrix-service-relogin-test-C77EFgjc.js +59 -0
- package/bundled-test-harness/assets/matrix-service-sliding-sync-test-BgM0fPiO.js +35 -0
- package/bundled-test-harness/assets/menu-Cl50TSFe.js +3561 -0
- package/bundled-test-harness/assets/message-service-subscription-test-CfEqH2jP.js +110 -0
- package/bundled-test-harness/assets/message-service-test-DsTzH1In.js +144 -0
- package/bundled-test-harness/assets/message-tool-test-C5xVfTtj.js +33 -0
- package/bundled-test-harness/assets/midi-audio-def-test-goLRCNCZ.js +182 -0
- package/bundled-test-harness/assets/migrate-skill-test-yPCbVfxG.js +161 -0
- package/bundled-test-harness/assets/mini-YXjrY_tH.js +1404 -0
- package/bundled-test-harness/assets/mini-card-chooser-test-DrllikHB.js +272 -0
- package/bundled-test-harness/assets/mini-file-chooser-test-BfqayhmI.js +201 -0
- package/bundled-test-harness/assets/mock-matrix-C7BrPS6S.js +2 -0
- package/bundled-test-harness/assets/mock-matrix-FjsXmU7-.js +15107 -0
- package/bundled-test-harness/assets/modal-BgaZavcs.js +322 -0
- package/bundled-test-harness/assets/model-cost-tier-test-CZlu1zww.js +174 -0
- package/bundled-test-harness/assets/model-file-extract-test-CjEBupY5.js +206 -0
- package/bundled-test-harness/assets/module-transpile-cache-test-XW6DDsmz.js +67 -0
- package/bundled-test-harness/assets/monaco-test-DkoRuFiQ.js +100 -0
- package/bundled-test-harness/assets/mp3-audio-def-test-v369NNsQ.js +133 -0
- package/bundled-test-harness/assets/multiple-stacks-test-CJpYPWdM.js +208 -0
- package/bundled-test-harness/assets/nested-query-field-render-test-CfDrBcUN.js +249 -0
- package/bundled-test-harness/assets/no-stacks-test-MmsJeLpz.js +48 -0
- package/bundled-test-harness/assets/number-field-test-A7B2r0M5.js +184 -0
- package/bundled-test-harness/assets/office-file-def-test-BNRvFmCB.js +263 -0
- package/bundled-test-harness/assets/office-metadata-extractor-test-zlDoEIEp.js +218 -0
- package/bundled-test-harness/assets/office-poster-capture-test-DdFEaOxR.js +203 -0
- package/bundled-test-harness/assets/ogg-audio-def-test-kk91BzQY.js +196 -0
- package/bundled-test-harness/assets/open-create-listing-modal-test-D1Dl1pov.js +131 -0
- package/bundled-test-harness/assets/open-image-in-new-tab-test-DyCmdMyO.js +52 -0
- package/bundled-test-harness/assets/open-secure-window-test-dz1vPudF.js +253 -0
- package/bundled-test-harness/assets/open-workspace-test-BvTcskzP.js +46 -0
- package/bundled-test-harness/assets/operation-lowering-test-CKkamOQt.js +2957 -0
- package/bundled-test-harness/assets/operations-invocation-test-BMj42rQe.js +523 -0
- package/bundled-test-harness/assets/operations-optimistic-test-KJLyzT8v.js +203 -0
- package/bundled-test-harness/assets/operations-query-test-J3HcnaoK.js +459 -0
- package/bundled-test-harness/assets/operations-store-reconciliation-test-CkbGBMBQ.js +406 -0
- package/bundled-test-harness/assets/operations-test-C7zXXpRW.js +2518 -0
- package/bundled-test-harness/assets/operator-mode-acceptance-test-BPolI_RD.js +1195 -0
- package/bundled-test-harness/assets/operator-mode-card-chooser-test-CQ1v8med.js +1036 -0
- package/bundled-test-harness/assets/operator-mode-links-test-BMHEauS3.js +797 -0
- package/bundled-test-harness/assets/operator-mode-test-blL_JVF8.js +696 -0
- package/bundled-test-harness/assets/operator-mode-ui-test-BG6I7-Hc.js +1045 -0
- package/bundled-test-harness/assets/overlay-D2rQi8lJ.js +427 -0
- package/bundled-test-harness/assets/overlay-menu-items-test-D-zmRQQ0.js +331 -0
- package/bundled-test-harness/assets/overlays-COinwHCP.js +2 -0
- package/bundled-test-harness/assets/overlays-detached-element-test-C73nMXes.js +56 -0
- package/bundled-test-harness/assets/overlays-nTqcu69K.js +75 -0
- package/bundled-test-harness/assets/panel-D9SEMehG.js +15124 -0
- package/bundled-test-harness/assets/past-sessions-test-De9N4wVX.js +321 -0
- package/bundled-test-harness/assets/patch-fields-test-Bp2IE0Jw.js +1014 -0
- package/bundled-test-harness/assets/patch-instance-test-DssuRGKP.js +348 -0
- package/bundled-test-harness/assets/pdf-file-def-test-Barj9ffD.js +111 -0
- package/bundled-test-harness/assets/pdf-metadata-extractor-test-B7KnXcIm.js +130 -0
- package/bundled-test-harness/assets/permission-checking-realm-test-OBzvhDB_.js +306 -0
- package/bundled-test-harness/assets/persist-module-inspector-view-test-BIdbkdPr.js +60 -0
- package/bundled-test-harness/assets/persist-scroll-position-test-Bhb7wJiy.js +254 -0
- package/bundled-test-harness/assets/phone-number-field-test-C2yuCrXY.js +73 -0
- package/bundled-test-harness/assets/pill-menu-test-BIp91YXi.js +60 -0
- package/bundled-test-harness/assets/plate-DAr_pvwC.js +41 -0
- package/bundled-test-harness/assets/plate-DeoQd99m.js +2 -0
- package/bundled-test-harness/assets/player-BvXGBItd.js +2 -0
- package/bundled-test-harness/assets/player-CAVQUyKk.js +82 -0
- package/bundled-test-harness/assets/playground-B02e8uqB.js +58 -0
- package/bundled-test-harness/assets/plural-field-components-test-C1acuN-A.js +198 -0
- package/bundled-test-harness/assets/png-image-def-test-B9QeVo1f.js +266 -0
- package/bundled-test-harness/assets/policy-audit-confirmation-test-CeVquvc_.js +155 -0
- package/bundled-test-harness/assets/policy-scoped-search-test-SFPiIqR3.js +339 -0
- package/bundled-test-harness/assets/prerender-file-extract-test-HSJKAHyO.js +346 -0
- package/bundled-test-harness/assets/prerender-html-test-BTAcFCme.js +670 -0
- package/bundled-test-harness/assets/prerender-meta-test-Csyz2b21.js +614 -0
- package/bundled-test-harness/assets/prerender-module-test-DpTYAbmI.js +409 -0
- package/bundled-test-harness/assets/prerender-persistence-block-test-BhIt-7kK.js +124 -0
- package/bundled-test-harness/assets/prerender-pre-model-error-test-DxKPQKqx.js +61 -0
- package/bundled-test-harness/assets/prerender-serialize-cycle-test-C8V5YWQO.js +134 -0
- package/bundled-test-harness/assets/prerendered-html-read-test-Cq7JVGwg.js +191 -0
- package/bundled-test-harness/assets/pretui-components-test-Ducr9fLT.css +743 -0
- package/bundled-test-harness/assets/pretui-components-test-Hs0uyIUQ.js +992 -0
- package/bundled-test-harness/assets/pretui-primitives-CRs8NRm0.js +69 -0
- package/bundled-test-harness/assets/preview-format-test-cCqLrfdY.js +103 -0
- package/bundled-test-harness/assets/preview-test-BMqJSoR1.js +474 -0
- package/bundled-test-harness/assets/process-card-test-578tfDvr.js +94 -0
- package/bundled-test-harness/assets/profile-settings-modal-CVnNl7Yu.js +990 -0
- package/bundled-test-harness/assets/publish-realm-COoeWexp.js +82 -0
- package/bundled-test-harness/assets/publish-realm-test-a5nkx0Ov.js +210 -0
- package/bundled-test-harness/assets/query-field-barrier-test-qX3xVPfk.js +113 -0
- package/bundled-test-harness/assets/query-field-error-sentinel-test-V6JDPFLX.js +201 -0
- package/bundled-test-harness/assets/query-field-membership-status-test-CK7eDf-K.js +323 -0
- package/bundled-test-harness/assets/query-field-page-optin-test-B5YBHUvU.js +126 -0
- package/bundled-test-harness/assets/query-field-schema-test-D4SjOGlK.js +231 -0
- package/bundled-test-harness/assets/query-field-search-throttle-test-BVkm1-D8.js +154 -0
- package/bundled-test-harness/assets/query-field-stale-prerender-test-9g7hcD91.js +152 -0
- package/bundled-test-harness/assets/query-fields-test-CQYqhzpN.js +535 -0
- package/bundled-test-harness/assets/quick-look-test-icQwb1NJ.js +139 -0
- package/bundled-test-harness/assets/read-card-for-ai-assistant-test-D0mJorwH.js +91 -0
- package/bundled-test-harness/assets/read-file-for-ai-assistant-test-B_F_2GEB.js +45 -0
- package/bundled-test-harness/assets/read-source-test-BgJV4B4F.js +67 -0
- package/bundled-test-harness/assets/read-text-file-test-DaeLzg4u.js +124 -0
- package/bundled-test-harness/assets/realm-C_a9su1j.js +2858 -0
- package/bundled-test-harness/assets/realm-api-keys-D5USFOoS.js +2 -0
- package/bundled-test-harness/assets/realm-api-keys-m_VOcixC.js +578 -0
- package/bundled-test-harness/assets/realm-api-keys-test-C_uZnTmq.js +588 -0
- package/bundled-test-harness/assets/realm-api-keys-test-gtJ8XZCE.js +109 -0
- package/bundled-test-harness/assets/realm-config-m5eccPW8.js +833 -0
- package/bundled-test-harness/assets/realm-config-policy-standing-test-CXJ4ZMde.js +290 -0
- package/bundled-test-harness/assets/realm-config-routing-rule-edit-test-DoEunShH.js +274 -0
- package/bundled-test-harness/assets/realm-config-settings-test-BYi9i4O6.js +187 -0
- package/bundled-test-harness/assets/realm-field-test-B_PUoqnk.js +100 -0
- package/bundled-test-harness/assets/realm-indexing-test-8iLjeV_e.js +4380 -0
- package/bundled-test-harness/assets/realm-policy-fitted-test-Bptvra0U.js +206 -0
- package/bundled-test-harness/assets/realm-policy-test-DwG0qqXE.js +1141 -0
- package/bundled-test-harness/assets/realm-querying-test-Dvw26A6Q.js +1067 -0
- package/bundled-test-harness/assets/realm-server-form-agnostic-test-DrXQH0UP.js +96 -0
- package/bundled-test-harness/assets/realm-server-subscriber-test-Dkj23vQK.js +46 -0
- package/bundled-test-harness/assets/realm-service-info-test-CdRlDhj-.js +67 -0
- package/bundled-test-harness/assets/realm-test-DGYN48Qx.js +2364 -0
- package/bundled-test-harness/assets/realm-token-refresh-test-CEWATL9h.js +153 -0
- package/bundled-test-harness/assets/realm-url-tooltip-test-8ZjTNPuy.js +78 -0
- package/bundled-test-harness/assets/reasoning-test-WUx-4agu.js +221 -0
- package/bundled-test-harness/assets/recent-files-test-Dc6L6Dm4.js +450 -0
- package/bundled-test-harness/assets/reindex-realm-test-CFRSt39u.js +117 -0
- package/bundled-test-harness/assets/relationship-loading-state-test-FKbtOFUr.js +290 -0
- package/bundled-test-harness/assets/remix-card-test-CKGC_Sgq.js +58 -0
- package/bundled-test-harness/assets/rendered-markdown-B_jWmDrK.js +292 -0
- package/bundled-test-harness/assets/rendered-markdown-test-sdWhU0NA.js +587 -0
- package/bundled-test-harness/assets/resident-instance-reuse-test-BjdhE6CM.js +82 -0
- package/bundled-test-harness/assets/result-tile-o6dtjgX4.js +144 -0
- package/bundled-test-harness/assets/rich-markdown-field-test-VXr6l20h.js +1647 -0
- package/bundled-test-harness/assets/room-message-test-BYNhZ39n.js +484 -0
- package/bundled-test-harness/assets/run-FzaqmBEl.js +3959 -0
- package/bundled-test-harness/assets/run-realm-code-DsBUf1si.js +2964 -0
- package/bundled-test-harness/assets/run-realm-code-test-cS0DzaKo.js +3844 -0
- package/bundled-test-harness/assets/sanitize-module-list-test-CvuOOiUY.js +85 -0
- package/bundled-test-harness/assets/save-card-skip-index-wait-test-fpJ1eq32.js +89 -0
- package/bundled-test-harness/assets/schema-editor-test-NkKjCgyf.js +785 -0
- package/bundled-test-harness/assets/schema-generation-test-Dmg3lWl7.js +28 -0
- package/bundled-test-harness/assets/scrolling-test-Dd4gv_fj.js +412 -0
- package/bundled-test-harness/assets/search-adorn-test-CZebk7_y.js +136 -0
- package/bundled-test-harness/assets/search-and-choose-test-Bd4NZUup.js +154 -0
- package/bundled-test-harness/assets/search-correlation-id-test-DXKlEO55.js +139 -0
- package/bundled-test-harness/assets/search-entries-result-test-QQawA8Fm.js +234 -0
- package/bundled-test-harness/assets/search-entries-test-3DlqGPQq.js +1486 -0
- package/bundled-test-harness/assets/search-entries-tool-test-D1TvDE9D.js +504 -0
- package/bundled-test-harness/assets/search-google-images-test-DqsoQGr1.js +166 -0
- package/bundled-test-harness/assets/search-results-DGrNaPxh.js +266 -0
- package/bundled-test-harness/assets/search-results-test-CqVHYNRt.js +578 -0
- package/bundled-test-harness/assets/search-selection-menu-test-D6bIjKiH.js +108 -0
- package/bundled-test-harness/assets/search-sheet-files-test-Bf37TQXo.js +126 -0
- package/bundled-test-harness/assets/search-sheet-persistence-test-CV4_XdxR.js +131 -0
- package/bundled-test-harness/assets/search-test-Dlb-wg3a.js +2249 -0
- package/bundled-test-harness/assets/search-tool-test-BJLgVMoL.js +156 -0
- package/bundled-test-harness/assets/searchable-option-test-eJaIPH_L.js +322 -0
- package/bundled-test-harness/assets/searchable-search-doc-test-yH9fLGNS.js +1271 -0
- package/bundled-test-harness/assets/section-rail-CNFCebtT.js +113 -0
- package/bundled-test-harness/assets/section-rail-test-KNJAWWl6.js +256 -0
- package/bundled-test-harness/assets/secure-sign-in-Dyljp0Th.js +174 -0
- package/bundled-test-harness/assets/secure-sign-in-test-QnqNuTP3.js +373 -0
- package/bundled-test-harness/assets/segmented-control-DxJdoJ4Z.js +173 -0
- package/bundled-test-harness/assets/select-BiQTg2ts.js +175 -0
- package/bundled-test-harness/assets/send-ai-assistant-message-test-CAn7M2dZ.js +52 -0
- package/bundled-test-harness/assets/send-bot-trigger-event-test-qBu5E_jy.js +56 -0
- package/bundled-test-harness/assets/send-request-via-proxy-test-CLuwLBq_.js +380 -0
- package/bundled-test-harness/assets/sending-test-Dt9Dh2wW.js +659 -0
- package/bundled-test-harness/assets/serialization-rri-form-audit-test-hMJukiKt.js +136 -0
- package/bundled-test-harness/assets/serialization-test-W5e3wKbz.js +8758 -0
- package/bundled-test-harness/assets/set-user-system-card-test-CjgWLkNV.js +59 -0
- package/bundled-test-harness/assets/setup-CssMNvui.js +772 -0
- package/bundled-test-harness/assets/setup-D8YXvK-p.js +2 -0
- package/bundled-test-harness/assets/shared-link-target-reuse-test-D42UO8DC.js +207 -0
- package/bundled-test-harness/assets/show-card-test-CHEaS514.js +365 -0
- package/bundled-test-harness/assets/signed-capture-link-test-BgEu0F-S.js +132 -0
- package/bundled-test-harness/assets/single-stack-test-DYcu_v7Z.js +652 -0
- package/bundled-test-harness/assets/skills-test-BP8QNesE.js +648 -0
- package/bundled-test-harness/assets/skip-boot-index-guard-test-BzRIncDN.js +46 -0
- package/bundled-test-harness/assets/spec-test-BYvFR6Xb.js +1077 -0
- package/bundled-test-harness/assets/spinner-Bx9x55NA.js +49 -0
- package/bundled-test-harness/assets/src-LqENIikj.js +5 -0
- package/bundled-test-harness/assets/src-a4d10Hra.js +216 -0
- package/bundled-test-harness/assets/stick-to-bottom-resize-test-BBLiCR3X.js +56 -0
- package/bundled-test-harness/assets/store-add-test-D_9IHQjZ.js +50 -0
- package/bundled-test-harness/assets/store-module-rebuild-test-BRGZoLRV.js +454 -0
- package/bundled-test-harness/assets/store-search-test-3G8JHuj2.js +175 -0
- package/bundled-test-harness/assets/store-test-Dd4WQp7L.js +3672 -0
- package/bundled-test-harness/assets/structured-theme-test-11TNsgUW.js +377 -0
- package/bundled-test-harness/assets/summarize-session-test-CwzD_ZbD.js +172 -0
- package/bundled-test-harness/assets/svg-image-def-test-zV6aMK9q.js +167 -0
- package/bundled-test-harness/assets/switch-submode-test-DQU2cP5_.js +168 -0
- package/bundled-test-harness/assets/sync-openrouter-models-test-xrXVaC2H.js +97 -0
- package/bundled-test-harness/assets/test-support-QTh6wGxu.js +3 -0
- package/bundled-test-harness/assets/test-support-Tr-PYFgc.js +99 -0
- package/bundled-test-harness/assets/tests-zLlwPutr.js +3598 -0
- package/bundled-test-harness/assets/text-file-def-test-Cyq78UFY.js +94 -0
- package/bundled-test-harness/assets/text-input-validator-test-C1uDVZU7.js +156 -0
- package/bundled-test-harness/assets/text-suggestion-test-C4XAqWqY.js +340 -0
- package/bundled-test-harness/assets/theme-card-test-dVNz4tgU.js +621 -0
- package/bundled-test-harness/assets/theme-dashboard-nav-test-DYSn5pqo.js +196 -0
- package/bundled-test-harness/assets/theme-scheme-island-test-C1WpkfEP.js +264 -0
- package/bundled-test-harness/assets/theme-scoped-css-parity-test-BVluppsE.js +176 -0
- package/bundled-test-harness/assets/titles-0a1luoTq.js +52 -0
- package/bundled-test-harness/assets/titles-DKHNLVwC.js +2 -0
- package/bundled-test-harness/assets/to-device-streaming-test-3A6jI0_r.js +163 -0
- package/bundled-test-harness/assets/token-usage-test-33ovcqPk.js +160 -0
- package/bundled-test-harness/assets/tools-J_Knr_W6.js +774 -0
- package/bundled-test-harness/assets/tools-calling-test-CfqZX0Ed.js +200 -0
- package/bundled-test-harness/assets/tools-test-B4x58ZmI.js +1624 -0
- package/bundled-test-harness/assets/tools-test-DtUQp5ez.js +3204 -0
- package/bundled-test-harness/assets/tooltip-B0rEgyMW.css +66 -0
- package/bundled-test-harness/assets/tooltip-DvUMUgVX.js +195 -0
- package/bundled-test-harness/assets/transform-cards-test-CYQbZeD9.js +341 -0
- package/bundled-test-harness/assets/ts-file-def-preview-test-m39f8Zio.js +95 -0
- package/bundled-test-harness/assets/ts-file-def-test-xIcL5xWe.js +92 -0
- package/bundled-test-harness/assets/ttf-font-def-test-ClQ2SzFF.js +206 -0
- package/bundled-test-harness/assets/turn-settling-test-DqYk312r.js +160 -0
- package/bundled-test-harness/assets/turn-summary-Bmt7ZxTS.js +1039 -0
- package/bundled-test-harness/assets/unpublish-realm-test-0ToTJczx.js +102 -0
- package/bundled-test-harness/assets/update-room-skills-test-o_j8NOUV.js +240 -0
- package/bundled-test-harness/assets/use-ai-assistant-test-D7HFpxKJ.js +384 -0
- package/bundled-test-harness/assets/user-message-BAOt1hS3.js +262 -0
- package/bundled-test-harness/assets/validate-realm-test-e3xIbNLB.js +67 -0
- package/bundled-test-harness/assets/video-metadata-extractor-test-D8naLSlg.js +520 -0
- package/bundled-test-harness/assets/view-visually-test-BuhGau5E.js +335 -0
- package/bundled-test-harness/assets/virtual-network-reset-test-CgaFNGPi.js +96 -0
- package/bundled-test-harness/assets/wav-audio-def-test-CWG_UdCh.js +160 -0
- package/bundled-test-harness/assets/webp-image-def-test-sN4yw8Zu.js +226 -0
- package/bundled-test-harness/assets/workspace-0LfPqbYB.js +445 -0
- package/bundled-test-harness/assets/workspace-a11y-test-DQxYDRAP.js +197 -0
- package/bundled-test-harness/assets/workspace-actions-jGJSfl8M.js +588 -0
- package/bundled-test-harness/assets/workspace-behavior-test-BnF-bmBN.js +338 -0
- package/bundled-test-harness/assets/workspace-delete-multiple-test-D-rxPDuT.js +212 -0
- package/bundled-test-harness/assets/workspace-delete-summary-test-C2-Mve5R.js +63 -0
- package/bundled-test-harness/assets/workspace-hosting-test-BvDKdlOb.js +138 -0
- package/bundled-test-harness/assets/workspace-indexing-test-B34T3kqD.js +71 -0
- package/bundled-test-harness/assets/workspace-test-CJivgv-m.js +51 -0
- package/bundled-test-harness/assets/workspace-test-CuSRpPnQ.js +385 -0
- package/bundled-test-harness/assets/workspace-timestamp-labels-test-aWgjdbCp.js +68 -0
- package/bundled-test-harness/assets/workspace-unit-test-DHMUf2KT.js +122 -0
- package/bundled-test-harness/assets/write-binary-file-test-P-hVQuin.js +124 -0
- package/bundled-test-harness/assets/write-text-file-test-fXvJueDd.js +191 -0
- package/bundled-test-harness/assets/zip-archive-test-C2P5CUSR.js +285 -0
- package/bundled-test-harness/assets/zip-file-def-test-BfJZAmGt.js +164 -0
- package/bundled-test-harness/boxel-ui-checksum.txt +1 -1
- package/bundled-test-harness/index.html +47 -47
- package/bundled-test-harness/tests/index.html +49 -49
- package/bundled-types/boxel-ui/helpers/theme-scoped-css.ts +4 -0
- package/bundled-types/choreo/choreo.gts +13 -1
- package/bundled-types/choreo/run.ts +19 -0
- package/bundled-types/host-app/components/operator-mode/dashboard/get-started.gts +152 -7
- package/bundled-types/host-app/components/operator-mode/dashboard/index.gts +2 -0
- package/bundled-types/host-app/components/operator-mode/dashboard/workspace.gts +5 -3
- package/bundled-types/host-app/components/operator-mode/dashboard-modals/workspace-modals.gts +5 -22
- package/bundled-types/host-app/components/operator-mode/host-submode/publishing-realm-popover.gts +1 -1
- package/bundled-types/host-app/components/operator-mode/host-submode.gts +111 -37
- package/bundled-types/host-app/components/operator-mode/publish-realm-modal.gts +1 -0
- package/bundled-types/host-app/lib/modal-focus-trap.ts +33 -0
- package/bundled-types/host-app/lib/workspace-actions.ts +21 -0
- package/bundled-types/host-app/services/host-mode-service.ts +39 -0
- package/bundled-types/host-app/services/realm.ts +14 -0
- package/bundled-types/host-tests/helpers/dashboard.ts +67 -0
- package/package.json +1 -1
- package/bundled-test-harness/assets/account-switch-failed-test-FytUFiPO.js +0 -45
- package/bundled-test-harness/assets/adapter-DvmPwSZv.js +0 -2
- package/bundled-test-harness/assets/add-field-to-card-definition-tool-test-DN525jiY.js +0 -112
- package/bundled-test-harness/assets/ai-assistant-create-workspace-test-q3tKqVJQ.js +0 -130
- package/bundled-test-harness/assets/ai-assistant-panel-relogin-test-DgeXcCyi.js +0 -46
- package/bundled-test-harness/assets/ai-assistant-test-lDIGPKFP.js +0 -2223
- package/bundled-test-harness/assets/ai-function-generation-test-D5GbLyvL.js +0 -1176
- package/bundled-test-harness/assets/ai-module-creation-test-I3-j2beD.js +0 -151
- package/bundled-test-harness/assets/aibot-message-Dmsjifs6.js +0 -1312
- package/bundled-test-harness/assets/app-BS9_-DhN.js +0 -14146
- package/bundled-test-harness/assets/apply-markdown-edit-test-4zlwt0Db.js +0 -230
- package/bundled-test-harness/assets/ask-user-picker-Dr-0qpNr.js +0 -370
- package/bundled-test-harness/assets/ask-user-picker-test-633AFdmS.js +0 -39
- package/bundled-test-harness/assets/assistant-transcript-test-BgRnLvMg.js +0 -57
- package/bundled-test-harness/assets/audio-metadata-extractor-test-4xsQqL-0.js +0 -1176
- package/bundled-test-harness/assets/authed-fetch-test-663mT5_N.js +0 -73
- package/bundled-test-harness/assets/avif-image-def-test-h01BPIJy.js +0 -187
- package/bundled-test-harness/assets/basic-test-DiD6T-8Q.js +0 -139
- package/bundled-test-harness/assets/binary-upload-dedupe-test-CkjMPO_e.js +0 -308
- package/bundled-test-harness/assets/bot-registration-test-CFZHpwdj.js +0 -97
- package/bundled-test-harness/assets/box-test-C3pSy5ED.js +0 -50
- package/bundled-test-harness/assets/brand-guide-attachments-test-EoC_u7Vc.js +0 -84
- package/bundled-test-harness/assets/brand-guide-custom-css-test-Dn3fvblr.js +0 -196
- package/bundled-test-harness/assets/brand-guide-edit-test-NeiT3MyK.js +0 -140
- package/bundled-test-harness/assets/brand-logo-mark-field-test-C2A1EnBB.js +0 -86
- package/bundled-test-harness/assets/broken-link-template-test-CWn6V5zZ.js +0 -192
- package/bundled-test-harness/assets/bundled-base-modules-test-D7mLzpsw.js +0 -54
- package/bundled-test-harness/assets/bundled-base-oracle-test-I7xCId_k.js +0 -37
- package/bundled-test-harness/assets/buried-stack-item-scroll-test-DFBev0h-.js +0 -236
- package/bundled-test-harness/assets/button-BeSuhveJ.js +0 -207
- package/bundled-test-harness/assets/bxl-cyclic-graph-test-DPykwvvx.js +0 -47
- package/bundled-test-harness/assets/bxl-expression-test-LBWJiFb9.js +0 -250
- package/bundled-test-harness/assets/bxl-indexing-test-BuZmLk7y.js +0 -212
- package/bundled-test-harness/assets/bxl-platform-module-test-BNIvlkCM.js +0 -71
- package/bundled-test-harness/assets/can-invoke-test-t-bFIIeX.js +0 -455
- package/bundled-test-harness/assets/can-read-realm-test-2Q_MzRT9.js +0 -56
- package/bundled-test-harness/assets/cancel-indexing-job-test-QeYxEukn.js +0 -69
- package/bundled-test-harness/assets/capture-test-CJmJG8YR.js +0 -360
- package/bundled-test-harness/assets/card-api-test-B43I510H.js +0 -198
- package/bundled-test-harness/assets/card-basics-test-CBClzP2y.js +0 -5364
- package/bundled-test-harness/assets/card-chooser-paging-test-HEVzf6pR.js +0 -235
- package/bundled-test-harness/assets/card-chooser-test-GfjBRPFI.js +0 -393
- package/bundled-test-harness/assets/card-context-search-results-CoSr4EdS.js +0 -30
- package/bundled-test-harness/assets/card-context-search-results-test-BLMlZu9t.js +0 -184
- package/bundled-test-harness/assets/card-def-field-def-relationships-test-DEBOzKan.js +0 -562
- package/bundled-test-harness/assets/card-def-menu-items-test-88_h8o0D.js +0 -228
- package/bundled-test-harness/assets/card-delete-test-DKom1phy.js +0 -466
- package/bundled-test-harness/assets/card-error-awaiting-index-test-DEwgFZMP.js +0 -53
- package/bundled-test-harness/assets/card-error-r6_cXst9.js +0 -72
- package/bundled-test-harness/assets/card-info-thumbnail-picker-test-B7LiY15e.js +0 -219
- package/bundled-test-harness/assets/card-playground-test-CgyIJHui.js +0 -1491
- package/bundled-test-harness/assets/card-prerender-rPfzpIOU.js +0 -12939
- package/bundled-test-harness/assets/card-thunk-error-test-L0pvg4Ce.js +0 -48
- package/bundled-test-harness/assets/card-type-service-test-B2dhqxSD.js +0 -161
- package/bundled-test-harness/assets/check-correctness-test-DgqaLlCW.js +0 -1093
- package/bundled-test-harness/assets/check-domain-availability-test-B0hJHY5l.js +0 -98
- package/bundled-test-harness/assets/chip-D01NW3WH.js +0 -44
- package/bundled-test-harness/assets/choreo-D2Jl79RU.js +0 -1019
- package/bundled-test-harness/assets/choreo-_E8SOEe-.js +0 -2
- package/bundled-test-harness/assets/choreo-feature-reel-test-WLjsZDmS.js +0 -155
- package/bundled-test-harness/assets/choreo-gallery-build-order-test-6jnS8PsS.js +0 -436
- package/bundled-test-harness/assets/choreo-gallery-compositor-test-CbUZsVB6.js +0 -399
- package/bundled-test-harness/assets/choreo-gallery-cover-test-CbvAStgk.js +0 -214
- package/bundled-test-harness/assets/choreo-gallery-crossing-stage-test-tdjvUSa6.js +0 -133
- package/bundled-test-harness/assets/choreo-gallery-demos-alive-test-CsnM3hQK.js +0 -42
- package/bundled-test-harness/assets/choreo-gallery-drift-test-DG2LQTa7.js +0 -620
- package/bundled-test-harness/assets/choreo-gallery-escort-test-mn3-qXP1.js +0 -187
- package/bundled-test-harness/assets/choreo-gallery-films-test-BuktaC0D.js +0 -140
- package/bundled-test-harness/assets/choreo-gallery-filter-test-Dd-zpps0.js +0 -46
- package/bundled-test-harness/assets/choreo-gallery-fold-test-CWc1ijGc.js +0 -180
- package/bundled-test-harness/assets/choreo-gallery-guide-pages-test-tk2QmYPU.js +0 -114
- package/bundled-test-harness/assets/choreo-gallery-guides-test-DVbf1zM4.js +0 -321
- package/bundled-test-harness/assets/choreo-gallery-hang-test-B7EFp2dx.js +0 -426
- package/bundled-test-harness/assets/choreo-gallery-highlight-test-BFgbdesP.js +0 -60
- package/bundled-test-harness/assets/choreo-gallery-inline-edit-test-DJb8FC5R.js +0 -370
- package/bundled-test-harness/assets/choreo-gallery-interruption-test-DWyMXo5D.js +0 -176
- package/bundled-test-harness/assets/choreo-gallery-lone-stack-test-D3b8LsJ6.js +0 -104
- package/bundled-test-harness/assets/choreo-gallery-navigation-test-CjjU6Rvn.js +0 -193
- package/bundled-test-harness/assets/choreo-gallery-playhead-transport-test-Le_h3QWU.js +0 -111
- package/bundled-test-harness/assets/choreo-gallery-poplayout-subtree-test-Cp-DlWj4.js +0 -127
- package/bundled-test-harness/assets/choreo-gallery-presence-modes-test-DayS4GCJ.js +0 -100
- package/bundled-test-harness/assets/choreo-gallery-presentation-test-DeAfuFS7.js +0 -157
- package/bundled-test-harness/assets/choreo-gallery-reduced-motion-test-BgPWpggq.js +0 -145
- package/bundled-test-harness/assets/choreo-gallery-sheet-standalone-test-PzyoMNYv.js +0 -89
- package/bundled-test-harness/assets/choreo-gallery-sheet-test-CxaiNBkL.js +0 -48
- package/bundled-test-harness/assets/choreo-gallery-site-test-6xtSntS5.js +0 -237
- package/bundled-test-harness/assets/choreo-gallery-stage-E6Q5r-zU.js +0 -256
- package/bundled-test-harness/assets/choreo-gallery-stage-keyboard-test-C7aWMr9a.js +0 -102
- package/bundled-test-harness/assets/choreo-gallery-stages-test-CDWWgC61.js +0 -35
- package/bundled-test-harness/assets/choreo-gallery-subdivision-test-Bkp15XJv.js +0 -138
- package/bundled-test-harness/assets/choreo-gallery-table-plan-test-CcGRi_3O.js +0 -144
- package/bundled-test-harness/assets/choreo-gallery-theater-test-Qph5pLT_.js +0 -252
- package/bundled-test-harness/assets/choreo-gallery-tuning-test-C4DhFLVA.js +0 -95
- package/bundled-test-harness/assets/choreo-gallery-widget-room-test-LK493r1M.js +0 -88
- package/bundled-test-harness/assets/choreo-gallery-wires-test-B7SeUCc8.js +0 -148
- package/bundled-test-harness/assets/client-telemetry-test-DGmHzAFx.js +0 -340
- package/bundled-test-harness/assets/clip-BpYQPVz_.js +0 -2
- package/bundled-test-harness/assets/clip-CNaYbIwL.js +0 -92
- package/bundled-test-harness/assets/code-block-Cp2CJo5-.js +0 -502
- package/bundled-test-harness/assets/code-ref-test-C8JBHDb-.js +0 -163
- package/bundled-test-harness/assets/code-submode-availability-test-CzG1Tv6L.js +0 -198
- package/bundled-test-harness/assets/code-submode-test-BclVWjm5.js +0 -1839
- package/bundled-test-harness/assets/codeblocks-test-CmQlyxN7.js +0 -418
- package/bundled-test-harness/assets/codemirror-editor-test-B74H_yn8.js +0 -1512
- package/bundled-test-harness/assets/codemirror-embed-toolbar-test-Bz6VEysU.js +0 -366
- package/bundled-test-harness/assets/color-field-test-DMCPQKIP.js +0 -212
- package/bundled-test-harness/assets/compaction-test-saQCLBrQ.js +0 -150
- package/bundled-test-harness/assets/computed-test-C05HliJC.js +0 -1320
- package/bundled-test-harness/assets/container-Cqcwrd-m.js +0 -10857
- package/bundled-test-harness/assets/content-preview-components-test-DZPj4_CU.js +0 -462
- package/bundled-test-harness/assets/copy-and-edit-test-DiXTQNTF.js +0 -292
- package/bundled-test-harness/assets/copy-card-test-ys7GquUY.js +0 -218
- package/bundled-test-harness/assets/copy-file-to-realm-test-Gn0Wn4vT.js +0 -148
- package/bundled-test-harness/assets/copy-source-test-BTLrOmPm.js +0 -56
- package/bundled-test-harness/assets/create-file-test-BCeIW-Rt.js +0 -464
- package/bundled-test-harness/assets/create-file-test-DbHQ5JsS.js +0 -1086
- package/bundled-test-harness/assets/create-listing-modal-test-CeHc4ter.js +0 -273
- package/bundled-test-harness/assets/create-listing-pr-request-test-DXbJNfMh.js +0 -117
- package/bundled-test-harness/assets/create-spec-test-BDIZoyHT.js +0 -256
- package/bundled-test-harness/assets/create-submission-workflow-test-Bix5J-3A.js +0 -132
- package/bundled-test-harness/assets/create-workspace-test-BmNnLHwC.js +0 -104
- package/bundled-test-harness/assets/credential-fields-test-NK1F4QWn.js +0 -200
- package/bundled-test-harness/assets/csv-file-def-test-BSfs4TTP.js +0 -102
- package/bundled-test-harness/assets/dashboard-C4T7ffKY.js +0 -3576
- package/bundled-test-harness/assets/dashboard-CFeHuP5-.js +0 -81
- package/bundled-test-harness/assets/dashboard-DQlpW-ux.css +0 -2392
- package/bundled-test-harness/assets/dashboard-add-workspace-test--rr6objf.js +0 -50
- package/bundled-test-harness/assets/dashboard-agents-test-D1y8H4xH.js +0 -334
- package/bundled-test-harness/assets/dashboard-archive-test-bN4EQaXv.js +0 -128
- package/bundled-test-harness/assets/dashboard-delete-test-BvsASb8B.js +0 -163
- package/bundled-test-harness/assets/dashboard-duplicate-offer-test-DEsd5ZzZ.js +0 -71
- package/bundled-test-harness/assets/dashboard-duplicate-test-BnR0sTgB.js +0 -222
- package/bundled-test-harness/assets/dashboard-get-started-test-DG4uUXLv.js +0 -246
- package/bundled-test-harness/assets/dashboard-pinned-cards-test-AoGGVRAS.js +0 -220
- package/bundled-test-harness/assets/dashboard-reindex-test-BN9a96Xp.js +0 -115
- package/bundled-test-harness/assets/dashboard-section-rail-test-B3OT9V2T.js +0 -169
- package/bundled-test-harness/assets/dashboard-state-test-BY0Zqrmj.js +0 -162
- package/bundled-test-harness/assets/dashboard-test-C13oNpWt.js +0 -545
- package/bundled-test-harness/assets/dashboard-unreachable-notice-test-DZIV4x5j.js +0 -62
- package/bundled-test-harness/assets/dashboard-workspace-test-CBnOQViI.js +0 -537
- package/bundled-test-harness/assets/dashboard-workspaces-section-test-KU8ZVOYp.js +0 -396
- package/bundled-test-harness/assets/data-file-def-preview-test-CI5gcdtK.js +0 -155
- package/bundled-test-harness/assets/date-time-fields-test-D2CpR_Pb.js +0 -359
- package/bundled-test-harness/assets/debug-message-test-Df1kHesw.js +0 -117
- package/bundled-test-harness/assets/declared-captures-test-hQ43zuox.js +0 -879
- package/bundled-test-harness/assets/delete-workspace-test-BhfMKsix.js +0 -102
- package/bundled-test-harness/assets/diffing-test-CHRh55mC.js +0 -210
- package/bundled-test-harness/assets/download-file-to-realm-test-CC1HURCi.js +0 -119
- package/bundled-test-harness/assets/editor-test-DkeCv28f.js +0 -688
- package/bundled-test-harness/assets/edits-BSJqtUXM.js +0 -651
- package/bundled-test-harness/assets/email-field-test-DihK0suO.js +0 -75
- package/bundled-test-harness/assets/enum-field-test-Gja3bzt5.js +0 -935
- package/bundled-test-harness/assets/error-display-test-GhYZu7cp.js +0 -343
- package/bundled-test-harness/assets/evaluate-module-test-D_t4CiUq.js +0 -91
- package/bundled-test-harness/assets/execute-atomic-operations-test-xtou8Zeg.js +0 -113
- package/bundled-test-harness/assets/externals-B02-sD_L.js +0 -4393
- package/bundled-test-harness/assets/fallback-banner-live-delete-test-DtxzNXdE.js +0 -207
- package/bundled-test-harness/assets/fallback-banner-test-BfmiQ_68.js +0 -53
- package/bundled-test-harness/assets/fallback-banner-test-DLtTdmvn.js +0 -225
- package/bundled-test-harness/assets/fallback-models-test-BxNJxhfd.js +0 -161
- package/bundled-test-harness/assets/fetch-card-json-test-DofKbzvC.js +0 -61
- package/bundled-test-harness/assets/field-configuration-test-SUoPaXWy.js +0 -551
- package/bundled-test-harness/assets/field-markdown-domain-test-BwtR0dPP.js +0 -616
- package/bundled-test-harness/assets/field-markdown-oversize-test-D8UJcBc3.js +0 -88
- package/bundled-test-harness/assets/field-markdown-primitives-test-D5_ZdoDO.js +0 -365
- package/bundled-test-harness/assets/field-markdown-specialized-test-Dpd5hs04.js +0 -534
- package/bundled-test-harness/assets/field-playground-test-CzhYzKGv.js +0 -894
- package/bundled-test-harness/assets/field-support-predicates-test-BSvVOFth.js +0 -167
- package/bundled-test-harness/assets/file-attachment-test-fM-yFedm.js +0 -796
- package/bundled-test-harness/assets/file-chooser-panel-test-CKj8YTdY.js +0 -153
- package/bundled-test-harness/assets/file-chooser-test-Bs8jFXqa.js +0 -504
- package/bundled-test-harness/assets/file-def-format-templates-test-CxrRoWoD.js +0 -380
- package/bundled-test-harness/assets/file-def-live-reload-test-X_8YEkve.js +0 -124
- package/bundled-test-harness/assets/file-def-menu-items-test-Dx879o_o.js +0 -138
- package/bundled-test-harness/assets/file-def-navigation-test-MMI_EEO1.js +0 -109
- package/bundled-test-harness/assets/file-def-serialization-test-B5lguBQD.js +0 -89
- package/bundled-test-harness/assets/file-def-test-Di9QWcrj.js +0 -216
- package/bundled-test-harness/assets/file-preview-live-reload-test-aqx93A7c.js +0 -310
- package/bundled-test-harness/assets/file-resource-primitives-test-a5abpcSB.js +0 -255
- package/bundled-test-harness/assets/file-tree-from-index-test-CnruGxJ8.js +0 -96
- package/bundled-test-harness/assets/file-tree-test-BCyWDdSE.js +0 -851
- package/bundled-test-harness/assets/file-view-model-test-BfpLa01Y.js +0 -346
- package/bundled-test-harness/assets/filedef-export-shape-test-CQ9XbrzS.js +0 -61
- package/bundled-test-harness/assets/film-CL1zj_bJ.js +0 -2
- package/bundled-test-harness/assets/film-Dq_quZ31.js +0 -13
- package/bundled-test-harness/assets/film-xbkQa060.js +0 -4074
- package/bundled-test-harness/assets/flac-audio-def-test-BmVp9dMx.js +0 -143
- package/bundled-test-harness/assets/focus-Dm4wkM72.js +0 -306
- package/bundled-test-harness/assets/font-metadata-extractor-test-OWEh9_MS.js +0 -415
- package/bundled-test-harness/assets/formatted-aibot-message-test-BpHsWpuV.js +0 -109
- package/bundled-test-harness/assets/formatted-user-message-test-DZW5TAr0.js +0 -43
- package/bundled-test-harness/assets/freestyle-test-D_uaPU_3.js +0 -17
- package/bundled-test-harness/assets/full-reindex-realm-test-C6vHL5kC.js +0 -101
- package/bundled-test-harness/assets/garbage-collection-test-D-Ao4t2n.js +0 -403
- package/bundled-test-harness/assets/general-test-PSGI8W0z.js +0 -923
- package/bundled-test-harness/assets/generate-example-cards-one-shot-test-J-m-0E6W.js +0 -65
- package/bundled-test-harness/assets/generic-file-def-preview-test-BAsOhTYU.js +0 -71
- package/bundled-test-harness/assets/get-available-realm-identifiers-test-D5PBOr97.js +0 -47
- package/bundled-test-harness/assets/get-catalog-realm-identifiers-test-NM9UURHE.js +0 -47
- package/bundled-test-harness/assets/get-default-writable-realm-test-BxXc9a3J.js +0 -54
- package/bundled-test-harness/assets/get-published-realms-test-C8TJEc4-.js +0 -71
- package/bundled-test-harness/assets/get-realm-of-resource-identifier-test-Dt8CB6lS.js +0 -54
- package/bundled-test-harness/assets/get-relationship-membership-state-test-9_8x3myJ.js +0 -1308
- package/bundled-test-harness/assets/get-user-system-card-test-k0UO-uba.js +0 -67
- package/bundled-test-harness/assets/gif-image-def-test-BWrqPGDX.js +0 -188
- package/bundled-test-harness/assets/glimmer-motion-and-choreo-in-cards-test-BgG8QI9E.js +0 -160
- package/bundled-test-harness/assets/glimmer-motion-and-choreo-test-BKOvNyCN.js +0 -74
- package/bundled-test-harness/assets/gts-file-def-test-BCRHwDeZ.js +0 -100
- package/bundled-test-harness/assets/head-format-preview-test-DnfUhniI.js +0 -158
- package/bundled-test-harness/assets/helpers-DklkegO_.js +0 -5
- package/bundled-test-harness/assets/host-mode-service-vOfN0smp.js +0 -232
- package/bundled-test-harness/assets/host-mode-test-CCCJFz6_.js +0 -831
- package/bundled-test-harness/assets/host-submode-test-CtCfbuPA.js +0 -1342
- package/bundled-test-harness/assets/html-component-test-CWyhb5ZX.js +0 -65
- package/bundled-test-harness/assets/html-def-test-Cb8C2lUx.js +0 -160
- package/bundled-test-harness/assets/html-meta-extractor-test-BHT9Rtir.js +0 -60
- package/bundled-test-harness/assets/hydratable-card-test-DpgpdesD.js +0 -426
- package/bundled-test-harness/assets/icon-button-ABCGVF3C.js +0 -67
- package/bundled-test-harness/assets/image-metadata-extractor-test-ClhPTouq.js +0 -1109
- package/bundled-test-harness/assets/index-changes-test-CgnVr3LH.js +0 -367
- package/bundled-test-harness/assets/index-query-engine-test-CQTwju5_.js +0 -2593
- package/bundled-test-harness/assets/index-writer-test-IoVOoZT2.js +0 -3040
- package/bundled-test-harness/assets/inspector-test-BN2Ieb77.js +0 -2058
- package/bundled-test-harness/assets/instance-filter-matcher-test-Bq-_Sy89.js +0 -788
- package/bundled-test-harness/assets/instantiate-card-test-DEeDTzFV.js +0 -164
- package/bundled-test-harness/assets/interact-submode-creation-and-permissions-test-DP6kOyJS.js +0 -475
- package/bundled-test-harness/assets/interact-submode-setup-B0_cHqH-.js +0 -566
- package/bundled-test-harness/assets/invalidate-realm-identifiers-test-9uUD91Pw.js +0 -99
- package/bundled-test-harness/assets/invite-user-to-room-test-CcDA45Ac.js +0 -142
- package/bundled-test-harness/assets/invoke-card-operation-test-DmUtgueM.js +0 -333
- package/bundled-test-harness/assets/isolated-render-test-B2eXNHu6.js +0 -51
- package/bundled-test-harness/assets/job-scoped-doc-cache-test-DF9D7cOc.js +0 -181
- package/bundled-test-harness/assets/job-scoped-instance-residency-test-CSS8xUU5.js +0 -103
- package/bundled-test-harness/assets/jpg-image-def-test-voECMTht.js +0 -697
- package/bundled-test-harness/assets/json-file-def-test-8Y4KLjUC.js +0 -95
- package/bundled-test-harness/assets/key-notices-badge-test-d1mYqx0e.js +0 -155
- package/bundled-test-harness/assets/key-readiness-test-BtCg7PCk.js +0 -190
- package/bundled-test-harness/assets/linksto-broken-link-placeholder-test-CyCMbJnN.js +0 -398
- package/bundled-test-harness/assets/linksto-error-sentinel-test-BDW572-v.js +0 -238
- package/bundled-test-harness/assets/linksto-many-broken-link-placeholder-test-B4wM97hD.js +0 -354
- package/bundled-test-harness/assets/linksto-many-per-slot-access-test-BhJmtJ0_.js +0 -303
- package/bundled-test-harness/assets/linksto-sentinel-reload-test-BpBQ5V_i.js +0 -197
- package/bundled-test-harness/assets/linksto-sentinel-roundtrip-test-pkBBl4e9.js +0 -260
- package/bundled-test-harness/assets/linksto-singular-js-access-contract-test-Bb6wjUdD.js +0 -196
- package/bundled-test-harness/assets/lint-and-fix-test-CcMLn-co.js +0 -51
- package/bundled-test-harness/assets/live-test-AyBnq7BX.js +0 -2
- package/bundled-test-harness/assets/live-test-CgnAcIDw.js +0 -100
- package/bundled-test-harness/assets/load-default-skills-test-BIOwtx0Y.js +0 -74
- package/bundled-test-harness/assets/loader-parallel-prefetch-test-D5_oRSER.js +0 -257
- package/bundled-test-harness/assets/loader-test-DSc_jR1c.js +0 -482
- package/bundled-test-harness/assets/loading-test-8pldx7S-.js +0 -63
- package/bundled-test-harness/assets/m4a-audio-def-test-BDI5apzM.js +0 -190
- package/bundled-test-harness/assets/main-5kHyCkdm.js +0 -5
- package/bundled-test-harness/assets/markdown-embed-chooser-modal-test-Wud0s7WZ.js +0 -470
- package/bundled-test-harness/assets/markdown-embed-chooser-test-DVzzS-0C.js +0 -334
- package/bundled-test-harness/assets/markdown-embed-preview-pane-test-B5W_iqsi.js +0 -447
- package/bundled-test-harness/assets/markdown-embed-preview-test-CZF_s0fB.js +0 -368
- package/bundled-test-harness/assets/markdown-fallback-test-fT6BS4W7.js +0 -316
- package/bundled-test-harness/assets/markdown-file-def-test-B1aTzazR.js +0 -380
- package/bundled-test-harness/assets/markdown-helpers-test-gNKZf7Mw.js +0 -188
- package/bundled-test-harness/assets/markdown-highlighting-test-Du5_CQmD.js +0 -244
- package/bundled-test-harness/assets/markdown-preview-h-_aJhRc.js +0 -72
- package/bundled-test-harness/assets/markdown-preview-test-DJvoVsXw.js +0 -238
- package/bundled-test-harness/assets/markdown-skill-frontmatter-test-VwJi3Paj.js +0 -146
- package/bundled-test-harness/assets/markdown-skill-search-test-ysCdf0xM.js +0 -80
- package/bundled-test-harness/assets/matrix-service-account-switch-sessions-test-K2JuMy36.js +0 -63
- package/bundled-test-harness/assets/matrix-service-boot-assembly-test-CkdL_-os.js +0 -300
- package/bundled-test-harness/assets/matrix-service-personal-realm-test-Dy1DultK.js +0 -125
- package/bundled-test-harness/assets/matrix-service-realm-servers-test-DHDDKuEg.js +0 -55
- package/bundled-test-harness/assets/matrix-service-realms-list-updated-test-DcTbZpMl.js +0 -132
- package/bundled-test-harness/assets/matrix-service-relogin-test-D3NQktoa.js +0 -59
- package/bundled-test-harness/assets/matrix-service-sliding-sync-test-6CAflWOA.js +0 -35
- package/bundled-test-harness/assets/menu-kUSaJIPq.js +0 -3562
- package/bundled-test-harness/assets/message-service-subscription-test-DaQdgDWi.js +0 -110
- package/bundled-test-harness/assets/message-service-test-BsGEgM_m.js +0 -144
- package/bundled-test-harness/assets/message-tool-test-BB_4kw1V.js +0 -33
- package/bundled-test-harness/assets/midi-audio-def-test-BbbkFjqf.js +0 -182
- package/bundled-test-harness/assets/migrate-skill-test-X9xImDuq.js +0 -161
- package/bundled-test-harness/assets/mini-AwF31elJ.js +0 -1404
- package/bundled-test-harness/assets/mini-card-chooser-test-BZtrEiWu.js +0 -272
- package/bundled-test-harness/assets/mini-file-chooser-test-MIHW3kCI.js +0 -201
- package/bundled-test-harness/assets/mock-matrix-Dd8k0DNa.js +0 -15107
- package/bundled-test-harness/assets/mock-matrix-DhPN_34j.js +0 -2
- package/bundled-test-harness/assets/modal-LTh3_oHK.js +0 -322
- package/bundled-test-harness/assets/model-cost-tier-test-h1IkU9mp.js +0 -174
- package/bundled-test-harness/assets/model-file-extract-test-ntSo0wZF.js +0 -206
- package/bundled-test-harness/assets/module-transpile-cache-test-CDeRaaeP.js +0 -67
- package/bundled-test-harness/assets/monaco-test-C0Fa744D.js +0 -100
- package/bundled-test-harness/assets/mp3-audio-def-test-B4j4qR9H.js +0 -133
- package/bundled-test-harness/assets/multiple-stacks-test-BhA25ywL.js +0 -208
- package/bundled-test-harness/assets/nested-query-field-render-test-S9Y8YNKB.js +0 -249
- package/bundled-test-harness/assets/no-stacks-test-B7VciWyg.js +0 -48
- package/bundled-test-harness/assets/number-field-test-CS74lDPN.js +0 -184
- package/bundled-test-harness/assets/office-file-def-test-2cKc1pmd.js +0 -263
- package/bundled-test-harness/assets/office-metadata-extractor-test-DC8Fo-OW.js +0 -218
- package/bundled-test-harness/assets/office-poster-capture-test-Ba0_5UrT.js +0 -203
- package/bundled-test-harness/assets/ogg-audio-def-test-CIPQ1d4w.js +0 -196
- package/bundled-test-harness/assets/open-create-listing-modal-test-bmQkY5Zl.js +0 -131
- package/bundled-test-harness/assets/open-image-in-new-tab-test-DBD7_vMH.js +0 -52
- package/bundled-test-harness/assets/open-secure-window-test-BgeuYAqz.js +0 -253
- package/bundled-test-harness/assets/open-workspace-test-DRHGljV0.js +0 -46
- package/bundled-test-harness/assets/operation-lowering-test-CH1c0pSH.js +0 -2957
- package/bundled-test-harness/assets/operations-invocation-test-B1YkCLrv.js +0 -523
- package/bundled-test-harness/assets/operations-optimistic-test-DAbtOwsC.js +0 -203
- package/bundled-test-harness/assets/operations-query-test-9p1ZIDe-.js +0 -459
- package/bundled-test-harness/assets/operations-store-reconciliation-test-D0EQh3w2.js +0 -406
- package/bundled-test-harness/assets/operations-test-BQhlrfe3.js +0 -2518
- package/bundled-test-harness/assets/operator-mode-acceptance-test-DtHnonEb.js +0 -1195
- package/bundled-test-harness/assets/operator-mode-card-chooser-test-DQUxZxaq.js +0 -1036
- package/bundled-test-harness/assets/operator-mode-links-test-BJ26HllS.js +0 -797
- package/bundled-test-harness/assets/operator-mode-test-DIPDI0qt.js +0 -696
- package/bundled-test-harness/assets/operator-mode-ui-test-CfA-fAh4.js +0 -1045
- package/bundled-test-harness/assets/overlay-DecPh3nt.js +0 -123
- package/bundled-test-harness/assets/overlay-menu-items-test-C6XqjLtu.js +0 -331
- package/bundled-test-harness/assets/overlays-Ctp8ePzZ.js +0 -75
- package/bundled-test-harness/assets/overlays-CzWpSg5T.js +0 -2
- package/bundled-test-harness/assets/overlays-detached-element-test-DvL_8Bb5.js +0 -56
- package/bundled-test-harness/assets/panel-CImumikB.js +0 -15124
- package/bundled-test-harness/assets/past-sessions-test-N6riGN_I.js +0 -321
- package/bundled-test-harness/assets/patch-fields-test-D30_-KwQ.js +0 -1014
- package/bundled-test-harness/assets/patch-instance-test-C5rGscZq.js +0 -348
- package/bundled-test-harness/assets/pdf-file-def-test-DtiqGRvZ.js +0 -111
- package/bundled-test-harness/assets/pdf-metadata-extractor-test-FU02KmdV.js +0 -130
- package/bundled-test-harness/assets/permission-checking-realm-test-DqdNJDwU.js +0 -306
- package/bundled-test-harness/assets/persist-module-inspector-view-test-BHOAgPVy.js +0 -60
- package/bundled-test-harness/assets/persist-scroll-position-test-qtmS518r.js +0 -254
- package/bundled-test-harness/assets/phone-number-field-test-DhdaM7uL.js +0 -73
- package/bundled-test-harness/assets/pill-menu-test-C9Mrrepl.js +0 -60
- package/bundled-test-harness/assets/plate-9n-sXyCw.js +0 -41
- package/bundled-test-harness/assets/plate-BnZcAk-_.js +0 -2
- package/bundled-test-harness/assets/player-Cu5b4LEJ.js +0 -82
- package/bundled-test-harness/assets/player-unk2mkxV.js +0 -2
- package/bundled-test-harness/assets/playground-BwA8wFGK.js +0 -58
- package/bundled-test-harness/assets/plural-field-components-test-CFNQKETg.js +0 -198
- package/bundled-test-harness/assets/png-image-def-test-DG5Vhlqb.js +0 -266
- package/bundled-test-harness/assets/policy-audit-confirmation-test-yfKU47LR.js +0 -155
- package/bundled-test-harness/assets/policy-scoped-search-test-BjQRDYqR.js +0 -339
- package/bundled-test-harness/assets/prerender-file-extract-test-CEU4SaAZ.js +0 -346
- package/bundled-test-harness/assets/prerender-html-test-CGB3ClCS.js +0 -670
- package/bundled-test-harness/assets/prerender-meta-test-xqc4fW_0.js +0 -614
- package/bundled-test-harness/assets/prerender-module-test-CI1TmZw-.js +0 -409
- package/bundled-test-harness/assets/prerender-persistence-block-test-Da0dJO_N.js +0 -124
- package/bundled-test-harness/assets/prerender-pre-model-error-test-BVLyhk8R.js +0 -61
- package/bundled-test-harness/assets/prerender-serialize-cycle-test-glJFfxHU.js +0 -134
- package/bundled-test-harness/assets/prerendered-html-read-test-Mp4L0VHQ.js +0 -191
- package/bundled-test-harness/assets/pretui-components-test-BBpA9UnA.js +0 -991
- package/bundled-test-harness/assets/pretui-components-test-BqFq7rw_.css +0 -730
- package/bundled-test-harness/assets/preview-format-test-C55Bwcur.js +0 -103
- package/bundled-test-harness/assets/preview-test-CTAhRGU8.js +0 -474
- package/bundled-test-harness/assets/process-card-test-UjqpuxB7.js +0 -94
- package/bundled-test-harness/assets/profile-settings-modal-C8bCgTMK.js +0 -989
- package/bundled-test-harness/assets/publish-realm-ixUB4FPK.js +0 -82
- package/bundled-test-harness/assets/publish-realm-test-CrrsdL4W.js +0 -210
- package/bundled-test-harness/assets/query-field-barrier-test-DjivFE93.js +0 -113
- package/bundled-test-harness/assets/query-field-error-sentinel-test-0HwnV4Mw.js +0 -201
- package/bundled-test-harness/assets/query-field-membership-status-test-C8yTTBkc.js +0 -323
- package/bundled-test-harness/assets/query-field-page-optin-test-D4l_GcII.js +0 -126
- package/bundled-test-harness/assets/query-field-schema-test-DDbcNNm5.js +0 -231
- package/bundled-test-harness/assets/query-field-search-throttle-test-CXp50Ax0.js +0 -154
- package/bundled-test-harness/assets/query-field-stale-prerender-test-DErzt-Cv.js +0 -152
- package/bundled-test-harness/assets/query-fields-test-Dz67fdSl.js +0 -535
- package/bundled-test-harness/assets/quick-look-test-B1ijDsh_.js +0 -139
- package/bundled-test-harness/assets/read-card-for-ai-assistant-test-DJxZ16H_.js +0 -91
- package/bundled-test-harness/assets/read-file-for-ai-assistant-test-BoRQkZ8c.js +0 -45
- package/bundled-test-harness/assets/read-source-test-Bl-NjchO.js +0 -67
- package/bundled-test-harness/assets/read-text-file-test-CP37CZoo.js +0 -124
- package/bundled-test-harness/assets/realm-CaK5mkT-.js +0 -2852
- package/bundled-test-harness/assets/realm-api-keys-BNUFWbGR.js +0 -579
- package/bundled-test-harness/assets/realm-api-keys-CkshxhXC.js +0 -2
- package/bundled-test-harness/assets/realm-api-keys-test-BP8xifjn.js +0 -109
- package/bundled-test-harness/assets/realm-api-keys-test-CwdK9YXp.js +0 -588
- package/bundled-test-harness/assets/realm-config-iKwE3Htp.js +0 -833
- package/bundled-test-harness/assets/realm-config-policy-standing-test-BgVEIDnB.js +0 -290
- package/bundled-test-harness/assets/realm-config-routing-rule-edit-test-BoJoKzmX.js +0 -274
- package/bundled-test-harness/assets/realm-config-settings-test-Kxw-GHye.js +0 -187
- package/bundled-test-harness/assets/realm-field-test-CdGOxrFb.js +0 -100
- package/bundled-test-harness/assets/realm-indexing-test-CHtsBV2b.js +0 -4380
- package/bundled-test-harness/assets/realm-policy-fitted-test--DhNZSdC.js +0 -206
- package/bundled-test-harness/assets/realm-policy-test-D7714iVa.js +0 -1141
- package/bundled-test-harness/assets/realm-querying-test-Cj1ekZ0H.js +0 -1067
- package/bundled-test-harness/assets/realm-server-form-agnostic-test-CZFPNJfD.js +0 -96
- package/bundled-test-harness/assets/realm-server-subscriber-test-C86WmBp0.js +0 -46
- package/bundled-test-harness/assets/realm-service-info-test-CdgcwKDR.js +0 -67
- package/bundled-test-harness/assets/realm-test-DPoLsvKz.js +0 -2364
- package/bundled-test-harness/assets/realm-token-refresh-test-Ch35Siwi.js +0 -153
- package/bundled-test-harness/assets/realm-url-tooltip-test-x8xWOENK.js +0 -78
- package/bundled-test-harness/assets/reasoning-test-BxpE8Jvf.js +0 -221
- package/bundled-test-harness/assets/recent-files-test-DTmEzPLq.js +0 -450
- package/bundled-test-harness/assets/reindex-realm-test-BQ8KULn4.js +0 -117
- package/bundled-test-harness/assets/relationship-loading-state-test-BJoArPWf.js +0 -290
- package/bundled-test-harness/assets/remix-card-test-DsTA1KoG.js +0 -58
- package/bundled-test-harness/assets/rendered-markdown-DvukulDO.js +0 -292
- package/bundled-test-harness/assets/rendered-markdown-test-DxGptXSV.js +0 -587
- package/bundled-test-harness/assets/resident-instance-reuse-test-ZWnVu8uj.js +0 -82
- package/bundled-test-harness/assets/result-tile-CPyI6Vmv.js +0 -144
- package/bundled-test-harness/assets/rich-markdown-field-test-CdygoXIO.js +0 -1647
- package/bundled-test-harness/assets/room-message-test-D3NfMqH0.js +0 -484
- package/bundled-test-harness/assets/run-D_Px28eF.js +0 -3956
- package/bundled-test-harness/assets/run-realm-code-qWCZxmJ7.js +0 -2964
- package/bundled-test-harness/assets/run-realm-code-test-UzyeEJq6.js +0 -3844
- package/bundled-test-harness/assets/sanitize-module-list-test-Babq44bP.js +0 -85
- package/bundled-test-harness/assets/save-card-skip-index-wait-test-BcELXlQ_.js +0 -89
- package/bundled-test-harness/assets/schema-editor-test-CEvruZbt.js +0 -785
- package/bundled-test-harness/assets/schema-generation-test-hYAMdCrn.js +0 -28
- package/bundled-test-harness/assets/scrolling-test-DVIsh-_1.js +0 -412
- package/bundled-test-harness/assets/search-adorn-test-CkVhqFd0.js +0 -136
- package/bundled-test-harness/assets/search-and-choose-test-DUhOB3FV.js +0 -154
- package/bundled-test-harness/assets/search-correlation-id-test-Drn4r26N.js +0 -139
- package/bundled-test-harness/assets/search-entries-result-test-DTCRJ_wc.js +0 -234
- package/bundled-test-harness/assets/search-entries-test-CE0B47pw.js +0 -1486
- package/bundled-test-harness/assets/search-entries-tool-test-C4aG0ckM.js +0 -504
- package/bundled-test-harness/assets/search-google-images-test-LyhcB2f3.js +0 -166
- package/bundled-test-harness/assets/search-results-D4pSne0x.js +0 -266
- package/bundled-test-harness/assets/search-results-test-CRZHhqhn.js +0 -578
- package/bundled-test-harness/assets/search-selection-menu-test-B7Y3E_nj.js +0 -108
- package/bundled-test-harness/assets/search-sheet-files-test-C2y534g8.js +0 -126
- package/bundled-test-harness/assets/search-sheet-persistence-test-DePC59Bk.js +0 -131
- package/bundled-test-harness/assets/search-test-Dy8NxFkU.js +0 -2249
- package/bundled-test-harness/assets/search-tool-test-lctDaMH3.js +0 -156
- package/bundled-test-harness/assets/searchable-option-test-CE64M8oM.js +0 -322
- package/bundled-test-harness/assets/searchable-search-doc-test-C6u3mVvT.js +0 -1271
- package/bundled-test-harness/assets/section-rail-B_UQX00B.js +0 -113
- package/bundled-test-harness/assets/section-rail-test-DIda7MIw.js +0 -256
- package/bundled-test-harness/assets/secure-sign-in-CqqqfQG8.js +0 -174
- package/bundled-test-harness/assets/secure-sign-in-test-DimbVr_W.js +0 -373
- package/bundled-test-harness/assets/segmented-control-iePxSdTS.js +0 -173
- package/bundled-test-harness/assets/select-tNs6_xwW.js +0 -175
- package/bundled-test-harness/assets/send-ai-assistant-message-test-2GVrMF9Z.js +0 -52
- package/bundled-test-harness/assets/send-bot-trigger-event-test-B_3dKfGN.js +0 -56
- package/bundled-test-harness/assets/send-request-via-proxy-test-_clNWyYc.js +0 -380
- package/bundled-test-harness/assets/sending-test-DCPFXUVg.js +0 -659
- package/bundled-test-harness/assets/serialization-rri-form-audit-test-BI0zCs8Y.js +0 -136
- package/bundled-test-harness/assets/serialization-test-bjdtVlZL.js +0 -8758
- package/bundled-test-harness/assets/set-user-system-card-test-BUv1vL08.js +0 -59
- package/bundled-test-harness/assets/setup-BW1mmC7C.js +0 -772
- package/bundled-test-harness/assets/setup-DsIcFT-T.js +0 -2
- package/bundled-test-harness/assets/shared-link-target-reuse-test-9NeJEjkb.js +0 -207
- package/bundled-test-harness/assets/show-card-test-mfyLwusD.js +0 -365
- package/bundled-test-harness/assets/signed-capture-link-test-BOtKNCAM.js +0 -132
- package/bundled-test-harness/assets/single-stack-test-B4MGjaLk.js +0 -652
- package/bundled-test-harness/assets/skills-test-BuP-Yzk1.js +0 -648
- package/bundled-test-harness/assets/skip-boot-index-guard-test-Cmrx2-K7.js +0 -46
- package/bundled-test-harness/assets/spec-test-BhZDdhVQ.js +0 -1077
- package/bundled-test-harness/assets/spinner-CpIBUG9m.js +0 -49
- package/bundled-test-harness/assets/src-DGHttmW-.js +0 -216
- package/bundled-test-harness/assets/src-DaNDSbp7.js +0 -5
- package/bundled-test-harness/assets/stick-to-bottom-resize-test-Dpy3OVum.js +0 -56
- package/bundled-test-harness/assets/store-add-test-_IYS8o74.js +0 -50
- package/bundled-test-harness/assets/store-module-rebuild-test-B5VMaICy.js +0 -454
- package/bundled-test-harness/assets/store-search-test-C2VZabrH.js +0 -175
- package/bundled-test-harness/assets/store-test-D6PObxoD.js +0 -3672
- package/bundled-test-harness/assets/structured-theme-test-BHjVeMf-.js +0 -377
- package/bundled-test-harness/assets/summarize-session-test-BFtTuhe0.js +0 -172
- package/bundled-test-harness/assets/svg-image-def-test-BL6lkWUX.js +0 -167
- package/bundled-test-harness/assets/switch-submode-test-6Uv3bZMl.js +0 -168
- package/bundled-test-harness/assets/sync-openrouter-models-test-Dp9E05tL.js +0 -97
- package/bundled-test-harness/assets/test-support-DYm8XZ0E.js +0 -3
- package/bundled-test-harness/assets/test-support-DfnhiIMV.js +0 -99
- package/bundled-test-harness/assets/tests-CZk0Iag2.js +0 -3596
- package/bundled-test-harness/assets/text-file-def-test-CHdC0yIU.js +0 -94
- package/bundled-test-harness/assets/text-input-validator-test-B9ZR8XPU.js +0 -156
- package/bundled-test-harness/assets/text-suggestion-test-CGLspKFQ.js +0 -340
- package/bundled-test-harness/assets/theme-card-test-CXZvSEvG.js +0 -621
- package/bundled-test-harness/assets/theme-dashboard-nav-test-CkEE0ILk.js +0 -196
- package/bundled-test-harness/assets/theme-scheme-island-test-URXTjipF.js +0 -264
- package/bundled-test-harness/assets/titles-C6enAdIv.js +0 -2
- package/bundled-test-harness/assets/titles-Dft1HoUT.js +0 -52
- package/bundled-test-harness/assets/to-device-streaming-test-D33ZOc9o.js +0 -163
- package/bundled-test-harness/assets/token-usage-test-BHQlU4J4.js +0 -160
- package/bundled-test-harness/assets/tools-CrudqfS3.js +0 -774
- package/bundled-test-harness/assets/tools-calling-test-jo7IREau.js +0 -200
- package/bundled-test-harness/assets/tools-test-D1wMfUa0.js +0 -1624
- package/bundled-test-harness/assets/tools-test-Dn1LYsXp.js +0 -3204
- package/bundled-test-harness/assets/tooltip-8Wyz4IIn.css +0 -68
- package/bundled-test-harness/assets/tooltip-CqwLzRz5.js +0 -134
- package/bundled-test-harness/assets/transform-cards-test-BPhwPFtp.js +0 -341
- package/bundled-test-harness/assets/ts-file-def-preview-test-Bq3zTgw8.js +0 -95
- package/bundled-test-harness/assets/ts-file-def-test-GLswMl7O.js +0 -92
- package/bundled-test-harness/assets/ttf-font-def-test-DQulvUWs.js +0 -206
- package/bundled-test-harness/assets/turn-settling-test-BspmOUQP.js +0 -160
- package/bundled-test-harness/assets/turn-summary-9A8nvC0-.js +0 -1039
- package/bundled-test-harness/assets/unpublish-realm-test-SkYPEhDz.js +0 -102
- package/bundled-test-harness/assets/update-room-skills-test-cTxb-WU6.js +0 -240
- package/bundled-test-harness/assets/use-ai-assistant-test-uaqW1T_A.js +0 -384
- package/bundled-test-harness/assets/user-message-BudkIP-3.js +0 -262
- package/bundled-test-harness/assets/validate-realm-test-DxrGgH9n.js +0 -67
- package/bundled-test-harness/assets/video-metadata-extractor-test-B2pe-Iqa.js +0 -520
- package/bundled-test-harness/assets/view-visually-test-PNon6fUo.js +0 -335
- package/bundled-test-harness/assets/virtual-network-reset-test-uYJLaQHf.js +0 -96
- package/bundled-test-harness/assets/wav-audio-def-test-F4OrFFR4.js +0 -160
- package/bundled-test-harness/assets/webp-image-def-test-B0a_-Vya.js +0 -226
- package/bundled-test-harness/assets/workspace-Cyftysy9.js +0 -440
- package/bundled-test-harness/assets/workspace-a11y-test-sKiPDcbl.js +0 -197
- package/bundled-test-harness/assets/workspace-actions-BuawjFmZ.js +0 -561
- package/bundled-test-harness/assets/workspace-behavior-test-CKa-pb3T.js +0 -338
- package/bundled-test-harness/assets/workspace-delete-multiple-test-Dt2weG5R.js +0 -212
- package/bundled-test-harness/assets/workspace-delete-summary-test-CkqgFqZ8.js +0 -63
- package/bundled-test-harness/assets/workspace-hosting-test-Ci7EEtHP.js +0 -138
- package/bundled-test-harness/assets/workspace-indexing-test-BPVxxY6W.js +0 -71
- package/bundled-test-harness/assets/workspace-test-CWr7vFbg.js +0 -385
- package/bundled-test-harness/assets/workspace-test-INNpQovc.js +0 -51
- package/bundled-test-harness/assets/workspace-timestamp-labels-test-CigQb5wr.js +0 -68
- package/bundled-test-harness/assets/workspace-unit-test-BwVKpuXT.js +0 -122
- package/bundled-test-harness/assets/write-binary-file-test-BKP3gv1k.js +0 -124
- package/bundled-test-harness/assets/write-text-file-test-B6ijTKTa.js +0 -191
- package/bundled-test-harness/assets/zip-archive-test-C-PBzkTn.js +0 -285
- package/bundled-test-harness/assets/zip-file-def-test-FyCzJT-9.js +0 -164
|
@@ -1,1141 +0,0 @@
|
|
|
1
|
-
import { s as __toESM } from "./chunk-Rp0pCe6z.js";
|
|
2
|
-
import { Br as testRealmURL, Ca as IndexWriter, xi as DEFAULT_ANONYMOUS_RATE_LIMIT } from "./runtime-common-BTaLJEw-.js";
|
|
3
|
-
import { T as rri } from "./paths-C9-NYXnM.js";
|
|
4
|
-
import { x as PermissionsContextName } from "./constants-Icc0nFW-.js";
|
|
5
|
-
import { M as waitUntil, T as settled, d as click, o as waitFor, s as fillIn } from "./dist-BOAdzfkP.js";
|
|
6
|
-
import { t as require_qunit } from "./qunit-C-Foo4Nd.js";
|
|
7
|
-
import { D as realmConfigCardJSON, F as setupLocalIndexing, M as setupCardLogs, P as setupIntegrationTestRealm, b as getDbAdapter, lt as setupRenderingTest, nt as provide, t as setupMockMatrix } from "./mock-matrix-Dd8k0DNa.js";
|
|
8
|
-
import { r as getService } from "./dist-CPfIHBla.js";
|
|
9
|
-
import { Y as serializeCard } from "./field-support-DClsIsjq.js";
|
|
10
|
-
import "./card-api-Cc8uZunB.js";
|
|
11
|
-
import { t as renderCard } from "./render-component-B15Z0e2v.js";
|
|
12
|
-
import { t as setupCatalogTestSubset } from "./catalog-test-subset-DwqjYkNV.js";
|
|
13
|
-
//#region tests/integration/realm-policy-test.gts
|
|
14
|
-
var import_qunit = /* @__PURE__ */ __toESM(require_qunit());
|
|
15
|
-
var policyRef = {
|
|
16
|
-
module: rri("@cardstack/catalog/realm-policy/realm-policy"),
|
|
17
|
-
name: "RealmPolicy"
|
|
18
|
-
};
|
|
19
|
-
var teacherPredicate = " actor() in .teacherIds ";
|
|
20
|
-
var rosterPredicate = ".roster.providerIds contains actor()";
|
|
21
|
-
var providerPredicate = ".providerId == actor()";
|
|
22
|
-
function policyDocument(rules) {
|
|
23
|
-
return { data: {
|
|
24
|
-
type: "card",
|
|
25
|
-
attributes: {
|
|
26
|
-
cardInfo: { name: "Education" },
|
|
27
|
-
rules
|
|
28
|
-
},
|
|
29
|
-
meta: { adoptsFrom: policyRef }
|
|
30
|
-
} };
|
|
31
|
-
}
|
|
32
|
-
var educationPolicy = policyDocument([{
|
|
33
|
-
targetType: {
|
|
34
|
-
module: "../classroom",
|
|
35
|
-
name: "Classroom"
|
|
36
|
-
},
|
|
37
|
-
grants: [{ operation: "read" }, {
|
|
38
|
-
operation: "appendActivity",
|
|
39
|
-
where: teacherPredicate
|
|
40
|
-
}]
|
|
41
|
-
}, {
|
|
42
|
-
targetType: {
|
|
43
|
-
module: "../schedule",
|
|
44
|
-
name: "Schedule"
|
|
45
|
-
},
|
|
46
|
-
grants: [{
|
|
47
|
-
operation: "read",
|
|
48
|
-
where: {
|
|
49
|
-
bxl: rosterPredicate,
|
|
50
|
-
snapshot: true
|
|
51
|
-
}
|
|
52
|
-
}, {
|
|
53
|
-
operation: "listMySchedules",
|
|
54
|
-
where: providerPredicate
|
|
55
|
-
}]
|
|
56
|
-
}]);
|
|
57
|
-
var BACKTICK = "`";
|
|
58
|
-
var ANONYMOUS = "actor() == \"anonymous\"";
|
|
59
|
-
var PLATFORM_LIMIT = {
|
|
60
|
-
requests: 17,
|
|
61
|
-
windowSeconds: 45
|
|
62
|
-
};
|
|
63
|
-
var PLATFORM_LIMIT_LINE = `${PLATFORM_LIMIT.requests}/${PLATFORM_LIMIT.windowSeconds} (platform default where unset)`;
|
|
64
|
-
var TEACHER = "@teacher:localhost";
|
|
65
|
-
var COLLEAGUE = "@colleague:localhost";
|
|
66
|
-
var leadsPredicate = ".leadTeacherIds | any(. == actor())";
|
|
67
|
-
var teachesPredicate = ".teacherIds | any(. == actor())";
|
|
68
|
-
var classroomModule = `
|
|
69
|
-
import { contains, containsMany, field, CardDef } from "@cardstack/base/card-api";
|
|
70
|
-
import StringField from "@cardstack/base/string";
|
|
71
|
-
|
|
72
|
-
export class Classroom extends CardDef {
|
|
73
|
-
@field title = contains(StringField);
|
|
74
|
-
@field teacherIds = containsMany(StringField);
|
|
75
|
-
@field leadTeacherIds = containsMany(StringField);
|
|
76
|
-
}
|
|
77
|
-
`;
|
|
78
|
-
var rosterModule = `
|
|
79
|
-
import { contains, containsMany, field, linksToMany, CardDef } from "@cardstack/base/card-api";
|
|
80
|
-
import StringField from "@cardstack/base/string";
|
|
81
|
-
|
|
82
|
-
export class Student extends CardDef {
|
|
83
|
-
@field name = contains(StringField);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export class Roster extends CardDef {
|
|
87
|
-
@field teacherIds = containsMany(StringField);
|
|
88
|
-
@field students = linksToMany(() => Student);
|
|
89
|
-
}
|
|
90
|
-
`;
|
|
91
|
-
function classroom(teacherIds) {
|
|
92
|
-
return { data: {
|
|
93
|
-
type: "card",
|
|
94
|
-
attributes: {
|
|
95
|
-
teacherIds,
|
|
96
|
-
leadTeacherIds: []
|
|
97
|
-
},
|
|
98
|
-
meta: { adoptsFrom: {
|
|
99
|
-
module: "../classroom",
|
|
100
|
-
name: "Classroom"
|
|
101
|
-
} }
|
|
102
|
-
} };
|
|
103
|
-
}
|
|
104
|
-
var classroomPolicy = policyDocument([{
|
|
105
|
-
targetType: {
|
|
106
|
-
module: "../classroom",
|
|
107
|
-
name: "Classroom"
|
|
108
|
-
},
|
|
109
|
-
grants: [
|
|
110
|
-
{
|
|
111
|
-
operation: "delete",
|
|
112
|
-
where: leadsPredicate
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
operation: "delete",
|
|
116
|
-
where: teachesPredicate
|
|
117
|
-
},
|
|
118
|
-
{ operation: "update" }
|
|
119
|
-
]
|
|
120
|
-
}]);
|
|
121
|
-
(0, import_qunit.module)("Integration | realm policy", function(hooks) {
|
|
122
|
-
setupRenderingTest(hooks);
|
|
123
|
-
setupCatalogTestSubset(hooks);
|
|
124
|
-
setupLocalIndexing(hooks);
|
|
125
|
-
let loader;
|
|
126
|
-
let mockMatrixUtils = setupMockMatrix(hooks, {
|
|
127
|
-
loggedInAs: "@testuser:localhost",
|
|
128
|
-
activeRealms: [testRealmURL],
|
|
129
|
-
autostart: true
|
|
130
|
-
});
|
|
131
|
-
hooks.beforeEach(function() {
|
|
132
|
-
loader = getService("loader-service").loader;
|
|
133
|
-
});
|
|
134
|
-
setupCardLogs(hooks, async () => await loader.import("@cardstack/base/card-api"));
|
|
135
|
-
async function setupPolicyRealm(contents) {
|
|
136
|
-
let { realm } = await setupIntegrationTestRealm({
|
|
137
|
-
mockMatrixUtils,
|
|
138
|
-
contents,
|
|
139
|
-
anonymousRateLimit: PLATFORM_LIMIT
|
|
140
|
-
});
|
|
141
|
-
return realm;
|
|
142
|
-
}
|
|
143
|
-
async function loadPolicy(path) {
|
|
144
|
-
return await getService("store").get(`${testRealmURL}${path}`);
|
|
145
|
-
}
|
|
146
|
-
(0, import_qunit.test)("an authored policy indexes and reads back with its predicates as written", async function(assert) {
|
|
147
|
-
let doc = await (await setupPolicyRealm({ "policies/education.json": educationPolicy })).realmIndexQueryEngine.cardDocument(new URL(`${testRealmURL}policies/education`));
|
|
148
|
-
assert.strictEqual(doc?.type, "doc", `the policy indexes cleanly: ${JSON.stringify(doc?.type === "error" ? doc.error : void 0)}`);
|
|
149
|
-
let rules = doc?.type === "doc" ? doc.doc.data.attributes?.rules : [];
|
|
150
|
-
assert.deepEqual(rules.map((rule) => rule.grants.map((grant) => grant.operation)), [["read", "appendActivity"], ["read", "listMySchedules"]], "both rules and all four grants survive indexing, in order");
|
|
151
|
-
assert.strictEqual(rules[0].grants[1].where, teacherPredicate, "a bare-string predicate reads back as the same bare string");
|
|
152
|
-
assert.deepEqual(rules[1].grants[0].where, {
|
|
153
|
-
bxl: rosterPredicate,
|
|
154
|
-
snapshot: true
|
|
155
|
-
}, "the annotated snapshot form reads back as the annotated form");
|
|
156
|
-
assert.strictEqual(rules[1].grants[1].where, providerPredicate, "a second bare-string predicate is unaffected by its annotated sibling");
|
|
157
|
-
assert.strictEqual(rules[0].grants[0].where, null, "a grant authored with no predicate reads back with none, not an empty string");
|
|
158
|
-
});
|
|
159
|
-
(0, import_qunit.test)("a loaded policy resolves each target type relative to the policy card", async function(assert) {
|
|
160
|
-
await setupPolicyRealm({ "policies/education.json": educationPolicy });
|
|
161
|
-
let policy = await loadPolicy("policies/education");
|
|
162
|
-
assert.deepEqual(policy.rules.map((rule) => rule.targetType), [{
|
|
163
|
-
module: `${testRealmURL}classroom`,
|
|
164
|
-
name: "Classroom"
|
|
165
|
-
}, {
|
|
166
|
-
module: `${testRealmURL}schedule`,
|
|
167
|
-
name: "Schedule"
|
|
168
|
-
}], "targetType is a code ref resolved against the policy card");
|
|
169
|
-
assert.deepEqual(policy.rules.flatMap((rule) => rule.grants.map((grant) => grant.where)), [
|
|
170
|
-
null,
|
|
171
|
-
{
|
|
172
|
-
source: teacherPredicate,
|
|
173
|
-
snapshot: false
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
source: rosterPredicate,
|
|
177
|
-
snapshot: true
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
source: providerPredicate,
|
|
181
|
-
snapshot: false
|
|
182
|
-
}
|
|
183
|
-
], "both stored shapes read as one representation, told apart only by snapshot");
|
|
184
|
-
});
|
|
185
|
-
(0, import_qunit.test)("a predicate that is present but malformed fails the policy instead of reading as unconditional", async function(assert) {
|
|
186
|
-
let realm = await setupPolicyRealm({
|
|
187
|
-
"policies/typo.json": policyDocument([{
|
|
188
|
-
targetType: {
|
|
189
|
-
module: "../classroom",
|
|
190
|
-
name: "Classroom"
|
|
191
|
-
},
|
|
192
|
-
grants: [{
|
|
193
|
-
operation: "update",
|
|
194
|
-
where: {
|
|
195
|
-
bxl: rosterPredicate,
|
|
196
|
-
snapshop: true
|
|
197
|
-
}
|
|
198
|
-
}]
|
|
199
|
-
}]),
|
|
200
|
-
"policies/number.json": policyDocument([{
|
|
201
|
-
targetType: {
|
|
202
|
-
module: "../classroom",
|
|
203
|
-
name: "Classroom"
|
|
204
|
-
},
|
|
205
|
-
grants: [{
|
|
206
|
-
operation: "update",
|
|
207
|
-
where: 42
|
|
208
|
-
}]
|
|
209
|
-
}])
|
|
210
|
-
});
|
|
211
|
-
for (let [path, reason] of [["policies/typo", "accepts only 'bxl' and 'snapshot'"], ["policies/number", "must be a string of BXL source"]]) {
|
|
212
|
-
let entry = await realm.realmIndexQueryEngine.instance(new URL(`${testRealmURL}${path}`));
|
|
213
|
-
assert.strictEqual(entry?.type, "instance-error", `${path} is an index error rather than a policy with an unconditional grant`);
|
|
214
|
-
let error = entry?.type === "instance-error" ? entry.error : void 0;
|
|
215
|
-
assert.true(JSON.stringify(error ?? null).includes(reason), `${path} fails because its predicate is malformed: ${JSON.stringify(error?.message)}`);
|
|
216
|
-
}
|
|
217
|
-
});
|
|
218
|
-
(0, import_qunit.test)("the policy lists its rules and grants in isolated format", async function(assert) {
|
|
219
|
-
await setupPolicyRealm({ "policies/education.json": educationPolicy });
|
|
220
|
-
let policy = await loadPolicy("policies/education");
|
|
221
|
-
await renderCard(loader, policy, "isolated");
|
|
222
|
-
assert.dom("[data-test-realm-policy-isolated]").exists();
|
|
223
|
-
assert.dom("[data-test-policy-rule]").exists({ count: 2 });
|
|
224
|
-
assert.dom("[data-test-policy-rule-type-name]").exists({ count: 2 }).hasText("Classroom", "rules are listed by the type they govern");
|
|
225
|
-
assert.dom("[data-test-operation-grant]").exists({ count: 4 }, "every grant is listed");
|
|
226
|
-
assert.dom("[data-test-policy-rule-type-module]").hasText(`${testRealmURL}classroom`, "with the module that defines it");
|
|
227
|
-
assert.dom("[data-test-operation-grant-unconditional]").exists({ count: 1 }, "the grant with no predicate reads as always");
|
|
228
|
-
assert.dom("[data-test-policy-predicate-source]").exists({ count: 3 }, "each predicate is shown");
|
|
229
|
-
assert.deepEqual([...document.querySelectorAll("[data-test-policy-predicate-source]")].map((el) => el.textContent), [
|
|
230
|
-
teacherPredicate,
|
|
231
|
-
rosterPredicate,
|
|
232
|
-
providerPredicate
|
|
233
|
-
], "each predicate is shown exactly as written, with no added whitespace");
|
|
234
|
-
assert.dom("[data-test-policy-predicate-snapshot]").exists({ count: 1 }, "only the annotated predicate is marked snapshot");
|
|
235
|
-
});
|
|
236
|
-
(0, import_qunit.test)("the policy lists its rules and grants in embedded format", async function(assert) {
|
|
237
|
-
await setupPolicyRealm({ "policies/education.json": educationPolicy });
|
|
238
|
-
let policy = await loadPolicy("policies/education");
|
|
239
|
-
await renderCard(loader, policy, "embedded");
|
|
240
|
-
assert.dom("[data-test-realm-policy-embedded]").exists();
|
|
241
|
-
assert.dom("[data-test-policy-rule]").exists({ count: 2 });
|
|
242
|
-
assert.dom("[data-test-operation-grant]").exists({ count: 4 });
|
|
243
|
-
assert.dom("[data-test-operation-grant-operation]").hasText("read", "grants are listed by operation name");
|
|
244
|
-
assert.dom("[data-test-policy-predicate-snapshot]").exists({ count: 1 });
|
|
245
|
-
});
|
|
246
|
-
(0, import_qunit.test)("a grant opened to callers who are not signed in says so, and a write names the setting it acts as", async function(assert) {
|
|
247
|
-
await setupPolicyRealm({ "policies/public.json": policyDocument([{
|
|
248
|
-
targetType: {
|
|
249
|
-
module: "../classroom",
|
|
250
|
-
name: "Classroom"
|
|
251
|
-
},
|
|
252
|
-
grants: [
|
|
253
|
-
{
|
|
254
|
-
operation: "read",
|
|
255
|
-
where: ANONYMOUS
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
operation: "update",
|
|
259
|
-
where: ANONYMOUS,
|
|
260
|
-
actingUser: "realmConfig(\"feedbackWriter\")"
|
|
261
|
-
},
|
|
262
|
-
{ operation: "delete" }
|
|
263
|
-
]
|
|
264
|
-
}]) });
|
|
265
|
-
let policy = await loadPolicy("policies/public");
|
|
266
|
-
await renderCard(loader, policy, "embedded");
|
|
267
|
-
assert.dom("[data-test-operation-grant]").exists({ count: 3 });
|
|
268
|
-
assert.dom("[data-test-operation-grant-anonymous]").exists({ count: 2 }, "only the grants that opt in are marked").hasText("anyone");
|
|
269
|
-
assert.dom("[data-test-operation-grant-acting-user]").exists({ count: 1 }, "only the write names who it acts as").hasText("realmConfig(\"feedbackWriter\")");
|
|
270
|
-
assert.dom("[data-test-operation-grant-rate-limit]").exists({ count: 2 }, "and each grant opened to them says what it limits them to");
|
|
271
|
-
});
|
|
272
|
-
(0, import_qunit.test)("an anonymous write without an acting user carries a warning", async function(assert) {
|
|
273
|
-
await renderPolicyNamed("policies/public", [{
|
|
274
|
-
targetType: {
|
|
275
|
-
module: "../classroom",
|
|
276
|
-
name: "Classroom"
|
|
277
|
-
},
|
|
278
|
-
grants: [{
|
|
279
|
-
operation: "update",
|
|
280
|
-
where: ANONYMOUS
|
|
281
|
-
}]
|
|
282
|
-
}]);
|
|
283
|
-
assert.dom("[data-test-policy-grant-warning-message=\"anonymous-write-without-acting-user\"]").exists().includesText("needs an");
|
|
284
|
-
});
|
|
285
|
-
(0, import_qunit.test)("an anonymous write editor shows Realm Config-backed rate limits", async function(assert) {
|
|
286
|
-
await setupPolicyRealm({ "policies/public.json": policyDocument([{
|
|
287
|
-
targetType: {
|
|
288
|
-
module: "../classroom",
|
|
289
|
-
name: "Classroom"
|
|
290
|
-
},
|
|
291
|
-
grants: [{
|
|
292
|
-
operation: "update",
|
|
293
|
-
where: ANONYMOUS,
|
|
294
|
-
rateLimitRequests: "realmConfig(\"publicRequests\")",
|
|
295
|
-
rateLimitWindowSeconds: "realmConfig(\"publicWindow\")"
|
|
296
|
-
}]
|
|
297
|
-
}]) });
|
|
298
|
-
let policy = await loadPolicy("policies/public");
|
|
299
|
-
provide(PermissionsContextName, {
|
|
300
|
-
canWrite: true,
|
|
301
|
-
canRead: true
|
|
302
|
-
});
|
|
303
|
-
await renderCard(loader, policy, "edit");
|
|
304
|
-
assert.dom("[data-test-field=\"rateLimitRequests\"] input").hasValue("realmConfig(\"publicRequests\")");
|
|
305
|
-
assert.dom("[data-test-field=\"rateLimitWindowSeconds\"] input").hasValue("realmConfig(\"publicWindow\")");
|
|
306
|
-
});
|
|
307
|
-
(0, import_qunit.test)("a policy with no rules says it grants nothing", async function(assert) {
|
|
308
|
-
await setupPolicyRealm({ "policies/empty.json": policyDocument([]) });
|
|
309
|
-
let policy = await loadPolicy("policies/empty");
|
|
310
|
-
await renderCard(loader, policy, "isolated");
|
|
311
|
-
assert.dom("[data-test-realm-policy-no-rules]").exists();
|
|
312
|
-
assert.dom("[data-test-policy-rule]").doesNotExist();
|
|
313
|
-
});
|
|
314
|
-
(0, import_qunit.test)("an empty predicate and an unannotated object are kept as present predicates", async function(assert) {
|
|
315
|
-
let doc = await (await setupPolicyRealm({ "policies/edge.json": policyDocument([{
|
|
316
|
-
targetType: {
|
|
317
|
-
module: "../classroom",
|
|
318
|
-
name: "Classroom"
|
|
319
|
-
},
|
|
320
|
-
grants: [
|
|
321
|
-
{
|
|
322
|
-
operation: "read",
|
|
323
|
-
where: ""
|
|
324
|
-
},
|
|
325
|
-
{
|
|
326
|
-
operation: "update",
|
|
327
|
-
where: {
|
|
328
|
-
bxl: providerPredicate,
|
|
329
|
-
snapshot: false
|
|
330
|
-
}
|
|
331
|
-
},
|
|
332
|
-
{
|
|
333
|
-
operation: "delete",
|
|
334
|
-
where: { bxl: providerPredicate }
|
|
335
|
-
}
|
|
336
|
-
]
|
|
337
|
-
}]) })).realmIndexQueryEngine.cardDocument(new URL(`${testRealmURL}policies/edge`));
|
|
338
|
-
let rules = doc?.type === "doc" ? doc.doc.data.attributes?.rules : [];
|
|
339
|
-
assert.deepEqual(rules[0]?.grants.map((grant) => grant.where), [
|
|
340
|
-
"",
|
|
341
|
-
providerPredicate,
|
|
342
|
-
providerPredicate
|
|
343
|
-
], "an empty source stays an empty string, and an object without snapshot: true is stored as the bare string");
|
|
344
|
-
let policy = await loadPolicy("policies/edge");
|
|
345
|
-
assert.deepEqual(policy.rules[0].grants.map((grant) => grant.where), [
|
|
346
|
-
{
|
|
347
|
-
source: "",
|
|
348
|
-
snapshot: false
|
|
349
|
-
},
|
|
350
|
-
{
|
|
351
|
-
source: providerPredicate,
|
|
352
|
-
snapshot: false
|
|
353
|
-
},
|
|
354
|
-
{
|
|
355
|
-
source: providerPredicate,
|
|
356
|
-
snapshot: false
|
|
357
|
-
}
|
|
358
|
-
], "none of them reads as an unconditional grant");
|
|
359
|
-
});
|
|
360
|
-
(0, import_qunit.test)("emptying a predicate while editing keeps it, and removing it is explicit", async function(assert) {
|
|
361
|
-
await setupPolicyRealm({ "policies/one.json": policyDocument([{
|
|
362
|
-
targetType: {
|
|
363
|
-
module: "../schedule",
|
|
364
|
-
name: "Schedule"
|
|
365
|
-
},
|
|
366
|
-
grants: [{
|
|
367
|
-
operation: "read",
|
|
368
|
-
where: {
|
|
369
|
-
bxl: rosterPredicate,
|
|
370
|
-
snapshot: true
|
|
371
|
-
}
|
|
372
|
-
}]
|
|
373
|
-
}]) });
|
|
374
|
-
let grant = (await loadPolicy("policies/one")).rules[0].grants[0];
|
|
375
|
-
provide(PermissionsContextName, {
|
|
376
|
-
canWrite: true,
|
|
377
|
-
canRead: true
|
|
378
|
-
});
|
|
379
|
-
await renderCard(loader, grant, "edit");
|
|
380
|
-
await fillIn("[data-test-policy-predicate-input]", "");
|
|
381
|
-
assert.deepEqual(grant.where, {
|
|
382
|
-
source: "",
|
|
383
|
-
snapshot: true
|
|
384
|
-
}, "an emptied predicate is still a predicate, and keeps its snapshot flag");
|
|
385
|
-
assert.dom("[data-test-policy-predicate-input]").hasAttribute("placeholder", "Empty condition", "an emptied predicate does not read as always allowed");
|
|
386
|
-
await fillIn("[data-test-policy-predicate-input]", providerPredicate);
|
|
387
|
-
assert.deepEqual(grant.where, {
|
|
388
|
-
source: providerPredicate,
|
|
389
|
-
snapshot: true
|
|
390
|
-
}, "retyping the source keeps the snapshot flag");
|
|
391
|
-
await click("[data-test-policy-predicate-remove]");
|
|
392
|
-
assert.strictEqual(grant.where, null, "removing the condition makes the grant unconditional");
|
|
393
|
-
assert.dom("[data-test-policy-predicate-remove]").doesNotExist("an unconditional grant has no condition to remove");
|
|
394
|
-
assert.dom("[data-test-policy-predicate-input]").hasAttribute("placeholder", "Always allowed", "an unconditional grant reads as always allowed");
|
|
395
|
-
});
|
|
396
|
-
function grantLinesInEditor() {
|
|
397
|
-
return [...document.querySelectorAll("[data-test-policy-rule-grant] [data-test-operation-grant]")].map((el) => el.textContent?.replace(/\s+/g, " ").trim());
|
|
398
|
-
}
|
|
399
|
-
function ruleEditor(index) {
|
|
400
|
-
return `[data-test-contains-many="rules"] [data-test-item="${index}"]`;
|
|
401
|
-
}
|
|
402
|
-
(0, import_qunit.test)("editing a policy shows each grant as its view does, and adds, changes and removes grants", async function(assert) {
|
|
403
|
-
await setupPolicyRealm({ "policies/education.json": educationPolicy });
|
|
404
|
-
let policy = await loadPolicy("policies/education");
|
|
405
|
-
provide(PermissionsContextName, {
|
|
406
|
-
canWrite: true,
|
|
407
|
-
canRead: true
|
|
408
|
-
});
|
|
409
|
-
await renderCard(loader, policy, "edit");
|
|
410
|
-
assert.dom("[data-test-policy-rule-edit]").exists({ count: 2 });
|
|
411
|
-
assert.deepEqual(grantLinesInEditor(), [
|
|
412
|
-
"read always",
|
|
413
|
-
`appendActivity where ${teacherPredicate.trim()}`,
|
|
414
|
-
`read where ${rosterPredicate} snapshot`,
|
|
415
|
-
`listMySchedules where ${providerPredicate}`
|
|
416
|
-
], "each grant is shown by its operation and condition, in order");
|
|
417
|
-
assert.dom("[data-test-contains-many=\"rules\"]").doesNotIncludeText("Untitled", "no grant is shown as an untitled field");
|
|
418
|
-
assert.dom("[data-test-policy-rule-target-type] input").exists({ count: 2 }, "every rule's target type can be edited");
|
|
419
|
-
assert.dom("[data-test-policy-rule-grant] [data-test-policy-predicate-input]").exists({ count: 4 }, "every grant's condition can be edited");
|
|
420
|
-
assert.dom("[data-test-policy-rule-grant] [data-test-field=\"actingUser\"]").exists({ count: 4 }, "every grant says who a write by a caller who is not signed in is made as");
|
|
421
|
-
assert.dom("[data-test-policy-rule-grant] [data-test-field=\"blocklist\"]").exists({ count: 4 }, "and which addresses it refuses them from");
|
|
422
|
-
assert.dom(`${ruleEditor(0)} [data-test-rate-limit-requests-default]`).includesText(`${PLATFORM_LIMIT.requests}`, "the rate-limit fields say what applies when they are left empty");
|
|
423
|
-
assert.dom(`${ruleEditor(0)} [data-test-rate-limit-window-default]`).includesText(`${PLATFORM_LIMIT.windowSeconds}`);
|
|
424
|
-
assert.dom(`${ruleEditor(1)} [data-test-policy-rule-remove-grant="0"]`).hasAttribute("aria-label", "Remove grant 1 (read)", "each remove button names the grant it removes");
|
|
425
|
-
let studentPredicate = ".studentIds | any(. == actor())";
|
|
426
|
-
await fillIn(`${ruleEditor(0)} [data-test-policy-rule-grant="1"] [data-test-policy-predicate-input]`, studentPredicate);
|
|
427
|
-
await click(`${ruleEditor(0)} [data-test-policy-rule-add-grant]`);
|
|
428
|
-
await fillIn(`${ruleEditor(0)} [data-test-policy-rule-grant="2"] [data-test-field="operation"] input`, "update");
|
|
429
|
-
await click(`${ruleEditor(1)} [data-test-policy-rule-remove-grant="0"]`);
|
|
430
|
-
await fillIn(`${ruleEditor(0)} [data-test-policy-rule-grant="2"] [data-test-policy-predicate-input]`, ANONYMOUS);
|
|
431
|
-
await fillIn(`${ruleEditor(0)} [data-test-policy-rule-grant="2"] [data-test-field="actingUser"] input`, "realmConfig(\"feedbackWriter\")");
|
|
432
|
-
assert.deepEqual(grantLinesInEditor(), [
|
|
433
|
-
"read always",
|
|
434
|
-
`appendActivity where ${studentPredicate}`,
|
|
435
|
-
`update where ${ANONYMOUS} anyone as realmConfig("feedbackWriter") limit ${PLATFORM_LIMIT_LINE}`,
|
|
436
|
-
`listMySchedules where ${providerPredicate}`
|
|
437
|
-
], "each grant reads as it now stands");
|
|
438
|
-
let rules = serializeCard(policy, {}).data.attributes?.rules;
|
|
439
|
-
assert.deepEqual(rules.map((rule) => rule.grants.map(({ operation, where, actingUser }) => ({
|
|
440
|
-
operation,
|
|
441
|
-
where,
|
|
442
|
-
actingUser: actingUser ?? null
|
|
443
|
-
}))), [[
|
|
444
|
-
{
|
|
445
|
-
operation: "read",
|
|
446
|
-
where: null,
|
|
447
|
-
actingUser: null
|
|
448
|
-
},
|
|
449
|
-
{
|
|
450
|
-
operation: "appendActivity",
|
|
451
|
-
where: studentPredicate,
|
|
452
|
-
actingUser: null
|
|
453
|
-
},
|
|
454
|
-
{
|
|
455
|
-
operation: "update",
|
|
456
|
-
where: ANONYMOUS,
|
|
457
|
-
actingUser: "realmConfig(\"feedbackWriter\")"
|
|
458
|
-
}
|
|
459
|
-
], [{
|
|
460
|
-
operation: "listMySchedules",
|
|
461
|
-
where: providerPredicate,
|
|
462
|
-
actingUser: null
|
|
463
|
-
}]], "the saved policy holds the added, changed and remaining grants");
|
|
464
|
-
});
|
|
465
|
-
(0, import_qunit.test)("a policy edited without write permission shows its grants but cannot add or remove them", async function(assert) {
|
|
466
|
-
await setupPolicyRealm({ "policies/education.json": educationPolicy });
|
|
467
|
-
let policy = await loadPolicy("policies/education");
|
|
468
|
-
provide(PermissionsContextName, {
|
|
469
|
-
canWrite: false,
|
|
470
|
-
canRead: true
|
|
471
|
-
});
|
|
472
|
-
await renderCard(loader, policy, "edit");
|
|
473
|
-
assert.strictEqual(grantLinesInEditor().length, 4, "every grant is still shown");
|
|
474
|
-
assert.dom("[data-test-policy-rule-add-grant]").doesNotExist();
|
|
475
|
-
assert.dom("[data-test-policy-rule-remove-grant]").doesNotExist();
|
|
476
|
-
});
|
|
477
|
-
(0, import_qunit.test)("a document shape assigned in code is refused rather than read as a predicate", async function(assert) {
|
|
478
|
-
await setupPolicyRealm({ "policies/education.json": educationPolicy });
|
|
479
|
-
let policy = await loadPolicy("policies/education");
|
|
480
|
-
let grant = policy.rules[0].grants[1];
|
|
481
|
-
grant.where = providerPredicate;
|
|
482
|
-
assert.throws(() => serializeCard(policy, {}), /a policy predicate in memory must be \{ source, snapshot \}/, "a bare string on the instance fails the save instead of being written");
|
|
483
|
-
grant.where = {
|
|
484
|
-
bxl: providerPredicate,
|
|
485
|
-
snapshot: true
|
|
486
|
-
};
|
|
487
|
-
assert.throws(() => serializeCard(policy, {}), /a policy predicate in memory must be \{ source, snapshot \}/, "so does the annotated document shape");
|
|
488
|
-
grant.where = {
|
|
489
|
-
source: providerPredicate,
|
|
490
|
-
snapshot: true
|
|
491
|
-
};
|
|
492
|
-
let serialized = serializeCard(policy, {});
|
|
493
|
-
assert.deepEqual((serialized.data.attributes?.rules)[0].grants[1].where, {
|
|
494
|
-
bxl: providerPredicate,
|
|
495
|
-
snapshot: true
|
|
496
|
-
}, "an in-memory predicate serializes to its document shape");
|
|
497
|
-
});
|
|
498
|
-
async function renderClassroomPolicy() {
|
|
499
|
-
await setupIntegrationTestRealm({
|
|
500
|
-
mockMatrixUtils,
|
|
501
|
-
permissions: {
|
|
502
|
-
"*": ["read"],
|
|
503
|
-
"@testuser:localhost": [
|
|
504
|
-
"read",
|
|
505
|
-
"write",
|
|
506
|
-
"realm-owner"
|
|
507
|
-
]
|
|
508
|
-
},
|
|
509
|
-
contents: {
|
|
510
|
-
"realm.json": realmConfigCardJSON({ policy: `${testRealmURL}policies/classrooms` }),
|
|
511
|
-
"classroom.gts": classroomModule,
|
|
512
|
-
"classrooms/room-204.json": classroom([TEACHER]),
|
|
513
|
-
"classrooms/room-205.json": classroom([COLLEAGUE]),
|
|
514
|
-
"policies/classrooms.json": classroomPolicy
|
|
515
|
-
}
|
|
516
|
-
});
|
|
517
|
-
await getService("realm").login(testRealmURL);
|
|
518
|
-
getService("operations");
|
|
519
|
-
let policy = await loadPolicy("policies/classrooms");
|
|
520
|
-
await renderCard(loader, policy, "isolated");
|
|
521
|
-
}
|
|
522
|
-
async function ask(actor, target, operation) {
|
|
523
|
-
await fillIn("[data-test-explain-actor]", actor);
|
|
524
|
-
await fillIn("[data-test-explain-target]", target);
|
|
525
|
-
await fillIn("[data-test-explain-operation]", operation);
|
|
526
|
-
await click("[data-test-explain-submit]");
|
|
527
|
-
await waitFor("[data-test-explanation], [data-test-explain-refusal]", { timeout: 1e4 });
|
|
528
|
-
}
|
|
529
|
-
function grantsShown() {
|
|
530
|
-
return [...document.querySelectorAll("[data-test-explanation-grant]")].map((el) => [el.querySelector("[data-test-explanation-grant-where]")?.textContent, el.getAttribute("data-test-explanation-grant")]);
|
|
531
|
-
}
|
|
532
|
-
(0, import_qunit.test)("an explanation for someone who is not signed in shows what each grant opened to them limits, blocks and writes as", async function(assert) {
|
|
533
|
-
await setupIntegrationTestRealm({
|
|
534
|
-
mockMatrixUtils,
|
|
535
|
-
permissions: {
|
|
536
|
-
"*": ["read"],
|
|
537
|
-
"@testuser:localhost": [
|
|
538
|
-
"read",
|
|
539
|
-
"write",
|
|
540
|
-
"realm-owner"
|
|
541
|
-
]
|
|
542
|
-
},
|
|
543
|
-
contents: {
|
|
544
|
-
"realm.json": realmConfigCardJSON({
|
|
545
|
-
policy: `${testRealmURL}policies/classrooms`,
|
|
546
|
-
config: {
|
|
547
|
-
submitter: "@testuser:localhost",
|
|
548
|
-
blockedIps: "not an address"
|
|
549
|
-
}
|
|
550
|
-
}),
|
|
551
|
-
"classroom.gts": classroomModule,
|
|
552
|
-
"classrooms/room-204.json": classroom([TEACHER]),
|
|
553
|
-
"policies/classrooms.json": policyDocument([{
|
|
554
|
-
targetType: {
|
|
555
|
-
module: "../classroom",
|
|
556
|
-
name: "Classroom"
|
|
557
|
-
},
|
|
558
|
-
grants: [
|
|
559
|
-
{
|
|
560
|
-
operation: "update",
|
|
561
|
-
where: ANONYMOUS,
|
|
562
|
-
actingUser: "realmConfig(\"submitter\")",
|
|
563
|
-
blocklist: "realmConfig(\"blockedIps\")",
|
|
564
|
-
rateLimitRequests: "7",
|
|
565
|
-
rateLimitWindowSeconds: "30"
|
|
566
|
-
},
|
|
567
|
-
{
|
|
568
|
-
operation: "update",
|
|
569
|
-
where: ANONYMOUS,
|
|
570
|
-
actingUser: "realmConfig(\"missing\")"
|
|
571
|
-
},
|
|
572
|
-
{
|
|
573
|
-
operation: "update",
|
|
574
|
-
where: teachesPredicate,
|
|
575
|
-
actingUser: "realmConfig(\"submitter\")"
|
|
576
|
-
}
|
|
577
|
-
]
|
|
578
|
-
}])
|
|
579
|
-
}
|
|
580
|
-
});
|
|
581
|
-
await getService("realm").login(testRealmURL);
|
|
582
|
-
getService("operations");
|
|
583
|
-
let policy = await loadPolicy("policies/classrooms");
|
|
584
|
-
await renderCard(loader, policy, "isolated");
|
|
585
|
-
await ask("", `${testRealmURL}classrooms/room-204`, "update");
|
|
586
|
-
assert.dom("[data-test-explanation-actor]").hasText("not signed in");
|
|
587
|
-
assert.dom("[data-test-explanation-anonymous-limit]").hasText(`${DEFAULT_ANONYMOUS_RATE_LIMIT.requests} requests per ${DEFAULT_ANONYMOUS_RATE_LIMIT.windowSeconds} seconds from one address, the platform default, for a grant that sets none`);
|
|
588
|
-
assert.deepEqual([...document.querySelectorAll("[data-test-explanation-grant-anonymous]")].map((el) => el.textContent?.trim()), [
|
|
589
|
-
"Open to people who aren't signed in.",
|
|
590
|
-
"Their writes are made as @testuser:localhost.",
|
|
591
|
-
"Limit: 7 requests (set by this grant) per 30 seconds (set by this grant) from one address.",
|
|
592
|
-
"Its blocklist has entries that aren't an address or a range (\"not an address\"), so it turns away everyone who isn't signed in until it's fixed.",
|
|
593
|
-
"Open to people who aren't signed in.",
|
|
594
|
-
"Their writes: its \"Write as\" expression produced nothing, so this grant admits none of their writes.",
|
|
595
|
-
`Limit: ${DEFAULT_ANONYMOUS_RATE_LIMIT.requests} requests (the platform default) per ${DEFAULT_ANONYMOUS_RATE_LIMIT.windowSeconds} seconds (the platform default) from one address.`
|
|
596
|
-
], "only the grants opened to them carry these lines");
|
|
597
|
-
assert.deepEqual([...document.querySelectorAll("[data-test-explanation-grant-issue]")].map((el) => el.getAttribute("data-test-explanation-grant-issue")), ["acting-user-never-used"], "the grant that names an acting user it can never use carries its warning");
|
|
598
|
-
});
|
|
599
|
-
(0, import_qunit.test)("the policy explains what it decides for one caller, one card and one operation", async function(assert) {
|
|
600
|
-
await renderClassroomPolicy();
|
|
601
|
-
assert.dom("[data-test-realm-policy-explain]").exists();
|
|
602
|
-
assert.dom("[data-test-explain-actor-hint]").hasText("Leave this empty to check what someone who isn't signed in can do.", "the person field says how to ask about someone who is not signed in");
|
|
603
|
-
assert.dom("[data-test-explain-submit]").isDisabled("nothing to ask yet");
|
|
604
|
-
await ask(TEACHER, `${testRealmURL}classrooms/room-204`, "delete");
|
|
605
|
-
assert.strictEqual(document.querySelector("[data-test-explain-refusal]")?.textContent?.trim(), void 0, "the realm answers the question rather than refusing it");
|
|
606
|
-
assert.dom("[data-test-explanation-decision]").hasText("allowed");
|
|
607
|
-
assert.dom("[data-test-explanation-reason]").hasText("A grant in this policy allows it.");
|
|
608
|
-
assert.dom("[data-test-explanation-actor]").hasText(TEACHER);
|
|
609
|
-
assert.dom("[data-test-explanation-acl]").hasText("read", "the realm's own permissions let the teacher only read");
|
|
610
|
-
assert.dom("[data-test-explanation-refusal]").doesNotExist("an allowed invocation has no refusal to report");
|
|
611
|
-
assert.dom("[data-test-explanation-rule]").exists({ count: 1 }, "the one rule governing a classroom");
|
|
612
|
-
assert.deepEqual(grantsShown(), [[leadsPredicate, "did-not-hold"], [teachesPredicate, "held"]], "each delete grant is listed with its predicate and what it said, and the update grant is not");
|
|
613
|
-
assert.dom("[data-test-explanation-grant=\"held\"] [data-test-explanation-admitting]").exists("the grant that admitted the delete is marked");
|
|
614
|
-
assert.dom("[data-test-explanation-admitting]").exists({ count: 1 }, "and no other grant is");
|
|
615
|
-
});
|
|
616
|
-
(0, import_qunit.test)("the policy explains a refusal, and says when a question is refused", async function(assert) {
|
|
617
|
-
await renderClassroomPolicy();
|
|
618
|
-
await ask(TEACHER, `${testRealmURL}classrooms/room-205`, "delete");
|
|
619
|
-
assert.dom("[data-test-explanation-decision]").hasText("denied");
|
|
620
|
-
assert.dom("[data-test-explanation-reason]").hasText("This policy has grants for this operation on this card, but none of their conditions is met.");
|
|
621
|
-
assert.dom("[data-test-explanation-refusal]").hasText("403 operation-not-permitted", "the teacher may read the realm, so they would be told the gate refused them");
|
|
622
|
-
assert.deepEqual(grantsShown(), [[leadsPredicate, "did-not-hold"], [teachesPredicate, "did-not-hold"]], "neither delete grant holds for a classroom the teacher does not teach");
|
|
623
|
-
assert.dom("[data-test-explanation-admitting]").doesNotExist("no grant admitted the delete");
|
|
624
|
-
await ask(TEACHER, `${testRealmURL}classrooms/room-999`, "delete");
|
|
625
|
-
assert.dom("[data-test-explain-refusal]").hasText("no such target", "a card that is not there is refused the way the realm refuses one");
|
|
626
|
-
assert.dom("[data-test-explanation]").doesNotExist("and the earlier answer is not left on the page");
|
|
627
|
-
});
|
|
628
|
-
const MISTYPED = `${teachesPredicate} and .title ==`;
|
|
629
|
-
const UNFILTERABLE = "(.title | tonumber) > 0";
|
|
630
|
-
async function renderPolicyNamed(path, rules, modules = {}) {
|
|
631
|
-
let { realm } = await setupIntegrationTestRealm({
|
|
632
|
-
mockMatrixUtils,
|
|
633
|
-
contents: {
|
|
634
|
-
"classroom.gts": classroomModule,
|
|
635
|
-
...modules,
|
|
636
|
-
[`${path}.json`]: policyDocument(rules)
|
|
637
|
-
}
|
|
638
|
-
});
|
|
639
|
-
getService("operations");
|
|
640
|
-
let policy = await loadPolicy(path);
|
|
641
|
-
await renderCard(loader, policy, "isolated");
|
|
642
|
-
return realm;
|
|
643
|
-
}
|
|
644
|
-
async function grantStatuses() {
|
|
645
|
-
await waitFor("[data-test-policy-grant-status]", { timeout: 1e4 });
|
|
646
|
-
return [...document.querySelectorAll("[data-test-policy-grant-status]")].map((el) => el.getAttribute("data-test-policy-grant-status"));
|
|
647
|
-
}
|
|
648
|
-
(0, import_qunit.test)("a grant that does not compile is marked inactive among the live ones, and its issue names its rule and grant", async function(assert) {
|
|
649
|
-
await renderPolicyNamed("policies/mistyped", [{
|
|
650
|
-
targetType: {
|
|
651
|
-
module: "../classroom",
|
|
652
|
-
name: "Classroom"
|
|
653
|
-
},
|
|
654
|
-
grants: [
|
|
655
|
-
{ operation: "read" },
|
|
656
|
-
{
|
|
657
|
-
operation: "delete",
|
|
658
|
-
where: MISTYPED
|
|
659
|
-
},
|
|
660
|
-
{ operation: "update" }
|
|
661
|
-
]
|
|
662
|
-
}]);
|
|
663
|
-
assert.deepEqual(await grantStatuses(), [
|
|
664
|
-
"live",
|
|
665
|
-
"inactive",
|
|
666
|
-
"live"
|
|
667
|
-
], "the grant that does not compile is inactive, and the others are live");
|
|
668
|
-
assert.dom("[data-test-policy-grant-inactive]").exists({ count: 1 }, "and it is marked where it is listed");
|
|
669
|
-
assert.dom("[data-test-policy-grant-status=\"inactive\"] [data-test-operation-grant-operation]").hasText("delete", "the marked grant is the delete");
|
|
670
|
-
assert.dom("[data-test-realm-policy-uncompilable]").doesNotExist();
|
|
671
|
-
assert.dom("[data-test-realm-policy-issues]").exists();
|
|
672
|
-
assert.dom("[data-test-policy-issue]").exists({ count: 1 }).hasAttribute("data-test-policy-issue", "invalid-predicate");
|
|
673
|
-
assert.dom("[data-test-policy-issue-rule]").hasText("Classroom", "the issue names its rule's type");
|
|
674
|
-
assert.dom("[data-test-policy-issue-operation]").hasText("delete", "and its grant's operation");
|
|
675
|
-
assert.dom("[data-test-policy-issue-message]").includesText("has a syntax error", "and says what is wrong");
|
|
676
|
-
});
|
|
677
|
-
(0, import_qunit.test)("a query grant whose predicate compiles no search filter is inactive, and its issue says why", async function(assert) {
|
|
678
|
-
await renderPolicyNamed("policies/unfilterable", [{
|
|
679
|
-
targetType: {
|
|
680
|
-
module: "../classroom",
|
|
681
|
-
name: "Classroom"
|
|
682
|
-
},
|
|
683
|
-
grants: [{ operation: "read" }, {
|
|
684
|
-
operation: "query",
|
|
685
|
-
where: UNFILTERABLE
|
|
686
|
-
}]
|
|
687
|
-
}]);
|
|
688
|
-
assert.deepEqual(await grantStatuses(), ["live", "inactive"], "a query is authorized only through a filter, so the grant admits nothing");
|
|
689
|
-
assert.dom("[data-test-policy-grant-status=\"inactive\"] [data-test-operation-grant-operation]").hasText("query", "the marked grant is the query");
|
|
690
|
-
assert.dom("[data-test-policy-grant-inactive]").exists({ count: 1 }, "and it is marked where it is listed");
|
|
691
|
-
assert.dom("[data-test-policy-issue]").exists({ count: 1 }).hasAttribute("data-test-policy-issue", "policy-not-filterable");
|
|
692
|
-
assert.dom("[data-test-policy-issue-operation]").hasText("query");
|
|
693
|
-
});
|
|
694
|
-
(0, import_qunit.test)("a grant whose condition is annotated as reading a snapshot is live", async function(assert) {
|
|
695
|
-
await renderPolicyNamed("policies/snapshot", [{
|
|
696
|
-
targetType: {
|
|
697
|
-
module: "../classroom",
|
|
698
|
-
name: "Classroom"
|
|
699
|
-
},
|
|
700
|
-
grants: [{
|
|
701
|
-
operation: "read",
|
|
702
|
-
where: {
|
|
703
|
-
bxl: teachesPredicate,
|
|
704
|
-
snapshot: true
|
|
705
|
-
}
|
|
706
|
-
}, {
|
|
707
|
-
operation: "update",
|
|
708
|
-
where: teachesPredicate
|
|
709
|
-
}]
|
|
710
|
-
}]);
|
|
711
|
-
assert.deepEqual(await grantStatuses(), ["live", "live"], "the gate evaluates an annotated condition, so the annotation leaves the read in force");
|
|
712
|
-
assert.dom("[data-test-realm-policy-issues]").doesNotExist("compiling recorded no issue");
|
|
713
|
-
});
|
|
714
|
-
(0, import_qunit.test)("a rule whose type does not resolve is marked inactive with its grants", async function(assert) {
|
|
715
|
-
await renderPolicyNamed("policies/unresolved", [{
|
|
716
|
-
targetType: {
|
|
717
|
-
module: "../no-such-module",
|
|
718
|
-
name: "Nope"
|
|
719
|
-
},
|
|
720
|
-
grants: [{ operation: "read" }]
|
|
721
|
-
}, {
|
|
722
|
-
targetType: {
|
|
723
|
-
module: "../classroom",
|
|
724
|
-
name: "Classroom"
|
|
725
|
-
},
|
|
726
|
-
grants: [{ operation: "read" }]
|
|
727
|
-
}]);
|
|
728
|
-
assert.deepEqual(await grantStatuses(), ["inactive", "live"]);
|
|
729
|
-
assert.dom("[data-test-policy-rule-inactive]").exists({ count: 1 }, "the rule is marked, once");
|
|
730
|
-
assert.dom("[data-test-policy-grant-inactive]").doesNotExist("rather than each grant in it");
|
|
731
|
-
assert.dom("[data-test-policy-issue]").hasAttribute("data-test-policy-issue", "unresolved-type");
|
|
732
|
-
assert.dom("[data-test-policy-issue-rule]").hasText("Nope");
|
|
733
|
-
assert.dom("[data-test-policy-issue-operation]").doesNotExist("a rule-level issue names no grant");
|
|
734
|
-
});
|
|
735
|
-
(0, import_qunit.test)("a policy that does not compile at all says so apart from any one grant", async function(assert) {
|
|
736
|
-
await setupIntegrationTestRealm({
|
|
737
|
-
mockMatrixUtils,
|
|
738
|
-
contents: {
|
|
739
|
-
"classroom.gts": classroomModule,
|
|
740
|
-
"policies/broken.json": classroomPolicy
|
|
741
|
-
}
|
|
742
|
-
});
|
|
743
|
-
getService("operations");
|
|
744
|
-
let policy = await loadPolicy("policies/broken");
|
|
745
|
-
let batch = await new IndexWriter(await getDbAdapter()).createBatch(new URL(testRealmURL), getService("network").virtualNetwork);
|
|
746
|
-
await batch.updateEntry(new URL(`${testRealmURL}policies/broken.json`), {
|
|
747
|
-
type: "instance-error",
|
|
748
|
-
error: {
|
|
749
|
-
message: "Bad Gateway",
|
|
750
|
-
status: 502,
|
|
751
|
-
additionalErrors: null
|
|
752
|
-
},
|
|
753
|
-
diagnostics: { gatewayFailure: ["instance"] }
|
|
754
|
-
});
|
|
755
|
-
await batch.done();
|
|
756
|
-
await renderCard(loader, policy, "isolated");
|
|
757
|
-
await waitFor("[data-test-realm-policy-uncompilable]", { timeout: 1e4 });
|
|
758
|
-
assert.dom("[data-test-realm-policy-uncompilable]").includesText("Not in force", "the whole policy is out of force").includesText("This card couldn't be indexed this time", "and says why of the card itself");
|
|
759
|
-
assert.dom("[data-test-policy-rule-inactive]").doesNotExist("which is said once, not on each rule");
|
|
760
|
-
assert.dom("[data-test-policy-issue]").hasAttribute("data-test-policy-issue", "policy-card-unloadable");
|
|
761
|
-
assert.dom("[data-test-policy-issue-rule]").doesNotExist("a card-level issue names no rule");
|
|
762
|
-
});
|
|
763
|
-
(0, import_qunit.test)("fixing a grant clears its issue", async function(assert) {
|
|
764
|
-
let realm = await renderPolicyNamed("policies/fixable", [{
|
|
765
|
-
targetType: {
|
|
766
|
-
module: "../classroom",
|
|
767
|
-
name: "Classroom"
|
|
768
|
-
},
|
|
769
|
-
grants: [{
|
|
770
|
-
operation: "delete",
|
|
771
|
-
where: MISTYPED
|
|
772
|
-
}]
|
|
773
|
-
}]);
|
|
774
|
-
assert.deepEqual(await grantStatuses(), ["inactive"]);
|
|
775
|
-
await realm.write("policies/fixable.json", JSON.stringify(policyDocument([{
|
|
776
|
-
targetType: {
|
|
777
|
-
module: "../classroom",
|
|
778
|
-
name: "Classroom"
|
|
779
|
-
},
|
|
780
|
-
grants: [{
|
|
781
|
-
operation: "delete",
|
|
782
|
-
where: teachesPredicate
|
|
783
|
-
}]
|
|
784
|
-
}])));
|
|
785
|
-
await waitUntil(() => document.querySelector("[data-test-policy-grant-status]")?.getAttribute("data-test-policy-grant-status") === "live", { timeout: 1e4 });
|
|
786
|
-
await settled();
|
|
787
|
-
assert.deepEqual(await grantStatuses(), ["live"], "the grant is live");
|
|
788
|
-
assert.dom("[data-test-realm-policy-issues]").doesNotExist("and the issue is gone");
|
|
789
|
-
});
|
|
790
|
-
(0, import_qunit.test)("a policy with no issues shows no issue affordance", async function(assert) {
|
|
791
|
-
await renderPolicyNamed("policies/clean", [{
|
|
792
|
-
targetType: {
|
|
793
|
-
module: "../classroom",
|
|
794
|
-
name: "Classroom"
|
|
795
|
-
},
|
|
796
|
-
grants: [{
|
|
797
|
-
operation: "read",
|
|
798
|
-
where: teachesPredicate
|
|
799
|
-
}, { operation: "update" }]
|
|
800
|
-
}]);
|
|
801
|
-
assert.deepEqual(await grantStatuses(), ["live", "live"], "the realm has answered");
|
|
802
|
-
assert.dom("[data-test-realm-policy-issues]").doesNotExist();
|
|
803
|
-
assert.dom("[data-test-realm-policy-uncompilable]").doesNotExist();
|
|
804
|
-
assert.dom("[data-test-policy-grant-inactive]").doesNotExist();
|
|
805
|
-
assert.dom("[data-test-policy-rule-inactive]").doesNotExist();
|
|
806
|
-
assert.dom("[data-test-realm-policy-validate-failure]").doesNotExist();
|
|
807
|
-
});
|
|
808
|
-
function grantMarkedWithWarning() {
|
|
809
|
-
return document.querySelector("[data-test-policy-grant-warning]")?.closest("[data-test-policy-grant-status]");
|
|
810
|
-
}
|
|
811
|
-
(0, import_qunit.test)("a live grant that hands over cards of a type no rule grants is marked live with its warning beside it", async function(assert) {
|
|
812
|
-
await renderPolicyNamed("policies/reaching", [{
|
|
813
|
-
targetType: {
|
|
814
|
-
module: "../roster",
|
|
815
|
-
name: "Roster"
|
|
816
|
-
},
|
|
817
|
-
grants: [{
|
|
818
|
-
operation: "read",
|
|
819
|
-
where: teachesPredicate
|
|
820
|
-
}, {
|
|
821
|
-
operation: "update",
|
|
822
|
-
where: teachesPredicate
|
|
823
|
-
}]
|
|
824
|
-
}], { "roster.gts": rosterModule });
|
|
825
|
-
assert.deepEqual(await grantStatuses(), ["live", "live"], "a warning leaves its grant live");
|
|
826
|
-
assert.dom("[data-test-policy-grant-inactive]").doesNotExist("and marks nothing inactive");
|
|
827
|
-
assert.dom("[data-test-policy-grant-warning]").exists({ count: 1 }, "one grant is marked with a warning");
|
|
828
|
-
let marked = grantMarkedWithWarning();
|
|
829
|
-
assert.strictEqual(marked?.getAttribute("data-test-policy-grant-status"), "live", "the marked grant is live");
|
|
830
|
-
assert.dom("[data-test-operation-grant-operation]", marked ?? void 0).hasText("read", "it is the read, whose document carries the students");
|
|
831
|
-
await click("[data-test-policy-grant-warning] summary");
|
|
832
|
-
assert.dom("[data-test-policy-grant-warning-message=\"grant-reaches-ungranted-type\"]").exists({ count: 1 }).isVisible("opening the mark shows the warning").includesText("no rule lets anyone read Student cards", "which says what the grant hands over");
|
|
833
|
-
assert.dom("[data-test-policy-issue]").exists({ count: 1 }).hasAttribute("data-test-policy-issue", "grant-reaches-ungranted-type");
|
|
834
|
-
assert.dom("[data-test-policy-issue-rule]").hasText("Roster", "the warning is listed with its rule");
|
|
835
|
-
assert.dom("[data-test-policy-issue-operation]").hasText("read", "and its grant");
|
|
836
|
-
assert.dom("[data-test-policy-issue] [data-test-policy-issue-warning]").exists("and is marked there as a warning");
|
|
837
|
-
assert.dom("[data-test-policy-issue-message]").includesText("no rule lets anyone read Student cards");
|
|
838
|
-
assert.dom("[data-test-policy-issue-message] code").exists("the identifiers in the message render as code").hasText("read", "the first is the grant’s operation");
|
|
839
|
-
assert.dom("[data-test-policy-issue-message] .message-paragraph").exists({ count: 4 }, "the message is laid out one idea per paragraph, as the compiler writes it");
|
|
840
|
-
assert.dom("[data-test-policy-issue-message]").doesNotIncludeText(BACKTICK, "and no backtick shows").includesText("read on Roster sends", "and the text reads on across a span, spaces kept");
|
|
841
|
-
assert.dom("[data-test-policy-grant-warning-message=\"grant-reaches-ungranted-type\"] code").exists("the grant’s warning renders them as code too");
|
|
842
|
-
assert.dom("[data-test-policy-grant-warning-message=\"grant-reaches-ungranted-type\"]").doesNotIncludeText(BACKTICK);
|
|
843
|
-
});
|
|
844
|
-
(0, import_qunit.test)("a policy whose issues only leave grants inactive marks no warning", async function(assert) {
|
|
845
|
-
await renderPolicyNamed("policies/inactive-only", [{
|
|
846
|
-
targetType: {
|
|
847
|
-
module: "../classroom",
|
|
848
|
-
name: "Classroom"
|
|
849
|
-
},
|
|
850
|
-
grants: [
|
|
851
|
-
{ operation: "read" },
|
|
852
|
-
{
|
|
853
|
-
operation: "delete",
|
|
854
|
-
where: MISTYPED
|
|
855
|
-
},
|
|
856
|
-
{
|
|
857
|
-
operation: "query",
|
|
858
|
-
where: UNFILTERABLE
|
|
859
|
-
}
|
|
860
|
-
]
|
|
861
|
-
}]);
|
|
862
|
-
assert.deepEqual(await grantStatuses(), [
|
|
863
|
-
"live",
|
|
864
|
-
"inactive",
|
|
865
|
-
"inactive"
|
|
866
|
-
]);
|
|
867
|
-
assert.dom("[data-test-policy-grant-inactive]").exists({ count: 2 }, "each grant an issue leaves out is marked inactive");
|
|
868
|
-
assert.dom("[data-test-policy-issue]").exists({ count: 2 }, "and each issue is listed");
|
|
869
|
-
assert.dom("[data-test-policy-grant-warning]").doesNotExist("no grant is marked with a warning");
|
|
870
|
-
assert.dom("[data-test-policy-issue-warning]").doesNotExist("and no listed issue is marked as one");
|
|
871
|
-
});
|
|
872
|
-
(0, import_qunit.test)("a view created in an index render never asks what the policy compiles to", async function(assert) {
|
|
873
|
-
await setupIntegrationTestRealm({
|
|
874
|
-
mockMatrixUtils,
|
|
875
|
-
contents: {
|
|
876
|
-
"classroom.gts": classroomModule,
|
|
877
|
-
"policies/mistyped.json": policyDocument([{
|
|
878
|
-
targetType: {
|
|
879
|
-
module: "../classroom",
|
|
880
|
-
name: "Classroom"
|
|
881
|
-
},
|
|
882
|
-
grants: [{ operation: "read" }, {
|
|
883
|
-
operation: "delete",
|
|
884
|
-
where: MISTYPED
|
|
885
|
-
}]
|
|
886
|
-
}])
|
|
887
|
-
}
|
|
888
|
-
});
|
|
889
|
-
let { operations } = await loader.import("@cardstack/base/operations");
|
|
890
|
-
getService("operations");
|
|
891
|
-
let policy = await loadPolicy("policies/mistyped");
|
|
892
|
-
let validates = 0;
|
|
893
|
-
let network = getService("network");
|
|
894
|
-
let spy = async (request) => {
|
|
895
|
-
if (new URL(request.url).pathname.endsWith("/_operations") && (await request.clone().text()).includes("\"validate\"")) validates++;
|
|
896
|
-
return null;
|
|
897
|
-
};
|
|
898
|
-
network.virtualNetwork.mount(spy, { prepend: true });
|
|
899
|
-
let context = globalThis;
|
|
900
|
-
try {
|
|
901
|
-
context.__boxelRenderContext = true;
|
|
902
|
-
try {
|
|
903
|
-
await renderCard(loader, policy, "isolated");
|
|
904
|
-
} finally {
|
|
905
|
-
context.__boxelRenderContext = void 0;
|
|
906
|
-
}
|
|
907
|
-
assert.dom("[data-test-policy-rule]").exists({ count: 1 }, "the index render lists the rules");
|
|
908
|
-
assert.dom("[data-test-policy-grant-status]").doesNotExist("with no grant marked");
|
|
909
|
-
assert.dom("[data-test-realm-policy-issues]").doesNotExist("and no issues");
|
|
910
|
-
let validation = await operations(policy).validate();
|
|
911
|
-
assert.deepEqual(validation.issues.map(({ code }) => code), ["invalid-predicate"], "the realm answers a validate of this card");
|
|
912
|
-
assert.strictEqual(validates, 1, "the only validate sent is the test's own");
|
|
913
|
-
} finally {
|
|
914
|
-
network.virtualNetwork.unmount(spy);
|
|
915
|
-
}
|
|
916
|
-
});
|
|
917
|
-
});
|
|
918
|
-
var DEFINITIONS = "http://test-realm/classroom-definitions/";
|
|
919
|
-
var CLASSROOM = {
|
|
920
|
-
module: `${DEFINITIONS}classroom`,
|
|
921
|
-
name: "Classroom"
|
|
922
|
-
};
|
|
923
|
-
var OWNER = "@testuser:localhost";
|
|
924
|
-
var MISTYPED_PREDICATE = `${teachesPredicate} and .title ==`;
|
|
925
|
-
var UNFILTERABLE_PREDICATE = "(.title | tonumber) > 0";
|
|
926
|
-
var classroomQueryModule = `
|
|
927
|
-
import { contains, containsMany, field, CardDef } from "@cardstack/base/card-api";
|
|
928
|
-
import StringField from "@cardstack/base/string";
|
|
929
|
-
import { operation } from "@cardstack/base/operations";
|
|
930
|
-
|
|
931
|
-
export class Classroom extends CardDef {
|
|
932
|
-
@field title = contains(StringField);
|
|
933
|
-
@field teacherIds = containsMany(StringField);
|
|
934
|
-
|
|
935
|
-
@operation static listMine = {
|
|
936
|
-
base: 'query',
|
|
937
|
-
query: { filter: { type: () => Classroom } },
|
|
938
|
-
};
|
|
939
|
-
}
|
|
940
|
-
`;
|
|
941
|
-
var askedPolicyRules = [{
|
|
942
|
-
targetType: CLASSROOM,
|
|
943
|
-
grants: [
|
|
944
|
-
{
|
|
945
|
-
operation: "read",
|
|
946
|
-
where: teachesPredicate
|
|
947
|
-
},
|
|
948
|
-
{
|
|
949
|
-
operation: "delete",
|
|
950
|
-
where: teachesPredicate
|
|
951
|
-
},
|
|
952
|
-
{
|
|
953
|
-
operation: "listMine",
|
|
954
|
-
where: teachesPredicate
|
|
955
|
-
},
|
|
956
|
-
{
|
|
957
|
-
operation: "query",
|
|
958
|
-
where: UNFILTERABLE_PREDICATE
|
|
959
|
-
}
|
|
960
|
-
]
|
|
961
|
-
}];
|
|
962
|
-
var ROOMS = Array.from({ length: 11 }, (_, i) => `room-${201 + i}`);
|
|
963
|
-
function definedClassroom(teacherIds) {
|
|
964
|
-
return { data: {
|
|
965
|
-
type: "card",
|
|
966
|
-
attributes: { teacherIds },
|
|
967
|
-
meta: { adoptsFrom: CLASSROOM }
|
|
968
|
-
} };
|
|
969
|
-
}
|
|
970
|
-
(0, import_qunit.module)("Integration | realm policy explain forms", function(hooks) {
|
|
971
|
-
setupRenderingTest(hooks);
|
|
972
|
-
setupCatalogTestSubset(hooks);
|
|
973
|
-
setupLocalIndexing(hooks);
|
|
974
|
-
let loader;
|
|
975
|
-
let mockMatrixUtils = setupMockMatrix(hooks, {
|
|
976
|
-
loggedInAs: OWNER,
|
|
977
|
-
activeRealms: [DEFINITIONS, testRealmURL],
|
|
978
|
-
autostart: true
|
|
979
|
-
});
|
|
980
|
-
hooks.beforeEach(function() {
|
|
981
|
-
loader = getService("loader-service").loader;
|
|
982
|
-
});
|
|
983
|
-
setupCardLogs(hooks, async () => await loader.import("@cardstack/base/card-api"));
|
|
984
|
-
async function renderAskedPolicy() {
|
|
985
|
-
await setupIntegrationTestRealm({
|
|
986
|
-
mockMatrixUtils,
|
|
987
|
-
realmURL: DEFINITIONS,
|
|
988
|
-
permissions: { "*": ["read"] },
|
|
989
|
-
contents: {
|
|
990
|
-
"realm.json": realmConfigCardJSON({ name: "Classroom definitions" }),
|
|
991
|
-
"classroom.gts": classroomQueryModule
|
|
992
|
-
}
|
|
993
|
-
});
|
|
994
|
-
await setupIntegrationTestRealm({
|
|
995
|
-
mockMatrixUtils,
|
|
996
|
-
enforcePermissions: true,
|
|
997
|
-
permissions: { [OWNER]: [
|
|
998
|
-
"read",
|
|
999
|
-
"write",
|
|
1000
|
-
"realm-owner"
|
|
1001
|
-
] },
|
|
1002
|
-
contents: {
|
|
1003
|
-
"realm.json": realmConfigCardJSON({ policy: `${testRealmURL}policies/classrooms` }),
|
|
1004
|
-
...Object.fromEntries(ROOMS.map((room, i) => [`classrooms/${room}.json`, definedClassroom(i < 3 ? [TEACHER] : [COLLEAGUE])])),
|
|
1005
|
-
"policies/classrooms.json": policyDocument(askedPolicyRules)
|
|
1006
|
-
}
|
|
1007
|
-
});
|
|
1008
|
-
getService("operations");
|
|
1009
|
-
let policy = await getService("store").get(`${testRealmURL}policies/classrooms`);
|
|
1010
|
-
await renderCard(loader, policy, "isolated");
|
|
1011
|
-
}
|
|
1012
|
-
async function chooseMode(mode) {
|
|
1013
|
-
await click(`[data-test-explain-mode="${mode}"] input`);
|
|
1014
|
-
}
|
|
1015
|
-
async function submitAndWait(answer) {
|
|
1016
|
-
await click("[data-test-explain-submit]");
|
|
1017
|
-
await waitFor(`${answer}, [data-test-explain-refusal]`, { timeout: 1e4 });
|
|
1018
|
-
}
|
|
1019
|
-
function draftRules(grants) {
|
|
1020
|
-
return JSON.stringify({ rules: [{
|
|
1021
|
-
targetType: CLASSROOM,
|
|
1022
|
-
grants
|
|
1023
|
-
}] });
|
|
1024
|
-
}
|
|
1025
|
-
(0, import_qunit.test)("the policy answers a question against a draft, and the policy in force is unchanged", async function(assert) {
|
|
1026
|
-
await renderAskedPolicy();
|
|
1027
|
-
let room205 = `${testRealmURL}classrooms/room-205`;
|
|
1028
|
-
await fillIn("[data-test-explain-actor]", TEACHER);
|
|
1029
|
-
await fillIn("[data-test-explain-target]", room205);
|
|
1030
|
-
await fillIn("[data-test-explain-operation]", "delete");
|
|
1031
|
-
await submitAndWait("[data-test-explanation]");
|
|
1032
|
-
assert.dom("[data-test-explanation-decision]").hasText("denied", "the policy in force lets a teacher delete only their own classrooms");
|
|
1033
|
-
assert.dom("[data-test-explanation-draft]").doesNotExist();
|
|
1034
|
-
await click("[data-test-explain-use-draft]");
|
|
1035
|
-
let started = JSON.parse(document.querySelector("[data-test-explain-draft]").value);
|
|
1036
|
-
assert.deepEqual(started.rules.map((rule) => rule.grants.map((g) => g.operation)), [[
|
|
1037
|
-
"read",
|
|
1038
|
-
"delete",
|
|
1039
|
-
"listMine",
|
|
1040
|
-
"query"
|
|
1041
|
-
]], "the draft starts from this card's rules");
|
|
1042
|
-
await fillIn("[data-test-explain-draft]", draftRules([{ operation: "delete" }]));
|
|
1043
|
-
await submitAndWait("[data-test-explanation]");
|
|
1044
|
-
assert.dom("[data-test-explanation-decision]").hasText("allowed", "the draft lets the teacher delete any classroom");
|
|
1045
|
-
assert.dom("[data-test-explanation-reason]").hasText("A grant in this policy allows it.");
|
|
1046
|
-
assert.dom("[data-test-explanation-draft]").exists("the answer says it was answered against the draft");
|
|
1047
|
-
assert.dom("[data-test-explanation-draft-clean]").exists();
|
|
1048
|
-
await fillIn("[data-test-explain-draft]", draftRules([{
|
|
1049
|
-
operation: "delete",
|
|
1050
|
-
where: MISTYPED_PREDICATE
|
|
1051
|
-
}]));
|
|
1052
|
-
await submitAndWait("[data-test-explanation]");
|
|
1053
|
-
assert.dom("[data-test-explanation-decision]").hasText("denied");
|
|
1054
|
-
assert.dom("[data-test-explanation-draft-issue]").exists({ count: 1 }).hasAttribute("data-test-explanation-draft-issue", "invalid-predicate").includesText("rules[0].grants[0].where", "the issue names where it is");
|
|
1055
|
-
await fillIn("[data-test-explain-draft]", JSON.stringify({ attributes: { rules: [] } }));
|
|
1056
|
-
await submitAndWait("[data-test-explain-refusal]");
|
|
1057
|
-
assert.dom("[data-test-explain-refusal]").includesText("a policy document", "the realm's refusal of the draft is shown in place of an answer");
|
|
1058
|
-
assert.dom("[data-test-explanation]").doesNotExist();
|
|
1059
|
-
await fillIn("[data-test-explain-draft]", "{ \"rules\": ");
|
|
1060
|
-
await submitAndWait("[data-test-explain-refusal]");
|
|
1061
|
-
assert.dom("[data-test-explain-refusal]").includesText("The draft isn't valid JSON", "a draft that does not parse is never sent");
|
|
1062
|
-
await click("[data-test-explain-use-draft]");
|
|
1063
|
-
await submitAndWait("[data-test-explanation]");
|
|
1064
|
-
assert.dom("[data-test-explanation-decision]").hasText("denied", "and without the draft, the policy in force answers as before");
|
|
1065
|
-
assert.dom("[data-test-explanation-draft]").doesNotExist();
|
|
1066
|
-
});
|
|
1067
|
-
(0, import_qunit.test)("the policy says what it composes into a search, and how far behind the index is", async function(assert) {
|
|
1068
|
-
await renderAskedPolicy();
|
|
1069
|
-
await chooseMode("search");
|
|
1070
|
-
assert.dom("[data-test-explain-realm]").hasValue(testRealmURL, "a search runs in this card's realm unless another is named");
|
|
1071
|
-
assert.dom("[data-test-explain-target]").doesNotExist();
|
|
1072
|
-
await fillIn("[data-test-explain-actor]", TEACHER);
|
|
1073
|
-
await fillIn("[data-test-explain-operation]", "listMine");
|
|
1074
|
-
await fillIn("[data-test-explain-type-module]", CLASSROOM.module);
|
|
1075
|
-
await fillIn("[data-test-explain-type-name]", CLASSROOM.name);
|
|
1076
|
-
await submitAndWait("[data-test-explanation]");
|
|
1077
|
-
assert.dom("[data-test-explanation-decision]").hasText("allowed");
|
|
1078
|
-
assert.dom("[data-test-explanation-reason]").hasText("Grants in this policy let this search return the cards their conditions match, and no others.");
|
|
1079
|
-
assert.dom("[data-test-explanation-search-operation]").hasText("listMine");
|
|
1080
|
-
assert.dom("[data-test-explanation-search-types]").hasText("Classroom");
|
|
1081
|
-
assert.dom("[data-test-explanation-search-fragment]").includesText(TEACHER, "what the policy composes names the teacher");
|
|
1082
|
-
assert.dom("[data-test-explanation-search-index]").hasText("Up to date.", "the index has every write");
|
|
1083
|
-
assert.dom("[data-test-explanation-grant]").exists({ count: 1 }, "the one grant on the named query").hasAttribute("data-test-explanation-grant-filterable", "true");
|
|
1084
|
-
assert.dom("[data-test-explanation-grant-label]").hasText("narrows the search");
|
|
1085
|
-
assert.dom("[data-test-explanation-grant] .tier").doesNotExist("a search runs the condition over the index, so no copy of one card is named");
|
|
1086
|
-
await fillIn("[data-test-explain-operation]", "listTheirs");
|
|
1087
|
-
await submitAndWait("[data-test-explanation]");
|
|
1088
|
-
assert.dom("[data-test-explanation-reason]").includesText("This search couldn't be resolved", "a search the type does not declare is said to be one");
|
|
1089
|
-
await fillIn("[data-test-explain-operation]", "query");
|
|
1090
|
-
assert.dom("[data-test-explain-type-module]").doesNotExist("an ad-hoc search names its types in its filter");
|
|
1091
|
-
await fillIn("[data-test-explain-search-filter]", JSON.stringify({ "item.on": CLASSROOM }));
|
|
1092
|
-
await submitAndWait("[data-test-explanation]");
|
|
1093
|
-
assert.dom("[data-test-explanation-decision]").hasText("denied");
|
|
1094
|
-
assert.dom("[data-test-explanation-reason]").includesText("No grant in this policy can narrow this search");
|
|
1095
|
-
assert.dom("[data-test-explanation-search-operation]").hasText("query");
|
|
1096
|
-
assert.dom("[data-test-explanation-search-no-fragment]").exists("the policy composes nothing");
|
|
1097
|
-
assert.dom("[data-test-explanation-grant]").hasAttribute("data-test-explanation-grant-filterable", "false");
|
|
1098
|
-
assert.dom("[data-test-explanation-grant-label]").hasText("a search can't use its condition, so it adds nothing", "the grant whose condition a search cannot use is shown as adding nothing");
|
|
1099
|
-
await click("[data-test-explain-use-draft]");
|
|
1100
|
-
await fillIn("[data-test-explain-draft]", JSON.stringify({ grants: [] }));
|
|
1101
|
-
await submitAndWait("[data-test-explain-refusal]");
|
|
1102
|
-
assert.dom("[data-test-explain-refusal]").includesText("a policy document", "a search asked of a draft the realm refuses shows the refusal");
|
|
1103
|
-
await fillIn("[data-test-explain-draft]", draftRules([{
|
|
1104
|
-
operation: "query",
|
|
1105
|
-
where: teachesPredicate
|
|
1106
|
-
}]));
|
|
1107
|
-
await submitAndWait("[data-test-explanation]");
|
|
1108
|
-
assert.dom("[data-test-explanation-decision]").hasText("allowed", "a draft whose grant a search can use admits it");
|
|
1109
|
-
assert.dom("[data-test-explanation-search-fragment]").includesText(TEACHER, "and composes a fragment naming the teacher");
|
|
1110
|
-
assert.dom("[data-test-explanation-grant]").hasAttribute("data-test-explanation-grant-filterable", "true");
|
|
1111
|
-
assert.dom("[data-test-explanation-draft-clean]").exists();
|
|
1112
|
-
});
|
|
1113
|
-
(0, import_qunit.test)("the policy explains a page of the cards in a realm at a time", async function(assert) {
|
|
1114
|
-
await renderAskedPolicy();
|
|
1115
|
-
await chooseMode("listing");
|
|
1116
|
-
await fillIn("[data-test-explain-actor]", TEACHER);
|
|
1117
|
-
await fillIn("[data-test-explain-operation]", "read");
|
|
1118
|
-
await fillIn("[data-test-explain-type-module]", CLASSROOM.module);
|
|
1119
|
-
await fillIn("[data-test-explain-type-name]", CLASSROOM.name);
|
|
1120
|
-
await submitAndWait("[data-test-explanation-listing]");
|
|
1121
|
-
let listed = () => [...document.querySelectorAll("[data-test-explanation-listed]")].map((el) => [el.getAttribute("data-test-explanation-listed"), el.querySelector("[data-test-explanation-listed-decision]")?.textContent?.trim()]);
|
|
1122
|
-
assert.dom("[data-test-explanation-listing-page]").hasText("Cards 1 to 10 of 11");
|
|
1123
|
-
assert.deepEqual(listed(), ROOMS.slice(0, 10).map((room, i) => [`${testRealmURL}classrooms/${room}`, i < 3 ? "allowed" : "denied"]), "each card on the page is explained for the teacher");
|
|
1124
|
-
assert.dom("[data-test-explanation-listing-previous]").isDisabled();
|
|
1125
|
-
assert.dom("[data-test-explanation-listing-next]").isEnabled();
|
|
1126
|
-
await fillIn("[data-test-explain-actor]", COLLEAGUE);
|
|
1127
|
-
await click("[data-test-explanation-listing-next]");
|
|
1128
|
-
await waitUntil(() => document.querySelector("[data-test-explanation-listing-page]")?.textContent?.trim() === "Cards 11 to 11 of 11", { timeout: 1e4 });
|
|
1129
|
-
assert.deepEqual(listed(), [[`${testRealmURL}classrooms/room-211`, "denied"]]);
|
|
1130
|
-
assert.dom("[data-test-explanation-listed] [data-test-explanation-actor]").hasText(TEACHER, "the next page answers for the teacher it was asked for");
|
|
1131
|
-
assert.dom("[data-test-explanation-listing-previous]").isEnabled();
|
|
1132
|
-
assert.dom("[data-test-explanation-listing-next]").isDisabled();
|
|
1133
|
-
await click("[data-test-explain-use-draft]");
|
|
1134
|
-
await fillIn("[data-test-explain-draft]", draftRules([{ operation: "read" }]));
|
|
1135
|
-
await submitAndWait("[data-test-explanation-listing]");
|
|
1136
|
-
assert.dom("[data-test-explanation-listing-page]").hasText("Cards 1 to 10 of 11", "a new question starts at the first page");
|
|
1137
|
-
assert.deepEqual(listed().map(([, decision]) => decision), Array(10).fill("allowed"), "the draft lets the teacher read every classroom");
|
|
1138
|
-
assert.dom("[data-test-explanation-draft-clean]").exists();
|
|
1139
|
-
});
|
|
1140
|
-
});
|
|
1141
|
-
//#endregion
|