@poncho-ai/cli 0.29.0 → 0.30.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/.turbo/turbo-build.log +6 -6
- package/CHANGELOG.md +24 -0
- package/dist/{chunk-3WODYQAB.js → chunk-UYZOJWGL.js} +584 -253
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/index.js +1 -1
- package/dist/{run-interactive-ink-V4KWIUHB.js → run-interactive-ink-ZSIGWFLZ.js} +4 -1
- package/package.json +4 -4
- package/src/index.ts +275 -153
- package/src/run-interactive-ink.ts +3 -0
- package/src/web-ui-client.ts +193 -14
- package/src/web-ui-styles.ts +59 -0
package/dist/cli.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IncomingMessage, ServerResponse, Server } from 'node:http';
|
|
2
2
|
import { AgentHarness, CronJobConfig, ConversationStore } from '@poncho-ai/harness';
|
|
3
|
+
import { AgentEvent } from '@poncho-ai/sdk';
|
|
3
4
|
import { MessagingAdapter } from '@poncho-ai/messaging';
|
|
4
5
|
import { Command } from 'commander';
|
|
5
6
|
|
|
@@ -24,6 +25,15 @@ type RequestHandler = ((request: IncomingMessage, response: ServerResponse) => P
|
|
|
24
25
|
_cronJobs?: Record<string, CronJobConfig>;
|
|
25
26
|
_conversationStore?: ConversationStore;
|
|
26
27
|
_messagingAdapters?: Map<string, MessagingAdapter>;
|
|
28
|
+
_activeConversationRuns?: Map<string, {
|
|
29
|
+
ownerId: string;
|
|
30
|
+
abortController: AbortController;
|
|
31
|
+
runId: string | null;
|
|
32
|
+
}>;
|
|
33
|
+
_pendingCallbackNeeded?: Set<string>;
|
|
34
|
+
_processSubagentCallback?: (conversationId: string, skipLockCheck?: boolean) => Promise<void>;
|
|
35
|
+
_broadcastEvent?: (conversationId: string, event: AgentEvent) => void;
|
|
36
|
+
_finishConversationStream?: (conversationId: string) => void;
|
|
27
37
|
};
|
|
28
38
|
declare const createRequestHandler: (options?: {
|
|
29
39
|
workingDir?: string;
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
consumeFirstRunIntro,
|
|
3
3
|
inferConversationTitle,
|
|
4
4
|
resolveHarnessEnvironment
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UYZOJWGL.js";
|
|
6
6
|
|
|
7
7
|
// src/run-interactive-ink.ts
|
|
8
8
|
import * as readline from "readline";
|
|
@@ -1882,6 +1882,9 @@ var runInteractiveInk = async ({
|
|
|
1882
1882
|
if (currentTools.length > 0) {
|
|
1883
1883
|
sections.push({ type: "tools", content: currentTools });
|
|
1884
1884
|
currentTools = [];
|
|
1885
|
+
if (responseText.length > 0 && !/\s$/.test(responseText)) {
|
|
1886
|
+
responseText += " ";
|
|
1887
|
+
}
|
|
1885
1888
|
}
|
|
1886
1889
|
responseText += event.content;
|
|
1887
1890
|
streamedText += event.content;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@poncho-ai/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.30.1",
|
|
4
4
|
"description": "CLI for building and deploying AI agents",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"react": "^19.2.4",
|
|
28
28
|
"react-devtools-core": "^6.1.5",
|
|
29
29
|
"yaml": "^2.8.1",
|
|
30
|
-
"@poncho-ai/harness": "0.
|
|
31
|
-
"@poncho-ai/messaging": "0.7.
|
|
32
|
-
"@poncho-ai/sdk": "1.6.
|
|
30
|
+
"@poncho-ai/harness": "0.28.1",
|
|
31
|
+
"@poncho-ai/messaging": "0.7.2",
|
|
32
|
+
"@poncho-ai/sdk": "1.6.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/busboy": "^1.5.4",
|