@engenty/wizards-runtime 0.9.1 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -13
- package/apps/runtime/dist/docs/dev/plugins/runners.md +1 -1
- package/apps/runtime/dist/docs/dev/wizard-format/index.md +4 -53
- package/apps/runtime/dist/docs/dev/wizard-format/meta.json +1 -0
- package/apps/runtime/dist/docs/dev/wizard-format/pages-and-fields.md +17 -0
- package/apps/runtime/dist/docs/dev/wizard-format/themes.md +220 -0
- package/apps/runtime/dist/docs/dev/wizard-format/wizard-file.md +2 -0
- package/apps/runtime/dist/docs/user/run.md +15 -1
- package/apps/runtime/dist/docs/user/space.md +4 -0
- package/apps/runtime/dist/files/upload-check.js +622 -0
- package/apps/runtime/dist/harness/terminal.js +14 -7
- package/apps/runtime/dist/index.js +2 -0
- package/apps/runtime/dist/no-webstorage.js +6 -0
- package/apps/runtime/dist/plugins/runs.js +8 -5
- package/apps/runtime/dist/routes/runs.js +22 -6
- package/apps/runtime/dist/routes/studio.js +2 -2
- package/apps/runtime/dist/services/project-files.js +14 -6
- package/apps/web/dist/assets/{AboutDialog-DKfHXQUv.js → AboutDialog-BUdEn9X_.js} +1 -1
- package/apps/web/dist/assets/{ChangelogDialog-BsM9zGdh.js → ChangelogDialog-ClkjHGE_.js} +1 -1
- package/apps/web/dist/assets/{EditorPage-CRcgupmQ.js → EditorPage-j5HjqTMV.js} +2 -2
- package/apps/web/dist/assets/{FlowPreview-szPmsT2-.js → FlowPreview-DZRkWedM.js} +1 -1
- package/apps/web/dist/assets/{Harness-CXx-Js4U.js → Harness-FiDeF3LX.js} +1 -1
- package/apps/web/dist/assets/{NewWizardChannels-C6R1HV0I.js → NewWizardChannels-DeJP5h5I.js} +1 -1
- package/apps/web/dist/assets/{NewWizardPage-D6Z6DYeT.js → NewWizardPage-CIS3qNUz.js} +1 -1
- package/apps/web/dist/assets/{OnboardingPage-DrN26Afr.js → OnboardingPage-CoTYSubc.js} +1 -1
- package/apps/web/dist/assets/{ProjectPage-CNyhwfgz.js → ProjectPage-XVhe87S4.js} +1 -1
- package/apps/web/dist/assets/{PublicRunner-CREvMYW_.js → PublicRunner-Bc-3e7UU.js} +1 -1
- package/apps/web/dist/assets/{ReadOnly-BUyOPou5.js → ReadOnly-I-Lm7a8y.js} +1 -1
- package/apps/web/dist/assets/{RunDrawer-8iWXyXjL.js → RunDrawer-DXqyxTsm.js} +1 -1
- package/apps/web/dist/assets/{RunnerView-CufG6xDP.js → RunnerView-DeDApA-9.js} +1 -1
- package/apps/web/dist/assets/{SettingsPage-B4M4DrMS.js → SettingsPage-ChpDzJVn.js} +2 -2
- package/apps/web/dist/assets/{SetupPage-D-Op38jE.js → SetupPage-E5JoQMBM.js} +1 -1
- package/apps/web/dist/assets/{SharePage-BXYVZ3Fa.js → SharePage-DW1b2g9t.js} +1 -1
- package/apps/web/dist/assets/changelog-DuSV2HiU.js +1 -0
- package/apps/web/dist/assets/{esm-CetquljB.js → esm-yMT-rSPa.js} +1 -1
- package/apps/web/dist/assets/{index-C5Qmfm_0.css → index-D9oqYYa8.css} +1 -1
- package/apps/web/dist/assets/{index-TJhB4-x8.js → index-DfHH4icT.js} +4 -4
- package/apps/web/dist/assets/oss-credits-6A3pxilr.js +1 -0
- package/apps/web/dist/assets/{phone-CJVAobUx.js → phone-BprN_SDS.js} +1 -1
- package/apps/web/dist/assets/{settings-menu-DjgZMuyV.js → settings-menu-CVl54phq.js} +1 -1
- package/apps/web/dist/assets/{theme-BucH2rUv.js → theme-DZZXa238.js} +1 -1
- package/apps/web/dist/assets/{ui-LJgQlXbd.js → ui-kIzOrA_W.js} +1 -1
- package/apps/web/dist/assets/{upload-Dz86uI5u.js → upload-Cvztyjuj.js} +1 -1
- package/apps/web/dist/assets/{wrench-Dr5LakQv.js → wrench-CWT9IGKq.js} +1 -1
- package/apps/web/dist/index.html +3 -3
- package/apps/web/dist/install.sh +43 -3
- package/apps/web/dist/mcp/flow.html +2 -2
- package/node_modules/@engenty/wizards-shared/dist/run.d.ts +4 -0
- package/node_modules/@engenty/wizards-shared/dist/run.js +8 -0
- package/package.json +2 -4
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/plugin.json +1 -1
- package/apps/web/dist/assets/changelog-KvwOYLcI.js +0 -1
- package/apps/web/dist/assets/oss-credits-BvQGQEzd.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Vr as e}from"./ui-
|
|
1
|
+
import{Vr as e}from"./ui-kIzOrA_W.js";var t={name:`upload`,size:24,node:[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]};t.node;var n=e(t);export{n as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Vr as e}from"./ui-
|
|
1
|
+
import{Vr as e}from"./ui-kIzOrA_W.js";var t={name:`circle-alert`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`]};t.node;var n=e(t),r={name:`lock`,size:24,node:[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]};r.node;var i=e(r),a={name:`wrench`,size:24,node:[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]};a.node;var o=e(a);export{i as n,n as r,o as t};
|
package/apps/web/dist/index.html
CHANGED
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
dispatchEvent(new Event("wizard-install"));
|
|
35
35
|
});
|
|
36
36
|
</script>
|
|
37
|
-
<script type="module" crossorigin src="/studio/assets/index-
|
|
37
|
+
<script type="module" crossorigin src="/studio/assets/index-DfHH4icT.js"></script>
|
|
38
38
|
<link rel="modulepreload" crossorigin href="/studio/assets/rolldown-runtime-hePW80VL.js">
|
|
39
39
|
<link rel="modulepreload" crossorigin href="/studio/assets/jsx-runtime-BNakU3Ej.js">
|
|
40
40
|
<link rel="modulepreload" crossorigin href="/studio/assets/preload-helper-CNEI7N0N.js">
|
|
41
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/ui-
|
|
41
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/ui-kIzOrA_W.js">
|
|
42
42
|
<link rel="modulepreload" crossorigin href="/studio/assets/engenty-CNjaZCVM.js">
|
|
43
|
-
<link rel="stylesheet" crossorigin href="/studio/assets/index-
|
|
43
|
+
<link rel="stylesheet" crossorigin href="/studio/assets/index-D9oqYYa8.css">
|
|
44
44
|
</head>
|
|
45
45
|
<body>
|
|
46
46
|
<div id="root"></div>
|
package/apps/web/dist/install.sh
CHANGED
|
@@ -47,6 +47,7 @@ main() {
|
|
|
47
47
|
LINK=1
|
|
48
48
|
[ -n "${ENGENTY_WIZARDS_NO_LINK:-}" ] && LINK=0
|
|
49
49
|
VERSION=""
|
|
50
|
+
REUSABLE=0
|
|
50
51
|
while [ $# -gt 0 ]; do
|
|
51
52
|
case "$1" in
|
|
52
53
|
--yes | -y) YES=1 ;;
|
|
@@ -552,10 +553,45 @@ package() {
|
|
|
552
553
|
die "Version $VERSION holds the package under its old name, $OLD_NAME. This installer installs 0.1.9 and newer."
|
|
553
554
|
;;
|
|
554
555
|
0.[1-6].* | 0.7.[0-4]) SPEC="$RELEASES/download/v$VERSION/$LEGACY_NAME-$VERSION.tgz" ;;
|
|
555
|
-
*)
|
|
556
|
+
*)
|
|
557
|
+
SPEC="$RELEASES/download/v$VERSION/$PACKAGE_FILE-$VERSION.tgz"
|
|
558
|
+
# Only a runtime under its name of now can start from the version before (see reuse).
|
|
559
|
+
REUSABLE=1
|
|
560
|
+
;;
|
|
556
561
|
esac
|
|
557
562
|
}
|
|
558
563
|
|
|
564
|
+
# Fills the empty npm prefix $1 with the version that runs now, so npm only changes what is
|
|
565
|
+
# different instead of unpacking every package again. Only a prefix that holds the runtime under
|
|
566
|
+
# its name of now and nothing else qualifies; anything else, or a copy that fails, starts empty.
|
|
567
|
+
# The copy is a clone where the disk can (APFS on macOS, btrfs or XFS on Linux): next to no space.
|
|
568
|
+
reuse() {
|
|
569
|
+
local stage="$1" from
|
|
570
|
+
[ "$REUSABLE" = 1 ] || return 1
|
|
571
|
+
from="$HOME_DIR/runtime/current"
|
|
572
|
+
[ -d "$from/node_modules/$PACKAGE_NAME" ] && [ -f "$from/package-lock.json" ] || return 1
|
|
573
|
+
MANIFEST="$from/package.json" NAME="$PACKAGE_NAME" "$NODE_DIR/bin/node" -e '
|
|
574
|
+
const deps = Object.keys(require(process.env.MANIFEST).dependencies || {});
|
|
575
|
+
process.exit(deps.length === 1 && deps[0] === process.env.NAME ? 0 : 1);
|
|
576
|
+
' >>"$LOG" 2>&1 || return 1
|
|
577
|
+
local clone="--reflink=auto"
|
|
578
|
+
if [ "$OS" = darwin ]; then clone="-c"; fi
|
|
579
|
+
if cp -R "$clone" "$from/." "$stage/" 2>>"$LOG" ||
|
|
580
|
+
{ empty "$stage" && cp -R "$from/." "$stage/" 2>>"$LOG"; }; then
|
|
581
|
+
# The link for commands of 0.7.4 and older is written again after the install. Without the
|
|
582
|
+
# old lock npm resolves as for a fresh install, keeping what fits: from a lock it would also
|
|
583
|
+
# add the packages for the other libc.
|
|
584
|
+
rm -f "$stage/node_modules/$LEGACY_NAME" "$stage/package-lock.json"
|
|
585
|
+
return 0
|
|
586
|
+
fi
|
|
587
|
+
empty "$stage"
|
|
588
|
+
return 1
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
empty() {
|
|
592
|
+
find "$1" -mindepth 1 -maxdepth 1 -exec rm -rf {} +
|
|
593
|
+
}
|
|
594
|
+
|
|
559
595
|
runtime() {
|
|
560
596
|
STEP="Installing engenty wizards"
|
|
561
597
|
local dir="$HOME_DIR/runtime" stage previous path old
|
|
@@ -573,7 +609,11 @@ runtime() {
|
|
|
573
609
|
# them. --legacy-peer-deps: no peers on top, which nothing here uses (about 70 MB less).
|
|
574
610
|
stage="$(mktemp -d "$dir/.staging-XXXXXX")"
|
|
575
611
|
STAGE="$stage"
|
|
576
|
-
|
|
612
|
+
local what="Installing engenty wizards (about 650 MB on disk, a minute or two)"
|
|
613
|
+
if reuse "$stage"; then
|
|
614
|
+
what="Updating engenty wizards to $VERSION (only what changed)"
|
|
615
|
+
fi
|
|
616
|
+
if ! spin "$what" \
|
|
577
617
|
env PATH="$NODE_DIR/bin:$PATH" "$NODE_DIR/bin/npm" install --prefix "$stage" \
|
|
578
618
|
--omit=dev --ignore-scripts --legacy-peer-deps --no-audit --no-fund --loglevel=error "$SPEC"; then
|
|
579
619
|
rm -rf "$stage"
|
|
@@ -589,7 +629,7 @@ runtime() {
|
|
|
589
629
|
if [ -f "$stage/node_modules/$PACKAGE_NAME/package.json" ]; then
|
|
590
630
|
PACKAGE="$PACKAGE_NAME"
|
|
591
631
|
# A command or an update of 0.7.4 or older looks for the runtime under its old name.
|
|
592
|
-
ln -
|
|
632
|
+
ln -sfn "$PACKAGE_NAME" "$stage/node_modules/$LEGACY_NAME"
|
|
593
633
|
elif [ -d "$stage/node_modules/$LEGACY_NAME/apps/runtime" ]; then
|
|
594
634
|
PACKAGE="$LEGACY_NAME"
|
|
595
635
|
else
|