@poncho-ai/cli 0.32.5 → 0.32.7
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 +16 -0
- package/dist/{chunk-LVWNWMNE.js → chunk-OJGEUTDF.js} +14 -1
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{run-interactive-ink-VGKSZJDO.js → run-interactive-ink-LAL4PQVD.js} +1 -1
- package/package.json +3 -3
- package/src/index.ts +13 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @poncho-ai/cli@0.32.
|
|
2
|
+
> @poncho-ai/cli@0.32.7 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
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
[34mCLI[39m tsup v8.5.1
|
|
8
8
|
[34mCLI[39m Target: es2022
|
|
9
9
|
[34mESM[39m Build start
|
|
10
|
-
[32mESM[39m [1mdist/cli.js [22m[32m94.00 B[39m
|
|
11
10
|
[32mESM[39m [1mdist/index.js [22m[32m917.00 B[39m
|
|
12
|
-
[32mESM[39m [1mdist/
|
|
13
|
-
[32mESM[39m [1mdist/
|
|
14
|
-
[32mESM[39m
|
|
11
|
+
[32mESM[39m [1mdist/cli.js [22m[32m94.00 B[39m
|
|
12
|
+
[32mESM[39m [1mdist/run-interactive-ink-LAL4PQVD.js [22m[32m56.86 KB[39m
|
|
13
|
+
[32mESM[39m [1mdist/chunk-OJGEUTDF.js [22m[32m535.48 KB[39m
|
|
14
|
+
[32mESM[39m ⚡️ Build success in 68ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 4034ms
|
|
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,21 @@
|
|
|
1
1
|
# @poncho-ai/cli
|
|
2
2
|
|
|
3
|
+
## 0.32.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`30026c5`](https://github.com/cesr/poncho-ai/commit/30026c5eba3f714bb80c2402c5e8f32c6fd38d87)]:
|
|
8
|
+
- @poncho-ai/messaging@0.7.8
|
|
9
|
+
|
|
10
|
+
## 0.32.6
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [#61](https://github.com/cesr/poncho-ai/pull/61) [`0a51abe`](https://github.com/cesr/poncho-ai/commit/0a51abec12191397fd36ab1fd4feca7460489e33) Thanks [@cesr](https://github.com/cesr)! - Fix /new command on Telegram in serverless environments: persist conversation reset to the store so it survives cold starts.
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [[`0a51abe`](https://github.com/cesr/poncho-ai/commit/0a51abec12191397fd36ab1fd4feca7460489e33)]:
|
|
17
|
+
- @poncho-ai/messaging@0.7.7
|
|
18
|
+
|
|
3
19
|
## 0.32.5
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -10282,6 +10282,19 @@ ${resultBody}`,
|
|
|
10282
10282
|
steps: runSteps,
|
|
10283
10283
|
maxSteps: runMaxSteps
|
|
10284
10284
|
};
|
|
10285
|
+
},
|
|
10286
|
+
async resetConversation(conversationId) {
|
|
10287
|
+
const existing = await conversationStore.get(conversationId);
|
|
10288
|
+
if (!existing) return;
|
|
10289
|
+
existing.messages = [];
|
|
10290
|
+
existing._harnessMessages = void 0;
|
|
10291
|
+
existing._continuationMessages = void 0;
|
|
10292
|
+
existing._toolResultArchive = void 0;
|
|
10293
|
+
existing.pendingApprovals = void 0;
|
|
10294
|
+
existing.runStatus = void 0;
|
|
10295
|
+
existing.updatedAt = Date.now();
|
|
10296
|
+
await conversationStore.update(existing);
|
|
10297
|
+
console.log(`[messaging-runner] conversation reset: ${conversationId}`);
|
|
10285
10298
|
}
|
|
10286
10299
|
};
|
|
10287
10300
|
let waitUntilHook;
|
|
@@ -13193,7 +13206,7 @@ var runInteractive = async (workingDir, params) => {
|
|
|
13193
13206
|
await harness.initialize();
|
|
13194
13207
|
const identity = await ensureAgentIdentity2(workingDir);
|
|
13195
13208
|
try {
|
|
13196
|
-
const { runInteractiveInk } = await import("./run-interactive-ink-
|
|
13209
|
+
const { runInteractiveInk } = await import("./run-interactive-ink-LAL4PQVD.js");
|
|
13197
13210
|
await runInteractiveInk({
|
|
13198
13211
|
harness,
|
|
13199
13212
|
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.7",
|
|
4
4
|
"description": "CLI for building and deploying AI agents",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"react-devtools-core": "^6.1.5",
|
|
29
29
|
"yaml": "^2.8.1",
|
|
30
30
|
"@poncho-ai/harness": "0.31.3",
|
|
31
|
-
"@poncho-ai/
|
|
32
|
-
"@poncho-ai/
|
|
31
|
+
"@poncho-ai/sdk": "1.7.1",
|
|
32
|
+
"@poncho-ai/messaging": "0.7.8"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/busboy": "^1.5.4",
|
package/src/index.ts
CHANGED
|
@@ -3427,6 +3427,19 @@ export const createRequestHandler = async (options?: {
|
|
|
3427
3427
|
maxSteps: runMaxSteps,
|
|
3428
3428
|
};
|
|
3429
3429
|
},
|
|
3430
|
+
async resetConversation(conversationId) {
|
|
3431
|
+
const existing = await conversationStore.get(conversationId);
|
|
3432
|
+
if (!existing) return;
|
|
3433
|
+
existing.messages = [];
|
|
3434
|
+
existing._harnessMessages = undefined;
|
|
3435
|
+
existing._continuationMessages = undefined;
|
|
3436
|
+
existing._toolResultArchive = undefined;
|
|
3437
|
+
existing.pendingApprovals = undefined;
|
|
3438
|
+
existing.runStatus = undefined;
|
|
3439
|
+
existing.updatedAt = Date.now();
|
|
3440
|
+
await conversationStore.update(existing);
|
|
3441
|
+
console.log(`[messaging-runner] conversation reset: ${conversationId}`);
|
|
3442
|
+
},
|
|
3430
3443
|
};
|
|
3431
3444
|
|
|
3432
3445
|
let waitUntilHook: ((promise: Promise<unknown>) => void) | undefined;
|