run402 4.37.0 → 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.
- package/git-remote-run402.mjs +0 -6
- package/lib/gitvault-scaffold.mjs +0 -14
- package/lib/gitvault.mjs +0 -3
- package/lib/repos.mjs +0 -2
- package/package.json +1 -1
package/git-remote-run402.mjs
CHANGED
|
@@ -189,12 +189,6 @@ async function main(argv) {
|
|
|
189
189
|
} catch {
|
|
190
190
|
// Never let a diagnostic line fail a push that already allocated successfully.
|
|
191
191
|
}
|
|
192
|
-
try {
|
|
193
|
-
const { GITVAULT_ALLOCATION_POLICY_ADVISORY } = await import("./lib/gitvault-scaffold.mjs");
|
|
194
|
-
note(GITVAULT_ALLOCATION_POLICY_ADVISORY);
|
|
195
|
-
} catch {
|
|
196
|
-
// Same rule: advisory only, never fatal.
|
|
197
|
-
}
|
|
198
192
|
note("");
|
|
199
193
|
}
|
|
200
194
|
return result.handle.vault;
|
|
@@ -19,20 +19,6 @@
|
|
|
19
19
|
import { getSdk } from "./sdk.mjs";
|
|
20
20
|
import { resolveOwningOrgId } from "./org-context.mjs";
|
|
21
21
|
|
|
22
|
-
/**
|
|
23
|
-
* The interim allocation→policy advisory (repo-first-onramp D3, stated as an
|
|
24
|
-
* interim). TODAY the platform sets `gitvault_policy: required` at allocation
|
|
25
|
-
* — the decoupling (allocation leaving the policy unset) is design D3's
|
|
26
|
-
* gateway half and ships in a later release (task 3.1). Until it does, every
|
|
27
|
-
* client-side path that allocates a vault prints this line so the policy flip
|
|
28
|
-
* is never a silent side effect of a push or a create. Faithful over flattering:
|
|
29
|
-
* documenting the designed future as the present is the breach; this line is
|
|
30
|
-
* the truth. DELETE this export (and its four call sites) when the gateway
|
|
31
|
-
* decoupling ships.
|
|
32
|
-
*/
|
|
33
|
-
export const GITVAULT_ALLOCATION_POLICY_ADVISORY =
|
|
34
|
-
"note: allocation currently sets gitvault_policy to 'required' — from now on a deploy must present a vaulted capture (produced automatically by `run402 deploy apply` on any machine holding this keystore). Opt out with `run402 gitvault policy grandfathered --reason \"<why>\"`. A later release decouples allocation from the deploy gate (design D3).";
|
|
35
|
-
|
|
36
22
|
/**
|
|
37
23
|
* @param {object} options
|
|
38
24
|
* @param {string} [options.repoDir] Working tree to scaffold. Defaults to `process.cwd()`.
|
package/lib/gitvault.mjs
CHANGED
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
import { readFileSync } from "node:fs";
|
|
20
20
|
import { resolveProjectId } from "./config.mjs";
|
|
21
21
|
import { resolveOwningOrgId } from "./org-context.mjs";
|
|
22
|
-
import { GITVAULT_ALLOCATION_POLICY_ADVISORY } from "./gitvault-scaffold.mjs";
|
|
23
22
|
import { getSdk } from "./sdk.mjs";
|
|
24
23
|
import { reportSdkError, fail } from "./sdk-errors.mjs";
|
|
25
24
|
import {
|
|
@@ -284,7 +283,6 @@ async function init(args) {
|
|
|
284
283
|
);
|
|
285
284
|
if (result.remote) console.error(`remote '${result.remote.name}' -> ${result.remote.url} (${result.remote.reason})`);
|
|
286
285
|
if (remoteSkipped) console.error(`remote not added: ${remoteSkipped}`);
|
|
287
|
-
if (!result.deduplicated) console.error(GITVAULT_ALLOCATION_POLICY_ADVISORY);
|
|
288
286
|
// The recovery receipt is integrity data, not a secret, and it is worth
|
|
289
287
|
// exactly as much as the number of copies you keep. It is persisted into
|
|
290
288
|
// the keystore automatically; say where, because "keep many copies" is
|
|
@@ -428,7 +426,6 @@ async function snapshot(args) {
|
|
|
428
426
|
console.error(`vault allocated (genesis ${created.genesis_sha256}) — one-shot recovery receipt, keep many copies:`);
|
|
429
427
|
console.error(JSON.stringify(created.recovery_receipt));
|
|
430
428
|
await printKeystoreLocation();
|
|
431
|
-
console.error(GITVAULT_ALLOCATION_POLICY_ADVISORY);
|
|
432
429
|
console.error("");
|
|
433
430
|
},
|
|
434
431
|
};
|
package/lib/repos.mjs
CHANGED
|
@@ -40,7 +40,6 @@ import { loadLiveControlPlaneSession } from "../core-dist/control-plane-session.
|
|
|
40
40
|
import { resolveOrgId, resolveOwningOrgId } from "./org-context.mjs";
|
|
41
41
|
import { nextAction } from "./next-actions.mjs";
|
|
42
42
|
import { printKeystoreLocation } from "./gitvault.mjs";
|
|
43
|
-
import { GITVAULT_ALLOCATION_POLICY_ADVISORY } from "./gitvault-scaffold.mjs";
|
|
44
43
|
import {
|
|
45
44
|
normalizeArgv,
|
|
46
45
|
hasHelp,
|
|
@@ -197,7 +196,6 @@ async function create(args) {
|
|
|
197
196
|
console.error("");
|
|
198
197
|
console.error(vault.terminal_loss_statement);
|
|
199
198
|
await printKeystoreLocation();
|
|
200
|
-
if (!vault.deduplicated) console.error(GITVAULT_ALLOCATION_POLICY_ADVISORY);
|
|
201
199
|
console.error("");
|
|
202
200
|
console.error("nothing was deployed — this is a vault-only repo. Deploy later with `run402 deploy apply`, or never.");
|
|
203
201
|
} catch (err) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "run402",
|
|
3
|
-
"version": "4.37.
|
|
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": {
|