arcadible 1.0.36 → 1.0.37

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.
Files changed (46) hide show
  1. package/README.md +1 -1
  2. package/dist/action/function/logs.js +1 -1
  3. package/dist/action/pack/limits.js +28 -4
  4. package/dist/action/pack/tool.js +2 -1
  5. package/dist/action/wire/tool.js +1 -1
  6. package/dist/cli/command.js +12 -2
  7. package/dist/command/function/index.js +4 -5
  8. package/dist/command/function/logs.js +1 -1
  9. package/dist/command/function/pause.js +1 -1
  10. package/dist/command/function/resume.js +1 -1
  11. package/dist/command/function/run.js +1 -1
  12. package/dist/command/function/secret/index.js +1 -1
  13. package/dist/command/function/secret/remove.js +2 -2
  14. package/dist/command/function/secret/run.js +1 -1
  15. package/dist/command/function/secret/set.js +1 -1
  16. package/dist/command/{delete.js → game/delete.js} +14 -13
  17. package/dist/command/game/index.js +12 -0
  18. package/dist/command/server/index.js +3 -4
  19. package/dist/command/server/key/create.js +1 -1
  20. package/dist/command/server/key/index.js +1 -1
  21. package/dist/command/server/key/revoke.js +1 -1
  22. package/dist/command/server/key/run.js +1 -1
  23. package/dist/command/unstable/index.js +23 -0
  24. package/dist/command/value/get.js +1 -1
  25. package/dist/command/value/index.js +6 -6
  26. package/dist/command/value/list.js +1 -1
  27. package/dist/command/value/remove.js +2 -2
  28. package/dist/command/value/set.js +1 -1
  29. package/dist/command/value/usage.js +1 -1
  30. package/dist/command/wire/index.js +4 -5
  31. package/dist/commands.js +3 -29
  32. package/dist/config/code.js +7 -3
  33. package/dist/config/limit.js +4 -0
  34. package/dist/phrase/deploy.js +1 -1
  35. package/dist/phrase/function.js +7 -7
  36. package/dist/phrase/game.js +1 -1
  37. package/dist/phrase/index.js +1 -0
  38. package/dist/phrase/pack.js +9 -0
  39. package/dist/phrase/server.js +4 -4
  40. package/dist/phrase/unstable.js +6 -0
  41. package/dist/phrase/value.js +4 -4
  42. package/dist/schema/check/workflow.js +0 -21
  43. package/dist/schema/workflow.js +6 -28
  44. package/dist/util/zip.js +5 -0
  45. package/npm-shrinkwrap.json +33 -33
  46. package/package.json +1 -1
package/README.md CHANGED
@@ -50,10 +50,10 @@ Your repository is the store page: `arcadible.toml` holds the game's settings, `
50
50
  | `arc deploy` | Validates, builds, packages, and publishes, directly or through GitHub Actions |
51
51
  | `arc play` | Plays a deployed game from any channel or version |
52
52
  | `arc open` | Opens a game's store page |
53
- | `arc delete` | Deletes the project's game from Arcadible, for good, asking first |
54
53
  | `arc login` | Logs in to Arcadible with a device code |
55
54
  | `arc logout` | Logs out |
56
55
  | `arc whoami` | Shows the account you're logged in to |
56
+ | `arc unstable` | Commands for what isn't released yet, which may change or go in any release |
57
57
 
