@deepraxis/cli 0.1.0-dev.45dc412 → 0.1.0-dev.6cb2ca2
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/COMMANDS.md +3 -1
- package/README.md +24 -18
- package/dist/praxis.js +104 -1
- package/package.json +5 -10
package/COMMANDS.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Generated by `bun run commands`. DO NOT EDIT.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
348 HTTP operations; 350 commands including aliases.
|
|
6
6
|
|
|
7
7
|
Environment: `PRAXIS_ENV=develop|production` (dev package defaults to `develop`; stable package defaults to `production`). No `--env` option.
|
|
8
8
|
|
|
@@ -69,6 +69,8 @@ Handwritten commands: `login`, `logout`, `whoami`, `org list`, `org switch <orga
|
|
|
69
69
|
| `praxis agent session resource delete <resource_id>` | `agent.sessions.resources.delete` | DELETE `/agent/v1/sessions/{session_id}/resources/{resource_id}` | `--session`, `--query-session-id` |
|
|
70
70
|
| `praxis agent session resource get <resource_id>` | `agent.sessions.resources.retrieve` | GET `/agent/v1/sessions/{session_id}/resources/{resource_id}` | `--session`, `--query-session-id` |
|
|
71
71
|
| `praxis agent session resource list` | `agent.sessions.resources.list` | GET `/agent/v1/sessions/{session_id}/resources` | `--session`, `--param-limit`, `--page` |
|
|
72
|
+
| `praxis agent session run delete-feedback <run_id>` | `agent.sessions.runs.deleteFeedback` | DELETE `/agent/v1/sessions/{session_id}/runs/{run_id}/feedback` | `--session` |
|
|
73
|
+
| `praxis agent session run feedback create` | `agent.sessions.runs.feedback.create` | POST `/agent/v1/sessions/{session_id}/runs/{run_id}/feedback` | `--session`, `--run`, `--rating`, `--comment` |
|
|
72
74
|
| `praxis agent session thread archive <thread_id>` | `agent.sessions.threads.archive` | POST `/agent/v1/sessions/{session_id}/threads/{thread_id}/archive` | `--session`, `--query-session-id` |
|
|
73
75
|
| `praxis agent session thread event list` | `agent.sessions.threads.events.list` | GET `/agent/v1/sessions/{session_id}/threads/{thread_id}/events` | `--session`, `--thread`, `--query-session-id`, `--param-limit`, `--page` |
|
|
74
76
|
| `praxis agent session thread get <thread_id>` | `agent.sessions.threads.retrieve` | GET `/agent/v1/sessions/{session_id}/threads/{thread_id}` | `--session`, `--query-session-id` |
|
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
|
@@ -2159,6 +2159,73 @@ Available only on /agent/v1. Use the message_id field from own-face events, not
|
|
|
2159
2159
|
}
|
|
2160
2160
|
]
|
|
2161
2161
|
},
|
|
2162
|
+
{
|
|
2163
|
+
resource: "agent.sessions.runs",
|
|
2164
|
+
method: "deleteFeedback",
|
|
2165
|
+
summary: "Delete Run Feedback",
|
|
2166
|
+
description: `Remove the rating and comment for a run.
|
|
2167
|
+
|
|
2168
|
+
Own-face extension. Use the session id from session creation or listing and the run_id from its events. Requires a readable session and a run belonging to it. Idempotent; returns 204 even when no feedback exists. End users can delete feedback only for their own sessions. Does not delete the run or messages, enter model context, or start another run.`,
|
|
2169
|
+
http: "DELETE",
|
|
2170
|
+
path: "/agent/v1/sessions/{session_id}/runs/{run_id}/feedback",
|
|
2171
|
+
streaming: "no",
|
|
2172
|
+
pagination: false,
|
|
2173
|
+
pathParams: [
|
|
2174
|
+
{
|
|
2175
|
+
name: "session_id",
|
|
2176
|
+
sdkName: "session_id"
|
|
2177
|
+
},
|
|
2178
|
+
{
|
|
2179
|
+
name: "run_id",
|
|
2180
|
+
sdkName: "run_id"
|
|
2181
|
+
}
|
|
2182
|
+
],
|
|
2183
|
+
query: []
|
|
2184
|
+
},
|
|
2185
|
+
{
|
|
2186
|
+
resource: "agent.sessions.runs.feedback",
|
|
2187
|
+
method: "create",
|
|
2188
|
+
summary: "Set Run Feedback",
|
|
2189
|
+
description: `Submit thumbs up or thumbs down for a run, with an optional comment.
|
|
2190
|
+
|
|
2191
|
+
Own-face extension. Use a readable session and a run_id from its events. Each submission replaces the previous rating and comment; omitted or null comment clears it, while created_at is preserved. Comments allow at most 2000 Unicode characters. End users can submit only for their own sessions. Feedback never enters model context or starts a run. For example, submit {"rating":"positive","comment":"Helpful"}. POST follows Managed Agents resource update conventions; the resource remains unique per session and run.`,
|
|
2192
|
+
http: "POST",
|
|
2193
|
+
path: "/agent/v1/sessions/{session_id}/runs/{run_id}/feedback",
|
|
2194
|
+
streaming: "no",
|
|
2195
|
+
pagination: false,
|
|
2196
|
+
pathParams: [
|
|
2197
|
+
{
|
|
2198
|
+
name: "session_id",
|
|
2199
|
+
sdkName: "session_id"
|
|
2200
|
+
},
|
|
2201
|
+
{
|
|
2202
|
+
name: "run_id",
|
|
2203
|
+
sdkName: "run_id"
|
|
2204
|
+
}
|
|
2205
|
+
],
|
|
2206
|
+
query: [],
|
|
2207
|
+
body: {
|
|
2208
|
+
required: true,
|
|
2209
|
+
fields: [
|
|
2210
|
+
{
|
|
2211
|
+
name: "rating",
|
|
2212
|
+
type: "string",
|
|
2213
|
+
enum: [
|
|
2214
|
+
"positive",
|
|
2215
|
+
"negative"
|
|
2216
|
+
],
|
|
2217
|
+
required: true,
|
|
2218
|
+
description: "positive means thumbs up; negative means thumbs down for this run."
|
|
2219
|
+
},
|
|
2220
|
+
{
|
|
2221
|
+
name: "comment",
|
|
2222
|
+
type: "string",
|
|
2223
|
+
required: false,
|
|
2224
|
+
description: "Optional comment, at most 2000 Unicode characters. Omit or send null to clear the previous comment."
|
|
2225
|
+
}
|
|
2226
|
+
]
|
|
2227
|
+
}
|
|
2228
|
+
},
|
|
2162
2229
|
{
|
|
2163
2230
|
resource: "agent.sessions.threads",
|
|
2164
2231
|
method: "list",
|
|
@@ -14897,6 +14964,36 @@ var createClient = (config = {}) => {
|
|
|
14897
14964
|
var client = createClient(createConfig({ baseUrl: "https://api.deepraxis.com" }));
|
|
14898
14965
|
|
|
14899
14966
|
// ../../packages/sdk/typescript/src/generated/sdk.gen.ts
|
|
14967
|
+
var deleteRunFeedback = (options) => (options.client ?? client).delete({
|
|
14968
|
+
security: [{
|
|
14969
|
+
key: "BearerAuth",
|
|
14970
|
+
scheme: "bearer",
|
|
14971
|
+
type: "http"
|
|
14972
|
+
}, {
|
|
14973
|
+
key: "ApiKeyAuth",
|
|
14974
|
+
name: "X-API-Key",
|
|
14975
|
+
type: "apiKey"
|
|
14976
|
+
}],
|
|
14977
|
+
url: "/agent/v1/sessions/{session_id}/runs/{run_id}/feedback",
|
|
14978
|
+
...options
|
|
14979
|
+
});
|
|
14980
|
+
var setRunFeedback = (options) => (options.client ?? client).post({
|
|
14981
|
+
security: [{
|
|
14982
|
+
key: "BearerAuth",
|
|
14983
|
+
scheme: "bearer",
|
|
14984
|
+
type: "http"
|
|
14985
|
+
}, {
|
|
14986
|
+
key: "ApiKeyAuth",
|
|
14987
|
+
name: "X-API-Key",
|
|
14988
|
+
type: "apiKey"
|
|
14989
|
+
}],
|
|
14990
|
+
url: "/agent/v1/sessions/{session_id}/runs/{run_id}/feedback",
|
|
14991
|
+
...options,
|
|
14992
|
+
headers: {
|
|
14993
|
+
"Content-Type": "application/json",
|
|
14994
|
+
...options.headers
|
|
14995
|
+
}
|
|
14996
|
+
});
|
|
14900
14997
|
var listEmbedTokens = (options) => (options?.client ?? client).get({
|
|
14901
14998
|
security: [{
|
|
14902
14999
|
key: "BearerAuth",
|
|
@@ -19798,6 +19895,12 @@ function createAgent(transport) {
|
|
|
19798
19895
|
retrieve: bind(transport, sessionsRetrieve),
|
|
19799
19896
|
retrieveCompact: bind(transport, getSessionCompaction),
|
|
19800
19897
|
retrieveContext: bind(transport, getSessionContext),
|
|
19898
|
+
runs: {
|
|
19899
|
+
deleteFeedback: bind(transport, deleteRunFeedback),
|
|
19900
|
+
feedback: {
|
|
19901
|
+
create: bind(transport, setRunFeedback)
|
|
19902
|
+
}
|
|
19903
|
+
},
|
|
19801
19904
|
threads: {
|
|
19802
19905
|
archive: bind(transport, aliasOperation(sessionsThreadsArchive, { query: { session_id: "query_session_id" } })),
|
|
19803
19906
|
events: {
|
|
@@ -22462,7 +22565,7 @@ function startProgress(ctx, write = (text) => writeOutput({ stderr: text })) {
|
|
|
22462
22565
|
}
|
|
22463
22566
|
|
|
22464
22567
|
// src/main.ts
|
|
22465
|
-
var version = "0.1.0-dev.
|
|
22568
|
+
var version = "0.1.0-dev.6cb2ca2";
|
|
22466
22569
|
var commands = commandTree(operations);
|
|
22467
22570
|
var manual = [["login"], ["logout"], ["whoami"], ["org", "list"], ["org", "switch"], ["api"], ["skill"]];
|
|
22468
22571
|
function route(argv) {
|
package/package.json
CHANGED
|
@@ -1,23 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepraxis/cli",
|
|
3
|
-
"version": "0.1.0-dev.
|
|
3
|
+
"version": "0.1.0-dev.6cb2ca2",
|
|
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
|
},
|
|
18
|
-
"publishConfig": {
|
|
19
|
-
"access": "public"
|
|
20
|
-
},
|
|
21
13
|
"files": [
|
|
22
14
|
"dist",
|
|
23
15
|
"README.md",
|
|
@@ -36,5 +28,8 @@
|
|
|
36
28
|
"ai-agents",
|
|
37
29
|
"claude-code"
|
|
38
30
|
],
|
|
39
|
-
"author": "Deepractice"
|
|
31
|
+
"author": "Deepractice",
|
|
32
|
+
"publishConfig": {
|
|
33
|
+
"access": "public"
|
|
34
|
+
}
|
|
40
35
|
}
|