@safetech/inheriti-cli 0.0.16-dev.0 → 0.0.18-dev.0

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/dist/main.js CHANGED
@@ -77672,6 +77672,8 @@ function automationRuntimeInstallInstructions(release2) {
77672
77672
  const packageSpec = `@safetech/inheriti-cli@${release2.cliVersion}`;
77673
77673
  return {
77674
77674
  packageSpec,
77675
+ linuxHost: `npm install --engine-strict --global ${packageSpec} \\
77676
+ && test "$(inheriti --version)" = '${release2.cliVersion}'`,
77675
77677
  prerequisite: "Add to your application's Dockerfile. The build needs npm, and the final image needs a Node.js runtime. npm checks the published package's engines metadata:",
77676
77678
  dockerfile: `RUN npm install --engine-strict --global ${packageSpec} \\
77677
77679
  && test "$(inheriti --version)" = '${release2.cliVersion}'`,
@@ -164317,6 +164319,21 @@ async function login(context, terminal) {
164317
164319
  if (await context.sessions.load()) await context.keyVault?.clear();
164318
164320
  const callbackUrl = await waitForCallback(context, terminal);
164319
164321
  await context.core.auth.completeAuthorizationCode(callbackUrl);
164322
+ if (context.keyOwner === "Organisation") {
164323
+ try {
164324
+ await context.core.listOrganizations();
164325
+ } catch (error2) {
164326
+ if (error2?.status === 403 && error2.code === "integration_tester_required") {
164327
+ try {
164328
+ await context.core.auth.clear();
164329
+ } finally {
164330
+ await context.sessions.clear();
164331
+ }
164332
+ throw new Error("integration_tester_required");
164333
+ }
164334
+ throw error2;
164335
+ }
164336
+ }
164320
164337
  if (!await context.sessions.load()) throw new SessionStoreUnreadable("session_file_unreadable");
164321
164338
  terminal.write("Signed in.");
164322
164339
  return 0;
@@ -173807,6 +173824,7 @@ var RECONSTRUCTION_MESSAGES = {
173807
173824
  unexpected_ssdp_v2_worker_response: "The local SSDP+ reconstruction worker returned an invalid response."
173808
173825
  };
173809
173826
  var MESSAGES = {
173827
+ integration_tester_required: "You are not an integration tester. Contact developer support.",
173810
173828
  operator_not_signed_in: "Not signed in. Run `inheriti login` first.",
173811
173829
  business_context_required: "Set business: true in the CLI configuration to use organizations.",
173812
173830
  automation_disabled: "Automation is unavailable.",
@@ -174522,6 +174540,8 @@ async function automationManage(context, configuration, terminal, signal, argv)
174522
174540
  }
174523
174541
  const instructions = automationRuntimeInstallInstructions(await operations.getVerifiedGithubRelease());
174524
174542
  terminal.write(`Verified Inheriti CLI runtime: ${instructions.packageSpec}`);
174543
+ terminal.write(`For a plain Linux EC2 instance, run on the instance with permissions for a system-wide npm installation. npm checks the package's Node.js engines metadata; confirm the systemd run-as user can execute inheriti:
174544
+ ${instructions.linuxHost}`);
174525
174545
  terminal.write(`${instructions.prerequisite}
174526
174546
  ${instructions.dockerfile}`);
174527
174547
  terminal.write(instructions.instruction);
@@ -176034,10 +176054,10 @@ Replace nonsecret trust fields using the same provider fields as create. Reverif
176034
176054
  Print copyable GitHub Actions YAML for an active plan grant and verified GitHub connection. Find ASSET.FIELD in the plan Data tab. The generated command only checks that the injected value is present. The Action reference and CLI version come from Business's verified release; if unavailable, no workflow is printed.`,
176035
176055
  "automations runtime": `Usage: inheriti automations runtime install-instructions
176036
176056
 
176037
- Print the exact verified CLI package version and Dockerfile instruction for an ECS or Cloud Run container. The version comes from the configured Business API. Prompts for sign-in and Organisation selection when needed; fails if no verified release is available.`,
176057
+ Print the exact verified CLI package version and installation commands for a Linux EC2 instance or an ECS/Cloud Run container. The version comes from Inheriti\xAE Business. Prompts for sign-in and Organisation selection when needed; fails if no verified release is available.`,
176038
176058
  "automations runtime install-instructions": `Usage: inheriti automations runtime install-instructions
176039
176059
 
176040
- Print the exact verified CLI package version and Dockerfile instruction for an ECS or Cloud Run container. The version comes from the configured Business API. Prompts for sign-in and Organisation selection when needed; fails if no verified release is available.`,
176060
+ Print the exact verified CLI package version and installation commands for a Linux EC2 instance or an ECS/Cloud Run container. The version comes from Inheriti\xAE Business. Prompts for sign-in and Organisation selection when needed; fails if no verified release is available.`,
176041
176061
  "secrets publish": `Usage: inheriti secrets publish <aws|google> [OPTIONS]
176042
176062
 
176043
176063
  Optional one-time copy for existing cloud-store consumers; use secrets exec for direct Inheriti runtime access. After publication, reads use provider IAM. Plan changes or revocation do not update or delete the copy; there is no automatic synchronization or rotation. Preview cloud destinations by default. Use inheriti help secrets publish aws or inheriti help secrets publish google for provider options.`,