@dongnanyang/deploy-cli 0.13.0 → 0.13.1

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.
Files changed (2) hide show
  1. package/dist/tui/main.js +153 -74
  2. package/package.json +1 -1
package/dist/tui/main.js CHANGED
@@ -715,6 +715,7 @@ const _sfc_main$6 = /*@__PURE__*/ defineComponent({
715
715
  },
716
716
  emits: [
717
717
  "deploy",
718
+ "scripts",
718
719
  "create",
719
720
  "refresh"
720
721
  ],
@@ -733,6 +734,7 @@ const _sfc_main$6 = /*@__PURE__*/ defineComponent({
733
734
  if (name === "j" || name === "down") sel.value = Math.min(sel.value + 1, props.rows.length - 1);
734
735
  else if (name === "k" || name === "up") sel.value = Math.max(sel.value - 1, 0);
735
736
  else if (name === "d") emit("deploy", props.rows[sel.value].name);
737
+ else if (name === "r") emit("scripts", props.rows[sel.value].name);
736
738
  else if (name === "f") emit("refresh");
737
739
  });
738
740
  const __returned__ = {
@@ -871,7 +873,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
871
873
  }, 1024);
872
874
  }), 128)),
873
875
  createVNode($setup["Text"], { dimColor: "" }, {
874
- default: withCtx(() => [..._cache[6] || (_cache[6] = [createTextVNode("j/k 选择 · n 新建(创建向导) · d 部署 · f 刷新", -1)])]),
876
+ default: withCtx(() => [..._cache[6] || (_cache[6] = [createTextVNode("j/k 选择 · n 新建(创建向导) · d 部署 · r 脚本 · f 刷新", -1)])]),
875
877
  _: 1
876
878
  })
877
879
  ]),
