@staff0rd/assist 0.177.0 → 0.177.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/dist/index.js +5 -5
- package/package.json +1 -1
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.177.
|
|
9
|
+
version: "0.177.1",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -854,9 +854,10 @@ async function handleIncompletePhase() {
|
|
|
854
854
|
// src/commands/backlog/writeSignal.ts
|
|
855
855
|
import { writeFileSync as writeFileSync4 } from "fs";
|
|
856
856
|
import { join as join6 } from "path";
|
|
857
|
-
var SIGNAL_FILE = ".assist-signal.json";
|
|
858
857
|
function getSignalPath() {
|
|
859
|
-
|
|
858
|
+
const sessionId = process.env.ASSIST_SESSION_ID;
|
|
859
|
+
const filename = sessionId ? `.assist-signal-${sessionId}.json` : ".assist-signal.json";
|
|
860
|
+
return join6(getBacklogDir(), filename);
|
|
860
861
|
}
|
|
861
862
|
function writeSignal(event, data) {
|
|
862
863
|
const sessionId = process.env.ASSIST_SESSION_ID;
|
|
@@ -924,11 +925,10 @@ function readSignal() {
|
|
|
924
925
|
// src/commands/backlog/watchForMarker.ts
|
|
925
926
|
function watchForMarker(child) {
|
|
926
927
|
const statusPath = getSignalPath();
|
|
927
|
-
const sessionId = process.env.ASSIST_SESSION_ID;
|
|
928
928
|
watchFile(statusPath, { interval: 1e3 }, () => {
|
|
929
929
|
if (!existsSync7(statusPath)) return;
|
|
930
930
|
const signal = readSignal();
|
|
931
|
-
if (signal
|
|
931
|
+
if (signal) {
|
|
932
932
|
unwatchFile(statusPath);
|
|
933
933
|
child.kill("SIGTERM");
|
|
934
934
|
}
|