@poncho-ai/cli 0.10.1 → 0.10.2

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.10.1 build /home/runner/work/poncho-ai/poncho-ai/packages/cli
2
+ > @poncho-ai/cli@0.10.2 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-X7VHWGLT.js 51.43 KB
11
+ ESM dist/run-interactive-ink-Z3U5SV4C.js 51.43 KB
12
12
  ESM dist/index.js 857.00 B
13
- ESM dist/chunk-MGR2GJMB.js 207.22 KB
14
- ESM ⚡️ Build success in 46ms
13
+ ESM dist/chunk-COLXQM6J.js 207.35 KB
14
+ ESM ⚡️ Build success in 41ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 3673ms
16
+ DTS ⚡️ Build success in 3023ms
17
17
  DTS dist/cli.d.ts 20.00 B
18
18
  DTS dist/index.d.ts 3.36 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @poncho-ai/cli
2
2
 
3
+ ## 0.10.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`3dcb914`](https://github.com/cesr/poncho-ai/commit/3dcb914acd22c403ff5372d94a0fc2152a2574b3) Thanks [@cesr](https://github.com/cesr)! - Fix scaffolded dependency versions during `poncho init` so npm installs no longer request unavailable `^0.1.0` packages.
8
+
9
+ Improve runtime resilience by retrying transient provider/model failures, returning clearer provider error codes, and sanitizing malformed conversation history so interrupted/bad-state chats can continue.
10
+
11
+ - Updated dependencies [[`3dcb914`](https://github.com/cesr/poncho-ai/commit/3dcb914acd22c403ff5372d94a0fc2152a2574b3)]:
12
+ - @poncho-ai/harness@0.11.2
13
+
3
14
  ## 0.10.1
4
15
 
5
16
  ### Patch Changes
@@ -3500,7 +3500,7 @@ var resolveLocalPackagesRoot = () => {
3500
3500
  }
3501
3501
  return null;
3502
3502
  };
3503
- var resolveCoreDeps = (projectDir) => {
3503
+ var resolveCoreDeps = async (projectDir) => {
3504
3504
  const packagesRoot = resolveLocalPackagesRoot();
3505
3505
  if (packagesRoot) {
3506
3506
  const harnessAbs = resolve3(packagesRoot, "harness");
@@ -3510,10 +3510,13 @@ var resolveCoreDeps = (projectDir) => {
3510
3510
  sdk: `link:${relative(projectDir, sdkAbs)}`
3511
3511
  };
3512
3512
  }
3513
- return { harness: "^0.1.0", sdk: "^0.1.0" };
3513
+ return {
3514
+ harness: await readCliDependencyVersion("@poncho-ai/harness", "^0.6.0"),
3515
+ sdk: await readCliDependencyVersion("@poncho-ai/sdk", "^0.6.0")
3516
+ };
3514
3517
  };
3515
- var PACKAGE_TEMPLATE = (name, projectDir) => {
3516
- const deps = resolveCoreDeps(projectDir);
3518
+ var PACKAGE_TEMPLATE = async (name, projectDir) => {
3519
+ const deps = await resolveCoreDeps(projectDir);
3517
3520
  return JSON.stringify(
3518
3521
  {
3519
3522
  name,
@@ -4139,7 +4142,7 @@ var initProject = async (projectName, options) => {
4139
4142
  })
4140
4143
  },
4141
4144
  { path: "poncho.config.js", content: renderConfigFile(onboarding.config) },
4142
- { path: "package.json", content: PACKAGE_TEMPLATE(projectName, projectDir) },
4145
+ { path: "package.json", content: await PACKAGE_TEMPLATE(projectName, projectDir) },
4143
4146
  { path: "README.md", content: README_TEMPLATE(projectName) },
4144
4147
  { path: ".env.example", content: options?.envExampleOverride ?? onboarding.envExample ?? ENV_TEMPLATE },
4145
4148
  { path: ".gitignore", content: GITIGNORE_TEMPLATE },
@@ -5084,7 +5087,7 @@ var runInteractive = async (workingDir, params) => {
5084
5087
  await harness.initialize();
5085
5088
  const identity = await ensureAgentIdentity2(workingDir);
5086
5089
  try {
5087
- const { runInteractiveInk } = await import("./run-interactive-ink-X7VHWGLT.js");
5090
+ const { runInteractiveInk } = await import("./run-interactive-ink-Z3U5SV4C.js");
5088
5091
  await runInteractiveInk({
5089
5092
  harness,
5090
5093
  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-MGR2GJMB.js";
4
+ } from "./chunk-COLXQM6J.js";
5
5
 
6
6
  // src/cli.ts
7
7
  void main();
package/dist/index.js CHANGED
@@ -23,7 +23,7 @@ import {
23
23
  runTests,
24
24
  startDevServer,
25
25
  updateAgentGuidance
26
- } from "./chunk-MGR2GJMB.js";
26
+ } from "./chunk-COLXQM6J.js";
27
27
  export {
28
28
  addSkill,
29
29
  buildCli,
@@ -2,7 +2,7 @@ import {
2
2
  consumeFirstRunIntro,
3
3
  inferConversationTitle,
4
4
  resolveHarnessEnvironment
5
- } from "./chunk-MGR2GJMB.js";
5
+ } from "./chunk-COLXQM6J.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.10.1",
3
+ "version": "0.10.2",
4
4
  "description": "CLI for building and deploying AI agents",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,7 +25,7 @@
25
25
  "react": "^19.2.4",
26
26
  "react-devtools-core": "^6.1.5",
27
27
  "yaml": "^2.8.1",
28
- "@poncho-ai/harness": "0.11.1",
28
+ "@poncho-ai/harness": "0.11.2",
29
29
  "@poncho-ai/sdk": "0.6.0"
30
30
  },
31
31
  "devDependencies": {
package/src/index.ts CHANGED
@@ -253,9 +253,9 @@ const resolveLocalPackagesRoot = (): string | null => {
253
253
  * In dev mode we use `file:` paths so pnpm can resolve local packages;
254
254
  * in production we point at the npm registry.
255
255
  */
256
- const resolveCoreDeps = (
256
+ const resolveCoreDeps = async (
257
257
  projectDir: string,
258
- ): { harness: string; sdk: string } => {
258
+ ): Promise<{ harness: string; sdk: string }> => {
259
259
  const packagesRoot = resolveLocalPackagesRoot();
260
260
  if (packagesRoot) {
261
261
  const harnessAbs = resolve(packagesRoot, "harness");
@@ -265,11 +265,14 @@ const resolveCoreDeps = (
265
265
  sdk: `link:${relative(projectDir, sdkAbs)}`,
266
266
  };
267
267
  }
268
- return { harness: "^0.1.0", sdk: "^0.1.0" };
268
+ return {
269
+ harness: await readCliDependencyVersion("@poncho-ai/harness", "^0.6.0"),
270
+ sdk: await readCliDependencyVersion("@poncho-ai/sdk", "^0.6.0"),
271
+ };
269
272
  };
270
273
 
271
- const PACKAGE_TEMPLATE = (name: string, projectDir: string): string => {
272
- const deps = resolveCoreDeps(projectDir);
274
+ const PACKAGE_TEMPLATE = async (name: string, projectDir: string): Promise<string> => {
275
+ const deps = await resolveCoreDeps(projectDir);
273
276
  return JSON.stringify(
274
277
  {
275
278
  name,
@@ -960,7 +963,7 @@ export const initProject = async (
960
963
  }),
961
964
  },
962
965
  { path: "poncho.config.js", content: renderConfigFile(onboarding.config) },
963
- { path: "package.json", content: PACKAGE_TEMPLATE(projectName, projectDir) },
966
+ { path: "package.json", content: await PACKAGE_TEMPLATE(projectName, projectDir) },
964
967
  { path: "README.md", content: README_TEMPLATE(projectName) },
965
968
  { path: ".env.example", content: options?.envExampleOverride ?? onboarding.envExample ?? ENV_TEMPLATE },
966
969
  { path: ".gitignore", content: GITIGNORE_TEMPLATE },