@staff0rd/assist 0.176.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 +17 -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.
|
|
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
|
}
|
|
@@ -1650,6 +1650,9 @@ var assistConfigSchema = z2.strictObject({
|
|
|
1650
1650
|
screenshot: z2.strictObject({
|
|
1651
1651
|
outputDir: z2.string().default("./screenshots")
|
|
1652
1652
|
}).default({ outputDir: "./screenshots" }),
|
|
1653
|
+
backlog: z2.strictObject({
|
|
1654
|
+
autoCommit: z2.boolean().default(false)
|
|
1655
|
+
}).default({ autoCommit: false }),
|
|
1653
1656
|
deny: z2.array(
|
|
1654
1657
|
z2.strictObject({
|
|
1655
1658
|
pattern: z2.string(),
|
|
@@ -3826,6 +3829,15 @@ import { execSync as execSync14 } from "child_process";
|
|
|
3826
3829
|
import { join as join15 } from "path";
|
|
3827
3830
|
import chalk45 from "chalk";
|
|
3828
3831
|
function commitBacklog(id, name) {
|
|
3832
|
+
const config = loadConfig();
|
|
3833
|
+
if (!config.backlog.autoCommit) {
|
|
3834
|
+
console.log(
|
|
3835
|
+
chalk45.yellow(
|
|
3836
|
+
"Warning: auto-commit is disabled. Stage and commit the backlog file manually."
|
|
3837
|
+
)
|
|
3838
|
+
);
|
|
3839
|
+
return;
|
|
3840
|
+
}
|
|
3829
3841
|
try {
|
|
3830
3842
|
const jsonlPath = join15(getBacklogDir(), ".assist", "backlog.jsonl");
|
|
3831
3843
|
const message = `chore: add backlog item #${id} \u2014 ${name}`;
|