nolo-cli 0.1.4 → 0.1.5
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/client/agentRun.ts +2 -2
- package/package.json +1 -1
- package/tui/session.ts +8 -11
package/client/agentRun.ts
CHANGED
|
@@ -131,9 +131,9 @@ async function runHttpAgentTurn(options: RunAgentTurnOptions, authToken: string)
|
|
|
131
131
|
|
|
132
132
|
const content = String(data?.content ?? data?.message ?? "").trim();
|
|
133
133
|
if (content) {
|
|
134
|
-
options.output.write(`\n${options.agentName}
|
|
134
|
+
options.output.write(`\n${options.agentName} > ${content}\n`);
|
|
135
135
|
} else {
|
|
136
|
-
options.output.write(`\n${options.agentName}
|
|
136
|
+
options.output.write(`\n${options.agentName} > (no text response)\n`);
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
const usage = formatUsage(data?.usage, data?.dialogId);
|
package/package.json
CHANGED
package/tui/session.ts
CHANGED
|
@@ -73,29 +73,26 @@ export function createInitialTuiState(env: EnvLike = process.env): TuiState {
|
|
|
73
73
|
export function renderStatusLine(state: TuiState) {
|
|
74
74
|
const docs =
|
|
75
75
|
state.attachedDocs.length > 0
|
|
76
|
-
? state.attachedDocs.
|
|
77
|
-
: "0
|
|
76
|
+
? String(state.attachedDocs.length)
|
|
77
|
+
: "0";
|
|
78
78
|
|
|
79
79
|
return [
|
|
80
80
|
`agent ${state.agentName}`,
|
|
81
81
|
`dialog ${resolveDialogLabel(state)}`,
|
|
82
82
|
`docs ${docs}`,
|
|
83
83
|
`profile ${state.profileName}`,
|
|
84
|
-
...(state.cliVersion ? [`version ${state.cliVersion}`] : []),
|
|
85
84
|
].join(" | ");
|
|
86
85
|
}
|
|
87
86
|
|
|
88
87
|
export function renderWelcome(state: TuiState) {
|
|
88
|
+
const docs = state.attachedDocs.length > 0
|
|
89
|
+
? `${state.attachedDocs.length} attached`
|
|
90
|
+
: "none";
|
|
89
91
|
return [
|
|
90
92
|
"",
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
`
|
|
94
|
-
`dialog ${resolveDialogLabel(state)}`,
|
|
95
|
-
`docs ${state.attachedDocs.length ? state.attachedDocs.join(", ") : "none"}`,
|
|
96
|
-
`profile ${state.profileName}`,
|
|
97
|
-
`server ${state.serverUrl}`,
|
|
98
|
-
...(state.cliVersion ? [`version ${state.cliVersion}`] : []),
|
|
93
|
+
`Nolo workspace${state.cliVersion ? ` nolo ${state.cliVersion}` : ""}`,
|
|
94
|
+
`agent ${state.agentName} | dialog ${resolveDialogLabel(state)} | docs ${docs} | profile ${state.profileName}`,
|
|
95
|
+
`server ${state.serverUrl}`,
|
|
99
96
|
"",
|
|
100
97
|
"Tell nolo what you want. Use /help for commands. Use /version if this install feels stale.",
|
|
101
98
|
"",
|