run402 4.36.1 → 4.37.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.
Files changed (41) hide show
  1. package/README.md +15 -0
  2. package/cli.mjs +6 -0
  3. package/git-remote-run402.mjs +63 -3
  4. package/lib/command-manifest.mjs +13 -1
  5. package/lib/gitvault-scaffold.mjs +59 -0
  6. package/lib/gitvault.mjs +69 -22
  7. package/lib/init.mjs +8 -3
  8. package/lib/projects.mjs +16 -0
  9. package/lib/repos.mjs +324 -0
  10. package/lib/up.mjs +167 -29
  11. package/package.json +1 -1
  12. package/sdk/dist/errors.d.ts +1 -1
  13. package/sdk/dist/errors.d.ts.map +1 -1
  14. package/sdk/dist/errors.js.map +1 -1
  15. package/sdk/dist/index.d.ts +1 -1
  16. package/sdk/dist/index.d.ts.map +1 -1
  17. package/sdk/dist/index.js +1 -1
  18. package/sdk/dist/index.js.map +1 -1
  19. package/sdk/dist/namespaces/deploy.types.d.ts +9 -0
  20. package/sdk/dist/namespaces/deploy.types.d.ts.map +1 -1
  21. package/sdk/dist/namespaces/deploy.types.js.map +1 -1
  22. package/sdk/dist/namespaces/gitvault.d.ts +133 -16
  23. package/sdk/dist/namespaces/gitvault.d.ts.map +1 -1
  24. package/sdk/dist/namespaces/gitvault.js +207 -16
  25. package/sdk/dist/namespaces/gitvault.js.map +1 -1
  26. package/sdk/dist/node/gitvault-apply.d.ts +18 -1
  27. package/sdk/dist/node/gitvault-apply.d.ts.map +1 -1
  28. package/sdk/dist/node/gitvault-apply.js +38 -1
  29. package/sdk/dist/node/gitvault-apply.js.map +1 -1
  30. package/sdk/dist/node/gitvault-creation-journal.d.ts +22 -0
  31. package/sdk/dist/node/gitvault-creation-journal.d.ts.map +1 -1
  32. package/sdk/dist/node/gitvault-creation-journal.js +28 -0
  33. package/sdk/dist/node/gitvault-creation-journal.js.map +1 -1
  34. package/sdk/dist/node/gitvault-open-or-create.d.ts +59 -0
  35. package/sdk/dist/node/gitvault-open-or-create.d.ts.map +1 -0
  36. package/sdk/dist/node/gitvault-open-or-create.js +62 -0
  37. package/sdk/dist/node/gitvault-open-or-create.js.map +1 -0
  38. package/sdk/dist/node/index.d.ts +3 -1
  39. package/sdk/dist/node/index.d.ts.map +1 -1
  40. package/sdk/dist/node/index.js +4 -1
  41. package/sdk/dist/node/index.js.map +1 -1
