@testmuai/kane-cli 0.2.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/LICENSE +202 -0
- package/README.md +30 -0
- package/bin/kane-cli.js +2 -0
- package/dist/ChromeProfilePicker-NRHBZJRY.js +2 -0
- package/dist/CliFeedbackPrompt-LJOQDOID.js +2 -0
- package/dist/CliUploadProgress-3EV5HGWF.js +2 -0
- package/dist/ConfigView-4E5NPHQS.js +2 -0
- package/dist/FolderPicker-ZK7QVPGI.js +2 -0
- package/dist/HelpView-MPSTK26I.js +2 -0
- package/dist/LinksBox-RXFRUHYG.js +2 -0
- package/dist/LoginWizard-UVDCZSNN.js +2 -0
- package/dist/ProfilesView-7OYXY4HR.js +2 -0
- package/dist/ProjectPicker-OKLJAOZL.js +2 -0
- package/dist/WhoamiView-4R3DWFF4.js +2 -0
- package/dist/build-MFETN2BY.js +2 -0
- package/dist/changelog-YMXB4VNK.js +4 -0
- package/dist/chunk-2WSX2LHX.js +2 -0
- package/dist/chunk-3CJ6IY5O.js +2 -0
- package/dist/chunk-3MOK7FWE.js +2 -0
- package/dist/chunk-6YGTRKDT.js +48 -0
- package/dist/chunk-D7CQOCME.js +2 -0
- package/dist/chunk-F7XC3ZB3.js +2 -0
- package/dist/chunk-FVB76465.js +2 -0
- package/dist/chunk-HCBYKLMW.js +41 -0
- package/dist/chunk-KPCYAR4I.js +2 -0
- package/dist/chunk-LOYQCD64.js +2 -0
- package/dist/chunk-NRQDE7HH.js +2 -0
- package/dist/chunk-NYYKIIZC.js +2 -0
- package/dist/chunk-O2HIAIOC.js +83 -0
- package/dist/chunk-Q7JVDEOV.js +239 -0
- package/dist/chunk-QGHQ4STK.js +2 -0
- package/dist/chunk-UR6MHSHU.js +2 -0
- package/dist/chunk-VDHECXMC.js +2 -0
- package/dist/chunk-VYU7IKV4.js +2 -0
- package/dist/chunk-XQBQB3VZ.js +2 -0
- package/dist/chunk-YNF4MUQP.js +2 -0
- package/dist/chunk-YQY5GLZG.js +2 -0
- package/dist/controller-client-PS5GDXE3.js +2 -0
- package/dist/devtools-4SYFVOFF.js +8 -0
- package/dist/exitCleanup-J3GVD6U2.js +2 -0
- package/dist/index.js +76 -0
- package/dist/pipeline-AYK5AZRB.js +2 -0
- package/dist/react-QWOAB3TB.js +2 -0
- package/dist/resolver-L3Z6FAOD.js +2 -0
- package/dist/tms-client-YS6LCK2T.js +2 -0
- package/dist/updater-OI5K5W6B.js +2 -0
- package/dist/version-check-NO7GXGGB.js +2 -0
- package/package.json +53 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship made available under
|
|
36
|
+
the License, as indicated by a copyright notice that is included in
|
|
37
|
+
or attached to the work (an example is provided in the Appendix below).
|
|
38
|
+
|
|
39
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
40
|
+
form, that is based on (or derived from) the Work and for which the
|
|
41
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
42
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
43
|
+
of this License, Derivative Works shall not include works that remain
|
|
44
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
45
|
+
the Work and derivative works thereof.
|
|
46
|
+
|
|
47
|
+
"Contribution" shall mean, as defined by the copyright owner or by
|
|
48
|
+
Legal Entity authorized to submit on behalf of the copyright owner,
|
|
49
|
+
any work of authorship, including the original version of the Work
|
|
50
|
+
and any modifications or additions to that Work or Derivative Works
|
|
51
|
+
of the Work, that is intentionally submitted to the Licensor for
|
|
52
|
+
inclusion in the Work by the copyright owner or by an individual or
|
|
53
|
+
Legal Entity authorized to submit on behalf of the copyright owner.
|
|
54
|
+
For the purposes of this definition, "submitted" means any form of
|
|
55
|
+
electronic, verbal, or written communication sent to the Licensor or
|
|
56
|
+
its representatives, including but not limited to communication on
|
|
57
|
+
electronic mailing lists, source code control systems, and issue
|
|
58
|
+
tracking systems that are managed by, or on behalf of, the Licensor
|
|
59
|
+
for the purpose of discussing and improving the Work, but excluding
|
|
60
|
+
communication that is conspicuously marked or otherwise designated
|
|
61
|
+
in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any Legal Entity on behalf of
|
|
64
|
+
whom a Contribution has been received by the Licensor and subsequently
|
|
65
|
+
incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by the combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a cross-claim
|
|
84
|
+
or counterclaim in a lawsuit) alleging that the Work or any Contributor
|
|
85
|
+
Contribution constitutes direct or contributory patent infringement,
|
|
86
|
+
then any patent licenses granted to You under this License for that Work
|
|
87
|
+
shall terminate as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or Derivative Works
|
|
95
|
+
a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, You must include a readable copy of the
|
|
108
|
+
attribution notices contained within such NOTICE file, in
|
|
109
|
+
at least one of the following places: within a NOTICE text
|
|
110
|
+
file distributed as part of the Derivative Works; within
|
|
111
|
+
the Source form or documentation, if provided along with the
|
|
112
|
+
Derivative Works; or, within a display generated by the
|
|
113
|
+
Derivative Works, if and wherever such third-party notices
|
|
114
|
+
normally appear. The contents of the NOTICE file are for
|
|
115
|
+
informational purposes only and do not modify the License.
|
|
116
|
+
You may add Your own attribution notices within Derivative
|
|
117
|
+
Works that You distribute, alongside or as an addendum to
|
|
118
|
+
the NOTICE text from the Work, provided that such additional
|
|
119
|
+
attribution notices cannot be construed as modifying the License.
|
|
120
|
+
|
|
121
|
+
You may add Your own license statement for Your modifications and
|
|
122
|
+
may provide additional grant of rights to use, reproduce, modify,
|
|
123
|
+
and distribute those modifications, as an exception to the terms of
|
|
124
|
+
Sections 2 and 3. However, in accepting such obligations, You may
|
|
125
|
+
act only on Your own behalf and on Your sole responsibility, not on
|
|
126
|
+
behalf of any other Contributor, and only if You agree to indemnify,
|
|
127
|
+
defend, and hold each Contributor harmless for any liability incurred
|
|
128
|
+
by, or claims asserted against, such Contributor by reason of your
|
|
129
|
+
accepting any such warranty or additional liability.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or exemplary damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or all other
|
|
163
|
+
commercial damages or losses), even if such Contributor has been
|
|
164
|
+
advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format in question. It may also be
|
|
186
|
+
included as a machine-readable representation of the license notice,
|
|
187
|
+
in its entirety, in any documentation and/or other materials
|
|
188
|
+
provided with the distribution.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# @testmuai/kane-cli
|
|
2
|
+
|
|
3
|
+
AI-powered browser automation CLI.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
# npm
|
|
9
|
+
npm install -g @testmuai/kane-cli
|
|
10
|
+
|
|
11
|
+
# Homebrew
|
|
12
|
+
brew install lambdatest/kane/kane-cli
|
|
13
|
+
|
|
14
|
+
# curl installer
|
|
15
|
+
curl -fsSL https://raw.githubusercontent.com/LambdaTest/kane-cli/main/install.sh | bash
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Quick start
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
kane-cli --help
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Documentation
|
|
25
|
+
|
|
26
|
+
See [https://github.com/LambdaTest/kane-cli](https://github.com/LambdaTest/kane-cli) for the full README, release notes, and issue tracker.
|
|
27
|
+
|
|
28
|
+
## License
|
|
29
|
+
|
|
30
|
+
Apache 2.0 — see [LICENSE](./LICENSE).
|
package/bin/kane-cli.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a,b,c}from"./chunk-2WSX2LHX.js";import"./chunk-HCBYKLMW.js";import"./chunk-KPCYAR4I.js";import"./chunk-Q7JVDEOV.js";import"./chunk-6YGTRKDT.js";import"./chunk-UR6MHSHU.js";export{c as ChromeProfilePicker,b as formatChromeProfileLine,a as listChromeProfiles};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a as r}from"./chunk-LOYQCD64.js";import"./chunk-HCBYKLMW.js";import"./chunk-KPCYAR4I.js";import{c as e}from"./chunk-Q7JVDEOV.js";import{a as i}from"./chunk-6YGTRKDT.js";import{e as m}from"./chunk-UR6MHSHU.js";var t=m(i(),1);async function d(){return new Promise(o=>{let c=e(t.default.createElement(r,{onSubmit:n=>{c.unmount(),o(n)}}),{stdout:process.stderr,exitOnCtrlC:!1})})}export{d as renderFeedbackPrompt};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{c as P,d as g,e as f}from"./chunk-3MOK7FWE.js";import{a as c}from"./chunk-HCBYKLMW.js";import"./chunk-KPCYAR4I.js";import{c as d}from"./chunk-Q7JVDEOV.js";import{a as h}from"./chunk-6YGTRKDT.js";import{e as p}from"./chunk-UR6MHSHU.js";var e=p(h(),1);var m=p(c(),1);function w({pipeline:t,buildShareUrl:r,onDone:o}){let[n,i]=(0,e.useState)(P()),[S,l]=(0,e.useState)("uploading"),[U,R]=(0,e.useState)(),[C,E]=(0,e.useState)();return(0,e.useEffect)(()=>{let x=t.config.onProgress;t.config.onProgress=(s,u,a)=>{x(s,u,a),i(y=>g(y,s,u,a))},t.execute().then(s=>{s.success?(R(r?.(s)),l("success")):(E(s.error),l("failed")),setTimeout(()=>o(s),1500)})},[]),(0,m.jsx)(f,{steps:n,status:S,testUrl:U,error:C})}async function O(t,r){return new Promise(o=>{let n=d(e.default.createElement(w,{pipeline:t,buildShareUrl:r,onDone:i=>{n.unmount(),o(i)}}),{stdout:process.stderr,exitOnCtrlC:!1})})}export{O as renderUploadProgress};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a as f,b as l,c as r}from"./chunk-VDHECXMC.js";import{a as d}from"./chunk-HCBYKLMW.js";import{r as o}from"./chunk-KPCYAR4I.js";import{a as t,j as m}from"./chunk-Q7JVDEOV.js";import{a as h}from"./chunk-6YGTRKDT.js";import{e as n}from"./chunk-UR6MHSHU.js";var c=n(h(),1);var e=n(d(),1);function D({model:s,authLabel:p,profile:b,env:g,defaultUrl:a,projectId:v,folderId:w,windowSize:x,chromeProfile:C,setupComplete:i}){let{exit:u}=m();return(0,c.useEffect)(()=>{let B=setTimeout(()=>u(),50);return()=>clearTimeout(B)},[u]),(0,e.jsx)(t,{flexDirection:"column",children:(0,e.jsx)(f,{title:"Configuration",children:(0,e.jsxs)(t,{flexDirection:"column",paddingY:1,children:[(0,e.jsx)(r,{label:"Auth"}),(0,e.jsx)(l,{label:" method",value:p}),(0,e.jsx)(l,{label:" profile",value:b}),(0,e.jsx)(l,{label:" env",value:g}),(0,e.jsx)(r,{label:"Defaults"}),(0,e.jsx)(l,{label:" url",value:a??"(none)",valueColor:a?o.cyan:o.dimmed}),(0,e.jsx)(l,{label:" model",value:s}),(0,e.jsx)(l,{label:" window",value:x}),(0,e.jsx)(l,{label:" project",value:v??"(none)"}),(0,e.jsx)(l,{label:" folder",value:w??"(none)"}),(0,e.jsx)(r,{label:"Paths"}),(0,e.jsx)(l,{label:" chrome",value:C,valueColor:o.dimmed}),(0,e.jsx)(r,{label:"Setup"}),(0,e.jsx)(l,{label:" status",value:i?"complete":"pending",valueColor:i?o.green:o.yellow})]})})})}export{D as ConfigView};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a,b}from"./chunk-F7XC3ZB3.js";import"./chunk-NYYKIIZC.js";import"./chunk-XQBQB3VZ.js";import"./chunk-HCBYKLMW.js";import"./chunk-KPCYAR4I.js";import"./chunk-Q7JVDEOV.js";import"./chunk-6YGTRKDT.js";import"./chunk-UR6MHSHU.js";export{b as FolderPicker,a as formatFolderLine};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a as f}from"./chunk-HCBYKLMW.js";import{a as h,b as a,r as t}from"./chunk-KPCYAR4I.js";import{a as n,b as o,j as p,k as x}from"./chunk-Q7JVDEOV.js";import{a as T}from"./chunk-6YGTRKDT.js";import{e as u}from"./chunk-UR6MHSHU.js";var b=u(T(),1);var e=u(f(),1),w="https://docs.lambdatest.com/kanecli",B="https://docs.lambdatest.com/support";function L(){let{exit:c}=p(),{stdout:l}=x(),s=l?.columns??80;return(0,b.useEffect)(()=>{let d=setTimeout(()=>c(),50);return()=>clearTimeout(d)},[c]),(0,e.jsxs)(n,{flexDirection:"column",children:[(0,e.jsxs)(n,{paddingX:1,paddingTop:1,flexDirection:"column",children:[(0,e.jsx)(o,{color:t.purple,bold:!0,children:a}),(0,e.jsxs)(n,{children:[(0,e.jsx)(o,{color:t.dimmed,children:"Browser automation powered by AI "}),(0,e.jsxs)(o,{color:t.muted,children:[" v",h]})]})]}),(0,e.jsx)(o,{children:" "}),(0,e.jsx)(m,{title:"USAGE",children:(0,e.jsxs)(o,{color:t.cyan,children:[" $ ",a," ","<command>"," [flags]"]})}),(0,e.jsxs)(m,{title:"COMMANDS",children:[(0,e.jsx)(i,{cmd:"run",args:"<objective>",desc:"Run a browser automation task",highlight:!0}),(0,e.jsx)(i,{cmd:"setup",desc:"First-time auth & configuration"}),(0,e.jsx)(i,{cmd:"login",desc:"OAuth PKCE login (opens browser)"}),(0,e.jsx)(i,{cmd:"logout",desc:"Revoke tokens + delete profile"}),(0,e.jsx)(i,{cmd:"whoami",desc:"Show authenticated identity"}),(0,e.jsx)(i,{cmd:"config",args:"show|set-\u2026|reset",desc:"Manage configuration"}),(0,e.jsx)(i,{cmd:"profiles",args:"list|switch|delete",desc:"Manage auth profiles"})]}),(0,e.jsxs)(m,{title:"RUN FLAGS",children:[(0,e.jsx)(r,{long:"--url",arg:"<url>",desc:"Target URL"}),(0,e.jsx)(r,{long:"--max-steps",arg:"<n>",desc:"Max agent steps (default: 30)"}),(0,e.jsx)(r,{long:"--timeout",arg:"<sec>",desc:"Kill run after N seconds"}),(0,e.jsx)(r,{long:"--headless",desc:"No visible browser window"}),(0,e.jsx)(r,{long:"--variables",arg:"<json>",desc:"Inline variables as JSON"}),(0,e.jsx)(r,{long:"--variables-file",arg:"<path>",desc:"Load variables from file"}),(0,e.jsx)(r,{long:"--ws-endpoint",arg:"<url>",desc:"Remote browser (LambdaTest)"}),(0,e.jsx)(r,{long:"--cdp-endpoint",arg:"<url>",desc:"Connect to existing Chrome CDP"}),(0,e.jsx)(r,{long:"--cft",desc:"Use Playwright Chromium instead of managed Chrome"}),(0,e.jsx)(r,{long:"--global-context",arg:"<file>",desc:"Override global context markdown"}),(0,e.jsx)(r,{long:"--local-context",arg:"<file>",desc:"Override local context markdown"}),(0,e.jsx)(r,{long:"--username",arg:"<user>",desc:"Basic auth (skip OAuth)"}),(0,e.jsx)(r,{long:"--access-key",arg:"<key>",desc:"Basic auth access key"}),(0,e.jsx)(r,{long:"--env",arg:"<name>",desc:"Environment (prod or stage)"}),(0,e.jsx)(r,{long:"--agent",desc:"NDJSON output (no UI)",highlight:!0})]}),(0,e.jsxs)(m,{title:"EXAMPLES",children:[(0,e.jsx)(g,{label:"Search",cmd:`${a} run "Search for laptop" --url https://amazon.in`}),(0,e.jsx)(g,{label:"Headless",cmd:`${a} run "Verify login" --url https://app.example.com --headless`}),(0,e.jsx)(g,{label:"Variables",cmd:`${a} run "Login as {{user}}" --url https://app.com --variables '{"user":{"value":"alice"}}'`}),(0,e.jsx)(g,{label:"Agent",cmd:`${a} run "Add to cart" --url https://shop.com --agent | jq .status`})]}),(0,e.jsxs)(n,{flexDirection:"column",marginTop:0,paddingX:1,children:[(0,e.jsx)(o,{color:t.muted,children:"\u2500".repeat(Math.min(s-2,70))}),(0,e.jsxs)(n,{gap:3,children:[(0,e.jsxs)(n,{children:[(0,e.jsx)(o,{color:t.dimmed,children:"Docs "}),(0,e.jsx)(o,{color:t.cyan,underline:!0,children:w})]}),(0,e.jsxs)(n,{children:[(0,e.jsx)(o,{color:t.dimmed,children:"Bugs "}),(0,e.jsx)(o,{color:t.cyan,underline:!0,children:B})]})]})]}),(0,e.jsx)(o,{children:" "})]})}function m({title:c,children:l}){return(0,e.jsxs)(n,{flexDirection:"column",marginBottom:1,children:[(0,e.jsx)(n,{marginLeft:1,children:(0,e.jsx)(o,{bold:!0,color:t.dimmed,children:c})}),l]})}function i({cmd:c,args:l,desc:s,highlight:d}){return(0,e.jsxs)(n,{marginLeft:2,children:[(0,e.jsx)(n,{width:12,children:(0,e.jsx)(o,{color:d?t.purple:t.green,bold:!0,children:c})}),(0,e.jsx)(n,{width:28,children:l?(0,e.jsx)(o,{color:t.dimmed,children:l}):null}),(0,e.jsx)(o,{color:t.dimmed,children:s})]})}function r({long:c,arg:l,desc:s,highlight:d}){return(0,e.jsxs)(n,{marginLeft:2,children:[(0,e.jsxs)(n,{width:26,children:[(0,e.jsx)(o,{color:d?t.purple:t.cyan,children:c}),l&&(0,e.jsxs)(o,{color:t.dimmed,children:[" ",l]})]}),(0,e.jsx)(o,{color:t.dimmed,children:s})]})}function g({label:c,cmd:l}){return(0,e.jsxs)(n,{marginLeft:2,flexDirection:"column",children:[(0,e.jsxs)(o,{color:t.dimmed,children:["# ",c]}),(0,e.jsxs)(o,{color:t.cyan,children:["$ ",l]})]})}export{L as HelpView};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a}from"./chunk-FVB76465.js";import"./chunk-HCBYKLMW.js";import"./chunk-KPCYAR4I.js";import"./chunk-Q7JVDEOV.js";import"./chunk-6YGTRKDT.js";import"./chunk-UR6MHSHU.js";export{a as LinksBox};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a,b}from"./chunk-QGHQ4STK.js";import"./chunk-HCBYKLMW.js";import"./chunk-KPCYAR4I.js";import"./chunk-Q7JVDEOV.js";import"./chunk-6YGTRKDT.js";import"./chunk-UR6MHSHU.js";export{b as LoginWizard,a as getWizardSteps};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a,b}from"./chunk-VYU7IKV4.js";import"./chunk-HCBYKLMW.js";import"./chunk-KPCYAR4I.js";import"./chunk-Q7JVDEOV.js";import"./chunk-6YGTRKDT.js";import"./chunk-UR6MHSHU.js";export{b as ProfilesView,a as formatProfileLine};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a,b}from"./chunk-D7CQOCME.js";import"./chunk-NYYKIIZC.js";import"./chunk-XQBQB3VZ.js";import"./chunk-HCBYKLMW.js";import"./chunk-KPCYAR4I.js";import"./chunk-Q7JVDEOV.js";import"./chunk-6YGTRKDT.js";import"./chunk-UR6MHSHU.js";export{b as ProjectPicker,a as formatProjectLine};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a as s,b as o}from"./chunk-VDHECXMC.js";import{a as x}from"./chunk-HCBYKLMW.js";import{r as i}from"./chunk-KPCYAR4I.js";import{a as r,b as n,j as u}from"./chunk-Q7JVDEOV.js";import{a as B}from"./chunk-6YGTRKDT.js";import{e as t}from"./chunk-UR6MHSHU.js";var p=t(B(),1);var e=t(x(),1);function R({profile:f,env:g,authenticated:a,authMethod:v,username:m,tokenStatus:l,expiresAt:c}){let{exit:d}=u();return(0,p.useEffect)(()=>{let b=setTimeout(()=>d(),50);return()=>clearTimeout(b)},[d]),(0,e.jsx)(r,{flexDirection:"column",children:(0,e.jsx)(s,{title:"Identity",variant:a?"success":"warning",children:(0,e.jsxs)(r,{flexDirection:"column",paddingY:1,children:[(0,e.jsx)(r,{children:a?(0,e.jsx)(n,{color:i.green,bold:!0,children:"\u2713 Authenticated"}):(0,e.jsx)(n,{color:i.yellow,bold:!0,children:"\u26A0 Not logged in"})}),(0,e.jsxs)(r,{flexDirection:"column",marginTop:1,children:[(0,e.jsx)(o,{label:"Profile",value:f}),(0,e.jsx)(o,{label:"Environment",value:g}),(0,e.jsx)(o,{label:"Method",value:v}),m&&(0,e.jsx)(o,{label:"User",value:m}),l&&(0,e.jsx)(o,{label:"Token",value:l,valueColor:l==="valid"?i.green:l==="expired"?i.red:i.dimmed}),c&&(0,e.jsx)(o,{label:"Expires",value:c})]})]})})})}export{R as WhoamiView};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o}from"./chunk-Q7JVDEOV.js";import"./chunk-6YGTRKDT.js";import"./chunk-UR6MHSHU.js";export{a as Box,f as Newline,g as Spacer,d as Static,b as Text,e as Transform,o as measureElement,c as render,j as useApp,m as useFocus,n as useFocusManager,i as useInput,l as useStderr,h as useStdin,k as useStdout};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{c as i,f as c}from"./chunk-KPCYAR4I.js";import"./chunk-UR6MHSHU.js";import{readFileSync as h,writeFileSync as g,mkdirSync as u}from"fs";import{join as d}from"path";var l=d(i,"changelog-cache.json"),f=3600*1e3;function p(){try{let e=JSON.parse(h(l,"utf-8"));if(Date.now()-e.cachedAt<f)return e}catch{}return null}function y(e){try{u(i,{recursive:!0}),g(l,JSON.stringify({entries:e,cachedAt:Date.now()}))}catch{}}async function E(e){try{let t=p();if(t){let r=t.entries;return e?.all?r:r.slice(0,5)}let n=new AbortController,o=setTimeout(()=>n.abort(),5e3),a=await fetch(`${c}?per_page=30`,{headers:{Accept:"application/vnd.github+json"},signal:n.signal});if(clearTimeout(o),!a.ok)return[];let s=(await a.json()).map(r=>({version:r.tag_name.replace(/^v/,""),date:r.published_at?r.published_at.slice(0,10):"",body:r.body??""}));return y(s),e?.all?s:s.slice(0,5)}catch{return[]}}function A(e){if(e.length===0)return"Could not fetch changelog. Visit https://github.com/LambdaTest/kane-cli/releases";let t=["kane-cli Changelog","\u2500".repeat(40),""];for(let n of e){if(t.push(`v${n.version} (${n.date})`),n.body){let o=n.body.split(`
|
|
3
|
+
`).filter(a=>a.trim());for(let a of o)t.push(` ${a}`)}t.push("")}return t.join(`
|
|
4
|
+
`)}export{E as fetchChangelog,A as formatChangelog};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a as S}from"./chunk-HCBYKLMW.js";import{i as p,r as t}from"./chunk-KPCYAR4I.js";import{a as m,b as n,i as y}from"./chunk-Q7JVDEOV.js";import{a as L}from"./chunk-6YGTRKDT.js";import{e as h}from"./chunk-UR6MHSHU.js";var g=h(L(),1);import{readdirSync as D,mkdirSync as A,statSync as N}from"fs";import{join as P}from"path";var r=h(S(),1);function O(c){try{return D(c).filter(s=>{try{return N(P(c,s)).isDirectory()}catch{return!1}})}catch{return[]}}function E(c,s,f,T){return{name:c,path:s,label:c,isActive:T}}function F({currentPath:c,onSelect:s,onCancel:f}){let l=O(p).map(i=>{let e=P(p,i);return E(i,e,c,e===c)}),d=!c,B=l.length+2,[a,b]=(0,g.useState)(()=>{if(d)return 0;let i=l.findIndex(e=>e.isActive);return i>=0?i+1:0}),[v,C]=(0,g.useState)(!1),[I,x]=(0,g.useState)("");return y((i,e)=>{if(v){if(e.escape){C(!1),x("");return}if(e.return){let o=I.trim();if(o){let u=P(p,o);A(u,{recursive:!0}),s(u),f()}return}if(e.backspace||e.delete){x(o=>o.slice(0,-1));return}i&&!e.ctrl&&!e.meta&&x(o=>o+i);return}if(e.escape){f();return}if(e.upArrow){b(o=>Math.max(0,o-1));return}if(e.downArrow){b(o=>Math.min(B-1,o+1));return}if(e.return){if(a===0){d||s(""),f();return}if(a===l.length+1){A(p,{recursive:!0}),C(!0),x("");return}let o=l[a-1];o&&!o.isActive&&s(o.path),f();return}}),v?(0,r.jsxs)(m,{flexDirection:"column",borderStyle:"round",borderColor:t.primary,paddingX:2,paddingY:1,children:[(0,r.jsx)(n,{color:t.primary,bold:!0,children:"Chrome Profile \u203A New"}),(0,r.jsxs)(m,{marginTop:1,children:[(0,r.jsx)(n,{color:t.secondary,children:"Name: "}),(0,r.jsx)(n,{children:I}),(0,r.jsx)(n,{color:t.dimmed,children:"\u2588"})]}),(0,r.jsx)(m,{marginTop:1,children:(0,r.jsx)(n,{color:t.dim,children:"\u21B5 create \xB7 esc back"})})]}):(0,r.jsxs)(m,{flexDirection:"column",borderStyle:"round",borderColor:t.primary,paddingX:2,paddingY:1,children:[(0,r.jsx)(n,{color:t.primary,bold:!0,children:"Chrome Profile"}),(0,r.jsxs)(m,{flexDirection:"column",marginTop:1,children:[(0,r.jsxs)(n,{color:d?t.statusPass:a===0?t.primary:t.dim,children:[a===0?"\u276F ":" ","Use temporary (no profile)",d?" \u25CF active":""]}),l.map((i,e)=>{let u=e+1===a,R=u?"\u276F ":" ",w=i.isActive?t.statusPass:u?t.primary:void 0;return(0,r.jsxs)(n,{color:w,children:[R,i.label,i.isActive?" \u25CF active":""]},i.name)}),(0,r.jsxs)(n,{color:a===l.length+1?t.primary:t.dim,children:[a===l.length+1?"\u276F ":" ","+ Create new"]})]}),(0,r.jsx)(m,{marginTop:1,children:(0,r.jsx)(n,{color:t.dim,children:"\u2191\u2193 navigate \xB7 \u21B5 select \xB7 esc back"})})]})}export{O as a,E as b,F as c};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
var r=class{constructor(e,s){this.baseUrl=e;typeof s=="string"?this.authHeader=`Bearer ${s}`:this.authHeader=`Basic ${Buffer.from(`${s.username}:${s.accessKey}`).toString("base64")}`}authHeader;headers(){return{Authorization:this.authHeader,"Content-Type":"application/json"}}async getTmsCredentials(){let e=await fetch(`${this.baseUrl}/auth/tms-credentials`,{method:"GET",headers:this.headers()});if(!e.ok)throw new Error(`Credential exchange failed: ${e.status} ${await e.text()}`);return await e.json()}async getPresignedUrls(e,s,a){let t=await fetch(`${this.baseUrl}/upload/presign`,{method:"POST",headers:this.headers(),body:JSON.stringify({test_id:e,session_id:s,files:a})});if(!t.ok)throw new Error(`Presign request failed: ${t.status} ${await t.text()}`);return await t.json()}async getScreenshotSas(){let e=await fetch(`${this.baseUrl}/upload/screenshot-sas`,{method:"GET",headers:this.headers()});if(!e.ok)throw new Error(`Screenshot SAS request failed: ${e.status} ${await e.text()}`);return await e.json()}};export{r as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a as d}from"./chunk-HCBYKLMW.js";import{r as t}from"./chunk-KPCYAR4I.js";import{a as s,b as n}from"./chunk-Q7JVDEOV.js";import{a as f}from"./chunk-6YGTRKDT.js";import{e as u}from"./chunk-UR6MHSHU.js";var c=u(f(),1);var R=u(f(),1);var m=u(f(),1);function b(o,r){let a=(0,m.useRef)(o);a.current=o,(0,m.useEffect)(()=>{if(r===null)return;let i=setInterval(()=>a.current(),r);return()=>clearInterval(i)},[r])}var B=u(d(),1),T=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"];function v({active:o=!0}){let[r,a]=(0,R.useState)(0);return b(()=>{a(i=>(i+1)%T.length)},o?80:null),(0,B.jsx)(n,{color:t.purple,children:o?T[r]:"\u25CF"})}var e=u(d(),1);function $(){return[{name:"convert",label:"Converting session data",status:"pending"},{name:"zip",label:"Compressing artifacts",status:"pending"},{name:"presign",label:"Requesting upload URLs",status:"pending"},{name:"upload",label:"Uploading to KaneAI",status:"pending"},{name:"finalize",label:"Finalizing test case",status:"pending"},{name:"code_export",label:"Downloading test code",status:"pending"}]}function k(o,r,a,i){return o.map(p=>p.name===r?{...p,status:a,detail:i}:p)}function I(o){let r=o/1e3;if(r<60)return`${r.toFixed(1)}s`;let a=Math.floor(r/60),i=Math.round(r%60);return`${a}m ${i}s`}function O(o){let[r,a]=(0,c.useState)(0),i=c.default.useRef(Date.now());return(0,c.useEffect)(()=>{if(!o)return;i.current=Date.now();let p=setInterval(()=>{a(Date.now()-i.current)},100);return()=>clearInterval(p)},[o]),r}function y({steps:o,status:r,testUrl:a,error:i}){let p=O(r==="uploading");return r==="uploading"?(0,e.jsxs)(s,{flexDirection:"column",paddingX:1,paddingY:1,children:[(0,e.jsxs)(s,{children:[(0,e.jsx)(n,{color:t.primary,children:"\u2601 "}),(0,e.jsx)(n,{color:t.primary,bold:!0,children:"Saving to KaneAI"}),(0,e.jsxs)(n,{color:t.dimmed,children:[" ",I(p)]})]}),(0,e.jsx)(s,{flexDirection:"column",marginTop:1,children:o.filter(l=>l.status!=="skipped").map((l,E,P)=>{let D=E===P.length-1?"\u2514\u2500":"\u251C\u2500",g=l.status==="done",x=l.status==="running",S=l.status==="failed";return(0,e.jsxs)(s,{children:[(0,e.jsxs)(n,{color:t.dimmed,children:[" ",D," "]}),(0,e.jsx)(s,{width:3,children:x?(0,e.jsx)(v,{}):g?(0,e.jsx)(n,{color:t.green,children:"\u2713"}):S?(0,e.jsx)(n,{color:t.red,children:"\u2717"}):(0,e.jsx)(n,{color:t.muted,children:"\u25CB"})}),(0,e.jsx)(n,{color:g?t.dim:x?t.base:S?t.red:t.muted,children:l.label}),l.detail&&(0,e.jsxs)(n,{color:t.dimmed,children:[" ",l.detail]})]},l.name)})}),(0,e.jsx)(s,{marginTop:1,children:(0,e.jsx)(n,{color:t.muted,children:" press Ctrl+C twice to force exit"})})]}):r==="success"?(0,e.jsx)(e.Fragment,{}):(0,e.jsxs)(s,{flexDirection:"column",paddingX:1,paddingY:1,children:[(0,e.jsxs)(s,{children:[(0,e.jsx)(n,{color:t.red,children:"\u2601 "}),(0,e.jsx)(n,{color:t.red,bold:!0,children:"Save failed"})]}),i&&(0,e.jsxs)(s,{marginTop:0,children:[(0,e.jsx)(n,{color:t.dimmed,children:" "}),(0,e.jsx)(n,{color:t.dim,children:i})]})]})}export{b as a,v as b,$ as c,k as d,y as e};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{c as Ae}from"./chunk-UR6MHSHU.js";var Nr=Ae(f=>{"use strict";var K=Symbol.for("react.element"),rn=Symbol.for("react.portal"),tn=Symbol.for("react.fragment"),nn=Symbol.for("react.strict_mode"),an=Symbol.for("react.profiler"),on=Symbol.for("react.provider"),un=Symbol.for("react.context"),sn=Symbol.for("react.forward_ref"),cn=Symbol.for("react.suspense"),fn=Symbol.for("react.memo"),ln=Symbol.for("react.lazy"),kr=Symbol.iterator;function pn(t){return t===null||typeof t!="object"?null:(t=kr&&t[kr]||t["@@iterator"],typeof t=="function"?t:null)}var jr={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},xr=Object.assign,Ir={};function W(t,u,d){this.props=t,this.context=u,this.refs=Ir,this.updater=d||jr}W.prototype.isReactComponent={};W.prototype.setState=function(t,u){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,u,"setState")};W.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function $r(){}$r.prototype=W.prototype;function xe(t,u,d){this.props=t,this.context=u,this.refs=Ir,this.updater=d||jr}var Ie=xe.prototype=new $r;Ie.constructor=xe;xr(Ie,W.prototype);Ie.isPureReactComponent=!0;var Pr=Array.isArray,Dr=Object.prototype.hasOwnProperty,$e={current:null},Fr={key:!0,ref:!0,__self:!0,__source:!0};function Lr(t,u,d){var y,h={},b=null,C=null;if(u!=null)for(y in u.ref!==void 0&&(C=u.ref),u.key!==void 0&&(b=""+u.key),u)Dr.call(u,y)&&!Fr.hasOwnProperty(y)&&(h[y]=u[y]);var _=arguments.length-2;if(_===1)h.children=d;else if(1<_){for(var m=Array(_),T=0;T<_;T++)m[T]=arguments[T+2];h.children=m}if(t&&t.defaultProps)for(y in _=t.defaultProps,_)h[y]===void 0&&(h[y]=_[y]);return{$$typeof:K,type:t,key:b,ref:C,props:h,_owner:$e.current}}function dn(t,u){return{$$typeof:K,type:t.type,key:u,ref:t.ref,props:t.props,_owner:t._owner}}function De(t){return typeof t=="object"&&t!==null&&t.$$typeof===K}function vn(t){var u={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(d){return u[d]})}var Ar=/\/+/g;function je(t,u){return typeof t=="object"&&t!==null&&t.key!=null?vn(""+t.key):u.toString(36)}function se(t,u,d,y,h){var b=typeof t;(b==="undefined"||b==="boolean")&&(t=null);var C=!1;if(t===null)C=!0;else switch(b){case"string":case"number":C=!0;break;case"object":switch(t.$$typeof){case K:case rn:C=!0}}if(C)return C=t,h=h(C),t=y===""?"."+je(C,0):y,Pr(h)?(d="",t!=null&&(d=t.replace(Ar,"$&/")+"/"),se(h,u,d,"",function(T){return T})):h!=null&&(De(h)&&(h=dn(h,d+(!h.key||C&&C.key===h.key?"":(""+h.key).replace(Ar,"$&/")+"/")+t)),u.push(h)),1;if(C=0,y=y===""?".":y+":",Pr(t))for(var _=0;_<t.length;_++){b=t[_];var m=y+je(b,_);C+=se(b,u,d,m,h)}else if(m=pn(t),typeof m=="function")for(t=m.call(t),_=0;!(b=t.next()).done;)b=b.value,m=y+je(b,_++),C+=se(b,u,d,m,h);else if(b==="object")throw u=String(t),Error("Objects are not valid as a React child (found: "+(u==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":u)+"). If you meant to render a collection of children, use an array instead.");return C}function ie(t,u,d){if(t==null)return t;var y=[],h=0;return se(t,y,"","",function(b){return u.call(d,b,h++)}),y}function yn(t){if(t._status===-1){var u=t._result;u=u(),u.then(function(d){(t._status===0||t._status===-1)&&(t._status=1,t._result=d)},function(d){(t._status===0||t._status===-1)&&(t._status=2,t._result=d)}),t._status===-1&&(t._status=0,t._result=u)}if(t._status===1)return t._result.default;throw t._result}var A={current:null},ce={transition:null},hn={ReactCurrentDispatcher:A,ReactCurrentBatchConfig:ce,ReactCurrentOwner:$e};function Mr(){throw Error("act(...) is not supported in production builds of React.")}f.Children={map:ie,forEach:function(t,u,d){ie(t,function(){u.apply(this,arguments)},d)},count:function(t){var u=0;return ie(t,function(){u++}),u},toArray:function(t){return ie(t,function(u){return u})||[]},only:function(t){if(!De(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};f.Component=W;f.Fragment=tn;f.Profiler=an;f.PureComponent=xe;f.StrictMode=nn;f.Suspense=cn;f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=hn;f.act=Mr;f.cloneElement=function(t,u,d){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var y=xr({},t.props),h=t.key,b=t.ref,C=t._owner;if(u!=null){if(u.ref!==void 0&&(b=u.ref,C=$e.current),u.key!==void 0&&(h=""+u.key),t.type&&t.type.defaultProps)var _=t.type.defaultProps;for(m in u)Dr.call(u,m)&&!Fr.hasOwnProperty(m)&&(y[m]=u[m]===void 0&&_!==void 0?_[m]:u[m])}var m=arguments.length-2;if(m===1)y.children=d;else if(1<m){_=Array(m);for(var T=0;T<m;T++)_[T]=arguments[T+2];y.children=_}return{$$typeof:K,type:t.type,key:h,ref:b,props:y,_owner:C}};f.createContext=function(t){return t={$$typeof:un,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:on,_context:t},t.Consumer=t};f.createElement=Lr;f.createFactory=function(t){var u=Lr.bind(null,t);return u.type=t,u};f.createRef=function(){return{current:null}};f.forwardRef=function(t){return{$$typeof:sn,render:t}};f.isValidElement=De;f.lazy=function(t){return{$$typeof:ln,_payload:{_status:-1,_result:t},_init:yn}};f.memo=function(t,u){return{$$typeof:fn,type:t,compare:u===void 0?null:u}};f.startTransition=function(t){var u=ce.transition;ce.transition={};try{t()}finally{ce.transition=u}};f.unstable_act=Mr;f.useCallback=function(t,u){return A.current.useCallback(t,u)};f.useContext=function(t){return A.current.useContext(t)};f.useDebugValue=function(){};f.useDeferredValue=function(t){return A.current.useDeferredValue(t)};f.useEffect=function(t,u){return A.current.useEffect(t,u)};f.useId=function(){return A.current.useId()};f.useImperativeHandle=function(t,u,d){return A.current.useImperativeHandle(t,u,d)};f.useInsertionEffect=function(t,u){return A.current.useInsertionEffect(t,u)};f.useLayoutEffect=function(t,u){return A.current.useLayoutEffect(t,u)};f.useMemo=function(t,u){return A.current.useMemo(t,u)};f.useReducer=function(t,u,d){return A.current.useReducer(t,u,d)};f.useRef=function(t){return A.current.useRef(t)};f.useState=function(t){return A.current.useState(t)};f.useSyncExternalStore=function(t,u,d){return A.current.useSyncExternalStore(t,u,d)};f.useTransition=function(){return A.current.useTransition()};f.version="18.3.1"});var Vr=Ae((l,fe)=>{"use strict";process.env.NODE_ENV!=="production"&&(function(){"use strict";typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t="18.3.1",u=Symbol.for("react.element"),d=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),_=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),le=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),Ur=Symbol.for("react.offscreen"),Le=Symbol.iterator,Wr="@@iterator";function Me(e){if(e===null||typeof e!="object")return null;var r=Le&&e[Le]||e[Wr];return typeof r=="function"?r:null}var Ne={current:null},F={transition:null},k={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},j={current:null},Y={},G=null;function Ve(e){G=e}Y.setExtraStackFrame=function(e){G=e},Y.getCurrentStack=null,Y.getStackAddendum=function(){var e="";G&&(e+=G);var r=Y.getCurrentStack;return r&&(e+=r()||""),e};var Yr=!1,zr=!1,Br=!1,Hr=!1,Kr=!1,L={ReactCurrentDispatcher:Ne,ReactCurrentBatchConfig:F,ReactCurrentOwner:j};L.ReactDebugCurrentFrame=Y,L.ReactCurrentActQueue=k;function M(e){{for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];Ue("warn",e,n)}}function v(e){{for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];Ue("error",e,n)}}function Ue(e,r,n){{var a=L.ReactDebugCurrentFrame,o=a.getStackAddendum();o!==""&&(r+="%s",n=n.concat([o]));var s=n.map(function(i){return String(i)});s.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,s)}}var We={};function pe(e,r){{var n=e.constructor,a=n&&(n.displayName||n.name)||"ReactClass",o=a+"."+r;if(We[o])return;v("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",r,a),We[o]=!0}}var Ye={isMounted:function(e){return!1},enqueueForceUpdate:function(e,r,n){pe(e,"forceUpdate")},enqueueReplaceState:function(e,r,n,a){pe(e,"replaceState")},enqueueSetState:function(e,r,n,a){pe(e,"setState")}},x=Object.assign,de={};Object.freeze(de);function $(e,r,n){this.props=e,this.context=r,this.refs=de,this.updater=n||Ye}$.prototype.isReactComponent={},$.prototype.setState=function(e,r){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,r,"setState")},$.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};{var ve={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},qr=function(e,r){Object.defineProperty($.prototype,e,{get:function(){M("%s(...) is deprecated in plain JavaScript React classes. %s",r[0],r[1])}})};for(var ye in ve)ve.hasOwnProperty(ye)&&qr(ye,ve[ye])}function ze(){}ze.prototype=$.prototype;function he(e,r,n){this.props=e,this.context=r,this.refs=de,this.updater=n||Ye}var me=he.prototype=new ze;me.constructor=he,x(me,$.prototype),me.isPureReactComponent=!0;function Gr(){var e={current:null};return Object.seal(e),e}var Qr=Array.isArray;function Q(e){return Qr(e)}function Xr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,n=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function Jr(e){try{return Be(e),!1}catch{return!0}}function Be(e){return""+e}function X(e){if(Jr(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Xr(e)),Be(e)}function Zr(e,r,n){var a=e.displayName;if(a)return a;var o=r.displayName||r.name||"";return o!==""?n+"("+o+")":n}function He(e){return e.displayName||"Context"}function I(e){if(e==null)return null;if(typeof e.tag=="number"&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case y:return"Fragment";case d:return"Portal";case b:return"Profiler";case h:return"StrictMode";case T:return"Suspense";case le:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var r=e;return He(r)+".Consumer";case C:var n=e;return He(n._context)+".Provider";case m:return Zr(e,e.render,"ForwardRef");case D:var a=e.displayName||null;return a!==null?a:I(e.type)||"Memo";case q:{var o=e,s=o._payload,i=o._init;try{return I(i(s))}catch{return null}}}return null}var z=Object.prototype.hasOwnProperty,Ke={key:!0,ref:!0,__self:!0,__source:!0},qe,Ge,ge;ge={};function Qe(e){if(z.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Xe(e){if(z.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function et(e,r){var n=function(){qe||(qe=!0,v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function rt(e,r){var n=function(){Ge||(Ge=!0,v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}function tt(e){if(typeof e.ref=="string"&&j.current&&e.__self&&j.current.stateNode!==e.__self){var r=I(j.current.type);ge[r]||(v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',r,e.ref),ge[r]=!0)}}var _e=function(e,r,n,a,o,s,i){var c={$$typeof:u,type:e,key:r,ref:n,props:i,_owner:s};return c._store={},Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c};function nt(e,r,n){var a,o={},s=null,i=null,c=null,p=null;if(r!=null){Qe(r)&&(i=r.ref,tt(r)),Xe(r)&&(X(r.key),s=""+r.key),c=r.__self===void 0?null:r.__self,p=r.__source===void 0?null:r.__source;for(a in r)z.call(r,a)&&!Ke.hasOwnProperty(a)&&(o[a]=r[a])}var g=arguments.length-2;if(g===1)o.children=n;else if(g>1){for(var E=Array(g),R=0;R<g;R++)E[R]=arguments[R+2];Object.freeze&&Object.freeze(E),o.children=E}if(e&&e.defaultProps){var w=e.defaultProps;for(a in w)o[a]===void 0&&(o[a]=w[a])}if(s||i){var S=typeof e=="function"?e.displayName||e.name||"Unknown":e;s&&et(o,S),i&&rt(o,S)}return _e(e,s,i,c,p,j.current,o)}function at(e,r){var n=_e(e.type,r,e.ref,e._self,e._source,e._owner,e.props);return n}function ot(e,r,n){if(e==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var a,o=x({},e.props),s=e.key,i=e.ref,c=e._self,p=e._source,g=e._owner;if(r!=null){Qe(r)&&(i=r.ref,g=j.current),Xe(r)&&(X(r.key),s=""+r.key);var E;e.type&&e.type.defaultProps&&(E=e.type.defaultProps);for(a in r)z.call(r,a)&&!Ke.hasOwnProperty(a)&&(r[a]===void 0&&E!==void 0?o[a]=E[a]:o[a]=r[a])}var R=arguments.length-2;if(R===1)o.children=n;else if(R>1){for(var w=Array(R),S=0;S<R;S++)w[S]=arguments[S+2];o.children=w}return _e(e.type,s,i,c,p,g,o)}function N(e){return typeof e=="object"&&e!==null&&e.$$typeof===u}var Je=".",ut=":";function it(e){var r=/[=:]/g,n={"=":"=0",":":"=2"},a=e.replace(r,function(o){return n[o]});return"$"+a}var Ze=!1,st=/\/+/g;function er(e){return e.replace(st,"$&/")}function be(e,r){return typeof e=="object"&&e!==null&&e.key!=null?(X(e.key),it(""+e.key)):r.toString(36)}function J(e,r,n,a,o){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(s){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case u:case d:i=!0}}if(i){var c=e,p=o(c),g=a===""?Je+be(c,0):a;if(Q(p)){var E="";g!=null&&(E=er(g)+"/"),J(p,r,E,"",function(en){return en})}else p!=null&&(N(p)&&(p.key&&(!c||c.key!==p.key)&&X(p.key),p=at(p,n+(p.key&&(!c||c.key!==p.key)?er(""+p.key)+"/":"")+g)),r.push(p));return 1}var R,w,S=0,O=a===""?Je:a+ut;if(Q(e))for(var ue=0;ue<e.length;ue++)R=e[ue],w=O+be(R,ue),S+=J(R,r,n,w,o);else{var Pe=Me(e);if(typeof Pe=="function"){var Sr=e;Pe===Sr.entries&&(Ze||M("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ze=!0);for(var Jt=Pe.call(Sr),Or,Zt=0;!(Or=Jt.next()).done;)R=Or.value,w=O+be(R,Zt++),S+=J(R,r,n,w,o)}else if(s==="object"){var Tr=String(e);throw new Error("Objects are not valid as a React child (found: "+(Tr==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":Tr)+"). If you meant to render a collection of children, use an array instead.")}}return S}function Z(e,r,n){if(e==null)return e;var a=[],o=0;return J(e,a,"","",function(s){return r.call(n,s,o++)}),a}function ct(e){var r=0;return Z(e,function(){r++}),r}function ft(e,r,n){Z(e,function(){r.apply(this,arguments)},n)}function lt(e){return Z(e,function(r){return r})||[]}function pt(e){if(!N(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}function dt(e){var r={$$typeof:_,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};r.Provider={$$typeof:C,_context:r};var n=!1,a=!1,o=!1;{var s={$$typeof:_,_context:r};Object.defineProperties(s,{Provider:{get:function(){return a||(a=!0,v("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),r.Provider},set:function(i){r.Provider=i}},_currentValue:{get:function(){return r._currentValue},set:function(i){r._currentValue=i}},_currentValue2:{get:function(){return r._currentValue2},set:function(i){r._currentValue2=i}},_threadCount:{get:function(){return r._threadCount},set:function(i){r._threadCount=i}},Consumer:{get:function(){return n||(n=!0,v("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),r.Consumer}},displayName:{get:function(){return r.displayName},set:function(i){o||(M("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",i),o=!0)}}}),r.Consumer=s}return r._currentRenderer=null,r._currentRenderer2=null,r}var B=-1,Ee=0,rr=1,vt=2;function yt(e){if(e._status===B){var r=e._result,n=r();if(n.then(function(s){if(e._status===Ee||e._status===B){var i=e;i._status=rr,i._result=s}},function(s){if(e._status===Ee||e._status===B){var i=e;i._status=vt,i._result=s}}),e._status===B){var a=e;a._status=Ee,a._result=n}}if(e._status===rr){var o=e._result;return o===void 0&&v(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
3
|
+
|
|
4
|
+
Your code should look like:
|
|
5
|
+
const MyComponent = lazy(() => import('./MyComponent'))
|
|
6
|
+
|
|
7
|
+
Did you accidentally put curly braces around the import?`,o),"default"in o||v(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
8
|
+
|
|
9
|
+
Your code should look like:
|
|
10
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,o),o.default}else throw e._result}function ht(e){var r={_status:B,_result:e},n={$$typeof:q,_payload:r,_init:yt};{var a,o;Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return a},set:function(s){v("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),a=s,Object.defineProperty(n,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return o},set:function(s){v("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),o=s,Object.defineProperty(n,"propTypes",{enumerable:!0})}}})}return n}function mt(e){e!=null&&e.$$typeof===D?v("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof e!="function"?v("forwardRef requires a render function but was given %s.",e===null?"null":typeof e):e.length!==0&&e.length!==2&&v("forwardRef render functions accept exactly two parameters: props and ref. %s",e.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),e!=null&&(e.defaultProps!=null||e.propTypes!=null)&&v("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var r={$$typeof:m,render:e};{var n;Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(a){n=a,!e.name&&!e.displayName&&(e.displayName=a)}})}return r}var tr;tr=Symbol.for("react.module.reference");function nr(e){return!!(typeof e=="string"||typeof e=="function"||e===y||e===b||Kr||e===h||e===T||e===le||Hr||e===Ur||Yr||zr||Br||typeof e=="object"&&e!==null&&(e.$$typeof===q||e.$$typeof===D||e.$$typeof===C||e.$$typeof===_||e.$$typeof===m||e.$$typeof===tr||e.getModuleId!==void 0))}function gt(e,r){nr(e)||v("memo: The first argument must be a component. Instead received: %s",e===null?"null":typeof e);var n={$$typeof:D,type:e,compare:r===void 0?null:r};{var a;Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return a},set:function(o){a=o,!e.name&&!e.displayName&&(e.displayName=o)}})}return n}function P(){var e=Ne.current;return e===null&&v(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
11
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
12
|
+
2. You might be breaking the Rules of Hooks
|
|
13
|
+
3. You might have more than one copy of React in the same app
|
|
14
|
+
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}function _t(e){var r=P();if(e._context!==void 0){var n=e._context;n.Consumer===e?v("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):n.Provider===e&&v("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return r.useContext(e)}function bt(e){var r=P();return r.useState(e)}function Et(e,r,n){var a=P();return a.useReducer(e,r,n)}function Rt(e){var r=P();return r.useRef(e)}function Ct(e,r){var n=P();return n.useEffect(e,r)}function wt(e,r){var n=P();return n.useInsertionEffect(e,r)}function St(e,r){var n=P();return n.useLayoutEffect(e,r)}function Ot(e,r){var n=P();return n.useCallback(e,r)}function Tt(e,r){var n=P();return n.useMemo(e,r)}function kt(e,r,n){var a=P();return a.useImperativeHandle(e,r,n)}function Pt(e,r){{var n=P();return n.useDebugValue(e,r)}}function At(){var e=P();return e.useTransition()}function jt(e){var r=P();return r.useDeferredValue(e)}function xt(){var e=P();return e.useId()}function It(e,r,n){var a=P();return a.useSyncExternalStore(e,r,n)}var H=0,ar,or,ur,ir,sr,cr,fr;function lr(){}lr.__reactDisabledLog=!0;function $t(){{if(H===0){ar=console.log,or=console.info,ur=console.warn,ir=console.error,sr=console.group,cr=console.groupCollapsed,fr=console.groupEnd;var e={configurable:!0,enumerable:!0,value:lr,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}H++}}function Dt(){{if(H--,H===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:x({},e,{value:ar}),info:x({},e,{value:or}),warn:x({},e,{value:ur}),error:x({},e,{value:ir}),group:x({},e,{value:sr}),groupCollapsed:x({},e,{value:cr}),groupEnd:x({},e,{value:fr})})}H<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Re=L.ReactCurrentDispatcher,Ce;function ee(e,r,n){{if(Ce===void 0)try{throw Error()}catch(o){var a=o.stack.trim().match(/\n( *(at )?)/);Ce=a&&a[1]||""}return`
|
|
15
|
+
`+Ce+e}}var we=!1,re;{var Ft=typeof WeakMap=="function"?WeakMap:Map;re=new Ft}function pr(e,r){if(!e||we)return"";{var n=re.get(e);if(n!==void 0)return n}var a;we=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var s;s=Re.current,Re.current=null,$t();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(O){a=O}Reflect.construct(e,[],i)}else{try{i.call()}catch(O){a=O}e.call(i.prototype)}}else{try{throw Error()}catch(O){a=O}e()}}catch(O){if(O&&a&&typeof O.stack=="string"){for(var c=O.stack.split(`
|
|
16
|
+
`),p=a.stack.split(`
|
|
17
|
+
`),g=c.length-1,E=p.length-1;g>=1&&E>=0&&c[g]!==p[E];)E--;for(;g>=1&&E>=0;g--,E--)if(c[g]!==p[E]){if(g!==1||E!==1)do if(g--,E--,E<0||c[g]!==p[E]){var R=`
|
|
18
|
+
`+c[g].replace(" at new "," at ");return e.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",e.displayName)),typeof e=="function"&&re.set(e,R),R}while(g>=1&&E>=0);break}}}finally{we=!1,Re.current=s,Dt(),Error.prepareStackTrace=o}var w=e?e.displayName||e.name:"",S=w?ee(w):"";return typeof e=="function"&&re.set(e,S),S}function Lt(e,r,n){return pr(e,!1)}function Mt(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function te(e,r,n){if(e==null)return"";if(typeof e=="function")return pr(e,Mt(e));if(typeof e=="string")return ee(e);switch(e){case T:return ee("Suspense");case le:return ee("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case m:return Lt(e.render);case D:return te(e.type,r,n);case q:{var a=e,o=a._payload,s=a._init;try{return te(s(o),r,n)}catch{}}}return""}var dr={},vr=L.ReactDebugCurrentFrame;function ne(e){if(e){var r=e._owner,n=te(e.type,e._source,r?r.type:null);vr.setExtraStackFrame(n)}else vr.setExtraStackFrame(null)}function Nt(e,r,n,a,o){{var s=Function.call.bind(z);for(var i in e)if(s(e,i)){var c=void 0;try{if(typeof e[i]!="function"){var p=Error((a||"React class")+": "+n+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}c=e[i](r,i,a,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(g){c=g}c&&!(c instanceof Error)&&(ne(o),v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",a||"React class",n,i,typeof c),ne(null)),c instanceof Error&&!(c.message in dr)&&(dr[c.message]=!0,ne(o),v("Failed %s type: %s",n,c.message),ne(null))}}}function V(e){if(e){var r=e._owner,n=te(e.type,e._source,r?r.type:null);Ve(n)}else Ve(null)}var Se;Se=!1;function yr(){if(j.current){var e=I(j.current.type);if(e)return`
|
|
19
|
+
|
|
20
|
+
Check the render method of \``+e+"`."}return""}function Vt(e){if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),n=e.lineNumber;return`
|
|
21
|
+
|
|
22
|
+
Check your code at `+r+":"+n+"."}return""}function Ut(e){return e!=null?Vt(e.__source):""}var hr={};function Wt(e){var r=yr();if(!r){var n=typeof e=="string"?e:e.displayName||e.name;n&&(r=`
|
|
23
|
+
|
|
24
|
+
Check the top-level render call using <`+n+">.")}return r}function mr(e,r){if(!(!e._store||e._store.validated||e.key!=null)){e._store.validated=!0;var n=Wt(r);if(!hr[n]){hr[n]=!0;var a="";e&&e._owner&&e._owner!==j.current&&(a=" It was passed a child from "+I(e._owner.type)+"."),V(e),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,a),V(null)}}}function gr(e,r){if(typeof e=="object"){if(Q(e))for(var n=0;n<e.length;n++){var a=e[n];N(a)&&mr(a,r)}else if(N(e))e._store&&(e._store.validated=!0);else if(e){var o=Me(e);if(typeof o=="function"&&o!==e.entries)for(var s=o.call(e),i;!(i=s.next()).done;)N(i.value)&&mr(i.value,r)}}}function _r(e){{var r=e.type;if(r==null||typeof r=="string")return;var n;if(typeof r=="function")n=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===m||r.$$typeof===D))n=r.propTypes;else return;if(n){var a=I(r);Nt(n,e.props,"prop",a,e)}else if(r.PropTypes!==void 0&&!Se){Se=!0;var o=I(r);v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Yt(e){{for(var r=Object.keys(e.props),n=0;n<r.length;n++){var a=r[n];if(a!=="children"&&a!=="key"){V(e),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),V(null);break}}e.ref!==null&&(V(e),v("Invalid attribute `ref` supplied to `React.Fragment`."),V(null))}}function br(e,r,n){var a=nr(e);if(!a){var o="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(o+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var s=Ut(r);s?o+=s:o+=yr();var i;e===null?i="null":Q(e)?i="array":e!==void 0&&e.$$typeof===u?(i="<"+(I(e.type)||"Unknown")+" />",o=" Did you accidentally export a JSX literal instead of a component?"):i=typeof e,v("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",i,o)}var c=nt.apply(this,arguments);if(c==null)return c;if(a)for(var p=2;p<arguments.length;p++)gr(arguments[p],e);return e===y?Yt(c):_r(c),c}var Er=!1;function zt(e){var r=br.bind(null,e);return r.type=e,Er||(Er=!0,M("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(r,"type",{enumerable:!1,get:function(){return M("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),r}function Bt(e,r,n){for(var a=ot.apply(this,arguments),o=2;o<arguments.length;o++)gr(arguments[o],a.type);return _r(a),a}function Ht(e,r){var n=F.transition;F.transition={};var a=F.transition;F.transition._updatedFibers=new Set;try{e()}finally{if(F.transition=n,n===null&&a._updatedFibers){var o=a._updatedFibers.size;o>10&&M("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),a._updatedFibers.clear()}}}var Rr=!1,ae=null;function Kt(e){if(ae===null)try{var r=("require"+Math.random()).slice(0,7),n=fe&&fe[r];ae=n.call(fe,"timers").setImmediate}catch{ae=function(o){Rr===!1&&(Rr=!0,typeof MessageChannel>"u"&&v("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var s=new MessageChannel;s.port1.onmessage=o,s.port2.postMessage(void 0)}}return ae(e)}var U=0,Cr=!1;function wr(e){{var r=U;U++,k.current===null&&(k.current=[]);var n=k.isBatchingLegacy,a;try{if(k.isBatchingLegacy=!0,a=e(),!n&&k.didScheduleLegacyUpdate){var o=k.current;o!==null&&(k.didScheduleLegacyUpdate=!1,ke(o))}}catch(w){throw oe(r),w}finally{k.isBatchingLegacy=n}if(a!==null&&typeof a=="object"&&typeof a.then=="function"){var s=a,i=!1,c={then:function(w,S){i=!0,s.then(function(O){oe(r),U===0?Oe(O,w,S):w(O)},function(O){oe(r),S(O)})}};return!Cr&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){i||(Cr=!0,v("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),c}else{var p=a;if(oe(r),U===0){var g=k.current;g!==null&&(ke(g),k.current=null);var E={then:function(w,S){k.current===null?(k.current=[],Oe(p,w,S)):w(p)}};return E}else{var R={then:function(w,S){w(p)}};return R}}}}function oe(e){e!==U-1&&v("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),U=e}function Oe(e,r,n){{var a=k.current;if(a!==null)try{ke(a),Kt(function(){a.length===0?(k.current=null,r(e)):Oe(e,r,n)})}catch(o){n(o)}else r(e)}}var Te=!1;function ke(e){if(!Te){Te=!0;var r=0;try{for(;r<e.length;r++){var n=e[r];do n=n(!0);while(n!==null)}e.length=0}catch(a){throw e=e.slice(r+1),a}finally{Te=!1}}}var qt=br,Gt=Bt,Qt=zt,Xt={map:Z,forEach:ft,count:ct,toArray:lt,only:pt};l.Children=Xt,l.Component=$,l.Fragment=y,l.Profiler=b,l.PureComponent=he,l.StrictMode=h,l.Suspense=T,l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,l.act=wr,l.cloneElement=Gt,l.createContext=dt,l.createElement=qt,l.createFactory=Qt,l.createRef=Gr,l.forwardRef=mt,l.isValidElement=N,l.lazy=ht,l.memo=gt,l.startTransition=Ht,l.unstable_act=wr,l.useCallback=Ot,l.useContext=_t,l.useDebugValue=Pt,l.useDeferredValue=jt,l.useEffect=Ct,l.useId=xt,l.useImperativeHandle=kt,l.useInsertionEffect=wt,l.useLayoutEffect=St,l.useMemo=Tt,l.useReducer=Et,l.useRef=Rt,l.useState=bt,l.useSyncExternalStore=It,l.useTransition=At,l.version=t,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()});var mn=Ae((_n,Fe)=>{process.env.NODE_ENV==="production"?Fe.exports=Nr():Fe.exports=Vr()});export{mn as a};
|
|
25
|
+
/*! Bundled license information:
|
|
26
|
+
|
|
27
|
+
react/cjs/react.production.min.js:
|
|
28
|
+
(**
|
|
29
|
+
* @license React
|
|
30
|
+
* react.production.min.js
|
|
31
|
+
*
|
|
32
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
33
|
+
*
|
|
34
|
+
* This source code is licensed under the MIT license found in the
|
|
35
|
+
* LICENSE file in the root directory of this source tree.
|
|
36
|
+
*)
|
|
37
|
+
|
|
38
|
+
react/cjs/react.development.js:
|
|
39
|
+
(**
|
|
40
|
+
* @license React
|
|
41
|
+
* react.development.js
|
|
42
|
+
*
|
|
43
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
44
|
+
*
|
|
45
|
+
* This source code is licensed under the MIT license found in the
|
|
46
|
+
* LICENSE file in the root directory of this source tree.
|
|
47
|
+
*)
|
|
48
|
+
*/
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a as f,b as u}from"./chunk-NYYKIIZC.js";import{a as p}from"./chunk-XQBQB3VZ.js";import{a as m}from"./chunk-HCBYKLMW.js";import{a as E}from"./chunk-6YGTRKDT.js";import{e as a}from"./chunk-UR6MHSHU.js";var r=a(E(),1);var g=a(m(),1);function b(e,o,n){return{id:e,label:`${o} (${e})`,isActive:e===n}}function N({resolver:e,currentProjectId:o,env:n,onSelect:j,onCancel:P}){let[d,v]=(0,r.useState)([]),[L,s]=(0,r.useState)(!0),[h,i]=(0,r.useState)(null);return(0,r.useEffect)(()=>{if(!e){i("Login first to browse projects"),s(!1);return}(async()=>{try{let t=e.cached;if(!t){i("Login first to browse projects"),s(!1);return}let c=f(n),y=await new p(c.tmsBaseUrl,t.username,t.access_key).listProjects();v(y.map(l=>b(l.project_id,l.name,o)))}catch(t){i(t instanceof Error?t.message:String(t))}finally{s(!1)}})()},[e,o,n]),(0,g.jsx)(u,{title:"Projects",items:d,loading:L,error:h,itemNoun:"projects",onSelect:t=>{let c=t.label.replace(` (${t.id})`,"");j(t.id,c)},onCancel:P})}export{b as a,N as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a as u,b as g}from"./chunk-NYYKIIZC.js";import{a as d}from"./chunk-XQBQB3VZ.js";import{a as f}from"./chunk-HCBYKLMW.js";import{a as P}from"./chunk-6YGTRKDT.js";import{e as m}from"./chunk-UR6MHSHU.js";var r=m(P(),1);var p=m(f(),1);function R(t,s,n,o){return{id:t,label:`${s} (${t}) \xB7 ${n} tests`,isActive:t===o}}function A({resolver:t,projectId:s,currentFolderId:n,env:o,onSelect:v,onCancel:L}){let[h,y]=(0,r.useState)([]),[E,i]=(0,r.useState)(!0),[b,l]=(0,r.useState)(null);return(0,r.useEffect)(()=>{if(!t){l("Login first to browse folders"),i(!1);return}(async()=>{try{let e=t.cached;if(!e){l("Login first to browse folders"),i(!1);return}let a=u(o),F=await new d(a.tmsBaseUrl,e.username,e.access_key).listFolders(s);y(F.map(c=>R(c.id,c.name,c.test_cases_count,n)))}catch(e){l(e instanceof Error?e.message:String(e))}finally{i(!1)}})()},[t,s,n,o]),(0,p.jsx)(g,{title:"Folders",items:h,loading:E,error:b,itemNoun:"folders",onSelect:e=>{let a=e.label.split(" (")[0];v(e.id,a)},onCancel:L})}export{R as a,A as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a as c}from"./chunk-HCBYKLMW.js";import{r as a}from"./chunk-KPCYAR4I.js";import{a as s,b as u,j as p}from"./chunk-Q7JVDEOV.js";import{a as T}from"./chunk-6YGTRKDT.js";import{e as l}from"./chunk-UR6MHSHU.js";var x=l(T(),1);function g(n,e){if(!e)return n;let i=n.trim()||e;return`\x1B]8;;${e}\x07${i}\x1B]8;;\x07`}var r=l(c(),1);function h({shareableLink:n,testCaseLink:e,codeExportDir:i,autoExit:m=!0}){let{exit:f}=p();(0,x.useEffect)(()=>{if(!m)return;let t=setTimeout(()=>f(),100);return()=>clearTimeout(t)},[f,m]);let o=[];return n&&o.push({label:"ShareLink",url:n}),e&&o.push({label:"TestCase",url:e}),i&&o.push({label:"CodeExport",url:i,linkUrl:`file://${i}`}),o.length===0?(0,r.jsx)(r.Fragment,{}):(0,r.jsx)(s,{flexDirection:"column",marginTop:1,marginLeft:1,children:o.map(t=>(0,r.jsxs)(s,{flexDirection:"column",marginBottom:1,children:[(0,r.jsxs)(u,{color:a.primary,children:[t.label,":"]}),(0,r.jsx)(u,{color:a.dim,children:g(t.url,t.linkUrl??t.url)})]},t.label))})}export{h as a};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a as Oe}from"./chunk-6YGTRKDT.js";import{c as H}from"./chunk-UR6MHSHU.js";var Ce=H(W=>{"use strict";var dr=Oe(),vr=Symbol.for("react.element"),pr=Symbol.for("react.fragment"),gr=Object.prototype.hasOwnProperty,yr=dr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,br={key:!0,ref:!0,__self:!0,__source:!0};function Se(_,d,j){var v,b={},R=null,S=null;j!==void 0&&(R=""+j),d.key!==void 0&&(R=""+d.key),d.ref!==void 0&&(S=d.ref);for(v in d)gr.call(d,v)&&!br.hasOwnProperty(v)&&(b[v]=d[v]);if(_&&_.defaultProps)for(v in d=_.defaultProps,d)b[v]===void 0&&(b[v]=d[v]);return{$$typeof:vr,type:_,key:R,ref:S,props:b,_owner:yr.current}}W.Fragment=pr;W.jsx=Se;W.jsxs=Se});var we=H(Y=>{"use strict";process.env.NODE_ENV!=="production"&&(function(){"use strict";var _=Oe(),d=Symbol.for("react.element"),j=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),Z=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),Pe=Symbol.for("react.offscreen"),Q=Symbol.iterator,je="@@iterator";function ke(e){if(e===null||typeof e!="object")return null;var r=Q&&e[Q]||e[je];return typeof r=="function"?r:null}var m=_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function l(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];xe("error",e,t)}}function xe(e,r,t){{var n=m.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var u=t.map(function(i){return String(i)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var De=!1,Fe=!1,Ae=!1,Ie=!1,We=!1,ee;ee=Symbol.for("react.module.reference");function Ye(e){return!!(typeof e=="string"||typeof e=="function"||e===v||e===R||We||e===b||e===$||e===L||Ie||e===Pe||De||Fe||Ae||typeof e=="object"&&e!==null&&(e.$$typeof===V||e.$$typeof===x||e.$$typeof===S||e.$$typeof===Z||e.$$typeof===k||e.$$typeof===ee||e.getModuleId!==void 0))}function $e(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function re(e){return e.displayName||"Context"}function y(e){if(e==null)return null;if(typeof e.tag=="number"&&l("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case v:return"Fragment";case j:return"Portal";case R:return"Profiler";case b:return"StrictMode";case $:return"Suspense";case L:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Z:var r=e;return re(r)+".Consumer";case S:var t=e;return re(t._context)+".Provider";case k:return $e(e,e.render,"ForwardRef");case x:var n=e.displayName||null;return n!==null?n:y(e.type)||"Memo";case V:{var o=e,u=o._payload,i=o._init;try{return y(i(u))}catch{return null}}}return null}var h=Object.assign,C=0,te,ne,ae,ie,oe,ue,se;function fe(){}fe.__reactDisabledLog=!0;function Le(){{if(C===0){te=console.log,ne=console.info,ae=console.warn,ie=console.error,oe=console.group,ue=console.groupCollapsed,se=console.groupEnd;var e={configurable:!0,enumerable:!0,value:fe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}C++}}function Ve(){{if(C--,C===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:h({},e,{value:te}),info:h({},e,{value:ne}),warn:h({},e,{value:ae}),error:h({},e,{value:ie}),group:h({},e,{value:oe}),groupCollapsed:h({},e,{value:ue}),groupEnd:h({},e,{value:se})})}C<0&&l("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var M=m.ReactCurrentDispatcher,U;function D(e,r,t){{if(U===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);U=n&&n[1]||""}return`
|
|
3
|
+
`+U+e}}var N=!1,F;{var Me=typeof WeakMap=="function"?WeakMap:Map;F=new Me}function le(e,r){if(!e||N)return"";{var t=F.get(e);if(t!==void 0)return t}var n;N=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=M.current,M.current=null,Le();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(p){n=p}Reflect.construct(e,[],i)}else{try{i.call()}catch(p){n=p}e.call(i.prototype)}}else{try{throw Error()}catch(p){n=p}e()}}catch(p){if(p&&n&&typeof p.stack=="string"){for(var a=p.stack.split(`
|
|
4
|
+
`),c=n.stack.split(`
|
|
5
|
+
`),s=a.length-1,f=c.length-1;s>=1&&f>=0&&a[s]!==c[f];)f--;for(;s>=1&&f>=0;s--,f--)if(a[s]!==c[f]){if(s!==1||f!==1)do if(s--,f--,f<0||a[s]!==c[f]){var g=`
|
|
6
|
+
`+a[s].replace(" at new "," at ");return e.displayName&&g.includes("<anonymous>")&&(g=g.replace("<anonymous>",e.displayName)),typeof e=="function"&&F.set(e,g),g}while(s>=1&&f>=0);break}}}finally{N=!1,M.current=u,Ve(),Error.prepareStackTrace=o}var O=e?e.displayName||e.name:"",E=O?D(O):"";return typeof e=="function"&&F.set(e,E),E}function Ue(e,r,t){return le(e,!1)}function Ne(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function A(e,r,t){if(e==null)return"";if(typeof e=="function")return le(e,Ne(e));if(typeof e=="string")return D(e);switch(e){case $:return D("Suspense");case L:return D("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case k:return Ue(e.render);case x:return A(e.type,r,t);case V:{var n=e,o=n._payload,u=n._init;try{return A(u(o),r,t)}catch{}}}return""}var w=Object.prototype.hasOwnProperty,ce={},de=m.ReactDebugCurrentFrame;function I(e){if(e){var r=e._owner,t=A(e.type,e._source,r?r.type:null);de.setExtraStackFrame(t)}else de.setExtraStackFrame(null)}function Be(e,r,t,n,o){{var u=Function.call.bind(w);for(var i in e)if(u(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var c=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name="Invariant Violation",c}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){a=s}a&&!(a instanceof Error)&&(I(o),l("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof a),I(null)),a instanceof Error&&!(a.message in ce)&&(ce[a.message]=!0,I(o),l("Failed %s type: %s",t,a.message),I(null))}}}var Ke=Array.isArray;function B(e){return Ke(e)}function qe(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Ge(e){try{return ve(e),!1}catch{return!0}}function ve(e){return""+e}function pe(e){if(Ge(e))return l("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",qe(e)),ve(e)}var P=m.ReactCurrentOwner,ze={key:!0,ref:!0,__self:!0,__source:!0},ge,ye,K;K={};function Xe(e){if(w.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function He(e){if(w.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Je(e,r){if(typeof e.ref=="string"&&P.current&&r&&P.current.stateNode!==r){var t=y(P.current.type);K[t]||(l('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',y(P.current.type),e.ref),K[t]=!0)}}function Ze(e,r){{var t=function(){ge||(ge=!0,l("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function Qe(e,r){{var t=function(){ye||(ye=!0,l("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var er=function(e,r,t,n,o,u,i){var a={$$typeof:d,type:e,key:r,ref:t,props:i,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function rr(e,r,t,n,o){{var u,i={},a=null,c=null;t!==void 0&&(pe(t),a=""+t),He(r)&&(pe(r.key),a=""+r.key),Xe(r)&&(c=r.ref,Je(r,o));for(u in r)w.call(r,u)&&!ze.hasOwnProperty(u)&&(i[u]=r[u]);if(e&&e.defaultProps){var s=e.defaultProps;for(u in s)i[u]===void 0&&(i[u]=s[u])}if(a||c){var f=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&Ze(i,f),c&&Qe(i,f)}return er(e,a,c,o,n,P.current,i)}}var q=m.ReactCurrentOwner,be=m.ReactDebugCurrentFrame;function T(e){if(e){var r=e._owner,t=A(e.type,e._source,r?r.type:null);be.setExtraStackFrame(t)}else be.setExtraStackFrame(null)}var G;G=!1;function z(e){return typeof e=="object"&&e!==null&&e.$$typeof===d}function he(){{if(q.current){var e=y(q.current.type);if(e)return`
|
|
7
|
+
|
|
8
|
+
Check the render method of \``+e+"`."}return""}}function tr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
|
|
9
|
+
|
|
10
|
+
Check your code at `+r+":"+t+"."}return""}}var Ee={};function nr(e){{var r=he();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
|
|
11
|
+
|
|
12
|
+
Check the top-level render call using <`+t+">.")}return r}}function _e(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=nr(r);if(Ee[t])return;Ee[t]=!0;var n="";e&&e._owner&&e._owner!==q.current&&(n=" It was passed a child from "+y(e._owner.type)+"."),T(e),l('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),T(null)}}function Re(e,r){{if(typeof e!="object")return;if(B(e))for(var t=0;t<e.length;t++){var n=e[t];z(n)&&_e(n,r)}else if(z(e))e._store&&(e._store.validated=!0);else if(e){var o=ke(e);if(typeof o=="function"&&o!==e.entries)for(var u=o.call(e),i;!(i=u.next()).done;)z(i.value)&&_e(i.value,r)}}}function ar(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===k||r.$$typeof===x))t=r.propTypes;else return;if(t){var n=y(r);Be(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!G){G=!0;var o=y(r);l("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&l("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ir(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){T(e),l("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),T(null);break}}e.ref!==null&&(T(e),l("Invalid attribute `ref` supplied to `React.Fragment`."),T(null))}}var me={};function Te(e,r,t,n,o,u){{var i=Ye(e);if(!i){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var c=tr(o);c?a+=c:a+=he();var s;e===null?s="null":B(e)?s="array":e!==void 0&&e.$$typeof===d?(s="<"+(y(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,l("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,a)}var f=rr(e,r,t,o,u);if(f==null)return f;if(i){var g=r.children;if(g!==void 0)if(n)if(B(g)){for(var O=0;O<g.length;O++)Re(g[O],e);Object.freeze&&Object.freeze(g)}else l("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Re(g,e)}if(w.call(r,"key")){var E=y(e),p=Object.keys(r).filter(function(cr){return cr!=="key"}),X=p.length>0?"{key: someKey, "+p.join(": ..., ")+": ...}":"{key: someKey}";if(!me[E+X]){var lr=p.length>0?"{"+p.join(": ..., ")+": ...}":"{}";l(`A props object containing a "key" prop is being spread into JSX:
|
|
13
|
+
let props = %s;
|
|
14
|
+
<%s {...props} />
|
|
15
|
+
React keys must be passed directly to JSX without using spread:
|
|
16
|
+
let props = %s;
|
|
17
|
+
<%s key={someKey} {...props} />`,X,E,lr,E),me[E+X]=!0}}return e===v?ir(f):ar(f),f}}function or(e,r,t){return Te(e,r,t,!0)}function ur(e,r,t){return Te(e,r,t,!1)}var sr=ur,fr=or;Y.Fragment=v,Y.jsx=sr,Y.jsxs=fr})()});var hr=H((Rr,J)=>{"use strict";process.env.NODE_ENV==="production"?J.exports=Ce():J.exports=we()});export{hr as a};
|
|
18
|
+
/*! Bundled license information:
|
|
19
|
+
|
|
20
|
+
react/cjs/react-jsx-runtime.production.min.js:
|
|
21
|
+
(**
|
|
22
|
+
* @license React
|
|
23
|
+
* react-jsx-runtime.production.min.js
|
|
24
|
+
*
|
|
25
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
26
|
+
*
|
|
27
|
+
* This source code is licensed under the MIT license found in the
|
|
28
|
+
* LICENSE file in the root directory of this source tree.
|
|
29
|
+
*)
|
|
30
|
+
|
|
31
|
+
react/cjs/react-jsx-runtime.development.js:
|
|
32
|
+
(**
|
|
33
|
+
* @license React
|
|
34
|
+
* react-jsx-runtime.development.js
|
|
35
|
+
*
|
|
36
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
37
|
+
*
|
|
38
|
+
* This source code is licensed under the MIT license found in the
|
|
39
|
+
* LICENSE file in the root directory of this source tree.
|
|
40
|
+
*)
|
|
41
|
+
*/
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{homedir as s}from"os";import{join as t}from"path";var p="0.2.0",m="kane-cli",e=t(s(),".testmuai","kaneai"),l=t(e,"profiles"),i=t(e,"config.json"),d=t(e,"tui-config.json"),h="https://registry.npmjs.org/@testmuai/kane-cli",f="https://api.github.com/repos/LambdaTest/kane-cli/releases",_=9222,u=9230,A=t(e,"chrome-profile"),U=t(e,"chrome-profiles"),r="127.0.0.1",b=18392,g=18400,o="/callback";function x(a){return`http://${r}:${a}${o}`}var L="KANE CLI",E="*",R={prod:{authBaseUrl:"https://auth.lambdatest.com",consentUrl:"https://accounts.lambdatest.com",controllerBaseUrl:"https://kaneai-api.lambdatest.com/v16-controller/v1",tmsBaseUrl:"https://test-manager-api.lambdatest.com/api",secretsBaseUrl:"https://api-hyperexecute.lambdatest.com",testManagerUiUrl:"https://test-manager.lambdatest.com",shareApiBaseUrl:"https://api.lambdatest.com",v16ServerHost:"https://kaneai-api.lambdatest.com/v16-server"},stage:{authBaseUrl:"https://stage-auth.lambdatestinternal.com",consentUrl:"https://stage-accounts.lambdatestinternal.com",controllerBaseUrl:"https://auteur-stage-automind.lambdatestinternal.com/v16-controller/v1",tmsBaseUrl:"https://stage-test-manager-api.lambdatestinternal.com/api",secretsBaseUrl:"https://api-stage-hyperexecute.lambdatestinternal.com",testManagerUiUrl:"https://stage-test-manager.lambdatestinternal.com",shareApiBaseUrl:"https://stage-api.lambdatestinternal.com",v16ServerHost:"https://auteur-stage-automind.lambdatestinternal.com/v16-server"}},C={base:"#ffffff",primary:"#ff9500",secondary:"#888888",accent:"#ffffff",dim:"#666666",ambient:"#444444",statusPass:"#4ade80",statusFail:"#ef4444",purple:"#ff9500",cyan:"#ff9500",yellow:"#ff9500",green:"#4ade80",greenDim:"#666666",red:"#ef4444",redDim:"#666666",dimmed:"#666666",muted:"#444444"};export{p as a,m as b,e as c,d,h as e,f,_ as g,u as h,U as i,r as j,b as k,g as l,o as m,x as n,L as o,E as p,R as q,C as r};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a as m}from"./chunk-HCBYKLMW.js";import{r as t}from"./chunk-KPCYAR4I.js";import{a as p,b as r,i as a}from"./chunk-Q7JVDEOV.js";import{a as f}from"./chunk-6YGTRKDT.js";import{e as s}from"./chunk-UR6MHSHU.js";var c=s(f(),1);var e=s(m(),1);function R({onSubmit:n}){let[o,l]=(0,c.useState)(0),u=(0,c.useRef)(!1);return a((x,i)=>{u.current||(i.leftArrow||i.rightArrow?l(d=>d===0?1:0):i.return?(u.current=!0,n(o===0?"positive":"negative")):i.escape&&(u.current=!0,n(null)))}),(0,e.jsxs)(p,{marginTop:1,children:[(0,e.jsx)(r,{color:t.secondary,children:"Rate this session: "}),(0,e.jsx)(r,{color:o===0?t.primary:t.dim,children:o===0?"[ \u{1F44D} ]":" \u{1F44D} "}),(0,e.jsx)(r,{children:" "}),(0,e.jsx)(r,{color:o===1?t.primary:t.dim,children:o===1?"[ \u{1F44E} ]":" \u{1F44E} "}),(0,e.jsx)(r,{color:t.dim,children:" \u2190/\u2192 select \xB7 Enter submit \xB7 Esc skip"})]})}export{R as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a as n}from"./chunk-3CJ6IY5O.js";var o=class{constructor(t,r,e,s){this.controllerBaseUrl=t;this.getOAuthToken=r;this.directBasicAuth=e;this.log=s}_cached=null;_revoked=!1;revoke(){this._revoked=!0,this._cached=null}get revoked(){return this._revoked}get cached(){return this._cached}async resolve(t=!1){if(this._cached&&!t)return this._cached;try{let r;if(this.directBasicAuth)r=new n(this.controllerBaseUrl,{username:this.directBasicAuth.username,accessKey:this.directBasicAuth.access_key});else{let s=await this.getOAuthToken();if(!s)return null;r=new n(this.controllerBaseUrl,s)}let e=await r.getTmsCredentials();return this.directBasicAuth&&!e.access_key&&(e.access_key=this.directBasicAuth.access_key),this._cached=e,this.log?.(`AUTH_RESOLVE success: user=${e.username} org=${e.org_id} user_id=${e.user_id} has_access_key=${!!e.access_key}`),e}catch(r){return this.log?.(`AUTH_RESOLVE failed: ${r instanceof Error?r.message:String(r)}`),null}}async fetch(t,r={}){if(this._revoked)throw new Error("Resolver has been revoked \u2014 identity changed");let e=await this.resolve();if(!e)throw new Error("Not authenticated \u2014 no credentials resolved");let s=i=>({...r,headers:{...r.headers,Authorization:`Basic ${Buffer.from(`${i.username}:${i.access_key}`).toString("base64")}`}}),a=await globalThis.fetch(t,s(e));if(a.status===401){if(this._revoked)throw new Error("Resolver has been revoked \u2014 identity changed");this.log?.(`AUTH_RESOLVE 401 on ${t} \u2014 re-resolving`);let i=await this.resolve(!0);if(!i)throw new Error("Re-authentication failed after 401");return globalThis.fetch(t,s(i))}return a}};export{o as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a as M}from"./chunk-HCBYKLMW.js";import{q as N,r as t}from"./chunk-KPCYAR4I.js";import{a as i,b as n,i as R}from"./chunk-Q7JVDEOV.js";import{a as P}from"./chunk-6YGTRKDT.js";import{e as b}from"./chunk-UR6MHSHU.js";function y(a="prod"){let r=N[a];return a!=="stage"?r:{authBaseUrl:process.env.KANE_STAGE_AUTH_URL??r.authBaseUrl,consentUrl:process.env.KANE_STAGE_CONSENT_URL??r.consentUrl,controllerBaseUrl:process.env.TESTMUAI_BASE_URL??r.controllerBaseUrl,tmsBaseUrl:process.env.KANE_STAGE_TMS_URL??r.tmsBaseUrl,secretsBaseUrl:process.env.KANE_STAGE_SECRETS_URL??r.secretsBaseUrl,testManagerUiUrl:process.env.KANE_STAGE_TEST_MANAGER_UI_URL??r.testManagerUiUrl,shareApiBaseUrl:process.env.KANE_STAGE_SHARE_API_URL??r.shareApiBaseUrl,v16ServerHost:process.env.KANE_STAGE_V16_SERVER_HOST??r.v16ServerHost}}var f=b(P(),1);var e=b(M(),1),g=5;function w(a,r){if(!r)return a;let u=r.toLowerCase();return a.filter(E=>E.label.toLowerCase().includes(u))}function Y({title:a,items:r,loading:u=!1,loadingText:E,error:U=null,itemNoun:A="items",onSelect:C,onCancel:L,defaultActiveId:S}){let[m,c]=(0,f.useState)(0),[T,p]=(0,f.useState)(0),[d,_]=(0,f.useState)("");(0,f.useEffect)(()=>{if(r.length===0)return;let l=S?r.findIndex(o=>o.id===S):r.findIndex(o=>o.isActive);l>=0&&(p(Math.floor(l/g)),c(l%g))},[r,S]);let x=w(r,d),B=T*g,I=Math.min(B+g,x.length),v=Math.ceil(x.length/g),G=I-B,h=x.slice(B,I);return R((l,o)=>{if(U){o.escape&&L();return}if(o.escape){d?(_(""),c(0),p(0)):L();return}if(o.upArrow){m>0?c(s=>s-1):T>0&&(p(s=>s-1),c(g-1));return}if(o.downArrow){m<G-1?c(s=>s+1):T<v-1&&(p(s=>s+1),c(0));return}if(o.return&&h[m]){C(h[m]);return}if(o.backspace||o.delete){_(s=>s.slice(0,-1)),c(0),p(0);return}l&&!o.ctrl&&!o.meta&&(_(s=>s+l),c(0),p(0))},{isActive:!u}),u?(0,e.jsxs)(i,{flexDirection:"column",borderStyle:"round",borderColor:t.primary,paddingX:2,paddingY:1,children:[(0,e.jsx)(n,{color:t.primary,bold:!0,children:a}),(0,e.jsx)(i,{marginTop:1,children:(0,e.jsx)(n,{color:t.secondary,children:E??`Loading ${A}\u2026`})})]}):U?(0,e.jsxs)(i,{flexDirection:"column",borderStyle:"round",borderColor:t.statusFail,paddingX:2,paddingY:1,children:[(0,e.jsx)(n,{color:t.statusFail,bold:!0,children:a}),(0,e.jsx)(i,{marginTop:1,children:(0,e.jsx)(n,{color:t.statusFail,children:U})}),(0,e.jsx)(i,{marginTop:1,children:(0,e.jsx)(n,{color:t.dim,children:"esc back"})})]}):(0,e.jsxs)(i,{flexDirection:"column",borderStyle:"round",borderColor:t.primary,paddingX:2,paddingY:1,children:[(0,e.jsxs)(i,{children:[(0,e.jsx)(n,{color:t.primary,bold:!0,children:a}),(0,e.jsxs)(n,{color:t.dim,children:[" (",x.length,d?`/${r.length}`:""," ",A,")"]})]}),d&&(0,e.jsxs)(i,{marginTop:1,children:[(0,e.jsx)(n,{color:t.secondary,children:"filter: "}),(0,e.jsx)(n,{children:d}),(0,e.jsx)(n,{color:t.dimmed,children:"\u2588"})]}),(0,e.jsx)(i,{flexDirection:"column",marginTop:1,children:x.length===0?(0,e.jsxs)(n,{color:t.dim,children:["No ",A,' match "',d,'"']}):h.map((l,o)=>{let s=o===m,H=s?"\u276F ":" ",K=l.isActive?t.statusPass:s?t.primary:void 0;return(0,e.jsxs)(n,{color:K,children:[H,l.label,l.isActive?" \u25CF selected":""]},l.id)})}),v>1&&(0,e.jsx)(i,{marginTop:1,children:(0,e.jsxs)(n,{color:t.dim,children:["Page ",T+1,"/",v]})}),(0,e.jsx)(i,{marginTop:1,children:(0,e.jsxs)(n,{color:t.dim,children:["\u2191\u2193 navigate \xB7 type to search \xB7 \u21B5 select \xB7 esc ",d?"clear":"back"]})})]})}export{y as a,Y as b};
|