@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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @poncho-ai/cli@0.32.5 build /home/runner/work/poncho-ai/poncho-ai/packages/cli
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
  CLI Building entry: src/cli.ts, src/index.ts
@@ -7,12 +7,12 @@
7
7
  CLI tsup v8.5.1
8
8
  CLI Target: es2022
9
9
  ESM Build start
10
- ESM dist/cli.js 94.00 B
11
10
  ESM dist/index.js 917.00 B
12
- ESM dist/run-interactive-ink-VGKSZJDO.js 56.86 KB
13
- ESM dist/chunk-LVWNWMNE.js 534.94 KB
14
- ESM ⚡️ Build success in 73ms
11
+ ESM dist/cli.js 94.00 B
12
+ ESM dist/run-interactive-ink-LAL4PQVD.js 56.86 KB
13
+ ESM dist/chunk-OJGEUTDF.js 535.48 KB
14
+ ESM ⚡️ Build success in 68ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 4346ms
16
+ DTS ⚡️ Build success in 4034ms
17
17
  DTS dist/cli.d.ts 20.00 B
18
18
  DTS dist/index.d.ts 6.85 KB
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-VGKSZJDO.js");
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
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  main
4
- } from "./chunk-LVWNWMNE.js";
4
+ } from "./chunk-OJGEUTDF.js";
5
5
 
6
6
  // src/cli.ts
7
7
  void main();
package/dist/index.js CHANGED
@@ -24,7 +24,7 @@ import {
24
24
  runTests,
25
25
  startDevServer,
26
26
  updateAgentGuidance
27
- } from "./chunk-LVWNWMNE.js";
27
+ } from "./chunk-OJGEUTDF.js";
28
28
  export {
29
29
  __internalRunOrchestration,
30
30
  addSkill,
@@ -2,7 +2,7 @@ import {
2
2
  consumeFirstRunIntro,
3
3
  inferConversationTitle,
4
4
  resolveHarnessEnvironment
5
- } from "./chunk-LVWNWMNE.js";
5
+ } from "./chunk-OJGEUTDF.js";
6
6
 
7
7
  // src/run-interactive-ink.ts
8
8
  import * as readline from "readline";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poncho-ai/cli",
3
- "version": "0.32.5",
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/messaging": "0.7.6",
32
- "@poncho-ai/sdk": "1.7.1"
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;