package/lib/repos.mjs ADDED
@@ -0,0 +1,324 @@
1
+ /**
2
+ * `run402 repos` — vault-only porcelain (repo-first-onramp design D8, task 2.6).
3
+ *
4
+ * CLI + OpenClaw ONLY — no MCP tool exists for this family, and none should
5
+ * be added. documentation.md's gitvault row records the law:
6
+ * "Mutating verbs are CLI-only by design (immutable generations with no
7
+ * undo, the one-shot recovery receipt, ..., destructive prune, owner+step-up
8
+ * policy)." `create` mints a vault's one-shot recovery receipt; `delete` is
9
+ * destructive. `list` is read-only and could in principle get an MCP tool
10
+ * later, but ships alongside its two siblings here rather than splitting a
11
+ * three-verb family across two client surfaces on day one.
12
+ *
13
+ * `create` composes provision + vault ALLOCATE (not lazy — the whole point
14
+ * of this command is a repo that exists the moment it returns) + remote
15
+ * scaffold, with ZERO deploy ceremony: no manifest, no plan, no release.
16
+ * This is D1 (`origin` claimed additively) and D4's `gitvault.init` primitive
17
+ * end to end — `repos create` adds no protocol behavior of its own, only
18
+ * argument parsing and output shaping (the architectural law every shim in
19
+ * this repo follows).
20
+ *
21
+ * `list` is the org's vault-bearing projects, cross-referenced CLIENT-SIDE:
22
+ * list the org's projects, then read each one's gitvault status. There is no
23
+ * bulk "vaults by org" gateway read yet (rung 2 territory), so this is
24
+ * sequential N+1 — fine for a one-shot CLI call against a person's or
25
+ * agent's own project count, not something to build a server round-trip
26
+ * budget around. A project whose vault status cannot be read is skipped
27
+ * silently rather than failing the whole listing.
28
+ *
29
+ * `delete` refuses while the vault holds any admitted generation unless
30
+ * --force is passed, after naming exactly what would be lost (repo id,
31
+ * generation count, encrypted-source byte count). It then calls the SAME
32
+ * `projects.delete` primitive `run402 projects delete` uses — --force here
33
+ * IS the explicit confirmation; there is no second --confirm to pass.
34
+ */
35
+ import { getSdk } from "./sdk.mjs";
36
+ import { reportSdkError, fail } from "./sdk-errors.mjs";
37
+ import { withAutoApprove } from "./operator.mjs";
38
+ import { allowanceAuthHeaders, isCoreApiTarget } from "./config.mjs";
39
+ import { loadLiveControlPlaneSession } from "../core-dist/control-plane-session.js";
40
+ import { resolveOrgId, resolveOwningOrgId } from "./org-context.mjs";
41
+ import { nextAction } from "./next-actions.mjs";
42
+ import { printKeystoreLocation } from "./gitvault.mjs";
43
+ import {
44
+ normalizeArgv,
45
+ hasHelp,
46
+ assertKnownFlags,
47
+ flagValue,
48
+ requirePositionalCount,
49
+ resolveProjectSelector,
50
+ failUnknownSubcommand,
51
+ } from "./argparse.mjs";
52
+
53
+ export const HELP = `run402 repos — vault-only hosted encrypted repos, zero deploy ceremony
54
+
55
+ Usage:
56
+ run402 repos create <name> [--org <org_id>] [--dir <path>] [--tier <tier>]
57
+ run402 repos list [--org <org_id>]
58
+ run402 repos delete <project_id> [--force]
59
+
60
+ Subcommands:
61
+ create Provision a project, ALLOCATE its vault (mints key material and a
62
+ one-shot recovery receipt), and scaffold the run402 remote —
63
+ origin when free, run402 when taken (D1). No deploy plan, no
64
+ release, nothing deployed: the vault-only track (design D8), for a
65
+ project that only ever hosts encrypted source.
66
+ list The organization's vault-bearing projects — those with an
67
+ allocated vault, whether or not they have ever deployed. Not
68
+ every project in the org; ones with no vault are omitted.
69
+ delete Delete the project and everything in it (database, functions,
70
+ subdomains, mailbox, secrets). REFUSES while the vault holds any
71
+ admitted generation unless --force is passed — this is
72
+ irreversible and destroys the vault's entire encrypted history
73
+ along with everything else.
74
+
75
+ Options:
76
+ --org <org_id> create/list: the owning organization. create resolves it
77
+ the same way 'projects provision' does when omitted
78
+ (cold-start); list requires resolving one — pass it, or
79
+ select an active org first with 'run402 org use <id>'.
80
+ --dir <path> create: the working tree to scaffold (default: cwd). Not
81
+ a git repository yet? One is created — 'repos create' is
82
+ a from-a-directory-to-a-hosted-repo verb by definition,
83
+ the same way 'gh repo create --source=.' is.
84
+ --tier <tier> create: project tier (default: prototype)
85
+ --idempotency-key <key>
86
+ create: re-running with the same key resolves to the
87
+ same project instead of creating a second one (default:
88
+ derived from the name)
89
+ --force delete: proceed even though the vault holds generations
90
+ that would be permanently and irrecoverably lost
91
+ --json No-op: stdout is already JSON.
92
+
93
+ There is no separate gitvault price: bytes count against the same
94
+ organization-pooled storage budget every project already has.
95
+ `;
96
+
97
+ const CREATE_VALUE_FLAGS = ["--org", "--dir", "--tier", "--idempotency-key"];
98
+ const LIST_VALUE_FLAGS = ["--org"];
99
+ const DELETE_VALUE_FLAGS = ["--project"];
100
+
101
+ function validateProjectName(name) {
102
+ if (name === "") {
103
+ fail({
104
+ code: "BAD_PROJECT_NAME",
105
+ message: "the repo name must not be empty.",
106
+ details: { field: "name" },
107
+ });
108
+ }
109
+ if (name.length > 128) {
110
+ fail({
111
+ code: "BAD_PROJECT_NAME",
112
+ message: `the repo name must be 1-128 characters, got ${name.length}.`,
113
+ details: { field: "name", length: name.length, max: 128 },
114
+ });
115
+ }
116
+ // eslint-disable-next-line no-control-regex
117
+ if (/[\x00-\x1f\x7f]/.test(name)) {
118
+ fail({
119
+ code: "BAD_PROJECT_NAME",
120
+ message: "the repo name contains control characters (newline, tab, etc).",
121
+ details: { field: "name" },
122
+ });
123
+ }
124
+ }
125
+
126
+ async function create(args) {
127
+ const a = normalizeArgv(args);
128
+ assertKnownFlags(a, [...CREATE_VALUE_FLAGS, "--help", "-h"], CREATE_VALUE_FLAGS);
129
+ const positionals = requirePositionalCount(a, CREATE_VALUE_FLAGS, {
130
+ min: 1, max: 1, command: "run402 repos create <name>", missing: "run402 repos create <name>: a repo name is required",
131
+ });
132
+ const name = positionals[0];
133
+ validateProjectName(name);
134
+
135
+ const dir = flagValue(a, "--dir") ?? process.cwd();
136
+ const tier = flagValue(a, "--tier") ?? "prototype";
137
+ const idempotencyKey = flagValue(a, "--idempotency-key") ?? `repos-create:${name}`;
138
+ // `optional: true` — a fresh wallet with no org yet is the cold-start path
139
+ // `projects provision` itself supports; `--org` targets an existing one.
140
+ const orgId = await resolveOrgId(a, { cmd: "repos", optional: true });
141
+
142
+ // Same NO_ALLOWANCE gate `projects provision` and `up --repo-only` use:
143
+ // provisioning bypasses no action-graph here (there is none to bypass —
144
+ // this command never touches sdk.up()), so surface the actionable guidance
145
+ // directly rather than an opaque auth error from the gateway.
146
+ if (!isCoreApiTarget() && !loadLiveControlPlaneSession()) allowanceAuthHeaders("/projects/v1");
147
+
148
+ let provisioned;
149
+ try {
150
+ provisioned = await withAutoApprove(() =>
151
+ getSdk().projects.provision({ tier, name, ...(orgId ? { orgId } : {}), idempotencyKey }),
152
+ );
153
+ } catch (err) {
154
+ reportSdkError(err);
155
+ return;
156
+ }
157
+
158
+ const effectiveOrgId = orgId ?? (await resolveOwningOrgId(provisioned.project_id));
159
+ if (!effectiveOrgId) {
160
+ fail({
161
+ code: "GITVAULT_ORG_UNRESOLVED",
162
+ message: `Provisioned project ${provisioned.project_id}, but could not resolve its owning organization to allocate the vault.`,
163
+ hint: `Pass --org <org_id> next time, or finish by hand: run402 gitvault init --project ${provisioned.project_id} --org <org_id>`,
164
+ details: { project_id: provisioned.project_id },
165
+ next_actions: [
166
+ nextAction("edit_request", {
167
+ command: `run402 gitvault init --project ${provisioned.project_id} --org <org_id>`,
168
+ why: "the owning org could not be resolved automatically after provisioning",
169
+ }),
170
+ ],
171
+ });
172
+ }
173
+
174
+ try {
175
+ const vault = await getSdk().gitvault.init({
176
+ org_id: effectiveOrgId,
177
+ project_id: provisioned.project_id,
178
+ repo_dir: dir,
179
+ });
180
+ const out = {
181
+ project_id: provisioned.project_id,
182
+ repo_id: vault.repo_id,
183
+ remote: vault.remote,
184
+ deduplicated: vault.deduplicated,
185
+ genesis_sha256: vault.genesis_sha256,
186
+ recovery_receipt: vault.recovery_receipt,
187
+ terminal_loss_statement: vault.terminal_loss_statement,
188
+ deployed: false,
189
+ };
190
+ console.log(JSON.stringify(out, null, 2));
191
+ console.error(
192
+ `project ${provisioned.project_id} provisioned; vault ${vault.repo_id} ` +
193
+ (vault.deduplicated ? "already existed — nothing was re-allocated" : `allocated (genesis ${vault.genesis_sha256})`),
194
+ );
195
+ if (vault.remote) console.error(`remote '${vault.remote.name}' -> ${vault.remote.url} (${vault.remote.reason})`);
196
+ console.error("");
197
+ console.error(vault.terminal_loss_statement);
198
+ await printKeystoreLocation();
199
+ console.error("");
200
+ console.error("nothing was deployed — this is a vault-only repo. Deploy later with `run402 deploy apply`, or never.");
201
+ } catch (err) {
202
+ reportSdkError(err);
203
+ }
204
+ }
205
+
206
+ async function list(args) {
207
+ const a = normalizeArgv(args);
208
+ assertKnownFlags(a, [...LIST_VALUE_FLAGS, "--help", "-h"], LIST_VALUE_FLAGS);
209
+ requirePositionalCount(a, LIST_VALUE_FLAGS, {
210
+ min: 0, max: 0, command: "run402 repos list", missing: "",
211
+ });
212
+ const orgId = await resolveOrgId(a, { cmd: "repos" });
213
+
214
+ let projects;
215
+ try {
216
+ const result = await getSdk().projects.list({ org: orgId });
217
+ projects = Array.isArray(result.projects) ? result.projects : [];
218
+ } catch (err) {
219
+ reportSdkError(err);
220
+ return;
221
+ }
222
+
223
+ // N+1 by necessity (see module doc): no bulk vault-by-org read exists yet.
224
+ // A project whose vault status cannot be read (unreachable gateway for
225
+ // THIS project, revoked keys, ...) is skipped rather than failing the
226
+ // whole listing — the same "read, never fail the batch" discipline other
227
+ // best-effort list augmentations in this CLI follow.
228
+ const repos = [];
229
+ for (const p of projects) {
230
+ let status;
231
+ try {
232
+ status = await getSdk().gitvault.status({ project_id: p.id });
233
+ } catch {
234
+ continue;
235
+ }
236
+ if (!status.vault) continue;
237
+ repos.push({
238
+ project_id: p.id,
239
+ name: p.name,
240
+ repo_id: status.repo_id,
241
+ gitvault_policy: status.vault.gitvault_policy,
242
+ admitted_generations: Number(status.vault.admitted_generations ?? "0"),
243
+ source_bytes: Number(status.vault.storage?.source_bytes ?? "0"),
244
+ genesis_admitted_at: status.vault.genesis_admitted_at,
245
+ });
246
+ }
247
+ console.log(JSON.stringify({ org_id: orgId, repos }, null, 2));
248
+ console.error(`${repos.length} vault-bearing project(s) of ${projects.length} total in this organization`);
249
+ }
250
+
251
+ async function del(args) {
252
+ const a = normalizeArgv(args);
253
+ assertKnownFlags(a, [...DELETE_VALUE_FLAGS, "--force", "--help", "-h"], DELETE_VALUE_FLAGS);
254
+ const { projectId, rest } = resolveProjectSelector(a, { rejectBareFirst: true });
255
+ requirePositionalCount(rest, [], { min: 0, max: 0, command: "run402 repos delete <project_id>", missing: "" });
256
+ const force = a.includes("--force");
257
+
258
+ let status;
259
+ try {
260
+ status = await getSdk().gitvault.status({ project_id: projectId });
261
+ } catch (err) {
262
+ reportSdkError(err);
263
+ return;
264
+ }
265
+ const vault = status.vault;
266
+ const admittedGenerations = vault ? Number(vault.admitted_generations ?? "0") : 0;
267
+ const sourceBytes = vault ? Number(vault.storage?.source_bytes ?? "0") : 0;
268
+
269
+ if (vault && admittedGenerations > 0 && !force) {
270
+ fail({
271
+ code: "CONFIRMATION_REQUIRED",
272
+ message:
273
+ `vault ${status.repo_id} for project ${projectId} holds ${admittedGenerations} admitted generation(s) ` +
274
+ `(${sourceBytes} bytes of encrypted source, genesis ${vault.genesis_admitted_at ?? "unknown"}) — ` +
275
+ "deleting the project destroys its entire encrypted history irrecoverably, along with its database, " +
276
+ "functions, subdomains, mailbox, and secrets. Re-run with --force to proceed.",
277
+ details: {
278
+ project_id: projectId,
279
+ repo_id: status.repo_id,
280
+ admitted_generations: admittedGenerations,
281
+ source_bytes: sourceBytes,
282
+ genesis_admitted_at: vault.genesis_admitted_at,
283
+ destroys: ["vault_history", "schemas", "functions", "subdomains", "mailbox", "blobs", "secrets"],
284
+ },
285
+ });
286
+ }
287
+
288
+ try {
289
+ await getSdk().projects.delete(projectId);
290
+ console.log(JSON.stringify({
291
+ project_id: projectId,
292
+ deleted: true,
293
+ vault: vault ? { repo_id: status.repo_id, admitted_generations: admittedGenerations, source_bytes: sourceBytes } : null,
294
+ }, null, 2));
295
+ } catch (err) {
296
+ reportSdkError(err);
297
+ }
298
+ }
299
+
300
+ export async function run(sub, args) {
301
+ const argv = Array.isArray(args) ? args : [];
302
+ if (!sub || hasHelp([sub, ...argv])) {
303
+ console.log(HELP);
304
+ process.exit(0);
305
+ }
306
+ switch (sub) {
307
+ case "create": {
308
+ await create(argv);
309
+ break;
310
+ }
311
+ case "list": {
312
+ await list(argv);
313
+ break;
314
+ }
315
+ case "delete": {
316
+ await del(argv);
317
+ break;
318
+ }
319
+ default:
320
+ failUnknownSubcommand("repos", sub, {
321
+ hint: "Run `run402 repos --help` for usage.",
322
+ });
323
+ }
324
+ }
package/lib/up.mjs CHANGED
@@ -4,11 +4,13 @@ import { getSdk } from "./sdk.mjs";
4
4
  import { reportSdkError, fail } from "./sdk-errors.mjs";
