dsh-plugin-shop 0.8.0-beta.0 → 0.8.0-beta.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.
package/lib/client.js CHANGED
@@ -4838,6 +4838,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4838
4838
  if (status.state === "done") return {
4839
4839
  kind: "done",
4840
4840
  needsRestart: !!status.needsRestart,
4841
+ log: status.log,
4841
4842
  ...status.restartReason !== void 0 ? { restartReason: status.restartReason } : {}
4842
4843
  };
4843
4844
  return {
@@ -5775,6 +5776,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5775
5776
  if (view.kind === "done") return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
5776
5777
  className: _dsh_plugin_shop_css_e3675a89_default.installedActions,
5777
5778
  children: [
5779
+ view.log.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
5780
+ className: _dsh_plugin_shop_css_e3675a89_default.log,
5781
+ children: view.log.map((line, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
5782
+ className: _dsh_plugin_shop_css_e3675a89_default.logLine,
5783
+ children: line
5784
+ }, index))
5785
+ }),
5778
5786
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
5779
5787
  className: _dsh_plugin_shop_css_e3675a89_default.notice,
5780
5788
  "data-shop-restart-notice": true,
package/lib/index.js CHANGED
@@ -1037,7 +1037,8 @@ function installFailureDetail(profile, log) {
1037
1037
  const reversed = [...usable].reverse();
1038
1038
  const pick = reversed.find((line) => /ERR_[A-Z][A-Z_]*/.test(line)) ?? reversed.find((line) => /(?:^|\s)\w*Error:/.test(line)) ?? usable[usable.length - 1];
1039
1039
  if (pick === void 0) return `${hint}.`;
1040
- return `${hint} ${pick}${/ERR_PNPM_IGNORED_BUILDS/.test(pick) ? " A dependency wants to run a build script, which pnpm blocks by default: run `pnpm approve-builds` in the profile directory to allow it, then retry." : ""}`;
1040
+ const cause = reversed.map((line) => /^\s*╰─▶\s*(\S.*)$/.exec(line)?.[1]).find((text) => text !== void 0);
1041
+ return `${hint} — ${pick}${cause !== void 0 && !pick.includes(cause) ? `: ${cause}` : ""}${/ERR_PNPM_IGNORED_BUILDS/.test(pick) ? " A dependency wants to run a build script, which pnpm blocks by default: run `pnpm approve-builds` in the profile directory to allow it, then retry." : ""}`;
1041
1042
  }
1042
1043
  /**
1043
1044
  * Why a spawn of the dsh CLI never started.
@@ -65,6 +65,7 @@ export type InstallView = {
65
65
  } | {
66
66
  kind: 'done';
67
67
  needsRestart: boolean;
68
+ log: string[];
68
69
  restartReason?: HotRestartReason;
69
70
  } | {
70
71
  kind: 'failed';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-plugin-shop",
3
- "version": "0.8.0-beta.0",
3
+ "version": "0.8.0-beta.1",
4
4
  "description": "The DeepSeek Harness plugin shop: browse, install, enable, and update dsh plugins from a git-auditable catalog.",
5
5
  "keywords": [
6
6
  "dsh-plugin",