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
@@ -15,7 +15,7 @@ import {
15
15
  password,
16
16
  select,
17
17
  text2 as text
18
- } from "./chunk-CC6T5SCN.js";
18
+ } from "./chunk-TVI2ZZM6.js";
19
19
  import "./chunk-PX6F3LHL.js";
20
20
 
21
21
  // src/cli/bootstrap.ts
@@ -242,4 +242,4 @@ export {
242
242
  isCliInvocation,
243
243
  redactSensitiveArgv
244
244
  };
245
- //# sourceMappingURL=bootstrap-M4BY5J7O.js.map
245
+ //# sourceMappingURL=bootstrap-4D2WIG4U.js.map
@@ -13,7 +13,7 @@ import {
13
13
  resolveTemplatePartials,
14
14
  stripAnsi,
15
15
  text
16
- } from "./chunk-CC6T5SCN.js";
16
+ } from "./chunk-TVI2ZZM6.js";
17
17
 
18
18
  // packages/poe-agent/src/agent.ts
19
19
  import * as fsPromises6 from "node:fs/promises";
@@ -37880,4 +37880,4 @@ CC-BY-4.0. See https://creativecommons.org/licenses/by/4.0/legalcode for
37880
37880
  the full license text.
37881
37881
 
37882
37882
  */
37883
- //# sourceMappingURL=chunk-PPEHQEYU.js.map
37883
+ //# sourceMappingURL=chunk-2BJTG7OS.js.map
@@ -3,13 +3,13 @@ import {
3
3
  parseProviderShapeBaseUrls,
4
4
  resolveAgentDefinition,
5
5
  resolveNonEmpty
6
- } from "./chunk-M255PUFK.js";
6
+ } from "./chunk-OQBXBWDH.js";
7
7
  import {
8
8
  ValidationError
9
9
  } from "./chunk-OADWN624.js";
10
10
  import {
11
11
  POE_PROVIDER_ID
12
- } from "./chunk-PPEHQEYU.js";
12
+ } from "./chunk-2BJTG7OS.js";
13
13
 
14
14
  // src/services/mutation-events.ts
15
15
  function createMutationReporter(logger) {
@@ -152,4 +152,4 @@ export {
152
152
  combineMutationObservers,
153
153
  createConfigurePayload
154
154
  };
155
- //# sourceMappingURL=chunk-CWXPH3RT.js.map
155
+ //# sourceMappingURL=chunk-3OQIO5BT.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  agentConfigScope
3
- } from "./chunk-Z6LQ4P3T.js";
3
+ } from "./chunk-HSOQQRE3.js";
4
4
  import {
5
5
  AcpClient,
6
6
  createAgentSessionStore,
@@ -9,7 +9,7 @@ import {
9
9
  resolveConfigPath,
10
10
  resolveProjectConfigPath,
11
11
  runMutations
12
- } from "./chunk-PPEHQEYU.js";
12
+ } from "./chunk-2BJTG7OS.js";
13
13
 
14
14
  // src/providers/poe-agent.ts
15
15
  import fsPromises from "node:fs/promises";
@@ -562,7 +562,7 @@ function createInMemoryAcpTransport(options) {
562
562
  }
563
563
  if (method === "session/new") {
564
564
  const request = params;
565
- const { createAgentSession } = await import("./src-UU2LKL2G.js");
565
+ const { createAgentSession } = await import("./src-HLJNXQZN.js");
566
566
  const session = await createAgentSession({
567
567
  model: options.model,
568
568
  cwd: request.cwd || options.cwd,
@@ -756,4 +756,4 @@ export {
756
756
  poeAgentService,
757
757
  provider
758
758
  };
759
- //# sourceMappingURL=chunk-VGKZAERS.js.map
759
+ //# sourceMappingURL=chunk-E44SIE2H.js.map
@@ -72,7 +72,7 @@ import {
72
72
  validate,
73
73
  validateParameterHeaders,
74
74
  withJsonSchema
75
- } from "./chunk-PPEHQEYU.js";
75
+ } from "./chunk-2BJTG7OS.js";
76
76
  import {
77
77
  FrontmatterParseError,
78
78
  TemplateParseError,
@@ -89,7 +89,7 @@ import {
89
89
  select,
90
90
  shouldUseInteractiveDashboard,
91
91
  text
92
- } from "./chunk-CC6T5SCN.js";
92
+ } from "./chunk-TVI2ZZM6.js";
93
93
 
94
94
  // packages/superintendent/src/runtime/sequence.ts
95
95
  import path8 from "node:path";
@@ -16321,4 +16321,4 @@ export {
16321
16321
  knownConfigScopes,
16322
16322
  deleteConfig
16323
16323
  };
16324
- //# sourceMappingURL=chunk-Z6LQ4P3T.js.map
16324
+ //# sourceMappingURL=chunk-HSOQQRE3.js.map
@@ -3,14 +3,14 @@ import {
3
3
  resolveWorkspace,
4
4
  runWithOptionalWorktree,
5
5
  spawn as spawn2
6
- } from "./chunk-SFQUOBUV.js";
6
+ } from "./chunk-OOO5R6VJ.js";
7
7
  import {
8
8
  announceAssumedScope,
9
9
  createExecutionResources,
10
10
  requireInteractiveStdin,
11
11
  resolveAssumedDefaultAgent,
12
12
  resolveCommandFlags
13
- } from "./chunk-M255PUFK.js";
13
+ } from "./chunk-OQBXBWDH.js";
14
14
  import {
15
15
  UserError as UserError2,
16
16
  defineCommand,
@@ -20,7 +20,7 @@ import {
20
20
  runLoop,
21
21
  runMCP,
22
22
  suggest
23
- } from "./chunk-Z6LQ4P3T.js";
23
+ } from "./chunk-HSOQQRE3.js";
24
24
  import {
25
25
  OperationCancelledError,
26
26
  SilentError,
@@ -68,7 +68,7 @@ import {
68
68
  usageCapture,
69
69
  validate,
70
70
  verifyGhProject
71
- } from "./chunk-PPEHQEYU.js";
71
+ } from "./chunk-2BJTG7OS.js";
72
72
  import {
73
73
  FrontmatterKindError,
74
74
  FrontmatterParseError,
@@ -97,7 +97,7 @@ import {
97
97
  symbols,
98
98
  text,
99
99
  withOutputFormat
100
- } from "./chunk-CC6T5SCN.js";
100
+ } from "./chunk-TVI2ZZM6.js";
101
101
 
