@staff0rd/assist 0.176.0 → 0.177.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 +13 -1
- 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.0",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -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}`;
|