@poncho-ai/cli 0.9.4 → 0.10.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.
Files changed (60) hide show
  1. package/.turbo/turbo-build.log +5 -5
  2. package/CHANGELOG.md +25 -0
  3. package/dist/{chunk-HYTF3H3J.js → chunk-MGR2GJMB.js} +9 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/index.js +1 -1
  6. package/dist/run-interactive-ink-X7VHWGLT.js +1964 -0
  7. package/package.json +3 -3
  8. package/src/index.ts +8 -0
  9. package/src/mascot.ts +1437 -0
  10. package/src/run-interactive-ink.ts +3 -10
  11. package/.turbo/turbo-test.log +0 -389
  12. package/dist/chunk-42U2R3FH.js +0 -5752
  13. package/dist/chunk-4UDNQZ3G.js +0 -5752
  14. package/dist/chunk-5NHWU4QU.js +0 -5752
  15. package/dist/chunk-6CDE6R7D.js +0 -5752
  16. package/dist/chunk-74HD63WM.js +0 -5819
  17. package/dist/chunk-7TRWWFGI.js +0 -5752
  18. package/dist/chunk-DFV5DGX4.js +0 -5794
  19. package/dist/chunk-G67AWHXV.js +0 -5752
  20. package/dist/chunk-GFGEMANG.js +0 -5820
  21. package/dist/chunk-IZJUA24R.js +0 -5750
  22. package/dist/chunk-J2MTY7EY.js +0 -5780
  23. package/dist/chunk-KKQSJC2U.js +0 -5750
  24. package/dist/chunk-L65TFTEI.js +0 -5752
  25. package/dist/chunk-O5NLOW2I.js +0 -5752
  26. package/dist/chunk-OGTT4YJG.js +0 -5752
  27. package/dist/chunk-OHKXVDVM.js +0 -5752
  28. package/dist/chunk-OTOMFL3L.js +0 -5773
  29. package/dist/chunk-PHVOJ2R5.js +0 -5781
  30. package/dist/chunk-Q3WHF2FP.js +0 -5752
  31. package/dist/chunk-RN7FDRZH.js +0 -5752
  32. package/dist/chunk-SWPCETEB.js +0 -5772
  33. package/dist/chunk-VP4ABFQK.js +0 -5795
  34. package/dist/chunk-ZCLLCLRR.js +0 -5752
  35. package/dist/chunk-ZHHKZDHY.js +0 -5795
  36. package/dist/run-interactive-ink-2CVZHZLL.js +0 -535
  37. package/dist/run-interactive-ink-3TNAVPQ7.js +0 -534
  38. package/dist/run-interactive-ink-54UJ6WGA.js +0 -535
  39. package/dist/run-interactive-ink-64XY2KJD.js +0 -535
  40. package/dist/run-interactive-ink-7EB3ZX6P.js +0 -535
  41. package/dist/run-interactive-ink-7OSESHKH.js +0 -535
  42. package/dist/run-interactive-ink-BU4ZKI3Z.js +0 -535
  43. package/dist/run-interactive-ink-DFIJTWMT.js +0 -535
  44. package/dist/run-interactive-ink-DORF57NC.js +0 -535
  45. package/dist/run-interactive-ink-EOW4MLEH.js +0 -535
  46. package/dist/run-interactive-ink-EU3DN4MJ.js +0 -535
  47. package/dist/run-interactive-ink-HMVUIZRO.js +0 -533
  48. package/dist/run-interactive-ink-MQTTMSSO.js +0 -535
  49. package/dist/run-interactive-ink-NT66KRS5.js +0 -535
  50. package/dist/run-interactive-ink-O5AV46ZE.js +0 -535
  51. package/dist/run-interactive-ink-OC57VVOY.js +0 -535
  52. package/dist/run-interactive-ink-PTUDJKT5.js +0 -535
  53. package/dist/run-interactive-ink-PYQFHCNW.js +0 -537
  54. package/dist/run-interactive-ink-QXIIUBIC.js +0 -534
  55. package/dist/run-interactive-ink-SOGKAQAE.js +0 -522
  56. package/dist/run-interactive-ink-UPMUH72Q.js +0 -520
  57. package/dist/run-interactive-ink-W4NEF7FL.js +0 -522
  58. package/dist/run-interactive-ink-WBPOSHHC.js +0 -535
  59. package/dist/run-interactive-ink-XEK5ZPSU.js +0 -535
  60. package/dist/run-interactive-ink-YWJ5OBNI.js +0 -535
