pi-landstrip 0.18.36 → 0.18.37

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 (2) hide show
  1. package/dist/index.ts +15 -5
  2. package/package.json +2 -2
package/dist/index.ts CHANGED
@@ -3832,10 +3832,19 @@ ${this.primaryAgent.prompt}` };
3832
3832
  return {
3833
3833
  render: (width) => {
3834
3834
  const contentWidth = Math.max(1, width - 2);
3835
- const pane = (lines) => [
3836
- paneTop(theme, width, "Landstrip"),
3837
- ...lines.map((line) => paneRow(theme, width, line))
3838
- ];
3835
+ const terminalRows = tui.terminal?.rows;
3836
+ const paneHeight = terminalRows ? Math.max(1, Math.floor(terminalRows * OVERLAY_HEIGHT_RATIO)) : undefined;
3837
+ const pane = (lines) => {
3838
+ const rows = [
3839
+ paneTop(theme, width, "Landstrip"),
3840
+ ...lines.map((line) => paneRow(theme, width, line))
3841
+ ];
3842
+ if (paneHeight === undefined)
3843
+ return rows;
3844
+ while (rows.length < paneHeight)
3845
+ rows.push(paneRow(theme, width));
3846
+ return rows.slice(0, paneHeight);
3847
+ };
3839
3848
  const pad = (value, cellWidth) => {
3840
3849
  const clipped = truncateToWidth2(value, cellWidth);
3841
3850
  return `${clipped}${" ".repeat(Math.max(0, cellWidth - visibleWidth2(clipped)))}`;
@@ -4436,6 +4445,7 @@ ${catalog.diagnostics.join(`
4436
4445
  const sessionWritePath = task.sessionDir ?? (task.sessionFile ? dirname3(task.sessionFile) : undefined);
4437
4446
  if (!sessionWritePath)
4438
4447
  throw new Error("Subagent task has no session directory or file");
4448
+ const authPath = join6(agentDir, "auth.json");
4439
4449
  const cliEntry = invocation.args[0] ?? invocation.command;
4440
4450
  const cliRoot = dependencyRoot(cliEntry) ?? dirname3(dirname3(cliEntry));
4441
4451
  const extensionRoot = dependencyRoot(packageDir);
@@ -4473,7 +4483,7 @@ ${catalog.diagnostics.join(`
4473
4483
  temp
4474
4484
  ].filter((path) => path !== undefined))
4475
4485
  ],
4476
- writePaths: [sessionWritePath, temp],
4486
+ writePaths: [sessionWritePath, temp, authPath, `${authPath}.lock`],
4477
4487
  signal
4478
4488
  });
4479
4489
  if (signal.aborted)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-landstrip",
3
- "version": "0.18.36",
3
+ "version": "0.18.37",
4
4
  "description": "Sandboxed Bash and process-backed agents for Pi",
5
5
  "keywords": [
6
6
  "landstrip",
@@ -39,7 +39,7 @@
39
39
  "ci:test": "npm run test"
40
40
  },
41
41
  "dependencies": {
42
- "@landstrip/landstrip": "^0.18.36",
42
+ "@landstrip/landstrip": "^0.18.37",
43
43
  "jsonc-parser": "^3.3.1",
44
44
  "minimatch": "^10.2.5",
45
45
  "yaml": "^2.9.0"