flightdeck 0.2.2 → 0.2.4

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.
@@ -19,7 +19,7 @@ var __toESM = (mod, isNodeMode, target) => {
19
19
  var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
20
20
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
21
21
 
22
- // /home/runner/work/wayforge/wayforge/node_modules/.pnpm/cron@3.2.1/node_modules/luxon/build/node/luxon.js
22
+ // ../../node_modules/.pnpm/luxon@3.5.0/node_modules/luxon/build/node/luxon.js
23
23
  var require_luxon = __commonJS((exports) => {
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
 
@@ -964,26 +964,26 @@ var require_luxon = __commonJS((exports) => {
964
964
  }
965
965
  }
966
966
  var numberingSystems = {
967
- arab: "[\u0660-\u0669]",
968
- arabext: "[\u06F0-\u06F9]",
969
- bali: "[\u1B50-\u1B59]",
970
- beng: "[\u09E6-\u09EF]",
971
- deva: "[\u0966-\u096F]",
972
- fullwide: "[\uFF10-\uFF19]",
973
- gujr: "[\u0AE6-\u0AEF]",
974
- hanidec: "[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",
975
- khmr: "[\u17E0-\u17E9]",
976
- knda: "[\u0CE6-\u0CEF]",
977
- laoo: "[\u0ED0-\u0ED9]",
978
- limb: "[\u1946-\u194F]",
979
- mlym: "[\u0D66-\u0D6F]",
980
- mong: "[\u1810-\u1819]",
981
- mymr: "[\u1040-\u1049]",
982
- orya: "[\u0B66-\u0B6F]",
983
- tamldec: "[\u0BE6-\u0BEF]",
984
- telu: "[\u0C66-\u0C6F]",
985
- thai: "[\u0E50-\u0E59]",
986
- tibt: "[\u0F20-\u0F29]",
967
+ arab: "[٠-٩]",
968
+ arabext: "[۰-۹]",
969
+ bali: "[᭐-᭙]",
970
+ beng: "[০-৯]",
971
+ deva: "[०-९]",
972
+ fullwide: "[0-9]",
973
+ gujr: "[૦-૯]",
974
+ hanidec: "[〇|一|二|三|四|五|六|七|八|九]",
975
+ khmr: "[០-៩]",
976
+ knda: "[೦-೯]",
977
+ laoo: "[໐-໙]",
978
+ limb: "[᥆-᥏]",
979
+ mlym: "[൦-൯]",
980
+ mong: "[᠐-᠙]",
981
+ mymr: "[၀-၉]",
982
+ orya: "[୦-୯]",
983
+ tamldec: "[௦-௯]",
984
+ telu: "[౦-౯]",
985
+ thai: "[๐-๙]",
986
+ tibt: "[༠-༩]",
987
987
  latn: "\\d"
988
988
  };
989
989
  var numberingSystemsUTF16 = {
@@ -1968,7 +1968,7 @@ var require_luxon = __commonJS((exports) => {
1968
1968
  var ianaRegex = /[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;
1969
1969
  function combineRegexes(...regexes) {
1970
1970
  const full = regexes.reduce((f, r) => f + r.source, "");
1971
- return RegExp(`^${full}\$`);
1971
+ return RegExp(`^${full}$`);
1972
1972
  }
1973
1973
  function combineExtractors(...extractors) {
1974
1974
  return (m) => extractors.reduce(([mergedVals, mergedZone, cursor], ex) => {
@@ -2043,7 +2043,7 @@ var require_luxon = __commonJS((exports) => {
2043
2043
  const zone = match2[cursor] ? IANAZone.create(match2[cursor]) : null;
2044
2044
  return [{}, zone, cursor + 1];
2045
2045
  }
2046
- var isoTimeOnly = RegExp(`^T?${isoTimeBaseRegex.source}\$`);
2046
+ var isoTimeOnly = RegExp(`^T?${isoTimeBaseRegex.source}$`);
2047
2047
  var isoDuration = /^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;
2048
2048
  function extractISODuration(match2) {
2049
2049
  const [s2, yearStr, monthStr, weekStr, dayStr, hourStr, minuteStr, secondStr, millisecondsStr] = match2;
@@ -2963,7 +2963,7 @@ var require_luxon = __commonJS((exports) => {
2963
2963
  toString() {
2964
2964
  if (!this.isValid)
2965
2965
  return INVALID$1;
2966
- return `[${this.s.toISO()} \u2013 ${this.e.toISO()})`;
2966
+ return `[${this.s.toISO()} ${this.e.toISO()})`;
2967
2967
  }
2968
2968
  [Symbol.for("nodejs.util.inspect.custom")]() {
2969
2969
  if (this.isValid) {
@@ -2991,7 +2991,7 @@ var require_luxon = __commonJS((exports) => {
2991
2991
  return `${this.s.toISOTime(opts)}/${this.e.toISOTime(opts)}`;
2992
2992
  }
2993
2993
  toFormat(dateFormat, {
2994
- separator = " \u2013 "
2994
+ separator = " "
2995
2995
  } = {}) {
2996
2996
  if (!this.isValid)
2997
2997
  return INVALID$1;
@@ -3386,7 +3386,7 @@ var require_luxon = __commonJS((exports) => {
3386
3386
  }
3387
3387
  function buildRegex(units) {
3388
3388
  const re = units.map((u) => u.regex).reduce((f, r) => `${f}(${r.source})`, "");
3389
- return [`^${re}\$`, units];
3389
+ return [`^${re}$`, units];
3390
3390
  }
3391
3391
  function match(input, regex, handlers) {
3392
3392
  const matches = input.match(regex);
@@ -5029,8 +5029,8 @@ var require_time = __commonJS((exports) => {
5029
5029
  const diff = date.toMillis() - start.toMillis();
5030
5030
  if (date > maxMatch) {
5031
5031
  throw new errors_1.CronError(`Something went wrong. No execution date was found in the next 8 years.
5032
- Please provide the following string if you would like to help debug:
5033
- Time Zone: ${(_a = timeZone === null || timeZone === undefined ? undefined : timeZone.toString()) !== null && _a !== undefined ? _a : '""'} - Cron String: ${this.source.toString()} - UTC offset: ${date.offset} - current Date: ${luxon_1.DateTime.local().toString()}`);
5032
+ \t\t\t\t\t\t\tPlease provide the following string if you would like to help debug:
5033
+ \t\t\t\t\t\t\tTime Zone: ${(_a = timeZone === null || timeZone === undefined ? undefined : timeZone.toString()) !== null && _a !== undefined ? _a : '""'} - Cron String: ${this.source.toString()} - UTC offset: ${date.offset} - current Date: ${luxon_1.DateTime.local().toString()}`);
5034
5034
  }
5035
5035
  if (!(date.month in this.month) && Object.keys(this.month).length !== 12) {
5036
5036
  date = date.plus({ months: 1 });
@@ -5476,7 +5476,7 @@ var require_job = __commonJS((exports) => {
5476
5476
  exports.CronJob = CronJob;
5477
5477
  });
5478
5478
 
5479
- // /home/runner/work/wayforge/wayforge/packages/flightdeck/node_modules/cron/dist/index.js
5479
+ // ../../node_modules/.pnpm/cron@3.2.1/node_modules/cron/dist/index.js
5480
5480
  var require_dist = __commonJS((exports) => {
5481
5481
  Object.defineProperty(exports, "__esModule", { value: true });
5482
5482
  exports.timeout = exports.sendAt = exports.CronTime = exports.CronJob = undefined;
@@ -5566,7 +5566,7 @@ class FilesystemStorage {
5566
5566
  }
5567
5567
  }
5568
5568
 
5569
- // /home/runner/work/wayforge/wayforge/packages/flightdeck/node_modules/@t3-oss/env-core/dist/index.js
5569
+ // ../../node_modules/.pnpm/@t3-oss+env-core@0.11.1_typescript@5.7.2_zod@3.23.8/node_modules/@t3-oss/env-core/dist/index.js
5570
5570
  import { object } from "zod";
5571
5571
  function createEnv(opts) {
5572
5572
  const runtimeEnv = opts.runtimeEnvStrict ?? opts.runtimeEnv ?? process.env;
@@ -5592,11 +5592,11 @@ function createEnv(opts) {
5592
5592
  const allServer = server.merge(shared).merge(client);
5593
5593
  const parsed = isServer ? allServer.safeParse(runtimeEnv) : allClient.safeParse(runtimeEnv);
5594
5594
  const onValidationError = opts.onValidationError ?? ((error) => {
5595
- console.error("\u274C Invalid environment variables:", error.flatten().fieldErrors);
5595
+ console.error(" Invalid environment variables:", error.flatten().fieldErrors);
5596
5596
  throw new Error("Invalid environment variables");
5597
5597
  });
5598
5598
  const onInvalidAccess = opts.onInvalidAccess ?? ((_variable) => {
5599
- throw new Error("\u274C Attempted to access a server-side environment variable on the client");
5599
+ throw new Error(" Attempted to access a server-side environment variable on the client");
5600
5600
  });
5601
5601
  if (parsed.success === false) {
5602
5602
  return onValidationError(parsed.error);
@@ -6002,7 +6002,7 @@ var FLIGHTDECK_MANUAL = {
6002
6002
  flag: `n`,
6003
6003
  required: true,
6004
6004
  description: `Name of the package.`,
6005
- example: `--packageName=\"my-app\"`
6005
+ example: `--packageName="my-app"`
6006
6006
  },
6007
6007
  services: {
6008
6008
  flag: `s`,
@@ -6015,7 +6015,7 @@ var FLIGHTDECK_MANUAL = {
6015
6015
  flag: `d`,
6016
6016
  required: true,
6017
6017
  description: `Directory where the service is stored.`,
6018
- example: `--flightdeckRootDir=\"./services/sample/repo/my-app/current\"`
6018
+ example: `--flightdeckRootDir="./services/sample/repo/my-app/current"`
6019
6019
  },
6020
6020
  scripts: {
6021
6021
  flag: `r`,
package/dist/lib.js CHANGED
@@ -27,7 +27,7 @@ var __export = (target, all) => {
27
27
  };
28
28
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
29
29
 
30
- // /home/runner/work/wayforge/wayforge/node_modules/.pnpm/cron@3.2.1/node_modules/luxon/build/node/luxon.js
30
+ // ../../node_modules/.pnpm/luxon@3.5.0/node_modules/luxon/build/node/luxon.js
31
31
  var require_luxon = __commonJS((exports) => {
32
32
  Object.defineProperty(exports, "__esModule", { value: true });
33
33
 
@@ -972,26 +972,26 @@ var require_luxon = __commonJS((exports) => {
972
972
  }
973
973
  }
974
974
  var numberingSystems = {
975
- arab: "[\u0660-\u0669]",
976
- arabext: "[\u06F0-\u06F9]",
977
- bali: "[\u1B50-\u1B59]",
978
- beng: "[\u09E6-\u09EF]",
979
- deva: "[\u0966-\u096F]",
980
- fullwide: "[\uFF10-\uFF19]",
981
- gujr: "[\u0AE6-\u0AEF]",
982
- hanidec: "[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",
983
- khmr: "[\u17E0-\u17E9]",
984
- knda: "[\u0CE6-\u0CEF]",
985
- laoo: "[\u0ED0-\u0ED9]",
986
- limb: "[\u1946-\u194F]",
987
- mlym: "[\u0D66-\u0D6F]",
988
- mong: "[\u1810-\u1819]",
989
- mymr: "[\u1040-\u1049]",
990
- orya: "[\u0B66-\u0B6F]",
991
- tamldec: "[\u0BE6-\u0BEF]",
992
- telu: "[\u0C66-\u0C6F]",
993
- thai: "[\u0E50-\u0E59]",
994
- tibt: "[\u0F20-\u0F29]",
975
+ arab: "[٠-٩]",
976
+ arabext: "[۰-۹]",
977
+ bali: "[᭐-᭙]",
978
+ beng: "[০-৯]",
979
+ deva: "[०-९]",
980
+ fullwide: "[0-9]",
981
+ gujr: "[૦-૯]",
982
+ hanidec: "[〇|一|二|三|四|五|六|七|八|九]",
983
+ khmr: "[០-៩]",
984
+ knda: "[೦-೯]",
985
+ laoo: "[໐-໙]",
986
+ limb: "[᥆-᥏]",
987
+ mlym: "[൦-൯]",
988
+ mong: "[᠐-᠙]",
989
+ mymr: "[၀-၉]",
990
+ orya: "[୦-୯]",
991
+ tamldec: "[௦-௯]",
992
+ telu: "[౦-౯]",
993
+ thai: "[๐-๙]",
994
+ tibt: "[༠-༩]",
995
995
  latn: "\\d"
996
996
  };
997
997
  var numberingSystemsUTF16 = {
@@ -1976,7 +1976,7 @@ var require_luxon = __commonJS((exports) => {
1976
1976
  var ianaRegex = /[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;
1977
1977
  function combineRegexes(...regexes) {
1978
1978
  const full = regexes.reduce((f, r) => f + r.source, "");
1979
- return RegExp(`^${full}\$`);
1979
+ return RegExp(`^${full}$`);
1980
1980
  }
1981
1981
  function combineExtractors(...extractors) {
1982
1982
  return (m) => extractors.reduce(([mergedVals, mergedZone, cursor], ex) => {
@@ -2051,7 +2051,7 @@ var require_luxon = __commonJS((exports) => {
2051
2051
  const zone = match2[cursor] ? IANAZone.create(match2[cursor]) : null;
2052
2052
  return [{}, zone, cursor + 1];
2053
2053
  }
2054
- var isoTimeOnly = RegExp(`^T?${isoTimeBaseRegex.source}\$`);
2054
+ var isoTimeOnly = RegExp(`^T?${isoTimeBaseRegex.source}$`);
2055
2055
  var isoDuration = /^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;
2056
2056
  function extractISODuration(match2) {
2057
2057
  const [s2, yearStr, monthStr, weekStr, dayStr, hourStr, minuteStr, secondStr, millisecondsStr] = match2;
@@ -2971,7 +2971,7 @@ var require_luxon = __commonJS((exports) => {
2971
2971
  toString() {
2972
2972
  if (!this.isValid)
2973
2973
  return INVALID$1;
2974
- return `[${this.s.toISO()} \u2013 ${this.e.toISO()})`;
2974
+ return `[${this.s.toISO()} ${this.e.toISO()})`;
2975
2975
  }
2976
2976
  [Symbol.for("nodejs.util.inspect.custom")]() {
2977
2977
  if (this.isValid) {
@@ -2999,7 +2999,7 @@ var require_luxon = __commonJS((exports) => {
2999
2999
  return `${this.s.toISOTime(opts)}/${this.e.toISOTime(opts)}`;
3000
3000
  }
3001
3001
  toFormat(dateFormat, {
3002
- separator = " \u2013 "
3002
+ separator = " "
3003
3003
  } = {}) {
3004
3004
  if (!this.isValid)
3005
3005
  return INVALID$1;
@@ -3394,7 +3394,7 @@ var require_luxon = __commonJS((exports) => {
3394
3394
  }
3395
3395
  function buildRegex(units) {
3396
3396
  const re = units.map((u) => u.regex).reduce((f, r) => `${f}(${r.source})`, "");
3397
- return [`^${re}\$`, units];
3397
+ return [`^${re}$`, units];
3398
3398
  }
3399
3399
  function match(input, regex, handlers) {
3400
3400
  const matches = input.match(regex);
@@ -5037,8 +5037,8 @@ var require_time = __commonJS((exports) => {
5037
5037
  const diff = date.toMillis() - start.toMillis();
5038
5038
  if (date > maxMatch) {
5039
5039
  throw new errors_1.CronError(`Something went wrong. No execution date was found in the next 8 years.
5040
- Please provide the following string if you would like to help debug:
5041
- Time Zone: ${(_a = timeZone === null || timeZone === undefined ? undefined : timeZone.toString()) !== null && _a !== undefined ? _a : '""'} - Cron String: ${this.source.toString()} - UTC offset: ${date.offset} - current Date: ${luxon_1.DateTime.local().toString()}`);
5040
+ \t\t\t\t\t\t\tPlease provide the following string if you would like to help debug:
5041
+ \t\t\t\t\t\t\tTime Zone: ${(_a = timeZone === null || timeZone === undefined ? undefined : timeZone.toString()) !== null && _a !== undefined ? _a : '""'} - Cron String: ${this.source.toString()} - UTC offset: ${date.offset} - current Date: ${luxon_1.DateTime.local().toString()}`);
5042
5042
  }
5043
5043
  if (!(date.month in this.month) && Object.keys(this.month).length !== 12) {
5044
5044
  date = date.plus({ months: 1 });
@@ -5484,7 +5484,7 @@ var require_job = __commonJS((exports) => {
5484
5484
  exports.CronJob = CronJob;
5485
5485
  });
5486
5486
 
5487
- // /home/runner/work/wayforge/wayforge/packages/flightdeck/node_modules/cron/dist/index.js
5487
+ // ../../node_modules/.pnpm/cron@3.2.1/node_modules/cron/dist/index.js
5488
5488
  var require_dist = __commonJS((exports) => {
5489
5489
  Object.defineProperty(exports, "__esModule", { value: true });
5490
5490
  exports.timeout = exports.sendAt = exports.CronTime = exports.CronJob = undefined;
@@ -5568,7 +5568,7 @@ import { discoverType } from "atom.io/introspection";
5568
5568
  import { fromEntries, toEntries } from "atom.io/json";
5569
5569
  import { ChildSocket } from "atom.io/realtime-server";
5570
5570
 
5571
- // /home/runner/work/wayforge/wayforge/packages/flightdeck/node_modules/@t3-oss/env-core/dist/index.js
5571
+ // ../../node_modules/.pnpm/@t3-oss+env-core@0.11.1_typescript@5.7.2_zod@3.23.8/node_modules/@t3-oss/env-core/dist/index.js
5572
5572
  import { object } from "zod";
5573
5573
  function createEnv(opts) {
5574
5574
  const runtimeEnv = opts.runtimeEnvStrict ?? opts.runtimeEnv ?? process.env;
@@ -5594,11 +5594,11 @@ function createEnv(opts) {
5594
5594
  const allServer = server.merge(shared).merge(client);
5595
5595
  const parsed = isServer ? allServer.safeParse(runtimeEnv) : allClient.safeParse(runtimeEnv);
5596
5596
  const onValidationError = opts.onValidationError ?? ((error) => {
5597
- console.error("\u274C Invalid environment variables:", error.flatten().fieldErrors);
5597
+ console.error(" Invalid environment variables:", error.flatten().fieldErrors);
5598
5598
  throw new Error("Invalid environment variables");
5599
5599
  });
5600
5600
  const onInvalidAccess = opts.onInvalidAccess ?? ((_variable) => {
5601
- throw new Error("\u274C Attempted to access a server-side environment variable on the client");
5601
+ throw new Error(" Attempted to access a server-side environment variable on the client");
5602
5602
  });
5603
5603
  if (parsed.success === false) {
5604
5604
  return onValidationError(parsed.error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flightdeck",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "license": "MIT",
5
5
  "author": {
6
6
  "name": "Jeremy Banka",
@@ -24,18 +24,18 @@
24
24
  "@t3-oss/env-core": "0.11.1",
25
25
  "cron": "3.2.1",
26
26
  "zod": "3.23.8",
27
- "atom.io": "0.30.3",
27
+ "atom.io": "0.30.5",
28
28
  "comline": "0.1.6"
29
29
  },
30
30
  "devDependencies": {
31
- "@types/node": "22.9.0",
31
+ "@types/node": "22.10.1",
32
32
  "@types/tmp": "0.2.6",
33
- "bun-types": "1.1.34",
33
+ "bun-types": "1.1.38",
34
34
  "concurrently": "9.1.0",
35
35
  "rimraf": "6.0.1",
36
36
  "tmp": "0.2.3",
37
37
  "tsup": "8.3.5",
38
- "vitest": "2.1.5"
38
+ "vitest": "3.0.0-beta.1"
39
39
  },
40
40
  "scripts": {
41
41
  "build": "rimraf dist && concurrently \"bun:build:*\" && concurrently \"bun:schema:*\"",