@staff0rd/assist 0.302.2 → 0.303.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/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import { Command } from "commander";
6
6
  // package.json
7
7
  var package_default = {
8
8
  name: "@staff0rd/assist",
9
- version: "0.302.2",
9
+ version: "0.303.0",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -425,7 +425,7 @@ function stageAndCommit(files, message) {
425
425
  function execCommit(files, message, config) {
426
426
  try {
427
427
  if (config.commit?.pull) {
428
- execSync("git pull", { stdio: "inherit" });
428
+ execSync("git pull --autostash", { stdio: "inherit" });
429
429
  }
430
430
  const sha = files.length > 0 ? stageAndCommit(files, message) : commitStaged(message);
431
431
  console.log(`Committed: ${sha}`);
@@ -1738,7 +1738,8 @@ var MACHINE_DIRECTIVES = [
1738
1738
  "prettier-ignore",
1739
1739
  "istanbul ignore",
1740
1740
  "v8 ignore",
1741
- "c8 ignore"
1741
+ "c8 ignore",
1742
+ "@vitest-environment"
1742
1743
  ];
1743
1744
  function isCommentExempt(text5, markers) {
1744
1745
  const lower = text5.toLowerCase();
@@ -18868,7 +18869,11 @@ function greetClient(client, sessions, windowsProxy) {
18868
18869
  // src/commands/sessions/daemon/shouldAutoDismiss.ts
18869
18870
  function shouldAutoDismiss(session, exitCode) {
18870
18871
  const args = session.assistArgs;
18871
- return session.status === "done" && exitCode === 0 && args !== void 0 && args.includes("--once") && args[0] !== "next";
18872
+ if (session.status !== "done" || exitCode !== 0 || args === void 0) {
18873
+ return false;
18874
+ }
18875
+ if (args[0] === "update") return true;
18876
+ return args.includes("--once") && args[0] !== "next";
18872
18877
  }
18873
18878
 
18874
18879
  // src/commands/sessions/daemon/shouldAutoRun.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.302.2",
3
+ "version": "0.303.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {