@getpochi/cli 0.5.77 → 0.5.78
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/cli.js +23 -6
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -404610,7 +404610,7 @@ var {
|
|
|
404610
404610
|
// package.json
|
|
404611
404611
|
var package_default = {
|
|
404612
404612
|
name: "@getpochi/cli",
|
|
404613
|
-
version: "0.5.
|
|
404613
|
+
version: "0.5.78",
|
|
404614
404614
|
type: "module",
|
|
404615
404615
|
bin: {
|
|
404616
404616
|
pochi: "src/cli.ts"
|
|
@@ -445174,7 +445174,7 @@ function processToolResult(tool2, toolResponseTagTemplate, toolResponseEndTag) {
|
|
|
445174
445174
|
} else {
|
|
445175
445175
|
content3.push({
|
|
445176
445176
|
type: "text",
|
|
445177
|
-
text: `${toolResponseTagTemplate(x11.toolName)}${
|
|
445177
|
+
text: `${toolResponseTagTemplate(x11.toolName)}${convertToolResultOutput(x11.output)}${toolResponseEndTag}`
|
|
445178
445178
|
});
|
|
445179
445179
|
}
|
|
445180
445180
|
}
|
|
@@ -445322,6 +445322,23 @@ function createStopWordStream(stop3) {
|
|
|
445322
445322
|
}
|
|
445323
445323
|
});
|
|
445324
445324
|
}
|
|
445325
|
+
function convertToolResultOutput(x11) {
|
|
445326
|
+
if (x11.type === "json") {
|
|
445327
|
+
return JSON.stringify(x11.value);
|
|
445328
|
+
}
|
|
445329
|
+
if (x11.type === "text") {
|
|
445330
|
+
return x11.value;
|
|
445331
|
+
}
|
|
445332
|
+
if (x11.type === "error-text" || x11.type === "error-json") {
|
|
445333
|
+
return JSON.stringify({
|
|
445334
|
+
error: x11.value
|
|
445335
|
+
});
|
|
445336
|
+
}
|
|
445337
|
+
assertUnreachable(x11);
|
|
445338
|
+
}
|
|
445339
|
+
function assertUnreachable(x11) {
|
|
445340
|
+
throw new Error(`Unreachable case: ${x11}`);
|
|
445341
|
+
}
|
|
445325
445342
|
// ../livekit/src/chat/middlewares/output-schema-middleware.ts
|
|
445326
445343
|
function createOutputSchemaMiddleware(taskId, model2, outputSchema2) {
|
|
445327
445344
|
return {
|
|
@@ -445674,9 +445691,9 @@ function createModel2({ llm }) {
|
|
|
445674
445691
|
if (llm.type === "openai-responses") {
|
|
445675
445692
|
return createOpenAIResponsesModel(llm);
|
|
445676
445693
|
}
|
|
445677
|
-
|
|
445694
|
+
assertUnreachable2(llm);
|
|
445678
445695
|
}
|
|
445679
|
-
function
|
|
445696
|
+
function assertUnreachable2(_x) {
|
|
445680
445697
|
throw new Error("Didn't expect to get here");
|
|
445681
445698
|
}
|
|
445682
445699
|
|
|
@@ -447379,7 +447396,7 @@ async function createLLMConfigWithProviders(program6, model2) {
|
|
|
447379
447396
|
useToolCallMiddleware: modelSetting.useToolCallMiddleware
|
|
447380
447397
|
};
|
|
447381
447398
|
}
|
|
447382
|
-
|
|
447399
|
+
assertUnreachable3(modelProvider.kind);
|
|
447383
447400
|
}
|
|
447384
447401
|
async function waitForSync(inputStore, timeoutDuration = "1 second") {
|
|
447385
447402
|
if (!process.env.POCHI_LIVEKIT_SYNC_ON) {
|
|
@@ -447399,7 +447416,7 @@ async function waitForSync(inputStore, timeoutDuration = "1 second") {
|
|
|
447399
447416
|
await store.shutdown();
|
|
447400
447417
|
}
|
|
447401
447418
|
}
|
|
447402
|
-
function
|
|
447419
|
+
function assertUnreachable3(_x) {
|
|
447403
447420
|
throw new Error("Didn't expect to get here");
|
|
447404
447421
|
}
|
|
447405
447422
|
async function getModelFromWorkflow(options6) {
|