@akagilnc/pi-workflow-roles 0.1.4913 → 0.1.4923
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 +0 -4
- package/README.zh-CN.md +0 -4
- package/dist/migrate-book-topology.js +154301 -254452
- package/package.json +3 -3
- package/souls/audit-law.md +2 -0
- package/src/host-contracts.ts +3 -1
- package/src/pi/in-process-session.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akagilnc/pi-workflow-roles",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4923",
|
|
4
4
|
"description": "Soul-bound workflow roles for Pi",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"@earendil-works/pi-ai": "0.
|
|
78
|
-
"@earendil-works/pi-coding-agent": "0.
|
|
77
|
+
"@earendil-works/pi-ai": "0.87.1",
|
|
78
|
+
"@earendil-works/pi-coding-agent": "0.87.1",
|
|
79
79
|
"@types/node": "latest",
|
|
80
80
|
"esbuild": "^0.28.1",
|
|
81
81
|
"tsx": "latest",
|
package/souls/audit-law.md
CHANGED
|
@@ -19,6 +19,8 @@ finding 提**类别**;实例只作证据。一次找齐全,不逐轮抽样
|
|
|
19
19
|
|
|
20
20
|
判断不收敛(同类问题反复、修理只增不减)可上呈;你的打回与上一轮相同、对方重交只换措辞,须上呈,不得再打回。修理 diff 自身按同尺复核。
|
|
21
21
|
|
|
22
|
+
衙门不是需求来源。你要求施工方做的每一条——补一个失败路径的处理、加一道校验、多一个分支——须指出票面、陛下的意思或法源里要它的那一句,并答得出《质量法》三问;指不出的,是你在加戏,不是对方在缺失,不得开方。失败以真实作业路径产生得出的为准,探针造得出来不等于会发生。对方按你上一轮处方加出来的东西,下一轮同受此审。
|
|
23
|
+
|
|
22
24
|
## 取证边界(owner 2026-09-05)
|
|
23
25
|
|
|
24
26
|
> 逐字:「角色的 bash 不该有权删 worktree 和 tmpdir 之外的东西……加上这个限制」
|
package/src/host-contracts.ts
CHANGED
|
@@ -391,7 +391,9 @@ export interface RoleHost {
|
|
|
391
391
|
readonly capabilities?: HostCapabilityDeclaration;
|
|
392
392
|
/** Deliver a typed correctable rejection into the current durable session's model context. */
|
|
393
393
|
deliverSubmissionRejection?(rejection: { readonly kind: "correctable-rejection"; readonly code: string; readonly toolCallIds: readonly string[] }): void | Promise<void>;
|
|
394
|
-
registerFlag(name: string, definition:
|
|
394
|
+
registerFlag(name: string, definition:
|
|
395
|
+
| { description: string; type: "boolean"; default?: boolean }
|
|
396
|
+
| { description: string; type: "string"; default?: string }): void;
|
|
395
397
|
getFlag(name: string): boolean | string | undefined;
|
|
396
398
|
registerTool<S extends TSchema, D = unknown>(tool: HostToolDefinition<S, D>): void;
|
|
397
399
|
getAllTools(): Array<{ name: string; sourceInfo?: { path?: string } }>;
|
|
@@ -23,10 +23,10 @@ import {
|
|
|
23
23
|
InMemoryCredentialStore,
|
|
24
24
|
type Api,
|
|
25
25
|
type AssistantMessage,
|
|
26
|
-
type Context,
|
|
27
26
|
type Model,
|
|
28
27
|
type Provider,
|
|
29
28
|
type ProviderStreamOptions,
|
|
29
|
+
type TranscriptContext,
|
|
30
30
|
type Usage,
|
|
31
31
|
} from "@earendil-works/pi-ai";
|
|
32
32
|
|
|
@@ -353,7 +353,7 @@ export async function openPiInProcessSession(
|
|
|
353
353
|
const createRetriedStream = (
|
|
354
354
|
simple: boolean,
|
|
355
355
|
model: Model<Api>,
|
|
356
|
-
context:
|
|
356
|
+
context: TranscriptContext,
|
|
357
357
|
request?: ProviderStreamOptions,
|
|
358
358
|
): ReturnType<Provider["stream"]> => {
|
|
359
359
|
const wrapped = createAssistantMessageEventStream();
|