58
58
  Run `arc <command> --help` for its options, or see the [CLI reference](https://developer.arcadible.com/references/arcadible-cli).
59
59
 
@@ -87,7 +87,7 @@ function refused(status, code) {
87
87
  }
88
88
  // [function]
89
89
  // a token for the game's logs: the game is the caller's, or
90
- // game_unavailable, as for the rest of `arc function`.
90
+ // game_unavailable, as for the rest of `arc unstable function`.
91
91
  async function tokenOf(id, headers) {
92
92
  try {
93
93
  return await postGameFunctionLogsToken(id, null, headers);
@@ -2,19 +2,43 @@
2
2
  import fs from "node:fs";
3
3
  import path from "node:path";
4
4
  // [import]
5
- import { PACKAGE_FILE_TOO_LARGE, PACKAGE_TOO_MANY_FILES, PACKAGE_UNCOMPRESSED_TOO_LARGE, } from "../../config/code.js";
5
+ import { PACKAGE_FILE_TOO_LARGE, PACKAGE_PATH_INVALID, PACKAGE_TOO_MANY_FILES, PACKAGE_UNCOMPRESSED_TOO_LARGE, } from "../../config/code.js";
6
6
  import { ArcError } from "../../util/error.js";
7
- import { packageFileTooLarge, packageTooManyFiles, packageUncompressedTooLarge, } from "../../phrase/index.js";
8
- import { FILE_SIZE, FILES, TOTAL_SIZE } from "../../config/limit.js";
7
+ import { packageFileTooLarge, packagePathInvalid, packageTooManyEntries, packageTooManyFiles, packageUncompressedTooLarge, } from "../../phrase/index.js";
8
+ import { ENTRIES, FILE_SIZE, FILES, TOTAL_SIZE } from "../../config/limit.js";
9
9
  import { toMb } from "../../util/size.js";
10
10
  // [declare]
11
11
  export const MAX_FILES = FILES;
12
+ export const MAX_ENTRIES = ENTRIES;
12
13
  export const MAX_FILE_SIZE = FILE_SIZE;
13
14
  export const MAX_TOTAL_SIZE = TOTAL_SIZE;
14
15
  // [function]
16
+ // whether a name is one the router serves as it is: no `.` or `..` part, no
17
+ // backslash, and no escape that decodes to `.`, `/`, or `\\` (`%2e`, `%2f`,
18
+ // `%5c`, in any case), each of which a URL reads as another path. The
19
+ // pipeline refuses the same, with the same code (its `isPlain`, zip.mts).
20
+ export function isPlain(name) {
21
+ return (!name.includes("\\") &&
22
+ !/%(?:2e|2f|5c)/iu.test(name) &&
23
+ !name.split("/").some((part) => part === "." || part === ".."));
24
+ }
25
+ // [function]
26
+ // throws for more entries than the pipeline reads, files and folders
27
+ // together.
28
+ export function checkEntries(count) {
29
+ if (count > MAX_ENTRIES) {
30
+ throw new ArcError(PACKAGE_TOO_MANY_FILES, packageTooManyEntries(MAX_ENTRIES));
31
+ }
32
+ }
33
+ // [function]
15
34
  // checks a zip's files against the limits, and throws for the first one it
16
- // breaks: a file over 64 MB, more than 10,000 files, or over 256 MB in all.
35
+ // breaks: a name that isn't plain, a file over 64 MB, more than 10,000 files,
36
+ // or over 256 MB in all.
17
37
  export function check(entries) {
38
+ const unplain = entries.find((entry) => !isPlain(entry.name));
39
+ if (unplain) {
40
+ throw new ArcError(PACKAGE_PATH_INVALID, packagePathInvalid(unplain.name));
41
+ }
18
42
  const large = entries.find((entry) => entry.size > MAX_FILE_SIZE);
19
43
  if (large) {
20
44
  throw new ArcError(PACKAGE_FILE_TOO_LARGE, packageFileTooLarge(large.name, toMb(MAX_FILE_SIZE)));
@@ -9,7 +9,7 @@ import { ArcError } from "../../util/error.js";
9
9
  import { MEDIA, PACKAGED } from "../../config/file.js";
10
10
  import { deployDirMissing, packageIndexMissing, packagePathReserved, packageTooLarge, runnerNotBuilt, unableToFind, } from "../../phrase/index.js";
11
11
  import { ZIP_SIZE } from "../../config/limit.js";
12
- import { check, measure } from "./limits.js";
12
+ import { check, checkEntries, measure } from "./limits.js";
13
13
  import { favicon } from "../../util/favicon.js";
14
14
  import { handle, tool } from "../../config/product.js";
15
15
  import { toMb } from "../../util/size.js";
@@ -85,6 +85,7 @@ function verifyPartial(zip) {
85
85
  // [function]
86
86
  function verifyTotal(zip) {
87
87
  check(zip.entries());
88
+ checkEntries(zip.count());
88
89
  return zip;
89
90
  }
90
91
  // [function]
@@ -1,4 +1,4 @@
1
- // arc wire: a game's wires (plan/SDKWIRES.md), live messages between its
1
+ // arc unstable wire: a game's wires (plan/SDKWIRES.md), live messages between its
2
2
  // players. What its owner sees of them is their usage: wires keep nothing,
3
3
  // and nothing about one is set from here.
4
4
  import { gameWireUsages } from "../../api.js";
@@ -127,6 +127,17 @@ function parser(command, args, conf, matched) {
127
127
  return (takesJson(command) ? built.fail(fail(args)) : built).strict();
128
128
  }
129
129
  // [function]
130
+ // the section of `.arcrc` a command's options are read from: the top-level
131
+ // command's, for a family's commands too, or in a namespace, the name of
132
+ // the command under it that the arguments give.
133
+ function section(command, args) {
134
+ if (!isFamily(command) || !command.namespace) {
135
+ return command.name;
136
+ }
137
+ const names = new Set(command.commands.map((each) => each.name));
138
+ return args.find((arg) => names.has(arg)) ?? command.name;
139
+ }
140
+ // [function]
130
141
  // runs the command's flow, and ends as it says: with its exit code, or by
131
142
  // the one error path.
132
143
  async function run({ command, heading, parsed }) {
@@ -148,8 +159,7 @@ async function run({ command, heading, parsed }) {
148
159
  // runs a top-level command with `args`, the arguments after its name.
149
160
  // `--help`, `--version`, and an argument error end inside the parser.
150
161
  export async function execute(command, args) {
151
- // the section is the top-level command's, for a family's commands too.
152
- const conf = await findRc(TOOL, command.name, args);
162
+ const conf = await findRc(TOOL, section(command, args), args);
153
163
  const matches = [];
154
164
  const parsed = await parser(command, args, conf, (match) => {
155
165
  matches.push(match);
@@ -1,7 +1,7 @@
1
- // arc function: a game's function, the server code Arcadible runs for it:
2
- // paused and resumed on a channel by the game's owner, with no release, its
3
- // logs, and its secrets (./secret/index.ts). All of it is left out of `arc --help`
4
- // until functions ship, with the docs.
1
+ // arc unstable function: a game's function, the server code Arcadible runs
2
+ // for it: paused and resumed on a channel by the game's owner, with no
3
+ // release, its logs, and its secrets (./secret/index.ts). Under
4
+ // `arc unstable` until functions ship, with the docs.
5
5
  // [import]
6
6
  import { defineCommand } from "../../cli/command.js";
7
7
  import secret from "./secret/index.js";
@@ -12,7 +12,6 @@ import logs from "./logs.js";
12
12
  // [export]
13
13
  export default defineCommand({
14
14
  commands: [pause, resume, status, logs, secret],
15
- hidden: true,
16
15
  name: "function",
17
16
  summary: "Pause, resume, and show the game's function, its logs, and its secrets",
18
17
  });
@@ -1,4 +1,4 @@
1
- // arc function logs: what the game's function said, as Arcadible keeps it,
1
+ // arc unstable function logs: what the game's function said, as Arcadible keeps it,
2
2
  // for its owner (plan/FUNCTION-LOGS.md, Reading them): the newest 100
3
3
  // requests, oldest first, as `tail` prints, or those and then each as it
4
4
  // comes, with `--follow`. With `--json`, an entry a line, as the logs
@@ -12,7 +12,7 @@ export default defineCommand({
12
12
  run(argv, aborting) {
13
13
  return run(argv, aborting, pause, (paused) => {
14
14
  p(functionPaused(paused));
15
- }, "arc function pause");
15
+ }, "arc unstable function pause");
16
16
  },
17
17
  summary: "Pause the game's function on a channel",
18
18
  });
@@ -12,7 +12,7 @@ export default defineCommand({
12
12
  run(argv, aborting) {
13
13
  return run(argv, aborting, resume, (resumed) => {
14
14
  p(functionResumed(resumed));
15
- }, "arc function resume");
15
+ }, "arc unstable function resume");
16
16
  },
17
17
  summary: "Resume the game's function on a channel",
18
18
  });
@@ -1,4 +1,4 @@
1
- // what `arc function`'s own commands share: running one as the logged-in
1
+ // what `arc unstable function`'s own commands share: running one as the logged-in
2
2
  // account.
3
3
  // [import]
4
4
  import { resolve as resolvePath } from "node:path";
@@ -1,4 +1,4 @@
1
- // arc function secret: a function's secrets, the values a game's function
1
+ // arc unstable function secret: a function's secrets, the values a game's function
2
2
  // needs and its repository mustn't hold. `set` takes the value from standard
3
3
  // input, or asks for it at a terminal, so it's never an argument, in a
4
4
  // shell's history or a process list.
@@ -14,12 +14,12 @@ export default defineCommand({
14
14
  run(argv, aborting) {
15
15
  return run(argv, aborting, (current, conf) => remove(current, { ...conf, name: argv.name }), (gone) => {
16
16
  p(secretRemoved(gone));
17
- }, `arc function secret remove ${argv.name}`, (where) => ({
17
+ }, `arc unstable function secret remove ${argv.name}`, (where) => ({
18
18
  question: secretRemoveQuestion({
19
19
  channel: String(where),
20
20
  name: argv.name,
21
21
  }),
22
- usage: `arc function secret remove ${argv.name} --${where}`,
22
+ usage: `arc unstable function secret remove ${argv.name} --${where}`,
23
23
  }));
24
24
  },
25
25
  summary: "Remove a secret",
@@ -1,4 +1,4 @@
1
- // what `arc function secret`'s commands share: running one as the logged-in
1
+ // what `arc unstable function secret`'s commands share: running one as the logged-in
2
2
  // account.
3
3
  // [import]
4
4
  import { resolve as resolvePath } from "node:path";
@@ -42,7 +42,7 @@ export default defineCommand({
42
42
  value: () => valueOf(argv.name, argv.json),
43
43
  }), (kept) => {
44
44
  p(secretSet(kept));
45
- }, `arc function secret set ${argv.name}`);
45
+ }, `arc unstable function secret set ${argv.name}`);
46
46
  },
47
47
  summary: "Set a secret, its value from standard input",
48
48
  });
@@ -1,24 +1,25 @@
1
- // arc delete: deletes the project's game on Arcadible, for its owner. It
1
+ // arc unstable game delete: deletes the project's game on Arcadible, for its
2
+ // owner. It
2
3
  // can't be undone, so it asks first (src/cli/confirm.ts), naming the game.
3
4
  // The project's files are left as they are.
4
5
  // [import]
5
6
  import { resolve } from "node:path";
6
7
  // [import]
7
- import { ended } from "../account.js";
8
- import { defineCommand } from "../cli/command.js";
9
- import { askable, sure } from "../cli/confirm.js";
10
- import { headersOf } from "../action/game.js";
11
- import { confirmDeclined, gameDeleted, gameDeletedProject, gameDeleteQuestion, } from "../phrase/index.js";
12
- import { p, result } from "../util/log.js";
13
- import { CWD, JSON_OUTPUT, QUIET, YES } from "../cli/options.js";
14
- import { print } from "../util/output.js";
15
- import { SpinnerWheel } from "../util/spinner.js";
16
- import { deleteTool, named } from "../action/delete/tool.js";
17
- import { whoami } from "../action/whoami/tool.js";
8
+ import { ended } from "../../account.js";
9
+ import { defineCommand } from "../../cli/command.js";
10
+ import { askable, sure } from "../../cli/confirm.js";
11
+ import { headersOf } from "../../action/game.js";
12
+ import { confirmDeclined, gameDeleted, gameDeletedProject, gameDeleteQuestion, } from "../../phrase/index.js";
13
+ import { p, result } from "../../util/log.js";
14
+ import { CWD, JSON_OUTPUT, QUIET, YES } from "../../cli/options.js";
15
+ import { print } from "../../util/output.js";
16
+ import { SpinnerWheel } from "../../util/spinner.js";
17
+ import { deleteTool, named } from "../../action/delete/tool.js";
18
+ import { whoami } from "../../action/whoami/tool.js";
18
19
  // [declare]
19
20
  const COMMAND = "delete";
20
21
  // the command as it's typed, shown with `--yes` when there's no one to ask.
21
- const USAGE = "arc delete";
22
+ const USAGE = "arc unstable game delete";
22
23
  // [export]
23
24
  export default defineCommand({
24
25
  name: COMMAND,
@@ -0,0 +1,12 @@
1
+ // arc unstable game: the project's game on Arcadible, where a top-level
2
+ // command is the project's own life (`init` to `deploy`). Deleting it, for
3
+ // now. Under `arc unstable` until it's settled, then `arc game`.
4
+ // [import]
5
+ import { defineCommand } from "../../cli/command.js";
6
+ import del from "./delete.js";
7
+ // [export]
8
+ export default defineCommand({
9
+ commands: [del],
10
+ name: "game",
11
+ summary: "Delete the project's game on Arcadible",
12
+ });
@@ -1,6 +1,6 @@
1
- // arc server: a game's own server, the one its developer runs: the keys it
2
- // proves itself to Arcadible with (./key/index.ts). It's left out of
3
- // `arc --help` until keys ship, with the docs. Not `arc serve`, which runs
1
+ // arc unstable server: a game's own server, the one its developer runs: the
2
+ // keys it proves itself to Arcadible with (./key/index.ts). Under
3
+ // `arc unstable` until keys ship, with the docs. Not `arc serve`, which runs
4
4
  // the game on this machine: its help says so, since the two are a letter
5
5
  // apart.
6
6
  // [import]
@@ -11,7 +11,6 @@ import { serverNotServe } from "../../phrase/index.js";
11
11
  export default defineCommand({
12
12
  commands: [key],
13
13
  epilogue: serverNotServe(),
14
- hidden: true,
15
14
  name: "server",
16
15
  summary: "Make, list, and revoke your server's keys",
17
16
  });
@@ -30,7 +30,7 @@ export default defineCommand({
30
30
  if (!quiet) {
31
31
  pd(keyCreated(made));
32
32
  }
33
- }, "arc server key create", null, true);
33
+ }, "arc unstable server key create", null, true);
34
34
  },
35
35
  summary: "Make a key, and print it once",
36
36
  });
@@ -1,4 +1,4 @@
1
- // arc server key: a game's keys, which its own server proves itself with
1
+ // arc unstable server key: a game's keys, which its own server proves itself with
2
2
  // to Arcadible. `create` prints the new key alone on stdout, since it's
3
3
  // shown once and is what a script wants; everything else it says goes to
4
4
  // stderr.
@@ -17,7 +17,7 @@ export default defineCommand({
17
17
  p(keyRevoked(gone.id));
18
18
  }, null, () => ({
19
19
  question: keyRevokeQuestion(),
20
- usage: `arc server key revoke ${argv.id}`,
20
+ usage: `arc unstable server key revoke ${argv.id}`,
21
21
  }));
22
22
  },
