@staff0rd/assist 0.1069.3 → 0.1070.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/built-version +1 -1
- package/dist/commands/sessions/web/bundle.js +352 -352
- package/dist/index.js +14 -9
- 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.1070.0",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -1384,7 +1384,7 @@ var assistConfigShape = {
|
|
|
1384
1384
|
maxLive: z6.number().default(24),
|
|
1385
1385
|
newSessionMode: z6.enum(["draft", "bug", "prompt", "design"]).default("draft"),
|
|
1386
1386
|
hotkeys: hotkeysSchema.optional(),
|
|
1387
|
-
askQuestion: z6.boolean().default(
|
|
1387
|
+
askQuestion: z6.boolean().default(true),
|
|
1388
1388
|
askQuestionAutoSubmit: z6.boolean().default(false)
|
|
1389
1389
|
}).optional(),
|
|
1390
1390
|
database: z6.strictObject({
|
|
@@ -6278,8 +6278,8 @@ var adviceConfigHelp = [
|
|
|
6278
6278
|
var askQuestionConfigHelp = [
|
|
6279
6279
|
{
|
|
6280
6280
|
key: "sessions.askQuestion",
|
|
6281
|
-
setter: "assist config set sessions.askQuestion
|
|
6282
|
-
note: "
|
|
6281
|
+
setter: "assist config set sessions.askQuestion false --node",
|
|
6282
|
+
note: "assist ask-question answers AskUserQuestion questions from the session's web preview pane; when on, assist cli-hook denies AskUserQuestion in assist sessions and an advice fragment points Claude at assist ask-question; when off it exits non-zero so Claude uses the built-in tool (default on)"
|
|
6283
6283
|
},
|
|
6284
6284
|
{
|
|
6285
6285
|
key: "sessions.askQuestionAutoSubmit",
|
|
@@ -7736,6 +7736,11 @@ async function appendComment(orm, itemId2, text20, opts = {}) {
|
|
|
7736
7736
|
});
|
|
7737
7737
|
}
|
|
7738
7738
|
|
|
7739
|
+
// src/commands/askQuestion/askQuestionEnabled.ts
|
|
7740
|
+
function askQuestionEnabled(config) {
|
|
7741
|
+
return config.sessions?.askQuestion !== false;
|
|
7742
|
+
}
|
|
7743
|
+
|
|
7739
7744
|
// src/commands/backlog/buildManualCheckLines.ts
|
|
7740
7745
|
function buildManualCheckLines(manualChecks, commitBeforePhaseEnd, askCheck2 = false) {
|
|
7741
7746
|
if (manualChecks.length > 0 && askCheck2) {
|
|
@@ -7926,7 +7931,7 @@ function buildPhasePrompt(item, phaseNumber, phase) {
|
|
|
7926
7931
|
const config = loadConfig();
|
|
7927
7932
|
const worktree = config.worktree;
|
|
7928
7933
|
const commitBeforePhaseEnd = worktree?.commitBeforePhaseEnd ?? worktree?.commitBeforeManualChecks ?? false;
|
|
7929
|
-
const askCheck2 = config
|
|
7934
|
+
const askCheck2 = askQuestionEnabled(config);
|
|
7930
7935
|
if (phase.name === REVIEW_PHASE_NAME) {
|
|
7931
7936
|
return buildReviewPrompt(item, phaseNumber, {
|
|
7932
7937
|
commitBeforePhaseEnd,
|
|
@@ -16226,7 +16231,7 @@ var adviceConditions = {
|
|
|
16226
16231
|
askQuestion: {
|
|
16227
16232
|
whenMet: "sessions.askQuestion is on in an assist-launched session",
|
|
16228
16233
|
whenUnmet: "the session was not launched by assist, or sessions.askQuestion is off",
|
|
16229
|
-
matches: ({ assistSession, config }) => assistSession && config
|
|
16234
|
+
matches: ({ assistSession, config }) => assistSession && askQuestionEnabled(config)
|
|
16230
16235
|
},
|
|
16231
16236
|
typescript: repoFile("tsconfig.json", "a tsconfig.json"),
|
|
16232
16237
|
filenameConvention: repoFile(
|
|
@@ -16799,7 +16804,7 @@ async function requireCheckSession() {
|
|
|
16799
16804
|
const sessionId2 = process.env.ASSIST_SESSION_ID;
|
|
16800
16805
|
if (process.env.ASSIST_SESSION !== "1" || !sessionId2)
|
|
16801
16806
|
askInChat("not running in an assist session");
|
|
16802
|
-
if (!loadConfig()
|
|
16807
|
+
if (!askQuestionEnabled(loadConfig()))
|
|
16803
16808
|
askInChat("assist ask-check is disabled (sessions.askQuestion)");
|
|
16804
16809
|
if (!await isLiveDaemonSession(sessionId2))
|
|
16805
16810
|
askInChat(
|
|
@@ -17070,7 +17075,7 @@ async function askQuestion(options2) {
|
|
|
17070
17075
|
const sessionId2 = process.env.ASSIST_SESSION_ID;
|
|
17071
17076
|
if (process.env.ASSIST_SESSION !== "1" || !sessionId2)
|
|
17072
17077
|
useBuiltIn("not running in an assist session");
|
|
17073
|
-
if (!loadConfig()
|
|
17078
|
+
if (!askQuestionEnabled(loadConfig()))
|
|
17074
17079
|
useBuiltIn("assist ask-question is disabled (sessions.askQuestion)");
|
|
17075
17080
|
if (!await isLiveDaemonSession(sessionId2))
|
|
17076
17081
|
useBuiltIn(
|
|
@@ -23343,7 +23348,7 @@ function inWebSession() {
|
|
|
23343
23348
|
// src/commands/cliHook/findAskQuestionDeny.ts
|
|
23344
23349
|
async function findAskQuestionDeny(questionsJson) {
|
|
23345
23350
|
if (!inWebSession()) return void 0;
|
|
23346
|
-
if (!loadConfig()
|
|
23351
|
+
if (!askQuestionEnabled(loadConfig())) return void 0;
|
|
23347
23352
|
if (!await isLiveDaemonSession(process.env.ASSIST_SESSION_ID))
|
|
23348
23353
|
return void 0;
|
|
23349
23354
|
return {
|