5
5
  import { assertKnownFlags, flagValue, normalizeArgv, positionalArgs } from "./argparse.mjs";
6
6
  import { createUpdateCheckScheduler, emitUpdateNotice } from "./update-check.mjs";
7
+ import { allowanceAuthHeaders, isCoreApiTarget } from "./config.mjs";
8
+ import { loadLiveControlPlaneSession } from "../core-dist/control-plane-session.js";
7
9
 
8
10
  const HELP = `run402 up — Provision/link/deploy the current app
9
11
 
10
12
  Usage:
11
- run402 up [repo-or-path] [--name <name>] [--project <id>] [--manifest <path>] [--dir <path>] [--tier <tier>] [-y|--yes] [--check|--print-spec|--plan|--require-plan <id>] [--verify] [--human|--json-stream] [--quiet]
13
+ run402 up [repo-or-path] [--name <name>] [--project <id>] [--manifest <path>] [--dir <path>] [--tier <tier>] [-y|--yes] [--check|--print-spec|--plan|--require-plan <id>|--repo-only] [--verify] [--human|--json-stream] [--quiet]
12
14
  run402 up verify [repo-or-path] [--project <id>] [--manifest <path>] [--dir <path>] [--human|--json-stream]
13
15
 
14
16
  Options:
@@ -49,6 +51,19 @@ Options:
49
51
  --no-propagation-wait
50
52
  Return propagation_pending immediately when the edge is
51
53
  still settling.
54
+ --repo-only Provision + scaffold the run402 remote + first push,
55
+ and stop there — no deploy. The vault-only track
56
+ (D8), composed through up instead of run402 repos
57
+ create. Incompatible with --check/--print-spec/--plan/
58
+ --require-plan/--verify.
59
+
60
+ Repo composition (D4): against a local directory (not a git URL source), up
61
+ composes git init (only when not already a repository) + provision + a
62
+ run402 remote scaffold (D1: claims origin when free, falls back to run402)
63
+ + a first gitvault push — one command, the fly-launch shape. The scaffold
64
+ and first push are best-effort: a git or vault hiccup never turns an
65
+ otherwise-successful deploy into a failure, and is reported under
66
+ result.repo (default apply) or result (--repo-only) instead.
52
67
  --json Emit one final JSON object on stdout (default; compatibility no-op).
53
68
  --human Emit the legacy human success/blocking summary on stdout.
54
69
  --json-stream Emit NDJSON progress events on stdout and a final result event.
@@ -70,6 +85,7 @@ Examples:
70
85
  run402 up --manifest run402.deploy.ts --check
71
86
  run402 up --manifest run402.deploy.ts --plan
72
87
  run402 up --manifest run402.deploy.ts --require-plan pln_...
88
+ run402 up --repo-only -y --json
73
89
  `;
