@staff0rd/assist 0.1090.0 → 0.1091.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.
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import { Command } from "commander";
6
6
  // package.json
7
7
  var package_default = {
8
8
  name: "@staff0rd/assist",
9
- version: "0.1090.0",
9
+ version: "0.1091.0",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -713,7 +713,8 @@ var runConfigSchema = z3.strictObject({
713
713
  quiet: z3.boolean().optional(),
714
714
  server: z3.union([z3.boolean(), z3.string().min(1)]).optional(),
715
715
  port: z3.number().optional(),
716
- protocol: z3.enum(["http", "https"]).optional()
716
+ protocol: z3.enum(["http", "https"]).optional(),
717
+ path: z3.string().optional()
717
718
  });
718
719
  var runLinkSchema = z3.strictObject({
719
720
  link: z3.string(),
@@ -15237,6 +15238,7 @@ function buildRunEntry(name, command, args, options2) {
15237
15238
  if (options2?.server !== void 0) entry.server = options2.server;
15238
15239
  if (options2?.port !== void 0) entry.port = options2.port;
15239
15240
  if (options2?.protocol) entry.protocol = options2.protocol;
15241
+ if (options2?.path) entry.path = options2.path;
15240
15242
  if (options2?.env) entry.env = options2.env;
15241
15243
  if (options2?.pre) entry.pre = options2.pre;
15242
15244
  if (options2?.filter) entry.filter = options2.filter;
@@ -50398,7 +50400,8 @@ function extractAddArgs(addIndex) {
50398
50400
  const cwd = extractOption(filter.remaining, "--cwd");
50399
50401
  const port = extractOption(cwd.remaining, "--port");
50400
50402
  const protocol = extractOption(port.remaining, "--protocol");
50401
- const server = extractOptionalValueFlag(protocol.remaining, "--server");
50403
+ const path110 = extractOption(protocol.remaining, "--path");
50404
+ const server = extractOptionalValueFlag(path110.remaining, "--server");
50402
50405
  const repo = extractOptionalValueFlag(server.remaining, "--repo");
50403
50406
  return {
50404
50407
  name: process.argv[addIndex + 1],
@@ -50409,6 +50412,7 @@ function extractAddArgs(addIndex) {
50409
50412
  server: server.value,
50410
50413
  port: parsePort(port.value),
50411
50414
  protocol: parseProtocol(protocol.value),
50415
+ path: path110.value,
50412
50416
  env: parseEnvPairs(env.values),
50413
50417
  pre: pre.values.length > 0 ? pre.values : void 0,
50414
50418
  filter: filter.value,
@@ -50498,6 +50502,11 @@ var properties = [
50498
50502
  "--protocol <http|https>",
50499
50503
  "protocol of the serving card's port link (default: http)"
50500
50504
  ],
50505
+ [
50506
+ "path",
50507
+ "--path <path>",
50508
+ "path of the serving card's port link, e.g. /swagger (default: /)"
50509
+ ],
50501
50510
  [
50502
50511
  "pre",
50503
50512
  "--pre <command>",
@@ -50552,6 +50561,9 @@ function registerRunAdd(runCommand) {
50552
50561
  ).option("--port <port>", "Display-only port shown on the serving card").option(
50553
50562
  "--protocol <http|https>",
50554
50563
  "Protocol for the serving card's port link (default: http)"
50564
+ ).option(
50565
+ "--path <path>",
50566
+ "Path for the serving card's port link, e.g. /swagger (default: /)"
50555
50567
  ).option(
50556
50568
  "--env <KEY=VALUE>",
50557
50569
  "Environment variable for the command (repeatable)"
@@ -51281,6 +51293,7 @@ function toSessionRunInfo({
51281
51293
  server,
51282
51294
  serverPort,
51283
51295
  serverProtocol,
51296
+ serverPath,
51284
51297
  serverOrigin,
51285
51298
  assistArgs,
51286
51299
  cwd,
@@ -51300,6 +51313,7 @@ function toSessionRunInfo({
51300
51313
  server,
51301
51314
  port: serverPort,
51302
51315
  protocol: serverProtocol,
51316
+ urlPath: serverPath,
51303
51317
  remoteOrigin: serverOrigin ?? originForCwd(cwd),
51304
51318
  assistArgs,
51305
51319
  activity: activity2,
@@ -52285,6 +52299,7 @@ function serverRunMeta(runName, cwd) {
52285
52299
  group: typeof config.server === "string" ? config.server : DEFAULT_SERVER_GROUP,
52286
52300
  port: config.port,
52287
52301
  protocol: config.protocol,
52302
+ path: config.path,
52288
52303
  origin: getCurrentOrigin(dir)
52289
52304
  };
52290
52305
  }
@@ -52363,6 +52378,7 @@ function createRunSession(id, { runName, runArgs, cwd, meta }) {
52363
52378
  server: serverMeta.server || void 0,
52364
52379
  serverPort: serverMeta.port,
52365
52380
  serverProtocol: serverMeta.protocol,
52381
+ serverPath: serverMeta.path,
52366
52382
  serverOrigin: serverMeta.origin,
52367
52383
  serverGroup: serverMeta.group
52368
52384
  };
@@ -56522,6 +56538,7 @@ function restoreServerRun(id, persisted, base) {
56522
56538
  server: true,
56523
56539
  serverPort: meta.port,
56524
56540
  serverProtocol: meta.protocol,
56541
+ serverPath: meta.path,
56525
56542
  serverOrigin: meta.origin,
56526
56543
  serverGroup: meta.group
56527
56544
  };
@@ -57042,6 +57059,7 @@ function tagServerSession(session, meta) {
57042
57059
  session.server = meta.server || void 0;
57043
57060
  session.serverPort = meta.port;
57044
57061
  session.serverProtocol = meta.protocol;
57062
+ session.serverPath = meta.path;
57045
57063
  session.serverOrigin = meta.origin;
57046
57064
  session.serverGroup = meta.group;
57047
57065
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.1090.0",
3
+ "version": "0.1091.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {