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 CHANGED
@@ -289,6 +289,8 @@ kcode start --provider openai --model gpt-4o
289
289
  /kd-start --product flagship 实现采购订单插件
290
290
  ```
291
291
 
292
+ `/kd-start` 会创建新的功能点 run,并立即触发 Agent 进入 `discuss` 阶段。如果未识别出产品画像,例如显示 `(unknown/unknown)`,下一步应先确认产品、版本和技术栈,而不是直接写代码。
293
+
292
294
  支持的产品画像:
293
295
 
294
296
  ```text
@@ -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("KCode Question", question))?.trim() || undefined;
539
+ return (await ctx.ui.input(question, "请输入答案"))?.trim() || undefined;
533
540
  }
534
541
 
535
542
  const customChoice = "其他,自定义输入";
536
- const selected = await ctx.ui.select("KCode Question", [...normalizedChoices, customChoice]);
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("KCode Question", question))?.trim() || undefined;
546
+ return (await ctx.ui.input(question, "请输入答案"))?.trim() || undefined;
540
547
  } catch {
541
548
  return undefined;
542
549
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcode-pi",
3
- "version": "0.1.9",
3
+ "version": "0.1.12",
4
4
  "description": "Kingdee-specific package and harness for Pi Coding Agent",
5
5
  "type": "module",
6
6
  "private": false,