74
90
 
75
91
  const VERIFY_HELP = `run402 up verify — Rerun manifest HTTP verification (verify.http[])
@@ -132,6 +148,7 @@ export async function run(args = []) {
132
148
  "--json",
133
149
  "--human",
134
150
  "--json-stream",
151
+ "--repo-only",
135
152
  ],
136
153
  [
137
154
  "--name",
@@ -242,42 +259,81 @@ export async function run(args = []) {
242
259
  details: { flag: "--require-plan" },
243
260
  });
244
261
  }
262
+ const repoOnly = parsed.includes("--repo-only");
263
+ if (repoOnly && (dryRun || isNonApplyingMode(mode) || isApplyReviewedMode(mode) || verifyEdge)) {
264
+ fail({
265
+ code: "BAD_USAGE",
266
+ message: "--repo-only cannot be combined with --dry-run, --check, --print-spec, --plan, --require-plan, or --verify.",
267
+ details: { flag: "--repo-only" },
268
+ });
269
+ }
245
270
  const allowWarningCodes = collectRepeatedValues(parsed, "--allow-warning");
246
271
  const updateScheduler = createUpdateCheckScheduler({
247
272
  command: ["run402", "up", ...parsed],
248
273
  });
249
274
  emitUpdateNotice(updateScheduler.cachedNotice, { jsonStream, quiet });
250
275
 
276
+ // D4 (repo-first-onramp task 2.4): `up` composes git init + provision +
277
+ // remote scaffold + first push (+ deploy unless --repo-only) — the
278
+ // `fly launch` shape. Scoped to the plain local-directory apply path (no
279
+ // dry-run, no non-applying mode, and no remote git-URL source — those
280
+ // clone into somewhere ephemeral, so there is no local working tree here
281
+ // to scaffold a remote onto).
282
+ const composeRepo = !dryRun && mode === undefined && !looksLikeGitRemoteUrl(source);
283
+ const workDir = flagValue(parsed, "--dir") ?? (source && !looksLikeGitRemoteUrl(source) ? source : undefined) ?? process.cwd();
284
+
251
285
  try {
252
286
  const sdk = getSdk();
253
- const result = await sdk.up({
254
- source,
255
- name: flagValue(parsed, "--name") ?? undefined,
256
- projectId: flagValue(parsed, "--project") ?? undefined,
257
- manifest: flagValue(parsed, "--manifest") ?? undefined,
258
- dir: flagValue(parsed, "--dir") ?? undefined,
259
- tier,
260
- idempotencyKey: flagValue(parsed, "--idempotency-key") ?? undefined,
261
- allowPrune: parsed.includes("--allow-prune") ? true : undefined,
262
- maxSpendUsd,
263
- buildMode,
264
- allowShellBuild: parsed.includes("--allow-shell-build") ? true : undefined,
265
- allowWarnings: parsed.includes("--allow-warnings") ? true : undefined,
266
- allowWarningCodes,
267
- propagationBudgetSeconds,
268
- propagationWait: parsed.includes("--no-propagation-wait") ? false : undefined,
269
- }, {
270
- ...(mode !== undefined ? { mode } : {}),
271
- dryRun,
272
- approval: makeApproval(yes),
273
- onEvent: jsonStream
274
- ? (event) => console.log(JSON.stringify({ type: "action.event", event }))
275
- : quiet
276
- ? undefined
277
- : (event) => {
278
- console.error(JSON.stringify(event));
279
- },
280
- });
287
+ let createdRepository = false;
288
+ if (composeRepo) {
289
+ createdRepository = await gitInitIfNeeded(workDir);
290
+ }
291
+
292
+ let result;
293
+ if (repoOnly) {
294
+ result = await runRepoOnly({ sdk, workDir, createdRepository, opts: parsed, tier, allowWarningCodes, idempotencyKey: flagValue(parsed, "--idempotency-key") ?? undefined });
295
+ } else {
296
+ result = await sdk.up({
297
+ source,
298
+ name: flagValue(parsed, "--name") ?? undefined,
299
+ projectId: flagValue(parsed, "--project") ?? undefined,
300
+ manifest: flagValue(parsed, "--manifest") ?? undefined,
301
+ dir: flagValue(parsed, "--dir") ?? undefined,
302
+ tier,
303
+ idempotencyKey: flagValue(parsed, "--idempotency-key") ?? undefined,
304
+ allowPrune: parsed.includes("--allow-prune") ? true : undefined,
305
+ maxSpendUsd,
306
+ buildMode,
307
+ allowShellBuild: parsed.includes("--allow-shell-build") ? true : undefined,
308
+ allowWarnings: parsed.includes("--allow-warnings") ? true : undefined,
309
+ allowWarningCodes,
310
+ propagationBudgetSeconds,
311
+ propagationWait: parsed.includes("--no-propagation-wait") ? false : undefined,
312
+ }, {
313
+ ...(mode !== undefined ? { mode } : {}),
314
+ dryRun,
315
+ approval: makeApproval(yes),
316
+ onEvent: jsonStream
317
+ ? (event) => console.log(JSON.stringify({ type: "action.event", event }))
318
+ : quiet
319
+ ? undefined
320
+ : (event) => {
321
+ console.error(JSON.stringify(event));
322
+ },
323
+ });
324
+ // The remote scaffold + first push are best-effort ADDITIONS to an
325
+ // already-successful deploy: a git hiccup here must never flip an
326
+ // otherwise-successful `up` into a failure (the same non-fatal
327
+ // discipline `projects provision`'s own fold-in follows).
328
+ if (composeRepo && mode === undefined) {
329
+ const projectId = result?.result?.project_id ?? result?.result?.deploy?.project_id ?? null;
330
+ if (projectId) {
331
+ const repoResult = await composeRepoPushStep({ sdk, workDir, projectId, createdRepository });
332
+ if (result.result) result.result.repo = repoResult;
333
+ }
334
+ }
335
+ }
336
+
281
337
  const edgeWait = verifyEdge
282
338
  ? await attachEdgeVerification(result, {
283
339
  sdk,
@@ -515,6 +571,88 @@ function collectRepeatedValues(args, flag) {
515
571
  return values;
516
572
  }
517
573
 
574
+ // ─── D4 (repo-first-onramp task 2.4): repo composition ───────────────────────
575
+ //
576
+ // `up` composes git init + provision + remote scaffold + first push
577
+ // (+ deploy unless --repo-only) — the `fly launch` shape. A remote git URL
578
+ // source clones into somewhere ephemeral (no local working tree here to
579
+ // scaffold a remote onto), so composition is scoped to the plain
580
+ // local-directory apply path.
581
+
582
+ /** A positional `up` source that names a remote repository rather than a local path. */
583
+ function looksLikeGitRemoteUrl(source) {
584
+ if (!source || typeof source !== "string") return false;
585
+ return /^[a-z][a-z0-9+.-]*:\/\//i.test(source) || /^[^\s@]+@[^\s:]+:/.test(source);
586
+ }
587
+
588
+ /** `git init` only when `dir` is not a repository yet. Returns whether it did. */
589
+ async function gitInitIfNeeded(dir) {
590
+ const { hardenedGit } = await import("#sdk/node");
591
+ try {
592
+ await hardenedGit(dir, ["rev-parse", "--git-dir"]);
593
+ return false;
594
+ } catch {
595
+ await hardenedGit(dir, ["init", "-q", "-b", "main", "."]);
596
+ return true;
597
+ }
598
+ }
599
+
600
+ /**
601
+ * Remote scaffold + first push, against an already-known project. Best-effort
602
+ * in every branch — the same non-fatal discipline `projects provision`'s own
603
+ * fold-in follows (`gitvault-scaffold.mjs`): a git or vault hiccup here must
604
+ * never turn an otherwise-successful `up` into a failure.
605
+ */
606
+ async function composeRepoPushStep({ sdk, workDir, projectId, createdRepository }) {
607
+ const { resolveOwningOrgId } = await import("./org-context.mjs");
608
+ const { scaffoldGitvaultRemote } = await import("./gitvault-scaffold.mjs");
609
+ const orgId = await resolveOwningOrgId(projectId);
610
+ const scaffold = await scaffoldGitvaultRemote({ repoDir: workDir, projectId, orgId: orgId ?? undefined, createRepoIfMissing: false });
611
+ if (createdRepository && scaffold.gitvault) scaffold.gitvault.created_repository = true;
612
+ const out = { ...scaffold, first_push: null, first_push_error: null };
613
+ if (!orgId) {
614
+ out.first_push_error = { code: "GITVAULT_ORG_UNRESOLVED", message: `could not resolve the owning org for ${projectId} — the first push was skipped` };
615
+ return out;
616
+ }
617
+ try {
618
+ let vaultCreated = null;
619
+ const pushed = await sdk.gitvault.push({
620
+ project_id: projectId,
621
+ org_id: orgId,
622
+ repo_dir: workDir,
623
+ onVaultCreated: (created) => { vaultCreated = created; },
624
+ });
625
+ out.first_push = { generation: pushed.generation, form: pushed.form, gitvault_commit: pushed.gitvault_commit, vault_created: vaultCreated };
626
+ } catch (err) {
627
+ out.first_push_error = { code: err?.body?.code ?? err?.code ?? "GITVAULT_PUSH_FAILED", message: err?.message ?? String(err) };
628
+ }
629
+ return out;
630
+ }
631
+
632
+ /**
633
+ * `--repo-only`: the vault-only track composed through `up` — provision +
634
+ * remote scaffold + first push, zero deploy ceremony. Mirrors `run402 repos
635
+ * create`'s own shape (task 2.6); `up --repo-only` is the "I'm already
636
+ * inside `up`'s mental model" entry point to the same outcome.
637
+ */
638
+ async function runRepoOnly({ sdk, workDir, createdRepository, opts, tier, idempotencyKey }) {
639
+ // `sdk.up()`'s action graph auto-approves prerequisites (allowance, tier)
640
+ // for a cold start; calling projects.provision directly bypasses that, so
641
+ // this mirrors the SAME gate `run402 projects provision` itself uses —
642
+ // fail with the actionable NO_ALLOWANCE guidance rather than an opaque
643
+ // auth error from the gateway.
644
+ if (!isCoreApiTarget() && !loadLiveControlPlaneSession()) allowanceAuthHeaders("/projects/v1");
645
+ const name = flagValue(opts, "--name") ?? undefined;
646
+ const provisioned = await sdk.projects.provision({ tier, name, idempotencyKey });
647
+ const repo = await composeRepoPushStep({ sdk, workDir, projectId: provisioned.project_id, createdRepository });
648
+ return {
649
+ action: "up",
650
+ mode: "repo-only",
651
+ dry_run: false,
652
+ result: { project_id: provisioned.project_id, provision: provisioned, repo },
653
+ };
654
+ }
655
+
518
656
  function parsePropagationBudget(args) {
519
657
  const raw = flagValue(args, "--propagation-budget-s");
520
658
  if (raw === null) return undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "run402",
3
- "version": "4.36.1",
3
+ "version": "4.37.1",
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": {
@@ -345,7 +345,7 @@ export declare class TransferFreezeError extends Run402Error {
345
345
  * `initialize_wallet`, plus `operator_approve` (synthesized for WRITE_AUTH).
346
346
  * Tolerates unknown future gateway types via the `(string & {})` fallback.
347
347
  */
348
- export type NextActionType = "retry" | "poll" | "reconcile_payment" | "authenticate" | "submit_payment" | "renew_tier" | "check_usage" | "resume_deploy" | "edit_request" | "edit_migration" | "create_project" | "initialize_wallet" | "deploy" | "operator_approve" | "contact_support";
348
+ export type NextActionType = "retry" | "poll" | "reconcile_payment" | "authenticate" | "submit_payment" | "renew_tier" | "check_usage" | "resume_deploy" | "edit_request" | "edit_migration" | "create_project" | "initialize_wallet" | "deploy" | "operator_approve" | "contact_support" | "gitvault_policy_required";
349
349
  /**
350
350
  * A single advisory "what to do next" entry. Mirrors the gateway's
351
351
  * `next_actions[]` shape (`{ type, method?, path?, auth?, why? }`) extended with
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH,MAAM,MAAM,eAAe,GACvB,kBAAkB,GAClB,mBAAmB,GACnB,cAAc,GACd,gBAAgB,GAChB,WAAW,GACX,eAAe,GACf,uBAAuB,GACvB,qBAAqB,GACrB,aAAa,GACb,cAAc,GACd,iBAAiB,GACjB,kBAAkB,GAClB,4BAA4B,CAAC;AAEjC;;;;;;GAMG;AACH,MAAM,MAAM,gBAAgB,GAAG,cAAc,GAAG,SAAS,CAAC;AAE1D,8BAAsB,WAAY,SAAQ,KAAK;IAC7C;;;;;OAKG;IACH,QAAQ,CAAC,aAAa,EAAG,IAAI,CAAU;IACvC;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAC;IACxC,iFAAiF;IACjF,QAAQ,CAAC,MAA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