@poncho-ai/cli 0.36.7 → 0.36.9
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 +15 -0
- package/dist/{chunk-GG6IZSWT.js → chunk-IZLDZWPA.js} +9 -8
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{run-interactive-ink-3OIMW3XL.js → run-interactive-ink-KDWRD7FT.js} +1 -1
- package/package.json +2 -2
- package/src/web-ui-client.ts +8 -7
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @poncho-ai/cli@0.36.
|
|
2
|
+
> @poncho-ai/cli@0.36.9 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-3OIMW3XL.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-KDWRD7FT.js [22m[32m56.86 KB[39m
|
|
13
|
+
[32mESM[39m [1mdist/chunk-IZLDZWPA.js [22m[32m572.09 KB[39m
|
|
14
|
+
[32mESM[39m ⚡️ Build success in 69ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 4212ms
|
|
17
17
|
[32mDTS[39m [1mdist/cli.d.ts [22m[32m20.00 B[39m
|
|
18
18
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m7.07 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @poncho-ai/cli
|
|
2
2
|
|
|
3
|
+
## 0.36.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`af5b449`](https://github.com/cesr/poncho-ai/commit/af5b449b46c9994b5b7335c5d64e4c66d5d8f3d8) Thanks [@cesr](https://github.com/cesr)! - perf(web-ui): parallelize conversation and todos fetches when selecting a conversation.
|
|
8
|
+
|
|
9
|
+
Selecting a conversation in the sidebar previously issued `/api/conversations/:id` and `/api/conversations/:id/todos` sequentially, so the todos round-trip was paid on top of the (usually larger) conversation round-trip. Todos only needs the conversation id, so both requests now fire in parallel and the todos response is awaited just before the todo panel renders. The result is roughly one RTT shaved off every sidebar click, which is very noticeable on non-local connections.
|
|
10
|
+
|
|
11
|
+
## 0.36.8
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [[`2229f74`](https://github.com/cesr/poncho-ai/commit/2229f74ae4d02c5618c60787a7db925060cc1313)]:
|
|
16
|
+
- @poncho-ai/harness@0.37.2
|
|
17
|
+
|
|
3
18
|
## 0.36.7
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -3505,7 +3505,12 @@ var getWebUiClientScript = (markedSource2) => `
|
|
|
3505
3505
|
|
|
3506
3506
|
const loadConversation = async (conversationId) => {
|
|
3507
3507
|
if (window._resetBrowserPanel) window._resetBrowserPanel();
|
|
3508
|
-
|
|
3508
|
+
// Kick off conversation + todos fetches in parallel \u2014 todos only needs
|
|
3509
|
+
// the id, so there's no reason to wait for the conversation response.
|
|
3510
|
+
const conversationPromise = api("/api/conversations/" + encodeURIComponent(conversationId));
|
|
3511
|
+
const todosPromise = api("/api/conversations/" + encodeURIComponent(conversationId) + "/todos")
|
|
3512
|
+
.catch(() => ({ todos: [] }));
|
|
3513
|
+
const payload = await conversationPromise;
|
|
3509
3514
|
elements.chatTitle.textContent = payload.conversation.title;
|
|
3510
3515
|
// Merge own pending approvals + subagent pending approvals
|
|
3511
3516
|
var allPendingApprovals = [].concat(
|
|
@@ -3553,12 +3558,8 @@ var getWebUiClientScript = (markedSource2) => `
|
|
|
3553
3558
|
loadSubagents(subagentParentId);
|
|
3554
3559
|
}
|
|
3555
3560
|
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
state.todos = todosPayload.todos || [];
|
|
3559
|
-
} catch (_e) {
|
|
3560
|
-
state.todos = [];
|
|
3561
|
-
}
|
|
3561
|
+
const todosPayload = await todosPromise;
|
|
3562
|
+
state.todos = todosPayload.todos || [];
|
|
3562
3563
|
_autoCollapseTodos();
|
|
3563
3564
|
renderTodoPanel();
|
|
3564
3565
|
|
|
@@ -14047,7 +14048,7 @@ var runInteractive = async (workingDir, params) => {
|
|
|
14047
14048
|
await harness.initialize();
|
|
14048
14049
|
const identity = await ensureAgentIdentity2(workingDir);
|
|
14049
14050
|
try {
|
|
14050
|
-
const { runInteractiveInk } = await import("./run-interactive-ink-
|
|
14051
|
+
const { runInteractiveInk } = await import("./run-interactive-ink-KDWRD7FT.js");
|
|
14051
14052
|
await runInteractiveInk({
|
|
14052
14053
|
harness,
|
|
14053
14054
|
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.36.
|
|
3
|
+
"version": "0.36.9",
|
|
4
4
|
"description": "CLI for building and deploying AI agents",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"react": "^19.2.4",
|
|
29
29
|
"react-devtools-core": "^6.1.5",
|
|
30
30
|
"yaml": "^2.8.1",
|
|
31
|
-
"@poncho-ai/harness": "0.37.1",
|
|
32
31
|
"@poncho-ai/messaging": "0.8.3",
|
|
32
|
+
"@poncho-ai/harness": "0.37.2",
|
|
33
33
|
"@poncho-ai/sdk": "1.8.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
package/src/web-ui-client.ts
CHANGED
|
@@ -1459,7 +1459,12 @@ export const getWebUiClientScript = (markedSource: string): string => `
|
|
|
1459
1459
|
|
|
1460
1460
|
const loadConversation = async (conversationId) => {
|
|
1461
1461
|
if (window._resetBrowserPanel) window._resetBrowserPanel();
|
|
1462
|
-
|
|
1462
|
+
// Kick off conversation + todos fetches in parallel — todos only needs
|
|
1463
|
+
// the id, so there's no reason to wait for the conversation response.
|
|
1464
|
+
const conversationPromise = api("/api/conversations/" + encodeURIComponent(conversationId));
|
|
1465
|
+
const todosPromise = api("/api/conversations/" + encodeURIComponent(conversationId) + "/todos")
|
|
1466
|
+
.catch(() => ({ todos: [] }));
|
|
1467
|
+
const payload = await conversationPromise;
|
|
1463
1468
|
elements.chatTitle.textContent = payload.conversation.title;
|
|
1464
1469
|
// Merge own pending approvals + subagent pending approvals
|
|
1465
1470
|
var allPendingApprovals = [].concat(
|
|
@@ -1507,12 +1512,8 @@ export const getWebUiClientScript = (markedSource: string): string => `
|
|
|
1507
1512
|
loadSubagents(subagentParentId);
|
|
1508
1513
|
}
|
|
1509
1514
|
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
state.todos = todosPayload.todos || [];
|
|
1513
|
-
} catch (_e) {
|
|
1514
|
-
state.todos = [];
|
|
1515
|
-
}
|
|
1515
|
+
const todosPayload = await todosPromise;
|
|
1516
|
+
state.todos = todosPayload.todos || [];
|
|
1516
1517
|
_autoCollapseTodos();
|
|
1517
1518
|
renderTodoPanel();
|
|
1518
1519
|
|