@yagni-app/code-staging 1.0.1-staging.1202.1 → 1.0.1-staging.1204.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.
@@ -35,6 +35,10 @@ export declare const DIFF_PREVIEW_LINES = 12;
35
35
  export declare const ERROR_TAIL_LINES = 5;
36
36
  /** Output tail lines shown under a still-running shell command. */
37
37
  export declare const PARTIAL_TAIL_LINES = 3;
38
+ /** Left/right margin for self-rendered rows, matching pi's `outputPad` (1) so
39
+ * tool rows align with prose. Self-render rows bypass pi's pad (renderShell
40
+ * "self" → unpadded container), so we reapply it here. */
41
+ export declare const OUTPUT_PAD = 1;
38
42
  declare const BUILTIN_NAMES: readonly ["read", "bash", "edit", "write", "grep", "find", "ls"];
39
43
  type BuiltinName = (typeof BUILTIN_NAMES)[number];
40
44
  export type RowStatus = "running" | "ok" | "error";
@@ -41,6 +41,10 @@ export const PARTIAL_TAIL_LINES = 3;
41
41
  const EXPANDED_MAX_LINES = 1000;
42
42
  /** Title arg preview width. */
43
43
  const ARG_PREVIEW_MAX = 96;
44
+ /** Left/right margin for self-rendered rows, matching pi's `outputPad` (1) so
45
+ * tool rows align with prose. Self-render rows bypass pi's pad (renderShell
46
+ * "self" → unpadded container), so we reapply it here. */
47
+ export const OUTPUT_PAD = 1;
44
48
  const BUILTIN_NAMES = ["read", "bash", "edit", "write", "grep", "find", "ls"];
45
49
  const TITLE_BY_NAME = {
46
50
  read: "Read",
@@ -257,7 +261,7 @@ function empty() {
257
261
  return new Container();
258
262
  }
259
263
  function textComponent(lines) {
260
- return lines.length === 0 ? empty() : new Text(lines.join("\n"), 0, 0);
264
+ return lines.length === 0 ? empty() : new Text(lines.join("\n"), OUTPUT_PAD, 0);
261
265
  }
262
266
  function defaultLoadSettings(cwd) {
263
267
  return SettingsManager.create(cwd, getAgentDir());
@@ -332,13 +336,13 @@ export function registerCondensedTools(pi, deps = {}) {
332
336
  const status = slice.isError ? "error" : slice.isPartial ? "running" : "ok";
333
337
  const argsRecord = args;
334
338
  if (slice.expanded || !isQuiet(row)) {
335
- return new Text(formatRowTitle(name, argsRecord, status, theme, slice.cwd), 0, 0);
339
+ return new Text(formatRowTitle(name, argsRecord, status, theme, slice.cwd), OUTPUT_PAD, 0);
336
340
  }
337
341
  if (!row.final) {
338
- return new Text(formatRowTitle(name, argsRecord, "running", theme, slice.cwd), 0, 0);
342
+ return new Text(formatRowTitle(name, argsRecord, "running", theme, slice.cwd), OUTPUT_PAD, 0);
339
343
  }
340
344
  const summary = tracker.summaryFor(row.id);
341
- return summary ? new Text(theme.fg("muted", summary), 0, 0) : empty();
345
+ return summary ? new Text(theme.fg("muted", summary), OUTPUT_PAD, 0) : empty();
342
346
  },
343
347
  renderResult(result, options, theme, context) {
344
348
  const slice = context;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yagni-app/code-staging",
3
- "version": "1.0.1-staging.1202.1",
3
+ "version": "1.0.1-staging.1204.1",
4
4
  "description": "YAGNI Code: a terminal coding agent that already knows your company. One YAGNI login routes the model and grounds the agent in your team's context.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "YAGNI, Inc. <jack@yagni.app> (https://yagni.app)",
@@ -41,5 +41,5 @@
41
41
  "turndown": "^7.2.4",
42
42
  "typebox": "^1.3.15"
43
43
  },
44
- "yagniSourceSha": "2455348d067f7038017822f6d36de33d3058e77a"
44
+ "yagniSourceSha": "d2a776fc46ede83ad273ea3dcfeeea03aa8e3292"
45
45
  }