riverbankcms 0.2.0 → 0.2.2

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,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
- import "../sdk-event-upsert-CTqsrhFT.mjs";
3
- import { t as eventUpsertInputSchema } from "../eventUpsertInputSchema-BUeXa6jk.mjs";
2
+ import "../src-XEJYAKbQ.mjs";
3
+ import "../sdk-event-upsert-BCZUdIrL.mjs";
4
+ import { t as eventUpsertInputSchema } from "../eventUpsertInputSchema-CzMX5BZI.mjs";
4
5
 
5
6
  //#region src/acceptance/matrix-builders.ts
6
7
  const workflow = (scenario, stepId) => ({
@@ -139,7 +140,7 @@ const styleScenario = {
139
140
  capture("current-selection", "currentSelection", "selectionVersion"),
140
141
  "--env=local",
141
142
  "--json"
142
- ])]
143
+ ], { expectedExitCode: 1 })]
143
144
  };
144
145
 
145
146
  //#endregion
@@ -257,7 +258,7 @@ const entryScenario = {
257
258
  "--data",
258
259
  JSON.stringify({
259
260
  excerpt: "Entry created by the installed CLI acceptance workflow.",
260
- body: richText("Acceptance entry body.")
261
+ content: richText("Acceptance entry body.")
261
262
  }),
262
263
  "--env=local",
263
264
  "--json"
@@ -522,7 +523,7 @@ const eventScenario = {
522
523
  const acceptanceTuples = [
523
524
  ["push-config", scratchDryRun([
524
525
  "push-config",
525
- "--env=both",
526
+ "--env=local",
526
527
  "--dry-run",
527
528
  "--json"
528
529
  ])],
@@ -539,7 +540,7 @@ const acceptanceTuples = [
539
540
  ["push", scratchDryRun([
540
541
  "push",
541
542
  "pages",
542
- "--env=both",
543
+ "--env=local",
543
544
  "--dry-run",
544
545
  "--json"
545
546
  ])],
@@ -609,6 +610,7 @@ const acceptanceTuples = [
609
610
  cwd: "nested",
610
611
  output: "non-empty"
611
612
  })],
613
+ ["init", scratchExecute(["init", "--json"], { expectedExitCode: 1 })],
612
614
  ["identifiers backfill", scratchExecute([
613
615
  "identifiers",
614
616
  "backfill",
@@ -690,6 +692,60 @@ const acceptanceTuples = [
690
692
  "--env=both",
691
693
  "--json"
692
694
  ])],
695
+ ["login", scratchExecute([
696
+ "login",
697
+ "--account-env=local",
698
+ "--json"
699
+ ], { expectedExitCode: 1 })],
700
+ ["logout", scratchExecute([
701
+ "logout",
702
+ "--account-env=local",
703
+ "--json"
704
+ ], { expectedExitCode: 1 })],
705
+ ["whoami", scratchExecute([
706
+ "whoami",
707
+ "--account-env=local",
708
+ "--json"
709
+ ], { expectedExitCode: 1 })],
710
+ ["auth revoke", scratchExecute([
711
+ "auth",
712
+ "revoke",
713
+ "--account-env=local",
714
+ "--yes",
715
+ "--json"
716
+ ], { expectedExitCode: 1 })],
717
+ ["sites list", scratchExecute([
718
+ "sites",
719
+ "list",
720
+ "--account-env=local",
721
+ "--json"
722
+ ], { expectedExitCode: 1 })],
723
+ ["sites create", scratchExecute([
724
+ "sites",
725
+ "create",
726
+ "--account-env=local",
727
+ "--name",
728
+ "Acceptance site",
729
+ "--yes",
730
+ "--json"
731
+ ], { expectedExitCode: 1 })],
732
+ ["link", scratchExecute([
733
+ "link",
734
+ "--project",
735
+ ".",
736
+ "--site",
737
+ "550e8400-e29b-41d4-a716-446655440000",
738
+ "--no-preview",
739
+ "--account-env=local",
740
+ "--json"
741
+ ], { expectedExitCode: 1 })],
742
+ ["recover", scratchExecute([
743
+ "recover",
744
+ "--project",
745
+ ".",
746
+ "--account-env=local",
747
+ "--json"
748
+ ], { expectedExitCode: 1 })],
693
749
  ["migrate entries", scratchDryRun([
694
750
  "migrate",
695
751
  "entries",