@bivy/bivy 0.18.4-staging.4 → 0.18.4-staging.5

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.
@@ -1171,8 +1171,7 @@ button.sheet-action:last-child { border-bottom: 0; }
1171
1171
  /* Agent/model catalogs should not collapse into a tiny strip when the composer
1172
1172
  grows. Keep their normal composer clearance, but cap that reservation and
1173
1173
  give the scrollable catalog a stable, roomy height. */
1174
- .sheet[data-size="large"] .sheet-body,
1175
- .sheet[data-size="mobile-full"] .sheet-body {
1174
+ .sheet[data-size="large"] .sheet-body {
1176
1175
  --sheet-clear: max(
1177
1176
  calc(env(safe-area-inset-bottom, 0px) + var(--space-2)),
1178
1177
  min(calc(var(--composer-h, 108px) + var(--space-2) - var(--keyboard-h, 0px)), calc(var(--app-h, 100dvh) * 0.24))
@@ -1200,20 +1199,19 @@ button.sheet-action:last-child { border-bottom: 0; }
1200
1199
  page) handles a long tool list; touch scrolling + overscroll containment keep
1201
1200
  the fling smooth on iOS and stop it chaining to the chat underneath. */
1202
1201
  .sheet-content { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 8px; min-height: 0; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
1203
- /* Embedded apps use the whole mobile viewport, including the space normally
1204
- reserved for the chat composer. Keep controls clear of device safe areas. */
1205
- @media (max-width: 900px) {
1206
- .sheet[data-size="mobile-full"] .sheet-body {
1207
- height: 100%; max-height: 100%; max-width: none; margin: 0;
1208
- border: 0; border-radius: 0;
1209
- padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
1210
- }
1211
- .sheet[data-size="mobile-full"] .sheet-grabber { display: none; }
1212
- .sheet[data-size="mobile-full"] .sheet-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1213
- .sheet[data-size="mobile-full"] .sheet-head > button { flex-shrink: 0; min-height: var(--space-7); }
1214
- .sheet[data-size="mobile-full"] .sheet-content { padding: 0; }
1215
- .sheet[data-size="mobile-full"] .preview-peek { border-radius: 0; }
1216
- }
1202
+ /* Embedded apps use the whole viewport on every screen size, including the
1203
+ space normally reserved for the chat composer. Keep controls clear of
1204
+ device safe areas. */
1205
+ .sheet[data-size="full"] .sheet-body {
1206
+ height: 100%; max-height: 100%; max-width: none; margin: 0;
1207
+ border: 0; border-radius: 0;
1208
+ padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
1209
+ }
1210
+ .sheet[data-size="full"] .sheet-grabber { display: none; }
1211
+ .sheet[data-size="full"] .sheet-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1212
+ .sheet[data-size="full"] .sheet-head > button { flex-shrink: 0; min-height: var(--space-7); }
1213
+ .sheet[data-size="full"] .sheet-content { padding: 0; }
1214
+ .sheet[data-size="full"] .preview-peek { border-radius: 0; }
1217
1215
  .picker-search { margin-bottom: 6px; }
1218
1216
  /* In a picker sheet the search is a direct child of the scroll container, so pin
1219
1217
  it to the top: the list scrolls beneath it and every option stays reachable
package/dist/git-auth.js CHANGED
@@ -148,14 +148,22 @@ export function gitNonInteractiveEnv() {
148
148
  */
149
149
  export async function configureRepoCredentialHelper(git, dest) {
150
150
  const helper = ensureCredentialHelper();
151
- await git(["-C", dest, "config", "--local", "credential.https://github.com.useHttpPath", "true"]);
152
151
  // Reset the helper chain for this repo, then set ONLY bivy's helper, so AGENT-run
153
152
  // git never falls back to an inherited host helper holding the human's personal
154
- // token (see credConfigArgs for the full rationale). Clear any prior values first
155
- // so re-running stays idempotent (--unset-all returns 5 when the key is absent).
156
- await git(["-C", dest, "config", "--local", "--unset-all", "credential.helper"]).catch(() => { });
157
- await git(["-C", dest, "config", "--local", "--unset-all", "credential.https://github.com.helper"]).catch(() => { });
153
+ // token (see credConfigArgs for the full rationale).
154
+ //
155
+ // Git reads `credential.helper` and `credential.<url>.helper` into ONE list in
156
+ // FILE order, and an empty value clears everything before it. So every reset must
157
+ // sit above bivy's helper in .git/config — an empty `[credential] helper` written
158
+ // after the `[credential "https://github.com"]` section wipes bivy's helper and
159
+ // leaves git with none (the lazy blob fetch in `git worktree add` then dies with
160
+ // "could not read Username"). `--add` appends to an existing section, so drop both
161
+ // sections first and write them back in order; this also repairs clones written in
162
+ // the old order (remove-section fails harmlessly when a section is absent).
163
+ await git(["-C", dest, "config", "--local", "--remove-section", "credential"]).catch(() => { });
164
+ await git(["-C", dest, "config", "--local", "--remove-section", "credential.https://github.com"]).catch(() => { });
158
165
  await git(["-C", dest, "config", "--local", "--add", "credential.helper", ""]);
166
+ await git(["-C", dest, "config", "--local", "credential.https://github.com.useHttpPath", "true"]);
159
167
  await git(["-C", dest, "config", "--local", "--add", "credential.https://github.com.helper", ""]);
160
168
  await git(["-C", dest, "config", "--local", "--add", "credential.https://github.com.helper", helper]);
161
169
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bivy/bivy",
3
- "version": "0.18.4-staging.4",
3
+ "version": "0.18.4-staging.5",
4
4
  "type": "module",
5
5
  "license": "AGPL-3.0-only",
6
6
  "description": "Run coding agents on machines you own. Open-source, self-hostable agent workspace.",