run402 4.69.7 → 4.69.8

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.69.7",
2
+ "surface_version": "4.69.8",
3
3
  "verbs": [
4
4
  "repos create",
5
5
  "repos list",
package/lib/repos.mjs CHANGED
@@ -876,10 +876,15 @@ async function createAdopt(projectId, dir, a) {
876
876
  async function createProvision(name, dir, a) {
877
877
  const sdk = getSdk();
878
878
  const tier = flagValue(a, "--tier") ?? "prototype";
879
- const idempotencyKey = flagValue(a, "--idempotency-key") ?? `repos-create:${name}`;
880
879
  // `optional: true` — a fresh wallet with no org yet is the cold-start path
881
880
  // `projects provision` itself supports; `--org` targets an existing one.
882
881
  const orgId = await resolveOrgId(a, { cmd: "repos", optional: true });
882
+ // The idempotency key names the ORG as well as the name: a provision replay
883
+ // is scoped to the wallet, so a key of the name alone answers a second
884
+ // `repos create` in a different org (same directory basename) with the
885
+ // FIRST org's project — and writes a remote URL that mixes the new org id
886
+ // with the old project id.
887
+ const idempotencyKey = flagValue(a, "--idempotency-key") ?? `repos-create:${orgId ?? "org-of-one"}:${name}`;
883
888
 
884
889
  // A genuinely bare machine has no allowance file at all, and the NO_ALLOWANCE
885
890
  // precheck below would refuse before the provision call could ever answer
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "run402",
3
- "version": "4.69.7",
3
+ "version": "4.69.8",
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": {