@sockethub/platform-irc 4.0.0-alpha.15 → 4.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.
package/dist/index.js CHANGED
@@ -16988,6 +16988,79 @@ var ActivityStreamSchema = {
16988
16988
  type: ObjectTypesSchema
16989
16989
  }
16990
16990
  };
16991
+ // ../schemas/package.json
16992
+ var package_default = {
16993
+ name: "@sockethub/schemas",
16994
+ description: "JSON schema files for validating Sockethub Activity Streams",
16995
+ version: "3.0.0-alpha.16",
16996
+ type: "module",
16997
+ private: false,
16998
+ author: "Nick Jennings <nick@silverbucket.net>",
16999
+ license: "MIT",
17000
+ publishConfig: {
17001
+ access: "public"
17002
+ },
17003
+ main: "dist/index.js",
17004
+ exports: {
17005
+ ".": {
17006
+ types: "./dist/index.d.ts",
17007
+ import: "./dist/index.js",
17008
+ default: "./dist/index.js"
17009
+ },
17010
+ "./context": {
17011
+ types: "./dist/context.d.ts",
17012
+ import: "./dist/context.js",
17013
+ default: "./dist/context.js"
17014
+ },
17015
+ "./object-types": {
17016
+ types: "./dist/object-types.d.ts",
17017
+ import: "./dist/object-types.js",
17018
+ default: "./dist/object-types.js"
17019
+ },
17020
+ "./schemas/json/sockethub-config.json": {
17021
+ default: "./dist/schemas/json/sockethub-config.json"
17022
+ }
17023
+ },
17024
+ files: [
17025
+ "dist/"
17026
+ ],
17027
+ engines: {
17028
+ node: ">=20"
17029
+ },
17030
+ keywords: [
17031
+ "sockethub",
17032
+ "sockethub schema",
17033
+ "activity streams",
17034
+ "activity objects",
17035
+ "sockethub platforms"
17036
+ ],
17037
+ repository: {
17038
+ type: "git",
17039
+ url: "git+https://github.com/sockethub/sockethub.git",
17040
+ directory: "packages/schemas"
17041
+ },
17042
+ homepage: "https://github.com/sockethub/sockethub/tree/master/packages/schemas",
17043
+ devDependencies: {
17044
+ "@types/bun": "latest"
17045
+ },
17046
+ scripts: {
17047
+ build: "bun ./scripts/export-json-schema.ts && bun ./scripts/export-canonical-assets.ts && bun build src/index.ts src/object-types.ts --outdir dist --target node --format esm --sourcemap=external && bun build src/context.ts src/activity-stream-helper.ts --outdir dist --target browser --format esm --sourcemap=external",
17048
+ clean: "rm -rf dist",
17049
+ "clean:deps": "rm -rf node_modules"
17050
+ },
17051
+ dependencies: {
17052
+ ajv: "^8.17.1",
17053
+ "ajv-formats": "^2.1.1",
17054
+ "ajv-formats-draft2019": "^1.6.1"
17055
+ },
17056
+ gitHead: "1a1a01ffe7b9d356aacfc4ae583d553e5df6f97d",
17057
+ types: "./dist/index.d.ts"
17058
+ };
17059
+
17060
+ // ../schemas/src/schema-id.ts
17061
+ function versionedSchemaId(id, version) {
17062
+ return id.replace("/v/", `/${version}/`);
17063
+ }
16991
17064
 
16992
17065
  // ../schemas/src/schemas/sockethub-config.ts
