run402 4.73.2 → 4.73.3

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "surface_version": "4.73.2",
2
+ "surface_version": "4.73.3",
3
3
  "verbs": [
4
4
  "repos create",
5
5
  "repos list",
package/lib/up.mjs CHANGED
@@ -656,13 +656,26 @@ async function composeRepoPushStep({ sdk, workDir, projectId, createdRepository
656
656
  }
657
657
  try {
658
658
  let vaultCreated = null;
659
+ // A repository `up` itself just created has, by definition, nothing
660
+ // committed yet — every file is untracked, so a clean-tree capture would
661
+ // refuse SNAPSHOT_DIRTY_TREE on every fresh directory. Capture it as the
662
+ // synthetic first commit the dirty-tree lane produces (disclosed under
663
+ // first_push.snapshot); an EXISTING repository keeps the clean-tree rule
664
+ // and its refusal is reported, never overridden.
659
665
  const pushed = await sdk.gitvault.push({
660
666
  project_id: projectId,
661
667
  org_id: orgId,
662
668
  repo_dir: workDir,
669
+ ...(createdRepository ? { snapshot: { allowDirty: true } } : {}),
663
670
  onVaultCreated: (created) => { vaultCreated = created; },
664
671
  });
665
- out.first_push = { generation: pushed.generation, form: pushed.form, gitvault_commit: pushed.gitvault_commit, vault_created: vaultCreated };
672
+ out.first_push = {
673
+ generation: pushed.generation,
674
+ form: pushed.form,
675
+ gitvault_commit: pushed.gitvault_commit,
676
+ vault_created: vaultCreated,
677
+ ...(createdRepository ? { captured_dirty: true, modified_captured: pushed.snapshot?.modified_captured ?? null, untracked_captured: pushed.snapshot?.untracked_captured ?? null } : {}),
678
+ };
666
679
  } catch (err) {
667
680
  out.first_push_error = { code: err?.body?.code ?? err?.code ?? "GITVAULT_PUSH_FAILED", message: err?.message ?? String(err) };
668
681
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "run402",
3
- "version": "4.73.2",
3
+ "version": "4.73.3",
4
4
  "description": "CLI for Run402 — full-stack backend infrastructure for AI agents: Postgres, auth, storage, serverless functions and atomic deploys. Paid with x402/MPP. Includes $0.03 image generation.",
5
5
  "type": "module",
6
6
  "bin": {