poe-code 17.0.12 → 17.0.13

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 (38) hide show
  1. package/dist/{bootstrap-M4BY5J7O.js → bootstrap-4D2WIG4U.js} +2 -2
  2. package/dist/{chunk-PPEHQEYU.js → chunk-2BJTG7OS.js} +2 -2
  3. package/dist/{chunk-CWXPH3RT.js → chunk-3OQIO5BT.js} +3 -3
  4. package/dist/{chunk-VGKZAERS.js → chunk-E44SIE2H.js} +4 -4
  5. package/dist/{chunk-Z6LQ4P3T.js → chunk-HSOQQRE3.js} +3 -3
  6. package/dist/{chunk-ZYLIMY7A.js → chunk-KCU7F5KW.js} +6 -6
  7. package/dist/{chunk-SFQUOBUV.js → chunk-OOO5R6VJ.js} +6 -6
  8. package/dist/{chunk-M255PUFK.js → chunk-OQBXBWDH.js} +4 -4
  9. package/dist/{chunk-CC6T5SCN.js → chunk-TVI2ZZM6.js} +10 -6
  10. package/dist/{chunk-CC6T5SCN.js.map → chunk-TVI2ZZM6.js.map} +2 -2
  11. package/dist/{ensure-isolated-config-WSQKLNAT.js → ensure-isolated-config-YS7YVYPU.js} +6 -6
  12. package/dist/index.js +9 -9
  13. package/dist/metafile.json +1 -1
  14. package/dist/poe-agent-ZIVFB4QJ.js +15 -0
  15. package/dist/{program-YKMLA4BH.js → program-J7SK6YNL.js} +11 -11
  16. package/dist/providers/poe-agent.js +9 -5
  17. package/dist/providers/poe-agent.js.map +2 -2
  18. package/dist/spawn-ECAZHT2C.js +14 -0
  19. package/dist/{src-UU2LKL2G.js → src-HLJNXQZN.js} +3 -3
  20. package/package.json +1 -1
  21. package/packages/superintendent/dist/mcp.js +9 -5
  22. package/packages/superintendent/dist/mcp.js.map +2 -2
  23. package/packages/toolcraft-design/dist/dashboard/components/run-view.js +13 -11
  24. package/dist/poe-agent-446LGIZG.js +0 -15
  25. package/dist/spawn-WTSCBP7X.js +0 -14
  26. /package/dist/{bootstrap-M4BY5J7O.js.map → bootstrap-4D2WIG4U.js.map} +0 -0
  27. /package/dist/{chunk-PPEHQEYU.js.map → chunk-2BJTG7OS.js.map} +0 -0
  28. /package/dist/{chunk-CWXPH3RT.js.map → chunk-3OQIO5BT.js.map} +0 -0
  29. /package/dist/{chunk-VGKZAERS.js.map → chunk-E44SIE2H.js.map} +0 -0
  30. /package/dist/{chunk-Z6LQ4P3T.js.map → chunk-HSOQQRE3.js.map} +0 -0
  31. /package/dist/{chunk-ZYLIMY7A.js.map → chunk-KCU7F5KW.js.map} +0 -0
  32. /package/dist/{chunk-SFQUOBUV.js.map → chunk-OOO5R6VJ.js.map} +0 -0
  33. /package/dist/{chunk-M255PUFK.js.map → chunk-OQBXBWDH.js.map} +0 -0
  34. /package/dist/{ensure-isolated-config-WSQKLNAT.js.map → ensure-isolated-config-YS7YVYPU.js.map} +0 -0
  35. /package/dist/{poe-agent-446LGIZG.js.map → poe-agent-ZIVFB4QJ.js.map} +0 -0
  36. /package/dist/{program-YKMLA4BH.js.map → program-J7SK6YNL.js.map} +0 -0
  37. /package/dist/{spawn-WTSCBP7X.js.map → spawn-ECAZHT2C.js.map} +0 -0
  38. /package/dist/{src-UU2LKL2G.js.map → src-HLJNXQZN.js.map} +0 -0
@@ -0,0 +1,14 @@
1
+ import {
2
+ spawn
3
+ } from "./chunk-OOO5R6VJ.js";
4
+ import "./chunk-OQBXBWDH.js";
5
+ import "./chunk-HSOQQRE3.js";
6
+ import "./chunk-NO7WNABG.js";
7
+ import "./chunk-OADWN624.js";
8
+ import "./chunk-2BJTG7OS.js";
9
+ import "./chunk-TVI2ZZM6.js";
10
+ import "./chunk-PX6F3LHL.js";
11
+ export {
12
+ spawn
13
+ };
14
+ //# sourceMappingURL=spawn-ECAZHT2C.js.map
@@ -33,8 +33,8 @@ import {
33
33
  poe_agent_plugin_web_default,
34
34
  resolvePluginsFromConfig,
35
35
  resolveProvider
36
- } from "./chunk-PPEHQEYU.js";
37
- import "./chunk-CC6T5SCN.js";
36
+ } from "./chunk-2BJTG7OS.js";
37
+ import "./chunk-TVI2ZZM6.js";
38
38
  import "./chunk-PX6F3LHL.js";