102
102
  // src/utils/execution-context.ts
103
103
  import { basename, dirname } from "node:path";
@@ -22592,4 +22592,4 @@ export {
22592
22592
  resolveMcpSpawnInput,
22593
22593
  parseMcpSpawnConfig
22594
22594
  };
22595
- //# sourceMappingURL=chunk-ZYLIMY7A.js.map
22595
+ //# sourceMappingURL=chunk-KCU7F5KW.js.map
@@ -5,14 +5,14 @@ import {
5
5
  resolveActiveProviderForService,
6
6
  resolveIsolatedEnvDetails,
7
7
  resolveMergedDocument
8
- } from "./chunk-M255PUFK.js";
8
+ } from "./chunk-OQBXBWDH.js";
9
9
  import {
10
10
  createWorktree,
11
11
  listWorktrees,
12
12
  reconcileWorktree,
13
13
  removeWorktree,
14
14
  updateWorktreeEntry
15
- } from "./chunk-Z6LQ4P3T.js";
15
+ } from "./chunk-HSOQQRE3.js";
16
16
  import {
17
17
  ErrorLogger
18
18
  } from "./chunk-NO7WNABG.js";
@@ -52,7 +52,7 @@ import {
52
52
  spawnLog,
53
53
  spawnStreaming,
54
54
  usageCapture
55
- } from "./chunk-PPEHQEYU.js";
55
+ } from "./chunk-2BJTG7OS.js";
56
56
  import {
57
57
  UserError,
58
58
  intro,
@@ -61,7 +61,7 @@ import {
61
61
  note,
62
62
  outro,
63
63
  resolveOutputFormat
64
- } from "./chunk-CC6T5SCN.js";
64
+ } from "./chunk-TVI2ZZM6.js";
65
65
 
66
66
  // src/sdk/spawn.ts
67
67
  import * as nodeFs2 from "node:fs/promises";
@@ -2782,7 +2782,7 @@ function createNodeWorktreeDeps() {
2782
2782
  };
2783
2783
  }
2784
2784
  async function defaultSpawnAgent(service, options) {
2785
- const { spawn: spawn3 } = await import("./spawn-WTSCBP7X.js");
2785
+ const { spawn: spawn3 } = await import("./spawn-ECAZHT2C.js");
2786
2786
  return await spawn3(service, options).result;
2787
2787
  }
2788
2788
 
@@ -3355,4 +3355,4 @@ export {
3355
3355
  removeManagedWorktree,
3356
3356
  spawn2 as spawn
3357
3357
  };
3358
- //# sourceMappingURL=chunk-SFQUOBUV.js.map
3358
+ //# sourceMappingURL=chunk-OOO5R6VJ.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  knownConfigScopes
3
- } from "./chunk-Z6LQ4P3T.js";
3
+ } from "./chunk-HSOQQRE3.js";
4
4
  import {
5
5
  OperationCancelledError,
6
6
  ValidationError
@@ -23,10 +23,10 @@ import {
23
23
  resolveAgentId,
24
24
  resolveApiShape,
25
25
  resolveSpawnableAgent
26
- } from "./chunk-PPEHQEYU.js";
26
+ } from "./chunk-2BJTG7OS.js";
27
27
  import {
28
28
  UserError
29
- } from "./chunk-CC6T5SCN.js";
29
+ } from "./chunk-TVI2ZZM6.js";
30
30
 
