@deepraxis/cli 0.1.1-dev.b176367 → 0.1.1-dev.d25d171
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 +1 -1
- package/dist/praxis.js +6 -6
- package/package.json +1 -1
package/COMMANDS.md
CHANGED
|
@@ -35,7 +35,7 @@ Handwritten commands: `login`, `logout`, `whoami`, `org list`, `org switch <orga
|
|
|
35
35
|
| `praxis agent customer auth access-token create` | `agent.agents.customers.auth.accessTokens.create` | POST `/agent/v1/agents/{agent_id}/customers/auth/access_tokens` | `--agent` |
|
|
36
36
|
| `praxis agent customer auth access-token delete-current` | `agent.agents.customers.auth.accessTokens.deleteCurrent` | DELETE `/agent/v1/agents/{agent_id}/customers/auth/access_tokens/current` | `--agent` |
|
|
37
37
|
| `praxis agent customer auth access-token renew create` | `agent.agents.customers.auth.accessTokens.renew.create` | POST `/agent/v1/agents/{agent_id}/customers/auth/access_tokens/renew` | `--agent` |
|
|
38
|
-
| `praxis agent customer auth grant-code create` | `agent.agents.customers.auth.grantCodes.create` | POST `/agent/v1/agents/{agent_id}/customers/auth/grant_codes` | `--agent`, `--customer-id`, `--param-version`, `--
|
|
38
|
+
| `praxis agent customer auth grant-code create` | `agent.agents.customers.auth.grantCodes.create` | POST `/agent/v1/agents/{agent_id}/customers/auth/grant_codes` | `--agent`, `--customer-id`, `--param-version`, `--origin`, `--expires-in`, `--max-session-seconds`, `--anonymous-access-token`, `--hosted` |
|
|
39
39
|
| `praxis agent deployment archive <deployment_id>` | `agent.deployments.archive` | POST `/agent/v1/deployments/{deployment_id}/archive` | |
|
|
40
40
|
| `praxis agent deployment create` | `agent.deployments.create` | POST `/agent/v1/deployments` | `--environment-id`, `--name`, `--description`, `--vault-ids` |
|
|
41
41
|
| `praxis agent deployment get <deployment_id>` | `agent.deployments.retrieve` | GET `/agent/v1/deployments/{deployment_id}` | |
|
package/dist/praxis.js
CHANGED
|
@@ -527,7 +527,7 @@ Send the current customer access token as the Bearer credential, with no body, a
|
|
|
527
527
|
summary: "Create customer grant code",
|
|
528
528
|
description: `Sign your logged-in customer in to a service agent from your backend with a one-time grant code that Agent Kit exchanges for a customer access token.
|
|
529
529
|
|
|
530
|
-
Call this from your backend with your API key after your own login succeeds, then pass the returned code to Agent Kit in the browser; never call it from the browser. Customer authorization follows Shopify Storefront customer access tokens (Multipass-style sign-in, a short-lived token, renewal and logout), so that experience applies. customer_id is your own identifier for the customer: use an opaque id such as your database user id, not an email address or phone number. The value auth is reserved, and ids starting with anon_ are reserved for anonymous customers. The code works once and expires after expires_in seconds (default 900). The sign-in it starts lasts max_session_seconds (default 7 days); version,
|
|
530
|
+
Call this from your backend with your API key after your own login succeeds, then pass the returned code to Agent Kit in the browser; never call it from the browser. Customer authorization follows Shopify Storefront customer access tokens (Multipass-style sign-in, a short-lived token, renewal and logout), so that experience applies. customer_id is your own identifier for the customer: use an opaque id such as your database user id, not an email address or phone number. The value auth is reserved, and ids starting with anon_ are reserved for anonymous customers. The code works once and expires after expires_in seconds (default 900). The sign-in it starts lasts max_session_seconds (default 7 days); version, budget (US dollars, at most 2 decimals), system_message, agent_override and metadata apply to every token of the sign-in. Unlike Shopify, origin binds the whole sign-in to one page origin, and anonymous_access_token merges the conversations of the anonymous visitor who chatted before signing in into this customer. Example body: {"customer_id":"cus_8f2a91","origin":"https://shop.example.com"}.`,
|
|
531
531
|
http: "POST",
|
|
532
532
|
path: "/agent/v1/agents/{agent_id}/customers/auth/grant_codes",
|
|
533
533
|
streaming: "no",
|
|
@@ -556,10 +556,10 @@ Call this from your backend with your API key after your own login succeeds, the
|
|
|
556
556
|
description: "Existing agent version that every token of this sign-in pins. Defaults to the agent's active_version when the code is issued."
|
|
557
557
|
},
|
|
558
558
|
{
|
|
559
|
-
name: "
|
|
560
|
-
type: "
|
|
559
|
+
name: "budget",
|
|
560
|
+
type: "object",
|
|
561
561
|
required: false,
|
|
562
|
-
description: "Budget
|
|
562
|
+
description: "Budget for each session the customer starts, in the same shape as a session budget. Defaults to the embed policy session budget and cannot exceed its maximum."
|
|
563
563
|
},
|
|
564
564
|
{
|
|
565
565
|
name: "system_message",
|
|
@@ -2162,7 +2162,7 @@ clears to null; an empty string is stored as an empty string.`
|
|
|
2162
2162
|
name: "budget",
|
|
2163
2163
|
type: "object",
|
|
2164
2164
|
required: false,
|
|
2165
|
-
description: 'Session spending limit, {type: "limit", max_list_cost: {amount, currency}}; null when unlimited.
|
|
2165
|
+
description: 'Session spending limit, {type: "limit", max_list_cost: {amount, currency}}; null when unlimited. amount is in US dollars: send an integer or up to 2 decimals ("0.50"), and responses carry exactly 2 decimals ("20.00"). Creation defaults to USD 20.00 when omitted. More decimals, zero or a number return 400. Removing the limit with null prevents setting it again for that session.'
|
|
2166
2166
|
},
|
|
2167
2167
|
{
|
|
2168
2168
|
name: "initial_events",
|
|
@@ -27029,7 +27029,7 @@ function startProgress(ctx, write = (text) => writeOutput({ stderr: text })) {
|
|
|
27029
27029
|
}
|
|
27030
27030
|
|
|
27031
27031
|
// src/main.ts
|
|
27032
|
-
var version = "0.1.1-dev.
|
|
27032
|
+
var version = "0.1.1-dev.d25d171";
|
|
27033
27033
|
var commands = commandTree(operations);
|
|
27034
27034
|
var manual = [["login"], ["logout"], ["whoami"], ["org", "list"], ["org", "switch"], ["api"], ["skill"]];
|
|
27035
27035
|
function route(argv) {
|