@maplezzk/pi-dynamic-workflows 1.3.0 → 1.4.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/package.json +2 -2
- package/src/extension.ts +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maplezzk/pi-dynamic-workflows",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "Claude-Code-style dynamic workflow orchestration for Pi. Fork of michaelliv/pi-dynamic-workflows.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.ts",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
],
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"acorn": "^8.16.0",
|
|
63
|
-
"pi-extensions-i18n": "^0.
|
|
63
|
+
"pi-extensions-i18n": "^0.6.0"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"@earendil-works/pi-ai": ">=0.80.0",
|
package/src/extension.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineTool, type ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
2
2
|
import { Box, Text } from "@earendil-works/pi-tui";
|
|
3
|
-
import { createTranslator, loadCatalog, notifyWithSource } from "pi-extensions-i18n";
|
|
3
|
+
import { createTranslator, installNoticeRenderer, loadCatalog, notifyWithSource } from "pi-extensions-i18n";
|
|
4
4
|
import { Type } from "typebox";
|
|
5
5
|
import { loadConfig, saveConfig } from "./config.ts";
|
|
6
6
|
import { cancelRunningWorkflow, createWorkflowTool, renderWorkflowThemed } from "./index.ts";
|
|
@@ -9,6 +9,8 @@ import { NOTICE_SOURCE } from "./notice.ts";
|
|
|
9
9
|
const i18n = createTranslator(loadCatalog(new URL("../locales/index.json", import.meta.url)));
|
|
10
10
|
|
|
11
11
|
export default function extension(pi: ExtensionAPI) {
|
|
12
|
+
// 提示画成会话区里的带底色消息块;渲染器在本包这个模块实例里注册一次。
|
|
13
|
+
installNoticeRenderer(pi);
|
|
12
14
|
// Subagent session 不注册 workflow 工具:subagent 是 workflow 的执行节点,
|
|
13
15
|
// 不应再拥有启动 workflow 的能力(防止递归调用、误激活、误取消等)。
|
|
14
16
|
// pi-interactive-subagents 启动子 pi session 时会设置 PI_SUBAGENT_NAME。
|