@deepraxis/cli 0.1.0-dev.bba7594 → 0.1.0-dev.c6c496f

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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Generated by `bun run commands`. DO NOT EDIT.
4
4
 
5
- 346 HTTP operations; 348 commands including aliases.
5
+ 352 HTTP operations; 354 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` |
@@ -303,7 +305,11 @@ Handwritten commands: `login`, `logout`, `whoami`, `org list`, `org switch <orga
303
305
  | `praxis organization cost list` | `organization.costs.list` | GET `/organization/v1/costs` | `--starting-at`, `--ending-at`, `--bucket-width`, `--time-zone`, `--group-by`, `--page` |
304
306
  | `praxis organization event get <id>` | `organization.events.retrieve` | GET `/organization/v1/events/{id}` | |
305
307
  | `praxis organization event list` | `organization.events.list` | GET `/organization/v1/events` | `--starting-at`, `--ending-at`, `--param-limit`, `--page` |
306
- | `praxis organization feedback create` | `organization.feedback.create` | POST `/organization/v1/feedback` | `--message`, `--contact-email`, `--name`, `--url`, `--associated-event-id`, `--source` |
308
+ | `praxis organization feedback create` | `organization.feedback.create` | POST `/organization/v1/feedback` | `--message`, `--contact-email`, `--name`, `--url`, `--associated-event-id`, `--title`, `--type`, `--source` |
309
+ | `praxis organization feedback get <id>` | `organization.feedback.retrieve` | GET `/organization/v1/feedback/{id}` | |
310
+ | `praxis organization feedback list` | `organization.feedback.list` | GET `/organization/v1/feedback` | `--phase`, `--query`, `--param-limit`, `--page` |
311
+ | `praxis organization feedback message create` | `organization.feedback.messages.create` | POST `/organization/v1/feedback/{id}/messages` | `--feedback`, `--body` |
312
+ | `praxis organization feedback message list` | `organization.feedback.messages.list` | GET `/organization/v1/feedback/{id}/messages` | `--feedback`, `--param-limit`, `--page` |
307
313
  | `praxis organization usage list` | `organization.usage.list` | GET `/organization/v1/usage` | `--starting-at`, `--ending-at`, `--bucket-width`, `--time-zone`, `--group-by`, `--page` |
308
314
  | `praxis sandbox command run <sandbox_id>` | `sandbox.sandboxes.commands.run` | POST `/sandbox/v1/sandboxes/{sandbox_id}/commands` | `--cmd`, `--cwd`, `--timeout-ms` |
309
315
  | `praxis sandbox connect <sandboxID>` | `sandbox.sandboxes.connect` | POST `/sandbox/v1/sandboxes/{sandboxID}/connect` | `--timeout`, `--memory` |
package/dist/praxis.js CHANGED
@@ -101,7 +101,7 @@ var operations = [
101
101
  type: "array",
102
102
  itemType: "object",
103
103
  required: false,
104
- description: "MCP servers this agent connects to. Maximum 20. Names must be unique\nwithin the array. Every server must be referenced by an `mcp_toolset` in\n`tools`; unreferenced servers are rejected. See the\n[MCP connector guide](https://platform.claude.com/docs/en/managed-agents/mcp-connector)."
104
+ description: "Praxis extension: HTTP, SSE or trusted stdio MCP servers paired with mcp_toolset entries and saved with the agent version."
105
105
  },
