@deepraxis/cli 0.1.0-dev.79876bd → 0.1.0-dev.8ad8e89
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 +7 -4
- package/dist/praxis.js +14 -14
- package/package.json +1 -1
package/COMMANDS.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Generated by `bun run commands`. DO NOT EDIT.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
368 HTTP operations; 370 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
|
|
|
@@ -21,7 +21,7 @@ Handwritten commands: `login`, `logout`, `whoami`, `org list`, `org switch <orga
|
|
|
21
21
|
| `praxis agent archive <agent_id>` | `agent.agents.archive` | POST `/agent/v1/agents/{agent_id}/archive` | |
|
|
22
22
|
| `praxis agent computer archive <computer_id>` | `agent.computers.archive` | POST `/agent/v1/computers/{computer_id}/archive` | |
|
|
23
23
|
| `praxis agent computer attachment create` | `agent.computers.attachments.create` | POST `/agent/v1/computers/{computer_id}/attachments` | `--computer`, `--name` |
|
|
24
|
-
| `praxis agent computer connect <computer_id>` | `agent.computers.connect` | POST `/agent/v1/computers/{computer_id}/connect` |
|
|
24
|
+
| `praxis agent computer connect <computer_id>` | `agent.computers.connect` | POST `/agent/v1/computers/{computer_id}/connect` | `--need` |
|
|
25
25
|
| `praxis agent computer create` | `agent.computers.create` | POST `/agent/v1/computers` | `--name`, `--environment-id` |
|
|
26
26
|
| `praxis agent computer delete <computer_id>` | `agent.computers.delete` | DELETE `/agent/v1/computers/{computer_id}` | |
|
|
27
27
|
| `praxis agent computer file get-content` | `agent.computers.files.retrieveContent` | GET `/agent/v1/computers/{computer_id}/files/content` | `--computer`, `--path` |
|
|
@@ -31,7 +31,7 @@ Handwritten commands: `login`, `logout`, `whoami`, `org list`, `org switch <orga
|
|
|
31
31
|
| `praxis agent computer lease renew create` | `agent.computers.leases.renew.create` | POST `/agent/v1/computers/{computer_id}/leases/{lease_id}/renew` | `--computer`, `--lease` |
|
|
32
32
|
| `praxis agent computer list` | `agent.computers.list` | GET `/agent/v1/computers` | `--param-limit`, `--page` |
|
|
33
33
|
| `praxis agent computer update <computer_id>` | `agent.computers.update` | POST `/agent/v1/computers/{computer_id}` | `--name` |
|
|
34
|
-
| `praxis agent create` | `agent.agents.create` | POST `/agent/v1/agents` | `--name`, `--description`, `--system`, `--kind`, `--computer-id`, `--subagent-model` |
|
|
34
|
+
| `praxis agent create` | `agent.agents.create` | POST `/agent/v1/agents` | `--name`, `--description`, `--system`, `--kind`, `--computer-id`, `--subagent-model`, `--preset` |
|
|
35
35
|
| `praxis agent deployment archive <deployment_id>` | `agent.deployments.archive` | POST `/agent/v1/deployments/{deployment_id}/archive` | |
|
|
36
36
|
| `praxis agent deployment create` | `agent.deployments.create` | POST `/agent/v1/deployments` | `--environment-id`, `--name`, `--description`, `--vault-ids` |
|
|
37
37
|
| `praxis agent deployment get <deployment_id>` | `agent.deployments.retrieve` | GET `/agent/v1/deployments/{deployment_id}` | |
|
|
@@ -69,6 +69,7 @@ Handwritten commands: `login`, `logout`, `whoami`, `org list`, `org switch <orga
|
|
|
69
69
|
| `praxis agent session compact <session_id>` | `agent.sessions.compact` | POST `/agent/v1/sessions/{session_id}/compact` | `--instructions` |
|
|
70
70
|
| `praxis agent session compaction list` | `agent.sessions.compactions.list` | GET `/agent/v1/sessions/{session_id}/compactions` | `--session` |
|
|
71
71
|
| `praxis agent session create` | `agent.sessions.create` | POST `/agent/v1/sessions` | `--environment-id`, `--title`, `--vault-ids`, `--cwd`, `--computer-id`, `--time-zone`, `--model` |
|
|
72
|
+
| `praxis agent session delete <session_id>` | `agent.sessions.delete` | DELETE `/agent/v1/sessions/{session_id}` | |
|
|
72
73
|
| `praxis agent session event list` | `agent.sessions.events.list` | GET `/agent/v1/sessions/{session_id}/events` | `--session`, `--created-at-gt`, `--created-at-gte`, `--created-at-lt`, `--created-at-lte`, `--order`, `--types`, `--param-limit`, `--page` |
|
|
73
74
|
| `praxis agent session event send <session_id>` | `agent.sessions.events.send` | POST `/agent/v1/sessions/{session_id}/events` | |
|
|
74
75
|
| `praxis agent session event stream` | `agent.sessions.events.stream` | GET `/agent/v1/sessions/{session_id}/events/stream` | `--session`, `--event-deltas` |
|
|
@@ -90,7 +91,8 @@ Handwritten commands: `login`, `logout`, `whoami`, `org list`, `org switch <orga
|
|
|
90
91
|
| `praxis agent session thread stream <thread_id>` | `agent.sessions.threads.stream` | GET `/agent/v1/sessions/{session_id}/threads/{thread_id}/stream` | `--session`, `--query-session-id`, `--event-deltas` |
|
|
91
92
|
| `praxis agent session update <session_id>` | `agent.sessions.update` | POST `/agent/v1/sessions/{session_id}` | `--title`, `--vault-ids`, `--model` |
|
|
92
93
|
| `praxis agent toolset list` | `agent.toolsets.list` | GET `/agent/v1/toolsets` | |
|
|
93
|
-
| `praxis agent
|
|
94
|
+
| `praxis agent unarchive create` | `agent.agents.unarchive.create` | POST `/agent/v1/agents/{agent_id}/unarchive` | `--agent` |
|
|
95
|
+
| `praxis agent update <agent_id>` | `agent.agents.update` | POST `/agent/v1/agents/{agent_id}` | `--description`, `--name`, `--system`, `--param-version`, `--kind`, `--computer-id`, `--subagent-model`, `--preset` |
|
|
94
96
|
| `praxis agent version list` | `agent.agents.versions.list` | GET `/agent/v1/agents/{agent_id}/versions` | `--agent`, `--param-limit`, `--page` |
|
|
95
97
|
| `praxis application asset upload` | `application.assets.upload.create` | POST `/application/v1/assets/upload` | `--jwt` |
|
|
96
98
|
| `praxis application subdomain get` | `application.subdomain.retrieve` | GET `/application/v1/subdomain` | |
|
|
@@ -113,6 +115,7 @@ Handwritten commands: `login`, `logout`, `whoami`, `org list`, `org switch <orga
|
|
|
113
115
|
| `praxis application worker secret list` | `application.workers.secrets.list` | GET `/application/v1/workers/{worker_id}/secrets` | `--worker` |
|
|
114
116
|
| `praxis application worker secret update <name>` | `application.workers.secrets.update` | PUT `/application/v1/workers/{worker_id}/secrets/{name}` | `--worker` |
|
|
115
117
|
| `praxis application worker update <worker_id>` | `application.workers.update` | PATCH `/application/v1/workers/{worker_id}` | `--name`, `--tags` |
|
|
118
|
+
| `praxis application worker version asset get-manifest` | `application.workers.versions.assets.retrieveManifest` | GET `/application/v1/workers/{worker_id}/versions/{version_id}/assets/manifest` | `--worker`, `--param-version` |
|
|
116
119
|
| `praxis application worker version create` | `application.workers.versions.create` | POST `/application/v1/workers/{worker_id}/versions` | `--worker`, `--deploy`, `--main-module`, `--compatibility-date`, `--compatibility-flags` |
|
|
117
120
|
| `praxis application worker version get <version_id>` | `application.workers.versions.retrieve` | GET `/application/v1/workers/{worker_id}/versions/{version_id}` | `--worker` |
|
|
118
121
|
| `praxis application worker version list` | `application.workers.versions.list` | GET `/application/v1/workers/{worker_id}/versions` | `--worker`, `--param-cursor`, `--param-limit` |
|
package/dist/praxis.js
CHANGED
|
@@ -11,7 +11,7 @@ var operations = [
|
|
|
11
11
|
resource: "agent.agents",
|
|
12
12
|
method: "list",
|
|
13
13
|
summary: "List agents",
|
|
14
|
-
description: "List the agents of the workspace behind your API key, newest first, in pages of at most 100 (default 20). Use it to find an agent id before creating a session; to read one agent use agents.retrieve, to see its history use agents.versions.list. Archived agents are hidden unless include_archived is true. Filter kind=personal for durable-computer agents or kind=
|
|
14
|
+
description: "List the agents of the workspace behind your API key, newest first, in pages of at most 100 (default 20). Use it to find an agent id before creating a session; to read one agent use agents.retrieve, to see its history use agents.versions.list. Archived agents are hidden unless include_archived is true. Filter kind=personal for durable-computer agents or kind=business for per-session environments. Pass next_page from the response as page to read the next page; a null next_page means the end.",
|
|
15
15
|
http: "GET",
|
|
16
16
|
path: "/agent/v1/agents",
|
|
17
17
|
streaming: "no",
|
|
@@ -57,7 +57,7 @@ var operations = [
|
|
|
57
57
|
type: "string",
|
|
58
58
|
enum: [
|
|
59
59
|
"personal",
|
|
60
|
-
"
|
|
60
|
+
"business"
|
|
61
61
|
],
|
|
62
62
|
required: false,
|
|
63
63
|
description: "Filter agents by their immutable kind, including agents created before kind was recorded."
|
|
@@ -141,10 +141,10 @@ across all toolsets allowed.`
|
|
|
141
141
|
type: "string",
|
|
142
142
|
enum: [
|
|
143
143
|
"personal",
|
|
144
|
-
"
|
|
144
|
+
"business"
|
|
145
145
|
],
|
|
146
146
|
required: false,
|
|
147
|
-
description: "Immutable agent kind. personal requires computer_id;
|
|
147
|
+
description: "Immutable agent kind. personal requires computer_id; business cannot bind a computer. Omit on create to infer from computer_id. On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error."
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
name: "computer_id",
|
|
@@ -317,10 +317,10 @@ current version; omit to apply the update unconditionally.`
|
|
|
317
317
|
type: "string",
|
|
318
318
|
enum: [
|
|
319
319
|
"personal",
|
|
320
|
-
"
|
|
320
|
+
"business"
|
|
321
321
|
],
|
|
322
322
|
required: false,
|
|
323
|
-
description: "Immutable agent kind. personal requires computer_id;
|
|
323
|
+
description: "Immutable agent kind. personal requires computer_id; business cannot bind a computer. Omit on create to infer from computer_id. On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error."
|
|
324
324
|
},
|
|
325
325
|
{
|
|
326
326
|
name: "computer_id",
|
|
@@ -395,7 +395,7 @@ current version; omit to apply the update unconditionally.`
|
|
|
395
395
|
resource: "agent.agents.endUsers",
|
|
396
396
|
method: "list",
|
|
397
397
|
summary: "List End Users",
|
|
398
|
-
description: `List users who have sessions or token issuance history on a
|
|
398
|
+
description: `List users who have sessions or token issuance history on a business agent.
|
|
399
399
|
|
|
400
400
|
Ordered by last_active_at and external_user_id descending. q is a case-sensitive literal prefix, including underscores. limit is 1–100, default 20. Reuse next_page with the same organization, agent, q and limit. Preemptively blocked users without history do not appear. End-user credentials and inaccessible or personal agents return 404.`,
|
|
401
401
|
http: "GET",
|
|
@@ -433,7 +433,7 @@ Ordered by last_active_at and external_user_id descending. q is a case-sensitive
|
|
|
433
433
|
resource: "agent.agents.endUsers",
|
|
434
434
|
method: "delete",
|
|
435
435
|
summary: "Delete end-user data",
|
|
436
|
-
description: `Delete a host application's end-user data from one
|
|
436
|
+
description: `Delete a host application's end-user data from one business agent after explicit confirmation.
|
|
437
437
|
|
|
438
438
|
Develop only. Set confirm to the exact external_user_id; missing or mismatched confirmation returns 400. Returns 202 with a pending task id, not completion. Poll the deletion endpoint. Concurrent requests reuse the unfinished task; retry DELETE after failure to resume it. Tokens are revoked and the user is blocked before a seven-day recovery snapshot is verified. Sessions including child sessions, conversation data, grants and feedback are then removed. A pre-existing block remains; a temporary block is removed on success. Attachment metadata is recorded and File attachments are retained. No charge is introduced by this operation. Example: DELETE /agent/v1/agents/agent_example/end_users/customer_123?confirm=customer_123.`,
|
|
439
439
|
http: "DELETE",
|
|
@@ -1413,7 +1413,7 @@ Includes expired and revoked grants; returns neither token nor token_id. Sorts b
|
|
|
1413
1413
|
name: "agent_id",
|
|
1414
1414
|
type: "string",
|
|
1415
1415
|
required: false,
|
|
1416
|
-
description: "Filter by
|
|
1416
|
+
description: "Filter by business agent identifier (agent_ or agt_ prefix)."
|
|
1417
1417
|
},
|
|
1418
1418
|
{
|
|
1419
1419
|
name: "external_user_id",
|
|
@@ -1439,9 +1439,9 @@ Includes expired and revoked grants; returns neither token nor token_id. Sorts b
|
|
|
1439
1439
|
resource: "agent.embedTokens",
|
|
1440
1440
|
method: "create",
|
|
1441
1441
|
summary: "Create Embed Token",
|
|
1442
|
-
description: `Issue a short-lived credential on your backend for an end user of a
|
|
1442
|
+
description: `Issue a short-lived credential on your backend for an end user of a business agent.
|
|
1443
1443
|
|
|
1444
|
-
Requires an active
|
|
1444
|
+
Requires an active business agent in your organization with an embed policy. Pins the requested version or the latest version and snapshots the policy environment, vaults and resources; metadata comes from the request. Blocked users cannot receive tokens. Keep your API key on the backend and pass only the returned token to the frontend. Every call creates a new grant; issuance is not idempotent. Set hosted to true to also receive hosted_url; redirect the user there within 60 seconds. The agent must have an identity_number. The URL fragment contains a single-use exchange credential, not the token. Omit hosted or set false for ordinary token issuance.`,
|
|
1445
1445
|
http: "POST",
|
|
1446
1446
|
path: "/agent/v1/embed_tokens",
|
|
1447
1447
|
streaming: "no",
|
|
@@ -1461,7 +1461,7 @@ Requires an active service agent in your organization with an embed policy. Pins
|
|
|
1461
1461
|
name: "agent",
|
|
1462
1462
|
type: "string",
|
|
1463
1463
|
required: true,
|
|
1464
|
-
description: "
|
|
1464
|
+
description: "Business agent ID or identity_number from agent retrieval; it must belong to your organization and be active."
|
|
1465
1465
|
},
|
|
1466
1466
|
{
|
|
1467
1467
|
name: "version",
|
|
@@ -1536,7 +1536,7 @@ No Authorization header is required. Send the browser Origin allowed by the agen
|
|
|
1536
1536
|
name: "publishable_key",
|
|
1537
1537
|
type: "string",
|
|
1538
1538
|
required: true,
|
|
1539
|
-
description: "Public key created by the
|
|
1539
|
+
description: "Public key created by the business agent owner; safe to include in browser code."
|
|
1540
1540
|
},
|
|
1541
1541
|
{
|
|
1542
1542
|
name: "visitor_secret",
|
|
@@ -23475,7 +23475,7 @@ function startProgress(ctx, write = (text) => writeOutput({ stderr: text })) {
|
|
|
23475
23475
|
}
|
|
23476
23476
|
|
|
23477
23477
|
// src/main.ts
|
|
23478
|
-
var version = "0.1.0-dev.
|
|
23478
|
+
var version = "0.1.0-dev.8ad8e89";
|
|
23479
23479
|
var commands = commandTree(operations);
|
|
23480
23480
|
var manual = [["login"], ["logout"], ["whoami"], ["org", "list"], ["org", "switch"], ["api"], ["skill"]];
|
|
23481
23481
|
function route(argv) {
|