39
39
  export {
40
40
  DuplicateProviderNameError,
@@ -72,4 +72,4 @@ export {
72
72
  poe_agent_plugin_system_prompt_default as systemPromptPlugin,
73
73
  poe_agent_plugin_web_default as webPlugin
74
74
  };
75
- //# sourceMappingURL=src-UU2LKL2G.js.map
75
+ //# sourceMappingURL=src-HLJNXQZN.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poe-code",
3
- "version": "17.0.12",
3
+ "version": "17.0.13",
4
4
  "description": "CLI tool to configure Poe API for developer workflows.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -16814,6 +16814,7 @@ function renderRunView(buffer, options) {
16814
16814
  const run = stats.run;
16815
16815
  const theme = getTheme().styles;
16816
16816
  const compactHeight = buffer.height < 20;
16817
+ const tight = buffer.height < 12 || buffer.width < 40;
16817
16818
  const width = Math.max(0, Math.min(164, buffer.width - 4));
16818
16819
  const x = Math.max(0, Math.floor((buffer.width - width) / 2));
16819
16820
  const sidebarWidth = !compactHeight && !options.showQueue && width >= 106 ? Math.min(40, Math.floor(width * 0.29)) : 0;
@@ -16830,7 +16831,7 @@ function renderRunView(buffer, options) {
16830
16831
  const inputLines = draft ? Math.min(compactHeight ? 1 : 3, draft.lines.length) : 0;
16831
16832
  const inputRow = compactHeight ? 1 : 2;
16832
16833
  const composerHeight = composer ? inputLines + inputRow + (!compactHeight || composer.error || options.feedback ? 1 : 0) : 0;
16833
- const hint = composer?.focused ? composer.kind === "plan" ? "Enter Queue plan Ctrl+P Message Esc Browse" : "Enter Queue Alt+Enter Newline Ctrl+P Plan Alt+\u2191\u2193 Target Esc Browse" : options.showQueue ? "\u2191\u2193 Scroll PgUp/PgDn Page Home/End Jump f Current v Activity i Message q Quit" : options.hints ? options.hints.map((hint2) => `${hint2.key} ${hint2.label}`).join(" ") : width < 100 ? "i Message p Plan v Tasks d Details \u2191\u2193 Scroll f Follow q Quit" : "i Message p Add plan v Tasks & plans d Details \u2191\u2193 Scroll f Follow q Quit";
16834
+ const hint = tight ? composer?.focused ? "Enter Queue Esc Browse" : "i Message v Tasks q Quit" : composer?.focused ? composer.kind === "plan" ? "Enter Queue plan Ctrl+P Message Esc Browse" : "Enter Queue Alt+Enter Newline Ctrl+P Plan Alt+\u2191\u2193 Target Esc Browse" : options.showQueue ? "\u2191\u2193 Scroll PgUp/PgDn Page Home/End Jump f Current v Activity i Message q Quit" : options.hints ? options.hints.map((hint2) => `${hint2.key} ${hint2.label}`).join(" ") : width < 100 ? "i Message p Plan v Tasks d Details \u2191\u2193 Scroll f Follow q Quit" : "i Message p Add plan v Tasks & plans d Details \u2191\u2193 Scroll f Follow q Quit";
16834
16835
  const footerLines = [""];
16835
16836
  for (const part of plainTerminalText(hint).split(" ")) {
16836
16837
  const previous = footerLines.at(-1);
@@ -16840,11 +16841,11 @@ function renderRunView(buffer, options) {
16840
16841
  const footerY = Math.max(0, buffer.height - footerLines.length);
16841
16842
  const composerY = Math.max(0, footerY - composerHeight);
16842
16843
  const contentBottom = composer ? composerY - 1 : footerY - 1;
16843
- const showContext = !compactHeight || contentBottom >= 6;
16844
+ const showContext = !tight && (!compactHeight || contentBottom >= 6);
16844
16845
  if (showContext) put(buffer, { x, y: 1, width, height: 1 }, 0, context, theme.muted);
16845
16846
  let outputY = compactHeight ? showContext ? 2 : 1 : 3;
16846
16847
  if (sidebarWidth === 0) {
16847
- if (activePlan?.kind === "plan") {
16848
+ if (activePlan?.kind === "plan" && !tight) {
16848
16849
  put(
16849
16850
  buffer,
16850
16851
  { x, y: outputY++, width, height: 1 },
@@ -16866,7 +16867,10 @@ function renderRunView(buffer, options) {
16866
16867
  const tasks = run?.tasks ?? [];
16867
16868
  const completed = tasks.filter((task) => task.status === "completed").length;
16868
16869
  const taskCount = tasks.length > 0 ? `${completed}/${tasks.length} tasks` : `${stats.iterationsLabel ?? "Iterations"} ${stats.iterations}`;
16869
- const step2 = run?.activeStep ? truncateToWidth(plainTerminalText(run.activeStep), Math.max(8, Math.floor(transcriptWidth / 4))) : void 0;
16870
+ const step2 = run?.activeStep ? truncateToWidth(plainTerminalText(run.activeStep), Math.max(
16871
+ 0,
16872
+ Math.min(Math.max(8, Math.floor(transcriptWidth / 4)), transcriptWidth - displayWidth(taskCount) - 12)
16873
+ )) : void 0;
16870
16874
  const progressLabel = [step2, taskCount].filter(Boolean).join(" \xB7 ");
16871
16875
  let phaseLabel = run?.phase ?? stats.currentAction ?? stats.status;
16872
16876
  if (phaseLabel === "Follow-up") {
@@ -16874,7 +16878,7 @@ function renderRunView(buffer, options) {
16874
16878
  const active = messages.findIndex((item) => item.status === "running");
16875
16879
  if (active >= 0) phaseLabel += ` ${active + 1}/${messages.length}`;
16876
16880
  }
16877
- const phase = truncateToWidth(plainTerminalText(phaseLabel), Math.max(8, transcriptWidth - progressLabel.length - 7));
16881
+ const phase = truncateToWidth(plainTerminalText(phaseLabel), Math.max(0, transcriptWidth - displayWidth(progressLabel) - 7));
16878
16882
  const statusMarker = { running: "\u25CF", error: "!", paused: "\u2161", idle: "\u25CB", done: "\u2713" }[stats.status];
16879
16883
  put(
16880
16884
  buffer,