1st-pi 0.1.0 → 0.1.1
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 +3 -1
- package/extensions/packages/workflow.ts +13 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -135,7 +135,7 @@ Preset 默认开启以下 TUI 增强,session 中持久化的个人选择优先
|
|
|
135
135
|
| [@mrclrchtr/supi-context](https://www.npmjs.com/package/@mrclrchtr/supi-context) | `/supi-context` 上下文组成与 token 占用报告 |
|
|
136
136
|
| [@tintinweb/pi-subagents](https://www.npmjs.com/package/@tintinweb/pi-subagents) | Claude Code 风格 sub-agents |
|
|
137
137
|
| [@tintinweb/pi-tasks](https://www.npmjs.com/package/@tintinweb/pi-tasks) | Task tracking 与协作 |
|
|
138
|
-
| [@quintinshaw/pi-dynamic-workflows](https://www.npmjs.com/package/@quintinshaw/pi-dynamic-workflows) | 动态 workflows |
|
|
138
|
+
| [@quintinshaw/pi-dynamic-workflows](https://www.npmjs.com/package/@quintinshaw/pi-dynamic-workflows) | 动态 workflows;preset 默认关闭 `workflow/workflows` 关键词自动触发,仅通过 `/workflows`、已保存 workflow 的 slash command 或显式 `/workflows-trigger on` 启用 |
|
|
139
139
|
|
|
140
140
|
这些包位于普通 npm `dependencies`,安装 preset 时由 npm 获取,不会塞入 `1st-pi` tarball。`extensions/packages/*.ts` 是只负责调用 dependency extension entrypoint 的 thin adapters;因此依赖可以正常 hoist,同时 Pi manifest 只引用本包内稳定路径。FFF 也会由 npm 在 macOS、Linux 和 Windows 上选择正确的原生 binary。
|
|
141
141
|
|
|
@@ -157,6 +157,8 @@ TUI 与 tool ownership:
|
|
|
157
157
|
- `pi-mcp-adapter`:负责 MCP 工具与渲染
|
|
158
158
|
- Tasks、Subagents、Workflows、Goal、BTW、Context 与 Memory:继续使用各 package 自己的领域 UI
|
|
159
159
|
|
|
160
|
+
Workflow 关键词触发在首次加载 preset 时默认写为关闭;已有明确的 `on`/`off` 用户配置会保留,不会被 preset 覆盖。关闭关键词触发不影响 `/workflows` 及已保存 workflow 的 slash commands。
|
|
161
|
+
|
|
160
162
|
`pi-tool-display` 已移除,因为它会注册同名的 `read/edit/write/find/grep` overrides,与 Readseek/FFF 形成双重 owner。
|
|
161
163
|
|
|
162
164
|
要启用上述 Readseek ownership,在 `~/.pi/agent/settings.json` 中加入:
|
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
2
|
+
import {
|
|
3
|
+
loadWorkflowSettings,
|
|
4
|
+
saveWorkflowSettingsForCwd,
|
|
5
|
+
} from "@quintinshaw/pi-dynamic-workflows";
|
|
6
|
+
|
|
7
|
+
export function applyWorkflowPresetDefaults(cwd: string): void {
|
|
8
|
+
const settings = loadWorkflowSettings({ cwd });
|
|
9
|
+
if (settings.keywordTriggerEnabled === undefined) {
|
|
10
|
+
saveWorkflowSettingsForCwd({ keywordTriggerEnabled: false }, cwd);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
2
13
|
|
|
3
14
|
export default async function workflowAdapter(pi: ExtensionAPI): Promise<void> {
|
|
15
|
+
applyWorkflowPresetDefaults(process.cwd());
|
|
16
|
+
|
|
4
17
|
const packageEntry = import.meta.resolve("@quintinshaw/pi-dynamic-workflows");
|
|
5
18
|
const extensionUrl = new URL("../extensions/workflow.ts", packageEntry);
|
|
6
19
|
const { default: registerWorkflow } = await import(extensionUrl.href);
|