@deepraxis/cli 0.2.0-dev.1046919 → 0.2.0-dev.27bb19e
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/praxis.js +15 -12
- package/package.json +1 -1
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=service for per-session environments. Pass next_page from the response as page to read the next page; a null next_page means the end.",
|
|
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=general or kind=personal for durable-computer agents or kind=service 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",
|
|
@@ -56,6 +56,7 @@ var operations = [
|
|
|
56
56
|
name: "kind",
|
|
57
57
|
type: "string",
|
|
58
58
|
enum: [
|
|
59
|
+
"general",
|
|
59
60
|
"personal",
|
|
60
61
|
"service"
|
|
61
62
|
],
|
|
@@ -141,17 +142,18 @@ across all toolsets allowed.`
|
|
|
141
142
|
type: "array",
|
|
142
143
|
itemType: "object",
|
|
143
144
|
required: false,
|
|
144
|
-
description: "Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time."
|
|
145
|
+
description: "Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time."
|
|
145
146
|
},
|
|
146
147
|
{
|
|
147
148
|
name: "kind",
|
|
148
149
|
type: "string",
|
|
149
150
|
enum: [
|
|
151
|
+
"general",
|
|
150
152
|
"personal",
|
|
151
153
|
"service"
|
|
152
154
|
],
|
|
153
155
|
required: false,
|
|
154
|
-
description: "Immutable agent kind. personal
|
|
156
|
+
description: "Immutable agent kind. general and personal require computer_id; service cannot bind a computer. Omit on create to infer from computer_id (general with a computer, service without). On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error."
|
|
155
157
|
},
|
|
156
158
|
{
|
|
157
159
|
name: "computer_id",
|
|
@@ -201,7 +203,7 @@ across all toolsets allowed.`
|
|
|
201
203
|
name: "avatar",
|
|
202
204
|
type: "string",
|
|
203
205
|
required: false,
|
|
204
|
-
description: "Avatar image of the agent: an absolute https URL of at most 2048 characters, without credentials; any other value returns 400 avatar must be an https URL. It is the default picture in agent lists, the agent detail, the chat header and embedded chat when the embed appearance sets none. Saved with the agent version like other configuration, so apply=false keeps the previous avatar in effect until that version is applied. Omit on create for no avatar; on update, omit to keep it and send null to clear it.
|
|
206
|
+
description: "Avatar image of the agent: an absolute https URL of at most 2048 characters, without credentials; any other value returns 400 avatar must be an https URL. It is the default picture in agent lists, the agent detail, the chat header and embedded chat when the embed appearance sets none. Saved with the agent version like other configuration, so apply=false keeps the previous avatar in effect until that version is applied. Omit on create for no avatar; on update, omit to keep it and send null to clear it. General, personal and service agents accept it. /agent/v1 only; /anthropic neither accepts nor returns it."
|
|
205
207
|
},
|
|
206
208
|
{
|
|
207
209
|
name: "environment_id",
|
|
@@ -365,11 +367,12 @@ toolsets allowed.`
|
|
|
365
367
|
name: "kind",
|
|
366
368
|
type: "string",
|
|
367
369
|
enum: [
|
|
370
|
+
"general",
|
|
368
371
|
"personal",
|
|
369
372
|
"service"
|
|
370
373
|
],
|
|
371
374
|
required: false,
|
|
372
|
-
description: "Immutable agent kind. personal
|
|
375
|
+
description: "Immutable agent kind. general and personal require computer_id; service cannot bind a computer. Omit on create to infer from computer_id (general with a computer, service without). On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error."
|
|
373
376
|
},
|
|
374
377
|
{
|
|
375
378
|
name: "computer_id",
|
|
@@ -419,7 +422,7 @@ toolsets allowed.`
|
|
|
419
422
|
name: "avatar",
|
|
420
423
|
type: "string",
|
|
421
424
|
required: false,
|
|
422
|
-
description: "Avatar image of the agent: an absolute https URL of at most 2048 characters, without credentials; any other value returns 400 avatar must be an https URL. It is the default picture in agent lists, the agent detail, the chat header and embedded chat when the embed appearance sets none. Saved with the agent version like other configuration, so apply=false keeps the previous avatar in effect until that version is applied. Omit on create for no avatar; on update, omit to keep it and send null to clear it.
|
|
425
|
+
description: "Avatar image of the agent: an absolute https URL of at most 2048 characters, without credentials; any other value returns 400 avatar must be an https URL. It is the default picture in agent lists, the agent detail, the chat header and embedded chat when the embed appearance sets none. Saved with the agent version like other configuration, so apply=false keeps the previous avatar in effect until that version is applied. Omit on create for no avatar; on update, omit to keep it and send null to clear it. General, personal and service agents accept it. /agent/v1 only; /anthropic neither accepts nor returns it."
|
|
423
426
|
},
|
|
424
427
|
{
|
|
425
428
|
name: "environment_id",
|
|
@@ -958,7 +961,7 @@ Praxis extension: MA only has session-scoped temporary containers and memory_sto
|
|
|
958
961
|
resource: "agent.computers",
|
|
959
962
|
method: "create",
|
|
960
963
|
summary: "Create Computer",
|
|
961
|
-
description: `Create a durable computer: a named machine whose files outlive sessions, for personal agents.
|
|
964
|
+
description: `Create a durable computer: a named machine whose files outlive sessions, for general and personal agents.
|
|
962
965
|
|
|
963
966
|
Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; computers start with a light sandbox and expose the public SDK sandbox_id. Lists include archived computers.`,
|
|
964
967
|
http: "POST",
|
|
@@ -1409,7 +1412,7 @@ archived).`
|
|
|
1409
1412
|
resource: "agent.deployments",
|
|
1410
1413
|
method: "create",
|
|
1411
1414
|
summary: "Create deployment",
|
|
1412
|
-
description: "Freeze session parameters as a deployment; this operation does not open a session. Pass an agent id or versioned reference, a name, 1–50 user.message initial events and an environment_id from environments.list. Unlike Anthropic Managed Agents, /agent/v1 also accepts agent_with_overrides (model, permission_mode and cwd) and target=computer for personal agents, with environment_id omitted. Cron schedules use five POSIX fields and an IANA timezone. File resources are accepted. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. Active schedules run every minute when due; session creation errors pause the deployment. Unsupported tools, mcp_servers, system and skills overrides return 400.",
|
|
1415
|
+
description: "Freeze session parameters as a deployment; this operation does not open a session. Pass an agent id or versioned reference, a name, 1–50 user.message initial events and an environment_id from environments.list. Unlike Anthropic Managed Agents, /agent/v1 also accepts agent_with_overrides (model, permission_mode and cwd) and target=computer for general and personal agents, with environment_id omitted. Cron schedules use five POSIX fields and an IANA timezone. File resources are accepted. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. Active schedules run every minute when due; session creation errors pause the deployment. Unsupported tools, mcp_servers, system and skills overrides return 400.",
|
|
1413
1416
|
http: "POST",
|
|
1414
1417
|
path: "/agent/v1/deployments",
|
|
1415
1418
|
streaming: "no",
|
|
@@ -1490,7 +1493,7 @@ created from this deployment. Maximum 50.`
|
|
|
1490
1493
|
name: "target",
|
|
1491
1494
|
type: "object",
|
|
1492
1495
|
required: false,
|
|
1493
|
-
description: "Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted."
|
|
1496
|
+
description: "Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted."
|
|
1494
1497
|
}
|
|
1495
1498
|
]
|
|
1496
1499
|
}
|
|
@@ -1607,7 +1610,7 @@ null to clear. Maximum 50.`
|
|
|
1607
1610
|
name: "target",
|
|
1608
1611
|
type: "object",
|
|
1609
1612
|
required: false,
|
|
1610
|
-
description: "Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for personal agents and permits environment_id to be omitted."
|
|
1613
|
+
description: "Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general and personal agents and permits environment_id to be omitted."
|
|
1611
1614
|
}
|
|
1612
1615
|
]
|
|
1613
1616
|
}
|
|
@@ -2333,7 +2336,7 @@ Available only on /agent/v1. Returns { type: session_compaction, id, status, rea
|
|
|
2333
2336
|
summary: "List Session Compactions (Extension)",
|
|
2334
2337
|
description: `Read session compaction history and summaries.
|
|
2335
2338
|
|
|
2336
|
-
Available only on /agent/v1. Returns { data: [...], active }. active is the queued or running compaction ({ type: session_compaction, id, status, trigger: manual|auto }), or null when none; manual work takes precedence. Each data entry contains type, id, event_id, trigger, status, model, compacted_message_count, input_tokens_before, input_tokens_after, summary, error and created_at, as recorded by the service. Missing or inaccessible managed sessions return 404 not_found_error.`,
|
|
2339
|
+
Available only on /agent/v1. Returns { data: [...], active }. active is the queued or running compaction ({ type: session_compaction, id, status, trigger: manual|auto|idle }), or null when none; manual work takes precedence. Each data entry contains type, id, event_id, trigger, status, model, compacted_message_count, input_tokens_before, input_tokens_after, summary, error and created_at, as recorded by the service. Missing or inaccessible managed sessions return 404 not_found_error.`,
|
|
2337
2340
|
http: "GET",
|
|
2338
2341
|
path: "/agent/v1/sessions/{session_id}/compactions",
|
|
2339
2342
|
streaming: "no",
|
|
@@ -28022,7 +28025,7 @@ function startProgress(ctx, write = (text) => writeOutput({ stderr: text })) {
|
|
|
28022
28025
|
}
|
|
28023
28026
|
|
|
28024
28027
|
// src/main.ts
|
|
28025
|
-
var version = "0.2.0-dev.
|
|
28028
|
+
var version = "0.2.0-dev.27bb19e";
|
|
28026
28029
|
var commands = commandTree(operations);
|
|
28027
28030
|
var manual = [...workflows.map((w) => w.words), [API_WORD]];
|
|
28028
28031
|
function route(argv) {
|