@mpgd/cli 0.68.0 → 0.70.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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "kitGitSha": "3263fb99465db390c2e0027a3cf7b597cdee45b6",
2
+ "kitGitSha": "1fc86080fee3e7f6089a6ba5d063a892fa8524bb",
3
3
  "kitDirty": false,
4
- "packageVersion": "0.68.0"
4
+ "packageVersion": "0.70.0"
5
5
  }
@@ -8936,6 +8936,9 @@ var maxTextLength = 2048;
8936
8936
  var maxRowKeyLength = maxTextLength + 1 + 9 * maxTextLength;
8937
8937
  var schedulerRetryMs = 60 * secondMs;
8938
8938
  var releaseBackoffMs = 60 * secondMs;
8939
+ var copyStandIn = Object.freeze({
8940
+ copy: Object.freeze({ title: "copy", body: "copy" })
8941
+ });
8939
8942
 
8940
8943
  // node_modules/.cache/mpgd-native-build/adapters/devvit/src/server/redis-notification-store.js
8941
8944
  var defaultPurgeLimit = Number.POSITIVE_INFINITY;
@@ -8952,7 +8955,9 @@ var devvitNotificationProviderCodes = Object.freeze({
8952
8955
  enqueueFailed: "DEVVIT_ENQUEUE_FAILED",
8953
8956
  enqueueRejected: "DEVVIT_ENQUEUE_REJECTED",
8954
8957
  enqueueUnanswered: "DEVVIT_ENQUEUE_UNANSWERED",
8955
- enqueueUnclassified: "DEVVIT_ENQUEUE_UNCLASSIFIED"
8958
+ enqueueUnclassified: "DEVVIT_ENQUEUE_UNCLASSIFIED",
8959
+ /** A bulk `enqueue` counted some of the unnamed recipients as sent and some not, without naming them. */
8960
+ enqueuePartial: "DEVVIT_ENQUEUE_PARTIAL"
8956
8961
  });
8957
8962
  var dailyPeriodSource = String.raw`daily|per[- ]?(?:day|user|app)|today'?s?`;
8958
8963
  var dailyLimitWords = new RegExp(String.raw`\b(?:${dailyPeriodSource})\b`, "iu");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpgd/cli",
3
- "version": "0.68.0",
3
+ "version": "0.70.0",
4
4
  "description": "Gunshi CLI for mpgd-kit starter generation and target workflow orchestration.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -70,10 +70,10 @@
70
70
  "parse5": "7.3.0",
71
71
  "postcss": "8.5.28",
72
72
  "postcss-value-parser": "4.2.0",
73
- "@mpgd/catalog": "0.15.0",
74
- "@mpgd/target-config": "0.24.7",
75
- "@mpgd/phaser-assets": "0.9.1",
76
- "@mpgd/platform": "0.35.0"
73
+ "@mpgd/catalog": "0.15.2",
74
+ "@mpgd/platform": "0.36.0",
75
+ "@mpgd/target-config": "0.24.9",
76
+ "@mpgd/phaser-assets": "0.10.0"
77
77
  },
78
78
  "devDependencies": {
79
79
  "@types/node": "^24.0.0",
@@ -81,19 +81,19 @@
81
81
  "@types/yauzl": "3.4.0",
82
82
  "ttsc": "0.34.2",
83
83
  "typescript": "7.0.2",
84
- "@mpgd/adapter-ait": "0.21.9",
85
- "@mpgd/adapter-browser": "0.12.4",
86
- "@mpgd/adapter-capacitor": "0.19.1",
87
- "@mpgd/adapter-devvit": "0.14.11",
88
- "@mpgd/analytics": "0.5.8",
89
- "@mpgd/bridge": "0.18.1",
90
- "@mpgd/capacitor-play-billing": "0.6.2",
91
- "@mpgd/adapter-verse8": "0.7.20",
92
- "@mpgd/game-runtime": "0.10.1",
93
- "@mpgd/capacitor-storekit": "0.7.1",
94
- "@mpgd/game-services": "0.33.1",
84
+ "@mpgd/adapter-ait": "0.21.11",
85
+ "@mpgd/adapter-browser": "0.12.6",
86
+ "@mpgd/adapter-capacitor": "0.19.3",
87
+ "@mpgd/adapter-devvit": "0.15.0",
88
+ "@mpgd/adapter-verse8": "0.7.22",
89
+ "@mpgd/bridge": "0.19.1",
90
+ "@mpgd/capacitor-play-billing": "0.6.4",
91
+ "@mpgd/capacitor-storekit": "0.7.3",
92
+ "@mpgd/game-runtime": "0.10.3",
93
+ "@mpgd/analytics": "0.5.10",
94
+ "@mpgd/game-services": "0.35.0",
95
95
  "@mpgd/lite-shell": "0.1.0",
96
- "@mpgd/i18n": "0.6.29"
96
+ "@mpgd/i18n": "0.6.31"
97
97
  },
98
98
  "main": "./dist/index.js",
99
99
  "types": "./dist/index.d.ts",
@@ -125,9 +125,28 @@ export function createStarterWorkerNotificationBackend(
125
125
  storage: createNotificationRuntimeStorage({ storage: platform.storage }),
126
126
  // This target's entry in the Worker's registry, or none when the Worker does not serve it.
127
127
  async loadRegistryEntry() {
128
- const { providers, targets } = await client.getProviders();
129
- const id = targets[platform.configTarget];
130
- return id === undefined ? undefined : providers.find((entry) => entry.provider === id);
128
+ const { providers, targets, unreadable = [] } = await client.getProviders();
129
+ const id = Object.hasOwn(targets, platform.configTarget) ? targets[platform.configTarget] : undefined;
130
+ if (id === undefined) {
131
+ return undefined;
132
+ }
133
+ const entry = providers.find((candidate) => candidate.provider === id);
134
+ if (entry !== undefined) {
135
+ return entry;
136
+ }
137
+ // An entry the client could not read: a failed load, which the runtime
138
+ // reports, running without the comparison until the next start. An
139
+ // unreadable entry without an id may be this one too.
140
+ const left = unreadable.find((skipped) => skipped.provider === id)
141
+ ?? unreadable.find((skipped) => skipped.provider === undefined);
142
+ if (left !== undefined) {
143
+ throw new Error(
144
+ `[notifications] the game-services registry entry for provider ${id} (${platform.configTarget}) `
145
+ + `cannot be read: ${left.issue}`,
146
+ );
147
+ }
148
+ // The registry lists no entry for the provider at all.
149
+ return undefined;
131
150
  },
132
151
  onError(error) {
133
152
  console.error('[notifications]', error);