31
31
  // src/cli/isolated-env.ts
32
32
  import path from "node:path";
@@ -1447,4 +1447,4 @@ export {
1447
1447
  announceAssumedScope,
1448
1448
  shlexQuote
1449
1449
  };
1450
- //# sourceMappingURL=chunk-M255PUFK.js.map
1450
+ //# sourceMappingURL=chunk-OQBXBWDH.js.map
@@ -10907,6 +10907,7 @@ function renderRunView(buffer, options) {
10907
10907
  const run = stats.run;
10908
10908
  const theme = getTheme().styles;
10909
10909
  const compactHeight = buffer.height < 20;
10910
+ const tight = buffer.height < 12 || buffer.width < 40;
10910
10911
  const width = Math.max(0, Math.min(164, buffer.width - 4));
10911
10912
  const x = Math.max(0, Math.floor((buffer.width - width) / 2));
10912
10913
  const sidebarWidth = !compactHeight && !options.showQueue && width >= 106 ? Math.min(40, Math.floor(width * 0.29)) : 0;
@@ -10923,7 +10924,7 @@ function renderRunView(buffer, options) {
10923
10924
  const inputLines = draft ? Math.min(compactHeight ? 1 : 3, draft.lines.length) : 0;
10924
10925
  const inputRow = compactHeight ? 1 : 2;
10925
10926
  const composerHeight = composer ? inputLines + inputRow + (!compactHeight || composer.error || options.feedback ? 1 : 0) : 0;
10926
- 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";
10927
+ 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";
10927
10928
  const footerLines = [""];
10928
10929
  for (const part of plainTerminalText(hint).split(" ")) {
10929
10930
  const previous = footerLines.at(-1);
@@ -10933,11 +10934,11 @@ function renderRunView(buffer, options) {
10933
10934
  const footerY = Math.max(0, buffer.height - footerLines.length);
10934
10935
  const composerY = Math.max(0, footerY - composerHeight);
10935
10936
  const contentBottom = composer ? composerY - 1 : footerY - 1;
10936
- const showContext = !compactHeight || contentBottom >= 6;
10937
+ const showContext = !tight && (!compactHeight || contentBottom >= 6);
10937
10938
  if (showContext) put(buffer, { x, y: 1, width, height: 1 }, 0, context, theme.muted);
10938
10939
  let outputY = compactHeight ? showContext ? 2 : 1 : 3;
10939
10940
  if (sidebarWidth === 0) {
10940
- if (activePlan?.kind === "plan") {
10941
+ if (activePlan?.kind === "plan" && !tight) {
10941
10942
  put(
10942
10943
  buffer,
10943
10944
  { x, y: outputY++, width, height: 1 },
@@ -10959,7 +10960,10 @@ function renderRunView(buffer, options) {
10959
10960
  const tasks = run?.tasks ?? [];
10960
10961
  const completed = tasks.filter((task) => task.status === "completed").length;
10961
10962
  const taskCount = tasks.length > 0 ? `${completed}/${tasks.length} tasks` : `${stats.iterationsLabel ?? "Iterations"} ${stats.iterations}`;
10962
- const step2 = run?.activeStep ? truncateToWidth(plainTerminalText(run.activeStep), Math.max(8, Math.floor(transcriptWidth / 4))) : void 0;
10963
+ const step2 = run?.activeStep ? truncateToWidth(plainTerminalText(run.activeStep), Math.max(
10964
+ 0,
10965
+ Math.min(Math.max(8, Math.floor(transcriptWidth / 4)), transcriptWidth - displayWidth(taskCount) - 12)
10966
+ )) : void 0;
10963
10967
  const progressLabel = [step2, taskCount].filter(Boolean).join(" \xB7 ");
10964
10968
  let phaseLabel = run?.phase ?? stats.currentAction ?? stats.status;
10965
10969
  if (phaseLabel === "Follow-up") {
@@ -10967,7 +10971,7 @@ function renderRunView(buffer, options) {
10967
10971
  const active = messages.findIndex((item) => item.status === "running");
10968
10972
  if (active >= 0) phaseLabel += ` ${active + 1}/${messages.length}`;
10969
10973
  }
10970
- const phase = truncateToWidth(plainTerminalText(phaseLabel), Math.max(8, transcriptWidth - progressLabel.length - 7));
10974
+ const phase = truncateToWidth(plainTerminalText(phaseLabel), Math.max(0, transcriptWidth - displayWidth(progressLabel) - 7));
10971
10975
  const statusMarker = { running: "\u25CF", error: "!", paused: "\u2161", idle: "\u25CB", done: "\u2713" }[stats.status];
10972
10976
  put(
10973
10977
  buffer,
@@ -15631,4 +15635,4 @@ export {
15631
15635
  UserError,
15632
15636
  isUserError
15633
15637
  };
15634
- //# sourceMappingURL=chunk-CC6T5SCN.js.map
15638
+ //# sourceMappingURL=chunk-TVI2ZZM6.js.map