@lanonasis/cli 3.6.3 → 3.6.5
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/dist/commands/api-keys.d.ts +1 -2
- package/dist/commands/api-keys.js +78 -73
- package/dist/commands/auth.js +167 -160
- package/dist/commands/completion.js +39 -31
- package/dist/commands/config.js +201 -162
- package/dist/commands/enhanced-memory.js +17 -11
- package/dist/commands/guide.js +88 -79
- package/dist/commands/init.js +20 -14
- package/dist/commands/mcp.js +173 -142
- package/dist/commands/memory.js +83 -77
- package/dist/commands/organization.js +21 -15
- package/dist/commands/topics.js +58 -52
- package/dist/core/achievements.js +26 -19
- package/dist/core/architecture.js +59 -42
- package/dist/core/dashboard.js +81 -71
- package/dist/core/error-handler.js +39 -30
- package/dist/core/power-mode.js +53 -46
- package/dist/core/progress.js +44 -35
- package/dist/core/welcome.js +64 -56
- package/dist/enhanced-cli.js +58 -49
- package/dist/index-simple.js +112 -74
- package/dist/index.js +68 -63
- package/dist/mcp/access-control.js +17 -13
- package/dist/mcp/client/enhanced-client.js +23 -16
- package/dist/mcp/enhanced-server.js +14 -10
- package/dist/mcp/logger.js +6 -2
- package/dist/mcp/memory-state.js +17 -13
- package/dist/mcp/schemas/tool-schemas.d.ts +28 -28
- package/dist/mcp/schemas/tool-schemas.js +126 -122
- package/dist/mcp/server/lanonasis-server.js +51 -44
- package/dist/mcp/transports/transport-manager.js +25 -18
- package/dist/mcp/vector-store.js +10 -6
- package/dist/mcp-server.js +21 -17
- package/dist/utils/api.js +30 -21
- package/dist/utils/config.js +61 -15
- package/dist/utils/formatting.js +14 -6
- package/dist/utils/mcp-client.js +132 -77
- package/package.json +17 -92
- package/dist/completions/bash-completion.sh +0 -88
- package/dist/completions/fish-completion.fish +0 -132
- package/dist/completions/zsh-completion.zsh +0 -196
package/package.json
CHANGED
|
@@ -1,104 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lanonasis/cli",
|
|
3
|
-
"version": "3.6.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "3.6.5",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"types": "dist/index.d.ts",
|
|
6
6
|
"bin": {
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"lanonasis-mcp-server": "dist/mcp-server.js",
|
|
10
|
-
"lanonasis-mcp-cli-aligned": "dist/mcp-server.js",
|
|
11
|
-
"memory": "dist/index-simple.js",
|
|
12
|
-
"maas": "dist/index-simple.js"
|
|
7
|
+
"onasis": "dist/index.js",
|
|
8
|
+
"lanonasis": "dist/index.js"
|
|
13
9
|
},
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"build:mcp-server": "tsc src/mcp/server/lanonasis-server.ts --outDir dist/mcp/server && chmod +x dist/mcp/server/lanonasis-server.js",
|
|
21
|
-
"build:mcp-client": "tsc src/mcp/client/enhanced-client.ts --outDir dist/mcp/client",
|
|
22
|
-
"start": "node dist/index.js",
|
|
23
|
-
"start:mcp-server": "node dist/mcp/server/lanonasis-server.js",
|
|
24
|
-
"test": "NODE_OPTIONS=--experimental-vm-modules jest --testPathIgnorePatterns=\"integration|reliability|persistence\"",
|
|
25
|
-
"test:all": "NODE_OPTIONS=--experimental-vm-modules jest",
|
|
26
|
-
"test:mcp": "NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=mcp",
|
|
27
|
-
"test:integration": "NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\"integration|reliability|persistence\"",
|
|
28
|
-
"test:coverage": "NODE_OPTIONS=--experimental-vm-modules jest --coverage --testPathIgnorePatterns=\"integration|reliability|persistence\"",
|
|
29
|
-
"lint": "eslint .",
|
|
30
|
-
"type-check": "tsc --noEmit",
|
|
31
|
-
"prepare": "npm run build",
|
|
32
|
-
"publish:with-mcp": "npm run build:mcp && npm publish"
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"require": "./dist/index.js",
|
|
14
|
+
"types": "./dist/index.d.ts"
|
|
15
|
+
}
|
|
33
16
|
},
|
|
34
|
-
"keywords": [
|
|
35
|
-
"lanonasis",
|
|
36
|
-
"cli",
|
|
37
|
-
"memory",
|
|
38
|
-
"ai",
|
|
39
|
-
"maas",
|
|
40
|
-
"enterprise",
|
|
41
|
-
"infrastructure",
|
|
42
|
-
"orchestrator",
|
|
43
|
-
"api-keys",
|
|
44
|
-
"secrets",
|
|
45
|
-
"mcp",
|
|
46
|
-
"security"
|
|
47
|
-
],
|
|
48
|
-
"author": "Lanonasis (Seye Derick)",
|
|
49
|
-
"license": "MIT",
|
|
50
17
|
"files": [
|
|
51
18
|
"dist",
|
|
52
|
-
"README.md"
|
|
19
|
+
"README.md",
|
|
20
|
+
"LICENSE"
|
|
53
21
|
],
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
},
|
|
58
|
-
"repository": {
|
|
59
|
-
"type": "git",
|
|
60
|
-
"url": "git+https://github.com/lanonasis/lanonasis-maas.git",
|
|
61
|
-
"directory": "cli"
|
|
62
|
-
},
|
|
63
|
-
"bugs": {
|
|
64
|
-
"url": "https://github.com/lanonasis/lanonasis-maas/issues"
|
|
65
|
-
},
|
|
66
|
-
"homepage": "https://github.com/lanonasis/lanonasis-maas#readme",
|
|
67
|
-
"dependencies": {
|
|
68
|
-
"@modelcontextprotocol/sdk": "^1.17.4",
|
|
69
|
-
"@types/eventsource": "^1.1.15",
|
|
70
|
-
"@types/ws": "^8.18.1",
|
|
71
|
-
"axios": "^1.12.0",
|
|
72
|
-
"boxen": "^7.1.1",
|
|
73
|
-
"chalk": "^5.5.0",
|
|
74
|
-
"cli-progress": "^3.12.0",
|
|
75
|
-
"cli-table3": "^0.6.5",
|
|
76
|
-
"commander": "^12.1.0",
|
|
77
|
-
"date-fns": "^4.1.0",
|
|
78
|
-
"dotenv": "^17.2.1",
|
|
79
|
-
"eventsource": "^4.0.0",
|
|
80
|
-
"inquirer": "^12.9.3",
|
|
81
|
-
"jwt-decode": "^4.0.0",
|
|
82
|
-
"open": "^10.2.0",
|
|
83
|
-
"ora": "^8.2.0",
|
|
84
|
-
"table": "^6.9.0",
|
|
85
|
-
"word-wrap": "^1.2.5",
|
|
86
|
-
"ws": "^8.18.3"
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "rimraf dist && tsc -p tsconfig.json",
|
|
24
|
+
"prepublishOnly": "npm run build"
|
|
87
25
|
},
|
|
88
26
|
"devDependencies": {
|
|
89
|
-
"
|
|
90
|
-
"@types/inquirer": "^9.0.7",
|
|
91
|
-
"@types/jest": "^29.5.14",
|
|
92
|
-
"@types/node": "^22.10.2",
|
|
93
|
-
"@typescript-eslint/eslint-plugin": "^8.18.1",
|
|
94
|
-
"@typescript-eslint/parser": "^8.18.1",
|
|
95
|
-
"eslint": "^9.17.0",
|
|
96
|
-
"jest": "^29.7.0",
|
|
97
|
-
"ts-jest": "^29.2.5",
|
|
98
|
-
"tsx": "^4.19.2",
|
|
99
|
-
"typescript": "^5.7.2"
|
|
100
|
-
},
|
|
101
|
-
"engines": {
|
|
102
|
-
"node": ">=18.0.0"
|
|
27
|
+
"rimraf": "^6.1.0"
|
|
103
28
|
}
|
|
104
29
|
}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
|
|
3
|
-
# Lanonasis/Onasis CLI Bash Completion
|
|
4
|
-
# Installation: source this file or copy to /etc/bash_completion.d/
|
|
5
|
-
|
|
6
|
-
_lanonasis_completions() {
|
|
7
|
-
local cur prev words cword
|
|
8
|
-
_init_completion || return
|
|
9
|
-
|
|
10
|
-
# Get completion data from CLI
|
|
11
|
-
local completion_data
|
|
12
|
-
completion_data=$(lanonasis --completion-data 2>/dev/null || echo '{}')
|
|
13
|
-
|
|
14
|
-
case "${COMP_CWORD}" in
|
|
15
|
-
1)
|
|
16
|
-
# Main commands
|
|
17
|
-
local commands=$(echo "$completion_data" | jq -r '.commands[]?.name // empty' 2>/dev/null)
|
|
18
|
-
if [[ -z "$commands" ]]; then
|
|
19
|
-
commands="init login auth logout status health docs memory mem topic topics config org organization api-keys mcp dashboard documentation sdk api rest deploy deployment service services"
|
|
20
|
-
fi
|
|
21
|
-
COMPREPLY=($(compgen -W "$commands" -- "$cur"))
|
|
22
|
-
;;
|
|
23
|
-
2)
|
|
24
|
-
# Subcommands based on main command
|
|
25
|
-
case "${words[1]}" in
|
|
26
|
-
auth|login)
|
|
27
|
-
COMPREPLY=($(compgen -W "login logout status vendor-key oauth" -- "$cur"))
|
|
28
|
-
;;
|
|
29
|
-
memory|mem)
|
|
30
|
-
COMPREPLY=($(compgen -W "list create get update delete search stats bulk-delete export import" -- "$cur"))
|
|
31
|
-
;;
|
|
32
|
-
topic|topics)
|
|
33
|
-
COMPREPLY=($(compgen -W "list create get update delete" -- "$cur"))
|
|
34
|
-
;;
|
|
35
|
-
config)
|
|
36
|
-
COMPREPLY=($(compgen -W "get set list reset" -- "$cur"))
|
|
37
|
-
;;
|
|
38
|
-
api-keys)
|
|
39
|
-
COMPREPLY=($(compgen -W "list create revoke rotate" -- "$cur"))
|
|
40
|
-
;;
|
|
41
|
-
mcp)
|
|
42
|
-
COMPREPLY=($(compgen -W "status connect disconnect servers tools resources" -- "$cur"))
|
|
43
|
-
;;
|
|
44
|
-
dashboard)
|
|
45
|
-
COMPREPLY=($(compgen -W "status logs open" -- "$cur"))
|
|
46
|
-
;;
|
|
47
|
-
deploy|deployment)
|
|
48
|
-
COMPREPLY=($(compgen -W "status health list" -- "$cur"))
|
|
49
|
-
;;
|
|
50
|
-
service|services)
|
|
51
|
-
COMPREPLY=($(compgen -W "list status restart logs" -- "$cur"))
|
|
52
|
-
;;
|
|
53
|
-
esac
|
|
54
|
-
;;
|
|
55
|
-
*)
|
|
56
|
-
# Options and flags
|
|
57
|
-
case "${prev}" in
|
|
58
|
-
--memory-type)
|
|
59
|
-
COMPREPLY=($(compgen -W "context project knowledge reference personal workflow" -- "$cur"))
|
|
60
|
-
;;
|
|
61
|
-
--output)
|
|
62
|
-
COMPREPLY=($(compgen -W "table json yaml csv" -- "$cur"))
|
|
63
|
-
;;
|
|
64
|
-
--sort-by)
|
|
65
|
-
COMPREPLY=($(compgen -W "created_at updated_at last_accessed access_count" -- "$cur"))
|
|
66
|
-
;;
|
|
67
|
-
--sort-order)
|
|
68
|
-
COMPREPLY=($(compgen -W "asc desc" -- "$cur"))
|
|
69
|
-
;;
|
|
70
|
-
--api-url)
|
|
71
|
-
COMPREPLY=($(compgen -W "https://api.lanonasis.com/api/v1" -- "$cur"))
|
|
72
|
-
;;
|
|
73
|
-
esac
|
|
74
|
-
|
|
75
|
-
# Global flags
|
|
76
|
-
if [[ "$cur" == -* ]]; then
|
|
77
|
-
local global_flags="--help --version --verbose --output --api-url --no-mcp"
|
|
78
|
-
COMPREPLY=($(compgen -W "$global_flags" -- "$cur"))
|
|
79
|
-
fi
|
|
80
|
-
;;
|
|
81
|
-
esac
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
# Register completions for all command aliases
|
|
85
|
-
complete -F _lanonasis_completions lanonasis
|
|
86
|
-
complete -F _lanonasis_completions onasis
|
|
87
|
-
complete -F _lanonasis_completions memory
|
|
88
|
-
complete -F _lanonasis_completions maas
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
# Lanonasis/Onasis CLI Fish Completion
|
|
2
|
-
# Installation: Place in ~/.config/fish/completions/
|
|
3
|
-
|
|
4
|
-
# Helper function to check if a command is being used
|
|
5
|
-
function __fish_lanonasis_using_command
|
|
6
|
-
set -l cmd (commandline -opc)
|
|
7
|
-
if [ (count $cmd) -eq 2 ]
|
|
8
|
-
if [ $argv[1] = $cmd[2] ]
|
|
9
|
-
return 0
|
|
10
|
-
end
|
|
11
|
-
end
|
|
12
|
-
return 1
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
function __fish_lanonasis_using_subcommand
|
|
16
|
-
set -l cmd (commandline -opc)
|
|
17
|
-
if [ (count $cmd) -eq 3 ]
|
|
18
|
-
if [ $argv[1] = $cmd[2] ]; and [ $argv[2] = $cmd[3] ]
|
|
19
|
-
return 0
|
|
20
|
-
end
|
|
21
|
-
end
|
|
22
|
-
return 1
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
# Global options
|
|
26
|
-
complete -c lanonasis -s h -l help -d 'Show help information'
|
|
27
|
-
complete -c lanonasis -s v -l version -d 'Show version information'
|
|
28
|
-
complete -c lanonasis -s V -l verbose -d 'Enable verbose logging'
|
|
29
|
-
complete -c lanonasis -l output -d 'Output format' -xa 'table json yaml csv'
|
|
30
|
-
complete -c lanonasis -l api-url -d 'Override API URL'
|
|
31
|
-
complete -c lanonasis -l no-mcp -d 'Disable MCP and use direct API'
|
|
32
|
-
|
|
33
|
-
# Main commands
|
|
34
|
-
complete -c lanonasis -f -n '__fish_use_subcommand' -a 'init' -d 'Initialize CLI configuration'
|
|
35
|
-
complete -c lanonasis -f -n '__fish_use_subcommand' -a 'login' -d 'Authenticate with your account'
|
|
36
|
-
complete -c lanonasis -f -n '__fish_use_subcommand' -a 'auth' -d 'Authentication commands'
|
|
37
|
-
complete -c lanonasis -f -n '__fish_use_subcommand' -a 'logout' -d 'Logout from your account'
|
|
38
|
-
complete -c lanonasis -f -n '__fish_use_subcommand' -a 'status' -d 'Show system status'
|
|
39
|
-
complete -c lanonasis -f -n '__fish_use_subcommand' -a 'health' -d 'Comprehensive health check'
|
|
40
|
-
complete -c lanonasis -f -n '__fish_use_subcommand' -a 'docs' -d 'Open documentation'
|
|
41
|
-
complete -c lanonasis -f -n '__fish_use_subcommand' -a 'memory' -d 'Memory management commands'
|
|
42
|
-
complete -c lanonasis -f -n '__fish_use_subcommand' -a 'mem' -d 'Memory management (alias)'
|
|
43
|
-
complete -c lanonasis -f -n '__fish_use_subcommand' -a 'topic' -d 'Topic management commands'
|
|
44
|
-
complete -c lanonasis -f -n '__fish_use_subcommand' -a 'topics' -d 'Topic management (alias)'
|
|
45
|
-
complete -c lanonasis -f -n '__fish_use_subcommand' -a 'config' -d 'Configuration management'
|
|
46
|
-
complete -c lanonasis -f -n '__fish_use_subcommand' -a 'org' -d 'Organization management'
|
|
47
|
-
complete -c lanonasis -f -n '__fish_use_subcommand' -a 'organization' -d 'Organization management (alias)'
|
|
48
|
-
complete -c lanonasis -f -n '__fish_use_subcommand' -a 'api-keys' -d 'API key management'
|
|
49
|
-
complete -c lanonasis -f -n '__fish_use_subcommand' -a 'mcp' -d 'Model Context Protocol commands'
|
|
50
|
-
complete -c lanonasis -f -n '__fish_use_subcommand' -a 'dashboard' -d 'Dashboard management'
|
|
51
|
-
complete -c lanonasis -f -n '__fish_use_subcommand' -a 'documentation' -d 'Documentation management'
|
|
52
|
-
complete -c lanonasis -f -n '__fish_use_subcommand' -a 'sdk' -d 'SDK management'
|
|
53
|
-
complete -c lanonasis -f -n '__fish_use_subcommand' -a 'api' -d 'REST API management'
|
|
54
|
-
complete -c lanonasis -f -n '__fish_use_subcommand' -a 'rest' -d 'REST API management (alias)'
|
|
55
|
-
complete -c lanonasis -f -n '__fish_use_subcommand' -a 'deploy' -d 'Deployment management'
|
|
56
|
-
complete -c lanonasis -f -n '__fish_use_subcommand' -a 'deployment' -d 'Deployment management (alias)'
|
|
57
|
-
complete -c lanonasis -f -n '__fish_use_subcommand' -a 'service' -d 'Service management'
|
|
58
|
-
complete -c lanonasis -f -n '__fish_use_subcommand' -a 'services' -d 'Service management (alias)'
|
|
59
|
-
|
|
60
|
-
# Auth subcommands
|
|
61
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command auth' -a 'login' -d 'Login to your account'
|
|
62
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command auth' -a 'logout' -d 'Logout from your account'
|
|
63
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command auth' -a 'status' -d 'Show authentication status'
|
|
64
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command auth' -a 'vendor-key' -d 'Authenticate with vendor key'
|
|
65
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command auth' -a 'oauth' -d 'Browser-based OAuth authentication'
|
|
66
|
-
|
|
67
|
-
# Memory subcommands
|
|
68
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command memory' -a 'list' -d 'List memories'
|
|
69
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command memory' -a 'create' -d 'Create a new memory'
|
|
70
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command memory' -a 'get' -d 'Get a specific memory'
|
|
71
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command memory' -a 'update' -d 'Update an existing memory'
|
|
72
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command memory' -a 'delete' -d 'Delete a memory'
|
|
73
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command memory' -a 'search' -d 'Search memories'
|
|
74
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command memory' -a 'stats' -d 'Show memory statistics'
|
|
75
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command memory' -a 'bulk-delete' -d 'Delete multiple memories'
|
|
76
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command memory' -a 'export' -d 'Export memories'
|
|
77
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command memory' -a 'import' -d 'Import memories'
|
|
78
|
-
|
|
79
|
-
# Memory command options
|
|
80
|
-
complete -c lanonasis -n '__fish_lanonasis_using_subcommand memory create' -l memory-type -xa 'context project knowledge reference personal workflow'
|
|
81
|
-
complete -c lanonasis -n '__fish_lanonasis_using_subcommand memory update' -l memory-type -xa 'context project knowledge reference personal workflow'
|
|
82
|
-
complete -c lanonasis -n '__fish_lanonasis_using_subcommand memory list' -l memory-type -xa 'context project knowledge reference personal workflow'
|
|
83
|
-
complete -c lanonasis -n '__fish_lanonasis_using_subcommand memory list' -l sort-by -xa 'created_at updated_at last_accessed access_count'
|
|
84
|
-
complete -c lanonasis -n '__fish_lanonasis_using_subcommand memory list' -l sort-order -xa 'asc desc'
|
|
85
|
-
|
|
86
|
-
# Topic subcommands
|
|
87
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command topic' -a 'list' -d 'List topics'
|
|
88
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command topic' -a 'create' -d 'Create a new topic'
|
|
89
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command topic' -a 'get' -d 'Get a specific topic'
|
|
90
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command topic' -a 'update' -d 'Update an existing topic'
|
|
91
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command topic' -a 'delete' -d 'Delete a topic'
|
|
92
|
-
|
|
93
|
-
# Config subcommands
|
|
94
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command config' -a 'get' -d 'Get configuration value'
|
|
95
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command config' -a 'set' -d 'Set configuration value'
|
|
96
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command config' -a 'list' -d 'List all configuration'
|
|
97
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command config' -a 'reset' -d 'Reset configuration'
|
|
98
|
-
|
|
99
|
-
# API Keys subcommands
|
|
100
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command api-keys' -a 'list' -d 'List API keys'
|
|
101
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command api-keys' -a 'create' -d 'Create a new API key'
|
|
102
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command api-keys' -a 'revoke' -d 'Revoke an API key'
|
|
103
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command api-keys' -a 'rotate' -d 'Rotate an API key'
|
|
104
|
-
|
|
105
|
-
# MCP subcommands
|
|
106
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command mcp' -a 'status' -d 'Show MCP server status'
|
|
107
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command mcp' -a 'connect' -d 'Connect to MCP server'
|
|
108
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command mcp' -a 'disconnect' -d 'Disconnect from MCP server'
|
|
109
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command mcp' -a 'servers' -d 'List MCP servers'
|
|
110
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command mcp' -a 'tools' -d 'List available tools'
|
|
111
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command mcp' -a 'resources' -d 'List available resources'
|
|
112
|
-
|
|
113
|
-
# Dashboard subcommands
|
|
114
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command dashboard' -a 'status' -d 'Check dashboard status'
|
|
115
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command dashboard' -a 'logs' -d 'View dashboard logs'
|
|
116
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command dashboard' -a 'open' -d 'Open dashboard in browser'
|
|
117
|
-
|
|
118
|
-
# Deploy subcommands
|
|
119
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command deploy' -a 'status' -d 'Show deployment status'
|
|
120
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command deploy' -a 'health' -d 'Check deployment health'
|
|
121
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command deploy' -a 'list' -d 'List deployments'
|
|
122
|
-
|
|
123
|
-
# Service subcommands
|
|
124
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command service' -a 'list' -d 'List services'
|
|
125
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command service' -a 'status' -d 'Show service status'
|
|
126
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command service' -a 'restart' -d 'Restart a service'
|
|
127
|
-
complete -c lanonasis -f -n '__fish_lanonasis_using_command service' -a 'logs' -d 'View service logs'
|
|
128
|
-
|
|
129
|
-
# Apply same completions for all aliases
|
|
130
|
-
complete -c onasis -w lanonasis
|
|
131
|
-
complete -c memory -w lanonasis
|
|
132
|
-
complete -c maas -w lanonasis
|
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
#compdef lanonasis onasis memory maas
|
|
2
|
-
|
|
3
|
-
# Lanonasis/Onasis CLI Zsh Completion
|
|
4
|
-
# Installation: Place in your $fpath (e.g., ~/.zsh/completions/) and run 'compinit'
|
|
5
|
-
|
|
6
|
-
_lanonasis() {
|
|
7
|
-
local context curcontext="$curcontext" state line
|
|
8
|
-
typeset -A opt_args
|
|
9
|
-
|
|
10
|
-
_arguments -C \
|
|
11
|
-
'1: :_lanonasis_commands' \
|
|
12
|
-
'*:: :->args' \
|
|
13
|
-
'--help[Show help information]' \
|
|
14
|
-
'--version[Show version information]' \
|
|
15
|
-
'--verbose[Enable verbose logging]' \
|
|
16
|
-
'--output[Output format]:format:(table json yaml csv)' \
|
|
17
|
-
'--api-url[Override API URL]:url:' \
|
|
18
|
-
'--no-mcp[Disable MCP and use direct API]'
|
|
19
|
-
|
|
20
|
-
case $state in
|
|
21
|
-
args)
|
|
22
|
-
case $words[1] in
|
|
23
|
-
auth|login)
|
|
24
|
-
_lanonasis_auth_commands
|
|
25
|
-
;;
|
|
26
|
-
memory|mem)
|
|
27
|
-
_lanonasis_memory_commands
|
|
28
|
-
;;
|
|
29
|
-
topic|topics)
|
|
30
|
-
_lanonasis_topic_commands
|
|
31
|
-
;;
|
|
32
|
-
config)
|
|
33
|
-
_lanonasis_config_commands
|
|
34
|
-
;;
|
|
35
|
-
api-keys)
|
|
36
|
-
_lanonasis_apikeys_commands
|
|
37
|
-
;;
|
|
38
|
-
mcp)
|
|
39
|
-
_lanonasis_mcp_commands
|
|
40
|
-
;;
|
|
41
|
-
dashboard)
|
|
42
|
-
_lanonasis_dashboard_commands
|
|
43
|
-
;;
|
|
44
|
-
deploy|deployment)
|
|
45
|
-
_lanonasis_deploy_commands
|
|
46
|
-
;;
|
|
47
|
-
service|services)
|
|
48
|
-
_lanonasis_service_commands
|
|
49
|
-
;;
|
|
50
|
-
esac
|
|
51
|
-
;;
|
|
52
|
-
esac
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
_lanonasis_commands() {
|
|
56
|
-
local commands; commands=(
|
|
57
|
-
'init:Initialize CLI configuration'
|
|
58
|
-
'login:Authenticate with your account'
|
|
59
|
-
'auth:Authentication commands'
|
|
60
|
-
'logout:Logout from your account'
|
|
61
|
-
'status:Show system status'
|
|
62
|
-
'health:Comprehensive health check'
|
|
63
|
-
'docs:Open documentation'
|
|
64
|
-
'memory:Memory management commands'
|
|
65
|
-
'mem:Memory management (alias)'
|
|
66
|
-
'topic:Topic management commands'
|
|
67
|
-
'topics:Topic management (alias)'
|
|
68
|
-
'config:Configuration management'
|
|
69
|
-
'org:Organization management'
|
|
70
|
-
'organization:Organization management (alias)'
|
|
71
|
-
'api-keys:API key management'
|
|
72
|
-
'mcp:Model Context Protocol commands'
|
|
73
|
-
'dashboard:Dashboard management'
|
|
74
|
-
'documentation:Documentation management'
|
|
75
|
-
'sdk:SDK management'
|
|
76
|
-
'api:REST API management'
|
|
77
|
-
'rest:REST API management (alias)'
|
|
78
|
-
'deploy:Deployment management'
|
|
79
|
-
'deployment:Deployment management (alias)'
|
|
80
|
-
'service:Service management'
|
|
81
|
-
'services:Service management (alias)'
|
|
82
|
-
)
|
|
83
|
-
_describe 'commands' commands
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
_lanonasis_auth_commands() {
|
|
87
|
-
local subcommands; subcommands=(
|
|
88
|
-
'login:Login to your account'
|
|
89
|
-
'logout:Logout from your account'
|
|
90
|
-
'status:Show authentication status'
|
|
91
|
-
'vendor-key:Authenticate with vendor key'
|
|
92
|
-
'oauth:Browser-based OAuth authentication'
|
|
93
|
-
)
|
|
94
|
-
_describe 'auth commands' subcommands
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
_lanonasis_memory_commands() {
|
|
98
|
-
local subcommands; subcommands=(
|
|
99
|
-
'list:List memories'
|
|
100
|
-
'create:Create a new memory'
|
|
101
|
-
'get:Get a specific memory'
|
|
102
|
-
'update:Update an existing memory'
|
|
103
|
-
'delete:Delete a memory'
|
|
104
|
-
'search:Search memories'
|
|
105
|
-
'stats:Show memory statistics'
|
|
106
|
-
'bulk-delete:Delete multiple memories'
|
|
107
|
-
'export:Export memories'
|
|
108
|
-
'import:Import memories'
|
|
109
|
-
)
|
|
110
|
-
_describe 'memory commands' subcommands
|
|
111
|
-
|
|
112
|
-
# Add memory type completion for relevant commands
|
|
113
|
-
if [[ "$words[2]" == "create" || "$words[2]" == "update" || "$words[2]" == "list" ]]; then
|
|
114
|
-
_arguments \
|
|
115
|
-
'--memory-type[Memory type]:type:(context project knowledge reference personal workflow)' \
|
|
116
|
-
'--tags[Tags]:tags:' \
|
|
117
|
-
'--topic-id[Topic ID]:topic:'
|
|
118
|
-
fi
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
_lanonasis_topic_commands() {
|
|
122
|
-
local subcommands; subcommands=(
|
|
123
|
-
'list:List topics'
|
|
124
|
-
'create:Create a new topic'
|
|
125
|
-
'get:Get a specific topic'
|
|
126
|
-
'update:Update an existing topic'
|
|
127
|
-
'delete:Delete a topic'
|
|
128
|
-
)
|
|
129
|
-
_describe 'topic commands' subcommands
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
_lanonasis_config_commands() {
|
|
133
|
-
local subcommands; subcommands=(
|
|
134
|
-
'get:Get configuration value'
|
|
135
|
-
'set:Set configuration value'
|
|
136
|
-
'list:List all configuration'
|
|
137
|
-
'reset:Reset configuration'
|
|
138
|
-
)
|
|
139
|
-
_describe 'config commands' subcommands
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
_lanonasis_apikeys_commands() {
|
|
143
|
-
local subcommands; subcommands=(
|
|
144
|
-
'list:List API keys'
|
|
145
|
-
'create:Create a new API key'
|
|
146
|
-
'revoke:Revoke an API key'
|
|
147
|
-
'rotate:Rotate an API key'
|
|
148
|
-
)
|
|
149
|
-
_describe 'api-keys commands' subcommands
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
_lanonasis_mcp_commands() {
|
|
153
|
-
local subcommands; subcommands=(
|
|
154
|
-
'status:Show MCP server status'
|
|
155
|
-
'connect:Connect to MCP server'
|
|
156
|
-
'disconnect:Disconnect from MCP server'
|
|
157
|
-
'servers:List MCP servers'
|
|
158
|
-
'tools:List available tools'
|
|
159
|
-
'resources:List available resources'
|
|
160
|
-
)
|
|
161
|
-
_describe 'mcp commands' subcommands
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
_lanonasis_dashboard_commands() {
|
|
165
|
-
local subcommands; subcommands=(
|
|
166
|
-
'status:Check dashboard status'
|
|
167
|
-
'logs:View dashboard logs'
|
|
168
|
-
'open:Open dashboard in browser'
|
|
169
|
-
)
|
|
170
|
-
_describe 'dashboard commands' subcommands
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
_lanonasis_deploy_commands() {
|
|
174
|
-
local subcommands; subcommands=(
|
|
175
|
-
'status:Show deployment status'
|
|
176
|
-
'health:Check deployment health'
|
|
177
|
-
'list:List deployments'
|
|
178
|
-
)
|
|
179
|
-
_describe 'deploy commands' subcommands
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
_lanonasis_service_commands() {
|
|
183
|
-
local subcommands; subcommands=(
|
|
184
|
-
'list:List services'
|
|
185
|
-
'status:Show service status'
|
|
186
|
-
'restart:Restart a service'
|
|
187
|
-
'logs:View service logs'
|
|
188
|
-
)
|
|
189
|
-
_describe 'service commands' subcommands
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
# Initialize completion for all aliases
|
|
193
|
-
compdef _lanonasis lanonasis
|
|
194
|
-
compdef _lanonasis onasis
|
|
195
|
-
compdef _lanonasis memory
|
|
196
|
-
compdef _lanonasis maas
|