16993
17066
  var SockethubConfigSchema = {
@@ -17002,11 +17075,13 @@ var SockethubConfigSchema = {
17002
17075
  },
17003
17076
  examples: {
17004
17077
  type: "boolean",
17005
- default: true
17078
+ default: true,
17079
+ description: "Enable the examples pages served at [host]:[port]/examples"
17006
17080
  },
17007
17081
  info: {
17008
17082
  type: "boolean",
17009
- default: false
17083
+ default: false,
17084
+ description: "Display Sockethub runtime information"
17010
17085
  },
17011
17086
  logging: {
17012
17087
  type: "object",
@@ -17033,6 +17108,7 @@ var SockethubConfigSchema = {
17033
17108
  items: {
17034
17109
  type: "string"
17035
17110
  },
17111
+ description: "Platform packages to load",
17036
17112
  default: [
17037
17113
  "@sockethub/platform-dummy",
17038
17114
  "@sockethub/platform-feeds",
@@ -17043,6 +17119,8 @@ var SockethubConfigSchema = {
17043
17119
  },
17044
17120
  packageConfig: {
17045
17121
  type: "object",
17122
+ default: {},
17123
+ description: "Per-platform config keyed by package name, validated against " + "each platform's config schema and forwarded to its child process",
17046
17124
  properties: {
17047
17125
  "@sockethub/platform-dummy": {
17048
17126
  type: "object",
@@ -17152,7 +17230,8 @@ var SockethubConfigSchema = {
17152
17230
  maxConnectionsPerIp: {
17153
17231
  type: "number",
17154
17232
  minimum: 0,
17155
- default: 0
17233
+ default: 0,
17234
+ description: "Maximum concurrent socket connections per client IP. " + "The per-event rate limiter is keyed by socket id, so " + "without a connection cap a client can bypass it by " + "opening more sockets. 0 disables the cap."
17156
17235
  }
17157
17236
  }
17158
17237
  },
@@ -17163,7 +17242,8 @@ var SockethubConfigSchema = {
17163
17242
  maxPlatformInstances: {
17164
17243
  type: "number",
17165
17244
  minimum: 0,
17166
- default: 0
17245
+ default: 0,
17246
+ description: "Upper bound on concurrently running platform instances " + "(child processes). Each persistent-platform actor forks " + "its own process, so an unbounded count is a resource " + "exhaustion risk on public instances. 0 disables the cap."
17167
17247
  }
17168
17248
  }
17169
17249
  },
@@ -17228,7 +17308,8 @@ var SockethubConfigSchema = {
17228
17308
  properties: {
17229
17309
  origin: {
17230
17310
  type: "string",
17231
- default: "*"
17311
+ default: "*",
17312
+ description: "Allowed CORS origin(s) for socket.io connections " + "and the HTTP actions endpoint. '*' allows any " + "website to connect visitors' browsers to this " + "instance; public deployments should set an " + "explicit origin or comma-separated list of " + "origins."
17232
17313
  }
17233
17314
  }
17234
17315
  }
@@ -17240,7 +17321,8 @@ var SockethubConfigSchema = {
17240
17321
  properties: {
17241
17322
  enabled: {
17242
17323
  type: "boolean",
17243
- default: false
17324
+ default: false,
17325
+ description: "Enable the HTTP actions endpoint"
17244
17326
  },
17245
17327
  path: {
17246
17328
  type: "string",
@@ -17293,6 +17375,7 @@ var SockethubConfigSchema = {
17293
17375
  }
17294
17376
  }
17295
17377
  };
17378
+ var SockethubConfigSchemaId = versionedSchemaId(SockethubConfigSchema.$id, package_default.version);
17296
17379
 
17297
17380
  // ../schemas/src/validator.ts
17298
17381
  var import_ajv = __toESM(require_ajv(), 1);
@@ -17331,10 +17414,10 @@ registerSystemPlatformContexts();
17331
17414
  // src/index.ts
17332
17415
  var import_irc_socket_sasl = __toESM(require_irc_socket(), 1);
17333
17416
  // package.json
17334
- var package_default = {
17417
+ var package_default2 = {
17335
17418
  name: "@sockethub/platform-irc",
17336
17419
  description: "A sockethub platform module implementing IRC functionality",
17337
- version: "4.0.0-alpha.15",
17420
+ version: "4.0.0-alpha.16",
17338
17421
  private: false,
17339
17422
  author: "Nick Jennings <nick@silverbucket.net>",
17340
17423
  license: "LGPL-3.0+",
@@ -17378,28 +17461,28 @@ var package_default = {
17378
17461
  doc: "typedoc --options typedoc.json"
17379
17462
  },
17380
17463
  dependencies: {
17381
- "@sockethub/irc2as": "^4.0.0-alpha.15",
17464
+ "@sockethub/irc2as": "^4.0.0-alpha.16",
17382
17465
  "irc-socket-sasl": "^4.1.2"
17383
17466
  },
17384
17467
  devDependencies: {
17385
- "@sockethub/schemas": "^3.0.0-alpha.15",
17468
+ "@sockethub/schemas": "^3.0.0-alpha.16",
17386
17469
  "@types/bun": "latest",
17387
17470
  typedoc: "^0.28.14"
17388
17471
  },
17389
17472
  peerDependencies: {
17390
- "@sockethub/server": "^5.0.0-alpha.15"
17473
+ "@sockethub/server": "^5.0.0-alpha.16"
17391
17474
  },
17392
17475
  peerDependenciesMeta: {
17393
17476
  "@sockethub/server": {
17394
17477
  optional: true
17395
17478
  }
17396
17479
  },
17397
- gitHead: "7f85c0aa1c317b56336af4149b29dc78afc5f2bd",
17480
+ gitHead: "1a1a01ffe7b9d356aacfc4ae583d553e5df6f97d",
17398
17481
  types: "./dist/index.d.ts"
17399
17482
  };
17400
17483
 
17401
17484
  // src/schema.ts
17402
- var version = package_default.version;
17485
+ var version = package_default2.version;
17403
17486
  var PlatformIrcSchema = {
17404
17487
  name: "irc",
17405
17488
  version,
@@ -18061,4 +18144,4 @@ export {
18061
18144
  IRC
18062
18145
  };
18063
18146
 
18064
- //# debugId=C624D09E20C6388C64756E2164756E21
18147
+ //# debugId=1362AE68AD87510364756E2164756E21