23
23
  summary: "Revoke a key, by the id `list` shows",
@@ -1,4 +1,4 @@
1
- // what `arc server key`'s commands share: running one as the logged-in
1
+ // what `arc unstable server key`'s commands share: running one as the logged-in
2
2
  // account.
3
3
  // [import]
4
4
  import { resolve } from "node:path";
@@ -0,0 +1,23 @@
1
+ // arc unstable: the commands that aren't settled yet: the game on
2
+ // Arcadible, and what isn't released, a game's function, its server's
3
+ // keys, its values, and its wires. Each may change or go in any release,
4
+ // and is promoted out of it, to a name of its own, once it's settled or
5
+ // released. Its commands are outside the `--json` contract (OUTPUT.md,
6
+ // Unstable commands), and each reads its own section of `.arcrc`, as a
7
+ // top-level command does.
8
+ // [import]
9
+ import { defineCommand } from "../../cli/command.js";
10
+ import { unstableEpilogue } from "../../phrase/index.js";
11
+ import fn from "../function/index.js";
12
+ import game from "../game/index.js";
13
+ import server from "../server/index.js";
14
+ import value from "../value/index.js";
15
+ import wire from "../wire/index.js";
16
+ // [export]
17
+ export default defineCommand({
18
+ commands: [game, fn, server, value, wire],
19
+ epilogue: unstableEpilogue(),
20
+ name: "unstable",
21
+ namespace: true,
22
+ summary: "Use commands that aren't stable yet",
23
+ });
@@ -15,7 +15,7 @@ export default defineCommand({
15
15
  // the value alone, as JSON, so it pipes to a file as it was set
16
16
  (got) => {
17
17
  p(JSON.stringify(got.value, null, 2));
18
- }, `arc value get ${argv.key}`);
18
+ }, `arc unstable value get ${argv.key}`);
19
19
  },
