@aku11i/phantom 1.1.0 → 1.1.1
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/package.json +1 -1
- package/phantom.js +20 -5
package/package.json
CHANGED
package/phantom.js
CHANGED
|
@@ -1000,6 +1000,7 @@ complete -c phantom -n "__phantom_using_command" -a "exec" -d "Execute a command
|
|
|
1000
1000
|
complete -c phantom -n "__phantom_using_command" -a "shell" -d "Open an interactive shell in a worktree directory"
|
|
1001
1001
|
complete -c phantom -n "__phantom_using_command" -a "version" -d "Display phantom version information"
|
|
1002
1002
|
complete -c phantom -n "__phantom_using_command" -a "completion" -d "Generate shell completion scripts"
|
|
1003
|
+
complete -c phantom -n "__phantom_using_command" -a "mcp" -d "Manage Model Context Protocol (MCP) server"
|
|
1003
1004
|
|
|
1004
1005
|
# Global options
|
|
1005
1006
|
complete -c phantom -l help -d "Show help (-h)"
|
|
@@ -1047,7 +1048,10 @@ complete -c phantom -n "__phantom_using_command shell" -l tmux-horizontal -d "Op
|
|
|
1047
1048
|
complete -c phantom -n "__phantom_using_command shell" -a "(__phantom_list_worktrees)"
|
|
1048
1049
|
|
|
1049
1050
|
# completion command - shell names
|
|
1050
|
-
complete -c phantom -n "__phantom_using_command completion" -a "fish zsh bash" -d "Shell type"
|
|
1051
|
+
complete -c phantom -n "__phantom_using_command completion" -a "fish zsh bash" -d "Shell type"
|
|
1052
|
+
|
|
1053
|
+
# mcp command options
|
|
1054
|
+
complete -c phantom -n "__phantom_using_command mcp" -a "serve" -d "Start MCP server"`;
|
|
1051
1055
|
var ZSH_COMPLETION_SCRIPT = `#compdef phantom
|
|
1052
1056
|
# Zsh completion for phantom
|
|
1053
1057
|
# Load with: eval "$(phantom completion zsh)"
|
|
@@ -1065,6 +1069,7 @@ _phantom() {
|
|
|
1065
1069
|
'shell:Open an interactive shell in a worktree directory'
|
|
1066
1070
|
'version:Display phantom version information'
|
|
1067
1071
|
'completion:Generate shell completion scripts'
|
|
1072
|
+
'mcp:Manage Model Context Protocol (MCP) server'
|
|
1068
1073
|
)
|
|
1069
1074
|
|
|
1070
1075
|
_arguments -C \\
|
|
@@ -1139,6 +1144,10 @@ _phantom() {
|
|
|
1139
1144
|
_arguments \\
|
|
1140
1145
|
'1:shell:(fish zsh bash)'
|
|
1141
1146
|
;;
|
|
1147
|
+
mcp)
|
|
1148
|
+
_arguments \\
|
|
1149
|
+
'1:action:(serve)'
|
|
1150
|
+
;;
|
|
1142
1151
|
esac
|
|
1143
1152
|
;;
|
|
1144
1153
|
esac
|
|
@@ -1160,7 +1169,7 @@ _phantom_completion() {
|
|
|
1160
1169
|
local cur prev words cword
|
|
1161
1170
|
_init_completion || return
|
|
1162
1171
|
|
|
1163
|
-
local commands="create attach list where delete exec shell version completion"
|
|
1172
|
+
local commands="create attach list where delete exec shell version completion mcp"
|
|
1164
1173
|
local global_opts="--help --version"
|
|
1165
1174
|
|
|
1166
1175
|
if [[ \${cword} -eq 1 ]]; then
|
|
@@ -1294,6 +1303,11 @@ _phantom_completion() {
|
|
|
1294
1303
|
# No completion for version command
|
|
1295
1304
|
return 0
|
|
1296
1305
|
;;
|
|
1306
|
+
mcp)
|
|
1307
|
+
local actions="serve"
|
|
1308
|
+
COMPREPLY=( $(compgen -W "\${actions}" -- "\${cur}") )
|
|
1309
|
+
return 0
|
|
1310
|
+
;;
|
|
1297
1311
|
*)
|
|
1298
1312
|
# Unknown command
|
|
1299
1313
|
return 0
|
|
@@ -9092,7 +9106,7 @@ var StdioServerTransport = class {
|
|
|
9092
9106
|
// ../mcp/package.json
|
|
9093
9107
|
var package_default = {
|
|
9094
9108
|
name: "@aku11i/phantom-mcp",
|
|
9095
|
-
version: "1.
|
|
9109
|
+
version: "1.1.0",
|
|
9096
9110
|
private: true,
|
|
9097
9111
|
type: "module",
|
|
9098
9112
|
main: "./src/index.ts",
|
|
@@ -9574,7 +9588,7 @@ import { parseArgs as parseArgs8 } from "node:util";
|
|
|
9574
9588
|
// package.json
|
|
9575
9589
|
var package_default2 = {
|
|
9576
9590
|
name: "@aku11i/phantom-cli",
|
|
9577
|
-
version: "1.
|
|
9591
|
+
version: "1.1.0",
|
|
9578
9592
|
private: true,
|
|
9579
9593
|
type: "module",
|
|
9580
9594
|
scripts: {
|
|
@@ -9582,7 +9596,8 @@ var package_default2 = {
|
|
|
9582
9596
|
prebuild: "git clean -fdx dist",
|
|
9583
9597
|
build: "node build.ts",
|
|
9584
9598
|
typecheck: "tsc --noEmit",
|
|
9585
|
-
test: 'node --test --experimental-strip-types --experimental-test-module-mocks "src/**/*.test.js"'
|
|
9599
|
+
test: 'node --test --experimental-strip-types --experimental-test-module-mocks "src/**/*.test.js"',
|
|
9600
|
+
prepublishOnly: "pnpm build"
|
|
9586
9601
|
},
|
|
9587
9602
|
dependencies: {
|
|
9588
9603
|
"@aku11i/phantom-core": "workspace:*",
|