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,15 @@
1
+ import {
2
+ poeAgentService,
3
+ provider,
4
+ spawnPoeAgentWithAcp
5
+ } from "./chunk-E44SIE2H.js";
6
+ import "./chunk-HSOQQRE3.js";
7
+ import "./chunk-2BJTG7OS.js";
8
+ import "./chunk-TVI2ZZM6.js";
9
+ import "./chunk-PX6F3LHL.js";
10
+ export {
11
+ poeAgentService,
12
+ provider,
13
+ spawnPoeAgentWithAcp
14
+ };
15
+ //# sourceMappingURL=poe-agent-ZIVFB4QJ.js.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  spawnPoeAgentWithAcp
3
- } from "./chunk-VGKZAERS.js";
3
+ } from "./chunk-E44SIE2H.js";
4
4
  import {
5
5
  combineMutationObservers,
6
6
  createConfigurePayload,
7
7
  createMutationReporter
8
- } from "./chunk-CWXPH3RT.js";
8
+ } from "./chunk-3OQIO5BT.js";
9
9
  import {
10
10
  GASLIGHT_CONFIG_EXAMPLE,
11
11
  appendExperimentJournalEntry,
@@ -77,7 +77,7 @@ import {
77
77
  traceReaders,
78
78
  validateResolvedPromptVars,
79
79
  writeFrontmatter
80
- } from "./chunk-ZYLIMY7A.js";
80
+ } from "./chunk-KCU7F5KW.js";
81
81
  import {
82
82
  checkAuth,
83
83
  createCliEnvironment,
@@ -99,7 +99,7 @@ import {
99
99
  spawn as spawn2,
100
100
  spawnAutonomous,
101
101
  usesLegacyPoeCredentialMirror
102
- } from "./chunk-SFQUOBUV.js";
102
+ } from "./chunk-OOO5R6VJ.js";
103
103
  import {
104
104
  announceAssumedScope,
105
105
  apiKeyFlagDescription,
@@ -132,7 +132,7 @@ import {
132
132
  resolveSpawnTarget,
133
133
  shlexQuote,
134
134
  warnApiKeyFlag
135
- } from "./chunk-M255PUFK.js";
135
+ } from "./chunk-OQBXBWDH.js";
136
136
  import {
137
137
  ApprovalDeclinedError,
138
138
  LOG_LEVELS,
@@ -178,7 +178,7 @@ import {
178
178
  throwValidationErrors,
179
179
  validateServices,
180
180
  writeErrorReport
181
- } from "./chunk-Z6LQ4P3T.js";
181
+ } from "./chunk-HSOQQRE3.js";
182
182
  import {
183
183
  ErrorLogger
184
184
  } from "./chunk-NO7WNABG.js";
@@ -289,7 +289,7 @@ import {
289
289
  validate,
290
290
  verifyGhProject,
291
291
  writeScope
292
- } from "./chunk-PPEHQEYU.js";
292
+ } from "./chunk-2BJTG7OS.js";
293
293
  import {
294
294
  UserError,
295
295
  cancel,
@@ -332,7 +332,7 @@ import {
332
332
  widths,
333
333
  withOutputFormat,
334
334
  withSpinner
335
- } from "./chunk-CC6T5SCN.js";
335
+ } from "./chunk-TVI2ZZM6.js";
336
336
  import "./chunk-PX6F3LHL.js";
337
337
 
338
338
  // src/cli/program.ts
@@ -7566,7 +7566,7 @@ function registerAgentCommand(program, container) {
7566
7566
  }
7567
7567
  const requestedModel = model;
7568
7568
  await assertModelIsInCatalog(container, requestedModel, apiKey);
