@ricsam/r5dctl 0.0.18 → 0.0.19
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/README.md +6 -5
- package/dist/cjs/cli.cjs +6 -2
- package/dist/cjs/package.json +1 -1
- package/dist/mjs/cli.mjs +6 -2
- package/dist/mjs/package.json +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -55,17 +55,18 @@ r5dctl describe session <session-id>
|
|
|
55
55
|
r5dctl -s <session-id> update session --name "Renamed session"
|
|
56
56
|
r5dctl -s <session-id> delete session
|
|
57
57
|
|
|
58
|
-
r5dctl -s <session-id> conversation
|
|
59
|
-
r5dctl -s <session-id> conversation --raw
|
|
60
|
-
r5dctl -s <session-id> conversation --tools
|
|
61
|
-
r5dctl -s <session-id> conversation --
|
|
58
|
+
r5dctl -s <session-id> conversation # human-readable transcript without system/tools
|
|
59
|
+
r5dctl -s <session-id> conversation --raw # raw JSON message/tool parts
|
|
60
|
+
r5dctl -s <session-id> conversation --tools # include provider-shaped tool definitions
|
|
61
|
+
r5dctl -s <session-id> conversation --system # include system prompt messages
|
|
62
|
+
r5dctl -s <session-id> conversation --raw --tools --system # exact raw agent request transcript
|
|
62
63
|
r5dctl -s <session-id> prompt --mode plan --model max "..."
|
|
63
64
|
r5dctl -s <session-id> answer-questions -a1 "Recipe Collection" -a2 "Both Manual & AI"
|
|
64
65
|
r5dctl -s <session-id> apply-required-envs -e backend/KEY=value -e frontend/KEY=value
|
|
65
66
|
|
|
66
67
|
```
|
|
67
68
|
|
|
68
|
-
Conversation output is human-readable by default. `--raw` keeps the transcript layout but renders structured message and tool parts as JSON,
|
|
69
|
+
Conversation output is human-readable by default and excludes both the system prompt and tool definitions. `--raw` keeps the transcript layout but renders structured message and tool parts as JSON, `--tools` includes the provider-shaped tool definitions, and `--system` includes system prompt messages. The global `--json` flag remains separate and prints the complete API response envelope.
|
|
69
70
|
|
|
70
71
|
Project mode is derived from the persisted `backwardsCompatible` project setting:
|
|
71
72
|
|
package/dist/cjs/cli.cjs
CHANGED
|
@@ -118,7 +118,7 @@ const SHARED_HELP_ENTRIES = [
|
|
|
118
118
|
{ section: "sessions", usage: "-s <session-id> delete session", description: "Delete a session." },
|
|
119
119
|
{
|
|
120
120
|
section: "sessions",
|
|
121
|
-
usage: "-s <session-id> conversation [--raw] [--tools]",
|
|
121
|
+
usage: "-s <session-id> conversation [--raw] [--tools] [--system]",
|
|
122
122
|
description: "Read the agent request transcript in human-readable form."
|
|
123
123
|
},
|
|
124
124
|
{
|
|
@@ -850,7 +850,7 @@ function parseSessionUpdateArgs(args) {
|
|
|
850
850
|
return input;
|
|
851
851
|
}
|
|
852
852
|
function parseConversationRenderArgs(args) {
|
|
853
|
-
const options = { format: "human", includeTools: false };
|
|
853
|
+
const options = { format: "human", includeTools: false, includeSystem: false };
|
|
854
854
|
for (const arg of args) {
|
|
855
855
|
if (arg === "--raw") {
|
|
856
856
|
options.format = "raw";
|
|
@@ -860,6 +860,10 @@ function parseConversationRenderArgs(args) {
|
|
|
860
860
|
options.includeTools = true;
|
|
861
861
|
continue;
|
|
862
862
|
}
|
|
863
|
+
if (arg === "--system") {
|
|
864
|
+
options.includeSystem = true;
|
|
865
|
+
continue;
|
|
866
|
+
}
|
|
863
867
|
throw new Error(`Unknown conversation argument: ${arg}`);
|
|
864
868
|
}
|
|
865
869
|
return options;
|
package/dist/cjs/package.json
CHANGED
package/dist/mjs/cli.mjs
CHANGED
|
@@ -78,7 +78,7 @@ const SHARED_HELP_ENTRIES = [
|
|
|
78
78
|
{ section: "sessions", usage: "-s <session-id> delete session", description: "Delete a session." },
|
|
79
79
|
{
|
|
80
80
|
section: "sessions",
|
|
81
|
-
usage: "-s <session-id> conversation [--raw] [--tools]",
|
|
81
|
+
usage: "-s <session-id> conversation [--raw] [--tools] [--system]",
|
|
82
82
|
description: "Read the agent request transcript in human-readable form."
|
|
83
83
|
},
|
|
84
84
|
{
|
|
@@ -810,7 +810,7 @@ function parseSessionUpdateArgs(args) {
|
|
|
810
810
|
return input;
|
|
811
811
|
}
|
|
812
812
|
function parseConversationRenderArgs(args) {
|
|
813
|
-
const options = { format: "human", includeTools: false };
|
|
813
|
+
const options = { format: "human", includeTools: false, includeSystem: false };
|
|
814
814
|
for (const arg of args) {
|
|
815
815
|
if (arg === "--raw") {
|
|
816
816
|
options.format = "raw";
|
|
@@ -820,6 +820,10 @@ function parseConversationRenderArgs(args) {
|
|
|
820
820
|
options.includeTools = true;
|
|
821
821
|
continue;
|
|
822
822
|
}
|
|
823
|
+
if (arg === "--system") {
|
|
824
|
+
options.includeSystem = true;
|
|
825
|
+
continue;
|
|
826
|
+
}
|
|
823
827
|
throw new Error(`Unknown conversation argument: ${arg}`);
|
|
824
828
|
}
|
|
825
829
|
return options;
|
package/dist/mjs/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ricsam/r5dctl",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.19",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/cjs/cli.cjs",
|
|
6
6
|
"module": "./dist/mjs/cli.mjs",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"r5dctl": "dist/cjs/main.cjs"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@ricsam/r5d-api": "^0.0.
|
|
29
|
+
"@ricsam/r5d-api": "^0.0.19"
|
|
30
30
|
},
|
|
31
31
|
"files": [
|
|
32
32
|
"dist",
|