kcode-pi 0.1.9 → 0.1.12
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/README.md +2 -0
- package/extensions/kingdee-harness.ts +10 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -357,6 +357,13 @@ export default function (pi: ExtensionAPI) {
|
|
|
357
357
|
|
|
358
358
|
const run = createActiveRun(ctx.cwd, goal, parsed.product, parsed.version);
|
|
359
359
|
ctx.ui.notify(`Started Kingdee harness run: ${run.id} (${run.profile?.product}/${run.profile?.techStack})`, "info");
|
|
360
|
+
const kickoff = `继续 KCode Harness run ${run.id}:${goal}`;
|
|
361
|
+
if (ctx.isIdle()) {
|
|
362
|
+
pi.sendUserMessage(kickoff);
|
|
363
|
+
} else {
|
|
364
|
+
pi.sendUserMessage(kickoff, { deliverAs: "followUp" });
|
|
365
|
+
ctx.ui.notify("KCode harness kickoff queued.", "info");
|
|
366
|
+
}
|
|
360
367
|
},
|
|
361
368
|
});
|
|
362
369
|
|
|
@@ -529,14 +536,14 @@ async function askQuestionInteractively(
|
|
|
529
536
|
const normalizedChoices = choices?.map((choice) => choice.trim()).filter(Boolean) ?? [];
|
|
530
537
|
try {
|
|
531
538
|
if (normalizedChoices.length === 0) {
|
|
532
|
-
return (await ctx.ui.input(
|
|
539
|
+
return (await ctx.ui.input(question, "请输入答案"))?.trim() || undefined;
|
|
533
540
|
}
|
|
534
541
|
|
|
535
542
|
const customChoice = "其他,自定义输入";
|
|
536
|
-
const selected = await ctx.ui.select(
|
|
543
|
+
const selected = await ctx.ui.select(question, [...normalizedChoices, customChoice]);
|
|
537
544
|
if (!selected) return undefined;
|
|
538
545
|
if (selected !== customChoice) return selected;
|
|
539
|
-
return (await ctx.ui.input(
|
|
546
|
+
return (await ctx.ui.input(question, "请输入答案"))?.trim() || undefined;
|
|
540
547
|
} catch {
|
|
541
548
|
return undefined;
|
|
542
549
|
}
|