@poncho-ai/cli 0.11.0 → 0.11.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @poncho-ai/cli@0.11.0 build /home/runner/work/poncho-ai/poncho-ai/packages/cli
2
+ > @poncho-ai/cli@0.11.1 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-7FP5PT7Q.js 53.83 KB
12
+ ESM dist/chunk-T2F6ICXI.js 226.37 KB
11
13
  ESM dist/index.js 857.00 B
12
- ESM dist/run-interactive-ink-QR3RIAJH.js 53.83 KB
13
- ESM dist/chunk-6GFL3VYM.js 225.87 KB
14
- ESM ⚡️ Build success in 50ms
14
+ ESM ⚡️ Build success in 54ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 3371ms
16
+ DTS ⚡️ Build success in 3582ms
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,11 @@
1
1
  # @poncho-ai/cli
2
2
 
3
+ ## 0.11.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`0d943e5`](https://github.com/cesr/poncho-ai/commit/0d943e5b709acfe7c390bc84f1f0d10299fcc56e) Thanks [@cesr](https://github.com/cesr)! - Support paste-to-attach: pasting images or files from the clipboard into the web UI input box now adds them as attachments.
8
+
3
9
  ## 0.11.0
4
10
 
5
11
  ### Minor Changes
@@ -2855,6 +2855,23 @@ var renderWebUiHtml = (options) => {
2855
2855
  }
2856
2856
  });
2857
2857
 
2858
+ // Paste files/images from clipboard
2859
+ elements.prompt.addEventListener("paste", (e) => {
2860
+ const items = e.clipboardData && e.clipboardData.items;
2861
+ if (!items) return;
2862
+ const files = [];
2863
+ for (let i = 0; i < items.length; i++) {
2864
+ if (items[i].kind === "file") {
2865
+ const f = items[i].getAsFile();
2866
+ if (f) files.push(f);
2867
+ }
2868
+ }
2869
+ if (files.length > 0) {
2870
+ e.preventDefault();
2871
+ addFiles(files);
2872
+ }
2873
+ });
2874
+
2858
2875
  // Lightbox: open/close helpers
2859
2876
  const lightboxImg = elements.lightbox.querySelector("img");
2860
2877
  const openLightbox = (src) => {
@@ -5620,7 +5637,7 @@ var runInteractive = async (workingDir, params) => {
5620
5637
  await harness.initialize();
5621
5638
  const identity = await ensureAgentIdentity2(workingDir);
5622
5639
  try {
5623
- const { runInteractiveInk } = await import("./run-interactive-ink-QR3RIAJH.js");
5640
+ const { runInteractiveInk } = await import("./run-interactive-ink-7FP5PT7Q.js");
5624
5641
  await runInteractiveInk({
5625
5642
  harness,
5626
5643
  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-6GFL3VYM.js";
4
+ } from "./chunk-T2F6ICXI.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-6GFL3VYM.js";
26
+ } from "./chunk-T2F6ICXI.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-6GFL3VYM.js";
5
+ } from "./chunk-T2F6ICXI.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.11.0",
3
+ "version": "0.11.1",
4
4
  "description": "CLI for building and deploying AI agents",
5
5
  "repository": {
6
6
  "type": "git",
package/src/web-ui.ts CHANGED
@@ -3031,6 +3031,23 @@ export const renderWebUiHtml = (options?: { agentName?: string }): string => {
3031
3031
  }
3032
3032
  });
3033
3033
 
3034
+ // Paste files/images from clipboard
3035
+ elements.prompt.addEventListener("paste", (e) => {
3036
+ const items = e.clipboardData && e.clipboardData.items;
3037
+ if (!items) return;
3038
+ const files = [];
3039
+ for (let i = 0; i < items.length; i++) {
3040
+ if (items[i].kind === "file") {
3041
+ const f = items[i].getAsFile();
3042
+ if (f) files.push(f);
3043
+ }
3044
+ }
3045
+ if (files.length > 0) {
3046
+ e.preventDefault();
3047
+ addFiles(files);
3048
+ }
3049
+ });
3050
+
3034
3051
  // Lightbox: open/close helpers
3035
3052
  const lightboxImg = elements.lightbox.querySelector("img");
3036
3053
  const openLightbox = (src) => {