106
106
  {
107
107
  name: "metadata",
@@ -241,7 +241,7 @@ across all toolsets allowed.`
241
241
  type: "array",
242
242
  itemType: "object",
243
243
  required: false,
244
- description: "MCP servers. Full replacement. Omit to preserve; send empty array or\n`null` to clear. Names must be unique. Maximum 20. Every server must be\nreferenced by an `mcp_toolset` in the agent's resulting `tools`; unreferenced\nservers are rejected. See the\n[MCP connector guide](https://platform.claude.com/docs/en/managed-agents/mcp-connector)."
244
+ description: "Praxis extension: HTTP, SSE or trusted stdio MCP servers paired with mcp_toolset entries and saved with the agent version."
245
245
  },
246
246
  {
247
247
  name: "metadata",
@@ -1499,7 +1499,7 @@ owning account only.`
1499
1499
  resource: "agent.sessions",
1500
1500
  method: "create",
1501
1501
  summary: "Create session",
1502
- description: `Create a session: one conversation with an agent, running on a machine. Pass agent as an agent id (latest version) or {id, version, type:"agent"}. Unlike Anthropic Managed Agents, omit environment_id to get a light machine, unless computer_id (explicit, or the agent's default) selects a Computer; pass environment_id for a sandbox recipe. Optional model must be one of the agent's allowed models; optional thinking is {effort: low|medium|high|xhigh|none} or null, where null inherits the agent default and then the model default (none requires the model to allow disabling thinking). Selections are saved before initial_events run; invalid ones return 400 invalid_request_error. Inline agent overrides are not supported. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. Omitted budget defaults to USD 20; null removes the limit, and a limit object uses a positive integer string of USD cents. Up to 500 file resources can be attached. Use initial_events to send a first user.message in this request, or send messages afterwards with sessions.events.send. The returned status can still be idle before initial events run; read agent.message and the subsequent session.status_idle event to confirm completion.`,
1502
+ description: `Create a session: one conversation with an agent, running on a machine. Pass agent as an agent id (latest version) or {id, version, type:"agent"}. Unlike Anthropic Managed Agents, omit environment_id to get a light machine, unless computer_id (explicit, or the agent's default) selects a Computer; pass environment_id for a sandbox recipe. Optional model must be one of the agent's allowed models; optional thinking is {effort: low|medium|high|xhigh|max|none} or null, where null inherits the agent default and then the model default (none requires the model to allow disabling thinking). Selections are saved before initial_events run; invalid ones return 400 invalid_request_error. Inline agent overrides are not supported. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. Omitted budget defaults to USD 20; null removes the limit, and a limit object uses a positive integer string of USD cents. Up to 500 file resources can be attached. Use initial_events to send a first user.message in this request, or send messages afterwards with sessions.events.send. The returned status can still be idle before initial events run; read agent.message and the subsequent session.status_idle event to confirm completion.`,
1503
1503
  http: "POST",
1504
1504
  path: "/agent/v1/sessions",
1505
1505
  streaming: "no",
@@ -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",
@@ -11599,6 +11666,50 @@ for more details.`
11599
11666
  ],
11600
11667
  query: []
11601
11668
  },
11669
+ {
11670
+ resource: "organization.feedback",
11671
+ method: "list",
11672
+ summary: "List your organization's feedback",
11673
+ description: "Feedback submitted by your organization, newest first, with phase and unread state. Filter by phase and search titles and message text (case-insensitive). Page with next_page. Requires a valid API key, Console session, or machine token of the organization.",
11674
+ http: "GET",
11675
+ path: "/organization/v1/feedback",
11676
+ streaming: "no",
11677
+ pagination: false,
11678
+ pathParams: [],
11679
+ query: [
11680
+ {
11681
+ name: "phase",
11682
+ type: "string",
11683
+ enum: [
11684
+ "open",
11685
+ "awaiting_customer",
11686
+ "in_progress",
11687
+ "resolved",
11688
+ "closed"
11689
+ ],
11690
+ required: false,
11691
+ description: "Only feedback in this phase: open, awaiting_customer, in_progress, resolved or closed; see the phase field of a feedback for what each means."
11692
+ },
11693
+ {
11694
+ name: "query",
11695
+ type: "string",
11696
+ required: false,
11697
+ description: "Case-insensitive text matched against titles and message bodies."
11698
+ },
11699
+ {
11700
+ name: "limit",
11701
+ type: "integer",
11702
+ required: false,
11703
+ description: "Items per page, 1 to 100."
11704
+ },
11705
+ {
11706
+ name: "page",
11707
+ type: "string",
11708
+ required: false,
11709
+ description: "Opaque cursor from next_page of the previous response."
11710
+ }
11711
+ ]
11712
+ },
11602
11713
  {
11603
11714
  resource: "organization.feedback",
11604
11715
  method: "create",
@@ -11643,6 +11754,18 @@ for more details.`
11643
11754
  required: false,
11644
11755
  description: "X-Request-Id from the failed response or the related error event ID."
11645
11756
  },