7569
- const { createAgentSession } = await import("./src-UU2LKL2G.js");
7569
+ const { createAgentSession } = await import("./src-HLJNXQZN.js");
7570
7570
  session = await createAgentSession({
7571
7571
  model: requestedModel,
7572
7572
  apiKey,
@@ -9874,7 +9874,7 @@ async function executeTest(program, container, service, options = {}) {
9874
9874
  return runtimeEnvPromise;
9875
9875
  } : void 0;
9876
9876
  if (useIsolated) {
9877
- const { ensureIsolatedConfigForService } = await import("./ensure-isolated-config-WSQKLNAT.js");
9877
+ const { ensureIsolatedConfigForService } = await import("./ensure-isolated-config-YS7YVYPU.js");
9878
9878
  await ensureIsolatedConfigForService({
9879
9879
  container,
9880
9880
  adapter,
@@ -23874,4 +23874,4 @@ function suppressCommanderOutput(command) {
23874
23874
  export {
23875
23875
  createProgram
23876
23876
  };
23877
- //# sourceMappingURL=program-YKMLA4BH.js.map
23877
+ //# sourceMappingURL=program-J7SK6YNL.js.map
@@ -11434,6 +11434,7 @@ function renderRunView(buffer, options) {
11434
11434
  const run = stats.run;
11435
11435
  const theme = getTheme().styles;
11436
11436
  const compactHeight = buffer.height < 20;
11437
+ const tight = buffer.height < 12 || buffer.width < 40;
11437
11438
  const width = Math.max(0, Math.min(164, buffer.width - 4));
11438
11439
  const x = Math.max(0, Math.floor((buffer.width - width) / 2));
11439
11440
  const sidebarWidth = !compactHeight && !options.showQueue && width >= 106 ? Math.min(40, Math.floor(width * 0.29)) : 0;
@@ -11450,7 +11451,7 @@ function renderRunView(buffer, options) {
11450
11451
  const inputLines = draft ? Math.min(compactHeight ? 1 : 3, draft.lines.length) : 0;
11451
11452
  const inputRow = compactHeight ? 1 : 2;
11452
11453
  const composerHeight = composer ? inputLines + inputRow + (!compactHeight || composer.error || options.feedback ? 1 : 0) : 0;
11453
- 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";
11454
+ 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";
11454
11455
  const footerLines = [""];
11455
11456
  for (const part of plainTerminalText(hint).split(" ")) {
11456
11457
  const previous = footerLines.at(-1);
@@ -11460,11 +11461,11 @@ function renderRunView(buffer, options) {
11460
11461
  const footerY = Math.max(0, buffer.height - footerLines.length);
11461
11462
  const composerY = Math.max(0, footerY - composerHeight);
11462
11463
  const contentBottom = composer ? composerY - 1 : footerY - 1;
11463
- const showContext = !compactHeight || contentBottom >= 6;
11464
+ const showContext = !tight && (!compactHeight || contentBottom >= 6);
11464
11465
  if (showContext) put(buffer, { x, y: 1, width, height: 1 }, 0, context, theme.muted);
11465
11466
  let outputY = compactHeight ? showContext ? 2 : 1 : 3;
11466
11467
  if (sidebarWidth === 0) {
11467
- if (activePlan?.kind === "plan") {
11468
+ if (activePlan?.kind === "plan" && !tight) {
11468
11469
  put(
11469
11470
  buffer,
11470
11471
  { x, y: outputY++, width, height: 1 },
@@ -11486,7 +11487,10 @@ function renderRunView(buffer, options) {
11486
11487
  const tasks = run?.tasks ?? [];
11487
11488
  const completed = tasks.filter((task) => task.status === "completed").length;
11488
11489
  const taskCount = tasks.length > 0 ? `${completed}/${tasks.length} tasks` : `${stats.iterationsLabel ?? "Iterations"} ${stats.iterations}`;
11489
- const step2 = run?.activeStep ? truncateToWidth(plainTerminalText(run.activeStep), Math.max(8, Math.floor(transcriptWidth / 4))) : void 0;
11490
+ const step2 = run?.activeStep ? truncateToWidth(plainTerminalText(run.activeStep), Math.max(
11491
+ 0,
11492
+ Math.min(Math.max(8, Math.floor(transcriptWidth / 4)), transcriptWidth - displayWidth(taskCount) - 12)
11493
+ )) : void 0;
11490
11494
  const progressLabel = [step2, taskCount].filter(Boolean).join(" \xB7 ");
11491
11495
  let phaseLabel = run?.phase ?? stats.currentAction ?? stats.status;
11492
11496
  if (phaseLabel === "Follow-up") {
@@ -11494,7 +11498,7 @@ function renderRunView(buffer, options) {
11494
11498
  const active = messages.findIndex((item) => item.status === "running");
11495
11499
  if (active >= 0) phaseLabel += ` ${active + 1}/${messages.length}`;
11496
11500
  }
11497
- const phase = truncateToWidth(plainTerminalText(phaseLabel), Math.max(8, transcriptWidth - progressLabel.length - 7));
11501
+ const phase = truncateToWidth(plainTerminalText(phaseLabel), Math.max(0, transcriptWidth - displayWidth(progressLabel) - 7));
11498
11502
  const statusMarker = { running: "\u25CF", error: "!", paused: "\u2161", idle: "\u25CB", done: "\u2713" }[stats.status];
11499
11503
  put(
11500
11504
  buffer,