@promptbook/cli 0.89.0-18 → 0.89.0-19

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/esm/index.es.js CHANGED
@@ -46,7 +46,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
46
46
  * @generated
47
47
  * @see https://github.com/webgptorg/promptbook
48
48
  */
49
- const PROMPTBOOK_ENGINE_VERSION = '0.89.0-18';
49
+ const PROMPTBOOK_ENGINE_VERSION = '0.89.0-19';
50
50
  /**
51
51
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
52
52
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -55,7 +55,7 @@ const PROMPTBOOK_ENGINE_VERSION = '0.89.0-18';
55
55
  /**
56
56
  * Available remote servers for the Promptbook
57
57
  *
58
- * @public exported from `@promptbook/core` <- TODO: !!!! Test that this is really exported
58
+ * @public exported from `@promptbook/core`
59
59
  */
60
60
  const REMOTE_SERVER_URLS = [
61
61
  {
@@ -64,10 +64,8 @@ const REMOTE_SERVER_URLS = [
64
64
  owner: 'AI Web, LLC <legal@ptbk.io> (https://www.ptbk.io/)',
65
65
  isAnonymousModeAllowed: true,
66
66
  urls: [
67
- 'https://s4.ptbk.io/promptbook',
68
- 'https://s3.ptbk.io/promptbook',
69
- 'https://s2.ptbk.io/promptbook',
70
- 'https://s1.ptbk.io/promptbook',
67
+ 'https://s5.ptbk.io/promptbook',
68
+ // Note: Servers 1-4 are not running
71
69
  ],
72
70
  },
73
71
  {
@@ -13556,6 +13554,12 @@ function startRemoteServer(options) {
13556
13554
  response.status(400).send({ error: serializeError(error) });
13557
13555
  }
13558
13556
  });
13557
+ /**
13558
+ * Catch-all handler for unmatched routes
13559
+ */
13560
+ app.use((request, response) => {
13561
+ response.status(404).send(`URL "${request.originalUrl}" was not found on Promptbook server.`);
13562
+ });
13559
13563
  const httpServer = http.createServer(app);
13560
13564
  const server = new Server(httpServer, {
13561
13565
  path: socketioPath,