@akagilnc/pi-workflow-roles 0.1.4913 → 0.1.4921
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/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.4921",
|
|
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/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();
|