@@ -882,13 +884,19 @@ var ProjectsPanel_default = /*#__PURE__*/ export_helper_default(_sfc_main$6, [["
882
884
  //#endregion
883
885
  //#region src/tui/components/ScriptsPanel.vue
884
886
  /**
885
- * Scripts 面板(M2-T7 自 v0.1.0 DeployPanel 迁移):j/k/Enter/p 语义原样保留;
886
- * p 开参数弹窗(旧 InputModal 语义:输入参数、Enter 执行、Esc 取消)。
887
- * 只吃 ViewModel(rows/running);动作经 emit 交 App 接线(useScripts)。
887
+ * Scripts 脚本浮层(R20:spec §6.5 脚本执行并入项目动作——Projects 面板 r 打开,扫描选中项目 deploy/)。
888
+ * 能力迁移自 v0.1.0 DeployPanel:j/k/Enter/p(传参弹窗=旧 InputModal 语义)。
889
+ * R21 确认闸:脚本执行=任意 shell,Enter/传参执行一律经 ConfirmModal 确认后才 emit。
890
+ * 只吃 ViewModel(project/rows/running);动作经 emit 交 App 接线(useScripts)。
891
+ * 挂模态闸(R17 机制):浮层打开期间全局键 1-6/q/? 停用;Esc 返回(关闭浮层)。
888
892
  */
889
893
  const _sfc_main$5 = /*@__PURE__*/ defineComponent({
890
894
  __name: "ScriptsPanel",
891
895
  props: {
896
+ project: {
897
+ type: String,
898
+ required: true
899
+ },
892
900
  rows: {
893
901
  type: Array,
894
902
  required: true
@@ -898,25 +906,38 @@ const _sfc_main$5 = /*@__PURE__*/ defineComponent({
898
906
  required: true
899
907
  }
900
908
  },
901
- emits: ["run", "refresh"],
909
+ emits: [
910
+ "run",
911
+ "refresh",
912
+ "close"
913
+ ],
902
914
  setup(__props, { expose: __expose, emit: __emit }) {
903
915
  __expose();
904
916
  const props = __props;
905
917
  const emit = __emit;
918
+ useModalGate(() => true);
906
919
  const sel = ref(0);
907
920
  watch(() => props.rows.length, () => {
908
921
  sel.value = Math.min(sel.value, Math.max(0, props.rows.length - 1));
909
922
  });
910
- /** 传参弹窗(旧 App paramModal 归入面板):打开期间挂模态闸,列表键不触达 */
923
+ /** 传参弹窗(旧 InputModal 语义):输入参数、Enter 转确认弹窗、Esc 取消 */
911
924
  const paramsFor = ref(null);
912
925
  const paramsText = ref("");
913
926
  const paramsOpen = computed(() => paramsFor.value !== null);
914
- useModalGate(paramsOpen);
927
+ /** 执行确认挂起(R21:任意 shell);挂起期间列表键位全部停用 */
928
+ const pending = ref(null);
929
+ const confirmMessage = computed(() => {
930
+ if (pending.value === null) return "";
931
+ const { script, args } = pending.value;
932
+ const key = `${script.project}/${script.name}`;
933
+ return args.length > 0 ? `确认执行脚本 ${key}(参数: ${args.join(" ")})?` : `确认执行脚本 ${key}?`;
934
+ });
915
935
  function closeParams() {
916
936
  paramsFor.value = null;
917
937
  paramsText.value = "";
918
938
  }
919
939
  useInput((event) => {
940
+ if (pending.value !== null) return;
920
941
  const name = keyName(event);
921
942
  const char = event.type === "text" ? event.text : event.type === "key" ? event.key.character : void 0;
922
943
  if (paramsOpen.value) {
@@ -924,21 +945,36 @@ const _sfc_main$5 = /*@__PURE__*/ defineComponent({
924
945
  const script = paramsFor.value;
925
946
  const args = paramsText.value.trim().split(/\s+/).filter(Boolean);
926
947
  closeParams();
927
- emit("run", script, args);
948
+ pending.value = {
949
+ script,
950
+ args
951
+ };
928
952
  } else if (name === "escape") closeParams();
929
953
  else if (name === "backspace") paramsText.value = paramsText.value.slice(0, -1);
930
954
  else if (char) paramsText.value += char;
931
955
  return;
932
956
  }
957
+ if (name === "escape") {
958
+ emit("close");
959
+ return;
960
+ }
933
961
  if (props.rows.length === 0) return;
934
962
  if (name === "j" || name === "down") sel.value = Math.min(sel.value + 1, props.rows.length - 1);
935
963
  else if (name === "k" || name === "up") sel.value = Math.max(sel.value - 1, 0);
936
- else if (name === "enter") emit("run", props.rows[sel.value], []);
964
+ else if (name === "enter") pending.value = {
965
+ script: props.rows[sel.value],
966
+ args: []
967
+ };
937
968
  else if (name === "p") {
938
969
  paramsFor.value = props.rows[sel.value];
939
970
  paramsText.value = "";
940
971
  } else if (name === "f") emit("refresh");
941
- });
972
+ }, { isActive: () => pending.value === null });
973
+ function onConfirm() {
974
+ const p = pending.value;
975
+ pending.value = null;
976
+ if (p !== null) emit("run", p.script, p.args);
977
+ }
942
978
  function key(script) {
943
979
  return `${script.project}/${script.name}`;
944
980
  }
@@ -949,14 +985,18 @@ const _sfc_main$5 = /*@__PURE__*/ defineComponent({
949
985
  paramsFor,
950
986
  paramsText,
951
987
  paramsOpen,
988
+ pending,
989
+ confirmMessage,
952
990
  closeParams,
991
+ onConfirm,
953
992
  key,
954
993
  get Box() {
955
994
  return Box;
956
995
  },
957
996
  get Text() {
958
997
  return Text;
959
- }
998
+ },
999
+ ConfirmModal: ConfirmModal_default
960
1000
  };
961
1001
  Object.defineProperty(__returned__, "__isScriptSetup", {
962
1002
  enumerable: false,
@@ -978,7 +1018,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
978
1018
  bold: "",
979
1019
  color: "cyan"
980
1020
  }, {
981
- default: withCtx(() => [..._cache[0] || (_cache[0] = [createTextVNode("Scripts 脚本(deploy/ 目录)", -1)])]),
1021
+ default: withCtx(() => [createTextVNode("Scripts 脚本 — " + toDisplayString($setup.props.project) + "(deploy/ 目录)", 1)]),
982
1022
  _: 1
983
1023
  }),
984
1024
  $setup.props.rows.length === 0 ? (openBlock(), createBlock($setup["Text"], {
@@ -1050,7 +1090,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
1050
1090
  }, 1024);
1051
1091
  }), 128)),
1052
1092
  createVNode($setup["Text"], { dimColor: "" }, {
1053
- default: withCtx(() => [..._cache[6] || (_cache[6] = [createTextVNode("j/k 选择 · Enter 执行 · p 传参执行 · f 重扫", -1)])]),
1093
+ default: withCtx(() => [..._cache[6] || (_cache[6] = [createTextVNode("j/k 选择 · Enter 执行 · p 传参执行 · f 重扫 · Esc 返回", -1)])]),
1054
1094
  _: 1
1055
1095
  }),
1056
1096
  createCommentVNode(" 传参弹窗(旧 InputModal 文案) "),
@@ -1098,7 +1138,14 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
1098
1138
  })
1099
1139
  ]),