11757
+ {
11758
+ name: "title",
11759
+ type: "string",
11760
+ required: false,
11761
+ description: "Short summary shown in the feedback list; at most 200 Unicode code points."
11762
+ },
11763
+ {
11764
+ name: "type",
11765
+ type: "string",
11766
+ required: false,
11767
+ description: "Feedback type key enabled in the help settings, such as issue, suggestion, billing or other. Unknown or disabled keys are rejected with INVALID_PARAMS."
11768
+ },
11646
11769
  {
11647
11770
  name: "tags",
11648
11771
  type: "object",
@@ -11675,6 +11798,88 @@ for more details.`
11675
11798
  ]
11676
11799
  }
11677
11800
  },
11801
+ {
11802
+ resource: "organization.feedback",
11803
+ method: "retrieve",
11804
+ summary: "Get one of your organization's feedback",
11805
+ description: "Read one feedback submitted by your organization with its current phase and first-response timing. Another organization's feedback answers 404 FEEDBACK_NOT_FOUND exactly like a missing one.",
11806
+ http: "GET",
11807
+ path: "/organization/v1/feedback/{id}",
11808
+ streaming: "no",
11809
+ pagination: false,
11810
+ pathParams: [
11811
+ {
11812
+ name: "id",
11813
+ sdkName: "id"
11814
+ }
11815
+ ],
11816
+ query: []
11817
+ },
11818
+ {
11819
+ resource: "organization.feedback.messages",
11820
+ method: "list",
11821
+ summary: "List the messages of a feedback",
11822
+ description: "The conversation of one feedback in time order: your messages, support replies and system events. Internal support notes are never returned. Page with next_page.",
11823
+ http: "GET",
11824
+ path: "/organization/v1/feedback/{id}/messages",
11825
+ streaming: "no",
11826
+ pagination: false,
11827
+ pathParams: [
11828
+ {
11829
+ name: "id",
11830
+ sdkName: "id"
11831
+ }
11832
+ ],
11833
+ query: [
11834
+ {
11835
+ name: "limit",
11836
+ type: "integer",
11837
+ required: false,
11838
+ description: "Items per page, 1 to 100."
11839
+ },
11840
+ {
11841
+ name: "page",
11842
+ type: "string",
11843
+ required: false,
11844
+ description: "Opaque cursor from next_page of the previous response."
11845
+ }
11846
+ ]
11847
+ },
11848
+ {
11849
+ resource: "organization.feedback.messages",
11850
+ method: "create",
11851
+ summary: "Reply on a feedback",
11852
+ description: "Add your message to a feedback conversation, for example to answer a question from support. A reply while the phase is awaiting_customer moves it to in_progress and notifies support.",
11853
+ http: "POST",
11854
+ path: "/organization/v1/feedback/{id}/messages",
11855
+ streaming: "no",
11856
+ pagination: false,
11857
+ pathParams: [
11858
+ {
11859
+ name: "id",
11860
+ sdkName: "id"
11861
+ }
11862
+ ],
11863
+ query: [],
11864
+ body: {
11865
+ required: true,
11866
+ fields: [
11867
+ {
11868
+ name: "body",
11869
+ type: "string",
11870
+ required: true,
11871
+ description: "Markdown text; at most 4096 Unicode code points."
11872
+ },
11873
+ {
11874
+ name: "attachments",
11875
+ type: "array",
11876
+ itemType: "object",
11877
+ required: false,
11878
+ description: "Up to five attachments; decoded bytes must not exceed 10 MiB each or 20 MiB in total."
11879
+ }
11880
+ ]
11881
+ }
11882
+ },
11678
11883
  {
11679
11884
  resource: "organization.usage",
11680
11885
  method: "list",
@@ -14897,6 +15102,36 @@ var createClient = (config = {}) => {
14897
15102
  var client = createClient(createConfig({ baseUrl: "https://api.deepraxis.com" }));
14898
15103
 
14899
15104
  // ../../packages/sdk/typescript/src/generated/sdk.gen.ts
15105
+ var deleteRunFeedback = (options) => (options.client ?? client).delete({
15106
+ security: [{
15107
+ key: "BearerAuth",
15108
+ scheme: "bearer",
15109
+ type: "http"
15110
+ }, {
15111
+ key: "ApiKeyAuth",
15112
+ name: "X-API-Key",
15113
+ type: "apiKey"
15114
+ }],
15115
+ url: "/agent/v1/sessions/{session_id}/runs/{run_id}/feedback",
15116
+ ...options
15117
+ });
15118
+ var setRunFeedback = (options) => (options.client ?? client).post({
15119
+ security: [{
15120
+ key: "BearerAuth",
15121
+ scheme: "bearer",
15122
+ type: "http"
15123
+ }, {
15124
+ key: "ApiKeyAuth",
15125
+ name: "X-API-Key",
15126
+ type: "apiKey"
15127
+ }],
15128
+ url: "/agent/v1/sessions/{session_id}/runs/{run_id}/feedback",
15129
+ ...options,
15130
+ headers: {
15131
+ "Content-Type": "application/json",
15132
+ ...options.headers
15133
+ }
15134
+ });
14900
15135
  var listEmbedTokens = (options) => (options?.client ?? client).get({
14901
15136
  security: [{
14902
15137
  key: "BearerAuth",
@@ -15946,6 +16181,19 @@ var countResponseInputTokens = (options) => (options.client ?? client).post({
15946
16181
  ...options.headers
15947
16182
  }
15948
16183
  });
16184
+ var listOrganizationFeedback = (options) => (options?.client ?? client).get({
16185
+ security: [{
16186
+ key: "BearerAuth",
16187
+ scheme: "bearer",
16188
+ type: "http"
16189
+ }, {
16190
+ key: "ApiKeyAuth",
16191
+ name: "X-API-Key",
16192
+ type: "apiKey"
16193
+ }],
16194
+ url: "/organization/v1/feedback",
16195
+ ...options
16196
+ });
15949
16197
  var createOrganizationFeedback = (options) => (options.client ?? client).post({
15950
16198
  security: [{
15951
16199
  key: "BearerAuth",
@@ -15963,6 +16211,49 @@ var createOrganizationFeedback = (options) => (options.client ?? client).post({
15963
16211
  ...options.headers
15964
16212
  }
15965
16213
  });
16214
+ var getOrganizationFeedback = (options) => (options.client ?? client).get({
16215
+ security: [{
16216
+ key: "BearerAuth",
16217
+ scheme: "bearer",
16218
+ type: "http"
16219
+ }, {
16220
+ key: "ApiKeyAuth",
16221
+ name: "X-API-Key",
16222
+ type: "apiKey"
16223
+ }],
16224
+ url: "/organization/v1/feedback/{id}",
16225
+ ...options
16226
+ });
16227
+ var listOrganizationFeedbackMessages = (options) => (options.client ?? client).get({
16228
+ security: [{
16229
+ key: "BearerAuth",
16230
+ scheme: "bearer",
16231
+ type: "http"
16232
+ }, {
16233
+ key: "ApiKeyAuth",
16234
+ name: "X-API-Key",
16235
+ type: "apiKey"
16236
+ }],
16237
+ url: "/organization/v1/feedback/{id}/messages",
16238
+ ...options
16239
+ });
16240
+ var createOrganizationFeedbackMessage = (options) => (options.client ?? client).post({
16241
+ security: [{
16242
+ key: "BearerAuth",
16243
+ scheme: "bearer",
16244
+ type: "http"
16245
+ }, {
16246
+ key: "ApiKeyAuth",
16247
+ name: "X-API-Key",
16248
+ type: "apiKey"
16249
+ }],
16250
+ url: "/organization/v1/feedback/{id}/messages",
16251
+ ...options,
16252
+ headers: {
16253
+ "Content-Type": "application/json",
16254
+ ...options.headers
16255
+ }
16256
+ });
15966
16257
  var listOrganizationCosts = (options) => (options.client ?? client).get({
15967
16258
  security: [{
15968
16259
  key: "BearerAuth",
@@ -19798,6 +20089,12 @@ function createAgent(transport) {
19798
20089
  retrieve: bind(transport, sessionsRetrieve),
19799
20090
  retrieveCompact: bind(transport, getSessionCompaction),
19800
20091
  retrieveContext: bind(transport, getSessionContext),
20092
+ runs: {
20093
+ deleteFeedback: bind(transport, deleteRunFeedback),
20094
+ feedback: {
20095
+ create: bind(transport, setRunFeedback)
20096
+ }
20097
+ },
19801
20098
  threads: {
19802
20099
  archive: bind(transport, aliasOperation(sessionsThreadsArchive, { query: { session_id: "query_session_id" } })),
19803
20100
  events: {
@@ -20272,7 +20569,13 @@ function createOrganization(transport) {
20272
20569
  retrieve: bind(transport, getOrganizationEvent)
20273
20570
  },
20274
20571
  feedback: {
20275
- create: bind(transport, createOrganizationFeedback)
20572
+ create: bind(transport, createOrganizationFeedback),
20573
+ list: bind(transport, listOrganizationFeedback),
20574
+ messages: {
20575
+ create: bind(transport, createOrganizationFeedbackMessage),
20576
+ list: bind(transport, listOrganizationFeedbackMessages)
20577
+ },
20578
+ retrieve: bind(transport, getOrganizationFeedback)
20276
20579
  },
20277
20580
  usage: {
20278
20581
  list: bind(transport, listOrganizationUsage)
@@ -22462,7 +22765,7 @@ function startProgress(ctx, write = (text) => writeOutput({ stderr: text })) {
22462
22765
  }
22463
22766
 
22464
22767
  // src/main.ts
22465
- var version = "0.1.0-dev.bba7594";
22768
+ var version = "0.1.0-dev.c6c496f";
22466
22769
  var commands = commandTree(operations);
22467
22770
  var manual = [["login"], ["logout"], ["whoami"], ["org", "list"], ["org", "switch"], ["api"], ["skill"]];
22468
22771
  function route(argv) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepraxis/cli",
3
- "version": "0.1.0-dev.bba7594",
3
+ "version": "0.1.0-dev.c6c496f",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "praxis": "dist/praxis.js"
@@ -10,9 +10,6 @@
10
10
  "engines": {
11
11
  "node": ">=20"
12
12
  },
13
- "publishConfig": {
14
- "access": "public"
15
- },
16
13
  "files": [
17
14
  "dist",
18
15
  "README.md",
@@ -31,5 +28,8 @@
31
28
  "ai-agents",
32
29
  "claude-code"
33
30
  ],
34
- "author": "Deepractice"
31
+ "author": "Deepractice",
32
+ "publishConfig": {
33
+ "access": "public"
34
+ }
35
35
  }