just-bash 2.7.2 → 2.8.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/README.md +19 -1
- package/dist/Bash.d.ts +6 -0
- package/dist/bin/just-bash.js +137 -136
- package/dist/bin/shell/shell.js +136 -136
- package/dist/bundle/browser.js +360 -360
- package/dist/bundle/index.js +139 -139
- package/dist/commands/registry.d.ts +15 -3
- package/dist/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { Command } from "../types.js";
|
|
2
2
|
/** All available built-in command names (excludes network commands) */
|
|
3
|
-
export type CommandName = "echo" | "cat" | "printf" | "ls" | "mkdir" | "rmdir" | "touch" | "rm" | "cp" | "mv" | "ln" | "chmod" | "pwd" | "readlink" | "head" | "tail" | "wc" | "stat" | "grep" | "fgrep" | "egrep" | "rg" | "sed" | "awk" | "sort" | "uniq" | "comm" | "cut" | "paste" | "tr" | "rev" | "nl" | "fold" | "expand" | "unexpand" | "strings" | "split" | "column" | "join" | "tee" | "find" | "basename" | "dirname" | "tree" | "du" | "env" | "printenv" | "alias" | "unalias" | "history" | "xargs" | "true" | "false" | "clear" | "bash" | "sh" | "jq" | "base64" | "diff" | "date" | "sleep" | "timeout" | "seq" | "expr" | "md5sum" | "sha1sum" | "sha256sum" | "file" | "html-to-markdown" | "help" | "which" | "tac" | "hostname" | "od" | "gzip" | "gunzip" | "zcat" | "tar" | "yq" | "xan" | "sqlite3" | "time" | "whoami"
|
|
3
|
+
export type CommandName = "echo" | "cat" | "printf" | "ls" | "mkdir" | "rmdir" | "touch" | "rm" | "cp" | "mv" | "ln" | "chmod" | "pwd" | "readlink" | "head" | "tail" | "wc" | "stat" | "grep" | "fgrep" | "egrep" | "rg" | "sed" | "awk" | "sort" | "uniq" | "comm" | "cut" | "paste" | "tr" | "rev" | "nl" | "fold" | "expand" | "unexpand" | "strings" | "split" | "column" | "join" | "tee" | "find" | "basename" | "dirname" | "tree" | "du" | "env" | "printenv" | "alias" | "unalias" | "history" | "xargs" | "true" | "false" | "clear" | "bash" | "sh" | "jq" | "base64" | "diff" | "date" | "sleep" | "timeout" | "seq" | "expr" | "md5sum" | "sha1sum" | "sha256sum" | "file" | "html-to-markdown" | "help" | "which" | "tac" | "hostname" | "od" | "gzip" | "gunzip" | "zcat" | "tar" | "yq" | "xan" | "sqlite3" | "time" | "whoami";
|
|
4
4
|
/** Network command names (only available when network is configured) */
|
|
5
5
|
export type NetworkCommandName = "curl";
|
|
6
|
-
/**
|
|
7
|
-
export type
|
|
6
|
+
/** Python command names (only available when python is explicitly enabled) */
|
|
7
|
+
export type PythonCommandName = "python3" | "python";
|
|
8
|
+
/** All command names including network and python commands */
|
|
9
|
+
export type AllCommandName = CommandName | NetworkCommandName | PythonCommandName;
|
|
8
10
|
/**
|
|
9
11
|
* Gets all available command names (excludes network commands)
|
|
10
12
|
*/
|
|
@@ -23,6 +25,16 @@ export declare function createLazyCommands(filter?: CommandName[]): Command[];
|
|
|
23
25
|
* These are only registered when network is explicitly configured.
|
|
24
26
|
*/
|
|
25
27
|
export declare function createNetworkCommands(): Command[];
|
|
28
|
+
/**
|
|
29
|
+
* Gets all python command names
|
|
30
|
+
*/
|
|
31
|
+
export declare function getPythonCommandNames(): string[];
|
|
32
|
+
/**
|
|
33
|
+
* Creates python commands for registration (python3, python).
|
|
34
|
+
* These are only registered when python is explicitly enabled.
|
|
35
|
+
* Note: Python introduces additional security surface (arbitrary code execution).
|
|
36
|
+
*/
|
|
37
|
+
export declare function createPythonCommands(): Command[];
|
|
26
38
|
/**
|
|
27
39
|
* Clears the command cache (for testing)
|
|
28
40
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type { BashLogger, BashOptions, ExecOptions } from "./Bash.js";
|
|
2
2
|
export { Bash } from "./Bash.js";
|
|
3
|
-
export type { AllCommandName, CommandName, NetworkCommandName, } from "./commands/registry.js";
|
|
4
|
-
export { getCommandNames, getNetworkCommandNames, } from "./commands/registry.js";
|
|
3
|
+
export type { AllCommandName, CommandName, NetworkCommandName, PythonCommandName, } from "./commands/registry.js";
|
|
4
|
+
export { getCommandNames, getNetworkCommandNames, getPythonCommandNames, } from "./commands/registry.js";
|
|
5
5
|
export type { CustomCommand, LazyCommand } from "./custom-commands.js";
|
|
6
6
|
export { defineCommand } from "./custom-commands.js";
|
|
7
7
|
export { InMemoryFs } from "./fs/in-memory-fs/index.js";
|