@cardstack/boxel-cli 0.12.0-unstable.12 → 0.12.0-unstable.14
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-test-harness/assets/{ai-module-creation-test-D9FuBmi8.js → ai-module-creation-test-BuOdKEfn.js} +1 -1
- package/bundled-test-harness/assets/{app-B6ALqYQD.js → app-DFQ4JqlP.js} +2 -2
- package/bundled-test-harness/assets/{binary-upload-dedupe-test-eI1yGxdL.js → binary-upload-dedupe-test-jbrJQUz0.js} +1 -1
- package/bundled-test-harness/assets/{can-invoke-test-5enpsRYF.js → can-invoke-test-DoWzbZ8k.js} +1 -1
- package/bundled-test-harness/assets/{card-chooser-paging-test-CdtsXIpu.js → card-chooser-paging-test-VRmsX6sY.js} +1 -1
- package/bundled-test-harness/assets/{card-chooser-test-CpUK3_Su.js → card-chooser-test-CgrV_vWi.js} +1 -1
- package/bundled-test-harness/assets/{card-def-field-def-relationships-test-Z1O-t73y.js → card-def-field-def-relationships-test-BHQoFm4_.js} +1 -1
- package/bundled-test-harness/assets/{card-delete-test-DI16JAzu.js → card-delete-test-DCmoRd03.js} +1 -1
- package/bundled-test-harness/assets/{codeblocks-test-DEaQeMcn.js → codeblocks-test-DQU6dnQH.js} +1 -1
- package/bundled-test-harness/assets/{compaction-test-DliwzHTd.js → compaction-test-B7JuwjQ7.js} +1 -1
- package/bundled-test-harness/assets/{container-BHHKErdI.js → container-CwRfjGxi.js} +1 -1
- package/bundled-test-harness/assets/{create-listing-modal-test-BZiD6UL9.js → create-listing-modal-test-CxkuYwnv.js} +1 -1
- package/bundled-test-harness/assets/{debug-message-test-D7VEbny3.js → debug-message-test-CyrcsddQ.js} +1 -1
- package/bundled-test-harness/assets/{fallback-banner-live-delete-test-DwXohU1S.js → fallback-banner-live-delete-test-Bxxt9EBl.js} +1 -1
- package/bundled-test-harness/assets/{fallback-banner-test-jEmNTOeh.js → fallback-banner-test-BzmDOq0F.js} +1 -1
- package/bundled-test-harness/assets/{fallback-models-test-BfgkQJ8l.js → fallback-models-test-mZvUg3zI.js} +1 -1
- package/bundled-test-harness/assets/{file-attachment-test-CaX44AfG.js → file-attachment-test-ybs1HRMC.js} +1 -1
- package/bundled-test-harness/assets/{general-test-zz1QVTIv.js → general-test-jB4EQTh8.js} +1 -1
- package/bundled-test-harness/assets/{main-CYiHxOxo.js → main-uvgWNg1U.js} +1 -1
- package/bundled-test-harness/assets/{model-cost-tier-test-DcEeQJwF.js → model-cost-tier-test-BPCl0EeO.js} +1 -1
- package/bundled-test-harness/assets/{operator-mode-card-chooser-test-DYSf_9jJ.js → operator-mode-card-chooser-test-D8RfBsEc.js} +1 -1
- package/bundled-test-harness/assets/{operator-mode-links-test-BA3gjmzY.js → operator-mode-links-test-DmpvnpHI.js} +1 -1
- package/bundled-test-harness/assets/{operator-mode-test-C6iSqlfM.js → operator-mode-test-BeCWE8qH.js} +1 -1
- package/bundled-test-harness/assets/{operator-mode-ui-test-BFGw2suP.js → operator-mode-ui-test-D0k0pr1Z.js} +1 -1
- package/bundled-test-harness/assets/{overlay-menu-items-test-Ch351wNL.js → overlay-menu-items-test-l4-oOOi5.js} +1 -1
- package/bundled-test-harness/assets/{panel-B8BaMllL.js → panel-8nNZbvzg.js} +16 -4
- package/bundled-test-harness/assets/{past-sessions-test-DoVlENnJ.js → past-sessions-test-DrJ_h58w.js} +1 -1
- package/bundled-test-harness/assets/{permission-checking-realm-test-BrBeo81O.js → permission-checking-realm-test-CL_nySH1.js} +1 -1
- package/bundled-test-harness/assets/{quick-look-test-InFXyTqv.js → quick-look-test-DMfAGvgd.js} +1 -1
- package/bundled-test-harness/assets/{realm-api-keys-test-Bgg-gi56.js → realm-api-keys-test-DVkuepc8.js} +1 -1
- package/bundled-test-harness/assets/{realm-config-policy-standing-test-BIEwUQYA.js → realm-config-policy-standing-test-DXS8kYVC.js} +1 -1
- package/bundled-test-harness/assets/{realm-config-routing-rule-edit-test-CDj8rdvZ.js → realm-config-routing-rule-edit-test-CPTifvXx.js} +1 -1
- package/bundled-test-harness/assets/{realm-config-settings-test-Csi-H8bJ.js → realm-config-settings-test-Civ3ZVxT.js} +1 -1
- package/bundled-test-harness/assets/{reasoning-test-MNcXjMV3.js → reasoning-test-DYSQdtDZ.js} +1 -1
- package/bundled-test-harness/assets/{room-message-test-DxMyOu8L.js → room-message-test-CSbclniG.js} +1 -1
- package/bundled-test-harness/assets/{run-realm-code-test-DTXPkVu_.js → run-realm-code-test-B9KJIaYx.js} +81 -0
- package/bundled-test-harness/assets/{scrolling-test-6-Soq39G.js → scrolling-test-nDHEhgzp.js} +2 -2
- package/bundled-test-harness/assets/{sending-test-DXOw4MlE.js → sending-test-CjrOIeGV.js} +1 -1
- package/bundled-test-harness/assets/{skills-test-BiUE1x5l.js → skills-test-Be4crUyO.js} +1 -1
- package/bundled-test-harness/assets/{store-test-Cbf2xZ40.js → store-test-BCyLVXZY.js} +1 -1
- package/bundled-test-harness/assets/{tests-Blos5s0A.js → tests-DbU4zMsp.js} +43 -43
- package/bundled-test-harness/assets/{text-input-validator-test-BxG8Dc2i.js → text-input-validator-test-DZuVdEKj.js} +1 -1
- package/bundled-test-harness/assets/{to-device-streaming-test-CGuKaubC.js → to-device-streaming-test-C3i5WmnX.js} +1 -1
- package/bundled-test-harness/assets/{token-usage-test-DJJmXyD8.js → token-usage-test-1AWgVaXO.js} +1 -1
- package/bundled-test-harness/assets/{tools-test-DxDvBhPf.js → tools-test-BSmxEyfO.js} +1 -1
- package/bundled-test-harness/assets/{turn-settling-test-Co2Dmnzm.js → turn-settling-test-S3ROiZu9.js} +1 -1
- package/bundled-test-harness/index.html +5 -5
- package/bundled-test-harness/tests/index.html +5 -5
- package/bundled-types/host-app/lib/secure-sign-in.ts +5 -3
- package/bundled-types/host-app/services/matrix-service.ts +3 -2
- package/bundled-types/host-app/services/tool-service.ts +36 -5
- package/dist/index.js +290 -290
- package/package.json +1 -1
- package/src/commands/keys/approve.ts +2 -1
- package/src/commands/keys/index.ts +48 -3
- package/src/commands/keys/manage.ts +257 -21
- package/src/lib/key-bindings.ts +2 -1
- package/src/lib/user-keys.ts +174 -4
|
@@ -8,7 +8,7 @@ import { H as templateFactory } from "./index-DaCZcoCY-CgzbilMy.js";
|
|
|
8
8
|
import "./component-BJO47HTh.js";
|
|
9
9
|
import { t as Component } from "./dist-CkA1rgqO.js";
|
|
10
10
|
import "./template-factory-ds9s0u8l.js";
|
|
11
|
-
import { t as OperatorModeContainer } from "./container-
|
|
11
|
+
import { t as OperatorModeContainer } from "./container-CwRfjGxi.js";
|
|
12
12
|
import { d as click, i as findAll, o as waitFor } from "./dist-BOAdzfkP.js";
|
|
13
13
|
import { t as require_qunit } from "./qunit-C-Foo4Nd.js";
|
|
14
14
|
import { F as setupLocalIndexing, M as setupCardLogs, P as setupIntegrationTestRealm, lt as setupRenderingTest, ot as setupOperatorModeStateCleanup, t as setupMockMatrix } from "./mock-matrix-DdU0AA7E.js";
|
|
@@ -49,10 +49,10 @@ import { r as modifier, t as ClassBasedModifier } from "./dist-nMt-N14r.js";
|
|
|
49
49
|
import { n as isPresent, r as isBlank$1 } from "./is-equal-CgIVjIN-.js";
|
|
50
50
|
import { a as allSettled, i as all, r as timeout } from "./dist-DEVZvbin.js";
|
|
51
51
|
import { t as buildWaiter } from "./dist-CSQ-y1Ft.js";
|
|
52
|
-
import { C as tool_service_exports, b as AiAssistantChatInput, c as ai_assist_icon_2x_default, f as AiAssistantConversation, l as AiAssistantSkillMenu, p as AiAssistantMessage, u as PillMenu, v as FocusPill, w as auto_attached_card_exports, x as AiAssistantAttachmentPicker, y as AiAssistantComposerCap } from "./panel-
|
|
52
|
+
import { C as tool_service_exports, b as AiAssistantChatInput, c as ai_assist_icon_2x_default, f as AiAssistantConversation, l as AiAssistantSkillMenu, p as AiAssistantMessage, u as PillMenu, v as FocusPill, w as auto_attached_card_exports, x as AiAssistantAttachmentPicker, y as AiAssistantComposerCap } from "./panel-8nNZbvzg.js";
|
|
53
53
|
import { n as getCardCollection, t as card_collection_exports } from "./card-collection-DDAYafzH.js";
|
|
54
54
|
import { n as getCard, t as card_resource_exports } from "./card-resource-C8T4_KbZ.js";
|
|
55
|
-
import { _ as module_contents_exports, a as CardChooserModal, b as card_type_exports, c as run_while_active_exports, d as id_from_card_or_url_exports, f as search_sheet_state_exports, g as moduleContentsResource, h as stack_backgrounds_exports, i as SearchSheetModes, l as publish_progress_exports, m as url_bar_exports, n as HostModeContent, o as stack_item_focus_exports, p as card_type_service_exports, r as SearchSheet, s as schema_editor_exports, t as OperatorModeContainer, u as idFromCardOrURL, v as inheritance_chain_exports, y as directory_exports } from "./container-
|
|
55
|
+
import { _ as module_contents_exports, a as CardChooserModal, b as card_type_exports, c as run_while_active_exports, d as id_from_card_or_url_exports, f as search_sheet_state_exports, g as moduleContentsResource, h as stack_backgrounds_exports, i as SearchSheetModes, l as publish_progress_exports, m as url_bar_exports, n as HostModeContent, o as stack_item_focus_exports, p as card_type_service_exports, r as SearchSheet, s as schema_editor_exports, t as OperatorModeContainer, u as idFromCardOrURL, v as inheritance_chain_exports, y as directory_exports } from "./container-CwRfjGxi.js";
|
|
56
56
|
import { n as element_tracker_exports } from "./element-tracker-CT_tRvjz.js";
|
|
57
57
|
import { n as file_tree_from_index_exports } from "./file-tree-from-index-BkT4A0rs.js";
|
|
58
58
|
import { a as normalized_dir_path_exports, c as isReady, o as maybe_exports, r as operator_mode_state_service_exports, s as file_exports } from "./operator-mode-state-service-CcsgdTzR.js";
|
|
@@ -6,7 +6,7 @@ import { H as templateFactory } from "./index-DaCZcoCY-CgzbilMy.js";
|
|
|
6
6
|
import "./component-BJO47HTh.js";
|
|
7
7
|
import { t as Component } from "./dist-CkA1rgqO.js";
|
|
8
8
|
import "./template-factory-ds9s0u8l.js";
|
|
9
|
-
import { t as OperatorModeContainer } from "./container-
|
|
9
|
+
import { t as OperatorModeContainer } from "./container-CwRfjGxi.js";
|
|
10
10
|
import { T as settled, d as click, o as waitFor, s as fillIn } from "./dist-BOAdzfkP.js";
|
|
11
11
|
import { t as require_qunit } from "./qunit-C-Foo4Nd.js";
|
|
12
12
|
import { Ct as getTestRealmRegistry, D as realmConfigCardJSON, F as setupLocalIndexing, I as setupOnSave, M as setupCardLogs, P as setupIntegrationTestRealm, lt as setupRenderingTest, ot as setupOperatorModeStateCleanup, t as setupMockMatrix } from "./mock-matrix-DdU0AA7E.js";
|
package/bundled-test-harness/assets/{can-invoke-test-5enpsRYF.js → can-invoke-test-DoWzbZ8k.js}
RENAMED
|
@@ -8,7 +8,7 @@ import "./component-BJO47HTh.js";
|
|
|
8
8
|
import { t as Component } from "./dist-CkA1rgqO.js";
|
|
9
9
|
import "./template-factory-ds9s0u8l.js";
|
|
10
10
|
import { t as templateOnly } from "./template-only-6nVzLWF-.js";
|
|
11
|
-
import { t as OperatorModeContainer } from "./container-
|
|
11
|
+
import { t as OperatorModeContainer } from "./container-CwRfjGxi.js";
|
|
12
12
|
import { M as waitUntil, T as settled, h as render, o as waitFor } from "./dist-BOAdzfkP.js";
|
|
13
13
|
import { t as require_qunit } from "./qunit-C-Foo4Nd.js";
|
|
14
14
|
import { D as realmConfigCardJSON, F as setupLocalIndexing, P as setupIntegrationTestRealm, a as SYSTEM_CARD_FIXTURE_CONTENTS, lt as setupRenderingTest, ot as setupOperatorModeStateCleanup, t as setupMockMatrix } from "./mock-matrix-DdU0AA7E.js";
|
|
@@ -8,7 +8,7 @@ import { H as templateFactory } from "./index-DaCZcoCY-CgzbilMy.js";
|
|
|
8
8
|
import "./component-BJO47HTh.js";
|
|
9
9
|
import { t as Component } from "./dist-CkA1rgqO.js";
|
|
10
10
|
import "./template-factory-ds9s0u8l.js";
|
|
11
|
-
import { t as OperatorModeContainer } from "./container-
|
|
11
|
+
import { t as OperatorModeContainer } from "./container-CwRfjGxi.js";
|
|
12
12
|
import { M as waitUntil, T as settled, d as click, o as waitFor, s as fillIn } from "./dist-BOAdzfkP.js";
|
|
13
13
|
import { t as require_qunit } from "./qunit-C-Foo4Nd.js";
|
|
14
14
|
import { D as realmConfigCardJSON, F as setupLocalIndexing, P as setupIntegrationTestRealm, lt as setupRenderingTest, ot as setupOperatorModeStateCleanup, t as setupMockMatrix } from "./mock-matrix-DdU0AA7E.js";
|
package/bundled-test-harness/assets/{card-chooser-test-CpUK3_Su.js → card-chooser-test-CgrV_vWi.js}
RENAMED
|
@@ -7,7 +7,7 @@ import { H as templateFactory } from "./index-DaCZcoCY-CgzbilMy.js";
|
|
|
7
7
|
import "./component-BJO47HTh.js";
|
|
8
8
|
import { t as Component } from "./dist-CkA1rgqO.js";
|
|
9
9
|
import "./template-factory-ds9s0u8l.js";
|
|
10
|
-
import { t as OperatorModeContainer } from "./container-
|
|
10
|
+
import { t as OperatorModeContainer } from "./container-CwRfjGxi.js";
|
|
11
11
|
import { c as triggerKeyEvent, d as click, f as focus, o as waitFor, r as typeIn, s as fillIn, u as doubleClick } from "./dist-BOAdzfkP.js";
|
|
12
12
|
import { t as require_qunit } from "./qunit-C-Foo4Nd.js";
|
|
13
13
|
import { D as realmConfigCardJSON, F as setupLocalIndexing, P as setupIntegrationTestRealm, lt as setupRenderingTest, ot as setupOperatorModeStateCleanup, t as setupMockMatrix } from "./mock-matrix-DdU0AA7E.js";
|
|
@@ -7,7 +7,7 @@ import { H as templateFactory } from "./index-DaCZcoCY-CgzbilMy.js";
|
|
|
7
7
|
import "./component-BJO47HTh.js";
|
|
8
8
|
import "./template-factory-ds9s0u8l.js";
|
|
9
9
|
import { t as templateOnly } from "./template-only-6nVzLWF-.js";
|
|
10
|
-
import { t as OperatorModeContainer } from "./container-
|
|
10
|
+
import { t as OperatorModeContainer } from "./container-CwRfjGxi.js";
|
|
11
11
|
import { d as click, l as triggerEvent, o as waitFor } from "./dist-BOAdzfkP.js";
|
|
12
12
|
import { t as require_qunit } from "./qunit-C-Foo4Nd.js";
|
|
13
13
|
import { D as realmConfigCardJSON, Et as percySnapshot, F as setupLocalIndexing, M as setupCardLogs, P as setupIntegrationTestRealm, lt as setupRenderingTest, nt as provide, ot as setupOperatorModeStateCleanup, t as setupMockMatrix } from "./mock-matrix-DdU0AA7E.js";
|
package/bundled-test-harness/assets/{card-delete-test-DI16JAzu.js → card-delete-test-DCmoRd03.js}
RENAMED
|
@@ -7,7 +7,7 @@ import { H as templateFactory } from "./index-DaCZcoCY-CgzbilMy.js";
|
|
|
7
7
|
import "./component-BJO47HTh.js";
|
|
8
8
|
import { t as Component } from "./dist-CkA1rgqO.js";
|
|
9
9
|
import "./template-factory-ds9s0u8l.js";
|
|
10
|
-
import { t as OperatorModeContainer } from "./container-
|
|
10
|
+
import { t as OperatorModeContainer } from "./container-CwRfjGxi.js";
|
|
11
11
|
import { M as waitUntil, d as click, l as triggerEvent, o as waitFor } from "./dist-BOAdzfkP.js";
|
|
12
12
|
import { t as require_qunit } from "./qunit-C-Foo4Nd.js";
|
|
13
13
|
import { D as realmConfigCardJSON, F as setupLocalIndexing, H as testModuleRealm, I as setupOnSave, M as setupCardLogs, P as setupIntegrationTestRealm, lt as setupRenderingTest, ot as setupOperatorModeStateCleanup, t as setupMockMatrix } from "./mock-matrix-DdU0AA7E.js";
|
package/bundled-test-harness/assets/{codeblocks-test-DEaQeMcn.js → codeblocks-test-DQU6dnQH.js}
RENAMED
|
@@ -6,7 +6,7 @@ import { H as templateFactory } from "./index-DaCZcoCY-CgzbilMy.js";
|
|
|
6
6
|
import "./component-BJO47HTh.js";
|
|
7
7
|
import { t as Component } from "./dist-CkA1rgqO.js";
|
|
8
8
|
import "./template-factory-ds9s0u8l.js";
|
|
9
|
-
import { t as OperatorModeContainer } from "./container-
|
|
9
|
+
import { t as OperatorModeContainer } from "./container-CwRfjGxi.js";
|
|
10
10
|
import { M as waitUntil, T as settled, d as click, o as waitFor } from "./dist-BOAdzfkP.js";
|
|
11
11
|
import { t as require_qunit } from "./qunit-C-Foo4Nd.js";
|
|
12
12
|
import { D as realmConfigCardJSON, Et as percySnapshot, F as setupLocalIndexing, I as setupOnSave, M as setupCardLogs, P as setupIntegrationTestRealm, S as getMonacoContent, lt as setupRenderingTest, ot as setupOperatorModeStateCleanup, t as setupMockMatrix } from "./mock-matrix-DdU0AA7E.js";
|
package/bundled-test-harness/assets/{compaction-test-DliwzHTd.js → compaction-test-B7JuwjQ7.js}
RENAMED
|
@@ -5,7 +5,7 @@ import { H as templateFactory } from "./index-DaCZcoCY-CgzbilMy.js";
|
|
|
5
5
|
import "./component-BJO47HTh.js";
|
|
6
6
|
import { t as Component } from "./dist-CkA1rgqO.js";
|
|
7
7
|
import "./template-factory-ds9s0u8l.js";
|
|
8
|
-
import { t as OperatorModeContainer } from "./container-
|
|
8
|
+
import { t as OperatorModeContainer } from "./container-CwRfjGxi.js";
|
|
9
9
|
import { T as settled, d as click, o as waitFor } from "./dist-BOAdzfkP.js";
|
|
10
10
|
import { t as require_qunit } from "./qunit-C-Foo4Nd.js";
|
|
11
11
|
import { D as realmConfigCardJSON, F as setupLocalIndexing, I as setupOnSave, L as setupRealmCacheTeardown, M as setupCardLogs, P as setupIntegrationTestRealm, Z as withCachedRealmSetup, lt as setupRenderingTest, ot as setupOperatorModeStateCleanup, t as setupMockMatrix } from "./mock-matrix-DdU0AA7E.js";
|
|
@@ -38,7 +38,7 @@ import { n as IconComponent$52, t as IconComponent$51 } from "./copy-CQfP-SsZ.js
|
|
|
38
38
|
import { n as VelcroModifier } from "./dist-CAIttNZm.js";
|
|
39
39
|
import { i as all, r as timeout } from "./dist-DEVZvbin.js";
|
|
40
40
|
import { t as buildWaiter } from "./dist-CSQ-y1Ft.js";
|
|
41
|
-
import { S as IconComponent$54, _ as motionEnabled, a as SegmentedControl, d as consume_context_default, g as EASE_IN, h as EASE, i as IconComponent$53, m as DURATION, o as component, s as ClickOutsideModifier, t as AiAssistantPanel } from "./panel-
|
|
41
|
+
import { S as IconComponent$54, _ as motionEnabled, a as SegmentedControl, d as consume_context_default, g as EASE_IN, h as EASE, i as IconComponent$53, m as DURATION, o as component, s as ClickOutsideModifier, t as AiAssistantPanel } from "./panel-8nNZbvzg.js";
|
|
42
42
|
import { n as getCardCollection } from "./card-collection-DDAYafzH.js";
|
|
43
43
|
import { n as getCard } from "./card-resource-C8T4_KbZ.js";
|
|
44
44
|
import { t as ElementTracker } from "./element-tracker-CT_tRvjz.js";
|
|
@@ -6,7 +6,7 @@ import { H as templateFactory } from "./index-DaCZcoCY-CgzbilMy.js";
|
|
|
6
6
|
import "./component-BJO47HTh.js";
|
|
7
7
|
import { t as Component } from "./dist-CkA1rgqO.js";
|
|
8
8
|
import "./template-factory-ds9s0u8l.js";
|
|
9
|
-
import { t as OperatorModeContainer } from "./container-
|
|
9
|
+
import { t as OperatorModeContainer } from "./container-CwRfjGxi.js";
|
|
10
10
|
import { d as click, o as waitFor } from "./dist-BOAdzfkP.js";
|
|
11
11
|
import { t as require_qunit } from "./qunit-C-Foo4Nd.js";
|
|
12
12
|
import "./mock-matrix-DdU0AA7E.js";
|
|
@@ -5,7 +5,7 @@ import { H as templateFactory } from "./index-DaCZcoCY-CgzbilMy.js";
|
|
|
5
5
|
import "./component-BJO47HTh.js";
|
|
6
6
|
import { t as Component } from "./dist-CkA1rgqO.js";
|
|
7
7
|
import "./template-factory-ds9s0u8l.js";
|
|
8
|
-
import { t as OperatorModeContainer } from "./container-
|
|
8
|
+
import { t as OperatorModeContainer } from "./container-CwRfjGxi.js";
|
|
9
9
|
import { M as waitUntil, d as click, o as waitFor } from "./dist-BOAdzfkP.js";
|
|
10
10
|
import { t as require_qunit } from "./qunit-C-Foo4Nd.js";
|
|
11
11
|
import { D as realmConfigCardJSON, F as setupLocalIndexing, I as setupOnSave, L as setupRealmCacheTeardown, M as setupCardLogs, P as setupIntegrationTestRealm, Z as withCachedRealmSetup, lt as setupRenderingTest, ot as setupOperatorModeStateCleanup, t as setupMockMatrix } from "./mock-matrix-DdU0AA7E.js";
|
|
@@ -6,7 +6,7 @@ import { H as templateFactory } from "./index-DaCZcoCY-CgzbilMy.js";
|
|
|
6
6
|
import "./component-BJO47HTh.js";
|
|
7
7
|
import { t as Component } from "./dist-CkA1rgqO.js";
|
|
8
8
|
import "./template-factory-ds9s0u8l.js";
|
|
9
|
-
import { t as OperatorModeContainer } from "./container-
|
|
9
|
+
import { t as OperatorModeContainer } from "./container-CwRfjGxi.js";
|
|
10
10
|
import { T as settled, o as waitFor } from "./dist-BOAdzfkP.js";
|
|
11
11
|
import { t as require_qunit } from "./qunit-C-Foo4Nd.js";
|
|
12
12
|
import { F as setupLocalIndexing, I as setupOnSave, L as setupRealmCacheTeardown, M as setupCardLogs, P as setupIntegrationTestRealm, Z as withCachedRealmSetup, lt as setupRenderingTest, ot as setupOperatorModeStateCleanup, t as setupMockMatrix } from "./mock-matrix-DdU0AA7E.js";
|
|
@@ -6,7 +6,7 @@ import { H as templateFactory } from "./index-DaCZcoCY-CgzbilMy.js";
|
|
|
6
6
|
import "./component-BJO47HTh.js";
|
|
7
7
|
import { t as Component } from "./dist-CkA1rgqO.js";
|
|
8
8
|
import "./template-factory-ds9s0u8l.js";
|
|
9
|
-
import { t as OperatorModeContainer } from "./container-
|
|
9
|
+
import { t as OperatorModeContainer } from "./container-CwRfjGxi.js";
|
|
10
10
|
import { T as settled, d as click, o as waitFor } from "./dist-BOAdzfkP.js";
|
|
11
11
|
import { t as require_qunit } from "./qunit-C-Foo4Nd.js";
|
|
12
12
|
import { Et as percySnapshot, F as setupLocalIndexing, I as setupOnSave, L as setupRealmCacheTeardown, M as setupCardLogs, P as setupIntegrationTestRealm, Z as withCachedRealmSetup, lt as setupRenderingTest, ot as setupOperatorModeStateCleanup, t as setupMockMatrix } from "./mock-matrix-DdU0AA7E.js";
|
|
@@ -5,7 +5,7 @@ import { H as templateFactory } from "./index-DaCZcoCY-CgzbilMy.js";
|
|
|
5
5
|
import "./component-BJO47HTh.js";
|
|
6
6
|
import { t as Component } from "./dist-CkA1rgqO.js";
|
|
7
7
|
import "./template-factory-ds9s0u8l.js";
|
|
8
|
-
import { t as OperatorModeContainer } from "./container-
|
|
8
|
+
import { t as OperatorModeContainer } from "./container-CwRfjGxi.js";
|
|
9
9
|
import { M as waitUntil, d as click, o as waitFor } from "./dist-BOAdzfkP.js";
|
|
10
10
|
import { t as require_qunit } from "./qunit-C-Foo4Nd.js";
|
|
11
11
|
import { F as setupLocalIndexing, I as setupOnSave, L as setupRealmCacheTeardown, M as setupCardLogs, P as setupIntegrationTestRealm, Z as withCachedRealmSetup, lt as setupRenderingTest, ot as setupOperatorModeStateCleanup, t as setupMockMatrix } from "./mock-matrix-DdU0AA7E.js";
|
|
@@ -6,7 +6,7 @@ import { H as templateFactory } from "./index-DaCZcoCY-CgzbilMy.js";
|
|
|
6
6
|
import "./component-BJO47HTh.js";
|
|
7
7
|
import { t as Component } from "./dist-CkA1rgqO.js";
|
|
8
8
|
import "./template-factory-ds9s0u8l.js";
|
|
9
|
-
import { t as OperatorModeContainer } from "./container-
|
|
9
|
+
import { t as OperatorModeContainer } from "./container-CwRfjGxi.js";
|
|
10
10
|
import { M as waitUntil, T as settled, c as triggerKeyEvent, d as click, f as focus, l as triggerEvent, o as waitFor, s as fillIn } from "./dist-BOAdzfkP.js";
|
|
11
11
|
import { t as require_qunit } from "./qunit-C-Foo4Nd.js";
|
|
12
12
|
import { Ct as getTestRealmRegistry, D as realmConfigCardJSON, F as setupLocalIndexing, I as setupOnSave, L as setupRealmCacheTeardown, M as setupCardLogs, P as setupIntegrationTestRealm, Z as withCachedRealmSetup, lt as setupRenderingTest, ot as setupOperatorModeStateCleanup, t as setupMockMatrix } from "./mock-matrix-DdU0AA7E.js";
|
|
@@ -6,7 +6,7 @@ import { H as templateFactory } from "./index-DaCZcoCY-CgzbilMy.js";
|
|
|
6
6
|
import "./component-BJO47HTh.js";
|
|
7
7
|
import { t as Component } from "./dist-CkA1rgqO.js";
|
|
8
8
|
import "./template-factory-ds9s0u8l.js";
|
|
9
|
-
import { t as OperatorModeContainer } from "./container-
|
|
9
|
+
import { t as OperatorModeContainer } from "./container-CwRfjGxi.js";
|
|
10
10
|
import { M as waitUntil, T as settled, a as find, d as click, l as triggerEvent, o as waitFor, s as fillIn } from "./dist-BOAdzfkP.js";
|
|
11
11
|
import { t as require_qunit } from "./qunit-C-Foo4Nd.js";
|
|
12
12
|
import { D as realmConfigCardJSON, Et as percySnapshot, F as setupLocalIndexing, I as setupOnSave, M as setupCardLogs, P as setupIntegrationTestRealm, R as setupRealmServerEndpoints, S as getMonacoContent, k as setMonacoContent, lt as setupRenderingTest, ot as setupOperatorModeStateCleanup, t as setupMockMatrix } from "./mock-matrix-DdU0AA7E.js";
|
|
@@ -6,7 +6,7 @@ import { H as templateFactory } from "./index-DaCZcoCY-CgzbilMy.js";
|
|
|
6
6
|
import "./component-BJO47HTh.js";
|
|
7
7
|
import { t as Component } from "./dist-CkA1rgqO.js";
|
|
8
8
|
import "./template-factory-ds9s0u8l.js";
|
|
9
|
-
import { t as OperatorModeContainer } from "./container-
|
|
9
|
+
import { t as OperatorModeContainer } from "./container-CwRfjGxi.js";
|
|
10
10
|
import { M as waitUntil, T as settled, d as click, o as waitFor } from "./dist-BOAdzfkP.js";
|
|
11
11
|
import { t as require_qunit } from "./qunit-C-Foo4Nd.js";
|
|
12
12
|
import { F as setupLocalIndexing, I as setupOnSave, L as setupRealmCacheTeardown, M as setupCardLogs, P as setupIntegrationTestRealm, Z as withCachedRealmSetup, a as SYSTEM_CARD_FIXTURE_CONTENTS, lt as setupRenderingTest, ot as setupOperatorModeStateCleanup, t as setupMockMatrix } from "./mock-matrix-DdU0AA7E.js";
|
|
@@ -7,7 +7,7 @@ import { H as templateFactory } from "./index-DaCZcoCY-CgzbilMy.js";
|
|
|
7
7
|
import "./component-BJO47HTh.js";
|
|
8
8
|
import { t as Component } from "./dist-CkA1rgqO.js";
|
|
9
9
|
import "./template-factory-ds9s0u8l.js";
|
|
10
|
-
import { t as OperatorModeContainer } from "./container-
|
|
10
|
+
import { t as OperatorModeContainer } from "./container-CwRfjGxi.js";
|
|
11
11
|
import { M as waitUntil, T as settled, d as click, f as focus, l as triggerEvent, o as waitFor, r as typeIn, s as fillIn } from "./dist-BOAdzfkP.js";
|
|
12
12
|
import { t as require_qunit } from "./qunit-C-Foo4Nd.js";
|
|
13
13
|
import { Et as percySnapshot, H as testModuleRealm, L as setupRealmCacheTeardown } from "./mock-matrix-DdU0AA7E.js";
|
|
@@ -5,7 +5,7 @@ import { H as templateFactory } from "./index-DaCZcoCY-CgzbilMy.js";
|
|
|
5
5
|
import "./component-BJO47HTh.js";
|
|
6
6
|
import { t as Component } from "./dist-CkA1rgqO.js";
|
|
7
7
|
import "./template-factory-ds9s0u8l.js";
|
|
8
|
-
import { t as OperatorModeContainer } from "./container-
|
|
8
|
+
import { t as OperatorModeContainer } from "./container-CwRfjGxi.js";
|
|
9
9
|
import { M as waitUntil, c as triggerKeyEvent, d as click, l as triggerEvent, o as waitFor, s as fillIn, u as doubleClick } from "./dist-BOAdzfkP.js";
|
|
10
10
|
import { t as require_qunit } from "./qunit-C-Foo4Nd.js";
|
|
11
11
|
import "./mock-matrix-DdU0AA7E.js";
|
|
@@ -7,7 +7,7 @@ import { H as templateFactory } from "./index-DaCZcoCY-CgzbilMy.js";
|
|
|
7
7
|
import "./component-BJO47HTh.js";
|
|
8
8
|
import { t as Component } from "./dist-CkA1rgqO.js";
|
|
9
9
|
import "./template-factory-ds9s0u8l.js";
|
|
10
|
-
import { t as OperatorModeContainer } from "./container-
|
|
10
|
+
import { t as OperatorModeContainer } from "./container-CwRfjGxi.js";
|
|
11
11
|
import { M as waitUntil, d as click, o as waitFor, s as fillIn } from "./dist-BOAdzfkP.js";
|
|
12
12
|
import { t as require_qunit } from "./qunit-C-Foo4Nd.js";
|
|
13
13
|
import { Et as percySnapshot, L as setupRealmCacheTeardown, Q as withHeldSave } from "./mock-matrix-DdU0AA7E.js";
|
|
@@ -5,7 +5,7 @@ import { H as templateFactory } from "./index-DaCZcoCY-CgzbilMy.js";
|
|
|
5
5
|
import "./component-BJO47HTh.js";
|
|
6
6
|
import { t as Component } from "./dist-CkA1rgqO.js";
|
|
7
7
|
import "./template-factory-ds9s0u8l.js";
|
|
8
|
-
import { t as OperatorModeContainer } from "./container-
|
|
8
|
+
import { t as OperatorModeContainer } from "./container-CwRfjGxi.js";
|
|
9
9
|
import { s as TypeSummariesResource } from "./mini-6tPNz6-f.js";
|
|
10
10
|
import { M as waitUntil, T as settled, a as find, c as triggerKeyEvent, d as click, l as triggerEvent, o as waitFor, p as blur, r as typeIn, s as fillIn } from "./dist-BOAdzfkP.js";
|
|
11
11
|
import { t as require_qunit } from "./qunit-C-Foo4Nd.js";
|
|
@@ -7,7 +7,7 @@ import { H as templateFactory } from "./index-DaCZcoCY-CgzbilMy.js";
|
|
|
7
7
|
import "./component-BJO47HTh.js";
|
|
8
8
|
import { t as Component } from "./dist-CkA1rgqO.js";
|
|
9
9
|
import "./template-factory-ds9s0u8l.js";
|
|
10
|
-
import { t as OperatorModeContainer } from "./container-
|
|
10
|
+
import { t as OperatorModeContainer } from "./container-CwRfjGxi.js";
|
|
11
11
|
import { M as waitUntil, a as find, d as click, l as triggerEvent, o as waitFor } from "./dist-BOAdzfkP.js";
|
|
12
12
|
import { t as require_qunit } from "./qunit-C-Foo4Nd.js";
|
|
13
13
|
import { D as realmConfigCardJSON, F as setupLocalIndexing, H as testModuleRealm, I as setupOnSave, M as setupCardLogs, P as setupIntegrationTestRealm, lt as setupRenderingTest, ot as setupOperatorModeStateCleanup, t as setupMockMatrix } from "./mock-matrix-DdU0AA7E.js";
|
|
@@ -6665,6 +6665,11 @@ function coerceToSchema(value, schema) {
|
|
|
6665
6665
|
};
|
|
6666
6666
|
}
|
|
6667
6667
|
var SCRIPT_ASK_MAX_MS = 600 * 1e3;
|
|
6668
|
+
function describeWait(ms) {
|
|
6669
|
+
if (ms < 6e4) return `${ms} ms`;
|
|
6670
|
+
let minutes = Math.round(ms / 6e4);
|
|
6671
|
+
return `${minutes} minute${minutes === 1 ? "" : "s"}`;
|
|
6672
|
+
}
|
|
6668
6673
|
var DENIED_BY_USER = "Denied by you";
|
|
6669
6674
|
var ToolService = class extends Service {
|
|
6670
6675
|
static {
|
|
@@ -6699,6 +6704,8 @@ var ToolService = class extends Service {
|
|
|
6699
6704
|
decorateFieldV2(this.prototype, "store", [service]);
|
|
6700
6705
|
}
|
|
6701
6706
|
#store = (initializeDeferredDecorator(this, "store"), void 0);
|
|
6707
|
+
#toolExecuteTimeoutMs = TOOL_EXECUTE_TIMEOUT_MS;
|
|
6708
|
+
#scriptAskMaxMs = SCRIPT_ASK_MAX_MS;
|
|
6702
6709
|
currentlyExecutingToolRequestIds = new TrackedSet();
|
|
6703
6710
|
executingToolRooms = new TrackedMap();
|
|
6704
6711
|
toolProgress = new TrackedMap();
|
|
@@ -6708,12 +6715,17 @@ var ToolService = class extends Service {
|
|
|
6708
6715
|
stoppableTools = new TrackedMap();
|
|
6709
6716
|
liveRunToolIds = new TrackedSet();
|
|
6710
6717
|
scriptAsks = new TrackedMap();
|
|
6718
|
+
__setWaitsForTesting(waits) {
|
|
6719
|
+
if (!isTesting()) throw new Error("__setWaitsForTesting is only for tests");
|
|
6720
|
+
this.#toolExecuteTimeoutMs = waits.toolExecuteTimeoutMs ?? this.#toolExecuteTimeoutMs;
|
|
6721
|
+
this.#scriptAskMaxMs = waits.scriptAskMaxMs ?? this.#scriptAskMaxMs;
|
|
6722
|
+
}
|
|
6711
6723
|
askFromScript(toolRequestId, request) {
|
|
6712
6724
|
return new Promise((resolve, reject) => {
|
|
6713
6725
|
let timer = setTimeout(() => {
|
|
6714
6726
|
this.scriptAsks.delete(toolRequestId);
|
|
6715
|
-
reject(/* @__PURE__ */ new Error(
|
|
6716
|
-
},
|
|
6727
|
+
reject(/* @__PURE__ */ new Error(`No answer came within ${describeWait(this.#scriptAskMaxMs)}`));
|
|
6728
|
+
}, this.#scriptAskMaxMs);
|
|
6717
6729
|
this.scriptAsks.set(toolRequestId, {
|
|
6718
6730
|
request,
|
|
6719
6731
|
answer: (value) => {
|
|
@@ -7148,7 +7160,7 @@ var ToolService = class extends Service {
|
|
|
7148
7160
|
toolToRun.onEdits = (edits) => this.toolEdits.set(requestId, edits);
|
|
7149
7161
|
toolToRun.onFound = (found) => this.toolFound.set(requestId, found);
|
|
7150
7162
|
toolToRun.onAsk = (request) => {
|
|
7151
|
-
extendTimeout(
|
|
7163
|
+
extendTimeout(this.#scriptAskMaxMs);
|
|
7152
7164
|
return this.askFromScript(requestId, request);
|
|
7153
7165
|
};
|
|
7154
7166
|
let stoppable = toolToRun;
|
|
@@ -7184,7 +7196,7 @@ var ToolService = class extends Service {
|
|
|
7184
7196
|
return;
|
|
7185
7197
|
} else throw new Error(`Unrecognized tool: ${command.name}. This tool may have been associated with a previous browser session.`);
|
|
7186
7198
|
};
|
|
7187
|
-
let executeTimeoutMs = command.name === "checkCorrectness" ?
|
|
7199
|
+
let executeTimeoutMs = command.name === "checkCorrectness" ? this.#toolExecuteTimeoutMs + 2 * config.cardRenderTimeout : this.#toolExecuteTimeoutMs;
|
|
7188
7200
|
[resultCard] = yield all([withExtendableTimeout(performTool, executeTimeoutMs, `Tool "${command.name}"`), timeout(DELAY_FOR_APPLYING_UI)]);
|
|
7189
7201
|
didExecute = true;
|
|
7190
7202
|
this.executedToolRequestIds.add(commandRequestId);
|
|
@@ -6,7 +6,7 @@ import { H as templateFactory } from "./index-DaCZcoCY-CgzbilMy.js";
|
|
|
6
6
|
import "./component-BJO47HTh.js";
|
|
7
7
|
import { t as Component } from "./dist-CkA1rgqO.js";
|
|
8
8
|
import "./template-factory-ds9s0u8l.js";
|
|
9
|
-
import { t as OperatorModeContainer } from "./container-
|
|
9
|
+
import { t as OperatorModeContainer } from "./container-CwRfjGxi.js";
|
|
10
10
|
import { M as waitUntil, d as click, o as waitFor } from "./dist-BOAdzfkP.js";
|
|
11
11
|
import { t as require_qunit } from "./qunit-C-Foo4Nd.js";
|
|
12
12
|
import { D as realmConfigCardJSON, F as setupLocalIndexing, I as setupOnSave, M as setupCardLogs, P as setupIntegrationTestRealm, lt as setupRenderingTest, ot as setupOperatorModeStateCleanup, t as setupMockMatrix } from "./mock-matrix-DdU0AA7E.js";
|
|
@@ -7,7 +7,7 @@ import { H as templateFactory } from "./index-DaCZcoCY-CgzbilMy.js";
|
|
|
7
7
|
import "./component-BJO47HTh.js";
|
|
8
8
|
import { t as Component } from "./dist-CkA1rgqO.js";
|
|
9
9
|
import "./template-factory-ds9s0u8l.js";
|
|
10
|
-
import { t as OperatorModeContainer } from "./container-
|
|
10
|
+
import { t as OperatorModeContainer } from "./container-CwRfjGxi.js";
|
|
11
11
|
import { d as click, o as waitFor } from "./dist-BOAdzfkP.js";
|
|
12
12
|
import { t as require_qunit } from "./qunit-C-Foo4Nd.js";
|
|
13
13
|
import { A as settleRealmRenders, D as realmConfigCardJSON, F as setupLocalIndexing, M as setupCardLogs, P as setupIntegrationTestRealm, lt as setupRenderingTest, nt as provide, ot as setupOperatorModeStateCleanup, t as setupMockMatrix } from "./mock-matrix-DdU0AA7E.js";
|
package/bundled-test-harness/assets/{quick-look-test-InFXyTqv.js → quick-look-test-DMfAGvgd.js}
RENAMED
|
@@ -6,7 +6,7 @@ import { H as templateFactory } from "./index-DaCZcoCY-CgzbilMy.js";
|
|
|
6
6
|
import "./component-BJO47HTh.js";
|
|
7
7
|
import { t as Component } from "./dist-CkA1rgqO.js";
|
|
8
8
|
import "./template-factory-ds9s0u8l.js";
|
|
9
|
-
import { t as OperatorModeContainer } from "./container-
|
|
9
|
+
import { t as OperatorModeContainer } from "./container-CwRfjGxi.js";
|
|
10
10
|
import { c as triggerKeyEvent, d as click, o as waitFor, s as fillIn } from "./dist-BOAdzfkP.js";
|
|
11
11
|
import { t as require_qunit } from "./qunit-C-Foo4Nd.js";
|
|
12
12
|
import { D as realmConfigCardJSON, F as setupLocalIndexing, I as setupOnSave, L as setupRealmCacheTeardown, M as setupCardLogs, P as setupIntegrationTestRealm, Z as withCachedRealmSetup, lt as setupRenderingTest, ot as setupOperatorModeStateCleanup, t as setupMockMatrix } from "./mock-matrix-DdU0AA7E.js";
|
|
@@ -6,7 +6,7 @@ import { H as templateFactory } from "./index-DaCZcoCY-CgzbilMy.js";
|
|
|
6
6
|
import "./component-BJO47HTh.js";
|
|
7
7
|
import { t as Component } from "./dist-CkA1rgqO.js";
|
|
8
8
|
import "./template-factory-ds9s0u8l.js";
|
|
9
|
-
import { t as OperatorModeContainer } from "./container-
|
|
9
|
+
import { t as OperatorModeContainer } from "./container-CwRfjGxi.js";
|
|
10
10
|
import { T as settled, o as waitFor } from "./dist-BOAdzfkP.js";
|
|
11
11
|
import { t as require_qunit } from "./qunit-C-Foo4Nd.js";
|
|
12
12
|
import { D as realmConfigCardJSON, F as setupLocalIndexing, P as setupIntegrationTestRealm, St as unregisterRealmServerRoute, lt as setupRenderingTest, ot as setupOperatorModeStateCleanup, t as setupMockMatrix, yt as registerRealmServerRoute } from "./mock-matrix-DdU0AA7E.js";
|
|
@@ -7,7 +7,7 @@ import { H as templateFactory } from "./index-DaCZcoCY-CgzbilMy.js";
|
|
|
7
7
|
import "./component-BJO47HTh.js";
|
|
8
8
|
import { t as Component } from "./dist-CkA1rgqO.js";
|
|
9
9
|
import "./template-factory-ds9s0u8l.js";
|
|
10
|
-
import { t as OperatorModeContainer } from "./container-
|
|
10
|
+
import { t as OperatorModeContainer } from "./container-CwRfjGxi.js";
|
|
11
11
|
import { T as settled, d as click, m as rerender, o as waitFor } from "./dist-BOAdzfkP.js";
|
|
12
12
|
import { n as ISOLATED_RENDER_ELEMENT_ID } from "./render-service-Yg8yeu6n.js";
|
|
13
13
|
import { t as require_qunit } from "./qunit-C-Foo4Nd.js";
|
|
@@ -7,7 +7,7 @@ import { H as templateFactory } from "./index-DaCZcoCY-CgzbilMy.js";
|
|
|
7
7
|
import "./component-BJO47HTh.js";
|
|
8
8
|
import { t as Component } from "./dist-CkA1rgqO.js";
|
|
9
9
|
import "./template-factory-ds9s0u8l.js";
|
|
10
|
-
import { t as OperatorModeContainer } from "./container-
|
|
10
|
+
import { t as OperatorModeContainer } from "./container-CwRfjGxi.js";
|
|
11
11
|
import { T as settled, d as click, o as waitFor, s as fillIn } from "./dist-BOAdzfkP.js";
|
|
12
12
|
import { t as require_qunit } from "./qunit-C-Foo4Nd.js";
|
|
13
13
|
import { F as setupLocalIndexing, P as setupIntegrationTestRealm, lt as setupRenderingTest, nt as provide, ot as setupOperatorModeStateCleanup, t as setupMockMatrix } from "./mock-matrix-DdU0AA7E.js";
|
|
@@ -6,7 +6,7 @@ import { H as templateFactory } from "./index-DaCZcoCY-CgzbilMy.js";
|
|
|
6
6
|
import "./component-BJO47HTh.js";
|
|
7
7
|
import { t as Component } from "./dist-CkA1rgqO.js";
|
|
8
8
|
import "./template-factory-ds9s0u8l.js";
|
|
9
|
-
import { t as OperatorModeContainer } from "./container-
|
|
9
|
+
import { t as OperatorModeContainer } from "./container-CwRfjGxi.js";
|
|
10
10
|
import { M as waitUntil, d as click, l as triggerEvent, o as waitFor, s as fillIn } from "./dist-BOAdzfkP.js";
|
|
11
11
|
import { t as require_qunit } from "./qunit-C-Foo4Nd.js";
|
|
12
12
|
import { F as setupLocalIndexing, P as setupIntegrationTestRealm, lt as setupRenderingTest, ot as setupOperatorModeStateCleanup, t as setupMockMatrix } from "./mock-matrix-DdU0AA7E.js";
|
package/bundled-test-harness/assets/{reasoning-test-MNcXjMV3.js → reasoning-test-DYSQdtDZ.js}
RENAMED
|
@@ -6,7 +6,7 @@ import { H as templateFactory } from "./index-DaCZcoCY-CgzbilMy.js";
|
|
|
6
6
|
import "./component-BJO47HTh.js";
|
|
7
7
|
import { t as Component } from "./dist-CkA1rgqO.js";
|
|
8
8
|
import "./template-factory-ds9s0u8l.js";
|
|
9
|
-
import { t as OperatorModeContainer } from "./container-
|
|
9
|
+
import { t as OperatorModeContainer } from "./container-CwRfjGxi.js";
|
|
10
10
|
import { M as waitUntil, T as settled, d as click, o as waitFor } from "./dist-BOAdzfkP.js";
|
|
11
11
|
import { t as require_qunit } from "./qunit-C-Foo4Nd.js";
|
|
12
12
|
import { D as realmConfigCardJSON, F as setupLocalIndexing, I as setupOnSave, L as setupRealmCacheTeardown, M as setupCardLogs, P as setupIntegrationTestRealm, Z as withCachedRealmSetup, lt as setupRenderingTest, ot as setupOperatorModeStateCleanup, t as setupMockMatrix } from "./mock-matrix-DdU0AA7E.js";
|
package/bundled-test-harness/assets/{room-message-test-DxMyOu8L.js → room-message-test-CSbclniG.js}
RENAMED
|
@@ -9,7 +9,7 @@ import "./component-BJO47HTh.js";
|
|
|
9
9
|
import { t as Component } from "./dist-CkA1rgqO.js";
|
|
10
10
|
import "./template-factory-ds9s0u8l.js";
|
|
11
11
|
import { t as templateOnly } from "./template-only-6nVzLWF-.js";
|
|
12
|
-
import { n as aiBotUserId, r as RoomMessage } from "./panel-
|
|
12
|
+
import { n as aiBotUserId, r as RoomMessage } from "./panel-8nNZbvzg.js";
|
|
13
13
|
import { n as getCardCollection } from "./card-collection-DDAYafzH.js";
|
|
14
14
|
import { n as getCard } from "./card-resource-C8T4_KbZ.js";
|
|
15
15
|
import { r as provide } from "./dist-Ble0L9o7.js";
|
|
@@ -314,6 +314,87 @@ return 'answered';`
|
|
|
314
314
|
assert.false(toolService.scriptAsks.has("stopped-ask-call"), "the picker is withdrawn at once");
|
|
315
315
|
await assert.rejects(run, /stopped|ended/i, "the run ends without an answer");
|
|
316
316
|
});
|
|
317
|
+
(0, import_qunit.test)("a question nobody answers ends the run when its wait runs out", async function(assert) {
|
|
318
|
+
let toolService = getService("tool-service");
|
|
319
|
+
toolService.__setWaitsForTesting({ scriptAskMaxMs: 50 });
|
|
320
|
+
let command = new RunRealmCodeTool(toolService.toolContext);
|
|
321
|
+
askThroughToolService(command, "unanswered-ask-call");
|
|
322
|
+
let run = command.execute({
|
|
323
|
+
realm: testRealmURL,
|
|
324
|
+
roomId: "!room:example.com",
|
|
325
|
+
code: `await realm.ask({ question: 'Which one?', options: [{ label: 'A' }, { label: 'B' }] });
|
|
326
|
+
return 'answered';`
|
|
327
|
+
});
|
|
328
|
+
await assert.rejects(run, /No answer came within 50 ms/, "the run ends without an answer");
|
|
329
|
+
assert.false(toolService.scriptAsks.has("unanswered-ask-call"), "the picker is withdrawn");
|
|
330
|
+
});
|
|
331
|
+
(0, import_qunit.test)("a run waiting on the reader's pick outlasts the tool deadline", async function(assert) {
|
|
332
|
+
let toolService = getService("tool-service");
|
|
333
|
+
let matrixService = getService("matrix-service");
|
|
334
|
+
let deadlineMs = 500;
|
|
335
|
+
toolService.__setWaitsForTesting({ toolExecuteTimeoutMs: deadlineMs });
|
|
336
|
+
let results = [];
|
|
337
|
+
let originalSend = matrixService.sendToolResultEvent;
|
|
338
|
+
let originalUpdate = matrixService.updateSkillsAndToolsIfNeeded;
|
|
339
|
+
let originalExecute = RunRealmCodeTool.prototype.execute;
|
|
340
|
+
RunRealmCodeTool.prototype.execute = async function() {
|
|
341
|
+
await this.onAsk({
|
|
342
|
+
question: "Which one?",
|
|
343
|
+
kind: "options",
|
|
344
|
+
allowOther: false,
|
|
345
|
+
options: [{
|
|
346
|
+
label: "A",
|
|
347
|
+
value: "a"
|
|
348
|
+
}, {
|
|
349
|
+
label: "B",
|
|
350
|
+
value: "b"
|
|
351
|
+
}]
|
|
352
|
+
});
|
|
353
|
+
};
|
|
354
|
+
matrixService.sendToolResultEvent = async (args) => {
|
|
355
|
+
results.push({
|
|
356
|
+
toolCallId: args.toolCallId,
|
|
357
|
+
status: args.status
|
|
358
|
+
});
|
|
359
|
+
};
|
|
360
|
+
matrixService.updateSkillsAndToolsIfNeeded = async () => void 0;
|
|
361
|
+
let running;
|
|
362
|
+
try {
|
|
363
|
+
let call = {
|
|
364
|
+
id: "waiting-call",
|
|
365
|
+
name: "runRealmCode",
|
|
366
|
+
eventId: "$bot",
|
|
367
|
+
message: { roomId: "!room:example.com" },
|
|
368
|
+
codeRef: {
|
|
369
|
+
module: "@cardstack/boxel-host/tools/run-realm-code",
|
|
370
|
+
name: "default"
|
|
371
|
+
},
|
|
372
|
+
arguments: { attributes: {
|
|
373
|
+
realm: testRealmURL,
|
|
374
|
+
code: "ignored"
|
|
375
|
+
} },
|
|
376
|
+
isResolving: false,
|
|
377
|
+
resolve: async () => void 0
|
|
378
|
+
};
|
|
379
|
+
let startedAt = Date.now();
|
|
380
|
+
running = toolService.run.perform(call, { auto: true });
|
|
381
|
+
await waitUntil(() => toolService.scriptAsks.has("waiting-call"), { timeout: 1e4 });
|
|
382
|
+
await new Promise((resolve) => setTimeout(resolve, startedAt + deadlineMs + 300 - Date.now()));
|
|
383
|
+
assert.deepEqual(results, [], "the run is still waiting on the pick");
|
|
384
|
+
toolService.scriptAsks.get("waiting-call").answer("b");
|
|
385
|
+
await running;
|
|
386
|
+
assert.deepEqual(results, [{
|
|
387
|
+
toolCallId: "waiting-call",
|
|
388
|
+
status: "applied"
|
|
389
|
+
}], "the run finishes with its answer instead of timing out");
|
|
390
|
+
} finally {
|
|
391
|
+
toolService.scriptAsks.get("waiting-call")?.cancel();
|
|
392
|
+
await Promise.resolve(running).catch(() => void 0);
|
|
393
|
+
RunRealmCodeTool.prototype.execute = originalExecute;
|
|
394
|
+
matrixService.sendToolResultEvent = originalSend;
|
|
395
|
+
matrixService.updateSkillsAndToolsIfNeeded = originalUpdate;
|
|
396
|
+
}
|
|
397
|
+
});
|
|
317
398
|
(0, import_qunit.test)("the result attaches the files the run saved, then the captures it took", async function(assert) {
|
|
318
399
|
let command = new RunRealmCodeTool(getService("tool-service").toolContext);
|
|
319
400
|
let result = await command.execute({
|
package/bundled-test-harness/assets/{scrolling-test-6-Soq39G.js → scrolling-test-nDHEhgzp.js}
RENAMED
|
@@ -6,8 +6,8 @@ import { H as templateFactory } from "./index-DaCZcoCY-CgzbilMy.js";
|
|
|
6
6
|
import "./component-BJO47HTh.js";
|
|
7
7
|
import { t as Component } from "./dist-CkA1rgqO.js";
|
|
8
8
|
import "./template-factory-ds9s0u8l.js";
|
|
9
|
-
import "./panel-
|
|
10
|
-
import { t as OperatorModeContainer } from "./container-
|
|
9
|
+
import "./panel-8nNZbvzg.js";
|
|
10
|
+
import { t as OperatorModeContainer } from "./container-CwRfjGxi.js";
|
|
11
11
|
import { M as waitUntil, T as settled, d as click, l as triggerEvent, o as waitFor } from "./dist-BOAdzfkP.js";
|
|
12
12
|
import { t as require_qunit } from "./qunit-C-Foo4Nd.js";
|
|
13
13
|
import { D as realmConfigCardJSON, F as setupLocalIndexing, I as setupOnSave, L as setupRealmCacheTeardown, M as setupCardLogs, P as setupIntegrationTestRealm, Z as withCachedRealmSetup, lt as setupRenderingTest, ot as setupOperatorModeStateCleanup, t as setupMockMatrix } from "./mock-matrix-DdU0AA7E.js";
|
|
@@ -9,7 +9,7 @@ import { n as Submodes } from "./submode-switcher-DhQ6G-Pw.js";
|
|
|
9
9
|
import "./component-BJO47HTh.js";
|
|
10
10
|
import { t as Component } from "./dist-CkA1rgqO.js";
|
|
11
11
|
import "./template-factory-ds9s0u8l.js";
|
|
12
|
-
import { t as OperatorModeContainer } from "./container-
|
|
12
|
+
import { t as OperatorModeContainer } from "./container-CwRfjGxi.js";
|
|
13
13
|
import { M as waitUntil, T as settled, d as click, l as triggerEvent, m as rerender, o as waitFor, s as fillIn } from "./dist-BOAdzfkP.js";
|
|
14
14
|
import { t as require_qunit } from "./qunit-C-Foo4Nd.js";
|
|
15
15
|
import { D as realmConfigCardJSON, Et as percySnapshot, F as setupLocalIndexing, I as setupOnSave, L as setupRealmCacheTeardown, M as setupCardLogs, P as setupIntegrationTestRealm, Z as withCachedRealmSetup, lt as setupRenderingTest, ot as setupOperatorModeStateCleanup, t as setupMockMatrix } from "./mock-matrix-DdU0AA7E.js";
|
|
@@ -8,7 +8,7 @@ import { H as templateFactory } from "./index-DaCZcoCY-CgzbilMy.js";
|
|
|
8
8
|
import "./component-BJO47HTh.js";
|
|
9
9
|
import { t as Component } from "./dist-CkA1rgqO.js";
|
|
10
10
|
import "./template-factory-ds9s0u8l.js";
|
|
11
|
-
import { t as OperatorModeContainer } from "./container-
|
|
11
|
+
import { t as OperatorModeContainer } from "./container-CwRfjGxi.js";
|
|
12
12
|
import { o as skillsIndexId } from "./utils-BxV0BKJm.js";
|
|
13
13
|
import { M as waitUntil, T as settled, d as click, o as waitFor, s as fillIn } from "./dist-BOAdzfkP.js";
|
|
14
14
|
import { t as require_qunit } from "./qunit-C-Foo4Nd.js";
|
|
@@ -11,7 +11,7 @@ import { n as tracked, t as cached } from "./tracking-800VJb8b.js";
|
|
|
11
11
|
import "./template-factory-ds9s0u8l.js";
|
|
12
12
|
import { n as getCardCollection } from "./card-collection-DDAYafzH.js";
|
|
13
13
|
import { n as getCard } from "./card-resource-C8T4_KbZ.js";
|
|
14
|
-
import { t as OperatorModeContainer } from "./container-
|
|
14
|
+
import { t as OperatorModeContainer } from "./container-CwRfjGxi.js";
|
|
15
15
|
import { M as waitUntil, T as settled, a as find, d as click, o as waitFor, r as typeIn } from "./dist-BOAdzfkP.js";
|
|
16
16
|
import { t as require_qunit } from "./qunit-C-Foo4Nd.js";
|
|
17
17
|
import { $ as withSavesHeldOpen, F as setupLocalIndexing, I as setupOnSave, L as setupRealmCacheTeardown, M as setupCardLogs, P as setupIntegrationTestRealm, Z as withCachedRealmSetup, et as withSlowSave, lt as setupRenderingTest, ot as setupOperatorModeStateCleanup, t as setupMockMatrix, vt as registerDefaultRoutes, yt as registerRealmServerRoute } from "./mock-matrix-DdU0AA7E.js";
|