@sockethub/server 5.0.0-alpha.14 → 5.0.0-alpha.16

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.
@@ -5,10 +5,19 @@ declare class ProcessManager {
5
5
  private readonly parentSecret1;
6
6
  private readonly parentSecret2;
7
7
  private init;
8
+ private readonly ensureChains;
8
9
  constructor(parentId: string, parentSecret1: string, parentSecret2: string, init: IInitObject);
9
- get(platform: string, actorId: string, sessionId?: string, sessionIp?: string): PlatformInstance;
10
+ get(platform: string, actorId: string, sessionId?: string, sessionIp?: string): Promise<PlatformInstance>;
10
11
  private createPlatformInstance;
12
+ /**
13
+ * ensureProcessNow() yields the event loop while awaiting a dead
14
+ * predecessor's teardown, so two concurrent messages for the same
15
+ * identifier could otherwise both find no live instance and each fork
16
+ * a replacement child. Chain runs per identifier so only one is
17
+ * inspecting or creating that identifier's instance at a time.
18
+ */
11
19
  private ensureProcess;
20
+ private ensureProcessNow;
12
21
  /**
13
22
  * Each platform instance forks a full child process; without an upper
14
23
  * bound, a public instance can be driven into resource exhaustion.
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Parse the `--write-config [path]` flag out of argv. Returns `undefined`
3
+ * when the flag is absent; otherwise the target path, `"-"` for stdout, or
4
+ * `sockethub.config.json` when no path was given. This module deliberately
5
+ * avoids importing the config singleton so writing a fresh config works even
6
+ * when an existing config file in the working directory is broken.
7
+ */
8
+ export declare function parseWriteConfigTarget(argv: Array<string>): string | undefined;
9
+ /**
10
+ * The full default configuration as a JSON document, with a `$schema`
11
+ * reference to the published schema for this version.
12
+ */
13
+ export declare function renderDefaultConfig(): string;
14
+ /**
15
+ * Write the default config to `target` (`"-"` prints to stdout). Refuses to
16
+ * overwrite an existing file. Returns the message to show the user.
17
+ */
18
+ export declare function writeDefaultConfig(target: string): string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sockethub/server",
3
3
  "description": "A polyglot messaging service, server libraries",
4
- "version": "5.0.0-alpha.14",
4
+ "version": "5.0.0-alpha.16",
5
5
  "type": "module",
6
6
  "private": false,
7
7
  "author": "Nick Jennings <nick@silverbucket.net>",
@@ -51,11 +51,11 @@
51
51
  "homepage": "https://sockethub.org",
52
52
  "dependencies": {
53
53
  "@sentry/node": "^10.36.0",
54
- "@sockethub/client": "^5.0.0-alpha.14",
55
- "@sockethub/data-layer": "^1.0.0-alpha.14",
56
- "@sockethub/logger": "^1.0.0-alpha.14",
57
- "@sockethub/schemas": "^3.0.0-alpha.14",
58
- "@sockethub/util": "^1.0.0-alpha.2",
54
+ "@sockethub/client": "^5.0.0-alpha.16",
55
+ "@sockethub/data-layer": "^1.0.0-alpha.16",
56
+ "@sockethub/logger": "^1.0.0-alpha.16",
57
+ "@sockethub/schemas": "^3.0.0-alpha.16",
58
+ "@sockethub/util": "^1.0.0-alpha.4",
59
59
  "chalk": "^5.6.2",
60
60
  "convict": "^6.2.5",
61
61
  "ejs": "^3.1.10",
@@ -86,13 +86,13 @@
86
86
  "web-streams-polyfill": "^3.3.3"
87
87
  },
88
88
  "optionalDependencies": {
89
- "@sockethub/examples": "^1.0.0-alpha.14",
90
- "@sockethub/platform-dummy": "^3.0.0-alpha.14",
91
- "@sockethub/platform-feeds": "^4.0.0-alpha.14",
92
- "@sockethub/platform-irc": "^4.0.0-alpha.14",
93
- "@sockethub/platform-metadata": "^1.0.1-alpha.9",
94
- "@sockethub/platform-xmpp": "^5.0.0-alpha.14"
89
+ "@sockethub/examples": "^1.0.0-alpha.16",
90
+ "@sockethub/platform-dummy": "^3.0.0-alpha.16",
91
+ "@sockethub/platform-feeds": "^4.0.0-alpha.16",
92
+ "@sockethub/platform-irc": "^4.0.0-alpha.16",
93
+ "@sockethub/platform-metadata": "^1.0.1-alpha.11",
94
+ "@sockethub/platform-xmpp": "^5.0.0-alpha.16"
95
95
  },
96
- "gitHead": "4f99b07fc19c9606875621b3f96323fa6e62ae3f",
96
+ "gitHead": "0e0fc020bfee01abea1f9a6b1812ab6414bbdadf",
97
97
  "types": "./dist/index.d.ts"
98
98
  }