@staff0rd/assist 0.1043.0 → 0.1044.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
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.1044.1",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -15466,10 +15466,11 @@ async function readStdin() {
|
|
|
15466
15466
|
}
|
|
15467
15467
|
|
|
15468
15468
|
// src/commands/advise/adviceContextFor.ts
|
|
15469
|
-
function adviceContextFor(cwd) {
|
|
15469
|
+
function adviceContextFor(cwd, env = process.env) {
|
|
15470
15470
|
return {
|
|
15471
15471
|
config: loadConfigFrom(cwd),
|
|
15472
|
-
rootDir: findConfigUp(cwd)?.rootDir ?? cwd
|
|
15472
|
+
rootDir: findConfigUp(cwd)?.rootDir ?? cwd,
|
|
15473
|
+
assistSession: env.ASSIST_SESSION === "1"
|
|
15473
15474
|
};
|
|
15474
15475
|
}
|
|
15475
15476
|
|
|
@@ -15571,10 +15572,15 @@ var adviceConditions = {
|
|
|
15571
15572
|
whenUnmet: "jira is not configured",
|
|
15572
15573
|
matches: ({ config }) => config.jira !== void 0
|
|
15573
15574
|
},
|
|
15575
|
+
assistSession: {
|
|
15576
|
+
whenMet: "the session was launched by assist",
|
|
15577
|
+
whenUnmet: "the session was not launched by assist",
|
|
15578
|
+
matches: ({ assistSession }) => assistSession
|
|
15579
|
+
},
|
|
15574
15580
|
askQuestion: {
|
|
15575
|
-
whenMet: "sessions.askQuestion is on",
|
|
15576
|
-
whenUnmet: "sessions.askQuestion is off",
|
|
15577
|
-
matches: ({ config }) => config.sessions?.askQuestion === true
|
|
15581
|
+
whenMet: "sessions.askQuestion is on in an assist-launched session",
|
|
15582
|
+
whenUnmet: "the session was not launched by assist, or sessions.askQuestion is off",
|
|
15583
|
+
matches: ({ assistSession, config }) => assistSession && config.sessions?.askQuestion === true
|
|
15578
15584
|
},
|
|
15579
15585
|
typescript: repoFile("tsconfig.json", "a tsconfig.json"),
|
|
15580
15586
|
filenameConvention: repoFile(
|