1100
1140
  _: 1
1101
- })) : createCommentVNode("v-if", true)
1141
+ })) : createCommentVNode("v-if", true),
1142
+ createCommentVNode(" 执行确认(R21:任意 shell,y 确认才执行) "),
1143
+ createVNode($setup["ConfirmModal"], {
1144
+ visible: $setup.pending !== null,
1145
+ message: $setup.confirmMessage,
1146
+ onConfirm: $setup.onConfirm,
1147
+ onCancel: _cache[0] || (_cache[0] = ($event) => $setup.pending = null)
1148
+ }, null, 8, ["visible", "message"])
1102
1149
  ]),
1103
1150
  _: 1
1104
1151
  });
@@ -1331,7 +1378,8 @@ var StatusBar_default = /*#__PURE__*/ export_helper_default(_sfc_main$3, [["rend
1331
1378
  //#endregion
1332
1379
  //#region src/tui/components/TunnelsPanel.vue
1333
1380
  /**
1334
- * Tunnels 面板(spec 6.4 面板 5):旧 v0.1.0 TunnelPanel 迁移——j/k/s/x/a 语义原样保留。
1381
+ * Tunnels 面板(spec 6.4 面板 5):旧 v0.1.0 TunnelPanel 迁移——j/k/s/x/a 语义保留。
1382
+ * R21 确认闸分流:start 类(s/a)直接执行(非破坏);x 停止=中断在用连接,走 ConfirmModal。
1335
1383
  * 只吃 ViewModel(rows);动作经 emit 交 App 接线(useTunnels)。
1336
1384
  */
1337
1385
  const _sfc_main$2 = /*@__PURE__*/ defineComponent({
@@ -1350,22 +1398,32 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
1350
1398
  const props = __props;
1351
1399
  const emit = __emit;
1352
1400
  const sel = ref(0);
1401
+ /** 确认挂起(R21:x 停止=中断在用连接);挂起期间面板键位全部停用 */
1402
+ const pendingStop = ref(null);
1353
1403
  watch(() => props.rows.length, () => {
1354
1404
  sel.value = Math.min(sel.value, Math.max(0, props.rows.length - 1));
1355
1405
  });
1356
1406
  useInput((event) => {
1407
+ if (pendingStop.value !== null) return;
1357
1408
  const name = keyName(event);
1358
1409
  if (name === "a") emit("startAll");
1359
1410
  if (props.rows.length === 0) return;
1360
1411
  if (name === "j" || name === "down") sel.value = Math.min(sel.value + 1, props.rows.length - 1);
1361
1412
  else if (name === "k" || name === "up") sel.value = Math.max(sel.value - 1, 0);
1362
1413
  else if (name === "s") emit("start", props.rows[sel.value].name);
1363
- else if (name === "x") emit("stop", props.rows[sel.value].name);
1364
- });
1414
+ else if (name === "x") pendingStop.value = props.rows[sel.value].name;
1415
+ }, { isActive: () => pendingStop.value === null });
1416
+ function onStopConfirm() {
1417
+ const name = pendingStop.value;
1418
+ pendingStop.value = null;
1419
+ if (name !== null) emit("stop", name);
1420
+ }
1365
1421
  const __returned__ = {
1366
1422
  props,
1367
1423
  emit,
1368
1424
  sel,
1425
+ pendingStop,
1426
+ onStopConfirm,
1369
1427
  STATUS_MARK: {
1370
1428
  running: "●",
1371
1429
  error: "✗",
@@ -1381,7 +1439,8 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
1381
1439
  },
1382
1440
  get Text() {
1383
1441
  return Text;
1384
- }
1442
+ },
1443
+ ConfirmModal: ConfirmModal_default
1385
1444
  };
1386
1445
  Object.defineProperty(__returned__, "__isScriptSetup", {
1387
1446
  enumerable: false,
@@ -1403,21 +1462,21 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
1403
1462
  bold: "",
1404
1463
  color: "cyan"
1405
1464
  }, {
1406
- default: withCtx(() => [..._cache[0] || (_cache[0] = [createTextVNode("5. Tunnels 隧道", -1)])]),
1465
+ default: withCtx(() => [..._cache[1] || (_cache[1] = [createTextVNode("5. Tunnels 隧道", -1)])]),
1407
1466
  _: 1
1408
1467
  }),
1409
1468
  $setup.props.rows.length === 0 ? (openBlock(), createBlock($setup["Text"], {
1410
1469
  key: 0,
1411
1470
  dimColor: ""
1412
1471
  }, {
1413
- default: withCtx(() => [..._cache[1] || (_cache[1] = [createTextVNode("(暂无隧道配置)", -1)])]),
1472
+ default: withCtx(() => [..._cache[2] || (_cache[2] = [createTextVNode("(暂无隧道配置)", -1)])]),
1414
1473
  _: 1
1415
1474
  })) : createCommentVNode("v-if", true),
1416
1475
  $setup.props.rows.length === 0 ? (openBlock(), createBlock($setup["Text"], {
1417
1476
  key: 1,
1418
1477
  dimColor: ""
1419
1478
  }, {
1420
- default: withCtx(() => [..._cache[2] || (_cache[2] = [createTextVNode("编辑 ~/.deploy-cli/config.json 添加", -1)])]),
1479
+ default: withCtx(() => [..._cache[3] || (_cache[3] = [createTextVNode("编辑 ~/.deploy-cli/config.json 添加", -1)])]),
1421
1480
  _: 1
1422
1481
  })) : createCommentVNode("v-if", true),
1423
1482
  (openBlock(true), createElementBlock(Fragment, null, renderList($setup.props.rows, (t, i) => {
@@ -1464,7 +1523,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
1464
1523
  key: 0,
1465
1524
  dimColor: ""
1466
1525
  }, {
1467
- default: withCtx(() => [..._cache[3] || (_cache[3] = [createTextVNode(" (auto)", -1)])]),
1526
+ default: withCtx(() => [..._cache[4] || (_cache[4] = [createTextVNode(" (auto)", -1)])]),
1468
1527
  _: 1
1469
1528
  })) : createCommentVNode("v-if", true)]),
1470
1529
  _: 2
@@ -1485,9 +1544,15 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
1485
1544
  }, 1024);
