Skip to content

Commit 7f18e54

Browse files
kriszypclaude
andcommitted
feat(cli): add harper chat alias for harper agent
Per PR #1553 discussion — makes clear this is a lightweight chat client for the built-in agent, not a harper-agent replacement. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 3e12d06 commit 7f18e54

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

bin/agentCli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ interface Connection {
3939
label: string;
4040
}
4141

42-
const HELP = `harper agent — interact with the built-in Harper agent
42+
const HELP = `harper agent — interact with the built-in Harper agent (alias: harper chat)
4343
4444
Usage:
4545
harper agent [message] Send a prompt (one-shot) and print the reply

bin/harper.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Documentation: https://docs.harperdb.io/
2323
By default, the CLI also supports certain Operation APIs. Specify the operation name and any required parameters, and omit the 'operation' command.
2424
2525
Commands:
26-
agent [message] - Chat with the built-in agent (interactive, or one-shot with a message)
26+
agent [message] - Chat with the built-in agent (interactive, or one-shot with a message; alias: chat)
2727
copy-db <source> <target> - Copies a database from source path to target path
2828
dev <path> - Run the application in dev mode with debugging, foreground logging, no auth
2929
install - Install harperdb
@@ -112,6 +112,7 @@ async function harper() {
112112
const code = await runMcpCli(process.argv.slice(3));
113113
process.exit(code);
114114
}
115+
case SERVICE_ACTIONS_ENUM.CHAT:
115116
case SERVICE_ACTIONS_ENUM.AGENT: {
116117
const { runAgentCli } = require('./agentCli');
117118
const code = await runAgentCli(process.argv.slice(3));

utility/hdbTerms.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,7 @@ export const SERVICE_ACTIONS_ENUM = {
394394
COPYDB: 'copy-db',
395395
MCP: 'mcp',
396396
AGENT: 'agent',
397+
CHAT: 'chat',
397398
} as const;
398399

399400
/** describes the Geo Conversion types */

0 commit comments

Comments
 (0)