pi-harness-runtime 1.1.421 → 1.1.422
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/packages/a2a-adapter/package.json +1 -1
- package/packages/agent-policy/package.json +1 -1
- package/packages/architecture-generator/package.json +1 -1
- package/packages/auth/package.json +1 -1
- package/packages/autonomous-refactor/package.json +1 -1
- package/packages/autonomous-runtime/package.json +1 -1
- package/packages/cache-strategy/package.json +1 -1
- package/packages/capability-registry/package.json +1 -1
- package/packages/checkpoint/package.json +1 -1
- package/packages/cli-plugin-sdk/package.json +1 -1
- package/packages/clipboard/package.json +1 -1
- package/packages/clipboard-plugin/package.json +1 -1
- package/packages/code-generation/package.json +1 -1
- package/packages/code-review/package.json +1 -1
- package/packages/codex-adapter/package.json +1 -1
- package/packages/codex-watcher/package.json +1 -1
- package/packages/config-capture/package.json +1 -1
- package/packages/connection-runtime/package.json +1 -1
- package/packages/context-compiler/package.json +1 -1
- package/packages/context-discovery/package.json +1 -1
- package/packages/context-manager/package.json +1 -1
- package/packages/contracts/dist/approvals.d.ts +70 -183
- package/packages/contracts/dist/events.d.ts +83 -57
- package/packages/contracts/dist/jobs.d.ts +77 -156
- package/packages/contracts/dist/notifications.d.ts +68 -230
- package/packages/contracts/dist/projects.d.ts +31 -109
- package/packages/contracts/dist/sessions.d.ts +66 -150
- package/packages/contracts/package.json +2 -2
- package/packages/cookie-sanitizer/package.json +1 -1
- package/packages/cost-optimizer/package.json +1 -1
- package/packages/dependency-analyzer/package.json +1 -1
- package/packages/django-plugin/package.json +1 -1
- package/packages/doc-generator/package.json +1 -1
- package/packages/durable-review/package.json +1 -1
- package/packages/e2e-tester/package.json +1 -1
- package/packages/evaluation-engine/package.json +1 -1
- package/packages/evaluation-runner/package.json +1 -1
- package/packages/event-bus/package.json +1 -1
- package/packages/event-sink/package.json +1 -1
- package/packages/event-store/package.json +1 -1
- package/packages/experience-replay/package.json +1 -1
- package/packages/feedback-collector/package.json +1 -1
- package/packages/file-copy-helper/package.json +1 -1
- package/packages/framework-detector/package.json +1 -1
- package/packages/framework-plugin-sdk/package.json +1 -1
- package/packages/frappe-plugin/package.json +1 -1
- package/packages/generic-web-plugin/package.json +1 -1
- package/packages/health-monitor/package.json +1 -1
- package/packages/intent-analyzer/package.json +1 -1
- package/packages/jev-judge/package.json +1 -1
- package/packages/knowledge-graph/package.json +1 -1
- package/packages/knowledge-retrieval/package.json +1 -1
- package/packages/laravel-plugin/package.json +1 -1
- package/packages/learning-engine/package.json +1 -1
- package/packages/logging/package.json +1 -1
- package/packages/mcp-adapter/package.json +1 -1
- package/packages/memory-engine/package.json +1 -1
- package/packages/milestone-manager/package.json +1 -1
- package/packages/model-registry/package.json +1 -1
- package/packages/nextjs-plugin/package.json +1 -1
- package/packages/notification/package.json +1 -1
- package/packages/observability/package.json +1 -1
- package/packages/okf-indexer/package.json +1 -1
- package/packages/paperclip-integration/package.json +1 -1
- package/packages/performance-optimizer/package.json +1 -1
- package/packages/permission-mode/package.json +1 -1
- package/packages/privilege-broker/package.json +1 -1
- package/packages/project-analyzer/package.json +1 -1
- package/packages/project-bootstrap/package.json +1 -1
- package/packages/projection-engine/package.json +1 -1
- package/packages/prompt-compiler/package.json +1 -1
- package/packages/prompt-versioning/package.json +1 -1
- package/packages/provider-adapter-sdk/package.json +1 -1
- package/packages/provider-router/package.json +1 -1
- package/packages/provider-selector/package.json +1 -1
- package/packages/providers/package.json +1 -1
- package/packages/qdrant-skills/package.json +1 -1
- package/packages/quota-manager/package.json +1 -1
- package/packages/rate-limiter/package.json +1 -1
- package/packages/react-vite-plugin/package.json +1 -1
- package/packages/relay/package.json +1 -1
- package/packages/release-manager/package.json +1 -1
- package/packages/requirement-compiler/package.json +1 -1
- package/packages/runtime/package.json +1 -1
- package/packages/scheduler/package.json +1 -1
- package/packages/scheduler-adapter/package.json +1 -1
- package/packages/session/package.json +1 -1
- package/packages/session-api/package.json +1 -1
- package/packages/session-export/package.json +1 -1
- package/packages/shared-context/package.json +1 -1
- package/packages/skill-mcp-client/package.json +1 -1
- package/packages/skill-registry/package.json +1 -1
- package/packages/skills/package.json +1 -1
- package/packages/sprint-planner/package.json +1 -1
- package/packages/subscription-engine/package.json +1 -1
- package/packages/task-compiler/package.json +1 -1
- package/packages/telegram/package.json +1 -1
- package/packages/tencentdb-memory/package.json +1 -1
- package/packages/tencentdb-sync/package.json +1 -1
- package/packages/test-data-generator/package.json +1 -1
- package/packages/test-generator/package.json +1 -1
- package/packages/todo-bd-sync/package.json +1 -1
- package/packages/token-estimation/package.json +1 -1
- package/packages/token-optimizer/package.json +1 -1
- package/packages/tooling-preference/package.json +1 -1
- package/packages/trajectory/package.json +1 -1
- package/packages/tui/package.json +1 -1
- package/packages/two-phase-review/package.json +1 -1
- package/packages/types/package.json +1 -1
- package/packages/voice-api/package.json +1 -1
- package/packages/webmcp-tester/package.json +1 -1
- package/packages/wiki/package.json +1 -1
- package/packages/workflow-events/package.json +1 -1
- package/packages/workspace-scanner/package.json +1 -1
- package/packages/worktree/package.json +1 -1
- package/packages/write-review/package.json +1 -1
|
@@ -5,20 +5,40 @@ import { z } from 'zod';
|
|
|
5
5
|
/**
|
|
6
6
|
* Session status
|
|
7
7
|
*/
|
|
8
|
-
export declare const SessionStatus: z.ZodEnum<
|
|
8
|
+
export declare const SessionStatus: z.ZodEnum<{
|
|
9
|
+
active: "active";
|
|
10
|
+
ended: "ended";
|
|
11
|
+
idle: "idle";
|
|
12
|
+
suspended: "suspended";
|
|
13
|
+
}>;
|
|
9
14
|
export type SessionStatus = z.infer<typeof SessionStatus>;
|
|
10
15
|
/**
|
|
11
16
|
* Session type
|
|
12
17
|
*/
|
|
13
|
-
export declare const SessionType: z.ZodEnum<
|
|
18
|
+
export declare const SessionType: z.ZodEnum<{
|
|
19
|
+
background: "background";
|
|
20
|
+
batch: "batch";
|
|
21
|
+
interactive: "interactive";
|
|
22
|
+
review: "review";
|
|
23
|
+
}>;
|
|
14
24
|
export type SessionType = z.infer<typeof SessionType>;
|
|
15
25
|
/**
|
|
16
26
|
* Session definition
|
|
17
27
|
*/
|
|
18
28
|
export declare const Session: z.ZodObject<{
|
|
19
29
|
id: z.ZodString;
|
|
20
|
-
type: z.ZodEnum<
|
|
21
|
-
|
|
30
|
+
type: z.ZodEnum<{
|
|
31
|
+
background: "background";
|
|
32
|
+
batch: "batch";
|
|
33
|
+
interactive: "interactive";
|
|
34
|
+
review: "review";
|
|
35
|
+
}>;
|
|
36
|
+
status: z.ZodEnum<{
|
|
37
|
+
active: "active";
|
|
38
|
+
ended: "ended";
|
|
39
|
+
idle: "idle";
|
|
40
|
+
suspended: "suspended";
|
|
41
|
+
}>;
|
|
22
42
|
workspaceId: z.ZodString;
|
|
23
43
|
provider: z.ZodString;
|
|
24
44
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -29,113 +49,63 @@ export declare const Session: z.ZodObject<{
|
|
|
29
49
|
completionTokens: z.ZodDefault<z.ZodNumber>;
|
|
30
50
|
cost: z.ZodDefault<z.ZodNumber>;
|
|
31
51
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
32
|
-
},
|
|
33
|
-
id: string;
|
|
34
|
-
type: "background" | "batch" | "interactive" | "review";
|
|
35
|
-
status: "active" | "ended" | "idle" | "suspended";
|
|
36
|
-
workspaceId: string;
|
|
37
|
-
provider: string;
|
|
38
|
-
model?: string | undefined;
|
|
39
|
-
startedAt: string;
|
|
40
|
-
endedAt?: string | undefined;
|
|
41
|
-
lastActivityAt?: string | undefined;
|
|
42
|
-
promptTokens: number;
|
|
43
|
-
completionTokens: number;
|
|
44
|
-
cost: number;
|
|
45
|
-
metadata?: Record<string, unknown> | undefined;
|
|
46
|
-
}, {
|
|
47
|
-
id: string;
|
|
48
|
-
type: "background" | "batch" | "interactive" | "review";
|
|
49
|
-
status: "active" | "ended" | "idle" | "suspended";
|
|
50
|
-
workspaceId: string;
|
|
51
|
-
provider: string;
|
|
52
|
-
model?: string | undefined;
|
|
53
|
-
startedAt: string;
|
|
54
|
-
endedAt?: string | undefined;
|
|
55
|
-
lastActivityAt?: string | undefined;
|
|
56
|
-
promptTokens?: number | undefined;
|
|
57
|
-
completionTokens?: number | undefined;
|
|
58
|
-
cost?: number | undefined;
|
|
59
|
-
metadata?: Record<string, unknown> | undefined;
|
|
60
|
-
}>;
|
|
52
|
+
}, z.core.$strip>;
|
|
61
53
|
export type Session = z.infer<typeof Session>;
|
|
62
54
|
/**
|
|
63
55
|
* Session creation input
|
|
64
56
|
*/
|
|
65
57
|
export declare const SessionCreate: z.ZodObject<{
|
|
66
|
-
type: z.ZodDefault<z.ZodEnum<
|
|
58
|
+
type: z.ZodDefault<z.ZodEnum<{
|
|
59
|
+
background: "background";
|
|
60
|
+
batch: "batch";
|
|
61
|
+
interactive: "interactive";
|
|
62
|
+
review: "review";
|
|
63
|
+
}>>;
|
|
67
64
|
workspaceId: z.ZodString;
|
|
68
65
|
provider: z.ZodString;
|
|
69
66
|
model: z.ZodOptional<z.ZodString>;
|
|
70
67
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
71
|
-
},
|
|
72
|
-
type: "background" | "batch" | "interactive" | "review";
|
|
73
|
-
workspaceId: string;
|
|
74
|
-
provider: string;
|
|
75
|
-
model?: string | undefined;
|
|
76
|
-
metadata?: Record<string, unknown> | undefined;
|
|
77
|
-
}, {
|
|
78
|
-
type?: "background" | "batch" | "interactive" | "review" | undefined;
|
|
79
|
-
workspaceId: string;
|
|
80
|
-
provider: string;
|
|
81
|
-
model?: string | undefined;
|
|
82
|
-
metadata?: Record<string, unknown> | undefined;
|
|
83
|
-
}>;
|
|
68
|
+
}, z.core.$strip>;
|
|
84
69
|
export type SessionCreate = z.infer<typeof SessionCreate>;
|
|
85
70
|
/**
|
|
86
71
|
* Session update input
|
|
87
72
|
*/
|
|
88
73
|
export declare const SessionUpdate: z.ZodObject<{
|
|
89
|
-
status: z.ZodOptional<z.ZodEnum<
|
|
74
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
75
|
+
active: "active";
|
|
76
|
+
ended: "ended";
|
|
77
|
+
idle: "idle";
|
|
78
|
+
suspended: "suspended";
|
|
79
|
+
}>>;
|
|
90
80
|
lastActivityAt: z.ZodOptional<z.ZodString>;
|
|
91
81
|
promptTokens: z.ZodOptional<z.ZodNumber>;
|
|
92
82
|
completionTokens: z.ZodOptional<z.ZodNumber>;
|
|
93
83
|
cost: z.ZodOptional<z.ZodNumber>;
|
|
94
84
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
95
|
-
},
|
|
96
|
-
status?: "active" | "ended" | "idle" | "suspended" | undefined;
|
|
97
|
-
lastActivityAt?: string | undefined;
|
|
98
|
-
promptTokens?: number | undefined;
|
|
99
|
-
completionTokens?: number | undefined;
|
|
100
|
-
cost?: number | undefined;
|
|
101
|
-
metadata?: Record<string, unknown> | undefined;
|
|
102
|
-
}, {
|
|
103
|
-
status?: "active" | "ended" | "idle" | "suspended" | undefined;
|
|
104
|
-
lastActivityAt?: string | undefined;
|
|
105
|
-
promptTokens?: number | undefined;
|
|
106
|
-
completionTokens?: number | undefined;
|
|
107
|
-
cost?: number | undefined;
|
|
108
|
-
metadata?: Record<string, unknown> | undefined;
|
|
109
|
-
}>;
|
|
85
|
+
}, z.core.$strip>;
|
|
110
86
|
export type SessionUpdate = z.infer<typeof SessionUpdate>;
|
|
111
87
|
/**
|
|
112
88
|
* Session filter
|
|
113
89
|
*/
|
|
114
90
|
export declare const SessionFilter: z.ZodObject<{
|
|
115
91
|
workspaceId: z.ZodOptional<z.ZodString>;
|
|
116
|
-
type: z.ZodOptional<z.ZodEnum<
|
|
117
|
-
|
|
92
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
93
|
+
background: "background";
|
|
94
|
+
batch: "batch";
|
|
95
|
+
interactive: "interactive";
|
|
96
|
+
review: "review";
|
|
97
|
+
}>>;
|
|
98
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
99
|
+
active: "active";
|
|
100
|
+
ended: "ended";
|
|
101
|
+
idle: "idle";
|
|
102
|
+
suspended: "suspended";
|
|
103
|
+
}>>;
|
|
118
104
|
since: z.ZodOptional<z.ZodString>;
|
|
119
105
|
until: z.ZodOptional<z.ZodString>;
|
|
120
106
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
121
107
|
cursor: z.ZodOptional<z.ZodString>;
|
|
122
|
-
},
|
|
123
|
-
workspaceId?: string | undefined;
|
|
124
|
-
type?: "background" | "batch" | "interactive" | "review" | undefined;
|
|
125
|
-
status?: "active" | "ended" | "idle" | "suspended" | undefined;
|
|
126
|
-
since?: string | undefined;
|
|
127
|
-
until?: string | undefined;
|
|
128
|
-
limit: number;
|
|
129
|
-
cursor?: string | undefined;
|
|
130
|
-
}, {
|
|
131
|
-
workspaceId?: string | undefined;
|
|
132
|
-
type?: "background" | "batch" | "interactive" | "review" | undefined;
|
|
133
|
-
status?: "active" | "ended" | "idle" | "suspended" | undefined;
|
|
134
|
-
since?: string | undefined;
|
|
135
|
-
until?: string | undefined;
|
|
136
|
-
limit?: number | undefined;
|
|
137
|
-
cursor?: string | undefined;
|
|
138
|
-
}>;
|
|
108
|
+
}, z.core.$strip>;
|
|
139
109
|
export type SessionFilter = z.infer<typeof SessionFilter>;
|
|
140
110
|
/**
|
|
141
111
|
* Session list response
|
|
@@ -143,8 +113,18 @@ export type SessionFilter = z.infer<typeof SessionFilter>;
|
|
|
143
113
|
export declare const SessionList: z.ZodObject<{
|
|
144
114
|
items: z.ZodArray<z.ZodObject<{
|
|
145
115
|
id: z.ZodString;
|
|
146
|
-
type: z.ZodEnum<
|
|
147
|
-
|
|
116
|
+
type: z.ZodEnum<{
|
|
117
|
+
background: "background";
|
|
118
|
+
batch: "batch";
|
|
119
|
+
interactive: "interactive";
|
|
120
|
+
review: "review";
|
|
121
|
+
}>;
|
|
122
|
+
status: z.ZodEnum<{
|
|
123
|
+
active: "active";
|
|
124
|
+
ended: "ended";
|
|
125
|
+
idle: "idle";
|
|
126
|
+
suspended: "suspended";
|
|
127
|
+
}>;
|
|
148
128
|
workspaceId: z.ZodString;
|
|
149
129
|
provider: z.ZodString;
|
|
150
130
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -155,72 +135,8 @@ export declare const SessionList: z.ZodObject<{
|
|
|
155
135
|
completionTokens: z.ZodDefault<z.ZodNumber>;
|
|
156
136
|
cost: z.ZodDefault<z.ZodNumber>;
|
|
157
137
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
158
|
-
},
|
|
159
|
-
id: string;
|
|
160
|
-
type: "background" | "batch" | "interactive" | "review";
|
|
161
|
-
status: "active" | "ended" | "idle" | "suspended";
|
|
162
|
-
workspaceId: string;
|
|
163
|
-
provider: string;
|
|
164
|
-
model?: string | undefined;
|
|
165
|
-
startedAt: string;
|
|
166
|
-
endedAt?: string | undefined;
|
|
167
|
-
lastActivityAt?: string | undefined;
|
|
168
|
-
promptTokens: number;
|
|
169
|
-
completionTokens: number;
|
|
170
|
-
cost: number;
|
|
171
|
-
metadata?: Record<string, unknown> | undefined;
|
|
172
|
-
}, {
|
|
173
|
-
id: string;
|
|
174
|
-
type: "background" | "batch" | "interactive" | "review";
|
|
175
|
-
status: "active" | "ended" | "idle" | "suspended";
|
|
176
|
-
workspaceId: string;
|
|
177
|
-
provider: string;
|
|
178
|
-
model?: string | undefined;
|
|
179
|
-
startedAt: string;
|
|
180
|
-
endedAt?: string | undefined;
|
|
181
|
-
lastActivityAt?: string | undefined;
|
|
182
|
-
promptTokens?: number | undefined;
|
|
183
|
-
completionTokens?: number | undefined;
|
|
184
|
-
cost?: number | undefined;
|
|
185
|
-
metadata?: Record<string, unknown> | undefined;
|
|
186
|
-
}>, "many">;
|
|
138
|
+
}, z.core.$strip>>;
|
|
187
139
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
188
140
|
total: z.ZodOptional<z.ZodNumber>;
|
|
189
|
-
},
|
|
190
|
-
items: {
|
|
191
|
-
id: string;
|
|
192
|
-
type: "background" | "batch" | "interactive" | "review";
|
|
193
|
-
status: "active" | "ended" | "idle" | "suspended";
|
|
194
|
-
workspaceId: string;
|
|
195
|
-
provider: string;
|
|
196
|
-
model?: string | undefined;
|
|
197
|
-
startedAt: string;
|
|
198
|
-
endedAt?: string | undefined;
|
|
199
|
-
lastActivityAt?: string | undefined;
|
|
200
|
-
promptTokens: number;
|
|
201
|
-
completionTokens: number;
|
|
202
|
-
cost: number;
|
|
203
|
-
metadata?: Record<string, unknown> | undefined;
|
|
204
|
-
}[];
|
|
205
|
-
nextCursor?: string | undefined;
|
|
206
|
-
total?: number | undefined;
|
|
207
|
-
}, {
|
|
208
|
-
items: {
|
|
209
|
-
id: string;
|
|
210
|
-
type: "background" | "batch" | "interactive" | "review";
|
|
211
|
-
status: "active" | "ended" | "idle" | "suspended";
|
|
212
|
-
workspaceId: string;
|
|
213
|
-
provider: string;
|
|
214
|
-
model?: string | undefined;
|
|
215
|
-
startedAt: string;
|
|
216
|
-
endedAt?: string | undefined;
|
|
217
|
-
lastActivityAt?: string | undefined;
|
|
218
|
-
promptTokens?: number | undefined;
|
|
219
|
-
completionTokens?: number | undefined;
|
|
220
|
-
cost?: number | undefined;
|
|
221
|
-
metadata?: Record<string, unknown> | undefined;
|
|
222
|
-
}[];
|
|
223
|
-
nextCursor?: string | undefined;
|
|
224
|
-
total?: number | undefined;
|
|
225
|
-
}>;
|
|
141
|
+
}, z.core.$strip>;
|
|
226
142
|
export type SessionList = z.infer<typeof SessionList>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pi-harness/contracts",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.422",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "RPC schema definitions for pi-harness runtime",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"test": "bun test"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"zod": "^
|
|
19
|
+
"zod": "^4.6.7"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"typescript": "^5.7.2"
|