1486
1545
  }), 128)),
1487
1546
  createVNode($setup["Text"], { dimColor: "" }, {
1488
- default: withCtx(() => [..._cache[4] || (_cache[4] = [createTextVNode("j/k 选择 · s 启动 · x 停止 · a 全部启动", -1)])]),
1547
+ default: withCtx(() => [..._cache[5] || (_cache[5] = [createTextVNode("j/k 选择 · s 启动 · x 停止(确认) · a 全部启动", -1)])]),
1489
1548
  _: 1
1490
- })
1549
+ }),
1550
+ createVNode($setup["ConfirmModal"], {
1551
+ visible: $setup.pendingStop !== null,
1552
+ message: `确认停止隧道 ${$setup.pendingStop ?? ""}?将中断在用连接`,
1553
+ onConfirm: $setup.onStopConfirm,
1554
+ onCancel: _cache[0] || (_cache[0] = ($event) => $setup.pendingStop = null)
1555
+ }, null, 8, ["visible", "message"])
1491
1556
  ]),
1492
1557
  _: 1
1493
1558
  });
@@ -2492,11 +2557,12 @@ function useScripts(opts = {}) {
2492
2557
  const config = opts.load ? opts.load() : loadConfig();
2493
2558
  const rows = ref([]);
2494
2559
  const running = ref(null);
2495
- function scan() {
2560
+ function scan(name) {
2561
+ const projects = name === void 0 ? config.projects : config.projects.filter((p) => p.name === name);
2496
2562
  const all = [];
2497
- for (const project of config.projects) all.push(...discoverScripts(project));
2563
+ for (const project of projects) all.push(...discoverScripts(project));
2498
2564
  rows.value = all;
2499
- info(`扫描完成: ${config.projects.length} 个项目, ${all.length} 个脚本`);
2565
+ info(`扫描完成: ${projects.length} 个项目, ${all.length} 个脚本`);
2500
2566
  }
2501
2567
  function run(script, args = []) {
2502
2568
  const key = `${script.project}/${script.name}`;
@@ -2784,6 +2850,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
2784
2850
  const activePanel = ref("projects");
2785
2851
  const helpVisible = ref(false);
2786
2852
  const wizardOpen = ref(false);
2853
+ /** R20:脚本浮层目标项目名(null=浮层关) */
2854
+ const scriptsFor = ref(null);
2787
2855
  useKeymap({
2788
2856
  onPanel: (panel) => {
2789
2857
  activePanel.value = panel;
@@ -2798,7 +2866,6 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
2798
2866
  }
2799
2867
  });
2800
2868
  onMounted(() => {
2801
- scanScripts();
2802
2869
  autoStartTunnels();
2803
2870
  });
2804
2871
  onUnmounted(() => {
@@ -2837,6 +2904,19 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
2837
2904
  activePanel.value = "deploy";
2838
2905
  startDeploy(name);
2839
2906
  }
2907
+ /** Projects r → 脚本浮层(R20 项目动作):打开即扫该项目 deploy/(输出进 useLogs→Output 面板) */
2908
+ function onScripts(name) {
2909
+ scriptsFor.value = name;
2910
+ scanScripts(name);
2911
+ }
2912
+ /** 浮层内 R21 确认后的脚本执行(useScripts.run 消费输出/结果) */
2913
+ function onScriptRun(script, args) {
2914
+ runScript(script, args);
2915
+ }
2916
+ /** 浮层内 f 重扫(同项目范围) */
2917
+ function onScriptRefresh() {
2918
+ if (scriptsFor.value !== null) scanScripts(scriptsFor.value);
2919
+ }
2840
2920
  /** 创建向导落盘成功(WizardPanel 经 ConfirmModal 确认后):日志 + 关闭时刷新列表 */
2841
2921
  function onWizardCreated(result) {
2842
2922
  success(`创建托管项目成功: ${result.config.name}(${result.dir})`);
@@ -2885,10 +2965,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
2885
2965
  activePanel,
2886
2966
  helpVisible,
2887
2967
  wizardOpen,
2968
+ scriptsFor,
2888
2969
  ACTION_LABEL,
2889
2970
  onContainerAction,
2890
2971
  onLogs,
2891
2972
  onDeploy,
2973
+ onScripts,
2974
+ onScriptRun,
2975
+ onScriptRefresh,
2892
2976
  onWizardCreated,
2893
2977
  onWizardClose,
2894
2978
  get Box() {
@@ -2937,10 +3021,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
2937
3021
  bold: "",
2938
3022
  color: "cyan"
2939
3023
  }, {
2940
- default: withCtx(() => [..._cache[4] || (_cache[4] = [createTextVNode("Deploy CLI", -1)])]),
3024
+ default: withCtx(() => [..._cache[5] || (_cache[5] = [createTextVNode("Deploy CLI", -1)])]),
2941
3025
  _: 1
2942
3026
  }), createVNode($setup["Text"], { dimColor: "" }, {
2943
- default: withCtx(() => [..._cache[5] || (_cache[5] = [createTextVNode("1 Projects · 2 Containers · 3 Deploy · 4 Status · 5 Tunnels · 6 Output", -1)])]),
3027
+ default: withCtx(() => [..._cache[6] || (_cache[6] = [createTextVNode("1 Projects · 2 Containers · 3 Deploy · 4 Status · 5 Tunnels · 6 Output", -1)])]),
2944
3028
  _: 1
2945
3029
  })]),
2946
3030
  _: 1
@@ -2955,65 +3039,60 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
2955
3039
  key: 0,
2956
3040
  onCreated: $setup.onWizardCreated,
2957
3041
  onClose: $setup.onWizardClose
2958
- })) : $setup.activePanel === "projects" ? (openBlock(), createBlock($setup["ProjectsPanel"], {
2959
- key: 1,
3042
+ })) : $setup.scriptsFor !== null ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createCommentVNode(" R20:脚本浮层(Projects r 项目动作)——挂模态闸,Esc 关闭 "), createVNode($setup["ScriptsPanel"], {
3043
+ project: $setup.scriptsFor,
3044
+ rows: $setup.scriptRows,
3045
+ running: $setup.scriptRunning,
3046
+ onRun: $setup.onScriptRun,
3047
+ onRefresh: $setup.onScriptRefresh,
3048
+ onClose: _cache[0] || (_cache[0] = ($event) => $setup.scriptsFor = null)
3049
+ }, null, 8, [
3050
+ "project",
3051
+ "rows",
3052
+ "running"
3053
+ ])], 2112)) : $setup.activePanel === "projects" ? (openBlock(), createBlock($setup["ProjectsPanel"], {
3054
+ key: 2,
2960
3055
  rows: $setup.projectRows,
2961
3056
  error: $setup.projectError,
2962
3057
  onDeploy: $setup.onDeploy,
2963
- onCreate: _cache[0] || (_cache[0] = ($event) => $setup.wizardOpen = true),
3058
+ onScripts: $setup.onScripts,
3059
+ onCreate: _cache[1] || (_cache[1] = ($event) => $setup.wizardOpen = true),
2964
3060
  onRefresh: $setup.refreshProjects
2965
3061
  }, null, 8, [
2966
3062
  "rows",
2967
3063
  "error",
2968
3064
  "onRefresh"
2969
3065
  ])) : $setup.activePanel === "containers" ? (openBlock(), createBlock($setup["ContainersPanel"], {
2970
- key: 2,
3066
+ key: 3,
2971
3067
  rows: $setup.containerRows,
2972
3068
  error: $setup.containerError,
2973
3069
  following: $setup.following,
2974
3070
  onLogs: $setup.onLogs,
2975
- onRestart: _cache[1] || (_cache[1] = (name) => $setup.onContainerAction("restart", name)),
2976
- onStop: _cache[2] || (_cache[2] = (name) => $setup.onContainerAction("stop", name)),
2977
- onRemove: _cache[3] || (_cache[3] = (name) => $setup.onContainerAction("remove", name)),
3071
+ onRestart: _cache[2] || (_cache[2] = (name) => $setup.onContainerAction("restart", name)),
3072
+ onStop: _cache[3] || (_cache[3] = (name) => $setup.onContainerAction("stop", name)),
3073
+ onRemove: _cache[4] || (_cache[4] = (name) => $setup.onContainerAction("remove", name)),
2978
3074
  onRefresh: $setup.refreshContainers
2979
3075
  }, null, 8, [
2980
3076
  "rows",
2981
3077
  "error",
2982
3078
  "following",
2983
3079
  "onRefresh"
2984
- ])) : $setup.activePanel === "deploy" ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [createCommentVNode(" 面板 3 Deploy:流水线(T6)+ 脚本区(T7,v0.1.0 DeployPanel 语义)复合;\n gap=0 + 脚本区单行空态:80x24 终端部署进行时 21 行恰好放下(部署框 15 + 脚本框 6) "), createVNode($setup["Box"], {
2985
- flexDirection: "column",
2986
- flexGrow: 1,
2987
- gap: 0
2988
- }, {
2989
- default: withCtx(() => [createVNode($setup["DeployPanel"], {
2990
- "project-name": $setup.deployProject,
2991
- steps: $setup.deploySteps,
2992
- lines: $setup.deployLines,
2993
- running: $setup.deployRunning,
2994
- done: $setup.deployDone,
2995
- "failed-step": $setup.deployFailedStep
2996
- }, null, 8, [
2997
- "project-name",
2998
- "steps",
2999
- "lines",
3000
- "running",
3001
- "done",
3002
- "failed-step"
3003
- ]), createVNode($setup["ScriptsPanel"], {
3004
- rows: $setup.scriptRows,
3005
- running: $setup.scriptRunning,
3006
- onRun: $setup.runScript,
3007
- onRefresh: $setup.scanScripts
3008
- }, null, 8, [
3009
- "rows",
3010
- "running",
3011
- "onRun",
3012
- "onRefresh"
3013
- ])]),
3014
- _: 1
3015
- })], 2112)) : $setup.activePanel === "status" ? (openBlock(), createBlock($setup["StatusPanel"], {
3016
- key: 4,
3080
+ ])) : $setup.activePanel === "deploy" ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [createCommentVNode(" 面板 3 Deploy:T6 流水线视图(R20:脚本=Projects 动作浮层,不在此复合) "), createVNode($setup["DeployPanel"], {
3081
+ "project-name": $setup.deployProject,
3082
+ steps: $setup.deploySteps,
3083
+ lines: $setup.deployLines,
3084
+ running: $setup.deployRunning,
3085
+ done: $setup.deployDone,
3086
+ "failed-step": $setup.deployFailedStep
3087
+ }, null, 8, [
3088
+ "project-name",
3089
+ "steps",
3090
+ "lines",
3091
+ "running",
3092
+ "done",
3093
+ "failed-step"
3094
+ ])], 2112)) : $setup.activePanel === "status" ? (openBlock(), createBlock($setup["StatusPanel"], {
3095
+ key: 5,
3017
3096
  rows: $setup.healthRows,
3018
3097
  error: $setup.healthError,
3019
3098
  onRefresh: $setup.refreshHealth
@@ -3022,7 +3101,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
3022
3101
  "error",
3023
3102
  "onRefresh"
3024
3103
  ])) : $setup.activePanel === "tunnels" ? (openBlock(), createBlock($setup["TunnelsPanel"], {
3025
- key: 5,
3104
+ key: 6,
3026
3105
  rows: $setup.tunnelRows,
3027
3106
  onStart: $setup.startTunnel,
3028
3107
  onStop: $setup.stopTunnel,
@@ -3033,7 +3112,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
3033
3112
  "onStop",
3034
3113
  "onStartAll"
3035
3114
  ])) : $setup.activePanel === "output" ? (openBlock(), createBlock($setup["OutputPanel"], {
3036
- key: 6,
3115
+ key: 7,
3037
3116
  logs: $setup.logs
3038
3117
  }, null, 8, ["logs"])) : createCommentVNode("v-if", true)]),
