@poncho-ai/cli 0.36.6 → 0.36.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.36.6 build /home/runner/work/poncho-ai/poncho-ai/packages/cli
2
+ > @poncho-ai/cli@0.36.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
@@ -8,11 +8,11 @@
8
8
  CLI Target: es2022
9
9
  ESM Build start
10
10
  ESM dist/cli.js 94.00 B
11
+ ESM dist/run-interactive-ink-3OIMW3XL.js 56.86 KB
11
12
  ESM dist/index.js 917.00 B
12
- ESM dist/run-interactive-ink-N377UGJA.js 56.86 KB
13
- ESM dist/chunk-EX3OMVLC.js 571.08 KB
14
- ESM ⚡️ Build success in 85ms
13
+ ESM dist/chunk-GG6IZSWT.js 571.87 KB
14
+ ESM ⚡️ Build success in 68ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 4448ms
16
+ DTS ⚡️ Build success in 4238ms
17
17
  DTS dist/cli.d.ts 20.00 B
18
18
  DTS dist/index.d.ts 7.07 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @poncho-ai/cli
2
2
 
3
+ ## 0.36.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [#89](https://github.com/cesr/poncho-ai/pull/89) [`e71cd6d`](https://github.com/cesr/poncho-ai/commit/e71cd6dcbdbba947ca5aed5f0ffddf91ac50a7e8) Thanks [@cesr](https://github.com/cesr)! - fix: surface a loud stderr warning when the CLI falls back to in-memory conversation storage (i.e. when `harness.storageEngine` is undefined). Previously this path was silent — agents appeared to work but nothing persisted to disk, no DB file was created, and the new bash tool was absent, all with zero log output. Also triggers a patch republish so the CLI tarball is re-pinned to the current workspace harness.
8
+
3
9
  ## 0.36.6
4
10
 
5
11
  ### Patch Changes
@@ -9906,6 +9906,11 @@ data: ${JSON.stringify(statusPayload)}
9906
9906
  const telemetry = new TelemetryEmitter(config?.telemetry);
9907
9907
  const identity = await ensureAgentIdentity2(workingDir);
9908
9908
  const stateConfig = resolveStateConfig(config);
9909
+ if (!harness.storageEngine) {
9910
+ process.stderr.write(
9911
+ "[poncho] WARNING: harness.storageEngine is undefined. This usually means an outdated @poncho-ai/harness (< 0.37.0) is installed. Falling back to in-memory storage \u2014 conversations will NOT be persisted. Fix: `pnpm up @poncho-ai/harness@latest` or add a pnpm.overrides entry to force resolution.\n"
9912
+ );
9913
+ }
9909
9914
  const conversationStore = harness.storageEngine ? createConversationStoreFromEngine(harness.storageEngine) : createConversationStore(stateConfig, { workingDir, agentId: identity.id });
9910
9915
  const buildRecallParams = (opts) => {
9911
9916
  let cachedRecallCorpus;
@@ -14042,13 +14047,21 @@ var runInteractive = async (workingDir, params) => {
14042
14047
  await harness.initialize();
14043
14048
  const identity = await ensureAgentIdentity2(workingDir);
14044
14049
  try {
14045
- const { runInteractiveInk } = await import("./run-interactive-ink-N377UGJA.js");
14050
+ const { runInteractiveInk } = await import("./run-interactive-ink-3OIMW3XL.js");
14046
14051
  await runInteractiveInk({
14047
14052
  harness,
14048
14053
  params,
14049
14054
  workingDir,
14050
14055
  config,
14051
- conversationStore: harness.storageEngine ? createConversationStoreFromEngine(harness.storageEngine) : createConversationStore(resolveStateConfig(config), { workingDir, agentId: identity.id })
14056
+ conversationStore: (() => {
14057
+ if (!harness.storageEngine) {
14058
+ process.stderr.write(
14059
+ "[poncho] WARNING: harness.storageEngine is undefined. This usually means an outdated @poncho-ai/harness (< 0.37.0) is installed. Falling back to in-memory storage \u2014 conversations will NOT be persisted. Fix: `pnpm up @poncho-ai/harness@latest` or add a pnpm.overrides entry to force resolution.\n"
14060
+ );
14061
+ return createConversationStore(resolveStateConfig(config), { workingDir, agentId: identity.id });
14062
+ }
14063
+ return createConversationStoreFromEngine(harness.storageEngine);
14064
+ })()
14052
14065
  });
14053
14066
  } finally {
14054
14067
  await harness.shutdown();
package/dist/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  main
4
- } from "./chunk-EX3OMVLC.js";
4
+ } from "./chunk-GG6IZSWT.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-EX3OMVLC.js";
27
+ } from "./chunk-GG6IZSWT.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-EX3OMVLC.js";
5
+ } from "./chunk-GG6IZSWT.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.36.6",
3
+ "version": "0.36.7",
4
4
  "description": "CLI for building and deploying AI agents",
5
5
  "repository": {
6
6
  "type": "git",
package/src/index.ts CHANGED
@@ -2229,6 +2229,14 @@ export const createRequestHandler = async (options?: {
2229
2229
  const telemetry = new TelemetryEmitter(config?.telemetry);
2230
2230
  const identity = await ensureAgentIdentity(workingDir);
2231
2231
  const stateConfig = resolveStateConfig(config);
2232
+ if (!harness.storageEngine) {
2233
+ process.stderr.write(
2234
+ "[poncho] WARNING: harness.storageEngine is undefined. " +
2235
+ "This usually means an outdated @poncho-ai/harness (< 0.37.0) is installed. " +
2236
+ "Falling back to in-memory storage — conversations will NOT be persisted. " +
2237
+ "Fix: `pnpm up @poncho-ai/harness@latest` or add a pnpm.overrides entry to force resolution.\n",
2238
+ );
2239
+ }
2232
2240
  const conversationStore = harness.storageEngine
2233
2241
  ? createConversationStoreFromEngine(harness.storageEngine)
2234
2242
  : createConversationStore(stateConfig, { workingDir, agentId: identity.id });
@@ -6978,9 +6986,18 @@ export const runInteractive = async (
6978
6986
  params,
6979
6987
  workingDir,
6980
6988
  config,
6981
- conversationStore: harness.storageEngine
6982
- ? createConversationStoreFromEngine(harness.storageEngine)
6983
- : createConversationStore(resolveStateConfig(config), { workingDir, agentId: identity.id }),
6989
+ conversationStore: (() => {
6990
+ if (!harness.storageEngine) {
6991
+ process.stderr.write(
6992
+ "[poncho] WARNING: harness.storageEngine is undefined. " +
6993
+ "This usually means an outdated @poncho-ai/harness (< 0.37.0) is installed. " +
6994
+ "Falling back to in-memory storage — conversations will NOT be persisted. " +
6995
+ "Fix: `pnpm up @poncho-ai/harness@latest` or add a pnpm.overrides entry to force resolution.\n",
6996
+ );
6997
+ return createConversationStore(resolveStateConfig(config), { workingDir, agentId: identity.id });
6998
+ }
6999
+ return createConversationStoreFromEngine(harness.storageEngine);
7000
+ })(),
6984
7001
  });
6985
7002
  } finally {
6986
7003
  await harness.shutdown();