@cloud411716/fancy-webnovel 1.0.44 → 1.0.45
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.
|
@@ -84,9 +84,9 @@ export function apply(ctx) {
|
|
|
84
84
|
if (!projectRoot) {
|
|
85
85
|
let result;
|
|
86
86
|
try {
|
|
87
|
+
// Note: not passing agent parameter to avoid scopeTarget issues in dsh-web
|
|
87
88
|
result = await ctx.userQuestions.ask({
|
|
88
89
|
questions: [bootstrap.askPath()],
|
|
89
|
-
agent: invocation.agent,
|
|
90
90
|
signal,
|
|
91
91
|
});
|
|
92
92
|
} catch (err) {
|
|
@@ -121,6 +121,7 @@ export function apply(ctx) {
|
|
|
121
121
|
// ---------- confirm ----------
|
|
122
122
|
let confirm;
|
|
123
123
|
try {
|
|
124
|
+
// Note: not passing agent parameter to avoid scopeTarget issues in dsh-web
|
|
124
125
|
confirm = await ctx.userQuestions.ask({
|
|
125
126
|
questions: [{
|
|
126
127
|
id: 'confirm',
|
|
@@ -129,7 +130,6 @@ export function apply(ctx) {
|
|
|
129
130
|
hideCustomInput: true,
|
|
130
131
|
options: bootstrap.confirmOptions(),
|
|
131
132
|
}],
|
|
132
|
-
agent: invocation.agent,
|
|
133
133
|
signal,
|
|
134
134
|
});
|
|
135
135
|
} catch (err) {
|
package/commands/scan/index.js
CHANGED
|
@@ -140,13 +140,13 @@ export function apply(ctx) {
|
|
|
140
140
|
// ---------- platform selection ----------
|
|
141
141
|
let platformResult;
|
|
142
142
|
try {
|
|
143
|
+
// Note: not passing agent parameter to avoid scopeTarget issues in dsh-web
|
|
143
144
|
platformResult = await ctx.userQuestions.ask({
|
|
144
145
|
questions: [{
|
|
145
146
|
id: 'platform',
|
|
146
147
|
...scan.askPlatform(),
|
|
147
148
|
question: `${scan.platformList()}\n\n请选择要扫的平台(输入编号 1-4):`,
|
|
148
149
|
}],
|
|
149
|
-
agent: invocation.agent,
|
|
150
150
|
signal,
|
|
151
151
|
});
|
|
152
152
|
} catch (err) {
|
|
@@ -174,9 +174,9 @@ export function apply(ctx) {
|
|
|
174
174
|
// ---------- rank selection (multi-select) ----------
|
|
175
175
|
let rankResult;
|
|
176
176
|
try {
|
|
177
|
+
// Note: not passing agent parameter to avoid scopeTarget issues in dsh-web
|
|
177
178
|
rankResult = await ctx.userQuestions.ask({
|
|
178
179
|
questions: [scan.askRankList(platform)],
|
|
179
|
-
agent: invocation.agent,
|
|
180
180
|
signal,
|
|
181
181
|
});
|
|
182
182
|
} catch (err) {
|