3039
3118
  _: 1
@@ -3052,7 +3131,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
3052
3131
  bold: "",
3053
3132
  color: "yellow"
3054
3133
  }, {
3055
- default: withCtx(() => [..._cache[6] || (_cache[6] = [createTextVNode("快捷键帮助", -1)])]),
3134
+ default: withCtx(() => [..._cache[7] || (_cache[7] = [createTextVNode("快捷键帮助", -1)])]),
3056
3135
  _: 1
3057
3136
  }),
3058
3137
  (openBlock(true), createElementBlock(Fragment, null, renderList($setup.PANEL_IDS, (id, i) => {
@@ -3062,7 +3141,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
3062
3141
  }, 1024);
3063
3142
  }), 128)),
3064
3143
  createVNode($setup["Text"], null, {
3065
- default: withCtx(() => [..._cache[7] || (_cache[7] = [createTextVNode("? 打开/关闭帮助 │ q 退出", -1)])]),
3144
+ default: withCtx(() => [..._cache[8] || (_cache[8] = [createTextVNode("? 打开/关闭帮助 │ q 退出", -1)])]),
3066
3145
  _: 1
3067
3146
  })
3068
3147
  ]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dongnanyang/deploy-cli",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "description": "Local CLI TUI for SSH tunnels & deploy scripts",
5
5
  "type": "module",
6
6
  "main": "./dist/api.js",