Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AGENTS.npm.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const result = await bash.exec("cat input.txt | grep pattern");

**File operations**: `basename`, `chmod`, `cp`, `dirname`, `du`, `file`, `find`, `ln`, `ls`, `mkdir`, `mv`, `od`, `pwd`, `readlink`, `rm`, `rmdir`, `split`, `stat`, `touch`, `tree`

**Utilities**: `alias`, `base64`, `bash`, `clear`, `curl`, `date`, `diff`, `echo`, `env`, `expr`, `false`, `gzip`, `gunzip`, `help`, `history`, `hostname`, `html-to-markdown`, `md5sum`, `printenv`, `printf`, `seq`, `sh`, `sha1sum`, `sha256sum`, `sleep`, `tar`, `tee`, `time`, `timeout`, `true`, `unalias`, `which`, `whoami`, `zcat`
**Utilities**: `alias`, `base64`, `bash`, `clear`, `curl`, `date`, `diff`, `echo`, `env`, `expr`, `false`, `gzip`, `gunzip`, `help`, `history`, `hostname`, `html-to-markdown`, `md5sum`, `printenv`, `printf`, `seq`, `sh`, `sha1sum`, `sha256sum`, `sleep`, `specli`, `tar`, `tee`, `time`, `timeout`, `true`, `unalias`, `which`, `whoami`, `zcat`

All commands support `--help` for usage details.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ pnpm shell --no-network

### Network Commands

`curl`, `html-to-markdown`
`curl`, `html-to-markdown`, `specli`

All commands support `--help` for usage information.

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
"modern-tar": "^0.7.3",
"papaparse": "^5.5.3",
"smol-toml": "^1.6.0",
"specli": "0.0.39",
"sprintf-js": "^1.1.3",
"sql.js": "^1.13.0",
"turndown": "^7.2.2",
Expand Down
183 changes: 179 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion src/commands/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export type CommandName =
| "whoami";

/** Network command names (only available when network is configured) */
export type NetworkCommandName = "curl";
export type NetworkCommandName = "curl" | "specli";

/** All command names including network commands */
export type AllCommandName = CommandName | NetworkCommandName;
Expand Down Expand Up @@ -491,6 +491,14 @@ const networkCommandLoaders: LazyCommandDef<NetworkCommandName>[] = [
},
];

// specli doesn't work in browsers (uses Node.js-specific dependencies)
if (typeof __BROWSER__ === "undefined" || !__BROWSER__) {
networkCommandLoaders.push({
name: "specli" as NetworkCommandName,
load: async () => (await import("./specli/specli.js")).specliCommand,
});
}

// Cache for loaded commands
const cache = new Map<string, Command>();

Expand Down
Loading