@poncho-ai/cli 0.32.6 → 0.32.8
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/.turbo/turbo-build.log +5 -5
- package/CHANGELOG.md +13 -0
- package/dist/{chunk-OJGEUTDF.js → chunk-VHS3K24F.js} +22 -11
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{run-interactive-ink-LAL4PQVD.js → run-interactive-ink-JOLJ5W33.js} +1 -1
- package/package.json +2 -2
- package/src/index.ts +22 -9
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @poncho-ai/cli@0.32.
|
|
2
|
+
> @poncho-ai/cli@0.32.8 build /home/runner/work/poncho-ai/poncho-ai/packages/cli
|
|
3
3
|
> tsup src/index.ts src/cli.ts --format esm --dts
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/cli.ts, src/index.ts
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
[34mCLI[39m Target: es2022
|
|
9
9
|
[34mESM[39m Build start
|
|
10
10
|
[32mESM[39m [1mdist/cli.js [22m[32m94.00 B[39m
|
|
11
|
-
[32mESM[39m [1mdist/run-interactive-ink-LAL4PQVD.js [22m[32m56.86 KB[39m
|
|
12
11
|
[32mESM[39m [1mdist/index.js [22m[32m917.00 B[39m
|
|
13
|
-
[32mESM[39m [1mdist/
|
|
14
|
-
[32mESM[39m
|
|
12
|
+
[32mESM[39m [1mdist/run-interactive-ink-JOLJ5W33.js [22m[32m56.86 KB[39m
|
|
13
|
+
[32mESM[39m [1mdist/chunk-VHS3K24F.js [22m[32m536.15 KB[39m
|
|
14
|
+
[32mESM[39m ⚡️ Build success in 77ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 4356ms
|
|
17
17
|
[32mDTS[39m [1mdist/cli.d.ts [22m[32m20.00 B[39m
|
|
18
18
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m6.85 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @poncho-ai/cli
|
|
2
2
|
|
|
3
|
+
## 0.32.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`d623f80`](https://github.com/cesr/poncho-ai/commit/d623f8024c1336dc32301b7210ebc94fd94d4877) Thanks [@cesr](https://github.com/cesr)! - Fix raw JSON tool calls rendering in web UI for Telegram conversations; archive old conversation on /new instead of deleting.
|
|
8
|
+
|
|
9
|
+
## 0.32.7
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [[`30026c5`](https://github.com/cesr/poncho-ai/commit/30026c5eba3f714bb80c2402c5e8f32c6fd38d87)]:
|
|
14
|
+
- @poncho-ai/messaging@0.7.8
|
|
15
|
+
|
|
3
16
|
## 0.32.6
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -7606,9 +7606,21 @@ var normalizeMessageForClient = (message) => {
|
|
|
7606
7606
|
const text = typeof parsed.text === "string" ? parsed.text : void 0;
|
|
7607
7607
|
const toolCalls = Array.isArray(parsed.tool_calls) ? parsed.tool_calls : void 0;
|
|
7608
7608
|
if (typeof text === "string" && toolCalls) {
|
|
7609
|
+
const meta = { ...message.metadata ?? {} };
|
|
7610
|
+
if (!meta.sections && toolCalls.length > 0) {
|
|
7611
|
+
const toolLabels = toolCalls.map((tc) => {
|
|
7612
|
+
const name = typeof tc.name === "string" ? tc.name : "tool";
|
|
7613
|
+
return `\u2713 ${name}`;
|
|
7614
|
+
});
|
|
7615
|
+
const sections = [];
|
|
7616
|
+
if (toolLabels.length > 0) sections.push({ type: "tools", content: toolLabels });
|
|
7617
|
+
if (text) sections.push({ type: "text", content: text });
|
|
7618
|
+
meta.sections = sections;
|
|
7619
|
+
}
|
|
7609
7620
|
return {
|
|
7610
7621
|
...message,
|
|
7611
|
-
content: text
|
|
7622
|
+
content: text,
|
|
7623
|
+
metadata: meta
|
|
7612
7624
|
};
|
|
7613
7625
|
}
|
|
7614
7626
|
} catch {
|
|
@@ -10286,15 +10298,14 @@ ${resultBody}`,
|
|
|
10286
10298
|
async resetConversation(conversationId) {
|
|
10287
10299
|
const existing = await conversationStore.get(conversationId);
|
|
10288
10300
|
if (!existing) return;
|
|
10289
|
-
|
|
10290
|
-
|
|
10291
|
-
|
|
10292
|
-
|
|
10293
|
-
|
|
10294
|
-
|
|
10295
|
-
|
|
10296
|
-
|
|
10297
|
-
console.log(`[messaging-runner] conversation reset: ${conversationId}`);
|
|
10301
|
+
const archiveId = `${conversationId}_${Date.now()}`;
|
|
10302
|
+
const archived = { ...existing, conversationId: archiveId };
|
|
10303
|
+
const datePart = (/* @__PURE__ */ new Date()).toLocaleDateString("en-US", { month: "short", day: "numeric" });
|
|
10304
|
+
if (archived.title) archived.title = `${archived.title} (${datePart})`;
|
|
10305
|
+
archived.updatedAt = Date.now();
|
|
10306
|
+
await conversationStore.update(archived);
|
|
10307
|
+
await conversationStore.delete(conversationId);
|
|
10308
|
+
console.log(`[messaging-runner] conversation archived: ${conversationId} \u2192 ${archiveId}`);
|
|
10298
10309
|
}
|
|
10299
10310
|
};
|
|
10300
10311
|
let waitUntilHook;
|
|
@@ -13206,7 +13217,7 @@ var runInteractive = async (workingDir, params) => {
|
|
|
13206
13217
|
await harness.initialize();
|
|
13207
13218
|
const identity = await ensureAgentIdentity2(workingDir);
|
|
13208
13219
|
try {
|
|
13209
|
-
const { runInteractiveInk } = await import("./run-interactive-ink-
|
|
13220
|
+
const { runInteractiveInk } = await import("./run-interactive-ink-JOLJ5W33.js");
|
|
13210
13221
|
await runInteractiveInk({
|
|
13211
13222
|
harness,
|
|
13212
13223
|
params,
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@poncho-ai/cli",
|
|
3
|
-
"version": "0.32.
|
|
3
|
+
"version": "0.32.8",
|
|
4
4
|
"description": "CLI for building and deploying AI agents",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"yaml": "^2.8.1",
|
|
30
30
|
"@poncho-ai/harness": "0.31.3",
|
|
31
31
|
"@poncho-ai/sdk": "1.7.1",
|
|
32
|
-
"@poncho-ai/messaging": "0.7.
|
|
32
|
+
"@poncho-ai/messaging": "0.7.8"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/busboy": "^1.5.4",
|
package/src/index.ts
CHANGED
|
@@ -312,9 +312,21 @@ const normalizeMessageForClient = (message: Message): Message => {
|
|
|
312
312
|
const text = typeof parsed.text === "string" ? parsed.text : undefined;
|
|
313
313
|
const toolCalls = Array.isArray(parsed.tool_calls) ? parsed.tool_calls : undefined;
|
|
314
314
|
if (typeof text === "string" && toolCalls) {
|
|
315
|
+
const meta = { ...(message.metadata ?? {}) } as Record<string, unknown>;
|
|
316
|
+
if (!meta.sections && toolCalls.length > 0) {
|
|
317
|
+
const toolLabels = toolCalls.map((tc: Record<string, unknown>) => {
|
|
318
|
+
const name = typeof tc.name === "string" ? tc.name : "tool";
|
|
319
|
+
return `✓ ${name}`;
|
|
320
|
+
});
|
|
321
|
+
const sections: { type: string; content: string | string[] }[] = [];
|
|
322
|
+
if (toolLabels.length > 0) sections.push({ type: "tools", content: toolLabels });
|
|
323
|
+
if (text) sections.push({ type: "text", content: text });
|
|
324
|
+
meta.sections = sections;
|
|
325
|
+
}
|
|
315
326
|
return {
|
|
316
327
|
...message,
|
|
317
328
|
content: text,
|
|
329
|
+
metadata: meta as Message["metadata"],
|
|
318
330
|
};
|
|
319
331
|
}
|
|
320
332
|
} catch {
|
|
@@ -3430,15 +3442,16 @@ export const createRequestHandler = async (options?: {
|
|
|
3430
3442
|
async resetConversation(conversationId) {
|
|
3431
3443
|
const existing = await conversationStore.get(conversationId);
|
|
3432
3444
|
if (!existing) return;
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
await conversationStore.update(
|
|
3441
|
-
|
|
3445
|
+
// Archive the old conversation under a unique ID so it stays
|
|
3446
|
+
// viewable in the web UI. The original ID is freed for a fresh one.
|
|
3447
|
+
const archiveId = `${conversationId}_${Date.now()}`;
|
|
3448
|
+
const archived = { ...existing, conversationId: archiveId };
|
|
3449
|
+
const datePart = new Date().toLocaleDateString("en-US", { month: "short", day: "numeric" });
|
|
3450
|
+
if (archived.title) archived.title = `${archived.title} (${datePart})`;
|
|
3451
|
+
archived.updatedAt = Date.now();
|
|
3452
|
+
await conversationStore.update(archived);
|
|
3453
|
+
await conversationStore.delete(conversationId);
|
|
3454
|
+
console.log(`[messaging-runner] conversation archived: ${conversationId} → ${archiveId}`);
|
|
3442
3455
|
},
|
|
3443
3456
|
};
|
|
3444
3457
|
|