@co0ontty/wand 3.1.0 → 3.1.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.
@@ -1,6 +1,6 @@
1
1
  {
2
- "commit": "8bd74a55a6f2b67573cfb3496dccb04a25382dca",
3
- "builtAt": "2026-07-13T05:42:57.549Z",
4
- "version": "3.1.0",
2
+ "commit": "18597f5a51ca36892eed295095956a44bb3da2c8",
3
+ "builtAt": "2026-07-13T08:34:48.768Z",
4
+ "version": "3.1.1",
5
5
  "channel": "stable"
6
6
  }
@@ -709,6 +709,17 @@ export async function runPush(opts) {
709
709
  subPushErrors = subPush.errors;
710
710
  }
711
711
  }
712
+ // 父仓库 commit/tag 一旦先上远端就可能立即触发 release workflow;此时任一
713
+ // submodule push 失败都会让 CI 永远检出不到父仓库记录的 gitlink。保留父仓库的
714
+ // 本地 commit/tag,等用户补推成功后再一起发布,不能带着部分失败继续 push。
715
+ if (subPushErrors.length > 0) {
716
+ return {
717
+ ok: false,
718
+ pushedCommits: false,
719
+ pushedTags: false,
720
+ error: subPushErrors.join(";"),
721
+ };
722
+ }
712
723
  const outcome = doPush({ cwd, pushCommits, pushTags, recurseSubmodules: submodule ? "no" : "check" });
713
724
  return {
714
725
  ok: !outcome.error && subPushErrors.length === 0,
@@ -1183,15 +1194,22 @@ export async function runQuickCommit(opts) {
1183
1194
  const subPush = pushSubmodules(cwd, submoduleOutcome.commits, { pushTags: !!tagName, tagName });
1184
1195
  subPushErrors = subPush.errors;
1185
1196
  }
1186
- const outcome = doPush({
1187
- cwd,
1188
- pushCommits: true,
1189
- // Push only the freshly-created tag — avoids surprising users by pushing stale local tags.
1190
- pushTags: tagName ? [tagName] : false,
1191
- recurseSubmodules: includeSub ? "no" : "check",
1192
- });
1193
- pushed = outcome.pushedCommits && (tagName ? outcome.pushedTags : true) && subPushErrors.length === 0;
1194
- pushError = outcome.error || (subPushErrors.length ? subPushErrors.join(";") : undefined);
1197
+ if (subPushErrors.length > 0) {
1198
+ // 不把引用了未推送 gitlink 的父仓库 commit/tag 发布出去;结果面板会保留
1199
+ // Submodule 意图,用户可直接用“Push & Close”补推。
1200
+ pushError = subPushErrors.join(";");
1201
+ }
1202
+ else {
1203
+ const outcome = doPush({
1204
+ cwd,
1205
+ pushCommits: true,
1206
+ // Push only the freshly-created tag — avoids surprising users by pushing stale local tags.
1207
+ pushTags: tagName ? [tagName] : false,
1208
+ recurseSubmodules: includeSub ? "no" : "check",
1209
+ });
1210
+ pushed = outcome.pushedCommits && (tagName ? outcome.pushedTags : true);
1211
+ pushError = outcome.error;
1212
+ }
1195
1213
  }
1196
1214
  return {
1197
1215
  ok: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@co0ontty/wand",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "A web console for Claude Code, Codex, OpenCode, and other local CLI tools.",
5
5
  "type": "module",
6
6
  "bin": {