@hover-dev/core 0.15.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -55
- package/dist/agentDirectives.d.ts +55 -0
- package/dist/agentDirectives.d.ts.map +1 -0
- package/dist/agentDirectives.js +276 -0
- package/dist/agents/claude.d.ts.map +1 -1
- package/dist/agents/claude.js +28 -3
- package/dist/agents/codex.d.ts.map +1 -1
- package/dist/agents/codex.js +38 -18
- package/dist/agents/gemini.d.ts.map +1 -1
- package/dist/agents/gemini.js +3 -14
- package/dist/agents/invoke.d.ts.map +1 -1
- package/dist/agents/invoke.js +3 -6
- package/dist/agents/qwen.d.ts.map +1 -1
- package/dist/agents/qwen.js +3 -14
- package/dist/agents/registry.d.ts.map +1 -1
- package/dist/agents/registry.js +0 -4
- package/dist/agents/shared.d.ts +28 -0
- package/dist/agents/shared.d.ts.map +1 -0
- package/dist/agents/shared.js +35 -0
- package/dist/agents/types.d.ts +19 -11
- package/dist/agents/types.d.ts.map +1 -1
- package/dist/engine.d.ts +53 -0
- package/dist/engine.d.ts.map +1 -0
- package/dist/engine.js +78 -0
- package/dist/mcp/actuateServer.d.ts +3 -0
- package/dist/mcp/actuateServer.d.ts.map +1 -0
- package/dist/mcp/actuateServer.js +594 -0
- package/dist/mcp/sourceFence.d.ts +23 -0
- package/dist/mcp/sourceFence.d.ts.map +1 -0
- package/dist/mcp/sourceFence.js +79 -0
- package/dist/mcp/sourceServer.d.ts +3 -0
- package/dist/mcp/sourceServer.d.ts.map +1 -0
- package/dist/mcp/sourceServer.js +191 -0
- package/dist/memory/businessMemory.d.ts +29 -0
- package/dist/memory/businessMemory.d.ts.map +1 -0
- package/dist/memory/businessMemory.js +125 -0
- package/dist/modes.d.ts +39 -0
- package/dist/modes.d.ts.map +1 -0
- package/dist/modes.js +34 -0
- package/dist/playwright/cdpStatus.d.ts +0 -15
- package/dist/playwright/cdpStatus.d.ts.map +1 -1
- package/dist/playwright/cdpStatus.js +0 -67
- package/dist/playwright/launchChrome.d.ts +18 -0
- package/dist/playwright/launchChrome.d.ts.map +1 -1
- package/dist/playwright/launchChrome.js +46 -3
- package/dist/playwright/preflight.d.ts.map +1 -1
- package/dist/playwright/preflight.js +6 -1
- package/dist/playwright/resolveMcpConfig.d.ts +12 -0
- package/dist/playwright/resolveMcpConfig.d.ts.map +1 -1
- package/dist/playwright/resolveMcpConfig.js +36 -5
- package/dist/plugin-api.d.ts +35 -26
- package/dist/plugin-api.d.ts.map +1 -1
- package/dist/plugin-api.js +2 -2
- package/dist/qa/candidates.d.ts +32 -0
- package/dist/qa/candidates.d.ts.map +1 -0
- package/dist/qa/candidates.js +20 -0
- package/dist/qa/classify.d.ts +38 -0
- package/dist/qa/classify.d.ts.map +1 -0
- package/dist/qa/classify.js +138 -0
- package/dist/qa/intensity.d.ts +33 -0
- package/dist/qa/intensity.d.ts.map +1 -0
- package/dist/qa/intensity.js +25 -0
- package/dist/qa/qaReport.d.ts +19 -0
- package/dist/qa/qaReport.d.ts.map +1 -0
- package/dist/qa/qaReport.js +50 -0
- package/dist/runSession.d.ts +14 -3
- package/dist/runSession.d.ts.map +1 -1
- package/dist/runSession.js +31 -11
- package/dist/service/cdpHandlers.d.ts +3 -27
- package/dist/service/cdpHandlers.d.ts.map +1 -1
- package/dist/service/cdpHandlers.js +6 -53
- package/dist/service/cdpHint.d.ts +21 -28
- package/dist/service/cdpHint.d.ts.map +1 -1
- package/dist/service/cdpHint.js +106 -164
- package/dist/service/relayHandlers.d.ts +28 -0
- package/dist/service/relayHandlers.d.ts.map +1 -0
- package/dist/service/relayHandlers.js +105 -0
- package/dist/service/saveHandlers.d.ts +1 -3
- package/dist/service/saveHandlers.d.ts.map +1 -1
- package/dist/service/saveHandlers.js +17 -15
- package/dist/service/types.d.ts +108 -8
- package/dist/service/types.d.ts.map +1 -1
- package/dist/service.d.ts +13 -3
- package/dist/service.d.ts.map +1 -1
- package/dist/service.js +1022 -236
- package/dist/sessions/sessions.d.ts +125 -0
- package/dist/sessions/sessions.d.ts.map +1 -0
- package/dist/sessions/sessions.js +175 -0
- package/dist/specs/authFixture.d.ts +30 -0
- package/dist/specs/authFixture.d.ts.map +1 -0
- package/dist/specs/authFixture.js +145 -0
- package/dist/specs/businessMap.d.ts +29 -0
- package/dist/specs/businessMap.d.ts.map +1 -0
- package/dist/specs/businessMap.js +95 -0
- package/dist/specs/detectSharedFlows.d.ts +1 -1
- package/dist/specs/detectSharedFlows.d.ts.map +1 -1
- package/dist/specs/detectSharedFlows.js +20 -21
- package/dist/specs/generatePageObject.d.ts +1 -1
- package/dist/specs/generatePageObject.d.ts.map +1 -1
- package/dist/specs/healPrompt.d.ts +19 -0
- package/dist/specs/healPrompt.d.ts.map +1 -0
- package/dist/specs/healPrompt.js +48 -0
- package/dist/specs/humanSteps.d.ts +4 -8
- package/dist/specs/humanSteps.d.ts.map +1 -1
- package/dist/specs/humanSteps.js +6 -1
- package/dist/specs/optimizeSpec.d.ts +15 -8
- package/dist/specs/optimizeSpec.d.ts.map +1 -1
- package/dist/specs/optimizeSpec.js +98 -46
- package/dist/specs/optimizeSpecWithAgent.d.ts +0 -2
- package/dist/specs/optimizeSpecWithAgent.d.ts.map +1 -1
- package/dist/specs/optimizeSpecWithAgent.js +0 -1
- package/dist/specs/pageObjectManifest.d.ts +3 -1
- package/dist/specs/pageObjectManifest.d.ts.map +1 -1
- package/dist/specs/pageObjectManifest.js +13 -9
- package/dist/specs/replayGrounded.d.ts +45 -0
- package/dist/specs/replayGrounded.d.ts.map +1 -0
- package/dist/specs/replayGrounded.js +155 -0
- package/dist/specs/runFailures.d.ts +34 -0
- package/dist/specs/runFailures.d.ts.map +1 -0
- package/dist/specs/runFailures.js +93 -0
- package/dist/specs/seeds.d.ts +16 -15
- package/dist/specs/seeds.d.ts.map +1 -1
- package/dist/specs/seeds.js +86 -54
- package/dist/specs/sidecar.d.ts +34 -6
- package/dist/specs/sidecar.d.ts.map +1 -1
- package/dist/specs/sidecar.js +79 -9
- package/dist/specs/softBatch.d.ts +14 -0
- package/dist/specs/softBatch.d.ts.map +1 -0
- package/dist/specs/softBatch.js +177 -0
- package/dist/specs/specStep.d.ts +21 -0
- package/dist/specs/specStep.d.ts.map +1 -0
- package/dist/specs/specStep.js +1 -0
- package/dist/specs/text.d.ts +19 -0
- package/dist/specs/text.d.ts.map +1 -0
- package/dist/specs/text.js +27 -0
- package/dist/specs/writeSpec.d.ts +62 -1
- package/dist/specs/writeSpec.d.ts.map +1 -1
- package/dist/specs/writeSpec.js +598 -30
- package/package.json +10 -10
- package/dist/agents/aider.d.ts +0 -16
- package/dist/agents/aider.d.ts.map +0 -1
- package/dist/agents/aider.js +0 -169
- package/dist/agents/cursor.d.ts +0 -18
- package/dist/agents/cursor.d.ts.map +0 -1
- package/dist/agents/cursor.js +0 -229
- package/dist/playwright/raiseWindow.d.ts +0 -10
- package/dist/playwright/raiseWindow.d.ts.map +0 -1
- package/dist/playwright/raiseWindow.js +0 -139
- package/dist/scripts/bench-multi-tab.d.ts +0 -2
- package/dist/scripts/bench-multi-tab.d.ts.map +0 -1
- package/dist/scripts/bench-multi-tab.js +0 -192
- package/dist/scripts/bench-ttfb.d.ts +0 -2
- package/dist/scripts/bench-ttfb.d.ts.map +0 -1
- package/dist/scripts/bench-ttfb.js +0 -127
- package/dist/scripts/start-chrome.d.ts +0 -3
- package/dist/scripts/start-chrome.d.ts.map +0 -1
- package/dist/scripts/start-chrome.js +0 -23
- package/dist/skills/writeSkill.d.ts +0 -27
- package/dist/skills/writeSkill.d.ts.map +0 -1
- package/dist/skills/writeSkill.js +0 -13
- package/dist/specs/listSpecs.d.ts +0 -52
- package/dist/specs/listSpecs.d.ts.map +0 -1
- package/dist/specs/listSpecs.js +0 -139
- package/dist/specs/optimizationSuggestion.d.ts +0 -26
- package/dist/specs/optimizationSuggestion.d.ts.map +0 -1
- package/dist/specs/optimizationSuggestion.js +0 -28
- package/dist/specs/writeCaseCsv.d.ts +0 -28
- package/dist/specs/writeCaseCsv.d.ts.map +0 -1
- package/dist/specs/writeCaseCsv.js +0 -140
package/dist/service/types.d.ts
CHANGED
|
@@ -10,36 +10,136 @@
|
|
|
10
10
|
* one place.
|
|
11
11
|
*/
|
|
12
12
|
import { WebSocket } from 'ws';
|
|
13
|
-
import type { SkillStep } from '../
|
|
13
|
+
import type { SkillStep } from '../specs/specStep.js';
|
|
14
14
|
import type { SpecAssertion } from '../specs/writeSpec.js';
|
|
15
15
|
export interface ClientMessage {
|
|
16
16
|
type: string;
|
|
17
17
|
payload?: {
|
|
18
18
|
text?: string;
|
|
19
19
|
sessionId?: string;
|
|
20
|
+
/** The chat conversation a run belongs to — groups its run folders under
|
|
21
|
+
* `.hover/runs/<conversationId>/`. */
|
|
22
|
+
conversationId?: string;
|
|
20
23
|
name?: string;
|
|
21
24
|
description?: string;
|
|
22
25
|
steps?: SkillStep[];
|
|
23
26
|
assertions?: SpecAssertion[];
|
|
24
27
|
overwrite?: boolean;
|
|
25
|
-
/** save-
|
|
26
|
-
*
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
/** save-spec only — credentials to parameterize into process.env.<envVar>
|
|
29
|
+
* references so secrets never land in the spec / sidecar. */
|
|
30
|
+
redactions?: {
|
|
31
|
+
value: string;
|
|
32
|
+
envVar: string;
|
|
33
|
+
}[];
|
|
34
|
+
/** save-spec only — the active env's recon-discovered reset recipe (debt-2).
|
|
35
|
+
* A tier-1 recipe makes the spec generate + call a resetState() beforeEach. */
|
|
36
|
+
resetRecipe?: {
|
|
37
|
+
tier: number;
|
|
38
|
+
storageKeys?: string[];
|
|
39
|
+
hook?: string;
|
|
40
|
+
};
|
|
41
|
+
/** save-spec only — auth-as-fixture (debt 3). The user approved Hover editing
|
|
42
|
+
* their existing playwright.config; engage the fixture (lift login into
|
|
43
|
+
* auth.setup.ts) and apply the setup-project edit. Absent on a normal save. */
|
|
44
|
+
authFixture?: boolean;
|
|
45
|
+
/** command only — test accounts the prompt referenced via @label. Injected
|
|
46
|
+
* into the agent's system prompt (ephemeral, not the saved transcript) so
|
|
47
|
+
* it can log in; the recorded fill values get redacted on save. */
|
|
48
|
+
accounts?: {
|
|
49
|
+
label: string;
|
|
50
|
+
username?: string;
|
|
51
|
+
password?: string;
|
|
52
|
+
role?: string;
|
|
53
|
+
}[];
|
|
54
|
+
/** command only — ask the agent to run state-reset recon this run (debt-2
|
|
55
|
+
* reproducible-state-isolation). Off unless the extension sets it (e.g. the
|
|
56
|
+
* active env has no reset recipe yet); recon clears client state, so it must
|
|
57
|
+
* be opt-in, never on a plain Flow recording. */
|
|
58
|
+
reconReset?: boolean;
|
|
29
59
|
/** check-cdp / launch-chrome / focus-debug — the widget's
|
|
30
60
|
* window.location.href so service can compare origins or navigate the
|
|
31
61
|
* newly-launched debug Chrome to the same URL. */
|
|
32
62
|
pageUrl?: string;
|
|
33
63
|
/** switch-agent only — id of the agent to switch the service to. */
|
|
34
64
|
agentId?: string;
|
|
65
|
+
/** set-model only — the model id to use for subsequent runs (e.g. opus). */
|
|
66
|
+
model?: string;
|
|
67
|
+
/** optimize-spec only — override model for the F7 refinement pass (the
|
|
68
|
+
* `hover.optimizeModel` setting). Empty → the agent's cheap default. */
|
|
69
|
+
optimizeModel?: string;
|
|
70
|
+
/** heal-spec only — the failing spec's source, so the engine can build the
|
|
71
|
+
* heal prompt without guessing the spec's path. */
|
|
72
|
+
specSource?: string;
|
|
73
|
+
/** set-effort only — reasoning-effort level for subsequent runs (empty
|
|
74
|
+
* string clears it → agent/model default). */
|
|
75
|
+
effort?: string;
|
|
76
|
+
/** set-local-endpoint only — base URL of the user's self-hosted
|
|
77
|
+
* OpenAI-compatible endpoint for the Local LLM agent. */
|
|
78
|
+
baseUrl?: string;
|
|
79
|
+
/** set-byok only — bring-your-own-key model config (protocol + key + base
|
|
80
|
+
* URL + model injected into the protocol's matching CLI), or null to clear
|
|
81
|
+
* and fall back to the local-CLI agent's own auth. */
|
|
82
|
+
config?: {
|
|
83
|
+
protocol: string;
|
|
84
|
+
baseUrl: string;
|
|
85
|
+
model: string;
|
|
86
|
+
maxTokens: number;
|
|
87
|
+
apiKey: string;
|
|
88
|
+
} | null;
|
|
35
89
|
/** set-mode only — id of the plugin-contributed mode to activate,
|
|
36
90
|
* or null to return to normal (unmoded) operation. */
|
|
37
91
|
modeId?: string | null;
|
|
38
92
|
/** optimize-spec / promote-optimized / discard-optimized — the spec slug. */
|
|
39
93
|
slug?: string;
|
|
40
|
-
/**
|
|
41
|
-
|
|
42
|
-
|
|
94
|
+
/** launch-chrome only — launch the debug Chrome headless (silent mode). */
|
|
95
|
+
headless?: boolean;
|
|
96
|
+
/** launch-chrome only — close any existing debug Chrome first, then
|
|
97
|
+
* relaunch (so a headless↔visible switch / "reopen browser" takes effect). */
|
|
98
|
+
force?: boolean;
|
|
99
|
+
/** reveal-source only — a `data-hover-source` value (`<rel-path>:<line>:<col>`)
|
|
100
|
+
* an in-page client (widget) captured from a clicked element. The service
|
|
101
|
+
* relays it to every OTHER connected client; the VSCode extension listens
|
|
102
|
+
* for it and jumps the editor to that location (F2 page→editor transport). */
|
|
103
|
+
source?: string;
|
|
104
|
+
/** command only — the editor's source-read grant for this run:
|
|
105
|
+
* 'always' (skip the gate), 'ask' (gate each read), 'deny' (no source MCP).
|
|
106
|
+
* Default 'ask' when absent. */
|
|
107
|
+
sourceAccess?: 'always' | 'ask' | 'deny';
|
|
108
|
+
/** command only — run the agent in an isolated cwd so it loads none of the
|
|
109
|
+
* user's CLAUDE.md / Claude Code auto-memory (Memory = "isolated"). */
|
|
110
|
+
isolateContext?: boolean;
|
|
111
|
+
/** command only — the active environment, recorded in the session ledger. */
|
|
112
|
+
env?: {
|
|
113
|
+
id?: string;
|
|
114
|
+
name?: string;
|
|
115
|
+
};
|
|
116
|
+
/** source-approval-request (from the source MCP) / -response (from the
|
|
117
|
+
* editor): a correlation id, the requested repo-relative path + kind, and
|
|
118
|
+
* the user's allow/deny decision. */
|
|
119
|
+
approvalId?: string;
|
|
120
|
+
sourcePath?: string;
|
|
121
|
+
sourceKind?: string;
|
|
122
|
+
allow?: boolean;
|
|
123
|
+
/** ask-user-request (from the control MCP) / -response (from the editor):
|
|
124
|
+
* a correlation id, the question + offered choices, and the user's answer. */
|
|
125
|
+
askId?: string;
|
|
126
|
+
question?: string;
|
|
127
|
+
options?: {
|
|
128
|
+
label: string;
|
|
129
|
+
description?: string;
|
|
130
|
+
}[];
|
|
131
|
+
allowFreeText?: boolean;
|
|
132
|
+
value?: string;
|
|
133
|
+
cancelled?: boolean;
|
|
134
|
+
/** record-fact (from the control MCP, QA/API modes only): a business RULE
|
|
135
|
+
* the agent learned/confirmed, to persist into `.hover/memory/` so it isn't
|
|
136
|
+
* re-asked next run. RULES only — never secrets/PII (the tool + directive
|
|
137
|
+
* enforce this; the engine also ignores it outside QA/API). */
|
|
138
|
+
fact?: {
|
|
139
|
+
title: string;
|
|
140
|
+
rule: string;
|
|
141
|
+
type?: string;
|
|
142
|
+
};
|
|
43
143
|
};
|
|
44
144
|
}
|
|
45
145
|
export declare function send(ws: WebSocket, message: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/service/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/service/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE;QACR,IAAI,CAAC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AE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAC;YAAC,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;KACvD,CAAC;CACH;AAED,wBAAgB,IAAI,CAAC,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,IAAI,CAEtF;AAED;;;;sEAIsE;AACtE,wBAAgB,UAAU,CACxB,EAAE,EAAE,SAAS,EACb,OAAO,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,GAC3C,OAAO,CAIT"}
|
package/dist/service.d.ts
CHANGED
|
@@ -3,13 +3,17 @@ export interface ServiceOptions {
|
|
|
3
3
|
port: number;
|
|
4
4
|
agentId?: string;
|
|
5
5
|
model?: string;
|
|
6
|
+
/** Initial reasoning-effort level (set-effort overrides at runtime). */
|
|
7
|
+
effort?: string;
|
|
6
8
|
maxBudgetUsd?: number;
|
|
7
|
-
/** How the optimization pass (F7) surfaces in the widget. Default 'suggest'.
|
|
8
|
-
* 'off' = no nudge, 'suggest' = ✦ hint, 'on' = auto-run after Save-as-spec. */
|
|
9
|
-
optimizeMode?: 'off' | 'suggest' | 'on';
|
|
10
9
|
mcpConfig?: string;
|
|
11
10
|
/** CDP URL to preflight before each command (default http://localhost:9222). */
|
|
12
11
|
cdpUrl?: string;
|
|
12
|
+
/** Isolated Chrome user-data-dir for this service's debug Chrome (default
|
|
13
|
+
* `<tmpdir>/hover-chrome`). Set per-service so several engine hosts (one per
|
|
14
|
+
* chat session) each drive their OWN Chrome profile — distinct logins, no
|
|
15
|
+
* profile-lock contention. Paired with a distinct `cdpUrl` port. */
|
|
16
|
+
userDataDir?: string;
|
|
13
17
|
/** Working directory for the spawned agent. Also the root under which saved
|
|
14
18
|
* specs (`__vibe_tests__/`), sidecars + seeds (`.hover/`) live. Defaults to
|
|
15
19
|
* process.cwd(); in Vite plugin context, set to `server.config.root` so the
|
|
@@ -29,6 +33,12 @@ export interface ServiceOptions {
|
|
|
29
33
|
* see the proxy; moving it here is what enables the single-Chrome model.
|
|
30
34
|
* Default false (shims pass it through from their own option). */
|
|
31
35
|
autoLaunchChrome?: boolean;
|
|
36
|
+
/** Opt-in: give the agent READ-ONLY, fenced access to the project's source
|
|
37
|
+
* via a `read_source` / `list_source` MCP server (in addition to Playwright
|
|
38
|
+
* MCP), in every mode. Lets it author against real selectors/routes and do
|
|
39
|
+
* white-box security/pentest. Fenced to devRoot, secrets/keys/.git/build
|
|
40
|
+
* excluded, no write/exec. Default false — the agent stays browser-only. */
|
|
41
|
+
codeContext?: boolean;
|
|
32
42
|
/** The dev-server URL the auto-launched Chrome should open. Each shim knows
|
|
33
43
|
* its own framework's dev URL and passes it here. Defaults to the cdp host
|
|
34
44
|
* if unset, but shims should always provide it. */
|
package/dist/service.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":"AAqFA,OAAO,EAEL,KAAK,mBAAmB,EAEzB,MAAM,iBAAiB,CAAC;AAqCzB,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wEAAwE;IACxE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gFAAgF;IAChF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;yEAGqE;IACrE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;gFAG4E;IAC5E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;uBAImB;IACnB,OAAO,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAChC;;;;;;uEAMmE;IACnE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;;iFAI6E;IAC7E,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;wDAEoD;IACpD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,aAAa;IAC5B;4EACwE;IACxE,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB;AAkFD,wBAAsB,YAAY,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC,CAglD/E"}
|