@entrydesk/cli 1.11.7 → 1.11.9
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/agents-AZHKB45D.js +30 -0
- package/dist/budget-7EHNHULF.js +12 -0
- package/dist/chat-4JHCW4MC.js +182 -0
- package/dist/chats-PGXZJ76M.js +19 -0
- package/dist/{chunk-Q64GXVJE.js → chunk-JB5ASFUE.js} +1 -1
- package/dist/config-DUIXZF5U.js +4 -0
- package/dist/{config-VDFYOL6E.js → config-SQ273QT4.js} +1 -1
- package/dist/config-help-CHDTLOJ3.js +2 -0
- package/dist/connectors-CJWYJG3N.js +3 -0
- package/dist/help-Z5YLPTUZ.js +167 -0
- package/dist/index.js +1 -542
- package/dist/login-T4BWELNV.js +2 -0
- package/dist/logout-CCONJMSY.js +2 -0
- package/dist/mcp-H4GZHRIO.js +4 -0
- package/dist/models-2MBZX4IZ.js +3 -0
- package/dist/profile-JWJXSKJB.js +17 -0
- package/dist/schedules-U3WFJ5ZU.js +46 -0
- package/dist/skills-JE5Y5GZX.js +17 -0
- package/dist/status-B4NRW3ZM.js +2 -0
- package/dist/tool-OJJNLOPD.js +35 -0
- package/dist/usage-AIDCBDJ3.js +18 -0
- package/dist/version-TI2ROJQT.js +2 -0
- package/dist/workspaces-XLJJGG5J.js +14 -0
- package/package.json +3 -3
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{a as f,b as s}from"./chunk-JB5ASFUE.js";var i=["apiUrl","hubUrl"];function l(e){return i.includes(e)}async function d(e){let n=e.action||"list",o=e.configKey,t=e.value,a=f.getEffectiveProfileName();if(n==="list"){let r=s.getAll(),c=Object.entries(r);if(e.json){console.log(JSON.stringify(r));return}if(console.log(`Profile: ${a}`),c.length===0){console.log("No configuration set."),console.log(`Available keys: ${i.join(", ")}`);return}console.log(`Configuration:
|
|
3
|
+
`);for(let[g,u]of c)console.log(` ${g}=${u}`);console.log(`
|
|
4
|
+
Available keys: ${i.join(", ")}`);return}if(n==="get"){o||(console.error("Error: key is required for get action"),process.exit(1)),l(o)||(console.error(`Error: Invalid key '${o}'. Valid keys: ${i.join(", ")}`),process.exit(1));let r=s.get(o);e.json?console.log(JSON.stringify({[o]:r??null})):console.log(r||"Not set");return}if(n==="set"){o||(console.error("Error: key is required for set action"),process.exit(1)),l(o)||(console.error(`Error: Invalid key '${o}'. Valid keys: ${i.join(", ")}`),process.exit(1)),t||(console.error("Error: value is required for set action"),process.exit(1)),s.set(o,t),console.log(`Set ${o}=${t}`);return}if(n==="unset"){o||(console.error("Error: key is required for unset action"),process.exit(1)),l(o)||(console.error(`Error: Invalid key '${o}'. Valid keys: ${i.join(", ")}`),process.exit(1)),s.unset(o),console.log(`Unset ${o}`);return}console.error(`Unknown action: ${n}`),process.exit(1)}export{d as runConfig};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{
|
|
2
|
+
import{c as a,d as b,e as c,f as d,g as e}from"./chunk-JB5ASFUE.js";export{b as getApiUrl,e as getAuthConfig,a as getConfig,c as getHubUrl,d as getMcpConfig};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{c as r}from"./chunk-JB5ASFUE.js";import{Box as i,Text as e,render as l}from"ink";import{jsx as t,jsxs as n}from"react/jsx-runtime";function g(){l(t(a,{}))}function a(){let o=r();return n(i,{flexDirection:"column",children:[t(e,{bold:!0,children:"entrydesk config"}),t(e,{children:" "}),t(e,{children:"Manage CLI configuration"}),t(e,{children:" "}),t(e,{bold:!0,children:"Usage:"}),t(e,{children:" entrydesk config List all configuration"}),n(e,{children:[" entrydesk config get ","<key>"," Get a configuration value"]}),n(e,{children:[" ","entrydesk config set ","<key>"," ","<value>"," Set a configuration value"]}),n(e,{children:[" ","entrydesk config unset ","<key>"," Remove a configuration value"]}),t(e,{children:" "}),t(e,{bold:!0,children:"Available keys:"}),n(e,{children:[" apiUrl API server URL (default: ",o.apiUrl,")"]}),n(e,{children:[" hubUrl Hub server URL (default: ",o.hubUrl,")"]}),t(e,{children:" "}),t(e,{bold:!0,children:"Examples:"}),t(e,{children:" entrydesk config set apiUrl http://localhost:3200"}),t(e,{children:" entrydesk config get apiUrl"}),t(e,{children:" entrydesk config unset apiUrl"})]})}export{a as ConfigHelp,g as renderConfigHelp};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{i as c,p as s,r as i}from"./chunk-JB5ASFUE.js";async function p(l){try{let n,t;try{let o=await s();n=o.accessToken,t=o.workspaceId}catch(o){let r=o instanceof Error?o.message:"Authentication failed";console.error(r),process.exit(1)}let a=new c,{connectors:e}=await a.getConnectors(n,t);if(l.json){console.log(JSON.stringify(e));return}if(e.length===0){console.log("No connectors found in this workspace.");return}console.log(`Connected Connectors (${e.length}):
|
|
3
|
+
`);for(let o of e){let r=o.connected?"connected":"disconnected";console.log(` ${o.name} (${r})`),console.log(` Provider: ${o.provider}`),console.log(` ID: ${o.id}`),console.log("")}}catch(n){i(n)}}export{p as runConnectors};
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
function e(){console.log(`
|
|
3
|
+
EntryDesk CLI - Interact with EntryDesk from your terminal
|
|
4
|
+
|
|
5
|
+
Usage: entrydesk <command> [options]
|
|
6
|
+
|
|
7
|
+
Commands:
|
|
8
|
+
login Authenticate with EntryDesk
|
|
9
|
+
logout Sign out and clear credentials
|
|
10
|
+
status Show current authentication status
|
|
11
|
+
workspaces List or switch workspaces
|
|
12
|
+
models List available models
|
|
13
|
+
agents List available agents
|
|
14
|
+
skills List or upload skills
|
|
15
|
+
schedules List or manage scheduled tasks
|
|
16
|
+
connectors List connected connectors
|
|
17
|
+
tool List, get, or call MCP tools
|
|
18
|
+
profile Manage profiles
|
|
19
|
+
chats List recent chats or view messages
|
|
20
|
+
chat Send a message or start interactive chat
|
|
21
|
+
budget View or manage workspace budget
|
|
22
|
+
usage View current month usage statistics
|
|
23
|
+
mcp-server Start MCP server (stdio or HTTP)
|
|
24
|
+
config Manage CLI configuration
|
|
25
|
+
help Show this help message
|
|
26
|
+
version Show version number
|
|
27
|
+
|
|
28
|
+
Global Options:
|
|
29
|
+
--json Output in JSON format (for scripting)
|
|
30
|
+
-i Interactive mode (for chat)
|
|
31
|
+
--profile Use a specific profile for this command
|
|
32
|
+
|
|
33
|
+
Login:
|
|
34
|
+
entrydesk login # Open browser login (OAuth Device Flow)
|
|
35
|
+
|
|
36
|
+
Chat:
|
|
37
|
+
entrydesk chat -m "Hello" --model <model> # Send with model
|
|
38
|
+
entrydesk chat -m "Hello" -a <agent> # Send with agent
|
|
39
|
+
entrydesk chat -c 1 -m "Follow up" # Continue recent chat
|
|
40
|
+
entrydesk chat -i # Interactive mode
|
|
41
|
+
echo "Hello" | entrydesk chat --model <m> # Pipe input from stdin
|
|
42
|
+
entrydesk chat -m "Hi" --model <m> --plain # Plain text output
|
|
43
|
+
entrydesk chat -m "Hi" --model <m> --output stream-json # Stream JSON
|
|
44
|
+
entrydesk chat -i --web-search # Enable web search
|
|
45
|
+
entrydesk chat -i --no-sandbox # Disable sandbox
|
|
46
|
+
entrydesk chat -i --no-file-system # Disable local file operations
|
|
47
|
+
entrydesk chat -i --connectors id1,id2 # Use specific connectors
|
|
48
|
+
|
|
49
|
+
MCP Server:
|
|
50
|
+
entrydesk mcp-server # Start stdio server
|
|
51
|
+
entrydesk mcp-server --http --port 3100 # Start HTTP server
|
|
52
|
+
|
|
53
|
+
Tool Operations:
|
|
54
|
+
entrydesk tool list # List all available tools
|
|
55
|
+
entrydesk tool list --prefix sandbox # Filter by prefix
|
|
56
|
+
entrydesk tool get <name> # Get tool details
|
|
57
|
+
entrydesk tool call <name> --input {} # Execute a tool
|
|
58
|
+
|
|
59
|
+
Workspaces:
|
|
60
|
+
entrydesk workspaces # List all workspaces
|
|
61
|
+
entrydesk workspaces switch <id> # Switch to a workspace
|
|
62
|
+
entrydesk workspaces use <id> # Alias for switch
|
|
63
|
+
|
|
64
|
+
Budget:
|
|
65
|
+
entrydesk budget # Show current budget
|
|
66
|
+
entrydesk budget get # Show current budget
|
|
67
|
+
entrydesk budget set 100.00 # Set budget to $100.00
|
|
68
|
+
entrydesk budget clear # Remove budget
|
|
69
|
+
|
|
70
|
+
Usage:
|
|
71
|
+
entrydesk usage # Show current month usage (top users by cost)
|
|
72
|
+
entrydesk usage --limit 20 # Show top 20 users
|
|
73
|
+
entrydesk usage --sort-by operations # Sort by operations instead of cost
|
|
74
|
+
entrydesk usage --limit 10 --sort-by cost # Top 10 by cost
|
|
75
|
+
entrydesk usage --json # Get usage as JSON
|
|
76
|
+
|
|
77
|
+
Chats:
|
|
78
|
+
entrydesk chats # List recent chats
|
|
79
|
+
entrydesk chats 1 # View chat #1 messages
|
|
80
|
+
entrydesk chats <uuid> # View chat by ID
|
|
81
|
+
entrydesk chats --share <shareId> # View shared chat by share ID
|
|
82
|
+
entrydesk chats -s <shareId> # Short form for --share
|
|
83
|
+
entrydesk chats --share <id> --json # Get shared chat as JSON
|
|
84
|
+
|
|
85
|
+
Examples:
|
|
86
|
+
$ entrydesk login
|
|
87
|
+
$ entrydesk status
|
|
88
|
+
$ entrydesk workspaces # List workspaces
|
|
89
|
+
$ entrydesk workspaces switch <workspaceId> # Switch workspace
|
|
90
|
+
$ entrydesk budget # View budget
|
|
91
|
+
$ entrydesk budget set 100.00 # Set budget
|
|
92
|
+
$ entrydesk budget clear # Clear budget
|
|
93
|
+
$ entrydesk usage # View usage (all users, sorted by cost)
|
|
94
|
+
$ entrydesk usage --limit 10 # Show top 10 users
|
|
95
|
+
$ entrydesk usage --sort-by operations # Sort by operation count
|
|
96
|
+
$ entrydesk models --json
|
|
97
|
+
$ entrydesk agents --json
|
|
98
|
+
$ entrydesk agents create --name "My Agent" --description "..." --system-prompt "..." --model-id <modelId>
|
|
99
|
+
$ entrydesk agents update <agentId> --name "New Name" --description "..." --system-prompt "..." --model-id <modelId>
|
|
100
|
+
$ entrydesk agents delete <agentId>
|
|
101
|
+
$ entrydesk skills
|
|
102
|
+
$ entrydesk skills upload ./my-skill.zip
|
|
103
|
+
$ entrydesk skills upload ./my-skill-folder
|
|
104
|
+
$ entrydesk chat -m "Hello" --model gemini-2.5-flash-lite
|
|
105
|
+
$ entrydesk chats # List recent chats
|
|
106
|
+
$ entrydesk chats 1 # View chat #1 messages
|
|
107
|
+
$ entrydesk chat -c 1 -m "Tell me more" # Continue chat #1
|
|
108
|
+
$ entrydesk chats 0 --output stream-json # Stream recent chat as JSON
|
|
109
|
+
$ entrydesk chats --share <shareId> # View shared chat
|
|
110
|
+
|
|
111
|
+
Piping:
|
|
112
|
+
$ echo "Explain this code" | entrydesk chat --model gemini-2.5-flash-lite
|
|
113
|
+
$ cat file.txt | entrydesk chat -c 1 # Pipe file content
|
|
114
|
+
$ entrydesk chat -m "Hi" --model <m> > out.txt # Save to file
|
|
115
|
+
|
|
116
|
+
Usage Examples:
|
|
117
|
+
$ entrydesk usage # Show all users, sorted by cost
|
|
118
|
+
$ entrydesk usage --limit 10 # Show top 10 users
|
|
119
|
+
$ entrydesk usage --sort-by operations # Sort by operation count
|
|
120
|
+
|
|
121
|
+
Configuration:
|
|
122
|
+
entrydesk config # Show current config
|
|
123
|
+
entrydesk config set <key> <value> # Set a config value
|
|
124
|
+
entrydesk config unset <key> # Remove a config value
|
|
125
|
+
|
|
126
|
+
Profiles:
|
|
127
|
+
entrydesk profile # List profiles
|
|
128
|
+
entrydesk profile create <name> # Create a profile
|
|
129
|
+
entrydesk profile use <name> # Switch active profile
|
|
130
|
+
entrydesk profile delete <name> # Delete a profile
|
|
131
|
+
entrydesk profile rename <from> <to> # Rename a profile
|
|
132
|
+
entrydesk profile clone <from> <to> # Clone config defaults (no credentials)
|
|
133
|
+
|
|
134
|
+
Skills:
|
|
135
|
+
entrydesk skills # List skills
|
|
136
|
+
entrydesk skills list --me # List my skills
|
|
137
|
+
entrydesk skills upload <file.zip> # Upload a skill zip
|
|
138
|
+
entrydesk skills upload <folder> # Upload a skill folder
|
|
139
|
+
entrydesk skills upload <file.zip> --force
|
|
140
|
+
entrydesk skills delete <skillId>
|
|
141
|
+
|
|
142
|
+
Agents:
|
|
143
|
+
entrydesk agents # List agents
|
|
144
|
+
entrydesk agents create --name "My Agent" --description "..." --system-prompt "..." --model-id <modelId>
|
|
145
|
+
entrydesk agents update <agentId> --name "New Name" --description "..." --system-prompt "..." --model-id <modelId>
|
|
146
|
+
entrydesk agents delete <agentId>
|
|
147
|
+
|
|
148
|
+
Schedules:
|
|
149
|
+
entrydesk schedules # List schedules
|
|
150
|
+
entrydesk schedules get <id> # Show schedule details
|
|
151
|
+
entrydesk schedules create \\
|
|
152
|
+
--name "Daily Report" \\
|
|
153
|
+
--agent-id <agentId> \\
|
|
154
|
+
--prompt "Generate report" \\
|
|
155
|
+
--starts-at "2025-01-01T09:00:00Z" \\
|
|
156
|
+
--repeat-type days --every 1 --time 09:00 \\
|
|
157
|
+
--utc-offset "+08:00"
|
|
158
|
+
entrydesk schedules delete <id> # Delete a schedule
|
|
159
|
+
|
|
160
|
+
Available keys: apiUrl, hubUrl
|
|
161
|
+
|
|
162
|
+
Local Development:
|
|
163
|
+
$ entrydesk config set apiUrl http://localhost:3200
|
|
164
|
+
$ entrydesk config set hubUrl http://localhost:3000
|
|
165
|
+
|
|
166
|
+
For more information, visit https://entrydesk.com/docs/cli
|
|
167
|
+
`)}export{e as printHelp};
|