20
20
  summary: "Show a value",
21
21
  });
@@ -1,8 +1,9 @@
1
- // arc value: a game's developer's values (plan/VALUES.md), the JSON a game's
2
- // owner publishes on a channel for the game and its server to read: a daily
3
- // puzzle, an event's switch, a table of levels. Set, read, listed, and
4
- // removed, a channel named each time, since nothing is copied between them.
5
- // Left out of `arc --help` until values ship, with the docs.
1
+ // arc unstable value: a game's developer's values (plan/VALUES.md), the JSON
2
+ // a game's owner publishes on a channel for the game and its server to read:
3
+ // a daily puzzle, an event's switch, a table of levels. Set, read, listed,
4
+ // and removed, a channel named each time, since nothing is copied between
5
+ // them.
6
+ // Under `arc unstable` until values ship, with the docs.
6
7
  // [import]
7
8
  import { defineCommand } from "../../cli/command.js";
8
9
  import get from "./get.js";
@@ -13,7 +14,6 @@ import usage from "./usage.js";
13
14
  // [export]
14
15
  export default defineCommand({
15
16
  commands: [set, get, list, remove, usage],
16
- hidden: true,
17
17
  name: "value",
18
18
  summary: "Set, get, list, and remove the values you publish for the game",
19
19
  });
@@ -35,7 +35,7 @@ export default defineCommand({
35
35
  run(argv, aborting) {
36
36
  return run(argv, aborting, (current, conf) => list(current, { ...conf, prefix: argv.prefix }), (entries) => {
37
37
  p(entries.length ? rows(entries) : valueNone());
38
- }, "arc value list");
38
+ }, "arc unstable value list");
39
39
  },
40
40
  summary: "List the values' keys, with their sizes",
41
41
  });
@@ -14,12 +14,12 @@ export default defineCommand({
14
14
  run(argv, aborting) {
15
15
  return run(argv, aborting, (current, conf) => remove(current, { ...conf, key: argv.key }), (gone) => {
16
16
  p(valueRemoved({ channel: gone.channel, key: argv.key }));
17
- }, `arc value remove ${argv.key}`, (where) => ({
17
+ }, `arc unstable value remove ${argv.key}`, (where) => ({
18
18
  question: valueRemoveQuestion({
19
19
  channel: String(where),
20
20
  key: argv.key,
21
21
  }),
22
- usage: `arc value remove ${argv.key} --${where}`,
22
+ usage: `arc unstable value remove ${argv.key} --${where}`,
23
23
  }));
24
24
  },
25
25
  summary: "Remove a value",
@@ -56,7 +56,7 @@ export default defineCommand({
56
56
  key: argv.key,
57
57
  }), (done) => {
58
58
  p(valueSet(done));
59
- }, `arc value set ${what}`);
59
+ }, `arc unstable value set ${what}`);
60
60
  },
61
61
  summary: "Set a value, its JSON from a file or standard input",
62
62
  });
@@ -73,7 +73,7 @@ export default defineCommand({
73
73
  if (calls) {
74
74
  p(`\n${called(calls)}`);
75
75
  }
76
- }, "arc value usage");
76
+ }, "arc unstable value usage");
77
77
  },
78
78
  summary: "Show how much the game's values hold, by scope",
79
79
  });
@@ -1,14 +1,13 @@
1
- // arc wire: a game's wires (plan/SDKWIRES.md), live messages between its
2
- // players, relayed and never kept. A game makes and joins them itself, so
3
- // what's here is what they came to: their usage, by channel. Left out of
4
- // `arc --help` until wires ship, with the docs.
1
+ // arc unstable wire: a game's wires (plan/SDKWIRES.md), live messages
2
+ // between its players, relayed and never kept. A game makes and joins them
3
+ // itself, so what's here is what they came to: their usage, by channel.
4
+ // Under `arc unstable` until wires ship, with the docs.
5
5
  // [import]
6
6
  import { defineCommand } from "../../cli/command.js";
7
7
  import usage from "./usage.js";
8
8
  // [export]
9
9
  export default defineCommand({
10
10
  commands: [usage],
11
- hidden: true,
12
11
  name: "wire",
13
12
  summary: "Show what the game's wires carried",
14
13
  });
package/dist/commands.js CHANGED
@@ -57,11 +57,6 @@ export const COMMANDS = [
57
57
  name: "play",
58
58
  summary: "Play a game",
59
59
  },
60
- {
61
- load: () => import("./command/delete.js"),
62
- name: "delete",
63
- summary: "Delete the game",
64
- },
65
60
  {
66
61
  load: () => import("./command/login.js"),
67
62
  name: "login",
@@ -77,30 +72,9 @@ export const COMMANDS = [
77
72
  name: "logout",
78
73
  summary: `Log out of ${title}`,
79
74
  },
80
- // left out of `arc --help` until functions, keys, values, and wires ship, with the
81
- // docs.
82
- {
83
- hidden: true,
84
- load: () => import("./command/function/index.js"),
85
- name: "function",
86
- summary: "Pause, resume, and show the game's function, its logs, and its secrets",
87
- },
88
- {
89
- hidden: true,
90
- load: () => import("./command/server/index.js"),
91
- name: "server",
92
- summary: "Make, list, and revoke your server's keys",
93
- },
94
- {
95
- hidden: true,
96
- load: () => import("./command/value/index.js"),
97
- name: "value",
98
- summary: "Set, get, list, and remove the values you publish for the game",
99
- },
100
75
  {
101
- hidden: true,
102
- load: () => import("./command/wire/index.js"),
103
- name: "wire",
104
- summary: "Show what the game's wires carried",
76
+ load: () => import("./command/unstable/index.js"),
77
+ name: "unstable",
78
+ summary: "Use commands that aren't stable yet",
105
79
  },
106
80
  ];