@@ -18,6 +18,7 @@ import type { AgentEvent, Message, TokenUsage } from "@poncho-ai/sdk";
18
18
  import { inferConversationTitle } from "./web-ui.js";
19
19
  import { consumeFirstRunIntro } from "./init-feature-context.js";
20
20
  import { resolveHarnessEnvironment } from "./index.js";
21
+ import { getMascotLines } from "./mascot.js";
21
22
 
22
23
  // Re-export types that index.ts references
23
24
  export type ApprovalRequest = {
@@ -354,19 +355,11 @@ export const runInteractiveInk = async ({
354
355
 
355
356
  // --- Print header ----------------------------------------------------------
356
357
 
357
- const mascot = [
358
- `${C.yellow} ⣀⣀⣀⣀⣀⣀${C.reset}`,
359
- `${C.yellow} ⠠⠾⠛⠛⠛⠛⠛⠛⠷⠄${C.reset}`,
360
- `${C.gray} ⡇${C.cyan} ⠶ ⠶ ${C.gray}⢸${C.reset}`,
361
- `${C.gray} ⠣⡀${C.cyan} ⠒⠚${C.gray}⢀⠜${C.reset}`,
362
- `${C.yellow} ⣿⣿⣿⣿⣿⣿${C.reset}`,
363
- `${C.gray} ⠃ ⠘${C.reset}`,
364
- ];
365
358
  console.log("");
366
- for (const line of mascot) {
359
+ for (const line of getMascotLines()) {
367
360
  console.log(line);
368
361
  }
369
- console.log(`${C.bold}${C.cyan} poncho${C.reset}`);
362
+ console.log(`${C.bold}${C.cyan} poncho${C.reset}`);
370
363
  console.log("");
371
364
  console.log(
372
365
  gray(
@@ -1,389 +0,0 @@
1
-
2
- > @poncho-ai/cli@0.1.0 test /Users/cesar/Dev/latitude/agentl/packages/cli
3
- > vitest
4
-
5
-
6
-  RUN  v1.6.1 /Users/cesar/Dev/latitude/agentl/packages/cli
7
-
8
- ✓ test/init-onboarding.contract.test.ts  (1 test) 1ms
9
-
10
- + AGENT.md
11
- + poncho.config.js
12
- + package.json
13
- + README.md
14
- + .env.example
15
- + .gitignore
16
- + tests/basic.yaml
17
- + skills/starter/SKILL.md
18
- + skills/starter/scripts/starter-echo.ts
19
- + .env
20
-
21
-  WARN  Installing a dependency from a non-existent directory: /private/Users/cesar/Dev/latitude/agentl/packages/harness
22
-  WARN  Installing a dependency from a non-existent directory: /private/Users/cesar/Dev/latitude/agentl/packages/sdk
23
- Already up to date
24
-
25
- dependencies:
26
- + @poncho-ai/harness <- harness 0.0.0 <- ../../../Users/cesar/Dev/latitude/agentl/packages/harness
27
- + @poncho-ai/sdk <- sdk 0.0.0 <- ../../../Users/cesar/Dev/latitude/agentl/packages/sdk
28
-
29
- Done in 285ms
30
- ✓ Installed dependencies
31
- ✓ Initialized git
32
- ✓ my-agent is ready
33
-
34
- Get started
35
-
36
- $ cd my-agent
37
-
38
- Web UI $ poncho dev
39
- CLI interactive $ poncho run --interactive
40
-
41
- ! Make sure you add your keys to the .env file.
42
- The agent will introduce itself on your first session.
43
-
44
-
45
- + AGENT.md
46
- + poncho.config.js
47
- + package.json
48
- + README.md
49
- + .env.example
50
- + .gitignore
51
- + tests/basic.yaml
52
- + skills/starter/SKILL.md
53
- + skills/starter/scripts/starter-echo.ts
54
- + .env
55
-
56
-  WARN  Installing a dependency from a non-existent directory: /private/Users/cesar/Dev/latitude/agentl/packages/harness
57
-  WARN  Installing a dependency from a non-existent directory: /private/Users/cesar/Dev/latitude/agentl/packages/sdk
58
- Already up to date
59
-
60
- dependencies:
61
- + @poncho-ai/harness <- harness 0.0.0 <- ../../../Users/cesar/Dev/latitude/agentl/packages/harness
62
- + @poncho-ai/sdk <- sdk 0.0.0 <- ../../../Users/cesar/Dev/latitude/agentl/packages/sdk
63
-
64
- Done in 274ms
65
- ✓ Installed dependencies
66
- ✓ Initialized git
67
- ✓ default-agent is ready
68
-
69
- Get started
70
-
71
- $ cd default-agent
72
-
73
- Web UI $ poncho dev
74
- CLI interactive $ poncho run --interactive
75
-
76
- ! Make sure you add your keys to the .env file.
77
- The agent will introduce itself on your first session.
78
-
79
-
80
- + AGENT.md
81
- + poncho.config.js
82
- + package.json
83
- + README.md
84
- + .env.example
85
- + .gitignore
86
- + tests/basic.yaml
87
- + skills/starter/SKILL.md
88
- + skills/starter/scripts/starter-echo.ts
89
- + .env
90
-
91
-  WARN  Installing a dependency from a non-existent directory: /private/Users/cesar/Dev/latitude/agentl/packages/harness
92
-  WARN  Installing a dependency from a non-existent directory: /private/Users/cesar/Dev/latitude/agentl/packages/sdk
93
- Already up to date
94
-
95
- dependencies:
96
- + @poncho-ai/harness <- harness 0.0.0 <- ../../../Users/cesar/Dev/latitude/agentl/packages/harness
97
- + @poncho-ai/sdk <- sdk 0.0.0 <- ../../../Users/cesar/Dev/latitude/agentl/packages/sdk
98
-
99
- Done in 272ms
100
- ✓ Installed dependencies
101
- ✓ Initialized git
102
- ✓ interactive-custom-agent is ready
103
-
104
- Get started
105
-
106
- $ cd interactive-custom-agent
107
-
108
- Web UI $ poncho dev
109
- CLI interactive $ poncho run --interactive
110
-
111
- ! Make sure you add your keys to the .env file.
112
- The agent will introduce itself on your first session.
113
-
114
-
115
- + AGENT.md
116
- + poncho.config.js
117
- + package.json
118
- + README.md
119
- + .env.example
120
- + .gitignore
121
- + tests/basic.yaml
122
- + skills/starter/SKILL.md
123
- + skills/starter/scripts/starter-echo.ts
124
- + .env
125
-
126
-  WARN  Installing a dependency from a non-existent directory: /private/Users/cesar/Dev/latitude/agentl/packages/harness
127
-  WARN  Installing a dependency from a non-existent directory: /private/Users/cesar/Dev/latitude/agentl/packages/sdk
128
- Already up to date
129
-
130
- dependencies:
131
- + @poncho-ai/harness <- harness 0.0.0 <- ../../../Users/cesar/Dev/latitude/agentl/packages/harness
132
- + @poncho-ai/sdk <- sdk 0.0.0 <- ../../../Users/cesar/Dev/latitude/agentl/packages/sdk
133
-
134
- Done in 276ms
135
- ✓ Installed dependencies
136
- ✓ Initialized git
137
- ✓ no-intro-agent is ready
138
-
139
- Get started
140
-
141
- $ cd no-intro-agent
142
-
143
- Web UI $ poncho dev
144
- CLI interactive $ poncho run --interactive
145
-
146
- ! Make sure you add your keys to the .env file.
147
- The agent will introduce itself on your first session.
148
-
149
-
150
- + AGENT.md
151
- + poncho.config.js
152
- + package.json
153
- + README.md
154
- + .env.example
155
- + .gitignore
156
- + tests/basic.yaml
157
- + skills/starter/SKILL.md
158
- + skills/starter/scripts/starter-echo.ts
159
- + .env
160
-
161
-  WARN  Installing a dependency from a non-existent directory: /private/Users/cesar/Dev/latitude/agentl/packages/harness
162
-  WARN  Installing a dependency from a non-existent directory: /private/Users/cesar/Dev/latitude/agentl/packages/sdk
163
- Already up to date
164
-
165
- dependencies:
166
- + @poncho-ai/harness <- harness 0.0.0 <- ../../../Users/cesar/Dev/latitude/agentl/packages/harness
167
- + @poncho-ai/sdk <- sdk 0.0.0 <- ../../../Users/cesar/Dev/latitude/agentl/packages/sdk
168
-
169
- Done in 271ms
170
- ✓ Installed dependencies
171
- ✓ Initialized git
172
- ✓ smoke-agent is ready
173
-
174
- Get started
175
-
176
- $ cd smoke-agent
177
-
178
- Web UI $ poncho dev
179
- CLI interactive $ poncho run --interactive
180
-
181
- ! Make sure you add your keys to the .env file.
182
- The agent will introduce itself on your first session.
183
-
184
- Poncho dev server running at http://localhost:43437
185
-
186
- + AGENT.md
187
- + poncho.config.js
188
- + package.json
189
- + README.md
190
- + .env.example
191
- + .gitignore
192
- + tests/basic.yaml
193
- + skills/starter/SKILL.md
194
- + skills/starter/scripts/starter-echo.ts
195
- + .env
196
-
197
-  WARN  Installing a dependency from a non-existent directory: /private/Users/cesar/Dev/latitude/agentl/packages/harness
198
-  WARN  Installing a dependency from a non-existent directory: /private/Users/cesar/Dev/latitude/agentl/packages/sdk
199
- Already up to date
200
-
201
- dependencies:
202
- + @poncho-ai/harness <- harness 0.0.0 <- ../../../Users/cesar/Dev/latitude/agentl/packages/harness
203
- + @poncho-ai/sdk <- sdk 0.0.0 <- ../../../Users/cesar/Dev/latitude/agentl/packages/sdk
204
-
205
- Done in 269ms
206
- ✓ Installed dependencies
207
- ✓ Initialized git
208
- ✓ webui-agent is ready
209
-
210
- Get started
211
-
212
- $ cd webui-agent
213
-
214
- Web UI $ poncho dev
215
- CLI interactive $ poncho run --interactive
216
-
217
- ! Make sure you add your keys to the .env file.
218
- The agent will introduce itself on your first session.
219
-
220
- Poncho dev server running at http://localhost:44787
221
-
222
- + AGENT.md
223
- + poncho.config.js
224
- + package.json
225
- + README.md
226
- + .env.example
227
- + .gitignore
228
- + tests/basic.yaml
229
- + skills/starter/SKILL.md
230
- + skills/starter/scripts/starter-echo.ts
231
- + .env
232
-
233
-  WARN  Installing a dependency from a non-existent directory: /private/Users/cesar/Dev/latitude/agentl/packages/harness
234
-  WARN  Installing a dependency from a non-existent directory: /private/Users/cesar/Dev/latitude/agentl/packages/sdk
235
- Already up to date
236
-
237
- dependencies:
238
- + @poncho-ai/harness <- harness 0.0.0 <- ../../../Users/cesar/Dev/latitude/agentl/packages/harness
239
- + @poncho-ai/sdk <- sdk 0.0.0 <- ../../../Users/cesar/Dev/latitude/agentl/packages/sdk
240
-
241
- Done in 267ms
242
- ✓ Installed dependencies
243
- ✓ Initialized git
244
- ✓ webui-prod-agent is ready
245
-
246
- Get started
247
-
248
- $ cd webui-prod-agent
249
-
250
- Web UI $ poncho dev
251
- CLI interactive $ poncho run --interactive
252
-
253
- ! Make sure you add your keys to the .env file.
254
- The agent will introduce itself on your first session.
255
-
256
- Poncho dev server running at http://localhost:45793
257
-
258
- + AGENT.md
259
- + poncho.config.js
260
- + package.json
261
- + README.md
262
- + .env.example
263
- + .gitignore
264
- + tests/basic.yaml
265
- + skills/starter/SKILL.md
266
- + skills/starter/scripts/starter-echo.ts
267
- + .env
268
-
269
-  WARN  Installing a dependency from a non-existent directory: /private/Users/cesar/Dev/latitude/agentl/packages/harness
270
-  WARN  Installing a dependency from a non-existent directory: /private/Users/cesar/Dev/latitude/agentl/packages/sdk
271
- Already up to date
272
-
273
- dependencies:
274
- + @poncho-ai/harness <- harness 0.0.0 <- ../../../Users/cesar/Dev/latitude/agentl/packages/harness
275
- + @poncho-ai/sdk <- sdk 0.0.0 <- ../../../Users/cesar/Dev/latitude/agentl/packages/sdk
276
-
277
- Done in 268ms
278
- ✓ Installed dependencies
279
- ✓ Initialized git
280
- ✓ aux-agent is ready
281
-
282
- Get started
283
-
284
- $ cd aux-agent
285
-
286
- Web UI $ poncho dev
287
- CLI interactive $ poncho run --interactive
288
-
289
- ! Make sure you add your keys to the .env file.
290
- The agent will introduce itself on your first session.
291
-
292
- Available tools:
293
- - echo: Echo tool
294
- MCP server added.
295
- No MCP servers configured.
296
- Removed MCP server: remote-mcp
297
- Build artifacts generated at /tmp/poncho-cli-YDCSy8/aux-agent/.poncho-build/vercel
298
- Build artifacts generated at /tmp/poncho-cli-YDCSy8/aux-agent/.poncho-build/docker
299
- Build artifacts generated at /tmp/poncho-cli-YDCSy8/aux-agent/.poncho-build/lambda
300
- Build artifacts generated at /tmp/poncho-cli-YDCSy8/aux-agent/.poncho-build/fly
301
- PASS basic
302
-
303
- Test summary: 1 passed, 0 failed
304
- AGENT.md does not contain deprecated embedded local guidance.
305
- Removed deprecated embedded local guidance from AGENT.md.
306
- ❯ test/cli.test.ts  (15 tests | 2 failed) 3087ms
307
-  ❯ test/cli.test.ts > cli > creates onboarding marker and emits intro only once
308
-  → expected 'Hi! I\'m **IntroAgent**. I can config…' to contain 'I can help configure this agent direc…'
309
-  ❯ test/cli.test.ts > cli > emits intro for interactive init even when config differs from defaults
310
-  → expected 'Hi! I\'m **InteractiveCustomAgent**. …' to contain 'I can help configure this agent direc…'
311
-
312
- ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 2 ⎯⎯⎯⎯⎯⎯⎯
313
-
314
-  FAIL  test/cli.test.ts > cli > creates onboarding marker and emits intro only once
315
- AssertionError: expected 'Hi! I\'m **IntroAgent**. I can config…' to contain 'I can help configure this agent direc…'
316
-
317
- - Expected
318
- + Received
319
-
320
- - I can help configure this agent directly by chat
321
- + Hi! I'm **IntroAgent**. I can configure myself directly by chat.
322
- +
323
- + **Current config**
324
- + Model: anthropic/claude-opus-4-5
325
- + ```storage: local · memory tools: enabled · auth: not required · telemetry: enabled```
326
- +
327
- + Feel free to ask me anything when you're ready. I can help you:
328
- +
329
- + - **Build skills**: Create custom tools and capabilities for this agent
330
- + - **Configure the model**: Switch providers (OpenAI, Anthropic, etc.) or models
331
- + - **Set up storage**: Use local files, Upstash, or other backends
332
- + - **Enable auth**: Add bearer tokens or custom authentication
333
- + - **Turn on telemetry**: Track usage with OpenTelemetry/OTLP
334
- + - **Add MCP servers**: Connect external tool servers
335
- +
336
- + Just let me know what you'd like to work on!
337
- +
338
-
339
-  ❯ test/cli.test.ts:211:24
340
- 209|  config: undefined,
341
- 210|  });
342
- 211|  expect(firstIntro).toContain("I can help configure this agent dire…
343
-  |  ^
344
- 212|  expect(secondIntro).toBeUndefined();
345
- 213|  });
346
-
347
- ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/2]⎯
348
-
349
-  FAIL  test/cli.test.ts > cli > emits intro for interactive init even when config differs from defaults
350
- AssertionError: expected 'Hi! I\'m **InteractiveCustomAgent**. …' to contain 'I can help configure this agent direc…'
351
-
352
- - Expected
353
- + Received
354
-
355
- - I can help configure this agent directly by chat
356
- + Hi! I'm **InteractiveCustomAgent**. I can configure myself directly by chat.
357
- +
358
- + **Current config**
359
- + Model: openai/gpt-4.1
360
- + ```storage: memory · memory tools: disabled · auth: required · telemetry: disabled```
361
- +
362
- + Feel free to ask me anything when you're ready. I can help you:
363
- +
364
- + - **Build skills**: Create custom tools and capabilities for this agent
365
- + - **Configure the model**: Switch providers (OpenAI, Anthropic, etc.) or models
366
- + - **Set up storage**: Use local files, Upstash, or other backends
367
- + - **Enable auth**: Add bearer tokens or custom authentication
368
- + - **Turn on telemetry**: Track usage with OpenTelemetry/OTLP
369
- + - **Add MCP servers**: Connect external tool servers
370
- +
371
- + Just let me know what you'd like to work on!
372
- +
373
-
374
-  ❯ test/cli.test.ts:233:19
375
- 231|  }),
376
- 232|  });
377
- 233|  expect(intro).toContain("I can help configure this agent directly …
378
-  |  ^
379
- 234|  });
380
- 235| 
381
-
382
- ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/2]⎯
383
-
384
-  Test Files  1 failed | 1 passed (2)
385
-  Tests  2 failed | 14 passed (16)
386
-  Start at  12:06:04
387
-  Duration  3.53s (transform 207ms, setup 0ms, collect 464ms, tests 3.09s, environment 0ms, prepare 95ms)
388
-
389
-  ELIFECYCLE  Test failed. See above for more details.