@averyyy/pi-coding-agent 0.82.1-piclient.4 → 0.82.1-piclient.5
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/CHANGELOG.md +1 -1
- package/dist/core/agent-session.d.ts +0 -1
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +0 -26
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/model-runtime.d.ts +0 -7
- package/dist/core/model-runtime.d.ts.map +1 -1
- package/dist/core/model-runtime.js +0 -66
- package/dist/core/model-runtime.js.map +1 -1
- package/dist/core/pi-server-client.d.ts +0 -3
- package/dist/core/pi-server-client.d.ts.map +1 -1
- package/dist/core/pi-server-client.js +0 -10
- package/dist/core/pi-server-client.js.map +1 -1
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js +0 -5
- package/dist/core/sdk.js.map +1 -1
- package/package.json +4 -4
- package/dist/core/pi-server-provider-execution.d.ts +0 -19
- package/dist/core/pi-server-provider-execution.d.ts.map +0 -1
- package/dist/core/pi-server-provider-execution.js +0 -43
- package/dist/core/pi-server-provider-execution.js.map +0 -1
- package/dist/core/provider-execution-contract.d.ts +0 -36
- package/dist/core/provider-execution-contract.d.ts.map +0 -1
- package/dist/core/provider-execution-contract.js +0 -30
- package/dist/core/provider-execution-contract.js.map +0 -1
|
@@ -186,11 +186,6 @@ function isObject(value) {
|
|
|
186
186
|
function isNonNegativeInteger(value) {
|
|
187
187
|
return typeof value === "number" && Number.isInteger(value) && value >= 0;
|
|
188
188
|
}
|
|
189
|
-
function validateProviderExecutionFingerprint(value) {
|
|
190
|
-
if (value !== undefined && !/^[a-f0-9]{64}$/u.test(value)) {
|
|
191
|
-
throw new Error("pi-server provider execution fingerprint must be a lowercase SHA-256 digest");
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
189
|
export function getPiServerRunDiagnostic(message) {
|
|
195
190
|
const diagnostics = message.diagnostics?.filter((diagnostic) => diagnostic.type === "pi_server_run") ?? [];
|
|
196
191
|
if (diagnostics.length === 0)
|
|
@@ -1050,7 +1045,6 @@ export function hashPiServerCompactRequest(body) {
|
|
|
1050
1045
|
const serialized = canonicalJsonStringify({
|
|
1051
1046
|
protocolVersion: body.protocolVersion,
|
|
1052
1047
|
sessionId: body.sessionId,
|
|
1053
|
-
providerExecutionFingerprint: body.providerExecutionFingerprint,
|
|
1054
1048
|
model: body.model,
|
|
1055
1049
|
options: body.options,
|
|
1056
1050
|
settings: body.settings,
|
|
@@ -1368,7 +1362,6 @@ async function persistAndAcknowledgePiServerCompactTerminal(payload, compactStat
|
|
|
1368
1362
|
await acknowledgeObservedPiServerCompactTerminal(pending, compactStatePath, signal);
|
|
1369
1363
|
}
|
|
1370
1364
|
export async function compactPiServer(model, context, options) {
|
|
1371
|
-
validateProviderExecutionFingerprint(options?.providerExecutionFingerprint);
|
|
1372
1365
|
const sessionId = options?.sessionId ?? "default";
|
|
1373
1366
|
const signal = options?.signal;
|
|
1374
1367
|
const recoveryWindowMs = getPiServerCompactRecoveryWindowMs(options?.piServerRecoveryWindowMs);
|
|
@@ -1416,7 +1409,6 @@ export async function compactPiServer(model, context, options) {
|
|
|
1416
1409
|
protocolVersion: PI_SERVER_PROTOCOL_VERSION,
|
|
1417
1410
|
sessionId,
|
|
1418
1411
|
operationId,
|
|
1419
|
-
providerExecutionFingerprint: options?.providerExecutionFingerprint,
|
|
1420
1412
|
model,
|
|
1421
1413
|
options: serializeOptions(options),
|
|
1422
1414
|
settings: options?.settings,
|
|
@@ -1866,7 +1858,6 @@ function missingDurablePiServerRunError(runId, cause) {
|
|
|
1866
1858
|
"automatic provider resubmission is disabled.");
|
|
1867
1859
|
}
|
|
1868
1860
|
export async function streamPiServer(model, context, options) {
|
|
1869
|
-
validateProviderExecutionFingerprint(options?.providerExecutionFingerprint);
|
|
1870
1861
|
const runMode = options?.runMode;
|
|
1871
1862
|
if (runMode === "auxiliary-transient" && options?.piServerRunStatePath) {
|
|
1872
1863
|
throw new Error("Auxiliary pi-server streams cannot use the main durable run-state path");
|
|
@@ -2176,7 +2167,6 @@ export async function streamPiServer(model, context, options) {
|
|
|
2176
2167
|
runMode,
|
|
2177
2168
|
model,
|
|
2178
2169
|
options: serializeOptions(options),
|
|
2179
|
-
providerExecutionFingerprint: options?.providerExecutionFingerprint,
|
|
2180
2170
|
ephemeralMessages: options?.ephemeralMessages,
|
|
2181
2171
|
contextOverlay: options?.contextOverlay,
|
|
2182
2172
|
baseTreeHash,
|