@deepraxis/cli 0.1.0-dev.45dc412 → 0.1.0-dev.bba7594
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 +24 -18
- package/dist/praxis.js +1 -1
- package/package.json +1 -6
package/README.md
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
The official command line for [知行云 Praxis](https://deepraxis.com), the cloud where AI agents are built, run and hosted.
|
|
8
8
|
|
|
9
9
|
[](https://www.npmjs.com/package/@deepraxis/cli)
|
|
10
|
-
[](
|
|
10
|
+
[](https://nodejs.org)
|
|
11
|
+
[](https://www.apache.org/licenses/LICENSE-2.0)
|
|
12
12
|
|
|
13
13
|
[Website](https://deepraxis.com) · [Documentation](https://docs.deepraxis.com) · [API reference](https://docs.deepraxis.com/docs/api) · [Console](https://console.deepraxis.com)
|
|
14
14
|
|
|
@@ -20,7 +20,7 @@ The official command line for [知行云 Praxis](https://deepraxis.com), the clo
|
|
|
20
20
|
npm install -g @deepraxis/cli
|
|
21
21
|
praxis login
|
|
22
22
|
praxis model chat completion create --model deepseek-flash \
|
|
23
|
-
--data '{"messages":[{"role":"user","content":"
|
|
23
|
+
--data '{"messages":[{"role":"user","content":"Hello!"}]}'
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
Every operation of the Praxis API is a command: about 350 of them across models, agents,
|
|
@@ -57,8 +57,8 @@ npx @deepraxis/cli model list
|
|
|
57
57
|
## Sign in
|
|
58
58
|
|
|
59
59
|
```sh
|
|
60
|
-
praxis login
|
|
61
|
-
praxis whoami
|
|
60
|
+
praxis login # approve in the browser with the code shown
|
|
61
|
+
praxis whoami # account, organization, credential storage
|
|
62
62
|
```
|
|
63
63
|
|
|
64
64
|
You need a Praxis account; sign up at [deepraxis.com](https://deepraxis.com).
|
|
@@ -68,7 +68,7 @@ Belong to several organizations? Every call runs in the active one:
|
|
|
68
68
|
```sh
|
|
69
69
|
praxis org list
|
|
70
70
|
praxis org switch <organization_id>
|
|
71
|
-
praxis model list --org <organization_id> #
|
|
71
|
+
praxis model list --org <organization_id> # just this call
|
|
72
72
|
```
|
|
73
73
|
|
|
74
74
|
For CI and other headless environments, create an API key in the
|
|
@@ -86,9 +86,11 @@ export PRAXIS_API_KEY=<your-api-key>
|
|
|
86
86
|
```sh
|
|
87
87
|
praxis model list
|
|
88
88
|
praxis model chat completion create --model deepseek-flash \
|
|
89
|
-
--data '{"messages":[{"role":"user","content":"
|
|
90
|
-
praxis model embedding create --model <
|
|
91
|
-
|
|
89
|
+
--data '{"messages":[{"role":"user","content":"A haiku"}]}'
|
|
90
|
+
praxis model embedding create --model <embedding_model> \
|
|
91
|
+
--data '{"input":"hello world"}'
|
|
92
|
+
praxis model image generation create --model <image_model> \
|
|
93
|
+
--prompt "a lighthouse at dawn"
|
|
92
94
|
```
|
|
93
95
|
|
|
94
96
|
### Agents
|
|
@@ -103,7 +105,10 @@ praxis agent create --data '{
|
|
|
103
105
|
}'
|
|
104
106
|
praxis agent session create --data '{"agent": "<agent_id>"}'
|
|
105
107
|
praxis agent session event send <session_id> --data '{
|
|
106
|
-
"events": [{
|
|
108
|
+
"events": [{
|
|
109
|
+
"type": "user.message",
|
|
110
|
+
"content": [{"type": "text", "text": "What can you do?"}]
|
|
111
|
+
}]
|
|
107
112
|
}'
|
|
108
113
|
praxis agent session event stream --session <session_id>
|
|
109
114
|
```
|
|
@@ -112,23 +117,24 @@ praxis agent session event stream --session <session_id>
|
|
|
112
117
|
|
|
113
118
|
```sh
|
|
114
119
|
praxis sandbox create --template-id base
|
|
115
|
-
praxis sandbox command run <sandbox_id>
|
|
120
|
+
praxis sandbox command run <sandbox_id> \
|
|
121
|
+
--cmd "python3 -c 'print(6 * 7)'"
|
|
116
122
|
praxis sandbox delete <sandbox_id> --yes
|
|
117
123
|
```
|
|
118
124
|
|
|
119
125
|
### Search, data and automation
|
|
120
126
|
|
|
121
127
|
```sh
|
|
122
|
-
praxis search create --query "
|
|
128
|
+
praxis search create --query "AI agent frameworks" --max-results 5
|
|
123
129
|
praxis database create --name notes
|
|
124
130
|
praxis automation run create --data '{
|
|
125
|
-
"source": "export default async (
|
|
131
|
+
"source": "export default async (i) => ({ answer: i.n + 1 })",
|
|
126
132
|
"language": "ts", "input": {"n": 41}, "wait": 30
|
|
127
133
|
}'
|
|
128
134
|
```
|
|
129
135
|
|
|
130
136
|
Browse everything with `praxis --help`, `praxis <domain> --help`, or the full
|
|
131
|
-
[command reference](
|
|
137
|
+
[command reference](https://unpkg.com/@deepraxis/cli/COMMANDS.md) that ships in the package.
|
|
132
138
|
|
|
133
139
|
## How commands work
|
|
134
140
|
|
|
@@ -170,8 +176,8 @@ The CLI writes its own skill file: the general rules plus one line per command,
|
|
|
170
176
|
the API contract.
|
|
171
177
|
|
|
172
178
|
```sh
|
|
173
|
-
praxis skill --install ~/.claude/skills
|
|
174
|
-
praxis skill > SKILL.md
|
|
179
|
+
praxis skill --install ~/.claude/skills # praxis-cli/SKILL.md
|
|
180
|
+
praxis skill > SKILL.md # or print it
|
|
175
181
|
```
|
|
176
182
|
|
|
177
183
|
After that, an agent such as Claude Code can drive every Praxis capability through the CLI and
|
|
@@ -200,7 +206,7 @@ Linux. Without a keychain they are written to `~/.praxis/cli/<env>.json` with mo
|
|
|
200
206
|
## Resources
|
|
201
207
|
|
|
202
208
|
- [Documentation](https://docs.deepraxis.com) and [API reference](https://docs.deepraxis.com/docs/api)
|
|
203
|
-
- [Command reference](
|
|
209
|
+
- [Command reference](https://unpkg.com/@deepraxis/cli/COMMANDS.md)
|
|
204
210
|
- TypeScript SDK: [`@deepraxis/sdk`](https://www.npmjs.com/package/@deepraxis/sdk), the same API as code
|
|
205
211
|
- Already using the OpenAI or Anthropic SDK? Point its `baseURL` at
|
|
206
212
|
`https://api.deepraxis.com/openai/v1` or the Anthropic-compatible endpoint, as the
|
|
@@ -208,7 +214,7 @@ Linux. Without a keychain they are written to `~/.praxis/cli/<env>.json` with mo
|
|
|
208
214
|
|
|
209
215
|
## License
|
|
210
216
|
|
|
211
|
-
[Apache-2.0](
|
|
217
|
+
[Apache-2.0](https://www.apache.org/licenses/LICENSE-2.0). Copyright 2026 南京深度实践人工智能科技有限公司 (Deepractice).
|
|
212
218
|
|
|
213
219
|
"Praxis", "知行云" and "Deepraxis" are trademarks of Deepractice; the license does not grant
|
|
214
220
|
rights to use them.
|
package/dist/praxis.js
CHANGED
|
@@ -22462,7 +22462,7 @@ function startProgress(ctx, write = (text) => writeOutput({ stderr: text })) {
|
|
|
22462
22462
|
}
|
|
22463
22463
|
|
|
22464
22464
|
// src/main.ts
|
|
22465
|
-
var version = "0.1.0-dev.
|
|
22465
|
+
var version = "0.1.0-dev.bba7594";
|
|
22466
22466
|
var commands = commandTree(operations);
|
|
22467
22467
|
var manual = [["login"], ["logout"], ["whoami"], ["org", "list"], ["org", "switch"], ["api"], ["skill"]];
|
|
22468
22468
|
function route(argv) {
|
package/package.json
CHANGED
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepraxis/cli",
|
|
3
|
-
"version": "0.1.0-dev.
|
|
3
|
+
"version": "0.1.0-dev.bba7594",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"praxis": "dist/praxis.js"
|
|
7
7
|
},
|
|
8
8
|
"description": "The official command line for Praxis (知行云): models, agents, sandboxes, search and data from one terminal.",
|
|
9
9
|
"license": "Apache-2.0",
|
|
10
|
-
"repository": {
|
|
11
|
-
"type": "git",
|
|
12
|
-
"url": "git+https://github.com/Deepraxis/Praxis.git",
|
|
13
|
-
"directory": "apps/cli"
|
|
14
|
-
},
|
|
15
10
|
"engines": {
|
|
16
11
|
"node": ">=20"
|
|
17
12
|
},
|