@@ -56,8 +56,8 @@ const CLI = {
56
56
  // a release's reasons, from the pipeline (the API's
57
57
  // db/type/release_reason.sql). The CLI shares them, so a name means the same
58
58
  // thing wherever it appears: FUNCTION_TOO_LARGE, GAME_HANDLE_CHANGED,
59
- // GAME_UNAVAILABLE, INTERNAL, as well as REPO_NOT_CONNECTED and
60
- // VERSION_EXISTS, are the CLI's too.
59
+ // GAME_UNAVAILABLE, INTERNAL, PACKAGE_PATH_INVALID, as well as
60
+ // REPO_NOT_CONNECTED and VERSION_EXISTS, are the CLI's too.
61
61
  export const RELEASE = {
62
62
  BUILD_RATE_LIMITED: "build_rate_limited",
63
63
  FUNCTION_INVALID: "function_invalid",
@@ -69,6 +69,7 @@ export const RELEASE = {
69
69
  GITHUB_APP_NOT_INSTALLED: "github_app_not_installed",
70
70
  INTERNAL: "internal",
71
71
  MANIFEST_INVALID: "manifest_invalid",
72
+ PACKAGE_PATH_INVALID: "package_path_invalid",
72
73
  RELEASE_EXPIRED: "release_expired",
73
74
  REPO_NOT_CONNECTED: "repo_not_connected",
74
75
  VERSION_EXISTS: "version_exists",
@@ -92,6 +93,9 @@ export const ISSUE = {
92
93
  DESCRIPTION_RULES_MISSING: "description_rules_missing",
93
94
  DUPLICATE: "duplicate",
94
95
  EMPTY: "empty",
96
+ // no longer used: arc validate checked deploy_dir for an index.html before
97
+ // 1.0.37, which packing checks now (package_index_missing). Kept, as
98
+ // every code is.
95
99
  INDEX_MISSING: "index_missing",
96
100
  INVALID: "invalid",
97
101
  MARKDOWN_INVALID: "markdown_invalid",
@@ -137,5 +141,5 @@ export const WARNINGS = new Set(Object.values(WARNING));
137
141
  // [declare]
138
142
  // each error code by its own name too: `cfgcode.NOT_LOGGED_IN`.
139
143
  export const { API_REFUSED, API_UNREACHABLE, ARGUMENT_INVALID, BUILD_FAILED, DEPLOY_DIR_MISSING, DEPLOY_RATE_LIMITED, FUNCTION_PAUSE_RESERVED, GAME_HANDLE_TAKEN, GAME_ID_MISSING, GAME_NOT_DEPLOYED, GAME_NOT_FOUND, GIT_REMOTE_MISSING, GIT_REMOTE_UNREACHABLE, GIT_REPO_MISSING, GIT_TAG_CREATE_FAILED, GIT_TAG_EXISTS, GIT_TAG_PUSH_FAILED, GIT_UNCOMMITTED, KEY_LIMIT_REACHED, KEY_NOT_FOUND, LOCKFILE_MISSING, LOGIN_CODE_EXPIRED, LOGIN_FAILED, MANIFEST_MISSING, NOT_LOGGED_IN, PACKAGE_FILE_TOO_LARGE, PACKAGE_INDEX_MISSING, PACKAGE_PATH_RESERVED, PACKAGE_TOO_LARGE, PACKAGE_TOO_MANY_FILES, PACKAGE_UNCOMPRESSED_TOO_LARGE, PARSE_FAILED, PATH_NOT_FOUND, PORT_IN_USE, PROJECT_NOT_REPO_ROOT, SECRET_LIMIT_REACHED, SECRET_NOT_FOUND, SESSION_EXPIRED, TEMPLATE_MISSING, TEMPLATE_UNAVAILABLE, UNEXPECTED, UPLOAD_FAILED, VALIDATION_FAILED, VALUE_NOT_FOUND, VALUE_STORAGE_FULL, VALUE_TOO_LARGE, WAIT_TIMED_OUT, } = CLI;
140
- export const { BUILD_RATE_LIMITED, FUNCTION_INVALID, FUNCTION_TOO_LARGE, GAME_HANDLE_CHANGED, GAME_LIMIT_REACHED, GAME_MISMATCH, GAME_UNAVAILABLE, GITHUB_APP_NOT_INSTALLED, INTERNAL, MANIFEST_INVALID, RELEASE_EXPIRED, REPO_NOT_CONNECTED, VERSION_EXISTS, VERSION_MISMATCH, ZIP_INVALID, ZIP_MISSING, ZIP_TOO_LARGE, } = RELEASE;
144
+ export const { BUILD_RATE_LIMITED, FUNCTION_INVALID, FUNCTION_TOO_LARGE, GAME_HANDLE_CHANGED, GAME_LIMIT_REACHED, GAME_MISMATCH, GAME_UNAVAILABLE, GITHUB_APP_NOT_INSTALLED, INTERNAL, MANIFEST_INVALID, PACKAGE_PATH_INVALID, RELEASE_EXPIRED, REPO_NOT_CONNECTED, VERSION_EXISTS, VERSION_MISMATCH, ZIP_INVALID, ZIP_MISSING, ZIP_TOO_LARGE, } = RELEASE;
141
145
  export const { GIT_TAG_INVALID, WORKFLOW_MISSING } = GITHUB;
@@ -6,6 +6,10 @@ const MB = 1024 * 1024;
6
6
  // [declare]
7
7
  // the most files in the zip.
8
8
  export const FILES = 10000;
9
+ // the most entries in the zip, files and folders together (the subscriber's
10
+ // MAX_ENTRY_COUNT), so a deep tree of folders can't pass the files' limit
11
+ // and fail there.
12
+ export const ENTRIES = 20000;
9
13
  // the largest file, uncompressed.
10
14
  export const FILE_SIZE = 64 * MB;
11
15
  // everything packed, uncompressed.
@@ -158,7 +158,7 @@ export function uploadFailed(status) {
158
158
  }
159
159
  // [function]
160
160
  export function deployRateLimited(version) {
161
- return blocks(`v${version} was deployed in the last 5 minutes.`, "Wait, then deploy again.");
161
+ return blocks(`v${version} was deployed in the last 5 minutes, or this account deployed 30 times in the last hour.`, "Wait, then deploy again.");
162
162
  }
163
163
  // [function]
164
164
  export function waitTimedOut() {
@@ -1,4 +1,4 @@
1
- // a game's function: `arc function`, its secrets, and the function as arc
1
+ // a game's function: `arc unstable function`, its secrets, and the function as arc
2
2
  // build and arc serve run it.
3
3
  // [import]
4
4
  import { blocks } from "./internal.js";
@@ -17,7 +17,7 @@ export function secretRemoveQuestion({ channel, name, }) {
17
17
  // a paused function, or a pause on a channel with no function to stop.
18
18
  export function functionPaused({ channel, function: has, }) {
19
19
  if (has === false) {
20
- return blocks(`Paused ${channel}, which has no function yet.`, `A release with one stays stopped until \`arc function resume --${channel}\`.`);
20
+ return blocks(`Paused ${channel}, which has no function yet.`, `A release with one stays stopped until \`arc unstable function resume --${channel}\`.`);
21
21
  }
22
22
  return `Paused the game's function on ${channel}. It stops answering within a minute.`;
23
23
  }
@@ -99,7 +99,7 @@ export function functionPauseReserved({ channel, paused, }) {
99
99
  return blocks(`The game's function is paused by Arcadible on ${channel}.`, "Only Arcadible can resume it.");
100
100
  }
101
101
  if (paused === "limit") {
102
- return blocks(`The game's function is at a limit on ${channel}.`, "It resumes by itself as the day or the month turns (UTC): `arc function status` says when.");
102
+ return blocks(`The game's function is at a limit on ${channel}.`, "It resumes by itself as the day or the month turns (UTC): `arc unstable function status` says when.");
103
103
  }
104
104
  return `The game's function is paused on ${channel}, and not by you.`;
105
105
  }
@@ -111,7 +111,7 @@ export function secretSet({ channel, name, }) {
111
111
  // a secret a build declares that has no value on the channel it goes to,
112
112
  // which `arc deploy` warns of (not yet: action/predeploy/secrets.ts).
113
113
  export function secretUnset({ channel, name, }) {
114
- return `Secret ${name} has no value on ${channel}.\nSet it with \`arc function secret set ${name} --${channel}\`.`;
114
+ return `Secret ${name} has no value on ${channel}.\nSet it with \`arc unstable function secret set ${name} --${channel}\`.`;
115
115
  }
116
116
  // [function]
117
117
  export function secretRemoved({ channel, name, }) {
@@ -124,11 +124,11 @@ export function secretNone() {
124
124
  // [function]
125
125
  // the most secrets a game has for a channel, when one more is asked for.
126
126
  export function secretLimitReached(channel) {
127
- return blocks(`Sixteen secrets already for ${channel}.`, "Remove one with `arc function secret remove <name>`, then try again.");
127
+ return blocks(`Sixteen secrets already for ${channel}.`, "Remove one with `arc unstable function secret remove <name>`, then try again.");
128
128
  }
129
129
  // [function]
130
130
  export function secretNotFound({ channel, name, }) {
131
- return blocks(`Secret not found: ${name}`, `It isn't set for ${channel}.\n\`arc function secret list\` shows the game's secrets.`);
131
+ return blocks(`Secret not found: ${name}`, `It isn't set for ${channel}.\n\`arc unstable function secret list\` shows the game's secrets.`);
132
132
  }
133
133
  // [function]
134
134
  export function secretNameInvalid() {
@@ -140,7 +140,7 @@ export function secretNameInvalid() {
140
140
  }
141
141
  // [function]
142
142
  export function secretValueInvalid() {
143
- return blocks("A secret's value is 1 to 4096 bytes, on standard input.", 'Such as: printf %s "$EXAMPLE_KEY" | arc function secret set EXAMPLE_KEY');
143
+ return blocks("A secret's value is 1 to 4096 bytes, on standard input.", 'Such as: printf %s "$EXAMPLE_KEY" | arc unstable function secret set EXAMPLE_KEY');
144
144
  }
145
145
  // [function]
146
146
  // what's asked when a secret's value is typed.
@@ -1,4 +1,4 @@
1
- // a game on Arcadible: arc delete.
1
+ // a game on Arcadible: arc unstable game delete.
2
2
  // [import]
3
3
  import { cmdInit } from "./common.js";
4
4
  import { blocks, cmdWhoami } from "./internal.js";
@@ -14,3 +14,4 @@ export * from "./pack.js";
14
14
  export * from "./serve.js";
15
15
  export * from "./server.js";
16
16
  export * from "./value.js";
17
+ export * from "./unstable.js";
@@ -64,6 +64,15 @@ export function packageTooManyFiles(count) {
64
64
  return `Package has more than ${count.toLocaleString("en-US")} files.`;
65
65
  }
66
66
  // [function]
67
+ export function packageTooManyEntries(count) {
68
+ return blocks(`Package has more than ${count.toLocaleString("en-US")} files and folders together.`, "Put the files in fewer folders.");
69
+ }
70
+ // [function]
71
+ // a file whose name a URL reads as another path, which no address reaches.
72
+ export function packagePathInvalid(name) {
73
+ return blocks(`'${name}' isn't a name a browser can ask for: it has a '.' or '..' folder, a backslash, or %2e, %2f, or %5c.`, "Rename it, and the paths that load it.");
74
+ }
75
+ // [function]
67
76
  export function packageUncompressedTooLarge(size) {
68
77
  return `Package is larger than ${size} MB uncompressed.`;
69
78
  }
@@ -1,4 +1,4 @@
1
- // `arc server`: a game's own servers, and their keys.
1
+ // `arc unstable server`: a game's own servers, and their keys.
2
2
  // [import]
3
3
  import { blocks } from "./internal.js";
4
4
  // [function]
@@ -17,11 +17,11 @@ export function keyNone() {
17
17
  // [function]
18
18
  // the most keys a game has for a channel, when one more is asked for.
19
19
  export function keyLimitReached(channel) {
20
- return blocks(`Five keys already for ${channel}.`, "Revoke one with `arc server key revoke <id>`, then try again.");
20
+ return blocks(`Five keys already for ${channel}.`, "Revoke one with `arc unstable server key revoke <id>`, then try again.");
21
21
  }
22
22
  // [function]
23
23
  export function keyNotFound(id) {
24
- return blocks(`Key not found: ${id}`, "It was revoked already, or isn't this game's.\n`arc server key list` shows the game's keys.");
24
+ return blocks(`Key not found: ${id}`, "It was revoked already, or isn't this game's.\n`arc unstable server key list` shows the game's keys.");
25
25
  }
26
26
  // [function]
27
27
  export function keyNameInvalid() {
@@ -32,7 +32,7 @@ export function keyRevokeQuestion() {
32
32
  return "Revoke this key? Servers using it stop working at once, and it can't be undone.";
33
33
  }
34
34
  // [function]
35
- // under `arc server`'s help: what it isn't, a letter away.
35
+ // under `arc unstable server`'s help: what it isn't, a letter away.
36
36
  export function serverNotServe() {
37
37
  return "To run your game on this machine, use `arc serve`.";
38
38
  }
@@ -0,0 +1,6 @@
1
+ // `arc unstable`: the commands for what isn't released yet.
2
+ // [function]
3
+ // the end of `arc unstable --help`.
4
+ export function unstableEpilogue() {
5
+ return "These commands may change or go away in any release.";
6
+ }
@@ -5,9 +5,9 @@ export function valueKeyInvalid(key) {
5
5
  return blocks(`Not a key: ${key}`, "A key is 1 to 128 letters, digits, -, _, ., and /.");
6
6
  }
7
7
  // [function]
8
- // `arc value set` given neither a key nor a folder, or both.
8
+ // `arc unstable value set` given neither a key nor a folder, or both.
9
9
  export function valueSetWhat() {
10
- return blocks("Name a key, or a folder.", "`arc value set <key> --file value.json` sets one value, and `arc value set --dir .arcadible-data/values` sets a value for each .json file in a folder.");
10
+ return blocks("Name a key, or a folder.", "`arc unstable value set <key> --file value.json` sets one value, and `arc unstable value set --dir .arcadible-data/values` sets a value for each .json file in a folder.");
11
11
  }
12
12
  // [function]
13
13
  // a value that isn't JSON: `source` is its file, or standard input.
@@ -28,7 +28,7 @@ export function valueTooLarge(key) {
28
28
  }
29
29
  // [function]
30
30
  export function valueFull(channel) {
31
- return blocks(`The developer's values on ${channel} are full.`, "They hold 10,000 keys and 64 MB. Remove some with `arc value remove <key>`, then try again.");
31
+ return blocks(`The developer's values on ${channel} are full.`, "They hold 10,000 keys and 64 MB. Remove some with `arc unstable value remove <key>`, then try again.");
32
32
  }
33
33
  // [function]
34
34
  export function valueSet({ channel, keys, }) {
@@ -39,7 +39,7 @@ export function valueSet({ channel, keys, }) {
39
39
  }
40
40
  // [function]
41
41
  export function valueNotFound({ channel, key, }) {
42
- return blocks(`Value not found: ${key}`, `It isn't set on ${channel}.\n\`arc value list --${channel}\` shows what is.`);
42
+ return blocks(`Value not found: ${key}`, `It isn't set on ${channel}.\n\`arc unstable value list --${channel}\` shows what is.`);
43
43
  }
44
44
  // [function]
45
45
  export function valueRemoveQuestion({ channel, key, }) {
@@ -1,5 +1,4 @@
1
1
  // [import]
2
- import { readdirSync } from "node:fs";
3
2
  import { isAbsolute, join, relative, resolve, sep } from "node:path";
4
3
  // [import]
5
4
  import fs from "fs-extra";
@@ -35,23 +34,3 @@ export function avoids(root, target, name) {
35
34
  .split(sep)
36
35
  .includes(name);
37
36
  }
38
- // [function]
39
- // whether an existing `target` has `file` at its root. A directory that
40
- // doesn't exist yet, because a build step creates it, passes.
41
- export function hasFile(root, target, file) {
42
- return !exists(root, target) || exists(join(root, target), file);
43
- }
44
- // [function]
45
- // whether `target` has none of `names` at its root.
46
- export function lacksFiles(root, target, names) {
47
- return names.every((name) => !exists(join(root, target), name));
48
- }
49
- // [function]
50
- // whether an existing `target` lacks a folder named `name` at its root, in any
51
- // letter case, since a build's paths are case-sensitive once it's served.
52
- export function lacksFolder(root, target, name) {
53
- if (!exists(root, target)) {
54
- return true;
55
- }
56
- return !readdirSync(join(root, target), { withFileTypes: true }).some((entry) => entry.isDirectory() && entry.name.toLowerCase() === name);
57
- }
@@ -3,19 +3,13 @@ import * as z from "zod";
3
3
  // [import]
4
4
  import { ISSUE } from "../config/code.js";
5
5
  import { buildCommand } from "../util/command.js";
6
- import { MEDIA, PACKAGED } from "../config/file.js";
6
+ import { MEDIA } from "../config/file.js";
7
7
  import { cmdInspect } from "../phrase/index.js";
8
8
  import { messages } from "./message.js";
9
9
  import { isTable } from "../util/objs.js";
10
- import { handle, title } from "../config/product.js";
11
- import { avoids as avoidsCheck, exists as existsCheck, hasFile as hasFileCheck, isInside as isInsideCheck, isRelative as isRelativeCheck, isRoot as isRootCheck, lacksFiles as lacksFilesCheck, lacksFolder as lacksFolderCheck, } from "./check/workflow.js";
10
+ import { avoids as avoidsCheck, exists as existsCheck, isInside as isInsideCheck, isRelative as isRelativeCheck, isRoot as isRootCheck, } from "./check/workflow.js";
12
11
  // [declare]
13
12
  const message = messages("workflow");
14
- const INDEX = "index.html";
15
- const RESERVED = [PACKAGED, MEDIA];
16
- // the folder every build's origin keeps for Arcadible's own files, such as
17
- // the script games include. arc pack checks it again after the build.
18
- const RESERVED_FOLDER = handle;
19
13
  // [function]
20
14
  // whether `build` runs anything, as `arc build` runs it.
21
15
  function hasBuild(build) {
@@ -36,8 +30,10 @@ function zBuild() {
36
30
  return z.union([z.string(), z.array(z.string())], { error: typeMessage });
37
31
  }
38
32
  // [function]
39
- // a directory inside the project with an index.html. Each check aborts the
40
- // rest when it fails, so one bad path gets one issue.
33
+ // a directory inside the project, which exists unless a build makes it.
34
+ // Only the path is checked: what's in it is the build's, checked by arc pack
35
+ // once it's built (package_index_missing, package_path_reserved). Each
36
+ // check aborts the rest when it fails, so one bad path gets one issue.
41
37
  function zDeployDir(root, { build }) {
42
38
  const field = "deploy_dir";
43
39
  return z
@@ -68,24 +64,6 @@ function zDeployDir(root, { build }) {
68
64
  `Run ${cmdInspect()} for details.`,
69
65
  ], ISSUE.PATH_INVALID),
70
66
  abort: true,
71
- })
72
- .refine((file) => hasFileCheck(root, file, INDEX), {
73
- ...message(field, [`Must have an ${INDEX} at its root.`], ISSUE.INDEX_MISSING),
74
- abort: true,
75
- })
76
- .refine((file) => lacksFilesCheck(root, file, RESERVED), {
77
- ...message(field, [
78
- `Must not have ${RESERVED.join(" or ")} at its root.`,
79
- `They're reserved for the files ${title} adds.`,
80
- ], ISSUE.PATH_INVALID),
81
- abort: true,
82
- })
83
- .refine((file) => lacksFolderCheck(root, file, RESERVED_FOLDER), {
84
- ...message(field, [
85
- `Must not have an ${RESERVED_FOLDER} folder at its root, in any letter case.`,
86
- `It's reserved for ${title}'s own files.`,
87
- ], ISSUE.PATH_INVALID),
88
- abort: true,
89
67
  });
90
68
  }
91
69
  // [function]
package/dist/util/zip.js CHANGED
@@ -51,6 +51,11 @@ export class Zip {
51
51
  }));
52
52
  }
53
53
  // [method]
54
+ // every entry in the zip, files and folders.
55
+ count() {
56
+ return this.zip.getEntries().length;
57
+ }
58
+ // [method]
54
59
  has(name) {
55
60
  return this.zip.getEntry(join(this.prefix, name)) !== null;
56
61
  }
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "license": "Apache-2.0",
46
46
  "name": "arcadible",
47
- "version": "1.0.36"
47
+ "version": "1.0.37"
48
48
  },
49
49
  "node_modules/@asamuzakjp/css-color": {
50
50
  "dependencies": {
@@ -884,20 +884,6 @@
884
884
  "resolved": "https://registry.npmjs.org/@inquirer/core/-/core-10.3.2.tgz",
885
885
  "version": "10.3.2"
886
886
  },
887
- "node_modules/@inquirer/core/node_modules/wrap-ansi": {
888
- "dependencies": {
889
- "ansi-styles": "^4.0.0",
890
- "string-width": "^4.1.0",
891
- "strip-ansi": "^6.0.0"
892
- },
893
- "engines": {
894
- "node": ">=8"
895
- },
896
- "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==",
897
- "license": "MIT",
898
- "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz",
899
- "version": "6.2.0"
900
- },
901
887
  "node_modules/@inquirer/editor": {
902
888
  "dependencies": {
903
889
  "@inquirer/core": "^10.3.2",
@@ -1247,10 +1233,10 @@
1247
1233
  "engines": {
1248
1234
  "node": ">= 4"
1249
1235
  },
1250
- "integrity": "sha512-wCBiZ77u1tuWde6G/nfOtLaCTYcFDU5yCzARzK10y+rLhzYoL7a7yEemcopcc2Mzow7gZOIjnV2ym1NYmdiJOQ==",
1236
+ "integrity": "sha512-52N+Y4HRMOJmbLmr+DqO4iSRyyB7N52gm7PWCT6h0p978+oKbqHCB7gIJIwZvBUsjlSdWbrBFqUSmIFNZMpn0A==",
1251
1237
  "license": "MIT",
1252
- "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.14.tgz",
1253
- "version": "7.0.14"
1238
+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.16.tgz",
1239
+ "version": "7.0.16"
1254
1240
  },
1255
1241
  "node_modules/@typescript-eslint/parser": {
1256
1242
  "dependencies": {
@@ -1645,6 +1631,23 @@
1645
1631
  "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",
1646
1632
  "version": "8.0.1"
1647
1633
  },
1634
+ "node_modules/cliui/node_modules/wrap-ansi": {
1635
+ "dependencies": {
1636
+ "ansi-styles": "^4.0.0",
1637
+ "string-width": "^4.1.0",
1638
+ "strip-ansi": "^6.0.0"
1639
+ },
1640
+ "engines": {
1641
+ "node": ">=10"
1642
+ },
1643
+ "funding": {
1644
+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
1645
+ },
1646
+ "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
1647
+ "license": "MIT",
1648
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
1649
+ "version": "7.0.0"
1650
+ },
1648
1651
  "node_modules/color-convert": {
1649
1652
  "dependencies": {
1650
1653
  "color-name": "~1.1.4"
@@ -2158,10 +2161,10 @@
2158
2161
  "version": "6.0.2"
2159
2162
  },
2160
2163
  "node_modules/graceful-fs": {
2161
- "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",
2162
- "license": "ISC",
2163
- "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
2164
- "version": "4.2.11"
2164
+ "integrity": "sha512-iuyGF2E4oafQfPsRrG2wtY2ILupMhvtdrhzrxB+0VcjsPpSPttpfYdjnGFGsTi5MaJFjI1jOKHPQ6UTbTj9TAw==",
2165
+ "license": "BlueOak-1.0.0",
2166
+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.12.tgz",
2167
+ "version": "4.2.12"
2165
2168
  },
2166
2169
  "node_modules/hashery": {
2167
2170
  "dependencies": {
@@ -2540,10 +2543,10 @@
2540
2543
  "funding": {
2541
2544
  "url": "https://github.com/sponsors/isaacs"
2542
2545
  },
2543
- "integrity": "sha512-nFQuYSTVrGvysVBps5Ih+0BdnYFN/Cj3C816r6+p7yK+FHrVLGE4O4N9AFwykrlNlvM2HYt+Rad1Uiro6h88Ig==",
2546
+ "integrity": "sha512-KCFkfyjqerNlSstjlhIGNXIKZGA/6O4V4RlhZ+Dsr621SPPw0mzlypE9D9ZOoPiVefHID+j7/XuMMlqfD/F60Q==",
2544
2547
  "license": "BlueOak-1.0.0",
2545
- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.8.tgz",
2546
- "version": "11.0.8"
2548
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.9.tgz",
2549
+ "version": "11.0.9"
2547
2550
  },
2548
2551
  "node_modules/mp4box": {
2549
2552
  "engines": {
@@ -3134,15 +3137,12 @@
3134
3137
  "strip-ansi": "^6.0.0"
3135
3138
  },
3136
3139
  "engines": {
3137
- "node": ">=10"
3138
- },
3139
- "funding": {
3140
- "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
3140
+ "node": ">=8"
3141
3141
  },
3142
- "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
3142
+ "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==",
3143
3143
  "license": "MIT",
3144
- "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
3145
- "version": "7.0.0"
3144
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz",
3145
+ "version": "6.2.0"
3146
3146
  },
3147
3147
  "node_modules/ws": {
3148
3148
  "engines": {
@@ -3267,5 +3267,5 @@
3267
3267
  }
3268
3268
  },
3269
3269
  "requires": true,
3270
- "version": "1.0.36"
3270
+ "version": "1.0.37"
3271
3271
  }
package/package.json CHANGED
@@ -68,5 +68,5 @@
68
68
  "test": "tsc && npm run lint && node --test \"test/**/*.test.js\" \"test/**/*.test.mjs\""
69
69
  },
70
70
  "type": "module",
71
- "version": "1.0.36"
71
+ "version": "1.0.37"
72
72
  }