@pasko70/pibo 1.7.12 → 1.8.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/dist/apps/chat/workflow-manual-trigger-runtime.js +13 -4
- package/dist/core/compaction-prompt.js +87 -52
- package/dist/core/context-guard.js +172 -5
- package/dist/core/provider-recovery.js +64 -0
- package/dist/core/provider-telemetry.js +97 -4
- package/dist/core/routed-session.js +181 -16
- package/dist/core/runtime-telemetry.js +251 -91
- package/dist/core/runtime.js +53 -12
- package/dist/core/session-errors.js +14 -1
- package/dist/core/session-router.js +127 -26
- package/dist/data/telemetry.js +115 -26
- package/dist/gateway/request.js +17 -8
- package/dist/ralph/service.js +3 -5
- package/package.json +1 -1
- package/dist/apps/vscode-artifacts/latest.vsix +0 -0
- package/dist/apps/vscode-artifacts/pibo-vscode-ext-1.7.12.vsix +0 -0
package/dist/ralph/service.js
CHANGED
|
@@ -252,7 +252,7 @@ export class PiboRalphService {
|
|
|
252
252
|
},
|
|
253
253
|
});
|
|
254
254
|
this.store.attachRunSession(job.id, run.id, session.id);
|
|
255
|
-
const finalAnswer = await this.emitMessageAndWait(session.id, buildRalphPrompt(job)
|
|
255
|
+
const finalAnswer = await this.emitMessageAndWait(session.id, buildRalphPrompt(job));
|
|
256
256
|
return { piboSessionId: session.id, finalAnswer };
|
|
257
257
|
}
|
|
258
258
|
resolveTarget(job) { if (job.target.kind === 'room') {
|
|
@@ -263,7 +263,7 @@ export class PiboRalphService {
|
|
|
263
263
|
throw new Error('Target room is archived');
|
|
264
264
|
return { roomId: room.id, workspace: room.workspace ?? getDefaultPiboWorkspace() };
|
|
265
265
|
} const room = this.roomService.ensureDefaultRoom({ name: 'Shared Chat' }); return { roomId: room.id, workspace: room.workspace ?? getDefaultPiboWorkspace() }; }
|
|
266
|
-
async emitMessageAndWait(piboSessionId, text
|
|
266
|
+
async emitMessageAndWait(piboSessionId, text) {
|
|
267
267
|
const eventId = `ralph_msg_${randomUUID()}`;
|
|
268
268
|
return await new Promise((resolve, reject) => {
|
|
269
269
|
let settled = false;
|
|
@@ -308,9 +308,7 @@ export class PiboRalphService {
|
|
|
308
308
|
finish(lastSessionError ? new Error(lastSessionError) : undefined);
|
|
309
309
|
if (event.type === 'session_error') {
|
|
310
310
|
lastSessionError = event.error;
|
|
311
|
-
|
|
312
|
-
if (!providerAttempt || options.isCancelled?.())
|
|
313
|
-
finish(new Error(event.error));
|
|
311
|
+
finish(new Error(event.error));
|
|
314
312
|
}
|
|
315
313
|
});
|
|
316
314
|
this.options.context.emit({ type: 'message', piboSessionId, id: eventId, source: 'service', text }).catch((error) => finish(error instanceof Error ? error : new Error(String(error))));
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|